(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,1971,e=>{"use strict";var t=e.i(651681);let r={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};r.node;let a=(0,t.f)(r);e.s(["f",0,a])},843749,e=>{"use strict";var t=e.i(1971);e.s(["f",()=>t.f])},58991,e=>{"use strict";var t=e.i(651681);let r={name:"minus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}]]};r.node;let a=(0,t.f)(r);e.s(["f",0,a],58991)},460597,660140,e=>{"use strict";e.s(["Y",()=>el,"j",()=>et],460597);var t=e.i(16043),r=e.i(470733),a=e.i(802822),n=e.i(652695),i=e.i(422242),l=e.i(824280),s=t,o=e.i(39526),c=e.i(257592),u=e.i(153407);function d(e,t,r){var a;return(t="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?a:a+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){var t=(0,c.t)();return(0,s.useEffect)(()=>(t((0,o.b)(e)),()=>{t((0,o.i)(e))}),[e,t]),null}class f extends s.Component{render(){return s.createElement(m,{domain:this.props.domain,id:this.props.zAxisId,dataKey:this.props.dataKey,name:this.props.name,unit:this.props.unit,range:this.props.range,scale:this.props.scale,type:this.props.type,allowDuplicatedCategory:u.po.allowDuplicatedCategory,allowDataOverflow:u.po.allowDataOverflow,reversed:u.po.reversed,includeHidden:u.po.includeHidden})}}d(f,"displayName","ZAxis"),d(f,"defaultProps",{zAxisId:0,range:u.po.range,scale:u.po.scale,type:u.po.type}),e.s(["f",0,f],660140);var h=e.i(162474),p=e.i(968416),v=e.i(866901),g=e.i(647491),x=e.i(511676),b=e.i(184261),y=e.i(380177),k=["option","isActive"];function w(){return(w=Object.assign.bind()).apply(null,arguments)}function j(e){var{option:r,isActive:a}=e,n=function(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r={};for(var a in e)if(({}).hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;r[a]=e[a]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;an],(e,t)=>e.filter(e=>"scatter"===e.type).find(e=>e.id===t)),R=(0,C.f)([(e,t,r,a,n,i,l)=>(0,A.I)(e,t,r,l),(e,t,r,a,n,i,l)=>(0,u.lU)(e,"xAxis",t,l),(e,t,r,a,n,i,l)=>(0,u.C1)(e,"xAxis",t,l),(e,t,r,a,n,i,l)=>(0,u.lU)(e,"yAxis",r,l),(e,t,r,a,n,i,l)=>(0,u.C1)(e,"yAxis",r,l),(e,t,r,a)=>(0,u.zZ)(e,"zAxis",a,!1),I,(e,t,r,a,n,i)=>i],(e,t,r,a,n,i,l,s)=>{var o,{chartData:c,dataStartIndex:u,dataEndIndex:d}=e;if(null!=l&&null!=(o=(null==l?void 0:l.data)!=null&&l.data.length>0?l.data:null==c?void 0:c.slice(u,d+1))&&null!=t&&null!=a&&null!=r&&null!=n&&(null==r?void 0:r.length)!==0&&(null==n?void 0:n.length)!==0)return et({displayedData:o,xAxis:t,yAxis:a,zAxis:i,scatterSettings:l,xAxisTicks:r,yAxisTicks:n,cells:s})}),E=e.i(478697),_=e.i(216750),O=e.i(940357),z=e.i(24548),D=e.i(556684),K=e.i(809863),F=e.i(642165),M=e.i(700698),L=e.i(713793),$=e.i(563419),U=e.i(193710),B=["onMouseEnter","onClick","onMouseLeave"],H=["id"],W=["animationBegin","animationDuration","animationEasing","hide","isAnimationActive","legendType","lineJointType","lineType","shape","xAxisId","yAxisId","zAxisId"];function V(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r={};for(var a in e)if(({}).hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;r[a]=e[a]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a({x:e.cx,y:e.cy}));else if("fitting"===o){var{xmin:m,xmax:f,a:p,b:g}=(0,v.O)(i);r=[{x:m,y:p*m+g},{x:f,y:p*f+g}]}var x=q(q(q({},u),{},{fill:"none",stroke:u&&u.fill},d),{},{points:r});return n=t.isValidElement(s)?t.cloneElement(s,x):"function"==typeof s?s(x):t.createElement(h.f,Y({},x,{type:c})),t.createElement(a.f,{className:"recharts-scatter-line",key:"recharts-scatter-line"},n)}function G(e){var{showLabels:r,points:a,children:i}=e,l=(0,U.r)(),s=(0,t.useMemo)(()=>null==a?void 0:a.map(e=>{var t={x:e.x,y:e.y,width:e.width,height:e.height};return q(q({},t),{},{value:void 0,payload:e.payload,viewBox:t,parentViewBox:l,fill:void 0})}),[l,a]);return t.createElement(n.A,{value:r?s:null},i)}function Q(e){var{points:r,allOtherScatterProps:n}=e,{shape:i,activeShape:l,dataKey:s}=n,o=(0,c.g)(_.H),{onMouseEnter:u,onClick:d,onMouseLeave:m}=n,f=V(n,B),h=(0,N.s)(u,n.dataKey),p=(0,N.c)(m),v=(0,N.d)(d,n.dataKey);if(null==r)return null;var{id:g}=n,b=V(n,H),y=(0,L.e)(b);return t.createElement(t.Fragment,null,t.createElement(J,{points:r,props:b}),r.map((e,r)=>{var n=l&&o===String(r),c=n?l:i,u=q(q(q({key:"symbol-".concat(r)},y),e),{},{[z.H]:r,[z.V]:String(s)});return t.createElement(a.f,Y({key:"symbol-".concat(null==e?void 0:e.cx,"-").concat(null==e?void 0:e.cy,"-").concat(null==e?void 0:e.size,"-").concat(r),className:"recharts-scatter-symbol"},(0,x.T)(f,e,r),{onMouseEnter:h(e,r),onMouseLeave:p(e,r),onClick:v(e,r)}),t.createElement(j,Y({option:c,isActive:n},u)))}))}function X(e){var{previousPointsRef:r,props:i}=e,{points:l,isAnimationActive:s,animationBegin:o,animationDuration:c,animationEasing:u}=i,d=r.current,m=(0,D.f)(i,"recharts-scatter-"),[f,h]=(0,t.useState)(!1),p=(0,t.useCallback)(()=>{h(!1)},[]),g=(0,t.useCallback)(()=>{h(!0)},[]),x=!f;return t.createElement(G,{showLabels:x,points:l},i.children,t.createElement($.f,{animationId:m,begin:o,duration:c,isActive:s,easing:u,onAnimationEnd:p,onAnimationStart:g,key:m},e=>{var n=1===e?l:null==l?void 0:l.map((t,r)=>{var a=d&&d[r];if(a){var n=(0,v.P)(a.cx,t.cx),i=(0,v.P)(a.cy,t.cy),l=(0,v.P)(a.size,t.size);return q(q({},t),{},{cx:n(e),cy:i(e),size:l(e)})}var s=(0,v.P)(0,t.size);return q(q({},t),{},{size:s(e)})});return e>0&&(r.current=n),t.createElement(a.f,null,t.createElement(Q,{points:n,allOtherScatterProps:i,showLabels:x}))}),t.createElement(n.x,{label:i.label}))}function ee(e){var{dataKey:t,points:r,stroke:a,strokeWidth:n,fill:i,name:l,hide:s,tooltipType:o}=e;return{dataDefinedOnItem:null==r?void 0:r.map(e=>e.tooltipPayload),positions:null==r?void 0:r.map(e=>e.tooltipPosition),settings:{stroke:a,strokeWidth:n,fill:i,nameKey:void 0,dataKey:t,name:(0,g.N)(l,t),hide:s,type:o,color:i,unit:""}}}function et(e){var{displayedData:t,xAxis:r,yAxis:a,zAxis:n,scatterSettings:i,xAxisTicks:l,yAxisTicks:s,cells:o}=e,c=(0,v.$)(r.dataKey)?i.dataKey:r.dataKey,u=(0,v.$)(a.dataKey)?i.dataKey:a.dataKey,d=n&&n.dataKey,m=n?n.range:f.defaultProps.range,h=m&&m[0],p=r.scale.bandwidth?r.scale.bandwidth():0,x=a.scale.bandwidth?a.scale.bandwidth():0;return t.map((e,t)=>{var m=(0,g.K)(e,c),f=(0,g.K)(e,u),b=!(0,v.$)(d)&&(0,g.K)(e,d)||"-",y=[{name:(0,v.$)(r.dataKey)?i.name:r.name||r.dataKey,unit:r.unit||"",value:m,payload:e,dataKey:c,type:i.tooltipType},{name:(0,v.$)(a.dataKey)?i.name:a.name||a.dataKey,unit:a.unit||"",value:f,payload:e,dataKey:u,type:i.tooltipType}];"-"!==b&&y.push({name:n.name||n.dataKey,unit:n.unit||"",value:b,payload:e,dataKey:d,type:i.tooltipType});var k=(0,g.q)({axis:r,ticks:l,bandSize:p,entry:e,index:t,dataKey:c}),w=(0,g.q)({axis:a,ticks:s,bandSize:x,entry:e,index:t,dataKey:u}),j="-"!==b?n.scale(b):h,N=Math.sqrt(Math.max(j,0)/Math.PI);return q(q({},e),{},{cx:k,cy:w,x:k-N,y:w-N,width:2*N,height:2*N,size:j,node:{x:m,y:f,z:b},tooltipPayload:y,tooltipPosition:{x:k,y:w},payload:e},o&&o[t]&&o[t].props)})}var er=(e,t,r)=>({x:e.cx,y:e.cy,value:"x"===r?+e.node.x:+e.node.y,errorVal:(0,g.K)(e,t)});function ea(e){var{hide:n,points:i,className:l,needClip:s,xAxisId:o,yAxisId:c,id:u}=e,d=(0,t.useRef)(null);if(n)return null;var m=(0,r.q)("recharts-scatter",l);return t.createElement(a.f,{className:m,clipPath:s?"url(#clipPath-".concat(u,")"):null,id:u},s&&t.createElement("defs",null,t.createElement(P.s,{clipPathId:u,xAxisId:o,yAxisId:c})),t.createElement(T.f,{xAxisId:o,yAxisId:c,data:i,dataPointFormatter:er,errorBarOffset:0},t.createElement(a.f,{key:"recharts-scatter-symbols"},t.createElement(X,{props:e,previousPointsRef:d}))))}var en={xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!l.f.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"};function ei(e){var r=(0,K.f)(e,en),{animationBegin:a,animationDuration:n,animationEasing:l,hide:s,isAnimationActive:o,legendType:u,lineJointType:d,lineType:m,shape:f,xAxisId:h,yAxisId:v,zAxisId:g}=r,x=V(r,W),{needClip:b}=(0,P.z)(h,v),y=(0,t.useMemo)(()=>(0,i.M)(e.children,p.f),[e.children]),k=(0,E.f)(),w=(0,c.g)(t=>R(t,h,v,g,e.id,y,k));return null==b||null==w?null:t.createElement(t.Fragment,null,t.createElement(S.f,{fn:ee,args:q(q({},e),{},{points:w})}),t.createElement(ea,Y({},x,{xAxisId:h,yAxisId:v,zAxisId:g,lineType:m,lineJointType:d,legendType:u,shape:f,hide:s,isAnimationActive:o,animationBegin:a,animationDuration:n,animationEasing:l,points:w,needClip:b})))}var el=t.memo(function(e){var r=(0,K.f)(e,en),a=(0,E.f)();return t.createElement(F.f,{id:r.id,type:"scatter"},e=>t.createElement(t.Fragment,null,t.createElement(O.y,{legendPayload:(e=>{var{dataKey:t,name:r,fill:a,legendType:n,hide:i}=e;return[{inactive:i,dataKey:t,type:n,color:a,value:(0,g.N)(r,t),payload:e}]})(r)}),t.createElement(M.y,{type:"scatter",id:e,data:r.data,xAxisId:r.xAxisId,yAxisId:r.yAxisId,zAxisId:r.zAxisId,dataKey:r.dataKey,hide:r.hide,name:r.name,tooltipType:r.tooltipType,isPanorama:a}),t.createElement(ei,Y({},r,{id:e}))))});el.displayName="Scatter"},918331,e=>{"use strict";var t=e.i(659350),r=e.i(663456),a=e.i(16043),n=e.i(115370),i=e.i(389475),l=e.i(533124),s=e.i(82153),o=e.i(367898),c=e.i(223732),u=e.i(825086);function d(e){return{checked:t=>e.indeterminate?{}:t?{"data-checked":""}:{"data-unchecked":""},...u.s}}var m=e.i(729253),f=e.i(93836),h=e.i(811673),p=e.i(195618),v=e.i(225421),g=e.i(141436),x=e.i(176322),b=e.i(967090),y=e.i(446443),k=e.i(621441),w=e.i(76129),j=e.i(599096),N=e.i(461430);let S=a.createContext(void 0);var T=e.i(107397);let P=a.createContext(void 0);var C=e.i(132887),A=e.i(111407),I=e.i(957854);let R=a.forwardRef(function(e,r){let{checked:u,className:T,defaultChecked:R=!1,"aria-labelledby":E,disabled:_=!1,form:O,id:z,indeterminate:D=!1,inputRef:K,name:F,onCheckedChange:M,parent:L=!1,readOnly:$=!1,render:U,required:B=!1,uncheckedValue:H,value:W,nativeButton:V=!1,style:Y,...Z}=e,{clearErrors:q}=(0,k.f)(),{disabled:J,name:G,setDirty:Q,setFilled:X,setTouched:ee,state:et,validationMode:er,validityData:ea,validation:en}=(0,g.f)(),ei=(0,y.f)(),{labelId:el,registerControlId:es,getDescriptionProps:eo}=(0,w.f)(),ec=a.useContext(S),eu=ec?.allValues===void 0?void 0:ec.parent,ed=void 0!==eu,em=J||ei.disabled||ec?.disabled||_,ef=G??F,eh=W??ef,ep=(0,h.f)(),ev=ec?.registerControlId!==es,eg=(0,N.f)({id:z||void 0,enabled:ev}),ex=V?eg:ep,eb={};ed&&(L?eb=eu.getParentProps():void 0!==eh&&(eb=eu.getChildProps(eh)));let{checked:ey=u,indeterminate:ek=D,onCheckedChange:ew,...ej}=eb,eN=ec?.value,eS=a.useRef(null),eT=(0,x.f)(em,eS),{getButtonProps:eP,buttonRef:eC}=(0,v.f)({disabled:em,native:V}),eA=ec?.validation??en,[eI,eR]=(0,i.f)({controlled:void 0===eh||void 0===eN||L?ey:eN.includes(eh),default:R,name:"Checkbox",state:"checked"}),eE=ed?!!ey:eI,e_=ed&&ek||D;(0,b.f)(eS,ep,eI,void 0,!ec&&!em,F);let eO=eu?.registerChildId,ez=a.useRef(null),eD=eA.registerInput,eK=ec?eh:void 0,eF=a.useCallback(e=>eD(e,{controlRef:eS,value:eK}),[eD,eK]),eM=(0,s.A)(K,ez,L?void 0:eF),eL=(0,j.f)(E,el,ez,!V,eg,Z["aria-label"]);(0,l.f)(()=>{ez.current&&(ez.current.indeterminate=e_),ec||X(eI)},[eI,e_,ec,X]),(0,I.f)(eI,()=>{ec||(q(ef),Q(eI!==ea.initialValue),eA.change(eI))});let e$=(0,p.w)({checked:eI,disabled:em,form:O,name:L?void 0:ef,id:V?void 0:eg,required:B,ref:eM,style:ef?o.L:o.p,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(e){if(e.nativeEvent.defaultPrevented)return;if($)return void e.preventDefault();let t=e.currentTarget.checked,r=(0,C.j)(A.f.none,e.nativeEvent);if((M?.(t,r),!r.isCanceled)&&(ew?.(t,r),!r.isCanceled&&(eR(t),void 0!==eh&&void 0!==ec&&!L&&!ed))){let e=t?[...ec.value,eh]:ec.value.filter(e=>e!==eh);ec.setValue(e,r)}},onClick(e){e.stopPropagation()},onFocus(){eS.current?.focus()}},void 0!==W?{value:(ec?eI&&W:W)||""}:n.w,eo,e=>eA.getValidationProps(em,e));a.useEffect(()=>{if(!eu||void 0===eh)return;let e=eu.disabledStatesRef.current;return e.set(eh,em),()=>{e.delete(eh)}},[eu,em,eh]);let eU=a.useMemo(()=>({...et,checked:eE,disabled:em,readOnly:$,required:B,indeterminate:e_}),[et,eE,em,$,B,e_]),eB=d(eU),eH=(0,f.a)("span",e,{state:eU,ref:[eC,eS,r],props:[{id:ex,role:"checkbox","aria-checked":e_?"mixed":eE,"aria-readonly":$||void 0,"aria-required":B||void 0,"aria-labelledby":eL,"data-parent":L?"":void 0,onFocus(){eT(!0)},onBlur(){let e=ez.current;e&&(ee(!0),eT(!1),"onBlur"===er&&eA.commit(ec?eN:e.checked))},onKeyDown(e){if("Enter"!==e.key||(e.preventBaseUIHandler(),e.defaultPrevented))return;let t=ez.current?.form??null,r=e.currentTarget,a=e.nativeEvent,n=e.preventDefault,i=a.preventDefault,l=!1;e.preventDefault=()=>{l=!0,n.call(e)},a.preventDefault=()=>{l=!0,i.call(a)},i.call(a),(0,c.f)(r).queueMicrotask(()=>{e.preventDefault=n,a.preventDefault=i,l||(function(e){if(!e)return null;for(let t of e.elements){let e=t.tagName;if(("BUTTON"===e||"INPUT"===e)&&"submit"===t.type)return t}return null})(t)?.click()})},onClick(e){if($||em)return;e.preventDefault();let t=ez.current;t&&(0,m.f)(t,e)}},Z,ej,eP,eo,e=>eA.getValidationProps(em,e)],stateAttributesMapping:eB}),eW=eH.props.id;return(0,l.f)(()=>{if(eO&&!L&&void 0!==eh&&void 0!==eW)return eO(eh,eW)},[eO,L,eh,eW]),(0,t.jsxs)(P.Provider,{value:eU,children:[eH,!eI&&!ec&&ef&&!L&&void 0!==H&&(0,t.jsx)("input",{type:"hidden",form:O,name:ef,value:H,disabled:em}),(0,t.jsx)("input",{...e$,suppressHydrationWarning:!0})]})});var E=e.i(692933),_=e.i(288646),O=e.i(240070);let z=a.forwardRef(function(e,t){let{render:r,className:n,style:i,keepMounted:l=!1,...s}=e,o=function(){let e=a.useContext(P);if(void 0===e)throw Error((0,T.f)(14));return e}(),c=o.checked||o.indeterminate,{mounted:u,transitionStatus:m,setMounted:h}=(0,_.f)(c),p=a.useRef(null),v={...o,transitionStatus:m};(0,E.f)({batch:!0,enabled:!c,open:c,ref:p,onComplete(){c||h(!1)}});let g={...d(o),...O.f},x=(0,f.a)("span",e,{ref:[t,p],state:v,stateAttributesMapping:g,props:s});return l||u?x:null});e.s(["Indicator",0,z,"Root",0,R],756224);var D=e.i(756224),D=D,K=D,F=e.i(872635),M=e.i(58991),L=e.i(136562);let $="transition-[stroke-dashoffset] duration-quick ease-smooth-out motion-reduce:transition-none";e.s(["f",0,function(e){let a,n,i,l,s,o,c,u,d,m,f=(0,r.c)(20);f[0]!==e?({className:n,checked:a,onCheckedChange:i,ref:s,...l}=e,f[0]=e,f[1]=a,f[2]=n,f[3]=i,f[4]=l,f[5]=s):(a=f[1],n=f[2],i=f[3],l=f[4],s=f[5]);let h="indeterminate"===a,p=!!h||a;return f[6]!==n?(o=(0,L.f)("group/checkbox grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-foreground/30 bg-muted text-primary-foreground cursor-pointer ring-offset-background hover:border-foreground/50 focus-visible:outline-none focus-visible:border-focus-border focus-visible:shadow-focus data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 data-[checked]:border-primary data-[checked]:bg-primary data-[indeterminate]:border-primary data-[indeterminate]:bg-primary","transition-[background-color,border-color] duration-quick ease-smooth-out",n),f[6]=n,f[7]=o):o=f[7],f[8]!==h||f[9]!==i?(c=i?e=>{h?i(!0):i(e)}:void 0,f[8]=h,f[9]=i,f[10]=c):c=f[10],f[11]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(F.f,{className:(0,L.f)("col-start-1 row-start-1 h-4 w-4 group-data-[indeterminate]/checkbox:hidden",$,"[stroke-dasharray:23] [stroke-dashoffset:-23] group-data-[checked]/checkbox:duration-medium group-data-[checked]/checkbox:[stroke-dashoffset:0] group-data-[checked]/checkbox:starting:[stroke-dashoffset:-23]")}),f[11]=u):u=f[11],f[12]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsxs)(D.Indicator,{keepMounted:!0,className:"grid place-items-center text-current",children:[u,(0,t.jsx)(M.f,{className:(0,L.f)("col-start-1 row-start-1 h-4 w-4 group-data-[checked]/checkbox:hidden",$,"[stroke-dasharray:14] [stroke-dashoffset:14] group-data-[indeterminate]/checkbox:duration-medium group-data-[indeterminate]/checkbox:[stroke-dashoffset:0] group-data-[indeterminate]/checkbox:starting:[stroke-dashoffset:14]")})]}),f[12]=d):d=f[12],f[13]!==p||f[14]!==h||f[15]!==l||f[16]!==s||f[17]!==o||f[18]!==c?(m=(0,t.jsx)(K.Root,{ref:s,className:o,checked:p,indeterminate:h,onCheckedChange:c,...l,children:d}),f[13]=p,f[14]=h,f[15]=l,f[16]=s,f[17]=o,f[18]=c,f[19]=m):m=f[19],m}],918331)},647402,e=>{"use strict";var t=e.i(659350),r=e.i(663456),a=e.i(136562);let n=(0,e.i(207298).f)("inline-block size-[0.215em] shrink-0 rounded-full bg-current align-middle",{variants:{tone:{inherit:"",faint:"text-faint"}},defaultVariants:{tone:"inherit"}});e.s(["f",0,function(e){let i,l,s=(0,r.c)(6),{className:o,tone:c,"data-testid":u}=e;return s[0]!==o||s[1]!==c?(i=(0,a.f)(n({tone:c}),o),s[0]=o,s[1]=c,s[2]=i):i=s[2],s[3]!==u||s[4]!==i?(l=(0,t.jsx)("span",{"aria-hidden":"true",className:i,"data-testid":u}),s[3]=u,s[4]=i,s[5]=l):l=s[5],l}],647402)},894868,e=>{"use strict";var t=e.i(659350),r=e.i(663456),a=e.i(136562),n=e.i(829622),i=e.i(722841),l=e.i(987457);e.s(["f",0,function(e){let s,o,c,u,d,m,f,h=(0,r.c)(25),{author:p,permaslug:v,iconUri:g,className:x,frame:b,frameRingClassName:y,bare:k}=e,w=void 0!==b&&b,j=void 0!==k&&k;if(h[0]!==p||h[1]!==j||h[2]!==x||h[3]!==w||h[4]!==y||h[5]!==g||h[6]!==v){d=Symbol.for("react.early_return_sentinel");e:{if(o=null==v?(0,i.$)(p,g):(0,i.h)({permaslug:v,author:p,iconUri:g}),j){let e;h[12]!==x?(e=(0,a.f)("flex size-6 shrink-0 items-center justify-center","[&_img]:object-contain",x),h[12]=x,h[13]=e):e=h[13],d=(0,t.jsx)("div",{className:e,children:(0,t.jsx)(n.RemoteFavicon,{className:(0,a.f)("size-full overflow-hidden",o?.className),faviconFor:p,imgSrc:o.url,imgSrcDark:o.darkUrl,size:256})});break e}if(w){d=(0,t.jsx)(l.f,{className:x,ringClassName:y,children:(0,t.jsx)(n.RemoteFavicon,{className:(0,a.f)("size-full",o?.className),faviconFor:p,imgSrc:o.url,imgSrcDark:o.darkUrl,size:256})});break e}h[14]!==x?(u=(0,a.f)("flex items-center justify-center","size-6 shrink-0 rounded-full border","bg-background p-1",x),h[14]=x,h[15]=u):u=h[15],s=n.RemoteFavicon,c=(0,a.f)("overflow-hidden rounded-full",o?.className)}h[0]=p,h[1]=j,h[2]=x,h[3]=w,h[4]=y,h[5]=g,h[6]=v,h[7]=s,h[8]=o,h[9]=c,h[10]=u,h[11]=d}else s=h[7],o=h[8],c=h[9],u=h[10],d=h[11];return d!==Symbol.for("react.early_return_sentinel")?d:(h[16]!==s||h[17]!==p||h[18]!==o.darkUrl||h[19]!==o.url||h[20]!==c?(m=(0,t.jsx)(s,{className:c,faviconFor:p,imgSrc:o.url,imgSrcDark:o.darkUrl,size:256}),h[16]=s,h[17]=p,h[18]=o.darkUrl,h[19]=o.url,h[20]=c,h[21]=m):m=h[21],h[22]!==u||h[23]!==m?(f=(0,t.jsx)("div",{className:u,children:m}),h[22]=u,h[23]=m,h[24]=f):f=h[24],f)}])},987457,e=>{"use strict";var t=e.i(659350),r=e.i(663456),a=e.i(136562);e.s(["f",0,function(e){let n,i,l,s,o,c,u=(0,r.c)(15),{children:d,className:m,variant:f,decorative:h,ringClassName:p}=e,v=void 0!==h&&h||void 0;u[0]!==m?(n=(0,a.f)("relative flex shrink-0 items-center justify-center","box-content p-px","overflow-hidden rounded-sm bg-background","size-6",m),u[0]=m,u[1]=n):n=u[1],u[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.f)("absolute inset-px flex items-center justify-center","[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:object-contain","[&_img]:rounded-sm"),u[2]=i):i=u[2],u[3]!==d?(l=(0,t.jsx)("div",{className:i,children:d}),u[3]=d,u[4]=l):l=u[4];let g="app"===(void 0===f?"default":f)&&"dark:inset-px dark:ring-white";return u[5]!==p||u[6]!==g?(s=(0,a.f)("pointer-events-none absolute inset-0 rounded-[inherit] ring-1 ring-inset ring-border/60",g,p),u[5]=p,u[6]=g,u[7]=s):s=u[7],u[8]!==s?(o=(0,t.jsx)("div",{"aria-hidden":!0,className:s}),u[8]=s,u[9]=o):o=u[9],u[10]!==v||u[11]!==n||u[12]!==l||u[13]!==o?(c=(0,t.jsxs)("div",{"aria-hidden":v,className:n,children:[l,o]}),u[10]=v,u[11]=n,u[12]=l,u[13]=o,u[14]=c):c=u[14],c}])},640947,e=>{"use strict";var t=e.i(659350),r=e.i(663456),a=e.i(136562),n=e.i(829622),i=e.i(987457);e.s(["f",0,e=>{let l,s,o,c,u=(0,r.c)(26),{providerName:d,providerIcon:m,className:f,frame:h}=e;u[0]!==m.url.length||u[1]!==d?(l=0===m.url.length?(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-full items-center justify-center rounded-sm bg-muted text-sm font-medium text-muted-foreground",children:d.trim().charAt(0).toUpperCase()}):null,u[0]=m.url.length,u[1]=d,u[2]=l):l=u[2];let p=l;if(void 0!==h&&h){let e,r,l;return u[3]!==f?(e=(0,a.f)("size-8",f),u[3]=f,u[4]=e):e=u[4],u[5]!==p||u[6]!==m.className||u[7]!==m.darkUrl||u[8]!==m.url||u[9]!==d?(r=p??(0,t.jsx)(n.RemoteFavicon,{className:(0,a.f)("size-full",m.className),faviconFor:d,imgSrc:m.url,imgSrcDark:m.darkUrl,size:256}),u[5]=p,u[6]=m.className,u[7]=m.darkUrl,u[8]=m.url,u[9]=d,u[10]=r):r=u[10],u[11]!==e||u[12]!==r?(l=(0,t.jsx)(i.f,{className:e,children:r}),u[11]=e,u[12]=r,u[13]=l):l=u[13],l}let v=null===p&&"bg-muted/40 p-1 shadow-inner";return u[14]!==f||u[15]!==v?(s=(0,a.f)("flex items-center justify-center","h-8 w-8 rounded-lg",v,f),u[14]=f,u[15]=v,u[16]=s):s=u[16],u[17]!==p||u[18]!==m.className||u[19]!==m.darkUrl||u[20]!==m.url||u[21]!==d?(o=p??(0,t.jsx)(n.RemoteFavicon,{className:(0,a.f)("overflow-hidden rounded-sm",m.className),faviconFor:d,imgSrc:m.url,imgSrcDark:m.darkUrl,size:256}),u[17]=p,u[18]=m.className,u[19]=m.darkUrl,u[20]=m.url,u[21]=d,u[22]=o):o=u[22],u[23]!==s||u[24]!==o?(c=(0,t.jsx)("div",{className:s,children:o}),u[23]=s,u[24]=o,u[25]=c):c=u[25],c}])},722841,e=>{"use strict";var t=e.i(51365);let r=[["microsoft/mai-",(0,t.r)("MAI.png")]];var a=e.i(771271);function n(e){return e.toLowerCase()}let i=new Map([[n(a.R.OpenAI),{url:(0,t.r)("OpenAI.svg"),className:"dark:invert"}],[n(a.R.Perplexity),{url:(0,t.r)("Perplexity.png")}],[n(a.R.Poolside),{url:(0,t.r)("poolside-logomark-solid-color.svg")}],[n(a.R.Perceptron),{url:(0,t.e)("https://www.perceptron.inc")}],["voyageai",{url:(0,t.e)("https://www.voyageai.com")}],[n(a.R.GoogleAIStudio),{url:(0,t.r)("GoogleAIStudio.svg")}],[n(a.R.Anthropic),{url:(0,t.r)("Anthropic.svg")}],[n(a.R.ClaudeOnAws),{url:(0,t.r)("Anthropic.svg")}],[n(a.R.Cohere),{url:(0,t.r)("Cohere.png")}],[n(a.R.Deepgram),{url:(0,t.r)("Deepgram.svg"),className:"dark:invert"}],[n(a.R.DeepSeek),{url:(0,t.r)("DeepSeek.png")}],[n(a.R.Together),{url:(0,t.e)("https://www.together.ai/")}],[n(a.R.Infermatic),{url:(0,t.e)("https://infermatic.ai/")}],[n(a.R.HuggingFace),{url:(0,t.e)("https://huggingface.co/")}],[n(a.R.Unbiased),{url:(0,t.r)("Unbiased.png")}],[n(a.R.AI21),{url:(0,t.e)("https://ai21.com/")}],[n(a.R.Featherless),{url:(0,t.e)("https://featherless.ai/")}],[n(a.R.Reflection),{url:(0,t.e)("https://railway.app/")}],[n(a.R.Inflection),{url:(0,t.e)("https://inflection.ai/")}],[n(a.R.Minimax),{url:(0,t.e)("https://minimaxi.com/")}],[n(a.R.Liquid),{url:(0,t.r)("Liquid.png"),className:"dark:invert"}],[n(a.R.Inception),{url:(0,t.r)("Inception.svg"),className:"dark:invert"}],[n(a.R.Relace),{url:(0,t.e)("https://www.relace.ai")}],[n(a.R.Sourceful),{url:(0,t.e)("https://www.sourceful.com/")}],[n(a.R.Speechify),{url:(0,t.e)("https://speechify.ai/")}],[n(a.R.BytePlus),{url:(0,t.e)("https://www.byteplus.com")}],[n(a.R.Xiaomi),{url:(0,t.e)("https://www.mi.com")}],["arcee-ai",{url:(0,t.e)("https://www.arcee.ai")}],[n(a.R.AssemblyAI),{url:(0,t.e)("https://www.assemblyai.com/")}],["fish-audio",{url:(0,t.e)("https://fish.audio/")}],[n(a.R.ElevenLabs),{url:(0,t.e)("https://elevenlabs.io/"),className:"dark:invert"}],["z-ai",{url:(0,t.e)("https://z.ai/"),className:"dark:invert"}],["moonshotai",{url:(0,t.r)("MoonshotAI.png")}],["morph",{url:(0,t.e)("https://morphllm.com")}],[n(a.R.TypeSafe),{url:(0,t.e)("https://typesafe.ai")}],["qwen",{url:(0,t.r)("Qwen.png")}],["google",{url:(0,t.r)("GoogleGemini.svg")}],["microsoft",{url:(0,t.r)("Microsoft.svg")}],["nousresearch",{url:(0,t.e)("https://nousresearch.com/")}],["nvidia",{url:(0,t.e)("https://nvidia.com/")}],["meta-llama",{url:(0,t.r)("Meta.png")}],["meta",{url:(0,t.r)("Meta.png")}],["databricks",{url:(0,t.e)("https://databricks.com/")}],["openrouter",{url:(0,t.r)("openrouter-glyph-light.svg"),darkUrl:(0,t.r)("openrouter-glyph-dark.svg")}],["mistralai",{url:(0,t.r)("Mistral.png")}],["x-ai",{url:(0,t.e)("https://x.ai/")}],["amazon",{url:(0,t.e)("https://nova.amazon.com/")}],["aion-labs",{url:(0,t.e)("https://www.aionlabs.ai/")}],["allenai",{url:(0,t.e)("https://allenai.org/")}],["switchpoint",{url:(0,t.e)("https://switchpoint.dev/")}],["thedrummer",{url:(0,t.r)("TheDrummer.png")}],["deepcogito",{url:(0,t.e)("https://www.deepcogito.com/")}],["baidu",{url:(0,t.e)("https://www.baidu.com/")}],["kwaipilot",{url:(0,t.r)("Kwaipilot.png")}],["kwaivgi",{url:(0,t.r)("KlingAI.png")}],["black-forest-labs",{url:(0,t.e)("https://bfl.ai")}],["prime-intellect",{url:(0,t.e)("https://www.primeintellect.ai/")}],["primeintellect",{url:(0,t.e)("https://www.primeintellect.ai/")}],["essentialai",{url:(0,t.e)("https://www.essential.ai/")}],["bytedance-seed",{url:(0,t.e)("https://seed.bytedance.com/")}],[n(a.R.Seed),{url:(0,t.e)("https://seed.bytedance.com/")}],["writer",{url:(0,t.e)("https://writer.com/"),className:"dark:invert"}],["stepfun",{url:(0,t.e)("https://platform.stepfun.ai/")}],["stepfun-ai",{url:(0,t.e)("https://platform.stepfun.ai/")}],[n(a.R.Recraft),{url:(0,t.r)("Recraft.svg"),className:"dark:invert"}],["bytedance",{url:(0,t.e)("https://seed.bytedance.com/")}],["alibaba",{url:(0,t.e)("https://www.alibabacloud.com")}],["inclusionai",{url:(0,t.e)("https://www.inclusion-ai.org/")}],["tencent",{url:(0,t.r)("Tencent.png")}],["ibm-granite",{url:(0,t.r)("IBMGranite.svg"),className:"dark:invert"}],["nex-agi",{url:(0,t.r)("NexAGI.svg"),className:"dark:invert"}],[n(a.R.Unbiased),{url:(0,t.r)("Unbiased.png")}],["apodex",{url:(0,t.r)("Apodex.svg"),darkUrl:(0,t.r)("Apodex-dark.svg")}],["elorian",{url:(0,t.r)("Elorian.svg"),darkUrl:(0,t.r)("Elorian-dark.svg")}],["xingchen-agi",{url:(0,t.r)("XingChen-Shield.png")}],["prism-ml",{url:(0,t.r)("PrismML.svg"),darkUrl:(0,t.r)("PrismML-dark.svg")}],["thinkingmachines",{url:(0,t.e)("https://thinkingmachines.ai/")}],["sakana",{url:(0,t.e)("https://sakana.ai")}],[n(a.R.HeyGen),{url:(0,t.e)("https://heygen.com")}],["zyphra",{url:(0,t.r)("Zyphra.svg"),className:"dark:invert"}],["sesame",{url:(0,t.e)("https://www.sesame.com")}],["canopylabs",{url:(0,t.e)("https://canopylabs.ai"),className:"dark:invert"}],["hexgrad",{url:(0,t.r)("Hexgrad.png")}],[n(a.R.Krea),{url:(0,t.e)("https://www.krea.ai")}],[n(a.R.Runway),{url:(0,t.e)("https://runwayml.com")}],[n(a.R.Upstage),{url:(0,t.e)("https://www.upstage.ai/")}],[n(a.R.Fireworks),{url:(0,t.e)("https://fireworks.ai")}],["stealth",{url:(0,t.r)("Stealth.svg"),className:"invert-0 dark:invert"}],[n(a.R.Recursive),{url:(0,t.r)("Recursive.svg"),className:"dark:invert"}],["ricursiveai",{url:(0,t.r)("RicursiveAI.svg"),darkUrl:(0,t.r)("RicursiveAI-dark.svg")}]]),l=/^\/(?![/\\])/u,s=/^data:image\//iu;function o(e,r){var a;let n=i.get(e.toLowerCase());return r&&(!r.startsWith("data:")||s.test(r))?(a=n?.className,l.test(r)||s.test(r)?{url:r}:r.startsWith("//")?{url:(0,t.e)(`https:${r}`)}:r.startsWith("http")?{url:(0,t.e)(r)}:{url:(0,t.r)(r),className:a}):n??{url:t.t}}e.s(["$",0,o,"h",0,function({permaslug:e,author:t,iconUri:a}){let n,i=(n=e.toLowerCase().replace(/^~/u,""),r.find(([e])=>n.startsWith(e))?.[1]??null);return null!==i?{url:i}:o(t,a)}],722841)},621957,e=>{"use strict";var t=e.i(659350),r=e.i(663456),a=e.i(288265),n=e.i(354896),i=e.i(452290),l=e.i(612927),s=e.i(16043),o=e.i(136562),c=e.i(301206),u=e.i(918331),d=e.i(624112);let m=(0,s.createContext)(null);function f(){let e=(0,s.use)(m);if(!e)throw Error("MultiSelect compound components must be used within ");return e}function h(e){return e.value}function p(e){return e.value}function v(e){return!e.disabled}function g(e){return!e.disabled}function x(e){let a,n,s,u,d,m,f,h=(0,r.c)(19),{inputRef:p,value:v,onChange:g,placeholder:x,borderPosition:b}=e,y="bottom"===b?"border-b":"border-t";return h[0]!==y?(a=(0,o.f)("flex items-center border-border px-3",y),h[0]=y,h[1]=a):a=h[1],h[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(i.f,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),h[2]=n):n=h[2],h[3]===Symbol.for("react.memo_cache_sentinel")?(s=(0,c.f)(),h[3]=s):s=h[3],h[4]!==g?(u=e=>g(e.target.value),h[4]=g,h[5]=u):u=h[5],h[6]!==p||h[7]!==x||h[8]!==u||h[9]!==v?(d=(0,t.jsx)("input",{ref:p,autoFocus:!s,value:v,onChange:u,placeholder:x,"aria-label":x,className:"flex h-10 w-full bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground/50 disabled:cursor-not-allowed disabled:opacity-50"}),h[6]=p,h[7]=x,h[8]=u,h[9]=v,h[10]=d):d=h[10],h[11]!==p||h[12]!==g||h[13]!==v?(m=v&&(0,t.jsx)("button",{type:"button",onClick:()=>{g(""),p.current?.focus()},className:"ml-1 rounded-sm p-0.5 text-muted-foreground hover:text-foreground",children:(0,t.jsx)(l.X,{className:"h-3 w-3"})}),h[11]=p,h[12]=g,h[13]=v,h[14]=m):m=h[14],h[15]!==a||h[16]!==d||h[17]!==m?(f=(0,t.jsxs)("div",{className:a,children:[n,d,m]}),h[15]=a,h[16]=d,h[17]=m,h[18]=f):f=h[18],f}function b(e){let a,n,i,l,s,c,d,m,f,h=(0,r.c)(28),{label:p,description:v,prefix:g,checked:x,onToggle:b,disabled:k,isBold:w,wrapLabel:j}=e,N=void 0!==j&&j;h[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,o.f)("flex w-full cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none","hover:bg-card-hover hover:text-foreground","focus-visible:bg-card-hover focus-visible:text-foreground","disabled:pointer-events-none disabled:opacity-50"),h[0]=a):a=h[0],h[1]!==g?(n=g&&(0,t.jsx)("span",{className:"shrink-0",children:g}),h[1]=g,h[2]=n):n=h[2];let S=N?"whitespace-normal break-words":"truncate",T=w&&"font-medium";return h[3]!==S||h[4]!==T?(i=(0,o.f)(S,"text-left",T),h[3]=S,h[4]=T,h[5]=i):i=h[5],h[6]!==p||h[7]!==i?(l=(0,t.jsx)("span",{className:i,title:p,children:p}),h[6]=p,h[7]=i,h[8]=l):l=h[8],h[9]!==v||h[10]!==N?(s=v&&(0,t.jsx)("span",{className:(0,o.f)("text-muted-foreground text-xs text-left",N?"whitespace-normal break-words":"truncate"),title:v,children:v}),h[9]=v,h[10]=N,h[11]=s):s=h[11],h[12]!==l||h[13]!==s?(c=(0,t.jsxs)("div",{className:"flex flex-1 flex-col min-w-0",children:[l,s]}),h[12]=l,h[13]=s,h[14]=c):c=h[14],h[15]!==b?(d=()=>b(),h[15]=b,h[16]=d):d=h[16],h[17]!==x||h[18]!==k||h[19]!==d?(m=(0,t.jsx)(u.f,{checked:x,disabled:k,onCheckedChange:d,onClick:y,className:"shrink-0"}),h[17]=x,h[18]=k,h[19]=d,h[20]=m):m=h[20],h[21]!==x||h[22]!==k||h[23]!==b||h[24]!==m||h[25]!==n||h[26]!==c?(f=(0,t.jsxs)("button",{type:"button",role:"option","aria-selected":x,disabled:k,onClick:b,className:a,children:[n,c,m]}),h[21]=x,h[22]=k,h[23]=b,h[24]=m,h[25]=n,h[26]=c,h[27]=f):f=h[27],f}function y(e){return e.stopPropagation()}e.s(["o",0,function(e){let a,n,i,l,o,c,u,f,g,x,b=(0,r.c)(39),{value:y,onValueChange:k,options:w,size:j,onOpenChange:N,children:S}=e,T=void 0===j?"default":j,[P,C]=(0,s.useState)(""),[A,I]=(0,s.useState)(!1);b[0]!==y?(a=new Set(y),b[0]=y,b[1]=a):a=b[1];let R=a;b[2]!==w?(n=w.filter(v),b[2]=w,b[3]=n):n=b[3];let E=n;if(b[4]!==w||b[5]!==P){let e;i=(e=P.trim().toLowerCase())?w.filter(t=>[t.label,t.description??"",...t.searchKeywords??[]].some(t=>t.toLowerCase().includes(e))):w,b[4]=w,b[5]=P,b[6]=i}else i=b[6];let _=i;b[7]!==E||b[8]!==R?(l=E.length>0&&E.every(e=>R.has(e.value)),b[7]=E,b[8]=R,b[9]=l):l=b[9];let O=l;b[10]!==k||b[11]!==R||b[12]!==y?(o=e=>{k(R.has(e)?y.filter(t=>t!==e):[...y,e])},b[10]=k,b[11]=R,b[12]=y,b[13]=o):o=b[13];let z=o;b[14]!==O||b[15]!==E||b[16]!==k||b[17]!==y?(c=()=>{if(O){let e=new Set(E.map(p));k(y.filter(t=>!e.has(t)));return}k([...new Set([...y,...E.map(h)])])},b[14]=O,b[15]=E,b[16]=k,b[17]=y,b[18]=c):c=b[18];let D=c;b[19]!==N?(u=e=>{I(e),N?.(e),e||C("")},b[19]=N,b[20]=u):u=b[20];let K=u;b[21]!==O||b[22]!==_||b[23]!==K||b[24]!==A||b[25]!==w||b[26]!==P||b[27]!==R||b[28]!==T||b[29]!==z||b[30]!==D?(f={selected:R,options:w,size:T,toggle:z,toggleAll:D,allSelected:O,searchQuery:P,setSearchQuery:C,filteredOptions:_,isOpen:A,setIsOpen:K},b[21]=O,b[22]=_,b[23]=K,b[24]=A,b[25]=w,b[26]=P,b[27]=R,b[28]=T,b[29]=z,b[30]=D,b[31]=f):f=b[31];let F=f;return b[32]!==S||b[33]!==K||b[34]!==A?(g=(0,t.jsx)(d.V,{open:A,onOpenChange:K,children:S}),b[32]=S,b[33]=K,b[34]=A,b[35]=g):g=b[35],b[36]!==F||b[37]!==g?(x=(0,t.jsx)(m,{value:F,children:g}),b[36]=F,b[37]=g,b[38]=x):x=b[38],x},"f",0,function(e){let n,i,l,c,u,m,h,p,v,y,k,w,j,N,S=(0,r.c)(61),{className:T,searchable:P,searchPlaceholder:C,showSelectAll:A,emptyMessage:I,footer:R,align:E,side:_,searchPosition:O,matchTriggerWidth:z,wrapItemLabels:D}=e,K=void 0===P||P,F=void 0===A||A,M=void 0===E?"start":E,L=void 0===_?"bottom":_,$=void 0===O?"top":O,U=void 0!==D&&D,B=(0,a.f)();S[0]!==B||S[1]!==C?(n=C??B("Search..."),S[0]=B,S[1]=C,S[2]=n):n=S[2];let H=n;S[3]!==I||S[4]!==B?(i=I??B("No options found."),S[3]=I,S[4]=B,S[5]=i):i=S[5];let W=i,{filteredOptions:V,selected:Y,toggle:Z,toggleAll:q,allSelected:J,searchQuery:G,setSearchQuery:Q}=f(),X=(0,s.useRef)(null);S[6]!==V?(l=V.filter(g),S[6]=V,S[7]=l):l=S[7];let ee=l;S[8]!==ee||S[9]!==G||S[10]!==F?(c=F&&ee.length>1&&!G.trim(),S[8]=ee,S[9]=G,S[10]=F,S[11]=c):c=S[11];let et=c,er=(void 0===z||z)&&"w-(--anchor-width) min-w-48";if(S[12]!==T||S[13]!==er?(u=(0,o.f)("p-0",er,T),S[12]=T,S[13]=er,S[14]=u):u=S[14],S[15]!==H||S[16]!==$||S[17]!==G||S[18]!==K||S[19]!==Q?(m=K&&"top"===$&&(0,t.jsx)(x,{inputRef:X,value:G,onChange:Q,placeholder:H,borderPosition:"bottom"}),S[15]=H,S[16]=$,S[17]=G,S[18]=K,S[19]=Q,S[20]=m):m=S[20],S[21]!==J||S[22]!==B||S[23]!==et||S[24]!==q||S[25]!==U?(h=et&&(0,t.jsx)(b,{label:B(J?"Deselect all":"Select all"),checked:J,onToggle:q,isBold:!0,wrapLabel:U}),S[21]=J,S[22]=B,S[23]=et,S[24]=q,S[25]=U,S[26]=h):h=S[26],S[27]!==V.length||S[28]!==W?(p=0===V.length&&(0,t.jsx)("div",{className:"py-6 text-center text-sm text-muted-foreground",children:W}),S[27]=V.length,S[28]=W,S[29]=p):p=S[29],S[30]!==V||S[31]!==Y||S[32]!==Z||S[33]!==U){let e;S[35]!==Y||S[36]!==Z||S[37]!==U?(e=e=>(0,t.jsx)(b,{label:e.label,description:e.description,prefix:e.icon,checked:Y.has(e.value),onToggle:()=>Z(e.value),disabled:e.disabled,wrapLabel:U},e.value),S[35]=Y,S[36]=Z,S[37]=U,S[38]=e):e=S[38],v=V.map(e),S[30]=V,S[31]=Y,S[32]=Z,S[33]=U,S[34]=v}else v=S[34];return S[39]!==h||S[40]!==p||S[41]!==v?(y=(0,t.jsxs)("div",{className:"max-h-60 overflow-y-auto overflow-x-hidden p-1",children:[h,p,v]}),S[39]=h,S[40]=p,S[41]=v,S[42]=y):y=S[42],S[43]!==H||S[44]!==$||S[45]!==G||S[46]!==K||S[47]!==Q?(k=K&&"bottom"===$&&(0,t.jsx)(x,{inputRef:X,value:G,onChange:Q,placeholder:H,borderPosition:"top"}),S[43]=H,S[44]=$,S[45]=G,S[46]=K,S[47]=Q,S[48]=k):k=S[48],S[49]!==R?(w=R&&(0,t.jsx)("div",{className:"border-t border-border p-2",children:R}),S[49]=R,S[50]=w):w=S[50],S[51]!==m||S[52]!==y||S[53]!==k||S[54]!==w?(j=(0,t.jsxs)("div",{className:"flex flex-col",children:[m,y,k,w]}),S[51]=m,S[52]=y,S[53]=k,S[54]=w,S[55]=j):j=S[55],S[56]!==M||S[57]!==L||S[58]!==u||S[59]!==j?(N=(0,t.jsx)(d.T,{className:u,align:M,side:L,children:j}),S[56]=M,S[57]=L,S[58]=u,S[59]=j,S[60]=N):N=S[60],N},"y",0,function(e){let i,l,s,c,u,m=(0,r.c)(16),{className:h,placeholder:p,disabled:v,"aria-label":g}=e,x=(0,a.f)(),{selected:b,size:y}=f();m[0]!==x||m[1]!==p||m[2]!==b.size?(i=b.size>0?x("{count} selected",{count:b.size}):p??x("Select..."),m[0]=x,m[1]=p,m[2]=b.size,m[3]=i):i=m[3];let k=i,w="compact"===y?"relative h-8 pointer-coarse:after:absolute pointer-coarse:after:inset-x-0 pointer-coarse:after:top-1/2 pointer-coarse:after:h-11 pointer-coarse:after:-translate-y-1/2 pointer-coarse:after:-z-10":"h-10",j=g?`${g}, ${k}`:void 0,N=b.size>0?"text-foreground":"text-muted-foreground";return m[4]!==h||m[5]!==w||m[6]!==N?(l=(0,o.f)("flex w-full items-center justify-between rounded-md px-3 py-2","border border-input bg-input-bg text-body cursor-pointer","focus-visible:outline-none focus-visible:border-focus-border focus-visible:shadow-focus","disabled:cursor-not-allowed disabled:opacity-50","hover:bg-muted/30",w,N,h),m[4]=h,m[5]=w,m[6]=N,m[7]=l):l=m[7],m[8]!==k?(s=(0,t.jsx)("span",{className:"flex-1 text-left truncate",children:k}),m[8]=k,m[9]=s):s=m[9],m[10]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(n.f,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"}),m[10]=c):c=m[10],m[11]!==v||m[12]!==j||m[13]!==l||m[14]!==s?(u=(0,t.jsx)(d.J,{render:(0,t.jsxs)("button",{type:"button",disabled:v,"aria-label":j,className:l,children:[s,c]})}),m[11]=v,m[12]=j,m[13]=l,m[14]=s,m[15]=u):u=m[15],u},"X",0,f],621957)},829622,e=>{"use strict";var t=e.i(659350),r=e.i(663456),a=e.i(214051),n=e.i(51365),i=e.i(288265),l=e.i(16043);e.s(["RemoteFavicon",0,function(e){let s,o,c,u,d,m,f,h,p,v,g,x,b,y=(0,r.c)(55),k=(0,i.f)(),[w,j]=(0,l.useState)(null),[N,S]=(0,l.useState)(null),[T,P]=(0,l.useState)(!1),[C,A]=(0,l.useState)(!1),I=e.size||256;y[0]!==T||y[1]!==C||y[2]!==e.curatedIconAppId||y[3]!==e.faviconFor||y[4]!==e.imgSrc||y[5]!==I?(s=function({faviconFor:e,size:t,didCuratedIconFail:r,didSiteIconFail:a,curatedIconAppId:i,imgSrc:l}){if(l)return{source:"given",src:l};if(void 0!==i&&(0,n.Q)(e)&&!r)return{source:"curated",src:(0,n.$)(e)?e:(0,n.g)(i)};let s=a?(0,n.Z)(e):null;return null!==s?{source:"parent-site",src:(0,n.e)(s,t)}:{source:"site",src:(0,n.e)(e,t)}}({faviconFor:e.faviconFor,size:I,didCuratedIconFail:T,didSiteIconFail:C,curatedIconAppId:e.curatedIconAppId,imgSrc:e.imgSrc}),y[0]=T,y[1]=C,y[2]=e.curatedIconAppId,y[3]=e.faviconFor,y[4]=e.imgSrc,y[5]=I,y[6]=s):s=y[6];let{source:R,src:E}=s;y[7]!==e.faviconFor||y[8]!==I||y[9]!==R?(o=t=>{"site"!==R||I<=16||t>16||null!==(0,n.Z)(e.faviconFor)&&A(!0)},y[7]=e.faviconFor,y[8]=I,y[9]=R,y[10]=o):o=y[10];let _=o;y[11]!==e.faviconFor||y[12]!==R?(c=t=>{switch(R){case"curated":if((0,n.$)(e.faviconFor))return void j(t);P(!0);return;case"site":if(null===(0,n.Z)(e.faviconFor))return void j(t);A(!0);return;case"given":case"parent-site":return void j(t);default:j(t)}},y[11]=e.faviconFor,y[12]=R,y[13]=c):c=y[13];let O=c;y[14]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{j(null)},y[14]=u):u=y[14],y[15]!==E?(d=[E],y[15]=E,y[16]=d):d=y[16],(0,l.useEffect)(u,d),y[17]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{P(!1),A(!1)},y[17]=m):m=y[17],y[18]!==e.curatedIconAppId||y[19]!==e.faviconFor||y[20]!==e.imgSrc||y[21]!==I?(f=[e.faviconFor,e.curatedIconAppId,e.imgSrc,I],y[18]=e.curatedIconAppId,y[19]=e.faviconFor,y[20]=e.imgSrc,y[21]=I,y[22]=f):f=y[22],(0,l.useEffect)(m,f),y[23]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{S(null)},y[23]=h):h=y[23],y[24]!==e.imgSrcDark?(p=[e.imgSrcDark],y[24]=e.imgSrcDark,y[25]=p):p=y[25],(0,l.useEffect)(h,p),y[26]!==k||y[27]!==e.faviconFor?(v=k("Favicon for {faviconFor}",{faviconFor:e.faviconFor}),y[26]=k,y[27]=e.faviconFor,y[28]=v):v=y[28],y[29]!==I||y[30]!==v?(g={width:I,height:I,alt:v,className:"h-full w-full object-cover"},y[29]=I,y[30]=v,y[31]=g):g=y[31];let z=g;if(e.imgSrcDark){let r,n,i;return y[32]!==w||y[33]!==z||y[34]!==O||y[35]!==_||y[36]!==E?(r=(0,t.jsx)("span",{className:"block h-full w-full shrink-0 dark:hidden",children:w?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(a.f,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("img",{...z,src:E,onError:e=>O(e.toString()),onLoad:e=>_(e.currentTarget.naturalWidth)})}),y[32]=w,y[33]=z,y[34]=O,y[35]=_,y[36]=E,y[37]=r):r=y[37],y[38]!==N||y[39]!==z||y[40]!==e.imgSrcDark?(n=(0,t.jsx)("span",{className:"hidden h-full w-full shrink-0 dark:block",children:N?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(a.f,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("img",{...z,src:e.imgSrcDark,onError:e=>S(e.toString())})}),y[38]=N,y[39]=z,y[40]=e.imgSrcDark,y[41]=n):n=y[41],y[42]!==e.className||y[43]!==r||y[44]!==n?(i=(0,t.jsxs)("div",{className:e.className,children:[r,n]}),y[42]=e.className,y[43]=r,y[44]=n,y[45]=i):i=y[45],i}return y[46]!==w||y[47]!==z||y[48]!==O||y[49]!==_||y[50]!==E?(x=w?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(a.f,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("picture",{className:"h-full w-full shrink-0",children:(0,t.jsx)("img",{...z,src:E,loading:"lazy",decoding:"async",onError:e=>O(e.toString()),onLoad:e=>_(e.currentTarget.naturalWidth)})}),y[46]=w,y[47]=z,y[48]=O,y[49]=_,y[50]=E,y[51]=x):x=y[51],y[52]!==e.className||y[53]!==x?(b=(0,t.jsx)("div",{className:e.className,children:x}),y[52]=e.className,y[53]=x,y[54]=b):b=y[54],b}])},301206,e=>{"use strict";e.s(["f",0,function(){return globalThis.window?.matchMedia?.("(pointer: coarse)").matches??!1}])},51365,e=>{"use strict";e.i(640216);let t=new Set(["ac","co","com","edu","go","gob","gov","ltd","me","ne","net","nom","or","org","plc","sch"]),r=(e,t=256)=>`https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=${e}&size=${t}`,a=new Set(["amazonaws.com","azurewebsites.net","cloudfront.net","firebaseapp.com","fly.dev","github.io","gitlab.io","herokuapp.com","ngrok.app","ngrok.io","netlify.app","onrender.com","pages.dev","run.app","vercel.app","web.app","workers.dev"]),n=/\.(png|jpe?g|ico|svg|webp|gif|bmp)$/i,i=r("https://huggingface.co/");e.s(["t",0,i,"g",0,e=>`/api/frontend/v1/apps/${e}/icon`,"e",0,r,"r",0,e=>`/images/icons/${e}`,"Z",0,e=>{let r=(e=>{let t=/^[a-z][a-z\d+\-.]*:\/\//iu.test(e)?e:`https://${e}`;try{return new URL(t).hostname.toLowerCase().replace(/\.$/u,"")}catch{return null}})(e);if(null===r)return null;let n=r.split(".").slice(1);if(n.length<2||2===n.length&&2===(n[1]??"").length&&t.has(n[0]??""))return null;let i=n.join(".");return[...a].some(e=>i===e||i.endsWith(`.${e}`))?null:`https://${i}`},"Q",0,e=>{try{return n.test(new URL(e).pathname)}catch{return!1}},"$",0,e=>{try{let t=new URL(e).hostname.toLowerCase().replace(/\.$/,"");return"openrouter.ai"===t||t.endsWith(".openrouter.ai")}catch{return!1}}],51365)},640216,e=>{"use strict";var t=e.i(914571),r=e.i(647204),a=e.i(30012);function n(e){let t=e.replaceAll(/^\[|\]$/g,""),r=o(t);if(r)return n(r);if(i(t)){let e=Number.parseInt(t.split(".")[0]??"",10);return 0===e||127===e}let a=l(t);if(a)return a.slice(0,15).every(e=>0===e)&&(0===a[15]||1===a[15]);let s=c(t);return"localhost"===s||s.endsWith(".localhost")||s.includes(":")}function i(e){let t=e.split(".");return 4===t.length&&t.every(e=>/^\d{1,3}$/.test(e)&&Number(e)>=0&&255>=Number(e))}function l(e){let t=e.replaceAll(/^\[|\]$/g,"").toLowerCase(),r=t.indexOf("%");if(-1!==r){if(0===r||r===t.length-1)return null;t=t.slice(0,r)}if(!t.includes(":"))return null;if(t.includes(".")){let e=t.lastIndexOf(":");if(-1===e)return null;let r=t.slice(e+1);if(!i(r))return null;let a=r.split(".").map(Number),n=(a[0]??0)<<8|(a[1]??0),l=(a[2]??0)<<8|(a[3]??0);t=`${t.slice(0,e+1)}${n.toString(16)}:${l.toString(16)}`}let a=t.indexOf("::");if(a!==t.lastIndexOf("::"))return null;let n=-1!==a?function(e,t){let r=e.slice(0,t),a=e.slice(t+2),n=""===r?[]:r.split(":"),i=""===a?[]:a.split(":");if(n.some(e=>""===e)||i.some(e=>""===e))return null;let l=8-n.length-i.length;return l<1?null:[...n,...Array.from({length:l},()=>"0"),...i]}(t,a):t.split(":");return null===n||8!==n.length||n.some(e=>!/^[0-9a-f]{1,4}$/.test(e))?null:n.flatMap(e=>{let t=Number.parseInt(e,16);return[t>>8&255,255&t]})}function s(e){return 254===e[0]&&((e[1]??0)&192)==128}function o(e){let t=l(e);if(null===t)return null;let r=t.slice(0,10).every(e=>0===e)&&255===t[10]&&255===t[11],a=t.slice(0,12).every(e=>0===e),n=t.slice(0,15).every(e=>0===e)&&(0===t[15]||1===t[15]);return!r&&!a||a&&n?null:`${t[12]}.${t[13]}.${t[14]}.${t[15]}`}function c(e){let t=e.toLowerCase(),r=t.length;for(;r>0&&"."===t[r-1];)r-=1;return t.slice(0,r)}t.n,e.s(["b",0,function(e,t){return"https:"===e.protocol||"http:"===e.protocol&&t&&n(e.hostname)},"i",0,function(e){let t=c(e);return"cfargotunnel.com"===t||t.endsWith(".cfargotunnel.com")},"y",0,n,"r",0,function(e){let t=c(e);return"openrouter.ai"===t||t.endsWith(".openrouter.ai")},"E",0,function(e,t={}){let u,d,m,f;try{u=new URL(e)}catch{return(0,r.Y)("Invalid URL format")}let h=u.hostname.toLowerCase(),p=u.protocol,v=(0,a.T)()&&!0;if(n(h)&&v)return"http:"!==p&&"https:"!==p?(0,r.Y)("Only HTTP and HTTPS protocols are allowed"):(0,r.N)(!0);if(n(h))return(0,r.Y)("Localhost URLs are not allowed");if(function e(t){let r=o(t.replaceAll(/^\[|\]$/g,""));if(r)return e(r)||n(r);if(i(t)){let e=t.split(".").map(Number);if(4!==e.length||e.some(e=>Number.isNaN(e)))return!1;let[r,a]=e;return void 0!==r&&void 0!==a&&(10===r||172===r&&a>=16&&a<=31||192===r&&168===a||100===r&&a>=64&&a<=127||169===r&&254===a)}if(null!==l(t)){let e=l(t);return null!==e&&(((e[0]??0)&254)==252||s(e))}return!1}(h))return(0,r.Y)("Private IP addresses are not allowed");if(function(e){if(i(e)){let t=e.split(".").map(Number);if(4===t.length&&169===t[0]&&254===t[1])return!0}if(null!==l(e)){let t=l(e);return null!==t&&s(t)}return!1}(h)||"metadata.google.internal"===(d=c(h))||d.endsWith(".metadata.google.internal")||(m=c(h)).endsWith(".svc")||m.endsWith(".svc.cluster.local")||m.endsWith(".cluster.local")||(f=c(h)).endsWith(".internal")||f.endsWith(".local"))return(0,r.Y)("Unsupported URL, public internet addresses only");if(!v&&"https:"!==p){if(!t.allowHttp)return(0,r.Y)("Only HTTPS URLs are allowed");if("http:"!==p)return(0,r.Y)("Only HTTP and HTTPS protocols are allowed")}return v&&"http:"!==p&&"https:"!==p?(0,r.Y)("Only HTTP and HTTPS protocols are allowed in dev"):(0,r.N)(!0)}],640216)},265716,e=>{"use strict";e.s(["f",0,function(e,t,r){return null===e&&null===t?0:null===e?1:null===t?-1:"ascending"===r?e-t:t-e}])},627413,e=>{"use strict";var t=e.i(659350),r=e.i(663456),a=e.i(297272),n=e.i(136562),i=e.i(233452),l=e.i(702441),s=e.i(894868),o=e.i(640947),c=e.i(328262),u=e.i(530798),d=e.i(954217),m=e.i(751155),f=e.i(734809),h=e.i(138257);e.i(707060);var p=e.i(196991),v=e.i(153746),g=e.i(288265),x=e.i(843749),b=e.i(16043),y=e.i(265716),k=e.i(714170);let w=["accuracy","cost","duration","inputTokens","tokens"];function j(e){let n,i,l,s,c,d,m,g,x,b,y,w,j,N,S,T,P,C,A=(0,r.c)(50),{provider:I,showInputTokens:R}=e,E=void 0!==R&&R,_=(0,h.useLocale)(),{getProviderInfo:O}=(0,f.f)();A[0]!==O||A[1]!==I.providerName?(n=O(I.providerName),A[0]=O,A[1]=I.providerName,A[2]=n):n=A[2];let z=n;return A[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)(u.TableCell,{}),A[3]=i):i=A[3],A[4]!==z?(l=z?.icon&&(0,t.jsx)(o.f,{frame:!0,providerName:z.name,providerIcon:z.icon,className:"size-5"}),A[4]=z,A[5]=l):l=A[5],A[6]!==l?(s=(0,t.jsx)("span",{"aria-hidden":"true",className:"flex size-5 shrink-0",children:l}),A[6]=l,A[7]=s):s=A[7],A[8]!==I.providerName?(c=(0,t.jsx)("span",{className:"min-w-0 truncate",children:I.providerName}),A[8]=I.providerName,A[9]=c):c=A[9],A[10]!==s||A[11]!==c?(d=(0,t.jsx)(u.TableRowHead,{children:(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2 pl-9 text-muted-foreground",children:[s,c]})}),A[10]=s,A[11]=c,A[12]=d):d=A[12],A[13]!==_||A[14]!==I.accuracy?(m=(0,k.Z)(_,I.accuracy),A[13]=_,A[14]=I.accuracy,A[15]=m):m=A[15],A[16]!==m?(g=(0,t.jsx)(u.TableCell,{className:"text-right",children:(0,t.jsx)("span",{className:"w-12 tabular-nums text-muted-foreground",children:m})}),A[16]=m,A[17]=g):g=A[17],A[18]!==_||A[19]!==I.accuracyStdDev?(x=null===I.accuracyStdDev?"--":(0,t.jsxs)(p.T,{children:["±",(0,t.jsx)(v.d,{children:(0,a.B)(100*I.accuracyStdDev,{locale:_,fractionDigits:1})??"—"}),"pp"]}),A[18]=_,A[19]=I.accuracyStdDev,A[20]=x):x=A[20],A[21]!==x?(b=(0,t.jsx)(u.TableCell,{className:"text-right tabular-nums",children:x}),A[21]=x,A[22]=b):b=A[22],A[23]!==_||A[24]!==I.avgCostPerTask?(y=(0,k.J)(_,I.avgCostPerTask),A[23]=_,A[24]=I.avgCostPerTask,A[25]=y):y=A[25],A[26]!==y?(w=(0,t.jsx)(u.TableCell,{className:"text-right tabular-nums",children:y}),A[26]=y,A[27]=w):w=A[27],A[28]!==_||A[29]!==I.avgDurationPerTaskMs?(j=(0,k.E)(_,I.avgDurationPerTaskMs),A[28]=_,A[29]=I.avgDurationPerTaskMs,A[30]=j):j=A[30],A[31]!==j?(N=(0,t.jsx)(u.TableCell,{className:"text-right tabular-nums",children:j}),A[31]=j,A[32]=N):N=A[32],A[33]!==_||A[34]!==I.avgInputTokensPerTask||A[35]!==E?(S=E&&(0,t.jsx)(u.TableCell,{className:"text-right tabular-nums",children:(0,k.K)(_,I.avgInputTokensPerTask)}),A[33]=_,A[34]=I.avgInputTokensPerTask,A[35]=E,A[36]=S):S=A[36],A[37]!==_||A[38]!==I.avgOutputTokensPerTask?(T=(0,k.K)(_,I.avgOutputTokensPerTask),A[37]=_,A[38]=I.avgOutputTokensPerTask,A[39]=T):T=A[39],A[40]!==T?(P=(0,t.jsx)(u.TableCell,{className:"text-right tabular-nums",children:T}),A[40]=T,A[41]=P):P=A[41],A[42]!==b||A[43]!==w||A[44]!==N||A[45]!==S||A[46]!==P||A[47]!==d||A[48]!==g?(C=(0,t.jsxs)(u.TableRow,{tone:"muted-40",children:[i,d,g,b,w,N,S,P]}),A[42]=b,A[43]=w,A[44]=N,A[45]=S,A[46]=P,A[47]=d,A[48]=g,A[49]=C):C=A[49],C}function N(e){return e.providers.length>1}function S(e){let[t]=e.providers;return void 0!==t&&1===e.providers.length?t.providerName:null}function T(e,t){switch(t){case"accuracy":return e.median.accuracy;case"cost":return e.median.avgCostPerTask;case"duration":return e.median.avgDurationPerTaskMs;case"inputTokens":return e.median.avgInputTokensPerTask;case"tokens":return e.median.avgOutputTokensPerTask}}e.s(["Tau2AirlineLeaderboard",0,function({caption:e,metricLabel:r,models:o,showInputTokens:f=!1}){let P=(0,h.useLocale)(),C=(0,g.f)(),A=r??C("task"),[I,R]=(0,b.useState)("accuracy"),[E,_]=(0,b.useState)("descending"),[O,z]=(0,b.useState)(new Set),D=(0,b.useMemo)(()=>new Map(o.toSorted((e,t)=>t.median.accuracy-e.median.accuracy).map((e,t)=>[e.modelPermaslug,t+1])),[o]),K=(0,b.useMemo)(()=>(function({models:e,key:t,direction:r}){return e.toSorted((e,a)=>(0,y.f)(T(e,t),T(a,t),r))})({models:o,key:I,direction:E}),[o,I,E]);return(0,t.jsx)(l.N,{className:"overflow-hidden",children:(0,t.jsxs)(u.Table,{compact:!0,sort:{key:I,direction:"ascending"===E?"asc":"desc"},onSortChange:function(e){let t=w.find(t=>t===e?.key);if(null===e||void 0===t){R("accuracy"),_("descending");return}R(t),_("asc"===e.direction?"ascending":"descending")},children:[(0,t.jsx)(u.TableCaption,{className:"sr-only",children:e}),(0,t.jsx)(u.TableHeader,{children:(0,t.jsxs)(u.TableRow,{children:[(0,t.jsx)(u.TableHead,{className:"w-10 text-right",scope:"col",children:"#"}),(0,t.jsx)(u.TableHead,{scope:"col",children:(0,t.jsx)(p.T,{children:"Model"})}),(0,t.jsx)(u.TableHead,{className:"text-right",sortKey:"accuracy",sortFirstDirection:"descending",scope:"col",children:(0,t.jsx)(p.T,{children:"Accuracy"})}),(0,t.jsx)(u.TableHead,{className:"text-right",scope:"col",children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,t.jsx)(p.T,{children:"Std dev"}),(0,t.jsx)(c.InfoTooltip,{children:(0,t.jsx)(p.T,{children:"Top-level rows show standard deviation across runs using default routing (not pinned to a provider); provider rows show standard deviation across runs pinned to that provider."})})]})}),(0,t.jsx)(u.TableHead,{className:"text-right",sortKey:"cost",scope:"col",children:(0,t.jsxs)(p.T,{children:["Cost / ",(0,t.jsx)(v.d,{children:A})]})}),(0,t.jsx)(u.TableHead,{className:"text-right",sortKey:"duration",scope:"col",children:(0,t.jsxs)(p.T,{children:["Time / ",(0,t.jsx)(v.d,{children:A})]})}),f&&(0,t.jsx)(u.TableHead,{className:"text-right",sortKey:"inputTokens",scope:"col",children:C("Input tok / {metric}",{metric:A})}),(0,t.jsx)(u.TableHead,{className:"text-right",sortKey:"tokens",scope:"col",children:(0,t.jsxs)(p.T,{children:["Output tok / ",(0,t.jsx)(v.d,{children:A})]})})]})}),(0,t.jsx)(u.TableBody,{children:K.map(e=>(0,t.jsxs)(b.Fragment,{children:[(0,t.jsxs)(u.TableRow,{className:N(e)?"cursor-pointer":void 0,onClick:N(e)?()=>{var t;return t=e.modelPermaslug,void z(e=>{let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r})}:void 0,children:[(0,t.jsx)(u.TableCell,{className:"text-right tabular-nums",children:D.get(e.modelPermaslug)}),(0,t.jsx)(u.TableRowHead,{className:"w-80 max-w-80 overflow-hidden",children:(0,t.jsxs)("div",{className:"min-w-0 max-w-80",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[N(e)?(0,t.jsx)(x.f,{className:(0,n.f)("size-3.5 shrink-0 text-muted-foreground transition-transform",O.has(e.modelPermaslug)&&"rotate-90")}):(0,t.jsx)("span",{"aria-hidden":"true",className:"size-3.5 shrink-0"}),(0,t.jsx)("span",{"aria-hidden":"true",className:"flex shrink-0",children:(0,t.jsx)(s.f,{author:e.author,permaslug:e.modelPermaslug,className:"size-5",frame:!0})}),e.modelSlug?(0,t.jsx)(d.TextLink,{className:"min-w-0 truncate",href:`/${e.modelSlug}`,onClick:e=>e.stopPropagation(),children:e.modelName}):(0,t.jsx)("span",{className:"min-w-0 truncate",children:e.modelName}),e.isParetoOptimal&&(0,t.jsx)(m.Tooltip,{content:C("Pareto-optimal: no other model is both cheaper and more accurate. See the Accuracy vs. cost chart."),children:(0,t.jsx)(m.TooltipNonInteractiveTrigger,{className:"inline-flex shrink-0 cursor-help",children:(0,t.jsx)(i.Badge,{variant:"secondary",children:(0,t.jsx)(p.T,{children:"Pareto"})})})})]}),null!==S(e)&&(0,t.jsx)("div",{className:"truncate pl-5.5 text-xs text-muted-foreground",children:S(e)})]})}),(0,t.jsx)(u.TableCell,{className:"text-right tabular-nums",children:(0,k.Z)(P,e.median.accuracy)}),(0,t.jsx)(u.TableCell,{className:"text-right tabular-nums",children:null===e.accuracyStdDev?"--":(0,t.jsxs)(p.T,{children:["±",(0,t.jsx)(v.d,{children:(0,a.B)(100*e.accuracyStdDev,{locale:P,fractionDigits:1})??"—"}),"pp"]})}),(0,t.jsx)(u.TableCell,{className:"text-right tabular-nums",children:(0,k.J)(P,e.median.avgCostPerTask)}),(0,t.jsx)(u.TableCell,{className:"text-right tabular-nums",children:(0,k.E)(P,e.median.avgDurationPerTaskMs)}),f&&(0,t.jsx)(u.TableCell,{className:"text-right tabular-nums",children:(0,k.K)(P,e.median.avgInputTokensPerTask)}),(0,t.jsx)(u.TableCell,{className:"text-right tabular-nums",children:(0,k.K)(P,e.median.avgOutputTokensPerTask)})]}),N(e)&&O.has(e.modelPermaslug)&&e.providers.map(e=>(0,t.jsx)(j,{provider:e,showInputTokens:f},e.id))]},e.modelPermaslug))})]})})}])},414374,e=>{"use strict";var t=e.i(659350),r=e.i(663456),a=e.i(139659),n=e.i(959085),i=e.i(139697),l=e.i(702441),s=e.i(80676),o=e.i(894868),c=e.i(621957),u=e.i(954217),d=e.i(707951),m=e.i(960773),f=e.i(138257),h=e.i(205194);e.i(707060);var p=e.i(196991),v=e.i(288265),g=e.i(16043),x=e.i(527629),b=e.i(699707),y=e.i(754844),k=e.i(968416),w=e.i(569284),j=e.i(804599),N=e.i(836466),S=e.i(760638),T=e.i(460867),P=e.i(136562),C=e.i(374696);function A(e){let a,n,i,l,s,o,c,u,d=(0,r.c)(17),{chart:m,children:f,cursor:h}=e,p=(0,C.r)();d[0]!==m?(a=()=>m.getBoundingClientRect().left,d[0]=m,d[1]=a):a=d[1];let v=(0,g.useSyncExternalStore)(I,a);d[2]!==m?(n=()=>m.getBoundingClientRect().top,d[2]=m,d[3]=n):n=d[3];let x=(0,g.useSyncExternalStore)(I,n);d[4]!==p?(i=(0,P.f)("pointer-events-none fixed inset-0 flex flex-col pr-2 pb-2",p),d[4]=p,d[5]=i):i=d[5];let b=`${v+h.x+10}px`,y=`${x+h.y+10}px`;return d[6]!==b||d[7]!==y?(l={"--tooltip-left":b,"--tooltip-top":y},d[6]=b,d[7]=y,d[8]=l):l=d[8],d[9]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)("div",{className:"min-h-0 shrink basis-(--tooltip-top)"}),d[9]=s):s=d[9],d[10]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)("div",{className:"min-w-0 shrink basis-(--tooltip-left)"}),d[10]=o):o=d[10],d[11]!==f?(c=(0,t.jsxs)("div",{className:"flex shrink-0",children:[o,(0,t.jsx)("div",{className:"max-w-full shrink-0",children:f})]}),d[11]=f,d[12]=c):c=d[12],d[13]!==i||d[14]!==l||d[15]!==c?(u=(0,t.jsxs)("div",{className:i,"data-allow-inline-style":!0,style:l,children:[s,c]}),d[13]=i,d[14]=l,d[15]=c,d[16]=u):u=d[16],u}function I(e){let t=new AbortController,r={capture:!0,passive:!0,signal:t.signal};return window.addEventListener("scroll",e,r),window.addEventListener("resize",e,r),()=>t.abort()}var R=e.i(265716),E=e.i(714170);function _(e){return null!==e.median.avgDurationPerTaskMs}function O(e,t){return(0,R.f)(e.median.avgDurationPerTaskMs,t.median.avgDurationPerTaskMs,"ascending")}function z(e,t){return t.median.accuracy-e.median.accuracy}function D(e){return e.author}function K(e){return{author:e.author,costPerTask:e.median.avgCostPerTask,id:e.modelPermaslug,label:e.modelName,modelSlug:e.modelSlug,accuracyPercent:100*e.median.accuracy,secondsPerTask:null===e.median.avgDurationPerTaskMs?null:e.median.avgDurationPerTaskMs/1e3}}function F(e){return{description:e.author,label:e.modelName,value:e.modelPermaslug}}function M(e){return e.modelPermaslug}function L(e){return e.modelPermaslug}function $(e){let a,n,i,s=(0,r.c)(9),{label:c,model:d,onSelect:m,value:f}=e;return s[0]!==c?(a=(0,t.jsx)("p",{className:"text-2xs font-medium uppercase tracking-widest text-muted-foreground",children:c}),s[0]=c,s[1]=a):a=s[1],s[2]!==d||s[3]!==m||s[4]!==f?(n=null===d?(0,t.jsx)("span",{className:"text-base font-semibold",children:"--"}):(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)(o.f,{author:d.author,permaslug:d.modelPermaslug,className:"size-6",frame:!0}),(0,t.jsxs)("div",{className:"min-w-0",children:[null===d.modelSlug?(0,t.jsx)("p",{className:"truncate text-base font-semibold",children:d.modelName}):(0,t.jsx)(u.TextLink,{className:"block truncate text-base font-semibold",href:`/${d.modelSlug}`,onClick:()=>{null!==d.modelSlug&&m(d.modelSlug)},children:d.modelName}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:f??"--"})]})]}),s[2]=d,s[3]=m,s[4]=f,s[5]=n):n=s[5],s[6]!==a||s[7]!==n?(i=(0,t.jsxs)(l.N,{className:"flex flex-col gap-2 p-4",children:[a,n]}),s[6]=a,s[7]=n,s[8]=i):i=s[8],i}function U(e){let n,o,c,u,d,f,p,x,b,y,k,w,j,N,S,T,P=(0,r.c)(53),{benchmark:C,colorByAuthor:A,data:I,dataKey:R,description:E,title:_,valueFormatter:O}=e,z=(0,m.Q)(),D=(0,h.f)(),K=(0,v.f)(),[F,M]=(0,g.useState)(!1);P[0]!==C||P[1]!==R||P[2]!==z||P[3]!==D?(n=e=>{null!==e.modelSlug&&(z.capture("view_benchmark_model",{benchmark:C,chart:R,model_slug:e.modelSlug}),D.push(`/${e.modelSlug}`))},P[0]=C,P[1]=R,P[2]=z,P[3]=D,P[4]=n):n=P[4];let L=n;P[5]!==C||P[6]!==R||P[7]!==z?(o=()=>{M(!0),z.capture("expand_benchmark_comparison_chart",{benchmark:C,chart:R})},P[5]=C,P[6]=R,P[7]=z,P[8]=o):o=P[8];let $=o;return P[9]!==_?(c=(0,t.jsx)(l.v,{children:_}),P[9]=_,P[10]=c):c=P[10],P[11]!==K||P[12]!==_?(u=K("Expand {title} chart",{title:_}),P[11]=K,P[12]=_,P[13]=u):u=P[13],P[14]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(a.f,{className:"size-4"}),P[14]=d):d=P[14],P[15]!==$||P[16]!==u?(f=(0,t.jsx)(i.Button,{"aria-label":u,className:"-mr-1 -mt-1 shrink-0",onClick:$,size:"icon-sm",variant:"ghost",children:d}),P[15]=$,P[16]=u,P[17]=f):f=P[17],P[18]!==c||P[19]!==f?(p=(0,t.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[c,f]}),P[18]=c,P[19]=f,P[20]=p):p=P[20],P[21]!==E?(x=(0,t.jsx)(l.u,{className:"mt-1",children:E}),P[21]=E,P[22]=x):x=P[22],P[23]!==A||P[24]!==I||P[25]!==R||P[26]!==L||P[27]!==O?(b=(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(B,{colorByAuthor:A,data:I,dataKey:R,onModelClick:L,valueFormatter:O})}),P[23]=A,P[24]=I,P[25]=R,P[26]=L,P[27]=O,P[28]=b):b=P[28],P[29]!==_?(y=(0,t.jsx)(s.F,{children:_}),P[29]=_,P[30]=y):y=P[30],P[31]!==E?(k=(0,t.jsx)(s.C,{children:E}),P[31]=E,P[32]=k):k=P[32],P[33]!==y||P[34]!==k?(w=(0,t.jsxs)(s.s,{children:[y,k]}),P[33]=y,P[34]=k,P[35]=w):w=P[35],P[36]!==A||P[37]!==I||P[38]!==R||P[39]!==L||P[40]!==O?(j=(0,t.jsx)("div",{className:"max-h-[70dvh] overflow-y-auto",children:(0,t.jsx)(B,{colorByAuthor:A,data:I,dataKey:R,isExpanded:!0,onModelClick:L,valueFormatter:O})}),P[36]=A,P[37]=I,P[38]=R,P[39]=L,P[40]=O,P[41]=j):j=P[41],P[42]!==w||P[43]!==j?(N=(0,t.jsxs)(s.d,{className:"max-w-3xl",children:[w,j]}),P[42]=w,P[43]=j,P[44]=N):N=P[44],P[45]!==F||P[46]!==N?(S=(0,t.jsx)(s.N,{onOpenChange:M,open:F,children:N}),P[45]=F,P[46]=N,P[47]=S):S=P[47],P[48]!==S||P[49]!==p||P[50]!==x||P[51]!==b?(T=(0,t.jsxs)(l.N,{className:"p-4",children:[p,x,b,S]}),P[48]=S,P[49]=p,P[50]=x,P[51]=b,P[52]=T):T=P[52],T}function B(e){let a,n,i,l,s,o,c,u,d,m,f,h,p,v=(0,r.c)(37),{colorByAuthor:T,data:P,dataKey:C,isExpanded:A,onModelClick:I,valueFormatter:R}=e,E=void 0!==A&&A,_=E?32:24,[O,z]=(0,g.useState)(null),D=P.length*_+40;v[0]===Symbol.for("react.memo_cache_sentinel")?(a={bottom:8,left:0,right:8,top:8},n=(0,t.jsx)(y.f,{horizontal:!1,stroke:"hsl(var(--border))",strokeDasharray:"2 4"}),v[0]=a,v[1]=n):(a=v[0],n=v[1]),v[2]===Symbol.for("react.memo_cache_sentinel")?(i={fontSize:11},v[2]=i):i=v[2],v[3]!==R?(l=(0,t.jsx)(N.f,{stroke:"hsl(var(--muted-foreground))",tick:i,tickFormatter:R,type:"number"}),v[3]=R,v[4]=l):l=v[4],v[5]!==E?(s=(0,t.jsx)(W,{isExpanded:E}),v[5]=E,v[6]=s):s=v[6];let K=E?260:144;v[7]!==s||v[8]!==K?(o=(0,t.jsx)(S.f,{dataKey:"label",interval:0,stroke:"hsl(var(--muted-foreground))",tick:s,type:"category",width:K}),v[7]=s,v[8]=K,v[9]=o):o=v[9],v[10]!==O||v[11]!==C||v[12]!==R?(c=(0,t.jsx)(V,{chartElement:O,dataKey:C,valueFormatter:R}),v[10]=O,v[11]=C,v[12]=R,v[13]=c):c=v[13],v[14]===Symbol.for("react.memo_cache_sentinel")?(u={fill:"hsl(var(--muted))"},v[14]=u):u=v[14];let F=O?.ownerDocument.body;if(v[15]!==c||v[16]!==F?(d=(0,t.jsx)(j.f,{content:c,cursor:u,isAnimationActive:!1,portal:F}),v[15]=c,v[16]=F,v[17]=d):d=v[17],v[18]!==T||v[19]!==P||v[20]!==I){let e;v[22]!==T||v[23]!==I?(e=e=>(0,t.jsx)(k.f,{cursor:null===e.modelSlug?"default":"pointer",fill:T.get(e.author)??"hsl(var(--muted-foreground))",onClick:null===e.modelSlug?void 0:()=>I(e)},e.id),v[22]=T,v[23]=I,v[24]=e):e=v[24],m=P.map(e),v[18]=T,v[19]=P,v[20]=I,v[21]=m}else m=v[21];return v[25]!==C||v[26]!==m?(f=(0,t.jsx)(x.e,{dataKey:C,isAnimationActive:!1,children:m}),v[25]=C,v[26]=m,v[27]=f):f=v[27],v[28]!==P||v[29]!==d||v[30]!==f||v[31]!==l||v[32]!==o?(h=(0,t.jsxs)(b.f,{data:P,layout:"vertical",margin:a,children:[n,l,o,d,f]}),v[28]=P,v[29]=d,v[30]=f,v[31]=l,v[32]=o,v[33]=h):h=v[33],v[34]!==h||v[35]!==D?(p=(0,t.jsx)(w.$,{ref:z,height:D,width:"100%",children:h}),v[34]=h,v[35]=D,v[36]=p):p=v[36],p}function H({data:e,dataKey:t,direction:r}){return e.toSorted((e,a)=>(0,R.f)(e[t],a[t],"asc"===r?"ascending":"descending"))}function W(e){let a,n,i,l=(0,r.c)(11),{isExpanded:s,payload:o,x:c,y:u}=e,d=void 0!==s&&s,m=o?.value;if(void 0===m||void 0===c||void 0===u)return null;let f=d?38:20;l[0]!==m||l[1]!==f?(a=m.length>f?`${m.slice(0,f-1).trimEnd()}…`:m,l[0]=m,l[1]=f,l[2]=a):a=l[2];let h=a,p=d?12:10;l[3]!==p||l[4]!==h||l[5]!==c||l[6]!==u?(n=(0,t.jsx)("text",{dominantBaseline:"central",fill:"hsl(var(--muted-foreground))",fontSize:p,textAnchor:"end",x:c,y:u,children:h}),l[3]=p,l[4]=h,l[5]=c,l[6]=u,l[7]=n):n=l[7];let v=n,g=o?.payload?.modelSlug;return l[8]!==v||l[9]!==g?(i=g?(0,t.jsx)("a",{href:`/${g}`,children:v}):v,l[8]=v,l[9]=g,l[10]=i):i=l[10],i}function V(e){let a,n,i,l=(0,r.c)(10),{active:s,chartElement:o,coordinate:c,dataKey:u,payload:d,valueFormatter:m}=e,f=d?.[0]?.payload;if(!s||!f||!c||!o)return null;let h=f[u];return l[0]!==h||l[1]!==m?(a=null===h?"--":m(h),l[0]=h,l[1]=m,l[2]=a):a=l[2],l[3]!==f.label||l[4]!==a?(n=(0,t.jsx)(T.J,{bodyClassName:"text-sm",label:f.label,children:a}),l[3]=f.label,l[4]=a,l[5]=n):n=l[5],l[6]!==o||l[7]!==c||l[8]!==n?(i=(0,t.jsx)(A,{chart:o,cursor:c,children:n}),l[6]=o,l[7]=c,l[8]=n,l[9]=i):i=l[9],i}function Y(e){return{accuracy:t=>(0,E.Z)(e,t/100),cost:E.J.bind(void 0,e),duration:t=>(0,E.E)(e,1e3*t)}}e.s(["Tau2ComparisonCharts",0,function(e){let a,l,s,o,u,h,x,b,y,k,w,j,N,S,T,P,C,A,I,R,B,W,V,Z,q,J,G,Q,X,ee,et,er,ea,en,ei,el,es,eo,ec,eu,ed,em,ef,eh,ep,ev,eg,ex,eb=(0,r.c)(148),{accuracyDescription:ey,accuracyTitle:ek,benchmark:ew,costDescription:ej,costTitle:eN,durationDescription:eS,durationTitle:eT,metricLabel:eP,models:eC}=e,eA=void 0===ew?"tau2-bench-airline":ew,eI=(0,f.useLocale)(),eR=(0,v.f)();eb[0]!==eR||eb[1]!==eP?(a=eP??eR("task"),eb[0]=eR,eb[1]=eP,eb[2]=a):a=eb[2];let eE=a,e_=(0,m.Q)();eb[3]!==eC?(l=eC.slice(0,10).map(L),eb[3]=eC,eb[4]=l):l=eb[4];let eO=l;eb[5]!==eC?(s=()=>eC.slice(0,10).map(M),eb[5]=eC,eb[6]=s):s=eb[6];let[ez,eD]=(0,g.useState)(s);eb[7]!==eC?(o=eC.map(F),eb[7]=eC,eb[8]=o):o=eb[8];let eK=o;eb[9]!==ez?(u=new Set(ez),eb[9]=ez,eb[10]=u):u=eb[10];let eF=u;if(eb[11]!==eC||eb[12]!==eF){let e;eb[14]!==eF?(e=e=>eF.has(e.modelPermaslug),eb[14]=eF,eb[15]=e):e=eb[15],h=eC.filter(e),eb[11]=eC,eb[12]=eF,eb[13]=h}else h=eb[13];let eM=h;eb[16]!==eM?(x=eM.map(K),eb[16]=eM,eb[17]=x):x=eb[17];let eL=x;eb[18]!==eL?(b=(0,d.Y)([...new Set(eL.map(D))]),eb[18]=eL,eb[19]=b):b=eb[19];let e$=b;eb[20]!==eM?(y=eM.toSorted(z)[0]??null,eb[20]=eM,eb[21]=y):y=eb[21];let eU=y;eb[22]!==eM?(k=(0,n.f)(eM),eb[22]=eM,eb[23]=k):k=eb[23];let eB=k;eb[24]!==eM?(w=eM.toSorted(O).find(_)??null,eb[24]=eM,eb[25]=w):w=eb[25];let eH=w;eb[26]!==eO||eb[27]!==ez?(j=ez.length===eO.length&&ez.every(e=>eO.includes(e)),eb[26]=eO,eb[27]=ez,eb[28]=j):j=eb[28];let eW=j;eb[29]!==eA||eb[30]!==e_?(N=e=>{e_.capture("view_benchmark_model",{benchmark:eA,chart:"winner_card",model_slug:e})},eb[29]=eA,eb[30]=e_,eb[31]=N):N=eb[31];let eV=N;return 0===eC.length?null:(eb[32]!==eR?(S=eR("Select models..."),eb[32]=eR,eb[33]=S):S=eb[33],eb[34]!==S?(T=(0,t.jsx)(c.y,{placeholder:S}),eb[34]=S,eb[35]=T):T=eb[35],eb[36]!==eA||eb[37]!==eO||eb[38]!==e_?(P=()=>{e_.capture("reset_benchmark_comparison_models",{benchmark:eA}),eD(eO)},eb[36]=eA,eb[37]=eO,eb[38]=e_,eb[39]=P):P=eb[39],eb[40]===Symbol.for("react.memo_cache_sentinel")?(C=(0,t.jsx)(p.T,{children:"Reset to top 10"}),eb[40]=C):C=eb[40],eb[41]!==eW||eb[42]!==P?(A=(0,t.jsx)(i.Button,{className:"w-full",disabled:eW,onClick:P,variant:"ghost",children:C}),eb[41]=eW,eb[42]=P,eb[43]=A):A=eb[43],eb[44]!==eR?(I=eR("Search models..."),eb[44]=eR,eb[45]=I):I=eb[45],eb[46]!==A||eb[47]!==I?(R=(0,t.jsx)(c.f,{footer:A,searchPlaceholder:I}),eb[46]=A,eb[47]=I,eb[48]=R):R=eb[48],eb[49]!==eK||eb[50]!==ez||eb[51]!==T||eb[52]!==R?(B=(0,t.jsx)("div",{className:"w-full sm:max-w-xs",children:(0,t.jsxs)(c.o,{onValueChange:eD,options:eK,size:"compact",value:ez,children:[T,R]})}),eb[49]=eK,eb[50]=ez,eb[51]=T,eb[52]=R,eb[53]=B):B=eb[53],eb[54]!==eR?(W=eR("Most Accurate"),eb[54]=eR,eb[55]=W):W=eb[55],eb[56]!==eI||eb[57]!==eU?(V=null===eU?null:(0,E.Z)(eI,eU.median.accuracy),eb[56]=eI,eb[57]=eU,eb[58]=V):V=eb[58],eb[59]!==eV||eb[60]!==eU||eb[61]!==W||eb[62]!==V?(Z=(0,t.jsx)($,{label:W,model:eU,value:V,onSelect:eV}),eb[59]=eV,eb[60]=eU,eb[61]=W,eb[62]=V,eb[63]=Z):Z=eb[63],eb[64]!==eR?(q=eR("Best Value"),eb[64]=eR,eb[65]=q):q=eb[65],eb[66]!==eB||eb[67]!==eI||eb[68]!==eE?(J=null===eB?null:`${(0,E.J)(eI,eB.median.avgCostPerTask)}/${eE}`,eb[66]=eB,eb[67]=eI,eb[68]=eE,eb[69]=J):J=eb[69],eb[70]!==eB||eb[71]!==eV||eb[72]!==q||eb[73]!==J?(G=(0,t.jsx)($,{label:q,model:eB,value:J,onSelect:eV}),eb[70]=eB,eb[71]=eV,eb[72]=q,eb[73]=J,eb[74]=G):G=eb[74],eb[75]!==eR?(Q=eR("Fastest"),eb[75]=eR,eb[76]=Q):Q=eb[76],eb[77]!==eH||eb[78]!==eI?(X=null===eH?null:(0,E.E)(eI,eH.median.avgDurationPerTaskMs),eb[77]=eH,eb[78]=eI,eb[79]=X):X=eb[79],eb[80]!==eH||eb[81]!==eV||eb[82]!==Q||eb[83]!==X?(ee=(0,t.jsx)($,{label:Q,model:eH,value:X,onSelect:eV}),eb[80]=eH,eb[81]=eV,eb[82]=Q,eb[83]=X,eb[84]=ee):ee=eb[84],eb[85]!==Z||eb[86]!==G||eb[87]!==ee?(et=(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-3",children:[Z,G,ee]}),eb[85]=Z,eb[86]=G,eb[87]=ee,eb[88]=et):et=eb[88],eb[89]!==eL?(er=H({data:eL,dataKey:"accuracyPercent",direction:"desc"}),eb[89]=eL,eb[90]=er):er=eb[90],eb[91]!==ey||eb[92]!==eR?(ea=ey??eR("Representative-run accuracy, best first."),eb[91]=ey,eb[92]=eR,eb[93]=ea):ea=eb[93],eb[94]!==ek||eb[95]!==eR?(en=ek??eR("Accuracy"),eb[94]=ek,eb[95]=eR,eb[96]=en):en=eb[96],eb[97]!==eI?(ei=Y(eI),eb[97]=eI,eb[98]=ei):ei=eb[98],eb[99]!==eA||eb[100]!==e$||eb[101]!==er||eb[102]!==ea||eb[103]!==en||eb[104]!==ei.accuracy?(el=(0,t.jsx)(U,{benchmark:eA,colorByAuthor:e$,data:er,dataKey:"accuracyPercent",description:ea,title:en,valueFormatter:ei.accuracy}),eb[99]=eA,eb[100]=e$,eb[101]=er,eb[102]=ea,eb[103]=en,eb[104]=ei.accuracy,eb[105]=el):el=eb[105],eb[106]!==eL?(es=H({data:eL,dataKey:"costPerTask",direction:"asc"}),eb[106]=eL,eb[107]=es):es=eb[107],eb[108]!==ej||eb[109]!==eR?(eo=ej??eR("Average cost per graded task, cheapest first."),eb[108]=ej,eb[109]=eR,eb[110]=eo):eo=eb[110],eb[111]!==eN||eb[112]!==eR?(ec=eN??eR("Cost per task"),eb[111]=eN,eb[112]=eR,eb[113]=ec):ec=eb[113],eb[114]!==eI?(eu=Y(eI),eb[114]=eI,eb[115]=eu):eu=eb[115],eb[116]!==eA||eb[117]!==e$||eb[118]!==es||eb[119]!==eo||eb[120]!==ec||eb[121]!==eu.cost?(ed=(0,t.jsx)(U,{benchmark:eA,colorByAuthor:e$,data:es,dataKey:"costPerTask",description:eo,title:ec,valueFormatter:eu.cost}),eb[116]=eA,eb[117]=e$,eb[118]=es,eb[119]=eo,eb[120]=ec,eb[121]=eu.cost,eb[122]=ed):ed=eb[122],eb[123]!==eL?(em=H({data:eL,dataKey:"secondsPerTask",direction:"asc"}),eb[123]=eL,eb[124]=em):em=eb[124],eb[125]!==eS||eb[126]!==eR?(ef=eS??eR("Average wall-clock time per task, fastest first; agents that loop or stall run long."),eb[125]=eS,eb[126]=eR,eb[127]=ef):ef=eb[127],eb[128]!==eT||eb[129]!==eR?(eh=eT??eR("Time per task"),eb[128]=eT,eb[129]=eR,eb[130]=eh):eh=eb[130],eb[131]!==eI?(ep=Y(eI),eb[131]=eI,eb[132]=ep):ep=eb[132],eb[133]!==eA||eb[134]!==e$||eb[135]!==em||eb[136]!==ef||eb[137]!==eh||eb[138]!==ep.duration?(ev=(0,t.jsx)(U,{benchmark:eA,colorByAuthor:e$,data:em,dataKey:"secondsPerTask",description:ef,title:eh,valueFormatter:ep.duration}),eb[133]=eA,eb[134]=e$,eb[135]=em,eb[136]=ef,eb[137]=eh,eb[138]=ep.duration,eb[139]=ev):ev=eb[139],eb[140]!==el||eb[141]!==ed||eb[142]!==ev?(eg=(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-3",children:[el,ed,ev]}),eb[140]=el,eb[141]=ed,eb[142]=ev,eb[143]=eg):eg=eb[143],eb[144]!==B||eb[145]!==et||eb[146]!==eg?(ex=(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[B,et,eg]}),eb[144]=B,eb[145]=et,eb[146]=eg,eb[147]=ex):ex=eb[147],ex)}],414374)},385361,e=>{"use strict";var t=e.i(659350),r=e.i(663456),a=e.i(297510),n=e.i(702441),i=e.i(647402),l=e.i(707951),s=e.i(960773),o=e.i(138257),c=e.i(205194);e.i(707060);var u=e.i(196991),d=e.i(288265),m=e.i(16043),f=e.i(754844),h=e.i(968416),p=e.i(318412),v=e.i(315661),g=e.i(6939),x=["axis"],b=(0,m.forwardRef)((e,t)=>m.createElement(g.f,{chartName:"ComposedChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:x,tooltipPayloadSearcher:v.Y,categoricalChartProps:e,ref:t})),y=e.i(569284),k=e.i(460597),w=e.i(804599),j=e.i(836466),N=e.i(760638),S=e.i(460867),T=e.i(714170);function P(e){return e.costPerTask}function C(e,t){return e.costPerTask-t.costPerTask}function A(e){return e.isParetoOptimal}function I(e){return e.author}function R(e){return null===e.median.avgCostPerTask?[]:[{accuracyPercent:100*e.median.accuracy,author:e.author,costPerTask:e.median.avgCostPerTask,id:e.modelPermaslug,isParetoOptimal:e.isParetoOptimal,label:e.modelName,modelSlug:e.modelSlug}]}function E(e){let a,n,l,s,c,d,f,h,p=(0,r.c)(22),{active:v,metricLabel:g,onActivePointChange:x,payload:b}=e,y=(0,o.useLocale)(),k=b?.[0]?.payload;if(p[0]!==v||p[1]!==x||p[2]!==k?(a=()=>(x(v&&void 0!==k?k:null),()=>{x(null)}),n=[v,x,k],p[0]=v,p[1]=x,p[2]=k,p[3]=a,p[4]=n):(a=p[3],n=p[4]),(0,m.useEffect)(a,n),!v||!k)return null;let w=k.label,j=k.accuracyPercent/100;return p[5]!==y||p[6]!==j?(l=(0,T.Z)(y,j),p[5]=y,p[6]=j,p[7]=l):l=p[7],p[8]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(i.f,{}),p[8]=s):s=p[8],p[9]!==y||p[10]!==k.costPerTask?(c=(0,T.J)(y,k.costPerTask),p[9]=y,p[10]=k.costPerTask,p[11]=c):c=p[11],p[12]!==g||p[13]!==l||p[14]!==c?(d=(0,t.jsxs)("span",{children:[l," ",s," ",c,"/",g]}),p[12]=g,p[13]=l,p[14]=c,p[15]=d):d=p[15],p[16]!==k.modelSlug?(f=k.modelSlug&&(0,t.jsx)("span",{className:"block text-xs text-muted-foreground",children:(0,t.jsx)(u.T,{children:"Click to view model"})}),p[16]=k.modelSlug,p[17]=f):f=p[17],p[18]!==k.label||p[19]!==d||p[20]!==f?(h=(0,t.jsxs)(S.J,{label:w,children:[d,f]}),p[18]=k.label,p[19]=d,p[20]=f,p[21]=h):h=p[21],h}e.s(["Tau2ParetoChart",0,function(e){let i,v,g,x,S,_,O,z,D,K,F,M,L,$,U,B,H,W,V,Y,Z,q,J,G,Q,X,ee,et,er,ea,en,ei,el=(0,r.c)(100),{benchmark:es,metricLabel:eo,models:ec}=e,eu=void 0===es?"tau2-bench-airline":es,ed=(0,o.useLocale)(),em=(0,d.f)();el[0]!==em||el[1]!==eo?(i=eo??em("task"),el[0]=em,el[1]=eo,el[2]=i):i=el[2];let ef=i,eh=(0,s.Q)(),ep=(0,c.f)(),ev=(0,m.useRef)(null);el[3]!==ec?(v=ec.flatMap(R),el[3]=ec,el[4]=v):v=el[4];let eg=v;el[5]!==eg?(g=(0,l.Y)([...new Set(eg.map(I))]),el[5]=eg,el[6]=g):g=el[6];let ex=g;el[7]!==eg?(x=eg.filter(A).toSorted(C),el[7]=eg,el[8]=x):x=el[8];let eb=x;el[9]!==eg?(S=function(e){if(0===e.length)return[];let t=Math.min(...e),r=Math.max(...e);return[1,2,5].flatMap(e=>[-4,-3,-2,-1,0,1,2].map(t=>e*10**t)).filter(e=>e>=t&&e<=r).toSorted((e,t)=>e-t)}(eg.map(P)),el[9]=eg,el[10]=S):S=el[10];let ey=S;el[11]===Symbol.for("react.memo_cache_sentinel")?(_=e=>{ev.current=e},el[11]=_):_=el[11];let ek=_;if(0===eg.length)return null;el[12]!==eu||el[13]!==eh||el[14]!==ep?(O=e=>{null!==e.modelSlug&&(eh.capture("view_benchmark_model",{benchmark:eu,chart:"pareto",model_slug:e.modelSlug}),ep.push(`/${e.modelSlug}`))},el[12]=eu,el[13]=eh,el[14]=ep,el[15]=O):O=el[15];let ew=O;if(el[16]!==ex||el[17]!==ey||el[18]!==eb||el[19]!==em||el[20]!==ew||el[21]!==ed||el[22]!==ef||el[23]!==eg){let e,r,i,l,s,o,c,d;F=n.N,G="p-4",el[44]===Symbol.for("react.memo_cache_sentinel")?(Q=(0,t.jsx)(n.v,{children:(0,t.jsx)(u.T,{children:"Accuracy vs. cost (Pareto frontier)"})}),el[44]=Q):Q=el[44],el[45]===Symbol.for("react.memo_cache_sentinel")?(X=(0,t.jsx)(n.u,{className:"mt-1",children:(0,t.jsx)(u.T,{children:"One point per model, using default routing (not pinned to a provider) when available. The line is the Pareto frontier: no model beats these on both accuracy and cost."})}),el[45]=X):X=el[45],J="mt-4 h-80",K=y.$,Z="100%",q="100%",D=b,el[46]===Symbol.for("react.memo_cache_sentinel")?($=()=>ek(null),U={bottom:8,left:0,right:16,top:8},B=(0,t.jsx)(f.f,{stroke:"hsl(var(--border))",strokeDasharray:"2 4"}),el[46]=$,el[47]=U,el[48]=B):($=el[46],U=el[47],B=el[48]),el[49]!==em||el[50]!==ef?(e=em("Cost per {metric}",{metric:ef}),el[49]=em,el[50]=ef,el[51]=e):e=el[51],el[52]===Symbol.for("react.memo_cache_sentinel")?(r=["auto","auto"],el[52]=r):r=el[52],el[53]===Symbol.for("react.memo_cache_sentinel")?(i={fontSize:12},el[53]=i):i=el[53],el[54]!==ed?(l=T.f.bind(void 0,ed),el[54]=ed,el[55]=l):l=el[55],el[56]!==ey||el[57]!==e||el[58]!==l?(H=(0,t.jsx)(j.f,{dataKey:"costPerTask",name:e,scale:"log",domain:r,stroke:"hsl(var(--muted-foreground))",tick:i,tickFormatter:l,ticks:ey,type:"number"}),el[56]=ey,el[57]=e,el[58]=l,el[59]=H):H=el[59],el[60]===Symbol.for("react.memo_cache_sentinel")?(s=["auto","auto"],el[60]=s):s=el[60],el[61]===Symbol.for("react.memo_cache_sentinel")?(o={fontSize:12},el[61]=o):o=el[61],el[62]!==ed?(W=(0,t.jsx)(N.f,{dataKey:"accuracyPercent",name:"Accuracy",domain:s,stroke:"hsl(var(--muted-foreground))",tick:o,tickFormatter:e=>(0,a.I)(Math.round(e),{locale:ed,preset:"fee"})??"—",type:"number",width:48}),el[62]=ed,el[63]=W):W=el[63],el[64]!==ef?(c=(0,t.jsx)(E,{metricLabel:ef,onActivePointChange:ek}),el[64]=ef,el[65]=c):c=el[65],el[66]===Symbol.for("react.memo_cache_sentinel")?(d={stroke:"hsl(var(--border))",strokeDasharray:"2 4"},el[66]=d):d=el[66],el[67]!==c?(V=(0,t.jsx)(w.f,{content:c,cursor:d}),el[67]=c,el[68]=V):V=el[68],el[69]!==eb?(Y=(0,t.jsx)(p.R,{data:eb,dataKey:"accuracyPercent",dot:!1,isAnimationActive:!1,stroke:"hsl(var(--muted-foreground))",strokeDasharray:"4 4",type:"stepAfter"}),el[69]=eb,el[70]=Y):Y=el[70],z=k.Y,ee=eg,M=!1,L=eg.map(e=>(0,t.jsx)(h.f,{cursor:null===e.modelSlug?"default":"pointer",fill:ex.get(e.author)??"hsl(var(--muted-foreground))",onClick:null===e.modelSlug?void 0:()=>{ew(ev.current??e)}},e.id)),el[16]=ex,el[17]=ey,el[18]=eb,el[19]=em,el[20]=ew,el[21]=ed,el[22]=ef,el[23]=eg,el[24]=z,el[25]=D,el[26]=K,el[27]=F,el[28]=M,el[29]=L,el[30]=$,el[31]=U,el[32]=B,el[33]=H,el[34]=W,el[35]=V,el[36]=Y,el[37]=Z,el[38]=q,el[39]=J,el[40]=G,el[41]=Q,el[42]=X,el[43]=ee}else z=el[24],D=el[25],K=el[26],F=el[27],M=el[28],L=el[29],$=el[30],U=el[31],B=el[32],H=el[33],W=el[34],V=el[35],Y=el[36],Z=el[37],q=el[38],J=el[39],G=el[40],Q=el[41],X=el[42],ee=el[43];return el[71]!==z||el[72]!==M||el[73]!==L||el[74]!==ee?(et=(0,t.jsx)(z,{data:ee,isAnimationActive:M,children:L}),el[71]=z,el[72]=M,el[73]=L,el[74]=ee,el[75]=et):et=el[75],el[76]!==D||el[77]!==$||el[78]!==U||el[79]!==B||el[80]!==H||el[81]!==W||el[82]!==V||el[83]!==Y||el[84]!==et?(er=(0,t.jsxs)(D,{onMouseLeave:$,margin:U,children:[B,H,W,V,Y,et]}),el[76]=D,el[77]=$,el[78]=U,el[79]=B,el[80]=H,el[81]=W,el[82]=V,el[83]=Y,el[84]=et,el[85]=er):er=el[85],el[86]!==K||el[87]!==Z||el[88]!==q||el[89]!==er?(ea=(0,t.jsx)(K,{height:Z,width:q,children:er}),el[86]=K,el[87]=Z,el[88]=q,el[89]=er,el[90]=ea):ea=el[90],el[91]!==J||el[92]!==ea?(en=(0,t.jsx)("div",{className:J,children:ea}),el[91]=J,el[92]=ea,el[93]=en):en=el[93],el[94]!==F||el[95]!==G||el[96]!==Q||el[97]!==X||el[98]!==en?(ei=(0,t.jsxs)(F,{className:G,children:[Q,X,en]}),el[94]=F,el[95]=G,el[96]=Q,el[97]=X,el[98]=en,el[99]=ei):ei=el[99],ei}],385361)},94277,e=>{"use strict";var t=e.i(663456);e.i(707060);var r=e.i(919035);e.s(["f",0,function(){let e,a=(0,t.c)(2),n=(0,r.f)();return a[0]!==n?(e=e=>e.map(e=>({...e,label:n(e.label)})),a[0]=n,a[1]=e):e=a[1],e}])}]); //# sourceMappingURL=0qpz6g4q5zl0e.js.map