PageSourceSearch

https://www.delphi.ai/_next/static/immutable/chunks/3vm-lgy_yyu41.js

js delphi.ai collected 2026-10-03 17:35:44 UTC 33,985 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="c7238457-0372-376b-1c4d-088a628189a3")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,107398,e=>{"use strict";class t{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return r(this.animations,"duration")}get iterationDuration(){return r(this.animations,"iterationDuration")}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function r(e,t){let r=0;for(let n=0;n<e.length;n++){let i=e[n][t];null!==i&&i>r&&(r=i)}return r}class n extends t{then(e,t){return this.finished.finally(e).then(()=>{})}}var i=e.i(926935),a=e.i(706221),o=e.i(102710),l=e.i(140926),s=e.i(973626),u=e.i(855397),c=e.i(10875),d=e.i(302461),h=e.i(470934),f=e.i(633836),m=e.i(725542),p=e.i(991388),g=e.i(577182);function x(e,t){var r;let n;return(0,g.isEasingArray)(e)?e[r=e.length,((t-0)%(n=r-0)+n)%n+0]:e}var v=e.i(513038);function y(e){return"object"==typeof e&&!Array.isArray(e)}function b(e,t,r,n){return null==e?[]:"string"==typeof e&&y(t)?(0,v.resolveElements)(e,r,n):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>null!=e):[e]}function w(e,t,r,n){return"number"==typeof t?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):"<"===t?r:t.startsWith("<")?Math.max(0,r+parseFloat(t.slice(1))):n.get(t)??e}var C=e.i(327745);function _(e,t){return e.at!==t.at?e.at-t.at:null===e.value?1:null===t.value?-1:0}function M(e,t){return t.has(e)||t.set(e,{}),t.get(e)}function S(e,t){return t[e]||(t[e]=[]),t[e]}let A=e=>"number"==typeof e,j=e=>e.every(A);var R=e.i(754497),E=e.i(368623),k=e.i(530754),N=e.i(256650),T=e.i(570615),P=e.i(565274),O=e.i(777074),I=e.i(301219),B=e.i(453311);class F extends B.VisualElement{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,t){if(t in e){let r=e[t];if("string"==typeof r||"number"==typeof r)return r}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return(0,I.createBox)()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}}function H(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},r=(0,N.isSVGElement)(e)&&!(0,T.isSVGSVGElement)(e)?new P.SVGVisualElement(t):new O.HTMLVisualElement(t);r.mount(e),E.visualElementStore.set(e,r)}function V(e){let t=new F({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),E.visualElementStore.set(e,t)}function D(e,t,r,n){let i=[];if((0,l.isMotionValue)(e)||"number"==typeof e||"string"==typeof e&&!y(t))i.push((0,R.animateSingleValue)(e,y(t)&&t.default||t,r&&r.default||r));else{if(null==e)return i;let a=b(e,t,n),o=a.length;(0,m.invariant)(!!o,"No valid elements provided.","no-valid-elements");for(let e=0;e<o;e++){let n=a[e],l=n instanceof Element?H:V;E.visualElementStore.has(n)||l(n);let s=E.visualElementStore.get(n),u={...r};"delay"in u&&"function"==typeof u.delay&&(u.delay=u.delay(e,o)),i.push(...(0,k.animateTarget)(s,{...t,transition:u},{}))}}return i}function z(e={}){let{scope:t,reduceMotion:r,skipAnimations:g}=e;return function(e,v,y){var A;let R,E=[],k={};if(void 0!==r&&(k.reduceMotion=r),void 0!==g&&(k.skipAnimations=g),Array.isArray(e)&&e.some(Array.isArray)){let r,{onComplete:n,...g}=v||{};"function"==typeof n&&(R=n),A={...k,...g},r=[],(function(e,{defaultTransition:t={},...r}={},n,a){let o=t.duration||.3,g=new Map,v=new Map,y={},A=new Map,R=0,E=0,k=0;for(let r=0;r<e.length;r++){let h=e[r];if("string"==typeof h){A.set(h,E);continue}if(!Array.isArray(h)){A.set(h.name,w(E,h.at,R,A));continue}let[g,_,P={}]=h;void 0!==P.at&&(E=w(E,P.at,R,A));let O=0,I=(e,r,n,l=0,h=0)=>{var g;let v=Array.isArray(g=e)?g:[g],{delay:y=0,times:b=(0,s.defaultOffset)(v),type:w=t.type||"ke
2yframes",repeat:_,repeatType:M,repeatDelay:S=0,...A}=r,{ease:R=t.ease||"easeOut",duration:N}=r,T="function"==typeof y?y(l,h):y,P=v.length,I=(0,u.isGenerator)(w)?w:a?.[w||"keyframes"];if(P<=2&&I){let e=100;2===P&&j(v)&&(e=Math.abs(v[1]-v[0]));let r={...t,...A};void 0!==N&&(r.duration=(0,f.secondsToMilliseconds)(N));let n=(0,c.createGeneratorEasing)(r,e,I);R=n.ease,N=n.duration}N??(N=o);let B=E+T;1===b.length&&0===b[0]&&(b[1]=1);let F=b.length-v.length;if(F>0&&(0,d.fillOffset)(b,F),1===v.length&&v.unshift(null),_&&(0,m.warning)(_<20,`Sequence segments can't repeat ${_} times — ignoring repeat option. Use a value below 20 or apply repeat at the sequence level instead.`),_&&_<20){let e=N>0?S/N:0;N=N*(_+1)+S*_;let t=[...v],r=[...b],n=[...R=Array.isArray(R)?[...R]:[R]],i="reverse"===M||"mirror"===M,a=t,o=n;i&&(a=[...t].reverse(),"reverse"===M&&(o=[...n].reverse().map(e=>"function"==typeof e?(0,p.reverseEasing)(e):e)));for(let l=0;l<_;l++){let s=i&&l%2==0,u=s?a:t,c=s?o:n,d=(l+1)*(1+e);e>0&&(v.push(v[v.length-1]),b.push(d),R.push("linear")),v.push(...u);for(let e=0;e<u.length;e++)b.push(r[e]+d),R.push(0===e?"linear":x(c,e-1))}!function(e,t,r=0){let n=t+1+t*r;for(let t=0;t<e.length;t++)e[t]=e[t]/n}(b,_,e)}let H=B+N;!function(e,t,r,n,a,o){for(let t=0;t<e.length;t++){let r=e[t];r.at>a&&r.at<o&&((0,i.removeItem)(e,r),t--)}for(let i=0;i<t.length;i++)e.push({value:t[i],at:(0,C.mixNumber)(a,o,n[i]),easing:x(r,i)})}(n,v,R,b,B,H),O=Math.max(T+N,O),k=Math.max(H,k)};if((0,l.isMotionValue)(g))I(_,P,S("default",M(g,v)));else{let e=b(g,_,n,y),t=e.length;for(let r=0;r<t;r++){let n=M(e[r],v);for(let e in _){var N,T;I(_[e],(N=P,T=e,N&&N[T]?{...N,...N[T]}:{...N}),S(e,n),r,t)}}}R=E,E+=O}return v.forEach((e,n)=>{for(let i in e){let a=e[i];a.sort(_);let o=[],l=[],s=[];for(let e=0;e<a.length;e++){let{at:t,value:r,easing:n}=a[e];o.push(r),l.push((0,h.progress)(0,k,t)),s.push(n||"easeOut")}0!==l[0]&&(l.unshift(0),o.unshift(o[0]),s.unshift("easeInOut")),1!==l[l.length-1]&&(l.push(1),o.push(null)),g.has(n)||g.set(n,{keyframes:{},transition:{}});let u=g.get(n);u.keyframes[i]=o;let{type:c,...d}=t;u.transition[i]={...d,duration:k,ease:s,times:l,...r}}}),g})(e.map(e=>{if(Array.isArray(e)&&"function"==typeof e[0]){let t=e[0],r=(0,a.motionValue)(0);return(r.on("change",t),1===e.length)?[r,[0,1]]:2===e.length?[r,[0,1],e[1]]:[r,e[1],e[2]]}return e}),A,t,{spring:o.spring}).forEach(({keyframes:e,transition:t},n)=>{r.push(...D(n,e,t))}),E=r}else{let{onComplete:r,...n}=y||{};"function"==typeof r&&(R=r),E=D(e,v,{...k,...n},t)}let N=new n(E);return R&&N.finished.then(R),t&&(t.animations.push(N),N.finished.then(()=>{(0,i.removeItem)(t.animations,N)})),N}}let L=z();e.s(["animate",0,L,"createScopedAnimate",0,z],107398)},83297,393099,e=>{"use strict";var t=e.i(672357),r=e.i(712954),n=e.i(706221),i=e.i(145373),a=e.i(811828),o=e.i(358557);function l(e){let t=(0,o.useConstant)(()=>(0,n.motionValue)(e)),{isStatic:r}=(0,i.useContext)(a.MotionConfigContext);if(r){let[,r]=(0,i.useState)(e);(0,i.useEffect)(()=>t.on("change",r),[])}return t}e.s(["useMotionValue",0,l],393099),e.s(["useCombineMotionValues",0,function(e,n){let i=l(n()),a=()=>i.set(n());return a(),(0,r.useIsomorphicLayoutEffect)(()=>{let r=()=>t.frame.preRender(a,!1,!0),n=e.map(e=>e.on("change",r));return()=>{n.forEach(e=>e()),(0,t.cancelFrame)(a)}}),i}],83297)},317128,e=>{"use strict";var t=e.i(140926),r=e.i(83297);e.s(["useMotionTemplate",0,function(e,...n){let i=e.length;return(0,r.useCombineMotionValues)(n.filter(t.isMotionValue),function(){let r="";for(let a=0;a<i;a++){r+=e[a];let i=n[a];i&&(r+=(0,t.isMotionValue)(i)?i.get():i)}return r})}])},735303,827237,e=>{"use strict";var t=e.i(546711),r=e.i(218885),n=e.i(413830),i=e.i(432245),a=e.i(734840),o=e.i(632137);let l="px-3.5";e.s(["DISCOVER_CONTENT_PX",0,l,"PAGE_SIZE",0,15,"STALE_TIME_MS",0,3e5],827237);var s=e.i(164233);e.s(["ListItem",0,function(e){let u,c,d,h,f,m,p,g,x,v,y,b,w,C,_,M,S,A,j,R=(0,r.c)(50),{mind:E,rank:k,href:N,onNavigate:T}=e;R[0]!==E?(u=(0,s.getMindDisplayName)(E),R[0]=E,R[1]=u):u=R[1];let P=u,O=N??`/${E.slug}`,I=E.question?`/${E.slug}/chat?prompt=${encodeURIComponent(E.question)}`:null,B=E.question?"md:h-[88px] md:[contain-intrinsic-size:auto_88px]":"h-[72px] justify-center [contain-intrinsic-size:auto_72px]";return R[2]!==B?(c=(0,o.cn)(l,"group relative flex cursor-pointer flex-col gap-1.5 rounded-3xl py-3","md:flex-row md:items-center md:gap-4 md:py-3","text-fg-mid hover:text-fg-high","hover:bg-sand-9/7 active:bg-sand-9/4","transition-colors","[content-visibility:auto]",B),R[2]=B,R[3]=c):c=R[3],R[4]===Symbol.for("react.memo_cache_sentinel")?(d=["nav-forward"],R[4]=d):d=R[4],R[5]!==T?(h=()=>T?.("profile"),R[5]=T,R[6]=h):h=R[6],R[7]!==O||R[8]!==P||R[9]!==h?(f=(0,t.jsx)(n.AttributionLink,{href:O,transitionTypes:d,"aria-label":P,onClick:h,className:"absolute inset-0 z-0 rounded-3xl focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"}),R[7]=O,R[8]=P,R[9]=h,R[10]=f):f=R[10],R[11]!==P||R[12]!==E.imageUrl?(m=E.imageUrl?(0,t.jsx)(i.AvatarImage,{src:E.imageUrl,alt:P}):null,R[11]=P,R[12]=E.imageUrl,R[13]=m):m=R[13],R[14]!==E?(p=(0,s.getMindInitials)(E),R[14]=E,R[15]=p):p=R[15],R[16]!==p?(g=(0,t.jsx)(i.AvatarFallback,{children:p}),R[16]=p,R[17]=g):g=R[17],R[18]!==m||R[19]!==g?(x=(0,t.jsxs)(i.Avatar,{size:"5xl",className:"shadow-[0_10px_10px_0_rgba(0,0,0,0.1),0_4px_4px_-2px_rgba(0,0,0,0.1),0_2px_2px_-1px_rgba(0,0,0,0.03),0_1px_1px_-0.5px_rgba(0,0,0,0.05),inset_0_1px_2px_0_rgba(255,255,255,0.5),inset_0_-1px_2px_0_rgba(255,255,255,0.4)]",children:[m,g]}),R[18]=m,R[19]=g,R[20]=x):x=R[20],R[21]!==k?(v=void 0!==k?(0,t.jsx)("span",{"aria-label":`Rank ${k}`,className:(0,o.cn)("absolute -bottom-1 -left-1 flex size-5 items-center justify-center","rounded-full bg-white/90 text-[10px] font-medium tabular-nums tracking-tight text-fg-high backdrop-blur-sm","shadow-[0_0_3px_rgba(0,0,0,0.08),inset_0_1px_1px_0_rgba(255,255,255,0.5),inset_0_-1px_1px_0_rgba(255,255,255,0.2)]","dark:bg-sand-9/4
20 dark:text-white dark:shadow-[0_0_3px_rgba(0,0,0,0.2),inset_0_1px_1px_0_rgba(255,255,255,0.15)]"),children:k}):null,R[21]=k,R[22]=v):v=R[22],R[23]!==x||R[24]!==v?(y=(0,t.jsxs)("div",{className:"relative shrink-0",children:[x,v]}),R[23]=x,R[24]=v,R[25]=y):y=R[25],R[26]!==P?(b=(0,t.jsx)("div",{className:"min-w-0 overflow-hidden",children:(0,t.jsx)("span",{className:"block min-w-0 truncate font-heading text-lg font-medium leading-[1.3] tracking-[-0.18px] text-fg-high",children:P})}),R[26]=P,R[27]=b):b=R[27],R[28]!==E.verified?(w=E.verified?(0,t.jsx)(a.VerifiedBadge,{size:"sm"}):null,R[28]=E.verified,R[29]=w):w=R[29],R[30]!==b||R[31]!==w?(C=(0,t.jsxs)("div",{className:"flex min-w-0 max-w-full items-center gap-1.5 overflow-hidden",children:[b,w]}),R[30]=b,R[31]=w,R[32]=C):C=R[32],R[33]!==E.headline?(_=E.headline?(0,t.jsx)("span",{className:"block w-full min-w-0 truncate text-[15px] leading-[1.3] text-fg-mid",children:E.headline}):null,R[33]=E.headline,R[34]=_):_=R[34],R[35]!==C||R[36]!==_?(M=(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col overflow-hidden",children:[C,_]}),R[35]=C,R[36]=_,R[37]=M):M=R[37],R[38]!==y||R[39]!==M?(S=(0,t.jsxs)("div",{className:"pointer-events-none relative flex min-w-0 shrink-0 items-center gap-4 md:min-w-0 md:flex-1",children:[y,M]}),R[38]=y,R[39]=M,R[40]=S):S=R[40],R[41]!==I||R[42]!==E.question||R[43]!==T?(A=E.question&&I?(0,t.jsx)("div",{className:"relative z-10 mt-1 md:contents",children:(0,t.jsx)(n.AttributionLink,{href:I,transitionTypes:["nav-forward"],onClick:()=>T?.("chat_question"),className:(0,o.cn)("relative z-10 block w-fit max-w-full rounded-2xl px-3.5 py-2 text-left","text-[15px] leading-snug transition-colors","text-fg-mid dark:text-fg-high bg-sand-9/5","group-hover:bg-sand-9/10","hover:bg-sand-9/15 hover:text-fg-high active:bg-sand-9/20","md:-mb-1 md:-mt-1 md:w-fit md:max-w-[440px]","outline-none focus-visible:ring-2 focus-visible:ring-ring/30"),children:(0,t.jsx)("span",{className:"line-clamp-2",children:E.question})})}):null,R[41]=I,R[42]=E.question,R[43]=T,R[44]=A):A=R[44],R[45]!==S||R[46]!==A||R[47]!==c||R[48]!==f?(j=(0,t.jsxs)("div",{className:c,children:[f,S,A]}),R[45]=S,R[46]=A,R[47]=c,R[48]=f,R[49]=j):j=R[49],j},"ListItemSeparator",0,function(){let e,n=(0,r.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("div",{className:"my-1.5 border-t border-subtle sm:hidden","aria-hidden":!0}),n[0]=e):e=n[0],e}],735303)},164233,e=>{"use strict";function t(e){return e.name?.trim()||e.slug}e.s(["getMindDisplayName",0,t,"getMindInitials",0,function(e){return t(e).split(/\s+/).slice(0,2).map(e=>e.charAt(0).toUpperCase()).join("")}])},541059,e=>{"use strict";var t=e.i(546711),r=e.i(218885),n=e.i(779882),i=e.i(591401),a=e.i(981831),o=e.i(619409),l=e.i(403773),s=e.i(632137);let u={above:"absolute inset-x-0 bottom-full z-20 mb-2",inline:"relative"};e.s(["SpeechNoticeBar",0,function(e){let c,d,h,f,m=(0,r.c)(12),{className:p,notice:g,onDismiss:x,placement:v}=e,y=void 0===v?"above":v,b=u[y],w="inline"===y&&g&&"my-2";return m[0]!==p||m[1]!==b||m[2]!==w?(c=(0,s.cn)("pointer-events-none flex justify-center px-2",b,w,p),m[0]=p,m[1]=b,m[2]=w,m[3]=c):c=m[3],m[4]!==g||m[5]!==x?(d=g?(0,t.jsxs)(i.motion.div,{animate:{opacity:1,scale:1,y:0},className:(0,s.cn)("pointer-events-auto flex max-w-full items-center gap-1.5 py-1.5 pl-3 pr-1.5 text-sm","rounded-2xl border border-loud bg-surface-primary shadow-md dark:shadow-none"),exit:{opacity:0,scale:.9,y:8},initial:{opacity:0,scale:.9,y:8},role:"error"===g.tone?"alert":"status",transition:{type:"spring",stiffness:500,damping:30},children:[(0,t.jsx)("span",{className:(0,s.cn)("min-w-0 text-pretty","error"===g.tone?"text-fg-error":"text-fg-mid"),children:g.message}),g.action?(0,t.jsxs)(a.Button,{className:"shrink-0",disabled:g.pending,size:"xs",type:"button",variant:"ghost",onClick:g.action.onClick,children:[g.pending?(0,t.jsx)(o.LoadingSpinnerIcon,{"aria-hidden":!0,className:"animate-spin"}):null,g.action.label]}):null,(0,t.jsx)(a.Button,{"aria-label":"Dismiss",className:"shrink-0",size:"icon-xs",type:"button",variant:"ghost",onClick:x,children:(0,t.jsx)(l.XmarkIcon,{"aria-hidden":!0})})]}):null,m[4]=g,m[5]=x,m[6]=d):d=m[6],m[7]!==d?(h=(0,t.jsx)(n.AnimatePresence,{initial:!1,children:d}),m[7]=d,m[8]=h):h=m[8],m[9]!==c||m[10]!==h?(f=(0,t.jsx)("div",{className:c,children:h}),m[9]=c,m[10]=h,m[11]=f):f=m[11],f}])},219408,e=>{"use strict";e.s(["TRANSCRIPTION_TIMEOUT_MS",0,25e4,"transcriptionRequestOptions",0,{networkMode:"always"}])},766848,e=>{"use strict";var t=e.i(218885),r=e.i(145373),n=e.i(831543);e.s(["useSpeechNotice",0,function(){let e,i,a,o,l,s,u=(0,t.c)(10),[c,d]=(0,r.useState)("idle"),[h,f]=(0,r.useState)(null);u[0]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{d(e),("recording"===e||"idle"===e)&&f(null)},u[0]=e):e=u[0];let m=e;u[1]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{let t,r;f((t="transcription"===e.reason?(0,n.parseVisibleError)(e.error):null,r=e.canRetry&&t?.code!=="invalid_format",{message:function(e,t){switch(e.reason){case"microphone":return"Can't reach your microphone. Allow access, then record again.";case"recording-too-long":return"That recording was too long to send. Try a shorter one.";case"recording-unreadable":return"Couldn't read that recording. Record it again.";case"transcription":return t?.message??"Couldn't turn that recording into text."}}(e,t),tone:"error",...r?{action:{label:"Try again",onClick:e.retry}}:void 0}))},u[1]=i):i=u[1];let p=i;u[2]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{f({message:"Stopped at the longest recording we can send.",tone:"info"})},u[2]=a):a=u[2];let g=a;u[3]===Symbol.for("react.memo_cache_sentinel")?(o=()=>f(null),u[3]=o):o=u[3];let x=o;return u[4]!==h||u[5]!==c?(l=h?{...h,pending:"processing"===c}
2:null,u[4]=h,u[5]=c,u[6]=l):l=u[6],u[7]!==c||u[8]!==l?(s={dismiss:x,notice:l,onLimitReached:g,onStateChange:m,onTranscriptionError:p,state:c},u[7]=c,u[8]=l,u[9]=s):s=u[9],s}],766848)},184055,e=>{"use strict";var t,r=e.i(546711),n=e.i(218885),i=e.i(145373),a=e.i(291967),o=e.i(543250),l=e.i(417256),s=e.i(967928),u=e.i(638154),c=e.i(332374),d=e.i(190088),h=e.i(980939),f=e.i(348989),m="HoverCard",[p,g]=(0,o.createContextScope)(m,[u.createPopperScope]),x=(0,u.createPopperScope)(),[v,y]=p(m),b=e=>{let{__scopeHoverCard:t,children:n,open:a,defaultOpen:o,onOpenChange:s,openDelay:c=700,closeDelay:d=300}=e,h=x(t),f=i.useRef(0),p=i.useRef(0),g=i.useRef(!1),y=i.useRef(!1),[b,w]=(0,l.useControllableState)({prop:a,defaultProp:o??!1,onChange:s,caller:m}),C=i.useCallback(()=>{clearTimeout(p.current),f.current=window.setTimeout(()=>w(!0),c)},[c,w]),_=i.useCallback(()=>{clearTimeout(f.current),g.current||y.current||(p.current=window.setTimeout(()=>w(!1),d))},[d,w]),M=i.useCallback(()=>w(!1),[w]);return i.useEffect(()=>()=>{clearTimeout(f.current),clearTimeout(p.current)},[]),(0,r.jsx)(v,{scope:t,open:b,onOpenChange:w,onOpen:C,onClose:_,onDismiss:M,hasSelectionRef:g,isPointerDownOnContentRef:y,children:(0,r.jsx)(u.Root,{...h,children:n})})};b.displayName=m;var w="HoverCardTrigger",C=i.forwardRef((e,t)=>{let{__scopeHoverCard:n,...i}=e,o=y(w,n),l=x(n);return(0,r.jsx)(u.Anchor,{asChild:!0,...l,children:(0,r.jsx)(h.Primitive.a,{"data-state":o.open?"open":"closed",...i,ref:t,onPointerEnter:(0,a.composeEventHandlers)(e.onPointerEnter,N(o.onOpen)),onPointerLeave:(0,a.composeEventHandlers)(e.onPointerLeave,N(o.onClose)),onFocus:(0,a.composeEventHandlers)(e.onFocus,o.onOpen),onBlur:(0,a.composeEventHandlers)(e.onBlur,o.onClose),onTouchStart:(0,a.composeEventHandlers)(e.onTouchStart,e=>e.preventDefault())})})});C.displayName=w;var _="HoverCardPortal",[M,S]=p(_,{forceMount:void 0}),A=e=>{let{__scopeHoverCard:t,forceMount:n,children:i,container:a}=e,o=y(_,t);return(0,r.jsx)(M,{scope:t,forceMount:n,children:(0,r.jsx)(d.Presence,{present:n||o.open,children:(0,r.jsx)(c.Portal,{asChild:!0,container:a,children:i})})})};A.displayName=_;var j="HoverCardContent",R=i.forwardRef((e,t)=>{let n=S(j,e.__scopeHoverCard),{forceMount:i=n.forceMount,...o}=e,l=y(j,e.__scopeHoverCard);return(0,r.jsx)(d.Presence,{present:i||l.open,children:(0,r.jsx)(E,{"data-state":l.open?"open":"closed",...o,onPointerEnter:(0,a.composeEventHandlers)(e.onPointerEnter,N(l.onOpen)),onPointerLeave:(0,a.composeEventHandlers)(e.onPointerLeave,N(l.onClose)),ref:t})})});R.displayName=j;var E=i.forwardRef((e,n)=>{let{__scopeHoverCard:o,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:h,...m}=e,p=y(j,o),g=x(o),v=i.useRef(null),b=(0,s.useComposedRefs)(n,v),[w,C]=i.useState(!1);return i.useEffect(()=>{if(w){let e=document.body;return t=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=t,e.style.webkitUserSelect=t}}},[w]),i.useEffect(()=>{if(v.current){let e=()=>{C(!1),p.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(p.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),p.hasSelectionRef.current=!1,p.isPointerDownOnContentRef.current=!1}}},[p.isPointerDownOnContentRef,p.hasSelectionRef]),i.useEffect(()=>{v.current&&(function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;r.nextNode();)t.push(r.currentNode);return t})(v.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,r.jsx)(f.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:h,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:(0,a.composeEventHandlers)(d,e=>{e.preventDefault()}),onDismiss:p.onDismiss,children:(0,r.jsx)(u.Content,{...g,...m,onPointerDown:(0,a.composeEventHandlers)(m.onPointerDown,e=>{e.currentTarget.contains(e.target)&&C(!0),p.hasSelectionRef.current=!1,p.isPointerDownOnContentRef.current=!0}),ref:b,style:{...m.style,userSelect:w?"text":void 0,WebkitUserSelect:w?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),k=i.forwardRef((e,t)=>
2{let{__scopeHoverCard:n,...i}=e,a=x(n);return(0,r.jsx)(u.Arrow,{...a,...i,ref:t})});function N(e){return t=>"touch"===t.pointerType?void 0:e()}k.displayName="HoverCardArrow",e.s(["Arrow",0,k,"Content",0,R,"HoverCard",0,b,"HoverCardArrow",0,k,"HoverCardContent",0,R,"HoverCardPortal",0,A,"HoverCardTrigger",0,C,"Portal",0,A,"Root",0,b,"Trigger",0,C,"createHoverCardScope",0,g],662250);var T=e.i(662250),T=T,P=e.i(632137),O=e.i(280855);e.s(["HoverCard",0,function(e){let t,i,a=(0,n.c)(4);return a[0]!==e?({...t}=e,a[0]=e,a[1]=t):t=a[1],a[2]!==t?(i=(0,r.jsx)(T.Root,{"data-slot":"hover-card",...t}),a[2]=t,a[3]=i):i=a[3],i},"HoverCardContent",0,function(e){let t,i,a,o,l,s,u=(0,n.c)(12);u[0]!==e?({className:t,align:a,sideOffset:o,...i}=e,u[0]=e,u[1]=t,u[2]=i,u[3]=a,u[4]=o):(t=u[1],i=u[2],a=u[3],o=u[4]);let c=void 0===a?"center":a,d=void 0===o?6:o;return u[5]!==t?(l=(0,P.cn)("z-50 w-72","rounded-2xl p-4","text-sm text-fg-high","origin-(--radix-hover-card-content-transform-origin)","outline-none",O.glass.frosted,"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95","data-[side=top]:slide-in-from-bottom-2","data-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2",t),u[5]=t,u[6]=l):l=u[6],u[7]!==c||u[8]!==i||u[9]!==d||u[10]!==l?(s=(0,r.jsx)(T.Portal,{children:(0,r.jsx)(T.Content,{"data-slot":"hover-card-content",align:c,sideOffset:d,className:l,...i})}),u[7]=c,u[8]=i,u[9]=d,u[10]=l,u[11]=s):s=u[11],s},"HoverCardTrigger",0,function(e){let t,i,a=(0,n.c)(4);return a[0]!==e?({...t}=e,a[0]=e,a[1]=t):t=a[1],a[2]!==t?(i=(0,r.jsx)(T.Trigger,{"data-slot":"hover-card-trigger",...t}),a[2]=t,a[3]=i):i=a[3],i}],184055)},653065,e=>{"use strict";var t=e.i(546711),r=e.i(632137),n=e.i(145373);function i(e,t,r){let n=new Uint8Array(e.fftSize);e.getByteTimeDomainData(n);let i=Math.max(1,Math.floor(t/2)),a=Math.max(1,Math.floor(n.length/i)),o=[],l=(e,t)=>{let i=0;for(let r=e;r<t;r++){let e=Math.abs((n[r]??128)-128)/128;e>i&&(i=e)}return Math.max(.05,Math.min(1,i*r))};for(let e=i-1;e>=0;e--){let t=e*a;o.push(l(t,Math.min(n.length,t+a)))}for(let e=0;e<i;e++){let t=e*a;o.push(l(t,Math.min(n.length,t+a)))}return o}function a(e){return e&&"transparent"!==e&&"rgba(0, 0, 0, 0)"!==e?e:null}e.s(["LiveWaveform",0,({active:e=!1,processing:o=!1,stream:l=null,deviceId:s,barWidth:u=3,barGap:c=1,barRadius:d=1.5,barColor:h,barClassName:f,dotClassName:m,fadeEdges:p=!0,fadeWidth:g=24,barHeight:x=4,height:v=64,sensitivity:y=1,smoothingTimeConstant:b=.8,fftSize:w=256,historySize:C=60,updateRate:_=30,mode:M="static",analyzer:S="frequency",onError:A,onStreamReady:j,onStreamEnd:R,className:E,...k})=>{let N=(0,n.useRef)(null),T=(0,n.useRef)(null),P=(0,n.useRef)(null),O=(0,n.useRef)(null),I=(0,n.useRef)([]),B=(0,n.useRef)(null),F=(0,n.useRef)(null),H=(0,n.useRef)(null),V=(0,n.useRef)(!1),D=(0,n.useRef)(0),z=(0,n.useRef)(0),L=(0,n.useRef)(null),q=(0,n.useRef)([]),U=(0,n.useRef)(0),G=(0,n.useRef)([]),$=(0,n.useRef)(!0),W=(0,n.useRef)(null),K=(0,n.useRef)(0);(0,n.useEffect)(()=>{let e=N.current,t=T.current;if(!e||!t)return;let r=new ResizeObserver(()=>{let r=t.getBoundingClientRect(),n=window.devicePixelRatio||1;e.width=r.width*n,e.height=r.height*n,e.style.width=`${r.width}px`,e.style.height=`${r.height}px`;let i=e.getContext("2d");i&&(i.setTransform(1,0,0,1,0,0),i.scale(n,n)),W.current=null,K.current=r.width,$.current=!0});return r.observe(t),()=>r.disconnect()},[]),(0,n.useEffect)(()=>{if(o&&!e){let e={current:0};U.current=0;let t=()=>{e.current+=.03,U.current=Math.min(1,U.current+.02);let r=[],n=Math.floor((T.current?.getBoundingClientRect().width||200)/(u+c));if("static"===M){let t=Math.floor(n/2);for(let i=0;i<n;i++){let n=(i-t)/Math.max(1,t),a=1-.4*Math.abs(n),o=(.2+(.25*Math.sin(1.5*e.current+3*n)+.2*Math.sin(.8*e.current-2*n)+.15*Math.cos(2*e.current+n)))*a,l=o;if(q.current.length>0&&U.current<1){let e=Math.min(i,q.current.length-1);l=(q.current[e]??0)*(1-U.current)+o*U.current}r.push(Math.max(.05,Math.min(1,l)))}}else for(let t=0;t<n;t++){let i=1-.4*Math.abs((t-n/2)/(n/2)),a=(.2+(.25*Math.sin(1.5*e.current+.15*t)+.2*Math.sin(.8*e.current-.1*t)+.15*Math.cos(2*e.current+.05*t)))*i,o=a;if(q.current.length>0&&U.current<1){let e=Math.floor(t/n*q.current.length);o=(q.current[e]??0)*(1-U.current)+a*U.current}r.push(Math.max(.05,Math.min(1,o)))}"static"===M?G.current=r:I.current=r,$.current=!0,L.current=requestAnimationFrame(t)};return t(),()=>{L.current&&cancelAnimationFrame(L.current)}}if(!e&&!o&&("static"===M?G.current.length>0:I.current.length>0)){let e=0,t=()=>{(e+=.03)<1?("static"===M?G.current=G.current.map(t=>t*(1-e)):I.current=I.current.map(t=>t*(1-e)),$.current=!0,requestAnimationFrame(t)):"static"===M?G.current=[]:I.current=[]};t()}},[e,c,u,M,o]),(0,n.useEffect)(()=>{let t=()=>{if(V.current&&H.current){for(let e of H.current.getTracks())e.stop();H.current=null,V.current=!1,R?.()}},r=()=>{B.current=null,F.current&&"closed"!==F.current.state&&(F.current.close(),F.current=null),D.current&&(cancelAnimationFrame(D.current),D.current=0)};if(!e){t(),V.current||(H.current=null),r();return}let n=!1,i=async(e,t)=>{let r=window.AudioContext?window.AudioContext:"webkitAudioContext"in window?window.webkitAudioContext:void 0;if(!r)throw Error("AudioContext is not available");let i=new r,a=i.createAnalyser();if(a.fftSize=w,a.smoothingTimeConstant=b,i.createMediaStreamSource(e).connect(a),n){"closed"!==i.state&&i.close();return}H.current=e,V.current=t,F.current=i,B.current=a,t&&j?.(e),"suspended"===i.state&&await i.resume(),I.current=[],G.current=[],$.current=!0};return(async()=>{try{if(l)return void await i(l,!1);let e=await navigator.mediaDevices.getUserMedia({audio:s?{autoGainControl:!0,deviceId:{exact:s},echoCancellation:!0,noiseSuppression:!0}:{autoGainControl:!0,echoCancellation:!0,noiseSuppression:!0}});await i(e,!0)}catch(e){A?.(e)}})(),()=>{n=!0,t(),H.current=null,r()}},[e,s,l,w,A,R,j,b]),(0,n.useEffect)(()=>{let t,r=N.current;if(!r)return;let n=r.getContext("2d");if(!n)return;let l=s=>{let f,m,v,b=r.getBoundingClientRect(),w=F.current;if(e&&w?.state==="suspended"&&w.resume(),e&&s-z.current>_&&(z.current=s,B.current)){let e=Math.floor(b.width/(u+c));if("static"===M)if("time-domain"===S){let t=i(B.current,e,y);G.current=t,q.current=t}else{let t=new Uint8Array(B.current.frequencyBinCount);B.current.getByteFrequencyData(t);let r=Math.floor(.05*t.length),n=Math.floor(.4*t.length),i=t.slice(r,n),a=Math.floor(e/2),o=[];for(let e=a-1;e>=0;
2e--){let t=Math.floor(e/Math.max(1,a)*i.length),r=Math.min(1,(i[t]??0)/255*y);o.push(Math.max(.05,r))}for(let e=0;e<a;e++){let t=Math.floor(e/Math.max(1,a)*i.length),r=Math.min(1,(i[t]??0)/255*y);o.push(Math.max(.05,r))}G.current=o,q.current=o}else if("time-domain"===S){let t=i(B.current,e,y),r=0;for(let e of t)r+=e;let n=r/Math.max(1,t.length);I.current.push(n),q.current=[...I.current];let a=Math.max(C,e);I.current.length>a&&I.current.shift()}else{let t=new Uint8Array(B.current.frequencyBinCount);B.current.getByteFrequencyData(t);let r=Math.floor(.05*t.length),n=Math.floor(.4*t.length),i=t.slice(r,n),a=0;for(let e=0;e<i.length;e++)a+=i[e]??0;let o=a/Math.max(1,i.length)/255*y;I.current.push(Math.min(1,Math.max(.05,o))),q.current=[...I.current];let l=Math.max(C,e);I.current.length>l&&I.current.shift()}$.current=!0}if(!$.current&&!e){t=requestAnimationFrame(l);return}$.current=e,n.clearRect(0,0,b.width,b.height);let A=h||(f=O.current?getComputedStyle(O.current):null,m=P.current?getComputedStyle(P.current):null,v=getComputedStyle(r),a(f?.backgroundColor)||a(f?.color)||a(m?.backgroundColor)||a(m?.color)||a(v.color)||"#000"),j=u+c,R=Math.floor(b.width/j),E=b.height/2;
2if("static"===M){let t=o||e||G.current.length>0?G.current:[];for(let e=0;e<R&&e<t.length;e++){let r=t[e]??.1,i=e*j,a=Math.max(x,r*b.height*.8),o=E-a/2;n.fillStyle=A,n.globalAlpha=.4+.6*r,d>0?(n.beginPath(),n.roundRect(i,o,u,a,d),n.fill()):n.fillRect(i,o,u,a)}}else{let e=I.current,t=e.length;for(let r=0;r<R;r++){let i=t-1-r,a=i>=0?e[i]??.05:.05,o=b.width-(r+1)*j,l=Math.max(x,a*b.height*.8),s=E-l/2;n.fillStyle=A,n.globalAlpha=.4+.6*a,d>0?(n.beginPath(),n.roundRect(o,s,u,l,d),n.fill()):n.fillRect(o,s,u,l)}}if(p&&g>0&&b.width>0){if(!W.current||K.current!==b.width){let e=n.createLinearGradient(0,0,b.width,0),t=Math.min(.3,g/b.width);e.addColorStop(0,"rgba(255,255,255,1)"),e.addColorStop(t,"rgba(255,255,255,0)"),e.addColorStop(1-t,"rgba(255,255,255,0)"),e.addColorStop(1,"rgba(255,255,255,1)"),W.current=e,K.current=b.width}n.globalCompositeOperation="destination-out",n.fillStyle=W.current,n.fillRect(0,0,b.width,b.height),n.globalCompositeOperation="source-over"}n.globalAlpha=1,t=requestAnimationFrame(l)};return t=requestAnimationFrame(l),()=>{t&&cancelAnimationFrame(t)}},[e,h,c,d,u,x,p,g,C,M,o,S,y,_]);let X=e?"Live audio waveform":o?"Processing audio":"Audio waveform idle";return(0,t.jsxs)("div",{ref:T,className:(0,r.cn)("relative h-full w-full",E),style:{height:v},role:"img","aria-label":X,...k,children:[(f||m)&&(0,t.jsx)("span",{ref:P,className:(0,r.cn)("pointer-events-none absolute size-0 overflow-hidden opacity-0",f),"aria-hidden":!0,children:(0,t.jsx)("span",{ref:O,className:m})}),e||o?null:(0,t.jsx)("div",{className:"border-muted-foreground/20 absolute top-1/2 right-0 left-0 -translate-y-1/2 border-t-2 border-dotted"}),(0,t.jsx)("canvas",{className:"block h-full w-full",ref:N})]})}])},734840,e=>{"use strict";var t=e.i(546711),r=e.i(218885),n=e.i(145373),i=e.i(632137);e.s(["VerifiedBadge",0,function(e){let a,o,l,s,u,c,d,h,f,m,p,g,x,v,y,b,w,C,_,M,S,A=(0,r.c)(29),{size:j,className:R}=e,E=(0,n.useId)(),k="sm"===(void 0===j?"sm":j)?"size-3.5":"size-5";A[0]!==R||A[1]!==k?(a=(0,i.cn)("inline-flex shrink-0",k,R),A[0]=R,A[1]=k,A[2]=a):a=A[2],A[3]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)("ellipse",{cx:9.223,cy:9.998,fill:"#fff",rx:5.406,ry:5.413}),A[3]=o):o=A[3];let N=`url(#${E})`;return A[4]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)("path",{fill:"#07F",fillRule:"evenodd",d:"M7.914.864a2.95 2.95 0 0 1 4.172 0l.983.983a.98.98 0 0 0 .695.288h1.152a2.95 2.95 0 0 1 2.95 2.95v1.151c0 .26.103.511.287.695l.983.983a2.95 2.95 0 0 1 0 4.172l-.983.983a.98.98 0 0 0-.288.695v1.152a2.95 2.95 0 0 1-2.95 2.95h-1.151c-.26 0-.511.103-.695.287l-.984.983a2.95 2.95 0 0 1-4.17 0l-.984-.983a.98.98 0 0 0-.695-.288H5.084a2.95 2.95 0 0 1-2.95-2.95v-1.151c0-.26-.103-.511-.287-.695l-.983-.984a2.95 2.95 0 0 1 0-4.17l.983-.984a.98.98 0 0 0 .288-.695V5.084a2.95 2.95 0 0 1 2.95-2.95h1.151c.26 0 .511-.103.695-.287zm5.35 7.488a.983.983 0 1 0-1.611-1.128L8.84 11.242l-1.142-.999a.983.983 0 0 0-1.295 1.48l1.967 1.72a.983.983 0 0 0 1.452-.176z",clipRule:"evenodd"}),A[4]=l):l=A[4],A[5]!==N?(s=(0,t.jsx)("g",{filter:N,children:l}),A[5]=N,A[6]=s):s=A[6],A[7]===Symbol.for("react.memo_cache_sentinel")?(w=(0,t.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),C=(0,t.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),u=(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),c=(0,t.jsx)("feOffset",{dy:1.348}),d=(0,t.jsx)("feGaussianBlur",{stdDeviation:.674}),h=(0,t.jsx)("feComposite",{in2:"hardAlpha",k2:-1,k3:1,operator:"arithmetic"}),f=(0,t.jsx)("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.2 0"}),m=(0,t.jsx)("feBlend",{in2:"shape",result:"effect1_innerShadow_2396_5222"}),p=(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),g=(0,t.jsx)("feOffset",{dy:-1.348}),x=(0,t.jsx)("feGaussianBlur",{stdDeviation:.674}),v=(0,t.jsx)("feComposite",{in2:"hardAlpha",k2:-1,k3:1,operator:"arithmetic"}),y=(0,t.jsx)("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.2 0"}),b=(0,t.jsx)("feBlend",{in2:"effect1_innerShadow_2396_5222",result:"effect2_innerShadow_2396_5222"}),A[7]=u,A[8]=c,A[9]=d,A[10]=h,A[11]=f,A[12]=m,A[13]=p,A[14]=g,A[15]=x,A[16]=v,A[17]=y,A[18]=b,A[19]=w,A[20]=C):(u=A[7],c=A[8],d=A[9],h=A[10],f=A[11],m=A[12],p=A[13],g=A[14],x=A[15],v=A[16],y=A[17],b=A[18],w=A[19],C=A[20]),A[21]!==E?(_=(0,t.jsx)("defs",{children:(0,t.jsxs)("filter",{id:E,width:20,height:22.696,x:0,y:-1.348,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[w,C,u,c,d,h,f,m,p,g,x,v,y,b]})}
2),A[21]=E,A[22]=_):_=A[22],A[23]!==_||A[24]!==s?(M=(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",fill:"none",className:"size-full",children:[o,s,_]}),A[23]=_,A[24]=s,A[25]=M):M=A[25],A[26]!==M||A[27]!==a?(S=(0,t.jsx)("span",{role:"img","aria-label":"Verified",className:a,children:M}),A[26]=M,A[27]=a,A[28]=S):S=A[28],S}])}]);
3
4//# debugId=c7238457-0372-376b-1c4d-088a628189a3

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.