1import{m as E,s as R,E as x,N as g,R as l,i as S,r as u,a as y,u as _,F as v,b as D,c as b,d as M,e as C,f as P,h as F,k,l as L,n as T,o as H,p as I,j as p}from"./chunk-JZWAC4HX-CyzTo3l_.js";import{c as z}from"./client-C8Y_1U8W.js";import{r as O}from"./index-F7hX-top.js";import"./index-7OC5HNn7.js";import"./index-CdiuzngQ.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 h({renderAppShell:t,title:o,children:a}){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"}},a))):a}function N({error:t,renderAppShell:o}){console.error(t);let a=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(h,{renderAppShell:o,title:"Unhandled Thrown Response!"},l.createElement("h1",{style:{fontSize:"24px"}},t.status," ",t.statusText),a);let n;if(t instanceof Error)n=t;else{let r=t==null?"Unknown Error":typeof t=="object"&&"toString"in t?t.toString():JSON.stringify(t);n=new Error(r)}return l.createElement(h,{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"}},n.stack),a)}function j(t){if(!t)return null;let o=Object.entries(t),a={};for(let[n,r]of o)if(r&&r.__type==="RouteErrorResponse")a[n]=new x(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type==="Error"){if(r.__subType){let i=window[r.__subType];if(typeof i=="function")try{let s=new i(r.message);s.stack=r.stack,a[n]=s}catch{}}if(a[n]==null){let i=new Error(r.message);i.stack=r.stack,a[n]=i}}else a[n]=r;return a}
5function A({state:t,routes:o,getRouteInfo:a,location:n,basename:r,isSpaMode:i}){let s={...t,loaderData:{...t.loaderData}},c=E(o,n,r);if(c)for(let w of c){let m=w.route.id,d=a(m);R(m,d.clientLoader,d.hasLoader,i)&&(d.hasHydrateFallback||!d.hasLoader)?delete s.loaderData[m]:d.hasLoader||(s.loaderData[m]=null)}return s}function B(t){return u.createElement(b,{flushSync:O.flushSync,...t})}var e=null,f=null;function U(){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 W({getContext:t,unstable_instrumentations:o}){if(U(),!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 a=e;if(!e.stateDecodingPromise){let s=e.context.stream;y(s,"No stream found for single fetch decoding"),e.context.stream=void 0,e.stateDecodingPromise=M(s,window).then(c=>{e.context.state=c.value,a.stateDecodingPromise.value=!0}).catch(c=>{a.stateDecodingPromise.error=c})}if(e.stateDecodingPromise.error)throw e.stateDecodingPromise.error;if(!e.stateDecodingPromise.value)throw e.stateDecodingPromise;let n=C(e.manifest.routes,e.routeModules,e.context.state,e.context.ssr,e.context.isSpaMode),r;if(e.context.isSpaMode){let{loaderData:s}=e.context.state;e.manifest.routes.root?.hasLoader&&s&&"root"in s&&(r={loaderData:{root:s.root}})}else r=A({state:e.context.state,routes:n,getRouteInfo:s=>({clientLoader:e.routeModules[s]?.clientLoader,hasLoader:e.manifest.routes[s]?.hasLoader===!0,hasHydrateFallback:e.routeModules[s]?.HydrateFallback!=null}),location:window.location,basename:window.__reactRouterContext?.basename,isSpaMode:e.context.isSpaMode}),r&&r.errors&&(r.errors=j(r.errors));let i=P({routes:n,history:L(),basename:e.context.basename,getContext:t,hydrationData:r,hydrationRouteProperties:I,unstable_instrumentations:o,mapRouteProperties:H,future:{middleware:e.context.future.v8_middleware},dataStrategy:k(()=>i,e.manifest,e.routeModules,e.context.ssr,e.context.basename,e.context.future.unstable_trailingSlashAwareDataRequests),patchRoutesOnNavigation:F(e.manifest,e.routeModules,e.context.ssr,e.context.routeDiscovery,e.context.isSpaMode,e.context.basename)});return e.router=i,i.state.initialized&&(e.routerInitialized=!0,i.initialize()),i.createRoutesForHMR=T,window.__reactRouterDataRouter=i,i}function Y(t){f||(f=W({getContext:t.getContext,unstable_instrumentations:t.unstable_instrumentations}));let[o,a]=u.useState(void 0);u.useEffect(()=>{},[]),u.useEffect(()=>{},[o]);let[n,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(i=>{i.location!==n&&r(i.location)})},[n]),y(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:n},u.createElement(B,{router:f,unstable_useTransitions:t.unstable_useTransitions,onError:t.onError}))),u.createElement(u.Fragment,null))}u.startTransition(()=>{z.hydrateRoot(document,p.jsx(u.StrictMode,{children:p.jsx(Y,{})}))});
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.