1import{r,j as e,m as s}from"./framer-motion-0Sy5Nd0g.js";import{u as v,L as u}from"./vendor-C97i8dbC.js";import{f as k,s as N,S as w,a as L}from"./index-CQi3APS0.js";import{A as M}from"./arrow-left-P3ctArOZ.js";function g(m,t,o,x,l){const p=t/2,c=[`M0,${p}`];for(let n=1;n<=o;n++){const f=n/o*m,d=n/o,a=Math.max(0,1-d*1.8)*(t*.35),i=Math.abs(d-x.x),h=Math.max(0,1-i*3)*x.y*15,b=3+Math.sin(l*.5)*.5,j=p+Math.sin(d*Math.PI*b+l)*a+Math.sin(d*Math.PI*7+l*1.3)*a*.3+h;c.push(`L${f.toFixed(1)},${j.toFixed(1)}`)}return c.join(" ")}const I=()=>{const m=v(),t=k(),[o,x]=r.useState({x:.5,y:0}),[l,p]=r.useState(0),c=r.useRef(null),n=r.useRef(0);r.useEffect(()=>{N.error(`Page not found: ${m.pathname}`)},[m.pathname]),r.useEffect(()=>{if(t)return;let a=!0;const i=()=>{a&&(p(h=>h+.03),n.current=requestAnimationFrame(i))};return n.current=requestAnimationFrame(i),()=>{a=!1,cancelAnimationFrame(n.current)}},[t]);const f=r.useCallback(a=>{if(!c.current)return;const i=c.current.getBoundingClientRect();x({x:(a.clientX-i.left)/i.width,y:((a.clientY-i.top)/i.height-.5)*2})},[]),d=[{opacity:.06,offset:28,blur:0,delay:.6},{opacity:.1,offset:20,blur:0,delay:.4},{opacity:.18,offset:12,blur:0,delay:.2},{opacity:.3,offset:6,blur:0,delay:.1}],y=g(800,100,80,o,l);return e.jsxs("div",{className:"min-h-screen bg-background text-foreground flex flex-col",children:[e.jsxs("main",{id:"main-content",tabIndex:-1,className:"flex flex-grow flex-col",ref:c,onMouseMove:f,children:[e.jsx(w,{title:"Page Not Found",description:"The page you're looking for doesn't exist.",noindex:!0}),e.jsxs("div",{className:"flex-1 flex items-center justify-center relative overflow-hidden px-4",children:[e.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none waveform-fade",children:e.jsxs("svg",{viewBox:"0 0 800 100",className:"w-full max-w-4xl h-auto opacity-30",preserveAspectRatio:"none","aria-hidden":"true",children:[e.jsx("path",{d:y,fill:"none",stroke:"hsl(var(--primary))",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("path",{d:g(800,100,80,o,l+1.5),fill:"none",stroke:"hsl(var(--primary))",strokeWidth:"0.8",strokeLinecap:"round",opacity:"0.4"})]})}),e.jsx("div",{className:"absolute inset-0 pointer-events-none","aria-hidden":"true",children:!t&&[...Array(6)].map((a,i)=>e.jsx(s.div,{className:"absolute w-1 h-1 rounded-full bg-primary/20",initial:{x:`${15+i*14}%`,y:`${20+i%3*25}%`},animate:{y:[`${20+i%3*25}%`,`${25+i%3*25}%`],opacity:[.2,.5,.2]},transition:{duration:3+i*.5,repeat:1/0,ease:"easeInOut"}},i))}),e.jsxs("div",{className:"relative z-10 text-center max-w-2xl mx-auto",children:[e.jsxs("div",{className:"relative mb-6",children:[d.map((a,i)=>e.jsx(s.div,{className:"absolute inset-0 select-none",initial:t?{opacity:a.opacity,y:a.offset}:{opacity:0,y:a.offset+10},animate:{opacity:a.opacity,y:a.offset},transition:t?{duration:0}:{duration:.8,delay:a.delay,ease:"easeOut"},"aria-hidden":"true",children:e.jsx("span",{className:"text-[clamp(4.5rem,14vw,6rem)] font-black tracking-tighter text-foreground leading-none block",style:{filter:a.blur>0?`blur(${a.blur}px)`:void 0},children:"404"})},i)),e.jsxs(s.div,{className:"relative glitch-text",initial:t?{opacity:1}:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:t?{duration:0}:{duration:.6,ease:"easeOut"},children:[e.jsx("span",{className:"absolute inset-0 glitch-layer-1 text-[clamp(4.5rem,14vw,6rem)] font-black tracking-tighter leading-none block","aria-hidden":"true",children:"404"}),e.jsx("span",{className:"absolute inset-0 glitch-layer-2 text-[clamp(4.5rem,14vw,6rem)] font-black tracking-tighter leading-none block","aria-hidden":"true",children:"404"}),e.jsx("h1",{className:"text-[clamp(4.5rem,14vw,6rem)] font-black tracking-tighter text-foreground leading-none relative text-balance",children:"404"})]})]}),e.jsxs(s.div,{className:"flex items-center justify-center gap-3 mb-8",initial:t?{opacity:1}:{opacity:0,scaleX:0},animate:{opacity:1,scaleX:1},transition:t?{duration:0}:{duration:.8,delay:.3},children:[e.jsx("div",{className:"h-px flex-1 max-w-[80px] bg-gradient-to-r from-transparent to-primary/40"}),e.jsxs("svg",{viewBox:"0 0 120 24",className:"w-28 h-6","aria-hidden":"true",children:[e.jsx("path",{d:"M0,12 L15,12 L20,4 L25,20 L30,8 L35,16 L40,12 L50,12 L55,6 L58,12 L65,12",fill:"none",stroke:"hsl(var(--primary))",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0.8"}),e.jsx("path",{d:"M75,12 L120,12",fill:"none",stroke:"hsl(var(--muted-foreground))",strokeWidth:"1",strokeLinecap:"round",strokeDasharray:"2 4",opacity:"0.4"})]}),e.jsx("div",{className:"h-px flex-1 max-w-[80px] bg-gradient-to-l from-transparent to-muted-foreground
1/30"})]}),e.jsx(s.p,{className:"text-lg sm:text-xl text-muted-foreground mb-3 font-medium",initial:t?{opacity:1}:{opacity:0,y:12},animate:{opacity:1,y:0},transition:t?{duration:0}:{duration:.6,delay:.5},children:"This frequency doesn't exist"}),e.jsxs(s.p,{"data-md-skip":!0,className:"text-sm text-muted-foreground mb-10 font-mono",initial:t?{opacity:1}:{opacity:0},animate:{opacity:1},transition:t?{duration:0}:{duration:.6,delay:.7},children:[decodeURIComponent(m.pathname),e.jsx("span",{className:"inline-block w-[2px] h-[1em] bg-primary/60 ml-0.5 align-text-bottom motion-safe:animate-pulse"})]}),e.jsx(s.div,{initial:t?{opacity:1}:{opacity:0,y:16},animate:{opacity:1,y:0},transition:t?{duration:0}:{duration:.6,delay:.8},children:e.jsxs(u,{to:"/",className:"inline-flex items-center gap-2 px-6 py-3 rounded-full bg-primary-solid text-primary-foreground font-medium text-sm hover:bg-primary/90 transition-[color,background-color,box-shadow,transform] duration-200 hover:shadow-lg group cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",children:[e.jsx(M,{className:"w-4 h-4 transition-transform group-hover:-translate-x-1","aria-hidden":"true"}),"Tune Back In"]})}),e.jsxs(s.nav,{"aria-label":"Where to go next",className:"mt-14 text-left mx-auto max-w-md border-t border-border pt-8",initial:t?{opacity:1}:{opacity:0},animate:{opacity:1},transition:t?{duration:0}:{duration:.6,delay:.9},children:[e.jsx("h2",{className:"text-sm font-semibold mb-3",children:"Where to look next"}),e.jsxs("ul",{className:"space-y-1.5 text-sm text-muted-foreground",children:[e.jsxs("li",{children:[e.jsx(u,{to:"/",className:"text-primary underline underline-offset-2",children:"Home"})," - what Echoo is and how it works"]}),e.jsxs("li",{children:[e.jsx(u,{to:"/marketplace",className:"text-primary underline underline-offset-2",children:"Command Marketplace"})," - every published command"]}),e.jsxs("li",{children:[e.jsx(u,{to:"/blog",className:"text-primary underline underline-offset-2",children:"Blog"})," - releases and guides"]}),e.jsxs("li",{children:[e.jsx(u,{to:"/docs",className:"text-primary underline underline-offset-2",children:"API & developer docs"})," - the public content API"]}),e.jsxs("li",{children:[e.jsx("a",{href:"/sitemap.xml",className:"text-primary underline underline-offset-2",children:"/sitemap.xml"})," - every indexable page"]}),e.jsxs("li",{children:[e.jsx("a",{href:"/llms.txt",className:"text-primary underline underline-offset-2",children:"/llms.txt"})," - whole-site summary for LLMs"]}),e.jsxs("li",{children:[e.jsx("a",{href:"/openapi.json",className:"text-primary underline underline-offset-2",children:"/openapi.json"})," - OpenAPI 3.1 specification"]})]})]})]})]})]}),e.jsx("div",{"data-md-skip":!0,children:e.jsx(L,{})})]})};export{I as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.