(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,26463,e=>{"use strict";var t=e.i(16043);let i=t.forwardRef(function({title:e,titleId:i,...n},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":i},n),e?t.createElement("title",{id:i},e):null,t.createElement("path",{fillRule:"evenodd",d:"M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z",clipRule:"evenodd"}))});e.s(["f",0,i],26463)},9848,e=>{"use strict";var t=e.i(651681);let i={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};i.node;let n=(0,t.f)(i);e.s(["f",0,n])},62210,e=>{"use strict";var t=e.i(9848);e.s(["f",()=>t.f])},729104,e=>{"use strict";var t=e.i(651681);let i={name:"dollar-sign",size:24,node:[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]};i.node;let n=(0,t.f)(i);e.s(["f",0,n],729104)},526475,e=>{"use strict";var t=e.i(651681);let i={name:"expand",size:24,node:[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]]};i.node;let n=(0,t.f)(i);e.s(["f",0,n],526475)},869853,e=>{"use strict";var t=e.i(651681);let i={name:"key-round",size:24,node:[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]};i.node;let n=(0,t.f)(i);e.s(["f",0,n])},705925,e=>{"use strict";var t=e.i(869853);e.s(["f",()=>t.f])},149423,e=>{"use strict";var t=e.i(651681);let i={name:"list-filter",size:24,node:[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]]};i.node;let n=(0,t.f)(i);e.s(["f",0,n],149423)},121514,e=>{"use strict";var t=e.i(651681);let i={name:"route",size:24,node:[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]};i.node;let n=(0,t.f)(i);e.s(["f",0,n])},856883,e=>{"use strict";var t=e.i(121514);e.s(["f",()=>t.f])},654678,e=>{"use strict";var t=e.i(357321);e.s(["f",()=>t.f])},318412,e=>{"use strict";e.s(["R",()=>ea,"v",()=>en],318412);var t=e.i(16043),i=e.i(470733),n=e.i(162474),a=e.i(8113),r=e.i(802822),l=e.i(652695),o=e.i(866901),s=e.i(422242),c=e.i(824280),u=e.i(647491),d=e.i(12091),m=e.i(553577),p=e.i(520321),f=e.i(836093),h=e.i(193710),g=e.i(478697),v=e.i(321801),b=e.i(674820),y=e.i(153407),x=(e,t,i,n)=>(0,y.lU)(e,"xAxis",t,n),w=(e,t,i,n)=>(0,y.C1)(e,"xAxis",t,n),k=(e,t,i,n)=>(0,y.lU)(e,"yAxis",i,n),_=(e,t,i,n)=>(0,y.C1)(e,"yAxis",i,n),j=(0,v.f)([h.L,x,k,w,_],(e,t,i,n,a)=>(0,u.P)(e,"xAxis")?(0,u.O)(t,n,!1):(0,u.O)(i,a,!1));function A(e){return"line"===e.type}var S=(0,v.f)([y.kG,(e,t,i,n,a)=>a],(e,t)=>e.filter(A).find(e=>e.id===t)),M=(0,v.f)([h.L,x,k,w,_,S,j,b.I],(e,t,i,n,a,r,l,o)=>{var s,{chartData:c,dataStartIndex:u,dataEndIndex:d}=o;if(null!=r&&null!=t&&null!=i&&null!=n&&null!=a&&0!==n.length&&0!==a.length&&null!=l){var{dataKey:m,data:p}=r;if(null!=(s=null!=p&&p.length>0?p:null==c?void 0:c.slice(u,d+1)))return en({layout:e,xAxis:t,yAxis:i,xAxisTicks:n,yAxisTicks:a,dataKey:m,bandSize:l,displayedData:s})}}),N=e.i(257592),z=e.i(940357),C=e.i(556684),P=e.i(809863),T=e.i(25548),I=e.i(642165),E=e.i(700698),O=e.i(713793),R=e.i(563419),L=e.i(180898),F=e.i(173773),D=["id"],U=["type","layout","connectNulls","needClip"],$=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function q(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function K(e){for(var t=1;t"".concat(t,"px ").concat(e-t,"px");function W(e){var{clipPathId:n,points:l,props:o}=e,{dot:c,dataKey:u,needClip:d}=o;if(null==l||!c&&1!==l.length)return null;var{id:m}=o,p=B(o,D),f=(0,s.$)(c),h=(0,O.e)(p),g=(0,L.L)(c),v=l.map((e,n)=>{var r,o=K(K(K({key:"dot-".concat(n),r:3},h),g),{},{index:n,cx:e.x,cy:e.y,dataKey:u,value:e.value,payload:e.payload,points:l});if(t.isValidElement(c))r=t.cloneElement(c,o);else if("function"==typeof c)r=c(o);else{var s=(0,i.q)("recharts-line-dot","boolean"!=typeof c?c.className:"");r=t.createElement(a.f,V({},o,{className:s}))}return r}),b={clipPath:d?"url(#clipPath-".concat(f?"":"dots-").concat(n,")"):void 0};return t.createElement(r.f,V({className:"recharts-line-dots",key:"dots"},b),v)}function Z(e){var{showLabels:i,children:n,points:a}=e,r=(0,t.useMemo)(()=>null==a?void 0:a.map(e=>{var t={x:e.x,y:e.y,width:0,height:0};return K(K({},t),{},{value:e.value,payload:e.payload,viewBox:t,parentViewBox:void 0,fill:void 0})}),[a]);return t.createElement(l.A,{value:i?r:null},n)}function Y(e){var{clipPathId:i,pathRef:a,points:r,strokeDasharray:l,props:o}=e,{type:s,layout:c,connectNulls:u,needClip:d}=o,m=B(o,U),p=K(K({},(0,L.h)(m)),{},{fill:"none",className:"recharts-line-curve",clipPath:d?"url(#clipPath-".concat(i,")"):void 0,points:r,type:s,layout:c,connectNulls:u,strokeDasharray:null!=l?l:o.strokeDasharray});return t.createElement(t.Fragment,null,(null==r?void 0:r.length)>1&&t.createElement(n.f,V({},p,{pathRef:a})),t.createElement(W,{points:r,clipPathId:i,props:o}))}function X(e){var{clipPathId:i,props:n,pathRef:a,previousPointsRef:r,longestAnimatedLengthRef:s}=e,{points:c,strokeDasharray:u,isAnimationActive:d,animationBegin:m,animationDuration:p,animationEasing:f,animateNewValues:h,width:g,height:v,onAnimationEnd:b,onAnimationStart:y}=n,x=r.current,w=(0,C.f)(n,"recharts-line-"),[k,_]=(0,t.useState)(!1),j=(0,t.useCallback)(()=>{"function"==typeof b&&b(),_(!1)},[b]),A=(0,t.useCallback)(()=>{"function"==typeof y&&y(),_(!0)},[y]),S=function(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}(a.current),M=s.current;return t.createElement(Z,{points:c,showLabels:!k},n.children,t.createElement(R.f,{animationId:w,begin:m,duration:p,isActive:d,easing:f,onAnimationEnd:j,onAnimationStart:A,key:w},e=>{var l,m=Math.min((0,o.Y)(M,S+M,e),S);if(l=d?u?((e,t,i)=>{var n=i.reduce((e,t)=>e+t);if(!n)return H(t,e);for(var a=Math.floor(e/n),r=e%n,l=t-e,o=[],s=0,c=0;sr){o=[...i.slice(0,s),r-c];break}var u=o.length%2==0?[0,l]:[l];return[...function(e,t){for(var i=e.length%2!=0?[...e,0]:e,n=[],a=0;a"".concat(e,"px")).join(", ")})(m,S,"".concat(u).split(/[,\s]+/gim).map(e=>parseFloat(e))):H(S,m):null==u?void 0:String(u),x){var p=x.length/c.length,f=1===e?c:c.map((t,i)=>{var n=Math.floor(i*p);if(x[n]){var a=x[n];return K(K({},t),{},{x:(0,o.Y)(a.x,t.x,e),y:(0,o.Y)(a.y,t.y,e)})}return h?K(K({},t),{},{x:(0,o.Y)(2*g,t.x,e),y:(0,o.Y)(v/2,t.y,e)}):K(K({},t),{},{x:t.x,y:t.y})});return r.current=f,t.createElement(Y,{props:n,points:f,clipPathId:i,pathRef:a,strokeDasharray:l})}return e>0&&S>0&&(r.current=c,s.current=m),t.createElement(Y,{props:n,points:c,clipPathId:i,pathRef:a,strokeDasharray:l})}),t.createElement(l.x,{label:n.label}))}function J(e){var{clipPathId:i,props:n}=e,a=(0,t.useRef)(null),r=(0,t.useRef)(0),l=(0,t.useRef)(null);return t.createElement(X,{props:n,clipPathId:i,previousPointsRef:a,longestAnimatedLengthRef:r,pathRef:l})}var Q=(e,t)=>({x:e.x,y:e.y,value:e.value,errorVal:(0,u.K)(e.payload,t)});class ee extends t.Component{render(){var{hide:e,dot:n,points:a,className:l,xAxisId:o,yAxisId:c,top:u,left:m,width:h,height:g,id:v,needClip:b}=this.props;if(e)return null;var y=(0,i.q)("recharts-line",l),{r:x,strokeWidth:w}=(0,F.f)(n),k=(0,s.$)(n),_=2*x+w;return t.createElement(t.Fragment,null,t.createElement(r.f,{className:y},b&&t.createElement("defs",null,t.createElement(f.s,{clipPathId:v,xAxisId:o,yAxisId:c}),!k&&t.createElement("clipPath",{id:"clipPath-dots-".concat(v)},t.createElement("rect",{x:m-_/2,y:u-_/2,width:h+_,height:g+_}))),t.createElement(p.f,{xAxisId:o,yAxisId:c,data:a,dataPointFormatter:Q,errorBarOffset:0},t.createElement(J,{props:this.props,clipPathId:v}))),t.createElement(d.f,{activeDot:this.props.activeDot,points:a,mainColor:this.props.stroke,itemDataKey:this.props.dataKey}))}}var et={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:!c.f.isSsr,label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0};function ei(e){var i=(0,P.f)(e,et),{activeDot:n,animateNewValues:a,animationBegin:r,animationDuration:l,animationEasing:o,connectNulls:s,dot:c,hide:u,isAnimationActive:d,label:m,legendType:p,xAxisId:v,yAxisId:b,id:y}=i,x=B(i,$),{needClip:w}=(0,f.z)(v,b),k=(0,T.L)(),_=(0,h.c)(),j=(0,g.f)(),A=(0,N.g)(e=>M(e,v,b,j,y));if("horizontal"!==_&&"vertical"!==_||null==A||null==k)return null;var{height:S,width:z,x:C,y:I}=k;return t.createElement(ee,V({},x,{id:y,connectNulls:s,dot:c,activeDot:n,animateNewValues:a,animationBegin:r,animationDuration:l,animationEasing:o,isAnimationActive:d,hide:u,label:m,legendType:p,xAxisId:v,yAxisId:b,points:A,layout:_,height:S,width:z,left:C,top:I,needClip:w}))}function en(e){var{layout:t,xAxis:i,yAxis:n,xAxisTicks:a,yAxisTicks:r,dataKey:l,bandSize:s,displayedData:c}=e;return c.map((e,c)=>{var d=(0,u.K)(e,l);if("horizontal"===t)return{x:(0,u.q)({axis:i,ticks:a,bandSize:s,entry:e,index:c}),y:(0,o.$)(d)?null:n.scale(d),value:d,payload:e};var m=(0,o.$)(d)?null:i.scale(d),p=(0,u.q)({axis:n,ticks:r,bandSize:s,entry:e,index:c});return null==m||null==p?null:{x:m,y:p,value:d,payload:e}}).filter(Boolean)}var ea=t.memo(function(e){var i=(0,P.f)(e,et),n=(0,g.f)();return t.createElement(I.f,{id:i.id,type:"line"},e=>t.createElement(t.Fragment,null,t.createElement(z.y,{legendPayload:(e=>{var{dataKey:t,name:i,stroke:n,legendType:a,hide:r}=e;return[{inactive:r,dataKey:t,type:a,color:n,value:(0,u.N)(i,t),payload:e}]})(i)}),t.createElement(m.f,{fn:G,args:i}),t.createElement(E.y,{type:"line",id:e,data:i.data,xAxisId:i.xAxisId,yAxisId:i.yAxisId,zAxisId:0,dataKey:i.dataKey,hide:i.hide,isPanorama:n}),t.createElement(ei,V({},i,{id:e}))))});ea.displayName="Line"},628309,e=>{"use strict";var t=e.i(16043),i=e.i(315661),n=e.i(6939),a=["axis"],r=(0,t.forwardRef)((e,r)=>t.createElement(n.f,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:a,tooltipPayloadSearcher:i.Y,categoricalChartProps:e,ref:r}));e.s(["f",0,r])},8113,12091,e=>{"use strict";var t=e.i(16043),i=e.i(470733),n=e.i(511676),a=e.i(713793);function r(){return(r=Object.assign.bind()).apply(null,arguments)}var l=e=>{var{cx:l,cy:o,r:s,className:c}=e,u=(0,i.q)("recharts-dot",c);return l===+l&&o===+o&&s===+s?t.createElement("circle",r({},(0,a.e)(e),(0,n.e)(e),{className:u,cx:l,cy:o,r:s})):null};e.s(["f",0,l],8113);var o=e.i(802822),s=e.i(257592),c=e.i(216750),u=e.i(25548),d=e.i(866901);function m(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function p(e){for(var t=1;tg.includes(e.payload));return(0,d.$)(v)?null:(e=>{var i,{point:r,childIndex:s,mainColor:c,activeDot:u,dataKey:d}=e;if(!1===u||null==r.x||null==r.y)return null;var m=p(p({index:s,dataKey:d,cx:r.x,cy:r.y,r:4,fill:null!=c?c:"none",strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value},(0,a.P)(u)),(0,n.e)(u));return i=(0,t.isValidElement)(u)?(0,t.cloneElement)(u,m):"function"==typeof u?u(m):t.createElement(l,m),t.createElement(o.f,{className:"recharts-active-dot"},i)})({point:v,childIndex:Number(h),mainColor:r,dataKey:f,activeDot:m})}],12091)},173773,e=>{"use strict";var t=e.i(713793);e.s(["f",0,function(e){var i=(0,t.P)(e);if(null!=i){var{r:n,strokeWidth:a}=i,r=Number(n),l=Number(a);return(Number.isNaN(r)||r<0)&&(r=3),(Number.isNaN(l)||l<0)&&(l=2),{r:r,strokeWidth:l}}return{r:3,strokeWidth:2}}])},126801,e=>{"use strict";e.s(["f",0,function(e){return e.toISOString().replace("T"," ").split(".")[0]}])},80864,e=>{"use strict";e.i(882844);var t=e.i(635157);let i=t.z.enum(["PERSON","LOCATION"]),n={Redact:"redact",Block:"block",Flag:"flag"},a=t.z.object({entity_type:i,action:t.z.enum([n.Redact,n.Block,n.Flag]),score_threshold:t.z.number().min(0).max(1).optional().default(.5)});e.s(["F",0,n,"c",0,a])},153722,e=>{"use strict";e.s(["z",0,function(e){let t=e.split("/")[0];if(!t)return null;let i=t.startsWith("~")?t.slice(1):t;return 0===i.length?null:i},"O",0,function(e){if(!e.startsWith("~")||!e.endsWith("-latest"))return!1;let[t,...i]=e.slice(1).split("/");if(!t||0===i.length)return!1;let n=i.join("/");return 0!==n.length&&"-latest"!==n}])},333131,e=>{"use strict";e.i(988590);var t=e.i(393182);function i(e,{autoViaJev:n=!1}={}){return e===t.f.JevRouter||e===t.f.AutoBeta||e===t.f.AutoCode||void 0!==function(e){if(e!==t.f.Auto)return e?.match(/^([a-z0-9]+(?:-[a-z0-9]+)*)\/auto$/)?.[1]}(e)||n&&e===t.f.Auto}t.f.Phaser,t.f.AutoBeta,e.s(["j",0,{AnthropicClaudeFable:"~anthropic/claude-fable-latest",AnthropicClaudeOpus:"~anthropic/claude-opus-latest",AnthropicClaudeSonnet:"~anthropic/claude-sonnet-latest",AnthropicClaudeHaiku:"~anthropic/claude-haiku-latest",GoogleGeminiPro:"~google/gemini-pro-latest",GoogleGeminiFlash:"~google/gemini-flash-latest",OpenAIGpt:"~openai/gpt-latest",OpenAIGptSol:"~openai/gpt-sol-latest",OpenAIGptAstra:"~openai/gpt-astra-latest",XAIGrok:"~x-ai/grok-latest",OpenAIGptMini:"~openai/gpt-mini-latest",MoonshotKimi:"~moonshotai/kimi-latest"},"n",0,function(e){return i(e,{autoViaJev:!0})},"Q",0,i])},219643,e=>{"use strict";e.i(427150);var t=e.i(368966);let i={[t.E.Max]:[t.E.XHigh,t.E.High,t.E.Medium,t.E.Low],[t.E.XHigh]:[t.E.High,t.E.Medium,t.E.Low],[t.E.Minimal]:[t.E.Low,t.E.Medium,t.E.High],[t.E.None]:[],[t.E.Low]:[t.E.Medium,t.E.High],[t.E.Medium]:[t.E.Low,t.E.High],[t.E.High]:[t.E.Medium,t.E.Low]};Object.values(t.V).reverse(),e.s(["w",0,function(e){let i=e?.supported_reasoning_efforts;return i&&0!==i.length?e.is_mandatory_reasoning?[...i]:[...i,t.E.None]:null},"$",0,function(e,t){if(!e)return;if(!t||0===t.length)return e;let n=new Set(t);if(n.has(e))return e;for(let t of i[e])if(n.has(t))return t}])},851671,e=>{"use strict";e.s(["f",0,"v6"])},984569,e=>{"use strict";var t=e.i(988590),i=e.i(983739),n=e.i(647204),a=e.i(882844),r=e.i(635157);let l=r.z.object({banned:r.z.boolean().optional(),blocked:r.z.boolean().optional(),allowed:r.z.boolean().optional()}),o=r.z.record(r.z.string(),l);function s(e,t){var i,r;let l=(0,a.C)(o,e??{});return(0,n.C)(l)?(i=l.data,r=t,Object.entries(i).filter(([e,t])=>!0===t[r]).map(([e])=>e)):[]}function c(e,t){return Object.entries(e).filter(([e,i])=>!0===i[t]).map(([e])=>e)}e.s(["f",0,(e,n)=>{var a,r,l,o,u,d,m,p;let f;if(!e)return{shouldDisablePaidModelTraining:!0,shouldDisableLogging:!0,shouldDisableFreeModelTraining:!1,shouldDisableFreeModelPublication:!1,shouldEnforceZDR:!1,shouldEnforceZdrAnthropic:!1,shouldEnforceZdrOpenAI:!1,shouldEnforceZdrGoogle:!1,shouldEnforceZdrXai:!1,shouldEnforceZdrOther:!1,shouldAllowSafetyRetentionGoogle:!0,shouldAllowSafetyRetentionOther:!0,isEnterprise:!1,ignoredProviders:[],allowedProviders:[],blockedModelAuthors:[],allowedModelAuthors:[],defaultProviderSort:null,shouldLockPrivacySettings:!1};let h=e.provider_settings||{},g=c(h,"ignored"),v=c(h,"allowed"),{enable_training:b,enforce_zdr:y,enforce_zdr_anthropic:x,enforce_zdr_openai:w,enforce_zdr_google:k,enforce_zdr_xai:_,enforce_zdr_other:j,default_provider_sort:A,enable_free_model_training:S,enable_free_model_publication:M,lock_privacy_settings:N}=e,z=void 0!==n?n.default_provider_sort:A,C=(u=e,d=n,!(u.is_workspace_data_discount_logging_allowed&&d?.is_data_discount_logging_enabled)||(m=d,p=u.key?.id,!!((f=m.data_discount_logging_excluded_api_key_ids)&&void 0!==p&&f.some(e=>Number(e)===p))));return{shouldDisablePaidModelTraining:!1===b||null===b&&C,shouldDisableLogging:C,shouldDisableFreeModelTraining:!1===S,shouldDisableFreeModelPublication:!1===M,shouldEnforceZDR:y,shouldEnforceZdrAnthropic:x,shouldEnforceZdrOpenAI:w,shouldEnforceZdrGoogle:k,shouldEnforceZdrXai:_,shouldEnforceZdrOther:j,shouldAllowSafetyRetentionGoogle:(a=e.allow_safety_retention_google,r=e.is_enterprise,a??!r),shouldAllowSafetyRetentionOther:(l=e.allow_safety_retention_other,o=e.is_enterprise,l??!o),isEnterprise:e.is_enterprise,ignoredProviders:g,allowedProviders:v,blockedModelAuthors:s(e.author_settings,"blocked"),allowedModelAuthors:s(e.author_settings,"allowed"),defaultProviderSort:(0,t.q)(z,i.f)?z:null,shouldLockPrivacySettings:N}}],984569)},98988,e=>{"use strict";let t={Composite:"composite",Reasoning:"reasoning",Coding:"coding",Math:"math",Knowledge:"knowledge",Other:"other"},i={artificial_analysis_intelligence_index:{label:"Intelligence Index",description:"Overall intelligence score (v4.0.2)",category:t.Composite,priority:1,isFraction:!1,fullDescription:"Combines 10 evaluations across four weighted categories (25% each): Agents, Coding, General, and Scientific Reasoning. Includes GDPval-AA, τ²-Bench Telecom, Terminal-Bench Hard, SciCode, AA-LCR, AA-Omniscience, IFBench, Humanity's Last Exam, GPQA Diamond, and CritPt.",officialLink:"https://artificialanalysis.ai/methodology/intelligence-benchmarking",evaluator:"Artificial Analysis",domain:"General Intelligence"},artificial_analysis_coding_index:{label:"Coding Index",description:"Composite coding capability score",category:t.Composite,priority:2,isFraction:!1,fullDescription:"An aggregated score measuring programming proficiency across competitive programming, scientific computing, and practical coding challenges. Combines results from LiveCodeBench, SciCode, and other coding evaluations.",evaluator:"Artificial Analysis",domain:"Software Engineering"},artificial_analysis_math_index:{label:"Math Index",description:"Composite mathematical reasoning score",category:t.Composite,priority:3,isFraction:!1,fullDescription:"A composite metric evaluating mathematical problem-solving across competition-level mathematics. Combines performance on MATH 500, AIME, and other mathematical reasoning benchmarks.",evaluator:"Artificial Analysis",domain:"Mathematical Reasoning"},artificial_analysis_agentic_index:{label:"Agentic Index",description:"Composite agentic capability score",category:t.Composite,priority:4,isFraction:!1,fullDescription:"A composite metric evaluating agentic capabilities across tool use, planning, and multi-step task execution benchmarks.",officialLink:"https://artificialanalysis.ai/leaderboards/agentic",evaluator:"Artificial Analysis",domain:"Agentic Capabilities"},mmlu_pro:{label:"MMLU-Pro",description:"Advanced knowledge assessment",category:t.Knowledge,priority:1,isFraction:!0,fullDescription:"Advanced knowledge assessment with 12,032 questions across multiple domains in 10-option multiple choice format. This is a standalone evaluation separate from the Intelligence Index.",officialLink:"https://huggingface.co/datasets/TIGER-Lab/MMLU-Pro",evaluator:"TIGER Lab",domain:"Multidisciplinary Knowledge"},gpqa:{label:"GPQA Diamond",description:"Graduate-level scientific reasoning",category:t.Reasoning,priority:1,isFraction:!0,fullDescription:"Graduate-level scientific reasoning with 198 questions covering biology, physics, and chemistry in 4-option multiple choice format. Part of Intelligence Index v4.0.2 Scientific Reasoning category (25% weight).",officialLink:"https://arxiv.org/abs/2311.12022",evaluator:"NYU & Collaborators",domain:"Scientific Reasoning"},hle:{label:"HLE",description:"Humanity's Last Exam",category:t.Reasoning,priority:2,isFraction:!0,fullDescription:"Frontier academic benchmark from Centre for AI Safety featuring 2,158 text-only questions across mathematics, humanities, and natural sciences. Part of Intelligence Index v4.0.2 Scientific Reasoning category (25% weight).",officialLink:"https://arxiv.org/abs/2501.14249",evaluator:"Centre for AI Safety",domain:"Academic Knowledge"},ifbench:{label:"IFBench",description:"Instruction-following benchmark",category:t.Reasoning,priority:3,isFraction:!0,fullDescription:"Instruction-following benchmark with 294 single-turn questions testing counting, formatting, and text manipulation skills. Part of Intelligence Index v4.0.2 General category (25% weight).",officialLink:"https://arxiv.org/abs/2311.07911",evaluator:"Google Research",domain:"Instruction Following"},tau2:{label:"τ²-Bench Telecom",description:"Conversational AI agents in dual-control scenarios",category:t.Reasoning,priority:4,isFraction:!0,fullDescription:'Tests conversational AI agents in dual-control scenarios with 114 tasks where language models simulate both agent and user roles. Measures planning and tool use through "world state" evaluation determining task success. Part of Intelligence Index v4.0.2 Agents category (25% weight).',officialLink:"https://arxiv.org/abs/2506.07982",evaluator:"CMU & MBZUAI",domain:"Agentic Planning & Tool Use"},gdpval_aa:{label:"GDPval-AA",description:"Economically valuable tasks",category:t.Reasoning,priority:6,isFraction:!0,fullDescription:"Evaluates language models on economically valuable tasks spanning 44 US occupations. Features 220 tasks scored via pairwise comparison (ELO rating system). Models complete real-world work tasks with file outputs, assessed blindly by Gemini 3 Pro. Part of Intelligence Index v4.0.2 Agents category (25% weight).",officialLink:"https://artificialanalysis.ai/methodology/intelligence-benchmarking",evaluator:"Artificial Analysis",domain:"Real-World Tasks"},aa_omniscience:{label:"AA-Omniscience",description:"Knowledge and hallucination benchmark",category:t.Knowledge,priority:2,isFraction:!0,fullDescription:"Knowledge and hallucination benchmark containing 6,000 questions across 42 topics. Rewards correct answers, penalizes hallucinations, and neutralizes abstentions. Part of Intelligence Index v4.0.2 General category (25% weight).",officialLink:"https://artificialanalysis.ai/methodology/intelligence-benchmarking",evaluator:"Artificial Analysis",domain:"Knowledge & Factuality"},aa_omniscience_accuracy:{label:"AA-Omniscience Accuracy",description:"Proportion of correctly answered questions",category:t.Knowledge,priority:3,isFraction:!0,fullDescription:"Measures the proportion of correctly answered questions out of all questions, regardless of whether the model chooses to answer.",officialLink:"https://artificialanalysis.ai/evaluations/omniscience",evaluator:"Artificial Analysis",domain:"Knowledge & Factuality"},aa_omniscience_non_hallucination_rate:{label:"AA-Omniscience Non-Hallucination Rate",description:"Rate of avoiding hallucination among non-correct responses",category:t.Knowledge,priority:4,isFraction:!0,fullDescription:"Measures how often the model avoids hallucinating when it does not know the correct answer. Defined as 1 minus the hallucination rate, i.e. (partial answers + not attempted) / (incorrect + partial answers + not attempted). Higher scores indicate fewer hallucinations.",officialLink:"https://artificialanalysis.ai/evaluations/omniscience",evaluator:"Artificial Analysis",domain:"Knowledge & Factuality"},critpt:{label:"CritPt",description:"Research-level physics reasoning",category:t.Reasoning,priority:7,isFraction:!0,fullDescription:"Research-level physics reasoning with 70 unpublished frontier physics problems accepting numerical answers, symbolic expressions, or Python functions. Part of Intelligence Index v4.0.2 Scientific Reasoning category (25% weight).",officialLink:"https://artificialanalysis.ai/methodology/intelligence-benchmarking",evaluator:"Various",domain:"Frontier Physics"},livecodebench:{label:"LiveCodeBench",description:"Python programming benchmark",category:t.Coding,priority:1,isFraction:!0,fullDescription:"Python programming with 315 problems from LeetCode, AtCoder, and Codeforces requiring passing unit tests. Standalone evaluation separate from the Intelligence Index.",officialLink:"https://livecodebench.github.io/",evaluator:"CMU, MBZUAI, UC Berkeley & MIT",domain:"Competitive Programming"},scicode:{label:"SciCode",description:"Python programming for scientific computing",category:t.Coding,priority:2,isFraction:!0,fullDescription:"Python programming benchmark with 338 subproblems solving scientific computing tasks. Includes scientist-annotated background information; all unit tests must pass for scoring. Part of Intelligence Index v4.0.2 Coding category (25% weight).",officialLink:"https://scicode-bench.github.io/",evaluator:"Various",domain:"Scientific Computing"},lcr:{label:"AA-LCR",description:"Long context reasoning evaluation",category:t.Reasoning,priority:5,isFraction:!0,fullDescription:"Long context reasoning evaluation with 100 hard questions spanning 7 document categories (~100k tokens each). Tests reasoning across company reports, legal documents, and academic materials. Part of Intelligence Index v4.0.2 General category (25% weight).",officialLink:"https://artificialanalysis.ai/methodology/intelligence-benchmarking",evaluator:"Artificial Analysis",domain:"Long Context Reasoning"},terminalbench_hard:{label:"Terminal-Bench Hard",description:"Agentic coding & terminal use",category:t.Coding,priority:3,isFraction:!0,fullDescription:"Co-developed by Stanford researchers, contains 44 agentic tasks requiring terminal-based execution including software engineering and system administration. Success requires passing all task-specific test suites. Part of Intelligence Index v4.0.2 Coding category (25% weight).",officialLink:"https://arxiv.org/abs/2601.11868",evaluator:"Stanford & Collaborators",domain:"Agentic Terminal Tasks"},terminalbench_v4_0:{label:"Terminal-Bench 4.0",description:"Agentic coding & terminal use",category:t.Coding,priority:4,isFraction:!0,fullDescription:"Agentic tasks requiring terminal-based execution, including software engineering and system administration. Replaced Terminal-Bench 2.1 in Intelligence Index v4.3.",officialLink:"https://artificialanalysis.ai/methodology/intelligence-benchmarking",evaluator:"Stanford & Collaborators",domain:"Agentic Terminal Tasks"},terminalbench_v2_1:{label:"Terminal-Bench 2.1",description:"Agentic coding & terminal use",category:t.Coding,priority:5,isFraction:!0,fullDescription:"Agentic tasks requiring terminal-based execution. Part of the Coding Index; no longer run on new models after Intelligence Index v4.3.",officialLink:"https://artificialanalysis.ai/methodology/intelligence-benchmarking",evaluator:"Stanford & Collaborators",domain:"Agentic Terminal Tasks"},tau_banking:{label:"τ-Bench Banking",description:"Agentic tool use in a banking domain",category:t.Reasoning,priority:6,isFraction:!0,officialLink:"https://artificialanalysis.ai/methodology/intelligence-benchmarking",domain:"Agentic Tool Use"},aime_25:{label:"AIME 2025",description:"Competition mathematics",category:t.Math,priority:1,isFraction:!0,fullDescription:"Competition mathematics with 30 problems requiring integer answers 1–999 (10 repeats per question). Standalone evaluation separate from the Intelligence Index.",officialLink:"https://www.maa.org/math-competitions/aime",evaluator:"MAA",domain:"Competition Mathematics"},aime:{label:"AIME",description:"Competition mathematics",category:t.Math,priority:2,isFraction:!0,officialLink:"https://www.maa.org/math-competitions/aime",evaluator:"MAA",domain:"Competition Mathematics"},math_500:{label:"MATH-500",description:"Competition mathematics problems",category:t.Math,priority:3,isFraction:!0,domain:"Mathematical Reasoning"}};e.s(["Z",0,t,"R",0,function(e){let n={[t.Composite]:"Overall Indices",[t.Reasoning]:"Reasoning",[t.Coding]:"Coding",[t.Math]:"Mathematics",[t.Knowledge]:"Knowledge",[t.Other]:"Other Benchmarks"},a=[t.Composite,t.Reasoning,t.Coding,t.Knowledge,t.Math,t.Other],r=new Map;for(let[n,a]of Object.entries(e)){let e=function(e){let n=i[e];if(n)return n;let a=e.replaceAll("_"," ").replaceAll(/\b\w/g,e=>e.toUpperCase()).replace(/^Aa /,"Artificial Analysis ");return{label:a,description:`${a} benchmark score`,category:t.Other,priority:100,isFraction:!0}}(n),l=e.category;r.has(l)||r.set(l,[]),r.get(l).push({key:n,value:a,metadata:e})}for(let e of r.values())e.sort((e,t)=>e.metadata.priority-t.metadata.priority);let l=[];for(let e of a){let t=r.get(e);t&&t.length>0&&l.push({category:e,label:n[e],evals:t})}return l}])},353273,e=>{"use strict";var t=e.i(882844),i=e.i(635157);let n={Llm:"llm",TextToImage:"text-to-image",TextToVideo:"text-to-video",ImageToVideo:"image-to-video",TextToSpeech:"text-to-speech",ImageEditing:"image-editing"},a=i.z.object({id:i.z.string(),name:i.z.string(),slug:i.z.string()}),r=i.z.object({id:i.z.string(),slug:i.z.string(),name:i.z.string(),model_creator:a,evaluations:i.z.record(i.z.string(),(0,t.$)().nullable()).optional(),openrouter_api_id:i.z.string().nullish(),huggingface_url:i.z.string().nullish(),pricing:i.z.object({price_1m_input_tokens:(0,t.$)().nullish(),price_1m_output_tokens:(0,t.$)().nullish(),price_1m_blended_3_to_1:(0,t.$)().nullish()}).nullish(),median_output_tokens_per_second:(0,t.$)().nullish(),median_time_to_first_token_seconds:(0,t.$)().nullish(),context_window:(0,t.D)().nullish()});i.z.object({data:i.z.array(r)});let l=i.z.object({style_category:i.z.string().nullish(),subject_matter_category:i.z.string().nullish(),format_category:i.z.string().nullish(),elo:(0,t.D)(),ci95:i.z.string(),appearances:(0,t.D)()}),o=i.z.object({model_type:i.z.literal(n.Llm),evaluations:i.z.record(i.z.string(),(0,t.$)().nullable())}),s=i.z.enum([n.TextToImage,n.TextToVideo,n.ImageToVideo,n.TextToSpeech,n.ImageEditing]),c=i.z.object({model_type:s,elo:(0,t.D)(),rank:(0,t.D)(),ci95:i.z.string(),appearances:(0,t.D)().nullable(),categories:i.z.array(l).optional(),elo_min:(0,t.D)().nullable().optional(),elo_max:(0,t.D)().nullable().optional()}),u=i.z.discriminatedUnion("model_type",[o,c]);i.z.object({aa_id:i.z.string(),aa_slug:i.z.string(),aa_name:i.z.string(),permaslug:i.z.string().nullable(),openrouter_slug:i.z.string().nullable(),heuristic_openrouter_slug:i.z.string().nullable(),benchmark_data:u,last_updated_at:(0,t.D)(),percentiles:i.z.object({intelligence_percentile:(0,t.D)().nullable(),coding_percentile:(0,t.D)().nullable(),agentic_percentile:(0,t.D)().nullable()}).optional()}),e.s(["f",0,n])},560832,e=>{"use strict";var t=e.i(427150);function i(e){return{intelligence:e.artificial_analysis_intelligence_index??null,coding:e.artificial_analysis_coding_index??null,agentic:e.artificial_analysis_agentic_index??null}}e.s(["o",0,66,"c",0,33,"m",0,i,"x",0,function(e){return`${(100*e).toFixed(1)}%`},"C",0,function(e){return 100*e},"l",0,function(e){return e>=.66?"green":e>=.33?"orange":"red"},"$",0,function(e){return e.length<=1?0:e.reduce((e,i,n)=>{let a=function(e){let i=e.percentiles;if(!i)return null;let n=[i.intelligence_percentile,i.coding_percentile,i.agentic_percentile].filter(t.f);return 0===n.length?null:n.reduce((e,t)=>e+t,0)/n.length}(i);return(0,t.f)(a)&&a>e.bestAvg?{bestIdx:n,bestAvg:a}:e},{bestIdx:0,bestAvg:-1/0}).bestIdx},"n",0,function(e){let t=i(e);return null!==t.intelligence||null!==t.coding||null!==t.agentic}])},610586,e=>{"use strict";let t={models:{label:"Models Arena",description:"Head-to-head comparison of AI model outputs across modalities",categories:{codecategories:{label:"Code Categories",description:"Aggregated stats across all code generation categories"},"3d":{label:"3D",description:"3D content generation"},dataviz:{label:"Data Visualization",description:"Data visualization generation"},gamedev:{label:"Game Development",description:"Game development code generation"},uicomponent:{label:"UI Component",description:"UI component generation quality"},logo:{label:"Logo",description:"Logo design generation"},image:{label:"Image",description:"Image generation quality"},video:{label:"Video",description:"Video generation quality"},slides:{label:"Slides",description:"Slide/presentation generation"},videotovideo:{label:"Video to Video",description:"Video-to-video transformation quality"},graphicdesign:{label:"Graphic Design",description:"Graphic design generation quality"},imagetoimage:{label:"Image to Image",description:"Image-to-image transformation quality"},svg:{label:"SVG",description:"SVG generation quality"}}},builders:{label:"Builders Arena",description:"Comparison of AI-powered app builders and coding agents",categories:{mobile:{label:"Mobile",description:"AI builder mobile app generation"},"native-android":{label:"Native Android",description:"AI builder native Android app generation"}}},agents:{label:"Agents Arena",description:"Agentic coding workflows evaluated end-to-end",categories:{agon_webapps:{label:"Agon Web Apps",description:"Agon web application development"},mobileapps:{label:"Mobile Apps",description:"Agentic mobile application development"},nativeapps:{label:"Native Apps",description:"Agentic native application development"},fullstack:{label:"Full Stack",description:"Full stack development workflows"}}}},i=["codecategories","uicomponent","gamedev","dataviz","3d","image","video","svg"],n=t.models,a=n?i.map(e=>({type:`da-${e}`,label:`${n.categories[e]?.label??e} ELO`,daKey:`models-${e}`})):[];({...Object.fromEntries(Object.values(t).flatMap(e=>Object.entries(e.categories).map(([e,t])=>[t.label,e]))),"3D Design":"3d","Game Dev":"gamedev"}),e.s(["h",0,a,"Z",0,i,"I",0,function(e){return t[e]?.label??e},"V",0,function(e,i){return t[e]?.categories[i]?.label??i.replaceAll(/\b([a-z])/g,e=>e.toUpperCase())}])},593305,e=>{"use strict";e.s(["t",0,function(e){return Math.round(e).toString()},"k",0,function(e){return null===e?"N/A":e<1e3?`${Math.round(e)}ms`:`${(e/1e3).toFixed(1)}s`},"w",0,function(e){return`${e.toFixed(1)}%`},"I",0,function(e){return e>=75?"green":e>=50?"orange":"red"}])},399907,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(147832),a=e.i(199168);function r(e){return(0,t.jsx)("li",{className:"mt-0.5 first:mt-0",children:n.N[e]},e)}e.s(["f",0,function(e){let n,l,o,s,c,u=(0,i.c)(12),{heading:d,reasons:m}=e,p=(0,a.o)();return u[0]!==p||u[1]!==d?(n=d??p("Unavailable because:"),u[0]=p,u[1]=d,u[2]=n):n=u[2],u[3]!==n?(l=(0,t.jsx)("div",{className:"font-medium mb-1",children:n}),u[3]=n,u[4]=l):l=u[4],u[5]!==m?(o=m.map(r),u[5]=m,u[6]=o):o=u[6],u[7]!==o?(s=(0,t.jsx)("ul",{className:"list-disc list-inside",children:o}),u[7]=o,u[8]=s):s=u[8],u[9]!==l||u[10]!==s?(c=(0,t.jsxs)(t.Fragment,{children:[l,s]}),u[9]=l,u[10]=s,u[11]=c):c=u[11],c}])},227339,e=>{"use strict";e.s(["y",0,{tickLine:!1,axisLine:!1,fontSize:12,tick:{fill:"hsl(var(--muted-foreground))"}},"Y",0,260,"A",0,{top:8,right:16,bottom:8,left:-16},"k",0,240,"j",0,150,"n",0,400,"W",0,{cost:"var(--chart-cost)",requests:"var(--chart-requests)",tokensPrompt:"var(--chart-tokens-prompt)",tokensCompletion:"var(--chart-tokens-completion)",tokensReasoning:"var(--chart-tokens-reasoning)",tokensCached:"var(--chart-tokens-cached)",tokensUncached:"var(--chart-tokens-uncached)",credits:"var(--chart-credits)",byok:"var(--chart-byok)"},"Q",0,function(e,t){return Math.max(e*(t?24:40),t?140:200)}])},640947,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(136562),a=e.i(829622),r=e.i(987457);e.s(["f",0,e=>{let l,o,s,c,u=(0,i.c)(26),{providerName:d,providerIcon:m,className:p,frame:f}=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 h=l;if(void 0!==f&&f){let e,i,l;return u[3]!==p?(e=(0,n.f)("size-8",p),u[3]=p,u[4]=e):e=u[4],u[5]!==h||u[6]!==m.className||u[7]!==m.darkUrl||u[8]!==m.url||u[9]!==d?(i=h??(0,t.jsx)(a.RemoteFavicon,{className:(0,n.f)("size-full",m.className),faviconFor:d,imgSrc:m.url,imgSrcDark:m.darkUrl,size:256}),u[5]=h,u[6]=m.className,u[7]=m.darkUrl,u[8]=m.url,u[9]=d,u[10]=i):i=u[10],u[11]!==e||u[12]!==i?(l=(0,t.jsx)(r.f,{className:e,children:i}),u[11]=e,u[12]=i,u[13]=l):l=u[13],l}let g=null===h&&"bg-muted/40 p-1 shadow-inner";return u[14]!==p||u[15]!==g?(o=(0,n.f)("flex items-center justify-center","h-8 w-8 rounded-lg",g,p),u[14]=p,u[15]=g,u[16]=o):o=u[16],u[17]!==h||u[18]!==m.className||u[19]!==m.darkUrl||u[20]!==m.url||u[21]!==d?(s=h??(0,t.jsx)(a.RemoteFavicon,{className:(0,n.f)("overflow-hidden rounded-sm",m.className),faviconFor:d,imgSrc:m.url,imgSrcDark:m.darkUrl,size:256}),u[17]=h,u[18]=m.className,u[19]=m.darkUrl,u[20]=m.url,u[21]=d,u[22]=s):s=u[22],u[23]!==o||u[24]!==s?(c=(0,t.jsx)("div",{className:o,children:s}),u[23]=o,u[24]=s,u[25]=c):c=u[25],c}])},121979,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(207298),a=e.i(136562),r=e.i(199168);let l=(0,n.f)("rounded-full bg-current",{variants:{size:{default:"size-2",sm:"size-1",xs:"size-0.75"}},defaultVariants:{size:"default"}}),o=(0,n.f)("inline-flex items-center",{variants:{size:{default:"gap-2 leading-7",sm:"gap-1 leading-5",xs:"gap-0.75 leading-3"}},defaultVariants:{size:"default"}}),s=e=>{let n,r,o=(0,i.c)(5),{className:s,size:c}=e,u=void 0===s?"":s;return o[0]!==u||o[1]!==c?(n=(0,a.f)(l({size:c}),u),o[0]=u,o[1]=c,o[2]=n):n=o[2],o[3]!==n?(r=(0,t.jsx)("span",{className:n}),o[3]=n,o[4]=r):r=o[4],r};e.s(["f",0,e=>{let n,l,c,u,d,m,p,f,h,g,v=(0,i.c)(28);v[0]!==e?(n=void 0===e?{}:e,v[0]=e,v[1]=n):n=v[1];let{className:b,size:y,hasNoAnimation:x}=n,w=void 0===b?"":b,k=void 0===y?"default":y,_=void 0!==x&&x,j=(0,r.o)();v[2]!==j?(l=j("Loading"),v[2]=j,v[3]=l):l=v[3],v[4]!==w||v[5]!==k?(c=(0,a.f)(o({size:k}),w),v[4]=w,v[5]=k,v[6]=c):c=v[6];let A=_?"animate-none":"animate-scale-pulse";v[7]!==A?(u=(0,a.f)(A),v[7]=A,v[8]=u):u=v[8],v[9]!==k||v[10]!==u?(d=(0,t.jsx)(s,{size:k,className:u}),v[9]=k,v[10]=u,v[11]=d):d=v[11];let S=_?"animate-none":"animate-scale-pulse";v[12]!==S?(m=(0,a.f)(S,"delay-150"),v[12]=S,v[13]=m):m=v[13],v[14]!==k||v[15]!==m?(p=(0,t.jsx)(s,{size:k,className:m}),v[14]=k,v[15]=m,v[16]=p):p=v[16];let M=_?"animate-none":"animate-scale-pulse";return v[17]!==M?(f=(0,a.f)(M,"delay-300"),v[17]=M,v[18]=f):f=v[18],v[19]!==k||v[20]!==f?(h=(0,t.jsx)(s,{size:k,className:f}),v[19]=k,v[20]=f,v[21]=h):h=v[21],v[22]!==p||v[23]!==h||v[24]!==l||v[25]!==c||v[26]!==d?(g=(0,t.jsxs)("span",{role:"status","aria-label":l,className:c,children:[d,p,h]}),v[22]=p,v[23]=h,v[24]=l,v[25]=c,v[26]=d,v[27]=g):g=v[27],g}])},222508,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(480534),a=e.i(136562);let r={[n.$.Flex]:"bg-tier-flex-bg text-tier-flex",[n.$.Priority]:"bg-tier-priority-bg text-tier-priority",[n.$.Ultrafast]:"bg-tier-ultrafast-bg text-tier-ultrafast"};function l(e,t){return(0,a.f)("shrink-0 rounded-sm px-1.5 py-0.5 text-overline",r[e],t)}e.s(["M",0,function(e){let n,a,r,o,s,c=(0,i.c)(10);return c[0]!==e?({tier:r,className:n,...a}=e,c[0]=e,c[1]=n,c[2]=a,c[3]=r):(n=c[1],a=c[2],r=c[3]),c[4]!==n||c[5]!==r?(o=l(r,n),c[4]=n,c[5]=r,c[6]=o):o=c[6],c[7]!==a||c[8]!==o?(s=(0,t.jsx)("span",{...a,className:o}),c[7]=a,c[8]=o,c[9]=s):s=c[9],s},"u",0,l])},9608,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(297510),a=e.i(136562),r=e.i(138257);let l="compact";e.s(["f",0,function(e){let o,s,c,u,d,m,p,f=(0,i.c)(19),{percentage:h,color:g,size:v}=e,b=void 0===v?l:v,y=(0,r.useLocale)(),x=b===l&&"justify-end";f[0]!==x?(o=(0,a.f)("flex items-center gap-2",x),f[0]=x,f[1]=o):o=f[1];let w=b===l?"h-2 w-16":"h-2.5 w-28 sm:w-44";f[2]!==w?(s=(0,a.f)("overflow-hidden rounded-full bg-muted",w),f[2]=w,f[3]=s):s=f[3];let k=`${Math.max(0,Math.min(h,100))}%`;return f[4]!==g||f[5]!==k?(c=(0,t.jsx)("div",{className:"h-full w-(--share-width) rounded-full bg-(--share-color)","data-allow-inline-style":!0,style:{"--share-width":k,"--share-color":g}}),f[4]=g,f[5]=k,f[6]=c):c=f[6],f[7]!==s||f[8]!==c?(u=(0,t.jsx)("div",{"aria-hidden":!0,className:s,children:c}),f[7]=s,f[8]=c,f[9]=u):u=f[9],f[10]!==y||f[11]!==h?(d=(0,n.I)(h,{locale:y,preset:"native-fixed-1"})??"—",f[10]=y,f[11]=h,f[12]=d):d=f[12],f[13]!==d?(m=(0,t.jsx)("span",{className:"w-14 text-right tabular-nums",children:d}),f[13]=d,f[14]=m):m=f[14],f[15]!==m||f[16]!==o||f[17]!==u?(p=(0,t.jsxs)("div",{className:o,children:[u,m]}),f[15]=m,f[16]=o,f[17]=u,f[18]=p):p=f[18],p}])},741155,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(136562),a=e.i(535072),r=e.i(624112),l=e.i(751155);e.s(["f",0,function(e){let o,s,c,u,d,m=(0,i.c)(35);if((0,a.x)()){let i,a,r,o,s=e.side??"bottom",c=e.align,u=e.sideOffset,d=e.open,p=e.onOpenChange,f=e.inline?"inline-block":"flex items-center justify-center";return m[0]!==f?(i=(0,n.f)("p-0",f),m[0]=f,m[1]=i):i=m[1],m[2]!==e.className?(a=(0,n.f)("w-52 p-2 text-xs",e.className),m[2]=e.className,m[3]=a):a=m[3],m[4]!==e.content||m[5]!==a?(r=(0,t.jsx)("div",{className:a,children:e.content}),m[4]=e.content,m[5]=a,m[6]=r):r=m[6],m[7]!==e.align||m[8]!==e.children||m[9]!==e.onOpenChange||m[10]!==e.open||m[11]!==e.sideOffset||m[12]!==s||m[13]!==i||m[14]!==r?(o=(0,t.jsx)(l.Tooltip,{side:s,align:c,sideOffset:u,open:d,onOpenChange:p,className:i,content:r,children:e.children}),m[7]=e.align,m[8]=e.children,m[9]=e.onOpenChange,m[10]=e.open,m[11]=e.sideOffset,m[12]=s,m[13]=i,m[14]=r,m[15]=o):o=m[15],o}let p=e.open,f=e.onOpenChange,h=e.inline&&"inline-block";m[16]!==h?(o=(0,n.f)(h),m[16]=h,m[17]=o):o=m[17];let g="button"===e.children.type;m[18]!==e.children||m[19]!==o||m[20]!==g?(s=(0,t.jsx)(r.J,{className:o,nativeButton:g,render:e.children}),m[18]=e.children,m[19]=o,m[20]=g,m[21]=s):s=m[21];let v=e.side,b=e.align,y=e.sideOffset;return m[22]!==e.className?(c=(0,n.f)("w-52 p-2",e.className),m[22]=e.className,m[23]=c):c=m[23],m[24]!==e.align||m[25]!==e.content||m[26]!==e.side||m[27]!==e.sideOffset||m[28]!==c?(u=(0,t.jsx)(r.T,{side:v,align:b,sideOffset:y,text:"body",className:c,children:e.content}),m[24]=e.align,m[25]=e.content,m[26]=e.side,m[27]=e.sideOffset,m[28]=c,m[29]=u):u=m[29],m[30]!==e.onOpenChange||m[31]!==e.open||m[32]!==u||m[33]!==s?(d=(0,t.jsxs)(r.V,{open:p,onOpenChange:f,children:[s,u]}),m[30]=e.onOpenChange,m[31]=e.open,m[32]=u,m[33]=s,m[34]=d):d=m[34],d}])},426832,e=>{"use strict";e.s(["f",0,function(e,t,i=[]){let n=e.indexOf("?"),a=-1===n?e:e.slice(0,n),r=new URLSearchParams(-1===n?"":e.slice(n+1)),l=new URLSearchParams(t??"");for(let e of i)l.delete(e);l.forEach((e,t)=>{r.set(t,e)});let o=r.toString();return o?`${a}?${o}`:a}])},76507,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(369566),a=e.i(340800);e.i(707060);var r=e.i(196991),l=e.i(288265),o=e.i(16043),s=e.i(136562),c=e.i(199630),u=e.i(138257),d=e.i(304903),m=e.i(670168),p=e.i(369646),f=e.i(142559);let h=[{key:"start",widthClassName:"w-9"},{key:"middle",widthClassName:"w-9"},{key:"yesterday",widthClassName:"w-12"},{key:"now",widthClassName:"w-6"}];function g(e){let n,a,r=(0,i.c)(6),{cx:l,isVisible:o,color:c}=e,u=o?"opacity-100":"opacity-0";return r[0]!==c||r[1]!==u?(n=(0,s.f)("transition-opacity duration-quick ease-smooth-out",u,c),r[0]=c,r[1]=u,r[2]=n):n=r[2],r[3]!==l||r[4]!==n?(a=(0,t.jsx)("circle",{"data-uptime-timeline-marker":"true",cx:l,cy:"-6",r:"2.5",className:n}),r[3]=l,r[4]=n,r[5]=a):a=r[5],a}function v(e){let{key:i,widthClassName:n}=e;return(0,t.jsx)(m.l,{className:(0,s.f)("h-3",n),"data-uptime-skeleton":"tick-label"},i)}function b(e,i){return(0,t.jsx)(m.l,{className:"h-8 flex-1 rounded-none","data-uptime-skeleton":"bar"},`uptime-bar-${i}`)}function y(e,t){return"availability"===t&&"availability"in e?e.availability:e.uptime}function x({locale:e,gt:t},i){return null===i?t("N/A"):(0,p.g)(e,i)}function w(e,t){return new Date(e.getTime()+60*t*6e4)}function k({locale:e,timeZone:t,date:i}){return`${(0,a.C)(i,{locale:e,timeZone:t,preset:"day-month"})??"—"}, ${_({locale:e,timeZone:t,date:i})}`}function _({locale:e,timeZone:t,date:i}){return(0,a.P)(i,{locale:e,timeZone:t,preset:"hour-only"})??"—"}e.s(["D",0,function(e){let m,p,h,v,b,j,A,S,M,N,z,C,P,T,I,E,O,R,L,F,D,U,$,q=(0,i.c)(97),{points:K,metric:B,className:V,title:G,titleAccessory:H,defaultValue:W}=e,Z=void 0===B?"uptime":B,Y=(0,u.useLocale)(),X=(0,l.f)(),J=(0,d.P)("local"),[Q,ee]=(0,o.useState)(null),[et,ei]=(0,o.useState)(!1),en=(0,c.f)(),ea=0===K.length?0:100/K.length;if(q[0]!==ea||q[1]!==V||q[2]!==W||q[3]!==X||q[4]!==et||q[5]!==en||q[6]!==Y||q[7]!==Q||q[8]!==Z||q[9]!==K||q[10]!==J||q[11]!==G||q[12]!==H){let e;m=function({points:e,metric:t,barWidth:i,markerIndex:n,isHovered:a}){let r=null===n?null:e[n]??null;return{point:r,cxPercent:(n??0)*i+i/2,isVisible:a&&null!==r,color:f.q[(0,f.B)(r?y(r,t):null)]}}({points:K,metric:Z,barWidth:ea,markerIndex:Q,isHovered:et});let i=et?m.point:null,a=function({points:e,metric:t,defaultValue:i,hoveredPoint:n}){if(n)return y(n,t);if(void 0!==i)return i;let a=e.at(-1);return a?y(a,t):null}({points:K,metric:Z,defaultValue:W,hoveredPoint:i});q[20]!==X?(e=X("Last 72 hours"),q[20]=X,q[21]=e):e=q[21];let r=e;en&&(r=i?function({locale:e,timeZone:t,date:i}){let a=w(i,1),r=(0,n.f)(i,{timeZone:t}),l=(0,n.f)(a,{timeZone:t}),o=void 0!==r&&r===l?_({locale:e,timeZone:t,date:a}):k({locale:e,timeZone:t,date:a});return`${k({locale:e,timeZone:t,date:i})} - ${o}`}({locale:Y,timeZone:J,date:i.date}):function({locale:e,timeZone:t,points:i}){let n=i[0]?.date,a=i.at(-1)?.date;return n&&a?`${k({locale:e,timeZone:t,date:n})} - ${k({locale:e,timeZone:t,date:w(a,1)})}`:"Last 72 hours"}({locale:Y,timeZone:J,points:K})),q[22]!==V?(A=(0,s.f)(V),q[22]=V,q[23]=A):A=q[23],v="mb-4 flex flex-wrap items-center justify-between gap-2",b="true",j=G?(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-wrap items-baseline gap-x-2 max-sm:basis-full",children:[(0,t.jsx)("h3",{className:"text-sm font-medium text-foreground",children:G}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground/70",children:r}),H]}):(0,t.jsx)("span",{className:"min-w-0 flex-1 text-xs text-muted-foreground/70 max-sm:basis-full",children:r});let l=f.x[(0,f.B)(a)];q[24]!==l?(p=(0,s.f)("shrink-0 text-right text-sm font-medium tabular-nums",l),q[24]=l,q[25]=p):p=q[25],h=function({locale:e,gt:t},{metric:i,displayValue:n}){return"availability"===i?t("Availability {percent}",{percent:x({locale:e,gt:t},n)}):x({locale:e,gt:t},n)}({locale:Y,gt:X},{metric:Z,displayValue:a}),q[0]=ea,q[1]=V,q[2]=W,q[3]=X,q[4]=et,q[5]=en,q[6]=Y,q[7]=Q,q[8]=Z,q[9]=K,q[10]=J,q[11]=G,q[12]=H,q[13]=m,q[14]=p,q[15]=h,q[16]=v,q[17]=b,q[18]=j,q[19]=A}else m=q[13],p=q[14],h=q[15],v=q[16],b=q[17],j=q[18],A=q[19];if(q[26]!==p||q[27]!==h?(S=(0,t.jsx)("span",{className:p,children:h}),q[26]=p,q[27]=h,q[28]=S):S=q[28],q[29]!==v||q[30]!==b||q[31]!==j||q[32]!==S?(M=(0,t.jsxs)("div",{className:v,"data-uptime-timeline-header":b,children:[j,S]}),q[29]=v,q[30]=b,q[31]=j,q[32]=S,q[33]=M):M=q[33],q[34]!==X||q[35]!==Z||q[36]!==K.length?(N=function(e,{metric:t,pointCount:i}){return e("availability"===t?"{pointCount, plural, one {Availability timeline for # hour} other {Availability timeline for # hours}}":"{pointCount, plural, one {Uptime timeline for # hour} other {Uptime timeline for # hours}}",{pointCount:i})}(X,{metric:Z,pointCount:K.length}),q[34]=X,q[35]=Z,q[36]=K.length,q[37]=N):N=q[37],q[38]!==ea||q[39]!==X||q[40]!==en||q[41]!==Y||q[42]!==Z||q[43]!==K||q[44]!==J){let e;q[46]!==ea||q[47]!==X||q[48]!==en||q[49]!==Y||q[50]!==Z||q[51]!==J?(e=(e,i)=>{let n=(0,f.B)(y(e,Z)),r=`${i*ea}%`,l=`${ea-.2}%`,o=()=>{ee(i),ei(!0)},c=()=>ei(!1);return(0,t.jsx)("g",{children:(0,t.jsx)("rect",{role:"button",tabIndex:0,"aria-label":function({locale:e,gt:t},{point:i,metric:n,isHydrated:r,timeZone:l}){let o=r?(0,a.r)(i.date,{locale:e,timeZone:l,preset:"numeric-seconds"})??"—":i.date.toISOString();return"availability"===n?t("{when}: Availability {percent}",{when:o,percent:x({locale:e,gt:t},y(i,n))}):t("{when}: {percent}",{when:o,percent:x({locale:e,gt:t},i.uptime)})}({locale:Y,gt:X},{point:e,metric:Z,isHydrated:en,timeZone:J}),x:r,y:"0",width:l,height:32,className:(0,s.f)("transition-colors duration-300",f.q[n]),fillOpacity:"noData"===n?.2:.95,onFocus:o,onBlur:c,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),o())},onMouseEnter:o,onMouseLeave:c})},e.date.toISOString())},q[46]=ea,q[47]=X,q[48]=en,q[49]=Y,q[50]=Z,q[51]=J,q[52]=e):e=q[52],z=K.map(e),q[38]=ea,q[39]=X,q[40]=en,q[41]=Y,q[42]=Z,q[43]=K,q[44]=J,q[45]=z}else z=q[45];let er=`${m.cxPercent}%`;return q[53]!==m.color||q[54]!==m.isVisible||q[55]!==er?(C=(0,t.jsx)(g,{cx:er,isVisible:m.isVisible,color:m.color}),q[53]=m.color,q[54]=m.isVisible,q[55]=er,q[56]=C):C=q[56],q[57]!==N||q[58]!==z||q[59]!==C?(P=(0,t.jsxs)("svg",{width:"100%",height:32,className:"overflow-visible","aria-label":N,role:"img",children:[z,C]}),q[57]=N,q[58]=z,q[59]=C,q[60]=P):P=q[60],q[61]!==X||q[62]!==en||q[63]!==Y||q[64]!==K[0]?.date||q[65]!==J?(T=en?(0,a.C)(K[0]?.date,{locale:Y,timeZone:J,preset:"weekday"})??X("3 Days Ago"):X("3 Days Ago"),q[61]=X,q[62]=en,q[63]=Y,q[64]=K[0]?.date,q[65]=J,q[66]=T):T=q[66],q[67]!==T?(I=(0,t.jsx)("span",{children:T}),q[67]=T,q[68]=I):I=q[68],q[69]!==X||q[70]!==en||q[71]!==Y||q[72]!==K[24]?.date||q[73]!==J?(E=en?(0,a.C)(K[24]?.date,{locale:Y,timeZone:J,preset:"weekday"})??X("2 Days Ago"):X("2 Days Ago"),q[69]=X,q[70]=en,q[71]=Y,q[72]=K[24]?.date,q[73]=J,q[74]=E):E=q[74],q[75]!==E?(O=(0,t.jsx)("span",{children:E}),q[75]=E,q[76]=O):O=q[76],q[77]!==X||q[78]!==en||q[79]!==Y||q[80]!==K[48]?.date||q[81]!==J?(R=en?(0,a.C)(K[48]?.date,{locale:Y,timeZone:J,preset:"weekday"})??X("Yesterday"):X("Yesterday"),q[77]=X,q[78]=en,q[79]=Y,q[80]=K[48]?.date,q[81]=J,q[82]=R):R=q[82],q[83]!==R?(L=(0,t.jsx)("span",{children:R}),q[83]=R,q[84]=L):L=q[84],q[85]===Symbol.for("react.memo_cache_sentinel")?(F=(0,t.jsx)(r.T,{children:(0,t.jsx)("span",{children:"Now"})}),q[85]=F):F=q[85],q[86]!==I||q[87]!==O||q[88]!==L?(D=(0,t.jsxs)("div",{className:"absolute -bottom-6 left-0 right-0 flex justify-between text-2xs text-muted-foreground/70",children:[I,O,L,F]}),q[86]=I,q[87]=O,q[88]=L,q[89]=D):D=q[89],q[90]!==P||q[91]!==D?(U=(0,t.jsx)("div",{className:"pb-6","data-chart-share-surface":"",children:(0,t.jsxs)("div",{className:"relative h-8",children:[P,D]})}),q[90]=P,q[91]=D,q[92]=U):U=q[92],q[93]!==U||q[94]!==A||q[95]!==M?($=(0,t.jsxs)("div",{className:A,children:[M,U]}),q[93]=U,q[94]=A,q[95]=M,q[96]=$):$=q[96],$},"q",0,function(e){let n,a,r,o,c,u,d=(0,i.c)(10),{className:p}=e,f=(0,l.f)();return d[0]!==p?(n=(0,s.f)(p),d[0]=p,d[1]=n):n=d[1],d[2]!==f?(a=f("Loading uptime timeline"),d[2]=f,d[3]=a):a=d[3],d[4]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,t.jsx)(m.l,{className:"h-4 w-40","data-uptime-skeleton":"range-label"}),(0,t.jsx)(m.l,{className:"h-5 w-12","data-uptime-skeleton":"value"})]}),d[4]=r):r=d[4],d[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)("div",{className:"flex h-8 gap-px overflow-hidden rounded-sm","aria-hidden":"true",children:Array.from({length:72},b)}),d[5]=o):o=d[5],d[6]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsxs)("div",{className:"relative h-8 mb-6",children:[o,(0,t.jsx)("div",{className:"absolute -bottom-6 left-0 right-0 flex justify-between",children:h.map(v)})]}),d[6]=c):c=d[6],d[7]!==n||d[8]!==a?(u=(0,t.jsxs)("div",{className:n,role:"status","aria-label":a,children:[r,c]}),d[7]=n,d[8]=a,d[9]=u):u=d[9],u}])},369646,e=>{"use strict";var t=e.i(782143),i=e.i(297510);e.s(["k",0,function(e,i){return(0,t.f)(i,{locale:e,preset:"provider-tokens"})??"—"},"g",0,function(e,t){let n=Number((100*t).toPrecision(12));return(0,i.I)(Math.floor(n)/100,{locale:e,preset:"native-fixed-2"})??"—"}])},142559,e=>{"use strict";e.s(["u",0,{good:"bg-positive",ok:"bg-warning",bad:"bg-negative",noData:"bg-border"},"q",0,{good:"fill-positive",ok:"fill-warning",bad:"fill-negative",noData:"fill-muted-foreground"},"x",0,{good:"text-positive-text",ok:"text-warning-text",bad:"text-negative-text",noData:"text-muted-foreground"},"B",0,function(e){return null===e||Number.isNaN(e)?"noData":e>=95?"good":e>=85?"ok":"bad"}])},530685,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(340800),a=e.i(782143),r=e.i(288265),l=e.i(136562),o=e.i(315368),s=e.i(138257),c=e.i(304903);e.s(["f",0,function(e){let u,d,m,p,f,h,g,v,b=(0,i.c)(49),{coordinate:y,active:x,label:w,payload:k,totalConfig:_,chartHeight:j,isHighRes:A,displayTimezone:S}=e,M=(0,r.f)(),N=(0,s.useLocale)(),z=(0,c.P)(void 0===S?"utc":S);if(!x||!y||void 0===y.x||!w)return null;let C="string"==typeof w?w:"";if(b[0]!==j||b[1]!==y.x||b[2]!==C||b[3]!==M||b[4]!==A||b[5]!==N||b[6]!==k||b[7]!==z||b[8]!==_){d=Symbol.for("react.early_return_sentinel");e:{let e=(0,o.I)(C);if(_){var P;let i,r,l,o,s,c,u,m;if(b[11]!==N||b[12]!==k){let e=k?k.reduce((e,t)=>e+(Number(t.value)||0),0):0;i=(0,a.f)(e,{locale:N,preset:"decimal-3"})??"—",b[11]=N,b[12]=k,b[13]=i}else i=b[13];let p=i,f=A?(0,n.P)(e,{locale:N,timeZone:z,preset:"numeric"})??"—":void 0,h=(0,n.C)(e,{locale:N,timeZone:z,preset:"weekday-day-month"})??"—";if(b[14]!==M||b[15]!==_.bucketMs)r=_.bucketMs?(P=_.bucketMs,P<6e4?M("{count}s",{count:P/1e3}):P<36e5?M("{count}m",{count:P/6e4}):P<864e5?M("{count}h",{count:P/36e5}):M("{count}d",{count:P/864e5})):void 0,b[14]=M,b[15]=_.bucketMs,b[16]=r;else r=b[16];let g=r,v=j??0,x=`${y.x}px`;b[17]!==x?(l={"--tooltip-left":x},b[17]=x,b[18]=l):l=b[18],b[19]!==p||b[20]!==_.suffix?(o=(0,t.jsxs)("span",{className:"rounded-sm px-1.5 py-0.5 text-xs font-medium whitespace-nowrap",children:["~",p,_.suffix]}),b[19]=p,b[20]=_.suffix,b[21]=o):o=b[21],b[22]!==l||b[23]!==o?(s=(0,t.jsx)("div",{className:"absolute pointer-events-none z-overlay left-(--tooltip-left) -top-7 -translate-x-1/2","data-allow-inline-style":!0,style:l,children:o}),b[22]=l,b[23]=o,b[24]=s):s=b[24];let w=`${y.x}px`,S=`${v-26}px`;b[25]!==w||b[26]!==S?(c={"--tooltip-left":w,"--tooltip-top":S},b[25]=w,b[26]=S,b[27]=c):c=b[27],b[28]!==g?(u=g&&(0,t.jsx)("span",{className:"rounded-sm px-1 py-px font-semibold",children:g}),b[28]=g,b[29]=u):u=b[29];let C=(0,t.jsx)("div",{className:"absolute pointer-events-none z-overlay left-(--tooltip-left) top-(--tooltip-top) -translate-x-1/2","data-allow-inline-style":!0,style:c,children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-sm shadow-md border bg-background px-1.5 py-0.5 text-2xs whitespace-nowrap",children:[u,f&&`${f} `,h]})});b[30]!==C||b[31]!==s?(m=(0,t.jsxs)(t.Fragment,{children:[s,C]}),b[30]=C,b[31]=s,b[32]=m):m=b[32],d=m;break e}u=A?(0,n.P)(e,{locale:N,timeZone:z,preset:"numeric"})??"—":(0,n.C)(e,{locale:N,timeZone:z,preset:"medium"})??"—"}b[0]=j,b[1]=y.x,b[2]=C,b[3]=M,b[4]=A,b[5]=N,b[6]=k,b[7]=z,b[8]=_,b[9]=u,b[10]=d}else u=b[9],d=b[10];if(d!==Symbol.for("react.early_return_sentinel"))return d;let T=u,I=y.x>200,E=I?"-translate-x-full":"translate-x-0";b[33]!==E?(m=(0,l.f)("absolute pointer-events-none z-overlay flex items-center gap-2 left-(--tooltip-left) -top-5",E),b[33]=E,b[34]=m):m=b[34];let O=`${y.x+(I?2.5:-2.5)}px`;return b[35]!==O?(p={"--tooltip-left":O},b[35]=O,b[36]=p):p=b[36],b[37]!==T||b[38]!==I?(f=I&&(0,t.jsx)("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:T}),b[37]=T,b[38]=I,b[39]=f):f=b[39],b[40]===Symbol.for("react.memo_cache_sentinel")?(h=(0,t.jsx)("div",{className:"size-1 md:size-2 rounded-full bg-border"}),b[40]=h):h=b[40],b[41]!==T||b[42]!==I?(g=!I&&(0,t.jsx)("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:T}),b[41]=T,b[42]=I,b[43]=g):g=b[43],b[44]!==g||b[45]!==m||b[46]!==p||b[47]!==f?(v=(0,t.jsxs)("div",{className:m,"data-allow-inline-style":!0,style:p,children:[f,h,g]}),b[44]=g,b[45]=m,b[46]=p,b[47]=f,b[48]=v):v=b[48],v}])},695880,e=>{"use strict";var t=e.i(659350),i=e.i(782143),n=e.i(297510),a=e.i(368174),r=e.i(288265),l=e.i(16043),o=e.i(527629),s=e.i(968416),c=e.i(590387),u=e.i(699707),d=e.i(503608),m=e.i(364029),p=e.i(663673),f=e.i(569284),h=e.i(804599),g=e.i(836466),v=e.i(760638),b=e.i(136562),y=e.i(885024),x=e.i(315368);let w=[.1431,.1483,.1525,.1515,.1484,.1257,.1305];var k=e.i(535072),_=e.i(138257),j=e.i(304903),A=e.i(261499),S=e.i(522396),M=e.i(860674),N=e.i(82224),z=e.i(397618),C=e.i(70294),P=e.i(707951),T=e.i(775922),I=e.i(336810),E=e.i(530685);function O(e){return Object.values(e).reduce((e,t)=>e+t,0)}function R(e){let{row:t,allKeys:i,project:n}=e;return{[I.l]:t.x,...Object.fromEntries([...i].map(e=>[e,n(t.ys[e]??0)]))}}function L(e,t){return e.map(e=>Object.entries(e.ys).reduce((e,[i,n])=>t?.has(i)?e:e+n,0))}function F(e,t){let i=L(e,t).filter(e=>e>0);return 0===i.length?1:10**Math.floor(Math.log10(Math.min(...i)))}let D={fill:"currentColor",className:"text-muted"},U={" ":.171,",":.285,".":.301,":":.301,"-":.515,"'":.256,"%":.986,0:.6,1:.6,2:.6,3:.6,4:.6,5:.6,6:.6,7:.6,8:.6,9:.6,a:.573,b:.668,c:.601,d:.668,e:.615,f:.395,g:.66,h:.576,i:.233,j:.233,k:.553,l:.233,m:.911,n:.576,o:.655,p:.668,q:.668,r:.344,s:.51,t:.392,u:.576,v:.525,w:.811,x:.499,y:.544,z:.454,A:.662,B:.694,C:.78,D:.742,E:.609,F:.582,G:.819,H:.736,I:.26,J:.385,K:.658,L:.533,M:.846,N:.737,O:.878,P:.644,Q:.878,R:.644,S:.646,T:.517,U:.703,V:.66,W:.99,X:.608,Y:.629,Z:.582},$=[3,3,0,0],q=(0,M.f)("tabular-nums"),K=(0,M.f)();function B(e,{locale:t,isPercentage:a}){return a?`${(0,n.I)(e,{locale:t,preset:"native-fixed-1"})??"—"}`:(0,i.f)(e,{locale:t,preset:"compact-chart-thousands"})??"—"}e.s(["StackedBarChart",0,function({data:e,colors:M=I.N,height:V=I.i,barSize:G=50,maxBarSize:H,hideZeroTotalTooltip:W=!1,yAxisLabel:Z,yAxisLabelClassName:Y,yAxisHidden:X,yAxisWidth:J,yAxisMaxOnly:Q,yAxisRightSide:ee,onClick:et,onBarClick:ei,getIsSeriesClickable:en,onLabel:ea,onTooltipLabel:er,onIcon:el,isPercentage:eo=!1,hiddenSeries:es,highlight:ec,forecast:eu,forecastFromTimestamp:ed,isAnimationActive:em=!1,legendConfig:ep,"data-testid":ef,displayTimezone:eh="local",tooltipTotalConfig:eg,roundedBars:ev=!1,valueFormatter:eb,yAxisTickFormatter:ey,referenceArea:ex,referenceLine:ew,xAxisTickFormatter:ek,colorMapping:e_,showPercentage:ej,showLogScaleToggle:eA=!1,headerControl:eS,allowTooltipToRight:eM=!1,useRichTooltip:eN=!1,renderBarHoverContent:ez,getSegmentFill:eC,shouldHighlightHoveredSeries:eP=!1}){var eT;let eI=(0,j.P)(eh),eE=(0,r.f)(),eO=(0,_.useLocale)(),[eR,eL]=(0,l.useState)(null),[eF,eD]=(0,l.useState)(null),[eU,e$]=(0,l.useState)(),[eq,eK]=(0,l.useState)(!1),eB=ec??eU,eV=(0,l.useDeferredValue)(eB),eG=(0,l.useDeferredValue)(eR),eH=ej??eo,eW=function({yAxisWidth:e,yAxisLabel:t}){return void 0!==e?e:t?72:void 0}({yAxisWidth:J,yAxisLabel:Z}),eZ=(0,k.x)(),{containerRef:eY,containerWidth:eX,tooltipWrapperStyle:eJ,tooltipContentClassName:eQ,tooltipAllowEscapeViewBox:e0}=(0,N.f)({enabled:eM&&eZ,hasBlockingLegend:void 0!==ep}),e1=(0,l.useMemo)(()=>eb??(e=>B(e,{locale:eO,isPercentage:eH})),[eO,eb,eH]),e2=ep?.position==="right"&&eZ,e3=(0,l.useMemo)(()=>new Set(e.flatMap(e=>Object.keys(e.ys))),[e]),e6=(0,l.useMemo)(()=>{var t;return eH?e.map(e=>{let t=O(e.ys);return R({row:e,allKeys:e3,project:e=>t>0?e/t*100:0})}):eu?(t=function({data:e,rollup:t,forecastFromTimestamp:i}){if(0===e.length)return[];let n=i?new Date(i):new Date,a=[];for(let i of e){let r={x:i.x,ys:{...i.ys}};if(!function(e,t){if(0===e.length)return!1;let i=(0,x.I)(e.at(-1)?.x||""),n=(0,x.I)(t.x);return i.getTime()===n.getTime()}(e,i)||!function({dataPointX:e,now:t,rollup:i}){let n=(0,x.I)(e);switch(i){case y.n.OneMinute:return n.getUTCFullYear()===t.getUTCFullYear()&&n.getUTCMonth()===t.getUTCMonth()&&n.getUTCDate()===t.getUTCDate()&&n.getUTCHours()===t.getUTCHours()&&n.getUTCMinutes()===t.getUTCMinutes();case y.n.OneHour:return n.getUTCFullYear()===t.getUTCFullYear()&&n.getUTCMonth()===t.getUTCMonth()&&n.getUTCDate()===t.getUTCDate()&&n.getUTCHours()===t.getUTCHours();case y.n.OneDay:return n.getUTCFullYear()===t.getUTCFullYear()&&n.getUTCMonth()===t.getUTCMonth()&&n.getUTCDate()===t.getUTCDate();case y.n.OneWeek:{let e=e=>{let t=e.getUTCDay();return Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()+(0===t?-6:1-t))};return e(n)===e(t)}case y.n.OneMonth:return n.getUTCFullYear()===t.getUTCFullYear()&&n.getUTCMonth()===t.getUTCMonth();default:return!1}}({dataPointX:i.x,now:n,rollup:t})){a.push(r);continue}let l=function(e,t){switch(t){case y.n.OneMinute:return 60/Math.max(1,e.getUTCSeconds());case y.n.OneHour:return 60/Math.max(1,e.getUTCMinutes());case y.n.OneDay:return 24/Math.max(1,e.getUTCHours());case y.n.OneWeek:{let t=(e.getUTCDay()||7)-1,i=e.getUTCHours()/24,n=0;for(let e=0;ee+t,0),s=e.findIndex(e=>e.x===i.x),c=s>0?e[s-1]:null,u=c?Object.values(c.ys).reduce((e,t)=>e+t,0):o,d=o*(l-1),m=Math.min(d,1.1*u);o>u&&u>0?r.forecast={total:d}:m>0&&(r.forecast={total:m}),a.push(r)}return a}({data:e,rollup:eu,forecastFromTimestamp:ed}),t.map(e=>{let t={__RECHARTS_X_LABEL__:e.x};if(Object.assign(t,e.ys),void 0!==e.forecast){let i="number"==typeof e.forecast?e.forecast:Object.values(e.forecast).reduce((e,t)=>e+t,0);i>0&&(t[eu]=i)}return t})):e.map(e=>R({row:e,allKeys:e3,project:e=>e}))},[e,eH,eu,ed,e3]),e5=(0,l.useMemo)(()=>{if(!eq||eH)return e6;let t=F(e,es),i=eu?[...e3,eu]:[...e3];return e6.map(e=>(function({entry:e,seriesKeys:t,lowerBound:i,hiddenSeries:n}){let a=t.flatMap(t=>{let i=e[t];return"number"!=typeof i||n?.has(t)?[]:[[t,i]]}),r=a.reduce((e,[,t])=>e+t,0);if(r<=i)return e;let l=r/i,o={...e},s=0,c=0;for(let[e,t]of a){s+=t;let n=i*l**(s/r);o[e]=n-c,c=n}return o})({entry:e,seriesKeys:i,lowerBound:t,hiddenSeries:es}))},[e6,eq,eH,e,es,e3,eu]),e4=(0,l.useMemo)(()=>(function(e){let{data:t,isPercentage:i,yAxisMaxOnly:n}=e;return n&&0!==t.length?i?100:Math.max(...t.map(e=>O(e.ys))):0})({data:e,isPercentage:eH,yAxisMaxOnly:Q??!1}),[e,eH,Q]),e8=(0,l.useMemo)(()=>{let t,i,n;return eq?(t=F(e,es),i=Math.max(0,...L(e,es)),Array.from({length:Math.max(n=Math.round(Math.log10(t)),Math.ceil(Math.log10(i)))-n+1},(e,t)=>10**(n+t))):void 0},[eq,e,es]),e9=(0,l.useMemo)(()=>{if(e_)return e_;if(!e||0===e.length)return new Map;let t=[...new Set(e.flatMap(e=>Object.keys(e.ys)))],i=new Map;return t.forEach((e,t)=>{i.set(e,M[t%M.length]||I.F.Slate400)}),i},[e,M,e_]),e7=(0,l.useMemo)(()=>{if(!e||0===e.length||void 0===ep)return new Map;let t=new Map;return e.forEach(e=>{let i=Object.values(e.ys).reduce((e,t)=>e+t,0),n=Object.entries(e.ys).map(([e,t])=>({name:e,value:t,percentage:i>0?t/i*100:0,color:e9.get(e)||I.F.Slate400})),a=n.findIndex(e=>"others"===e.name.toLowerCase()),r=-1!==a?n.splice(a,1)[0]:void 0;n.sort((e,t)=>(t.value??-1/0)-(e.value??-1/0)),r&&n.push(r),t.set(e.x,n)}),t},[e,e9,ep]),te=(0,l.useMemo)(()=>{if(void 0===ep)return[];let t=[];if(eG)t=e7.get(eG.x)||[];else if(e&&e.length>0){let i=e.at(-1);t=e7.get(i.x)||[]}return void 0!==ep.maxItems&&t.length>ep.maxItems?t.slice(0,ep.maxItems):t},[eG,e7,e,ep]),tt=(0,l.useCallback)(e=>{eL(e)},[]),ti=(0,l.useRef)(new Set),tn=(0,l.useCallback)(e=>{ti.current.add(e),(void 0!==ez||eP)&&eD(e)},[ez,eP]),ta=(0,l.useCallback)(e=>{ti.current.delete(e),(void 0!==ez||eP)&&eD(t=>t===e?null:t)},[ez,eP]),tr=(0,l.useCallback)(e=>{void 0===ec&&e$(e)},[ec]),tl=(0,l.useCallback)(()=>{void 0===ec&&e$(void 0)},[ec]),to=(0,l.useMemo)(()=>ev?function(e){let{rows:t,allKeys:i,hiddenSeries:n}=e,a=[...i].reverse().filter(e=>!n?.has(e)),r=new Map;for(let e of t){let t=e[I.l];if("string"!=typeof t&&"number"!=typeof t)continue;let i=a.find(t=>{let i=e[t];return"number"==typeof i&&i>0});void 0!==i&&r.set(t,i)}return r}({rows:e6,allKeys:e3,hiddenSeries:es}):new Map,[ev,e3,e6,es]),ts=!e6.some(e=>Object.values(e).some(Boolean)),tc=(0,l.useMemo)(()=>eu?`${eu}:${[...e3].join("\0")}`:void 0,[e3,eu]),{containsMultipleYears:tu,containsMultipleDays:td,isHighRes:tm}=(0,l.useMemo)(()=>{let t=e.map(e=>e.x);return(0,I.D)(e6,t)},[e6,e]),tp=(0,l.useCallback)((e,t)=>tm?(0,x.M)(eO,{value:e,shouldIncludeDay:td,timeZone:eI}):(0,x.$)(eO,e,tu&&0===t),[tm,td,tu,eO,eI]),tf=void 0===eW?-18:0,th=(eT=!!(Z||X),ee?eT?5:48:eT?32:5),tg=(0,l.useMemo)(()=>({left:th,right:5}),[th]),tv=ek??tp,tb=(0,l.useMemo)(()=>(function({labels:e,plotWidth:t,padding:i,fontSize:n,minTickGap:a}){let r=e.length;if(0===r||!Number.isFinite(t)||t<=0)return;let l=(t-i.left-i.right)/r,o=e.map((e,t)=>({coordinate:i.left+l*(t+.5),halfWidth:[...e].reduce((e,t)=>e+(U[t]??1)*n*1.07,0)/2}));for(let e=1;e<=r;e++)if(function({step:e,ticks:t,plotWidth:i,minTickGap:n}){let a=0;for(let[r,{coordinate:l,halfWidth:o}]of t.filter((t,i)=>i%e==0).entries()){let e=l-o>=a&&l+o<=i;if(r>0&&!e)return!1;a=l+o+n}return!0}({step:e,ticks:o,plotWidth:t,minTickGap:a}))return e-1;return r-1})({labels:e5.map((e,t)=>tv(String(e[I.l]),t)),plotWidth:Math.round(eX)-tf-(X?0:eW??60),padding:tg,fontSize:12,minTickGap:32}),[e5,tv,eX,tf,X,eW,tg]),ty=Math.ceil(te.length/2),tx=te.slice(0,ty),tw=te.slice(ty),tk=(0,l.useMemo)(()=>ts?null:(0,t.jsx)(f.$,{ref:eY,width:"100%",height:V,className:"relative z-10 w-full [&_svg]:outline-hidden",children:(0,t.jsxs)(u.f,{data:e5,className:"group",margin:{top:12*!X,left:tf},barSize:void 0===H?G:void 0,maxBarSize:H,onMouseMove:(t,i)=>{t?.activeLabel&&tt(e.find(e=>e.x===t.activeLabel)||null)},onTouchMove:(t,i)=>{t?.activeLabel&&tt(e.find(e=>e.x===t.activeLabel)||null)},onMouseLeave:()=>{(ep?.dismissTooltipOnLeave||eN)&&tt(null)},children:[(0,t.jsx)("defs",{children:(0,t.jsxs)("pattern",{id:"forecastStripes",patternUnits:"userSpaceOnUse",width:"6",height:"6",patternTransform:"rotate(45)",children:[(0,t.jsx)("rect",{width:"6",height:"6",className:"fill-chart-tokens-uncached"}),(0,t.jsx)("rect",{width:"3",height:"6",className:"fill-background",fillOpacity:"0.15"})]})}),(0,t.jsx)("style",{children:` @keyframes glowPulse { 0% { opacity: 0.7; } 50% { opacity: 0.9; } 100% { opacity: 0.7; } } .forecast-bar { transition: opacity 0.3s ease-in-out; opacity: 0.8; } .forecast-bar:hover { animation: glowPulse 3s ease-in-out infinite; } `}),(0,t.jsx)(g.f,{dataKey:I.l,padding:tg,fontSize:12,tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tick:void 0!==tb&&q,interval:tb,tickFormatter:tv}),(0,t.jsx)(v.f,{hide:X,width:eW,fontSize:12,orientation:ee?"right":void 0,tickLine:!1,axisLine:!1,scale:eq?"log":"auto",allowDataOverflow:eq||void 0,ticks:e8??(Q?[0,e4]:void 0),tick:K,interval:e8?"preserveEnd":0,padding:Q?{top:15}:void 0,tickFormatter:e=>Q||0!==e?eH?(0,n.I)(Math.round(e),{locale:eO,preset:"fee"})??"—":ey?.(Number(e))??(0,i.f)(e,{locale:eO,preset:"compact-rounded-thousands"})??"—":"",domain:e8?[e8[0],e8.at(-1)]:eH?[0,100]:Q&&void 0!==e4?[0,e4]:void 0,className:(0,b.f)(Z?"origin-left translate-x-4 md:translate-x-6 text-xs":""),children:Z&&(0,t.jsx)(c.Q,{value:Z,angle:-90,position:"insideLeft",offset:-10,className:(0,b.f)("fill-muted-foreground text-xs [text-anchor:middle]",Y)})}),(0,t.jsx)(h.f,{active:void 0!==ep&&!ep.dismissTooltipOnLeave&&!eN||void 0,isAnimationActive:!1,wrapperStyle:eJ,allowEscapeViewBox:e0,cursor:!eP&&e6.length>1&&D,content:e=>{if(!e.active||!e.payload||ep?.hideTooltip||W&&!e.payload.some(e=>"number"==typeof e.value&&e.value>0))return null;if(void 0!==ez&&null!==eF&&"string"==typeof e.label){let t=ez({x:e.label,seriesKey:eF});if(null!==t)return t}let i=eq?e6.find(t=>t[I.l]===e.label):void 0,n=e.payload.map(e=>{let t=i&&"string"==typeof e.dataKey?i[e.dataKey]:void 0;return"number"==typeof t?{...e,value:t}:e});return void 0===ep||eN?(0,t.jsx)(C.f,{...e,payload:n,shouldShowTime:tm,displayTimezone:eh,wrapperClassName:(0,b.f)(e.wrapperClassName,eQ),onLabel:er??ea,sortOrder:C.g.Descending,highlightedRef:ti,forecast:eu,valueFormatter:e1,...eN?{maxItems:Math.max(1,Math.floor((V-C.b)/C.U))}:{}}):(0,t.jsx)(E.f,{...e,payload:n,totalConfig:eg,chartHeight:V,isHighRes:tm,displayTimezone:eh})}}),[...e3].map(e=>(0,t.jsx)(o.e,{hide:es?es.has(e):void 0,onClick:t=>{if(en?.(e)===!1)return;et?.(e);let i=t?.payload,n=i?.[I.l];"string"==typeof n&&ei?.({x:n,seriesKey:e})},onMouseEnter:()=>tn(e),onMouseLeave:()=>ta(e),className:(0,b.f)(A.m,eP&&null!==eF?(0,I.I)(eF===e):[void 0!==eV&&(0,I.I)(eV===e),"group-hover:opacity-100 group-hover:hover:opacity-80"],(!!et||!!ei)&&en?.(e)!==!1&&"cursor-pointer"),dataKey:e,fill:(0,P.F)(e,e9),stackId:"a",isAnimationActive:em,shape:ev?function({barKey:e,topBarKeyByX:i,xLabelKey:n}){return function(r){let l=(0,a.f)(r.payload)?r.payload:void 0,o=l?.[n],s=("string"==typeof o||"number"==typeof o)&&i.get(o)===e;return(0,t.jsx)(d.f,{...r,radius:s?$:0})}}({barKey:e,topBarKeyByX:to,xLabelKey:I.l}):void 0,children:void 0!==eC&&e5.map(i=>{let n=String(i[I.l]);return(0,t.jsx)(s.f,{fill:eC({x:n,seriesKey:e})??(0,P.F)(e,e9),stroke:"var(--color-card)",strokeWidth:1},n)})},e)),eu&&(0,t.jsx)(o.e,{hide:!1,className:"forecast-bar",dataKey:eu,fill:"url(#forecastStripes)",stackId:"a",isAnimationActive:em},tc),ew&&(0,t.jsx)(p.f,{y:ew.y,stroke:"currentColor",strokeDasharray:"3 3",className:"text-muted-foreground",ifOverflow:"extendDomain"}),ex&&(0,t.jsx)(m.f,{x1:ex.x1,x2:ex.x2,fill:"currentColor",fillOpacity:.12,stroke:"none",ifOverflow:"visible"})]})}),[eO,e3,G,H,W,e9,M,eY,ev,to,td,tu,e,eh,eu,tc,x.$,x.M,I.I,tt,tn,ta,ts,V,es,eV,ti,em,tm,eH,en,et,ei,ea,er,I.l,e6,e5,tf,tg,tb,tp,ep,e1,Z,Y,X,eW,ey,Q,ee,e4,ex,ew,ek,eg,eq,e8,e0,eQ,eJ,eN,ez,eC,eF,eP,eI]),t_=eA||eS?(0,t.jsxs)("div",{className:"flex items-center gap-2 self-end",children:[eS,eA&&(0,t.jsxs)(S.c,{"aria-label":eE("Y-axis scale"),size:"sm",value:eq?"log":"linear",onValueChange:e=>{eK("log"===e)},children:[(0,t.jsx)(S.Y,{value:"linear",children:eE("Linear")}),(0,t.jsx)(S.Y,{value:"log",children:eE("Log")})]})]}):null;if(ts)return t_?(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[t_,(0,t.jsx)(T.f,{height:V})]}):(0,t.jsx)(T.f,{height:V});let tj=t_?(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[t_,tk]}):tk;if(void 0===ep)return ef?(0,t.jsx)("div",{"data-testid":ef,className:"contents",children:tj}):tj;let tA=e2||ep?.forceSingleColumn,tS=!!el,tM=(0,b.f)("grid grid-cols-1 md:grid-cols-2 gap-5",tS?"md:gap-20":"md:gap-16"),tN=te.length>0&&(0,t.jsxs)("div",{className:(0,b.f)("flex flex-col gap-5",e2?"w-64 shrink-0 pb-8":!ep?.forceSingleColumn&&!tS&&"px-2 md:px-16"),children:[(0,t.jsx)("div",{className:(0,b.f)(tA?"flex flex-col gap-3":tM),children:tA?te.map((e,i)=>(0,t.jsx)(z.f,{data:e,index:i,offset:1,onLabel:ea,onIcon:el,isHighlighted:void 0===eB?void 0:eB===e.name,onMouseEnter:()=>tr(e.name),onMouseLeave:tl,isRanking:ep?.isRanking??!0,showPercentage:ep?.showPercentage??!0,valueFormatter:ep?.valueFormatter},e.name)):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"flex flex-col gap-y-5",children:tx.map((e,i)=>(0,t.jsx)(z.f,{data:e,index:i,offset:1,onLabel:ea,onIcon:el,isHighlighted:void 0===eB?void 0:eB===e.name,onMouseEnter:()=>tr(e.name),onMouseLeave:tl,isRanking:ep?.isRanking??!0,showPercentage:ep?.showPercentage??!0,valueFormatter:ep?.valueFormatter},e.name))}),(0,t.jsx)("div",{className:"flex flex-col gap-y-5",children:tw.map((e,i)=>(0,t.jsx)(z.f,{data:e,index:i,offset:ty+1,onLabel:ea,onIcon:el,isHighlighted:void 0===eB?void 0:eB===e.name,onMouseEnter:()=>tr(e.name),onMouseLeave:tl,isRanking:ep?.isRanking??!0,showPercentage:ep?.showPercentage??!0,valueFormatter:ep?.valueFormatter},e.name))})]})}),ep?.description&&(0,t.jsx)("p",{className:"text-muted-foreground text-sm pt-3",children:ep.description})]});return(0,t.jsxs)("div",{"data-testid":ef,className:(0,b.f)("relative",e2?"flex flex-row gap-6 items-center":"flex flex-col gap-10"),children:[(0,t.jsx)("div",{className:e2?"flex-1 min-w-0":void 0,children:tj}),tN]})},"TEST_formatDefaultTooltipValue",0,B],695880)},860674,82224,e=>{"use strict";var t=e.i(659350),i=e.i(261019),n=e.i(136562);e.s(["f",0,function(e){return({payload:a,index:r,tickFormatter:l,...o})=>(0,t.jsx)(i.f,{...o,className:(0,n.f)("recharts-cartesian-axis-tick-value",e),width:void 0,children:String(l?l(a.value,r):a.value)})}],860674);var a=e.i(663456),r=e.i(16043),l=e.i(336810);e.s(["f",0,function(e){let t,i,n,o,s,c,u,d,m=(0,a.c)(18),{enabled:p,hasBlockingLegend:f}=e,h=void 0!==f&&f;m[0]===Symbol.for("react.memo_cache_sentinel")?(t={containerWidth:0,spaceOnRight:0},m[0]=t):t=m[0];let[g,v]=(0,r.useState)(t),b=(0,r.useRef)(null),y=(0,r.useRef)(null);m[1]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{if(y.current=e,!e){let e=b.current;e&&queueMicrotask(()=>{b.current===e&&null===y.current&&(e.disconnect(),b.current=null)});return}if(b.current?.element!==e){var t;let i,n;b.current?.disconnect(),b.current={element:e,disconnect:(t=e=>{v(t=>t.containerWidth===e.containerWidth&&t.spaceOnRight===e.spaceOnRight?t:e)},i=()=>{let i=e.getBoundingClientRect();t({containerWidth:i.width,spaceOnRight:window.innerWidth-i.right})},(n="u"{n?.disconnect(),window.removeEventListener("resize",i)})}}},m[1]=i):i=m[1];let x=i;m[2]===Symbol.for("react.memo_cache_sentinel")?(n=()=>()=>{b.current?.disconnect(),b.current=null},o=[],m[2]=n,m[3]=o):(n=m[2],o=m[3]),(0,r.useEffect)(n,o),m[4]!==p||m[5]!==h||m[6]!==g?(s=function({enabled:e,spaceOnRight:t,containerWidth:i,hasBlockingLegend:n=!1}){return e&&!n&&i>0&&t>=24+l.U+8}({enabled:p,hasBlockingLegend:h,...g}),m[4]=p,m[5]=h,m[6]=g,m[7]=s):s=m[7];let w=s;m[8]!==g.containerWidth||m[9]!==w?(c=function({containerWidth:e,shouldUseRightPlacement:t}){return t?{zIndex:10,position:"absolute",left:e+24,top:16,width:"max-content",transform:"none",transition:"none"}:{zIndex:10}}({containerWidth:g.containerWidth,shouldUseRightPlacement:w}),m[8]=g.containerWidth,m[9]=w,m[10]=c):c=m[10];let k=c,_=w?"absolute left-0 top-0":void 0;m[11]!==w?(u={x:w,y:w},m[11]=w,m[12]=u):u=m[12];let j=u;return m[13]!==g.containerWidth||m[14]!==j||m[15]!==_||m[16]!==k?(d={containerRef:x,containerWidth:g.containerWidth,tooltipWrapperStyle:k,tooltipContentClassName:_,tooltipAllowEscapeViewBox:j},m[13]=g.containerWidth,m[14]=j,m[15]=_,m[16]=k,m[17]=d):d=m[17],d}],82224)},707951,e=>{"use strict";var t=e.i(336810);e.s(["Y",0,function(e,i=t.N){let n=e.filter(e=>"Others"!==e).sort(),a=new Map;return n.forEach((e,n)=>{a.set(e,i[n%i.length]??t.F.Slate400)}),e.includes("Others")&&a.set("Others",t.F.Slate400),a},"F",0,function(e,i,n=t.F.Slate400){return i.get(e)??n}])},592176,e=>{"use strict";var t=e.i(663456),i=e.i(927099),n=e.i(618115),a=e.i(56222);e.i(16043);var r=e.i(702596),l=e.i(505884);let o={Eligible:"eligible",Partial:"partial",Ineligible:"ineligible",Unknown:"unknown"},s={Eligible:"eligible",Ineligible:"ineligible",Unknown:"unknown"};e.s(["J",0,o,"P",0,s,"R",0,function(e,c,u){let d,m,p,f,h,g,v,b,y,x,w,k,_,j,A=(0,t.c)(52),S=u?.includeGuardrails??!0,M=u?.guardrailLayer,N=u?.editedPolicyId,z=c??null,C=(0,a.d)();A[0]!==N||A[1]!==e||A[2]!==M||A[3]!==S||A[4]!==z?(d=(0,l.Y)({entityId:e,includeGuardrails:!0,isEnabled:S,workspaceId:z,guardrailLayer:M,editedPolicyId:N}),A[0]=N,A[1]=e,A[2]=M,A[3]=S,A[4]=z,A[5]=d):d=A[5];let P=(0,n.f)(d),T=!S||P.isError;A[6]!==e||A[7]!==T?(m=(0,l.Y)({entityId:e,includeGuardrails:!1,isEnabled:T,workspaceId:null}),A[6]=e,A[7]=T,A[8]=m):m=A[8];let I=(0,n.f)(m),E=S?P.data??I.data:I.data,O=S?P.data?.eligibility:I.data?.eligibility;e:{let e;if(!O){p=null;break e}if(A[9]!==O){e=new Map;let{models:t}=O;for(let i of t.fullyEligible)e.set(i.permaslug,o.Eligible);for(let i of t.partiallyEligible)e.set(i.permaslug,o.Partial);for(let i of t.ineligible)e.set(i.permaslug,o.Ineligible);A[9]=O,A[10]=e}else e=A[10];p=e}let R=p;A[11]!==R?(f=e=>R?.get(e)??o.Unknown,A[11]=R,A[12]=f):f=A[12];let L=f;A[13]!==L?(h=e=>{let t=L(e);return t===o.Eligible||t===o.Partial},A[13]=L,A[14]=h):h=A[14];let F=h;t:{let e;if(!O){g=null;break t}if(A[15]!==O.models.ineligible){for(let t of(e=new Map,O.models.ineligible))e.set(t.permaslug,t.reasons??[]);A[15]=O.models.ineligible,A[16]=e}else e=A[16];g=e}let D=g;A[17]!==D?(v=e=>D?.get(e)??[],A[17]=D,A[18]=v):v=A[18];let U=v;A[19]!==O?(b=e=>{if(!O)return s.Unknown;let{providers:t}=O;return t.eligible.includes(e)?s.Eligible:t.ineligible.some(t=>t.slug===e)?s.Ineligible:s.Unknown},A[19]=O,A[20]=b):b=A[20];let $=b;A[21]!==O?(y=e=>{if(!O)return[];let{providers:t}=O,i=t.ineligible.find(t=>t.slug===e);return i?.reasons??[]},A[21]=O,A[22]=y):y=A[22];let q=y;A[23]!==O?(x=(e,t)=>{if(!O)return[];let n=O.models.partiallyEligible.find(t=>t.permaslug===e)??O.models.ineligible.find(t=>t.permaslug===e);if(!n)return[];let a=(0,i.u)(t);return n.ineligibleProviders.find(e=>e.slug===a)?.reasons??[]},A[23]=O,A[24]=x):x=A[24];let K=x;A[25]!==N||A[26]!==e||A[27]!==M||A[28]!==S||A[29]!==z||A[30]!==C?(w=()=>{let t=[C.resetQueries({exact:!0,queryKey:l.g.detail(e,{includeGuardrails:!1,workspaceId:null})})];return S&&t.push(C.resetQueries({exact:!0,queryKey:l.g.detail(e,{includeGuardrails:!0,workspaceId:z,guardrailLayer:M,editedPolicyId:N})})),Promise.all(t)},A[25]=N,A[26]=e,A[27]=M,A[28]=S,A[29]=z,A[30]=C,A[31]=w):w=A[31];let B=w;A[32]!==E?(k=void 0===E?null:{allowedProviders:E.allowedProviders,ignoredProviders:E.ignoredProviders,allowedModelAuthors:E.allowedModelAuthors,blockedModelAuthors:E.blockedModelAuthors},A[32]=E,A[33]=k):k=A[33];let V=k,G=I.isLoading||S&&P.isLoading;A[34]!==I.error||A[35]!==P||A[36]!==S?(_=(0,r.i)(I.error)??(S?(0,r.i)(P.error):null),A[34]=I.error,A[35]=P,A[36]=S,A[37]=_):_=A[37];let H=_,W=O??null,Z=S?P.data?.byokOnlyProviders??null:null,Y=S?P.data?.disabledServiceTiers??null:null;return A[38]!==Z||A[39]!==Y||A[40]!==W||A[41]!==K||A[42]!==L||A[43]!==U||A[44]!==$||A[45]!==q||A[46]!==F||A[47]!==V||A[48]!==H||A[49]!==G||A[50]!==B?(j={providerPreferences:V,providerPreferencesLoading:G,providerPreferencesError:H,refetchProviderPreferences:B,eligibility:W,byokOnlyProviders:Z,disabledServiceTiers:Y,getModelEligibilityStatus:L,isModelEligible:F,getModelIneligibilityReasons:U,getProviderEligibilityStatus:$,getProviderIneligibilityReasons:q,getEndpointIneligibilityReasons:K},A[38]=Z,A[39]=Y,A[40]=W,A[41]=K,A[42]=L,A[43]=U,A[44]=$,A[45]=q,A[46]=F,A[47]=V,A[48]=H,A[49]=G,A[50]=B,A[51]=j):j=A[51],j}],592176)},845893,e=>{"use strict";var t=e.i(387086),i=e.i(289947);e.s(["f",0,function(e,n){let a=(0,i.T)(e,n.label);return n.repeat>1?e((0,t.b)("{label} {repeat}",{label:a,repeat:n.repeat})):a}])},67284,e=>{"use strict";e.s(["f",0,"/provider/_dashboard"])},505884,e=>{"use strict";var t=e.i(173465),i=e.i(613497),n=e.i(819750);let a=(0,e.i(524287).f)("provider-preferences",{detail:(e,t)=>void 0===t?[e]:[e,t]}),r={all:a.all,prefix:a.prefix,detailPrefix:e=>a.detail(e),detail:(e,{guardrailLayer:t,editedPolicyId:i,...n})=>a.detail(e,{...n,...void 0===t?{}:{guardrailLayer:t},...void 0===i?{}:{editedPolicyId:i}})};e.s(["g",0,r,"Y",0,function({entityId:e,includeGuardrails:a,isEnabled:l=!0,workspaceId:o,guardrailLayer:s,editedPolicyId:c}){return(0,t.f)({enabled:l,queryKey:r.detail(e,{includeGuardrails:a,workspaceId:o,guardrailLayer:s,editedPolicyId:c}),queryFn:null!==e?({signal:e})=>(0,n.f)("/api/frontend/v1/private/provider-preferences",{searchParams:a?{include_guardrails:"true",includeGuardrails:"true",workspace_id:o??void 0,guardrail_layer:s,edited_policy_id:c}:void 0,signal:e}):i.V})}])},514590,e=>{"use strict";var t=e.i(80864),i=e.i(647204),n=e.i(882844),a=e.i(67089),r=e.i(390129);let l=[`sk-or-v1-${"a".repeat(64)}`,`ghp_${"A".repeat(36)}`,"-----BEGIN RSA PRIVATE KEY-----\nAAAA\n-----END RSA PRIVATE KEY-----"],o="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}",s={email:{patterns:[{pattern:o}],label:"Email address",description:"Matches standard email addresses (e.g. user@example.com).",examples:["user@example.com","name+tag@domain.co"]},phone:{patterns:[{pattern:"\\b\\d{3}[-.\\s]?\\d{3}[-.\\s]?\\d{4}\\b"}],label:"Phone number",description:"Matches 10-digit US-style phone numbers with optional separators (dashes, dots, or spaces).",examples:["9143094996","914-309-4996","914.309.4996"]},ssn:{patterns:[{pattern:"\\b\\d{3}-\\d{2}-\\d{4}\\b"}],label:"Social Security number",description:"Matches US Social Security numbers in XXX-XX-XXXX format.",examples:["123-45-6789"]},"credit-card":{patterns:[{pattern:"\\b(?:\\d{4} \\d{4} \\d{4} \\d{4}|\\d{4}-\\d{4}-\\d{4}-\\d{4})\\b"}],label:"Credit card number",description:"Matches 16-digit card numbers separated by spaces or dashes (4 groups of 4 digits).",examples:["4265 5256 0839 8752","4265-5256-0839-8752"]},"ip-address":{patterns:[{pattern:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\b"}],label:"IP address",description:"Matches IPv4 addresses in dotted-quad notation.",examples:["192.168.0.1","10.0.0.1"]},secrets:{patterns:[{id:"aws-access-key-id",pattern:"\\b(?:AKIA|ASIA|ABIA|ACCA|A3T[A-Z0-9])[A-Z0-9]{16}\\b"},{id:"github-token",pattern:"\\bgh[pousr]_[A-Za-z0-9]{36,}"},{id:"github-fine-grained-pat",pattern:"\\bgithub_pat_[A-Za-z0-9_]{82,}"},{id:"gitlab-personal-access-token",pattern:"\\bglpat-[A-Za-z0-9_-]{20,}"},{id:"openai-api-key",pattern:"\\bsk-(?:proj|svcacct|admin)-[A-Za-z0-9_-]{20,200}T3BlbkFJ[A-Za-z0-9_-]{20,}"},{id:"openai-legacy-api-key",pattern:"\\bsk-[A-Za-z0-9]{20}T3BlbkFJ[A-Za-z0-9]{20,}"},{id:"anthropic-api-key",pattern:"\\bsk-ant-(?:api03|admin01)-[A-Za-z0-9_-]{93,}AA"},{id:"openrouter-api-key",pattern:"\\bsk-or-v1-[0-9a-f]{64}\\b"},{id:"google-api-key",pattern:"\\bAIza[A-Za-z0-9_-]{35,}"},{id:"google-oauth-client-secret",pattern:"\\bGOCSPX-[A-Za-z0-9_-]{28,}"},{id:"stripe-secret-key",pattern:"\\b(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{20,}"},{id:"slack-token",pattern:"\\bxox[bpos]-[0-9]{6,}-[A-Za-z0-9-]{10,}"},{id:"slack-legacy-workspace-token",pattern:"\\bxox[ar]-(?:[0-9]-)?[0-9a-zA-Z]{8,}"},{id:"slack-app-token",pattern:"\\bxapp-[0-9]-[A-Z0-9]+-[0-9]+-[a-f0-9]{16,}"},{id:"slack-webhook-url",pattern:"https://hooks\\.slack\\.com/(?:services|workflows|triggers)/[A-Za-z0-9+/]{40,}"},{id:"npm-access-token",pattern:"\\bnpm_[A-Za-z0-9]{36,}"},{id:"sendgrid-api-key",pattern:"\\bSG\\.[A-Za-z0-9_-]{20,}\\.[A-Za-z0-9_-]{40,}"},{id:"huggingface-access-token",pattern:"\\bhf_[A-Za-z0-9]{34,}"},{id:"databricks-api-token",pattern:"\\bdapi[0-9a-f]{32}(?:-[0-9])?\\b"},{id:"atlassian-api-token",pattern:"\\bATATT3[A-Za-z0-9_=-]{100,}"},{id:"doppler-token",pattern:"\\bdp\\.(?:pt|st|ct|sa|scim|audit)\\.[A-Za-z0-9]{40,}"},{id:"linear-api-key",pattern:"\\blin_api_[A-Za-z0-9]{40,}"},{id:"shopify-access-token",pattern:"\\bshp(?:at|ca|pa|ss)_[0-9a-fA-F]{32}\\b"},{id:"telegram-bot-token",pattern:"\\b[0-9]{8,10}:AA[A-Za-z0-9_-]{32,}"},{id:"age-secret-key",pattern:"\\bAGE-SECRET-KEY-1[0-9A-Z]{58}\\b"},{id:"json-web-token",pattern:"\\beyJ[A-Za-z0-9_-]{10,}\\.eyJ[A-Za-z0-9_-]{10,}\\.[A-Za-z0-9_-]{10,}"},{id:"bitcoin-wif-uncompressed",pattern:"\\b5[HJK][1-9A-HJ-NP-Za-km-z]{49}\\b"},{id:"bitcoin-wif-compressed",pattern:"\\b[KL][1-9A-HJ-NP-Za-km-z]{51}\\b"},{id:"bitcoin-extended-private-key",pattern:"\\b[xyzYZtuvUV]prv[1-9A-HJ-NP-Za-km-z]{107}\\b"},{id:"ethereum-private-key",pattern:"\\b0x[0-9a-fA-F]{64}\\b"},{id:"private-key-block",pattern:"-----BEGIN [A-Z ]{0,20}PRIVATE KEY(?: BLOCK)?-----\\s(?:-{0,4}[^-]){0,32768}?-----END [A-Z ]{0,20}PRIVATE KEY(?: BLOCK)?-----"},{id:"pypi-upload-token",pattern:"\\bpypi-AgEIcHlwaS5vcmc[A-Za-z0-9_-]{50,}"},{id:"digitalocean-token",pattern:"\\bdo[oprs]_v1_[a-f0-9]{64}\\b"}].map(({id:e,pattern:t})=>({pattern:t,detail:e})),label:"API keys and secrets",description:"Matches well-known provider-prefixed API keys and secret formats curated for low false-positive rates.",examples:l,docsUrl:"https://openrouter.ai/docs/guides/features/guardrails/secret-formats"}},c={"person-name":"PERSON",address:"LOCATION"},u=new Set(["regex-prompt-injection"]);e.s(["y",0,o,"C",0,function(e){return e.flatMap(e=>{if(u.has(e.slug)||c[e.slug])return[];let t=s[e.slug];if(!t)return[];let i=(0,r.o)(e.slug),n=e.label??i,a=n===i;return t.patterns.map(({pattern:t,detail:l})=>({pattern:t,action:e.action,label:a&&l?(0,r.R)(i,l):n}))})},"S",0,function(e){return e.flatMap(e=>{let i=c[e.slug];return i?[{entity_type:i,action:function(e){switch(e){case r.x.Block:return t.F.Block;case r.x.Flag:return t.F.Flag;case r.x.Redact:default:return t.F.Redact}}(e.action),score_threshold:.4}]:[]})},"_",0,function(e){let t=s[e];if(t)return{description:t.description,examples:t.examples,patterns:t.patterns.map(({pattern:e})=>e),...t.docsUrl?{docsUrl:t.docsUrl}:{}}},"l",0,function(e){let t=e.find(e=>"regex-prompt-injection"===e.slug);return!!t&&t.action},"g",0,function(e){let t=e.find(e=>"regex-prompt-injection"===e.slug);return t?.scan_scope??r.O.AllMessages},"m",0,function(e){return null==e?[]:Array.isArray(e)?e.map((e,t)=>{let l=(0,n.C)(r.g,e);return(0,i.C)(l)?l.data:((0,a.L)("parse_content_filter_builtins_invalid_entry",{index:t,error:l.error}),null)}).filter(e=>null!==e).map(e=>({...e,label:e.label??(0,r.o)(e.slug)})):((0,a.L)("parse_content_filter_builtins_invalid",{reason:"not_array"}),[])},"L",0,function(e){return null==e?[]:Array.isArray(e)?e.map((e,t)=>{let l=(0,n.C)(r.h,e);return(0,i.C)(l)?l.data:((0,a.L)("parse_content_filters_invalid_entry",{index:t}),null)}).filter(e=>null!==e):((0,a.L)("parse_content_filters_invalid",{reason:"not_array"}),[])}],514590)},747045,e=>{"use strict";e.s(["f",0,function(e,t){return e===t?0:e{"use strict";let t=new class{incr(e,t,i){}distribution(e,t,i){}histogram(e,t,i){}gauge(e,t,i){}},i=Symbol.for("openrouter.statsd");Symbol.for("openrouter.statsd.configured"),e.s(["f",0,function(){let e=globalThis[i];return e&&"object"==typeof e?e:t}],730765);var n,a,r=e.i(292429),l=e.i(831025),o=e.i(348752).f.getInstance();(n=a||(a={}))[n.INTERNAL=0]="INTERNAL",n[n.SERVER=1]="SERVER",n[n.CLIENT=2]="CLIENT",n[n.PRODUCER=3]="PRODUCER",n[n.CONSUMER=4]="CONSUMER";var s=e.i(871582),c=e.i(495644),u=e.i(116398),d=e.i(390515),m=e.i(541468);let p=null;function f(e,t,i){if("object"==typeof t&&null!==t&&"__kind"in t&&"string"==typeof t.__kind)switch(t.__kind){case"OK":return e.setStatus({code:s.f.OK}),!0;case"ERR":{let n="error"in t?t.error:void 0;if(!("function"==typeof i?i():i)){let t=(e.spanContext().traceFlags&c.f.SAMPLED)!=0;(0,d.M)(e,n,{captureStack:t})}return!0}}return!1}a.CLIENT,a.CLIENT,a.CLIENT,a.CLIENT,a.CLIENT;e.s(["f",0,function(e,t,i){let{tracer:n=(!p&&(p=u.f.getTracer("@openrouter-monorepo")),p),suppressResultErrorStatus:a=!1,...l}=i??{},c=n.startSpan(e,l);try{let e=u.f.setSpan(o.active(),c),i=o.with(e,()=>t(c));if(!(0,r.f)(i))return(0,m.f)(()=>{f(c,i,a)||c.setStatus({code:s.f.OK}),c.end()}),i;return Promise.resolve(i).then(e=>((0,m.f)(()=>{f(c,e,a)||c.setStatus({code:s.f.OK}),c.end()}),e),e=>{throw(0,d.y)(e,{isCauseKnown:!1,span:c,setSpanStatus:!0}),(0,m.f)(()=>{c.end()}),e})}catch(e){throw(0,d.y)(e,{isCauseKnown:!1,span:c,setSpanStatus:!0}),(0,m.f)(()=>{c.end()}),e}}],993914)},562576,e=>{"use strict";var t=e.i(430022);let i=["3d","1w","1m","3m","1y","all"],n={"3d":3*t.N,"1w":t.b,"1m":31*t.N,"3m":92*t.N,"1y":366*t.N,all:null};e.s(["b",0,i,"S",0,"v8","e",0,n,"Q",0,function(e){return i.some(t=>t===e)}])},27861,e=>{"use strict";var t=e.i(882844),i=e.i(635157);let n=i.z.union([i.z.number(),i.z.string().regex(/^-?\d+(\.\d+)?([eE][-+]?\d+)?$/).transform(Number)]).pipe(i.z.number().int());i.z.union([i.z.boolean(),n.pipe(i.z.number().min(0).max(1)).transform(e=>1===e)]);let a=i.z.object({meta:i.z.array(i.z.object({name:i.z.string(),type:i.z.string()})),rows:(0,t.D)(),statistics:i.z.object({elapsed:(0,t.$)(),rows_read:(0,t.D)(),bytes_read:(0,t.D)()})});e.s(["f",0,a])},648888,e=>{"use strict";e.s(["f",0,function(e){return e.slug?`/apps/${e.slug}`:`/apps/url/${encodeURIComponent(e.origin_url)}`}])},390129,874757,377148,e=>{"use strict";var t=e.i(427150),i=e.i(882844),n=e.i(635157),a=e.i(691880),r=e.i(108379),l=e.i(429497);e.s(["O",0,1e5,"R",0,1e3,"o",0,200,"u",0,1e4],874757);let o={Workspace:"workspace",Member:"member",ApiKey:"api_key",Model:"model"},s=n.z.array(n.z.string().trim().min(1).max(255).refine(e=>!e.includes("*"),"A rate limit lists exact model slugs; wildcards such as `openai/*` are not supported")).min(1).refine(e=>new Set(e).size===e.length,{message:"A rate limit cannot list the same model twice"}),c=n.z.strictObject({unit:n.z.enum({Tokens:"tokens",Requests:"requests"}),limit:n.z.number().int().min(1),models:n.z.union([n.z.literal("all"),s])}),u=n.z.array(n.z.enum(o)).min(1).refine(function(e){return new Set(e).size===e.length&&e.at(-1)===o.Model&&(e.includes(o.Member)||e.includes(o.ApiKey))},{message:"bucket_by must list distinct dimensions, include member or api_key, and end with model"}),d=n.z.strictObject({bucket_by:u,limits:n.z.array(c).min(1).max(200).refine(e=>200>=e.reduce((e,{models:t})=>e+("all"===t?0:t.length),0),{message:'A rate limit policy can list at most 200 models; use "all" to cover every model'})});e.s(["A",0,"all","n",0,200,"R",0,d],377148);let m={Daily:"daily",Weekly:"weekly",Monthly:"monthly"},p={Block:"block",Flag:"flag"},f=n.z.enum([p.Block,p.Flag]),h=n.z.enum([m.Daily,m.Weekly,m.Monthly]).nullish(),g=n.z.enum(a.P),v={Redact:"redact",Block:"block",Flag:"flag"},b=["email","phone","ssn","credit-card","ip-address","secrets","person-name","address","regex-prompt-injection"],y=n.z.enum(b),x=["person-name","address"],w=new Set(x),k=new Set(["email","phone","ssn","credit-card","ip-address","secrets","person-name","address","regex-prompt-injection"]),_={email:"Email address",phone:"Phone number",ssn:"Social Security number","credit-card":"Credit card number","ip-address":"IP address",secrets:"API keys and secrets","person-name":"Person name",address:"Address","regex-prompt-injection":"Prompt injection detection (regex-based)"},j={email:"[EMAIL]",phone:"[PHONE]",ssn:"[SSN]","credit-card":"[CREDIT_CARD]","ip-address":"[IP_ADDRESS]",secrets:"[SECRET]","person-name":"[PERSON_NAME]",address:"[ADDRESS]","regex-prompt-injection":"[PROMPT_INJECTION]"},A=b.map(e=>({slug:e,label:_[e]})),S=new Set(Object.values(j)),M=n.z.string().min(1).max(200).refine(e=>e.trim().length>0,{message:"Name must not be empty or whitespace-only"}),N=n.z.object({pattern:n.z.string().min(1).max(1e5),action:n.z.enum([v.Redact,v.Block,v.Flag]),label:n.z.string().max(100).nullish()}),z={UserOnly:"user_only",AllMessages:"all_messages"},C=n.z.object({slug:y,action:n.z.enum([v.Redact,v.Block,v.Flag]),label:n.z.string().max(100).optional(),scan_scope:n.z.enum([z.UserOnly,z.AllMessages]).optional()}),P=l.m,T=n.z.object({description:n.z.string().max(1e3).nullish(),limit_usd:(0,i.$)().gt(0).nullish(),reset_interval:h,include_byok_in_budgets:n.z.boolean().optional(),enforce_zdr:n.z.boolean().nullish(),enforce_zdr_anthropic:n.z.boolean().nullish(),enforce_zdr_openai:n.z.boolean().nullish(),enforce_zdr_google:n.z.boolean().nullish(),allow_safety_retention_google:n.z.boolean().nullish(),allow_safety_retention_other:n.z.boolean().nullish(),enforce_first_party_harness_models:n.z.boolean().nullish(),enforce_zdr_xai:n.z.boolean().nullish(),enforce_zdr_other:n.z.boolean().nullish(),allowed_data_regions:n.z.array(g).min(1).nullish(),require_eu_data_region:n.z.boolean().nullish(),enable_free_model_publication:n.z.boolean().nullish(),enable_free_model_training:n.z.boolean().nullish(),enable_paid_model_training:n.z.boolean().nullish(),ignored_providers:n.z.array(n.z.string()).min(1).nullish(),allowed_providers:n.z.array(n.z.string()).min(1).nullish(),allowed_models:n.z.array(n.z.string()).min(1).nullish(),ignored_models:n.z.array(n.z.string()).min(1).nullish(),content_filter_builtins:n.z.array(C).nullish(),content_filters:n.z.array(N).nullish(),enable_model_armor_injection_protection:n.z.boolean().nullish(),model_armor_injection_protection_mode:n.z.enum([p.Block,p.Flag]).nullish(),model_armor_injection_confidence_level:r.e.optional(),lakera_injection_protection_mode:n.z.enum([p.Block,p.Flag]).nullish(),armor:P.nullish(),rate_limit:d.nullish()});function I(e,i){let n,a,r=(n=(0,t.f)(e.limit_usd),a=(0,t.f)(e.reset_interval),n&&!a?"missing_interval":!n&&a?"missing_limit":null);"missing_interval"===r&&i.addIssue({code:"custom",message:"Reset interval is required when setting a budget limit",path:["reset_interval"]}),"missing_limit"===r&&i.addIssue({code:"custom",message:"Budget limit is required when setting a reset interval",path:["limit_usd"]})}let E=T.extend({id:n.z.uuid(),entity_id:n.z.string().min(1),name:n.z.string(),created_at:n.z.string(),updated_at:n.z.string().nullish(),workspace_id:n.z.string().nullable(),include_byok_in_budgets:n.z.boolean()}).superRefine(I);e.s(["a",0,P,"f",0,A,"Z",0,j,"x",0,v,"g",0,C,"h",0,N,"n",0,g,"M",0,T,"T",0,E,"i",0,p,"N",0,f,"r",0,M,"X",0,x,"O",0,z,"v",0,m,"c",0,h,"R",0,function(e,t){return`${e.slice(0,-1)}:${t}]`},"o",0,function(e){return j[e]},"w",0,function(e){return w.has(e)},"p",0,I,"L",0,function(e,i){let n=e.content_filter_builtins;(0,t.f)(n)&&n.forEach((e,t)=>{var n;e.action!==v.Flag||(n=e.slug,k.has(n))||i.addIssue({code:"custom",message:`The "flag" action is not supported for the "${e.slug}" builtin. Use "block" or "redact" instead.`,path:["content_filter_builtins",t,"action"]})})},"j",0,function(e){if(!e)return;if(S.has(e))return e;if(!e.startsWith("[")||!e.endsWith("]"))return;let t=e.indexOf(":");if(-1===t)return;let i=`${e.slice(0,t)}]`;return S.has(i)?i:void 0}],390129)},147832,e=>{"use strict";var t,i=((t={}).ProviderNotAllowedByGuardrail="provider-not-allowed-by-guardrail",t.ProviderNotAllowedByAccount="provider-not-allowed-by-account",t.ProviderIgnoredByAccount="provider-ignored-by-account",t.ProviderIgnoredByGuardrail="provider-ignored-by-guardrail",t.ModelIgnoredByGuardrail="model-ignored-by-guardrail",t.ModelAuthorNotAllowedByAccount="model-author-not-allowed-by-account",t.ModelAuthorBlockedByAccount="model-author-blocked-by-account",t.DataRegionNotAllowedByGuardrail="data-region-not-allowed-by-guardrail",t.ZdrViolationByAccount="zdr-violation-by-account",t.ZdrViolationByGuardrail="zdr-violation-by-guardrail",t.FreeModelTrainingViolationByAccount="free-model-training-violation-by-account",t.FreeModelTrainingViolationByGuardrail="free-model-training-violation-by-guardrail",t.PaidModelTrainingViolationByAccount="paid-model-training-violation-by-account",t.PaidModelTrainingViolationByGuardrail="paid-model-training-violation-by-guardrail",t.FreeModelPublicationViolationByAccount="free-model-publication-violation-by-account",t.FreeModelPublicationViolationByGuardrail="free-model-publication-violation-by-guardrail",t.ProviderRequiresWorkspaceKey="provider-requires-workspace-key",t.ByokOnlyRequiresOwnKey="byok-only-requires-own-key",t.ServiceTierDisabledByWorkspace="service-tier-disabled-by-workspace",t);let n={PrivacySettings:"privacy-settings",GuardrailSettings:"guardrail-settings",ByokSettings:"byok-settings",RoutingSettings:"routing-settings"},a={"provider-not-allowed-by-guardrail":n.GuardrailSettings,"provider-not-allowed-by-account":n.PrivacySettings,"provider-ignored-by-account":n.PrivacySettings,"provider-ignored-by-guardrail":n.GuardrailSettings,"model-ignored-by-guardrail":n.GuardrailSettings,"model-author-not-allowed-by-account":n.PrivacySettings,"model-author-blocked-by-account":n.PrivacySettings,"data-region-not-allowed-by-guardrail":n.GuardrailSettings,"zdr-violation-by-account":n.PrivacySettings,"zdr-violation-by-guardrail":n.GuardrailSettings,"free-model-training-violation-by-account":n.PrivacySettings,"free-model-training-violation-by-guardrail":n.GuardrailSettings,"paid-model-training-violation-by-account":n.PrivacySettings,"paid-model-training-violation-by-guardrail":n.GuardrailSettings,"free-model-publication-violation-by-account":n.PrivacySettings,"free-model-publication-violation-by-guardrail":n.GuardrailSettings,"provider-requires-workspace-key":n.ByokSettings,"byok-only-requires-own-key":n.ByokSettings,"service-tier-disabled-by-workspace":n.RoutingSettings};e.s(["l",0,a,"N",0,{"provider-not-allowed-by-guardrail":"Provider not allowed by guardrail","provider-not-allowed-by-account":"Provider not allowed by account","provider-ignored-by-account":"Provider ignored by account","provider-ignored-by-guardrail":"Provider blocked by guardrail","model-ignored-by-guardrail":"Model blocked by guardrail","model-author-not-allowed-by-account":"Model author not allowed by account","model-author-blocked-by-account":"Model author blocked by account","data-region-not-allowed-by-guardrail":"Provider region outside the data regions allowed by guardrail","zdr-violation-by-account":"ZDR violation (account settings)","zdr-violation-by-guardrail":"ZDR violation (guardrail)","free-model-training-violation-by-account":"Free model training violation (account settings)","free-model-training-violation-by-guardrail":"Free model training violation (guardrail)","paid-model-training-violation-by-account":"Paid model training violation (account settings)","paid-model-training-violation-by-guardrail":"Paid model training violation (guardrail)","free-model-publication-violation-by-account":"Free model publication violation (account settings)","free-model-publication-violation-by-guardrail":"Free model publication violation (guardrail)","provider-requires-workspace-key":"Your workspace's key for this provider never uses shared capacity and doesn't apply to this model","byok-only-requires-own-key":"BYOK-only routing is on and none of your provider keys can serve this model","service-tier-disabled-by-workspace":"Service tier not allowed by your workspace's Allowed Service Tiers setting"},"m",()=>i,"M",0,n])},108379,e=>{"use strict";e.i(882844);var t=e.i(635157);let i={Low:"low",Medium:"medium",High:"high"},n=t.z.enum([i.Low,i.Medium,i.High]);e.s(["C",0,i,"e",0,n])},393182,e=>{"use strict";let t={Auto:"openrouter/auto",JevRouter:"typesafe/jev-router",AutoBeta:"openrouter/auto-beta",AutoCode:"openrouter/auto-code",BodyBuilder:"openrouter/bodybuilder",Free:"openrouter/free",ParetoCode:"openrouter/pareto-code",Fusion:"openrouter/fusion",FusionFlash:"openrouter/fusion-flash",Phaser:"openrouter/phaser",Switchyard:"nvidia/switchyard"};t.JevRouter,t.AutoCode,e.s(["f",0,t])},429497,919157,e=>{"use strict";var t=e.i(882844),i=e.i(635157),n=e.i(72916);let a=i.z.string().min(1).max(64).regex(/^[a-z0-9][a-z0-9_-]*$/,'rule ids are lowercase letters, digits, "-" and "_"'),r=i.z.object({id:a.openapi({description:"Stable id, unique within its source; reported as the deciding rule when it fires."}),name:i.z.string().min(1).max(120).optional().openapi({description:"Display name shown in verdict explanations; defaults to the id."}),instructions:i.z.string().min(1).max(8e3).openapi({description:"What the rule matches, written for the classifier."}),threshold:(0,t.$)().min(0).max(1).optional().openapi({description:"Probability at or above which the rule counts as matched. Defaults to 0.6 for hard-deny and soft-deny rules and 0.7 for allow rules (an exception needs stronger evidence to clear a matched soft deny)."})}).openapi("ArmorRule"),l=i.z.union([i.z.string().min(1).max(8122),r]),o=i.z.string().trim().min(1).max(120).refine(e=>!e.includes(": "),{message:'environment names cannot contain ": "'}).openapi({type:"string",minLength:1,maxLength:120}),s=i.z.object({name:o,value:i.z.string().trim().max(4e3)}).openapi("ArmorEnvironmentEntry"),c=i.z.union([i.z.string().min(1).max(4122),s]),u=i.z.object({environment:i.z.array(c).optional(),hard_deny:i.z.array(l).optional(),soft_deny:i.z.array(l).optional(),allow:i.z.array(l).optional()}).superRefine((e,t)=>{let i=function(e){let t=new Set,i=new Set;for(let n of[...e.hard_deny??[],...e.soft_deny??[],...e.allow??[]])"string"!=typeof n&&(t.has(n.id)&&i.add(n.id),t.add(n.id));return[...i]}(e);i.length>0&&t.addIssue({code:"custom",message:`rule ids must be unique within a context: ${i.join(", ")}`})}).openapi("ArmorAutoMode"),d=i.z.unknown().pipe(t.Q).openapi({description:"Carried unchanged; any JSON value."});function m(e){return e.catchall(d)}let p=m(i.z.object({cwd:i.z.string().optional(),root:i.z.string().nullish(),branch:i.z.string().nullish(),default_branch:i.z.string().nullish(),status:i.z.object({clean:i.z.boolean(),counts:i.z.record(i.z.string(),i.z.number().int().nullable()).nullish(),porcelain:i.z.string().nullish(),truncated:i.z.boolean().optional()}).nullish(),visibility:m(i.z.object({origin:i.z.object({host:i.z.string(),remote:i.z.string(),visibility:i.z.string()}).nullish(),push_remote:i.z.string().nullish()})).nullish()})),f=m(i.z.object({v:i.z.literal(1),auto_mode:u.optional(),git_state:p.optional().openapi({"x-hidden":!0}),live_cwd:i.z.string().optional().openapi({"x-hidden":!0}),platform:i.z.string().optional().openapi({"x-hidden":!0})})).openapi("ArmorContext",{description:"The Armor context (v1): `auto_mode` holds the rules and environment facts. Claude Code also sends its own ground truth (`git_state`, `live_cwd`, `platform`), which Armor reads; a custom agent states the same facts in `auto_mode.environment`. Any other key is carried unchanged.",example:{v:1,auto_mode:{environment:["Trusted repo: github.com/acme/app"],hard_deny:[],soft_deny:[{id:"secrets-in-vcs",instructions:"Staging, committing or pushing a file that holds secrets, including indirectly through git add -A when the tree shows one."}],allow:[]}}});e.s(["p",0,"dangerous_tool_use","P",0,f],919157);let h="enforce",g=i.z.enum([h,"audit"]),v="block",b=i.z.enum(["log",v]),y=i.z.enum(["text","custom_item","claude_code_compatibility"]),x=i.z.strictObject({mode:g.optional().openapi({description:`\`enforce\` withholds blocked calls; \`audit\` evaluates and reports the same verdicts without withholding any calls, regardless of \`on_error\`. Default \`${h}\`.`}),classifier_context:f.optional().openapi({description:"The Armor context: Claude Code's `classifier_context` (v1), with `auto_mode.{hard_deny,soft_deny,allow}` rules as strings or `{ id, instructions, threshold? }` objects and `auto_mode.environment` entries as `\"Name: value\"` strings or `{ name, value }` objects. `threshold` applies when Armor evaluates; when the provider evaluates natively (Anthropic dangerous-tool-use beta) rules are judged at the provider's own boundary."}),use_cc_style_default_rules:i.z.boolean().optional().openapi({description:"Prepend Claude Code's built-in auto-mode rule set (1 hard-deny, 72 soft-deny, 17 allow, 21 environment slots) ahead of every configured rule. Defaults to true on the Anthropic Messages API and false elsewhere."}),on_error:b.optional().openapi({description:`When the classifier cannot answer (timeout, upstream error, context too long) the call is reported \`unavailable\`; \`block\` rejects it and \`log\` releases it. Default \`${v}\`.`}),model:i.z.string().min(1).max(200).optional().openapi({"x-hidden":!0,description:"Ignored. Armor evaluates with its own decisions model."})}),w=x.extend({id:i.z.literal(n.f.Armor),enabled:i.z.boolean().optional().openapi({description:"Set to false to disable Armor for this request. Defaults to true."}),evaluate_native_tools:i.z.boolean().optional().openapi({description:"Run provider-native server tools (web search, code execution, ...) through the agent loop so Armor evaluates them too. Defaults to false: native passthrough stands and such calls are reported `skipped`."}),output_mode:y.optional().openapi({description:"How a blocked call reaches the caller. `text` (the default): the call is withheld and an `` marker stands in assistant text. `custom_item` (Responses API only): the call is withheld and an `openrouter:armor_blocked` output item carries its id, name, arguments and the rule that fired. `claude_code_compatibility` (Messages API only; the default when the request carries a `dangerous_tool_use` safeguard, i.e. the client speaks Claude Code's protocol): the `tool_use` stays in `content[]` and the verdict is `flagged` in `safeguard_results`, so the client withholds execution and writes the error tool result as under the native classifier. Under `text` and `custom_item` the model received a failure result in the loop and continued in the same request; under `claude_code_compatibility` the turn ends on the flagged call and the model continues on the next request, after the client's denial."})}).openapi("ArmorPlugin",{description:"Evaluates every client tool call the model emits against a rule stack (hard-deny, soft-deny, allow) before it reaches the caller. The stack merges the workspace guardrail, this plugin, and any Anthropic `safeguards`; on endpoints that support Anthropic's `dangerous-tool-use` beta the evaluation is native, elsewhere it is one decisions call per tool call. Evaluation is not billed during the beta. Verdicts are reported as `safeguard_results`.",example:{id:"armor",use_cc_style_default_rules:!0,classifier_context:{v:1,auto_mode:{environment:["Trusted repo: github.com/acme/app"],soft_deny:[{id:"no-migrations-delete",instructions:"Deleting a file under db/migrations."}]}}}});e.s(["g",0,w,"m",0,x],429497)},72916,e=>{"use strict";var t,i=((t={}).WebSearch="web",t.Moderation="moderation",t.FileParser="file-parser",t.FileResolver="file-resolver",t.Banned="banned",t.RestrictionPreflight="restriction-preflight",t.NormalizeRequest="normalize-request",t.StickySession="sticky-session",t.AdapterUsage="adapter-usage",t.Accounting="accounting",t.OutputStatistics="output-statistics",t.SecretSanitizer="secret-sanitizer",t.ResponseHealing="response-healing",t.AutoRouter="auto-router",t.JevRouter="jev-router",t.AutoBetaRouter="auto-beta-router",t.BodyBuilder="bodybuilder",t.UsageCollector="usage-collector",t.FreeRouter="free-router",t.LatestRouter="latest-router",t.AnthropicSpeedRouter="anthropic-speed-router",t.OpenAIReasoningModeRouter="openai-reasoning-mode-router",t.ContentFilter="content-filter",t.ModelArmor="model-armor",t.Lakera="lakera",t.ServerTools="server-tools",t.WebFetch="web-fetch",t.ServerToolCost="server-tool-cost",t.ContextCompression="context-compression",t.ToolFilter="tool-filter",t.ParetoRouter="pareto-router",t.RouterMetadata="router-metadata",t.Fusion="fusion",t.Phaser="phaser",t.SwitchyardRouter="switchyard-router",t.AttestationGate="attestation-gate",t.KnownCsamObservation="known-csam-observation",t.Alignment="alignment",t.Armor="armor",t);e.s(["f",()=>i])},819076,e=>{"use strict";var t,i=((t={}).Int4="int4",t.Int8="int8",t.FloatingPoint4="fp4",t.MicroscalingFloatingPoint4="mxfp4",t.NvidiaFloatingPoint4="nvfp4",t.FloatingPoint6="fp6",t.FloatingPoint8="fp8",t.MicroscalingFloatingPoint8="mxfp8",t.FloatingPoint16="fp16",t.BrainFloating16="bf16",t.FloatingPoint32="fp32",t.Unknown="unknown",t);let n={int4:["int4"],int8:["int8"],fp4:["fp4","mxfp4","nvfp4"],mxfp4:["mxfp4"],nvfp4:["nvfp4"],fp6:["fp6"],fp8:["fp8","mxfp8"],mxfp8:["mxfp8"],fp16:["fp16"],bf16:["bf16"],fp32:["fp32"],unknown:["unknown"]};e.s(["v",()=>i,"k",0,function(e,t){return n[e].includes(t)}])},368966,e=>{"use strict";let t={Max:"max",XHigh:"xhigh",High:"high",Medium:"medium",Low:"low",Minimal:"minimal"},i={...t,None:"none"},n={ReasoningEffortNone:"reasoning_effort_none",ChatTemplateKwargs:"chat_template_kwargs",ThinkingDisabled:"thinking_disabled",ReasoningEnabledFalse:"reasoning_enabled_false"};e.s(["V",0,t,"K",0,n,"E",0,i,"x",0,{ContentString:"content-string",ReasoningContent:"reasoning-content",Reasoning:"reasoning",None:"none"}])},880315,e=>{"use strict";var t,i=((t={}).Model="model",t.None="none",t);e.s(["f",()=>i])},658108,e=>{"use strict";var t=e.i(426832);let i="highlighted_model";e.s(["R",0,function(e,t){let i=e.findIndex(e=>e.model.id===t),n=e[i];return void 0===t||void 0===n||null===n.asset?[...e]:[n,...e.slice(0,i),...e.slice(i+1)]},"I",0,function(e){return e?.get(i)||void 0},"n",0,function(e,n){return void 0===n?e:(0,t.f)(e,new URLSearchParams({[i]:n}).toString())}])},257509,614184,e=>{"use strict";e.i(427150);let t={zero:0,one:1,two:2,three:3,four:4,five:5,six:6,seven:7,eight:8,nine:9},i={ten:10,eleven:11,twelve:12,thirteen:13,fourteen:14,fifteen:15,sixteen:16,seventeen:17,eighteen:18,nineteen:19},n={twenty:20,thirty:30,forty:40,fifty:50,sixty:60,seventy:70,eighty:80,ninety:90},a={first:1,second:2,third:3,fourth:4,fifth:5,sixth:6,seventh:7,eighth:8,ninth:9},r={tenth:10,eleventh:11,twelfth:12,thirteenth:13,fourteenth:14,fifteenth:15,sixteenth:16,seventeenth:17,eighteenth:18,nineteenth:19},l={twentieth:20,thirtieth:30,fortieth:40,fiftieth:50,sixtieth:60,seventieth:70,eightieth:80,ninetieth:90},o={thousand:1e3,million:1e6,billion:1e9},s={total:0,hundreds:0,hundredsKind:"none",low:0,lowKind:"none",isOrdinal:!1,segments:[]},c={1:"st",2:"nd",3:"rd"},u=/^[\s\u002D\u2010\u2011]*$/u,d=/^\d+$/u,m="second",p=/^\p{L}{2,}(?"gap"!==e.kind);return i.slice(n+1).some(e=>Q.test(e.text))||-1===n}function el({segments:e,between:[t,i]}){let n=Math.max(...t.segments),a=Math.min(...i.segments);return e.slice(n+1,Math.max(n+1,a)).some(e=>"cue"===e.kind||ee.test(e.text))}let eo=Object.fromEntries(Object.values(A).map(({units:e,hundredths:t})=>[e,t]));function es(e,t){return Object.hasOwn(e,t)?e[t]:void 0}let ec={point:e=>{var t,i,n,a;let{beforePrevious:r,previous:l,afterNext:o,segments:s}=e,c=em(e);return void 0!==c&&(t=l,i=c,et.test(t.text)&&24>=Number(t.text)&&ei.test(i.text)&&59>=Number(i.text))&&!function({segments:e,between:[t,i]}){var n;return void 0!==i&&(n=i.text,J.has(n)||J.has(`${n}s`))&&eb({segments:e,between:[t,i]},D)}({segments:s,between:[c,o]})&&(void 0!==(n=r)&&Y.has(n.text)||void 0!==(a=o)&&X.has(a.text))},and:e=>{var t;let{previous:i,afterNext:n}=e,a=em(e);return t=i,Object.values(A).some(({units:e})=>e===t.text)&&void 0!==a&&ef(a)&&(void 0===n||eh(i,n))},"o'clock":({previous:e})=>ef(e),"00":({previous:e,token:t,segments:i})=>ef(e)&&eb({segments:i,between:[e,t]},L),dash:eu,hyphen:eu};function eu(e){let{beforePrevious:t,previous:i,afterNext:n,segments:a}=e,r=em(e);return void 0!==r&&(eg(i,a)&&eg(r,a)||ed(i,t)||ed(r,n)||function({beforePrevious:e,previous:t,next:i,segments:n}){return void 0!==e&&W.has(e.text)&&!el({segments:n,between:[e,t]})&&P.test(t.text)&&P.test(i.text)}({beforePrevious:t,previous:i,next:r,segments:a}))}function ed(e,t){return void 0!==t&&P.test(e.text)&&P.test(t.text)&&e.segments.some(e=>t.segments.includes(e))}function em({token:e,next:t,segments:i}){return void 0===t||el({segments:i,between:[e,t]})?void 0:t}let ep=[e=>e.flatMap(e=>!N.test(e.text)&&z.test(e.text)?[...e.text.matchAll(C)].map(t=>({text:t[0],segments:e.segments})):[e]),(e,t)=>{let i=[],n=!1;for(let a of e){let e=i.at(-1),r=n?$:T;if(void 0!==e&&ev(e,{segments:t,pattern:r})&&ev(a,{segments:t,pattern:r})&&eb({segments:t,between:[e,a]},E)){i[i.length-1]={text:e.text+a.text,segments:[...e.segments,...a.segments]};continue}n=W.has(a.text)||n&&$.test(a.text),i.push(a)}return i},(e,t)=>{var i;if(!e.some(e=>"st"===e.text))return[...e];let n={segments:t,isCased:(i=t).some((e,t)=>{var n,a;return"word"===e.kind&&K.test(e.text)&&!V.test(e.text)&&(!er({text:e.text,segments:[t]},i)||V.test((n=i,a=t,n.slice(0,a).findLast(e=>"gap"!==e.kind))?.text??""))})};return e.map((t,i)=>{if("st"!==t.text)return t;let a=function({beforePrevious:e,previous:t,token:i,next:n},a){var r,l;let{segments:o,isCased:s}=a;if(void 0===n)return"street";if(void 0===t||el({segments:o,between:[t,i]}))return ea(n,a)?"saint":"street";if(G.has(t.text)&&B.test(n.text))return"saint";return!B.test(n.text)||G.has(n.text)||ef(t)||N.test(t.text)||(r=t,void 0!==(l=e)&&H.has(l.text)&&!G.has(r.text))?"street":s?ev(t,{segments:o,pattern:U})&&!er(t,o)?"street":ea(n,a)?"saint":void 0:void 0}({beforePrevious:e[i-2],previous:e[i-1],token:t,next:e[i+1]},n);return void 0===a?t:{text:a,segments:t.segments}})},e=>e.flatMap((t,i)=>{let n=es(k,t.text);if(void 0!==n)return n.map(e=>({text:e,segments:t.segments}));let a=es(_,t.text);if(void 0!==a&&function([e,t]){return void 0!==e&&(!!ef(e)||void 0!==es(A,e.text)&&void 0!==t&&ef(t))}(e.slice(i+1,i+3)))return[{text:a,segments:t.segments}];let r=es(j,t.text),l=e[i-1];return void 0!==r&&void 0!==l&&ef(l)?[{text:r,segments:t.segments}]:[t]}),(e,t)=>{let i=[];for(let n=0;n2)&&eb({segments:t,between:[n,a]},R)?{read:[n,l,{text:String(Number(a.text.padEnd(2,"0"))),segments:a.segments},{text:r.hundredths,segments:i.segments}],length:3}:{read:[n,l],length:2}}(e.slice(n,n+3),t);if(void 0===r){void 0!==a&&i.push(a);continue}i.push(...r.read),n+=r.length-1}return i},(e,t)=>{let i=[];for(let n of e){let e=i.at(-1);if(void 0===e||!ef(n)){i.push(n);continue}if(ef(e)&&eb({segments:t,between:[e,n]},R)){i.push({text:en,segments:e.segments},n);continue}if(function({read:e,token:t,segments:i}){let[n,a,r]=e.slice(-3);return void 0!==n&&void 0!==a&&void 0!==r&&ef(n)&&a.text===en&&ef(r)&&Z.test(t.text)&&eb({segments:i,between:[r,t]},F)}({read:i,token:n,segments:t})){i[i.length-1]={text:e.text+n.text,segments:[...e.segments,...n.segments]};continue}i.push(n)}return i},(e,t)=>{let i=[];for(let n=0;n2||el({segments:t,between:[i,n]})||el({segments:t,between:[n,a]})||el({segments:t,between:[a,r]})))return[{text:i.text,segments:[...i.segments,...n.segments]},r,{text:String(Number(a.text.padEnd(2,"0"))),segments:a.segments},{text:l,segments:r.segments}]}(e.slice(n,n+4),t);if(void 0===a){let t=e[n];void 0!==t&&i.push(t);continue}i.push(...a),n+=3}return i},(e,t)=>{let i=[];for(let n=0;nt===e.text)&&("may"!==e.text||ev(e,{segments:i,pattern:U})||void 0!==t&&q.has(t.text))}(a,{previous:e[n-1],segments:t})){i.push(a);continue}let l=e[n+1],o=l?.text.match(N)?.[1];if(i.push(a),void 0===l||void 0===o&&!ef(l)||el({segments:t,between:[a,l]}))continue;i.push({text:o??l.text,segments:l.segments});let s=e[(n+=1)+1],c=void 0===s||el({segments:t,between:[l,s]})?void 0:function(e,t){let[i,n]=e;if(void 0!==i&&void 0!==n&&/^[1-9]\d$/u.test(i.text)&&/^\d\d$/u.test(n.text)&&eb({segments:t,between:[i,n]},F))return{text:i.text+n.text,segments:[...i.segments,...n.segments]}}(e.slice(n+1,n+3),t);void 0!==c&&(i.push(c),n+=2)}return i},(e,t)=>{let i=[];return e.forEach((n,a)=>{let r=i.at(-1),l=i.at(-2),o=e[a+1],s=e[a+2];if(void 0!==r&&function(e){let{segments:t,previous:i,token:n}=e;return!el({segments:t,between:[i,n]})&&(es(ec,e.token.text)?.(e)??!1)}({beforePrevious:l,previous:r,token:n,next:o,afterNext:s,segments:t})){i[i.length-1]={text:r.text,segments:[...r.segments,...n.segments]};return}i.push(n)}),i},(e,t)=>{let i=[];for(let n=0;ni.units===e.text&&i.hundredths===t.text)}function eg(e,t){return ef(e)||ev(e,{segments:t,pattern:I})}function ev(e,{segments:t,pattern:i}){return e.segments.every(e=>i.test(t[e]?.text??""))}function eb({segments:e,between:[t,i]},n){let a=Math.max(...t.segments),r=Math.min(...i.segments);return!(r<=a)&&e.slice(a+1,r).every(e=>"gap"===e.kind&&n.test(e.text))}let ey=/\[[^\]\n]*\]|\([^)\n]*\)/gu,ex=/[$\u20AC\u00A3%&]|\u00B0[CFcf]?(?!\p{L})|(?"word"===e.kind?[{text:e.text.normalize("NFD").replace(ej,"").normalize("NFC").toLowerCase().replace(ew,"").replace(ek,"and").replace(e_,"'").replace(eA,""),segments:[t]}]:[]);return{segments:_,tokens:(i=[],n=s,a=()=>{var e,t;let a,r;n.segments.length>0&&i.push((a=(e=n).total+e.hundreds+e.low,{text:e.isOrdinal?(r=(t=a)%100)>=11&&r<=13?`${t}th`:`${t}${c[t%10]??"th"}`:String(a),segments:e.segments})),n=s},r=j.map((e,t)=>(function(e,[t,i]){if(void 0===t)return!1;let n=t.segments.at(-1),a=i.segments[0];if(void 0===n||void 0===a)return!1;let r=w(o,t.text)?y:u;return e.slice(n+1,a).every(e=>"gap"===e.kind&&r.test(e.text))})(_,[j[t-1],e])),l=0,k=-1,j.forEach((e,t)=>{if(r[t]||a(),t===k)return void i.push(e);let s=r[t+1]?j[t+1]:void 0,c=function(e,{reading:t,next:i}){var n;let a=x(e);return void 0!==a?a:"hundred"===e?{kind:"hundred"}:w(o,e)?{kind:"scale",value:o[e]}:"and"===e&&"none"===(n=t).lowKind&&n.segments.length>0&&void 0!==i&&void 0!==x(i.text)?{kind:"and"}:void 0}(e.text,{reading:n,next:s});if(void 0===c){a(),i.push(e),s?.text===m&&d.test(e.text)&&(k=t+1);return}if((0===n.segments.length||!function(e,t){switch(t.kind){case"unit":return"full"!==e.lowKind;case"teen":case"tens":return"none"===e.lowKind;case"ordinal":return"unit"===t.reads?"full"!==e.lowKind:"none"===e.lowKind;case"hundred":return"none"===e.hundredsKind&&"none"!==e.lowKind;case"scale":return 0===e.total||e.total>=1e3*t.value;case"and":return!0;default:return t}}(n,c))&&(a(),l=t),n=function(e,{word:t,segments:i}){let n={...e,segments:[...e.segments,...i]};switch(t.kind){case"unit":return{...n,low:n.low+t.value,lowKind:"full"};case"teen":return{...n,low:t.value,lowKind:"full"};case"tens":return{...n,low:t.value,lowKind:"tens"};case"ordinal":return{...n,low:n.low+t.value,lowKind:"full",isOrdinal:!0};case"hundred":return{...n,hundreds:("none"===n.lowKind?1:n.low)*100,hundredsKind:"full",low:0,lowKind:"none"};case"scale":{let e="none"===n.hundredsKind&&"none"===n.lowKind;return{...n,total:n.total+(e?1:n.hundreds+n.low)*t.value,hundreds:0,hundredsKind:"none",low:0,lowKind:"none"}}case"and":return n;default:return t}}(n,{word:c,segments:e.segments}),s?.text===m&&function(e,{word:t,reading:i,start:n,index:a}){return"and"!==t.kind&&!i.isOrdinal&&("full"===i.lowKind||function(e,{start:t,index:i}){var n,a;let r,l=e[t-1],o=e[i+2];return!(void 0!==o&&g.has(o.text))&&(!!(void 0!==l&&(h.has(l.text)||(r=x(n=l.text),d.test(n)||void 0!==r&&"ordinal"!==r.kind)))||void 0!==o&&(b.has(o.text)||(void 0===l||!v.has(l.text))&&(a=o.text,p.test(a)&&!f.has(a))))}(e,{start:n,index:a}))}(j,{word:c,reading:n,start:l,index:t})){a(),k=t+1;return}n.isOrdinal&&a()}),a(),t=i,ep.reduce((e,t)=>t(e,_),[...t]))}}function eM(e){let t=[],i=0;for(let n of e.matchAll(ex))n.index>i&&t.push({kind:"gap",text:e.slice(i,n.index)}),t.push({kind:"word",text:n[0]}),i=n.index+n[0].length;return it.has(i)?[]:e.segments));return new Set(e.flatMap(e=>e.segments).filter(e=>!i.has(e)))}function ez(e,t){for(let i=t-1;i>=0;i-=1)if(e[i]?.kind!=="gap")return i;return -1}let eC=new Set(["st","saint","street"]);function eP(e,t){let i=t.flatMap((e,t)=>eC.has(e)?[t]:[]),n=0;return e.map((a,r)=>{if(!eC.has(a))return a;let l=i[n]??i.at(-1);if(n+=1,"st"!==a)return a;let o=t[i.filter(e=>"st"!==t[e]).map(i=>({place:i,shared:Number(t[i-1]===e[r-1])+Number(t[i+1]===e[r+1])})).filter(({shared:e})=>e>0).sort((e,t)=>t.shared-e.shared)[0]?.place??l??-1];return void 0===o||"st"===o?"street":o})}function eT(e){return e.filter(e=>"word"===e.kind)}function eI({segments:e,tokens:t},i){let n=eN(t,i);return e.map((e,t)=>"word"===e.kind?{...e,matched:n.has(t)}:e)}function eE(e,t){if(null===e)return null;let{askedWordCount:i,missedWordCount:n,extraWordCount:a}=e,r=t.filter(e=>e.pass).length,l=i+a+t.length;return 0===l?1:(i-n+r)/l}function eO(e,t){return null===e.heard?null:function({asked:e,heard:t}){let i=eS(e),n=eS(t);if(i.tokens.length>2e3||n.tokens.length>2e3)return null;let a=i.tokens.map(e=>e.text),r=n.tokens.map(e=>e.text),l=function(e,t){let i=t.length+1,n=new Uint16Array((e.length+1)*i);for(let a=e.length-1;a>=0;a-=1)for(let r=t.length-1;r>=0;r-=1)n[a*i+r]=e[a]===t[r]?(n[(a+1)*i+r+1]??0)+1:Math.max(n[(a+1)*i+r]??0,n[a*i+r+1]??0);let a=[],r=0,l=0;for(;r=(n[r*i+l+1]??0)){r+=1;continue}l+=1}return a}(eP(a,r),eP(r,a)),o=new Set(l.map(([e])=>e)),s=new Set(l.map(([,e])=>e)),c=eI(i,o),u=eI(n,s),d=eT(c);return{asked:c,heard:u,spoken:function(e){let{asked:t,heard:i,pairs:n}=e,a=eN(t.tokens,new Set(n.map(([e])=>e))),r=(function({asked:e,heard:t,pairs:i}){var n,a;let r,l,o,s=0;return(n=t,r=new Set((a=i).map(([,e])=>e)),l=Array.from({length:a.length+1},()=>[]),o=0,n.tokens.forEach((e,t)=>{for(;o{let a=e.tokens[i[n]?.[0]??-1],r=void 0===a?e.segments.length:Math.min(...a.segments),l=e.tokens.slice((i[n-1]?.[0]??-1)+1,i[n]?.[0]??e.tokens.length),o=Math.max(s,r,...l.map(e=>Math.max(...e.segments)+1)),c={start:s,end:o,extras:t};return s=void 0===a?o:Math.max(s,...a.segments.map(e=>e+1)),c})})(e).map(e=>(function(e,t){let{start:i,end:n,extras:a}=t,r=[],l=[],o=[...a];for(let t=i;te.text),a=function(e,t){return 0===t.length||t.length>e.length?-1:e.findIndex((i,n)=>n+t.length<=e.length&&t.every((t,i)=>e[n+i]===t))}(o.map(e=>e.text),n);-1!==a&&(r.push(t),a>0&&l.push({after:ez(e,t),extras:o.slice(0,a)}),o=o.slice(a+n.length))}return o.length>0&&l.push({after:function(e,{start:t,end:i}){return i===e.length&&e.slice(t,i).every(e=>"word"!==e.kind)?i-1:ez(e,i)}(e,t),extras:o}),{spoken:r,placements:l}})(t.segments,e)),l={matchedSegments:a,spokenCues:new Set(r.flatMap(({spoken:e})=>e))},o=function(e){let t=new Set,i=new Map;for(let{after:n,extras:a}of[...e].sort((e,t)=>e.after-t.after)){let e=[...new Set(a.flatMap(e=>e.segments))].filter(e=>!t.has(e));for(let i of e)t.add(i);i.set(n,[...i.get(n)??[],...e])}return i}(r.flatMap(({placements:e})=>e)),s=(e,t)=>(function(e,{extras:t,side:i}){let n={kind:"gap",text:" "};return t.flatMap(t=>{let a=e[t];if(void 0===a)return[];let r={kind:"extra",text:a.text};return"leading"===i?[r,n]:[n,r]})})(i.segments,{extras:o.get(e)??[],side:t});return[...s(-1,"leading"),...t.segments.flatMap((e,t)=>[function({segment:e,index:t},{matchedSegments:i,spokenCues:n}){switch(e.kind){case"gap":default:return e;case"cue":return{...e,spoken:n.has(t)};case"word":return{...e,matched:i.has(t)}}}({segment:e,index:t},l),...s(t,"trailing")])]}({asked:i,heard:n,pairs:l}),askedWordCount:d.length,missedWordCount:d.filter(e=>!e.matched).length,extraWordCount:eT(u).filter(e=>!e.matched).length}}({asked:e.transcript??t,heard:e.heard.text})}function eR(e,t){return eE(e,t?.checks??[])}function eL(e,t){let i=eR(e,t);return null===i?null:Math.round(100*i)}e.s(["P",0,eE,"S",0,function(e){return(e?.checks??[]).filter(e=>!0!==e.spoken).map(({label:e,pass:t})=>({label:e,pass:t}))}],614184),e.s(["J",0,eL,"v",0,eO,"$",0,eR,"U",0,function(e,t){return eL(eO(e,t),e.delivery)}],257509)},77418,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(333131),a=e.i(209615),r=e.i(393182);e.i(707060);var l=e.i(288265),o=e.i(919035),s=e.i(404410),c=e.i(856883),u=e.i(429332),d=e.i(16043),m=e.i(289798);let p="p-0 max-md:border-0 md:p-5";var f=e.i(387086),h=e.i(371244);let g=(0,f.b)("Documentation"),v=h.f;var b=e.i(838973);let y=(0,f.b)("Explore"),x=b.f;var w=e.i(140546),k=e.i(381462),_=e.i(667417),j=e.i(27983),A=e.i(309821),S=e.i(482128),M=e.i(729104),N=e.i(901958),z=e.i(767451),C=e.i(939173),P=e.i(544951);let T={providers:{icon:N.f,label:(0,f.b)("Providers"),explainer:(0,f.b)("Different companies host the same model. OpenRouter routes your request to one of them based on the routing mode you pick: Balanced (price + speed), Nitro (fastest), or Floor (cheapest).")},performance:{icon:P.f,label:(0,f.b)("Performance"),explainer:(0,f.b)("Throughput is how fast the model writes (tokens per second — higher is better). Latency is total round-trip time (lower is better). TTFT is time-to-first-token — how long before you see anything appear (lower is better).")},pricing:{icon:M.f,label:(0,f.b)("Pricing"),explainer:(0,f.b)("The average price customers actually pay for this model, next to the prices providers post. Caching and discounts mean the price actually paid is often well below the listed one.")},benchmarks:{icon:A.f,label:(0,f.b)("Benchmarks"),explainer:(0,f.b)("Scores on standardized evaluations and this model’s own outputs on shared benchmark prompts. Higher percentages are better — and each rank shows where this model lands among the models evaluated on that source.")},uptime:{icon:j.f,label:(0,f.b)("Uptime"),explainer:(0,f.b)("Uptime is the percentage of the past 3 days that at least one provider was responding to requests. Availability is the percentage of time that inference was successfully served. OpenRouter continuously monitors and uses the next-best provider when one returns an error.")},apps:{icon:S.f,label:(0,f.b)("Apps"),explainer:(0,f.b)("Public apps that send the most traffic to this model. Good signal for what real production workloads look like — and a hint at which use cases this model is best suited for.")},activity:{icon:C.f,label:(0,f.b)("Activity"),explainer:(0,f.b)("Token volume and request traffic to this model over time.")},api:{icon:z.f,label:(0,f.b)("API"),explainer:(0,f.b)("Drop-in code to call this model. OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. The only thing that changes between models is the model slug below.")}},I=(0,f.b)("This model is hosted by one provider. OpenRouter forwards every request without routing."),E=(0,f.b)("Drop-in code to call this model. It runs on the OpenRouter Decisions API rather than the OpenAI-compatible chat endpoint, so the request and response shapes below are specific to structured decisions — chat completions SDKs will not work with it."),O=(0,f.b)("Latency is how long it takes to return the full response (lower is better)."),R={[k.f.TextGeneration]:T.performance?.explainer??O,[k.f.TTS]:(0,f.b)("Latency is how long it takes to deliver the full audio clip (lower is better). First audio is how long before playback can start (lower is better). Streaming providers start sending audio well before the clip is finished."),[k.f.STT]:(0,f.b)("Latency is how long it takes to return the full transcript (lower is better)."),[k.f.ImageGeneration]:(0,f.b)("Latency is how long it takes to generate and return the image (lower is better)."),[k.f.VideoGeneration]:(0,f.b)("Generation time is how long a video takes from submission to completion (lower is better)."),[k.f.Embeddings]:O,[k.f.Rerank]:O,[k.f.Decisions]:O,[k.f.Extractions]:O,[k.f.Unknown]:O};var L=e.i(136562),F=e.i(227339),D=e.i(670168),U=e.i(775922),$=e.i(336810),q=e.i(695880),K=e.i(885024),B=e.i(618115),V=e.i(369677),G=e.i(447906),H=e.i(585351),W=e.i(444731);let Z=[$.F.Blue,F.W.tokensUncached],Y={isRanking:!1,position:"bottom",showPercentage:!1,forceSingleColumn:!0};function X(e){let n,a,r,o,s,c,u,d=(0,i.c)(32),{appStats:m,isAppStatsLoading:p,cachedAt:f}=e,h=(0,l.f)(),g=h("Top 5 Apps"),v=h("Rest of OpenRouter");if(m?.top_apps_chart,m?.model_chart,d[0]!==m?.model_chart||d[1]!==m?.top_apps_chart||d[2]!==v||d[3]!==g){let e,t,i=new Map;for(let t of(d[5]!==m?.top_apps_chart?(e=m?.top_apps_chart??[],d[5]=m?.top_apps_chart,d[6]=e):e=d[6],e))i.set(t.date,t.total_prompt_tokens+t.total_completion_tokens);d[7]!==m?.model_chart?(t=m?.model_chart??[],d[7]=m?.model_chart,d[8]=t):t=d[8],n=t.toReversed().map(e=>{let t=e.total_prompt_tokens+e.total_completion_tokens,n=i.get(e.date)??0,a=Math.max(0,t-n);return{x:e.date,ys:{[g]:n,[v]:a}}}),d[0]=m?.model_chart,d[1]=m?.top_apps_chart,d[2]=v,d[3]=g,d[4]=n}else n=d[4];let b=n;if(d[9]!==b||d[10]!==v||d[11]!==g){let e;d[13]!==v||d[14]!==g?(e=e=>(e.ys[g]??0)>0||(e.ys[v]??0)>0,d[13]=v,d[14]=g,d[15]=e):e=d[15],a=b.some(e),d[9]=b,d[10]=v,d[11]=g,d[12]=a}else a=d[12];let y=a;if(p||!m){let e;return d[16]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(D.A,{count:5,skeletonClassName:"h-12 w-full"}),d[16]=e):e=d[16],e}if(0===m.top_apps.length){let e,i=h("Not enough data for apps using this model yet.");return d[17]!==i?(e=(0,t.jsx)(U.f,{message:i,icon:"app",height:"20rem"}),d[17]=i,d[18]=e):e=d[18],e}return d[19]===Symbol.for("react.memo_cache_sentinel")?(r=(0,L.f)("mx-auto w-full","flex flex-col gap-8 lg:flex-row lg:gap-16"),d[19]=r):r=d[19],d[20]!==m.top_apps?(o=m.top_apps.map(J),d[20]=m.top_apps,d[21]=o):o=d[21],d[22]!==o?(s=(0,t.jsx)("div",{className:"flex flex-col gap-5 lg:w-1/2 lg:justify-between lg:gap-0",children:o}),d[22]=o,d[23]=s):s=d[23],d[24]!==f||d[25]!==b||d[26]!==h||d[27]!==y?(c=(0,t.jsx)("div",{className:"lg:w-1/2",children:y?(0,t.jsx)(G.f,{sectionId:"apps",chartId:"top_apps",title:h("Token usage by top apps"),inSectionTitle:!0,children:(0,t.jsx)("div",{"data-chart-share-surface":"",children:(0,t.jsx)(q.StackedBarChart,{colors:Z,data:b,yAxisHidden:!0,legendConfig:Y,forecast:K.n.OneDay,forecastFromTimestamp:f})})}):(0,t.jsx)(U.f,{message:h("No chart data available"),icon:"bar",height:"15rem"})}),d[24]=f,d[25]=b,d[26]=h,d[27]=y,d[28]=c):c=d[28],d[29]!==s||d[30]!==c?(u=(0,t.jsxs)("div",{className:r,children:[s,c]}),d[29]=s,d[30]=c,d[31]=u):u=d[31],u}function J(e,i){return(0,t.jsx)(W.f,{rank:i+1,appAnalytics:e},e.app_id)}var Q=e.i(199168),ee=e.i(837808),et=e.i(989393),ei=e.i(221612);function en(e){let n,a,r,l=(0,i.c)(10),{caption:o,testId:s,children:c}=e,u=(0,d.useId)();return l[0]!==o||l[1]!==u?(n=(0,t.jsx)("p",{id:u,children:o}),l[0]=o,l[1]=u,l[2]=n):n=l[2],l[3]!==c?(a=(0,t.jsx)("ul",{children:c}),l[3]=c,l[4]=a):a=l[4],l[5]!==u||l[6]!==n||l[7]!==a||l[8]!==s?(r=(0,t.jsxs)("section",{className:"sr-only ph-no-capture","data-dd-privacy":"hidden","data-testid":s,"aria-labelledby":u,children:[n,a]}),l[5]=u,l[6]=n,l[7]=a,l[8]=s,l[9]=r):r=l[9],r}var ea=e.i(464608);function er(){let e,n,a=(0,i.c)(11),{model:r,benchmarkPermaslug:l}=(0,V.useModelPage)(),o=(0,Q.o)(),{ordinal:s}=(0,et.Y)();a[0]!==r.output_modalities?(e=(0,ei.f)(r.output_modalities),a[0]=r.output_modalities,a[1]=e):e=a[1];let c=e,u=(0,ea.B)(c,l);if(void 0===c||"success"!==u.status||(0,ea.n)(u.data))return null;if(a[2]!==o||a[3]!==r.name||a[4]!==s||a[5]!==u.data.challenges||a[6]!==u.data.showcases){let e,i=[...u.data.challenges,...u.data.showcases];a[8]!==o||a[9]!==r.name?(e=o("Benchmark outputs summary for {modelName}",{modelName:r.name}),a[8]=o,a[9]=r.name,a[10]=e):e=a[10],n=(0,t.jsx)(en,{caption:e,testId:"model-arena-outputs-summary",children:i.map(e=>{let i=function(e,{gt:t,ordinal:i}){if(null===e.rank)return null;let n={position:i(e.rank.position),of:e.rank.of};return e.rank.tied?t("Tied {position} of {of} on this prompt",n):t("{position} of {of} on this prompt",n)}(e,{gt:o,ordinal:s});return(0,t.jsxs)("li",{children:[(0,t.jsx)("a",{href:e.href,tabIndex:-1,children:e.label}),": ",e.modality===ee.Z?e.transcript??e.prompt:e.prompt,null===i?null:` (${i})`]},e.id)})}),a[2]=o,a[3]=r.name,a[4]=s,a[5]=u.data.challenges,a[6]=u.data.showcases,a[7]=n}else n=a[7];return n}var el=e.i(782143),eo=e.i(98988),es=e.i(353273),ec=e.i(610586),eu=e.i(593305),ed=e.i(356713),em=e.i(530798),ep=e.i(138257),ef=e.i(196991),eh=e.i(153746),eg=e.i(305874),ev=e.i(974558),eb=e.i(626524);let ey="Artificial Analysis",ex="Design Arena",ew="Vals AI";function ek(){let e,n,a,r,o,s,c,u,d,m,p,f,h,g,v=(0,i.c)(35),{model:b,benchmarkPermaslug:y}=(0,V.useModelPage)(),x=(0,ep.useLocale)(),w=(0,l.f)();v[0]!==y?(e=(0,eb.T)(y),v[0]=y,v[1]=e):e=v[1];let{data:k}=(0,B.f)(e);v[2]!==k?(n=void 0===k?[]:k,v[2]=k,v[3]=n):n=v[3];let _=n;v[4]!==y?(a=(0,eb.q)(y),v[4]=y,v[5]=a):a=v[5];let{data:j}=(0,B.f)(a);v[6]!==y?(r=(0,eb.s)(y),v[6]=y,v[7]=r):r=v[7];let{data:A}=(0,B.f)(r);if(v[8]!==_||v[9]!==j?.records||v[10]!==w||v[11]!==x||v[12]!==A?.records){c=Symbol.for("react.early_return_sentinel");e:{var S,M;let e,t,i,n,a=_.flatMap(e=>{let{benchmark_data:t}=e;return t.model_type!==es.f.Llm?[{key:`${e.aa_id}:elo`,source:ey,benchmark:`${e.aa_name} Elo`,score:(0,el.f)(t.elo,{locale:x,preset:"integer"})??"—"}]:(0,eo.R)(t.evaluations).flatMap(t=>t.evals.flatMap(({key:t,value:i,metadata:n})=>null===i?[]:[{key:`${e.aa_id}:${t}`,source:ey,benchmark:`${e.aa_name} ${n.label}`,score:(0,eg.f)(x,i,n.isFraction)}]))});v[16]!==j?.records?(e=j?.records??[],v[16]=j?.records,v[17]=e):e=v[17];let r=(S=e,i=(0,ev.M)(S)[0],S.filter(e=>e.display_name===i).map(e=>({key:`${e.da_model_id}:${e.arena}:${e.category}`,source:ex,benchmark:`${e.display_name} ${(0,ec.I)(e.arena)} ${(0,ec.V)(e.arena,e.category)} Elo`,score:(0,eu.t)(e.elo)})));if(v[18]!==A?.records?(t=A?.records??[],v[18]=A?.records,v[19]=t):t=v[19],0===(o=[...a,...r,...(M=t,!(n=(0,ed.S)(M)[0])?[]:(0,ed.c)(n.recordList).map(e=>({key:`${e.vals_model_key}:${e.benchmark}`,source:ew,benchmark:`${e.vals_model_label} ${e.benchmark_title}`,score:(0,eg.f)(x,e.accuracy/100,!0)})))]).length){c=null;break e}s=function(e,t){let[i,n,a]=[ey,ex,ew].filter(e=>t.some(t=>t.source===e));return void 0!==a&&void 0!==n&&void 0!==i?e("{first}, {second} and {third}",{first:i,second:n,third:a}):void 0!==n&&void 0!==i?e("{first} and {second}",{first:i,second:n}):i??""}(w,o)}v[8]=_,v[9]=j?.records,v[10]=w,v[11]=x,v[12]=A?.records,v[13]=o,v[14]=s,v[15]=c}else o=v[13],s=v[14],c=v[15];if(c!==Symbol.for("react.early_return_sentinel"))return c;let N=s;return v[20]!==b.name?(u=(0,t.jsx)(eh.d,{children:b.name}),v[20]=b.name,v[21]=u):u=v[21],v[22]!==N?(d=(0,t.jsx)(eh.d,{children:N}),v[22]=N,v[23]=d):d=v[23],v[24]!==u||v[25]!==d?(m=(0,t.jsxs)(em.TableCaption,{children:["Benchmark score summary for ",u," (",d,")"]}),v[24]=u,v[25]=d,v[26]=m):m=v[26],v[27]===Symbol.for("react.memo_cache_sentinel")?(p=(0,t.jsx)(em.TableHeader,{children:(0,t.jsxs)(em.TableRow,{children:[(0,t.jsx)(em.TableHead,{children:"Source"}),(0,t.jsx)(em.TableHead,{children:"Benchmark"}),(0,t.jsx)(em.TableHead,{children:"Score"})]})}),v[27]=p):p=v[27],v[28]!==m?(f=(0,t.jsxs)(ef.T,{children:[m,p]}),v[28]=m,v[29]=f):f=v[29],v[30]!==o?(h=(0,t.jsx)(em.TableBody,{children:o.map(e_)}),v[30]=o,v[31]=h):h=v[31],v[32]!==f||v[33]!==h?(g=(0,t.jsx)("div",{className:"sr-only",children:(0,t.jsxs)(em.Table,{"data-testid":"model-benchmarks-summary",children:[f,h]})}),v[32]=f,v[33]=h,v[34]=g):g=v[34],g}function e_(e){return(0,t.jsxs)(em.TableRow,{children:[(0,t.jsx)(em.TableCell,{children:e.source}),(0,t.jsx)(em.TableCell,{children:e.benchmark}),(0,t.jsx)(em.TableCell,{children:e.score})]},e.key)}var ej=e.i(380773),eA=e.i(845893),eS=e.i(919873),eM=e.i(184822);function eN(e){return(0,eM._)(e).flatMap(t=>{let i=e?.[t.index],n=i?.output_assets[0];if(void 0===i||void 0===n)return[];let a=function(e){switch(e.modality){case eS.f.Image:return e.request.prompt;case eS.f.Video:{let t=e.request.prompt?.trim();return void 0===t||0===t.length?null:t}case eS.f.Speech:return e.request.input;default:return e}}(i);return null===a?[]:[{key:String(t.index),label:t.label,repeat:t.repeat,prompt:a,assetUrl:n.url,modality:i.modality}]})}var ez=e.i(627203),eC=e.i(32123);function eP(){var e;let n,a,r,l,o,s=(0,i.c)(19),{model:c}=(0,V.useModelPage)(),u=(0,Q.o)(),d=(0,Q.M)(),m=(e=(0,ez.g)())===_.j.Decisions||e===eC.V?null:e,p=(0,ej.f)({permaslug:c.permaslug,modality:m});s[0]!==p?(n={...p,select:eN},s[0]=p,s[1]=n):n=s[1];let{data:f}=(0,B.f)(n);s[2]!==f?(a=void 0===f?[]:f,s[2]=f,s[3]=a):a=s[3];let h=a;if(0===h.length)return null;if(s[4]!==u||s[5]!==c.name?(r=u("Example outputs summary for {modelName}",{modelName:c.name}),s[4]=u,s[5]=c.name,s[6]=r):r=s[6],s[7]!==u||s[8]!==d||s[9]!==c.name||s[10]!==h){let e;s[12]!==u||s[13]!==d||s[14]!==c.name?(e=e=>(0,t.jsxs)("li",{children:[(0,eA.f)(d,e),":"," ",(0,t.jsx)("a",{href:e.assetUrl,tabIndex:-1,children:function(e,{gt:t,modelName:i}){return e.modality===eS.f.Speech?t("{prompt} — spoken by {modelName}",{prompt:e.prompt,modelName:i}):t("{prompt} — generated with {modelName}",{prompt:e.prompt,modelName:i})}(e,{gt:u,modelName:c.name})})]},e.key),s[12]=u,s[13]=d,s[14]=c.name,s[15]=e):e=s[15],l=h.map(e),s[7]=u,s[8]=d,s[9]=c.name,s[10]=h,s[11]=l}else l=s[11];return s[16]!==r||s[17]!==l?(o=(0,t.jsx)(en,{caption:r,testId:"model-example-outputs-summary",children:l}),s[16]=r,s[17]=l,s[18]=o):o=s[18],o}var eT=e.i(117439),eI=e.i(903336),eE=e.i(946424),eO=e.i(728439),eR=e.i(768462),eL=e.i(46766),eF=e.i(312679),eD=e.i(832850),eU=e.i(960773),e$=e.i(13457),eq=e.i(109460);function eK(e){let n,a,r,o=(0,i.c)(11),{sections:s,children:c}=e,u=(0,eU.Q)(),d=(0,eF.f)(),m=(0,eL.f)(),p=(0,l.f)(),f=(0,e$.f)("model_page_section_view");o[0]!==u?(n=e=>{u.capture("click_model_page_tab",{tab:e,source:"section_nav"})},o[0]=u,o[1]=n):n=o[1];let h=n;o[2]!==p?(a=p("Model page sections"),o[2]=p,o[3]=a):a=o[3];let g=m+eq.W+d;return o[4]!==c||o[5]!==h||o[6]!==f||o[7]!==s||o[8]!==a||o[9]!==g?(r=(0,t.jsx)(eD.f,{sections:s,ariaLabel:a,desktopNavTopClass:eq._,mobileTocTopClass:eq.d,activationLinePx:g,onSectionView:f,onSectionSelect:h,children:c}),o[4]=c,o[5]=h,o[6]=f,o[7]=s,o[8]=a,o[9]=g,o[10]=r):r=o[10],r}var eB=e.i(238967),eV=e.i(616384),eG=e.i(894868),eH=e.i(954217);function eW(e){let n,a,r,l,o,s,c,u=(0,i.c)(22),{slug:d,name:m,author:p,onModelClick:f,className:h}=e,g=(0,Q.o)();u[0]!==h?(n=(0,L.f)("flex min-w-0 items-center gap-2",h),u[0]=h,u[1]=n):n=u[1],u[2]!==p||u[3]!==d?(a=(0,t.jsx)(eG.f,{frame:!0,author:p,permaslug:d,className:"size-6 shrink-0"}),u[2]=p,u[3]=d,u[4]=a):a=u[4];let v=`/${d}`;u[5]!==m||u[6]!==f||u[7]!==v?(r=(0,t.jsx)(eH.TextLink,{href:v,onClick:f,weight:"medium",className:"truncate text-sm",children:m}),u[5]=m,u[6]=f,u[7]=v,u[8]=r):r=u[8];let b=`/${p}`;return u[9]!==p||u[10]!==g?(l=g("by {author}",{author:p}),u[9]=p,u[10]=g,u[11]=l):l=u[11],u[12]!==b||u[13]!==l?(o=(0,t.jsx)(eH.TextLink,{href:b,children:l}),u[12]=b,u[13]=l,u[14]=o):o=u[14],u[15]!==r||u[16]!==o?(s=(0,t.jsxs)("div",{className:"flex min-w-0 flex-col",children:[r,o]}),u[15]=r,u[16]=o,u[17]=s):s=u[17],u[18]!==n||u[19]!==a||u[20]!==s?(c=(0,t.jsxs)("div",{className:n,children:[a,s]}),u[18]=n,u[19]=a,u[20]=s,u[21]=c):c=u[21],c}function eZ(e){let n,a,r,l=(0,i.c)(10),{aliasSlug:o,targetSlug:s,targetName:c,targetAuthor:u}=e,d=(0,eU.Q)();return l[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(ef.T,{children:(0,t.jsx)("h3",{className:"text-sm font-semibold text-muted-foreground",children:"Latest model"})}),l[0]=n):n=l[0],l[1]!==o||l[2]!==d||l[3]!==s?(a=()=>{d.capture("click_latest_alias_target",{alias_slug:o,target_slug:s})},l[1]=o,l[2]=d,l[3]=s,l[4]=a):a=l[4],l[5]!==a||l[6]!==u||l[7]!==c||l[8]!==s?(r=(0,t.jsxs)("div",{className:"flex flex-col gap-4","data-testid":"router-latest-model",children:[n,(0,t.jsx)(eW,{slug:s,name:c,author:u,onModelClick:a})]}),l[5]=a,l[6]=u,l[7]=c,l[8]=s,l[9]=r):r=l[9],r}var eY=e.i(208977),eX=e.i(297510),eJ=e.i(153722),eQ=e.i(751155),e0=e.i(206020);let e1=[];function e2(){let e,n,a,r,l,o,s,c,u,d=(0,i.c)(25),{model:m}=(0,V.useModelPage)();d[0]!==m.permaslug?(e=(0,e0.f)(m.permaslug),d[0]=m.permaslug,d[1]=e):e=d[1];let{data:p,isError:f}=(0,B.f)(e);p?.modelNameMap,d[2]!==p?.modelNameMap?(n=p?.modelNameMap??{},d[2]=p?.modelNameMap,d[3]=n):n=d[3];let h=n;d[4]!==p?.analytics||d[5]!==h?(a=()=>(function(e,t){let i=new Map;for(let t of e){let e=i.get(t.model_permaslug)??0;i.set(t.model_permaslug,e+t.total_prompt_tokens+t.total_completion_tokens)}let n=[...i.entries()].toSorted((e,t)=>t[1]-e[1]),a=n.reduce((e,[,t])=>e+t,0);if(0===a)return[];let r=n.slice(0,5),l=n.slice(5).reduce((e,[,t])=>e+t,0),o=r.map(([e,i])=>({permaslug:e,shortName:t[e]??e.split("/").pop()??e,author:(0,eJ.z)(e)??"unknown",tokens:i,percentage:i/a*100}));return l>0&&o.push({permaslug:"others",shortName:"Others",author:"",tokens:l,percentage:l/a*100}),o})(p?.analytics??e1,h),d[4]=p?.analytics,d[5]=h,d[6]=a):a=d[6],p?.analytics,d[7]!==a?(r=a(),d[7]=a,d[8]=r):r=d[8];let g=r;return d[9]!==m.short_name?(l=(0,t.jsx)(ef.T,{children:(0,t.jsxs)("h3",{className:"text-sm font-semibold text-muted-foreground",children:["Top models used by ",(0,t.jsx)(eh.d,{children:m.short_name})]})}),d[9]=m.short_name,d[10]=l):l=d[10],d[11]!==p||d[12]!==g?(o=void 0!==p&&g.length>0&&(0,t.jsx)("ol",{className:"flex flex-col gap-3",children:g.map(e3)}),d[11]=p,d[12]=g,d[13]=o):o=d[13],d[14]!==p||d[15]!==g?(s=void 0!==p&&0===g.length&&(0,t.jsx)(ef.T,{children:(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"No usage data available yet."})}),d[14]=p,d[15]=g,d[16]=s):s=d[16],d[17]!==p||d[18]!==f?(c=f&&void 0===p&&(0,t.jsx)(ef.T,{children:(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Usage data is unavailable right now."})}),d[17]=p,d[18]=f,d[19]=c):c=d[19],d[20]!==l||d[21]!==o||d[22]!==s||d[23]!==c?(u=(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[l,o,s,c]}),d[20]=l,d[21]=o,d[22]=s,d[23]=c,d[24]=u):u=d[24],u}function e3(e,i){return(0,t.jsx)(e6,{entry:e,rank:i+1},e.permaslug)}function e6(e){let n,a,r,o,s,c,u,d,m,p,f=(0,i.c)(28),{entry:h,rank:g}=e,v=(0,ep.useLocale)(),b=(0,l.f)(),y="others"===h.permaslug;return f[0]!==g?(n=(0,t.jsxs)("span",{className:"w-5 text-right text-sm text-muted-foreground tabular-nums",children:[g,"."]}),f[0]=g,f[1]=n):n=f[1],f[2]!==h.author||f[3]!==h.permaslug||f[4]!==h.shortName||f[5]!==y?(a=y?(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[(0,t.jsx)("div",{className:(0,L.f)("flex size-6 shrink-0 items-center justify-center rounded-full","bg-muted text-xs font-medium text-muted-foreground"),children:"+"}),(0,t.jsx)(ef.T,{children:(0,t.jsx)("span",{className:"text-sm font-medium text-muted-foreground",children:"Others"})})]}):(0,t.jsx)(eW,{slug:h.permaslug,name:h.shortName,author:h.author,className:"flex-1"}),f[2]=h.author,f[3]=h.permaslug,f[4]=h.shortName,f[5]=y,f[6]=a):a=f[6],f[7]!==b?(r=b("Tokens processed in the last 3 months"),f[7]=b,f[8]=r):r=f[8],f[9]!==h.tokens?(o=(0,eY.V)(h.tokens),f[9]=h.tokens,f[10]=o):o=f[10],f[11]!==o?(s=(0,t.jsx)("span",{className:"text-sm tabular-nums text-foreground",children:o}),f[11]=o,f[12]=s):s=f[12],f[13]!==h.percentage||f[14]!==v?(c=(0,eX.I)(h.percentage,{locale:v,preset:"native-fixed-1"})??"—",f[13]=h.percentage,f[14]=v,f[15]=c):c=f[15],f[16]!==c?(u=(0,t.jsx)("span",{className:"text-xs tabular-nums text-muted-foreground",children:c}),f[16]=c,f[17]=u):u=f[17],f[18]!==s||f[19]!==u?(d=(0,t.jsxs)("div",{className:"flex shrink-0 flex-col items-end",children:[s,u]}),f[18]=s,f[19]=u,f[20]=d):d=f[20],f[21]!==r||f[22]!==d?(m=(0,t.jsx)(eQ.Tooltip,{content:r,children:d}),f[21]=r,f[22]=d,f[23]=m):m=f[23],f[24]!==n||f[25]!==a||f[26]!==m?(p=(0,t.jsxs)("li",{className:"flex items-center gap-3",children:[n,a,m]}),f[24]=n,f[25]=a,f[26]=m,f[27]=p):p=f[27],p}let e5=(0,u.default)(()=>e.A(687020).then(e=>e.RouterModelShare),{loadableGenerated:{modules:[809664]},loading:()=>null}),e4=(0,u.default)(()=>e.A(405417).then(e=>e.ModelActivity),{loadableGenerated:{modules:[598702]},loading:()=>null,ssr:!1}),e8=(0,u.default)(()=>e.A(429796).then(e=>e.ModelAPI),{loadableGenerated:{modules:[279704]},loading:()=>null,ssr:!1}),e9=(0,u.default)(()=>e.A(166757).then(e=>e.ModelBenchmarks),{loadableGenerated:{modules:[858235]},loading:()=>null,ssr:!1}),e7=(0,u.default)(()=>e.A(482535).then(e=>e.ModelArenaOutputs),{loadableGenerated:{modules:[21564]},loading:()=>null,ssr:!1}),te=(0,u.default)(()=>e.A(361089).then(e=>e.ModelPlaygroundSection),{loadableGenerated:{modules:[224116]},loading:()=>(0,t.jsx)(eI.m,{}),ssr:!1});function tt(){let e,n,a,r=(0,i.c)(4),l=(0,ea.x)();r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(er,{}),n=(0,t.jsx)(e7,{}),r[0]=e,r[1]=n):(e=r[0],n=r[1]);let o="absent"!==l;return r[2]!==o?(a=(0,t.jsxs)("div",{className:"flex flex-col gap-8",children:[e,n,(0,t.jsx)(e9,{hideEmptyState:o})]}),r[2]=o,r[3]=a):a=r[3],a}let ti={providers:eO.ModelProviders,performance:eT.ModelPerformance,pricing:eE.ModelPricing,benchmarks:function(){let e,n,a=(0,i.c)(3),{isPrivateView:r}=(0,V.useModelPage)();return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(ek,{}),a[0]=e):e=a[0],a[1]!==r?(n=(0,t.jsxs)(t.Fragment,{children:[e,r?(0,t.jsx)(e9,{}):(0,t.jsx)(tt,{})]}),a[1]=r,a[2]=n):n=a[2],n},apps:function(){let e,n,a,r=(0,i.c)(9),{model:l,staticVariant:o}=(0,V.useModelPage)();r[0]!==l.permaslug||r[1]!==o?(e=(0,H.S)({permaslug:l.permaslug,variant:o}),r[0]=l.permaslug,r[1]=o,r[2]=e):e=r[2];let{data:s,isLoading:c}=(0,B.f)(e);return r[3]!==s?.cachedAt?(n=s?.cachedAt??Date.now(),r[3]=s?.cachedAt,r[4]=n):n=r[4],r[5]!==s||r[6]!==c||r[7]!==n?(a=(0,t.jsx)("div",{className:"flex w-full flex-col",children:(0,t.jsx)(X,{appStats:s,isAppStatsLoading:c,cachedAt:n})}),r[5]=s,r[6]=c,r[7]=n,r[8]=a):a=r[8],a},activity:e4,uptime:eB.ModelUptime};function tn(e){return"overview"!==e&&"api"!==e}function ta(e){return"overview"!==e&&"api"!==e}function tr(e){return e.endpoints.length>1}function tl(e){let n,a,s,u,d,m,f,h=(0,i.c)(22),{routerModelsCard:g,supplementalContent:v,visibleTabSlugs:b,latestAliasTarget:y,jevRouterPermaslug:x}=e,w=T.api,k=(0,o.f)(),_=(0,l.f)(),{isPrivateView:j}=(0,V.useModelPage)();h[0]!==_||h[1]!==j||h[2]!==x?(n=null===x?null:(0,t.jsx)(eR.f,{id:"live-routing",title:_("Live routing"),icon:c.f,explainer:_(x===r.f.AutoCode?"Explore actual agent usage and how the router chooses models for new work.":"Explore actual usage and how the router chooses models for new work."),contentClassName:p,children:(0,t.jsx)(e5,{permaslug:x,isPrivate:j})}),h[0]=_,h[1]=j,h[2]=x,h[3]=n):n=h[3],h[4]!==k||h[5]!==b?(a=b.includes("api")&&w&&(0,t.jsx)(eR.f,{id:"api",title:k(w.label),icon:w.icon,explainer:k(w.explainer),children:(0,t.jsx)(e8,{})}),h[4]=k,h[5]=b,h[6]=a):a=h[6],h[7]!==g||h[8]!==v||h[9]!==n||h[10]!==a?(s=(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-10",children:[g,n,a,v]}),h[7]=g,h[8]=v,h[9]=n,h[10]=a,h[11]=s):s=h[11];let A=s;return null!==x&&null===y?A:(h[12]!==y?(u=y&&(0,t.jsx)(eZ,{...y}),h[12]=y,h[13]=u):u=h[13],h[14]!==x?(d=null===x?(0,t.jsx)(e2,{}):null,h[14]=x,h[15]=d):d=h[15],h[16]!==u||h[17]!==d?(m=(0,t.jsx)("aside",{className:"hidden md:block",children:(0,t.jsxs)("div",{className:"sticky top-36 flex flex-col gap-8",children:[u,d]})}),h[16]=u,h[17]=d,h[18]=m):m=h[18],h[19]!==A||h[20]!==m?(f=(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-[minmax(0,2fr)_minmax(20rem,1fr)] md:gap-12",children:[A,m]}),h[19]=A,h[20]=m,h[21]=f):f=h[21],f)}e.s(["ModelPageOverview",0,function(){var e,r;let c,u,d,f,h,b,k,j,A,S,M=(0,i.c)(70),{model:N,hasBenchmarks:z,hasFaqs:C,hasRelatedResources:P,hasDocumentation:O,isPrivateView:L,supplementalContent:F,variantGroups:D,routerModelsCard:U,latestAliasTarget:$}=(0,V.useModelPage)(),q=N.group===a.f.Router,K=(0,eV.N)(N).perfWorkload;M[0]!==D?(c=D.some(tr),M[0]=D,M[1]=c):c=M[1];let B=c,G=(0,ez.d)();(0,ez.I)(),M[2]!==z||M[3]!==L||M[4]!==N?(u=(0,w.M)({model:N,hasBenchmarks:z,isPrivateView:L}),M[2]=z,M[3]=L,M[4]=N,M[5]=u):u=M[5];let H=u;M[6]!==H?(d=H.includes("api"),M[6]=H,M[7]=d):d=M[7];let W=d,Z=T.api,Y=(0,l.f)(),X=(0,o.f)();if(M[8]!==Z||M[9]!==Y||M[10]!==W||M[11]!==O||M[12]!==C||M[13]!==P||M[14]!==X||M[15]!==G||M[16]!==H){let e=H.filter(ta);if(f=[],G){let e,t;M[18]!==X?(e=X(ez.c),M[18]=X,M[19]=e):e=M[19],M[20]!==e?(t={id:ez.w,label:e,icon:ez.P},M[20]=e,M[21]=t):t=M[21],f.push(t)}for(let t of e){let e=T[t];e&&f.push({id:t,label:X(e.label),icon:e.icon})}if(W&&Z){let e,t;M[22]!==Z.label||M[23]!==X?(e=X(Z.label),M[22]=Z.label,M[23]=X,M[24]=e):e=M[24],M[25]!==Z.icon||M[26]!==e?(t={id:"api",label:e,icon:Z.icon,mobileOnly:!0},M[25]=Z.icon,M[26]=e,M[27]=t):t=M[27],f.push(t)}if(O){let e,t;M[28]!==X?(e=X(g),M[28]=X,M[29]=e):e=M[29],M[30]!==e?(t={id:"documentation",label:e,icon:v},M[30]=e,M[31]=t):t=M[31],f.push(t)}if(C){let e,t;M[32]!==Y?(e=Y("FAQ"),M[32]=Y,M[33]=e):e=M[33],M[34]!==e?(t={id:"faq",label:e,icon:s.f},M[34]=e,M[35]=t):t=M[35],f.push(t)}if(P){let e,t;M[36]!==X?(e=X(y),M[36]=X,M[37]=e):e=M[37],M[38]!==e?(t={id:"explore",label:e,icon:x},M[38]=e,M[39]=t):t=M[39],f.push(t)}M[8]=Z,M[9]=Y,M[10]=W,M[11]=O,M[12]=C,M[13]=P,M[14]=X,M[15]=G,M[16]=H,M[17]=f}else f=M[17];let J=f;if(q){let e,i,a=$??null;return M[40]!==N.permaslug?(e=(0,n.n)(N.permaslug)?N.permaslug:null,M[40]=N.permaslug,M[41]=e):e=M[41],M[42]!==U||M[43]!==F||M[44]!==a||M[45]!==e||M[46]!==H?(i=(0,t.jsx)(tl,{routerModelsCard:U,supplementalContent:F,visibleTabSlugs:H,latestAliasTarget:a,jevRouterPermaslug:e}),M[42]=U,M[43]=F,M[44]=a,M[45]=e,M[46]=H,M[47]=i):i=M[47],i}let Q=m.h;M[48]!==H?(h=H.includes("pricing"),M[48]=H,M[49]=h):h=M[49],M[50]!==G?(b=G?(0,t.jsxs)("div",{className:"mb-10 last:mb-0",children:[(0,t.jsx)(eP,{}),(0,t.jsx)(te,{})]}):null,M[50]=G,M[51]=b):b=M[51];let ee=H.filter(tn).map(e=>{let i=T[e],n=ti[e];if(!i||!n)return null;let a="providers"!==e||B?function({slug:e,explainer:t,perfWorkload:i}){return"performance"===e?R[i]:t}({slug:e,explainer:i.explainer,perfWorkload:K}):I;return(0,t.jsx)(eR.f,{className:"mb-10 last:mb-0",id:e,title:X(i.label),icon:i.icon,explainer:X(a),contentClassName:p,children:(0,t.jsx)(n,{})},e)});return M[52]!==Z||M[53]!==W||M[54]!==X||M[55]!==N?(k=W&&Z&&(0,t.jsx)(eR.f,{id:"api",title:X(Z.label),icon:Z.icon,explainer:X((e=N.output_modalities,r=Z.explainer,e.includes(_.j.Decisions)?E:r)),className:"mb-10 last:mb-0 lg:hidden",contentClassName:p,children:(0,t.jsx)(e8,{})}),M[52]=Z,M[53]=W,M[54]=X,M[55]=N,M[56]=k):k=M[56],M[57]!==F||M[58]!==b||M[59]!==ee||M[60]!==k?(j=(0,t.jsxs)("div",{children:[b,ee,k,F]}),M[57]=F,M[58]=b,M[59]=ee,M[60]=k,M[61]=j):j=M[61],M[62]!==eK||M[63]!==J||M[64]!==j?(A=(0,t.jsx)(eK,{sections:J,children:j}),M[62]=eK,M[63]=J,M[64]=j,M[65]=A):A=M[65],M[66]!==Q||M[67]!==h||M[68]!==A?(S=(0,t.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-[200px_1fr] gap-6",children:(0,t.jsx)(Q,{hasPricingSection:h,children:A})}),M[66]=Q,M[67]=h,M[68]=A,M[69]=S):S=M[69],S}],77418)},903336,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(232458),a=e.i(670168);e.i(707060);var r=e.i(919035),l=e.i(16043),o=e.i(768462),s=e.i(627203);function c(){let e,n=(0,i.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(a.l,{"aria-hidden":!0,className:"min-h-[min(300px,56vw)] h-64 bg-muted/40 sm:h-80 lg:min-h-104"}),n[0]=e):e=n[0],e}function u(){(0,n.E)()}e.s(["o",0,c,"m",0,function(){let e,n,a,d,m=(0,i.c)(6),p=(0,r.f)();return m[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],m[0]=e):e=m[0],(0,l.useEffect)(u,e),m[1]!==p?(n=p(s.c),m[1]=p,m[2]=n):n=m[2],m[3]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(c,{}),m[3]=a):a=m[3],m[4]!==n?(d=(0,t.jsx)(o.f,{id:s.w,title:n,icon:s.P,contentClassName:"overflow-hidden p-0",children:a}),m[4]=n,m[5]=d):d=m[5],d}])},768462,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(136562),a=e.i(109460),r=e.i(950008);e.s(["f",0,function(e){let l,o,s,c,u,d,m,p,f,h,g,v,b=(0,i.c)(32),{id:y,title:x,icon:w,explainer:k,children:_,className:j,headerActions:A,titleAccessory:S,contentClassName:M}=e;b[0]!==j?(l=(0,n.f)(a.$,j),b[0]=j,b[1]=l):l=b[1];let N=k?"mb-1.5":"mb-3";b[2]!==N?(o=(0,n.f)("flex flex-wrap items-center gap-x-4 gap-y-2",N),b[2]=N,b[3]=o):o=b[3],b[4]!==w?(s=(0,t.jsx)(w,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),b[4]=w,b[5]=s):s=b[5],b[6]!==x?(c=(0,t.jsx)("h2",{className:"text-base font-medium",children:x}),b[6]=x,b[7]=c):c=b[7],b[8]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(r.ModelSectionShareSlotTarget,{}),b[8]=u):u=b[8],b[9]!==s||b[10]!==c||b[11]!==S?(d=(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[s,c,S,u]}),b[9]=s,b[10]=c,b[11]=S,b[12]=d):d=b[12],b[13]!==A?(m=A?(0,t.jsx)("div",{className:"ml-auto min-w-0 shrink",children:A}):null,b[13]=A,b[14]=m):m=b[14],b[15]!==o||b[16]!==d||b[17]!==m?(p=(0,t.jsxs)("div",{className:o,children:[d,m]}),b[15]=o,b[16]=d,b[17]=m,b[18]=p):p=b[18],b[19]!==k?(f=k?(0,t.jsx)("p",{className:"mb-4 max-w-2xl text-xs leading-relaxed text-muted-foreground",children:k}):null,b[19]=k,b[20]=f):f=b[20];let z=M??"p-4 sm:p-5";return b[21]!==z?(h=(0,n.f)("rounded-lg border border-border",z),b[21]=z,b[22]=h):h=b[22],b[23]!==_||b[24]!==h?(g=(0,t.jsx)("div",{className:h,children:_}),b[23]=_,b[24]=h,b[25]=g):g=b[25],b[26]!==y||b[27]!==l||b[28]!==f||b[29]!==g||b[30]!==p?(v=(0,t.jsx)(r.ModelSectionShareSlotProvider,{children:(0,t.jsxs)(r.ModelSectionShareGroup,{id:y,className:l,children:[p,f,g]})}),b[26]=y,b[27]=l,b[28]=f,b[29]=g,b[30]=p,b[31]=v):v=b[31],v}])},238967,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(297510),a=e.i(136562),r=e.i(912147),l=e.i(328262),o=e.i(670168),s=e.i(369646),c=e.i(142559),u=e.i(76507),d=e.i(397618),m=e.i(775922),p=e.i(41277),f=e.i(336810),h=e.i(133319),g=e.i(138257),v=e.i(618115);e.i(707060);var b=e.i(196991),y=e.i(288265),x=e.i(16043),w=e.i(702596),k=e.i(342837),_=e.i(369677),j=e.i(447906),A=e.i(180916),S=e.i(616384),M=e.i(585351);let N=new Map([["Availability",f.F.MediumSeaGreen],["Availability without routing",f.F.Orange]]),z=new Map([["Availability","OpenRouter Availability"],["Availability without routing","Without Routing"]]);function C(e){return e.provider_name}function P(e){let l,c,f,v,w,k=(0,i.c)(71),{isLoading:_,modelUptime:A,hasModelUptimeError:S,hasMultipleProviders:M,uptime:C,availability:P}=e,L=(0,g.useLocale)(),F=(0,y.f)(),D=(0,x.useRef)(null);if(_){let e,i,n,a,r;return k[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)("div",{className:"grid w-full grid-cols-2 gap-4",children:[(0,t.jsx)(o.l,{className:"h-16 w-full rounded-lg"}),(0,t.jsx)(o.l,{className:"h-16 w-full rounded-lg"})]}),k[0]=e):e=k[0],k[1]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)("div",{className:"w-full rounded-lg border border-border bg-card p-3",children:(0,t.jsx)(u.q,{})}),k[1]=i):i=k[1],k[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(o.l,{className:"mb-3 h-5 w-56"}),a=(0,t.jsx)(o.l,{className:"h-80 w-full"}),k[2]=n,k[3]=a):(n=k[2],a=k[3]),k[4]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[e,i,(0,t.jsxs)("div",{className:"w-full rounded-lg border border-border bg-card p-3",children:[n,a,(0,t.jsxs)("div",{className:"mt-3 flex flex-col gap-3",children:[(0,t.jsx)(o.l,{className:"h-5 w-full"}),(0,t.jsx)(o.l,{className:"h-5 w-full"})]})]}),(0,t.jsx)(o.l,{className:"h-8 w-full"})]}),k[4]=r):r=k[4],r}if(k[5]!==F||k[6]!==S||k[7]!==M||k[8]!==L||k[9]!==A?.availability||k[10]!==A?.buckets||k[11]!==A?.hourly||k[12]!==A?.recentAvailability||k[13]!==A?.recentAvailabilityWithoutRouting){let e,i,a,r=A?.buckets.map(e=>{let t={};return null!==e.availability&&(t.Availability=e.availability),M&&null!==e.availabilityWithoutRouting&&(t["Availability without routing"]=e.availabilityWithoutRouting),{x:e.timestamp,y:t}})??[],o=r.some(O);k[15]!==A?.hourly?(i=(e=A?.hourly.map(E)??[]).some(I),k[15]=A?.hourly,k[16]=e,k[17]=i):(e=k[16],i=k[17]);let c=i;k[18]!==F||k[19]!==c||k[20]!==e||k[21]!==A?.availability?(a=c?(0,t.jsx)("div",{className:"w-full rounded-lg border border-border bg-card p-3",children:(0,t.jsx)(j.f,{sectionId:"uptime",chartId:"last_3_days",title:F("Availability over the last 3 days"),children:(0,t.jsx)(u.D,{points:e,metric:"availability",defaultValue:A?.availability??null,title:F("Availability over the last 3 days"),titleAccessory:(0,t.jsx)("span",{className:"flex h-4 items-center self-center",children:(0,t.jsx)(p.g,{})})})})}):null,k[18]=F,k[19]=c,k[20]=e,k[21]=A?.availability,k[22]=a):a=k[22];let f=a;if(S){let e,i;k[23]!==F?(e=F("Uptime data could not be retrieved at this time. Please try again later."),k[23]=F,k[24]=e):e=k[24],k[25]!==e?(i=(0,t.jsx)(m.f,{className:"min-h-80",message:e,icon:"uptime"}),k[25]=e,k[26]=i):i=k[26],l=i}else if(o){let e,i,a,o,c,u,m,g,v,y,x;k[27]!==M||k[28]!==A?.recentAvailability||k[29]!==A?.recentAvailabilityWithoutRouting?(e=Array.from(N.keys()).filter(e=>"Availability"===e||M).map(e=>({name:e,value:"Availability"===e?A?.recentAvailability??null:A?.recentAvailabilityWithoutRouting??null,color:N.get(e)??""})),k[27]=M,k[28]=A?.recentAvailability,k[29]=A?.recentAvailabilityWithoutRouting,k[30]=e):e=k[30];let w=e;k[31]!==F?(i=F("Availability over the last 24 hours"),k[31]=F,k[32]=i):i=k[32],k[33]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(b.T,{children:(0,t.jsx)("h3",{className:"text-sm font-medium text-foreground",children:"Availability over the last 24 hours"})}),k[33]=a):a=k[33],k[34]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsxs)("div",{className:"mb-3 flex items-center gap-2",children:[a,(0,t.jsx)("span",{className:"flex h-4 items-center",children:(0,t.jsx)(p.g,{})})]}),k[34]=o):o=k[34],k[35]!==L?(c=s.g.bind(void 0,L),k[35]=L,k[36]=c):c=k[36],k[37]!==L?(u=e=>{var t,i;return t=L,i=e,(0,n.I)(Math.round(i),{locale:t,preset:"fee"})??"—"},k[37]=L,k[38]=u):u=k[38];let _=(0,t.jsx)(h.f,{data:r,colorMapping:N,xAxisTimeScale:!0,connectNulls:!1,highlightHandleRef:D,seriesLabels:z,tooltipShowZeroValues:!0,tooltipValueFormatter:c,yAxisTickFormatter:u,yAxisDomain:[0===(x=r.flatMap(e=>Object.values(e.y))).length?90:Math.min(90,5*Math.floor(Math.min(...x)/5)),100]});k[39]!==w||k[40]!==L?(m=(0,t.jsx)("div",{className:"mt-3 flex w-full flex-col gap-3",children:w.map((e,i)=>(0,t.jsx)(d.f,{data:e,index:i,offset:1,isRanking:!1,showPercentage:!1,onLabel:T,valueFormatter:s.g.bind(void 0,L),onMouseEnter:()=>D.current?.setHighlightedSeries(e.name),onMouseLeave:()=>D.current?.setHighlightedSeries(void 0)},e.name))}),k[39]=w,k[40]=L,k[41]=m):m=k[41],k[42]!==m||k[43]!==_?(g=(0,t.jsxs)("div",{"data-chart-share-surface":"",children:[_,m]}),k[42]=m,k[43]=_,k[44]=g):g=k[44],k[45]!==g||k[46]!==i?(v=(0,t.jsx)("div",{className:"w-full rounded-lg border border-border bg-card p-3",children:(0,t.jsxs)(j.f,{sectionId:"uptime",chartId:"last_24_hours",title:i,children:[o,g]})}),k[45]=g,k[46]=i,k[47]=v):v=k[47],k[48]!==f||k[49]!==v?(y=(0,t.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[f,v]}),k[48]=f,k[49]=v,k[50]=y):y=k[50],l=y}else if(f){let e,i,n;k[51]!==F?(e=F("Not enough uptime data to display yet."),k[51]=F,k[52]=e):e=k[52],k[53]!==e?(i=(0,t.jsx)(m.f,{className:"min-h-80",message:e,icon:"uptime"}),k[53]=e,k[54]=i):i=k[54],k[55]!==f||k[56]!==i?(n=(0,t.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[f,i]}),k[55]=f,k[56]=i,k[57]=n):n=k[57],l=n}else{let e,i;k[58]!==F?(e=F("Not enough uptime data to display yet."),k[58]=F,k[59]=e):e=k[59],k[60]!==e?(i=(0,t.jsx)(m.f,{className:"min-h-80",message:e,icon:"uptime"}),k[60]=e,k[61]=i):i=k[61],l=i}k[5]=F,k[6]=S,k[7]=M,k[8]=L,k[9]=A?.availability,k[10]=A?.buckets,k[11]=A?.hourly,k[12]=A?.recentAvailability,k[13]=A?.recentAvailabilityWithoutRouting,k[14]=l}else l=k[14];return k[62]!==P||k[63]!==F||k[64]!==C?(c=(C||P)&&(0,t.jsxs)("div",{className:(0,a.f)("grid w-full gap-4",C&&P?"grid-cols-2":"grid-cols-1"),children:[C&&(0,t.jsx)(R,{label:F("Uptime (3d)"),value:C,infoTooltip:F("The model was reachable. Request routed to a provider.")}),P&&(0,t.jsx)(R,{label:F("Availability (3d)"),value:P,infoTooltip:F("The model returned inference from any provider. Errors and empty responses count against it.")})]}),k[62]=P,k[63]=F,k[64]=C,k[65]=c):c=k[65],k[66]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsx)(r.f,{href:"/docs/api/api-reference/endpoints/list-endpoints",children:"Endpoints API"}),k[66]=f):f=k[66],k[67]===Symbol.for("react.memo_cache_sentinel")?(v=(0,t.jsx)(b.T,{children:(0,t.jsxs)("p",{className:"text-xs text-muted-foreground",children:["When an error occurs in an upstream provider, we can recover by routing to another healthy provider, if your request filters allow it. You can access per-provider uptime data programmatically through the"," ",f,". Learn more about our"," ",(0,t.jsx)(r.f,{href:"/docs/provider-routing",children:"load balancing and provider routing options"}),"."]})}),k[67]=v):v=k[67],k[68]!==l||k[69]!==c?(w=(0,t.jsxs)("div",{className:"flex flex-col items-start gap-4",children:[c,l,v]}),k[68]=l,k[69]=c,k[70]=w):w=k[70],w}function T(e){let t=String(e);return z.get(t)??t}function I(e){return null!==e.uptime||null!==e.availability}function E(e){return{date:new Date(`${e.timestamp.replace(" ","T")}Z`),uptime:e.uptime,availability:e.availability}}function O(e){return Object.keys(e.y).length>0}function R(e){let n,a,r,o,s=(0,i.c)(14),{label:u,value:d,infoTooltip:m}=e,p=(0,y.f)(),f=(0,x.useId)();s[0]!==u?(n=(0,t.jsx)("span",{children:u}),s[0]=u,s[1]=n):n=s[1],s[2]!==f||s[3]!==p||s[4]!==m||s[5]!==u?(a=m&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{id:f,className:"sr-only",children:m}),(0,t.jsx)(l.InfoTooltip,{isFocusable:!0,side:"right",className:"shrink-0 cursor-help","aria-label":p("{label} explanation",{label:u}),"aria-describedby":f,children:m})]}),s[2]=f,s[3]=p,s[4]=m,s[5]=u,s[6]=a):a=s[6],s[7]!==n||s[8]!==a?(r=(0,t.jsxs)(t.Fragment,{children:[n,a]}),s[7]=n,s[8]=a,s[9]=r):r=s[9];let h=c.x[(0,c.B)(Number.parseFloat(d))];return s[10]!==r||s[11]!==h||s[12]!==d?(o=(0,t.jsx)(A.X,{label:r,value:d,valueClassName:h}),s[10]=r,s[11]=h,s[12]=d,s[13]=o):o=s[13],o}function L(e,t){return null===t?null:(0,s.g)(e,t)}e.s(["ModelUptime",0,function(){let e,n,a,r,l,o,s,c,u=(0,i.c)(26),d=(0,g.useLocale)(),{model:m,staticVariant:p,isPrivateView:f}=(0,_.useModelPage)();u[0]!==m||u[1]!==p?(e=(0,M.T)({permaslug:m.permaslug,variant:p,...(0,S.N)(m)}),u[0]=m,u[1]=p,u[2]=e):e=u[2];let{data:h,isLoading:b}=(0,v.f)(e);u[3]!==f||u[4]!==m.permaslug||u[5]!==p?(n=(0,M.D)({permaslug:m.permaslug,variant:p,isPrivateView:f}),u[3]=f,u[4]=m.permaslug,u[5]=p,u[6]=n):n=u[6];let{data:y,isLoading:x,error:j}=(0,v.f)(n);y?.uptime;let A=y?.uptime??null;u[7]!==d||u[8]!==A?(a=L(d,A),u[7]=d,u[8]=A,u[9]=a):a=u[9];let N=a;u[10]!==d||u[11]!==y?.availability?(r=()=>L(d,y?.availability??null),u[10]=d,u[11]=y?.availability,u[12]=r):r=u[12],y?.availability,u[13]!==r?(l=r(),u[13]=r,u[14]=l):l=u[14];let z=l,T=b||x,I=y??null;if(u[15]!==j){let e;o=null!==(e=(0,w.i)(j))&&e.status!==k.g.S404_Not_Found,u[15]=j,u[16]=o}else o=u[16];u[17]!==h?(s=new Set(h?.map(C)),u[17]=h,u[18]=s):s=u[18];let E=s.size>1;return u[19]!==z||u[20]!==E||u[21]!==T||u[22]!==I||u[23]!==o||u[24]!==N?(c=(0,t.jsx)("div",{className:"flex w-full flex-col",children:(0,t.jsx)(P,{isLoading:T,modelUptime:I,hasModelUptimeError:o,hasMultipleProviders:E,uptime:N,availability:z})}),u[19]=z,u[20]=E,u[21]=T,u[22]=I,u[23]=o,u[24]=N,u[25]=c):c=u[25],c}],238967)},989393,e=>{"use strict";var t=e.i(663456),i=e.i(797521);e.i(707060);var n=e.i(288265);e.s(["c",0,"--","Y",0,function(){let e,a,r,l,o,s=(0,t.c)(11),c=(0,i.f)(),u=(0,n.f)();return s[0]!==c?(e=e=>c.usd(e,{preset:"benchmark-native"})??"--",a=e=>c.duration(e,{preset:"latency-fixed-seconds"})??"--",r=e=>c.percentPoints(e,{preset:"native-rounded-integer"})??"--",s[0]=c,s[1]=e,s[2]=a,s[3]=r):(e=s[1],a=s[2],r=s[3]),s[4]!==u?(l=e=>u("{position, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}",{position:e}),s[4]=u,s[5]=l):l=s[5],s[6]!==e||s[7]!==a||s[8]!==r||s[9]!==l?(o={cost:e,duration:a,percent:r,ordinal:l},s[6]=e,s[7]=a,s[8]=r,s[9]=l,s[10]=o):o=s[10],o}])},305874,851296,974558,e=>{"use strict";var t=e.i(297272),i=e.i(560832);e.s(["f",0,function(e,n,a){return a?(0,i.x)(n):(0,t.B)(n,{locale:e,fractionDigits:1})??"—"}],305874);var n=e.i(659350),a=e.i(663456),r=e.i(112252),l=e.i(359544),o=e.i(326e3),s=e.i(199168);function c(e){let t,i,c,d,m,p,f,h,g,v,b,y,x,w,k,_,j,A=(0,a.c)(43),{options:S,value:M,onValueChange:N}=e,z=(0,s.o)();if(A[0]!==z||A[1]!==N||A[2]!==S||A[3]!==M){v=Symbol.for("react.early_return_sentinel");e:{let e,a;if(A[14]!==M?(e=e=>e.value===M,A[14]=M,A[15]=e):e=A[15],void 0===(c=S.find(e))){v=null;break e}A[16]!==z?(a=z("Model variant"),A[16]=z,A[17]=a):a=A[17];let s=(0,n.jsx)(l.f,{title:a,trigger:(0,n.jsx)(r.f,{"aria-label":z("Model variant: {label}",{label:c.label}),className:"min-w-0",children:c.label}),options:S,value:M,onValueChange:N});A[18]!==s?(g=(0,n.jsx)("div",{className:"flex min-w-0 md:hidden",children:s}),A[18]=s,A[19]=g):g=A[19],h="hidden md:block",i=o.Select,p=M,f=N,t=o.SelectTrigger,d="w-auto",m=z("Model variant: {label}",{label:c.label})}A[0]=z,A[1]=N,A[2]=S,A[3]=M,A[4]=t,A[5]=i,A[6]=c,A[7]=d,A[8]=m,A[9]=p,A[10]=f,A[11]=h,A[12]=g,A[13]=v}else t=A[4],i=A[5],c=A[6],d=A[7],m=A[8],p=A[9],f=A[10],h=A[11],g=A[12],v=A[13];return v!==Symbol.for("react.early_return_sentinel")?v:(A[20]!==c.label?(b=(0,n.jsx)(o.SelectValue,{children:c.label}),A[20]=c.label,A[21]=b):b=A[21],A[22]!==t||A[23]!==d||A[24]!==m||A[25]!==b?(y=(0,n.jsx)(t,{className:d,"aria-label":m,children:b}),A[22]=t,A[23]=d,A[24]=m,A[25]=b,A[26]=y):y=A[26],A[27]!==S?(x=S.map(u),A[27]=S,A[28]=x):x=A[28],A[29]!==x?(w=(0,n.jsx)(o.SelectContent,{children:x}),A[29]=x,A[30]=w):w=A[30],A[31]!==i||A[32]!==w||A[33]!==p||A[34]!==f||A[35]!==y?(k=(0,n.jsxs)(i,{value:p,onValueChange:f,children:[y,w]}),A[31]=i,A[32]=w,A[33]=p,A[34]=f,A[35]=y,A[36]=k):k=A[36],A[37]!==k||A[38]!==h?(_=(0,n.jsx)("div",{className:h,children:k}),A[37]=k,A[38]=h,A[39]=_):_=A[39],A[40]!==_||A[41]!==g?(j=(0,n.jsxs)(n.Fragment,{children:[g,_]}),A[40]=_,A[41]=g,A[42]=j):j=A[42],j)}function u(e){return(0,n.jsx)(o.SelectItem,{value:e.value,children:e.label},e.value)}function d(e){return{value:e,label:e}}e.s(["f",0,c],851296),e.s(["G",0,function(e){let t,i,r=(0,a.c)(6),{variantList:l,selectedVariant:o,onVariantChange:s}=e;return l.length<=1?null:(r[0]!==l?(t=l.map(d),r[0]=l,r[1]=t):t=r[1],r[2]!==s||r[3]!==o||r[4]!==t?(i=(0,n.jsx)(c,{options:t,value:o,onValueChange:s}),r[2]=s,r[3]=o,r[4]=t,r[5]=i):i=r[5],i)},"M",0,function(e){let t=new Map;for(let i of e){let e=t.get(i.display_name);e?(e.total+=i.elo,e.count+=1):t.set(i.display_name,{total:i.elo,count:1})}return[...t.entries()].toSorted(([,e],[,t])=>t.count-e.count||t.total/t.count-e.total/e.count).map(([e])=>e)}],974558)},839952,e=>{"use strict";var t=e.i(837808),i=e.i(189360),n=e.i(658108);let a=["http://127.0.0.1:9002","http://localhost:9002"];function r(e){let t="https://openrouter.ai";if(e.startsWith(`${t}/images/`))return e.slice(t.length);for(let t of a){let i=`${t}/model-assets-dev/`;if(e.startsWith(i))return e.slice(t.length)}return e}var l=e.i(614184),o=e.i(427150);function s(e){return{id:e.permaslug,name:e.name,author:e.author}}var c=e.i(257509);function u(e,{standing:t,modelPermaslug:a}){var r;let l,o;return{id:e.slug,kind:"style"===e.kind?"showcase":"challenge",label:e.navLabel,prompt:e.prompt,href:(l=(0,i.x)(e.modality,e.slug),o=e.variantCount>1?`${l}?variant=${encodeURIComponent(e.variantSlug)}`:l,(0,n.n)(o,a)),costUsd:e.costUsd,durationMs:e.durationMs,score:void 0===e.score?null:{score:(r=e.score).checks.filter(e=>e.pass).length,total:r.checks.length,checks:r.checks.map(e=>({label:e.label,pass:e.pass})),...void 0!==r.judges&&{judges:r.judges.map(e=>({id:e.permaslug,name:e.name,author:e.author}))}},rank:t?.challenges[e.slug]??null}}e.s(["y",0,function(e,i){let n=e.challenges.filter(e=>null!==e.rank),a=n.reduce((e,i)=>{let n=i.modality===t.Z?(0,c.$)(i.correctness,i.delivery):null!==i.score?0===i.score.total?null:i.score.score/i.score.total:null;return null===n||null!==e&&n{var i,d;return i={standing:a,modelPermaslug:n},e.modality===t.Z?{...u(e,i),modality:e.modality,audioUrl:r(e.asset.url),peaks:e.asset.peaks??[],voice:e.asset.voice,transcript:e.asset.transcript,correctness:(0,c.v)({heard:(d=e.heard,(0,o.f)(d)?{text:d.text,judge:s(d.judge)}:null),transcript:e.asset.transcript},e.prompt),delivery:function(e){if(!(0,o.f)(e))return null;let t=(0,l.S)(e);return 0===t.length?null:{checks:t,judges:(e.judges??[]).map(s)}}(e.score)}:{...u(e,i),modality:e.modality,url:r(e.asset.url),thumbnailUrl:null===e.asset.thumbnailUrl?null:r(e.asset.thumbnailUrl),frameThumbnailUrls:(e.asset.frameThumbnailUrls??[]).map(r),width:e.asset.width,height:e.asset.height}});return{modality:i,challenges:d.filter(e=>"challenge"===e.kind),showcases:d.filter(e=>"showcase"===e.kind),standing:a}}],839952)},585351,e=>{"use strict";var t=e.i(126801),i=e.i(851671),n=e.i(819750),a=e.i(524287),r=e.i(119816),l=e.i(430022),o=e.i(562576),s=e.i(613497),c=e.i(173465),u=e.i(368174);function d(e){return(t,i)=>{var n,a,r;if(null===e||void 0===i)return;let l=i.queryKey.at(-1);if(n=l,(0,u.f)(n)&&"permaslug"in n&&"variant"in n&&"perfWorkload"in n&&"latencyMetric"in n){return(a=e,r=l,a.permaslug===r.permaslug&&a.variant===r.variant&&a.perfWorkload===r.perfWorkload&&a.latencyMetric===r.latencyMetric)?t:void 0}}}let m=(0,a.f)("model-page",{endpointStats:e=>[null===e?null:{permaslug:e.permaslug,variant:e.variant,perfWorkload:e.perfWorkload,latencyMetric:e.latencyMetric,reasoningEffort:e.reasoningEffort}],providerTableEndpointStats:e=>[null===e?null:{permaslug:e.permaslug,variant:e.variant,perfWorkload:e.perfWorkload,latencyMetric:e.latencyMetric,reasoningEffort:e.reasoningEffort}],uptimeRecent:e=>[null===e?null:{permaslug:e}],uptimeRecentPrivate:(e,t)=>[null===e||null===t?null:{entityId:e,endpointIds:t}],endpointUptimeHourly:e=>[{endpointId:e.endpointId,entityId:e.entityId,isPrivateView:e.isPrivateView}],appStats:e=>[{permaslug:e.permaslug,variant:e.variant}],modelActivity:e=>[null===e?null:{permaslug:e.permaslug,variant:e.variant}],benchmarkScores:e=>[{permaslug:e}],topColos:e=>[{permaslug:e}],providerTokenChart:e=>[{permaslug:e.permaslug,providerSlug:e.providerSlug,variant:e.variant}]});function p(e,i=new Date){if(e.history.length>=72)return e.history.map(e=>({date:(0,l.y)(e.date),uptime:e.uptime})).toReversed();let n=new Map(e.history.map(e=>[e.date,e.uptime]));return Array.from({length:72},(e,a)=>{let r=new Date(i);return r.setUTCHours(r.getUTCHours()-(71-a)),r.setUTCMinutes(0),r.setUTCSeconds(0),r.setUTCMilliseconds(0),{date:r,uptime:n.get((0,t.f)(r))??null}})}let f=(0,a.f)("model-uptime",{recent:({permaslug:e,variant:t,isPrivateView:i})=>[{permaslug:e,variant:t,isPrivateView:i}]}),h=(0,a.f)("model-pricing",{summary:e=>[null===e?null:{permaslug:e.permaslug,variant:e.variant}],listed:({permaslug:e,variant:t,range:i})=>[{permaslug:e,variant:t,range:i}],effectiveChart:({permaslug:e,variant:t,range:i})=>[{permaslug:e,variant:t,range:i}]});function g(e){return{response:e,summaries:e.providerSummaries,totalTokens:e.providerSummaries.reduce((e,t)=>e+t.totalTokens,0)}}e.s(["S",0,function(e){return(0,c.f)({queryKey:m.appStats(e),queryFn:({signal:t})=>(0,n.f)("/api/frontend/v1/stats/top-apps-for-model",{searchParams:{permaslug:e.permaslug,variant:e.variant},signal:t})})},"v",0,function(e){return(0,c.f)({queryKey:m.benchmarkScores(e),queryFn:({signal:t})=>(0,n.f)("/api/frontend/v1/stats/benchmark-scores",{searchParams:{permaslug:e},signal:t})})},"w",0,function(e,t,i){return(0,c.f)({queryKey:h.effectiveChart({permaslug:e,variant:t,range:i}),queryFn:null===i?s.V:({signal:a})=>(0,n.f)("/api/frontend/v1/stats/effective-pricing",{searchParams:{permaslug:e,variant:t,shape:o.S,range:i},signal:a}),placeholderData:s.y})},"K",0,function(e){return(0,c.f)({queryKey:h.summary(e),queryFn:null===e?s.V:({signal:t})=>(0,n.f)("/api/frontend/v1/stats/effective-pricing",{searchParams:{permaslug:e.permaslug,variant:e.variant,shape:o.S},signal:t}),select:g,staleTime:6e5,refetchOnWindowFocus:!1})},"T",0,function(e){return(0,c.f)({queryKey:m.endpointStats(e),queryFn:null===e?s.V:({signal:t})=>(0,n.f)("/api/frontend/v1/stats/endpoint",{searchParams:{permaslug:e.permaslug,variant:e.variant,perfWorkload:e.perfWorkload,latencyMetric:e.latencyMetric,reasoningEffort:e.reasoningEffort},signal:t}),placeholderData:d(e)})},"V",0,function({endpointId:e,entityId:t,isPrivateView:i}){return(0,c.f)({queryKey:m.endpointUptimeHourly({endpointId:e,entityId:t,isPrivateView:i}),queryFn:null===e||i&&null===t?s.V:({signal:t})=>(0,n.f)(i?"/api/frontend/v1/private/stats/uptime-hourly-private":"/api/frontend/v1/stats/uptime-hourly",{searchParams:i?{endpointIds:e}:{id:e},signal:t}),select:p,staleTime:r.y.COALESCE_MOUNTS})},"U",0,function(e,t,a){return(0,c.f)({queryKey:h.listed({permaslug:e,variant:t,range:a}),queryFn:null===a?s.V:({signal:r})=>(0,n.f)("/api/frontend/v1/stats/listed-pricing",{searchParams:{permaslug:e,variant:t,shape:i.f,range:a},signal:r}),placeholderData:s.y})},"g",0,function(e){return(0,c.f)({queryKey:m.modelActivity(e),queryFn:null===e?s.V:({signal:t})=>(0,n.f)("/api/frontend/v1/stats/model-activity",{searchParams:{permaslug:e.permaslug,variant:e.variant},signal:t})})},"D",0,function(e){let{permaslug:t,variant:i,isPrivateView:a}=e;return(0,c.f)({queryKey:f.recent({permaslug:t,variant:i,isPrivateView:a}),queryFn:({signal:e})=>(0,n.f)(a?"/api/frontend/v1/private/stats/model-uptime-recent-private":"/api/frontend/v1/stats/model-uptime-recent",{searchParams:{permaslug:t,variant:i},signal:e})})},"h",0,function(e){return(0,c.f)({queryKey:m.providerTableEndpointStats(e),queryFn:null===e?s.V:({signal:t})=>(0,n.f)("/api/frontend/v1/stats/endpoint",{searchParams:{permaslug:e.permaslug,variant:e.variant,perfWorkload:e.perfWorkload,latencyMetric:e.latencyMetric,reasoningEffort:e.reasoningEffort},signal:t}),placeholderData:d(e)})},"F",0,function(e){return(0,c.f)({queryKey:m.providerTokenChart(e),queryFn:null===e.providerSlug?s.V:({signal:t})=>(0,n.f)("/api/frontend/v1/stats/provider-token-chart",{searchParams:{provider:e.providerSlug,permaslug:e.permaslug,variant:e.variant},signal:t})})},"n",0,function(e){return(0,c.f)({queryKey:m.topColos(e),queryFn:({signal:t})=>(0,n.f)("/api/frontend/v1/stats/top-colos-for-model",{searchParams:{permaslug:e},signal:t})})},"W",0,function(e){return(0,c.f)({queryKey:m.uptimeRecent(e),queryFn:null===e?s.V:({signal:t})=>(0,n.f)("/api/frontend/v1/stats/uptime-recent",{searchParams:{permaslug:e},signal:t})})},"a",0,function(e,t){return(0,c.f)({queryKey:m.uptimeRecentPrivate(e,t),queryFn:null===e||null===t?s.V:({signal:e})=>(0,n.f)("/api/frontend/v1/private/stats/uptime-recent-private",{searchParams:{endpointIds:t},signal:e})})}],585351)},464608,e=>{"use strict";var t=e.i(663456),i=e.i(618115),n=e.i(626524),a=e.i(221612),r=e.i(839952),l=e.i(369677);function o(e,a){let l,o,s,c=(0,t.c)(10),u=e??"image";c[0]!==a||c[1]!==u?(l=(0,n.D)(a,u),c[0]=a,c[1]=u,c[2]=l):l=c[2],c[3]!==a||c[4]!==u?(o=e=>(0,r.M)(e,{tab:u,modelPermaslug:a}),c[3]=a,c[4]=u,c[5]=o):o=c[5];let d=void 0!==e;return c[6]!==l||c[7]!==o||c[8]!==d?(s={...l,select:o,enabled:d},c[6]=l,c[7]=o,c[8]=d,c[9]=s):s=c[9],(0,i.f)(s)}function s(e){return 0===e.challenges.length&&0===e.showcases.length}e.s(["n",0,s,"x",0,function(){let e,i=(0,t.c)(2),{model:n,benchmarkPermaslug:r}=(0,l.useModelPage)();i[0]!==n.output_modalities?(e=(0,a.f)(n.output_modalities),i[0]=n.output_modalities,i[1]=e):e=i[1];let c=e,u=o(c,r);return void 0===c?"absent":"success"!==u.status?u.status:s(u.data)?"absent":"present"},"B",0,o])},764043,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(778553),a=e.i(136562),r=e.i(139697),l=e.i(912147),o=e.i(73668),s=e.i(814492);e.s(["f",0,function(e){let c,u,d,m,p,f=(0,i.c)(9),{app:h,className:g}=e,{entity:v}=(0,o.useEntity)();if(!v.data?.is_internal_admin)return null;f[0]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.G)(),f[0]=c):c=f[0];let b=`${c}/admin-utils/app-editor?url=${encodeURIComponent(h.origin_url)}`;return f[1]!==g?(u=(0,a.f)("text-warning hover:text-warning/80",g),f[1]=g,f[2]=u):u=f[2],f[3]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(n.f,{className:"size-3"}),f[3]=d):d=f[3],f[4]!==b?(m=(0,t.jsx)(l.f,{href:b,target:"_blank",rel:"noopener noreferrer",className:"no-underline",children:d}),f[4]=b,f[5]=m):m=f[5],f[6]!==u||f[7]!==m?(p=(0,t.jsx)(r.Button,{className:u,variant:"outline",size:"icon-sm",render:m}),f[6]=u,f[7]=m,f[8]=p):p=f[8],p}])},444731,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(26463),a=e.i(782143),r=e.i(136562),l=e.i(987457),o=e.i(829622),s=e.i(954217),c=e.i(741155),u=e.i(195362),d=e.i(138257),m=e.i(335609),p=e.i(648888);e.i(707060);var f=e.i(196991),h=e.i(16043),g=e.i(764043);function v(e){let n,r,l,o,s=(0,i.c)(8),{appAnalytics:c}=e,m=(0,d.useLocale)(),p=c.total_tokens;return s[0]!==m||s[1]!==p?(n=(0,a.f)(p,{locale:m,preset:"compact-rounded-thousands"})??"—",s[0]=m,s[1]=p,s[2]=n):n=s[2],s[3]!==n?(r=(0,t.jsx)("span",{children:n}),s[3]=n,s[4]=r):r=s[4],s[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(f.T,{children:(0,t.jsx)("span",{className:"ml-1",children:"tokens"})}),s[5]=l):l=s[5],s[6]!==r?(o=(0,t.jsx)(u.R,{className:"text-muted-foreground text-xs",children:(0,t.jsxs)("div",{children:[r,l]})}),s[6]=r,s[7]=o):o=s[7],o}e.s(["f",0,function(e){var a;let d,b,y,x,w,k,_,j,A,S,M,N,z,C,P,T=(0,i.c)(35),{appAnalytics:I,rank:E}=e,{app:O}=I,[R,L]=(0,h.useState)(O);if(!R)return null;T[0]!==R?(d=new URL((a=R).origin_url),b={name:a.title||(0,m.d)(d.host+d.pathname),description:a.description},T[0]=R,T[1]=b):b=T[1];let F=b,D=R.favicon_url||R.main_url||R.origin_url||"";T[2]!==E?(y=(0,t.jsxs)(u.r,{children:[E,"."]}),T[2]=E,T[3]=y):y=T[3],T[4]!==R.icon_class_name?(x=(0,r.f)("size-full",R.icon_class_name),T[4]=R.icon_class_name,T[5]=x):x=T[5];let U=R.favicon_url?R.id:void 0;return T[6]!==x||T[7]!==U||T[8]!==D?(w=(0,t.jsx)(l.f,{variant:"app",className:"size-6 shrink-0",children:(0,t.jsx)(o.RemoteFavicon,{className:x,faviconFor:D,curatedIconAppId:U})}),T[6]=x,T[7]=U,T[8]=D,T[9]=w):w=T[9],T[10]!==R?(k=(0,p.f)(R),T[10]=R,T[11]=k):k=T[11],T[12]===Symbol.for("react.memo_cache_sentinel")?(_=(0,t.jsx)(n.f,{className:"inline w-4 transition-transform group-hover:translate-x-0.5"}),T[12]=_):_=T[12],T[13]!==F.name||T[14]!==k?(j=(0,t.jsxs)(s.TextLink,{size:"body",weight:"medium",className:"group block truncate",href:k,children:[F.name," ",_]}),T[13]=F.name,T[14]=k,T[15]=j):j=T[15],T[16]!==F.description?(A=F.description?(0,t.jsx)(c.f,{content:F.description,side:"bottom",align:"start",inline:!0,children:(0,t.jsx)("span",{className:"truncate cursor-help",children:F.description})}):(0,t.jsx)(f.T,{children:(0,t.jsx)("span",{className:"text-faint",children:"new"})}),T[16]=F.description,T[17]=A):A=T[17],T[18]!==R?(S=(0,t.jsx)(g.f,{app:R,onUpdate:L}),T[18]=R,T[19]=S):S=T[19],T[20]!==S||T[21]!==A?(M=(0,t.jsxs)("div",{className:"text-muted-foreground flex items-center gap-1 text-xs",children:[A,S]}),T[20]=S,T[21]=A,T[22]=M):M=T[22],T[23]!==M||T[24]!==j?(N=(0,t.jsxs)(u.T,{children:[j,M]}),T[23]=M,T[24]=j,T[25]=N):N=T[25],T[26]!==N||T[27]!==w?(z=(0,t.jsxs)(u.B,{children:[w,N]}),T[26]=N,T[27]=w,T[28]=z):z=T[28],T[29]!==I?(C=(0,t.jsx)(v,{appAnalytics:I}),T[29]=I,T[30]=C):C=T[30],T[31]!==z||T[32]!==C||T[33]!==y?(P=(0,t.jsxs)(u.F,{children:[y,z,C]}),T[31]=z,T[32]=C,T[33]=y,T[34]=P):P=T[34],P}])},916998,277582,e=>{"use strict";var t=e.i(659350),i=e.i(663456);function n(e){return"number"==typeof e&&e>0&&e<1}function a(e){return`${Math.round(100*e)}% off`}e.s(["m",0,a,"i",0,n],277582);var r=e.i(136562),l=e.i(233452);e.s(["f",0,function(e){let o,s,c,u=(0,i.c)(21),{discount:d,variant:m,className:p}=e,f=void 0===m?"prominent":m;if(!n(d))return null;if("caption"===f){let e,i,n;return u[0]!==p?(e=(0,r.f)("shrink-0 text-caption font-medium text-positive-text",p),u[0]=p,u[1]=e):e=u[1],u[2]!==d?(i=a(d),u[2]=d,u[3]=i):i=u[3],u[4]!==e||u[5]!==i?(n=(0,t.jsx)("span",{className:e,children:i}),u[4]=e,u[5]=i,u[6]=n):n=u[6],n}if("subdued"===f){let e,i,n;return u[7]!==p?(e=(0,r.f)("shrink-0 text-xs font-medium text-positive-text",p),u[7]=p,u[8]=e):e=u[8],u[9]!==d?(i=a(d),u[9]=d,u[10]=i):i=u[10],u[11]!==e||u[12]!==i?(n=(0,t.jsx)("span",{className:e,children:i}),u[11]=e,u[12]=i,u[13]=n):n=u[13],n}return u[14]!==p?(o=(0,r.f)("shrink-0",p),u[14]=p,u[15]=o):o=u[15],u[16]!==d?(s=a(d),u[16]=d,u[17]=s):s=u[17],u[18]!==o||u[19]!==s?(c=(0,t.jsx)(l.Badge,{variant:"positive",size:"sm",className:o,children:s}),u[18]=o,u[19]=s,u[20]=c):c=u[20],c}],916998)},939044,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(233452),a=e.i(751155);e.i(707060);var r=e.i(387086),l=e.i(919035);let o={Endpoint:"endpoint",Provider:"provider"},s={[o.Endpoint]:(0,r.b)("Covered by a business associate agreement: HIPAA traffic may route to this endpoint."),[o.Provider]:(0,r.b)("At least one of this provider's endpoints is covered by a business associate agreement. Check each model for HIPAA eligibility.")};e.s(["A",0,o,"X",0,function(e){let r,c,u,d=(0,i.c)(6),{isEligible:m,scope:p}=e,f=void 0===p?o.Endpoint:p,h=(0,l.f)();if(!m)return null;let g=s[f];return d[0]!==h||d[1]!==g?(r=h(g),d[0]=h,d[1]=g,d[2]=r):r=d[2],d[3]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(a.TooltipNonInteractiveTrigger,{className:"inline-flex shrink-0 cursor-help",children:(0,t.jsx)(n.Badge,{variant:"info",size:"sm",children:"HIPAA"})}),d[3]=c):c=d[3],d[4]!==r?(u=(0,t.jsx)(a.Tooltip,{side:"top",content:r,children:c}),d[4]=r,d[5]=u):u=d[5],u}])},626524,356713,e=>{"use strict";var t=e.i(663456);let i=["index","coding","math","academic","finance","legal","healthcare","education","cyber"];function n(e){let t=new Map;for(let i of e){let e=t.get(i.vals_model_key);if(e){e.recordList.push(i);continue}t.set(i.vals_model_key,{valsModelKey:i.vals_model_key,label:i.vals_model_label,recordList:[i]})}return[...t.values()].toSorted((e,t)=>t.recordList.length-e.recordList.length||e.valsModelKey.localeCompare(t.valsModelKey))}function a(e,t){let i=e.split(".").map(Number),n=t.split(".").map(Number),a=Math.max(i.length,n.length);for(let e=0;e({industry:e,recordList:t.toSorted((e,t)=>e.benchmark_title.localeCompare(t.benchmark_title))})).toSorted((e,t)=>l(e.industry,t.industry))},"S",0,n,"z",0,function(e){return e.split(/[-_\s]+/).filter(e=>e.length>0).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")},"c",0,function(e){let t=new Map;for(let i of e){let e=t.get(i.benchmark_family);(!e||a(i.benchmark_version,e.benchmark_version)>0)&&t.set(i.benchmark_family,i)}return[...t.values()]}],356713);var s=e.i(702596),c=e.i(819750),u=e.i(524287),d=e.i(342837),m=e.i(837808),p=e.i(173465),f=e.i(613497),h=e.i(238819);let g=(0,u.f)("model-benchmarks",{artificialAnalysis:e=>[null===e?null:{slug:e}],allArtificialAnalysis:()=>[],designArena:e=>[null===e?null:{slug:e}],valsAi:e=>[null===e?null:{slug:e}],arenaStrip:(e,t)=>[{permaslug:e,tab:t,view:m.U}]}),v={tiles:[]};async function b(e){try{return await e}catch(e){if(e instanceof s.o&&e.errorT.status===d.g.S404_Not_Found)return v;throw e}}function y(e){return(0,p.f)({queryKey:g.valsAi(e),queryFn:null===e?f.V:({signal:t})=>(0,c.f)("/api/frontend/v1/private/vals-ai-benchmarks",{searchParams:{slug:e},signal:t})})}function x(e){return y(e)}function w(e){var t,i=[...(function(e){let t=new Map;for(let i of e){let e=new Set;for(let n of i){let i=JSON.stringify([n.benchmark_family,n.benchmark_version]);if(e.has(i))continue;e.add(i);let a=t.get(n.benchmark_family)??new Map;t.set(n.benchmark_family,a);let r=a.get(n.benchmark_version);if(r){r.modelCount+=1;continue}a.set(n.benchmark_version,{reference:n,modelCount:1})}}return new Map([...t].map(([e,t])=>[e,[...t.values()]]))})(t=e.map(e=>n(e.data?.records??[])[0]?.recordList??[])).values()].flatMap(e=>{let i=e.toSorted(o)[0];if(!i)return[];let{benchmark_family:n,benchmark_version:a}=i.reference;return[{family:n,version:a,title:i.reference.benchmark_title,industry:i.reference.benchmark_industry,recordByModel:t.map(e=>e.find(e=>e.benchmark_family===n&&e.benchmark_version===a)??null)}]});let a=new Map;for(let e of i){let t=a.get(e.industry)??[];t.push(e),a.set(e.industry,t)}return[...a.entries()].map(([e,t])=>({industry:e,benchmarkList:t.toSorted((e,t)=>e.title.localeCompare(t.title))})).toSorted((e,t)=>l(e.industry,t.industry))}e.s(["K",0,function(){return(0,p.f)({queryKey:g.allArtificialAnalysis(),queryFn:({signal:e})=>(0,c.f)("/api/frontend/v1/private/artificial-analysis-benchmarks/all",{signal:e})})},"D",0,function(e,t){return(0,p.f)({queryKey:g.arenaStrip(e,t),queryFn:({signal:i})=>b((0,c.f)(`/api/frontend/v1/arena/explore/models/${e}`,{searchParams:{tab:t,view:m.U},signal:i})),staleTime:6e4})},"T",0,function(e){return(0,p.f)({queryKey:g.artificialAnalysis(e),queryFn:null===e?f.V:({signal:t})=>(0,c.f)("/api/frontend/v1/private/artificial-analysis-benchmarks",{searchParams:{slug:e},signal:t})})},"q",0,function(e){return(0,p.f)({queryKey:g.designArena(e),queryFn:null===e?f.V:({signal:t})=>(0,c.f)("/api/frontend/v1/private/design-arena-benchmarks",{searchParams:{slug:e},signal:t})})},"t",0,function(e){let i,n,a=(0,t.c)(4);return a[0]!==e?(i=e.map(x),a[0]=e,a[1]=i):i=a[1],a[2]!==i?(n={queries:i,combine:w},a[2]=i,a[3]=n):n=a[3],(0,h.f)(n)},"s",0,y],626524)},901117,e=>{"use strict";e.s(["Q",0,"https://eu.openrouter.ai/api/v1","W",0,"/docs/guides/features/in-region-routing","i",0,"https://us.openrouter.ai/api/v1"])},206020,e=>{"use strict";var t=e.i(819750),i=e.i(524287),n=e.i(173465),a=e.i(613497);let r=(0,i.f)("router-activity",{detail:e=>[e]});e.s(["f",0,function(e){return(0,n.f)({queryKey:r.detail(e),queryFn:null===e?a.V:({signal:i})=>(0,t.f)("/api/frontend/v1/stats/router-activity",{searchParams:{permaslug:e},signal:i})})}])}]); //# sourceMappingURL=272uyegexoesm.js.map