Loading
function(e,t,n){"use strict";n.d(t,{BV:()=>j,Ix:()=>H,qh:()=>B});var r,i=n(64700),s=n(207970);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let o=i.createContext(null),l=i.createContext(null),u=i.createContext(null),c=i.createContext(null),d=i.createContext(null),_=i.createContext({outlet:null,matches:[],isDataRoute:!1}),f=i.createContext(null);function p(){return null!=i.useContext(d)}function h(){return p()||(0,s.Oi)(!1),i.useContext(d).location}function m(e){React.useContext(c).static||React.useLayoutEffect(e)}function E(){p()||UNSAFE_invariant(!1);let e=React.useContext(o),{basename:t,future:n,navigator:r}=React.useContext(c),{matches:i}=React.useContext(_),{pathname:s}=h(),a=JSON.stringify(UNSAFE_getResolveToMatches(i,n.v7_relativeSplatPath)),l=React.useRef(!1);return m(()=>{l.current=!0}),React.useCallback(function(n,i){if(void 0===i&&(i={}),!l.current)return;if("number"==typeof n)return void r.go(n);let o=resolveTo(n,JSON.parse(a),s,"path"===i.relative);null==e&&"/"!==t&&(o.pathname="/"===o.pathname?t:joinPaths([t,o.pathname])),(i.replace?r.replace:r.push)(o,i.state,i)},[t,r,a,s,e])}let g=null;function A(e,t){return I(e,t)}function I(e,t,n,r){let o;p()||(0,s.Oi)(!1);let{navigator:l}=i.useContext(c),{matches:u}=i.useContext(_),f=u[u.length-1],m=f?f.params:{};f&&f.pathname;let E=f?f.pathnameBase:"/";f&&f.route;let g=h();if(t){var A;let e="string"==typeof t?(0,s.Rr)(t):t;"/"===E||(null==(A=e.pathname)?void 0:A.startsWith(E))||(0,s.Oi)(!1),o=e}else o=g;let I=o.pathname||"/",T=I;if("/"!==E){let e=E.replace(/^\//,"").split("/");T="/"+I.replace(/^\//,"").split("/").slice(e.length).join("/")}let S=(0,s.ue)(e,{pathname:T}),y=N(S&&S.map(e=>Object.assign({},e,{params:Object.assign({},m,e.params),pathname:(0,s.HS)([E,l.encodeLocation?l.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?E:(0,s.HS)([E,l.encodeLocation?l.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),u,n,r);return t&&y?i.createElement(d.Provider,{value:{location:a({pathname:"/",search:"",hash:"",state:null,key:"default"},o),navigationType:s.rc.Pop}},y):y}function T(){let e=w(),t=(0,s.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),n?i.createElement("pre",{style:r},n):null,a)}let S=i.createElement(T,null);class y extends i.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||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==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(){return void 0!==this.state.error?i.createElement(_.Provider,{value:this.props.routeContext},i.createElement(f.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function v(e){let{routeContext:t,match:n,children:r}=e,s=i.useContext(o);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),i.createElement(_.Provider,{value:t},r)}function N(e,t,n,r){var a,o;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(null==(o=r)||!o.v7_partialHydration||0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let l=e,u=null==(a=n)?void 0:a.errors;if(null!=u){let e=l.findIndex(e=>e.route.id&&(null==u?void 0:u[e.route.id])!==void 0);e>=0||(0,s.Oi)(!1),l=l.slice(0,Math.min(l.length,e+1))}let c=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e<l.length;e++){let t=l[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:r}=n,i=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||i){c=!0,l=d>=0?l.slice(0,d+1):[l[0]];break}}}return l.reduceRight((e,r,s)=>{let a,o=!1,_=null,f=null;n&&(a=u&&r.route.id?u[r.route.id]:void 0,_=r.route.errorElement||S,c&&(d<0&&0===s?(k("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),o=!0,f=null):d===s&&(o=!0,f=r.route.hydrateFallbackElement||null)));let p=t.concat(l.slice(0,s+1)),h=()=>{let t;return t=a?_:o?f:r.route.Component?i.createElement(r.route.Component,null):r.route.element?r.route.element:e,i.createElement(v,{match:r,routeContext:{outlet:e,matches:p,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===s)?i.createElement(y,{location:n.location,revalidation:n.revalidation,component:_,error:a,children:h(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):h()},null)}var C=null,R=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(R||{});function O(e){let t=React.useContext(o);return t||UNSAFE_invariant(!1),t}function b(e){let t=i.useContext(l);return t||(0,s.Oi)(!1),t}function D(e){let t=i.useContext(_);return t||(0,s.Oi)(!1),t}function L(e){let t=D(e),n=t.matches[t.matches.length-1];return n.route.id||(0,s.Oi)(!1),n.route.id}function w(){var e;let t=i.useContext(f),n=b(R.UseRouteError),r=L(R.UseRouteError);return void 0!==t?t:null==(e=n.errors)?void 0:e[r]}function M(){let e=React.useContext(u);return null==e?void 0:e._data}function P(){let{router:e}=O(C.UseNavigateStable),t=L(R.UseNavigateStable),n=React.useRef(!1);return m(()=>{n.current=!0}),React.useCallback(function(r,i){void 0===i&&(i={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,a({fromRouteId:t},i)))},[e,t])}let x={};function k(e,t,n){t||x[e]||(x[e]=!0)}let U=null;function G(e,t){U[t]||(U[t]=!0,console.warn(t))}let F=(e,t,n)=>G(e,"⚠️ React Router Future Flag Warning: "+t+". You can use the `"+e+"` future flag to opt-in early. For more information, see "+n+"."),V="startTransition";(r||(r=n.t(i,2)))[V];function B(e){(0,s.Oi)(!1)}function H(e){let{basename:t="/",children:n=null,location:r,navigationType:o=s.rc.Pop,navigator:l,static:u=!1,future:_}=e;p()&&(0,s.Oi)(!1);let f=t.replace(/^\/*/,"/"),h=i.useMemo(()=>({basename:f,navigator:l,static:u,future:a({v7_relativeSplatPath:!1},_)}),[f,_,l,u]);"string"==typeof r&&(r=(0,s.Rr)(r));let{pathname:m="/",search:E="",hash:g="",state:A=null,key:I="default"}=r,T=i.useMemo(()=>{let e=(0,s.pb)(m,f);return null==e?null:{location:{pathname:e,search:E,hash:g,state:A,key:I},navigationType:o}},[f,m,E,g,A,I,o]);return null==T?null:i.createElement(c.Provider,{value:h},i.createElement(d.Provider,{children:n,value:T}))}function j(e){let{children:t,location:n}=e;return A(K(t),n)}var Y=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(Y||{});let W=new Promise(()=>{});i.Component;function K(e,t){void 0===t&&(t=[]);let n=[];return i.Children.forEach(e,(e,r)=>{if(!i.isValidElement(e))return;let a=[...t,r];if(e.type===i.Fragment)return void n.push.apply(n,K(e.props.children,a));e.type!==B&&(0,s.Oi)(!1),e.props.index&&e.props.children&&(0,s.Oi)(!1);let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=K(e.props.children,a)),n.push(o)}),n}}