(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,329789,315018,e=>{"use strict";var t=e.i(651681);let s={name:"code",size:24,node:[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]};s.node;let r=(0,t.f)(s);e.s(["f",0,r],329789),e.s(["f",0,"/labs/jev"],315018)},658045,e=>{"use strict";var t=e.i(651681);let s={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]};s.node;let r=(0,t.f)(s);e.s(["f",0,r],658045)},852902,e=>{"use strict";var t=e.i(651681);let s={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};s.node;let r=(0,t.f)(s);e.s(["f",0,r],852902)},596376,e=>{"use strict";var t=e.i(659350),s=e.i(663456),r=e.i(207298),n=e.i(136562);let i=(0,r.f)("mt-1 leading-body",{variants:{tone:{muted:"text-muted-foreground",foreground:"text-foreground"}},defaultVariants:{tone:"muted"}}),a="border-negative/30 bg-negative-bg text-foreground [&>svg]:text-negative",o=(0,r.f)("relative flex w-full rounded-lg border text-xs [&>svg]:mt-0.5 [&>svg]:shrink-0",{variants:{size:{default:"gap-3 px-4 py-3 [&>svg]:size-4",compact:"gap-1.5 px-2.5 py-1.5 [&>svg]:size-3.5"},variant:{default:"border-border bg-muted text-foreground [&>svg]:text-muted-foreground",destructive:a,positive:"border-positive/30 bg-positive-bg text-foreground [&>svg]:text-positive",negative:a,warning:"border-warning/30 bg-warning-bg text-foreground [&>svg]:text-warning",info:"border-info/30 bg-info-bg text-foreground [&>svg]:text-info",promo:"border-promo/30 bg-promo-bg text-foreground [&>svg]:text-promo"}},defaultVariants:{size:"default",variant:"default"}});e.s(["J",0,function(e){let r,i,a,l,c,d,u=(0,s.c)(12);return u[0]!==e?({className:r,variant:l,size:a,...i}=e,u[0]=e,u[1]=r,u[2]=i,u[3]=a,u[4]=l):(r=u[1],i=u[2],a=u[3],l=u[4]),u[5]!==r||u[6]!==a||u[7]!==l?(c=(0,n.f)(o({size:a,variant:l}),r),u[5]=r,u[6]=a,u[7]=l,u[8]=c):c=u[8],u[9]!==i||u[10]!==c?(d=(0,t.jsx)("div",{role:"alert",className:c,...i}),u[9]=i,u[10]=c,u[11]=d):d=u[11],d},"p",0,function(e){let r,a,o,l,c,d=(0,s.c)(10);return d[0]!==e?({className:r,tone:o,...a}=e,d[0]=e,d[1]=r,d[2]=a,d[3]=o):(r=d[1],a=d[2],o=d[3]),d[4]!==r||d[5]!==o?(l=(0,n.f)(i({tone:o}),r),d[4]=r,d[5]=o,d[6]=l):l=d[6],d[7]!==a||d[8]!==l?(c=(0,t.jsx)("div",{className:l,...a}),d[7]=a,d[8]=l,d[9]=c):c=d[9],c},"s",0,function(e){let r,i,a,o,l=(0,s.c)(8);return l[0]!==e?({className:r,...i}=e,l[0]=e,l[1]=r,l[2]=i):(r=l[1],i=l[2]),l[3]!==r?(a=(0,n.f)("font-medium leading-snug text-foreground",r),l[3]=r,l[4]=a):a=l[4],l[5]!==i||l[6]!==a?(o=(0,t.jsx)("h5",{className:a,...i,children:i.children}),l[5]=i,l[6]=a,l[7]=o):o=l[7],o}],596376)},193461,e=>{"use strict";var t=e.i(659350),s=e.i(663456),r=e.i(16043),n=e.i(82153),i=e.i(533124),a=e.i(367898),o=e.i(115370),l=e.i(132887),c=e.i(111407),d=e.i(240070),u=e.i(825086);let f={checked:e=>e?{"data-checked":""}:{"data-unchecked":""},...d.f,...u.s};var m=e.i(729253),p=e.i(811673),h=e.i(93836),x=e.i(225421),b=e.i(509208),g=e.i(604672),v=e.i(141436),j=e.i(176322),y=e.i(446443),w=e.i(76129),k=e.i(599096),_=e.i(461430);let N=r.createContext(void 0);var z=e.i(442291),T=e.i(107397);let C=r.createContext(void 0),S=r.forwardRef(function(e,s){let{render:d,className:u,disabled:T=!1,readOnly:S=!1,required:A=!1,"aria-labelledby":R,value:q,inputRef:$,nativeButton:M=!1,id:D,style:J,...O}=e,B=r.useContext(N),{disabled:I,readOnly:V,required:F,form:P,checkedValue:E,touched:Y=!1,validation:H,name:L,setCheckedValue:K=o.x,setTouched:U=o.x,registerInputRef:W=o.x}=B??{},{setTouched:G,setFilled:X,state:Q,disabled:Z}=(0,v.f)(),ee=(0,y.f)(),{labelId:et,getDescriptionProps:es}=(0,w.f)(),er=Z||ee.disabled||I||T,en=V||S,ei=F||A,ea=B?E===q:""===q,eo=r.useRef(null),el=(0,j.f)(er,eo),ec=r.useRef(null),ed=H?.registerInput,eu=r.useCallback(e=>ed?.(e,{controlRef:eo,value:void 0}),[ed]),ef=(0,n.A)($,ec,W,eu);(0,i.f)(()=>{ec.current?.checked&&X(!0)},[X]),(0,i.f)(()=>{if(ec.current){if(er&&ea)return void W(null);W(ec.current)}},[ea,er,W]);let em=(0,p.f)(),ep=(0,_.f)({id:D}),eh=M?void 0:ep,ex={role:"radio","aria-checked":ea,"aria-labelledby":(0,k.f)(R,et,ec,!M,eh,O["aria-label"]),[b.f]:ea?"":void 0,id:M?ep:em,onKeyDown(e){"Enter"===e.key&&e.preventDefault()},onClick(e){if(e.defaultPrevented||er||en)return;e.preventDefault();let t=ec.current;t&&(0,m.f)(t,e)},onFocus(e){el(!0),e.defaultPrevented||er||en||!Y||(ec.current?.click(),U(!1))},onBlur(){B||el(!1)}},{getButtonProps:eb,buttonRef:eg}=(0,x.f)({disabled:er,native:M,composite:!1}),ev={type:"radio",ref:ef,form:P,id:eh,name:L,tabIndex:-1,style:L?a.L:a.p,"aria-hidden":!0,...void 0!==q?{value:(0,z.f)(q)}:o.w,disabled:er,checked:ea,required:ei,readOnly:en,onChange(e){if(e.nativeEvent.defaultPrevented||er||en||void 0===q)return;let t=(0,l.j)(c.f.none,e.nativeEvent);K(q,t),t.isCanceled||G(!0)},onClick(e){e.stopPropagation()},onFocus(){eo.current?.focus()}},ej=r.useMemo(()=>({...Q,required:ei,disabled:er,readOnly:en,checked:ea}),[Q,er,en,ea,ei]),ey=void 0!==B,ew=[s,eo,eg],ek=[ex,O,eb,es,H?e=>H.getValidationProps(er,e):o.w],e_=(0,h.a)("span",e,{enabled:!ey,state:ej,ref:ew,props:ek,stateAttributesMapping:f});return(0,t.jsxs)(C.Provider,{value:ej,children:[ey?(0,t.jsx)(g.f,{tag:"span",render:d,className:u,style:J,state:ej,refs:ew,props:ek,stateAttributesMapping:f}):e_,(0,t.jsx)("input",{...ev,suppressHydrationWarning:!0})]})});var A=e.i(692933),R=e.i(288646);let q=r.forwardRef(function(e,t){let{render:s,className:n,style:i,keepMounted:a=!1,...o}=e,l=function(){let e=r.useContext(C);if(void 0===e)throw Error((0,T.f)(52));return e}(),c=l.checked,{mounted:d,transitionStatus:u,setMounted:m}=(0,R.f)(c),p={...l,transitionStatus:u},x=r.useRef(null),b=(0,h.a)("span",e,{ref:[t,x],state:p,props:o,stateAttributesMapping:f});return((0,A.f)({batch:!0,enabled:!c,open:c,ref:x,onComplete(){c||m(!1)}}),a||d)?b:null});e.s(["Indicator",0,q,"Root",0,S],401506);var $=e.i(401506),$=$,M=$,D=e.i(389475),J=e.i(815922),O=e.i(393298),B=e.i(597233),I=e.i(587135),V=e.i(967090);Object.keys(u.t);let F=r.createContext(void 0);var P=e.i(621441),E=e.i(957854);let Y=[B.B],H=r.forwardRef(function(e,s){let{render:a,className:o,disabled:l,readOnly:c,required:d,onValueChange:f,value:m,defaultValue:h,form:x,name:b,inputRef:g,id:j,style:y,...k}=e,{setTouched:_,setFocused:z,validationMode:C,name:S,disabled:A,state:R,validation:q,setDirty:$,setFilled:M,validityData:B}=(0,v.f)(),{labelId:H}=(0,w.f)(),{clearErrors:L,elementRef:K}=(0,P.f)(),U=function(e=!1){let t=r.useContext(F);if(!t&&!e)throw Error((0,T.f)(86));return t}(!0),W=A||l,G=S??b,X=(0,p.f)(j),[Q,Z]=(0,D.f)({controlled:m,default:h,name:"RadioGroup",state:"value"}),[ee,et]=r.useState(!1),es=(0,J.f)((e,t)=>{f?.(e,t),t.isCanceled||Z(e)}),er=q.getInputControl,en=r.useMemo(()=>({get current(){return er()}}),[er]),ei=r.useRef(null),ea=r.useRef(null),eo=(0,n.A)(ei,g),el=r.useRef(eo),ec=(0,J.f)(e=>{(ei.current!==e||el.current!==eo)&&(el.current=eo,eo?.(e))});(0,i.f)(()=>{ec(ei.current)},[eo,ec]);let ed=(0,J.f)(e=>{if(e){if(!e.disabled){ea.current||(ea.current=e);let t=ei.current;(e.checked||null==t||t.disabled)&&ec(e)}return()=>{ea.current===e&&(ea.current=null),ei.current===e&&ec(null)}}}),eu=(0,J.f)(()=>{let e=K.current;if(!e)return Q??null;for(let t of q.registeredInputs.keys())if(t.checked&&!t.matches(":disabled")&&(!e||t.form===e||null===t.form&&!t.hasAttribute("form")))return Q??null;return null});(0,V.f)(en,X,Q??null,eu,!W,b),(0,E.f)(Q,()=>{L(G),$(Q!==B.initialValue),M(null!=Q),q.change(Q);let e=ea.current;null==Q&&e&&!e.disabled&&ec(e)});let ef=H??U?.legendId,em={...R,disabled:W??!1,required:d??!1,readOnly:c??!1},ep=r.useMemo(()=>({checkedValue:Q,disabled:W,form:x,validation:q,name:G,readOnly:c,registerInputRef:ed,required:d,setCheckedValue:es,setTouched:et,touched:ee}),[Q,W,x,q,G,c,ed,d,es,et,ee]);return(0,t.jsx)(N.Provider,{value:ep,children:(0,t.jsx)(I.f,{render:a,className:o,style:y,state:em,props:[{id:j,role:"radiogroup","aria-required":d||void 0,"aria-disabled":W||void 0,"aria-readonly":c||void 0,"aria-labelledby":ef,onBlur(e){(0,O.I)(e.currentTarget,e.relatedTarget)||(et(!1),_(!0),z(!1),"onBlur"===C&&q.commit(Q))},onKeyDownCapture(e){e.key.startsWith("Arrow")&&et(!0)}},k,e=>q.getValidationProps(W??!1,e)],refs:[s],stateAttributesMapping:u.s,enableHomeAndEndKeys:!1,modifierKeys:Y})})});var L=e.i(136562);e.s(["x",0,function(e){let r,n,i,a,o,l=(0,s.c)(10);return l[0]!==e?({className:r,ref:i,...n}=e,l[0]=e,l[1]=r,l[2]=n,l[3]=i):(r=l[1],n=l[2],i=l[3]),l[4]!==r?(a=(0,L.f)("grid gap-2",r),l[4]=r,l[5]=a):a=l[5],l[6]!==n||l[7]!==i||l[8]!==a?(o=(0,t.jsx)(H,{className:a,...n,ref:i}),l[6]=n,l[7]=i,l[8]=a,l[9]=o):o=l[9],o},"a",0,function(e){let r,n,i,a,o,l,c=(0,s.c)(11);return c[0]!==e?({className:r,ref:i,...n}=e,c[0]=e,c[1]=r,c[2]=n,c[3]=i):(r=c[1],n=c[2],i=c[3]),c[4]!==r?(a=(0,L.f)("flex shrink-0 items-center justify-center aspect-square h-4 w-4 rounded-full border border-foreground/30 bg-muted text-primary cursor-pointer hover:border-foreground/50 data-[checked]:border-primary ring-offset-background focus:outline-none focus-visible:border-focus-border focus-visible:shadow-focus data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",r),c[4]=r,c[5]=a):a=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)($.Indicator,{keepMounted:!0,className:"flex items-center justify-center transition-[scale,opacity] duration-quick ease-smooth-out motion-reduce:transition-opacity motion-reduce:data-[unchecked]:scale-100 data-[unchecked]:scale-(--scale-large) data-[unchecked]:opacity-0",children:(0,t.jsx)("span",{"aria-hidden":!0,className:"size-2 rounded-full bg-current forced-colors:bg-[CanvasText]"})}),c[6]=o):o=c[6],c[7]!==n||c[8]!==i||c[9]!==a?(l=(0,t.jsx)(M.Root,{ref:i,className:a,...n,children:o}),c[7]=n,c[8]=i,c[9]=a,c[10]=l):l=c[10],l}],193461)},874391,e=>{"use strict";var t=e.i(882844),s=e.i(635157),r=e.i(708187),n=e.i(314522);let i=s.z.object({type:s.z.literal("noul"),noul:(0,t.$)(),confidence:(0,t.$)().optional()}).openapi("DecisionsNoulAnswer"),a=s.z.object({type:s.z.literal("choice"),choice:s.z.string(),probabilities:s.z.record(s.z.string(),(0,t.$)()).optional(),confidence:(0,t.$)().optional()}).openapi("DecisionsChoiceAnswer"),o=s.z.object({type:s.z.literal("score"),score:(0,t.$)(),legend:s.z.record(s.z.string(),n.f).optional(),probabilities:s.z.record(s.z.string(),(0,t.$)()).optional(),confidence:(0,t.$)().optional()}).openapi("DecisionsScoreAnswer"),l=s.z.object({type:s.z.literal("box"),box:s.z.object({top:(0,t.$)(),bottom:(0,t.$)(),left:(0,t.$)(),right:(0,t.$)()}),confidence:(0,t.$)().optional()}).openapi("DecisionsBoxAnswer"),c=s.z.discriminatedUnion("type",[i,a,o,l]).openapi({description:"A Decisions answer using a boolean, choice, score, or image bounding-box evaluation.",discriminator:{propertyName:"type",mapping:{noul:"#/components/schemas/DecisionsNoulAnswer",choice:"#/components/schemas/DecisionsChoiceAnswer",score:"#/components/schemas/DecisionsScoreAnswer",box:"#/components/schemas/DecisionsBoxAnswer"}}}),d=s.z.object({type:s.z.literal("refusal")}).openapi("DecisionsRefusalAnswer",{description:"The provider declined to answer this question; no value or probabilities are returned. Other questions in the same request can still have answers."}),u=s.z.discriminatedUnion("type",[i,a,o,l,d]).openapi({description:"A Decisions answer using a boolean, choice, score, or image bounding-box evaluation, or a refusal of that question.",discriminator:{propertyName:"type",mapping:{noul:"#/components/schemas/DecisionsNoulAnswer",choice:"#/components/schemas/DecisionsChoiceAnswer",score:"#/components/schemas/DecisionsScoreAnswer",box:"#/components/schemas/DecisionsBoxAnswer",refusal:"#/components/schemas/DecisionsRefusalAnswer"}}}),f=s.z.object({type:s.z.literal("url_citation"),url_citation:s.z.object({url:s.z.string(),title:s.z.string().optional(),content:s.z.string().optional()})}).openapi("DecisionsUrlCitationAnnotation",{description:"A web source the provider used for this request. Applies to the whole request, not to a specific answer."}),m=s.z.object({input_tokens:(0,t.D)(),output_tokens:(0,t.D)(),input_tokens_details:s.z.object({cached_tokens:(0,t.D)()}).optional().openapi("DecisionsUsageInputTokensDetails",{description:"Of `input_tokens`, those the provider served from its prompt cache."})}),p=s.z.object({id:s.z.string().optional(),model:s.z.string(),provider:s.z.string().optional(),answers:s.z.record(s.z.string(),u),annotations:s.z.array(f).optional().openapi({description:"Sources for the request as a whole, when the provider returns them. Not attributed to individual answers."}),usage:m.extend({cost:(0,t.$)().optional().openapi({description:"What OpenRouter charges for the request, in credits. On a BYOK request this is the OpenRouter fee only."}),is_byok:s.z.boolean().optional().openapi({description:"Whether a request was made using a Bring Your Own Key configuration"}),cost_details:r.f.nullish().openapi({description:"Breakdown of upstream inference costs"})})}).openapi("DecisionsResponse");e.s(["S",0,c,"E",0,p,"W",0,function(e){return Object.values(e).every(e=>"refusal"!==e.type)}])},314522,e=>{"use strict";e.i(882844);var t=e.i(635157);let s=t.z.union([t.z.string(),t.z.record(t.z.string(),t.z.unknown()),t.z.array(t.z.unknown())]).openapi({description:"A plain string, or a JSON object or array of structured guidance."});e.s(["f",0,s])},375702,e=>{"use strict";var t=e.i(659350),s=e.i(663456),r=e.i(136562),n=e.i(1423),i=e.i(193461),a=e.i(530798),o=e.i(797521);e.i(707060);var l=e.i(196991),c=e.i(288265),d=e.i(16043),u=e.i(60755);function f(e,t){switch(t){case"Answers":return e("Answers");case"Requests":return e("Requests");case"Time":return e("Time");case"Cost":return e("Cost");case"Median":return e("Median");case"Jev":return e("Jev");default:return t}}function m(e){let r,n,i,a=(0,s.c)(13),{ms:l,pct:d}=e,f=(0,c.f)(),m=(0,o.f)(),p="";if(l>0?p="+":l<0&&(p="−"),a[0]!==m||a[1]!==f||a[2]!==l||a[3]!==d||a[4]!==p){let e,t=f("{sign}{percent}%",{sign:p,percent:Math.abs(d)});r=l<=0?"text-(--positive-text) dark:text-(--positive)":"text-(--negative-text) dark:text-(--negative)";let s=p;a[7]!==m||a[8]!==l?(e=(0,u.i)(m,Math.abs(l)),a[7]=m,a[8]=l,a[9]=e):e=a[9],n=f("{time} ({pct})",{time:`${s}${e}`,pct:t}),a[0]=m,a[1]=f,a[2]=l,a[3]=d,a[4]=p,a[5]=r,a[6]=n}else r=a[5],n=a[6];return a[10]!==r||a[11]!==n?(i=(0,t.jsx)("span",{className:r,children:n}),a[10]=r,a[11]=n,a[12]=i):i=a[12],i}function p(e){let r,i,a,o,d,u=(0,s.c)(17),{agreement:f,label:m}=e,p=(0,c.f)();u[0]!==f.of||u[1]!==f.same?(r=f.of>0?Math.round(f.same/f.of*100):0,u[0]=f.of,u[1]=f.same,u[2]=r):r=u[2];let h=r;return u[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)("span",{className:"text-size-overline uppercase tracking-wider text-muted-foreground",children:(0,t.jsx)(l.T,{children:"Accuracy"})}),u[3]=i):i=u[3],u[4]!==f.of||u[5]!==f.same||u[6]!==p||u[7]!==m?(a=(0,t.jsxs)("span",{className:"flex min-w-0 flex-wrap items-baseline gap-x-2 gap-y-0.5 text-body",children:[i,f.of>0?(0,t.jsxs)("span",{className:"text-muted-foreground",children:[p("{label} as the chat model on",{label:m})," ",(0,t.jsx)("span",{className:"tabular-nums text-foreground",children:p("{same} of {of}",{same:f.same,of:f.of})})]}):(0,t.jsx)("span",{className:"text-muted-foreground",children:(0,t.jsx)(l.T,{children:"Nothing compared yet"})})]}),u[4]=f.of,u[5]=f.same,u[6]=p,u[7]=m,u[8]=a):a=u[8],u[9]!==f.of||u[10]!==p||u[11]!==m||u[12]!==h?(o=f.of>0&&(0,t.jsxs)("span",{className:"flex shrink-0 items-center gap-2",children:[(0,t.jsx)(n.f,{value:h,className:"h-1.5 w-24","aria-label":p("{label} share",{label:m})}),(0,t.jsx)("span",{className:"w-10 text-right font-medium tabular-nums text-body text-foreground",children:p("{share}%",{share:h})})]}),u[9]=f.of,u[10]=p,u[11]=m,u[12]=h,u[13]=o):o=u[13],u[14]!==a||u[15]!==o?(d=(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-1 border-t border-border/50 px-3 py-2",children:[a,o]}),u[14]=a,u[15]=o,u[16]=d):d=u[16],d}function h(e){let o,u,m,h,g,v,j,y,w,k,_,N,z,T,C,S,A,R=(0,s.c)(139),{caption:q,columns:$,rows:M,selected:D,onSelect:J,stack:O,agreement:B,agreedLabel:I}=e,V=void 0!==O&&O,F=(0,d.useId)(),P=(0,c.f)();R[0]!==I||R[1]!==B||R[2]!==P?(o=B?(0,t.jsx)(p,{agreement:B,label:I??P("Same answer")}):null,R[0]=I,R[1]=B,R[2]=P,R[3]=o):o=R[3];let E=o;R[4]!==q?(u=(0,t.jsx)("div",{className:"border-b border-border px-3 py-2.5 text-body text-muted-foreground",children:q}),R[4]=q,R[5]=u):u=R[5];let Y=u;R[6]!==M?(m=M.some(b),R[6]=M,R[7]=m):m=R[7];let H=m;if(R[8]!==Y||R[9]!==$||R[10]!==E||R[11]!==P||R[12]!==H||R[13]!==F||R[14]!==J||R[15]!==M||R[16]!==D||R[17]!==V){let e,s,o,c,u,m,p,b,z,T,C,S,A,q,O,B,I,L,K,U,W;R[27]!==M?(e=e=>M.some(t=>void 0!==t.cells[e.key]&&""!==t.cells[e.key]),R[27]=M,R[28]=e):e=R[28];let G=$.filter(e);R[29]!==$||R[30]!==H?(s=H?void 0:`${8.5+$.reduce(x,0)}rem`,R[29]=$,R[30]=H,R[31]=s):s=R[31];let X=s;R[32]!==J?(o=e=>J?.(e),R[32]=J,R[33]=o):o=R[33];let Q=o;R[34]!==J||R[35]!==D?(c=e=>J?(0,t.jsx)(i.x,{value:D,onValueChange:e=>J(String(e)),className:"block gap-0",children:e}):e,R[34]=J,R[35]=D,R[36]=c):c=R[36];let Z=c;R[37]!==F||R[38]!==J?(u=e=>{let{row:s,layout:n,extra:a}=e;return J?(0,t.jsxs)("span",{className:(0,r.f)("flex items-center gap-2",a),children:[(0,t.jsx)(i.a,{value:s.key,id:`${F}-${n}-${s.key}`}),(0,t.jsx)("label",{htmlFor:`${F}-${n}-${s.key}`,className:"cursor-pointer",children:s.label})]}):s.label},R[37]=F,R[38]=J,R[39]=u):u=R[39];let ee=u,et=!V&&"md:block",es=!H&&"max-w-full",er=X&&"w-(--table-width)";if(R[40]!==et||R[41]!==es||R[42]!==er?(m=(0,r.f)("hidden overflow-clip rounded-(--radius-lg) border border-border",et,es,er),R[40]=et,R[41]=es,R[42]=er,R[43]=m):m=R[43],R[44]!==X?(p=X?{"--table-width":X}:void 0,R[44]=X,R[45]=p):p=R[45],R[46]===Symbol.for("react.memo_cache_sentinel")?(b={"--column-width":"8.5rem"},R[46]=b):b=R[46],R[47]!==J?(z=J?(0,t.jsx)(l.T,{children:"Show"}):null,R[47]=J,R[48]=z):z=R[48],R[49]!==z?(T=(0,t.jsx)(a.TableHead,{className:"w-(--column-width)",style:b,children:z}),R[49]=z,R[50]=T):T=R[50],R[51]!==H?(C=H&&(0,t.jsx)(a.TableHead,{children:(0,t.jsx)(l.T,{children:"Progress"})}),R[51]=H,R[52]=C):C=R[52],R[53]!==$||R[54]!==P){let e;R[56]!==P?(e=e=>(0,t.jsx)(d.Fragment,{children:(0,t.jsx)(a.TableHead,{className:"w-(--column-width) whitespace-nowrap text-right",style:{"--column-width":`${e.width}rem`},children:f(P,e.label)})},e.key),R[56]=P,R[57]=e):e=R[57],S=$.map(e),R[53]=$,R[54]=P,R[55]=S}else S=R[55];if(R[58]!==T||R[59]!==C||R[60]!==S?(A=(0,t.jsx)(a.TableHeader,{children:(0,t.jsxs)(a.TableRow,{interactive:!1,children:[T,C,S]})}),R[58]=T,R[59]=C,R[60]=S,R[61]=A):A=R[61],R[62]!==$||R[63]!==P||R[64]!==H||R[65]!==J||R[66]!==Q||R[67]!==ee||R[68]!==M||R[69]!==D){let e;R[71]!==$||R[72]!==P||R[73]!==H||R[74]!==J||R[75]!==Q||R[76]!==ee||R[77]!==D?(e=e=>(0,t.jsxs)(a.TableRow,{"data-state":J&&D===e.key?"selected":void 0,onClick:J?()=>Q(e.key):void 0,className:J?"cursor-pointer":void 0,children:[(0,t.jsx)(a.TableCell,{children:ee({row:e,layout:"wide"})}),H&&(0,t.jsx)(a.TableCell,{children:(0,t.jsx)(n.f,{value:e.progress??0,className:"h-2","aria-label":P("{label} progress",{label:e.label})})}),$.map(s=>(0,t.jsx)(a.TableCell,{className:"whitespace-nowrap text-right tabular-nums",children:e.cells[s.key]},s.key))]},e.key),R[71]=$,R[72]=P,R[73]=H,R[74]=J,R[75]=Q,R[76]=ee,R[77]=D,R[78]=e):e=R[78],q=M.map(e),R[62]=$,R[63]=P,R[64]=H,R[65]=J,R[66]=Q,R[67]=ee,R[68]=M,R[69]=D,R[70]=q}else q=R[70];R[79]!==q?(O=(0,t.jsx)(a.TableBody,{children:q}),R[79]=q,R[80]=O):O=R[80],R[81]!==A||R[82]!==O?(B=(0,t.jsxs)(a.Table,{className:"w-full table-fixed",children:[A,O]}),R[81]=A,R[82]=O,R[83]=B):B=R[83],R[84]!==Z||R[85]!==B?(I=Z(B),R[84]=Z,R[85]=B,R[86]=I):I=R[86],R[87]!==Y||R[88]!==E||R[89]!==m||R[90]!==p||R[91]!==I?(j=(0,t.jsxs)("div",{className:m,style:p,children:[Y,I,E]}),R[87]=Y,R[88]=E,R[89]=m,R[90]=p,R[91]=I,R[92]=j):j=R[92];let en=!V&&"md:hidden";if(R[93]!==en?(N=(0,r.f)("overflow-clip rounded-(--radius-lg) border border-border",en),R[93]=en,R[94]=N):N=R[94],v=Y,_=Z,g=a.Table,w="table-fixed",R[95]!==J?(L=J?(0,t.jsx)(l.T,{children:"Show"}):null,R[95]=J,R[96]=L):L=R[96],R[97]!==L?(K=(0,t.jsx)(a.TableHead,{className:"h-auto align-bottom",children:L}),R[97]=L,R[98]=K):K=R[98],R[99]!==P||R[100]!==H||R[101]!==J||R[102]!==Q||R[103]!==ee||R[104]!==M){let e;R[106]!==P||R[107]!==H||R[108]!==J||R[109]!==Q||R[110]!==ee?(e=e=>(0,t.jsxs)(a.TableHead,{onClick:J?()=>Q(e.key):void 0,className:(0,r.f)("or-table__cell--wrap-words h-auto text-right align-bottom",J&&"cursor-pointer"),children:[ee({row:e,layout:"phone",extra:"justify-end"}),H&&(0,t.jsx)(n.f,{value:e.progress??0,className:"mt-1.5 h-1.5","aria-label":P("{label} progress",{label:e.label})})]},e.key),R[106]=P,R[107]=H,R[108]=J,R[109]=Q,R[110]=ee,R[111]=e):e=R[111],U=M.map(e),R[99]=P,R[100]=H,R[101]=J,R[102]=Q,R[103]=ee,R[104]=M,R[105]=U}else U=R[105];R[112]!==K||R[113]!==U?(k=(0,t.jsx)(a.TableHeader,{children:(0,t.jsxs)(a.TableRow,{interactive:!1,children:[K,U]})}),R[112]=K,R[113]=U,R[114]=k):k=R[114],h=a.TableBody,R[115]!==P||R[116]!==J||R[117]!==M||R[118]!==D?(W=e=>(0,t.jsxs)(a.TableRow,{interactive:!1,children:[(0,t.jsx)(a.TableCell,{className:"or-table__cell--wrap-words",children:f(P,e.label)}),M.map(s=>(0,t.jsx)(a.TableCell,{className:(0,r.f)("whitespace-nowrap text-right tabular-nums",J&&D===s.key&&"bg-(--selected-bg)"),children:s.cells[e.key]},s.key))]},e.key),R[115]=P,R[116]=J,R[117]=M,R[118]=D,R[119]=W):W=R[119],y=G.map(W),R[8]=Y,R[9]=$,R[10]=E,R[11]=P,R[12]=H,R[13]=F,R[14]=J,R[15]=M,R[16]=D,R[17]=V,R[18]=h,R[19]=g,R[20]=v,R[21]=j,R[22]=y,R[23]=w,R[24]=k,R[25]=_,R[26]=N}else h=R[18],g=R[19],v=R[20],j=R[21],y=R[22],w=R[23],k=R[24],_=R[25],N=R[26];return R[120]!==h||R[121]!==y?(z=(0,t.jsx)(h,{children:y}),R[120]=h,R[121]=y,R[122]=z):z=R[122],R[123]!==g||R[124]!==z||R[125]!==w||R[126]!==k?(T=(0,t.jsxs)(g,{className:w,children:[k,z]}),R[123]=g,R[124]=z,R[125]=w,R[126]=k,R[127]=T):T=R[127],R[128]!==T||R[129]!==_?(C=_(T),R[128]=T,R[129]=_,R[130]=C):C=R[130],R[131]!==E||R[132]!==v||R[133]!==C||R[134]!==N?(S=(0,t.jsxs)("div",{className:N,children:[v,C,E]}),R[131]=E,R[132]=v,R[133]=C,R[134]=N,R[135]=S):S=R[135],R[136]!==j||R[137]!==S?(A=(0,t.jsxs)(t.Fragment,{children:[j,S]}),R[136]=j,R[137]=S,R[138]=A):A=R[138],A}function x(e,t){return e+t.width}function b(e){return void 0!==e.progress}function g(){return performance.now()}function v({format:e,gt:s,racer:r,elapsed:n,deltaMs:i,delta:a}){let o=r.done>=r.total?(0,t.jsx)(t.Fragment,{children:r.total}):s("{done} of {total}",{done:r.done,total:r.total}),c=void 0!==r.ms&&void 0!==i&&void 0!==a;return{answers:(0,t.jsxs)(t.Fragment,{children:[o,r.failed?(0,t.jsx)("span",{className:"block text-muted-foreground",children:s("{failed} failed",{failed:r.failed})}):null]}),requests:String(r.calls),time:(0,t.jsxs)(t.Fragment,{children:[(0,u.i)(e,Math.round(n)),(0,t.jsx)("span",{className:"block font-medium md:ml-2 md:inline-block md:w-28 md:text-right",children:c&&void 0!==i&&void 0!==a?(0,t.jsx)(m,{ms:i,pct:a}):null}),r.stopped&&(0,t.jsx)("span",{className:"block text-muted-foreground",children:(0,t.jsx)(l.T,{children:"stopped"})})]}),cost:(0,u.x)(e,r.cost)}}function j(e){return e.total?e.done/e.total*100:0}e.s(["n",0,function(e){let r,n,i,a,u,f,m,p,x,b,y,w,k,_,N,z,T,C,S,A,R,q,$,M=(0,s.c)(58),{controls:D,total:J,shown:O,onShown:B,llmName:I,race:V,agreement:F}=e,P=(0,c.f)(),E=(0,o.f)();M[0]!==P?(r=P("Answers"),M[0]=P,M[1]=r):r=M[1],M[2]!==r?(n={key:"answers",label:r,width:6},M[2]=r,M[3]=n):n=M[3],M[4]!==P?(i=P("Requests"),M[4]=P,M[5]=i):i=M[5],M[6]!==i?(a={key:"requests",label:i,width:6},M[6]=i,M[7]=a):a=M[7],M[8]!==P?(u=P("Time"),M[8]=P,M[9]=u):u=M[9],M[10]!==u?(f={key:"time",label:u,width:12},M[10]=u,M[11]=f):f=M[11],M[12]!==P?(m=P("Cost"),M[12]=P,M[13]=m):m=M[13],M[14]!==m?(p={key:"cost",label:m,width:5.5},M[14]=m,M[15]=p):p=M[15],M[16]!==n||M[17]!==a||M[18]!==f||M[19]!==p?(x=[n,a,f,p],M[16]=n,M[17]=a,M[18]=f,M[19]=p,M[20]=x):x=M[20];let Y=x,H=function(e){let t,r,n=(0,s.c)(3),[i,a]=(0,d.useState)(g);return n[0]!==e?(t=()=>{if(!e)return;a(performance.now());let t=setInterval(()=>a(performance.now()),100);return()=>clearInterval(t)},r=[e],n[0]=e,n[1]=t,n[2]=r):(t=n[1],r=n[2]),(0,d.useEffect)(t,r),i}(void 0!==V&&(void 0===V.jev.ms||void 0===V.llm.ms));M[21]!==H||M[22]!==V?.startedAt?(b=e=>e.ms??Math.max(0,H-(V?.startedAt??H)),M[21]=H,M[22]=V?.startedAt,M[23]=b):b=M[23];let L=b;if(M[24]!==L||M[25]!==E||M[26]!==P||M[27]!==I||M[28]!==V||M[29]!==J){let{deltaMs:e,delta:t}=function(e){if(!e||void 0===e.jev.ms||void 0===e.llm.ms||e.llm.ms<=0||e.jev.stopped||e.llm.stopped)return{};let t=e.jev.ms-e.llm.ms;return{deltaMs:t,delta:Math.round(t/e.llm.ms*100)}}(V),s={done:0,total:J,calls:0,cost:0};N={key:"jev",label:P("Jev"),progress:V?j(V.jev):0,cells:V?v({format:E,gt:P,racer:V.jev,elapsed:L(V.jev),deltaMs:e,delta:t}):v({format:E,gt:P,racer:s,elapsed:0})},y="llm",w=I,k=V?j(V.llm):0,_=V?v({format:E,gt:P,racer:V.llm,elapsed:L(V.llm)}):v({format:E,gt:P,racer:s,elapsed:0}),M[24]=L,M[25]=E,M[26]=P,M[27]=I,M[28]=V,M[29]=J,M[30]=y,M[31]=w,M[32]=k,M[33]=_,M[34]=N}else y=M[30],w=M[31],k=M[32],_=M[33],N=M[34];M[35]!==y||M[36]!==w||M[37]!==k||M[38]!==_?(z={key:y,label:w,progress:k,cells:_},M[35]=y,M[36]=w,M[37]=k,M[38]=_,M[39]=z):z=M[39],M[40]!==N||M[41]!==z?(T=[N,z],M[40]=N,M[41]=z,M[42]=T):T=M[42];let K=T;return M[43]!==D?(C=(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-3",children:D}),M[43]=D,M[44]=C):C=M[44],M[45]===Symbol.for("react.memo_cache_sentinel")?(S=(0,t.jsx)("span",{className:"text-foreground",children:(0,t.jsx)(l.T,{children:"Jev races the chat model"})}),M[45]=S):S=M[45],M[46]===Symbol.for("react.memo_cache_sentinel")?(A=(0,t.jsxs)(t.Fragment,{children:[S," ",(0,t.jsx)(l.T,{children:"on the same job, started at the same moment."})]}),M[46]=A):A=M[46],M[47]!==B?(R=e=>{("jev"===e||"llm"===e)&&B(e)},M[47]=B,M[48]=R):R=M[48],M[49]!==F||M[50]!==Y||M[51]!==K||M[52]!==O||M[53]!==R?(q=(0,t.jsx)(h,{caption:A,columns:Y,rows:K,selected:O,onSelect:R,agreement:F}),M[49]=F,M[50]=Y,M[51]=K,M[52]=O,M[53]=R,M[54]=q):q=M[54],M[55]!==C||M[56]!==q?($=(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[C,q]}),M[55]=C,M[56]=q,M[57]=$):$=M[57],$},"p",0,function(e){let n,i,a,d,f,p,x,b,g,v,j,y,w,k,_,N,z,T,C,S=(0,s.c)(51),{controls:A,llmName:R,jev:q,llm:$,labels:M,stack:D,agreement:J}=e,O=(0,c.f)(),B=(0,o.f)();S[0]!==M.decisions?(n={key:"decisions",label:M.decisions,width:6},S[0]=M.decisions,S[1]=n):n=S[1],S[2]!==O?(i=O("Median"),S[2]=O,S[3]=i):i=S[3],S[4]!==i?(a={key:"median",label:i,width:12},S[4]=i,S[5]=a):a=S[5],S[6]!==O?(d=O("Cost"),S[6]=O,S[7]=d):d=S[7],S[8]!==d?(f={key:"cost",label:d,width:5.5},S[8]=d,S[9]=f):f=S[9],S[10]!==n||S[11]!==a||S[12]!==f?(p=[n,a,f],S[10]=n,S[11]=a,S[12]=f,S[13]=p):p=S[13];let I=p,V=q&&$&&q.medianMs>0&&$.medianMs>0?q.medianMs-$.medianMs:void 0;S[14]!==$||S[15]!==V||S[16]!==D?(x=e=>(0,t.jsx)("span",{className:(0,r.f)("block font-medium",!D&&"md:ml-2 md:inline-block md:w-28 md:text-right"),children:e&&void 0!==V&&$?(0,t.jsx)(m,{ms:V,pct:Math.round(V/$.medianMs*100)}):null}),S[14]=$,S[15]=V,S[16]=D,S[17]=x):x=S[17];let F=x;S[18]!==B||S[19]!==F?(b=(e,s)=>e?{decisions:e.decisions,median:(0,t.jsxs)(t.Fragment,{children:[(0,u.i)(B,e.medianMs),F(s)]}),cost:(0,u.x)(B,e.cost)}:{decisions:"0",median:"",cost:(0,u.x)(B,0)},S[18]=B,S[19]=F,S[20]=b):b=S[20];let P=b;return S[21]!==A?(g=A&&(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-4",children:A}),S[21]=A,S[22]=g):g=S[22],S[23]===Symbol.for("react.memo_cache_sentinel")?(v=(0,t.jsx)("span",{className:"text-foreground",children:(0,t.jsx)(l.T,{children:"Jev decides here."})}),S[23]=v):v=S[23],S[24]===Symbol.for("react.memo_cache_sentinel")?(j=(0,t.jsxs)(t.Fragment,{children:[v," ",(0,t.jsx)(l.T,{children:"The chat model is asked the same question each time as a shadow, and never acts."})]}),S[24]=j):j=S[24],S[25]!==O?(y=O("Jev"),S[25]=O,S[26]=y):y=S[26],S[27]!==P||S[28]!==q?(w=P(q,!0),S[27]=P,S[28]=q,S[29]=w):w=S[29],S[30]!==y||S[31]!==w?(k={key:"jev",label:y,cells:w},S[30]=y,S[31]=w,S[32]=k):k=S[32],S[33]!==P||S[34]!==$?(_=P($,!1),S[33]=P,S[34]=$,S[35]=_):_=S[35],S[36]!==R||S[37]!==_?(N={key:"llm",label:R,cells:_},S[36]=R,S[37]=_,S[38]=N):N=S[38],S[39]!==k||S[40]!==N?(z=[k,N],S[39]=k,S[40]=N,S[41]=z):z=S[41],S[42]!==J||S[43]!==I||S[44]!==M.agreed||S[45]!==D||S[46]!==z?(T=(0,t.jsx)(h,{caption:j,stack:D,columns:I,rows:z,agreement:J,agreedLabel:M.agreed}),S[42]=J,S[43]=I,S[44]=M.agreed,S[45]=D,S[46]=z,S[47]=T):T=S[47],S[48]!==T||S[49]!==g?(C=(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[g,T]}),S[48]=T,S[49]=g,S[50]=C):C=S[50],C}])},901869,e=>{"use strict";var t=e.i(659350),s=e.i(663456),r=e.i(376885),n=e.i(510433),i=e.i(136562),a=e.i(139697),o=e.i(246705),l=e.i(80676),c=e.i(751155),d=e.i(236614),u=e.i(231171),f=e.i(960773),m=e.i(797521),p=e.i(402600);e.i(707060);var h=e.i(288265),x=e.i(919035),b=e.i(859986),g=e.i(329789),v=e.i(502704),j=e.i(658045),y=e.i(852902),w=e.i(16043),k=e.i(315018),_=e.i(196991),N=e.i(788843),z=e.i(96659),T=e.i(628504);function C(e){let r,n,i=(0,s.c)(3),{className:o}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsxs)("a",{href:T.G,target:"_blank",rel:"noreferrer",children:[(0,t.jsx)(z.default,{src:"/logos/typesafe.png",alt:"",width:16,height:16,className:"rounded-(--radius-sm)"}),(0,t.jsx)(_.T,{children:"Jev model page"}),(0,t.jsx)(N.f,{})]}),i[0]=r):r=i[0],i[1]!==o?(n=(0,t.jsx)(a.Button,{variant:"outline",className:o,render:r}),i[1]=o,i[2]=n):n=i[2],n}var S=e.i(60755),A=e.i(387086);(0,A.b)("Classification"),(0,A.b)("Extraction"),(0,A.b)("Agents"),(0,A.b)("Realtime");let R=[{id:"triage",category:"Classification",title:(0,A.b)("Support message triage"),dek:(0,A.b)("Five yes-or-no questions about every one of 95 messages, in about a second."),uses:["Jev"],speed:(0,A.b)("475 answers in 1.2 s"),cost:(0,A.b)("$0.0014 a run")},{id:"overseer",category:"Agents",title:(0,A.b)("Agent action approval"),dek:(0,A.b)("Four checks on each of 24 tool calls in one request. Risky steps stop for a person."),uses:["Jev"],speed:(0,A.b)("96 answers in 0.5 s"),cost:(0,A.b)("$0.0004 a run")},{id:"extract",category:"Extraction",title:(0,A.b)("Extraction without guessing"),dek:(0,A.b)("Jev picks each field from candidates found in the text, so it cannot invent a value."),uses:["Jev"],speed:(0,A.b)("12 fields in 0.6 s"),cost:(0,A.b)("$0.0002 a document")},{id:"compile",category:"Classification",title:(0,A.b)("Prompt to questions"),dek:(0,A.b)("Paste a prompt. Claude rewrites it as Jev questions, then Jev runs them on every row."),uses:["Jev","Claude Haiku 4.5"],speed:(0,A.b)("380 answers in 2 s"),cost:(0,A.b)("$0.0025 a run")},{id:"feed",category:"Classification",title:(0,A.b)("Feed filter in plain words"),dek:(0,A.b)("Write a rule in plain words and Jev flags every matching post, in one request."),uses:["Jev"],speed:(0,A.b)("40 posts in 0.5 s"),cost:(0,A.b)("$0.0003 a run"),width:"medium"},{id:"game",category:"Realtime",title:(0,A.b)("Live chase opponent"),dek:(0,A.b)("You run, Jev chases. Every chaser move is one request, two to three times a second."),uses:["Jev"],speed:(0,A.b)("2 to 3 moves a second"),cost:(0,A.b)("$0.16 an hour")},{id:"notice",category:"Realtime",title:(0,A.b)("Checkout form that notices"),dek:(0,A.b)("A checkout form asks eight questions after every click and reacts to the answers."),uses:["Jev"],speed:(0,A.b)("8 answers in 300 ms"),cost:(0,A.b)("$0.0001 a check")}],q={triage:R[0],overseer:R[1],extract:R[2],compile:R[3],feed:R[4],game:R[5],notice:R[6]};e.i(406201);var $=e.i(967605),M=e.i(123215);let D={narrow:"md:max-w-3xl",medium:"md:max-w-5xl"};function J(e){let r,n,c,d,u,f,m,p,v,j,y,k,_,N,z,T,C,S,A,R,q,M,J,O,B,I,V,F,P,E,Y,H=(0,s.c)(74),{entry:L,home:K,modelLink:U,code:W,controls:G,fill:X,children:Q}=e,Z=void 0!==X&&X,ee=(0,h.f)(),et=(0,x.f)(),[es,er]=(0,w.useState)(!1),en=(0,w.useRef)(null),[ei,ea]=(0,w.useState)(!1);H[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{let e=en.current;if(!e)return;let t=new IntersectionObserver(e=>{let[t]=e;return ea(!!t&&!t.isIntersecting)},{threshold:0});return t.observe(e),()=>t.disconnect()},n=[],H[0]=r,H[1]=n):(r=H[0],n=H[1]),(0,w.useEffect)(r,n);let eo=(0,w.useRef)(null),[el,ec]=(0,w.useState)(0);H[2]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{let e=eo.current;if(!e)return;let t=new ResizeObserver(()=>ec(e.offsetHeight));return t.observe(e),()=>t.disconnect()},d=[],H[2]=c,H[3]=d):(c=H[2],d=H[3]),(0,w.useEffect)(c,d);let ed=L.width&&D[L.width],eu=Z&&"md:min-h-0 md:flex-1";H[4]!==ed||H[5]!==eu?(u=(0,i.f)("mx-auto flex w-full flex-col gap-4",ed,eu),H[4]=ed,H[5]=eu,H[6]=u):u=H[6];let ef=`${el}px`,em=`calc(57px + ${el}px)`;H[7]!==em||H[8]!==ef?(f={"--console-h":ef,"--or-table-sticky-top":em},H[7]=em,H[8]=ef,H[9]=f):f=H[9],H[10]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)(b.f,{}),H[10]=m):m=H[10],H[11]!==ee?(p=ee("All recipes"),H[11]=ee,H[12]=p):p=H[12],H[13]!==K||H[14]!==p?(v=(0,t.jsxs)($.Link,{href:K,className:"-ml-4 inline-flex min-h-10 items-center gap-2 px-4 py-2 text-sm text-foreground",children:[m,p]}),H[13]=K,H[14]=p,H[15]=v):v=H[15],H[16]===Symbol.for("react.memo_cache_sentinel")?(j=()=>er(!0),y=(0,t.jsx)(g.f,{}),H[16]=j,H[17]=y):(j=H[16],y=H[17]),H[18]!==ee?(k=ee("View code"),H[18]=ee,H[19]=k):k=H[19],H[20]!==k?(_=(0,t.jsxs)(a.Button,{onClick:j,children:[y,k]}),H[20]=k,H[21]=_):_=H[21],H[22]!==U||H[23]!==_?(N=(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[_,U]}),H[22]=U,H[23]=_,H[24]=N):N=H[24],H[25]!==v||H[26]!==N?(z=(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between gap-2",children:[v,N]}),H[25]=v,H[26]=N,H[27]=z):z=H[27],H[28]!==L.title||H[29]!==et?(T=et(L.title),H[28]=L.title,H[29]=et,H[30]=T):T=H[30],H[31]!==T?(C=(0,t.jsx)("h1",{className:"max-w-3xl font-brand text-size-title font-semibold tracking-tight text-foreground",children:T}),H[31]=T,H[32]=C):C=H[32],H[33]!==L.dek||H[34]!==et?(S=et(L.dek),H[33]=L.dek,H[34]=et,H[35]=S):S=H[35],H[36]!==S?(A=(0,t.jsx)("p",{className:"max-w-3xl text-body text-muted-foreground",children:S}),H[36]=S,H[37]=A):A=H[37],H[38]!==z||H[39]!==C||H[40]!==A?(R=(0,t.jsxs)("header",{className:"flex flex-col gap-1.5",children:[z,C,A]}),H[38]=z,H[39]=C,H[40]=A,H[41]=R):R=H[41],H[42]===Symbol.for("react.memo_cache_sentinel")?(q=(0,t.jsx)("div",{ref:en,"aria-hidden":!0,className:"h-px -translate-y-14.25 -mb-[calc(1rem+1px)]"}),H[42]=q):q=H[42];let ep=ei&&"border-b border-border/50";H[43]!==ep?(M=(0,i.f)("sticky top-14.25 z-[9] flex flex-col gap-4 bg-background pb-3",ep),H[43]=ep,H[44]=M):M=H[44],H[45]!==G||H[46]!==M?(J=(0,t.jsx)("div",{ref:eo,className:M,children:G}),H[45]=G,H[46]=M,H[47]=J):J=H[47];let eh=Z&&"md:min-h-0 md:flex-1";return H[48]!==eh?(O=(0,i.f)("flex flex-col gap-8",eh),H[48]=eh,H[49]=O):O=H[49],H[50]!==Q||H[51]!==O?(B=(0,t.jsx)("div",{className:O,children:Q}),H[50]=Q,H[51]=O,H[52]=B):B=H[52],H[53]!==L.title||H[54]!==et?(I=et(L.title),H[53]=L.title,H[54]=et,H[55]=I):I=H[55],H[56]!==I?(V=(0,t.jsx)(l.s,{children:(0,t.jsx)(l.F,{children:I})}),H[56]=I,H[57]=V):V=H[57],H[58]!==W.code||H[59]!==W.filename?(F=(0,t.jsx)(o.CodeBlock,{value:W.code,language:"typescript",title:W.filename}),H[58]=W.code,H[59]=W.filename,H[60]=F):F=H[60],H[61]!==V||H[62]!==F?(P=(0,t.jsxs)(l.d,{className:"max-h-[85dvh] overflow-y-auto sm:max-w-3xl",children:[V,F]}),H[61]=V,H[62]=F,H[63]=P):P=H[63],H[64]!==es||H[65]!==P?(E=(0,t.jsx)(l.N,{open:es,onOpenChange:er,children:P}),H[64]=es,H[65]=P,H[66]=E):E=H[66],H[67]!==f||H[68]!==R||H[69]!==J||H[70]!==B||H[71]!==E||H[72]!==u?(Y=(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("article",{className:u,style:f,children:[R,q,J,B,E]})}),H[67]=f,H[68]=R,H[69]=J,H[70]=B,H[71]=E,H[72]=u,H[73]=Y):Y=H[73],Y}function O(){return performance.now()}let B="signed-out",I="resolving",V="blocked",F="allowed";function P(e){let i=(0,s.c)(30),{label:o,children:l}=e,m=(0,h.f)(),x=function(){let{isSignedIn:e}=(0,r.f)(),t=(0,d.f)(n.J.JevLab);if(!e)return B;switch(t){case u.L.Loading:return I;case u.L.Blocked:return V;case u.L.Allowed:return F;default:return t}}(),b=(0,M.f)(),g=(0,p.f)(),j=(0,f.Q)();switch(x){case F:{let e;return i[0]!==l?(e=(0,t.jsx)(t.Fragment,{children:l}),i[0]=l,i[1]=e):e=i[1],e}case B:{let e,s,r,n;return i[2]!==b||i[3]!==g||i[4]!==j?(e=()=>{let e=g??"/labs/jev";j.capture("click_jev_lab_sign_in_to_run",{source:"jev-lab",recipe:e}),b({forceRedirectUrl:e,signInForceRedirectUrl:e})},i[2]=b,i[3]=g,i[4]=j,i[5]=e):e=i[5],i[6]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(v.f,{className:"size-4"}),i[6]=s):s=i[6],i[7]!==m?(r=m("Sign in to run"),i[7]=m,i[8]=r):r=i[8],i[9]!==e||i[10]!==r?(n=(0,t.jsxs)(a.Button,{onClick:e,children:[s,r]}),i[9]=e,i[10]=r,i[11]=n):n=i[11],n}case I:{let e,s;return i[12]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(v.f,{className:"size-4"}),i[12]=e):e=i[12],i[13]!==o?(s=(0,t.jsxs)(a.Button,{disabled:!0,children:[e,o]}),i[13]=o,i[14]=s):s=i[14],s}case V:{let e,s,r,n,l,d,u;return i[15]!==m?(e=m("Not available in this workspace"),i[15]=m,i[16]=e):e=i[16],i[17]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(v.f,{className:"size-4"}),i[17]=s):s=i[17],i[18]!==o?(r=(0,t.jsxs)(a.Button,{disabled:!0,children:[s,o]}),i[18]=o,i[19]=r):r=i[19],i[20]!==m?(n=m("Not available in this workspace"),i[20]=m,i[21]=n):n=i[21],i[22]!==n?(l=(0,t.jsx)("span",{className:"sr-only",children:n}),i[22]=n,i[23]=l):l=i[23],i[24]!==r||i[25]!==l?(d=(0,t.jsxs)(c.TooltipNonInteractiveTrigger,{children:[r,l]}),i[24]=r,i[25]=l,i[26]=d):d=i[26],i[27]!==e||i[28]!==d?(u=(0,t.jsx)(c.Tooltip,{content:e,children:d}),i[27]=e,i[28]=d,i[29]=u):u=i[29],u}default:return x}}function E(e){let r,n,i,o=(0,s.c)(20),{idle:l,again:c,running:d,status:u,onClick:f,onStop:m}=e,p=(0,h.f)(),x="done"===u||"error"===u;if("sending"===u&&m){let e,s,r;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(y.f,{className:"size-4"}),o[0]=e):e=o[0],o[1]!==p?(s=p("Stop"),o[1]=p,o[2]=s):s=o[2],o[3]!==m||o[4]!==s?(r=(0,t.jsxs)(a.Button,{onClick:m,children:[e,s]}),o[3]=m,o[4]=s,o[5]=r):r=o[5],r}let b=x?"outline":"default",g="sending"===u;return o[6]!==x?(r=x?(0,t.jsx)(j.f,{className:"size-4"}):(0,t.jsx)(v.f,{className:"size-4"}),o[6]=x,o[7]=r):r=o[7],o[8]!==c||o[9]!==l||o[10]!==x||o[11]!==d||o[12]!==u?(n=function({status:e,ran:t,running:s,again:r,idle:n}){return"sending"===e?s:t?r:n}({status:u,ran:x,running:d,again:c,idle:l}),o[8]=c,o[9]=l,o[10]=x,o[11]=d,o[12]=u,o[13]=n):n=o[13],o[14]!==f||o[15]!==b||o[16]!==g||o[17]!==r||o[18]!==n?(i=(0,t.jsxs)(a.Button,{variant:b,onClick:f,disabled:g,children:[r,n]}),o[14]=f,o[15]=b,o[16]=g,o[17]=r,o[18]=n,o[19]=i):i=o[19],i}e.s(["P",0,function(e){let r,n,i,a,o,l=(0,s.c)(10),{since:c}=e,d=(0,m.f)(),[u,f]=(0,w.useState)(O);l[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{let e=setInterval(()=>f(performance.now()),100);return()=>clearInterval(e)},n=[],l[0]=r,l[1]=n):(r=l[0],n=l[1]),(0,w.useEffect)(r,n),l[2]!==u||l[3]!==c?(i=Math.round(u-c),l[2]=u,l[3]=c,l[4]=i):i=l[4];let p=Math.max(0,i);return l[5]!==d||l[6]!==p?(a=(0,S.i)(d,p),l[5]=d,l[6]=p,l[7]=a):a=l[7],l[8]!==a?(o=(0,t.jsx)(t.Fragment,{children:a}),l[8]=a,l[9]=o):o=l[9],o},"X",0,function(e){let r,n,a=(0,s.c)(5),{children:o,className:l}=e;return a[0]!==l?(r=(0,i.f)("text-size-overline tabular-nums text-muted-foreground",l),a[0]=l,a[1]=r):r=a[1],a[2]!==o||a[3]!==r?(n=(0,t.jsx)("p",{className:r,children:o}),a[2]=o,a[3]=r,a[4]=n):n=a[4],n},"N",0,function(e){let r,n=(0,s.c)(2),{children:i}=e;return n[0]!==i?(r=(0,t.jsx)("p",{className:"text-body text-foreground",children:i}),n[0]=i,n[1]=r):r=n[1],r},"B",0,function(e){let r,n,i,a,o,l=(0,s.c)(9);return(l[0]!==e?({id:n,...r}=e,l[0]=e,l[1]=r,l[2]=n):(r=l[1],n=l[2]),l[3]!==n)?(i=q[n],l[3]=n,l[4]=i):i=l[4],l[5]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(C,{}),l[5]=a):a=l[5],l[6]!==r||l[7]!==i?(o=(0,t.jsx)(J,{entry:i,home:k.f,modelLink:a,...r}),l[6]=r,l[7]=i,l[8]=o):o=l[8],o},"y",0,J,"K",0,function(e){let r,n,i=(0,s.c)(5);return i[0]!==e?(r=(0,t.jsx)(E,{...e}),i[0]=e,i[1]=r):r=i[1],i[2]!==e.idle||i[3]!==r?(n=(0,t.jsx)(P,{label:e.idle,children:r}),i[2]=e.idle,i[3]=r,i[4]=n):n=i[4],n},"I",0,P,"Z",0,function(e){let r,n,i=(0,s.c)(5),{title:a,children:o}=e;return i[0]!==a?(r=(0,t.jsx)("h2",{className:"text-size-section font-medium text-foreground",children:a}),i[0]=a,i[1]=r):r=i[1],i[2]!==o||i[3]!==r?(n=(0,t.jsxs)("section",{className:"flex flex-col gap-3",children:[r,o]}),i[2]=o,i[3]=r,i[4]=n):n=i[4],n},"q",0,e=>e?"text-[var(--positive-text)]":"text-[var(--negative-text)]"],901869)},60755,e=>{"use strict";e.s(["i",0,function(e,t){return e.duration(t,{preset:"latency"})??"—"},"x",0,function(e,t){return e.usd(t,{preset:"benchmark-cost"})??"—"}])},13718,e=>{"use strict";var t=e.i(647204),s=e.i(622561),r=e.i(882844),n=e.i(635157),i=e.i(874391),a=e.i(628504);let o=n.z.object({model:n.z.string(),choices:n.z.array(n.z.object({message:n.z.object({content:n.z.string()})})),usage:n.z.object({prompt_tokens:n.z.number().int().nonnegative(),completion_tokens:n.z.number().int().nonnegative(),cost:n.z.number().optional()})}),l=n.z.record(n.z.string(),n.z.unknown());async function c(e,s){var n,o;let l=performance.now(),c=await (0,t.$)(()=>fetch("/api/alpha/decisions",{method:"POST",signal:s,headers:{"Content-Type":"application/json","HTTP-Referer":window.location.href,"X-OpenRouter-Title":"OpenRouter: Jev Lab"},body:JSON.stringify({model:e.model??a.T,state:e.state,questions:e.questions})}));if((0,t.V)(c))return(0,t.Y)({kind:"request_failed",cause:c.error});let d=await f(c.data);if((0,t.V)(d))return d;let u=(0,r.C)(i.E,d.data);if((0,t.V)(u))return(0,t.Y)({kind:"invalid_decisions_response"});let{answers:m}=u.data;return(0,i.W)(m)?(0,t.N)((n={...u.data,answers:m},o=performance.now()-l,{model:n.model,answers:n.answers,usage:n.usage,latencyMs:Math.round(o)})):(0,t.Y)({kind:"decisions_refused"})}async function d(e,s){let n=performance.now(),i=await (0,t.$)(()=>fetch("/api/v1/chat/completions",{method:"POST",signal:s,headers:{"Content-Type":"application/json","HTTP-Referer":window.location.href,"X-OpenRouter-Title":"OpenRouter: Jev Lab"},body:JSON.stringify({model:e.model,messages:[{role:"system",content:e.system},{role:"user",content:e.user}],response_format:{type:"json_schema",json_schema:{name:"verdict",strict:!0,schema:e.schema}},usage:{include:!0}})}));if((0,t.V)(i))return(0,t.Y)({kind:"request_failed",cause:i.error});let a=await f(i.data);if((0,t.V)(a))return a;let c=(0,r.C)(o,a.data);if((0,t.V)(c))return(0,t.Y)({kind:"invalid_chat_response"});let d=c.data.choices[0]?.message.content;if(void 0===d)return(0,t.Y)({kind:"empty_chat_content"});let u=(0,t.$)(()=>JSON.parse(d));if((0,t.V)(u))return(0,t.Y)({kind:"invalid_chat_json"});let m=(0,r.C)(l,u.data);return(0,t.V)(m)?(0,t.Y)({kind:"invalid_chat_json"}):(0,t.N)({model:c.data.model,json:m.data,usage:c.data.usage,latencyMs:Math.round(performance.now()-n)})}function u(e){switch(e.kind){case"request_failed":return(0,s.A)(e.cause);case"http_error":return e.message;case"invalid_decisions_response":return"Decisions returned an invalid response";case"decisions_refused":return"Decisions refused a question";case"invalid_chat_response":return"Chat completion returned an invalid response";case"empty_chat_content":return"Chat completion returned no content";case"invalid_chat_json":return"Chat completion returned invalid JSON";default:return e}}async function f(e){if(!e.ok){let s=await (0,t.$)(()=>m(e));return(0,t.V)(s)?(0,t.Y)({kind:"request_failed",cause:s.error}):(0,t.Y)({kind:"http_error",message:s.data})}let s=await (0,t.$)(()=>e.json());return(0,t.V)(s)?(0,t.Y)({kind:"request_failed",cause:s.error}):s}async function m(e){var s;let i,a=await e.text();if(!a)return`Request failed (${e.status})`;let o=(0,r.C)(n.z.object({error:n.z.object({message:n.z.string()}).optional(),message:n.z.string().optional()}),(s=a,i=(0,t.$)(()=>JSON.parse(s)),(0,t.V)(i)?s:i.data));return(0,t.V)(o)?a:o.data.error?.message??o.data.message??a}e.s(["A",0,c,"G",0,u,"e",0,d,"a",0,function(e){return e instanceof Error?(0,t.Y)(e.message):(0,t.V)(e)?(0,t.Y)(u(e.error)):e}])},628504,e=>{"use strict";e.s(["T",0,"typesafe/jev-1.13","G",0,"/typesafe/jev-1.13"])},123215,e=>{"use strict";var t=e.i(663456),s=e.i(376885),r=e.i(398254),n=e.i(76429),i=e.i(292312),a=e.i(274417),o=e.i(372844),l=e.i(514681),c=e.i(46369),d=e.i(960773),u=e.i(912),f=e.i(544341);e.i(16043),e.s(["f",0,function(){let e,m=(0,t.c)(5),{openSignUp:p}=(0,r.f)(),{timezone:h}=(0,u.f)(),x=(0,d.Q)(),b=(0,c.f)(),{isSignedIn:g}=(0,s.f)();return(0,l.f)(g),m[0]!==b||m[1]!==p||m[2]!==x||m[3]!==h?(e=async e=>{if(void 0===p)return;let[t,s]=await Promise.all([(0,n.w)(i.f),(0,a.$)(i.f)]);try{p({...e,unsafeMetadata:{...(0,o.f)({sessionId:x.get_session_id()??"",anonymousDistinctId:x.get_distinct_id()??"",sealedSignupCfMetadataResult:t,radarSessionRelay:s,existingMetadata:e?.unsafeMetadata}),...h?{[f.$]:h}:{},...b()}})}catch(e){x.captureException(e,{error_source:"signup-modal-open"})}},m[0]=b,m[1]=p,m[2]=x,m[3]=h,m[4]=e):e=m[4],e}])}]); //# sourceMappingURL=0f_cu94xfigfo.js.map