nekomeowww commited on
Commit
0dacf82
·
1 Parent(s): 655feb8

release: build 6d5f9760c3d210ebce52b4dfc3d7f4be5efdfb93

Browse files
Files changed (43) hide show
  1. assets/BasicTextarea.vue_vue_type_script_setup_true_lang-CG2-D319.js +0 -2
  2. assets/BasicTextarea.vue_vue_type_script_setup_true_lang-DvUeFWfi.js +1 -0
  3. assets/{Collapsable.vue_vue_type_script_setup_true_lang-CoeIagAH.js → Collapsable.vue_vue_type_script_setup_true_lang-W8Zxiip1.js} +1 -1
  4. assets/{HeaderLink-Cb62pdxb.js → HeaderLink-B0cut292.js} +1 -1
  5. assets/{IconStatusItem-BDOcdafO.js → IconStatusItem-DuAACaJU.js} +1 -1
  6. assets/{Live2DSettings.vue_vue_type_script_setup_true_lang-CSa2O48R.js → Live2DSettings.vue_vue_type_script_setup_true_lang-R42naQro.js} +1 -1
  7. assets/{MobileInteractiveArea-olUfoEr4.css → MobileInteractiveArea-CkhuOcV9.css} +1 -1
  8. assets/{MobileInteractiveArea.vue_vue_type_script_setup_true_lang-Cdag5m7E.js → MobileInteractiveArea.vue_vue_type_script_setup_true_lang-DWigyVWY.js} +0 -0
  9. assets/{RadioCardSimple-CtAvpvdI.js → RadioCardSimple-BeqOivcn.js} +1 -1
  10. assets/{Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-C_JkQof7.js → Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-B7SUuDYL.js} +0 -0
  11. assets/{TransitionVertical.vue_vue_type_script_setup_true_lang-Ch4fEDgw.js → TransitionVertical.vue_vue_type_script_setup_true_lang-CLmZcRWR.js} +1 -1
  12. assets/{_...all_-CD2bpTnG.js → _...all_--6pvM4Sq.js} +1 -1
  13. assets/{audio-bEUsWVHt.js → audio-_PqWLFzV.js} +1 -1
  14. assets/{consciousness-DjFbmFp_.js → consciousness-D7J66NZD.js} +1 -1
  15. assets/{consciousness-BqvSoi9M.js → consciousness-DGKqeXEN.js} +1 -1
  16. assets/{default-R3ZmIHxJ.js → default-BmFJgYVM.js} +1 -1
  17. assets/{default-node-CK4II32p.js → default-node-DnhLsEaN.js} +1 -1
  18. assets/{delays-CdMiuWNX.js → delays-KTYa_Ekj.js} +1 -1
  19. assets/{elevenlabs-Bv-IEdeB.js → elevenlabs-CG56K-vv.js} +1 -1
  20. assets/{emotions-AsN40LJ7.js → emotions-WSTnmMSA.js} +1 -1
  21. assets/{filter-message-D2ug2Kuj.js → filter-message-CwtpyQOH.js} +1 -1
  22. assets/{image-BSW6HMFw.js → image-CvR5IrRj.js} +1 -1
  23. assets/{index-DraHnlQA.js → index-BMgZhVsi.js} +3 -3
  24. assets/{index-BmQmEpG2.js → index-BoLGpubZ.js} +1 -1
  25. assets/{index-BCo4pnCR.js → index-Bt_c0r2z.js} +1 -1
  26. assets/{index-DSXMBaIh.js → index-CYxDYfrf.js} +1 -1
  27. assets/{index-BGedhUcl.js → index-CbqFxSt5.js} +1 -1
  28. assets/{index-CTqAbTyg.js → index-DGsoPCO8.js} +1 -1
  29. assets/{index-Bg4nmRoP.css → index-DPQ69wgS.css} +0 -0
  30. assets/{index-Br9Fhbaw.js → index-DiBDJUPk.js} +1 -1
  31. assets/{index-DM6uRpJv.js → index-fb01Mqpw.js} +1 -1
  32. assets/{messages-Bu52yiHa.js → messages-9zYOm-8o.js} +1 -1
  33. assets/{openai-C2jmyh1H.js → openai-C0h04mkK.js} +1 -1
  34. assets/{openrouter-BcRJnMgp.js → openrouter-Be7POxFO.js} +1 -1
  35. assets/{providers-DeZ8eO-6.js → providers-JNx_EUL2.js} +1 -1
  36. assets/{queue-DIUCMOjh.js → queue-BVK4A6kJ.js} +1 -1
  37. assets/{queue-wgsMwoXE.js → queue-CGBwVF3U.js} +1 -1
  38. assets/{queues-CDLhb0jO.js → queues-CSlGUoy_.js} +1 -1
  39. assets/{speech-b4SwtB2M.js → speech-CdrLdEd-.js} +1 -1
  40. assets/{speech-DwMeD8n7.js → speech-QD7myZax.js} +1 -1
  41. assets/{stage-BIEcDo08.js → stage-CPd00CZ6.js} +1 -1
  42. assets/{v2-M-HKgmJw.js → v2-C3BMTE30.js} +1 -1
  43. index.html +2 -2
assets/BasicTextarea.vue_vue_type_script_setup_true_lang-CG2-D319.js DELETED
@@ -1,2 +0,0 @@
1
- import{d as g,ce as m,cf as h,g as s,p,z as x,E as y,o as E,c as M,n as T,V as _}from"./index-DraHnlQA.js";const V=g({__name:"BasicTextarea",props:{modelValue:{default:""},modelModifiers:{}},emits:m(["submit"],["update:modelValue"]),setup(u,{emit:i}){const c=i,a=h(u,"modelValue"),t=s(),l=s({height:"auto",overflowY:"hidden"});function f(e){e.target instanceof HTMLTextAreaElement&&(e.target.style.height="auto",e.target.style.height=`${e.target.scrollHeight}px`)}function d(e){var n,o;if(e.target instanceof HTMLTextAreaElement)if(e.code==="Enter"&&e.shiftKey){e.preventDefault();const r=(n=e.target)==null?void 0:n.selectionStart,v=(o=e.target)==null?void 0:o.selectionEnd;a.value=`${a.value.substring(0,r)}
2
- ${a.value.substring(v)}`,l.value.height="0",_().then(()=>{t.value&&(t.value.selectionStart=t.value.selectionEnd=r+1,l.value.height=`${t.value.scrollHeight}px`)})}else e.code==="Enter"&&(e.preventDefault(),c("submit",a.value))}return p(()=>{t.value&&(l.value.height=`${t.value.scrollHeight}px`)}),(e,n)=>x((E(),M("textarea",{ref_key:"textareaRef",ref:t,"onUpdate:modelValue":n[0]||(n[0]=o=>a.value=o),style:T(l.value),onInput:f,onKeydown:d},null,36)),[[y,a.value]])}});export{V as _};
 
 
 
