(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,828342,e=>{"use strict";function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function r(e){for(var r=1;re(r(r({},t),n)),n;function n(e,...r){let i="string"==typeof e?[e]:e.raw,{alignValues:a=!1,escapeSpecialCharacters:l=Array.isArray(e),trimWhitespace:s=!0}=t,o="";for(let e=0;e" "===t[0]||" "===t[0]?t.slice(e):t).join("\n")}return s&&(o=o.trim()),l&&(o=o.replace(/\\n/g,"\n").replace(/\\t/g," ").replace(/\\r/g,"\r").replace(/\\v/g,"\v").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\0/g,"\0").replace(/\\x([\da-fA-F]{2})/g,(e,t)=>String.fromCharCode(parseInt(t,16))).replace(/\\u\{([\da-fA-F]{1,6})\}/g,(e,t)=>String.fromCodePoint(parseInt(t,16))).replace(/\\u([\da-fA-F]{4})/g,(e,t)=>String.fromCharCode(parseInt(t,16)))),"u">typeof Bun&&(o=o.replace(/\\u(?:\{([\da-fA-F]{1,6})\}|([\da-fA-F]{4}))/g,(e,t,r)=>{var n;return String.fromCodePoint(parseInt(null!=(n=null!=t?t:r)?n:"",16))})),o}}({});e.s(["f",0,n])},217524,e=>{"use strict";var t=e.i(651681);let r={name:"beaker",size:24,node:[["path",{d:"M4.5 3h15",key:"c7n0jr"}],["path",{d:"M6 3v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V3",key:"m1uhx7"}],["path",{d:"M6 14h12",key:"4cwo0f"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],217524)},241696,726866,e=>{"use strict";var t=e.i(651681);let r={name:"blend",size:24,node:[["circle",{cx:"15",cy:"9",r:"7",key:"1i12rt"}],["circle",{cx:"9",cy:"15",r:"7",key:"19bs8k"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],241696);let i={name:"file-diff",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]]};i.node;let a=(0,t.f)(i);e.s(["f",0,a],726866)},29411,e=>{"use strict";var t=e.i(651681);let r={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],29411)},193854,e=>{"use strict";var t=e.i(651681);let r={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],193854)},803157,e=>{"use strict";var t=e.i(651681);let r={name:"code-xml",size:24,node:[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],aliases:["code-2"]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],803157)},10460,e=>{"use strict";var t=e.i(651681);let r={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],10460)},258990,e=>{"use strict";var t=e.i(651681);let r={name:"cpu",size:24,node:[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],258990)},569019,e=>{"use strict";var t=e.i(651681);let r={name:"files",size:24,node:[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],569019)},275173,e=>{"use strict";var t=e.i(651681);let r={name:"image-plus",size:24,node:[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],275173)},63135,e=>{"use strict";var t=e.i(651681);let r={name:"lightbulb",size:24,node:[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],63135)},621591,e=>{"use strict";var t=e.i(651681);let r={name:"link-2",size:24,node:[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],621591)},173155,e=>{"use strict";var t=e.i(651681);let r={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],173155)},121514,e=>{"use strict";var t=e.i(651681);let r={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"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n])},856883,e=>{"use strict";var t=e.i(121514);e.s(["f",()=>t.f])},750636,e=>{"use strict";var t=e.i(651681);let r={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],750636)},5122,e=>{"use strict";var t=e.i(651681);let r={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],5122)},454326,e=>{"use strict";var t=e.i(651681);let r={name:"workflow",size:24,node:[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],454326)},336819,e=>{"use strict";var t=e.i(651681);let r={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],336819)},913743,9634,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(647204),i=e.i(16043),a=e.i(136562),l=e.i(535072);let s=()=>{if("u"0?e:void 0};var o=e.i(866969),c=e.i(67089);let d=null,u=new Map,m=null,h=0,p=(e,t)=>{let r=u.get(e);r&&(u.delete(e),clearTimeout(r.timeoutId),r.resolve(t))},f=()=>{let e,t=(0,r.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={highlight:g},t[0]=e):e=t[0],e};function g(t,r,i){return(({code:t,lang:r,theme:i})=>new Promise(a=>{let l=(()=>{if(m)return null;if(d)return d;let t=(0,n.$)(()=>e.r(405266)(Worker));return(0,n.V)(t)?((0,c.L)("Failed to initialize highlight worker",{message:"Failed to initialize highlight worker",error:t.error,metadata:{location:"highlight.singleton.ts"}}),m=t.error instanceof Error?t.error:Error(String(t.error)),d=null,null):((d=t.data).onmessage=e=>{let{id:t,lines:r,preStyle:n,error:i}=e.data;if(i){(0,c.L)("highlight worker processing error",{message:"highlight worker processing error",error:i,metadata:{location:"highlight.singleton.ts"}}),p(t,null);return}h=0,p(t,{lines:r??[],preStyle:n??""})},d.onerror=e=>{for(let t of((0,c.L)("highlight worker script error",{message:"highlight worker script error",error:e,metadata:{location:"highlight.singleton.ts"}}),(h+=1)>2&&(m=Error(e.message||"highlight worker script error")),d?.terminate(),d=null,u.keys()))p(t,null)},d)})();if(!l)return void a(null);let s=crypto.randomUUID(),o=setTimeout(()=>p(s,null),1e4);u.set(s,{resolve:a,timeoutId:o});let f=(0,n.$)(()=>l.postMessage({id:s,code:t,lang:r,theme:i}));(0,n.V)(f)&&p(s,null)}))({code:t,lang:r,theme:i})}e.s(["f",0,f],9634);let b=(0,i.memo)(e=>{let n,i=(0,r.c)(2),{html:a}=e;return i[0]!==a?(n=(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:a}}),i[0]=a,i[1]=n):n=i[1],n}),v=(0,i.memo)(e=>{let n,i=(0,r.c)(2),{text:a}=e,l=a||" ";return i[0]!==l?(n=(0,t.jsx)("div",{children:l}),i[0]=l,i[1]=n):n=i[1],n});e.s(["f",0,({code:e,lang:c,theme:d,roundedCorners:u=!0,border:m=!0,codeBackgroundClassName:h="bg-doc-surface",lineNumbers:p=!1,wrap:g=!1})=>{let[x,y]=(0,i.useState)([]),[w,k]=(0,i.useState)({}),[j,N]=(0,i.useState)(""),S=(0,i.useRef)(!1),_=(0,i.useRef)(null),C=(0,i.useRef)(0),{highlight:R}=f(),M=((e=500)=>{let t=(0,i.useMemo)(s,[]),r=(0,l.o)("(min-width: 768px)");return(0,i.useMemo)(()=>void 0!==t?t<2?4e3:t<4?2e3:e:r?e:2e3,[t,r,e])})(500),T=(0,i.useCallback)(e=>{var t;let r,n=(t=e.preStyle,r={},t&&t.split(";").forEach(e=>{let[t,n]=e.split(/:(.*)/s);t&&n&&(r[t.trim().replaceAll(/-(\w)/g,(e,t)=>t.toUpperCase())]=n.trim())}),r);n.backgroundColor="transparent",n.whiteSpace="pre",k(n)},[]);(0,i.useEffect)(()=>{let e=!1;return(0,n.$)(()=>R("",c,d)).then(t=>{e||!(0,n.V)(t)&&t.data&&T(t.data)}),()=>{e=!0}},[c,d,R,T]),(0,i.useEffect)(()=>{_.current={code:e,lang:c,theme:d},C.current=0},[e,c,d]);let O=(0,i.useCallback)(async()=>{if(S.current||!_.current)return;S.current=!0;let e=_.current;_.current=null;let t=await (0,n.$)(()=>R(e.code,e.lang,e.theme));(0,n.V)(t)||!t.data?(C.current+=1,C.current<=5&&(_.current??=e)):(C.current=0,T(t.data),y(t.data.lines),N(e.code)),S.current=!1},[R,T]);!function(e){let t,n,a=(0,r.c)(5),{run:l,intervalMs:s,jobKey:c}=e;a[0]!==l?(t=()=>{l()},a[0]=l,a[1]=t):t=a[1],a[2]!==c||a[3]!==l?(n=[c,l],a[2]=c,a[3]=l,a[4]=n):n=a[4],(0,i.useEffect)(t,n),(0,o.f)(l,s)}({run:(0,i.useCallback)(()=>{O()},[O]),intervalMs:M,jobKey:`${c}|${d}|${e}`});let L=(0,i.useMemo)(()=>j&&e.startsWith(j)?e.substring(j.length):e,[e,j]);(0,i.useEffect)(()=>{j&&!e.startsWith(j)&&y([])},[e,j]);let E=(0,i.useMemo)(()=>L.split("\n"),[L]);return(0,t.jsx)("pre",{className:(0,a.f)("highlights overflow-x-auto min-w-0",m&&"border border-border",u&&"rounded-lg"),style:w,children:(0,t.jsxs)("code",{className:(0,a.f)("p-4",g?"block whitespace-pre-wrap break-words":"inline-block min-w-full whitespace-pre",!p&&!g&&"md:whitespace-pre-wrap",p&&"[counter-reset:line] [&>div]:before:[counter-increment:line] [&>div]:before:content-[counter(line)] [&>div]:before:mr-3 [&>div]:before:inline-block [&>div]:before:w-7 [&>div]:before:text-right [&>div]:before:tabular-nums [&>div]:before:select-none [&>div]:before:text-faint",p&&g&&"[&>div]:pl-10 [&>div]:-indent-10",h),children:[x.map((e,r)=>(0,t.jsx)(b,{html:e},`h-${r}`)),E.slice(+!!j).map((e,r)=>(0,t.jsx)(v,{text:e},`r-${r}`))]})})}],913743)},117786,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(411252);e.s(["FAQAccordion",0,function(e){let i,a,l,s=(0,r.c)(10),{items:o,onItemExpand:c,multiple:d}=e;s[0]!==c?(i=(e,t)=>{"true"!==e.currentTarget.getAttribute("aria-expanded")&&c?.(t)},s[0]=c,s[1]=i):i=s[1];let u=i,m=void 0!==d&&d?"multiple":"single";if(s[2]!==u||s[3]!==o){let e;s[5]!==u?(e=(e,r)=>(0,t.jsxs)(n.AccordionItem,{value:`${r}`,children:[(0,t.jsx)(n.AccordionTrigger,{className:"gap-4 py-4 text-base hover:text-foreground",onClick:t=>u(t,e),children:e.question}),(0,t.jsx)(n.AccordionContent,{"data-testid":"faq-panel",className:"[&>div]:pb-4",hiddenUntilFound:!0,children:(0,t.jsx)("div",{className:"text-body leading-relaxed text-muted-foreground",children:e.answer})})]},r),s[5]=u,s[6]=e):e=s[6],a=o.map(e),s[2]=u,s[3]=o,s[4]=a}else a=s[4];return s[7]!==m||s[8]!==a?(l=(0,t.jsx)(n.Accordion,{type:m,collapsible:!0,children:a}),s[7]=m,s[8]=a,s[9]=l):l=s[9],l}])},678628,e=>{"use strict";e.s(["f",0,"(width < 40rem), (height <= 30rem)"])},46766,e=>{"use strict";var t=e.i(16043),r=e.i(678628);function n(e){let t=window.matchMedia(r.f);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}}function i(){return window.matchMedia(r.f).matches?48:56}function a(){return 56}e.s(["f",0,function(){return(0,t.useSyncExternalStore)(n,i,a)}])},312679,e=>{"use strict";var t=e.i(663456),r=e.i(16043),n=e.i(687186);function i(e){return e()}function a(){}function l(){return 0}e.s(["f",0,function(){let e,s,o=(0,t.c)(3),c=(0,r.useRef)(null);if(null===c.current){let e;o[0]===Symbol.for("react.memo_cache_sentinel")?(e={value:0,listeners:new Set},o[0]=e):e=o[0],c.current=e}o[1]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{let t=c.current;if(!t)return a;t.listeners.add(e);let r=(0,n.b)(),l=document.querySelector("#page-content");if(0===r.length||!l)return()=>t.listeners.delete(e);let s=()=>{let e=Number.parseFloat(getComputedStyle(l).getPropertyValue("--sticky-banner-top")),r=Number.isFinite(e)?e:0;r!==t.value&&(t.value=r,t.listeners.forEach(i))};s();let o="u"o?.observe(e));let d="u"{o?.disconnect(),d?.disconnect(),t.listeners.delete(e)}},o[1]=e):e=o[1];let d=e;o[2]===Symbol.for("react.memo_cache_sentinel")?(s=()=>c.current?.value??0,o[2]=s):s=o[2];let u=s;return(0,r.useSyncExternalStore)(d,u,l)}])},832850,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(354896),i=e.i(750636),a=e.i(16043),l=e.i(136562),s=e.i(512688),o=e.i(233452),c=e.i(139697),d=e.i(359544),u=e.i(848984),m=e.i(232458);let h=new Set(["ArrowDown","ArrowUp","End","Home","PageDown","PageUp"," ","Spacebar"]);function p({id:e,target:t,precedingElements:r,behavior:n,settleMs:i}){(0,m.m)(e);let a=(0,u.$)(),l="auto"===n||!f(t,a),s="auto"===n||!l,o="onscrollend"in window,c=null,d=null,b=s?"settled":"pending",v=!1,x=0,y=e=>{b=function(e,t){if("released"===e)return e;switch(t.type){case"scroll_started":return"pending"===e?"scrolling":e;case"target_landed":return"settled";case"released":return"released";default:return t}}(b,e)},w=()=>{y({type:"target_landed"}),"settled"===b&&(x=g(t,a))},k=(0,u.j)(),j=new Map,N=new ResizeObserver(()=>{if("released"===b)return;let e=!1;for(let t of r){let r=j.get(t),n=t.getBoundingClientRect().height;j.set(t,n),void 0!==r&&r!==n&&(e=!0)}e&&(v=!0,t.scrollIntoView({behavior:"auto",block:"start"}),window.requestAnimationFrame(()=>{v=!1,x=g(t,a)}))}),S=()=>{"released"!==b&&(y({type:"released"}),null!==c&&(window.clearTimeout(c),c=null),null!==d&&(window.clearTimeout(d),d=null),window.removeEventListener("scroll",C),window.removeEventListener("scrollend",R),window.removeEventListener("wheel",M),window.removeEventListener("touchmove",M),window.removeEventListener("keydown",T),document.removeEventListener("scrollend",R),a?.removeEventListener("scroll",C),a?.removeEventListener("scrollend",R),N.disconnect(),(0,m.l)(e))},_=()=>{null===c&&(c=window.setTimeout(S,i))},C=()=>{if("released"===b)return;if(!o){if("pending"===b){if((0,u.j)()===k)return;y({type:"scroll_started"}),_()}"scrolling"===b&&f(t,a)&&w()}let e=g(t,a),r=Math.abs(e-x)>24&&Math.abs(e)>Math.abs(x);"settled"===b&&!v&&r&&S()},R=()=>{"released"!==b&&(w(),_())},M=()=>{S()},T=e=>{h.has(e.key)&&S()};for(let e of r)j.set(e,e.getBoundingClientRect().height),N.observe(e);return window.addEventListener("scroll",C,{passive:!0}),o&&(window.addEventListener("scrollend",R),document.addEventListener("scrollend",R),a?.addEventListener("scrollend",R)),window.addEventListener("wheel",M,{passive:!0}),window.addEventListener("touchmove",M,{passive:!0}),window.addEventListener("keydown",T),a?.addEventListener("scroll",C,{passive:!0}),s&&_(),l?("smooth"===n&&(d=window.setTimeout(S,7500)),t.scrollIntoView({behavior:n,block:"start"}),"auto"===n&&w()):w(),"pending"===b&&window.requestAnimationFrame(()=>{"released"!==b&&f(t,a)&&(w(),_())}),S}function f(e,t){return 1>=Math.abs(g(e,t))}function g(e,t){let r=e.getBoundingClientRect(),n=t?.isConnected&&(0,u.b)(t)?t.getBoundingClientRect().top:0,i=r.top-n,a=Number.parseFloat(getComputedStyle(e).scrollMarginTop);return i-(Number.isNaN(a)?0:a)}var b=e.i(214530);let v={viewport:{desktopOnly:"lg:block",mobileOnly:"lg:hidden"},container:{desktopOnly:"@3xl:block",mobileOnly:"@3xl:hidden"}};function x(e){return{value:e.id,label:(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)(e.icon,{"aria-hidden":!0,className:(0,l.f)("size-4 shrink-0",e.iconClassName)}),(0,t.jsx)("span",{className:"truncate",children:e.label}),(0,t.jsx)(N,{section:e})]})}}function y(e){return!e.mobileOnly}function w(e){return e.el}function k(e){let n,i,s,o,c,d,u,m,h=(0,r.c)(19),{sections:p,activeAnchor:f,onClick:g}=e,b=(0,a.useRef)(null);h[0]===Symbol.for("react.memo_cache_sentinel")?(n=new Map,h[0]=n):n=h[0];let v=(0,a.useRef)(n),[x,y]=(0,a.useState)(null);h[1]!==f?(i=()=>{let e=v.current.get(f);if(!e)return;let t=()=>{y({top:e.offsetTop,height:e.offsetHeight})};t();let r=new ResizeObserver(t);return r.observe(e),b.current&&r.observe(b.current),()=>r.disconnect()},s=[f],h[1]=f,h[2]=i,h[3]=s):(i=h[2],s=h[3]),(0,a.useEffect)(i,s),h[4]===Symbol.for("react.memo_cache_sentinel")?(o=e=>t=>{t?v.current.set(e,t):v.current.delete(e)},h[4]=o):o=h[4];let w=o;if(h[5]!==x?(c=x&&(0,t.jsx)("div",{"aria-hidden":!0,"data-allow-inline-style":!0,className:(0,l.f)("absolute inset-x-0 rounded-md bg-accent pointer-events-none","h-(--pill-height) translate-y-(--pill-top)","transition-[translate] duration-fast ease-in-out-strong motion-reduce:transition-none"),style:{"--pill-height":`${x.height}px`,"--pill-top":`${x.top}px`}}),h[5]=x,h[6]=c):c=h[6],h[7]!==f||h[8]!==g||h[9]!==p){let e;h[11]!==f||h[12]!==g?(e=e=>(0,t.jsx)(j,{section:e,isActive:f===e.id,onClick:g,registerRef:w(e.id)},e.id),h[11]=f,h[12]=g,h[13]=e):e=h[13],d=p.map(e),h[7]=f,h[8]=g,h[9]=p,h[10]=d}else d=h[10];return h[14]!==d?(u=(0,t.jsx)("div",{className:"relative flex flex-col gap-y-px",children:d}),h[14]=d,h[15]=u):u=h[15],h[16]!==c||h[17]!==u?(m=(0,t.jsxs)("div",{ref:b,className:"relative",children:[c,u]}),h[16]=c,h[17]=u,h[18]=m):m=h[18],m}function j(e){let n,i,a,s,o,c,d=(0,r.c)(21),{section:u,isActive:m,onClick:h,registerRef:p}=e,f=u.icon,g=`#${u.id}`;d[0]!==h||d[1]!==u.id?(n=e=>h(e,u.id),d[0]=h,d[1]=u.id,d[2]=n):n=d[2];let b=m?"page":void 0,v=m?"text-accent-foreground":"text-muted-foreground hover:text-accent-foreground hover:bg-card-hover";d[3]!==v?(i=(0,l.f)("relative flex items-center gap-2 px-2 py-1.5 rounded-md text-body font-medium cursor-pointer transition-colors no-underline",v),d[3]=v,d[4]=i):i=d[4];let x=!m&&u.iconClassName;return d[5]!==x?(a=(0,l.f)("size-4",x),d[5]=x,d[6]=a):a=d[6],d[7]!==f||d[8]!==a?(s=(0,t.jsx)(f,{className:a}),d[7]=f,d[8]=a,d[9]=s):s=d[9],d[10]!==u?(o=(0,t.jsx)(N,{section:u}),d[10]=u,d[11]=o):o=d[11],d[12]!==p||d[13]!==u.label||d[14]!==g||d[15]!==n||d[16]!==b||d[17]!==i||d[18]!==s||d[19]!==o?(c=(0,t.jsxs)("a",{ref:p,href:g,onClick:n,"aria-current":b,className:i,children:[s,u.label,o]}),d[12]=p,d[13]=u.label,d[14]=g,d[15]=n,d[16]=b,d[17]=i,d[18]=s,d[19]=o,d[20]=c):c=d[20],c}function N(e){let n,a,l,s=(0,r.c)(7),{section:c}=e;return s[0]!==c.badge?(n=void 0!==c.badge&&(0,t.jsx)(o.Badge,{variant:"secondary",size:"sm",className:"shrink-0",children:c.badge}),s[0]=c.badge,s[1]=n):n=s[1],s[2]!==c.newLabel?(a=void 0!==c.newLabel&&(0,t.jsx)(i.f,{role:"img","aria-label":c.newLabel,className:"size-3.5 shrink-0 text-primary"}),s[2]=c.newLabel,s[3]=a):a=s[3],s[4]!==n||s[5]!==a?(l=(0,t.jsxs)(t.Fragment,{children:[n,a]}),s[4]=n,s[5]=a,s[6]=l):l=s[6],l}function S(e){let t=[];for(let r of e){let e=document.getElementById(r.id);e&&e.getClientRects().length>0&&t.push({id:r.id,el:e})}return t}function _(e){let t=null,r=(0,u.$)(),n=()=>{null===t&&(t=window.requestAnimationFrame(()=>{t=null,e()}))};return window.addEventListener("scroll",n,{passive:!0}),window.addEventListener("resize",n,{passive:!0}),r?.addEventListener("scroll",n,{passive:!0}),()=>{window.removeEventListener("scroll",n),window.removeEventListener("resize",n),r?.removeEventListener("scroll",n),null!==t&&window.cancelAnimationFrame(t)}}e.s(["f",0,function(e){let i,o,h,f,g,j,C,R,M,T,O,L,E,z,A,P,F,I,$,B,U,H,q=(0,r.c)(65),{sections:W,ariaLabel:V,desktopNavTopClass:D,desktopBreakpoint:G,mobileTocTopClass:Q,activationLinePx:Y,onSectionView:X,onSectionSelect:Z,desktopNavFooter:J,mobileNavHeader:K,children:ee}=e,et=void 0===G?"viewport":G,[er,en]=(0,a.useState)(W[0]?.id??""),ei=(0,a.useRef)(W[0]?.id??""),ea=(0,a.useRef)(null),el=(0,a.useRef)(!1),es=(0,s.f)(X),eo=(0,s.f)(Y),ec=(0,a.useRef)(Y);q[0]!==eo||q[1]!==es||q[2]!==W?(i=e=>{let{shouldUpdateHash:t}=e;if(null!==(0,m.k)())return;let r=S(W);if(0===r.length)return;let n=function(e,t){var r;let n,i=(r=t,n=(0,u.$)(),(0,u.b)(n)?n.getBoundingClientRect().top+r:r),a=function(e,t){let r,n,i=(r=(0,u.$)(),(n=(0,u.b)(r)?{scrollTop:r.scrollTop,scrollHeight:r.scrollHeight,clientHeight:r.clientHeight}:{scrollTop:window.scrollY,scrollHeight:document.documentElement.scrollHeight,clientHeight:window.innerHeight}).scrollHeight<=n.clientHeight?null:n);if(null===i)return null;let a=Math.max(0,i.scrollHeight-i.scrollTop-i.clientHeight),l=e.filter(({el:e})=>e.getBoundingClientRect().top-a>t).length;if(0===l||l>=e.length)return null;if(a<=2)return e.at(-1).id;if(a>=96*l)return null;let s=Math.ceil(a/96);return e[e.length-s].id}(e,i);if(null!==a)return a;let l=e[0].id;for(let{id:t,el:r}of e)if(r.getBoundingClientRect().top-i<=0)l=t;else break;return l}(r,eo.current),i=ei.current!==n;if(t&&(i||el.current)&&(el.current=!0,(0,b.Z)(n)),i){if(t&&!(0,m.P)()){let e=W.findIndex(e=>e.id===n),t=W[e];t&&es.current?.(t,e)}ei.current=n,en(n)}},q[0]=eo,q[1]=es,q[2]=W,q[3]=i):i=q[3];let ed=i;q[4]!==Y||q[5]!==ed?(o=()=>{ec.current!==Y&&(ec.current=Y,ed({shouldUpdateHash:!1}))},h=[Y,ed],q[4]=Y,q[5]=ed,q[6]=o,q[7]=h):(o=q[6],h=q[7]),(0,a.useEffect)(o,h),q[8]!==ed||q[9]!==W?(f=()=>{var e;let t,r,n,i=S(W);if(i.length>0&&!el.current){let e=window.location.hash.slice(1);(""===e||i.some(t=>t.id===e))&&(el.current=!0,ea.current=function({elements:e,activeAnchorRef:t,setActiveAnchor:r}){let n=window.location.hash.slice(1);if(!n)return;let i=e.find(e=>e.id===n);if(!i)return;t.current=i.id,r(i.id);let a=e.findIndex(e=>e.id===i.id);return p({id:i.id,target:i.el,precedingElements:e.slice(0,a).map(e=>e.el),behavior:"auto",settleMs:3e3})}({elements:i,activeAnchorRef:ei,setActiveAnchor:en})??null)}ed({shouldUpdateHash:!1});let a=()=>ed({shouldUpdateHash:!0}),l=_(a),s=(0,m.X)(a),o=(e=b.z,t=null,r=(0,u.$)(),n=()=>{null!==t&&window.clearTimeout(t),t=window.setTimeout(()=>{t=null,e()},120)},window.addEventListener("scroll",n,{passive:!0}),window.addEventListener("resize",n,{passive:!0}),r?.addEventListener("scroll",n,{passive:!0}),()=>{null!==t&&window.clearTimeout(t),window.removeEventListener("scroll",n),window.removeEventListener("resize",n),r?.removeEventListener("scroll",n)});return()=>{ea.current?.(),ea.current=null,l(),s(),o()}},q[8]=ed,q[9]=W,q[10]=f):f=q[10],q[11]!==W?(g=[W],q[11]=W,q[12]=g):g=q[12],(0,a.useLayoutEffect)(f,g),q[13]!==W?(j=(e,t)=>{ea.current?.();let r=S(W),n=r.findIndex(t=>t.id===e);ea.current=p({id:e,target:t,precedingElements:-1===n?[]:r.slice(0,n).map(w),behavior:"smooth",settleMs:2500})},q[13]=W,q[14]=j):j=q[14];let eu=j;q[15]!==Z||q[16]!==eu?(C=e=>{let t=document.querySelector(`#${e}`);t&&(ea.current?.(),ea.current=null,(0,m.m)(e),el.current=!0,ei.current=e,en(e),(0,b.e)(e),Z?.(e),eu(e,t))},q[15]=Z,q[16]=eu,q[17]=C):C=q[17];let em=C;q[18]!==em?(R=(e,t)=>{e.preventDefault(),em(t)},q[18]=em,q[19]=R):R=q[19];let eh=R;q[20]!==er||q[21]!==W?(M=W.find(e=>e.id===er)??W[0],q[20]=er,q[21]=W,q[22]=M):M=q[22];let ep=M;q[23]!==W?(T=W.filter(y),q[23]=W,q[24]=T):T=q[24];let ef=T,eg=void 0!==ep,eb=(0,a.useRef)(null),ev=(0,a.useRef)(null);q[25]!==eg?(O=()=>{let e=eb.current,t=ev.current;if(!eg||null===e||null===t)return;let r=()=>{e.toggleAttribute("data-stuck",function({markerBottom:e,barTop:t}){return e{"use strict";function t(){return document.querySelector("#page-content")}function r(e){return null!==e&&"auto"===getComputedStyle(e).overflowY}e.s(["$",0,t,"j",0,function(){let e=t();return r(e)?e.scrollTop:window.scrollY},"Z",0,function(){let e=t();r(e)?e.scrollTo({top:0,behavior:"smooth"}):window.scrollTo({top:0,behavior:"smooth"})},"b",0,r])},232458,e=>{"use strict";var t=e.i(427150);function r(){let e=globalThis.__openrouterSectionNavScrollLock;if((0,t.f)(e))return e.hashPinCount??=0,e.recalcListeners??=new Set,e;let r={anchor:null,hashPinCount:0,recalcListeners:new Set};return globalThis.__openrouterSectionNavScrollLock=r,r}e.s(["k",0,function(){return r().anchor},"P",0,function(){return r().hashPinCount>0},"I",0,function(){r().hashPinCount+=1},"l",0,function(e){let t=r();t.anchor===e&&(t.anchor=null)},"E",0,function(){for(let e of r().recalcListeners)e()},"m",0,function(e){r().anchor=e},"X",0,function(e){let t=r().recalcListeners;return t.add(e),()=>{t.delete(e)}},"e",0,function(){let e=r();e.hashPinCount=Math.max(0,e.hashPinCount-1)}])},214530,e=>{"use strict";var t=e.i(848984),r=e.i(232458);function n(e){let t=`#${e}`;if(window.location.hash===t)return;let r=new URL(window.location.href);r.hash=e,window.history.replaceState(null,"",r)}e.s(["z",0,function(){(0,r.P)()||(0,t.j)()>2||function(){if(""===window.location.hash)return;let{pathname:e,search:t}=window.location;window.history.replaceState(null,"",`${e}${t}`)}()},"Z",0,function(e){(0,r.P)()||2>=(0,t.j)()||n(e)},"e",0,n])},246705,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(207298),i=e.i(288265),a=e.i(872635),l=e.i(354896),s=e.i(10460),o=e.i(961160),c=e.i(16043),d=e.i(136562),u=e.i(192668),m=e.i(199630),h=e.i(913743),p=e.i(139697),f=e.i(988590),g=e.i(828342);let b={javascript:"javascript",typescript:"typescript",tsx:"tsx",python:"python",shell:"shell",rust:"rust",go:"go",json:"json",html:"html",ruby:"ruby"},v={javascript:"javascript",typescript:"typescript",tsx:"tsx",python:"python",shell:"bash",rust:"rust",go:"go",json:"json",html:"html",ruby:"ruby"},x="code",y=new Map([["javascript","JavaScript"],["typescript","TypeScript"],["tsx","TSX"],["python","Python"],["shell","Shell"],["rust","Rust"],["go","Go"],["json","JSON"],["html","HTML"],["ruby","Ruby"]]);function w(e){let t=e.toLowerCase();return(0,f.q)(t,b)?t:void 0}var k=e.i(609623);let j={Block:"block",Line:"line"};function N(e){return"string"==typeof e.value}let S=(0,n.f)("overflow-auto bg-doc-surface font-mono text-body leading-relaxed text-foreground",{variants:{maxHeight:{sm:"max-h-80",md:"max-h-96",lg:"max-h-128",xl:"max-h-none"}},defaultVariants:{maxHeight:"md"}});e.s(["CodeBlock",0,e=>{var n,f;let b,_,C,R,M,T,O,L,E,z,A,P,F,I,$,B,U,H,q,W=(0,r.c)(69),V=(0,i.f)();W[0]!==V?(b=e=>{let t;return e===x?V("Code"):(void 0===(t=w(e))?void 0:y.get(t))??e},W[0]=V,W[1]=b):b=W[1];let D=b,{resolvedTheme:G}=(0,o.i)(),Q=!(0,m.f)(),{isCopied:Y,copyToClipboard:X}=(0,u.f)(1200),[Z,J]=(0,c.useState)(0),K=!0===e.collapsible,[ee,et]=(0,c.useState)(K&&!0===e.defaultCollapsed),er=(0,c.useId)(),en=(H=(0,r.c)(2),q=(0,c.useRef)(null),H[0]===Symbol.for("react.memo_cache_sentinel")?(B=()=>{let e=q.current;if(!e)return;let t=function(){var t;let r,n;if(!e)return;let i=(r=(t=e).scrollLeft>2,n=t.scrollLeft+t.clientWidth{e.removeEventListener("scroll",t),r.disconnect()}},U=[],H[0]=B,H[1]=U):(B=H[0],U=H[1]),(0,c.useEffect)(B,U),q),{value:ei}=e,ea=N(e)?e.title:void 0,el=N(e)?e.language:void 0,es=N(e)?e.rawLanguage:void 0;W[2]!==el||W[3]!==es||W[4]!==ea||W[5]!==ei?(n={title:ea,language:el,rawLanguage:es},_="string"==typeof ei?[{code:ei,title:n.title??n.language??n.rawLanguage??x,language:n.language,rawLanguage:n.rawLanguage}]:Array.isArray(ei)?ei:Object.entries(ei).map(([e,t])=>({rawLanguage:e,title:e,code:t??"",language:w(e)})),W[2]=el,W[3]=es,W[4]=ea,W[5]=ei,W[6]=_):_=W[6];let eo=_,ec="light"===G?e.lightTheme??"github-light":e.darkTheme??"github-dark",ed=void 0!==eo[Z]?Z:0,eu=eo[ed]??eo[0];W[7]!==eu.code||W[8]!==e.dedent?(f=eu.code,C=e.dedent?(0,g.f)(f):f,W[7]=eu.code,W[8]=e.dedent,W[9]=C):C=W[9];let em=C;W[10]!==eu?(R=function(e){if(e.language)return v[e.language];if(!e.rawLanguage)return"text";let t=w(e.rawLanguage);return t?v[t]:e.rawLanguage}(eu),W[10]=eu,W[11]=R):R=W[11];let eh=R;W[12]!==em||W[13]!==X||W[14]!==e?(M=()=>{X(em,{shouldWaitForReset:!1}).then(t=>{t&&e.onCopy?.()})},W[12]=em,W[13]=X,W[14]=e,W[15]=M):M=W[15];let ep=M;W[16]!==ep||W[17]!==Y||W[18]!==V||W[19]!==e.hideCopy?(T=e.hideCopy?null:(0,t.jsx)(p.Button,{type:"button",variant:"ghost",size:"icon-sm",touchTarget:"below-sm","aria-label":Y?V("Copied code"):V("Copy code"),onClick:ep,className:"shrink-0",children:(0,t.jsx)(k.f,{active:Y,from:(0,t.jsx)(s.f,{className:"size-4"}),to:(0,t.jsx)(a.f,{className:"size-4"})})}),W[16]=ep,W[17]=Y,W[18]=V,W[19]=e.hideCopy,W[20]=T):T=W[20];let ef=T;if(e.variant===j.Line){let r,n,i;return W[21]!==e.className?(r=(0,d.f)("flex items-center gap-2 rounded-lg border border-border bg-doc-surface pr-1 pl-4",e.className),W[21]=e.className,W[22]=r):r=W[22],W[23]!==em||W[24]!==en?(n=(0,t.jsx)("code",{ref:en,"data-testid":"code-block",className:"min-w-0 flex-1 overflow-x-auto overscroll-x-contain bg-transparent py-3 font-mono text-body whitespace-pre text-foreground scrollbar-hide",children:em}),W[23]=em,W[24]=en,W[25]=n):n=W[25],W[26]!==ef||W[27]!==r||W[28]!==n?(i=(0,t.jsxs)("div",{className:r,children:[n,ef]}),W[26]=ef,W[27]=r,W[28]=n,W[29]=i):i=W[29],i}let eg=eo.length>1;W[30]!==e.bodyClassName||W[31]!==e.maxHeight?(O=(0,d.f)(S({maxHeight:e.maxHeight}),e.bodyClassName),W[30]=e.bodyClassName,W[31]=e.maxHeight,W[32]=O):O=W[32];let eb=O;W[33]!==em||W[34]!==eh||W[35]!==eb||W[36]!==er||W[37]!==ec||W[38]!==Q?(L=Q?(0,t.jsx)("pre",{"data-testid":"code-block",id:er,className:eb,children:(0,t.jsx)("code",{className:"inline-block min-w-full whitespace-pre bg-transparent p-4 md:whitespace-pre-wrap",children:em})}):(0,t.jsx)("div",{"data-testid":"code-block",id:er,className:eb,children:(0,t.jsx)(h.f,{code:em,lang:eh,theme:ec,roundedCorners:!1,border:!1,codeBackgroundClassName:"bg-transparent"})}),W[33]=em,W[34]=eh,W[35]=eb,W[36]=er,W[37]=ec,W[38]=Q,W[39]=L):L=W[39];let ev=L;W[40]!==e.className?(E=(0,d.f)("overflow-hidden rounded-lg border border-border bg-card",e.className),W[40]=e.className,W[41]=E):E=W[41];let ex=!ee&&"border-b border-border";W[42]!==e.tabClassName||W[43]!==ex?(z=(0,d.f)("flex h-9 items-center justify-between gap-2 px-3",ex,e.tabClassName),W[42]=e.tabClassName,W[43]=ex,W[44]=z):z=W[44],W[45]!==eu.title||W[46]!==er||W[47]!==V||W[48]!==ee||W[49]!==K?(A=K?(0,t.jsx)(p.Button,{type:"button",variant:"ghost",size:"icon-sm","aria-controls":er,"aria-expanded":!ee,"aria-label":ee?V("Show {title}",{title:eu.title}):V("Hide {title}",{title:eu.title}),onClick:()=>et(!ee),className:"shrink-0",children:(0,t.jsx)(l.f,{className:(0,d.f)("size-4 transition-transform",ee&&"-rotate-90")})}):null,W[45]=eu.title,W[46]=er,W[47]=V,W[48]=ee,W[49]=K,W[50]=A):A=W[50],W[51]!==eu.title||W[52]!==eg||W[53]!==e||W[54]!==ed||W[55]!==eo||W[56]!==D?(P=eg?(0,t.jsx)("span",{className:"flex min-w-0 items-center gap-1 overflow-x-auto",children:eo.map((r,n)=>(0,t.jsx)(p.Button,{type:"button",variant:"ghost",size:"xs","aria-pressed":ed===n,onClick:()=>{J(n),e.onTabChange?.(n)},tone:ed===n?void 0:"subdued",className:ed===n?"bg-accent text-accent-foreground":void 0,children:D(r.title)},r.title))}):(0,t.jsx)("span",{className:"truncate text-caption text-muted-foreground",children:D(eu.title)}),W[51]=eu.title,W[52]=eg,W[53]=e,W[54]=ed,W[55]=eo,W[56]=D,W[57]=P):P=W[57],W[58]!==A||W[59]!==P?(F=(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 items-center gap-1",children:[A,P]}),W[58]=A,W[59]=P,W[60]=F):F=W[60],W[61]!==ef||W[62]!==z||W[63]!==F?(I=(0,t.jsxs)("div",{className:z,children:[F,ef]}),W[61]=ef,W[62]=z,W[63]=F,W[64]=I):I=W[64];let ey=ee?null:ev;return W[65]!==I||W[66]!==ey||W[67]!==E?($=(0,t.jsxs)("div",{className:E,children:[I,ey]}),W[65]=I,W[66]=ey,W[67]=E,W[68]=$):$=W[68],$},"CodeBlockVariant",0,j],246705)},548204,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(16043),i=e.i(815922),a=e.i(93836),l=e.i(741780),s=e.i(3758),o=e.i(420304),c=e.i(240070);let d={...o.l,...c.f},u=n.forwardRef(function(e,r){let{render:o,className:c,defaultOpen:u=!1,disabled:m=!1,onOpenChange:h,open:p,style:f,...g}=e,b=(0,i.f)(h),v=(0,l.f)({open:p,defaultOpen:u,onOpenChange:b,disabled:m}),x=n.useMemo(()=>({open:v.open,disabled:v.disabled,transitionStatus:v.transitionStatus}),[v.open,v.disabled,v.transitionStatus]),y=n.useMemo(()=>({...v,onOpenChange:b,state:x}),[v,b,x]),w=(0,a.a)("div",e,{state:x,ref:r,props:g,stateAttributesMapping:d});return(0,t.jsx)(s.p.Provider,{value:y,children:w})});var m=e.i(225421);let h={...o.J,...c.f},p=n.forwardRef(function(e,t){let{panelId:r,open:n,handleTrigger:i,state:l,disabled:o}=(0,s.$)(),{className:c,disabled:d=o,render:u,nativeButton:p=!0,style:f,...g}=e,{getButtonProps:b,buttonRef:v}=(0,m.f)({disabled:d,native:p});return(0,a.a)("button",e,{state:l,ref:[t,v],props:[{"aria-controls":n?r:void 0,"aria-expanded":n,onClick:i},g,b],stateAttributesMapping:h})});var f=e.i(533124),g=e.i(612308),b=e.i(22525);let v=n.forwardRef(function(e,t){let{className:r,hiddenUntilFound:n,keepMounted:i,render:l,id:o,style:c,...u}=e,{defaultPanelId:m,mounted:h,onOpenChange:p,open:v,setMounted:x,setPanelIdState:y,setOpen:w,state:k,transitionStatus:j}=(0,s.$)(),N=o||void 0,S=N??m;(0,f.f)(()=>(y(e=>N??(null===e?void 0:e)),()=>{y(e=>e===N?null:e)}),[N,y]);let{height:_,props:C,ref:R,shouldPreventOpenAnimation:M,shouldRender:T,transitionStatus:O,width:L}=(0,b.f)({externalRef:t,hiddenUntilFound:n??!1,id:S,keepMounted:i??!1,mounted:h,onOpenChange:p,open:v,setMounted:x,setOpen:w,transitionStatus:j}),E={...k,transitionStatus:O},z=(0,g.f)(c,E),A=(0,a.a)("div",{...e,style:void 0},{state:E,ref:R,props:[C,{style:{"--collapsible-panel-height":void 0===_?"auto":`${_}px`,"--collapsible-panel-width":void 0===L?"auto":`${L}px`}},u,z?{style:z}:void 0,M?{style:{animationName:"none"}}:void 0],stateAttributesMapping:d});return T?A:null});e.s(["Panel",0,v,"Root",0,u,"Trigger",0,p],772956);var x=e.i(772956),x=x,y=x,w=x,k=e.i(136562),j=e.i(159125);e.s(["Collapsible",0,function(e){let n,i,a=(0,r.c)(4);return a[0]!==e?({...n}=e,a[0]=e,a[1]=n):n=a[1],a[2]!==n?(i=(0,t.jsx)(x.Root,{"data-slot":"collapsible",...n}),a[2]=n,a[3]=i):i=a[3],i},"CollapsibleContent",0,function(e){let n,i,a,l,s=(0,r.c)(8);return s[0]!==e?({className:n,...i}=e,s[0]=e,s[1]=n,s[2]=i):(n=s[1],i=s[2]),s[3]!==n?(a=e=>(0,k.f)("h-(--collapsible-panel-height)",j.f,"function"==typeof n?n(e):n),s[3]=n,s[4]=a):a=s[4],s[5]!==i||s[6]!==a?(l=(0,t.jsx)(w.Panel,{"data-slot":"collapsible-content",className:a,...i}),s[5]=i,s[6]=a,s[7]=l):l=s[7],l},"CollapsibleTrigger",0,function(e){let n,i,a=(0,r.c)(4);return a[0]!==e?({...n}=e,a[0]=e,a[1]=n):n=a[1],a[2]!==n?(i=(0,t.jsx)(y.Trigger,{"data-slot":"collapsible-trigger",...n}),a[2]=n,a[3]=i):i=a[3],i}],548204)},359544,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(16043),i=e.i(547322),a=e.i(193461),l=e.i(217411),s=e.i(378318);e.s(["f",0,function(e){let o,c,d,u,m,h,p,f=(0,r.c)(28),{title:g,trigger:b,options:v,value:x,onValueChange:y,shouldApplyCurrentValue:w}=e,k=void 0!==w&&w,[j,N]=(0,n.useState)(!1),[S,_]=(0,n.useState)(x),C=(0,n.useRef)(null),R=(0,n.useRef)(!1),M=(0,n.useId)(),T=(0,n.useRef)(null);f[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>T.current?.querySelector('[role="radio"][data-checked]')??null,f[0]=o):o=f[0];let O=o,L=()=>{let e=C.current;return C.current=null,null!==e&&y(e),e},E=e=>{e&&_(L()??x),N(e)},z=e=>{C.current=e!==x||k?e:null,N(!1)},A=e=>{e||L()},P=l.j;f[1]!==b?(c=(0,t.jsx)(l.V,{render:b}),f[1]=b,f[2]=c):c=f[2];let F=l.U;f[3]!==g||f[4]!==M?(d=(0,t.jsx)(s.f,{title:g,titleId:M}),f[3]=g,f[4]=M,f[5]=d):d=f[5];let I=a.x,$=e=>{"string"==typeof e&&(_(e),R.current||z(e))},B=()=>{R.current=!1},U=e=>{R.current=e.key.startsWith("Arrow"),("Enter"===e.key||" "===e.key)&&(e.preventDefault(),z(S))},H=v.map((e,r)=>(0,t.jsx)(i.f,{value:e.value,label:e.label,accessibleLabel:e.accessibleLabel,labelId:`${M}-option-${r}`,isSelected:e.value===S,onSelect:()=>{_(e.value),z(e.value)}},e.value));return f[6]!==I||f[7]!==S||f[8]!==$||f[9]!==B||f[10]!==U||f[11]!==H||f[12]!==M?(u=(0,t.jsx)(I,{ref:T,"aria-labelledby":M,value:S,onValueChange:$,onKeyUpCapture:B,onKeyDownCapture:U,className:"gap-0 px-2",children:H}),f[6]=I,f[7]=S,f[8]=$,f[9]=B,f[10]=U,f[11]=H,f[12]=M,f[13]=u):u=f[13],f[14]!==d||f[15]!==u?(m=(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[d,u]}),f[14]=d,f[15]=u,f[16]=m):m=f[16],f[17]!==F||f[18]!==O||f[19]!==m?(h=(0,t.jsx)(F,{side:"bottom",showCloseButton:!1,keepMounted:!1,initialFocus:O,className:"px-0 pt-3",children:m}),f[17]=F,f[18]=O,f[19]=m,f[20]=h):h=f[20],f[21]!==P||f[22]!==E||f[23]!==A||f[24]!==j||f[25]!==h||f[26]!==c?(p=(0,t.jsxs)(P,{swipeDirection:"down",open:j,onOpenChange:E,onOpenChangeComplete:A,children:[c,h]}),f[21]=P,f[22]=E,f[23]=A,f[24]=j,f[25]=h,f[26]=c,f[27]=p):p=f[27],p}])},547322,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(872635),i=e.i(136562),a=e.i(193461);e.s(["f",0,function(e){let l,s,o,c,d,u,m=(0,r.c)(20),{value:h,label:p,accessibleLabel:f,labelId:g,isSelected:b,onSelect:v}=e,x=b&&"bg-selected-bg";m[0]!==x?(l=(0,i.f)("flex min-h-11 cursor-pointer items-center gap-3 rounded-xl px-2 text-body select-none","transition-colors duration-quick active:bg-card-hover has-focus-visible:shadow-focus",x),m[0]=x,m[1]=l):l=m[1];let y=void 0===f?g:void 0;return m[2]!==f||m[3]!==y||m[4]!==h?(s=(0,t.jsx)("span",{className:"sr-only",children:(0,t.jsx)(a.a,{value:h,"aria-label":f,"aria-labelledby":y})}),m[2]=f,m[3]=y,m[4]=h,m[5]=s):s=m[5],m[6]!==p||m[7]!==g?(o=(0,t.jsx)("span",{id:g,className:"min-w-0 flex-1 text-foreground",children:p}),m[6]=p,m[7]=g,m[8]=o):o=m[8],m[9]!==b?(c=b&&(0,t.jsx)(n.f,{"aria-hidden":!0}),m[9]=b,m[10]=c):c=m[10],m[11]!==c?(d=(0,t.jsx)("span",{className:"flex h-4 w-7 shrink-0 items-center justify-center text-primary",children:c}),m[11]=c,m[12]=d):d=m[12],m[13]!==v||m[14]!==l||m[15]!==s||m[16]!==o||m[17]!==d||m[18]!==h?(u=(0,t.jsxs)("div",{role:"presentation","data-option-value":h,onClick:v,className:l,children:[s,o,d]}),m[13]=v,m[14]=l,m[15]=s,m[16]=o,m[17]=d,m[18]=h,m[19]=u):u=m[19],u}])},829622,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(214051),i=e.i(51365),a=e.i(288265),l=e.i(16043);e.s(["RemoteFavicon",0,function(e){let s,o,c,d,u,m,h,p,f,g,b,v,x,y=(0,r.c)(55),w=(0,a.f)(),[k,j]=(0,l.useState)(null),[N,S]=(0,l.useState)(null),[_,C]=(0,l.useState)(!1),[R,M]=(0,l.useState)(!1),T=e.size||256;y[0]!==_||y[1]!==R||y[2]!==e.curatedIconAppId||y[3]!==e.faviconFor||y[4]!==e.imgSrc||y[5]!==T?(s=function({faviconFor:e,size:t,didCuratedIconFail:r,didSiteIconFail:n,curatedIconAppId:a,imgSrc:l}){if(l)return{source:"given",src:l};if(void 0!==a&&(0,i.Q)(e)&&!r)return{source:"curated",src:(0,i.$)(e)?e:(0,i.g)(a)};let s=n?(0,i.Z)(e):null;return null!==s?{source:"parent-site",src:(0,i.e)(s,t)}:{source:"site",src:(0,i.e)(e,t)}}({faviconFor:e.faviconFor,size:T,didCuratedIconFail:_,didSiteIconFail:R,curatedIconAppId:e.curatedIconAppId,imgSrc:e.imgSrc}),y[0]=_,y[1]=R,y[2]=e.curatedIconAppId,y[3]=e.faviconFor,y[4]=e.imgSrc,y[5]=T,y[6]=s):s=y[6];let{source:O,src:L}=s;y[7]!==e.faviconFor||y[8]!==T||y[9]!==O?(o=t=>{"site"!==O||T<=16||t>16||null!==(0,i.Z)(e.faviconFor)&&M(!0)},y[7]=e.faviconFor,y[8]=T,y[9]=O,y[10]=o):o=y[10];let E=o;y[11]!==e.faviconFor||y[12]!==O?(c=t=>{switch(O){case"curated":if((0,i.$)(e.faviconFor))return void j(t);C(!0);return;case"site":if(null===(0,i.Z)(e.faviconFor))return void j(t);M(!0);return;case"given":case"parent-site":return void j(t);default:j(t)}},y[11]=e.faviconFor,y[12]=O,y[13]=c):c=y[13];let z=c;y[14]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{j(null)},y[14]=d):d=y[14],y[15]!==L?(u=[L],y[15]=L,y[16]=u):u=y[16],(0,l.useEffect)(d,u),y[17]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{C(!1),M(!1)},y[17]=m):m=y[17],y[18]!==e.curatedIconAppId||y[19]!==e.faviconFor||y[20]!==e.imgSrc||y[21]!==T?(h=[e.faviconFor,e.curatedIconAppId,e.imgSrc,T],y[18]=e.curatedIconAppId,y[19]=e.faviconFor,y[20]=e.imgSrc,y[21]=T,y[22]=h):h=y[22],(0,l.useEffect)(m,h),y[23]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{S(null)},y[23]=p):p=y[23],y[24]!==e.imgSrcDark?(f=[e.imgSrcDark],y[24]=e.imgSrcDark,y[25]=f):f=y[25],(0,l.useEffect)(p,f),y[26]!==w||y[27]!==e.faviconFor?(g=w("Favicon for {faviconFor}",{faviconFor:e.faviconFor}),y[26]=w,y[27]=e.faviconFor,y[28]=g):g=y[28],y[29]!==T||y[30]!==g?(b={width:T,height:T,alt:g,className:"h-full w-full object-cover"},y[29]=T,y[30]=g,y[31]=b):b=y[31];let A=b;if(e.imgSrcDark){let r,i,a;return y[32]!==k||y[33]!==A||y[34]!==z||y[35]!==E||y[36]!==L?(r=(0,t.jsx)("span",{className:"block h-full w-full shrink-0 dark:hidden",children:k?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(n.f,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("img",{...A,src:L,onError:e=>z(e.toString()),onLoad:e=>E(e.currentTarget.naturalWidth)})}),y[32]=k,y[33]=A,y[34]=z,y[35]=E,y[36]=L,y[37]=r):r=y[37],y[38]!==N||y[39]!==A||y[40]!==e.imgSrcDark?(i=(0,t.jsx)("span",{className:"hidden h-full w-full shrink-0 dark:block",children:N?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(n.f,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("img",{...A,src:e.imgSrcDark,onError:e=>S(e.toString())})}),y[38]=N,y[39]=A,y[40]=e.imgSrcDark,y[41]=i):i=y[41],y[42]!==e.className||y[43]!==r||y[44]!==i?(a=(0,t.jsxs)("div",{className:e.className,children:[r,i]}),y[42]=e.className,y[43]=r,y[44]=i,y[45]=a):a=y[45],a}return y[46]!==k||y[47]!==A||y[48]!==z||y[49]!==E||y[50]!==L?(v=k?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(n.f,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("picture",{className:"h-full w-full shrink-0",children:(0,t.jsx)("img",{...A,src:L,loading:"lazy",decoding:"async",onError:e=>z(e.toString()),onLoad:e=>E(e.currentTarget.naturalWidth)})}),y[46]=k,y[47]=A,y[48]=z,y[49]=E,y[50]=L,y[51]=v):v=y[51],y[52]!==e.className||y[53]!==v?(x=(0,t.jsx)("div",{className:e.className,children:v}),y[52]=e.className,y[53]=v,y[54]=x):x=y[54],x}])},378318,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(612927),i=e.i(199168),a=e.i(139697),l=e.i(217411);e.s(["f",0,function(e){let s,o,c,d,u,m,h=(0,r.c)(12),{title:p,titleId:f}=e,g=(0,i.o)();return h[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)("div",{"aria-hidden":!0,className:"mx-auto h-1 w-10 rounded-full bg-foreground/20"}),h[0]=s):s=h[0],h[1]!==p||h[2]!==f?(o=(0,t.jsx)(l.L,{id:f,children:p}),h[1]=p,h[2]=f,h[3]=o):o=h[3],h[4]!==g?(c=g("Close"),h[4]=g,h[5]=c):c=h[5],h[6]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(n.X,{"aria-hidden":!0}),h[6]=d):d=h[6],h[7]!==c?(u=(0,t.jsx)(l.O,{render:(0,t.jsx)(a.Button,{variant:"ghost",size:"icon",shape:"pill",touchTarget:"below-sm","aria-label":c,children:d})}),h[7]=c,h[8]=u):u=h[8],h[9]!==o||h[10]!==u?(m=(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[s,(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4 pr-2 pl-4",children:[o,u]})]}),h[9]=o,h[10]=u,h[11]=m):m=h[11],m}])},512688,e=>{"use strict";var t=e.i(663456),r=e.i(16043),n=e.i(143253);e.s(["f",0,function(e){let i,a,l=(0,t.c)(3),s=(0,r.useRef)(e);return l[0]!==e?(i=()=>{s.current=e},a=[e],l[0]=e,l[1]=i,l[2]=a):(i=l[1],a=l[2]),(0,n.f)(i,a),s}])},866969,e=>{"use strict";var t=e.i(663456),r=e.i(16043),n=e.i(143253);e.s(["f",0,function(e,i){let a,l,s,o,c=(0,t.c)(6),d=(0,r.useRef)(e);c[0]!==e?(a=()=>{d.current=e},l=[e],c[0]=e,c[1]=a,c[2]=l):(a=c[1],l=c[2]),(0,n.f)(a,l),c[3]!==i?(s=()=>{if(null===i)return;let e=setInterval(()=>{d.current()},i);return()=>{clearInterval(e)}},o=[i],c[3]=i,c[4]=s,c[5]=o):(s=c[4],o=c[5]),(0,r.useEffect)(s,o)}])},769715,e=>{e.q("/_next/static/immutable/media/highlight.worker.3-ioem5915ckg.ts")},405266,e=>{e.v(e.r(510914).f("static/immutable/chunks/turbopack-worker-38eq_8frvyaul.js",["static/immutable/chunks/0t_n-r81acfo9.js","static/immutable/chunks/418fptazfd3br.js","static/immutable/chunks/turbopack-0bzpzepyyv54r.js","static/immutable/chunks/turbopack-35u-62ruoxs7i.js"]))},51365,e=>{"use strict";e.i(640216);let t=new Set(["ac","co","com","edu","go","gob","gov","ltd","me","ne","net","nom","or","org","plc","sch"]),r=(e,t=256)=>`https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=${e}&size=${t}`,n=new Set(["amazonaws.com","azurewebsites.net","cloudfront.net","firebaseapp.com","fly.dev","github.io","gitlab.io","herokuapp.com","ngrok.app","ngrok.io","netlify.app","onrender.com","pages.dev","run.app","vercel.app","web.app","workers.dev"]),i=/\.(png|jpe?g|ico|svg|webp|gif|bmp)$/i,a=r("https://huggingface.co/");e.s(["t",0,a,"g",0,e=>`/api/frontend/v1/apps/${e}/icon`,"e",0,r,"r",0,e=>`/images/icons/${e}`,"Z",0,e=>{let r=(e=>{let t=/^[a-z][a-z\d+\-.]*:\/\//iu.test(e)?e:`https://${e}`;try{return new URL(t).hostname.toLowerCase().replace(/\.$/u,"")}catch{return null}})(e);if(null===r)return null;let i=r.split(".").slice(1);if(i.length<2||2===i.length&&2===(i[1]??"").length&&t.has(i[0]??""))return null;let a=i.join(".");return[...n].some(e=>a===e||a.endsWith(`.${e}`))?null:`https://${a}`},"Q",0,e=>{try{return i.test(new URL(e).pathname)}catch{return!1}},"$",0,e=>{try{let t=new URL(e).hostname.toLowerCase().replace(/\.$/,"");return"openrouter.ai"===t||t.endsWith(".openrouter.ai")}catch{return!1}}],51365)},640216,e=>{"use strict";var t=e.i(914571),r=e.i(647204),n=e.i(30012);function i(e){let t=e.replaceAll(/^\[|\]$/g,""),r=o(t);if(r)return i(r);if(a(t)){let e=Number.parseInt(t.split(".")[0]??"",10);return 0===e||127===e}let n=l(t);if(n)return n.slice(0,15).every(e=>0===e)&&(0===n[15]||1===n[15]);let s=c(t);return"localhost"===s||s.endsWith(".localhost")||s.includes(":")}function a(e){let t=e.split(".");return 4===t.length&&t.every(e=>/^\d{1,3}$/.test(e)&&Number(e)>=0&&255>=Number(e))}function l(e){let t=e.replaceAll(/^\[|\]$/g,"").toLowerCase(),r=t.indexOf("%");if(-1!==r){if(0===r||r===t.length-1)return null;t=t.slice(0,r)}if(!t.includes(":"))return null;if(t.includes(".")){let e=t.lastIndexOf(":");if(-1===e)return null;let r=t.slice(e+1);if(!a(r))return null;let n=r.split(".").map(Number),i=(n[0]??0)<<8|(n[1]??0),l=(n[2]??0)<<8|(n[3]??0);t=`${t.slice(0,e+1)}${i.toString(16)}:${l.toString(16)}`}let n=t.indexOf("::");if(n!==t.lastIndexOf("::"))return null;let i=-1!==n?function(e,t){let r=e.slice(0,t),n=e.slice(t+2),i=""===r?[]:r.split(":"),a=""===n?[]:n.split(":");if(i.some(e=>""===e)||a.some(e=>""===e))return null;let l=8-i.length-a.length;return l<1?null:[...i,...Array.from({length:l},()=>"0"),...a]}(t,n):t.split(":");return null===i||8!==i.length||i.some(e=>!/^[0-9a-f]{1,4}$/.test(e))?null:i.flatMap(e=>{let t=Number.parseInt(e,16);return[t>>8&255,255&t]})}function s(e){return 254===e[0]&&((e[1]??0)&192)==128}function o(e){let t=l(e);if(null===t)return null;let r=t.slice(0,10).every(e=>0===e)&&255===t[10]&&255===t[11],n=t.slice(0,12).every(e=>0===e),i=t.slice(0,15).every(e=>0===e)&&(0===t[15]||1===t[15]);return!r&&!n||n&&i?null:`${t[12]}.${t[13]}.${t[14]}.${t[15]}`}function c(e){let t=e.toLowerCase(),r=t.length;for(;r>0&&"."===t[r-1];)r-=1;return t.slice(0,r)}t.n,e.s(["b",0,function(e,t){return"https:"===e.protocol||"http:"===e.protocol&&t&&i(e.hostname)},"i",0,function(e){let t=c(e);return"cfargotunnel.com"===t||t.endsWith(".cfargotunnel.com")},"y",0,i,"r",0,function(e){let t=c(e);return"openrouter.ai"===t||t.endsWith(".openrouter.ai")},"E",0,function(e,t={}){let d,u,m,h;try{d=new URL(e)}catch{return(0,r.Y)("Invalid URL format")}let p=d.hostname.toLowerCase(),f=d.protocol,g=(0,n.T)()&&!0;if(i(p)&&g)return"http:"!==f&&"https:"!==f?(0,r.Y)("Only HTTP and HTTPS protocols are allowed"):(0,r.N)(!0);if(i(p))return(0,r.Y)("Localhost URLs are not allowed");if(function e(t){let r=o(t.replaceAll(/^\[|\]$/g,""));if(r)return e(r)||i(r);if(a(t)){let e=t.split(".").map(Number);if(4!==e.length||e.some(e=>Number.isNaN(e)))return!1;let[r,n]=e;return void 0!==r&&void 0!==n&&(10===r||172===r&&n>=16&&n<=31||192===r&&168===n||100===r&&n>=64&&n<=127||169===r&&254===n)}if(null!==l(t)){let e=l(t);return null!==e&&(((e[0]??0)&254)==252||s(e))}return!1}(p))return(0,r.Y)("Private IP addresses are not allowed");if(function(e){if(a(e)){let t=e.split(".").map(Number);if(4===t.length&&169===t[0]&&254===t[1])return!0}if(null!==l(e)){let t=l(e);return null!==t&&s(t)}return!1}(p)||"metadata.google.internal"===(u=c(p))||u.endsWith(".metadata.google.internal")||(m=c(p)).endsWith(".svc")||m.endsWith(".svc.cluster.local")||m.endsWith(".cluster.local")||(h=c(p)).endsWith(".internal")||h.endsWith(".local"))return(0,r.Y)("Unsupported URL, public internet addresses only");if(!g&&"https:"!==f){if(!t.allowHttp)return(0,r.Y)("Only HTTPS URLs are allowed");if("http:"!==f)return(0,r.Y)("Only HTTP and HTTPS protocols are allowed")}return g&&"http:"!==f&&"https:"!==f?(0,r.Y)("Only HTTP and HTTPS protocols are allowed in dev"):(0,r.N)(!0)}],640216)},898820,e=>{"use strict";let t={ChatCompletions:"chat-completions",Responses:"responses",AnthropicMessages:"anthropic-messages",Completions:"completions",Other:"other"},r=[{suffix:"/chat/completions",skin:t.ChatCompletions},{suffix:"/responses",skin:t.Responses},{suffix:"/messages",skin:t.AnthropicMessages},{suffix:"/completions",skin:t.Completions}];e.s(["$",0,r,"Q",0,t])},948913,e=>{"use strict";e.i(882844);var t=e.i(635157),r=e.i(898820);t.z.enum([r.Q.Responses,r.Q.ChatCompletions,r.Q.AnthropicMessages]),e.s(["m",0,"openrouter:","d",0,{OpenRouterAdvisor:"openrouter:advisor",OpenRouterApplyPatch:"openrouter:apply_patch",OpenRouterBash:"openrouter:bash",OpenRouterDatetime:"openrouter:datetime",OpenRouterFiles:"openrouter:files",OpenRouterFusion:"openrouter:fusion",OpenRouterImageGeneration:"openrouter:image_generation",OpenRouterMcp:"openrouter:mcp",OpenRouterSearchModels:"openrouter:experimental__search_models",OpenRouterShell:"openrouter:shell",OpenRouterSubagent:"openrouter:subagent",OpenRouterToolSearch:"openrouter:tool_search",OpenRouterWebFetch:"openrouter:web_fetch",OpenRouterWebSearch:"openrouter:web_search"},"N",0,{Provider:"provider",OpenRouter:"openrouter",Client:"client"}])},32959,e=>{"use strict";e.i(707060);var t=e.i(387086),r=e.i(189360);let n={Artifacts:"artifacts",Media:"media",Reasoning:"reasoning",Search:"search",Tools:"tools",Routers:"routers"},i=[{id:"routers",label:(0,t.b)("Routers"),description:(0,t.b)("Compare how model routers balance quality, cost and speed on each benchmark."),icon:n.Routers},{id:"media",label:(0,t.b)("Media"),description:(0,t.b)("Generated images, clips and speech, graded against the request and priced per output."),icon:n.Media},{id:"artifacts",label:(0,t.b)("Artifact generation"),pillLabel:(0,t.b)("Artifacts"),description:(0,t.b)("Text models take on unconventional tasks like creating drawings and playable games."),icon:n.Artifacts},{id:"reasoning",label:(0,t.b)("Reasoning"),icon:n.Reasoning},{id:"search",label:(0,t.b)("Search"),icon:n.Search},{id:"agents",label:(0,t.b)("Agents & tools"),pillLabel:(0,t.b)("Agents"),icon:n.Tools}],a=[{slug:"image",name:"Image",category:"media",blurb:(0,t.b)("Image prompts built to fail: depth, direction, counting, and text in the frame."),source:{kind:"arena",tab:"image"}},{slug:"video",name:"Video",category:"media",blurb:(0,t.b)("Six seconds of video, held to one duration and resolution across every model."),source:{kind:"arena",tab:"video"}},{slug:"speech",name:"Speech",category:"media",blurb:(0,t.b)("One sentence, every voice: did the words come back, and was direction performed?"),source:{kind:"arena",tab:"speech"}},{slug:"memes",name:"Memes",category:"media",blurb:(0,t.b)("Edit a meme as an image or animate it as a clip, graded on whether the brief landed."),source:{kind:"arena",tab:"memes"}},{slug:"sketch",name:"Sketch",category:"artifacts",blurb:(0,t.b)("Text models create drawings from prompts. The results are graded as images."),source:{kind:"arena",tab:"sketch"}},{slug:"games",name:"Games",category:"artifacts",blurb:(0,t.b)("Text models create playable games from a single brief in one attempt."),source:{kind:"arena",tab:"game"}},{slug:"gpqa-diamond",name:"GPQA Diamond",category:"reasoning",blurb:(0,t.b)("Graduate-level science questions that resist retrieval and reward careful reasoning."),source:{kind:"gpqa"}},{slug:"vgi-bench",name:"VGI-Bench",category:"reasoning",blurb:(0,t.b)("Multiple-choice questions about long videos: what was shown, said, or never happened."),source:{kind:"vgi"}},{slug:"browsecomp",name:"BrowseComp",category:"search",blurb:(0,t.b)("Hard-to-locate facts on the live web, scored on persistent multi-step research."),source:{kind:"search",suite:"search_browsecomp"}},{slug:"deepsearchqa",name:"DeepSearchQA",category:"search",blurb:(0,t.b)("Questions whose answers are lists, scored for exhaustive retrieval with no padding."),source:{kind:"search",suite:"search_dsqa"}},{slug:"hle",name:"HLE",category:"search",blurb:(0,t.b)("Humanity's Last Exam as a search benchmark: expert questions answered with live search."),source:{kind:"search",suite:"search_hle"}},{slug:"widesearch",name:"WideSearch",category:"search",blurb:(0,t.b)("Fill an entire table; answer-item accuracy scores partial matches."),source:{kind:"search",suite:"search_widesearch"}},{slug:"tau2-bench-airline",name:"τ²-Bench Airline",category:"agents",blurb:(0,t.b)("Multi-turn service agents making tool calls under strict policy constraints."),source:{kind:"tau2"}}];e.s(["n",0,n,"M",0,function(e){return"href"in e?e.href:"arena"===e.source.kind?(0,r.y)(e.source.tab):`/benchmarks/${e.slug}`},"r",0,function(){return i.flatMap(e=>a.filter(t=>t.category===e.id))}])},189360,e=>{"use strict";let t={image:"/benchmarks/media/images",video:"/benchmarks/media/videos",speech:"/benchmarks/media/speech",game:"/benchmarks/media/games",memes:"/benchmarks/media/memes",sketch:"/benchmarks/media/sketch"};function r(e){return t[e]}e.s(["y",0,r,"x",0,function(e,t){return`${r(e)}/${t}`}])},238440,e=>{"use strict";e.s(["v",0,"gap-2 px-4 bg-background shadow-none cursor-pointer text-foreground no-underline hover:no-underline","Q",0,"gap-2 px-4 shadow-none cursor-pointer"])},21218,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(702441),i=e.i(954217),a=e.i(960773);e.i(707060);var l=e.i(196991),s=e.i(919035),o=e.i(32959),c=e.i(684313),d=e.i(617729);e.s(["ServerToolBenchmarksSection",0,function(e){let u,m,h,p,f,g,b,v,x,y,w,k=(0,r.c)(24),{tool:j}=e,N=(0,a.Q)(),S=(0,s.f)();if(k[0]!==S||k[1]!==N||k[2]!==j){v=Symbol.for("react.early_return_sentinel");e:{let e=(0,c.k)(j);if(0===e.length){v=null;break e}p=c.E.Benchmarks,f="benchmarks-heading",g=d.D,k[11]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsx)(l.T,{children:(0,t.jsx)("h2",{id:"benchmarks-heading",className:"text-lg font-medium",children:"Benchmarks"})}),k[11]=b):b=k[11],u=n.N,h="mt-4 px-4",m=e.map(e=>(0,t.jsxs)("li",{className:"border-t border-border/50 py-4 text-sm first:border-t-0",children:[(0,t.jsx)(i.TextLink,{href:(0,o.M)(e),weight:"medium",onClick:()=>{N.capture("click_tool_page_benchmark",{tool_slug:j.slug,benchmark_slug:e.slug})},children:e.name}),(0,t.jsx)("p",{className:"mt-1 text-muted-foreground",children:S(e.blurb)})]},e.slug))}k[0]=S,k[1]=N,k[2]=j,k[3]=u,k[4]=m,k[5]=h,k[6]=p,k[7]=f,k[8]=g,k[9]=b,k[10]=v}else u=k[3],m=k[4],h=k[5],p=k[6],f=k[7],g=k[8],b=k[9],v=k[10];return v!==Symbol.for("react.early_return_sentinel")?v:(k[12]!==m?(x=(0,t.jsx)("ul",{children:m}),k[12]=m,k[13]=x):x=k[13],k[14]!==u||k[15]!==h||k[16]!==x?(y=(0,t.jsx)(u,{className:h,children:x}),k[14]=u,k[15]=h,k[16]=x,k[17]=y):y=k[17],k[18]!==p||k[19]!==f||k[20]!==g||k[21]!==b||k[22]!==y?(w=(0,t.jsxs)("section",{id:p,"aria-labelledby":f,className:g,children:[b,y]}),k[18]=p,k[19]=f,k[20]=g,k[21]=b,k[22]=y,k[23]=w):w=k[23],w)}])},22526,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(219037),i=e.i(339814),a=e.i(136562),l=e.i(233452),s=e.i(139697),o=e.i(702441),c=e.i(548204),d=e.i(261499),u=e.i(829622),m=e.i(954217),h=e.i(138257),p=e.i(948913);e.i(707060);var f=e.i(196991),g=e.i(288265),b=e.i(919035),v=e.i(788843),x=e.i(354896),y=e.i(258990),w=e.i(387086);let k={[p.d.OpenRouterWebSearch]:[{name:"OpenAI",website:"https://openai.com",pricingUrl:"https://openai.com/api/pricing",description:(0,w.b)("Built-in web search on GPT-4.1, GPT-5 and later, o3, and o4-mini."),via:["OpenAI","Azure"]},{name:"Anthropic",website:"https://anthropic.com",pricingUrl:"https://anthropic.com/pricing",description:(0,w.b)("Built-in web search on Claude 3.5 Haiku, Claude 3.7 Sonnet, and Claude 4 and later."),via:["Anthropic","Claude Platform on AWS","Amazon Bedrock","Google Vertex"]},{name:"Google",website:"https://ai.google.dev",pricingUrl:"https://ai.google.dev/pricing",description:(0,w.b)("Search grounding on Gemini 3 and later."),via:["Google AI Studio","Google Vertex"]},{name:"xAI",website:"https://x.ai",pricingUrl:"https://x.ai/api",description:(0,w.b)("Built-in web search and X search on Grok 4 and later."),via:["xAI"]}],[p.d.OpenRouterWebFetch]:[{name:"Anthropic",website:"https://anthropic.com",pricingUrl:"https://anthropic.com/pricing",description:(0,w.b)("Built-in web fetch on Claude Opus 4.7 and later and Claude Sonnet 5."),via:["Anthropic","Claude Platform on AWS","Amazon Bedrock"]}],[p.d.OpenRouterApplyPatch]:[{name:"OpenAI",website:"https://openai.com",pricingUrl:"https://openai.com/api/pricing",description:(0,w.b)("Built-in apply_patch on GPT-5 and later."),via:["OpenAI","Azure"]}]};var j=e.i(293747);function N(e,t){var r,n;return t.gt("{price} / {unit}",{price:(r=e.price,n=t.locale,(0,j.f)(r,{locale:n,preset:"model-price"})??String(r)),unit:e.unit})}var S=e.i(684313),_=e.i(495193),C=e.i(617729);let R="grid grid-cols-[minmax(0,1fr)_auto] items-start gap-x-4 gap-y-1.5 data-[expandable]:grid-cols-[minmax(0,1fr)_auto_1.5rem] sm:gap-x-5",M="col-span-full min-w-0",T="relative border-t border-border/50 px-4 py-3.5 text-sm first:border-t-0";function O(e){let n,i,a=(0,r.c)(6),{mark:l,name:s,badge:o}=e;return a[0]!==s?(n=(0,t.jsx)("h3",{className:"truncate text-sm font-medium",children:s}),a[0]=s,a[1]=n):n=a[1],a[2]!==o||a[3]!==l||a[4]!==n?(i=(0,t.jsxs)("div",{className:"flex min-h-6 min-w-0 items-center gap-2.5",children:[l,n,o]}),a[2]=o,a[3]=l,a[4]=n,a[5]=i):i=a[5],i}function L(e){let n,a,l,s,o,c=(0,r.c)(23),{modes:d,defaultMode:u,locale:m}=e,h=(0,g.f)();c[0]!==h?(n=h("(default)"),c[0]=h,c[1]=n):n=c[1];let p=n;if(c[2]!==u||c[3]!==p||c[4]!==h||c[5]!==m||c[6]!==d){let e;c[9]!==u||c[10]!==p?(e=e=>e===u?`${e} ${p}`:e,c[9]=u,c[10]=p,c[11]=e):e=c[11];let t=d.map(e),r=(0,i.g)(t,{locale:m,style:"comma"});l=(a=h("{modes} {count, plural, one {mode} other {modes}}",{modes:r,count:d.length})).split(r),c[2]=u,c[3]=p,c[4]=h,c[5]=m,c[6]=d,c[7]=a,c[8]=l}else a=c[7],l=c[8];let[f,b]=l;if(void 0===b)return a;if(c[12]!==u||c[13]!==p||c[14]!==d){let e;c[16]!==u||c[17]!==p?(e=(e,r)=>(0,t.jsxs)("span",{children:[r>0?", ":null,(0,t.jsx)("code",{className:"font-mono text-[0.9em]",children:e}),e===u?` ${p}`:null]},e),c[16]=u,c[17]=p,c[18]=e):e=c[18],s=d.map(e),c[12]=u,c[13]=p,c[14]=d,c[15]=s}else s=c[15];return c[19]!==b||c[20]!==f||c[21]!==s?(o=(0,t.jsxs)(t.Fragment,{children:[f,s,b]}),c[19]=b,c[20]=f,c[21]=s,c[22]=o):o=c[22],o}function E(e){let n,i=(0,r.c)(3),{engine:a}=e;if(null===a.website){let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("span",{className:"flex size-5 shrink-0 items-center justify-center rounded-sm bg-muted text-muted-foreground",children:(0,t.jsx)(y.f,{className:"size-3.5","aria-hidden":!0})}),i[0]=e):e=i[0],e}return i[1]!==a.website?(n=(0,t.jsx)(u.RemoteFavicon,{faviconFor:a.website,size:256,className:"size-5 shrink-0 rounded-sm"}),i[1]=a.website,i[2]=n):n=i[2],n}function z(e){let n=(0,r.c)(13),{label:i,locale:a}=e,l=(0,g.f)();switch(i.kind){case"modes":{let e;return n[0]!==i.defaultMode||n[1]!==i.modes||n[2]!==a?(e=(0,t.jsx)(L,{modes:i.modes,defaultMode:i.defaultMode,locale:a}),n[0]=i.defaultMode,n[1]=i.modes,n[2]=a,n[3]=e):e=n[3],e}case"extra-unit":{let e;if(void 0!==i.included){let e;return n[4]!==l||n[5]!==i.included||n[6]!==i.maxUnits||n[7]!==i.unit?(e=l("Each {unit} after the first {included} (up to {max} more)",{unit:i.unit,included:i.included,max:i.maxUnits}),n[4]=l,n[5]=i.included,n[6]=i.maxUnits,n[7]=i.unit,n[8]=e):e=n[8],e}return n[9]!==l||n[10]!==i.maxUnits||n[11]!==i.unit?(e=i.maxUnits>1?l("Each extra {unit} (up to {max})",{unit:i.unit,max:i.maxUnits}):l("Each extra {unit}",{unit:i.unit}),n[9]=l,n[10]=i.maxUnits,n[11]=i.unit,n[12]=e):e=n[12],e}default:return i}}function A(e){let i=(0,r.c)(8),{note:a,locale:l}=e,s=(0,g.f)();switch(a.kind){case"modes":{let e;return i[0]!==l||i[1]!==a.defaultMode||i[2]!==a.modes?(e=(0,t.jsx)(L,{modes:a.modes,defaultMode:a.defaultMode,locale:l}),i[0]=l,i[1]=a.defaultMode,i[2]=a.modes,i[3]=e):e=i[3],e}case"cold-start-minimum":{let e;return i[4]!==s||i[5]!==l||i[6]!==a.seconds?(e=s("{duration} minimum on requests that start a container",{duration:(0,n.f)(1e3*a.seconds,{locale:l,preset:"latency-seconds"})??""}),i[4]=s,i[5]=l,i[6]=a.seconds,i[7]=e):e=i[7],e}default:return a}}function P(e){let n=(0,r.c)(20),{pricing:i,locale:a}=e,l=(0,g.f)(),s=(0,b.f)();switch(i.kind){case _.N.Listed:{let e,r,s,o;return n[0]!==l||n[1]!==a||n[2]!==i?(e=N(i,{locale:a,gt:l}),n[0]=l,n[1]=a,n[2]=i,n[3]=e):e=n[3],n[4]!==e?(r=(0,t.jsx)("p",{className:"font-medium tabular-nums",children:e}),n[4]=e,n[5]=r):r=n[5],n[6]!==a||n[7]!==i.note?(s=void 0===i.note?null:(0,t.jsx)("p",{className:"text-2xs text-muted-foreground",children:(0,t.jsx)(A,{note:i.note,locale:a})}),n[6]=a,n[7]=i.note,n[8]=s):s=n[8],n[9]!==r||n[10]!==s?(o=(0,t.jsxs)(t.Fragment,{children:[r,s]}),n[9]=r,n[10]=s,n[11]=o):o=n[11],o}case _.N.Free:{let e;return n[12]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(f.T,{children:(0,t.jsx)("p",{className:"font-medium",children:"Free"})}),n[12]=e):e=n[12],e}case _.N.Provider:{let e;return n[13]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)(f.T,{children:[(0,t.jsx)("p",{className:"font-medium",children:"Provider pricing"}),(0,t.jsx)("p",{className:"text-2xs text-muted-foreground",children:"Billed by the model provider"})]}),n[13]=e):e=n[13],e}case _.N.Byok:{let e;return n[14]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)(f.T,{children:[(0,t.jsx)("p",{className:"font-medium",children:"Your own account"}),(0,t.jsx)("p",{className:"text-2xs text-muted-foreground",children:"No OpenRouter charge"})]}),n[14]=e):e=n[14],e}case _.N.ModelUsage:{let e,r;return n[15]!==s||n[16]!==i.label?(e=s(i.label),n[15]=s,n[16]=i.label,n[17]=e):e=n[17],n[18]!==e?(r=(0,t.jsx)("p",{className:"font-medium",children:e}),n[18]=e,n[19]=r):r=n[19],r}default:return i}}function F(e){let n,i,l,o,u,m,h,p,f,v,y,w=(0,r.c)(36),{engine:k,locale:j}=e,S=(0,g.f)(),C=(0,b.f)(),L=k.pricing.kind===_.N.Listed?k.pricing:void 0;w[0]!==L?.tiers?(n=L?.tiers??[],w[0]=L?.tiers,w[1]=n):n=w[1];let A=n,F=void 0!==L&&A.length>0,I=k.id??"default";w[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.f)(T,"transition-colors duration-quick ease-smooth-out","has-[button:hover]:bg-card-hover has-[button:focus-visible]:ring-2 has-[button:focus-visible]:ring-inset has-[button:focus-visible]:ring-ring"),w[2]=i):i=w[2];let $=F?"":void 0;return w[3]!==k?(l=(0,t.jsx)(E,{engine:k}),w[3]=k,w[4]=l):l=w[4],w[5]!==k.name||w[6]!==l?(o=(0,t.jsx)(O,{mark:l,name:k.name}),w[5]=k.name,w[6]=l,w[7]=o):o=w[7],w[8]!==k.pricing||w[9]!==j?(u=(0,t.jsx)("div",{className:"min-w-0 text-right",children:(0,t.jsx)(P,{pricing:k.pricing,locale:j})}),w[8]=k.pricing,w[9]=j,w[10]=u):u=w[10],w[11]!==k.name||w[12]!==F||w[13]!==S?(m=F?(0,t.jsx)("div",{className:"flex h-6 items-center justify-center",children:(0,t.jsx)(c.CollapsibleTrigger,{"aria-label":S("{name} pricing details",{name:k.name}),render:(0,t.jsx)(s.Button,{variant:"ghost-muted",size:"icon-xs"}),className:"group after:absolute after:inset-0",children:(0,t.jsx)(x.f,{className:(0,a.f)("size-4 group-data-[panel-open]:-scale-y-100",d.a),"aria-hidden":!0})})}):null,w[11]=k.name,w[12]=F,w[13]=S,w[14]=m):m=w[14],w[15]!==k.description||w[16]!==C?(h=void 0===k.description?null:(0,t.jsx)("p",{className:(0,a.f)(M,"text-muted-foreground"),children:C(k.description)}),w[15]=k.description,w[16]=C,w[17]=h):h=w[17],w[18]!==$||w[19]!==o||w[20]!==u||w[21]!==m||w[22]!==h?(p=(0,t.jsxs)("div",{className:R,"data-expandable":$,children:[o,u,m,h]}),w[18]=$,w[19]=o,w[20]=u,w[21]=m,w[22]=h,w[23]=p):p=w[23],w[24]!==F||w[25]!==S||w[26]!==L||w[27]!==j||w[28]!==A?(f=void 0!==L&&F?(0,t.jsx)(c.CollapsibleContent,{hiddenUntilFound:!0,children:(0,t.jsx)("dl",{className:"mt-4 flex flex-col gap-2 border-t border-border/50 pt-4",children:A.map(e=>{var r;return(0,t.jsxs)("div",{className:"flex flex-wrap justify-between gap-x-6 gap-y-1",children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:(0,t.jsx)(z,{label:e.label,locale:j})}),(0,t.jsx)("dd",{className:"tabular-nums",children:N({price:e.price,unit:"extra-unit"===e.label.kind?e.label.unit:L.unit},{locale:j,gt:S})})]},"modes"===(r=e.label).kind?r.modes.join(","):`extra-${r.unit}`)})})}):null,w[24]=F,w[25]=S,w[26]=L,w[27]=j,w[28]=A,w[29]=f):f=w[29],w[30]!==p||w[31]!==f?(v=(0,t.jsxs)(c.Collapsible,{children:[p,f]}),w[30]=p,w[31]=f,w[32]=v):v=w[32],w[33]!==v||w[34]!==I?(y=(0,t.jsx)("li",{"data-engine":I,className:i,children:v}),w[33]=v,w[34]=I,w[35]=y):y=w[35],y}function I(e){let n,a,s,o,c,d,h,p,x,y,w,k,j,N=(0,r.c)(31),{provider:S,locale:_}=e,C=(0,g.f)(),L=(0,b.f)(),E=S.name;return N[0]!==S.website?(n=(0,t.jsx)(u.RemoteFavicon,{faviconFor:S.website,size:256,className:"size-5 shrink-0 rounded-sm"}),N[0]=S.website,N[1]=n):n=N[1],N[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(l.Badge,{variant:"promo",size:"sm",children:(0,t.jsx)(f.T,{children:"Native"})}),N[2]=a):a=N[2],N[3]!==S.name||N[4]!==n?(s=(0,t.jsx)(O,{mark:n,name:S.name,badge:a}),N[3]=S.name,N[4]=n,N[5]=s):s=N[5],N[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(f.T,{children:"Provider pricing"}),c=(0,t.jsx)(v.f,{className:"size-3.5","aria-hidden":!0}),N[6]=o,N[7]=c):(o=N[6],c=N[7]),N[8]!==S.pricingUrl?(d=(0,t.jsx)("div",{className:"min-w-0 text-right",children:(0,t.jsxs)(m.TextLink,{href:S.pricingUrl,target:"_blank",rel:"noreferrer",weight:"medium",className:"inline-flex items-center gap-1 whitespace-nowrap",children:[o,c]})}),N[8]=S.pricingUrl,N[9]=d):d=N[9],N[10]!==L||N[11]!==S.description?(h=L(S.description),N[10]=L,N[11]=S.description,N[12]=h):h=N[12],N[13]!==h?(p=(0,t.jsx)("p",{className:"text-muted-foreground",children:h}),N[13]=h,N[14]=p):p=N[14],N[15]!==C||N[16]!==_||N[17]!==S.via?(x=C("Via {providers}",{providers:(0,i.g)(S.via,{locale:_,style:"comma"})}),N[15]=C,N[16]=_,N[17]=S.via,N[18]=x):x=N[18],N[19]!==x?(y=(0,t.jsx)("p",{className:"mt-1.5 text-2xs text-muted-foreground",children:x}),N[19]=x,N[20]=y):y=N[20],N[21]!==y||N[22]!==p?(w=(0,t.jsxs)("div",{className:M,children:[p,y]}),N[21]=y,N[22]=p,N[23]=w):w=N[23],N[24]!==w||N[25]!==s||N[26]!==d?(k=(0,t.jsxs)("div",{className:R,children:[s,d,w]}),N[24]=w,N[25]=s,N[26]=d,N[27]=k):k=N[27],N[28]!==S.name||N[29]!==k?(j=(0,t.jsx)("li",{"data-native-provider":E,className:T,children:k}),N[28]=S.name,N[29]=k,N[30]=j):j=N[30],j}function $(e){return e.execution!==p.N.Provider}e.s(["ServerToolEnginesSection",0,function(e){let n,i,a,l,s,c,d,u,m,p,g,v,x,y=(0,r.c)(49),{tool:w}=e,j=(0,h.useLocale)(),N=(0,b.f)();if(y[0]!==j||y[1]!==N||y[2]!==w.apiType||y[3]!==w.engines||y[4]!==w.providerRouting){let e,r=k[w.apiType]??[];if(y[14]!==j||y[15]!==N||y[16]!==w.engines||y[17]!==w.providerRouting){let e,r=w.engines.filter($);s=S.E.Providers,c="providers-heading",d=C.D,y[26]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(f.T,{children:(0,t.jsx)("h2",{id:"providers-heading",className:"text-lg font-medium",children:"Providers and pricing"})}),y[26]=u):u=y[26],y[27]!==N||y[28]!==w.providerRouting?(m=void 0===w.providerRouting?null:(0,t.jsx)("p",{className:"mt-3 max-w-prose text-sm text-muted-foreground",children:N(w.providerRouting)}),y[27]=N,y[28]=w.providerRouting,y[29]=m):m=y[29],n=o.N,l="mt-5",y[30]!==j?(e=e=>(0,t.jsx)(F,{engine:e,locale:j},e.id??"default"),y[30]=j,y[31]=e):e=y[31],i=r.map(e),y[14]=j,y[15]=N,y[16]=w.engines,y[17]=w.providerRouting,y[18]=n,y[19]=i,y[20]=l,y[21]=s,y[22]=c,y[23]=d,y[24]=u,y[25]=m}else n=y[18],i=y[19],l=y[20],s=y[21],c=y[22],d=y[23],u=y[24],m=y[25];y[32]!==j?(e=e=>(0,t.jsx)(I,{provider:e,locale:j},e.name),y[32]=j,y[33]=e):e=y[33],a=r.map(e),y[0]=j,y[1]=N,y[2]=w.apiType,y[3]=w.engines,y[4]=w.providerRouting,y[5]=n,y[6]=i,y[7]=a,y[8]=l,y[9]=s,y[10]=c,y[11]=d,y[12]=u,y[13]=m}else n=y[5],i=y[6],a=y[7],l=y[8],s=y[9],c=y[10],d=y[11],u=y[12],m=y[13];return y[34]!==i||y[35]!==a?(p=(0,t.jsxs)("ul",{children:[i,a]}),y[34]=i,y[35]=a,y[36]=p):p=y[36],y[37]!==n||y[38]!==l||y[39]!==p?(g=(0,t.jsx)(n,{className:l,children:p}),y[37]=n,y[38]=l,y[39]=p,y[40]=g):g=y[40],y[41]===Symbol.for("react.memo_cache_sentinel")?(v=(0,t.jsx)(f.T,{children:(0,t.jsx)("p",{className:"mt-3 text-xs text-muted-foreground",children:"Standard model token costs apply to every request."})}),y[41]=v):v=y[41],y[42]!==g||y[43]!==s||y[44]!==c||y[45]!==d||y[46]!==u||y[47]!==m?(x=(0,t.jsxs)("section",{id:s,"aria-labelledby":c,className:d,children:[u,m,g,v]}),y[42]=g,y[43]=s,y[44]=c,y[45]=d,y[46]=u,y[47]=m,y[48]=x):x=y[48],x}],22526)},938269,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(136562),i=e.i(801127);e.i(707060);var a=e.i(196991),l=e.i(288265),s=e.i(919035),o=e.i(371244),c=e.i(238440);e.i(406201);var d=e.i(967605),u=e.i(892571),m=e.i(821442),h=e.i(510433),p=e.i(960773),f=e.i(387086),g=e.i(173155),b=e.i(495193),v=e.i(447131),x=e.i(155771),y=e.i(953545);let w=(0,f.b)("Try this tool");function k(e){let i,a,l,o,c,u,m,f=(0,r.c)(21),{tool:k,source:j,className:N}=e,S=(0,p.Q)(),_=(0,s.f)(),C=(0,y.f)(h.J.Chatroom),R=(0,x.f)();f[0]!==R||f[1]!==k?(i=(0,b.V)(R,k),f[0]=R,f[1]=k,f[2]=i):i=f[2];let M=i;return null===M?null:(f[3]!==N?(a=(0,n.f)("cursor-pointer gap-2",N),f[3]=N,f[4]=a):a=f[4],f[5]!==M?(l=(0,t.jsx)(d.Link,{href:M}),f[5]=M,f[6]=l):l=f[6],f[7]!==S||f[8]!==j||f[9]!==k.apiType||f[10]!==k.slug?(o=()=>{S.capture("click_tool_page_try_tool",{source:j,tool_slug:k.slug,tool_type:k.apiType})},f[7]=S,f[8]=j,f[9]=k.apiType,f[10]=k.slug,f[11]=o):o=f[11],f[12]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(g.f,{className:"size-4 shrink-0"}),f[12]=c):c=f[12],f[13]!==_?(u=_(w),f[13]=_,f[14]=u):u=f[14],f[15]!==C||f[16]!==a||f[17]!==l||f[18]!==o||f[19]!==u?(m=(0,t.jsxs)(v.f,{gate:C,size:"sm",className:a,render:l,onClick:o,children:[c,u]}),f[15]=C,f[16]=a,f[17]=l,f[18]=o,f[19]=u,f[20]=m):m=f[20],m)}function j(e){let l,s,u,m,h=(0,r.c)(7),{tool:p,className:f}=e,g=p.docsPath;return h[0]!==f?(l=(0,n.f)((0,i.i)({variant:"outline",size:"sm"}),c.v,f),h[0]=f,h[1]=l):l=h[1],h[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(o.f,{className:"size-4 shrink-0"}),u=(0,t.jsx)(a.T,{children:"Docs"}),h[2]=s,h[3]=u):(s=h[2],u=h[3]),h[4]!==l||h[5]!==p.docsPath?(m=(0,t.jsxs)(d.Link,{href:g,className:l,children:[s,u]}),h[4]=l,h[5]=p.docsPath,h[6]=m):m=h[6],m}e.s(["ServerToolPageHeader",0,function(e){let n,i,a,o,c,d,h,p,f,g,b,v,x,y=(0,r.c)(34),{tool:w}=e,N=u.f[w.apiType],S=(0,l.f)(),_=(0,s.f)();return y[0]!==N?(n=(0,t.jsx)("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-md bg-muted text-muted-foreground",children:(0,t.jsx)(N,{className:"size-4","aria-hidden":!0})}),y[0]=N,y[1]=n):n=y[1],y[2]!==w.name?(i=(0,t.jsx)("h1",{children:w.name}),y[2]=w.name,y[3]=i):i=y[3],y[4]!==w.status?(a=(0,t.jsx)(m.f,{status:w.status}),y[4]=w.status,y[5]=a):a=y[5],y[6]!==n||y[7]!==i||y[8]!==a?(o=(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2.5",children:[n,i,a]}),y[6]=n,y[7]=i,y[8]=a,y[9]=o):o=y[9],y[10]!==S?(c=S("Tool type for use in the API"),y[10]=S,y[11]=c):c=y[11],y[12]!==c||y[13]!==w.apiType?(d=(0,t.jsx)("p",{title:c,className:"font-mono text-xs text-muted-foreground",children:w.apiType}),y[12]=c,y[13]=w.apiType,y[14]=d):d=y[14],y[15]!==o||y[16]!==d?(h=(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[o,d]}),y[15]=o,y[16]=d,y[17]=h):h=y[17],y[18]!==w?(p=(0,t.jsxs)("div",{className:"hidden md:flex md:flex-col md:items-stretch lg:flex-row lg:items-center justify-end gap-2",children:[(0,t.jsx)(j,{tool:w}),(0,t.jsx)(k,{tool:w,source:"tool_page_header_desktop"})]}),y[18]=w,y[19]=p):p=y[19],y[20]!==h||y[21]!==p?(f=(0,t.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[h,p]}),y[20]=h,y[21]=p,y[22]=f):f=y[22],y[23]!==_||y[24]!==w.description?(g=_(w.description),y[23]=_,y[24]=w.description,y[25]=g):g=y[25],y[26]!==g?(b=(0,t.jsx)("p",{className:"max-w-prose text-sm leading-relaxed text-muted-foreground md:text-base",children:g}),y[26]=g,y[27]=b):b=y[27],y[28]!==w?(v=(0,t.jsxs)("div",{className:"flex gap-2 md:hidden",children:[(0,t.jsx)(j,{tool:w,className:"h-10 flex-1"}),(0,t.jsx)(k,{tool:w,source:"tool_page_header_mobile",className:"h-10 flex-1"})]}),y[28]=w,y[29]=v):v=y[29],y[30]!==b||y[31]!==v||y[32]!==f?(x=(0,t.jsxs)("header",{className:"flex flex-col gap-5",children:[f,b,v]}),y[30]=b,y[31]=v,y[32]=f,y[33]=x):x=y[33],x}],938269)},869398,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(46766),i=e.i(312679),a=e.i(832850),l=e.i(960773),s=e.i(199168),o=e.i(217524),c=e.i(404410),d=e.i(803157),u=e.i(258990),m=e.i(252830),h=e.i(856883);e.i(16043);var p=e.i(13457),f=e.i(684313),g=e.i(617729);let b={[f.E.HowItWorks]:h.f,[f.E.Providers]:u.f,[f.E.Usage]:d.f,[f.E.Benchmarks]:o.f,[f.E.Faq]:c.f,[f.E.Related]:m.f};e.s(["ServerToolSectionNav",0,function(e){let o,c,d,u,m=(0,r.c)(17),{toolSlug:h,sections:f,children:v}=e,x=(0,l.Q)(),y=(0,i.f)(),w=(0,n.f)(),k=(0,s.o)(),j=(0,s.M)();if(m[0]!==j||m[1]!==f){let e;m[3]!==j?(e=e=>({id:e.id,label:j(e.label),icon:b[e.id]}),m[3]=j,m[4]=e):e=m[4],o=f.map(e),m[0]=j,m[1]=f,m[2]=o}else o=m[2];let N=o,S=(0,p.f)("tool_page_section_view");m[5]!==x||m[6]!==h?(c=e=>{x.capture("click_tool_page_section",{tool_slug:h,section:e})},m[5]=x,m[6]=h,m[7]=c):c=m[7];let _=c;m[8]!==k?(d=k("Tool page sections"),m[8]=k,m[9]=d):d=m[9];let C=w+g.r+y;return m[10]!==v||m[11]!==_||m[12]!==S||m[13]!==N||m[14]!==d||m[15]!==C?(u=(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-[200px_1fr]",children:(0,t.jsx)(a.f,{sections:N,ariaLabel:d,desktopNavTopClass:g.h,mobileTocTopClass:g.x,activationLinePx:C,onSectionView:S,onSectionSelect:_,children:v})}),m[10]=v,m[11]=_,m[12]=S,m[13]=N,m[14]=d,m[15]=C,m[16]=u):u=m[16],u}])},661463,121171,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(136562),i=e.i(233452),a=e.i(702441),l=e.i(960773);e.i(707060);var s=e.i(919035);e.i(406201);var o=e.i(967605),c=e.i(387086),d=e.i(150444),u=e.i(275173),m=e.i(561146),h=e.i(454326),p=e.i(336819);let f={SearchWeb:"search-web",Code:"code",Orchestration:"orchestration",Media:"media",Utilities:"utilities"},g=Object.values(f),b=[{id:f.SearchWeb,label:(0,c.b)("Search & web"),icon:d.f},{id:f.Code,label:(0,c.b)("Code & execution"),icon:m.f},{id:f.Orchestration,label:(0,c.b)("Orchestration"),icon:h.f},{id:f.Media,label:(0,c.b)("Media"),icon:u.f},{id:f.Utilities,label:(0,c.b)("Utilities"),icon:p.f}];e.s(["G",0,b,"g",0,g],121171);var v=e.i(948913);let x={[v.d.OpenRouterWebSearch]:{text:"text-chart-1",bg:"bg-chart-1/12"},[v.d.OpenRouterWebFetch]:{text:"text-chart-6",bg:"bg-chart-6/12"},[v.d.OpenRouterImageGeneration]:{text:"text-modality-image",bg:"bg-modality-image/12"},[v.d.OpenRouterDatetime]:{text:"text-chart-14",bg:"bg-chart-14/12"},[v.d.OpenRouterShell]:{text:"text-chart-19",bg:"bg-chart-19/12"},[v.d.OpenRouterBash]:{text:"text-chart-11",bg:"bg-chart-11/12"},[v.d.OpenRouterApplyPatch]:{text:"text-chart-12",bg:"bg-chart-12/12"},[v.d.OpenRouterFusion]:{text:"text-chart-8",bg:"bg-chart-8/12"},[v.d.OpenRouterAdvisor]:{text:"text-chart-10",bg:"bg-chart-10/12"},[v.d.OpenRouterSubagent]:{text:"text-chart-15",bg:"bg-chart-15/12"},[v.d.OpenRouterToolSearch]:{text:"text-chart-2",bg:"bg-chart-2/12"},[v.d.OpenRouterSearchModels]:{text:"text-chart-5",bg:"bg-chart-5/12"},[v.d.OpenRouterFiles]:{text:"text-chart-9",bg:"bg-chart-9/12"},[v.d.OpenRouterMcp]:{text:"text-chart-13",bg:"bg-chart-13/12"}};var y=e.i(892571),w=e.i(495193),k=e.i(821442);e.s(["ServerToolCard",0,function(e){let c,d,u,m,h,p,f,g,v,j=(0,r.c)(55),{tool:N,clickEvent:S}=e,_=void 0===S?"click_tools_page_tool_card":S,C=(0,l.Q)(),R=(0,s.f)(),M=y.f[N.apiType],T=x[N.apiType];if(j[0]!==M||j[1]!==_||j[2]!==R||j[3]!==C||j[4]!==T.bg||j[5]!==T.text||j[6]!==N){let e,r,l,s,g,v,x,y,S;j[14]!==N.category?(e=e=>e.id===N.category,j[14]=N.category,j[15]=e):e=j[15];let O=b.find(e);f="flex",c=a.N,d=!0,u="group relative isolate flex w-full flex-col gap-3 p-4 has-[a:focus-visible]:ring-2 has-[a:focus-visible]:ring-ring",j[16]!==T.bg||j[17]!==T.text?(r=(0,n.f)("flex size-8 shrink-0 items-center justify-center rounded-md",T.bg,T.text),j[16]=T.bg,j[17]=T.text,j[18]=r):r=j[18],j[19]!==M?(l=(0,t.jsx)(M,{className:"size-5",strokeWidth:1.5,"aria-hidden":!0}),j[19]=M,j[20]=l):l=j[20],j[21]!==l||j[22]!==r?(s=(0,t.jsx)("span",{className:r,children:l}),j[21]=l,j[22]=r,j[23]=s):s=j[23],j[24]!==N?(g=(0,w.H)(N),j[24]=N,j[25]=g):g=j[25],j[26]!==_||j[27]!==C||j[28]!==N.apiType||j[29]!==N.slug?(v=()=>{C.capture(_,{tool_slug:N.slug,tool_type:N.apiType})},j[26]=_,j[27]=C,j[28]=N.apiType,j[29]=N.slug,j[30]=v):v=j[30],j[31]!==g||j[32]!==v||j[33]!==N.name?(x=(0,t.jsx)("h3",{className:"min-w-0 text-base font-medium",children:(0,t.jsx)(o.Link,{href:g,className:"text-foreground no-underline after:absolute after:inset-0 after:rounded-lg hover:no-underline focus-visible:outline-none",onClick:v,children:N.name})}),j[31]=g,j[32]=v,j[33]=N.name,j[34]=x):x=j[34],j[35]!==N.status?(y=(0,t.jsx)(k.f,{status:N.status}),j[35]=N.status,j[36]=y):y=j[36],j[37]!==x||j[38]!==y?(S=(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[x,y]}),j[37]=x,j[38]=y,j[39]=S):S=j[39],j[40]!==s||j[41]!==S?(m=(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[s,S]}),j[40]=s,j[41]=S,j[42]=m):m=j[42],j[43]!==N.tagline?(h=(0,t.jsx)("p",{className:"line-clamp-2 min-h-10 text-sm text-muted-foreground",children:N.tagline}),j[43]=N.tagline,j[44]=h):h=j[44],p=void 0===O?null:(0,t.jsx)("div",{className:"mt-auto flex pt-1",children:(0,t.jsx)(i.Badge,{variant:"muted",size:"md",className:"border-transparent bg-muted font-normal",children:R(O.label)})}),j[0]=M,j[1]=_,j[2]=R,j[3]=C,j[4]=T.bg,j[5]=T.text,j[6]=N,j[7]=c,j[8]=d,j[9]=u,j[10]=m,j[11]=h,j[12]=p,j[13]=f}else c=j[7],d=j[8],u=j[9],m=j[10],h=j[11],p=j[12],f=j[13];return j[45]!==c||j[46]!==d||j[47]!==u||j[48]!==m||j[49]!==h||j[50]!==p?(g=(0,t.jsxs)(c,{interactive:d,className:u,children:[m,h,p]}),j[45]=c,j[46]=d,j[47]=u,j[48]=m,j[49]=h,j[50]=p,j[51]=g):g=j[51],j[52]!==f||j[53]!==g?(v=(0,t.jsx)("li",{className:f,children:g}),j[52]=f,j[53]=g,j[54]=v):v=j[54],v}],661463)},861188,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(136562),i=e.i(246705);function a(e){let t=e.split("\n");for(;t[0]?.trim().length===0;)t.shift();for(;t.at(-1)?.trim().length===0;)t.pop();let r=t.filter(e=>e.trim().length>0);if(0===r.length)return"";let n=Math.min(...r.map(l));return t.map(e=>e.slice(Math.min(l(e),n))).join("\n").replaceAll(/^[ \t]+$/gm,"")}function l(e){return/^[ \t]*/.exec(e)?.[0].length??0}let s=(0,n.f)("text-xs","[&_pre]:max-h-72 [&_pre]:overflow-auto","[&_pre_code]:rounded-none [&_pre_code]:bg-doc-surface [&_pre_code]:font-mono","[&_pre_code]:text-xs [&_pre_code]:leading-normal","[&_pre_code]:whitespace-pre [&_pre_code]:break-normal","dark:[&_pre_code]:bg-doc-surface");function o(e){return{...e,code:a(e.code)}}e.s(["ApiCodeBlock",0,function(e){let l,c,d,u=(0,r.c)(15),{className:m,language:h,value:p,onCopy:f,onTabChange:g}=e;u[0]!==m?(l=(0,n.f)(s,m),u[0]=m,u[1]=l):l=u[1],u[2]!==f||u[3]!==l?(c={className:l,lightTheme:"one-light",darkTheme:"one-dark-pro",onCopy:f},u[2]=f,u[3]=l,u[4]=c):c=u[4];let b=c;if("string"!=typeof p){let e,r;return u[5]!==p?(e=p.map(o),u[5]=p,u[6]=e):e=u[6],u[7]!==g||u[8]!==b||u[9]!==e?(r=(0,t.jsx)(i.CodeBlock,{...b,value:e,onTabChange:g}),u[7]=g,u[8]=b,u[9]=e,u[10]=r):r=u[10],r}if(u[11]!==h||u[12]!==b||u[13]!==p){let e=a(p);d=(0,t.jsx)(i.CodeBlock,{...b,language:h,value:e,variant:e.includes("\n")?i.CodeBlockVariant.Block:i.CodeBlockVariant.Line}),u[11]=h,u[12]=b,u[13]=p,u[14]=d}else d=u[14];return d}],861188)},13457,e=>{"use strict";var t=e.i(663456);e.i(140570);var r=e.i(960773);e.i(16043),e.s(["f",0,function(e){let n,i=(0,t.c)(3),a=(0,r.Q)();return i[0]!==e||i[1]!==a?(n=(t,r)=>{Math.random()>=.1||a.capture(e,{section:t.id,section_label:t.label,section_index:r,source:"scroll_spy",sample_rate:.1})},i[0]=e,i[1]=a,i[2]=n):n=i[2],n}])},892571,821442,e=>{"use strict";var t=e.i(948913),r=e.i(241696),n=e.i(29411),i=e.i(193854),a=e.i(726866),l=e.i(569019),s=e.i(150444),o=e.i(275173),c=e.i(63135),d=e.i(621591),u=e.i(102803),m=e.i(452290),h=e.i(561146),p=e.i(5122),f=e.i(336819);let g={[t.d.OpenRouterWebSearch]:s.f,[t.d.OpenRouterWebFetch]:d.f,[t.d.OpenRouterImageGeneration]:o.f,[t.d.OpenRouterDatetime]:i.f,[t.d.OpenRouterShell]:h.f,[t.d.OpenRouterBash]:p.f,[t.d.OpenRouterApplyPatch]:a.f,[t.d.OpenRouterFusion]:r.f,[t.d.OpenRouterAdvisor]:c.f,[t.d.OpenRouterSubagent]:n.f,[t.d.OpenRouterToolSearch]:f.f,[t.d.OpenRouterSearchModels]:m.f,[t.d.OpenRouterFiles]:l.f,[t.d.OpenRouterMcp]:u.f};e.s(["f",0,g],892571);var b=e.i(659350),v=e.i(663456),x=e.i(233452);e.i(707060);var y=e.i(387086),w=e.i(919035);let k={beta:(0,y.b)("Beta"),experimental:(0,y.b)("Experimental")};e.s(["f",0,function(e){let t,r,n=(0,v.c)(5),{status:i}=e,a=(0,w.f)();if(void 0===i)return null;let l=k[i];return n[0]!==a||n[1]!==l?(t=a(l),n[0]=a,n[1]=l,n[2]=t):t=n[2],n[3]!==t?(r=(0,b.jsx)(x.Badge,{variant:"promo",size:"sm",children:t}),n[3]=t,n[4]=r):r=n[4],r}],821442)},684313,617729,e=>{"use strict";e.i(707060);var t=e.i(387086),r=e.i(32959);let n={HowItWorks:"how-it-works",Providers:"providers",Usage:"usage",Benchmarks:"benchmarks",Faq:"faq",Related:"related"};n.HowItWorks,(0,t.b)("How it works"),n.Providers,(0,t.b)("Providers and pricing"),n.Usage,(0,t.b)("Using this tool"),n.Benchmarks,(0,t.b)("Benchmarks"),n.Faq,(0,t.b)("Frequently asked questions"),n.Related,(0,t.b)("Related tools"),e.s(["E",0,n,"k",0,function(e){return(0,r.r)().filter(t=>t.category===e.benchmarkCategory)}],684313),e.s(["h",0,"top-[calc(var(--navbar-height)+24px+var(--sticky-banner-top,0px))]","x",0,"top-[calc(var(--navbar-height)+var(--sticky-banner-top,0px))]","r",0,85,"D",0,"scroll-mt-[calc(var(--navbar-height)+81px+var(--sticky-banner-top,0px))] lg:scroll-mt-[calc(var(--navbar-height)+24px+var(--sticky-banner-top,0px))]"],617729)},495193,e=>{"use strict";var t=e.i(898820);t.Q.ChatCompletions,t.Q.Responses,t.Q.AnthropicMessages,e.s(["N",0,{Listed:"listed",Free:"free",Provider:"provider",Byok:"byok",ModelUsage:"model-usage"},"V",0,function(e,t){return"chatroom"===t.availability.kind?`${e}?tool=${t.availability.toolId}`:null},"H",0,function(e){return`/tool/${e.slug}`}])},447131,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(136562),i=e.i(139697),a=e.i(751155),l=e.i(126324),s=e.i(231171),o=e.i(199168);e.s(["f",0,function(e){let c,d,u=(0,r.c)(30),{gate:m,blockedTriggerClassName:h,variant:p,size:f,density:g,className:b,render:v,onClick:x,"aria-label":y,children:w}=e,k=(0,o.M)();u[0]!==b?(c=(0,n.f)(b,"pointer-events-none opacity-50"),u[0]=b,u[1]=c):c=u[1],u[2]!==w||u[3]!==g||u[4]!==f||u[5]!==c||u[6]!==p?(d=(0,t.jsx)(i.Button,{variant:p,size:f,density:g,className:c,"aria-disabled":"true",tabIndex:-1,children:w}),u[2]=w,u[3]=g,u[4]=f,u[5]=c,u[6]=p,u[7]=d):d=u[7];let j=d;switch(m){case s.L.Allowed:{let e;return u[8]!==y||u[9]!==w||u[10]!==b||u[11]!==g||u[12]!==x||u[13]!==v||u[14]!==f||u[15]!==p?(e=(0,t.jsx)(i.Button,{variant:p,size:f,density:g,className:b,render:v,onClick:x,"aria-label":y,children:w}),u[8]=y,u[9]=w,u[10]=b,u[11]=g,u[12]=x,u[13]=v,u[14]=f,u[15]=p,u[16]=e):e=u[16],e}case s.L.Loading:return j;case s.L.Blocked:{let e,r,n,i,s;return u[17]!==k?(e=k(l.f),u[17]=k,u[18]=e):e=u[18],u[19]!==k?(r=k(l.f),u[19]=k,u[20]=r):r=u[20],u[21]!==r?(n=(0,t.jsx)("span",{className:"sr-only",children:r}),u[21]=r,u[22]=n):n=u[22],u[23]!==h||u[24]!==j||u[25]!==n?(i=(0,t.jsxs)(a.TooltipNonInteractiveTrigger,{className:h,children:[j,n]}),u[23]=h,u[24]=j,u[25]=n,u[26]=i):i=u[26],u[27]!==e||u[28]!==i?(s=(0,t.jsx)(a.Tooltip,{content:e,children:i}),u[27]=e,u[28]=i,u[29]=s):s=u[29],s}default:return m}}])},155771,e=>{"use strict";var t=e.i(663456),r=e.i(376885),n=e.i(128564),i=e.i(674896);e.s(["f",0,function(){let e,a,l=(0,t.c)(6),{isSignedIn:s}=(0,r.f)(),o=!0===s;l[0]!==o?(e={isEnabled:o},l[0]=o,l[1]=e):e=l[1];let{workspaces:c,activeWorkspaceId:d}=(0,n.Z)(e);if(l[2]!==d||l[3]!==s||l[4]!==c){let e=!0===s?c?.find(e=>e.id===d):void 0;a=void 0===e?`/${i.L.Chat}`:(0,i.$)(e.slug,i.L.Chat),l[2]=d,l[3]=s,l[4]=c,l[5]=a}else a=l[5];return a}])},510914,e=>{"use strict";e.s(["f",0,function(t,r){return(n,i)=>(function(t,r,n,i){let a="SharedWorker"===t.name,l=e.b,s=[n.map(t=>e.h("string"==typeof t?t:t.path,l)).reverse(),e.X,l],o=["NEXT_DEPLOYMENT_ID","NEXT_CLIENT_ASSET_SUFFIX"];for(let e=0;e