GitHub Action commited on
Commit
28ae0d4
Β·
1 Parent(s): 21bc932

Sync from GitHub: d3d8a38d04826ae0c2b16b7ce83207e7f2f9e122

Browse files
.gitattributes CHANGED
@@ -7,3 +7,9 @@
7
  *.mp4 filter=lfs diff=lfs merge=lfs -text
8
  *.webm filter=lfs diff=lfs merge=lfs -text
9
  *.pdf filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
7
  *.mp4 filter=lfs diff=lfs merge=lfs -text
8
  *.webm filter=lfs diff=lfs merge=lfs -text
9
  *.pdf filter=lfs diff=lfs merge=lfs -text
10
+ hfstudio/static/assets/hf-logo.png filter=lfs diff=lfs merge=lfs -text
11
+ hfstudio/static/assets/hf-studio-logo.png filter=lfs diff=lfs merge=lfs -text
12
+ frontend/static/assets/hf-logo.png filter=lfs diff=lfs merge=lfs -text
13
+ frontend/static/assets/hf-studio-logo.png filter=lfs diff=lfs merge=lfs -text
14
+ hfstudio/static/samples/harvard.wav filter=lfs diff=lfs merge=lfs -text
15
+ frontend/static/samples/harvard.wav filter=lfs diff=lfs merge=lfs -text
frontend/src/routes/+page.svelte CHANGED
@@ -702,7 +702,7 @@ print(f"βœ“ Audio saved to {output_filename}")
702
 
703
  <!-- Pricing info -->
704
  <div class="mt-2 text-xs text-gray-500">
705
- $0.025 per 1000 characters (<a href="https://huggingface.co/settings/billing" target="_blank" class="text-amber-600 hover:text-amber-700 underline">Hugging Face billing</a>)
706
  </div>
707
  </div>
708
 
 
702
 
703
  <!-- Pricing info -->
704
  <div class="mt-2 text-xs text-gray-500">
705
+ Estimated $0.025 per 1000 characters β€’ <a href="https://huggingface.co/settings/billing" target="_blank" class="text-amber-600 hover:text-amber-700 underline">Billing ‴</a>
706
  </div>
707
  </div>
708
 
