diff --git a/dependabot/npm_and_yarn/react-549425c6c9/assets/index-jErE50o_.js b/dependabot/npm_and_yarn/react-549425c6c9/assets/index-BE2pnCwt.js similarity index 99% rename from dependabot/npm_and_yarn/react-549425c6c9/assets/index-jErE50o_.js rename to dependabot/npm_and_yarn/react-549425c6c9/assets/index-BE2pnCwt.js index 699f4af2..facc9efa 100644 --- a/dependabot/npm_and_yarn/react-549425c6c9/assets/index-jErE50o_.js +++ b/dependabot/npm_and_yarn/react-549425c6c9/assets/index-BE2pnCwt.js @@ -59,7 +59,7 @@ The error may be correlated with this previous error: ${de.current.stack} `),ae}Ly(()=>{de.current=void 0,Z.current=void 0,G.current=B});const K=k.useMemo(()=>k.createElement(O,{...B,ref:z}),[z,O,B]);return k.useMemo(()=>_?k.createElement(V.Provider,{value:$},K):K,[V,K,$])}const R=k.memo(j);if(R.WrappedComponent=O,R.displayName=j.displayName=T,f){const U=k.forwardRef(function(F,V){return k.createElement(R,{...F,reactReduxForwardedRef:V})});return U.displayName=T,U.WrappedComponent=O,PE(U,O)}return PE(R,O)}}var _U=qK;function VK(e){const{children:t,context:n,serverState:r,store:i}=e,a=k.useMemo(()=>{const f=gU(i);return{store:i,subscription:f,getServerState:r?()=>r:void 0}},[i,r]),o=k.useMemo(()=>i.getState(),[i]);Ly(()=>{const{subscription:f}=a;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),o!==i.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[a,o]);const l=n||bU;return k.createElement(l.Provider,{value:a},t)}var xU=VK,Xh={},a4;function HK(){if(a4)return Xh;a4=1,Object.defineProperty(Xh,"__esModule",{value:!0}),Xh.parse=o,Xh.serialize=c;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,a=(()=>{const g=function(){};return g.prototype=Object.create(null),g})();function o(g,x){const _=new a,w=g.length;if(w<2)return _;const O=(x==null?void 0:x.decode)||h;let S=0;do{const T=g.indexOf("=",S);if(T===-1)break;const A=g.indexOf(";",S),j=A===-1?w:A;if(T>j){S=g.lastIndexOf(";",T-1)+1;continue}const P=l(g,S,T),R=f(g,T,P),D=g.slice(P,R);if(_[D]===void 0){let U=l(g,T+1,j),z=f(g,j,U);const F=O(g.slice(U,z));_[D]=F}S=j+1}while(S_;){const w=g.charCodeAt(--x);if(w!==32&&w!==9)return x+1}return _}function c(g,x,_){const w=(_==null?void 0:_.encode)||encodeURIComponent;if(!e.test(g))throw new TypeError(`argument name is invalid: ${g}`);const O=w(x);if(!t.test(O))throw new TypeError(`argument val is invalid: ${x}`);let S=g+"="+O;if(!_)return S;if(_.maxAge!==void 0){if(!Number.isInteger(_.maxAge))throw new TypeError(`option maxAge is invalid: ${_.maxAge}`);S+="; Max-Age="+_.maxAge}if(_.domain){if(!n.test(_.domain))throw new TypeError(`option domain is invalid: ${_.domain}`);S+="; Domain="+_.domain}if(_.path){if(!r.test(_.path))throw new TypeError(`option path is invalid: ${_.path}`);S+="; Path="+_.path}if(_.expires){if(!m(_.expires)||!Number.isFinite(_.expires.valueOf()))throw new TypeError(`option expires is invalid: ${_.expires}`);S+="; Expires="+_.expires.toUTCString()}if(_.httpOnly&&(S+="; HttpOnly"),_.secure&&(S+="; Secure"),_.partitioned&&(S+="; Partitioned"),_.priority)switch(typeof _.priority=="string"?_.priority.toLowerCase():void 0){case"low":S+="; Priority=Low";break;case"medium":S+="; Priority=Medium";break;case"high":S+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${_.priority}`)}if(_.sameSite)switch(typeof _.sameSite=="string"?_.sameSite.toLowerCase():_.sameSite){case!0:case"strict":S+="; SameSite=Strict";break;case"lax":S+="; SameSite=Lax";break;case"none":S+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${_.sameSite}`)}return S}function h(g){if(g.indexOf("%")===-1)return g;try{return decodeURIComponent(g)}catch{return g}}function m(g){return i.call(g)==="[object Date]"}return Xh}HK();/** - * react-router v7.4.1 + * react-router v7.5.0 * * Copyright (c) Remix Software Inc. * @@ -69,7 +69,7 @@ ${de.current.stack} * @license MIT */var o4="popstate";function WK(e={}){function t(r,i){let{pathname:a,search:o,hash:l}=r.location;return RE("",{pathname:a,search:o,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Wp(i)}return YK(t,n,null,e)}function xn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Oa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function GK(){return Math.random().toString(36).substring(2,10)}function s4(e,t){return{usr:e.state,key:e.key,idx:t}}function RE(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Pd(t):t,state:n,key:t&&t.key||r||GK()}}function Wp({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 Pd(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 YK(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,l="POP",f=null,c=h();c==null&&(c=0,o.replaceState({...o.state,idx:c},""));function h(){return(o.state||{idx:null}).idx}function m(){l="POP";let O=h(),S=O==null?null:O-c;c=O,f&&f({action:l,location:w.location,delta:S})}function g(O,S){l="PUSH";let T=RE(w.location,O,S);c=h()+1;let A=s4(T,c),j=w.createHref(T);try{o.pushState(A,"",j)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(j)}a&&f&&f({action:l,location:w.location,delta:1})}function x(O,S){l="REPLACE";let T=RE(w.location,O,S);c=h();let A=s4(T,c),j=w.createHref(T);o.replaceState(A,"",j),a&&f&&f({action:l,location:w.location,delta:0})}function _(O){let S=i.location.origin!=="null"?i.location.origin:i.location.href,T=typeof O=="string"?O:Wp(O);return T=T.replace(/ $/,"%20"),xn(S,`No window.location.(origin|href) available to create URL for href: ${T}`),new URL(T,S)}let w={get action(){return l},get location(){return e(i,o)},listen(O){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(o4,m),f=O,()=>{i.removeEventListener(o4,m),f=null}},createHref(O){return t(i,O)},createURL:_,encodeLocation(O){let S=_(O);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:g,replace:x,go(O){return o.go(O)}};return w}function wU(e,t,n="/"){return KK(e,t,n,!1)}function KK(e,t,n,r){let i=typeof t=="string"?Pd(t):t,a=ns(i.pathname||"/",n);if(a==null)return null;let o=OU(e);ZK(o);let l=null;for(let f=0;l==null&&f{let f={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};f.relativePath.startsWith("/")&&(xn(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length));let c=Xo([r,f.relativePath]),h=n.concat(f);a.children&&a.children.length>0&&(xn(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),OU(a.children,t,h,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:rZ(c,a.index),routesMeta:h})};return e.forEach((a,o)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))i(a,o);else for(let f of SU(a.path))i(a,o,f)}),t}function SU(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=SU(r.join("/")),l=[];return l.push(...o.map(f=>f===""?a:[a,f].join("/"))),i&&l.push(...o),l.map(f=>e.startsWith("/")&&f===""?"/":f)}function ZK(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:iZ(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var XK=/^:[\w-]+$/,QK=3,JK=2,eZ=1,tZ=10,nZ=-2,l4=e=>e==="*";function rZ(e,t){let n=e.split("/"),r=n.length;return n.some(l4)&&(r+=nZ),t&&(r+=JK),n.filter(i=>!l4(i)).reduce((i,a)=>i+(XK.test(a)?QK:a===""?eZ:tZ),r)}function iZ(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function aZ(e,t,n=!1){let{routesMeta:r}=e,i={},a="/",o=[];for(let l=0;l{if(h==="*"){let _=l[g]||"";o=a.slice(0,a.length-_.length).replace(/(.)\/+$/,"$1")}const x=l[g];return m&&!x?c[h]=void 0:c[h]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:o,pattern:e}}function oZ(e,t=!1,n=!0){Oa(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,f)=>(r.push({paramName:l,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function sZ(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Oa(!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 ns(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)||"/"}function lZ(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Pd(e):e;return{pathname:n?n.startsWith("/")?n:uZ(n,t):t,search:dZ(r),hash:hZ(i)}}function uZ(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Vx(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 cZ(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function lj(e){let t=cZ(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function uj(e,t,n,r=!1){let i;typeof e=="string"?i=Pd(e):(i={...e},xn(!i.pathname||!i.pathname.includes("?"),Vx("?","pathname","search",i)),xn(!i.pathname||!i.pathname.includes("#"),Vx("#","pathname","hash",i)),xn(!i.search||!i.search.includes("#"),Vx("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,l;if(o==null)l=n;else{let m=t.length-1;if(!r&&o.startsWith("..")){let g=o.split("/");for(;g[0]==="..";)g.shift(),m-=1;i.pathname=g.join("/")}l=m>=0?t[m]:"/"}let f=lZ(i,l),c=o&&o!=="/"&&o.endsWith("/"),h=(a||o===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(c||h)&&(f.pathname+="/"),f}var Xo=e=>e.join("/").replace(/\/\/+/g,"/"),fZ=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),dZ=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,hZ=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function pZ(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var EU=["POST","PUT","PATCH","DELETE"];new Set(EU);var mZ=["GET",...EU];new Set(mZ);var Rd=k.createContext(null);Rd.displayName="DataRouter";var P0=k.createContext(null);P0.displayName="DataRouterState";var TU=k.createContext({isTransitioning:!1});TU.displayName="ViewTransition";var vZ=k.createContext(new Map);vZ.displayName="Fetchers";var gZ=k.createContext(null);gZ.displayName="Await";var Ta=k.createContext(null);Ta.displayName="Navigation";var Wm=k.createContext(null);Wm.displayName="Location";var Ca=k.createContext({outlet:null,matches:[],isDataRoute:!1});Ca.displayName="Route";var cj=k.createContext(null);cj.displayName="RouteError";function yZ(e,{relative:t}={}){xn(dc(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=k.useContext(Ta),{hash:i,pathname:a,search:o}=Gm(e,{relative:t}),l=a;return n!=="/"&&(l=a==="/"?n:Xo([n,a])),r.createHref({pathname:l,search:o,hash:i})}function dc(){return k.useContext(Wm)!=null}function Pr(){return xn(dc(),"useLocation() may be used only in the context of a component."),k.useContext(Wm).location}var CU="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function AU(e){k.useContext(Ta).static||k.useLayoutEffect(e)}function ho(){let{isDataRoute:e}=k.useContext(Ca);return e?RZ():bZ()}function bZ(){xn(dc(),"useNavigate() may be used only in the context of a component.");let e=k.useContext(Rd),{basename:t,navigator:n}=k.useContext(Ta),{matches:r}=k.useContext(Ca),{pathname:i}=Pr(),a=JSON.stringify(lj(r)),o=k.useRef(!1);return AU(()=>{o.current=!0}),k.useCallback((f,c={})=>{if(Oa(o.current,CU),!o.current)return;if(typeof f=="number"){n.go(f);return}let h=uj(f,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Xo([t,h.pathname])),(c.replace?n.replace:n.push)(h,c.state,c)},[t,n,a,i,e])}k.createContext(null);function Md(){let{matches:e}=k.useContext(Ca),t=e[e.length-1];return t?t.params:{}}function Gm(e,{relative:t}={}){let{matches:n}=k.useContext(Ca),{pathname:r}=Pr(),i=JSON.stringify(lj(n));return k.useMemo(()=>uj(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function _Z(e,t){return jU(e,t)}function jU(e,t,n,r){var T;xn(dc(),"useRoutes() may be used only in the context of a component.");let{navigator:i,static:a}=k.useContext(Ta),{matches:o}=k.useContext(Ca),l=o[o.length-1],f=l?l.params:{},c=l?l.pathname:"/",h=l?l.pathnameBase:"/",m=l&&l.route;{let A=m&&m.path||"";PU(c,!m||A.endsWith("*")||A.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 g=Pr(),x;if(t){let A=typeof t=="string"?Pd(t):t;xn(h==="/"||((T=A.pathname)==null?void 0:T.startsWith(h)),`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 "${h}" but pathname "${A.pathname}" was given in the \`location\` prop.`),x=A}else x=g;let _=x.pathname||"/",w=_;if(h!=="/"){let A=h.replace(/^\//,"").split("/");w="/"+_.replace(/^\//,"").split("/").slice(A.length).join("/")}let O=!a&&n&&n.matches&&n.matches.length>0?n.matches:wU(e,{pathname:w});Oa(m||O!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Oa(O==null||O[O.length-1].route.element!==void 0||O[O.length-1].route.Component!==void 0||O[O.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.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 S=EZ(O&&O.map(A=>Object.assign({},A,{params:Object.assign({},f,A.params),pathname:Xo([h,i.encodeLocation?i.encodeLocation(A.pathname).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?h:Xo([h,i.encodeLocation?i.encodeLocation(A.pathnameBase).pathname:A.pathnameBase])})),o,n,r);return t&&S?k.createElement(Wm.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},S):S}function xZ(){let e=PZ(),t=pZ(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)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=k.createElement(k.Fragment,null,k.createElement("p",null,"💿 Hey developer 👋"),k.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",k.createElement("code",{style:a},"ErrorBoundary")," or"," ",k.createElement("code",{style:a},"errorElement")," prop on your route.")),k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:i},n):null,o)}var wZ=k.createElement(xZ,null),OZ=class extends k.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){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?k.createElement(Ca.Provider,{value:this.props.routeContext},k.createElement(cj.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function SZ({routeContext:e,match:t,children:n}){let r=k.useContext(Rd);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),k.createElement(Ca.Provider,{value:e},n)}function EZ(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=n==null?void 0:n.errors;if(a!=null){let f=i.findIndex(c=>c.route.id&&(a==null?void 0:a[c.route.id])!==void 0);xn(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,f+1))}let o=!1,l=-1;if(n)for(let f=0;f=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((f,c,h)=>{let m,g=!1,x=null,_=null;n&&(m=a&&c.route.id?a[c.route.id]:void 0,x=c.route.errorElement||wZ,o&&(l<0&&h===0?(PU("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,_=null):l===h&&(g=!0,_=c.route.hydrateFallbackElement||null)));let w=t.concat(i.slice(0,h+1)),O=()=>{let S;return m?S=x:g?S=_:c.route.Component?S=k.createElement(c.route.Component,null):c.route.element?S=c.route.element:S=f,k.createElement(SZ,{match:c,routeContext:{outlet:f,matches:w,isDataRoute:n!=null},children:S})};return n&&(c.route.ErrorBoundary||c.route.errorElement||h===0)?k.createElement(OZ,{location:n.location,revalidation:n.revalidation,component:x,error:m,children:O(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):O()},null)}function fj(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function TZ(e){let t=k.useContext(Rd);return xn(t,fj(e)),t}function CZ(e){let t=k.useContext(P0);return xn(t,fj(e)),t}function AZ(e){let t=k.useContext(Ca);return xn(t,fj(e)),t}function dj(e){let t=AZ(e),n=t.matches[t.matches.length-1];return xn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function jZ(){return dj("useRouteId")}function PZ(){var r;let e=k.useContext(cj),t=CZ("useRouteError"),n=dj("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function RZ(){let{router:e}=TZ("useNavigate"),t=dj("useNavigate"),n=k.useRef(!1);return AU(()=>{n.current=!0}),k.useCallback(async(i,a={})=>{Oa(n.current,CU),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var u4={};function PU(e,t,n){!t&&!u4[e]&&(u4[e]=!0,Oa(!1,n))}k.memo(MZ);function MZ({routes:e,future:t,state:n}){return jU(e,void 0,n,t)}function hj({to:e,replace:t,state:n,relative:r}){xn(dc()," may be used only in the context of a component.");let{static:i}=k.useContext(Ta);Oa(!i," 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:a}=k.useContext(Ca),{pathname:o}=Pr(),l=ho(),f=uj(e,lj(a),o,r==="path"),c=JSON.stringify(f);return k.useEffect(()=>{l(JSON.parse(c),{replace:t,state:n,relative:r})},[l,c,r,t,n]),null}function xt(e){xn(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function NZ({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:a=!1}){xn(!dc(),"You cannot render a inside another . You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),l=k.useMemo(()=>({basename:o,navigator:i,static:a,future:{}}),[o,i,a]);typeof n=="string"&&(n=Pd(n));let{pathname:f="/",search:c="",hash:h="",state:m=null,key:g="default"}=n,x=k.useMemo(()=>{let _=ns(f,o);return _==null?null:{location:{pathname:_,search:c,hash:h,state:m,key:g},navigationType:r}},[o,f,c,h,m,g,r]);return Oa(x!=null,` is not able to match the URL "${f}${c}${h}" because it does not start with the basename, so the won't render anything.`),x==null?null:k.createElement(Ta.Provider,{value:l},k.createElement(Wm.Provider,{children:t,value:x}))}function R0({children:e,location:t}){return _Z(ME(e),t)}function ME(e,t=[]){let n=[];return k.Children.forEach(e,(r,i)=>{if(!k.isValidElement(r))return;let a=[...t,i];if(r.type===k.Fragment){n.push.apply(n,ME(r.props.children,a));return}xn(r.type===xt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),xn(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,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&&(o.children=ME(r.props.children,a)),n.push(o)}),n}var _y="get",xy="application/x-www-form-urlencoded";function M0(e){return e!=null&&typeof e.tagName=="string"}function LZ(e){return M0(e)&&e.tagName.toLowerCase()==="button"}function DZ(e){return M0(e)&&e.tagName.toLowerCase()==="form"}function kZ(e){return M0(e)&&e.tagName.toLowerCase()==="input"}function IZ(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $Z(e,t){return e.button===0&&(!t||t==="_self")&&!IZ(e)}var Hg=null;function UZ(){if(Hg===null)try{new FormData(document.createElement("form"),0),Hg=!1}catch{Hg=!0}return Hg}var BZ=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Hx(e){return e!=null&&!BZ.has(e)?(Oa(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${xy}"`),null):e}function FZ(e,t){let n,r,i,a,o;if(DZ(e)){let l=e.getAttribute("action");r=l?ns(l,t):null,n=e.getAttribute("method")||_y,i=Hx(e.getAttribute("enctype"))||xy,a=new FormData(e)}else if(LZ(e)||kZ(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a