1import{r as l}from"./constants-Dew8z-nn.js";import{q as se}from"./requestWrapper-5ae08Iuc.js";const ue=({className:e="spinner"})=>l.createElement("svg",{"aria-label":"Loading spinner",className:e,role:"img",viewBox:"0 0 50 50"},l.createElement("circle",{cx:"25",cy:"25",r:"20"})),lt=()=>l.createElement("div",{className:"loading-spinner"},l.createElement("div",{className:"spinner-container"},l.createElement(ue,null)));/** 2 * @remix-run/router v1.6.3 3 * 4 * Copyright (c) Remix Software Inc. 5 * 6 * This source code is licensed under the MIT license found in the 7 * LICENSE.md file in the root directory of this source tree. 8 * 9 * @license MIT 10 */function k(){return k=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},k.apply(this,arguments)}var B;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(B||(B={}));function p(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function T(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function K(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 U(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}var q;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(q||(q={}));function ce(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?U(t):t,a=F(r.pathname||"/",n);if(a==null)return null;let o=Y(e);he(o);let i=null;for(let s=0;i==null&&s<o.length;++s)i=Ce(o[s],Pe(a));return i}function Y(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let a=(o,i,s)=>{let u={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(p(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=R([r,u.relativePath]),h=n.concat(u);o.children&&o.children.length>0&&(p(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Y(o.children,t,h,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:ye(c,o.index),routesMeta:h})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,i);else for(let u of Z(o.path))a(o,i,u)}),t}function Z(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let i=Z(r.join("/")),s=[];return s.push(...i.map(u=>u===""?o:[o,u].join("/"))),a&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function he(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:xe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const fe=/^:\w+$/,de=3,pe=2,me=1,ve=10,ge=-2,A=e=>e==="*";function ye(e,t){let n=e.split("/"),r=n.length;return n.some(A)&&(r+=ge),t&&(r+=pe),n.filter(a=>!A(a)).reduce((a,o)=>a+(fe.test(o)?de:o===""?me:ve),r)}function xe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function Ce(e,t){let{routesMeta:n}=e,r={},a="/",o=[];for(let i=0;i<n.length;++i){let s=n[i],u=i===n.length-1,c=a==="/"?t:t.slice(a.length)||"/",h=Ee({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},c);if(!h)return null;
vendor: 4,778 bytes, lines 10-19
10Object.assign(r,h.params);let f=s.route;o.push({params:r,pathname:R([a,h.pathname]),pathnameBase:Le(R([a,h.pathnameBase])),route:f}),h.pathnameBase!=="/"&&(a=R([a,h.pathnameBase]))}return o}function Ee(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Re(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:r.reduce((c,h,f)=>{if(h==="*"){let v=s[f]||"";i=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}return c[h]=be(s[f]||"",h),c},{}),pathname:o,pathnameBase:i,pattern:e}}function Re(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),T(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=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(i,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function Pe(e){try{return decodeURI(e)}catch(t){return T(!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 be(e,t){try{return decodeURIComponent(e)}catch(n){return T(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function F(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 we(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?U(e):e;return{pathname:n?n.startsWith("/")?n:Se(n,t):t,search:Ue(r),hash:Ne(a)}}function Se(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function $(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 <Link to="..."> and the router will parse it for you.'}function J(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function _(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=U(e):(a=k({},e),p(!a.pathname||!a.pathname.includes("?"),$("?","pathname","search",a)),p(!a.pathname||!a.pathname.includes("#"),$("#","pathname","hash",a)),p(!a.search||!a.search.includes("#"),$("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,s;if(r||i==null)s=n;else{let f=t.length-1;if(i.startsWith("..")){let v=i.split("/");for(;v[0]==="..";)v.shift(),f-=1;a.pathname=v.join("/")}s=f>=0?t[f]:"/"}let u=we(a,s),c=i&&i!=="/"&&i.endsWith("/"),h=(o||i===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||h)&&(u.pathname+="/"),u}const R=e=>e.join("/").replace(/\/\/+/g,"/"),Le=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ue=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ne=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Be(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const H=["post","put","patch","delete"];new Set(H);const Oe=["get",...H];new Set(Oe);/** 11 * React Router v6.12.0 12 * 13 * Copyright (c) Remix Software Inc. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE.md file in the root directory of this source tree. 17 * 18 * @license MIT 19 */function O(){return O=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},O.apply(this,arguments)}const z=l.createContext(null),ee=l.createContext(null),b=l.createContext(null),j=l.createContext(null),E=l.createContext({outlet:null,matches:[],isDataRoute:!1}),te=l.createContext(null);function Ie(e,t){let{relative:n}=t===void 0?{}:t;w()||p(!1);let{basename:r,navigator:a}=l.useContext(b),{hash:o,pathname:i,search:s}=V(e,{relative:n}),u=i;return r!=="/"&&(u=i==="/"?r:R([r,i])),a.createHref({pathname:u,search:s,hash:o})}function w(){return l.useContext(j)!=null}function S(){return w()||p(!1),l.useContext(j).location}function ne(e){l.useContext(b).static||l.useLayoutEffect(e)}function re(){let{isDataRoute:e}=l.useContext(E);return e?Ke():je()}function je(){w()||p(!1);
19let e=l.useContext(z),{basename:t,navigator:n}=l.useContext(b),{matches:r}=l.useContext(E),{pathname:a}=S(),o=JSON.stringify(J(r).map(u=>u.pathnameBase)),i=l.useRef(!1);return ne(()=>{i.current=!0}),l.useCallback(function(u,c){if(c===void 0&&(c={}),!i.current)return;if(typeof u=="number"){n.go(u);return}let h=_(u,JSON.parse(o),a,c.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:R([t,h.pathname])),(c.replace?n.replace:n.push)(h,c.state,c)},[t,n,o,a,e])}function it(){let{matches:e}=l.useContext(E),t=e[e.length-1];return t?t.params:{}}function V(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=l.useContext(E),{pathname:a}=S(),o=JSON.stringify(J(r).map(i=>i.pathnameBase));return l.useMemo(()=>_(e,JSON.parse(o),a,n==="path"),[e,o,a,n])}function We(e,t){return $e(e,t)}function $e(e,t,n){w()||p(!1);let{navigator:r}=l.useContext(b),{matches:a}=l.useContext(E),o=a[a.length-1],i=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let u=S(),c;if(t){var h;let d=typeof t=="string"?U(t):t;s==="/"||(h=d.pathname)!=null&&h.startsWith(s)||p(!1),c=d}else c=u;let f=c.pathname||"/",v=s==="/"?f:f.slice(s.length)||"/",g=ce(e,{pathname:v}),m=Fe(g&&g.map(d=>Object.assign({},d,{params:Object.assign({},i,d.params),pathname:R([s,r.encodeLocation?r.encodeLocation(d.pathname).pathname:d.pathname]),pathnameBase:d.pathnameBase==="/"?s:R([s,r.encodeLocation?r.encodeLocation(d.pathnameBase).pathname:d.pathnameBase])})),a,n);return t&&m?l.createElement(j.Provider,{value:{location:O({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:B.Pop}},m):m}function ke(){let e=Ve(),t=Be(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),n?l.createElement("pre",{style:a},n):null,null)}const Me=l.createElement(ke,null);class De extends l.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||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?l.createElement(E.Provider,{value:this.props.routeContext},l.createElement(te.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Te(e){let{routeContext:t,match:n,children:r}=e,a=l.useContext(z);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),l.createElement(E.Provider,{value:t},r)}function Fe(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var a;if((a=n)!=null&&a.errors)e=n.matches;else return null}let o=e,i=(r=n)==null?void 0:r.errors;if(i!=null){let s=o.findIndex(u=>u.route.id&&(i==null?void 0:i[u.route.id]));s>=0||p(!1),o=o.slice(0,Math.min(o.length,s+1))}return o.reduceRight((s,u,c)=>{let h=u.route.id?i==null?void 0:i[u.route.id]:null,f=null;n&&(f=u.route.errorElement||Me);let v=t.concat(o.slice(0,c+1)),g=()=>{let m;return h?m=f:u.route.Component?m=l.createElement(u.route.Component,null):u.route.element?m=u.route.element:m=s,l.createElement(Te,{match:u,routeContext:{outlet:s,matches:v,isDataRoute:n!=null},children:m})};return n&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?l.createElement(De,{location:n.location,revalidation:n.revalidation,component:f,error:h,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):g()},null)}var M;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(M||(M={}));var L;
19(function(e){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"})(L||(L={}));function Je(e){let t=l.useContext(z);return t||p(!1),t}function _e(e){let t=l.useContext(ee);return t||p(!1),t}function ze(e){let t=l.useContext(E);return t||p(!1),t}function ae(e){let t=ze(),n=t.matches[t.matches.length-1];return n.route.id||p(!1),n.route.id}function Ve(){var e;let t=l.useContext(te),n=_e(L.UseRouteError),r=ae(L.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function Ke(){let{router:e}=Je(M.UseNavigateStable),t=ae(L.UseNavigateStable),n=l.useRef(!1);return ne(()=>{n.current=!0}),l.useCallback(function(a,o){o===void 0&&(o={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,O({fromRouteId:t},o)))},[e,t])}function st(e){let{to:t,replace:n,state:r,relative:a}=e;w()||p(!1);let{matches:o}=l.useContext(E),{pathname:i}=S(),s=re(),u=_(t,J(o).map(h=>h.pathnameBase),i,a==="path"),c=JSON.stringify(u);return l.useEffect(()=>s(JSON.parse(c),{replace:n,state:r,relative:a}),[s,c,a,n,r]),null}function oe(e){p(!1)}function qe(e){let{basename:t="/",children:n=null,location:r,navigationType:a=B.Pop,navigator:o,static:i=!1}=e;w()&&p(!1);let s=t.replace(/^\/*/,"/"),u=l.useMemo(()=>({basename:s,navigator:o,static:i}),[s,o,i]);typeof r=="string"&&(r=U(r));let{pathname:c="/",search:h="",hash:f="",state:v=null,key:g="default"}=r,m=l.useMemo(()=>{let d=F(c,s);return d==null?null:{location:{pathname:d,search:h,hash:f,state:v,key:g},navigationType:a}},[s,c,h,f,v,g,a]);return m==null?null:l.createElement(b.Provider,{value:u},l.createElement(j.Provider,{children:n,value:m}))}function Ae(e){let{children:t,location:n}=e;return We(D(t),n)}var G;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(G||(G={}));new Promise(()=>{});function D(e,t){t===void 0&&(t=[]);let n=[];return l.Children.forEach(e,(r,a)=>{if(!l.isValidElement(r))return;let o=[...t,a];if(r.type===l.Fragment){n.push.apply(n,D(r.props.children,o));return}r.type!==oe&&p(!1),!r.props.index||!r.props.children||p(!1);let i={id:r.props.id||o.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&&(i.children=D(r.props.children,o)),n.push(i)}),n}/** 20 * React Router DOM v5 Compat v6.12.0 21 * 22 * Copyright (c) Remix Software Inc. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE.md file in the root directory of this source tree. 26 * 27 * @license MIT 28 */function I(){return I=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},I.apply(this,arguments)}function le(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,o;for(o=0;o<r.length;o++)a=r[o],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function Ge(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Xe(e,t){return e.button===0&&(!t||t==="_self")&&!Ge(e)}const Qe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],Ye=["aria-current","caseSensitive","className","end","style","to","children"],Ze=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",He=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,et=l.forwardRef(function(t,n){let{onClick:r,relative:a,reloadDocument:o,replace:i,state:s,target:u,to:c,preventScrollReset:h}=t,f=le(t,Qe),{basename:v}=l.useContext(b),g,m=!1;if(typeof c=="string"&&He.test(c)&&(g=c,Ze))try{let y=new URL(window.location.href),C=c.startsWith("//")?new URL(y.protocol+c):new URL(c),N=F(C.pathname,v);C.origin===y.origin&&N!=null?c=N+C.search+C.hash:m=!0}catch{}let d=Ie(c,{relative:a}),P=tt(c,{replace:i,state:s,target:u,preventScrollReset:h,relative:a});function x(y){r&&r(y),y.defaultPrevented||P(y)}return l.createElement("a",I({},f,{href:g||d,onClick:m||o?r:x,ref:n,target:u}))}),ut=l.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:a=!1,className:o="",end:i=!1,style:s,to:u,children:c}=t,h=le(t,Ye),f=V(u,{relative:h.relative}),v=S(),g=l.useContext(ee),{navigator:m}=l.useContext(b),d=m.encodeLocation?m.encodeLocation(f).pathname:f.pathname,P=v.pathname,x=g&&g.n
28avigation&&g.navigation.location?g.navigation.location.pathname:null;a||(P=P.toLowerCase(),x=x?x.toLowerCase():null,d=d.toLowerCase());let y=P===d||!i&&P.startsWith(d)&&P.charAt(d.length)==="/",C=x!=null&&(x===d||!i&&x.startsWith(d)&&x.charAt(d.length)==="/"),N=y?r:void 0,W;typeof o=="function"?W=o({isActive:y,isPending:C}):W=[o,y?"active":null,C?"pending":null].filter(Boolean).join(" ");let ie=typeof s=="function"?s({isActive:y,isPending:C}):s;return l.createElement(et,I({},h,{"aria-current":N,className:W,ref:n,style:ie,to:u}),typeof c=="function"?c({isActive:y,isPending:C}):c)});var X;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(X||(X={}));var Q;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Q||(Q={}));function tt(e,t){let{target:n,replace:r,state:a,preventScrollReset:o,relative:i}=t===void 0?{}:t,s=re(),u=S(),c=V(e,{relative:i});return l.useCallback(h=>{if(Xe(h,n)){h.preventDefault();let f=r!==void 0?r:K(u)===K(c);s(e,{replace:f,state:a,preventScrollReset:o,relative:i})}},[u,s,c,r,a,n,e,o,i])}const nt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",rt=nt?l.useLayoutEffect:()=>{};function ct(e){let{children:t}=e,n=se(),[r,a]=l.useState(()=>({location:n.location,action:n.action}));return rt(()=>{n.listen((o,i)=>a({location:o,action:i}))},[n]),l.createElement(qe,{navigationType:r.action,location:r.location,navigator:n},l.createElement(Ae,null,l.createElement(oe,{path:"*",element:t})))}export{ct as C,ut as N,Ae as R,ue as S,lt as a,oe as b,st as c,it as d,S as e,re as u}; 29//# sourceMappingURL=index-CuuNU0I5.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.