https://transcripthq.io/_next/static/chunks/47e59c8d2ab646ca.js?dpl=dpl_8aZW4f2waFkkDCY9xhkm5E3kzC6P
1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31278,e=>{"use strict";let t=(0,e.i(75254).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",()=>t],31278)},76644,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(3746);let r=a.forwardRef(({className:e,type:a,...r},i)=>(0,t.jsx)("input",{type:a,className:(0,s.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:i,...r}));r.displayName="Input",e.s(["Input",()=>r])},55436,e=>{"use strict";let t=(0,e.i(75254).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",()=>t],55436)},92623,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(81140),r=e.i(20783),i=e.i(69340),n=e.i(99682),o=e.i(35804);e.i(74080);var l=Symbol("radix.slottable");function d(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}var c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,s)=>{var i,n;let o,l,c,u=(n=i=`Primitive.${s}`,(o=a.forwardRef((e,t)=>{let{children:s,...i}=e;if(a.isValidElement(s)){var n;let e,o,l=(n=s,(o=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.ref:(o=(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.props.ref:n.props.ref||n.ref),d=function(e,t){let a={...t};
1for(let s in t){let r=e[s],i=t[s];/^on[A-Z]/.test(s)?r&&i?a[s]=(...e)=>{let t=i(...e);return r(...e),t}:r&&(a[s]=r):"style"===s?a[s]={...r,...i}:"className"===s&&(a[s]=[r,i].filter(Boolean).join(" "))}return{...e,...a}}(i,s.props);return s.type!==a.Fragment&&(d.ref=t?(0,r.composeRefs)(t,l):l),a.cloneElement(s,d)}return a.Children.count(s)>1?a.Children.only(null):null})).displayName=`${n}.SlotClone`,l=o,(c=a.forwardRef((e,s)=>{let{children:r,...i}=e,n=a.Children.toArray(r),o=n.find(d);if(o){let e=o.props.children,r=n.map(t=>t!==o?t:a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null);return(0,t.jsx)(l,{...i,ref:s,children:a.isValidElement(e)?a.cloneElement(e,void 0,r):null})}return(0,t.jsx)(l,{...i,ref:s,children:r})})).displayName=`${i}.Slot`,c),m=a.forwardRef((e,a)=>{let{asChild:r,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(r?u:s,{...i,ref:a})});return m.displayName=`Primitive.${s}`,{...e,[s]:m}},{}),u="Switch",[m,h]=function(e,s=[]){let r=[],i=()=>{let t=r.map(e=>a.createContext(e));return function(s){let r=s?.[e]||t;return a.useMemo(()=>({[`__scope${e}`]:{...s,[e]:r}}),[s,r])}};return i.scopeName=e,[function(s,i){let n=a.createContext(i),o=r.length;r=[...r,i];let l=s=>{let{scope:r,children:i,...l}=s,d=r?.[e]?.[o]||n,c=a.useMemo(()=>l,Object.values(l));return(0,t.jsx)(d.Provider,{value:c,children:i})};return l.displayName=s+"Provider",[l,function(t,r){let l=r?.[e]?.[o]||n,d=a.useContext(l);if(d)return d;if(void 0!==i)return i;throw Error(`\`${t}\` must be used within \`${s}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let s=()=>{let s=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=s.reduce((t,{useScope:a,scopeName:s})=>{let r=a(e)[`__scope${s}`];return{...t,...r}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return s.scopeName=t.scopeName,s}(i,...s)]}(u),[p,x]=m(u),f=a.forwardRef((e,n)=>{let{__scopeSwitch:o,name:l,checked:d,defaultChecked:m,required:h,disabled:x,value:f="on",onCheckedChange:b,form:y,...j}=e,[w,N]=a.useState(null),k=(0,r.useComposedRefs)(n,e=>N(e)),S=a.useRef(!1),R=!w||y||!!w.closest("form"),[C,T]=(0,i.useControllableState)({prop:d,defaultProp:m??!1,onChange:b,caller:u});return(0,t.jsxs)(p,{scope:o,checked:C,disabled:x,children:[(0,t.jsx)(c.button,{type:"button",role:"switch","aria-checked":C,"aria-required":h,"data-state":v(C),"data-disabled":x?"":void 0,disabled:x,value:f,...j,ref:k,onClick:(0,s.composeEventHandlers)(e.onClick,e=>{T(e=>!e),R&&(S.current=e.isPropagationStopped(),S.current||e.stopPropagation())})}),R&&(0,t.jsx)(g,{control:w,bubbles:!S.current,name:l,value:f,checked:C,required:h,disabled:x,form:y,style:{transform:"translateX(-100%)"}})]})});f.displayName=u;var b="SwitchThumb",y=a.forwardRef((e,a)=>{let{__scopeSwitch:s,...r}=e,i=x(b,s);return(0,t.jsx)(c.span,{"data-state":v(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:a})});y.displayName=b;var g=a.forwardRef(({__scopeSwitch:e,control:s,checked:i,bubbles:l=!0,...d},c)=>{let u=a.useRef(null),m=(0,r.useComposedRefs)(u,c),h=(0,n.usePrevious)(i),p=(0,o.useSize)(s);return a.useEffect(()=>{let e=u.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(h!==i&&t){let a=new Event("click",{bubbles:l});t.call(e,i),e.dispatchEvent(a)}},[h,i,l]),(0,t.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:i,...d,tabIndex:-1,ref:m,style:{...d.style,...p,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function v(e){return e?"checked":"unchecked"}g.displayName="SwitchBubbleInput";var j=e.i(3746);let w=a.forwardRef(({className:e,...a},s)=>(0,t.jsx)(f,{className:(0,j.cn)("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...a,ref:s,children:(0,t.jsx)(y,{className:(0,j.cn)("pointer-events-none block h-4 w-4 roun
1ded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));w.displayName=f.displayName,e.s(["Switch",()=>w],92623)},63639,e=>{"use strict";let t=(0,e.i(75254).default)("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);e.s(["Languages",()=>t],63639)},83086,e=>{"use strict";let t=(0,e.i(75254).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["Sparkles",()=>t],83086)},72520,e=>{"use strict";let t=(0,e.i(75254).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",()=>t],72520)},39312,e=>{"use strict";let t=(0,e.i(75254).default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);e.s(["Zap",()=>t],39312)},66027,e=>{"use strict";let t;var a=e.i(75555),s=e.i(40143),r=e.i(86491),i=e.i(15823),n=e.i(93803),o=e.i(19273),l=e.i(80166),d=class extends i.Subscribable{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#a=(0,n.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#e;#s=void 0;#r=void 0;#i=void 0;#n;#o;#a;#t;#l;#d;#c;#u;#m;#h;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#s.addObserver(this),c(this.#s,this.options)?this.#x():this.updateResult(),this.#f())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return u(this.#s,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return u(this.#s,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#y(),this.#s.removeObserver(this)}setOptions(e){let t=this.options,a=this.#s;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,o.resolveEnabled)(this.options.enabled,this.#s))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#g(),this.#s.setOptions(this.options),t._defaulted&&!(0,o.shallowEqualObjects)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#s,observer:this});let s=this.hasListeners();s&&m(this.#s,a,this.options,t)&&this.#x(),this.updateResult(),s&&(this.#s!==a||(0,o.resolveEnabled)(this.options.enabled,this.#s)!==(0,o.resolveEnabled)(t.enabled,this.#s)||(0,o.resolveStaleTime)(this.options.staleTime,this.#s)!==(0,o.resolveStaleTime)(t.staleTime,this.#s))&&this.#v();let r=this.#j();s&&(this.#s!==a||(0,o.resolveEnabled)(this.options.enabled,this.#s)!==(0,o.resolveEnabled)(t.enabled,this.#s)||r!==this.#h)&&this.#w(r)}getOptimisticResult(e){var t,a;let s=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(s,e);return t=this,a=r,(0,o.shallowEqualObjects)(t.getCurrentResult(),a)||(this.#i=r,this.#o=this.options,this.#n=this.#s.state),r}getCurrentResult(){return this.#i}trackResult(e,t){return new Proxy(e,{get:(e,a)=>(this.trackProp(a),t?.(a),"promise"===a&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#a.status||this.#a.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,a))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#s}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),a=this.#e.getQueryCache().build(this.#e,t);return a.fetch().then(()=>this.createResult(a,t))}fetch(e){return this.#x({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#x(e){this.#g();let t=this.#s.fetch(this.options,e);return e?.throwOnError||(t=t.catch(o.noop)),t}#v(){this.#b();let e=(0,o.resolveStaleTime)(this.options.staleTime,this.#s);if(o.isServer||this.#i.isStale||!(0,o.isValidTimeout)(e))return;let t=(0,o.timeUntilStale)(this.#i.dataUpdatedAt,e);this.#u=l.timeoutManager.setTimeout(()=>{this.#i.isStale||this.updateResult()},t+1)}#j(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#s):this.options.refetchInterval)??!1}#w(e){this.#y(),this.#h=e,!o.isServer&&!1!==(0,o.resolveEnabled)(this.options.enabled,this.#s)&&(0,o.isValidTimeout)(this.#h)&&0!==this.#h&&(this.#m=l.timeoutManager.setInterval(()=>
1{(this.options.refetchIntervalInBackground||a.focusManager.isFocused())&&this.#x()},this.#h))}#f(){this.#v(),this.#w(this.#j())}#b(){this.#u&&(l.timeoutManager.clearTimeout(this.#u),this.#u=void 0)}#y(){this.#m&&(l.timeoutManager.clearInterval(this.#m),this.#m=void 0)}createResult(e,t){let a,s=this.#s,i=this.options,l=this.#i,d=this.#n,u=this.#o,p=e!==s?e.state:this.#r,{state:x}=e,f={...x},b=!1;if(t._optimisticResults){let a=this.hasListeners(),n=!a&&c(e,t),o=a&&m(e,s,t,i);(n||o)&&(f={...f,...(0,r.fetchState)(x.data,e.options)}),"isRestoring"===t._optimisticResults&&(f.fetchStatus="idle")}let{error:y,errorUpdatedAt:g,status:v}=f;a=f.data;let j=!1;if(void 0!==t.placeholderData&&void 0===a&&"pending"===v){let e;l?.isPlaceholderData&&t.placeholderData===u?.placeholderData?(e=l.data,j=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#c?.state.data,this.#c):t.placeholderData,void 0!==e&&(v="success",a=(0,o.replaceData)(l?.data,e,t),b=!0)}if(t.select&&void 0!==a&&!j)if(l&&a===d?.data&&t.select===this.#l)a=this.#d;else try{this.#l=t.select,a=t.select(a),a=(0,o.replaceData)(l?.data,a,t),this.#d=a,this.#t=null}catch(e){this.#t=e}this.#t&&(y=this.#t,a=this.#d,g=Date.now(),v="error");let w="fetching"===f.fetchStatus,N="pending"===v,k="error"===v,S=N&&w,R=void 0!==a,C={status:v,fetchStatus:f.fetchStatus,isPending:N,isSuccess:"success"===v,isError:k,isInitialLoading:S,isLoading:S,data:a,dataUpdatedAt:f.dataUpdatedAt,error:y,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>p.dataUpdateCount||f.errorUpdateCount>p.errorUpdateCount,isFetching:w,isRefetching:w&&!N,isLoadingError:k&&!R,isPaused:"paused"===f.fetchStatus,isPlaceholderData:b,isRefetchError:k&&R,isStale:h(e,t),refetch:this.refetch,promise:this.#a,isEnabled:!1!==(0,o.resolveEnabled)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===C.status?e.reject(C.error):void 0!==C.data&&e.resolve(C.data)},a=()=>{t(this.#a=C.promise=(0,n.pendingThenable)())},r=this.#a;switch(r.status){case"pending":e.queryHash===s.queryHash&&t(r);break;case"fulfilled":("error"===C.status||C.data!==r.value)&&a();break;case"rejected":("error"!==C.status||C.error!==r.reason)&&a()}}return C}updateResult(){let e=this.#i,t=this.createResult(this.#s,this.options);if(this.#n=this.#s.state,this.#o=this.options,void 0!==this.#n.data&&(this.#c=this.#s),(0,o.shallowEqualObjects)(t,e))return;this.#i=t;let a=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,a="function"==typeof t?t():t;if("all"===a||!a&&!this.#p.size)return!0;let s=new Set(a??this.#p);return this.options.throwOnError&&s.add("error"),Object.keys(this.#i).some(t=>this.#i[t]!==e[t]&&s.has(t))};this.#N({listeners:a()})}#g(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#s)return;let t=this.#s;this.#s=e,this.#r=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#f()}#N(e){s.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#i)}),this.#e.getQueryCache().notify({query:this.#s,type:"observerResultsUpdated"})})}};function c(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&u(e,t,t.refetchOnMount)}function u(e,t,a){if(!1!==(0,o.resolveEnabled)(t.enabled,e)&&"static"!==(0,o.resolveStaleTime)(t.staleTime,e)){let s="function"==typeof a?a(e):a;return"always"===s||!1!==s&&h(e,t)}return!1}function m(e,t,a,s){return(e!==t||!1===(0,o.resolveEnabled)(s.enabled,e))&&(!a.suspense||"error"!==e.state.status)&&h(e,a)}function h(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,o.resolveStaleTime)(t.staleTime,e))}e.i(47167);var p=e.i(71645),x=e.i(12598);e.i(43476);var f=p.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),b=p.createContext(!1);b.Provider;var y=(e,t,a)=>t.fetchOptimistic(e).catch(()=>{a.clearReset()});function g(e,t){return function(e,t,a){let r=p.useContext(b),i=p.useContext(f),n=(0,x.useQueryClient)(a),l=n.defaultQueryOptions(e);if(n.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=r?"isRestoring":"optimistic",l.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=l.staleTime;l.staleTime="function"==typeof t?(...a)=>e(t(...a)):e(t),"number"==typeof l.gcTime&&(l.gcTime=Math.max(l.gcTime,1e3))}(l.suspense||l.throwOnError||l.experimental_prefetchInRender)&&!i.isReset()&&(l.retryOn
1Mount=!1),p.useEffect(()=>{i.clearReset()},[i]);let d=!n.getQueryCache().get(l.queryHash),[c]=p.useState(()=>new t(n,l)),u=c.getOptimisticResult(l),m=!r&&!1!==e.subscribed;if(p.useSyncExternalStore(p.useCallback(e=>{let t=m?c.subscribe(s.notifyManager.batchCalls(e)):o.noop;return c.updateResult(),t},[c,m]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),p.useEffect(()=>{c.setOptions(l)},[l,c]),l?.suspense&&u.isPending)throw y(l,c,i);if((({result:e,errorResetBoundary:t,throwOnError:a,query:s,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(r&&void 0===e.data||(0,o.shouldThrowError)(a,[e.error,s])))({result:u,errorResetBoundary:i,throwOnError:l.throwOnError,query:n.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw u.error;if(n.getDefaultOptions().queries?._experimental_afterQuery?.(l,u),l.experimental_prefetchInRender&&!o.isServer&&u.isLoading&&u.isFetching&&!r){let e=d?y(l,c,i):n.getQueryCache().get(l.queryHash)?.promise;e?.catch(o.noop).finally(()=>{c.updateResult()})}return l.notifyOnChangeProps?u:c.trackResult(u)}(e,d,t)}e.s(["useQuery",()=>g],66027)},99682,e=>{"use strict";var t=e.i(71645);function a(e){let a=t.useRef({value:e,previous:e});return t.useMemo(()=>(a.current.value!==e&&(a.current.previous=a.current.value,a.current.value=e),a.current.previous),[e])}e.s(["usePrevious",()=>a])},70152,e=>{"use strict";function t(e,[t,a]){return Math.min(a,Math.max(t,e))}e.s(["clamp",()=>t])},55900,e=>{"use strict";let t=(0,e.i(75254).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);e.s(["ChevronUp",()=>t],55900)},78716,e=>{"use strict";let t=(0,e.i(75254).default)("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);e.s(["Video",()=>t],78716)},87180,e=>{"use strict";var t=e.i(43476),a=e.i(71645);function s(){let[e,s]=(0,a.useState)(!1),[r,i]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{if("true"===localStorage.getItem("extensionBannerDismissed"))return void i(!0);let e=setTimeout(()=>{document.documentElement.hasAttribute("data-transcript-extension")||s(!0)},1e3);return()=>clearTimeout(e)},[]),!e||r)?null:(0,t.jsx)("div",{})}e.s(["default",()=>s])},74886,e=>{"use strict";let t=(0,e.i(75254).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",()=>t],74886)},7233,e=>{"use strict";let t=(0,e.i(75254).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",()=>t],7233)},68054,e=>{"use strict";let t=(0,e.i(75254).default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);e.s(["Terminal",()=>t],68054)},63209,e=>{"use strict";let t=(0,e.i(75254).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["AlertCircle",()=>t],63209)},44528,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(48425),r=a.forwardRef((e,a)=>(0,t.jsx)(s.Primitive.label,{...e,ref:a,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));r.displayName="Label";var i=e.i(25913),n=e.i(3746);let o=(0,i.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),l=a.forwardRef(({className:e,...a},s)=>(0,t.jsx)(r,{ref:s,className:(0,n.cn)(o(),e),...a}));l.displayName=r.displayName,e.s(["Label",()=>l],44528)},54616,e=>{"use strict";var t=e.i(71645),a=e.i(14272),s=e.i(40143),r=e.i(15823),i=e.i(19273),n=class extends r.Subscribable{#e;#i=void 0;#k;#S;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#R()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,i.shallowEqualObjects)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#k,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,i.hashKey)(t.mutationKey)!==(0,i.hashKey)(this.options.mutationKey)?this.reset():this.#k?.state.status==="pending"&&this.#k.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#k?.removeObserver(this)}onMutationUpdate(e){this.#R(),this.#N(e)}getCurrentResult(){return this.#i}reset(){this.#k?.removeObserver(this),this.#k=void 0,this.#R(),this.#N()}mutate(e,t){return this.#S=t,this.#k?.removeObserver(this),this.#k=this.#e.getMutationCache().build(this.#e,this.options),this.#k.addObserver(this),this.#k.execute(e)}#R(){let e=this.#k?.state??(0,a.getDefaultState)();this.#i={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#N(e){s.notifyManager.batch(()=>
1{if(this.#S&&this.hasListeners()){let t=this.#i.variables,a=this.#i.context,s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};e?.type==="success"?(this.#S.onSuccess?.(e.data,t,a,s),this.#S.onSettled?.(e.data,null,t,a,s)):e?.type==="error"&&(this.#S.onError?.(e.error,t,a,s),this.#S.onSettled?.(void 0,e.error,t,a,s))}this.listeners.forEach(e=>{e(this.#i)})})}},o=e.i(12598);function l(e,a){let r=(0,o.useQueryClient)(a),[l]=t.useState(()=>new n(r,e));t.useEffect(()=>{l.setOptions(e)},[l,e]);let d=t.useSyncExternalStore(t.useCallback(e=>l.subscribe(s.notifyManager.batchCalls(e)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),c=t.useCallback((e,t)=>{l.mutate(e,t).catch(i.noop)},[l]);if(d.error&&(0,i.shouldThrowError)(l.options.throwOnError,[d.error]))throw d.error;return{...d,mutate:c,mutateAsync:d.mutate}}e.s(["useMutation",()=>l],54616)},70756,e=>{"use strict";let t=(0,e.i(75254).default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);e.s(["Lock",()=>t],70756)},40966,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(66027),r=e.i(54616),i=e.i(17255),n=e.i(54469),o=e.i(3746);let l=a.forwardRef(({className:e,...a},s)=>(0,t.jsx)("textarea",{className:(0,o.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:s,...a}));l.displayName="Textarea";var d=e.i(76644),c=e.i(44528),u=e.i(87180),m=e.i(31597),h=e.i(31343),p=e.i(74886),x=e.i(43531),f=e.i(63209),b=e.i(78716),y=e.i(75254);let g=(0,y.default)("list-video",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M10 12H3",key:"1ulcyk"}],["path",{d:"M10 19H3",key:"108z41"}],["path",{d:"M15 12.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z",key:"ms4nik"}]]);var v=e.i(84614),j=e.i(31278),w=e.i(69074),N=e.i(63639);let k=(0,y.default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);var S=e.i(83086),R=e.i(70756),C=e.i(55436),T=e.i(64659),M=e.i(68054),E=e.i(72520),O=e.i(75822);let I=(0,y.default)("music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);var P=e.i(7233),L=e.i(39312),Q=e.i(92623),A=e.i(22016),U=e.i(57688);let z=[{id:"youtube",name:"YouTube",logo:"/logos/youtube.svg",inputTypes:["videos","playlist","channel"],placeholder:"Enter YouTube video IDs or URLs (one per line)"},{id:"vimeo",name:"Vimeo",logo:"/logos/vimeo.svg",inputTypes:["videos","showcase","channel"],placeholder:"Enter Vimeo video URLs or IDs (one per line)"}
1,{id:"tiktok",name:"TikTok",logo:"/logos/tiktok.svg",inputTypes:["videos","profile"],placeholder:"Enter TikTok video URLs (one per line)"},{id:"twitter",name:"Twitter/X",logo:"/logos/x-black.svg",inputTypes:["videos"],placeholder:"Enter Twitter/X video URLs (one per line)"},{id:"twitch",name:"Twitch",logo:"/logos/twitch.svg",inputTypes:["videos","channel"],placeholder:"Enter Twitch VOD or clip URLs (one per line)"},{id:"dailymotion",name:"Dailymotion",logo:"/logos/dailymotion.svg",inputTypes:["videos","playlist"],placeholder:"Enter Dailymotion video URLs (one per line)"},{id:"bilibili",name:"Bilibili",logo:"/logos/bilibili.svg",inputTypes:["videos"],placeholder:"Enter Bilibili video URLs (one per line)"},{id:"audio",name:"Audio",logo:"/logos/audio.svg",inputTypes:["upload"],maxSize:25},{id:"video",name:"Video",logo:"/logos/video.svg",inputTypes:["upload"],maxSize:1024}],F=[{code:"auto",name:"Auto-detect"},{code:"af",name:"Afrikaans"},{code:"am",name:"Amharic"},{code:"ar",name:"Arabic"},{code:"as",name:"Assamese"},{code:"az",name:"Azerbaijani"},{code:"ba",name:"Bashkir"},{code:"be",name:"Belarusian"},{code:"bg",name:"Bulgarian"},{code:"bn",name:"Bengali"},{code:"bo",name:"Tibetan"},{code:"br",name:"Breton"},{code:"bs",name:"Bosnian"},{code:"ca",name:"Catalan"},{code:"cs",name:"Czech"},{code:"cy",name:"Welsh"},{code:"da",name:"Danish"},{code:"de",name:"German"},{code:"el",name:"Greek"},{code:"en",name:"English"},{code:"es",name:"Spanish"},{code:"et",name:"Estonian"},{code:"eu",name:"Basque"},{code:"fa",name:"Persian"},{code:"fi",name:"Finnish"},{code:"fo",name:"Faroese"},{code:"fr",name:"French"},{code:"gl",name:"Galician"},{code:"gu",name:"Gujarati"},{code:"ha",name:"Hausa"},{code:"haw",name:"Hawaiian"},{code:"he",name:"Hebrew"},{code:"hi",name:"Hindi"},{code:"hr",name:"Croatian"},{code:"ht",name:"Haitian Creole"},{code:"hu",name:"Hungarian"},{code:"hy",name:"Armenian"},{code:"id",name:"Indonesian"},{code:"is",name:"Icelandic"},{code:"it",name:"Italian"},{code:"ja",name:"Japanese"},{code:"jw",name:"Javanese"},{code:"ka",name:"Georgian"},{code:"kk",name:"Kazakh"},{code:"km",name:"Khmer"},{code:"kn",name:"Kannada"},{code:"ko",name:"Korean"},{code:"la",name:"Latin"},{code:"lb",name:"Luxembourgish"},{code:"ln",name:"Lingala"},{code:"lo",name:"Lao"},{code:"lt",name:"Lithuanian"},{code:"lv",name:"Latvian"},{code:"mg",name:"Malagasy"},{code:"mi",name:"Maori"},{code:"mk",name:"Macedonian"},{code:"ml",name:"Malayalam"},{code:"mn",name:"Mongolian"},{code:"mr",name:"Marathi"},{code:"ms",name:"Malay"},{code:"mt",name:"Maltese"},{code:"my",name:"Myanmar (Burmese)"},{code:"ne",name:"Nepali"},{code:"nl",name:"Dutch"},{code:"nn",name:"Norwegian Nynorsk"},{code:"no",name:"Norwegian"},{code:"oc",name:"Occitan"},{code:"pa",name:"Punjabi"},{code:"pl",name:"Polish"},{code:"ps",name:"Pashto"},{code:"pt",name:"Portuguese"},{code:"ro",name:"Romanian"},{code:"ru",name:"Russian"},{code:"sa",name:"Sanskrit"},{code:"sd",name:"Sindhi"},{code:"si",name:"Sinhala"},{code:"sk",name:"Slovak"},{code:"sl",name:"Slovenian"},{code:"sn",name:"Shona"},{code:"so",name:"Somali"},{code:"sq",name:"Albanian"},{code:"sr",name:"Serbian"},{code:"su",name:"Sundanese"},{code:"sv",name:"Swedish"},{code:"sw",name:"Swahili"},{code:"ta",name:"Tamil"},{code:"te",name:"Telugu"},{code:"tg",name:"Tajik"},{code:"th",name:"Thai"},{code:"tk",name:"Turkmen"},{code:"tl",name:"Tagalog"},{code:"tr",name:"Turkish"},{code:"tt",name:"Tatar"},{code:"uk",name:"Ukrainian"},{code:"ur",name:"Urdu"},{code:"uz",name:"Uzbek"},{code:"vi",name:"Vietnamese"},{code:"yi",name:"Yiddish"},{code:"yo",name:"Yoruba"},{code:"zh",name:"Chinese"},{code:"yue",name:"Cantonese"}],_=[{code:"none",name:"No translation"},{code:"af",name:"Afrikaans"},{code:"sq",name:"Albanian"},{code:"am",name:"Amharic"},{code:"ar",name:"Arabic"},{code:"hy",name:"Armenian"},{code:"as",name:"Assamese"},{code:"ay",name:"Aymara"},{code:"az",name:"Azerbaijani"},{code:"bm",name:"Bambara"},{code:"eu",name:"Basque"},{code:"be",name:"Belarusian"},{code:"bn",name:"Bengali"},{code:"bho",name:"Bhojpuri"},{code:"bs",name:"Bosnian"},{code:"bg",name:"Bulgarian"},{code:"ca",name:"Catalan"},{code:"ceb",name:"Cebuano"},{code:"zh-CN",name:"Chinese (Simplified)"},{code:"zh-TW",name:"Chinese (Traditional)"},{code:"co",name:"Corsican"},{code:"hr",name:"Croatian"},{code:"cs",name:"Czech"},{code:"da",name:"Danish"},{code:"dv",name:"Dhivehi"},{code:"doi",name:"Dogri"},{code:"nl",name:"Dutch"},{code:"en",name:"English"}
1,{code:"eo",name:"Esperanto"},{code:"et",name:"Estonian"},{code:"ee",name:"Ewe"},{code:"fil",name:"Filipino"},{code:"fi",name:"Finnish"},{code:"fr",name:"French"},{code:"fy",name:"Frisian"},{code:"gl",name:"Galician"},{code:"ka",name:"Georgian"},{code:"de",name:"German"},{code:"el",name:"Greek"},{code:"gn",name:"Guarani"},{code:"gu",name:"Gujarati"},{code:"ht",name:"Haitian Creole"},{code:"ha",name:"Hausa"},{code:"haw",name:"Hawaiian"},{code:"he",name:"Hebrew"},{code:"hi",name:"Hindi"},{code:"hmn",name:"Hmong"},{code:"hu",name:"Hungarian"},{code:"is",name:"Icelandic"},{code:"ig",name:"Igbo"},{code:"ilo",name:"Ilocano"},{code:"id",name:"Indonesian"},{code:"ga",name:"Irish"},{code:"it",name:"Italian"},{code:"ja",name:"Japanese"},{code:"jv",name:"Javanese"},{code:"kn",name:"Kannada"},{code:"kk",name:"Kazakh"},{code:"km",name:"Khmer"},{code:"rw",name:"Kinyarwanda"},{code:"gom",name:"Konkani"},{code:"ko",name:"Korean"},{code:"kri",name:"Krio"},{code:"ku",name:"Kurdish"},{code:"ckb",name:"Kurdish (Sorani)"},{code:"ky",name:"Kyrgyz"},{code:"lo",name:"Lao"},{code:"la",name:"Latin"},{code:"lv",name:"Latvian"},{code:"ln",name:"Lingala"},{code:"lt",name:"Lithuanian"},{code:"lg",name:"Luganda"},{code:"lb",name:"Luxembourgish"},{code:"mk",name:"Macedonian"},{code:"mai",name:"Maithili"},{code:"mg",name:"Malagasy"},{code:"ms",name:"Malay"},{code:"ml",name:"Malayalam"},{code:"mt",name:"Maltese"},{code:"mi",name:"Maori"},{code:"mr",name:"Marathi"},{code:"mni-Mtei",name:"Meiteilon (Manipuri)"},{code:"lus",name:"Mizo"},{code:"mn",name:"Mongolian"},{code:"my",name:"Myanmar (Burmese)"},{code:"ne",name:"Nepali"},{code:"no",name:"Norwegian"},{code:"ny",name:"Nyanja (Chichewa)"},{code:"or",name:"Odia (Oriya)"},{code:"om",name:"Oromo"},{code:"ps",name:"Pashto"},{code:"fa",name:"Persian"},{code:"pl",name:"Polish"},{code:"pt",name:"Portuguese"},{code:"pa",name:"Punjabi"},{code:"qu",name:"Quechua"},{code:"ro",name:"Romanian"},{code:"ru",name:"Russian"},{code:"sm",name:"Samoan"},{code:"sa",name:"Sanskrit"},{code:"gd",name:"Scots Gaelic"},{code:"nso",name:"Sepedi"},{code:"sr",name:"Serbian"},{code:"st",name:"Sesotho"},{code:"sn",name:"Shona"},{code:"sd",name:"Sindhi"},{code:"si",name:"Sinhala"},{code:"sk",name:"Slovak"},{code:"sl",name:"Slovenian"},{code:"so",name:"Somali"},{code:"es",name:"Spanish"},{code:"su",name:"Sundanese"},{code:"sw",name:"Swahili"},{code:"sv",name:"Swedish"},{code:"tl",name:"Tagalog"},{code:"tg",name:"Tajik"},{code:"ta",name:"Tamil"},{code:"tt",name:"Tatar"},{code:"te",name:"Telugu"},{code:"th",name:"Thai"},{code:"ti",name:"Tigrinya"},{code:"ts",name:"Tsonga"},{code:"tr",name:"Turkish"},{code:"tk",name:"Turkmen"},{code:"ak",name:"Twi (Akan)"},{code:"uk",name:"Ukrainian"},{code:"ur",name:"Urdu"},{code:"ug",name:"Uyghur"},{code:"uz",name:"Uzbek"},{code:"vi",name:"Vietnamese"},{code:"cy",name:"Welsh"},{code:"xh",name:"Xhosa"},{code:"yi",name:"Yiddish"},{code:"yo",name:"Yoruba"},{code:"zu",name:"Zulu"}];function D(){let{data:e}=(0,i.useSession)(),o=["pro","enterprise"].includes(e?.user?.subscriptionTier),[y,D]=(0,a.useState)("youtube"),[B,$]=(0,a.useState)(!1),K=(0,a.useRef)(null),[V,q]=(0,a.useState)("videos"),[H,W]=(0,a.useState)(""),[G,J]=(0,a.useState)(""),[Y,X]=(0,a.useState)(""),[Z,ee]=(0,a.useState)(50),[et,ea]=(0,a.useState)(null),[es,er]=(0,a.useState)(0),[ei,en]=(0,a.useState)(!1),eo=(0,a.useRef)(null),[el,ed]=(0,a.useState)("auto"),[ec,eu]=(0,a.useState)("none"),[em,eh]=(0,a.useState)(!1),[ep,ex]=(0,a.useState)(""),[ef,eb]=(0,a.useState)(!1),[ey,eg]=(0,a.useState)(""),ev=(0,a.useRef)(null),ej=(0,a.useRef)(null),[ew,eN]=(0,a.useState)(!1),[ek,eS]=(0,a.useState)(!1),[eR,eC]=(0,a.useState)(!1),[eT,eM]=(0,a.useState)(!1),[eE,eO]=(0,a.useState)(""),[eI,eP]=(0,a.useState)(!1),[eL,eQ]=(0,a.useState)(null),[eA,eU]=(0,a.useState)(!1),[ez,eF]=(0,a.useState)(!1),[e_,eD]=(0,a.useState)(!1),eB=z.find(e=>e.id===y);(0,a.useEffect)(()=>{let e=e=>{K.current&&!K.current.contains(e.target)&&$(!1),ev.current&&!ev.current.contains(e.target)&&(eh(!1),ex("")),ej.current&&!ej.current.contains(e.target)&&(eb(!1),eg(""))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let{data:e$,isLoading:eK}=(0,s.useQuery)({queryKey:["api-keys"],queryFn:async()=>{let e=await fetch("/api/api-keys");if(!e.ok)throw Error("Failed to fetch API keys");return e.json()}}),eV=(0,r.useMutation)({mutationFn:async e=>{let t=await fetch("/api/playground/submit",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),a=await t.json();if(!t.ok)throw Error(a.error||"Failed to submit job");return a},onSuccess:e=>eQ(e),onError:e=>eQ({error:e.message})}),eq=(0,r.useMutation)({mutationFn:async e=>{let t=await fetch("/api/playground/transcribe-audio",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKeyId:eE,audioUrl:e})}),a=await t.json();if(!t.ok)throw Error(a.error||"Failed to transcribe audio");return a},onSuccess:e=>{eQ(e),ea(null),er(0)},onError:e=>eQ({error:e.message})}),eH=(0,r.useMutation)({mutationFn:async e=>{let t=await fetch("/api/playground/transcribe-video",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKeyId:eE,videoUrl:e})}),a=await t.json();if(!t.ok)throw Error(a.error||"Failed to transcribe video");return a},onSuccess:e=>{eQ(e),ea(null),er(0)},onError:e=>eQ({error:e.message})}),eW=e=>{let t=e.split(/[\n,]/).map(e=>
1e.trim()).filter(Boolean),a=[];for(let e of t)if("youtube"===y){let t=e.match(/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/)([a-zA-Z0-9_-]{11})/);t?a.push(t[1]):/^[a-zA-Z0-9_-]{11}$/.test(e)&&a.push(e)}else e.startsWith("http")&&a.push(e);return a},eG=async()=>{if(et&&eE){en(!0),er(0);try{let e="video"===y,t=e?"video/mp4":"audio/mpeg",a=await fetch("/api/playground/upload-url",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fileName:et.name,fileType:et.type||t})}),s=await a.json();if(!a.ok)throw Error(s.error||"Failed to get upload URL");if(er(20),!(await fetch(s.uploadUrl,{method:"PUT",headers:{"Content-Type":et.type||t},body:et})).ok)throw Error("Failed to upload file");er(60),e?await eH.mutateAsync(s.fileUrl):await eq.mutateAsync(s.fileUrl),er(100)}catch(e){eQ({error:e.message})}finally{en(!1)}}},eJ=async e=>{await navigator.clipboard.writeText(e),eU(!0),setTimeout(()=>eU(!1),2e3)},eY=()=>{let e=e$?.find(e=>e._id===eE),t=e?.keyPrefix||"YOUR_API_KEY";if("audio"===y||"video"===y)return`curl -X POST https://api.transcripthq.io/v1/transcribe-${y} \\ 2 -H "Content-Type: application/json" \\ 3 -H "X-API-Key: ${t}..." \\ 4 -d '{"${y}_url": "https://your-presigned-url"}'`;let a={service_type:y};return"videos"===V?a.videos=eW(H):"playlist"===V||"showcase"===V?(a.playlist=G,a.max_videos=Z):("channel"===V||"profile"===V)&&(a.channel=Y,a.max_videos=Z),ec&&"none"!==ec&&(a.target_language=ec),ew&&o&&(a.word_timestamps=!0),ek&&(a.noise_reduction=!0),eR&&"youtube"===y&&(a.skip_metadata=!0),eT&&"youtube"===y&&(a.native_only=!0),`curl -X POST https://api.transcripthq.io/v1/transcripts \\ 5 -H "Content-Type: application/json" \\ 6 -H "X-API-Key: ${t}..." \\ 7 -d '${JSON.stringify(a)}'`},eX=eV.isPending||eq.isPending||eH.isPending||ei,eZ={videos:{icon:b.Video,label:"Videos"},playlist:{icon:g,label:"Playlist"},showcase:{icon:g,label:"Showcase"},channel:{icon:v.User,label:"Channel"},profile:{icon:v.User,label:"Profile"}};return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsx)(u.default,{}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-lg font-semibold tracking-tight",children:"Playground"}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Test the TranscriptHQ API without writing code."})]}),(0,t.jsxs)("div",{className:"grid gap-5 lg:grid-cols-2",children:[(0,t.jsx)("div",{className:"space-y-5",children:(0,t.jsxs)("div",{className:"bg-card rounded-xl border border-border/60 overflow-hidden",children:[(0,t.jsx)("div",{className:"px-4 py-3 border-b border-border/60 bg-muted/30",children:(0,t.jsx)("h3",{className:"text-[13px] font-medium",children:"Request Configuration"})}),(0,t.jsxs)("div",{className:"p-4 space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(c.Label,{className:`text-xs ${eI?"text-red-500":""}`,children:"API Key"}),eK?(0,t.jsx)("div",{className:"h-9 bg-muted/50 animate-pulse rounded-lg"}):(0,t.jsxs)(m.Select,{value:eE,onValueChange:e=>{eO(e),eP(!1)},children:[(0,t.jsx)(m.SelectTrigger,{className:`h-9 text-[13px] ${eI?"border-red-500 ring-1 ring-red-500":""}`,children:(0,t.jsx)(m.SelectValue,{placeholder:"Select an API key"})}),(0,t.jsxs)(m.SelectContent,{children:[e$?.map(e=>(0,t.jsxs)(m.SelectItem,{value:e._id,className:"text-[13px]",children:[e.name," (",e.keyPrefix,"...)"]},e._id)),(0,t.jsx)(A.default,{href:"/dashboard/api-keys",className:"block",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 text-[13px] text-primary hover:bg-muted rounded-md cursor-pointer border-t border-border/60 mt-1 pt-2",children:[(0,t.jsx)(P.Plus,{className:"h-3.5 w-3.5"}),"Create an API Key"]})})]})]})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(c.Label,{className:"text-xs",children:"Platform"}),(0,t.jsxs)("div",{className:"relative",ref:K,children:[(0,t.jsxs)("button",{type:"button",onClick:()=>$(!B),className:"flex h-9 w-full items-center justify-between rounded-lg border border-border/60 bg-background px-3 text-[13px] hover:border-border transition-colors",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("div",{className:"w-5 h-5 flex items-center justify-center",children:(0,t.jsx)(U.default,{src:eB?.logo||"/logos/youtube.svg",alt:eB?.name||"Platform",width:18,height:18,className:"object-contain"})}),(0,t.jsx)("span",{children:eB?.name||"Select Platform"})]}),(0,t.jsx)(T.ChevronDown,{className:`h-4 w-4 text-muted-foreground transition-transform duration-200 ${B?"rotate-180":""}`})]}),B&&(0,t.jsx)("div",{className:"absolute z-50 mt-1 w-full rounded-lg border border-border/60 bg-popover shadow-lg overflow-hidden animate-in fade-in-0 zoom-in-95 duration-100",children:(0,t.jsx)("div",{className:"p-1 max-h-[280px] overflow-y-auto",children:z.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>{var t;let a;return D(t=e.id),ea(null),eQ(null),$(!1),a=z.find(e=>e.id===t),void(a?.inputTypes?.[0]&&q(a.inputTypes[0]))},className:`w-full flex items-center gap-2.5 px-3 py-2 text-[13px] rounded-md transition-all duration-150 ${y===e.id?"bg-primary text-primary-foreground":"hover:bg-muted"}`,children:[(0,t.jsx)("div",{className:`w-6 h-6 flex items-center justify-center rounded-md transition-all ${y===e.id?"bg-primary-foreground
7/20 scale-110":"bg-muted/80"}`,children:(0,t.jsx)(U.default,{src:e.logo,alt:e.name,width:16,height:16,className:`object-contain transition-all ${y===e.id?"brightness-0 invert":""}`})}),(0,t.jsx)("span",{className:"font-medium",children:e.name})]},e.id))})})]})]}),(0,t.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsxs)(c.Label,{className:"text-xs flex items-center gap-1.5",children:[(0,t.jsx)(N.Languages,{className:"h-3 w-3 text-muted-foreground"}),"Audio Language"]}),(0,t.jsxs)("div",{className:"relative",ref:ev,children:[(0,t.jsxs)("button",{type:"button",onClick:()=>eh(!em),className:"flex h-9 w-full items-center justify-between rounded-lg border border-border/60 bg-background px-3 text-[13px] hover:border-border transition-colors",children:[(0,t.jsx)("span",{children:F.find(e=>e.code===el)?.name||"Auto-detect"}),(0,t.jsx)(T.ChevronDown,{className:"h-3.5 w-3.5 text-muted-foreground"})]}),em&&(0,t.jsxs)("div",{className:"absolute z-50 mt-1 w-full rounded-lg border border-border/60 bg-popover shadow-lg",children:[(0,t.jsx)("div",{className:"p-2 border-b border-border/60",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(C.Search,{className:"absolute left-2 top-2 h-3.5 w-3.5 text-muted-foreground"}),(0,t.jsx)(d.Input,{placeholder:"Search...",value:ep,onChange:e=>ex(e.target.value),className:"pl-7 h-8 text-xs",autoFocus:!0})]})}),(0,t.jsx)("div",{className:"max-h-40 overflow-y-auto p-1",children:F.filter(e=>e.name.toLowerCase().includes(ep.toLowerCase())).map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>{ed(e.code),eh(!1),ex("")},className:`w-full text-left px-2.5 py-1.5 text-xs rounded-md hover:bg-muted transition-colors ${el===e.code?"bg-muted font-medium":""}`,children:e.name},e.code))})]})]})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsxs)(c.Label,{className:"text-xs flex items-center gap-1.5",children:[(0,t.jsx)(N.Languages,{className:"h-3 w-3 text-muted-foreground"}),"Translate To"]}),(0,t.jsxs)("div",{className:"relative",ref:ej,children:[(0,t.jsxs)("button",{type:"button",onClick:()=>eb(!ef),className:"flex h-9 w-full items-center justify-between rounded-lg border border-border/60 bg-background px-3 text-[13px] hover:border-border transition-colors",children:[(0,t.jsx)("span",{children:_.find(e=>e.code===ec)?.name||"No translation"}),(0,t.jsx)(T.ChevronDown,{className:"h-3.5 w-3.5 text-muted-foreground"})]}),ef&&(0,t.jsxs)("div",{className:"absolute z-50 mt-1 w-full rounded-lg border border-border/60 bg-popover shadow-lg",children:[(0,t.jsx)("div",{className:"p-2 border-b border-border/60",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(C.Search,{className:"absolute left-2 top-2 h-3.5 w-3.5 text-muted-foreground"}),(0,t.jsx)(d.Input,{placeholder:"Search...",value:ey,onChange:e=>eg(e.target.value),className:"pl-7 h-8 text-xs",autoFocus:!0})]})}),(0,t.jsx)("div",{className:"max-h-40 overflow-y-auto p-1",children:_.filter(e=>e.name.toLowerCase().includes(ey.toLowerCase())).map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>{eu(e.code),eb(!1),eg("")},className:`w-full text-left px-2.5 py-1.5 text-xs rounded-md hover:bg-muted transition-colors ${ec===e.code?"bg-muted font-medium":""}`,children:e.name},e.code))})]})]})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between p-2.5 bg-muted/30 rounded-lg border border-border/40",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("div",{className:`p-1.5 rounded-md ${o?"bg-primary/10":"bg-muted"}`,children:(0,t.jsx)(S.Sparkles,{className:`h-3.5 w-3.5 ${o?"text-primary":"text-muted-foreground"}`})}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:"text-xs font-medium",children:"Word-for-Word Timestamps"}),!o&&(0,t.jsxs)("span",{className:"inline-flex items-center px-1 py-0.5 rounded text-[9px] font-medium bg-muted text-muted-foreground border border-border",children:[(0,t.jsx)(R.Lock,{className:"h-2 w-2 mr-0.5"}),"Pro"]})]}),(0,t.jsx)("p",{className:"text-[10px] text-muted-foreground mt-0.5",children:o?"Precise timestamps for each word ⢠1.5x credits":"Upgrade to Pro to enable ⢠1.5x credits"})]})]}),(0,t.jsx)(Q.Switch,{checked:ew,onCheckedChange:eN,disabled:!o,className:"scale-90"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between p-2.5 bg-muted/30 rounded-lg border border-border/40",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("div",{className:"p-1.5 rounded-md bg-amber-500/10",children:(0,t.jsx)(I,{className:"h-3.5 w-3.5 text-amber-500"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"text-xs font-medium",children:"Noise Reduction"}),(0,t.jsx)("p",{className:"text-[10px] text-muted-foreground mt-0.5",children:"Clean audio before transcription"})]})]}),(0,t.jsx)(Q.Switch,{checked:ek,onCheckedChange:eS,className:"scale-90"})]}),"youtube"===y&&(0,t.jsxs)("div",{className:"flex items-center justify-between p-2.5 bg-muted/30 rounded-lg border border-border/40",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("div",{className:"p-1.5 rounded-md bg-blue-500/10",children:(0,t.jsx)(L.Zap,{className:"h-3.5 w-3.5 text-blue-500"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"text-xs font-medium",children:"Skip Validation"}),(0,t.jsx)("p",{className:"text-[10px] text-muted-foreground mt-0.5",children:"Instant job creation for bulk uploads"}
7),eR&&(0,t.jsx)("p",{className:"text-[10px] text-amber-600 dark:text-amber-400 mt-0.5",children:"â ï¸ Videos using Whisper may fail if credits run out"})]})]}),(0,t.jsx)(Q.Switch,{checked:eR,onCheckedChange:eC,className:"scale-90"})]}),"youtube"===y&&(0,t.jsxs)("div",{className:"flex items-center justify-between p-2.5 bg-muted/30 rounded-lg border border-border/40",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("div",{className:"p-1.5 rounded-md bg-emerald-500/10",children:(0,t.jsx)(b.Video,{className:"h-3.5 w-3.5 text-emerald-500"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"text-xs font-medium",children:"Native Captions Only"}),(0,t.jsx)("p",{className:"text-[10px] text-muted-foreground mt-0.5",children:"Skip Whisper fallback ⢠1 credit per video"}),eT&&(0,t.jsx)("p",{className:"text-[10px] text-amber-600 dark:text-amber-400 mt-0.5",children:"â ï¸ Videos without captions will fail"})]})]}),(0,t.jsx)(Q.Switch,{checked:eT,onCheckedChange:eM,className:"scale-90"})]})]}),eB?.inputTypes&&!["audio","video"].includes(y)&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("div",{className:"flex gap-1 p-0.5 bg-muted/50 rounded-lg",children:eB.inputTypes.map(e=>{let a=eZ[e],s=a?.icon||b.Video;return(0,t.jsxs)("button",{onClick:()=>q(e),className:`flex-1 flex items-center justify-center gap-1.5 px-2 py-1.5 rounded-md text-xs font-medium transition-all ${V===e?"bg-background shadow-sm text-foreground":"text-muted-foreground hover:text-foreground"}`,children:[(0,t.jsx)(s,{className:"h-3 w-3"}),a?.label||e]},e)})}),"videos"===V&&(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(l,{placeholder:eB.placeholder,value:H,onChange:e=>W(e.target.value),className:"min-h-[90px] font-mono text-xs resize-none"}),(0,t.jsxs)("p",{className:"text-[10px] text-muted-foreground",children:[eW(H).length," video(s) detected"]})]}),("playlist"===V||"showcase"===V)&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(d.Input,{placeholder:`https://${y}.com/playlist/...`,value:G,onChange:e=>J(e.target.value),className:"h-9 text-xs"}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(c.Label,{className:"text-[10px] text-muted-foreground shrink-0",children:"Max videos:"}),(0,t.jsx)(d.Input,{type:"number",min:1,max:500,value:Z,onChange:e=>ee(parseInt(e.target.value)||50),className:"h-8 w-20 text-xs"})]})]}),("channel"===V||"profile"===V)&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(d.Input,{placeholder:"youtube"===y?"https://youtube.com/@channelname":`https://${y}.com/@username`,value:Y,onChange:e=>X(e.target.value),className:"h-9 text-xs"}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(c.Label,{className:"text-[10px] text-muted-foreground shrink-0",children:"Max videos:"}),(0,t.jsx)(d.Input,{type:"number",min:1,max:500,value:Z,onChange:e=>ee(parseInt(e.target.value)||50),className:"h-8 w-20 text-xs"})]})]})]}),("audio"===y||"video"===y)&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:`border-2 border-dashed rounded-lg p-5 text-center cursor-pointer transition-all ${et?"border-primary bg-primary/5":"border-border/60 hover:border-border hover:bg-muted/30"}`,onClick:()=>eo.current?.click(),children:[(0,t.jsx)("input",{ref:eo,type:"file",accept:"video"===y?"video/*":"audio/*",onChange:e=>{let t=e.target.files?.[0];if(t){let e="video"===y?0x40000000:0x1900000;if(t.size>e)return void eQ({error:`File too large. Maximum size is ${"video"===y?"1GB":"25MB"}.`});ea(t),eQ(null)}},className:"hidden"}),et?(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("div",{className:"inline-flex p-2.5 rounded-xl bg-primary/10",children:(0,t.jsx)(U.default,{src:eB?.logo||"/logos/audio.svg",alt:y,width:24,height:24})}),(0,t.jsx)("p",{className:"text-xs font-medium",children:et.name}),(0,t.jsxs)("p",{className:"text-[10px] text-muted-foreground",children:[(et.size/1048576).toFixed(2)," MB"]}),(0,t.jsx)(n.Button,{variant:"ghost",size:"sm",className:"h-7 text-[10px]",onClick:e=>{e.stopPropagation(),ea(null)},children:"Remove"})]}):(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("div",{className:"inline-flex p-2.5 rounded-xl bg-muted",children:(0,t.jsx)(w.Upload,{className:"h-5 w-5 text-muted-foreground"})}),(0,t.jsxs)("p",{className:"text-xs font-medium",children:["Click to upload ",y]}),(0,t.jsx)("p",{className:"text-[10px] text-muted-foreground",children:"video"===y?"MP4, MOV, AVI, MKV (max 1GB)":"MP3, WAV, M4A, OGG (max 25MB)"})]})]}),ei&&(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsxs)("div",{className:"flex justify-between text-[10px]",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:es<60?"Uploading...":"Transcribing..."}),(0,t.jsxs)("span",{className:"font-medium",children:[es,"%"]})]}),(0,t.jsx)("div",{className:"w-full bg-muted rounded-full h-1 overflow-hidden",children:(0,t.jsx)("div",{className:"bg-primary h-full rounded-full transition-all duration-300",style:{width:`${es}%`}})})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 p-2 bg-muted/30 rounded-lg border border-border/40",children:[(0,t.jsx)(O.Coins,{className:"h-3.5 w-3.5 text-muted-foreground shrink-0"}),(0,t.jsx)("span",{className:"text-[10px] text-muted-foreground",children:"YouTube native captions = 1 credit. Whisper = 1 credit/minute."})]}),(0,t.jsx)(n.Button,{className:"w-full h-9 text-[13px]",onClick:()=>
7{if(!eE){eP(!0),eQ({error:"Please select an API key"});return}if(eP(!1),"audio"===y||"video"===y)return et?void eG():void eQ({error:`Please select ${"video"===y?"a video":"an audio"} file`});let e={apiKeyId:eE,serviceType:y};if(el&&"auto"!==el&&(e.sourceLanguage=el),ec&&"none"!==ec&&(e.targetLanguage=ec),ew&&o&&(e.wordTimestamps=!0),ek&&(e.noiseReduction=!0),eR&&"youtube"===y&&(e.skipMetadata=!0),eT&&"youtube"===y&&(e.nativeOnly=!0),"videos"===V){let t=eW(H);if(0===t.length)return void eQ({error:`Please enter valid ${eB?.name||"platform"} video URLs`});e.videos=t}else if("playlist"===V||"showcase"===V){if(!G.trim())return void eQ({error:"Please enter a playlist URL"});e.playlist=G.trim(),e.maxVideos=Z}else if("channel"===V||"profile"===V){if(!Y.trim())return void eQ({error:"Please enter a channel URL"});e.channel=Y.trim(),e.maxVideos=Z}eV.mutate(e)},disabled:eX||!eE,children:eX?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.Loader2,{className:"mr-1.5 h-3.5 w-3.5 animate-spin"}),ei?"Processing...":"Submitting..."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.Play,{className:"mr-1.5 h-3.5 w-3.5"}),"audio"===y?"Transcribe Audio":"video"===y?"Transcribe Video":"Submit Job"]})})]})]})}),(0,t.jsxs)("div",{className:"space-y-5",children:[(0,t.jsxs)("div",{className:"bg-card rounded-xl border border-border/60 overflow-hidden",children:[(0,t.jsx)("div",{className:"px-4 py-3 border-b border-border/60 bg-muted/30",children:(0,t.jsx)("h3",{className:"text-[13px] font-medium",children:"Response"})}),(0,t.jsx)("div",{className:"p-4",children:eL?(0,t.jsx)("div",{className:"space-y-3",children:eL.error?(0,t.jsxs)("div",{className:"flex items-start gap-2.5 p-3 bg-red-500/10 border border-red-500/20 rounded-lg",children:[(0,t.jsx)(f.AlertCircle,{className:"h-4 w-4 text-red-500 shrink-0 mt-0.5"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs font-medium text-red-600 dark:text-red-400",children:"Error"}),(0,t.jsx)("p",{className:"text-xs text-red-600/80 dark:text-red-400/80 mt-0.5",children:eL.error})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,t.jsxs)("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-[10px] font-medium bg-emerald-500/10 text-emerald-600 border border-emerald-500/20",children:[(0,t.jsx)(x.Check,{className:"h-2.5 w-2.5 mr-1"}),"Success"]}),eL.job_id&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(A.default,{href:`/dashboard/jobs/${eL.job_id}`,className:"text-xs text-primary hover:underline font-medium flex items-center gap-0.5",children:["View Job",(0,t.jsx)(E.ArrowRight,{className:"h-2.5 w-2.5"})]}),(0,t.jsxs)(n.Button,{variant:"outline",size:"sm",className:"h-6 text-[10px]",disabled:ez||e_,onClick:async()=>{eF(!0);try{let e=await fetch(`/api/jobs/${eL.job_id}`),t=await e.json();if(!e.ok)throw Error(t.error||"Failed to poll");eQ(t)}catch(e){eQ({...eL,pollError:e.message})}finally{eF(!1),eD(!0),setTimeout(()=>eD(!1),3e3)}},children:[(0,t.jsx)(k,{className:`mr-1 h-2.5 w-2.5 ${ez?"animate-spin":""}`}),e_?"Wait...":"Poll"]})]})]}),eL.credits_used&&(0,t.jsx)("div",{className:"p-2.5 bg-emerald-500/10 border border-emerald-500/20 rounded-lg",children:(0,t.jsx)("p",{className:"text-xs text-emerald-700 dark:text-emerald-300",children:(0,t.jsxs)("span",{className:"font-medium",children:[eL.credits_used," credits used"]})})}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("pre",{className:"bg-muted/50 p-3 rounded-lg overflow-auto max-h-[220px] text-[10px] font-mono border border-border/40",children:JSON.stringify(eL,null,2)}),(0,t.jsx)(n.Button,{variant:"ghost",size:"icon",className:"absolute top-1.5 right-1.5 h-6 w-6",onClick:()=>eJ(JSON.stringify(eL,null,2)),children:eA?(0,t.jsx)(x.Check,{className:"h-3 w-3 text-emerald-500"}):(0,t.jsx)(p.Copy,{className:"h-3 w-3"})})]})]})}):(0,t.jsxs)("div",{className:"text-center py-10",children:[(0,t.jsx)("div",{className:"inline-flex p-3 rounded-full bg-muted/50 mb-3",children:(0,t.jsx)(h.Play,{className:"h-5 w-5 text-muted-foreground"})}),(0,t.jsx)("p",{className:"text-xs font-medium",children:"No response yet"}),(0,t.jsx)("p",{className:"text-[10px] text-muted-foreground mt-0.5",children:"Submit a request to see the response"})]})})]}),(0,t.jsxs)("div",{className:"bg-card rounded-xl border border-border/60 overflow-hidden",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-4 py-2.5 border-b border-border/60 bg-muted/30",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(M.Terminal,{className:"h-3.5 w-3.5 text-muted-foreground"}),(0,t.jsx)("span",{className:"text-xs font-medium",children:"cURL Command"})]}),(0,t.jsxs)(n.Button,{variant:"ghost",size:"sm",className:"h-6 text-[10px]",onClick:()=>eJ(eY()),children:[eA?(0,t.jsx)(x.Check,{className:"mr-1 h-2.5 w-2.5 text-emerald-500"}):(0,t.jsx)(p.Copy,{className:"mr-1 h-2.5 w-2.5"}),"Copy"]})]}),(0,t.jsx)("div",{className:"p-3",children:(0,t.jsx)("pre",{className:"bg-muted/50 p-3 rounded-lg overflow-auto text-[10px] font-mono border border-border/40",children:eY()})})]})]})]})]})}e.s(["default",()=>D],40966)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.