(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{4760:function(e,r,t){Promise.resolve().then(t.t.bind(t,7960,23)),Promise.resolve().then(t.bind(t,4374)),Promise.resolve().then(t.bind(t,6427))},4374:function(e,r,t){"use strict";t.d(r,{default:function(){return s}});var n=t(7437),a=t(2265);class o extends a.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,r){console.error("ErrorBoundary caught:",e,r)}render(){if(this.state.hasError){var e;return this.props.fallback?this.props.fallback:(0,n.jsxs)("div",{style:{maxWidth:600,margin:"4rem auto",padding:"2rem",borderRadius:8,border:"1px solid var(--border)",background:"var(--background)",textAlign:"center"},children:[(0,n.jsx)("h2",{style:{fontSize:"1.25rem",fontWeight:600,marginBottom:"0.75rem"},children:"Something went wrong"}),(0,n.jsx)("p",{style:{color:"var(--muted)",marginBottom:"1rem"},children:(null===(e=this.state.error)||void 0===e?void 0:e.message)||"An unexpected error occurred."}),(0,n.jsx)("button",{onClick:()=>this.setState({hasError:!1,error:null}),style:{padding:"0.5rem 1.25rem",borderRadius:6,border:"none",background:"var(--accent)",color:"#fff",cursor:"pointer",fontSize:"0.875rem"},children:"Try again"})]})}return this.props.children}constructor(e){super(e),this.state={hasError:!1,error:null}}}function s(e){let{children:r}=e;return(0,n.jsx)(o,{children:r})}},6427:function(e,r,t){"use strict";t.d(r,{default:function(){return i}});var n=t(7437),a=t(2265),o=t(7648),s=t(5475);let l=[{href:"/",label:"Home"},{href:"/demo",label:"Demo"},{href:"/benchmark",label:"Benchmark"},{href:"/retriever-lab",label:"Retriever Lab"},{href:"/graph",label:"Graph"},{href:"/arena",label:"Arena"},{href:"/tools",label:"Tools"}];function i(){let e=(0,s.usePathname)(),[r,t]=(0,a.useState)(!1);return(0,n.jsxs)("nav",{className:"sticky top-0 z-50 border-b px-6 py-3",style:{background:"var(--card)",borderColor:"var(--border)"},children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsxs)("div",{className:"flex items-center gap-8",children:[(0,n.jsx)(o.default,{href:"/",className:"font-bold text-lg tracking-tight",style:{color:"var(--foreground)"},children:"KB Arena"}),(0,n.jsx)("div",{className:"hidden sm:flex items-center gap-1",children:l.map(r=>{let t=e===r.href;return(0,n.jsx)(o.default,{href:r.href,className:"text-sm px-3 py-1.5 transition-colors",style:{color:t?"var(--accent)":"var(--muted)",borderBottom:t?"2px solid var(--accent)":"2px solid transparent"},children:r.label},r.href)})})]}),(0,n.jsx)("button",{className:"sm:hidden p-2 rounded",style:{color:"var(--muted)"},onClick:()=>t(!r),"aria-label":"Toggle navigation",children:(0,n.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:r?(0,n.jsx)("path",{d:"M5 5l10 10M15 5L5 15"}):(0,n.jsx)("path",{d:"M3 5h14M3 10h14M3 15h14"})})})]}),r&&(0,n.jsx)("div",{className:"sm:hidden pt-3 pb-1 flex flex-col gap-1",children:l.map(r=>{let a=e===r.href;return(0,n.jsx)(o.default,{href:r.href,onClick:()=>t(!1),className:"text-sm px-3 py-2 rounded transition-colors",style:{color:a?"var(--accent)":"var(--muted)",background:a?"var(--background)":"transparent"},children:r.label},r.href)})})]})}},7960:function(){}},function(e){e.O(0,[587,648,971,117,744],function(){return e(e.s=4760)}),_N_E=e.O()}]);