!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a092e1-ef60-70d2-94cf-fb8b070fda1f")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,232862,e=>{"use strict";var t=e.i(270401),r=e.i(546600),n=e.i(650396);e.s(["useReducedMotion",0,function(){n.hasReducedMotionListener.current||(0,r.initPrefersReducedMotion)();let[e]=(0,t.useState)(n.prefersReducedMotion.current);return e}])},622717,733800,787020,283616,224035,805760,161256,e=>{"use strict";var t=e.i(222666),r=e.i(553215);let n=[{id:"skills",label:"Agent tasks",question:"What work does your agent do?",layout:"grid",group:{answerId:"skills",label:"Tasks",options:["Writing code","Code review","Research","Data analysis","Reports and summaries","Drafting content","Issue and inbox triage","Testing and QA"],exclusiveOptions:["No agent yet"],otherLabel:"Other task"}},{id:"instructions",label:"Instructions",question:"Where do you save your agent’s instructions?",layout:"list",group:{answerId:"skills",label:"Saved instructions",options:["Files in a repository","Prompts / templates","Agent settings","Per-task instructions"],exclusiveOptions:["No saved instructions"],otherLabel:"Other way to save instructions"}},{id:"connections",label:"Connections",question:"Which apps and data can your agent access?",layout:"grid",group:{answerId:"connections",label:"Apps and data sources",options:["GitHub","GitLab","Slack","Microsoft Teams","Linear","Jira","Notion","Confluence","Google Workspace","Databases","Data warehouses","Internal APIs"],exclusiveOptions:["No connections yet"],otherLabel:"Other connection"}},{id:"secrets",label:"Credentials",question:"How does your agent sign in to tools?",layout:"list",group:{answerId:"secrets",label:"Sign-in methods",options:["Environment variables","Secret manager","Connected accounts / OAuth","Credentials per run"],exclusiveOptions:["No credentials needed","Not sure"],otherLabel:"Other access method"}},{id:"stack",label:"Agent software",question:"What software is your agent built with?",layout:"grid",group:{answerId:"stack",label:"Agent software",options:["Claude Code","Codex","OpenCode","Vercel AI SDK","Mastra","LangGraph","OpenAI Agents SDK","A custom agent"],exclusiveOptions:["Not decided yet","Not sure"],otherLabel:"Other agent tool or framework"}},{id:"build",label:"Action tools",question:"How does your agent take actions?",layout:"list",group:{answerId:"build",label:"Tools for taking actions",options:["MCP servers","Function calling","Command-line tools / scripts","HTTP APIs","Browser / computer control"],exclusiveOptions:["Text responses only","Not sure"],otherLabel:"Other action method"}},{id:"cadence",label:"Task triggers",question:"What starts an agent task?",layout:"list",group:{answerId:"cadence",label:"Task triggers",options:["I start each task","On a schedule","Events / webhooks","Continuous monitoring"],exclusiveOptions:["No agent runs yet"],otherLabel:"Other trigger"}},{id:"deploy",label:"Hosting",question:"Where does your agent run?",layout:"list",group:{answerId:"deploy",label:"Runs on",options:["My computer","A cloud VM / server","Serverless functions","Containers / Kubernetes","A hosted agent platform"],exclusiveOptions:["Not deployed yet","Not sure"],otherLabel:"Other hosting setup"}}],a="freeform";e.s(["FREEFORM_ANSWER_ID",0,a,"QUESTIONS",0,n],733800),n.length;var i=e.i(81174),s=e.i(693697),o=e.i(839669),l=e.i(270401),c=e.i(998237);e.i(204067);var d=e.i(796805);let m="ori_waitlist_invalid_email",u=d.z.union([d.z.string().max(4e3),d.z.array(d.z.string().max(200)).max(64)]);d.z.object({email:d.z.string().trim().toLowerCase().email().max(254).openapi({description:"Email address to add to the /ori waitlist; normalized to lower(trim())",example:"dev@example.com"}),answers:d.z.record(d.z.string().max(64),u).refine(e=>Object.keys(e).length<=32,{message:"answers must have at most 32 keys"}).optional().openapi({description:"Questionnaire answers keyed by question id; omitted on the email-only submit",example:{skills:["mcp servers"],freeform:"notes"}})}).openapi("JoinOriWaitlistRequest");let h=d.z.object({data:d.z.object({joined:d.z.literal(!0).openapi({description:"The email is on the waitlist"})})}).openapi("JoinOriWaitlistResponse");e.s(["JoinOriWaitlistResponseSchema",0,h,"MAX_FREEFORM_LENGTH",0,4e3,"MAX_KEYWORDS_PER_ANSWER",0,64,"ORI_WAITLIST_INVALID_EMAIL_ERROR_CODE",0,m],787020);let x=[...new Set(n.map(e=>e.group.answerId)),a];function p(e,t){let r=e[t.answerId],n=`${t.otherLabel}: `;return Array.isArray(r)?r.filter(e=>e.startsWith(n)).map(e=>e.slice(n.length)):[]}function f(e,{group:t,option:r}){let n=e[t.answerId],a=Array.isArray(n)?n:[];if(a.includes(r))return{...e,[t.answerId]:a.filter(e=>e!==r)};let i=t.exclusiveOptions.includes(r),s=a.filter(e=>i?!t.options.includes(e)&&!t.exclusiveOptions.includes(e)&&!e.startsWith(`${t.otherLabel}: `):!t.exclusiveOptions.includes(e));return{...e,[t.answerId]:[...s,r]}}function g(e,{group:t,values:r}){let n=e[t.answerId],a=Array.isArray(n)?n:[],i=`${t.otherLabel}: `,s=a.filter(e=>!e.startsWith(i)&&(0===r.length||!t.exclusiveOptions.includes(e)));return{...e,[t.answerId]:[...s,...r.map(e=>`${i}${e}`)]}}function v(e){let t=new Set(n.map(e=>`${e.group.otherLabel}:`));return Object.fromEntries(Object.entries(e).flatMap(([e,r])=>{let n=Array.isArray(r)?r.map(e=>e.trim()).filter(e=>e.length>0&&!t.has(e)):r.trim();return n.length>0?[[e,n]]:[]}))}e.s(["ALL_ANSWER_IDS",0,x],283616),e.s(["MAX_OTHER_LENGTH",0,160,"getOtherAnswers",0,p,"getRemainingAnswerSlots",0,function(e,t){let r=v(e)[t];return 64-(Array.isArray(r)?r.length:0)},"hasQuestionAnswer",0,function(e,t){let r=e[t.answerId];return Array.isArray(r)&&r.some(e=>t.options.includes(e)||t.exclusiveOptions.includes(e))||p(e,t).some(e=>e.trim().length>0)},"prepareQuestionnaireAnswers",0,v,"toggleQuestionOption",0,f,"updateOtherAnswers",0,g],224035);let b=/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/;function y(e){return b.test(e.trim())}e.s(["looksLikeEmail",0,y],805760);var w=e.i(505962),j=e.i(420543),N=e.i(710612);function _(e){return(0,j.requestMutation)("/api/frontend/v1/private/ori-waitlist",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)},h)}var k=e.i(719929);let S={SaveFailed:"save-failed",RejectedEmail:"rejected-email",RateLimited:"rate-limited"};function M(e){return e.status===k.HTTPStatus.S429_Too_Many_Requests?S.RateLimited:e.metadata?.code===m?S.RejectedEmail:S.SaveFailed}e.s(["WaitlistSubmitFailure",0,S,"classifySaveFailure",0,M],161256);let A={Email:"email",Questions:"questions",Done:"done"},R=n.length+1,C=(0,l.createContext)(null);e.s(["WaitlistProvider",0,function({children:e}){let d,m,[u,h]=(0,l.useState)(A.Email),[x,b]=(0,l.useState)(""),[j,k]=(0,l.useState)(!1),[E,T]=(0,l.useState)(!1),[L,O]=(0,l.useState)({}),[I,z]=(0,l.useState)(!1),[W,F]=(0,l.useState)(0),[P,D]=(0,l.useState)(null),H=(0,o.usePostHog)(),{mutate:$}=((m=(0,w.c)(1))[0]===Symbol.for("react.memo_cache_sentinel")?(d={mutationFn:_,invalidates:N.Invalidation.NONE},m[0]=d):d=m[0],(0,N.useAPIMutation)(d)),[B,q]=(0,c.useBooleanLocalStorage)("ori-waitlist-joined",{defaultValue:!1}),V=u===A.Email&&B,U=V?A.Questions:u,Y=(0,l.useRef)(0),Q=(0,l.useRef)({}),X=(0,l.useRef)(!1),K=(0,l.useRef)(!1),G=(0,l.useRef)(!1),J=(0,l.useRef)(null),Z=(0,l.useRef)(W);Z.current=W;let ee=(0,l.useRef)(I);ee.current=I;let et=(0,l.useCallback)(()=>{X.current||(X.current=!0,q(!0),D(null),H?.capture(r.PostHogEvent.OriWaitlistJoined))},[H,q]),er=(0,l.useCallback)((e,t)=>{(0,i.wLog)("ori-waitlist:save-failed",{phase:t,error_status:e.status,error_message:e.message}),H?.capture(r.PostHogEvent.OriWaitlistSaveFailed,{phase:t,error_status:e.status})},[H]),en=(0,l.useCallback)(()=>{if(k(!0),T(!0),!y(x))return!1;if(x===J.current)return D(S.RejectedEmail),!1;D(null),h(A.Questions),z(!0),G.current||(G.current=!0,H?.capture(r.PostHogEvent.OriWaitlistEmailSubmitted)),H?.capture(r.PostHogEvent.OriWaitlistQuestionsOpened,{step:Z.current});let e=++Y.current;return $({email:x}).then(t=>{if((0,s.isOk)(t))return void et();if(er(t.error,"email"),e!==Y.current||X.current)return;ee.current&&H?.capture(r.PostHogEvent.OriWaitlistQuestionsClosed,{step:Z.current}),h(A.Email),z(!1),K.current=!1;let n=M(t.error);n===S.RejectedEmail&&(J.current=x),D(n)}),!0},[x,er,$,et,H]),ea=(0,l.useCallback)(e=>{D(null),b(e)},[]),ei=(0,l.useCallback)(()=>{z(!0),H?.capture(r.PostHogEvent.OriWaitlistQuestionsOpened,{step:W})},[H,W]),es=(0,l.useCallback)(()=>{ee.current&&(z(!1),H?.capture(r.PostHogEvent.OriWaitlistQuestionsClosed,{step:W}))},[H,W]),eo=(0,l.useCallback)(()=>{let e;if(K.current)return;K.current=!0;let t=v(Q.current);h(A.Done),z(!1),H?.capture(r.PostHogEvent.OriWaitlistQuestionsFinished,{answered_count:(e=function(e){let t=new Map(n.map(e=>[e.id,[]])),r=[];for(let[a,i]of Object.entries(e))if(Array.isArray(i))for(let e of i){let i=function(e,t){for(let r of n){if(r.group.answerId!==e)continue;let n=function(e,t){if(e.options.includes(t)||e.exclusiveOptions.includes(t))return{value:t,isCustom:!1};let r=`${e.otherLabel}: `;if(t.startsWith(r)&&""!==t.slice(r.length).trim())return{value:t.slice(r.length),isCustom:!0}}(r.group,t);if(n)return{question:r,answer:n}}}(a,e);if(!i){r.push({answerId:a,value:e});continue}t.get(i.question.id)?.push(i.answer)}let i=e[a];return{questions:n.map(e=>({question:e,answers:t.get(e.id)??[]})),freeform:"string"==typeof i&&""!==i.trim()?i:null,unmapped:r}}(t)).questions.filter(e=>e.answers.length>0).length+ +(null!==e.freeform),last_step:W});let i=Object.keys(t).length>0;if(!i&&X.current)return;let o=Y.current;$(i?{email:x,answers:t}:{email:x}).then(e=>{if((0,s.isOk)(e))return void et();if(er(e.error,"answers"),X.current||o!==Y.current)return;h(A.Email),z(!1),K.current=!1;let t=M(e.error);t===S.RejectedEmail&&(J.current=x),D(t)})},[x,er,$,et,H,W]),el=(0,l.useCallback)(()=>{W>=R-1?eo():F(W+1)},[eo,W]),ec=(0,l.useCallback)(()=>F(e=>Math.max(0,e-1)),[]),ed=(0,l.useCallback)(e=>{F(Math.max(0,Math.min(R-1,e)))},[]),em=(0,l.useCallback)((e,t)=>{let{group:n}=e,a=p(Q.current,n),i=g(Q.current,{group:n,values:t});Q.current=i,O(i),t.some(e=>e.trim())&&!a.some(e=>e.trim())&&H?.capture(r.PostHogEvent.OriWaitlistQuestionAnswered,{question_id:e.id,answer_type:"other"})},[H]),eu=(0,l.useCallback)((e,t)=>{let r={...Q.current,[e]:t};Q.current=r,O(r)},[]),eh=(0,l.useCallback)((e,t)=>{let{group:n}=e,a=Q.current[n.answerId],i=!(Array.isArray(a)?a:[]).includes(t),s=f(Q.current,{group:n,option:t});Q.current=s,O(s),i&&H?.capture(r.PostHogEvent.OriWaitlistQuestionAnswered,{question_id:e.id})},[H]),ex=(0,l.useCallback)(e=>{let t;return t=v(L),e.filter(e=>{let r=t[e];return Array.isArray(r)?r.length>0:"string"==typeof r&&r.trim().length>0}).length},[L]),ep=(0,l.useMemo)(()=>({stage:U,canResumeQuestions:!V,email:x,setEmail:ea,touched:j,setTouched:k,didAttemptSubmit:E,submitEmail:en,submitFailure:P,open:I,openQuestions:ei,close:es,step:W,next:el,back:ec,goToStep:ed,answers:L,setAnswer:eu,toggleAnswer:eh,setOtherAnswers:em,answeredCount:ex,finish:eo}),[U,V,x,ea,j,E,en,P,I,ei,es,W,el,ec,ed,L,eu,eh,em,ex,eo]);return(0,t.jsx)(C.Provider,{value:ep,children:e})},"WaitlistStage",0,A,"useWaitlist",0,function(){let e=(0,l.useContext)(C);if(!e)throw Error("useWaitlist must be used inside WaitlistProvider");return e}],622717)},604518,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(553215),a=e.i(452473),i=e.i(528164),s=e.i(252358),o=e.i(266698),l=e.i(145130),c=e.i(232862),d=e.i(956287);e.i(46897);var m=e.i(449480),u=e.i(600019),h=e.i(724568);function x(e){return"number"==typeof e?e:parseFloat(e)}var p=e.i(270401),f=e.i(978376),g=e.i(445351);function v(e,t={}){let{isStatic:r}=(0,p.useContext)(f.MotionConfigContext),n=()=>(0,u.isMotionValue)(e)?e.get():e;if(r)return(0,g.useTransform)(n);let a=(0,l.useMotionValue)(n());return(0,p.useInsertionEffect)(()=>(function(e,t,r={}){let n,a=e.get(),i=null,s=a,o="string"==typeof a?a.replace(/[\d.-]/g,""):void 0,l=()=>{i&&(i.stop(),i=null),e.animation=void 0},c=()=>{(()=>{let t=x(e.get()),a=x(s);if(t===a)return l();let o=i?i.getGeneratorVelocity():e.getVelocity();l(),i=new m.JSAnimation({keyframes:[t,a],velocity:o,type:"spring",restDelta:.001,restSpeed:.01,...r,onUpdate:n})})(),e.animation=i??void 0,e.events.animationStart?.notify(),i?.then(()=>{e.animation=void 0,e.events.animationComplete?.notify()})};if(e.attach((e,t)=>{s=e,n=e=>{var r,n;return t((r=e,(n=o)?r+n:r))},h.frame.postRender(c)},l),(0,u.isMotionValue)(t)){let n=!0===r.skipInitialAnimation,a=t.on("change",t=>{var r,a,i,s;n?(n=!1,e.jump((r=t,(a=o)?r+a:r),!1)):e.set((i=t,(s=o)?i+s:i))}),i=e.on("destroy",a);return()=>{a(),i()}}return l})(a,e,{type:"spring",...t}),[a,JSON.stringify(t)]),a}var b=e.i(714243),y=e.i(99074),w=e.i(662886),j=e.i(320426),N=e.i(987511),_=e.i(361097);function k(e){return e instanceof Element&&null!==e.closest("a, button, input, textarea, select, [data-overlay-layer], [data-slot=dialog-overlay], [data-slot=dialog-viewport]")}var S=e.i(776571);let M=["·",":","∙","+","*","◆"],A=[3,8,10],R=[118,36,244];function C({className:e}){let r=(0,p.useRef)(null),n=(0,p.useRef)(null),a=(0,c.useReducedMotion)();return(0,p.useEffect)(()=>{let e=r.current,t=n.current;if(!e||!t)return;let i=t.getContext("2d");if(!i)return;let s=function(){let e=(0,S.mulberry32)(7),t=[],r=Math.PI*(3-Math.sqrt(5)),n=(0,S.mulberry32)(5),a=Math.floor(1550/22),i=new Set;for(let e=0;e<22;e++)i.add(Math.min(1549,e*a+Math.floor(n()*a)));for(let n=0;n<1550;n++){let a=1-n/1549*2,s=Math.sqrt(1-a*a),o=r*n;t.push({x:Math.cos(o)*s,y:a,z:Math.sin(o)*s,jitter:e(),intern:i.has(n)})}return t}(),o=function(e){let t=e.filter(e=>e.intern),r=(0,S.mulberry32)(21),n=[...t].sort(()=>r()-.5),a=[];for(let e=0;e+Math.min(.42*l,(c/2-12)/1.12,(l/2-20)/1.12,400),z=A,W=R,F=!1,P=()=>{let t=getComputedStyle(e);z=(0,_.parseCssColor)(t.getPropertyValue("--foreground"),A),W=(0,_.parseCssColor)(t.getPropertyValue("--primary"),R),F=document.documentElement.classList.contains("dark")};P();let D=()=>{let r=e.getBoundingClientRect();d=Math.min(window.devicePixelRatio||1,2),l=r.width,c=r.height,t.width=Math.round(l*d),t.height=Math.round(c*d),t.style.width=`${l}px`,t.style.height=`${c}px`,i.setTransform(d,0,0,d,0,0),a&&$(0)},H=0;function $(e){if(!i)return;H++,x+=e,H%40==0&&P();let t=a?1:Math.min(1,x/4.5);if(!a&&!O&&x>=1.4){O=!0;let e=p+N,t=f+j,r=Math.sin(t),n=Math.cos(-t);L.push({o:[n*Math.sin(-e),r,n*Math.cos(-e)],start:x})}a||(p+=.018*e+g,f+=v,g*=.94,v*=.94,f=Math.max(-1.1,Math.min(1.1,f)),j+=(y-j)*.09,N+=(w-N)*.09);let r=l/2,n=c/2,d=I(),m=Math.min(1.4,(Math.min(l,c)/2-10)/d),u=Math.max(9,Math.min(14,d/24)),h=(e,t)=>{let a=Math.hypot((e-r)/(1.08*d),(t-n)/(1.2*d));return a>=1?1:.04+.96*a*a*a*a};i.clearRect(0,0,l,c),i.textAlign="center",i.textBaseline="middle";let _=p+N,k=f+j,S=Math.sin(_),A=Math.cos(_),R=Math.sin(k),C=Math.cos(k),E={x:0,y:0,z:0},T=({x:e,y:t,z:a})=>{let i=-e*S+a*A,s=t*R+i*C,o=3.4/(3.4-s);return{sx:r+(e*A+a*S)*d*o,sy:n+(t*C-i*R)*d*o,z:s,scale:o}},D=[];for(let e of s){let r=1;if(t<1){let t=Math.max(0,(x-.35*e.jitter)/2.2);if(t<.55)r=(t/.55)**2.1;else{let e=t-.55;r=1+3.818181818181818/10*Math.sin(10*e)*Math.exp(-4*e)}}let n=Math.min(1.12+.28*e.jitter,m),a=n-(n-1)*r,i=e.x,s=e.y,o=e.z;if(r<1){let t=(1-r)*.05;i+=Math.sin(.42*x+41*e.jitter)*t,s+=Math.sin(.33*x+97*e.jitter)*t}E.x=i*a,E.y=s*a,E.z=o*a,D.push({...T(E),p:e,e:r})}for(let e of(D.sort((e,t)=>e.z-t.z),D)){let t,r=(e.z+1)/2;t=e.z<-.15?F?.045:.035:.07+r*(F?.38:.35);let n=h(e.sx,e.sy);t*=n;let s=Math.min(M.length-2,Math.floor(r*(M.length-1)*.9+.8*e.p.jitter)),o=z,l=u*(.75+.45*e.scale);if(e.p.intern&&e.z>-.1&&(s=M.length-1,o=W,t=Math.max(t,(.3+.45*r)*Math.max(n,.08)),l*=1.1),b&&e.z>-.2){let r=Math.hypot(e.sx-b.x,e.sy-b.y);if(r<150){let e=1-r/150;s=Math.min(M.length-1,s+Math.round(3*e)),t=Math.min(Math.max(n,.18),t+e*(F?.8:.65)*n),l*=1+.3*e*n}}for(let r of L){let a=x-r.start,i=Math.acos(Math.max(-1,Math.min(1,e.p.x*r.o[0]+e.p.y*r.o[1]+e.p.z*r.o[2])))-2*a,c=(Math.exp(-(i*i)/.09)+.45*Math.exp(-((i+.55)*(i+.55))/.09)+.2*Math.exp(-((i+1.1)*(i+1.1))/.09))*Math.exp(-(1.1*a));if(c>.03){let e=Math.max(n,.22);s=Math.min(M.length-1,s+Math.round(2*c)),t=Math.min(1,t+.55*c*e),c>.25&&(o=W),l*=1+.18*c}}if(!a){let e=Math.min(1,(x-.35)/.9);t*=e*e*(3-2*e)}t*=.5+.5*e.e,i.font=`${l.toFixed(1)}px ui-monospace, SFMono-Regular, Menlo, Monaco, monospace`,i.fillStyle=`rgba(${o[0]},${o[1]},${o[2]},${t.toFixed(3)})`,i.fillText(M[s]??M[0],e.sx,e.sy)}for(let e=L.length-1;e>=0;e--){let t=L[e];t&&(x-t.start)*2>Math.PI+2.6&&L.splice(e,1)}let $=a?1:Math.min(1,Math.max(0,(x-2)/.9)),B=Math.floor(x/2.4),q=x%2.4/2.4,V=new Set([B%o.length,(B+5)%o.length,(B+11)%o.length]);for(let[e,t]of(i.lineCap="round",o.entries())){let r=!a&&V.has(e),n=F?.13:.1,s=(r?.5:n)*$,o=t[0];if(!o)continue;E.x=o[0],E.y=o[1],E.z=o[2];let l=T(E);for(let e=1;e.02&&a.z>.02){let e=h((l.sx+a.sx)/2,(l.sy+a.sy)/2),t=Math.min(1,(Math.min(l.z,a.z)-.02)/.3),n=r?W:z;i.strokeStyle=`rgba(${n[0]},${n[1]},${n[2]},${(s*e*t).toFixed(3)})`,i.lineWidth=r?1.2:1,i.beginPath(),i.moveTo(l.sx,l.sy),i.lineTo(a.sx,a.sy),i.stroke()}l=a}if(r){let e=q*q*(3-2*q),r=Math.min(t.length-1,Math.floor(e*(t.length-1))),n=t[r]??o;E.x=n[0],E.y=n[1],E.z=n[2];let a=T(E);if(a.z>.02){let e=.9*h(a.sx,a.sy)*$*Math.sin(Math.PI*Math.min(1,1.04*q));i.fillStyle=`rgba(${W[0]},${W[1]},${W[2]},${(.25*e).toFixed(3)})`,i.beginPath(),i.arc(a.sx,a.sy,7,0,2*Math.PI),i.fill(),i.fillStyle=`rgba(${W[0]},${W[1]},${W[2]},${e.toFixed(3)})`,i.beginPath(),i.arc(a.sx,a.sy,2.2,0,2*Math.PI),i.fill()}}}}let B=e=>{let t=Math.min(.034,(e-h)/1e3);h=e,u&&$(t),m=requestAnimationFrame(B)},q=()=>!!a||x>=2.6,V=e=>{if(!q())return;let r=t.getBoundingClientRect(),n=e.clientX-r.left,a=e.clientY-r.top,i=n>-80&&a>-80&&n{if(!q())return;T={x:e.clientX,y:e.clientY};let r=t.getBoundingClientRect(),n=e.clientX>=r.left&&e.clientX<=r.right&&e.clientY>=r.top&&e.clientY<=r.bottom,a=k(e.target);n&&!a&&(C=!0,E={x:e.clientX,y:e.clientY},document.body.style.cursor="grabbing",e.preventDefault())},Y=()=>{C=!1,E=null,T=null,document.body.style.cursor=""},Q=e=>{if(T&&6>Math.hypot(e.clientX-T.x,e.clientY-T.y)){let r=t.getBoundingClientRect();e.clientX>=r.left&&e.clientX<=r.right&&e.clientY>=r.top&&e.clientY<=r.bottom&&!k(e.target)&&q()&&((e,r)=>{let n=t.getBoundingClientRect(),a=I(),i=(e-n.left-l/2)/a,s=(r-n.top-c/2)/a,o=i*i+s*s;if(o>1){let e=Math.sqrt(o);i/=e,s/=e}let d=Math.sqrt(Math.max(0,1-i*i-s*s)),m=p+N,u=f+j,h=s*Math.cos(-u)-d*Math.sin(-u),g=s*Math.sin(-u)+d*Math.cos(-u),v=i*Math.cos(-m)+g*Math.sin(-m),b=-i*Math.sin(-m)+g*Math.cos(-m);L.push({o:[v,h,b],start:x}),L.length>3&&L.shift()})(e.clientX,e.clientY)}Y()},X=()=>{b=null,y=0,w=0},K=new ResizeObserver(D);K.observe(e);let G=new IntersectionObserver(([e])=>{u=e?.isIntersecting??u});return G.observe(e),D(),a?$(0):(window.addEventListener("pointermove",V,{passive:!0}),window.addEventListener("pointerdown",U),window.addEventListener("pointerup",Q),window.addEventListener("pointercancel",Y),document.documentElement.addEventListener("pointerleave",X),m=requestAnimationFrame(B)),()=>{cancelAnimationFrame(m),K.disconnect(),G.disconnect(),window.removeEventListener("pointermove",V),window.removeEventListener("pointerdown",U),window.removeEventListener("pointerup",Q),window.removeEventListener("pointercancel",Y),document.documentElement.removeEventListener("pointerleave",X),document.body.style.cursor=""}},[a]),(0,t.jsx)("div",{ref:r,"aria-hidden":!0,className:e,children:(0,t.jsx)("canvas",{ref:n,className:"block size-full select-none [touch-action:pan-y]"})})}var E=e.i(682910);let T={terminal:j.SquareTerminal,slack:w.Slack,desktop:b.AppWindowMac};function L(){let e,d,m,u,h,x,f,b,y,w,j,_,k,M,A,R,C,L,O,I,z=(0,r.c)(31),W=(0,s.usePosthogClient)(),F=(0,c.useReducedMotion)(),P=(0,l.useMotionValue)(0),D=(0,l.useMotionValue)(0);z[0]!==P||z[1]!==D||z[2]!==F?(e=()=>{if(F)return;let e=e=>{P.set(e.clientX/window.innerWidth-.5),D.set(e.clientY/window.innerHeight-.5)};return window.addEventListener("mousemove",e,{passive:!0}),()=>window.removeEventListener("mousemove",e)},d=[F,P,D],z[0]=P,z[1]=D,z[2]=F,z[3]=e,z[4]=d):(e=z[3],d=z[4]),(0,p.useEffect)(e,d),z[5]===Symbol.for("react.memo_cache_sentinel")?(m={stiffness:110,damping:20},z[5]=m):m=z[5];let H=v(P,m);z[6]===Symbol.for("react.memo_cache_sentinel")?(u={stiffness:110,damping:20},z[6]=u):u=z[6];let $=v(D,u);z[7]===Symbol.for("react.memo_cache_sentinel")?(h=[-.5,.5],x=[-2.5,2.5],z[7]=h,z[8]=x):(h=z[7],x=z[8]);let B=(0,g.useTransform)(H,h,x);z[9]===Symbol.for("react.memo_cache_sentinel")?(f=[-.5,.5],b=[2.5,-2.5],z[9]=f,z[10]=b):(f=z[9],b=z[10]);let q=(0,g.useTransform)($,f,b);z[11]===Symbol.for("react.memo_cache_sentinel")?(y=[-.5,.5],w=[-4,4],z[11]=y,z[12]=w):(y=z[11],w=z[12]);let V=(0,g.useTransform)(H,y,w);z[13]===Symbol.for("react.memo_cache_sentinel")?(j=[-.5,.5],_=[-3,3],z[13]=j,z[14]=_):(j=z[13],_=z[14]);let U=(0,g.useTransform)($,j,_);return z[15]!==V||z[16]!==U||z[17]!==q||z[18]!==B?(k={rotateX:q,rotateY:B,x:V,y:U,transformPerspective:800,transformStyle:"preserve-3d"},z[15]=V,z[16]=U,z[17]=q,z[18]=B,z[19]=k):k=z[19],z[20]===Symbol.for("react.memo_cache_sentinel")?(M=(0,t.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0 bg-background/25"}),z[20]=M):M=z[20],z[21]===Symbol.for("react.memo_cache_sentinel")?(A=(0,t.jsx)("div",{"aria-hidden":!0,className:(0,a.cn)("absolute inset-0 border border-border/50 backdrop-blur-sm","bg-[color-mix(in_srgb,hsl(var(--card))_25%,transparent)]",E.DARK_CARD_SURFACE_FAINT,"shadow-[0_20px_48px_-16px_rgb(0_0_0_/_0.22)]","dark:shadow-[0_20px_48px_-16px_rgb(0_0_0_/_0.5)]")}),R=(0,t.jsx)(S.CornerTicks,{}),z[21]=A,z[22]=R):(A=z[21],R=z[22]),z[23]===Symbol.for("react.memo_cache_sentinel")?(C=(0,t.jsx)("span",{className:"font-brand text-[length:var(--text-title)] font-bold leading-[1.15] tracking-tight text-foreground [transform:translateZ(10px)]",children:N.HERO.chooser.prompt}),z[23]=C):C=z[23],z[24]!==W?(L=N.HERO.chooser.options.map(e=>{let r=T[e.id];return(0,t.jsx)(i.Button,{variant:"outline",className:"group/chip h-12 px-5 shadow-[0_10px_24px_-10px_rgb(0_0_0_/_0.18)] transition-all hover:-translate-y-0.5 hover:border-primary hover:bg-primary hover:text-primary-foreground active:translate-y-0 active:scale-[0.98] sm:px-6 dark:shadow-[0_10px_24px_-10px_rgb(0_0_0_/_0.45)]",render:(0,t.jsxs)("a",{href:`#${e.target}`,onClick:()=>{W.capture(n.PostHogEvent.ClickOriSectionLink,{section:e.target,surface:e.id,source:"hero_chooser"})},children:[r&&(0,t.jsx)(r,{className:"text-accent-foreground transition-colors group-hover/chip:text-primary-foreground"}),e.label]})},e.id)}),z[24]=W,z[25]=L):L=z[25],z[26]!==L?(O=(0,t.jsxs)("div",{className:"relative flex flex-col items-center gap-4 p-4 [transform-style:preserve-3d] sm:p-5",children:[C,(0,t.jsx)("div",{className:"grid w-full grid-cols-1 gap-2 [transform:translateZ(18px)] sm:w-auto sm:grid-cols-3 sm:gap-2.5",children:L})]}),z[26]=L,z[27]=O):O=z[27],z[28]!==k||z[29]!==O?(I=(0,t.jsxs)(o.motion.div,{style:k,className:"group relative w-full sm:w-auto",children:[M,A,R,O]}),z[28]=k,z[29]=O,z[30]=I):I=z[30],I}function O(e){return e>160?"none":"auto"}e.s(["Hero",0,function(){let e,n,a,i,s,l,m,u,h,x,p,f,v,b,w,j,_,k,S,M,A,R,E,T,I,z,W,F,P,D,H=(0,r.c)(47),$=(0,c.useReducedMotion)(),{scrollY:B}=(0,d.useScroll)();H[0]===Symbol.for("react.memo_cache_sentinel")?(e=[40,180],n=[1,0],H[0]=e,H[1]=n):(e=H[0],n=H[1]);let q=(0,g.useTransform)(B,e,n),V=(0,g.useTransform)(B,O),[U]=N.PRODUCTS;return H[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(C,{className:"absolute inset-0 max-md:-translate-y-[21%]"}),H[2]=a):a=H[2],H[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute -inset-x-8 -bottom-10 -top-6 -z-10 md:hidden",style:{background:"radial-gradient(ellipse 82% 44% at 50% 47%, color-mix(in srgb, hsl(var(--background)) 78%, transparent) 38%, color-mix(in srgb, hsl(var(--background)) 48%, transparent) 70%, transparent 90%)"}}),H[3]=i):i=H[3],H[4]!==$?(s=!$&&{opacity:0,y:16},H[4]=$,H[5]=s):s=H[5],H[6]===Symbol.for("react.memo_cache_sentinel")?(l={opacity:1,y:0},m={duration:.9},H[6]=l,H[7]=m):(l=H[6],m=H[7]),H[8]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)("span",{className:"h-px w-12 bg-gradient-to-r from-transparent to-border"}),h=(0,t.jsx)("span",{className:"text-[length:var(--text-overline)] font-medium uppercase tracking-[0.25em]",children:N.HERO.kicker}),x=(0,t.jsx)("span",{className:"h-px w-12 bg-gradient-to-l from-transparent to-border"}),H[8]=u,H[9]=h,H[10]=x):(u=H[8],h=H[9],x=H[10]),H[11]!==s?(p=(0,t.jsxs)(o.motion.span,{initial:s,animate:l,transition:m,className:"flex items-center gap-3 text-accent-foreground",children:[u,h,x]}),H[11]=s,H[12]=p):p=H[12],H[13]!==$?(f=!$&&{opacity:0,y:24},H[13]=$,H[14]=f):f=H[14],H[15]===Symbol.for("react.memo_cache_sentinel")?(v={opacity:1,y:0},H[15]=v):v=H[15],H[16]===Symbol.for("react.memo_cache_sentinel")?(b={duration:1,delay:.05,ease:[.21,.6,.35,1]},H[16]=b):b=H[16],H[17]===Symbol.for("react.memo_cache_sentinel")?(w=(0,t.jsx)("br",{}),j=(0,t.jsx)("span",{className:"text-accent-foreground",children:N.HERO.title[1]}),H[17]=w,H[18]=j):(w=H[17],j=H[18]),H[19]!==f?(_=(0,t.jsxs)(o.motion.h1,{initial:f,animate:v,transition:b,className:"font-brand mt-8 text-balance text-5xl font-bold leading-[1.05] tracking-[-0.04em] md:text-7xl",children:[N.HERO.title[0],w,j]}),H[19]=f,H[20]=_):_=H[20],H[21]!==$?(k=!$&&{opacity:0,y:24},H[21]=$,H[22]=k):k=H[22],H[23]===Symbol.for("react.memo_cache_sentinel")?(S={opacity:1,y:0},H[23]=S):S=H[23],H[24]===Symbol.for("react.memo_cache_sentinel")?(M={duration:1,delay:.1,ease:[.21,.6,.35,1]},H[24]=M):M=H[24],H[25]!==k?(A=(0,t.jsx)(o.motion.p,{initial:k,animate:S,transition:M,className:"mt-6 max-w-lg text-balance text-[length:var(--text-prose)] leading-[var(--leading-prose)] text-foreground/85 [text-shadow:0_0_16px_hsl(var(--background))] dark:[text-shadow:0_0_6px_hsl(var(--background)),0_0_16px_hsl(var(--background))]",children:N.HERO.body}),H[25]=k,H[26]=A):A=H[26],H[27]!==$?(R=!$&&{opacity:0,y:24},H[27]=$,H[28]=R):R=H[28],H[29]===Symbol.for("react.memo_cache_sentinel")?(E={opacity:1,y:0},H[29]=E):E=H[29],H[30]===Symbol.for("react.memo_cache_sentinel")?(T={duration:1,delay:.15,ease:[.21,.6,.35,1]},H[30]=T):T=H[30],H[31]===Symbol.for("react.memo_cache_sentinel")?(I=(0,t.jsx)(L,{}),H[31]=I):I=H[31],H[32]!==R?(z=(0,t.jsx)(o.motion.div,{initial:R,animate:E,transition:T,className:"mt-9 flex w-full flex-col items-center gap-3",children:I}),H[32]=R,H[33]=z):z=H[33],H[34]!==p||H[35]!==_||H[36]!==A||H[37]!==z?(W=(0,t.jsxs)("div",{className:"relative z-10 mx-auto my-auto flex max-w-6xl flex-col items-center px-6 py-12 text-center md:py-24",children:[i,p,_,A,z]}),H[34]=p,H[35]=_,H[36]=A,H[37]=z,H[38]=W):W=H[38],H[39]!==q||H[40]!==V||H[41]!==$?(F=U&&(0,t.jsx)(o.motion.a,{href:`#${U.id}`,"aria-label":"Scroll to the products",style:{opacity:q,pointerEvents:V},className:"absolute bottom-4 left-1/2 z-10 -translate-x-1/2 md:bottom-16",children:(0,t.jsx)(o.motion.span,{initial:!$&&{opacity:0},animate:$?{opacity:1}:{opacity:1,y:[0,6,0]},transition:{opacity:{delay:.25,duration:.8},y:{repeat:1/0,duration:1.8,ease:"easeInOut"}},className:"flex size-10 items-center justify-center rounded-[var(--radius-full)] bg-foreground text-background shadow-md transition-colors hover:bg-foreground/85",children:(0,t.jsx)(y.ChevronDown,{className:"size-5"})})}),H[39]=q,H[40]=V,H[41]=$,H[42]=F):F=H[42],H[43]===Symbol.for("react.memo_cache_sentinel")?(P=(0,t.jsx)("div",{className:"mt-10 md:mt-14"}),H[43]=P):P=H[43],H[44]!==W||H[45]!==F?(D=(0,t.jsxs)("section",{className:"relative flex min-h-[calc(100svh-57px)] cursor-grab flex-col overflow-hidden",children:[a,W,F,P]}),H[44]=W,H[45]=F,H[46]=D):D=H[46],D}],604518)},649530,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(553215),a=e.i(252358),i=e.i(977051);e.i(406201);var s=e.i(806024),o=e.i(107770);function l(e){return"overview"!==e.id}e.s(["OriFooter",0,function(){let e,c,d,m,u,h,x,p,f=(0,r.c)(20),g=(0,a.usePosthogClient)(),v=(0,i.useFeatureFlag)("oriCode");if(f[0]!==v||f[1]!==g){let r,a=(0,o.oriNavItems)({canOpenProductPages:v}).filter(l);u="border-t border-border/40",d="mx-auto flex max-w-6xl flex-col gap-4 px-6 py-10 md:flex-row md:items-center md:justify-between",f[7]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("img",{alt:"OpenRouter",className:"hidden h-4 w-auto opacity-70 dark:block",src:"/brand/v2/openrouter-dark.svg"}),(0,t.jsx)("img",{alt:"OpenRouter",className:"block h-4 w-auto opacity-70 dark:hidden",src:"/brand/v2/openrouter-light.svg"}),(0,t.jsx)("span",{className:"text-[length:var(--text-overline)] text-[var(--text-faint)]",children:"© 2026 OpenRouter, Inc."})]}),f[7]=m):m=f[7],e="flex flex-wrap items-center gap-x-6 gap-y-2",f[8]!==g?(r=e=>(0,t.jsx)(s.Link,{href:e.href,onClick:()=>{g.capture(n.PostHogEvent.ClickOriFooterProduct,{product:e.id,destination:e.destination})},className:"py-1 text-[length:var(--text-overline)] text-muted-foreground transition-colors hover:text-accent-foreground",children:e.label},e.id),f[8]=g,f[9]=r):r=f[9],c=a.map(r),f[0]=v,f[1]=g,f[2]=e,f[3]=c,f[4]=d,f[5]=m,f[6]=u}else e=f[2],c=f[3],d=f[4],m=f[5],u=f[6];return f[10]!==e||f[11]!==c?(h=(0,t.jsx)("div",{className:e,children:c}),f[10]=e,f[11]=c,f[12]=h):h=f[12],f[13]!==d||f[14]!==m||f[15]!==h?(x=(0,t.jsxs)("div",{className:d,children:[m,h]}),f[13]=d,f[14]=m,f[15]=h,f[16]=x):x=f[16],f[17]!==u||f[18]!==x?(p=(0,t.jsx)("footer",{className:u,children:x}),f[17]=u,f[18]=x,f[19]=p):p=f[19],p}])},776571,682910,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(452473),a=e.i(266698),i=e.i(215230),s=e.i(232862),o=e.i(270401);let l="dark:bg-[color-mix(in_srgb,var(--or-cloud)_2%,transparent)]";function c(e){let a,i,s,o,l,c,d,m=(0,r.c)(14),{hover:u}=e,h=void 0===u||u;if(m[0]!==h){let e=(0,n.cn)("absolute size-2 border-foreground/25 transition-colors duration-300",h&&"group-hover:border-foreground/50");s=(0,t.jsx)("span",{"aria-hidden":!0,className:(0,n.cn)(e,"-left-px -top-px border-l border-t")}),o=(0,t.jsx)("span",{"aria-hidden":!0,className:(0,n.cn)(e,"-right-px -top-px border-r border-t")}),l=(0,t.jsx)("span",{"aria-hidden":!0,className:(0,n.cn)(e,"-bottom-px -left-px border-b border-l")}),a=!0,i=(0,n.cn)(e,"-bottom-px -right-px border-b border-r"),m[0]=h,m[1]=a,m[2]=i,m[3]=s,m[4]=o,m[5]=l}else a=m[1],i=m[2],s=m[3],o=m[4],l=m[5];return m[6]!==a||m[7]!==i?(c=(0,t.jsx)("span",{"aria-hidden":a,className:i}),m[6]=a,m[7]=i,m[8]=c):c=m[8],m[9]!==s||m[10]!==o||m[11]!==l||m[12]!==c?(d=(0,t.jsxs)(t.Fragment,{children:[s,o,l,c]}),m[9]=s,m[10]=o,m[11]=l,m[12]=c,m[13]=d):d=m[13],d}e.s(["DARK_CARD_SURFACE",0,l,"DARK_CARD_SURFACE_FAINT",0,"dark:bg-[color-mix(in_srgb,var(--or-cloud)_1.2%,transparent)]"],682910),e.s(["CornerTicks",0,c,"Cursor",0,function(){let e,n=(0,r.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("span",{className:"ml-0.5 inline-block h-[1.1em] w-[0.55em] translate-y-[0.2em] animate-pulse bg-accent-foreground/80 motion-reduce:animate-none"}),n[0]=e):e=n[0],e},"Kicker",0,function(e){let n,a,i,s,o=(0,r.c)(10),{children:l,index:c,tag:d}=e;return o[0]!==c?(n=c&&(0,t.jsxs)("span",{className:"flex items-center gap-2 font-mono text-[length:var(--text-overline)] leading-none",children:[(0,t.jsx)("span",{className:"text-accent-foreground",children:"◆"}),(0,t.jsx)("span",{className:"text-[var(--text-faint)]",children:c})]}),o[0]=c,o[1]=n):n=o[1],o[2]!==d?(a=d&&(0,t.jsxs)("span",{className:"text-[var(--text-faint)]",children:[" · ",d]}),o[2]=d,o[3]=a):a=o[3],o[4]!==l||o[5]!==a?(i=(0,t.jsxs)("span",{className:"text-[length:var(--text-overline)] font-medium uppercase tracking-[0.16em] text-accent-foreground",children:[l,a]}),o[4]=l,o[5]=a,o[6]=i):i=o[6],o[7]!==n||o[8]!==i?(s=(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[n,i]}),o[7]=n,o[8]=i,o[9]=s):s=o[9],s},"Reveal",0,function(e){let n,i,o,l,c,d,m=(0,r.c)(13),{children:u,delay:h,y:x,className:p}=e,f=void 0===h?0:h,g=void 0===x?24:x,v=(0,s.useReducedMotion)();return m[0]!==v||m[1]!==g?(n=!v&&{opacity:0,y:g},m[0]=v,m[1]=g,m[2]=n):n=m[2],m[3]===Symbol.for("react.memo_cache_sentinel")?(i={opacity:1,y:0},o={once:!0,margin:"-80px"},m[3]=i,m[4]=o):(i=m[3],o=m[4]),m[5]===Symbol.for("react.memo_cache_sentinel")?(l=[.21,.6,.35,1],m[5]=l):l=m[5],m[6]!==f?(c={duration:.6,delay:f,ease:l},m[6]=f,m[7]=c):c=m[7],m[8]!==u||m[9]!==p||m[10]!==n||m[11]!==c?(d=(0,t.jsx)(a.motion.div,{className:p,initial:n,whileInView:i,viewport:o,transition:c,children:u}),m[8]=u,m[9]=p,m[10]=n,m[11]=c,m[12]=d):d=m[12],d},"Terminal",0,function(e){let a,i,s,o,d,m,u,h=(0,r.c)(15),{title:x,children:p,className:f,bodyClassName:g}=e;return h[0]!==f?(a=(0,n.cn)("relative border border-border backdrop-blur-md","bg-[color-mix(in_srgb,hsl(var(--card))_42%,transparent)]",l,f),h[0]=f,h[1]=a):a=h[1],h[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)(c,{hover:!1}),h[2]=i):i=h[2],h[3]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsxs)("span",{className:"flex gap-1.5",children:[(0,t.jsx)("span",{className:"size-2 rounded-[var(--radius-full)] bg-foreground/15"}),(0,t.jsx)("span",{className:"size-2 rounded-[var(--radius-full)] bg-foreground/15"}),(0,t.jsx)("span",{className:"size-2 rounded-[var(--radius-full)] bg-foreground/15"})]}),h[3]=s):s=h[3],h[4]!==x?(o=(0,t.jsxs)("div",{className:"flex items-center gap-2 border-b border-border px-4 py-2.5",children:[s,(0,t.jsx)("span",{className:"ml-1 font-mono text-[length:var(--text-overline)] text-[var(--text-faint)]",children:x})]}),h[4]=x,h[5]=o):o=h[5],h[6]!==g?(d=(0,n.cn)("px-4 py-4 font-mono text-[length:var(--text-overline)] leading-[1.9] md:px-5",g),h[6]=g,h[7]=d):d=h[7],h[8]!==p||h[9]!==d?(m=(0,t.jsx)("div",{className:d,children:p}),h[8]=p,h[9]=d,h[10]=m):m=h[10],h[11]!==a||h[12]!==o||h[13]!==m?(u=(0,t.jsxs)("div",{className:a,children:[i,o,m]}),h[11]=a,h[12]=o,h[13]=m,h[14]=u):u=h[14],u},"mulberry32",0,function(e){let t=e;return()=>{t|=0;let e=Math.imul((t=t+0x6d2b79f5|0)^t>>>15,1|t);return(((e=e+Math.imul(e^e>>>7,61|e)^e)^e>>>14)>>>0)/0x100000000}},"useEnteredView",0,function(e){let t,n,a=(0,r.c)(4),s=void 0===e?"-80px":e,l=(0,o.useRef)(null);a[0]!==s?(t={once:!0,margin:s},a[0]=s,a[1]=t):t=a[1];let c=(0,i.useInView)(l,t);return a[2]!==c?(n=[l,c],a[2]=c,a[3]=n):n=a[3],n},"useTypedLines",0,function(e,t,n){let a,i,l,c,d,m,u=(0,r.c)(24);u[0]!==n?(a=void 0===n?{}:n,u[0]=n,u[1]=a):a=u[1];let{cps:h,linePause:x}=a,p=void 0===h?40:h,f=void 0===x?350:x,g=(0,s.useReducedMotion)();u[2]===Symbol.for("react.memo_cache_sentinel")?(i={line:0,chars:0},u[2]=i):i=u[2];let[v,b]=(0,o.useState)(i);if(u[3]!==t||u[4]!==p||u[5]!==f||u[6]!==e||u[7]!==v||u[8]!==g?(l=()=>{if(!t||g)return;let r=e[v.line];if(void 0===r)return;let n=v.chars>=r.length,a=setTimeout(()=>{b(e=>n?{line:e.line+1,chars:0}:{line:e.line,chars:e.chars+1})},n?f:1e3/p);return()=>clearTimeout(a)},c=[t,g,v,e,p,f],u[3]=t,u[4]=p,u[5]=f,u[6]=e,u[7]=v,u[8]=g,u[9]=l,u[10]=c):(l=u[9],c=u[10]),(0,o.useEffect)(l,c),g||!t){let t;return u[11]!==e||u[12]!==g?(t=g?[e,!0]:[[],!1],u[11]=e,u[12]=g,u[13]=t):t=u[13],t}if(u[14]!==e||u[15]!==v.chars||u[16]!==v.line){let t;u[18]!==v.chars||u[19]!==v.line?(t=(e,t)=>t=e.length;return u[21]!==d||u[22]!==y?(m=[d,y],u[21]=d,u[22]=y,u[23]=m):m=u[23],m}],776571)},941529,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(622717),a=e.i(452473),i=e.i(528164),s=e.i(389097),o=e.i(823634),l=e.i(648156),c=e.i(733800),d=e.i(787020),m=e.i(157266),u=e.i(678915),h=e.i(914306),x=e.i(699937),p=e.i(99074),f=e.i(969949),g=e.i(131827),v=e.i(306390),b=e.i(329492),y=e.i(220499),w=e.i(986122),j=e.i(132736),N=e.i(249656),_=e.i(435480),k=e.i(270401),S=e.i(987511);e.i(283616);var M=e.i(224035),A=e.i(810563);function R(e){let n,s,o,l,c,d,m,u,h,x,p,f,g=(0,r.c)(36),{group:v,answers:b,draft:y,onDraftChange:w,onChange:j}=e,_=(0,k.useId)(),S=(0,k.useRef)(null);if(g[0]!==b||g[1]!==y||g[2]!==v||g[3]!==j||g[4]!==w){let e=[...new Set((0,M.getOtherAnswers)(b,v).filter(C))],r=[...new Set([...e,y.trim()].filter(Boolean))];n=0>(0,M.getRemainingAnswerSlots)((0,M.updateOtherAnswers)(b,{group:v,values:r}),v.answerId),s="flex min-w-0 flex-wrap items-center gap-2",o=e=>{e.preventDefault(),y.trim()&&!n&&(j(r),w(""),S.current?.focus())},l=e.map(r=>(0,t.jsxs)(i.Button,{variant:"outline",className:(0,a.cn)("h-10 min-w-0 max-w-full gap-2 rounded-full px-3 text-body font-normal pointer-coarse:h-11","bg-background transition-colors hover:bg-card-hover hover:text-accent-foreground"),"aria-label":`Remove ${r}`,title:r,onClick:()=>{j(e.filter(e=>e!==r)),S.current?.focus()},children:[(0,t.jsx)("span",{className:"truncate",children:r}),(0,t.jsx)(N.X,{"aria-hidden":!0})]},r)),g[0]=b,g[1]=y,g[2]=v,g[3]=j,g[4]=w,g[5]=n,g[6]=s,g[7]=o,g[8]=l}else n=g[5],s=g[6],o=g[7],l=g[8];g[9]!==v.otherLabel||g[10]!==_?(c=(0,t.jsx)("label",{htmlFor:_,className:"sr-only",children:v.otherLabel}),g[9]=v.otherLabel,g[10]=_,g[11]=c):c=g[11],g[12]!==w?(d=e=>w(e.target.value),g[12]=w,g[13]=d):d=g[13],g[14]!==y||g[15]!==n?(m=!y.trim()||n,g[14]=y,g[15]=n,g[16]=m):m=g[16],g[17]!==v.otherLabel?(u=v.otherLabel.toLowerCase(),g[17]=v.otherLabel,g[18]=u):u=g[18];let R=`Add ${u}`;return g[19]!==m||g[20]!==R?(h=(0,t.jsx)(i.Button,{type:"submit",variant:"ghost",size:"sm",disabled:m,"aria-label":R,className:"h-8 px-2",children:"Add"}),g[19]=m,g[20]=R,g[21]=h):h=g[21],g[22]!==y||g[23]!==_||g[24]!==d||g[25]!==h?(x=(0,t.jsx)(A.Input,{ref:S,id:_,value:y,maxLength:M.MAX_OTHER_LENGTH,enterKeyHint:"enter",placeholder:"Other…",onChange:d,className:"pr-16",containerClassName:"w-64 min-w-0 max-w-full",trailingContent:h}),g[22]=y,g[23]=_,g[24]=d,g[25]=h,g[26]=x):x=g[26],g[27]!==n?(p=n&&(0,t.jsx)("p",{className:"w-full text-body text-muted-foreground",children:"Remove an answer to add another."}),g[27]=n,g[28]=p):p=g[28],g[29]!==s||g[30]!==x||g[31]!==p||g[32]!==o||g[33]!==l||g[34]!==c?(f=(0,t.jsxs)("form",{className:s,onSubmit:o,children:[l,c,x,p]}),g[29]=s,g[30]=x,g[31]=p,g[32]=o,g[33]=l,g[34]=c,g[35]=f):f=g[35],f}function C(e){return e.trim()}var E=e.i(420028),T=e.i(84117);function L(e){let n,s,o,l,c,d=(0,r.c)(21),{label:m,isSelected:u,onToggle:h,isAlternative:p,disabled:f}=e,g=void 0!==p&&p,v=g?E.Minus:T.Plus,b=u?x.Check:v,y=g&&"h-9 rounded-md py-1.5",w=u?"border-primary/50 bg-primary/5 text-foreground hover:bg-primary/10":"border-border bg-background text-foreground hover:bg-card-hover",j=g&&"border-transparent [&>svg:first-child]:size-full";d[0]!==y||d[1]!==w||d[2]!==j?(n=(0,a.cn)("relative h-10 max-w-full justify-start gap-2 rounded-full px-3 py-2","text-left text-body font-normal shadow-none pointer-coarse:min-h-11",y,w,j),d[0]=y,d[1]=w,d[2]=j,d[3]=n):n=d[3],d[4]!==g||d[5]!==u?(s=g&&(0,t.jsx)("svg",{"aria-hidden":!0,focusable:"false",className:(0,a.cn)("pointer-events-none absolute inset-0 overflow-visible",u?"text-primary/50":"text-muted-foreground/50"),children:(0,t.jsx)("rect",{width:"100%",height:"100%",className:"[rx:var(--radius-md)]",fill:"none",stroke:"currentColor",strokeWidth:2,strokeDasharray:"0 7",strokeLinecap:"round"})}),d[4]=g,d[5]=u,d[6]=s):s=d[6],d[7]!==m?(o=(0,t.jsx)("span",{className:"truncate",children:m}),d[7]=m,d[8]=o):o=d[8];let N=u?"text-primary":"text-muted-foreground";return d[9]!==b||d[10]!==N?(l=(0,t.jsx)(b,{"aria-hidden":!0,className:N}),d[9]=b,d[10]=N,d[11]=l):l=d[11],d[12]!==f||d[13]!==u||d[14]!==m||d[15]!==h||d[16]!==n||d[17]!==s||d[18]!==o||d[19]!==l?(c=(0,t.jsxs)(i.Button,{disabled:f,variant:"outline","aria-pressed":u,onClick:h,title:m,className:n,children:[s,o,l]}),d[12]=f,d[13]=u,d[14]=m,d[15]=h,d[16]=n,d[17]=s,d[18]=o,d[19]=l,d[20]=c):c=d[20],c}function O(e){let n,i,s,o,l,c,d,m,u,h=(0,r.c)(41),{group:x,layout:p,answers:f,otherDraft:g,onOtherDraftChange:v,onToggle:b,onOtherChange:y}=e,w=f[x.answerId];h[0]!==f||h[1]!==x?(n=e=>0>(0,M.getRemainingAnswerSlots)((0,M.toggleQuestionOption)(f,{group:x,option:e}),x.answerId),h[0]=f,h[1]=x,h[2]=n):n=h[2];let j=n;h[3]!==x.label?(i=(0,t.jsx)("legend",{className:"sr-only",children:x.label}),h[3]=x.label,h[4]=i):i=h[4];let N="grid"===p?"flex-wrap":"flex-col items-start";if(h[5]!==N?(s=(0,a.cn)("flex gap-2",N),h[5]=N,h[6]=s):s=h[6],h[7]!==w||h[8]!==x.options||h[9]!==j||h[10]!==b){let e;h[12]!==w||h[13]!==j||h[14]!==b?(e=e=>(0,t.jsx)(L,{label:e,isSelected:Array.isArray(w)&&w.includes(e),disabled:j(e),onToggle:()=>b(e)},e),h[12]=w,h[13]=j,h[14]=b,h[15]=e):e=h[15],o=x.options.map(e),h[7]=w,h[8]=x.options,h[9]=j,h[10]=b,h[11]=o}else o=h[11];if(h[16]!==s||h[17]!==o?(l=(0,t.jsx)("div",{className:s,children:o}),h[16]=s,h[17]=o,h[18]=l):l=h[18],h[19]!==f||h[20]!==x||h[21]!==y||h[22]!==v||h[23]!==g?(c=(0,t.jsx)(R,{group:x,answers:f,draft:g,onDraftChange:v,onChange:y}),h[19]=f,h[20]=x,h[21]=y,h[22]=v,h[23]=g,h[24]=c):c=h[24],h[25]!==w||h[26]!==x.exclusiveOptions||h[27]!==j||h[28]!==b){let e;h[30]!==w||h[31]!==j||h[32]!==b?(e=e=>(0,t.jsx)(L,{label:e,isAlternative:!0,isSelected:Array.isArray(w)&&w.includes(e),disabled:j(e),onToggle:()=>b(e)},e),h[30]=w,h[31]=j,h[32]=b,h[33]=e):e=h[33],d=x.exclusiveOptions.map(e),h[25]=w,h[26]=x.exclusiveOptions,h[27]=j,h[28]=b,h[29]=d}else d=h[29];return h[34]!==d?(m=(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:d}),h[34]=d,h[35]=m):m=h[35],h[36]!==i||h[37]!==l||h[38]!==c||h[39]!==m?(u=(0,t.jsxs)("fieldset",{className:"flex min-w-0 flex-col gap-4 pt-2",children:[i,l,c,m]}),h[36]=i,h[37]=l,h[38]=c,h[39]=m,h[40]=u):u=h[40],u}let I={skills:v.ListChecks,instructions:f.FileText,connections:y.Plug,secrets:g.KeyRound,stack:h.Bot,build:j.Wrench,cadence:_.Zap,deploy:w.Server};function z(e){e?.scrollIntoView({block:"nearest"})}function W(e){let n,h,f,g,v,y,w,j,_,A,R,C,E,T,L,W,P,D,H,$,B,q,V,U,Y=(0,r.c)(68),{open:Q,onClose:X,step:K,onNext:G,onBack:J,onStepChange:Z,answers:ee,onAnswerChange:et,onToggleAnswer:er,onOtherAnswersChange:en}=e,ea=(0,k.useRef)(null),ei=(0,k.useId)();Y[0]===Symbol.for("react.memo_cache_sentinel")?(n={},Y[0]=n):n=Y[0];let[es,eo]=(0,k.useState)(n),[el,ec]=(0,k.useState)(!1),ed=c.QUESTIONS[K],em=K===c.QUESTIONS.length,eu=ee[c.FREEFORM_ANSWER_ID];Y[1]!==ee?(h=e=>({id:e.id,label:e.label,icon:I[e.id],isAnswered:(0,M.hasQuestionAnswer)(ee,e.group)}),Y[1]=ee,Y[2]=h):h=Y[2],Y[3]!==eu?(f="string"==typeof eu&&eu.trim().length>0,Y[3]=eu,Y[4]=f):f=Y[4];let eh=[...c.QUESTIONS.map(h),{id:c.FREEFORM_ANSWER_ID,label:S.WAITLIST.freeformStep,icon:b.MessageSquare,isAnswered:f}];Y[5]!==Q?(g=()=>{ec(!1),Q&&ea.current?.focus()},Y[5]=Q,Y[6]=g):g=Y[6],Y[7]!==Q||Y[8]!==K?(v=[Q,K],Y[7]=Q,Y[8]=K,Y[9]=v):v=Y[9],(0,k.useEffect)(g,v),Y[10]!==ee||Y[11]!==G||Y[12]!==en||Y[13]!==es||Y[14]!==ed?(y=()=>{let e=ed&&es[ed.group.otherLabel]?.trim();if(ed&&e){let t=[...new Set([...(0,M.getOtherAnswers)(ee,ed.group),e])],r=(0,M.updateOtherAnswers)(ee,{group:ed.group,values:t});if(0>(0,M.getRemainingAnswerSlots)(r,ed.group.answerId))return;en(ed,t),eo(e=>({...e,[ed.group.otherLabel]:""}))}G()},Y[10]=ee,Y[11]=G,Y[12]=en,Y[13]=es,Y[14]=ed,Y[15]=y):y=Y[15];let ex=y;Y[16]!==X?(w=e=>{e||X()},Y[16]=X,Y[17]=w):w=Y[17],Y[18]===Symbol.for("react.memo_cache_sentinel")?(j=(0,a.cn)("flex flex-col gap-0 overflow-hidden bg-background p-0","fixed inset-0 h-dvh max-w-none rounded-none border-0","md:relative md:inset-auto md:h-[min(560px,calc(100dvh-2rem))] md:max-w-3xl md:rounded-xl md:border"),Y[18]=j):j=Y[18],Y[19]===Symbol.for("react.memo_cache_sentinel")?(_=(0,t.jsx)(N.X,{className:"size-4"}),Y[19]=_):_=Y[19],Y[20]!==X?(A=(0,t.jsx)(i.Button,{variant:"ghost",size:"icon","aria-label":S.WAITLIST.close,onClick:X,className:"absolute right-5 top-5 z-10 size-9 md:right-8 md:top-6",children:_}),Y[20]=X,Y[21]=A):A=Y[21];let ep=eh.map((e,r)=>{let n=e.icon,i=K===r;return(0,t.jsx)(l.Tooltip,{content:e.label,side:"right",delay:150,children:(0,t.jsxs)("button",{ref:i?z:void 0,type:"button","aria-label":e.label,"aria-current":i?"true":void 0,onClick:()=>Z(r),className:(0,a.cn)("relative flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-md","focus-visible:outline-none focus-visible:border-focus-border focus-visible:shadow-focus",i?"bg-primary/10 text-primary":"text-muted-foreground hover:bg-card-hover hover:text-accent-foreground",!i&&e.isAnswered&&"text-foreground"),children:[n&&(0,t.jsx)(n,{"aria-hidden":!0,className:"size-4"}),e.isAnswered&&(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute right-0.5 top-0.5 flex size-3.5 items-center justify-center rounded-full bg-primary text-primary-foreground",children:(0,t.jsx)(x.Check,{className:"size-2.5"})})]})},e.id)});Y[22]!==ep?(R=(0,t.jsx)("nav",{"aria-label":"Questionnaire topics",className:"hidden min-h-0 flex-col items-center gap-2 overflow-y-auto border-r border-border pb-4 pt-6 md:flex",children:ep}),Y[22]=ep,Y[23]=R):R=Y[23];let ef=el?"border-border":"border-transparent";Y[24]!==ef?(C=(0,a.cn)("flex shrink-0 flex-col gap-4 border-b px-5 pb-4 pt-5 md:px-8 md:pt-6",ef),Y[24]=ef,Y[25]=C):C=Y[25],Y[26]!==Z?(E=e=>Z(Number(e.target.value)),Y[26]=Z,Y[27]=E):E=Y[27];let eg=eh.map(F);Y[28]!==K||Y[29]!==E||Y[30]!==eg?(T=(0,t.jsx)("select",{"aria-label":"Questionnaire topic",value:K,onChange:E,className:"h-9 w-full appearance-none rounded-md border border-input bg-background pl-3 pr-9 text-body",children:eg}),Y[28]=K,Y[29]=E,Y[30]=eg,Y[31]=T):T=Y[31],Y[32]===Symbol.for("react.memo_cache_sentinel")?(L=(0,t.jsx)(p.ChevronDown,{"aria-hidden":!0,className:"pointer-events-none absolute right-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"}),Y[32]=L):L=Y[32],Y[33]!==T?(W=(0,t.jsxs)("div",{className:"relative md:hidden",children:[T,L]}),Y[33]=T,Y[34]=W):W=Y[34],Y[35]===Symbol.for("react.memo_cache_sentinel")?(P=e=>ec(e.currentTarget.scrollTop>0),Y[35]=P):P=Y[35];let ev=ed?.question??S.WAITLIST.freeformLabel;Y[36]!==ev?(D=(0,t.jsx)(s.DialogTitle,{ref:ea,tabIndex:-1,className:"text-display font-bold leading-tight tracking-tight outline-none md:text-hero",children:ev}),Y[36]=ev,Y[37]=D):D=Y[37],Y[38]!==ee||Y[39]!==eu||Y[40]!==ei||Y[41]!==ex||Y[42]!==et||Y[43]!==en||Y[44]!==er||Y[45]!==es||Y[46]!==ed?(H=ed?(0,t.jsx)(O,{group:ed.group,layout:ed.layout,answers:ee,otherDraft:es[ed.group.otherLabel]??"",onOtherDraftChange:e=>eo(t=>({...t,[ed.group.otherLabel]:e})),onToggle:e=>{let t=ee[ed.group.answerId];!ed.group.exclusiveOptions.includes(e)||Array.isArray(t)&&t.includes(e)||eo(e=>({...e,[ed.group.otherLabel]:""})),er(ed,e)},onOtherChange:e=>en(ed,e)}):(0,t.jsx)("form",{id:ei,className:"flex flex-1 flex-col",onSubmit:e=>{e.preventDefault(),ex()},children:(0,t.jsx)(o.Textarea,{"aria-label":S.WAITLIST.freeformLabel,rows:6,maxLength:d.MAX_FREEFORM_LENGTH,value:"string"==typeof eu?eu:"",onChange:e=>et(c.FREEFORM_ANSWER_ID,e.target.value),placeholder:S.WAITLIST.freeformPlaceholder,className:"min-h-40 flex-1 resize-none"})}),Y[38]=ee,Y[39]=eu,Y[40]=ei,Y[41]=ex,Y[42]=et,Y[43]=en,Y[44]=er,Y[45]=es,Y[46]=ed,Y[47]=H):H=Y[47],Y[48]!==K||Y[49]!==D||Y[50]!==H?($=(0,t.jsxs)("div",{onScroll:P,className:"flex min-h-0 flex-col gap-4 overflow-y-auto px-5 pb-4 pt-2 md:px-8",children:[D,H]},K),Y[48]=K,Y[49]=D,Y[50]=H,Y[51]=$):$=Y[51],Y[52]!==J||Y[53]!==X||Y[54]!==K?(B=K>0?(0,t.jsxs)(i.Button,{variant:"ghost",onClick:J,children:[(0,t.jsx)(m.ArrowLeft,{className:"size-4"}),S.WAITLIST.back]}):(0,t.jsx)(i.Button,{variant:"ghost",onClick:X,children:S.WAITLIST.skipRest}),Y[52]=J,Y[53]=X,Y[54]=K,Y[55]=B):B=Y[55];let eb=em?"send":"next",ey=em?"submit":"button",ew=em?ei:void 0,ej=em?void 0:ex,eN=em?S.WAITLIST.send:S.WAITLIST.next;return Y[56]!==em?(q=em?(0,t.jsx)(x.Check,{className:"size-4"}):(0,t.jsx)(u.ArrowRight,{className:"size-4"}),Y[56]=em,Y[57]=q):q=Y[57],Y[58]!==eb||Y[59]!==ey||Y[60]!==ew||Y[61]!==ej||Y[62]!==eN||Y[63]!==q?(V=(0,t.jsxs)(i.Button,{type:ey,form:ew,onClick:ej,children:[eN,q]},eb),Y[58]=eb,Y[59]=ey,Y[60]=ew,Y[61]=ej,Y[62]=eN,Y[63]=q,Y[64]=V):V=Y[64],Y[65]!==B||Y[66]!==V?(U=(0,t.jsxs)("footer",{className:"flex shrink-0 flex-wrap items-center justify-between gap-2 border-t border-border p-3 pb-[max(0.75rem,env(safe-area-inset-bottom))] md:px-5",children:[B,V]}),Y[65]=B,Y[66]=V,Y[67]=U):U=Y[67],(0,t.jsx)(s.Dialog,{open:Q,onOpenChange:w,children:(0,t.jsxs)(s.DialogContent,{"data-overlay-layer":!0,initialFocus:ea,keepMounted:!1,showCloseButton:!1,className:j,children:[A,(0,t.jsxs)("div",{className:"grid min-h-0 flex-1 md:grid-cols-[3.5rem_minmax(0,1fr)]",children:[R,(0,t.jsxs)("div",{className:"flex min-h-0 flex-col",children:[(0,t.jsxs)("div",{className:C,children:[(0,t.jsxs)("p",{className:"flex h-9 items-center pr-12 text-body text-muted-foreground",children:[S.WAITLIST.modalTitle," · ",K+1," of ",eh.length]}),W]}),$]})]}),U]})})}function F(e,r){return(0,t.jsx)("option",{value:r,children:e.label},e.id)}e.s(["QuestionsModal",0,function(){let e,a=(0,r.c)(11),{open:i,close:s,step:o,next:l,back:c,goToStep:d,answers:m,setAnswer:u,toggleAnswer:h,setOtherAnswers:x}=(0,n.useWaitlist)();return a[0]!==m||a[1]!==c||a[2]!==s||a[3]!==d||a[4]!==l||a[5]!==i||a[6]!==u||a[7]!==x||a[8]!==o||a[9]!==h?(e=(0,t.jsx)(W,{open:i,onClose:s,step:o,onNext:l,onBack:c,onStepChange:d,answers:m,onAnswerChange:u,onToggleAnswer:h,onOtherAnswersChange:x}),a[0]=m,a[1]=c,a[2]=s,a[3]=d,a[4]=l,a[5]=i,a[6]=u,a[7]=x,a[8]=o,a[9]=h,a[10]=e):e=a[10],e}],941529)},157983,e=>{"use strict";var t=e.i(222666),r=e.i(232862),n=e.i(270401),a=e.i(361097);let i=` precision mediump float; uniform vec2 uRes; uniform float uTime; uniform float uScroll; uniform vec3 uBase; uniform vec3 uTint; uniform vec3 uTint2; uniform float uAmt; uniform float uFade; uniform float uShade; uniform float uLo; uniform vec3 uRip[6]; float h(vec2 p){ return fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453123); } float n(vec2 p){ vec2 i = floor(p); vec2 f = fract(p); f = f * f * (3. - 2. * f); return mix(mix(h(i), h(i + vec2(1., 0.)), f.x), mix(h(i + vec2(0., 1.)), h(i + vec2(1., 1.)), f.x), f.y); } float fbm(vec2 p){ float v = 0.; float a = .5; for (int i = 0; i < 4; i++){ v += a * n(p); p *= 2.03; a *= .5; } return v; } void main(){ vec2 uv = gl_FragCoord.xy / uRes; vec2 p = uv * vec2(uRes.x / uRes.y, 1.) * 1.7; // scroll drifts the field DIAGONALLY (y only meant a cloud band kept its // horizontal position for the whole page, so fog that happened to sit on the // right stayed on the right at every scroll depth) p += vec2(uScroll * .45, uScroll); float t = uTime * .065; // half the old .13 — unhurried drift that never pulls the eye // click puffs — each recent click is (x, y, startTime): PURE displacement, // no color trace. The ring shoves the fog's noise domain outward so the // smoke visibly bulges away from the click, then settles. vec2 warp = vec2(0.); for (int i = 0; i < 6; i++) { vec3 r = uRip[i]; float age = uTime - r.z; if (r.z <= 0. || age < 0. || age > 1.8) continue; float d = distance(gl_FragCoord.xy, r.xy); float radius = age * 110.; float ring = exp(-pow((d - radius) / 30., 2.)); float fade = exp(-age * 2.2); warp += ((gl_FragCoord.xy - r.xy) / max(d, 1.)) * ring * fade; } // MINUS: sampling from nearer the click pushes the pattern AWAY from it. // (+= sampled outward content inward — the click looked like it sucked the // cloud in instead of puffing it out.) p -= warp * .28; vec2 q = vec2(fbm(p + t), fbm(p + vec2(5.2, 1.3) - t)); float f = fbm(p + 2.4 * q + vec2(t * .6, -t * .4)); float glow = smoothstep(uLo, .92, f); float f2 = fbm(p * 1.3 - 1.7 * q + vec2(-t * .5, t * .35)); float glow2 = smoothstep(uLo + .12, .95, f2); // no viewport vignette — it read as a per-screen overlay and broke the // page's continuity while scrolling; the fog is uniform edge to edge // uFade thins the whole field past the hero (see cloud-fade.ts): the same // clouds, pulled back toward the flat background so body copy over them // stays readable. Scaling the blend amount rather than the canvas opacity // keeps one opaque layer — a translucent canvas would show the page shell's // own background through it and cost a composite every frame. float amt = uAmt * uFade; vec3 col = mix(uBase, uTint, glow * amt); col = mix(col, uTint2, glow2 * amt * .75); // light mode: a WHISPER of body in the cloud cores (was .14 — that much // darkening made the whole field read as an overcast sky) col *= 1. - uShade * uFade * (glow * .5 + glow2 * .5) * .06; gl_FragColor = vec4(col, 1.); }`,s=[3,8,10],o=[3,90,222];function l(e,t){let[r,n,i]=(0,a.parseCssColor)(e,t);return[r/255,n/255,i/255]}e.s(["ShaderBg",0,function(){let e=(0,n.useRef)(null),a=(0,r.useReducedMotion)();return(0,n.useEffect)(()=>{let t=e.current;if(!t)return;let r=t.getContext("webgl",{alpha:!1,antialias:!1,depth:!1,powerPreference:"low-power"});if(!r)return;let n=0,c=0,d=null,m=new Float32Array(18).fill(-1e3),u=0,h=({cx:e,cy:r,t0:n})=>{m[3*u]=e*(t.width/window.innerWidth),m[3*u+1]=t.height-r*(t.height/window.innerHeight),m[3*u+2]=n,u=(u+1)%6},x=!1,p=null,f=e=>{x=!0,p={x:e.clientX,y:e.clientY},h({cx:e.clientX,cy:e.clientY,t0:performance.now()/1e3})},g=e=>{x&&p&&(24>Math.hypot(e.clientX-p.x,e.clientY-p.y)||(p={x:e.clientX,y:e.clientY},h({cx:e.clientX,cy:e.clientY,t0:performance.now()/1e3-.5})))},v=()=>{x=!1,p=null},b=(e,t)=>{let n=r.createShader(e);return n?(r.shaderSource(n,t),r.compileShader(n),n):null},y=()=>{let e=r.createProgram(),t=b(r.VERTEX_SHADER,"attribute vec2 aPos; void main(){ gl_Position = vec4(aPos, 0., 1.); }"),n=b(r.FRAGMENT_SHADER,i);if(!e||!t||!n)return null;if(r.attachShader(e,t),r.attachShader(e,n),r.linkProgram(e),r.deleteShader(t),r.deleteShader(n),!r.getProgramParameter(e,r.LINK_STATUS))return r.deleteProgram(e),null;r.useProgram(e);let a=r.createBuffer();r.bindBuffer(r.ARRAY_BUFFER,a),r.bufferData(r.ARRAY_BUFFER,new Float32Array([-1,-1,3,-1,-1,3]),r.STATIC_DRAW);let s=r.getAttribLocation(e,"aPos");return r.enableVertexAttribArray(s),r.vertexAttribPointer(s,2,r.FLOAT,!1,0,0),{program:e,buffer:a,uRes:r.getUniformLocation(e,"uRes"),uTime:r.getUniformLocation(e,"uTime"),uScroll:r.getUniformLocation(e,"uScroll"),uBase:r.getUniformLocation(e,"uBase"),uTint:r.getUniformLocation(e,"uTint"),uTint2:r.getUniformLocation(e,"uTint2"),uAmt:r.getUniformLocation(e,"uAmt"),uFade:r.getUniformLocation(e,"uFade"),uShade:r.getUniformLocation(e,"uShade"),uLo:r.getUniformLocation(e,"uLo"),uRip:r.getUniformLocation(e,"uRip")}},w=()=>{t.width=Math.max(2,Math.round(.5*window.innerWidth)),t.height=Math.max(2,Math.round(.5*window.innerHeight)),r.viewport(0,0,t.width,t.height),a&&N(0)},j=()=>{if(!d)return;let e=getComputedStyle(t),n=document.documentElement.classList.contains("dark"),a=l(e.backgroundColor,s),i=l(e.getPropertyValue("--foreground"),s),c=(e,t)=>e+(t-e)*.42,m=n?i:[Math.min(1,1.1*c(i[0],a[0])+.02),c(i[1],a[1])+.01,.92*c(i[2],a[2])],u=e=>[e[0]+(m[0]-e[0])*.78,e[1]+(m[1]-e[1])*.78,e[2]+(m[2]-e[2])*.78];r.uniform3fv(d.uBase,a),r.uniform3fv(d.uTint,u(l(e.color,s))),r.uniform3fv(d.uTint2,u(l(e.getPropertyValue("--info"),o))),r.uniform1f(d.uAmt,n?.16:.45),r.uniform1f(d.uShade,+!n),r.uniform1f(d.uLo,n?.42:.28)},N=e=>{d&&(r.uniform2f(d.uRes,t.width,t.height),r.uniform1f(d.uTime,e/1e3),r.uniform1f(d.uScroll,a?0:22e-5*window.scrollY),r.uniform1f(d.uFade,function(e,t){if(!Number.isFinite(e)||!Number.isFinite(t)||t<=0)return 1;let r=Math.max(0,Math.min(1,(Math.max(0,e)/t-.4)/.44999999999999996));return 1-r*r*(3-2*r)*.5}(window.scrollY,window.innerHeight)),r.uniform3fv(d.uRip,m),r.drawArrays(r.TRIANGLES,0,3))},_=e=>{n=requestAnimationFrame(_),!document.hidden&&d&&(++c%60==1&&j(),N(e))},k=()=>{0===n&&(n=requestAnimationFrame(()=>{n=0,N(0)}))},S=e=>{e.preventDefault(),d=null},M=()=>{(d=y())&&(w(),j(),a&&N(0))};if(d=y())return w(),j(),window.addEventListener("resize",w),t.addEventListener("webglcontextlost",S),t.addEventListener("webglcontextrestored",M),a?(N(0),window.addEventListener("scroll",k,{passive:!0})):(window.addEventListener("pointerdown",f,{passive:!0}),window.addEventListener("pointermove",g,{passive:!0}),window.addEventListener("pointerup",v,{passive:!0}),window.addEventListener("pointercancel",v,{passive:!0}),n=requestAnimationFrame(_)),()=>{cancelAnimationFrame(n),window.removeEventListener("resize",w),window.removeEventListener("scroll",k),window.removeEventListener("pointerdown",f),window.removeEventListener("pointermove",g),window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",v),t.removeEventListener("webglcontextlost",S),t.removeEventListener("webglcontextrestored",M),d&&(r.deleteProgram(d.program),r.deleteBuffer(d.buffer))}},[a]),(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 -bottom-16 top-0",children:(0,t.jsx)("canvas",{ref:e,className:"sticky top-0 block h-screen w-full bg-background text-primary"})})}],157983)},232988,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(553215),a=e.i(452473),i=e.i(970654),s=e.i(528164),o=e.i(702378),l=e.i(682566),c=e.i(13359),d=e.i(252358),m=e.i(232862),u=e.i(678915),h=e.i(99074),x=e.i(501597),p=e.i(270401),f=e.i(977051);e.i(406201);var g=e.i(806024),v=e.i(987511);let b="scroll-mt-[calc(112px+var(--sticky-banner-top,0px))] md:scroll-mt-[var(--sticky-banner-top,0px)]";var y=e.i(299701);function w(e){let t=e.replace("Ori ","").replaceAll(/[<>]/gu,"");return t.charAt(0).toUpperCase()+t.slice(1)}var j=e.i(266698),N=e.i(914468),_=e.i(776571);function k(e){let n=(0,r.c)(26),{line:a}=e;if(a.startsWith("$ ")||a.startsWith("> ")){let e,r,i,s,o;n[0]!==a?(e=a.slice(2).split(" # "),n[0]=a,n[1]=e):e=n[1];let[l,c]=e;return n[2]!==a[0]?(r=(0,t.jsx)("span",{className:"text-[var(--text-faint)]",children:a[0]}),n[2]=a[0],n[3]=r):r=n[3],n[4]!==l?(i=(0,t.jsx)("span",{className:"text-foreground",children:l}),n[4]=l,n[5]=i):i=n[5],n[6]!==c?(s=void 0!==c&&(0,t.jsxs)("span",{className:"text-[var(--text-faint)]",children:[" # ",c]}),n[6]=c,n[7]=s):s=n[7],n[8]!==r||n[9]!==i||n[10]!==s?(o=(0,t.jsxs)(t.Fragment,{children:[r," ",i,s]}),n[8]=r,n[9]=i,n[10]=s,n[11]=o):o=n[11],o}if(a.startsWith("✓ ")){let e,r,i;return n[12]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("span",{className:"text-[var(--positive-text)]",children:"✓"}),n[12]=e):e=n[12],n[13]!==a?(r=a.slice(2),n[13]=a,n[14]=r):r=n[14],n[15]!==r?(i=(0,t.jsxs)(t.Fragment,{children:[e," ",r]}),n[15]=r,n[16]=i):i=n[16],i}if(a.startsWith("→ ")||a.startsWith("» ")){let e,r,i,s;return n[17]!==a[0]?(e=(0,t.jsx)("span",{className:"text-accent-foreground",children:a[0]}),n[17]=a[0],n[18]=e):e=n[18],n[19]!==a?(r=a.slice(2),n[19]=a,n[20]=r):r=n[20],n[21]!==r?(i=(0,t.jsx)("span",{className:"text-muted-foreground",children:r}),n[21]=r,n[22]=i):i=n[22],n[23]!==e||n[24]!==i?(s=(0,t.jsxs)(t.Fragment,{children:[e," ",i]}),n[23]=e,n[24]=i,n[25]=s):s=n[25],s}return a}function S(e){let n,a,i,s=(0,r.c)(7),{line:o,cursor:l}=e;return s[0]!==o?(n=(0,t.jsx)(k,{line:o}),s[0]=o,s[1]=n):n=s[1],s[2]!==l?(a=l&&(0,t.jsx)(_.Cursor,{}),s[2]=l,s[3]=a):a=s[3],s[4]!==n||s[5]!==a?(i=(0,t.jsxs)("div",{children:[n,a]}),s[4]=n,s[5]=a,s[6]=i):i=s[6],i}function M(e){let n,a,i,s=(0,r.c)(5),{glyph:o}=e,l=void 0===o?"$":o;return s[0]!==l?(n=(0,t.jsx)("span",{className:"text-[var(--text-faint)]",children:l}),s[0]=l,s[1]=n):n=s[1],s[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(_.Cursor,{}),s[2]=a):a=s[2],s[3]!==n?(i=(0,t.jsxs)("div",{children:[n,a]}),s[3]=n,s[4]=i):i=s[4],i}let A=["$ ori"],R=["> fix the flaky retry test in auth.spec.ts","✓ patched auth.spec.ts · tests green","> /model gemini-3-pro","✓ switched mid-task, context intact"],C={cps:60,linePause:240};var E=e.i(199479),T=e.i(202913);let L=(0,T.default)("corner-down-left",[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]]),O=(0,T.default)("mouse-pointer-2",[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]]);var I=e.i(812148),z=e.i(320426);let W={title:"Fix flaky auth retry tests",meta:"running · 24m",status:"running"},F={title:"Billing cron → v2 API",meta:"running · 6m",status:"running"},P={title:"August changelog",meta:"running · now",status:"running"},D=[W,F,{title:"August API changelog",meta:"needs review",status:"review"}],H=[W,F],$=[{...P,meta:"needs review",status:"review"},W,F,{title:"Bump deps, fix types",meta:"done · 2h",status:"done"}],B=["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"];function q(e){let n,i,s,o,l=(0,r.c)(10),{status:c}=e,d=(0,m.useReducedMotion)(),[u,h]=(0,p.useState)(0);if(l[0]!==d||l[1]!==c?(n=()=>{if("running"!==c||d)return;let e=setInterval(()=>h(V),80);return()=>clearInterval(e)},i=[c,d],l[0]=d,l[1]=c,l[2]=n,l[3]=i):(n=l[2],i=l[3]),(0,p.useEffect)(n,i),"running"===c){let e,r=B[u]??B[0];return l[4]!==r?(e=(0,t.jsx)("span",{"aria-hidden":!0,className:"flex w-3 shrink-0 justify-center font-mono text-[length:var(--text-overline)] leading-none text-[var(--positive)]",children:r}),l[4]=r,l[5]=e):e=l[5],e}let x="review"===c?"bg-[var(--warning)]":"bg-muted-foreground/50";return l[6]!==x?(s=(0,a.cn)("size-1.5 rounded-[var(--radius-full)]",x),l[6]=x,l[7]=s):s=l[7],l[8]!==s?(o=(0,t.jsx)("span",{className:"flex w-3 shrink-0 justify-center",children:(0,t.jsx)("span",{className:s})}),l[8]=s,l[9]=o):o=l[9],o}function V(e){return(e+1)%B.length}function U(e){let n,i,s,o,l,c=(0,r.c)(14),{session:d,dense:m}=e,u=m?"py-1":"py-1.5";return c[0]!==u?(n=(0,a.cn)("flex items-center gap-2 rounded-[var(--radius-md)] px-1.5",u),c[0]=u,c[1]=n):n=c[1],c[2]!==d.status?(i=(0,t.jsx)(q,{status:d.status}),c[2]=d.status,c[3]=i):i=c[3],c[4]!==d.title?(s=(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-[length:var(--text-overline)] text-foreground",children:d.title}),c[4]=d.title,c[5]=s):s=c[5],c[6]!==m||c[7]!==d.meta?(o=!m&&(0,t.jsx)("span",{className:"shrink-0 text-[length:var(--text-overline)] text-[var(--text-faint)]",children:d.meta}),c[6]=m,c[7]=d.meta,c[8]=o):o=c[8],c[9]!==n||c[10]!==i||c[11]!==s||c[12]!==o?(l=(0,t.jsxs)("div",{className:n,children:[i,s,o]}),c[9]=n,c[10]=i,c[11]=s,c[12]=o,c[13]=l):l=c[13],l}function Y(e){let n,i,s=(0,r.c)(5),{children:o,mono:l}=e,c=l&&"font-mono";return s[0]!==c?(n=(0,a.cn)("flex h-5 shrink-0 items-center gap-1 rounded-[var(--radius-full)] border border-border px-1.5 text-[length:var(--text-overline)] text-muted-foreground",c),s[0]=c,s[1]=n):n=s[1],s[2]!==o||s[3]!==n?(i=(0,t.jsx)("span",{className:n,children:o}),s[2]=o,s[3]=n,s[4]=i):i=s[4],i}function Q(e){let n,i,s,o,l,c,d,m,u,x,p,f,g,v=(0,r.c)(23),{placeholder:b,value:y,full:w}=e;v[0]!==b||v[1]!==y?(n=y?(0,t.jsxs)("span",{className:"min-w-0 truncate text-foreground",children:[y,(0,t.jsx)(_.Cursor,{})]}):(0,t.jsx)("span",{className:"min-w-0 truncate text-[var(--text-faint)]",children:b}),v[0]=b,v[1]=y,v[2]=n):n=v[2];let j=y?"bg-primary text-primary-foreground":"text-muted-foreground/50";return v[3]!==j?(i=(0,a.cn)("ml-auto flex size-5 shrink-0 items-center justify-center rounded-[var(--radius-md)]",j),v[3]=j,v[4]=i):i=v[4],v[5]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(L,{className:"size-3"}),v[5]=s):s=v[5],v[6]!==i?(o=(0,t.jsx)("span",{className:i,children:s}),v[6]=i,v[7]=o):o=v[7],v[8]!==n||v[9]!==o?(l=(0,t.jsxs)("div",{className:"flex h-8 items-center gap-2 px-2.5 text-[length:var(--text-overline)]",children:[n,o]}),v[8]=n,v[9]=o,v[10]=l):l=v[10],v[11]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(Y,{children:"@miko"}),d=(0,t.jsx)(Y,{children:"@pia"}),m=(0,t.jsx)("span",{className:"mx-0.5 h-3.5 w-px shrink-0 bg-border"}),v[11]=c,v[12]=d,v[13]=m):(c=v[11],d=v[12],m=v[13]),v[14]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(z.SquareTerminal,{className:"size-2.5"}),v[14]=u):u=v[14],v[15]===Symbol.for("react.memo_cache_sentinel")?(x=(0,t.jsxs)(Y,{children:[u,"Ori Code",(0,t.jsx)(h.ChevronDown,{className:"size-2.5 opacity-60"})]}),v[15]=x):x=v[15],v[16]!==w?(p=w&&(0,t.jsx)(Y,{mono:!0,children:"openrouter/auto"}),v[16]=w,v[17]=p):p=v[17],v[18]!==p?(f=(0,t.jsxs)("div",{className:"flex items-center gap-1.5 overflow-hidden border-t border-border/40 px-2 py-1",children:[c,d,m,x,p]}),v[18]=p,v[19]=f):f=v[19],v[20]!==f||v[21]!==l?(g=(0,t.jsxs)("div",{className:"rounded-[var(--radius-md)] border border-input bg-background/80",children:[l,f]}),v[20]=f,v[21]=l,v[22]=g):g=v[22],g}function X(e){return e+1}let K=[[1,400],[2,900],[3,1900],[4,3500],[5,4e3],[6,5400]];function G(e){let n,i,o,l,c,d,u,h,x,f,g,v=(0,r.c)(24),{entered:b,onReplay:y}=e,w=(0,m.useReducedMotion)(),[k,S]=(0,p.useState)(0);v[0]!==b||v[1]!==w?(n=()=>{if(!b)return;if(w)return void S(6);let e=K.map(e=>{let[t,r]=e;return window.setTimeout(()=>S(t),r)});return()=>{for(let t of e)window.clearTimeout(t)}},i=[b,w],v[0]=b,v[1]=w,v[2]=n,v[3]=i):(n=v[2],i=v[3]),(0,p.useEffect)(n,i),v[4]===Symbol.for("react.memo_cache_sentinel")?(o=["draft the August changelog"],v[4]=o):o=v[4],v[5]===Symbol.for("react.memo_cache_sentinel")?(l={cps:22},v[5]=l):l=v[5];let[M]=(0,_.useTypedLines)(o,3===k,l),A=3===k?M[0]??"":"";return v[6]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("span",{className:"font-semibold text-foreground",children:"Ori"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"File"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"Edit"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"View"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"Window"})]}),v[6]=c):c=v[6],v[7]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsxs)("div",{className:"flex w-full items-center justify-between rounded-t-[var(--radius-xl)] border border-border bg-[color-mix(in_srgb,hsl(var(--card))_92%,transparent)] px-4 py-1.5 dark:bg-[color-mix(in_srgb,var(--or-cloud)_2%,transparent)] text-[length:var(--text-overline)] text-muted-foreground backdrop-blur-md",children:[c,(0,t.jsxs)("div",{className:"flex items-center gap-4 font-mono",children:[(0,t.jsx)(N.OpenRouterGlyph,{width:14,height:10}),(0,t.jsx)("span",{children:"Wed 9:41 AM"})]})]}),v[7]=d):d=v[7],v[8]!==k||v[9]!==A?(u=k>=1&&k<6&&(0,t.jsxs)(j.motion.div,{initial:{opacity:0,y:-8,scale:.97},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-6,scale:.97},transition:{type:"spring",stiffness:300,damping:24},className:"relative z-10 ml-auto w-full max-w-[280px] origin-top-right rounded-[var(--radius-lg)] border border-border bg-[color-mix(in_srgb,hsl(var(--card))_98%,transparent)] p-2.5 shadow-md backdrop-blur-md dark:bg-[color-mix(in_srgb,var(--or-cloud)_2%,transparent)] sm:absolute sm:right-8 sm:top-2",children:[(0,t.jsx)(Q,{placeholder:"Fire off a task. @intern to delegate, ↵ to run…",value:A}),(0,t.jsxs)("div",{className:"mt-2 flex flex-col",children:[k>=4&&(0,t.jsx)(j.motion.div,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},transition:{type:"spring",stiffness:320,damping:24},children:(0,t.jsx)(U,{session:P})}),(k>=4?H:D).map(ee)]}),(0,t.jsxs)("div",{className:(0,a.cn)("mt-1 flex items-center justify-between rounded-[var(--radius-md)] border-t border-border/50 px-1.5 pb-1 pt-2 text-[length:var(--text-overline)] text-muted-foreground transition-colors",k>=5&&"bg-[var(--card-hover)] text-accent-foreground delay-[800ms]"),children:[(0,t.jsx)("span",{children:"Open Ori…"}),(0,t.jsx)("kbd",{className:"rounded-[var(--radius-sm)] border border-border/60 bg-muted px-1 font-mono text-[var(--text-faint)]",children:"⌘O"})]}),k>=2&&k<5&&(0,t.jsx)(j.motion.div,{initial:{opacity:0,x:90,y:70,scale:1},animate:{opacity:[0,1,1,1,0],x:[90,90,0,0,0],y:[70,70,0,0,0],scale:[1,1,1,.8,1]},transition:{duration:1.3,times:[0,.12,.6,.78,1]},className:"pointer-events-none absolute left-14 top-5 z-20 text-foreground",children:(0,t.jsx)(O,{className:"size-4 drop-shadow-md",fill:"currentColor"})}),k>=5&&(0,t.jsx)(j.motion.div,{initial:{opacity:0,x:70,y:-80,scale:1},animate:{opacity:[0,1,1,1],x:[70,70,0,0],y:[-80,-80,0,0],scale:[1,1,1,.8]},transition:{duration:1.2,times:[0,.15,.75,1]},className:"pointer-events-none absolute bottom-3 left-16 z-20 text-foreground",children:(0,t.jsx)(O,{className:"size-4 drop-shadow-md",fill:"currentColor"})})]},"popover"),v[8]=k,v[9]=A,v[10]=u):u=v[10],v[11]!==k||v[12]!==w?(h=k>=6&&(0,t.jsxs)(j.motion.div,{initial:!w&&{opacity:0,y:10,scale:.97},animate:{opacity:1,y:0,scale:1},transition:{type:"spring",stiffness:260,damping:26},className:"overflow-hidden rounded-[var(--radius-lg)] border border-border bg-[color-mix(in_srgb,hsl(var(--card))_96%,transparent)] shadow-sm backdrop-blur-md dark:bg-[color-mix(in_srgb,var(--or-cloud)_2%,transparent)]",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 border-b border-border/50 px-3 py-2",children:[(0,t.jsxs)("span",{className:"flex gap-1.5",children:[(0,t.jsx)("span",{className:"size-2 rounded-[var(--radius-full)] bg-foreground/15"}),(0,t.jsx)("span",{className:"size-2 rounded-[var(--radius-full)] bg-foreground/15"}),(0,t.jsx)("span",{className:"size-2 rounded-[var(--radius-full)] bg-foreground/15"})]}),(0,t.jsx)("span",{className:"ml-1 font-mono text-[length:var(--text-overline)] text-[var(--text-faint)]",children:"Ori"})]}),(0,t.jsxs)("div",{className:"flex min-h-[300px]",children:[(0,t.jsxs)("div",{className:"hidden w-48 shrink-0 border-r border-border/50 p-2 sm:block",children:[(0,t.jsx)("div",{className:"mb-1 px-1.5 font-mono text-[length:var(--text-overline)] uppercase tracking-[0.12em] text-[var(--text-faint)]",children:"Sessions"}),$.map(Z)]}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 p-4 sm:p-5",children:[(0,t.jsx)("div",{className:"text-[length:var(--text-body)] font-medium text-foreground",children:"What should we work on?"}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(Q,{placeholder:"Fire off a task. @intern to delegate, ↵ to run…",full:!0})}),(0,t.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:["ori claude","ori codex","ori code"].map(J)}),(0,t.jsxs)(j.motion.div,{initial:!w&&{opacity:0,y:6},animate:{opacity:1,y:0},transition:{delay:.5*!w},className:"mt-4 flex items-center gap-2 rounded-[var(--radius-md)] border border-border bg-background/60 px-2.5 py-2",children:[(0,t.jsx)("span",{className:"size-1.5 shrink-0 rounded-[var(--radius-full)] bg-[var(--warning)]"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-[length:var(--text-overline)] text-foreground",children:"August changelog: OK to publish?"}),(0,t.jsx)("span",{className:"shrink-0 rounded-[var(--radius-sm)] border border-border/60 px-1.5 py-0.5 text-[length:var(--text-overline)] text-muted-foreground",children:"Review"})]})]})]})]},"window"),v[11]=k,v[12]=w,v[13]=h):h=v[13],v[14]!==u||v[15]!==h?(x=(0,t.jsx)("div",{className:"relative min-h-[380px] w-full rounded-b-[var(--radius-xl)] border-x border-b border-border bg-background/60 px-4 pb-5 pt-4 sm:px-6 sm:pb-6",children:(0,t.jsxs)(E.AnimatePresence,{mode:"popLayout",children:[u,h]})}),v[14]=u,v[15]=h,v[16]=x):x=v[16],v[17]!==y||v[18]!==k||v[19]!==w?(f=k>=6&&!w&&(0,t.jsx)(j.motion.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},transition:{delay:.8},className:"absolute -top-[76px] right-0",children:(0,t.jsxs)(s.Button,{variant:"outline",size:"sm",onClick:y,children:[(0,t.jsx)(I.RotateCcw,{className:"!size-3.5"}),"Replay the demo"]})}),v[17]=y,v[18]=k,v[19]=w,v[20]=f):f=v[20],v[21]!==f||v[22]!==x?(g=(0,t.jsxs)("div",{className:"relative flex flex-col",children:[d,x,f]}),v[21]=f,v[22]=x,v[23]=g):g=v[23],g}function J(e){return(0,t.jsx)("span",{className:"flex h-6 items-center rounded-[var(--radius-full)] border border-border px-2 font-mono text-[length:var(--text-overline)] text-muted-foreground",children:e},e)}function Z(e){return(0,t.jsx)(U,{session:e,dense:!0},e.title)}function ee(e){return(0,t.jsx)(U,{session:e},e.title)}var et=e.i(682910);function er(e){let n,i,s,o=(0,r.c)(6),{children:l,className:c}=e;return o[0]!==c?(n=(0,a.cn)("relative border border-border backdrop-blur-md","bg-[color-mix(in_srgb,hsl(var(--card))_42%,transparent)]",et.DARK_CARD_SURFACE,c),o[0]=c,o[1]=n):n=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)(_.CornerTicks,{hover:!1}),o[2]=i):i=o[2],o[3]!==l||o[4]!==n?(s=(0,t.jsxs)("div",{className:n,children:[i,l]}),o[3]=l,o[4]=n,o[5]=s):s=o[5],s}function en(e){let n,i,s,o=(0,r.c)(7),{name:l,className:c}=e,d=void 0===c?"size-3":c,m=`url(/images/ori/marks/${l}.svg)`;return o[0]!==d?(n=(0,a.cn)("inline-block shrink-0 bg-current",d),o[0]=d,o[1]=n):n=o[1],o[2]!==m?(i={maskImage:m,maskSize:"contain",maskRepeat:"no-repeat",maskPosition:"center",WebkitMaskImage:m,WebkitMaskSize:"contain",WebkitMaskRepeat:"no-repeat",WebkitMaskPosition:"center"},o[2]=m,o[3]=i):i=o[3],o[4]!==n||o[5]!==i?(s=(0,t.jsx)("span",{"aria-hidden":!0,className:n,style:i}),o[4]=n,o[5]=i,o[6]=s):s=o[6],s}function ea(e){let n,a,i,s=(0,r.c)(4),{className:o}=e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)("path",{fillRule:"evenodd",d:"M165.29 165.29H517.36V400H400V517.36H282.65V634.72H165.29ZM282.65 282.65V400H400V282.65Z"}),a=(0,t.jsx)("path",{d:"M517.36 400H634.72V634.72H517.36Z"}),s[0]=n,s[1]=a):(n=s[0],a=s[1]),s[2]!==o?(i=(0,t.jsxs)("svg",{viewBox:"0 0 800 800",className:o,"aria-hidden":!0,fill:"currentColor",children:[n,a]}),s[2]=o,s[3]=i):i=s[3],i}function ei(e){let n,i,s,o,l,c,d,u,h,x,p,f,g,v,b,y=(0,r.c)(37),{name:w,mark:N,score:_,asserts:k,width:S,winner:M,delay:A}=e,R=(0,m.useReducedMotion)(),C=M?"text-accent-foreground":"text-muted-foreground";y[0]!==C?(n=(0,a.cn)("flex w-32 shrink-0 items-center gap-1.5 sm:w-40",C),y[0]=C,y[1]=n):n=y[1],y[2]!==N?(i=(0,t.jsx)(en,{name:N,className:"size-3 shrink-0"}),y[2]=N,y[3]=i):i=y[3],y[4]!==w?(s=(0,t.jsx)("span",{className:"truncate",children:w}),y[4]=w,y[5]=s):s=y[5],y[6]!==n||y[7]!==i||y[8]!==s?(o=(0,t.jsxs)("span",{className:n,children:[i,s]}),y[6]=n,y[7]=i,y[8]=s,y[9]=o):o=y[9],y[10]!==R?(l=!R&&{width:0},y[10]=R,y[11]=l):l=y[11],y[12]!==S?(c={width:S},y[12]=S,y[13]=c):c=y[13],y[14]===Symbol.for("react.memo_cache_sentinel")?(d={once:!0,margin:"-80px"},y[14]=d):d=y[14],y[15]===Symbol.for("react.memo_cache_sentinel")?(u=[.21,.6,.35,1],y[15]=u):u=y[15],y[16]!==A?(h={duration:.9,delay:A,ease:u},y[16]=A,y[17]=h):h=y[17];let E=M?"bg-accent-foreground":"bg-foreground/25";y[18]!==E?(x=(0,a.cn)("h-full rounded-[var(--radius-full)]",E),y[18]=E,y[19]=x):x=y[19],y[20]!==h||y[21]!==x||y[22]!==l||y[23]!==c?(p=(0,t.jsx)("div",{className:"h-1.5 flex-1 rounded-[var(--radius-full)] bg-foreground/10",children:(0,t.jsx)(j.motion.div,{initial:l,whileInView:c,viewport:d,transition:h,className:x})}),y[20]=h,y[21]=x,y[22]=l,y[23]=c,y[24]=p):p=y[24],y[25]!==k?(f=(0,t.jsx)("span",{className:"hidden w-16 shrink-0 text-right text-[var(--text-faint)] sm:inline",children:k}),y[25]=k,y[26]=f):f=y[26];let T=M?"font-medium text-accent-foreground":"text-muted-foreground";return y[27]!==T?(g=(0,a.cn)("w-10 shrink-0 text-right",T),y[27]=T,y[28]=g):g=y[28],y[29]!==_||y[30]!==g?(v=(0,t.jsx)("span",{className:g,children:_}),y[29]=_,y[30]=g,y[31]=v):v=y[31],y[32]!==p||y[33]!==f||y[34]!==v||y[35]!==o?(b=(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[o,p,f,v]}),y[32]=p,y[33]=f,y[34]=v,y[35]=o,y[36]=b):b=y[36],b}let es={claude:{welcome:"Welcome to Claude Code",model:"anthropic/claude-opus-latest",mark:{kind:"asset",name:"claude"}},codex:{welcome:"Welcome to Codex",model:"openai/gpt-5.3-codex",mark:{kind:"asset",name:"openai"}},hermes:{welcome:"Welcome to Hermes",model:"nousresearch/hermes-4-405b",mark:{kind:"asset",name:"nousresearch"}},opencode:{welcome:"Welcome to opencode",model:"openrouter/auto",mark:{kind:"asset",name:"opencode"}},pi:{welcome:"Welcome to pi",model:"openrouter/auto",mark:{kind:"pi"}},grok:{welcome:"Welcome to Grok Build",model:"x-ai/grok-4.5",mark:{kind:"asset",name:"grok"}},"prime-agent":{welcome:"Welcome to Prime Agent",model:"openrouter/auto",mark:{kind:"asset",name:"primeintellect"}}},eo=["claude","codex","hermes","opencode","pi","grok","prime-agent"],el={cps:60,linePause:240};function ec(e){let n=(0,r.c)(3),{mark:a}=e;switch(a.kind){case"asset":{let e;return n[0]!==a.name?(e=(0,t.jsx)(en,{name:a.name,className:"size-3"}),n[0]=a.name,n[1]=e):e=n[1],e}case"pi":{let e;return n[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(ea,{className:"size-3 shrink-0"}),n[2]=e):e=n[2],e}default:return a}}function ed(e){let n,a,i,s,o=(0,r.c)(15),{label:l,harness:c,entered:d}=e,u=(0,m.useReducedMotion)(),h=`$ ori ${l}`;o[0]!==h?(n=[h],o[0]=h,o[1]=n):n=o[1];let[x,p]=(0,_.useTypedLines)(n,d,el);if(o[2]!==p||o[3]!==x){let e;o[5]!==p||o[6]!==x.length?(e=(e,r)=>{let n=`${r}-${e}`;return(0,t.jsx)(S,{line:e,cursor:r===x.length-1&&!p},n)},o[5]=p,o[6]=x.length,o[7]=e):e=o[7],a=x.map(e),o[2]=p,o[3]=x,o[4]=a}else a=o[4];return o[8]!==p||o[9]!==c||o[10]!==u?(i=p&&(0,t.jsxs)(j.motion.div,{initial:!u&&{opacity:0,y:4},animate:{opacity:1,y:0},transition:{duration:.35,ease:"easeOut"},className:"mt-2",children:[(0,t.jsxs)("div",{className:"w-fit max-w-full border border-border/70 px-3.5 py-2.5 leading-[1.9]",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-foreground",children:[(0,t.jsx)(ec,{mark:c.mark}),c.welcome]}),(0,t.jsxs)("div",{children:["model: ",c.model]}),(0,t.jsx)("div",{children:"auth: OpenRouter · org guardrails on"})]}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(M,{glyph:">"})})]}),o[8]=p,o[9]=c,o[10]=u,o[11]=i):i=o[11],o[12]!==a||o[13]!==i?(s=(0,t.jsxs)("div",{className:"min-h-[13.5em] text-muted-foreground",children:[a,i]}),o[12]=a,o[13]=i,o[14]=s):s=o[14],s}var em=e.i(699937),eu=e.i(283529),eh=e.i(662886);let ex=(0,T.default)("thumbs-up",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]),ep=(0,T.default)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),ef={hidden:{opacity:0,y:6},show:{opacity:1,y:0,transition:{duration:.35,ease:"easeOut"}}};function eg(e){let n,a,i,s=(0,r.c)(9),{children:o,className:l,step:c,delay:d}=e,u=void 0===c?.45:c,h=void 0===d?.15:d,x=!(0,m.useReducedMotion)()&&"hidden";return s[0]===Symbol.for("react.memo_cache_sentinel")?(n={once:!0,margin:"-80px"},s[0]=n):n=s[0],s[1]!==h||s[2]!==u?(a={show:{transition:{staggerChildren:u,delayChildren:h}}},s[1]=h,s[2]=u,s[3]=a):a=s[3],s[4]!==o||s[5]!==l||s[6]!==x||s[7]!==a?(i=(0,t.jsx)(j.motion.div,{className:l,initial:x,whileInView:"show",viewport:n,variants:a,children:o}),s[4]=o,s[5]=l,s[6]=x,s[7]=a,s[8]=i):i=s[8],i}function ev(e){let n,a=(0,r.c)(3),{children:i,className:s}=e;return a[0]!==i||a[1]!==s?(n=(0,t.jsx)(j.motion.div,{variants:ef,className:s,children:i}),a[0]=i,a[1]=s,a[2]=n):n=a[2],n}let eb=[{name:"ori",skills:7},{name:"miko",skills:12},{name:"pia",skills:4}];function ey(e){return(0,t.jsxs)("span",{className:"flex items-center gap-1.5 rounded-[var(--radius-full)] border border-border/60 bg-background/60 px-2 py-0.5 font-mono text-[length:var(--text-overline)] text-muted-foreground",children:[e.name,(0,t.jsxs)("span",{className:"text-[var(--text-faint)]",children:["· ",e.skills," skills"]})]},e.name)}let ew={code:function(){let e,n,a,i,s,o,l,c,d,u,h,x=(0,r.c)(29),f=(0,m.useReducedMotion)(),[g,v]=(0,_.useEnteredView)();x[0]===Symbol.for("react.memo_cache_sentinel")?(e=[...A],x[0]=e):e=x[0];let[b,y]=(0,_.useTypedLines)(e,v,C),[w,k]=(0,p.useState)(0);x[1]!==y||x[2]!==f?(n=()=>{if(!y)return;if(f)return void k(2);let e=window.setTimeout(()=>k(1),450),t=window.setTimeout(()=>k(2),1150);return()=>{window.clearTimeout(e),window.clearTimeout(t)}},a=[y,f],x[1]=y,x[2]=f,x[3]=n,x[4]=a):(n=x[3],a=x[4]),(0,p.useEffect)(n,a),x[5]===Symbol.for("react.memo_cache_sentinel")?(i=[...R],x[5]=i):i=x[5];let[E,T]=(0,_.useTypedLines)(i,w>=2,C);if(x[6]!==y||x[7]!==b){let e;x[9]!==y||x[10]!==b.length?(e=(e,r)=>{let n=`${r}-${e}`;return(0,t.jsx)(S,{line:e,cursor:!y&&r===b.length-1},n)},x[9]=y,x[10]=b.length,x[11]=e):e=x[11],s=b.map(e),x[6]=y,x[7]=b,x[8]=s}else s=x[8];return x[12]!==w||x[13]!==f?(o=w>=1&&(0,t.jsx)(j.motion.div,{initial:!f&&{opacity:0,y:4},animate:{opacity:1,y:0},transition:{duration:.35,ease:"easeOut"},className:"mt-2",children:(0,t.jsxs)("div",{className:"w-fit max-w-full border border-border/70 px-3.5 py-2.5 leading-[1.9]",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-foreground",children:[(0,t.jsx)(N.OpenRouterGlyph,{width:14,height:10}),"Welcome to Ori"]}),(0,t.jsx)("div",{children:"model: openrouter/auto"}),(0,t.jsx)("div",{children:"auth: OpenRouter · no API keys needed"})]})}),x[12]=w,x[13]=f,x[14]=o):o=x[14],x[15]!==w||x[16]!==E||x[17]!==T?(l=w>=2&&(0,t.jsxs)("div",{className:"mt-2",children:[E.map((e,r)=>{let n=`${r}-${e}`;return(0,t.jsx)(S,{line:e,cursor:!T&&r===E.length-1},n)}),T&&(0,t.jsx)(M,{glyph:">"})]}),x[15]=w,x[16]=E,x[17]=T,x[18]=l):l=x[18],x[19]!==s||x[20]!==o||x[21]!==l?(c=(0,t.jsxs)("div",{className:"min-h-[21.5em] text-muted-foreground",children:[s,o,l]}),x[19]=s,x[20]=o,x[21]=l,x[22]=c):c=x[22],x[23]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsxs)("div",{className:"mt-3 flex items-center justify-between gap-3 border-t border-border/50 pt-2.5 text-[var(--text-faint)]",children:[(0,t.jsx)("span",{className:"truncate",children:"gemini-3-pro · via OpenRouter"}),(0,t.jsx)("span",{className:"shrink-0",children:"12.4k tokens · $0.08"})]}),x[23]=d):d=x[23],x[24]!==c?(u=(0,t.jsxs)(_.Terminal,{title:"ori · zsh",bodyClassName:"leading-[2]",children:[c,d]}),x[24]=c,x[25]=u):u=x[25],x[26]!==g||x[27]!==u?(h=(0,t.jsx)("div",{ref:g,children:u}),x[26]=g,x[27]=u,x[28]=h):h=x[28],h},harness:function(){let e,i,s,o,l,c=(0,r.c)(16),m=(0,d.usePosthogClient)(),[u,h]=(0,_.useEnteredView)(),[x,f]=(0,p.useState)("claude"),g=es[x];c[0]!==m||c[1]!==x?(e=eo.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>{m.capture(n.PostHogEvent.SelectOriHarnessDemo,{harness:e}),f(e)},"aria-pressed":x===e,className:(0,a.cn)("flex min-h-8 cursor-pointer items-center gap-1.5 rounded-[var(--radius-full)] px-2.5 transition-colors",x===e?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-[var(--card-hover)] hover:text-accent-foreground"),children:[(0,t.jsx)(ec,{mark:es[e].mark}),e]},e)),c[0]=m,c[1]=x,c[2]=e):e=c[2],c[3]!==e?(i=(0,t.jsx)("div",{className:"mb-3 flex flex-wrap items-center gap-1 font-mono text-[length:var(--text-overline)]",children:e}),c[3]=e,c[4]=i):i=c[4];let v=`ori ${x} \xb7 zsh`;return c[5]!==h||c[6]!==g||c[7]!==x?(s=(0,t.jsx)(ed,{label:x,harness:g,entered:h},x),c[5]=h,c[6]=g,c[7]=x,c[8]=s):s=c[8],c[9]!==v||c[10]!==s?(o=(0,t.jsx)(_.Terminal,{title:v,bodyClassName:"leading-[2]",children:s}),c[9]=v,c[10]=s,c[11]=o):o=c[11],c[12]!==u||c[13]!==i||c[14]!==o?(l=(0,t.jsxs)("div",{ref:u,children:[i,o]}),c[12]=u,c[13]=i,c[14]=o,c[15]=l):l=c[15],l},eval:function(){let e,n,a,i,s,o,l,c,d,u,h=(0,r.c)(14),x=(0,m.useReducedMotion)();h[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)("div",{className:"mb-3 flex items-center justify-between gap-3 font-mono text-[length:var(--text-overline)] text-[var(--text-faint)]",children:[(0,t.jsx)("span",{className:"truncate",children:"ori eval · standup-summarizer · 120 prompts"}),(0,t.jsx)("span",{className:"shrink-0",children:"run #42"})]}),h[0]=e):e=h[0],h[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsxs)("div",{className:"mb-2 flex items-center gap-3 font-mono text-[length:var(--text-overline)] uppercase tracking-[0.1em] text-[var(--text-faint)]",children:[(0,t.jsx)("span",{className:"w-32 shrink-0 sm:w-40",children:"model"}),(0,t.jsx)("span",{className:"flex-1"}),(0,t.jsx)("span",{className:"hidden w-16 shrink-0 text-right sm:inline",children:"asserts"}),(0,t.jsx)("span",{className:"w-10 shrink-0 text-right",children:"score"})]}),h[1]=n):n=h[1],h[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsxs)("div",{className:"flex flex-col gap-3 font-mono text-[length:var(--text-overline)]",children:[(0,t.jsx)(ei,{name:"claude-sonnet-5",mark:"claude",score:"91.6",asserts:"120/120",width:"91%",winner:!0,delay:.15}),(0,t.jsx)(ei,{name:"gemini-3.8-flash",mark:"gemini",score:"84.2",asserts:"117/120",width:"78%",delay:.4}),(0,t.jsx)(ei,{name:"deepseek-v4-pro",mark:"deepseek",score:"78.9",asserts:"112/120",width:"69%",delay:.65})]}),h[2]=a):a=h[2],h[3]!==x?(i=!x&&{opacity:0},h[3]=x,h[4]=i):i=h[4],h[5]===Symbol.for("react.memo_cache_sentinel")?(s={opacity:1},o={once:!0,margin:"-80px"},h[5]=s,h[6]=o):(s=h[5],o=h[6]);let p=1.6*!x;return h[7]!==p?(l={delay:p,duration:.5},h[7]=p,h[8]=l):l=h[8],h[9]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)("span",{className:"text-foreground",children:"◆"}),h[9]=c):c=h[9],h[10]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsxs)("span",{className:"flex items-center gap-1.5",children:["judged by",(0,t.jsx)(en,{name:"openai",className:"size-3 shrink-0"}),"gpt-5.6-terra"]}),h[10]=d):d=h[10],h[11]!==i||h[12]!==l?(u=(0,t.jsxs)(er,{className:"p-5",children:[e,n,a,(0,t.jsxs)(j.motion.div,{initial:i,whileInView:s,viewport:o,transition:l,className:"mt-4 flex items-center gap-2 border-t border-border/50 pt-3 font-mono text-[length:var(--text-overline)] text-muted-foreground",children:[c,d]})]}),h[11]=i,h[12]=l,h[13]=u):u=h[13],u},intern:function(){let e,n,a,i,s,o,l,c,d,u,h,x,p,f,g,v,b,y,w,_,k,S,M,A,R,C,E=(0,r.c)(37),T=(0,m.useReducedMotion)();E[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-[length:var(--text-body)] font-semibold text-foreground",children:[(0,t.jsx)(eu.Hash,{className:"size-3.5 text-muted-foreground"}),"team-updates"]}),E[0]=e):e=E[0],E[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(ep,{className:"size-3"}),"24"]}),E[1]=n):n=E[1],E[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-border/50 px-5 py-2.5",children:[e,(0,t.jsxs)("div",{className:"flex items-center gap-3 font-mono text-[length:var(--text-overline)] text-[var(--text-faint)]",children:[n,(0,t.jsxs)("span",{className:"flex items-center gap-1.5 text-muted-foreground",children:[(0,t.jsx)(eh.Slack,{className:"size-3"}),"Slack"]})]})]}),E[2]=a):a=E[2],E[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)("div",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-[var(--radius-md)] bg-foreground/10 font-mono text-[length:var(--text-overline)]",children:"L"}),E[3]=i):i=E[3],E[4]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsxs)("div",{className:"font-medium",children:["lab"," ",(0,t.jsx)("span",{className:"ml-1 font-mono text-[length:var(--text-overline)] font-normal text-[var(--text-faint)]",children:"9:41 AM"})]}),E[4]=s):s=E[4],E[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsxs)(ev,{className:"flex gap-3",children:[i,(0,t.jsxs)("div",{className:"min-w-0",children:[s,(0,t.jsxs)("p",{className:"text-muted-foreground",children:[(0,t.jsx)("span",{className:"text-accent-foreground",children:"@ori"})," every Friday, pull together what shipped this week into a short update for the team"]})]})]}),E[5]=o):o=E[5],E[6]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)("div",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-[var(--radius-md)] border border-border",children:(0,t.jsx)(N.OpenRouterGlyph,{width:14,height:10})}),E[6]=l):l=E[6],E[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)("span",{className:"rounded-[var(--radius-sm)] bg-foreground/10 px-1 py-px font-mono text-[length:var(--text-overline)] font-normal text-[var(--text-faint)]",children:"APP"}),E[7]=c):c=E[7],E[8]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsxs)("div",{className:"font-medium",children:["ori ",c," ",(0,t.jsx)("span",{className:"ml-0.5 font-mono text-[length:var(--text-overline)] font-normal text-[var(--text-faint)]",children:"9:41 AM"})]}),u=(0,t.jsx)("p",{className:"text-muted-foreground",children:"Learned it. First run this Friday, 9:00. I'll post the draft here."}),E[8]=d,E[9]=u):(d=E[8],u=E[9]),E[10]!==T?(h=!T&&{opacity:0,scale:.92},E[10]=T,E[11]=h):h=E[11],E[12]===Symbol.for("react.memo_cache_sentinel")?(x={opacity:1,scale:1},p={once:!0,margin:"-80px"},E[12]=x,E[13]=p):(x=E[12],p=E[13]);let L=2.1*!T;E[14]!==L?(f={delay:L,type:"spring",stiffness:320,damping:22},E[14]=L,E[15]=f):f=E[15],E[16]===Symbol.for("react.memo_cache_sentinel")?(g=(0,t.jsx)(em.Check,{className:"size-3 text-[var(--positive-text)]"}),E[16]=g):g=E[16],E[17]!==h||E[18]!==f?(v=(0,t.jsxs)(j.motion.div,{initial:h,whileInView:x,viewport:p,transition:f,className:"mt-2.5 flex w-fit items-center gap-2 rounded-[var(--radius-md)] border border-border/50 bg-background/80 px-2.5 py-1.5 font-mono text-[length:var(--text-overline)] text-muted-foreground",children:[g,"skills/weekly-update.md"]}),E[17]=h,E[18]=f,E[19]=v):v=E[19],E[20]!==T?(b=!T&&{opacity:0,scale:.9},E[20]=T,E[21]=b):b=E[21],E[22]===Symbol.for("react.memo_cache_sentinel")?(y={opacity:1,scale:1},w={once:!0,margin:"-80px"},E[22]=y,E[23]=w):(y=E[22],w=E[23]);let O=2.6*!T;return E[24]!==O?(_={delay:O,type:"spring",stiffness:320,damping:22},E[24]=O,E[25]=_):_=E[25],E[26]===Symbol.for("react.memo_cache_sentinel")?(k=(0,t.jsx)(ex,{className:"size-3"}),S=(0,t.jsx)("span",{className:"font-mono",children:"2"}),E[26]=k,E[27]=S):(k=E[26],S=E[27]),E[28]!==b||E[29]!==_?(M=(0,t.jsxs)(j.motion.div,{initial:b,whileInView:y,viewport:w,transition:_,className:"mt-2 flex w-fit items-center gap-1.5 rounded-[var(--radius-full)] border border-[var(--accent-border)] bg-[var(--accent-subtle)] px-2 py-0.5 text-[length:var(--text-overline)] text-accent-foreground",children:[k,S]}),E[28]=b,E[29]=_,E[30]=M):M=E[30],E[31]!==v||E[32]!==M?(A=(0,t.jsxs)(eg,{step:.8,className:"flex flex-col gap-4 p-5 text-[length:var(--text-body)]",children:[o,(0,t.jsxs)(ev,{className:"flex gap-3",children:[l,(0,t.jsxs)("div",{className:"min-w-0",children:[d,u,v,M]})]})]}),E[31]=v,E[32]=M,E[33]=A):A=E[33],E[34]===Symbol.for("react.memo_cache_sentinel")?(R=(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5 border-t border-border/50 px-5 py-3",children:[(0,t.jsx)("span",{className:"mr-1 font-mono text-[length:var(--text-overline)] uppercase tracking-[0.12em] text-[var(--text-faint)]",children:"your interns"}),eb.map(ey),(0,t.jsx)("span",{className:"flex items-center rounded-[var(--radius-full)] border border-dashed border-border/60 px-2 py-0.5 font-mono text-[length:var(--text-overline)] text-[var(--text-faint)]",children:"+ new intern"})]}),E[34]=R):R=E[34],E[35]!==A?(C=(0,t.jsxs)(er,{children:[a,A,R]}),E[35]=A,E[36]=C):C=E[36],C},desktop:function(){let e,n,a,i=(0,r.c)(7),[s,o]=(0,_.useEnteredView)(),[l,c]=(0,p.useState)(0);return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>c(X),i[0]=e):e=i[0],i[1]!==o||i[2]!==l?(n=(0,t.jsx)(G,{entered:o,onReplay:e},l),i[1]=o,i[2]=l,i[3]=n):n=i[3],i[4]!==s||i[5]!==n?(a=(0,t.jsx)("div",{ref:s,children:n}),i[4]=s,i[5]=n,i[6]=a):a=i[6],a}};var ej=e.i(805760);let eN="empty",e_="malformed";var ek=e.i(161256),eS=e.i(283616),eM=e.i(622717);function eA(e){let n,i,s,o,l,c,d,h,x,f,g,y,w,N,k,S=(0,r.c)(47),{index:M}=e,A=(0,m.useReducedMotion)(),R=(0,p.useId)(),{stage:C,email:T,setEmail:L,touched:O,setTouched:I,didAttemptSubmit:z,submitEmail:W,submitFailure:F,openQuestions:P,answeredCount:D,canResumeQuestions:H,step:$}=(0,eM.useWaitlist)();S[0]!==z||S[1]!==T||S[2]!==F||S[3]!==O?(n=function({error:e,submitFailure:t}){if(void 0!==e)switch(e){case eN:return{message:v.HERO.emptyEmail,isValueError:!0};case e_:return{message:v.HERO.invalidEmail,isValueError:!0};default:return e}if(null!==t)switch(t){case ek.WaitlistSubmitFailure.RejectedEmail:return{message:v.HERO.invalidEmail,isValueError:!0};case ek.WaitlistSubmitFailure.RateLimited:return{message:v.HERO.rateLimited,isValueError:!1};case ek.WaitlistSubmitFailure.SaveFailed:return{message:v.HERO.submitFailed,isValueError:!1};default:return t}}({error:function({email:e,touched:t,didAttemptSubmit:r}){return 0===e.trim().length?r?eN:void 0:t&&!(0,ej.looksLikeEmail)(e)?e_:void 0}({email:T,touched:O,didAttemptSubmit:z}),submitFailure:F}),S[0]=z,S[1]=T,S[2]=F,S[3]=O,S[4]=n):n=S[4];let B=n,q=D(eS.ALL_ANSWER_IDS);S[5]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.cn)("relative overflow-hidden border-t border-border/40 py-16 md:py-20",b),S[5]=i):i=S[5],S[6]!==M?(s=(0,t.jsx)("div",{className:"flex min-h-9 items-center",children:(0,t.jsx)(_.Kicker,{index:M,children:v.WAITLIST.kicker})}),S[6]=M,S[7]=s):s=S[7],S[8]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)("h2",{className:"font-brand text-balance text-[length:var(--text-display)] font-bold leading-[1.2] tracking-tight md:text-[length:var(--text-hero)]",children:v.WAITLIST.title}),S[8]=o):o=S[8],S[9]!==C?(l=C===eM.WaitlistStage.Email&&(0,t.jsx)("p",{className:"max-w-xl text-pretty text-[length:var(--text-prose)] leading-[var(--leading-prose)] text-muted-foreground",children:v.WAITLIST.body}),S[9]=C,S[10]=l):l=S[10],S[11]!==s||S[12]!==l?(c=(0,t.jsxs)(_.Reveal,{className:"flex flex-col items-start gap-5",children:[s,o,l]}),S[11]=s,S[12]=l,S[13]=c):c=S[13],S[14]===Symbol.for("react.memo_cache_sentinel")?(d=(0,a.cn)("relative border border-border/50 p-6 backdrop-blur-md md:p-8","bg-[color-mix(in_srgb,hsl(var(--card))_42%,transparent)]",et.DARK_CARD_SURFACE),h=(0,t.jsx)(_.CornerTicks,{hover:!1}),S[14]=d,S[15]=h):(d=S[14],h=S[15]),S[16]!==T||S[17]!==R||S[18]!==B||S[19]!==A||S[20]!==L||S[21]!==I||S[22]!==C||S[23]!==W?(x=C===eM.WaitlistStage.Email&&(0,t.jsxs)(j.motion.form,{initial:!A&&{opacity:0,y:8},animate:{opacity:1,y:0},exit:A?{opacity:0}:{opacity:0,y:-8},transition:{duration:.3},onSubmit:e=>{e.preventDefault(),W()},className:"flex flex-col gap-3",noValidate:!0,children:[(0,t.jsx)("label",{htmlFor:R,className:"font-mono text-[length:var(--text-overline)] uppercase tracking-[0.14em] text-muted-foreground",children:v.WAITLIST.emailLabel}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center",children:[(0,t.jsx)("input",{id:R,type:"email",inputMode:"email",autoComplete:"email",value:T,onChange:e=>L(e.target.value),onBlur:()=>I(!0),placeholder:v.HERO.emailPlaceholder,"aria-invalid":B?.isValueError||void 0,"aria-describedby":B?`${R}-err`:void 0,className:(0,a.cn)("h-11 rounded-[var(--radius-md)] border px-3.5 text-[length:var(--text-prose)] text-foreground placeholder:text-[var(--text-faint)] outline-none transition-colors focus-visible:border-[hsl(var(--primary))]","bg-[var(--input-bg)] sm:flex-1",B?"border-[var(--negative)]":"border-input")}),(0,t.jsxs)("button",{type:"submit",className:"inline-flex h-11 shrink-0 cursor-pointer items-center justify-center gap-2 px-5 rounded-[var(--radius-md)] bg-primary text-primary-foreground text-[length:var(--text-button)] font-medium transition-all hover:bg-[var(--accent-hover)] active:scale-[0.98]",children:[v.WAITLIST.submit,(0,t.jsx)(u.ArrowRight,{className:"size-4"})]})]}),(0,t.jsx)("p",{id:`${R}-err`,className:"text-[length:var(--text-overline)] text-[var(--negative-text)] empty:hidden",children:B?.message})]},"email"),S[16]=T,S[17]=R,S[18]=B,S[19]=A,S[20]=L,S[21]=I,S[22]=C,S[23]=W,S[24]=x):x=S[24],S[25]!==q||S[26]!==H||S[27]!==P||S[28]!==A||S[29]!==C||S[30]!==$?(f=C===eM.WaitlistStage.Questions&&(0,t.jsxs)(j.motion.div,{initial:!A&&{opacity:0,y:8},animate:{opacity:1,y:0},exit:A?{opacity:0}:{opacity:0,y:-8},transition:{duration:.3},className:"flex flex-col items-start gap-4",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-2 rounded-[var(--radius-full)] border border-[var(--positive)]/40 bg-[var(--positive-bg)] px-3 py-1",children:[(0,t.jsx)(em.Check,{className:"size-3.5 text-[var(--positive-text)]"}),(0,t.jsx)("span",{className:"font-mono text-[length:var(--text-overline)] uppercase tracking-[0.14em] text-[var(--positive-text)]",children:v.WAITLIST.thanksTitle})]}),H&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"max-w-xl text-pretty text-[length:var(--text-prose)] leading-[var(--leading-prose)] text-muted-foreground",children:v.WAITLIST.thanksBody}),(0,t.jsxs)("button",{type:"button",onClick:P,className:(0,a.cn)("inline-flex min-h-10 cursor-pointer items-center gap-2 px-4","rounded-[var(--radius-md)] bg-primary text-primary-foreground","text-[length:var(--text-button)] font-medium","transition-all hover:bg-[var(--accent-hover)] active:scale-[0.98]"),children:[$>0||q>0?v.WAITLIST.resumeDone:v.WAITLIST.resume,(0,t.jsx)(u.ArrowRight,{className:"size-4"})]})]})]},"captured"),S[25]=q,S[26]=H,S[27]=P,S[28]=A,S[29]=C,S[30]=$,S[31]=f):f=S[31],S[32]!==A||S[33]!==C?(g=C===eM.WaitlistStage.Done&&(0,t.jsxs)(j.motion.div,{initial:!A&&{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.3},className:"flex flex-col items-start gap-4 py-2 text-left",children:[(0,t.jsx)("span",{className:"flex size-10 items-center justify-center rounded-[var(--radius-full)] bg-[var(--positive-bg)]",children:(0,t.jsx)(em.Check,{className:"size-5 text-[var(--positive-text)]"})}),(0,t.jsx)("h3",{className:"font-brand text-balance text-[length:var(--text-title)] font-bold leading-[1.15] tracking-tight",children:v.WAITLIST.doneTitle}),(0,t.jsx)("p",{className:"max-w-md text-pretty text-[length:var(--text-prose)] leading-[var(--leading-prose)] text-muted-foreground",children:v.WAITLIST.doneBody})]},"done"),S[32]=A,S[33]=C,S[34]=g):g=S[34],S[35]!==f||S[36]!==g||S[37]!==x?(y=(0,t.jsx)("div",{className:"group relative bg-background",children:(0,t.jsxs)("div",{className:d,children:[h,(0,t.jsxs)(E.AnimatePresence,{mode:"wait",children:[x,f,g]})]})}),S[35]=f,S[36]=g,S[37]=x,S[38]=y):y=S[38];let V=B?.message;return S[39]!==V?(w=(0,t.jsx)("p",{role:"alert",className:"sr-only",children:V}),S[39]=V,S[40]=w):w=S[40],S[41]!==y||S[42]!==w?(N=(0,t.jsxs)(_.Reveal,{delay:.12,children:[y,w]}),S[41]=y,S[42]=w,S[43]=N):N=S[43],S[44]!==N||S[45]!==c?(k=(0,t.jsx)("section",{id:"waitlist",className:i,children:(0,t.jsxs)("div",{className:"relative flex max-w-2xl flex-col gap-10",children:[c,N]})}),S[44]=N,S[45]=c,S[46]=k):k=S[46],k}let eR={live:"Live",waitlist:"Waitlist"};function eC(e){let n,a=(0,r.c)(2),{status:s}=e,o=eR[s];return a[0]!==o?(n=(0,t.jsx)(i.Badge,{className:"bg-foreground/5 text-muted-foreground",children:o}),a[0]=o,a[1]=n):n=a[1],n}function eE(e){let i,s,l,c,m,u,h=(0,r.c)(14),{value:x,className:f,product:g}=e,v=(0,p.useRef)(null),b=(0,d.usePosthogClient)();return h[0]!==b||h[1]!==g?(i=e=>{e.isTrusted&&b.capture(n.PostHogEvent.CopyOriCommand,{product:g}),e.target instanceof Element&&e.target.closest("button")||v.current?.querySelector("button")?.click()},h[0]=b,h[1]=g,h[2]=i):i=h[2],h[3]!==f?(s=(0,a.cn)("flex h-10 min-h-10 cursor-pointer items-center gap-2 rounded-[var(--radius-md)] border border-input pl-4 pr-1 font-mono text-[length:var(--text-overline)] text-foreground transition-colors hover:border-foreground/20","bg-[color-mix(in_srgb,hsl(var(--background))_42%,transparent)]","dark:bg-[color-mix(in_srgb,hsl(var(--background))_92%,transparent)]",f),h[3]=f,h[4]=s):s=h[4],h[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)("span",{className:"text-accent-foreground",children:"$"}),h[5]=l):l=h[5],h[6]!==x?(c=(0,t.jsx)("span",{className:"min-w-0 flex-1 overflow-x-auto whitespace-nowrap scrollbar-hide",children:x}),m=(0,t.jsx)(o.CopyToClipboardButton,{text:x,hideCopyText:!0,variant:"ghost",size:"icon-sm",className:"ml-auto shrink-0"}),h[6]=x,h[7]=c,h[8]=m):(c=h[7],m=h[8]),h[9]!==i||h[10]!==s||h[11]!==c||h[12]!==m?(u=(0,t.jsxs)("div",{ref:v,title:"Copy",onClick:i,className:s,children:[l,c,m]}),h[9]=i,h[10]=s,h[11]=c,h[12]=m,h[13]=u):u=h[13],u}function eT(e){let n,a,i=(0,r.c)(13),{product:o}=e,{cta:l}=o,c=(0,f.useFeatureFlag)("oriCode"),d=!l.isLandingGated||c;if("docs"===l.kind){let e,r,n;return i[0]!==l.command||i[1]!==o.id?(e=l.command&&(0,t.jsx)(eE,{value:l.command,product:o.id,className:"w-full min-w-0 sm:w-auto sm:flex-1"}),i[0]=l.command,i[1]=o.id,i[2]=e):e=i[2],i[3]!==d||i[4]!==l.href||i[5]!==l.label?(r=l.href&&d&&(0,t.jsx)(s.Button,{variant:"outline",className:"ml-0 sm:ml-auto",render:(0,t.jsxs)(g.Link,{href:l.href,children:[l.label," ",(0,t.jsx)(u.ArrowRight,{})]})}),i[3]=d,i[4]=l.href,i[5]=l.label,i[6]=r):r=i[6],i[7]!==e||i[8]!==r?(n=(0,t.jsxs)("div",{className:"flex w-full flex-wrap items-center gap-3",children:[e,r]}),i[7]=e,i[8]=r,i[9]=n):n=i[9],n}return i[10]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(u.ArrowRight,{}),i[10]=n):n=i[10],i[11]!==l.label?(a=(0,t.jsx)(s.Button,{render:(0,t.jsxs)(g.Link,{href:"#waitlist",children:[l.label," ",n]})}),i[11]=l.label,i[12]=a):a=i[12],a}function eL(e){let n,a,i=(0,r.c)(4),{body:s}=e;if(i[0]!==s){let e;n=(e=0,s.split("`").flatMap((t,r)=>{let n=String(e);return e+=t.length+1,""===t?[]:[{id:n,text:t,isCode:r%2==1}]})).map(eO),i[0]=s,i[1]=n}else n=i[1];return i[2]!==n?(a=(0,t.jsx)("p",{className:"max-w-xl text-pretty text-[length:var(--text-prose)] leading-[var(--leading-prose)] text-muted-foreground",children:n}),i[2]=n,i[3]=a):a=i[3],a}function eO(e){return e.isCode?(0,t.jsx)(c.InlineCode,{className:"text-[0.9em] text-foreground",children:e.text},e.id):e.text}function eI(e){let n,i,s,o=(0,r.c)(11),{href:l,icon:c,label:d,active:m,onNavigate:u}=e,h=m?"true":void 0,x=m?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-[var(--card-hover)] hover:text-accent-foreground";return o[0]!==x?(n=(0,a.cn)("flex min-h-9 cursor-pointer items-center gap-2.5 rounded-[var(--radius-md)] px-2 py-1.5 text-[length:var(--text-body)] font-medium transition-colors",x),o[0]=x,o[1]=n):n=o[1],o[2]!==c?(i=(0,t.jsx)(c,{className:"size-4 shrink-0"}),o[2]=c,o[3]=i):i=o[3],o[4]!==l||o[5]!==d||o[6]!==u||o[7]!==h||o[8]!==n||o[9]!==i?(s=(0,t.jsxs)("a",{href:l,onClick:u,"aria-current":h,className:n,children:[i,d]}),o[4]=l,o[5]=d,o[6]=u,o[7]=h,o[8]=n,o[9]=i,o[10]=s):s=o[10],s}function ez(e){let i,s,o,c,m,u,f,g,b,j,N,_,k,S,M,A,R,C,E,T,L=(0,r.c)(47),{active:O}=e,I=(0,d.usePosthogClient)(),[z,W]=(0,p.useState)(!1),[F,P]=(0,p.useState)(!1),D=(0,p.useRef)(null);if(L[0]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{let e=D.current;if(!e)return;let t=new IntersectionObserver(e=>{let[t]=e;if(!t)return void W(!1);let r=t.rootBounds?.top??0;W(!t.isIntersecting&&t.boundingClientRect.topt.disconnect()},s=[],L[0]=i,L[1]=s):(i=L[0],s=L[1]),(0,p.useEffect)(i,s),L[2]!==O||L[3]!==F||L[4]!==z||L[5]!==I){b=Symbol.for("react.early_return_sentinel");e:{let e,r,i=[...v.PRODUCTS.map(e=>({id:e.id,label:w(e.name),icon:y.PRODUCT_ICONS[e.id]??x.Mail})),{id:"waitlist",label:"Waitlist",icon:x.Mail}],[s]=i,d=i.find(e=>e.id===O)??s;if(!d){b=null;break e}let p=d.icon;L[20]===Symbol.for("react.memo_cache_sentinel")?(g=(0,t.jsx)("div",{ref:D,"aria-hidden":!0,className:"md:hidden"}),L[20]=g):g=L[20];let R=z?"max-h-14 border-b border-border/40 bg-[color-mix(in_srgb,hsl(var(--background))_88%,transparent)] opacity-100 backdrop-blur-md":"pointer-events-none max-h-0 border-b-0 opacity-0";L[21]!==R?(u=(0,a.cn)("fixed inset-x-0 z-30 overflow-hidden transition-[max-height,opacity] duration-200 md:hidden","top-[calc(56px+var(--sticky-banner-top,0px))]",R),L[21]=R,L[22]=u):u=L[22],f=!z,c=l.DropdownMenu,S=F,M=P,A=!1,L[23]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(h.ChevronDown,{className:"size-3.5 text-muted-foreground"}),L[23]=e):e=L[23],m=(0,t.jsx)(l.DropdownMenuTrigger,{render:(0,t.jsxs)("button",{type:"button",className:"flex h-12 w-full cursor-pointer items-center gap-2 px-6 text-[length:var(--text-body)] font-medium outline-none",children:[(0,t.jsx)(p,{className:"size-4 text-muted-foreground"}),d.label,e]})}),o=l.DropdownMenuContent,j="start",N=4,_="w-56 p-1.5",L[24]!==O||L[25]!==I?(r=e=>{let r=e.icon;return(0,t.jsx)(l.DropdownMenuItem,{render:(0,t.jsxs)("a",{href:`#${e.id}`,onClick:()=>{I.capture(n.PostHogEvent.ClickOriSectionLink,{section:e.id,source:"mobile_rail"}),P(!1)},className:(0,a.cn)("group min-h-9 gap-2.5",O===e.id&&"bg-accent text-accent-foreground"),children:[(0,t.jsx)(r,{className:(0,a.cn)("transition-colors group-data-[highlighted]:text-accent-foreground",O===e.id?"text-accent-foreground":"text-muted-foreground")}),e.label]})},e.id)},L[24]=O,L[25]=I,L[26]=r):r=L[26],k=i.map(r)}L[2]=O,L[3]=F,L[4]=z,L[5]=I,L[6]=o,L[7]=c,L[8]=m,L[9]=u,L[10]=f,L[11]=g,L[12]=b,L[13]=j,L[14]=N,L[15]=_,L[16]=k,L[17]=S,L[18]=M,L[19]=A}else o=L[6],c=L[7],m=L[8],u=L[9],f=L[10],g=L[11],b=L[12],j=L[13],N=L[14],_=L[15],k=L[16],S=L[17],M=L[18],A=L[19];return b!==Symbol.for("react.early_return_sentinel")?b:(L[27]!==o||L[28]!==j||L[29]!==N||L[30]!==_||L[31]!==k?(R=(0,t.jsx)(o,{align:j,sideOffset:N,className:_,children:k}),L[27]=o,L[28]=j,L[29]=N,L[30]=_,L[31]=k,L[32]=R):R=L[32],L[33]!==c||L[34]!==m||L[35]!==R||L[36]!==S||L[37]!==M||L[38]!==A?(C=(0,t.jsxs)(c,{open:S,onOpenChange:M,modal:A,children:[m,R]}),L[33]=c,L[34]=m,L[35]=R,L[36]=S,L[37]=M,L[38]=A,L[39]=C):C=L[39],L[40]!==u||L[41]!==f||L[42]!==C?(E=(0,t.jsx)("div",{className:u,"aria-hidden":f,children:C}),L[40]=u,L[41]=f,L[42]=C,L[43]=E):E=L[43],L[44]!==g||L[45]!==E?(T=(0,t.jsxs)(t.Fragment,{children:[g,E]}),L[44]=g,L[45]=E,L[46]=T):T=L[46],T)}function eW(e){let n,i,s,o,l,c,d,m,u,h,x=(0,r.c)(29),{product:p,index:f}=e,g=ew[p.id],v=p.id,y=0===f&&"max-md:pt-6",w=f>0&&"border-t border-border/40";return x[0]!==y||x[1]!==w?(n=(0,a.cn)(b,"py-16 md:py-20",y,w),x[0]=y,x[1]=w,x[2]=n):n=x[2],x[3]!==p.family||x[4]!==p.name?(i=(0,t.jsx)(_.Kicker,{tag:p.family,children:p.name}),x[3]=p.family,x[4]=p.name,x[5]=i):i=x[5],x[6]!==p.status?(s="live"!==p.status&&(0,t.jsx)(eC,{status:p.status}),x[6]=p.status,x[7]=s):s=x[7],x[8]!==i||x[9]!==s?(o=(0,t.jsxs)("div",{className:"flex min-h-9 flex-wrap items-center gap-3",children:[i,s]}),x[8]=i,x[9]=s,x[10]=o):o=x[10],x[11]!==p.title?(l=(0,t.jsx)("h2",{className:"font-brand text-balance text-[length:var(--text-display)] font-bold leading-[1.2] tracking-tight md:text-[length:var(--text-hero)]",children:p.title}),x[11]=p.title,x[12]=l):l=x[12],x[13]!==p.body?(c=(0,t.jsx)(eL,{body:p.body}),x[13]=p.body,x[14]=c):c=x[14],x[15]!==p?(d=(0,t.jsx)("div",{className:"mt-1 w-full",children:(0,t.jsx)(eT,{product:p})}),x[15]=p,x[16]=d):d=x[16],x[17]!==d||x[18]!==o||x[19]!==l||x[20]!==c?(m=(0,t.jsx)(_.Reveal,{children:(0,t.jsxs)("div",{className:"flex flex-col items-start gap-5",children:[o,l,c,d]})}),x[17]=d,x[18]=o,x[19]=l,x[20]=c,x[21]=m):m=x[21],x[22]!==g?(u=g&&(0,t.jsx)(_.Reveal,{delay:.1,className:"mt-10",children:(0,t.jsx)(g,{})}),x[22]=g,x[23]=u):u=x[23],x[24]!==p.id||x[25]!==m||x[26]!==u||x[27]!==n?(h=(0,t.jsxs)("section",{id:v,className:n,children:[m,u]}),x[24]=p.id,x[25]=m,x[26]=u,x[27]=n,x[28]=h):h=x[28],h}let eF=[...v.PRODUCTS.map(e=>e.id),"waitlist"];function eP(e,r){return(0,t.jsx)(eW,{product:e,index:r},e.id)}e.s(["FamilySpine",0,function(){var e;let i,s,o,l,c,u,h,f,g,b,j,N,_,k=(0,r.c)(22),S=function(e){let t,n,a=(0,r.c)(3),[i,s]=(0,p.useState)(null);return a[0]!==e?(t=()=>{let t=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&s(t.target.id)},{rootMargin:"-35% 0px -60% 0px"});for(let r of e){let e=document.querySelector(`#${CSS.escape(r)}`);e&&t.observe(e)}return()=>t.disconnect()},n=[e],a[0]=e,a[1]=t,a[2]=n):(t=a[1],n=a[2]),(0,p.useEffect)(t,n),i}(eF),M=(0,m.useReducedMotion)(),A=(0,d.usePosthogClient)();e=!!M,(_=(0,r.c)(3))[0]!==e?(j=()=>{if(e)return;let t=0,r=()=>cancelAnimationFrame(t),n=e=>{var n;if(e.defaultPrevented||0!==e.button||e.metaKey||e.ctrlKey||!(e.target instanceof Element))return;let a=e.target.closest('a[href^="#"]');if(!(a instanceof HTMLAnchorElement))return;let i=a.hash.slice(1);if(!i)return;let s=document.querySelector(`#${CSS.escape(i)}`);if(!s)return;e.preventDefault();let o=(n=s,Math.max(0,window.scrollY+n.getBoundingClientRect().top-(Number.parseFloat(getComputedStyle(n).scrollMarginTop)||0))),l=Math.min(2600,Math.max(650,30*Math.sqrt(Math.abs(o-window.scrollY))));((e,n)=>{let a=window.scrollY,i=e-a;if(2>Math.abs(i))return;r();let s=performance.now(),o=e=>{let r=Math.min(1,(e-s)/n);window.scrollTo(0,a+r*r*r*(r*(6*r-15)+10)*i),r<1&&(t=requestAnimationFrame(o))};t=requestAnimationFrame(o)})(o,l)};return document.addEventListener("click",n,!0),window.addEventListener("wheel",r,{passive:!0}),window.addEventListener("touchstart",r,{passive:!0}),window.addEventListener("keydown",r),()=>{r(),document.removeEventListener("click",n,!0),window.removeEventListener("wheel",r),window.removeEventListener("touchstart",r),window.removeEventListener("keydown",r)}},N=[e],_[0]=e,_[1]=j,_[2]=N):(j=_[1],N=_[2]),(0,p.useEffect)(j,N),k[0]!==A?(i=e=>{A.capture(n.PostHogEvent.ClickOriSectionLink,{section:e,source:"rail"})},k[0]=A,k[1]=i):i=k[1];let R=i;k[2]!==S?(s=(0,t.jsx)(ez,{active:S}),k[2]=S,k[3]=s):s=k[3],k[4]===Symbol.for("react.memo_cache_sentinel")?(o=(0,a.cn)("sticky flex flex-col gap-px py-2","top-[calc(72px+var(--sticky-banner-top,0px))]"),k[4]=o):o=k[4],k[5]!==S||k[6]!==R?(l=v.PRODUCTS.map(e=>(0,t.jsx)(eI,{href:`#${e.id}`,icon:y.PRODUCT_ICONS[e.id]??x.Mail,label:w(e.name),active:S===e.id,onNavigate:()=>R(e.id)},e.id)),k[5]=S,k[6]=R,k[7]=l):l=k[7];let C="waitlist"===S;return k[8]!==R?(c=()=>R("waitlist"),k[8]=R,k[9]=c):c=k[9],k[10]!==C||k[11]!==c?(u=(0,t.jsx)(eI,{href:"#waitlist",icon:x.Mail,label:"Waitlist",active:C,onNavigate:c}),k[10]=C,k[11]=c,k[12]=u):u=k[12],k[13]!==l||k[14]!==u?(h=(0,t.jsx)("div",{className:"hidden md:block md:pt-[72px]",children:(0,t.jsxs)("div",{className:o,children:[l,u]})}),k[13]=l,k[14]=u,k[15]=h):h=k[15],k[16]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsxs)("div",{className:"min-w-0",children:[v.PRODUCTS.map(eP),(0,t.jsx)(eA,{})]}),k[16]=f):f=k[16],k[17]!==h?(g=(0,t.jsxs)("div",{className:"grid md:grid-cols-[210px_minmax(0,1fr)] md:gap-16 xl:grid-cols-[210px_minmax(0,1fr)_210px]",children:[h,f]}),k[17]=h,k[18]=g):g=k[18],k[19]!==s||k[20]!==g?(b=(0,t.jsxs)("div",{className:"mx-auto max-w-6xl px-6 xl:max-w-[calc(72rem+2*(210px+4rem))]",children:[s,g]}),k[19]=s,k[20]=g,k[21]=b):b=k[21],b}],232988)},361097,e=>{"use strict";let t=/^#?([0-9a-f]{3,8})$/i,r=/^(rgba?|hsla?)\(([^)]+)\)$/i,n=/^(-?[\d.]+)(?:deg)?\s+(-?[\d.]+)%\s+(-?[\d.]+)%(?:\s*\/.*)?$/;function a(e){return Math.max(0,Math.min(255,Math.round(e)))}function i({h:e,s:t,l:r}){let n=Math.max(0,Math.min(1,r/100)),s=(1-Math.abs(2*n-1))*Math.max(0,Math.min(1,t/100)),o=(e%360+360)%360/60,l=s*(1-Math.abs(o%2-1)),c=n-s/2,d=[[s,l,0],[l,s,0],[0,s,l],[0,l,s],[l,0,s],[s,0,l]],[m,u,h]=d[Math.floor(o)%6]??d[0];return[a((m+c)*255),a((u+c)*255),a((h+c)*255)]}e.s(["parseCssColor",0,function(e,s){let o=e.trim();return""===o?s:function(e){let r=t.exec(e)?.[1];if(void 0===r)return;let n=3===r.length||4===r.length?r.split("").map(e=>e+e).join(""):r;if(6===n.length||8===n.length)return[Number.parseInt(n.slice(0,2),16),Number.parseInt(n.slice(2,4),16),Number.parseInt(n.slice(4,6),16)]}(o)??function(e){let t=r.exec(e),n=t?.[1],s=t?.[2];if(void 0===n||void 0===s)return;let[o,l,c]=s.split(/[,/\s]+/).filter(e=>""!==e).map(e=>Number.parseFloat(e));if(void 0!==o&&void 0!==l&&void 0!==c&&Number.isFinite(o)&&Number.isFinite(l)&&Number.isFinite(c))return n.toLowerCase().startsWith("hsl")?i({h:o,s:l,l:c}):[a(o),a(l),a(c)]}(o)??function(e){let[,t,r,a]=n.exec(e)??[];if(void 0!==t&&void 0!==r&&void 0!==a)return i({h:Number.parseFloat(t),s:Number.parseFloat(r),l:Number.parseFloat(a)})}(o)??s}])}]); //# sourceMappingURL=0cd9_7rqhl3re.js.map //# chunkId=01a092e1-ef60-70d2-94cf-fb8b070fda1f