diff --git a/assets/index-BDbiE3k0.js b/assets/index-D2F_-i1s.js similarity index 86% rename from assets/index-BDbiE3k0.js rename to assets/index-D2F_-i1s.js index 8405ab0..70d205a 100644 --- a/assets/index-BDbiE3k0.js +++ b/assets/index-D2F_-i1s.js @@ -60,10 +60,10 @@ Error generating stack: `+l.message+` Please change the parent to .`)}let T=Gn(),M;if(r){let X=typeof r=="string"?Xn(r):r;ut(E==="/"||((q=X.pathname)==null?void 0:q.startsWith(E)),`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 "${E}" but pathname "${X.pathname}" was given in the \`location\` prop.`),M=X}else M=T;let j=M.pathname||"/",U=j;if(E!=="/"){let X=E.replace(/^\//,"").split("/");U="/"+j.replace(/^\//,"").split("/").slice(X.length).join("/")}let B=!d&&o&&o.matches&&o.matches.length>0?o.matches:hh(i,{pathname:U});fl(N||B!=null,`No routes matched location "${M.pathname}${M.search}${M.hash}" `),fl(B==null||B[B.length-1].route.element!==void 0||B[B.length-1].route.Component!==void 0||B[B.length-1].route.lazy!==void 0,`Matched leaf route at location "${M.pathname}${M.search}${M.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 A=cv(B&&B.map(X=>Object.assign({},X,{params:Object.assign({},g,X.params),pathname:ql([E,f.encodeLocation?f.encodeLocation(X.pathname).pathname:X.pathname]),pathnameBase:X.pathnameBase==="/"?E:ql([E,f.encodeLocation?f.encodeLocation(X.pathnameBase).pathname:X.pathnameBase])})),h,o,c);return r&&A?m.createElement(Lu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...M},navigationType:"POP"}},A):A}function av(){let i=hv(),r=Pp(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),o=i instanceof Error?i.stack:null,c="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:c},d={padding:"2px 4px",backgroundColor:c},h=null;return console.error("Error handled by React Router default ErrorBoundary:",i),h=m.createElement(m.Fragment,null,m.createElement("p",null,"💿 Hey developer 👋"),m.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",m.createElement("code",{style:d},"ErrorBoundary")," or"," ",m.createElement("code",{style:d},"errorElement")," prop on your route.")),m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},r),o?m.createElement("pre",{style:f},o):null,h)}var uv=m.createElement(av,null),iv=class extends m.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,r){return r.location!==i.location||r.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:r.error,location:r.location,revalidation:i.revalidation||r.revalidation}}componentDidCatch(i,r){console.error("React Router caught the following error during render",i,r)}render(){return this.state.error!==void 0?m.createElement(Sl.Provider,{value:this.props.routeContext},m.createElement(Lo.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function rv({routeContext:i,match:r,children:o}){let c=m.useContext(Aa);return c&&c.static&&c.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=r.route.id),m.createElement(Sl.Provider,{value:i},o)}function cv(i,r=[],o=null,c=null){if(i==null){if(!o)return null;if(o.errors)i=o.matches;else if(r.length===0&&!o.initialized&&o.matches.length>0)i=o.matches;else return null}let f=i,d=o==null?void 0:o.errors;if(d!=null){let g=f.findIndex(y=>y.route.id&&(d==null?void 0:d[y.route.id])!==void 0);ut(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,g+1))}let h=!1,b=-1;if(o)for(let g=0;g=0?f=f.slice(0,b+1):f=[f[0]];break}}}return f.reduceRight((g,y,E)=>{let N,T=!1,M=null,j=null;o&&(N=d&&y.route.id?d[y.route.id]:void 0,M=y.route.errorElement||uv,h&&(b<0&&E===0?(Oh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,j=null):b===E&&(T=!0,j=y.route.hydrateFallbackElement||null)));let U=r.concat(f.slice(0,E+1)),B=()=>{let A;return N?A=M:T?A=j:y.route.Component?A=m.createElement(y.route.Component,null):y.route.element?A=y.route.element:A=g,m.createElement(rv,{match:y,routeContext:{outlet:g,matches:U,isDataRoute:o!=null},children:A})};return o&&(y.route.ErrorBoundary||y.route.errorElement||E===0)?m.createElement(iv,{location:o.location,revalidation:o.revalidation,component:M,error:N,children:B(),routeContext:{outlet:null,matches:U,isDataRoute:!0}}):B()},null)}function Uo(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ov(i){let r=m.useContext(Aa);return ut(r,Uo(i)),r}function sv(i){let r=m.useContext(er);return ut(r,Uo(i)),r}function fv(i){let r=m.useContext(Sl);return ut(r,Uo(i)),r}function Ho(i){let r=fv(i),o=r.matches[r.matches.length-1];return ut(o.route.id,`${i} can only be used on routes that contain a unique "id"`),o.route.id}function dv(){return Ho("useRouteId")}function hv(){var c;let i=m.useContext(Lo),r=sv("useRouteError"),o=Ho("useRouteError");return i!==void 0?i:(c=r.errors)==null?void 0:c[o]}function mv(){let{router:i}=ov("useNavigate"),r=Ho("useNavigate"),o=m.useRef(!1);return Sh(()=>{o.current=!0}),m.useCallback(async(f,d={})=>{fl(o.current,xh),o.current&&(typeof f=="number"?i.navigate(f):await i.navigate(f,{fromRouteId:r,...d}))},[i,r])}var G0={};function Oh(i,r,o){!r&&!G0[i]&&(G0[i]=!0,fl(!1,o))}m.memo(pv);function pv({routes:i,future:r,state:o}){return Eh(i,void 0,o,r)}function vv(i){return lv(i.context)}function Ra(i){ut(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function yv({basename:i="/",children:r=null,location:o,navigationType:c="POP",navigator:f,static:d=!1}){ut(!Uu(),"You cannot render a inside another . You should never have more than one in your app.");let h=i.replace(/^\/*/,"/"),b=m.useMemo(()=>({basename:h,navigator:f,static:d,future:{}}),[h,f,d]);typeof o=="string"&&(o=Xn(o));let{pathname:g="/",search:y="",hash:E="",state:N=null,key:T="default"}=o,M=m.useMemo(()=>{let j=pn(g,h);return j==null?null:{location:{pathname:j,search:y,hash:E,state:N,key:T},navigationType:c}},[h,g,y,E,N,T,c]);return fl(M!=null,` is not able to match the URL "${g}${y}${E}" because it does not start with the basename, so the won't render anything.`),M==null?null:m.createElement(xl.Provider,{value:b},m.createElement(Lu.Provider,{children:r,value:M}))}function gv({children:i,location:r}){return nv(Ro(i),r)}function Ro(i,r=[]){let o=[];return m.Children.forEach(i,(c,f)=>{if(!m.isValidElement(c))return;let d=[...r,f];if(c.type===m.Fragment){o.push.apply(o,Ro(c.props.children,d));return}ut(c.type===Ra,`[${typeof c.type=="string"?c.type:c.type.name}] is not a component. All component children of must be a or `),ut(!c.props.index||!c.props.children,"An index route cannot have child routes.");let h={id:c.props.id||d.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(h.children=Ro(c.props.children,d)),o.push(h)}),o}var Ki="get",Pi="application/x-www-form-urlencoded";function tr(i){return i!=null&&typeof i.tagName=="string"}function bv(i){return tr(i)&&i.tagName.toLowerCase()==="button"}function xv(i){return tr(i)&&i.tagName.toLowerCase()==="form"}function Sv(i){return tr(i)&&i.tagName.toLowerCase()==="input"}function Ev(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Ov(i,r){return i.button===0&&(!r||r==="_self")&&!Ev(i)}var Qi=null;function wv(){if(Qi===null)try{new FormData(document.createElement("form"),0),Qi=!1}catch{Qi=!0}return Qi}var Tv=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function xo(i){return i!=null&&!Tv.has(i)?(fl(!1,`"${i}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Pi}"`),null):i}function jv(i,r){let o,c,f,d,h;if(xv(i)){let b=i.getAttribute("action");c=b?pn(b,r):null,o=i.getAttribute("method")||Ki,f=xo(i.getAttribute("enctype"))||Pi,d=new FormData(i)}else if(bv(i)||Sv(i)&&(i.type==="submit"||i.type==="image")){let b=i.form;if(b==null)throw new Error('Cannot submit a