functionv(){returnv=Object.assign?Object.assign.bind():function(e){for(vart=1;t<arguments.length;t++){varn=arguments[t];for(varrinn)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}returne},v.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(p||(p={}));consty="popstate";functiong(e,t){if(!1===e||null==e)thrownewError(t)}functionb(e,t){if(!e){"undefined"!=typeofconsole&&console.warn(t);try{thrownewError(t)}catch(e){}}}functionw(e,t){return{usr:e.state,key:e.key,idx:t}}function_(e,t,n,r){returnvoid0===n&&(n=null),v({pathname:"string"==typeofe?e:e.pathname,search:"",hash:""},"string"==typeoft?k(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}functionE(e){let{pathname:t="/",search:n="",hash:r=""}=e;returnn&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}functionk(e){lett={};if(e){letn=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));letr=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}returnt}functionx(e,t,n,r){void0===r&&(r={});let{window:a=document.defaultView,v5Compat:o=!1}=r,i=a.history,s=p.Pop,l=null,c=u();functionu(){return(i.state||{idx:null}).idx}functiond(){s=p.Pop;lete=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:f.location,delta:t})}functionh(e){lett="null"!==a.location.origin?a.location.origin:a.location.href,n="string"==typeofe?e:E(e);returnn=n.replace(/ $/,"%20"),g(t,"No window.location.(origin|href) available to create URL for href: "+n),newURL(n,t)}null==c&&(c=0,i.replaceState(v({},i.state,{idx:c}),""));letf={getaction(){returns},getlocation(){returne(a,i)},listen(e){if(l)thrownewError("A history only accepts one active listener");returna.addEventListener(y,d),l=e,()=>{a.removeEventListener(y,d),l=null}},createHref:e=>t(a,e),createURL:h,encodeLocation(e){lett=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s=p.Push;letr=_(f.location,e,t);n&&n(r,e),c=u()+1;letd=w(r,c),h=f.createHref(r);try{i.pushState(d,"",h)}catch(e){if(einstanceofDOMException&&"DataCloneError"===e.name)throwe;a.location.assign(h)}o&&l&&l({action:s,location:f.location,delta:1})},replace:function(e,t){s=p.Replace;letr=_(f.location,e,t);n&&n(r,e),c=u();leta=w(r,c),d=f.createHref(r);i.replaceState(a,"",d),o&&l&&l({action:s,location:f.location,delta:0})},go:e=>i.go(e)};returnf}varS;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(S||(S={}));constC=newSet(["lazy","caseSensitive","path","id","index","children"]);functionM(e,t,n,r){returnvoid0===n&&(n=[]),void0===r&&(r={}),e.map((e,a)=>{leto=[...n,String(a)],i="string"==typeofe.id?e.id:o.join("-");if(g(!0!==e.index||!e.children,"Cannot specify children on an index route"),g(!r[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){letn=v({},e,t(e),{id:i});returnr[i]=n,n}{letn=v({},e,t(e),{id:i,children:void0});returnr[i]=n,e.children&&(n.children=M(e.children,t,o,r)),n}})}functionP(e,t,n){returnvoid0===n&&(n="/"),R(e,t,n,!1)}functionR(e,t,n,r){leta=$(("string"==typeoft?k(t):t).pathname||"/",n);if(null==a)returnnull;leto=D(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){letn=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);returnn?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(o);leti=null;for(lete=0;null==i&&e<o.length;++e){lett=F(a);i=V(o[e],t,r)}returni}functionD(e,t,n,r){void0===t&&(t=[]),void0===n&&(n=[]),void0===r&&(r="");leta=(e,a,o)=>{leti={relativePath:void0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(g(i.relativePath.startsWith(r),'Absolute route path "'+i.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slic
functionnt(){returnnt=Object.assign?Object.assign.bind():function(e){for(vart=1;t<arguments.length;t++){varn=arguments[t];for(varrinn)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}returne},nt.apply(this,arguments)}constrt=m.createContext(null);constat=m.createContext(null);constot=m.createContext(null);constit=m.createContext(null);constst=m.createContext({outlet:null,matches:[],isDataRoute:!1});constlt=m.createContext(null);functionct(){returnnull!=m.useContext(it)}functionut(){returnct()||g(!1),m.useContext(it).location}functiondt(e){ct()||g(!1);let{pathname:t}=ut();returnm.useMemo(()=>B(e,F(t)),[t,e])}functionht(e){m.useContext(ot).static||m.useLayoutEffect(e)}functionpt(){let{isDataRoute:e}=m.useContext(st);returne?function(){let{router:e}=xt(Et.UseNavigateStable),t=Ct(kt.UseNavigateStable),n=m.useRef(!1);ht(()=>{n.current=!0});letr=m.useCallback(function(r,a){void0===a&&(a={}),n.current&&("number"==typeofr?e.navigate(r):e.navigate(r,nt({fromRouteId:t},a)))},[e,t]);returnr}():function(){ct()||g(!1);lete=m.useContext(rt),{basename:t,future:n,navigator:r}=m.useContext(ot),{matches:a}=m.useContext(st),{pathname:o}=ut(),i=JSON.stringify(W(a,n.v7_relativeSplatPath)),s=m.useRef(!1);ht(()=>{s.current=!0});letl=m.useCallback(function(n,a){if(void0===a&&(a={}),!s.current)return;if("number"==typeofn)returnvoidr.go(n);letl=Q(n,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:J([t,l.pathname])),(a.replace?r.replace:r.push)(l,a.state,a)},[t,r,i,o,e]);returnl}()}constft=m.createContext(null);functionmt(e,t){let{relative:n}=void0===t?{}:t,{future:r}=m.useContext(ot),{matches:a}=m.useContext(st),{pathname:o}=ut(),i=JSON.stringify(W(a,r.v7_relativeSplatPath));returnm.useMemo(()=>Q(e,JSON.parse(i),o,"path"===n),[e,i,o,n])}functionvt(e,t,n,r){ct()||g(!1);let{navigator:a}=m.useContext(ot),{matches:o}=m.useContext(st),i=o[o.length-1],s=i?i.params:{},l=(i&&i.pathname,i?i.pathnameBase:"/");i&&i.route;letc,u=ut();if(t){vard;lete="string"==typeoft?k(t):t;"/"===l||(null==(d=e.pathname)?void0:d.startsWith(l))||g(!1),c=e}elsec=u;leth=c.pathname||"/",f=h;if("/"!==l){lete=l.replace(/^\//,"").split("/");f="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}letv=P(e,{pathname:f});lety=_t(v&&v.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:J([l,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:J([l,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),o,n,r);returnt&&y?m.createElement(it.Provider,{value:{location:nt({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:p.Pop}},y):y}functionyt(){lete=function(){vare;lett=m.useContext(lt),n=St(kt.UseRouteError),r=Ct(kt.UseRouteError);if(void0!==t)returnt;returnnull==(e=n.errors)?void0:e[r]}(),t=Z(e)?e.status+" "+e.statusText:einstanceofError?e.message:JSON.stringify(e),n=einstanceofError?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r};returnm.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:a},n):null,null)}constgt=m.createElement(yt,null);classbtextendsm.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}staticgetDerivedStateFromError(e){return{error:e}}staticgetDerivedStateFromProps(e,t){returnt.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void0!==e.error?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(){returnvoid0!==this.state.error?m.createElement(st.Provider,{value:this.props.routeContext},m.createElement(lt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}functionw