1import{A as e,D as t,E as n,I as r,M as i,_ as a,a as o,d as s,f as c,g as l,j as u,n as d,r as f,s as p,v as m,x as h,z as g}from"./hooks-yeAClxn0.js";var _=g(r(),1);_.memo(v);function v({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return c(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function y({to:t,replace:r,state:s,relative:c}){e(d(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:l}=_.useContext(a);i(!l,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:u}=_.useContext(m),{pathname:p}=f(),g=o(),v=n(t,h(u),p,c===`path`),y=JSON.stringify(v);return _.useEffect(()=>{g(JSON.parse(y),{replace:r,state:s,relative:c})},[g,y,c,r,s]),null}function b(e){return p(e.context)}function x(t){e(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function S({basename:n=`/`,children:r=null,location:o,navigationType:s=`POP`,navigator:c,static:f=!1,useTransitions:p}){e(!d(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let m=n.replace(/^\/*/,`/`),h=_.useMemo(()=>({basename:m,navigator:c,static:f,useTransitions:p,future:{}}),[m,c,f,p]);typeof o==`string`&&(o=u(o));let{pathname:g=`/`,search:v=``,hash:y=``,state:b=null,key:x=`default`,mask:S}=o,C=_.useMemo(()=>{let e=t(g,m);return e==null?null:{location:{pathname:e,search:v,hash:y,state:b,key:x,mask:S},navigationType:s}},[m,g,v,y,b,x,s,S]);return i(C!=null,`<Router basename="${m}"> is not able to match the URL "${g}${v}${y}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:_.createElement(a.Provider,{value:h},_.createElement(l.Provider,{children:r,value:C}))}function C({children:e,location:t}){return s(w(e),t)}_.Component;function w(t,n=[]){let r=[];return _.Children.forEach(t,(t,i)=>{if(!_.isValidElement(t))return;let a=[...n,i];if(t.type===_.Fragment){r.push.apply(r,w(t.props.children,a));return}e(t.type===x,`[${typeof t.type==`string`?t.type:t.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);let o=t.props;e(!o.index||!o.children,`An index route cannot have child routes.`);let s={id:o.id||a.join(`-`),caseSensitive:o.caseSensitive,element:o.element,Component:o.Component,index:o.index,path:o.path,middleware:o.middleware,loader:o.loader,action:o.action,hydrateFallbackElement:o.hydrateFallbackElement,HydrateFallback:o.HydrateFallback,errorElement:o.errorElement,ErrorBoundary:o.ErrorBoundary,shouldRevalidate:o.shouldRevalidate,handle:o.handle,lazy:o.lazy};o.children&&(s.children=w(o.children,a)),r.push(s)}),r}var T=`modulepreload`,E=function(e){return`/`+e},D={},O=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=E(t,n),t=s(t),t in D)return;D[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:T,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};export{S as a,x as i,y as n,C as o,b as r,O as t};
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.