From 48aa47c9e74d6480b2fc06c39de73cadc6f8ae1d Mon Sep 17 00:00:00 2001 From: Hoang-Nguyen-Huy Date: Mon, 20 Jan 2025 01:28:21 +0000 Subject: [PATCH] deploy: b72b5335cb66035dc6e8a9dcc382c152d4c307ac --- assets/{index-CtOCDD-S.js => index-BEmAn1iX.js} | 6 +++--- index.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename assets/{index-CtOCDD-S.js => index-BEmAn1iX.js} (99%) diff --git a/assets/index-CtOCDD-S.js b/assets/index-BEmAn1iX.js similarity index 99% rename from assets/index-CtOCDD-S.js rename to assets/index-BEmAn1iX.js index bd17eb3..19b1c10 100644 --- a/assets/index-CtOCDD-S.js +++ b/assets/index-BEmAn1iX.js @@ -47,7 +47,7 @@ Error generating stack: `+i.message+` * * @license MIT */function mf(){return mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function $$(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function p3(){return Math.random().toString(36).substr(2,8)}function TI(e,t){return{usr:e.state,key:e.key,idx:t}}function tw(e,t,n,r){return n===void 0&&(n=null),mf({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?gu(t):t,{state:n,key:t&&t.key||r||p3()})}function xm(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function gu(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function h3(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=Ls.Pop,l=null,c=u();c==null&&(c=0,s.replaceState(mf({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function d(){a=Ls.Pop;let C=u(),y=C==null?null:C-c;c=C,l&&l({action:a,location:b.location,delta:y})}function f(C,y){a=Ls.Push;let w=tw(b.location,C,y);c=u()+1;let g=TI(w,c),x=b.createHref(w);try{s.pushState(g,"",x)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(x)}i&&l&&l({action:a,location:b.location,delta:1})}function h(C,y){a=Ls.Replace;let w=tw(b.location,C,y);c=u();let g=TI(w,c),x=b.createHref(w);s.replaceState(g,"",x),i&&l&&l({action:a,location:b.location,delta:0})}function m(C){let y=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof C=="string"?C:xm(C);return w=w.replace(/ $/,"%20"),un(y,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,y)}let b={get action(){return a},get location(){return e(o,s)},listen(C){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(EI,d),l=C,()=>{o.removeEventListener(EI,d),l=null}},createHref(C){return t(o,C)},createURL:m,encodeLocation(C){let y=m(C);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:h,go(C){return s.go(C)}};return b}var OI;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(OI||(OI={}));function m3(e,t,n){return n===void 0&&(n="/"),g3(e,t,n,!1)}function g3(e,t,n,r){let o=typeof t=="string"?gu(t):t,i=$x(o.pathname||"/",n);if(i==null)return null;let s=_$(e);v3(s);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(un(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Ws([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(un(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),_$(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:P3(c,i.index),routesMeta:u})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of A$(i.path))o(i,s,l)}),t}function A$(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=A$(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function v3(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:I3(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const y3=/^:[\w-]+$/,b3=3,w3=2,C3=1,x3=10,S3=-2,MI=e=>e==="*";function P3(e,t){let n=e.split("/"),r=n.length;return n.some(MI)&&(r+=S3),t&&(r+=w3),n.filter(o=>!MI(o)).reduce((o,i)=>o+(y3.test(i)?b3:i===""?C3:x3),r)}function I3(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function k3(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a{let{paramName:f,isOptional:h}=u;if(f==="*"){let b=a[d]||"";s=i.slice(0,i.length-b.length).replace(/(.)\/+$/,"$1")}const m=a[d];return h&&!m?c[f]=void 0:c[f]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:s,pattern:e}}function E3(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),$$(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function T3(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return $$(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function $x(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 O3(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?gu(e):e;return{pathname:n?n.startsWith("/")?n:M3(n,t):t,search:_3(r),hash:A3(o)}}function M3(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Wy(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 R3(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function _x(e,t){let n=R3(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Ax(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=gu(e):(o=mf({},e),un(!o.pathname||!o.pathname.includes("?"),Wy("?","pathname","search",o)),un(!o.pathname||!o.pathname.includes("#"),Wy("#","pathname","hash",o)),un(!o.search||!o.search.includes("#"),Wy("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=O3(o,a),c=s&&s!=="/"&&s.endsWith("/"),u=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Ws=e=>e.join("/").replace(/\/\/+/g,"/"),$3=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,A3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function D3(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const D$=["post","put","patch","delete"];new Set(D$);const L3=["get",...D$];new Set(L3);/** - * React Router v6.28.0 + * React Router v6.28.1 * * Copyright (c) Remix Software Inc. * @@ -55,8 +55,8 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function gf(){return gf=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),p.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=Ax(c,JSON.parse(s),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Ws([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,s,i,e])}function B3(){let{matches:e}=p.useContext(as),t=e[e.length-1];return t?t.params:{}}function j$(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=p.useContext(sa),{matches:o}=p.useContext(as),{pathname:i}=yu(),s=JSON.stringify(_x(o,r.v7_relativeSplatPath));return p.useMemo(()=>Ax(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function z3(e,t){return H3(e,t)}function H3(e,t,n,r){vu()||un(!1);let{navigator:o}=p.useContext(sa),{matches:i}=p.useContext(as),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=yu(),u;if(t){var d;let C=typeof t=="string"?gu(t):t;l==="/"||(d=C.pathname)!=null&&d.startsWith(l)||un(!1),u=C}else u=c;let f=u.pathname||"/",h=f;if(l!=="/"){let C=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(C.length).join("/")}let m=m3(e,{pathname:h}),b=K3(m&&m.map(C=>Object.assign({},C,{params:Object.assign({},a,C.params),pathname:Ws([l,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?l:Ws([l,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,r);return t&&b?p.createElement(Wg.Provider,{value:{location:gf({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Ls.Pop}},b):b}function V3(){let e=Q3(),t=D3(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,null)}const U3=p.createElement(V3,null);class G3 extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(as.Provider,{value:this.props.routeContext},p.createElement(L$.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function W3(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(Dx);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(as.Provider,{value:t},r)}function K3(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let u=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||un(!1),s=s.slice(0,Math.min(s.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((u,d,f)=>{let h,m=!1,b=null,C=null;n&&(h=a&&d.route.id?a[d.route.id]:void 0,b=d.route.errorElement||U3,l&&(c<0&&f===0?(m=!0,C=null):c===f&&(m=!0,C=d.route.hydrateFallbackElement||null)));let y=t.concat(s.slice(0,f+1)),w=()=>{let g;return h?g=b:m?g=C:d.route.Component?g=p.createElement(d.route.Component,null):d.route.element?g=d.route.element:g=u,p.createElement(W3,{match:d,routeContext:{outlet:u,matches:y,isDataRoute:n!=null},children:g})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?p.createElement(G3,{location:n.location,revalidation:n.revalidation,component:b,error:h,children:w(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):w()},null)}var N$=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(N$||{}),Sm=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}(Sm||{});function q3(e){let t=p.useContext(Dx);return t||un(!1),t}function Y3(e){let t=p.useContext(F3);return t||un(!1),t}function X3(e){let t=p.useContext(as);return t||un(!1),t}function B$(e){let t=X3(),n=t.matches[t.matches.length-1];return n.route.id||un(!1),n.route.id}function Q3(){var e;let t=p.useContext(L$),n=Y3(Sm.UseRouteError),r=B$(Sm.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function J3(){let{router:e}=q3(N$.UseNavigateStable),t=B$(Sm.UseNavigateStable),n=p.useRef(!1);return F$(()=>{n.current=!0}),p.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,gf({fromRouteId:t},i)))},[e,t])}const $I={};function Z3(e,t){$I[t]||($I[t]=!0,console.warn(t))}const _I=(e,t,n)=>Z3(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function e4(e,t){e!=null&&e.v7_startTransition||_I("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&!t&&_I("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function t4(e){let{to:t,replace:n,state:r,relative:o}=e;vu()||un(!1);let{future:i,static:s}=p.useContext(sa),{matches:a}=p.useContext(as),{pathname:l}=yu(),c=Kf(),u=Ax(t,_x(a,i.v7_relativeSplatPath),l,o==="path"),d=JSON.stringify(u);return p.useEffect(()=>c(JSON.parse(d),{replace:n,state:r,relative:o}),[c,d,o,n,r]),null}function ys(e){un(!1)}function n4(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Ls.Pop,navigator:i,static:s=!1,future:a}=e;vu()&&un(!1);let l=t.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:i,static:s,future:gf({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=gu(r));let{pathname:u="/",search:d="",hash:f="",state:h=null,key:m="default"}=r,b=p.useMemo(()=>{let C=$x(u,l);return C==null?null:{location:{pathname:C,search:d,hash:f,state:h,key:m},navigationType:o}},[l,u,d,f,h,m,o]);return b==null?null:p.createElement(sa.Provider,{value:c},p.createElement(Wg.Provider,{children:n,value:b}))}function r4(e){let{children:t,location:n}=e;return z3(nw(t),n)}new Promise(()=>{});function nw(e,t){t===void 0&&(t=[]);let n=[];return p.Children.forEach(e,(r,o)=>{if(!p.isValidElement(r))return;let i=[...t,o];if(r.type===p.Fragment){n.push.apply(n,nw(r.props.children,i));return}r.type!==ys&&un(!1),!r.props.index||!r.props.children||un(!1);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,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary: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=nw(r.props.children,i)),n.push(s)}),n}/** - * React Router DOM v6.28.0 + */function gf(){return gf=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),p.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=Ax(c,JSON.parse(s),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Ws([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,s,i,e])}function B3(){let{matches:e}=p.useContext(as),t=e[e.length-1];return t?t.params:{}}function j$(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=p.useContext(sa),{matches:o}=p.useContext(as),{pathname:i}=yu(),s=JSON.stringify(_x(o,r.v7_relativeSplatPath));return p.useMemo(()=>Ax(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function z3(e,t){return H3(e,t)}function H3(e,t,n,r){vu()||un(!1);let{navigator:o}=p.useContext(sa),{matches:i}=p.useContext(as),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=yu(),u;if(t){var d;let C=typeof t=="string"?gu(t):t;l==="/"||(d=C.pathname)!=null&&d.startsWith(l)||un(!1),u=C}else u=c;let f=u.pathname||"/",h=f;if(l!=="/"){let C=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(C.length).join("/")}let m=m3(e,{pathname:h}),b=K3(m&&m.map(C=>Object.assign({},C,{params:Object.assign({},a,C.params),pathname:Ws([l,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?l:Ws([l,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,r);return t&&b?p.createElement(Wg.Provider,{value:{location:gf({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Ls.Pop}},b):b}function V3(){let e=Q3(),t=D3(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,null)}const U3=p.createElement(V3,null);class G3 extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(as.Provider,{value:this.props.routeContext},p.createElement(L$.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function W3(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(Dx);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(as.Provider,{value:t},r)}function K3(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let u=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||un(!1),s=s.slice(0,Math.min(s.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((u,d,f)=>{let h,m=!1,b=null,C=null;n&&(h=a&&d.route.id?a[d.route.id]:void 0,b=d.route.errorElement||U3,l&&(c<0&&f===0?(m=!0,C=null):c===f&&(m=!0,C=d.route.hydrateFallbackElement||null)));let y=t.concat(s.slice(0,f+1)),w=()=>{let g;return h?g=b:m?g=C:d.route.Component?g=p.createElement(d.route.Component,null):d.route.element?g=d.route.element:g=u,p.createElement(W3,{match:d,routeContext:{outlet:u,matches:y,isDataRoute:n!=null},children:g})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?p.createElement(G3,{location:n.location,revalidation:n.revalidation,component:b,error:h,children:w(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):w()},null)}var N$=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(N$||{}),Sm=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}(Sm||{});function q3(e){let t=p.useContext(Dx);return t||un(!1),t}function Y3(e){let t=p.useContext(F3);return t||un(!1),t}function X3(e){let t=p.useContext(as);return t||un(!1),t}function B$(e){let t=X3(),n=t.matches[t.matches.length-1];return n.route.id||un(!1),n.route.id}function Q3(){var e;let t=p.useContext(L$),n=Y3(Sm.UseRouteError),r=B$(Sm.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function J3(){let{router:e}=q3(N$.UseNavigateStable),t=B$(Sm.UseNavigateStable),n=p.useRef(!1);return F$(()=>{n.current=!0}),p.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,gf({fromRouteId:t},i)))},[e,t])}const $I={};function Z3(e,t){$I[t]||($I[t]=!0,console.warn(t))}const _I=(e,t,n)=>Z3(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function e4(e,t){(e==null?void 0:e.v7_startTransition)===void 0&&_I("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(e==null?void 0:e.v7_relativeSplatPath)===void 0&&!t&&_I("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function t4(e){let{to:t,replace:n,state:r,relative:o}=e;vu()||un(!1);let{future:i,static:s}=p.useContext(sa),{matches:a}=p.useContext(as),{pathname:l}=yu(),c=Kf(),u=Ax(t,_x(a,i.v7_relativeSplatPath),l,o==="path"),d=JSON.stringify(u);return p.useEffect(()=>c(JSON.parse(d),{replace:n,state:r,relative:o}),[c,d,o,n,r]),null}function ys(e){un(!1)}function n4(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Ls.Pop,navigator:i,static:s=!1,future:a}=e;vu()&&un(!1);let l=t.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:i,static:s,future:gf({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=gu(r));let{pathname:u="/",search:d="",hash:f="",state:h=null,key:m="default"}=r,b=p.useMemo(()=>{let C=$x(u,l);return C==null?null:{location:{pathname:C,search:d,hash:f,state:h,key:m},navigationType:o}},[l,u,d,f,h,m,o]);return b==null?null:p.createElement(sa.Provider,{value:c},p.createElement(Wg.Provider,{children:n,value:b}))}function r4(e){let{children:t,location:n}=e;return z3(nw(t),n)}new Promise(()=>{});function nw(e,t){t===void 0&&(t=[]);let n=[];return p.Children.forEach(e,(r,o)=>{if(!p.isValidElement(r))return;let i=[...t,o];if(r.type===p.Fragment){n.push.apply(n,nw(r.props.children,i));return}r.type!==ys&&un(!1),!r.props.index||!r.props.children||un(!1);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,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary: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=nw(r.props.children,i)),n.push(s)}),n}/** + * React Router DOM v6.28.1 * * Copyright (c) Remix Software Inc. * diff --git a/index.html b/index.html index 5b69847..c81bfe0 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Vite + React - +