diff --git "a/hfstudio/static/_app/immutable/nodes/2.BEg0g6TQ.js" "b/hfstudio/static/_app/immutable/nodes/2.BEg0g6TQ.js" new file mode 100644--- /dev/null +++ "b/hfstudio/static/_app/immutable/nodes/2.BEg0g6TQ.js" @@ -0,0 +1,73 @@ +import{r as Et,p as D,o as F,S as ze,i as Be,s as Le,m as We,O as Z,d as f,P as Xt,u as qe,v as Xe,w as Ye,Q as Yt,b as ue,c as i,R as Mn,f as _,E as kt,T as Ln,U as rn,V as pe,I as ne,K as le,L as re,J as se,q as u,D as rt,x as ge,e as g,g as Q,h as M,j as h,t as ee,k as L,z as Hn,a as Ue,A as Ht,C as st,y as De,N as sn,W as an,M as Gt,n as Vt,X as Zt,Y as Jt,B as Kt}from"../chunks/MT0Fezl8.js";import"../chunks/IHki7fMi.js";function $t(s){return(s==null?void 0:s.length)!==void 0?s:Array.from(s)}function Un(s,e){F(s,1,1,()=>{e.delete(s.key)})}function zn(s,e,n,t,r,l,a,o,w,T,A,E){let b=s.length,x=l.length,N=b;const C={};for(;N--;)C[s[N].key]=N;const y=[],S=new Map,c=new Map,d=[];for(N=x;N--;){const v=E(r,l,N),I=n(v);let k=a.get(I);k?d.push(()=>k.p(v,e)):(k=T(I,v),k.c()),S.set(I,y[N]=k),I in C&&c.set(I,Math.abs(N-C[I]))}const m=new Set,p=new Set;function $(v){D(v,1),v.m(o,A),a.set(v.key,v),A=v.first,x--}for(;b&&x;){const v=y[x-1],I=s[b-1],k=v.key,P=I.key;v===I?(A=v.first,b--,x--):S.has(P)?!a.has(k)||m.has(k)?$(v):p.has(P)?b--:c.get(k)>c.get(P)?(p.add(k),$(v)):(m.add(P),b--):(w(I,a),b--)}for(;b--;){const v=s[b];S.has(v.key)||w(v,a)}for(;x;)$(y[x-1]);return Et(d),y}function je(s,e){const n={},t={},r={$$scope:1};let l=s.length;for(;l--;){const a=s[l],o=e[l];if(o){for(const w in a)w in o||(t[w]=1);for(const w in o)r[w]||(n[w]=o[w],r[w]=1);s[l]=o}else for(const w in a)r[w]=1}for(const a in t)a in n||(n[a]=void 0);return n}function Ze(s){return typeof s=="object"&&s!==null?s:{}}/** + * @license lucide-svelte v0.303.0 - ISC + +This source code is licensed under the ISC license. +See the LICENSE file in the root directory of this source tree. + */const on={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"};function un(s,e,n){const t=s.slice();return t[10]=e[n][0],t[11]=e[n][1],t}function Qt(s){let e,n=[s[11]],t={};for(let r=0;r{n(7,e=Z(Z({},e),pe(x))),n(6,r=rn(e,t)),"name"in x&&n(0,o=x.name),"color"in x&&n(1,w=x.color),"size"in x&&n(2,T=x.size),"strokeWidth"in x&&n(3,A=x.strokeWidth),"absoluteStrokeWidth"in x&&n(4,E=x.absoluteStrokeWidth),"iconNode"in x&&n(5,b=x.iconNode),"$$scope"in x&&n(8,a=x.$$scope)},e=pe(e),[o,w,T,A,E,b,r,e,a,l]}class Je extends ze{constructor(e){super(),Be(this,e,jn,Bn,Le,{name:0,color:1,size:2,strokeWidth:3,absoluteStrokeWidth:4,iconNode:5})}}function Gn(s){let e;const n=s[2].default,t=We(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&qe(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function Wn(s){let e,n;const t=[{name:"alert-circle"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Gn]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Xn extends ze{constructor(e){super(),Be(this,e,qn,Wn,Le,{})}}function Yn(s){let e;const n=s[2].default,t=We(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&qe(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function Kn(s){let e,n;const t=[{name:"chevron-down"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Yn]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Jn extends ze{constructor(e){super(),Be(this,e,Zn,Kn,Le,{})}}function Qn(s){let e;const n=s[2].default,t=We(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&qe(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function el(s){let e,n;const t=[{name:"code"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Qn]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class nl extends ze{constructor(e){super(),Be(this,e,tl,el,Le,{})}}function ll(s){let e;const n=s[2].default,t=We(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&qe(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function rl(s){let e,n;const t=[{name:"copy"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[ll]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Wt extends ze{constructor(e){super(),Be(this,e,sl,rl,Le,{})}}function al(s){let e;const n=s[2].default,t=We(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&qe(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function ol(s){let e,n;const t=[{name:"download"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[al]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class en extends ze{constructor(e){super(),Be(this,e,il,ol,Le,{})}}function ul(s){let e;const n=s[2].default,t=We(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&qe(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function cl(s){let e,n;const t=[{name:"loader-2"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[ul]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class dl extends ze{constructor(e){super(),Be(this,e,fl,cl,Le,{})}}function gl(s){let e;const n=s[2].default,t=We(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&qe(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function hl(s){let e,n;const t=[{name:"more-horizontal"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[gl]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class ml extends ze{constructor(e){super(),Be(this,e,pl,hl,Le,{})}}function _l(s){let e;const n=s[2].default,t=We(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&qe(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function bl(s){let e,n;const t=[{name:"panels-top-left"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[_l]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class yl extends ze{constructor(e){super(),Be(this,e,vl,bl,Le,{})}}function wl(s){let e;const n=s[2].default,t=We(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&qe(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function $l(s){let e,n;const t=[{name:"pause"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[wl]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Rn extends ze{constructor(e){super(),Be(this,e,kl,$l,Le,{})}}function El(s){let e;const n=s[2].default,t=We(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&qe(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function Sl(s){let e,n;const t=[{name:"play"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[El]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class qt extends ze{constructor(e){super(),Be(this,e,Al,Sl,Le,{})}}function Tl(s){let e;const n=s[2].default,t=We(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&qe(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function Il(s){let e,n;const t=[{name:"rotate-ccw"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Tl]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Nl extends ze{constructor(e){super(),Be(this,e,xl,Il,Le,{})}}function Dl(s){let e;const n=s[2].default,t=We(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&qe(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function Cl(s){let e,n;const t=[{name:"share"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Dl]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class tn extends ze{constructor(e){super(),Be(this,e,Fl,Cl,Le,{})}}function Pl(s){let e;const n=s[2].default,t=We(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&qe(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function Ol(s){let e,n;const t=[{name:"shuffle"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Pl]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Ll extends ze{constructor(e){super(),Be(this,e,Ml,Ol,Le,{})}}function Rl(s){let e;const n=s[2].default,t=We(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&qe(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function Vl(s){let e,n;const t=[{name:"skip-back"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Rl]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Ul extends ze{constructor(e){super(),Be(this,e,Hl,Vl,Le,{})}}function zl(s){let e;const n=s[2].default,t=We(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&qe(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function Bl(s){let e,n;const t=[{name:"skip-forward"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[zl]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Gl extends ze{constructor(e){super(),Be(this,e,jl,Bl,Le,{})}}function Wl(s){let e;const n=s[2].default,t=We(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&qe(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function ql(s){let e,n;const t=[{name:"x"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Wl]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Yl extends ze{constructor(e){super(),Be(this,e,Xl,ql,Le,{})}}var fn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kl(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Vn={exports:{}};(function(s){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** + * Prism: Lightweight, robust, elegant syntax highlighting + * + * @license MIT + * @author Lea Verou + * @namespace + * @public + */var n=function(t){var r=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,l=0,a={},o={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function c(d){return d instanceof w?new w(d.type,c(d.content),d.alias):Array.isArray(d)?d.map(c):d.replace(/&/g,"&").replace(/"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(p){var c=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(p.stack)||[])[1];if(c){var d=document.getElementsByTagName("script");for(var m in d)if(d[m].src==c)return d[m]}return null}},isActive:function(c,d,m){for(var p="no-"+d;c;){var $=c.classList;if($.contains(d))return!0;if($.contains(p))return!1;c=c.parentElement}return!!m}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(c,d){var m=o.util.clone(o.languages[c]);for(var p in d)m[p]=d[p];return m},insertBefore:function(c,d,m,p){p=p||o.languages;var $=p[c],v={};for(var I in $)if($.hasOwnProperty(I)){if(I==d)for(var k in m)m.hasOwnProperty(k)&&(v[k]=m[k]);m.hasOwnProperty(I)||(v[I]=$[I])}var P=p[c];return p[c]=v,o.languages.DFS(o.languages,function(R,U){U===P&&R!=c&&(this[R]=v)}),v},DFS:function c(d,m,p,$){$=$||{};var v=o.util.objId;for(var I in d)if(d.hasOwnProperty(I)){m.call(d,I,d[I],p||I);var k=d[I],P=o.util.type(k);P==="Object"&&!$[v(k)]?($[v(k)]=!0,c(k,m,null,$)):P==="Array"&&!$[v(k)]&&($[v(k)]=!0,c(k,m,I,$))}}},plugins:{},highlightAll:function(c,d){o.highlightAllUnder(document,c,d)},highlightAllUnder:function(c,d,m){var p={callback:m,container:c,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",p),p.elements=Array.prototype.slice.apply(p.container.querySelectorAll(p.selector)),o.hooks.run("before-all-elements-highlight",p);for(var $=0,v;v=p.elements[$++];)o.highlightElement(v,d===!0,p.callback)},highlightElement:function(c,d,m){var p=o.util.getLanguage(c),$=o.languages[p];o.util.setLanguage(c,p);var v=c.parentElement;v&&v.nodeName.toLowerCase()==="pre"&&o.util.setLanguage(v,p);var I=c.textContent,k={element:c,language:p,grammar:$,code:I};function P(U){k.highlightedCode=U,o.hooks.run("before-insert",k),k.element.innerHTML=k.highlightedCode,o.hooks.run("after-highlight",k),o.hooks.run("complete",k),m&&m.call(k.element)}if(o.hooks.run("before-sanity-check",k),v=k.element.parentElement,v&&v.nodeName.toLowerCase()==="pre"&&!v.hasAttribute("tabindex")&&v.setAttribute("tabindex","0"),!k.code){o.hooks.run("complete",k),m&&m.call(k.element);return}if(o.hooks.run("before-highlight",k),!k.grammar){P(o.util.encode(k.code));return}if(d&&t.Worker){var R=new Worker(o.filename);R.onmessage=function(U){P(U.data)},R.postMessage(JSON.stringify({language:k.language,code:k.code,immediateClose:!0}))}else P(o.highlight(k.code,k.grammar,k.language))},highlight:function(c,d,m){var p={code:c,grammar:d,language:m};if(o.hooks.run("before-tokenize",p),!p.grammar)throw new Error('The language "'+p.language+'" has no grammar.');return p.tokens=o.tokenize(p.code,p.grammar),o.hooks.run("after-tokenize",p),w.stringify(o.util.encode(p.tokens),p.language)},tokenize:function(c,d){var m=d.rest;if(m){for(var p in m)d[p]=m[p];delete d.rest}var $=new E;return b($,$.head,c),A(c,$,d,$.head,0),N($)},hooks:{all:{},add:function(c,d){var m=o.hooks.all;m[c]=m[c]||[],m[c].push(d)},run:function(c,d){var m=o.hooks.all[c];if(!(!m||!m.length))for(var p=0,$;$=m[p++];)$(d)}},Token:w};t.Prism=o;function w(c,d,m,p){this.type=c,this.content=d,this.alias=m,this.length=(p||"").length|0}w.stringify=function c(d,m){if(typeof d=="string")return d;if(Array.isArray(d)){var p="";return d.forEach(function(P){p+=c(P,m)}),p}var $={type:d.type,content:c(d.content,m),tag:"span",classes:["token",d.type],attributes:{},language:m},v=d.alias;v&&(Array.isArray(v)?Array.prototype.push.apply($.classes,v):$.classes.push(v)),o.hooks.run("wrap",$);var I="";for(var k in $.attributes)I+=" "+k+'="'+($.attributes[k]||"").replace(/"/g,""")+'"';return"<"+$.tag+' class="'+$.classes.join(" ")+'"'+I+">"+$.content+""};function T(c,d,m,p){c.lastIndex=d;var $=c.exec(m);if($&&p&&$[1]){var v=$[1].length;$.index+=v,$[0]=$[0].slice(v)}return $}function A(c,d,m,p,$,v){for(var I in m)if(!(!m.hasOwnProperty(I)||!m[I])){var k=m[I];k=Array.isArray(k)?k:[k];for(var P=0;P=v.reach);Y+=z.value.length,z=z.next){var K=z.value;if(d.length>c.length)return;if(!(K instanceof w)){var he=1,ve;if(V){if(ve=T(X,Y,c,O),!ve||ve.index>=c.length)break;var ce=ve.index,q=ve.index+ve[0].length,W=Y;for(W+=z.value.length;ce>=W;)z=z.next,W+=z.value.length;if(W-=z.value.length,Y=W,z.value instanceof w)continue;for(var J=z;J!==d.tail&&(Wv.reach&&(v.reach=we);var fe=z.prev;$e&&(fe=b(d,fe,$e),Y+=$e.length),x(d,fe,he);var be=new w(I,U?o.tokenize(oe,U):oe,G,oe);if(z=b(d,fe,be),_e&&b(d,z,_e),he>1){var me={cause:I+","+P,reach:we};A(c,d,m,z.prev,Y,me),v&&me.reach>v.reach&&(v.reach=me.reach)}}}}}}function E(){var c={value:null,prev:null,next:null},d={value:null,prev:c,next:null};c.next=d,this.head=c,this.tail=d,this.length=0}function b(c,d,m){var p=d.next,$={value:m,prev:d,next:p};return d.next=$,p.prev=$,c.length++,$}function x(c,d,m){for(var p=d.next,$=0;$/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(r,l){var a={};a["language-"+l]={pattern:/(^$)/i,lookbehind:!0,inside:n.languages[l]},a.cdata=/^$/i;var o={"included-cdata":{pattern://i,inside:a}};o["language-"+l]={pattern:/[\s\S]+/,inside:n.languages[l]};var w={};w[r]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:o},n.languages.insertBefore("markup","cdata",w)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(t,r){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:n.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(t){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+r.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var l=t.languages.markup;l&&(l.tag.addInlined("style","css"),l.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var t="Loading…",r=function(C,y){return"✖ Error "+C+" while fetching file: "+y},l="✖ Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},o="data-src-status",w="loading",T="loaded",A="failed",E="pre[data-src]:not(["+o+'="'+T+'"]):not(['+o+'="'+w+'"])';function b(C,y,S){var c=new XMLHttpRequest;c.open("GET",C,!0),c.onreadystatechange=function(){c.readyState==4&&(c.status<400&&c.responseText?y(c.responseText):c.status>=400?S(r(c.status,c.statusText)):S(l))},c.send(null)}function x(C){var y=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(C||"");if(y){var S=Number(y[1]),c=y[2],d=y[3];return c?d?[S,Number(d)]:[S,void 0]:[S,S]}}n.hooks.add("before-highlightall",function(C){C.selector+=", "+E}),n.hooks.add("before-sanity-check",function(C){var y=C.element;if(y.matches(E)){C.code="",y.setAttribute(o,w);var S=y.appendChild(document.createElement("CODE"));S.textContent=t;var c=y.getAttribute("data-src"),d=C.language;if(d==="none"){var m=(/\.(\w+)$/.exec(c)||[,"none"])[1];d=a[m]||m}n.util.setLanguage(S,d),n.util.setLanguage(y,d);var p=n.plugins.autoloader;p&&p.loadLanguages(d),b(c,function($){y.setAttribute(o,T);var v=x(y.getAttribute("data-range"));if(v){var I=$.split(/\r\n?|\n/g),k=v[0],P=v[1]==null?I.length:v[1];k<0&&(k+=I.length),k=Math.max(0,Math.min(k-1,I.length)),P<0&&(P+=I.length),P=Math.max(0,Math.min(P,I.length)),$=I.slice(k,P).join(` +`),y.hasAttribute("data-start")||y.setAttribute("data-start",String(k+1))}S.textContent=$,n.highlightElement(S)},function($){y.setAttribute(o,A),S.textContent=$})}}),n.plugins.fileHighlight={highlight:function(y){for(var S=(y||document).querySelectorAll(E),c=0,d;d=S[c++];)n.highlightElement(d)}};var N=!1;n.fileHighlight=function(){N||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),N=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(Vn);var Zl=Vn.exports;const ft=Kl(Zl);Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;(function(s){var e="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},t={bash:n,environment:{pattern:RegExp("\\$"+e),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+e),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};s.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+e),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:t},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:t},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:t.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:t.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=s.languages.bash;for(var r=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],l=t.variable[1].inside,a=0;a0||s[9]||s[1])&&_n(s),z=s[9]&&bn(s),Y=s[1]&&vn(s),K=!s[1]&&s[8].length===0&&yn(s),he=$t(s[8]);const ve=q=>q[82].id;for(let q=0;q0||q[9]||q[1]?X?(X.p(q,W),W[0]&770&&D(X,1)):(X=_n(q),X.c(),D(X,1),X.m(A,null)):X&&(st(),F(X,1,1,()=>{X=null}),rt()),q[9]?z?(z.p(q,W),W[0]&512&&D(z,1)):(z=bn(q),z.c(),D(z,1),z.m(p,$)):z&&(st(),F(z,1,1,()=>{z=null}),rt()),q[1]?Y?(Y.p(q,W),W[0]&2&&D(Y,1)):(Y=vn(q),Y.c(),D(Y,1),Y.m(p,v)):Y&&(st(),F(Y,1,1,()=>{Y=null}),rt()),!q[1]&&q[8].length===0?K?K.p(q,W):(K=yn(q),K.c(),K.m(p,I)):K&&(K.d(1),K=null),W[0]&256|W[1]&544&&(he=$t(q[8]),st(),k=zn(k,W,ve,1,q,he,P,p,Un,kn,null,dn),rt())},i(q){if(!R){D(X),D(z),D(Y);for(let W=0;WBilling ⤴',Y,K,he,ve='

Voice

',q,W,J,ce,oe='
+
Clone your voice
(coming soon)
',$e,_e,we,fe,be,me="Exaggeration",Re,Ce,Fe=s[12].toFixed(2)+"",mt,Ke,xe,dt,nt,Dt="None Exaggerated",it,Pe,lt,Ge,_t="Stability",bt,ut,Ve=s[13].toFixed(2)+"",Qe,at,Oe,St,He,ct="More stable More variable",H,ae,ye='',Ne,Ae,vt;l=new Ll({props:{size:16}});const Ut=[or,ar],yt=[];function wt(j,ie){return j[7]?0:1}S=wt(s),c=yt[S]=Ut[S](s);let Te=s[10]&&En(s),At=$t(s[24]),ke=[];for(let j=0;jF(B[j],1,1,()=>{B[j]=null});return{c(){e=h("div"),n=h("div"),t=h("div"),r=h("button"),se(l.$$.fragment),a=L(),o=h("textarea"),w=L(),T=h("div"),A=h("div"),E=h("span"),x=ee(b),N=ee(" / 1,000 characters"),C=L(),y=h("button"),c.c(),m=L(),Te&&Te.c(),p=L(),$=h("div"),v=h("div"),I=h("h3"),I.textContent=k,P=L(),R=h("button"),U=h("span");for(let j=0;j{yt[Ie]=null}),rt(),c=yt[S],c||(c=yt[S]=Ut[S](j),c.c()),D(c,1),c.m(y,null)),(!Ne||ie[0]&132&&d!==(d=j[7]||!j[2].trim()))&&(y.disabled=d),j[10]?Te?(Te.p(j,ie),ie[0]&1024&&D(Te,1)):(Te=En(j),Te.c(),D(Te,1),Te.m(n,null)):Te&&(st(),F(Te,1,1,()=>{Te=null}),rt()),ie[0]&16777232){At=$t(j[24]);let de;for(de=0;des[59](P,U,O),q=()=>s[59](null,U,O);function W(){return s[60](s[82],s[83],s[84])}return{c(){e=h("div"),n=h("div"),t=h("div"),r=h("div"),l=h("button"),o.c(),w=L(),T=h("div"),A=h("div"),b=ee(E),x=L(),N=h("div"),C=ee("Duration: "),S=ee(y),c=L(),d=h("div"),m=h("button"),se(p.$$.fragment),$=L(),v=h("button"),se(I.$$.fragment),k=L(),P=h("audio"),this.h()},l(J){e=g(J,"DIV",{class:!0});var ce=_(e);n=g(ce,"DIV",{class:!0});var oe=_(n);t=g(oe,"DIV",{class:!0});var $e=_(t);r=g($e,"DIV",{class:!0});var _e=_(r);l=g(_e,"BUTTON",{class:!0});var we=_(l);o.l(we),we.forEach(f),w=M(_e),T=g(_e,"DIV",{class:!0});var fe=_(T);A=g(fe,"DIV",{class:!0});var be=_(A);b=Q(be,E),be.forEach(f),x=M(fe),N=g(fe,"DIV",{class:!0});var me=_(N);C=Q(me,"Duration: "),S=Q(me,y),me.forEach(f),fe.forEach(f),_e.forEach(f),c=M($e),d=g($e,"DIV",{class:!0});var Re=_(d);m=g(Re,"BUTTON",{class:!0,title:!0});var Ce=_(m);re(p.$$.fragment,Ce),Ce.forEach(f),$=M(Re),v=g(Re,"BUTTON",{class:!0,title:!0});var Fe=_(v);re(I.$$.fragment,Fe),Fe.forEach(f),Re.forEach(f),$e.forEach(f),k=M(oe),P=g(oe,"AUDIO",{src:!0,class:!0}),_(P).forEach(f),oe.forEach(f),ce.forEach(f),this.h()},h(){u(l,"class","w-10 h-10 bg-gradient-to-r from-amber-500 to-orange-500 rounded-full flex items-center justify-center text-white hover:from-amber-600 hover:to-orange-600 transition-colors shadow-md"),u(A,"class","text-sm font-medium text-gray-900 truncate"),u(N,"class","text-xs text-gray-500"),u(T,"class","flex-1"),u(r,"class","flex items-center gap-3 flex-1"),u(m,"class","p-2 hover:bg-gray-100 rounded-lg transition-colors"),u(m,"title","Download"),u(v,"class","p-2 hover:bg-gray-100 rounded-lg transition-colors"),u(v,"title","Share"),u(d,"class","flex items-center gap-1"),u(t,"class","flex items-center justify-between"),Kt(P.src,R=s[82].result.url)||u(P,"src",R),u(P,"class","hidden"),u(n,"class","bg-white rounded-lg border border-gray-200 p-4 shadow-sm"),u(e,"class","bg-gradient-to-b from-gray-50 to-white p-4")},m(J,ce){ue(J,e,ce),i(e,n),i(n,t),i(t,r),i(r,l),z[a].m(l,null),i(r,w),i(r,T),i(T,A),i(A,b),i(T,x),i(T,N),i(N,C),i(N,S),i(t,c),i(t,d),i(d,m),le(p,m,null),i(d,$),i(d,v),le(I,v,null),i(n,k),i(n,P),ve(),V=!0,G||(te=[ge(l,"click",K),ge(m,"click",he),ge(P,"ended",W)],G=!0)},p(J,ce){s=J;let oe=a;a=Y(s),a!==oe&&(st(),F(z[oe],1,1,()=>{z[oe]=null}),rt(),o=z[a],o||(o=z[a]=X[a](s),o.c()),D(o,1),o.m(l,null)),(!V||ce[0]&256)&&E!==(E=(s[82].result.title||"Generated Audio")+"")&&Ue(b,E),(!V||ce[0]&256)&&y!==(y=On(s[82].result.duration||0)+"")&&Ue(S,y),(!V||ce[0]&256&&!Kt(P.src,R=s[82].result.url))&&u(P,"src",R),(U!==s[83]||O!==s[84])&&(q(),U=s[83],O=s[84],ve())},i(J){V||(D(o),D(p.$$.fragment,J),D(I.$$.fragment,J),V=!0)},o(J){F(o),F(p.$$.fragment,J),F(I.$$.fragment,J),V=!1},d(J){J&&f(e),z[a].d(),ne(p),ne(I),q(),G=!1,Et(te)}}}function rr(s){let e,n;return e=new qt({props:{size:18,class:"ml-0.5"}}),{c(){se(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){le(e,t,r),n=!0},i(t){n||(D(e.$$.fragment,t),n=!0)},o(t){F(e.$$.fragment,t),n=!1},d(t){ne(e,t)}}}function sr(s){let e,n;return e=new Rn({props:{size:18}}),{c(){se(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){le(e,t,r),n=!0},i(t){n||(D(e.$$.fragment,t),n=!0)},o(t){F(e.$$.fragment,t),n=!1},d(t){ne(e,t)}}}function kn(s,e){let n,t,r,l,a,o=e[84]+1+"",w,T,A,E,b,x,N,C,y,S=ft.highlight(e[82].code,ft.languages.python,"python")+"",c,d,m,p,$;E=new Wt({props:{size:14,class:"text-gray-600"}});function v(){return e[56](e[82])}let I=e[82].result&&e[82].result.type==="audio"&&$n(e);return{key:s,first:null,c(){n=h("div"),t=h("div"),r=h("div"),l=h("span"),a=ee("Cell "),w=ee(o),T=L(),A=h("button"),se(E.$$.fragment),b=L(),x=h("div"),N=h("pre"),C=h("code"),y=new Jt(!1),c=L(),I&&I.c(),d=L(),this.h()},l(k){n=g(k,"DIV",{class:!0});var P=_(n);t=g(P,"DIV",{class:!0});var R=_(t);r=g(R,"DIV",{class:!0});var U=_(r);l=g(U,"SPAN",{class:!0});var O=_(l);a=Q(O,"Cell "),w=Q(O,o),O.forEach(f),T=M(U),A=g(U,"BUTTON",{class:!0,title:!0});var V=_(A);re(E.$$.fragment,V),V.forEach(f),U.forEach(f),b=M(R),x=g(R,"DIV",{class:!0});var G=_(x);N=g(G,"PRE",{class:!0});var te=_(N);C=g(te,"CODE",{class:!0});var X=_(C);y=Zt(X,!1),X.forEach(f),te.forEach(f),G.forEach(f),R.forEach(f),c=M(P),I&&I.l(P),d=M(P),P.forEach(f),this.h()},h(){u(l,"class","text-sm font-medium text-gray-700"),u(A,"class","p-1.5 hover:bg-gray-200 rounded transition-colors"),u(A,"title","Copy code"),u(r,"class","flex items-center justify-between px-4 py-2 bg-gray-50 border-b border-gray-100"),y.a=null,u(C,"class","language-python text-sm"),u(N,"class","p-4 overflow-x-auto bg-gray-50"),u(x,"class","relative"),u(t,"class","border-b border-gray-200"),u(n,"class","bg-white rounded-lg border border-gray-200 overflow-hidden shadow-sm"),this.first=n},m(k,P){ue(k,n,P),i(n,t),i(t,r),i(r,l),i(l,a),i(l,w),i(r,T),i(r,A),le(E,A,null),i(t,b),i(t,x),i(x,N),i(N,C),y.m(S,C),i(n,c),I&&I.m(n,null),i(n,d),m=!0,p||($=ge(A,"click",v),p=!0)},p(k,P){e=k,(!m||P[0]&256)&&o!==(o=e[84]+1+"")&&Ue(w,o),(!m||P[0]&256)&&S!==(S=ft.highlight(e[82].code,ft.languages.python,"python")+"")&&y.p(S),e[82].result&&e[82].result.type==="audio"?I?(I.p(e,P),P[0]&256&&D(I,1)):(I=$n(e),I.c(),D(I,1),I.m(n,d)):I&&(st(),F(I,1,1,()=>{I=null}),rt())},i(k){m||(D(E.$$.fragment,k),D(I),m=!0)},o(k){F(E.$$.fragment,k),F(I),m=!1},d(k){k&&f(n),ne(E),I&&I.d(),p=!1,$()}}}function ar(s){let e,n,t;return e=new qt({props:{size:20}}),{c(){se(e.$$.fragment),n=ee(` + Generate speech`)},l(r){re(e.$$.fragment,r),n=Q(r,` + Generate speech`)},m(r,l){le(e,r,l),ue(r,n,l),t=!0},i(r){t||(D(e.$$.fragment,r),t=!0)},o(r){F(e.$$.fragment,r),t=!1},d(r){r&&f(n),ne(e,r)}}}function or(s){let e,n,t;return e=new dl({props:{size:20,class:"animate-spin"}}),{c(){se(e.$$.fragment),n=ee(` + Generating...`)},l(r){re(e.$$.fragment,r),n=Q(r,` + Generating...`)},m(r,l){le(e,r,l),ue(r,n,l),t=!0},i(r){t||(D(e.$$.fragment,r),t=!0)},o(r){F(e.$$.fragment,r),t=!1},d(r){r&&f(n),ne(e,r)}}}function En(s){let e,n,t,r,l,a,o,w,T,A,E,b,x,N,C,y,S,c="Share",d,m,p,$="Download",v,I,k,P,R,U,O,V,G,te,X=Ft(s[15])+"",z,Y,K,he,ve,q,W=Ft(s[16])+"",J,ce,oe,$e,_e,we,fe,be,me,Re,Ce,Fe,mt,Ke,xe,dt=Ft(s[15])+"",nt,Dt,it,Pe,lt,Ge,_t=Ft(s[16])+"",bt,ut,Ve,Qe,at,Oe,St,He,ct,H,ae,ye,Ne,Ae,vt,Ut;C=new tn({props:{size:14,class:"text-gray-600"}}),I=new en({props:{size:14,class:"text-gray-600"}});const yt=[ur,ir],wt=[];function Te(B,Se){return B[14]?0:1}U=Te(s),O=wt[U]=yt[U](s),_e=new Ul({props:{size:20,class:"text-gray-600"}});const At=[fr,cr],ke=[];function Me(B,Se){return B[14]?0:1}be=Me(s),me=ke[be]=At[be](s),Fe=new Gl({props:{size:20,class:"text-gray-600"}}),at=new tn({props:{size:14}}),ct=new en({props:{size:16,class:"text-gray-600"}}),ye=new ml({props:{size:16,class:"text-gray-600"}});let Ee=s[10]&&Sn(s);return{c(){e=h("div"),n=h("div"),t=h("div"),r=L(),l=h("div"),a=h("h3"),o=ee(s[17]),w=L(),T=h("p"),A=ee(s[3]),E=ee(" • Created 1 second ago"),b=L(),x=h("div"),N=h("button"),se(C.$$.fragment),y=L(),S=h("span"),S.textContent=c,d=L(),m=h("button"),p=h("span"),p.textContent=$,v=L(),se(I.$$.fragment),k=L(),P=h("div"),R=h("button"),O.c(),V=L(),G=h("div"),te=h("span"),z=ee(X),Y=L(),K=h("div"),he=h("div"),ve=L(),q=h("span"),J=ee(W),ce=L(),oe=h("div"),$e=h("button"),se(_e.$$.fragment),we=L(),fe=h("button"),me.c(),Re=L(),Ce=h("button"),se(Fe.$$.fragment),mt=L(),Ke=h("div"),xe=h("span"),nt=ee(dt),Dt=L(),it=h("div"),Pe=h("div"),lt=L(),Ge=h("span"),bt=ee(_t),ut=L(),Ve=h("div"),Qe=h("button"),se(at.$$.fragment),Oe=ee(` + Share`),St=L(),He=h("button"),se(ct.$$.fragment),H=L(),ae=h("button"),se(ye.$$.fragment),Ne=L(),Ee&&Ee.c(),this.h()},l(B){e=g(B,"DIV",{class:!0});var Se=_(e);n=g(Se,"DIV",{class:!0});var j=_(n);t=g(j,"DIV",{class:!0}),_(t).forEach(f),r=M(j),l=g(j,"DIV",{class:!0});var ie=_(l);a=g(ie,"H3",{class:!0});var Ie=_(a);o=Q(Ie,s[17]),Ie.forEach(f),w=M(ie),T=g(ie,"P",{class:!0});var de=_(T);A=Q(de,s[3]),E=Q(de," • Created 1 second ago"),de.forEach(f),ie.forEach(f),b=M(j),x=g(j,"DIV",{class:!0});var ot=_(x);N=g(ot,"BUTTON",{class:!0});var Tt=_(N);re(C.$$.fragment,Tt),y=M(Tt),S=g(Tt,"SPAN",{class:!0,"data-svelte-h":!0}),De(S)!=="svelte-hbn8gl"&&(S.textContent=c),Tt.forEach(f),d=M(ot),m=g(ot,"BUTTON",{class:!0});var Pt=_(m);p=g(Pt,"SPAN",{class:!0,"data-svelte-h":!0}),De(p)!=="svelte-h01aeg"&&(p.textContent=$),v=M(Pt),re(I.$$.fragment,Pt),Pt.forEach(f),ot.forEach(f),j.forEach(f),k=M(Se),P=g(Se,"DIV",{class:!0});var Ct=_(P);R=g(Ct,"BUTTON",{class:!0});var zt=_(R);O.l(zt),zt.forEach(f),V=M(Ct),G=g(Ct,"DIV",{class:!0});var et=_(G);te=g(et,"SPAN",{class:!0});var gt=_(te);z=Q(gt,X),gt.forEach(f),Y=M(et),K=g(et,"DIV",{class:!0});var Ot=_(K);he=g(Ot,"DIV",{class:!0,style:!0}),_(he).forEach(f),Ot.forEach(f),ve=M(et),q=g(et,"SPAN",{class:!0});var Bt=_(q);J=Q(Bt,W),Bt.forEach(f),et.forEach(f),Ct.forEach(f),ce=M(Se),oe=g(Se,"DIV",{class:!0});var tt=_(oe);$e=g(tt,"BUTTON",{class:!0,title:!0});var Mt=_($e);re(_e.$$.fragment,Mt),Mt.forEach(f),we=M(tt),fe=g(tt,"BUTTON",{class:!0});var Lt=_(fe);me.l(Lt),Lt.forEach(f),Re=M(tt),Ce=g(tt,"BUTTON",{class:!0,title:!0});var It=_(Ce);re(Fe.$$.fragment,It),It.forEach(f),mt=M(tt),Ke=g(tt,"DIV",{class:!0});var ht=_(Ke);xe=g(ht,"SPAN",{class:!0});var jt=_(xe);nt=Q(jt,dt),jt.forEach(f),Dt=M(ht),it=g(ht,"DIV",{class:!0});var xt=_(it);Pe=g(xt,"DIV",{class:!0,style:!0}),_(Pe).forEach(f),xt.forEach(f),lt=M(ht),Ge=g(ht,"SPAN",{class:!0});var Rt=_(Ge);bt=Q(Rt,_t),Rt.forEach(f),ht.forEach(f),ut=M(tt),Ve=g(tt,"DIV",{class:!0});var Nt=_(Ve);Qe=g(Nt,"BUTTON",{class:!0});var pt=_(Qe);re(at.$$.fragment,pt),Oe=Q(pt,` + Share`),pt.forEach(f),St=M(Nt),He=g(Nt,"BUTTON",{class:!0,title:!0});var nn=_(He);re(ct.$$.fragment,nn),nn.forEach(f),H=M(Nt),ae=g(Nt,"BUTTON",{class:!0,title:!0});var ln=_(ae);re(ye.$$.fragment,ln),ln.forEach(f),Nt.forEach(f),tt.forEach(f),Ne=M(Se),Ee&&Ee.l(Se),Se.forEach(f),this.h()},h(){u(t,"class","w-2 h-2 bg-green-500 rounded-full"),u(a,"class","font-medium text-gray-900 text-sm"),u(T,"class","text-xs text-gray-500"),u(l,"class","flex-1"),u(S,"class","text-gray-700"),u(N,"class","flex items-center gap-1.5 px-3 py-1.5 text-sm border border-gray-200 rounded-md hover:bg-gray-50 transition-colors"),u(p,"class","text-gray-700"),u(m,"class","flex items-center gap-1.5 px-3 py-1.5 text-sm border border-gray-200 rounded-md hover:bg-gray-50 transition-colors"),u(x,"class","flex items-center gap-2"),u(n,"class","flex items-center gap-3 mb-4"),u(R,"class","w-8 h-8 bg-black rounded-full flex items-center justify-center hover:bg-gray-800 transition-colors"),u(te,"class","text-xs text-gray-500 font-mono"),u(he,"class","h-full bg-gradient-to-r from-amber-400 to-orange-500 rounded-full transition-all"),Gt(he,"width",s[15]/s[16]*100+"%"),u(K,"class","flex-1 h-1 bg-gray-200 rounded-full cursor-pointer"),u(q,"class","text-xs text-gray-500 font-mono"),u(G,"class","flex-1 flex items-center gap-2"),u(P,"class","flex items-center gap-3 mb-4"),u($e,"class","p-2 hover:bg-gray-100 rounded-full"),u($e,"title","Skip back"),u(fe,"class","w-12 h-12 bg-black rounded-full flex items-center justify-center hover:bg-gray-800 transition-colors"),u(Ce,"class","p-2 hover:bg-gray-100 rounded-full"),u(Ce,"title","Skip forward"),u(xe,"class","text-xs text-gray-500 font-mono"),u(Pe,"class","h-full bg-gradient-to-r from-amber-400 to-orange-500 rounded-full transition-all"),Gt(Pe,"width",s[15]/s[16]*100+"%"),u(it,"class","flex-1 h-1 bg-gray-200 rounded-full"),u(Ge,"class","text-xs text-gray-500 font-mono"),u(Ke,"class","flex-1 flex items-center gap-3"),u(Qe,"class","flex items-center gap-2 px-3 py-1.5 text-sm border border-gray-200 rounded-md hover:bg-gray-50"),u(He,"class","p-2 hover:bg-gray-100 rounded-md"),u(He,"title","Download"),u(ae,"class","p-2 hover:bg-gray-100 rounded-md"),u(ae,"title","More options"),u(Ve,"class","flex items-center gap-2"),u(oe,"class","flex items-center gap-4 mb-4"),u(e,"class","p-4 border border-gray-200 rounded-lg bg-white")},m(B,Se){ue(B,e,Se),i(e,n),i(n,t),i(n,r),i(n,l),i(l,a),i(a,o),i(l,w),i(l,T),i(T,A),i(T,E),i(n,b),i(n,x),i(x,N),le(C,N,null),i(N,y),i(N,S),i(x,d),i(x,m),i(m,p),i(m,v),le(I,m,null),i(e,k),i(e,P),i(P,R),wt[U].m(R,null),i(P,V),i(P,G),i(G,te),i(te,z),i(G,Y),i(G,K),i(K,he),i(G,ve),i(G,q),i(q,J),i(e,ce),i(e,oe),i(oe,$e),le(_e,$e,null),i(oe,we),i(oe,fe),ke[be].m(fe,null),i(oe,Re),i(oe,Ce),le(Fe,Ce,null),i(oe,mt),i(oe,Ke),i(Ke,xe),i(xe,nt),i(Ke,Dt),i(Ke,it),i(it,Pe),i(Ke,lt),i(Ke,Ge),i(Ge,bt),i(oe,ut),i(oe,Ve),i(Ve,Qe),le(at,Qe,null),i(Qe,Oe),i(Ve,St),i(Ve,He),le(ct,He,null),i(Ve,H),i(Ve,ae),le(ye,ae,null),i(e,Ne),Ee&&Ee.m(e,null),Ae=!0,vt||(Ut=[ge(N,"click",Pn),ge(m,"click",s[32]),ge(R,"click",s[27]),ge(fe,"click",s[27]),ge(Qe,"click",Pn),ge(He,"click",s[32])],vt=!0)},p(B,Se){(!Ae||Se[0]&131072)&&Ue(o,B[17]),(!Ae||Se[0]&8)&&Ue(A,B[3]);let j=U;U=Te(B),U!==j&&(st(),F(wt[j],1,1,()=>{wt[j]=null}),rt(),O=wt[U],O||(O=wt[U]=yt[U](B),O.c()),D(O,1),O.m(R,null)),(!Ae||Se[0]&32768)&&X!==(X=Ft(B[15])+"")&&Ue(z,X),(!Ae||Se[0]&98304)&&Gt(he,"width",B[15]/B[16]*100+"%"),(!Ae||Se[0]&65536)&&W!==(W=Ft(B[16])+"")&&Ue(J,W);let ie=be;be=Me(B),be!==ie&&(st(),F(ke[ie],1,1,()=>{ke[ie]=null}),rt(),me=ke[be],me||(me=ke[be]=At[be](B),me.c()),D(me,1),me.m(fe,null)),(!Ae||Se[0]&32768)&&dt!==(dt=Ft(B[15])+"")&&Ue(nt,dt),(!Ae||Se[0]&98304)&&Gt(Pe,"width",B[15]/B[16]*100+"%"),(!Ae||Se[0]&65536)&&_t!==(_t=Ft(B[16])+"")&&Ue(bt,_t),B[10]?Ee?Ee.p(B,Se):(Ee=Sn(B),Ee.c(),Ee.m(e,null)):Ee&&(Ee.d(1),Ee=null)},i(B){Ae||(D(C.$$.fragment,B),D(I.$$.fragment,B),D(O),D(_e.$$.fragment,B),D(me),D(Fe.$$.fragment,B),D(at.$$.fragment,B),D(ct.$$.fragment,B),D(ye.$$.fragment,B),Ae=!0)},o(B){F(C.$$.fragment,B),F(I.$$.fragment,B),F(O),F(_e.$$.fragment,B),F(me),F(Fe.$$.fragment,B),F(at.$$.fragment,B),F(ct.$$.fragment,B),F(ye.$$.fragment,B),Ae=!1},d(B){B&&f(e),ne(C),ne(I),wt[U].d(),ne(_e),ke[be].d(),ne(Fe),ne(at),ne(ct),ne(ye),Ee&&Ee.d(),vt=!1,Et(Ut)}}}function ir(s){let e,n;return e=new qt({props:{size:14,class:"text-white ml-0.5"}}),{c(){se(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){le(e,t,r),n=!0},i(t){n||(D(e.$$.fragment,t),n=!0)},o(t){F(e.$$.fragment,t),n=!1},d(t){ne(e,t)}}}function ur(s){let e;return{c(){e=h("div"),this.h()},l(n){e=g(n,"DIV",{class:!0}),_(e).forEach(f),this.h()},h(){u(e,"class","pause-filled text-white")},m(n,t){ue(n,e,t)},i:Vt,o:Vt,d(n){n&&f(e)}}}function cr(s){let e,n;return e=new qt({props:{size:20,class:"text-white ml-0.5"}}),{c(){se(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){le(e,t,r),n=!0},i(t){n||(D(e.$$.fragment,t),n=!0)},o(t){F(e.$$.fragment,t),n=!1},d(t){ne(e,t)}}}function fr(s){let e;return{c(){e=h("div"),this.h()},l(n){e=g(n,"DIV",{class:!0}),_(e).forEach(f),this.h()},h(){u(e,"class","pause-filled text-white scale-150")},m(n,t){ue(n,e,t)},i:Vt,o:Vt,d(n){n&&f(e)}}}function Sn(s){let e,n,t,r;return{c(){e=h("audio"),this.h()},l(l){e=g(l,"AUDIO",{src:!0,style:!0}),_(e).forEach(f),this.h()},h(){Kt(e.src,n=s[10])||u(e,"src",n),Gt(e,"display","none")},m(l,a){ue(l,e,a),s[45](e),t||(r=[ge(e,"loadedmetadata",s[28]),ge(e,"timeupdate",s[29]),ge(e,"play",s[30]),ge(e,"pause",s[31])],t=!0)},p(l,a){a[0]&1024&&!Kt(e.src,n=l[10])&&u(e,"src",n)},d(l){l&&f(e),s[45](null),t=!1,Et(r)}}}function An(s){let e=s[77].name+"",n,t,r=s[77].badge&&dr(s);return{c(){n=ee(e),r&&r.c(),t=kt()},l(l){n=Q(l,e),r&&r.l(l),t=kt()},m(l,a){ue(l,n,a),r&&r.m(l,a),ue(l,t,a)},p(l,a){l[77].badge&&r.p(l,a)},d(l){l&&(f(n),f(t)),r&&r.d(l)}}}function dr(s){let e,n,t,r=s[77].badge+"",l,a;return{c(){e=ee(" "),n=h("span"),t=ee("("),l=ee(r),a=ee(")"),this.h()},l(o){e=Q(o," "),n=g(o,"SPAN",{class:!0});var w=_(n);t=Q(w,"("),l=Q(w,r),a=Q(w,")"),w.forEach(f),this.h()},h(){u(n,"class","text-xs text-gray-500")},m(o,w){ue(o,e,w),ue(o,n,w),i(n,t),i(n,l),i(n,a)},p:Vt,d(o){o&&(f(e),f(n))}}}function Tn(s){let e,n=s[77].name===s[4]&&An(s);return{c(){n&&n.c(),e=kt()},l(t){n&&n.l(t),e=kt()},m(t,r){n&&n.m(t,r),ue(t,e,r)},p(t,r){t[77].name===t[4]?n?n.p(t,r):(n=An(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){t&&f(e),n&&n.d(t)}}}function In(s){let e,n=$t(s[24]),t=[];for(let r=0;r{k[G]=null}),rt(),c=k[S],c||(c=k[S]=I[S](s),c.c()),D(c,1),c.m(y,null)),(!p||V[0]&8&&m!==(m="w-full flex items-center justify-between p-1.5 rounded-lg hover:bg-gray-50 transition-colors text-left group border border-transparent "+(s[74].name===s[3]?"bg-gray-100 border-gray-200":"")))&&u(e,"class",m)},i(O){p||(D(c),p=!0)},o(O){F(c),p=!1},d(O){O&&f(e),k[S].d(),$=!1,Et(v)}}}function Dn(s){let e,n;return{c(){e=h("div"),n=ee(s[11]),this.h()},l(t){e=g(t,"DIV",{class:!0});var r=_(e);n=Q(r,s[11]),r.forEach(f),this.h()},h(){u(e,"class","fixed bottom-4 right-4 px-4 py-2 bg-gray-900 text-white rounded-lg shadow-lg z-50 animate-fade-in svelte-u8edqi")},m(t,r){ue(t,e,r),i(e,n)},p(t,r){r[0]&2048&&Ue(n,t[11])},d(t){t&&f(e)}}}function Cn(s){let e,n,t,r,l,a,o,w,T,A,E,b,x="An error occurred while processing your request",N,C,y,S,c,d,m,p,$,v,I,k,P="Close",R,U,O;a=new Xn({props:{size:20,class:"text-red-600"}}),y=new Yl({props:{size:20,class:"text-gray-500"}});let V=s[22]&&Fn(s);return $=new Wt({props:{size:16}}),{c(){e=h("div"),n=h("div"),t=h("div"),r=h("div"),l=h("div"),se(a.$$.fragment),o=L(),w=h("div"),T=h("h3"),A=ee(s[21]),E=L(),b=h("p"),b.textContent=x,N=L(),C=h("button"),se(y.$$.fragment),S=L(),c=h("div"),V&&V.c(),d=L(),m=h("div"),p=h("button"),se($.$$.fragment),v=ee(` + Copy Error`),I=L(),k=h("button"),k.textContent=P,this.h()},l(G){e=g(G,"DIV",{class:!0});var te=_(e);n=g(te,"DIV",{class:!0});var X=_(n);t=g(X,"DIV",{class:!0});var z=_(t);r=g(z,"DIV",{class:!0});var Y=_(r);l=g(Y,"DIV",{class:!0});var K=_(l);re(a.$$.fragment,K),K.forEach(f),o=M(Y),w=g(Y,"DIV",{class:!0});var he=_(w);T=g(he,"H3",{class:!0});var ve=_(T);A=Q(ve,s[21]),ve.forEach(f),E=M(he),b=g(he,"P",{class:!0,"data-svelte-h":!0}),De(b)!=="svelte-1l3zl3"&&(b.textContent=x),he.forEach(f),Y.forEach(f),N=M(z),C=g(z,"BUTTON",{class:!0,title:!0});var q=_(C);re(y.$$.fragment,q),q.forEach(f),z.forEach(f),S=M(X),c=g(X,"DIV",{class:!0});var W=_(c);V&&V.l(W),W.forEach(f),d=M(X),m=g(X,"DIV",{class:!0});var J=_(m);p=g(J,"BUTTON",{class:!0});var ce=_(p);re($.$$.fragment,ce),v=Q(ce,` + Copy Error`),ce.forEach(f),I=M(J),k=g(J,"BUTTON",{class:!0,"data-svelte-h":!0}),De(k)!=="svelte-1nyppew"&&(k.textContent=P),J.forEach(f),X.forEach(f),te.forEach(f),this.h()},h(){u(l,"class","w-10 h-10 bg-red-100 rounded-full flex items-center justify-center flex-shrink-0"),u(T,"class","text-lg font-semibold text-gray-900 truncate"),u(b,"class","text-sm text-gray-600"),u(w,"class","min-w-0"),u(r,"class","flex items-center gap-3 min-w-0"),u(C,"class","p-2 hover:bg-red-100 rounded-full transition-colors flex-shrink-0"),u(C,"title","Close"),u(t,"class","flex items-center justify-between p-6 border-b border-gray-200 bg-red-50 flex-shrink-0"),u(c,"class","p-6 overflow-y-auto flex-1 min-h-0"),u(p,"class","flex items-center gap-2 px-4 py-2 text-gray-700 hover:bg-gray-200 rounded-lg transition-colors"),u(k,"class","px-6 py-2 bg-red-600 text-white rounded-lg hover:bg-red-700 transition-colors"),u(m,"class","flex items-center justify-end gap-3 p-6 border-t border-gray-200 bg-gray-50 flex-shrink-0"),u(n,"class","bg-white rounded-xl shadow-2xl max-w-2xl w-full max-h-[80vh] flex flex-col"),u(e,"class","fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4")},m(G,te){ue(G,e,te),i(e,n),i(n,t),i(t,r),i(r,l),le(a,l,null),i(r,o),i(r,w),i(w,T),i(T,A),i(w,E),i(w,b),i(t,N),i(t,C),le(y,C,null),i(n,S),i(n,c),V&&V.m(c,null),i(n,d),i(n,m),i(m,p),le($,p,null),i(p,v),i(m,I),i(m,k),R=!0,U||(O=[ge(C,"click",s[37]),ge(p,"click",s[38]),ge(k,"click",s[37])],U=!0)},p(G,te){(!R||te[0]&2097152)&&Ue(A,G[21]),G[22]?V?V.p(G,te):(V=Fn(G),V.c(),V.m(c,null)):V&&(V.d(1),V=null)},i(G){R||(D(a.$$.fragment,G),D(y.$$.fragment,G),D($.$$.fragment,G),R=!0)},o(G){F(a.$$.fragment,G),F(y.$$.fragment,G),F($.$$.fragment,G),R=!1},d(G){G&&f(e),ne(a),ne(y),V&&V.d(),ne($),U=!1,Et(O)}}}function Fn(s){let e,n,t="Error Details:",r,l,a;function o(A,E){return E[0]&4194304&&(a=null),a==null&&(a=!!A[22].includes("exceeded your monthly included credits")),a?_r:mr}let w=o(s,[-1,-1,-1]),T=w(s);return{c(){e=h("div"),n=h("h4"),n.textContent=t,r=L(),l=h("pre"),T.c(),this.h()},l(A){e=g(A,"DIV",{class:!0});var E=_(e);n=g(E,"H4",{class:!0,"data-svelte-h":!0}),De(n)!=="svelte-3lmggt"&&(n.textContent=t),r=M(E),l=g(E,"PRE",{class:!0});var b=_(l);T.l(b),b.forEach(f),E.forEach(f),this.h()},h(){u(n,"class","text-sm font-medium text-gray-900 mb-2"),u(l,"class","text-xs text-gray-700 whitespace-pre-wrap font-mono leading-relaxed break-words"),u(e,"class","bg-gray-50 rounded-lg p-4 border")},m(A,E){ue(A,e,E),i(e,n),i(e,r),i(e,l),T.m(l,null)},p(A,E){w===(w=o(A,E))&&T?T.p(A,E):(T.d(1),T=w(A),T&&(T.c(),T.m(l,null)))},d(A){A&&f(e),T.d()}}}function mr(s){let e;return{c(){e=ee(s[22])},l(n){e=Q(n,s[22])},m(n,t){ue(n,e,t)},p(n,t){t[0]&4194304&&Ue(e,n[22])},d(n){n&&f(e)}}}function _r(s){let e,n=s[22].replace("Subscribe to PRO",'Subscribe to PRO')+"",t;return{c(){e=new Jt(!1),t=kt(),this.h()},l(r){e=Zt(r,!1),t=kt(),this.h()},h(){e.a=t},m(r,l){e.m(n,r,l),ue(r,t,l)},p(r,l){l[0]&4194304&&n!==(n=r[22].replace("Subscribe to PRO",'Subscribe to PRO')+"")&&e.p(n)},d(r){r&&(f(t),e.d())}}}function br(s){let e,n,t,r,l,a,o,w,T,A,E,b,x,N,C,y,S,c,d,m,p,$;o=new yl({props:{size:14}}),b=new nl({props:{size:14}});let v=s[8].length>0&&mn(s);const I=[Ql,Jl],k=[];function P(O,V){return O[5]==="ui"?0:1}y=P(s),S=k[y]=I[y](s);let R=s[11]&&Dn(s),U=s[20]&&Cn(s);return{c(){e=h("div"),n=h("header"),t=h("div"),r=h("div"),l=h("div"),a=h("button"),se(o.$$.fragment),w=ee(` + UI`),A=L(),E=h("button"),se(b.$$.fragment),x=ee(` + Code Recorder + `),v&&v.c(),C=L(),S.c(),c=L(),R&&R.c(),d=L(),U&&U.c(),this.h()},l(O){e=g(O,"DIV",{class:!0});var V=_(e);n=g(V,"HEADER",{class:!0});var G=_(n);t=g(G,"DIV",{class:!0});var te=_(t);r=g(te,"DIV",{class:!0});var X=_(r);l=g(X,"DIV",{class:!0});var z=_(l);a=g(z,"BUTTON",{class:!0});var Y=_(a);re(o.$$.fragment,Y),w=Q(Y,` + UI`),Y.forEach(f),A=M(z),E=g(z,"BUTTON",{class:!0});var K=_(E);re(b.$$.fragment,K),x=Q(K,` + Code Recorder + `),v&&v.l(K),K.forEach(f),z.forEach(f),X.forEach(f),te.forEach(f),G.forEach(f),C=M(V),S.l(V),c=M(V),R&&R.l(V),d=M(V),U&&U.l(V),V.forEach(f),this.h()},h(){u(a,"class",T="flex items-center gap-1.5 px-3 py-1 text-sm font-medium rounded transition-colors "+(s[5]==="ui"?"bg-white shadow-sm":"text-gray-600")),u(E,"class",N="flex items-center gap-1.5 px-3 py-1 text-sm font-medium rounded transition-colors relative "+(s[5]==="code"?"bg-white shadow-sm":"text-gray-600")),u(l,"class","flex items-center bg-gray-100 rounded-md p-0.5"),u(r,"class","flex items-center gap-2"),u(t,"class","flex items-center justify-end px-4 py-2"),u(n,"class","border-b border-gray-200 bg-white"),u(e,"class","flex flex-col h-full")},m(O,V){ue(O,e,V),i(e,n),i(n,t),i(t,r),i(r,l),i(l,a),le(o,a,null),i(a,w),i(l,A),i(l,E),le(b,E,null),i(E,x),v&&v.m(E,null),i(e,C),k[y].m(e,null),i(e,c),R&&R.m(e,null),i(e,d),U&&U.m(e,null),m=!0,p||($=[ge(a,"click",s[42]),ge(E,"click",s[43]),ge(e,"click",s[34])],p=!0)},p(O,V){(!m||V[0]&32&&T!==(T="flex items-center gap-1.5 px-3 py-1 text-sm font-medium rounded transition-colors "+(O[5]==="ui"?"bg-white shadow-sm":"text-gray-600")))&&u(a,"class",T),O[8].length>0?v?v.p(O,V):(v=mn(O),v.c(),v.m(E,null)):v&&(v.d(1),v=null),(!m||V[0]&32&&N!==(N="flex items-center gap-1.5 px-3 py-1 text-sm font-medium rounded transition-colors relative "+(O[5]==="code"?"bg-white shadow-sm":"text-gray-600")))&&u(E,"class",N);let G=y;y=P(O),y===G?k[y].p(O,V):(st(),F(k[G],1,1,()=>{k[G]=null}),rt(),S=k[y],S?S.p(O,V):(S=k[y]=I[y](O),S.c()),D(S,1),S.m(e,c)),O[11]?R?R.p(O,V):(R=Dn(O),R.c(),R.m(e,d)):R&&(R.d(1),R=null),O[20]?U?(U.p(O,V),V[0]&1048576&&D(U,1)):(U=Cn(O),U.c(),D(U,1),U.m(e,null)):U&&(st(),F(U,1,1,()=>{U=null}),rt())},i(O){m||(D(o.$$.fragment,O),D(b.$$.fragment,O),D(S),D(U),m=!0)},o(O){F(o.$$.fragment,O),F(b.$$.fragment,O),F(S),F(U),m=!1},d(O){O&&f(e),ne(o),ne(b),v&&v.d(),k[y].d(),R&&R.d(),U&&U.d(),p=!1,Et($)}}}function Ft(s){const e=Math.floor(s/60),n=Math.floor(s%60);return`${e}:${n.toString().padStart(2,"0")}`}function Pn(){}function vr(s,e){const n=document.createElement("a");n.href=s,n.download=`${e||"audio"}.wav`,document.body.appendChild(n),n.click(),document.body.removeChild(n)}function On(s){if(!s)return"0:00";const e=Math.floor(s/60),n=Math.floor(s%60);return`${e}:${n.toString().padStart(2,"0")}`}function yr(s,e,n){let t="In a hole in the ground there lived a hobbit. Not a nasty, dirty, wet hole, filled with the ends of worms and an oozy smell, nor yet a dry, bare, sandy hole with nothing in it to sit down on or to eat: it was a hobbit-hole, and that means comfort.",r="Andrew",l="Chatterbox",a="api",o="ui",w=!1,T=!1,A=[],E=oe(),b=null,x=null,N=null,C=.25,y=.7,S=!1,c=0,d=0,m="",p=null,$=null,v=null,I=!1,k="",P="",R=null;const U=["It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness.","It is a truth universally acknowledged, that a single man in possession of a good fortune, must be in want of a wife.","All happy families are alike; each unhappy family is unhappy in its own way."];let O=0;const V=[{id:"chatterbox",name:"Chatterbox",badge:"recommended"},{id:"kokoro",name:"Kokoro",badge:"coming soon",disabled:!0}],G=[{id:"andrew",name:"Andrew",description:"Older British man who speaks clearly and kindly",sample:"/voices/andrew.mp3",preview_url:"https://huggingface.co/spaces/abidlabs/hfstudio/resolve/main/frontend/static/voices/andrew.mp3"},{id:"lily",name:"Jasmine",description:"Warm, conversational tone of a woman in her 30s",sample:"/voices/lily.mp3",preview_url:"https://huggingface.co/spaces/abidlabs/hfstudio/resolve/main/frontend/static/voices/lily.mp3"},{id:"pirate",name:"Pirate",description:"Young pirate that speaks gruffly and with excitement",sample:"/voices/pirate.mp3",preview_url:"https://huggingface.co/spaces/abidlabs/hfstudio/resolve/main/frontend/static/voices/pirate.mp3"},{id:"fairy",name:"Fairy",description:"High and airy female voice that bursts with excitement",sample:"/voices/fairy.mp3",preview_url:"https://huggingface.co/spaces/abidlabs/hfstudio/resolve/main/frontend/static/voices/fairy.mp3"}];async function te(){if(!t.trim())return;if(!(await fetch("/api/auth/user",{credentials:"include"})).ok){window.dispatchEvent(new CustomEvent("show-login-prompt"));return}n(7,T=!0),n(10,x=null),n(15,c=0),b||n(1,b=_e());const ae=we();n(14,S=!1),n(17,m=t.length>30?t.substring(0,30)+"...":t);try{const ye={text:t,voice_id:r.toLowerCase(),model_id:l.toLowerCase(),mode:a,parameters:{exaggeration:C,temperature:y}},Ne=await fetch("/api/tts/generate",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(ye)});if(!Ne.ok){const vt=await Ne.text();throw new Error(`HTTP error! status: ${Ne.status}, body: ${vt}`)}const Ae=await Ne.json();if(Ae.success&&Ae.audio_url)n(10,x=Ae.audio_url),J(ae,{type:"audio",url:Ae.audio_url,title:m,duration:Ae.duration}),o==="ui"&&setTimeout(()=>{p&&p.play().catch(()=>{})},100);else{const vt=Ae.error||"Unknown error occurred";be("Generation Failed",vt),n(10,x=null)}}catch{be("Network Error","Failed to connect to the server. Please check your connection and try again."),n(10,x=null)}finally{n(7,T=!1)}}function X(){p&&(S?p.pause():p.play())}function z(){p&&n(16,d=p.duration)}function Y(){p&&n(15,c=p.currentTime)}function K(){n(14,S=!0)}function he(){n(14,S=!1)}function ve(){if(x){const H=document.createElement("a");H.href=x,H.download="speech.wav",H.click()}}function q(H,ae){if(ae.stopPropagation(),v===H.name)$&&($.pause(),$.currentTime=0),n(19,v=null);else{$&&$.pause(),n(19,v=H.name);const ye=H.sample||"/samples/harvard.wav";$?$.src=ye:($=new Audio(ye),$.addEventListener("ended",()=>{n(19,v=null)})),$.play().catch(Ne=>{n(19,v=null)})}}function W(H){H.target.closest(".model-dropdown")||n(6,w=!1)}function J(H,ae=null){const ye={id:Date.now()+Math.random(),code:H,result:ae};return n(8,A=[...A,ye]),ye}function ce(){n(8,A=[]),n(9,E=oe()),n(1,b=null)}function oe(){return a==="local"?`pip install huggingface-hub hfstudio uv +hfstudio start ${l.toLowerCase()} --port 7861`:"pip install huggingface-hub"}function $e(){return a==="local"?'client = InferenceClient(base_url="http://localhost:7861/api/v1")':`client = InferenceClient( + api_key="YOUR_HF_TOKEN", # Get your token from https://huggingface.co/settings/tokens + model="${l.toLowerCase()==="chatterbox"?"ResembleAI/chatterbox":l.toLowerCase()}", +)`}function _e(){const H=$e();return a==="local"?`from huggingface_hub import InferenceClient + +${H}`:`from huggingface_hub import InferenceClient + +${H}`}function we(){const H=G.find(ye=>ye.name===r),ae=(H==null?void 0:H.preview_url)||(H==null?void 0:H.sample);return a==="local"?`text = """${t}""" + +# audio is in bytes format +audio = client.text_to_speech( + text, + extra_body={ + "audio_url": "${ae}", + "exaggeration": ${C}, + "temperature": ${y} + } +)`:`text = """${t}""" + +# audio is in bytes format +audio = client.text_to_speech( + text, + extra_body={ + "audio_url": "${ae}", + "exaggeration": ${C}, + "temperature": ${y} + } +)`}function fe(H,ae="Copied to clipboard!"){navigator.clipboard.writeText(H).then(()=>{n(11,N=ae),setTimeout(()=>{n(11,N=null)},2e3)})}function be(H,ae=""){n(21,k=H),n(22,P=ae),n(20,I=!0)}function me(){n(20,I=!1),n(21,k=""),n(22,P="")}function Re(){const H=P?`${k} + +Details: +${P}`:k;fe(H,"Error message copied!")}function Ce(){const H=[];if(E){const Ne=E.includes("pip install")||E.includes("hfstudio start")?"bash":"";H.push(`## Setup (Run in Terminal) + +\`\`\`${Ne} +${E} +\`\`\``)}b&&H.push(`## Imports (Python) + +\`\`\`python +${b} +\`\`\``),A.forEach((ye,Ne)=>{H.push(`## Cell ${Ne+1} + +\`\`\`python +${ye.code} +\`\`\``)});const ae=H.join(` + +`);fe(ae,"All code copied as Markdown!")}Hn(()=>{window.addEventListener("storage",H=>{H.key})});function Fe(H){H.audioElement||(H.audioElement=new Audio(H.result.url),H.audioElement.addEventListener("ended",()=>{H.isPlaying=!1,n(8,A=[...A])})),H.isPlaying?(H.audioElement.pause(),H.isPlaying=!1):(A.forEach(ae=>{ae!==H&&ae.isPlaying&&ae.audioElement&&(ae.audioElement.pause(),ae.isPlaying=!1)}),H.audioElement.play(),H.isPlaying=!0),n(8,A=[...A])}function mt(){O=(O+1)%U.length,n(2,t=U[O])}const Ke=()=>n(5,o="ui"),xe=()=>n(5,o="code");function dt(){t=this.value,n(2,t)}function nt(H){sn[H?"unshift":"push"](()=>{p=H,n(18,p)})}const Dt=()=>n(6,w=!w),it=H=>{H.disabled||(n(4,l=H.name),n(6,w=!1))},Pe=(H,ae)=>q(H,ae),lt=H=>n(3,r=H.name);function Ge(){C=an(this.value),n(12,C)}function _t(){y=an(this.value),n(13,y)}const bt=()=>n(0,a="api"),ut=()=>n(0,a="local"),Ve=()=>fe(E),Qe=()=>fe(b),at=H=>fe(H.code),Oe=H=>Fe(H),St=H=>vr(H.result.url,H.result.title);function He(H,ae,ye){sn[H?"unshift":"push"](()=>{ae[ye].audioElement=H,n(8,A)})}const ct=(H,ae,ye)=>n(8,ae[ye].isPlaying=!1,A);return s.$$.update=()=>{s.$$.dirty[0]&3&&a&&(n(9,E=oe()),b&&n(1,b=_e()))},[a,b,t,r,l,o,w,T,A,E,x,N,C,y,S,c,d,m,p,v,I,k,P,R,V,G,te,X,z,Y,K,he,ve,q,W,ce,fe,me,Re,Ce,Fe,mt,Ke,xe,dt,nt,Dt,it,Pe,lt,Ge,_t,bt,ut,Ve,Qe,at,Oe,St,He,ct]}class kr extends ze{constructor(e){super(),Be(this,e,yr,br,Le,{},null,[-1,-1,-1])}}export{kr as component};