const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginPage-gtBmxXcL.js","assets/vendor-antd-CfykoIa6.js","assets/vendor-antd-BDNOyzxu.css","assets/AuthenticatedAppRoutes-btoedt5Z.js","assets/AuthenticatedAppRoutes-BRAtq3Bt.css"])))=>i.map(i=>d[i]); import{r as s,d as ct,C as dt}from"./vendor-antd-CfykoIa6.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const o of n)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function r(n){const o={};return n.integrity&&(o.integrity=n.integrity),n.referrerPolicy&&(o.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?o.credentials="include":n.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(n){if(n.ep)return;n.ep=!0;const o=r(n);fetch(n.href,o)}})();var oe={exports:{}},H={};var xe;function pt(){if(xe)return H;xe=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(a,n,o){var i=null;if(o!==void 0&&(i=""+o),n.key!==void 0&&(i=""+n.key),"key"in n){o={};for(var l in n)l!=="key"&&(o[l]=n[l])}else o=n;return n=o.ref,{$$typeof:e,type:a,key:i,ref:n!==void 0?n:null,props:o}}return H.Fragment=t,H.jsx=r,H.jsxs=r,H}var Ce;function mt(){return Ce||(Ce=1,oe.exports=pt()),oe.exports}var R=mt();const ft="modulepreload",ht=function(e){return"/"+e},Se={},Oe=function(t,r,a){let n=Promise.resolve();if(r&&r.length>0){let u=function(c){return Promise.all(c.map(p=>Promise.resolve(p).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=i?.nonce||i?.getAttribute("nonce");n=u(r.map(c=>{if(c=ht(c),c in Se)return;Se[c]=!0;const p=c.endsWith(".css"),d=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const m=document.createElement("link");if(m.rel=p?"stylesheet":ft,p||(m.as="script"),m.crossOrigin="",m.href=c,l&&m.setAttribute("nonce",l),document.head.appendChild(m),p)return new Promise((_,h)=>{m.addEventListener("load",_),m.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return n.then(i=>{for(const l of i||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})};var Pe="popstate";function bt(e={}){function t(a,n){let{pathname:o,search:i,hash:l}=a.location;return ce("",{pathname:o,search:i,hash:l},n.state&&n.state.usr||null,n.state&&n.state.key||"default")}function r(a,n){return typeof n=="string"?n:J(n)}return _t(t,r,null,e)}function w(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function x(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function gt(){return Math.random().toString(36).substring(2,10)}function Le(e,t){return{usr:e.state,key:e.key,idx:t}}function ce(e,t,r=null,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?B(t):t,state:r,key:t&&t.key||a||gt()}}function J({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function B(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function _t(e,t,r,a={}){let{window:n=document.defaultView,v5Compat:o=!1}=a,i=n.history,l="POP",u=null,c=p();c==null&&(c=0,i.replaceState({...i.state,idx:c},""));function p(){return(i.state||{idx:null}).idx}function d(){l="POP";let f=p(),y=f==null?null:f-c;c=f,u&&u({action:l,location:g.location,delta:y})}function m(f,y){l="PUSH";let b=ce(g.location,f,y);c=p()+1;let v=Le(b,c),S=g.createHref(b);try{i.pushState(v,"",S)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;n.location.assign(S)}o&&u&&u({action:l,location:g.location,delta:1})}function _(f,y){l="REPLACE";let b=ce(g.location,f,y);c=p();let v=Le(b,c),S=g.createHref(b);i.replaceState(v,"",S),o&&u&&u({action:l,location:g.location,delta:0})}function h(f){return yt(f)}let g={get action(){return l},get location(){return e(n,i)},listen(f){if(u)throw new Error("A history only accepts one active listener");return n.addEventListener(Pe,d),u=f,()=>{n.removeEventListener(Pe,d),u=null}},createHref(f){return t(n,f)},createURL:h,encodeLocation(f){let y=h(f);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:m,replace:_,go(f){return i.go(f)}};return g}function yt(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),w(r,"No window.location.(origin|href) available to create URL");let a=typeof e=="string"?e:J(e);return a=a.replace(/ $/,"%20"),!t&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function Ne(e,t,r="/"){return vt(e,t,r,!1)}function vt(e,t,r,a){let n=typeof t=="string"?B(t):t,o=j(n.pathname||"/",r);if(o==null)return null;let i=qe(e);wt(i);let l=null;for(let u=0;l==null&&u{let p={relativePath:c===void 0?i.path||"":c,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(a)&&u)return;w(p.relativePath.startsWith(a),`Absolute route path "${p.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(a.length)}let d=T([a,p.relativePath]),m=r.concat(p);i.children&&i.children.length>0&&(w(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),qe(i.children,t,m,d,u)),!(i.path==null&&!i.index)&&t.push({path:d,score:Lt(d,i.index),routesMeta:m})};return e.forEach((i,l)=>{if(i.path===""||!i.path?.includes("?"))o(i,l);else for(let u of Be(i.path))o(i,l,!0,u)}),t}function Be(e){let t=e.split("/");if(t.length===0)return[];let[r,...a]=t,n=r.endsWith("?"),o=r.replace(/\?$/,"");if(a.length===0)return n?[o,""]:[o];let i=Be(a.join("/")),l=[];return l.push(...i.map(u=>u===""?o:[o,u].join("/"))),n&&l.push(...i),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function wt(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:kt(t.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}var Rt=/^:[\w-]+$/,Et=3,xt=2,Ct=1,St=10,Pt=-2,ke=e=>e==="*";function Lt(e,t){let r=e.split("/"),a=r.length;return r.some(ke)&&(a+=Pt),t&&(a+=xt),r.filter(n=>!ke(n)).reduce((n,o)=>n+(Rt.test(o)?Et:o===""?Ct:St),a)}function kt(e,t){return e.length===t.length&&e.slice(0,-1).every((a,n)=>a===t[n])?e[e.length-1]-t[t.length-1]:0}function $t(e,t,r=!1){let{routesMeta:a}=e,n={},o="/",i=[];for(let l=0;l{if(p==="*"){let h=l[m]||"";i=o.slice(0,o.length-h.length).replace(/(.)\/+$/,"$1")}const _=l[m];return d&&!_?c[p]=void 0:c[p]=(_||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:i,pattern:e}}function Tt(e,t=!1,r=!0){x(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],n="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,u)=>(a.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),n+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?n+="\\/*$":e!==""&&e!=="/"&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),a]}function jt(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return x(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function j(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,a=e.charAt(r);return a&&a!=="/"?null:e.slice(r)||"/"}var Fe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,It=e=>Fe.test(e);function At(e,t="/"){let{pathname:r,search:a="",hash:n=""}=typeof e=="string"?B(e):e,o;if(r)if(It(r))o=r;else{if(r.includes("//")){let i=r;r=r.replace(/\/\/+/g,"/"),x(!1,`Pathnames cannot have embedded double slashes - normalizing ${i} -> ${r}`)}r.startsWith("/")?o=$e(r.substring(1),"/"):o=$e(r,t)}else o=t;return{pathname:o,search:Nt(a),hash:qt(n)}}function $e(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function ie(e,t,r,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Mt(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function me(e){let t=Mt(e);return t.map((r,a)=>a===t.length-1?r.pathname:r.pathnameBase)}function fe(e,t,r,a=!1){let n;typeof e=="string"?n=B(e):(n={...e},w(!n.pathname||!n.pathname.includes("?"),ie("?","pathname","search",n)),w(!n.pathname||!n.pathname.includes("#"),ie("#","pathname","hash",n)),w(!n.search||!n.search.includes("#"),ie("#","search","hash",n)));let o=e===""||n.pathname==="",i=o?"/":n.pathname,l;if(i==null)l=r;else{let d=t.length-1;if(!a&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),d-=1;n.pathname=m.join("/")}l=d>=0?t[d]:"/"}let u=At(n,l),c=i&&i!=="/"&&i.endsWith("/"),p=(o||i===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||p)&&(u.pathname+="/"),u}var T=e=>e.join("/").replace(/\/\/+/g,"/"),Ot=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Nt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,qt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Bt=class{constructor(e,t,r,a=!1){this.status=e,this.statusText=t||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Ft(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Dt(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var De=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ue(e,t){let r=e;if(typeof r!="string"||!Fe.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let a=r,n=!1;if(De)try{let o=new URL(window.location.href),i=r.startsWith("//")?new URL(o.protocol+r):new URL(r),l=j(i.pathname,t);i.origin===o.origin&&l!=null?r=l+i.search+i.hash:n=!0}catch{x(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:n,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var He=["POST","PUT","PATCH","DELETE"];new Set(He);var Ut=["GET",...He];new Set(Ut);var F=s.createContext(null);F.displayName="DataRouter";var ne=s.createContext(null);ne.displayName="DataRouterState";var Ht=s.createContext(!1),ze=s.createContext({isTransitioning:!1});ze.displayName="ViewTransition";var zt=s.createContext(new Map);zt.displayName="Fetchers";var Wt=s.createContext(null);Wt.displayName="Await";var C=s.createContext(null);C.displayName="Navigation";var K=s.createContext(null);K.displayName="Location";var k=s.createContext({outlet:null,matches:[],isDataRoute:!1});k.displayName="Route";var he=s.createContext(null);he.displayName="RouteError";var We="REACT_ROUTER_ERROR",Gt="REDIRECT",Jt="ROUTE_ERROR_RESPONSE";function Vt(e){if(e.startsWith(`${We}:${Gt}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Yt(e){if(e.startsWith(`${We}:${Jt}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Bt(t.status,t.statusText,t.data)}catch{}}function Kt(e,{relative:t}={}){w(D(),"useHref() may be used only in the context of a component.");let{basename:r,navigator:a}=s.useContext(C),{hash:n,pathname:o,search:i}=X(e,{relative:t}),l=o;return r!=="/"&&(l=o==="/"?r:T([r,o])),a.createHref({pathname:l,search:i,hash:n})}function D(){return s.useContext(K)!=null}function $(){return w(D(),"useLocation() may be used only in the context of a component."),s.useContext(K).location}var Ge="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Je(e){s.useContext(C).static||s.useLayoutEffect(e)}function be(){let{isDataRoute:e}=s.useContext(k);return e?cr():Xt()}function Xt(){w(D(),"useNavigate() may be used only in the context of a component.");let e=s.useContext(F),{basename:t,navigator:r}=s.useContext(C),{matches:a}=s.useContext(k),{pathname:n}=$(),o=JSON.stringify(me(a)),i=s.useRef(!1);return Je(()=>{i.current=!0}),s.useCallback((u,c={})=>{if(x(i.current,Ge),!i.current)return;if(typeof u=="number"){r.go(u);return}let p=fe(u,JSON.parse(o),n,c.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:T([t,p.pathname])),(c.replace?r.replace:r.push)(p,c.state,c)},[t,r,o,n,e])}var Ve=s.createContext(null);function Sn(){return s.useContext(Ve)}function Qt(e){let t=s.useContext(k).outlet;return s.useMemo(()=>t&&s.createElement(Ve.Provider,{value:e},t),[t,e])}function Pn(){let{matches:e}=s.useContext(k),t=e[e.length-1];return t?t.params:{}}function X(e,{relative:t}={}){let{matches:r}=s.useContext(k),{pathname:a}=$(),n=JSON.stringify(me(r));return s.useMemo(()=>fe(e,JSON.parse(n),a,t==="path"),[e,n,a,t])}function Zt(e,t){return Ye(e,t)}function Ye(e,t,r,a,n){w(D(),"useRoutes() may be used only in the context of a component.");let{navigator:o}=s.useContext(C),{matches:i}=s.useContext(k),l=i[i.length-1],u=l?l.params:{},c=l?l.pathname:"/",p=l?l.pathnameBase:"/",d=l&&l.route;{let b=d&&d.path||"";Xe(c,!d||b.endsWith("*")||b.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${c}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. Please change the parent to .`)}let m=$(),_;if(t){let b=typeof t=="string"?B(t):t;w(p==="/"||b.pathname?.startsWith(p),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${b.pathname}" was given in the \`location\` prop.`),_=b}else _=m;let h=_.pathname||"/",g=h;if(p!=="/"){let b=p.replace(/^\//,"").split("/");g="/"+h.replace(/^\//,"").split("/").slice(b.length).join("/")}let f=Ne(e,{pathname:g});x(d||f!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),x(f==null||f[f.length-1].route.element!==void 0||f[f.length-1].route.Component!==void 0||f[f.length-1].route.lazy!==void 0,`Matched leaf route at location "${_.pathname}${_.search}${_.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let y=ar(f&&f.map(b=>Object.assign({},b,{params:Object.assign({},u,b.params),pathname:T([p,o.encodeLocation?o.encodeLocation(b.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?p:T([p,o.encodeLocation?o.encodeLocation(b.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:b.pathnameBase])})),i,r,a,n);return t&&y?s.createElement(K.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",..._},navigationType:"POP"}},y):y}function er(){let e=ur(),t=Ft(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",n={padding:"0.5rem",backgroundColor:a},o={padding:"2px 4px",backgroundColor:a},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=s.createElement(s.Fragment,null,s.createElement("p",null,"💿 Hey developer 👋"),s.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",s.createElement("code",{style:o},"ErrorBoundary")," or"," ",s.createElement("code",{style:o},"errorElement")," prop on your route.")),s.createElement(s.Fragment,null,s.createElement("h2",null,"Unexpected Application Error!"),s.createElement("h3",{style:{fontStyle:"italic"}},t),r?s.createElement("pre",{style:n},r):null,i)}var tr=s.createElement(er,null),Ke=class extends s.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=Yt(e.digest);r&&(e=r)}let t=e!==void 0?s.createElement(k.Provider,{value:this.props.routeContext},s.createElement(he.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?s.createElement(rr,{error:e},t):t}};Ke.contextType=Ht;var se=new WeakMap;function rr({children:e,error:t}){let{basename:r}=s.useContext(C);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let a=Vt(t.digest);if(a){let n=se.get(t);if(n)throw n;let o=Ue(a.location,r);if(De&&!se.get(t))if(o.isExternal||a.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const i=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:a.replace}));throw se.set(t,i),i}return s.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function nr({routeContext:e,match:t,children:r}){let a=s.useContext(F);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),s.createElement(k.Provider,{value:e},r)}function ar(e,t=[],r=null,a=null,n=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,i=r?.errors;if(i!=null){let p=o.findIndex(d=>d.route.id&&i?.[d.route.id]!==void 0);w(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,p+1))}let l=!1,u=-1;if(r)for(let p=0;p=0?o=o.slice(0,u+1):o=[o[0]];break}}}let c=r&&a?(p,d)=>{a(p,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:Dt(r.matches),errorInfo:d})}:void 0;return o.reduceRight((p,d,m)=>{let _,h=!1,g=null,f=null;r&&(_=i&&d.route.id?i[d.route.id]:void 0,g=d.route.errorElement||tr,l&&(u<0&&m===0?(Xe("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,f=null):u===m&&(h=!0,f=d.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,m+1)),b=()=>{let v;return _?v=g:h?v=f:d.route.Component?v=s.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=p,s.createElement(nr,{match:d,routeContext:{outlet:p,matches:y,isDataRoute:r!=null},children:v})};return r&&(d.route.ErrorBoundary||d.route.errorElement||m===0)?s.createElement(Ke,{location:r.location,revalidation:r.revalidation,component:g,error:_,children:b(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:c}):b()},null)}function ge(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function or(e){let t=s.useContext(F);return w(t,ge(e)),t}function ir(e){let t=s.useContext(ne);return w(t,ge(e)),t}function sr(e){let t=s.useContext(k);return w(t,ge(e)),t}function _e(e){let t=sr(e),r=t.matches[t.matches.length-1];return w(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function lr(){return _e("useRouteId")}function ur(){let e=s.useContext(he),t=ir("useRouteError"),r=_e("useRouteError");return e!==void 0?e:t.errors?.[r]}function cr(){let{router:e}=or("useNavigate"),t=_e("useNavigate"),r=s.useRef(!1);return Je(()=>{r.current=!0}),s.useCallback(async(n,o={})=>{x(r.current,Ge),r.current&&(typeof n=="number"?await e.navigate(n):await e.navigate(n,{fromRouteId:t,...o}))},[e,t])}var Te={};function Xe(e,t,r){!t&&!Te[e]&&(Te[e]=!0,x(!1,r))}s.memo(dr);function dr({routes:e,future:t,state:r,onError:a}){return Ye(e,void 0,r,a,t)}function Qe({to:e,replace:t,state:r,relative:a}){w(D()," may be used only in the context of a component.");let{static:n}=s.useContext(C);x(!n," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:o}=s.useContext(k),{pathname:i}=$(),l=be(),u=fe(e,me(o),i,a==="path"),c=JSON.stringify(u);return s.useEffect(()=>{l(JSON.parse(c),{replace:t,state:r,relative:a})},[l,c,a,t,r]),null}function pr(e){return Qt(e.context)}function G(e){w(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function mr({basename:e="/",children:t=null,location:r,navigationType:a="POP",navigator:n,static:o=!1,unstable_useTransitions:i}){w(!D(),"You cannot render a inside another . You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),u=s.useMemo(()=>({basename:l,navigator:n,static:o,unstable_useTransitions:i,future:{}}),[l,n,o,i]);typeof r=="string"&&(r=B(r));let{pathname:c="/",search:p="",hash:d="",state:m=null,key:_="default"}=r,h=s.useMemo(()=>{let g=j(c,l);return g==null?null:{location:{pathname:g,search:p,hash:d,state:m,key:_},navigationType:a}},[l,c,p,d,m,_,a]);return x(h!=null,` is not able to match the URL "${c}${p}${d}" because it does not start with the basename, so the won't render anything.`),h==null?null:s.createElement(C.Provider,{value:u},s.createElement(K.Provider,{children:t,value:h}))}function fr({children:e,location:t}){return Zt(de(e),t)}function de(e,t=[]){let r=[];return s.Children.forEach(e,(a,n)=>{if(!s.isValidElement(a))return;let o=[...t,n];if(a.type===s.Fragment){r.push.apply(r,de(a.props.children,o));return}w(a.type===G,`[${typeof a.type=="string"?a.type:a.type.name}] is not a component. All component children of must be a or `),w(!a.props.index||!a.props.children,"An index route cannot have child routes.");let i={id:a.props.id||o.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,middleware:a.props.middleware,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(i.children=de(a.props.children,o)),r.push(i)}),r}var Z="get",ee="application/x-www-form-urlencoded";function ae(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function hr(e){return ae(e)&&e.tagName.toLowerCase()==="button"}function br(e){return ae(e)&&e.tagName.toLowerCase()==="form"}function gr(e){return ae(e)&&e.tagName.toLowerCase()==="input"}function _r(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function yr(e,t){return e.button===0&&(!t||t==="_self")&&!_r(e)}function pe(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let a=e[r];return t.concat(Array.isArray(a)?a.map(n=>[r,n]):[[r,a]])},[]))}function vr(e,t){let r=pe(e);return t&&t.forEach((a,n)=>{r.has(n)||t.getAll(n).forEach(o=>{r.append(n,o)})}),r}var Q=null;function wr(){if(Q===null)try{new FormData(document.createElement("form"),0),Q=!1}catch{Q=!0}return Q}var Rr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function le(e){return e!=null&&!Rr.has(e)?(x(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${ee}"`),null):e}function Er(e,t){let r,a,n,o,i;if(br(e)){let l=e.getAttribute("action");a=l?j(l,t):null,r=e.getAttribute("method")||Z,n=le(e.getAttribute("enctype"))||ee,o=new FormData(e)}else if(hr(e)||gr(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a