assets/BasicTextarea.vue_vue_type_script_setup_true_lang-DvUeFWfi.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{d as c,ce as d,cf as f,g as s,w as p,z as v,E as x,o as h,c as y,n as _}from"./index-BMgZhVsi.js";const w=c({__name:"BasicTextarea",props:{modelValue:{default:""},modelModifiers:{}},emits:d(["submit"],["update:modelValue"]),setup(n,{emit:r}){const u=r,e=f(n,"modelValue"),a=s(),o=s("auto");function i(t){t.code==="Enter"&&!t.shiftKey&&(t.preventDefault(),u("submit",e.value))}return p(e,()=>{o.value="auto",requestAnimationFrame(()=>{a.value&&(o.value=`${a.value.scrollHeight}px`)})},{immediate:!0}),(t,l)=>v((h(),y("textarea",{ref_key:"textareaRef",ref:a,"onUpdate:modelValue":l[0]||(l[0]=m=>e.value=m),style:_({height:o.value}),onKeydown:i},null,36)),[[x,e.value]])}});export{w as _};
assets/{Collapsable.vue_vue_type_script_setup_true_lang-CoeIagAH.js → Collapsable.vue_vue_type_script_setup_true_lang-W8Zxiip1.js} RENAMED
@@ -1 +1 @@
1
- import{_ as d}from"./TransitionVertical.vue_vue_type_script_setup_true_lang-Ch4fEDgw.js";import{d as p,ce as f,cf as m,af as c,c as b,o as v,f as r,b as V,an as u,ao as k,k as y,m as g,$ as x,a as s,J as C,t as i}from"./index-DraHnlQA.js";const B={op50:""},w=p({__name:"Collapsable",props:f({default:{type:Boolean},label:null},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(o){const t=o,e=m(o,"modelValue");c(()=>{t.default!=null&&(e.value=!!t.default)});function n(a){return e.value=a,a}return(a,l)=>(v(),b("div",null,[r(a.$slots,"trigger",u(k({visible:e.value,setVisible:n})),()=>[s("button",{sticky:"","top-0":"","z-10":"",flex:"","items-center":"","justify-between":"",px2:"",py1:"","text-sm":"","backdrop-blur-xl":"",onClick:l[0]||(l[0]=_=>e.value=!e.value)},[s("span",null,i(t.label??"Collapsable"),1),l[1]||(l[1]=C()),s("span",B,i(e.value?"▲":"▼"),1)])]),V(d,null,{default:y(()=>[e.value?r(a.$slots,"default",u(x({key:0},{visible:e.value,setVisible:n}))):g("",!0)]),_:3})]))}});export{w as _};
 
1
+ import{_ as d}from"./TransitionVertical.vue_vue_type_script_setup_true_lang-CLmZcRWR.js";import{d as p,ce as f,cf as m,af as c,c as b,o as v,f as r,b as V,an as u,ao as k,k as y,m as g,$ as x,a as s,J as C,t as i}from"./index-BMgZhVsi.js";const B={op50:""},w=p({__name:"Collapsable",props:f({default:{type:Boolean},label:null},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(o){const t=o,e=m(o,"modelValue");c(()=>{t.default!=null&&(e.value=!!t.default)});function n(a){return e.value=a,a}return(a,l)=>(v(),b("div",null,[r(a.$slots,"trigger",u(k({visible:e.value,setVisible:n})),()=>[s("button",{sticky:"","top-0":"","z-10":"",flex:"","items-center":"","justify-between":"",px2:"",py1:"","text-sm":"","backdrop-blur-xl":"",onClick:l[0]||(l[0]=_=>e.value=!e.value)},[s("span",null,i(t.label??"Collapsable"),1),l[1]||(l[1]=C()),s("span",B,i(e.value?"▲":"▼"),1)])]),V(d,null,{default:y(()=>[e.value?r(a.$slots,"default",u(x({key:0},{visible:e.value,setVisible:n}))):g("",!0)]),_:3})]))}});export{w as _};
assets/{HeaderLink-Cb62pdxb.js → HeaderLink-B0cut292.js} RENAMED
@@ -1 +1 @@
1
- import{d as r,i as c,j as l,e,G as d,o as s,k as _,c as t,a,_ as i}from"./index-DraHnlQA.js";const k="/assets/logo-dark-CO0kwKsz.svg",p="/assets/logo-D6zeZTFl.svg",u=["src"],m=["src"],g=r({__name:"HeaderLink",setup(x){const n=c();return(f,o)=>(s(),l(e(d),{to:"/",flex:"~","items-center":"","gap-2":"","px-2":"","text-nowrap":"","text-2xl":"","outline-none":""},{default:_(()=>[e(n)?(s(),t("img",{key:0,src:e(k),"h-8":"","w-8":"",class:"theme-colored"},null,8,u)):(s(),t("img",{key:1,src:e(p),"h-8":"","w-8":"",class:"theme-colored"},null,8,m)),o[0]||(o[0]=a("div",{"font-cute":""},[a("span",null,"アイリ")],-1))]),_:1}))}}),L=i(g,[["__scopeId","data-v-496b6cde"]]);export{L as H,k as L,p as a};
 
1
+ import{d as r,i as c,j as l,e,G as d,o as s,k as _,c as t,a,_ as i}from"./index-BMgZhVsi.js";const k="/assets/logo-dark-CO0kwKsz.svg",p="/assets/logo-D6zeZTFl.svg",u=["src"],m=["src"],g=r({__name:"HeaderLink",setup(x){const n=c();return(f,o)=>(s(),l(e(d),{to:"/",flex:"~","items-center":"","gap-2":"","px-2":"","text-nowrap":"","text-2xl":"","outline-none":""},{default:_(()=>[e(n)?(s(),t("img",{key:0,src:e(k),"h-8":"","w-8":"",class:"theme-colored"},null,8,u)):(s(),t("img",{key:1,src:e(p),"h-8":"","w-8":"",class:"theme-colored"},null,8,m)),o[0]||(o[0]=a("div",{"font-cute":""},[a("span",null,"アイリ")],-1))]),_:1}))}}),L=i(g,[["__scopeId","data-v-496b6cde"]]);export{L as H,k as L,p as a};
assets/{IconStatusItem-BDOcdafO.js → IconStatusItem-DuAACaJU.js} RENAMED
@@ -1 +1 @@
1
- import{d as u,r as c,c as e,o as n,b as d,a as o,k as m,m as a,t as i,q as s,_}from"./index-DraHnlQA.js";import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-C_JkQof7.js";const p={flex:"~ col",bg:"neutral-200/50 dark:neutral-700",border:"neutral-100 dark:neutral-700 hover:primary-500/30 dark:hover:primary-400/30 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:"menu-icon-status-item",transition:"all ease-in-out duration-200","w-full":"","of-hidden":"","rounded-xl":""},g={"z-1":"","flex-1":""},h={"text-lg":"","font-bold":"",class:"menu-icon-status-item-title",transition:"all ease-in-out duration-200"},k={text:"sm neutral-500 dark:neutral-400",class:"menu-icon-status-item-description",transition:"all ease-in-out duration-200"},f=["src"],x={"p-2":""},v={key:0,"size-3":"",bg:"green-500 dark:green-600","rounded-full":""},y={key:1,"size-3":"",bg:"neutral-400 dark:neutral-500","rounded-full":""},b=u({__name:"IconStatusItem",props:{title:null,description:null,icon:null,iconColor:null,iconImage:null,to:null,configured:{type:Boolean}},setup(r){const t=r;return(I,C)=>{const l=c("RouterLink");return n(),e("div",p,[d(l,{flex:"~ row",class:"menu-icon-status-item-link",bg:"neutral-50 dark:neutral-800",transition:"all ease-in-out duration-200",relative:"","h-full":"","w-full":"","items-center":"","overflow-hidden":"","rounded-lg":"","p-5":"","text-left":"",to:t.to},{default:m(()=>[o("div",g,[o("div",h,i(t.title),1),o("div",k,[o("span",null,i(t.description),1)])]),t.icon?(n(),e("div",{key:0,class:s(["menu-icon-status-item-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)):a("",!0),t.iconColor?(n(),e("div",{key:1,class:s(["menu-icon-status-item-icon-color",[t.iconColor]]),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)):a("",!0),t.iconImage?(n(),e("img",{key:2,src:t.iconImage,class:"menu-icon-status-item-icon-image",transition:"all ease-in-out duration-500",absolute:"","right-0":"","size-16":"","translate-y-2":"","grayscale-100":""},null,8,f)):a("",!0)]),_:1},8,["to"]),o("div",x,[t.configured?(n(),e("div",v)):(n(),e("div",y))])])}}}),B=_(b,[["__scopeId","data-v-26e641e1"]]);export{B as I};
 
1
+ import{d as u,r as c,c as e,o as n,b as d,a as o,k as m,m as a,t as i,q as s,_}from"./index-BMgZhVsi.js";import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-B7SUuDYL.js";const p={flex:"~ col",bg:"neutral-200/50 dark:neutral-700",border:"neutral-100 dark:neutral-700 hover:primary-500/30 dark:hover:primary-400/30 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:"menu-icon-status-item",transition:"all ease-in-out duration-200","w-full":"","of-hidden":"","rounded-xl":""},g={"z-1":"","flex-1":""},h={"text-lg":"","font-bold":"",class:"menu-icon-status-item-title",transition:"all ease-in-out duration-200"},k={text:"sm neutral-500 dark:neutral-400",class:"menu-icon-status-item-description",transition:"all ease-in-out duration-200"},f=["src"],x={"p-2":""},v={key:0,"size-3":"",bg:"green-500 dark:green-600","rounded-full":""},y={key:1,"size-3":"",bg:"neutral-400 dark:neutral-500","rounded-full":""},b=u({__name:"IconStatusItem",props:{title:null,description:null,icon:null,iconColor:null,iconImage:null,to:null,configured:{type:Boolean}},setup(r){const t=r;return(I,C)=>{const l=c("RouterLink");return n(),e("div",p,[d(l,{flex:"~ row",class:"menu-icon-status-item-link",bg:"neutral-50 dark:neutral-800",transition:"all ease-in-out duration-200",relative:"","h-full":"","w-full":"","items-center":"","overflow-hidden":"","rounded-lg":"","p-5":"","text-left":"",to:t.to},{default:m(()=>[o("div",g,[o("div",h,i(t.title),1),o("div",k,[o("span",null,i(t.description),1)])]),t.icon?(n(),e("div",{key:0,class:s(["menu-icon-status-item-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)):a("",!0),t.iconColor?(n(),e("div",{key:1,class:s(["menu-icon-status-item-icon-color",[t.iconColor]]),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)):a("",!0),t.iconImage?(n(),e("img",{key:2,src:t.iconImage,class:"menu-icon-status-item-icon-image",transition:"all ease-in-out duration-500",absolute:"","right-0":"","size-16":"","translate-y-2":"","grayscale-100":""},null,8,f)):a("",!0)]),_:1},8,["to"]),o("div",x,[t.configured?(n(),e("div",v)):(n(),e("div",y))])])}}}),B=_(b,[["__scopeId","data-v-26e641e1"]]);export{B as I};
assets/{Live2DSettings.vue_vue_type_script_setup_true_lang-CSa2O48R.js → Live2DSettings.vue_vue_type_script_setup_true_lang-R42naQro.js} RENAMED
@@ -1,4 +1,4 @@
1
- var _a=Object.defineProperty;var Sa=(e,t,n)=>t in e?_a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ai=(e,t,n)=>Sa(e,typeof t!="symbol"?t+"":t,n);import{e as Rr,T as Wo,A as Ia,L as Cr,a as Xo,c as Ra,r as Zo,E as Ca,D as Na,I as La,l as Nr,M as Oa,b as ki,V as Pa,d as Da,f as za,g as Lr,h as Fa,i as Ei,j as Ba,k as Ua,m as ja,s as Va,n as Ha,o as Ga,p as Mi,q as qa,J as $a}from"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-C_JkQof7.js";import{r as Qo,a as Jo,b as es,c as ts,l as Ya,u as Ka}from"./providers-DeZ8eO-6.js";import{d as Je,g as Q,w as Pe,p as qt,P as Nt,c as Ce,o as Me,f as pn,ar as Gn,h as Be,v as ns,as as Wa,N as _i,i as Xa,at as rs,au as ei,x as rn,y as ln,av as Za,aw as Qa,F as Or,a as U,ax as is,ay as Ja,S as el,j as un,k as qe,b as Ne,q as cn,z as On,A as os,m as $t,t as Ae,az as ht,aA as wt,a9 as ti,aB as qn,aC as Pn,e as Z,aD as tl,aE as re,aF as Si,aG as Dn,aH as Ut,aI as Oe,aJ as Tt,aK as nl,aL as ss,aM as fn,aN as ni,aO as Fe,aP as as,aQ as ls,aR as ri,aS as hn,aT as rl,aU as ii,aV as il,aW as us,aX as mt,aY as oi,aZ as At,a_ as ol,a$ as cs,b0 as Ct,b1 as fs,ap as sl,b2 as al,B as ll,b3 as ul,af as ds,b4 as $n,b5 as cl,b6 as fl,b7 as dl,b8 as Rt,b9 as pl,ba as hl,bb as ml,bc as gl,bd as Qn,be as zn,bf as Pr,bg as St,bh as ps,bi as Dr,bj as Ft,bk as Ii,bl as It,bm as Bt,bn as Jn,bo as yl,bp as xl,bq as bl,br as vl,bs as hs,bt as ms,bu as Fn,bv as gs,bw as si,bx as Bn,by as ys,bz as wl,n as Ri,bA as Tl,bB as zr,bC as xs,bD as Al,bE as on,bF as bs,bG as lt,bH as gt,bI as dn,bJ as kl,bK as El,bL as Ml,bM as _l,bN as Sl,bO as ai,bP as Il,bQ as Rl,bR as Cl,bS as er,bT as Nl,bU as vs,bV as Ll,bW as Ol,bX as Pl,bY as Dl,bZ as zl,b_ as tr,b$ as Fl,c0 as Bl,c1 as Ul,c2 as Ci,c3 as Ni,c4 as Li,c5 as Oi,c6 as jl,c7 as Vl,c8 as Hl,c9 as Gl,ca as ql,_ as $l,cb as Yl,cc as Kl,E as Wl,C as Pi,H as Xl}from"./index-DraHnlQA.js";import{u as nr}from"./queue-DIUCMOjh.js";import{b as Zl,a as Ql,u as Jl,l as eu}from"./queues-CDLhb0jO.js";import{u as tu}from"./speech-DwMeD8n7.js";import{_ as ws}from"./TransitionVertical.vue_vue_type_script_setup_true_lang-Ch4fEDgw.js";import{_ as Un}from"./Collapsable.vue_vue_type_script_setup_true_lang-CoeIagAH.js";const nu=Je({__name:"Canvas",props:{width:null,height:null},setup(e){const t=e,n=Q(),r=Q(),i=Q();async function o(a){Cr.registerTicker(Xo),Rr.add(Wo),r.value=new Ia({width:t.width,height:t.height,backgroundAlpha:0}),i.value=r.value.view,i.value.style.objectFit="contain",a.appendChild(r.value.view)}function s(){var a;r.value&&r.value.renderer.resize(t.width,t.height),(a=r.value)!=null&&a.view&&(r.value.view.width=t.width,r.value.view.height=t.height)}return Pe([()=>t.width,()=>t.height],()=>s()),qt(async()=>n.value&&await o(n.value)),Nt(()=>{var a;return(a=r.value)==null?void 0:a.destroy()}),(a,l)=>(Me(),Ce("div",{ref_key:"containerRef",ref:n,"h-full":"","w-full":""},[pn(a.$slots,"default",{app:r.value})],512))}}),ru=e=>Math.max(0,Math.min(1,e||0)),rr=e=>Math.round(ru(e)*255),iu=Ra("rgb"),ou=e=>{if(e===void 0)return;let t=rr(e.r),n=rr(e.g),r=rr(e.b);return"#"+(1<<24|t<<16|n<<8|r).toString(16).slice(1)},su=e=>ou(iu(e));function Di(e,t,n){return(1-n)*e+n*t}function _t(e,t){return e+Math.random()*(t-e)}async function*au(e,t){const n=e.getReader();try{for(;;){const{done:r,value:i}=await n.read();if(r)return;yield t(i)}}finally{n.releaseLock()}}function lu(){let e=-1,t,n=-1;function r(i,o){(o>=e||o<n)&&(t=[_t(-1,1),_t(-1,.7)],n=o,e=o+Zo()/1e3,i.focusController.focus(t[0]*.5,t[1]*.5,!1)),i.focusController.update(o-n);const s=i.coreModel;s.setParameterValueById("ParamEyeBallX",Di(s.getParameterValueById("ParamEyeBallX"),t[0],.3)),s.setParameterValueById("ParamEyeBallY",Di(s.getParameterValueById("ParamEyeBallY"),t[1],.3))}return{update:r}}function uu(e){const t=new Uint8Array(e.frequencyBinCount);e.getByteFrequencyData(t);const n=[];for(let i=0;i<700;i+=80)n.push(t[i]);return t.map(i=>i**1.2).map(i=>i*1.2).reduce((i,o)=>i+o,0)/t.length/100}function cu(e){const t=new Uint8Array(e.frequencyBinCount);e.getByteFrequencyData(t);const n=[];for(let u=0;u<700;u+=80)n.push(t[u]);const r=t.map(u=>u**1.5),i=Math.min(...r),s=Math.max(...r)-i;let a;return s===0?a=r.map(()=>0):a=r.map(u=>(u-i)/s),a.reduce((u,c)=>u+c,0)/t.length}function fu(e,t="linear"){switch(t){case"linear":return uu(e);case"minmax":return cu(e)}}const du=Gn("AudioContext",()=>({audioContext:new AudioContext,calculateVolume:fu})),pu=Gn("SpeakingStore",()=>{const n=Q(0),r=Q(!1),i=Be(()=>r.value?(30+70*n.value)/100:30);return{mouthOpenSize:n,nowSpeaking:r,nowSpeakingAvatarBorderOpacity:i}});function wn(e,t,n){return t+n<0||t+n>=e.length-1?"":e[t+n]}function hu(e){let t="literal",n="";return{async consume(r){var i,o,s;for(let a=0;a<r.length;a++){let l=r[a],u=t;l==="<"&&wn(r,a,1)==="|"?(l+=wn(r,a,1),u="special",a++):l==="|"&&wn(r,a,1)===">"?(l+=wn(r,a,1),u="literal",a++):l==="<"?u="special":l===">"&&(u="literal"),t==="literal"&&u==="special"?n!==""&&(await((i=e.onLiteral)==null?void 0:i.call(e,n)),n=""):t==="special"&&u==="literal"&&n!==""&&(n+=l,await((o=e.onSpecial)==null?void 0:o.call(e,n)),n=""),t==="literal"&&u==="literal"?(await((s=e.onLiteral)==null?void 0:s.call(e,l)),n=""):t==="special"&&u==="literal"?n="":n+=l,t=u}},async end(){var r,i;n!==""&&(t==="literal"?await((r=e.onLiteral)==null?void 0:r.call(e,n)):n.endsWith("|>")&&await((i=e.onSpecial)==null?void 0:i.call(e,n)))}}}function mu(e,t){return{role:"system",content:[e,Ca.map(n=>`- ${n}`).join(`
2
  `),t].join(`
3
 
4
  `)}}var gu=async e=>{var t;return(e.fetch??globalThis.fetch)(Qo("chat/completions",e.baseURL),{body:es({...e,tools:(t=e.tools)==null?void 0:t.map(n=>({function:n.function,type:"function"}))}),headers:Jo({"Content-Type":"application/json",...e.headers},e.apiKey),method:"POST",signal:e.abortSignal}).then(ts)},yu=e=>typeof e=="string"||Array.isArray(e)&&e.every(t=>!!(typeof t=="object"&&"type"in t&&["audio","image","text"].includes(t.type)))?e:JSON.stringify(e),Tn=class extends Error{constructor(t,n){super(t);Ai(this,"response");this.name="XSAIError",this.response=n}},zi="data:",xu=e=>{if(!e||!e.startsWith(zi))return[void 0,!1];const t=e.slice(zi.length),n=t.startsWith(" ")?t.slice(1):t;if(n==="[DONE]")return[void 0,!0];if(n.startsWith("{")&&n.includes('"error":'))throw new Error(`Error from server: ${n}`);return[JSON.parse(n),!1]},bu=async e=>{let t,n,r;const i=new ReadableStream({start(p){t=p}}),o=new ReadableStream({start(p){n=p}}),s=new ReadableStream({start(p){r=p}}),a=e.maxSteps??1,l=new TextDecoder,u=[],c=async p=>{var R,M,C;const d={choices:[],messages:structuredClone(p.messages),toolCalls:[],toolResults:[]},g={};let A="",v=!0;const w=(O,h)=>{if(O.endedToolCallIDs.has(h))return;const S=d.choices[O.index].message.tool_calls[h];try{S.function.parsed_arguments=JSON.parse(S.function.arguments)}catch(x){O.toolCallErrors[h]=x}O.endedToolCallIDs.add(h),O.currentToolID=null};if(await gu({...p,stream:!0}).then(async O=>O.body.pipeThrough(new TransformStream({transform:async(h,S)=>{const x=l.decode(h,{stream:!0});A+=x;const y=A.split(`
 
1
+ var _a=Object.defineProperty;var Sa=(e,t,n)=>t in e?_a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ai=(e,t,n)=>Sa(e,typeof t!="symbol"?t+"":t,n);import{e as Rr,T as Wo,A as Ia,L as Cr,a as Xo,c as Ra,r as Zo,E as Ca,D as Na,I as La,l as Nr,M as Oa,b as ki,V as Pa,d as Da,f as za,g as Lr,h as Fa,i as Ei,j as Ba,k as Ua,m as ja,s as Va,n as Ha,o as Ga,p as Mi,q as qa,J as $a}from"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-B7SUuDYL.js";import{r as Qo,a as Jo,b as es,c as ts,l as Ya,u as Ka}from"./providers-JNx_EUL2.js";import{d as Je,g as Q,w as Pe,p as qt,P as Nt,c as Ce,o as Me,f as pn,ar as Gn,h as Be,v as ns,as as Wa,N as _i,i as Xa,at as rs,au as ei,x as rn,y as ln,av as Za,aw as Qa,F as Or,a as U,ax as is,ay as Ja,S as el,j as un,k as qe,b as Ne,q as cn,z as On,A as os,m as $t,t as Ae,az as ht,aA as wt,a9 as ti,aB as qn,aC as Pn,e as Z,aD as tl,aE as re,aF as Si,aG as Dn,aH as Ut,aI as Oe,aJ as Tt,aK as nl,aL as ss,aM as fn,aN as ni,aO as Fe,aP as as,aQ as ls,aR as ri,aS as hn,aT as rl,aU as ii,aV as il,aW as us,aX as mt,aY as oi,aZ as At,a_ as ol,a$ as cs,b0 as Ct,b1 as fs,ap as sl,b2 as al,B as ll,b3 as ul,af as ds,b4 as $n,b5 as cl,b6 as fl,b7 as dl,b8 as Rt,b9 as pl,ba as hl,bb as ml,bc as gl,bd as Qn,be as zn,bf as Pr,bg as St,bh as ps,bi as Dr,bj as Ft,bk as Ii,bl as It,bm as Bt,bn as Jn,bo as yl,bp as xl,bq as bl,br as vl,bs as hs,bt as ms,bu as Fn,bv as gs,bw as si,bx as Bn,by as ys,bz as wl,n as Ri,bA as Tl,bB as zr,bC as xs,bD as Al,bE as on,bF as bs,bG as lt,bH as gt,bI as dn,bJ as kl,bK as El,bL as Ml,bM as _l,bN as Sl,bO as ai,bP as Il,bQ as Rl,bR as Cl,bS as er,bT as Nl,bU as vs,bV as Ll,bW as Ol,bX as Pl,bY as Dl,bZ as zl,b_ as tr,b$ as Fl,c0 as Bl,c1 as Ul,c2 as Ci,c3 as Ni,c4 as Li,c5 as Oi,c6 as jl,c7 as Vl,c8 as Hl,c9 as Gl,ca as ql,_ as $l,cb as Yl,cc as Kl,E as Wl,C as Pi,H as Xl}from"./index-BMgZhVsi.js";import{u as nr}from"./queue-BVK4A6kJ.js";import{b as Zl,a as Ql,u as Jl,l as eu}from"./queues-CSlGUoy_.js";import{u as tu}from"./speech-QD7myZax.js";import{_ as ws}from"./TransitionVertical.vue_vue_type_script_setup_true_lang-CLmZcRWR.js";import{_ as Un}from"./Collapsable.vue_vue_type_script_setup_true_lang-W8Zxiip1.js";const nu=Je({__name:"Canvas",props:{width:null,height:null},setup(e){const t=e,n=Q(),r=Q(),i=Q();async function o(a){Cr.registerTicker(Xo),Rr.add(Wo),r.value=new Ia({width:t.width,height:t.height,backgroundAlpha:0}),i.value=r.value.view,i.value.style.objectFit="contain",a.appendChild(r.value.view)}function s(){var a;r.value&&r.value.renderer.resize(t.width,t.height),(a=r.value)!=null&&a.view&&(r.value.view.width=t.width,r.value.view.height=t.height)}return Pe([()=>t.width,()=>t.height],()=>s()),qt(async()=>n.value&&await o(n.value)),Nt(()=>{var a;return(a=r.value)==null?void 0:a.destroy()}),(a,l)=>(Me(),Ce("div",{ref_key:"containerRef",ref:n,"h-full":"","w-full":""},[pn(a.$slots,"default",{app:r.value})],512))}}),ru=e=>Math.max(0,Math.min(1,e||0)),rr=e=>Math.round(ru(e)*255),iu=Ra("rgb"),ou=e=>{if(e===void 0)return;let t=rr(e.r),n=rr(e.g),r=rr(e.b);return"#"+(1<<24|t<<16|n<<8|r).toString(16).slice(1)},su=e=>ou(iu(e));function Di(e,t,n){return(1-n)*e+n*t}function _t(e,t){return e+Math.random()*(t-e)}async function*au(e,t){const n=e.getReader();try{for(;;){const{done:r,value:i}=await n.read();if(r)return;yield t(i)}}finally{n.releaseLock()}}function lu(){let e=-1,t,n=-1;function r(i,o){(o>=e||o<n)&&(t=[_t(-1,1),_t(-1,.7)],n=o,e=o+Zo()/1e3,i.focusController.focus(t[0]*.5,t[1]*.5,!1)),i.focusController.update(o-n);const s=i.coreModel;s.setParameterValueById("ParamEyeBallX",Di(s.getParameterValueById("ParamEyeBallX"),t[0],.3)),s.setParameterValueById("ParamEyeBallY",Di(s.getParameterValueById("ParamEyeBallY"),t[1],.3))}return{update:r}}function uu(e){const t=new Uint8Array(e.frequencyBinCount);e.getByteFrequencyData(t);const n=[];for(let i=0;i<700;i+=80)n.push(t[i]);return t.map(i=>i**1.2).map(i=>i*1.2).reduce((i,o)=>i+o,0)/t.length/100}function cu(e){const t=new Uint8Array(e.frequencyBinCount);e.getByteFrequencyData(t);const n=[];for(let u=0;u<700;u+=80)n.push(t[u]);const r=t.map(u=>u**1.5),i=Math.min(...r),s=Math.max(...r)-i;let a;return s===0?a=r.map(()=>0):a=r.map(u=>(u-i)/s),a.reduce((u,c)=>u+c,0)/t.length}function fu(e,t="linear"){switch(t){case"linear":return uu(e);case"minmax":return cu(e)}}const du=Gn("AudioContext",()=>({audioContext:new AudioContext,calculateVolume:fu})),pu=Gn("SpeakingStore",()=>{const n=Q(0),r=Q(!1),i=Be(()=>r.value?(30+70*n.value)/100:30);return{mouthOpenSize:n,nowSpeaking:r,nowSpeakingAvatarBorderOpacity:i}});function wn(e,t,n){return t+n<0||t+n>=e.length-1?"":e[t+n]}function hu(e){let t="literal",n="";return{async consume(r){var i,o,s;for(let a=0;a<r.length;a++){let l=r[a],u=t;l==="<"&&wn(r,a,1)==="|"?(l+=wn(r,a,1),u="special",a++):l==="|"&&wn(r,a,1)===">"?(l+=wn(r,a,1),u="literal",a++):l==="<"?u="special":l===">"&&(u="literal"),t==="literal"&&u==="special"?n!==""&&(await((i=e.onLiteral)==null?void 0:i.call(e,n)),n=""):t==="special"&&u==="literal"&&n!==""&&(n+=l,await((o=e.onSpecial)==null?void 0:o.call(e,n)),n=""),t==="literal"&&u==="literal"?(await((s=e.onLiteral)==null?void 0:s.call(e,l)),n=""):t==="special"&&u==="literal"?n="":n+=l,t=u}},async end(){var r,i;n!==""&&(t==="literal"?await((r=e.onLiteral)==null?void 0:r.call(e,n)):n.endsWith("|>")&&await((i=e.onSpecial)==null?void 0:i.call(e,n)))}}}function mu(e,t){return{role:"system",content:[e,Ca.map(n=>`- ${n}`).join(`
2
  `),t].join(`
3
 
4
  `)}}var gu=async e=>{var t;return(e.fetch??globalThis.fetch)(Qo("chat/completions",e.baseURL),{body:es({...e,tools:(t=e.tools)==null?void 0:t.map(n=>({function:n.function,type:"function"}))}),headers:Jo({"Content-Type":"application/json",...e.headers},e.apiKey),method:"POST",signal:e.abortSignal}).then(ts)},yu=e=>typeof e=="string"||Array.isArray(e)&&e.every(t=>!!(typeof t=="object"&&"type"in t&&["audio","image","text"].includes(t.type)))?e:JSON.stringify(e),Tn=class extends Error{constructor(t,n){super(t);Ai(this,"response");this.name="XSAIError",this.response=n}},zi="data:",xu=e=>{if(!e||!e.startsWith(zi))return[void 0,!1];const t=e.slice(zi.length),n=t.startsWith(" ")?t.slice(1):t;if(n==="[DONE]")return[void 0,!0];if(n.startsWith("{")&&n.includes('"error":'))throw new Error(`Error from server: ${n}`);return[JSON.parse(n),!1]},bu=async e=>{let t,n,r;const i=new ReadableStream({start(p){t=p}}),o=new ReadableStream({start(p){n=p}}),s=new ReadableStream({start(p){r=p}}),a=e.maxSteps??1,l=new TextDecoder,u=[],c=async p=>{var R,M,C;const d={choices:[],messages:structuredClone(p.messages),toolCalls:[],toolResults:[]},g={};let A="",v=!0;const w=(O,h)=>{if(O.endedToolCallIDs.has(h))return;const S=d.choices[O.index].message.tool_calls[h];try{S.function.parsed_arguments=JSON.parse(S.function.arguments)}catch(x){O.toolCallErrors[h]=x}O.endedToolCallIDs.add(h),O.currentToolID=null};if(await gu({...p,stream:!0}).then(async O=>O.body.pipeThrough(new TransformStream({transform:async(h,S)=>{const x=l.decode(h,{stream:!0});A+=x;const y=A.split(`
assets/{MobileInteractiveArea-olUfoEr4.css → MobileInteractiveArea-CkhuOcV9.css} RENAMED
@@ -1 +1 @@
1
- .animate-stripe[data-v-e8dbc010]{background-image:repeating-linear-gradient(-45deg,#a16207,#a16207 25px,#eab308 25px,#eab308 50px);background-size:175% 100%}.animate-stripe[data-v-e8dbc010]:hover{animation:progress-e8dbc010 2s linear infinite}@-webkit-keyframes progress-e8dbc010{0%{background-position:0 0}to{background-position:-75px 0px}}@-moz-keyframes progress-e8dbc010{0%{background-position:0 0}to{background-position:-75px 0px}}@-ms-keyframes progress-e8dbc010{0%{background-position:0 0}to{background-position:-75px 0px}}@keyframes progress-e8dbc010{0%{background-position:0 0}to{background-position:-70px 0px}}.theme-colored[data-v-2d5e277e]{filter:hue-rotate(calc(var(--theme-colors-hue, 0) * 1deg))}.slide-forward-enter-active[data-v-2a32d08f],.slide-forward-leave-active[data-v-2a32d08f]{transition:all .2s ease;position:absolute;width:100%}.slide-forward-enter-from[data-v-2a32d08f]{transform:translate(100%)}.slide-forward-leave-to[data-v-2a32d08f]{transform:translate(-30%);opacity:0}.slide-forward-enter-to[data-v-2a32d08f],.slide-forward-leave-from[data-v-2a32d08f]{transform:translate(0)}.slide-backward-enter-active[data-v-2a32d08f],.slide-backward-leave-active[data-v-2a32d08f]{transition:all .2s ease;position:absolute;width:100%}.slide-backward-enter-from[data-v-2a32d08f]{transform:translate(-30%);opacity:0}.slide-backward-leave-to[data-v-2a32d08f]{transform:translate(100%)}.slide-backward-enter-to[data-v-2a32d08f],.slide-backward-leave-from[data-v-2a32d08f]{transform:translate(0)}
 
1
+ .animate-stripe[data-v-98f97943]{background-image:repeating-linear-gradient(-45deg,#a16207,#a16207 25px,#eab308 25px,#eab308 50px);background-size:175% 100%}.animate-stripe[data-v-98f97943]:hover{animation:progress-98f97943 2s linear infinite}@-webkit-keyframes progress-98f97943{0%{background-position:0 0}to{background-position:-75px 0px}}@-moz-keyframes progress-98f97943{0%{background-position:0 0}to{background-position:-75px 0px}}@-ms-keyframes progress-98f97943{0%{background-position:0 0}to{background-position:-75px 0px}}@keyframes progress-98f97943{0%{background-position:0 0}to{background-position:-70px 0px}}.theme-colored[data-v-2d5e277e]{filter:hue-rotate(calc(var(--theme-colors-hue, 0) * 1deg))}.slide-forward-enter-active[data-v-2a32d08f],.slide-forward-leave-active[data-v-2a32d08f]{transition:all .2s ease;position:absolute;width:100%}.slide-forward-enter-from[data-v-2a32d08f]{transform:translate(100%)}.slide-forward-leave-to[data-v-2a32d08f]{transform:translate(-30%);opacity:0}.slide-forward-enter-to[data-v-2a32d08f],.slide-forward-leave-from[data-v-2a32d08f]{transform:translate(0)}.slide-backward-enter-active[data-v-2a32d08f],.slide-backward-leave-active[data-v-2a32d08f]{transition:all .2s ease;position:absolute;width:100%}.slide-backward-enter-from[data-v-2a32d08f]{transform:translate(-30%);opacity:0}.slide-backward-leave-to[data-v-2a32d08f]{transform:translate(100%)}.slide-backward-enter-to[data-v-2a32d08f],.slide-backward-leave-from[data-v-2a32d08f]{transform:translate(0)}
assets/{MobileInteractiveArea.vue_vue_type_script_setup_true_lang-Cdag5m7E.js → MobileInteractiveArea.vue_vue_type_script_setup_true_lang-DWigyVWY.js} RENAMED
The diff for this file is too large to render. See raw diff
 
assets/{RadioCardSimple-CtAvpvdI.js → RadioCardSimple-BeqOivcn.js} RENAMED
@@ -1 +1 @@
1
- import{d as o,c as l,o as d,q as r,a as t,m as u,t as i,_ as s}from"./index-DraHnlQA.js";import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-C_JkQof7.js";const m=["checked","name","value"],c={flex:"~ col","min-h-16":"","w-full":"","items-start":"","justify-center":"","pb-2":"","pl-5":"","pr-4":"","pt-2":""},b=o({__name:"RadioCardSimple",props:{id:null,name:null,value:null,title:null,description:null,modelValue:null},emits:["update:modelValue"],setup(e){return(n,a)=>(d(),l("label",{key:e.id,border:"2px solid",class:r(["form_radio-card-simple relative",[e.modelValue===e.value?"bg-primary-50 dark:bg-primary-900/20 border-primary-100 dark:border-primary-900 hover:border-primary-500/30 dark:hover:border-primary-400/30":"bg-white dark:bg-neutral-900/20 border-neutral-100 dark:border-neutral-700 hover:border-primary-500/30 dark:hover:border-primary-400/30",e.modelValue===e.value?"form_radio-card-simple-active":""]]),transition:"all duration-200 ease-in-out",flex:"~ col",block:"","min-w-50":"","w-fit":"","cursor-pointer":"","items-start":"","rounded-xl":"","p-4":"","text-left":""},[t("input",{checked:e.modelValue===e.value,type:"radio",name:e.name,value:e.value,class:"[&:checked+div]:border-primary-500 dark:[&:checked+div]:border-primary-400 absolute opacity-0 [&:checked+div_.radio-dot]:opacity-100",onChange:a[0]||(a[0]=k=>n.$emit("update:modelValue",e.value))},null,40,m),a[1]||(a[1]=t("div",{class:"radio-circle absolute left-2 top-2 size-5 rounded-full",border:"2 solid neutral-300 dark:neutral-600",transition:"all duration-200 ease-in-out"},[t("div",{class:"radio-dot absolute left-1/2 top-1/2 size-3 rounded-full opacity-0 -translate-x-1/2 -translate-y-1/2",transition:"all duration-200 ease-in-out",bg:"primary-500 dark:primary-400"})],-1)),t("div",c,[t("span",{class:r(["radio-item-name font-bold",[e.modelValue===e.value?"text-neutral-700 dark:text-neutral-300":"text-neutral-500 dark:text-neutral-500"]]),text:"md",transition:"all duration-200 ease-in-out"},i(e.title),3),e.description?(d(),l("span",{key:0,class:r(["radio-item-description",[e.modelValue===e.value?"text-neutral-600 dark:text-neutral-400":"text-neutral-400 dark:text-neutral-600"]]),transition:"all duration-200 ease-in-out"},i(e.description),3)):u("",!0)]),a[2]||(a[2]=t("div",{class:"bg-dotted-neutral-200/80 dark:bg-dotted-neutral-700/50 [input:checked~&]:bg-dotted-primary-300/50 dark:[input:checked~&]:bg-dotted-primary-200/20",absolute:"","inset-0":"","z--1":"",style:{"background-size":"10px 10px","mask-image":"linear-gradient(165deg, white 30%, transparent 50%)"}},null,-1))],2))}}),y=s(b,[["__scopeId","data-v-106e4bf7"]]);export{y as R};
 
1
+ import{d as o,c as l,o as d,q as r,a as t,m as u,t as i,_ as s}from"./index-BMgZhVsi.js";import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-B7SUuDYL.js";const m=["checked","name","value"],c={flex:"~ col","min-h-16":"","w-full":"","items-start":"","justify-center":"","pb-2":"","pl-5":"","pr-4":"","pt-2":""},b=o({__name:"RadioCardSimple",props:{id:null,name:null,value:null,title:null,description:null,modelValue:null},emits:["update:modelValue"],setup(e){return(n,a)=>(d(),l("label",{key:e.id,border:"2px solid",class:r(["form_radio-card-simple relative",[e.modelValue===e.value?"bg-primary-50 dark:bg-primary-900/20 border-primary-100 dark:border-primary-900 hover:border-primary-500/30 dark:hover:border-primary-400/30":"bg-white dark:bg-neutral-900/20 border-neutral-100 dark:border-neutral-700 hover:border-primary-500/30 dark:hover:border-primary-400/30",e.modelValue===e.value?"form_radio-card-simple-active":""]]),transition:"all duration-200 ease-in-out",flex:"~ col",block:"","min-w-50":"","w-fit":"","cursor-pointer":"","items-start":"","rounded-xl":"","p-4":"","text-left":""},[t("input",{checked:e.modelValue===e.value,type:"radio",name:e.name,value:e.value,class:"[&:checked+div]:border-primary-500 dark:[&:checked+div]:border-primary-400 absolute opacity-0 [&:checked+div_.radio-dot]:opacity-100",onChange:a[0]||(a[0]=k=>n.$emit("update:modelValue",e.value))},null,40,m),a[1]||(a[1]=t("div",{class:"radio-circle absolute left-2 top-2 size-5 rounded-full",border:"2 solid neutral-300 dark:neutral-600",transition:"all duration-200 ease-in-out"},[t("div",{class:"radio-dot absolute left-1/2 top-1/2 size-3 rounded-full opacity-0 -translate-x-1/2 -translate-y-1/2",transition:"all duration-200 ease-in-out",bg:"primary-500 dark:primary-400"})],-1)),t("div",c,[t("span",{class:r(["radio-item-name font-bold",[e.modelValue===e.value?"text-neutral-700 dark:text-neutral-300":"text-neutral-500 dark:text-neutral-500"]]),text:"md",transition:"all duration-200 ease-in-out"},i(e.title),3),e.description?(d(),l("span",{key:0,class:r(["radio-item-description",[e.modelValue===e.value?"text-neutral-600 dark:text-neutral-400":"text-neutral-400 dark:text-neutral-600"]]),transition:"all duration-200 ease-in-out"},i(e.description),3)):u("",!0)]),a[2]||(a[2]=t("div",{class:"bg-dotted-neutral-200/80 dark:bg-dotted-neutral-700/50 [input:checked~&]:bg-dotted-primary-300/50 dark:[input:checked~&]:bg-dotted-primary-200/20",absolute:"","inset-0":"","z--1":"",style:{"background-size":"10px 10px","mask-image":"linear-gradient(165deg, white 30%, transparent 50%)"}},null,-1))],2))}}),y=s(b,[["__scopeId","data-v-106e4bf7"]]);export{y as R};
assets/{Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-C_JkQof7.js → Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-B7SUuDYL.js} RENAMED
The diff for this file is too large to render. See raw diff
 
assets/{TransitionVertical.vue_vue_type_script_setup_true_lang-Ch4fEDgw.js → TransitionVertical.vue_vue_type_script_setup_true_lang-CLmZcRWR.js} RENAMED
@@ -1 +1 @@
1
- import{d as T,j as l,o as m,T as B,k as b,f as v}from"./index-DraHnlQA.js";const n="0px",W=T({__name:"TransitionVertical",props:{duration:{default:250},easingEnter:{default:"ease-in-out"},easingLeave:{default:"ease-in-out"},opacityClosed:{default:0},opacityOpened:{default:1}},setup(c){const r=c;function p(o){return{height:o.style.height,width:o.style.width,position:o.style.position,visibility:o.style.visibility,overflow:o.style.overflow,paddingTop:o.style.paddingTop,paddingBottom:o.style.paddingBottom,borderTopWidth:o.style.borderTopWidth,borderBottomWidth:o.style.borderBottomWidth,marginTop:o.style.marginTop,marginBottom:o.style.marginBottom}}function y(o,t){const{width:i}=getComputedStyle(o);o.style.width=i,o.style.position="absolute",o.style.visibility="hidden",o.style.height="";const{height:s}=getComputedStyle(o);return o.style.width=t.width,o.style.position=t.position,o.style.visibility=t.visibility,o.style.height=n,o.style.overflow="hidden",t.height&&t.height!==n?t.height:s}function h(o,t,i,s,d){const e=o.animate(s,d);o.style.height=t.height,e.onfinish=()=>{o.style.overflow=t.overflow,i()}}function g(o,t){return[{height:n,opacity:r.opacityClosed,paddingTop:n,paddingBottom:n,borderTopWidth:n,borderBottomWidth:n,marginTop:n,marginBottom:n},{height:o,opacity:r.opacityOpened,paddingTop:t.paddingTop,paddingBottom:t.paddingBottom,borderTopWidth:t.borderTopWidth,borderBottomWidth:t.borderBottomWidth,marginTop:t.marginTop,marginBottom:t.marginBottom}]}function u(o,t){const i=o,s=p(i),d=y(i,s),e=g(d,s),a={duration:r.duration,easing:r.easingEnter};h(i,s,t,e,a)}function f(o,t){const i=o,s=p(i),{height:d}=getComputedStyle(i);i.style.height=d,i.style.overflow="hidden";const e=g(d,s).reverse(),a={duration:r.duration,easing:r.easingLeave};h(i,s,t,e,a)}return(o,t)=>(m(),l(B,{css:!1,onEnter:u,onLeave:f},{default:b(()=>[v(o.$slots,"default")]),_:3}))}});export{W as _};
 
1
+ import{d as T,j as l,o as m,T as B,k as b,f as v}from"./index-BMgZhVsi.js";const n="0px",W=T({__name:"TransitionVertical",props:{duration:{default:250},easingEnter:{default:"ease-in-out"},easingLeave:{default:"ease-in-out"},opacityClosed:{default:0},opacityOpened:{default:1}},setup(c){const r=c;function p(o){return{height:o.style.height,width:o.style.width,position:o.style.position,visibility:o.style.visibility,overflow:o.style.overflow,paddingTop:o.style.paddingTop,paddingBottom:o.style.paddingBottom,borderTopWidth:o.style.borderTopWidth,borderBottomWidth:o.style.borderBottomWidth,marginTop:o.style.marginTop,marginBottom:o.style.marginBottom}}function y(o,t){const{width:i}=getComputedStyle(o);o.style.width=i,o.style.position="absolute",o.style.visibility="hidden",o.style.height="";const{height:s}=getComputedStyle(o);return o.style.width=t.width,o.style.position=t.position,o.style.visibility=t.visibility,o.style.height=n,o.style.overflow="hidden",t.height&&t.height!==n?t.height:s}function h(o,t,i,s,d){const e=o.animate(s,d);o.style.height=t.height,e.onfinish=()=>{o.style.overflow=t.overflow,i()}}function g(o,t){return[{height:n,opacity:r.opacityClosed,paddingTop:n,paddingBottom:n,borderTopWidth:n,borderBottomWidth:n,marginTop:n,marginBottom:n},{height:o,opacity:r.opacityOpened,paddingTop:t.paddingTop,paddingBottom:t.paddingBottom,borderTopWidth:t.borderTopWidth,borderBottomWidth:t.borderBottomWidth,marginTop:t.marginTop,marginBottom:t.marginBottom}]}function u(o,t){const i=o,s=p(i),d=y(i,s),e=g(d,s),a={duration:r.duration,easing:r.easingEnter};h(i,s,t,e,a)}function f(o,t){const i=o,s=p(i),{height:d}=getComputedStyle(i);i.style.height=d,i.style.overflow="hidden";const e=g(d,s).reverse(),a={duration:r.duration,easing:r.easingLeave};h(i,s,t,e,a)}return(o,t)=>(m(),l(B,{css:!1,onEnter:u,onLeave:f},{default:b(()=>[v(o.$slots,"default")]),_:3}))}});export{W as _};
assets/{_...all_-CD2bpTnG.js → _...all_--6pvM4Sq.js} RENAMED
@@ -1 +1 @@
1
- import{_ as e,c as _,o as c}from"./index-DraHnlQA.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-BMgZhVsi.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-bEUsWVHt.js → audio-_PqWLFzV.js} RENAMED
@@ -1 +1 @@
1
- import{d as s,g as f,c as d,o as p,a as t}from"./index-DraHnlQA.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-BMgZhVsi.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-DjFbmFp_.js → consciousness-D7J66NZD.js} RENAMED
@@ -1 +1 @@
1
- import{d as P,g as C,c as n,o as s,q as x,a as e,m as h,t as d,b as T,k as L,D as S,_ as q,h as j,z as N,E as z,F as M,C as D,j as I,x as R,s as F,p as Q,e as o,G as A,B as V}from"./index-DraHnlQA.js";import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-C_JkQof7.js";import{R as G}from"./RadioCardSimple-CtAvpvdI.js";import{_ as H}from"./TransitionVertical.vue_vue_type_script_setup_true_lang-Ch4fEDgw.js";import{u as J}from"./consciousness-BqvSoi9M.js";import{u as K}from"./providers-DeZ8eO-6.js";import{b as B}from"./route-block-B_A1xBdJ.js";const O=["checked","name","value"],W={class:"relative mr-3 mt-0.5 flex-shrink-0"},X={class:"w-full flex flex-col gap-2"},Y={class:"flex items-center"},Z={key:0,class:"relative"},_=["title"],ee={key:1,class:"mt-2"},te=["value","placeholder"],le=P({__name:"RadioCardDetail",props:{id:null,name:null,value:null,title:null,description:null,modelValue:null,deprecated:{type:Boolean,default:!1},showExpandCollapse:{type:Boolean,default:!0},expandCollapseThreshold:{default:100},customInputValue:{default:""},customInputPlaceholder:{default:""},showCustomInput:{type:Boolean,default:!1}},emits:["update:modelValue","update:customInputValue"],setup(t,{emit:y}){const g=y,f=C(!1);function u(){f.value=!f.value}function i(c){const p=c.target;g("update:customInputValue",p.value)}return(c,p)=>(s(),n("label",{key:t.id,class:x(["form_radio-card-detail relative flex cursor-pointer items-start rounded-xl p-3 pr-[20px]",[t.modelValue===t.value?"bg-primary-50 dark:bg-primary-900/20 border-primary-100 dark:border-primary-900 hover:border-primary-500/30 dark:hover:border-primary-400/30":"bg-white dark:bg-neutral-900/20 border-neutral-100 dark:border-neutral-700 hover:border-primary-500/30 dark:hover:border-primary-400/30",t.modelValue===t.value?"form_radio-card-detail-active":"",t.deprecated?"opacity-60":""]]),transition:"all duration-200 ease-in-out",border:"2 solid"},[e("input",{checked:t.modelValue===t.value,type:"radio",name:t.name,value:t.value,class:"absolute opacity-0",onChange:p[0]||(p[0]=k=>c.$emit("update:modelValue",t.value))},null,40,O),e("div",W,[e("div",{class:x(["size-5 border-2 rounded-full transition-colors duration-200",[t.modelValue===t.value?"border-primary-500 dark:border-primary-400":"border-neutral-300 dark:border-neutral-600"]])},[e("div",{class:x(["absolute left-1/2 top-1/2 size-3 rounded-full transition-opacity duration-200 -translate-x-1/2 -translate-y-1/2",[t.modelValue===t.value?"opacity-100 bg-primary-500 dark:bg-primary-400":"opacity-0"]])},null,2)],2)]),e("div",X,[e("div",Y,[e("span",{class:x(["line-clamp-1 font-medium",[t.modelValue===t.value?"text-neutral-700 dark:text-neutral-300":"text-neutral-700 dark:text-neutral-400"]])},d(t.title),3)]),t.description?(s(),n("div",Z,[T(H,null,{default:L(()=>[f.value?(s(),n("div",{key:1,class:x(["cursor-pointer text-xs",[t.modelValue===t.value?"text-neutral-600 dark:text-neutral-400":"text-neutral-500 dark:text-neutral-500"]]),onClick:S(u,["prevent"])},d(t.description),3)):(s(),n("div",{key:0,class:x(["line-clamp-2 cursor-pointer text-xs",[t.modelValue===t.value?"text-neutral-600 dark:text-neutral-400":"text-neutral-500 dark:text-neutral-500"]]),title:t.description,onClick:S(u,["prevent"])},d(t.description),11,_))]),_:1}),t.showExpandCollapse&&t.description.length>t.expandCollapseThreshold?(s(),n("button",{key:0,class:"text-primary-500 dark:text-primary-400 mt-0.5 inline-flex items-center text-xs",onClick:S(u,["prevent"])},[e("span",null,d(f.value?"Show less":"Show more"),1),e("div",{class:x([{"rotate-180":f.value},"transition-transform duration-200"])},p[1]||(p[1]=[e("div",{"i-solar:alt-arrow-down-bold-duotone":"","ml-0.5":"","text-xs":""},null,-1)]),2)])):h("",!0)])):h("",!0),t.showCustomInput&&t.modelValue===t.value?(s(),n("div",ee,[e("input",{value:t.customInputValue,type:"text",class:"w-full border border-neutral-300 rounded bg-white px-2 py-1 text-sm dark:border-neutral-700 dark:bg-neutral-900",placeholder:t.customInputPlaceholder,onInput:i},null,40,te)])):h("",!0)])],2))}}),se=q(le,[["__scopeId","data-v-c1e217c2"]]),oe={class:"radio-card-detail-many-select"},re={key:0,class:"relative"},ae=["placeholder"],ne={class:"mt-4 space-y-2"},de={key:0,class:"text-sm text-neutral-500 dark:text-neutral-400"},ie={key:1,class:"flex items-center gap-3 border border-amber-200 rounded-xl bg-amber-50 p-4 dark:border-amber-800 dark:bg-amber-900/20"},ue={class:"flex flex-col"},ce={class:"font-medium"},me={class:"text-sm text-amber-600 dark:text-amber-400"},pe={class:"relative"},ve=P({__name:"RadioCardDetailManySelect",props:{items:null,modelValue:null,searchable:{type:Boolean,default:!0},searchPlaceholder:{default:"Search..."},searchNoResultsTitle:{default:"No results found"},searchNoResultsDescription:{default:"Try a different search term"},searchResultsText:{default:"{count} of {total} results"},customInputPlaceholder:{default:"Enter custom value"},expandButtonText:{default:"Show more"},collapseButtonText:{default:"Show less"}},emits:["update:modelValue","update:customValue"],setup(t,{emit:y}){const g=t,f=y,u=C(""),i=C(!1),c=C(""),p=j(()=>{if(!u.value)return g.items;const b=u.value.toLowerCase();return g.items.filter(r=>r.name.toLowerCase().includes(b)||r.description&&r.description.toLowerCase().includes(b))});function k(){u.value=""}function $(b){c.value=b,f("update:customValue",b)}return(b,r)=>(s(),n("div",oe,[t.searchable?(s(),n("div",re,[r[5]||(r[5]=e("div",{class:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"},[e("div",{"i-solar:magnifer-line-duotone":"",class:"text-neutral-500 dark:text-neutral-400"})],-1)),N(e("input",{"onUpdate:modelValue":r[0]||(r[0]=m=>u.value=m),type:"search",class:"w-full rounded-xl p-2.5 pl-10 text-sm outline-none",border:"focus:primary-100 dark:focus:primary-900 ~ neutral-200 dark:neutral-800 2",transition:"all duration-200 ease-in-out",ring:"focus:primary-500 dark:focus:primary-400 0 focus:2 focus:offset-0 focus:opacity-50",bg:"white dark:neutral-900",placeholder:t.searchPlaceholder},null,8,ae),[[z,u.value]]),u.value?(s(),n("button",{key:0,type:"button",class:"absolute inset-y-0 right-0 flex items-center pr-3",onClick:k},r[4]||(r[4]=[e("div",{"i-solar:close-circle-line-duotone":"",class:"text-neutral-500 dark:text-neutral-400 hover:text-neutral-700 dark:hover:text-neutral-200"},null,-1)]))):h("",!0)])):h("",!0),e("div",ne,[u.value?(s(),n("div",de,d(t.searchResultsText.replace("{count}",p.value.length.toString()).replace("{total}",t.items.length.toString())),1)):h("",!0),u.value&&p.value.length===0?(s(),n("div",ie,[r[6]||(r[6]=e("div",{"i-solar:info-circle-line-duotone":"",class:"text-2xl text-amber-500 dark:text-amber-400"},null,-1)),e("div",ue,[e("span",ce,d(t.searchNoResultsTitle),1),e("span",me,d(t.searchNoResultsDescription.replace("{query}",u.value)),1)])])):h("",!0),e("div",pe,[e("div",{class:x(["scrollbar-hide grid auto-cols-[350px] grid-flow-col gap-4 overflow-x-auto pb-4",[i.value?"md:grid-cols-2 md:grid-flow-row md:auto-cols-auto":""]]),transition:"all duration-200 ease-in-out",style:{"scroll-snap-type":"x mandatory"}},[(s(!0),n(M,null,D(p.value,m=>(s(),I(se,{id:m.id,key:m.id,value:m.id,title:m.name,description:m.description,deprecated:m.deprecated,"show-expand-collapse":!0,"expand-collapse-threshold":100,"show-custom-input":m.customizable,"custom-input-value":c.value,"custom-input-placeholder":t.customInputPlaceholder,"model-value":t.modelValue,name:"radio-card-detail-many-select",class:"scroll-snap-align-start","onUpdate:modelValue":r[1]||(r[1]=w=>f("update:modelValue",w)),"onUpdate:customInputValue":r[2]||(r[2]=w=>$(w))},null,8,["id","value","title","description","deprecated","show-custom-input","custom-input-value","custom-input-placeholder","model-value"]))),128))],2),e("div",{bg:"neutral-100 dark:[rgba(0,0,0,0.3)]","rounded-xl":"",class:x([i.value?"fixed bottom-4 left-1/2 translate-x--1/2 z-10 w-[calc(100%-16px-40px-16px)]":"mt-0 w-full rounded-lg"])},[e("button",{"w-full":"",flex:"","items-center":"","justify-center":"","gap-2":"","rounded-lg":"","py-2":"",transition:"all duration-200 ease-in-out",class:x([i.value?"bg-primary-500 hover:bg-primary-600 text-white":"bg-white dark:bg-neutral-900 hover:bg-neutral-100 dark:hover:bg-neutral-800"]),onClick:r[3]||(r[3]=m=>i.value=!i.value)},[e("span",null,d(i.value?t.collapseButtonText:t.expandButtonText),1),e("div",{class:x([i.value?"rotate-180":"","text-lg"]),"i-solar:alt-arrow-down-bold-duotone":"",transition:"transform duration-200 ease-in-out"},null,2)],2)],2)])])]))}}),xe={flex:"~ row","items-center":"","gap-2":""},fe={bg:"neutral-50 dark:[rgba(0,0,0,0.3)]","rounded-xl":"","p-4":"",flex:"~ col gap-4"},be={flex:"~ col gap-4"},he={"max-w-full":""},ge={key:0,flex:"~ row gap-4",style:{"scrollbar-width":"none"},"min-w-0":"","of-x-scroll":"","scroll-smooth":"",role:"radiogroup"},ke={key:1},ye={key:0},we={flex:"~ col gap-4"},$e={class:"text-lg md:text-2xl"},Ve={text:"neutral-400 dark:neutral-400"},Ce={key:0,class:"flex items-center justify-center py-4"},Se={key:1,class:"flex items-center gap-3 border border-red-200 rounded-lg bg-red-50 p-4 dark:border-red-800 dark:bg-red-900/20"},Me={class:"flex flex-col"},Ie={class:"font-medium"},Pe={class:"text-sm text-red-600 dark:text-red-400"},Re={key:2,class:"flex items-center gap-3 border border-amber-200 rounded-lg bg-amber-50 p-4 dark:border-amber-800 dark:bg-amber-900/20"},Be={class:"flex flex-col"},Te={class:"font-medium"},Le={class:"text-sm text-amber-600 dark:text-amber-400"},Ne={key:1},ze={flex:"~ col gap-4"},De={class:"text-lg text-neutral-500 md:text-2xl dark:text-neutral-400"},Ee={text:"neutral-400 dark:neutral-500"},Ue={class:"bg-primary-50 border-primary-200 dark:bg-primary-900/20 dark:border-primary-800 flex items-center gap-3 border rounded-lg p-4"},qe={class:"flex flex-col"},je={class:"font-medium"},Fe={class:"dark:text-primary-400 text-primary-600 text-sm"},Qe={class:"mt-2"},Ae={class:"mb-1 block text-sm font-medium"},Ge=["placeholder"],He=P({__name:"consciousness",setup(t){const y=K(),g=J(),{availableProviders:f,availableProvidersMetadata:u}=R(y),{activeProvider:i,activeModel:c,customModelName:p,modelSearchQuery:k,supportsModelListing:$,providerModels:b,isLoadingActiveProviderModels:r,activeProviderModelError:m}=R(g),w=F();Q(async()=>{await g.loadModelsForProvider(i.value)});function E(a){p.value=a}return(a,l)=>(s(),n(M,null,[e("div",xe,[e("button",{onClick:l[0]||(l[0]=v=>o(w).back())},l[5]||(l[5]=[e("div",{"i-solar:alt-arrow-left-line-duotone":"","text-xl":""},null,-1)])),l[6]||(l[6]=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))]),e("div",fe,[e("div",null,[e("div",be,[l[8]||(l[8]=e("div",null,[e("h2",{class:"text-lg text-neutral-500 md:text-2xl dark:text-neutral-500"}," Provider "),e("div",{text:"neutral-400 dark:neutral-400"},[e("span",null,"Select the suitable LLM provider for consciousness")])],-1)),e("div",he,[o(f).length>0?(s(),n("fieldset",ge,[(s(!0),n(M,null,D(o(u),v=>(s(),I(o(G),{id:v.id,key:v.id,modelValue:o(i),"onUpdate:modelValue":l[1]||(l[1]=U=>V(i)?i.value=U:null),name:"provider",value:v.id,title:v.localizedName,description:v.localizedDescription},null,8,["id","modelValue","value","title","description"]))),128))])):(s(),n("div",ke,[T(o(A),{class:"flex items-center gap-3 rounded-lg p-4",border:"2 dashed neutral-200 dark:neutral-800",bg:"neutral-50 dark:neutral-800",transition:"colors duration-200 ease-in-out",to:"/settings/providers"},{default:L(()=>l[7]||(l[7]=[e("div",{"i-solar:warning-circle-line-duotone":"",class:"text-2xl text-amber-500 dark:text-amber-400"},null,-1),e("div",{class:"flex flex-col"},[e("span",{class:"font-medium"},"No Providers Configured"),e("span",{class:"text-sm text-neutral-400 dark:text-neutral-500"},"Click here to set up your LLM providers")],-1),e("div",{"i-solar:arrow-right-line-duotone":"",class:"ml-auto text-xl text-neutral-400 dark:text-neutral-500"},null,-1)])),_:1})]))])])]),o(i)&&o($)?(s(),n("div",ye,[e("div",we,[e("div",null,[e("h2",$e,d(a.$t("settings.modules.consciousness.provider-model-selection.title")),1),e("div",Ve,[e("span",null,d(a.$t("settings.modules.consciousness.provider-model-selection.subtitle")),1)])]),o(r)?(s(),n("div",Ce,[l[9]||(l[9]=e("div",{class:"mr-2 animate-spin"},[e("div",{"i-solar:spinner-line-duotone":"","text-xl":""})],-1)),e("span",null,d(a.$t("settings.modules.consciousness.provider-model-selection.loading")),1)])):o(m)?(s(),n("div",Se,[l[10]||(l[10]=e("div",{"i-solar:close-circle-line-duotone":"",class:"text-2xl text-red-500 dark:text-red-400"},null,-1)),e("div",Me,[e("span",Ie,d(a.$t("settings.modules.consciousness.provider-model-selection.error")),1),e("span",Pe,d(o(m)),1)])])):o(b).length===0&&!o(r)?(s(),n("div",Re,[l[11]||(l[11]=e("div",{"i-solar:info-circle-line-duotone":"",class:"text-2xl text-amber-500 dark:text-amber-400"},null,-1)),e("div",Be,[e("span",Te,d(a.$t("settings.modules.consciousness.provider-model-selection.no_models")),1),e("span",Le,d(a.$t("settings.modules.consciousness.provider-model-selection.no_models_description")),1)])])):o(b).length>0?(s(),I(o(ve),{key:3,modelValue:o(c),"onUpdate:modelValue":l[2]||(l[2]=v=>V(c)?c.value=v:null),"search-query":o(k),"onUpdate:searchQuery":l[3]||(l[3]=v=>V(k)?k.value=v:null),items:o(b),searchable:!0,"search-placeholder":a.$t("settings.modules.consciousness.provider-model-selection.search_placeholder"),"search-no-results-title":a.$t("settings.modules.consciousness.provider-model-selection.no_search_results"),"search-no-results-description":a.$t("settings.modules.consciousness.provider-model-selection.no_search_results_description",{query:o(k)}),"search-results-text":a.$t("settings.modules.consciousness.provider-model-selection.search_results",{count:"{count}",total:"{total}"}),"custom-input-placeholder":a.$t("settings.modules.consciousness.provider-model-selection.custom_model_placeholder"),"expand-button-text":a.$t("settings.modules.consciousness.provider-model-selection.expand"),"collapse-button-text":a.$t("settings.modules.consciousness.provider-model-selection.collapse"),"onUpdate:customValue":E},null,8,["modelValue","search-query","items","search-placeholder","search-no-results-title","search-no-results-description","search-results-text","custom-input-placeholder","expand-button-text","collapse-button-text"])):h("",!0)])])):o(i)&&!o($)?(s(),n("div",Ne,[e("div",ze,[e("div",null,[e("h2",De,d(a.$t("settings.modules.consciousness.provider-model-selection.title")),1),e("div",Ee,[e("span",null,d(a.$t("settings.modules.consciousness.provider-model-selection.subtitle")),1)])]),e("div",Ue,[l[12]||(l[12]=e("div",{"i-solar:info-circle-line-duotone":"",class:"text-primary-500 dark:text-primary-400 text-2xl"},null,-1)),e("div",qe,[e("span",je,d(a.$t("settings.modules.consciousness.provider-model-selection.not_supported")),1),e("span",Fe,d(a.$t("settings.modules.consciousness.provider-model-selection.not_supported_description")),1)])]),e("div",Qe,[e("label",Ae,d(a.$t("settings.modules.consciousness.provider-model-selection.manual_model_name")),1),N(e("input",{"onUpdate:modelValue":l[4]||(l[4]=v=>V(c)?c.value=v:null),type:"text",class:"w-full border border-neutral-300 rounded bg-white px-3 py-2 dark:border-neutral-700 dark:bg-neutral-900",placeholder:a.$t("settings.modules.consciousness.provider-model-selection.manual_model_placeholder")},null,8,Ge),[[z,o(c)]])])])])):h("",!0)]),l[13]||(l[13]=e("div",{fixed:"","bottom-0":"","right-0":"","z--1":"",class:"text-neutral-100/80 dark:text-neutral-500/20"},[e("div",{text:"40","i-lucide:ghost":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});typeof B=="function"&&B(He);export{He as default};
 
1
+ import{d as P,g as C,c as n,o as s,q as x,a as e,m as h,t as d,b as T,k as L,D as S,_ as q,h as j,z as N,E as z,F as M,C as D,j as I,x as R,s as F,p as Q,e as o,G as A,B as V}from"./index-BMgZhVsi.js";import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-B7SUuDYL.js";import{R as G}from"./RadioCardSimple-BeqOivcn.js";import{_ as H}from"./TransitionVertical.vue_vue_type_script_setup_true_lang-CLmZcRWR.js";import{u as J}from"./consciousness-DGKqeXEN.js";import{u as K}from"./providers-JNx_EUL2.js";import{b as B}from"./route-block-B_A1xBdJ.js";const O=["checked","name","value"],W={class:"relative mr-3 mt-0.5 flex-shrink-0"},X={class:"w-full flex flex-col gap-2"},Y={class:"flex items-center"},Z={key:0,class:"relative"},_=["title"],ee={key:1,class:"mt-2"},te=["value","placeholder"],le=P({__name:"RadioCardDetail",props:{id:null,name:null,value:null,title:null,description:null,modelValue:null,deprecated:{type:Boolean,default:!1},showExpandCollapse:{type:Boolean,default:!0},expandCollapseThreshold:{default:100},customInputValue:{default:""},customInputPlaceholder:{default:""},showCustomInput:{type:Boolean,default:!1}},emits:["update:modelValue","update:customInputValue"],setup(t,{emit:y}){const g=y,f=C(!1);function u(){f.value=!f.value}function i(c){const p=c.target;g("update:customInputValue",p.value)}return(c,p)=>(s(),n("label",{key:t.id,class:x(["form_radio-card-detail relative flex cursor-pointer items-start rounded-xl p-3 pr-[20px]",[t.modelValue===t.value?"bg-primary-50 dark:bg-primary-900/20 border-primary-100 dark:border-primary-900 hover:border-primary-500/30 dark:hover:border-primary-400/30":"bg-white dark:bg-neutral-900/20 border-neutral-100 dark:border-neutral-700 hover:border-primary-500/30 dark:hover:border-primary-400/30",t.modelValue===t.value?"form_radio-card-detail-active":"",t.deprecated?"opacity-60":""]]),transition:"all duration-200 ease-in-out",border:"2 solid"},[e("input",{checked:t.modelValue===t.value,type:"radio",name:t.name,value:t.value,class:"absolute opacity-0",onChange:p[0]||(p[0]=k=>c.$emit("update:modelValue",t.value))},null,40,O),e("div",W,[e("div",{class:x(["size-5 border-2 rounded-full transition-colors duration-200",[t.modelValue===t.value?"border-primary-500 dark:border-primary-400":"border-neutral-300 dark:border-neutral-600"]])},[e("div",{class:x(["absolute left-1/2 top-1/2 size-3 rounded-full transition-opacity duration-200 -translate-x-1/2 -translate-y-1/2",[t.modelValue===t.value?"opacity-100 bg-primary-500 dark:bg-primary-400":"opacity-0"]])},null,2)],2)]),e("div",X,[e("div",Y,[e("span",{class:x(["line-clamp-1 font-medium",[t.modelValue===t.value?"text-neutral-700 dark:text-neutral-300":"text-neutral-700 dark:text-neutral-400"]])},d(t.title),3)]),t.description?(s(),n("div",Z,[T(H,null,{default:L(()=>[f.value?(s(),n("div",{key:1,class:x(["cursor-pointer text-xs",[t.modelValue===t.value?"text-neutral-600 dark:text-neutral-400":"text-neutral-500 dark:text-neutral-500"]]),onClick:S(u,["prevent"])},d(t.description),3)):(s(),n("div",{key:0,class:x(["line-clamp-2 cursor-pointer text-xs",[t.modelValue===t.value?"text-neutral-600 dark:text-neutral-400":"text-neutral-500 dark:text-neutral-500"]]),title:t.description,onClick:S(u,["prevent"])},d(t.description),11,_))]),_:1}),t.showExpandCollapse&&t.description.length>t.expandCollapseThreshold?(s(),n("button",{key:0,class:"text-primary-500 dark:text-primary-400 mt-0.5 inline-flex items-center text-xs",onClick:S(u,["prevent"])},[e("span",null,d(f.value?"Show less":"Show more"),1),e("div",{class:x([{"rotate-180":f.value},"transition-transform duration-200"])},p[1]||(p[1]=[e("div",{"i-solar:alt-arrow-down-bold-duotone":"","ml-0.5":"","text-xs":""},null,-1)]),2)])):h("",!0)])):h("",!0),t.showCustomInput&&t.modelValue===t.value?(s(),n("div",ee,[e("input",{value:t.customInputValue,type:"text",class:"w-full border border-neutral-300 rounded bg-white px-2 py-1 text-sm dark:border-neutral-700 dark:bg-neutral-900",placeholder:t.customInputPlaceholder,onInput:i},null,40,te)])):h("",!0)])],2))}}),se=q(le,[["__scopeId","data-v-c1e217c2"]]),oe={class:"radio-card-detail-many-select"},re={key:0,class:"relative"},ae=["placeholder"],ne={class:"mt-4 space-y-2"},de={key:0,class:"text-sm text-neutral-500 dark:text-neutral-400"},ie={key:1,class:"flex items-center gap-3 border border-amber-200 rounded-xl bg-amber-50 p-4 dark:border-amber-800 dark:bg-amber-900/20"},ue={class:"flex flex-col"},ce={class:"font-medium"},me={class:"text-sm text-amber-600 dark:text-amber-400"},pe={class:"relative"},ve=P({__name:"RadioCardDetailManySelect",props:{items:null,modelValue:null,searchable:{type:Boolean,default:!0},searchPlaceholder:{default:"Search..."},searchNoResultsTitle:{default:"No results found"},searchNoResultsDescription:{default:"Try a different search term"},searchResultsText:{default:"{count} of {total} results"},customInputPlaceholder:{default:"Enter custom value"},expandButtonText:{default:"Show more"},collapseButtonText:{default:"Show less"}},emits:["update:modelValue","update:customValue"],setup(t,{emit:y}){const g=t,f=y,u=C(""),i=C(!1),c=C(""),p=j(()=>{if(!u.value)return g.items;const b=u.value.toLowerCase();return g.items.filter(r=>r.name.toLowerCase().includes(b)||r.description&&r.description.toLowerCase().includes(b))});function k(){u.value=""}function $(b){c.value=b,f("update:customValue",b)}return(b,r)=>(s(),n("div",oe,[t.searchable?(s(),n("div",re,[r[5]||(r[5]=e("div",{class:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"},[e("div",{"i-solar:magnifer-line-duotone":"",class:"text-neutral-500 dark:text-neutral-400"})],-1)),N(e("input",{"onUpdate:modelValue":r[0]||(r[0]=m=>u.value=m),type:"search",class:"w-full rounded-xl p-2.5 pl-10 text-sm outline-none",border:"focus:primary-100 dark:focus:primary-900 ~ neutral-200 dark:neutral-800 2",transition:"all duration-200 ease-in-out",ring:"focus:primary-500 dark:focus:primary-400 0 focus:2 focus:offset-0 focus:opacity-50",bg:"white dark:neutral-900",placeholder:t.searchPlaceholder},null,8,ae),[[z,u.value]]),u.value?(s(),n("button",{key:0,type:"button",class:"absolute inset-y-0 right-0 flex items-center pr-3",onClick:k},r[4]||(r[4]=[e("div",{"i-solar:close-circle-line-duotone":"",class:"text-neutral-500 dark:text-neutral-400 hover:text-neutral-700 dark:hover:text-neutral-200"},null,-1)]))):h("",!0)])):h("",!0),e("div",ne,[u.value?(s(),n("div",de,d(t.searchResultsText.replace("{count}",p.value.length.toString()).replace("{total}",t.items.length.toString())),1)):h("",!0),u.value&&p.value.length===0?(s(),n("div",ie,[r[6]||(r[6]=e("div",{"i-solar:info-circle-line-duotone":"",class:"text-2xl text-amber-500 dark:text-amber-400"},null,-1)),e("div",ue,[e("span",ce,d(t.searchNoResultsTitle),1),e("span",me,d(t.searchNoResultsDescription.replace("{query}",u.value)),1)])])):h("",!0),e("div",pe,[e("div",{class:x(["scrollbar-hide grid auto-cols-[350px] grid-flow-col gap-4 overflow-x-auto pb-4",[i.value?"md:grid-cols-2 md:grid-flow-row md:auto-cols-auto":""]]),transition:"all duration-200 ease-in-out",style:{"scroll-snap-type":"x mandatory"}},[(s(!0),n(M,null,D(p.value,m=>(s(),I(se,{id:m.id,key:m.id,value:m.id,title:m.name,description:m.description,deprecated:m.deprecated,"show-expand-collapse":!0,"expand-collapse-threshold":100,"show-custom-input":m.customizable,"custom-input-value":c.value,"custom-input-placeholder":t.customInputPlaceholder,"model-value":t.modelValue,name:"radio-card-detail-many-select",class:"scroll-snap-align-start","onUpdate:modelValue":r[1]||(r[1]=w=>f("update:modelValue",w)),"onUpdate:customInputValue":r[2]||(r[2]=w=>$(w))},null,8,["id","value","title","description","deprecated","show-custom-input","custom-input-value","custom-input-placeholder","model-value"]))),128))],2),e("div",{bg:"neutral-100 dark:[rgba(0,0,0,0.3)]","rounded-xl":"",class:x([i.value?"fixed bottom-4 left-1/2 translate-x--1/2 z-10 w-[calc(100%-16px-40px-16px)]":"mt-0 w-full rounded-lg"])},[e("button",{"w-full":"",flex:"","items-center":"","justify-center":"","gap-2":"","rounded-lg":"","py-2":"",transition:"all duration-200 ease-in-out",class:x([i.value?"bg-primary-500 hover:bg-primary-600 text-white":"bg-white dark:bg-neutral-900 hover:bg-neutral-100 dark:hover:bg-neutral-800"]),onClick:r[3]||(r[3]=m=>i.value=!i.value)},[e("span",null,d(i.value?t.collapseButtonText:t.expandButtonText),1),e("div",{class:x([i.value?"rotate-180":"","text-lg"]),"i-solar:alt-arrow-down-bold-duotone":"",transition:"transform duration-200 ease-in-out"},null,2)],2)],2)])])]))}}),xe={flex:"~ row","items-center":"","gap-2":""},fe={bg:"neutral-50 dark:[rgba(0,0,0,0.3)]","rounded-xl":"","p-4":"",flex:"~ col gap-4"},be={flex:"~ col gap-4"},he={"max-w-full":""},ge={key:0,flex:"~ row gap-4",style:{"scrollbar-width":"none"},"min-w-0":"","of-x-scroll":"","scroll-smooth":"",role:"radiogroup"},ke={key:1},ye={key:0},we={flex:"~ col gap-4"},$e={class:"text-lg md:text-2xl"},Ve={text:"neutral-400 dark:neutral-400"},Ce={key:0,class:"flex items-center justify-center py-4"},Se={key:1,class:"flex items-center gap-3 border border-red-200 rounded-lg bg-red-50 p-4 dark:border-red-800 dark:bg-red-900/20"},Me={class:"flex flex-col"},Ie={class:"font-medium"},Pe={class:"text-sm text-red-600 dark:text-red-400"},Re={key:2,class:"flex items-center gap-3 border border-amber-200 rounded-lg bg-amber-50 p-4 dark:border-amber-800 dark:bg-amber-900/20"},Be={class:"flex flex-col"},Te={class:"font-medium"},Le={class:"text-sm text-amber-600 dark:text-amber-400"},Ne={key:1},ze={flex:"~ col gap-4"},De={class:"text-lg text-neutral-500 md:text-2xl dark:text-neutral-400"},Ee={text:"neutral-400 dark:neutral-500"},Ue={class:"bg-primary-50 border-primary-200 dark:bg-primary-900/20 dark:border-primary-800 flex items-center gap-3 border rounded-lg p-4"},qe={class:"flex flex-col"},je={class:"font-medium"},Fe={class:"dark:text-primary-400 text-primary-600 text-sm"},Qe={class:"mt-2"},Ae={class:"mb-1 block text-sm font-medium"},Ge=["placeholder"],He=P({__name:"consciousness",setup(t){const y=K(),g=J(),{availableProviders:f,availableProvidersMetadata:u}=R(y),{activeProvider:i,activeModel:c,customModelName:p,modelSearchQuery:k,supportsModelListing:$,providerModels:b,isLoadingActiveProviderModels:r,activeProviderModelError:m}=R(g),w=F();Q(async()=>{await g.loadModelsForProvider(i.value)});function E(a){p.value=a}return(a,l)=>(s(),n(M,null,[e("div",xe,[e("button",{onClick:l[0]||(l[0]=v=>o(w).back())},l[5]||(l[5]=[e("div",{"i-solar:alt-arrow-left-line-duotone":"","text-xl":""},null,-1)])),l[6]||(l[6]=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))]),e("div",fe,[e("div",null,[e("div",be,[l[8]||(l[8]=e("div",null,[e("h2",{class:"text-lg text-neutral-500 md:text-2xl dark:text-neutral-500"}," Provider "),e("div",{text:"neutral-400 dark:neutral-400"},[e("span",null,"Select the suitable LLM provider for consciousness")])],-1)),e("div",he,[o(f).length>0?(s(),n("fieldset",ge,[(s(!0),n(M,null,D(o(u),v=>(s(),I(o(G),{id:v.id,key:v.id,modelValue:o(i),"onUpdate:modelValue":l[1]||(l[1]=U=>V(i)?i.value=U:null),name:"provider",value:v.id,title:v.localizedName,description:v.localizedDescription},null,8,["id","modelValue","value","title","description"]))),128))])):(s(),n("div",ke,[T(o(A),{class:"flex items-center gap-3 rounded-lg p-4",border:"2 dashed neutral-200 dark:neutral-800",bg:"neutral-50 dark:neutral-800",transition:"colors duration-200 ease-in-out",to:"/settings/providers"},{default:L(()=>l[7]||(l[7]=[e("div",{"i-solar:warning-circle-line-duotone":"",class:"text-2xl text-amber-500 dark:text-amber-400"},null,-1),e("div",{class:"flex flex-col"},[e("span",{class:"font-medium"},"No Providers Configured"),e("span",{class:"text-sm text-neutral-400 dark:text-neutral-500"},"Click here to set up your LLM providers")],-1),e("div",{"i-solar:arrow-right-line-duotone":"",class:"ml-auto text-xl text-neutral-400 dark:text-neutral-500"},null,-1)])),_:1})]))])])]),o(i)&&o($)?(s(),n("div",ye,[e("div",we,[e("div",null,[e("h2",$e,d(a.$t("settings.modules.consciousness.provider-model-selection.title")),1),e("div",Ve,[e("span",null,d(a.$t("settings.modules.consciousness.provider-model-selection.subtitle")),1)])]),o(r)?(s(),n("div",Ce,[l[9]||(l[9]=e("div",{class:"mr-2 animate-spin"},[e("div",{"i-solar:spinner-line-duotone":"","text-xl":""})],-1)),e("span",null,d(a.$t("settings.modules.consciousness.provider-model-selection.loading")),1)])):o(m)?(s(),n("div",Se,[l[10]||(l[10]=e("div",{"i-solar:close-circle-line-duotone":"",class:"text-2xl text-red-500 dark:text-red-400"},null,-1)),e("div",Me,[e("span",Ie,d(a.$t("settings.modules.consciousness.provider-model-selection.error")),1),e("span",Pe,d(o(m)),1)])])):o(b).length===0&&!o(r)?(s(),n("div",Re,[l[11]||(l[11]=e("div",{"i-solar:info-circle-line-duotone":"",class:"text-2xl text-amber-500 dark:text-amber-400"},null,-1)),e("div",Be,[e("span",Te,d(a.$t("settings.modules.consciousness.provider-model-selection.no_models")),1),e("span",Le,d(a.$t("settings.modules.consciousness.provider-model-selection.no_models_description")),1)])])):o(b).length>0?(s(),I(o(ve),{key:3,modelValue:o(c),"onUpdate:modelValue":l[2]||(l[2]=v=>V(c)?c.value=v:null),"search-query":o(k),"onUpdate:searchQuery":l[3]||(l[3]=v=>V(k)?k.value=v:null),items:o(b),searchable:!0,"search-placeholder":a.$t("settings.modules.consciousness.provider-model-selection.search_placeholder"),"search-no-results-title":a.$t("settings.modules.consciousness.provider-model-selection.no_search_results"),"search-no-results-description":a.$t("settings.modules.consciousness.provider-model-selection.no_search_results_description",{query:o(k)}),"search-results-text":a.$t("settings.modules.consciousness.provider-model-selection.search_results",{count:"{count}",total:"{total}"}),"custom-input-placeholder":a.$t("settings.modules.consciousness.provider-model-selection.custom_model_placeholder"),"expand-button-text":a.$t("settings.modules.consciousness.provider-model-selection.expand"),"collapse-button-text":a.$t("settings.modules.consciousness.provider-model-selection.collapse"),"onUpdate:customValue":E},null,8,["modelValue","search-query","items","search-placeholder","search-no-results-title","search-no-results-description","search-results-text","custom-input-placeholder","expand-button-text","collapse-button-text"])):h("",!0)])])):o(i)&&!o($)?(s(),n("div",Ne,[e("div",ze,[e("div",null,[e("h2",De,d(a.$t("settings.modules.consciousness.provider-model-selection.title")),1),e("div",Ee,[e("span",null,d(a.$t("settings.modules.consciousness.provider-model-selection.subtitle")),1)])]),e("div",Ue,[l[12]||(l[12]=e("div",{"i-solar:info-circle-line-duotone":"",class:"text-primary-500 dark:text-primary-400 text-2xl"},null,-1)),e("div",qe,[e("span",je,d(a.$t("settings.modules.consciousness.provider-model-selection.not_supported")),1),e("span",Fe,d(a.$t("settings.modules.consciousness.provider-model-selection.not_supported_description")),1)])]),e("div",Qe,[e("label",Ae,d(a.$t("settings.modules.consciousness.provider-model-selection.manual_model_name")),1),N(e("input",{"onUpdate:modelValue":l[4]||(l[4]=v=>V(c)?c.value=v:null),type:"text",class:"w-full border border-neutral-300 rounded bg-white px-3 py-2 dark:border-neutral-700 dark:bg-neutral-900",placeholder:a.$t("settings.modules.consciousness.provider-model-selection.manual_model_placeholder")},null,8,Ge),[[z,o(c)]])])])])):h("",!0)]),l[13]||(l[13]=e("div",{fixed:"","bottom-0":"","right-0":"","z--1":"",class:"text-neutral-100/80 dark:text-neutral-500/20"},[e("div",{text:"40","i-lucide:ghost":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});typeof B=="function"&&B(He);export{He as default};
assets/{consciousness-BqvSoi9M.js → consciousness-DGKqeXEN.js} RENAMED
@@ -1 +1 @@
1
- import{ar as C,cd as u,g as M,h as r,w as h}from"./index-DraHnlQA.js";import{u as y}from"./providers-DeZ8eO-6.js";const N=C("consciousness",()=>{const o=y(),s=u("settings/consciousness/active-provider",""),n=u("settings/consciousness/active-model",""),a=u("settings/consciousness/active-custom-model",""),l=M({}),t=M(""),f=r(()=>o.supportsModelListing(s.value)),c=r(()=>o.getModelsForProvider(s.value)),m=r(()=>o.isLoadingModels[s.value]||!1),p=r(()=>o.modelLoadError[s.value]||null),g=r(()=>{if(!t.value.trim())return c.value;const e=t.value.toLowerCase().trim();return c.value.filter(i=>i.name.toLowerCase().includes(e)||i.id.toLowerCase().includes(e)||i.description&&i.description.toLowerCase().includes(e))});function L(e){s.value=e}function P(e){n.value=e}function w(e){a.value=e}function S(e){t.value=e}function d(){n.value="",a.value="",l.value={},t.value=""}async function v(e){e&&o.supportsModelListing(e)&&o.getModelsForProvider(e).length===0&&await o.fetchModelsForProvider(e)}return h(s,async e=>{await v(e),d()}),{activeProvider:s,activeModel:n,customModelName:a,expandedDescriptions:l,modelSearchQuery:t,supportsModelListing:f,providerModels:c,isLoadingActiveProviderModels:m,activeProviderModelError:p,filteredModels:g,setActiveProvider:L,setActiveModel:P,setCustomModelName:w,setModelSearchQuery:S,resetModelSelection:d,loadModelsForProvider:v}});export{N as u};
 
1
+ import{ar as C,cd as u,g as M,h as r,w as h}from"./index-BMgZhVsi.js";import{u as y}from"./providers-JNx_EUL2.js";const N=C("consciousness",()=>{const o=y(),s=u("settings/consciousness/active-provider",""),n=u("settings/consciousness/active-model",""),a=u("settings/consciousness/active-custom-model",""),l=M({}),t=M(""),f=r(()=>o.supportsModelListing(s.value)),c=r(()=>o.getModelsForProvider(s.value)),m=r(()=>o.isLoadingModels[s.value]||!1),p=r(()=>o.modelLoadError[s.value]||null),g=r(()=>{if(!t.value.trim())return c.value;const e=t.value.toLowerCase().trim();return c.value.filter(i=>i.name.toLowerCase().includes(e)||i.id.toLowerCase().includes(e)||i.description&&i.description.toLowerCase().includes(e))});function L(e){s.value=e}function P(e){n.value=e}function w(e){a.value=e}function S(e){t.value=e}function d(){n.value="",a.value="",l.value={},t.value=""}async function v(e){e&&o.supportsModelListing(e)&&o.getModelsForProvider(e).length===0&&await o.fetchModelsForProvider(e)}return h(s,async e=>{await v(e),d()}),{activeProvider:s,activeModel:n,customModelName:a,expandedDescriptions:l,modelSearchQuery:t,supportsModelListing:f,providerModels:c,isLoadingActiveProviderModels:m,activeProviderModelError:p,filteredModels:g,setActiveProvider:L,setActiveModel:P,setCustomModelName:w,setModelSearchQuery:S,resetModelSelection:d,loadModelsForProvider:v}});export{N as u};
assets/{default-R3ZmIHxJ.js → default-BmFJgYVM.js} RENAMED
@@ -1 +1 @@
1
- import{d as n,u as r,c,a,b as t,e,n as i,R as m,o as l}from"./index-DraHnlQA.js";import{H as f}from"./HeaderLink-Cb62pdxb.js";const _={"mb-4":"","w-full":"","gap-2":"",class:"px-0 py-1 md:px-3 md:py-3"},x={class:"px-3 py-2 md:px-5 md:py-5",flex:"~ col gap-4"},$=n({__name:"default",setup(u){const{top:o,right:p,bottom:s,left:d}=r();return(g,y)=>(l(),c("div",{"p-2":"",style:i({paddingTop:`${e(o)}px`,paddingRight:`${e(p)}px`,paddingBottom:`${e(s)}px`,paddingLeft:`${e(d)}px`})},[a("div",_,[t(f)]),a("div",x,[t(e(m))])],4))}});export{$ as default};
 
1
+ import{d as n,u as r,c,a,b as t,e,n as i,R as m,o as l}from"./index-BMgZhVsi.js";import{H as f}from"./HeaderLink-B0cut292.js";const _={"mb-4":"","w-full":"","gap-2":"",class:"px-0 py-1 md:px-3 md:py-3"},x={class:"px-3 py-2 md:px-5 md:py-5",flex:"~ col gap-4"},$=n({__name:"default",setup(u){const{top:o,right:p,bottom:s,left:d}=r();return(g,y)=>(l(),c("div",{"p-2":"",style:i({paddingTop:`${e(o)}px`,paddingRight:`${e(p)}px`,paddingBottom:`${e(s)}px`,paddingLeft:`${e(d)}px`})},[a("div",_,[t(f)]),a("div",x,[t(e(m))])],4))}});export{$ as default};
assets/{default-node-CK4II32p.js → default-node-DnhLsEaN.js} RENAMED
@@ -1 +1 @@
1
- import{cp as t}from"./index-DraHnlQA.js";async function s(){const{createRequire:a}=await t(async()=>{const{createRequire:o}=await import("./__vite-browser-external-FmFgRqLi.js");return{createRequire:o}},[]),{dirname:n,resolve:e}=await t(async()=>{const{dirname:o,resolve:c}=await import("./__vite-browser-external-FmFgRqLi.js");return{dirname:o,resolve:c}},[]),d=a(import.meta.url),r=n(d.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{s as getBundles};
 
1
+ import{cp as t}from"./index-BMgZhVsi.js";async function s(){const{createRequire:a}=await t(async()=>{const{createRequire:o}=await import("./__vite-browser-external-FmFgRqLi.js");return{createRequire:o}},[]),{dirname:n,resolve:e}=await t(async()=>{const{dirname:o,resolve:c}=await import("./__vite-browser-external-FmFgRqLi.js");return{dirname:o,resolve:c}},[]),d=a(import.meta.url),r=n(d.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{s as getBundles};
assets/{delays-CdMiuWNX.js → delays-KTYa_Ekj.js} RENAMED
@@ -1 +1 @@
1
- import{_ as v}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-CG2-D319.js";import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-C_JkQof7.js";import{u as _,l as k}from"./queues-CDLhb0jO.js";import"./index-DSXMBaIh.js";import{d as b,g as d,c as s,o as l,a as e,b as y,e as x,t as i,F as f,C as p}from"./index-DraHnlQA.js";import"./queue-DIUCMOjh.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":""},M={"w-full":"",flex:"","flex-row":"","gap-4":""},V={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},E={"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([]),r=d(!1),u=_();u.onHandlerEvent("delay",a=>{c.value.push(a)});function g(){r.value=!0;const a=t.value.split("");for(const o of a)u.add(o);u.add(k),t.value="",r.value=!1}return(a,o)=>(l(),s("div",z,[e("div",w,[y(x(v),{modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=n=>t.value=n),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(r.value?"Processing...":"Send"),1)]),e("div",M,[e("div",V,[o[1]||(o[1]=e("h3",{"font-semibold":""}," Emotion Message ",-1)),(l(!0),s(f,null,p(m.value,n=>(l(),s("div",{key:n},[e("div",null,i(n),1)]))),128))]),e("div",E,[o[2]||(o[2]=e("h3",{"font-semibold":""}," Delays ",-1)),(l(!0),s(f,null,p(c.value,n=>(l(),s("div",{key:n},[e("div",null,i(n)+"s",1)]))),128))])])]))}});export{N as default};
 
1
+ import{_ as v}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-DvUeFWfi.js";import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-B7SUuDYL.js";import{u as _,l as k}from"./queues-CSlGUoy_.js";import"./index-CYxDYfrf.js";import{d as b,g as d,c as s,o as l,a as e,b as y,e as x,t as i,F as f,C as p}from"./index-BMgZhVsi.js";import"./queue-BVK4A6kJ.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":""},M={"w-full":"",flex:"","flex-row":"","gap-4":""},V={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},E={"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([]),r=d(!1),u=_();u.onHandlerEvent("delay",a=>{c.value.push(a)});function g(){r.value=!0;const a=t.value.split("");for(const o of a)u.add(o);u.add(k),t.value="",r.value=!1}return(a,o)=>(l(),s("div",z,[e("div",w,[y(x(v),{modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=n=>t.value=n),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(r.value?"Processing...":"Send"),1)]),e("div",M,[e("div",V,[o[1]||(o[1]=e("h3",{"font-semibold":""}," Emotion Message ",-1)),(l(!0),s(f,null,p(m.value,n=>(l(),s("div",{key:n},[e("div",null,i(n),1)]))),128))]),e("div",E,[o[2]||(o[2]=e("h3",{"font-semibold":""}," Delays ",-1)),(l(!0),s(f,null,p(c.value,n=>(l(),s("div",{key:n},[e("div",null,i(n)+"s",1)]))),128))])])]))}});export{N as default};
assets/{elevenlabs-Bv-IEdeB.js → elevenlabs-CG56K-vv.js} RENAMED
@@ -1 +1 @@
1
- import{d as R,s as B,x as F,h as C,g as v,I,p as T,w,c as m,o as g,a as e,e as o,t as a,z as d,J as j,E as b,H as M,F as y,C as h,A as $,b as q,k as E,q as A}from"./index-DraHnlQA.js";import{_ as H}from"./Collapsable.vue_vue_type_script_setup_true_lang-CoeIagAH.js";import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-C_JkQof7.js";import{u as J}from"./providers-DeZ8eO-6.js";import{u as G}from"./speech-DwMeD8n7.js";import"./TransitionVertical.vue_vue_type_script_setup_true_lang-Ch4fEDgw.js";const O={flex:"~ row","items-center":"","gap-2":""},Q={relative:""},W={"text-3xl":"","font-semibold":""},X={bg:"neutral-50 dark:[rgba(0,0,0,0.3)]","rounded-xl":"","p-4":"",flex:"~ col gap-6"},Y={flex:"~ col gap-6"},Z={"max-w-full":""},ee={grid:"~ cols-2 gap-4"},te={class:"text-xs text-zinc-500 dark:text-zinc-400","text-nowrap":""},se={flex:"~ col gap-6"},le={flex:"~ col gap-6"},oe={grid:"~ cols-2 gap-4"},ie=["value"],ne={grid:"~ cols-2 gap-4"},ae=["value"],de={grid:"~ cols-2 gap-4"},re={flex:"~ row","items-center":"","gap-2":""},ue={class:"text-xs"},xe={grid:"~ cols-2 gap-4"},ce={flex:"~ row","items-center":"","gap-2":""},pe={class:"text-xs"},ve={grid:"~ cols-2 gap-4"},me=["disabled"],ge={class:"text-sm"},fe=["onClick"],be={"mt-4":""},ze={grid:"~ cols-2 gap-4"},ke=["placeholder"],_e={"mt-4":""},we={fixed:"","bottom-0":"","right-0":"",text:"neutral-100/80 dark:neutral-500/20"},n="elevenlabs",he=R({__name:"elevenlabs",setup(ye){var V,S;const N=B(),f=J(),l=G(),{providers:u}=F(f),r=C(()=>f.getProviderMetadata(n)),x=v(((V=u.value[n])==null?void 0:V.apiKey)||""),c=v(((S=u.value[n])==null?void 0:S.baseUrl)||""),z=v(l.selectedLanguage),k=v(l.voiceName),P=C(()=>l.availableVoicesForLanguage),D=v(!1),K=I(D);return T(()=>{var i,t,p;f.initializeProvider(n),x.value=((i=u.value[n])==null?void 0:i.apiKey)||"",c.value=((t=u.value[n])==null?void 0:t.baseUrl)||((p=r.value)==null?void 0:p.baseUrlDefault)||"",f.configuredProviders[n]&&l.loadVoicesForProvider(n)}),w([x,c],()=>{var i;u.value[n]={apiKey:x.value,baseUrl:c.value||((i=r.value)==null?void 0:i.baseUrlDefault)||""}}),w(z,i=>{l.setLanguage(i)}),w(k,i=>{l.setVoiceName(i)}),(i,t)=>{var p,U,L;return g(),m(y,null,[e("div",O,[e("button",{onClick:t[0]||(t[0]=s=>o(N).back())},t[9]||(t[9]=[e("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),e("h1",Q,[t[10]||(t[10]=e("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[e("span",{text:"neutral-300 dark:neutral-500"},"Provider")],-1)),e("div",W,a((p=r.value)==null?void 0:p.localizedName),1)])]),e("div",X,[e("div",null,[e("div",Y,[t[12]||(t[12]=e("div",null,[e("h2",{class:"text-lg text-neutral-500 md:text-2xl dark:text-neutral-400"}," Basic "),e("div",{text:"neutral-400 dark:neutral-500"},[e("span",null,"Essential settings")])],-1)),e("div",Z,[e("label",ee,[e("div",null,[t[11]||(t[11]=e("div",{class:"flex items-center gap-1 text-sm font-medium"},[j(" API Key "),e("span",{class:"text-red-500"},"*")],-1)),e("div",te," API Key for "+a((U=r.value)==null?void 0:U.localizedName),1)]),d(e("input",{"onUpdate:modelValue":t[1]||(t[1]=s=>x.value=s),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:"..."},null,512),[[b,x.value]])])])])]),e("div",se,[t[18]||(t[18]=e("h2",{class:"text-lg text-neutral-500 md:text-2xl dark:text-neutral-400"}," Voice Settings ",-1)),e("div",le,[e("label",oe,[t[13]||(t[13]=e("div",null,[e("div",{class:"flex items-center gap-1 text-sm font-medium"}," Language "),e("div",{class:"text-xs text-zinc-500 dark:text-zinc-400"}," Select voice language ")],-1)),d(e("select",{"onUpdate:modelValue":t[2]||(t[2]=s=>z.value=s),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":""},[(g(!0),m(y,null,h(o(l).availableLanguages,s=>(g(),m("option",{key:s,value:s},a(s),9,ie))),128))],512),[[M,z.value]])]),e("label",ne,[t[14]||(t[14]=e("div",null,[e("div",{class:"flex items-center gap-1 text-sm font-medium"}," Voice "),e("div",{class:"text-xs text-zinc-500 dark:text-zinc-400"}," Select preferred voice ")],-1)),d(e("select",{"onUpdate:modelValue":t[3]||(t[3]=s=>k.value=s),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":""},[(g(!0),m(y,null,h(P.value,s=>(g(),m("option",{key:s.id,value:s.name},a(s.name),9,ae))),128))],512),[[M,k.value]])]),e("label",de,[t[15]||(t[15]=e("div",null,[e("div",{class:"flex items-center gap-1 text-sm font-medium"}," Pitch "),e("div",{class:"text-xs text-zinc-500 dark:text-zinc-400"}," Adjust voice pitch ")],-1)),e("div",re,[d(e("input",{"onUpdate:modelValue":t[4]||(t[4]=s=>o(l).pitch=s),type:"range",min:"-100",max:"100",step:"1","w-full":""},null,512),[[b,o(l).pitch]]),e("span",ue,a(o(l).pitch),1)])]),e("label",xe,[t[16]||(t[16]=e("div",null,[e("div",{class:"flex items-center gap-1 text-sm font-medium"}," Rate "),e("div",{class:"text-xs text-zinc-500 dark:text-zinc-400"}," Adjust speaking rate ")],-1)),e("div",ce,[d(e("input",{"onUpdate:modelValue":t[5]||(t[5]=s=>o(l).rate=s),type:"range",min:"0.5",max:"2",step:"0.1","w-full":""},null,512),[[b,o(l).rate]]),e("span",pe,a(o(l).rate.toFixed(1)),1)])]),e("label",ve,[t[17]||(t[17]=e("div",null,[e("div",{class:"flex items-center gap-1 text-sm font-medium"}," SSML "),e("div",{class:"text-xs text-zinc-500 dark:text-zinc-400"}," Enable SSML support ")],-1)),e("div",null,[d(e("input",{"onUpdate:modelValue":t[6]||(t[6]=s=>o(l).ssmlEnabled=s),type:"checkbox",class:"mr-2",disabled:!o(l).supportsSSML},null,8,me),[[$,o(l).ssmlEnabled]]),e("span",ge,a(o(l).ssmlEnabled?"Enabled":"Disabled"),1)])])])]),e("div",null,[q(o(H),{"w-full":""},{trigger:E(s=>[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:()=>s.setVisible(!s.visible)&&o(K)()},[t[20]||(t[20]=e("h2",{class:"text-lg text-neutral-500 md:text-2xl dark:text-neutral-400"},[e("span",null,"Advanced")],-1)),e("div",{transform:"",transition:"transform duration-250",class:A({"rotate-180":s.visible})},t[19]||(t[19]=[e("div",{"i-solar:alt-arrow-down-bold-duotone":""},null,-1)]),2)],8,fe)]),default:E(()=>{var s;return[e("div",be,[e("label",ze,[t[21]||(t[21]=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[7]||(t[7]=_=>c.value=_),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:(s=r.value)==null?void 0:s.baseUrlDefault},null,8,ke),[[b,c.value]])]),e("div",_e,[e("button",{border:"zinc-300 dark:zinc-800 solid 1",transition:"border duration-250 ease-in-out",rounded:"","px-4":"","py-2":"","text-sm":"",onClick:t[8]||(t[8]=(..._)=>o(l).resetVoiceSettings&&o(l).resetVoiceSettings(..._))}," Reset Voice Settings ")])])]}),_:1})])]),e("div",we,[e("div",{text:"40",class:A((L=r.value)==null?void 0:L.icon),"translate-x-10":"","translate-y-10":""},null,2)])],64)}}});export{he as default};
 
1
+ import{d as R,s as B,x as F,h as C,g as v,I,p as T,w,c as m,o as g,a as e,e as o,t as a,z as d,J as j,E as b,H as M,F as y,C as h,A as $,b as q,k as E,q as A}from"./index-BMgZhVsi.js";import{_ as H}from"./Collapsable.vue_vue_type_script_setup_true_lang-W8Zxiip1.js";import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-B7SUuDYL.js";import{u as J}from"./providers-JNx_EUL2.js";import{u as G}from"./speech-QD7myZax.js";import"./TransitionVertical.vue_vue_type_script_setup_true_lang-CLmZcRWR.js";const O={flex:"~ row","items-center":"","gap-2":""},Q={relative:""},W={"text-3xl":"","font-semibold":""},X={bg:"neutral-50 dark:[rgba(0,0,0,0.3)]","rounded-xl":"","p-4":"",flex:"~ col gap-6"},Y={flex:"~ col gap-6"},Z={"max-w-full":""},ee={grid:"~ cols-2 gap-4"},te={class:"text-xs text-zinc-500 dark:text-zinc-400","text-nowrap":""},se={flex:"~ col gap-6"},le={flex:"~ col gap-6"},oe={grid:"~ cols-2 gap-4"},ie=["value"],ne={grid:"~ cols-2 gap-4"},ae=["value"],de={grid:"~ cols-2 gap-4"},re={flex:"~ row","items-center":"","gap-2":""},ue={class:"text-xs"},xe={grid:"~ cols-2 gap-4"},ce={flex:"~ row","items-center":"","gap-2":""},pe={class:"text-xs"},ve={grid:"~ cols-2 gap-4"},me=["disabled"],ge={class:"text-sm"},fe=["onClick"],be={"mt-4":""},ze={grid:"~ cols-2 gap-4"},ke=["placeholder"],_e={"mt-4":""},we={fixed:"","bottom-0":"","right-0":"",text:"neutral-100/80 dark:neutral-500/20"},n="elevenlabs",he=R({__name:"elevenlabs",setup(ye){var V,S;const N=B(),f=J(),l=G(),{providers:u}=F(f),r=C(()=>f.getProviderMetadata(n)),x=v(((V=u.value[n])==null?void 0:V.apiKey)||""),c=v(((S=u.value[n])==null?void 0:S.baseUrl)||""),z=v(l.selectedLanguage),k=v(l.voiceName),P=C(()=>l.availableVoicesForLanguage),D=v(!1),K=I(D);return T(()=>{var i,t,p;f.initializeProvider(n),x.value=((i=u.value[n])==null?void 0:i.apiKey)||"",c.value=((t=u.value[n])==null?void 0:t.baseUrl)||((p=r.value)==null?void 0:p.baseUrlDefault)||"",f.configuredProviders[n]&&l.loadVoicesForProvider(n)}),w([x,c],()=>{var i;u.value[n]={apiKey:x.value,baseUrl:c.value||((i=r.value)==null?void 0:i.baseUrlDefault)||""}}),w(z,i=>{l.setLanguage(i)}),w(k,i=>{l.setVoiceName(i)}),(i,t)=>{var p,U,L;return g(),m(y,null,[e("div",O,[e("button",{onClick:t[0]||(t[0]=s=>o(N).back())},t[9]||(t[9]=[e("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),e("h1",Q,[t[10]||(t[10]=e("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[e("span",{text:"neutral-300 dark:neutral-500"},"Provider")],-1)),e("div",W,a((p=r.value)==null?void 0:p.localizedName),1)])]),e("div",X,[e("div",null,[e("div",Y,[t[12]||(t[12]=e("div",null,[e("h2",{class:"text-lg text-neutral-500 md:text-2xl dark:text-neutral-400"}," Basic "),e("div",{text:"neutral-400 dark:neutral-500"},[e("span",null,"Essential settings")])],-1)),e("div",Z,[e("label",ee,[e("div",null,[t[11]||(t[11]=e("div",{class:"flex items-center gap-1 text-sm font-medium"},[j(" API Key "),e("span",{class:"text-red-500"},"*")],-1)),e("div",te," API Key for "+a((U=r.value)==null?void 0:U.localizedName),1)]),d(e("input",{"onUpdate:modelValue":t[1]||(t[1]=s=>x.value=s),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:"..."},null,512),[[b,x.value]])])])])]),e("div",se,[t[18]||(t[18]=e("h2",{class:"text-lg text-neutral-500 md:text-2xl dark:text-neutral-400"}," Voice Settings ",-1)),e("div",le,[e("label",oe,[t[13]||(t[13]=e("div",null,[e("div",{class:"flex items-center gap-1 text-sm font-medium"}," Language "),e("div",{class:"text-xs text-zinc-500 dark:text-zinc-400"}," Select voice language ")],-1)),d(e("select",{"onUpdate:modelValue":t[2]||(t[2]=s=>z.value=s),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":""},[(g(!0),m(y,null,h(o(l).availableLanguages,s=>(g(),m("option",{key:s,value:s},a(s),9,ie))),128))],512),[[M,z.value]])]),e("label",ne,[t[14]||(t[14]=e("div",null,[e("div",{class:"flex items-center gap-1 text-sm font-medium"}," Voice "),e("div",{class:"text-xs text-zinc-500 dark:text-zinc-400"}," Select preferred voice ")],-1)),d(e("select",{"onUpdate:modelValue":t[3]||(t[3]=s=>k.value=s),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":""},[(g(!0),m(y,null,h(P.value,s=>(g(),m("option",{key:s.id,value:s.name},a(s.name),9,ae))),128))],512),[[M,k.value]])]),e("label",de,[t[15]||(t[15]=e("div",null,[e("div",{class:"flex items-center gap-1 text-sm font-medium"}," Pitch "),e("div",{class:"text-xs text-zinc-500 dark:text-zinc-400"}," Adjust voice pitch ")],-1)),e("div",re,[d(e("input",{"onUpdate:modelValue":t[4]||(t[4]=s=>o(l).pitch=s),type:"range",min:"-100",max:"100",step:"1","w-full":""},null,512),[[b,o(l).pitch]]),e("span",ue,a(o(l).pitch),1)])]),e("label",xe,[t[16]||(t[16]=e("div",null,[e("div",{class:"flex items-center gap-1 text-sm font-medium"}," Rate "),e("div",{class:"text-xs text-zinc-500 dark:text-zinc-400"}," Adjust speaking rate ")],-1)),e("div",ce,[d(e("input",{"onUpdate:modelValue":t[5]||(t[5]=s=>o(l).rate=s),type:"range",min:"0.5",max:"2",step:"0.1","w-full":""},null,512),[[b,o(l).rate]]),e("span",pe,a(o(l).rate.toFixed(1)),1)])]),e("label",ve,[t[17]||(t[17]=e("div",null,[e("div",{class:"flex items-center gap-1 text-sm font-medium"}," SSML "),e("div",{class:"text-xs text-zinc-500 dark:text-zinc-400"}," Enable SSML support ")],-1)),e("div",null,[d(e("input",{"onUpdate:modelValue":t[6]||(t[6]=s=>o(l).ssmlEnabled=s),type:"checkbox",class:"mr-2",disabled:!o(l).supportsSSML},null,8,me),[[$,o(l).ssmlEnabled]]),e("span",ge,a(o(l).ssmlEnabled?"Enabled":"Disabled"),1)])])])]),e("div",null,[q(o(H),{"w-full":""},{trigger:E(s=>[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:()=>s.setVisible(!s.visible)&&o(K)()},[t[20]||(t[20]=e("h2",{class:"text-lg text-neutral-500 md:text-2xl dark:text-neutral-400"},[e("span",null,"Advanced")],-1)),e("div",{transform:"",transition:"transform duration-250",class:A({"rotate-180":s.visible})},t[19]||(t[19]=[e("div",{"i-solar:alt-arrow-down-bold-duotone":""},null,-1)]),2)],8,fe)]),default:E(()=>{var s;return[e("div",be,[e("label",ze,[t[21]||(t[21]=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[7]||(t[7]=_=>c.value=_),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:(s=r.value)==null?void 0:s.baseUrlDefault},null,8,ke),[[b,c.value]])]),e("div",_e,[e("button",{border:"zinc-300 dark:zinc-800 solid 1",transition:"border duration-250 ease-in-out",rounded:"","px-4":"","py-2":"","text-sm":"",onClick:t[8]||(t[8]=(..._)=>o(l).resetVoiceSettings&&o(l).resetVoiceSettings(..._))}," Reset Voice Settings ")])])]}),_:1})])]),e("div",we,[e("div",{text:"40",class:A((L=r.value)==null?void 0:L.icon),"translate-x-10":"","translate-y-10":""},null,2)])],64)}}});export{he as default};
assets/{emotions-AsN40LJ7.js → emotions-WSTnmMSA.js} RENAMED
@@ -1 +1 @@
1
- import{_}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-CG2-D319.js";import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-C_JkQof7.js";import{u as k}from"./queue-DIUCMOjh.js";import{a as b,l as x}from"./queues-CDLhb0jO.js";import{d as z,g as u,c as s,o as t,a as e,b as h,e as w,t as r,F as f,C as m}from"./index-DraHnlQA.js";const M={flex:"","flex-col":"","gap-2":"","p-2":""},V={flex:"","flex-row":"","gap-2":""},y={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},E={"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([]),i=u([]),d=u(!1),g=k({handlers:[async a=>{i.value.push(a.data)}]}),c=b(g);function v(){d.value=!0;const a=l.value.split("");for(const o of a)c.add(o);c.add(x),l.value="",d.value=!1}return(a,o)=>(t(),s("div",M,[e("div",V,[h(w(_),{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",y,r(d.value?"Processing...":"Send"),1)]),e("div",E,[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,r(n),1)]))),128))]),e("div",S,[o[2]||(o[2]=e("h3",{"font-semibold":""}," Emotions ",-1)),(t(!0),s(f,null,m(i.value,n=>(t(),s("div",{key:n},[e("div",null,r(n),1)]))),128))])])]))}});export{D as default};
 
1
+ import{_}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-DvUeFWfi.js";import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-B7SUuDYL.js";import{u as k}from"./queue-BVK4A6kJ.js";import{a as b,l as x}from"./queues-CSlGUoy_.js";import{d as z,g as u,c as s,o as t,a as e,b as h,e as w,t as r,F as f,C as m}from"./index-BMgZhVsi.js";const M={flex:"","flex-col":"","gap-2":"","p-2":""},V={flex:"","flex-row":"","gap-2":""},y={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},E={"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([]),i=u([]),d=u(!1),g=k({handlers:[async a=>{i.value.push(a.data)}]}),c=b(g);function v(){d.value=!0;const a=l.value.split("");for(const o of a)c.add(o);c.add(x),l.value="",d.value=!1}return(a,o)=>(t(),s("div",M,[e("div",V,[h(w(_),{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",y,r(d.value?"Processing...":"Send"),1)]),e("div",E,[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,r(n),1)]))),128))]),e("div",S,[o[2]||(o[2]=e("h3",{"font-semibold":""}," Emotions ",-1)),(t(!0),s(f,null,m(i.value,n=>(t(),s("div",{key:n},[e("div",null,r(n),1)]))),128))])])]))}});export{D as default};
assets/{filter-message-D2ug2Kuj.js → filter-message-CwtpyQOH.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-DraHnlQA.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-BMgZhVsi.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-BSW6HMFw.js → image-CvR5IrRj.js} RENAMED
@@ -1,2 +1,2 @@
1
- import{d as _,g as c,l as y,c as d,o as u,a,m as x,t as v,e as w,_ as b}from"./index-DraHnlQA.js";const h={bg:"neutral-100",flex:"~ col","items-center":"","justify-center":"","rounded-lg":"","px-4":"","py-3":""},C={key:0},U=["src"],R={bg:"neutral-100",class:"text-wrap-any","max-h":"100","overflow-scroll":"","rounded-lg":"","text-wrap":"","text-black":"","font-mono":""},k=_({__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",R," "+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(k,[["__scopeId","data-v-7edd53e6"]]);export{B as default};
 
1
+ import{d as _,g as c,l as y,c as d,o as u,a,m as x,t as v,e as w,_ as b}from"./index-BMgZhVsi.js";const h={bg:"neutral-100",flex:"~ col","items-center":"","justify-center":"","rounded-lg":"","px-4":"","py-3":""},C={key:0},U=["src"],R={bg:"neutral-100",class:"text-wrap-any","max-h":"100","overflow-scroll":"","rounded-lg":"","text-wrap":"","text-black":"","font-mono":""},k=_({__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",R," "+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(k,[["__scopeId","data-v-7edd53e6"]]);export{B as default};
assets/{index-DraHnlQA.js → index-BMgZhVsi.js} RENAMED
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/default-R3ZmIHxJ.js","assets/HeaderLink-Cb62pdxb.js","assets/HeaderLink-DsxHr3rn.css","assets/index-BGedhUcl.js","assets/Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-C_JkQof7.js","assets/Stage-v30MSlum.css","assets/Live2DSettings.vue_vue_type_script_setup_true_lang-CSa2O48R.js","assets/providers-DeZ8eO-6.js","assets/queue-DIUCMOjh.js","assets/queues-CDLhb0jO.js","assets/speech-DwMeD8n7.js","assets/TransitionVertical.vue_vue_type_script_setup_true_lang-Ch4fEDgw.js","assets/Collapsable.vue_vue_type_script_setup_true_lang-CoeIagAH.js","assets/MobileInteractiveArea.vue_vue_type_script_setup_true_lang-Cdag5m7E.js","assets/BasicTextarea.vue_vue_type_script_setup_true_lang-CG2-D319.js","assets/consciousness-BqvSoi9M.js","assets/index-DSXMBaIh.js","assets/MobileInteractiveArea-olUfoEr4.css","assets/route-block-B_A1xBdJ.js","assets/index-CsnOP7QS.css","assets/image-BSW6HMFw.js","assets/image-BhuwcwI9.css","assets/queue-wgsMwoXE.js","assets/index-DM6uRpJv.js","assets/index-CTqAbTyg.js","assets/index-BmQmEpG2.js","assets/IconStatusItem-BDOcdafO.js","assets/consciousness-DjFbmFp_.js","assets/RadioCardSimple-CtAvpvdI.js","assets/speech-b4SwtB2M.js","assets/index-Br9Fhbaw.js","assets/elevenlabs-Bv-IEdeB.js","assets/openai-C2jmyh1H.js","assets/openrouter-BcRJnMgp.js","assets/index-BCo4pnCR.js","assets/index-Cqww2nts.css","assets/delays-CdMiuWNX.js","assets/emotions-AsN40LJ7.js","assets/messages-Bu52yiHa.js","assets/v2-M-HKgmJw.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 QT="modulepreload",ew=function(n){return"/"+n},w_={},Bt=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=ew(l),l in w_)return;w_[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":QT,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 hT;const Zh=n=>hT=n,dT=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 xk(){const n=Ql(!0),e=n.run(()=>Xe({}));let t=[],i=[];const r=Wm({install(s){Zh(r),r._a=s,s.provide(dT,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 pT=()=>{};function wy(n,e,t,i=pT){n.push(e);const r=()=>{const s=n.indexOf(e);s>-1&&(n.splice(s,1),i())};return!t&&th()&&Fm(r),r}function ko(n,...e){n.slice().forEach(t=>{t(...e)})}const bk=n=>n(),Ay=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)&&!vr(i)?n[t]=vm(r,i):n[t]=i}return n}const Sk=Symbol();function Mk(n){return!_m(n)||!n.hasOwnProperty(Sk)}const{assign:Vr}=Object;function Ek(n){return!!(Mt(n)&&n.effect)}function Tk(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=qx(t.state.value[n]);return Vr(u,s,Object.keys(o||{}).reduce((f,h)=>(f[h]=Wm(Ce(()=>{Zh(t);const d=t._s.get(n);return o[h].call(d,d)})),f),{}))}return l=mT(n,c,e,t,i,!0),l}function mT(n,e,t={},i,r,s){let o;const a=Vr({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=>{Vr(D,S)})}:pT;function y(){o.stop(),f=[],h=[],i._s.delete(n)}const x=(P,b="")=>{if(Ay 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[Ay]=!0,S[gp]=b,S},v={_p:i,$id:n,$onAction:wy.bind(null,h),$patch:g,$reset:m,$subscribe(P,b={}){const S=wy(f,P,b.detached,()=>D()),D=o.run(()=>qe(()=>i.state.value[n],B=>{(b.flush==="sync"?u:c)&&P({storeId:n,type:dl.direct,events:d},B)},Vr({},l,b)));return S},$dispose:y},E=fi(v);i._s.set(n,E);const M=(i._a&&i._a.runWithContext||bk)(()=>i._e.run(()=>(o=Ql()).run(()=>e({action:x}))));for(const P in M){const b=M[P];if(Mt(b)&&!Ek(b)||vr(b))s||(p&&Mk(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 Vr(E,M),Vr(st(E),M),Object.defineProperty(E,"$state",{get:()=>i.state.value[n],set:P=>{g(b=>{Vr(b,P)})}}),i._p.forEach(P=>{Vr(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 wk(n,e,t){let i;const r=typeof e=="function";i=r?t:e;function s(o,a){const l=Zm();return o=o||(l?In(dT,null):null),o&&Zh(o),o=hT,o._s.has(n)||(r?mT(n,e,i,o):Tk(n,i,o)),o._s.get(n)}return s.$id=n,s}function Ak(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)||vr(r))&&(t[i]=Yx(n,i))}return t}const Ck=n=>{const e={};Object.entries(Object.assign({"/src/layouts/default.vue":()=>Bt(()=>import("./default-R3ZmIHxJ.js"),__vite__mapDeps([0,1,2])),"/src/layouts/stage.vue":()=>Bt(()=>import("./stage-BIEcDo08.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 zo=typeof document<"u";function gT(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function Rk(n){return n.__esModule||n[Symbol.toStringTag]==="Module"||n.default&&gT(n.default)}const vt=Object.assign;function _p(n,e){const t={};for(const i in e){const r=e[i];t[i]=Ri(r)?r.map(n):n(r)}return t}const pl=()=>{},Ri=Array.isArray,_T=/#/g,Pk=/&/g,Ik=/\//g,Lk=/=/g,Dk=/\?/g,vT=/\+/g,Ok=/%5B/g,Nk=/%5D/g,yT=/%5E/g,Uk=/%60/g,xT=/%7B/g,Fk=/%7C/g,bT=/%7D/g,Bk=/%20/g;function u_(n){return encodeURI(""+n).replace(Fk,"|").replace(Ok,"[").replace(Nk,"]")}function kk(n){return u_(n).replace(xT,"{").replace(bT,"}").replace(yT,"^")}function ym(n){return u_(n).replace(vT,"%2B").replace(Bk,"+").replace(_T,"%23").replace(Pk,"%26").replace(Uk,"`").replace(xT,"{").replace(bT,"}").replace(yT,"^")}function Vk(n){return ym(n).replace(Lk,"%3D")}function zk(n){return u_(n).replace(_T,"%23").replace(Dk,"%3F")}function Hk(n){return n==null?"":zk(n).replace(Ik,"%2F")}function ql(n){try{return decodeURIComponent(""+n)}catch{}return""+n}const Gk=/\/$/,Wk=n=>n.replace(Gk,"");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=Yk(i??e,t),{fullPath:i+(s&&"?")+s+o,path:i,query:r,hash:ql(o)}}function Xk(n,e){const t=e.query?n(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function Cy(n,e){return!e||!n.toLowerCase().startsWith(e.toLowerCase())?n:n.slice(e.length)||"/"}function $k(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])&&ST(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 ST(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(!qk(n[t],e[t]))return!1;return!0}function qk(n,e){return Ri(n)?Ry(n,e):Ri(e)?Ry(e,n):n===e}function Ry(n,e){return Ri(e)?n.length===e.length&&n.every((t,i)=>t===e[i]):n.length===1&&n[0]===e}function Yk(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 jk(n){if(!n)if(zo){const e=document.querySelector("base");n=e&&e.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),Wk(n)}const Kk=/^[^#]+#/;function Zk(n,e){return n.replace(Kk,"#")+e}function Jk(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 Qk(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=Jk(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 Py(n,e){return(history.state?history.state.position-e:-1)+n}const xm=new Map;function eV(n,e){xm.set(n,e)}function tV(n){const e=xm.get(n);return xm.delete(n),e}let nV=()=>location.protocol+"//"+location.host;function MT(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),Cy(l,"")}return Cy(t,n)+i+r}function iV(n,e,t,i){let r=[],s=[],o=null;const a=({state:h})=>{const d=MT(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 Iy(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 rV(n){const{history:e,location:t}=window,i={value:MT(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:nV()+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,Iy(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({},Iy(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 sV(n){n=jk(n);const e=rV(n),t=iV(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:Zk.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 oV(n){return n=location.host?n||location.pathname+location.search:"",n.includes("#")||(n+="#"),sV(n)}function aV(n){return typeof n=="string"||n&&typeof n=="object"}function ET(n){return typeof n=="string"||typeof n=="symbol"}const TT=Symbol("");var Ly;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(Ly||(Ly={}));function fa(n,e){return vt(new Error,{type:n,[TT]:!0},e)}function or(n,e){return n instanceof Error&&TT in n&&(e==null||!!(n.type&e))}const Dy="[^/]+?",lV={sensitive:!1,strict:!1,start:!0,end:!0},cV=/[.+*?^${}()[\]/\\]/g;function uV(n,e){const t=vt({},lV,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(cV,"\\$&"),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||Dy;if(y!==Dy){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(Ri(m)&&!_)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const y=Ri(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 fV(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 wT(n,e){let t=0;const i=n.score,r=e.score;for(;t<i.length&&t<r.length;){const s=fV(i[t],r[t]);if(s)return s;t++}if(Math.abs(r.length-i.length)===1){if(Oy(i))return 1;if(Oy(r))return-1}return r.length-i.length}function Oy(n){const e=n[n.length-1];return n.length>0&&e[e.length-1]<0}const hV={type:0,value:""},dV=/[a-zA-Z0-9_]/;function pV(n){if(!n)return[[]];if(n==="/")return[[hV]];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:dV.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 mV(n,e,t){const i=uV(pV(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 gV(n,e){const t=[],i=new Map;e=By({strict:!1,end:!0,sensitive:!1},e);function r(f){return i.get(f)}function s(f,h,d){const p=!d,_=Uy(f);_.aliasOf=d&&d.record;const g=By(e,f),m=[_];if("alias"in f){const v=typeof f.alias=="string"?[f.alias]:f.alias;for(const E of v)m.push(Uy(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=mV(v,h,g),d?d.alias.push(y):(x=x||y,x!==y&&x.alias.push(y),p&&f.name&&!Fy(y)&&o(f.name)),AT(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(ET(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=yV(f,t);t.splice(h,0,f),f.record.name&&!Fy(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(Ny(h.params,d.keys.filter(x=>!x.optional).concat(d.parent?d.parent.keys.filter(x=>x.optional):[]).map(x=>x.name)),f.params&&Ny(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:vV(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 Ny(n,e){const t={};for(const i of e)i in n&&(t[i]=n[i]);return t}function Uy(n){const e={path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:n.aliasOf,beforeEnter:n.beforeEnter,props:_V(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 _V(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 Fy(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function vV(n){return n.reduce((e,t)=>vt(e,t.meta),{})}function By(n,e){const t={};for(const i in n)t[i]=i in e?e[i]:n[i];return t}function yV(n,e){let t=0,i=e.length;for(;t!==i;){const s=t+i>>1;wT(n,e[s])<0?i=s:t=s+1}const r=xV(n);return r&&(i=e.lastIndexOf(r,i-1)),i}function xV(n){let e=n;for(;e=e.parent;)if(AT(e)&&wT(n,e)===0)return e}function AT({record:n}){return!!(n.name||n.components&&Object.keys(n.components).length||n.redirect)}function bV(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(vT," "),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];Ri(c)||(c=e[a]=[c]),c.push(l)}else e[a]=l}return e}function ky(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}(Ri(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 SV(n){const e={};for(const t in n){const i=n[t];i!==void 0&&(e[t]=Ri(i)?i.map(r=>r==null?null:""+r):i==null?i:""+i)}return e}const MV=Symbol(""),Vy=Symbol(""),Qh=Symbol(""),CT=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):aV(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(gT(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=Rk(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 zy(n){const e=In(Qh),t=In(CT),i=Ce(()=>{const l=Rt(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=Hy(l[c-2]);return c>1&&Hy(u)===d&&f[f.length-1].path!==d?f.findIndex(ua.bind(null,l[c-2])):h}),s=Ce(()=>r.value>-1&&CV(t.params,i.value.params)),o=Ce(()=>r.value>-1&&r.value===t.matched.length-1&&ST(t.params,i.value.params));function a(l={}){if(AV(l)){const c=e[Rt(n.replace)?"replace":"push"](Rt(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 EV(n){return n.length===1?n[0]:n}const TV=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:zy,setup(n,{slots:e}){const t=fi(zy(n)),{options:i}=In(Qh),r=Ce(()=>({[Gy(n.activeClass,i.linkActiveClass,"router-link-active")]:t.isActive,[Gy(n.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const s=e.default&&EV(e.default(t));return n.custom?s:br("a",{"aria-current":t.isExactActive?n.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:r.value},s)}}}),wV=TV;function AV(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 CV(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(!Ri(r)||r.length!==i.length||i.some((s,o)=>s!==r[o]))return!1}return!0}function Hy(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const Gy=(n,e,t)=>n??e??t,RV=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=Rt(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(MV,a),Jr(bm,r);const l=Xe();return qe(()=>[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 Wy(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=br(h,vt({},p,e,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return Wy(t.default,{Component:g,route:c})||g}}});function Wy(n,e){if(!n)return null;const t=n(e);return t.length===1?t[0]:t}const RT=RV;function PV(n){const e=gV(n.routes,n),t=n.parseQuery||bV,i=n.stringifyQuery||ky,r=n.history,s=ka(),o=ka(),a=ka(),l=Ve(Br);let c=Br;zo&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=_p.bind(null,W=>""+W),f=_p.bind(null,Hk),h=_p.bind(null,ql);function d(W,ae){let ue,le;return ET(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=Xk(i,vt({},W,{hash:kk(De),path:le.path})),L=r.createHref(I);return vt({fullPath:I,hash:De,query:i===ky?SV(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&&$k(i,le,ue)&&(G=fa(16,{to:j,from:le}),re(le,le,!0,!1)),(G?Promise.resolve(G):S(j,le)).catch(q=>or(q)?or(q,2)?q:ve(q):Q(q,j,le)).then(q=>{if(q){if(or(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]=IV(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(Ri(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=>or(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=zo?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;zo&&eV(Py(I.fullPath,ue.delta),Jh()),S(le,I).catch(L=>or(L,12)?L:or(L,2)?(M(vt(y(L.to),{force:!0}),le).then(w=>{or(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&&!or(L,8)?r.go(-ue.delta,!1):ue.type===Yl.pop&&or(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(!zo||!De)return Promise.resolve();const I=!ue&&tV(Py(W.fullPath,0))||(le||!ue)&&history.state&&history.state.scroll||null;return cs().then(()=>De(W,ae,I)).then(L=>L&&Qk(L)).catch(L=>Q(L,W,ae))}const xe=W=>r.go(W);let ze;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",wV),W.component("RouterView",RT),W.config.globalProperties.$router=ae,Object.defineProperty(W.config.globalProperties,"$route",{enumerable:!0,get:()=>Rt(l)}),zo&&!ze&&l.value===Br&&(ze=!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(CT,Wx(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,ze=!1,te=!1),le()}}};function be(W){return W.reduce((ae,ue)=>ae.then(()=>b(ue)),Promise.resolve())}return ge}function IV(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 LV(){return In(Qh)}const DV=[{path:"/",name:"/",component:()=>Bt(()=>import("./index-BGedhUcl.js"),__vite__mapDeps([3,4,5,6,7,8,9,10,11,12,13,1,2,14,15,16,17,18,19])),meta:{layout:"stage",stageTransition:{name:"bubble-wave-out"}}},{path:"/:all(.*)",name:"/[...all]",component:()=>Bt(()=>import("./_...all_-CD2bpTnG.js"),[])},{path:"/audio",name:"/audio",component:()=>Bt(()=>import("./audio-bEUsWVHt.js"),[])},{path:"/devtools",children:[{path:"image",name:"/devtools/image",component:()=>Bt(()=>import("./image-BSW6HMFw.js"),__vite__mapDeps([20,21]))}]},{path:"/queue",name:"/queue",component:()=>Bt(()=>import("./queue-wgsMwoXE.js"),__vite__mapDeps([22,8]))},{path:"/settings",children:[{path:"",name:"/settings/",component:()=>Bt(()=>import("./index-DM6uRpJv.js"),__vite__mapDeps([23,4,5,18])),meta:{stageTransition:{name:"slide"}}},{path:"models",children:[{path:"",name:"/settings/models/",component:()=>Bt(()=>import("./index-CTqAbTyg.js"),__vite__mapDeps([24,4,5,6,7,8,9,10,11,12,18])),meta:{stageTransition:{name:"slide"}}}]},{path:"modules",children:[{path:"",name:"/settings/modules/",component:()=>Bt(()=>import("./index-BmQmEpG2.js"),__vite__mapDeps([25,4,5,26,18])),meta:{stageTransition:{name:"slide"}}},{path:"consciousness",name:"/settings/modules/consciousness",component:()=>Bt(()=>import("./consciousness-DjFbmFp_.js"),__vite__mapDeps([27,4,5,28,11,15,7,18])),meta:{stageTransition:{name:"slide"}}},{path:"speech",name:"/settings/modules/speech",component:()=>Bt(()=>import("./speech-b4SwtB2M.js"),__vite__mapDeps([29,4,5,28,7,10,18])),meta:{stageTransition:{name:"slide"}}}]},{path:"providers",children:[{path:"",name:"/settings/providers/",component:()=>Bt(()=>import("./index-Br9Fhbaw.js"),__vite__mapDeps([30,4,5,7,26,18])),meta:{stageTransition:{name:"slide"}}},{path:"elevenlabs",name:"/settings/providers/elevenlabs",component:()=>Bt(()=>import("./elevenlabs-Bv-IEdeB.js"),__vite__mapDeps([31,12,11,4,5,7,10]))},{path:"openai",name:"/settings/providers/openai",component:()=>Bt(()=>import("./openai-C2jmyh1H.js"),__vite__mapDeps([32,12,11,4,5,7]))},{path:"openrouter",name:"/settings/providers/openrouter",component:()=>Bt(()=>import("./openrouter-BcRJnMgp.js"),__vite__mapDeps([33,12,11,4,5,7]))}]},{path:"themes",children:[{path:"",name:"/settings/themes/",component:()=>Bt(()=>import("./index-BCo4pnCR.js"),__vite__mapDeps([34,12,11,4,5,18,35])),meta:{stageTransition:{name:"slide"}}}]}]},{path:"/test",children:[{path:"filter-message",name:"/test/filter-message",component:()=>Bt(()=>import("./filter-message-D2ug2Kuj.js"),[])},{path:"queues",children:[{path:"delays",name:"/test/queues/delays",component:()=>Bt(()=>import("./delays-CdMiuWNX.js"),__vite__mapDeps([36,14,4,5,9,8,16]))},{path:"emotions",name:"/test/queues/emotions",component:()=>Bt(()=>import("./emotions-AsN40LJ7.js"),__vite__mapDeps([37,14,4,5,8,9]))},{path:"messages",name:"/test/queues/messages",component:()=>Bt(()=>import("./messages-Bu52yiHa.js"),__vite__mapDeps([38,14,4,5,8,9]))}]}]},{path:"/v2",name:"/v2",component:()=>Bt(()=>import("./v2-M-HKgmJw.js"),__vite__mapDeps([39,4,5,6,7,8,9,10,11,12,13,1,2,14,15,16,17,18])),meta:{layout:"default"}}],OV=354.31,NV=wk("settings",()=>{const n=Xe(),e=Fr("settings/language","en-US"),t=Fr("settings/stage/view/model-renderer","2d"),i=Fr("settings/audio/input","true"),r=Ce(()=>{var m;return(m=n.value)==null?void 0:m.deviceId}),{audioInputs:s}=BN({constraints:{audio:!0},requestPermissions:!0}),o=Xe(),a=Xe("./assets/live2d/models/hiyori_pro_zh.zip"),l=Xe("url"),c=Xe(!1),u=Fr("settings/live2d/position",{x:0,y:0}),f=Xe({group:"Idle",index:0}),h=Xe([]),d=Fr("settings/live2d/motion-map",{}),p=Fr("settings/disable-transitions",!1),_=Fr("settings/theme/colors/hue",OV),g=Fr("settings/theme/colors/hue-dynamic",!1);return qe(i,m=>{m==="false"&&(n.value=void 0),m==="true"&&(n.value=s.value[0])}),Nn(()=>{i.value==="true"&&!n.value&&(n.value=s.value[0])}),qe(s,()=>{i.value==="true"&&!n.value&&(n.value=s.value[0])}),{live2dModelFile:o,live2dModelUrl:a,live2dLoadSource:l,live2dCurrentMotion:f,live2dPosition:u,availableLive2dMotions:h,live2dMotionMap:d,loadingLive2dModel:c,disableTransitions:p,language:e,stageView:t,themeColorsHue:_,themeColorsHueDynamic:g,isAudioInputOn:i,selectedAudioDevice:n,selectedAudioDeviceId:r}}),UV=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},FV=vo(UV,[["__scopeId","data-v-df576df0"]]),BV=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(Wt,null,aA(t.value,(o,a)=>(ln(),ci("div",{key:a}))),128))],4)}}}),kV=vo(BV,[["__scopeId","data-v-0c29056c"]]),VV=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)}}}),zV=vo(VV,[["__scopeId","data-v-e62bf496"]]),HV=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-6d1179fc></div><div class="stage-transition-4__block" data-v-6d1179fc></div><div class="stage-transition-4__block" data-v-6d1179fc></div><div class="stage-transition-4__block" data-v-6d1179fc></div><div class="stage-transition-4__block" data-v-6d1179fc></div>',5)]),4)}}}),GV=vo(HV,[["__scopeId","data-v-6d1179fc"]]),WV=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 qe([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)}}}),XV=vo(WV,[["__scopeId","data-v-bf1d1566"]]),$V=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)}}}),qV=vo($V,[["__scopeId","data-v-8ff7120f"]]),YV=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)}}}),jV=vo(YV,[["__scopeId","data-v-f4b1dc64"]]),KV=nn({__name:"StageTransitionGroup",props:{primaryColor:null,secondaryColor:null,tertiaryColor:null,colors:null,zIndex:null,disableTransitions:{type:Boolean}},setup(n){const e=n,t=LV(),i=Xe(!1),r=Xe(),s=Xe(""),o=Xe(),a=Ve({slide:{component:XV,duration:2700},"slope-slide":{component:qV,duration:2700},arrow:{component:FV,duration:2700},"multiple-blocks-reveal":{component:GV,duration:2800},"fantasy-fall":{component:zV,duration:2700},"rectangles-rotate":{component:jV,duration:2700},"bubble-wave-out":{component:kV,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;if(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),e.disableTransitions){_();return}h(g,_)}),(d,p)=>(ln(),ci(Wt,null,[lA(d.$slots,"default"),i.value?(ln(),ci(Wt,{key:0},[a.value[s.value]?(ln(),bl(oA(a.value[s.value].component),{key:0,"stage-transition":o.value},null,8,["stage-transition"])):X_("",!0)],64)):X_("",!0)],64))}});/*!
3854
  * shared v11.1.2
3855
  * (c) 2025 kazuya kawaguchi
3856
  * Released under the MIT License.
 
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/default-BmFJgYVM.js","assets/HeaderLink-B0cut292.js","assets/HeaderLink-DsxHr3rn.css","assets/index-CbqFxSt5.js","assets/Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-B7SUuDYL.js","assets/Stage-v30MSlum.css","assets/Live2DSettings.vue_vue_type_script_setup_true_lang-R42naQro.js","assets/providers-JNx_EUL2.js","assets/queue-BVK4A6kJ.js","assets/queues-CSlGUoy_.js","assets/speech-QD7myZax.js","assets/TransitionVertical.vue_vue_type_script_setup_true_lang-CLmZcRWR.js","assets/Collapsable.vue_vue_type_script_setup_true_lang-W8Zxiip1.js","assets/MobileInteractiveArea.vue_vue_type_script_setup_true_lang-DWigyVWY.js","assets/BasicTextarea.vue_vue_type_script_setup_true_lang-DvUeFWfi.js","assets/consciousness-DGKqeXEN.js","assets/index-CYxDYfrf.js","assets/MobileInteractiveArea-CkhuOcV9.css","assets/route-block-B_A1xBdJ.js","assets/index-CsnOP7QS.css","assets/image-CvR5IrRj.js","assets/image-BhuwcwI9.css","assets/queue-CGBwVF3U.js","assets/index-fb01Mqpw.js","assets/index-DGsoPCO8.js","assets/index-BoLGpubZ.js","assets/IconStatusItem-DuAACaJU.js","assets/consciousness-D7J66NZD.js","assets/RadioCardSimple-BeqOivcn.js","assets/speech-CdrLdEd-.js","assets/index-DiBDJUPk.js","assets/elevenlabs-CG56K-vv.js","assets/openai-C0h04mkK.js","assets/openrouter-Be7POxFO.js","assets/index-Bt_c0r2z.js","assets/index-Cqww2nts.css","assets/delays-KTYa_Ekj.js","assets/emotions-WSTnmMSA.js","assets/messages-9zYOm-8o.js","assets/v2-C3BMTE30.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 QT="modulepreload",ew=function(n){return"/"+n},w_={},Bt=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=ew(l),l in w_)return;w_[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":QT,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 hT;const Zh=n=>hT=n,dT=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 xk(){const n=Ql(!0),e=n.run(()=>Xe({}));let t=[],i=[];const r=Wm({install(s){Zh(r),r._a=s,s.provide(dT,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 pT=()=>{};function wy(n,e,t,i=pT){n.push(e);const r=()=>{const s=n.indexOf(e);s>-1&&(n.splice(s,1),i())};return!t&&th()&&Fm(r),r}function ko(n,...e){n.slice().forEach(t=>{t(...e)})}const bk=n=>n(),Ay=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)&&!vr(i)?n[t]=vm(r,i):n[t]=i}return n}const Sk=Symbol();function Mk(n){return!_m(n)||!n.hasOwnProperty(Sk)}const{assign:Vr}=Object;function Ek(n){return!!(Mt(n)&&n.effect)}function Tk(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=qx(t.state.value[n]);return Vr(u,s,Object.keys(o||{}).reduce((f,h)=>(f[h]=Wm(Ce(()=>{Zh(t);const d=t._s.get(n);return o[h].call(d,d)})),f),{}))}return l=mT(n,c,e,t,i,!0),l}function mT(n,e,t={},i,r,s){let o;const a=Vr({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=>{Vr(D,S)})}:pT;function y(){o.stop(),f=[],h=[],i._s.delete(n)}const x=(P,b="")=>{if(Ay 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[Ay]=!0,S[gp]=b,S},v={_p:i,$id:n,$onAction:wy.bind(null,h),$patch:g,$reset:m,$subscribe(P,b={}){const S=wy(f,P,b.detached,()=>D()),D=o.run(()=>qe(()=>i.state.value[n],B=>{(b.flush==="sync"?u:c)&&P({storeId:n,type:dl.direct,events:d},B)},Vr({},l,b)));return S},$dispose:y},E=fi(v);i._s.set(n,E);const M=(i._a&&i._a.runWithContext||bk)(()=>i._e.run(()=>(o=Ql()).run(()=>e({action:x}))));for(const P in M){const b=M[P];if(Mt(b)&&!Ek(b)||vr(b))s||(p&&Mk(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 Vr(E,M),Vr(st(E),M),Object.defineProperty(E,"$state",{get:()=>i.state.value[n],set:P=>{g(b=>{Vr(b,P)})}}),i._p.forEach(P=>{Vr(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 wk(n,e,t){let i;const r=typeof e=="function";i=r?t:e;function s(o,a){const l=Zm();return o=o||(l?In(dT,null):null),o&&Zh(o),o=hT,o._s.has(n)||(r?mT(n,e,i,o):Tk(n,i,o)),o._s.get(n)}return s.$id=n,s}function Ak(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)||vr(r))&&(t[i]=Yx(n,i))}return t}const Ck=n=>{const e={};Object.entries(Object.assign({"/src/layouts/default.vue":()=>Bt(()=>import("./default-BmFJgYVM.js"),__vite__mapDeps([0,1,2])),"/src/layouts/stage.vue":()=>Bt(()=>import("./stage-CPd00CZ6.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 zo=typeof document<"u";function gT(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function Rk(n){return n.__esModule||n[Symbol.toStringTag]==="Module"||n.default&&gT(n.default)}const vt=Object.assign;function _p(n,e){const t={};for(const i in e){const r=e[i];t[i]=Ri(r)?r.map(n):n(r)}return t}const pl=()=>{},Ri=Array.isArray,_T=/#/g,Pk=/&/g,Ik=/\//g,Lk=/=/g,Dk=/\?/g,vT=/\+/g,Ok=/%5B/g,Nk=/%5D/g,yT=/%5E/g,Uk=/%60/g,xT=/%7B/g,Fk=/%7C/g,bT=/%7D/g,Bk=/%20/g;function u_(n){return encodeURI(""+n).replace(Fk,"|").replace(Ok,"[").replace(Nk,"]")}function kk(n){return u_(n).replace(xT,"{").replace(bT,"}").replace(yT,"^")}function ym(n){return u_(n).replace(vT,"%2B").replace(Bk,"+").replace(_T,"%23").replace(Pk,"%26").replace(Uk,"`").replace(xT,"{").replace(bT,"}").replace(yT,"^")}function Vk(n){return ym(n).replace(Lk,"%3D")}function zk(n){return u_(n).replace(_T,"%23").replace(Dk,"%3F")}function Hk(n){return n==null?"":zk(n).replace(Ik,"%2F")}function ql(n){try{return decodeURIComponent(""+n)}catch{}return""+n}const Gk=/\/$/,Wk=n=>n.replace(Gk,"");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=Yk(i??e,t),{fullPath:i+(s&&"?")+s+o,path:i,query:r,hash:ql(o)}}function Xk(n,e){const t=e.query?n(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function Cy(n,e){return!e||!n.toLowerCase().startsWith(e.toLowerCase())?n:n.slice(e.length)||"/"}function $k(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])&&ST(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 ST(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(!qk(n[t],e[t]))return!1;return!0}function qk(n,e){return Ri(n)?Ry(n,e):Ri(e)?Ry(e,n):n===e}function Ry(n,e){return Ri(e)?n.length===e.length&&n.every((t,i)=>t===e[i]):n.length===1&&n[0]===e}function Yk(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 jk(n){if(!n)if(zo){const e=document.querySelector("base");n=e&&e.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),Wk(n)}const Kk=/^[^#]+#/;function Zk(n,e){return n.replace(Kk,"#")+e}function Jk(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 Qk(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=Jk(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 Py(n,e){return(history.state?history.state.position-e:-1)+n}const xm=new Map;function eV(n,e){xm.set(n,e)}function tV(n){const e=xm.get(n);return xm.delete(n),e}let nV=()=>location.protocol+"//"+location.host;function MT(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),Cy(l,"")}return Cy(t,n)+i+r}function iV(n,e,t,i){let r=[],s=[],o=null;const a=({state:h})=>{const d=MT(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 Iy(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 rV(n){const{history:e,location:t}=window,i={value:MT(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:nV()+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,Iy(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({},Iy(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 sV(n){n=jk(n);const e=rV(n),t=iV(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:Zk.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 oV(n){return n=location.host?n||location.pathname+location.search:"",n.includes("#")||(n+="#"),sV(n)}function aV(n){return typeof n=="string"||n&&typeof n=="object"}function ET(n){return typeof n=="string"||typeof n=="symbol"}const TT=Symbol("");var Ly;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(Ly||(Ly={}));function fa(n,e){return vt(new Error,{type:n,[TT]:!0},e)}function or(n,e){return n instanceof Error&&TT in n&&(e==null||!!(n.type&e))}const Dy="[^/]+?",lV={sensitive:!1,strict:!1,start:!0,end:!0},cV=/[.+*?^${}()[\]/\\]/g;function uV(n,e){const t=vt({},lV,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(cV,"\\$&"),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||Dy;if(y!==Dy){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(Ri(m)&&!_)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const y=Ri(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 fV(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 wT(n,e){let t=0;const i=n.score,r=e.score;for(;t<i.length&&t<r.length;){const s=fV(i[t],r[t]);if(s)return s;t++}if(Math.abs(r.length-i.length)===1){if(Oy(i))return 1;if(Oy(r))return-1}return r.length-i.length}function Oy(n){const e=n[n.length-1];return n.length>0&&e[e.length-1]<0}const hV={type:0,value:""},dV=/[a-zA-Z0-9_]/;function pV(n){if(!n)return[[]];if(n==="/")return[[hV]];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:dV.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 mV(n,e,t){const i=uV(pV(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 gV(n,e){const t=[],i=new Map;e=By({strict:!1,end:!0,sensitive:!1},e);function r(f){return i.get(f)}function s(f,h,d){const p=!d,_=Uy(f);_.aliasOf=d&&d.record;const g=By(e,f),m=[_];if("alias"in f){const v=typeof f.alias=="string"?[f.alias]:f.alias;for(const E of v)m.push(Uy(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=mV(v,h,g),d?d.alias.push(y):(x=x||y,x!==y&&x.alias.push(y),p&&f.name&&!Fy(y)&&o(f.name)),AT(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(ET(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=yV(f,t);t.splice(h,0,f),f.record.name&&!Fy(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(Ny(h.params,d.keys.filter(x=>!x.optional).concat(d.parent?d.parent.keys.filter(x=>x.optional):[]).map(x=>x.name)),f.params&&Ny(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:vV(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 Ny(n,e){const t={};for(const i of e)i in n&&(t[i]=n[i]);return t}function Uy(n){const e={path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:n.aliasOf,beforeEnter:n.beforeEnter,props:_V(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 _V(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 Fy(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function vV(n){return n.reduce((e,t)=>vt(e,t.meta),{})}function By(n,e){const t={};for(const i in n)t[i]=i in e?e[i]:n[i];return t}function yV(n,e){let t=0,i=e.length;for(;t!==i;){const s=t+i>>1;wT(n,e[s])<0?i=s:t=s+1}const r=xV(n);return r&&(i=e.lastIndexOf(r,i-1)),i}function xV(n){let e=n;for(;e=e.parent;)if(AT(e)&&wT(n,e)===0)return e}function AT({record:n}){return!!(n.name||n.components&&Object.keys(n.components).length||n.redirect)}function bV(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(vT," "),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];Ri(c)||(c=e[a]=[c]),c.push(l)}else e[a]=l}return e}function ky(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}(Ri(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 SV(n){const e={};for(const t in n){const i=n[t];i!==void 0&&(e[t]=Ri(i)?i.map(r=>r==null?null:""+r):i==null?i:""+i)}return e}const MV=Symbol(""),Vy=Symbol(""),Qh=Symbol(""),CT=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):aV(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(gT(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=Rk(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 zy(n){const e=In(Qh),t=In(CT),i=Ce(()=>{const l=Rt(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=Hy(l[c-2]);return c>1&&Hy(u)===d&&f[f.length-1].path!==d?f.findIndex(ua.bind(null,l[c-2])):h}),s=Ce(()=>r.value>-1&&CV(t.params,i.value.params)),o=Ce(()=>r.value>-1&&r.value===t.matched.length-1&&ST(t.params,i.value.params));function a(l={}){if(AV(l)){const c=e[Rt(n.replace)?"replace":"push"](Rt(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 EV(n){return n.length===1?n[0]:n}const TV=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:zy,setup(n,{slots:e}){const t=fi(zy(n)),{options:i}=In(Qh),r=Ce(()=>({[Gy(n.activeClass,i.linkActiveClass,"router-link-active")]:t.isActive,[Gy(n.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const s=e.default&&EV(e.default(t));return n.custom?s:br("a",{"aria-current":t.isExactActive?n.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:r.value},s)}}}),wV=TV;function AV(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 CV(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(!Ri(r)||r.length!==i.length||i.some((s,o)=>s!==r[o]))return!1}return!0}function Hy(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const Gy=(n,e,t)=>n??e??t,RV=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=Rt(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(MV,a),Jr(bm,r);const l=Xe();return qe(()=>[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 Wy(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=br(h,vt({},p,e,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return Wy(t.default,{Component:g,route:c})||g}}});function Wy(n,e){if(!n)return null;const t=n(e);return t.length===1?t[0]:t}const RT=RV;function PV(n){const e=gV(n.routes,n),t=n.parseQuery||bV,i=n.stringifyQuery||ky,r=n.history,s=ka(),o=ka(),a=ka(),l=Ve(Br);let c=Br;zo&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=_p.bind(null,W=>""+W),f=_p.bind(null,Hk),h=_p.bind(null,ql);function d(W,ae){let ue,le;return ET(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=Xk(i,vt({},W,{hash:kk(De),path:le.path})),L=r.createHref(I);return vt({fullPath:I,hash:De,query:i===ky?SV(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&&$k(i,le,ue)&&(G=fa(16,{to:j,from:le}),re(le,le,!0,!1)),(G?Promise.resolve(G):S(j,le)).catch(q=>or(q)?or(q,2)?q:ve(q):Q(q,j,le)).then(q=>{if(q){if(or(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]=IV(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(Ri(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=>or(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=zo?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;zo&&eV(Py(I.fullPath,ue.delta),Jh()),S(le,I).catch(L=>or(L,12)?L:or(L,2)?(M(vt(y(L.to),{force:!0}),le).then(w=>{or(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&&!or(L,8)?r.go(-ue.delta,!1):ue.type===Yl.pop&&or(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(!zo||!De)return Promise.resolve();const I=!ue&&tV(Py(W.fullPath,0))||(le||!ue)&&history.state&&history.state.scroll||null;return cs().then(()=>De(W,ae,I)).then(L=>L&&Qk(L)).catch(L=>Q(L,W,ae))}const xe=W=>r.go(W);let ze;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",wV),W.component("RouterView",RT),W.config.globalProperties.$router=ae,Object.defineProperty(W.config.globalProperties,"$route",{enumerable:!0,get:()=>Rt(l)}),zo&&!ze&&l.value===Br&&(ze=!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(CT,Wx(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,ze=!1,te=!1),le()}}};function be(W){return W.reduce((ae,ue)=>ae.then(()=>b(ue)),Promise.resolve())}return ge}function IV(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 LV(){return In(Qh)}const DV=[{path:"/",name:"/",component:()=>Bt(()=>import("./index-CbqFxSt5.js"),__vite__mapDeps([3,4,5,6,7,8,9,10,11,12,13,1,2,14,15,16,17,18,19])),meta:{layout:"stage",stageTransition:{name:"bubble-wave-out"}}},{path:"/:all(.*)",name:"/[...all]",component:()=>Bt(()=>import("./_...all_--6pvM4Sq.js"),[])},{path:"/audio",name:"/audio",component:()=>Bt(()=>import("./audio-_PqWLFzV.js"),[])},{path:"/devtools",children:[{path:"image",name:"/devtools/image",component:()=>Bt(()=>import("./image-CvR5IrRj.js"),__vite__mapDeps([20,21]))}]},{path:"/queue",name:"/queue",component:()=>Bt(()=>import("./queue-CGBwVF3U.js"),__vite__mapDeps([22,8]))},{path:"/settings",children:[{path:"",name:"/settings/",component:()=>Bt(()=>import("./index-fb01Mqpw.js"),__vite__mapDeps([23,4,5,18])),meta:{stageTransition:{name:"slide"}}},{path:"models",children:[{path:"",name:"/settings/models/",component:()=>Bt(()=>import("./index-DGsoPCO8.js"),__vite__mapDeps([24,4,5,6,7,8,9,10,11,12,18])),meta:{stageTransition:{name:"slide"}}}]},{path:"modules",children:[{path:"",name:"/settings/modules/",component:()=>Bt(()=>import("./index-BoLGpubZ.js"),__vite__mapDeps([25,4,5,26,18])),meta:{stageTransition:{name:"slide"}}},{path:"consciousness",name:"/settings/modules/consciousness",component:()=>Bt(()=>import("./consciousness-D7J66NZD.js"),__vite__mapDeps([27,4,5,28,11,15,7,18])),meta:{stageTransition:{name:"slide"}}},{path:"speech",name:"/settings/modules/speech",component:()=>Bt(()=>import("./speech-CdrLdEd-.js"),__vite__mapDeps([29,4,5,28,7,10,18])),meta:{stageTransition:{name:"slide"}}}]},{path:"providers",children:[{path:"",name:"/settings/providers/",component:()=>Bt(()=>import("./index-DiBDJUPk.js"),__vite__mapDeps([30,4,5,7,26,18])),meta:{stageTransition:{name:"slide"}}},{path:"elevenlabs",name:"/settings/providers/elevenlabs",component:()=>Bt(()=>import("./elevenlabs-CG56K-vv.js"),__vite__mapDeps([31,12,11,4,5,7,10]))},{path:"openai",name:"/settings/providers/openai",component:()=>Bt(()=>import("./openai-C0h04mkK.js"),__vite__mapDeps([32,12,11,4,5,7]))},{path:"openrouter",name:"/settings/providers/openrouter",component:()=>Bt(()=>import("./openrouter-Be7POxFO.js"),__vite__mapDeps([33,12,11,4,5,7]))}]},{path:"themes",children:[{path:"",name:"/settings/themes/",component:()=>Bt(()=>import("./index-Bt_c0r2z.js"),__vite__mapDeps([34,12,11,4,5,18,35])),meta:{stageTransition:{name:"slide"}}}]}]},{path:"/test",children:[{path:"filter-message",name:"/test/filter-message",component:()=>Bt(()=>import("./filter-message-CwtpyQOH.js"),[])},{path:"queues",children:[{path:"delays",name:"/test/queues/delays",component:()=>Bt(()=>import("./delays-KTYa_Ekj.js"),__vite__mapDeps([36,14,4,5,9,8,16]))},{path:"emotions",name:"/test/queues/emotions",component:()=>Bt(()=>import("./emotions-WSTnmMSA.js"),__vite__mapDeps([37,14,4,5,8,9]))},{path:"messages",name:"/test/queues/messages",component:()=>Bt(()=>import("./messages-9zYOm-8o.js"),__vite__mapDeps([38,14,4,5,8,9]))}]}]},{path:"/v2",name:"/v2",component:()=>Bt(()=>import("./v2-C3BMTE30.js"),__vite__mapDeps([39,4,5,6,7,8,9,10,11,12,13,1,2,14,15,16,17,18])),meta:{layout:"default"}}],OV=354.31,NV=wk("settings",()=>{const n=Xe(),e=Fr("settings/language","en-US"),t=Fr("settings/stage/view/model-renderer","2d"),i=Fr("settings/audio/input","true"),r=Ce(()=>{var m;return(m=n.value)==null?void 0:m.deviceId}),{audioInputs:s}=BN({constraints:{audio:!0},requestPermissions:!0}),o=Xe(),a=Xe("./assets/live2d/models/hiyori_pro_zh.zip"),l=Xe("url"),c=Xe(!1),u=Fr("settings/live2d/position",{x:0,y:0}),f=Xe({group:"Idle",index:0}),h=Xe([]),d=Fr("settings/live2d/motion-map",{}),p=Fr("settings/disable-transitions",!1),_=Fr("settings/theme/colors/hue",OV),g=Fr("settings/theme/colors/hue-dynamic",!1);return qe(i,m=>{m==="false"&&(n.value=void 0),m==="true"&&(n.value=s.value[0])}),Nn(()=>{i.value==="true"&&!n.value&&(n.value=s.value[0])}),qe(s,()=>{i.value==="true"&&!n.value&&(n.value=s.value[0])}),{live2dModelFile:o,live2dModelUrl:a,live2dLoadSource:l,live2dCurrentMotion:f,live2dPosition:u,availableLive2dMotions:h,live2dMotionMap:d,loadingLive2dModel:c,disableTransitions:p,language:e,stageView:t,themeColorsHue:_,themeColorsHueDynamic:g,isAudioInputOn:i,selectedAudioDevice:n,selectedAudioDeviceId:r}}),UV=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},FV=vo(UV,[["__scopeId","data-v-df576df0"]]),BV=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(Wt,null,aA(t.value,(o,a)=>(ln(),ci("div",{key:a}))),128))],4)}}}),kV=vo(BV,[["__scopeId","data-v-0c29056c"]]),VV=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)}}}),zV=vo(VV,[["__scopeId","data-v-e62bf496"]]),HV=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-6d1179fc></div><div class="stage-transition-4__block" data-v-6d1179fc></div><div class="stage-transition-4__block" data-v-6d1179fc></div><div class="stage-transition-4__block" data-v-6d1179fc></div><div class="stage-transition-4__block" data-v-6d1179fc></div>',5)]),4)}}}),GV=vo(HV,[["__scopeId","data-v-6d1179fc"]]),WV=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 qe([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)}}}),XV=vo(WV,[["__scopeId","data-v-bf1d1566"]]),$V=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)}}}),qV=vo($V,[["__scopeId","data-v-8ff7120f"]]),YV=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)}}}),jV=vo(YV,[["__scopeId","data-v-f4b1dc64"]]),KV=nn({__name:"StageTransitionGroup",props:{primaryColor:null,secondaryColor:null,tertiaryColor:null,colors:null,zIndex:null,disableTransitions:{type:Boolean}},setup(n){const e=n,t=LV(),i=Xe(!1),r=Xe(),s=Xe(""),o=Xe(),a=Ve({slide:{component:XV,duration:2700},"slope-slide":{component:qV,duration:2700},arrow:{component:FV,duration:2700},"multiple-blocks-reveal":{component:GV,duration:2800},"fantasy-fall":{component:zV,duration:2700},"rectangles-rotate":{component:jV,duration:2700},"bubble-wave-out":{component:kV,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;if(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),e.disableTransitions){_();return}h(g,_)}),(d,p)=>(ln(),ci(Wt,null,[lA(d.$slots,"default"),i.value?(ln(),ci(Wt,{key:0},[a.value[s.value]?(ln(),bl(oA(a.value[s.value].component),{key:0,"stage-transition":o.value},null,8,["stage-transition"])):X_("",!0)],64)):X_("",!0)],64))}});/*!
3854
  * shared v11.1.2
3855
  * (c) 2025 kazuya kawaguchi
3856
  * Released under the MIT License.
assets/{index-BmQmEpG2.js → index-BoLGpubZ.js} RENAMED
@@ -1 +1 @@
1
- import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-C_JkQof7.js";import{I as d}from"./IconStatusItem-BDOcdafO.js";import{d as u,s as p,h as f,c as n,o as i,a as e,e as s,F as r,C as m,j as g}from"./index-DraHnlQA.js";import{b as c}from"./route-block-B_A1xBdJ.js";const x={flex:"~ row","items-center":"","gap-2":""},k={grid:"~ cols-1 sm:cols-2 gap-4"},v=u({__name:"index",setup(b){const a=p(),l=f(()=>[{id:"consciousness",name:"Consciousness",description:"Thinking, vision, speech synthesis, gaming, etc.",icon:"i-lucide:ghost",to:"/settings/modules/consciousness",configured:!1},{id:"speech",name:"Speech",description:"Speech synthesis, etc.",icon:"i-lucide:mic",to:"/settings/modules/speech",configured:!1}]);return(h,o)=>(i(),n(r,null,[e("div",x,[e("button",{onClick:o[0]||(o[0]=t=>s(a).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":""}," Modules ")],-1))]),e("div",k,[(i(!0),n(r,null,m(l.value,t=>(i(),g(s(d),{key:t.id,title:t.name,description:t.description,icon:t.icon,"icon-color":t.iconColor,"icon-image":t.iconImage,to:t.to,configured:t.configured},null,8,["title","description","icon","icon-color","icon-image","to","configured"]))),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:blocks":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});typeof c=="function"&&c(v);export{v as default};
 
1
+ import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-B7SUuDYL.js";import{I as d}from"./IconStatusItem-DuAACaJU.js";import{d as u,s as p,h as f,c as n,o as i,a as e,e as s,F as r,C as m,j as g}from"./index-BMgZhVsi.js";import{b as c}from"./route-block-B_A1xBdJ.js";const x={flex:"~ row","items-center":"","gap-2":""},k={grid:"~ cols-1 sm:cols-2 gap-4"},v=u({__name:"index",setup(b){const a=p(),l=f(()=>[{id:"consciousness",name:"Consciousness",description:"Thinking, vision, speech synthesis, gaming, etc.",icon:"i-lucide:ghost",to:"/settings/modules/consciousness",configured:!1},{id:"speech",name:"Speech",description:"Speech synthesis, etc.",icon:"i-lucide:mic",to:"/settings/modules/speech",configured:!1}]);return(h,o)=>(i(),n(r,null,[e("div",x,[e("button",{onClick:o[0]||(o[0]=t=>s(a).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":""}," Modules ")],-1))]),e("div",k,[(i(!0),n(r,null,m(l.value,t=>(i(),g(s(d),{key:t.id,title:t.name,description:t.description,icon:t.icon,"icon-color":t.iconColor,"icon-image":t.iconImage,to:t.to,configured:t.configured},null,8,["title","description","icon","icon-color","icon-image","to","configured"]))),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:blocks":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});typeof c=="function"&&c(v);export{v as default};
assets/{index-BCo4pnCR.js → index-Bt_c0r2z.js} RENAMED
@@ -1 +1 @@
1
- import{d as b,s as c,y as p,c as u,o as y,a as r,b as v,e as l,k as i,z as o,q as s,E as f,A as x,F as g,K as k}from"./index-DraHnlQA.js";import{_ as w}from"./Collapsable.vue_vue_type_script_setup_true_lang-CoeIagAH.js";import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-C_JkQof7.js";import{b as n}from"./route-block-B_A1xBdJ.js";import"./TransitionVertical.vue_vue_type_script_setup_true_lang-Ch4fEDgw.js";const h={flex:"~ row","items-center":"","gap-2":""},C=["onClick"],D={"p-4":""},H={class:"flex items-center gap-8"},z=["disabled"],E={"mt-4":"",class:"flex items-center justify-end gap-4"},T={class:"relative inline-flex cursor-pointer items-center"},V=b({__name:"index",setup(_){const d=c(),e=p();function m(){e.themeColorsHue=k,e.themeColorsHueDynamic=!1}return(U,t)=>(y(),u(g,null,[r("div",h,[r("button",{onClick:t[0]||(t[0]=a=>l(d).back())},t[3]||(t[3]=[r("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),t[4]||(t[4]=r("h1",{relative:""},[r("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[r("span",{text:"neutral-300 dark:neutral-500"},"Settings")]),r("div",{"text-3xl":"","font-semibold":""}," Themes ")],-1))]),v(l(w),{"mt-4":"","w-full":"",default:!0},{trigger:i(a=>[r("button",{bg:"zinc-100 dark:zinc-800",hover:"bg-zinc-200 dark:bg-zinc-700",transition:"all ease-in-out duration-250","w-full":"",flex:"","items-center":"","gap-1.5":"","rounded-lg":"","px-4":"","py-3":"","outline-none":"",class:"[&_.provider-icon]:grayscale-100 [&_.provider-icon]:hover:grayscale-0",onClick:B=>a.setVisible(!a.visible)},[t[6]||(t[6]=r("div",{flex:"~ row 1","items-center":"","gap-1.5":""},[r("div",{"i-solar:pallete-2-bold-duotone":"",class:"provider-icon size-6",transition:"filter duration-250 ease-in-out"}),r("div",null," Colors ")],-1)),r("div",{transform:"",transition:"transform duration-250",class:s({"rotate-180":a.visible})},t[5]||(t[5]=[r("div",{"i-solar:alt-arrow-down-bold-duotone":""},null,-1)]),2)],8,C)]),default:i(()=>[r("div",D,[r("div",H,[t[7]||(t[7]=r("div",{class:"flex items-center gap-1 text-sm font-medium"}," Primary color ",-1)),o(r("input",{"onUpdate:modelValue":t[1]||(t[1]=a=>l(e).themeColorsHue=a),type:"range",min:"0",max:"360",step:"0.01",class:s(["theme-hue-slider",{"opacity-25 cursor-not-allowed":l(e).themeColorsHueDynamic}]),disabled:l(e).themeColorsHueDynamic},null,10,z),[[f,l(e).themeColorsHue]])]),t[10]||(t[10]=r("div",{"mt-4":"","h-10":"","w-full":"",flex:"","overflow-hidden":"","rounded-lg":""},[r("div",{bg:"primary-50",class:"primary-color-bar","text-black":""}," 50 "),r("div",{bg:"primary-100",class:"primary-color-bar","text-black":""}," 100 "),r("div",{bg:"primary-200",class:"primary-color-bar","text-black":""}," 200 "),r("div",{bg:"primary-300",class:"primary-color-bar","text-black":""}," 300 "),r("div",{bg:"primary-400",class:"primary-color-bar","text-black":""}," 400 "),r("div",{bg:"primary-500",class:"primary-color-bar","text-black":""}," 500 "),r("div",{bg:"primary-600",class:"primary-color-bar","text-white":""}," 600 "),r("div",{bg:"primary-700",class:"primary-color-bar","text-white":""}," 700 "),r("div",{bg:"primary-800",class:"primary-color-bar","text-white":""}," 800 "),r("div",{bg:"primary-900",class:"primary-color-bar","text-white":""}," 900 "),r("div",{bg:"primary-950",class:"primary-color-bar","text-white":""}," 950 ")],-1)),t[11]||(t[11]=r("div",{"mt-4":"","h-10":"","w-full":"",flex:"","overflow-hidden":"","rounded-lg":"",class:"transparency-grid"},[r("div",{bg:"primary-500/5",class:"primary-color-bar","text-black":""}," 500/5 "),r("div",{bg:"primary-500/10",class:"primary-color-bar","text-black":""}," 500/10 "),r("div",{bg:"primary-500/20",class:"primary-color-bar","text-black":""}," 500/20 "),r("div",{bg:"primary-500/30",class:"primary-color-bar","text-black":""}," 500/30 "),r("div",{bg:"primary-500/40",class:"primary-color-bar","text-black":""}," 500/40 "),r("div",{bg:"primary-500/50",class:"primary-color-bar","text-black":""}," 500/50 "),r("div",{bg:"primary-500/60",class:"primary-color-bar","text-black":""}," 500/60 "),r("div",{bg:"primary-500/70",class:"primary-color-bar","text-black":""}," 500/70 "),r("div",{bg:"primary-500/80",class:"primary-color-bar","text-black":""}," 500/80 "),r("div",{bg:"primary-500/90",class:"primary-color-bar","text-black":""}," 500/90 "),r("div",{bg:"primary-500",class:"primary-color-bar","text-black":""}," 500 ")],-1)),r("div",E,[r("label",T,[o(r("input",{"onUpdate:modelValue":t[2]||(t[2]=a=>l(e).themeColorsHueDynamic=a),type:"checkbox",class:"peer sr-only"},null,512),[[x,l(e).themeColorsHueDynamic]]),t[8]||(t[8]=r("div",{class:"peer-checked:bg-primary-500 h-6 w-11 rounded-full bg-neutral-200 after:absolute after:left-[2px] after:top-[2px] after:h-5 after:w-5 after:rounded-full after:bg-white dark:bg-neutral-600 after:transition-all after:content-[''] peer-checked:after:translate-x-full peer-checked:after:border-white"},null,-1)),t[9]||(t[9]=r("span",{class:"ml-2 text-sm font-medium"},"I Want It Dynamic!",-1))]),r("button",{class:"rounded-md bg-neutral-100 px-3 py-1.5 text-sm transition-colors dark:bg-neutral-800 hover:bg-neutral-200 dark:hover:bg-neutral-700",onClick:m}," Reset to Default ")])])]),_:1}),t[12]||(t[12]=r("div",{fixed:"","bottom-0":"","right-0":"","z--1":"",text:"neutral-100/80 dark:neutral-500/20"},[r("div",{text:"40","i-lucide:paintbrush":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});typeof n=="function"&&n(V);export{V as default};
 
1
+ import{d as b,s as c,y as p,c as u,o as y,a as r,b as v,e as l,k as i,z as o,q as s,E as f,A as x,F as g,K as k}from"./index-BMgZhVsi.js";import{_ as w}from"./Collapsable.vue_vue_type_script_setup_true_lang-W8Zxiip1.js";import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-B7SUuDYL.js";import{b as n}from"./route-block-B_A1xBdJ.js";import"./TransitionVertical.vue_vue_type_script_setup_true_lang-CLmZcRWR.js";const h={flex:"~ row","items-center":"","gap-2":""},C=["onClick"],D={"p-4":""},H={class:"flex items-center gap-8"},z=["disabled"],E={"mt-4":"",class:"flex items-center justify-end gap-4"},T={class:"relative inline-flex cursor-pointer items-center"},V=b({__name:"index",setup(_){const d=c(),e=p();function m(){e.themeColorsHue=k,e.themeColorsHueDynamic=!1}return(U,t)=>(y(),u(g,null,[r("div",h,[r("button",{onClick:t[0]||(t[0]=a=>l(d).back())},t[3]||(t[3]=[r("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),t[4]||(t[4]=r("h1",{relative:""},[r("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[r("span",{text:"neutral-300 dark:neutral-500"},"Settings")]),r("div",{"text-3xl":"","font-semibold":""}," Themes ")],-1))]),v(l(w),{"mt-4":"","w-full":"",default:!0},{trigger:i(a=>[r("button",{bg:"zinc-100 dark:zinc-800",hover:"bg-zinc-200 dark:bg-zinc-700",transition:"all ease-in-out duration-250","w-full":"",flex:"","items-center":"","gap-1.5":"","rounded-lg":"","px-4":"","py-3":"","outline-none":"",class:"[&_.provider-icon]:grayscale-100 [&_.provider-icon]:hover:grayscale-0",onClick:B=>a.setVisible(!a.visible)},[t[6]||(t[6]=r("div",{flex:"~ row 1","items-center":"","gap-1.5":""},[r("div",{"i-solar:pallete-2-bold-duotone":"",class:"provider-icon size-6",transition:"filter duration-250 ease-in-out"}),r("div",null," Colors ")],-1)),r("div",{transform:"",transition:"transform duration-250",class:s({"rotate-180":a.visible})},t[5]||(t[5]=[r("div",{"i-solar:alt-arrow-down-bold-duotone":""},null,-1)]),2)],8,C)]),default:i(()=>[r("div",D,[r("div",H,[t[7]||(t[7]=r("div",{class:"flex items-center gap-1 text-sm font-medium"}," Primary color ",-1)),o(r("input",{"onUpdate:modelValue":t[1]||(t[1]=a=>l(e).themeColorsHue=a),type:"range",min:"0",max:"360",step:"0.01",class:s(["theme-hue-slider",{"opacity-25 cursor-not-allowed":l(e).themeColorsHueDynamic}]),disabled:l(e).themeColorsHueDynamic},null,10,z),[[f,l(e).themeColorsHue]])]),t[10]||(t[10]=r("div",{"mt-4":"","h-10":"","w-full":"",flex:"","overflow-hidden":"","rounded-lg":""},[r("div",{bg:"primary-50",class:"primary-color-bar","text-black":""}," 50 "),r("div",{bg:"primary-100",class:"primary-color-bar","text-black":""}," 100 "),r("div",{bg:"primary-200",class:"primary-color-bar","text-black":""}," 200 "),r("div",{bg:"primary-300",class:"primary-color-bar","text-black":""}," 300 "),r("div",{bg:"primary-400",class:"primary-color-bar","text-black":""}," 400 "),r("div",{bg:"primary-500",class:"primary-color-bar","text-black":""}," 500 "),r("div",{bg:"primary-600",class:"primary-color-bar","text-white":""}," 600 "),r("div",{bg:"primary-700",class:"primary-color-bar","text-white":""}," 700 "),r("div",{bg:"primary-800",class:"primary-color-bar","text-white":""}," 800 "),r("div",{bg:"primary-900",class:"primary-color-bar","text-white":""}," 900 "),r("div",{bg:"primary-950",class:"primary-color-bar","text-white":""}," 950 ")],-1)),t[11]||(t[11]=r("div",{"mt-4":"","h-10":"","w-full":"",flex:"","overflow-hidden":"","rounded-lg":"",class:"transparency-grid"},[r("div",{bg:"primary-500/5",class:"primary-color-bar","text-black":""}," 500/5 "),r("div",{bg:"primary-500/10",class:"primary-color-bar","text-black":""}," 500/10 "),r("div",{bg:"primary-500/20",class:"primary-color-bar","text-black":""}," 500/20 "),r("div",{bg:"primary-500/30",class:"primary-color-bar","text-black":""}," 500/30 "),r("div",{bg:"primary-500/40",class:"primary-color-bar","text-black":""}," 500/40 "),r("div",{bg:"primary-500/50",class:"primary-color-bar","text-black":""}," 500/50 "),r("div",{bg:"primary-500/60",class:"primary-color-bar","text-black":""}," 500/60 "),r("div",{bg:"primary-500/70",class:"primary-color-bar","text-black":""}," 500/70 "),r("div",{bg:"primary-500/80",class:"primary-color-bar","text-black":""}," 500/80 "),r("div",{bg:"primary-500/90",class:"primary-color-bar","text-black":""}," 500/90 "),r("div",{bg:"primary-500",class:"primary-color-bar","text-black":""}," 500 ")],-1)),r("div",E,[r("label",T,[o(r("input",{"onUpdate:modelValue":t[2]||(t[2]=a=>l(e).themeColorsHueDynamic=a),type:"checkbox",class:"peer sr-only"},null,512),[[x,l(e).themeColorsHueDynamic]]),t[8]||(t[8]=r("div",{class:"peer-checked:bg-primary-500 h-6 w-11 rounded-full bg-neutral-200 after:absolute after:left-[2px] after:top-[2px] after:h-5 after:w-5 after:rounded-full after:bg-white dark:bg-neutral-600 after:transition-all after:content-[''] peer-checked:after:translate-x-full peer-checked:after:border-white"},null,-1)),t[9]||(t[9]=r("span",{class:"ml-2 text-sm font-medium"},"I Want It Dynamic!",-1))]),r("button",{class:"rounded-md bg-neutral-100 px-3 py-1.5 text-sm transition-colors dark:bg-neutral-800 hover:bg-neutral-200 dark:hover:bg-neutral-700",onClick:m}," Reset to Default ")])])]),_:1}),t[12]||(t[12]=r("div",{fixed:"","bottom-0":"","right-0":"","z--1":"",text:"neutral-100/80 dark:neutral-500/20"},[r("div",{text:"40","i-lucide:paintbrush":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});typeof n=="function"&&n(V);export{V as default};
assets/{index-DSXMBaIh.js → index-CYxDYfrf.js} RENAMED
@@ -1,4 +1,4 @@
1
- import{cg as getAugmentedNamespace}from"./index-DraHnlQA.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{cg as getAugmentedNamespace}from"./index-BMgZhVsi.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-BGedhUcl.js → index-CbqFxSt5.js} RENAMED
@@ -1,3 +1,3 @@
1
- import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-C_JkQof7.js";import{_ as B,c as D,o as g,f as L,d as y,g as a,h as I,w as j,a as c,n as z,i as N,j as P,k as S,b as o,e as W}from"./index-DraHnlQA.js";import{W as V}from"./Live2DSettings.vue_vue_type_script_setup_true_lang-CSa2O48R.js";import{_ as E,M as F,I as Z,a as q}from"./MobileInteractiveArea.vue_vue_type_script_setup_true_lang-Cdag5m7E.js";import{b as M}from"./route-block-B_A1xBdJ.js";import"./providers-DeZ8eO-6.js";import"./queue-DIUCMOjh.js";import"./queues-CDLhb0jO.js";import"./speech-DwMeD8n7.js";import"./TransitionVertical.vue_vue_type_script_setup_true_lang-Ch4fEDgw.js";import"./Collapsable.vue_vue_type_script_setup_true_lang-CoeIagAH.js";import"./HeaderLink-Cb62pdxb.js";import"./BasicTextarea.vue_vue_type_script_setup_true_lang-CG2-D319.js";import"./consciousness-BqvSoi9M.js";import"./index-DSXMBaIh.js";const G={},J={class:"cross-background-container"};function K(s,e){return g(),D("div",J,[L(s.$slots,"default",{},void 0,!0)])}const Q=B(G,[["render",K],["__scopeId","data-v-56ac1413"]]),R={class:"relative"},T={absolute:"","left-0":"","right-0":"","top-0":"","w-full":"","overflow-hidden":""},U=y({__name:"AnimatedBackground",props:{height:{default:40},amplitude:{default:14},waveLength:{default:250},fillColor:{default:"oklch(95% 0.10 var(--theme-colors-hue))"},direction:{default:"down"},movementDirection:{default:"left"},animationSpeed:{default:50}},setup(s){const e=s,n=a(e.height),l=a(e.amplitude),t=a(e.waveLength),u=a(e.fillColor),w=a(e.direction),$=a(e.movementDirection);function A(i,v,h,f,p){const r=[],x=Math.ceil(i/f)*f,O=1,_=p==="up"?h:v-h;r.push(`M 0 ${_}`);const H=Math.PI*2/f;for(let d=0;d<=x;d+=O){const C=h*Math.sin(H*d),Y=p==="up"?_-C:_+C;r.push(`L ${d} ${Y}`)}const b=p==="up"?v:0;return r.push(`L ${x} ${b}`),r.push(`L 0 ${b} Z`),r.join(" ")}const m=I(()=>n.value+l.value*2),k=I(()=>{const i=`<svg width="${t.value}" height="${m.value}" xmlns="http://www.w3.org/2000/svg">
2
  <path d="${A(t.value,m.value,l.value,t.value,w.value)}"/>
3
  </svg>`;return`url(data:image/svg+xml;base64,${btoa(i)})`});return j(()=>[e.height,e.amplitude,e.waveLength,e.fillColor,e.direction,e.movementDirection],()=>{n.value=e.height,l.value=e.amplitude,t.value=e.waveLength,u.value=e.fillColor,w.value=e.direction,$.value=e.movementDirection},{immediate:!0}),(i,v)=>(g(),D("div",R,[L(i.$slots,"default",{},void 0,!0),c("div",T,[c("div",{class:"wave",style:z({background:u.value,height:`${m.value}px`,maskImage:k.value,WebkitMaskImage:k.value,"--wave-translate":`${-t.value}px`,"--animation-duration":`${t.value/s.animationSpeed}s`,"animation-direction":$.value==="left"?"normal":"reverse"})},null,4)])]))}}),X=B(U,[["__scopeId","data-v-750ba76d"]]),ee={relative:"",flex:"~ col","z-2":"","h-100vh":"","w-100vw":"","of-hidden":""},te={relative:"",flex:"~ 1 row gap-y-0 gap-x-2 <md:col"},ae=y({__name:"index",setup(s){const e=N(),n=a(!1);function l(t){n.value=t}return(t,u)=>(g(),P(Q,null,{default:S(()=>[o(X,{"fill-color":W(e)?"oklch(29% var(--theme-colors-chroma) var(--theme-colors-hue))":"color-mix(in srgb, oklch(95% var(--theme-colors-chroma-50) var(--theme-colors-hue)) 80%, oklch(100% 0 360))"},{default:S(()=>[c("div",ee,[c("div",null,[o(E,{class:"flex <md:hidden",p2:""}),o(F,{class:"hidden <md:block"})]),c("div",te,[o(W(V),{"flex-1":"","min-w":"1/2",paused:n.value},null,8,["paused"]),o(Z,{class:"flex <md:hidden","flex-1":"","max-w":"500px","min-w":"30%"}),o(q,{class:"hidden <md:block",mx2:"",mb2:"",onSettingsOpen:l})])])]),_:1},8,["fill-color"])]),_:1}))}});typeof M=="function"&&M(ae);export{ae as default};
 
1
+ import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-B7SUuDYL.js";import{_ as B,c as D,o as g,f as L,d as y,g as a,h as I,w as j,a as c,n as z,i as N,j as P,k as S,b as o,e as W}from"./index-BMgZhVsi.js";import{W as V}from"./Live2DSettings.vue_vue_type_script_setup_true_lang-R42naQro.js";import{_ as E,M as F,I as Z,a as q}from"./MobileInteractiveArea.vue_vue_type_script_setup_true_lang-DWigyVWY.js";import{b as M}from"./route-block-B_A1xBdJ.js";import"./providers-JNx_EUL2.js";import"./queue-BVK4A6kJ.js";import"./queues-CSlGUoy_.js";import"./speech-QD7myZax.js";import"./TransitionVertical.vue_vue_type_script_setup_true_lang-CLmZcRWR.js";import"./Collapsable.vue_vue_type_script_setup_true_lang-W8Zxiip1.js";import"./HeaderLink-B0cut292.js";import"./BasicTextarea.vue_vue_type_script_setup_true_lang-DvUeFWfi.js";import"./consciousness-DGKqeXEN.js";import"./index-CYxDYfrf.js";const G={},J={class:"cross-background-container"};function K(s,e){return g(),D("div",J,[L(s.$slots,"default",{},void 0,!0)])}const Q=B(G,[["render",K],["__scopeId","data-v-56ac1413"]]),R={class:"relative"},T={absolute:"","left-0":"","right-0":"","top-0":"","w-full":"","overflow-hidden":""},U=y({__name:"AnimatedBackground",props:{height:{default:40},amplitude:{default:14},waveLength:{default:250},fillColor:{default:"oklch(95% 0.10 var(--theme-colors-hue))"},direction:{default:"down"},movementDirection:{default:"left"},animationSpeed:{default:50}},setup(s){const e=s,n=a(e.height),l=a(e.amplitude),t=a(e.waveLength),u=a(e.fillColor),w=a(e.direction),$=a(e.movementDirection);function A(i,v,h,f,p){const r=[],x=Math.ceil(i/f)*f,O=1,_=p==="up"?h:v-h;r.push(`M 0 ${_}`);const H=Math.PI*2/f;for(let d=0;d<=x;d+=O){const C=h*Math.sin(H*d),Y=p==="up"?_-C:_+C;r.push(`L ${d} ${Y}`)}const b=p==="up"?v:0;return r.push(`L ${x} ${b}`),r.push(`L 0 ${b} Z`),r.join(" ")}const m=I(()=>n.value+l.value*2),k=I(()=>{const i=`<svg width="${t.value}" height="${m.value}" xmlns="http://www.w3.org/2000/svg">
2
  <path d="${A(t.value,m.value,l.value,t.value,w.value)}"/>
3
  </svg>`;return`url(data:image/svg+xml;base64,${btoa(i)})`});return j(()=>[e.height,e.amplitude,e.waveLength,e.fillColor,e.direction,e.movementDirection],()=>{n.value=e.height,l.value=e.amplitude,t.value=e.waveLength,u.value=e.fillColor,w.value=e.direction,$.value=e.movementDirection},{immediate:!0}),(i,v)=>(g(),D("div",R,[L(i.$slots,"default",{},void 0,!0),c("div",T,[c("div",{class:"wave",style:z({background:u.value,height:`${m.value}px`,maskImage:k.value,WebkitMaskImage:k.value,"--wave-translate":`${-t.value}px`,"--animation-duration":`${t.value/s.animationSpeed}s`,"animation-direction":$.value==="left"?"normal":"reverse"})},null,4)])]))}}),X=B(U,[["__scopeId","data-v-750ba76d"]]),ee={relative:"",flex:"~ col","z-2":"","h-100vh":"","w-100vw":"","of-hidden":""},te={relative:"",flex:"~ 1 row gap-y-0 gap-x-2 <md:col"},ae=y({__name:"index",setup(s){const e=N(),n=a(!1);function l(t){n.value=t}return(t,u)=>(g(),P(Q,null,{default:S(()=>[o(X,{"fill-color":W(e)?"oklch(29% var(--theme-colors-chroma) var(--theme-colors-hue))":"color-mix(in srgb, oklch(95% var(--theme-colors-chroma-50) var(--theme-colors-hue)) 80%, oklch(100% 0 360))"},{default:S(()=>[c("div",ee,[c("div",null,[o(E,{class:"flex <md:hidden",p2:""}),o(F,{class:"hidden <md:block"})]),c("div",te,[o(W(V),{"flex-1":"","min-w":"1/2",paused:n.value},null,8,["paused"]),o(Z,{class:"flex <md:hidden","flex-1":"","max-w":"500px","min-w":"30%"}),o(q,{class:"hidden <md:block",mx2:"",mb2:"",onSettingsOpen:l})])])]),_:1},8,["fill-color"])]),_:1}))}});typeof M=="function"&&M(ae);export{ae as default};
assets/{index-CTqAbTyg.js → index-DGsoPCO8.js} RENAMED
@@ -1 +1 @@
1
- import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-C_JkQof7.js";import{W as a,_ as s}from"./Live2DSettings.vue_vue_type_script_setup_true_lang-CSa2O48R.js";import{d as l,s as d,c as m,o as p,a as t,e as o,b as r,F as u}from"./index-DraHnlQA.js";import{b as n}from"./route-block-B_A1xBdJ.js";import"./providers-DeZ8eO-6.js";import"./queue-DIUCMOjh.js";import"./queues-CDLhb0jO.js";import"./speech-DwMeD8n7.js";import"./TransitionVertical.vue_vue_type_script_setup_true_lang-Ch4fEDgw.js";import"./Collapsable.vue_vue_type_script_setup_true_lang-CoeIagAH.js";const f={flex:"~ row","items-center":"","gap-2":""},x={flex:""},v=l({__name:"index",setup(b){const i=d();return(g,e)=>(p(),m(u,null,[t("div",f,[t("button",{onClick:e[0]||(e[0]=k=>o(i).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))]),t("div",x,[r(o(a),{w:"50%",h:"80vh"}),r(s,{w:"50%",h:"80vh"})]),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(v);export{v as default};
 
1
+ import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-B7SUuDYL.js";import{W as a,_ as s}from"./Live2DSettings.vue_vue_type_script_setup_true_lang-R42naQro.js";import{d as l,s as d,c as m,o as p,a as t,e as o,b as r,F as u}from"./index-BMgZhVsi.js";import{b as n}from"./route-block-B_A1xBdJ.js";import"./providers-JNx_EUL2.js";import"./queue-BVK4A6kJ.js";import"./queues-CSlGUoy_.js";import"./speech-QD7myZax.js";import"./TransitionVertical.vue_vue_type_script_setup_true_lang-CLmZcRWR.js";import"./Collapsable.vue_vue_type_script_setup_true_lang-W8Zxiip1.js";const f={flex:"~ row","items-center":"","gap-2":""},x={flex:""},v=l({__name:"index",setup(b){const i=d();return(g,e)=>(p(),m(u,null,[t("div",f,[t("button",{onClick:e[0]||(e[0]=k=>o(i).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))]),t("div",x,[r(o(a),{w:"50%",h:"80vh"}),r(s,{w:"50%",h:"80vh"})]),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(v);export{v as default};
assets/{index-Bg4nmRoP.css → index-DPQ69wgS.css} RENAMED
The diff for this file is too large to render. See raw diff
 
assets/{index-Br9Fhbaw.js → index-DiBDJUPk.js} RENAMED
@@ -1 +1 @@
1
- import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-C_JkQof7.js";import{d as u,s as m,x as f,c as r,o as n,a as t,e as i,F as s,C as p,j as x}from"./index-DraHnlQA.js";import{u as g}from"./providers-DeZ8eO-6.js";import{I as k}from"./IconStatusItem-BDOcdafO.js";import{b as a}from"./route-block-B_A1xBdJ.js";const b={flex:"~ row","items-center":"","gap-2":""},v={grid:"~ cols-2 gap-2"},y=u({__name:"index",setup(B){const l=m(),d=g(),{allProvidersMetadata:c}=f(d);return(C,o)=>(n(),r(s,null,[t("div",b,[t("button",{onClick:o[0]||(o[0]=e=>i(l).back())},o[1]||(o[1]=[t("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),o[2]||(o[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":""}," Providers ")],-1))]),t("div",v,[(n(!0),r(s,null,p(i(c),e=>(n(),x(i(k),{key:e.id,title:e.localizedName,description:e.localizedDescription,icon:e.icon,"icon-color":e.iconColor,"icon-image":e.iconImage,to:`/settings/providers/${e.id.replace("-ai","")}`,configured:e.configured},null,8,["title","description","icon","icon-color","icon-image","to","configured"]))),128))]),o[3]||(o[3]=t("div",{fixed:"","bottom-0":"","right-0":"","z--1":"",text:"neutral-100/80 dark:neutral-500/20"},[t("div",{text:"40","i-lucide:brain":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});typeof a=="function"&&a(y);export{y as default};
 
1
+ import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-B7SUuDYL.js";import{d as u,s as m,x as f,c as r,o as n,a as t,e as i,F as s,C as p,j as x}from"./index-BMgZhVsi.js";import{u as g}from"./providers-JNx_EUL2.js";import{I as k}from"./IconStatusItem-DuAACaJU.js";import{b as a}from"./route-block-B_A1xBdJ.js";const b={flex:"~ row","items-center":"","gap-2":""},v={grid:"~ cols-2 gap-2"},y=u({__name:"index",setup(B){const l=m(),d=g(),{allProvidersMetadata:c}=f(d);return(C,o)=>(n(),r(s,null,[t("div",b,[t("button",{onClick:o[0]||(o[0]=e=>i(l).back())},o[1]||(o[1]=[t("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),o[2]||(o[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":""}," Providers ")],-1))]),t("div",v,[(n(!0),r(s,null,p(i(c),e=>(n(),x(i(k),{key:e.id,title:e.localizedName,description:e.localizedDescription,icon:e.icon,"icon-color":e.iconColor,"icon-image":e.iconImage,to:`/settings/providers/${e.id.replace("-ai","")}`,configured:e.configured},null,8,["title","description","icon","icon-color","icon-image","to","configured"]))),128))]),o[3]||(o[3]=t("div",{fixed:"","bottom-0":"","right-0":"","z--1":"",text:"neutral-100/80 dark:neutral-500/20"},[t("div",{text:"40","i-lucide:brain":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});typeof a=="function"&&a(y);export{y as default};
assets/{index-DM6uRpJv.js → index-fb01Mqpw.js} RENAMED
@@ -1 +1 @@
1
- import{d as w,r as T,j as z,o as i,k as h,a as e,c as r,m as _,f as B,t as d,q as I,_ as L,s as R,v as V,x as $,y as D,i as M,e as n,b as l,z as x,A as f,B as k,T as b,F as S}from"./index-DraHnlQA.js";import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-C_JkQof7.js";import{b as y}from"./route-block-B_A1xBdJ.js";const N={"z-1":"","flex-1":""},U={"text-lg":"","font-bold":"",class:"menu-icon-item-title",transition:"all ease-in-out duration-200"},j={text:"sm neutral-500 dark:neutral-400",class:"menu-icon-item-description",transition:"all ease-in-out duration-200"},F=w({__name:"IconItem",props:{title:null,description:null,icon:null,iconTemplate:{type:Boolean},to:null},setup(o){return(g,u)=>{const m=T("RouterLink");return i(),z(m,{box:"border",flex:"~ row",bg:"neutral-50 dark:neutral-800",border:"neutral-100 dark:neutral-700 hover:primary-500/30 dark:hover:primary-400/30 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:"menu-icon-item",transition:"all ease-in-out duration-200",relative:"","w-full":"","items-center":"","overflow-hidden":"","rounded-lg":"","p-5":"","text-left":"",cursor:"pointer",to:o.to},{default:h(()=>[e("div",N,[e("div",U,d(o.title),1),e("div",j,[e("span",null,d(o.description),1)])]),typeof o.icon=="string"?(i(),r("div",{key:0,class:I(["menu-icon-item-icon",[o.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)):_("",!0),o.iconTemplate?B(g.$slots,"icon",{key:1},void 0,!0):_("",!0)]),_:3},8,["to"])}}}),p=L(F,[["__scopeId","data-v-80dfeb56"]]),q={flex:"~ row","items-center":"","gap-2":""},A={flex:"~ col gap-4"},E={flex:"~ col gap-4"},G={flex:"~ col gap-4"},P={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":""},H={text:"sm"},J={flex:"~ row","w-full":"","justify-end":""},K={value:"en-US"},O={value:"zh-CN"},Q={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":""},W=["checked","aria-checked"],X={flex:"~ row","w-full":"","items-center":"","gap-1.5":""},Y={text:"sm","w-full":"","flex-1":""},Z={"select-none":""},ee={key:0,"i-solar:moon-stars-bold-duotone":"",transition:"all ease-in-out duration-250"},te={key:1,"i-solar:sun-fog-bold-duotone":"",transition:"all ease-in-out duration-250"},ne={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":""},oe=["checked","aria-checked"],ie={flex:"~ row","w-full":"","items-center":"","gap-1.5":""},se={"select-none":""},ae={key:0,"i-solar:people-nearby-bold-duotone":"",transition:"all ease-in-out duration-250"},le={key:1,"i-solar:running-2-line-duotone":"",transition:"all ease-in-out duration-250"},re=w({__name:"index",setup(o){const g=R(),{t:u}=V(),{language:m,disableTransitions:s}=$(D()),a=M();function C(v){const t=v.target;m.value=t.value}return(v,t)=>(i(),r(S,null,[e("div",q,[e("button",{onClick:t[0]||(t[0]=c=>n(g).back())},t[3]||(t[3]=[e("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),t[4]||(t[4]=e("h1",{"text-3xl":""}," Settings ",-1))]),e("div",A,[e("div",E,[l(n(p),{title:"Modules",description:"Thinking, vision, speech synthesis, gaming, etc.",icon:"i-lucide:blocks",to:"/settings/modules"}),l(n(p),{title:"Models",description:"Live2D, VRM, etc.",icon:"i-lucide:person-standing",to:"/settings/models"}),l(n(p),{title:"Providers",description:"LLMs, speech providers, etc.",icon:"i-lucide:brain",to:"/settings/providers"}),l(n(p),{title:"Themes",description:"Customize your stage!",icon:"i-lucide:paintbrush",to:"/settings/themes"})]),t[6]||(t[6]=e("div",null,[e("h2",{"text-2xl":""}," General ")],-1)),e("div",G,[e("div",P,[e("div",H,[e("span",null,d(n(u)("settings.language.title")),1)]),e("div",J,[e("select",{class:"w-32",bg:"transparent",text:"sm right neutral-800 dark:neutral-100",transition:"all ease-in-out duration-250",outline:"none","cursor-pointer":"",onChange:C},[e("option",K,d(n(u)("settings.language.english")),1),e("option",O,d(n(u)("settings.language.chinese")),1)],32)])]),e("label",Q,[x(e("input",{"onUpdate:modelValue":t[1]||(t[1]=c=>k(a)?a.value=c:null),text:"neutral-800 dark:neutral-100",checked:n(a),"aria-checked":n(a),type:"checkbox",hidden:"","appearance-none":"","outline-none":""},null,8,W),[[f,n(a)]]),e("div",X,[e("div",Y,[e("span",null,d(n(u)("settings.theme")),1)]),e("div",Z,[l(b,{name:"slide-away",mode:"out-in"},{default:h(()=>[n(a)?(i(),r("div",ee)):(i(),r("div",te))]),_:1})])])]),e("label",ne,[x(e("input",{"onUpdate:modelValue":t[2]||(t[2]=c=>k(s)?s.value=c:null),text:"neutral-800 dark:neutral-100",checked:n(s),"aria-checked":n(s),type:"checkbox",hidden:"","appearance-none":"","outline-none":""},null,8,oe),[[f,n(s)]]),e("div",ie,[t[5]||(t[5]=e("div",{text:"sm","w-full":"","flex-1":""},[e("span",null,"Disable Transitions (for debugging)")],-1)),e("div",se,[l(b,{name:"slide-away",mode:"out-in"},{default:h(()=>[n(s)?(i(),r("div",ae)):(i(),r("div",le))]),_:1})])])])]),t[7]||(t[7]=e("div",{text:"neutral-100/50 dark:neutral-500/20","pointer-events-none":"",fixed:"","bottom-0":"","right-0":""},[e("div",{text:"40","i-lucide:cog":"","translate-x-10":"","translate-y-10":""})],-1))])],64))}});typeof y=="function"&&y(re);export{re as default};
 
1
+ import{d as w,r as T,j as z,o as i,k as h,a as e,c as r,m as _,f as B,t as d,q as I,_ as L,s as R,v as V,x as $,y as D,i as M,e as n,b as l,z as x,A as f,B as k,T as b,F as S}from"./index-BMgZhVsi.js";import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-B7SUuDYL.js";import{b as y}from"./route-block-B_A1xBdJ.js";const N={"z-1":"","flex-1":""},U={"text-lg":"","font-bold":"",class:"menu-icon-item-title",transition:"all ease-in-out duration-200"},j={text:"sm neutral-500 dark:neutral-400",class:"menu-icon-item-description",transition:"all ease-in-out duration-200"},F=w({__name:"IconItem",props:{title:null,description:null,icon:null,iconTemplate:{type:Boolean},to:null},setup(o){return(g,u)=>{const m=T("RouterLink");return i(),z(m,{box:"border",flex:"~ row",bg:"neutral-50 dark:neutral-800",border:"neutral-100 dark:neutral-700 hover:primary-500/30 dark:hover:primary-400/30 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:"menu-icon-item",transition:"all ease-in-out duration-200",relative:"","w-full":"","items-center":"","overflow-hidden":"","rounded-lg":"","p-5":"","text-left":"",cursor:"pointer",to:o.to},{default:h(()=>[e("div",N,[e("div",U,d(o.title),1),e("div",j,[e("span",null,d(o.description),1)])]),typeof o.icon=="string"?(i(),r("div",{key:0,class:I(["menu-icon-item-icon",[o.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)):_("",!0),o.iconTemplate?B(g.$slots,"icon",{key:1},void 0,!0):_("",!0)]),_:3},8,["to"])}}}),p=L(F,[["__scopeId","data-v-80dfeb56"]]),q={flex:"~ row","items-center":"","gap-2":""},A={flex:"~ col gap-4"},E={flex:"~ col gap-4"},G={flex:"~ col gap-4"},P={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":""},H={text:"sm"},J={flex:"~ row","w-full":"","justify-end":""},K={value:"en-US"},O={value:"zh-CN"},Q={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":""},W=["checked","aria-checked"],X={flex:"~ row","w-full":"","items-center":"","gap-1.5":""},Y={text:"sm","w-full":"","flex-1":""},Z={"select-none":""},ee={key:0,"i-solar:moon-stars-bold-duotone":"",transition:"all ease-in-out duration-250"},te={key:1,"i-solar:sun-fog-bold-duotone":"",transition:"all ease-in-out duration-250"},ne={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":""},oe=["checked","aria-checked"],ie={flex:"~ row","w-full":"","items-center":"","gap-1.5":""},se={"select-none":""},ae={key:0,"i-solar:people-nearby-bold-duotone":"",transition:"all ease-in-out duration-250"},le={key:1,"i-solar:running-2-line-duotone":"",transition:"all ease-in-out duration-250"},re=w({__name:"index",setup(o){const g=R(),{t:u}=V(),{language:m,disableTransitions:s}=$(D()),a=M();function C(v){const t=v.target;m.value=t.value}return(v,t)=>(i(),r(S,null,[e("div",q,[e("button",{onClick:t[0]||(t[0]=c=>n(g).back())},t[3]||(t[3]=[e("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),t[4]||(t[4]=e("h1",{"text-3xl":""}," Settings ",-1))]),e("div",A,[e("div",E,[l(n(p),{title:"Modules",description:"Thinking, vision, speech synthesis, gaming, etc.",icon:"i-lucide:blocks",to:"/settings/modules"}),l(n(p),{title:"Models",description:"Live2D, VRM, etc.",icon:"i-lucide:person-standing",to:"/settings/models"}),l(n(p),{title:"Providers",description:"LLMs, speech providers, etc.",icon:"i-lucide:brain",to:"/settings/providers"}),l(n(p),{title:"Themes",description:"Customize your stage!",icon:"i-lucide:paintbrush",to:"/settings/themes"})]),t[6]||(t[6]=e("div",null,[e("h2",{"text-2xl":""}," General ")],-1)),e("div",G,[e("div",P,[e("div",H,[e("span",null,d(n(u)("settings.language.title")),1)]),e("div",J,[e("select",{class:"w-32",bg:"transparent",text:"sm right neutral-800 dark:neutral-100",transition:"all ease-in-out duration-250",outline:"none","cursor-pointer":"",onChange:C},[e("option",K,d(n(u)("settings.language.english")),1),e("option",O,d(n(u)("settings.language.chinese")),1)],32)])]),e("label",Q,[x(e("input",{"onUpdate:modelValue":t[1]||(t[1]=c=>k(a)?a.value=c:null),text:"neutral-800 dark:neutral-100",checked:n(a),"aria-checked":n(a),type:"checkbox",hidden:"","appearance-none":"","outline-none":""},null,8,W),[[f,n(a)]]),e("div",X,[e("div",Y,[e("span",null,d(n(u)("settings.theme")),1)]),e("div",Z,[l(b,{name:"slide-away",mode:"out-in"},{default:h(()=>[n(a)?(i(),r("div",ee)):(i(),r("div",te))]),_:1})])])]),e("label",ne,[x(e("input",{"onUpdate:modelValue":t[2]||(t[2]=c=>k(s)?s.value=c:null),text:"neutral-800 dark:neutral-100",checked:n(s),"aria-checked":n(s),type:"checkbox",hidden:"","appearance-none":"","outline-none":""},null,8,oe),[[f,n(s)]]),e("div",ie,[t[5]||(t[5]=e("div",{text:"sm","w-full":"","flex-1":""},[e("span",null,"Disable Transitions (for debugging)")],-1)),e("div",se,[l(b,{name:"slide-away",mode:"out-in"},{default:h(()=>[n(s)?(i(),r("div",ae)):(i(),r("div",le))]),_:1})])])])]),t[7]||(t[7]=e("div",{text:"neutral-100/50 dark:neutral-500/20","pointer-events-none":"",fixed:"","bottom-0":"","right-0":""},[e("div",{text:"40","i-lucide:cog":"","translate-x-10":"","translate-y-10":""})],-1))])],64))}});typeof y=="function"&&y(re);export{re as default};
assets/{messages-Bu52yiHa.js → messages-9zYOm-8o.js} RENAMED
@@ -1 +1 @@
1
- import{_ as m}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-CG2-D319.js";import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-C_JkQof7.js";import{u as g}from"./queue-DIUCMOjh.js";import{b as _,l as v}from"./queues-CDLhb0jO.js";import{d as b,g as t,c as l,o as u,a as e,b as x,e as k,t as c,F as h,C as z}from"./index-DraHnlQA.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":""},C={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},I=b({__name:"messages",setup(M){const s=t(""),d=t([]),a=t(!1),f=g({handlers:[async i=>{d.value.push(i.data)}]}),r=_(f);async function p(){a.value=!0,r.add(s.value),r.add(v),s.value="",a.value=!1}return(i,n)=>(u(),l("div",w,[e("div",S,[x(k(m),{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:p},null,8,["modelValue"]),e("button",V,c(a.value?"Processing...":"Send"),1)]),e("div",y,[e("div",C,[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{_ as m}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-DvUeFWfi.js";import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-B7SUuDYL.js";import{u as g}from"./queue-BVK4A6kJ.js";import{b as _,l as v}from"./queues-CSlGUoy_.js";import{d as b,g as t,c as l,o as u,a as e,b as x,e as k,t as c,F as h,C as z}from"./index-BMgZhVsi.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":""},C={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},I=b({__name:"messages",setup(M){const s=t(""),d=t([]),a=t(!1),f=g({handlers:[async i=>{d.value.push(i.data)}]}),r=_(f);async function p(){a.value=!0,r.add(s.value),r.add(v),s.value="",a.value=!1}return(i,n)=>(u(),l("div",w,[e("div",S,[x(k(m),{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:p},null,8,["modelValue"]),e("button",V,c(a.value?"Processing...":"Send"),1)]),e("div",y,[e("div",C,[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/{openai-C2jmyh1H.js → openai-C0h04mkK.js} RENAMED
@@ -1 +1 @@
1
- import{d as b,s as g,x as k,g as l,I as w,p as z,w as y,c as U,o as V,a as e,e as i,z as u,J as _,E as p,b as C,k as x,q as A,F as B}from"./index-DraHnlQA.js";import{_ as I}from"./Collapsable.vue_vue_type_script_setup_true_lang-CoeIagAH.js";import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-C_JkQof7.js";import{u as K}from"./providers-DeZ8eO-6.js";import"./TransitionVertical.vue_vue_type_script_setup_true_lang-Ch4fEDgw.js";const R={flex:"~ row","items-center":"","gap-2":""},T={bg:"neutral-50 dark:[rgba(0,0,0,0.3)]","rounded-xl":"","p-4":"",flex:"~ col gap-4"},E={flex:"~ col gap-6"},N={"max-w-full":""},F={grid:"~ cols-2 gap-4"},L=["onClick"],M={"mt-4":""},O={grid:"~ cols-2 gap-4"},j=b({__name:"openai",setup(P){var r,d;const v=g(),m=K(),{providers:a}=k(m),n=l(((r=a.value.openai)==null?void 0:r.apiKey)||""),s=l(((d=a.value.openai)==null?void 0:d.baseUrl)||""),c=l(!1),f=w(c);return z(()=>{a.value.openai||(a.value.openai={baseUrl:"https://api.openai.com/v1/"})}),y([n,s],()=>{a.value.openai={apiKey:n.value,baseUrl:s.value||"https://api.openai.com/v1/"}}),(S,t)=>(V(),U(B,null,[e("div",R,[e("button",{onClick:t[0]||(t[0]=o=>i(v).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":""}," OpenAI ")],-1))]),e("div",T,[e("div",null,[e("div",E,[t[6]||(t[6]=e("div",null,[e("h2",{class:"text-lg text-neutral-500 md:text-2xl dark:text-neutral-400"}," Basic "),e("div",{text:"neutral-400 dark:neutral-500"},[e("span",null,"Essential settings")])],-1)),e("div",N,[e("label",F,[t[5]||(t[5]=e("div",null,[e("div",{class:"flex items-center gap-1 text-sm font-medium"},[_(" 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 OpenAI ")],-1)),u(e("input",{"onUpdate:modelValue":t[1]||(t[1]=o=>n.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-..."},null,512),[[p,n.value]])])])])]),e("div",null,[C(i(I),{"w-full":""},{trigger:x(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)&&i(f)()},[t[8]||(t[8]=e("h2",{class:"text-lg text-neutral-500 md:text-2xl dark:text-neutral-400"},[e("span",null,"Advanced")],-1)),e("div",{transform:"",transition:"transform duration-250",class:A({"rotate-180":o.visible})},t[7]||(t[7]=[e("div",{"i-solar:alt-arrow-down-bold-duotone":""},null,-1)]),2)],8,L)]),default:x(()=>[e("div",M,[e("label",O,[t[9]||(t[9]=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)),u(e("input",{"onUpdate:modelValue":t[2]||(t[2]=o=>s.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://api.openai.com/v1/"},null,512),[[p,s.value]])])])]),_:1})])]),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:openai":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});export{j as default};
 
1
+ import{d as b,s as g,x as k,g as l,I as w,p as z,w as y,c as U,o as V,a as e,e as i,z as u,J as _,E as p,b as C,k as x,q as A,F as B}from"./index-BMgZhVsi.js";import{_ as I}from"./Collapsable.vue_vue_type_script_setup_true_lang-W8Zxiip1.js";import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-B7SUuDYL.js";import{u as K}from"./providers-JNx_EUL2.js";import"./TransitionVertical.vue_vue_type_script_setup_true_lang-CLmZcRWR.js";const R={flex:"~ row","items-center":"","gap-2":""},T={bg:"neutral-50 dark:[rgba(0,0,0,0.3)]","rounded-xl":"","p-4":"",flex:"~ col gap-4"},E={flex:"~ col gap-6"},N={"max-w-full":""},F={grid:"~ cols-2 gap-4"},L=["onClick"],M={"mt-4":""},O={grid:"~ cols-2 gap-4"},j=b({__name:"openai",setup(P){var r,d;const v=g(),m=K(),{providers:a}=k(m),n=l(((r=a.value.openai)==null?void 0:r.apiKey)||""),s=l(((d=a.value.openai)==null?void 0:d.baseUrl)||""),c=l(!1),f=w(c);return z(()=>{a.value.openai||(a.value.openai={baseUrl:"https://api.openai.com/v1/"})}),y([n,s],()=>{a.value.openai={apiKey:n.value,baseUrl:s.value||"https://api.openai.com/v1/"}}),(S,t)=>(V(),U(B,null,[e("div",R,[e("button",{onClick:t[0]||(t[0]=o=>i(v).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":""}," OpenAI ")],-1))]),e("div",T,[e("div",null,[e("div",E,[t[6]||(t[6]=e("div",null,[e("h2",{class:"text-lg text-neutral-500 md:text-2xl dark:text-neutral-400"}," Basic "),e("div",{text:"neutral-400 dark:neutral-500"},[e("span",null,"Essential settings")])],-1)),e("div",N,[e("label",F,[t[5]||(t[5]=e("div",null,[e("div",{class:"flex items-center gap-1 text-sm font-medium"},[_(" 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 OpenAI ")],-1)),u(e("input",{"onUpdate:modelValue":t[1]||(t[1]=o=>n.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-..."},null,512),[[p,n.value]])])])])]),e("div",null,[C(i(I),{"w-full":""},{trigger:x(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)&&i(f)()},[t[8]||(t[8]=e("h2",{class:"text-lg text-neutral-500 md:text-2xl dark:text-neutral-400"},[e("span",null,"Advanced")],-1)),e("div",{transform:"",transition:"transform duration-250",class:A({"rotate-180":o.visible})},t[7]||(t[7]=[e("div",{"i-solar:alt-arrow-down-bold-duotone":""},null,-1)]),2)],8,L)]),default:x(()=>[e("div",M,[e("label",O,[t[9]||(t[9]=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)),u(e("input",{"onUpdate:modelValue":t[2]||(t[2]=o=>s.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://api.openai.com/v1/"},null,512),[[p,s.value]])])])]),_:1})])]),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:openai":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});export{j as default};
assets/{openrouter-BcRJnMgp.js → openrouter-Be7POxFO.js} RENAMED
@@ -1 +1 @@
1
- import{d as C,s as h,x as K,h as B,g as v,I as D,p as N,w as A,c as I,o as M,a as e,e as p,t as b,z as g,J as P,E as k,b as R,k as _,q as w,F as T}from"./index-DraHnlQA.js";import{_ as E}from"./Collapsable.vue_vue_type_script_setup_true_lang-CoeIagAH.js";import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-C_JkQof7.js";import{u as S}from"./providers-DeZ8eO-6.js";import"./TransitionVertical.vue_vue_type_script_setup_true_lang-Ch4fEDgw.js";const F={flex:"~ row","items-center":"","gap-2":""},L={relative:""},$={"text-3xl":"","font-semibold":""},q={bg:"neutral-50 dark:[rgba(0,0,0,0.3)]","rounded-xl":"","p-4":"",flex:"~ col gap-4"},J={flex:"~ col gap-6"},j={"max-w-full":""},G={grid:"~ cols-2 gap-4"},H={class:"text-xs text-zinc-500 dark:text-zinc-400","text-nowrap":""},O=["onClick"],Q={"mt-4":""},W={grid:"~ cols-2 gap-4"},X=["placeholder"],Y={fixed:"","bottom-0":"","right-0":"",text:"neutral-100/80 dark:neutral-500/20"},l="openrouter-ai",se=C({__name:"openrouter",setup(Z){var x,c;const z=h(),u=S(),{providers:n}=K(u),o=B(()=>u.getProviderMetadata(l)),i=v(((x=n.value[l])==null?void 0:x.apiKey)||""),r=v(((c=n.value[l])==null?void 0:c.baseUrl)||""),y=v(!1),U=D(y);return N(()=>{var s,t,d;u.initializeProvider(l),i.value=((s=n.value[l])==null?void 0:s.apiKey)||"",r.value=((t=n.value[l])==null?void 0:t.baseUrl)||((d=o.value)==null?void 0:d.baseUrlDefault)||""}),A([i,r],()=>{var s;n.value[l]={apiKey:i.value,baseUrl:r.value||((s=o.value)==null?void 0:s.baseUrlDefault)||""}}),(s,t)=>{var d,m,f;return M(),I(T,null,[e("div",F,[e("button",{onClick:t[0]||(t[0]=a=>p(z).back())},t[3]||(t[3]=[e("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),e("h1",L,[t[4]||(t[4]=e("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[e("span",{text:"neutral-300 dark:neutral-500"},"Provider")],-1)),e("div",$,b((d=o.value)==null?void 0:d.localizedName),1)])]),e("div",q,[e("div",null,[e("div",J,[t[6]||(t[6]=e("div",null,[e("h2",{class:"text-lg text-neutral-500 md:text-2xl dark:text-neutral-400"}," Basic "),e("div",{text:"neutral-400 dark:neutral-500"},[e("span",null,"Essential settings")])],-1)),e("div",j,[e("label",G,[e("div",null,[t[5]||(t[5]=e("div",{class:"flex items-center gap-1 text-sm font-medium"},[P(" API Key "),e("span",{class:"text-red-500"},"*")],-1)),e("div",H," API Key for "+b((m=o.value)==null?void 0:m.localizedName),1)]),g(e("input",{"onUpdate:modelValue":t[1]||(t[1]=a=>i.value=a),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),[[k,i.value]])])])])]),e("div",null,[R(p(E),{"w-full":""},{trigger:_(a=>[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:()=>a.setVisible(!a.visible)&&p(U)()},[t[8]||(t[8]=e("h2",{class:"text-lg text-neutral-500 md:text-2xl dark:text-neutral-400"},[e("span",null,"Advanced")],-1)),e("div",{transform:"",transition:"transform duration-250",class:w({"rotate-180":a.visible})},t[7]||(t[7]=[e("div",{"i-solar:alt-arrow-down-bold-duotone":""},null,-1)]),2)],8,O)]),default:_(()=>{var a;return[e("div",Q,[e("label",W,[t[9]||(t[9]=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)),g(e("input",{"onUpdate:modelValue":t[2]||(t[2]=V=>r.value=V),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:(a=o.value)==null?void 0:a.baseUrlDefault},null,8,X),[[k,r.value]])])])]}),_:1})])]),e("div",Y,[e("div",{text:"40",class:w((f=o.value)==null?void 0:f.icon),"translate-x-10":"","translate-y-10":""},null,2)])],64)}}});export{se as default};
 
1
+ import{d as C,s as h,x as K,h as B,g as v,I as D,p as N,w as A,c as I,o as M,a as e,e as p,t as b,z as g,J as P,E as k,b as R,k as _,q as w,F as T}from"./index-BMgZhVsi.js";import{_ as E}from"./Collapsable.vue_vue_type_script_setup_true_lang-W8Zxiip1.js";import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-B7SUuDYL.js";import{u as S}from"./providers-JNx_EUL2.js";import"./TransitionVertical.vue_vue_type_script_setup_true_lang-CLmZcRWR.js";const F={flex:"~ row","items-center":"","gap-2":""},L={relative:""},$={"text-3xl":"","font-semibold":""},q={bg:"neutral-50 dark:[rgba(0,0,0,0.3)]","rounded-xl":"","p-4":"",flex:"~ col gap-4"},J={flex:"~ col gap-6"},j={"max-w-full":""},G={grid:"~ cols-2 gap-4"},H={class:"text-xs text-zinc-500 dark:text-zinc-400","text-nowrap":""},O=["onClick"],Q={"mt-4":""},W={grid:"~ cols-2 gap-4"},X=["placeholder"],Y={fixed:"","bottom-0":"","right-0":"",text:"neutral-100/80 dark:neutral-500/20"},l="openrouter-ai",se=C({__name:"openrouter",setup(Z){var x,c;const z=h(),u=S(),{providers:n}=K(u),o=B(()=>u.getProviderMetadata(l)),i=v(((x=n.value[l])==null?void 0:x.apiKey)||""),r=v(((c=n.value[l])==null?void 0:c.baseUrl)||""),y=v(!1),U=D(y);return N(()=>{var s,t,d;u.initializeProvider(l),i.value=((s=n.value[l])==null?void 0:s.apiKey)||"",r.value=((t=n.value[l])==null?void 0:t.baseUrl)||((d=o.value)==null?void 0:d.baseUrlDefault)||""}),A([i,r],()=>{var s;n.value[l]={apiKey:i.value,baseUrl:r.value||((s=o.value)==null?void 0:s.baseUrlDefault)||""}}),(s,t)=>{var d,m,f;return M(),I(T,null,[e("div",F,[e("button",{onClick:t[0]||(t[0]=a=>p(z).back())},t[3]||(t[3]=[e("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),e("h1",L,[t[4]||(t[4]=e("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[e("span",{text:"neutral-300 dark:neutral-500"},"Provider")],-1)),e("div",$,b((d=o.value)==null?void 0:d.localizedName),1)])]),e("div",q,[e("div",null,[e("div",J,[t[6]||(t[6]=e("div",null,[e("h2",{class:"text-lg text-neutral-500 md:text-2xl dark:text-neutral-400"}," Basic "),e("div",{text:"neutral-400 dark:neutral-500"},[e("span",null,"Essential settings")])],-1)),e("div",j,[e("label",G,[e("div",null,[t[5]||(t[5]=e("div",{class:"flex items-center gap-1 text-sm font-medium"},[P(" API Key "),e("span",{class:"text-red-500"},"*")],-1)),e("div",H," API Key for "+b((m=o.value)==null?void 0:m.localizedName),1)]),g(e("input",{"onUpdate:modelValue":t[1]||(t[1]=a=>i.value=a),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),[[k,i.value]])])])])]),e("div",null,[R(p(E),{"w-full":""},{trigger:_(a=>[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:()=>a.setVisible(!a.visible)&&p(U)()},[t[8]||(t[8]=e("h2",{class:"text-lg text-neutral-500 md:text-2xl dark:text-neutral-400"},[e("span",null,"Advanced")],-1)),e("div",{transform:"",transition:"transform duration-250",class:w({"rotate-180":a.visible})},t[7]||(t[7]=[e("div",{"i-solar:alt-arrow-down-bold-duotone":""},null,-1)]),2)],8,O)]),default:_(()=>{var a;return[e("div",Q,[e("label",W,[t[9]||(t[9]=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)),g(e("input",{"onUpdate:modelValue":t[2]||(t[2]=V=>r.value=V),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:(a=o.value)==null?void 0:a.baseUrlDefault},null,8,X),[[k,r.value]])])])]}),_:1})])]),e("div",Y,[e("div",{text:"40",class:w((f=o.value)==null?void 0:f.icon),"translate-x-10":"","translate-y-10":""},null,2)])],64)}}});export{se as default};
assets/{providers-DeZ8eO-6.js → providers-JNx_EUL2.js} RENAMED
@@ -1 +1 @@
1
- var F=Object.defineProperty;var N=(e,o,i)=>o in e?F(e,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[o]=i;var E=(e,o,i)=>N(e,typeof o!="symbol"?o+"":o,i);import{ar as W,cd as X,g as S,w as q,h as M,v as j}from"./index-DraHnlQA.js";var k=class extends Error{constructor(o,i){super(o);E(this,"response");this.name="XSAIError",this.response=i}},J=e=>e.replace(/[A-Z]/g,o=>`_${o.toLowerCase()}`),g=e=>Object.fromEntries(Object.entries(e).map(([o,i])=>[J(o),i])),L=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>o!==void 0)),me=e=>JSON.stringify(g(L({...e,abortSignal:void 0,apiKey:void 0,baseURL:void 0,fetch:void 0,headers:void 0}))),_=(e,o)=>L({Authorization:o!==void 0?`Bearer ${o}`:void 0,...e}),R=(e,o)=>{const i=o.toString();return new URL(e,i.endsWith("/")?i:`${i}/`)},Z=async e=>{if(!e.ok){const o=new k(`Remote sent ${e.status} response`,e);throw o.cause=new Error(await e.text()),o}if(!e.body)throw new k("Response body is empty from remote server",e);if(!(e.body instanceof ReadableStream)){const o=new k(`Expected Response body to be a ReadableStream, but got ${String(e.body)}`,e);throw o.cause=new Error(`Content-Type is ${e.headers.get("Content-Type")}`),o}return e},G=async e=>Z(e).then(async o=>o.json()),H=async e=>(e.fetch??globalThis.fetch)(R("models",e.baseURL),{headers:_({"Content-Type":"application/json",...e.headers},e.apiKey),signal:e.abortSignal}).then(G).then(({data:o})=>o),m=e=>({chat:o=>Object.assign(e,{model:o})}),w=e=>({embed:o=>Object.assign(e,{model:o})}),v=e=>({model:()=>e}),Q=e=>({speech:o=>Object.assign(e,{model:o})}),V=e=>({transcription:o=>Object.assign(e,{model:o})}),l=(e,o)=>({metadata:{id:e,...o}}),c=(...e)=>Object.assign(e[0],...e.slice(1)),Y=(e,o="https://api.deepseek.com/")=>c(l("deepseek"),m({apiKey:e,baseURL:o}),v({apiKey:e,baseURL:o})),I=(e,o="https://api.fireworks.ai/inference/v1/")=>c(l("fireworks"),m({apiKey:e,baseURL:o}),w({apiKey:e,baseURL:o}),v({apiKey:e,baseURL:o})),ee=(e,o="https://api.mistral.ai/v1/")=>c(l("mistral"),m({apiKey:e,baseURL:o}),w({apiKey:e,baseURL:o}),v({apiKey:e,baseURL:o})),re=(e,o="https://api.moonshot.cn/v1/")=>c(l("moonshot"),m({apiKey:e,baseURL:o}),v({apiKey:e,baseURL:o})),oe=(e,o="https://api.novita.ai/v3/openai/")=>c(l("novita"),m({apiKey:e,baseURL:o}),v({apiKey:e,baseURL:o})),ae=(e,o="https://api.openai.com/v1/")=>c(l("openai"),m({apiKey:e,baseURL:o}),w({apiKey:e,baseURL:o}),v({apiKey:e,baseURL:o}),Q({apiKey:e,baseURL:o}),V({apiKey:e,baseURL:o})),ie=(e,o="")=>c(l("openrouter"),{chat:(i,p)=>{const s={apiKey:e,baseURL:o,model:i};return{...p?(({extraHeaders:f,models:h,provider:d})=>{f!=null&&(s.headers??(s.headers={}),Object.assign(s.headers,f));let y;return d!=null&&(y=g(d)),g({models:h,provider:y})})(p):{},...s}}}),te=(e,o="https://api.perplexity.ai/")=>c(l("perplexity"),m({apiKey:e,baseURL:o})),ne=(e,o="https://api.together.xyz/v1/")=>c(l("together-ai"),m({apiKey:e,baseURL:o}),w({apiKey:e,baseURL:o}),v({apiKey:e,baseURL:o,fetch:async(...i)=>globalThis.fetch(...i).then(async p=>p.json()).then(p=>Response.json({data:p,object:"list"}))})),se=(e,o)=>{const i=`https://api.cloudflare.com/client/v4/accounts/${o}/ai/v1/`;return c(l("workers-ai"),m({apiKey:e,baseURL:i}),w({apiKey:e,baseURL:i}))},le=(e,o="https://api.x.ai/v1/")=>c(l("xai"),m({apiKey:e,baseURL:o}),v({apiKey:e,baseURL:o})),C=(e="http://localhost:11434/v1/")=>c(l("ollama"),m({baseURL:e}),w({baseURL:e}),v({baseURL:e})),ce=(e,o="http://localhost:5933/v1/")=>{const i=({applyTextNormalization:s,languageCode:u,nextRequestIds:f,nextText:h,previousRequestIds:d,previousText:y,pronunciationDictionaryLocators:b,seed:P,voiceSettings:x})=>({extraBody:g({applyTextNormalization:s,languageCode:u,nextRequestIds:f,nextText:h,previousRequestIds:d,previousText:y,pronunciationDictionaryLocators:b?b.map(K=>g(K)):void 0,seed:P,voiceSettings:x?g(x):void 0})}),p={speech:(s,u)=>({...u?i(u):{},apiKey:e,baseURL:o,model:`elevenlabs/${s}`})};return c(l("unspeech/elevenlabs"),p)};const ve=W("providers",()=>{const e=X("settings/credentials/providers",{});async function o(r){try{const a=await fetch("https://openrouter.ai/api/v1/models",{headers:{Authorization:`Bearer ${r.apiKey}`,"Content-Type":"application/json"}});if(!a.ok)throw new Error(`Failed to fetch OpenRouter models: ${a.statusText}`);return(await a.json()).data.map(n=>({id:n.id,name:n.name||n.id,provider:"openrouter-ai",description:n.description||"",contextLength:n.context_length,deprecated:!1}))}catch(a){throw console.error("Error fetching OpenRouter models:",a),a}}const i={"openrouter-ai":{id:"openrouter-ai",nameKey:"providers.openrouter.name",name:"OpenRouter",descriptionKey:"providers.openrouter.description",description:"openrouter.ai",icon:"i-lobe-icons:openrouter",baseUrlDefault:"https://openrouter.ai/api/v1/",createProvider:r=>ie(r.apiKey,r.baseUrl),modelSelectionType:"manual",fetchModelsManually:o},openai:{id:"openai",nameKey:"providers.openai.name",name:"OpenAI",descriptionKey:"providers.openai.description",description:"openai.com",icon:"i-lobe-icons:openai",baseUrlDefault:"https://api.openai.com/v1/",createProvider:r=>ae(r.apiKey,r.baseUrl),modelSelectionType:"dynamic"},"ollama-ai":{id:"ollama-ai",nameKey:"providers.ollama.name",name:"Ollama",descriptionKey:"providers.ollama.description",description:"ollama.com",icon:"i-lobe-icons:ollama",baseUrlDefault:"http://localhost:11434/api/",createProvider:r=>C(r.baseUrl),modelSelectionType:"dynamic"},vllm:{id:"vllm",nameKey:"providers.vllm.name",name:"vLLM",descriptionKey:"providers.vllm.description",description:"vllm.ai",iconColor:"i-lobe-icons:vllm-color",createProvider:r=>C(r.baseUrl),modelSelectionType:"hardcoded",hardcodedModels:[{id:"llama-2-7b",name:"Llama 2 (7B)",provider:"vllm",description:"Meta's Llama 2 7B parameter model",contextLength:4096},{id:"llama-2-13b",name:"Llama 2 (13B)",provider:"vllm",description:"Meta's Llama 2 13B parameter model",contextLength:4096},{id:"llama-2-70b",name:"Llama 2 (70B)",provider:"vllm",description:"Meta's Llama 2 70B parameter model",contextLength:4096},{id:"mistral-7b",name:"Mistral (7B)",provider:"vllm",description:"Mistral AI's 7B parameter model",contextLength:8192},{id:"mixtral-8x7b",name:"Mixtral (8x7B)",provider:"vllm",description:"Mistral AI's Mixtral 8x7B MoE model",contextLength:32768},{id:"custom",name:"Custom Model",provider:"vllm",description:"Specify a custom model name",contextLength:0}]},"perplexity-ai":{id:"perplexity-ai",nameKey:"providers.perplexity.name",name:"Perplexity",descriptionKey:"providers.perplexity.description",description:"perplexity.ai",icon:"i-lobe-icons:perplexity",baseUrlDefault:"https://api.perplexity.ai",createProvider:r=>te(r.apiKey,r.baseUrl),modelSelectionType:"hardcoded",hardcodedModels:[{id:"sonar-small-online",name:"Sonar Small (Online)",provider:"perplexity-ai",description:"Efficient model with online search capabilities",contextLength:12e3},{id:"sonar-medium-online",name:"Sonar Medium (Online)",provider:"perplexity-ai",description:"Balanced model with online search capabilities",contextLength:12e3},{id:"sonar-large-online",name:"Sonar Large (Online)",provider:"perplexity-ai",description:"Powerful model with online search capabilities",contextLength:12e3},{id:"codey-small",name:"Codey Small",provider:"perplexity-ai",description:"Specialized for code generation and understanding",contextLength:12e3},{id:"codey-large",name:"Codey Large",provider:"perplexity-ai",description:"Advanced code generation and understanding",contextLength:12e3}]},elevenlabs:{id:"elevenlabs",nameKey:"providers.elevenlabs.name",name:"ElevenLabs",descriptionKey:"providers.elevenlabs.description",description:"elevenlabs.io",icon:"i-simple-icons:elevenlabs",baseUrlDefault:"https://unspeech.hyp3r.link/v1/",createProvider:r=>ce(r.apiKey,r.baseUrl),modelSelectionType:"hardcoded",hardcodedModels:[{id:"sonar-small-online",name:"Sonar Small (Online)",provider:"perplexity-ai",description:"Efficient model with online search capabilities",contextLength:12e3}]},xai:{id:"xai",nameKey:"providers.xai.name",name:"xAI",descriptionKey:"providers.xai.description",description:"x.ai",icon:"i-lobe-icons:xai",createProvider:r=>le(r.apiKey,r.baseUrl),modelSelectionType:"dynamic"},deepseek:{id:"deepseek",nameKey:"providers.deepseek.name",name:"DeepSeek",descriptionKey:"providers.deepseek.description",description:"deepseek.com",iconColor:"i-lobe-icons:deepseek-color",createProvider:r=>Y(r.apiKey,r.baseUrl),modelSelectionType:"dynamic"},"together-ai":{id:"together-ai",nameKey:"providers.together.name",name:"Together.ai",descriptionKey:"providers.together.description",description:"together.ai",iconColor:"i-lobe-icons:together-color",createProvider:r=>ne(r.apiKey,r.baseUrl),modelSelectionType:"dynamic"},"novita-ai":{id:"novita-ai",nameKey:"providers.novita.name",name:"Novita",descriptionKey:"providers.novita.description",description:"novita.ai",iconColor:"i-lobe-icons:novita-color",createProvider:r=>oe(r.apiKey,r.baseUrl),modelSelectionType:"dynamic"},"fireworks-ai":{id:"fireworks-ai",nameKey:"providers.fireworks.name",name:"Fireworks.ai",descriptionKey:"providers.fireworks.description",description:"fireworks.ai",icon:"i-lobe-icons:fireworks",createProvider:r=>I(r.apiKey,r.baseUrl),modelSelectionType:"dynamic"},"cloudflare-workers-ai":{id:"cloudflare-workers-ai",nameKey:"providers.cloudflare.name",name:"Cloudflare Workers AI",descriptionKey:"providers.cloudflare.description",description:"cloudflare.com",iconColor:"i-lobe-icons:cloudflare-color",createProvider:r=>se(r.apiKey,r.accountId),modelSelectionType:"dynamic"},"mistral-ai":{id:"mistral-ai",nameKey:"providers.mistral.name",name:"Mistral",descriptionKey:"providers.mistral.description",description:"mistral.ai",iconColor:"i-lobe-icons:mistral-color",createProvider:r=>ee(r.apiKey,r.baseUrl),modelSelectionType:"dynamic"},"moonshot-ai":{id:"moonshot-ai",nameKey:"providers.moonshot.name",name:"Moonshot AI",descriptionKey:"providers.moonshot.description",description:"moonshot.ai",icon:"i-lobe-icons:moonshot",createProvider:r=>re(r.apiKey,r.baseUrl),modelSelectionType:"dynamic"}};function p(r){const a=e.value[r];if(!a)return!1;switch(r){case"openrouter-ai":return!!a.apiKey&&!!a.baseUrl;case"openai":return!!a.apiKey;case"ollama-ai":return!!a.baseUrl;case"vllm":return!!a.baseUrl;case"elevenlabs":return!!a.apiKey;case"xai":return!!a.apiKey;case"deepseek":return!!a.apiKey;case"together-ai":return!!a.apiKey;case"novita-ai":return!!a.apiKey;case"fireworks-ai":return!!a.apiKey;case"cloudflare-workers-ai":return!!a.apiKey;case"mistral-ai":return!!a.apiKey;case"moonshot-ai":return!!a.apiKey;default:return!1}}const s=S({});function u(r){if(!e.value[r]){const a=i[r];e.value[r]={baseUrl:a.baseUrlDefault||""}}}Object.keys(i).forEach(u);function f(){Object.keys(i).forEach(r=>{s.value[r]=p(r)})}f(),q(e,f,{deep:!0});const h=M(()=>Object.keys(i).filter(r=>s.value[r])),d=S({}),y=S({}),b=S({});function P(r){var t;const a=i[r];return a?a.modelSelectionType==="dynamic"||a.modelSelectionType==="manual"||a.modelSelectionType==="hardcoded"&&!!((t=a.hardcodedModels)!=null&&t.length):!1}async function x(r){const a=e.value[r];if(!a)return[];const t=i[r];if(!t)return[];y.value[r]=!0,b.value[r]=null;try{switch(t.modelSelectionType){case"dynamic":if(!t.createProvider)throw new Error(`Provider ${r} has no createProvider function`);const n=t.createProvider(a);if(!("model"in n&&typeof n.model=="function"))throw new Error(`Provider ${r} does not support model listing`);const z=await H(n.model());d.value[r]=z.map(T=>({id:T.id,name:T.id,provider:r}));break;case"manual":if(!t.fetchModelsManually)throw new Error(`Provider ${r} has no fetchModelsManually function`);d.value[r]=await t.fetchModelsManually(a);break;case"hardcoded":if(!t.hardcodedModels)throw new Error(`Provider ${r} has no hardcodedModels defined`);d.value[r]=t.hardcodedModels;break}return d.value[r]}catch(n){return console.error(`Error fetching models for ${r}:`,n),b.value[r]=n instanceof Error?n.message:"Unknown error",[]}finally{y.value[r]=!1}}function K(r){return d.value[r]||[]}const $=M(()=>{const r=[];for(const a of h.value)r.push(...d.value[a]||[]);return r});async function A(){for(const r of h.value)P(r)&&await x(r)}function O(r){const{t:a}=j(),t=i[r];if(!t)throw new Error(`Provider metadata for ${r} not found`);return{...t,localizedName:a(t.nameKey,t.name),localizedDescription:a(t.descriptionKey,t.description)}}const B=M(()=>{const{t:r}=j();return Object.values(i).map(a=>({...a,localizedName:r(a.nameKey,a.name),localizedDescription:r(a.descriptionKey,a.description),configured:s.value[a.id]||!1}))});function U(r){const a=e.value[r];if(!a)throw new Error(`Provider credentials for ${r} not found`);const t=i[r];if(!t)throw new Error(`Provider metadata for ${r} not found`);try{return t.createProvider(a)}catch(n){throw console.error(`Error creating provider instance for ${r}:`,n),n}}const D=M(()=>h.value.map(r=>O(r)));return{providers:e,availableProviders:h,configuredProviders:s,providerMetadata:i,getProviderMetadata:O,allProvidersMetadata:B,initializeProvider:u,validateProvider:p,availableModels:d,isLoadingModels:y,modelLoadError:b,fetchModelsForProvider:x,getModelsForProvider:K,allAvailableModels:$,loadModelsForConfiguredProviders:A,supportsModelListing:P,getProviderInstance:U,availableProvidersMetadata:D}});export{_ as a,me as b,Z as c,H as l,R as r,ve as u};
 
1
+ var F=Object.defineProperty;var N=(e,o,i)=>o in e?F(e,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[o]=i;var E=(e,o,i)=>N(e,typeof o!="symbol"?o+"":o,i);import{ar as W,cd as X,g as S,w as q,h as M,v as j}from"./index-BMgZhVsi.js";var k=class extends Error{constructor(o,i){super(o);E(this,"response");this.name="XSAIError",this.response=i}},J=e=>e.replace(/[A-Z]/g,o=>`_${o.toLowerCase()}`),g=e=>Object.fromEntries(Object.entries(e).map(([o,i])=>[J(o),i])),L=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>o!==void 0)),me=e=>JSON.stringify(g(L({...e,abortSignal:void 0,apiKey:void 0,baseURL:void 0,fetch:void 0,headers:void 0}))),_=(e,o)=>L({Authorization:o!==void 0?`Bearer ${o}`:void 0,...e}),R=(e,o)=>{const i=o.toString();return new URL(e,i.endsWith("/")?i:`${i}/`)},Z=async e=>{if(!e.ok){const o=new k(`Remote sent ${e.status} response`,e);throw o.cause=new Error(await e.text()),o}if(!e.body)throw new k("Response body is empty from remote server",e);if(!(e.body instanceof ReadableStream)){const o=new k(`Expected Response body to be a ReadableStream, but got ${String(e.body)}`,e);throw o.cause=new Error(`Content-Type is ${e.headers.get("Content-Type")}`),o}return e},G=async e=>Z(e).then(async o=>o.json()),H=async e=>(e.fetch??globalThis.fetch)(R("models",e.baseURL),{headers:_({"Content-Type":"application/json",...e.headers},e.apiKey),signal:e.abortSignal}).then(G).then(({data:o})=>o),m=e=>({chat:o=>Object.assign(e,{model:o})}),w=e=>({embed:o=>Object.assign(e,{model:o})}),v=e=>({model:()=>e}),Q=e=>({speech:o=>Object.assign(e,{model:o})}),V=e=>({transcription:o=>Object.assign(e,{model:o})}),l=(e,o)=>({metadata:{id:e,...o}}),c=(...e)=>Object.assign(e[0],...e.slice(1)),Y=(e,o="https://api.deepseek.com/")=>c(l("deepseek"),m({apiKey:e,baseURL:o}),v({apiKey:e,baseURL:o})),I=(e,o="https://api.fireworks.ai/inference/v1/")=>c(l("fireworks"),m({apiKey:e,baseURL:o}),w({apiKey:e,baseURL:o}),v({apiKey:e,baseURL:o})),ee=(e,o="https://api.mistral.ai/v1/")=>c(l("mistral"),m({apiKey:e,baseURL:o}),w({apiKey:e,baseURL:o}),v({apiKey:e,baseURL:o})),re=(e,o="https://api.moonshot.cn/v1/")=>c(l("moonshot"),m({apiKey:e,baseURL:o}),v({apiKey:e,baseURL:o})),oe=(e,o="https://api.novita.ai/v3/openai/")=>c(l("novita"),m({apiKey:e,baseURL:o}),v({apiKey:e,baseURL:o})),ae=(e,o="https://api.openai.com/v1/")=>c(l("openai"),m({apiKey:e,baseURL:o}),w({apiKey:e,baseURL:o}),v({apiKey:e,baseURL:o}),Q({apiKey:e,baseURL:o}),V({apiKey:e,baseURL:o})),ie=(e,o="")=>c(l("openrouter"),{chat:(i,p)=>{const s={apiKey:e,baseURL:o,model:i};return{...p?(({extraHeaders:f,models:h,provider:d})=>{f!=null&&(s.headers??(s.headers={}),Object.assign(s.headers,f));let y;return d!=null&&(y=g(d)),g({models:h,provider:y})})(p):{},...s}}}),te=(e,o="https://api.perplexity.ai/")=>c(l("perplexity"),m({apiKey:e,baseURL:o})),ne=(e,o="https://api.together.xyz/v1/")=>c(l("together-ai"),m({apiKey:e,baseURL:o}),w({apiKey:e,baseURL:o}),v({apiKey:e,baseURL:o,fetch:async(...i)=>globalThis.fetch(...i).then(async p=>p.json()).then(p=>Response.json({data:p,object:"list"}))})),se=(e,o)=>{const i=`https://api.cloudflare.com/client/v4/accounts/${o}/ai/v1/`;return c(l("workers-ai"),m({apiKey:e,baseURL:i}),w({apiKey:e,baseURL:i}))},le=(e,o="https://api.x.ai/v1/")=>c(l("xai"),m({apiKey:e,baseURL:o}),v({apiKey:e,baseURL:o})),C=(e="http://localhost:11434/v1/")=>c(l("ollama"),m({baseURL:e}),w({baseURL:e}),v({baseURL:e})),ce=(e,o="http://localhost:5933/v1/")=>{const i=({applyTextNormalization:s,languageCode:u,nextRequestIds:f,nextText:h,previousRequestIds:d,previousText:y,pronunciationDictionaryLocators:b,seed:P,voiceSettings:x})=>({extraBody:g({applyTextNormalization:s,languageCode:u,nextRequestIds:f,nextText:h,previousRequestIds:d,previousText:y,pronunciationDictionaryLocators:b?b.map(K=>g(K)):void 0,seed:P,voiceSettings:x?g(x):void 0})}),p={speech:(s,u)=>({...u?i(u):{},apiKey:e,baseURL:o,model:`elevenlabs/${s}`})};return c(l("unspeech/elevenlabs"),p)};const ve=W("providers",()=>{const e=X("settings/credentials/providers",{});async function o(r){try{const a=await fetch("https://openrouter.ai/api/v1/models",{headers:{Authorization:`Bearer ${r.apiKey}`,"Content-Type":"application/json"}});if(!a.ok)throw new Error(`Failed to fetch OpenRouter models: ${a.statusText}`);return(await a.json()).data.map(n=>({id:n.id,name:n.name||n.id,provider:"openrouter-ai",description:n.description||"",contextLength:n.context_length,deprecated:!1}))}catch(a){throw console.error("Error fetching OpenRouter models:",a),a}}const i={"openrouter-ai":{id:"openrouter-ai",nameKey:"providers.openrouter.name",name:"OpenRouter",descriptionKey:"providers.openrouter.description",description:"openrouter.ai",icon:"i-lobe-icons:openrouter",baseUrlDefault:"https://openrouter.ai/api/v1/",createProvider:r=>ie(r.apiKey,r.baseUrl),modelSelectionType:"manual",fetchModelsManually:o},openai:{id:"openai",nameKey:"providers.openai.name",name:"OpenAI",descriptionKey:"providers.openai.description",description:"openai.com",icon:"i-lobe-icons:openai",baseUrlDefault:"https://api.openai.com/v1/",createProvider:r=>ae(r.apiKey,r.baseUrl),modelSelectionType:"dynamic"},"ollama-ai":{id:"ollama-ai",nameKey:"providers.ollama.name",name:"Ollama",descriptionKey:"providers.ollama.description",description:"ollama.com",icon:"i-lobe-icons:ollama",baseUrlDefault:"http://localhost:11434/api/",createProvider:r=>C(r.baseUrl),modelSelectionType:"dynamic"},vllm:{id:"vllm",nameKey:"providers.vllm.name",name:"vLLM",descriptionKey:"providers.vllm.description",description:"vllm.ai",iconColor:"i-lobe-icons:vllm-color",createProvider:r=>C(r.baseUrl),modelSelectionType:"hardcoded",hardcodedModels:[{id:"llama-2-7b",name:"Llama 2 (7B)",provider:"vllm",description:"Meta's Llama 2 7B parameter model",contextLength:4096},{id:"llama-2-13b",name:"Llama 2 (13B)",provider:"vllm",description:"Meta's Llama 2 13B parameter model",contextLength:4096},{id:"llama-2-70b",name:"Llama 2 (70B)",provider:"vllm",description:"Meta's Llama 2 70B parameter model",contextLength:4096},{id:"mistral-7b",name:"Mistral (7B)",provider:"vllm",description:"Mistral AI's 7B parameter model",contextLength:8192},{id:"mixtral-8x7b",name:"Mixtral (8x7B)",provider:"vllm",description:"Mistral AI's Mixtral 8x7B MoE model",contextLength:32768},{id:"custom",name:"Custom Model",provider:"vllm",description:"Specify a custom model name",contextLength:0}]},"perplexity-ai":{id:"perplexity-ai",nameKey:"providers.perplexity.name",name:"Perplexity",descriptionKey:"providers.perplexity.description",description:"perplexity.ai",icon:"i-lobe-icons:perplexity",baseUrlDefault:"https://api.perplexity.ai",createProvider:r=>te(r.apiKey,r.baseUrl),modelSelectionType:"hardcoded",hardcodedModels:[{id:"sonar-small-online",name:"Sonar Small (Online)",provider:"perplexity-ai",description:"Efficient model with online search capabilities",contextLength:12e3},{id:"sonar-medium-online",name:"Sonar Medium (Online)",provider:"perplexity-ai",description:"Balanced model with online search capabilities",contextLength:12e3},{id:"sonar-large-online",name:"Sonar Large (Online)",provider:"perplexity-ai",description:"Powerful model with online search capabilities",contextLength:12e3},{id:"codey-small",name:"Codey Small",provider:"perplexity-ai",description:"Specialized for code generation and understanding",contextLength:12e3},{id:"codey-large",name:"Codey Large",provider:"perplexity-ai",description:"Advanced code generation and understanding",contextLength:12e3}]},elevenlabs:{id:"elevenlabs",nameKey:"providers.elevenlabs.name",name:"ElevenLabs",descriptionKey:"providers.elevenlabs.description",description:"elevenlabs.io",icon:"i-simple-icons:elevenlabs",baseUrlDefault:"https://unspeech.hyp3r.link/v1/",createProvider:r=>ce(r.apiKey,r.baseUrl),modelSelectionType:"hardcoded",hardcodedModels:[{id:"sonar-small-online",name:"Sonar Small (Online)",provider:"perplexity-ai",description:"Efficient model with online search capabilities",contextLength:12e3}]},xai:{id:"xai",nameKey:"providers.xai.name",name:"xAI",descriptionKey:"providers.xai.description",description:"x.ai",icon:"i-lobe-icons:xai",createProvider:r=>le(r.apiKey,r.baseUrl),modelSelectionType:"dynamic"},deepseek:{id:"deepseek",nameKey:"providers.deepseek.name",name:"DeepSeek",descriptionKey:"providers.deepseek.description",description:"deepseek.com",iconColor:"i-lobe-icons:deepseek-color",createProvider:r=>Y(r.apiKey,r.baseUrl),modelSelectionType:"dynamic"},"together-ai":{id:"together-ai",nameKey:"providers.together.name",name:"Together.ai",descriptionKey:"providers.together.description",description:"together.ai",iconColor:"i-lobe-icons:together-color",createProvider:r=>ne(r.apiKey,r.baseUrl),modelSelectionType:"dynamic"},"novita-ai":{id:"novita-ai",nameKey:"providers.novita.name",name:"Novita",descriptionKey:"providers.novita.description",description:"novita.ai",iconColor:"i-lobe-icons:novita-color",createProvider:r=>oe(r.apiKey,r.baseUrl),modelSelectionType:"dynamic"},"fireworks-ai":{id:"fireworks-ai",nameKey:"providers.fireworks.name",name:"Fireworks.ai",descriptionKey:"providers.fireworks.description",description:"fireworks.ai",icon:"i-lobe-icons:fireworks",createProvider:r=>I(r.apiKey,r.baseUrl),modelSelectionType:"dynamic"},"cloudflare-workers-ai":{id:"cloudflare-workers-ai",nameKey:"providers.cloudflare.name",name:"Cloudflare Workers AI",descriptionKey:"providers.cloudflare.description",description:"cloudflare.com",iconColor:"i-lobe-icons:cloudflare-color",createProvider:r=>se(r.apiKey,r.accountId),modelSelectionType:"dynamic"},"mistral-ai":{id:"mistral-ai",nameKey:"providers.mistral.name",name:"Mistral",descriptionKey:"providers.mistral.description",description:"mistral.ai",iconColor:"i-lobe-icons:mistral-color",createProvider:r=>ee(r.apiKey,r.baseUrl),modelSelectionType:"dynamic"},"moonshot-ai":{id:"moonshot-ai",nameKey:"providers.moonshot.name",name:"Moonshot AI",descriptionKey:"providers.moonshot.description",description:"moonshot.ai",icon:"i-lobe-icons:moonshot",createProvider:r=>re(r.apiKey,r.baseUrl),modelSelectionType:"dynamic"}};function p(r){const a=e.value[r];if(!a)return!1;switch(r){case"openrouter-ai":return!!a.apiKey&&!!a.baseUrl;case"openai":return!!a.apiKey;case"ollama-ai":return!!a.baseUrl;case"vllm":return!!a.baseUrl;case"elevenlabs":return!!a.apiKey;case"xai":return!!a.apiKey;case"deepseek":return!!a.apiKey;case"together-ai":return!!a.apiKey;case"novita-ai":return!!a.apiKey;case"fireworks-ai":return!!a.apiKey;case"cloudflare-workers-ai":return!!a.apiKey;case"mistral-ai":return!!a.apiKey;case"moonshot-ai":return!!a.apiKey;default:return!1}}const s=S({});function u(r){if(!e.value[r]){const a=i[r];e.value[r]={baseUrl:a.baseUrlDefault||""}}}Object.keys(i).forEach(u);function f(){Object.keys(i).forEach(r=>{s.value[r]=p(r)})}f(),q(e,f,{deep:!0});const h=M(()=>Object.keys(i).filter(r=>s.value[r])),d=S({}),y=S({}),b=S({});function P(r){var t;const a=i[r];return a?a.modelSelectionType==="dynamic"||a.modelSelectionType==="manual"||a.modelSelectionType==="hardcoded"&&!!((t=a.hardcodedModels)!=null&&t.length):!1}async function x(r){const a=e.value[r];if(!a)return[];const t=i[r];if(!t)return[];y.value[r]=!0,b.value[r]=null;try{switch(t.modelSelectionType){case"dynamic":if(!t.createProvider)throw new Error(`Provider ${r} has no createProvider function`);const n=t.createProvider(a);if(!("model"in n&&typeof n.model=="function"))throw new Error(`Provider ${r} does not support model listing`);const z=await H(n.model());d.value[r]=z.map(T=>({id:T.id,name:T.id,provider:r}));break;case"manual":if(!t.fetchModelsManually)throw new Error(`Provider ${r} has no fetchModelsManually function`);d.value[r]=await t.fetchModelsManually(a);break;case"hardcoded":if(!t.hardcodedModels)throw new Error(`Provider ${r} has no hardcodedModels defined`);d.value[r]=t.hardcodedModels;break}return d.value[r]}catch(n){return console.error(`Error fetching models for ${r}:`,n),b.value[r]=n instanceof Error?n.message:"Unknown error",[]}finally{y.value[r]=!1}}function K(r){return d.value[r]||[]}const $=M(()=>{const r=[];for(const a of h.value)r.push(...d.value[a]||[]);return r});async function A(){for(const r of h.value)P(r)&&await x(r)}function O(r){const{t:a}=j(),t=i[r];if(!t)throw new Error(`Provider metadata for ${r} not found`);return{...t,localizedName:a(t.nameKey,t.name),localizedDescription:a(t.descriptionKey,t.description)}}const B=M(()=>{const{t:r}=j();return Object.values(i).map(a=>({...a,localizedName:r(a.nameKey,a.name),localizedDescription:r(a.descriptionKey,a.description),configured:s.value[a.id]||!1}))});function U(r){const a=e.value[r];if(!a)throw new Error(`Provider credentials for ${r} not found`);const t=i[r];if(!t)throw new Error(`Provider metadata for ${r} not found`);try{return t.createProvider(a)}catch(n){throw console.error(`Error creating provider instance for ${r}:`,n),n}}const D=M(()=>h.value.map(r=>O(r)));return{providers:e,availableProviders:h,configuredProviders:s,providerMetadata:i,getProviderMetadata:O,allProvidersMetadata:B,initializeProvider:u,validateProvider:p,availableModels:d,isLoadingModels:y,modelLoadError:b,fetchModelsForProvider:x,getModelsForProvider:K,allAvailableModels:$,loadModelsForConfiguredProviders:A,supportsModelListing:P,getProviderInstance:U,availableProvidersMetadata:D}});export{_ as a,me as b,Z as c,H as l,R as r,ve as u};
assets/{queue-DIUCMOjh.js → queue-BVK4A6kJ.js} RENAMED
@@ -1 +1 @@
1
- import{g as l}from"./index-DraHnlQA.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-BMgZhVsi.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-wgsMwoXE.js → queue-CGBwVF3U.js} RENAMED
@@ -1 +1 @@
1
- import{u as o}from"./queue-DIUCMOjh.js";import{d as v,g as h,p as g,c as k,o as w,a as I}from"./index-DraHnlQA.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-BVK4A6kJ.js";import{d as v,g as h,p as g,c as k,o as w,a as I}from"./index-BMgZhVsi.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-CDLhb0jO.js → queues-CSlGUoy_.js} RENAMED
@@ -1 +1 @@
1
- import{E as i}from"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-C_JkQof7.js";import{u as s}from"./queue-DIUCMOjh.js";import{g as d}from"./index-DraHnlQA.js";const l="<|llm_inference_end|>";function y(o){function t(e){for(const n of i)if(e.includes(n))return{ok:!0,emotion:n};return{ok:!1,emotion:""}}return s({handlers:[async e=>{if(i.includes(e.data)){e.emit("emotion",e.data),await o.add(e.data);return}{const{ok:n,emotion:a}=t(e.data);n&&(e.emit("emotion",a),await o.add(a))}}]})}function k(){function o(e){if(!/<\|DELAY:\d+\|>/i.test(e))return{ok:!1,delay:0};const n=/<\|DELAY:(\d+)\|>/i.exec(e),a=n==null?void 0:n[1];if(!a)return{ok:!1,delay:0};const r=Number.parseFloat(a);return r<=0||Number.isNaN(r)?{ok:!0,delay:0}:{ok:!0,delay:r}}function t(e){return new Promise(n=>setTimeout(n,e))}return s({handlers:[async e=>{const{ok:n,delay:a}=o(e.data);n&&(e.emit("delay",a),await t(a*1e3))}]})}function p(o){const t=d("");return s({handlers:[async e=>{if(e.data===l){const a=t.value.trim();a&&await o.add(a),t.value="";return}const n=/[.?!]/;for(t.value+=e.data;t.value;){const a=n.exec(t.value);if(!a||typeof a.index>"u")break;const r=t.value.slice(0,a.index+1),u=t.value.slice(a.index+1);await o.add(r),t.value=u}}]})}export{y as a,p as b,l,k as u};
 
1
+ import{E as i}from"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-B7SUuDYL.js";import{u as s}from"./queue-BVK4A6kJ.js";import{g as d}from"./index-BMgZhVsi.js";const l="<|llm_inference_end|>";function y(o){function t(e){for(const n of i)if(e.includes(n))return{ok:!0,emotion:n};return{ok:!1,emotion:""}}return s({handlers:[async e=>{if(i.includes(e.data)){e.emit("emotion",e.data),await o.add(e.data);return}{const{ok:n,emotion:a}=t(e.data);n&&(e.emit("emotion",a),await o.add(a))}}]})}function k(){function o(e){if(!/<\|DELAY:\d+\|>/i.test(e))return{ok:!1,delay:0};const n=/<\|DELAY:(\d+)\|>/i.exec(e),a=n==null?void 0:n[1];if(!a)return{ok:!1,delay:0};const r=Number.parseFloat(a);return r<=0||Number.isNaN(r)?{ok:!0,delay:0}:{ok:!0,delay:r}}function t(e){return new Promise(n=>setTimeout(n,e))}return s({handlers:[async e=>{const{ok:n,delay:a}=o(e.data);n&&(e.emit("delay",a),await t(a*1e3))}]})}function p(o){const t=d("");return s({handlers:[async e=>{if(e.data===l){const a=t.value.trim();a&&await o.add(a),t.value="";return}const n=/[.?!]/;for(t.value+=e.data;t.value;){const a=n.exec(t.value);if(!a||typeof a.index>"u")break;const r=t.value.slice(0,a.index+1),u=t.value.slice(a.index+1);await o.add(r),t.value=u}}]})}export{y as a,p as b,l,k as u};
assets/{speech-b4SwtB2M.js → speech-CdrLdEd-.js} RENAMED
@@ -1,4 +1,4 @@
1
- import{d as $,x as S,s as z,g as U,p as B,c as r,o,a as e,e as s,m as x,F as h,C as D,b as F,k as j,G as H,t as c,z as v,E as g,B as m,H as T,A as q,q as G,j as J}from"./index-DraHnlQA.js";import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-C_JkQof7.js";import{R as K}from"./RadioCardSimple-CtAvpvdI.js";import{u as O}from"./providers-DeZ8eO-6.js";import{u as Q}from"./speech-DwMeD8n7.js";import{b as M}from"./route-block-B_A1xBdJ.js";const W={flex:"~ row","items-center":"","gap-2":""},X={bg:"neutral-100 dark:[rgba(0,0,0,0.3)]","rounded-xl":"","p-4":"",flex:"~ col gap-4"},Y={flex:"~ col gap-4"},Z={"max-w-full":""},ee={key:0,flex:"~ row gap-4",style:{"scrollbar-width":"none"},"min-w-0":"","of-x-scroll":"","scroll-smooth":"",role:"radiogroup"},te={key:1},le={key:0},se={flex:"~ col gap-4"},oe={key:0,class:"flex items-center justify-center py-4"},re={key:1,class:"flex items-center gap-3 border border-red-200 rounded-lg bg-red-50 p-4 dark:border-red-800 dark:bg-red-900/20"},ae={class:"flex flex-col"},ne={class:"text-sm text-red-600 dark:text-red-400"},ie={key:2,class:"space-y-6"},de={key:0},ue={class:"grid grid-cols-1 gap-4 md:grid-cols-2"},pe={class:"flex items-center gap-3"},me={class:"w-12 text-center"},ve={class:"flex items-center gap-3"},xe={class:"w-12 text-center"},ce={key:1,class:"border border-neutral-200 rounded-lg p-4 dark:border-neutral-700"},be={class:"mb-3 flex items-center justify-between"},fe={class:"relative mr-2 inline-block w-10 select-none align-middle"},ge={for:"ssml-toggle",class:"block h-6 cursor-pointer overflow-hidden rounded-full bg-neutral-300 dark:bg-neutral-700"},ke={key:0,class:"mt-3"},ye={class:"overflow-auto rounded bg-neutral-50 p-3 text-xs dark:bg-neutral-800"},we=$({__name:"speech",setup(Se){const V=O(),k=Q(),{availableProviders:C,availableProvidersMetadata:E}=S(V),{activeSpeechProvider:i,activeSpeechModel:b,voiceName:d,pitch:a,rate:n,isLoadingSpeechProviderVoices:P,speechProviderError:y,supportsSSML:L,ssmlEnabled:u}=S(k),R=z(),w=U(`<speak>
2
  Hello, my name is <voice name="${d.value||"Default"}">
3
  <prosody pitch="+${a.value||0}%" rate="${n.value||1}">
4
  AI Assistant
 
1
+ import{d as $,x as S,s as z,g as U,p as B,c as r,o,a as e,e as s,m as x,F as h,C as D,b as F,k as j,G as H,t as c,z as v,E as g,B as m,H as T,A as q,q as G,j as J}from"./index-BMgZhVsi.js";import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-B7SUuDYL.js";import{R as K}from"./RadioCardSimple-BeqOivcn.js";import{u as O}from"./providers-JNx_EUL2.js";import{u as Q}from"./speech-QD7myZax.js";import{b as M}from"./route-block-B_A1xBdJ.js";const W={flex:"~ row","items-center":"","gap-2":""},X={bg:"neutral-100 dark:[rgba(0,0,0,0.3)]","rounded-xl":"","p-4":"",flex:"~ col gap-4"},Y={flex:"~ col gap-4"},Z={"max-w-full":""},ee={key:0,flex:"~ row gap-4",style:{"scrollbar-width":"none"},"min-w-0":"","of-x-scroll":"","scroll-smooth":"",role:"radiogroup"},te={key:1},le={key:0},se={flex:"~ col gap-4"},oe={key:0,class:"flex items-center justify-center py-4"},re={key:1,class:"flex items-center gap-3 border border-red-200 rounded-lg bg-red-50 p-4 dark:border-red-800 dark:bg-red-900/20"},ae={class:"flex flex-col"},ne={class:"text-sm text-red-600 dark:text-red-400"},ie={key:2,class:"space-y-6"},de={key:0},ue={class:"grid grid-cols-1 gap-4 md:grid-cols-2"},pe={class:"flex items-center gap-3"},me={class:"w-12 text-center"},ve={class:"flex items-center gap-3"},xe={class:"w-12 text-center"},ce={key:1,class:"border border-neutral-200 rounded-lg p-4 dark:border-neutral-700"},be={class:"mb-3 flex items-center justify-between"},fe={class:"relative mr-2 inline-block w-10 select-none align-middle"},ge={for:"ssml-toggle",class:"block h-6 cursor-pointer overflow-hidden rounded-full bg-neutral-300 dark:bg-neutral-700"},ke={key:0,class:"mt-3"},ye={class:"overflow-auto rounded bg-neutral-50 p-3 text-xs dark:bg-neutral-800"},we=$({__name:"speech",setup(Se){const V=O(),k=Q(),{availableProviders:C,availableProvidersMetadata:E}=S(V),{activeSpeechProvider:i,activeSpeechModel:b,voiceName:d,pitch:a,rate:n,isLoadingSpeechProviderVoices:P,speechProviderError:y,supportsSSML:L,ssmlEnabled:u}=S(k),R=z(),w=U(`<speak>
2
  Hello, my name is <voice name="${d.value||"Default"}">
3
  <prosody pitch="+${a.value||0}%" rate="${n.value||1}">
4
  AI Assistant
assets/{speech-DwMeD8n7.js → speech-QD7myZax.js} RENAMED
@@ -1 +1 @@
1
- import{ar as R,cd as t,g as y,h as p,w as W}from"./index-DraHnlQA.js";import{u as Y}from"./providers-DeZ8eO-6.js";var n=(i=>(i.Myriam="Myriam",i.Beatrice="Beatrice",i.Camilla_KM="Camilla_KM",i.SallySunshine="Sally Sunshine",i.Annie="Annie",i.KawaiiAerisita="Kawaii Aerisita",i.Morioki="Morioki",i))(n||{});const c={Myriam:"lNxY9WuCBCZCISASyJ55",Beatrice:"KAsXoQDshjF6ehsWa1mF",Camilla_KM:"dLhSyo03JRp5WkGpUlz1","Sally Sunshine":"qswttdunP3b44zVZKMRB",Annie:"AfA1PA0ldViH0DA6pbml","Kawaii Aerisita":"vGQNBgLaiM3EdZtxIiuY",Morioki:"8EkOjt4xTPGMclNlh1pk"},k=["Myriam","Beatrice","Camilla_KM","Sally Sunshine","Annie","Kawaii Aerisita"],L=["Morioki"],u={en:k,"en-US":k,ja:L,"ja-JP":L},Q=R("speech",()=>{const i=Y(),v=t("settings/speech/active-provider",""),b=t("settings/speech/active-model","eleven_multilingual_v2"),o=t("settings/speech/voice-name",""),f=t("settings/speech/voice-id",""),s=t("settings/speech/pitch",0),r=t("settings/speech/rate",1),m=t("settings/speech/ssml-enabled",!1),g=y(!1),h=y(null),l=y({}),S=t("settings/speech/language","en-US"),w=p(()=>i.availableProviders.filter(e=>M(e)).map(e=>i.getProviderMetadata(e))),K=p(()=>["elevenlabs","microsoft","google"].includes(v.value)),V=p(()=>Object.keys(u)),C=p(()=>{const e=S.value;return!e||!u[e]?[]:u[e].map(a=>({id:c[a],name:a,provider:"elevenlabs",language:e}))});function M(e){return["elevenlabs","microsoft","google","amazon"].includes(e)}function E(e){v.value=e}function B(e){b.value=e}function U(e){o.value=e;for(const a in c)if(a===e){f.value=c[a];break}}function N(e){f.value=e;for(const a in c)if(c[a]===e){o.value=a;break}}function _(e){s.value=e}function j(e){r.value=e}function F(e){m.value=e}function G(e){S.value=e}function D(){o.value="",f.value="",s.value=0,r.value=1,m.value=!1}async function A(e){if(!e||!M(e))return[];g.value=!0,h.value=null;try{if(await new Promise(a=>setTimeout(a,500)),e==="elevenlabs"){const a=[];for(const P in u){const z=u[P];for(const d of z)a.push({id:c[d],name:d,provider:"elevenlabs",language:P,description:I(d),gender:J(d)})}l.value[e]=a}else e==="microsoft"?l.value[e]=[{id:"en-US-AriaNeural",name:"Aria",provider:"microsoft",description:"Microsoft neural voice (female)",gender:"female",language:"en-US"},{id:"en-US-GuyNeural",name:"Guy",provider:"microsoft",description:"Microsoft neural voice (male)",gender:"male",language:"en-US"}]:l.value[e]=[];return l.value[e]}catch(a){return console.error(`Error fetching voices for ${e}:`,a),h.value=a instanceof Error?a.message:"Unknown error",[]}finally{g.value=!1}}function I(e){return{[n.Myriam]:"Professional female voice with clear articulation",[n.Beatrice]:"Mature and sophisticated female voice",[n.Camilla_KM]:"Friendly and approachable female voice",[n.SallySunshine]:"Cheerful and upbeat female voice",[n.Annie]:"Young and energetic female voice",[n.KawaiiAerisita]:"Cute and playful female voice",[n.Morioki]:"Deep and authoritative Japanese male voice"}[e]||"ElevenLabs voice"}function J(e){return[n.Morioki].includes(e)?"male":"female"}function $(e){return l.value[e]||[]}W(v,async e=>{e&&await A(e)});function x(e){if(!m.value)return e;let a="<speak>";return o.value&&(a+=`<voice name="${o.value}">`),(s.value!==0||r.value!==1)&&(a+=`<prosody pitch="+${s.value}%" rate="${r.value}">`),a+=e,(s.value!==0||r.value!==1)&&(a+="</prosody>"),o.value&&(a+="</voice>"),a+="</speak>",a}return{activeSpeechProvider:v,activeSpeechModel:b,voiceName:o,voiceId:f,pitch:s,rate:r,ssmlEnabled:m,selectedLanguage:S,isLoadingSpeechProviderVoices:g,speechProviderError:h,availableVoices:l,availableSpeechProvidersMetadata:w,supportsSSML:K,availableLanguages:V,availableVoicesForLanguage:C,setActiveSpeechProvider:E,setActiveSpeechModel:B,setVoiceName:U,setVoiceId:N,setPitch:_,setRate:j,setSSMLEnabled:F,setLanguage:G,resetVoiceSettings:D,loadVoicesForProvider:A,getVoicesForProvider:$,generateSSML:x,isSpeechProvider:M}});export{Q as u};
 
1
+ import{ar as R,cd as t,g as y,h as p,w as W}from"./index-BMgZhVsi.js";import{u as Y}from"./providers-JNx_EUL2.js";var n=(i=>(i.Myriam="Myriam",i.Beatrice="Beatrice",i.Camilla_KM="Camilla_KM",i.SallySunshine="Sally Sunshine",i.Annie="Annie",i.KawaiiAerisita="Kawaii Aerisita",i.Morioki="Morioki",i))(n||{});const c={Myriam:"lNxY9WuCBCZCISASyJ55",Beatrice:"KAsXoQDshjF6ehsWa1mF",Camilla_KM:"dLhSyo03JRp5WkGpUlz1","Sally Sunshine":"qswttdunP3b44zVZKMRB",Annie:"AfA1PA0ldViH0DA6pbml","Kawaii Aerisita":"vGQNBgLaiM3EdZtxIiuY",Morioki:"8EkOjt4xTPGMclNlh1pk"},k=["Myriam","Beatrice","Camilla_KM","Sally Sunshine","Annie","Kawaii Aerisita"],L=["Morioki"],u={en:k,"en-US":k,ja:L,"ja-JP":L},Q=R("speech",()=>{const i=Y(),v=t("settings/speech/active-provider",""),b=t("settings/speech/active-model","eleven_multilingual_v2"),o=t("settings/speech/voice-name",""),f=t("settings/speech/voice-id",""),s=t("settings/speech/pitch",0),r=t("settings/speech/rate",1),m=t("settings/speech/ssml-enabled",!1),g=y(!1),h=y(null),l=y({}),S=t("settings/speech/language","en-US"),w=p(()=>i.availableProviders.filter(e=>M(e)).map(e=>i.getProviderMetadata(e))),K=p(()=>["elevenlabs","microsoft","google"].includes(v.value)),V=p(()=>Object.keys(u)),C=p(()=>{const e=S.value;return!e||!u[e]?[]:u[e].map(a=>({id:c[a],name:a,provider:"elevenlabs",language:e}))});function M(e){return["elevenlabs","microsoft","google","amazon"].includes(e)}function E(e){v.value=e}function B(e){b.value=e}function U(e){o.value=e;for(const a in c)if(a===e){f.value=c[a];break}}function N(e){f.value=e;for(const a in c)if(c[a]===e){o.value=a;break}}function _(e){s.value=e}function j(e){r.value=e}function F(e){m.value=e}function G(e){S.value=e}function D(){o.value="",f.value="",s.value=0,r.value=1,m.value=!1}async function A(e){if(!e||!M(e))return[];g.value=!0,h.value=null;try{if(await new Promise(a=>setTimeout(a,500)),e==="elevenlabs"){const a=[];for(const P in u){const z=u[P];for(const d of z)a.push({id:c[d],name:d,provider:"elevenlabs",language:P,description:I(d),gender:J(d)})}l.value[e]=a}else e==="microsoft"?l.value[e]=[{id:"en-US-AriaNeural",name:"Aria",provider:"microsoft",description:"Microsoft neural voice (female)",gender:"female",language:"en-US"},{id:"en-US-GuyNeural",name:"Guy",provider:"microsoft",description:"Microsoft neural voice (male)",gender:"male",language:"en-US"}]:l.value[e]=[];return l.value[e]}catch(a){return console.error(`Error fetching voices for ${e}:`,a),h.value=a instanceof Error?a.message:"Unknown error",[]}finally{g.value=!1}}function I(e){return{[n.Myriam]:"Professional female voice with clear articulation",[n.Beatrice]:"Mature and sophisticated female voice",[n.Camilla_KM]:"Friendly and approachable female voice",[n.SallySunshine]:"Cheerful and upbeat female voice",[n.Annie]:"Young and energetic female voice",[n.KawaiiAerisita]:"Cute and playful female voice",[n.Morioki]:"Deep and authoritative Japanese male voice"}[e]||"ElevenLabs voice"}function J(e){return[n.Morioki].includes(e)?"male":"female"}function $(e){return l.value[e]||[]}W(v,async e=>{e&&await A(e)});function x(e){if(!m.value)return e;let a="<speak>";return o.value&&(a+=`<voice name="${o.value}">`),(s.value!==0||r.value!==1)&&(a+=`<prosody pitch="+${s.value}%" rate="${r.value}">`),a+=e,(s.value!==0||r.value!==1)&&(a+="</prosody>"),o.value&&(a+="</voice>"),a+="</speak>",a}return{activeSpeechProvider:v,activeSpeechModel:b,voiceName:o,voiceId:f,pitch:s,rate:r,ssmlEnabled:m,selectedLanguage:S,isLoadingSpeechProviderVoices:g,speechProviderError:h,availableVoices:l,availableSpeechProvidersMetadata:w,supportsSSML:K,availableLanguages:V,availableVoicesForLanguage:C,setActiveSpeechProvider:E,setActiveSpeechModel:B,setVoiceName:U,setVoiceId:N,setPitch:_,setRate:j,setSSMLEnabled:F,setLanguage:G,resetVoiceSettings:D,loadVoicesForProvider:A,getVoicesForProvider:$,generateSSML:x,isSpeechProvider:M}});export{Q as u};
assets/{stage-BIEcDo08.js → stage-CPd00CZ6.js} RENAMED
@@ -1 +1 @@
1
- import{d as p,u as s,c,b as d,r as i,n as m,e,o as l}from"./index-DraHnlQA.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,u as s,c,b as d,r as i,n as m,e,o as l}from"./index-BMgZhVsi.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-M-HKgmJw.js → v2-C3BMTE30.js} RENAMED
@@ -1 +1 @@
1
- import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-C_JkQof7.js";import{W as a}from"./Live2DSettings.vue_vue_type_script_setup_true_lang-CSa2O48R.js";import{_ as i,M as r,I as m,a as s}from"./MobileInteractiveArea.vue_vue_type_script_setup_true_lang-Cdag5m7E.js";import{d,c,o as l,a as o,b as e,e as n}from"./index-DraHnlQA.js";import{b as t}from"./route-block-B_A1xBdJ.js";import"./providers-DeZ8eO-6.js";import"./queue-DIUCMOjh.js";import"./queues-CDLhb0jO.js";import"./speech-DwMeD8n7.js";import"./TransitionVertical.vue_vue_type_script_setup_true_lang-Ch4fEDgw.js";import"./Collapsable.vue_vue_type_script_setup_true_lang-CoeIagAH.js";import"./HeaderLink-Cb62pdxb.js";import"./BasicTextarea.vue_vue_type_script_setup_true_lang-CG2-D319.js";import"./consciousness-BqvSoi9M.js";import"./index-DSXMBaIh.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(i,{class:"flex <md:hidden",p2:""}),e(r,{class:"hidden <md:block"})]),o("div",f,[e(n(a),{"flex-1":"","min-w":"1/2"}),e(m,{class:"flex <md:hidden","flex-1":"","max-w":"30%"}),e(s,{class:"hidden <md:block",mx2:"",mb2:""})])])]))}});typeof t=="function"&&t(_);export{_ as default};
 
1
+ import"./Stage.vue_vue_type_style_index_0_scoped_ab8bfbcc_lang-B7SUuDYL.js";import{W as a}from"./Live2DSettings.vue_vue_type_script_setup_true_lang-R42naQro.js";import{_ as i,M as r,I as m,a as s}from"./MobileInteractiveArea.vue_vue_type_script_setup_true_lang-DWigyVWY.js";import{d,c,o as l,a as o,b as e,e as n}from"./index-BMgZhVsi.js";import{b as t}from"./route-block-B_A1xBdJ.js";import"./providers-JNx_EUL2.js";import"./queue-BVK4A6kJ.js";import"./queues-CSlGUoy_.js";import"./speech-QD7myZax.js";import"./TransitionVertical.vue_vue_type_script_setup_true_lang-CLmZcRWR.js";import"./Collapsable.vue_vue_type_script_setup_true_lang-W8Zxiip1.js";import"./HeaderLink-B0cut292.js";import"./BasicTextarea.vue_vue_type_script_setup_true_lang-DvUeFWfi.js";import"./consciousness-DGKqeXEN.js";import"./index-CYxDYfrf.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(i,{class:"flex <md:hidden",p2:""}),e(r,{class:"hidden <md:block"})]),o("div",f,[e(n(a),{"flex-1":"","min-w":"1/2"}),e(m,{class:"flex <md:hidden","flex-1":"","max-w":"30%"}),e(s,{class:"hidden <md:block",mx2:"",mb2:""})])])]))}});typeof t=="function"&&t(_);export{_ as default};
index.html CHANGED
@@ -23,8 +23,8 @@
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-DraHnlQA.js"></script>
27
- <link rel="stylesheet" crossorigin href="/assets/index-Bg4nmRoP.css">
28
  </head>
29
  <body class="font-sans">
30
  <div id="app"></div>
 
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-BMgZhVsi.js"></script>
27
+ <link rel="stylesheet" crossorigin href="/assets/index-DPQ69wgS.css">
28
  </head>
29
  <body class="font-sans">
30
  <div id="app"></div>