1import{v as E,y as R,E as x,N as g,c as l,r as S,w as u,q as w,z as _,F as v,d as D,e as b,l as M,i as C,k,n as P,o as F,h as T,j as L,u as H,p as I,t as h}from"./chunk-UVKPFVEO-CLm4SOHM.js";import{b as z,c as O}from"./index-B8W_nq-u.js";[...g];new TextEncoder;(class extends l.Component{constructor(t){super(t),this.state={error:null,location:t.location}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,o){return o.location!==t.location?{error:null,location:t.location}:{error:o.error,location:o.location}}render(){return this.state.error?l.createElement(N,{error:this.state.error,renderAppShell:!0}):this.props.children}});function p({renderAppShell:t,title:o,children:n}){return t?l.createElement("html",{lang:"en"},l.createElement("head",null,l.createElement("meta",{charSet:"utf-8"}),l.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),l.createElement("title",null,o)),l.createElement("body",null,l.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},n))):n}function N({error:t,renderAppShell:o}){console.error(t);let n=l.createElement("script",{dangerouslySetInnerHTML:{__html:` 2 console.log( 3 "ð¿ Hey developer ð. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information." 4 ); 5 `}});if(S(t))return l.createElement(p,{renderAppShell:o,title:"Unhandled Thrown Response!"},l.createElement("h1",{style:{fontSize:"24px"}},t.status," ",t.statusText),n);let s;if(t instanceof Error)s=t;else{let r=t==null?"Unknown Error":typeof t=="object"&&"toString"in t?t.toString():JSON.stringify(t);s=new Error(r)}return l.createElement(p,{renderAppShell:o,title:"Application Error!"},l.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),l.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},s.stack),n)}function j(t){if(!t)return null;let o=Object.entries(t),n={};for(let[s,r]of o)if(r&&r.__type==="RouteErrorResponse")n[s]=new x(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type==="Error"){if(r.__subType){let a=window[r.__subType];if(typeof a=="function")try{let i=new a(r.message);i.stack=r.stack,n[s]=i}catch{}}if(n[s]==null){let a=new Error(r.message);a.stack=r.stack,n[s]=a}}else n[s]=r;return n}function q({state:t,routes:o,getRouteInfo:n,location:s,basename:r,isSpaMode:a}){let i={...t,loaderData:{...t.loaderData}},c=E(o,s,r);if(c)for(let y of c){let m=y.route.id,d=n(m);R(m,d.clientLoader,d.hasLoader,a)&&(d.hasHydrateFallback||!d.hasLoader)?delete i.loaderData[m]:d.hasLoader||(i.loaderData[m]=null)}return i}function A(t){return u.createElement(b,{flushSync:z.flushSync,...t})}var e=null,f=null;function B(){if(!e&&window.__reactRouterContext&&window.__reactRouterManifest&&window.__reactRouterRouteModules){if(window.__reactRouterManifest.sri===!0){const t=document.querySelector("script[rr-importmap]");if(t?.textContent)try{window.__reactRouterManifest.sri=JSON.parse(t.textContent).integrity}catch(o){console.error("Failed to parse import map",o)}}e={context:window.__reactRouterContext,manifest:window.__reactRouterManifest,routeModules:window.__reactRouterRouteModules,stateDecodingPromise:void 0,router:void 0,routerInitialized:!1}}}function U({getContext:t,unstable_instrumentations:o}){if(B(),!e)throw new Error("You must be using the SSR features of React Router in order to skip passing a `router` prop to `<RouterProvider>`");let n=e;if(!e.stateDecodingPromise){let i=e.context.stream;w(i,"No stream found for single fetch decoding"),e.context.stream=void 0,e.stateDecodingPromise=M(i,window).then(c=>{e.context.state=c.value,n.stateDecodingPromise.value=!0}).catch(c=>{n.stateDecodingPromise.error=c})}if(e.stateDecodingPromise.error)throw e.stateDecodingPromise.error;if(!e.stateDecodingPromise.value)throw e.stateDecodingPromise;let s=C(e.manifest.routes,e.routeModules,e.context.state,e.context.ssr,e.context.isSpaMode),r;if(e.context.isSpaMode){let{loaderData:i}=e.context.state;e.manifest.routes.root?.hasLoader&&i&&"root"in i&&(r={loaderData:{root:i.root}})}else r=q({state:e.context.state,routes:s,getRouteInfo:i=>({clientLoader:e.routeModules[i]?.clientLoader,hasLoader:e.manifest.routes[i]?.hasLoader===!0,hasHydrateFallback:e.routeModules[i]?.HydrateFallback!=null}),location:window.location,basename:window.__reactRouterContext?.basename,isSpaMode:e.context.
5isSpaMode}),r&&r.errors&&(r.errors=j(r.errors));window.history.state&&window.history.state.masked&&window.history.replaceState({...window.history.state,masked:void 0},"");let a=k({routes:s,history:T(),basename:e.context.basename,getContext:t,hydrationData:r,hydrationRouteProperties:I,unstable_instrumentations:o,mapRouteProperties:H,future:{unstable_passThroughRequests:e.context.future.unstable_passThroughRequests},dataStrategy:F(()=>a,e.manifest,e.routeModules,e.context.ssr,e.context.basename,e.context.future.unstable_trailingSlashAwareDataRequests),patchRoutesOnNavigation:P(()=>a,e.manifest,e.routeModules,e.context.ssr,e.context.routeDiscovery,e.context.isSpaMode,e.context.basename)});return e.router=a,a.state.initialized&&(e.routerInitialized=!0,a.initialize()),a.createRoutesForHMR=L,window.__reactRouterDataRouter=a,a}function W(t){f||(f=U({getContext:t.getContext,unstable_instrumentations:t.unstable_instrumentations}));let[o,n]=u.useState(void 0);u.useEffect(()=>{},[]),u.useEffect(()=>{},[o]);let[s,r]=u.useState(f.state.location);return u.useLayoutEffect(()=>{e&&e.router&&!e.routerInitialized&&(e.routerInitialized=!0,e.router.initialize())},[]),u.useLayoutEffect(()=>{if(e&&e.router)return e.router.subscribe(a=>{a.location!==s&&r(a.location)})},[s]),w(e,"ssrInfo unavailable for HydratedRouter"),_(f,e.manifest,e.routeModules,e.context.ssr,e.context.routeDiscovery,e.context.isSpaMode),u.createElement(u.Fragment,null,u.createElement(v.Provider,{value:{manifest:e.manifest,routeModules:e.routeModules,future:e.context.future,criticalCss:o,ssr:e.context.ssr,isSpaMode:e.context.isSpaMode,routeDiscovery:e.context.routeDiscovery}},u.createElement(D,{location:s},u.createElement(A,{router:f,unstable_useTransitions:t.unstable_useTransitions,onError:t.onError}))),u.createElement(u.Fragment,null))}u.startTransition(()=>{O.hydrateRoot(document,h.jsx(u.StrictMode,{children:h.jsx(W,{})}))});
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.