nekomeowww commited on
Commit
d23fc24
·
1 Parent(s): 90d1411

release: build 130344b2e49339b8da7fc11aad16207b7a214f37

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. assets/AnimatedWave-BpfCLnUX.js +0 -3
  2. assets/{AnimatedWave-Baeo-vvk.css → AnimatedWave-CW4ij04Q.css} +1 -1
  3. assets/AnimatedWave-LDB6VA9i.js +3 -0
  4. assets/{Basic-DgX4BCdt.js → Basic-C8SEHpp9.js} +1 -1
  5. assets/CardCreate-5js-zWlr.js +1 -0
  6. assets/CardCreate-D-KoAdG7.js +0 -1
  7. assets/{CardCreate-COr8jG0C.js → CardCreate-OzPwRjcU.js} +1 -1
  8. assets/{CardCreationDialog-FCpbRWXN.js → CardCreationDialog-5nhDZHS6.js} +2 -2
  9. assets/CardCreationDialog-B18qZKqS.js +1 -0
  10. assets/CardCreationDialog-DDa9cJ4l.js +0 -1
  11. assets/{CardDetailDialog-BWmoz5Dn.js → CardDetailDialog-BXWnYf9o.js} +1 -1
  12. assets/CardDetailDialog-Cihog42D.js +0 -1
  13. assets/CardDetailDialog-u5SuyQKM.js +1 -0
  14. assets/CardListItem-BVtBR05L.js +1 -0
  15. assets/{CardListItem-mQrm8iFB.js → CardListItem-BjLccdEW.js} +1 -1
  16. assets/CardListItem-CRPBuXnj.js +0 -1
  17. assets/DeleteCardDialog-C-T1b3GS.js +1 -0
  18. assets/DeleteCardDialog-CAunrpw4.js +0 -1
  19. assets/DeleteCardDialog-CjvdqreN.js +1 -0
  20. assets/DeleteCardDialog-D4Zi_S2r.js +0 -1
  21. assets/{HeaderLink-OXwpcq2X.js → HeaderLink-DNs7ZhZu.js} +1 -1
  22. assets/{IconAnimation-CJt8KSZi.js → IconAnimation-8qdjWIx9.js} +1 -1
  23. assets/{InputFile-1gH4AIZt.js → InputFile-COpQFPz2.js} +1 -1
  24. assets/{Scenes-DguY40Pg.js → Scenes-CHUisyDY.js} +0 -0
  25. assets/{Textarea-CPzk6mC3.js → Textarea-DLvvQ13i.js} +1 -1
  26. assets/_...all_-85Y5p_It.js +1 -0
  27. assets/_...all_-DlrzFmzf.js +0 -1
  28. assets/{__vite-browser-external-Cc9GS2DM.js → __vite-browser-external-B5qv5Q0c.js} +1 -1
  29. assets/airi-card-CB3SKPI2.js +1 -0
  30. assets/airi-card-CjUsoZNU.js +0 -1
  31. assets/{alibaba-cloud-model-studio-DkZi6gdo.js → alibaba-cloud-model-studio-m3npU4cT.js} +1 -1
  32. assets/{anthropic-CS9poF5x.js → anthropic-BEeCW66C.js} +1 -1
  33. assets/{appearance-CW9hZhXZ.js → appearance-Bp2VYN36.js} +1 -1
  34. assets/{audio-CJXFXJRA.js → audio-UElj8nI0.js} +1 -1
  35. assets/audio-record-BCe1mqmg.js +0 -1
  36. assets/audio-record-DhW-kAyw.js +1 -0
  37. assets/{azure-ai-foundry-BJEDA1ZB.js → azure-ai-foundry-GNXBR7q9.js} +1 -1
  38. assets/background-gradient-blending-Cb3JEn1j.js +0 -0
  39. assets/background-gradient-blending-j-35O4o_.js +0 -0
  40. assets/{background-remove-BxJfspg0.js → background-remove-BejQldKY.js} +1 -1
  41. assets/{chat-BHaEQYaw.js → chat-TcUUMYxc.js} +1 -1
  42. assets/{cloudflare-workers-ai-zoZCsbck.js → cloudflare-workers-ai-CUqXr20U.js} +1 -1
  43. assets/{color-scheme-Ci1WjyeH.js → color-scheme-D2CHgC_s.js} +1 -1
  44. assets/{consciousness-BEECB8V1.js → consciousness-CMK1QJ8r.js} +1 -1
  45. assets/{deepseek-DJPyPgA8.js → deepseek-Cr_Q8X8s.js} +1 -1
  46. assets/{default-CMko8ZDI.js → default-BlnbRLcd.js} +1 -1
  47. assets/{default-node-BbNY27oi.js → default-node-BQsjbmCI.js} +2 -2
  48. assets/{delays-C_xkXd4g.js → delays-CQlw2tUO.js} +1 -1
  49. assets/{developer-prGLTNOC.js → developer-BaQwfBCS.js} +1 -1
  50. assets/{effect-DBSVVF8G-DnERfKDb.js → effect-DBSVVF8G-BTfUHYsn.js} +1 -1
assets/AnimatedWave-BpfCLnUX.js DELETED
@@ -1,3 +0,0 @@
1
- import{b as e}from"./Basic-DgX4BCdt.js";import{A as t,B as n,C as r,D as i,E as a,J as o,K as s,M as c,R as l,a5 as u,a6 as d,aI as f,aN as p,aV as m,aY as h,ab as g,ad as _,ai as v,b$ as y,b0 as b,b6 as x,b8 as S,bC as C,bE as w,bG as T,bH as E,bJ as D,bK as O,bL as k,bM as A,bN as j,bO as M,bP as N,bT as P,bU as F,bV as I,bW as L,bX as R,bY as z,bZ as B,b_ as V,c0 as H,c1 as U,c2 as W,c3 as G,c6 as K,c9 as q,ca as J,cb as Y,cc as X}from"./index-iU6Tacov.js";import{b as ee,c as te,d as ne}from"./HeaderLink-OXwpcq2X.js";import{d as Z,e as re,f as ie}from"./Scenes-DguY40Pg.js";function ae(e,t){let n=ie(e,t?.in);if(!re(n))throw RangeError(`Invalid time value`);let r=t?.format??`extended`,i=t?.representation??`complete`,a=``,o=r===`extended`?`-`:``,s=r===`extended`?`:`:``;if(i!==`time`){let e=Z(n.getDate(),2),t=Z(n.getMonth()+1,2),r=Z(n.getFullYear(),4);a=`${r}${o}${t}${o}${e}`}if(i!==`date`){let e=Z(n.getHours(),2),t=Z(n.getMinutes(),2),r=Z(n.getSeconds(),2),i=a===``?``:` `;a=`${a}${i}${e}${s}${t}${s}${r}`}return a}const oe={},se={class:`cross-background-container`};function ce(e,t){return R(),N(`div`,se,[G(e.$slots,`default`,{},void 0,!0)])}var le=p(oe,[[`render`,ce],[`__scopeId`,`data-v-455eb62c`]]);const ue={"mb-1":``,"w-full":``,"gap-2":``},de={"w-full":``};var fe=A({__name:`Header`,setup(e){return(e,t)=>(R(),N(`header`,ue,[z(`div`,de,[P(ee)]),P(q(m),{class:`m-1 block max-h-[10lh] min-h-[1lh] rounded-lg bg-neutral-100 p-2 text-lg text-neutral-500 outline-none dark:bg-neutral-800 dark:text-neutral-400`,to:`/settings`},{default:j(()=>t[0]||=[z(`div`,{"i-solar:settings-minimalistic-bold-duotone":``},null,-1)]),_:1,__:[0]})]))}}),pe=fe,me=`/assets/worker-FPXhib_8.js`;const Q=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``),he=e=>{let t=typeof e;return t===`object`?e===null?`null`:e?.constructor?.name??`object`:t},ge=e=>{if(typeof e==`string`)return new TextEncoder().encode(e);if(e instanceof Uint8Array)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);throw TypeError(`The input must be a Uint8Array, a string, or an ArrayBuffer. Received a value of the type ${he(e)}.`)},_e=e=>{let t=ge(e),n=``,r,i=t.length;for(r=2;r<i;r+=3)n+=Q[t[r-2]>>2],n+=Q[(t[r-2]&3)<<4|t[r-1]>>4],n+=Q[(t[r-1]&15)<<2|t[r]>>6],n+=Q[t[r]&63];return r===i+1&&(n+=Q[t[r-2]>>2],n+=Q[(t[r-2]&3)<<4],n+=`==`),r===i&&(n+=Q[t[r-2]>>2],n+=Q[(t[r-2]&3)<<4|t[r-1]>>4],n+=Q[(t[r-1]&15)<<2],n+=`=`),n};function $(e,t,n){for(let r=0;r<n.length;r++)e.setUint8(t+r,n.charCodeAt(r))}function ve(e,t,n=1){let r=n,i=e.byteLength,a=new ArrayBuffer(44+i*2),o=new DataView(a);$(o,0,`RIFF`),o.setUint32(4,36+i*2,!0),$(o,8,`WAVE`),$(o,12,`fmt `),o.setUint32(16,16,!0),o.setUint16(20,1,!0),o.setUint16(22,r,!0),o.setUint32(24,t,!0),o.setUint32(28,t*r*2,!0),o.setUint16(32,r*2,!0),o.setUint16(34,16,!0),$(o,36,`data`),o.setUint32(40,i*2,!0);let s=44;for(let t=0;t<i;t++){let n=Math.max(-1,Math.min(1,e[t])),r=n<0?n*32768:n*32767;o.setInt16(s+t*2,r,!0)}return a}function ye(e,t){return _e(ve(e,t))}const be={relative:``,px:`<sm:2`,py:`<sm:2`,flex:`~ col`,rounded:`lg`,"overflow-hidden":``},xe={key:0,flex:``,mr:`12`},Se={flex:`~ col`,border:`2 solid violet-200/50 dark:violet-500/50`,shadow:`md violet-200/50 dark:none`,"min-w-20":``,"rounded-lg":``,"px-2":``,"py-1":``,h:`unset <sm:fit`,bg:`<md:violet-500/25`},Ce={flex:`~ row`,"gap-2":``},we={"flex-1":``},Te={"text-xs":``,text:`violet-400/90 dark:violet-600/90`,"font-normal":``,class:`inline <sm:hidden`},Ee={key:0,"i-eos-icons:three-dots-loading":``},De=[`innerHTML`],Oe={key:1,flex:``,mr:`12`},ke={flex:`~ col`,border:`2 solid primary-200/50 dark:primary-500/50`,shadow:`md primary-200/50 dark:none`,"min-w-20":``,"rounded-lg":``,"px-2":``,"py-1":``,h:`unset <sm:fit`,bg:`<md:primary-500/25`},Ae={"text-xs":``,text:`primary-400/90 dark:primary-600/90`,"font-normal":``,class:`inline <sm:hidden`},je={key:0,class:`markdown-content`,text:`xs primary-400`},Me={key:0},Ne={p:`1`,border:`1 solid primary-200`,"rounded-lg":``,m:`y-1`,bg:`primary-100`},Pe={key:1},Fe=[`innerHTML`],Ie={key:1,"i-eos-icons:three-dots-loading":``},Le={key:2,flex:`~ row-reverse`,ml:`12`},Re={flex:`~ col`,border:`2 solid cyan-200/50 dark:cyan-500/50`,shadow:`md cyan-200/50 dark:none`,px:`2`,h:`unset <sm:fit`,"min-w-20":``,"rounded-lg":``,"px-2":``,"py-1":``,bg:`<md:cyan-500/25`},ze={"text-xs":``,text:`cyan-400/90 dark:cyan-600/90`,"font-normal":``,class:`inline <sm:hidden`},Be=[`innerHTML`],Ve={key:1};var He=A({__name:`ChatHistory`,setup(e){let t=K(),{t:n}=c(),{messages:r,sending:i}=h(a()),{process:o}=d(),{onBeforeMessageComposed:s,onTokenLiteral:l}=a();return s(async()=>{k().then(()=>{t.value&&(t.value.scrollTop=t.value.scrollHeight)})}),l(async()=>{k().then(()=>{t.value&&(t.value.scrollTop=t.value.scrollHeight)})}),(e,a)=>{let s=L(`auto-animate`);return R(),N(`div`,be,[a[3]||=z(`div`,{"flex-1":``},null,-1),T((R(),N(`div`,{ref_key:`chatHistoryRef`,ref:t,"h-full":``,"w-full":``,flex:`~ col`,"overflow-scroll":``},[a[2]||=z(`div`,{"flex-1":``},null,-1),(R(!0),N(D,null,V(q(r),(e,t)=>(R(),N(`div`,{key:t,"mb-2":``},[e.role===`error`?(R(),N(`div`,xe,[z(`div`,Se,[z(`div`,Ce,[z(`div`,we,[z(`span`,Te,J(q(n)(`stage.chat.message.character-name.core-system`)),1)]),a[0]||=z(`div`,{"i-solar:danger-triangle-bold-duotone":``,"text-violet-500":``},null,-1)]),q(i)&&t===q(r).length-1?(R(),N(`div`,Ee)):(R(),N(`div`,{key:1,class:`markdown-content break-words text-violet-500`,text:`base <sm:xs`,innerHTML:q(o)(e.content)},null,8,De))])])):M(``,!0),e.role===`assistant`?(R(),N(`div`,Oe,[z(`div`,ke,[z(`div`,null,[z(`span`,Ae,J(q(n)(`stage.chat.message.character-name.airi`)),1)]),e.content&&t===q(r).length-1?(R(),N(`div`,je,[(R(!0),N(D,null,V(e.slices,(e,t)=>(R(),N(`div`,{key:t},[e.type===`tool-call`?(R(),N(`div`,Me,[z(`div`,Ne,[a[1]||=y(` Called: `),z(`code`,null,J(e.toolCall.toolName),1)])])):e.type===`tool-call-result`?(R(),N(`div`,Pe)):(R(),N(`div`,{key:2,innerHTML:q(o)(e.text)},null,8,Fe))]))),128))])):(R(),N(`div`,Ie))])])):e.role===`user`?(R(),N(`div`,Le,[z(`div`,Re,[z(`div`,null,[z(`span`,ze,J(q(n)(`stage.chat.message.character-name.you`)),1)]),e.content?(R(),N(`div`,{key:0,class:`markdown-content break-words`,text:`base <sm:xs`,innerHTML:q(o)(e.content)},null,8,Be)):(R(),N(`div`,Ve))])])):M(``,!0)]))),128))])),[[s]])])}}}),Ue=He;const We={flex:`col`,"items-center":``,"pt-4":``},Ge={flex:`~ row`,"w-fit":``,"rounded-lg":``},Ke=[`checked`,`aria-checked`],qe={flex:`~ row`,"items-center":``},Je={"min-w":`3em`},Ye={"h-full":``,"max-h":`[85vh]`,"w-full":``,py:`4`},Xe={flex:`~ col`,border:`solid 4 primary-200/20 dark:primary-400/20`,"h-full":``,"w-full":``,"overflow-scroll":``,"rounded-xl":``,bg:`primary-50/50 dark:primary-950/70`,"backdrop-blur-md":``},Ze={h:`<md:full`,flex:``,"gap-2":``};var Qe=A({__name:`InteractiveArea`,setup(t){let i=K(``),d=K(!1),f=K(`chat`),p=K(!1),m=K(!1),_=s(),{activeProvider:v,activeModel:y}=h(o()),{themeColorsHueDynamic:b}=h(r()),{askPermission:x}=n(),{enabled:S,selectedAudioInput:C}=h(n()),{send:D,onAfterSend:O,discoverToolsCompatibility:k}=a(),{messages:A}=h(a()),{audioContext:j}=g(),{t:M}=c(),{transcribe:F,terminate:L}=l(me,{onComplete:async e=>{if(!e||!e.trim())return;let t=_.getProviderConfig(v.value);await D(e,{chatProvider:await _.getProviderInstance(v.value),model:y.value,providerConfig:t})}});async function B(){if(!(!i.value.trim()||m.value))try{let e=_.getProviderConfig(v.value);await D(i.value,{chatProvider:await _.getProviderInstance(v.value),model:y.value,providerConfig:e})}catch(e){A.value.pop(),A.value.push({role:`error`,content:e.message})}}let{destroy:V,start:H}=u(C,{onSpeechStart:()=>{d.value=!0},onVADMisfire:()=>{d.value=!1},onSpeechEnd:e=>{d.value=!1,U(e.buffer)},auto:!1});async function U(e){await j.resume();let t=await ye(e,j.sampleRate);F({type:`generate`,data:{audio:t,language:`en`}})}return I(S,async e=>{e===!1&&(V(),L())}),I(p,async e=>{e&&await x()}),I([v,y],async()=>{v.value&&y.value&&await k(y.value,await _.getProviderInstance(v.value),[])}),E(()=>{H()}),O(async()=>{i.value=``}),(t,n)=>(R(),N(`div`,We,[z(`fieldset`,Ge,[z(`label`,{class:Y([f.value===`chat`?`bg-primary-100 dark:bg-primary-900`:`bg-white dark:bg-primary-950`,f.value===`chat`?`text-primary-500 dark:text-primary-500`:``,{"transition-colors-none ":q(b)}]),flex:`~ row`,checked:f.value===`chat`,"aria-checked":f.value===`chat`,border:`solid 2 primary-100 dark:primary-900`,text:`primary-300 hover:primary-500 dark:primary-300/50 dark:hover:primary-500`,transition:`all duration-250 ease-in-out`,"cursor-pointer":``,"items-center":``,"gap-1":``,"rounded-lg":``,"px-2":``},[T(z(`input`,{"onUpdate:modelValue":n[0]||=e=>f.value=e,type:`radio`,name:`tab`,value:`chat`,hidden:``},null,512),[[w,f.value]]),n[4]||=z(`div`,{"i-solar:dialog-2-bold-duotone":``,text:`2xl`,transform:`translate-y--2`},null,-1),z(`div`,qe,[z(`span`,Je,J(q(M)(`stage.chat.tabs.chat`)),1)])],10,Ke)]),z(`div`,Ye,[z(`div`,Xe,[P(Ue,{"h-full":``,"flex-1":``,"p-4":``,w:`full`,"max-h":`<md:[60%]`}),z(`div`,Ze,[P(q(e),{modelValue:i.value,"onUpdate:modelValue":n[1]||=e=>i.value=e,placeholder:q(M)(`stage.message`),text:`primary-500 hover:primary-600 dark:primary-300/50 dark:hover:primary-500 placeholder:primary-400 placeholder:hover:primary-500 placeholder:dark:primary-300/50 placeholder:dark:hover:primary-500`,bg:`primary-200/20 dark:primary-400/20`,"min-h":`[100px]`,"max-h":`[300px]`,"w-full":``,"rounded-t-xl":``,"p-4":``,"font-medium":``,"outline-none":``,transition:`all duration-250 ease-in-out placeholder:all placeholder:duration-250 placeholder:ease-in-out`,class:Y({"transition-colors-none placeholder:transition-colors-none":q(b)}),onSubmit:B,onCompositionstart:n[2]||=e=>m.value=!0,onCompositionend:n[3]||=e=>m.value=!1},null,8,[`modelValue`,`placeholder`,`class`])])])])]))}}),$e=Qe;const et=[`src`],tt=[`src`];var nt=A({__name:`MobileHeaderLink`,setup(e){let t=x();return(e,n)=>(R(),U(q(m),{to:`/`,flex:`~`,"items-center":``,"gap-2":``,"px-2":``,"text-nowrap":``,"text-2xl":``,"outline-none":``},{default:j(()=>[q(t)?(R(),N(`img`,{key:0,src:q(ne),"h-8":``,"w-8":``,class:`theme-colored`},null,8,et)):(R(),N(`img`,{key:1,src:q(te),"h-8":``,"w-8":``,class:`theme-colored`},null,8,tt))]),_:1}))}}),rt=p(nt,[[`__scopeId`,`data-v-9c3d67a4`]]);const it={"mb-1":``,"w-full":``,"gap-2":``},at={"w-full":``,flex:``,"justify-center":``};var ot=A({__name:`MobileHeader`,setup(e){return(e,t)=>(R(),N(`header`,it,[z(`div`,at,[P(rt)])]))}}),st=ot;const ct={flex:`~ col`,rounded:`lg`,"overflow-hidden":``},lt={key:0,flex:``,mr:`12`},ut={flex:`~ col`,shadow:`md violet-200/20 dark:none`,"min-w-20":``,"rounded-lg":``,"px-3":``,"py-2":``,h:`unset <sm:fit`,bg:`violet-500 dark:violet-800`,"backdrop-blur-sm":``},dt={flex:`~ row`,"gap-2":``},ft={"flex-1":``},pt={"text-xs":``,text:`violet-400/90 dark:violet-600/90`,"font-normal":``,class:`inline <sm:hidden`},mt=[`innerHTML`],ht={key:1,"i-eos-icons:three-dots-loading":``},gt={key:1,flex:``,mr:`12`},_t={flex:`~ col`,shadow:`md primary-200/20 dark:none`,"min-w-20":``,"rounded-lg":``,"px-3":``,"py-2":``,h:`unset <sm:fit`,bg:`primary-100 dark:primary-800`,"backdrop-blur-md":``},vt={text:`primary-400/90 dark:primary-600/90`,"text-xs":``,"font-normal":``,class:`inline <sm:hidden`},yt=[`innerHTML`],bt={key:1,"i-eos-icons:three-dots-loading":``},xt={key:2,flex:`~`},St={flex:`~ col`,shadow:`md cyan-200/20 dark:none`,px:`2`,h:`unset <sm:fit`,"min-w-20":``,"rounded-lg":``,"px-3":``,"py-2":``,bg:`white dark:neutral-800`,"backdrop-blur-md":``},Ct={"text-xs":``,text:`cyan-400/90 dark:cyan-600/90`,"font-normal":``,class:`inline <sm:hidden`},wt=[`innerHTML`],Tt={key:1};var Et=A({__name:`MobileChatHistory`,setup(e){let t=K(),{t:n}=c(),{messages:r}=h(a()),{process:i}=d(),{onBeforeMessageComposed:o,onTokenLiteral:s}=a();return o(async()=>{k().then(()=>{t.value&&(t.value.scrollTop=t.value.scrollHeight)})}),s(async()=>{k().then(()=>{t.value&&(t.value.scrollTop=t.value.scrollHeight)})}),(e,a)=>{let o=L(`auto-animate`);return R(),N(`div`,ct,[T((R(),N(`div`,{ref_key:`chatHistoryRef`,ref:t,"max-h":`35dvh`,"z-5":``,flex:`~ col`,"h-full":``,"w-full":``,"overflow-scroll":``,class:`chat-history`},[(R(!0),N(D,null,V(q(r),(e,t)=>(R(),N(`div`,{key:t,"mb-2":``},[e.role===`error`?(R(),N(`div`,lt,[z(`div`,ut,[z(`div`,dt,[z(`div`,ft,[z(`span`,pt,J(q(n)(`stage.chat.message.character-name.core-system`)),1)]),a[0]||=z(`div`,{"i-solar:danger-triangle-bold-duotone":``,"text-violet-500":``},null,-1)]),e.content?(R(),N(`div`,{key:0,class:`markdown-content`,text:`base <sm:xs`,innerHTML:q(i)(e.content)},null,8,mt)):(R(),N(`div`,ht))])])):M(``,!0),e.role===`assistant`?(R(),N(`div`,gt,[z(`div`,_t,[z(`div`,null,[z(`span`,vt,J(q(n)(`stage.chat.message.character-name.airi`)),1)]),e.content?(R(),N(`div`,{key:0,class:`markdown-content`,text:`base <sm:xs`,innerHTML:q(i)(e.content)},null,8,yt)):(R(),N(`div`,bt))])])):e.role===`user`?(R(),N(`div`,xt,[z(`div`,St,[z(`div`,null,[z(`span`,Ct,J(q(n)(`stage.chat.message.character-name.you`)),1)]),e.content?(R(),N(`div`,{key:0,class:`markdown-content`,text:`base <sm:xs`,innerHTML:q(i)(e.content)},null,8,wt)):(R(),N(`div`,Tt))])])):M(``,!0)]))),128))])),[[o]])])}}}),Dt=p(Et,[[`__scopeId`,`data-v-23390392`]]),Ot=class extends Date{constructor(){super(),this.setTime(arguments.length===0?Date.now():arguments.length===1?typeof arguments[0]==`string`?+new Date(arguments[0]):arguments[0]:Date.UTC(...arguments))}getTimezoneOffset(){return 0}};const kt=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(kt.test(e)){let t=Date.prototype[e.replace(kt,`$1UTC`)];t&&(Ot.prototype[e]=t)}});var At=class extends Ot{toString(){let e=this.toDateString(),t=this.toTimeString();return`${e} ${t}`}toDateString(){let e=jt.format(this),t=Mt.format(this),n=this.getFullYear();return`${e} ${t} ${n}`}toTimeString(){let e=Nt.format(this);return`${e} GMT+0000 (Coordinated Universal Time)`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{timeZone:`UTC`,...t})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{timeZone:`UTC`,...t})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{timeZone:`UTC`,...t})}},jt=new Intl.DateTimeFormat(`en-US`,{weekday:`short`,timeZone:`UTC`}),Mt=new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`,timeZone:`UTC`}),Nt=new Intl.DateTimeFormat(`en-GB`,{hour12:!1,hour:`numeric`,minute:`numeric`,second:`numeric`,timeZone:`UTC`});const Pt=`c27d11e907`,Ft=`main`,It=`Mon Jul 28 11:24:38 2025 +0800`,Lt={"max-w":`calc[100%-2rem]`,"mx-auto":``,"h-full":``,flex:``,"flex-col":``,"pt-14":``},Rt={"flex-1":``},zt={grid:`~ cols-[70px_1fr]`,"mt-4":``,"gap-2":``,"text-sm":``},Bt={"font-mono":``},Vt={"font-mono":``},Ht={"font-mono":``};var Ut=A({__name:`About`,setup(e){let t=K(!1),n=ae(new At(It));return(e,r)=>(R(),N(D,null,[z(`button`,{border:`2 solid neutral-100/60 dark:neutral-800/30`,bg:`neutral-50/70 dark:neutral-800/70`,"w-fit":``,flex:``,"items-center":``,"self-end":``,"justify-center":``,"rounded-xl":``,"p-2":``,"backdrop-blur-md":``,title:`About`,onClick:r[0]||=e=>t.value=!t.value},r[2]||=[z(`div`,{"i-solar:info-circle-outline":``,"size-5":``,text:`neutral-500 dark:neutral-400`},null,-1)]),P(q(_),{modelValue:t.value,"onUpdate:modelValue":r[1]||=e=>t.value=e},{default:j(()=>[z(`div`,Lt,[r[7]||=z(`div`,{"font-sans-rounded":``,"mb-14":``,"text-center":``,"text-5xl":``},[z(`span`,{text:`neutral-400 dark:neutral-100/65`},`Project`),y(),z(`span`,{text:`pink-400 dark:pink-300/90`},`AIRI`),z(`div`,{"mt-2":``,"text-base":``},` Web ver. `)],-1),z(`div`,Rt,[r[6]||=z(`div`,{text:`neutral-500 dark:neutral-400`},` Application build information `,-1),z(`div`,zt,[r[3]||=z(`div`,{text:`neutral-500 dark:neutral-400`},` Branch `,-1),z(`div`,Bt,J(q(Ft)),1),r[4]||=z(`div`,{text:`neutral-500 dark:neutral-400`},` Commit `,-1),z(`div`,Vt,J(q(Pt).substring(0,7)),1),r[5]||=z(`div`,{text:`neutral-500 dark:neutral-400`},` Built on `,-1),z(`div`,Ht,J(q(n)),1)])]),r[8]||=z(`div`,{"my-10":``},[z(`div`,{text:`neutral-500 dark:neutral-400`},` About `),z(`div`,{"mt-4":``,flex:``,"flex-col":``,"gap-2":``},[z(`a`,{class:Y([`block`,`flex items-center gap-2`,`rounded-xl px-3 py-2 lg:px-5 lg:py-3 outline-none backdrop-blur-md active:scale-95 focus:outline-none text-nowrap text-sm md:text-base`,`text-slate-700 dark:text-slate-100`]),bg:`black/4 dark:black/10 dark:hover:white/30`,transition:`colors,transform duration-200 ease-in-out`,href:`https://airi.moeru.ai/docs/`,target:`_blank`},[z(`div`,{"i-solar:home-smile-outline":``}),z(`div`,null,`Home`)]),z(`a`,{href:`https://airi.moeru.ai/docs/en/docs/overview/`,class:Y([`block`,`flex items-center gap-2`,`rounded-xl px-3 py-2 lg:px-5 lg:py-3 outline-none backdrop-blur-md active:scale-95 focus:outline-none text-nowrap text-sm md:text-base`,`text-slate-700 dark:text-slate-100`]),bg:`black/4 dark:black/10 dark:hover:white/30`,transition:`colors,transform duration-200 ease-in-out`,target:`_blank`},[z(`div`,{"i-solar:document-add-outline":``}),z(`div`,null,`Documentations`)]),z(`a`,{href:`https://github.com/moeru-ai/airi`,class:Y([`block`,`flex items-center gap-2`,`rounded-xl px-3 py-2 lg:px-5 lg:py-3 outline-none backdrop-blur-md active:scale-95 focus:outline-none text-nowrap text-sm md:text-base`,`text-slate-700 dark:text-slate-100`]),bg:`black/4 dark:black/10 dark:hover:white/30`,transition:`colors,transform duration-200 ease-in-out`,target:`_blank`},[z(`div`,{"i-simple-icons:github":``}),z(`div`,null,`GitHub`)])])],-1)])]),_:1},8,[`modelValue`])],64))}}),Wt=Ut;const Gt={"w-full":``,flex:``,"flex-1":``,"items-center":``,"self-end":``,"justify-end":``,"gap-2":``},Kt={key:0,"w-full":``,flex:``,"justify-between":``,"gap-2":``},qt={key:0,"i-solar:tuning-outline":``,"size-5":``},Jt={key:1,"i-solar:alt-arrow-right-outline":``,"size-5":``};var Yt=A({__name:`ViewControls`,props:{modelValue:{required:!0},modelModifiers:{}},emits:F([`reset`],[`update:modelValue`]),setup(e,{emit:t}){let n=t,{stageView:i,stageViewControlsEnabled:a}=h(r()),o=W(e,`modelValue`);function s(e){if(o.value===e){n(`reset`);return}o.value=e}return(e,t)=>(R(),N(`div`,Gt,[P(C,{name:`fade`},{default:j(()=>[q(a)?(R(),N(`div`,Kt,[P(q(v),{variant:`secondary-muted`,toggled:o.value===`x`,"w-full":``,onClick:t[0]||=e=>s(`x`)},{default:j(()=>t[5]||=[y(` X `)]),_:1,__:[5]},8,[`toggled`]),P(q(v),{variant:`secondary-muted`,toggled:o.value===`y`,"w-full":``,onClick:t[1]||=e=>s(`y`)},{default:j(()=>t[6]||=[y(` Y `)]),_:1,__:[6]},8,[`toggled`]),q(i)===`3d`?(R(),U(q(v),{key:0,variant:`secondary-muted`,toggled:o.value===`z`,"w-full":``,onClick:t[2]||=e=>s(`z`)},{default:j(()=>t[7]||=[y(` Z `)]),_:1,__:[7]},8,[`toggled`])):M(``,!0),P(q(v),{variant:`secondary-muted`,toggled:o.value===`scale`,"w-full":``,onClick:t[3]||=e=>s(`scale`)},{default:j(()=>t[8]||=[y(` Scale `)]),_:1,__:[8]},8,[`toggled`])])):M(``,!0)]),_:1}),z(`button`,{"w-fit":``,flex:``,"items-center":``,"self-end":``,"justify-center":``,"justify-self-end":``,"rounded-xl":``,"p-2":``,"backdrop-blur-md":``,border:`2 solid neutral-100/60 dark:neutral-800/30`,bg:`neutral-50/70 dark:neutral-800/70`,title:`View`,text:`neutral-500 dark:neutral-400`,onClick:t[4]||=e=>a.value=!q(a)},[P(C,{name:`fade`,mode:`out-in`},{default:j(()=>[q(a)?(R(),N(`div`,Jt)):(R(),N(`div`,qt))]),_:1})])]))}}),Xt=p(Yt,[[`__scopeId`,`data-v-35df7db7`]]);const Zt={key:0},Qt={key:0,relative:``,class:`[&_.round-range-tooltip]:hover:opacity-100`},$t={class:`round-range-tooltip`,top:`50%`,"translate-y":`[-50%]`,absolute:``,"left-10":``,"font-mono":``,"op-0":``,transition:`all duration-200 ease-in-out`},en={key:1,relative:``,class:`[&_.round-range-tooltip]:hover:opacity-100`},tn={class:`round-range-tooltip`,top:`50%`,"translate-y":`[-50%]`,absolute:``,"left-10":``,"font-mono":``,"op-0":``,transition:`all duration-200 ease-in-out`},nn={key:2,relative:``,class:`[&_.round-range-tooltip]:hover:opacity-100`},rn={class:`round-range-tooltip`,top:`50%`,"translate-y":`[-50%]`,absolute:``,"left-10":``,"font-mono":``,"op-0":``,transition:`all duration-200 ease-in-out`},an={key:3,relative:``,class:`[&_.round-range-tooltip]:hover:opacity-100`},on={class:`round-range-tooltip`,top:`50%`,"translate-y":`[-50%]`,absolute:``,"left-10":``,"font-mono":``,"op-0":``,transition:`all duration-200 ease-in-out`};var sn=A({__name:`Inputs`,props:{mode:{}},setup(e,{expose:n}){let a=e,{stageView:o,stageViewControlsEnabled:s}=h(r()),{scale:c,modelOffset:l,modelSize:u}=h(t()),{scale:d,position:p}=h(i()),m=O({get:()=>{switch(o.value){case`2d`:return p.value.x;case`3d`:return l.value.x;default:return 0}},set:e=>{switch(o.value){case`2d`:p.value.x=e;break;case`3d`:l.value.x=e;break;default:break}}}),g=O(()=>o.value===`2d`?-500:-u.value.x-10),_=O(()=>o.value===`2d`?500:u.value.x+10),v=O({get:()=>{switch(o.value){case`2d`:return p.value.y;case`3d`:return l.value.y;default:return 0}},set:e=>{switch(o.value){case`2d`:p.value.y=e;break;case`3d`:l.value.y=e;break;default:break}}}),y=O(()=>o.value===`2d`?-500:-u.value.y-10),b=O(()=>o.value===`2d`?500:u.value.y+10),x=O({get:()=>{switch(o.value){case`2d`:return 0;case`3d`:return l.value.z;default:return 0}},set:e=>{switch(o.value){case`2d`:break;case`3d`:l.value.z=e;break;default:break}}}),S=O(()=>o.value===`2d`?-500:-u.value.z-10),w=O(()=>o.value===`2d`?500:u.value.z+10),T=O({get:()=>o.value===`2d`?d.value:c.value,set:e=>{o.value===`2d`?d.value=e:c.value=e}});function E(){switch(a.mode){case`x`:m.value=0;break;case`y`:v.value=0;break;case`z`:x.value=0;break;case`scale`:T.value=1;break}}return n({resetOnMode:E}),(e,t)=>(R(),U(C,{name:`fade-side-pops-in`},{default:j(()=>[q(s)?(R(),N(`div`,Zt,[P(C,{name:`fade-side-pops-in`,mode:`out-in`},{default:j(()=>[a.mode===`x`?(R(),N(`div`,Qt,[P(q(f),{modelValue:m.value,"onUpdate:modelValue":t[0]||=e=>m.value=e,min:g.value,max:_.value,step:.01,"data-direction":`vertical`,h:`50%`,"write-vertical-left":``},null,8,[`modelValue`,`min`,`max`]),z(`div`,$t,J(m.value.toFixed(2)),1)])):a.mode===`y`?(R(),N(`div`,en,[P(q(f),{modelValue:v.value,"onUpdate:modelValue":t[1]||=e=>v.value=e,min:y.value,max:b.value,step:.01,"write-vertical-left":``,h:`50%`,"data-direction":`vertical`},null,8,[`modelValue`,`min`,`max`]),z(`div`,tn,J(v.value.toFixed(2)),1)])):q(o)===`3d`&&a.mode===`z`?(R(),N(`div`,nn,[P(q(f),{modelValue:x.value,"onUpdate:modelValue":t[2]||=e=>x.value=e,min:S.value,max:w.value,step:.01,"write-vertical-left":``,h:`50%`,"data-direction":`vertical`},null,8,[`modelValue`,`min`,`max`]),z(`div`,rn,J(x.value.toFixed(2)),1)])):a.mode===`scale`?(R(),N(`div`,an,[P(q(f),{modelValue:T.value,"onUpdate:modelValue":t[3]||=e=>T.value=e,min:0,max:3,step:1e-4,"write-vertical-left":``,h:`50%`,"data-direction":`vertical`},null,8,[`modelValue`]),z(`div`,on,J(T.value.toFixed(2)),1)])):M(``,!0)]),_:1})])):M(``,!0)]),_:1}))}}),cn=p(sn,[[`__scopeId`,`data-v-225b2747`]]);const ln={fixed:``,"bottom-0":``,"w-full":``,flex:``,"flex-col":``},un={relative:``,"w-full":``,"self-end":``},dn={top:`50%`,"translate-y":`[-50%]`,fixed:``,"z-15":``,"px-3":``},fn={"translate-y":`[-100%]`,absolute:``,"right-0":``,"w-full":``,"px-3":``,"pb-3":``,"font-sans":``},pn={flex:`~ col`,"w-full":``,"gap-1":``},mn={key:0,"i-solar:moon-outline":``,"size-5":``,text:`neutral-500 dark:neutral-400`},hn={key:1,"i-solar:sun-2-outline":``,"size-5":``,text:`neutral-500 dark:neutral-400`},gn={key:0,"size-5":``,text:`neutral-500 dark:neutral-400`,"inline-flex":``,"items-center":``,"justify-center":``},_n={key:1,"size-5":``,text:`neutral-500 dark:neutral-400`,"inline-flex":``,"items-center":``,"justify-center":``};var vn=A({__name:`MobileInteractiveArea`,setup(t){let i=x({disableTransition:!1}),l=K(`scale`),d=H(`viewControlsInputs`),f=K(``),p=K(!1),g=K(!1),_=S(),v=s(),{activeProvider:y,activeModel:w}=h(o());b(document.documentElement,()=>_.update());let{themeColorsHueDynamic:T,stageView:D,stageViewControlsEnabled:O}=h(r()),{enabled:k,selectedAudioInput:A}=h(n()),{send:F,onAfterSend:L,discoverToolsCompatibility:V}=a(),{messages:W}=h(a()),{t:G}=c();async function J(){if(!(!f.value.trim()||g.value))try{let e=v.getProviderConfig(y.value);await F(f.value,{chatProvider:await v.getProviderInstance(y.value),model:w.value,providerConfig:e})}catch(e){W.value.pop(),W.value.push({role:`error`,content:e.message})}}let{destroy:ee,start:te}=u(A,{onSpeechStart:()=>{p.value=!0},onVADMisfire:()=>{p.value=!1},onSpeechEnd:e=>{p.value=!1,ne(e)},auto:!1});function ne(e){alert(`Transcription is not implemented yet`)}return I(k,async e=>{e===!1&&ee()}),L(async()=>{f.value=``}),I([y,w],async()=>{y.value&&w.value&&await V(w.value,await v.getProviderInstance(y.value),[])}),E(()=>{te(),_.update()}),(t,n)=>(R(),N(`div`,ln,[(R(),U(B,null,[P(C,{name:`fade`},{default:j(()=>[q(O)?M(``,!0):(R(),U(Dt,{key:0,"max-w":`[calc(100%-3.5rem)]`,"w-full":``,"self-start":``,"pl-3":``}))]),_:1})],1024)),z(`div`,un,[z(`div`,dn,[P(cn,{ref:`viewControlsInputs`,mode:l.value},null,8,[`mode`])]),z(`div`,fn,[z(`div`,pn,[P(Wt),z(`button`,{border:`2 solid neutral-100/60 dark:neutral-800/30`,bg:`neutral-50/70 dark:neutral-800/70`,"w-fit":``,flex:``,"items-center":``,"self-end":``,"justify-center":``,"rounded-xl":``,"p-2":``,"backdrop-blur-md":``,title:`Theme`,onClick:n[0]||=e=>i.value=!q(i)},[P(C,{name:`fade`,mode:`out-in`},{default:j(()=>[q(i)?(R(),N(`div`,mn)):(R(),N(`div`,hn))]),_:1})]),P(q(m),{to:`/settings`,border:`2 solid neutral-100/60 dark:neutral-800/30`,bg:`neutral-50/70 dark:neutral-800/70`,"w-fit":``,flex:``,"items-center":``,"self-end":``,"justify-center":``,"rounded-xl":``,"p-2":``,"backdrop-blur-md":``,title:`Settings`},{default:j(()=>n[7]||=[z(`div`,{"i-solar:settings-outline":``,"size-5":``,text:`neutral-500 dark:neutral-400`},null,-1)]),_:1,__:[7]}),z(`button`,{border:`2 solid neutral-100/60 dark:neutral-800/30`,bg:`neutral-50/70 dark:neutral-800/70`,"w-fit":``,flex:``,"items-center":``,"self-end":``,"justify-center":``,"rounded-xl":``,"p-2":``,"backdrop-blur-md":``,title:`Stage View`,onClick:n[1]||=e=>D.value=q(D)===`2d`?`3d`:`2d`},[q(D)===`2d`?(R(),N(`div`,gn,n[8]||=[z(`span`,null,`2D`,-1)])):M(``,!0),q(D)===`3d`?(R(),N(`div`,_n,n[9]||=[z(`span`,null,`3D`,-1)])):M(``,!0)]),P(Xt,{modelValue:l.value,"onUpdate:modelValue":n[2]||=e=>l.value=e,onReset:n[3]||=()=>d.value?.resetOnMode()},null,8,[`modelValue`])])]),z(`div`,{bg:`white dark:neutral-800`,"max-h-100dvh":``,"max-w-100dvw":``,"w-full":``,flex:``,"gap-1":``,"overflow-auto":``,"px-3":``,"pt-2":``,style:X({paddingBottom:`${Math.max(Number.parseFloat(q(_).bottom.value.replace(`px`,``)),12)}px`})},[P(q(e),{modelValue:f.value,"onUpdate:modelValue":n[4]||=e=>f.value=e,placeholder:q(G)(`stage.message`),border:`solid 2 neutral-200/60 dark:neutral-700/60`,text:`neutral-500 hover:neutral-600 dark:neutral-100 dark:hover:neutral-200 placeholder:neutral-400 placeholder:hover:neutral-500 placeholder:dark:neutral-300 placeholder:dark:hover:neutral-400`,bg:`neutral-100/80 dark:neutral-950/80`,"max-h":`[10lh]`,"min-h":`[calc(1lh+4px+4px)]`,"w-full":``,"resize-none":``,"overflow-y-scroll":``,rounded:`[1lh]`,"px-4":``,"py-0.5":``,"outline-none":``,"backdrop-blur-md":``,"scrollbar-none":``,transition:`all duration-250 ease-in-out placeholder:all placeholder:duration-250 placeholder:ease-in-out`,class:Y([q(T)?`transition-colors-none placeholder:transition-colors-none`:``]),"default-height":`1lh`,onSubmit:J,onCompositionstart:n[5]||=e=>g.value=!0,onCompositionend:n[6]||=e=>g.value=!1},null,8,[`modelValue`,`placeholder`,`class`]),f.value.trim()||g.value?(R(),N(`button`,{key:0,w:`[calc(1lh+4px+4px)]`,h:`[calc(1lh+4px+4px)]`,"aspect-square":``,flex:``,"items-center":``,"self-end":``,"justify-center":``,"rounded-full":``,"outline-none":``,"backdrop-blur-md":``,text:`neutral-500 hover:neutral-600 dark:neutral-900 dark:hover:neutral-800`,bg:`primary-50/80 dark:neutral-100/80 hover:neutral-50`,transition:`all duration-250 ease-in-out`,onClick:J},n[10]||=[z(`div`,{"i-solar:arrow-up-outline":``},null,-1)])):M(``,!0)],4)])]))}}),yn=vn;const bn={class:`relative`},xn={absolute:``,"left-0":``,"right-0":``,"top-0":``,"w-full":``,"overflow-hidden":``};var Sn=A({__name:`AnimatedWave`,props:{height:{default:40},amplitude:{default:14},waveLength:{default:250},fillColor:{default:`oklch(95% 0.10 var(--chromatic-hue))`},direction:{default:`down`},movementDirection:{default:`left`},animationSpeed:{default:50}},setup(e){let t=e,n=K(t.height),r=K(t.amplitude),i=K(t.waveLength),a=K(t.fillColor),o=K(t.direction),s=K(t.movementDirection);function c(e,t,n,r,i){let a=[],o=Math.ceil(e/r),s=o*r,c=1,l=i===`up`?n:t-n;a.push(`M 0 ${l}`);let u=Math.PI*2/r;for(let e=0;e<=s;e+=c){let t=n*Math.sin(u*e),r=i===`up`?l-t:l+t;a.push(`L ${e} ${r}`)}let d=i===`up`?t:0;return a.push(`L ${s} ${d}`),a.push(`L 0 ${d} Z`),a.join(` `)}let l=O(()=>n.value+r.value*2),u=O(()=>{let e=`<svg width="${i.value}" height="${l.value}" xmlns="http://www.w3.org/2000/svg">
2
- <path d="${c(i.value,l.value,r.value,i.value,o.value)}"/>
3
- </svg>`;return`url(data:image/svg+xml;base64,${btoa(e)})`});return I(()=>[t.height,t.amplitude,t.waveLength,t.fillColor,t.direction,t.movementDirection],()=>{n.value=t.height,r.value=t.amplitude,i.value=t.waveLength,a.value=t.fillColor,o.value=t.direction,s.value=t.movementDirection},{immediate:!0}),(e,t)=>(R(),N(`div`,bn,[G(e.$slots,`default`,{},void 0,!0),z(`div`,xn,[z(`div`,{class:`colored-area wave`,style:X({background:a.value,height:`${l.value}px`,maskImage:u.value,WebkitMaskImage:u.value,"--wave-translate":`${-i.value}px`,"--animation-duration":`${i.value/e.animationSpeed}s`,"animation-direction":s.value===`left`?`normal`:`reverse`})},null,4)])]))}}),Cn=p(Sn,[[`__scopeId`,`data-v-33a54ad1`]]);export{Cn as b,yn as c,st as d,$e as e,pe as f,le as g};
 
 
 
 
assets/{AnimatedWave-Baeo-vvk.css → AnimatedWave-CW4ij04Q.css} RENAMED
@@ -1 +1 @@
1
- .cross-background-container[data-v-455eb62c]{--cross-color:oklch(.85 calc(var(--chromatic-chroma)*.3)var(--chromatic-hue)/.2);background-color:#fff;background:radial-gradient(circle,transparent 20%,#fff 20%,#fff 80%,transparent 80%,transparent),radial-gradient(circle,transparent 20%,#fff 20%,#fff 80%,transparent 80%,transparent)25px 25px,linear-gradient(var(--cross-color)2px,transparent 2px)0 -1px,linear-gradient(90deg,var(--cross-color)2px,#fff 2px)-1px 0;background-size:50px 50px,50px 50px,25px 25px,25px 25px}.dark .cross-background-container[data-v-455eb62c]{--cross-color:oklch(.2 calc(var(--chromatic-chroma)*.3)var(--chromatic-hue));background-color:#121212;background:radial-gradient(circle,transparent 20%,#121212 20%,#121212 80%,transparent 80%,transparent),radial-gradient(circle,transparent 20%,#121212 20%,#121212 80%,transparent 80%,transparent)25px 25px,linear-gradient(var(--cross-color)2px,transparent 2px)0 -1px,linear-gradient(90deg,var(--cross-color)2px,#121212 2px)-1px 0;background-size:50px 50px,50px 50px,25px 25px,25px 25px}.theme-colored[data-v-9c3d67a4]{filter:hue-rotate(calc(var(--chromatic-hue,0)*1deg))}.chat-history[data-v-23390392]{--gradient:linear-gradient(to bottom,#0000 0%,#000 20%);-webkit-mask-image:var(--gradient);-webkit-mask-image:var(--gradient);mask-image:var(--gradient);-webkit-mask-position:bottom;mask-position:bottom;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.fade-enter-active[data-v-35df7db7],.fade-leave-active[data-v-35df7db7]{transition:opacity .2s ease-in-out}.fade-enter-from[data-v-35df7db7],.fade-leave-to[data-v-35df7db7]{opacity:0}.fade-enter-to[data-v-35df7db7],.fade-leave-from[data-v-35df7db7]{opacity:1}.fade-side-pops-in-enter-active[data-v-225b2747],.fade-side-pops-in-leave-active[data-v-225b2747]{transition:all .2s ease-in-out}.fade-side-pops-in-enter-from[data-v-225b2747],.fade-side-pops-in-leave-to[data-v-225b2747]{opacity:0;transform:translate(-100%)scale(.8)}.fade-side-pops-in-enter-to[data-v-225b2747],.fade-side-pops-in-leave-from[data-v-225b2747]{opacity:1;transform:translate(0)scale(1)}@keyframes wave-animation-33a54ad1{0%{transform:translate(0)}to{transform:translate(var(--wave-translate,-250px))}}.wave[data-v-33a54ad1]{will-change:transform;width:200vw;animation:wave-animation-33a54ad1 var(--animation-duration,5s)linear infinite;-webkit-mask-repeat:repeat-x;mask-repeat:repeat-x}
 
1
+ .cross-background-container[data-v-455eb62c]{--cross-color:oklch(.85 calc(var(--chromatic-chroma)*.3)var(--chromatic-hue)/.2);background-color:#fff;background:radial-gradient(circle,transparent 20%,#fff 20%,#fff 80%,transparent 80%,transparent),radial-gradient(circle,transparent 20%,#fff 20%,#fff 80%,transparent 80%,transparent)25px 25px,linear-gradient(var(--cross-color)2px,transparent 2px)0 -1px,linear-gradient(90deg,var(--cross-color)2px,#fff 2px)-1px 0;background-size:50px 50px,50px 50px,25px 25px,25px 25px}.dark .cross-background-container[data-v-455eb62c]{--cross-color:oklch(.2 calc(var(--chromatic-chroma)*.3)var(--chromatic-hue));background-color:#121212;background:radial-gradient(circle,transparent 20%,#121212 20%,#121212 80%,transparent 80%,transparent),radial-gradient(circle,transparent 20%,#121212 20%,#121212 80%,transparent 80%,transparent)25px 25px,linear-gradient(var(--cross-color)2px,transparent 2px)0 -1px,linear-gradient(90deg,var(--cross-color)2px,#121212 2px)-1px 0;background-size:50px 50px,50px 50px,25px 25px,25px 25px}.theme-colored[data-v-9c3d67a4]{filter:hue-rotate(calc(var(--chromatic-hue,0)*1deg))}.chat-history[data-v-07f4ba53]{--gradient:linear-gradient(to bottom,#0000 0%,#000 20%);-webkit-mask-image:var(--gradient);-webkit-mask-image:var(--gradient);mask-image:var(--gradient);-webkit-mask-position:bottom;mask-position:bottom;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.fade-enter-active[data-v-35df7db7],.fade-leave-active[data-v-35df7db7]{transition:opacity .2s ease-in-out}.fade-enter-from[data-v-35df7db7],.fade-leave-to[data-v-35df7db7]{opacity:0}.fade-enter-to[data-v-35df7db7],.fade-leave-from[data-v-35df7db7]{opacity:1}.fade-side-pops-in-enter-active[data-v-225b2747],.fade-side-pops-in-leave-active[data-v-225b2747]{transition:all .2s ease-in-out}.fade-side-pops-in-enter-from[data-v-225b2747],.fade-side-pops-in-leave-to[data-v-225b2747]{opacity:0;transform:translate(-100%)scale(.8)}.fade-side-pops-in-enter-to[data-v-225b2747],.fade-side-pops-in-leave-from[data-v-225b2747]{opacity:1;transform:translate(0)scale(1)}@keyframes wave-animation-33a54ad1{0%{transform:translate(0)}to{transform:translate(var(--wave-translate,-250px))}}.wave[data-v-33a54ad1]{will-change:transform;width:200vw;animation:wave-animation-33a54ad1 var(--animation-duration,5s)linear infinite;-webkit-mask-repeat:repeat-x;mask-repeat:repeat-x}
assets/AnimatedWave-LDB6VA9i.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import{b as e}from"./Basic-C8SEHpp9.js";import{A as t,B as n,C as r,D as i,E as a,J as o,K as s,M as c,R as l,a5 as u,a6 as d,aI as f,aN as p,aV as m,aY as h,a_ as g,ab as _,ad as v,ai as y,b$ as b,b4 as x,b5 as S,bE as C,bF as w,bG as T,bH as E,bI as D,bJ as O,bK as k,bL as ee,bN as A,bO as j,bP as M,bQ as N,bR as P,bS as F,bT as I,bX as L,bY as R,bZ as z,b_ as B,c0 as V,c1 as H,c2 as U,c3 as W,c6 as G,c9 as K,ca as q,cb as J,cc as Y}from"./index-BQADcPRe.js";import{b as X,c as te,d as ne}from"./HeaderLink-DNs7ZhZu.js";import{d as Z,e as re,f as ie}from"./Scenes-CHUisyDY.js";function ae(e,t){let n=ie(e,t?.in);if(!re(n))throw RangeError(`Invalid time value`);let r=t?.format??`extended`,i=t?.representation??`complete`,a=``,o=r===`extended`?`-`:``,s=r===`extended`?`:`:``;if(i!==`time`){let e=Z(n.getDate(),2),t=Z(n.getMonth()+1,2),r=Z(n.getFullYear(),4);a=`${r}${o}${t}${o}${e}`}if(i!==`date`){let e=Z(n.getHours(),2),t=Z(n.getMinutes(),2),r=Z(n.getSeconds(),2),i=a===``?``:` `;a=`${a}${i}${e}${s}${t}${s}${r}`}return a}const oe={},se={class:`cross-background-container`};function ce(e,t){return V(),I(`div`,se,[O(e.$slots,`default`,{},void 0,!0)])}var le=p(oe,[[`render`,ce],[`__scopeId`,`data-v-455eb62c`]]);const ue={"mb-1":``,"w-full":``,"gap-2":``},de={"w-full":``};var fe=N({__name:`Header`,setup(e){return(e,t)=>(V(),I(`header`,ue,[H(`div`,de,[L(X)]),L(K(m),{class:`m-1 block max-h-[10lh] min-h-[1lh] rounded-lg bg-neutral-100 p-2 text-lg text-neutral-500 outline-none dark:bg-neutral-800 dark:text-neutral-400`,to:`/settings`},{default:P(()=>t[0]||=[H(`div`,{"i-solar:settings-minimalistic-bold-duotone":``},null,-1)]),_:1,__:[0]})]))}}),pe=fe,me=`/assets/worker-FPXhib_8.js`;const Q=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``),he=e=>{let t=typeof e;return t===`object`?e===null?`null`:e?.constructor?.name??`object`:t},ge=e=>{if(typeof e==`string`)return new TextEncoder().encode(e);if(e instanceof Uint8Array)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);throw TypeError(`The input must be a Uint8Array, a string, or an ArrayBuffer. Received a value of the type ${he(e)}.`)},_e=e=>{let t=ge(e),n=``,r,i=t.length;for(r=2;r<i;r+=3)n+=Q[t[r-2]>>2],n+=Q[(t[r-2]&3)<<4|t[r-1]>>4],n+=Q[(t[r-1]&15)<<2|t[r]>>6],n+=Q[t[r]&63];return r===i+1&&(n+=Q[t[r-2]>>2],n+=Q[(t[r-2]&3)<<4],n+=`==`),r===i&&(n+=Q[t[r-2]>>2],n+=Q[(t[r-2]&3)<<4|t[r-1]>>4],n+=Q[(t[r-1]&15)<<2],n+=`=`),n};function $(e,t,n){for(let r=0;r<n.length;r++)e.setUint8(t+r,n.charCodeAt(r))}function ve(e,t,n=1){let r=n,i=e.byteLength,a=new ArrayBuffer(44+i*2),o=new DataView(a);$(o,0,`RIFF`),o.setUint32(4,36+i*2,!0),$(o,8,`WAVE`),$(o,12,`fmt `),o.setUint32(16,16,!0),o.setUint16(20,1,!0),o.setUint16(22,r,!0),o.setUint32(24,t,!0),o.setUint32(28,t*r*2,!0),o.setUint16(32,r*2,!0),o.setUint16(34,16,!0),$(o,36,`data`),o.setUint32(40,i*2,!0);let s=44;for(let t=0;t<i;t++){let n=Math.max(-1,Math.min(1,e[t])),r=n<0?n*32768:n*32767;o.setInt16(s+t*2,r,!0)}return a}function ye(e,t){return _e(ve(e,t))}const be={relative:``,px:`<sm:2`,py:`<sm:2`,flex:`~ col`,rounded:`lg`,"overflow-hidden":``},xe={key:0,flex:``,mr:`12`},Se={flex:`~ col`,border:`2 solid violet-200/50 dark:violet-500/50`,shadow:`md violet-200/50 dark:none`,"min-w-20":``,"rounded-lg":``,"px-2":``,"py-1":``,h:`unset <sm:fit`,bg:`<md:violet-500/25`},Ce={flex:`~ row`,"gap-2":``},we={"flex-1":``},Te={"text-xs":``,text:`violet-400/90 dark:violet-600/90`,"font-normal":``,class:`inline <sm:hidden`},Ee={key:0,"i-eos-icons:three-dots-loading":``},De=[`innerHTML`],Oe={key:1,flex:``,mr:`12`},ke={flex:`~ col`,border:`2 solid primary-200/50 dark:primary-500/50`,shadow:`md primary-200/50 dark:none`,"min-w-20":``,"rounded-lg":``,"px-2":``,"py-1":``,h:`unset <sm:fit`,bg:`<md:primary-500/25`},Ae={"text-xs":``,text:`primary-400/90 dark:primary-600/90`,"font-normal":``,class:`inline <sm:hidden`},je={key:0,class:`markdown-content break-words`,text:`xs primary-400`},Me={key:0},Ne={p:`1`,border:`1 solid primary-200`,"rounded-lg":``,m:`y-1`,bg:`primary-100`},Pe={key:1},Fe=[`innerHTML`],Ie={key:1,"i-eos-icons:three-dots-loading":``},Le={key:2,flex:`~ row-reverse`,ml:`12`},Re={flex:`~ col`,border:`2 solid cyan-200/50 dark:cyan-500/50`,shadow:`md cyan-200/50 dark:none`,px:`2`,h:`unset <sm:fit`,"min-w-20":``,"rounded-lg":``,"px-2":``,"py-1":``,bg:`<md:cyan-500/25`},ze={"text-xs":``,text:`cyan-400/90 dark:cyan-600/90`,"font-normal":``,class:`inline <sm:hidden`},Be=[`innerHTML`],Ve={key:1};var He=N({__name:`ChatHistory`,setup(e){let t=G(),{t:n}=c(),{messages:r,sending:i}=h(a()),{process:o}=d(),{onBeforeMessageComposed:s,onTokenLiteral:l}=a();return s(async()=>{M().then(()=>{t.value&&(t.value.scrollTop=t.value.scrollHeight)})}),l(async()=>{M().then(()=>{t.value&&(t.value.scrollTop=t.value.scrollHeight)})}),(e,a)=>{let s=b(`auto-animate`);return V(),I(`div`,be,[a[3]||=H(`div`,{"flex-1":``},null,-1),k((V(),I(`div`,{ref_key:`chatHistoryRef`,ref:t,"h-full":``,"w-full":``,flex:`~ col`,"overflow-scroll":``},[a[2]||=H(`div`,{"flex-1":``},null,-1),(V(!0),I(A,null,U(K(r),(e,t)=>(V(),I(`div`,{key:t,"mb-2":``},[e.role===`error`?(V(),I(`div`,xe,[H(`div`,Se,[H(`div`,Ce,[H(`div`,we,[H(`span`,Te,J(K(n)(`stage.chat.message.character-name.core-system`)),1)]),a[0]||=H(`div`,{"i-solar:danger-triangle-bold-duotone":``,"text-violet-500":``},null,-1)]),K(i)&&t===K(r).length-1?(V(),I(`div`,Ee)):(V(),I(`div`,{key:1,class:`markdown-content break-words text-violet-500`,text:`base <sm:xs`,innerHTML:K(o)(e.content)},null,8,De))])])):F(``,!0),e.role===`assistant`?(V(),I(`div`,Oe,[H(`div`,ke,[H(`div`,null,[H(`span`,Ae,J(K(n)(`stage.chat.message.character-name.airi`)),1)]),e.content&&t===K(r).length-1?(V(),I(`div`,je,[(V(!0),I(A,null,U(e.slices,(e,t)=>(V(),I(`div`,{key:t},[e.type===`tool-call`?(V(),I(`div`,Me,[H(`div`,Ne,[a[1]||=W(` Called: `),H(`code`,null,J(e.toolCall.toolName),1)])])):e.type===`tool-call-result`?(V(),I(`div`,Pe)):(V(),I(`div`,{key:2,innerHTML:K(o)(e.text)},null,8,Fe))]))),128))])):(V(),I(`div`,Ie))])])):e.role===`user`?(V(),I(`div`,Le,[H(`div`,Re,[H(`div`,null,[H(`span`,ze,J(K(n)(`stage.chat.message.character-name.you`)),1)]),e.content?(V(),I(`div`,{key:0,class:`markdown-content break-words`,text:`base <sm:xs`,innerHTML:K(o)(e.content)},null,8,Be)):(V(),I(`div`,Ve))])])):F(``,!0)]))),128))])),[[s]])])}}}),Ue=He;const We={flex:`col`,"items-center":``,"pt-4":``},Ge={flex:`~ row`,"w-fit":``,"rounded-lg":``},Ke=[`checked`,`aria-checked`],qe={flex:`~ row`,"items-center":``},Je={"min-w":`3em`},Ye={"h-full":``,"max-h":`[85vh]`,"w-full":``,py:`4`},Xe={flex:`~ col`,border:`solid 4 primary-200/20 dark:primary-400/20`,"h-full":``,"w-full":``,"overflow-scroll":``,"rounded-xl":``,bg:`primary-50/50 dark:primary-950/70`,"backdrop-blur-md":``},Ze={h:`<md:full`,flex:``,"gap-2":``};var Qe=N({__name:`InteractiveArea`,setup(t){let i=G(``),d=G(!1),f=G(`chat`),p=G(!1),m=G(!1),g=s(),{activeProvider:v,activeModel:y}=h(o()),{themeColorsHueDynamic:b}=h(r()),{askPermission:x}=n(),{enabled:S,selectedAudioInput:C}=h(n()),{send:T,onAfterMessageComposed:E,discoverToolsCompatibility:D}=a(),{messages:O}=h(a()),{audioContext:A}=_(),{t:j}=c(),{transcribe:M,terminate:N}=l(me,{onComplete:async e=>{if(!e||!e.trim())return;let t=g.getProviderConfig(v.value);await T(e,{chatProvider:await g.getProviderInstance(v.value),model:y.value,providerConfig:t})}});async function P(){if(!(!i.value.trim()||m.value))try{let e=g.getProviderConfig(v.value);await T(i.value,{chatProvider:await g.getProviderInstance(v.value),model:y.value,providerConfig:e})}catch(e){O.value.pop(),O.value.push({role:`error`,content:e.message})}}let{destroy:F,start:R}=u(C,{onSpeechStart:()=>{d.value=!0},onVADMisfire:()=>{d.value=!1},onSpeechEnd:e=>{d.value=!1,B(e.buffer)},auto:!1});async function B(e){await A.resume();let t=await ye(e,A.sampleRate);M({type:`generate`,data:{audio:t,language:`en`}})}return z(S,async e=>{e===!1&&(F(),N())}),z(p,async e=>{e&&await x()}),z([v,y],async()=>{v.value&&y.value&&await D(y.value,await g.getProviderInstance(v.value),[])}),ee(()=>{R()}),E(async()=>{i.value=``}),(t,n)=>(V(),I(`div`,We,[H(`fieldset`,Ge,[H(`label`,{class:Y([f.value===`chat`?`bg-primary-100 dark:bg-primary-900`:`bg-white dark:bg-primary-950`,f.value===`chat`?`text-primary-500 dark:text-primary-500`:``,{"transition-colors-none ":K(b)}]),flex:`~ row`,checked:f.value===`chat`,"aria-checked":f.value===`chat`,border:`solid 2 primary-100 dark:primary-900`,text:`primary-300 hover:primary-500 dark:primary-300/50 dark:hover:primary-500`,transition:`all duration-250 ease-in-out`,"cursor-pointer":``,"items-center":``,"gap-1":``,"rounded-lg":``,"px-2":``},[k(H(`input`,{"onUpdate:modelValue":n[0]||=e=>f.value=e,type:`radio`,name:`tab`,value:`chat`,hidden:``},null,512),[[w,f.value]]),n[4]||=H(`div`,{"i-solar:dialog-2-bold-duotone":``,text:`2xl`,transform:`translate-y--2`},null,-1),H(`div`,qe,[H(`span`,Je,J(K(j)(`stage.chat.tabs.chat`)),1)])],10,Ke)]),H(`div`,Ye,[H(`div`,Xe,[L(Ue,{"h-full":``,"flex-1":``,"p-4":``,w:`full`,"max-h":`<md:[60%]`}),H(`div`,Ze,[L(K(e),{modelValue:i.value,"onUpdate:modelValue":n[1]||=e=>i.value=e,placeholder:K(j)(`stage.message`),text:`primary-500 hover:primary-600 dark:primary-300/50 dark:hover:primary-500 placeholder:primary-400 placeholder:hover:primary-500 placeholder:dark:primary-300/50 placeholder:dark:hover:primary-500`,bg:`primary-200/20 dark:primary-400/20`,"min-h":`[100px]`,"max-h":`[300px]`,"w-full":``,"rounded-t-xl":``,"p-4":``,"font-medium":``,"outline-none":``,transition:`all duration-250 ease-in-out placeholder:all placeholder:duration-250 placeholder:ease-in-out`,class:Y({"transition-colors-none placeholder:transition-colors-none":K(b)}),onSubmit:P,onCompositionstart:n[2]||=e=>m.value=!0,onCompositionend:n[3]||=e=>m.value=!1},null,8,[`modelValue`,`placeholder`,`class`])])])])]))}}),$e=Qe;const et=[`src`],tt=[`src`];var nt=N({__name:`MobileHeaderLink`,setup(e){let t=x();return(e,n)=>(V(),E(K(m),{to:`/`,flex:`~`,"items-center":``,"gap-2":``,"px-2":``,"text-nowrap":``,"text-2xl":``,"outline-none":``},{default:P(()=>[K(t)?(V(),I(`img`,{key:0,src:K(ne),"h-8":``,"w-8":``,class:`theme-colored`},null,8,et)):(V(),I(`img`,{key:1,src:K(te),"h-8":``,"w-8":``,class:`theme-colored`},null,8,tt))]),_:1}))}}),rt=p(nt,[[`__scopeId`,`data-v-9c3d67a4`]]);const it={"mb-1":``,"w-full":``,"gap-2":``},at={"w-full":``,flex:``,"justify-center":``};var ot=N({__name:`MobileHeader`,setup(e){return(e,t)=>(V(),I(`header`,it,[H(`div`,at,[L(rt)])]))}}),st=ot;const ct={flex:`~ col`,rounded:`lg`,"overflow-hidden":``},lt={key:0,flex:``,mr:`12`},ut={flex:`~ col`,shadow:`md violet-200/20 dark:none`,"min-w-20":``,"rounded-lg":``,"px-3":``,"py-2":``,h:`unset <sm:fit`,bg:`violet-100 dark:violet-800`,"backdrop-blur-sm":``},dt={flex:`~ row`,"items-center":``,"justify-between":``,"gap-2":``},ft={"text-xs":``,text:`violet-400/90 dark:violet-600/90`,"font-normal":``},pt=[`innerHTML`],mt={key:1,"i-eos-icons:three-dots-loading":``},ht={key:1,flex:``,mr:`12`},gt={flex:`~ col`,shadow:`md primary-200/20 dark:none`,"min-w-20":``,"rounded-lg":``,"px-3":``,"py-2":``,h:`unset <sm:fit`,bg:`primary-50 dark:primary-800`,"backdrop-blur-md":``},_t={text:`primary-400/90 dark:primary-600/90`,"text-xs":``,"font-normal":``,class:`inline <sm:hidden`},vt=[`innerHTML`],yt={key:1,"i-eos-icons:three-dots-loading":``},bt={key:2,flex:`~`},xt={flex:`~ col`,shadow:`md cyan-200/20 dark:none`,px:`2`,h:`unset <sm:fit`,"min-w-20":``,"rounded-lg":``,"px-3":``,"py-2":``,bg:`white dark:neutral-800`,"backdrop-blur-md":``},St={"text-xs":``,text:`cyan-400/90 dark:cyan-600/90`,"font-normal":``,class:`inline <sm:hidden`},Ct=[`innerHTML`],wt={key:1};var Tt=N({__name:`MobileChatHistory`,setup(e){let t=G(),{t:n}=c(),{messages:r}=h(a()),{process:i}=d(),{onBeforeMessageComposed:o,onTokenLiteral:s}=a();return o(async()=>{M().then(()=>{t.value&&(t.value.scrollTop=t.value.scrollHeight)})}),s(async()=>{M().then(()=>{t.value&&(t.value.scrollTop=t.value.scrollHeight)})}),(e,a)=>{let o=b(`auto-animate`);return V(),I(`div`,ct,[k((V(),I(`div`,{ref_key:`chatHistoryRef`,ref:t,"max-h":`35dvh`,"z-5":``,flex:`~ col`,"h-full":``,"w-full":``,"overflow-scroll":``,class:`chat-history`},[(V(!0),I(A,null,U(K(r),(e,t)=>(V(),I(`div`,{key:t,"mb-2":``},[e.role===`error`?(V(),I(`div`,lt,[H(`div`,ut,[H(`div`,dt,[H(`div`,null,[H(`span`,ft,J(K(n)(`stage.chat.message.character-name.core-system`)),1)]),a[0]||=H(`div`,{"i-solar:danger-triangle-bold-duotone":``,"text-violet-500":``},null,-1)]),e.content?(V(),I(`div`,{key:0,class:`markdown-content break-words`,text:`base <sm:xs`,innerHTML:K(i)(e.content)},null,8,pt)):(V(),I(`div`,mt))])])):F(``,!0),e.role===`assistant`?(V(),I(`div`,ht,[H(`div`,gt,[H(`div`,null,[H(`span`,_t,J(K(n)(`stage.chat.message.character-name.airi`)),1)]),e.content?(V(),I(`div`,{key:0,class:`markdown-content break-words`,text:`base <sm:xs`,innerHTML:K(i)(e.content)},null,8,vt)):(V(),I(`div`,yt))])])):e.role===`user`?(V(),I(`div`,bt,[H(`div`,xt,[H(`div`,null,[H(`span`,St,J(K(n)(`stage.chat.message.character-name.you`)),1)]),e.content?(V(),I(`div`,{key:0,class:`markdown-content break-words`,text:`base <sm:xs`,innerHTML:K(i)(e.content)},null,8,Ct)):(V(),I(`div`,wt))])])):F(``,!0)]))),128))])),[[o]])])}}}),Et=p(Tt,[[`__scopeId`,`data-v-07f4ba53`]]),Dt=class extends Date{constructor(){super(),this.setTime(arguments.length===0?Date.now():arguments.length===1?typeof arguments[0]==`string`?+new Date(arguments[0]):arguments[0]:Date.UTC(...arguments))}getTimezoneOffset(){return 0}};const Ot=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(Ot.test(e)){let t=Date.prototype[e.replace(Ot,`$1UTC`)];t&&(Dt.prototype[e]=t)}});var kt=class extends Dt{toString(){let e=this.toDateString(),t=this.toTimeString();return`${e} ${t}`}toDateString(){let e=At.format(this),t=jt.format(this),n=this.getFullYear();return`${e} ${t} ${n}`}toTimeString(){let e=Mt.format(this);return`${e} GMT+0000 (Coordinated Universal Time)`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{timeZone:`UTC`,...t})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{timeZone:`UTC`,...t})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{timeZone:`UTC`,...t})}},At=new Intl.DateTimeFormat(`en-US`,{weekday:`short`,timeZone:`UTC`}),jt=new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`,timeZone:`UTC`}),Mt=new Intl.DateTimeFormat(`en-GB`,{hour12:!1,hour:`numeric`,minute:`numeric`,second:`numeric`,timeZone:`UTC`});const Nt=`130344b2e4`,Pt=`main`,Ft=`Mon Jul 28 11:42:19 2025 +0800`,It={"max-w":`calc[100%-2rem]`,"mx-auto":``,"h-full":``,flex:``,"flex-col":``,"pt-14":``},Lt={"flex-1":``},Rt={grid:`~ cols-[70px_1fr]`,"mt-4":``,"gap-2":``,"text-sm":``},zt={"font-mono":``},Bt={"font-mono":``},Vt={"font-mono":``};var Ht=N({__name:`About`,setup(e){let t=G(!1),n=ae(new kt(Ft));return(e,r)=>(V(),I(A,null,[H(`button`,{border:`2 solid neutral-100/60 dark:neutral-800/30`,bg:`neutral-50/70 dark:neutral-800/70`,"w-fit":``,flex:``,"items-center":``,"self-end":``,"justify-center":``,"rounded-xl":``,"p-2":``,"backdrop-blur-md":``,title:`About`,onClick:r[0]||=e=>t.value=!t.value},r[2]||=[H(`div`,{"i-solar:info-circle-outline":``,"size-5":``,text:`neutral-500 dark:neutral-400`},null,-1)]),L(K(v),{modelValue:t.value,"onUpdate:modelValue":r[1]||=e=>t.value=e},{default:P(()=>[H(`div`,It,[r[7]||=H(`div`,{"font-sans-rounded":``,"mb-14":``,"text-center":``,"text-5xl":``},[H(`span`,{text:`neutral-400 dark:neutral-100/65`},`Project`),W(),H(`span`,{text:`pink-400 dark:pink-300/90`},`AIRI`),H(`div`,{"mt-2":``,"text-base":``},` Web ver. `)],-1),H(`div`,Lt,[r[6]||=H(`div`,{text:`neutral-500 dark:neutral-400`},` Application build information `,-1),H(`div`,Rt,[r[3]||=H(`div`,{text:`neutral-500 dark:neutral-400`},` Branch `,-1),H(`div`,zt,J(K(Pt)),1),r[4]||=H(`div`,{text:`neutral-500 dark:neutral-400`},` Commit `,-1),H(`div`,Bt,J(K(Nt).substring(0,7)),1),r[5]||=H(`div`,{text:`neutral-500 dark:neutral-400`},` Built on `,-1),H(`div`,Vt,J(K(n)),1)])]),r[8]||=H(`div`,{"my-10":``},[H(`div`,{text:`neutral-500 dark:neutral-400`},` About `),H(`div`,{"mt-4":``,flex:``,"flex-col":``,"gap-2":``},[H(`a`,{class:Y([`block`,`flex items-center gap-2`,`rounded-xl px-3 py-2 lg:px-5 lg:py-3 outline-none backdrop-blur-md active:scale-95 focus:outline-none text-nowrap text-sm md:text-base`,`text-slate-700 dark:text-slate-100`]),bg:`black/4 dark:black/10 dark:hover:white/30`,transition:`colors,transform duration-200 ease-in-out`,href:`https://airi.moeru.ai/docs/`,target:`_blank`},[H(`div`,{"i-solar:home-smile-outline":``}),H(`div`,null,`Home`)]),H(`a`,{href:`https://airi.moeru.ai/docs/en/docs/overview/`,class:Y([`block`,`flex items-center gap-2`,`rounded-xl px-3 py-2 lg:px-5 lg:py-3 outline-none backdrop-blur-md active:scale-95 focus:outline-none text-nowrap text-sm md:text-base`,`text-slate-700 dark:text-slate-100`]),bg:`black/4 dark:black/10 dark:hover:white/30`,transition:`colors,transform duration-200 ease-in-out`,target:`_blank`},[H(`div`,{"i-solar:document-add-outline":``}),H(`div`,null,`Documentations`)]),H(`a`,{href:`https://github.com/moeru-ai/airi`,class:Y([`block`,`flex items-center gap-2`,`rounded-xl px-3 py-2 lg:px-5 lg:py-3 outline-none backdrop-blur-md active:scale-95 focus:outline-none text-nowrap text-sm md:text-base`,`text-slate-700 dark:text-slate-100`]),bg:`black/4 dark:black/10 dark:hover:white/30`,transition:`colors,transform duration-200 ease-in-out`,target:`_blank`},[H(`div`,{"i-simple-icons:github":``}),H(`div`,null,`GitHub`)])])],-1)])]),_:1},8,[`modelValue`])],64))}}),Ut=Ht;const Wt={"w-full":``,flex:``,"flex-1":``,"items-center":``,"self-end":``,"justify-end":``,"gap-2":``},Gt={key:0,"w-full":``,flex:``,"justify-between":``,"gap-2":``},Kt={key:0,"i-solar:tuning-outline":``,"size-5":``},qt={key:1,"i-solar:alt-arrow-right-outline":``,"size-5":``};var Jt=N({__name:`ViewControls`,props:{modelValue:{required:!0},modelModifiers:{}},emits:R([`reset`],[`update:modelValue`]),setup(e,{emit:t}){let n=t,{stageView:i,stageViewControlsEnabled:a}=h(r()),o=D(e,`modelValue`);function s(e){if(o.value===e){n(`reset`);return}o.value=e}return(e,t)=>(V(),I(`div`,Wt,[L(C,{name:`fade`},{default:P(()=>[K(a)?(V(),I(`div`,Gt,[L(K(y),{variant:`secondary-muted`,toggled:o.value===`x`,"w-full":``,onClick:t[0]||=e=>s(`x`)},{default:P(()=>t[5]||=[W(` X `)]),_:1,__:[5]},8,[`toggled`]),L(K(y),{variant:`secondary-muted`,toggled:o.value===`y`,"w-full":``,onClick:t[1]||=e=>s(`y`)},{default:P(()=>t[6]||=[W(` Y `)]),_:1,__:[6]},8,[`toggled`]),K(i)===`3d`?(V(),E(K(y),{key:0,variant:`secondary-muted`,toggled:o.value===`z`,"w-full":``,onClick:t[2]||=e=>s(`z`)},{default:P(()=>t[7]||=[W(` Z `)]),_:1,__:[7]},8,[`toggled`])):F(``,!0),L(K(y),{variant:`secondary-muted`,toggled:o.value===`scale`,"w-full":``,onClick:t[3]||=e=>s(`scale`)},{default:P(()=>t[8]||=[W(` Scale `)]),_:1,__:[8]},8,[`toggled`])])):F(``,!0)]),_:1}),H(`button`,{"w-fit":``,flex:``,"items-center":``,"self-end":``,"justify-center":``,"justify-self-end":``,"rounded-xl":``,"p-2":``,"backdrop-blur-md":``,border:`2 solid neutral-100/60 dark:neutral-800/30`,bg:`neutral-50/70 dark:neutral-800/70`,title:`View`,text:`neutral-500 dark:neutral-400`,onClick:t[4]||=e=>a.value=!K(a)},[L(C,{name:`fade`,mode:`out-in`},{default:P(()=>[K(a)?(V(),I(`div`,qt)):(V(),I(`div`,Kt))]),_:1})])]))}}),Yt=p(Jt,[[`__scopeId`,`data-v-35df7db7`]]);const Xt={key:0},Zt={key:0,relative:``,class:`[&_.round-range-tooltip]:hover:opacity-100`},Qt={class:`round-range-tooltip`,top:`50%`,"translate-y":`[-50%]`,absolute:``,"left-10":``,"font-mono":``,"op-0":``,transition:`all duration-200 ease-in-out`},$t={key:1,relative:``,class:`[&_.round-range-tooltip]:hover:opacity-100`},en={class:`round-range-tooltip`,top:`50%`,"translate-y":`[-50%]`,absolute:``,"left-10":``,"font-mono":``,"op-0":``,transition:`all duration-200 ease-in-out`},tn={key:2,relative:``,class:`[&_.round-range-tooltip]:hover:opacity-100`},nn={class:`round-range-tooltip`,top:`50%`,"translate-y":`[-50%]`,absolute:``,"left-10":``,"font-mono":``,"op-0":``,transition:`all duration-200 ease-in-out`},rn={key:3,relative:``,class:`[&_.round-range-tooltip]:hover:opacity-100`},an={class:`round-range-tooltip`,top:`50%`,"translate-y":`[-50%]`,absolute:``,"left-10":``,"font-mono":``,"op-0":``,transition:`all duration-200 ease-in-out`};var on=N({__name:`Inputs`,props:{mode:{}},setup(e,{expose:n}){let a=e,{stageView:o,stageViewControlsEnabled:s}=h(r()),{scale:c,modelOffset:l,modelSize:u}=h(t()),{scale:d,position:p}=h(i()),m=j({get:()=>{switch(o.value){case`2d`:return p.value.x;case`3d`:return l.value.x;default:return 0}},set:e=>{switch(o.value){case`2d`:p.value.x=e;break;case`3d`:l.value.x=e;break;default:break}}}),g=j(()=>o.value===`2d`?-500:-u.value.x-10),_=j(()=>o.value===`2d`?500:u.value.x+10),v=j({get:()=>{switch(o.value){case`2d`:return p.value.y;case`3d`:return l.value.y;default:return 0}},set:e=>{switch(o.value){case`2d`:p.value.y=e;break;case`3d`:l.value.y=e;break;default:break}}}),y=j(()=>o.value===`2d`?-500:-u.value.y-10),b=j(()=>o.value===`2d`?500:u.value.y+10),x=j({get:()=>{switch(o.value){case`2d`:return 0;case`3d`:return l.value.z;default:return 0}},set:e=>{switch(o.value){case`2d`:break;case`3d`:l.value.z=e;break;default:break}}}),S=j(()=>o.value===`2d`?-500:-u.value.z-10),w=j(()=>o.value===`2d`?500:u.value.z+10),T=j({get:()=>o.value===`2d`?d.value:c.value,set:e=>{o.value===`2d`?d.value=e:c.value=e}});function D(){switch(a.mode){case`x`:m.value=0;break;case`y`:v.value=0;break;case`z`:x.value=0;break;case`scale`:T.value=1;break}}return n({resetOnMode:D}),(e,t)=>(V(),E(C,{name:`fade-side-pops-in`},{default:P(()=>[K(s)?(V(),I(`div`,Xt,[L(C,{name:`fade-side-pops-in`,mode:`out-in`},{default:P(()=>[a.mode===`x`?(V(),I(`div`,Zt,[L(K(f),{modelValue:m.value,"onUpdate:modelValue":t[0]||=e=>m.value=e,min:g.value,max:_.value,step:.01,"data-direction":`vertical`,h:`50%`,"write-vertical-left":``},null,8,[`modelValue`,`min`,`max`]),H(`div`,Qt,J(m.value.toFixed(2)),1)])):a.mode===`y`?(V(),I(`div`,$t,[L(K(f),{modelValue:v.value,"onUpdate:modelValue":t[1]||=e=>v.value=e,min:y.value,max:b.value,step:.01,"write-vertical-left":``,h:`50%`,"data-direction":`vertical`},null,8,[`modelValue`,`min`,`max`]),H(`div`,en,J(v.value.toFixed(2)),1)])):K(o)===`3d`&&a.mode===`z`?(V(),I(`div`,tn,[L(K(f),{modelValue:x.value,"onUpdate:modelValue":t[2]||=e=>x.value=e,min:S.value,max:w.value,step:.01,"write-vertical-left":``,h:`50%`,"data-direction":`vertical`},null,8,[`modelValue`,`min`,`max`]),H(`div`,nn,J(x.value.toFixed(2)),1)])):a.mode===`scale`?(V(),I(`div`,rn,[L(K(f),{modelValue:T.value,"onUpdate:modelValue":t[3]||=e=>T.value=e,min:0,max:3,step:1e-4,"write-vertical-left":``,h:`50%`,"data-direction":`vertical`},null,8,[`modelValue`]),H(`div`,an,J(T.value.toFixed(2)),1)])):F(``,!0)]),_:1})])):F(``,!0)]),_:1}))}}),sn=p(on,[[`__scopeId`,`data-v-225b2747`]]);const cn={fixed:``,"bottom-0":``,"w-full":``,flex:``,"flex-col":``},ln={relative:``,"w-full":``,"self-end":``},un={top:`50%`,"translate-y":`[-50%]`,fixed:``,"z-15":``,"px-3":``},dn={"translate-y":`[-100%]`,absolute:``,"right-0":``,"w-full":``,"px-3":``,"pb-3":``,"font-sans":``},fn={flex:`~ col`,"w-full":``,"gap-1":``},pn={key:0,"i-solar:moon-outline":``,"size-5":``,text:`neutral-500 dark:neutral-400`},mn={key:1,"i-solar:sun-2-outline":``,"size-5":``,text:`neutral-500 dark:neutral-400`},hn={key:0,"size-5":``,text:`neutral-500 dark:neutral-400`,"inline-flex":``,"items-center":``,"justify-center":``},gn={key:1,"size-5":``,text:`neutral-500 dark:neutral-400`,"inline-flex":``,"items-center":``,"justify-center":``};var _n=N({__name:`MobileInteractiveArea`,setup(t){let i=x({disableTransition:!1}),l=G(`scale`),d=T(`viewControlsInputs`),f=G(``),p=G(!1),_=G(!1),v=S(),y=s(),{activeProvider:b,activeModel:w}=h(o());g(document.documentElement,()=>v.update());let{themeColorsHueDynamic:D,stageView:O,stageViewControlsEnabled:k}=h(r()),{enabled:A,selectedAudioInput:j}=h(n()),{send:M,onAfterMessageComposed:N,discoverToolsCompatibility:R}=a(),{messages:U}=h(a()),{t:W}=c();async function J(){if(!(!f.value.trim()||_.value))try{let e=y.getProviderConfig(b.value);await M(f.value,{chatProvider:await y.getProviderInstance(b.value),model:w.value,providerConfig:e})}catch(e){U.value.pop(),U.value.push({role:`error`,content:e.message})}}let{destroy:X,start:te}=u(j,{onSpeechStart:()=>{p.value=!0},onVADMisfire:()=>{p.value=!1},onSpeechEnd:e=>{p.value=!1,ne(e)},auto:!1});function ne(e){alert(`Transcription is not implemented yet`)}return z(A,async e=>{e===!1&&X()}),N(async()=>{f.value=``}),z([b,w],async()=>{b.value&&w.value&&await R(w.value,await y.getProviderInstance(b.value),[])}),ee(()=>{te(),v.update()}),(t,n)=>(V(),I(`div`,cn,[(V(),E(B,null,[L(C,{name:`fade`},{default:P(()=>[K(k)?F(``,!0):(V(),E(Et,{key:0,"max-w":`[calc(100%-3.5rem)]`,"w-full":``,"self-start":``,"pl-3":``}))]),_:1})],1024)),H(`div`,ln,[H(`div`,un,[L(sn,{ref:`viewControlsInputs`,mode:l.value},null,8,[`mode`])]),H(`div`,dn,[H(`div`,fn,[L(Ut),H(`button`,{border:`2 solid neutral-100/60 dark:neutral-800/30`,bg:`neutral-50/70 dark:neutral-800/70`,"w-fit":``,flex:``,"items-center":``,"self-end":``,"justify-center":``,"rounded-xl":``,"p-2":``,"backdrop-blur-md":``,title:`Theme`,onClick:n[0]||=e=>i.value=!K(i)},[L(C,{name:`fade`,mode:`out-in`},{default:P(()=>[K(i)?(V(),I(`div`,pn)):(V(),I(`div`,mn))]),_:1})]),L(K(m),{to:`/settings`,border:`2 solid neutral-100/60 dark:neutral-800/30`,bg:`neutral-50/70 dark:neutral-800/70`,"w-fit":``,flex:``,"items-center":``,"self-end":``,"justify-center":``,"rounded-xl":``,"p-2":``,"backdrop-blur-md":``,title:`Settings`},{default:P(()=>n[7]||=[H(`div`,{"i-solar:settings-outline":``,"size-5":``,text:`neutral-500 dark:neutral-400`},null,-1)]),_:1,__:[7]}),H(`button`,{border:`2 solid neutral-100/60 dark:neutral-800/30`,bg:`neutral-50/70 dark:neutral-800/70`,"w-fit":``,flex:``,"items-center":``,"self-end":``,"justify-center":``,"rounded-xl":``,"p-2":``,"backdrop-blur-md":``,title:`Stage View`,onClick:n[1]||=e=>O.value=K(O)===`2d`?`3d`:`2d`},[K(O)===`2d`?(V(),I(`div`,hn,n[8]||=[H(`span`,null,`2D`,-1)])):F(``,!0),K(O)===`3d`?(V(),I(`div`,gn,n[9]||=[H(`span`,null,`3D`,-1)])):F(``,!0)]),L(Yt,{modelValue:l.value,"onUpdate:modelValue":n[2]||=e=>l.value=e,onReset:n[3]||=()=>d.value?.resetOnMode()},null,8,[`modelValue`])])]),H(`div`,{bg:`white dark:neutral-800`,"max-h-100dvh":``,"max-w-100dvw":``,"w-full":``,flex:``,"gap-1":``,"overflow-auto":``,"px-3":``,"pt-2":``,style:q({paddingBottom:`${Math.max(Number.parseFloat(K(v).bottom.value.replace(`px`,``)),12)}px`})},[L(K(e),{modelValue:f.value,"onUpdate:modelValue":n[4]||=e=>f.value=e,placeholder:K(W)(`stage.message`),border:`solid 2 neutral-200/60 dark:neutral-700/60`,text:`neutral-500 hover:neutral-600 dark:neutral-100 dark:hover:neutral-200 placeholder:neutral-400 placeholder:hover:neutral-500 placeholder:dark:neutral-300 placeholder:dark:hover:neutral-400`,bg:`neutral-100/80 dark:neutral-950/80`,"max-h":`[10lh]`,"min-h":`[calc(1lh+4px+4px)]`,"w-full":``,"resize-none":``,"overflow-y-scroll":``,rounded:`[1lh]`,"px-4":``,"py-0.5":``,"outline-none":``,"backdrop-blur-md":``,"scrollbar-none":``,transition:`all duration-250 ease-in-out placeholder:all placeholder:duration-250 placeholder:ease-in-out`,class:Y([K(D)?`transition-colors-none placeholder:transition-colors-none`:``]),"default-height":`1lh`,onSubmit:()=>{},onCompositionstart:n[5]||=e=>_.value=!0,onCompositionend:n[6]||=e=>_.value=!1},null,8,[`modelValue`,`placeholder`,`class`]),f.value.trim()||_.value?(V(),I(`button`,{key:0,w:`[calc(1lh+4px+4px)]`,h:`[calc(1lh+4px+4px)]`,"aspect-square":``,flex:``,"items-center":``,"self-end":``,"justify-center":``,"rounded-full":``,"outline-none":``,"backdrop-blur-md":``,text:`neutral-500 hover:neutral-600 dark:neutral-900 dark:hover:neutral-800`,bg:`primary-50/80 dark:neutral-100/80 hover:neutral-50`,transition:`all duration-250 ease-in-out`,onClick:J},n[10]||=[H(`div`,{"i-solar:arrow-up-outline":``},null,-1)])):F(``,!0)],4)])]))}}),vn=_n;const yn={class:`relative`},bn={absolute:``,"left-0":``,"right-0":``,"top-0":``,"w-full":``,"overflow-hidden":``};var xn=N({__name:`AnimatedWave`,props:{height:{default:40},amplitude:{default:14},waveLength:{default:250},fillColor:{default:`oklch(95% 0.10 var(--chromatic-hue))`},direction:{default:`down`},movementDirection:{default:`left`},animationSpeed:{default:50}},setup(e){let t=e,n=G(t.height),r=G(t.amplitude),i=G(t.waveLength),a=G(t.fillColor),o=G(t.direction),s=G(t.movementDirection);function c(e,t,n,r,i){let a=[],o=Math.ceil(e/r),s=o*r,c=1,l=i===`up`?n:t-n;a.push(`M 0 ${l}`);let u=Math.PI*2/r;for(let e=0;e<=s;e+=c){let t=n*Math.sin(u*e),r=i===`up`?l-t:l+t;a.push(`L ${e} ${r}`)}let d=i===`up`?t:0;return a.push(`L ${s} ${d}`),a.push(`L 0 ${d} Z`),a.join(` `)}let l=j(()=>n.value+r.value*2),u=j(()=>{let e=`<svg width="${i.value}" height="${l.value}" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="${c(i.value,l.value,r.value,i.value,o.value)}"/>
3
+ </svg>`;return`url(data:image/svg+xml;base64,${btoa(e)})`});return z(()=>[t.height,t.amplitude,t.waveLength,t.fillColor,t.direction,t.movementDirection],()=>{n.value=t.height,r.value=t.amplitude,i.value=t.waveLength,a.value=t.fillColor,o.value=t.direction,s.value=t.movementDirection},{immediate:!0}),(e,t)=>(V(),I(`div`,yn,[O(e.$slots,`default`,{},void 0,!0),H(`div`,bn,[H(`div`,{class:`colored-area wave`,style:q({background:a.value,height:`${l.value}px`,maskImage:u.value,WebkitMaskImage:u.value,"--wave-translate":`${-i.value}px`,"--animation-duration":`${i.value/e.animationSpeed}s`,"animation-direction":s.value===`left`?`normal`:`reverse`})},null,4)])]))}}),Sn=p(xn,[[`__scopeId`,`data-v-33a54ad1`]]);export{Sn as b,vn as c,st as d,$e as e,pe as f,le as g};
assets/{Basic-DgX4BCdt.js → Basic-C8SEHpp9.js} RENAMED
@@ -1 +1 @@
1
- import{bD as e,bG as t,bM as n,bP as r,bU as i,bV as a,bX as o,c2 as s,c6 as c,cc as l}from"./index-iU6Tacov.js";var u=n({__name:`Basic`,props:i({defaultHeight:{}},{modelValue:{default:``},modelModifiers:{}}),emits:i([`submit`],[`update:modelValue`]),setup(n,{emit:i}){let u=n,d=i,f=s(n,`modelValue`),p=c(),m=c(`auto`);function h(e){e.code===`Enter`&&!e.shiftKey&&(e.preventDefault(),d(`submit`,f.value))}return a(f,()=>{m.value=`auto`,requestAnimationFrame(()=>{if(p.value){if(f.value===``){m.value=u.defaultHeight||`fit-content`;return}m.value=`${p.value.scrollHeight}px`}})},{immediate:!0}),(n,i)=>t((o(),r(`textarea`,{ref_key:`textareaRef`,ref:p,"onUpdate:modelValue":i[0]||=e=>f.value=e,style:l({height:m.value}),onKeydown:h},null,36)),[[e,f.value]])}}),d=u;export{d as b};
 
1
+ import{bD as e,bI as t,bK as n,bQ as r,bT as i,bY as a,bZ as o,c0 as s,c6 as c,ca as l}from"./index-BQADcPRe.js";var u=r({__name:`Basic`,props:a({defaultHeight:{}},{modelValue:{default:``},modelModifiers:{}}),emits:a([`submit`],[`update:modelValue`]),setup(r,{emit:a}){let u=r,d=a,f=t(r,`modelValue`),p=c(),m=c(`auto`);function h(e){e.code===`Enter`&&!e.shiftKey&&(e.preventDefault(),d(`submit`,f.value))}return o(f,()=>{m.value=`auto`,requestAnimationFrame(()=>{if(p.value){if(f.value===``){m.value=u.defaultHeight||`fit-content`;return}m.value=`${p.value.scrollHeight}px`}})},{immediate:!0}),(t,r)=>n((s(),i(`textarea`,{ref_key:`textareaRef`,ref:p,"onUpdate:modelValue":r[0]||=e=>f.value=e,style:l({height:m.value}),onKeydown:h},null,36)),[[e,f.value]])}}),d=u;export{d as b};
assets/CardCreate-5js-zWlr.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{b as e}from"./CardCreate-OzPwRjcU.js";export{e as default};
assets/CardCreate-D-KoAdG7.js DELETED
@@ -1 +0,0 @@
1
- import{b as e}from"./CardCreate-COr8jG0C.js";export{e as default};
 
 
assets/{CardCreate-COr8jG0C.js → CardCreate-OzPwRjcU.js} RENAMED
@@ -1 +1 @@
1
- import{M as e,bM as t,bP as n,bX as r,bY as i,c9 as a,ca as o}from"./index-iU6Tacov.js";const s={relative:``,class:`min-h-[120px] flex flex-col cursor-pointer items-center justify-center border-neutral-200 rounded-xl bg-white/60 p-6 dark:border-neutral-700 hover:border-primary-300 dark:bg-black/30 hover:bg-white/80 dark:hover:border-primary-700 dark:hover:bg-black/40`,border:`solid 2`,transition:`all duration-300`,"cursor-pointer":``,"opacity-95":``,hover:`scale-100 opacity-100 shadow-md dark:shadow-lg`},c={"font-medium":``,text:`neutral-600 dark:neutral-300`};var l=t({__name:`CardCreate`,setup(t){let{t:l}=e();return(e,t)=>(r(),n(`div`,s,[t[0]||=i(`div`,{"i-solar:add-square-line-duotone":``,"mb-4":``,"text-5xl":``,text:`neutral-400 dark:neutral-500`},null,-1),i(`p`,c,o(a(l)(`settings.pages.card.create_card`)),1)]))}}),u=l;export{u as b};
 
1
+ import{M as e,bQ as t,bT as n,c0 as r,c1 as i,c9 as a,cb as o}from"./index-BQADcPRe.js";const s={relative:``,class:`min-h-[120px] flex flex-col cursor-pointer items-center justify-center border-neutral-200 rounded-xl bg-white/60 p-6 dark:border-neutral-700 hover:border-primary-300 dark:bg-black/30 hover:bg-white/80 dark:hover:border-primary-700 dark:hover:bg-black/40`,border:`solid 2`,transition:`all duration-300`,"cursor-pointer":``,"opacity-95":``,hover:`scale-100 opacity-100 shadow-md dark:shadow-lg`},c={"font-medium":``,text:`neutral-600 dark:neutral-300`};var l=t({__name:`CardCreate`,setup(t){let{t:l}=e();return(e,t)=>(r(),n(`div`,s,[t[0]||=i(`div`,{"i-solar:add-square-line-duotone":``,"mb-4":``,"text-5xl":``,text:`neutral-400 dark:neutral-500`},null,-1),i(`p`,c,o(a(l)(`settings.pages.card.create_card`)),1)]))}}),u=l;export{u as b};
assets/{CardCreationDialog-FCpbRWXN.js → CardCreationDialog-5nhDZHS6.js} RENAMED
@@ -1,3 +1,3 @@
1
- import{G as e,M as t,aK as n,aN as r,aP as i,ai as a,b$ as o,bJ as s,bK as c,bM as l,bN as u,bO as d,bP as f,bT as p,bU as m,bX as h,bY as g,b_ as _,c1 as v,c2 as y,c4 as b,c6 as x,c7 as ee,c9 as S,ca as C,cb as w,cd as T,ch as E,e as D,g as O,j as k,l as te,n as ne}from"./index-iU6Tacov.js";var A=T((exports,t)=>{function n(e){return e.toLowerCase()}t.exports=n}),j=T((exports,t)=>{var n=A();t.exports=n}),M=T((exports,t)=>{function n(e,t,n){return e.replace(t,n)}t.exports=n}),N=T((exports,t)=>{var n=M();t.exports=n}),P=T((exports,t)=>{var n=String.prototype.trim!==void 0;t.exports=n}),F=T((exports,t)=>{var n=String.prototype.trim;t.exports=n}),I=T((exports,t)=>{var n=F(),r=`
2
  \r
3
- \f\v            \u2028\u2029   `,i=`᠎`;function a(){return n.call(r)===``&&n.call(i)===i}t.exports=a}),L=T((exports,t)=>{var n=N(),r=/^[\u0020\f\n\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]*([\S\s]*?)[\u0020\f\n\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]*$/;function i(e){return n(e,r,`$1`)}t.exports=i}),R=T((exports,t)=>{var n=F();function r(e){return n.call(e)}t.exports=r}),z=T((exports,t)=>{var n=P(),r=I(),i=L(),a=R(),o;o=n&&r()?a:i,t.exports=o}),B=T((exports,t)=>{var n=j(),r=N(),i=z(),a=/\s+/g,o=/[!"'(),–.:;<>?`{}|~\/\\\[\]_#$*&^@%]+/g,s=/([a-z0-9])([A-Z])/g;function c(e){return e=r(e,o,` `),e=r(e,s,`$1 $2`),e=i(e),e=r(e,a,`-`),n(e)}t.exports=c}),V=T((exports,t)=>{var n=B();t.exports=n}),H=E(V());const U={class:`w-full flex flex-col gap-5`},W={class:`mt-4`},G={class:`border-b border-neutral-200 dark:border-neutral-700`},K={class:`flex justify-center -mb-px sm:justify-start space-x-1`},re=[`onClick`],ie={class:`flex items-center gap-1`},ae={key:0,class:`w-full rounded-xl bg-red900`},oe={class:`w-full p-4`},se={key:1,class:`tab-content ml-auto mr-auto w-95%`},ce={class:`mb-3`},le={class:`input-list ml-auto mr-auto w-90% flex flex-row flex-wrap justify-center gap-8`},ue={key:2,class:`tab-content ml-auto mr-auto w-95%`},de={class:`input-list ml-auto mr-auto w-90% flex flex-row flex-wrap justify-center gap-8`},fe={key:3,class:`tab-content ml-auto mr-auto w-95%`},pe={class:`input-list ml-auto mr-auto w-90% flex flex-row flex-wrap justify-center gap-8`},me={class:`ml-auto mr-1 flex flex-row gap-2`};var q=l({__name:`CardCreationDialog`,props:m({modelValue:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:m([`update:modelValue`],[`update:modelValue`]),setup(r,{emit:l}){let m=l,T=y(r,`modelValue`),{t:E}=t(),A=e(),j=x(``),M=[{id:`identity`,label:E(`settings.pages.card.creation.identity`),icon:`i-solar:emoji-funny-square-bold-duotone`},{id:`behavior`,label:E(`settings.pages.card.creation.behavior`),icon:`i-solar:chat-round-line-bold-duotone`},{id:`settings`,label:E(`settings.pages.card.creation.settings`),icon:`i-solar:settings-bold-duotone`}],N=c({get:()=>M.find(e=>e.id===j.value)?j.value:M[0]?.id||``,set:e=>{j.value=e}}),P=x(!1),F=x(``);function I(e){let t=ee(e);if(t.name.length>0)if(/^(?:\d+\.)+\d+$/.test(t.version))if(t.description.length>0)if(t.personality.length>0)if(t.scenario.length>0)if(t.systemPrompt.length>0){if(!(t.postHistoryInstructions.length>0))return P.value=!0,F.value=E(`settings.pages.card.creation.errors.posthistoryinstructions`),!1}else return P.value=!0,F.value=E(`settings.pages.card.creation.errors.systemprompt`),!1;else return P.value=!0,F.value=E(`settings.pages.card.creation.errors.scenario`),!1;else return P.value=!0,F.value=E(`settings.pages.card.creation.errors.personality`),!1;else return P.value=!0,F.value=E(`settings.pages.card.creation.errors.description`),!1;else return P.value=!0,F.value=E(`settings.pages.card.creation.errors.version`),!1;else return P.value=!0,F.value=E(`settings.pages.card.creation.errors.name`),!1;return P.value=!1,A.addCard(t),T.value=!1,!0}let L=x({name:E(`settings.pages.card.creation.defaults.name`),nickname:void 0,version:`1.0`,description:``,notes:void 0,personality:E(`settings.pages.card.creation.defaults.personality`),scenario:E(`settings.pages.card.creation.defaults.scenario`),systemPrompt:E(`settings.pages.card.creation.defaults.systemprompt`),postHistoryInstructions:E(`settings.pages.card.creation.defaults.posthistoryinstructions`),greetings:[],messageExample:[]});function R(e,t){return c({get:()=>L.value[e]??``,set:n=>{let r=n.trim();L.value[e]=r.length>0?t?t(r):r:``}})}let z=R(`name`,e=>(0,H.default)(e)),B=R(`nickname`),V=R(`description`),q=R(`notes`),J=R(`personality`),Y=R(`scenario`),X=c({get:()=>L.value.greetings??[],set:e=>{L.value.greetings=e||[]}}),Z=R(`version`),Q=R(`systemPrompt`),$=R(`postHistoryInstructions`);return(e,t)=>(h(),v(S(O),{open:T.value,"onUpdate:open":t[12]||=e=>m(`update:modelValue`,e)},{default:u(()=>[p(S(D),null,{default:u(()=>[p(S(te),{class:`data-[state=open]:animate-fadeIn data-[state=closed]:animate-fadeOut fixed inset-0 z-100 bg-black/50 backdrop-blur-sm`}),p(S(k),{class:`data-[state=open]:animate-contentShow data-[state=closed]:animate-contentHide fixed left-1/2 top-1/2 z-100 m-0 max-h-[90vh] max-w-6xl w-[92vw] flex flex-col overflow-auto border border-neutral-200 rounded-xl bg-white p-5 shadow-xl 2xl:w-[60vw] lg:w-[80vw] md:w-[85vw] xl:w-[70vw] -translate-x-1/2 -translate-y-1/2 dark:border-neutral-700 dark:bg-neutral-800 sm:p-6`},{default:u(()=>[g(`div`,U,[p(S(ne),{"text-2xl":``,"font-normal":``,class:`from-primary-500 to-primary-400 bg-gradient-to-r bg-clip-text text-transparent`},{default:u(()=>[o(C(S(E)(`settings.pages.card.create_card`)),1)]),_:1}),g(`div`,W,[g(`div`,G,[g(`div`,K,[(h(),f(s,null,_(M,e=>g(`button`,{key:e.id,class:w([`px-4 py-2 text-sm font-medium`,[N.value===e.id?`text-primary-600 dark:text-primary-400 border-b-2 border-primary-500 dark:border-primary-400`:`text-neutral-500 dark:text-neutral-400 hover:text-neutral-700 dark:hover:text-neutral-300`]]),onClick:t=>N.value=e.id},[g(`div`,ie,[g(`div`,{class:w(e.icon)},null,2),o(` `+C(e.label),1)])],10,re)),64))])])]),P.value?(h(),f(`div`,ae,[g(`p`,oe,C(F.value),1)])):d(``,!0),N.value===`identity`?(h(),f(`div`,se,[g(`p`,ce,C(S(E)(`settings.pages.card.creation.fields_info.subtitle`)),1),g(`div`,le,[p(S(i),{modelValue:S(z),"onUpdate:modelValue":t[0]||=e=>b(z)?z.value=e:null,label:S(E)(`settings.pages.card.creation.name`),description:S(E)(`settings.pages.card.creation.fields_info.name`),required:!0},null,8,[`modelValue`,`label`,`description`]),p(S(i),{modelValue:S(B),"onUpdate:modelValue":t[1]||=e=>b(B)?B.value=e:null,label:S(E)(`settings.pages.card.creation.nickname`),description:S(E)(`settings.pages.card.creation.fields_info.nickname`)},null,8,[`modelValue`,`label`,`description`]),p(S(i),{modelValue:S(V),"onUpdate:modelValue":t[2]||=e=>b(V)?V.value=e:null,label:S(E)(`settings.pages.card.creation.description`),"single-line":!1,required:!0,description:S(E)(`settings.pages.card.creation.fields_info.description`)},null,8,[`modelValue`,`label`,`description`]),p(S(i),{modelValue:S(q),"onUpdate:modelValue":t[3]||=e=>b(q)?q.value=e:null,label:S(E)(`settings.pages.card.creator_notes`),"single-line":!1,description:S(E)(`settings.pages.card.creation.fields_info.notes`)},null,8,[`modelValue`,`label`,`description`])])])):N.value===`behavior`?(h(),f(`div`,ue,[g(`div`,de,[p(S(i),{modelValue:S(J),"onUpdate:modelValue":t[4]||=e=>b(J)?J.value=e:null,label:S(E)(`settings.pages.card.personality`),"single-line":!1,required:!0,description:S(E)(`settings.pages.card.creation.fields_info.personality`)},null,8,[`modelValue`,`label`,`description`]),p(S(i),{modelValue:S(Y),"onUpdate:modelValue":t[5]||=e=>b(Y)?Y.value=e:null,label:S(E)(`settings.pages.card.scenario`),"single-line":!1,required:!0,description:S(E)(`settings.pages.card.creation.fields_info.scenario`)},null,8,[`modelValue`,`label`,`description`]),p(S(n),{modelValue:X.value,"onUpdate:modelValue":t[6]||=e=>X.value=e,label:S(E)(`settings.pages.card.creation.greetings`),description:S(E)(`settings.pages.card.creation.fields_info.greetings`)},null,8,[`modelValue`,`label`,`description`])])])):N.value===`settings`?(h(),f(`div`,fe,[g(`div`,pe,[p(S(i),{modelValue:S(Q),"onUpdate:modelValue":t[7]||=e=>b(Q)?Q.value=e:null,label:S(E)(`settings.pages.card.systemprompt`),"single-line":!1,required:!0,description:S(E)(`settings.pages.card.creation.fields_info.systemprompt`)},null,8,[`modelValue`,`label`,`description`]),p(S(i),{modelValue:S($),"onUpdate:modelValue":t[8]||=e=>b($)?$.value=e:null,label:S(E)(`settings.pages.card.posthistoryinstructions`),"single-line":!1,required:!0,description:S(E)(`settings.pages.card.creation.fields_info.posthistoryinstructions`)},null,8,[`modelValue`,`label`,`description`]),p(S(i),{modelValue:S(Z),"onUpdate:modelValue":t[9]||=e=>b(Z)?Z.value=e:null,label:S(E)(`settings.pages.card.creation.version`),required:!0,description:S(E)(`settings.pages.card.creation.fields_info.version`)},null,8,[`modelValue`,`label`,`description`])])])):d(``,!0),g(`div`,me,[p(S(a),{variant:`secondary`,icon:`i-solar:undo-left-bold-duotone`,label:S(E)(`settings.pages.card.cancel`),disabled:!1,onClick:t[10]||=e=>T.value=!1},null,8,[`label`]),p(S(a),{variant:`primary`,icon:`i-solar:check-circle-bold-duotone`,label:S(E)(`settings.pages.card.creation.create`),disabled:!1,onClick:t[11]||=e=>I(L.value)},null,8,[`label`])])])]),_:1})]),_:1})]),_:1},8,[`open`]))}}),J=r(q,[[`__scopeId`,`data-v-c19882e9`]]);export{J as b};
 
1
+ import{G as e,M as t,aK as n,aN as r,aP as i,ai as a,bH as o,bI as s,bN as c,bO as l,bQ as u,bR as d,bS as f,bT as p,bX as m,bY as h,c0 as g,c1 as _,c2 as v,c3 as y,c4 as b,c6 as x,c7 as ee,c9 as S,cb as C,cc as w,cd as T,ch as E,d as D,f as O,h as k,l as te,n as ne}from"./index-BQADcPRe.js";var A=T((exports,t)=>{function n(e){return e.toLowerCase()}t.exports=n}),j=T((exports,t)=>{var n=A();t.exports=n}),M=T((exports,t)=>{function n(e,t,n){return e.replace(t,n)}t.exports=n}),N=T((exports,t)=>{var n=M();t.exports=n}),P=T((exports,t)=>{var n=String.prototype.trim!==void 0;t.exports=n}),F=T((exports,t)=>{var n=String.prototype.trim;t.exports=n}),I=T((exports,t)=>{var n=F(),r=`
2
  \r
3
+ \f\v            \u2028\u2029   `,i=`᠎`;function a(){return n.call(r)===``&&n.call(i)===i}t.exports=a}),L=T((exports,t)=>{var n=N(),r=/^[\u0020\f\n\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]*([\S\s]*?)[\u0020\f\n\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]*$/;function i(e){return n(e,r,`$1`)}t.exports=i}),R=T((exports,t)=>{var n=F();function r(e){return n.call(e)}t.exports=r}),z=T((exports,t)=>{var n=P(),r=I(),i=L(),a=R(),o;o=n&&r()?a:i,t.exports=o}),B=T((exports,t)=>{var n=j(),r=N(),i=z(),a=/\s+/g,o=/[!"'(),–.:;<>?`{}|~\/\\\[\]_#$*&^@%]+/g,s=/([a-z0-9])([A-Z])/g;function c(e){return e=r(e,o,` `),e=r(e,s,`$1 $2`),e=i(e),e=r(e,a,`-`),n(e)}t.exports=c}),V=T((exports,t)=>{var n=B();t.exports=n}),H=E(V());const U={class:`w-full flex flex-col gap-5`},W={class:`mt-4`},G={class:`border-b border-neutral-200 dark:border-neutral-700`},K={class:`flex justify-center -mb-px sm:justify-start space-x-1`},re=[`onClick`],ie={class:`flex items-center gap-1`},ae={key:0,class:`w-full rounded-xl bg-red900`},oe={class:`w-full p-4`},se={key:1,class:`tab-content ml-auto mr-auto w-95%`},ce={class:`mb-3`},le={class:`input-list ml-auto mr-auto w-90% flex flex-row flex-wrap justify-center gap-8`},ue={key:2,class:`tab-content ml-auto mr-auto w-95%`},de={class:`input-list ml-auto mr-auto w-90% flex flex-row flex-wrap justify-center gap-8`},fe={key:3,class:`tab-content ml-auto mr-auto w-95%`},pe={class:`input-list ml-auto mr-auto w-90% flex flex-row flex-wrap justify-center gap-8`},me={class:`ml-auto mr-1 flex flex-row gap-2`};var q=u({__name:`CardCreationDialog`,props:h({modelValue:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:h([`update:modelValue`],[`update:modelValue`]),setup(r,{emit:u}){let h=u,T=s(r,`modelValue`),{t:E}=t(),A=e(),j=x(``),M=[{id:`identity`,label:E(`settings.pages.card.creation.identity`),icon:`i-solar:emoji-funny-square-bold-duotone`},{id:`behavior`,label:E(`settings.pages.card.creation.behavior`),icon:`i-solar:chat-round-line-bold-duotone`},{id:`settings`,label:E(`settings.pages.card.creation.settings`),icon:`i-solar:settings-bold-duotone`}],N=l({get:()=>M.find(e=>e.id===j.value)?j.value:M[0]?.id||``,set:e=>{j.value=e}}),P=x(!1),F=x(``);function I(e){let t=ee(e);if(t.name.length>0)if(/^(?:\d+\.)+\d+$/.test(t.version))if(t.description.length>0)if(t.personality.length>0)if(t.scenario.length>0)if(t.systemPrompt.length>0){if(!(t.postHistoryInstructions.length>0))return P.value=!0,F.value=E(`settings.pages.card.creation.errors.posthistoryinstructions`),!1}else return P.value=!0,F.value=E(`settings.pages.card.creation.errors.systemprompt`),!1;else return P.value=!0,F.value=E(`settings.pages.card.creation.errors.scenario`),!1;else return P.value=!0,F.value=E(`settings.pages.card.creation.errors.personality`),!1;else return P.value=!0,F.value=E(`settings.pages.card.creation.errors.description`),!1;else return P.value=!0,F.value=E(`settings.pages.card.creation.errors.version`),!1;else return P.value=!0,F.value=E(`settings.pages.card.creation.errors.name`),!1;return P.value=!1,A.addCard(t),T.value=!1,!0}let L=x({name:E(`settings.pages.card.creation.defaults.name`),nickname:void 0,version:`1.0`,description:``,notes:void 0,personality:E(`settings.pages.card.creation.defaults.personality`),scenario:E(`settings.pages.card.creation.defaults.scenario`),systemPrompt:E(`settings.pages.card.creation.defaults.systemprompt`),postHistoryInstructions:E(`settings.pages.card.creation.defaults.posthistoryinstructions`),greetings:[],messageExample:[]});function R(e,t){return l({get:()=>L.value[e]??``,set:n=>{let r=n.trim();L.value[e]=r.length>0?t?t(r):r:``}})}let z=R(`name`,e=>(0,H.default)(e)),B=R(`nickname`),V=R(`description`),q=R(`notes`),J=R(`personality`),Y=R(`scenario`),X=l({get:()=>L.value.greetings??[],set:e=>{L.value.greetings=e||[]}}),Z=R(`version`),Q=R(`systemPrompt`),$=R(`postHistoryInstructions`);return(e,t)=>(g(),o(S(ne),{open:T.value,"onUpdate:open":t[12]||=e=>h(`update:modelValue`,e)},{default:d(()=>[m(S(te),null,{default:d(()=>[m(S(O),{class:`data-[state=open]:animate-fadeIn data-[state=closed]:animate-fadeOut fixed inset-0 z-100 bg-black/50 backdrop-blur-sm`}),m(S(D),{class:`data-[state=open]:animate-contentShow data-[state=closed]:animate-contentHide fixed left-1/2 top-1/2 z-100 m-0 max-h-[90vh] max-w-6xl w-[92vw] flex flex-col overflow-auto border border-neutral-200 rounded-xl bg-white p-5 shadow-xl 2xl:w-[60vw] lg:w-[80vw] md:w-[85vw] xl:w-[70vw] -translate-x-1/2 -translate-y-1/2 dark:border-neutral-700 dark:bg-neutral-800 sm:p-6`},{default:d(()=>[_(`div`,U,[m(S(k),{"text-2xl":``,"font-normal":``,class:`from-primary-500 to-primary-400 bg-gradient-to-r bg-clip-text text-transparent`},{default:d(()=>[y(C(S(E)(`settings.pages.card.create_card`)),1)]),_:1}),_(`div`,W,[_(`div`,G,[_(`div`,K,[(g(),p(c,null,v(M,e=>_(`button`,{key:e.id,class:w([`px-4 py-2 text-sm font-medium`,[N.value===e.id?`text-primary-600 dark:text-primary-400 border-b-2 border-primary-500 dark:border-primary-400`:`text-neutral-500 dark:text-neutral-400 hover:text-neutral-700 dark:hover:text-neutral-300`]]),onClick:t=>N.value=e.id},[_(`div`,ie,[_(`div`,{class:w(e.icon)},null,2),y(` `+C(e.label),1)])],10,re)),64))])])]),P.value?(g(),p(`div`,ae,[_(`p`,oe,C(F.value),1)])):f(``,!0),N.value===`identity`?(g(),p(`div`,se,[_(`p`,ce,C(S(E)(`settings.pages.card.creation.fields_info.subtitle`)),1),_(`div`,le,[m(S(i),{modelValue:S(z),"onUpdate:modelValue":t[0]||=e=>b(z)?z.value=e:null,label:S(E)(`settings.pages.card.creation.name`),description:S(E)(`settings.pages.card.creation.fields_info.name`),required:!0},null,8,[`modelValue`,`label`,`description`]),m(S(i),{modelValue:S(B),"onUpdate:modelValue":t[1]||=e=>b(B)?B.value=e:null,label:S(E)(`settings.pages.card.creation.nickname`),description:S(E)(`settings.pages.card.creation.fields_info.nickname`)},null,8,[`modelValue`,`label`,`description`]),m(S(i),{modelValue:S(V),"onUpdate:modelValue":t[2]||=e=>b(V)?V.value=e:null,label:S(E)(`settings.pages.card.creation.description`),"single-line":!1,required:!0,description:S(E)(`settings.pages.card.creation.fields_info.description`)},null,8,[`modelValue`,`label`,`description`]),m(S(i),{modelValue:S(q),"onUpdate:modelValue":t[3]||=e=>b(q)?q.value=e:null,label:S(E)(`settings.pages.card.creator_notes`),"single-line":!1,description:S(E)(`settings.pages.card.creation.fields_info.notes`)},null,8,[`modelValue`,`label`,`description`])])])):N.value===`behavior`?(g(),p(`div`,ue,[_(`div`,de,[m(S(i),{modelValue:S(J),"onUpdate:modelValue":t[4]||=e=>b(J)?J.value=e:null,label:S(E)(`settings.pages.card.personality`),"single-line":!1,required:!0,description:S(E)(`settings.pages.card.creation.fields_info.personality`)},null,8,[`modelValue`,`label`,`description`]),m(S(i),{modelValue:S(Y),"onUpdate:modelValue":t[5]||=e=>b(Y)?Y.value=e:null,label:S(E)(`settings.pages.card.scenario`),"single-line":!1,required:!0,description:S(E)(`settings.pages.card.creation.fields_info.scenario`)},null,8,[`modelValue`,`label`,`description`]),m(S(n),{modelValue:X.value,"onUpdate:modelValue":t[6]||=e=>X.value=e,label:S(E)(`settings.pages.card.creation.greetings`),description:S(E)(`settings.pages.card.creation.fields_info.greetings`)},null,8,[`modelValue`,`label`,`description`])])])):N.value===`settings`?(g(),p(`div`,fe,[_(`div`,pe,[m(S(i),{modelValue:S(Q),"onUpdate:modelValue":t[7]||=e=>b(Q)?Q.value=e:null,label:S(E)(`settings.pages.card.systemprompt`),"single-line":!1,required:!0,description:S(E)(`settings.pages.card.creation.fields_info.systemprompt`)},null,8,[`modelValue`,`label`,`description`]),m(S(i),{modelValue:S($),"onUpdate:modelValue":t[8]||=e=>b($)?$.value=e:null,label:S(E)(`settings.pages.card.posthistoryinstructions`),"single-line":!1,required:!0,description:S(E)(`settings.pages.card.creation.fields_info.posthistoryinstructions`)},null,8,[`modelValue`,`label`,`description`]),m(S(i),{modelValue:S(Z),"onUpdate:modelValue":t[9]||=e=>b(Z)?Z.value=e:null,label:S(E)(`settings.pages.card.creation.version`),required:!0,description:S(E)(`settings.pages.card.creation.fields_info.version`)},null,8,[`modelValue`,`label`,`description`])])])):f(``,!0),_(`div`,me,[m(S(a),{variant:`secondary`,icon:`i-solar:undo-left-bold-duotone`,label:S(E)(`settings.pages.card.cancel`),disabled:!1,onClick:t[10]||=e=>T.value=!1},null,8,[`label`]),m(S(a),{variant:`primary`,icon:`i-solar:check-circle-bold-duotone`,label:S(E)(`settings.pages.card.creation.create`),disabled:!1,onClick:t[11]||=e=>I(L.value)},null,8,[`label`])])])]),_:1})]),_:1})]),_:1},8,[`open`]))}}),J=r(q,[[`__scopeId`,`data-v-c19882e9`]]);export{J as b};
assets/CardCreationDialog-B18qZKqS.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{b as e}from"./CardCreationDialog-5nhDZHS6.js";export{e as default};
assets/CardCreationDialog-DDa9cJ4l.js DELETED
@@ -1 +0,0 @@
1
- import{b as e}from"./CardCreationDialog-FCpbRWXN.js";export{e as default};
 
 
assets/{CardDetailDialog-BWmoz5Dn.js → CardDetailDialog-BXWnYf9o.js} RENAMED
@@ -1 +1 @@
1
- import{G as e,M as t,aY as ee,ai as te,b$ as n,bJ as r,bK as i,bM as a,bN as o,bO as s,bP as c,bT as l,bX as u,bY as d,b_ as f,c6 as p,c9 as m,ca as h,cb as g,e as ne,g as _,j as v,l as re,n as ie}from"./index-iU6Tacov.js";import{b as ae}from"./DeleteCardDialog-CAunrpw4.js";const oe={key:0,class:`w-full flex flex-col gap-5`},se={flex:`~ col`,"gap-3":``},ce={flex:`~ row`,"items-center":``,"justify-between":``},le={flex:`~ row`,"items-center":``,"gap-2":``},ue={key:0,class:`flex items-center gap-1 rounded-full bg-primary-100 px-2 py-0.5 text-xs text-primary-600 font-medium dark:bg-primary-900/40 dark:text-primary-400`},de={"mt-1":``,"text-sm":``,"text-neutral-500":``,"dark:text-neutral-400":``},fe={"font-medium":``},pe={flex:`~ row`,"gap-2":``},me={class:`mt-4`},he={class:`border-b border-neutral-200 dark:border-neutral-700`},y={class:`flex justify-center -mb-px sm:justify-start space-x-1`},b=[`onClick`],x={class:`flex items-center gap-1`},S={key:0},C=[`innerHTML`],w={key:1},T=[`innerHTML`],E={key:2},D={flex:`~ col`,"max-h-60":``,"gap-4":``,"overflow-auto":``,"pr-1":``,"sm:max-h-80":``},O={key:0,flex:`~ col`,"gap-2":``},k={"text-lg":``,"text-neutral-500":``,"font-medium":``,"dark:text-neutral-400":``},A=[`innerHTML`],j={key:3},M={grid:`~ cols-1 sm:cols-3`,"gap-4":``},N={flex:`~ col`,bg:`white/60 dark:black/30`,"gap-1":``,"rounded-lg":``,"p-3":``,border:`~ neutral-200/50 dark:neutral-700/30`,transition:`all duration-200`,hover:`bg-white/80 dark:bg-black/40`},P={flex:`~ row`,"items-center":``,"gap-2":``,"text-sm":``,"text-neutral-500":``,"dark:text-neutral-400":``},F={truncate:``,"font-medium":``},I={flex:`~ col`,bg:`white/60 dark:black/30`,"gap-2":``,"rounded-lg":``,"p-3":``,border:`~ neutral-200/50 dark:neutral-700/30`,transition:`all duration-200`,hover:`bg-white/80 dark:bg-black/40`},L={flex:`~ row`,"items-center":``,"gap-2":``,"text-sm":``,"text-neutral-500":``,"dark:text-neutral-400":``},ge={truncate:``,"font-medium":``},_e={flex:`~ col`,bg:`white/60 dark:black/30`,"gap-2":``,"rounded-lg":``,"p-3":``,border:`~ neutral-200/50 dark:neutral-700/30`,transition:`all duration-200`,hover:`bg-white/80 dark:bg-black/40`},ve={flex:`~ row`,"items-center":``,"gap-2":``,"text-sm":``,"text-neutral-500":``,"dark:text-neutral-400":``},ye={truncate:``,"font-medium":``},be={key:1,bg:`neutral-50/50 dark:neutral-900/50`,"rounded-xl":``,"p-8":``,"text-center":``,border:`~ neutral-200/50 dark:neutral-700/30`,shadow:`sm`};var R=a({__name:`CardDetailDialog`,props:{modelValue:{type:Boolean},cardId:{}},emits:[`update:modelValue`],setup(a,{emit:R}){let z=a,B=R,{t:V}=t(),H=e(),{removeCard:xe}=H,{activeCardId:U}=ee(H),W=i(()=>{if(z.cardId)return H.getCard(z.cardId)}),G=i(()=>{if(!W.value||!W.value.extensions?.airi?.modules)return{consciousness:``,speech:``,voice:``};let e=W.value.extensions.airi.modules;return{consciousness:e.consciousness?.model||``,speech:e.speech?.model||``,voice:e.speech?.voice_id||``}}),K=i(()=>W.value?{personality:W.value.personality,scenario:W.value.scenario,systemPrompt:W.value.systemPrompt,postHistoryInstructions:W.value.postHistoryInstructions}:{}),q=i(()=>z.cardId===U.value),J=p(!1);function Se(){J.value=!0,setTimeout(()=>{U.value=z.cardId,J.value=!1},300)}function Y(e){return e?.replace(/\{\{(.*?)\}\}/g,`<span class="bg-primary-500/20 inline-block">{{ $1 }}</span>`).trim()}let X=p(!1);function Ce(){W.value&&(xe(z.cardId),B(`update:modelValue`,!1)),X.value=!1}let Z=p(``),Q=i(()=>{let e=[];return W.value?.description&&e.push({id:`description`,label:V(`settings.pages.card.description_label`),icon:`i-solar:document-text-linear`}),W.value?.notes&&e.push({id:`notes`,label:V(`settings.pages.card.creator_notes`),icon:`i-solar:notes-linear`}),Object.values(K.value).some(e=>!!e)&&e.push({id:`character`,label:V(`settings.pages.card.character`),icon:`i-solar:user-rounded-linear`}),e.push({id:`modules`,label:V(`settings.pages.card.modules`),icon:`i-solar:tuning-square-linear`}),e}),$=i({get:()=>Q.value.find(e=>e.id===Z.value)?Z.value:Q.value[0]?.id||``,set:e=>{Z.value=e}});return(e,t)=>(u(),c(r,null,[l(m(_),{open:e.modelValue,"onUpdate:open":t[0]||=e=>B(`update:modelValue`,e)},{default:o(()=>[l(m(ne),null,{default:o(()=>[l(m(re),{class:`data-[state=open]:animate-fadeIn data-[state=closed]:animate-fadeOut fixed inset-0 z-100 bg-black/50 backdrop-blur-sm`}),l(m(v),{class:`data-[state=open]:animate-contentShow data-[state=closed]:animate-contentHide fixed left-1/2 top-1/2 z-100 m-0 max-h-[90vh] max-w-6xl w-[92vw] flex flex-col overflow-auto border border-neutral-200 rounded-xl bg-white p-5 shadow-xl 2xl:w-[60vw] lg:w-[80vw] md:w-[85vw] xl:w-[70vw] -translate-x-1/2 -translate-y-1/2 dark:border-neutral-700 dark:bg-neutral-800 sm:p-6`},{default:o(()=>[W.value?(u(),c(`div`,oe,[d(`div`,se,[d(`div`,ce,[d(`div`,null,[d(`div`,le,[l(m(ie),{"text-2xl":``,"font-normal":``,class:`from-primary-500 to-primary-400 bg-gradient-to-r bg-clip-text text-transparent`},{default:o(()=>[n(h(W.value.name),1)]),_:1}),q.value?(u(),c(`div`,ue,[t[3]||=d(`div`,{"i-solar:check-circle-bold-duotone":``,"text-xs":``},null,-1),n(` `+h(m(V)(`settings.pages.card.active_badge`)),1)])):s(``,!0)]),d(`div`,de,[n(` v`+h(W.value.version)+` `,1),W.value.creator?(u(),c(r,{key:0},[n(` · `+h(m(V)(`settings.pages.card.created_by`))+` `,1),d(`span`,fe,h(W.value.creator),1)],64)):s(``,!0)])]),d(`div`,pe,[l(m(te),{variant:`primary`,icon:q.value?`i-solar:check-circle-bold-duotone`:`i-solar:play-circle-broken`,label:q.value?m(V)(`settings.pages.card.active`):m(V)(`settings.pages.card.activate`),disabled:q.value,class:g({"animate-pulse":J.value}),onClick:Se},null,8,[`icon`,`label`,`disabled`,`class`])])]),d(`div`,me,[d(`div`,he,[d(`div`,y,[(u(!0),c(r,null,f(Q.value,e=>(u(),c(`button`,{key:e.id,class:g([`px-4 py-2 text-sm font-medium`,[$.value===e.id?`text-primary-600 dark:text-primary-400 border-b-2 border-primary-500 dark:border-primary-400`:`text-neutral-500 dark:text-neutral-400 hover:text-neutral-700 dark:hover:text-neutral-300`]]),onClick:t=>$.value=e.id},[d(`div`,x,[d(`div`,{class:g(e.icon)},null,2),n(` `+h(e.label),1)])],10,b))),128))])])]),$.value===`notes`&&W.value.notes?(u(),c(`div`,S,[d(`div`,{bg:`white/60 dark:black/30`,border:`~ neutral-200/50 dark:neutral-700/30`,"max-h-60":``,"overflow-auto":``,"whitespace-pre-line":``,"rounded-lg":``,"p-4":``,"text-neutral-700":``,"sm:max-h-80":``,"dark:text-neutral-300":``,transition:`all duration-200`,hover:`bg-white/80 dark:bg-black/40`,innerHTML:Y(W.value.notes)},null,8,C)])):s(``,!0),$.value===`description`&&W.value.description?(u(),c(`div`,w,[d(`div`,{bg:`white/60 dark:black/30`,"max-h-60":``,"overflow-auto":``,"whitespace-pre-line":``,"rounded-lg":``,"p-4":``,"sm:max-h-80":``,text:`neutral-600 dark:neutral-300`,border:`~ neutral-200/50 dark:neutral-700/30`,innerHTML:Y(W.value.description)},null,8,T)])):s(``,!0),$.value===`character`&&Object.values(K.value).some(e=>!!e)?(u(),c(`div`,E,[d(`div`,D,[(u(!0),c(r,null,f(K.value,(e,t)=>(u(),c(r,{key:t},[e?(u(),c(`div`,O,[d(`h2`,k,h(m(V)(`settings.pages.card.${t.toLowerCase()}`)),1),d(`div`,{bg:`white/60 dark:black/30`,border:`~ neutral-200/50 dark:neutral-700/30`,transition:`all duration-200`,hover:`bg-white/80 dark:bg-black/40`,"max-h-none":``,"overflow-auto":``,"whitespace-pre-line":``,"rounded-lg":``,"p-3":``,"text-neutral-700":``,"dark:text-neutral-300":``,innerHTML:Y(e)},null,8,A)])):s(``,!0)],64))),128))])])):s(``,!0),$.value===`modules`?(u(),c(`div`,j,[d(`div`,M,[d(`div`,N,[d(`span`,P,[t[4]||=d(`div`,{"i-lucide:ghost":``},null,-1),n(` `+h(m(V)(`settings.pages.card.consciousness.model`)),1)]),d(`div`,F,h(G.value.consciousness??`default`),1)]),d(`div`,I,[d(`span`,L,[t[5]||=d(`div`,{"i-lucide:mic":``},null,-1),n(` `+h(m(V)(`settings.pages.card.speech.model`)),1)]),d(`div`,ge,h(G.value.speech??`default`),1)]),d(`div`,_e,[d(`span`,ve,[t[6]||=d(`div`,{"i-lucide:music":``},null,-1),n(` `+h(m(V)(`settings.pages.card.speech.voice`)),1)]),d(`div`,ye,h(G.value.voice??`default`),1)])])])):s(``,!0)])])):(u(),c(`div`,be,[t[7]||=d(`div`,{"i-solar:card-search-broken":``,"mx-auto":``,"mb-3":``,"text-6xl":``,"text-neutral-400":``},null,-1),n(` `+h(m(V)(`settings.pages.card.card_not_found`)),1)]))]),_:1})]),_:1})]),_:1},8,[`open`]),l(ae,{modelValue:X.value,"onUpdate:modelValue":t[1]||=e=>X.value=e,"card-name":W.value?.name,onConfirm:Ce,onCancel:t[2]||=e=>X.value=!1},null,8,[`modelValue`,`card-name`])],64))}}),z=R;export{z as b};
 
1
+ import{G as e,M as t,aY as ee,ai as te,bN as n,bO as r,bQ as i,bR as a,bS as o,bT as s,bX as c,c0 as l,c1 as u,c2 as d,c3 as f,c6 as p,c9 as m,cb as h,cc as g,d as ne,f as _,h as v,l as re,n as ie}from"./index-BQADcPRe.js";import{b as ae}from"./DeleteCardDialog-CjvdqreN.js";const oe={key:0,class:`w-full flex flex-col gap-5`},se={flex:`~ col`,"gap-3":``},ce={flex:`~ row`,"items-center":``,"justify-between":``},le={flex:`~ row`,"items-center":``,"gap-2":``},ue={key:0,class:`flex items-center gap-1 rounded-full bg-primary-100 px-2 py-0.5 text-xs text-primary-600 font-medium dark:bg-primary-900/40 dark:text-primary-400`},de={"mt-1":``,"text-sm":``,"text-neutral-500":``,"dark:text-neutral-400":``},fe={"font-medium":``},pe={flex:`~ row`,"gap-2":``},me={class:`mt-4`},he={class:`border-b border-neutral-200 dark:border-neutral-700`},y={class:`flex justify-center -mb-px sm:justify-start space-x-1`},b=[`onClick`],x={class:`flex items-center gap-1`},S={key:0},C=[`innerHTML`],w={key:1},T=[`innerHTML`],E={key:2},D={flex:`~ col`,"max-h-60":``,"gap-4":``,"overflow-auto":``,"pr-1":``,"sm:max-h-80":``},O={key:0,flex:`~ col`,"gap-2":``},k={"text-lg":``,"text-neutral-500":``,"font-medium":``,"dark:text-neutral-400":``},A=[`innerHTML`],j={key:3},M={grid:`~ cols-1 sm:cols-3`,"gap-4":``},N={flex:`~ col`,bg:`white/60 dark:black/30`,"gap-1":``,"rounded-lg":``,"p-3":``,border:`~ neutral-200/50 dark:neutral-700/30`,transition:`all duration-200`,hover:`bg-white/80 dark:bg-black/40`},P={flex:`~ row`,"items-center":``,"gap-2":``,"text-sm":``,"text-neutral-500":``,"dark:text-neutral-400":``},F={truncate:``,"font-medium":``},I={flex:`~ col`,bg:`white/60 dark:black/30`,"gap-2":``,"rounded-lg":``,"p-3":``,border:`~ neutral-200/50 dark:neutral-700/30`,transition:`all duration-200`,hover:`bg-white/80 dark:bg-black/40`},L={flex:`~ row`,"items-center":``,"gap-2":``,"text-sm":``,"text-neutral-500":``,"dark:text-neutral-400":``},ge={truncate:``,"font-medium":``},_e={flex:`~ col`,bg:`white/60 dark:black/30`,"gap-2":``,"rounded-lg":``,"p-3":``,border:`~ neutral-200/50 dark:neutral-700/30`,transition:`all duration-200`,hover:`bg-white/80 dark:bg-black/40`},ve={flex:`~ row`,"items-center":``,"gap-2":``,"text-sm":``,"text-neutral-500":``,"dark:text-neutral-400":``},ye={truncate:``,"font-medium":``},be={key:1,bg:`neutral-50/50 dark:neutral-900/50`,"rounded-xl":``,"p-8":``,"text-center":``,border:`~ neutral-200/50 dark:neutral-700/30`,shadow:`sm`};var R=i({__name:`CardDetailDialog`,props:{modelValue:{type:Boolean},cardId:{}},emits:[`update:modelValue`],setup(i,{emit:R}){let z=i,B=R,{t:V}=t(),H=e(),{removeCard:xe}=H,{activeCardId:U}=ee(H),W=r(()=>{if(z.cardId)return H.getCard(z.cardId)}),G=r(()=>{if(!W.value||!W.value.extensions?.airi?.modules)return{consciousness:``,speech:``,voice:``};let e=W.value.extensions.airi.modules;return{consciousness:e.consciousness?.model||``,speech:e.speech?.model||``,voice:e.speech?.voice_id||``}}),K=r(()=>W.value?{personality:W.value.personality,scenario:W.value.scenario,systemPrompt:W.value.systemPrompt,postHistoryInstructions:W.value.postHistoryInstructions}:{}),q=r(()=>z.cardId===U.value),J=p(!1);function Se(){J.value=!0,setTimeout(()=>{U.value=z.cardId,J.value=!1},300)}function Y(e){return e?.replace(/\{\{(.*?)\}\}/g,`<span class="bg-primary-500/20 inline-block">{{ $1 }}</span>`).trim()}let X=p(!1);function Ce(){W.value&&(xe(z.cardId),B(`update:modelValue`,!1)),X.value=!1}let Z=p(``),Q=r(()=>{let e=[];return W.value?.description&&e.push({id:`description`,label:V(`settings.pages.card.description_label`),icon:`i-solar:document-text-linear`}),W.value?.notes&&e.push({id:`notes`,label:V(`settings.pages.card.creator_notes`),icon:`i-solar:notes-linear`}),Object.values(K.value).some(e=>!!e)&&e.push({id:`character`,label:V(`settings.pages.card.character`),icon:`i-solar:user-rounded-linear`}),e.push({id:`modules`,label:V(`settings.pages.card.modules`),icon:`i-solar:tuning-square-linear`}),e}),$=r({get:()=>Q.value.find(e=>e.id===Z.value)?Z.value:Q.value[0]?.id||``,set:e=>{Z.value=e}});return(e,t)=>(l(),s(n,null,[c(m(ie),{open:e.modelValue,"onUpdate:open":t[0]||=e=>B(`update:modelValue`,e)},{default:a(()=>[c(m(re),null,{default:a(()=>[c(m(_),{class:`data-[state=open]:animate-fadeIn data-[state=closed]:animate-fadeOut fixed inset-0 z-100 bg-black/50 backdrop-blur-sm`}),c(m(ne),{class:`data-[state=open]:animate-contentShow data-[state=closed]:animate-contentHide fixed left-1/2 top-1/2 z-100 m-0 max-h-[90vh] max-w-6xl w-[92vw] flex flex-col overflow-auto border border-neutral-200 rounded-xl bg-white p-5 shadow-xl 2xl:w-[60vw] lg:w-[80vw] md:w-[85vw] xl:w-[70vw] -translate-x-1/2 -translate-y-1/2 dark:border-neutral-700 dark:bg-neutral-800 sm:p-6`},{default:a(()=>[W.value?(l(),s(`div`,oe,[u(`div`,se,[u(`div`,ce,[u(`div`,null,[u(`div`,le,[c(m(v),{"text-2xl":``,"font-normal":``,class:`from-primary-500 to-primary-400 bg-gradient-to-r bg-clip-text text-transparent`},{default:a(()=>[f(h(W.value.name),1)]),_:1}),q.value?(l(),s(`div`,ue,[t[3]||=u(`div`,{"i-solar:check-circle-bold-duotone":``,"text-xs":``},null,-1),f(` `+h(m(V)(`settings.pages.card.active_badge`)),1)])):o(``,!0)]),u(`div`,de,[f(` v`+h(W.value.version)+` `,1),W.value.creator?(l(),s(n,{key:0},[f(` · `+h(m(V)(`settings.pages.card.created_by`))+` `,1),u(`span`,fe,h(W.value.creator),1)],64)):o(``,!0)])]),u(`div`,pe,[c(m(te),{variant:`primary`,icon:q.value?`i-solar:check-circle-bold-duotone`:`i-solar:play-circle-broken`,label:q.value?m(V)(`settings.pages.card.active`):m(V)(`settings.pages.card.activate`),disabled:q.value,class:g({"animate-pulse":J.value}),onClick:Se},null,8,[`icon`,`label`,`disabled`,`class`])])]),u(`div`,me,[u(`div`,he,[u(`div`,y,[(l(!0),s(n,null,d(Q.value,e=>(l(),s(`button`,{key:e.id,class:g([`px-4 py-2 text-sm font-medium`,[$.value===e.id?`text-primary-600 dark:text-primary-400 border-b-2 border-primary-500 dark:border-primary-400`:`text-neutral-500 dark:text-neutral-400 hover:text-neutral-700 dark:hover:text-neutral-300`]]),onClick:t=>$.value=e.id},[u(`div`,x,[u(`div`,{class:g(e.icon)},null,2),f(` `+h(e.label),1)])],10,b))),128))])])]),$.value===`notes`&&W.value.notes?(l(),s(`div`,S,[u(`div`,{bg:`white/60 dark:black/30`,border:`~ neutral-200/50 dark:neutral-700/30`,"max-h-60":``,"overflow-auto":``,"whitespace-pre-line":``,"rounded-lg":``,"p-4":``,"text-neutral-700":``,"sm:max-h-80":``,"dark:text-neutral-300":``,transition:`all duration-200`,hover:`bg-white/80 dark:bg-black/40`,innerHTML:Y(W.value.notes)},null,8,C)])):o(``,!0),$.value===`description`&&W.value.description?(l(),s(`div`,w,[u(`div`,{bg:`white/60 dark:black/30`,"max-h-60":``,"overflow-auto":``,"whitespace-pre-line":``,"rounded-lg":``,"p-4":``,"sm:max-h-80":``,text:`neutral-600 dark:neutral-300`,border:`~ neutral-200/50 dark:neutral-700/30`,innerHTML:Y(W.value.description)},null,8,T)])):o(``,!0),$.value===`character`&&Object.values(K.value).some(e=>!!e)?(l(),s(`div`,E,[u(`div`,D,[(l(!0),s(n,null,d(K.value,(e,t)=>(l(),s(n,{key:t},[e?(l(),s(`div`,O,[u(`h2`,k,h(m(V)(`settings.pages.card.${t.toLowerCase()}`)),1),u(`div`,{bg:`white/60 dark:black/30`,border:`~ neutral-200/50 dark:neutral-700/30`,transition:`all duration-200`,hover:`bg-white/80 dark:bg-black/40`,"max-h-none":``,"overflow-auto":``,"whitespace-pre-line":``,"rounded-lg":``,"p-3":``,"text-neutral-700":``,"dark:text-neutral-300":``,innerHTML:Y(e)},null,8,A)])):o(``,!0)],64))),128))])])):o(``,!0),$.value===`modules`?(l(),s(`div`,j,[u(`div`,M,[u(`div`,N,[u(`span`,P,[t[4]||=u(`div`,{"i-lucide:ghost":``},null,-1),f(` `+h(m(V)(`settings.pages.card.consciousness.model`)),1)]),u(`div`,F,h(G.value.consciousness??`default`),1)]),u(`div`,I,[u(`span`,L,[t[5]||=u(`div`,{"i-lucide:mic":``},null,-1),f(` `+h(m(V)(`settings.pages.card.speech.model`)),1)]),u(`div`,ge,h(G.value.speech??`default`),1)]),u(`div`,_e,[u(`span`,ve,[t[6]||=u(`div`,{"i-lucide:music":``},null,-1),f(` `+h(m(V)(`settings.pages.card.speech.voice`)),1)]),u(`div`,ye,h(G.value.voice??`default`),1)])])])):o(``,!0)])])):(l(),s(`div`,be,[t[7]||=u(`div`,{"i-solar:card-search-broken":``,"mx-auto":``,"mb-3":``,"text-6xl":``,"text-neutral-400":``},null,-1),f(` `+h(m(V)(`settings.pages.card.card_not_found`)),1)]))]),_:1})]),_:1})]),_:1},8,[`open`]),c(ae,{modelValue:X.value,"onUpdate:modelValue":t[1]||=e=>X.value=e,"card-name":W.value?.name,onConfirm:Ce,onCancel:t[2]||=e=>X.value=!1},null,8,[`modelValue`,`card-name`])],64))}}),z=R;export{z as b};
assets/CardDetailDialog-Cihog42D.js DELETED
@@ -1 +0,0 @@
1
- import"./DeleteCardDialog-CAunrpw4.js";import{b as e}from"./CardDetailDialog-BWmoz5Dn.js";export{e as default};
 
 
assets/CardDetailDialog-u5SuyQKM.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import"./DeleteCardDialog-CjvdqreN.js";import{b as e}from"./CardDetailDialog-BXWnYf9o.js";export{e as default};
assets/CardListItem-BVtBR05L.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{b as e}from"./CardListItem-BjLccdEW.js";export{e as default};
assets/{CardListItem-mQrm8iFB.js → CardListItem-BjLccdEW.js} RENAMED
@@ -1 +1 @@
1
- import{ae as e,bF as t,bM as n,bN as r,bO as i,bP as a,bX as o,bY as s,c1 as c,c9 as l,ca as u,cb as d}from"./index-iU6Tacov.js";const f={relative:``,flex:`~ col 1`,"justify-between":``,"gap-3":``,"overflow-hidden":``,"rounded-lg":``,bg:`white dark:neutral-900`,"p-5":``,transition:`all ease-in-out duration-400`,after:`content-empty absolute inset-0 z--2 w-full h-full bg-dotted-[neutral-200/80] bg-size-10px mask-image-[linear-gradient(165deg,white_30%,transparent_50%)] transition-all duration-400 ease-in-out`,hover:`after:bg-dotted-[primary-300/50] dark:after:bg-dotted-[primary-200/20] text-primary-600/80 dark:text-primary-300/80`},p={"z-1":``,flex:``,"items-start":``,"justify-between":``,"gap-2":``},m={"flex-1":``,truncate:``,"text-lg":``,"font-normal":``},h={key:0,"shrink-0":``,"rounded-md":``,"p-1":``,bg:`primary-100 dark:primary-900/40`,text:`primary-600 dark:primary-400`},g={key:0,"line-clamp-3":``,"min-h-40px":``,"flex-1":``,"text-sm":``,text:`neutral-500 dark:neutral-400`},_={"z-1":``,flex:``,"items-center":``,"justify-between":``,"text-xs":``,text:`neutral-500 dark:neutral-400`},v={flex:``,"items-center":``,"gap-1.5":``},y={flex:``,"items-center":``,"gap-0.5":``},b={flex:``,"items-center":``,"gap-0.5":``},x={flex:``,"items-center":``,"justify-end":``,"px-2":``,"py-1.5":``},S=[`disabled`];var C=n({__name:`CardListItem`,props:{id:{},name:{},description:{},isActive:{type:Boolean},isSelected:{type:Boolean},version:{},consciousnessModel:{},voiceModel:{}},emits:[`select`,`activate`,`delete`],setup(n,{emit:C}){let w=C;return(n,C)=>(o(),c(l(e),{relative:``,"min-h-120px":``,flex:`~ col`,"cursor-pointer":``,"overflow-hidden":``,"rounded-xl":``,class:d([n.isSelected?`border-2 border-primary-400 dark:border-primary-600`:`border-2 border-neutral-100 dark:border-neutral-800/25`]),bg:`neutral-200/50 dark:neutral-800/50`,"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`,transition:`all ease-in-out duration-400`,before:`content-empty absolute inset-0 z-0 w-25% h-full transition-all duration-400 ease-in-out bg-gradient-to-r from-primary-500/0 to-primary-500/0 dark:from-primary-400/0 dark:to-primary-400/0 mask-image-[linear-gradient(120deg,white_100%)] opacity-0`,hover:`before:opacity-100 before:bg-gradient-to-r before:from-primary-500/20 before:via-primary-500/10 before:to-transparent before:dark:from-primary-400/20 before:dark:via-primary-400/10 before:dark:to-transparent`,onClick:C[2]||=e=>w(`select`)},{default:r(()=>[s(`div`,f,[s(`div`,p,[s(`h3`,m,u(n.name),1),n.isActive?(o(),a(`div`,h,C[3]||=[s(`div`,{"i-solar:check-circle-bold-duotone":``,"text-sm":``},null,-1)])):i(``,!0)]),n.description?(o(),a(`p`,g,u(n.description),1)):i(``,!0),s(`div`,_,[s(`div`,null,`v`+u(n.version),1),s(`div`,v,[s(`div`,y,[C[4]||=s(`div`,{"i-lucide:ghost":``,"text-xs":``},null,-1),s(`span`,null,u(n.consciousnessModel),1)]),s(`div`,b,[C[5]||=s(`div`,{"i-lucide:mic":``,"text-xs":``},null,-1),s(`span`,null,u(n.voiceModel),1)])])])]),s(`div`,x,[s(`button`,{"rounded-lg":``,"p-1.5":``,"transition-colors":``,hover:`bg-neutral-200 dark:bg-neutral-700/50`,disabled:n.isActive,onClick:C[0]||=t(e=>w(`activate`),[`stop`])},[s(`div`,{class:d([n.isActive?`i-solar:check-circle-bold-duotone text-primary-500 dark:text-primary-400`:`i-solar:play-circle-broken text-neutral-500 dark:text-neutral-400`])},null,2)],8,S),n.id===`default`?i(``,!0):(o(),a(`button`,{key:0,"rounded-lg":``,"p-1.5":``,"transition-colors":``,hover:`bg-neutral-200 dark:bg-neutral-700/50`,onClick:C[1]||=t(e=>w(`delete`),[`stop`])},C[6]||=[s(`div`,{"i-solar:trash-bin-trash-linear":``,text:`neutral-500 dark:neutral-400`},null,-1)]))])]),_:1},8,[`class`]))}}),w=C;export{w as b};
 
1
+ import{ae as e,bH as t,bQ as n,bR as r,bS as i,bT as a,bz as o,c0 as s,c1 as c,c9 as l,cb as u,cc as d}from"./index-BQADcPRe.js";const f={relative:``,flex:`~ col 1`,"justify-between":``,"gap-3":``,"overflow-hidden":``,"rounded-lg":``,bg:`white dark:neutral-900`,"p-5":``,transition:`all ease-in-out duration-400`,after:`content-empty absolute inset-0 z--2 w-full h-full bg-dotted-[neutral-200/80] bg-size-10px mask-image-[linear-gradient(165deg,white_30%,transparent_50%)] transition-all duration-400 ease-in-out`,hover:`after:bg-dotted-[primary-300/50] dark:after:bg-dotted-[primary-200/20] text-primary-600/80 dark:text-primary-300/80`},p={"z-1":``,flex:``,"items-start":``,"justify-between":``,"gap-2":``},m={"flex-1":``,truncate:``,"text-lg":``,"font-normal":``},h={key:0,"shrink-0":``,"rounded-md":``,"p-1":``,bg:`primary-100 dark:primary-900/40`,text:`primary-600 dark:primary-400`},g={key:0,"line-clamp-3":``,"min-h-40px":``,"flex-1":``,"text-sm":``,text:`neutral-500 dark:neutral-400`},_={"z-1":``,flex:``,"items-center":``,"justify-between":``,"text-xs":``,text:`neutral-500 dark:neutral-400`},v={flex:``,"items-center":``,"gap-1.5":``},y={flex:``,"items-center":``,"gap-0.5":``},b={flex:``,"items-center":``,"gap-0.5":``},x={flex:``,"items-center":``,"justify-end":``,"px-2":``,"py-1.5":``},S=[`disabled`];var C=n({__name:`CardListItem`,props:{id:{},name:{},description:{},isActive:{type:Boolean},isSelected:{type:Boolean},version:{},consciousnessModel:{},voiceModel:{}},emits:[`select`,`activate`,`delete`],setup(n,{emit:C}){let w=C;return(n,C)=>(s(),t(l(e),{relative:``,"min-h-120px":``,flex:`~ col`,"cursor-pointer":``,"overflow-hidden":``,"rounded-xl":``,class:d([n.isSelected?`border-2 border-primary-400 dark:border-primary-600`:`border-2 border-neutral-100 dark:border-neutral-800/25`]),bg:`neutral-200/50 dark:neutral-800/50`,"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`,transition:`all ease-in-out duration-400`,before:`content-empty absolute inset-0 z-0 w-25% h-full transition-all duration-400 ease-in-out bg-gradient-to-r from-primary-500/0 to-primary-500/0 dark:from-primary-400/0 dark:to-primary-400/0 mask-image-[linear-gradient(120deg,white_100%)] opacity-0`,hover:`before:opacity-100 before:bg-gradient-to-r before:from-primary-500/20 before:via-primary-500/10 before:to-transparent before:dark:from-primary-400/20 before:dark:via-primary-400/10 before:dark:to-transparent`,onClick:C[2]||=e=>w(`select`)},{default:r(()=>[c(`div`,f,[c(`div`,p,[c(`h3`,m,u(n.name),1),n.isActive?(s(),a(`div`,h,C[3]||=[c(`div`,{"i-solar:check-circle-bold-duotone":``,"text-sm":``},null,-1)])):i(``,!0)]),n.description?(s(),a(`p`,g,u(n.description),1)):i(``,!0),c(`div`,_,[c(`div`,null,`v`+u(n.version),1),c(`div`,v,[c(`div`,y,[C[4]||=c(`div`,{"i-lucide:ghost":``,"text-xs":``},null,-1),c(`span`,null,u(n.consciousnessModel),1)]),c(`div`,b,[C[5]||=c(`div`,{"i-lucide:mic":``,"text-xs":``},null,-1),c(`span`,null,u(n.voiceModel),1)])])])]),c(`div`,x,[c(`button`,{"rounded-lg":``,"p-1.5":``,"transition-colors":``,hover:`bg-neutral-200 dark:bg-neutral-700/50`,disabled:n.isActive,onClick:C[0]||=o(e=>w(`activate`),[`stop`])},[c(`div`,{class:d([n.isActive?`i-solar:check-circle-bold-duotone text-primary-500 dark:text-primary-400`:`i-solar:play-circle-broken text-neutral-500 dark:text-neutral-400`])},null,2)],8,S),n.id===`default`?i(``,!0):(s(),a(`button`,{key:0,"rounded-lg":``,"p-1.5":``,"transition-colors":``,hover:`bg-neutral-200 dark:bg-neutral-700/50`,onClick:C[1]||=o(e=>w(`delete`),[`stop`])},C[6]||=[c(`div`,{"i-solar:trash-bin-trash-linear":``,text:`neutral-500 dark:neutral-400`},null,-1)]))])]),_:1},8,[`class`]))}}),w=C;export{w as b};
assets/CardListItem-CRPBuXnj.js DELETED
@@ -1 +0,0 @@
1
- import{b as e}from"./CardListItem-mQrm8iFB.js";export{e as default};
 
 
assets/DeleteCardDialog-C-T1b3GS.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{b as e}from"./DeleteCardDialog-CjvdqreN.js";export{e as default};
assets/DeleteCardDialog-CAunrpw4.js DELETED
@@ -1 +0,0 @@
1
- import{M as e,ai as t,b$ as n,bM as r,bN as i,bT as a,bX as o,bY as s,c,c1 as l,c9 as u,ca as d,d as f,f as p,h as m,i as h,k as g,m as _,o as v}from"./index-iU6Tacov.js";const y={class:`flex flex-row justify-end gap-3`};var b=r({__name:`DeleteCardDialog`,props:{modelValue:{type:Boolean},cardName:{}},emits:[`update:modelValue`,`confirm`,`cancel`],setup(r,{emit:b}){let x=b,{t:S}=e();function C(){x(`update:modelValue`,!1),x(`cancel`)}function w(){x(`update:modelValue`,!1),x(`confirm`)}return(e,r)=>(o(),l(u(_),{open:e.modelValue,"onUpdate:open":r[0]||=e=>x(`update:modelValue`,e)},{default:i(()=>[a(u(g),null,{default:i(()=>[a(u(c),{class:`data-[state=open]:animate-fadeIn data-[state=closed]:animate-fadeOut fixed inset-0 z-100 bg-black/50`}),a(u(p),{class:`data-[state=open]:animate-contentShow data-[state=closed]:animate-contentHide fixed left-1/2 top-1/2 z-100 max-w-md w-full border border-neutral-200 rounded-xl bg-white p-6 shadow-xl -translate-x-1/2 -translate-y-1/2 dark:border-neutral-700 dark:bg-neutral-800`},{default:i(()=>[a(u(f),{class:`mb-4 text-xl font-normal`},{default:i(()=>[n(d(u(S)(`settings.pages.card.delete_card`)),1)]),_:1}),a(u(h),{class:`mb-6`},{default:i(()=>[n(d(u(S)(`settings.pages.card.delete_confirmation`))+` `,1),s(`b`,null,`"`+d(e.cardName||``)+`"`,1)]),_:1}),s(`div`,y,[a(u(m),{"as-child":``},{default:i(()=>[a(u(t),{variant:`secondary`,label:u(S)(`settings.pages.card.cancel`),onClick:C},null,8,[`label`])]),_:1}),a(u(v),{"as-child":``},{default:i(()=>[a(u(t),{variant:`danger`,label:u(S)(`settings.pages.card.delete`),onClick:w},null,8,[`label`])]),_:1})])]),_:1})]),_:1})]),_:1},8,[`open`]))}}),x=b;export{x as b};
 
 
assets/DeleteCardDialog-CjvdqreN.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{M as e,ai as t,bH as n,bQ as r,bR as i,bX as a,c as o,c0 as s,c1 as c,c3 as l,c9 as u,cb as d,e as f,g as p,i as m,j as h,k as g,m as _,o as v}from"./index-BQADcPRe.js";const y={class:`flex flex-row justify-end gap-3`};var b=r({__name:`DeleteCardDialog`,props:{modelValue:{type:Boolean},cardName:{}},emits:[`update:modelValue`,`confirm`,`cancel`],setup(r,{emit:b}){let x=b,{t:S}=e();function C(){x(`update:modelValue`,!1),x(`cancel`)}function w(){x(`update:modelValue`,!1),x(`confirm`)}return(e,r)=>(s(),n(u(p),{open:e.modelValue,"onUpdate:open":r[0]||=e=>x(`update:modelValue`,e)},{default:i(()=>[a(u(f),null,{default:i(()=>[a(u(h),{class:`data-[state=open]:animate-fadeIn data-[state=closed]:animate-fadeOut fixed inset-0 z-100 bg-black/50`}),a(u(_),{class:`data-[state=open]:animate-contentShow data-[state=closed]:animate-contentHide fixed left-1/2 top-1/2 z-100 max-w-md w-full border border-neutral-200 rounded-xl bg-white p-6 shadow-xl -translate-x-1/2 -translate-y-1/2 dark:border-neutral-700 dark:bg-neutral-800`},{default:i(()=>[a(u(g),{class:`mb-4 text-xl font-normal`},{default:i(()=>[l(d(u(S)(`settings.pages.card.delete_card`)),1)]),_:1}),a(u(o),{class:`mb-6`},{default:i(()=>[l(d(u(S)(`settings.pages.card.delete_confirmation`))+` `,1),c(`b`,null,`"`+d(e.cardName||``)+`"`,1)]),_:1}),c(`div`,y,[a(u(v),{"as-child":``},{default:i(()=>[a(u(t),{variant:`secondary`,label:u(S)(`settings.pages.card.cancel`),onClick:C},null,8,[`label`])]),_:1}),a(u(m),{"as-child":``},{default:i(()=>[a(u(t),{variant:`danger`,label:u(S)(`settings.pages.card.delete`),onClick:w},null,8,[`label`])]),_:1})])]),_:1})]),_:1})]),_:1},8,[`open`]))}}),x=b;export{x as b};
assets/DeleteCardDialog-D4Zi_S2r.js DELETED
@@ -1 +0,0 @@
1
- import{b as e}from"./DeleteCardDialog-CAunrpw4.js";export{e as default};
 
 
assets/{HeaderLink-OXwpcq2X.js → HeaderLink-DNs7ZhZu.js} RENAMED
@@ -1 +1 @@
1
- import{aN as e,aV as t,b6 as n,bM as r,bN as i,bP as a,bX as o,bY as s,c1 as c,c9 as l}from"./index-iU6Tacov.js";var u=`/assets/logo-dark-B0bvNYTh.svg`,d=`/assets/logo-B2aCU-bH.svg`;const f=[`src`],p=[`src`];var m=r({__name:`HeaderLink`,setup(e){let r=n();return(e,n)=>(o(),c(l(t),{to:`/`,flex:`~`,"items-center":``,"gap-2":``,"px-2":``,"text-nowrap":``,"text-2xl":``,"outline-none":``},{default:i(()=>[l(r)?(o(),a(`img`,{key:0,src:l(u),"h-8":``,"w-8":``,class:`theme-colored`},null,8,f)):(o(),a(`img`,{key:1,src:l(d),"h-8":``,"w-8":``,class:`theme-colored`},null,8,p)),n[0]||=s(`div`,{"translate-y":`[2px]`,"font-quicksand":``,"font-semibold":``},[s(`span`,null,`AIRI`)],-1)]),_:1,__:[0]}))}}),h=e(m,[[`__scopeId`,`data-v-242dcb19`]]);export{h as b,d as c,u as d};
 
1
+ import{aN as e,aV as t,b4 as n,bH as r,bQ as i,bR as a,bT as o,c0 as s,c1 as c,c9 as l}from"./index-BQADcPRe.js";var u=`/assets/logo-dark-B0bvNYTh.svg`,d=`/assets/logo-B2aCU-bH.svg`;const f=[`src`],p=[`src`];var m=i({__name:`HeaderLink`,setup(e){let i=n();return(e,n)=>(s(),r(l(t),{to:`/`,flex:`~`,"items-center":``,"gap-2":``,"px-2":``,"text-nowrap":``,"text-2xl":``,"outline-none":``},{default:a(()=>[l(i)?(s(),o(`img`,{key:0,src:l(u),"h-8":``,"w-8":``,class:`theme-colored`},null,8,f)):(s(),o(`img`,{key:1,src:l(d),"h-8":``,"w-8":``,class:`theme-colored`},null,8,p)),n[0]||=c(`div`,{"translate-y":`[2px]`,"font-quicksand":``,"font-semibold":``},[c(`span`,null,`AIRI`)],-1)]),_:1,__:[0]}))}}),h=e(m,[[`__scopeId`,`data-v-242dcb19`]]);export{h as b,d as c,u as d};
assets/{IconAnimation-CJt8KSZi.js → IconAnimation-8qdjWIx9.js} RENAMED
@@ -1 +1 @@
1
- import{bK as e,bM as t,bP as n,bV as r,bX as i,bY as a,c6 as o,cb as s,cc as c}from"./index-iU6Tacov.js";var l=t({__name:`IconAnimation`,props:{icon:{},iconSize:{},position:{},duration:{},started:{type:Boolean},textColor:{},isReverse:{type:Boolean},zIndex:{}},emits:[`animationEnded`],setup(t,{emit:l}){let u=t,d=l,f=o(!1);r(()=>u.started,e=>{e&&requestAnimationFrame(()=>{f.value=!0})});let p=e(()=>({opacity:f.value===u.isReverse?0:1,size:f.value===u.isReverse?u.iconSize:25,position:f.value===u.isReverse?u.position:`calc(50dvw - 12.5rem), calc(50dvh - 12.5rem)`,textColor:f.value===u.isReverse?u.textColor:`text-white`})),m=o([]),h=o(!1);function g(e){m.value.push(e.propertyName),m.value.includes(`color`)&&m.value.includes(`width`)&&m.value.includes(`height`)&&m.value.includes(`transform`)&&(h.value=!0,d(`animationEnded`))}return(e,t)=>(i(),n(`div`,{"pointer-events-none":``,fixed:``,w:`100dvw`,h:`100dvh`,style:c({zIndex:h.value?e.zIndex:void 0})},[a(`div`,{fixed:``,"inset-0":``,"bg-primary-500":``,"transition-opacity":``,"ease-linear":``,style:c({opacity:p.value.opacity,transitionDuration:`${e.duration}ms`})},null,4),a(`div`,{fixed:``,"inset-0":``,"ease-in-out":``,style:c({width:`${p.value.size}rem`,height:`${p.value.size}rem`,transform:`translate(${p.value.position})`,transitionDuration:`${e.duration}ms`}),class:s([p.value.textColor,u.icon,{"transition-all":f.value}]),onTransitionend:g},null,38)],4))}}),u=l;export{u as b};
 
1
+ import{bO as e,bQ as t,bT as n,bZ as r,c0 as i,c1 as a,c6 as o,ca as s,cc as c}from"./index-BQADcPRe.js";var l=t({__name:`IconAnimation`,props:{icon:{},iconSize:{},position:{},duration:{},started:{type:Boolean},textColor:{},isReverse:{type:Boolean},zIndex:{}},emits:[`animationEnded`],setup(t,{emit:l}){let u=t,d=l,f=o(!1);r(()=>u.started,e=>{e&&requestAnimationFrame(()=>{f.value=!0})});let p=e(()=>({opacity:f.value===u.isReverse?0:1,size:f.value===u.isReverse?u.iconSize:25,position:f.value===u.isReverse?u.position:`calc(50dvw - 12.5rem), calc(50dvh - 12.5rem)`,textColor:f.value===u.isReverse?u.textColor:`text-white`})),m=o([]),h=o(!1);function g(e){m.value.push(e.propertyName),m.value.includes(`color`)&&m.value.includes(`width`)&&m.value.includes(`height`)&&m.value.includes(`transform`)&&(h.value=!0,d(`animationEnded`))}return(e,t)=>(i(),n(`div`,{"pointer-events-none":``,fixed:``,w:`100dvw`,h:`100dvh`,style:s({zIndex:h.value?e.zIndex:void 0})},[a(`div`,{fixed:``,"inset-0":``,"bg-primary-500":``,"transition-opacity":``,"ease-linear":``,style:s({opacity:p.value.opacity,transitionDuration:`${e.duration}ms`})},null,4),a(`div`,{fixed:``,"inset-0":``,"ease-in-out":``,style:s({width:`${p.value.size}rem`,height:`${p.value.size}rem`,transform:`translate(${p.value.position})`,transitionDuration:`${e.duration}ms`}),class:c([p.value.textColor,u.icon,{"transition-all":f.value}]),onTransitionend:g},null,38)],4))}}),u=l;export{u as b};
assets/{InputFile-1gH4AIZt.js → InputFile-COpQFPz2.js} RENAMED
@@ -1 +1 @@
1
- import{bM as e,bP as t,bU as n,bX as r,bY as i,bf as a,c2 as o,c3 as s,c6 as c,c9 as l,cb as u}from"./index-iU6Tacov.js";const d=[`accept`,`multiple`],f={key:0,text:`center`,"text-sm":``},p={key:1,text:`center`,"text-sm":``};var m=e({__name:`InputFile`,props:n({accept:{},multiple:{type:Boolean}},{modelValue:{required:!1,default:()=>[]},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let n=o(e,`modelValue`),m=c(),h=c(!1),g=a(h,150);function _(e){let t=e.target;t.files&&t.files.length>0&&(m.value=t.files[0]),n.value=Array.from(t.files||[]),h.value=!1}return(e,a)=>(r(),t(`label`,{relative:``,class:u([`min-h-[120px] flex flex-col cursor-pointer items-center justify-center rounded-xl p-6`,[l(g)?`border-primary-400 dark:border-primary-600 hover:border-primary-300 dark:hover:border-primary-700`:`border-neutral-200 dark:border-neutral-700 hover:border-primary-300 dark:hover:border-primary-700`,l(g)?`bg-primary-50/5 dark:bg-primary-900/5`:`bg-white/60 dark:bg-black/30 hover:bg-white/80 dark:hover:bg-black/40`]]),border:`dashed 2`,transition:`all duration-300`,"cursor-pointer":``,"opacity-95":``,hover:`scale-100 opacity-100 shadow-md dark:shadow-lg`,onDragover:a[0]||=e=>h.value=!0,onDragleave:a[1]||=e=>h.value=!1},[i(`input`,{type:`file`,accept:e.accept,multiple:e.multiple,"cursor-pointer":``,class:`absolute inset-0 h-full w-full opacity-0`,onChange:_},null,40,d),s(e.$slots,`default`,{isDragging:l(g),firstFile:m.value,files:n.value},()=>[i(`div`,{class:u([`flex flex-col items-center`,[l(g)?`text-primary-500 dark:text-primary-400`:`text-neutral-400 dark:text-neutral-500`]])},[a[2]||=i(`div`,{"i-solar:upload-square-line-duotone":``,"mb-2":``,"text-5xl":``},null,-1),a[3]||=i(`p`,{"font-medium":``,text:`center lg`},` Upload `,-1),l(g)?(r(),t(`p`,f,` Release to upload `)):(r(),t(`p`,p,` Click or drag and drop a file here `))],2)])],34))}}),h=m;export{h as b};
 
1
+ import{bI as e,bJ as t,bQ as n,bT as r,bY as i,be as a,c0 as o,c1 as s,c6 as c,c9 as l,cc as u}from"./index-BQADcPRe.js";const d=[`accept`,`multiple`],f={key:0,text:`center`,"text-sm":``},p={key:1,text:`center`,"text-sm":``};var m=n({__name:`InputFile`,props:i({accept:{},multiple:{type:Boolean}},{modelValue:{required:!1,default:()=>[]},modelModifiers:{}}),emits:[`update:modelValue`],setup(n){let i=e(n,`modelValue`),m=c(),h=c(!1),g=a(h,150);function _(e){let t=e.target;t.files&&t.files.length>0&&(m.value=t.files[0]),i.value=Array.from(t.files||[]),h.value=!1}return(e,n)=>(o(),r(`label`,{relative:``,class:u([`min-h-[120px] flex flex-col cursor-pointer items-center justify-center rounded-xl p-6`,[l(g)?`border-primary-400 dark:border-primary-600 hover:border-primary-300 dark:hover:border-primary-700`:`border-neutral-200 dark:border-neutral-700 hover:border-primary-300 dark:hover:border-primary-700`,l(g)?`bg-primary-50/5 dark:bg-primary-900/5`:`bg-white/60 dark:bg-black/30 hover:bg-white/80 dark:hover:bg-black/40`]]),border:`dashed 2`,transition:`all duration-300`,"cursor-pointer":``,"opacity-95":``,hover:`scale-100 opacity-100 shadow-md dark:shadow-lg`,onDragover:n[0]||=e=>h.value=!0,onDragleave:n[1]||=e=>h.value=!1},[s(`input`,{type:`file`,accept:e.accept,multiple:e.multiple,"cursor-pointer":``,class:`absolute inset-0 h-full w-full opacity-0`,onChange:_},null,40,d),t(e.$slots,`default`,{isDragging:l(g),firstFile:m.value,files:i.value},()=>[s(`div`,{class:u([`flex flex-col items-center`,[l(g)?`text-primary-500 dark:text-primary-400`:`text-neutral-400 dark:text-neutral-500`]])},[n[2]||=s(`div`,{"i-solar:upload-square-line-duotone":``,"mb-2":``,"text-5xl":``},null,-1),n[3]||=s(`p`,{"font-medium":``,text:`center lg`},` Upload `,-1),l(g)?(o(),r(`p`,f,` Release to upload `)):(o(),r(`p`,p,` Click or drag and drop a file here `))],2)])],34))}}),h=m;export{h as b};
assets/{Scenes-DguY40Pg.js → Scenes-CHUisyDY.js} RENAMED
The diff for this file is too large to render. See raw diff
 
assets/{Textarea-CPzk6mC3.js → Textarea-DLvvQ13i.js} RENAMED
@@ -1 +1 @@
1
- import{b as e}from"./Basic-DgX4BCdt.js";import{bM as t,bX as n,c1 as r,c2 as i}from"./index-iU6Tacov.js";var a=t({__name:`Textarea`,props:{modelValue:{default:``},modelModifiers:{}},emits:[`update:modelValue`],setup(t){let a=i(t,`modelValue`);return(t,i)=>(n(),r(e,{modelValue:a.value,"onUpdate:modelValue":i[0]||=e=>a.value=e,border:`focus:primary-300 dark:focus:primary-400/50 2 solid neutral-100 dark:neutral-900`,transition:`all duration-200 ease-in-out`,text:`disabled:neutral-400 dark:disabled:neutral-600`,cursor:`disabled:not-allowed`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-sm":``,"outline-none":``,shadow:`sm`,bg:`neutral-50 dark:neutral-950 focus:neutral-50 dark:focus:neutral-900`},null,8,[`modelValue`]))}}),o=a;export{o as b};
 
1
+ import{b as e}from"./Basic-C8SEHpp9.js";import{bH as t,bI as n,bQ as r,c0 as i}from"./index-BQADcPRe.js";var a=r({__name:`Textarea`,props:{modelValue:{default:``},modelModifiers:{}},emits:[`update:modelValue`],setup(r){let a=n(r,`modelValue`);return(n,r)=>(i(),t(e,{modelValue:a.value,"onUpdate:modelValue":r[0]||=e=>a.value=e,border:`focus:primary-300 dark:focus:primary-400/50 2 solid neutral-100 dark:neutral-900`,transition:`all duration-200 ease-in-out`,text:`disabled:neutral-400 dark:disabled:neutral-600`,cursor:`disabled:not-allowed`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-sm":``,"outline-none":``,shadow:`sm`,bg:`neutral-50 dark:neutral-950 focus:neutral-50 dark:focus:neutral-900`},null,8,[`modelValue`]))}}),o=a;export{o as b};
assets/_...all_-85Y5p_It.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{aT as e,ai as t,bQ as n,bR as r,bT as i,bX as a,c0 as o,c1 as s,c3 as c,c9 as l}from"./index-BQADcPRe.js";const u={"h-full":``,"w-full":``,flex:``,"flex-col":``,"items-center":``,"justify-center":``,"gap-4":``};var d=n({__name:`[...all]`,setup(n){let d=e();return(e,n)=>(o(),i(`div`,u,[n[2]||=s(`div`,{"text-3xl":``},` Where are we? `,-1),s(`div`,null,[a(l(t),{onClick:n[0]||=e=>l(d).go(-1)},{default:r(()=>n[1]||=[c(` Go Back `)]),_:1,__:[1]})])]))}}),f=d;export{f as default};
assets/_...all_-DlrzFmzf.js DELETED
@@ -1 +0,0 @@
1
- import{aT as e,ai as t,b$ as n,bM as r,bN as i,bP as a,bT as o,bX as s,bY as c,c9 as l}from"./index-iU6Tacov.js";const u={"h-full":``,"w-full":``,flex:``,"flex-col":``,"items-center":``,"justify-center":``,"gap-4":``};var d=r({__name:`[...all]`,setup(r){let d=e();return(e,r)=>(s(),a(`div`,u,[r[2]||=c(`div`,{"text-3xl":``},` Where are we? `,-1),c(`div`,null,[o(l(t),{onClick:r[0]||=e=>l(d).go(-1)},{default:i(()=>r[1]||=[n(` Go Back `)]),_:1,__:[1]})])]))}}),f=d;export{f as default};
 
 
assets/{__vite-browser-external-Cc9GS2DM.js → __vite-browser-external-B5qv5Q0c.js} RENAMED
@@ -1 +1 @@
1
- import{cd as e}from"./index-iU6Tacov.js";var t=e((exports,t)=>{t.exports={}});export default t();
 
1
+ import{cd as e}from"./index-BQADcPRe.js";var t=e((exports,t)=>{t.exports={}});export default t();
assets/airi-card-CB3SKPI2.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{b as e}from"./InputFile-COpQFPz2.js";import{G as t,M as n,aH as r,aY as i,am as a,b$ as ee,bD as te,bH as o,bK as s,bN as c,bO as l,bQ as ne,bR as u,bS as d,bT as f,bX as p,bZ as m,c0 as h,c1 as g,c2 as _,c3 as v,c6 as y,c9 as b,cb as x,cc as re}from"./index-BQADcPRe.js";import{b as S}from"./route-block-B2lA4iHQ.js";import{b as C}from"./CardCreate-OzPwRjcU.js";import{b as w}from"./CardCreationDialog-5nhDZHS6.js";import{b as T}from"./DeleteCardDialog-CjvdqreN.js";import{b as E}from"./CardDetailDialog-BXWnYf9o.js";import{b as D}from"./CardListItem-BjLccdEW.js";const O={"rounded-xl":``,"p-4":``,flex:`~ col gap-4`},ie={flex:`~ row`,"flex-wrap":``,"items-center":``,"justify-between":``,"gap-4":``},ae={class:`relative min-w-[200px] flex-1`,"inline-flex":`~`,"w-full":``,"items-center":``},oe=[`placeholder`],k={class:`relative flex flex-row justify-start gap-2 lg:flex-col`},A={class:`top-[-32px] whitespace-nowrap text-sm text-neutral-500 leading-10 lg:absolute dark:text-neutral-400`},j={key:0,flex:``,"flex-col":``,"items-center":``},M={"font-medium":``,text:`neutral-600 dark:neutral-300`},N={text:`neutral-500 dark:neutral-400`,"mt-2":``,"text-sm":``},P={key:1,flex:``,"flex-col":``,"items-center":``},F={"font-medium":``,text:`primary-600 dark:primary-300`},I={key:1,class:`col-span-full rounded-xl p-8 text-center`,border:`~ neutral-200/50 dark:neutral-700/30`,bg:`neutral-50/50 dark:neutral-900/50`},L={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-15rem)]`,"bottom-0":``,"right--5":``,"z--1":``,initial:{scale:.9,opacity:0,x:20},enter:{scale:1,opacity:1,x:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``};var R=ne({__name:`index`,setup(ne){let{t:S}=n(),R=t(),{addCard:z,removeCard:B}=R,{cards:V,activeCardId:H}=i(R),U=y(``),W=y(!1),G=y(!1),K=y(``),q=y(`nameAsc`),J=y([]);m(J,async e=>{let t=e[0];if(t)try{let e=await t.text(),n=JSON.parse(e);U.value=z(n),W.value=!0}catch(e){console.error(`Error processing card file:`,e)}});let Y=l(()=>Array.from(V.value.entries()).map(([e,t])=>({id:e,name:t.name,description:t.description}))),se=l(()=>{if(!K.value)return Y.value;let e=K.value.toLowerCase();return Y.value.filter(t=>t.name.toLowerCase().includes(e)||t.description&&t.description.toLowerCase().includes(e))}),X=l(()=>{let e=[...se.value];return q.value===`nameAsc`?e.sort((e,t)=>e.name.localeCompare(t.name)):q.value===`nameDesc`?e.sort((e,t)=>t.name.localeCompare(e.name)):q.value===`recent`?e.sort((e,t)=>t.id.localeCompare(e.id)):e}),Z=y(!1),Q=y(null);function ce(){Q.value&&(B(Q.value),Q.value=null,Z.value=!1)}function le(e){Q.value=e,Z.value=!0}function ue(e){U.value=e,W.value=!0}function de(){G.value=!0}function fe(e){H.value=e}function pe(e){let t=V.value.get(e);return t?.version||`1.0.0`}function $(e,t){let n=V.value.get(e);if(!n||!n.extensions?.airi?.modules)return`default`;let r=n.extensions.airi.modules;return t===`consciousness`?r.consciousness?.model&&r.consciousness.model.split(`-`).pop()||`default`:t===`voice`&&r.speech?.voice_id||`default`}return(t,n)=>{let i=ee(`motion`);return h(),f(c,null,[g(`div`,O,[g(`div`,ie,[g(`div`,ae,[n[7]||=g(`div`,{class:`pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3`},[g(`div`,{"i-solar:magnifer-line-duotone":``,class:`text-neutral-500 dark:text-neutral-400`})],-1),s(g(`input`,{"onUpdate:modelValue":n[0]||=e=>K.value=e,type:`search`,class:`w-full rounded-xl p-2.5 pl-10 text-sm outline-none`,border:`focus:primary-100 dark:focus:primary-400/50 2 solid neutral-200 dark:neutral-800`,transition:`all duration-200 ease-in-out`,bg:`white dark:neutral-900`,placeholder:b(S)(`settings.pages.card.search`)},null,8,oe),[[te,K.value]])]),g(`div`,k,[g(`div`,A,x(b(S)(`settings.pages.card.sort_by`))+`: `,1),p(b(r),{modelValue:q.value,"onUpdate:modelValue":n[1]||=e=>q.value=e,options:[{value:`nameAsc`,label:b(S)(`settings.pages.card.name_asc`)},{value:`nameDesc`,label:b(S)(`settings.pages.card.name_desc`)},{value:`recent`,label:b(S)(`settings.pages.card.recent`)}],placeholder:`Select sort option`,class:`min-w-[150px]`},null,8,[`modelValue`,`options`])])]),g(`div`,{class:re([`mt-4`,{"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4 grid-auto-rows-[minmax(min-content,max-content)] grid-auto-flow-dense sm:grid-cols-[repeat(auto-fill,minmax(240px,1fr))] sm:gap-5 md:grid-cols-[repeat(auto-fill,minmax(220px,1fr))] lg:grid-cols-[repeat(auto-fill,minmax(250px,1fr))]":b(V).size>0}])},[p(b(e),{modelValue:J.value,"onUpdate:modelValue":n[2]||=e=>J.value=e,accept:`*.json`},{default:u(({isDragging:e})=>[e?(h(),f(`div`,P,[n[9]||=g(`div`,{"i-solar:upload-minimalistic-bold":``,class:`mb-2 text-5xl text-primary-500 dark:text-primary-400`},null,-1),g(`p`,F,x(b(S)(`settings.pages.card.drop_here`)),1)])):(h(),f(`div`,j,[n[8]||=g(`div`,{"i-solar:upload-square-line-duotone":``,"mb-4":``,"text-5xl":``,text:`neutral-400 dark:neutral-500`},null,-1),g(`p`,M,x(b(S)(`settings.pages.card.upload`)),1),g(`p`,N,x(b(S)(`settings.pages.card.upload_desc`)),1)]))]),_:1},8,[`modelValue`]),p(C,{onClick:de}),b(V).size>0?(h(!0),f(c,{key:0},_(X.value,e=>(h(),o(D,{id:e.id,key:e.id,name:e.name,description:e.description,"is-active":e.id===b(H),"is-selected":e.id===U.value&&W.value,version:pe(e.id),"consciousness-model":$(e.id,`consciousness`),"voice-model":$(e.id,`voice`),onSelect:t=>ue(e.id),onActivate:t=>fe(e.id),onDelete:t=>le(e.id)},null,8,[`id`,`name`,`description`,`is-active`,`is-selected`,`version`,`consciousness-model`,`voice-model`,`onSelect`,`onActivate`,`onDelete`]))),128)):d(``,!0),b(V).size===0?(h(),f(`div`,I,[n[10]||=g(`div`,{"i-solar:card-search-broken":``,"mx-auto":``,"mb-3":``,"text-6xl":``,"text-neutral-400":``},null,-1),g(`p`,null,x(b(S)(`settings.pages.card.no_cards`)),1)])):d(``,!0),K.value&&X.value.length===0?(h(),o(b(a),{key:2,type:`warning`},{title:u(()=>[v(x(b(S)(`settings.pages.card.no_results`)),1)]),content:u(()=>[v(x(b(S)(`settings.pages.card.try_different_search`)),1)]),_:1})):d(``,!0)],2)]),p(T,{modelValue:Z.value,"onUpdate:modelValue":n[3]||=e=>Z.value=e,"card-name":Q.value?b(R).getCard(Q.value)?.name:``,onConfirm:ce,onCancel:n[4]||=e=>Q.value=null},null,8,[`modelValue`,`card-name`]),p(E,{modelValue:W.value,"onUpdate:modelValue":n[5]||=e=>W.value=e,"card-id":U.value},null,8,[`modelValue`,`card-id`]),p(w,{modelValue:G.value,"onUpdate:modelValue":n[6]||=e=>G.value=e},null,8,[`modelValue`]),s((h(),f(`div`,L,n[11]||=[g(`div`,{text:`60`,"i-solar:emoji-funny-square-bold-duotone":``},null,-1)])),[[i]])],64)}}});typeof S==`function`&&S(R);var z=R;export{z as default};
assets/airi-card-CjUsoZNU.js DELETED
@@ -1 +0,0 @@
1
- import{b as e}from"./InputFile-1gH4AIZt.js";import{G as t,M as n,aH as r,aY as i,am as a,b$ as o,bD as ee,bG as s,bJ as c,bK as l,bM as u,bN as d,bO as f,bP as p,bT as m,bV as h,bW as g,bX as _,bY as v,b_ as y,c1 as b,c6 as x,c9 as S,ca as C,cb as te}from"./index-iU6Tacov.js";import{b as w}from"./route-block-B2lA4iHQ.js";import{b as T}from"./CardCreate-COr8jG0C.js";import{b as E}from"./CardCreationDialog-FCpbRWXN.js";import{b as D}from"./DeleteCardDialog-CAunrpw4.js";import{b as O}from"./CardDetailDialog-BWmoz5Dn.js";import{b as ne}from"./CardListItem-mQrm8iFB.js";const re={"rounded-xl":``,"p-4":``,flex:`~ col gap-4`},ie={flex:`~ row`,"flex-wrap":``,"items-center":``,"justify-between":``,"gap-4":``},ae={class:`relative min-w-[200px] flex-1`,"inline-flex":`~`,"w-full":``,"items-center":``},oe=[`placeholder`],k={class:`relative flex flex-row justify-start gap-2 lg:flex-col`},A={class:`top-[-32px] whitespace-nowrap text-sm text-neutral-500 leading-10 lg:absolute dark:text-neutral-400`},j={key:0,flex:``,"flex-col":``,"items-center":``},M={"font-medium":``,text:`neutral-600 dark:neutral-300`},N={text:`neutral-500 dark:neutral-400`,"mt-2":``,"text-sm":``},P={key:1,flex:``,"flex-col":``,"items-center":``},F={"font-medium":``,text:`primary-600 dark:primary-300`},I={key:1,class:`col-span-full rounded-xl p-8 text-center`,border:`~ neutral-200/50 dark:neutral-700/30`,bg:`neutral-50/50 dark:neutral-900/50`},L={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-15rem)]`,"bottom-0":``,"right--5":``,"z--1":``,initial:{scale:.9,opacity:0,x:20},enter:{scale:1,opacity:1,x:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``};var R=u({__name:`index`,setup(u){let{t:w}=n(),R=t(),{addCard:z,removeCard:B}=R,{cards:V,activeCardId:H}=i(R),U=x(``),W=x(!1),G=x(!1),K=x(``),q=x(`nameAsc`),J=x([]);h(J,async e=>{let t=e[0];if(t)try{let e=await t.text(),n=JSON.parse(e);U.value=z(n),W.value=!0}catch(e){console.error(`Error processing card file:`,e)}});let Y=l(()=>Array.from(V.value.entries()).map(([e,t])=>({id:e,name:t.name,description:t.description}))),se=l(()=>{if(!K.value)return Y.value;let e=K.value.toLowerCase();return Y.value.filter(t=>t.name.toLowerCase().includes(e)||t.description&&t.description.toLowerCase().includes(e))}),X=l(()=>{let e=[...se.value];return q.value===`nameAsc`?e.sort((e,t)=>e.name.localeCompare(t.name)):q.value===`nameDesc`?e.sort((e,t)=>t.name.localeCompare(e.name)):q.value===`recent`?e.sort((e,t)=>t.id.localeCompare(e.id)):e}),Z=x(!1),Q=x(null);function ce(){Q.value&&(B(Q.value),Q.value=null,Z.value=!1)}function le(e){Q.value=e,Z.value=!0}function ue(e){U.value=e,W.value=!0}function de(){G.value=!0}function fe(e){H.value=e}function pe(e){let t=V.value.get(e);return t?.version||`1.0.0`}function $(e,t){let n=V.value.get(e);if(!n||!n.extensions?.airi?.modules)return`default`;let r=n.extensions.airi.modules;return t===`consciousness`?r.consciousness?.model&&r.consciousness.model.split(`-`).pop()||`default`:t===`voice`&&r.speech?.voice_id||`default`}return(t,n)=>{let i=g(`motion`);return _(),p(c,null,[v(`div`,re,[v(`div`,ie,[v(`div`,ae,[n[7]||=v(`div`,{class:`pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3`},[v(`div`,{"i-solar:magnifer-line-duotone":``,class:`text-neutral-500 dark:text-neutral-400`})],-1),s(v(`input`,{"onUpdate:modelValue":n[0]||=e=>K.value=e,type:`search`,class:`w-full rounded-xl p-2.5 pl-10 text-sm outline-none`,border:`focus:primary-100 dark:focus:primary-400/50 2 solid neutral-200 dark:neutral-800`,transition:`all duration-200 ease-in-out`,bg:`white dark:neutral-900`,placeholder:S(w)(`settings.pages.card.search`)},null,8,oe),[[ee,K.value]])]),v(`div`,k,[v(`div`,A,C(S(w)(`settings.pages.card.sort_by`))+`: `,1),m(S(r),{modelValue:q.value,"onUpdate:modelValue":n[1]||=e=>q.value=e,options:[{value:`nameAsc`,label:S(w)(`settings.pages.card.name_asc`)},{value:`nameDesc`,label:S(w)(`settings.pages.card.name_desc`)},{value:`recent`,label:S(w)(`settings.pages.card.recent`)}],placeholder:`Select sort option`,class:`min-w-[150px]`},null,8,[`modelValue`,`options`])])]),v(`div`,{class:te([`mt-4`,{"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4 grid-auto-rows-[minmax(min-content,max-content)] grid-auto-flow-dense sm:grid-cols-[repeat(auto-fill,minmax(240px,1fr))] sm:gap-5 md:grid-cols-[repeat(auto-fill,minmax(220px,1fr))] lg:grid-cols-[repeat(auto-fill,minmax(250px,1fr))]":S(V).size>0}])},[m(S(e),{modelValue:J.value,"onUpdate:modelValue":n[2]||=e=>J.value=e,accept:`*.json`},{default:d(({isDragging:e})=>[e?(_(),p(`div`,P,[n[9]||=v(`div`,{"i-solar:upload-minimalistic-bold":``,class:`mb-2 text-5xl text-primary-500 dark:text-primary-400`},null,-1),v(`p`,F,C(S(w)(`settings.pages.card.drop_here`)),1)])):(_(),p(`div`,j,[n[8]||=v(`div`,{"i-solar:upload-square-line-duotone":``,"mb-4":``,"text-5xl":``,text:`neutral-400 dark:neutral-500`},null,-1),v(`p`,M,C(S(w)(`settings.pages.card.upload`)),1),v(`p`,N,C(S(w)(`settings.pages.card.upload_desc`)),1)]))]),_:1},8,[`modelValue`]),m(T,{onClick:de}),S(V).size>0?(_(!0),p(c,{key:0},y(X.value,e=>(_(),b(ne,{id:e.id,key:e.id,name:e.name,description:e.description,"is-active":e.id===S(H),"is-selected":e.id===U.value&&W.value,version:pe(e.id),"consciousness-model":$(e.id,`consciousness`),"voice-model":$(e.id,`voice`),onSelect:t=>ue(e.id),onActivate:t=>fe(e.id),onDelete:t=>le(e.id)},null,8,[`id`,`name`,`description`,`is-active`,`is-selected`,`version`,`consciousness-model`,`voice-model`,`onSelect`,`onActivate`,`onDelete`]))),128)):f(``,!0),S(V).size===0?(_(),p(`div`,I,[n[10]||=v(`div`,{"i-solar:card-search-broken":``,"mx-auto":``,"mb-3":``,"text-6xl":``,"text-neutral-400":``},null,-1),v(`p`,null,C(S(w)(`settings.pages.card.no_cards`)),1)])):f(``,!0),K.value&&X.value.length===0?(_(),b(S(a),{key:2,type:`warning`},{title:d(()=>[o(C(S(w)(`settings.pages.card.no_results`)),1)]),content:d(()=>[o(C(S(w)(`settings.pages.card.try_different_search`)),1)]),_:1})):f(``,!0)],2)]),m(D,{modelValue:Z.value,"onUpdate:modelValue":n[3]||=e=>Z.value=e,"card-name":Q.value?S(R).getCard(Q.value)?.name:``,onConfirm:ce,onCancel:n[4]||=e=>Q.value=null},null,8,[`modelValue`,`card-name`]),m(O,{modelValue:W.value,"onUpdate:modelValue":n[5]||=e=>W.value=e,"card-id":U.value},null,8,[`modelValue`,`card-id`]),m(E,{modelValue:G.value,"onUpdate:modelValue":n[6]||=e=>G.value=e},null,8,[`modelValue`]),s((_(),p(`div`,L,n[11]||=[v(`div`,{text:`60`,"i-solar:emoji-funny-square-bold-duotone":``},null,-1)])),[[i]])],64)}}});typeof w==`function`&&w(R);var z=R;export{z as default};
 
 
assets/{alibaba-cloud-model-studio-DkZi6gdo.js → alibaba-cloud-model-studio-m3npU4cT.js} RENAMED
@@ -1 +1 @@
1
- import{H as e,K as t,M as n,aM as r,aY as i,bH as a,bK as o,bM as s,bN as c,bT as l,bV as u,bX as d,bY as f,c1 as p,c6 as m,c9 as h,r as g,s as _}from"./index-iU6Tacov.js";import{b as v}from"./route-block-B2lA4iHQ.js";const y={flex:`~ col gap-4`},b=`alibaba-cloud-model-studio`,x=`cosyvoice-v1`;var S=s({__name:`alibaba-cloud-model-studio`,setup(s){let v={speed:1},S=m(0),C=m(1),w=m(0),T=e(),E=t(),{providers:D}=i(E),{t:O}=n(),k=o(()=>!!D.value[b]?.apiKey),A=o(()=>T.availableVoices[b]||[]);async function j(e,t,n){let r=await E.getProviderInstance(b);if(!r)throw Error(`Failed to initialize speech provider`);let i=E.getProviderConfig(b),a=i.model||x;return await T.speech(r,a,e,t,{...i,...v})}return a(async()=>{let e=E.getProviderConfig(b),t=E.getProviderMetadata(b);await t.validators.validateProviderConfig(e)?await T.loadVoicesForProvider(b):console.error(`Failed to validate provider config`,e)}),u(S,async()=>{let e=E.getProviderConfig(b);e.pitch=S.value}),u(C,async()=>{let e=E.getProviderConfig(b);e.speed=C.value}),u(w,async()=>{let e=E.getProviderConfig(b);e.volume=w.value}),u(D,async()=>{let e=E.getProviderConfig(b),t=E.getProviderMetadata(b);await t.validators.validateProviderConfig(e)?await T.loadVoicesForProvider(b):console.error(`Failed to validate provider config`,e)},{immediate:!0}),(e,t)=>(d(),p(h(g),{"provider-id":b,"default-model":x,"additional-settings":v},{"voice-settings":c(()=>[f(`div`,y,[l(h(r),{modelValue:S.value,"onUpdate:modelValue":t[0]||=e=>S.value=e,label:h(O)(`settings.pages.providers.provider.common.fields.field.pitch.label`),description:h(O)(`settings.pages.providers.provider.common.fields.field.pitch.description`),min:-100,max:100,step:1,"format-value":e=>`${e}%`},null,8,[`modelValue`,`label`,`description`,`format-value`]),l(h(r),{modelValue:C.value,"onUpdate:modelValue":t[1]||=e=>C.value=e,label:h(O)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:h(O)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:2,step:.01},null,8,[`modelValue`,`label`,`description`]),l(h(r),{modelValue:w.value,"onUpdate:modelValue":t[2]||=e=>w.value=e,label:h(O)(`settings.pages.providers.provider.common.fields.field.volume.label`),description:h(O)(`settings.pages.providers.provider.common.fields.field.volume.description`),min:-100,max:100,step:1,"format-value":e=>`${e}%`},null,8,[`modelValue`,`label`,`description`,`format-value`])])]),playground:c(()=>[l(h(_),{"available-voices":A.value,"generate-speech":j,"api-key-configured":k.value,"default-text":`Hello! This is a test of the ElevenLabs voice synthesis.`},null,8,[`available-voices`,`api-key-configured`])]),_:1}))}});typeof v==`function`&&v(S);var C=S;export{C as default};
 
1
+ import{H as e,K as t,M as n,aM as r,aY as i,bH as a,bL as o,bO as s,bQ as c,bR as l,bX as u,bZ as d,c0 as f,c1 as p,c6 as m,c9 as h,r as g,s as _}from"./index-BQADcPRe.js";import{b as v}from"./route-block-B2lA4iHQ.js";const y={flex:`~ col gap-4`},b=`alibaba-cloud-model-studio`,x=`cosyvoice-v1`;var S=c({__name:`alibaba-cloud-model-studio`,setup(c){let v={speed:1},S=m(0),C=m(1),w=m(0),T=e(),E=t(),{providers:D}=i(E),{t:O}=n(),k=s(()=>!!D.value[b]?.apiKey),A=s(()=>T.availableVoices[b]||[]);async function j(e,t,n){let r=await E.getProviderInstance(b);if(!r)throw Error(`Failed to initialize speech provider`);let i=E.getProviderConfig(b),a=i.model||x;return await T.speech(r,a,e,t,{...i,...v})}return o(async()=>{let e=E.getProviderConfig(b),t=E.getProviderMetadata(b);await t.validators.validateProviderConfig(e)?await T.loadVoicesForProvider(b):console.error(`Failed to validate provider config`,e)}),d(S,async()=>{let e=E.getProviderConfig(b);e.pitch=S.value}),d(C,async()=>{let e=E.getProviderConfig(b);e.speed=C.value}),d(w,async()=>{let e=E.getProviderConfig(b);e.volume=w.value}),d(D,async()=>{let e=E.getProviderConfig(b),t=E.getProviderMetadata(b);await t.validators.validateProviderConfig(e)?await T.loadVoicesForProvider(b):console.error(`Failed to validate provider config`,e)},{immediate:!0}),(e,t)=>(f(),a(h(g),{"provider-id":b,"default-model":x,"additional-settings":v},{"voice-settings":l(()=>[p(`div`,y,[u(h(r),{modelValue:S.value,"onUpdate:modelValue":t[0]||=e=>S.value=e,label:h(O)(`settings.pages.providers.provider.common.fields.field.pitch.label`),description:h(O)(`settings.pages.providers.provider.common.fields.field.pitch.description`),min:-100,max:100,step:1,"format-value":e=>`${e}%`},null,8,[`modelValue`,`label`,`description`,`format-value`]),u(h(r),{modelValue:C.value,"onUpdate:modelValue":t[1]||=e=>C.value=e,label:h(O)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:h(O)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:2,step:.01},null,8,[`modelValue`,`label`,`description`]),u(h(r),{modelValue:w.value,"onUpdate:modelValue":t[2]||=e=>w.value=e,label:h(O)(`settings.pages.providers.provider.common.fields.field.volume.label`),description:h(O)(`settings.pages.providers.provider.common.fields.field.volume.description`),min:-100,max:100,step:1,"format-value":e=>`${e}%`},null,8,[`modelValue`,`label`,`description`,`format-value`])])]),playground:l(()=>[u(h(_),{"available-voices":A.value,"generate-speech":j,"api-key-configured":k.value,"default-text":`Hello! This is a test of the ElevenLabs voice synthesis.`},null,8,[`available-voices`,`api-key-configured`])]),_:1}))}});typeof v==`function`&&v(S);var C=S;export{C as default};
assets/{anthropic-CS9poF5x.js → anthropic-BEeCW66C.js} RENAMED
@@ -1 +1 @@
1
- import{K as e,M as t,aT as n,aY as r,b$ as i,bH as a,bK as o,bM as s,bN as c,bT as l,bV as u,bX as d,bY as f,c1 as p,c9 as m,ca as h,t as g,u as _,v,w as y,x as b,y as x}from"./index-iU6Tacov.js";import{b as S}from"./route-block-B2lA4iHQ.js";const C={bg:`orange-50 dark:orange-900/20`,"rounded-xl":``,"p-4":``,flex:`~ col gap-3`},w={"text-xl":``,"font-semibold":``,text:`orange-700 dark:orange-500`},T={underline:``,href:`https://docs.anthropic.com/en/api/openai-sdk`},E=`anthropic`;var D=s({__name:`anthropic`,setup(s){let{t:S}=t(),D=n(),O=e(),{providers:k}=r(O),A=o(()=>O.getProviderMetadata(E)),j=o({get:()=>k.value[E]?.apiKey||``,set:e=>{k.value[E]||(k.value[E]={}),k.value[E].apiKey=e}}),M=o({get:()=>k.value[E]?.baseUrl||`https://api.anthropic.com/v1/`,set:e=>{k.value[E]||(k.value[E]={}),k.value[E].baseUrl=e}});a(()=>{k.value[E]||(k.value[E]={baseUrl:`https://api.anthropic.com/v1/`}),j.value=k.value[E]?.apiKey||``,M.value=k.value[E]?.baseUrl||`https://api.anthropic.com/v1/`}),u([j,M],()=>{k.value[E]={...k.value[E],apiKey:j.value,baseUrl:M.value||`https://api.anthropic.com/v1/`}});function N(){k.value[E]={baseUrl:`https://api.anthropic.com/v1/`}}return(e,t)=>(d(),p(m(g),{"provider-name":A.value?.localizedName||`Anthropic | Claude`,"provider-icon":A.value?.icon,"on-back":()=>m(D).back()},{default:c(()=>[f(`div`,C,[f(`h2`,w,h(m(S)(`settings.pages.providers.provider.anthropic.helpinfo.title`)),1),f(`p`,null,[i(h(m(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part1`))+` `,1),f(`a`,T,h(m(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part2`)),1),i(`, `+h(m(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part3`))+` `,1),t[2]||=f(`a`,{underline:``,href:`https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS`},`CORS`,-1),i(` `+h(m(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part4`)),1)]),f(`p`,null,[i(h(m(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part5`))+` `,1),t[3]||=f(`a`,{underline:``,href:`https://workers.cloudflare.com/`},`Cloudflare Workers`,-1),i(` `+h(m(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part6`)),1)])]),l(m(_),null,{default:c(()=>[l(m(v),{title:m(S)(`settings.pages.providers.common.section.basic.title`),description:m(S)(`settings.pages.providers.common.section.basic.description`),"on-reset":N},{default:c(()=>[l(m(b),{modelValue:j.value,"onUpdate:modelValue":t[0]||=e=>j.value=e,"provider-name":A.value?.localizedName||`Anthropic`,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),l(m(x),{title:m(S)(`settings.pages.providers.common.section.advanced.title`)},{default:c(()=>[l(m(y),{modelValue:M.value,"onUpdate:modelValue":t[1]||=e=>M.value=e,placeholder:`https://api.anthropic.com/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof S==`function`&&S(D);var O=D;export{O as default};
 
1
+ import{K as e,M as t,aT as n,aY as r,bH as i,bL as a,bO as o,bQ as s,bR as c,bX as l,bZ as u,c0 as d,c1 as f,c3 as p,c9 as m,cb as h,t as g,u as _,v,w as y,x as b,y as x}from"./index-BQADcPRe.js";import{b as S}from"./route-block-B2lA4iHQ.js";const C={bg:`orange-50 dark:orange-900/20`,"rounded-xl":``,"p-4":``,flex:`~ col gap-3`},w={"text-xl":``,"font-semibold":``,text:`orange-700 dark:orange-500`},T={underline:``,href:`https://docs.anthropic.com/en/api/openai-sdk`},E=`anthropic`;var D=s({__name:`anthropic`,setup(s){let{t:S}=t(),D=n(),O=e(),{providers:k}=r(O),A=o(()=>O.getProviderMetadata(E)),j=o({get:()=>k.value[E]?.apiKey||``,set:e=>{k.value[E]||(k.value[E]={}),k.value[E].apiKey=e}}),M=o({get:()=>k.value[E]?.baseUrl||`https://api.anthropic.com/v1/`,set:e=>{k.value[E]||(k.value[E]={}),k.value[E].baseUrl=e}});a(()=>{k.value[E]||(k.value[E]={baseUrl:`https://api.anthropic.com/v1/`}),j.value=k.value[E]?.apiKey||``,M.value=k.value[E]?.baseUrl||`https://api.anthropic.com/v1/`}),u([j,M],()=>{k.value[E]={...k.value[E],apiKey:j.value,baseUrl:M.value||`https://api.anthropic.com/v1/`}});function N(){k.value[E]={baseUrl:`https://api.anthropic.com/v1/`}}return(e,t)=>(d(),i(m(g),{"provider-name":A.value?.localizedName||`Anthropic | Claude`,"provider-icon":A.value?.icon,"on-back":()=>m(D).back()},{default:c(()=>[f(`div`,C,[f(`h2`,w,h(m(S)(`settings.pages.providers.provider.anthropic.helpinfo.title`)),1),f(`p`,null,[p(h(m(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part1`))+` `,1),f(`a`,T,h(m(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part2`)),1),p(`, `+h(m(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part3`))+` `,1),t[2]||=f(`a`,{underline:``,href:`https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS`},`CORS`,-1),p(` `+h(m(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part4`)),1)]),f(`p`,null,[p(h(m(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part5`))+` `,1),t[3]||=f(`a`,{underline:``,href:`https://workers.cloudflare.com/`},`Cloudflare Workers`,-1),p(` `+h(m(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part6`)),1)])]),l(m(_),null,{default:c(()=>[l(m(v),{title:m(S)(`settings.pages.providers.common.section.basic.title`),description:m(S)(`settings.pages.providers.common.section.basic.description`),"on-reset":N},{default:c(()=>[l(m(b),{modelValue:j.value,"onUpdate:modelValue":t[0]||=e=>j.value=e,"provider-name":A.value?.localizedName||`Anthropic`,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),l(m(x),{title:m(S)(`settings.pages.providers.common.section.advanced.title`)},{default:c(()=>[l(m(y),{modelValue:M.value,"onUpdate:modelValue":t[1]||=e=>M.value=e,placeholder:`https://api.anthropic.com/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof S==`function`&&S(D);var O=D;export{O as default};
assets/{appearance-CW9hZhXZ.js → appearance-Bp2VYN36.js} RENAMED
@@ -1 +1 @@
1
- import{M as e,ao as t,bG as n,bJ as r,bK as i,bM as a,bP as o,bW as s,bX as c,bY as l,b_ as u,c1 as d,c9 as f,cc as p}from"./index-iU6Tacov.js";import{b as m}from"./route-block-B2lA4iHQ.js";const h={flex:`~ col gap-4`,"font-normal":``},g={flex:`~ col gap-4`},_={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-12rem)]`,"bottom-0":``,"right--10":``,"z--1":``,initial:{scale:.9,opacity:0,rotate:180},enter:{scale:1,opacity:1,rotate:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``},v={text:`60`,"i-solar:settings-bold-duotone":``};var y=a({__name:`index`,setup(a){let{t:m}=e(),y=i(()=>[{title:m(`settings.pages.themes.general.title`),description:m(`settings.pages.themes.general.description`),icon:`i-solar:emoji-funny-square-bold-duotone`,to:`/settings/appearance/general`},{title:m(`settings.pages.themes.color-scheme.title`),description:m(`settings.pages.themes.color-scheme.description`),icon:`i-solar:pallete-2-bold-duotone`,to:`/settings/appearance/color-scheme`},{title:m(`settings.pages.themes.developer.title`),description:m(`settings.pages.themes.developer.description`),icon:`i-solar:code-bold-duotone`,to:`/settings/appearance/developer`}]);return(e,i)=>{let a=s(`motion`);return c(),o(`div`,h,[i[0]||=l(`div`,null,null,-1),l(`div`,g,[(c(!0),o(r,null,u(y.value,(e,r)=>n((c(),d(f(t),{key:e.to,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250,style:p({transitionDelay:`${r*50}ms`}),title:e.title,description:e.description,icon:e.icon,to:e.to},null,8,[`style`,`title`,`description`,`icon`,`to`])),[[a]])),128))]),n((c(),o(`div`,_,[n(l(`div`,v,null,512),[[a]])])),[[a]])])}}});typeof m==`function`&&m(y);var b=y;export{b as default};
 
1
+ import{M as e,ao as t,b$ as n,bH as r,bK as i,bN as a,bO as o,bQ as s,bT as c,c0 as l,c1 as u,c2 as d,c9 as f,ca as p}from"./index-BQADcPRe.js";import{b as m}from"./route-block-B2lA4iHQ.js";const h={flex:`~ col gap-4`,"font-normal":``},g={flex:`~ col gap-4`},_={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-12rem)]`,"bottom-0":``,"right--10":``,"z--1":``,initial:{scale:.9,opacity:0,rotate:180},enter:{scale:1,opacity:1,rotate:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``},v={text:`60`,"i-solar:settings-bold-duotone":``};var y=s({__name:`index`,setup(s){let{t:m}=e(),y=o(()=>[{title:m(`settings.pages.themes.general.title`),description:m(`settings.pages.themes.general.description`),icon:`i-solar:emoji-funny-square-bold-duotone`,to:`/settings/appearance/general`},{title:m(`settings.pages.themes.color-scheme.title`),description:m(`settings.pages.themes.color-scheme.description`),icon:`i-solar:pallete-2-bold-duotone`,to:`/settings/appearance/color-scheme`},{title:m(`settings.pages.themes.developer.title`),description:m(`settings.pages.themes.developer.description`),icon:`i-solar:code-bold-duotone`,to:`/settings/appearance/developer`}]);return(e,o)=>{let s=n(`motion`);return l(),c(`div`,h,[o[0]||=u(`div`,null,null,-1),u(`div`,g,[(l(!0),c(a,null,d(y.value,(e,n)=>i((l(),r(f(t),{key:e.to,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250,style:p({transitionDelay:`${n*50}ms`}),title:e.title,description:e.description,icon:e.icon,to:e.to},null,8,[`style`,`title`,`description`,`icon`,`to`])),[[s]])),128))]),i((l(),c(`div`,_,[i(u(`div`,v,null,512),[[s]])])),[[s]])])}}});typeof m==`function`&&m(y);var b=y;export{b as default};
assets/{audio-CJXFXJRA.js → audio-UElj8nI0.js} RENAMED
@@ -1 +1 @@
1
- import{bM as e,bP as t,bX as n,bY as r,c6 as i}from"./index-iU6Tacov.js";var a=e({__name:`audio`,setup(e){let a=i(),o=i();function s(e){if(!e)return;let t=o.value?.files?.[0];if(!t)return;let n=document.createElement(`audio`);a.value?.appendChild(n),n.src=URL.createObjectURL(t),n.controls=!0,n.load(),n.play()}return(e,i)=>(n(),t(`div`,null,[r(`div`,null,[r(`div`,{ref_key:`containerRef`,ref:a},null,512),r(`input`,{ref_key:`fileInputRef`,ref:o,type:`file`,onChange:s},null,544)])]))}}),o=a;export{o as default};
 
1
+ import{bQ as e,bT as t,c0 as n,c1 as r,c6 as i}from"./index-BQADcPRe.js";var a=e({__name:`audio`,setup(e){let a=i(),o=i();function s(e){if(!e)return;let t=o.value?.files?.[0];if(!t)return;let n=document.createElement(`audio`);a.value?.appendChild(n),n.src=URL.createObjectURL(t),n.controls=!0,n.load(),n.play()}return(e,i)=>(n(),t(`div`,null,[r(`div`,null,[r(`div`,{ref_key:`containerRef`,ref:a},null,512),r(`input`,{ref_key:`fileInputRef`,ref:o,type:`file`,onChange:s},null,544)])]))}}),o=a;export{o as default};
assets/audio-record-BCe1mqmg.js DELETED
@@ -1 +0,0 @@
1
- import{aH as e,ai as t,b$ as n,b1 as r,b4 as i,bH as a,bJ as o,bK as s,bM as c,bN as l,bP as u,bQ as d,bR as f,bS as p,bT as m,bV as h,bX as g,bY as _,b_ as v,be as y,c1 as b,c3 as x,c4 as S,c5 as C,c6 as w,c9 as T,ca as E}from"./index-iU6Tacov.js";var D=c({__name:`Option`,props:{value:{},label:{},active:{type:Boolean}},setup(e){let t=e,r=d(`selectOption`),i=d(`hide`);return(e,a)=>(g(),u(`div`,f({...e.$attrs,class:null,style:null},{class:[`cursor-pointer rounded px-2 py-1 text-neutral-700 hover:bg-neutral-100 dark:text-neutral-200 dark:hover:bg-neutral-800`,{"bg-neutral-100 dark:bg-neutral-800":t.active}],"line-clamp-1":``,"overflow-hidden":``,"text-ellipsis":``,"whitespace-pre-wrap":``,text:`xs sm:sm`,"transition-colors":``,"duration-150":``,"ease-in-out":``,"will-change-background-color":``,"will-change-color":``,onClick:a[0]||=()=>{T(r)(t.value),T(i)()}}),[x(e.$slots,`default`,{},()=>[n(E(t.label),1)])],16))}}),O=D;function k(){let e=r({constraints:{audio:!0},requestPermissions:!1}),t=w(e.audioInputs.value[0]?.deviceId||``),n=w(),a=s(()=>e.audioInputs.value),o=w({audio:!0}),c=i({constraints:o,autoSwitch:!0,enabled:!1});async function l(){e.permissionGranted.value||e.isSupported.value&&await e.ensurePermissions()}h(t,()=>{t.value&&(o.value={audio:{deviceId:{exact:t.value}}})},{immediate:!0}),h(e.audioInputs,()=>{n.value=a.value.find(e=>e.deviceId===t.value)},{immediate:!0}),h([e.permissionGranted,a,t],async()=>{await l(),e.permissionGranted.value&&a.value.length!==0&&(n.value||=a.value[0])},{immediate:!0});async function u(){await l(),e.permissionGranted.value&&n.value&&(c.enabled.value&&c.restart(),c.start())}function d(){c.stop()}return{selectedAudioInputId:t,selectedAudioInput:n,audioInputs:a,start:u,stop:d,request:l,media:c}}function A(e,t=()=>Promise.resolve()){let n=w(),r=C(e);async function i(){if(await t(),await y(r).toBeTruthy(),!r.value){console.error(`No media media available`);return}n.value=new MediaRecorder(r.value),n.value.start()}function a(){n.value&&(n.value.stop(),n.value.ondataavailable=e=>{let t=e.data,n=URL.createObjectURL(t),r=new Audio(n);r.play()})}return{startRecord:i,stopRecord:a}}const j={class:`mt-4 w-full flex justify-center gap-2`};var M=c({__name:`audio-record`,setup(r){let{audioInputs:i,selectedAudioInputId:s,start:c,stop:d,media:f,request:h}=k(),{startRecord:y,stopRecord:x}=A(f.stream,c);return a(()=>h()),p(()=>d()),(r,a)=>(g(),u(`div`,null,[m(T(e),{modelValue:T(s),"onUpdate:modelValue":a[0]||=e=>S(s)?s.value=e:null,onChange:a[1]||=()=>T(c)()},{default:l(({value:e})=>[_(`div`,null,E(e?T(i).find(t=>t.deviceId===e)?.label:`Select Audio Input`),1)]),options:l(({hide:e})=>[(g(!0),u(o,null,v(T(i),t=>(g(),b(T(O),{key:t.deviceId,value:t.deviceId,active:t.deviceId===T(s),onClick:t=>e()},{default:l(()=>[n(E(t.label),1)]),_:2},1032,[`value`,`active`,`onClick`]))),128))]),_:1},8,[`modelValue`]),_(`div`,j,[m(T(t),{onClick:T(y)},{default:l(()=>a[2]||=[n(` Start Recording `)]),_:1,__:[2]},8,[`onClick`]),m(T(t),{onClick:T(x)},{default:l(()=>a[3]||=[n(` Stop Recording `)]),_:1,__:[3]},8,[`onClick`])])]))}}),N=M;export{N as default};
 
 
assets/audio-record-DhW-kAyw.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{a$ as e,aH as t,ai as n,b2 as r,bH as i,bJ as a,bL as o,bN as s,bO as c,bQ as l,bR as u,bT as d,bU as f,bV as p,bW as m,bX as h,bZ as g,bd as _,c0 as v,c1 as y,c2 as b,c3 as x,c4 as S,c5 as C,c6 as w,c9 as T,cb as E}from"./index-BQADcPRe.js";var D=l({__name:`Option`,props:{value:{},label:{},active:{type:Boolean}},setup(e){let t=e,n=f(`selectOption`),r=f(`hide`);return(e,i)=>(v(),d(`div`,p({...e.$attrs,class:null,style:null},{class:[`cursor-pointer rounded px-2 py-1 text-neutral-700 hover:bg-neutral-100 dark:text-neutral-200 dark:hover:bg-neutral-800`,{"bg-neutral-100 dark:bg-neutral-800":t.active}],"line-clamp-1":``,"overflow-hidden":``,"text-ellipsis":``,"whitespace-pre-wrap":``,text:`xs sm:sm`,"transition-colors":``,"duration-150":``,"ease-in-out":``,"will-change-background-color":``,"will-change-color":``,onClick:i[0]||=()=>{T(n)(t.value),T(r)()}}),[a(e.$slots,`default`,{},()=>[x(E(t.label),1)])],16))}}),O=D;function k(){let t=e({constraints:{audio:!0},requestPermissions:!1}),n=w(t.audioInputs.value[0]?.deviceId||``),i=w(),a=c(()=>t.audioInputs.value),o=w({audio:!0}),s=r({constraints:o,autoSwitch:!0,enabled:!1});async function l(){t.permissionGranted.value||t.isSupported.value&&await t.ensurePermissions()}g(n,()=>{n.value&&(o.value={audio:{deviceId:{exact:n.value}}})},{immediate:!0}),g(t.audioInputs,()=>{i.value=a.value.find(e=>e.deviceId===n.value)},{immediate:!0}),g([t.permissionGranted,a,n],async()=>{await l(),t.permissionGranted.value&&a.value.length!==0&&(i.value||=a.value[0])},{immediate:!0});async function u(){await l(),t.permissionGranted.value&&i.value&&(s.enabled.value&&s.restart(),s.start())}function d(){s.stop()}return{selectedAudioInputId:n,selectedAudioInput:i,audioInputs:a,start:u,stop:d,request:l,media:s}}function A(e,t=()=>Promise.resolve()){let n=w(),r=C(e);async function i(){if(await t(),await _(r).toBeTruthy(),!r.value){console.error(`No media media available`);return}n.value=new MediaRecorder(r.value),n.value.start()}function a(){n.value&&(n.value.stop(),n.value.ondataavailable=e=>{let t=e.data,n=URL.createObjectURL(t),r=new Audio(n);r.play()})}return{startRecord:i,stopRecord:a}}const j={class:`mt-4 w-full flex justify-center gap-2`};var M=l({__name:`audio-record`,setup(e){let{audioInputs:r,selectedAudioInputId:a,start:c,stop:l,media:f,request:p}=k(),{startRecord:g,stopRecord:_}=A(f.stream,c);return o(()=>p()),m(()=>l()),(e,o)=>(v(),d(`div`,null,[h(T(t),{modelValue:T(a),"onUpdate:modelValue":o[0]||=e=>S(a)?a.value=e:null,onChange:o[1]||=()=>T(c)()},{default:u(({value:e})=>[y(`div`,null,E(e?T(r).find(t=>t.deviceId===e)?.label:`Select Audio Input`),1)]),options:u(({hide:e})=>[(v(!0),d(s,null,b(T(r),t=>(v(),i(T(O),{key:t.deviceId,value:t.deviceId,active:t.deviceId===T(a),onClick:t=>e()},{default:u(()=>[x(E(t.label),1)]),_:2},1032,[`value`,`active`,`onClick`]))),128))]),_:1},8,[`modelValue`]),y(`div`,j,[h(T(n),{onClick:T(g)},{default:u(()=>o[2]||=[x(` Start Recording `)]),_:1,__:[2]},8,[`onClick`]),h(T(n),{onClick:T(_)},{default:u(()=>o[3]||=[x(` Stop Recording `)]),_:1,__:[3]},8,[`onClick`])])]))}}),N=M;export{N as default};
assets/{azure-ai-foundry-BJEDA1ZB.js → azure-ai-foundry-GNXBR7q9.js} RENAMED
@@ -1 +1 @@
1
- import{K as e,M as t,aT as n,aY as r,bH as i,bK as a,bM as o,bN as s,bT as c,bV as l,bX as u,c1 as d,c9 as f,t as p,u as m,v as h,x as g,y as _,z as v}from"./index-iU6Tacov.js";import{b as y}from"./route-block-B2lA4iHQ.js";const b=`azure-ai-foundry`;var x=o({__name:`azure-ai-foundry`,setup(o){let{t:y}=t(),x=n(),S=e(),{providers:C}=r(S),w=a(()=>S.getProviderMetadata(b)),T=a({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=a({get:()=>C.value[b]?.resourceName||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].resourceName=e}}),D=a({get:()=>C.value[b]?.apiVersion||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiVersion=e}}),O=a({get:()=>C.value[b]?.modelId||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].modelId=e}});i(()=>{C.value[b]||(C.value[b]={}),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.resourceName||``,D.value=C.value[b]?.apiVersion||``,O.value=C.value[b]?.modelId||``}),l([T,E,D,O],()=>{C.value[b]={...C.value[b],apiKey:T.value,resourceName:E.value,apiVersion:D.value,modelId:O.value}});function k(){C.value[b]={}}return(e,t)=>(u(),d(f(p),{"provider-name":w.value?.localizedName||`Azure OpenAI`,"provider-icon":w.value?.icon,"on-back":()=>f(x).back()},{default:s(()=>[c(f(m),null,{default:s(()=>[c(f(h),{title:f(y)(`settings.pages.providers.common.section.basic.title`),description:f(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":k},{default:s(()=>[c(f(g),{modelValue:T.value,"onUpdate:modelValue":t[0]||=e=>T.value=e,"provider-name":w.value?.localizedName||`Azure OpenAI`,placeholder:`...`,required:``},null,8,[`modelValue`,`provider-name`]),c(f(v),{modelValue:E.value,"onUpdate:modelValue":t[1]||=e=>E.value=e,label:`Resouce name`,placeholder:`...`,description:`Prefix used in https://<prefix>.services.ai.azure.com`,required:``},null,8,[`modelValue`]),c(f(v),{modelValue:O.value,"onUpdate:modelValue":t[2]||=e=>O.value=e,label:`Model id`,placeholder:`...`,description:`Model ID on Azure AI Foundry`,required:``},null,8,[`modelValue`])]),_:1},8,[`title`,`description`]),c(f(_),{title:f(y)(`settings.pages.providers.common.section.advanced.title`)},{default:s(()=>[c(f(v),{modelValue:D.value,"onUpdate:modelValue":t[3]||=e=>D.value=e,label:`API version`,placeholder:`e.g. 2025-04-01-preview`,description:`API version for snapshot of the models`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default};
 
1
+ import{K as e,M as t,aT as n,aY as r,bH as i,bL as a,bO as o,bQ as s,bR as c,bX as l,bZ as u,c0 as d,c9 as f,t as p,u as m,v as h,x as g,y as _,z as v}from"./index-BQADcPRe.js";import{b as y}from"./route-block-B2lA4iHQ.js";const b=`azure-ai-foundry`;var x=s({__name:`azure-ai-foundry`,setup(s){let{t:y}=t(),x=n(),S=e(),{providers:C}=r(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>C.value[b]?.resourceName||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].resourceName=e}}),D=o({get:()=>C.value[b]?.apiVersion||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiVersion=e}}),O=o({get:()=>C.value[b]?.modelId||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].modelId=e}});a(()=>{C.value[b]||(C.value[b]={}),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.resourceName||``,D.value=C.value[b]?.apiVersion||``,O.value=C.value[b]?.modelId||``}),u([T,E,D,O],()=>{C.value[b]={...C.value[b],apiKey:T.value,resourceName:E.value,apiVersion:D.value,modelId:O.value}});function k(){C.value[b]={}}return(e,t)=>(d(),i(f(p),{"provider-name":w.value?.localizedName||`Azure OpenAI`,"provider-icon":w.value?.icon,"on-back":()=>f(x).back()},{default:c(()=>[l(f(m),null,{default:c(()=>[l(f(h),{title:f(y)(`settings.pages.providers.common.section.basic.title`),description:f(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":k},{default:c(()=>[l(f(g),{modelValue:T.value,"onUpdate:modelValue":t[0]||=e=>T.value=e,"provider-name":w.value?.localizedName||`Azure OpenAI`,placeholder:`...`,required:``},null,8,[`modelValue`,`provider-name`]),l(f(v),{modelValue:E.value,"onUpdate:modelValue":t[1]||=e=>E.value=e,label:`Resouce name`,placeholder:`...`,description:`Prefix used in https://<prefix>.services.ai.azure.com`,required:``},null,8,[`modelValue`]),l(f(v),{modelValue:O.value,"onUpdate:modelValue":t[2]||=e=>O.value=e,label:`Model id`,placeholder:`...`,description:`Model ID on Azure AI Foundry`,required:``},null,8,[`modelValue`])]),_:1},8,[`title`,`description`]),l(f(_),{title:f(y)(`settings.pages.providers.common.section.advanced.title`)},{default:c(()=>[l(f(v),{modelValue:D.value,"onUpdate:modelValue":t[3]||=e=>D.value=e,label:`API version`,placeholder:`e.g. 2025-04-01-preview`,description:`API version for snapshot of the models`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default};
assets/background-gradient-blending-Cb3JEn1j.js DELETED
The diff for this file is too large to render. See raw diff
 
assets/background-gradient-blending-j-35O4o_.js ADDED
The diff for this file is too large to render. See raw diff
 
assets/{background-remove-BxJfspg0.js → background-remove-BejQldKY.js} RENAMED
@@ -1 +1 @@
1
- import{b as e}from"./InputFile-1gH4AIZt.js";import{L as t,bH as n,bJ as r,bK as i,bM as a,bO as o,bP as s,bT as c,bX as l,bY as u,b_ as d,c6 as f,c9 as p,ca as m,cc as h}from"./index-iU6Tacov.js";import{b as g,d as _,e as v,f as y}from"./transformers.web-CfB6mm3g.js";const b={flex:``,"flex-col":``,"items-center":``,"gap-4":``},x=[`disabled`],S={"h-full":``,"w-full":``,flex:``,"gap-2":``},C={w:`[50%]`,border:`2 solid neutral-200 dark:neutral-800`,bg:`neutral-50 dark:neutral-900`,"min-h":`120`,h:`auto`,"overflow-hidden":``,"rounded-lg":``},w=[`src`],T={w:`[50%]`,border:`2 solid neutral-200 dark:neutral-800`,bg:`neutral-50 dark:neutral-900`,"min-h":`120`,h:`auto`,relative:``,"overflow-hidden":``,"rounded-lg":``},E={key:0,bg:`black/50`,absolute:``,"inset-0":``,"z-10":``,flex:``,"flex-col":``,"items-center":``,"justify-center":``},D={"mb-4":``,"text-white":``,"font-medium":``},O={bg:`gray-200/30`,w:`70%`,"h-2":``,"overflow-hidden":``,"rounded-full":``},k=[`src`],A={bg:`black/0 group-hover:black/20`,absolute:``,"inset-0":``,flex:``,"items-center":``,"justify-center":``,"transition-all":``,"duration-200":``},j=[`onClick`],M={key:1,absolute:``,"bottom-2":``,"right-2":``};var N=a({__name:`background-remove`,setup(a){let N=f(),P=f(),F=f(),I=f(),L=f(!1),R=f(0),z=f(),B=f(),V=f([]),H=i(()=>V.value.map(e=>URL.createObjectURL(e)));n(async()=>{try{if(!(await t()).supported)throw Error(`WebGPU is not supported in this browser.`);let e=`Xenova/modnet`;_.backends.onnx.wasm.proxy=!1,N.value??=await g.from_pretrained(e,{device:`webgpu`}),P.value??=await y.from_pretrained(e,{})}catch(e){F.value=e}I.value=!1});async function U(){if(!N.value||!P.value)return;L.value=!0,R.value=0,z.value=[];let e=H.value.length;for(let t=0;t<e;++t){let n=await v.fromURL(H.value[t]),{pixel_values:r}=await P.value(n),{output:i}=await N.value({input:r}),a=(await v.fromTensor(i[0].mul(255).to(`uint8`)).resize(n.width,n.height)).data,o=document.createElement(`canvas`);o.width=n.width,o.height=n.height;let s=o.getContext(`2d`);if(!s)return;s.drawImage(n.toCanvas(),0,0);let c=s.getImageData(0,0,n.width,n.height);for(let e=0;e<a.length;++e)c.data[4*e+3]=a[e];s.putImageData(c,0,0),z.value.push(o.toDataURL(`image/png`)),R.value=Math.round((t+1)/e*100)}L.value=!1,B.value=!0}function W(e){if(!z.value||e>=z.value.length||!V.value[e])return;let t=V.value[e].name,n=t.substring(0,t.lastIndexOf(`.`))||t,r=t.substring(t.lastIndexOf(`.`))||`.png`,i=`${n}-background-removed${r}`,a=document.createElement(`a`);a.href=z.value[e],a.download=i,document.body.appendChild(a),a.click(),document.body.removeChild(a)}function G(){!z.value||z.value.length===0||z.value.forEach((e,t)=>{setTimeout(()=>W(t),t*100)})}return(t,n)=>(l(),s(`div`,b,[u(`button`,{bg:`neutral-100 dark:neutral-800`,"w-full":``,"cursor-pointer":``,"rounded-lg":``,"px-3":``,"py-2":``,disabled:L.value,onClick:U},m(L.value?`Processing...`:`Process`),9,x),u(`div`,S,[u(`div`,C,[(l(!0),s(r,null,d(H.value,(e,t)=>(l(),s(`img`,{key:t,src:e,"h-full":``,"w-full":``,"object-cover":``},null,8,w))),128))]),u(`div`,T,[L.value?(l(),s(`div`,E,[u(`div`,D,m(R.value)+`% `,1),u(`div`,O,[u(`div`,{bg:`emerald-500`,"h-full":``,style:h({width:`${R.value}%`}),"transition-all":``,"duration-200":``},null,4)])])):o(``,!0),(l(!0),s(r,null,d(z.value,(e,t)=>(l(),s(`div`,{key:t,relative:``,class:`group`,"h-full":``,"w-full":``},[u(`img`,{src:e,"h-full":``,"w-full":``,"object-cover":``},null,8,k),u(`div`,A,[u(`button`,{bg:`emerald-500 hover:emerald-600`,"rounded-full":``,"p-2":``,"text-white":``,"opacity-0":``,"transition-all":``,"duration-200":``,"group-hover:opacity-100":``,onClick:e=>W(t)},n[1]||=[u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`h-5 w-5`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`},[u(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4`})],-1)],8,j)])]))),128)),z.value&&z.value.length>1?(l(),s(`div`,M,[u(`button`,{bg:`emerald-500 hover:emerald-600`,"rounded-full":``,"p-2":``,"text-white":``,onClick:G},n[2]||=[u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`h-5 w-5`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`},[u(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12`})],-1)])])):o(``,!0)])]),c(p(e),{modelValue:V.value,"onUpdate:modelValue":n[0]||=e=>V.value=e,"w-full":``},null,8,[`modelValue`])]))}}),P=N;export{P as default};
 
1
+ import{b as e}from"./InputFile-COpQFPz2.js";import{L as t,bL as n,bN as r,bO as i,bQ as a,bS as o,bT as s,bX as c,c0 as l,c1 as u,c2 as d,c6 as f,c9 as p,ca as m,cb as h}from"./index-BQADcPRe.js";import{c as g,d as _,e as v,f as y}from"./transformers.web-h59C6X8A.js";const b={flex:``,"flex-col":``,"items-center":``,"gap-4":``},x=[`disabled`],S={"h-full":``,"w-full":``,flex:``,"gap-2":``},C={w:`[50%]`,border:`2 solid neutral-200 dark:neutral-800`,bg:`neutral-50 dark:neutral-900`,"min-h":`120`,h:`auto`,"overflow-hidden":``,"rounded-lg":``},w=[`src`],T={w:`[50%]`,border:`2 solid neutral-200 dark:neutral-800`,bg:`neutral-50 dark:neutral-900`,"min-h":`120`,h:`auto`,relative:``,"overflow-hidden":``,"rounded-lg":``},E={key:0,bg:`black/50`,absolute:``,"inset-0":``,"z-10":``,flex:``,"flex-col":``,"items-center":``,"justify-center":``},D={"mb-4":``,"text-white":``,"font-medium":``},O={bg:`gray-200/30`,w:`70%`,"h-2":``,"overflow-hidden":``,"rounded-full":``},k=[`src`],A={bg:`black/0 group-hover:black/20`,absolute:``,"inset-0":``,flex:``,"items-center":``,"justify-center":``,"transition-all":``,"duration-200":``},j=[`onClick`],M={key:1,absolute:``,"bottom-2":``,"right-2":``};var N=a({__name:`background-remove`,setup(a){let N=f(),P=f(),F=f(),I=f(),L=f(!1),R=f(0),z=f(),B=f(),V=f([]),H=i(()=>V.value.map(e=>URL.createObjectURL(e)));n(async()=>{try{if(!(await t()).supported)throw Error(`WebGPU is not supported in this browser.`);let e=`Xenova/modnet`;g.backends.onnx.wasm.proxy=!1,N.value??=await y.from_pretrained(e,{device:`webgpu`}),P.value??=await v.from_pretrained(e,{})}catch(e){F.value=e}I.value=!1});async function U(){if(!N.value||!P.value)return;L.value=!0,R.value=0,z.value=[];let e=H.value.length;for(let t=0;t<e;++t){let n=await _.fromURL(H.value[t]),{pixel_values:r}=await P.value(n),{output:i}=await N.value({input:r}),a=(await _.fromTensor(i[0].mul(255).to(`uint8`)).resize(n.width,n.height)).data,o=document.createElement(`canvas`);o.width=n.width,o.height=n.height;let s=o.getContext(`2d`);if(!s)return;s.drawImage(n.toCanvas(),0,0);let c=s.getImageData(0,0,n.width,n.height);for(let e=0;e<a.length;++e)c.data[4*e+3]=a[e];s.putImageData(c,0,0),z.value.push(o.toDataURL(`image/png`)),R.value=Math.round((t+1)/e*100)}L.value=!1,B.value=!0}function W(e){if(!z.value||e>=z.value.length||!V.value[e])return;let t=V.value[e].name,n=t.substring(0,t.lastIndexOf(`.`))||t,r=t.substring(t.lastIndexOf(`.`))||`.png`,i=`${n}-background-removed${r}`,a=document.createElement(`a`);a.href=z.value[e],a.download=i,document.body.appendChild(a),a.click(),document.body.removeChild(a)}function G(){!z.value||z.value.length===0||z.value.forEach((e,t)=>{setTimeout(()=>W(t),t*100)})}return(t,n)=>(l(),s(`div`,b,[u(`button`,{bg:`neutral-100 dark:neutral-800`,"w-full":``,"cursor-pointer":``,"rounded-lg":``,"px-3":``,"py-2":``,disabled:L.value,onClick:U},h(L.value?`Processing...`:`Process`),9,x),u(`div`,S,[u(`div`,C,[(l(!0),s(r,null,d(H.value,(e,t)=>(l(),s(`img`,{key:t,src:e,"h-full":``,"w-full":``,"object-cover":``},null,8,w))),128))]),u(`div`,T,[L.value?(l(),s(`div`,E,[u(`div`,D,h(R.value)+`% `,1),u(`div`,O,[u(`div`,{bg:`emerald-500`,"h-full":``,style:m({width:`${R.value}%`}),"transition-all":``,"duration-200":``},null,4)])])):o(``,!0),(l(!0),s(r,null,d(z.value,(e,t)=>(l(),s(`div`,{key:t,relative:``,class:`group`,"h-full":``,"w-full":``},[u(`img`,{src:e,"h-full":``,"w-full":``,"object-cover":``},null,8,k),u(`div`,A,[u(`button`,{bg:`emerald-500 hover:emerald-600`,"rounded-full":``,"p-2":``,"text-white":``,"opacity-0":``,"transition-all":``,"duration-200":``,"group-hover:opacity-100":``,onClick:e=>W(t)},n[1]||=[u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`h-5 w-5`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`},[u(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4`})],-1)],8,j)])]))),128)),z.value&&z.value.length>1?(l(),s(`div`,M,[u(`button`,{bg:`emerald-500 hover:emerald-600`,"rounded-full":``,"p-2":``,"text-white":``,onClick:G},n[2]||=[u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`h-5 w-5`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`},[u(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12`})],-1)])])):o(``,!0)])]),c(p(e),{modelValue:V.value,"onUpdate:modelValue":n[0]||=e=>V.value=e,"w-full":``},null,8,[`modelValue`])]))}}),P=N;export{P as default};
assets/{chat-BHaEQYaw.js → chat-TcUUMYxc.js} RENAMED
@@ -1,3 +1,3 @@
1
- import{Q as e,aZ as t,bD as n,bG as r,bJ as i,bM as a,bO as o,bP as s,bX as c,bY as l,b_ as u,c4 as d,c6 as f,c7 as p,c9 as m,ca as h}from"./index-iU6Tacov.js";const g=()=>{let e=null;return{getStore:()=>(e===null&&console.warn("Woops! Looks like you are calling `getContext` after `await fn()`. Please move `getContext` to top level of handler."),e),run(t,n){e=t;try{return n()}finally{e=null}}}},_=new WeakMap,v=new WeakMap;let y=0,b=0;const x=e=>{let t=`${y++}`,n={debugLabel:e?.debugLabel??t,include:e=>r.has(e),with:i=>{let a=`${b++}`,o={[Symbol.toStringTag]:e?.debugLabel??`WorkflowEvent(${t}.${a})`,toString:()=>e?.debugLabel?e.debugLabel:`WorkflowEvent(${t}.${a})`,toJSON:()=>({type:e?.debugLabel?e.debugLabel:t,data:i}),get data(){return i}};return r.add(o),v.set(o,n),o}},r=new WeakSet;_.set(n,r),Object.defineProperty(n,Symbol.toStringTag,{get:()=>n?.debugLabel??`WorkflowEvent<${t}>`}),Object.defineProperty(n,`displayName`,{value:n?.debugLabel??`WorkflowEvent<${t}>`});let i=e?.uniqueId;return Object.defineProperty(n,`uniqueId`,{get:()=>(i||=t,i),set:()=>{throw Error(`uniqueId is readonly`)}}),n.toString=()=>e?.debugLabel??`WorkflowEvent<${t}>`,n},S=e=>typeof e==`object`&&e?_.has(e):!1,C=e=>typeof e==`object`&&e?v.get(e):void 0,w=e=>typeof e==`object`&&!!e&&`data`in e,T=e=>e!=null&&typeof e.then==`function`;function E(e,t){let n=Array(e.length);for(let r of t)for(let t=0;t<e.length;t++)if(!n[t]&&e[t].include(r)){n[t]=r;break}return n.filter(Boolean)}const D=new WeakMap;function O(e){return D.get(e)}function k(){let e=new Set,t={subscribe:t=>(e.add(t),()=>{e.delete(t)}),publish:(...t)=>{let n=[];for(let r of e)n.push(r(...t));return n}};return D.set(t,e),t}var A=class extends TransformStream{constructor(){super({transform:(e,t)=>{C(e)&&t.enqueue(JSON.stringify({data:e.data,uniqueId:C(e).uniqueId})+`
2
  `)}})}},j=class extends TransformStream{#eventMap;constructor(e){super({transform:(e,t)=>{let n=e.split(`
3
  `).map(e=>e.trim()).filter(e=>e.length>0);n.forEach(e=>{let n=JSON.parse(e),r=Object.values(this.#eventMap).find(e=>e.uniqueId===n.uniqueId);if(r){let e=r.with(n.data);t.enqueue(e)}else console.warn(`Unknown event: ${n.uniqueId}`)})}}),this.#eventMap=e}},M=class e extends ReadableStream{#stream;#subscribable;on(e,t){return this.#subscribable.subscribe(n=>{e.include(n)&&t(n)})}constructor(e,t){if(!e&&!t)throw TypeError(`Either subscribable or root stream must be provided`);if(super(),e){this.#subscribable=e;let n;this.#stream=t??new ReadableStream({start:t=>{n=e.subscribe(e=>{t.enqueue(e)})},cancel:()=>{n()}})}else{this.#subscribable=k(),this.#stream=t.pipeThrough(new TransformStream({transform:(e,t)=>{this.#subscribable.publish(e),t.enqueue(e)}}));return}}static fromReadableStream(t){return new e(null,t.pipeThrough(new TransformStream({transform:(e,t)=>{t.enqueue(e)}})))}static fromResponse(t,n){let r=t.body;if(!r)throw Error(`Response body is not readable`);return new e(null,r.pipeThrough(new TextDecoderStream).pipeThrough(new j(n)))}toResponse(e,t=new A){return new Response(this.#stream.pipeThrough(t).pipeThrough(new TextEncoderStream),e)}get locked(){return this.#stream.locked}[Symbol.asyncIterator](){return this.#stream[Symbol.asyncIterator]()}cancel(e){return this.#stream.cancel(e)}getReader(){return this.#stream.getReader()}pipeThrough(t,n){let r=this.#stream.pipeThrough(t,n);return new e(null,r)}pipeTo(e,t){return this.#stream.pipeTo(e,t)}tee(){let[t,n]=this.#stream.tee();return[new e(this.#subscribable,t),new e(this.#subscribable,n)]}forEach(e){return this.#stream.pipeTo(new WritableStream({write:t=>{e(t)}}))}map(e){return this.pipeThrough(new TransformStream({transform:(t,n)=>{n.enqueue(e(t))}}))}values(e){return this.#stream.values(e)}take(e){let t=0;return this.pipeThrough(new TransformStream({transform:(n,r)=>{t<e&&(r.enqueue(n),t++),t>=e&&r.terminate()}}))}filter(e){return this.pipeThrough(new TransformStream({transform:(t,n)=>{(typeof e==`function`?e(t):S(e)?e.include(t):e===t)&&n.enqueue(t)}}))}until(e){return this.pipeThrough(new TransformStream({transform:(t,n)=>{n.enqueue(t),(typeof e==`function`?e(t):S(e)?e.include(t):e===t)&&n.terminate()}}))}async toArray(){let e=[];return await this.pipeTo(new WritableStream({write:t=>{e.push(t)}})),e}};const N=g();function P(){let e=N.getStore();if(!e)throw Error(`No current context found`);return e}const F=g(),I=new WeakMap,L=({listeners:e})=>{let t=[],n=(e,t,n,r)=>{let c,l={get abortController(){return c||=new AbortController,c},async:`constructor`in e?e.constructor.name===`AsyncFunction`:!1,pending:null,handler:e,inputEvents:t,inputs:n,outputs:[],prev:r,next:new Set,get root(){return o}};l.prev.next.add(l);let u=i(l);F.run(l,()=>{let e=[...new Set([...O(s.__internal__call_context),...O(u.__internal__call_context)])];N.run(u,()=>{let t=0,n=r=>{if(t===e.length){let e;try{e=r.handler(...r.inputs)}catch(e){if(c??a)(c??a).abort(e);else throw console.error(`unhandled error in handler`,e),e}T(e)?(l.async=!0,l.pending=e.then(e=>(w(e)&&u.sendEvent(e),e))):w(e)&&u.sendEvent(e)}let i=e[t];i&&(t++,i(r,n))};n(l)})})},r=r=>{let i=[...t];[...e].filter(([e])=>{let t=E(e,i);return t.length===e.length}).map(([e,a])=>{let o=E(e,i);o.forEach(e=>{t.splice(t.indexOf(e),1)});for(let t of a)n(t,e,o,r)})},i=e=>{let n=null;return{get stream(){if(!n){let t=k();s.__internal__call_send_event.subscribe(n=>{let r=I.get(n);for(;r;){if(r===e){t.publish(n);break}r=r.prev}}),n=new M(t,null)}return n},get signal(){return e.abortController.signal},sendEvent:(...n)=>{n.forEach(n=>{I.set(n,e),e.outputs.push(n),t.push(n),s.__internal__call_send_event.publish(n,e),r(e)})},__internal__call_context:k(),__internal__call_send_event:k()}},a=new AbortController,o={get abortController(){return a||=new AbortController,a},async:!1,pending:null,inputEvents:[],inputs:[],outputs:[],handler:null,prev:null,next:new Set,get root(){return o}},s=i(o);return s},R=()=>{let e={steps:new Map};return{handle:(t,n)=>{if(e.steps.has(t)){let r=e.steps.get(t);r.add(n)}else{let r=new Set;r.add(n),e.steps.set(t,r)}},createContext(){return L({listeners:e.steps})}}};function z(e,t){let n=(...e)=>{let n=t.filter(([t])=>t.every((t,n)=>t.include(e[n]))).map(([e,t])=>t),r=P(),i=r.sendEvent;return(...e)=>{for(let t=0;t<n.length;t++){let r=n[t];if(r.length===e.length&&r.every((t,n)=>t.include(e[n])))return i(...e)}return console.warn(`Invalid input detected [%s]`,e.map(e=>e.data).join(`, `)),i(...e)}};return{...e,strictHandle:(t,n)=>{let r=(...e)=>{let t=P();return n(t.safeSendEvent,...e)};return e.handle(t,r)},createContext(){let t=e.createContext();return t.__internal__call_context.subscribe((e,t)=>{P().safeSendEvent=n(...e.inputs),t(e)}),t}}}async function B(e,t,n){let{stream:r,sendEvent:i}=e.createContext();i(t);let a=(await r.until(n).toArray()).at(-1);if(!a)throw Error(`No output event received`);return a}const V={flex:``,"flex-col":``,"gap-2":``},H={flex:`~ col`,"gap-2":``},U={flex:``,"flex-col":``,"gap-2":``},W={grid:``,"grid-cols-2":``,"gap-2":``},G={flex:``,"items-center":``,"gap-2":``},K={flex:``,"items-center":``,"gap-2":``},q={flex:``,"items-center":``,"gap-2":``},J={key:0},Y={key:1};var X=a({__name:`chat`,setup(a){let g=t(`settings/llm/baseUrl`,`https://openrouter.ai/api/v1/`),_=t(`settings/llm/apiKey`,``),v=t(`settings/llm/model`,`openai/gpt-4o-mini`),y=f(``),b=f([]),S=f({role:`assistant`,content:``}),C=f(!1),w=x(),T=x(),E=x(),D=x(),O=x();async function k(){C.value=!0;try{let t=z(R(),[[[w],[T,O]],[[T],[E]],[[E],[D]]]);t.handle([w],async()=>{let{sendEvent:n}=t.createContext();S.value={role:`assistant`,content:``},b.value.push({role:`user`,content:y.value}),b.value.push(S.value);let r=await e({baseURL:g.value,apiKey:_.value,model:v.value,messages:b.value.slice(0,b.value.length-1).map(e=>p(e))});for await(let e of r.fullStream)e.type===`text-delta`&&n(T.with(e.text||``));return O.with()}),t.handle([T],async e=>{S.value.content?S.value.content+=e.data:S.value.content=e.data}),await B(t,w.with(),O)}catch(e){console.error(e)}finally{C.value=!1}}return(e,t)=>(c(),s(`div`,V,[l(`div`,H,[l(`div`,U,[t[7]||=l(`div`,null,[l(`span`,{"text-neutral-500":``,"dark:text-neutral-400":``},`LLM`)],-1),l(`div`,W,[l(`label`,G,[t[4]||=l(`span`,{"text-nowrap":``},` Base URL `,-1),r(l(`input`,{"onUpdate:modelValue":t[0]||=e=>d(g)?g.value=e:null,border:`focus:primary-100 dark:focus:primary-400/50 2 solid neutral-200 dark:neutral-800`,transition:`all duration-200 ease-in-out`,text:`disabled:neutral-400 dark:disabled:neutral-600`,cursor:`disabled:not-allowed`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-nowrap":``,"text-sm":``,"outline-none":``,shadow:`sm`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`},null,512),[[n,m(g)]])]),l(`label`,K,[t[5]||=l(`span`,{"text-nowrap":``},` API Key `,-1),r(l(`input`,{"onUpdate:modelValue":t[1]||=e=>d(_)?_.value=e:null,type:`password`,border:`focus:primary-100 dark:focus:primary-400/50 2 solid neutral-200 dark:neutral-800`,transition:`all duration-200 ease-in-out`,text:`disabled:neutral-400 dark:disabled:neutral-600`,cursor:`disabled:not-allowed`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-nowrap":``,"text-sm":``,"outline-none":``,shadow:`sm`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`},null,512),[[n,m(_)]])]),l(`label`,q,[t[6]||=l(`span`,{"text-nowrap":``},` Model `,-1),r(l(`input`,{"onUpdate:modelValue":t[2]||=e=>d(v)?v.value=e:null,border:`focus:primary-100 dark:focus:primary-400/50 2 solid neutral-200 dark:neutral-800`,transition:`all duration-200 ease-in-out`,text:`disabled:neutral-400 dark:disabled:neutral-600`,cursor:`disabled:not-allowed`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-nowrap":``,"text-sm":``,"outline-none":``,shadow:`sm`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`},null,512),[[n,m(v)]])])])]),l(`div`,null,[r(l(`textarea`,{"onUpdate:modelValue":t[3]||=e=>y.value=e,border:`focus:primary-100 dark:focus:primary-400/50 2 solid neutral-200 dark:neutral-800`,transition:`all duration-200 ease-in-out`,text:`disabled:neutral-400 dark:disabled:neutral-600`,cursor:`disabled:not-allowed`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-nowrap":``,"text-sm":``,"outline-none":``,shadow:`sm`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`},null,512),[[n,y.value]])]),l(`button`,{"rounded-lg":``,bg:`blue-100 dark:blue-900`,"px-4":``,"py-2":``,onClick:k},` Send `),l(`div`,null,[(c(!0),s(i,null,u(b.value,(e,t)=>(c(),s(`div`,{key:t},[e.role===`user`?(c(),s(`div`,J,[l(`span`,null,h(e.content),1)])):o(``,!0),e.role===`assistant`?(c(),s(`div`,Y,[l(`span`,null,h(e.content),1)])):o(``,!0)]))),128))])])]))}}),Z=X;export{Z as default};
 
1
+ import{Q as e,b9 as t,bD as n,bK as r,bN as i,bQ as a,bS as o,bT as s,c0 as c,c1 as l,c2 as u,c4 as d,c6 as f,c7 as p,c9 as m,cb as h}from"./index-BQADcPRe.js";const g=()=>{let e=null;return{getStore:()=>(e===null&&console.warn("Woops! Looks like you are calling `getContext` after `await fn()`. Please move `getContext` to top level of handler."),e),run(t,n){e=t;try{return n()}finally{e=null}}}},_=new WeakMap,v=new WeakMap;let y=0,b=0;const x=e=>{let t=`${y++}`,n={debugLabel:e?.debugLabel??t,include:e=>r.has(e),with:i=>{let a=`${b++}`,o={[Symbol.toStringTag]:e?.debugLabel??`WorkflowEvent(${t}.${a})`,toString:()=>e?.debugLabel?e.debugLabel:`WorkflowEvent(${t}.${a})`,toJSON:()=>({type:e?.debugLabel?e.debugLabel:t,data:i}),get data(){return i}};return r.add(o),v.set(o,n),o}},r=new WeakSet;_.set(n,r),Object.defineProperty(n,Symbol.toStringTag,{get:()=>n?.debugLabel??`WorkflowEvent<${t}>`}),Object.defineProperty(n,`displayName`,{value:n?.debugLabel??`WorkflowEvent<${t}>`});let i=e?.uniqueId;return Object.defineProperty(n,`uniqueId`,{get:()=>(i||=t,i),set:()=>{throw Error(`uniqueId is readonly`)}}),n.toString=()=>e?.debugLabel??`WorkflowEvent<${t}>`,n},S=e=>typeof e==`object`&&e?_.has(e):!1,C=e=>typeof e==`object`&&e?v.get(e):void 0,w=e=>typeof e==`object`&&!!e&&`data`in e,T=e=>e!=null&&typeof e.then==`function`;function E(e,t){let n=Array(e.length);for(let r of t)for(let t=0;t<e.length;t++)if(!n[t]&&e[t].include(r)){n[t]=r;break}return n.filter(Boolean)}const D=new WeakMap;function O(e){return D.get(e)}function k(){let e=new Set,t={subscribe:t=>(e.add(t),()=>{e.delete(t)}),publish:(...t)=>{let n=[];for(let r of e)n.push(r(...t));return n}};return D.set(t,e),t}var A=class extends TransformStream{constructor(){super({transform:(e,t)=>{C(e)&&t.enqueue(JSON.stringify({data:e.data,uniqueId:C(e).uniqueId})+`
2
  `)}})}},j=class extends TransformStream{#eventMap;constructor(e){super({transform:(e,t)=>{let n=e.split(`
3
  `).map(e=>e.trim()).filter(e=>e.length>0);n.forEach(e=>{let n=JSON.parse(e),r=Object.values(this.#eventMap).find(e=>e.uniqueId===n.uniqueId);if(r){let e=r.with(n.data);t.enqueue(e)}else console.warn(`Unknown event: ${n.uniqueId}`)})}}),this.#eventMap=e}},M=class e extends ReadableStream{#stream;#subscribable;on(e,t){return this.#subscribable.subscribe(n=>{e.include(n)&&t(n)})}constructor(e,t){if(!e&&!t)throw TypeError(`Either subscribable or root stream must be provided`);if(super(),e){this.#subscribable=e;let n;this.#stream=t??new ReadableStream({start:t=>{n=e.subscribe(e=>{t.enqueue(e)})},cancel:()=>{n()}})}else{this.#subscribable=k(),this.#stream=t.pipeThrough(new TransformStream({transform:(e,t)=>{this.#subscribable.publish(e),t.enqueue(e)}}));return}}static fromReadableStream(t){return new e(null,t.pipeThrough(new TransformStream({transform:(e,t)=>{t.enqueue(e)}})))}static fromResponse(t,n){let r=t.body;if(!r)throw Error(`Response body is not readable`);return new e(null,r.pipeThrough(new TextDecoderStream).pipeThrough(new j(n)))}toResponse(e,t=new A){return new Response(this.#stream.pipeThrough(t).pipeThrough(new TextEncoderStream),e)}get locked(){return this.#stream.locked}[Symbol.asyncIterator](){return this.#stream[Symbol.asyncIterator]()}cancel(e){return this.#stream.cancel(e)}getReader(){return this.#stream.getReader()}pipeThrough(t,n){let r=this.#stream.pipeThrough(t,n);return new e(null,r)}pipeTo(e,t){return this.#stream.pipeTo(e,t)}tee(){let[t,n]=this.#stream.tee();return[new e(this.#subscribable,t),new e(this.#subscribable,n)]}forEach(e){return this.#stream.pipeTo(new WritableStream({write:t=>{e(t)}}))}map(e){return this.pipeThrough(new TransformStream({transform:(t,n)=>{n.enqueue(e(t))}}))}values(e){return this.#stream.values(e)}take(e){let t=0;return this.pipeThrough(new TransformStream({transform:(n,r)=>{t<e&&(r.enqueue(n),t++),t>=e&&r.terminate()}}))}filter(e){return this.pipeThrough(new TransformStream({transform:(t,n)=>{(typeof e==`function`?e(t):S(e)?e.include(t):e===t)&&n.enqueue(t)}}))}until(e){return this.pipeThrough(new TransformStream({transform:(t,n)=>{n.enqueue(t),(typeof e==`function`?e(t):S(e)?e.include(t):e===t)&&n.terminate()}}))}async toArray(){let e=[];return await this.pipeTo(new WritableStream({write:t=>{e.push(t)}})),e}};const N=g();function P(){let e=N.getStore();if(!e)throw Error(`No current context found`);return e}const F=g(),I=new WeakMap,L=({listeners:e})=>{let t=[],n=(e,t,n,r)=>{let c,l={get abortController(){return c||=new AbortController,c},async:`constructor`in e?e.constructor.name===`AsyncFunction`:!1,pending:null,handler:e,inputEvents:t,inputs:n,outputs:[],prev:r,next:new Set,get root(){return o}};l.prev.next.add(l);let u=i(l);F.run(l,()=>{let e=[...new Set([...O(s.__internal__call_context),...O(u.__internal__call_context)])];N.run(u,()=>{let t=0,n=r=>{if(t===e.length){let e;try{e=r.handler(...r.inputs)}catch(e){if(c??a)(c??a).abort(e);else throw console.error(`unhandled error in handler`,e),e}T(e)?(l.async=!0,l.pending=e.then(e=>(w(e)&&u.sendEvent(e),e))):w(e)&&u.sendEvent(e)}let i=e[t];i&&(t++,i(r,n))};n(l)})})},r=r=>{let i=[...t];[...e].filter(([e])=>{let t=E(e,i);return t.length===e.length}).map(([e,a])=>{let o=E(e,i);o.forEach(e=>{t.splice(t.indexOf(e),1)});for(let t of a)n(t,e,o,r)})},i=e=>{let n=null;return{get stream(){if(!n){let t=k();s.__internal__call_send_event.subscribe(n=>{let r=I.get(n);for(;r;){if(r===e){t.publish(n);break}r=r.prev}}),n=new M(t,null)}return n},get signal(){return e.abortController.signal},sendEvent:(...n)=>{n.forEach(n=>{I.set(n,e),e.outputs.push(n),t.push(n),s.__internal__call_send_event.publish(n,e),r(e)})},__internal__call_context:k(),__internal__call_send_event:k()}},a=new AbortController,o={get abortController(){return a||=new AbortController,a},async:!1,pending:null,inputEvents:[],inputs:[],outputs:[],handler:null,prev:null,next:new Set,get root(){return o}},s=i(o);return s},R=()=>{let e={steps:new Map};return{handle:(t,n)=>{if(e.steps.has(t)){let r=e.steps.get(t);r.add(n)}else{let r=new Set;r.add(n),e.steps.set(t,r)}},createContext(){return L({listeners:e.steps})}}};function z(e,t){let n=(...e)=>{let n=t.filter(([t])=>t.every((t,n)=>t.include(e[n]))).map(([e,t])=>t),r=P(),i=r.sendEvent;return(...e)=>{for(let t=0;t<n.length;t++){let r=n[t];if(r.length===e.length&&r.every((t,n)=>t.include(e[n])))return i(...e)}return console.warn(`Invalid input detected [%s]`,e.map(e=>e.data).join(`, `)),i(...e)}};return{...e,strictHandle:(t,n)=>{let r=(...e)=>{let t=P();return n(t.safeSendEvent,...e)};return e.handle(t,r)},createContext(){let t=e.createContext();return t.__internal__call_context.subscribe((e,t)=>{P().safeSendEvent=n(...e.inputs),t(e)}),t}}}async function B(e,t,n){let{stream:r,sendEvent:i}=e.createContext();i(t);let a=(await r.until(n).toArray()).at(-1);if(!a)throw Error(`No output event received`);return a}const V={flex:``,"flex-col":``,"gap-2":``},H={flex:`~ col`,"gap-2":``},U={flex:``,"flex-col":``,"gap-2":``},W={grid:``,"grid-cols-2":``,"gap-2":``},G={flex:``,"items-center":``,"gap-2":``},K={flex:``,"items-center":``,"gap-2":``},q={flex:``,"items-center":``,"gap-2":``},J={key:0},Y={key:1};var X=a({__name:`chat`,setup(a){let g=t(`settings/llm/baseUrl`,`https://openrouter.ai/api/v1/`),_=t(`settings/llm/apiKey`,``),v=t(`settings/llm/model`,`openai/gpt-4o-mini`),y=f(``),b=f([]),S=f({role:`assistant`,content:``}),C=f(!1),w=x(),T=x(),E=x(),D=x(),O=x();async function k(){C.value=!0;try{let t=z(R(),[[[w],[T,O]],[[T],[E]],[[E],[D]]]);t.handle([w],async()=>{let{sendEvent:n}=t.createContext();S.value={role:`assistant`,content:``},b.value.push({role:`user`,content:y.value}),b.value.push(S.value);let r=await e({baseURL:g.value,apiKey:_.value,model:v.value,messages:b.value.slice(0,b.value.length-1).map(e=>p(e))});for await(let e of r.fullStream)e.type===`text-delta`&&n(T.with(e.text||``));return O.with()}),t.handle([T],async e=>{S.value.content?S.value.content+=e.data:S.value.content=e.data}),await B(t,w.with(),O)}catch(e){console.error(e)}finally{C.value=!1}}return(e,t)=>(c(),s(`div`,V,[l(`div`,H,[l(`div`,U,[t[7]||=l(`div`,null,[l(`span`,{"text-neutral-500":``,"dark:text-neutral-400":``},`LLM`)],-1),l(`div`,W,[l(`label`,G,[t[4]||=l(`span`,{"text-nowrap":``},` Base URL `,-1),r(l(`input`,{"onUpdate:modelValue":t[0]||=e=>d(g)?g.value=e:null,border:`focus:primary-100 dark:focus:primary-400/50 2 solid neutral-200 dark:neutral-800`,transition:`all duration-200 ease-in-out`,text:`disabled:neutral-400 dark:disabled:neutral-600`,cursor:`disabled:not-allowed`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-nowrap":``,"text-sm":``,"outline-none":``,shadow:`sm`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`},null,512),[[n,m(g)]])]),l(`label`,K,[t[5]||=l(`span`,{"text-nowrap":``},` API Key `,-1),r(l(`input`,{"onUpdate:modelValue":t[1]||=e=>d(_)?_.value=e:null,type:`password`,border:`focus:primary-100 dark:focus:primary-400/50 2 solid neutral-200 dark:neutral-800`,transition:`all duration-200 ease-in-out`,text:`disabled:neutral-400 dark:disabled:neutral-600`,cursor:`disabled:not-allowed`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-nowrap":``,"text-sm":``,"outline-none":``,shadow:`sm`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`},null,512),[[n,m(_)]])]),l(`label`,q,[t[6]||=l(`span`,{"text-nowrap":``},` Model `,-1),r(l(`input`,{"onUpdate:modelValue":t[2]||=e=>d(v)?v.value=e:null,border:`focus:primary-100 dark:focus:primary-400/50 2 solid neutral-200 dark:neutral-800`,transition:`all duration-200 ease-in-out`,text:`disabled:neutral-400 dark:disabled:neutral-600`,cursor:`disabled:not-allowed`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-nowrap":``,"text-sm":``,"outline-none":``,shadow:`sm`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`},null,512),[[n,m(v)]])])])]),l(`div`,null,[r(l(`textarea`,{"onUpdate:modelValue":t[3]||=e=>y.value=e,border:`focus:primary-100 dark:focus:primary-400/50 2 solid neutral-200 dark:neutral-800`,transition:`all duration-200 ease-in-out`,text:`disabled:neutral-400 dark:disabled:neutral-600`,cursor:`disabled:not-allowed`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-nowrap":``,"text-sm":``,"outline-none":``,shadow:`sm`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`},null,512),[[n,y.value]])]),l(`button`,{"rounded-lg":``,bg:`blue-100 dark:blue-900`,"px-4":``,"py-2":``,onClick:k},` Send `),l(`div`,null,[(c(!0),s(i,null,u(b.value,(e,t)=>(c(),s(`div`,{key:t},[e.role===`user`?(c(),s(`div`,J,[l(`span`,null,h(e.content),1)])):o(``,!0),e.role===`assistant`?(c(),s(`div`,Y,[l(`span`,null,h(e.content),1)])):o(``,!0)]))),128))])])]))}}),Z=X;export{Z as default};
assets/{cloudflare-workers-ai-zoZCsbck.js → cloudflare-workers-ai-CUqXr20U.js} RENAMED
@@ -1 +1 @@
1
- import{K as e,M as t,aT as n,aY as r,bH as i,bK as a,bM as o,bN as s,bT as c,bV as l,bX as u,c1 as d,c9 as f,t as p,u as m,v as h,x as g,z as _}from"./index-iU6Tacov.js";import{b as v}from"./route-block-B2lA4iHQ.js";const y=`cloudflare-workers-ai`;var b=o({__name:`cloudflare-workers-ai`,setup(o){let{t:v}=t(),b=n(),x=e(),{providers:S}=r(x),C=a(()=>x.getProviderMetadata(y)),w=a({get:()=>S.value[y]?.apiKey||``,set:e=>{S.value[y]||(S.value[y]={}),S.value[y].apiKey=e}}),T=a({get:()=>S.value[y]?.accountId||``,set:e=>{S.value[y]||(S.value[y]={}),S.value[y].accountId=e}});i(()=>{x.initializeProvider(y),w.value=S.value[y]?.apiKey||``,T.value=S.value[y]?.accountId||``}),l([w,T],()=>{S.value[y]={...S.value[y],apiKey:w.value,accountId:T.value}});function E(){S.value[y]={...C.value?.defaultOptions}}return(e,t)=>(u(),d(f(p),{"provider-name":C.value?.localizedName,"provider-icon-color":C.value?.iconColor,"on-back":()=>f(b).back()},{default:s(()=>[c(f(m),null,{default:s(()=>[c(f(h),{title:f(v)(`settings.pages.providers.common.section.basic.title`),description:f(v)(`settings.pages.providers.common.section.basic.description`),"on-reset":E},{default:s(()=>[c(f(g),{modelValue:w.value,"onUpdate:modelValue":t[0]||=e=>w.value=e,"provider-name":C.value?.localizedName,placeholder:f(v)(`settings.pages.providers.provider.cloudflare-workers-ai.fields.field.api-key.placeholder`)},null,8,[`modelValue`,`provider-name`,`placeholder`]),c(f(_),{modelValue:T.value,"onUpdate:modelValue":t[1]||=e=>T.value=e,label:f(v)(`settings.pages.providers.provider.cloudflare-workers-ai.fields.field.account-id.label`),description:f(v)(`settings.pages.providers.provider.cloudflare-workers-ai.fields.field.account-id.description`),placeholder:f(v)(`settings.pages.providers.provider.cloudflare-workers-ai.fields.field.account-id.placeholder`)},null,8,[`modelValue`,`label`,`description`,`placeholder`])]),_:1},8,[`title`,`description`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon-color`,`on-back`]))}});typeof v==`function`&&v(b);var x=b;export{x as default};
 
1
+ import{K as e,M as t,aT as n,aY as r,bH as i,bL as a,bO as o,bQ as s,bR as c,bX as l,bZ as u,c0 as d,c9 as f,t as p,u as m,v as h,x as g,z as _}from"./index-BQADcPRe.js";import{b as v}from"./route-block-B2lA4iHQ.js";const y=`cloudflare-workers-ai`;var b=s({__name:`cloudflare-workers-ai`,setup(s){let{t:v}=t(),b=n(),x=e(),{providers:S}=r(x),C=o(()=>x.getProviderMetadata(y)),w=o({get:()=>S.value[y]?.apiKey||``,set:e=>{S.value[y]||(S.value[y]={}),S.value[y].apiKey=e}}),T=o({get:()=>S.value[y]?.accountId||``,set:e=>{S.value[y]||(S.value[y]={}),S.value[y].accountId=e}});a(()=>{x.initializeProvider(y),w.value=S.value[y]?.apiKey||``,T.value=S.value[y]?.accountId||``}),u([w,T],()=>{S.value[y]={...S.value[y],apiKey:w.value,accountId:T.value}});function E(){S.value[y]={...C.value?.defaultOptions}}return(e,t)=>(d(),i(f(p),{"provider-name":C.value?.localizedName,"provider-icon-color":C.value?.iconColor,"on-back":()=>f(b).back()},{default:c(()=>[l(f(m),null,{default:c(()=>[l(f(h),{title:f(v)(`settings.pages.providers.common.section.basic.title`),description:f(v)(`settings.pages.providers.common.section.basic.description`),"on-reset":E},{default:c(()=>[l(f(g),{modelValue:w.value,"onUpdate:modelValue":t[0]||=e=>w.value=e,"provider-name":C.value?.localizedName,placeholder:f(v)(`settings.pages.providers.provider.cloudflare-workers-ai.fields.field.api-key.placeholder`)},null,8,[`modelValue`,`provider-name`,`placeholder`]),l(f(_),{modelValue:T.value,"onUpdate:modelValue":t[1]||=e=>T.value=e,label:f(v)(`settings.pages.providers.provider.cloudflare-workers-ai.fields.field.account-id.label`),description:f(v)(`settings.pages.providers.provider.cloudflare-workers-ai.fields.field.account-id.description`),placeholder:f(v)(`settings.pages.providers.provider.cloudflare-workers-ai.fields.field.account-id.placeholder`)},null,8,[`modelValue`,`label`,`description`,`placeholder`])]),_:1},8,[`title`,`description`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon-color`,`on-back`]))}});typeof v==`function`&&v(b);var x=b;export{x as default};
assets/{color-scheme-Ci1WjyeH.js → color-scheme-D2CHgC_s.js} RENAMED
@@ -1 +1 @@
1
- import{C as e,M as t,aJ as n,aN as r,ap as i,b as a,b$ as o,bG as s,bJ as c,bM as l,bN as u,bP as d,bT as f,bW as p,bX as m,bY as h,b_ as g,bz as _,c1 as v,c9 as y,ca as b}from"./index-iU6Tacov.js";import{b as x}from"./route-block-B2lA4iHQ.js";var S=[[],[`#A5978B`,`#D8CAAF`,`#B8B4A7`,`#C4BCB1`,`#E5DED8`,`#9A8F7D`,`#BEB5A7`,`#C9C0B6`],[`#7A9EAF`,`#B8C7CC`,`#D4B79C`,`#8B9D77`,`#C7D5CB`,`#E6D0B1`,`#94A7B1`,`#B4C8C3`],[`#D9B48F`,`#B5917A`,`#8C7A6B`,`#A17F5F`,`#B98C46`,`#C7A252`,`#DAB300`,`#D19826`],[`#9BA7B0`,`#C1CBD4`,`#A5ADB6`,`#8B959E`,`#D4DCE4`,`#7F8A94`,`#B3BCC6`,`#98A4AE`],[`#E4C6D0`,`#A61B29`,`#5D513C`,`#789262`,`#1C0D1A`,`#F7C242`,`#62A9DD`,`#8C4B3C`]];const C={flex:``,"items-center":``,"justify-between":``,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:300,delay:5*50,transition:`all ease-in-out duration-250`},w={"text-lg":``,"font-normal":``},T={relative:``,flex:``,"cursor-pointer":``,"items-center":``,"gap-2":``},E={class:`color-bar text-[10px] md:text-base sm:text-xs`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:320,delay:7*50,transition:`all ease-in-out duration-250`},D={"text-white":``,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:330,delay:8*50,transition:`all ease-in-out duration-250`},O={class:`color-bar transparency-grid text-[10px] md:text-base sm:text-xs`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:340,delay:9*50,transition:`all ease-in-out duration-250`},k=[`duration`,`delay`],A={"font-medium":``},j={text:`sm neutral-500`},M={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[65dvh]`,"right--15":``,"z--1":``,initial:{scale:.9,opacity:0,rotate:30},enter:{scale:1,opacity:1,rotate:0},duration:250,flex:``,"items-center":``,"justify-center":``};var N=l({__name:`color-scheme`,setup(r){let l=e(),{t:x}=t();return(e,t)=>{let r=p(`motion`);return m(),d(c,null,[s((m(),v(y(i),{"mb-2":``,title:y(x)(`settings.pages.themes.sections.section.custom-color.title`),icon:`i-solar:pallete-2-bold-duotone`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:290,delay:4*50,transition:`all ease-in-out duration-250`},{default:u(()=>[s((m(),d(`div`,C,[h(`span`,w,b(e.$t(`settings.pages.themes.sections.section.custom-color.fields.field.primary-color.label`)),1),h(`label`,T,[s(h(`input`,{"onUpdate:modelValue":t[0]||=e=>y(l).themeColorsHueDynamic=e,type:`checkbox`,class:`peer sr-only`},null,512),[[_,y(l).themeColorsHueDynamic]]),t[2]||=h(`div`,{class:`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 peer-checked:bg-primary-500 after:transition-all after:content-[''] peer-checked:after:translate-x-full peer-checked:after:border-white`},null,-1),o(` `+b(e.$t(`settings.pages.themes.sections.section.custom-color.fields.field.primary-color.rgb-on.title`)),1)])])),[[r]]),s(f(y(n),{modelValue:y(l).themeColorsHue,"onUpdate:modelValue":t[1]||=e=>y(l).themeColorsHue=e,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:310,delay:6*50,disabled:y(l).themeColorsHueDynamic},null,8,[`modelValue`,`disabled`]),[[r]]),s((m(),d(`div`,E,[t[4]||=h(`span`,{"bg-primary-50":``},`50`,-1),t[5]||=h(`span`,{"bg-primary-100":``},`100`,-1),t[6]||=h(`span`,{"bg-primary-200":``},`200`,-1),t[7]||=h(`span`,{"bg-primary-300":``},`300`,-1),t[8]||=h(`span`,{"bg-primary-400":``},`400`,-1),t[9]||=h(`span`,{"bg-primary-500":``},`500`,-1),s((m(),d(`div`,D,t[3]||=[h(`span`,{"bg-primary-600":``},`600`,-1),h(`span`,{"bg-primary-700":``},`700`,-1),h(`span`,{"bg-primary-800":``},`800`,-1),h(`span`,{"bg-primary-900":``},`900`,-1),h(`span`,{"bg-primary-950":``},`950`,-1)])),[[r]])])),[[r]]),s((m(),d(`div`,O,t[10]||=[h(`span`,{bg:`primary-500/5`},`500/5`,-1),h(`span`,{bg:`primary-500/10`},`500/10`,-1),h(`span`,{bg:`primary-500/20`},`500/20`,-1),h(`span`,{bg:`primary-500/30`},`500/30`,-1),h(`span`,{bg:`primary-500/40`},`500/40`,-1),h(`span`,{bg:`primary-500/50`},`500/50`,-1),h(`span`,{bg:`primary-500/60`},`500/60`,-1),h(`span`,{bg:`primary-500/70`},`500/70`,-1),h(`span`,{bg:`primary-500/80`},`500/80`,-1),h(`span`,{bg:`primary-500/90`},`500/90`,-1),h(`span`,{bg:`primary-500`},`500`,-1)])),[[r]])]),_:1},8,[`title`])),[[r]]),s((m(),v(y(i),{"mb-2":``,title:y(x)(`settings.pages.themes.sections.section.theme-presets.title`),icon:`i-solar:magic-stick-2-bold-duotone`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:350,delay:10*50,transition:`all ease-in-out duration-250`},{default:u(()=>[(m(!0),d(c,null,g(e.$tm(`settings.pages.themes.sections.section.theme-presets.presets`),({title:t,description:n,colors:i},o)=>s((m(),d(`div`,{key:o,class:`w-full flex flex-col items-start justify-between gap-2 rounded-lg px-4 py-3 outline-none transition-all duration-250 ease-in-out md:flex-row md:items-center md:gap-0`,bg:`neutral-100 dark:neutral-800`,hover:`bg-neutral-200 dark:bg-neutral-700`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:360+o*10,delay:11*50+o*50,transition:`all ease-in-out duration-250`},[h(`div`,null,[h(`span`,A,b(e.$rt(t)),1),h(`div`,j,b(e.$rt(n)),1)]),f(y(a),{colors:i.map((t,n)=>({hex:y(S)[o][n],name:e.$rt(t)}))},null,8,[`colors`])],8,k)),[[r]])),128))]),_:1},8,[`title`])),[[r]]),s((m(),d(`div`,M,t[11]||=[h(`div`,{text:`60`,"i-solar:pallete-2-bold-duotone":``},null,-1)])),[[r]])],64)}}});typeof x==`function`&&x(N);var P=r(N,[[`__scopeId`,`data-v-659ad349`]]);export{P as default};
 
1
+ import{C as e,M as t,aJ as n,aN as r,ap as i,b as a,b$ as o,bA as s,bH as c,bK as l,bN as u,bQ as d,bR as f,bT as p,bX as m,c0 as h,c1 as g,c2 as _,c3 as v,c9 as y,cb as b}from"./index-BQADcPRe.js";import{b as x}from"./route-block-B2lA4iHQ.js";var S=[[],[`#A5978B`,`#D8CAAF`,`#B8B4A7`,`#C4BCB1`,`#E5DED8`,`#9A8F7D`,`#BEB5A7`,`#C9C0B6`],[`#7A9EAF`,`#B8C7CC`,`#D4B79C`,`#8B9D77`,`#C7D5CB`,`#E6D0B1`,`#94A7B1`,`#B4C8C3`],[`#D9B48F`,`#B5917A`,`#8C7A6B`,`#A17F5F`,`#B98C46`,`#C7A252`,`#DAB300`,`#D19826`],[`#9BA7B0`,`#C1CBD4`,`#A5ADB6`,`#8B959E`,`#D4DCE4`,`#7F8A94`,`#B3BCC6`,`#98A4AE`],[`#E4C6D0`,`#A61B29`,`#5D513C`,`#789262`,`#1C0D1A`,`#F7C242`,`#62A9DD`,`#8C4B3C`]];const C={flex:``,"items-center":``,"justify-between":``,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:300,delay:5*50,transition:`all ease-in-out duration-250`},w={"text-lg":``,"font-normal":``},T={relative:``,flex:``,"cursor-pointer":``,"items-center":``,"gap-2":``},E={class:`color-bar text-[10px] md:text-base sm:text-xs`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:320,delay:7*50,transition:`all ease-in-out duration-250`},D={"text-white":``,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:330,delay:8*50,transition:`all ease-in-out duration-250`},O={class:`color-bar transparency-grid text-[10px] md:text-base sm:text-xs`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:340,delay:9*50,transition:`all ease-in-out duration-250`},k=[`duration`,`delay`],A={"font-medium":``},j={text:`sm neutral-500`},M={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[65dvh]`,"right--15":``,"z--1":``,initial:{scale:.9,opacity:0,rotate:30},enter:{scale:1,opacity:1,rotate:0},duration:250,flex:``,"items-center":``,"justify-center":``};var N=d({__name:`color-scheme`,setup(r){let d=e(),{t:x}=t();return(e,t)=>{let r=o(`motion`);return h(),p(u,null,[l((h(),c(y(i),{"mb-2":``,title:y(x)(`settings.pages.themes.sections.section.custom-color.title`),icon:`i-solar:pallete-2-bold-duotone`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:290,delay:4*50,transition:`all ease-in-out duration-250`},{default:f(()=>[l((h(),p(`div`,C,[g(`span`,w,b(e.$t(`settings.pages.themes.sections.section.custom-color.fields.field.primary-color.label`)),1),g(`label`,T,[l(g(`input`,{"onUpdate:modelValue":t[0]||=e=>y(d).themeColorsHueDynamic=e,type:`checkbox`,class:`peer sr-only`},null,512),[[s,y(d).themeColorsHueDynamic]]),t[2]||=g(`div`,{class:`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 peer-checked:bg-primary-500 after:transition-all after:content-[''] peer-checked:after:translate-x-full peer-checked:after:border-white`},null,-1),v(` `+b(e.$t(`settings.pages.themes.sections.section.custom-color.fields.field.primary-color.rgb-on.title`)),1)])])),[[r]]),l(m(y(n),{modelValue:y(d).themeColorsHue,"onUpdate:modelValue":t[1]||=e=>y(d).themeColorsHue=e,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:310,delay:6*50,disabled:y(d).themeColorsHueDynamic},null,8,[`modelValue`,`disabled`]),[[r]]),l((h(),p(`div`,E,[t[4]||=g(`span`,{"bg-primary-50":``},`50`,-1),t[5]||=g(`span`,{"bg-primary-100":``},`100`,-1),t[6]||=g(`span`,{"bg-primary-200":``},`200`,-1),t[7]||=g(`span`,{"bg-primary-300":``},`300`,-1),t[8]||=g(`span`,{"bg-primary-400":``},`400`,-1),t[9]||=g(`span`,{"bg-primary-500":``},`500`,-1),l((h(),p(`div`,D,t[3]||=[g(`span`,{"bg-primary-600":``},`600`,-1),g(`span`,{"bg-primary-700":``},`700`,-1),g(`span`,{"bg-primary-800":``},`800`,-1),g(`span`,{"bg-primary-900":``},`900`,-1),g(`span`,{"bg-primary-950":``},`950`,-1)])),[[r]])])),[[r]]),l((h(),p(`div`,O,t[10]||=[g(`span`,{bg:`primary-500/5`},`500/5`,-1),g(`span`,{bg:`primary-500/10`},`500/10`,-1),g(`span`,{bg:`primary-500/20`},`500/20`,-1),g(`span`,{bg:`primary-500/30`},`500/30`,-1),g(`span`,{bg:`primary-500/40`},`500/40`,-1),g(`span`,{bg:`primary-500/50`},`500/50`,-1),g(`span`,{bg:`primary-500/60`},`500/60`,-1),g(`span`,{bg:`primary-500/70`},`500/70`,-1),g(`span`,{bg:`primary-500/80`},`500/80`,-1),g(`span`,{bg:`primary-500/90`},`500/90`,-1),g(`span`,{bg:`primary-500`},`500`,-1)])),[[r]])]),_:1},8,[`title`])),[[r]]),l((h(),c(y(i),{"mb-2":``,title:y(x)(`settings.pages.themes.sections.section.theme-presets.title`),icon:`i-solar:magic-stick-2-bold-duotone`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:350,delay:10*50,transition:`all ease-in-out duration-250`},{default:f(()=>[(h(!0),p(u,null,_(e.$tm(`settings.pages.themes.sections.section.theme-presets.presets`),({title:t,description:n,colors:i},o)=>l((h(),p(`div`,{key:o,class:`w-full flex flex-col items-start justify-between gap-2 rounded-lg px-4 py-3 outline-none transition-all duration-250 ease-in-out md:flex-row md:items-center md:gap-0`,bg:`neutral-100 dark:neutral-800`,hover:`bg-neutral-200 dark:bg-neutral-700`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:360+o*10,delay:11*50+o*50,transition:`all ease-in-out duration-250`},[g(`div`,null,[g(`span`,A,b(e.$rt(t)),1),g(`div`,j,b(e.$rt(n)),1)]),m(y(a),{colors:i.map((t,n)=>({hex:y(S)[o][n],name:e.$rt(t)}))},null,8,[`colors`])],8,k)),[[r]])),128))]),_:1},8,[`title`])),[[r]]),l((h(),p(`div`,M,t[11]||=[g(`div`,{text:`60`,"i-solar:pallete-2-bold-duotone":``},null,-1)])),[[r]])],64)}}});typeof x==`function`&&x(N);var P=r(N,[[`__scopeId`,`data-v-659ad349`]]);export{P as default};
assets/{consciousness-BEECB8V1.js → consciousness-CMK1QJ8r.js} RENAMED
@@ -1 +1 @@
1
- import{J as e,K as t,M as n,aV as r,aY as i,ah as ee,ak as te,al as ne,am as re,b$ as a,bD as ie,bG as o,bH as ae,bJ as s,bM as oe,bN as c,bO as l,bP as u,bT as d,bW as f,bX as p,bY as m,b_ as se,c1 as h,c4 as g,c9 as _,ca as v}from"./index-iU6Tacov.js";import{b as y}from"./route-block-B2lA4iHQ.js";const b={bg:`neutral-50 dark:[rgba(0,0,0,0.3)]`,"rounded-xl":``,"p-4":``,flex:`~ col gap-4`},x={flex:`~ col gap-4`},S={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-500`},C={text:`neutral-400 dark:neutral-400`},w={"max-w-full":``},T={key:0,flex:`~ row gap-4`,style:{"scrollbar-width":`none`},"min-w-0":``,"of-x-scroll":``,"scroll-smooth":``,role:`radiogroup`},E={key:1},D={key:0},O={flex:`~ col gap-4`},k={class:`text-lg md:text-2xl`},A={text:`neutral-400 dark:neutral-400`},j={key:0,class:`flex items-center justify-center py-4`},M={key:1},N={flex:`~ col gap-4`},P={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`},F={text:`neutral-400 dark:neutral-500`},ce={class:`flex items-center gap-3 border border-primary-200 rounded-lg bg-primary-50 p-4 dark:border-primary-800 dark:bg-primary-900/20`},I={class:`flex flex-col`},L={class:`font-medium`},R={class:`text-sm text-primary-600 dark:text-primary-400`},z={class:`mt-2`},B={class:`mb-1 block text-sm font-medium`},V=[`placeholder`],H={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-15rem)]`,"bottom-0":``,"right--5":``,"z--1":``,initial:{scale:.9,opacity:0,x:20},enter:{scale:1,opacity:1,x:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``};var U=oe({__name:`consciousness`,setup(oe){let y=t(),U=e(),{configuredChatProvidersMetadata:W}=i(y),{activeProvider:G,activeModel:K,customModelName:le,modelSearchQuery:q,supportsModelListing:J,providerModels:Y,isLoadingActiveProviderModels:X,activeProviderModelError:Z}=i(U),{t:Q}=n();ae(async()=>{await U.loadModelsForProvider(G.value)});function $(e){le.value=e}return(e,t)=>{let n=f(`motion`);return p(),u(s,null,[m(`div`,b,[m(`div`,null,[m(`div`,x,[m(`div`,null,[m(`h2`,S,v(_(Q)(`settings.pages.providers.title`)),1),m(`div`,C,[m(`span`,null,v(_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.description`)),1)])]),m(`div`,w,[_(W).length>0?(p(),u(`fieldset`,T,[(p(!0),u(s,null,se(_(W),e=>(p(),h(_(te),{id:e.id,key:e.id,modelValue:_(G),"onUpdate:modelValue":t[0]||=e=>g(G)?G.value=e:null,name:`provider`,value:e.id,title:e.localizedName||`Unknown`,description:e.localizedDescription},null,8,[`id`,`modelValue`,`value`,`title`,`description`]))),128))])):(p(),u(`div`,E,[d(_(r),{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:c(()=>t[4]||=[m(`div`,{"i-solar:warning-circle-line-duotone":``,class:`text-2xl text-amber-500 dark:text-amber-400`},null,-1),m(`div`,{class:`flex flex-col`},[m(`span`,{class:`font-medium`},`No Providers Configured`),m(`span`,{class:`text-sm text-neutral-400 dark:text-neutral-500`},`Click here to set up your LLM providers`)],-1),m(`div`,{"i-solar:arrow-right-line-duotone":``,class:`ml-auto text-xl text-neutral-400 dark:text-neutral-500`},null,-1)]),_:1,__:[4]})]))])])]),_(G)&&_(J)?(p(),u(`div`,D,[m(`div`,O,[m(`div`,null,[m(`h2`,k,v(_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.title`)),1),m(`div`,A,[m(`span`,null,v(_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.subtitle`)),1)])]),_(X)?(p(),u(`div`,j,[t[5]||=m(`div`,{class:`mr-2 animate-spin`},[m(`div`,{"i-solar:spinner-line-duotone":``,"text-xl":``})],-1),m(`span`,null,v(_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.loading`)),1)])):_(Z)?(p(),h(_(ee),{key:1,title:_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.error`),error:_(Z)},null,8,[`title`,`error`])):_(Y).length===0&&!_(X)?(p(),h(_(re),{key:2,type:`warning`},{title:c(()=>[a(v(_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_models`)),1)]),content:c(()=>[a(v(_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_models_description`)),1)]),_:1})):_(Y).length>0?(p(),h(_(ne),{key:3,modelValue:_(K),"onUpdate:modelValue":t[1]||=e=>g(K)?K.value=e:null,"search-query":_(q),"onUpdate:searchQuery":t[2]||=e=>g(q)?q.value=e:null,items:_(Y).sort((e,t)=>e.id===_(K)?-1:t.id===_(K)?1:0),searchable:!0,"search-placeholder":_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_placeholder`),"search-no-results-title":_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results`),"search-no-results-description":_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results_description`,{query:_(q)}),"search-results-text":_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_results`,{count:`{count}`,total:`{total}`}),"custom-input-placeholder":_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.custom_model_placeholder`),"expand-button-text":_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.expand`),"collapse-button-text":_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.collapse`),"onUpdate:customValue":$},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`])):l(``,!0)])])):_(G)&&!_(J)?(p(),u(`div`,M,[m(`div`,N,[m(`div`,null,[m(`h2`,P,v(_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.title`)),1),m(`div`,F,[m(`span`,null,v(_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.subtitle`)),1)])]),m(`div`,ce,[t[6]||=m(`div`,{"i-solar:info-circle-line-duotone":``,class:`text-2xl text-primary-500 dark:text-primary-400`},null,-1),m(`div`,I,[m(`span`,L,v(_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.not_supported`)),1),m(`span`,R,v(_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.not_supported_description`)),1)])]),m(`div`,z,[m(`label`,B,v(_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.manual_model_name`)),1),o(m(`input`,{"onUpdate:modelValue":t[3]||=e=>g(K)?K.value=e: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:_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.manual_model_placeholder`)},null,8,V),[[ie,_(K)]])])])])):l(``,!0)]),o((p(),u(`div`,H,t[7]||=[m(`div`,{text:`60`,"i-solar:ghost-bold-duotone":``},null,-1)])),[[n]])],64)}}});typeof y==`function`&&y(U);var W=U;export{W as default};
 
1
+ import{J as e,K as t,M as n,aV as ee,aY as r,ah as te,ak as ne,al as re,am as i,b$ as a,bD as ie,bH as o,bK as s,bL as ae,bN as c,bQ as oe,bR as l,bS as u,bT as d,bX as f,c0 as p,c1 as m,c2 as se,c3 as h,c4 as g,c9 as _,cb as v}from"./index-BQADcPRe.js";import{b as y}from"./route-block-B2lA4iHQ.js";const b={bg:`neutral-50 dark:[rgba(0,0,0,0.3)]`,"rounded-xl":``,"p-4":``,flex:`~ col gap-4`},x={flex:`~ col gap-4`},S={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-500`},C={text:`neutral-400 dark:neutral-400`},w={"max-w-full":``},T={key:0,flex:`~ row gap-4`,style:{"scrollbar-width":`none`},"min-w-0":``,"of-x-scroll":``,"scroll-smooth":``,role:`radiogroup`},E={key:1},D={key:0},O={flex:`~ col gap-4`},k={class:`text-lg md:text-2xl`},A={text:`neutral-400 dark:neutral-400`},j={key:0,class:`flex items-center justify-center py-4`},M={key:1},N={flex:`~ col gap-4`},P={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`},F={text:`neutral-400 dark:neutral-500`},ce={class:`flex items-center gap-3 border border-primary-200 rounded-lg bg-primary-50 p-4 dark:border-primary-800 dark:bg-primary-900/20`},I={class:`flex flex-col`},L={class:`font-medium`},R={class:`text-sm text-primary-600 dark:text-primary-400`},z={class:`mt-2`},B={class:`mb-1 block text-sm font-medium`},V=[`placeholder`],H={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-15rem)]`,"bottom-0":``,"right--5":``,"z--1":``,initial:{scale:.9,opacity:0,x:20},enter:{scale:1,opacity:1,x:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``};var U=oe({__name:`consciousness`,setup(oe){let y=t(),U=e(),{configuredChatProvidersMetadata:W}=r(y),{activeProvider:G,activeModel:K,customModelName:le,modelSearchQuery:q,supportsModelListing:J,providerModels:Y,isLoadingActiveProviderModels:X,activeProviderModelError:Z}=r(U),{t:Q}=n();ae(async()=>{await U.loadModelsForProvider(G.value)});function $(e){le.value=e}return(e,t)=>{let n=a(`motion`);return p(),d(c,null,[m(`div`,b,[m(`div`,null,[m(`div`,x,[m(`div`,null,[m(`h2`,S,v(_(Q)(`settings.pages.providers.title`)),1),m(`div`,C,[m(`span`,null,v(_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.description`)),1)])]),m(`div`,w,[_(W).length>0?(p(),d(`fieldset`,T,[(p(!0),d(c,null,se(_(W),e=>(p(),o(_(ne),{id:e.id,key:e.id,modelValue:_(G),"onUpdate:modelValue":t[0]||=e=>g(G)?G.value=e:null,name:`provider`,value:e.id,title:e.localizedName||`Unknown`,description:e.localizedDescription},null,8,[`id`,`modelValue`,`value`,`title`,`description`]))),128))])):(p(),d(`div`,E,[f(_(ee),{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(()=>t[4]||=[m(`div`,{"i-solar:warning-circle-line-duotone":``,class:`text-2xl text-amber-500 dark:text-amber-400`},null,-1),m(`div`,{class:`flex flex-col`},[m(`span`,{class:`font-medium`},`No Providers Configured`),m(`span`,{class:`text-sm text-neutral-400 dark:text-neutral-500`},`Click here to set up your LLM providers`)],-1),m(`div`,{"i-solar:arrow-right-line-duotone":``,class:`ml-auto text-xl text-neutral-400 dark:text-neutral-500`},null,-1)]),_:1,__:[4]})]))])])]),_(G)&&_(J)?(p(),d(`div`,D,[m(`div`,O,[m(`div`,null,[m(`h2`,k,v(_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.title`)),1),m(`div`,A,[m(`span`,null,v(_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.subtitle`)),1)])]),_(X)?(p(),d(`div`,j,[t[5]||=m(`div`,{class:`mr-2 animate-spin`},[m(`div`,{"i-solar:spinner-line-duotone":``,"text-xl":``})],-1),m(`span`,null,v(_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.loading`)),1)])):_(Z)?(p(),o(_(te),{key:1,title:_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.error`),error:_(Z)},null,8,[`title`,`error`])):_(Y).length===0&&!_(X)?(p(),o(_(i),{key:2,type:`warning`},{title:l(()=>[h(v(_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_models`)),1)]),content:l(()=>[h(v(_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_models_description`)),1)]),_:1})):_(Y).length>0?(p(),o(_(re),{key:3,modelValue:_(K),"onUpdate:modelValue":t[1]||=e=>g(K)?K.value=e:null,"search-query":_(q),"onUpdate:searchQuery":t[2]||=e=>g(q)?q.value=e:null,items:_(Y).sort((e,t)=>e.id===_(K)?-1:t.id===_(K)?1:0),searchable:!0,"search-placeholder":_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_placeholder`),"search-no-results-title":_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results`),"search-no-results-description":_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results_description`,{query:_(q)}),"search-results-text":_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_results`,{count:`{count}`,total:`{total}`}),"custom-input-placeholder":_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.custom_model_placeholder`),"expand-button-text":_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.expand`),"collapse-button-text":_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.collapse`),"onUpdate:customValue":$},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`])):u(``,!0)])])):_(G)&&!_(J)?(p(),d(`div`,M,[m(`div`,N,[m(`div`,null,[m(`h2`,P,v(_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.title`)),1),m(`div`,F,[m(`span`,null,v(_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.subtitle`)),1)])]),m(`div`,ce,[t[6]||=m(`div`,{"i-solar:info-circle-line-duotone":``,class:`text-2xl text-primary-500 dark:text-primary-400`},null,-1),m(`div`,I,[m(`span`,L,v(_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.not_supported`)),1),m(`span`,R,v(_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.not_supported_description`)),1)])]),m(`div`,z,[m(`label`,B,v(_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.manual_model_name`)),1),s(m(`input`,{"onUpdate:modelValue":t[3]||=e=>g(K)?K.value=e: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:_(Q)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.manual_model_placeholder`)},null,8,V),[[ie,_(K)]])])])])):u(``,!0)]),s((p(),d(`div`,H,t[7]||=[m(`div`,{text:`60`,"i-solar:ghost-bold-duotone":``},null,-1)])),[[n]])],64)}}});typeof y==`function`&&y(U);var W=U;export{W as default};
assets/{deepseek-DJPyPgA8.js → deepseek-Cr_Q8X8s.js} RENAMED
@@ -1 +1 @@
1
- import{K as e,M as t,aT as n,aY as r,bH as i,bK as a,bM as o,bN as s,bT as c,bV as l,bX as u,c1 as d,c9 as f,t as p,u as m,v as h,w as g,x as _,y as v}from"./index-iU6Tacov.js";import{b as y}from"./route-block-B2lA4iHQ.js";const b=`deepseek`;var x=o({__name:`deepseek`,setup(o){let{t:y}=t(),x=n(),S=e(),{providers:C}=r(S),w=a(()=>S.getProviderMetadata(b)),T=a({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=a({get:()=>C.value[b]?.baseUrl||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});i(()=>{S.initializeProvider(b),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||``}),l([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){C.value[b]={...w.value?.defaultOptions}}return(e,t)=>(u(),d(f(p),{"provider-name":w.value?.localizedName,"provider-icon-color":w.value?.iconColor,"on-back":()=>f(x).back()},{default:s(()=>[c(f(m),null,{default:s(()=>[c(f(h),{title:f(y)(`settings.pages.providers.common.section.basic.title`),description:f(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:s(()=>[c(f(_),{modelValue:T.value,"onUpdate:modelValue":t[0]||=e=>T.value=e,"provider-name":w.value?.localizedName,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),c(f(v),{title:f(y)(`settings.pages.providers.common.section.advanced.title`)},{default:s(()=>[c(f(g),{modelValue:E.value,"onUpdate:modelValue":t[1]||=e=>E.value=e,placeholder:`https://api.deepseek.com/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon-color`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default};
 
1
+ import{K as e,M as t,aT as n,aY as r,bH as i,bL as a,bO as o,bQ as s,bR as c,bX as l,bZ as u,c0 as d,c9 as f,t as p,u as m,v as h,w as g,x as _,y as v}from"./index-BQADcPRe.js";import{b as y}from"./route-block-B2lA4iHQ.js";const b=`deepseek`;var x=s({__name:`deepseek`,setup(s){let{t:y}=t(),x=n(),S=e(),{providers:C}=r(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>C.value[b]?.baseUrl||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});a(()=>{S.initializeProvider(b),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||``}),u([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){C.value[b]={...w.value?.defaultOptions}}return(e,t)=>(d(),i(f(p),{"provider-name":w.value?.localizedName,"provider-icon-color":w.value?.iconColor,"on-back":()=>f(x).back()},{default:c(()=>[l(f(m),null,{default:c(()=>[l(f(h),{title:f(y)(`settings.pages.providers.common.section.basic.title`),description:f(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:c(()=>[l(f(_),{modelValue:T.value,"onUpdate:modelValue":t[0]||=e=>T.value=e,"provider-name":w.value?.localizedName,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),l(f(v),{title:f(y)(`settings.pages.providers.common.section.advanced.title`)},{default:c(()=>[l(f(g),{modelValue:E.value,"onUpdate:modelValue":t[1]||=e=>E.value=e,placeholder:`https://api.deepseek.com/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon-color`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default};
assets/{default-CMko8ZDI.js → default-BlnbRLcd.js} RENAMED
@@ -1 +1 @@
1
- import{aW as e,bM as t,bP as n,bT as r,bX as i,bY as a,c9 as o}from"./index-iU6Tacov.js";import{b as s}from"./HeaderLink-OXwpcq2X.js";const c={style:{paddingBottom:`env(safe-area-inset-bottom, 0px)`,paddingTop:`env(safe-area-inset-top, 0px)`,paddingRight:`env(safe-area-inset-right, 0px)`,paddingLeft:`env(safe-area-inset-left, 0px)`},"h-full":``},l={class:`px-0 py-1 md:px-3 md:py-3`,"w-full":``,"gap-2":``,bg:`$bg-color`},u={class:`px-3 py-2 md:px-5 md:py-5`,flex:`~ col`,h:`[calc(100%-56px)]`};var d=t({__name:`default`,setup(t){return(t,d)=>(i(),n(`div`,c,[a(`div`,l,[r(s)]),a(`div`,u,[r(o(e))])]))}}),f=d;export{f as default};
 
1
+ import{aW as e,bQ as t,bT as n,bX as r,c0 as i,c1 as a,c9 as o}from"./index-BQADcPRe.js";import{b as s}from"./HeaderLink-DNs7ZhZu.js";const c={style:{paddingBottom:`env(safe-area-inset-bottom, 0px)`,paddingTop:`env(safe-area-inset-top, 0px)`,paddingRight:`env(safe-area-inset-right, 0px)`,paddingLeft:`env(safe-area-inset-left, 0px)`},"h-full":``},l={class:`px-0 py-1 md:px-3 md:py-3`,"w-full":``,"gap-2":``,bg:`$bg-color`},u={class:`px-3 py-2 md:px-5 md:py-5`,flex:`~ col`,h:`[calc(100%-56px)]`};var d=t({__name:`default`,setup(t){return(t,d)=>(i(),n(`div`,c,[a(`div`,l,[r(s)]),a(`div`,u,[r(o(e))])]))}}),f=d;export{f as default};
assets/{default-node-BbNY27oi.js → default-node-BQsjbmCI.js} RENAMED
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/__vite-browser-external-Cc9GS2DM.js","assets/index-iU6Tacov.js","assets/index-DfccYex2.css"])))=>i.map(i=>d[i]);
2
- import{aX as e,cf as t}from"./index-iU6Tacov.js";async function n(){let{createRequire:n}=await e(async()=>{let{createRequire:e}=await import(`./__vite-browser-external-Cc9GS2DM.js`).then(t(1));return{createRequire:e}},__vite__mapDeps([0,1,2])),{dirname:r,resolve:i}=await e(async()=>{let{dirname:e,resolve:n}=await import(`./__vite-browser-external-Cc9GS2DM.js`).then(t(1));return{dirname:e,resolve:n}},__vite__mapDeps([0,1,2])),a=n(import.meta.url),o=r(a.resolve(`@duckdb/duckdb-wasm`));return{mvp:{mainModule:i(o,`./duckdb-mvp.wasm`),mainWorker:i(o,`./duckdb-node-mvp.worker.cjs`)},eh:{mainModule:i(o,`./duckdb-eh.wasm`),mainWorker:i(o,`./duckdb-node-eh.worker.cjs`)}}}export{n as getBundles};
 
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/__vite-browser-external-B5qv5Q0c.js","assets/index-BQADcPRe.js","assets/index-BmTzj1z7.css"])))=>i.map(i=>d[i]);
2
+ import{aX as e,ce as t}from"./index-BQADcPRe.js";async function n(){let{createRequire:n}=await e(async()=>{let{createRequire:e}=await import(`./__vite-browser-external-B5qv5Q0c.js`).then(t(1));return{createRequire:e}},__vite__mapDeps([0,1,2])),{dirname:r,resolve:i}=await e(async()=>{let{dirname:e,resolve:n}=await import(`./__vite-browser-external-B5qv5Q0c.js`).then(t(1));return{dirname:e,resolve:n}},__vite__mapDeps([0,1,2])),a=n(import.meta.url),o=r(a.resolve(`@duckdb/duckdb-wasm`));return{mvp:{mainModule:i(o,`./duckdb-mvp.wasm`),mainWorker:i(o,`./duckdb-node-mvp.worker.cjs`)},eh:{mainModule:i(o,`./duckdb-eh.wasm`),mainWorker:i(o,`./duckdb-node-eh.worker.cjs`)}}}export{n as getBundles};
assets/{delays-C_xkXd4g.js → delays-CQlw2tUO.js} RENAMED
@@ -1 +1 @@
1
- import"./Basic-DgX4BCdt.js";import{b as e}from"./Textarea-CPzk6mC3.js";import{a1 as t,at as n,bJ as r,bM as i,bP as a,bT as o,bX as s,bY as c,b_ as l,c6 as u,c9 as d,ca as f}from"./index-iU6Tacov.js";const p={flex:``,"flex-col":``,"gap-2":``,"p-2":``},m={flex:``,"flex-row":``,"gap-2":``},h={"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-4":``},g={"w-full":``,flex:``,"flex-row":``,"gap-4":``},_={"w-full":``,"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-2":``},v={"w-full":``,"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-2":``};var y=i({__name:`delays`,setup(i){let y=u(``),b=u([]),x=u([]),S=u(!1),C=t();C.onHandlerEvent(`delay`,e=>{x.value.push(e)});function w(){S.value=!0;let e=y.value.split(``);for(let t of e)C.add(t);C.add(n),y.value=``,S.value=!1}return(t,n)=>(s(),a(`div`,p,[c(`div`,m,[o(d(e),{modelValue:y.value,"onUpdate:modelValue":n[0]||=e=>y.value=e,placeholder:`Message`,p:`2`,bg:`neutral-100 dark:neutral-700`,"w-full":``,"rounded-lg":``,"outline-none":``,onSubmit:w},null,8,[`modelValue`]),c(`button`,h,f(S.value?`Processing...`:`Send`),1)]),c(`div`,g,[c(`div`,_,[n[1]||=c(`h3`,{"font-normal":``},` Emotion Message `,-1),(s(!0),a(r,null,l(b.value,e=>(s(),a(`div`,{key:e},[c(`div`,null,f(e),1)]))),128))]),c(`div`,v,[n[2]||=c(`h3`,{"font-normal":``},` Delays `,-1),(s(!0),a(r,null,l(x.value,e=>(s(),a(`div`,{key:e},[c(`div`,null,f(e)+`s`,1)]))),128))])])]))}}),b=y;export{b as default};
 
1
+ import"./Basic-C8SEHpp9.js";import{b as e}from"./Textarea-DLvvQ13i.js";import{a2 as t,at as n,bN as r,bQ as i,bT as a,bX as o,c0 as s,c1 as c,c2 as l,c6 as u,c9 as d,cb as f}from"./index-BQADcPRe.js";const p={flex:``,"flex-col":``,"gap-2":``,"p-2":``},m={flex:``,"flex-row":``,"gap-2":``},h={"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-4":``},g={"w-full":``,flex:``,"flex-row":``,"gap-4":``},_={"w-full":``,"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-2":``},v={"w-full":``,"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-2":``};var y=i({__name:`delays`,setup(i){let y=u(``),b=u([]),x=u([]),S=u(!1),C=t();C.onHandlerEvent(`delay`,e=>{x.value.push(e)});function w(){S.value=!0;let e=y.value.split(``);for(let t of e)C.add(t);C.add(n),y.value=``,S.value=!1}return(t,n)=>(s(),a(`div`,p,[c(`div`,m,[o(d(e),{modelValue:y.value,"onUpdate:modelValue":n[0]||=e=>y.value=e,placeholder:`Message`,p:`2`,bg:`neutral-100 dark:neutral-700`,"w-full":``,"rounded-lg":``,"outline-none":``,onSubmit:w},null,8,[`modelValue`]),c(`button`,h,f(S.value?`Processing...`:`Send`),1)]),c(`div`,g,[c(`div`,_,[n[1]||=c(`h3`,{"font-normal":``},` Emotion Message `,-1),(s(!0),a(r,null,l(b.value,e=>(s(),a(`div`,{key:e},[c(`div`,null,f(e),1)]))),128))]),c(`div`,v,[n[2]||=c(`h3`,{"font-normal":``},` Delays `,-1),(s(!0),a(r,null,l(x.value,e=>(s(),a(`div`,{key:e},[c(`div`,null,f(e)+`s`,1)]))),128))])])]))}}),b=y;export{b as default};
assets/{developer-prGLTNOC.js → developer-BaQwfBCS.js} RENAMED
@@ -1 +1 @@
1
- import{C as e,b$ as t,bC as n,bG as r,bJ as i,bM as a,bN as o,bO as s,bP as c,bT as l,bU as u,bW as d,bX as f,bY as p,bz as m,c2 as h,c9 as g,ca as _,cb as v}from"./index-iU6Tacov.js";import{b as y}from"./route-block-B2lA4iHQ.js";const b={class:`w-full flex cursor-pointer items-center justify-between rounded-lg px-4 py-3 text-sm outline-none transition-all duration-250 ease-in-out`,bg:`neutral-50 dark:neutral-800`,hover:`bg-neutral-200 dark:bg-neutral-700`},x=[`aria-checked`],S={key:0,text:`sm neutral-500`};var C=a({__name:`CheckBar`,props:u({text:{},iconOn:{},iconOff:{},description:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let i=h(e,`modelValue`);return(e,a)=>(f(),c(`label`,b,[r(p(`input`,{"onUpdate:modelValue":a[0]||=e=>i.value=e,"aria-checked":i.value,type:`checkbox`,hidden:``},null,8,x),[[m,i.value]]),p(`div`,null,[t(_(e.$t(e.text))+` `,1),e.description?(f(),c(`div`,S,_(e.$t(e.description)),1)):s(``,!0)]),l(n,{name:`slide-away`,mode:`out-in`},{default:o(()=>[i.value?(f(),c(`div`,{key:0,class:v(e.iconOn),transition:`all ease-in-out duration-250`},null,2)):(f(),c(`div`,{key:1,class:v(e.iconOff),transition:`all ease-in-out duration-250`},null,2))]),_:1})]))}}),w=C;const T={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[65dvh]`,"right--15":``,"z--1":``,initial:{scale:.9,opacity:0,rotate:30},enter:{scale:1,opacity:1,rotate:0},duration:250,flex:``,"items-center":``,"justify-center":``};var E=a({__name:`developer`,setup(t){let n=e();return(e,t)=>{let a=d(`motion`);return f(),c(i,null,[r(l(w,{modelValue:g(n).disableTransitions,"onUpdate:modelValue":t[0]||=e=>g(n).disableTransitions=e,"mb-2":``,"icon-on":`i-solar:people-nearby-bold-duotone`,"icon-off":`i-solar:running-2-line-duotone`,text:`settings.animations.stage-transitions.title`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:440,delay:19*50,transition:`all ease-in-out duration-250`},null,8,[`modelValue`]),[[a]]),r(l(w,{modelValue:g(n).usePageSpecificTransitions,"onUpdate:modelValue":t[1]||=e=>g(n).usePageSpecificTransitions=e,disabled:g(n).disableTransitions,"icon-on":`i-solar:running-2-line-duotone`,"icon-off":`i-solar:people-nearby-bold-duotone`,text:`settings.animations.use-page-specific-transitions.title`,description:`settings.animations.use-page-specific-transitions.description`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:450,delay:20*50,transition:`all ease-in-out duration-250`},null,8,[`modelValue`,`disabled`]),[[a]]),r((f(),c(`div`,T,t[2]||=[p(`div`,{text:`60`,"i-solar:code-bold-duotone":``},null,-1)])),[[a]])],64)}}});typeof y==`function`&&y(E);var D=E;export{D as default};
 
1
+ import{C as e,b$ as t,bA as n,bE as r,bI as i,bK as a,bN as o,bQ as s,bR as c,bS as l,bT as u,bX as d,bY as f,c0 as p,c1 as m,c3 as h,c9 as g,cb as _,cc as v}from"./index-BQADcPRe.js";import{b as y}from"./route-block-B2lA4iHQ.js";const b={class:`w-full flex cursor-pointer items-center justify-between rounded-lg px-4 py-3 text-sm outline-none transition-all duration-250 ease-in-out`,bg:`neutral-50 dark:neutral-800`,hover:`bg-neutral-200 dark:bg-neutral-700`},x=[`aria-checked`],S={key:0,text:`sm neutral-500`};var C=s({__name:`CheckBar`,props:f({text:{},iconOn:{},iconOff:{},description:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=i(e,`modelValue`);return(e,i)=>(p(),u(`label`,b,[a(m(`input`,{"onUpdate:modelValue":i[0]||=e=>t.value=e,"aria-checked":t.value,type:`checkbox`,hidden:``},null,8,x),[[n,t.value]]),m(`div`,null,[h(_(e.$t(e.text))+` `,1),e.description?(p(),u(`div`,S,_(e.$t(e.description)),1)):l(``,!0)]),d(r,{name:`slide-away`,mode:`out-in`},{default:c(()=>[t.value?(p(),u(`div`,{key:0,class:v(e.iconOn),transition:`all ease-in-out duration-250`},null,2)):(p(),u(`div`,{key:1,class:v(e.iconOff),transition:`all ease-in-out duration-250`},null,2))]),_:1})]))}}),w=C;const T={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[65dvh]`,"right--15":``,"z--1":``,initial:{scale:.9,opacity:0,rotate:30},enter:{scale:1,opacity:1,rotate:0},duration:250,flex:``,"items-center":``,"justify-center":``};var E=s({__name:`developer`,setup(n){let r=e();return(e,n)=>{let i=t(`motion`);return p(),u(o,null,[a(d(w,{modelValue:g(r).disableTransitions,"onUpdate:modelValue":n[0]||=e=>g(r).disableTransitions=e,"mb-2":``,"icon-on":`i-solar:people-nearby-bold-duotone`,"icon-off":`i-solar:running-2-line-duotone`,text:`settings.animations.stage-transitions.title`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:440,delay:19*50,transition:`all ease-in-out duration-250`},null,8,[`modelValue`]),[[i]]),a(d(w,{modelValue:g(r).usePageSpecificTransitions,"onUpdate:modelValue":n[1]||=e=>g(r).usePageSpecificTransitions=e,disabled:g(r).disableTransitions,"icon-on":`i-solar:running-2-line-duotone`,"icon-off":`i-solar:people-nearby-bold-duotone`,text:`settings.animations.use-page-specific-transitions.title`,description:`settings.animations.use-page-specific-transitions.description`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:450,delay:20*50,transition:`all ease-in-out duration-250`},null,8,[`modelValue`,`disabled`]),[[i]]),a((p(),u(`div`,T,n[2]||=[m(`div`,{text:`60`,"i-solar:code-bold-duotone":``},null,-1)])),[[i]])],64)}}});typeof y==`function`&&y(E);var D=E;export{D as default};
assets/{effect-DBSVVF8G-DnERfKDb.js → effect-DBSVVF8G-BTfUHYsn.js} RENAMED
@@ -1 +1 @@
1
- import{P as e,aX as t}from"./index-iU6Tacov.js";const n=async()=>{let{JSONSchema:n}=await e(t(()=>import(`./__vite-optional-peer-dep_effect_xsschema-CXIfmAu1.js`),[]),`effect`);return e=>n.make(e)};export{n as getToJsonSchemaFn};
 
1
+ import{P as e,aX as t}from"./index-BQADcPRe.js";const n=async()=>{let{JSONSchema:n}=await e(t(()=>import(`./__vite-optional-peer-dep_effect_xsschema-CXIfmAu1.js`),[]),`effect`);return e=>n.make(e)};export{n as getToJsonSchemaFn};