1import{u as l,i as c,j as t,L as d}from"./chunk-QFMPRPBF-CW8PFO20.js";import{B as u}from"./badge-BHRr7JS8.js";import{B as n}from"./button-S5-rnyuX.js";function m(e){switch(e){case 400:return"Bad Request";case 401:return"Unauthorized";case 403:return"Forbidden";case 404:return"Page Not Found";case 408:return"Request Timeout";case 429:return"Too Many Requests";case 500:return"Something Went Wrong";case 502:return"Bad Gateway";case 503:return"Service Unavailable";default:return e>=500?"Something Went Wrong":"An Error Occurred"}}function x(e){return e===404?"The page you're looking for doesn't exist or has been moved.":e>=500?"We're experiencing technical difficulties. Please try again in a moment.":"Something went wrong. Please try again."}function p(){var s;const e=l();let r=500,a;c(e)?(r=e.status,a=((s=e.data)==null?void 0:s.message)??(typeof e.data=="string"?e.data:void 0)):e instanceof Error&&(a=e.message);const i=m(r),o=a||x(r);return t.jsxs("section",{className:"relative flex min-h-[60dvh] flex-col items-center justify-center overflow-hidden px-4 py-16",children:[t.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_top,_var(--color-primary)_0%,_transparent_50%)] opacity-[0.03]"}),t.jsx("div",{className:"relative mx-auto w-full max-w-2xl text-center",children:t.jsxs("div",{className:"space-y-6",children:[t.jsx("div",{className:"inline-flex items-center",children:t.jsxs(u,{variant:"outline",className:"px-4 py-1.5 text-xs font-medium",children:["Error ",r]})}),t.jsxs("div",{className:"space-y-4",children:[t.jsx("h1",{className:"font-sans text-4xl font-medium tracking-tight text-foreground sm:text-5xl text-balance",children:i}),t.jsx("p",{className:"mx-auto max-w-lg text-base leading-relaxed text-muted-foreground sm:text-lg text-pretty wrap-break-word",children:o})]}),t.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:justify-center sm:gap-4",children:[t.jsx(n,{onClick:()=>window.location.reload(),children:"Try Again"}),t.jsx(n,{variant:"outline",asChild:!0,children:t.jsx(d,{to:"/",children:"Return Home"})})]})]})})]})}export{p as R};
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.