",1);function Z5(a,t){zi(t,!0);var i=X5(),n=ht(i),s=k(n,!0);w(n);var r=q(n,2),o=k(r,!0);w(r),ie(()=>{W(s,Yv.status),W(o,Yv.error?.message)}),J(a,i),Ei()}const eS=Object.freeze(Object.defineProperty({__proto__:null,component:Z5},Symbol.toStringTag,{value:"Module"}));F6();const Pl={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};const hm=(...a)=>a.filter((t,i,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===i).join(" ").trim();function _m(a){return a!=null}function tS(a,t={}){const i=t.attributeNames??{},n=m=>i[m]??m,s=a.size??a.width??Pl.width,r=a.size??a.height??Pl.height,o=a.aliases?.filter(m=>typeof m=="string"&&m.trim()!=="").map(m=>`lucide-${m}`)??[],l=[...a.name?[`lucide-${a.name}`]:[],...o],c=t.className?.split(" ").filter(Boolean)??[],d=t.includeDefaultClasses===!1?hm(...c):hm("lucide",...l,...c),g=t.absoluteStrokeWidth?Number(t.strokeWidth??Pl["stroke-width"])*Number(a.size??a.width??Pl.width)/Number(t.size??t.width??Pl.width):t.strokeWidth??Pl["stroke-width"];return["svg",{...Object.entries(Pl).reduce((m,[p,u])=>(m[n(p)]=u,m),{}),..."color"in t&&t.color&&{[n("stroke")]:t.color},..."size"in t&&_m(t.size)&&{[n("width")]:t.size,[n("height")]:t.size},..."width"in t&&_m(t.width)&&{[n("width")]:t.width},..."height"in t&&_m(t.height)&&{[n("height")]:t.height},[n("stroke-width")]:g,...d&&{[n("class")]:d},[n("viewBox")]:`0 0 ${s} ${r}`,...t.hasA11yProp===!1?{[n("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},a.node.map(m=>{const[p,u,f]=m,_=t.nonScalingStroke?{[n("vector-effect")]:"non-scaling-stroke",...u}:u;return f?[p,_,f]:[p,_]})]}const aS=a=>{for(const t in a)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const iS=Symbol("lucide-context"),nS=()=>M6(iS);var sS=new Set(["$$slots","$$events","$$legacy","color","size","width","height","strokeWidth","absoluteStrokeWidth","nonScalingStroke","iconNode","icon","class","children"]),rS=po("");function Ha(a,t){zi(t,!0);const i=nS()??{},n=xe(t,"color",19,()=>i.color??"currentColor"),s=xe(t,"size",19,()=>i.size??24),r=xe(t,"width",19,s),o=xe(t,"height",19,s),l=xe(t,"strokeWidth",19,()=>i.strokeWidth??2),c=xe(t,"absoluteStrokeWidth",19,()=>i.absoluteStrokeWidth??!1),d=xe(t,"nonScalingStroke",19,()=>i.nonScalingStroke??!1),g=xe(t,"iconNode",19,()=>[]),h=xe(t,"icon",19,()=>({node:g(),aliases:[],size:24})),m=Na(t,sS),p=La(()=>!!t.children||aS(m)),u=La(()=>tS(h(),{color:n(),width:r(),height:o(),strokeWidth:l(),absoluteStrokeWidth:c(),nonScalingStroke:d(),className:hm("lucide-icon",i.class),hasA11yProp:e(p),attributes:m})),f=La(()=>ed(e(u),3)),_=La(()=>e(f)[1]),b=La(()=>e6(e(f)[2],()=>[],!0)),v=La(()=>({...e(_),class:[...e(_).class.split(" "),t.class]}));var T=rS();mv(T,()=>({...e(v)}));var S=k(T);Ct(S,17,()=>e(b),Kt,(P,B)=>{var C=La(()=>ed(e(B),2));let j=()=>e(C)[0],G=()=>e(C)[1];var A=ys(),N=ht(A);C4(N,j,!0,(H,E)=>{mv(H,()=>({...G()}))}),J(P,A)});var M=q(S);ov(M,()=>t.children??No),w(T),J(a,T),Ei()}var oS=new Set(["$$slots","$$events","$$legacy"]);function Jv(a,t){let i=Na(t,oS);const n={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14"}],["path",{d:"m19 12-7 7-7-7"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var lS=new Set(["$$slots","$$events","$$legacy"]);function Xv(a,t){let i=Na(t,lS);const n={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7"}],["path",{d:"M12 19V5"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var cS=new Set(["$$slots","$$events","$$legacy"]);function sf(a,t){let i=Na(t,cS);const n={name:"audio-lines",size:24,node:[["path",{d:"M2 10v3"}],["path",{d:"M6 6v11"}],["path",{d:"M10 3v18"}],["path",{d:"M14 8v7"}],["path",{d:"M18 5v13"}],["path",{d:"M22 10v3"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var dS=new Set(["$$slots","$$events","$$legacy"]);function vm(a,t){let i=Na(t,dS);const n={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var uS=new Set(["$$slots","$$events","$$legacy"]);function bm(a,t){let i=Na(t,uS);const n={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var fS=new Set(["$$slots","$$events","$$legacy"]);function rf(a,t){let i=Na(t,fS);const n={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var pS=new Set(["$$slots","$$events","$$legacy"]);function of(a,t){let i=Na(t,pS);const n={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var mS=new Set(["$$slots","$$events","$$legacy"]);function Zv(a,t){let i=Na(t,mS);const n={name:"code",size:24,node:[["path",{d:"m16 18 6-6-6-6"}],["path",{d:"m8 6-6 6 6 6"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var gS=new Set(["$$slots","$$events","$$legacy"]);function hS(a,t){let i=Na(t,gS);const n={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var _S=new Set(["$$slots","$$events","$$legacy"]);function Cd(a,t){let i=Na(t,_S);const n={name:"download",size:24,node:[["path",{d:"M12 15V3"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}],["path",{d:"m7 10 5 5 5-5"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var vS=new Set(["$$slots","$$events","$$legacy"]);function bS(a,t){let i=Na(t,vS);const n={name:"file-headphone",size:24,node:[["path",{d:"M4 6.835V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-.343"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M2 19a2 2 0 0 1 4 0v1a2 2 0 0 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 0 1-4 0v-1a2 2 0 0 1 4 0"}]],aliases:["file-audio","file-audio-2"]};Ha(a,Va(()=>i,{get icon(){return n}}))}var yS=new Set(["$$slots","$$events","$$legacy"]);function Ko(a,t){let i=Na(t,yS);const n={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10 9H8"}],["path",{d:"M16 13H8"}],["path",{d:"M16 17H8"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var wS=new Set(["$$slots","$$events","$$legacy"]);function zc(a,t){let i=Na(t,wS);const n={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var kS=new Set(["$$slots","$$events","$$legacy"]);function eb(a,t){let i=Na(t,kS);const n={name:"languages",size:24,node:[["path",{d:"m5 8 6 6"}],["path",{d:"m4 14 6-6 2-3"}],["path",{d:"M2 5h12"}],["path",{d:"M7 2h1"}],["path",{d:"m22 22-5-10-5 10"}],["path",{d:"M14 18h6"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var xS=new Set(["$$slots","$$events","$$legacy"]);function SS(a,t){let i=Na(t,xS);const n={name:"layers",size:24,node:[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"}]],aliases:["layers-3"]};Ha(a,Va(()=>i,{get icon(){return n}}))}var TS=new Set(["$$slots","$$events","$$legacy"]);function $S(a,t){let i=Na(t,TS);const n={name:"list-filter",size:24,node:[["path",{d:"M2 5h20"}],["path",{d:"M6 12h12"}],["path",{d:"M9 19h6"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var qS=new Set(["$$slots","$$events","$$legacy"]);function CS(a,t){let i=Na(t,qS);const n={name:"list",size:24,node:[["path",{d:"M3 5h.01"}],["path",{d:"M3 12h.01"}],["path",{d:"M3 19h.01"}],["path",{d:"M8 5h13"}],["path",{d:"M8 12h13"}],["path",{d:"M8 19h13"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var AS=new Set(["$$slots","$$events","$$legacy"]);function GS(a,t){let i=Na(t,AS);const n={name:"merge",size:24,node:[["path",{d:"m8 6 4-4 4 4"}],["path",{d:"M12 2v10.3a4 4 0 0 1-1.172 2.872L4 22"}],["path",{d:"m20 22-5-5"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var FS=new Set(["$$slots","$$events","$$legacy"]);function Ad(a,t){let i=Na(t,FS);const n={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var MS=new Set(["$$slots","$$events","$$legacy"]);function ym(a,t){let i=Na(t,MS);const n={name:"mic",size:24,node:[["path",{d:"M12 19v3"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var zS=new Set(["$$slots","$$events","$$legacy"]);function ES(a,t){let i=Na(t,zS);const n={name:"minus",size:24,node:[["path",{d:"M5 12h14"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var US=new Set(["$$slots","$$events","$$legacy"]);function tb(a,t){let i=Na(t,US);const n={name:"pencil",size:24,node:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}],["path",{d:"m15 5 4 4"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var RS=new Set(["$$slots","$$events","$$legacy"]);function Ec(a,t){let i=Na(t,RS);const n={name:"play",size:24,node:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var BS=new Set(["$$slots","$$events","$$legacy"]);function Ir(a,t){let i=Na(t,BS);const n={name:"plus",size:24,node:[["path",{d:"M5 12h14"}],["path",{d:"M12 5v14"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var PS=new Set(["$$slots","$$events","$$legacy"]);function jS(a,t){let i=Na(t,PS);const n={name:"redo-2",size:24,node:[["path",{d:"m15 14 5-5-5-5"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var NS=new Set(["$$slots","$$events","$$legacy"]);function OS(a,t){let i=Na(t,NS);const n={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}],["path",{d:"M21 3v5h-5"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}],["path",{d:"M8 16H3v5"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var IS=new Set(["$$slots","$$events","$$legacy"]);function DS(a,t){let i=Na(t,IS);const n={name:"rotate-ccw-clock",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}],["path",{d:"M3 3v5h5"}],["path",{d:"M12 7v5l4 2"}]],aliases:["history"]};Ha(a,Va(()=>i,{get icon(){return n}}))}var LS=new Set(["$$slots","$$events","$$legacy"]);function ab(a,t){let i=Na(t,LS);const n={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}],["path",{d:"M3 3v5h5"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var VS=new Set(["$$slots","$$events","$$legacy"]);function HS(a,t){let i=Na(t,VS);const n={name:"save",size:24,node:[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var WS=new Set(["$$slots","$$events","$$legacy"]);function ib(a,t){let i=Na(t,WS);const n={name:"scissors",size:24,node:[["circle",{cx:"6",cy:"6",r:"3"}],["path",{d:"M8.12 8.12 12 12"}],["path",{d:"M20 4 8.12 15.88"}],["circle",{cx:"6",cy:"18",r:"3"}],["path",{d:"M14.8 14.8 20 20"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var QS=new Set(["$$slots","$$events","$$legacy"]);function nb(a,t){let i=Na(t,QS);const n={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34"}],["circle",{cx:"11",cy:"11",r:"8"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var KS=new Set(["$$slots","$$events","$$legacy"]);function sb(a,t){let i=Na(t,KS);const n={name:"sliders-horizontal",size:24,node:[["path",{d:"M10 5H3"}],["path",{d:"M12 19H3"}],["path",{d:"M14 3v4"}],["path",{d:"M16 17v4"}],["path",{d:"M21 12h-9"}],["path",{d:"M21 19h-5"}],["path",{d:"M21 5h-7"}],["path",{d:"M8 10v4"}],["path",{d:"M8 12H3"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var YS=new Set(["$$slots","$$events","$$legacy"]);function Uc(a,t){let i=Na(t,YS);const n={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var JS=new Set(["$$slots","$$events","$$legacy"]);function ho(a,t){let i=Na(t,JS);const n={name:"trash",size:24,node:[["path",{d:"M10 11v6"}],["path",{d:"M14 11v6"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}],["path",{d:"M3 6h18"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}]],aliases:["trash-2"]};Ha(a,Va(()=>i,{get icon(){return n}}))}var XS=new Set(["$$slots","$$events","$$legacy"]);function ZS(a,t){let i=Na(t,XS);const n={name:"undo-2",size:24,node:[["path",{d:"M9 14 4 9l5-5"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var eT=new Set(["$$slots","$$events","$$legacy"]);function wm(a,t){let i=Na(t,eT);const n={name:"upload",size:24,node:[["path",{d:"M12 3v12"}],["path",{d:"m17 8-5-5-5 5"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var tT=new Set(["$$slots","$$events","$$legacy"]);function Gd(a,t){let i=Na(t,tT);const n={name:"user-round",size:24,node:[["circle",{cx:"12",cy:"8",r:"5"}],["path",{d:"M20 21a8 8 0 0 0-16 0"}]],aliases:["user-2"]};Ha(a,Va(()=>i,{get icon(){return n}}))}var aT=new Set(["$$slots","$$events","$$legacy"]);function lf(a,t){let i=Na(t,aT);const n={name:"user",size:24,node:[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}],["circle",{cx:"12",cy:"7",r:"4"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var iT=new Set(["$$slots","$$events","$$legacy"]);function jl(a,t){let i=Na(t,iT);const n={name:"users",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}],["circle",{cx:"9",cy:"7",r:"4"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var nT=new Set(["$$slots","$$events","$$legacy"]);function sT(a,t){let i=Na(t,nT);const n={name:"video",size:24,node:[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var rT=new Set(["$$slots","$$events","$$legacy"]);function rb(a,t){let i=Na(t,rT);const n={name:"x",size:24,node:[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var oT=new Set(["$$slots","$$events","$$legacy"]);function lT(a,t){let i=Na(t,oT);const n={name:"zoom-in",size:24,node:[["circle",{cx:"11",cy:"11",r:"8"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}var cT=new Set(["$$slots","$$events","$$legacy"]);function dT(a,t){let i=Na(t,cT);const n={name:"zoom-out",size:24,node:[["circle",{cx:"11",cy:"11",r:"8"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11"}]]};Ha(a,Va(()=>i,{get icon(){return n}}))}function cf(a,t,i){for(let n=0;n
",1);function Z5(a,t){Fi(t,!0);var i=X5(),n=ht(i),s=k(n,!0);w(n);var r=q(n,2),o=k(r,!0);w(r),ie(()=>{W(s,Yv.status),W(o,Yv.error?.message)}),J(a,i),Mi()}const eS=Object.freeze(Object.defineProperty({__proto__:null,component:Z5},Symbol.toStringTag,{value:"Module"}));F6();const zl={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};const hm=(...a)=>a.filter((t,i,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===i).join(" ").trim();function _m(a){return a!=null}function tS(a,t={}){const i=t.attributeNames??{},n=m=>i[m]??m,s=a.size??a.width??zl.width,r=a.size??a.height??zl.height,o=a.aliases?.filter(m=>typeof m=="string"&&m.trim()!=="").map(m=>`lucide-${m}`)??[],l=[...a.name?[`lucide-${a.name}`]:[],...o],c=t.className?.split(" ").filter(Boolean)??[],d=t.includeDefaultClasses===!1?hm(...c):hm("lucide",...l,...c),g=t.absoluteStrokeWidth?Number(t.strokeWidth??zl["stroke-width"])*Number(a.size??a.width??zl.width)/Number(t.size??t.width??zl.width):t.strokeWidth??zl["stroke-width"];return["svg",{...Object.entries(zl).reduce((m,[p,u])=>(m[n(p)]=u,m),{}),..."color"in t&&t.color&&{[n("stroke")]:t.color},..."size"in t&&_m(t.size)&&{[n("width")]:t.size,[n("height")]:t.size},..."width"in t&&_m(t.width)&&{[n("width")]:t.width},..."height"in t&&_m(t.height)&&{[n("height")]:t.height},[n("stroke-width")]:g,...d&&{[n("class")]:d},[n("viewBox")]:`0 0 ${s} ${r}`,...t.hasA11yProp===!1?{[n("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},a.node.map(m=>{const[p,u,f]=m,_=t.nonScalingStroke?{[n("vector-effect")]:"non-scaling-stroke",...u}:u;return f?[p,_,f]:[p,_]})]}const aS=a=>{for(const t in a)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const iS=Symbol("lucide-context"),nS=()=>M6(iS);var sS=new Set(["$$slots","$$events","$$legacy","color","size","width","height","strokeWidth","absoluteStrokeWidth","nonScalingStroke","iconNode","icon","class","children"]),rS=po("");function Wa(a,t){Fi(t,!0);const i=nS()??{},n=Se(t,"color",19,()=>i.color??"currentColor"),s=Se(t,"size",19,()=>i.size??24),r=Se(t,"width",19,s),o=Se(t,"height",19,s),l=Se(t,"strokeWidth",19,()=>i.strokeWidth??2),c=Se(t,"absoluteStrokeWidth",19,()=>i.absoluteStrokeWidth??!1),d=Se(t,"nonScalingStroke",19,()=>i.nonScalingStroke??!1),g=Se(t,"iconNode",19,()=>[]),h=Se(t,"icon",19,()=>({node:g(),aliases:[],size:24})),m=Pa(t,sS),p=Va(()=>!!t.children||aS(m)),u=Va(()=>tS(h(),{color:n(),width:r(),height:o(),strokeWidth:l(),absoluteStrokeWidth:c(),nonScalingStroke:d(),className:hm("lucide-icon",i.class),hasA11yProp:e(p),attributes:m})),f=Va(()=>Zc(e(u),3)),_=Va(()=>e(f)[1]),v=Va(()=>e6(e(f)[2],()=>[],!0)),b=Va(()=>({...e(_),class:[...e(_).class.split(" "),t.class]}));var S=rS();mv(S,()=>({...e(b)}));var $=k(S);Ct($,17,()=>e(v),Qt,(N,P)=>{var C=Va(()=>Zc(e(P),2));let j=()=>e(C)[0],G=()=>e(C)[1];var A=ys(),B=ht(A);C4(B,j,!0,(H,U)=>{mv(H,()=>({...G()}))}),J(N,A)});var M=q($);ov(M,()=>t.children??Mo),w(S),J(a,S),Mi()}var oS=new Set(["$$slots","$$events","$$legacy"]);function Jv(a,t){let i=Pa(t,oS);const n={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14"}],["path",{d:"m19 12-7 7-7-7"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var lS=new Set(["$$slots","$$events","$$legacy"]);function Xv(a,t){let i=Pa(t,lS);const n={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7"}],["path",{d:"M12 19V5"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var cS=new Set(["$$slots","$$events","$$legacy"]);function sf(a,t){let i=Pa(t,cS);const n={name:"audio-lines",size:24,node:[["path",{d:"M2 10v3"}],["path",{d:"M6 6v11"}],["path",{d:"M10 3v18"}],["path",{d:"M14 8v7"}],["path",{d:"M18 5v13"}],["path",{d:"M22 10v3"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var dS=new Set(["$$slots","$$events","$$legacy"]);function vm(a,t){let i=Pa(t,dS);const n={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var uS=new Set(["$$slots","$$events","$$legacy"]);function bm(a,t){let i=Pa(t,uS);const n={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var fS=new Set(["$$slots","$$events","$$legacy"]);function rf(a,t){let i=Pa(t,fS);const n={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var pS=new Set(["$$slots","$$events","$$legacy"]);function of(a,t){let i=Pa(t,pS);const n={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var mS=new Set(["$$slots","$$events","$$legacy"]);function Zv(a,t){let i=Pa(t,mS);const n={name:"code",size:24,node:[["path",{d:"m16 18 6-6-6-6"}],["path",{d:"m8 6-6 6 6 6"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var gS=new Set(["$$slots","$$events","$$legacy"]);function hS(a,t){let i=Pa(t,gS);const n={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var _S=new Set(["$$slots","$$events","$$legacy"]);function qd(a,t){let i=Pa(t,_S);const n={name:"download",size:24,node:[["path",{d:"M12 15V3"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}],["path",{d:"m7 10 5 5 5-5"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var vS=new Set(["$$slots","$$events","$$legacy"]);function bS(a,t){let i=Pa(t,vS);const n={name:"file-headphone",size:24,node:[["path",{d:"M4 6.835V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-.343"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M2 19a2 2 0 0 1 4 0v1a2 2 0 0 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 0 1-4 0v-1a2 2 0 0 1 4 0"}]],aliases:["file-audio","file-audio-2"]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var yS=new Set(["$$slots","$$events","$$legacy"]);function Oo(a,t){let i=Pa(t,yS);const n={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10 9H8"}],["path",{d:"M16 13H8"}],["path",{d:"M16 17H8"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var wS=new Set(["$$slots","$$events","$$legacy"]);function Fc(a,t){let i=Pa(t,wS);const n={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var kS=new Set(["$$slots","$$events","$$legacy"]);function eb(a,t){let i=Pa(t,kS);const n={name:"languages",size:24,node:[["path",{d:"m5 8 6 6"}],["path",{d:"m4 14 6-6 2-3"}],["path",{d:"M2 5h12"}],["path",{d:"M7 2h1"}],["path",{d:"m22 22-5-10-5 10"}],["path",{d:"M14 18h6"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var xS=new Set(["$$slots","$$events","$$legacy"]);function SS(a,t){let i=Pa(t,xS);const n={name:"layers",size:24,node:[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"}]],aliases:["layers-3"]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var TS=new Set(["$$slots","$$events","$$legacy"]);function $S(a,t){let i=Pa(t,TS);const n={name:"list-filter",size:24,node:[["path",{d:"M2 5h20"}],["path",{d:"M6 12h12"}],["path",{d:"M9 19h6"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var qS=new Set(["$$slots","$$events","$$legacy"]);function CS(a,t){let i=Pa(t,qS);const n={name:"list",size:24,node:[["path",{d:"M3 5h.01"}],["path",{d:"M3 12h.01"}],["path",{d:"M3 19h.01"}],["path",{d:"M8 5h13"}],["path",{d:"M8 12h13"}],["path",{d:"M8 19h13"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var AS=new Set(["$$slots","$$events","$$legacy"]);function GS(a,t){let i=Pa(t,AS);const n={name:"merge",size:24,node:[["path",{d:"m8 6 4-4 4 4"}],["path",{d:"M12 2v10.3a4 4 0 0 1-1.172 2.872L4 22"}],["path",{d:"m20 22-5-5"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var FS=new Set(["$$slots","$$events","$$legacy"]);function Cd(a,t){let i=Pa(t,FS);const n={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var MS=new Set(["$$slots","$$events","$$legacy"]);function ym(a,t){let i=Pa(t,MS);const n={name:"mic",size:24,node:[["path",{d:"M12 19v3"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var zS=new Set(["$$slots","$$events","$$legacy"]);function ES(a,t){let i=Pa(t,zS);const n={name:"minus",size:24,node:[["path",{d:"M5 12h14"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var US=new Set(["$$slots","$$events","$$legacy"]);function tb(a,t){let i=Pa(t,US);const n={name:"pencil",size:24,node:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}],["path",{d:"m15 5 4 4"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var RS=new Set(["$$slots","$$events","$$legacy"]);function Mc(a,t){let i=Pa(t,RS);const n={name:"play",size:24,node:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var BS=new Set(["$$slots","$$events","$$legacy"]);function Dr(a,t){let i=Pa(t,BS);const n={name:"plus",size:24,node:[["path",{d:"M5 12h14"}],["path",{d:"M12 5v14"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var PS=new Set(["$$slots","$$events","$$legacy"]);function jS(a,t){let i=Pa(t,PS);const n={name:"redo-2",size:24,node:[["path",{d:"m15 14 5-5-5-5"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var NS=new Set(["$$slots","$$events","$$legacy"]);function OS(a,t){let i=Pa(t,NS);const n={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}],["path",{d:"M21 3v5h-5"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}],["path",{d:"M8 16H3v5"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var IS=new Set(["$$slots","$$events","$$legacy"]);function DS(a,t){let i=Pa(t,IS);const n={name:"rotate-ccw-clock",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}],["path",{d:"M3 3v5h5"}],["path",{d:"M12 7v5l4 2"}]],aliases:["history"]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var LS=new Set(["$$slots","$$events","$$legacy"]);function ab(a,t){let i=Pa(t,LS);const n={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}],["path",{d:"M3 3v5h5"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var VS=new Set(["$$slots","$$events","$$legacy"]);function HS(a,t){let i=Pa(t,VS);const n={name:"save",size:24,node:[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var WS=new Set(["$$slots","$$events","$$legacy"]);function ib(a,t){let i=Pa(t,WS);const n={name:"scissors",size:24,node:[["circle",{cx:"6",cy:"6",r:"3"}],["path",{d:"M8.12 8.12 12 12"}],["path",{d:"M20 4 8.12 15.88"}],["circle",{cx:"6",cy:"18",r:"3"}],["path",{d:"M14.8 14.8 20 20"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var QS=new Set(["$$slots","$$events","$$legacy"]);function nb(a,t){let i=Pa(t,QS);const n={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34"}],["circle",{cx:"11",cy:"11",r:"8"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var KS=new Set(["$$slots","$$events","$$legacy"]);function sb(a,t){let i=Pa(t,KS);const n={name:"sliders-horizontal",size:24,node:[["path",{d:"M10 5H3"}],["path",{d:"M12 19H3"}],["path",{d:"M14 3v4"}],["path",{d:"M16 17v4"}],["path",{d:"M21 12h-9"}],["path",{d:"M21 19h-5"}],["path",{d:"M21 5h-7"}],["path",{d:"M8 10v4"}],["path",{d:"M8 12H3"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var YS=new Set(["$$slots","$$events","$$legacy"]);function zc(a,t){let i=Pa(t,YS);const n={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var JS=new Set(["$$slots","$$events","$$legacy"]);function ho(a,t){let i=Pa(t,JS);const n={name:"trash",size:24,node:[["path",{d:"M10 11v6"}],["path",{d:"M14 11v6"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}],["path",{d:"M3 6h18"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}]],aliases:["trash-2"]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var XS=new Set(["$$slots","$$events","$$legacy"]);function ZS(a,t){let i=Pa(t,XS);const n={name:"undo-2",size:24,node:[["path",{d:"M9 14 4 9l5-5"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var eT=new Set(["$$slots","$$events","$$legacy"]);function wm(a,t){let i=Pa(t,eT);const n={name:"upload",size:24,node:[["path",{d:"M12 3v12"}],["path",{d:"m17 8-5-5-5 5"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var tT=new Set(["$$slots","$$events","$$legacy"]);function Ad(a,t){let i=Pa(t,tT);const n={name:"user-round",size:24,node:[["circle",{cx:"12",cy:"8",r:"5"}],["path",{d:"M20 21a8 8 0 0 0-16 0"}]],aliases:["user-2"]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var aT=new Set(["$$slots","$$events","$$legacy"]);function lf(a,t){let i=Pa(t,aT);const n={name:"user",size:24,node:[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}],["circle",{cx:"12",cy:"7",r:"4"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var iT=new Set(["$$slots","$$events","$$legacy"]);function El(a,t){let i=Pa(t,iT);const n={name:"users",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}],["circle",{cx:"9",cy:"7",r:"4"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var nT=new Set(["$$slots","$$events","$$legacy"]);function sT(a,t){let i=Pa(t,nT);const n={name:"video",size:24,node:[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var rT=new Set(["$$slots","$$events","$$legacy"]);function rb(a,t){let i=Pa(t,rT);const n={name:"x",size:24,node:[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var oT=new Set(["$$slots","$$events","$$legacy"]);function lT(a,t){let i=Pa(t,oT);const n={name:"zoom-in",size:24,node:[["circle",{cx:"11",cy:"11",r:"8"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}var cT=new Set(["$$slots","$$events","$$legacy"]);function dT(a,t){let i=Pa(t,cT);const n={name:"zoom-out",size:24,node:[["circle",{cx:"11",cy:"11",r:"8"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11"}]]};Wa(a,Ha(()=>i,{get icon(){return n}}))}function cf(a,t,i){for(let n=0;n
Record or choose a spoken question under Source audio, then press Run. Each Run adds a turn, and the earlier turns go with it.
'),Zq=ae('Live playback is not available; each reply is in its player when it finishes.'),eC=ae('The browser did not let live audio start; each reply is in its player when it finishes.'),tC=ae('Multi-speaker generation is still under testing. Voice assignment and consistency may vary.
Record or choose a spoken question under Source audio, then press Run. Each Run adds a turn, and the earlier turns go with it.
'),Zq=ae('Live playback is not available; each reply is in its player when it finishes.'),eC=ae('The browser did not let live audio start; each reply is in its player when it finishes.'),tC=ae('Multi-speaker generation is still under testing. Voice assignment and consistency may vary.
'),N7=ae("
"),D7=ae('
'),L7=ae('
',1),H7=ae('
Opening app…
'),Y7=ae(''),J7=ae('
APPS
Choose a workflow. Create and reuse speaker presets inside Text to speech.
Choose a recent path, then Apply to switch folders.
'),j9=ae(''),N9=ae(''),O9=ae('
Select a voice
Install a compatible model from Models.
'),iM=ae(''),nM=ae('
Choose a speech model first.
'),lM=ae(''),cM=ae(''),dM=ae('
This model does not support recorded voices. Choose a cloning model or a built-in voice.
'),uM=ae(''),pM=ae(`
'),vM=ae('');function A2(a,t){zi(t,!1);let i=xe(t,"initial",8,null),n=xe(t,"saved",24,()=>[]),s=xe(t,"choices",8),r=xe(t,"voices",8),o=xe(t,"number",8,1),l=xe(t,"presetEditor",8,!1),c=xe(t,"onsave",8),d=xe(t,"onclose",8),g=xe(t,"onbusy",8),h=Y(i()?.name||`Speaker ${o()}`),m=Y(i()?structuredClone(i().configuration):null),p=Y(i()?structuredClone(i().voice):{kind:"builtin",id:""}),u=Y(null),f=Y(""),_=Y(!1),b=Y(""),v=Y(),T=Y(null);function S(R){y(f,R),y(b,"");const we=n().find(ce=>ce.id===R);y(h,we?.name||`Speaker ${o()}`),y(m,we?structuredClone(we.configuration):null),y(p,we?structuredClone(we.voice):{kind:"builtin",id:""})}function M(R){y(_,R),g()(R)}async function P(){if(e(p)?.kind!=="reference"||!e(u)||e(_))return;const R=e(p).data;M(!0),y(b,""),y(T,new AbortController);try{const we=new iu(e(u),e(T).signal),ce=await gr(R.audio,e(T).signal),Te=await we.run({audio:ce});if(Te.kind!=="json"||typeof Te.data.text!="string")throw new Error("The model did not return a transcript.");y(p,{kind:"reference",data:{...R,transcript:Te.data.text}})}catch(we){y(b,e(T)?.signal.aborted?"":String(we))}finally{y(T,null),M(!1)}}async function B(){if(!(!e(h).trim()||!e(m)||!e(p)||e(_))){M(!0),y(b,"");try{await c()({id:i()?.id||e(f)||crypto.randomUUID(),name:e(h).trim(),configuration:structuredClone(e(m)),voice:structuredClone(e(p))}),d()()}catch(R){y(b,`Could not save speaker: ${String(R)}`)}finally{M(!1)}}}Kn(()=>e(v).showModal()),ur(()=>{e(T)?.abort(),g()(!1)}),Xi();var C=vM(),j=k(C),G=k(j),A=k(G);Gd(A,{size:20}),w(G);var N=q(G,2),H=k(N),E=k(H,!0);w(H),Rt(2),w(N);var U=q(N,2),O=k(U);rb(O,{size:18}),w(U),w(j);var V=q(j,2),D=k(V);{var $=R=>{var we=hM(),ce=q(k(we)),Te=k(ce);Te.value=Te.__value="";var he=q(Te);Ct(he,1,n,Kt,(Le,nt)=>{var Ae=gM(),Ge=k(Ae,!0);w(Ae);var ne={};ie(()=>{W(Ge,(e(nt),x(()=>e(nt).name))),ne!==(ne=(e(nt),x(()=>e(nt).id)))&&(Ae.value=(Ae.__value=(e(nt),x(()=>e(nt).id)))??"")}),J(Le,Ae)}),w(ce);var je;On(ce),w(we),ie(()=>{ce.disabled=e(_),je!==(je=e(f))&&(ce.value=(ce.__value=e(f))??"",xn(ce,e(f)))}),re("change",ce,Le=>S(Le.currentTarget.value)),J(R,we)};ve(D,R=>{K(i()),K(n()),x(()=>!i()&&n().length)&&R($)})}var F=q(D,2),z=q(k(F));Pt(z),w(F);var L=q(F,2);nu(L,{label:"Speech model",emptyLabel:"Choose an installed speech model",settingsLabel:"Model settings",get choices(){return s()},tasks:["tts","clon","vdes"],get disabled(){return e(_)},onchange:R=>{R==="model"&&y(p,{kind:"builtin",id:e(m)?.request.voice||""})},get value(){return e(m)},set value(R){y(m,R)},$$legacy:!0});var Q=q(L,2);mM(Q,{label:"Speaker voice",get configuration(){return e(m)},get assignment(){return e(p)},get voices(){return r()},get choices(){return s()},get disabled(){return e(_)},onchange:R=>y(p,R),onbusy:M,ontranscribe:P,onconfiguration:()=>{},get transcription(){return e(u)},set transcription(R){y(u,R)},$$legacy:!0});var Z=q(Q,2);{var ee=R=>{var we=_M(),ce=k(we,!0);w(we),ie(()=>W(ce,e(b))),J(R,we)};ve(Z,R=>{e(b)&&R(ee)})}w(V);var oe=q(V,2),fe=q(k(oe)),le=q(fe),ge=k(le,!0);w(le),w(oe),w(C),Ci(C,R=>y(v,R),()=>e(v)),ie(R=>{W(E,l()?i()?"Edit speaker preset":"New speaker preset":i()?"Edit speaker":"Add a speaker"),U.disabled=e(_),z.disabled=e(_),fe.disabled=e(_),le.disabled=R,W(ge,e(_)?"Working…":l()?"Save preset":i()?"Save speaker":"Add speaker")},[()=>(e(_),e(h),e(m),e(p),x(()=>e(_)||!e(h).trim()||!e(m)||!e(p)))]),re("click",U,function(...R){d()?.apply(this,R)}),Ta(z,()=>e(h),R=>y(h,R)),re("click",fe,function(...R){d()?.apply(this,R)}),re("click",le,B),re("cancel",C,R=>{R.target===R.currentTarget&&(e(_)?(R.preventDefault(),e(T)?.abort()):d()())}),J(a,C),Ei()}var bM=ae('
'),yM=ae('
Loading speaker presets…
'),wM=ae(''),kM=ae('
Select a speaker to see its settings.
Manage speaker presets here, then choose them in Text to speech. Existing projects keep their own speaker settings.
'),N7=ae("
"),D7=ae('
'),L7=ae('
',1),H7=ae('
Opening app…
'),Y7=ae(''),J7=ae('
APPS
Choose a workflow. Create and reuse speaker presets inside Text to speech.
Choose a recent path, then Apply to switch folders.
'),j9=ae(''),N9=ae(''),O9=ae('
Select a voice
Install a compatible model from Models.
'),iM=ae(''),nM=ae('
Choose a speech model first.
'),lM=ae(''),cM=ae(''),dM=ae('
This model does not support recorded voices. Choose a cloning model or a built-in voice.
'),uM=ae(''),pM=ae(`
'),vM=ae('');function A2(a,t){Fi(t,!1);let i=Se(t,"initial",8,null),n=Se(t,"saved",24,()=>[]),s=Se(t,"choices",8),r=Se(t,"voices",8),o=Se(t,"number",8,1),l=Se(t,"presetEditor",8,!1),c=Se(t,"onsave",8),d=Se(t,"onclose",8),g=Se(t,"onbusy",8),h=Y(i()?.name||`Speaker ${o()}`),m=Y(i()?structuredClone(i().configuration):null),p=Y(i()?structuredClone(i().voice):{kind:"builtin",id:""}),u=Y(null),f=Y(""),_=Y(!1),v=Y(""),b=Y(),S=Y(null);function $(R){y(f,R),y(v,"");const we=n().find(pe=>pe.id===R);y(h,we?.name||`Speaker ${o()}`),y(m,we?structuredClone(we.configuration):null),y(p,we?structuredClone(we.voice):{kind:"builtin",id:""})}function M(R){y(_,R),g()(R)}async function N(){if(e(p)?.kind!=="reference"||!e(u)||e(_))return;const R=e(p).data;M(!0),y(v,""),y(S,new AbortController);try{const we=new au(e(u),e(S).signal),pe=await hr(R.audio,e(S).signal),Te=await we.run({audio:pe});if(Te.kind!=="json"||typeof Te.data.text!="string")throw new Error("The model did not return a transcript.");y(p,{kind:"reference",data:{...R,transcript:Te.data.text}})}catch(we){y(v,e(S)?.signal.aborted?"":String(we))}finally{y(S,null),M(!1)}}async function P(){if(!(!e(h).trim()||!e(m)||!e(p)||e(_))){M(!0),y(v,"");try{await c()({id:i()?.id||e(f)||crypto.randomUUID(),name:e(h).trim(),configuration:structuredClone(e(m)),voice:structuredClone(e(p))}),d()()}catch(R){y(v,`Could not save speaker: ${String(R)}`)}finally{M(!1)}}}Jn(()=>e(b).showModal()),fr(()=>{e(S)?.abort(),g()(!1)}),Zi();var C=vM(),j=k(C),G=k(j),A=k(G);Ad(A,{size:20}),w(G);var B=q(G,2),H=k(B),U=k(H,!0);w(H),zt(2),w(B);var E=q(B,2),O=k(E);rb(O,{size:18}),w(E),w(j);var V=q(j,2),L=k(V);{var T=R=>{var we=hM(),pe=q(k(we)),Te=k(pe);Te.value=Te.__value="";var he=q(Te);Ct(he,1,n,Qt,(Le,ct)=>{var Ae=gM(),Ge=k(Ae,!0);w(Ae);var ne={};ie(()=>{W(Ge,(e(ct),x(()=>e(ct).name))),ne!==(ne=(e(ct),x(()=>e(ct).id)))&&(Ae.value=(Ae.__value=(e(ct),x(()=>e(ct).id)))??"")}),J(Le,Ae)}),w(pe);var Pe;Nn(pe),w(we),ie(()=>{pe.disabled=e(_),Pe!==(Pe=e(f))&&(pe.value=(pe.__value=e(f))??"",kn(pe,e(f)))}),re("change",pe,Le=>$(Le.currentTarget.value)),J(R,we)};ve(L,R=>{Q(i()),Q(n()),x(()=>!i()&&n().length)&&R(T)})}var F=q(L,2),z=q(k(F));Pt(z),w(F);var D=q(F,2);iu(D,{label:"Speech model",emptyLabel:"Choose an installed speech model",settingsLabel:"Model settings",get choices(){return s()},tasks:["tts","clon","vdes"],get disabled(){return e(_)},onchange:R=>{R==="model"&&y(p,{kind:"builtin",id:e(m)?.request.voice||""})},get value(){return e(m)},set value(R){y(m,R)},$$legacy:!0});var K=q(D,2);mM(K,{label:"Speaker voice",get configuration(){return e(m)},get assignment(){return e(p)},get voices(){return r()},get choices(){return s()},get disabled(){return e(_)},onchange:R=>y(p,R),onbusy:M,ontranscribe:N,onconfiguration:()=>{},get transcription(){return e(u)},set transcription(R){y(u,R)},$$legacy:!0});var X=q(K,2);{var ee=R=>{var we=_M(),pe=k(we,!0);w(we),ie(()=>W(pe,e(v))),J(R,we)};ve(X,R=>{e(v)&&R(ee)})}w(V);var ce=q(V,2),fe=q(k(ce)),le=q(fe),ge=k(le,!0);w(le),w(ce),w(C),Ci(C,R=>y(b,R),()=>e(b)),ie(R=>{W(U,l()?i()?"Edit speaker preset":"New speaker preset":i()?"Edit speaker":"Add a speaker"),E.disabled=e(_),z.disabled=e(_),fe.disabled=e(_),le.disabled=R,W(ge,e(_)?"Working…":l()?"Save preset":i()?"Save speaker":"Add speaker")},[()=>(e(_),e(h),e(m),e(p),x(()=>e(_)||!e(h).trim()||!e(m)||!e(p)))]),re("click",E,function(...R){d()?.apply(this,R)}),Sa(z,()=>e(h),R=>y(h,R)),re("click",fe,function(...R){d()?.apply(this,R)}),re("click",le,P),re("cancel",C,R=>{R.target===R.currentTarget&&(e(_)?(R.preventDefault(),e(S)?.abort()):d()())}),J(a,C),Mi()}var bM=ae('
'),yM=ae('
Loading speaker presets…
'),wM=ae(''),kM=ae('
Select a speaker to see its settings.
Manage speaker presets here, then choose them in Text to speech. Existing projects keep their own speaker settings.