1import{m as x,s as v,N as b,R as s,i as E,r as n,f as y,h as S,F as D,k as M,l as _,n as T,o as P,p as C,q as F,t as L,v as O,x as H,y as k,z as I,j as p}from"./chunk-KS7C4IRE-DQ9sg0ES.js";import{r as z,a as j}from"./index-0ZcdCFj4.js";var h={};if(typeof window<"u"){const t={};globalThis.process??={};const r=globalThis.process.env??{};globalThis.process.env=new Proxy(Object.assign({},t,r),{get(a,o){return o in a?a[o]:void 0},has(){return!0}})}var w;function q(){if(w)return h;w=1;var t=z();return h.createRoot=t.createRoot,h.hydrateRoot=t.hydrateRoot,h}var N=q();if(typeof window<"u"){const t={};globalThis.process??={};const r=globalThis.process.env??{};globalThis.process.env=new Proxy(Object.assign({},t,r),{get(a,o){return o in a?a[o]:void 0},has(){return!0}})}[...b];new TextEncoder;(class extends s.Component{constructor(t){super(t),this.state={error:null,location:t.location}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location?{error:null,location:t.location}:{error:r.error,location:r.location}}render(){return this.state.error?s.createElement(A,{error:this.state.error,renderAppShell:!0}):this.props.children}});function g({renderAppShell:t,title:r,children:a}){return t?s.createElement("html",{lang:"en"},s.createElement("head",null,s.createElement("meta",{charSet:"utf-8"}),s.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),s.createElement("title",null,r)),s.createElement("body",null,s.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},a))):a}function A({error:t,renderAppShell:r}){console.error(t);let a=s.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(E(t))return s.createElement(g,{renderAppShell:r,title:"Unhandled Thrown Response!"},s.createElement("h1",{style:{fontSize:"24px"}},t.status," ",t.statusText),a);let o;if(t instanceof Error)o=t;else{let c=t==null?"Unknown Error":typeof t=="object"&&"toString"in t?t.toString():JSON.stringify(t);o=new Error(c)}return s.createElement(g,{renderAppShell:r,title:"Application Error!"},s.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),s.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},o.stack),a)}function B({state:t,routes:r,getRouteInfo:a,location:o,basename:c,isSpaMode:u}){let i={...t,loaderData:{...t.loaderData}},l=x(r,o,c);if(l)for(let R of l){let m=R.route.id,d=a(m);v(m,d.clientLoader,d.hasLoader,u)&&(d.hasHydrateFallback||!d.hasLoader)?delete i.loaderData[m]:d.hasLoader||(i.loaderData[m]=null)}return i}if(typeof window<"u"){const t={};globalThis.process??={};const r=globalThis.process.env??{};globalThis.process.env=new Proxy(Object.assign({},t,r),{get(a,o){return o in a?a[o]:void 0},has(){return!0}})}function U(t){return n.createElement(_,{flushSync:j.flushSync,...t})}var e=null,f=null;function $(){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(r){console.error("Failed to parse import map",r)}}e={context:window.__reactRouterContext,manifest:window.__reactRouterManifest,routeModules:window.__reactRouterRouteModules,stateDecodingPromise:void 0,router:void 0,routerInitialized:!1}}}function W({getContext:t,instrumentations:r}){if($(),!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 i=e.context.stream;y(i,"No stream found for single fetch decoding"),e.context.stream=void 0,e.stateDecodingPromise=T(i,window).then(l=>{e.context.state=l.value,a.stateDecodingPromise.value=!0}
5).catch(l=>{a.stateDecodingPromise.error=l})}if(e.stateDecodingPromise.error)throw e.stateDecodingPromise.error;if(!e.stateDecodingPromise.value)throw e.stateDecodingPromise;let o=P(e.manifest.routes,e.routeModules,e.context.state,e.context.ssr,e.context.isSpaMode),c;if(e.context.isSpaMode){let{loaderData:i}=e.context.state;e.manifest.routes.root?.hasLoader&&i&&"root"in i&&(c={loaderData:{root:i.root}})}else c=B({state:e.context.state,routes:o,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.isSpaMode});window.history.state&&window.history.state.masked&&window.history.replaceState({...window.history.state,masked:void 0},"");let u=C({routes:o,history:O(),basename:e.context.basename,getContext:t,hydrationData:c,hydrationRouteProperties:I,instrumentations:r,mapRouteProperties:k,future:{v8_passThroughRequests:e.context.future.v8_passThroughRequests},dataStrategy:L(()=>u,e.manifest,e.routeModules,e.context.ssr,e.context.basename,e.context.future.v8_trailingSlashAwareDataRequests),patchRoutesOnNavigation:F(()=>u,e.manifest,e.routeModules,e.context.ssr,e.context.routeDiscovery,e.context.isSpaMode,e.context.basename)});return e.router=u,u.state.initialized&&(e.routerInitialized=!0,u.initialize()),u.createRoutesForHMR=H,window.__reactRouterDataRouter=u,u}function Y(t){f||(f=W({getContext:t.getContext,instrumentations:t.instrumentations}));let[r,a]=n.useState(void 0);n.useEffect(()=>{},[]),n.useEffect(()=>{},[r]);let[o,c]=n.useState(f.state.location);return n.useLayoutEffect(()=>{e&&e.router&&!e.routerInitialized&&(e.routerInitialized=!0,e.router.initialize())},[]),n.useLayoutEffect(()=>{if(e&&e.router)return e.router.subscribe(u=>{u.location!==o&&c(u.location)})},[o]),y(e,"ssrInfo unavailable for HydratedRouter"),S(f,e.manifest,e.routeModules,e.context.ssr,e.context.routeDiscovery,e.context.isSpaMode),n.createElement(n.Fragment,null,n.createElement(D.Provider,{value:{manifest:e.manifest,routeModules:e.routeModules,future:e.context.future,criticalCss:r,ssr:e.context.ssr,isSpaMode:e.context.isSpaMode,routeDiscovery:e.context.routeDiscovery}},n.createElement(M,{location:o},n.createElement(U,{router:f,useTransitions:t.useTransitions,onError:t.onError}))),n.createElement(n.Fragment,null))}if(typeof window<"u"){const t={};globalThis.process??={};const r=globalThis.process.env??{};globalThis.process.env=new Proxy(Object.assign({},t,r),{get(a,o){return o in a?a[o]:void 0},has(){return!0}})}n.startTransition(()=>{N.hydrateRoot(document,p.jsx(n.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.