hfstudio/static/_app/immutable/chunks/Ybk50QWZ.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ var St=Object.defineProperty;var kt=(e,t,n)=>t in e?St(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var R=(e,t,n)=>kt(e,typeof t!="symbol"?t+"":t,n);import{S as Et,F as At,X as Rt,Y as Tt,Z as It,_ as Ut,$ as Lt,a0 as $t,v as ve,a1 as xt,G as be,A as ge,s as Ct}from"./Bqgpa-5T.js";class Ze extends Et{constructor(n){if(!n||!n.target&&!n.$$inline)throw new Error("'target' is a required option");super();R(this,"$$prop_def");R(this,"$$events_def");R(this,"$$slot_def")}$destroy(){super.$destroy(),this.$destroy=()=>{console.warn("Component was already destroyed")}}$capture_state(){}$inject_state(){}}class Pt extends Ze{}const Ot=Object.freeze(Object.defineProperty({__proto__:null,SvelteComponent:Ze,SvelteComponentTyped:Pt,afterUpdate:At,beforeUpdate:Rt,createEventDispatcher:Tt,getAllContexts:It,getContext:Ut,hasContext:Lt,onDestroy:$t,onMount:ve,setContext:xt,tick:be},Symbol.toStringTag,{value:"Module"}));class ie{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Re{constructor(t,n){this.status=t,this.location=n}}class Te extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function Nt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function jt(e){return e.split("%25").map(decodeURI).join("%25")}function Dt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function me({href:e}){return e.split("#")[0]}function Ft(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return l=>(n(l),i[o](l));t();const c=Reflect.get(i,o);return typeof c=="function"?c.bind(i):c}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const i of s)Object.defineProperty(a,i,{get(){return t(),e[i]},enumerable:!0,configurable:!0});return a}function Bt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;const Mt=new TextDecoder;function Vt(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const qt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:(t==null?void 0:t.method)||"GET")!=="GET"&&G.delete(Ie(e)),qt(e,t));const G=new Map;function zt(e,t){const n=Ie(e,t),r=document.querySelector(n);if(r!=null&&r.textContent){r.remove();let{body:a,...s}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&G.set(n,{body:a,init:s,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=Vt(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,t)}function Gt(e,t,n){if(G.size>0){const r=Ie(e,n),a=G.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n==null?void 0:n.cache))return new Response(a.body,a.init);G.delete(r)}}return window.fetch(t,n)}function Ie(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t!=null&&t.headers||t!=null&&t.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${Bt(...a)}"]`}return r}const Yt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Ht(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Wt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return _e(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return _e(String.fromCharCode(...c.slice(2).split("-").map(u=>parseInt(u,16))));const d=Yt.exec(c),[,h,y,f,p]=d;return t.push({name:f,matcher:p,optional:!!h,rest:!!y,chained:y?l===1&&i[0]==="":!1}),y?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return _e(c)}).join("")}).join("")}/?$`),params:t}}function Kt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Wt(e){return e.slice(1).split("/").filter(Kt)}function Jt(e,t,n){const r={},a=e.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;o<t.length;o+=1){const c=t[o];let l=a[o-i];if(c.chained&&c.rest&&i&&(l=a.slice(o-i,o+1).filter(d=>d).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const d=t[o+1],h=a[o+1];d&&!d.rest&&d.optional&&h&&c.chained&&(i=0),!d&&!h&&Object.keys(r).length===s.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function _e(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Xt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[c,l,d]])=>{const{pattern:h,params:y}=Ht(o),f={id:o,exec:p=>{const u=h.exec(p);if(u)return Jt(u,y,r)},errors:[1,...d||[]].map(p=>e[p]),layouts:[0,...l||[]].map(i),leaf:s(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function s(o){const c=o<0;return c&&(o=~o),[c,e[o]]}function i(o){return o===void 0?o:[a.has(o),e[o]]}}function Qe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Be(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const D=[];function Ue(e,t=ge){let n;const r=new Set;function a(o){if(Ct(e,o)&&(e=o,n)){const c=!D.length;for(const l of r)l[1](),D.push(l,e);if(c){for(let l=0;l<D.length;l+=2)D[l][0](D[l+1]);D.length=0}}}function s(o){a(o(e))}function i(o,c=ge){const l=[o,c];return r.add(l),r.size===1&&(n=t(a,s)||ge),o(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:a,update:s,subscribe:i}}var Je;const $=((Je=globalThis.__sveltekit_37vzbm)==null?void 0:Je.base)??"";var Xe;const Zt=((Xe=globalThis.__sveltekit_37vzbm)==null?void 0:Xe.assets)??$??"",Qt="1761002803294",et="sveltekit:snapshot",tt="sveltekit:scroll",nt="sveltekit:states",en="sveltekit:pageurl",B="sveltekit:history",K="sveltekit:navigation",O={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ce=location.origin;function at(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function le(){return{x:pageXOffset,y:pageYOffset}}function F(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Me={...O,"":O.hover};function rt(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function ot(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=rt(e)}}function Se(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,s=!r||!!a||fe(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),i=(r==null?void 0:r.origin)===ce&&e.hasAttribute("download");return{url:r,external:s,target:a,download:i}}function Q(e){let t=null,n=null,r=null,a=null,s=null,i=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=F(o,"preload-code")),a===null&&(a=F(o,"preload-data")),t===null&&(t=F(o,"keepfocus")),n===null&&(n=F(o,"noscroll")),s===null&&(s=F(o,"reload")),i===null&&(i=F(o,"replacestate")),o=rt(o);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Me[r??"off"],preload_data:Me[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(i)}}function Ve(e){const t=Ue(e);let n=!0;function r(){n=!0,t.update(i=>i)}function a(i){n=!1,t.set(i)}function s(i){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&i(o=c)})}return{notify:r,set:a,subscribe:s}}const st={v:()=>{}};function tn(){const{set:e,subscribe:t}=Ue(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Zt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==Qt;return i&&(e(!0),st.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function fe(e,t,n){return e.origin!==ce||!e.pathname.startsWith(t)?!0:n?!(e.pathname===t+"/"||e.pathname===t+"/index.html"||e.protocol==="file:"&&e.pathname.replace(/\/[^/]+\.html?$/,"")===t):!1}function qn(e){}function nn(e){const t=rn(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let a=0;a<n.byteLength;a++)r.setUint8(a,t.charCodeAt(a));return n}const an="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function rn(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let a=0;a<e.length;a++)n<<=6,n|=an.indexOf(e[a]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const on=-1,sn=-2,cn=-3,ln=-4,fn=-5,un=-6;function dn(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(s,i=!1){if(s===on)return;if(s===cn)return NaN;if(s===ln)return 1/0;if(s===fn)return-1/0;if(s===un)return-0;if(i||typeof s!="number")throw new Error("Invalid input");if(s in r)return r[s];const o=n[s];if(!o||typeof o!="object")r[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const c=o[0],l=t==null?void 0:t[c];if(l)return r[s]=l(a(o[1]));switch(c){case"Date":r[s]=new Date(o[1]);break;case"Set":const d=new Set;r[s]=d;for(let f=1;f<o.length;f+=1)d.add(a(o[f]));break;case"Map":const h=new Map;r[s]=h;for(let f=1;f<o.length;f+=2)h.set(a(o[f]),a(o[f+1]));break;case"RegExp":r[s]=new RegExp(o[1],o[2]);break;case"Object":r[s]=Object(o[1]);break;case"BigInt":r[s]=BigInt(o[1]);break;case"null":const y=Object.create(null);r[s]=y;for(let f=1;f<o.length;f+=2)y[o[f]]=a(o[f+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const f=globalThis[c],p=new f(a(o[1]));r[s]=o[2]!==void 0?p.subarray(o[2],o[3]):p;break}case"ArrayBuffer":{const f=o[1],p=nn(f);r[s]=p;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const f=c.slice(9);r[s]=Temporal[f].from(o[1]);break}case"URL":{const f=new URL(o[1]);r[s]=f;break}case"URLSearchParams":{const f=new URLSearchParams(o[1]);r[s]=f;break}default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(o.length);r[s]=c;for(let l=0;l<o.length;l+=1){const d=o[l];d!==sn&&(c[l]=a(d))}}else{const c={};r[s]=c;for(const l in o){if(l==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const d=o[l];c[l]=a(d)}}return r[s]}return a(0)}const it=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...it];const hn=new Set([...it]);[...hn];function pn(e){return e.filter(t=>t!=null)}const gn="x-sveltekit-invalidated",mn="x-sveltekit-trailing-slash";function ee(e){return e instanceof ie||e instanceof Te?e.status:500}function _n(e){return e instanceof Te?e.text:"Internal Error"}let T,W,we;const wn=ve.toString().includes("$$")||/function \w+\(\) \{\}/.test(ve.toString());wn?(T={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},W={current:null},we={current:!1}):(T=new class{constructor(){R(this,"data",$state.raw({}));R(this,"form",$state.raw(null));R(this,"error",$state.raw(null));R(this,"params",$state.raw({}));R(this,"route",$state.raw({id:null}));R(this,"state",$state.raw({}));R(this,"status",$state.raw(-1));R(this,"url",$state.raw(new URL("https://example.com")))}},W=new class{constructor(){R(this,"current",$state.raw(null))}},we=new class{constructor(){R(this,"current",$state.raw(!1))}},st.v=()=>we.current=!0);function yn(e){Object.assign(T,e)}const vn="/__data.json",bn=".html__data.json";function Sn(e){return e.endsWith(".html")?e.replace(/\.html$/,bn):e.replace(/\/$/,"")+vn}const qe={spanContext(){return kn},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},kn={traceId:"",spanId:"",traceFlags:0},{tick:En}=Ot,An=new Set(["icon","shortcut icon","apple-touch-icon"]),j=Qe(tt)??{},J=Qe(et)??{},C={url:Ve({}),page:Ve({}),navigating:Ue(null),updated:tn()};function Le(e){j[e]=le()}function Rn(e,t){let n=e+1;for(;j[n];)delete j[n],n+=1;for(n=t+1;J[n];)delete J[n],n+=1}function q(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function ct(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration($||"/");e&&await e.update()}}function ze(){}let $e,ke,te,x,Ee,k;const ne=[],ae=[];let U=null;const Z=new Map,lt=new Set,Tn=new Set,Y=new Set;let b={branch:[],error:null,url:null},xe=!1,re=!1,Ge=!0,X=!1,z=!1,ft=!1,Ce=!1,ut,A,L,N;const H=new Set,Ye=new Map;async function Hn(e,t,n){var s,i,o,c,l;(s=globalThis.__sveltekit_37vzbm)!=null&&s.data&&globalThis.__sveltekit_37vzbm.data,document.URL!==location.href&&(location.href=location.href),k=e,await((o=(i=e.hooks).init)==null?void 0:o.call(i)),$e=Xt(e),x=document.documentElement,Ee=t,ke=e.nodes[0],te=e.nodes[1],ke(),te(),A=(c=history.state)==null?void 0:c[B],L=(l=history.state)==null?void 0:l[K],A||(A=L=Date.now(),history.replaceState({...history.state,[B]:A,[K]:L},""));const r=j[A];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await Dn(Ee,n)):(await M({type:"enter",url:at(k.hash?Bn(new URL(location.href)):location.href),replace_state:!0}),a()),jn()}function In(){ne.length=0,Ce=!1}function dt(e){ae.some(t=>t==null?void 0:t.snapshot)&&(J[e]=ae.map(t=>{var n;return(n=t==null?void 0:t.snapshot)==null?void 0:n.capture()}))}function ht(e){var t;(t=J[e])==null||t.forEach((n,r)=>{var a,s;(s=(a=ae[r])==null?void 0:a.snapshot)==null||s.restore(n)})}function He(){Le(A),Be(tt,j),dt(L),Be(et,J)}async function Un(e,t,n,r){let a;t.invalidateAll&&(U=null),await M({type:"goto",url:at(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(Ce=!0,a=[...Ye.keys()]),t.invalidate&&t.invalidate.forEach(Nn)}}),t.invalidateAll&&be().then(be).then(()=>{Ye.forEach(({resource:s},i)=>{var o;a!=null&&a.includes(i)&&((o=s.refresh)==null||o.call(s))})})}async function Ln(e){if(e.id!==(U==null?void 0:U.id)){const t={};H.add(t),U={id:e.id,token:t,promise:mt({...e,preload:t}).then(n=>(H.delete(t),n.type==="loaded"&&n.state.error&&(U=null),n))}}return U.promise}async function ye(e){var n;const t=(n=await de(e,!1))==null?void 0:n.route;t&&await Promise.all([...t.layouts,t.leaf].map(r=>r==null?void 0:r[1]()))}function pt(e,t,n){var a;b=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(T,e.props.page),ut=new k.root({target:t,props:{...e.props,stores:C,components:ae},hydrate:n,sync:!1}),ht(L),n){const s={from:null,to:{params:b.params,route:{id:((a=b.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};Y.forEach(i=>i(s))}re=!0}function oe({url:e,params:t,branch:n,status:r,error:a,route:s,form:i}){let o="never";if($&&(e.pathname===$||e.pathname===$+"/"))o="always";else for(const f of n)(f==null?void 0:f.slash)!==void 0&&(o=f.slash);e.pathname=Nt(e.pathname,o),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:s},props:{constructors:pn(n).map(f=>f.node.component),page:je(T)}};i!==void 0&&(c.props.form=i);let l={},d=!T,h=0;for(let f=0;f<Math.max(n.length,b.branch.length);f+=1){const p=n[f],u=b.branch[f];(p==null?void 0:p.data)!==(u==null?void 0:u.data)&&(d=!0),p&&(l={...l,...p.data},d&&(c.props[`data_${h}`]=l),h+=1)}return(!b.url||e.href!==b.url.href||b.error!==a||i!==void 0&&i!==T.form||d)&&(c.props.page={error:a,params:t,route:{id:(s==null?void 0:s.id)??null},state:{},status:r,url:new URL(e),form:i??null,data:d?l:T.data}),c}async function Pe({loader:e,parent:t,url:n,params:r,route:a,server_data_node:s}){var d,h,y;let i=null,o=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if((d=l.universal)!=null&&d.load){let f=function(...u){for(const g of u){const{href:_}=new URL(g,n);c.dependencies.add(_)}};const p={tracing:{enabled:!1,root:qe,current:qe},route:new Proxy(a,{get:(u,g)=>(o&&(c.route=!0),u[g])}),params:new Proxy(r,{get:(u,g)=>(o&&c.params.add(g),u[g])}),data:(s==null?void 0:s.data)??null,url:Ft(n,()=>{o&&(c.url=!0)},u=>{o&&c.search_params.add(u)},k.hash),async fetch(u,g){u instanceof Request&&(g={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:[...u.headers].length>0?u==null?void 0:u.headers:void 0,integrity:u.integrity,keepalive:u.keepalive,method:u.method,mode:u.mode,redirect:u.redirect,referrer:u.referrer,referrerPolicy:u.referrerPolicy,signal:u.signal,...g});const{resolved:_,promise:I}=gt(u,g,n);return o&&f(_.href),I},setHeaders:()=>{},depends:f,parent(){return o&&(c.parent=!0),t()},untrack(u){o=!1;try{return u()}finally{o=!0}}};i=await l.universal.load.call(null,p)??null}return{node:l,loader:e,server:s,universal:(h=l.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(s==null?void 0:s.data)??null,slash:((y=l.universal)==null?void 0:y.trailingSlash)??(s==null?void 0:s.slash)}}function gt(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=re?Gt(r,a.href,t):zt(r,t);return{resolved:a,promise:s}}function Ke(e,t,n,r,a,s){if(Ce)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==b.params[i])return!0;for(const i of a.dependencies)if(ne.some(o=>o(new URL(i))))return!0;return!1}function Oe(e,t){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?t??null:null}function $n(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),s=t.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}function We({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:je(T),constructors:[]}}}async function mt({id:e,invalidating:t,url:n,params:r,route:a,preload:s}){if((U==null?void 0:U.id)===e)return H.delete(U.token),U.promise;const{errors:i,layouts:o,leaf:c}=a,l=[...o,c];i.forEach(w=>w==null?void 0:w().catch(()=>{})),l.forEach(w=>w==null?void 0:w[1]().catch(()=>{}));let d=null;const h=b.url?e!==se(b.url):!1,y=b.route?a.id!==b.route.id:!1,f=$n(b.url,n);let p=!1;const u=l.map((w,m)=>{var P;const v=b.branch[m],S=!!(w!=null&&w[0])&&((v==null?void 0:v.loader)!==w[1]||Ke(p,y,h,f,(P=v.server)==null?void 0:P.uses,r));return S&&(p=!0),S});if(u.some(Boolean)){try{d=await yt(n,u)}catch(w){const m=await V(w,{url:n,params:r,route:{id:e}});return H.has(s)?We({error:m,url:n,params:r,route:a}):ue({status:ee(w),error:m,url:n,route:a})}if(d.type==="redirect")return d}const g=d==null?void 0:d.nodes;let _=!1;const I=l.map(async(w,m)=>{var he;if(!w)return;const v=b.branch[m],S=g==null?void 0:g[m];if((!S||S.type==="skip")&&w[1]===(v==null?void 0:v.loader)&&!Ke(_,y,h,f,(he=v.universal)==null?void 0:he.uses,r))return v;if(_=!0,(S==null?void 0:S.type)==="error")throw S;return Pe({loader:w[1],url:n,params:r,route:a,parent:async()=>{var Fe;const De={};for(let pe=0;pe<m;pe+=1)Object.assign(De,(Fe=await I[pe])==null?void 0:Fe.data);return De},server_data_node:Oe(S===void 0&&w[0]?{type:"skip"}:S??null,w[0]?v==null?void 0:v.server:void 0)})});for(const w of I)w.catch(()=>{});const E=[];for(let w=0;w<l.length;w+=1)if(l[w])try{E.push(await I[w])}catch(m){if(m instanceof Re)return{type:"redirect",location:m.location};if(H.has(s))return We({error:await V(m,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let v=ee(m),S;if(g!=null&&g.includes(m))v=m.status??v,S=m.error;else if(m instanceof ie)S=m.body;else{if(await C.updated.check())return await ct(),await q(n);S=await V(m,{params:r,url:n,route:{id:a.id}})}const P=await xn(w,E,i);return P?oe({url:n,params:r,branch:E.slice(0,P.idx).concat(P.node),status:v,error:S,route:a}):await wt(n,{id:a.id},S,v)}else E.push(void 0);return oe({url:n,params:r,branch:E,status:200,error:null,route:a,form:t?void 0:null})}async function xn(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function ue({status:e,error:t,url:n,route:r}){const a={};let s=null;if(k.server_loads[0]===0)try{const o=await yt(n,[!0]);if(o.type!=="data"||o.nodes[0]&&o.nodes[0].type!=="data")throw 0;s=o.nodes[0]??null}catch{(n.origin!==ce||n.pathname!==location.pathname||xe)&&await q(n)}try{const o=await Pe({loader:ke,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:Oe(s)}),c={node:await te(),loader:te,universal:null,server:null,data:null};return oe({url:n,params:a,branch:[o,c],status:e,error:t,route:null})}catch(o){if(o instanceof Re)return Un(new URL(o.location,location.href),{},0);throw o}}async function Cn(e){const t=e.href;if(Z.has(t))return Z.get(t);let n;try{const r=(async()=>{let a=await k.hooks.reroute({url:new URL(e),fetch:async(s,i)=>gt(s,i,e).promise})??e;if(typeof a=="string"){const s=new URL(e);k.hash?s.hash=a:s.pathname=a,a=s}return a})();Z.set(t,r),n=await r}catch{Z.delete(t);return}return n}async function de(e,t){if(e&&!fe(e,$,k.hash)){const n=await Cn(e);if(!n)return;const r=Pn(n);for(const a of $e){const s=a.exec(r);if(s)return{id:se(e),invalidating:t,route:a,params:Dt(s),url:e}}}}function Pn(e){return jt(k.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice($.length))||"/"}function se(e){return(k.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function _t({url:e,type:t,intent:n,delta:r,event:a}){let s=!1;const i=Ne(b,n,e,t);r!==void 0&&(i.navigation.delta=r),a!==void 0&&(i.navigation.event=a);const o={...i.navigation,cancel:()=>{s=!0,i.reject(new Error("navigation cancelled"))}};return X||lt.forEach(c=>c(o)),s?null:i}async function M({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:c={},accept:l=ze,block:d=ze,event:h}){const y=N;N=c;const f=await de(t,!1),p=e==="enter"?Ne(b,f,t,e):_t({url:t,type:e,delta:n==null?void 0:n.delta,intent:f,event:h});if(!p){d(),N===c&&(N=y);return}const u=A,g=L;l(),X=!0,re&&p.navigation.type!=="enter"&&C.navigating.set(W.current=p.navigation);let _=f&&await mt(f);if(!_){if(fe(t,$,k.hash))return await q(t,s);_=await wt(t,{id:null},await V(new Te(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=(f==null?void 0:f.url)||t,N!==c)return p.reject(new Error("navigation aborted")),!1;if(_.type==="redirect"){if(o<20){await M({type:e,url:new URL(_.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i,redirect_count:o+1,nav_token:c}),p.fulfil(void 0);return}_=await ue({status:500,error:await V(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else _.props.page.status>=400&&await C.updated.check()&&(await ct(),await q(t,s));if(In(),Le(u),dt(g),_.props.page.url.pathname!==t.pathname&&(t.pathname=_.props.page.url.pathname),i=n?n.state:i,!n){const m=s?0:1,v={[B]:A+=m,[K]:L+=m,[nt]:i};(s?history.replaceState:history.pushState).call(history,v,"",t),s||Rn(A,L)}if(U=null,_.props.page.state=i,re){const m=(await Promise.all(Array.from(Tn,v=>v(p.navigation)))).filter(v=>typeof v=="function");if(m.length>0){let v=function(){m.forEach(S=>{Y.delete(S)})};m.push(v),m.forEach(S=>{Y.add(S)})}b=_.state,_.props.page&&(_.props.page.url=t),ut.$set(_.props),yn(_.props.page),ft=!0}else pt(_,Ee,!1);const{activeElement:I}=document;await En();let E=n?n.scroll:a?le():null;if(Ge){const m=t.hash&&document.getElementById(bt(t));if(E)scrollTo(E.x,E.y);else if(m){m.scrollIntoView();const{top:v,left:S}=m.getBoundingClientRect();E={x:pageXOffset+S,y:pageYOffset+v}}else scrollTo(0,0)}const w=document.activeElement!==I&&document.activeElement!==document.body;!r&&!w&&Fn(t,E),Ge=!0,_.props.page&&Object.assign(T,_.props.page),X=!1,e==="popstate"&&ht(L),p.fulfil(void 0),Y.forEach(m=>m(p.navigation)),C.navigating.set(W.current=null)}async function wt(e,t,n,r,a){return e.origin===ce&&e.pathname===location.pathname&&!xe?await ue({status:r,error:n,url:e,route:t}):await q(e,a)}function On(){let e,t,n;x.addEventListener("mousemove",o=>{const c=o.target;clearTimeout(e),e=setTimeout(()=>{s(c,O.hover)},20)});function r(o){o.defaultPrevented||s(o.composedPath()[0],O.tap)}x.addEventListener("mousedown",r),x.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const c of o)c.isIntersecting&&(ye(new URL(c.target.href)),a.unobserve(c.target))},{threshold:0});async function s(o,c){const l=ot(o,x),d=l===t&&c>=n;if(!l||d)return;const{url:h,external:y,download:f}=Se(l,$,k.hash);if(y||f)return;const p=Q(l),u=h&&se(b.url)===se(h);if(!(p.reload||u))if(c<=p.preload_data){t=l,n=O.tap;const g=await de(h,!1);if(!g)return;Ln(g)}else c<=p.preload_code&&(t=l,n=c,ye(h))}function i(){a.disconnect();for(const o of x.querySelectorAll("a")){const{url:c,external:l,download:d}=Se(o,$,k.hash);if(l||d)continue;const h=Q(o);h.reload||(h.preload_code===O.viewport&&a.observe(o),h.preload_code===O.eager&&ye(c))}}Y.add(i),i()}function V(e,t){if(e instanceof ie)return e.body;const n=ee(e),r=_n(e);return k.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Nn(e){if(typeof e=="function")ne.push(e);else{const{href:t}=new URL(e,location.href);ne.push(n=>n.href===t)}}function jn(){var t;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let r=!1;if(He(),!X){const a=Ne(b,void 0,null,"leave"),s={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};lt.forEach(i=>i(s))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&He()}),(t=navigator.connection)!=null&&t.saveData||On(),x.addEventListener("click",async n=>{if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=ot(n.composedPath()[0],x);if(!r)return;const{url:a,external:s,target:i,download:o}=Se(r,$,k.hash);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=Q(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||o)return;const[d,h]=(k.hash?a.hash.replace(/^#/,""):a.href).split("#"),y=d===me(location);if(s||c.reload&&(!y||!h)){_t({url:a,type:"link",event:n})?X=!0:n.preventDefault();return}if(h!==void 0&&y){const[,f]=b.url.href.split("#");if(f===h){if(n.preventDefault(),h===""||h==="top"&&r.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const p=r.ownerDocument.getElementById(decodeURIComponent(h));p&&(p.scrollIntoView(),p.focus())}return}if(z=!0,Le(A),e(a),!c.replace_state)return;z=!1}n.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await M({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href,event:n})}),x.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formTarget)||r.target)==="_blank"||((a==null?void 0:a.formMethod)||r.method)!=="get")return;const o=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(fe(o,$,!1))return;const c=n.target,l=Q(c);if(l.reload)return;n.preventDefault(),n.stopPropagation();const d=new FormData(c,a);o.search=new URLSearchParams(d).toString(),M({type:"form",url:o,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??o.href===location.href,event:n})}),addEventListener("popstate",async n=>{var r;if(!Ae){if((r=n.state)!=null&&r[B]){const a=n.state[B];if(N={},a===A)return;const s=j[a],i=n.state[nt]??{},o=new URL(n.state[en]??location.href),c=n.state[K],l=b.url?me(location)===me(b.url):!1;if(c===L&&(ft||l)){i!==T.state&&(T.state=i),e(o),j[A]=le(),s&&scrollTo(s.x,s.y),A=a;return}const h=a-A;await M({type:"popstate",url:o,popped:{state:i,scroll:s,delta:h},accept:()=>{A=a,L=c},block:()=>{history.go(-h)},nav_token:N,event:n})}else if(!z){const a=new URL(location.href);e(a),k.hash&&location.reload()}}}),addEventListener("hashchange",()=>{z&&(z=!1,history.replaceState({...history.state,[B]:++A,[K]:L},"",location.href))});for(const n of document.querySelectorAll("link"))An.has(n.rel)&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&C.navigating.set(W.current=null)});function e(n){b.url=T.url=n,C.page.set(je(T)),C.page.notify()}}async function Dn(e,{status:t=200,error:n,node_ids:r,params:a,route:s,server_route:i,data:o,form:c}){xe=!0;const l=new URL(location.href);let d;({params:a={},route:s={id:null}}=await de(l,!1)||{}),d=$e.find(({id:f})=>f===s.id);let h,y=!0;try{const f=r.map(async(u,g)=>{const _=o[g];return _!=null&&_.uses&&(_.uses=vt(_.uses)),Pe({loader:k.nodes[u],url:l,params:a,route:s,parent:async()=>{const I={};for(let E=0;E<g;E+=1)Object.assign(I,(await f[E]).data);return I},server_data_node:Oe(_)})}),p=await Promise.all(f);if(d){const u=d.layouts;for(let g=0;g<u.length;g++)u[g]||p.splice(g,0,void 0)}h=oe({url:l,params:a,branch:p,status:t,error:n,form:c,route:d??null})}catch(f){if(f instanceof Re){await q(new URL(f.location,location.href));return}h=await ue({status:ee(f),error:await V(f,{url:l,params:a,route:s}),url:l,route:s}),e.textContent="",y=!1}h.props.page&&(h.props.page.state={}),pt(h,e,y)}async function yt(e,t){var s;const n=new URL(e);n.pathname=Sn(e.pathname),e.pathname.endsWith("/")&&n.searchParams.append(mn,"1"),n.searchParams.append(gn,t.map(i=>i?"1":"0").join(""));const r=window.fetch,a=await r(n.href,{});if(!a.ok){let i;throw(s=a.headers.get("content-type"))!=null&&s.includes("application/json")?i=await a.json():a.status===404?i="Not Found":a.status===500&&(i="Internal Error"),new ie(a.status,i)}return new Promise(async i=>{var h;const o=new Map,c=a.body.getReader();function l(y){return dn(y,{...k.decoders,Promise:f=>new Promise((p,u)=>{o.set(f,{fulfil:p,reject:u})})})}let d="";for(;;){const{done:y,value:f}=await c.read();if(y&&!d)break;for(d+=!f&&d?`
2
+ `:Mt.decode(f,{stream:!0});;){const p=d.indexOf(`
3
+ `);if(p===-1)break;const u=JSON.parse(d.slice(0,p));if(d=d.slice(p+1),u.type==="redirect")return i(u);if(u.type==="data")(h=u.nodes)==null||h.forEach(g=>{(g==null?void 0:g.type)==="data"&&(g.uses=vt(g.uses),g.data=l(g.data))}),i(u);else if(u.type==="chunk"){const{id:g,data:_,error:I}=u,E=o.get(g);o.delete(g),I?E.reject(l(I)):E.fulfil(l(_))}}}})}function vt(e){return{dependencies:new Set((e==null?void 0:e.dependencies)??[]),params:new Set((e==null?void 0:e.params)??[]),parent:!!(e!=null&&e.parent),route:!!(e!=null&&e.route),url:!!(e!=null&&e.url),search_params:new Set((e==null?void 0:e.search_params)??[])}}let Ae=!1;function Fn(e,t=null){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=bt(e);if(r&&document.getElementById(r)){const{x:s,y:i}=t??le();setTimeout(()=>{const o=history.state;Ae=!0,location.replace(`#${r}`),k.hash&&location.replace(e.hash),history.replaceState(o,"",e.hash),scrollTo(s,i),Ae=!1})}else{const s=document.body,i=s.getAttribute("tabindex");s.tabIndex=-1,s.focus({preventScroll:!0,focusVisible:!1}),i!==null?s.setAttribute("tabindex",i):s.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const s=[];for(let i=0;i<a.rangeCount;i+=1)s.push(a.getRangeAt(i));setTimeout(()=>{if(a.rangeCount===s.length){for(let i=0;i<a.rangeCount;i+=1){const o=s[i],c=a.getRangeAt(i);if(o.commonAncestorContainer!==c.commonAncestorContainer||o.startContainer!==c.startContainer||o.endContainer!==c.endContainer||o.startOffset!==c.startOffset||o.endOffset!==c.endOffset)return}a.removeAllRanges()}})}}}function Ne(e,t,n,r){var c,l;let a,s;const i=new Promise((d,h)=>{a=d,s=h});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:((c=e.route)==null?void 0:c.id)??null},url:e.url},to:n&&{params:(t==null?void 0:t.params)??null,route:{id:((l=t==null?void 0:t.route)==null?void 0:l.id)??null},url:n},willUnload:!t,type:r,complete:i},fulfil:a,reject:s}}function je(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Bn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function bt(e){let t;if(k.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Hn as a,qn as l,C as s};
hfstudio/static/_app/immutable/entry/app.Dgwf8cL2.js ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.Cprb3ZX_.js","../chunks/Bqgpa-5T.js","../chunks/IHki7fMi.js","../assets/0.A7Re8yJ6.css","../nodes/1.CR077jI5.js","../chunks/Ybk50QWZ.js","../nodes/2.ikH2knVg.js","../assets/2.NHOETQX0.css"])))=>i.map(i=>d[i]);
2
+ import{S as V,i as j,s as B,d,t as h,a as g,C as S,D as O,f as v,o as U,E as w,q as z,F,v as G,G as H,H as y,I as P,J as R,K as L,L as I,b as A,M as p,k as J,m as K,p as W,N as C,x as Q,y as X,z as Y}from"../chunks/Bqgpa-5T.js";import"../chunks/IHki7fMi.js";const Z="modulepreload",M=function(o,e){return new URL(o,e).href},N={},D=function(e,n,i){let r=Promise.resolve();if(n&&n.length>0){const t=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));r=Promise.allSettled(n.map(f=>{if(f=M(f,i),f in N)return;N[f]=!0;const l=f.endsWith(".css"),_=l?'[rel="stylesheet"]':"";if(!!i)for(let k=t.length-1;k>=0;k--){const E=t[k];if(E.href===f&&(!l||E.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${_}`))return;const m=document.createElement("link");if(m.rel=l?"stylesheet":Z,l||(m.as="script"),m.crossOrigin="",m.href=f,a&&m.setAttribute("nonce",a),document.head.appendChild(m),l)return new Promise((k,E)=>{m.addEventListener("load",k),m.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${f}`)))})}))}function u(t){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=t,window.dispatchEvent(s),!s.defaultPrevented)throw t}return r.then(t=>{for(const s of t||[])s.status==="rejected"&&u(s.reason);return e().catch(u)})},ae={};function $(o){let e,n,i;var r=o[2][0];function u(t,s){return{props:{data:t[4],form:t[3],params:t[1].params}}}return r&&(e=y(r,u(o)),o[12](e)),{c(){e&&R(e.$$.fragment),n=w()},l(t){e&&I(e.$$.fragment,t),n=w()},m(t,s){e&&L(e,t,s),v(t,n,s),i=!0},p(t,s){if(s&4&&r!==(r=t[2][0])){if(e){S();const a=e;h(a.$$.fragment,1,0,()=>{P(a,1)}),O()}r?(e=y(r,u(t)),t[12](e),R(e.$$.fragment),g(e.$$.fragment,1),L(e,n.parentNode,n)):e=null}else if(r){const a={};s&16&&(a.data=t[4]),s&8&&(a.form=t[3]),s&2&&(a.params=t[1].params),e.$set(a)}},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){t&&d(n),o[12](null),e&&P(e,t)}}}function x(o){let e,n,i;var r=o[2][0];function u(t,s){return{props:{data:t[4],params:t[1].params,$$slots:{default:[ee]},$$scope:{ctx:t}}}}return r&&(e=y(r,u(o)),o[11](e)),{c(){e&&R(e.$$.fragment),n=w()},l(t){e&&I(e.$$.fragment,t),n=w()},m(t,s){e&&L(e,t,s),v(t,n,s),i=!0},p(t,s){if(s&4&&r!==(r=t[2][0])){if(e){S();const a=e;h(a.$$.fragment,1,0,()=>{P(a,1)}),O()}r?(e=y(r,u(t)),t[11](e),R(e.$$.fragment),g(e.$$.fragment,1),L(e,n.parentNode,n)):e=null}else if(r){const a={};s&16&&(a.data=t[4]),s&2&&(a.params=t[1].params),s&8239&&(a.$$scope={dirty:s,ctx:t}),e.$set(a)}},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){t&&d(n),o[11](null),e&&P(e,t)}}}function ee(o){let e,n,i;var r=o[2][1];function u(t,s){return{props:{data:t[5],form:t[3],params:t[1].params}}}return r&&(e=y(r,u(o)),o[10](e)),{c(){e&&R(e.$$.fragment),n=w()},l(t){e&&I(e.$$.fragment,t),n=w()},m(t,s){e&&L(e,t,s),v(t,n,s),i=!0},p(t,s){if(s&4&&r!==(r=t[2][1])){if(e){S();const a=e;h(a.$$.fragment,1,0,()=>{P(a,1)}),O()}r?(e=y(r,u(t)),t[10](e),R(e.$$.fragment),g(e.$$.fragment,1),L(e,n.parentNode,n)):e=null}else if(r){const a={};s&32&&(a.data=t[5]),s&8&&(a.form=t[3]),s&2&&(a.params=t[1].params),e.$set(a)}},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){t&&d(n),o[10](null),e&&P(e,t)}}}function q(o){let e,n=o[7]&&T(o);return{c(){e=W("div"),n&&n.c(),this.h()},l(i){e=J(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var r=K(e);n&&n.l(r),r.forEach(d),this.h()},h(){A(e,"id","svelte-announcer"),A(e,"aria-live","assertive"),A(e,"aria-atomic","true"),p(e,"position","absolute"),p(e,"left","0"),p(e,"top","0"),p(e,"clip","rect(0 0 0 0)"),p(e,"clip-path","inset(50%)"),p(e,"overflow","hidden"),p(e,"white-space","nowrap"),p(e,"width","1px"),p(e,"height","1px")},m(i,r){v(i,e,r),n&&n.m(e,null)},p(i,r){i[7]?n?n.p(i,r):(n=T(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&d(e),n&&n.d()}}}function T(o){let e;return{c(){e=Y(o[8])},l(n){e=X(n,o[8])},m(n,i){v(n,e,i)},p(n,i){i&256&&Q(e,n[8])},d(n){n&&d(e)}}}function te(o){let e,n,i,r,u;const t=[x,$],s=[];function a(l,_){return l[2][1]?0:1}e=a(o),n=s[e]=t[e](o);let f=o[6]&&q(o);return{c(){n.c(),i=z(),f&&f.c(),r=w()},l(l){n.l(l),i=U(l),f&&f.l(l),r=w()},m(l,_){s[e].m(l,_),v(l,i,_),f&&f.m(l,_),v(l,r,_),u=!0},p(l,[_]){let b=e;e=a(l),e===b?s[e].p(l,_):(S(),h(s[b],1,1,()=>{s[b]=null}),O(),n=s[e],n?n.p(l,_):(n=s[e]=t[e](l),n.c()),g(n,1),n.m(i.parentNode,i)),l[6]?f?f.p(l,_):(f=q(l),f.c(),f.m(r.parentNode,r)):f&&(f.d(1),f=null)},i(l){u||(g(n),u=!0)},o(l){h(n),u=!1},d(l){l&&(d(i),d(r)),s[e].d(l),f&&f.d(l)}}}function ne(o,e,n){let{stores:i}=e,{page:r}=e,{constructors:u}=e,{components:t=[]}=e,{form:s}=e,{data_0:a=null}=e,{data_1:f=null}=e;F(i.page.notify);let l=!1,_=!1,b=null;G(()=>{const c=i.page.subscribe(()=>{l&&(n(7,_=!0),H().then(()=>{n(8,b=document.title||"untitled page")}))});return n(6,l=!0),c});function m(c){C[c?"unshift":"push"](()=>{t[1]=c,n(0,t)})}function k(c){C[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}function E(c){C[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}return o.$$set=c=>{"stores"in c&&n(9,i=c.stores),"page"in c&&n(1,r=c.page),"constructors"in c&&n(2,u=c.constructors),"components"in c&&n(0,t=c.components),"form"in c&&n(3,s=c.form),"data_0"in c&&n(4,a=c.data_0),"data_1"in c&&n(5,f=c.data_1)},o.$$.update=()=>{o.$$.dirty&514&&i.page.set(r)},[t,r,u,s,a,f,l,_,b,i,m,k,E]}class le extends V{constructor(e){super(),j(this,e,ne,te,B,{stores:9,page:1,constructors:2,components:0,form:3,data_0:4,data_1:5})}}const fe=[()=>D(()=>import("../nodes/0.Cprb3ZX_.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),()=>D(()=>import("../nodes/1.CR077jI5.js"),__vite__mapDeps([4,1,2,5]),import.meta.url),()=>D(()=>import("../nodes/2.ikH2knVg.js"),__vite__mapDeps([6,1,2,7]),import.meta.url)],ce=[],ue={"/":[2]},se={handleError:({error:o})=>{console.error(o)},reroute:()=>{},transport:{}},ie=Object.fromEntries(Object.entries(se.transport).map(([o,e])=>[o,e.decode])),_e=!1,me=(o,e)=>ie[o](e);export{me as decode,ie as decoders,ue as dictionary,_e as hash,se as hooks,ae as matchers,fe as nodes,le as root,ce as server_loads};
hfstudio/static/_app/immutable/entry/start.jSrgKXDc.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{l as o,a as r}from"../chunks/Ybk50QWZ.js";export{o as load_css,r as start};
hfstudio/static/_app/immutable/nodes/1.CR077jI5.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{S as x,i as S,s as q,A as _,d as u,x as d,f as m,h as f,k as g,m as h,y as v,o as y,p as $,z as E,q as k,B as z}from"../chunks/Bqgpa-5T.js";import"../chunks/IHki7fMi.js";import{s as A}from"../chunks/Ybk50QWZ.js";const B=()=>{const s=A;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},C={subscribe(s){return B().page.subscribe(s)}};function H(s){var b;let t,r=s[0].status+"",o,n,i,p=((b=s[0].error)==null?void 0:b.message)+"",l;return{c(){t=$("h1"),o=E(r),n=k(),i=$("p"),l=E(p)},l(e){t=g(e,"H1",{});var a=h(t);o=v(a,r),a.forEach(u),n=y(e),i=g(e,"P",{});var c=h(i);l=v(c,p),c.forEach(u)},m(e,a){m(e,t,a),f(t,o),m(e,n,a),m(e,i,a),f(i,l)},p(e,[a]){var c;a&1&&r!==(r=e[0].status+"")&&d(o,r),a&1&&p!==(p=((c=e[0].error)==null?void 0:c.message)+"")&&d(l,p)},i:_,o:_,d(e){e&&(u(t),u(n),u(i))}}}function P(s,t,r){let o;return z(s,C,n=>r(0,o=n)),[o]}let F=class extends x{constructor(t){super(),S(this,t,P,H,q,{})}};export{F as component};
hfstudio/static/_app/immutable/nodes/2.ikH2knVg.js ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import{r as Tt,a as k,t as $,S as Me,i as Ue,s as Pe,c as Ge,O as F,d as u,P as jt,u as Re,g as Fe,e as We,Q as Lt,f as se,h as a,R as Nl,m,E as Nt,T as Tl,U as Qt,V as ce,I as Q,K as Z,L as ee,J as te,b as c,D as ct,l as ie,k as d,y as K,o as x,p as h,z as J,q as S,w as zt,x as ze,C as ut,n as He,N as Cl,W as Zt,M as Ot,A as vt,j as el}from"../chunks/Bqgpa-5T.js";import"../chunks/IHki7fMi.js";function pt(r){return(r==null?void 0:r.length)!==void 0?r:Array.from(r)}function Dl(r,e){$(r,1,1,()=>{e.delete(r.key)})}function Vl(r,e,s,t,l,n,o,i,f,b,y,w){let g=r.length,p=n.length,v=g;const M={};for(;v--;)M[r[v].key]=v;const T=[],A=new Map,L=new Map,q=[];for(v=p;v--;){const I=w(l,n,v),j=s(I);let z=o.get(j);z?q.push(()=>z.p(I,e)):(z=b(j,I),z.c()),A.set(j,T[v]=z),j in M&&L.set(j,Math.abs(v-M[j]))}const N=new Set,D=new Set;function H(I){k(I,1),I.m(i,y),o.set(I.key,I),y=I.first,p--}for(;g&&p;){const I=T[p-1],j=r[g-1],z=I.key,le=j.key;I===j?(y=I.first,g--,p--):A.has(le)?!o.has(z)||N.has(z)?H(I):D.has(le)?g--:L.get(z)>L.get(le)?(D.add(z),H(I)):(N.add(le),g--):(f(j,o),g--)}for(;g--;){const I=r[g];A.has(I.key)||f(I,o)}for(;p;)H(T[p-1]);return Tt(q),T}function Oe(r,e){const s={},t={},l={$$scope:1};let n=r.length;for(;n--;){const o=r[n],i=e[n];if(i){for(const f in o)f in i||(t[f]=1);for(const f in i)l[f]||(s[f]=i[f],l[f]=1);r[n]=i}else for(const f in o)l[f]=1}for(const o in t)o in s||(s[o]=void 0);return s}function Ye(r){return typeof r=="object"&&r!==null?r:{}}/**
2
+ * @license lucide-svelte v0.303.0 - ISC
3
+
4
+ This source code is licensed under the ISC license.
5
+ See the LICENSE file in the root directory of this source tree.
6
+ */const tl={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 ll(r,e,s){const t=r.slice();return t[10]=e[s][0],t[11]=e[s][1],t}function Rt(r){let e,s=[r[11]],t={};for(let l=0;l<s.length;l+=1)t=F(t,s[l]);return{c(){e=Tl(r[10]),this.h()},l(l){e=Nl(l,r[10],{}),m(e).forEach(u),this.h()},h(){Lt(e,t)},m(l,n){se(l,e,n)},p(l,n){Lt(e,t=Oe(s,[n&32&&l[11]]))},d(l){l&&u(e)}}}function nl(r){let e=r[10],s,t=r[10]&&Rt(r);return{c(){t&&t.c(),s=Nt()},l(l){t&&t.l(l),s=Nt()},m(l,n){t&&t.m(l,n),se(l,s,n)},p(l,n){l[10]?e?Pe(e,l[10])?(t.d(1),t=Rt(l),e=l[10],t.c(),t.m(s.parentNode,s)):t.p(l,n):(t=Rt(l),e=l[10],t.c(),t.m(s.parentNode,s)):e&&(t.d(1),t=null,e=l[10])},d(l){l&&u(s),t&&t.d(l)}}}function xl(r){let e,s,t,l,n,o=pt(r[5]),i=[];for(let g=0;g<o.length;g+=1)i[g]=nl(ll(r,o,g));const f=r[9].default,b=Ge(f,r,r[8],null);let y=[tl,r[6],{width:r[2]},{height:r[2]},{stroke:r[1]},{"stroke-width":t=r[4]?Number(r[3])*24/Number(r[2]):r[3]},{class:l=`lucide-icon lucide lucide-${r[0]} ${r[7].class??""}`}],w={};for(let g=0;g<y.length;g+=1)w=F(w,y[g]);return{c(){e=Tl("svg");for(let g=0;g<i.length;g+=1)i[g].c();s=Nt(),b&&b.c(),this.h()},l(g){e=Nl(g,"svg",{width:!0,height:!0,stroke:!0,"stroke-width":!0,class:!0});var p=m(e);for(let v=0;v<i.length;v+=1)i[v].l(p);s=Nt(),b&&b.l(p),p.forEach(u),this.h()},h(){Lt(e,w)},m(g,p){se(g,e,p);for(let v=0;v<i.length;v+=1)i[v]&&i[v].m(e,null);a(e,s),b&&b.m(e,null),n=!0},p(g,[p]){if(p&32){o=pt(g[5]);let v;for(v=0;v<o.length;v+=1){const M=ll(g,o,v);i[v]?i[v].p(M,p):(i[v]=nl(M),i[v].c(),i[v].m(e,s))}for(;v<i.length;v+=1)i[v].d(1);i.length=o.length}b&&b.p&&(!n||p&256)&&Re(b,f,g,g[8],n?We(f,g[8],p,null):Fe(g[8]),null),Lt(e,w=Oe(y,[tl,p&64&&g[6],(!n||p&4)&&{width:g[2]},(!n||p&4)&&{height:g[2]},(!n||p&2)&&{stroke:g[1]},(!n||p&28&&t!==(t=g[4]?Number(g[3])*24/Number(g[2]):g[3]))&&{"stroke-width":t},(!n||p&129&&l!==(l=`lucide-icon lucide lucide-${g[0]} ${g[7].class??""}`))&&{class:l}]))},i(g){n||(k(b,g),n=!0)},o(g){$(b,g),n=!1},d(g){g&&u(e),jt(i,g),b&&b.d(g)}}}function Sl(r,e,s){const t=["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"];let l=Qt(e,t),{$$slots:n={},$$scope:o}=e,{name:i}=e,{color:f="currentColor"}=e,{size:b=24}=e,{strokeWidth:y=2}=e,{absoluteStrokeWidth:w=!1}=e,{iconNode:g}=e;return r.$$set=p=>{s(7,e=F(F({},e),ce(p))),s(6,l=Qt(e,t)),"name"in p&&s(0,i=p.name),"color"in p&&s(1,f=p.color),"size"in p&&s(2,b=p.size),"strokeWidth"in p&&s(3,y=p.strokeWidth),"absoluteStrokeWidth"in p&&s(4,w=p.absoluteStrokeWidth),"iconNode"in p&&s(5,g=p.iconNode),"$$scope"in p&&s(8,o=p.$$scope)},e=ce(e),[i,f,b,y,w,g,l,e,o,n]}class Qe extends Me{constructor(e){super(),Ue(this,e,Sl,xl,Pe,{name:0,color:1,size:2,strokeWidth:3,absoluteStrokeWidth:4,iconNode:5})}}function Pl(r){let e;const s=r[2].default,t=Ge(s,r,r[3],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,n){t&&t.m(l,n),e=!0},p(l,n){t&&t.p&&(!e||n&8)&&Re(t,s,l,l[3],e?We(s,l[3],n,null):Fe(l[3]),null)},i(l){e||(k(t,l),e=!0)},o(l){$(t,l),e=!1},d(l){t&&t.d(l)}}}function Al(r){let e,s;const t=[{name:"alert-circle"},r[1],{iconNode:r[0]}];let l={$$slots:{default:[Pl]},$$scope:{ctx:r}};for(let n=0;n<t.length;n+=1)l=F(l,t[n]);return e=new Qe({props:l}),{c(){te(e.$$.fragment)},l(n){ee(e.$$.fragment,n)},m(n,o){Z(e,n,o),s=!0},p(n,[o]){const i=o&3?Oe(t,[t[0],o&2&&Ye(n[1]),o&1&&{iconNode:n[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:n}),e.$set(i)},i(n){s||(k(e.$$.fragment,n),s=!0)},o(n){$(e.$$.fragment,n),s=!1},d(n){Q(e,n)}}}function zl(r,e,s){let{$$slots:t={},$$scope:l}=e;const n=[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16"}]];return r.$$set=o=>{s(1,e=F(F({},e),ce(o))),"$$scope"in o&&s(3,l=o.$$scope)},e=ce(e),[n,e,t,l]}class Ml extends Me{constructor(e){super(),Ue(this,e,zl,Al,Pe,{})}}function Ul(r){let e;const s=r[2].default,t=Ge(s,r,r[3],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,n){t&&t.m(l,n),e=!0},p(l,n){t&&t.p&&(!e||n&8)&&Re(t,s,l,l[3],e?We(s,l[3],n,null):Fe(l[3]),null)},i(l){e||(k(t,l),e=!0)},o(l){$(t,l),e=!1},d(l){t&&t.d(l)}}}function Ol(r){let e,s;const t=[{name:"chevron-down"},r[1],{iconNode:r[0]}];let l={$$slots:{default:[Ul]},$$scope:{ctx:r}};for(let n=0;n<t.length;n+=1)l=F(l,t[n]);return e=new Qe({props:l}),{c(){te(e.$$.fragment)},l(n){ee(e.$$.fragment,n)},m(n,o){Z(e,n,o),s=!0},p(n,[o]){const i=o&3?Oe(t,[t[0],o&2&&Ye(n[1]),o&1&&{iconNode:n[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:n}),e.$set(i)},i(n){s||(k(e.$$.fragment,n),s=!0)},o(n){$(e.$$.fragment,n),s=!1},d(n){Q(e,n)}}}function Bl(r,e,s){let{$$slots:t={},$$scope:l}=e;const n=[["path",{d:"m6 9 6 6 6-6"}]];return r.$$set=o=>{s(1,e=F(F({},e),ce(o))),"$$scope"in o&&s(3,l=o.$$scope)},e=ce(e),[n,e,t,l]}class jl extends Me{constructor(e){super(),Ue(this,e,Bl,Ol,Pe,{})}}function Ll(r){let e;const s=r[2].default,t=Ge(s,r,r[3],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,n){t&&t.m(l,n),e=!0},p(l,n){t&&t.p&&(!e||n&8)&&Re(t,s,l,l[3],e?We(s,l[3],n,null):Fe(l[3]),null)},i(l){e||(k(t,l),e=!0)},o(l){$(t,l),e=!1},d(l){t&&t.d(l)}}}function Hl(r){let e,s;const t=[{name:"code"},r[1],{iconNode:r[0]}];let l={$$slots:{default:[Ll]},$$scope:{ctx:r}};for(let n=0;n<t.length;n+=1)l=F(l,t[n]);return e=new Qe({props:l}),{c(){te(e.$$.fragment)},l(n){ee(e.$$.fragment,n)},m(n,o){Z(e,n,o),s=!0},p(n,[o]){const i=o&3?Oe(t,[t[0],o&2&&Ye(n[1]),o&1&&{iconNode:n[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:n}),e.$set(i)},i(n){s||(k(e.$$.fragment,n),s=!0)},o(n){$(e.$$.fragment,n),s=!1},d(n){Q(e,n)}}}function Gl(r,e,s){let{$$slots:t={},$$scope:l}=e;const n=[["polyline",{points:"16 18 22 12 16 6"}],["polyline",{points:"8 6 2 12 8 18"}]];return r.$$set=o=>{s(1,e=F(F({},e),ce(o))),"$$scope"in o&&s(3,l=o.$$scope)},e=ce(e),[n,e,t,l]}class Rl extends Me{constructor(e){super(),Ue(this,e,Gl,Hl,Pe,{})}}function Fl(r){let e;const s=r[2].default,t=Ge(s,r,r[3],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,n){t&&t.m(l,n),e=!0},p(l,n){t&&t.p&&(!e||n&8)&&Re(t,s,l,l[3],e?We(s,l[3],n,null):Fe(l[3]),null)},i(l){e||(k(t,l),e=!0)},o(l){$(t,l),e=!1},d(l){t&&t.d(l)}}}function Wl(r){let e,s;const t=[{name:"copy"},r[1],{iconNode:r[0]}];let l={$$slots:{default:[Fl]},$$scope:{ctx:r}};for(let n=0;n<t.length;n+=1)l=F(l,t[n]);return e=new Qe({props:l}),{c(){te(e.$$.fragment)},l(n){ee(e.$$.fragment,n)},m(n,o){Z(e,n,o),s=!0},p(n,[o]){const i=o&3?Oe(t,[t[0],o&2&&Ye(n[1]),o&1&&{iconNode:n[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:n}),e.$set(i)},i(n){s||(k(e.$$.fragment,n),s=!0)},o(n){$(e.$$.fragment,n),s=!1},d(n){Q(e,n)}}}function ql(r,e,s){let{$$slots:t={},$$scope:l}=e;const n=[["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"}]];return r.$$set=o=>{s(1,e=F(F({},e),ce(o))),"$$scope"in o&&s(3,l=o.$$scope)},e=ce(e),[n,e,t,l]}class Ft extends Me{constructor(e){super(),Ue(this,e,ql,Wl,Pe,{})}}function Kl(r){let e;const s=r[2].default,t=Ge(s,r,r[3],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,n){t&&t.m(l,n),e=!0},p(l,n){t&&t.p&&(!e||n&8)&&Re(t,s,l,l[3],e?We(s,l[3],n,null):Fe(l[3]),null)},i(l){e||(k(t,l),e=!0)},o(l){$(t,l),e=!1},d(l){t&&t.d(l)}}}function Jl(r){let e,s;const t=[{name:"download"},r[1],{iconNode:r[0]}];let l={$$slots:{default:[Kl]},$$scope:{ctx:r}};for(let n=0;n<t.length;n+=1)l=F(l,t[n]);return e=new Qe({props:l}),{c(){te(e.$$.fragment)},l(n){ee(e.$$.fragment,n)},m(n,o){Z(e,n,o),s=!0},p(n,[o]){const i=o&3?Oe(t,[t[0],o&2&&Ye(n[1]),o&1&&{iconNode:n[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:n}),e.$set(i)},i(n){s||(k(e.$$.fragment,n),s=!0)},o(n){$(e.$$.fragment,n),s=!1},d(n){Q(e,n)}}}function Xl(r,e,s){let{$$slots:t={},$$scope:l}=e;const n=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}],["polyline",{points:"7 10 12 15 17 10"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3"}]];return r.$$set=o=>{s(1,e=F(F({},e),ce(o))),"$$scope"in o&&s(3,l=o.$$scope)},e=ce(e),[n,e,t,l]}class sl extends Me{constructor(e){super(),Ue(this,e,Xl,Jl,Pe,{})}}function Yl(r){let e;const s=r[2].default,t=Ge(s,r,r[3],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,n){t&&t.m(l,n),e=!0},p(l,n){t&&t.p&&(!e||n&8)&&Re(t,s,l,l[3],e?We(s,l[3],n,null):Fe(l[3]),null)},i(l){e||(k(t,l),e=!0)},o(l){$(t,l),e=!1},d(l){t&&t.d(l)}}}function Ql(r){let e,s;const t=[{name:"loader-2"},r[1],{iconNode:r[0]}];let l={$$slots:{default:[Yl]},$$scope:{ctx:r}};for(let n=0;n<t.length;n+=1)l=F(l,t[n]);return e=new Qe({props:l}),{c(){te(e.$$.fragment)},l(n){ee(e.$$.fragment,n)},m(n,o){Z(e,n,o),s=!0},p(n,[o]){const i=o&3?Oe(t,[t[0],o&2&&Ye(n[1]),o&1&&{iconNode:n[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:n}),e.$set(i)},i(n){s||(k(e.$$.fragment,n),s=!0)},o(n){$(e.$$.fragment,n),s=!1},d(n){Q(e,n)}}}function Zl(r,e,s){let{$$slots:t={},$$scope:l}=e;const n=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56"}]];return r.$$set=o=>{s(1,e=F(F({},e),ce(o))),"$$scope"in o&&s(3,l=o.$$scope)},e=ce(e),[n,e,t,l]}class en extends Me{constructor(e){super(),Ue(this,e,Zl,Ql,Pe,{})}}function tn(r){let e;const s=r[2].default,t=Ge(s,r,r[3],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,n){t&&t.m(l,n),e=!0},p(l,n){t&&t.p&&(!e||n&8)&&Re(t,s,l,l[3],e?We(s,l[3],n,null):Fe(l[3]),null)},i(l){e||(k(t,l),e=!0)},o(l){$(t,l),e=!1},d(l){t&&t.d(l)}}}function ln(r){let e,s;const t=[{name:"more-horizontal"},r[1],{iconNode:r[0]}];let l={$$slots:{default:[tn]},$$scope:{ctx:r}};for(let n=0;n<t.length;n+=1)l=F(l,t[n]);return e=new Qe({props:l}),{c(){te(e.$$.fragment)},l(n){ee(e.$$.fragment,n)},m(n,o){Z(e,n,o),s=!0},p(n,[o]){const i=o&3?Oe(t,[t[0],o&2&&Ye(n[1]),o&1&&{iconNode:n[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:n}),e.$set(i)},i(n){s||(k(e.$$.fragment,n),s=!0)},o(n){$(e.$$.fragment,n),s=!1},d(n){Q(e,n)}}}function nn(r,e,s){let{$$slots:t={},$$scope:l}=e;const n=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]];return r.$$set=o=>{s(1,e=F(F({},e),ce(o))),"$$scope"in o&&s(3,l=o.$$scope)},e=ce(e),[n,e,t,l]}class sn extends Me{constructor(e){super(),Ue(this,e,nn,ln,Pe,{})}}function rn(r){let e;const s=r[2].default,t=Ge(s,r,r[3],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,n){t&&t.m(l,n),e=!0},p(l,n){t&&t.p&&(!e||n&8)&&Re(t,s,l,l[3],e?We(s,l[3],n,null):Fe(l[3]),null)},i(l){e||(k(t,l),e=!0)},o(l){$(t,l),e=!1},d(l){t&&t.d(l)}}}function on(r){let e,s;const t=[{name:"panels-top-left"},r[1],{iconNode:r[0]}];let l={$$slots:{default:[rn]},$$scope:{ctx:r}};for(let n=0;n<t.length;n+=1)l=F(l,t[n]);return e=new Qe({props:l}),{c(){te(e.$$.fragment)},l(n){ee(e.$$.fragment,n)},m(n,o){Z(e,n,o),s=!0},p(n,[o]){const i=o&3?Oe(t,[t[0],o&2&&Ye(n[1]),o&1&&{iconNode:n[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:n}),e.$set(i)},i(n){s||(k(e.$$.fragment,n),s=!0)},o(n){$(e.$$.fragment,n),s=!1},d(n){Q(e,n)}}}function an(r,e,s){let{$$slots:t={},$$scope:l}=e;const n=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M3 9h18"}],["path",{d:"M9 21V9"}]];return r.$$set=o=>{s(1,e=F(F({},e),ce(o))),"$$scope"in o&&s(3,l=o.$$scope)},e=ce(e),[n,e,t,l]}class cn extends Me{constructor(e){super(),Ue(this,e,an,on,Pe,{})}}function un(r){let e;const s=r[2].default,t=Ge(s,r,r[3],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,n){t&&t.m(l,n),e=!0},p(l,n){t&&t.p&&(!e||n&8)&&Re(t,s,l,l[3],e?We(s,l[3],n,null):Fe(l[3]),null)},i(l){e||(k(t,l),e=!0)},o(l){$(t,l),e=!1},d(l){t&&t.d(l)}}}function fn(r){let e,s;const t=[{name:"pause"},r[1],{iconNode:r[0]}];let l={$$slots:{default:[un]},$$scope:{ctx:r}};for(let n=0;n<t.length;n+=1)l=F(l,t[n]);return e=new Qe({props:l}),{c(){te(e.$$.fragment)},l(n){ee(e.$$.fragment,n)},m(n,o){Z(e,n,o),s=!0},p(n,[o]){const i=o&3?Oe(t,[t[0],o&2&&Ye(n[1]),o&1&&{iconNode:n[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:n}),e.$set(i)},i(n){s||(k(e.$$.fragment,n),s=!0)},o(n){$(e.$$.fragment,n),s=!1},d(n){Q(e,n)}}}function dn(r,e,s){let{$$slots:t={},$$scope:l}=e;const n=[["rect",{width:"4",height:"16",x:"6",y:"4"}],["rect",{width:"4",height:"16",x:"14",y:"4"}]];return r.$$set=o=>{s(1,e=F(F({},e),ce(o))),"$$scope"in o&&s(3,l=o.$$scope)},e=ce(e),[n,e,t,l]}class hn extends Me{constructor(e){super(),Ue(this,e,dn,fn,Pe,{})}}function mn(r){let e;const s=r[2].default,t=Ge(s,r,r[3],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,n){t&&t.m(l,n),e=!0},p(l,n){t&&t.p&&(!e||n&8)&&Re(t,s,l,l[3],e?We(s,l[3],n,null):Fe(l[3]),null)},i(l){e||(k(t,l),e=!0)},o(l){$(t,l),e=!1},d(l){t&&t.d(l)}}}function gn(r){let e,s;const t=[{name:"play"},r[1],{iconNode:r[0]}];let l={$$slots:{default:[mn]},$$scope:{ctx:r}};for(let n=0;n<t.length;n+=1)l=F(l,t[n]);return e=new Qe({props:l}),{c(){te(e.$$.fragment)},l(n){ee(e.$$.fragment,n)},m(n,o){Z(e,n,o),s=!0},p(n,[o]){const i=o&3?Oe(t,[t[0],o&2&&Ye(n[1]),o&1&&{iconNode:n[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:n}),e.$set(i)},i(n){s||(k(e.$$.fragment,n),s=!0)},o(n){$(e.$$.fragment,n),s=!1},d(n){Q(e,n)}}}function _n(r,e,s){let{$$slots:t={},$$scope:l}=e;const n=[["polygon",{points:"5 3 19 12 5 21 5 3"}]];return r.$$set=o=>{s(1,e=F(F({},e),ce(o))),"$$scope"in o&&s(3,l=o.$$scope)},e=ce(e),[n,e,t,l]}class Ht extends Me{constructor(e){super(),Ue(this,e,_n,gn,Pe,{})}}function pn(r){let e;const s=r[2].default,t=Ge(s,r,r[3],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,n){t&&t.m(l,n),e=!0},p(l,n){t&&t.p&&(!e||n&8)&&Re(t,s,l,l[3],e?We(s,l[3],n,null):Fe(l[3]),null)},i(l){e||(k(t,l),e=!0)},o(l){$(t,l),e=!1},d(l){t&&t.d(l)}}}function vn(r){let e,s;const t=[{name:"share"},r[1],{iconNode:r[0]}];let l={$$slots:{default:[pn]},$$scope:{ctx:r}};for(let n=0;n<t.length;n+=1)l=F(l,t[n]);return e=new Qe({props:l}),{c(){te(e.$$.fragment)},l(n){ee(e.$$.fragment,n)},m(n,o){Z(e,n,o),s=!0},p(n,[o]){const i=o&3?Oe(t,[t[0],o&2&&Ye(n[1]),o&1&&{iconNode:n[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:n}),e.$set(i)},i(n){s||(k(e.$$.fragment,n),s=!0)},o(n){$(e.$$.fragment,n),s=!1},d(n){Q(e,n)}}}function bn(r,e,s){let{$$slots:t={},$$scope:l}=e;const n=[["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"}],["polyline",{points:"16 6 12 2 8 6"}],["line",{x1:"12",x2:"12",y1:"2",y2:"15"}]];return r.$$set=o=>{s(1,e=F(F({},e),ce(o))),"$$scope"in o&&s(3,l=o.$$scope)},e=ce(e),[n,e,t,l]}class rl extends Me{constructor(e){super(),Ue(this,e,bn,vn,Pe,{})}}function yn(r){let e;const s=r[2].default,t=Ge(s,r,r[3],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,n){t&&t.m(l,n),e=!0},p(l,n){t&&t.p&&(!e||n&8)&&Re(t,s,l,l[3],e?We(s,l[3],n,null):Fe(l[3]),null)},i(l){e||(k(t,l),e=!0)},o(l){$(t,l),e=!1},d(l){t&&t.d(l)}}}function kn(r){let e,s;const t=[{name:"skip-back"},r[1],{iconNode:r[0]}];let l={$$slots:{default:[yn]},$$scope:{ctx:r}};for(let n=0;n<t.length;n+=1)l=F(l,t[n]);return e=new Qe({props:l}),{c(){te(e.$$.fragment)},l(n){ee(e.$$.fragment,n)},m(n,o){Z(e,n,o),s=!0},p(n,[o]){const i=o&3?Oe(t,[t[0],o&2&&Ye(n[1]),o&1&&{iconNode:n[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:n}),e.$set(i)},i(n){s||(k(e.$$.fragment,n),s=!0)},o(n){$(e.$$.fragment,n),s=!1},d(n){Q(e,n)}}}function $n(r,e,s){let{$$slots:t={},$$scope:l}=e;const n=[["polygon",{points:"19 20 9 12 19 4 19 20"}],["line",{x1:"5",x2:"5",y1:"19",y2:"5"}]];return r.$$set=o=>{s(1,e=F(F({},e),ce(o))),"$$scope"in o&&s(3,l=o.$$scope)},e=ce(e),[n,e,t,l]}class wn extends Me{constructor(e){super(),Ue(this,e,$n,kn,Pe,{})}}function En(r){let e;const s=r[2].default,t=Ge(s,r,r[3],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,n){t&&t.m(l,n),e=!0},p(l,n){t&&t.p&&(!e||n&8)&&Re(t,s,l,l[3],e?We(s,l[3],n,null):Fe(l[3]),null)},i(l){e||(k(t,l),e=!0)},o(l){$(t,l),e=!1},d(l){t&&t.d(l)}}}function In(r){let e,s;const t=[{name:"skip-forward"},r[1],{iconNode:r[0]}];let l={$$slots:{default:[En]},$$scope:{ctx:r}};for(let n=0;n<t.length;n+=1)l=F(l,t[n]);return e=new Qe({props:l}),{c(){te(e.$$.fragment)},l(n){ee(e.$$.fragment,n)},m(n,o){Z(e,n,o),s=!0},p(n,[o]){const i=o&3?Oe(t,[t[0],o&2&&Ye(n[1]),o&1&&{iconNode:n[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:n}),e.$set(i)},i(n){s||(k(e.$$.fragment,n),s=!0)},o(n){$(e.$$.fragment,n),s=!1},d(n){Q(e,n)}}}function Nn(r,e,s){let{$$slots:t={},$$scope:l}=e;const n=[["polygon",{points:"5 4 15 12 5 20 5 4"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19"}]];return r.$$set=o=>{s(1,e=F(F({},e),ce(o))),"$$scope"in o&&s(3,l=o.$$scope)},e=ce(e),[n,e,t,l]}class Tn extends Me{constructor(e){super(),Ue(this,e,Nn,In,Pe,{})}}function Cn(r){let e;const s=r[2].default,t=Ge(s,r,r[3],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,n){t&&t.m(l,n),e=!0},p(l,n){t&&t.p&&(!e||n&8)&&Re(t,s,l,l[3],e?We(s,l[3],n,null):Fe(l[3]),null)},i(l){e||(k(t,l),e=!0)},o(l){$(t,l),e=!1},d(l){t&&t.d(l)}}}function Dn(r){let e,s;const t=[{name:"x"},r[1],{iconNode:r[0]}];let l={$$slots:{default:[Cn]},$$scope:{ctx:r}};for(let n=0;n<t.length;n+=1)l=F(l,t[n]);return e=new Qe({props:l}),{c(){te(e.$$.fragment)},l(n){ee(e.$$.fragment,n)},m(n,o){Z(e,n,o),s=!0},p(n,[o]){const i=o&3?Oe(t,[t[0],o&2&&Ye(n[1]),o&1&&{iconNode:n[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:n}),e.$set(i)},i(n){s||(k(e.$$.fragment,n),s=!0)},o(n){$(e.$$.fragment,n),s=!1},d(n){Q(e,n)}}}function Vn(r,e,s){let{$$slots:t={},$$scope:l}=e;const n=[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]];return r.$$set=o=>{s(1,e=F(F({},e),ce(o))),"$$scope"in o&&s(3,l=o.$$scope)},e=ce(e),[n,e,t,l]}class xn extends Me{constructor(e){super(),Ue(this,e,Vn,Dn,Pe,{})}}function ol(r,e,s){const t=r.slice();return t[66]=e[s],t}function al(r,e,s){const t=r.slice();return t[58]=e[s],t}function il(r,e,s){const t=r.slice();return t[61]=e[s],t}function cl(r,e,s){const t=r.slice();return t[61]=e[s],t}function ul(r){let e;return{c(){e=h("span"),this.h()},l(s){e=d(s,"SPAN",{class:!0}),m(e).forEach(u),this.h()},h(){c(e,"class","flash-sweep svelte-zv1zz2")},m(s,t){se(s,e,t)},d(s){s&&u(e)}}}function Sn(r){let e,s,t,l,n,o="Integration Code",i,f,b,y,w,g,p,v,M,T,A,L,q,N,D,H,I,j,z;function le(U,W){return U[1]==="local"?zn:An}let V=le(r),C=V(r),_=r[3].length>0&&fl(r);const E=[Un,Mn],P=[];function re(U,W){return U[3].length===0?0:1}return D=re(r),H=P[D]=E[D](r),{c(){e=h("div"),s=h("div"),t=h("div"),l=h("div"),n=h("h2"),n.textContent=o,i=S(),f=h("p"),C.c(),b=S(),y=h("div"),w=h("div"),g=h("button"),p=J("API"),M=S(),T=h("button"),A=J("Local"),q=S(),_&&_.c(),N=S(),H.c(),this.h()},l(U){e=d(U,"DIV",{class:!0});var W=m(e);s=d(W,"DIV",{class:!0});var ne=m(s);t=d(ne,"DIV",{class:!0});var ae=m(t);l=d(ae,"DIV",{});var Y=m(l);n=d(Y,"H2",{class:!0,"data-svelte-h":!0}),He(n)!=="svelte-k26g76"&&(n.textContent=o),i=x(Y),f=d(Y,"P",{class:!0});var Ve=m(f);C.l(Ve),Ve.forEach(u),Y.forEach(u),b=x(ae),y=d(ae,"DIV",{class:!0});var ue=m(y);w=d(ue,"DIV",{class:!0});var be=m(w);g=d(be,"BUTTON",{class:!0});var Ne=m(g);p=K(Ne,"API"),Ne.forEach(u),M=x(be),T=d(be,"BUTTON",{class:!0});var ye=m(T);A=K(ye,"Local"),ye.forEach(u),be.forEach(u),q=x(ue),_&&_.l(ue),ue.forEach(u),ae.forEach(u),N=x(ne),H.l(ne),ne.forEach(u),W.forEach(u),this.h()},h(){c(n,"class","text-2xl font-semibold text-gray-900"),c(f,"class","text-sm text-gray-600 mt-1"),c(g,"class",v="px-3 py-1 text-sm font-medium rounded transition-colors "+(r[1]==="api"?"bg-white shadow-sm":"text-gray-600")),c(T,"class",L="px-3 py-1 text-sm font-medium rounded transition-colors "+(r[1]==="local"?"bg-white shadow-sm":"text-gray-600")),c(w,"class","flex items-center bg-gray-100 rounded-md p-0.5"),c(y,"class","flex items-center justify-between mt-4"),c(t,"class","mb-6"),c(s,"class","max-w-4xl mx-auto p-8"),c(e,"class","flex-1 bg-gray-50 overflow-y-auto")},m(U,W){se(U,e,W),a(e,s),a(s,t),a(t,l),a(l,n),a(l,i),a(l,f),C.m(f,null),a(t,b),a(t,y),a(y,w),a(w,g),a(g,p),a(w,M),a(w,T),a(T,A),a(y,q),_&&_.m(y,null),a(s,N),P[D].m(s,null),I=!0,j||(z=[ie(g,"click",r[49]),ie(T,"click",r[50])],j=!0)},p(U,W){V!==(V=le(U))&&(C.d(1),C=V(U),C&&(C.c(),C.m(f,null))),(!I||W[0]&2&&v!==(v="px-3 py-1 text-sm font-medium rounded transition-colors "+(U[1]==="api"?"bg-white shadow-sm":"text-gray-600")))&&c(g,"class",v),(!I||W[0]&2&&L!==(L="px-3 py-1 text-sm font-medium rounded transition-colors "+(U[1]==="local"?"bg-white shadow-sm":"text-gray-600")))&&c(T,"class",L),U[3].length>0?_?(_.p(U,W),W[0]&8&&k(_,1)):(_=fl(U),_.c(),k(_,1),_.m(y,null)):_&&(ut(),$(_,1,1,()=>{_=null}),ct());let ne=D;D=re(U),D===ne?P[D].p(U,W):(ut(),$(P[ne],1,1,()=>{P[ne]=null}),ct(),H=P[D],H?H.p(U,W):(H=P[D]=E[D](U),H.c()),k(H,1),H.m(s,null))},i(U){I||(k(_),k(H),I=!0)},o(U){$(_),$(H),I=!1},d(U){U&&u(e),C.d(),_&&_.d(),P[D].d(),j=!1,Tt(z)}}}function Pn(r){let e,s,t,l,n,o,i,f,b=r[0].length+"",y,w,g,p,v,M,T,A,L,q,N,D,H="Model",I,j,z,le,V,C,_,E,P='Estimated $0.025 per 1000 characters β€’ <a href="https://huggingface.co/settings/billing" target="_blank" class="text-amber-600 hover:text-amber-700 underline">Billing ‴</a>',re,U,W,ne='<h3 class="font-medium text-gray-900">Voice</h3>',ae,Y,Ve,ue,be='<div class="flex items-center gap-3 flex-1 min-w-0"><div class="w-10 h-10 bg-gray-400 rounded-full flex items-center justify-center text-white text-sm font-medium flex-shrink-0">+</div> <div class="flex-1 min-w-0"><div class="text-sm font-medium text-gray-600 mb-1">Clone your voice</div> <div class="text-xs text-gray-400">(coming soon)</div></div></div>',Ne,ye,fe,xe,$e,ft="Exaggeration",qe,we,Te=r[11].toFixed(2)+"",dt,Ze,pe,bt,Ee,rt="<span>None</span> <span>Exaggerated</span>",ot,Ae,Ke,Se,R="Stability",de,me,Ie=r[12].toFixed(2)+"",Je,at,ge,tt,Be,xt="<span>More stable</span> <span>More variable</span>",lt,nt,ht;const St=[Bn,On],je=[];function mt(O,X){return O[7]?0:1}v=mt(r),M=je[v]=St[v](r);let _e=r[8]&&ml(r),Ce=pt(r[22]),ke=[];for(let O=0;O<Ce.length;O+=1)ke[O]=pl(cl(r,Ce,O));V=new jl({props:{size:16,class:"text-gray-500"}});let De=r[6]&&vl(r),gt=pt(r[23]),oe=[];for(let O=0;O<gt.length;O+=1)oe[O]=yl(al(r,gt,O));const Bt=O=>$(oe[O],1,1,()=>{oe[O]=null});return{c(){e=h("div"),s=h("div"),t=h("div"),l=h("textarea"),n=S(),o=h("div"),i=h("div"),f=h("span"),y=J(b),w=J(" / 5,000 characters"),g=S(),p=h("button"),M.c(),A=S(),_e&&_e.c(),L=S(),q=h("div"),N=h("div"),D=h("h3"),D.textContent=H,I=S(),j=h("button"),z=h("span");for(let O=0;O<ke.length;O+=1)ke[O].c();le=S(),te(V.$$.fragment),C=S(),De&&De.c(),_=S(),E=h("div"),E.innerHTML=P,re=S(),U=h("div"),W=h("div"),W.innerHTML=ne,ae=S(),Y=h("div");for(let O=0;O<oe.length;O+=1)oe[O].c();Ve=S(),ue=h("button"),ue.innerHTML=be,Ne=S(),ye=h("div"),fe=h("div"),xe=h("div"),$e=h("label"),$e.textContent=ft,qe=S(),we=h("span"),dt=J(Te),Ze=S(),pe=h("input"),bt=S(),Ee=h("div"),Ee.innerHTML=rt,ot=S(),Ae=h("div"),Ke=h("div"),Se=h("label"),Se.textContent=R,de=S(),me=h("span"),Je=J(Ie),at=S(),ge=h("input"),tt=S(),Be=h("div"),Be.innerHTML=xt,this.h()},l(O){e=d(O,"DIV",{class:!0});var X=m(e);s=d(X,"DIV",{class:!0});var ve=m(s);t=d(ve,"DIV",{class:!0});var G=m(t);l=d(G,"TEXTAREA",{class:!0,placeholder:!0}),m(l).forEach(u),G.forEach(u),n=x(ve),o=d(ve,"DIV",{class:!0});var B=m(o);i=d(B,"DIV",{class:!0});var he=m(i);f=d(he,"SPAN",{class:!0});var Xe=m(f);y=K(Xe,b),w=K(Xe," / 5,000 characters"),Xe.forEach(u),he.forEach(u),g=x(B),p=d(B,"BUTTON",{class:!0});var it=m(p);M.l(it),it.forEach(u),B.forEach(u),A=x(ve),_e&&_e.l(ve),ve.forEach(u),L=x(X),q=d(X,"DIV",{class:!0});var yt=m(q);N=d(yt,"DIV",{class:!0});var st=m(N);D=d(st,"H3",{class:!0,"data-svelte-h":!0}),He(D)!=="svelte-b3hs3r"&&(D.textContent=H),I=x(st),j=d(st,"BUTTON",{class:!0});var kt=m(j);z=d(kt,"SPAN",{});var Ct=m(z);for(let _t=0;_t<ke.length;_t+=1)ke[_t].l(Ct);Ct.forEach(u),le=x(kt),ee(V.$$.fragment,kt),kt.forEach(u),C=x(st),De&&De.l(st),_=x(st),E=d(st,"DIV",{class:!0,"data-svelte-h":!0}),He(E)!=="svelte-1whx7pw"&&(E.innerHTML=P),st.forEach(u),re=x(yt),U=d(yt,"DIV",{class:!0});var $t=m(U);W=d($t,"DIV",{class:!0,"data-svelte-h":!0}),He(W)!=="svelte-182x1ki"&&(W.innerHTML=ne),ae=x($t),Y=d($t,"DIV",{class:!0});var wt=m(Y);for(let _t=0;_t<oe.length;_t+=1)oe[_t].l(wt);Ve=x(wt),ue=d(wt,"BUTTON",{class:!0,"data-svelte-h":!0}),He(ue)!=="svelte-15dhhm1"&&(ue.innerHTML=be),wt.forEach(u),$t.forEach(u),Ne=x(yt),ye=d(yt,"DIV",{class:!0});var Dt=m(ye);fe=d(Dt,"DIV",{});var et=m(fe);xe=d(et,"DIV",{class:!0});var Vt=m(xe);$e=d(Vt,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),He($e)!=="svelte-1b3mj7t"&&($e.textContent=ft),qe=x(Vt),we=d(Vt,"SPAN",{class:!0});var Mt=m(we);dt=K(Mt,Te),Mt.forEach(u),Vt.forEach(u),Ze=x(et),pe=d(et,"INPUT",{id:!0,type:!0,min:!0,max:!0,step:!0,class:!0}),bt=x(et),Ee=d(et,"DIV",{class:!0,"data-svelte-h":!0}),He(Ee)!=="svelte-1nv1j90"&&(Ee.innerHTML=rt),et.forEach(u),ot=x(Dt),Ae=d(Dt,"DIV",{});var Et=m(Ae);Ke=d(Et,"DIV",{class:!0});var Le=m(Ke);Se=d(Le,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),He(Se)!=="svelte-ttm2j4"&&(Se.textContent=R),de=x(Le),me=d(Le,"SPAN",{class:!0});var Ut=m(me);Je=K(Ut,Ie),Ut.forEach(u),Le.forEach(u),at=x(Et),ge=d(Et,"INPUT",{id:!0,type:!0,min:!0,max:!0,step:!0,class:!0}),tt=x(Et),Be=d(Et,"DIV",{class:!0,"data-svelte-h":!0}),He(Be)!=="svelte-1ipakpw"&&(Be.innerHTML=xt),Et.forEach(u),Dt.forEach(u),yt.forEach(u),X.forEach(u),this.h()},h(){c(l,"class","w-full h-full p-6 bg-white resize-none border-0 focus:outline-none text-gray-900 text-base leading-relaxed"),c(l,"placeholder","In a hole in the ground there lived a hobbit."),c(t,"class","flex-1 pb-24"),c(f,"class","text-sm text-gray-500"),c(i,"class","flex items-center justify-between mb-3"),p.disabled=T=r[7]||!r[0].trim(),c(p,"class","w-full px-6 py-3 bg-gradient-to-r from-amber-400 to-orange-500 text-white rounded-lg font-medium hover:from-amber-500 hover:to-orange-600 disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2 shadow-sm"),c(o,"class","fixed bottom-0 left-56 right-80 p-4 bg-white border-t border-gray-200"),c(s,"class","flex-1 flex flex-col p-6"),c(D,"class","font-medium text-gray-900 mb-3"),c(j,"class","w-full p-3 border border-gray-200 rounded-lg bg-white text-sm focus:outline-none focus:ring-2 focus:ring-amber-400 focus:border-transparent appearance-none bg-no-repeat bg-right pr-10 shadow-sm text-left flex items-center justify-between"),c(E,"class","mt-2 text-xs text-gray-500"),c(N,"class","mb-6 relative model-dropdown"),c(W,"class","mb-3"),c(ue,"class","w-full flex items-center justify-between p-2 rounded-lg opacity-50 cursor-not-allowed text-left border border-transparent"),ue.disabled=!0,c(Y,"class","space-y-2"),c(U,"class","mb-6"),c($e,"for","exaggeration-slider"),c($e,"class","text-sm font-medium text-gray-700"),c(we,"class","text-sm text-gray-500"),c(xe,"class","flex justify-between mb-1"),c(pe,"id","exaggeration-slider"),c(pe,"type","range"),c(pe,"min","0"),c(pe,"max","1"),c(pe,"step","0.01"),c(pe,"class","w-full h-1.5 bg-gray-200 rounded-lg appearance-none cursor-pointer slider-hf"),c(Ee,"class","flex justify-between text-xs text-gray-400 mt-1"),c(Se,"for","temperature-slider"),c(Se,"class","text-sm font-medium text-gray-700"),c(me,"class","text-sm text-gray-500"),c(Ke,"class","flex justify-between mb-1"),c(ge,"id","temperature-slider"),c(ge,"type","range"),c(ge,"min","0"),c(ge,"max","1"),c(ge,"step","0.01"),c(ge,"class","w-full h-1.5 bg-gray-200 rounded-lg appearance-none cursor-pointer slider-hf"),c(Be,"class","flex justify-between text-xs text-gray-400 mt-1"),c(ye,"class","space-y-4 pt-4 border-t border-gray-200"),c(q,"class","w-80 border-l border-gray-200 bg-white p-4 overflow-y-auto"),c(e,"class","flex-1 flex")},m(O,X){se(O,e,X),a(e,s),a(s,t),a(t,l),zt(l,r[0]),a(s,n),a(s,o),a(o,i),a(i,f),a(f,y),a(f,w),a(o,g),a(o,p),je[v].m(p,null),a(s,A),_e&&_e.m(s,null),a(e,L),a(e,q),a(q,N),a(N,D),a(N,I),a(N,j),a(j,z);for(let ve=0;ve<ke.length;ve+=1)ke[ve]&&ke[ve].m(z,null);a(j,le),Z(V,j,null),a(N,C),De&&De.m(N,null),a(N,_),a(N,E),a(q,re),a(q,U),a(U,W),a(U,ae),a(U,Y);for(let ve=0;ve<oe.length;ve+=1)oe[ve]&&oe[ve].m(Y,null);a(Y,Ve),a(Y,ue),a(q,Ne),a(q,ye),a(ye,fe),a(fe,xe),a(xe,$e),a(xe,qe),a(xe,we),a(we,dt),a(fe,Ze),a(fe,pe),zt(pe,r[11]),a(fe,bt),a(fe,Ee),a(ye,ot),a(ye,Ae),a(Ae,Ke),a(Ke,Se),a(Ke,de),a(Ke,me),a(me,Je),a(Ae,at),a(Ae,ge),zt(ge,r[12]),a(Ae,tt),a(Ae,Be),lt=!0,nt||(ht=[ie(l,"input",r[41]),ie(p,"click",r[24]),ie(j,"click",r[43]),ie(pe,"change",r[47]),ie(pe,"input",r[47]),ie(ge,"change",r[48]),ie(ge,"input",r[48])],nt=!0)},p(O,X){X[0]&1&&zt(l,O[0]),(!lt||X[0]&1)&&b!==(b=O[0].length+"")&&ze(y,b);let ve=v;if(v=mt(O),v!==ve&&(ut(),$(je[ve],1,1,()=>{je[ve]=null}),ct(),M=je[v],M||(M=je[v]=St[v](O),M.c()),k(M,1),M.m(p,null)),(!lt||X[0]&129&&T!==(T=O[7]||!O[0].trim()))&&(p.disabled=T),O[8]?_e?(_e.p(O,X),X[0]&256&&k(_e,1)):(_e=ml(O),_e.c(),k(_e,1),_e.m(s,null)):_e&&(ut(),$(_e,1,1,()=>{_e=null}),ct()),X[0]&4194336){Ce=pt(O[22]);let G;for(G=0;G<Ce.length;G+=1){const B=cl(O,Ce,G);ke[G]?ke[G].p(B,X):(ke[G]=pl(B),ke[G].c(),ke[G].m(z,null))}for(;G<ke.length;G+=1)ke[G].d(1);ke.length=Ce.length}if(O[6]?De?De.p(O,X):(De=vl(O),De.c(),De.m(N,_)):De&&(De.d(1),De=null),X[0]&8650768|X[1]&1){gt=pt(O[23]);let G;for(G=0;G<gt.length;G+=1){const B=al(O,gt,G);oe[G]?(oe[G].p(B,X),k(oe[G],1)):(oe[G]=yl(B),oe[G].c(),k(oe[G],1),oe[G].m(Y,Ve))}for(ut(),G=gt.length;G<oe.length;G+=1)Bt(G);ct()}(!lt||X[0]&2048)&&Te!==(Te=O[11].toFixed(2)+"")&&ze(dt,Te),X[0]&2048&&zt(pe,O[11]),(!lt||X[0]&4096)&&Ie!==(Ie=O[12].toFixed(2)+"")&&ze(Je,Ie),X[0]&4096&&zt(ge,O[12])},i(O){if(!lt){k(M),k(_e),k(V.$$.fragment,O);for(let X=0;X<gt.length;X+=1)k(oe[X]);lt=!0}},o(O){$(M),$(_e),$(V.$$.fragment,O),oe=oe.filter(Boolean);for(let X=0;X<oe.length;X+=1)$(oe[X]);lt=!1},d(O){O&&u(e),je[v].d(),_e&&_e.d(),jt(ke,O),Q(V),De&&De.d(),jt(oe,O),nt=!1,Tt(ht)}}}function An(r){let e;return{c(){e=J("Python code to reproduce your actions via the API")},l(s){e=K(s,"Python code to reproduce your actions via the API")},m(s,t){se(s,e,t)},d(s){s&&u(e)}}}function zn(r){let e;return{c(){e=J("Python code to reproduce your actions using a local HFStudio server")},l(s){e=K(s,"Python code to reproduce your actions using a local HFStudio server")},m(s,t){se(s,e,t)},d(s){s&&u(e)}}}function fl(r){let e,s,t,l,n,o,i;return t=new Ft({props:{size:16}}),{c(){e=h("button"),s=h("span"),te(t.$$.fragment),l=J(`
7
+ Copy All`),this.h()},l(f){e=d(f,"BUTTON",{class:!0});var b=m(e);s=d(b,"SPAN",{class:!0});var y=m(s);ee(t.$$.fragment,y),l=K(y,`
8
+ Copy All`),y.forEach(u),b.forEach(u),this.h()},h(){c(s,"class","px-3 py-1 text-sm font-medium text-gray-600 flex items-center gap-2"),c(e,"class","flex items-center bg-gray-100 rounded-md p-0.5")},m(f,b){se(f,e,b),a(e,s),Z(t,s,null),a(s,l),n=!0,o||(i=ie(e,"click",r[36]),o=!0)},p:vt,i(f){n||(k(t.$$.fragment,f),n=!0)},o(f){$(t.$$.fragment,f),n=!1},d(f){f&&u(e),Q(t),o=!1,i()}}}function Mn(r){let e,s=[],t=new Map,l,n=pt(r[3]);const o=i=>i[66].id;for(let i=0;i<n.length;i+=1){let f=ol(r,n,i),b=o(f);t.set(b,s[i]=hl(b,f))}return{c(){e=h("div");for(let i=0;i<s.length;i+=1)s[i].c();this.h()},l(i){e=d(i,"DIV",{class:!0});var f=m(e);for(let b=0;b<s.length;b+=1)s[b].l(f);f.forEach(u),this.h()},h(){c(e,"class","space-y-4")},m(i,f){se(i,e,f);for(let b=0;b<s.length;b+=1)s[b]&&s[b].m(e,null);l=!0},p(i,f){f[0]&8|f[1]&4&&(n=pt(i[3]),ut(),s=Vl(s,f,o,1,i,n,t,e,Dl,hl,null,ol),ct())},i(i){if(!l){for(let f=0;f<n.length;f+=1)k(s[f]);l=!0}},o(i){for(let f=0;f<s.length;f+=1)$(s[f]);l=!1},d(i){i&&u(e);for(let f=0;f<s.length;f+=1)s[f].d()}}}function Un(r){let e,s='<p class="text-gray-500">Start using the UI to see generated code here</p>';return{c(){e=h("div"),e.innerHTML=s,this.h()},l(t){e=d(t,"DIV",{class:!0,"data-svelte-h":!0}),He(e)!=="svelte-1dkp70o"&&(e.innerHTML=s),this.h()},h(){c(e,"class","bg-white rounded-lg border border-gray-200 p-8 text-center")},m(t,l){se(t,e,l)},p:vt,i:vt,o:vt,d(t){t&&u(e)}}}function dl(r){let e,s=r[66].output+"",t;return{c(){e=h("div"),t=J(s),this.h()},l(l){e=d(l,"DIV",{class:!0});var n=m(e);t=K(n,s),n.forEach(u),this.h()},h(){c(e,"class","px-4 py-2 bg-gray-900 text-green-400 font-mono text-xs border-t border-gray-200")},m(l,n){se(l,e,n),a(e,t)},p(l,n){n[0]&8&&s!==(s=l[66].output+"")&&ze(t,s)},d(l){l&&u(e)}}}function hl(r,e){let s,t,l,n,o=e[66].title+"",i,f,b,y=e[66].timestamp+"",w,g,p,v,M,T,A,L,q=e[66].code+"",N,D,H,I,j,z;v=new Ft({props:{size:14,class:"text-gray-600"}});function le(){return e[51](e[66])}let V=e[66].output&&dl(e);return{key:r,first:null,c(){s=h("div"),t=h("div"),l=h("div"),n=h("span"),i=J(o),f=S(),b=h("span"),w=J(y),g=S(),p=h("button"),te(v.$$.fragment),M=S(),T=h("div"),A=h("pre"),L=h("code"),N=J(q),D=S(),V&&V.c(),H=S(),this.h()},l(C){s=d(C,"DIV",{class:!0});var _=m(s);t=d(_,"DIV",{class:!0});var E=m(t);l=d(E,"DIV",{class:!0});var P=m(l);n=d(P,"SPAN",{class:!0});var re=m(n);i=K(re,o),re.forEach(u),f=x(P),b=d(P,"SPAN",{class:!0});var U=m(b);w=K(U,y),U.forEach(u),P.forEach(u),g=x(E),p=d(E,"BUTTON",{class:!0,title:!0});var W=m(p);ee(v.$$.fragment,W),W.forEach(u),E.forEach(u),M=x(_),T=d(_,"DIV",{class:!0});var ne=m(T);A=d(ne,"PRE",{class:!0});var ae=m(A);L=d(ae,"CODE",{class:!0});var Y=m(L);N=K(Y,q),Y.forEach(u),ae.forEach(u),ne.forEach(u),D=x(_),V&&V.l(_),H=x(_),_.forEach(u),this.h()},h(){c(n,"class","text-sm font-medium text-gray-700"),c(b,"class","text-xs text-gray-500"),c(l,"class","flex items-center gap-3"),c(p,"class","p-1.5 hover:bg-gray-200 rounded transition-colors"),c(p,"title","Copy code"),c(t,"class","flex items-center justify-between px-4 py-2 bg-gray-50 border-b border-gray-200"),c(L,"class","language-python text-sm font-mono"),c(A,"class","p-4 overflow-x-auto bg-gray-50 text-gray-900"),c(T,"class","relative"),c(s,"class","bg-white rounded-lg border border-gray-200 overflow-hidden"),this.first=s},m(C,_){se(C,s,_),a(s,t),a(t,l),a(l,n),a(n,i),a(l,f),a(l,b),a(b,w),a(t,g),a(t,p),Z(v,p,null),a(s,M),a(s,T),a(T,A),a(A,L),a(L,N),a(s,D),V&&V.m(s,null),a(s,H),I=!0,j||(z=ie(p,"click",le),j=!0)},p(C,_){e=C,(!I||_[0]&8)&&o!==(o=e[66].title+"")&&ze(i,o),(!I||_[0]&8)&&y!==(y=e[66].timestamp+"")&&ze(w,y),(!I||_[0]&8)&&q!==(q=e[66].code+"")&&ze(N,q),e[66].output?V?V.p(e,_):(V=dl(e),V.c(),V.m(s,H)):V&&(V.d(1),V=null)},i(C){I||(k(v.$$.fragment,C),I=!0)},o(C){$(v.$$.fragment,C),I=!1},d(C){C&&u(s),Q(v),V&&V.d(),j=!1,z()}}}function On(r){let e,s,t;return e=new Ht({props:{size:20}}),{c(){te(e.$$.fragment),s=J(`
9
+ Generate speech`)},l(l){ee(e.$$.fragment,l),s=K(l,`
10
+ Generate speech`)},m(l,n){Z(e,l,n),se(l,s,n),t=!0},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){$(e.$$.fragment,l),t=!1},d(l){l&&u(s),Q(e,l)}}}function Bn(r){let e,s,t;return e=new en({props:{size:20,class:"animate-spin"}}),{c(){te(e.$$.fragment),s=J(`
11
+ Generating...`)},l(l){ee(e.$$.fragment,l),s=K(l,`
12
+ Generating...`)},m(l,n){Z(e,l,n),se(l,s,n),t=!0},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){$(e.$$.fragment,l),t=!1},d(l){l&&u(s),Q(e,l)}}}function ml(r){let e,s,t,l,n,o,i,f,b,y,w,g,p,v,M,T,A,L="Share",q,N,D,H="Download",I,j,z,le,V,C,_,E,P,re,U=It(r[14])+"",W,ne,ae,Y,Ve,ue,be=It(r[15])+"",Ne,ye,fe,xe,$e,ft,qe,we,Te,dt,Ze,pe,bt,Ee,rt,ot=It(r[14])+"",Ae,Ke,Se,R,de,me,Ie=It(r[15])+"",Je,at,ge,tt,Be,xt,lt,nt,ht,St,je,mt,_e,Ce,ke,De;M=new rl({props:{size:14,class:"text-gray-600"}}),j=new sl({props:{size:14,class:"text-gray-600"}});const gt=[Ln,jn],oe=[];function Bt(B,he){return B[13]?0:1}C=Bt(r),_=oe[C]=gt[C](r),$e=new wn({props:{size:20,class:"text-gray-600"}});const O=[Gn,Hn],X=[];function ve(B,he){return B[13]?0:1}we=ve(r),Te=X[we]=O[we](r),pe=new Tn({props:{size:20,class:"text-gray-600"}}),Be=new rl({props:{size:14}}),ht=new sl({props:{size:16,class:"text-gray-600"}}),mt=new sn({props:{size:16,class:"text-gray-600"}});let G=r[8]&&gl(r);return{c(){e=h("div"),s=h("div"),t=h("div"),l=S(),n=h("div"),o=h("h3"),i=J(r[16]),f=S(),b=h("p"),y=J(r[4]),w=J(" β€’ Created 1 second ago"),g=S(),p=h("div"),v=h("button"),te(M.$$.fragment),T=S(),A=h("span"),A.textContent=L,q=S(),N=h("button"),D=h("span"),D.textContent=H,I=S(),te(j.$$.fragment),z=S(),le=h("div"),V=h("button"),_.c(),E=S(),P=h("div"),re=h("span"),W=J(U),ne=S(),ae=h("div"),Y=h("div"),Ve=S(),ue=h("span"),Ne=J(be),ye=S(),fe=h("div"),xe=h("button"),te($e.$$.fragment),ft=S(),qe=h("button"),Te.c(),dt=S(),Ze=h("button"),te(pe.$$.fragment),bt=S(),Ee=h("div"),rt=h("span"),Ae=J(ot),Ke=S(),Se=h("div"),R=h("div"),de=S(),me=h("span"),Je=J(Ie),at=S(),ge=h("div"),tt=h("button"),te(Be.$$.fragment),xt=J(`
13
+ Share`),lt=S(),nt=h("button"),te(ht.$$.fragment),St=S(),je=h("button"),te(mt.$$.fragment),_e=S(),G&&G.c(),this.h()},l(B){e=d(B,"DIV",{class:!0});var he=m(e);s=d(he,"DIV",{class:!0});var Xe=m(s);t=d(Xe,"DIV",{class:!0}),m(t).forEach(u),l=x(Xe),n=d(Xe,"DIV",{class:!0});var it=m(n);o=d(it,"H3",{class:!0});var yt=m(o);i=K(yt,r[16]),yt.forEach(u),f=x(it),b=d(it,"P",{class:!0});var st=m(b);y=K(st,r[4]),w=K(st," β€’ Created 1 second ago"),st.forEach(u),it.forEach(u),g=x(Xe),p=d(Xe,"DIV",{class:!0});var kt=m(p);v=d(kt,"BUTTON",{class:!0});var Ct=m(v);ee(M.$$.fragment,Ct),T=x(Ct),A=d(Ct,"SPAN",{class:!0,"data-svelte-h":!0}),He(A)!=="svelte-hbn8gl"&&(A.textContent=L),Ct.forEach(u),q=x(kt),N=d(kt,"BUTTON",{class:!0});var $t=m(N);D=d($t,"SPAN",{class:!0,"data-svelte-h":!0}),He(D)!=="svelte-h01aeg"&&(D.textContent=H),I=x($t),ee(j.$$.fragment,$t),$t.forEach(u),kt.forEach(u),Xe.forEach(u),z=x(he),le=d(he,"DIV",{class:!0});var wt=m(le);V=d(wt,"BUTTON",{class:!0});var Dt=m(V);_.l(Dt),Dt.forEach(u),E=x(wt),P=d(wt,"DIV",{class:!0});var et=m(P);re=d(et,"SPAN",{class:!0});var Vt=m(re);W=K(Vt,U),Vt.forEach(u),ne=x(et),ae=d(et,"DIV",{class:!0});var Mt=m(ae);Y=d(Mt,"DIV",{class:!0,style:!0}),m(Y).forEach(u),Mt.forEach(u),Ve=x(et),ue=d(et,"SPAN",{class:!0});var Et=m(ue);Ne=K(Et,be),Et.forEach(u),et.forEach(u),wt.forEach(u),ye=x(he),fe=d(he,"DIV",{class:!0});var Le=m(fe);xe=d(Le,"BUTTON",{class:!0,title:!0});var Ut=m(xe);ee($e.$$.fragment,Ut),Ut.forEach(u),ft=x(Le),qe=d(Le,"BUTTON",{class:!0});var _t=m(qe);Te.l(_t),_t.forEach(u),dt=x(Le),Ze=d(Le,"BUTTON",{class:!0,title:!0});var Wt=m(Ze);ee(pe.$$.fragment,Wt),Wt.forEach(u),bt=x(Le),Ee=d(Le,"DIV",{class:!0});var Pt=m(Ee);rt=d(Pt,"SPAN",{class:!0});var qt=m(rt);Ae=K(qt,ot),qt.forEach(u),Ke=x(Pt),Se=d(Pt,"DIV",{class:!0});var Kt=m(Se);R=d(Kt,"DIV",{class:!0,style:!0}),m(R).forEach(u),Kt.forEach(u),de=x(Pt),me=d(Pt,"SPAN",{class:!0});var Jt=m(me);Je=K(Jt,Ie),Jt.forEach(u),Pt.forEach(u),at=x(Le),ge=d(Le,"DIV",{class:!0});var At=m(ge);tt=d(At,"BUTTON",{class:!0});var Gt=m(tt);ee(Be.$$.fragment,Gt),xt=K(Gt,`
14
+ Share`),Gt.forEach(u),lt=x(At),nt=d(At,"BUTTON",{class:!0,title:!0});var Xt=m(nt);ee(ht.$$.fragment,Xt),Xt.forEach(u),St=x(At),je=d(At,"BUTTON",{class:!0,title:!0});var Yt=m(je);ee(mt.$$.fragment,Yt),Yt.forEach(u),At.forEach(u),Le.forEach(u),_e=x(he),G&&G.l(he),he.forEach(u),this.h()},h(){c(t,"class","w-2 h-2 bg-green-500 rounded-full"),c(o,"class","font-medium text-gray-900 text-sm"),c(b,"class","text-xs text-gray-500"),c(n,"class","flex-1"),c(A,"class","text-gray-700"),c(v,"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"),c(D,"class","text-gray-700"),c(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"),c(p,"class","flex items-center gap-2"),c(s,"class","flex items-center gap-3 mb-4"),c(V,"class","w-8 h-8 bg-black rounded-full flex items-center justify-center hover:bg-gray-800 transition-colors"),c(re,"class","text-xs text-gray-500 font-mono"),c(Y,"class","h-full bg-gradient-to-r from-amber-400 to-orange-500 rounded-full transition-all"),Ot(Y,"width",r[14]/r[15]*100+"%"),c(ae,"class","flex-1 h-1 bg-gray-200 rounded-full cursor-pointer"),c(ue,"class","text-xs text-gray-500 font-mono"),c(P,"class","flex-1 flex items-center gap-2"),c(le,"class","flex items-center gap-3 mb-4"),c(xe,"class","p-2 hover:bg-gray-100 rounded-full"),c(xe,"title","Skip back"),c(qe,"class","w-12 h-12 bg-black rounded-full flex items-center justify-center hover:bg-gray-800 transition-colors"),c(Ze,"class","p-2 hover:bg-gray-100 rounded-full"),c(Ze,"title","Skip forward"),c(rt,"class","text-xs text-gray-500 font-mono"),c(R,"class","h-full bg-gradient-to-r from-amber-400 to-orange-500 rounded-full transition-all"),Ot(R,"width",r[14]/r[15]*100+"%"),c(Se,"class","flex-1 h-1 bg-gray-200 rounded-full"),c(me,"class","text-xs text-gray-500 font-mono"),c(Ee,"class","flex-1 flex items-center gap-3"),c(tt,"class","flex items-center gap-2 px-3 py-1.5 text-sm border border-gray-200 rounded-md hover:bg-gray-50"),c(nt,"class","p-2 hover:bg-gray-100 rounded-md"),c(nt,"title","Download"),c(je,"class","p-2 hover:bg-gray-100 rounded-md"),c(je,"title","More options"),c(ge,"class","flex items-center gap-2"),c(fe,"class","flex items-center gap-4 mb-4"),c(e,"class","p-4 border border-gray-200 rounded-lg bg-white")},m(B,he){se(B,e,he),a(e,s),a(s,t),a(s,l),a(s,n),a(n,o),a(o,i),a(n,f),a(n,b),a(b,y),a(b,w),a(s,g),a(s,p),a(p,v),Z(M,v,null),a(v,T),a(v,A),a(p,q),a(p,N),a(N,D),a(N,I),Z(j,N,null),a(e,z),a(e,le),a(le,V),oe[C].m(V,null),a(le,E),a(le,P),a(P,re),a(re,W),a(P,ne),a(P,ae),a(ae,Y),a(P,Ve),a(P,ue),a(ue,Ne),a(e,ye),a(e,fe),a(fe,xe),Z($e,xe,null),a(fe,ft),a(fe,qe),X[we].m(qe,null),a(fe,dt),a(fe,Ze),Z(pe,Ze,null),a(fe,bt),a(fe,Ee),a(Ee,rt),a(rt,Ae),a(Ee,Ke),a(Ee,Se),a(Se,R),a(Ee,de),a(Ee,me),a(me,Je),a(fe,at),a(fe,ge),a(ge,tt),Z(Be,tt,null),a(tt,xt),a(ge,lt),a(ge,nt),Z(ht,nt,null),a(ge,St),a(ge,je),Z(mt,je,null),a(e,_e),G&&G.m(e,null),Ce=!0,ke||(De=[ie(v,"click",Il),ie(N,"click",r[30]),ie(V,"click",r[25]),ie(qe,"click",r[25]),ie(tt,"click",Il),ie(nt,"click",r[30])],ke=!0)},p(B,he){(!Ce||he[0]&65536)&&ze(i,B[16]),(!Ce||he[0]&16)&&ze(y,B[4]);let Xe=C;C=Bt(B),C!==Xe&&(ut(),$(oe[Xe],1,1,()=>{oe[Xe]=null}),ct(),_=oe[C],_||(_=oe[C]=gt[C](B),_.c()),k(_,1),_.m(V,null)),(!Ce||he[0]&16384)&&U!==(U=It(B[14])+"")&&ze(W,U),(!Ce||he[0]&49152)&&Ot(Y,"width",B[14]/B[15]*100+"%"),(!Ce||he[0]&32768)&&be!==(be=It(B[15])+"")&&ze(Ne,be);let it=we;we=ve(B),we!==it&&(ut(),$(X[it],1,1,()=>{X[it]=null}),ct(),Te=X[we],Te||(Te=X[we]=O[we](B),Te.c()),k(Te,1),Te.m(qe,null)),(!Ce||he[0]&16384)&&ot!==(ot=It(B[14])+"")&&ze(Ae,ot),(!Ce||he[0]&49152)&&Ot(R,"width",B[14]/B[15]*100+"%"),(!Ce||he[0]&32768)&&Ie!==(Ie=It(B[15])+"")&&ze(Je,Ie),B[8]?G?G.p(B,he):(G=gl(B),G.c(),G.m(e,null)):G&&(G.d(1),G=null)},i(B){Ce||(k(M.$$.fragment,B),k(j.$$.fragment,B),k(_),k($e.$$.fragment,B),k(Te),k(pe.$$.fragment,B),k(Be.$$.fragment,B),k(ht.$$.fragment,B),k(mt.$$.fragment,B),Ce=!0)},o(B){$(M.$$.fragment,B),$(j.$$.fragment,B),$(_),$($e.$$.fragment,B),$(Te),$(pe.$$.fragment,B),$(Be.$$.fragment,B),$(ht.$$.fragment,B),$(mt.$$.fragment,B),Ce=!1},d(B){B&&u(e),Q(M),Q(j),oe[C].d(),Q($e),X[we].d(),Q(pe),Q(Be),Q(ht),Q(mt),G&&G.d(),ke=!1,Tt(De)}}}function jn(r){let e,s;return e=new Ht({props:{size:14,class:"text-white ml-0.5"}}),{c(){te(e.$$.fragment)},l(t){ee(e.$$.fragment,t)},m(t,l){Z(e,t,l),s=!0},i(t){s||(k(e.$$.fragment,t),s=!0)},o(t){$(e.$$.fragment,t),s=!1},d(t){Q(e,t)}}}function Ln(r){let e;return{c(){e=h("div"),this.h()},l(s){e=d(s,"DIV",{class:!0}),m(e).forEach(u),this.h()},h(){c(e,"class","pause-filled text-white")},m(s,t){se(s,e,t)},i:vt,o:vt,d(s){s&&u(e)}}}function Hn(r){let e,s;return e=new Ht({props:{size:20,class:"text-white ml-0.5"}}),{c(){te(e.$$.fragment)},l(t){ee(e.$$.fragment,t)},m(t,l){Z(e,t,l),s=!0},i(t){s||(k(e.$$.fragment,t),s=!0)},o(t){$(e.$$.fragment,t),s=!1},d(t){Q(e,t)}}}function Gn(r){let e;return{c(){e=h("div"),this.h()},l(s){e=d(s,"DIV",{class:!0}),m(e).forEach(u),this.h()},h(){c(e,"class","pause-filled text-white scale-150")},m(s,t){se(s,e,t)},i:vt,o:vt,d(s){s&&u(e)}}}function gl(r){let e,s,t,l;return{c(){e=h("audio"),this.h()},l(n){e=d(n,"AUDIO",{src:!0,style:!0}),m(e).forEach(u),this.h()},h(){el(e.src,s=r[8])||c(e,"src",s),Ot(e,"display","none")},m(n,o){se(n,e,o),r[42](e),t||(l=[ie(e,"loadedmetadata",r[26]),ie(e,"timeupdate",r[27]),ie(e,"play",r[28]),ie(e,"pause",r[29])],t=!0)},p(n,o){o[0]&256&&!el(e.src,s=n[8])&&c(e,"src",s)},d(n){n&&u(e),r[42](null),t=!1,Tt(l)}}}function _l(r){let e=r[61].name+"",s,t,l=r[61].badge&&Rn(r);return{c(){s=J(e),l&&l.c(),t=Nt()},l(n){s=K(n,e),l&&l.l(n),t=Nt()},m(n,o){se(n,s,o),l&&l.m(n,o),se(n,t,o)},p(n,o){n[61].badge&&l.p(n,o)},d(n){n&&(u(s),u(t)),l&&l.d(n)}}}function Rn(r){let e,s,t,l=r[61].badge+"",n,o;return{c(){e=J("Β "),s=h("span"),t=J("("),n=J(l),o=J(")"),this.h()},l(i){e=K(i,"Β "),s=d(i,"SPAN",{class:!0});var f=m(s);t=K(f,"("),n=K(f,l),o=K(f,")"),f.forEach(u),this.h()},h(){c(s,"class","text-xs text-gray-500")},m(i,f){se(i,e,f),se(i,s,f),a(s,t),a(s,n),a(s,o)},p:vt,d(i){i&&(u(e),u(s))}}}function pl(r){let e,s=r[61].name===r[5]&&_l(r);return{c(){s&&s.c(),e=Nt()},l(t){s&&s.l(t),e=Nt()},m(t,l){s&&s.m(t,l),se(t,e,l)},p(t,l){t[61].name===t[5]?s?s.p(t,l):(s=_l(t),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null)},d(t){t&&u(e),s&&s.d(t)}}}function vl(r){let e,s=pt(r[22]),t=[];for(let l=0;l<s.length;l+=1)t[l]=bl(il(r,s,l));return{c(){e=h("div");for(let l=0;l<t.length;l+=1)t[l].c();this.h()},l(l){e=d(l,"DIV",{class:!0});var n=m(e);for(let o=0;o<t.length;o+=1)t[o].l(n);n.forEach(u),this.h()},h(){c(e,"class","absolute top-full left-0 right-0 mt-1 bg-white border border-gray-200 rounded-lg shadow-lg z-10")},m(l,n){se(l,e,n);for(let o=0;o<t.length;o+=1)t[o]&&t[o].m(e,null)},p(l,n){if(n[0]&4194400){s=pt(l[22]);let o;for(o=0;o<s.length;o+=1){const i=il(l,s,o);t[o]?t[o].p(i,n):(t[o]=bl(i),t[o].c(),t[o].m(e,null))}for(;o<t.length;o+=1)t[o].d(1);t.length=s.length}},d(l){l&&u(e),jt(t,l)}}}function Fn(r){let e,s,t,l=r[61].badge+"",n,o;return{c(){e=J("Β "),s=h("span"),t=J("("),n=J(l),o=J(")"),this.h()},l(i){e=K(i,"Β "),s=d(i,"SPAN",{class:!0});var f=m(s);t=K(f,"("),n=K(f,l),o=K(f,")"),f.forEach(u),this.h()},h(){c(s,"class","text-xs text-gray-500")},m(i,f){se(i,e,f),se(i,s,f),a(s,t),a(s,n),a(s,o)},p:vt,d(i){i&&(u(e),u(s))}}}function bl(r){let e,s=r[61].name+"",t,l,n,o,i,f=r[61].badge&&Fn(r);function b(){return r[44](r[61])}return{c(){e=h("button"),t=J(s),f&&f.c(),l=S(),this.h()},l(y){e=d(y,"BUTTON",{class:!0});var w=m(e);t=K(w,s),f&&f.l(w),l=x(w),w.forEach(u),this.h()},h(){c(e,"class",n="w-full px-3 py-2 text-left transition-colors text-sm "+(r[61].disabled?"opacity-50 cursor-not-allowed":"hover:bg-gray-50")+" "+(r[61].name===r[5]?"bg-gray-100":"")),e.disabled=r[61].disabled},m(y,w){se(y,e,w),a(e,t),f&&f.m(e,null),a(e,l),o||(i=ie(e,"click",b),o=!0)},p(y,w){r=y,r[61].badge&&f.p(r,w),w[0]&32&&n!==(n="w-full px-3 py-2 text-left transition-colors text-sm "+(r[61].disabled?"opacity-50 cursor-not-allowed":"hover:bg-gray-50")+" "+(r[61].name===r[5]?"bg-gray-100":""))&&c(e,"class",n)},d(y){y&&u(e),f&&f.d(),o=!1,i()}}}function Wn(r){let e,s;return e=new Ht({props:{size:16,class:"text-gray-600"}}),{c(){te(e.$$.fragment)},l(t){ee(e.$$.fragment,t)},m(t,l){Z(e,t,l),s=!0},i(t){s||(k(e.$$.fragment,t),s=!0)},o(t){$(e.$$.fragment,t),s=!1},d(t){Q(e,t)}}}function qn(r){let e,s;return e=new hn({props:{size:16,class:"text-gray-600"}}),{c(){te(e.$$.fragment)},l(t){ee(e.$$.fragment,t)},m(t,l){Z(e,t,l),s=!0},i(t){s||(k(e.$$.fragment,t),s=!0)},o(t){$(e.$$.fragment,t),s=!1},d(t){Q(e,t)}}}function yl(r){let e,s,t,l=r[58].name[0]+"",n,o,i,f,b=r[58].name+"",y,w,g,p=r[58].description+"",v,M,T,A,L,q,N,D,H,I;const j=[qn,Wn],z=[];function le(_,E){return _[18]===_[58].name?0:1}A=le(r),L=z[A]=j[A](r);function V(..._){return r[45](r[58],..._)}function C(){return r[46](r[58])}return{c(){e=h("button"),s=h("div"),t=h("div"),n=J(l),o=S(),i=h("div"),f=h("div"),y=J(b),w=S(),g=h("div"),v=J(p),M=S(),T=h("button"),L.c(),q=S(),this.h()},l(_){e=d(_,"BUTTON",{class:!0});var E=m(e);s=d(E,"DIV",{class:!0});var P=m(s);t=d(P,"DIV",{class:!0});var re=m(t);n=K(re,l),re.forEach(u),o=x(P),i=d(P,"DIV",{class:!0});var U=m(i);f=d(U,"DIV",{class:!0});var W=m(f);y=K(W,b),W.forEach(u),w=x(U),g=d(U,"DIV",{class:!0});var ne=m(g);v=K(ne,p),ne.forEach(u),U.forEach(u),P.forEach(u),M=x(E),T=d(E,"BUTTON",{class:!0,title:!0});var ae=m(T);L.l(ae),ae.forEach(u),q=x(E),E.forEach(u),this.h()},h(){c(t,"class","w-10 h-10 bg-gradient-to-br from-amber-400 to-orange-500 rounded-full flex items-center justify-center text-white text-sm font-semibold flex-shrink-0"),c(f,"class","text-sm font-medium text-gray-900 mb-1"),c(g,"class","text-xs text-gray-500 leading-relaxed"),c(i,"class","flex-1 min-w-0"),c(s,"class","flex items-center gap-3 flex-1 min-w-0"),c(T,"class","p-2 rounded-full hover:bg-gray-200 transition-colors flex-shrink-0 ml-2"),c(T,"title","Play sample"),c(e,"class",N="w-full flex items-center justify-between p-2 rounded-lg hover:bg-gray-50 transition-colors text-left group border border-transparent "+(r[58].name===r[4]?"bg-gray-100 border-gray-200":""))},m(_,E){se(_,e,E),a(e,s),a(s,t),a(t,n),a(s,o),a(s,i),a(i,f),a(f,y),a(i,w),a(i,g),a(g,v),a(e,M),a(e,T),z[A].m(T,null),a(e,q),D=!0,H||(I=[ie(T,"click",V),ie(e,"click",C)],H=!0)},p(_,E){r=_;let P=A;A=le(r),A!==P&&(ut(),$(z[P],1,1,()=>{z[P]=null}),ct(),L=z[A],L||(L=z[A]=j[A](r),L.c()),k(L,1),L.m(T,null)),(!D||E[0]&16&&N!==(N="w-full flex items-center justify-between p-2 rounded-lg hover:bg-gray-50 transition-colors text-left group border border-transparent "+(r[58].name===r[4]?"bg-gray-100 border-gray-200":"")))&&c(e,"class",N)},i(_){D||(k(L),D=!0)},o(_){$(L),D=!1},d(_){_&&u(e),z[A].d(),H=!1,Tt(I)}}}function kl(r){let e,s;return{c(){e=h("div"),s=J(r[9]),this.h()},l(t){e=d(t,"DIV",{class:!0});var l=m(e);s=K(l,r[9]),l.forEach(u),this.h()},h(){c(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-zv1zz2")},m(t,l){se(t,e,l),a(e,s)},p(t,l){l[0]&512&&ze(s,t[9])},d(t){t&&u(e)}}}function $l(r){let e,s,t,l,n,o,i,f,b,y,w,g,p="An error occurred while processing your request",v,M,T,A,L,q,N,D,H,I,j,z,le="Close",V,C,_;o=new Ml({props:{size:20,class:"text-red-600"}}),T=new xn({props:{size:20,class:"text-gray-500"}});let E=r[21]&&wl(r);return H=new Ft({props:{size:16}}),{c(){e=h("div"),s=h("div"),t=h("div"),l=h("div"),n=h("div"),te(o.$$.fragment),i=S(),f=h("div"),b=h("h3"),y=J(r[20]),w=S(),g=h("p"),g.textContent=p,v=S(),M=h("button"),te(T.$$.fragment),A=S(),L=h("div"),E&&E.c(),q=S(),N=h("div"),D=h("button"),te(H.$$.fragment),I=J(`
15
+ Copy Error`),j=S(),z=h("button"),z.textContent=le,this.h()},l(P){e=d(P,"DIV",{class:!0});var re=m(e);s=d(re,"DIV",{class:!0});var U=m(s);t=d(U,"DIV",{class:!0});var W=m(t);l=d(W,"DIV",{class:!0});var ne=m(l);n=d(ne,"DIV",{class:!0});var ae=m(n);ee(o.$$.fragment,ae),ae.forEach(u),i=x(ne),f=d(ne,"DIV",{class:!0});var Y=m(f);b=d(Y,"H3",{class:!0});var Ve=m(b);y=K(Ve,r[20]),Ve.forEach(u),w=x(Y),g=d(Y,"P",{class:!0,"data-svelte-h":!0}),He(g)!=="svelte-1l3zl3"&&(g.textContent=p),Y.forEach(u),ne.forEach(u),v=x(W),M=d(W,"BUTTON",{class:!0,title:!0});var ue=m(M);ee(T.$$.fragment,ue),ue.forEach(u),W.forEach(u),A=x(U),L=d(U,"DIV",{class:!0});var be=m(L);E&&E.l(be),be.forEach(u),q=x(U),N=d(U,"DIV",{class:!0});var Ne=m(N);D=d(Ne,"BUTTON",{class:!0});var ye=m(D);ee(H.$$.fragment,ye),I=K(ye,`
16
+ Copy Error`),ye.forEach(u),j=x(Ne),z=d(Ne,"BUTTON",{class:!0,"data-svelte-h":!0}),He(z)!=="svelte-4sxk6g"&&(z.textContent=le),Ne.forEach(u),U.forEach(u),re.forEach(u),this.h()},h(){c(n,"class","w-10 h-10 bg-red-100 rounded-full flex items-center justify-center flex-shrink-0"),c(b,"class","text-lg font-semibold text-gray-900 truncate"),c(g,"class","text-sm text-gray-600"),c(f,"class","min-w-0"),c(l,"class","flex items-center gap-3 min-w-0"),c(M,"class","p-2 hover:bg-red-100 rounded-full transition-colors flex-shrink-0"),c(M,"title","Close"),c(t,"class","flex items-center justify-between p-6 border-b border-gray-200 bg-red-50 flex-shrink-0"),c(L,"class","p-6 overflow-y-auto flex-1 min-h-0"),c(D,"class","flex items-center gap-2 px-4 py-2 text-gray-700 hover:bg-gray-200 rounded-lg transition-colors"),c(z,"class","px-6 py-2 bg-red-600 text-white rounded-lg hover:bg-red-700 transition-colors"),c(N,"class","flex items-center justify-end gap-3 p-6 border-t border-gray-200 bg-gray-50 flex-shrink-0"),c(s,"class","bg-white rounded-xl shadow-2xl max-w-2xl w-full max-h-[80vh] flex flex-col"),c(e,"class","fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4")},m(P,re){se(P,e,re),a(e,s),a(s,t),a(t,l),a(l,n),Z(o,n,null),a(l,i),a(l,f),a(f,b),a(b,y),a(f,w),a(f,g),a(t,v),a(t,M),Z(T,M,null),a(s,A),a(s,L),E&&E.m(L,null),a(s,q),a(s,N),a(N,D),Z(H,D,null),a(D,I),a(N,j),a(N,z),V=!0,C||(_=[ie(M,"click",r[34]),ie(D,"click",r[35]),ie(z,"click",r[34])],C=!0)},p(P,re){(!V||re[0]&1048576)&&ze(y,P[20]),P[21]?E?E.p(P,re):(E=wl(P),E.c(),E.m(L,null)):E&&(E.d(1),E=null)},i(P){V||(k(o.$$.fragment,P),k(T.$$.fragment,P),k(H.$$.fragment,P),V=!0)},o(P){$(o.$$.fragment,P),$(T.$$.fragment,P),$(H.$$.fragment,P),V=!1},d(P){P&&u(e),Q(o),Q(T),E&&E.d(),Q(H),C=!1,Tt(_)}}}function wl(r){let e,s,t="Error Details:",l,n,o;return{c(){e=h("div"),s=h("h4"),s.textContent=t,l=S(),n=h("pre"),o=J(r[21]),this.h()},l(i){e=d(i,"DIV",{class:!0});var f=m(e);s=d(f,"H4",{class:!0,"data-svelte-h":!0}),He(s)!=="svelte-3lmggt"&&(s.textContent=t),l=x(f),n=d(f,"PRE",{class:!0});var b=m(n);o=K(b,r[21]),b.forEach(u),f.forEach(u),this.h()},h(){c(s,"class","text-sm font-medium text-gray-900 mb-2"),c(n,"class","text-xs text-gray-700 whitespace-pre-wrap font-mono leading-relaxed break-words"),c(e,"class","bg-gray-50 rounded-lg p-4 border")},m(i,f){se(i,e,f),a(e,s),a(e,l),a(e,n),a(n,o)},p(i,f){f[0]&2097152&&ze(o,i[21])},d(i){i&&u(e)}}}function Kn(r){let e,s,t,l,n,o,i,f,b,y,w,g,p,v,M,T,A,L,q,N,D,H;i=new cn({props:{size:14}}),g=new Rl({props:{size:14}});let I=r[10]&&ul();const j=[Pn,Sn],z=[];function le(_,E){return _[2]==="ui"?0:1}T=le(r),A=z[T]=j[T](r);let V=r[9]&&kl(r),C=r[19]&&$l(r);return{c(){e=h("div"),s=h("header"),t=h("div"),l=h("div"),n=h("div"),o=h("button"),te(i.$$.fragment),f=J(`
17
+ UI`),y=S(),w=h("button"),te(g.$$.fragment),p=J(`
18
+ Code Recorder
19
+ `),I&&I.c(),M=S(),A.c(),L=S(),V&&V.c(),q=S(),C&&C.c(),this.h()},l(_){e=d(_,"DIV",{class:!0});var E=m(e);s=d(E,"HEADER",{class:!0});var P=m(s);t=d(P,"DIV",{class:!0});var re=m(t);l=d(re,"DIV",{class:!0});var U=m(l);n=d(U,"DIV",{class:!0});var W=m(n);o=d(W,"BUTTON",{class:!0});var ne=m(o);ee(i.$$.fragment,ne),f=K(ne,`
20
+ UI`),ne.forEach(u),y=x(W),w=d(W,"BUTTON",{class:!0});var ae=m(w);ee(g.$$.fragment,ae),p=K(ae,`
21
+ Code Recorder
22
+ `),I&&I.l(ae),ae.forEach(u),W.forEach(u),U.forEach(u),re.forEach(u),P.forEach(u),M=x(E),A.l(E),L=x(E),V&&V.l(E),q=x(E),C&&C.l(E),E.forEach(u),this.h()},h(){c(o,"class",b="flex items-center gap-1.5 px-3 py-1 text-sm font-medium rounded transition-colors "+(r[2]==="ui"?"bg-white shadow-sm":"text-gray-600")),c(w,"class",v="flex items-center gap-1.5 px-3 py-1 text-sm font-medium rounded transition-colors relative overflow-hidden "+(r[2]==="code"?"bg-white shadow-sm":"text-gray-600")+" "+(r[10]?"code-flash":"")+" svelte-zv1zz2"),c(n,"class","flex items-center bg-gray-100 rounded-md p-0.5"),c(l,"class","flex items-center gap-2"),c(t,"class","flex items-center justify-end px-4 py-2"),c(s,"class","border-b border-gray-200 bg-white"),c(e,"class","flex flex-col h-full")},m(_,E){se(_,e,E),a(e,s),a(s,t),a(t,l),a(l,n),a(n,o),Z(i,o,null),a(o,f),a(n,y),a(n,w),Z(g,w,null),a(w,p),I&&I.m(w,null),a(e,M),z[T].m(e,null),a(e,L),V&&V.m(e,null),a(e,q),C&&C.m(e,null),N=!0,D||(H=[ie(o,"click",r[39]),ie(w,"click",r[40]),ie(e,"click",r[32])],D=!0)},p(_,E){(!N||E[0]&4&&b!==(b="flex items-center gap-1.5 px-3 py-1 text-sm font-medium rounded transition-colors "+(_[2]==="ui"?"bg-white shadow-sm":"text-gray-600")))&&c(o,"class",b),_[10]?I||(I=ul(),I.c(),I.m(w,null)):I&&(I.d(1),I=null),(!N||E[0]&1028&&v!==(v="flex items-center gap-1.5 px-3 py-1 text-sm font-medium rounded transition-colors relative overflow-hidden "+(_[2]==="code"?"bg-white shadow-sm":"text-gray-600")+" "+(_[10]?"code-flash":"")+" svelte-zv1zz2"))&&c(w,"class",v);let P=T;T=le(_),T===P?z[T].p(_,E):(ut(),$(z[P],1,1,()=>{z[P]=null}),ct(),A=z[T],A?A.p(_,E):(A=z[T]=j[T](_),A.c()),k(A,1),A.m(e,L)),_[9]?V?V.p(_,E):(V=kl(_),V.c(),V.m(e,q)):V&&(V.d(1),V=null),_[19]?C?(C.p(_,E),E[0]&524288&&k(C,1)):(C=$l(_),C.c(),k(C,1),C.m(e,null)):C&&(ut(),$(C,1,1,()=>{C=null}),ct())},i(_){N||(k(i.$$.fragment,_),k(g.$$.fragment,_),k(A),k(C),N=!0)},o(_){$(i.$$.fragment,_),$(g.$$.fragment,_),$(A),$(C),N=!1},d(_){_&&u(e),Q(i),Q(g),I&&I.d(),z[T].d(),V&&V.d(),C&&C.d(),D=!1,Tt(H)}}}function El(){if(typeof window<"u"&&window.gradio&&window.gradio.auth_token)return window.gradio.auth_token;const r=document.querySelector('meta[name="hf-oauth-token"]');if(r){const t=r.getAttribute("content");if(t)return t}const e=["hf_access_token","hf_token","huggingface_token","oauth_token","access_token"];for(const t of e){const l=localStorage.getItem(t);if(l)return l}for(const t of e){const l=sessionStorage.getItem(t);if(l)return l}const s=document.cookie.split(";");for(const t of s){const[l,n]=t.trim().split("=");if(l&&(l.includes("token")||l.includes("hf")||l.includes("oauth")))return decodeURIComponent(n)}try{const t=document.querySelector("script[data-hf-token]");if(t){const l=t.getAttribute("data-hf-token");if(l)return l}}catch{}return null}function It(r){const e=Math.floor(r/60),s=Math.floor(r%60);return`${e}:${s.toString().padStart(2,"0")}`}function Il(){}function Jn(){return`# Save the audio to a file
23
+ output_filename = "output_speech.wav"
24
+
25
+ with open(output_filename, "wb") as f:
26
+ f.write(audio_bytes)
27
+
28
+ print(f"βœ“ Audio saved to {output_filename}")
29
+
30
+ # Optional: Play the audio (requires additional packages)
31
+ # from playsound import playsound
32
+ # playsound(output_filename)`}function Xn(r,e,s){let t="In a hole in the ground there lived a hobbit.",l="Lily",n="Chatterbox",o="api",i="ui",f=!1,b=!1,y=[],w=null,g=null,p=!1,v=.25,M=.7,T=!1,A=0,L=0,q="",N=null,D=null,H=null,I=!1,j="",z="";const le=[{id:"chatterbox",name:"Chatterbox",badge:"recommended"},{id:"kokoro",name:"Kokoro",badge:"coming soon",disabled:!0}],V=[{id:"lily",name:"Lily",description:"Warm, conversational voice from a female in her 30s",sample:"/voices/lily.mp3"},{id:"andrew",name:"Andrew",description:"Older British man who speaks clearly and kindly",sample:"/voices/andrew.mp3"},{id:"fairy",name:"Fairy",description:"High and airy female voice that bursts with excitement",sample:"/voices/fairy.mp3"},{id:"pirate",name:"Pirate",description:"Young pirate that speaks gruffly and passionately",sample:"/voices/pirate.mp3"}];async function C(){if(!t.trim())return;if(!El()){window.dispatchEvent(new CustomEvent("show-signin-popover"));return}s(7,b=!0),s(8,w=null),s(14,A=0),y.length===0&&Y("Setup and Import",Ve()),Y("Generate Speech",ue()),i==="ui"&&(s(10,p=!0),setTimeout(()=>{s(10,p=!1)},2500)),s(13,T=!1),s(16,q=t.length>30?t.substring(0,30)+"...":t);try{const de=El(),me={text:t,voice_id:l.toLowerCase(),model_id:n.toLowerCase(),mode:o,access_token:de,parameters:{exaggeration:v,temperature:M}},Ie=await fetch("/api/tts/generate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(me)});if(!Ie.ok){const at=await Ie.text();throw new Error(`HTTP error! status: ${Ie.status}, body: ${at}`)}const Je=await Ie.json();if(Je.success&&Je.audio_url)s(8,w=Je.audio_url),Y("Save Audio Output",Jn()),i==="ui"&&(s(10,p=!0),setTimeout(()=>{s(10,p=!1)},2500));else{const at=Je.error||"Unknown error occurred";Ne("Generation Failed",at),s(8,w=null)}}catch{Ne("Network Error","Failed to connect to the server. Please check your connection and try again."),s(8,w=null)}finally{s(7,b=!1)}}function _(){N&&(T?N.pause():N.play())}function E(){N&&s(15,L=N.duration)}function P(){N&&s(14,A=N.currentTime)}function re(){s(13,T=!0)}function U(){s(13,T=!1)}function W(){if(w){const R=document.createElement("a");R.href=w,R.download="speech.wav",R.click()}}function ne(R,de){if(de.stopPropagation(),H===R.name)D&&(D.pause(),D.currentTime=0),s(18,H=null);else{D&&D.pause(),s(18,H=R.name);const me=R.sample||"/samples/harvard.wav";D?D.src=me:(D=new Audio(me),D.addEventListener("ended",()=>{s(18,H=null)})),D.play().catch(Ie=>{s(18,H=null)})}}function ae(R){R.target.closest(".model-dropdown")||s(6,f=!1)}function Y(R,de,me=null){const Ie={id:Date.now()+Math.random(),title:R,code:de,output:me,timestamp:new Date().toLocaleTimeString()};return s(3,y=[...y,Ie]),Ie}function Ve(){return o==="local"?`# Install required packages
33
+ # pip install hfstudio huggingface-hub
34
+
35
+ # Start the model server locally
36
+ # Run this command in your terminal:
37
+ # hfstudio start chatterbox --port 7861
38
+
39
+ # Then use the following Python code:
40
+ from huggingface_hub import InferenceClient
41
+
42
+ # Initialize the client for local server
43
+ client = InferenceClient(base_url="http://localhost:7861/v1/")`:`# Install required packages
44
+ # pip install huggingface-hub
45
+
46
+ from huggingface_hub import InferenceClient
47
+
48
+ # Initialize the client for HuggingFace API
49
+ client = InferenceClient(
50
+ provider="fal-ai",
51
+ api_key="YOUR_HF_TOKEN", # Get your token from https://huggingface.co/settings/tokens
52
+ )`}function ue(){return o==="local"?`# Text to convert to speech
53
+ text = """${t}"""
54
+
55
+ # Voice and model settings
56
+ voice = "${l.toLowerCase()}"
57
+ exaggeration = ${v}
58
+ temperature = ${M}
59
+
60
+ # Voice reference URLs (update these to your local paths if needed)
61
+ voice_urls = {
62
+ "lily": "https://huggingface.co/spaces/abidlabs/hfstudio/resolve/main/frontend/static/voices/lily.mp3",
63
+ "andrew": "https://huggingface.co/spaces/abidlabs/hfstudio/resolve/main/frontend/static/voices/andrew.mp3",
64
+ "fairy": "https://huggingface.co/spaces/abidlabs/hfstudio/resolve/main/frontend/static/voices/fairy.mp3",
65
+ "pirate": "https://huggingface.co/spaces/abidlabs/hfstudio/resolve/main/frontend/static/voices/pirate.mp3"
66
+ }
67
+
68
+ # Build extra_body with parameters
69
+ extra_body = {
70
+ "exaggeration": exaggeration,
71
+ "temperature": temperature
72
+ }
73
+
74
+ # Add audio_url for voice reference
75
+ if voice in voice_urls:
76
+ extra_body["audio_url"] = voice_urls[voice]
77
+
78
+ # Generate speech using InferenceClient
79
+ print("Generating speech...")
80
+ try:
81
+ audio_bytes = client.text_to_speech(
82
+ text,
83
+ extra_body=extra_body if extra_body else None,
84
+ )
85
+ print(f"βœ“ Generated {len(audio_bytes)} bytes of audio")
86
+ except Exception as e:
87
+ print(f"Error: {e}")`:`# Text to convert to speech
88
+ text = """${t}"""
89
+
90
+ # Voice and model settings
91
+ model = "ResembleAI/chatterbox"
92
+ voice = "${l.toLowerCase()}"
93
+ exaggeration = ${v}
94
+ temperature = ${M}
95
+
96
+ # Voice reference URLs
97
+ voice_urls = {
98
+ "lily": "https://huggingface.co/spaces/abidlabs/hfstudio/resolve/main/frontend/static/voices/lily.mp3",
99
+ "andrew": "https://huggingface.co/spaces/abidlabs/hfstudio/resolve/main/frontend/static/voices/andrew.mp3",
100
+ "fairy": "https://huggingface.co/spaces/abidlabs/hfstudio/resolve/main/frontend/static/voices/fairy.mp3",
101
+ "pirate": "https://huggingface.co/spaces/abidlabs/hfstudio/resolve/main/frontend/static/voices/pirate.mp3"
102
+ }
103
+
104
+ # Build extra_body with parameters
105
+ extra_body = {
106
+ "exaggeration": exaggeration,
107
+ "temperature": temperature
108
+ }
109
+
110
+ # Add audio_url for voice reference
111
+ if voice in voice_urls:
112
+ extra_body["audio_url"] = voice_urls[voice]
113
+
114
+ # Generate speech using InferenceClient
115
+ print("Generating speech...")
116
+ try:
117
+ audio_bytes = client.text_to_speech(
118
+ text,
119
+ model=model,
120
+ extra_body=extra_body if extra_body else None,
121
+ )
122
+ print(f"βœ“ Generated {len(audio_bytes)} bytes of audio")
123
+ except Exception as e:
124
+ print(f"Error: {e}")`}function be(R,de="Copied to clipboard!"){navigator.clipboard.writeText(R).then(()=>{s(9,g=de),setTimeout(()=>{s(9,g=null)},2e3)})}function Ne(R,de=""){s(20,j=R),s(21,z=de),s(19,I=!0)}function ye(){s(19,I=!1),s(20,j=""),s(21,z="")}function fe(){const R=z?`${j}
125
+
126
+ Details:
127
+ ${z}`:j;be(R,"Error message copied!")}function xe(){const R=y.map(de=>`# ${de.title}
128
+ ${de.code}`).join(`
129
+
130
+ `);be(R,"All code copied!")}let $e=t,ft=o;const qe=()=>s(2,i="ui"),we=()=>s(2,i="code");function Te(){t=this.value,s(0,t)}function dt(R){Cl[R?"unshift":"push"](()=>{N=R,s(17,N)})}const Ze=()=>s(6,f=!f),pe=R=>{R.disabled||(s(5,n=R.name),s(6,f=!1))},bt=(R,de)=>ne(R,de),Ee=R=>s(4,l=R.name);function rt(){v=Zt(this.value),s(11,v)}function ot(){M=Zt(this.value),s(12,M)}const Ae=()=>s(1,o="api"),Ke=()=>s(1,o="local"),Se=R=>be(R.code);return r.$$.update=()=>{if(r.$$.dirty[0]&4&&i==="ui"&&s(3,y=[]),r.$$.dirty[0]&10|r.$$.dirty[1]&128&&o!==ft&&y.length>0){s(38,ft=o);const R=y.findIndex(me=>me.title==="Setup and Import");R!==-1&&s(3,y[R].code=Ve(),y);const de=y.findIndex(me=>me.title==="Generate Speech");de!==-1&&s(3,y[de].code=ue(),y),s(3,y=[...y])}r.$$.dirty[0]&12&&y.length===0&&i==="code"&&Y("Setup and Import",Ve()),r.$$.dirty[0]&9|r.$$.dirty[1]&64&&t!==$e&&y.length>0&&s(37,$e=t)},[t,o,i,y,l,n,f,b,w,g,p,v,M,T,A,L,q,N,H,I,j,z,le,V,C,_,E,P,re,U,W,ne,ae,be,ye,fe,xe,$e,ft,qe,we,Te,dt,Ze,pe,bt,Ee,rt,ot,Ae,Ke,Se]}class Zn extends Me{constructor(e){super(),Ue(this,e,Xn,Kn,Pe,{},null,[-1,-1,-1])}}export{Zn as component};
hfstudio/static/_app/version.json CHANGED
@@ -1 +1 @@
1
- {"version":"1760989702350"}
 
1
+ {"version":"1761002803294"}
hfstudio/static/index.html CHANGED
@@ -6,25 +6,25 @@
6
  <meta name="viewport" content="width=device-width, initial-scale=1" />
7
  <title>HFStudio - Text to Speech</title>
8
 
9
- <link rel="modulepreload" href="/_app/immutable/entry/start.B3Ax3OfL.js">
10
- <link rel="modulepreload" href="/_app/immutable/chunks/Xlge3qL2.js">
11
  <link rel="modulepreload" href="/_app/immutable/chunks/Bqgpa-5T.js">
12
- <link rel="modulepreload" href="/_app/immutable/entry/app.CF0Vn1py.js">
13
  <link rel="modulepreload" href="/_app/immutable/chunks/IHki7fMi.js">
14
  </head>
15
  <body data-sveltekit-preload-data="hover">
16
  <div style="display: contents">
17
  <script>
18
  {
19
- __sveltekit_1ffjoce = {
20
  base: ""
21
  };
22
 
23
  const element = document.currentScript.parentElement;
24
 
25
  Promise.all([
26
- import("/_app/immutable/entry/start.B3Ax3OfL.js"),
27
- import("/_app/immutable/entry/app.CF0Vn1py.js")
28
  ]).then(([kit, app]) => {
29
  kit.start(app, element);
30
  });
 
6
  <meta name="viewport" content="width=device-width, initial-scale=1" />
7
  <title>HFStudio - Text to Speech</title>
8
 
9
+ <link rel="modulepreload" href="/_app/immutable/entry/start.jSrgKXDc.js">
10
+ <link rel="modulepreload" href="/_app/immutable/chunks/Ybk50QWZ.js">
11
  <link rel="modulepreload" href="/_app/immutable/chunks/Bqgpa-5T.js">
12
+ <link rel="modulepreload" href="/_app/immutable/entry/app.Dgwf8cL2.js">
13
  <link rel="modulepreload" href="/_app/immutable/chunks/IHki7fMi.js">
14
  </head>
15
  <body data-sveltekit-preload-data="hover">
16
  <div style="display: contents">
17
  <script>
18
  {
19
+ __sveltekit_37vzbm = {
20
  base: ""
21
  };
22
 
23
  const element = document.currentScript.parentElement;
24
 
25
  Promise.all([
26
+ import("/_app/immutable/entry/start.jSrgKXDc.js"),
27
+ import("/_app/immutable/entry/app.Dgwf8cL2.js")
28
  ]).then(([kit, app]) => {
29
  kit.start(app, element);
30
  });