function ht(e,t){for(var n=0;nr[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function pt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pe={exports:{}},E={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var $e;function mt(){if($e)return E;$e=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),o=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),y=Symbol.iterator;function R(u){return u===null||typeof u!="object"?null:(u=y&&u[y]||u["@@iterator"],typeof u=="function"?u:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,g={};function m(u,p,C){this.props=u,this.context=p,this.refs=g,this.updater=C||S}m.prototype.isReactComponent={},m.prototype.setState=function(u,p){if(typeof u!="object"&&typeof u!="function"&&u!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,u,p,"setState")},m.prototype.forceUpdate=function(u){this.updater.enqueueForceUpdate(this,u,"forceUpdate")};function _(){}_.prototype=m.prototype;function x(u,p,C){this.props=u,this.context=p,this.refs=g,this.updater=C||S}var $=x.prototype=new _;$.constructor=x,v($,m.prototype),$.isPureReactComponent=!0;var k=Array.isArray;function D(){}var P={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function Y(u,p,C){var w=C.ref;return{$$typeof:e,type:u,key:p,ref:w!==void 0?w:null,props:C}}function X(u,p){return Y(u.type,p,u.props)}function Q(u){return typeof u=="object"&&u!==null&&u.$$typeof===e}function he(u){var p={"=":"=0",":":"=2"};return"$"+u.replace(/[=:]/g,function(C){return p[C]})}var Z=/\/+/g;function K(u,p){return typeof u=="object"&&u!==null&&u.key!=null?he(""+u.key):p.toString(36)}function B(u){switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:switch(typeof u.status=="string"?u.then(D,D):(u.status="pending",u.then(function(p){u.status==="pending"&&(u.status="fulfilled",u.value=p)},function(p){u.status==="pending"&&(u.status="rejected",u.reason=p)})),u.status){case"fulfilled":return u.value;case"rejected":throw u.reason}}throw u}function G(u,p,C,w,b){var T=typeof u;(T==="undefined"||T==="boolean")&&(u=null);var L=!1;if(u===null)L=!0;else switch(T){case"bigint":case"string":case"number":L=!0;break;case"object":switch(u.$$typeof){case e:case t:L=!0;break;case d:return L=u._init,G(L(u._payload),p,C,w,b)}}if(L)return b=b(u),L=w===""?"."+K(u,0):w,k(b)?(C="",L!=null&&(C=L.replace(Z,"$&/")+"/"),G(b,p,C,"",function(dt){return dt})):b!=null&&(Q(b)&&(b=X(b,C+(b.key==null||u&&u.key===b.key?"":(""+b.key).replace(Z,"$&/")+"/")+L)),p.push(b)),1;L=0;var j=w===""?".":w+":";if(k(u))for(var N=0;N"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),me.exports=gt(),me.exports}/** * react-router v7.15.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */var Ie="popstate";function Me(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function Rt(e={}){function t(r,a){var o;let i=(o=a.state)==null?void 0:o.masked,{pathname:s,search:f,hash:l}=i||r.location;return Re("",{pathname:s,search:f,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default",i?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,a){return typeof a=="string"?a:te(a)}return wt(t,n,null,e)}function O(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function M(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Et(){return Math.random().toString(36).substring(2,10)}function He(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Re(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?V(t):t,state:n,key:t&&t.key||r||Et(),mask:a}}function te({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function V(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function wt(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,s=a.history,f="POP",l=null,o=d();o==null&&(o=0,s.replaceState({...s.state,idx:o},""));function d(){return(s.state||{idx:null}).idx}function h(){f="POP";let g=d(),m=g==null?null:g-o;o=g,l&&l({action:f,location:v.location,delta:m})}function y(g,m){f="PUSH";let _=Me(g)?g:Re(v.location,g,m);o=d()+1;let x=He(_,o),$=v.createHref(_.mask||_);try{s.pushState(x,"",$)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;a.location.assign($)}i&&l&&l({action:f,location:v.location,delta:1})}function R(g,m){f="REPLACE";let _=Me(g)?g:Re(v.location,g,m);o=d();let x=He(_,o),$=v.createHref(_.mask||_);s.replaceState(x,"",$),i&&l&&l({action:f,location:v.location,delta:0})}function S(g){return St(g)}let v={get action(){return f},get location(){return e(a,s)},listen(g){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(Ie,h),l=g,()=>{a.removeEventListener(Ie,h),l=null}},createHref(g){return t(a,g)},createURL:S,encodeLocation(g){let m=S(g);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:y,replace:R,go(g){return s.go(g)}};return v}function St(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),O(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:te(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Ye(e,t,n="/"){return Ct(e,t,n,!1)}function Ct(e,t,n,r,a){let i=typeof t=="string"?V(t):t,s=z(i.pathname||"/",n);if(s==null)return null;let f=_t(e),l=null,o=Ke(s);for(let d=0;l==null&&d{let d={relativePath:o===void 0?s.path||"":o,caseSensitive:s.caseSensitive===!0,childrenIndex:f,route:s};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&l)return;O(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length)}let h=F([r,d.relativePath]),y=n.concat(d);s.children&&s.children.length>0&&(O(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),ze(s.children,t,y,h,l)),!(s.path==null&&!s.index)&&t.push({path:h,score:$t(h,s.index),routesMeta:y})};return e.forEach((s,f)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))i(s,f);else for(let o of qe(s.path))i(s,f,!0,o)}),t}function qe(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let s=qe(r.join("/")),f=[];return f.push(...s.map(l=>l===""?i:[i,l].join("/"))),a&&f.push(...s),f.map(l=>e.startsWith("/")&&l===""?"/":l)}function xt(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:At(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Pt=/^:[\w-]+$/,bt=3,Tt=2,Lt=1,Ot=10,kt=-2,Ue=e=>e==="*";function $t(e,t){let n=e.split("/"),r=n.length;return n.some(Ue)&&(r+=kt),t&&(r+=Tt),n.filter(a=>!Ue(a)).reduce((a,i)=>a+(Pt.test(i)?bt:i===""?Lt:Ot),r)}function At(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function Dt(e,t,n=!1){let{routesMeta:r}=e,a={},i="/",s=[];for(let f=0;f{if(d==="*"){let S=f[y]||"";s=i.slice(0,i.length-S.length).replace(/(.)\/+$/,"$1")}const R=f[y];return h&&!R?o[d]=void 0:o[d]=(R||"").replace(/%2F/g,"/"),o},{}),pathname:i,pathnameBase:s,pattern:e}}function Nt(e,t=!1,n=!0){M(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 r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,f,l,o,d)=>{if(r.push({paramName:f,isOptional:l!=null}),l){let h=d.charAt(o+s.length);return h&&h!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function Ke(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return M(!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 z(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var It=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Mt(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?V(e):e,i;return n?(n=Ge(n),n.startsWith("/")?i=Fe(n.substring(1),"/"):i=Fe(n,t)):i=t,{pathname:i,search:Ft(r),hash:Bt(a)}}function Fe(e,t){let n=se(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function ye(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Ht(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Se(e){let t=Ht(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function ce(e,t,n,r=!1){let a;typeof e=="string"?a=V(e):(a={...e},O(!a.pathname||!a.pathname.includes("?"),ye("?","pathname","search",a)),O(!a.pathname||!a.pathname.includes("#"),ye("#","pathname","hash",a)),O(!a.search||!a.search.includes("#"),ye("#","search","hash",a)));let i=e===""||a.pathname==="",s=i?"/":a.pathname,f;if(s==null)f=n;else{let h=t.length-1;if(!r&&s.startsWith("..")){let y=s.split("/");for(;y[0]==="..";)y.shift(),h-=1;a.pathname=y.join("/")}f=h>=0?t[h]:"/"}let l=Mt(a,f),o=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(o||d)&&(l.pathname+="/"),l}var Ge=e=>e.replace(/\/\/+/g,"/"),F=e=>Ge(e.join("/")),se=e=>e.replace(/\/+$/,""),Ut=e=>se(e).replace(/^\/*/,"/"),Ft=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Bt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,jt=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Wt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Yt(e){let t=e.map(n=>n.route.path).filter(Boolean);return F(t)||"/"}var Ve=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Je(e,t){let n=e;if(typeof n!="string"||!It.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(Ve)try{let i=new URL(window.location.href),s=n.startsWith("//")?new URL(i.protocol+n):new URL(n),f=z(s.pathname,t);s.origin===i.origin&&f!=null?n=f+s.search+s.hash:a=!0}catch{M(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Xe=["POST","PUT","PATCH","DELETE"];new Set(Xe);var zt=["GET",...Xe];new Set(zt);var J=c.createContext(null);J.displayName="DataRouter";var fe=c.createContext(null);fe.displayName="DataRouterState";var Qe=c.createContext(!1);function qt(){return c.useContext(Qe)}var Ze=c.createContext({isTransitioning:!1});Ze.displayName="ViewTransition";var Kt=c.createContext(new Map);Kt.displayName="Fetchers";var Gt=c.createContext(null);Gt.displayName="Await";var I=c.createContext(null);I.displayName="Navigation";var ne=c.createContext(null);ne.displayName="Location";var H=c.createContext({outlet:null,matches:[],isDataRoute:!1});H.displayName="Route";var Ce=c.createContext(null);Ce.displayName="RouteError";var et="REACT_ROUTER_ERROR",Vt="REDIRECT",Jt="ROUTE_ERROR_RESPONSE";function Xt(e){if(e.startsWith(`${et}:${Vt}:{`))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 Qt(e){if(e.startsWith(`${et}:${Jt}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new jt(t.status,t.statusText,t.data)}catch{}}function Zt(e,{relative:t}={}){O(q(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=c.useContext(I),{hash:a,pathname:i,search:s}=ae(e,{relative:t}),f=i;return n!=="/"&&(f=i==="/"?n:F([n,i])),r.createHref({pathname:f,search:s,hash:a})}function q(){return c.useContext(ne)!=null}function U(){return O(q(),"useLocation() may be used only in the context of a component."),c.useContext(ne).location}function Qr(e){O(q(),"useMatch() may be used only in the context of a component.");let{pathname:t}=U();return c.useMemo(()=>re(e,Ke(t)),[t,e])}var tt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function rt(e){c.useContext(I).static||c.useLayoutEffect(e)}function _e(){let{isDataRoute:e}=c.useContext(H);return e?pr():er()}function er(){O(q(),"useNavigate() may be used only in the context of a component.");let e=c.useContext(J),{basename:t,navigator:n}=c.useContext(I),{matches:r}=c.useContext(H),{pathname:a}=U(),i=JSON.stringify(Se(r)),s=c.useRef(!1);return rt(()=>{s.current=!0}),c.useCallback((l,o={})=>{if(M(s.current,tt),!s.current)return;if(typeof l=="number"){n.go(l);return}let d=ce(l,JSON.parse(i),a,o.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:F([t,d.pathname])),(o.replace?n.replace:n.push)(d,o.state,o)},[t,n,i,a,e])}var tr=c.createContext(null);function rr(e){let t=c.useContext(H).outlet;return c.useMemo(()=>t&&c.createElement(tr.Provider,{value:e},t),[t,e])}function Zr(){let{matches:e}=c.useContext(H),t=e[e.length-1];return(t==null?void 0:t.params)??{}}function ae(e,{relative:t}={}){let{matches:n}=c.useContext(H),{pathname:r}=U(),a=JSON.stringify(Se(n));return c.useMemo(()=>ce(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function nr(e,t){return nt(e,t)}function nt(e,t,n){var g;O(q(),"useRoutes() may be used only in the context of a component.");let{navigator:r}=c.useContext(I),{matches:a}=c.useContext(H),i=a[a.length-1],s=i?i.params:{},f=i?i.pathname:"/",l=i?i.pathnameBase:"/",o=i&&i.route;{let m=o&&o.path||"";ot(f,!o||m.endsWith("*")||m.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${f}" (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 d=U(),h;if(t){let m=typeof t=="string"?V(t):t;O(l==="/"||((g=m.pathname)==null?void 0:g.startsWith(l)),`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 "${l}" but pathname "${m.pathname}" was given in the \`location\` prop.`),h=m}else h=d;let y=h.pathname||"/",R=y;if(l!=="/"){let m=l.replace(/^\//,"").split("/");R="/"+y.replace(/^\//,"").split("/").slice(m.length).join("/")}let S=n&&n.state.matches.length?n.state.matches.map(m=>Object.assign(m,{route:n.manifest[m.route.id]||m.route})):Ye(e,{pathname:R});M(o||S!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),M(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.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 v=lr(S&&S.map(m=>Object.assign({},m,{params:Object.assign({},s,m.params),pathname:F([l,r.encodeLocation?r.encodeLocation(m.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?l:F([l,r.encodeLocation?r.encodeLocation(m.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),a,n);return t&&v?c.createElement(ne.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...h},navigationType:"POP"}},v):v}function ar(){let e=hr(),t=Wt(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=c.createElement(c.Fragment,null,c.createElement("p",null,"💿 Hey developer 👋"),c.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",c.createElement("code",{style:i},"ErrorBoundary")," or"," ",c.createElement("code",{style:i},"errorElement")," prop on your route.")),c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),n?c.createElement("pre",{style:a},n):null,s)}var or=c.createElement(ar,null),at=class extends c.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 n=Qt(e.digest);n&&(e=n)}let t=e!==void 0?c.createElement(H.Provider,{value:this.props.routeContext},c.createElement(Ce.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?c.createElement(ir,{error:e},t):t}};at.contextType=Qe;var ge=new WeakMap;function ir({children:e,error:t}){let{basename:n}=c.useContext(I);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=Xt(t.digest);if(r){let a=ge.get(t);if(a)throw a;let i=Je(r.location,n);if(Ve&&!ge.get(t))if(i.isExternal||r.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:r.replace}));throw ge.set(t,s),s}return c.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function ur({routeContext:e,match:t,children:n}){let r=c.useContext(J);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),c.createElement(H.Provider,{value:e},n)}function lr(e,t=[],n){let r=n==null?void 0:n.state;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 a=e,i=r==null?void 0:r.errors;if(i!=null){let d=a.findIndex(h=>h.route.id&&(i==null?void 0:i[h.route.id])!==void 0);O(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let s=!1,f=-1;if(n&&r){s=r.renderFallback;for(let d=0;d=0?a=a.slice(0,f+1):a=[a[0]];break}}}}let l=n==null?void 0:n.onError,o=r&&l?(d,h)=>{var y,R;l(d,{location:r.location,params:((R=(y=r.matches)==null?void 0:y[0])==null?void 0:R.params)??{},pattern:Yt(r.matches),errorInfo:h})}:void 0;return a.reduceRight((d,h,y)=>{let R,S=!1,v=null,g=null;r&&(R=i&&h.route.id?i[h.route.id]:void 0,v=h.route.errorElement||or,s&&(f<0&&y===0?(ot("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,g=null):f===y&&(S=!0,g=h.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,y+1)),_=()=>{let x;return R?x=v:S?x=g:h.route.Component?x=c.createElement(h.route.Component,null):h.route.element?x=h.route.element:x=d,c.createElement(ur,{match:h,routeContext:{outlet:d,matches:m,isDataRoute:r!=null},children:x})};return r&&(h.route.ErrorBoundary||h.route.errorElement||y===0)?c.createElement(at,{location:r.location,revalidation:r.revalidation,component:v,error:R,children:_(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:o}):_()},null)}function xe(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function sr(e){let t=c.useContext(J);return O(t,xe(e)),t}function cr(e){let t=c.useContext(fe);return O(t,xe(e)),t}function fr(e){let t=c.useContext(H);return O(t,xe(e)),t}function Pe(e){let t=fr(e),n=t.matches[t.matches.length-1];return O(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function dr(){return Pe("useRouteId")}function hr(){var r;let e=c.useContext(Ce),t=cr("useRouteError"),n=Pe("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function pr(){let{router:e}=sr("useNavigate"),t=Pe("useNavigate"),n=c.useRef(!1);return rt(()=>{n.current=!0}),c.useCallback(async(a,i={})=>{M(n.current,tt),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var Be={};function ot(e,t,n){!t&&!Be[e]&&(Be[e]=!0,M(!1,n))}c.memo(mr);function mr({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:i}){return nt(e,void 0,{manifest:t,state:r,isStatic:a,onError:i})}function en({to:e,replace:t,state:n,relative:r}){O(q()," may be used only in the context of a component.");let{static:a}=c.useContext(I);M(!a," 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:i}=c.useContext(H),{pathname:s}=U(),f=_e(),l=ce(e,Se(i),s,r==="path"),o=JSON.stringify(l);return c.useEffect(()=>{f(JSON.parse(o),{replace:t,state:n,relative:r})},[f,o,r,t,n]),null}function tn(e){return rr(e.context)}function yr(e){O(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function gr({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1,useTransitions:s}){O(!q(),"You cannot render a inside another . You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),l=c.useMemo(()=>({basename:f,navigator:a,static:i,useTransitions:s,future:{}}),[f,a,i,s]);typeof n=="string"&&(n=V(n));let{pathname:o="/",search:d="",hash:h="",state:y=null,key:R="default",mask:S}=n,v=c.useMemo(()=>{let g=z(o,f);return g==null?null:{location:{pathname:g,search:d,hash:h,state:y,key:R,mask:S},navigationType:r}},[f,o,d,h,y,R,r,S]);return M(v!=null,` is not able to match the URL "${o}${d}${h}" because it does not start with the basename, so the won't render anything.`),v==null?null:c.createElement(I.Provider,{value:l},c.createElement(ne.Provider,{children:t,value:v}))}function rn({children:e,location:t}){return nr(Ee(e),t)}function Ee(e,t=[]){let n=[];return c.Children.forEach(e,(r,a)=>{if(!c.isValidElement(r))return;let i=[...t,a];if(r.type===c.Fragment){n.push.apply(n,Ee(r.props.children,i));return}O(r.type===yr,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),O(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Ee(r.props.children,i)),n.push(s)}),n}var ue="get",le="application/x-www-form-urlencoded";function de(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function vr(e){return de(e)&&e.tagName.toLowerCase()==="button"}function Rr(e){return de(e)&&e.tagName.toLowerCase()==="form"}function Er(e){return de(e)&&e.tagName.toLowerCase()==="input"}function wr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Sr(e,t){return e.button===0&&(!t||t==="_self")&&!wr(e)}function we(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(a=>[n,a]):[[n,r]])},[]))}function Cr(e,t){let n=we(e);return t&&t.forEach((r,a)=>{n.has(a)||t.getAll(a).forEach(i=>{n.append(a,i)})}),n}var ie=null;function _r(){if(ie===null)try{new FormData(document.createElement("form"),0),ie=!1}catch{ie=!0}return ie}var xr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ve(e){return e!=null&&!xr.has(e)?(M(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${le}"`),null):e}function Pr(e,t){let n,r,a,i,s;if(Rr(e)){let f=e.getAttribute("action");r=f?z(f,t):null,n=e.getAttribute("method")||ue,a=ve(e.getAttribute("enctype"))||le,i=new FormData(e)}else if(vr(e)||Er(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a