Commit
·
30b4155
1
Parent(s):
a364bdf
release: build de29371d65b782fa355c0301604a581178829226
Browse files- assets/{BasicTextarea.vue_vue_type_script_setup_true_lang-BhLedwI4.js → BasicTextarea.vue_vue_type_script_setup_true_lang-C2lPN5Ug.js} +1 -1
- assets/{_...all_-aHi8_1ou.js → _...all_-BxvCiIg1.js} +1 -1
- assets/{audio-DwlrehEJ.js → audio-Db35C8VD.js} +1 -1
- assets/{default-ESwAkYv_.js → default-C8VODcX6.js} +1 -1
- assets/{delays-CtCoaidi.js → delays-Cj1u9Jed.js} +1 -1
- assets/{emotions-DRQZdRh9.js → emotions-Iim-5HUN.js} +1 -1
- assets/{filter-message-BUeQykfo.js → filter-message-CMjPOM9P.js} +1 -1
- assets/{image-DoDJoUPx.js → image-BWvsa7jS.js} +1 -1
- assets/{index-hbEOThyH.js → index--s9VDxXb.js} +1 -1
- assets/{index-DeIVU6Cb.css → index-BrU3DWsS.css} +1 -1
- assets/{index-CdIFIzs9.js → index-DCFi0ojV.js} +0 -0
- assets/{index-BF3kFlxf.js → index-rdhXzEZM.js} +0 -0
- assets/{messages-DRnXBu3p.js → messages-C6yPnwP5.js} +1 -1
- assets/{queue-C19rjZwy.js → queue-BkonhEtG.js} +1 -1
- assets/{queue-CBg-7ZZh.js → queue-wZoEttrs.js} +1 -1
- assets/{queues-B_oY9-A9.js → queues-CsBrNAvJ.js} +1 -1
- index.html +1 -1
assets/{BasicTextarea.vue_vue_type_script_setup_true_lang-BhLedwI4.js → BasicTextarea.vue_vue_type_script_setup_true_lang-C2lPN5Ug.js}
RENAMED
@@ -1,2 +1,2 @@
|
|
1 |
-
import{d as g,aV as m,aW as h,e as s,g as p,q as x,z as y,o as E,c as M,n as T,J as _}from"./index-
|
2 |
${a.value.substring(v)}`,l.value.height="0",_().then(()=>{t.value&&(t.value.selectionStart=t.value.selectionEnd=r+1,l.value.height=`${t.value.scrollHeight}px`)})}else e.code==="Enter"&&(e.preventDefault(),c("submit",a.value))}return p(()=>{t.value&&(l.value.height=`${t.value.scrollHeight}px`)}),(e,n)=>x((E(),M("textarea",{ref_key:"textareaRef",ref:t,"onUpdate:modelValue":n[0]||(n[0]=o=>a.value=o),style:T(l.value),onInput:f,onKeydown:d},null,36)),[[y,a.value]])}});export{V as _};
|
|
|
1 |
+
import{d as g,aV as m,aW as h,e as s,g as p,q as x,z as y,o as E,c as M,n as T,J as _}from"./index-rdhXzEZM.js";const V=g({__name:"BasicTextarea",props:{modelValue:{default:""},modelModifiers:{}},emits:m(["submit"],["update:modelValue"]),setup(u,{emit:i}){const c=i,a=h(u,"modelValue"),t=s(),l=s({height:"auto",overflowY:"hidden"});function f(e){e.target instanceof HTMLTextAreaElement&&(e.target.style.height="auto",e.target.style.height=`${e.target.scrollHeight}px`)}function d(e){var n,o;if(e.target instanceof HTMLTextAreaElement)if(e.code==="Enter"&&e.shiftKey){e.preventDefault();const r=(n=e.target)==null?void 0:n.selectionStart,v=(o=e.target)==null?void 0:o.selectionEnd;a.value=`${a.value.substring(0,r)}
|
2 |
${a.value.substring(v)}`,l.value.height="0",_().then(()=>{t.value&&(t.value.selectionStart=t.value.selectionEnd=r+1,l.value.height=`${t.value.scrollHeight}px`)})}else e.code==="Enter"&&(e.preventDefault(),c("submit",a.value))}return p(()=>{t.value&&(l.value.height=`${t.value.scrollHeight}px`)}),(e,n)=>x((E(),M("textarea",{ref_key:"textareaRef",ref:t,"onUpdate:modelValue":n[0]||(n[0]=o=>a.value=o),style:T(l.value),onInput:f,onKeydown:d},null,36)),[[y,a.value]])}});export{V as _};
|
assets/{_...all_-aHi8_1ou.js → _...all_-BxvCiIg1.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{_ as e}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o,c as _}from"./index-
|
|
|
1 |
+
import{_ as e}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o,c as _}from"./index-rdhXzEZM.js";const c={};function n(r,t){return o(),_("div",null," 404 - Page not found ")}const f=e(c,[["render",n]]);export{f as default};
|
assets/{audio-DwlrehEJ.js → audio-Db35C8VD.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{d as s,e as f,o as d,c as p,m as t}from"./index-
|
|
|
1 |
+
import{d as s,e as f,o as d,c as p,m as t}from"./index-rdhXzEZM.js";const R=s({__name:"audio",setup(m){const a=f(),l=f();function u(o){var r,c,i;if(!o)return;const n=(c=(r=l.value)==null?void 0:r.files)==null?void 0:c[0];if(!n)return;const e=document.createElement("audio");(i=a.value)==null||i.appendChild(e),e.src=URL.createObjectURL(n),e.controls=!0,e.load(),e.play()}return(o,n)=>(d(),p("div",null,[t("div",null,[t("div",{ref_key:"containerRef",ref:a},null,512),t("input",{ref_key:"fileInputRef",ref:l,type:"file",onChange:u},null,544)])]))}});export{R as default};
|
assets/{default-ESwAkYv_.js → default-C8VODcX6.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{u as p}from"./index
|
|
|
1 |
+
import{u as p}from"./index--s9VDxXb.js";import{d as s,c,a as d,n as i,u as e,r as m,o as u}from"./index-rdhXzEZM.js";const h=s({__name:"default",setup(f){const{top:t,right:o,bottom:a,left:n}=p();return(l,_)=>{const r=m("RouterView");return u(),c("main",{text:"gray-700 dark:gray-200","font-cuteen":"","h-full":"",style:i({paddingTop:`${e(t)}px`,paddingRight:`${e(o)}px`,paddingBottom:`${e(a)}px`,paddingLeft:`${e(n)}px`})},[d(r)],4)}}});export{h as default};
|
assets/{delays-CtCoaidi.js → delays-Cj1u9Jed.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{_ as g}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-
|
|
|
1 |
+
import{_ as g}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-C2lPN5Ug.js";import{i as _,l as k}from"./queues-CsBrNAvJ.js";import{d as y,e as d,o as s,c as l,m as e,a as b,y as i,F as f,C as p}from"./index-rdhXzEZM.js";import"./queue-wZoEttrs.js";const x={flex:"","flex-col":"","gap-2":"","p-2":""},z={flex:"","flex-row":"","gap-2":""},w={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},h={"w-full":"",flex:"","flex-row":"","gap-4":""},M={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},V={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},P=y({__name:"delays",setup(E){const t=d(""),m=d([]),c=d([]),r=d(!1),u=_();u.onHandlerEvent("delay",a=>{c.value.push(a)});function v(){r.value=!0;const a=t.value.split("");for(const n of a)u.add(n);u.add(k),t.value="",r.value=!1}return(a,n)=>(s(),l("div",x,[e("div",z,[b(g,{modelValue:t.value,"onUpdate:modelValue":n[0]||(n[0]=o=>t.value=o),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:v},null,8,["modelValue"]),e("button",w,i(r.value?"Processing...":"Send"),1)]),e("div",h,[e("div",M,[n[1]||(n[1]=e("h3",{"font-semibold":""}," Emotion Message ",-1)),(s(!0),l(f,null,p(m.value,o=>(s(),l("div",{key:o},[e("div",null,i(o),1)]))),128))]),e("div",V,[n[2]||(n[2]=e("h3",{"font-semibold":""}," Delays ",-1)),(s(!0),l(f,null,p(c.value,o=>(s(),l("div",{key:o},[e("div",null,i(o)+"s",1)]))),128))])])]))}});export{P as default};
|
assets/{emotions-DRQZdRh9.js → emotions-Iim-5HUN.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{_ as k}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-
|
|
|
1 |
+
import{_ as k}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-C2lPN5Ug.js";import{u as f}from"./queue-wZoEttrs.js";import{h,l as b}from"./queues-CsBrNAvJ.js";import{d as x,e as u,o as t,c as l,m as e,a as z,y as r,F as p,C as g}from"./index-rdhXzEZM.js";const w={flex:"","flex-col":"","gap-2":"","p-2":""},y={flex:"","flex-row":"","gap-2":""},M={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},V={"w-full":"",flex:"","flex-row":"","gap-4":""},E={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},Q={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},I=x({__name:"emotions",setup(S){const a=u(""),i=u([]),c=u([]),d=u(!1);f({handlers:[async s=>{i.value.push(s.data)}]});const v=f({handlers:[async s=>{c.value.push(s.data)}]}),m=h(v);function _(){d.value=!0;const s=a.value.split("");for(const o of s)m.add(o);m.add(b),a.value="",d.value=!1}return(s,o)=>(t(),l("div",w,[e("div",y,[z(k,{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=n=>a.value=n),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:_},null,8,["modelValue"]),e("button",M,r(d.value?"Processing...":"Send"),1)]),e("div",V,[e("div",E,[o[1]||(o[1]=e("h3",{"font-semibold":""}," Messages ",-1)),(t(!0),l(p,null,g(i.value,n=>(t(),l("div",{key:n},[e("div",null,r(n),1)]))),128))]),e("div",Q,[o[2]||(o[2]=e("h3",{"font-semibold":""}," Emotions ",-1)),(t(!0),l(p,null,g(c.value,n=>(t(),l("div",{key:n},[e("div",null,r(n),1)]))),128))])])]))}});export{I as default};
|
assets/{filter-message-BUeQykfo.js → filter-message-CMjPOM9P.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{_ as m}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-
|
|
|
1 |
+
import{_ as m}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-C2lPN5Ug.js";import{d as g,e as u,o as _,c as v,m as s,a as x,y as d}from"./index-rdhXzEZM.js";const b={flex:"","flex-col":"","gap-2":"","p-2":""},S={flex:"","flex-row":"","gap-2":""},k={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},w={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},B=g({__name:"filter-message",setup(z){const o=u(""),c=u(!1),i=u({content:""});async function f(r){return new Promise(e=>setTimeout(e,r))}async function p(){c.value=!0;const r=o.value.split("");let e;(a=>{a.Literal="literal",a.Special="special"})(e||(e={}));let l="literal",t="";for(const a of r){await f(50);let n=l;a==="<"?n="special":a===">"&&(n="literal"),l==="literal"&&n==="special"&&(i.value.content+=t,t=""),l==="special"&&n==="literal"&&(t=""),l==="literal"&&n==="literal"&&(i.value.content+=a,t=""),l=n}t&&(i.value.content+=t),o.value="",c.value=!1}return(r,e)=>{const l=m;return _(),v("div",b,[s("div",S,[x(l,{modelValue:o.value,"onUpdate:modelValue":e[0]||(e[0]=t=>o.value=t),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:p},null,8,["modelValue"]),s("button",k,d(c.value?"Processing...":"Send"),1)]),s("div",w,[e[1]||(e[1]=s("h3",{"font-semibold":""}," Streaming Message ",-1)),s("div",null,d(i.value.content),1)])])}}});export{B as default};
|
assets/{image-DoDJoUPx.js → image-BWvsa7jS.js}
RENAMED
@@ -1,2 +1,2 @@
|
|
1 |
-
import{k as _}from"./index
|
2 |
`,1),a("button",{bg:"primary-500",text:"white","mt-4":"","rounded-lg":"","px-4":"","py-2":"",onClick:e[0]||(e[0]=()=>v(m)())}," Copy Data URL ")])):w("",!0)]))}}),A=b(R,[["__scopeId","data-v-7edd53e6"]]);export{A as default};
|
|
|
1 |
+
import{k as _}from"./index--s9VDxXb.js";import{d as y,e as c,o as d,c as u,m as a,y as x,u as v,B as w}from"./index-rdhXzEZM.js";import{_ as b}from"./_plugin-vue_export-helper-DlAUqK2U.js";const h={bg:"neutral-100",flex:"~ col","items-center":"","justify-center":"","rounded-lg":"","px-4":"","py-3":""},C={key:0},U=["src"],k={bg:"neutral-100",class:"text-wrap-any","max-h":"100","overflow-scroll":"","rounded-lg":"","text-wrap":"","text-black":"","font-mono":""},R=y({__name:"image",setup(D){const p=c(),o=c(""),{copy:m}=_({source:o});async function g(s){return new Promise((e,n)=>{const t=new FileReader;t.onload=r=>{var l,i;e(((i=(l=r.target)==null?void 0:l.result)==null?void 0:i.toString())||"")},t.onerror=r=>{n(r)},t.readAsDataURL(s)})}async function f(s){var t;const n=(t=s.target.files)==null?void 0:t[0];if(n){p.value=n;const r=await g(n);o.value=r}}return(s,e)=>(d(),u("div",null,[a("label",h,[a("input",{type:"file",accept:"image/*",hidden:"",onChange:f},null,32),e[1]||(e[1]=a("span",null,"Upload Image",-1))]),o.value?(d(),u("div",C,[a("img",{src:o.value,alt:"Uploaded Image","w-100":""},null,8,U),a("pre",k," "+x(o.value)+`
|
2 |
`,1),a("button",{bg:"primary-500",text:"white","mt-4":"","rounded-lg":"","px-4":"","py-2":"",onClick:e[0]||(e[0]=()=>v(m)())}," Copy Data URL ")])):w("",!0)]))}}),A=b(R,[["__scopeId","data-v-7edd53e6"]]);export{A as default};
|
assets/{index-hbEOThyH.js → index--s9VDxXb.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{u as Te,g as me,J as pe,e as b,bE as Z,aB as _e,aC as Ce,bF as ee,bG as he,bH as Oe,x as xe,G as We,bI as Ae,w as k,f as x,bJ as se,a8 as Ve,$ as K,bK as De}from"./index-BF3kFlxf.js";function z(e){return _e()?(Ce(e),!0):!1}const Q=new WeakMap,Ne=(...e)=>{var t;const n=e[0],r=(t=ee())==null?void 0:t.proxy;if(r==null&&!he())throw new Error("injectLocal must be called in setup");return r&&Q.has(r)&&n in Q.get(r)?Q.get(r)[n]:Oe(...e)};function T(e){return typeof e=="function"?e():Te(e)}const Y=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Me=e=>e!=null,ke=Object.prototype.toString,Le=e=>ke.call(e)==="[object Object]",F=()=>{};function te(e,t){function n(...r){return new Promise((i,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(o)})}return n}const we=e=>e();function Re(e,t={}){let n,r,i=F;const o=s=>{clearTimeout(s),i(),i=F};return s=>{const c=T(e),u=T(t.maxWait);return n&&o(n),c<=0||u!==void 0&&u<=0?(r&&(o(r),r=null),Promise.resolve(s())):new Promise((d,f)=>{i=t.rejectOnCancel?f:d,u&&!r&&(r=setTimeout(()=>{n&&o(n),r=null,d(s())},u)),n=setTimeout(()=>{r&&o(r),r=null,d(s())},c)})}}function Fe(...e){let t=0,n,r=!0,i=F,o,a,s,c,u;!xe(e[0])&&typeof e[0]=="object"?{delay:a,trailing:s=!0,leading:c=!0,rejectOnCancel:u=!1}=e[0]:[a,s=!0,c=!0,u=!1]=e;const d=()=>{n&&(clearTimeout(n),n=void 0,i(),i=F)};return m=>{const l=T(a),v=Date.now()-t,w=()=>o=m();return d(),l<=0?(t=Date.now(),w()):(v>l&&(c||!r)?(t=Date.now(),w()):s&&(o=new Promise((g,E)=>{i=u?E:g,n=setTimeout(()=>{t=Date.now(),r=!0,g(w()),d()},Math.max(0,l-v))})),!c&&!n&&(n=setTimeout(()=>r=!0,l)),r=!1,o)}}function je(e=we){const t=b(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...o)=>{t.value&&e(...o)};return{isActive:Z(t),pause:n,resume:r,eventFilter:i}}function Pe(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const r=t;t=void 0,r&&await r},n}function Ie(e,t){var n;if(typeof e=="number")return e+t;const r=((n=e.match(/^-?\d+\.?\d*/))==null?void 0:n[0])||"",i=e.slice(r.length),o=Number.parseFloat(r)+t;return Number.isNaN(o)?e:o+i}function B(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function ze(e){return ee()}function He(...e){if(e.length!==1)return We(...e);const t=e[0];return typeof t=="function"?Z(Ae(()=>({get:t,set:F}))):b(t)}function ge(e,t=200,n={}){return te(Re(t,n),e)}function $e(e,t=200,n=!1,r=!0,i=!1){return te(Fe(t,n,r,i),e)}function Be(e,t,n={}){const{eventFilter:r=we,...i}=n;return k(e,te(r,t),i)}function Je(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:o,pause:a,resume:s,isActive:c}=je(r);return{stop:Be(e,t,{...i,eventFilter:o}),pause:a,resume:s,isActive:c}}function H(e,t=!0,n){ze()?me(e,n):t?e():pe(e)}function qe(e,t,n={}){const{immediate:r=!0}=n,i=b(!1);let o=null;function a(){o&&(clearTimeout(o),o=null)}function s(){i.value=!1,a()}function c(...u){a(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,e(...u)},T(t))}return r&&(i.value=!0,Y&&c()),z(s),{isPending:Z(i),start:c,stop:s}}const D=Y?window:void 0,ne=Y?window.navigator:void 0;function L(e){var t;const n=T(e);return(t=n==null?void 0:n.$el)!=null?t:n}function M(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=D):[t,n,r,i]=e,!t)return F;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(d=>d()),o.length=0},s=(d,f,m,l)=>(d.addEventListener(f,m,l),()=>d.removeEventListener(f,m,l)),c=k(()=>[L(t),T(i)],([d,f])=>{if(a(),!d)return;const m=Le(f)?{...f}:f;o.push(...n.flatMap(l=>r.map(v=>s(d,l,v,m))))},{immediate:!0,flush:"post"}),u=()=>{c(),a()};return z(u),u}function Ge(){const e=b(!1),t=ee();return t&&me(()=>{e.value=!0},t),e}function $(e){const t=Ge();return x(()=>(t.value,!!e()))}function ye(e,t,n={}){const{window:r=D,...i}=n;let o;const a=$(()=>r&&"MutationObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},c=x(()=>{const m=T(e),l=(Array.isArray(m)?m:[m]).map(L).filter(Me);return new Set(l)}),u=k(()=>c.value,m=>{s(),a.value&&m.size&&(o=new MutationObserver(t),m.forEach(l=>o.observe(l,i)))},{immediate:!0,flush:"post"}),d=()=>o==null?void 0:o.takeRecords(),f=()=>{u(),s()};return z(f),{isSupported:a,stop:f,takeRecords:d}}const Ue=Symbol("vueuse-ssr-width");function be(){const e=he()?Ne(Ue,null):null;return typeof e=="number"?e:void 0}function I(e,t={}){const{window:n=D,ssrWidth:r=be()}=t,i=$(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),o=b(typeof r=="number");let a;const s=b(!1),c=f=>{s.value=f.matches},u=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",c):a.removeListener(c))},d=Ve(()=>{if(o.value){o.value=!i.value;const f=T(e).split(",");s.value=f.some(m=>{const l=m.includes("not all"),v=m.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),w=m.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let g=!!(v||w);return v&&g&&(g=r>=B(v[1])),w&&g&&(g=r<=B(w[1])),l?!g:g});return}i.value&&(u(),a=n.matchMedia(T(e)),"addEventListener"in a?a.addEventListener("change",c):a.addListener(c),s.value=a.matches)});return z(()=>{d(),u(),a=void 0}),x(()=>s.value)}const ot={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function it(e,t={}){function n(l,v){let w=T(e[T(l)]);return v!=null&&(w=Ie(w,v)),typeof w=="number"&&(w=`${w}px`),w}const{window:r=D,strategy:i="min-width",ssrWidth:o=be()}=t,a=typeof o=="number",s=a?b(!1):{value:!0};a&&H(()=>s.value=!!r);function c(l,v){return!s.value&&a?l==="min"?o>=B(v):o<=B(v):r?r.matchMedia(`(${l}-width: ${v})`).matches:!1}const u=l=>I(()=>`(min-width: ${n(l)})`,t),d=l=>I(()=>`(max-width: ${n(l)})`,t),f=Object.keys(e).reduce((l,v)=>(Object.defineProperty(l,v,{get:()=>i==="min-width"?u(v):d(v),enumerable:!0,configurable:!0}),l),{});function m(){const l=Object.keys(e).map(v=>[v,f[v],B(n(v))]).sort((v,w)=>v[2]-w[2]);return x(()=>l.filter(([,v])=>v.value).map(([v])=>v))}return Object.assign(f,{greaterOrEqual:u,smallerOrEqual:d,greater(l){return I(()=>`(min-width: ${n(l,.1)})`,t)},smaller(l){return I(()=>`(max-width: ${n(l,-.1)})`,t)},between(l,v){return I(()=>`(min-width: ${n(l)}) and (max-width: ${n(v,-.1)})`,t)},isGreater(l){return c("min",n(l,.1))},isGreaterOrEqual(l){return c("min",n(l))},isSmaller(l){return c("max",n(l,-.1))},isSmallerOrEqual(l){return c("max",n(l))},isInBetween(l,v){return c("min",n(l))&&c("max",n(v,-.1))},current:m,active(){const l=m();return x(()=>l.value.length===0?"":l.value.at(i==="min-width"?-1:0))}})}function X(e,t={}){const{controls:n=!1,navigator:r=ne}=t,i=$(()=>r&&"permissions"in r),o=K(),a=typeof e=="string"?{name:e}:e,s=K(),c=()=>{var d,f;s.value=(f=(d=o.value)==null?void 0:d.state)!=null?f:"prompt"};M(o,"change",c);const u=Pe(async()=>{if(i.value){if(!o.value)try{o.value=await r.permissions.query(a)}catch{o.value=void 0}finally{c()}if(n)return De(o.value)}});return u(),n?{state:s,isSupported:i,query:u}:s}function at(e={}){const{navigator:t=ne,read:n=!1,source:r,copiedDuring:i=1500,legacy:o=!1}=e,a=$(()=>t&&"clipboard"in t),s=X("clipboard-read"),c=X("clipboard-write"),u=x(()=>a.value||o),d=b(""),f=b(!1),m=qe(()=>f.value=!1,i);function l(){a.value&&E(s.value)?t.clipboard.readText().then(p=>{d.value=p}):d.value=g()}u.value&&n&&M(["copy","cut"],l);async function v(p=T(r)){u.value&&p!=null&&(a.value&&E(c.value)?await t.clipboard.writeText(p):w(p),d.value=p,f.value=!0,m.start())}function w(p){const A=document.createElement("textarea");A.value=p??"",A.style.position="absolute",A.style.opacity="0",document.body.appendChild(A),A.select(),document.execCommand("copy"),A.remove()}function g(){var p,A,C;return(C=(A=(p=document==null?void 0:document.getSelection)==null?void 0:p.call(document))==null?void 0:A.toString())!=null?C:""}function E(p){return p==="granted"||p==="prompt"}return{isSupported:u,text:d,copied:f,copy:v}}const J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},q="__vueuse_ssr_handlers__",Ke=Ye();function Ye(){return q in J||(J[q]=J[q]||{}),J[q]}function Se(e,t){return Ke[e]||t}function Qe(e){return I("(prefers-color-scheme: dark)",e)}function Xe(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Ze={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},ue="vueuse-storage";function Ee(e,t,n,r={}){var i;const{flush:o="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:c=!0,mergeDefaults:u=!1,shallow:d,window:f=D,eventFilter:m,onError:l=h=>{console.error(h)},initOnMounted:v}=r,w=(d?K:b)(typeof t=="function"?t():t);if(!n)try{n=Se("getDefaultStorage",()=>{var h;return(h=D)==null?void 0:h.localStorage})()}catch(h){l(h)}if(!n)return w;const g=T(t),E=Xe(g),p=(i=r.serializer)!=null?i:Ze[E],{pause:A,resume:C}=Je(w,()=>j(w.value),{flush:o,deep:a,eventFilter:m});f&&s&&H(()=>{n instanceof Storage?M(f,"storage",V):M(f,ue,O),v&&V()}),v||V();function N(h,S){if(f){const _={key:e,oldValue:h,newValue:S,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",_):new CustomEvent(ue,{detail:_}))}}function j(h){try{const S=n.getItem(e);if(h==null)N(S,null),n.removeItem(e);else{const _=p.write(h);S!==_&&(n.setItem(e,_),N(S,_))}}catch(S){l(S)}}function y(h){const S=h?h.newValue:n.getItem(e);if(S==null)return c&&g!=null&&n.setItem(e,p.write(g)),g;if(!h&&u){const _=p.read(S);return typeof u=="function"?u(_,g):E==="object"&&!Array.isArray(_)?{...g,..._}:_}else return typeof S!="string"?S:p.read(S)}function V(h){if(!(h&&h.storageArea!==n)){if(h&&h.key==null){w.value=g;return}if(!(h&&h.key!==e)){A();try{(h==null?void 0:h.newValue)!==p.write(w.value)&&(w.value=y(h))}catch(S){l(S)}finally{h?pe(C):C()}}}}function O(h){V(h.detail)}return w}const et="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function tt(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:i=D,storage:o,storageKey:a="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:c,emitAuto:u,disableTransition:d=!0}=e,f={auto:"",light:"light",dark:"dark",...e.modes||{}},m=Qe({window:i}),l=x(()=>m.value?"dark":"light"),v=c||(a==null?He(r):Ee(a,r,o,{window:i,listenToStorageChanges:s})),w=x(()=>v.value==="auto"?l.value:v.value),g=Se("updateHTMLAttrs",(C,N,j)=>{const y=typeof C=="string"?i==null?void 0:i.document.querySelector(C):L(C);if(!y)return;const V=new Set,O=new Set;let h=null;if(N==="class"){const _=j.split(/\s/g);Object.values(f).flatMap(W=>(W||"").split(/\s/g)).filter(Boolean).forEach(W=>{_.includes(W)?V.add(W):O.add(W)})}else h={key:N,value:j};if(V.size===0&&O.size===0&&h===null)return;let S;d&&(S=i.document.createElement("style"),S.appendChild(document.createTextNode(et)),i.document.head.appendChild(S));for(const _ of V)y.classList.add(_);for(const _ of O)y.classList.remove(_);h&&y.setAttribute(h.key,h.value),d&&(i.getComputedStyle(S).opacity,document.head.removeChild(S))});function E(C){var N;g(t,n,(N=f[C])!=null?N:C)}function p(C){e.onChanged?e.onChanged(C,E):E(C)}k(w,p,{flush:"post",immediate:!0}),H(()=>p(w.value));const A=x({get(){return u?v.value:w.value},set(C){v.value=C}});return Object.assign(A,{store:v,system:l,state:w})}function G(e,t,n={}){const{window:r=D,initialValue:i,observe:o=!1}=n,a=b(i),s=x(()=>{var u;return L(t)||((u=r==null?void 0:r.document)==null?void 0:u.documentElement)});function c(){var u;const d=T(e),f=T(s);if(f&&r&&d){const m=(u=r.getComputedStyle(f).getPropertyValue(d))==null?void 0:u.trim();a.value=m||i}}return o&&ye(s,c,{attributeFilter:["style","class"],window:r}),k([s,()=>T(e)],(u,d)=>{d[0]&&d[1]&&d[0].style.removeProperty(d[1]),c()},{immediate:!0}),k(a,u=>{var d;const f=T(e);(d=s.value)!=null&&d.style&&f&&(u==null?s.value.style.removeProperty(f):s.value.style.setProperty(f,u))}),a}function st(e={}){const{valueDark:t="dark",valueLight:n=""}=e,r=tt({...e,onChanged:(a,s)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,a==="dark",s,a):s(a)},modes:{dark:t,light:n}}),i=x(()=>r.system.value);return x({get(){return r.value==="dark"},set(a){const s=a?"dark":"light";i.value===s?r.value="auto":r.value=s}})}function ut(e={}){const{navigator:t=ne,requestPermissions:n=!1,constraints:r={audio:!0,video:!0},onUpdated:i}=e,o=b([]),a=x(()=>o.value.filter(v=>v.kind==="videoinput")),s=x(()=>o.value.filter(v=>v.kind==="audioinput")),c=x(()=>o.value.filter(v=>v.kind==="audiooutput")),u=$(()=>t&&t.mediaDevices&&t.mediaDevices.enumerateDevices),d=b(!1);let f;async function m(){u.value&&(o.value=await t.mediaDevices.enumerateDevices(),i==null||i(o.value),f&&(f.getTracks().forEach(v=>v.stop()),f=null))}async function l(){if(!u.value)return!1;if(d.value)return!0;const{state:v,query:w}=X("camera",{controls:!0});if(await w(),v.value!=="granted"){let g=!0;try{f=await t.mediaDevices.getUserMedia(r)}catch{f=null,g=!1}m(),d.value=g}else d.value=!0;return d.value}return u.value&&(n&&l(),M(t.mediaDevices,"devicechange",m),m()),{devices:o,ensurePermissions:l,permissionGranted:d,videoInputs:a,audioInputs:s,audioOutputs:c,isSupported:u}}function nt(e,t,n={}){const{window:r=D,...i}=n;let o;const a=$(()=>r&&"ResizeObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},c=x(()=>{const f=T(e);return Array.isArray(f)?f.map(m=>L(m)):[L(f)]}),u=k(c,f=>{if(s(),a.value&&r){o=new ResizeObserver(t);for(const m of f)m&&o.observe(m,i)}},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return z(d),{isSupported:a,stop:d}}function lt(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:o=!0,updateTiming:a="sync"}=t,s=b(0),c=b(0),u=b(0),d=b(0),f=b(0),m=b(0),l=b(0),v=b(0);function w(){const E=L(e);if(!E){n&&(s.value=0,c.value=0,u.value=0,d.value=0,f.value=0,m.value=0,l.value=0,v.value=0);return}const p=E.getBoundingClientRect();s.value=p.height,c.value=p.bottom,u.value=p.left,d.value=p.right,f.value=p.top,m.value=p.width,l.value=p.x,v.value=p.y}function g(){a==="sync"?w():a==="next-frame"&&requestAnimationFrame(()=>w())}return nt(e,g),k(()=>L(e),E=>!E&&g()),ye(e,g,{attributeFilter:["style","class"]}),i&&M("scroll",g,{capture:!0,passive:!0}),r&&M("resize",g,{passive:!0}),H(()=>{o&&g()}),{height:s,bottom:c,left:u,right:d,top:f,width:m,x:l,y:v,update:g}}const le=1;function ct(e,t={}){const{throttle:n=0,idle:r=200,onStop:i=F,onScroll:o=F,offset:a={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:c="auto",window:u=D,onError:d=y=>{console.error(y)}}=t,f=b(0),m=b(0),l=x({get(){return f.value},set(y){w(y,void 0)}}),v=x({get(){return m.value},set(y){w(void 0,y)}});function w(y,V){var O,h,S,_;if(!u)return;const W=T(e);if(!W)return;(S=W instanceof Document?u.document.body:W)==null||S.scrollTo({top:(O=T(V))!=null?O:v.value,left:(h=T(y))!=null?h:l.value,behavior:T(c)});const R=((_=W==null?void 0:W.document)==null?void 0:_.documentElement)||(W==null?void 0:W.documentElement)||W;l!=null&&(f.value=R.scrollLeft),v!=null&&(m.value=R.scrollTop)}const g=b(!1),E=se({left:!0,right:!1,top:!0,bottom:!1}),p=se({left:!1,right:!1,top:!1,bottom:!1}),A=y=>{g.value&&(g.value=!1,p.left=!1,p.right=!1,p.top=!1,p.bottom=!1,i(y))},C=ge(A,n+r),N=y=>{var V;if(!u)return;const O=((V=y==null?void 0:y.document)==null?void 0:V.documentElement)||(y==null?void 0:y.documentElement)||L(y),{display:h,flexDirection:S,direction:_}=getComputedStyle(O),W=_==="rtl"?-1:1,R=O.scrollLeft;p.left=R<f.value,p.right=R>f.value;const re=R*W<=(a.left||0),oe=R*W+O.clientWidth>=O.scrollWidth-(a.right||0)-le;h==="flex"&&S==="row-reverse"?(E.left=oe,E.right=re):(E.left=re,E.right=oe),f.value=R;let P=O.scrollTop;y===u.document&&!P&&(P=u.document.body.scrollTop),p.top=P<m.value,p.bottom=P>m.value;const ie=P<=(a.top||0),ae=P+O.clientHeight>=O.scrollHeight-(a.bottom||0)-le;h==="flex"&&S==="column-reverse"?(E.top=ae,E.bottom=ie):(E.top=ie,E.bottom=ae),m.value=P},j=y=>{var V;if(!u)return;const O=(V=y.target.documentElement)!=null?V:y.target;N(O),g.value=!0,C(y),o(y)};return M(e,"scroll",n?$e(j,n,!0,!1):j,s),H(()=>{try{const y=T(e);if(!y)return;N(y)}catch(y){d(y)}}),M(e,"scrollend",A,s),{x:l,y:v,isScrolling:g,arrivedState:E,directions:p,measure(){const y=T(e);u&&y&&N(y)}}}function ft(e,t,n={}){const{window:r=D}=n;return Ee(e,t,r==null?void 0:r.localStorage,n)}const ce="--vueuse-safe-area-top",fe="--vueuse-safe-area-right",de="--vueuse-safe-area-bottom",ve="--vueuse-safe-area-left";function dt(){const e=b(""),t=b(""),n=b(""),r=b("");if(Y){const o=G(ce),a=G(fe),s=G(de),c=G(ve);o.value="env(safe-area-inset-top, 0px)",a.value="env(safe-area-inset-right, 0px)",s.value="env(safe-area-inset-bottom, 0px)",c.value="env(safe-area-inset-left, 0px)",i(),M("resize",ge(i))}function i(){e.value=U(ce),t.value=U(fe),n.value=U(de),r.value=U(ve)}return{top:e,right:t,bottom:n,left:r,update:i}}function U(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function vt(e,t,n){const{window:r=D}={},i=b(null),o=K(),a=(...c)=>{o.value&&o.value.postMessage(...c)},s=function(){o.value&&o.value.terminate()};return r&&(o.value=new Worker(e,t),o.value.onmessage=c=>{i.value=c.data},z(()=>{o.value&&o.value.terminate()})),{data:i,post:a,terminate:s,worker:o}}function mt(e={}){const{window:t=D,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:o=!0,type:a="inner"}=e,s=b(n),c=b(r),u=()=>{if(t)if(a==="outer")s.value=t.outerWidth,c.value=t.outerHeight;else if(a==="visual"&&t.visualViewport){const{width:d,height:f,scale:m}=t.visualViewport;s.value=Math.round(d*m),c.value=Math.round(f*m)}else o?(s.value=t.innerWidth,c.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight)};if(u(),H(u),M("resize",u,{passive:!0}),t&&a==="visual"&&t.visualViewport&&M(t.visualViewport,"resize",u,{passive:!0}),i){const d=I("(orientation: portrait)");k(d,()=>u())}return{width:s,height:c}}export{ft as a,ut as b,st as c,X as d,vt as e,lt as f,ct as g,it as h,ot as i,mt as j,at as k,H as t,dt as u};
|
|
|
1 |
+
import{u as Te,g as me,J as pe,e as b,bE as Z,aB as _e,aC as Ce,bF as ee,bG as he,bH as Oe,x as xe,G as We,bI as Ae,w as k,f as x,bJ as se,a8 as Ve,$ as K,bK as De}from"./index-rdhXzEZM.js";function z(e){return _e()?(Ce(e),!0):!1}const Q=new WeakMap,Ne=(...e)=>{var t;const n=e[0],r=(t=ee())==null?void 0:t.proxy;if(r==null&&!he())throw new Error("injectLocal must be called in setup");return r&&Q.has(r)&&n in Q.get(r)?Q.get(r)[n]:Oe(...e)};function T(e){return typeof e=="function"?e():Te(e)}const Y=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Me=e=>e!=null,ke=Object.prototype.toString,Le=e=>ke.call(e)==="[object Object]",F=()=>{};function te(e,t){function n(...r){return new Promise((i,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(o)})}return n}const we=e=>e();function Re(e,t={}){let n,r,i=F;const o=s=>{clearTimeout(s),i(),i=F};return s=>{const c=T(e),u=T(t.maxWait);return n&&o(n),c<=0||u!==void 0&&u<=0?(r&&(o(r),r=null),Promise.resolve(s())):new Promise((d,f)=>{i=t.rejectOnCancel?f:d,u&&!r&&(r=setTimeout(()=>{n&&o(n),r=null,d(s())},u)),n=setTimeout(()=>{r&&o(r),r=null,d(s())},c)})}}function Fe(...e){let t=0,n,r=!0,i=F,o,a,s,c,u;!xe(e[0])&&typeof e[0]=="object"?{delay:a,trailing:s=!0,leading:c=!0,rejectOnCancel:u=!1}=e[0]:[a,s=!0,c=!0,u=!1]=e;const d=()=>{n&&(clearTimeout(n),n=void 0,i(),i=F)};return m=>{const l=T(a),v=Date.now()-t,w=()=>o=m();return d(),l<=0?(t=Date.now(),w()):(v>l&&(c||!r)?(t=Date.now(),w()):s&&(o=new Promise((g,E)=>{i=u?E:g,n=setTimeout(()=>{t=Date.now(),r=!0,g(w()),d()},Math.max(0,l-v))})),!c&&!n&&(n=setTimeout(()=>r=!0,l)),r=!1,o)}}function je(e=we){const t=b(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...o)=>{t.value&&e(...o)};return{isActive:Z(t),pause:n,resume:r,eventFilter:i}}function Pe(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const r=t;t=void 0,r&&await r},n}function Ie(e,t){var n;if(typeof e=="number")return e+t;const r=((n=e.match(/^-?\d+\.?\d*/))==null?void 0:n[0])||"",i=e.slice(r.length),o=Number.parseFloat(r)+t;return Number.isNaN(o)?e:o+i}function B(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function ze(e){return ee()}function He(...e){if(e.length!==1)return We(...e);const t=e[0];return typeof t=="function"?Z(Ae(()=>({get:t,set:F}))):b(t)}function ge(e,t=200,n={}){return te(Re(t,n),e)}function $e(e,t=200,n=!1,r=!0,i=!1){return te(Fe(t,n,r,i),e)}function Be(e,t,n={}){const{eventFilter:r=we,...i}=n;return k(e,te(r,t),i)}function Je(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:o,pause:a,resume:s,isActive:c}=je(r);return{stop:Be(e,t,{...i,eventFilter:o}),pause:a,resume:s,isActive:c}}function H(e,t=!0,n){ze()?me(e,n):t?e():pe(e)}function qe(e,t,n={}){const{immediate:r=!0}=n,i=b(!1);let o=null;function a(){o&&(clearTimeout(o),o=null)}function s(){i.value=!1,a()}function c(...u){a(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,e(...u)},T(t))}return r&&(i.value=!0,Y&&c()),z(s),{isPending:Z(i),start:c,stop:s}}const D=Y?window:void 0,ne=Y?window.navigator:void 0;function L(e){var t;const n=T(e);return(t=n==null?void 0:n.$el)!=null?t:n}function M(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=D):[t,n,r,i]=e,!t)return F;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(d=>d()),o.length=0},s=(d,f,m,l)=>(d.addEventListener(f,m,l),()=>d.removeEventListener(f,m,l)),c=k(()=>[L(t),T(i)],([d,f])=>{if(a(),!d)return;const m=Le(f)?{...f}:f;o.push(...n.flatMap(l=>r.map(v=>s(d,l,v,m))))},{immediate:!0,flush:"post"}),u=()=>{c(),a()};return z(u),u}function Ge(){const e=b(!1),t=ee();return t&&me(()=>{e.value=!0},t),e}function $(e){const t=Ge();return x(()=>(t.value,!!e()))}function ye(e,t,n={}){const{window:r=D,...i}=n;let o;const a=$(()=>r&&"MutationObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},c=x(()=>{const m=T(e),l=(Array.isArray(m)?m:[m]).map(L).filter(Me);return new Set(l)}),u=k(()=>c.value,m=>{s(),a.value&&m.size&&(o=new MutationObserver(t),m.forEach(l=>o.observe(l,i)))},{immediate:!0,flush:"post"}),d=()=>o==null?void 0:o.takeRecords(),f=()=>{u(),s()};return z(f),{isSupported:a,stop:f,takeRecords:d}}const Ue=Symbol("vueuse-ssr-width");function be(){const e=he()?Ne(Ue,null):null;return typeof e=="number"?e:void 0}function I(e,t={}){const{window:n=D,ssrWidth:r=be()}=t,i=$(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),o=b(typeof r=="number");let a;const s=b(!1),c=f=>{s.value=f.matches},u=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",c):a.removeListener(c))},d=Ve(()=>{if(o.value){o.value=!i.value;const f=T(e).split(",");s.value=f.some(m=>{const l=m.includes("not all"),v=m.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),w=m.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let g=!!(v||w);return v&&g&&(g=r>=B(v[1])),w&&g&&(g=r<=B(w[1])),l?!g:g});return}i.value&&(u(),a=n.matchMedia(T(e)),"addEventListener"in a?a.addEventListener("change",c):a.addListener(c),s.value=a.matches)});return z(()=>{d(),u(),a=void 0}),x(()=>s.value)}const ot={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function it(e,t={}){function n(l,v){let w=T(e[T(l)]);return v!=null&&(w=Ie(w,v)),typeof w=="number"&&(w=`${w}px`),w}const{window:r=D,strategy:i="min-width",ssrWidth:o=be()}=t,a=typeof o=="number",s=a?b(!1):{value:!0};a&&H(()=>s.value=!!r);function c(l,v){return!s.value&&a?l==="min"?o>=B(v):o<=B(v):r?r.matchMedia(`(${l}-width: ${v})`).matches:!1}const u=l=>I(()=>`(min-width: ${n(l)})`,t),d=l=>I(()=>`(max-width: ${n(l)})`,t),f=Object.keys(e).reduce((l,v)=>(Object.defineProperty(l,v,{get:()=>i==="min-width"?u(v):d(v),enumerable:!0,configurable:!0}),l),{});function m(){const l=Object.keys(e).map(v=>[v,f[v],B(n(v))]).sort((v,w)=>v[2]-w[2]);return x(()=>l.filter(([,v])=>v.value).map(([v])=>v))}return Object.assign(f,{greaterOrEqual:u,smallerOrEqual:d,greater(l){return I(()=>`(min-width: ${n(l,.1)})`,t)},smaller(l){return I(()=>`(max-width: ${n(l,-.1)})`,t)},between(l,v){return I(()=>`(min-width: ${n(l)}) and (max-width: ${n(v,-.1)})`,t)},isGreater(l){return c("min",n(l,.1))},isGreaterOrEqual(l){return c("min",n(l))},isSmaller(l){return c("max",n(l,-.1))},isSmallerOrEqual(l){return c("max",n(l))},isInBetween(l,v){return c("min",n(l))&&c("max",n(v,-.1))},current:m,active(){const l=m();return x(()=>l.value.length===0?"":l.value.at(i==="min-width"?-1:0))}})}function X(e,t={}){const{controls:n=!1,navigator:r=ne}=t,i=$(()=>r&&"permissions"in r),o=K(),a=typeof e=="string"?{name:e}:e,s=K(),c=()=>{var d,f;s.value=(f=(d=o.value)==null?void 0:d.state)!=null?f:"prompt"};M(o,"change",c);const u=Pe(async()=>{if(i.value){if(!o.value)try{o.value=await r.permissions.query(a)}catch{o.value=void 0}finally{c()}if(n)return De(o.value)}});return u(),n?{state:s,isSupported:i,query:u}:s}function at(e={}){const{navigator:t=ne,read:n=!1,source:r,copiedDuring:i=1500,legacy:o=!1}=e,a=$(()=>t&&"clipboard"in t),s=X("clipboard-read"),c=X("clipboard-write"),u=x(()=>a.value||o),d=b(""),f=b(!1),m=qe(()=>f.value=!1,i);function l(){a.value&&E(s.value)?t.clipboard.readText().then(p=>{d.value=p}):d.value=g()}u.value&&n&&M(["copy","cut"],l);async function v(p=T(r)){u.value&&p!=null&&(a.value&&E(c.value)?await t.clipboard.writeText(p):w(p),d.value=p,f.value=!0,m.start())}function w(p){const A=document.createElement("textarea");A.value=p??"",A.style.position="absolute",A.style.opacity="0",document.body.appendChild(A),A.select(),document.execCommand("copy"),A.remove()}function g(){var p,A,C;return(C=(A=(p=document==null?void 0:document.getSelection)==null?void 0:p.call(document))==null?void 0:A.toString())!=null?C:""}function E(p){return p==="granted"||p==="prompt"}return{isSupported:u,text:d,copied:f,copy:v}}const J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},q="__vueuse_ssr_handlers__",Ke=Ye();function Ye(){return q in J||(J[q]=J[q]||{}),J[q]}function Se(e,t){return Ke[e]||t}function Qe(e){return I("(prefers-color-scheme: dark)",e)}function Xe(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Ze={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},ue="vueuse-storage";function Ee(e,t,n,r={}){var i;const{flush:o="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:c=!0,mergeDefaults:u=!1,shallow:d,window:f=D,eventFilter:m,onError:l=h=>{console.error(h)},initOnMounted:v}=r,w=(d?K:b)(typeof t=="function"?t():t);if(!n)try{n=Se("getDefaultStorage",()=>{var h;return(h=D)==null?void 0:h.localStorage})()}catch(h){l(h)}if(!n)return w;const g=T(t),E=Xe(g),p=(i=r.serializer)!=null?i:Ze[E],{pause:A,resume:C}=Je(w,()=>j(w.value),{flush:o,deep:a,eventFilter:m});f&&s&&H(()=>{n instanceof Storage?M(f,"storage",V):M(f,ue,O),v&&V()}),v||V();function N(h,S){if(f){const _={key:e,oldValue:h,newValue:S,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",_):new CustomEvent(ue,{detail:_}))}}function j(h){try{const S=n.getItem(e);if(h==null)N(S,null),n.removeItem(e);else{const _=p.write(h);S!==_&&(n.setItem(e,_),N(S,_))}}catch(S){l(S)}}function y(h){const S=h?h.newValue:n.getItem(e);if(S==null)return c&&g!=null&&n.setItem(e,p.write(g)),g;if(!h&&u){const _=p.read(S);return typeof u=="function"?u(_,g):E==="object"&&!Array.isArray(_)?{...g,..._}:_}else return typeof S!="string"?S:p.read(S)}function V(h){if(!(h&&h.storageArea!==n)){if(h&&h.key==null){w.value=g;return}if(!(h&&h.key!==e)){A();try{(h==null?void 0:h.newValue)!==p.write(w.value)&&(w.value=y(h))}catch(S){l(S)}finally{h?pe(C):C()}}}}function O(h){V(h.detail)}return w}const et="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function tt(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:i=D,storage:o,storageKey:a="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:c,emitAuto:u,disableTransition:d=!0}=e,f={auto:"",light:"light",dark:"dark",...e.modes||{}},m=Qe({window:i}),l=x(()=>m.value?"dark":"light"),v=c||(a==null?He(r):Ee(a,r,o,{window:i,listenToStorageChanges:s})),w=x(()=>v.value==="auto"?l.value:v.value),g=Se("updateHTMLAttrs",(C,N,j)=>{const y=typeof C=="string"?i==null?void 0:i.document.querySelector(C):L(C);if(!y)return;const V=new Set,O=new Set;let h=null;if(N==="class"){const _=j.split(/\s/g);Object.values(f).flatMap(W=>(W||"").split(/\s/g)).filter(Boolean).forEach(W=>{_.includes(W)?V.add(W):O.add(W)})}else h={key:N,value:j};if(V.size===0&&O.size===0&&h===null)return;let S;d&&(S=i.document.createElement("style"),S.appendChild(document.createTextNode(et)),i.document.head.appendChild(S));for(const _ of V)y.classList.add(_);for(const _ of O)y.classList.remove(_);h&&y.setAttribute(h.key,h.value),d&&(i.getComputedStyle(S).opacity,document.head.removeChild(S))});function E(C){var N;g(t,n,(N=f[C])!=null?N:C)}function p(C){e.onChanged?e.onChanged(C,E):E(C)}k(w,p,{flush:"post",immediate:!0}),H(()=>p(w.value));const A=x({get(){return u?v.value:w.value},set(C){v.value=C}});return Object.assign(A,{store:v,system:l,state:w})}function G(e,t,n={}){const{window:r=D,initialValue:i,observe:o=!1}=n,a=b(i),s=x(()=>{var u;return L(t)||((u=r==null?void 0:r.document)==null?void 0:u.documentElement)});function c(){var u;const d=T(e),f=T(s);if(f&&r&&d){const m=(u=r.getComputedStyle(f).getPropertyValue(d))==null?void 0:u.trim();a.value=m||i}}return o&&ye(s,c,{attributeFilter:["style","class"],window:r}),k([s,()=>T(e)],(u,d)=>{d[0]&&d[1]&&d[0].style.removeProperty(d[1]),c()},{immediate:!0}),k(a,u=>{var d;const f=T(e);(d=s.value)!=null&&d.style&&f&&(u==null?s.value.style.removeProperty(f):s.value.style.setProperty(f,u))}),a}function st(e={}){const{valueDark:t="dark",valueLight:n=""}=e,r=tt({...e,onChanged:(a,s)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,a==="dark",s,a):s(a)},modes:{dark:t,light:n}}),i=x(()=>r.system.value);return x({get(){return r.value==="dark"},set(a){const s=a?"dark":"light";i.value===s?r.value="auto":r.value=s}})}function ut(e={}){const{navigator:t=ne,requestPermissions:n=!1,constraints:r={audio:!0,video:!0},onUpdated:i}=e,o=b([]),a=x(()=>o.value.filter(v=>v.kind==="videoinput")),s=x(()=>o.value.filter(v=>v.kind==="audioinput")),c=x(()=>o.value.filter(v=>v.kind==="audiooutput")),u=$(()=>t&&t.mediaDevices&&t.mediaDevices.enumerateDevices),d=b(!1);let f;async function m(){u.value&&(o.value=await t.mediaDevices.enumerateDevices(),i==null||i(o.value),f&&(f.getTracks().forEach(v=>v.stop()),f=null))}async function l(){if(!u.value)return!1;if(d.value)return!0;const{state:v,query:w}=X("camera",{controls:!0});if(await w(),v.value!=="granted"){let g=!0;try{f=await t.mediaDevices.getUserMedia(r)}catch{f=null,g=!1}m(),d.value=g}else d.value=!0;return d.value}return u.value&&(n&&l(),M(t.mediaDevices,"devicechange",m),m()),{devices:o,ensurePermissions:l,permissionGranted:d,videoInputs:a,audioInputs:s,audioOutputs:c,isSupported:u}}function nt(e,t,n={}){const{window:r=D,...i}=n;let o;const a=$(()=>r&&"ResizeObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},c=x(()=>{const f=T(e);return Array.isArray(f)?f.map(m=>L(m)):[L(f)]}),u=k(c,f=>{if(s(),a.value&&r){o=new ResizeObserver(t);for(const m of f)m&&o.observe(m,i)}},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return z(d),{isSupported:a,stop:d}}function lt(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:o=!0,updateTiming:a="sync"}=t,s=b(0),c=b(0),u=b(0),d=b(0),f=b(0),m=b(0),l=b(0),v=b(0);function w(){const E=L(e);if(!E){n&&(s.value=0,c.value=0,u.value=0,d.value=0,f.value=0,m.value=0,l.value=0,v.value=0);return}const p=E.getBoundingClientRect();s.value=p.height,c.value=p.bottom,u.value=p.left,d.value=p.right,f.value=p.top,m.value=p.width,l.value=p.x,v.value=p.y}function g(){a==="sync"?w():a==="next-frame"&&requestAnimationFrame(()=>w())}return nt(e,g),k(()=>L(e),E=>!E&&g()),ye(e,g,{attributeFilter:["style","class"]}),i&&M("scroll",g,{capture:!0,passive:!0}),r&&M("resize",g,{passive:!0}),H(()=>{o&&g()}),{height:s,bottom:c,left:u,right:d,top:f,width:m,x:l,y:v,update:g}}const le=1;function ct(e,t={}){const{throttle:n=0,idle:r=200,onStop:i=F,onScroll:o=F,offset:a={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:c="auto",window:u=D,onError:d=y=>{console.error(y)}}=t,f=b(0),m=b(0),l=x({get(){return f.value},set(y){w(y,void 0)}}),v=x({get(){return m.value},set(y){w(void 0,y)}});function w(y,V){var O,h,S,_;if(!u)return;const W=T(e);if(!W)return;(S=W instanceof Document?u.document.body:W)==null||S.scrollTo({top:(O=T(V))!=null?O:v.value,left:(h=T(y))!=null?h:l.value,behavior:T(c)});const R=((_=W==null?void 0:W.document)==null?void 0:_.documentElement)||(W==null?void 0:W.documentElement)||W;l!=null&&(f.value=R.scrollLeft),v!=null&&(m.value=R.scrollTop)}const g=b(!1),E=se({left:!0,right:!1,top:!0,bottom:!1}),p=se({left:!1,right:!1,top:!1,bottom:!1}),A=y=>{g.value&&(g.value=!1,p.left=!1,p.right=!1,p.top=!1,p.bottom=!1,i(y))},C=ge(A,n+r),N=y=>{var V;if(!u)return;const O=((V=y==null?void 0:y.document)==null?void 0:V.documentElement)||(y==null?void 0:y.documentElement)||L(y),{display:h,flexDirection:S,direction:_}=getComputedStyle(O),W=_==="rtl"?-1:1,R=O.scrollLeft;p.left=R<f.value,p.right=R>f.value;const re=R*W<=(a.left||0),oe=R*W+O.clientWidth>=O.scrollWidth-(a.right||0)-le;h==="flex"&&S==="row-reverse"?(E.left=oe,E.right=re):(E.left=re,E.right=oe),f.value=R;let P=O.scrollTop;y===u.document&&!P&&(P=u.document.body.scrollTop),p.top=P<m.value,p.bottom=P>m.value;const ie=P<=(a.top||0),ae=P+O.clientHeight>=O.scrollHeight-(a.bottom||0)-le;h==="flex"&&S==="column-reverse"?(E.top=ae,E.bottom=ie):(E.top=ie,E.bottom=ae),m.value=P},j=y=>{var V;if(!u)return;const O=(V=y.target.documentElement)!=null?V:y.target;N(O),g.value=!0,C(y),o(y)};return M(e,"scroll",n?$e(j,n,!0,!1):j,s),H(()=>{try{const y=T(e);if(!y)return;N(y)}catch(y){d(y)}}),M(e,"scrollend",A,s),{x:l,y:v,isScrolling:g,arrivedState:E,directions:p,measure(){const y=T(e);u&&y&&N(y)}}}function ft(e,t,n={}){const{window:r=D}=n;return Ee(e,t,r==null?void 0:r.localStorage,n)}const ce="--vueuse-safe-area-top",fe="--vueuse-safe-area-right",de="--vueuse-safe-area-bottom",ve="--vueuse-safe-area-left";function dt(){const e=b(""),t=b(""),n=b(""),r=b("");if(Y){const o=G(ce),a=G(fe),s=G(de),c=G(ve);o.value="env(safe-area-inset-top, 0px)",a.value="env(safe-area-inset-right, 0px)",s.value="env(safe-area-inset-bottom, 0px)",c.value="env(safe-area-inset-left, 0px)",i(),M("resize",ge(i))}function i(){e.value=U(ce),t.value=U(fe),n.value=U(de),r.value=U(ve)}return{top:e,right:t,bottom:n,left:r,update:i}}function U(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function vt(e,t,n){const{window:r=D}={},i=b(null),o=K(),a=(...c)=>{o.value&&o.value.postMessage(...c)},s=function(){o.value&&o.value.terminate()};return r&&(o.value=new Worker(e,t),o.value.onmessage=c=>{i.value=c.data},z(()=>{o.value&&o.value.terminate()})),{data:i,post:a,terminate:s,worker:o}}function mt(e={}){const{window:t=D,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:o=!0,type:a="inner"}=e,s=b(n),c=b(r),u=()=>{if(t)if(a==="outer")s.value=t.outerWidth,c.value=t.outerHeight;else if(a==="visual"&&t.visualViewport){const{width:d,height:f,scale:m}=t.visualViewport;s.value=Math.round(d*m),c.value=Math.round(f*m)}else o?(s.value=t.innerWidth,c.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight)};if(u(),H(u),M("resize",u,{passive:!0}),t&&a==="visual"&&t.visualViewport&&M(t.visualViewport,"resize",u,{passive:!0}),i){const d=I("(orientation: portrait)");k(d,()=>u())}return{width:s,height:c}}export{ft as a,ut as b,st as c,X as d,vt as e,lt as f,ct as g,it as h,ot as i,mt as j,at as k,H as t,dt as u};
|
assets/{index-DeIVU6Cb.css → index-BrU3DWsS.css}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
.slide-away-enter-active[data-v-8d6cb079],.slide-away-leave-active[data-v-8d6cb079]{transition:transform .3s ease-in-out,opacity .3s ease-in-out}.slide-away-enter[data-v-8d6cb079],.slide-away-leave-to[data-v-8d6cb079]{transform:translateY(-10px);opacity:0}.slide-away-enter-from[data-v-8d6cb079],.slide-away-leave[data-v-8d6cb079]{transform:translateY(10px);opacity:0}.animate-stripe[data-v-
|
|
|
1 |
+
.slide-away-enter-active[data-v-8d6cb079],.slide-away-leave-active[data-v-8d6cb079]{transition:transform .3s ease-in-out,opacity .3s ease-in-out}.slide-away-enter[data-v-8d6cb079],.slide-away-leave-to[data-v-8d6cb079]{transform:translateY(-10px);opacity:0}.slide-away-enter-from[data-v-8d6cb079],.slide-away-leave[data-v-8d6cb079]{transform:translateY(10px);opacity:0}.animate-stripe[data-v-578987e1]{background-image:repeating-linear-gradient(-45deg,#a16207,#a16207 25px,#eab308 25px,#eab308 50px);background-size:175% 100%}.animate-stripe[data-v-578987e1]:hover{animation:progress-578987e1 2s linear infinite}@-webkit-keyframes progress-578987e1{0%{background-position:0 0}to{background-position:-75px 0px}}@-moz-keyframes progress-578987e1{0%{background-position:0 0}to{background-position:-75px 0px}}@-ms-keyframes progress-578987e1{0%{background-position:0 0}to{background-position:-75px 0px}}@keyframes progress-578987e1{0%{background-position:0 0}to{background-position:-70px 0px}}.animate-stripe[data-v-3bff6a79]{background-image:repeating-linear-gradient(-45deg,#f472b6,#f472b6 25px,#f9a8d4 25px,#f9a8d4 50px);animation:progress-3bff6a79 2s linear infinite;background-size:150% 100%}@-webkit-keyframes progress-3bff6a79{0%{background-position:0 0}to{background-position:-75px 0px}}@-moz-keyframes progress-3bff6a79{0%{background-position:0 0}to{background-position:-75px 0px}}@-ms-keyframes progress-3bff6a79{0%{background-position:0 0}to{background-position:-75px 0px}}@keyframes progress-3bff6a79{0%{background-position:0 0}to{background-position:-70px 0px}}
|
assets/{index-CdIFIzs9.js → index-DCFi0ojV.js}
RENAMED
The diff for this file is too large to render.
See raw diff
|
|
assets/{index-BF3kFlxf.js → index-rdhXzEZM.js}
RENAMED
The diff for this file is too large to render.
See raw diff
|
|
assets/{messages-DRnXBu3p.js → messages-C6yPnwP5.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{_ as p}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-
|
|
|
1 |
+
import{_ as p}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-C2lPN5Ug.js";import{u as g}from"./queue-wZoEttrs.js";import{u as _,l as v}from"./queues-CsBrNAvJ.js";import{d as x,e as t,o as l,c as u,m as e,a as k,y as c,F as b,C as h}from"./index-rdhXzEZM.js";const z={flex:"","flex-col":"","gap-2":"","p-2":""},w={flex:"","flex-row":"","gap-2":""},y={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},S={"w-full":"",flex:"","flex-row":"","gap-4":""},V={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},E=x({__name:"messages",setup(C){const s=t(""),d=t([]),a=t(!1),f=g({handlers:[async i=>{d.value.push(i.data)}]}),r=_(f);async function m(){a.value=!0,r.add(s.value),r.add(v),s.value="",a.value=!1}return(i,n)=>(l(),u("div",z,[e("div",w,[k(p,{modelValue:s.value,"onUpdate:modelValue":n[0]||(n[0]=o=>s.value=o),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:m},null,8,["modelValue"]),e("button",y,c(a.value?"Processing...":"Send"),1)]),e("div",S,[e("div",V,[n[1]||(n[1]=e("h3",{"font-semibold":""}," TTS Message ",-1)),(l(!0),u(b,null,h(d.value,o=>(l(),u("div",{key:o},[e("div",null,c(o),1)]))),128))])])]))}});export{E as default};
|
assets/{queue-C19rjZwy.js → queue-BkonhEtG.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{u as o}from"./queue-
|
|
|
1 |
+
import{u as o}from"./queue-wZoEttrs.js";import{d as v,e as h,g,o as k,c as w,m as I}from"./index-rdhXzEZM.js";const Q=v({__name:"queue",setup(P){function i(e){return new Promise(a=>setTimeout(a,e))}const n=h(""),d=o({handlers:[async e=>{console.log("ready to play speech audio for",e)}]}),u=o({handlers:[async e=>{console.log("ready to stream speech audio for",e),d.add(e.data)}]}),c=o({handlers:[async e=>{const a=[".","?","!"];let s=!1;for(const t of a){if(!e.data.includes(t))continue;const r=e.data.indexOf(t),p=e.data.slice(0,r+1),y=e.data.slice(r+1);n.value+=p,u.add(n.value.trim()),n.value=y,s=!0}s||(n.value+=e.data)}]}),l=["Hello"," N","eko","! I"," am"," an"," AI"," assistant"," trained"," to"," help"," with"," a"," variety"," of"," tasks"," such"," as"," answering"," questions",","," providing"," information",","," giving"," recommendations",","," and"," more",". How"," can"," I"," assist"," you"," today","?","Hello"," N","eko",","," I"," am"," an"," AI"," assistant","."," I"," can"," help"," answer"," questions",","," provide"," information",","," assist"," with"," tasks",","," and"," engage"," in"," conversation","."," How"," can"," I"," assist"," you"," today","?"];async function f(){for(const e of l)await i(100),c.add(e)}async function m(){f()}return g(()=>{m()}),(e,a)=>(k(),w("div",null,a[0]||(a[0]=[I("div",null,null,-1)])))}});export{Q as default};
|
assets/{queue-CBg-7ZZh.js → queue-wZoEttrs.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{e as l}from"./index-
|
|
|
1 |
+
import{e as l}from"./index-rdhXzEZM.js";function m(f){const t=l([]),a=l(!1),d={add:[],pick:[],processing:[],error:[],processed:[],done:[]},s={};function c(n,e){d[n].push(e)}function r(n,...e){d[n].forEach(i=>{i(...e)})}function h(n,e){s[n]=s[n]||[],s[n].push(e)}function p(n,...e){(s[n]||[]).forEach(i=>{i(...e)})}async function v(n){t.value.push(n),r("add",n)}function E(){const n=t.value.shift();if(n)return r("pick",n),n}async function u(){if(a.value)return;const n=E();if(n){a.value=!0;for(const e of f.handlers){r("processing",n,e);try{const o=await e({data:n,itemsToBeProcessed:()=>t.value.length,emit:p});r("processed",n,o,e)}catch(o){r("error",n,o,e);continue}}a.value=!1,r("done",n),t.value.length>0&&u()}}return c("add",u),c("done",u),{add:v,on:c,onHandlerEvent:h,queue:t}}export{m as u};
|
assets/{queues-B_oY9-A9.js → queues-CsBrNAvJ.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{u as i}from"./queue-
|
|
|
1 |
+
import{u as i}from"./queue-wZoEttrs.js";import{e as d}from"./index-rdhXzEZM.js";var E=(n=>(n.Happy="<|EMOTE_HAPPY|>",n.Sad="<|EMOTE_SAD|>",n.Angry="<|EMOTE_ANGRY|>",n.Think="<|EMOTE_THINK|>",n.Surprise="<|EMOTE_SURPRISE|>",n.Awkward="<|EMOTE_AWKWARD|>",n.Question="<|EMOTE_QUESTION|>",n))(E||{});const r=Object.values(E),l="EmotionHappy",c="EmotionSad",m="EmotionAngry",M="EmotionAwkward",T="EmotionThink",f="EmotionSurprise",O="EmotionQuestion",p={"<|EMOTE_HAPPY|>":l,"<|EMOTE_SAD|>":c,"<|EMOTE_ANGRY|>":m,"<|EMOTE_THINK|>":T,"<|EMOTE_SURPRISE|>":f,"<|EMOTE_AWKWARD|>":M,"<|EMOTE_QUESTION|>":O},y={"<|EMOTE_HAPPY|>":"happy","<|EMOTE_SAD|>":"sad","<|EMOTE_ANGRY|>":"angry","<|EMOTE_THINK|>":void 0,"<|EMOTE_SURPRISE|>":"surprised","<|EMOTE_AWKWARD|>":void 0,"<|EMOTE_QUESTION|>":void 0},_="<|llm_inference_end|>";function S(n){function t(e){for(const a of r)if(e.includes(a))return{ok:!0,emotion:a};return{ok:!1,emotion:""}}return i({handlers:[async e=>{if(r.includes(e.data)){e.emit("emotion",e.data),await n.add(e.data);return}{const{ok:a,emotion:o}=t(e.data);a&&(e.emit("emotion",o),await n.add(o))}}]})}function k(){function n(e){if(!/<\|DELAY:\d+\|>/i.test(e))return{ok:!1,delay:0};const a=/<\|DELAY:(\d+)\|>/i.exec(e),o=a==null?void 0:a[1];if(!o)return{ok:!1,delay:0};const s=Number.parseFloat(o);return s<=0||Number.isNaN(s)?{ok:!0,delay:0}:{ok:!0,delay:s}}function t(e){return new Promise(a=>setTimeout(a,e))}return i({handlers:[async e=>{const{ok:a,delay:o}=n(e.data);a&&(e.emit("delay",o),await t(o*1e3))}]})}function v(n){const t=d("");return i({handlers:[async e=>{if(e.data===_){const o=t.value.trim();o&&await n.add(o),t.value="";return}const a=/[.?!]/;for(t.value+=e.data;t.value;){const o=a.exec(t.value);if(!o||typeof o.index>"u")break;const s=t.value.slice(0,o.index+1),u=t.value.slice(o.index+1);await n.add(s),t.value=u}}]})}export{r as E,f as a,c as b,m as c,l as d,M as e,O as f,T as g,S as h,k as i,y as j,p as k,_ as l,v as u};
|
index.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
})()
|
19 |
</script>
|
20 |
<script src="/assets/js/CubismSdkForWeb-5-r.1/Core/live2dcubismcore.min.js"></script>
|
21 |
-
<script type="module" crossorigin src="/assets/index-
|
22 |
<link rel="stylesheet" crossorigin href="/assets/index-B9kJgqOf.css">
|
23 |
</head>
|
24 |
<body class="font-sans">
|
|
|
18 |
})()
|
19 |
</script>
|
20 |
<script src="/assets/js/CubismSdkForWeb-5-r.1/Core/live2dcubismcore.min.js"></script>
|
21 |
+
<script type="module" crossorigin src="/assets/index-rdhXzEZM.js"></script>
|
22 |
<link rel="stylesheet" crossorigin href="/assets/index-B9kJgqOf.css">
|
23 |
</head>
|
24 |
<body class="font-sans">
|