"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["react-core"],{45588:(e,t,r)=>{var n,a;/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;th,B6:()=>R,G3:()=>H,Gh:()=>T,HS:()=>_,Oi:()=>l,RO:()=>E,Rr:()=>p,VV:()=>ErrorResponseImpl,aE:()=>V,o1:()=>C,pX:()=>D,pb:()=>x,rc:()=>n,ro:()=>v,tH:()=>AbortedDeferredError,tW:()=>S,ue:()=>y,yD:()=>k,zR:()=>s}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(n||(n={}));let i="popstate";function s(e){return void 0===e&&(e={}),function(e,t,r,a){void 0===a&&(a={});let{window:s=document.defaultView,v5Compat:c=!1}=a,p=s.history,f=n.Pop,m=null,y=g();function g(){return(p.state||{idx:null}).idx}function v(){f=n.Pop;let e=g(),t=null==e?null:e-y;y=e,m&&m({action:f,location:w.location,delta:t})}function b(e){let t="null"!==s.location.origin?s.location.origin:s.location.href,r="string"==typeof e?e:h(e);return l(t,"No window.location.(origin|href) available to create URL for href: "+(r=r.replace(/ $/,"%20"))),new URL(r,t)}null==y&&(y=0,p.replaceState(o({},p.state,{idx:y}),""));let w={get action(){return f},get location(){return e(s,p)},listen(e){if(m)throw Error("A history only accepts one active listener");return s.addEventListener(i,v),m=e,()=>{s.removeEventListener(i,v),m=null}},createHref:e=>t(s,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){f=n.Push;let r=d(w.location,e,t),a=u(r,y=g()+1),o=w.createHref(r);try{p.pushState(a,"",o)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;s.location.assign(o)}c&&m&&m({action:f,location:w.location,delta:1})},replace:function(e,t){f=n.Replace;let a=d(w.location,e,t);r&&r(a,e);let o=u(a,y=g()),i=w.createHref(a);p.replaceState(o,"",i),c&&m&&m({action:f,location:w.location,delta:0})},go:e=>p.go(e)};return w}(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return d("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:h(t)},null,e)}function l(e,t){if(!1===e||null==e)throw Error(t)}function c(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function u(e,t){return{usr:e.state,key:e.key,idx:t}}function d(e,t,r,n){return void 0===r&&(r=null),o({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?p(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function h(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function p(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(a||(a={}));let f=new Set(["lazy","caseSensitive","path","id","index","children"]);function m(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{let i=[...r,String(a)],s="string"==typeof e.id?e.id:i.join("-");if(l(!0!==e.index||!e.children,"Cannot specify children on an index route"),l(!n[s],'Found a route id collision on id "'+s+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let r=o({},e,t(e),{id:s});return n[s]=r,r}{let r=o({},e,t(e),{id:s,children:void 0});return n[s]=r,e.children&&(r.children=m(e.children,t,i,n)),r}})}function y(e,t,r){return void 0===r&&(r="/"),g(e,t,r,!1)}function g(e,t,r,n){let a=x(("string"==typeof t?p(t):t).pathname||"/",r);if(null==a)return null;let o=function e(t,r,n,a){void 0===r&&(r=[]),void 0===n&&(n=[]),void 0===a&&(a="");let o=(t,o,i)=>{let s={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};s.relativePath.startsWith("/")&&(l(s.relativePath.startsWith(a),'Absolute route path "'+s.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(a.length));let c=_([a,s.relativePath]),u=n.concat(s);if(t.children&&t.children.length>0&&(l(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+c+'".'),e(t.children,r,u,c)),null!=t.path||t.index){var d;let e,n;r.push({path:c,score:(d=t.index,n=(e=c.split("/")).length,e.some(w)&&(n+=-2),d&&(n+=2),e.filter(e=>!w(e)).reduce((e,t)=>e+(b.test(t)?3:""===t?1:10),n)),routesMeta:u})}};return t.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of function e(t){let r=t.split("/");if(0===r.length)return[];let[n,...a]=r,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let s=e(a.join("/")),l=[];return l.push(...s.map(e=>""===e?i:[i,e].join("/"))),o&&l.push(...s),l.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,r);else o(e,t)}),r}(e);!function(e){e.sort((e,t)=>{var r,n;return e.score!==t.score?t.score-e.score:(r=e.routesMeta.map(e=>e.childrenIndex),n=t.routesMeta.map(e=>e.childrenIndex),r.length===n.length&&r.slice(0,-1).every((e,t)=>e===n[t])?r[r.length-1]-n[n.length-1]:0)})}(o);let i=null;for(let e=0;null==i&&e"*"===e;function S(e,t){void 0===t&&(t={});let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(c(!1,'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),r=r.replace(/\*$/,"/*"));let n=r.startsWith("/")?"/":"",a=e=>null==e?"":"string"==typeof e?e:String(e);return n+r.split(/\/+/).map((e,r,n)=>{if(r===n.length-1&&"*"===e)return a(t["*"]);let o=e.match(/^:([\w-]+)(\??)$/);if(o){let[,e,r]=o,n=t[e];return l("?"===r||null!=n,'Missing ":'+e+'" param'),a(n)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function R(e,t){var r,n,a;let o,i;"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[s,l]=(r=e.path,n=e.caseSensitive,a=e.end,void 0===n&&(n=!1),void 0===a&&(a=!0),c("*"===r||!r.endsWith("*")||r.endsWith("/*"),'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),o=[],i="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(o.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")),r.endsWith("*")?(o.push({paramName:"*"}),i+="*"===r||"/*"===r?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?i+="\\/*$":""!==r&&"/"!==r&&(i+="(?:(?=\\/|$))"),[new RegExp(i,n?void 0:"i"),o]),u=t.match(s);if(!u)return null;let d=u[0],h=d.replace(/(.)\/+$/,"$1"),p=u.slice(1);return{params:l.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=p[r]||"";h=d.slice(0,d.length-e.length).replace(/(.)\/+$/,"$1")}let o=p[r];return a&&!o?e[n]=void 0:e[n]=(o||"").replace(/%2F/g,"/"),e},{}),pathname:d,pathnameBase:h,pattern:e}}function E(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return c(!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 r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function C(e,t){let r;void 0===t&&(t="/");let{pathname:n,search:a="",hash:o=""}="string"==typeof e?p(e):e;return{pathname:n?n.startsWith("/")?n:(r=t.replace(/\/+$/,"").split("/"),n.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"):t,search:P(a),hash:L(o)}}function N(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t)+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function j(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function k(e,t){let r=j(e);return t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase)}function T(e,t,r,n){let a,i;void 0===n&&(n=!1),"string"==typeof e?a=p(e):(l(!(a=o({},e)).pathname||!a.pathname.includes("?"),N("?","pathname","search",a)),l(!a.pathname||!a.pathname.includes("#"),N("#","pathname","hash",a)),l(!a.search||!a.search.includes("#"),N("#","search","hash",a)));let s=""===e||""===a.pathname,c=s?"/":a.pathname;if(null==c)i=r;else{let e=t.length-1;if(!n&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}i=e>=0?t[e]:"/"}let u=C(a,i),d=c&&"/"!==c&&c.endsWith("/"),h=(s||"."===c)&&r.endsWith("/");return!u.pathname.endsWith("/")&&(d||h)&&(u.pathname+="/"),u}let _=e=>e.join("/").replace(/\/\/+/g,"/"),A=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),P=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",L=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";let AbortedDeferredError=class AbortedDeferredError extends Error{};let ErrorResponseImpl=class ErrorResponseImpl{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function D(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let O=["post","put","patch","delete"],I=new Set(O),M=new Set(["get",...O]),U=new Set([301,302,303,307,308]),z=new Set([307,308]),B={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},W={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},H={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},F=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),q="remix-router-transitions";function V(e){let t,r,i,s,u,h;let p=e.window?e.window:"undefined"!=typeof window?window:void 0,f=void 0!==p&&void 0!==p.document&&void 0!==p.document.createElement,b=!f;if(l(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let r=e.detectErrorBoundary;t=e=>({hasErrorBoundary:r(e)})}else t=$;let w={},S=m(e.routes,t,void 0,w),R=e.basename||"/",E=e.dataStrategy||er,C=e.patchRoutesOnNavigation,N=o({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),j=null,k=new Set,T=null,_=null,A=null,P=null!=e.hydrationData,L=y(S,e.history.location,R),O=!1,I=null;if(null==L&&!C){let t=em(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=ef(S);L=r,I={[n.id]:t}}if(L&&!e.hydrationData&&to(L,S,e.history.location.pathname).active&&(L=null),L){if(L.some(e=>e.route.lazy))i=!1;else if(L.some(e=>e.route.loader)){if(N.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=L.findIndex(e=>void 0!==r[e.route.id]);i=L.slice(0,e+1).every(e=>!K(e.route,t,r))}else i=L.every(e=>!K(e.route,t,r))}else i=null!=e.hydrationData}else i=!0}else if(i=!1,L=[],N.v7_partialHydration){let t=to(null,S,e.history.location.pathname);t.active&&t.matches&&(O=!0,L=t.matches)}let M={historyAction:e.history.action,location:e.history.location,matches:L,initialized:i,navigation:B,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||I,fetchers:new Map,blockers:new Map},V=n.Pop,J=!1,Q=!1,Z=new Map,et=null,ea=!1,el=!1,ec=[],eg=new Set,eS=new Map,ej=0,eL=-1,eD=new Map,eO=new Set,eI=new Map,eM=new Map,eU=new Set,ez=new Map,eB=new Map;function eW(e,t){void 0===t&&(t={}),M=o({},M,e);let r=[],n=[];N.v7_fetcherPersist&&M.fetchers.forEach((e,t)=>{"idle"===e.state&&(eU.has(t)?n.push(t):r.push(t))}),eU.forEach(e=>{M.fetchers.has(e)||eS.has(e)||n.push(e)}),[...k].forEach(e=>e(M,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),N.v7_fetcherPersist?(r.forEach(e=>M.fetchers.delete(e)),n.forEach(e=>e4(e))):n.forEach(e=>eU.delete(e))}function eH(t,a,i){var s,l;let c,u;let{flushSync:d}=void 0===i?{}:i,h=null!=M.actionData&&null!=M.navigation.formMethod&&eE(M.navigation.formMethod)&&"loading"===M.navigation.state&&(null==(s=t.state)?void 0:s._isRedirect)!==!0;c=a.actionData?Object.keys(a.actionData).length>0?a.actionData:null:h?M.actionData:null;let p=a.loaderData?ed(M.loaderData,a.loaderData,a.matches||[],a.errors):M.loaderData,f=M.blockers;f.size>0&&(f=new Map(f)).forEach((e,t)=>f.set(t,H));let m=!0===J||null!=M.navigation.formMethod&&eE(M.navigation.formMethod)&&(null==(l=t.state)?void 0:l._isRedirect)!==!0;if(r&&(S=r,r=void 0),ea||V===n.Pop||(V===n.Push?e.history.push(t,t.state):V===n.Replace&&e.history.replace(t,t.state)),V===n.Pop){let e=Z.get(M.location.pathname);e&&e.has(t.pathname)?u={currentLocation:M.location,nextLocation:t}:Z.has(t.pathname)&&(u={currentLocation:t,nextLocation:M.location})}else if(Q){let e=Z.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),Z.set(M.location.pathname,e)),u={currentLocation:M.location,nextLocation:t}}eW(o({},a,{actionData:c,loaderData:p,historyAction:V,location:t,initialized:!0,navigation:B,revalidation:"idle",restoreScrollPosition:ta(t,a.matches||M.matches),preventScrollReset:m,blockers:f}),{viewTransitionOpts:u,flushSync:!0===d}),V=n.Pop,J=!1,Q=!1,ea=!1,el=!1,ec=[]}async function eF(t,r){if("number"==typeof t){e.history.go(t);return}let a=G(M.location,M.matches,R,N.v7_prependBasename,t,N.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:i,submission:s,error:l}=Y(N.v7_normalizeFormMethod,!1,a,r),c=M.location,u=d(M.location,i,r&&r.state);u=o({},u,e.history.encodeLocation(u));let h=r&&null!=r.replace?r.replace:void 0,p=n.Push;!0===h?p=n.Replace:!1===h||null!=s&&eE(s.formMethod)&&s.formAction===M.location.pathname+M.location.search&&(p=n.Replace);let f=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,m=!0===(r&&r.flushSync),y=te({currentLocation:c,nextLocation:u,historyAction:p});if(y){e9(y,{state:"blocked",location:u,proceed(){e9(y,{state:"proceeding",proceed:void 0,reset:void 0,location:u}),eF(t,r)},reset(){let e=new Map(M.blockers);e.set(y,H),eW({blockers:e})}});return}return await e$(p,u,{submission:s,pendingError:l,preventScrollReset:f,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:m})}async function e$(t,n,i){var s,l,c;let d;u&&u.abort(),u=null,V=t,ea=!0===(i&&i.startUninterruptedRevalidation),s=M.location,l=M.matches,T&&A&&(T[tn(s,l)]=A()),J=!0===(i&&i.preventScrollReset),Q=!0===(i&&i.enableViewTransition);let h=r||S,p=i&&i.overrideNavigation,f=null!=i&&i.initialHydration&&M.matches&&M.matches.length>0&&!O?M.matches:y(h,n,R),m=!0===(i&&i.flushSync);if(f&&M.initialized&&!el&&(c=M.location).pathname===n.pathname&&c.search===n.search&&(""===c.hash?""!==n.hash:c.hash===n.hash||""!==n.hash)&&!(i&&i.submission&&eE(i.submission.formMethod))){eH(n,{matches:f},{flushSync:m});return}let g=to(f,h,n.pathname);if(g.active&&g.matches&&(f=g.matches),!f){let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);eH(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:m});return}u=new AbortController;let v=es(e.history,n,u.signal,i&&i.submission);if(i&&i.pendingError)d=[ep(f).route.id,{type:a.error,error:i.pendingError}];else if(i&&i.submission&&eE(i.submission.formMethod)){let t=await eq(v,n,i.submission,f,g.active,{replace:i.replace,flushSync:m});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(eb(r)&&D(r.error)&&404===r.error.status){u=null,eH(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}f=t.matches||f,d=t.pendingActionResult,p=e_(n,i.submission),m=!1,g.active=!1,v=es(e.history,v.url,v.signal)}let{shortCircuited:b,matches:w,loaderData:E,errors:x}=await eV(v,n,f,g.active,p,i&&i.submission,i&&i.fetcherSubmission,i&&i.replace,i&&!0===i.initialHydration,m,d);b||(u=null,eH(n,o({matches:w||f},eh(d),{loaderData:E,errors:x})))}async function eq(e,t,r,o,i,s){let l;if(void 0===s&&(s={}),eZ(),eW({navigation:{state:"submitting",location:t,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}},{flushSync:!0===s.flushSync}),i){let r=await ti(o,t.pathname,e.signal);if("aborted"===r.type)return{shortCircuited:!0};if("error"===r.type){let e=ep(r.partialMatches).route.id;return{matches:r.partialMatches,pendingActionResult:[e,{type:a.error,error:r.error}]}}if(r.matches)o=r.matches;else{let{notFoundMatches:e,error:r,route:n}=tt(t.pathname);return{matches:e,pendingActionResult:[n.id,{type:a.error,error:r}]}}}let c=ek(o,t);if(c.route.action||c.route.lazy){if(l=(await eK("action",M,e,[c],o,null))[c.route.id],e.signal.aborted)return{shortCircuited:!0}}else l={type:a.error,error:em(405,{method:e.method,pathname:t.pathname,routeId:c.route.id})};if(ew(l)){let t;return t=s&&null!=s.replace?s.replace:ei(l.response.headers.get("Location"),new URL(e.url),R)===M.location.pathname+M.location.search,await eX(e,l,!0,{submission:r,replace:t}),{shortCircuited:!0}}if(ev(l))throw em(400,{type:"defer-action"});if(eb(l)){let e=ep(o,c.route.id);return!0!==(s&&s.replace)&&(V=n.Push),{matches:o,pendingActionResult:[e.route.id,l]}}return{matches:o,pendingActionResult:[c.route.id,l]}}async function eV(t,n,a,i,s,l,c,d,h,p,f){let m=s||e_(n,l),y=l||c||eT(m),g=!ea&&(!N.v7_partialHydration||!h);if(i){if(g){let e=eG(f);eW(o({navigation:m},void 0!==e?{actionData:e}:{}),{flushSync:p})}let e=await ti(a,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=ep(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)a=e.matches;else{let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let v=r||S,[b,w]=X(e.history,M,a,y,n,N.v7_partialHydration&&!0===h,N.v7_skipActionErrorRevalidation,el,ec,eg,eU,eI,eO,v,R,f);if(tr(e=>!(a&&a.some(t=>t.route.id===e))||b&&b.some(t=>t.route.id===e)),eL=++ej,0===b.length&&0===w.length){let e=e5();return eH(n,o({matches:a,loaderData:{},errors:f&&eb(f[1])?{[f[0]]:f[1].error}:null},eh(f),e?{fetchers:new Map(M.fetchers)}:{}),{flushSync:p}),{shortCircuited:!0}}if(g){let e={};if(!i){e.navigation=m;let t=eG(f);void 0!==t&&(e.actionData=t)}w.length>0&&(e.fetchers=(w.forEach(e=>{let t=M.fetchers.get(e.key),r=eA(void 0,t?t.data:void 0);M.fetchers.set(e.key,r)}),new Map(M.fetchers))),eW(e,{flushSync:p})}w.forEach(e=>{e7(e.key),e.controller&&eS.set(e.key,e.controller)});let E=()=>w.forEach(e=>e7(e.key));u&&u.signal.addEventListener("abort",E);let{loaderResults:x,fetcherResults:C}=await eQ(M,a,b,w,t);if(t.signal.aborted)return{shortCircuited:!0};u&&u.signal.removeEventListener("abort",E),w.forEach(e=>eS.delete(e.key));let j=ey(x);if(j)return await eX(t,j.result,!0,{replace:d}),{shortCircuited:!0};if(j=ey(C))return eO.add(j.key),await eX(t,j.result,!0,{replace:d}),{shortCircuited:!0};let{loaderData:k,errors:T}=eu(M,a,x,f,w,C,ez);ez.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&ez.delete(t)})}),N.v7_partialHydration&&h&&M.errors&&(T=o({},M.errors,T));let _=e5(),A=e6(eL),P=_||A||w.length>0;return o({matches:a,loaderData:k,errors:T},P?{fetchers:new Map(M.fetchers)}:{})}function eG(e){return e&&!eb(e[1])?{[e[0]]:e[1].data}:M.actionData?0===Object.keys(M.actionData).length?null:M.actionData:void 0}async function eY(t,n,a,o,i,s,c,d,h){function p(e){if(!e.route.action&&!e.route.lazy){let e=em(405,{method:h.formMethod,pathname:a,routeId:n});return e1(t,n,e,{flushSync:c}),!0}return!1}if(eZ(),eI.delete(t),!s&&p(o))return;let f=M.fetchers.get(t);e0(t,{state:"submitting",formMethod:h.formMethod,formAction:h.formAction,formEncType:h.formEncType,formData:h.formData,json:h.json,text:h.text,data:f?f.data:void 0},{flushSync:c});let m=new AbortController,g=es(e.history,a,m.signal,h);if(s){let e=await ti(i,new URL(g.url).pathname,g.signal,t);if("aborted"===e.type)return;if("error"===e.type){e1(t,n,e.error,{flushSync:c});return}if(e.matches){if(p(o=ek(i=e.matches,a)))return}else{e1(t,n,em(404,{pathname:a}),{flushSync:c});return}}eS.set(t,m);let v=ej,b=(await eK("action",M,g,[o],i,t))[o.route.id];if(g.signal.aborted){eS.get(t)===m&&eS.delete(t);return}if(N.v7_fetcherPersist&&eU.has(t)){if(ew(b)||eb(b)){e0(t,eP(void 0));return}}else{if(ew(b))return(eS.delete(t),eL>v)?void e0(t,eP(void 0)):(eO.add(t),e0(t,eA(h)),eX(g,b,!1,{fetcherSubmission:h,preventScrollReset:d}));if(eb(b)){e1(t,n,b.error);return}}if(ev(b))throw em(400,{type:"defer-action"});let w=M.navigation.location||M.location,E=es(e.history,w,m.signal),x=r||S,C="idle"!==M.navigation.state?y(x,M.navigation.location,R):M.matches;l(C,"Didn't find any matches after fetcher action");let j=++ej;eD.set(t,j);let k=eA(h,b.data);M.fetchers.set(t,k);let[T,_]=X(e.history,M,C,h,w,!1,N.v7_skipActionErrorRevalidation,el,ec,eg,eU,eI,eO,x,R,[o.route.id,b]);_.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=M.fetchers.get(t),n=eA(void 0,r?r.data:void 0);M.fetchers.set(t,n),e7(t),e.controller&&eS.set(t,e.controller)}),eW({fetchers:new Map(M.fetchers)});let A=()=>_.forEach(e=>e7(e.key));m.signal.addEventListener("abort",A);let{loaderResults:P,fetcherResults:L}=await eQ(M,C,T,_,E);if(m.signal.aborted)return;m.signal.removeEventListener("abort",A),eD.delete(t),eS.delete(t),_.forEach(e=>eS.delete(e.key));let D=ey(P);if(D)return eX(E,D.result,!1,{preventScrollReset:d});if(D=ey(L))return eO.add(D.key),eX(E,D.result,!1,{preventScrollReset:d});let{loaderData:O,errors:I}=eu(M,C,P,void 0,_,L,ez);if(M.fetchers.has(t)){let e=eP(b.data);M.fetchers.set(t,e)}e6(j),"loading"===M.navigation.state&&j>eL?(l(V,"Expected pending action"),u&&u.abort(),eH(M.navigation.location,{matches:C,loaderData:O,errors:I,fetchers:new Map(M.fetchers)})):(eW({errors:I,loaderData:ed(M.loaderData,O,C,I),fetchers:new Map(M.fetchers)}),el=!1)}async function eJ(t,r,n,a,o,i,s,c,u){let d=M.fetchers.get(t);e0(t,eA(u,d?d.data:void 0),{flushSync:s});let h=new AbortController,p=es(e.history,n,h.signal);if(i){let e=await ti(o,new URL(p.url).pathname,p.signal,t);if("aborted"===e.type)return;if("error"===e.type){e1(t,r,e.error,{flushSync:s});return}if(e.matches)a=ek(o=e.matches,n);else{e1(t,r,em(404,{pathname:n}),{flushSync:s});return}}eS.set(t,h);let f=ej,m=(await eK("loader",M,p,[a],o,t))[a.route.id];if(ev(m)&&(m=await eN(m,p.signal,!0)||m),eS.get(t)===h&&eS.delete(t),!p.signal.aborted){if(eU.has(t)){e0(t,eP(void 0));return}if(ew(m)){if(eL>f){e0(t,eP(void 0));return}eO.add(t),await eX(p,m,!1,{preventScrollReset:c});return}if(eb(m)){e1(t,r,m.error);return}l(!ev(m),"Unhandled fetcher deferred data"),e0(t,eP(m.data))}}async function eX(t,r,a,i){let{submission:s,fetcherSubmission:c,preventScrollReset:h,replace:m}=void 0===i?{}:i;r.response.headers.has("X-Remix-Revalidate")&&(el=!0);let y=r.response.headers.get("Location");l(y,"Expected a Location header on the redirect Response"),y=ei(y,new URL(t.url),R);let g=d(M.location,y,{_isRedirect:!0});if(f){let t=!1;if(r.response.headers.has("X-Remix-Reload-Document"))t=!0;else if(F.test(y)){let r=e.history.createURL(y);t=r.origin!==p.location.origin||null==x(r.pathname,R)}if(t){m?p.location.replace(y):p.location.assign(y);return}}u=null;let v=!0===m||r.response.headers.has("X-Remix-Replace")?n.Replace:n.Push,{formMethod:b,formAction:w,formEncType:S}=M.navigation;!s&&!c&&b&&w&&S&&(s=eT(M.navigation));let E=s||c;if(z.has(r.response.status)&&E&&eE(E.formMethod))await e$(v,g,{submission:o({},E,{formAction:y}),preventScrollReset:h||J,enableViewTransition:a?Q:void 0});else{let e=e_(g,s);await e$(v,g,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:h||J,enableViewTransition:a?Q:void 0})}}async function eK(e,r,n,o,i,s){let c;let u={};try{c=await en(E,e,r,n,o,i,s,w,t)}catch(e){return o.forEach(t=>{u[t.route.id]={type:a.error,error:e}}),u}for(let[e,t]of Object.entries(c)){var d;if(eR((d=t).result)&&U.has(d.result.status)){let r=t.result;u[e]={type:a.redirect,response:function(e,t,r,n,a,o){let i=e.headers.get("Location");if(l(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!F.test(i)){let s=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=G(new URL(t.url),s,a,!0,i,o),e.headers.set("Location",i)}return e}(r,n,e,i,R,N.v7_relativeSplatPath)}}else u[e]=await eo(t)}return u}async function eQ(t,r,n,o,i){let s=t.matches,l=eK("loader",t,i,n,r,null),c=Promise.all(o.map(async r=>{if(!r.matches||!r.match||!r.controller)return Promise.resolve({[r.key]:{type:a.error,error:em(404,{pathname:r.path})}});{let n=(await eK("loader",t,es(e.history,r.path,r.controller.signal),[r.match],r.matches,r.key))[r.match.route.id];return{[r.key]:n}}})),u=await l,d=(await c).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([ex(r,u,i.signal,s,t.loaderData),eC(r,d,o)]),{loaderResults:u,fetcherResults:d}}function eZ(){el=!0,ec.push(...tr()),eI.forEach((e,t)=>{eS.has(t)&&eg.add(t),e7(t)})}function e0(e,t,r){void 0===r&&(r={}),M.fetchers.set(e,t),eW({fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function e1(e,t,r,n){void 0===n&&(n={});let a=ep(M.matches,t);e4(e),eW({errors:{[a.route.id]:r},fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function e2(e){return eM.set(e,(eM.get(e)||0)+1),eU.has(e)&&eU.delete(e),M.fetchers.get(e)||W}function e4(e){let t=M.fetchers.get(e);eS.has(e)&&!(t&&"loading"===t.state&&eD.has(e))&&e7(e),eI.delete(e),eD.delete(e),eO.delete(e),N.v7_fetcherPersist&&eU.delete(e),eg.delete(e),M.fetchers.delete(e)}function e7(e){let t=eS.get(e);t&&(t.abort(),eS.delete(e))}function e3(e){for(let t of e){let e=eP(e2(t).data);M.fetchers.set(t,e)}}function e5(){let e=[],t=!1;for(let r of eO){let n=M.fetchers.get(r);l(n,"Expected fetcher: "+r),"loading"===n.state&&(eO.delete(r),e.push(r),t=!0)}return e3(e),t}function e6(e){let t=[];for(let[r,n]of eD)if(n0}function e8(e){M.blockers.delete(e),eB.delete(e)}function e9(e,t){let r=M.blockers.get(e)||H;l("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(M.blockers);n.set(e,t),eW({blockers:n})}function te(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===eB.size)return;eB.size>1&&c(!1,"A router only supports one blocker at a time");let a=Array.from(eB.entries()),[o,i]=a[a.length-1],s=M.blockers.get(o);if((!s||"proceeding"!==s.state)&&i({currentLocation:t,nextLocation:r,historyAction:n}))return o}function tt(e){let t=em(404,{pathname:e}),{matches:n,route:a}=ef(r||S);return tr(),{notFoundMatches:n,route:a,error:t}}function tr(e){let t=[];return ez.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),ez.delete(n))}),t}function tn(e,t){return _&&_(e,t.map(e=>v(e,M.loaderData)))||e.key}function ta(e,t){if(T){let r=T[tn(e,t)];if("number"==typeof r)return r}return null}function to(e,t,r){if(C){if(!e)return{active:!0,matches:g(t,r,R,!0)||[]};if(Object.keys(e[0].params).length>0)return{active:!0,matches:g(t,r,R,!0)}}return{active:!1,matches:null}}async function ti(e,n,a,o){if(!C)return{type:"success",matches:e};let i=e;for(;;){let e=null==r,s=r||S,l=w;try{await C({signal:a,path:n,matches:i,fetcherKey:o,patch:(e,r)=>{a.aborted||ee(e,r,s,l,t)}})}catch(e){return{type:"error",error:e,partialMatches:i}}finally{e&&!a.aborted&&(S=[...S])}if(a.aborted)return{type:"aborted"};let c=y(s,n,R);if(c)return{type:"success",matches:c};let u=g(s,n,R,!0);if(!u||i.length===u.length&&i.every((e,t)=>e.route.id===u[t].route.id))return{type:"success",matches:null};i=u}}return s={get basename(){return R},get future(){return N},get state(){return M},get routes(){return S},get window(){return p},initialize:function(){if(j=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(h){h(),h=void 0;return}c(0===eB.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=te({currentLocation:M.location,nextLocation:n,historyAction:r});if(o&&null!=a){let t=new Promise(e=>{h=e});e.history.go(-1*a),e9(o,{state:"blocked",location:n,proceed(){e9(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(a))},reset(){let e=new Map(M.blockers);e.set(o,H),eW({blockers:e})}});return}return e$(r,n)}),f){!function(e,t){try{let r=e.sessionStorage.getItem(q);if(r){let e=JSON.parse(r);for(let[r,n]of Object.entries(e||{}))n&&Array.isArray(n)&&t.set(r,new Set(n||[]))}}catch(e){}}(p,Z);let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(q,JSON.stringify(r))}catch(e){c(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(p,Z);p.addEventListener("pagehide",e),et=()=>p.removeEventListener("pagehide",e)}return M.initialized||e$(n.Pop,M.location,{initialHydration:!0}),s},subscribe:function(e){return k.add(e),()=>k.delete(e)},enableScrollRestoration:function(e,t,r){if(T=e,A=t,_=r||null,!P&&M.navigation===B){P=!0;let e=ta(M.location,M.matches);null!=e&&eW({restoreScrollPosition:e})}return()=>{T=null,A=null,_=null}},navigate:eF,fetch:function(e,t,n,a){if(b)throw Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");e7(e);let o=!0===(a&&a.flushSync),i=r||S,s=G(M.location,M.matches,R,N.v7_prependBasename,n,N.v7_relativeSplatPath,t,null==a?void 0:a.relative),l=y(i,s,R),c=to(l,i,s);if(c.active&&c.matches&&(l=c.matches),!l){e1(e,t,em(404,{pathname:s}),{flushSync:o});return}let{path:u,submission:d,error:h}=Y(N.v7_normalizeFormMethod,!0,s,a);if(h){e1(e,t,h,{flushSync:o});return}let p=ek(l,u),f=!0===(a&&a.preventScrollReset);if(d&&eE(d.formMethod)){eY(e,t,u,p,l,c.active,o,f,d);return}eI.set(e,{routeId:t,path:u}),eJ(e,t,u,p,l,c.active,o,f,d)},revalidate:function(){if(eZ(),eW({revalidation:"loading"}),"submitting"!==M.navigation.state){if("idle"===M.navigation.state){e$(M.historyAction,M.location,{startUninterruptedRevalidation:!0});return}e$(V||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:!0===Q})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:e2,deleteFetcher:function(e){let t=(eM.get(e)||0)-1;t<=0?(eM.delete(e),eU.add(e),N.v7_fetcherPersist||e4(e)):eM.set(e,t),eW({fetchers:new Map(M.fetchers)})},dispose:function(){j&&j(),et&&et(),k.clear(),u&&u.abort(),M.fetchers.forEach((e,t)=>e4(t)),M.blockers.forEach((e,t)=>e8(t))},getBlocker:function(e,t){let r=M.blockers.get(e)||H;return eB.get(e)!==t&&eB.set(e,t),r},deleteBlocker:e8,patchRoutes:function(e,n){let a=null==r;ee(e,n,r||S,w,t),a&&(S=[...S],eW({}))},_internalFetchControllers:eS,_internalActiveDeferreds:ez,_internalSetRoutes:function(e){r=m(e,t,void 0,w={})}}}function G(e,t,r,n,a,o,i,s){let l,c;if(i){for(let e of(l=[],t))if(l.push(e),e.route.id===i){c=e;break}}else l=t,c=t[t.length-1];let u=T(a||".",k(l,o),x(e.pathname,r)||e.pathname,"path"===s);if(null==a&&(u.search=e.search,u.hash=e.hash),(null==a||""===a||"."===a)&&c){let e=ej(u.search);if(c.route.index&&!e)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&e){let e=new URLSearchParams(u.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();u.search=r?"?"+r:""}}return n&&"/"!==r&&(u.pathname="/"===u.pathname?r:_([r,u.pathname])),h(u)}function Y(e,t,r,n){var a;let o,i;if(!n||!(null!=n&&("formData"in n&&null!=n.formData||"body"in n&&void 0!==n.body)))return{path:r};if(n.formMethod&&(a=n.formMethod,!M.has(a.toLowerCase())))return{path:r,error:em(405,{method:n.formMethod})};let s=()=>({path:r,error:em(400,{type:"invalid-body"})}),c=n.formMethod||"get",u=e?c.toUpperCase():c.toLowerCase(),d=eg(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!eE(u))return s();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:u,formAction:d,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!eE(u))return s();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:u,formAction:d,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return s()}}}if(l("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=el(n.formData),i=n.formData;else if(n.body instanceof FormData)o=el(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=ec(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=ec(o)}catch(e){return s()}let f={formMethod:u,formAction:d,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(eE(f.formMethod))return{path:r,submission:f};let m=p(r);return t&&m.search&&ej(m.search)&&o.append("index",""),m.search="?"+o,{path:h(m),submission:f}}function J(e,t,r){void 0===r&&(r=!1);let n=e.findIndex(e=>e.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function X(e,t,r,n,a,i,s,l,c,u,d,h,p,f,m,g){let v=g?eb(g[1])?g[1].error:g[1].data:void 0,b=e.createURL(t.location),w=e.createURL(a),S=r;i&&t.errors?S=J(r,Object.keys(t.errors)[0],!0):g&&eb(g[1])&&(S=J(r,g[0]));let R=g?g[1].statusCode:void 0,E=s&&R&&R>=400,x=S.filter((e,r)=>{var a,s;let u,d,{route:h}=e;if(h.lazy)return!0;if(null==h.loader)return!1;if(i)return K(h,t.loaderData,t.errors);if(a=t.loaderData,u=!(s=t.matches[r])||e.route.id!==s.route.id,d=void 0===a[e.route.id],u||d||c.some(t=>t===e.route.id))return!0;let p=t.matches[r];return Z(e,o({currentUrl:b,currentParams:p.params,nextUrl:w,nextParams:e.params},n,{actionResult:v,actionStatus:R,defaultShouldRevalidate:!E&&(l||b.pathname+b.search===w.pathname+w.search||b.search!==w.search||Q(p,e))}))}),C=[];return h.forEach((e,a)=>{if(i||!r.some(t=>t.route.id===e.routeId)||d.has(a))return;let s=y(f,e.path,m);if(!s){C.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});return}let c=t.fetchers.get(a),h=ek(s,e.path),g=!1;p.has(a)?g=!1:u.has(a)?(u.delete(a),g=!0):g=c&&"idle"!==c.state&&void 0===c.data?l:Z(h,o({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:v,actionStatus:R,defaultShouldRevalidate:!E&&l})),g&&C.push({key:a,routeId:e.routeId,path:e.path,matches:s,match:h,controller:new AbortController})}),[x,C]}function K(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=null!=t&&void 0!==t[e.id],a=null!=r&&void 0!==r[e.id];return(!!n||!a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!a)}function Q(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Z(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function ee(e,t,r,n,a){var o;let i;if(e){let t=n[e];l(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=r;let s=m(t.filter(e=>!i.some(t=>(function e(t,r){return"id"in t&&"id"in r&&t.id===r.id||t.index===r.index&&t.path===r.path&&t.caseSensitive===r.caseSensitive&&((!t.children||0===t.children.length)&&(!r.children||0===r.children.length)||t.children.every((t,n)=>{var a;return null==(a=r.children)?void 0:a.some(r=>e(t,r))}))})(e,t))),a,[e||"_","patch",String((null==(o=i)?void 0:o.length)||"0")],n);i.push(...s)}async function et(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];l(a,"No route found in manifest");let i={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;c(!t,'Route "'+a.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||f.has(e)||(i[e]=n[e])}Object.assign(a,i),Object.assign(a,o({},t(a),{lazy:void 0}))}async function er(e){let{matches:t}=e,r=t.filter(e=>e.shouldLoad);return(await Promise.all(r.map(e=>e.resolve()))).reduce((e,t,n)=>Object.assign(e,{[r[n].route.id]:t}),{})}async function en(e,t,r,n,i,s,l,c,u,d){let h=s.map(e=>e.route.lazy?et(e.route,u,c):void 0),p=s.map((e,r)=>{let s=h[r],l=i.some(t=>t.route.id===e.route.id),c=async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(l=!0),l?ea(t,n,e,s,r,d):Promise.resolve({type:a.data,result:void 0}));return o({},e,{shouldLoad:l,resolve:c})}),f=await e({matches:p,request:n,params:s[0].params,fetcherKey:l,context:d});try{await Promise.all(h)}catch(e){}return f}async function ea(e,t,r,n,o,i){let s,c;let u=n=>{let a;let s=new Promise((e,t)=>a=t);c=()=>a(),t.signal.addEventListener("abort",c);let l=a=>"function"!=typeof n?Promise.reject(Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+r.route.id+"]")):n({request:t,params:r.params,context:i},...void 0!==a?[a]:[]);return Promise.race([(async()=>{try{let e=await (o?o(e=>l(e)):l());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})(),s])};try{let o=r.route[e];if(n){if(o){let e;let[t]=await Promise.all([u(o).catch(t=>{e=t}),n]);if(void 0!==e)throw e;s=t}else if(await n,o=r.route[e])s=await u(o);else{if("action"!==e)return{type:a.data,result:void 0};let n=new URL(t.url),o=n.pathname+n.search;throw em(405,{method:t.method,pathname:o,routeId:r.route.id})}}else if(o)s=await u(o);else{let e=new URL(t.url),r=e.pathname+e.search;throw em(404,{pathname:r})}l(void 0!==s.result,"You defined "+("action"===e?"an action":"a loader")+" for route "+('"'+r.route.id)+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:a.error,result:e}}finally{c&&t.signal.removeEventListener("abort",c)}return s}async function eo(e){var t,r,n,o,i,s,l,c;let{result:u,type:d}=e;if(eR(u)){let e;try{let t=u.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==u.body?null:await u.json():await u.text()}catch(e){return{type:a.error,error:e}}return d===a.error?{type:a.error,error:new ErrorResponseImpl(u.status,u.statusText,e),statusCode:u.status,headers:u.headers}:{type:a.data,data:e,statusCode:u.status,headers:u.headers}}return d===a.error?eS(u)?u.data instanceof Error?{type:a.error,error:u.data,statusCode:null==(n=u.init)?void 0:n.status,headers:null!=(o=u.init)&&o.headers?new Headers(u.init.headers):void 0}:{type:a.error,error:new ErrorResponseImpl((null==(t=u.init)?void 0:t.status)||500,void 0,u.data),statusCode:D(u)?u.status:void 0,headers:null!=(r=u.init)&&r.headers?new Headers(u.init.headers):void 0}:{type:a.error,error:u,statusCode:D(u)?u.status:void 0}:u&&"object"==typeof u&&"object"==typeof u.data&&"function"==typeof u.subscribe&&"function"==typeof u.cancel&&"function"==typeof u.resolveData?{type:a.deferred,deferredData:u,statusCode:null==(i=u.init)?void 0:i.status,headers:(null==(s=u.init)?void 0:s.headers)&&new Headers(u.init.headers)}:eS(u)?{type:a.data,data:u.data,statusCode:null==(l=u.init)?void 0:l.status,headers:null!=(c=u.init)&&c.headers?new Headers(u.init.headers):void 0}:{type:a.data,data:u}}function ei(e,t,r){if(F.test(e)){let n=new URL(e.startsWith("//")?t.protocol+e:e),a=null!=x(n.pathname,r);if(n.origin===t.origin&&a)return n.pathname+n.search+n.hash}return e}function es(e,t,r,n){let a=e.createURL(eg(t)).toString(),o={signal:r};if(n&&eE(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=el(n.formData):o.body=n.formData}return new Request(a,o)}function el(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function ec(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function eu(e,t,r,n,a,i,s){let c,u,d,h,p,f;let{loaderData:m,errors:y}=(u={},d=null,h=!1,p={},f=n&&eb(n[1])?n[1].error:void 0,t.forEach(e=>{if(!(e.route.id in r))return;let n=e.route.id,a=r[n];if(l(!ew(a),"Cannot handle redirect results in processLoaderData"),eb(a)){let e=a.error;void 0!==f&&(e=f,f=void 0),d=d||{};{let r=ep(t,n);null==d[r.route.id]&&(d[r.route.id]=e)}u[n]=void 0,h||(h=!0,c=D(a.error)?a.error.status:500),a.headers&&(p[n]=a.headers)}else ev(a)?(s.set(n,a.deferredData),u[n]=a.deferredData.data,null==a.statusCode||200===a.statusCode||h||(c=a.statusCode)):(u[n]=a.data,a.statusCode&&200!==a.statusCode&&!h&&(c=a.statusCode)),a.headers&&(p[n]=a.headers)}),void 0!==f&&n&&(d={[n[0]]:f},u[n[0]]=void 0),{loaderData:u,errors:d,statusCode:c||200,loaderHeaders:p});return a.forEach(t=>{let{key:r,match:n,controller:a}=t,s=i[r];if(l(s,"Did not find corresponding fetcher result"),!a||!a.signal.aborted){if(eb(s)){let t=ep(e.matches,null==n?void 0:n.route.id);y&&y[t.route.id]||(y=o({},y,{[t.route.id]:s.error})),e.fetchers.delete(r)}else if(ew(s))l(!1,"Unhandled fetcher revalidation redirect");else if(ev(s))l(!1,"Unhandled fetcher deferred data");else{let t=eP(s.data);e.fetchers.set(r,t)}}}),{loaderData:m,errors:y}}function ed(e,t,r,n){let a=o({},t);for(let o of r){let r=o.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(a[r]=t[r]):void 0!==e[r]&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function eh(e){return e?eb(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ep(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function ef(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function em(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=void 0===t?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(s="Bad Request",a&&r&&n?l="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?l="defer() is not supported in actions":"invalid-body"===o&&(l="Unable to encode submission body")):403===e?(s="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):404===e?(s="Not Found",l='No route matches URL "'+r+'"'):405===e&&(s="Method Not Allowed",a&&r&&n?l="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new ErrorResponseImpl(e||500,s,Error(l),!0)}function ey(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(ew(n))return{key:r,result:n}}}function eg(e){let t="string"==typeof e?p(e):e;return h(o({},t,{hash:""}))}function ev(e){return e.type===a.deferred}function eb(e){return e.type===a.error}function ew(e){return(e&&e.type)===a.redirect}function eS(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function eR(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function eE(e){return I.has(e.toLowerCase())}async function ex(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i(null==e?void 0:e.route.id)===s);if(!c)continue;let u=n.find(e=>e.route.id===c.route.id),d=null!=u&&!Q(u,c)&&(a&&a[c.route.id])!==void 0;ev(l)&&d&&await eN(l,r,!1).then(e=>{e&&(t[s]=e)})}}async function eC(e,t,r){for(let n=0;n(null==e?void 0:e.route.id)===o)&&ev(s)&&(l(i,"Expected an AbortController for revalidating fetcher deferred result"),await eN(s,i.signal,!0).then(e=>{e&&(t[a]=e)}))}}async function eN(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:a.data,data:e.deferredData.unwrappedData}}catch(e){return{type:a.error,error:e}}return{type:a.data,data:e.deferredData.data}}}function ej(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function ek(e,t){let r="string"==typeof t?p(t).search:t.search;if(e[e.length-1].route.index&&ej(r||""))return e[e.length-1];let n=j(e);return n[n.length-1]}function eT(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n){if(null!=a)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(void 0!==i)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function e_(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function eA(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function eP(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}Symbol("deferred")},43581:(e,t,r)=>{r.d(t,{A:()=>i,T:()=>o});var n=r(49236),a={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};a.bgImage=a.backgroundImage,a.bgSize=a.backgroundSize,a.bgPosition=a.backgroundPosition,a.bgRepeat=a.backgroundRepeat;var o=(0,n.qU)(a);let i=o},84995:(e,t,r)=>{r.d(t,{A:()=>i,P:()=>o});var n=r(49236),a={border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderRadius:{property:"borderRadius",scale:"radii"},borderTop:{property:"borderTop",scale:"borders"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"}};a.borderTopWidth={property:"borderTopWidth",scale:"borderWidths"},a.borderTopColor={property:"borderTopColor",scale:"colors"},a.borderTopStyle={property:"borderTopStyle",scale:"borderStyles"},a.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"},a.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"},a.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"},a.borderBottomColor={property:"borderBottomColor",scale:"colors"},a.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"},a.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"},a.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"},a.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"},a.borderLeftColor={property:"borderLeftColor",scale:"colors"},a.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"},a.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"},a.borderRightColor={property:"borderRightColor",scale:"colors"},a.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var o=(0,n.qU)(a);let i=o},77638:(e,t,r)=>{r.d(t,{A:()=>i,y:()=>o});var n=r(49236),a={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};a.bg=a.backgroundColor;var o=(0,n.qU)(a);let i=o},49236:(e,t,r)=>{r.d(t,{Cp:()=>d,Jt:()=>u,Zz:()=>y,oK:()=>f,qU:()=>m});var n=r(45228),a=r.n(n),o=function(e,t){var r,n=a()({},e,t);for(var o in e)e[o]&&"object"==typeof t[o]&&a()(n,((r={})[o]=a()(e[o],t[o]),r));return n},i=function(e){var t={};return Object.keys(e).sort(function(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})}).forEach(function(r){t[r]=e[r]}),t},s={breakpoints:[40,52,64].map(function(e){return e+"em"})},l=function(e){return"@media screen and (min-width: "+e+")"},c=function(e,t){return u(t,e,e)},u=function(e,t,r,n,a){for(n=0,t=t&&t.split?t.split("."):[t];n1&&c.forEach(function(r){var a;n[r]=e(((a={})[r]=t[r],a))}),n},h=function(e,t,r,n,o){var i={};return n.slice(0,e.length).forEach(function(n,s){var l,c=e[s],u=t(n,r,o);c?a()(i,((l={})[c]=a()({},i[c],u),l)):a()(i,u)}),i},p=function(e,t,r,n,o){var i={};for(var s in n){var c=e[s],u=t(n[s],r,o);if(c){var d,h=l(c);a()(i,((d={})[h]=a()({},i[h],u),d))}else a()(i,u)}return i},f=function(e){var t=e.properties,r=e.property,n=e.scale,a=e.transform,o=void 0===a?c:a,i=e.defaultScale;t=t||[r];var s=function(e,r,n){var a={},i=o(e,r,n);if(null!==i)return t.forEach(function(e){a[e]=i}),a};return s.scale=n,s.defaults=i,s},m=function(e){void 0===e&&(e={});var t={};return Object.keys(e).forEach(function(r){var n=e[r];if(!0===n){t[r]=f({property:r,scale:r});return}if("function"==typeof n){t[r]=n;return}t[r]=f(n)}),d(t)},y=function(){for(var e={},t=arguments.length,r=Array(t),n=0;n{function n(){return(n=Object.assign||function(e){for(var t=1;th});var a=function(e,t,r,n,a){for(n=0,t=t&&t.split?t.split("."):[t];n=0)return a(e,t,t);var r=Math.abs(t),n=a(e,r,r);return"string"==typeof n?"-"+n:-1*n},d=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce(function(e,t){var r;return n({},e,((r={})[t]=u,r))},{});let h=function e(t){return function(r){void 0===r&&(r={});var u,h=n({},i,{},r.theme||r),p={},f=(u="function"==typeof t?t(h):t,function(e){var t={},r=[null].concat(a(e,"breakpoints",o).map(function(e){return"@media screen and (min-width: "+e+")"}));for(var n in u){var i="function"==typeof u[n]?u[n](e):u[n];if(null!=i){if(!Array.isArray(i)){t[n]=i;continue}for(var s=0;s{r.d(t,{A:()=>a,p:()=>n});var n=(0,r(49236).qU)({alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0});let a=n},96069:(e,t,r)=>{r.d(t,{A:()=>s,V:()=>i});var n=r(49236),a={space:[0,4,8,16,32,64,128,256,512]},o={gridGap:{property:"gridGap",scale:"space",defaultScale:a.space},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:a.space},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:a.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},i=(0,n.qU)(o);let s=i},75447:(e,t,r)=>{r.d(t,{A:()=>o,Z:()=>a});var n=r(49236),a=(0,n.qU)({width:{property:"width",scale:"sizes",transform:function(e,t){return(0,n.Jt)(t,e,!("number"==typeof e&&!isNaN(e))||e>1?e:100*e+"%")}},height:{property:"height",scale:"sizes"},minWidth:{property:"minWidth",scale:"sizes"},minHeight:{property:"minHeight",scale:"sizes"},maxWidth:{property:"maxWidth",scale:"sizes"},maxHeight:{property:"maxHeight",scale:"sizes"},size:{properties:["width","height"],scale:"sizes"},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0});let o=a},59756:(e,t,r)=>{r.d(t,{A:()=>s,G:()=>i});var n=r(49236),a={space:[0,4,8,16,32,64,128,256,512]},o={position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:a.space},right:{property:"right",scale:"space",defaultScale:a.space},bottom:{property:"bottom",scale:"space",defaultScale:a.space},left:{property:"left",scale:"space",defaultScale:a.space}},i=(0,n.qU)(o);let s=i},83317:(e,t,r)=>{r.d(t,{c:()=>o});var n=r(57304),a=RegExp("^("+(0,n.Zz)(n.xe,n.Il,n.yW,n.Zp,n.pn,n.PQ,n.Tp,n.G1,n.Vg,n.r7,n.i9,n.XC,n.NW).propNames.join("|")+")$"),o=function(e){var t={};for(var r in e)a.test(r)||(t[r]=e[r]);return t}},42049:(e,t,r)=>{r.d(t,{r:()=>n});var n=(0,r(49236).qU)({boxShadow:{property:"boxShadow",scale:"shadows"},textShadow:{property:"textShadow",scale:"shadows"}})},89165:(e,t,r)=>{r.d(t,{xe:()=>u});var n=r(49236),a={space:[0,4,8,16,32,64,128,256,512]},o=function(e){return"number"==typeof e&&!isNaN(e)},i=function(e,t){if(!o(e))return(0,n.Jt)(t,e,e);var r=e<0,a=Math.abs(e),i=(0,n.Jt)(t,a,a);return o(i)?i*(r?-1:1):r?"-"+i:i},s={};s.margin={margin:{property:"margin",scale:"space",transform:i,defaultScale:a.space},marginTop:{property:"marginTop",scale:"space",transform:i,defaultScale:a.space},marginRight:{property:"marginRight",scale:"space",transform:i,defaultScale:a.space},marginBottom:{property:"marginBottom",scale:"space",transform:i,defaultScale:a.space},marginLeft:{property:"marginLeft",scale:"space",transform:i,defaultScale:a.space},marginX:{properties:["marginLeft","marginRight"],scale:"space",transform:i,defaultScale:a.space},marginY:{properties:["marginTop","marginBottom"],scale:"space",transform:i,defaultScale:a.space}},s.margin.m=s.margin.margin,s.margin.mt=s.margin.marginTop,s.margin.mr=s.margin.marginRight,s.margin.mb=s.margin.marginBottom,s.margin.ml=s.margin.marginLeft,s.margin.mx=s.margin.marginX,s.margin.my=s.margin.marginY,s.padding={padding:{property:"padding",scale:"space",defaultScale:a.space},paddingTop:{property:"paddingTop",scale:"space",defaultScale:a.space},paddingRight:{property:"paddingRight",scale:"space",defaultScale:a.space},paddingBottom:{property:"paddingBottom",scale:"space",defaultScale:a.space},paddingLeft:{property:"paddingLeft",scale:"space",defaultScale:a.space},paddingX:{properties:["paddingLeft","paddingRight"],scale:"space",defaultScale:a.space},paddingY:{properties:["paddingTop","paddingBottom"],scale:"space",defaultScale:a.space}},s.padding.p=s.padding.padding,s.padding.pt=s.padding.paddingTop,s.padding.pr=s.padding.paddingRight,s.padding.pb=s.padding.paddingBottom,s.padding.pl=s.padding.paddingLeft,s.padding.px=s.padding.paddingX,s.padding.py=s.padding.paddingY;var l=(0,n.qU)(s.margin),c=(0,n.qU)(s.padding),u=(0,n.Zz)(l,c)},57227:(e,t,r)=>{r.d(t,{y:()=>a});var n=r(49236),a=function(e,t){return void 0===t&&(t=null),function(r){return(0,n.Jt)(r.theme,e,t)}}},3962:(e,t,r)=>{r.d(t,{A:()=>a,I:()=>n});var n=(0,r(49236).qU)({fontFamily:{property:"fontFamily",scale:"fonts"},fontSize:{property:"fontSize",scale:"fontSizes",defaultScale:[12,14,16,20,24,32,48,64,72]},fontWeight:{property:"fontWeight",scale:"fontWeights"},lineHeight:{property:"lineHeight",scale:"lineHeights"},letterSpacing:{property:"letterSpacing",scale:"letterSpacings"},textAlign:!0,fontStyle:!0});let a=n},38144:(e,t,r)=>{r.d(t,{NW:()=>l,Ox:()=>o,XC:()=>s,i9:()=>i});var n=r(49236),a=r(50402),o=function(e){var t,r,o=e.scale,i=e.prop,s=e.variants,l=void 0===s?{}:s,c=e.key;(r=Object.keys(l).length?function(e,t,r){return(0,a.Ay)((0,n.Jt)(t,e,null))(r.theme)}:function(e,t){return(0,n.Jt)(t,e,null)}).scale=o||c,r.defaults=l;var u=((t={})[void 0===i?"variant":i]=r,t);return(0,n.Cp)(u)},i=o({key:"buttons"}),s=o({key:"textStyles",prop:"textStyle"}),l=o({key:"colorStyles",prop:"colors"})},84976:(e,t,r)=>{r.d(t,{Gy:()=>_,K:()=>D,N_:()=>N,OA:()=>k,PI:()=>p,Ys:()=>y,k2:()=>j,ok:()=>A,pg:()=>R});var n,a,o,i,s=r(96540),l=r(40961),c=r(47767),u=r(45588);/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[r]=e[r]);return a}function p(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}let f=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],m=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"];try{window.__reactRouterVersion="6"}catch(e){}function y(e,t){var r;let n;return(0,u.aE)({basename:null==t?void 0:t.basename,future:d({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,u.zR)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||((n=null==(r=window)?void 0:r.__staticRouterHydrationData)&&n.errors&&(n=d({},n,{errors:function(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new u.VV(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}(n.errors)})),n),routes:e,mapRouteProperties:c.wE,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}let g=s.createContext({isTransitioning:!1}),v=s.createContext(new Map),b=(n||(n=r.t(s,2))).startTransition,w=(a||(a=r.t(l,2))).flushSync;function S(e){w?w(e):e()}(n||(n=r.t(s,2))).useId;let Deferred=class Deferred{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}};function R(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=s.useState(r.state),[i,l]=s.useState(),[u,d]=s.useState({isTransitioning:!1}),[h,p]=s.useState(),[f,m]=s.useState(),[y,w]=s.useState(),R=s.useRef(new Map),{v7_startTransition:x}=n||{},C=s.useCallback(e=>{x&&b?b(e):e()},[x]),N=s.useCallback((e,t)=>{let{deletedFetchers:n,flushSync:a,viewTransitionOpts:i}=t;e.fetchers.forEach((e,t)=>{void 0!==e.data&&R.current.set(t,e.data)}),n.forEach(e=>R.current.delete(e));let s=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(!i||s){a?S(()=>o(e)):C(()=>o(e));return}if(a){S(()=>{f&&(h&&h.resolve(),f.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=r.window.document.startViewTransition(()=>{S(()=>o(e))});t.finished.finally(()=>{S(()=>{p(void 0),m(void 0),l(void 0),d({isTransitioning:!1})})}),S(()=>m(t));return}f?(h&&h.resolve(),f.skipTransition(),w({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(l(e),d({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))},[r.window,f,h,R,C]);s.useLayoutEffect(()=>r.subscribe(N),[r,N]),s.useEffect(()=>{u.isTransitioning&&!u.flushSync&&p(new Deferred)},[u]),s.useEffect(()=>{if(h&&i&&r.window){let e=h.promise,t=r.window.document.startViewTransition(async()=>{C(()=>o(i)),await e});t.finished.finally(()=>{p(void 0),m(void 0),l(void 0),d({isTransitioning:!1})}),m(t)}},[C,i,h,r.window]),s.useEffect(()=>{h&&i&&a.location.key===i.location.key&&h.resolve()},[h,f,a.location,i]),s.useEffect(()=>{!u.isTransitioning&&y&&(l(y.state),d({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),w(void 0))},[u.isTransitioning,y]),s.useEffect(()=>{},[]);let j=s.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),k=r.basename||"/",T=s.useMemo(()=>({router:r,navigator:j,static:!1,basename:k}),[r,j,k]),_=s.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return s.useEffect(()=>(0,c.V8)(n,r.future),[n,r.future]),s.createElement(s.Fragment,null,s.createElement(c.sp.Provider,{value:T},s.createElement(c.Rq.Provider,{value:a},s.createElement(v.Provider,{value:R.current},s.createElement(g.Provider,{value:u},s.createElement(c.Ix,{basename:k,location:a.location,navigationType:a.historyAction,navigator:j,future:_},a.initialized||r.future.v7_partialHydration?s.createElement(E,{routes:r.routes,future:r.future,state:a}):t))))),null)}let E=s.memo(function(e){let{routes:t,future:r,state:n}=e;return(0,c.ph)(t,void 0,n,r)}),x="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,C=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,N=s.forwardRef(function(e,t){let r,{onClick:n,relative:a,reloadDocument:o,replace:i,state:l,target:p,to:m,preventScrollReset:y,viewTransition:g}=e,v=h(e,f),{basename:b}=s.useContext(c.jb),w=!1;if("string"==typeof m&&C.test(m)&&(r=m,x))try{let e=new URL(window.location.href),t=new URL(m.startsWith("//")?e.protocol+m:m),r=(0,u.pb)(t.pathname,b);t.origin===e.origin&&null!=r?m=r+t.search+t.hash:w=!0}catch(e){}let S=(0,c.$P)(m,{relative:a}),R=_(m,{replace:i,state:l,target:p,preventScrollReset:y,relative:a,viewTransition:g});return s.createElement("a",d({},v,{href:r||S,onClick:w||o?n:function(e){n&&n(e),e.defaultPrevented||R(e)},ref:t,target:p}))}),j=s.forwardRef(function(e,t){let r,{"aria-current":n="page",caseSensitive:a=!1,className:i="",end:l=!1,style:p,to:f,viewTransition:y,children:v}=e,b=h(e,m),w=(0,c.x$)(f,{relative:b.relative}),S=(0,c.zy)(),R=s.useContext(c.Rq),{navigator:E,basename:x}=s.useContext(c.jb),C=null!=R&&function(e,t){void 0===t&&(t={});let r=s.useContext(g);null!=r||(0,u.Oi)(!1);let{basename:n}=T(o.useViewTransitionState),a=(0,c.x$)(e,{relative:t.relative});if(!r.isTransitioning)return!1;let i=(0,u.pb)(r.currentLocation.pathname,n)||r.currentLocation.pathname,l=(0,u.pb)(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=(0,u.B6)(a.pathname,l)||null!=(0,u.B6)(a.pathname,i)}(w)&&!0===y,j=E.encodeLocation?E.encodeLocation(w).pathname:w.pathname,k=S.pathname,_=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;a||(k=k.toLowerCase(),_=_?_.toLowerCase():null,j=j.toLowerCase()),_&&x&&(_=(0,u.pb)(_,x)||_);let A="/"!==j&&j.endsWith("/")?j.length-1:j.length,P=k===j||!l&&k.startsWith(j)&&"/"===k.charAt(A),L=null!=_&&(_===j||!l&&_.startsWith(j)&&"/"===_.charAt(j.length)),D={isActive:P,isPending:L,isTransitioning:C},O=P?n:void 0;r="function"==typeof i?i(D):[i,P?"active":null,L?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let I="function"==typeof p?p(D):p;return s.createElement(N,d({},b,{"aria-current":O,className:r,ref:t,style:I,to:f,viewTransition:y}),"function"==typeof v?v(D):v)});function k(e){let{getKey:t,storageKey:r}=e;return function(e){var t;let r;let{getKey:n,storageKey:a}=void 0===e?{}:e,{router:l}=T(o.UseScrollRestoration),{restoreScrollPosition:h,preventScrollReset:p}=(t=i.UseScrollRestoration,(r=s.useContext(c.Rq))||(0,u.Oi)(!1),r),{basename:f}=s.useContext(c.jb),m=(0,c.zy)(),y=(0,c.FE)(),g=(0,c.cq)();s.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e,t){let{capture:r}={};s.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}},[e,r])}(s.useCallback(()=>{"idle"===g.state&&(L[(n?n(m,y):null)||m.key]=window.scrollY);try{sessionStorage.setItem(a||P,JSON.stringify(L))}catch(e){}window.history.scrollRestoration="auto"},[a,n,g.state,m,y])),"undefined"!=typeof document&&(s.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(a||P);e&&(L=JSON.parse(e))}catch(e){}},[a]),s.useLayoutEffect(()=>{let e=n&&"/"!==f?(e,t)=>n(d({},e,{pathname:(0,u.pb)(e.pathname,f)||e.pathname}),t):n,t=null==l?void 0:l.enableScrollRestoration(L,()=>window.scrollY,e);return()=>t&&t()},[l,f,n]),s.useLayoutEffect(()=>{if(!1!==h){if("number"==typeof h){window.scrollTo(0,h);return}if(m.hash){let e=document.getElementById(decodeURIComponent(m.hash.slice(1)));if(e){e.scrollIntoView();return}}!0!==p&&window.scrollTo(0,0)}},[m,h,p]))}({getKey:t,storageKey:r}),null}function T(e){let t=s.useContext(c.sp);return t||(0,u.Oi)(!1),t}function _(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:l}=void 0===t?{}:t,d=(0,c.Zp)(),h=(0,c.zy)(),p=(0,c.x$)(e,{relative:i});return s.useCallback(t=>{0!==t.button||r&&"_self"!==r||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),d(e,{replace:void 0!==n?n:(0,u.AO)(h)===(0,u.AO)(p),state:a,preventScrollReset:o,relative:i,viewTransition:l}))},[h,d,p,n,a,r,e,o,i,l])}function A(e){let t=s.useRef(p(e)),r=s.useRef(!1),n=(0,c.zy)(),a=s.useMemo(()=>{var e,a;let o;return e=n.search,a=r.current?null:t.current,o=p(e),a&&a.forEach((e,t)=>{o.has(t)||a.getAll(t).forEach(e=>{o.append(t,e)})}),o},[n.search]),o=(0,c.Zp)(),i=s.useCallback((e,t)=>{let n=p("function"==typeof e?e(a):e);r.current=!0,o("?"+n,t)},[o,a]);return[a,i]}!function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"}(o||(o={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(i||(i={}));let P="react-router-scroll-positions",L={};function D(e,t){let{capture:r}=t||{};s.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,r])}},47767:(e,t,r)=>{r.d(t,{$P:()=>p,BV:()=>V,C5:()=>H,Ew:()=>O,FE:()=>L,Ix:()=>q,KP:()=>U,LG:()=>D,RQ:()=>g,Rq:()=>l,V8:()=>W,Ye:()=>E,Zp:()=>b,cq:()=>P,g:()=>S,jb:()=>c,ph:()=>x,qh:()=>$,r5:()=>I,sp:()=>s,sv:()=>F,wE:()=>Y,wQ:()=>y,x$:()=>R,zy:()=>m});var n,a=r(96540),o=r(45588);/** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t(0,o.B6)(e,(0,o.RO)(t)),[t,e])}function v(e){a.useContext(c).static||a.useLayoutEffect(e)}function b(){let{isDataRoute:e}=a.useContext(d);return e?function(){let{router:e}=T(j.UseNavigateStable),t=A(k.UseNavigateStable),r=a.useRef(!1);return v(()=>{r.current=!0}),a.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,i({fromRouteId:t},a)))},[e,t])}():function(){f()||(0,o.Oi)(!1);let e=a.useContext(s),{basename:t,future:r,navigator:n}=a.useContext(c),{matches:i}=a.useContext(d),{pathname:l}=m(),u=JSON.stringify((0,o.yD)(i,r.v7_relativeSplatPath)),h=a.useRef(!1);return v(()=>{h.current=!0}),a.useCallback(function(r,a){if(void 0===a&&(a={}),!h.current)return;if("number"==typeof r){n.go(r);return}let i=(0,o.Gh)(r,JSON.parse(u),l,"path"===a.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:(0,o.HS)([t,i.pathname])),(a.replace?n.replace:n.push)(i,a.state,a)},[t,n,u,l,e])}()}let w=a.createContext(null);function S(){let{matches:e}=a.useContext(d),t=e[e.length-1];return t?t.params:{}}function R(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=a.useContext(c),{matches:i}=a.useContext(d),{pathname:s}=m(),l=JSON.stringify((0,o.yD)(i,n.v7_relativeSplatPath));return a.useMemo(()=>(0,o.Gh)(e,JSON.parse(l),s,"path"===r),[e,l,s,r])}function E(e,t){return x(e,t)}function x(e,t,r,n){let s;f()||(0,o.Oi)(!1);let{navigator:l}=a.useContext(c),{matches:h}=a.useContext(d),p=h[h.length-1],y=p?p.params:{};p&&p.pathname;let g=p?p.pathnameBase:"/";p&&p.route;let v=m();if(t){var b;let e="string"==typeof t?(0,o.Rr)(t):t;"/"===g||(null==(b=e.pathname)?void 0:b.startsWith(g))||(0,o.Oi)(!1),s=e}else s=v;let w=s.pathname||"/",S=w;if("/"!==g){let e=g.replace(/^\//,"").split("/");S="/"+w.replace(/^\//,"").split("/").slice(e.length).join("/")}let R=(0,o.ue)(e,{pathname:S}),E=function(e,t,r,n){var i,s;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(null==(s=n)||!s.v7_partialHydration||0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let l=e,c=null==(i=r)?void 0:i.errors;if(null!=c){let e=l.findIndex(e=>e.route.id&&(null==c?void 0:c[e.route.id])!==void 0);e>=0||(0,o.Oi)(!1),l=l.slice(0,Math.min(l.length,e+1))}let u=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e=0?l.slice(0,d+1):[l[0]];break}}}return l.reduceRight((e,n,o)=>{var i;let s;let h=!1,p=null,f=null;r&&(s=c&&n.route.id?c[n.route.id]:void 0,p=n.route.errorElement||C,u&&(d<0&&0===o?(z[i="route-fallback"]||(z[i]=!0),h=!0,f=null):d===o&&(h=!0,f=n.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,o+1)),y=()=>{let t;return t=s?p:h?f:n.route.Component?a.createElement(n.route.Component,null):n.route.element?n.route.element:e,a.createElement(N,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===o)?a.createElement(RenderErrorBoundary,{location:r.location,revalidation:r.revalidation,component:p,error:s,children:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):y()},null)}(R&&R.map(e=>Object.assign({},e,{params:Object.assign({},y,e.params),pathname:(0,o.HS)([g,l.encodeLocation?l.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?g:(0,o.HS)([g,l.encodeLocation?l.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),h,r,n);return t&&E?a.createElement(u.Provider,{value:{location:i({pathname:"/",search:"",hash:"",state:null,key:"default"},s),navigationType:o.rc.Pop}},E):E}let C=a.createElement(function(){let e=I(),t=(0,o.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),r?a.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},r):null,null)},null);let RenderErrorBoundary=class RenderErrorBoundary extends a.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?a.createElement(d.Provider,{value:this.props.routeContext},a.createElement(h.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function N(e){let{routeContext:t,match:r,children:n}=e,o=a.useContext(s);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),a.createElement(d.Provider,{value:t},n)}var j=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(j||{}),k=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}(k||{});function T(e){let t=a.useContext(s);return t||(0,o.Oi)(!1),t}function _(e){let t=a.useContext(l);return t||(0,o.Oi)(!1),t}function A(e){let t;let r=((t=a.useContext(d))||(0,o.Oi)(!1),t),n=r.matches[r.matches.length-1];return n.route.id||(0,o.Oi)(!1),n.route.id}function P(){return _(k.UseNavigation).navigation}function L(){let{matches:e,loaderData:t}=_(k.UseMatches);return a.useMemo(()=>e.map(e=>(0,o.ro)(e,t)),[e,t])}function D(){let e=_(k.UseLoaderData),t=A(k.UseLoaderData);if(e.errors&&null!=e.errors[t]){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function O(e){return _(k.UseRouteLoaderData).loaderData[e]}function I(){var e;let t=a.useContext(h),r=_(k.UseRouteError),n=A(k.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}let M=0;function U(e){let{router:t,basename:r}=T(j.UseBlocker),n=_(k.UseBlocker),[s,l]=a.useState(""),c=a.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:s}=t;return e({currentLocation:i({},n,{pathname:(0,o.pb)(n.pathname,r)||n.pathname}),nextLocation:i({},a,{pathname:(0,o.pb)(a.pathname,r)||a.pathname}),historyAction:s})},[r,e]);return a.useEffect(()=>{let e=String(++M);return l(e),()=>t.deleteBlocker(e)},[t]),a.useEffect(()=>{""!==s&&t.getBlocker(s,c)},[t,s,c]),s&&n.blockers.has(s)?n.blockers.get(s):o.G3}let z={},B=(e,t,r)=>{};function W(e,t){(null==e?void 0:e.v7_startTransition)===void 0&&B("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(null==e?void 0:e.v7_relativeSplatPath)!==void 0||t&&void 0!==t.v7_relativeSplatPath||B("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(void 0===t.v7_fetcherPersist&&B("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),void 0===t.v7_normalizeFormMethod&&B("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),void 0===t.v7_partialHydration&&B("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),void 0===t.v7_skipActionErrorRevalidation&&B("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function H(e){let{to:t,replace:r,state:n,relative:i}=e;f()||(0,o.Oi)(!1);let{future:s,static:l}=a.useContext(c),{matches:u}=a.useContext(d),{pathname:h}=m(),p=b(),y=JSON.stringify((0,o.Gh)(t,(0,o.yD)(u,s.v7_relativeSplatPath),h,"path"===i));return a.useEffect(()=>p(JSON.parse(y),{replace:r,state:n,relative:i}),[p,y,i,r,n]),null}function F(e){var t;let r;return t=e.context,(r=a.useContext(d).outlet)?a.createElement(w.Provider,{value:t},r):r}function $(e){(0,o.Oi)(!1)}function q(e){let{basename:t="/",children:r=null,location:n,navigationType:s=o.rc.Pop,navigator:l,static:d=!1,future:h}=e;f()&&(0,o.Oi)(!1);let p=t.replace(/^\/*/,"/"),m=a.useMemo(()=>({basename:p,navigator:l,static:d,future:i({v7_relativeSplatPath:!1},h)}),[p,h,l,d]);"string"==typeof n&&(n=(0,o.Rr)(n));let{pathname:y="/",search:g="",hash:v="",state:b=null,key:w="default"}=n,S=a.useMemo(()=>{let e=(0,o.pb)(y,p);return null==e?null:{location:{pathname:e,search:g,hash:v,state:b,key:w},navigationType:s}},[p,y,g,v,b,w,s]);return null==S?null:a.createElement(c.Provider,{value:m},a.createElement(u.Provider,{children:r,value:S}))}function V(e){let{children:t,location:r}=e;return x(function e(t,r){void 0===r&&(r=[]);let n=[];return a.Children.forEach(t,(t,i)=>{if(!a.isValidElement(t))return;let s=[...r,i];if(t.type===a.Fragment){n.push.apply(n,e(t.props.children,s));return}t.type!==$&&(0,o.Oi)(!1),t.props.index&&t.props.children&&(0,o.Oi)(!1);let l={id:t.props.id||s.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(l.children=e(t.props.children,s)),n.push(l)}),n}(t),r)}(n||(n=r.t(a,2))).startTransition;var G=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(G||{});function Y(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:a.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:a.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:a.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}new Promise(()=>{}),a.Component},38267:(e,t,r)=>{r.d(t,{AH:()=>em,Ay:()=>e_,DU:()=>ek,Dx:()=>eE,NP:()=>ex,i7:()=>eT});var n=r(44363),a=r(96540),o=r(2833),i=r.n(o),s=r(8887),l=r(17103),c=r(15455),u=r(4146),d=r.n(u);function h(){return(h=Object.assign||function(e){for(var t=1;t1?t-1:0),n=1;n0?" Args: "+r.join(", "):""))}var x=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,a=n;e>=a;)(a<<=1)<0&&E(16,""+e);this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var o=n;o=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),a=n+r,o=n;o=j&&(j=t+1),C.set(e,t),N.set(t,e)},_="style["+w+'][data-styled-version="5.3.11"]',A=RegExp("^"+w+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),P=function(e,t,r){for(var n,a=r.split(","),o=0,i=a.length;o=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(w))return n}}(r),o=void 0!==a?a.nextSibling:null;n.setAttribute(w,"active"),n.setAttribute("data-styled-version","5.3.11");var i=D();return i&&n.setAttribute("nonce",i),r.insertBefore(n,o),n},I=function(){function e(e){var t=this.element=O(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(u+=e+",")}),n+=""+l+c+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),H=/(a)(d)/gi,F=function(e){return String.fromCharCode(e+(e>25?39:97))};function $(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=F(t%52)+r;return(F(t%52)+r).replace(H,"$1-$2")}var q=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},V=function(e){return q(5381,e)};function G(e){for(var t=0;t>>0);if(!t.hasNameForId(n,i)){var s=r(o,"."+i,void 0,n);t.insertRules(n,i,s)}a.push(i),this.staticRulesId=i}}else{for(var l=this.rules.length,c=q(this.baseHash,r.hash),u="",d=0;d>>0);if(!t.hasNameForId(n,m)){var y=r(u,"."+m,void 0,n);t.insertRules(n,m,y)}a.push(m)}}return a.join(" ")},e}(),X=/^\s*\/\/.*$/gm,K=[":","[",".","#"];function Q(e){var t,r,n,a,o=void 0===e?y:e,i=o.options,l=void 0===i?y:i,c=o.plugins,u=void 0===c?m:c,d=new s.A(l),h=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,a,o,i,s,l,c,u,d){switch(r){case 1:if(0===u&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(a[0]+n),"";default:return n+(0===d?"/*|*/":"")}case -2:n.split("/*|*/}").forEach(t)}}}(function(e){h.push(e)}),f=function(e,n,o){return 0===n&&-1!==K.indexOf(o[r.length])||o.match(a)?e:"."+t};function g(e,o,i,s){void 0===s&&(s="&");var l=e.replace(X,""),c=o&&i?i+" "+o+" { "+l+" }":l;return t=s,n=RegExp("\\"+(r=o)+"\\b","g"),a=RegExp("(\\"+r+"\\b){2,}"),d(i||!o?"":o,c)}return d.use([].concat(u,[function(e,t,a){2===e&&a.length&&a[0].lastIndexOf(r)>0&&(a[0]=a[0].replace(n,f))},p,function(e){if(-2===e){var t=h;return h=[],t}}])),g.hash=u.length?u.reduce(function(e,t){return t.name||E(15),q(e,t.name)},5381).toString():"",g}var Z=a.createContext(),ee=(Z.Consumer,a.createContext()),et=(ee.Consumer,new W),er=Q();function en(){return(0,a.useContext)(Z)||et}function ea(){return(0,a.useContext)(ee)||er}function eo(e){var t=(0,a.useState)(e.stylisPlugins),r=t[0],n=t[1],o=en(),s=(0,a.useMemo)(function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target]),l=(0,a.useMemo)(function(){return Q({options:{prefix:!e.disableVendorPrefixes},plugins:r})},[e.disableVendorPrefixes,r]);return(0,a.useEffect)(function(){i()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]),a.createElement(Z.Provider,{value:s},a.createElement(ee.Provider,{value:l},e.children))}var ei=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=er);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return E(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=er),this.name+e.hash},e}(),es=/([A-Z])/,el=/([A-Z])/g,ec=/^ms-/,eu=function(e){return"-"+e.toLowerCase()};function ed(e){return es.test(e)?e.replace(el,eu).replace(ec,"-ms-"):e}var eh=function(e){return null==e||!1===e||""===e};function ep(e,t,r,n){if(Array.isArray(e)){for(var a,o=[],i=0,s=e.length;i1?t-1:0),n=1;n?@[\\\]^`{|}~-]+/g,ev=/(^-|-$)/g;function eb(e){return e.replace(eg,"-").replace(ev,"")}var ew=function(e){return $(V(e)>>>0)};function eS(e){return"string"==typeof e}var eR=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},eE=a.createContext();function ex(e){var t=(0,a.useContext)(eE),r=(0,a.useMemo)(function(){var r;return(r=e.theme)?g(r)?r(t):Array.isArray(r)||"object"!=typeof r?E(8):t?h({},t,{},r):r:E(14)},[e.theme,t]);return e.children?a.createElement(eE.Provider,{value:r},e.children):null}eE.Consumer;var eC={},eN=function(e){return function e(t,r,a){if(void 0===a&&(a=y),!(0,n.isValidElementType)(r))return E(1,String(r));var o=function(){return t(r,a,em.apply(void 0,arguments))};return o.withConfig=function(n){return e(t,r,h({},a,{},n))},o.attrs=function(n){return e(t,r,h({},a,{attrs:Array.prototype.concat(a.attrs,n).filter(Boolean)}))},o}(function e(t,r,n){var o=b(t),i=!eS(t),s=r.attrs,l=void 0===s?m:s,u=r.componentId,p=void 0===u?(x=r.displayName,C=r.parentComponentId,eC[N="string"!=typeof x?"sc":eb(x)]=(eC[N]||0)+1,j=N+"-"+ew("5.3.11"+N+eC[N]),C?C+"-"+j:j):u,f=r.displayName,w=void 0===f?eS(t)?"styled."+t:"Styled("+v(t)+")":f,S=r.displayName&&r.componentId?eb(r.displayName)+"-"+r.componentId:r.componentId||p,R=o&&t.attrs?Array.prototype.concat(t.attrs,l).filter(Boolean):l,E=r.shouldForwardProp;o&&t.shouldForwardProp&&(E=r.shouldForwardProp?function(e,n,a){return t.shouldForwardProp(e,n,a)&&r.shouldForwardProp(e,n,a)}:t.shouldForwardProp);var x,C,N,j,k,T=new J(n,S,o?t.componentStyle:void 0),_=T.isStatic&&0===l.length,A=function(e,t){return function(e,t,r,n){var o,i,s,l,u,d=e.attrs,p=e.componentStyle,f=e.defaultProps,m=e.foldedComponentIds,v=e.shouldForwardProp,b=e.styledComponentId,w=e.target,S=(void 0===(o=ey(t,(0,a.useContext)(eE),f)||y)&&(o=y),i=h({},t,{theme:o}),s={},d.forEach(function(e){var t,r,n,a=e;for(t in g(a)&&(a=a(i)),a)i[t]=s[t]="className"===t?(r=s[t],n=a[t],r&&n?r+" "+n:r||n):a[t]}),[i,s]),R=S[0],E=S[1],x=(l=en(),u=ea(),n?p.generateAndInjectStyles(y,l,u):p.generateAndInjectStyles(R,l,u)),C=E.$as||t.$as||E.as||t.as||w,N=eS(C),j=E!==t?h({},t,{},E):t,k={};for(var T in j)"$"!==T[0]&&"as"!==T&&("forwardedAs"===T?k.as=j[T]:(v?v(T,c.A,C):!N||(0,c.A)(T))&&(k[T]=j[T]));return t.style&&E.style!==t.style&&(k.style=h({},t.style,{},E.style)),k.className=Array.prototype.concat(m,b,x!==b?x:null,t.className,E.className).filter(Boolean).join(" "),k.ref=r,(0,a.createElement)(C,k)}(k,e,t,_)};return A.displayName=w,(k=a.forwardRef(A)).attrs=R,k.componentStyle=T,k.displayName=w,k.shouldForwardProp=E,k.foldedComponentIds=o?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):m,k.styledComponentId=S,k.target=o?t.target:t,k.withComponent=function(t){var a=r.componentId,o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n=0||(a[r]=e[r]);return a}(r,["componentId"]),i=a&&a+"-"+(eS(t)?t:eb(v(t)));return e(t,h({},o,{attrs:R,componentId:i}),n)},Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a2&&W.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function ek(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n1?t-1:0),n=1;n"+t+""},this.getStyleTags=function(){return e.sealed?E(2):e._emitSheetCSS()},this.getStyleElement=function(){if(e.sealed)return E(2);var t,r=((t={})[w]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=D();return n&&(r.nonce=n),[a.createElement("style",h({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}).prototype;e.collectStyles=function(e){return this.sealed?E(2):a.createElement(eo,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return E(3)}}();let e_=eN},32420:(e,t,r)=>{r.d(t,{E:()=>n});let n={FETCH_THEN_TRANSITION:"fetch-then-transition",TRANSITION_WHILE_FETCHING:"transition-while-fetch",TRANSITION_WITHOUT_FETCH:"transition-without-fetch"}},30118:(e,t,r)=>{r.d(t,{z:()=>a});var n=r(45588);function a(e={}){let t;let r=(0,n.zR)({...e,v5Compat:!0}),o=[],i=!1;function s(e){if(o.length>0)for(let t of o)t({retry(){e()}});else e()}return{get action(){return r.action},get location(){return r.location},createHref:e=>r.createHref(e),createURL:e=>r.createURL(e),encodeLocation:e=>r.encodeLocation(e),push(e,t){s(()=>r.push(e,t))},replace(e,t){s(()=>r.replace(e,t))},go(e){s(()=>r.go(e))},listen(e){if(t)throw Error("A history only accepts one active listener");return t=e,()=>{t=void 0}},dispose:r.listen(e=>{if(i){i=!1;return}if(e.action===n.rc.Pop&&o.length&&null!==e.delta&&o.length>0){let t=e.delta;for(let e of(i=!0,r.go(-1*t),o))e({retry(){r.go(t)}})}else t?.(e)}),block:e=>(o.push(e),()=>{o=o.filter(t=>t!==e)})}}},63809:(e,t,r)=>{r.d(t,{R:()=>DeferredRegistry});var n=r(7531);function a(e,t){var r=function(e,t,r){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}(e,t,0);return r.get?r.get.call(e):r.value}var o=new WeakMap;let DeferredRegistry=class DeferredRegistry{register(e,t){let r=a(this,o).get(e);if(r)r.resolve(t);else{let r=(0,n.Y)();r.resolve(t),a(this,o).set(e,r)}}getRegistration(e){let t=a(this,o).get(e);if(t)return t;let r=(0,n.Y)();return a(this,o).set(e,r),r}constructor(){!function(e,t,r){!function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}(this,o,{writable:!0,value:new Map})}}},50888:(e,t,r)=>{r.d(t,{z:()=>n});let n={"Workers not ready":"Alloy is warming its workers. This is expected during deploys and should resolve shortly."}},52807:(e,t,r)=>{r.d(t,{$h:()=>DataRouterApplicationBuilder});var n=r(12201);function a(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function o(e,t){var r=a(e,t,"get");return r.get?r.get.call(e):r.value}function i(e,t,r){!function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function s(e,t,r){var n=a(e,t,"set");return!function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=r}}(e,n,r),r}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c=new WeakMap;let DataRouterApplication=class DataRouterApplication{registration(e){return this.embeddedData=e?.embeddedData,{routes:this.getRoutes()}}getRoutes(){return"function"==typeof o(this,c)?o(this,c).call(this,{isEnabled:e=>{let t=this.embeddedData?.appPayload?.enabled_features;if(t&&e in t)return t[e]}}):o(this,c)}constructor(e,t){i(this,c,{writable:!0,value:void 0}),l(this,"embeddedData",void 0),this.name=e,s(this,c,t),this.registration=this.registration.bind(this)}};var u=new WeakMap;let DataRouterApplicationBuilder=class DataRouterApplicationBuilder{static create(e){return new DataRouterApplicationBuilder(e)}createDataRouterAppFromRoutes(e){return s(this,u,new DataRouterApplication(this.name,e)),o(this,u)}createQueryRouteConfig(e,{path:t,index:r,queries:a=[]}){return function(e){if(e.length>4)throw new h(e.length)}(a),function(e){if(!/^[a-z][a-zA-Z0-9]*$/.test(e))throw new InvalidIdentifierError(e)}(e),new n.Wy({appName:this.name,id:e,path:t,queries:function(e){let t=new Set;return Object.fromEntries(e.map(({queryName:e,...r})=>{if(t.has(e))throw new d(e);return t.add(e),[e,r]}))}(a),index:r??!1,getEmbeddedData:this.getEmbeddedData})}constructor(e){i(this,u,{writable:!0,value:void 0}),l(this,"getEmbeddedData",()=>{if(!o(this,u))throw Error("getEmbeddedData should only be called after createDataRouterAppFromRoutes");return o(this,u).embeddedData}),this.name=e}};let d=class DuplicateRouteQueryNameError extends Error{constructor(e){super(`query names cannot be duplicated: \`${e}\` has already been defined for this route.`),this.name="DuplicateRouteQueryNameError"}},h=class InvalidNumberOfQueryConfigsError extends Error{constructor(e){super(`Invalid number of query configs error. ${e} queries supplied of a max 4 queries allowed.`),this.name="InvalidNumberOfQueryConfigsError"}};let InvalidIdentifierError=class InvalidIdentifierError extends Error{constructor(e){super(`\`${e}\` must be camel cased`),this.name="InvalidIdentifierError"}}},11608:(e,t,r)=>{r.d(t,{g:()=>n});let n={Blocking:"Blocking",Deferred:"Deferred"}},8244:(e,t,r)=>{r.d(t,{Y:()=>i});var n=r(26559),a=r(11608),o=r(14518);function i({...e}={}){return{queryName:"mainQuery",queryDeps:({pathname:e})=>({pathname:e}),queryFn:async({routeId:e,queryDeps:t})=>{let r=(0,n.jC)("dataRouter"),a=r?{...t,init:{...t?.init,headers:{...r,...t?.init?.headers}}}:t;return function(e,t){let r=e.payload?.[t];if(!r)throw Error(`Unable to find payload for route Id: ${t}`);return{meta:e.meta,payload:r}}(await (0,o.X)({queryDeps:a}),e)},type:a.g.Blocking,select:e=>e.payload,...e}}},14518:(e,t,r)=>{r.d(t,{X:()=>i});var n=r(3785),a=r(60039),o=r(66300);async function i({queryDeps:{pathname:e,searchParams:t,init:r}}){let i=function(e,t){let r=[e],n=(function(e){if(e instanceof URLSearchParams)return e;if("string"==typeof e)return new URLSearchParams(e);let t=new URLSearchParams;if(null==e)return t;for(let[r,n]of Array.isArray(e)?e:Object.entries(e))null!=n&&t.append(r,n);return t})(t).toString();return n&&r.push(n.toString()),r.join("?")}(e,t),s=await (0,a.Sr)(i,r);if(!s.ok)throw new o.o(s.statusText,s);let l=await s.json();return(0,n.Av)(l),l}},12201:(e,t,r)=>{r.d(t,{Wy:()=>QueryRoute,yT:()=>S});var n=r(97396),a=r(96679),o=r(31993),i=r(47767),s=r(45588),l=r(33957),c=r(11608),u=r(74848),d=r(12539);function h(e,{element:t,Component:r}){if(!t&&!r)return;let n=null;if(void 0!==t?n=(0,u.jsx)(u.Fragment,{children:t}):r&&(n=(0,u.jsx)(r,{})),n)return(0,u.jsx)(d.U,{id:e,children:n})}function p(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function f(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function m(e,t){var r=f(e,t,"get");return r.get?r.get.call(e):r.value}function y(e,t,r){p(e,t),t.set(e,r)}function g(e,t,r){var n=f(e,t,"set");return!function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=r}}(e,n,r),r}function v(e,t,r){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return r}function b(e,t){p(e,t),t.add(e)}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S(){return(0,i.FE)()}let R={refetchOnWindowFocus:!1,retry:!1,networkMode:"always",staleTime:864e5},E=200,x=new WeakSet;var C=new WeakMap,N=new WeakMap,j=new WeakSet,k=new WeakMap,T=new WeakSet;let QueryRoute=class QueryRoute{isSameRoute(e){return!!("object"==typeof e&&e&&"id"in e&&"string"==typeof e.id&&e.id===this.id)}generatePath(e,t){return(0,s.AO)({pathname:(0,s.tW)(this.path,e),search:t?.search?new URLSearchParams(t.search).toString():void 0,hash:t?.hash})}constructor(e){b(this,j),b(this,T),y(this,C,{writable:!0,value:void 0}),y(this,N,{writable:!0,value:void 0}),w(this,"id",void 0),w(this,"path",void 0),w(this,"queries",void 0),w(this,"index",void 0),y(this,k,{writable:!0,value:async({request:e,params:t})=>{var r,i;!function(e){a.KJ&&!x.has(e)&&((0,n.SC)("react"),x.add(e))}(e);let u=[],{searchParams:d}=new URL(e.url,a.fV.origin),h=(r=this.path,i=t,(0,s.tW)(r,Object.fromEntries(P(i).map(([e,t])=>[e,void 0===t?null:t])))),p=(0,l.S)(),f=P(this.queries).map(([e,{queryFn:r,queryDeps:n,type:i=c.g.Deferred,staleTimeForNavigation:s=E,...l}])=>{let f=n?.({pathname:h,params:t,searchParams:d})??{},y={appName:m(this,C),routeId:this.id,routePath:this.path,queryName:e.toString(),queryDeps:f},g=(0,o.j)({...R,queryKey:function({appName:e,routeId:t,routePath:r,queryName:n,queryDeps:a}){return[e,t,r,n,a]}(y),queryFn:({signal:e,meta:t})=>r(y,{signal:e,meta:t}),...l});if(v(this,j,_).call(this,e,g.queryKey),a.KJ){let e={...g,staleTime:s};switch(i){case c.g.Deferred:p.prefetchQuery(e);break;case c.g.Blocking:{let t=p.ensureQueryData({...e,revalidateIfStale:!0});u.push(t);break}default:throw Error(`Invalid QueryRouteQueryType defined, \`${i}\`. Valid QueryRouteQueryTypes are ${JSON.stringify(Object.keys(c.g))}`)}}return[e,{queryConfig:g,type:i}]});return await Promise.all(u),{route:this,queries:Object.fromEntries(f)}}}),w(this,"toRoute",({Component:e,element:t,...r})=>this.index?{...r,id:this.id,children:void 0,path:this.path,index:this.index,loader:m(this,k),element:h(this.id,{element:t,Component:e})}:{...r,id:this.id,path:this.path,index:this.index,loader:m(this,k),element:h(this.id,{element:t,Component:e})}),g(this,C,e.appName),this.id=e.id,this.path=e.path,this.queries=e.queries,this.index=e.index,g(this,N,e.getEmbeddedData)}};function _(e,t){let r=(0,l.S)(),n=m(this,N).call(this),a=n?.payload,o=v(this,T,A).call(this,n,e);o&&("mainQuery"===e?delete a?.[this.id]:delete a?.[this.id]?.[e],r.setQueryData(t,o))}function A(e,t){let r=e?.payload,n=r?.[this.id];if(!n)return;if("mainQuery"!==t)return n?.[t];let a=e?.title||e?.meta?.title;return{meta:a?{title:a}:void 0,payload:n}}let P=e=>Object.entries(e)},66300:(e,t,r)=>{r.d(t,{c:()=>n,o:()=>ResponseError});let ResponseError=class ResponseError extends Error{constructor(e,t){super(e),this.response=t,this.name="ResponseError"}};function n(e){return e instanceof ResponseError}},54757:(e,t,r)=>{r.d(t,{E:()=>o});var n=r(96540),a=r(30729);function o(){return(0,n.useContext)(a.e)}},67420:(e,t,r)=>{r.d(t,{L:()=>o});var n=r(21728),a=r(12201);function o(e){let t;let r=(0,n.c)(5),o=(0,a.yT)();if(r[0]!==o||r[1]!==e){let n;r[3]!==e?(n=t=>t.id===e.id,r[3]=e,r[4]=n):n=r[4],t=o.find(n),r[0]=o,r[1]=e,r[2]=t}else t=r[2];let s=t;if(!s){let t=o.map(i).join(", ");throw Error(`Cannot read params from unmounted route with ID "${e.id}". Mounted route IDs are: "${t}"`)}return s.params}function i(e){return e.id}},60244:(e,t,r)=>{r.d(t,{B1:()=>s,ks:()=>u,pw:()=>h,xX:()=>d});var n=r(21728),a=r(97286),o=r(47767),i=r(12201);function s(e,t){let{allowReadFromChildRoutes:r}=void 0===t?{}:t,n=(0,i.yT)(),a=n.findIndex(t=>t.id===e.id);if(-1===a){let t=n.map(c).join(", ");throw Error(`Cannot read data from unmounted route with ID "${e.id}". Mounted route IDs are: ${t}`)}let{route:s}=(0,o.LG)(),{queries:u}=(0,o.Ew)(e.id),d=n.findIndex(e=>e.id===s.id);if(!r&&a>d){let t=n.map(l).join(", ");throw Error(`Cannot read data from child route with ID "${e.id}" from parent route "${s.id}". Use { allowReadFromChildRoutes: true } option to enable this. Mounted route IDs are: ${t}`)}return u}function l(e){return e.id}function c(e){return e.id}function u(e,t,r){return s(e,r)[t]}function d(e,t,r){let o,i;let s=(0,n.c)(6),{queryConfig:l}=u(e,t);s[0]!==l||s[1]!==r?(o={...l,...r},s[0]=l,s[1]=r,s[2]=o):o=s[2];let c=(0,a.I)(o);return s[3]!==l.queryKey||s[4]!==c?(i={...c,queryKey:l.queryKey},s[3]=l.queryKey,s[4]=c,s[5]=i):i=s[5],i}function h(e,t,r){let o,i,s;let l=(0,n.c)(7);l[0]===Symbol.for("react.memo_cache_sentinel")?(o={allowReadFromChildRoutes:!0},l[0]=o):o=l[0];let{queryConfig:c}=u(e,t,o);l[1]!==c||l[2]!==r?(i={...c,...r},l[1]=c,l[2]=r,l[3]=i):i=l[3];let d=(0,a.I)(i);return l[4]!==c.queryKey||l[5]!==d?(s={...d,queryKey:c.queryKey},l[4]=c.queryKey,l[5]=d,l[6]=s):s=l[6],s}},62301:(e,t,r)=>{r.d(t,{Y:()=>a});var n=r(96540);function a(e){return Object.assign((0,n.lazy)(e),{preload:async()=>{await e()}})}},32494:(e,t,r)=>{r.d(t,{V:()=>n});let n="__gh__react-core-preventAutofocus"},33957:(e,t,r)=>{let n;r.d(t,{S:()=>s});var a=r(65490);function o(e){return JSON.stringify(e,(e,t)=>!function(e){if(!i(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!(i(r)&&r.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(e)===Object.prototype}(t)?t instanceof URLSearchParams?new URLSearchParams([...t.entries()].sort(([e],[t])=>e.localeCompare(t))).toString():"bigint"==typeof t?`$bigint:${t}`:t instanceof Set?Array.from(t).sort():t instanceof Map?Array.from(t.entries()).sort(([e],[t])=>e.localeCompare(t)).reduce((e,[t,r])=>(e[t]=r,e),{}):t:Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}))}function i(e){return"[object Object]"===Object.prototype.toString.call(e)}function s(){return n??(n=new a.E({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1,networkMode:"always",queryKeyHashFn:o},mutations:{networkMode:"always"}}}))}},37573:(e,t,r)=>{r.d(t,{Mm:()=>i,QJ:()=>s,b3:()=>o});var n=r(21728),a=r(96540);function o(e){let t=e?.anchor;if(!t)return{};let r=t.getAttribute("data-inital-disabled")?.toLowerCase()==="true";return"disabled"in t&&(t.disabled=r),t.classList.remove("cursor-wait"),{reactPartialAnchor:{__wrapperElement:e}}}function i(e){let t,r,o,i;let l=(0,n.c)(7),c=(0,a.useRef)(e.__wrapperElement.anchor||null),[u,d]=(0,a.useState)(!1);l[0]!==u?(t=()=>{d(!u)},l[0]=u,l[1]=t):t=l[1];let h=t;return l[2]!==u?(r=()=>{c.current&&(c.current.setAttribute("aria-expanded",u.toString()),c.current.setAttribute("aria-haspopup","true"))},o=[c,u],l[2]=u,l[3]=r,l[4]=o):(r=l[3],o=l[4]),(0,a.useEffect)(r,o),s(e,h),l[5]!==u?(i={ref:c,open:u,setOpen:d},l[5]=u,l[6]=i):i=l[6],i}function s(e,t){let r,o;let i=(0,n.c)(3),s=(0,a.useRef)(e.__wrapperElement.anchor);i[0]!==t?(r=()=>{let e=s.current;if(e)return e.addEventListener("click",t),()=>e.removeEventListener("click",t)},o=[s,t],i[0]=t,i[1]=r,i[2]=o):(r=i[1],o=i[2]),(0,a.useEffect)(r,o)}},56174:(e,t,r)=>{r.d(t,{w:()=>eP,o:()=>eA});var n=r(74848),a=r(39595),o=r(13255),i=r(66871),s=r(84976),l=r(30118);let c=new WeakMap;var u=r(63809);let d=new u.R;async function h(e){return d.getRegistration(e).promise}var p=r(47767),f=r(78448),m=r(34788),y=r(40982),g=r(45499),v=r(64262),b=r(21728),w=r(96540),S=r(32494);function R(e,t,r){let n,a,o;let i=(0,b.c)(8),s=(0,w.useRef)(void 0),l=(0,w.useRef)(t.state);i[0]!==t.state?(n=()=>{l.current=t.state},i[0]=t.state,i[1]=n):n=i[1],(0,w.useEffect)(n),i[2]!==r||i[3]!==e||i[4]!==t.pathname||i[5]!==t.search?(a=()=>{if("POP"===r)return;let n=t.pathname+t.search;if(void 0===s.current)s.current=n;else if(s.current!==n&&!e){var a;if(!("object"==typeof(a=l.current)&&null!==a&&S.V in a&&!0===a[S.V])){let e=document.querySelector("[data-react-autofocus]");!e&&(e=document.querySelector("react-app h1"))&&!e.hasAttribute("tabindex")&&e.setAttribute("tabindex","-1"),e?.focus()}s.current=n}},o=[e,t.pathname,t.search,r],i[2]=r,i[3]=e,i[4]=t.pathname,i[5]=t.search,i[6]=a,i[7]=o):(a=i[6],o=i[7]),(0,w.useEffect)(a,o)}function E(){return R(!1,(0,p.zy)(),(0,p.wQ)()),null}try{E.displayName||(E.displayName="NavigationFocusListener")}catch{}var x=r(97665),C=r(46320),N=r(21715),j=r(11608),k=r(12201);let T=N.z.INITIAL;function _(){let e,t,r,n;let a=(0,b.c)(10),o=(0,v.X)(),i=(0,k.yT)(),s=(0,x.jE)();return a[0]!==o||a[1]!==i||a[2]!==s?(e=()=>{let e=A(i,s);document.dispatchEvent(new C.gh({payload:e,appPayload:o}))},t=[i,o,s],a[0]=o,a[1]=i,a[2]=s,a[3]=e,a[4]=t):(e=a[3],t=a[4]),(0,w.useEffect)(e,t),a[5]!==o||a[6]!==i||a[7]!==s?(r=()=>{let e=function(){let e=A(i,s);document.dispatchEvent(new C.gh({payload:e,appPayload:o}))};return document.addEventListener(T,e),()=>{document.removeEventListener(T,e)}},n=[i,o,s],a[5]=o,a[6]=i,a[7]=s,a[8]=r,a[9]=n):(r=a[8],n=a[9]),(0,w.useEffect)(r,n),null}function A(e,t){let r={};for(let n of e){if(!n.data)continue;let e=n.data.route.id;for(let a of Object.values(n.data.queries))a.type===j.g.Blocking&&(r[e]=t.getQueryData(a.queryConfig.queryKey))}return r}try{_.displayName||(_.displayName="PublishPayload")}catch{}var P=r(2604),L=r(13233),D=r(96679),O=r(17515);let I=new Map,M=!1,U=D.fV.href;async function z(){let{session:e}=await r.e("vendors-node_modules_github_turbo_dist_turbo_es2017-esm_js").then(r.bind(r,7332));document.addEventListener("turbo:click",e=>{U=e.detail.url}),window.addEventListener("popstate",()=>{let{scrollPosition:t}=e.history.getRestorationDataForIdentifier(e.history.restorationIdentifier)||{};t&&I.set(window.location.href,t)})}async function B(){D.cg&&!M&&(await z(),M=!0)}function W(){let e=window.location.href;if(e===U&&e.includes("#"))return;U=e;let t=I.get(e);if(!t)return;let r=setTimeout(()=>{window.scrollTo(t.x,t.y)},0);return()=>{clearTimeout(r)}}let H=D.cg?function(){(0,O.N)(W)}:L.l;function F(){let e;let t=(0,b.c)(1);return(H(),"undefined"!=typeof jest)?null:(t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(s.OA,{}),t[0]=e):e=t[0],e)}B();try{F.displayName||(F.displayName="CombinedScrollRestoration")}catch{}var $=r(97396),q=r(78284),V=r(7479);let G=(e,t,r)=>{let n,a;let o=(0,b.c)(6),i=(0,w.useRef)(void 0);o[0]!==r||o[1]!==t||o[2]!==e.key||o[3]!==e.pathname?(n=()=>{t||void 0!==i.current&&i.current===e.key||((0,q.LM)()?(Y(r),function(e){let t=D.XC?.querySelector("meta[name=visitor-payload]");if(!t)return;let r=JSON.parse(atob(t.content));r.referrer=new URL(e,D.fV.origin).href,t.content=btoa(JSON.stringify(r))}(e.pathname)):J(r),i.current=e.key)},a=[e.key,e.pathname,t,r],o[0]=r,o[1]=t,o[2]=e.key,o[3]=e.pathname,o[4]=n,o[5]=a):(n=o[4],a=o[5]),(0,w.useEffect)(n,a)},Y=e=>{e?(0,$.o4)():((0,$.rZ)(),(0,$.iS)())},J=e=>{if(e)return;let t=function(){window.performance.measure(X);let e=window.performance.getEntriesByName(X).pop();return e?e.duration:null}();t&&(0,V.i)({requestUrl:window.location.href,distributionKey:"REACT_NAV_DURATION",distributionValue:Math.round(t),distributionTags:["REACT_NAV_HARD"]})},X="react_nav_duration",K=(0,w.memo)(function(){return G((0,p.zy)(),!!(0,p.cq)().location,null),null});try{K.displayName||(K.displayName="SoftNavLifecycleListener")}catch{}var Q=r(39627);function Z(){let e,t;let r=(0,b.c)(4),n=(0,k.yT)(),a=(0,x.jE)();return r[0]!==n||r[1]!==a?(e=()=>{for(let e of[...n].reverse()){if(!e.data?.route)continue;let t=e.data?.queries.mainQuery;if(!t)continue;let r=function(e,t){let r=e.getQueryData(t.queryKey);return"title"in r&&r.title?r?.title:"meta"in r&&r.meta?r.meta.title:void 0}(a,t.queryConfig);if(r){(0,Q.D)((0,Q.Y)(r));break}}},t=[n,a],r[0]=n,r[1]=a,r[2]=e,r[3]=t):(e=r[2],t=r[3]),(0,w.useEffect)(e,t),null}try{Z.displayName||(Z.displayName="TitleManager")}catch{}let ee=new u.R;async function et(e){return ee.getRegistration(e).promise}var er=r(70179),en=r(52507),ea=r(45588),eo=r(32420);let ei=(e,t)=>null!==e&&null!==t&&e.pathname===t.pathname&&e.search===t.search&&!!t.hash,es=e=>{let t=404===e.httpStatus?"404 Page not found":500===e.httpStatus?"500 Internal server error":e.httpStatus?`Error ${e.httpStatus}`:"Error";return(0,Q.Y)(t)};function el(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function ec(e,t){var r=function(e,t,r){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}(e,t,0);return r.get?r.get.call(e):r.value}function eu(e,t,r){el(e,t),t.set(e,r)}function ed(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var eh=new WeakMap,ep=new WeakSet,ef=new WeakMap;let em=class Navigator{update(e){var t;this.state=Object.assign({},this.state,e);let r=this.getAppNavigationState();null===(t=function(e,t,r){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return r}(this,ep,ey))||void 0===t||t.call(this,r)}subscribe(e){let t=ec(this,eh).push(e);return()=>{ec(this,eh)[t]=null}}async handleHistoryUpdate(e){if("POP"===e.action&&(0,i.JV)().turboCount!==this.state.turboCount)return;if(this.isHashNavigation(e)){this.navigateWithCurrentPayload(e);return}"POP"!==e.action&&(0,$.SC)("react");let t=this.state.routeStateMap[e.location.key],r=void 0!==t;if(t&&t.isValid&&(r=t.isValid()),r)this.navigateFromHistory(e);else{let t=this.matchLocation(e.location);if(!t)throw Error("handleHistoryUpdate should only be called for matching routes");if(t.route.transitionType===eo.E.TRANSITION_WHILE_FETCHING&&this.navigateWithoutPayload(e),t.route.transitionType===eo.E.TRANSITION_WITHOUT_FETCH){this.navigateWithoutPayload(e);return}let r=i.JV().usr?.__prefetched_data;if(r){this.leaveLoadingStateWithRouteData(e,r,r.title);return}this.enterLoadingState(e);let n=await t.route.coreLoader({location:e.location,pathParams:t.params});if(e.location!==this.state.pendingNavigation?.update.location)return;switch(n.type){case"loaded":this.leaveLoadingStateWithRouteData(e,n.data,n.title,n.isValid);break;case"error":this.leaveLoadingStateWithError(e,n.error,!1);break;case"redirect":window.location.replace(n.url+location.hash);break;case"route-handled-error":this.leaveLoadingStateWithError(e,n.error,!0);break;default:throw Error(`Unexpected loader result type: ${n.type}`)}}}matchLocation(e){var t;return t=this.routes,ea.ue(t,e.pathname)?.[0]}isHashNavigation(e){return ei(this.state.location,e.location)}navigateFromHistory(e){this.update({location:e.location,pendingNavigation:null,error:null})}enterLoadingState(e){this.update({pendingNavigation:{update:e}})}leaveLoadingStateWithError(e,t,r){this.update({location:e.location,error:t,pendingNavigation:null,navigateOnError:r})}navigateWithoutPayload(e){this.update({location:e.location,error:null})}navigateWithCurrentPayload(e){let t=this.state.location.key,r=t+e.location.hash,n={...e.location,key:r},a={...this.state.routeStateMap,[r]:this.state.routeStateMap[t]};this.update({...e,location:n,routeStateMap:a,error:null})}leaveLoadingStateWithRouteData(e,t,r,n){this.update({location:e.location,pendingNavigation:null,routeStateMap:t?{...this.state.routeStateMap,[e.location.key]:{type:"loaded",data:t,title:r,isValid:n}}:this.state.routeStateMap,error:null})}getRoutesText(){return this.routes.map(e=>e.path).join(", ")}constructor(e,t,r,n){!function(e,t){el(e,t),t.add(e)}(this,ep),ed(this,"state",void 0),eu(this,eh,{writable:!0,value:[]}),eu(this,ef,{writable:!0,value:new WeakMap}),ed(this,"getAppNavigationState",()=>{let e=ec(this,ef).get(this.state);if(e)return e;let{location:t,error:r,navigateOnError:n,routeStateMap:a,appPayload:o,pendingNavigation:i}=this.state,s={location:t,error:r,navigateOnError:n,routeStateMap:a,appPayload:o,isLoading:!!i};return ec(this,ef).set(this.state,s),s}),this.routes=n;let a=this.matchLocation(e);if(!a)throw Error(`No route found for initial location: ${e.pathname} in [${this.getRoutesText()}]`);let{data:o,title:s,isValid:l}=a.route.loadFromEmbeddedData({embeddedData:t,location:e,pathParams:a.params});this.state={location:e,routeStateMap:{[e.key]:{type:"loaded",data:o,title:s,isValid:l}},appPayload:r,pendingNavigation:null,error:null,navigateOnError:!1,turboCount:(0,i.JV)().turboCount||0}}};function ey(e){for(let t of ec(this,eh))t?.(e)}function eg(e){let t,r,a,o,i,s,l;let c=(0,b.c)(28),{appName:u,initialLocation:d,history:h,embeddedData:y,routes:g,App:v,wasServerRendered:S,ssrError:E,onError:x}=e;c[0]!==u||c[1]!==y||c[2]!==d||c[3]!==g?(t={initialLocation:d,appName:u,embeddedData:y,routes:g},c[0]=u,c[1]=y,c[2]=d,c[3]=g,c[4]=t):t=c[4];let[C,N]=function(e){let t,r,n,a,o;let i=(0,b.c)(13),{initialLocation:s,embeddedData:l,routes:c}=e;i[0]!==l||i[1]!==s||i[2]!==c?(t=()=>{let{appPayload:e,...t}=l;return new em(s,{...t,enabled_features:e?.enabled_features?e.enabled_features:{}},e,c)},i[0]=l,i[1]=s,i[2]=c,i[3]=t):t=i[3];let[u]=(0,w.useState)(t);i[4]!==u?(r=e=>{let t=u.subscribe(e);return()=>{t()}},i[4]=u,i[5]=r):r=i[5];let d=(0,w.useSyncExternalStore)(r,u.getAppNavigationState,u.getAppNavigationState);i[6]!==u?(n=e=>{(0,w.startTransition)(()=>{u.handleHistoryUpdate(e)})},i[6]=u,i[7]=n):n=i[7];let h=n;return i[8]!==h?(a={handleHistoryUpdate:h},i[8]=h,i[9]=a):a=i[9],i[10]!==d||i[11]!==a?(o=[d,a],i[10]=d,i[11]=a,i[12]=o):o=i[12],o}(t),{location:j,error:k,routeStateMap:T,appPayload:_,navigateOnError:A,isLoading:P}=C,{handleHistoryUpdate:L}=N;return!function(e,t,r){let n,a;let o=(0,b.c)(5),i=(0,w.useRef)(null);o[0]!==e||o[1]!==t||o[2]!==r?(n=()=>{if(i.current||(i.current=r),!ei(i.current,r)&&(t||e)){if(t){let e=es(t);(0,Q.D)(e)}else e?.type==="loaded"&&e.title&&(0,Q.D)((0,Q.Y)(e.title))}i.current?.key!==r.key&&(i.current=r)},a=[t,e,r],o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=a):(n=o[3],a=o[4]),(0,w.useEffect)(n,a)}(T[j.key],k,j),R(P,j),G(j,P,k),H(),c[5]!==L||c[6]!==h?(r=()=>h.listen(L),a=[h,L],c[5]=L,c[6]=h,c[7]=r,c[8]=a):(r=c[7],a=c[8]),(0,O.N)(r,a),c[9]!==E?(o=(0,n.jsx)(m.h,{ssrError:E}),c[9]=E,c[10]=o):o=c[10],c[11]!==v||c[12]!==_||c[13]!==k||c[14]!==h||c[15]!==j||c[16]!==A||c[17]!==T||c[18]!==g||c[19]!==o?(i=(0,n.jsx)(en.l,{App:v,appPayload:_,error:k,history:h,location:j,navigateOnError:A,Router:p.Ix,routes:g,routeStateMap:T,children:o}),c[11]=v,c[12]=_,c[13]=k,c[14]=h,c[15]=j,c[16]=A,c[17]=T,c[18]=g,c[19]=o,c[20]=i):i=c[20],c[21]!==x||c[22]!==i?(s=(0,n.jsx)(er.t,{onError:x,critical:!0,children:i}),c[21]=x,c[22]=i,c[23]=s):s=c[23],c[24]!==u||c[25]!==s||c[26]!==S?(l=(0,n.jsx)(f.U,{appName:u,wasServerRendered:S,dataRouterEnabled:!1,children:s}),c[24]=u,c[25]=s,c[26]=S,c[27]=l):l=c[27],l}B();try{eg.displayName||(eg.displayName="NavigatorClientEntry")}catch{}var ev=r(12539),eb=r(33957);let ew={v7_fetcherPersist:!0,v7_normalizeFormMethod:!0,v7_partialHydration:!0,v7_relativeSplatPath:!0,v7_skipActionErrorRevalidation:!0},eS={v7_startTransition:!0};var eR=r(13856);function eE(e,t,r){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return r}function ex(e,t){!function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function eC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let eN=()=>Math.random().toString(36).substr(2,8);var ej=new WeakSet,ek=new WeakSet;let ReactAppElement=class ReactAppElement extends eR.H{connectedCallback(){super.connectedCallback(),this.uuid=(0,o._S)(),(0,o.cW)(this.uuid),window.addEventListener("popstate",this.popStateListener,!0)}disconnectedCallback(){window.removeEventListener("popstate",this.popStateListener,!0),this.routerOrHistory?.dispose(),super.disconnectedCallback()}get isDataRouterEnabled(){return"true"===this.getAttribute("data-data-router-enabled")}async getReactNode(e,t){if(this.isDataRouterEnabled){let r=await h(this.name);return eE(this,ej,eT).call(this,e,t,r.registration)}let r=await et(this.name);return eE(this,ek,e_).call(this,e,t,r.registration)}get isLazy(){return"true"===this.getAttribute("data-lazy")}constructor(...e){super(...e),ex(this,ej),ex(this,ek),eC(this,"nameAttribute","app-name"),eC(this,"popStateListener",e=>{e.state&&this.uuid!==(0,i.JV)().appId&&this.routerOrHistory?.dispose()})}};async function eT(e,t,r){e&&(0,eb.S)().removeQueries({queryKey:[this.name]});let{routes:a}=r({embeddedData:e});return this.routerOrHistory=(0,s.Ys)(function(e,{ssrError:t,appName:r,wasServerRendered:a,children:o,HydrateFallback:i,dataRouterEnabled:s,appPayload:l}){return[{id:"__DATA_ROUTER_ROOT__",errorElement:(0,n.jsx)(P.hw,{appName:r}),HydrateFallback:i,element:(0,n.jsx)(f.U,{appName:r,wasServerRendered:a,dataRouterEnabled:s,children:(0,n.jsx)(v.z.Provider,{value:l,children:(0,n.jsxs)(g.d,{routes:e,children:[(0,n.jsx)(p.sv,{}),o,(0,n.jsx)(m.h,{ssrError:t}),(0,n.jsx)(K,{}),(0,n.jsx)(E,{}),(0,n.jsx)(F,{}),(0,n.jsx)(_,{}),(0,n.jsx)(Z,{}),(0,n.jsx)(y.A,{routes:e})]})})}),children:[{id:"__DATA_ROUTER_APPLICATION_ROUTES__",errorElement:(0,n.jsx)(P.Ly,{appName:r}),children:e}]}]}(a,{appPayload:e.appPayload,ssrError:this.ssrError,appName:this.name,wasServerRendered:this.hasSSRContent,dataRouterEnabled:!0}),{future:ew}),!function(e){if(c.get(e))return;c.set(e,!0);let t=e.navigate.bind(e);e.navigate=function(e,r){if("number"==typeof e)return t(e);let n=!r?.replace,a=r?.state?.skipTurbo;return t(e,{...r,state:{...r?.state,skipTurbo:n?a??!0:a}})}}(this.routerOrHistory),(0,n.jsx)(ev.f,{appName:this.name,isDataRouterEnabled:!0,children:(0,n.jsx)(ev.U,{id:this.name,children:(0,n.jsx)(s.pg,{router:this.routerOrHistory,future:eS})})})}async function e_(e,t,r){let{App:a,routes:o}=r(),s=this.getAttribute("initial-path");if(this.isLazy){let t=await fetch(s,{mode:"no-cors",cache:"no-cache",credentials:"include"}),{payload:r}=await t.json();e.payload=r}let c=globalThis.window,{pathname:u,search:d,hash:h}=new URL(`${s}${c?.location.hash??""}`,c?.location.href??"https://github.com");(0,i.C3)({key:eN()});let p=(0,l.z)({window:c});this.routerOrHistory=p;let{key:f,state:m}=p.location;return(0,n.jsx)(ev.f,{appName:this.name,isDataRouterEnabled:!1,children:(0,n.jsx)(ev.U,{id:this.name,children:(0,n.jsx)(eg,{appName:this.name,initialLocation:{pathname:u,search:d,hash:h,key:f,state:m},history:p,embeddedData:e,routes:o,App:a,wasServerRendered:this.hasSSRContent,ssrError:this.ssrError,onError:t})})})}function eA(e,t){ee.register(e,{type:"NavigatorApp",registration:t})}function eP(e){d.register(e.name,{type:"DataRouterApp",registration:e.registration})}ReactAppElement=function(e,t,r,n){var a,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}([a.p_],ReactAppElement)},52497:(e,t,r)=>{r.d(t,{k:()=>h});var n=r(74848),a=r(39595),o=r(30118),i=r(41661),s=r(12539),l=r(37573);let c=new(r(63809)).R;var u=r(13856);let d=class ReactPartialElement extends u.H{async getReactNode(e,t){var r;let{Component:a}=await (r=this.name,c.getRegistration(r).promise),u=this.closest("react-partial-anchor"),d=(0,o.z)({window}),h=(0,l.b3)(u),p={...e,props:{...e.props,...h}};return(0,n.jsx)(s.f,{appName:this.name,isDataRouterEnabled:!1,children:(0,n.jsx)(s.U,{id:this.name,children:(0,n.jsx)(i.c,{partialName:this.name,embeddedData:p,Component:a,wasServerRendered:this.hasSSRContent,ssrError:this.ssrError,anchorElement:u,onError:t,history:d})})})}constructor(...e){super(...e),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(this,"nameAttribute","partial-name")}};function h(e,t){return c.register(e,t)}d=function(e,t,r,n){var a,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}([a.p_],d)},11908:(e,t,r)=>{r.d(t,{Y:()=>n});let n=(0,r(96540).createContext)({})},38291:(e,t,r)=>{function n(e,t){return t.get?t.get.call(e):t.value}function a(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=r}}function o(e,t){if(void 0===e)throw TypeError("attempted to "+t+" private static field before its declaration")}function i(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function s(e,t){var r=i(e,t,"get");return n(e,r)}function l(e,t,r){return c(e,t),o(r,"get"),n(e,r)}function c(e,t){if(e!==t)throw TypeError("Private static access of wrong provenance")}r.d(t,{n:()=>m});let u="@github-ui/react-core/router:state-update",d=class RouterStateUpdateEvent extends Event{constructor(){super(u)}};var h=new WeakMap;let p=class RouterStore extends EventTarget{static getInstance(){if(!l(RouterStore,RouterStore,f)){var e;e=new RouterStore,c(RouterStore,RouterStore),o(f,"set"),a(RouterStore,f,e)}return l(RouterStore,RouterStore,f)}getState(){return s(this,h)}setState(e){a(this,i(this,h,"set"),e),this.dispatchEvent(new d)}subscribe(e){let t=new AbortController;return this.addEventListener(u,()=>{e(s(this,h))},{signal:t.signal}),e(s(this,h)),()=>{t.abort()}}constructor(){super(),function(e,t,r){(function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}(this,h,{writable:!0,value:null})}};var f={writable:!0,value:void 0};function m(){return p.getInstance()}},23818:(e,t,r)=>{r.d(t,{k:()=>n});let n=(0,r(96540).createContext)({routes:[]})},64262:(e,t,r)=>{r.d(t,{X:()=>o,z:()=>a});var n=r(96540);let a=(0,n.createContext)(void 0);function o(){return(0,n.useContext)(a)}},7044:(e,t,r)=>{let n;r.d(t,{A:()=>h});var a=r(21728),o=r(27851),i=r(96679),s=r(96540);function l(e){return{colorMode:function(e){switch(e){case"light":return"day";case"dark":return"night";default:return"auto"}}(e.colorMode),dayScheme:e.lightTheme,nightScheme:e.darkTheme}}let c=new Set(["light_colorblind_high_contrast","light_tritanopia_high_contrast","dark_colorblind_high_contrast","dark_tritanopia_high_contrast","dark_dimmed_high_contrast"]),u={light_colorblind_high_contrast:"light_high_contrast",light_tritanopia_high_contrast:"light_high_contrast",dark_colorblind_high_contrast:"dark_high_contrast",dark_tritanopia_high_contrast:"dark_high_contrast",dark_dimmed_high_contrast:"dark_high_contrast"};function d(e){return void 0!==e&&c.has(e)?u[e]:e}let h=i.XC?function(){let e,t,r;let n=(0,a.c)(11),{documentElement:c}=i.XC;n[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>l(c.dataset),n[0]=e):e=n[0];let[u,h]=(0,s.useState)(e),p=(0,o.G7)("primer_primitives_experimental")&&(0,o.G7)("appearance_settings");if(n[1]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{let e=new MutationObserver(()=>h(l(c.dataset)));return e.observe(c,{attributes:!0,attributeFilter:["data-color-mode","data-light-theme","data-dark-theme"]}),()=>e.disconnect()},r=[c],n[1]=t,n[2]=r):(t=n[1],r=n[2]),(0,s.useEffect)(t,r),p){let e,t,r;return n[3]!==u.dayScheme?(e=d(u.dayScheme),n[3]=u.dayScheme,n[4]=e):e=n[4],n[5]!==u.nightScheme?(t=d(u.nightScheme),n[5]=u.nightScheme,n[6]=t):t=n[6],n[7]!==u||n[8]!==e||n[9]!==t?(r={...u,dayScheme:e,nightScheme:t},n[7]=u,n[8]=e,n[9]=t,n[10]=r):r=n[10],r}return u}:function(){return l(n||{})}},50855:(e,t,r)=>{r.d(t,{N:()=>i});var n=r(96540),a=r(47767),o=r(11908);function i(){return(0,n.useContext)(o.Y)[(0,a.zy)().key]}},60183:(e,t,r)=>{r.d(t,{h:()=>a,u:()=>o});var n=r(64262);let a=()=>n.X()?.enabled_features??{},o=e=>!!a()[e]},29769:(e,t,r)=>{r.d(t,{q:()=>o});var n=r(96540),a=r(52507);function o(){return(0,n.useContext)(a.C)}},25772:(e,t,r)=>{r.d(t,{B:()=>a});var n=r(50855);function a(){let e=(0,n.N)(),t=e&&"loaded"===e.type?e.data:void 0;return t?.payload}},78448:(e,t,r)=>{r.d(t,{U:()=>y});var n=r(74848),a=r(21728),o=r(26033),i=r(60674),s=r(99543),l=r(30391),c=r(97665),u=r(30729),d=r(97710),h=r(52469),p=r(33957),f=r(7044);let m={};function y(e){let t,r,y,g,v,b,w;let S=(0,a.c)(20),{appName:R,children:E,wasServerRendered:x,dataRouterEnabled:C}=e,{colorMode:N,dayScheme:j,nightScheme:k}=(0,f.A)();S[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,p.S)(),S[0]=t):t=S[0];let T=t;return S[1]!==E?(r=(0,n.jsx)(s.k6,{children:E}),S[1]=E,S[2]=r):r=S[2],S[3]!==R||S[4]!==r?(y=(0,n.jsx)(d.V,{appName:R,children:r}),S[3]=R,S[4]=r,S[5]=y):y=S[5],S[6]!==C||S[7]!==y?(g=(0,n.jsx)(u.v,{enabled:C,children:y}),S[6]=C,S[7]=y,S[8]=g):g=S[8],S[9]!==N||S[10]!==j||S[11]!==k||S[12]!==g?(v=(0,n.jsx)(h.n,{children:(0,n.jsx)(l.NP,{colorMode:N,dayScheme:j,nightScheme:k,preventSSRMismatch:!0,children:g})}),S[9]=N,S[10]=j,S[11]=k,S[12]=g,S[13]=v):v=S[13],S[14]!==R||S[15]!==v?(b=(0,n.jsx)(o.y,{appName:R,category:"",metadata:m,children:v}),S[14]=R,S[15]=v,S[16]=b):b=S[16],S[17]!==b||S[18]!==x?(w=(0,n.jsx)(c.Ht,{client:T,children:(0,n.jsx)(i.D3,{wasServerRendered:x,children:b})}),S[17]=b,S[18]=x,S[19]=w):w=S[19],w}try{y.displayName||(y.displayName="BaseProviders")}catch{}},34788:(e,t,r)=>{r.d(t,{h:()=>u});var n=r(74848),a=r(21728),o=r(42218),i=r(99543),s=r(96540),l=r(50888);function c({ssrError:e}){let{addToast:t}=(0,i.Y6)(),r=l.z[e.textContent||""];return(0,s.useEffect)(()=>{r||t({type:"error",message:"SSR failed, see console for error details (Staff Only)"})},[]),null}try{c.displayName||(c.displayName="SSRErrorToast")}catch{}function u(e){let t,r,i;let s=(0,a.c)(5),{ssrError:l}=e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.jsx)(o.V,{}),s[0]=t):t=s[0],s[1]!==l?(r=l&&(0,n.jsx)(c,{ssrError:l}),s[1]=l,s[2]=r):r=s[2],s[3]!==r?(i=(0,n.jsxs)(n.Fragment,{children:[t,r]}),s[3]=r,s[4]=i):i=s[4],i}try{u.displayName||(u.displayName="CommonElements")}catch{}},70179:(e,t,r)=>{r.d(t,{t:()=>u});var n=r(74848),a=r(21728),o=r(78924),i=r(22353),s=r(96540),l=r(12707);let c=class BasicErrorBoundary extends s.Component{static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e){let t={critical:this.props.critical||!1,reactAppName:this.props.appName};"function"==typeof this.props.onError?this.props.onError(e,t):function(e,t={}){setTimeout(()=>{(0,i.N7)(e,t)})}(e,t)}render(){return this.state.error?void 0===this.props.fallback?(0,n.jsx)(l.M,{type:"httpError"}):this.props.fallback:this.props.children}constructor(e){super(e),this.state={error:null}}};function u(e){let t;let r=(0,a.c)(3),i=s.useContext(o.I),l=e.appName||i?.appName;return r[0]!==l||r[1]!==e?(t=(0,n.jsx)(c,{...e,appName:l}),r[0]=l,r[1]=e,r[2]=t):t=r[2],t}try{u.displayName||(u.displayName="ErrorBoundary")}catch{}},12707:(e,t,r)=>{r.d(t,{M:()=>l});var n=r(74848),a=r(21728),o=r(84217);let i={Heading:"ErrorPage-module__Heading--UGKqI",Status:"ErrorPage-module__Status--fcyMK",Message:"ErrorPage-module__Message--Bkeiv"},s={404:"Didn\u2019t find anything here!",500:"Looks like something went wrong!"};function l(e){let t,r,l;let c=(0,a.c)(7),{httpStatus:u,type:d}=e,h="fetchError"===d?"Looks like network is down!":s[u||500];return c[0]!==u?(t=u?(0,n.jsx)("div",{className:i.Status,children:u}):null,c[0]=u,c[1]=t):t=c[1],c[2]!==h?(r=(0,n.jsx)("div",{className:i.Message,children:h}),c[2]=h,c[3]=r):r=c[3],c[4]!==t||c[5]!==r?(l=(0,n.jsxs)(o.A,{as:"h1",tabIndex:-1,className:i.Heading,children:["Error",t,r]}),c[4]=t,c[5]=r,c[6]=l):l=c[6],l}try{l.displayName||(l.displayName="ErrorPage")}catch{}},26328:(e,t,r)=>{r.d(t,{s:()=>i});var n=r(74848),a=r(21728),o=r(64262);let i=e=>{let t,r,i;let s=(0,a.c)(5),{children:l,features:c}=e;return s[0]!==c?(r={enabled_features:c},s[0]=c,s[1]=r):r=s[1],t=r,s[2]!==l||s[3]!==t?(i=(0,n.jsx)(o.z.Provider,{value:t,children:l}),s[2]=l,s[3]=t,s[4]=i):i=s[4],i};try{i.displayName||(i.displayName="FeatureFlagProvider")}catch{}},16058:(e,t,r)=>{r.d(t,{a:()=>a});var n=r(26559);function a({path:e,Component:t,shouldNavigateOnError:r,transitionType:a,children:o}){return{path:e,Component:t,coreLoader:async function({location:e}){let t;try{let r=`${e.pathname}${e.search}`;t=await window.fetch(r,{headers:{Accept:"application/json",...(0,n.kt)(),"X-GitHub-Target":"dotcom","X-React-Router":"json",...(0,n.jC)("navigator")}})}catch{return{type:r?"route-handled-error":"error",error:{type:"fetchError"}}}if(t.redirected)return{type:"redirect",url:t.url};if(!t.ok)return{type:r?"route-handled-error":"error",error:{type:"httpError",httpStatus:t.status}};try{let e=await t.json();return{type:"loaded",data:e,title:e.title}}catch{return{type:r?"route-handled-error":"error",error:{type:"badResponseError"}}}},loadFromEmbeddedData:function({embeddedData:e}){return{data:e,title:e.title}},transitionType:a,children:o}}},28391:(e,t,r)=>{r.d(t,{N:()=>d,k:()=>h});var n=r(74848),a=r(21728),o=r(96679),i=r(96540),s=r(45588),l=r(84976),c=r(32494),u=r(23818);let d=(0,i.forwardRef)((e,t)=>{let r,d,h,p,f,m;let y=(0,a.c)(14);y[0]!==e?({to:p,reloadDocument:h,preventAutofocus:r,...d}=e,y[0]=e,y[1]=r,y[2]=d,y[3]=h,y[4]=p):(r=y[1],d=y[2],h=y[3],p=y[4]);let{routes:g}=(0,i.useContext)(u.k),v=(0,s.o1)(p,o.fV.pathname).pathname;return h=h??!(0,s.ue)(g,v),y[5]!==r||y[6]!==d.state?(f=r?{[c.V]:!0,...d.state}:d.state,y[5]=r,y[6]=d.state,y[7]=f):f=y[7],y[8]!==d||y[9]!==t||y[10]!==h||y[11]!==f||y[12]!==p?(m=(0,n.jsx)(l.N_,{to:p,...d,state:f,reloadDocument:h,ref:t}),y[8]=d,y[9]=t,y[10]=h,y[11]=f,y[12]=p,y[13]=m):m=y[13],m});d.displayName="Link";let h=(0,i.forwardRef)(function(e,t){let r,d,h,p,f,m;let y=(0,a.c)(14);y[0]!==e?({to:p,reloadDocument:h,preventAutofocus:r,...d}=e,y[0]=e,y[1]=r,y[2]=d,y[3]=h,y[4]=p):(r=y[1],d=y[2],h=y[3],p=y[4]);let{routes:g}=(0,i.useContext)(u.k),v=(0,s.o1)(p,o.fV.pathname).pathname;return h=h??!(0,s.ue)(g,v),y[5]!==r||y[6]!==d.state?(f=r?{[c.V]:!0,...d.state}:d.state,y[5]=r,y[6]=d.state,y[7]=f):f=y[7],y[8]!==d||y[9]!==t||y[10]!==h||y[11]!==f||y[12]!==p?(m=(0,n.jsx)(l.k2,{to:p,...d,state:f,reloadDocument:h,ref:t}),y[8]=d,y[9]=t,y[10]=h,y[11]=f,y[12]=p,y[13]=m):m=y[13],m});try{h.displayName||(h.displayName="NavLink")}catch{}},52507:(e,t,r)=>{r.d(t,{C:()=>y,l:()=>g});var n=r(74848),a=r(21728),o=r(96540),i=r(47767),s=r(46320),l=r(21715),c=r(64262),u=r(25772);function d(e){let t;let r=(0,a.c)(2),{App:d}=e;return!function(){let e,t,r,n;let i=(0,a.c)(8),d=(0,u.B)(),h=(0,c.X)();i[0]!==h||i[1]!==d?(e=()=>{let e=new AbortController;return document.addEventListener(l.z.INITIAL,function(){document.dispatchEvent(new s.gh({payload:d,appPayload:h}))},{signal:e.signal}),()=>{e.abort()}},t=[h,d],i[0]=h,i[1]=d,i[2]=e,i[3]=t):(e=i[2],t=i[3]),(0,o.useEffect)(e,t),i[4]!==h||i[5]!==d?(r=()=>{document.dispatchEvent(new s.gh({payload:d,appPayload:h}))},n=[h,d],i[4]=h,i[5]=d,i[6]=r,i[7]=n):(r=i[6],n=i[7]),(0,o.useEffect)(r,n)}(),r[0]!==d?(t=d?(0,n.jsx)(d,{children:(0,n.jsx)(i.sv,{})}):(0,n.jsx)(i.sv,{}),r[0]=d,r[1]=t):t=r[1],t}try{d.displayName||(d.displayName="AppWrapper")}catch{}var h=r(12707),p=r(11908),f=r(40982),m=r(45499);let y=(0,o.createContext)(null);function g(e){let t,r;let o=(0,a.c)(14),{App:i,appPayload:s,children:l,error:u,history:d,location:g,navigateOnError:b,Router:w,routes:S,routeStateMap:R}=e;return o[0]!==i||o[1]!==w||o[2]!==s||o[3]!==l||o[4]!==u||o[5]!==d||o[6]!==g||o[7]!==b||o[8]!==R||o[9]!==S?(t=u&&!b?(0,n.jsx)(h.M,{...u}):(0,n.jsx)(c.z.Provider,{value:s,children:(0,n.jsx)(y.Provider,{value:u,children:(0,n.jsx)(p.Y.Provider,{value:R,children:(0,n.jsxs)(w,{location:g,navigator:d,future:{v7_relativeSplatPath:!0},children:[(0,n.jsx)(v,{routes:S,App:i}),l,(0,n.jsx)(f.A,{routes:S})]})})})}),o[0]=i,o[1]=w,o[2]=s,o[3]=l,o[4]=u,o[5]=d,o[6]=g,o[7]=b,o[8]=R,o[9]=S,o[10]=t):t=o[10],o[11]!==S||o[12]!==t?(r=(0,n.jsx)(m.d,{routes:S,children:t}),o[11]=S,o[12]=t,o[13]=r):r=o[13],r}function v(e){let t,r;let o=(0,a.c)(5),{App:s,routes:l}=e;return o[0]!==s?(t=(0,n.jsx)(d,{App:s}),o[0]=s,o[1]=t):t=o[1],o[2]!==l||o[3]!==t?(r=[{element:t,children:l}],o[2]=l,o[3]=t,o[4]=r):r=o[4],(0,i.Ye)(r)}try{y.displayName||(y.displayName="NavigationErrorContext")}catch{}try{g.displayName||(g.displayName="NavigatorRouter")}catch{}try{v.displayName||(v.displayName="AppRoutes")}catch{}},41661:(e,t,r)=>{r.d(t,{c:()=>p});var n=r(74848),a=r(21728),o=r(78448),i=r(34788),s=r(70179),l=r(17515),c=r(96540),u=r(47767);function d(e){let t,r,o,i,s;let d=(0,a.c)(10),{children:h,history:p}=e;d[0]!==p.location?(t={location:p.location},d[0]=p.location,d[1]=t):t=d[1];let[f,m]=(0,c.useState)(t);return d[2]!==p?(r=()=>p.listen(m),o=[p],d[2]=p,d[3]=r,d[4]=o):(r=d[3],o=d[4]),(0,l.N)(r,o),d[5]===Symbol.for("react.memo_cache_sentinel")?(i={v7_relativeSplatPath:!0},d[5]=i):i=d[5],d[6]!==h||d[7]!==p||d[8]!==f.location?(s=(0,n.jsx)(u.Ix,{location:f.location,navigator:p,future:i,children:h}),d[6]=h,d[7]=p,d[8]=f.location,d[9]=s):s=d[9],s}try{d.displayName||(d.displayName="PartialRouter")}catch{}var h=r(45499);function p(e){let t,r,l,c,u,p;let f=(0,a.c)(17),{partialName:m,embeddedData:y,Component:g,wasServerRendered:v,ssrError:b,onError:w,history:S}=e;return f[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],f[0]=t):t=f[0],f[1]!==g||f[2]!==y.props?(r=(0,n.jsx)(g,{...y.props}),f[1]=g,f[2]=y.props,f[3]=r):r=f[3],f[4]!==b?(l=(0,n.jsx)(i.h,{ssrError:b}),f[4]=b,f[5]=l):l=f[5],f[6]!==S||f[7]!==r||f[8]!==l?(c=(0,n.jsx)(h.d,{routes:t,children:(0,n.jsxs)(d,{history:S,children:[r,l]})}),f[6]=S,f[7]=r,f[8]=l,f[9]=c):c=f[9],f[10]!==w||f[11]!==c?(u=(0,n.jsx)(s.t,{onError:w,children:c}),f[10]=w,f[11]=c,f[12]=u):u=f[12],f[13]!==m||f[14]!==u||f[15]!==v?(p=(0,n.jsx)(o.U,{appName:m,wasServerRendered:v,dataRouterEnabled:!1,children:u}),f[13]=m,f[14]=u,f[15]=v,f[16]=p):p=f[16],p}try{p.displayName||(p.displayName="PartialEntry")}catch{}},52469:(e,t,r)=>{r.d(t,{n:()=>s});var n=r(74848),a=r(21728),o=r(27851),i=r(15033);function s(e){let t,r,s;let l=(0,a.c)(3),{children:c}=e;if(l[0]===Symbol.for("react.memo_cache_sentinel")){for(let e of(r={},(0,o.fQ)()))e.startsWith("primer_react_")&&(r[e]=!0);l[0]=r}else r=l[0];return t=r,l[1]!==c?(s=(0,n.jsx)(i.g,{flags:t,children:c}),l[1]=c,l[2]=s):s=l[2],s}r(96540);try{s.displayName||(s.displayName="PrimerFeatureFlags")}catch{}},12539:(e,t,r)=>{r.d(t,{U:()=>p,f:()=>d});var n=r(74848),a=r(21728),o=r(27851),i=r(13233),s=r(96540);function l(e){return Number(e.toFixed(2))}let c=({appName:e,isDataRouterEnabled:t},r,n,a,i,s,c)=>{if("undefined"==typeof window||!(0,o.G7)("react_quality_profiling"))return;let u={appName:e,isDataRouterEnabled:t,id:r,phase:n,actualDuration:l(a),baseDuration:l(i),startTime:l(s),commitTime:l(c)};console.groupCollapsed(`[Profiler] ${e} - ${r} - ${n}`),console.table(u),console.groupEnd()},u=(0,s.createContext)(null),d=(0,s.memo)(function(e){let t,r;let o=(0,a.c)(6),{onRender:i,isDataRouterEnabled:s,appName:l,children:d}=e;o[0]!==l||o[1]!==s?(t=(...e)=>c({appName:l,isDataRouterEnabled:s},...e),o[0]=l,o[1]=s,o[2]=t):t=o[2];let h=t,p=i??h;return o[3]!==p||o[4]!==d?(r=(0,n.jsx)(u.Provider,{value:p,children:d}),o[3]=p,o[4]=d,o[5]=r):r=o[5],r}),h=()=>(0,s.useContext)(u),p=(0,s.memo)(function(e){let t;let r=(0,a.c)(4),{id:o,children:l}=e,c=h()??i.l;return r[0]!==l||r[1]!==o||r[2]!==c?(t=(0,n.jsx)(s.Profiler,{id:o,onRender:c,children:l}),r[0]=l,r[1]=o,r[2]=c,r[3]=t):t=r[3],t});try{u.displayName||(u.displayName="ProfilerContext")}catch{}try{d.displayName||(d.displayName="ProfilerProvider")}catch{}try{p.displayName||(p.displayName="Profiler")}catch{}},13856:(e,t,r)=>{r.d(t,{H:()=>ReactBaseElement});var n=r(74848),a=r(39595),o=r(22353),i=r(41764),s=r(7479),l=r(96540),c=r(5338),u=r(50888);function d(e,t,r,n){var a,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}let h=RegExp("Minified React error #(?\\d+)"),p=["419","421"];let ReactBaseElement=class ReactBaseElement extends HTMLElement{get name(){return this.getAttribute(this.nameAttribute)}get embeddedDataText(){let e=this.embeddedData?.textContent;if(!e)throw Error(`No embedded data provided for react element ${this.name}`);return e}get hasSSRContent(){return"true"===this.getAttribute("data-ssr")}get attemptedSSR(){return"true"===this.getAttribute("data-attempted-ssr")}connectedCallback(){this.renderReact()}disconnectedCallback(){this.root?.unmount(),this.root=void 0}async renderReact(){if(!this.reactRoot)throw Error("No react root provided");let e={createRoot:c.H,hydrateRoot:c.c};i.A.isEnabled()&&(e=await this.getReactDomWithProfiling());let t=!1,r=JSON.parse(this.embeddedDataText),a=this.ssrError?.textContent,u=await this.getReactNode(r,(e,r={})=>{t=!0;let n={critical:!0,reactAppName:this.name,...r};setTimeout(()=>{(0,o.N7)(e,n)})}),d=(0,n.jsx)(l.StrictMode,{children:u});if(a&&this.logSSRError(a),this.hasSSRContent){let r=[...this.querySelectorAll('style[data-styled="true"]'),...this.querySelectorAll('link[data-remove-after-hydration="true"]')];for(let e of r)document.head.appendChild(e);this.root=e.hydrateRoot(this.reactRoot,d,{onRecoverableError:(e,r)=>{if(!(e instanceof Error))return;let n=h.exec(e.message),a=String(n?.groups?.invariant);t=!p.includes(a),(0,s.i)({incrementKey:"REACT_HYDRATION_ERROR",incrementTags:{appName:this.name,invariant:a}}),t&&(0,s.X)()&&(console.groupCollapsed(`%c\u{26A0}\u{FE0F} Recoverable hydration error - ${e.message}`,"background: rgba(255, 193, 7, 0.2); font-weight: bold; padding: 4px; border: 1px solid rgba(255, 193, 7, 0.5); border-radius: 4px;","This is only visible to staff users and is safe to ignore. Reach out to #react for help understanding and fixing these hydration errors"),e.cause&&console.warn("cause",e.cause),r.componentStack&&console.warn("componentStack",r.componentStack),r.digest&&console.warn("digest",r.digest),console.groupEnd())}}),r.length>0&&requestIdleCallback(()=>{for(let e of r)e.parentElement?.removeChild(e)}),(0,s.i)({incrementKey:"REACT_RENDER",incrementTags:{appName:this.name,csr:!1,error:t,ssr:!0,ssrError:!1}})}else this.root=e.createRoot(this.reactRoot),this.root.render(d),(0,s.i)({incrementKey:"REACT_RENDER",incrementTags:{appName:this.name,csr:!0,error:t,ssr:this.attemptedSSR,ssrError:!!this.ssrError}});this.classList.add("loaded")}getReactDomWithProfiling(){return r.e("react-profiling").then(r.t.bind(r,87335,19))}logSSRError(e){if((0,s.X)()){if(u.z[e])return console.error("SSR failed with an expected error:",u.z[e]);try{let t=JSON.parse(e),r=function(e){if(!e.stacktrace)return"";let t="\n ";return e.stacktrace.map(e=>{let{function:r,filename:n,lineno:a,colno:o}=e,i=`${t} at ${r} (${n}:${a}:${o})`;return t=" ",i}).join("\n")}(t);console.error("Error During Alloy SSR:",`${t.type}: ${t.value} `,t,r)}catch{console.error("Error During Alloy SSR:",e,"unable to parse as json")}}}constructor(...e){super(...e),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(this,"root",void 0)}};d([a.aC],ReactBaseElement.prototype,"embeddedData",void 0),d([a.aC],ReactBaseElement.prototype,"ssrError",void 0),d([a.aC],ReactBaseElement.prototype,"reactRoot",void 0);try{h.displayName||(h.displayName="REACT_INVARIANT_ERROR_REGEX")}catch{}},40982:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(74848),a=r(21728),o=r(96540),i=r(47767),s=r(45588),l=r(54757),c=r(38291);let u=(0,o.memo)(function(e){let t=(0,a.c)(4),{routes:r}=e;if((0,l.E)()){let e;return t[0]!==r?(e=(0,n.jsx)(h,{routes:r}),t[0]=r,t[1]=e):e=t[1],e}{let e;return t[2]!==r?(e=(0,n.jsx)(d,{routes:r}),t[2]=r,t[3]=e):e=t[3],e}}),d=(0,o.memo)(function(e){let t,r,n,o,l;let c=(0,a.c)(9),{routes:u}=e,d=(0,i.zy)();return c[0]!==d||c[1]!==u?(r=s.ue(u,d)?.map(y)??[],c[0]=d,c[1]=u,c[2]=r):r=c[2],t=r,c[3]!==u?(o=m(u),c[3]=u,c[4]=o):o=c[4],n=o,c[5]!==d||c[6]!==t||c[7]!==n?(l={location:d,matches:t,routes:n},c[5]=d,c[6]=t,c[7]=n,c[8]=l):l=c[8],p(l),null}),h=(0,o.memo)(function(e){let t,r,n;let o=(0,a.c)(6),{routes:s}=e,l=(0,i.zy)(),c=(0,i.FE)();return o[0]!==s?(r=m(s),o[0]=s,o[1]=r):r=o[1],t=r,o[2]!==l||o[3]!==c||o[4]!==t?(n={location:l,matches:c,routes:t},o[2]=l,o[3]=c,o[4]=t,o[5]=n):n=o[5],p(n),null});function p(e){let t,r,n,i;let s=(0,a.c)(10),{location:l,matches:u,routes:d}=e;s[0]!==l||s[1]!==u||s[2]!==d?(t=()=>{let e=new AbortController;return document.addEventListener("turbo:load",()=>{(0,c.n)().setState({location:l,matches:u,routes:d})},{signal:e.signal}),()=>{e.abort()}},r=[l,d,u],s[0]=l,s[1]=u,s[2]=d,s[3]=t,s[4]=r):(t=s[3],r=s[4]),(0,o.useEffect)(t,r),s[5]!==l||s[6]!==u||s[7]!==d?(n=()=>((0,c.n)().setState({location:l,matches:u,routes:d}),f),i=[l,d,u],s[5]=l,s[6]=u,s[7]=d,s[8]=n,s[9]=i):(n=s[8],i=s[9]),(0,o.useEffect)(n,i)}function f(){(0,c.n)().setState(null)}function m(e,t=""){let r=[];for(let n of e){let e;let a=!0===n.index,o=n.path??"";if(a)e=t.startsWith("/")&&!t.endsWith("/")?t.endsWith("/")?t:`${t}/`:t||"/";else e=o.startsWith("/")?o:t?o?`${t.replace(/\/+$/,"")}/${o.replace(/^\/+/,"")}`:t:o;let i="id"in n&&"string"==typeof n.id?n.id:e||"/";r.push({id:i,pathname:e||"/",route:n}),n.children&&r.push(...m(n.children,e))}return r}try{u.displayName||(u.displayName="RouterDevTools")}catch{}try{d.displayName||(d.displayName="NavigatorRouterDevTools")}catch{}try{h.displayName||(h.displayName="DataRouterDevTools")}catch{}function y(e){return function({pathname:e,route:t,params:r}){return{id:t.id??t.path??e,pathname:e,params:r,data:void 0,handle:t.handle}}(e)}},45499:(e,t,r)=>{r.d(t,{d:()=>i});var n=r(74848),a=r(21728),o=r(23818);function i(e){let t,r,i;let s=(0,a.c)(5),{routes:l,children:c}=e;return s[0]!==l?(r={routes:l},s[0]=l,s[1]=r):r=s[1],t=r,s[2]!==t||s[3]!==c?(i=(0,n.jsx)(o.k.Provider,{value:t,children:c}),s[2]=t,s[3]=c,s[4]=i):i=s[4],i}try{i.displayName||(i.displayName="RoutesContextProvider")}catch{}},30729:(e,t,r)=>{r.d(t,{e:()=>o,v:()=>i});var n=r(74848),a=r(21728);let o=(0,r(96540).createContext)(!1);function i(e){let t;let r=(0,a.c)(3),{enabled:i,children:s}=e;return r[0]!==s||r[1]!==i?(t=(0,n.jsx)(o.Provider,{value:i,children:s}),r[0]=s,r[1]=i,r[2]=t):t=r[2],t}try{o.displayName||(o.displayName="IsDataRouterEnabledContext")}catch{}try{i.displayName||(i.displayName="IsDataRouterEnabledContextProvider")}catch{}},97710:(e,t,r)=>{r.d(t,{V:()=>c,l:()=>u});var n=r(74848),a=r(21728),o=r(22353),i=r(96540),s=r(2604);let l=(0,i.createContext)(null),c=(0,i.memo)(function(e){let t,r,c,u;let d=(0,a.c)(9),{appName:h,children:p,critical:f}=e;d[0]!==f||d[1]!==h?(t={reactAppName:h,critical:f},d[0]=f,d[1]=h,d[2]=t):t=d[2];let m=(0,i.useRef)(t);d[3]!==f||d[4]!==h?(r=()=>{m.current={reactAppName:h,critical:f}},d[3]=f,d[4]=h,d[5]=r):r=d[5],(0,i.useEffect)(r),d[6]===Symbol.for("react.memo_cache_sentinel")?(c=(e,t)=>{if(e)return(0,s.km)(e,e=>{(0,o.N7)(e,{critical:m.current.critical,reactAppName:m.current.reactAppName,...t})})},d[6]=c):c=d[6];let y=c;return d[7]!==p?(u=(0,n.jsx)(l.Provider,{value:y,children:p}),d[7]=p,d[8]=u):u=d[8],u});function u(){let e=(0,i.useContext)(l);if(null==e)throw Error("useReportErrorContext must be used within a ReportErrorContextProvider");return e}try{l.displayName||(l.displayName="ReportErrorContext")}catch{}try{c.displayName||(c.displayName="ReportErrorContextProvider")}catch{}},2604:(e,t,r)=>{r.d(t,{Ly:()=>y,hw:()=>f,km:()=>p});var n=r(74848),a=r(21728),o=r(22353),i=r(93116),s=r(96540),l=r(45588),c=r(47767),u=r(66300),d=r(39627);let h=new WeakSet;function p(e,t){h.has(e)||(h.add(e),t(e))}let f=e=>{let t;let r=(0,a.c)(3),{appName:o}=e,i=(0,c.r5)();return!function(e){return(0,l.pX)(e)&&404===e.status}(i)?(r[0]!==o||r[1]!==i?(t=(0,n.jsx)(m,{appName:o,routeError:i}),r[0]=o,r[1]=i,r[2]=t):t=r[2],t):null};function m(e){let t,r,l,c;let u=(0,a.c)(6),{appName:d,routeError:h}=e,f=(0,s.useRef)(d);return u[0]!==d?(t=()=>{f.current=d},u[0]=d,u[1]=t):t=u[1],(0,s.useEffect)(t),u[2]!==h?(r=()=>{h&&p(h,e=>{(0,o.N7)(e,{critical:!0,reactAppName:f.current})})},l=[h],u[2]=h,u[3]=r,u[4]=l):(r=u[3],l=u[4]),(0,s.useEffect)(r,l),u[5]===Symbol.for("react.memo_cache_sentinel")?(c=(0,n.jsxs)(i.E,{border:!1,spacious:!1,children:[(0,n.jsx)(i.E.Heading,{children:"Unable to load page."}),(0,n.jsx)(i.E.Description,{children:"Please reload page and try again"})]}),u[5]=c):c=u[5],c}let y=e=>{let t;let r=(0,a.c)(6),{appName:o}=e,i=(0,c.r5)();if((0,u.c)(i)){let e;return r[0]!==o||r[1]!==i?(e=(0,n.jsx)(g,{appName:o,responseError:i}),r[0]=o,r[1]=i,r[2]=e):e=r[2],e}return r[3]!==o||r[4]!==i?(t=(0,n.jsx)(m,{routeError:i,appName:o}),r[3]=o,r[4]=i,r[5]=t):t=r[5],t};function g(e){let t,r,l,c,u,h,f;let m=(0,a.c)(11),{appName:y,responseError:g}=e;!function(e){let t,r;let n=(0,a.c)(3),o=e.response.status;n[0]!==o?(t=()=>{let e=function(e){let t=404===e?"404 Page not found":500===e?"500 Internal server error":`Error ${e}`;return(0,d.Y)(t)}(o);(0,d.D)(e)},r=[o],n[0]=o,n[1]=t,n[2]=r):(t=n[1],r=n[2]),(0,s.useEffect)(t,r)}(g);let v=(0,s.useRef)(y);m[0]!==y?(t=()=>{v.current=y},m[0]=y,m[1]=t):t=m[1],(0,s.useEffect)(t),m[2]!==g?(r=()=>{p(g,e=>{(0,o.N7)(e,{critical:!0,reactAppName:v.current})})},l=[g],m[2]=g,m[3]=r,m[4]=l):(r=m[3],l=m[4]),(0,s.useEffect)(r,l),m[5]===Symbol.for("react.memo_cache_sentinel")?(c=(0,n.jsx)(i.E.Heading,{children:"Unable to load page."}),m[5]=c):c=m[5];let b=`Status: ${g.response.status} Message: ${g.message}`;return m[6]!==b?(u=(0,n.jsx)(i.E.Description,{children:b}),m[6]=b,m[7]=u):u=m[7],m[8]===Symbol.for("react.memo_cache_sentinel")?(h=(0,n.jsx)(i.E.Description,{children:"Please reload page and try again"}),m[8]=h):h=m[8],m[9]!==u?(f=(0,n.jsxs)(i.E,{border:!1,spacious:!1,children:[c,u,h]}),m[9]=u,m[10]=f):f=m[10],f}try{f.displayName||(f.displayName="UnhandledRouteError")}catch{}try{m.displayName||(m.displayName="BaseRouteErrorBoundary")}catch{}try{y.displayName||(y.displayName="RootAppRouteErrorElement")}catch{}try{g.displayName||(g.displayName="ResponseErrorElement")}catch{}}}]); //# sourceMappingURL=react-core-4cc87e478c8b.js.map