import{i as b,a as c,c as J,f as K,s as k,e as L,t as d}from"../chunks/3MMtouT7.js";import{B as M,D as N,F as w,G as P,I as y,J as q,g as G,K as z,L as C,M as O,p as Q,t as j,v as R,c as f,d as g,N as U,$ as V,r as v}from"../chunks/Ce0VRwE1.js";import{h as W}from"../chunks/DFPEaIHz.js";import{g as X}from"../chunks/Bkcn25gz.js";import{p as Y}from"../chunks/D347PuJK.js";import{B as $}from"../chunks/BTu-2gkj.js";function Z(n=!1){const r=M,s=r.l.u;if(!s)return;let p=()=>z(r.s);if(n){let i=0,a={};const _=C(()=>{let l=!1;const m=r.s;for(const o in m)m[o]!==a[o]&&(a[o]=m[o],l=!0);return l&&i++,i});p=()=>G(_)}s.b.length&&N(()=>{B(r,p),y(s.b)}),w(()=>{const i=P(()=>s.m.map(q));return()=>{for(const a of i)typeof a=="function"&&a()}}),s.a.length&&w(()=>{B(r,p),y(s.a)})}function B(n,r){if(n.l.s)for(const s of n.l.s)G(s);r()}O();var ee=K('<main class="error-page svelte-1j96wlh"><div class="error-content svelte-1j96wlh"><div class="error-code svelte-1j96wlh"> </div> <h1 class="error-title svelte-1j96wlh"><!></h1> <p class="error-message svelte-1j96wlh"><!></p> <div class="error-actions svelte-1j96wlh"><!> <!></div></div></main>');function ie(n,r){Q(r,!1);const s=()=>L(Y,"$page",p),[p,i]=J();Z();var a=ee();W("1j96wlh",e=>{U(()=>{V.title="Error - Shooter"})});var _=f(a),l=f(_),m=f(l,!0);v(l);var o=g(l,2),S=f(o);{var T=e=>{var t=d("Page not found");c(e,t)},A=e=>{var t=d("Something went wrong");c(e,t)};b(S,e=>{s().status===404?e(T):e(A,-1)})}v(o);var u=g(o,2),D=f(u);{var E=e=>{var t=d();j(()=>k(t,s().error.message)),c(e,t)},F=e=>{var t=d("The page you're looking for doesn't exist or has been moved.");c(e,t)},H=e=>{var t=d("An unexpected error occurred. Try refreshing or going back.");c(e,t)};b(D,e=>{s().error?.message?e(E):s().status===404?e(F,1):e(H,-1)})}v(u);var h=g(u,2),x=f(h);$(x,{text:"Go Home",classes:"btn-primary",onclick:()=>{X("/")}});var I=g(x,2);$(I,{text:"Go Back",classes:"btn-secondary",onclick:()=>{history.back()}}),v(h),v(_),v(a),j(()=>k(m,s().status)),c(n,a),R(),i()}export{ie as component};
