Commit
·
8909b5c
1
Parent(s):
1fd0d07
release: build f80ce1d6eceb5840372a50dc4d767dc781cfc723
Browse files- assets/{BasicTextarea.vue_vue_type_script_setup_true_lang-th6fWyUF.js → BasicTextarea.vue_vue_type_script_setup_true_lang-BtRrKNvl.js} +1 -1
- assets/{Collapsable.vue_vue_type_script_setup_true_lang-CflD7LcR.js → Collapsable.vue_vue_type_script_setup_true_lang-Bs33xSnT.js} +1 -1
- assets/{HeaderLink-CVi8bm7D.js → HeaderLink-CJXC1OVE.js} +1 -1
- assets/{IconStatusItem-DCSKeEVj.js → IconStatusItem-CsZZfV4X.js} +1 -1
- assets/{Live2DSettings.vue_vue_type_script_setup_true_lang-DGSuA1L5.js → Live2DSettings.vue_vue_type_script_setup_true_lang-Blm3msNC.js} +1 -1
- assets/{MobileInteractiveArea.vue_vue_type_script_setup_true_lang-CQuWXhxP.js → MobileInteractiveArea.vue_vue_type_script_setup_true_lang-DFA1LVBe.js} +0 -0
- assets/{RadioCardSimple-CjslxNL7.js → RadioCardSimple-C6NsiGP9.js} +1 -1
- assets/{Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-CZ6BhhU4.js → Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-DorTQKuH.js} +0 -0
- assets/{TransitionVertical.vue_vue_type_script_setup_true_lang-DbHsdr1D.js → TransitionVertical.vue_vue_type_script_setup_true_lang-Bm2UDzd0.js} +1 -1
- assets/{_...all_-DROebaL1.js → _...all_-CoTMRKyv.js} +1 -1
- assets/{audio-APf8PbhF.js → audio-CzCYTIZW.js} +1 -1
- assets/{consciousness-BKBlANLs.js → consciousness-D22xnZvx.js} +1 -1
- assets/{consciousness-Bsmi5JW4.js → consciousness-L5Qmh1jc.js} +1 -1
- assets/{default-CeDbCFu1.js → default-CAalPa4T.js} +1 -1
- assets/{default-node-jOXZYvVR.js → default-node-C3x5fkJT.js} +1 -1
- assets/{delays-DkfQIWLW.js → delays-CGrDn991.js} +1 -1
- assets/{elevenlabs-BqNpU5ln.js → elevenlabs-ApYvuxNl.js} +1 -1
- assets/{emotions-CJEfUNGA.js → emotions-0uBZ7YA5.js} +1 -1
- assets/{filter-message-BT-Bq9q2.js → filter-message-CzBIBm_y.js} +1 -1
- assets/{image-D-dHTzRA.js → image-6Kx9I1Lr.js} +1 -1
- assets/{index-C2lKVQrw.js → index-BTumMxuS.js} +1 -1
- assets/{index-DvhwcNbm.js → index-BfjxWg-X.js} +1 -1
- assets/{index-B89Z5p0r.js → index-CZFG0-fG.js} +3 -3
- assets/{index-DLH3xHNO.css → index-Cf8foA9u.css} +0 -0
- assets/{index-CP9CI5_T.js → index-CgptNqq7.js} +1 -1
- assets/{index-CUOGvFJz.js → index-D8hsXcRp.js} +1 -1
- assets/{index-CFkqGmpM.js → index-DDzxGvMU.js} +1 -1
- assets/{index-DuaDVtrV.js → index-DYnhLD_2.js} +1 -1
- assets/{index-C2-dU6-H.css → index-DfgF6wHE.css} +1 -1
- assets/{index-BlpMVgze.js → index-DlLyj6yi.js} +1 -1
- assets/{messages-BvSNM7iN.js → messages-CRIyMfqb.js} +1 -1
- assets/{openai-6jZkbxeo.js → openai-Ofg7iSBW.js} +1 -1
- assets/{openrouter-DaarR3kl.js → openrouter-DXbkz9pO.js} +1 -1
- assets/{providers-fMT8DsDo.js → providers-D99azvon.js} +1 -1
- assets/{queue-DIAXEAyv.js → queue-CZ6vmT2p.js} +1 -1
- assets/{queue-t7KTDYgM.js → queue-DKt0cyk8.js} +1 -1
- assets/{queues-HBaasTEX.js → queues-DjSbXoiy.js} +1 -1
- assets/{speech-D9oL48UJ.js → speech-CtC4-unX.js} +1 -1
- assets/{speech-CC_xhSjO.js → speech-DMQYR3ih.js} +1 -1
- assets/{stage-D-4cgi-W.js → stage-wFs8CaiS.js} +1 -1
- assets/{v2-Bimnx-kr.js → v2-CnB05LQw.js} +1 -1
- index.html +2 -2
assets/{BasicTextarea.vue_vue_type_script_setup_true_lang-th6fWyUF.js → BasicTextarea.vue_vue_type_script_setup_true_lang-BtRrKNvl.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{d as c,cm as d,cn as f,g as n,w as p,z as v,E as x,o as h,c as y,n as _}from"./index-
|
|
|
1 |
+
import{d as c,cm as d,cn as f,g as n,w as p,z as v,E as x,o as h,c as y,n as _}from"./index-CZFG0-fG.js";const w=c({__name:"BasicTextarea",props:{modelValue:{default:""},modelModifiers:{}},emits:d(["submit"],["update:modelValue"]),setup(s,{emit:r}){const u=r,e=f(s,"modelValue"),a=n(),o=n("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-CflD7LcR.js → Collapsable.vue_vue_type_script_setup_true_lang-Bs33xSnT.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{_ as d}from"./TransitionVertical.vue_vue_type_script_setup_true_lang-
|
|
|
1 |
+
import{_ as d}from"./TransitionVertical.vue_vue_type_script_setup_true_lang-Bm2UDzd0.js";import{d as p,cm as m,cn as f,a1 as c,c as b,o as v,f as r,b as V,S as u,U as k,k as y,m as g,P as x,a as s,J as C,t as i}from"./index-CZFG0-fG.js";const B={op50:""},$=p({__name:"Collapsable",props:m({default:{type:Boolean},label:null},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(o){const t=o,e=f(o,"modelValue");c(()=>{t.default!=null&&(e.value=!!t.default)});function n(l){return e.value=l,l}return(l,a)=>(v(),b("div",null,[r(l.$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:a[0]||(a[0]=_=>e.value=!e.value)},[s("span",null,i(t.label??"Collapsable"),1),a[1]||(a[1]=C()),s("span",B,i(e.value?"▲":"▼"),1)])]),V(d,null,{default:y(()=>[e.value?r(l.$slots,"default",u(x({key:0},{visible:e.value,setVisible:n}))):g("",!0)]),_:3})]))}});export{$ as _};
|
assets/{HeaderLink-CVi8bm7D.js → HeaderLink-CJXC1OVE.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-
|
|
|
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-CZFG0-fG.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-DCSKeEVj.js → IconStatusItem-CsZZfV4X.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-
|
|
|
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-CZFG0-fG.js";import"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-DorTQKuH.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":""},b={key:1,"size-3":"",bg:"neutral-400 dark:neutral-500","rounded-full":""},y=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",b))])])}}}),B=_(y,[["__scopeId","data-v-9ab3bb7a"]]);export{B as I};
|
assets/{Live2DSettings.vue_vue_type_script_setup_true_lang-DGSuA1L5.js → Live2DSettings.vue_vue_type_script_setup_true_lang-Blm3msNC.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_ae74e0f6_lang-
|
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_ae74e0f6_lang-DorTQKuH.js";import{r as Qo,a as Jo,b as es,c as ts,l as Ya,u as Ka}from"./providers-D99azvon.js";import{d as Je,g as Q,w as Pe,p as $t,ac as Nt,c as Ce,o as Me,f as pn,aC as Gn,h as Be,v as ns,aD as Wa,a6 as _i,i as Xa,aE as rs,K as ei,x as Ft,y as ln,aF as Za,aG as Qa,F as Or,a as j,aH as is,aI as Ja,al as el,j as un,k as qe,b as Ne,q as cn,z as On,A as os,m as Yt,t as Ae,aJ as ht,aK as wt,O as ti,aL as qn,aM as Pn,e as X,aN as tl,aO as ie,aP as Si,aQ as Dn,aR as jt,aS as Oe,aT as Tt,aU as nl,aV as ss,aW as fn,aX as ni,aY as Fe,aZ as as,a_ as ls,a$ as ri,b0 as hn,b1 as rl,b2 as ii,b3 as il,b4 as us,b5 as mt,b6 as oi,b7 as At,b8 as ol,b9 as cs,ba as Ct,bb as fs,a3 as sl,bc as al,B as ll,bd as ul,a1 as ds,be as $n,L as cl,M as fl,bf as dl,bg as Rt,bh as pl,bi as hl,bj as ml,bk as gl,bl as Qn,bm as zn,bn as Pr,bo as St,bp as ps,bq as Dr,br as Bt,bs as Ii,bt as It,bu as Ut,bv as Jn,bw as yl,bx as xl,by as bl,bz as vl,bA as hs,bB as ms,bC as Fn,bD as gs,bE as si,bF as Bn,bG as ys,bH as wl,n as Ri,bI as Tl,bJ as zr,bK as xs,bL as Al,bM as on,bN as bs,bO as lt,bP as gt,bQ as dn,bR as kl,bS as El,bT as Ml,bU as _l,bV as Sl,bW as ai,bX as Il,bY as Rl,bZ as Cl,b_ as er,b$ as Nl,c0 as vs,c1 as Ll,c2 as Ol,c3 as Pl,c4 as Dl,c5 as zl,c6 as tr,c7 as Fl,c8 as Bl,c9 as Ul,ca as Ci,cb as Ni,cc as Li,cd as Oi,ce as jl,cf as Vl,cg as Hl,ch as Gl,ci as ql,_ as $l,cj as Yl,ck as Kl,E as Wl,C as Pi,H as Xl}from"./index-CZFG0-fG.js";import{u as nr}from"./queue-CZ6vmT2p.js";import{b as Zl,a as Ql,u as Jl,l as eu}from"./queues-DjSbXoiy.js";import{u as tu}from"./speech-DMQYR3ih.js";import{_ as ws}from"./TransitionVertical.vue_vue_type_script_setup_true_lang-Bm2UDzd0.js";import{_ as Un}from"./Collapsable.vue_vue_type_script_setup_true_lang-Bs33xSnT.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()),$t(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.vue_vue_type_script_setup_true_lang-CQuWXhxP.js → MobileInteractiveArea.vue_vue_type_script_setup_true_lang-DFA1LVBe.js}
RENAMED
The diff for this file is too large to render.
See raw diff
|
|
assets/{RadioCardSimple-CjslxNL7.js → RadioCardSimple-C6NsiGP9.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-
|
|
|
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-CZFG0-fG.js";import"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-DorTQKuH.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-7daf4ec0"]]);export{y as R};
|
assets/{Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-CZ6BhhU4.js → Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-DorTQKuH.js}
RENAMED
The diff for this file is too large to render.
See raw diff
|
|
assets/{TransitionVertical.vue_vue_type_script_setup_true_lang-DbHsdr1D.js → TransitionVertical.vue_vue_type_script_setup_true_lang-Bm2UDzd0.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-
|
|
|
1 |
+
import{d as T,j as l,o as m,T as B,k as b,f as v}from"./index-CZFG0-fG.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_-DROebaL1.js → _...all_-CoTMRKyv.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{_ as e,c as _,o as c}from"./index-
|
|
|
1 |
+
import{_ as e,c as _,o as c}from"./index-CZFG0-fG.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-APf8PbhF.js → audio-CzCYTIZW.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{d as s,g as f,c as d,o as p,a as t}from"./index-
|
|
|
1 |
+
import{d as s,g as f,c as d,o as p,a as t}from"./index-CZFG0-fG.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-BKBlANLs.js → consciousness-D22xnZvx.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{aC as S,cl as u,g as M,h as r,w as h}from"./index-
|
|
|
1 |
+
import{aC as S,cl as u,g as M,h as r,w as h}from"./index-CZFG0-fG.js";import{u as y}from"./providers-D99azvon.js";const N=S("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 C(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:C,resetModelSelection:d,loadModelsForProvider:v}});export{N as u};
|
assets/{consciousness-Bsmi5JW4.js → consciousness-L5Qmh1jc.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-B89Z5p0r.js";import"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-CZ6BhhU4.js";import{R as G}from"./RadioCardSimple-CjslxNL7.js";import{_ as H}from"./TransitionVertical.vue_vue_type_script_setup_true_lang-DbHsdr1D.js";import{u as J}from"./consciousness-BKBlANLs.js";import{u as K}from"./providers-fMT8DsDo.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-3b099adf"]]),oe={class:"radio-card-detail-many-select"},ae={key:0,class:"relative"},re=["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(a=>a.name.toLowerCase().includes(b)||a.description&&a.description.toLowerCase().includes(b))});function k(){u.value=""}function $(b){c.value=b,f("update:customValue",b)}return(b,a)=>(s(),n("div",oe,[t.searchable?(s(),n("div",ae,[a[5]||(a[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":a[0]||(a[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,re),[[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},a[4]||(a[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,[a[6]||(a[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":a[1]||(a[1]=w=>f("update:modelValue",w)),"onUpdate:customInputValue":a[2]||(a[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:a[3]||(a[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:a,activeProviderModelError:m}=R(g),w=F();Q(async()=>{await g.loadModelsForProvider(i.value)});function E(r){p.value=r}return(r,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(r.$t("settings.modules.consciousness.provider-model-selection.title")),1),e("div",Ve,[e("span",null,d(r.$t("settings.modules.consciousness.provider-model-selection.subtitle")),1)])]),o(a)?(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(r.$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(r.$t("settings.modules.consciousness.provider-model-selection.error")),1),e("span",Pe,d(o(m)),1)])])):o(b).length===0&&!o(a)?(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(r.$t("settings.modules.consciousness.provider-model-selection.no_models")),1),e("span",Le,d(r.$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":r.$t("settings.modules.consciousness.provider-model-selection.search_placeholder"),"search-no-results-title":r.$t("settings.modules.consciousness.provider-model-selection.no_search_results"),"search-no-results-description":r.$t("settings.modules.consciousness.provider-model-selection.no_search_results_description",{query:o(k)}),"search-results-text":r.$t("settings.modules.consciousness.provider-model-selection.search_results",{count:"{count}",total:"{total}"}),"custom-input-placeholder":r.$t("settings.modules.consciousness.provider-model-selection.custom_model_placeholder"),"expand-button-text":r.$t("settings.modules.consciousness.provider-model-selection.expand"),"collapse-button-text":r.$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(r.$t("settings.modules.consciousness.provider-model-selection.title")),1),e("div",Ee,[e("span",null,d(r.$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(r.$t("settings.modules.consciousness.provider-model-selection.not_supported")),1),e("span",Fe,d(r.$t("settings.modules.consciousness.provider-model-selection.not_supported_description")),1)])]),e("div",Qe,[e("label",Ae,d(r.$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:r.$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-CZFG0-fG.js";import"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-DorTQKuH.js";import{R as G}from"./RadioCardSimple-C6NsiGP9.js";import{_ as H}from"./TransitionVertical.vue_vue_type_script_setup_true_lang-Bm2UDzd0.js";import{u as J}from"./consciousness-D22xnZvx.js";import{u as K}from"./providers-D99azvon.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-3b099adf"]]),oe={class:"radio-card-detail-many-select"},ae={key:0,class:"relative"},re=["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(a=>a.name.toLowerCase().includes(b)||a.description&&a.description.toLowerCase().includes(b))});function k(){u.value=""}function $(b){c.value=b,f("update:customValue",b)}return(b,a)=>(s(),n("div",oe,[t.searchable?(s(),n("div",ae,[a[5]||(a[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":a[0]||(a[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,re),[[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},a[4]||(a[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,[a[6]||(a[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":a[1]||(a[1]=w=>f("update:modelValue",w)),"onUpdate:customInputValue":a[2]||(a[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:a[3]||(a[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:a,activeProviderModelError:m}=R(g),w=F();Q(async()=>{await g.loadModelsForProvider(i.value)});function E(r){p.value=r}return(r,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(r.$t("settings.modules.consciousness.provider-model-selection.title")),1),e("div",Ve,[e("span",null,d(r.$t("settings.modules.consciousness.provider-model-selection.subtitle")),1)])]),o(a)?(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(r.$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(r.$t("settings.modules.consciousness.provider-model-selection.error")),1),e("span",Pe,d(o(m)),1)])])):o(b).length===0&&!o(a)?(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(r.$t("settings.modules.consciousness.provider-model-selection.no_models")),1),e("span",Le,d(r.$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":r.$t("settings.modules.consciousness.provider-model-selection.search_placeholder"),"search-no-results-title":r.$t("settings.modules.consciousness.provider-model-selection.no_search_results"),"search-no-results-description":r.$t("settings.modules.consciousness.provider-model-selection.no_search_results_description",{query:o(k)}),"search-results-text":r.$t("settings.modules.consciousness.provider-model-selection.search_results",{count:"{count}",total:"{total}"}),"custom-input-placeholder":r.$t("settings.modules.consciousness.provider-model-selection.custom_model_placeholder"),"expand-button-text":r.$t("settings.modules.consciousness.provider-model-selection.expand"),"collapse-button-text":r.$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(r.$t("settings.modules.consciousness.provider-model-selection.title")),1),e("div",Ee,[e("span",null,d(r.$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(r.$t("settings.modules.consciousness.provider-model-selection.not_supported")),1),e("span",Fe,d(r.$t("settings.modules.consciousness.provider-model-selection.not_supported_description")),1)])]),e("div",Qe,[e("label",Ae,d(r.$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:r.$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/{default-CeDbCFu1.js → default-CAalPa4T.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-
|
|
|
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-CZFG0-fG.js";import{H as f}from"./HeaderLink-CJXC1OVE.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-jOXZYvVR.js → default-node-C3x5fkJT.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{cx as t}from"./index-
|
|
|
1 |
+
import{cx as t}from"./index-CZFG0-fG.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-DkfQIWLW.js → delays-CGrDn991.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{_ as v}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-
|
|
|
1 |
+
import{_ as v}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-BtRrKNvl.js";import"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-DorTQKuH.js";import{u as _,l as k}from"./queues-DjSbXoiy.js";import"./index-CgptNqq7.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-CZFG0-fG.js";import"./queue-CZ6vmT2p.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-BqNpU5ln.js → elevenlabs-ApYvuxNl.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-
|
|
|
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-CZFG0-fG.js";import{_ as H}from"./Collapsable.vue_vue_type_script_setup_true_lang-Bs33xSnT.js";import"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-DorTQKuH.js";import{u as J}from"./providers-D99azvon.js";import{u as G}from"./speech-DMQYR3ih.js";import"./TransitionVertical.vue_vue_type_script_setup_true_lang-Bm2UDzd0.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-CJEfUNGA.js → emotions-0uBZ7YA5.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{_}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-
|
|
|
1 |
+
import{_}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-BtRrKNvl.js";import"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-DorTQKuH.js";import{u as k}from"./queue-CZ6vmT2p.js";import{a as b,l as x}from"./queues-DjSbXoiy.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-CZFG0-fG.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-BT-Bq9q2.js → filter-message-CzBIBm_y.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-
|
|
|
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-CZFG0-fG.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-D-dHTzRA.js → image-6Kx9I1Lr.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-
|
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-CZFG0-fG.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-C2lKVQrw.js → index-BTumMxuS.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-
|
|
|
1 |
+
import"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-DorTQKuH.js";import{W as a,_ as s}from"./Live2DSettings.vue_vue_type_script_setup_true_lang-Blm3msNC.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-CZFG0-fG.js";import{b as n}from"./route-block-B_A1xBdJ.js";import"./providers-D99azvon.js";import"./queue-CZ6vmT2p.js";import"./queues-DjSbXoiy.js";import"./speech-DMQYR3ih.js";import"./TransitionVertical.vue_vue_type_script_setup_true_lang-Bm2UDzd0.js";import"./Collapsable.vue_vue_type_script_setup_true_lang-Bs33xSnT.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-DvhwcNbm.js → index-BfjxWg-X.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-
|
|
|
1 |
+
import"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-DorTQKuH.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-CZFG0-fG.js";import{u as g}from"./providers-D99azvon.js";import{I as k}from"./IconStatusItem-CsZZfV4X.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-B89Z5p0r.js → index-CZFG0-fG.js}
RENAMED
@@ -1,4 +1,4 @@
|
|
1 |
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/default-
|
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 tw="modulepreload",nw=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=nw(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":tw,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 pT;const ed=n=>pT=n,mT=Symbol();function ym(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 Sk(){const n=ec(!0),e=n.run(()=>$e({}));let t=[],i=[];const r=Wm({install(s){ed(r),r._a=s,s.provide(mT,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 gT=()=>{};function wy(n,e,t,i=gT){n.push(e);const r=()=>{const s=n.indexOf(e);s>-1&&(n.splice(s,1),i())};return!t&&ih()&&km(r),r}function ko(n,...e){n.slice().forEach(t=>{t(...e)})}const Mk=n=>n(),Ay=Symbol(),vp=Symbol();function xm(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];ym(r)&&ym(i)&&n.hasOwnProperty(t)&&!Mt(i)&&!vr(i)?n[t]=xm(r,i):n[t]=i}return n}const Ek=Symbol();function Tk(n){return!ym(n)||!n.hasOwnProperty(Ek)}const{assign:Vr}=Object;function wk(n){return!!(Mt(n)&&n.effect)}function Ak(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=jx(t.state.value[n]);return Vr(u,s,Object.keys(o||{}).reduce((f,h)=>(f[h]=Wm(Ce(()=>{ed(t);const d=t._s.get(n);return o[h].call(d,d)})),f),{}))}return l=_T(n,c,e,t,i,!0),l}function _T(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]={}),$e({});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}):(xm(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)})}:gT;function y(){o.stop(),f=[],h=[],i._s.delete(n)}const x=(P,b="")=>{if(Ay in P)return P[vp]=b,P;const S=function(){ed(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[vp],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[vp]=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||Mk)(()=>i._e.run(()=>(o=ec()).run(()=>e({action:x}))));for(const P in M){const b=M[P];if(Mt(b)&&!wk(b)||vr(b))s||(p&&Tk(b)&&(Mt(b)?b.value=p[P]:xm(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 Ck(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(mT,null):null),o&&ed(o),o=pT,o._s.has(n)||(r?_T(n,e,i,o):Ak(n,i,o)),o._s.get(n)}return s.$id=n,s}function Rk(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]=Kx(n,i))}return t}const Pk=n=>{const e={};Object.entries(Object.assign({"/src/layouts/default.vue":()=>Bt(()=>import("./default-
|
3850 |
* vue-router v4.5.0
|
3851 |
* (c) 2024 Eduardo San Martin Morote
|
3852 |
* @license MIT
|
3853 |
-
*/const zo=typeof document<"u";function vT(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function Ik(n){return n.__esModule||n[Symbol.toStringTag]==="Module"||n.default&&vT(n.default)}const vt=Object.assign;function yp(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,yT=/#/g,Lk=/&/g,Dk=/\//g,Ok=/=/g,Nk=/\?/g,xT=/\+/g,Uk=/%5B/g,Fk=/%5D/g,bT=/%5E/g,Bk=/%60/g,ST=/%7B/g,kk=/%7C/g,MT=/%7D/g,Vk=/%20/g;function u_(n){return encodeURI(""+n).replace(kk,"|").replace(Uk,"[").replace(Fk,"]")}function zk(n){return u_(n).replace(ST,"{").replace(MT,"}").replace(bT,"^")}function bm(n){return u_(n).replace(xT,"%2B").replace(Vk,"+").replace(yT,"%23").replace(Lk,"%26").replace(Bk,"`").replace(ST,"{").replace(MT,"}").replace(bT,"^")}function Hk(n){return bm(n).replace(Ok,"%3D")}function Gk(n){return u_(n).replace(yT,"%23").replace(Nk,"%3F")}function Wk(n){return n==null?"":Gk(n).replace(Dk,"%2F")}function Yl(n){try{return decodeURIComponent(""+n)}catch{}return""+n}const Xk=/\/$/,$k=n=>n.replace(Xk,"");function xp(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=Kk(i??e,t),{fullPath:i+(s&&"?")+s+o,path:i,query:r,hash:Yl(o)}}function qk(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 Yk(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])&&ET(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 ET(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(!jk(n[t],e[t]))return!1;return!0}function jk(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 Kk(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 jl;(function(n){n.pop="pop",n.push="push"})(jl||(jl={}));var ml;(function(n){n.back="back",n.forward="forward",n.unknown=""})(ml||(ml={}));function Zk(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),$k(n)}const Jk=/^[^#]+#/;function Qk(n,e){return n.replace(Jk,"#")+e}function eV(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 td=()=>({left:window.scrollX,top:window.scrollY});function tV(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=eV(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 Sm=new Map;function nV(n,e){Sm.set(n,e)}function iV(n){const e=Sm.get(n);return Sm.delete(n),e}let rV=()=>location.protocol+"//"+location.host;function TT(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 sV(n,e,t,i){let r=[],s=[],o=null;const a=({state:h})=>{const d=TT(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:jl.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:td()}),"")}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?td():null}}function oV(n){const{history:e,location:t}=window,i={value:TT(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:rV()+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:td()});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 aV(n){n=Zk(n);const e=oV(n),t=sV(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:Qk.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 lV(n){return n=location.host?n||location.pathname+location.search:"",n.includes("#")||(n+="#"),aV(n)}function cV(n){return typeof n=="string"||n&&typeof n=="object"}function wT(n){return typeof n=="string"||typeof n=="symbol"}const AT=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,[AT]:!0},e)}function or(n,e){return n instanceof Error&&AT in n&&(e==null||!!(n.type&e))}const Dy="[^/]+?",uV={sensitive:!1,strict:!1,start:!0,end:!0},fV=/[.+*?^${}()[\]/\\]/g;function hV(n,e){const t=vt({},uV,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(fV,"\\$&"),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 dV(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 CT(n,e){let t=0;const i=n.score,r=e.score;for(;t<i.length&&t<r.length;){const s=dV(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 pV={type:0,value:""},mV=/[a-zA-Z0-9_]/;function gV(n){if(!n)return[[]];if(n==="/")return[[pV]];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:mV.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 _V(n,e,t){const i=hV(gV(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 vV(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=_V(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)),RT(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(wT(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=bV(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:xV(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:yV(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 yV(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 xV(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 bV(n,e){let t=0,i=e.length;for(;t!==i;){const s=t+i>>1;CT(n,e[s])<0?i=s:t=s+1}const r=SV(n);return r&&(i=e.lastIndexOf(r,i-1)),i}function SV(n){let e=n;for(;e=e.parent;)if(RT(e)&&CT(n,e)===0)return e}function RT({record:n}){return!!(n.name||n.components&&Object.keys(n.components).length||n.redirect)}function MV(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(xT," "),o=s.indexOf("="),a=Yl(o<0?s:s.slice(0,o)),l=o<0?null:Yl(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=Hk(t),i==null){i!==void 0&&(e+=(e.length?"&":"")+t);continue}(Ri(i)?i.map(s=>s&&bm(s)):[i&&bm(i)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+t,s!=null&&(e+="="+s))})}return e}function EV(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 TV=Symbol(""),Vy=Symbol(""),nd=Symbol(""),PT=Symbol(""),Mm=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):cV(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 bp(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(vT(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=Ik(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(nd),t=In(PT),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&&PV(t.params,i.value.params)),o=Ce(()=>r.value>-1&&r.value===t.matched.length-1&&ET(t.params,i.value.params));function a(l={}){if(RV(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 wV(n){return n.length===1?n[0]:n}const AV=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(nd),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&&wV(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)}}}),CV=AV;function RV(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 PV(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,IV=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(Mm),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(TV,a),Jr(Mm,r);const l=$e();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 IT=IV;function LV(n){const e=vV(n.routes,n),t=n.parseQuery||MV,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=yp.bind(null,W=>""+W),f=yp.bind(null,Wk),h=yp.bind(null,Yl);function d(W,ae){let ue,le;return wT(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=xp(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:Yl(w.hash),redirectedFrom:void 0,href:G})}let ue;if(W.path!=null)ue=vt({},W,{path:xp(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=qk(i,vt({},W,{hash:zk(De),path:le.path})),L=r.createHref(I);return vt({fullPath:I,hash:De,query:i===ky?EV(W.query):W.query||{}},le,{redirectedFrom:void 0,href:L})}function y(W){return typeof W=="string"?xp(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&&Yk(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]=DV(W,ae);ue=bp(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=bp(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=bp(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&&nV(Py(I.fullPath,ue.delta),td()),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===jl.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===jl.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&&iV(Py(W.fullPath,0))||(le||!ue)&&history.state&&history.state.scroll||null;return cs().then(()=>De(W,ae,I)).then(L=>L&&tV(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",CV),W.component("RouterView",IT),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(nd,ae),W.provide(PT,$x(ue)),W.provide(Mm,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 DV(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 OV(){return In(nd)}const NV=[{path:"/",name:"/",component:()=>Bt(()=>import("./index-CFkqGmpM.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_-DROebaL1.js"),[])},{path:"/audio",name:"/audio",component:()=>Bt(()=>import("./audio-APf8PbhF.js"),[])},{path:"/devtools",children:[{path:"image",name:"/devtools/image",component:()=>Bt(()=>import("./image-D-dHTzRA.js"),__vite__mapDeps([20,21]))}]},{path:"/queue",name:"/queue",component:()=>Bt(()=>import("./queue-t7KTDYgM.js"),__vite__mapDeps([22,8]))},{path:"/settings",children:[{path:"",name:"/settings/",component:()=>Bt(()=>import("./index-CUOGvFJz.js"),__vite__mapDeps([23,4,5,18])),meta:{stageTransition:{name:"slide"}}},{path:"models",children:[{path:"",name:"/settings/models/",component:()=>Bt(()=>import("./index-C2lKVQrw.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-BlpMVgze.js"),__vite__mapDeps([25,4,5,26,18])),meta:{stageTransition:{name:"slide"}}},{path:"consciousness",name:"/settings/modules/consciousness",component:()=>Bt(()=>import("./consciousness-Bsmi5JW4.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-D9oL48UJ.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-DvhwcNbm.js"),__vite__mapDeps([30,4,5,7,26,18])),meta:{stageTransition:{name:"slide"}}},{path:"elevenlabs",name:"/settings/providers/elevenlabs",component:()=>Bt(()=>import("./elevenlabs-BqNpU5ln.js"),__vite__mapDeps([31,12,11,4,5,7,10]))},{path:"openai",name:"/settings/providers/openai",component:()=>Bt(()=>import("./openai-6jZkbxeo.js"),__vite__mapDeps([32,12,11,4,5,7]))},{path:"openrouter",name:"/settings/providers/openrouter",component:()=>Bt(()=>import("./openrouter-DaarR3kl.js"),__vite__mapDeps([33,12,11,4,5,7]))}]},{path:"themes",children:[{path:"",name:"/settings/themes/",component:()=>Bt(()=>import("./index-DuaDVtrV.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-BT-Bq9q2.js"),[])},{path:"queues",children:[{path:"delays",name:"/test/queues/delays",component:()=>Bt(()=>import("./delays-DkfQIWLW.js"),__vite__mapDeps([36,14,4,5,9,8,16]))},{path:"emotions",name:"/test/queues/emotions",component:()=>Bt(()=>import("./emotions-CJEfUNGA.js"),__vite__mapDeps([37,14,4,5,8,9]))},{path:"messages",name:"/test/queues/messages",component:()=>Bt(()=>import("./messages-BvSNM7iN.js"),__vite__mapDeps([38,14,4,5,8,9]))}]}]},{path:"/v2",name:"/v2",component:()=>Bt(()=>import("./v2-Bimnx-kr.js"),__vite__mapDeps([39,4,5,6,7,8,9,10,11,12,13,1,2,14,15,16,17,18])),meta:{layout:"default"}}],UV=354.31,FV=Ck("settings",()=>{const n=$e(),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}=VN({constraints:{audio:!0},requestPermissions:!0}),o=$e(),a=$e("./assets/live2d/models/hiyori_pro_zh.zip"),l=$e("url"),c=$e(!1),u=Fr("settings/live2d/position",{x:0,y:0}),f=$e({group:"Idle",index:0}),h=$e([]),d=Fr("settings/live2d/motion-map",{}),p=Fr("settings/disable-transitions",!1),_=Fr("settings/theme/colors/hue",UV),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}}),BV=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},kV=vo(BV,[["__scopeId","data-v-df576df0"]]),VV=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,cA(t.value,(o,a)=>(ln(),ci("div",{key:a}))),128))],4)}}}),zV=vo(VV,[["__scopeId","data-v-0c29056c"]]),HV=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)}}}),GV=vo(HV,[["__scopeId","data-v-e62bf496"]]),WV=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]=[HA('<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)}}}),XV=vo(WV,[["__scopeId","data-v-6d1179fc"]]),$V=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)}}}),qV=vo($V,[["__scopeId","data-v-bf1d1566"]]),YV=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)}}}),jV=vo(YV,[["__scopeId","data-v-8ff7120f"]]),KV=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)}}}),ZV=vo(KV,[["__scopeId","data-v-f4b1dc64"]]),JV=nn({__name:"StageTransitionGroup",props:{primaryColor:null,secondaryColor:null,tertiaryColor:null,colors:null,zIndex:null,disableTransitions:{type:Boolean}},setup(n){const e=n,t=OV(),i=$e(!1),r=$e(),s=$e(""),o=$e(),a=Ve({slide:{component:qV,duration:2700},"slope-slide":{component:jV,duration:2700},arrow:{component:kV,duration:2700},"multiple-blocks-reveal":{component:XV,duration:2800},"fantasy-fall":{component:GV,duration:2700},"rectangles-rotate":{component:ZV,duration:2700},"bubble-wave-out":{component:zV,duration:1e3}}),l=$e([]);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,[uA(d.$slots,"default"),i.value?(ln(),ci(Wt,{key:0},[a.value[s.value]?(ln(),Sl(lA(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-CAalPa4T.js","assets/HeaderLink-CJXC1OVE.js","assets/HeaderLink-DsxHr3rn.css","assets/index-DDzxGvMU.js","assets/Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-DorTQKuH.js","assets/Stage-BDc8G1FV.css","assets/Live2DSettings.vue_vue_type_script_setup_true_lang-Blm3msNC.js","assets/providers-D99azvon.js","assets/queue-CZ6vmT2p.js","assets/queues-DjSbXoiy.js","assets/speech-DMQYR3ih.js","assets/TransitionVertical.vue_vue_type_script_setup_true_lang-Bm2UDzd0.js","assets/Collapsable.vue_vue_type_script_setup_true_lang-Bs33xSnT.js","assets/MobileInteractiveArea.vue_vue_type_script_setup_true_lang-DFA1LVBe.js","assets/BasicTextarea.vue_vue_type_script_setup_true_lang-BtRrKNvl.js","assets/consciousness-D22xnZvx.js","assets/index-CgptNqq7.js","assets/MobileInteractiveArea-CkhuOcV9.css","assets/route-block-B_A1xBdJ.js","assets/index-CDTMeduu.css","assets/image-6Kx9I1Lr.js","assets/image-BhuwcwI9.css","assets/queue-DKt0cyk8.js","assets/index-D8hsXcRp.js","assets/index-BTumMxuS.js","assets/index-DlLyj6yi.js","assets/IconStatusItem-CsZZfV4X.js","assets/consciousness-L5Qmh1jc.js","assets/RadioCardSimple-C6NsiGP9.js","assets/speech-CtC4-unX.js","assets/index-BfjxWg-X.js","assets/elevenlabs-ApYvuxNl.js","assets/openai-Ofg7iSBW.js","assets/openrouter-DXbkz9pO.js","assets/index-DYnhLD_2.js","assets/index-DfgF6wHE.css","assets/delays-CGrDn991.js","assets/emotions-0uBZ7YA5.js","assets/messages-CRIyMfqb.js","assets/v2-CnB05LQw.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 tw="modulepreload",nw=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=nw(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":tw,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 pT;const ed=n=>pT=n,mT=Symbol();function ym(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 Sk(){const n=ec(!0),e=n.run(()=>$e({}));let t=[],i=[];const r=Wm({install(s){ed(r),r._a=s,s.provide(mT,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 gT=()=>{};function wy(n,e,t,i=gT){n.push(e);const r=()=>{const s=n.indexOf(e);s>-1&&(n.splice(s,1),i())};return!t&&ih()&&km(r),r}function ko(n,...e){n.slice().forEach(t=>{t(...e)})}const Mk=n=>n(),Ay=Symbol(),vp=Symbol();function xm(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];ym(r)&&ym(i)&&n.hasOwnProperty(t)&&!Mt(i)&&!vr(i)?n[t]=xm(r,i):n[t]=i}return n}const Ek=Symbol();function Tk(n){return!ym(n)||!n.hasOwnProperty(Ek)}const{assign:Vr}=Object;function wk(n){return!!(Mt(n)&&n.effect)}function Ak(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=jx(t.state.value[n]);return Vr(u,s,Object.keys(o||{}).reduce((f,h)=>(f[h]=Wm(Ce(()=>{ed(t);const d=t._s.get(n);return o[h].call(d,d)})),f),{}))}return l=_T(n,c,e,t,i,!0),l}function _T(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]={}),$e({});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}):(xm(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)})}:gT;function y(){o.stop(),f=[],h=[],i._s.delete(n)}const x=(P,b="")=>{if(Ay in P)return P[vp]=b,P;const S=function(){ed(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[vp],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[vp]=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||Mk)(()=>i._e.run(()=>(o=ec()).run(()=>e({action:x}))));for(const P in M){const b=M[P];if(Mt(b)&&!wk(b)||vr(b))s||(p&&Tk(b)&&(Mt(b)?b.value=p[P]:xm(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 Ck(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(mT,null):null),o&&ed(o),o=pT,o._s.has(n)||(r?_T(n,e,i,o):Ak(n,i,o)),o._s.get(n)}return s.$id=n,s}function Rk(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]=Kx(n,i))}return t}const Pk=n=>{const e={};Object.entries(Object.assign({"/src/layouts/default.vue":()=>Bt(()=>import("./default-CAalPa4T.js"),__vite__mapDeps([0,1,2])),"/src/layouts/stage.vue":()=>Bt(()=>import("./stage-wFs8CaiS.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 vT(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function Ik(n){return n.__esModule||n[Symbol.toStringTag]==="Module"||n.default&&vT(n.default)}const vt=Object.assign;function yp(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,yT=/#/g,Lk=/&/g,Dk=/\//g,Ok=/=/g,Nk=/\?/g,xT=/\+/g,Uk=/%5B/g,Fk=/%5D/g,bT=/%5E/g,Bk=/%60/g,ST=/%7B/g,kk=/%7C/g,MT=/%7D/g,Vk=/%20/g;function u_(n){return encodeURI(""+n).replace(kk,"|").replace(Uk,"[").replace(Fk,"]")}function zk(n){return u_(n).replace(ST,"{").replace(MT,"}").replace(bT,"^")}function bm(n){return u_(n).replace(xT,"%2B").replace(Vk,"+").replace(yT,"%23").replace(Lk,"%26").replace(Bk,"`").replace(ST,"{").replace(MT,"}").replace(bT,"^")}function Hk(n){return bm(n).replace(Ok,"%3D")}function Gk(n){return u_(n).replace(yT,"%23").replace(Nk,"%3F")}function Wk(n){return n==null?"":Gk(n).replace(Dk,"%2F")}function Yl(n){try{return decodeURIComponent(""+n)}catch{}return""+n}const Xk=/\/$/,$k=n=>n.replace(Xk,"");function xp(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=Kk(i??e,t),{fullPath:i+(s&&"?")+s+o,path:i,query:r,hash:Yl(o)}}function qk(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 Yk(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])&&ET(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 ET(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(!jk(n[t],e[t]))return!1;return!0}function jk(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 Kk(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 jl;(function(n){n.pop="pop",n.push="push"})(jl||(jl={}));var ml;(function(n){n.back="back",n.forward="forward",n.unknown=""})(ml||(ml={}));function Zk(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),$k(n)}const Jk=/^[^#]+#/;function Qk(n,e){return n.replace(Jk,"#")+e}function eV(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 td=()=>({left:window.scrollX,top:window.scrollY});function tV(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=eV(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 Sm=new Map;function nV(n,e){Sm.set(n,e)}function iV(n){const e=Sm.get(n);return Sm.delete(n),e}let rV=()=>location.protocol+"//"+location.host;function TT(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 sV(n,e,t,i){let r=[],s=[],o=null;const a=({state:h})=>{const d=TT(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:jl.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:td()}),"")}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?td():null}}function oV(n){const{history:e,location:t}=window,i={value:TT(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:rV()+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:td()});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 aV(n){n=Zk(n);const e=oV(n),t=sV(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:Qk.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 lV(n){return n=location.host?n||location.pathname+location.search:"",n.includes("#")||(n+="#"),aV(n)}function cV(n){return typeof n=="string"||n&&typeof n=="object"}function wT(n){return typeof n=="string"||typeof n=="symbol"}const AT=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,[AT]:!0},e)}function or(n,e){return n instanceof Error&&AT in n&&(e==null||!!(n.type&e))}const Dy="[^/]+?",uV={sensitive:!1,strict:!1,start:!0,end:!0},fV=/[.+*?^${}()[\]/\\]/g;function hV(n,e){const t=vt({},uV,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(fV,"\\$&"),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 dV(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 CT(n,e){let t=0;const i=n.score,r=e.score;for(;t<i.length&&t<r.length;){const s=dV(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 pV={type:0,value:""},mV=/[a-zA-Z0-9_]/;function gV(n){if(!n)return[[]];if(n==="/")return[[pV]];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:mV.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 _V(n,e,t){const i=hV(gV(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 vV(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=_V(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)),RT(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(wT(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=bV(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:xV(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:yV(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 yV(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 xV(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 bV(n,e){let t=0,i=e.length;for(;t!==i;){const s=t+i>>1;CT(n,e[s])<0?i=s:t=s+1}const r=SV(n);return r&&(i=e.lastIndexOf(r,i-1)),i}function SV(n){let e=n;for(;e=e.parent;)if(RT(e)&&CT(n,e)===0)return e}function RT({record:n}){return!!(n.name||n.components&&Object.keys(n.components).length||n.redirect)}function MV(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(xT," "),o=s.indexOf("="),a=Yl(o<0?s:s.slice(0,o)),l=o<0?null:Yl(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=Hk(t),i==null){i!==void 0&&(e+=(e.length?"&":"")+t);continue}(Ri(i)?i.map(s=>s&&bm(s)):[i&&bm(i)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+t,s!=null&&(e+="="+s))})}return e}function EV(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 TV=Symbol(""),Vy=Symbol(""),nd=Symbol(""),PT=Symbol(""),Mm=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):cV(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 bp(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(vT(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=Ik(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(nd),t=In(PT),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&&PV(t.params,i.value.params)),o=Ce(()=>r.value>-1&&r.value===t.matched.length-1&&ET(t.params,i.value.params));function a(l={}){if(RV(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 wV(n){return n.length===1?n[0]:n}const AV=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(nd),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&&wV(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)}}}),CV=AV;function RV(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 PV(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,IV=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(Mm),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(TV,a),Jr(Mm,r);const l=$e();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 IT=IV;function LV(n){const e=vV(n.routes,n),t=n.parseQuery||MV,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=yp.bind(null,W=>""+W),f=yp.bind(null,Wk),h=yp.bind(null,Yl);function d(W,ae){let ue,le;return wT(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=xp(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:Yl(w.hash),redirectedFrom:void 0,href:G})}let ue;if(W.path!=null)ue=vt({},W,{path:xp(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=qk(i,vt({},W,{hash:zk(De),path:le.path})),L=r.createHref(I);return vt({fullPath:I,hash:De,query:i===ky?EV(W.query):W.query||{}},le,{redirectedFrom:void 0,href:L})}function y(W){return typeof W=="string"?xp(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&&Yk(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]=DV(W,ae);ue=bp(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=bp(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=bp(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&&nV(Py(I.fullPath,ue.delta),td()),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===jl.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===jl.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&&iV(Py(W.fullPath,0))||(le||!ue)&&history.state&&history.state.scroll||null;return cs().then(()=>De(W,ae,I)).then(L=>L&&tV(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",CV),W.component("RouterView",IT),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(nd,ae),W.provide(PT,$x(ue)),W.provide(Mm,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 DV(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 OV(){return In(nd)}const NV=[{path:"/",name:"/",component:()=>Bt(()=>import("./index-DDzxGvMU.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_-CoTMRKyv.js"),[])},{path:"/audio",name:"/audio",component:()=>Bt(()=>import("./audio-CzCYTIZW.js"),[])},{path:"/devtools",children:[{path:"image",name:"/devtools/image",component:()=>Bt(()=>import("./image-6Kx9I1Lr.js"),__vite__mapDeps([20,21]))}]},{path:"/queue",name:"/queue",component:()=>Bt(()=>import("./queue-DKt0cyk8.js"),__vite__mapDeps([22,8]))},{path:"/settings",children:[{path:"",name:"/settings/",component:()=>Bt(()=>import("./index-D8hsXcRp.js"),__vite__mapDeps([23,4,5,18])),meta:{stageTransition:{name:"slide"}}},{path:"models",children:[{path:"",name:"/settings/models/",component:()=>Bt(()=>import("./index-BTumMxuS.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-DlLyj6yi.js"),__vite__mapDeps([25,4,5,26,18])),meta:{stageTransition:{name:"slide"}}},{path:"consciousness",name:"/settings/modules/consciousness",component:()=>Bt(()=>import("./consciousness-L5Qmh1jc.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-CtC4-unX.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-BfjxWg-X.js"),__vite__mapDeps([30,4,5,7,26,18])),meta:{stageTransition:{name:"slide"}}},{path:"elevenlabs",name:"/settings/providers/elevenlabs",component:()=>Bt(()=>import("./elevenlabs-ApYvuxNl.js"),__vite__mapDeps([31,12,11,4,5,7,10]))},{path:"openai",name:"/settings/providers/openai",component:()=>Bt(()=>import("./openai-Ofg7iSBW.js"),__vite__mapDeps([32,12,11,4,5,7]))},{path:"openrouter",name:"/settings/providers/openrouter",component:()=>Bt(()=>import("./openrouter-DXbkz9pO.js"),__vite__mapDeps([33,12,11,4,5,7]))}]},{path:"themes",children:[{path:"",name:"/settings/themes/",component:()=>Bt(()=>import("./index-DYnhLD_2.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-CzBIBm_y.js"),[])},{path:"queues",children:[{path:"delays",name:"/test/queues/delays",component:()=>Bt(()=>import("./delays-CGrDn991.js"),__vite__mapDeps([36,14,4,5,9,8,16]))},{path:"emotions",name:"/test/queues/emotions",component:()=>Bt(()=>import("./emotions-0uBZ7YA5.js"),__vite__mapDeps([37,14,4,5,8,9]))},{path:"messages",name:"/test/queues/messages",component:()=>Bt(()=>import("./messages-CRIyMfqb.js"),__vite__mapDeps([38,14,4,5,8,9]))}]}]},{path:"/v2",name:"/v2",component:()=>Bt(()=>import("./v2-CnB05LQw.js"),__vite__mapDeps([39,4,5,6,7,8,9,10,11,12,13,1,2,14,15,16,17,18])),meta:{layout:"default"}}],UV=178.17,FV=Ck("settings",()=>{const n=$e(),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}=VN({constraints:{audio:!0},requestPermissions:!0}),o=$e(),a=$e("./assets/live2d/models/hiyori_pro_zh.zip"),l=$e("url"),c=$e(!1),u=Fr("settings/live2d/position",{x:0,y:0}),f=$e({group:"Idle",index:0}),h=$e([]),d=Fr("settings/live2d/motion-map",{}),p=Fr("settings/disable-transitions",!1),_=Fr("settings/theme/colors/hue",UV),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}}),BV=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},kV=vo(BV,[["__scopeId","data-v-df576df0"]]),VV=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,cA(t.value,(o,a)=>(ln(),ci("div",{key:a}))),128))],4)}}}),zV=vo(VV,[["__scopeId","data-v-0c29056c"]]),HV=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)}}}),GV=vo(HV,[["__scopeId","data-v-e62bf496"]]),WV=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]=[HA('<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)}}}),XV=vo(WV,[["__scopeId","data-v-6d1179fc"]]),$V=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)}}}),qV=vo($V,[["__scopeId","data-v-bf1d1566"]]),YV=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)}}}),jV=vo(YV,[["__scopeId","data-v-8ff7120f"]]),KV=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)}}}),ZV=vo(KV,[["__scopeId","data-v-f4b1dc64"]]),JV=nn({__name:"StageTransitionGroup",props:{primaryColor:null,secondaryColor:null,tertiaryColor:null,colors:null,zIndex:null,disableTransitions:{type:Boolean}},setup(n){const e=n,t=OV(),i=$e(!1),r=$e(),s=$e(""),o=$e(),a=Ve({slide:{component:qV,duration:2700},"slope-slide":{component:jV,duration:2700},arrow:{component:kV,duration:2700},"multiple-blocks-reveal":{component:XV,duration:2800},"fantasy-fall":{component:GV,duration:2700},"rectangles-rotate":{component:ZV,duration:2700},"bubble-wave-out":{component:zV,duration:1e3}}),l=$e([]);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,[uA(d.$slots,"default"),i.value?(ln(),ci(Wt,{key:0},[a.value[s.value]?(ln(),Sl(lA(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-DLH3xHNO.css → index-Cf8foA9u.css}
RENAMED
The diff for this file is too large to render.
See raw diff
|
|
assets/{index-CP9CI5_T.js → index-CgptNqq7.js}
RENAMED
@@ -1,4 +1,4 @@
|
|
1 |
-
import{co as getAugmentedNamespace}from"./index-B89Z5p0r.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{co as getAugmentedNamespace}from"./index-CZFG0-fG.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-CUOGvFJz.js → index-D8hsXcRp.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-
|
|
|
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-CZFG0-fG.js";import"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-DorTQKuH.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-057f5fa8"]]),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/{index-CFkqGmpM.js → index-DDzxGvMU.js}
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
-
import"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-
|
2 |
<path d="${B(t.value,m.value,n.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],()=>{l.value=e.height,n.value=e.amplitude,t.value=e.waveLength,u.value=e.fillColor,w.value=e.direction,$.value=e.movementDirection},{immediate:!0}),(i,v)=>(g(),L("div",R,[y(i.$slots,"default",{},void 0,!0),c("div",T,[c("div",{class:"wave",style:z({background:u.value,height:`${m.value}px`,maskImage:x.value,WebkitMaskImage:x.value,"--wave-translate":`${-t.value}px`,"--animation-duration":`${t.value/s.animationSpeed}s`,"animation-direction":$.value==="left"?"normal":"reverse"})},null,4)])]))}}),X=D(U,[["__scopeId","data-v-d4cf94d8"]]),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=A({__name:"index",setup(s){const e=N(),l=a(!1);function n(t){l.value=t}return(t,u)=>(g(),P(Q,null,{default:I(()=>[o(X,{"fill-color":S(e)?"oklch(35% calc(var(--theme-colors-chroma) * 0.6) var(--theme-colors-hue))":"color-mix(in srgb, oklch(95% calc(var(--theme-colors-chroma-50) * 0.5) var(--theme-colors-hue)) 80%, oklch(100% 0 360))"},{default:I(()=>[c("div",ee,[c("div",null,[o(E,{class:"flex <md:hidden",p2:""}),o(F,{class:"hidden <md:block"})]),c("div",te,[o(S(V),{"flex-1":"","min-w":"1/2",paused:l.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:n})])])]),_:1},8,["fill-color"])]),_:1}))}});typeof M=="function"&&M(ae);export{ae as default};
|
|
|
1 |
+
import"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-DorTQKuH.js";import{_ as D,c as L,o as g,f as y,d as A,g as a,h as C,w as j,a as c,n as z,i as N,j as P,k as I,b as o,e as S}from"./index-CZFG0-fG.js";import{W as V}from"./Live2DSettings.vue_vue_type_script_setup_true_lang-Blm3msNC.js";import{_ as E,M as F,I as Z,a as q}from"./MobileInteractiveArea.vue_vue_type_script_setup_true_lang-DFA1LVBe.js";import{b as M}from"./route-block-B_A1xBdJ.js";import"./providers-D99azvon.js";import"./queue-CZ6vmT2p.js";import"./queues-DjSbXoiy.js";import"./speech-DMQYR3ih.js";import"./TransitionVertical.vue_vue_type_script_setup_true_lang-Bm2UDzd0.js";import"./Collapsable.vue_vue_type_script_setup_true_lang-Bs33xSnT.js";import"./HeaderLink-CJXC1OVE.js";import"./BasicTextarea.vue_vue_type_script_setup_true_lang-BtRrKNvl.js";import"./consciousness-D22xnZvx.js";import"./index-CgptNqq7.js";const G={},J={class:"cross-background-container"};function K(s,e){return g(),L("div",J,[y(s.$slots,"default",{},void 0,!0)])}const Q=D(G,[["render",K],["__scopeId","data-v-0a776b22"]]),R={class:"relative"},T={absolute:"","left-0":"","right-0":"","top-0":"","w-full":"","overflow-hidden":""},U=A({__name:"AnimatedWave",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,l=a(e.height),n=a(e.amplitude),t=a(e.waveLength),u=a(e.fillColor),w=a(e.direction),$=a(e.movementDirection);function B(i,v,h,f,p){const r=[],k=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<=k;d+=O){const W=h*Math.sin(H*d),Y=p==="up"?_-W:_+W;r.push(`L ${d} ${Y}`)}const b=p==="up"?v:0;return r.push(`L ${k} ${b}`),r.push(`L 0 ${b} Z`),r.join(" ")}const m=C(()=>l.value+n.value*2),x=C(()=>{const i=`<svg width="${t.value}" height="${m.value}" xmlns="http://www.w3.org/2000/svg">
|
2 |
<path d="${B(t.value,m.value,n.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],()=>{l.value=e.height,n.value=e.amplitude,t.value=e.waveLength,u.value=e.fillColor,w.value=e.direction,$.value=e.movementDirection},{immediate:!0}),(i,v)=>(g(),L("div",R,[y(i.$slots,"default",{},void 0,!0),c("div",T,[c("div",{class:"wave",style:z({background:u.value,height:`${m.value}px`,maskImage:x.value,WebkitMaskImage:x.value,"--wave-translate":`${-t.value}px`,"--animation-duration":`${t.value/s.animationSpeed}s`,"animation-direction":$.value==="left"?"normal":"reverse"})},null,4)])]))}}),X=D(U,[["__scopeId","data-v-d4cf94d8"]]),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=A({__name:"index",setup(s){const e=N(),l=a(!1);function n(t){l.value=t}return(t,u)=>(g(),P(Q,null,{default:I(()=>[o(X,{"fill-color":S(e)?"oklch(35% calc(var(--theme-colors-chroma) * 0.6) var(--theme-colors-hue))":"color-mix(in srgb, oklch(95% calc(var(--theme-colors-chroma-50) * 0.5) var(--theme-colors-hue)) 80%, oklch(100% 0 360))"},{default:I(()=>[c("div",ee,[c("div",null,[o(E,{class:"flex <md:hidden",p2:""}),o(F,{class:"hidden <md:block"})]),c("div",te,[o(S(V),{"flex-1":"","min-w":"1/2",paused:l.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:n})])])]),_:1},8,["fill-color"])]),_:1}))}});typeof M=="function"&&M(ae);export{ae as default};
|
assets/{index-DuaDVtrV.js → index-DYnhLD_2.js}
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
-
import{h as O,g as P,K as wt,w as K,L as Ct,M as At,N as fe,e as y,d as R,O as Ot,f as $,j as F,o as _,k as T,p as $e,b as V,P as se,Q as Kt,S as Et,U as Dt,V as Xt,W as he,X as Pt,Y as qt,Z as Le,$ as at,a0 as Te,a1 as Z,m as Jt,a2 as Qt,a3 as Zt,a4 as Tt,J as kt,t as ke,D as en,c as be,n as Me,a5 as tn,a6 as nn,a7 as Bt,a8 as on,a9 as rn,aa as ln,ab as an,ac as sn,F as Be,a as x,ad as un,ae as cn,af as dn,s as fn,y as pn,z as st,q as Ee,E as mn,A as vn,C as ut,ag as hn}from"./index-B89Z5p0r.js";import{_ as ct}from"./Collapsable.vue_vue_type_script_setup_true_lang-CflD7LcR.js";import{c as dt}from"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-CZ6BhhU4.js";import{b as ft}from"./route-block-B_A1xBdJ.js";import"./TransitionVertical.vue_vue_type_script_setup_true_lang-DbHsdr1D.js";const gn=["top","right","bottom","left"],re=Math.min,W=Math.max,Se=Math.round,De=Math.floor,X=e=>({x:e,y:e}),yn={left:"right",right:"left",bottom:"top",top:"bottom"},bn={start:"end",end:"start"};function je(e,t,n){return W(e,re(t,n))}function ee(e,t){return typeof e=="function"?e(t):e}function te(e){return e.split("-")[0]}function ge(e){return e.split("-")[1]}function qe(e){return e==="x"?"y":"x"}function Je(e){return e==="y"?"height":"width"}function le(e){return["top","bottom"].includes(te(e))?"y":"x"}function Qe(e){return qe(le(e))}function xn(e,t,n){n===void 0&&(n=!1);const o=ge(e),i=Qe(e),r=Je(i);let l=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(l=Re(l)),[l,Re(l)]}function wn(e){const t=Re(e);return[Ue(e),t,Ue(t)]}function Ue(e){return e.replace(/start|end/g,t=>bn[t])}function Cn(e,t,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:o:t?o:i;case"left":case"right":return t?r:l;default:return[]}}function An(e,t,n,o){const i=ge(e);let r=Cn(te(e),n==="start",o);return i&&(r=r.map(l=>l+"-"+i),t&&(r=r.concat(r.map(Ue)))),r}function Re(e){return e.replace(/left|right|bottom|top/g,t=>yn[t])}function On(e){return{top:0,right:0,bottom:0,left:0,...e}}function St(e){return typeof e!="number"?On(e):{top:e,right:e,bottom:e,left:e}}function _e(e){const{x:t,y:n,width:o,height:i}=e;return{width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}function pt(e,t,n){let{reference:o,floating:i}=e;const r=le(t),l=Qe(t),s=Je(l),a=te(t),c=r==="y",u=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,m=o[s]/2-i[s]/2;let f;switch(a){case"top":f={x:u,y:o.y-i.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-i.width,y:d};break;default:f={x:o.x,y:o.y}}switch(ge(t)){case"start":f[l]-=m*(n&&c?-1:1);break;case"end":f[l]+=m*(n&&c?-1:1);break}return f}const En=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,s=r.filter(Boolean),a=await(l.isRTL==null?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=pt(c,o,a),m=o,f={},p=0;for(let g=0;g<s.length;g++){const{name:v,fn:h}=s[g],{x:w,y:b,data:A,reset:C}=await h({x:u,y:d,initialPlacement:o,placement:m,strategy:i,middlewareData:f,rects:c,platform:l,elements:{reference:e,floating:t}});u=w??u,d=b??d,f={...f,[v]:{...f[v],...A}},C&&p<=50&&(p++,typeof C=="object"&&(C.placement&&(m=C.placement),C.rects&&(c=C.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):C.rects),{x:u,y:d}=pt(c,m,a)),g=-1)}return{x:u,y:d,placement:m,strategy:i,middlewareData:f}};async function xe(e,t){var n;t===void 0&&(t={});const{x:o,y:i,platform:r,rects:l,elements:s,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:f=0}=ee(t,e),p=St(f),v=s[m?d==="floating"?"reference":"floating":d],h=_e(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(v)))==null||n?v:v.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:a})),w=d==="floating"?{x:o,y:i,width:l.floating.width,height:l.floating.height}:l.reference,b=await(r.getOffsetParent==null?void 0:r.getOffsetParent(s.floating)),A=await(r.isElement==null?void 0:r.isElement(b))?await(r.getScale==null?void 0:r.getScale(b))||{x:1,y:1}:{x:1,y:1},C=_e(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:b,strategy:a}):w);return{top:(h.top-C.top+p.top)/A.y,bottom:(C.bottom-h.bottom+p.bottom)/A.y,left:(h.left-C.left+p.left)/A.x,right:(C.right-h.right+p.right)/A.x}}const Dn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:r,platform:l,elements:s,middlewareData:a}=t,{element:c,padding:u=0}=ee(e,t)||{};if(c==null)return{};const d=St(u),m={x:n,y:o},f=Qe(i),p=Je(f),g=await l.getDimensions(c),v=f==="y",h=v?"top":"left",w=v?"bottom":"right",b=v?"clientHeight":"clientWidth",A=r.reference[p]+r.reference[f]-m[f]-r.floating[p],C=m[f]-r.reference[f],k=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c));let E=k?k[b]:0;(!E||!await(l.isElement==null?void 0:l.isElement(k)))&&(E=s.floating[b]||r.floating[p]);const B=A/2-C/2,L=E/2-g[p]/2-1,D=re(d[h],L),j=re(d[w],L),M=D,H=E-g[p]-j,S=E/2-g[p]/2+B,ne=je(M,S,H),N=!a.arrow&&ge(i)!=null&&S!==ne&&r.reference[p]/2-(S<M?D:j)-g[p]/2<0,G=N?S<M?S-M:S-H:0;return{[f]:m[f]+G,data:{[f]:ne,centerOffset:S-ne-G,...N&&{alignmentOffset:G}},reset:N}}}),Pn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:r,rects:l,initialPlacement:s,platform:a,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...v}=ee(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const h=te(i),w=le(s),b=te(s)===s,A=await(a.isRTL==null?void 0:a.isRTL(c.floating)),C=m||(b||!g?[Re(s)]:wn(s)),k=p!=="none";!m&&k&&C.push(...An(s,g,p,A));const E=[s,...C],B=await xe(t,v),L=[];let D=((o=r.flip)==null?void 0:o.overflows)||[];if(u&&L.push(B[h]),d){const S=xn(i,l,A);L.push(B[S[0]],B[S[1]])}if(D=[...D,{placement:i,overflows:L}],!L.every(S=>S<=0)){var j,M;const S=(((j=r.flip)==null?void 0:j.index)||0)+1,ne=E[S];if(ne)return{data:{index:S,overflows:D},reset:{placement:ne}};let N=(M=D.filter(G=>G.overflows[0]<=0).sort((G,oe)=>G.overflows[1]-oe.overflows[1])[0])==null?void 0:M.placement;if(!N)switch(f){case"bestFit":{var H;const G=(H=D.filter(oe=>{if(k){const ie=le(oe.placement);return ie===w||ie==="y"}return!0}).map(oe=>[oe.placement,oe.overflows.filter(ie=>ie>0).reduce((ie,Gt)=>ie+Gt,0)]).sort((oe,ie)=>oe[1]-ie[1])[0])==null?void 0:H[0];G&&(N=G);break}case"initialPlacement":N=s;break}if(i!==N)return{reset:{placement:N}}}return{}}}};function mt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function vt(e){return gn.some(t=>e[t]>=0)}const Tn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...i}=ee(e,t);switch(o){case"referenceHidden":{const r=await xe(t,{...i,elementContext:"reference"}),l=mt(r,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:vt(l)}}}case"escaped":{const r=await xe(t,{...i,altBoundary:!0}),l=mt(r,n.floating);return{data:{escapedOffsets:l,escaped:vt(l)}}}default:return{}}}}};async function kn(e,t){const{placement:n,platform:o,elements:i}=e,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),l=te(n),s=ge(n),a=le(n)==="y",c=["left","top"].includes(l)?-1:1,u=r&&a?-1:1,d=ee(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof p=="number"&&(f=s==="end"?p*-1:p),a?{x:f*u,y:m*c}:{x:m*c,y:f*u}}const Bn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:r,placement:l,middlewareData:s}=t,a=await kn(t,e);return l===((n=s.offset)==null?void 0:n.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:i+a.x,y:r+a.y,data:{...a,placement:l}}}}},Sn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:r=!0,crossAxis:l=!1,limiter:s={fn:v=>{let{x:h,y:w}=v;return{x:h,y:w}}},...a}=ee(e,t),c={x:n,y:o},u=await xe(t,a),d=le(te(i)),m=qe(d);let f=c[m],p=c[d];if(r){const v=m==="y"?"top":"left",h=m==="y"?"bottom":"right",w=f+u[v],b=f-u[h];f=je(w,f,b)}if(l){const v=d==="y"?"top":"left",h=d==="y"?"bottom":"right",w=p+u[v],b=p-u[h];p=je(w,p,b)}const g=s.fn({...t,[m]:f,[d]:p});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[m]:r,[d]:l}}}}}},Rn=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:r,middlewareData:l}=t,{offset:s=0,mainAxis:a=!0,crossAxis:c=!0}=ee(e,t),u={x:n,y:o},d=le(i),m=qe(d);let f=u[m],p=u[d];const g=ee(s,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(a){const b=m==="y"?"height":"width",A=r.reference[m]-r.floating[b]+v.mainAxis,C=r.reference[m]+r.reference[b]-v.mainAxis;f<A?f=A:f>C&&(f=C)}if(c){var h,w;const b=m==="y"?"width":"height",A=["top","left"].includes(te(i)),C=r.reference[d]-r.floating[b]+(A&&((h=l.offset)==null?void 0:h[d])||0)+(A?0:v.crossAxis),k=r.reference[d]+r.reference[b]+(A?0:((w=l.offset)==null?void 0:w[d])||0)-(A?v.crossAxis:0);p<C?p=C:p>k&&(p=k)}return{[m]:f,[d]:p}}}},_n=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:i,rects:r,platform:l,elements:s}=t,{apply:a=()=>{},...c}=ee(e,t),u=await xe(t,c),d=te(i),m=ge(i),f=le(i)==="y",{width:p,height:g}=r.floating;let v,h;d==="top"||d==="bottom"?(v=d,h=m===(await(l.isRTL==null?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(h=d,v=m==="end"?"top":"bottom");const w=g-u.top-u.bottom,b=p-u.left-u.right,A=re(g-u[v],w),C=re(p-u[h],b),k=!t.middlewareData.shift;let E=A,B=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(B=b),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(E=w),k&&!m){const D=W(u.left,0),j=W(u.right,0),M=W(u.top,0),H=W(u.bottom,0);f?B=p-2*(D!==0||j!==0?D+j:W(u.left,u.right)):E=g-2*(M!==0||H!==0?M+H:W(u.top,u.bottom))}await a({...t,availableWidth:B,availableHeight:E});const L=await l.getDimensions(s.floating);return p!==L.width||g!==L.height?{reset:{rects:!0}}:{}}}};function Ne(){return typeof window<"u"}function de(e){return Ze(e)?(e.nodeName||"").toLowerCase():"#document"}function z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function J(e){var t;return(t=(Ze(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ze(e){return Ne()?e instanceof Node||e instanceof z(e).Node:!1}function U(e){return Ne()?e instanceof Element||e instanceof z(e).Element:!1}function q(e){return Ne()?e instanceof HTMLElement||e instanceof z(e).HTMLElement:!1}function ht(e){return!Ne()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof z(e).ShadowRoot}function Ce(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}function $n(e){return["table","td","th"].includes(de(e))}function Fe(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function et(e){const t=tt(),n=U(e)?Y(e):e;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Ln(e){let t=ae(e);for(;q(t)&&!ve(t);){if(et(t))return t;if(Fe(t))return null;t=ae(t)}return null}function tt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ve(e){return["html","body","#document"].includes(de(e))}function Y(e){return z(e).getComputedStyle(e)}function He(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ae(e){if(de(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ht(e)&&e.host||J(e);return ht(t)?t.host:t}function Rt(e){const t=ae(e);return ve(t)?e.ownerDocument?e.ownerDocument.body:e.body:q(t)&&Ce(t)?t:Rt(t)}function we(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Rt(e),r=i===((o=e.ownerDocument)==null?void 0:o.body),l=z(i);if(r){const s=Ye(l);return t.concat(l,l.visualViewport||[],Ce(i)?i:[],s&&n?we(s):[])}return t.concat(i,we(i,[],n))}function Ye(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _t(e){const t=Y(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=q(e),r=i?e.offsetWidth:n,l=i?e.offsetHeight:o,s=Se(n)!==r||Se(o)!==l;return s&&(n=r,o=l),{width:n,height:o,$:s}}function nt(e){return U(e)?e:e.contextElement}function me(e){const t=nt(e);if(!q(t))return X(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=_t(t);let l=(r?Se(n.width):n.width)/o,s=(r?Se(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const Mn=X(0);function $t(e){const t=z(e);return!tt()||!t.visualViewport?Mn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Nn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==z(e)?!1:t}function ce(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=nt(e);let l=X(1);t&&(o?U(o)&&(l=me(o)):l=me(e));const s=Nn(r,n,o)?$t(r):X(0);let a=(i.left+s.x)/l.x,c=(i.top+s.y)/l.y,u=i.width/l.x,d=i.height/l.y;if(r){const m=z(r),f=o&&U(o)?z(o):o;let p=m,g=Ye(p);for(;g&&o&&f!==p;){const v=me(g),h=g.getBoundingClientRect(),w=Y(g),b=h.left+(g.clientLeft+parseFloat(w.paddingLeft))*v.x,A=h.top+(g.clientTop+parseFloat(w.paddingTop))*v.y;a*=v.x,c*=v.y,u*=v.x,d*=v.y,a+=b,c+=A,p=z(g),g=Ye(p)}}return _e({width:u,height:d,x:a,y:c})}function ot(e,t){const n=He(e).scrollLeft;return t?t.left+n:ce(J(e)).left+n}function Lt(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=o.left+t.scrollLeft-(n?0:ot(e,o)),r=o.top+t.scrollTop;return{x:i,y:r}}function Fn(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e;const r=i==="fixed",l=J(o),s=t?Fe(t.floating):!1;if(o===l||s&&r)return n;let a={scrollLeft:0,scrollTop:0},c=X(1);const u=X(0),d=q(o);if((d||!d&&!r)&&((de(o)!=="body"||Ce(l))&&(a=He(o)),q(o))){const f=ce(o);c=me(o),u.x=f.x+o.clientLeft,u.y=f.y+o.clientTop}const m=l&&!d&&!r?Lt(l,a,!0):X(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x+m.x,y:n.y*c.y-a.scrollTop*c.y+u.y+m.y}}function Hn(e){return Array.from(e.getClientRects())}function Wn(e){const t=J(e),n=He(e),o=e.ownerDocument.body,i=W(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=W(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+ot(e);const s=-n.scrollTop;return Y(o).direction==="rtl"&&(l+=W(t.clientWidth,o.clientWidth)-i),{width:i,height:r,x:l,y:s}}function zn(e,t){const n=z(e),o=J(e),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,s=0,a=0;if(i){r=i.width,l=i.height;const c=tt();(!c||c&&t==="fixed")&&(s=i.offsetLeft,a=i.offsetTop)}return{width:r,height:l,x:s,y:a}}function In(e,t){const n=ce(e,!0,t==="fixed"),o=n.top+e.clientTop,i=n.left+e.clientLeft,r=q(e)?me(e):X(1),l=e.clientWidth*r.x,s=e.clientHeight*r.y,a=i*r.x,c=o*r.y;return{width:l,height:s,x:a,y:c}}function gt(e,t,n){let o;if(t==="viewport")o=zn(e,n);else if(t==="document")o=Wn(J(e));else if(U(t))o=In(t,n);else{const i=$t(e);o={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return _e(o)}function Mt(e,t){const n=ae(e);return n===t||!U(n)||ve(n)?!1:Y(n).position==="fixed"||Mt(n,t)}function Vn(e,t){const n=t.get(e);if(n)return n;let o=we(e,[],!1).filter(s=>U(s)&&de(s)!=="body"),i=null;const r=Y(e).position==="fixed";let l=r?ae(e):e;for(;U(l)&&!ve(l);){const s=Y(l),a=et(l);!a&&s.position==="fixed"&&(i=null),(r?!a&&!i:!a&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Ce(l)&&!a&&Mt(e,l))?o=o.filter(u=>u!==l):i=s,l=ae(l)}return t.set(e,o),o}function jn(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const l=[...n==="clippingAncestors"?Fe(t)?[]:Vn(t,this._c):[].concat(n),o],s=l[0],a=l.reduce((c,u)=>{const d=gt(t,u,i);return c.top=W(d.top,c.top),c.right=re(d.right,c.right),c.bottom=re(d.bottom,c.bottom),c.left=W(d.left,c.left),c},gt(t,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Un(e){const{width:t,height:n}=_t(e);return{width:t,height:n}}function Yn(e,t,n){const o=q(t),i=J(t),r=n==="fixed",l=ce(e,!0,r,t);let s={scrollLeft:0,scrollTop:0};const a=X(0);if(o||!o&&!r)if((de(t)!=="body"||Ce(i))&&(s=He(t)),o){const m=ce(t,!0,r,t);a.x=m.x+t.clientLeft,a.y=m.y+t.clientTop}else i&&(a.x=ot(i));const c=i&&!o&&!r?Lt(i,s):X(0),u=l.left+s.scrollLeft-a.x-c.x,d=l.top+s.scrollTop-a.y-c.y;return{x:u,y:d,width:l.width,height:l.height}}function Ve(e){return Y(e).position==="static"}function yt(e,t){if(!q(e)||Y(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return J(e)===n&&(n=n.ownerDocument.body),n}function Nt(e,t){const n=z(e);if(Fe(e))return n;if(!q(e)){let i=ae(e);for(;i&&!ve(i);){if(U(i)&&!Ve(i))return i;i=ae(i)}return n}let o=yt(e,t);for(;o&&$n(o)&&Ve(o);)o=yt(o,t);return o&&ve(o)&&Ve(o)&&!et(o)?n:o||Ln(e)||n}const Gn=async function(e){const t=this.getOffsetParent||Nt,n=this.getDimensions,o=await n(e.floating);return{reference:Yn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Kn(e){return Y(e).direction==="rtl"}const Xn={convertOffsetParentRelativeRectToViewportRelativeRect:Fn,getDocumentElement:J,getClippingRect:jn,getOffsetParent:Nt,getElementRects:Gn,getClientRects:Hn,getDimensions:Un,getScale:me,isElement:U,isRTL:Kn};function Ft(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qn(e,t){let n=null,o;const i=J(e);function r(){var s;clearTimeout(o),(s=n)==null||s.disconnect(),n=null}function l(s,a){s===void 0&&(s=!1),a===void 0&&(a=1),r();const c=e.getBoundingClientRect(),{left:u,top:d,width:m,height:f}=c;if(s||t(),!m||!f)return;const p=De(d),g=De(i.clientWidth-(u+m)),v=De(i.clientHeight-(d+f)),h=De(u),b={rootMargin:-p+"px "+-g+"px "+-v+"px "+-h+"px",threshold:W(0,re(1,a))||1};let A=!0;function C(k){const E=k[0].intersectionRatio;if(E!==a){if(!A)return l();E?l(!1,E):o=setTimeout(()=>{l(!1,1e-7)},1e3)}E===1&&!Ft(c,e.getBoundingClientRect())&&l(),A=!1}try{n=new IntersectionObserver(C,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,b)}n.observe(e)}return l(!0),r}function Jn(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,c=nt(e),u=i||r?[...c?we(c):[],...we(t)]:[];u.forEach(h=>{i&&h.addEventListener("scroll",n,{passive:!0}),r&&h.addEventListener("resize",n)});const d=c&&s?qn(c,n):null;let m=-1,f=null;l&&(f=new ResizeObserver(h=>{let[w]=h;w&&w.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=f)==null||b.observe(t)})),n()}),c&&!a&&f.observe(c),f.observe(t));let p,g=a?ce(e):null;a&&v();function v(){const h=ce(e);g&&!Ft(g,h)&&n(),g=h,p=requestAnimationFrame(v)}return n(),()=>{var h;u.forEach(w=>{i&&w.removeEventListener("scroll",n),r&&w.removeEventListener("resize",n)}),d==null||d(),(h=f)==null||h.disconnect(),f=null,a&&cancelAnimationFrame(p)}}const Qn=Bn,Zn=Sn,bt=Pn,eo=_n,to=Tn,no=Dn,oo=Rn,io=(e,t,n)=>{const o=new Map,i={platform:Xn,...n},r={...i.platform,_c:o};return En(e,t,{...i,platform:r})};function ro(e){return e!=null&&typeof e=="object"&&"$el"in e}function Ge(e){if(ro(e)){const t=e.$el;return Ze(t)&&de(t)==="#comment"?null:t}return e}function pe(e){return typeof e=="function"?e():y(e)}function lo(e){return{name:"arrow",options:e,fn(t){const n=Ge(pe(e.element));return n==null?{}:no({element:n,padding:e.padding}).fn(t)}}}function Ht(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xt(e,t){const n=Ht(e);return Math.round(t*n)/n}function ao(e,t,n){n===void 0&&(n={});const o=n.whileElementsMounted,i=O(()=>{var E;return(E=pe(n.open))!=null?E:!0}),r=O(()=>pe(n.middleware)),l=O(()=>{var E;return(E=pe(n.placement))!=null?E:"bottom"}),s=O(()=>{var E;return(E=pe(n.strategy))!=null?E:"absolute"}),a=O(()=>{var E;return(E=pe(n.transform))!=null?E:!0}),c=O(()=>Ge(e.value)),u=O(()=>Ge(t.value)),d=P(0),m=P(0),f=P(s.value),p=P(l.value),g=wt({}),v=P(!1),h=O(()=>{const E={position:f.value,left:"0",top:"0"};if(!u.value)return E;const B=xt(u.value,d.value),L=xt(u.value,m.value);return a.value?{...E,transform:"translate("+B+"px, "+L+"px)",...Ht(u.value)>=1.5&&{willChange:"transform"}}:{position:f.value,left:B+"px",top:L+"px"}});let w;function b(){if(c.value==null||u.value==null)return;const E=i.value;io(c.value,u.value,{middleware:r.value,placement:l.value,strategy:s.value}).then(B=>{d.value=B.x,m.value=B.y,f.value=B.strategy,p.value=B.placement,g.value=B.middlewareData,v.value=E!==!1})}function A(){typeof w=="function"&&(w(),w=void 0)}function C(){if(A(),o===void 0){b();return}if(c.value!=null&&u.value!=null){w=o(c.value,u.value,b);return}}function k(){i.value||(v.value=!1)}return K([r,l,s,i],b,{flush:"sync"}),K([c,u],C,{flush:"sync"}),K(i,k,{flush:"sync"}),Ct()&&At(A),{x:fe(d),y:fe(m),strategy:fe(f),placement:fe(p),middlewareData:fe(g),isPositioned:fe(v),floatingStyles:h,update:b}}function Ae(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,o=Symbol(n);return[i=>{const r=qt(o,i);if(r||r===null)return r;throw new Error(`Injection \`${o.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},i=>(dn(o,i),i)]}function Wt(e,t,n){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),o.dispatchEvent(i)}function so(e,t){var n;const o=wt();return Z(()=>{o.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),Pt(o)}function We(e){return Ct()?(At(e),!0):!1}function uo(){const e=new Set,t=n=>{e.delete(n)};return{on:n=>{e.add(n);const o=()=>t(n);return We(o),{off:o}},off:t,trigger:(...n)=>Promise.all(Array.from(e).map(o=>o(...n)))}}function co(e){let t=!1,n;const o=cn(!0);return(...i)=>(t||(n=o.run(()=>e(...i)),t=!0),n)}function ue(e){return typeof e=="function"?e():y(e)}const Oe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const fo=e=>typeof e<"u",po=Object.prototype.toString,mo=e=>po.call(e)==="[object Object]",vo=()=>{};function ho(e,t=1e4){return un((n,o)=>{let i=ue(e),r;const l=()=>setTimeout(()=>{i=ue(e),o()},ue(t));return We(()=>{clearTimeout(r)}),{get(){return n(),i},set(s){i=s,o(),clearTimeout(r),r=l()}}})}function zt(e,t,n={}){const{immediate:o=!0}=n,i=P(!1);let r=null;function l(){r&&(clearTimeout(r),r=null)}function s(){i.value=!1,l()}function a(...c){l(),i.value=!0,r=setTimeout(()=>{i.value=!1,r=null,e(...c)},ue(t))}return o&&(i.value=!0,Oe&&a()),We(s),{isPending:Pt(i),start:a,stop:s}}function ze(e){var t;const n=ue(e);return(t=n==null?void 0:n.$el)!=null?t:n}const it=Oe?window:void 0;function Ke(...e){let t,n,o,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,i]=e,t=it):[t,n,o,i]=e,!t)return vo;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],l=()=>{r.forEach(u=>u()),r.length=0},s=(u,d,m,f)=>(u.addEventListener(d,m,f),()=>u.removeEventListener(d,m,f)),a=K(()=>[ze(t),ue(i)],([u,d])=>{if(l(),!u)return;const m=mo(d)?{...d}:d;r.push(...n.flatMap(f=>o.map(p=>s(u,f,p,m))))},{immediate:!0,flush:"post"}),c=()=>{a(),l()};return We(c),c}function go(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function yo(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:i=it,eventName:r="keydown",passive:l=!1,dedupe:s=!1}=o,a=go(t);return Ke(i,r,c=>{c.repeat&&ue(s)||a(c)&&n(c)},l)}function bo(){const e=P(!1),t=he();return t&&$e(()=>{e.value=!0},t),e}function xo(e){return JSON.parse(JSON.stringify(e))}function wo(e,t,n,o={}){var i,r,l;const{clone:s=!1,passive:a=!1,eventName:c,deep:u=!1,defaultValue:d,shouldEmit:m}=o,f=he(),p=n||(f==null?void 0:f.emit)||((i=f==null?void 0:f.$emit)==null?void 0:i.bind(f))||((l=(r=f==null?void 0:f.proxy)==null?void 0:r.$emit)==null?void 0:l.bind(f==null?void 0:f.proxy));let g=c;g=g||`update:${t.toString()}`;const v=b=>s?typeof s=="function"?s(b):xo(b):b,h=()=>fo(e[t])?v(e[t]):d,w=b=>{m?m(b)&&p(g,b):p(g,b)};if(a){const b=h(),A=P(b);let C=!1;return K(()=>e[t],k=>{C||(C=!0,A.value=v(k),Le(()=>C=!1))}),K(A,k=>{!C&&(k!==e[t]||u)&&w(k)},{deep:u}),A}else return O({get(){return h()},set(b){w(b)}})}function rt(e){return e?e.flatMap(t=>t.type===Be?rt(t.children):[t]):[]}const[Co,Li]=Ae("ConfigProvider");function Ao(e){const t=he(),n=t==null?void 0:t.type.emits,o={};return n!=null&&n.length||console.warn(`No emitted event found. Please check component: ${t==null?void 0:t.type.__name}`),n==null||n.forEach(i=>{o[on(Bt(i))]=(...r)=>e(i,...r)}),o}function It(e){const t=he(),n=Object.keys((t==null?void 0:t.type.props)??{}).reduce((i,r)=>{const l=(t==null?void 0:t.type.props[r]).default;return l!==void 0&&(i[r]=l),i},{}),o=nn(e);return O(()=>{const i={},r=(t==null?void 0:t.vnode.props)??{};return Object.keys(r).forEach(l=>{i[Bt(l)]=r[l]}),Object.keys({...n,...i}).reduce((l,s)=>(o.value[s]!==void 0&&(l[s]=o.value[s]),l),{})})}function Oo(e,t){const n=It(e),o=t?Ao(t):{};return O(()=>({...n.value,...o}))}function I(){const e=he(),t=P(),n=O(()=>{var l,s;return["#text","#comment"].includes((l=t.value)==null?void 0:l.$el.nodeName)?(s=t.value)==null?void 0:s.$el.nextElementSibling:ze(t)}),o=Object.assign({},e.exposed),i={};for(const l in e.props)Object.defineProperty(i,l,{enumerable:!0,configurable:!0,get:()=>e.props[l]});if(Object.keys(o).length>0)for(const l in o)Object.defineProperty(i,l,{enumerable:!0,configurable:!0,get:()=>o[l]});Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=i;function r(l){t.value=l,l&&(Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>l instanceof Element?l:l.$el}),e.exposed=i)}return{forwardRef:r,currentRef:t,currentElement:n}}function Eo(e,t){const n=ho(!1,300),o=P(null),i=uo();function r(){o.value=null,n.value=!1}function l(s,a){const c=s.currentTarget,u={x:s.clientX,y:s.clientY},d=Do(u,c.getBoundingClientRect()),m=Po(u,d),f=To(a.getBoundingClientRect()),p=Bo([...m,...f]);o.value=p,n.value=!0}return Z(s=>{if(e.value&&t.value){const a=u=>l(u,t.value),c=u=>l(u,e.value);e.value.addEventListener("pointerleave",a),t.value.addEventListener("pointerleave",c),s(()=>{var u,d;(u=e.value)==null||u.removeEventListener("pointerleave",a),(d=t.value)==null||d.removeEventListener("pointerleave",c)})}}),Z(s=>{var a;if(o.value){const c=u=>{var d,m;if(!o.value)return;const f=u.target,p={x:u.clientX,y:u.clientY},g=((d=e.value)==null?void 0:d.contains(f))||((m=t.value)==null?void 0:m.contains(f)),v=!ko(p,o.value),h=!!f.closest("[data-grace-area-trigger]");g?r():(v||h)&&(r(),i.trigger())};(a=e.value)==null||a.ownerDocument.addEventListener("pointermove",c),s(()=>{var u;return(u=e.value)==null?void 0:u.ownerDocument.removeEventListener("pointermove",c)})}}),{isPointerInTransit:n,onPointerExit:i.on}}function Do(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),r=Math.abs(t.left-e.x);switch(Math.min(n,o,i,r)){case r:return"left";case i:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Po(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function To(e){const{top:t,right:n,bottom:o,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:o},{x:i,y:o}]}function ko(e,t){const{x:n,y:o}=e;let i=!1;for(let r=0,l=t.length-1;r<t.length;l=r++){const s=t[r].x,a=t[r].y,c=t[l].x,u=t[l].y;a>o!=u>o&&n<(c-s)*(o-a)/(u-a)+s&&(i=!i)}return i}function Bo(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),So(t)}function So(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const i=e[o];for(;t.length>=2;){const r=t[t.length-1],l=t[t.length-2];if((r.x-l.x)*(i.y-l.y)>=(r.y-l.y)*(i.x-l.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const i=e[o];for(;n.length>=2;){const r=n[n.length-1],l=n[n.length-2];if((r.x-l.x)*(i.y-l.y)>=(r.y-l.y)*(i.x-l.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}let Ro=0;function _o(e,t="radix"){const n=Co({useId:void 0});return at?`${t}-${at()}`:n.useId?`${t}-${n.useId()}`:`${t}-${++Ro}`}function $o(e){const t=P(),n=O(()=>{var i;return((i=t.value)==null?void 0:i.width)??0}),o=O(()=>{var i;return((i=t.value)==null?void 0:i.height)??0});return $e(()=>{const i=ze(e);if(i){t.value={width:i.offsetWidth,height:i.offsetHeight};const r=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const s=l[0];let a,c;if("borderBoxSize"in s){const u=s.borderBoxSize,d=Array.isArray(u)?u[0]:u;a=d.inlineSize,c=d.blockSize}else a=i.offsetWidth,c=i.offsetHeight;t.value={width:a,height:c}});return r.observe(i,{box:"border-box"}),()=>r.unobserve(i)}else t.value=void 0}),{width:n,height:o}}function Lo(e,t){const n=P(e);function o(i){return t[n.value][i]??n.value}return{state:n,dispatch:i=>{n.value=o(i)}}}const Mo=R({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var o,i;if(!n.default)return null;const r=rt(n.default()),l=r.findIndex(u=>u.type!==Tt);if(l===-1)return r;const s=r[l];(o=s.props)==null||delete o.ref;const a=s.props?se(t,s.props):t;t.class&&(i=s.props)!=null&&i.class&&delete s.props.class;const c=tn(s,a);for(const u in a)u.startsWith("on")&&(c.props||(c.props={}),c.props[u]=a[u]);return r.length===1?c:(r[l]=c,r)}}}),ye=R({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const o=e.asChild?"template":e.as;return typeof o=="string"&&["area","img","input"].includes(o)?()=>Te(o,t):o!=="template"?()=>Te(e.as,t,{default:n.default}):()=>Te(Mo,t,{default:n.default})}});function No(e,t){var n;const o=P({}),i=P("none"),r=P(e),l=e.value?"mounted":"unmounted";let s;const a=((n=t.value)==null?void 0:n.ownerDocument.defaultView)??it,{state:c,dispatch:u}=Lo(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),d=v=>{var h;if(Oe){const w=new CustomEvent(v,{bubbles:!1,cancelable:!1});(h=t.value)==null||h.dispatchEvent(w)}};K(e,async(v,h)=>{var w;const b=h!==v;if(await Le(),b){const A=i.value,C=Pe(t.value);v?(u("MOUNT"),d("enter"),C==="none"&&d("after-enter")):C==="none"||((w=o.value)==null?void 0:w.display)==="none"?(u("UNMOUNT"),d("leave"),d("after-leave")):h&&A!==C?(u("ANIMATION_OUT"),d("leave")):(u("UNMOUNT"),d("after-leave"))}},{immediate:!0});const m=v=>{const h=Pe(t.value),w=h.includes(v.animationName),b=c.value==="mounted"?"enter":"leave";if(v.target===t.value&&w&&(d(`after-${b}`),u("ANIMATION_END"),!r.value)){const A=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",s=a==null?void 0:a.setTimeout(()=>{var C;((C=t.value)==null?void 0:C.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=A)})}v.target===t.value&&h==="none"&&u("ANIMATION_END")},f=v=>{v.target===t.value&&(i.value=Pe(t.value))},p=K(t,(v,h)=>{v?(o.value=getComputedStyle(v),v.addEventListener("animationstart",f),v.addEventListener("animationcancel",m),v.addEventListener("animationend",m)):(u("ANIMATION_END"),s!==void 0&&(a==null||a.clearTimeout(s)),h==null||h.removeEventListener("animationstart",f),h==null||h.removeEventListener("animationcancel",m),h==null||h.removeEventListener("animationend",m))},{immediate:!0}),g=K(c,()=>{const v=Pe(t.value);i.value=c.value==="mounted"?v:"none"});return sn(()=>{p(),g()}),{isPresent:O(()=>["mounted","unmountSuspended"].includes(c.value))}}function Pe(e){return e&&getComputedStyle(e).animationName||"none"}const Fo=R({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var o;const{present:i,forceMount:r}=Ot(e),l=P(),{isPresent:s}=No(i,l);n({present:s});let a=t.default({present:s});a=rt(a||[]);const c=he();if(a&&(a==null?void 0:a.length)>1){const u=(o=c==null?void 0:c.parent)!=null&&o.type.name?`<${c.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${u}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(d=>` - ${d}`).join(`
|
2 |
`)].join(`
|
3 |
`))}return()=>r.value||i.value||s.value?Te(t.default({present:s})[0],{ref:u=>{const d=ze(u);return typeof(d==null?void 0:d.hasAttribute)>"u"||(d!=null&&d.hasAttribute("data-radix-popper-content-wrapper")?l.value=d.firstElementChild:l.value=d),d}}):null}}),Ho=R({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=bo();return(n,o)=>y(t)||n.forceMount?(_(),F(Qt,{key:0,to:n.to,disabled:n.disabled},[$(n.$slots,"default")],8,["to","disabled"])):Jt("",!0)}}),Wo="dismissableLayer.pointerDownOutside",zo="dismissableLayer.focusOutside";function Vt(e,t){const n=t.closest("[data-dismissable-layer]"),o=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),i=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&o===n||i.indexOf(o)<i.indexOf(n))}function Io(e,t){var n;const o=((n=t==null?void 0:t.value)==null?void 0:n.ownerDocument)??(globalThis==null?void 0:globalThis.document),i=P(!1),r=P(()=>{});return Z(l=>{if(!Oe)return;const s=async c=>{const u=c.target;if(t!=null&&t.value){if(Vt(t.value,u)){i.value=!1;return}if(c.target&&!i.value){let d=function(){Wt(Wo,e,m)};const m={originalEvent:c};c.pointerType==="touch"?(o.removeEventListener("click",r.value),r.value=d,o.addEventListener("click",r.value,{once:!0})):d()}else o.removeEventListener("click",r.value);i.value=!1}},a=window.setTimeout(()=>{o.addEventListener("pointerdown",s)},0);l(()=>{window.clearTimeout(a),o.removeEventListener("pointerdown",s),o.removeEventListener("click",r.value)})}),{onPointerDownCapture:()=>i.value=!0}}function Vo(e,t){var n;const o=((n=t==null?void 0:t.value)==null?void 0:n.ownerDocument)??(globalThis==null?void 0:globalThis.document),i=P(!1);return Z(r=>{if(!Oe)return;const l=async s=>{t!=null&&t.value&&(await Le(),!(!t.value||Vt(t.value,s.target))&&s.target&&!i.value&&Wt(zo,e,{originalEvent:s}))};o.addEventListener("focusin",l),r(()=>o.removeEventListener("focusin",l))}),{onFocusCapture:()=>i.value=!0,onBlurCapture:()=>i.value=!1}}const Q=an({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),jo=R({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,o=t,{forwardRef:i,currentElement:r}=I(),l=O(()=>{var p;return((p=r.value)==null?void 0:p.ownerDocument)??globalThis.document}),s=O(()=>Q.layersRoot),a=O(()=>r.value?Array.from(s.value).indexOf(r.value):-1),c=O(()=>Q.layersWithOutsidePointerEventsDisabled.size>0),u=O(()=>{const p=Array.from(s.value),[g]=[...Q.layersWithOutsidePointerEventsDisabled].slice(-1),v=p.indexOf(g);return a.value>=v}),d=Io(async p=>{const g=[...Q.branches].some(v=>v==null?void 0:v.contains(p.target));!u.value||g||(o("pointerDownOutside",p),o("interactOutside",p),await Le(),p.defaultPrevented||o("dismiss"))},r),m=Vo(p=>{[...Q.branches].some(g=>g==null?void 0:g.contains(p.target))||(o("focusOutside",p),o("interactOutside",p),p.defaultPrevented||o("dismiss"))},r);yo("Escape",p=>{a.value===s.value.size-1&&(o("escapeKeyDown",p),p.defaultPrevented||o("dismiss"))});let f;return Z(p=>{r.value&&(n.disableOutsidePointerEvents&&(Q.layersWithOutsidePointerEventsDisabled.size===0&&(f=l.value.body.style.pointerEvents,l.value.body.style.pointerEvents="none"),Q.layersWithOutsidePointerEventsDisabled.add(r.value)),s.value.add(r.value),p(()=>{n.disableOutsidePointerEvents&&Q.layersWithOutsidePointerEventsDisabled.size===1&&(l.value.body.style.pointerEvents=f)}))}),Z(p=>{p(()=>{r.value&&(s.value.delete(r.value),Q.layersWithOutsidePointerEventsDisabled.delete(r.value))})}),(p,g)=>(_(),F(y(ye),{ref:y(i),"as-child":p.asChild,as:p.as,"data-dismissable-layer":"",style:Me({pointerEvents:c.value?u.value?"auto":"none":void 0}),onFocusCapture:y(m).onFocusCapture,onBlurCapture:y(m).onBlurCapture,onPointerdownCapture:y(d).onPointerDownCapture},{default:T(()=>[$(p.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}});co(()=>P([]));const[jt,Uo]=Ae("PopperRoot"),Yo=R({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=P();return Uo({anchor:t,onAnchorChange:n=>t.value=n}),(n,o)=>$(n.$slots,"default")}}),Go=R({__name:"PopperAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,{forwardRef:n,currentElement:o}=I(),i=jt();return Z(()=>{i.onAnchorChange(t.element??o.value)}),(r,l)=>(_(),F(y(ye),{ref:y(n),as:r.as,"as-child":r.asChild},{default:T(()=>[$(r.$slots,"default")]),_:3},8,["as","as-child"]))}});function Ko(e){return e!==null}function Xo(e){return{name:"transformOrigin",options:e,fn(t){var n,o,i;const{placement:r,rects:l,middlewareData:s}=t,a=((n=s.arrow)==null?void 0:n.centerOffset)!==0,c=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[d,m]=Xe(r),f={start:"0%",center:"50%",end:"100%"}[m],p=(((o=s.arrow)==null?void 0:o.x)??0)+c/2,g=(((i=s.arrow)==null?void 0:i.y)??0)+u/2;let v="",h="";return d==="bottom"?(v=a?f:`${p}px`,h=`${-u}px`):d==="top"?(v=a?f:`${p}px`,h=`${l.floating.height+u}px`):d==="right"?(v=`${-u}px`,h=a?f:`${g}px`):d==="left"&&(v=`${l.floating.width+u}px`,h=a?f:`${g}px`),{data:{x:v,y:h}}}}}function Xe(e){const[t,n="center"]=e.split("-");return[t,n]}const qo={side:"bottom",sideOffset:0,align:"center",alignOffset:0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,updatePositionStrategy:"optimized",prioritizePosition:!1},[Jo,Qo]=Ae("PopperContent"),Zo=R({inheritAttrs:!1,__name:"PopperContent",props:rn({side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},{...qo}),emits:["placed"],setup(e,{emit:t}){const n=e,o=t,i=jt(),{forwardRef:r,currentElement:l}=I(),s=P(),a=P(),{width:c,height:u}=$o(a),d=O(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),m=O(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),f=O(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),p=O(()=>({padding:m.value,boundary:f.value.filter(Ko),altBoundary:f.value.length>0})),g=so(()=>[Qn({mainAxis:n.sideOffset+u.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&bt({...p.value}),n.avoidCollisions&&Zn({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?oo():void 0,...p.value}),!n.prioritizePosition&&n.avoidCollisions&&bt({...p.value}),eo({...p.value,apply:({elements:D,rects:j,availableWidth:M,availableHeight:H})=>{const{width:S,height:ne}=j.reference,N=D.floating.style;N.setProperty("--radix-popper-available-width",`${M}px`),N.setProperty("--radix-popper-available-height",`${H}px`),N.setProperty("--radix-popper-anchor-width",`${S}px`),N.setProperty("--radix-popper-anchor-height",`${ne}px`)}}),a.value&&lo({element:a.value,padding:n.arrowPadding}),Xo({arrowWidth:c.value,arrowHeight:u.value}),n.hideWhenDetached&&to({strategy:"referenceHidden",...p.value})]),{floatingStyles:v,placement:h,isPositioned:w,middlewareData:b}=ao(i.anchor,s,{strategy:"fixed",placement:d,whileElementsMounted:(...D)=>Jn(...D,{animationFrame:n.updatePositionStrategy==="always"}),middleware:g}),A=O(()=>Xe(h.value)[0]),C=O(()=>Xe(h.value)[1]);ln(()=>{w.value&&o("placed")});const k=O(()=>{var D;return((D=b.value.arrow)==null?void 0:D.centerOffset)!==0}),E=P("");Z(()=>{l.value&&(E.value=window.getComputedStyle(l.value).zIndex)});const B=O(()=>{var D;return((D=b.value.arrow)==null?void 0:D.x)??0}),L=O(()=>{var D;return((D=b.value.arrow)==null?void 0:D.y)??0});return Qo({placedSide:A,onArrowChange:D=>a.value=D,arrowX:B,arrowY:L,shouldHideArrow:k}),(D,j)=>{var M,H,S;return _(),be("div",{ref_key:"floatingRef",ref:s,"data-radix-popper-content-wrapper":"",style:Me({...y(v),transform:y(w)?y(v).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:E.value,"--radix-popper-transform-origin":[(M=y(b).transformOrigin)==null?void 0:M.x,(H=y(b).transformOrigin)==null?void 0:H.y].join(" "),...((S=y(b).hide)==null?void 0:S.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[V(y(ye),se({ref:y(r)},D.$attrs,{"as-child":n.asChild,as:D.as,"data-side":A.value,"data-align":C.value,style:{animation:y(w)?void 0:"none"}}),{default:T(()=>[$(D.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),ei=x("polygon",{points:"0,0 30,0 15,10"},null,-1),ti=R({__name:"Arrow",props:{width:{default:10},height:{default:5},asChild:{type:Boolean},as:{default:"svg"}},setup(e){const t=e;return I(),(n,o)=>(_(),F(y(ye),se(t,{width:n.width,height:n.height,viewBox:n.asChild?void 0:"0 0 30 10",preserveAspectRatio:n.asChild?void 0:"none"}),{default:T(()=>[$(n.$slots,"default",{},()=>[ei])]),_:3},16,["width","height","viewBox","preserveAspectRatio"]))}}),ni={top:"bottom",right:"left",bottom:"top",left:"right"},oi=R({inheritAttrs:!1,__name:"PopperArrow",props:{width:{},height:{},asChild:{type:Boolean},as:{default:"svg"}},setup(e){const{forwardRef:t}=I(),n=Jo(),o=O(()=>ni[n.placedSide.value]);return(i,r)=>{var l,s,a,c;return _(),be("span",{ref:u=>{y(n).onArrowChange(u)},style:Me({position:"absolute",left:(l=y(n).arrowX)!=null&&l.value?`${(s=y(n).arrowX)==null?void 0:s.value}px`:void 0,top:(a=y(n).arrowY)!=null&&a.value?`${(c=y(n).arrowY)==null?void 0:c.value}px`:void 0,[o.value]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[y(n).placedSide.value],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[y(n).placedSide.value],visibility:y(n).shouldHideArrow.value?"hidden":void 0})},[V(ti,se(i.$attrs,{ref:y(t),style:{display:"block"},as:i.as,"as-child":i.asChild,width:i.width,height:i.height}),{default:T(()=>[$(i.$slots,"default")]),_:3},16,["as","as-child","width","height"])],4)}}}),ii=R({__name:"VisuallyHidden",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){return I(),(t,n)=>(_(),F(y(ye),{as:t.as,"as-child":t.asChild,style:{position:"absolute",border:0,width:"1px",display:"inline-block",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}},{default:T(()=>[$(t.$slots,"default")]),_:3},8,["as","as-child"]))}});function ri(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}ri();const Ut="tooltip.open",[lt,li]=Ae("TooltipProvider"),ai=R({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{default:700},skipDelayDuration:{default:300},disableHoverableContent:{type:Boolean,default:!1},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean,default:!1}},setup(e){const t=e,{delayDuration:n,skipDelayDuration:o,disableHoverableContent:i,disableClosingTrigger:r,ignoreNonKeyboardFocus:l,disabled:s}=Ot(t);I();const a=P(!0),c=P(!1),{start:u,stop:d}=zt(()=>{a.value=!0},o,{immediate:!1});return li({isOpenDelayed:a,delayDuration:n,onOpen(){d(),a.value=!1},onClose(){u()},isPointerInTransitRef:c,disableHoverableContent:i,disableClosingTrigger:r,disabled:s,ignoreNonKeyboardFocus:l}),(m,f)=>$(m.$slots,"default")}}),[Ie,si]=Ae("TooltipRoot"),ui=R({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},delayDuration:{default:void 0},disableHoverableContent:{type:Boolean,default:void 0},disableClosingTrigger:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,default:void 0}},emits:["update:open"],setup(e,{emit:t}){const n=e,o=t;I();const i=lt(),r=O(()=>n.disableHoverableContent??i.disableHoverableContent.value),l=O(()=>n.disableClosingTrigger??i.disableClosingTrigger.value),s=O(()=>n.disabled??i.disabled.value),a=O(()=>n.delayDuration??i.delayDuration.value),c=O(()=>n.ignoreNonKeyboardFocus??i.ignoreNonKeyboardFocus.value),u=wo(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0});K(u,b=>{i.onClose&&(b?(i.onOpen(),document.dispatchEvent(new CustomEvent(Ut))):i.onClose())});const d=P(!1),m=P(),f=O(()=>u.value?d.value?"delayed-open":"instant-open":"closed"),{start:p,stop:g}=zt(()=>{d.value=!0,u.value=!0},a,{immediate:!1});function v(){g(),d.value=!1,u.value=!0}function h(){g(),u.value=!1}function w(){p()}return si({contentId:"",open:u,stateAttribute:f,trigger:m,onTriggerChange(b){m.value=b},onTriggerEnter(){i.isOpenDelayed.value?w():v()},onTriggerLeave(){r.value?h():g()},onOpen:v,onClose:h,disableHoverableContent:r,disableClosingTrigger:l,disabled:s,ignoreNonKeyboardFocus:c}),(b,A)=>(_(),F(y(Yo),null,{default:T(()=>[$(b.$slots,"default",{open:y(u)})]),_:3}))}}),ci=R({__name:"TooltipTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=Ie(),o=lt();n.contentId||(n.contentId=_o(void 0,"radix-vue-tooltip-content"));const{forwardRef:i,currentElement:r}=I(),l=P(!1),s=P(!1),a=O(()=>n.disabled.value?{}:{click:g,focus:f,pointermove:d,pointerleave:m,pointerdown:u,blur:p});$e(()=>{n.onTriggerChange(r.value)});function c(){setTimeout(()=>{l.value=!1},1)}function u(){l.value=!0,document.addEventListener("pointerup",c,{once:!0})}function d(v){v.pointerType!=="touch"&&!s.value&&!o.isPointerInTransitRef.value&&(n.onTriggerEnter(),s.value=!0)}function m(){n.onTriggerLeave(),s.value=!1}function f(v){var h,w;l.value||n.ignoreNonKeyboardFocus.value&&!((w=(h=v.target).matches)!=null&&w.call(h,":focus-visible"))||n.onOpen()}function p(){n.onClose()}function g(){n.disableClosingTrigger.value||n.onClose()}return(v,h)=>(_(),F(y(Go),{"as-child":""},{default:T(()=>[V(y(ye),se({ref:y(i),"aria-describedby":y(n).open.value?y(n).contentId:void 0,"data-state":y(n).stateAttribute.value,as:v.as,"as-child":t.asChild,"data-grace-area-trigger":""},Kt(a.value)),{default:T(()=>[$(v.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3}))}}),Yt=R({__name:"TooltipContentImpl",props:{ariaLabel:{},asChild:{type:Boolean},as:{},side:{default:"top"},sideOffset:{default:0},align:{default:"center"},alignOffset:{},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{default:()=>[]},collisionPadding:{default:0},arrowPadding:{default:0},sticky:{default:"partial"},hideWhenDetached:{type:Boolean,default:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,i=Ie(),{forwardRef:r}=I(),l=Zt(),s=O(()=>{var u;return(u=l.default)==null?void 0:u.call(l)}),a=O(()=>{var u;if(n.ariaLabel)return n.ariaLabel;let d="";function m(f){typeof f.children=="string"&&f.type!==Tt?d+=f.children:Array.isArray(f.children)&&f.children.forEach(p=>m(p))}return(u=s.value)==null||u.forEach(f=>m(f)),d}),c=O(()=>{const{ariaLabel:u,...d}=n;return d});return $e(()=>{Ke(window,"scroll",u=>{const d=u.target;d!=null&&d.contains(i.trigger.value)&&i.onClose()}),Ke(window,Ut,i.onClose)}),(u,d)=>(_(),F(y(jo),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:d[0]||(d[0]=m=>o("escapeKeyDown",m)),onPointerDownOutside:d[1]||(d[1]=m=>{var f;y(i).disableClosingTrigger.value&&(f=y(i).trigger.value)!=null&&f.contains(m.target)&&m.preventDefault(),o("pointerDownOutside",m)}),onFocusOutside:d[2]||(d[2]=en(()=>{},["prevent"])),onDismiss:d[3]||(d[3]=m=>y(i).onClose())},{default:T(()=>[V(y(Zo),se({ref:y(r),"data-state":y(i).stateAttribute.value},{...u.$attrs,...c.value},{style:{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:T(()=>[$(u.$slots,"default"),V(y(ii),{id:y(i).contentId,role:"tooltip"},{default:T(()=>[kt(ke(a.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),di=R({__name:"TooltipContentHoverable",props:{ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},setup(e){const t=It(e),{forwardRef:n,currentElement:o}=I(),{trigger:i,onClose:r}=Ie(),l=lt(),{isPointerInTransit:s,onPointerExit:a}=Eo(i,o);return l.isPointerInTransitRef=s,a(()=>{r()}),(c,u)=>(_(),F(Yt,se({ref:y(n)},y(t)),{default:T(()=>[$(c.$slots,"default")]),_:3},16))}}),fi=R({__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{default:"top"},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,i=Ie(),r=Oo(n,o),{forwardRef:l}=I();return(s,a)=>(_(),F(y(Fo),{present:s.forceMount||y(i).open.value},{default:T(()=>[(_(),F(Xt(y(i).disableHoverableContent.value?Yt:di),se({ref:y(l)},y(r)),{default:T(()=>[$(s.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),pi=R({__name:"TooltipArrow",props:{width:{default:10},height:{default:5},asChild:{type:Boolean},as:{default:"svg"}},setup(e){const t=e;return I(),(n,o)=>(_(),F(y(oi),Et(Dt(t)),{default:T(()=>[$(n.$slots,"default")]),_:3},16))}}),mi=R({__name:"TooltipPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,o)=>(_(),F(y(Ho),Et(Dt(t)),{default:T(()=>[$(n.$slots,"default")]),_:3},16))}}),vi={flex:"~ row","items-center":"","gap-2":""},hi={"flex-col":""},gi=["onClick"],yi={"p-4":""},bi={flex:"~ col gap-4"},xi=["disabled"],wi={"mt-4":"",class:"flex items-center justify-end gap-4"},Ci={class:"relative inline-flex cursor-pointer items-center"},Ai=["onClick"],Oi={"p-4":"",flex:"~ col gap-4"},Ei={"text-base":"","font-medium":""},Di={text:"sm neutral-500"},Pi={flex:"~ row","gap-2":""},Ti=["onClick"],ki=R({__name:"index",setup(e){const t=fn(),n=pn(),o=[{name:"Morandi Colors",description:"Soft, muted tones inspired by Giorgio Morandi's paintings",colors:[{hex:"#A5978B",name:"Taupe"},{hex:"#D8CAAF",name:"Beige"},{hex:"#B8B4A7",name:"Ash Grey"},{hex:"#C4BCB1",name:"Light Taupe"},{hex:"#E5DED8",name:"Ivory"},{hex:"#9A8F7D",name:"Olive Grey"},{hex:"#BEB5A7",name:"Sand"},{hex:"#C9C0B6",name:"Warm Grey"}]},{name:"Monet Colors",description:"Impressionist palette inspired by Claude Monet's works",colors:[{hex:"#7A9EAF",name:"Sky Blue"},{hex:"#B8C7CC",name:"Mist"},{hex:"#D4B79C",name:"Sand"},{hex:"#8B9D77",name:"Moss Green"},{hex:"#C7D5CB",name:"Water Lily"},{hex:"#E6D0B1",name:"Wheat"},{hex:"#94A7B1",name:"Slate Blue"},{hex:"#B4C8C3",name:"Sage"}]},{name:"Japanese Colors",description:"Traditional Japanese color palette",colors:[{hex:"#D9B48F",name:"Tan"},{hex:"#B5917A",name:"Warm Taupe"},{hex:"#8C7A6B",name:"Umber"},{hex:"#A17F5F",name:"Coffee"},{hex:"#B98C46",name:"Bronze"},{hex:"#C7A252",name:"Gold"},{hex:"#DAB300",name:"Mustard"},{hex:"#D19826",name:"Amber"}]},{name:"Nordic Colors",description:"Scandinavian minimalist color scheme",colors:[{hex:"#9BA7B0",name:"Nordic Blue"},{hex:"#C1CBD4",name:"Ice"},{hex:"#A5ADB6",name:"Fjord"},{hex:"#8B959E",name:"Steel"},{hex:"#D4DCE4",name:"Glacier"},{hex:"#7F8A94",name:"Slate"},{hex:"#B3BCC6",name:"Cloud"},{hex:"#98A4AE",name:"Stone"}]},{name:"Chinese Traditional Colors",description:"Traditional Chinese colors, derived from ancient textiles, porcelain and paintings",colors:[{hex:"#E4C6D0",name:"霞光红 (Rosy Dawn)"},{hex:"#A61B29",name:"枣红 (Chinese Red)"},{hex:"#5D513C",name:"黄栌 (Smoky Brown)"},{hex:"#789262",name:"竹青 (Bamboo Green)"},{hex:"#1C0D1A",name:"乌梅紫 (Dark Purple)"},{hex:"#F7C242",name:"缃色 (Golden Yellow)"},{hex:"#62A9DD",name:"青冥 (Azure Blue)"},{hex:"#8C4B3C",name:"赭石 (Ochre)"}]}];function i(){n.themeColorsHue=hn,n.themeColorsHueDynamic=!1}function r(s){const a=dt("oklch")(s);if(!a)return;const{h:c}=a;c&&(n.themeColorsHue=c,n.themeColorsHueDynamic=!1)}function l(s){if(n.themeColorsHueDynamic)return!1;const a=dt("oklch")(s);if(!a||!a.h)return!1;const c=Math.abs(a.h-n.themeColorsHue);return c<.01||c>359.99}return(s,a)=>(_(),be(Be,null,[x("div",vi,[x("button",{onClick:a[0]||(a[0]=c=>y(t).back())},a[3]||(a[3]=[x("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),a[4]||(a[4]=x("h1",{relative:""},[x("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[x("span",{text:"neutral-300 dark:neutral-500"},"Settings")]),x("div",{"text-3xl":"","font-semibold":""}," Themes ")],-1))]),x("div",hi,[V(y(ct),{"mt-4":"","w-full":"",default:!0},{trigger:T(c=>[x("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:u=>c.setVisible(!c.visible)},[a[6]||(a[6]=x("div",{flex:"~ row 1","items-center":"","gap-1.5":""},[x("div",{"i-solar:pallete-2-bold-duotone":"",class:"provider-icon size-6",transition:"filter duration-250 ease-in-out"}),x("div",null," Custom Colors ")],-1)),x("div",{transform:"",transition:"transform duration-250",class:Ee({"rotate-180":c.visible})},a[5]||(a[5]=[x("div",{"i-solar:alt-arrow-down-bold-duotone":""},null,-1)]),2)],8,gi)]),default:T(()=>[x("div",yi,[a[11]||(a[11]=x("div",{class:"mb-2 text-sm font-medium"}," Primary color ",-1)),x("div",bi,[st(x("input",{"onUpdate:modelValue":a[1]||(a[1]=c=>y(n).themeColorsHue=c),type:"range",min:"0",max:"360",step:"0.01",class:Ee(["theme-hue-slider h-10 w-full",{"opacity-25 cursor-not-allowed":y(n).themeColorsHueDynamic}]),disabled:y(n).themeColorsHueDynamic},null,10,xi),[[mn,y(n).themeColorsHue]]),a[7]||(a[7]=x("div",{"h-10":"","w-full":"",flex:"","overflow-hidden":"","rounded-lg":""},[x("div",{bg:"primary-50",class:"primary-color-bar","text-black":""}," 50 "),x("div",{bg:"primary-100",class:"primary-color-bar","text-black":""}," 100 "),x("div",{bg:"primary-200",class:"primary-color-bar","text-black":""}," 200 "),x("div",{bg:"primary-300",class:"primary-color-bar","text-black":""}," 300 "),x("div",{bg:"primary-400",class:"primary-color-bar","text-black":""}," 400 "),x("div",{bg:"primary-500",class:"primary-color-bar","text-black":""}," 500 "),x("div",{bg:"primary-600",class:"primary-color-bar","text-white":""}," 600 "),x("div",{bg:"primary-700",class:"primary-color-bar","text-white":""}," 700 "),x("div",{bg:"primary-800",class:"primary-color-bar","text-white":""}," 800 "),x("div",{bg:"primary-900",class:"primary-color-bar","text-white":""}," 900 "),x("div",{bg:"primary-950",class:"primary-color-bar","text-white":""}," 950 ")],-1)),a[8]||(a[8]=x("div",{"h-10":"","w-full":"",flex:"","overflow-hidden":"","rounded-lg":"",class:"transparency-grid"},[x("div",{bg:"primary-500/5",class:"primary-color-bar","text-black":""}," 500/5 "),x("div",{bg:"primary-500/10",class:"primary-color-bar","text-black":""}," 500/10 "),x("div",{bg:"primary-500/20",class:"primary-color-bar","text-black":""}," 500/20 "),x("div",{bg:"primary-500/30",class:"primary-color-bar","text-black":""}," 500/30 "),x("div",{bg:"primary-500/40",class:"primary-color-bar","text-black":""}," 500/40 "),x("div",{bg:"primary-500/50",class:"primary-color-bar","text-black":""}," 500/50 "),x("div",{bg:"primary-500/60",class:"primary-color-bar","text-black":""}," 500/60 "),x("div",{bg:"primary-500/70",class:"primary-color-bar","text-black":""}," 500/70 "),x("div",{bg:"primary-500/80",class:"primary-color-bar","text-black":""}," 500/80 "),x("div",{bg:"primary-500/90",class:"primary-color-bar","text-black":""}," 500/90 "),x("div",{bg:"primary-500",class:"primary-color-bar","text-black":""}," 500 ")],-1))]),x("div",wi,[x("label",Ci,[st(x("input",{"onUpdate:modelValue":a[2]||(a[2]=c=>y(n).themeColorsHueDynamic=c),type:"checkbox",class:"peer sr-only"},null,512),[[vn,y(n).themeColorsHueDynamic]]),a[9]||(a[9]=x("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)),a[10]||(a[10]=x("span",{class:"ml-2 text-sm font-medium"},"I Want It Dynamic!",-1))]),x("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:i}," Reset to Default ")])])]),_:1}),V(y(ct),{"mt-4":"","w-full":"",default:!0},{trigger:T(c=>[x("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:u=>c.setVisible(!c.visible)},[a[13]||(a[13]=x("div",{flex:"~ row 1","items-center":"","gap-1.5":""},[x("div",{"i-solar:magic-stick-2-bold-duotone":"",class:"provider-icon size-6",transition:"filter duration-250 ease-in-out"}),x("div",null," Theme Presets ")],-1)),x("div",{transform:"",transition:"transform duration-250",class:Ee({"rotate-180":c.visible})},a[12]||(a[12]=[x("div",{"i-solar:alt-arrow-down-bold-duotone":""},null,-1)]),2)],8,Ai)]),default:T(()=>[x("div",Oi,[(_(),be(Be,null,ut(o,c=>x("div",{key:c.name,flex:"~ row",bg:"neutral-100 dark:neutral-800",hover:"bg-neutral-200 dark:bg-neutral-700",transition:"all ease-in-out duration-250","cursor-pointer":"","items-center":"","justify-between":"","gap-4":"","rounded-lg":"","px-4":"","py-3":""},[x("div",null,[x("div",Ei,ke(c.name),1),x("div",Di,ke(c.description),1)]),x("div",Pi,[(_(!0),be(Be,null,ut(c.colors,u=>(_(),F(y(ai),{key:u.hex},{default:T(()=>[V(y(ui),null,{default:T(()=>[V(y(ci),null,{default:T(()=>[x("div",{style:Me({backgroundColor:u.hex}),class:Ee(["size-6 cursor-pointer rounded-full transition-all duration-250 ease-in-out",[l(u.hex)?"scale-150 z-10 mx-1":"hover:scale-110"]]),onClick:d=>r(u.hex)},null,14,Ti)]),_:2},1024),V(y(mi),null,{default:T(()=>[V(y(fi),{class:"rounded-lg bg-white px-3 py-1.5 text-sm shadow-md dark:bg-neutral-800"},{default:T(()=>[kt(ke(u.name)+" ",1),V(y(pi),{class:"fill-white dark:fill-neutral-800"})]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))])])),64))])]),_:1})]),a[14]||(a[14]=x("div",{fixed:"","bottom-0":"","right-0":"","z--1":"",text:"neutral-100/80 dark:neutral-500/20"},[x("div",{text:"40","i-lucide:paintbrush":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});typeof ft=="function"&&ft(ki);export{ki as default};
|
|
|
1 |
+
import{h as O,g as P,K as wt,w as K,L as Ct,M as At,N as fe,e as y,d as R,O as Ot,f as $,j as F,o as _,k as T,p as $e,b as V,P as se,Q as Kt,S as Et,U as Dt,V as Xt,W as he,X as Pt,Y as qt,Z as Le,$ as at,a0 as Te,a1 as Z,m as Jt,a2 as Qt,a3 as Zt,a4 as Tt,J as kt,t as ke,D as en,c as be,n as Me,a5 as tn,a6 as nn,a7 as Bt,a8 as on,a9 as rn,aa as ln,ab as an,ac as sn,F as Be,a as x,ad as un,ae as cn,af as dn,s as fn,y as pn,z as st,q as Ee,E as mn,A as vn,C as ut,ag as hn}from"./index-CZFG0-fG.js";import{_ as ct}from"./Collapsable.vue_vue_type_script_setup_true_lang-Bs33xSnT.js";import{c as dt}from"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-DorTQKuH.js";import{b as ft}from"./route-block-B_A1xBdJ.js";import"./TransitionVertical.vue_vue_type_script_setup_true_lang-Bm2UDzd0.js";const gn=["top","right","bottom","left"],re=Math.min,W=Math.max,Se=Math.round,De=Math.floor,X=e=>({x:e,y:e}),yn={left:"right",right:"left",bottom:"top",top:"bottom"},bn={start:"end",end:"start"};function je(e,t,n){return W(e,re(t,n))}function ee(e,t){return typeof e=="function"?e(t):e}function te(e){return e.split("-")[0]}function ge(e){return e.split("-")[1]}function qe(e){return e==="x"?"y":"x"}function Je(e){return e==="y"?"height":"width"}function le(e){return["top","bottom"].includes(te(e))?"y":"x"}function Qe(e){return qe(le(e))}function xn(e,t,n){n===void 0&&(n=!1);const o=ge(e),i=Qe(e),r=Je(i);let l=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(l=Re(l)),[l,Re(l)]}function wn(e){const t=Re(e);return[Ue(e),t,Ue(t)]}function Ue(e){return e.replace(/start|end/g,t=>bn[t])}function Cn(e,t,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:o:t?o:i;case"left":case"right":return t?r:l;default:return[]}}function An(e,t,n,o){const i=ge(e);let r=Cn(te(e),n==="start",o);return i&&(r=r.map(l=>l+"-"+i),t&&(r=r.concat(r.map(Ue)))),r}function Re(e){return e.replace(/left|right|bottom|top/g,t=>yn[t])}function On(e){return{top:0,right:0,bottom:0,left:0,...e}}function St(e){return typeof e!="number"?On(e):{top:e,right:e,bottom:e,left:e}}function _e(e){const{x:t,y:n,width:o,height:i}=e;return{width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}function pt(e,t,n){let{reference:o,floating:i}=e;const r=le(t),l=Qe(t),s=Je(l),a=te(t),c=r==="y",u=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,m=o[s]/2-i[s]/2;let f;switch(a){case"top":f={x:u,y:o.y-i.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-i.width,y:d};break;default:f={x:o.x,y:o.y}}switch(ge(t)){case"start":f[l]-=m*(n&&c?-1:1);break;case"end":f[l]+=m*(n&&c?-1:1);break}return f}const En=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,s=r.filter(Boolean),a=await(l.isRTL==null?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=pt(c,o,a),m=o,f={},p=0;for(let g=0;g<s.length;g++){const{name:v,fn:h}=s[g],{x:w,y:b,data:A,reset:C}=await h({x:u,y:d,initialPlacement:o,placement:m,strategy:i,middlewareData:f,rects:c,platform:l,elements:{reference:e,floating:t}});u=w??u,d=b??d,f={...f,[v]:{...f[v],...A}},C&&p<=50&&(p++,typeof C=="object"&&(C.placement&&(m=C.placement),C.rects&&(c=C.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):C.rects),{x:u,y:d}=pt(c,m,a)),g=-1)}return{x:u,y:d,placement:m,strategy:i,middlewareData:f}};async function xe(e,t){var n;t===void 0&&(t={});const{x:o,y:i,platform:r,rects:l,elements:s,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:f=0}=ee(t,e),p=St(f),v=s[m?d==="floating"?"reference":"floating":d],h=_e(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(v)))==null||n?v:v.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:a})),w=d==="floating"?{x:o,y:i,width:l.floating.width,height:l.floating.height}:l.reference,b=await(r.getOffsetParent==null?void 0:r.getOffsetParent(s.floating)),A=await(r.isElement==null?void 0:r.isElement(b))?await(r.getScale==null?void 0:r.getScale(b))||{x:1,y:1}:{x:1,y:1},C=_e(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:b,strategy:a}):w);return{top:(h.top-C.top+p.top)/A.y,bottom:(C.bottom-h.bottom+p.bottom)/A.y,left:(h.left-C.left+p.left)/A.x,right:(C.right-h.right+p.right)/A.x}}const Dn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:r,platform:l,elements:s,middlewareData:a}=t,{element:c,padding:u=0}=ee(e,t)||{};if(c==null)return{};const d=St(u),m={x:n,y:o},f=Qe(i),p=Je(f),g=await l.getDimensions(c),v=f==="y",h=v?"top":"left",w=v?"bottom":"right",b=v?"clientHeight":"clientWidth",A=r.reference[p]+r.reference[f]-m[f]-r.floating[p],C=m[f]-r.reference[f],k=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c));let E=k?k[b]:0;(!E||!await(l.isElement==null?void 0:l.isElement(k)))&&(E=s.floating[b]||r.floating[p]);const B=A/2-C/2,L=E/2-g[p]/2-1,D=re(d[h],L),j=re(d[w],L),M=D,H=E-g[p]-j,S=E/2-g[p]/2+B,ne=je(M,S,H),N=!a.arrow&&ge(i)!=null&&S!==ne&&r.reference[p]/2-(S<M?D:j)-g[p]/2<0,G=N?S<M?S-M:S-H:0;return{[f]:m[f]+G,data:{[f]:ne,centerOffset:S-ne-G,...N&&{alignmentOffset:G}},reset:N}}}),Pn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:r,rects:l,initialPlacement:s,platform:a,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...v}=ee(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const h=te(i),w=le(s),b=te(s)===s,A=await(a.isRTL==null?void 0:a.isRTL(c.floating)),C=m||(b||!g?[Re(s)]:wn(s)),k=p!=="none";!m&&k&&C.push(...An(s,g,p,A));const E=[s,...C],B=await xe(t,v),L=[];let D=((o=r.flip)==null?void 0:o.overflows)||[];if(u&&L.push(B[h]),d){const S=xn(i,l,A);L.push(B[S[0]],B[S[1]])}if(D=[...D,{placement:i,overflows:L}],!L.every(S=>S<=0)){var j,M;const S=(((j=r.flip)==null?void 0:j.index)||0)+1,ne=E[S];if(ne)return{data:{index:S,overflows:D},reset:{placement:ne}};let N=(M=D.filter(G=>G.overflows[0]<=0).sort((G,oe)=>G.overflows[1]-oe.overflows[1])[0])==null?void 0:M.placement;if(!N)switch(f){case"bestFit":{var H;const G=(H=D.filter(oe=>{if(k){const ie=le(oe.placement);return ie===w||ie==="y"}return!0}).map(oe=>[oe.placement,oe.overflows.filter(ie=>ie>0).reduce((ie,Gt)=>ie+Gt,0)]).sort((oe,ie)=>oe[1]-ie[1])[0])==null?void 0:H[0];G&&(N=G);break}case"initialPlacement":N=s;break}if(i!==N)return{reset:{placement:N}}}return{}}}};function mt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function vt(e){return gn.some(t=>e[t]>=0)}const Tn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...i}=ee(e,t);switch(o){case"referenceHidden":{const r=await xe(t,{...i,elementContext:"reference"}),l=mt(r,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:vt(l)}}}case"escaped":{const r=await xe(t,{...i,altBoundary:!0}),l=mt(r,n.floating);return{data:{escapedOffsets:l,escaped:vt(l)}}}default:return{}}}}};async function kn(e,t){const{placement:n,platform:o,elements:i}=e,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),l=te(n),s=ge(n),a=le(n)==="y",c=["left","top"].includes(l)?-1:1,u=r&&a?-1:1,d=ee(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof p=="number"&&(f=s==="end"?p*-1:p),a?{x:f*u,y:m*c}:{x:m*c,y:f*u}}const Bn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:r,placement:l,middlewareData:s}=t,a=await kn(t,e);return l===((n=s.offset)==null?void 0:n.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:i+a.x,y:r+a.y,data:{...a,placement:l}}}}},Sn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:r=!0,crossAxis:l=!1,limiter:s={fn:v=>{let{x:h,y:w}=v;return{x:h,y:w}}},...a}=ee(e,t),c={x:n,y:o},u=await xe(t,a),d=le(te(i)),m=qe(d);let f=c[m],p=c[d];if(r){const v=m==="y"?"top":"left",h=m==="y"?"bottom":"right",w=f+u[v],b=f-u[h];f=je(w,f,b)}if(l){const v=d==="y"?"top":"left",h=d==="y"?"bottom":"right",w=p+u[v],b=p-u[h];p=je(w,p,b)}const g=s.fn({...t,[m]:f,[d]:p});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[m]:r,[d]:l}}}}}},Rn=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:r,middlewareData:l}=t,{offset:s=0,mainAxis:a=!0,crossAxis:c=!0}=ee(e,t),u={x:n,y:o},d=le(i),m=qe(d);let f=u[m],p=u[d];const g=ee(s,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(a){const b=m==="y"?"height":"width",A=r.reference[m]-r.floating[b]+v.mainAxis,C=r.reference[m]+r.reference[b]-v.mainAxis;f<A?f=A:f>C&&(f=C)}if(c){var h,w;const b=m==="y"?"width":"height",A=["top","left"].includes(te(i)),C=r.reference[d]-r.floating[b]+(A&&((h=l.offset)==null?void 0:h[d])||0)+(A?0:v.crossAxis),k=r.reference[d]+r.reference[b]+(A?0:((w=l.offset)==null?void 0:w[d])||0)-(A?v.crossAxis:0);p<C?p=C:p>k&&(p=k)}return{[m]:f,[d]:p}}}},_n=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:i,rects:r,platform:l,elements:s}=t,{apply:a=()=>{},...c}=ee(e,t),u=await xe(t,c),d=te(i),m=ge(i),f=le(i)==="y",{width:p,height:g}=r.floating;let v,h;d==="top"||d==="bottom"?(v=d,h=m===(await(l.isRTL==null?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(h=d,v=m==="end"?"top":"bottom");const w=g-u.top-u.bottom,b=p-u.left-u.right,A=re(g-u[v],w),C=re(p-u[h],b),k=!t.middlewareData.shift;let E=A,B=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(B=b),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(E=w),k&&!m){const D=W(u.left,0),j=W(u.right,0),M=W(u.top,0),H=W(u.bottom,0);f?B=p-2*(D!==0||j!==0?D+j:W(u.left,u.right)):E=g-2*(M!==0||H!==0?M+H:W(u.top,u.bottom))}await a({...t,availableWidth:B,availableHeight:E});const L=await l.getDimensions(s.floating);return p!==L.width||g!==L.height?{reset:{rects:!0}}:{}}}};function Ne(){return typeof window<"u"}function de(e){return Ze(e)?(e.nodeName||"").toLowerCase():"#document"}function z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function J(e){var t;return(t=(Ze(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ze(e){return Ne()?e instanceof Node||e instanceof z(e).Node:!1}function U(e){return Ne()?e instanceof Element||e instanceof z(e).Element:!1}function q(e){return Ne()?e instanceof HTMLElement||e instanceof z(e).HTMLElement:!1}function ht(e){return!Ne()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof z(e).ShadowRoot}function Ce(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}function $n(e){return["table","td","th"].includes(de(e))}function Fe(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function et(e){const t=tt(),n=U(e)?Y(e):e;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Ln(e){let t=ae(e);for(;q(t)&&!ve(t);){if(et(t))return t;if(Fe(t))return null;t=ae(t)}return null}function tt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ve(e){return["html","body","#document"].includes(de(e))}function Y(e){return z(e).getComputedStyle(e)}function He(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ae(e){if(de(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ht(e)&&e.host||J(e);return ht(t)?t.host:t}function Rt(e){const t=ae(e);return ve(t)?e.ownerDocument?e.ownerDocument.body:e.body:q(t)&&Ce(t)?t:Rt(t)}function we(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Rt(e),r=i===((o=e.ownerDocument)==null?void 0:o.body),l=z(i);if(r){const s=Ye(l);return t.concat(l,l.visualViewport||[],Ce(i)?i:[],s&&n?we(s):[])}return t.concat(i,we(i,[],n))}function Ye(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _t(e){const t=Y(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=q(e),r=i?e.offsetWidth:n,l=i?e.offsetHeight:o,s=Se(n)!==r||Se(o)!==l;return s&&(n=r,o=l),{width:n,height:o,$:s}}function nt(e){return U(e)?e:e.contextElement}function me(e){const t=nt(e);if(!q(t))return X(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=_t(t);let l=(r?Se(n.width):n.width)/o,s=(r?Se(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const Mn=X(0);function $t(e){const t=z(e);return!tt()||!t.visualViewport?Mn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Nn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==z(e)?!1:t}function ce(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=nt(e);let l=X(1);t&&(o?U(o)&&(l=me(o)):l=me(e));const s=Nn(r,n,o)?$t(r):X(0);let a=(i.left+s.x)/l.x,c=(i.top+s.y)/l.y,u=i.width/l.x,d=i.height/l.y;if(r){const m=z(r),f=o&&U(o)?z(o):o;let p=m,g=Ye(p);for(;g&&o&&f!==p;){const v=me(g),h=g.getBoundingClientRect(),w=Y(g),b=h.left+(g.clientLeft+parseFloat(w.paddingLeft))*v.x,A=h.top+(g.clientTop+parseFloat(w.paddingTop))*v.y;a*=v.x,c*=v.y,u*=v.x,d*=v.y,a+=b,c+=A,p=z(g),g=Ye(p)}}return _e({width:u,height:d,x:a,y:c})}function ot(e,t){const n=He(e).scrollLeft;return t?t.left+n:ce(J(e)).left+n}function Lt(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=o.left+t.scrollLeft-(n?0:ot(e,o)),r=o.top+t.scrollTop;return{x:i,y:r}}function Fn(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e;const r=i==="fixed",l=J(o),s=t?Fe(t.floating):!1;if(o===l||s&&r)return n;let a={scrollLeft:0,scrollTop:0},c=X(1);const u=X(0),d=q(o);if((d||!d&&!r)&&((de(o)!=="body"||Ce(l))&&(a=He(o)),q(o))){const f=ce(o);c=me(o),u.x=f.x+o.clientLeft,u.y=f.y+o.clientTop}const m=l&&!d&&!r?Lt(l,a,!0):X(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x+m.x,y:n.y*c.y-a.scrollTop*c.y+u.y+m.y}}function Hn(e){return Array.from(e.getClientRects())}function Wn(e){const t=J(e),n=He(e),o=e.ownerDocument.body,i=W(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=W(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+ot(e);const s=-n.scrollTop;return Y(o).direction==="rtl"&&(l+=W(t.clientWidth,o.clientWidth)-i),{width:i,height:r,x:l,y:s}}function zn(e,t){const n=z(e),o=J(e),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,s=0,a=0;if(i){r=i.width,l=i.height;const c=tt();(!c||c&&t==="fixed")&&(s=i.offsetLeft,a=i.offsetTop)}return{width:r,height:l,x:s,y:a}}function In(e,t){const n=ce(e,!0,t==="fixed"),o=n.top+e.clientTop,i=n.left+e.clientLeft,r=q(e)?me(e):X(1),l=e.clientWidth*r.x,s=e.clientHeight*r.y,a=i*r.x,c=o*r.y;return{width:l,height:s,x:a,y:c}}function gt(e,t,n){let o;if(t==="viewport")o=zn(e,n);else if(t==="document")o=Wn(J(e));else if(U(t))o=In(t,n);else{const i=$t(e);o={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return _e(o)}function Mt(e,t){const n=ae(e);return n===t||!U(n)||ve(n)?!1:Y(n).position==="fixed"||Mt(n,t)}function Vn(e,t){const n=t.get(e);if(n)return n;let o=we(e,[],!1).filter(s=>U(s)&&de(s)!=="body"),i=null;const r=Y(e).position==="fixed";let l=r?ae(e):e;for(;U(l)&&!ve(l);){const s=Y(l),a=et(l);!a&&s.position==="fixed"&&(i=null),(r?!a&&!i:!a&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Ce(l)&&!a&&Mt(e,l))?o=o.filter(u=>u!==l):i=s,l=ae(l)}return t.set(e,o),o}function jn(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const l=[...n==="clippingAncestors"?Fe(t)?[]:Vn(t,this._c):[].concat(n),o],s=l[0],a=l.reduce((c,u)=>{const d=gt(t,u,i);return c.top=W(d.top,c.top),c.right=re(d.right,c.right),c.bottom=re(d.bottom,c.bottom),c.left=W(d.left,c.left),c},gt(t,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Un(e){const{width:t,height:n}=_t(e);return{width:t,height:n}}function Yn(e,t,n){const o=q(t),i=J(t),r=n==="fixed",l=ce(e,!0,r,t);let s={scrollLeft:0,scrollTop:0};const a=X(0);if(o||!o&&!r)if((de(t)!=="body"||Ce(i))&&(s=He(t)),o){const m=ce(t,!0,r,t);a.x=m.x+t.clientLeft,a.y=m.y+t.clientTop}else i&&(a.x=ot(i));const c=i&&!o&&!r?Lt(i,s):X(0),u=l.left+s.scrollLeft-a.x-c.x,d=l.top+s.scrollTop-a.y-c.y;return{x:u,y:d,width:l.width,height:l.height}}function Ve(e){return Y(e).position==="static"}function yt(e,t){if(!q(e)||Y(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return J(e)===n&&(n=n.ownerDocument.body),n}function Nt(e,t){const n=z(e);if(Fe(e))return n;if(!q(e)){let i=ae(e);for(;i&&!ve(i);){if(U(i)&&!Ve(i))return i;i=ae(i)}return n}let o=yt(e,t);for(;o&&$n(o)&&Ve(o);)o=yt(o,t);return o&&ve(o)&&Ve(o)&&!et(o)?n:o||Ln(e)||n}const Gn=async function(e){const t=this.getOffsetParent||Nt,n=this.getDimensions,o=await n(e.floating);return{reference:Yn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Kn(e){return Y(e).direction==="rtl"}const Xn={convertOffsetParentRelativeRectToViewportRelativeRect:Fn,getDocumentElement:J,getClippingRect:jn,getOffsetParent:Nt,getElementRects:Gn,getClientRects:Hn,getDimensions:Un,getScale:me,isElement:U,isRTL:Kn};function Ft(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qn(e,t){let n=null,o;const i=J(e);function r(){var s;clearTimeout(o),(s=n)==null||s.disconnect(),n=null}function l(s,a){s===void 0&&(s=!1),a===void 0&&(a=1),r();const c=e.getBoundingClientRect(),{left:u,top:d,width:m,height:f}=c;if(s||t(),!m||!f)return;const p=De(d),g=De(i.clientWidth-(u+m)),v=De(i.clientHeight-(d+f)),h=De(u),b={rootMargin:-p+"px "+-g+"px "+-v+"px "+-h+"px",threshold:W(0,re(1,a))||1};let A=!0;function C(k){const E=k[0].intersectionRatio;if(E!==a){if(!A)return l();E?l(!1,E):o=setTimeout(()=>{l(!1,1e-7)},1e3)}E===1&&!Ft(c,e.getBoundingClientRect())&&l(),A=!1}try{n=new IntersectionObserver(C,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,b)}n.observe(e)}return l(!0),r}function Jn(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,c=nt(e),u=i||r?[...c?we(c):[],...we(t)]:[];u.forEach(h=>{i&&h.addEventListener("scroll",n,{passive:!0}),r&&h.addEventListener("resize",n)});const d=c&&s?qn(c,n):null;let m=-1,f=null;l&&(f=new ResizeObserver(h=>{let[w]=h;w&&w.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=f)==null||b.observe(t)})),n()}),c&&!a&&f.observe(c),f.observe(t));let p,g=a?ce(e):null;a&&v();function v(){const h=ce(e);g&&!Ft(g,h)&&n(),g=h,p=requestAnimationFrame(v)}return n(),()=>{var h;u.forEach(w=>{i&&w.removeEventListener("scroll",n),r&&w.removeEventListener("resize",n)}),d==null||d(),(h=f)==null||h.disconnect(),f=null,a&&cancelAnimationFrame(p)}}const Qn=Bn,Zn=Sn,bt=Pn,eo=_n,to=Tn,no=Dn,oo=Rn,io=(e,t,n)=>{const o=new Map,i={platform:Xn,...n},r={...i.platform,_c:o};return En(e,t,{...i,platform:r})};function ro(e){return e!=null&&typeof e=="object"&&"$el"in e}function Ge(e){if(ro(e)){const t=e.$el;return Ze(t)&&de(t)==="#comment"?null:t}return e}function pe(e){return typeof e=="function"?e():y(e)}function lo(e){return{name:"arrow",options:e,fn(t){const n=Ge(pe(e.element));return n==null?{}:no({element:n,padding:e.padding}).fn(t)}}}function Ht(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xt(e,t){const n=Ht(e);return Math.round(t*n)/n}function ao(e,t,n){n===void 0&&(n={});const o=n.whileElementsMounted,i=O(()=>{var E;return(E=pe(n.open))!=null?E:!0}),r=O(()=>pe(n.middleware)),l=O(()=>{var E;return(E=pe(n.placement))!=null?E:"bottom"}),s=O(()=>{var E;return(E=pe(n.strategy))!=null?E:"absolute"}),a=O(()=>{var E;return(E=pe(n.transform))!=null?E:!0}),c=O(()=>Ge(e.value)),u=O(()=>Ge(t.value)),d=P(0),m=P(0),f=P(s.value),p=P(l.value),g=wt({}),v=P(!1),h=O(()=>{const E={position:f.value,left:"0",top:"0"};if(!u.value)return E;const B=xt(u.value,d.value),L=xt(u.value,m.value);return a.value?{...E,transform:"translate("+B+"px, "+L+"px)",...Ht(u.value)>=1.5&&{willChange:"transform"}}:{position:f.value,left:B+"px",top:L+"px"}});let w;function b(){if(c.value==null||u.value==null)return;const E=i.value;io(c.value,u.value,{middleware:r.value,placement:l.value,strategy:s.value}).then(B=>{d.value=B.x,m.value=B.y,f.value=B.strategy,p.value=B.placement,g.value=B.middlewareData,v.value=E!==!1})}function A(){typeof w=="function"&&(w(),w=void 0)}function C(){if(A(),o===void 0){b();return}if(c.value!=null&&u.value!=null){w=o(c.value,u.value,b);return}}function k(){i.value||(v.value=!1)}return K([r,l,s,i],b,{flush:"sync"}),K([c,u],C,{flush:"sync"}),K(i,k,{flush:"sync"}),Ct()&&At(A),{x:fe(d),y:fe(m),strategy:fe(f),placement:fe(p),middlewareData:fe(g),isPositioned:fe(v),floatingStyles:h,update:b}}function Ae(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,o=Symbol(n);return[i=>{const r=qt(o,i);if(r||r===null)return r;throw new Error(`Injection \`${o.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},i=>(dn(o,i),i)]}function Wt(e,t,n){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),o.dispatchEvent(i)}function so(e,t){var n;const o=wt();return Z(()=>{o.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),Pt(o)}function We(e){return Ct()?(At(e),!0):!1}function uo(){const e=new Set,t=n=>{e.delete(n)};return{on:n=>{e.add(n);const o=()=>t(n);return We(o),{off:o}},off:t,trigger:(...n)=>Promise.all(Array.from(e).map(o=>o(...n)))}}function co(e){let t=!1,n;const o=cn(!0);return(...i)=>(t||(n=o.run(()=>e(...i)),t=!0),n)}function ue(e){return typeof e=="function"?e():y(e)}const Oe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const fo=e=>typeof e<"u",po=Object.prototype.toString,mo=e=>po.call(e)==="[object Object]",vo=()=>{};function ho(e,t=1e4){return un((n,o)=>{let i=ue(e),r;const l=()=>setTimeout(()=>{i=ue(e),o()},ue(t));return We(()=>{clearTimeout(r)}),{get(){return n(),i},set(s){i=s,o(),clearTimeout(r),r=l()}}})}function zt(e,t,n={}){const{immediate:o=!0}=n,i=P(!1);let r=null;function l(){r&&(clearTimeout(r),r=null)}function s(){i.value=!1,l()}function a(...c){l(),i.value=!0,r=setTimeout(()=>{i.value=!1,r=null,e(...c)},ue(t))}return o&&(i.value=!0,Oe&&a()),We(s),{isPending:Pt(i),start:a,stop:s}}function ze(e){var t;const n=ue(e);return(t=n==null?void 0:n.$el)!=null?t:n}const it=Oe?window:void 0;function Ke(...e){let t,n,o,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,i]=e,t=it):[t,n,o,i]=e,!t)return vo;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],l=()=>{r.forEach(u=>u()),r.length=0},s=(u,d,m,f)=>(u.addEventListener(d,m,f),()=>u.removeEventListener(d,m,f)),a=K(()=>[ze(t),ue(i)],([u,d])=>{if(l(),!u)return;const m=mo(d)?{...d}:d;r.push(...n.flatMap(f=>o.map(p=>s(u,f,p,m))))},{immediate:!0,flush:"post"}),c=()=>{a(),l()};return We(c),c}function go(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function yo(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:i=it,eventName:r="keydown",passive:l=!1,dedupe:s=!1}=o,a=go(t);return Ke(i,r,c=>{c.repeat&&ue(s)||a(c)&&n(c)},l)}function bo(){const e=P(!1),t=he();return t&&$e(()=>{e.value=!0},t),e}function xo(e){return JSON.parse(JSON.stringify(e))}function wo(e,t,n,o={}){var i,r,l;const{clone:s=!1,passive:a=!1,eventName:c,deep:u=!1,defaultValue:d,shouldEmit:m}=o,f=he(),p=n||(f==null?void 0:f.emit)||((i=f==null?void 0:f.$emit)==null?void 0:i.bind(f))||((l=(r=f==null?void 0:f.proxy)==null?void 0:r.$emit)==null?void 0:l.bind(f==null?void 0:f.proxy));let g=c;g=g||`update:${t.toString()}`;const v=b=>s?typeof s=="function"?s(b):xo(b):b,h=()=>fo(e[t])?v(e[t]):d,w=b=>{m?m(b)&&p(g,b):p(g,b)};if(a){const b=h(),A=P(b);let C=!1;return K(()=>e[t],k=>{C||(C=!0,A.value=v(k),Le(()=>C=!1))}),K(A,k=>{!C&&(k!==e[t]||u)&&w(k)},{deep:u}),A}else return O({get(){return h()},set(b){w(b)}})}function rt(e){return e?e.flatMap(t=>t.type===Be?rt(t.children):[t]):[]}const[Co,Li]=Ae("ConfigProvider");function Ao(e){const t=he(),n=t==null?void 0:t.type.emits,o={};return n!=null&&n.length||console.warn(`No emitted event found. Please check component: ${t==null?void 0:t.type.__name}`),n==null||n.forEach(i=>{o[on(Bt(i))]=(...r)=>e(i,...r)}),o}function It(e){const t=he(),n=Object.keys((t==null?void 0:t.type.props)??{}).reduce((i,r)=>{const l=(t==null?void 0:t.type.props[r]).default;return l!==void 0&&(i[r]=l),i},{}),o=nn(e);return O(()=>{const i={},r=(t==null?void 0:t.vnode.props)??{};return Object.keys(r).forEach(l=>{i[Bt(l)]=r[l]}),Object.keys({...n,...i}).reduce((l,s)=>(o.value[s]!==void 0&&(l[s]=o.value[s]),l),{})})}function Oo(e,t){const n=It(e),o=t?Ao(t):{};return O(()=>({...n.value,...o}))}function I(){const e=he(),t=P(),n=O(()=>{var l,s;return["#text","#comment"].includes((l=t.value)==null?void 0:l.$el.nodeName)?(s=t.value)==null?void 0:s.$el.nextElementSibling:ze(t)}),o=Object.assign({},e.exposed),i={};for(const l in e.props)Object.defineProperty(i,l,{enumerable:!0,configurable:!0,get:()=>e.props[l]});if(Object.keys(o).length>0)for(const l in o)Object.defineProperty(i,l,{enumerable:!0,configurable:!0,get:()=>o[l]});Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=i;function r(l){t.value=l,l&&(Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>l instanceof Element?l:l.$el}),e.exposed=i)}return{forwardRef:r,currentRef:t,currentElement:n}}function Eo(e,t){const n=ho(!1,300),o=P(null),i=uo();function r(){o.value=null,n.value=!1}function l(s,a){const c=s.currentTarget,u={x:s.clientX,y:s.clientY},d=Do(u,c.getBoundingClientRect()),m=Po(u,d),f=To(a.getBoundingClientRect()),p=Bo([...m,...f]);o.value=p,n.value=!0}return Z(s=>{if(e.value&&t.value){const a=u=>l(u,t.value),c=u=>l(u,e.value);e.value.addEventListener("pointerleave",a),t.value.addEventListener("pointerleave",c),s(()=>{var u,d;(u=e.value)==null||u.removeEventListener("pointerleave",a),(d=t.value)==null||d.removeEventListener("pointerleave",c)})}}),Z(s=>{var a;if(o.value){const c=u=>{var d,m;if(!o.value)return;const f=u.target,p={x:u.clientX,y:u.clientY},g=((d=e.value)==null?void 0:d.contains(f))||((m=t.value)==null?void 0:m.contains(f)),v=!ko(p,o.value),h=!!f.closest("[data-grace-area-trigger]");g?r():(v||h)&&(r(),i.trigger())};(a=e.value)==null||a.ownerDocument.addEventListener("pointermove",c),s(()=>{var u;return(u=e.value)==null?void 0:u.ownerDocument.removeEventListener("pointermove",c)})}}),{isPointerInTransit:n,onPointerExit:i.on}}function Do(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),r=Math.abs(t.left-e.x);switch(Math.min(n,o,i,r)){case r:return"left";case i:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Po(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function To(e){const{top:t,right:n,bottom:o,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:o},{x:i,y:o}]}function ko(e,t){const{x:n,y:o}=e;let i=!1;for(let r=0,l=t.length-1;r<t.length;l=r++){const s=t[r].x,a=t[r].y,c=t[l].x,u=t[l].y;a>o!=u>o&&n<(c-s)*(o-a)/(u-a)+s&&(i=!i)}return i}function Bo(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),So(t)}function So(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const i=e[o];for(;t.length>=2;){const r=t[t.length-1],l=t[t.length-2];if((r.x-l.x)*(i.y-l.y)>=(r.y-l.y)*(i.x-l.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const i=e[o];for(;n.length>=2;){const r=n[n.length-1],l=n[n.length-2];if((r.x-l.x)*(i.y-l.y)>=(r.y-l.y)*(i.x-l.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}let Ro=0;function _o(e,t="radix"){const n=Co({useId:void 0});return at?`${t}-${at()}`:n.useId?`${t}-${n.useId()}`:`${t}-${++Ro}`}function $o(e){const t=P(),n=O(()=>{var i;return((i=t.value)==null?void 0:i.width)??0}),o=O(()=>{var i;return((i=t.value)==null?void 0:i.height)??0});return $e(()=>{const i=ze(e);if(i){t.value={width:i.offsetWidth,height:i.offsetHeight};const r=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const s=l[0];let a,c;if("borderBoxSize"in s){const u=s.borderBoxSize,d=Array.isArray(u)?u[0]:u;a=d.inlineSize,c=d.blockSize}else a=i.offsetWidth,c=i.offsetHeight;t.value={width:a,height:c}});return r.observe(i,{box:"border-box"}),()=>r.unobserve(i)}else t.value=void 0}),{width:n,height:o}}function Lo(e,t){const n=P(e);function o(i){return t[n.value][i]??n.value}return{state:n,dispatch:i=>{n.value=o(i)}}}const Mo=R({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var o,i;if(!n.default)return null;const r=rt(n.default()),l=r.findIndex(u=>u.type!==Tt);if(l===-1)return r;const s=r[l];(o=s.props)==null||delete o.ref;const a=s.props?se(t,s.props):t;t.class&&(i=s.props)!=null&&i.class&&delete s.props.class;const c=tn(s,a);for(const u in a)u.startsWith("on")&&(c.props||(c.props={}),c.props[u]=a[u]);return r.length===1?c:(r[l]=c,r)}}}),ye=R({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const o=e.asChild?"template":e.as;return typeof o=="string"&&["area","img","input"].includes(o)?()=>Te(o,t):o!=="template"?()=>Te(e.as,t,{default:n.default}):()=>Te(Mo,t,{default:n.default})}});function No(e,t){var n;const o=P({}),i=P("none"),r=P(e),l=e.value?"mounted":"unmounted";let s;const a=((n=t.value)==null?void 0:n.ownerDocument.defaultView)??it,{state:c,dispatch:u}=Lo(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),d=v=>{var h;if(Oe){const w=new CustomEvent(v,{bubbles:!1,cancelable:!1});(h=t.value)==null||h.dispatchEvent(w)}};K(e,async(v,h)=>{var w;const b=h!==v;if(await Le(),b){const A=i.value,C=Pe(t.value);v?(u("MOUNT"),d("enter"),C==="none"&&d("after-enter")):C==="none"||((w=o.value)==null?void 0:w.display)==="none"?(u("UNMOUNT"),d("leave"),d("after-leave")):h&&A!==C?(u("ANIMATION_OUT"),d("leave")):(u("UNMOUNT"),d("after-leave"))}},{immediate:!0});const m=v=>{const h=Pe(t.value),w=h.includes(v.animationName),b=c.value==="mounted"?"enter":"leave";if(v.target===t.value&&w&&(d(`after-${b}`),u("ANIMATION_END"),!r.value)){const A=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",s=a==null?void 0:a.setTimeout(()=>{var C;((C=t.value)==null?void 0:C.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=A)})}v.target===t.value&&h==="none"&&u("ANIMATION_END")},f=v=>{v.target===t.value&&(i.value=Pe(t.value))},p=K(t,(v,h)=>{v?(o.value=getComputedStyle(v),v.addEventListener("animationstart",f),v.addEventListener("animationcancel",m),v.addEventListener("animationend",m)):(u("ANIMATION_END"),s!==void 0&&(a==null||a.clearTimeout(s)),h==null||h.removeEventListener("animationstart",f),h==null||h.removeEventListener("animationcancel",m),h==null||h.removeEventListener("animationend",m))},{immediate:!0}),g=K(c,()=>{const v=Pe(t.value);i.value=c.value==="mounted"?v:"none"});return sn(()=>{p(),g()}),{isPresent:O(()=>["mounted","unmountSuspended"].includes(c.value))}}function Pe(e){return e&&getComputedStyle(e).animationName||"none"}const Fo=R({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var o;const{present:i,forceMount:r}=Ot(e),l=P(),{isPresent:s}=No(i,l);n({present:s});let a=t.default({present:s});a=rt(a||[]);const c=he();if(a&&(a==null?void 0:a.length)>1){const u=(o=c==null?void 0:c.parent)!=null&&o.type.name?`<${c.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${u}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(d=>` - ${d}`).join(`
|
2 |
`)].join(`
|
3 |
`))}return()=>r.value||i.value||s.value?Te(t.default({present:s})[0],{ref:u=>{const d=ze(u);return typeof(d==null?void 0:d.hasAttribute)>"u"||(d!=null&&d.hasAttribute("data-radix-popper-content-wrapper")?l.value=d.firstElementChild:l.value=d),d}}):null}}),Ho=R({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=bo();return(n,o)=>y(t)||n.forceMount?(_(),F(Qt,{key:0,to:n.to,disabled:n.disabled},[$(n.$slots,"default")],8,["to","disabled"])):Jt("",!0)}}),Wo="dismissableLayer.pointerDownOutside",zo="dismissableLayer.focusOutside";function Vt(e,t){const n=t.closest("[data-dismissable-layer]"),o=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),i=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&o===n||i.indexOf(o)<i.indexOf(n))}function Io(e,t){var n;const o=((n=t==null?void 0:t.value)==null?void 0:n.ownerDocument)??(globalThis==null?void 0:globalThis.document),i=P(!1),r=P(()=>{});return Z(l=>{if(!Oe)return;const s=async c=>{const u=c.target;if(t!=null&&t.value){if(Vt(t.value,u)){i.value=!1;return}if(c.target&&!i.value){let d=function(){Wt(Wo,e,m)};const m={originalEvent:c};c.pointerType==="touch"?(o.removeEventListener("click",r.value),r.value=d,o.addEventListener("click",r.value,{once:!0})):d()}else o.removeEventListener("click",r.value);i.value=!1}},a=window.setTimeout(()=>{o.addEventListener("pointerdown",s)},0);l(()=>{window.clearTimeout(a),o.removeEventListener("pointerdown",s),o.removeEventListener("click",r.value)})}),{onPointerDownCapture:()=>i.value=!0}}function Vo(e,t){var n;const o=((n=t==null?void 0:t.value)==null?void 0:n.ownerDocument)??(globalThis==null?void 0:globalThis.document),i=P(!1);return Z(r=>{if(!Oe)return;const l=async s=>{t!=null&&t.value&&(await Le(),!(!t.value||Vt(t.value,s.target))&&s.target&&!i.value&&Wt(zo,e,{originalEvent:s}))};o.addEventListener("focusin",l),r(()=>o.removeEventListener("focusin",l))}),{onFocusCapture:()=>i.value=!0,onBlurCapture:()=>i.value=!1}}const Q=an({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),jo=R({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,o=t,{forwardRef:i,currentElement:r}=I(),l=O(()=>{var p;return((p=r.value)==null?void 0:p.ownerDocument)??globalThis.document}),s=O(()=>Q.layersRoot),a=O(()=>r.value?Array.from(s.value).indexOf(r.value):-1),c=O(()=>Q.layersWithOutsidePointerEventsDisabled.size>0),u=O(()=>{const p=Array.from(s.value),[g]=[...Q.layersWithOutsidePointerEventsDisabled].slice(-1),v=p.indexOf(g);return a.value>=v}),d=Io(async p=>{const g=[...Q.branches].some(v=>v==null?void 0:v.contains(p.target));!u.value||g||(o("pointerDownOutside",p),o("interactOutside",p),await Le(),p.defaultPrevented||o("dismiss"))},r),m=Vo(p=>{[...Q.branches].some(g=>g==null?void 0:g.contains(p.target))||(o("focusOutside",p),o("interactOutside",p),p.defaultPrevented||o("dismiss"))},r);yo("Escape",p=>{a.value===s.value.size-1&&(o("escapeKeyDown",p),p.defaultPrevented||o("dismiss"))});let f;return Z(p=>{r.value&&(n.disableOutsidePointerEvents&&(Q.layersWithOutsidePointerEventsDisabled.size===0&&(f=l.value.body.style.pointerEvents,l.value.body.style.pointerEvents="none"),Q.layersWithOutsidePointerEventsDisabled.add(r.value)),s.value.add(r.value),p(()=>{n.disableOutsidePointerEvents&&Q.layersWithOutsidePointerEventsDisabled.size===1&&(l.value.body.style.pointerEvents=f)}))}),Z(p=>{p(()=>{r.value&&(s.value.delete(r.value),Q.layersWithOutsidePointerEventsDisabled.delete(r.value))})}),(p,g)=>(_(),F(y(ye),{ref:y(i),"as-child":p.asChild,as:p.as,"data-dismissable-layer":"",style:Me({pointerEvents:c.value?u.value?"auto":"none":void 0}),onFocusCapture:y(m).onFocusCapture,onBlurCapture:y(m).onBlurCapture,onPointerdownCapture:y(d).onPointerDownCapture},{default:T(()=>[$(p.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}});co(()=>P([]));const[jt,Uo]=Ae("PopperRoot"),Yo=R({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=P();return Uo({anchor:t,onAnchorChange:n=>t.value=n}),(n,o)=>$(n.$slots,"default")}}),Go=R({__name:"PopperAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,{forwardRef:n,currentElement:o}=I(),i=jt();return Z(()=>{i.onAnchorChange(t.element??o.value)}),(r,l)=>(_(),F(y(ye),{ref:y(n),as:r.as,"as-child":r.asChild},{default:T(()=>[$(r.$slots,"default")]),_:3},8,["as","as-child"]))}});function Ko(e){return e!==null}function Xo(e){return{name:"transformOrigin",options:e,fn(t){var n,o,i;const{placement:r,rects:l,middlewareData:s}=t,a=((n=s.arrow)==null?void 0:n.centerOffset)!==0,c=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[d,m]=Xe(r),f={start:"0%",center:"50%",end:"100%"}[m],p=(((o=s.arrow)==null?void 0:o.x)??0)+c/2,g=(((i=s.arrow)==null?void 0:i.y)??0)+u/2;let v="",h="";return d==="bottom"?(v=a?f:`${p}px`,h=`${-u}px`):d==="top"?(v=a?f:`${p}px`,h=`${l.floating.height+u}px`):d==="right"?(v=`${-u}px`,h=a?f:`${g}px`):d==="left"&&(v=`${l.floating.width+u}px`,h=a?f:`${g}px`),{data:{x:v,y:h}}}}}function Xe(e){const[t,n="center"]=e.split("-");return[t,n]}const qo={side:"bottom",sideOffset:0,align:"center",alignOffset:0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,updatePositionStrategy:"optimized",prioritizePosition:!1},[Jo,Qo]=Ae("PopperContent"),Zo=R({inheritAttrs:!1,__name:"PopperContent",props:rn({side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},{...qo}),emits:["placed"],setup(e,{emit:t}){const n=e,o=t,i=jt(),{forwardRef:r,currentElement:l}=I(),s=P(),a=P(),{width:c,height:u}=$o(a),d=O(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),m=O(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),f=O(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),p=O(()=>({padding:m.value,boundary:f.value.filter(Ko),altBoundary:f.value.length>0})),g=so(()=>[Qn({mainAxis:n.sideOffset+u.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&bt({...p.value}),n.avoidCollisions&&Zn({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?oo():void 0,...p.value}),!n.prioritizePosition&&n.avoidCollisions&&bt({...p.value}),eo({...p.value,apply:({elements:D,rects:j,availableWidth:M,availableHeight:H})=>{const{width:S,height:ne}=j.reference,N=D.floating.style;N.setProperty("--radix-popper-available-width",`${M}px`),N.setProperty("--radix-popper-available-height",`${H}px`),N.setProperty("--radix-popper-anchor-width",`${S}px`),N.setProperty("--radix-popper-anchor-height",`${ne}px`)}}),a.value&&lo({element:a.value,padding:n.arrowPadding}),Xo({arrowWidth:c.value,arrowHeight:u.value}),n.hideWhenDetached&&to({strategy:"referenceHidden",...p.value})]),{floatingStyles:v,placement:h,isPositioned:w,middlewareData:b}=ao(i.anchor,s,{strategy:"fixed",placement:d,whileElementsMounted:(...D)=>Jn(...D,{animationFrame:n.updatePositionStrategy==="always"}),middleware:g}),A=O(()=>Xe(h.value)[0]),C=O(()=>Xe(h.value)[1]);ln(()=>{w.value&&o("placed")});const k=O(()=>{var D;return((D=b.value.arrow)==null?void 0:D.centerOffset)!==0}),E=P("");Z(()=>{l.value&&(E.value=window.getComputedStyle(l.value).zIndex)});const B=O(()=>{var D;return((D=b.value.arrow)==null?void 0:D.x)??0}),L=O(()=>{var D;return((D=b.value.arrow)==null?void 0:D.y)??0});return Qo({placedSide:A,onArrowChange:D=>a.value=D,arrowX:B,arrowY:L,shouldHideArrow:k}),(D,j)=>{var M,H,S;return _(),be("div",{ref_key:"floatingRef",ref:s,"data-radix-popper-content-wrapper":"",style:Me({...y(v),transform:y(w)?y(v).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:E.value,"--radix-popper-transform-origin":[(M=y(b).transformOrigin)==null?void 0:M.x,(H=y(b).transformOrigin)==null?void 0:H.y].join(" "),...((S=y(b).hide)==null?void 0:S.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[V(y(ye),se({ref:y(r)},D.$attrs,{"as-child":n.asChild,as:D.as,"data-side":A.value,"data-align":C.value,style:{animation:y(w)?void 0:"none"}}),{default:T(()=>[$(D.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),ei=x("polygon",{points:"0,0 30,0 15,10"},null,-1),ti=R({__name:"Arrow",props:{width:{default:10},height:{default:5},asChild:{type:Boolean},as:{default:"svg"}},setup(e){const t=e;return I(),(n,o)=>(_(),F(y(ye),se(t,{width:n.width,height:n.height,viewBox:n.asChild?void 0:"0 0 30 10",preserveAspectRatio:n.asChild?void 0:"none"}),{default:T(()=>[$(n.$slots,"default",{},()=>[ei])]),_:3},16,["width","height","viewBox","preserveAspectRatio"]))}}),ni={top:"bottom",right:"left",bottom:"top",left:"right"},oi=R({inheritAttrs:!1,__name:"PopperArrow",props:{width:{},height:{},asChild:{type:Boolean},as:{default:"svg"}},setup(e){const{forwardRef:t}=I(),n=Jo(),o=O(()=>ni[n.placedSide.value]);return(i,r)=>{var l,s,a,c;return _(),be("span",{ref:u=>{y(n).onArrowChange(u)},style:Me({position:"absolute",left:(l=y(n).arrowX)!=null&&l.value?`${(s=y(n).arrowX)==null?void 0:s.value}px`:void 0,top:(a=y(n).arrowY)!=null&&a.value?`${(c=y(n).arrowY)==null?void 0:c.value}px`:void 0,[o.value]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[y(n).placedSide.value],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[y(n).placedSide.value],visibility:y(n).shouldHideArrow.value?"hidden":void 0})},[V(ti,se(i.$attrs,{ref:y(t),style:{display:"block"},as:i.as,"as-child":i.asChild,width:i.width,height:i.height}),{default:T(()=>[$(i.$slots,"default")]),_:3},16,["as","as-child","width","height"])],4)}}}),ii=R({__name:"VisuallyHidden",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){return I(),(t,n)=>(_(),F(y(ye),{as:t.as,"as-child":t.asChild,style:{position:"absolute",border:0,width:"1px",display:"inline-block",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}},{default:T(()=>[$(t.$slots,"default")]),_:3},8,["as","as-child"]))}});function ri(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}ri();const Ut="tooltip.open",[lt,li]=Ae("TooltipProvider"),ai=R({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{default:700},skipDelayDuration:{default:300},disableHoverableContent:{type:Boolean,default:!1},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean,default:!1}},setup(e){const t=e,{delayDuration:n,skipDelayDuration:o,disableHoverableContent:i,disableClosingTrigger:r,ignoreNonKeyboardFocus:l,disabled:s}=Ot(t);I();const a=P(!0),c=P(!1),{start:u,stop:d}=zt(()=>{a.value=!0},o,{immediate:!1});return li({isOpenDelayed:a,delayDuration:n,onOpen(){d(),a.value=!1},onClose(){u()},isPointerInTransitRef:c,disableHoverableContent:i,disableClosingTrigger:r,disabled:s,ignoreNonKeyboardFocus:l}),(m,f)=>$(m.$slots,"default")}}),[Ie,si]=Ae("TooltipRoot"),ui=R({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},delayDuration:{default:void 0},disableHoverableContent:{type:Boolean,default:void 0},disableClosingTrigger:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,default:void 0}},emits:["update:open"],setup(e,{emit:t}){const n=e,o=t;I();const i=lt(),r=O(()=>n.disableHoverableContent??i.disableHoverableContent.value),l=O(()=>n.disableClosingTrigger??i.disableClosingTrigger.value),s=O(()=>n.disabled??i.disabled.value),a=O(()=>n.delayDuration??i.delayDuration.value),c=O(()=>n.ignoreNonKeyboardFocus??i.ignoreNonKeyboardFocus.value),u=wo(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0});K(u,b=>{i.onClose&&(b?(i.onOpen(),document.dispatchEvent(new CustomEvent(Ut))):i.onClose())});const d=P(!1),m=P(),f=O(()=>u.value?d.value?"delayed-open":"instant-open":"closed"),{start:p,stop:g}=zt(()=>{d.value=!0,u.value=!0},a,{immediate:!1});function v(){g(),d.value=!1,u.value=!0}function h(){g(),u.value=!1}function w(){p()}return si({contentId:"",open:u,stateAttribute:f,trigger:m,onTriggerChange(b){m.value=b},onTriggerEnter(){i.isOpenDelayed.value?w():v()},onTriggerLeave(){r.value?h():g()},onOpen:v,onClose:h,disableHoverableContent:r,disableClosingTrigger:l,disabled:s,ignoreNonKeyboardFocus:c}),(b,A)=>(_(),F(y(Yo),null,{default:T(()=>[$(b.$slots,"default",{open:y(u)})]),_:3}))}}),ci=R({__name:"TooltipTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=Ie(),o=lt();n.contentId||(n.contentId=_o(void 0,"radix-vue-tooltip-content"));const{forwardRef:i,currentElement:r}=I(),l=P(!1),s=P(!1),a=O(()=>n.disabled.value?{}:{click:g,focus:f,pointermove:d,pointerleave:m,pointerdown:u,blur:p});$e(()=>{n.onTriggerChange(r.value)});function c(){setTimeout(()=>{l.value=!1},1)}function u(){l.value=!0,document.addEventListener("pointerup",c,{once:!0})}function d(v){v.pointerType!=="touch"&&!s.value&&!o.isPointerInTransitRef.value&&(n.onTriggerEnter(),s.value=!0)}function m(){n.onTriggerLeave(),s.value=!1}function f(v){var h,w;l.value||n.ignoreNonKeyboardFocus.value&&!((w=(h=v.target).matches)!=null&&w.call(h,":focus-visible"))||n.onOpen()}function p(){n.onClose()}function g(){n.disableClosingTrigger.value||n.onClose()}return(v,h)=>(_(),F(y(Go),{"as-child":""},{default:T(()=>[V(y(ye),se({ref:y(i),"aria-describedby":y(n).open.value?y(n).contentId:void 0,"data-state":y(n).stateAttribute.value,as:v.as,"as-child":t.asChild,"data-grace-area-trigger":""},Kt(a.value)),{default:T(()=>[$(v.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3}))}}),Yt=R({__name:"TooltipContentImpl",props:{ariaLabel:{},asChild:{type:Boolean},as:{},side:{default:"top"},sideOffset:{default:0},align:{default:"center"},alignOffset:{},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{default:()=>[]},collisionPadding:{default:0},arrowPadding:{default:0},sticky:{default:"partial"},hideWhenDetached:{type:Boolean,default:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,i=Ie(),{forwardRef:r}=I(),l=Zt(),s=O(()=>{var u;return(u=l.default)==null?void 0:u.call(l)}),a=O(()=>{var u;if(n.ariaLabel)return n.ariaLabel;let d="";function m(f){typeof f.children=="string"&&f.type!==Tt?d+=f.children:Array.isArray(f.children)&&f.children.forEach(p=>m(p))}return(u=s.value)==null||u.forEach(f=>m(f)),d}),c=O(()=>{const{ariaLabel:u,...d}=n;return d});return $e(()=>{Ke(window,"scroll",u=>{const d=u.target;d!=null&&d.contains(i.trigger.value)&&i.onClose()}),Ke(window,Ut,i.onClose)}),(u,d)=>(_(),F(y(jo),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:d[0]||(d[0]=m=>o("escapeKeyDown",m)),onPointerDownOutside:d[1]||(d[1]=m=>{var f;y(i).disableClosingTrigger.value&&(f=y(i).trigger.value)!=null&&f.contains(m.target)&&m.preventDefault(),o("pointerDownOutside",m)}),onFocusOutside:d[2]||(d[2]=en(()=>{},["prevent"])),onDismiss:d[3]||(d[3]=m=>y(i).onClose())},{default:T(()=>[V(y(Zo),se({ref:y(r),"data-state":y(i).stateAttribute.value},{...u.$attrs,...c.value},{style:{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:T(()=>[$(u.$slots,"default"),V(y(ii),{id:y(i).contentId,role:"tooltip"},{default:T(()=>[kt(ke(a.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),di=R({__name:"TooltipContentHoverable",props:{ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},setup(e){const t=It(e),{forwardRef:n,currentElement:o}=I(),{trigger:i,onClose:r}=Ie(),l=lt(),{isPointerInTransit:s,onPointerExit:a}=Eo(i,o);return l.isPointerInTransitRef=s,a(()=>{r()}),(c,u)=>(_(),F(Yt,se({ref:y(n)},y(t)),{default:T(()=>[$(c.$slots,"default")]),_:3},16))}}),fi=R({__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{default:"top"},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,i=Ie(),r=Oo(n,o),{forwardRef:l}=I();return(s,a)=>(_(),F(y(Fo),{present:s.forceMount||y(i).open.value},{default:T(()=>[(_(),F(Xt(y(i).disableHoverableContent.value?Yt:di),se({ref:y(l)},y(r)),{default:T(()=>[$(s.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),pi=R({__name:"TooltipArrow",props:{width:{default:10},height:{default:5},asChild:{type:Boolean},as:{default:"svg"}},setup(e){const t=e;return I(),(n,o)=>(_(),F(y(oi),Et(Dt(t)),{default:T(()=>[$(n.$slots,"default")]),_:3},16))}}),mi=R({__name:"TooltipPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,o)=>(_(),F(y(Ho),Et(Dt(t)),{default:T(()=>[$(n.$slots,"default")]),_:3},16))}}),vi={flex:"~ row","items-center":"","gap-2":""},hi={"flex-col":""},gi=["onClick"],yi={"p-4":""},bi={flex:"~ col gap-4"},xi=["disabled"],wi={"mt-4":"",class:"flex items-center justify-end gap-4"},Ci={class:"relative inline-flex cursor-pointer items-center"},Ai=["onClick"],Oi={"p-4":"",flex:"~ col gap-4"},Ei={"text-base":"","font-medium":""},Di={text:"sm neutral-500"},Pi={flex:"~ row","gap-2":""},Ti=["onClick"],ki=R({__name:"index",setup(e){const t=fn(),n=pn(),o=[{name:"Morandi Colors",description:"Soft, muted tones inspired by Giorgio Morandi's paintings",colors:[{hex:"#A5978B",name:"Taupe"},{hex:"#D8CAAF",name:"Beige"},{hex:"#B8B4A7",name:"Ash Grey"},{hex:"#C4BCB1",name:"Light Taupe"},{hex:"#E5DED8",name:"Ivory"},{hex:"#9A8F7D",name:"Olive Grey"},{hex:"#BEB5A7",name:"Sand"},{hex:"#C9C0B6",name:"Warm Grey"}]},{name:"Monet Colors",description:"Impressionist palette inspired by Claude Monet's works",colors:[{hex:"#7A9EAF",name:"Sky Blue"},{hex:"#B8C7CC",name:"Mist"},{hex:"#D4B79C",name:"Sand"},{hex:"#8B9D77",name:"Moss Green"},{hex:"#C7D5CB",name:"Water Lily"},{hex:"#E6D0B1",name:"Wheat"},{hex:"#94A7B1",name:"Slate Blue"},{hex:"#B4C8C3",name:"Sage"}]},{name:"Japanese Colors",description:"Traditional Japanese color palette",colors:[{hex:"#D9B48F",name:"Tan"},{hex:"#B5917A",name:"Warm Taupe"},{hex:"#8C7A6B",name:"Umber"},{hex:"#A17F5F",name:"Coffee"},{hex:"#B98C46",name:"Bronze"},{hex:"#C7A252",name:"Gold"},{hex:"#DAB300",name:"Mustard"},{hex:"#D19826",name:"Amber"}]},{name:"Nordic Colors",description:"Scandinavian minimalist color scheme",colors:[{hex:"#9BA7B0",name:"Nordic Blue"},{hex:"#C1CBD4",name:"Ice"},{hex:"#A5ADB6",name:"Fjord"},{hex:"#8B959E",name:"Steel"},{hex:"#D4DCE4",name:"Glacier"},{hex:"#7F8A94",name:"Slate"},{hex:"#B3BCC6",name:"Cloud"},{hex:"#98A4AE",name:"Stone"}]},{name:"Chinese Traditional Colors",description:"Traditional Chinese colors, derived from ancient textiles, porcelain and paintings",colors:[{hex:"#E4C6D0",name:"霞光红 (Rosy Dawn)"},{hex:"#A61B29",name:"枣红 (Chinese Red)"},{hex:"#5D513C",name:"黄栌 (Smoky Brown)"},{hex:"#789262",name:"竹青 (Bamboo Green)"},{hex:"#1C0D1A",name:"乌梅紫 (Dark Purple)"},{hex:"#F7C242",name:"缃色 (Golden Yellow)"},{hex:"#62A9DD",name:"青冥 (Azure Blue)"},{hex:"#8C4B3C",name:"赭石 (Ochre)"}]}];function i(){n.themeColorsHue=hn,n.themeColorsHueDynamic=!1}function r(s){const a=dt("oklch")(s);if(!a)return;const{h:c}=a;c&&(n.themeColorsHue=c,n.themeColorsHueDynamic=!1)}function l(s){if(n.themeColorsHueDynamic)return!1;const a=dt("oklch")(s);if(!a||!a.h)return!1;const c=Math.abs(a.h-n.themeColorsHue);return c<.01||c>359.99}return(s,a)=>(_(),be(Be,null,[x("div",vi,[x("button",{onClick:a[0]||(a[0]=c=>y(t).back())},a[3]||(a[3]=[x("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),a[4]||(a[4]=x("h1",{relative:""},[x("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[x("span",{text:"neutral-300 dark:neutral-500"},"Settings")]),x("div",{"text-3xl":"","font-semibold":""}," Themes ")],-1))]),x("div",hi,[V(y(ct),{"mt-4":"","w-full":"",default:!0},{trigger:T(c=>[x("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:u=>c.setVisible(!c.visible)},[a[6]||(a[6]=x("div",{flex:"~ row 1","items-center":"","gap-1.5":""},[x("div",{"i-solar:pallete-2-bold-duotone":"",class:"provider-icon size-6",transition:"filter duration-250 ease-in-out"}),x("div",null," Custom Colors ")],-1)),x("div",{transform:"",transition:"transform duration-250",class:Ee({"rotate-180":c.visible})},a[5]||(a[5]=[x("div",{"i-solar:alt-arrow-down-bold-duotone":""},null,-1)]),2)],8,gi)]),default:T(()=>[x("div",yi,[a[11]||(a[11]=x("div",{class:"mb-2 text-sm font-medium"}," Primary color ",-1)),x("div",bi,[st(x("input",{"onUpdate:modelValue":a[1]||(a[1]=c=>y(n).themeColorsHue=c),type:"range",min:"0",max:"360",step:"0.01",class:Ee(["theme-hue-slider h-10 w-full",{"opacity-25 cursor-not-allowed":y(n).themeColorsHueDynamic}]),disabled:y(n).themeColorsHueDynamic},null,10,xi),[[mn,y(n).themeColorsHue]]),a[7]||(a[7]=x("div",{"h-10":"","w-full":"",flex:"","overflow-hidden":"","rounded-lg":""},[x("div",{bg:"primary-50",class:"primary-color-bar","text-black":""}," 50 "),x("div",{bg:"primary-100",class:"primary-color-bar","text-black":""}," 100 "),x("div",{bg:"primary-200",class:"primary-color-bar","text-black":""}," 200 "),x("div",{bg:"primary-300",class:"primary-color-bar","text-black":""}," 300 "),x("div",{bg:"primary-400",class:"primary-color-bar","text-black":""}," 400 "),x("div",{bg:"primary-500",class:"primary-color-bar","text-black":""}," 500 "),x("div",{bg:"primary-600",class:"primary-color-bar","text-white":""}," 600 "),x("div",{bg:"primary-700",class:"primary-color-bar","text-white":""}," 700 "),x("div",{bg:"primary-800",class:"primary-color-bar","text-white":""}," 800 "),x("div",{bg:"primary-900",class:"primary-color-bar","text-white":""}," 900 "),x("div",{bg:"primary-950",class:"primary-color-bar","text-white":""}," 950 ")],-1)),a[8]||(a[8]=x("div",{"h-10":"","w-full":"",flex:"","overflow-hidden":"","rounded-lg":"",class:"transparency-grid"},[x("div",{bg:"primary-500/5",class:"primary-color-bar","text-black":""}," 500/5 "),x("div",{bg:"primary-500/10",class:"primary-color-bar","text-black":""}," 500/10 "),x("div",{bg:"primary-500/20",class:"primary-color-bar","text-black":""}," 500/20 "),x("div",{bg:"primary-500/30",class:"primary-color-bar","text-black":""}," 500/30 "),x("div",{bg:"primary-500/40",class:"primary-color-bar","text-black":""}," 500/40 "),x("div",{bg:"primary-500/50",class:"primary-color-bar","text-black":""}," 500/50 "),x("div",{bg:"primary-500/60",class:"primary-color-bar","text-black":""}," 500/60 "),x("div",{bg:"primary-500/70",class:"primary-color-bar","text-black":""}," 500/70 "),x("div",{bg:"primary-500/80",class:"primary-color-bar","text-black":""}," 500/80 "),x("div",{bg:"primary-500/90",class:"primary-color-bar","text-black":""}," 500/90 "),x("div",{bg:"primary-500",class:"primary-color-bar","text-black":""}," 500 ")],-1))]),x("div",wi,[x("label",Ci,[st(x("input",{"onUpdate:modelValue":a[2]||(a[2]=c=>y(n).themeColorsHueDynamic=c),type:"checkbox",class:"peer sr-only"},null,512),[[vn,y(n).themeColorsHueDynamic]]),a[9]||(a[9]=x("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)),a[10]||(a[10]=x("span",{class:"ml-2 text-sm font-medium"},"I Want It Dynamic!",-1))]),x("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:i}," Reset to Default ")])])]),_:1}),V(y(ct),{"mt-4":"","w-full":"",default:!0},{trigger:T(c=>[x("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:u=>c.setVisible(!c.visible)},[a[13]||(a[13]=x("div",{flex:"~ row 1","items-center":"","gap-1.5":""},[x("div",{"i-solar:magic-stick-2-bold-duotone":"",class:"provider-icon size-6",transition:"filter duration-250 ease-in-out"}),x("div",null," Theme Presets ")],-1)),x("div",{transform:"",transition:"transform duration-250",class:Ee({"rotate-180":c.visible})},a[12]||(a[12]=[x("div",{"i-solar:alt-arrow-down-bold-duotone":""},null,-1)]),2)],8,Ai)]),default:T(()=>[x("div",Oi,[(_(),be(Be,null,ut(o,c=>x("div",{key:c.name,flex:"~ row",bg:"neutral-100 dark:neutral-800",hover:"bg-neutral-200 dark:bg-neutral-700",transition:"all ease-in-out duration-250","cursor-pointer":"","items-center":"","justify-between":"","gap-4":"","rounded-lg":"","px-4":"","py-3":""},[x("div",null,[x("div",Ei,ke(c.name),1),x("div",Di,ke(c.description),1)]),x("div",Pi,[(_(!0),be(Be,null,ut(c.colors,u=>(_(),F(y(ai),{key:u.hex},{default:T(()=>[V(y(ui),null,{default:T(()=>[V(y(ci),null,{default:T(()=>[x("div",{style:Me({backgroundColor:u.hex}),class:Ee(["size-6 cursor-pointer rounded-full transition-all duration-250 ease-in-out",[l(u.hex)?"scale-150 z-10 mx-1":"hover:scale-110"]]),onClick:d=>r(u.hex)},null,14,Ti)]),_:2},1024),V(y(mi),null,{default:T(()=>[V(y(fi),{class:"rounded-lg bg-white px-3 py-1.5 text-sm shadow-md dark:bg-neutral-800"},{default:T(()=>[kt(ke(u.name)+" ",1),V(y(pi),{class:"fill-white dark:fill-neutral-800"})]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))])])),64))])]),_:1})]),a[14]||(a[14]=x("div",{fixed:"","bottom-0":"","right-0":"","z--1":"",text:"neutral-100/80 dark:neutral-500/20"},[x("div",{text:"40","i-lucide:paintbrush":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});typeof ft=="function"&&ft(ki);export{ki as default};
|
assets/{index-C2-dU6-H.css → index-DfgF6wHE.css}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
.primary-color-bar{width:100%;height:100%;display:flex;flex:1 1 0%;align-items:center;justify-content:center}.theme-hue-slider{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.5rem;background:linear-gradient(to right,#ffb6cb,#ffbaae 8.33%,#ffbc9d 12.5%,#ffbd94 14.58%,#ffbe8f 15.62%,#ffbe8c,#ffbe89 16.67%,#fac704,#bedf0d 33.33%,#bae025,#b6e133 34.38%,#aee347 35.42%,#9be764 37.5%,#6ded8f 41.67%,#4aefa1 43.75%,#2ef1aa 44.79%,#13f1ae 45.31%,#00f1b0,#00f1b3 45.83%,#00f0bc,#01efc4 47.92%,#00eed2 50%,#36e6ff 58.33%,#84dbff,#9cd6ff 66.67%,#9dd5ff,#9ed5ff 67.19%,#a0d4ff 67.71%,#a4d3ff 68.75%,#acd1ff 70.83%,#bcf 75%,#d6c1ff,#ffadf7,#ffb6cb);background:linear-gradient(to right,color(xyz 0.829 0.56 0.613),color(xyz 0.771 0.573 0.303) 8.33%,color(xyz 0.747 0.579 0.179) 12.5%,color(xyz 0.736 0.581 0.124) 14.58%,color(xyz 0.731 0.582 0.098) 15.62%,color(xyz 0.729 0.583 0.085),color(xyz 0.726 0.583 0.073) 16.67%,#fac704,#bedf0d 33.33%,#bae025,#b6e133 34.38%,#aee347 35.42%,#9be764 37.5%,#6ded8f 41.67%,#4aefa1 43.75%,#2ef1aa 44.79%,#13f1ae,color(xyz 0.392 0.664 0.531) 45.83%,color(xyz 0.388 0.665 0.577),color(xyz 0.384 0.667 0.624) 47.92%,color(xyz 0.377 0.67 0.724) 50%,color(xyz 0.456 0.651 1.158) 58.33%,color(xyz 0.503 0.639 1.415),color(xyz 0.554 0.627 1.699) 66.67%,color(xyz 0.56 0.625 1.697),color(xyz 0.566 0.623 1.694) 67.71%,color(xyz 0.578 0.62 1.688) 68.75%,color(xyz 0.601 0.613 1.677) 70.83%,color(xyz 0.651 0.6 1.654) 75%,color(xyz 0.756 0.573 1.609),color(xyz 0.777 0.569 1.05),color(xyz 0.829 0.56 0.613))}.theme-hue-slider::-webkit-slider-thumb{width:.5rem;height:3rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-width:2px;--un-border-opacity:1;border-color:rgb(255 255 255 / var(--un-border-opacity));border-radius:.375rem;background-color:#737373cc;--un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-duration:.2s}.
|
|
|
1 |
+
.primary-color-bar{width:100%;height:100%;display:flex;flex:1 1 0%;align-items:center;justify-content:center}.theme-hue-slider{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.5rem;background:linear-gradient(to right,#ffb6cb,#ffbaae 8.33%,#ffbc9d 12.5%,#ffbd94 14.58%,#ffbe8f 15.62%,#ffbe8c,#ffbe89 16.67%,#fac704,#bedf0d 33.33%,#bae025,#b6e133 34.38%,#aee347 35.42%,#9be764 37.5%,#6ded8f 41.67%,#4aefa1 43.75%,#2ef1aa 44.79%,#13f1ae 45.31%,#00f1b0,#00f1b3 45.83%,#00f0bc,#01efc4 47.92%,#00eed2 50%,#36e6ff 58.33%,#84dbff,#9cd6ff 66.67%,#9dd5ff,#9ed5ff 67.19%,#a0d4ff 67.71%,#a4d3ff 68.75%,#acd1ff 70.83%,#bcf 75%,#d6c1ff,#ffadf7,#ffb6cb);background:linear-gradient(to right,color(xyz 0.829 0.56 0.613),color(xyz 0.771 0.573 0.303) 8.33%,color(xyz 0.747 0.579 0.179) 12.5%,color(xyz 0.736 0.581 0.124) 14.58%,color(xyz 0.731 0.582 0.098) 15.62%,color(xyz 0.729 0.583 0.085),color(xyz 0.726 0.583 0.073) 16.67%,#fac704,#bedf0d 33.33%,#bae025,#b6e133 34.38%,#aee347 35.42%,#9be764 37.5%,#6ded8f 41.67%,#4aefa1 43.75%,#2ef1aa 44.79%,#13f1ae,color(xyz 0.392 0.664 0.531) 45.83%,color(xyz 0.388 0.665 0.577),color(xyz 0.384 0.667 0.624) 47.92%,color(xyz 0.377 0.67 0.724) 50%,color(xyz 0.456 0.651 1.158) 58.33%,color(xyz 0.503 0.639 1.415),color(xyz 0.554 0.627 1.699) 66.67%,color(xyz 0.56 0.625 1.697),color(xyz 0.566 0.623 1.694) 67.71%,color(xyz 0.578 0.62 1.688) 68.75%,color(xyz 0.601 0.613 1.677) 70.83%,color(xyz 0.651 0.6 1.654) 75%,color(xyz 0.756 0.573 1.609),color(xyz 0.777 0.569 1.05),color(xyz 0.829 0.56 0.613))}.theme-hue-slider::-webkit-slider-thumb{width:.5rem;height:3rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-width:2px;--un-border-opacity:1;border-color:rgb(255 255 255 / var(--un-border-opacity));border-radius:.375rem;background-color:#737373cc;background-color:#a3a3a3cc;background-color:rgb(115 115 115 / var(--un-bg-opacity));--un-bg-opacity:1;background-color:rgb(163 163 163 / var(--un-bg-opacity));--un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-duration:.2s}.theme-hue-slider::-moz-range-thumb{width:.5rem;height:3rem;cursor:pointer;border-width:2px;--un-border-opacity:1;border-color:rgb(255 255 255 / var(--un-border-opacity));border-radius:.375rem;background-color:#737373cc;background-color:#a3a3a3cc;background-color:rgb(115 115 115 / var(--un-bg-opacity));--un-bg-opacity:1;background-color:rgb(163 163 163 / var(--un-bg-opacity));--un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-duration:.2s}.transparency-grid{background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0px;background-color:#fff}
|
assets/{index-BlpMVgze.js → index-DlLyj6yi.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-
|
|
|
1 |
+
import"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-DorTQKuH.js";import{I as d}from"./IconStatusItem-CsZZfV4X.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-CZFG0-fG.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/{messages-BvSNM7iN.js → messages-CRIyMfqb.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{_ as m}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-
|
|
|
1 |
+
import{_ as m}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-BtRrKNvl.js";import"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-DorTQKuH.js";import{u as g}from"./queue-CZ6vmT2p.js";import{b as _,l as v}from"./queues-DjSbXoiy.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-CZFG0-fG.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-6jZkbxeo.js → openai-Ofg7iSBW.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-
|
|
|
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-CZFG0-fG.js";import{_ as I}from"./Collapsable.vue_vue_type_script_setup_true_lang-Bs33xSnT.js";import"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-DorTQKuH.js";import{u as K}from"./providers-D99azvon.js";import"./TransitionVertical.vue_vue_type_script_setup_true_lang-Bm2UDzd0.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-DaarR3kl.js → openrouter-DXbkz9pO.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-
|
|
|
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-CZFG0-fG.js";import{_ as E}from"./Collapsable.vue_vue_type_script_setup_true_lang-Bs33xSnT.js";import"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-DorTQKuH.js";import{u as S}from"./providers-D99azvon.js";import"./TransitionVertical.vue_vue_type_script_setup_true_lang-Bm2UDzd0.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-fMT8DsDo.js → providers-D99azvon.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{aC as W,cl as X,g as S,w as q,h as M,v as C}from"./index-B89Z5p0r.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})),j=(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=>j(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=>j(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}=C(),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}=C();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{aC as W,cl as X,g as S,w as q,h as M,v as C}from"./index-CZFG0-fG.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})),j=(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=>j(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=>j(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}=C(),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}=C();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-DIAXEAyv.js → queue-CZ6vmT2p.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{g as l}from"./index-
|
|
|
1 |
+
import{g as l}from"./index-CZFG0-fG.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-t7KTDYgM.js → queue-DKt0cyk8.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{u as o}from"./queue-
|
|
|
1 |
+
import{u as o}from"./queue-CZ6vmT2p.js";import{d as v,g as h,p as g,c as k,o as w,a as I}from"./index-CZFG0-fG.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-HBaasTEX.js → queues-DjSbXoiy.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{E as i}from"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-
|
|
|
1 |
+
import{E as i}from"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-DorTQKuH.js";import{u as s}from"./queue-CZ6vmT2p.js";import{g as d}from"./index-CZFG0-fG.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-D9oL48UJ.js → speech-CtC4-unX.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-
|
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-CZFG0-fG.js";import"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-DorTQKuH.js";import{R as K}from"./RadioCardSimple-C6NsiGP9.js";import{u as O}from"./providers-D99azvon.js";import{u as Q}from"./speech-DMQYR3ih.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-CC_xhSjO.js → speech-DMQYR3ih.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{aC as I,cl as o,g as S,h as c,w as R}from"./index-
|
|
|
1 |
+
import{aC as I,cl as o,g as S,h as c,w as R}from"./index-CZFG0-fG.js";import{u as W}from"./providers-D99azvon.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 M={Myriam:"lNxY9WuCBCZCISASyJ55",Beatrice:"KAsXoQDshjF6ehsWa1mF",Camilla_KM:"dLhSyo03JRp5WkGpUlz1","Sally Sunshine":"qswttdunP3b44zVZKMRB",Annie:"AfA1PA0ldViH0DA6pbml","Kawaii Aerisita":"vGQNBgLaiM3EdZtxIiuY",Morioki:"8EkOjt4xTPGMclNlh1pk"},P=["Myriam","Beatrice","Camilla_KM","Sally Sunshine","Annie","Kawaii Aerisita"],L=["Morioki"],u={en:P,"en-US":P,ja:L,"ja-JP":L},O=I("speech",()=>{const i=W(),v=o("settings/speech/active-provider",""),y=o("settings/speech/active-model","eleven_multilingual_v2"),t=o("settings/speech/voice-name",""),s=o("settings/speech/pitch",0),l=o("settings/speech/rate",1),f=o("settings/speech/ssml-enabled",!1),d=S(!1),p=S(null),r=S({}),g=o("settings/speech/language","en-US"),k=c(()=>i.availableProviders.filter(e=>h(e)).map(e=>i.getProviderMetadata(e))),w=c(()=>["elevenlabs","microsoft","google"].includes(v.value)),K=c(()=>Object.keys(u)),C=c(()=>{const e=g.value;return!e||!u[e]?[]:u[e].map(a=>({id:M[a],name:a,provider:"elevenlabs",language:e}))});function h(e){return["elevenlabs","microsoft","google","amazon"].includes(e)}function V(e){v.value=e}function B(e){y.value=e}function U(e){t.value=e}const E=c(()=>M[t.value]);function N(e){s.value=e}function _(e){l.value=e}function j(e){f.value=e}function F(e){g.value=e}function G(){t.value="",s.value=0,l.value=1,f.value=!1}async function A(e){if(!e||!h(e))return[];d.value=!0,p.value=null;try{if(await new Promise(a=>setTimeout(a,500)),e==="elevenlabs"){const a=[];for(const b in u){const z=u[b];for(const m of z)a.push({id:M[m],name:m,provider:"elevenlabs",language:b,description:D(m),gender:J(m)})}r.value[e]=a}else e==="microsoft"?r.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"}]:r.value[e]=[];return r.value[e]}catch(a){return console.error(`Error fetching voices for ${e}:`,a),p.value=a instanceof Error?a.message:"Unknown error",[]}finally{d.value=!1}}function D(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 r.value[e]||[]}R(v,async e=>{e&&await A(e)});function x(e){if(!f.value)return e;let a="<speak>";return t.value&&(a+=`<voice name="${t.value}">`),(s.value!==0||l.value!==1)&&(a+=`<prosody pitch="+${s.value}%" rate="${l.value}">`),a+=e,(s.value!==0||l.value!==1)&&(a+="</prosody>"),t.value&&(a+="</voice>"),a+="</speak>",a}return{activeSpeechProvider:v,activeSpeechModel:y,voiceName:t,voiceId:E,pitch:s,rate:l,ssmlEnabled:f,selectedLanguage:g,isLoadingSpeechProviderVoices:d,speechProviderError:p,availableVoices:r,availableSpeechProvidersMetadata:k,supportsSSML:w,availableLanguages:K,availableVoicesForLanguage:C,setActiveSpeechProvider:V,setActiveSpeechModel:B,setVoiceName:U,setPitch:N,setRate:_,setSSMLEnabled:j,setLanguage:F,resetVoiceSettings:G,loadVoicesForProvider:A,getVoicesForProvider:$,generateSSML:x,isSpeechProvider:h}});export{O as u};
|
assets/{stage-D-4cgi-W.js → stage-wFs8CaiS.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-
|
|
|
1 |
+
import{d as p,u as s,c,b as d,r as i,n as m,e,o as l}from"./index-CZFG0-fG.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-Bimnx-kr.js → v2-CnB05LQw.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-
|
|
|
1 |
+
import"./Stage.vue_vue_type_style_index_0_scoped_ae74e0f6_lang-DorTQKuH.js";import{W as a}from"./Live2DSettings.vue_vue_type_script_setup_true_lang-Blm3msNC.js";import{_ as i,M as r,I as m,a as s}from"./MobileInteractiveArea.vue_vue_type_script_setup_true_lang-DFA1LVBe.js";import{d,c,o as l,a as o,b as e,e as n}from"./index-CZFG0-fG.js";import{b as t}from"./route-block-B_A1xBdJ.js";import"./providers-D99azvon.js";import"./queue-CZ6vmT2p.js";import"./queues-DjSbXoiy.js";import"./speech-DMQYR3ih.js";import"./TransitionVertical.vue_vue_type_script_setup_true_lang-Bm2UDzd0.js";import"./Collapsable.vue_vue_type_script_setup_true_lang-Bs33xSnT.js";import"./HeaderLink-CJXC1OVE.js";import"./BasicTextarea.vue_vue_type_script_setup_true_lang-BtRrKNvl.js";import"./consciousness-D22xnZvx.js";import"./index-CgptNqq7.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-
|
27 |
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
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-CZFG0-fG.js"></script>
|
27 |
+
<link rel="stylesheet" crossorigin href="/assets/index-Cf8foA9u.css">
|
28 |
</head>
|
29 |
<body class="font-sans">
|
30 |
<div id="app"></div>
|