"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["react-core"],{45588:(e,t,r)=>{var n,a;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:()=>g,tH:()=>AbortedDeferredError,tW:()=>S,ue:()=>v,yD:()=>j,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,v=y();function y(){return(p.state||{idx:null}).idx}function g(){f=n.Pop;let e=y(),t=null==e?null:e-v;v=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==v&&(v=0,p.replaceState(o({},p.state,{idx:v}),""));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,g),m=e,()=>{s.removeEventListener(i,g),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 a=d(w.location,e,t);r&&r(a,e);let o=u(a,v=y()+1),i=w.createHref(a);try{p.pushState(o,"",i)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;s.location.assign(i)}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,v=y()),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 v(e,t,r){return void 0===r&&(r="/"),y(e,t,r,!1)}function y(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)=>{var s,c;let u,d,h={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};h.relativePath.startsWith("/")&&(l(h.relativePath.startsWith(a),'Absolute route path "'+h.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),h.relativePath=h.relativePath.slice(a.length));let p=_([a,h.relativePath]),f=n.concat(h);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 "'+p+'".'),e(t.children,r,f,p)),(null!=t.path||t.index)&&r.push({path:p,score:(s=p,c=t.index,d=(u=s.split("/")).length,u.some(w)&&(d+=-2),c&&(d+=2),u.filter(e=>!w(e)).reduce((e,t)=>e+(b.test(t)?3:""===t?1:10),d)),routesMeta:f})};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);o.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)});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){var r;let n;void 0===t&&(t="/");let{pathname:a,search:o="",hash:i=""}="string"==typeof e?p(e):e;return{pathname:a?a.startsWith("/")?a:(r=a,n=t.replace(/\/+$/,"").split("/"),r.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"):t,search:P(o),hash:L(i)}}function k(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 N(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function j(e,t){let r=N(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("?"),k("?","pathname","search",a)),l(!a.pathname||!a.pathname.includes("#"),k("#","pathname","hash",a)),l(!a.search||!a.search.includes("#"),k("#","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]),W={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},B={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,q=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),$="remix-router-transitions";function V(e){let t,r,i,s,u,h,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=q;let w={},S=m(e.routes,t,void 0,w),R=e.basename||"/",E=e.dataStrategy||er,C=e.patchRoutesOnNavigation,k=o({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),N=null,j=new Set,T=null,_=null,A=null,P=null!=e.hydrationData,L=v(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(k.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=[],k.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:W,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=[],ey=new Set,eS=new Map,eN=0,eL=-1,eD=new Map,eO=new Set,eI=new Map,eM=new Map,eU=new Set,ez=new Map,eW=new Map;function eB(e,t){void 0===t&&(t={}),M=o({},M,e);let r=[],n=[];k.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)}),[...j].forEach(e=>e(M,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),k.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,{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}}eB(o({},a,{actionData:c,loaderData:p,historyAction:V,location:t,initialized:!0,navigation:W,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)return void e.history.go(t);let a=G(M.location,M.matches,R,k.v7_prependBasename,t,k.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:i,submission:s,error:l}=Y(k.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),v=te({currentLocation:c,nextLocation:u,historyAction:p});return v?void e9(v,{state:"blocked",location:u,proceed(){e9(v,{state:"proceeding",proceed:void 0,reset:void 0,location:u}),eF(t,r)},reset(){let e=new Map(M.blockers);e.set(v,H),eB({blockers:e})}}):await eq(p,u,{submission:s,pendingError:l,preventScrollReset:f,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:m})}async function eq(t,n,i){var s,l,c,d;let h;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 p=r||S,f=i&&i.overrideNavigation,m=null!=i&&i.initialHydration&&M.matches&&M.matches.length>0&&!O?M.matches:v(p,n,R),y=!0===(i&&i.flushSync);if(m&&M.initialized&&!el&&(c=M.location,d=n,c.pathname===d.pathname&&c.search===d.search&&(""===c.hash?""!==d.hash:c.hash===d.hash||""!==d.hash||!1))&&!(i&&i.submission&&eE(i.submission.formMethod)))return void eH(n,{matches:m},{flushSync:y});let g=to(m,p,n.pathname);if(g.active&&g.matches&&(m=g.matches),!m){let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);eH(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:y});return}u=new AbortController;let b=es(e.history,n,u.signal,i&&i.submission);if(i&&i.pendingError)h=[ep(m).route.id,{type:a.error,error:i.pendingError}];else if(i&&i.submission&&eE(i.submission.formMethod)){let t=await e$(b,n,i.submission,m,g.active,{replace:i.replace,flushSync:y});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}}m=t.matches||m,h=t.pendingActionResult,f=e_(n,i.submission),y=!1,g.active=!1,b=es(e.history,b.url,b.signal)}let{shortCircuited:w,matches:E,loaderData:x,errors:C}=await eV(b,n,m,g.active,f,i&&i.submission,i&&i.fetcherSubmission,i&&i.replace,i&&!0===i.initialHydration,y,h);w||(u=null,eH(n,o({matches:E||m},eh(h),{loaderData:x,errors:C})))}async function e$(e,t,r,o,i,s){var l;let c;if(void 0===s&&(s={}),eZ(),eB({navigation:{state:"submitting",location:t,formMethod:(l=r).formMethod,formAction:l.formAction,formEncType:l.formEncType,formData:l.formData,json:l.json,text:l.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 u=ej(o,t);if(u.route.action||u.route.lazy){if(c=(await eK("action",M,e,[u],o,null))[u.route.id],e.signal.aborted)return{shortCircuited:!0}}else c={type:a.error,error:em(405,{method:e.method,pathname:t.pathname,routeId:u.route.id})};if(ew(c)){let t;return t=s&&null!=s.replace?s.replace:ei(c.response.headers.get("Location"),new URL(e.url),R)===M.location.pathname+M.location.search,await eX(e,c,!0,{submission:r,replace:t}),{shortCircuited:!0}}if(eg(c))throw em(400,{type:"defer-action"});if(eb(c)){let e=ep(o,u.route.id);return!0!==(s&&s.replace)&&(V=n.Push),{matches:o,pendingActionResult:[e.route.id,c]}}return{matches:o,pendingActionResult:[u.route.id,c]}}async function eV(t,n,a,i,s,l,c,d,h,p,f){let m=s||e_(n,l),v=l||c||eT(m),y=!ea&&(!k.v7_partialHydration||!h);if(i){if(y){let e=eG(f);eB(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 g=r||S,[b,w]=X(e.history,M,a,v,n,k.v7_partialHydration&&!0===h,k.v7_skipActionErrorRevalidation,el,ec,ey,eU,eI,eO,g,R,f);if(tr(e=>!(a&&a.some(t=>t.route.id===e))||b&&b.some(t=>t.route.id===e)),eL=++eN,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(y){let e={};if(!i){e.navigation=m;let t=eG(f);void 0!==t&&(e.actionData=t)}w.length>0&&(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)}),e.fetchers=new Map(M.fetchers)),eB(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 N=ev(x);if(N)return await eX(t,N.result,!0,{replace:d}),{shortCircuited:!0};if(N=ev(C))return eO.add(N.key),await eX(t,N.result,!0,{replace:d}),{shortCircuited:!0};let{loaderData:j,errors:T}=eu(M,a,x,f,w,C,ez);ez.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&ez.delete(t)})}),k.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:j,errors:T},P?{fetchers:new Map(M.fetchers)}:{})}function eG(e){if(e&&!eb(e[1]))return{[e[0]]:e[1].data};if(M.actionData)if(0===Object.keys(M.actionData).length)return null;else return M.actionData}async function eY(t,n,a,o,i,s,c,d,h){var p,f;function m(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&&m(o))return;let y=M.fetchers.get(t);e0(t,(p=h,f=y,{state:"submitting",formMethod:p.formMethod,formAction:p.formAction,formEncType:p.formEncType,formData:p.formData,json:p.json,text:p.text,data:f?f.data:void 0}),{flushSync:c});let g=new AbortController,b=es(e.history,a,g.signal,h);if(s){let e=await ti(i,new URL(b.url).pathname,b.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void e1(t,n,e.error,{flushSync:c});if(!e.matches)return void e1(t,n,em(404,{pathname:a}),{flushSync:c});if(m(o=ej(i=e.matches,a)))return}eS.set(t,g);let w=eN,E=(await eK("action",M,b,[o],i,t))[o.route.id];if(b.signal.aborted){eS.get(t)===g&&eS.delete(t);return}if(k.v7_fetcherPersist&&eU.has(t)){if(ew(E)||eb(E))return void e0(t,eP(void 0))}else{if(ew(E))return(eS.delete(t),eL>w)?void e0(t,eP(void 0)):(eO.add(t),e0(t,eA(h)),eX(b,E,!1,{fetcherSubmission:h,preventScrollReset:d}));if(eb(E))return void e1(t,n,E.error)}if(eg(E))throw em(400,{type:"defer-action"});let x=M.navigation.location||M.location,C=es(e.history,x,g.signal),N=r||S,j="idle"!==M.navigation.state?v(N,M.navigation.location,R):M.matches;l(j,"Didn't find any matches after fetcher action");let T=++eN;eD.set(t,T);let _=eA(h,E.data);M.fetchers.set(t,_);let[A,P]=X(e.history,M,j,h,x,!1,k.v7_skipActionErrorRevalidation,el,ec,ey,eU,eI,eO,N,R,[o.route.id,E]);P.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)}),eB({fetchers:new Map(M.fetchers)});let L=()=>P.forEach(e=>e7(e.key));g.signal.addEventListener("abort",L);let{loaderResults:D,fetcherResults:O}=await eQ(M,j,A,P,C);if(g.signal.aborted)return;g.signal.removeEventListener("abort",L),eD.delete(t),eS.delete(t),P.forEach(e=>eS.delete(e.key));let I=ev(D);if(I)return eX(C,I.result,!1,{preventScrollReset:d});if(I=ev(O))return eO.add(I.key),eX(C,I.result,!1,{preventScrollReset:d});let{loaderData:U,errors:z}=eu(M,j,D,void 0,P,O,ez);if(M.fetchers.has(t)){let e=eP(E.data);M.fetchers.set(t,e)}e6(T),"loading"===M.navigation.state&&T>eL?(l(V,"Expected pending action"),u&&u.abort(),eH(M.navigation.location,{matches:j,loaderData:U,errors:z,fetchers:new Map(M.fetchers)})):(eB({errors:z,loaderData:ed(M.loaderData,U,j,z),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)return void e1(t,r,e.error,{flushSync:s});if(!e.matches)return void e1(t,r,em(404,{pathname:n}),{flushSync:s});a=ej(o=e.matches,n)}eS.set(t,h);let f=eN,m=(await eK("loader",M,p,[a],o,t))[a.route.id];if(eg(m)&&(m=await ek(m,p.signal,!0)||m),eS.get(t)===h&&eS.delete(t),!p.signal.aborted){if(eU.has(t))return void e0(t,eP(void 0));if(ew(m))if(eL>f)return void e0(t,eP(void 0));else{eO.add(t),await eX(p,m,!1,{preventScrollReset:c});return}if(eb(m))return void e1(t,r,m.error);l(!eg(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 v=r.response.headers.get("Location");l(v,"Expected a Location header on the redirect Response"),v=ei(v,new URL(t.url),R);let y=d(M.location,v,{_isRedirect:!0});if(f){let t=!1;if(r.response.headers.has("X-Remix-Reload-Document"))t=!0;else if(F.test(v)){let r=e.history.createURL(v);t=r.origin!==p.location.origin||null==x(r.pathname,R)}if(t)return void(m?p.location.replace(v):p.location.assign(v))}u=null;let g=!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 eq(g,y,{submission:o({},E,{formAction:v}),preventScrollReset:h||J,enableViewTransition:a?Q:void 0});else{let e=e_(y,s);await eq(g,y,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:h||J,enableViewTransition:a?Q:void 0})}}async function eK(e,r,n,o,i,s){let c,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))if(function(e){return eR(e.result)&&U.has(e.result.status)}(t)){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,k.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)&&ey.add(t),e7(t)})}function e0(e,t,r){void 0===r&&(r={}),M.fetchers.set(e,t),eB({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),eB({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)||B}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),k.v7_fetcherPersist&&eU.delete(e),ey.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),eW.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),eB({blockers:n})}function te(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===eW.size)return;eW.size>1&&c(!1,"A router only supports one blocker at a time");let a=Array.from(eW.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=>g(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:y(t,r,R,!0)||[]};else if(Object.keys(e[0].params).length>0)return{active:!0,matches:y(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=v(s,n,R);if(c)return{type:"success",matches:c};let u=y(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 k},get state(){return M},get routes(){return S},get window(){return p},initialize:function(){if(N=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(h){h(),h=void 0;return}c(0===eW.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),eB({blockers:e})}});return}return eq(r,n)}),f){var t=p,r=Z;try{let e=t.sessionStorage.getItem($);if(e){let t=JSON.parse(e);for(let[e,n]of Object.entries(t||{}))n&&Array.isArray(n)&&r.set(e,new Set(n||[]))}}catch(e){}let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem($,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||eq(n.Pop,M.location,{initialHydration:!0}),s},subscribe:function(e){return j.add(e),()=>j.delete(e)},enableScrollRestoration:function(e,t,r){if(T=e,A=t,_=r||null,!P&&M.navigation===W){P=!0;let e=ta(M.location,M.matches);null!=e&&eB({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,k.v7_prependBasename,n,k.v7_relativeSplatPath,t,null==a?void 0:a.relative),l=v(i,s,R),c=to(l,i,s);if(c.active&&c.matches&&(l=c.matches),!l)return void e1(e,t,em(404,{pathname:s}),{flushSync:o});let{path:u,submission:d,error:h}=Y(k.v7_normalizeFormMethod,!0,s,a);if(h)return void e1(e,t,h,{flushSync:o});let p=ej(l,u),f=!0===(a&&a.preventScrollReset);if(d&&eE(d.formMethod))return void eY(e,t,u,p,l,c.active,o,f,d);eI.set(e,{routeId:t,path:u}),eJ(e,t,u,p,l,c.active,o,f,d)},revalidate:function(){if(eZ(),eB({revalidation:"loading"}),"submitting"!==M.navigation.state){if("idle"===M.navigation.state)return void eq(M.historyAction,M.location,{startUninterruptedRevalidation:!0});eq(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),k.v7_fetcherPersist||e4(e)):eM.set(e,t),eB({fetchers:new Map(M.fetchers)})},dispose:function(){N&&N(),et&&et(),j.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 eW.get(e)!==t&&eW.set(e,t),r},deleteBlocker:e8,patchRoutes:function(e,n){let a=null==r;ee(e,n,r||S,w,t),a&&(S=[...S],eB({}))},_internalFetchControllers:eS,_internalActiveDeferreds:ez,_internalSetRoutes:function(e){r=m(e,t,void 0,w={})}}}Symbol("deferred");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||".",j(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=eN(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){let a,o;if(!n||!(null!=n&&("formData"in n&&null!=n.formData||"body"in n&&void 0!==n.body)))return{path:r};if(n.formMethod&&!function(e){return M.has(e.toLowerCase())}(n.formMethod))return{path:r,error:em(405,{method:n.formMethod})};let i=()=>({path:r,error:em(400,{type:"invalid-body"})}),s=n.formMethod||"get",c=e?s.toUpperCase():s.toLowerCase(),u=ey(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!eE(c))return i();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+` `},""):String(n.body);return{path:r,submission:{formMethod:c,formAction:u,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if("application/json"===n.formEncType){if(!eE(c))return i();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:c,formAction:u,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return i()}}}if(l("function"==typeof FormData,"FormData is not available in this environment"),n.formData)a=el(n.formData),o=n.formData;else if(n.body instanceof FormData)a=el(n.body),o=n.body;else if(n.body instanceof URLSearchParams)o=ec(a=n.body);else if(null==n.body)a=new URLSearchParams,o=new FormData;else try{a=new URLSearchParams(n.body),o=ec(a)}catch(e){return i()}let d={formMethod:c,formAction:u,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(eE(d.formMethod))return{path:r,submission:d};let f=p(r);return t&&f.search&&eN(f.search)&&a.append("index",""),f.search="?"+a,{path:h(f),submission:d}}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,y){let g=y?eb(y[1])?y[1].error:y[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):y&&eb(y[1])&&(S=J(r,y[0]));let R=y?y[1].statusCode:void 0,E=s&&R&&R>=400,x=S.filter((e,r)=>{var a,s,u;let d,h,{route:p}=e;if(p.lazy)return!0;if(null==p.loader)return!1;if(i)return K(p,t.loaderData,t.errors);if(a=t.loaderData,s=t.matches[r],u=e,d=!s||u.route.id!==s.route.id,h=void 0===a[u.route.id],d||h||c.some(t=>t===e.route.id))return!0;let f=t.matches[r];return Z(e,o({currentUrl:b,currentParams:f.params,nextUrl:w,nextParams:e.params},n,{actionResult:g,actionStatus:R,defaultShouldRevalidate:!E&&(l||b.pathname+b.search===w.pathname+w.search||b.search!==w.search||Q(f,e))}))}),C=[];return h.forEach((e,a)=>{if(i||!r.some(t=>t.route.id===e.routeId)||d.has(a))return;let s=v(f,e.path,m);if(!s)return void C.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let c=t.fetchers.get(a),h=ej(s,e.path),y=!1;p.has(a)?y=!1:u.has(a)?(u.delete(a),y=!0):y=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:g,actionStatus:R,defaultShouldRevalidate:!E&&l})),y&&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,u=n=>{let a,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,[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,u;let{result:d,type:h}=e;if(eR(d)){let e;try{let t=d.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==d.body?null:await d.json():await d.text()}catch(e){return{type:a.error,error:e}}return h===a.error?{type:a.error,error:new ErrorResponseImpl(d.status,d.statusText,e),statusCode:d.status,headers:d.headers}:{type:a.data,data:e,statusCode:d.status,headers:d.headers}}if(h===a.error)return eS(d)?d.data instanceof Error?{type:a.error,error:d.data,statusCode:null==(n=d.init)?void 0:n.status,headers:null!=(o=d.init)&&o.headers?new Headers(d.init.headers):void 0}:{type:a.error,error:new ErrorResponseImpl((null==(t=d.init)?void 0:t.status)||500,void 0,d.data),statusCode:D(d)?d.status:void 0,headers:null!=(r=d.init)&&r.headers?new Headers(d.init.headers):void 0}:{type:a.error,error:d,statusCode:D(d)?d.status:void 0};return(u=d)&&"object"==typeof u&&"object"==typeof u.data&&"function"==typeof u.subscribe&&"function"==typeof u.cancel&&"function"==typeof u.resolveData?{type:a.deferred,deferredData:d,statusCode:null==(i=d.init)?void 0:i.status,headers:(null==(s=d.init)?void 0:s.headers)&&new Headers(d.init.headers)}:eS(d)?{type:a.data,data:d.data,statusCode:null==(l=d.init)?void 0:l.status,headers:null!=(c=d.init)&&c.headers?new Headers(d.init.headers):void 0}:{type:a.data,data:d}}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(ey(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){var c,u,d,h,p;let f,m,v,y,g,b,{loaderData:w,errors:S}=(c=t,u=r,d=n,h=s,p=!1,m={},v=null,y=!1,g={},b=d&&eb(d[1])?d[1].error:void 0,c.forEach(e=>{if(!(e.route.id in u))return;let t=e.route.id,r=u[t];if(l(!ew(r),"Cannot handle redirect results in processLoaderData"),eb(r)){let e=r.error;if(void 0!==b&&(e=b,b=void 0),v=v||{},p)v[t]=e;else{let r=ep(c,t);null==v[r.route.id]&&(v[r.route.id]=e)}m[t]=void 0,y||(y=!0,f=D(r.error)?r.error.status:500),r.headers&&(g[t]=r.headers)}else eg(r)?(h.set(t,r.deferredData),m[t]=r.deferredData.data,null==r.statusCode||200===r.statusCode||y||(f=r.statusCode)):(m[t]=r.data,r.statusCode&&200!==r.statusCode&&!y&&(f=r.statusCode)),r.headers&&(g[t]=r.headers)}),void 0!==b&&d&&(v={[d[0]]:b},m[d[0]]=void 0),{loaderData:m,errors:v,statusCode:f||200,loaderHeaders:g});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);S&&S[t.route.id]||(S=o({},S,{[t.route.id]:s.error})),e.fetchers.delete(r)}else if(ew(s))l(!1,"Unhandled fetcher revalidation redirect");else if(eg(s))l(!1,"Unhandled fetcher deferred data");else{let t=eP(s.data);e.fetchers.set(r,t)}}),{loaderData:w,errors:S}}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 ev(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 ey(e){let t="string"==typeof e?p(e):e;return h(o({},t,{hash:""}))}function eg(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;eg(l)&&d&&await ek(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)&&eg(s)&&(l(i,"Expected an AbortController for revalidating fetcher deferred result"),await ek(s,i.signal,!0).then(e=>{e&&(t[a]=e)}))}}async function ek(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 eN(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function ej(e,t){let r="string"==typeof t?p(t).search:t.search;if(e[e.length-1].route.index&&eN(r||""))return e[e.length-1];let n=N(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};else if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};else 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}}},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:()=>v,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)},v=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:()=>A,K:()=>I,N_:()=>N,OA:()=>T,PI:()=>p,Ys:()=>y,k2:()=>j,ok:()=>P,pg:()=>E});var n,a,o,i,s=r(96540),l=r(40961),c=r(47767),u=r(45588);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=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]),m=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],v=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"];try{window.__reactRouterVersion="6"}catch(e){}function y(e,t){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)||function(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=d({},t,{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}(t.errors)})),t}(),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}),b=s.createContext(new Map),w=(n||(n=r.t(s,2))).startTransition,S=(a||(a=r.t(l,2))).flushSync;function R(e){S?S(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 E(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(),[v,y]=s.useState(),S=s.useRef(new Map),{v7_startTransition:E}=n||{},C=s.useCallback(e=>{if(E)w?w(e):e();else e()},[E]),k=s.useCallback((e,t)=>{let{deletedFetchers:n,flushSync:a,viewTransitionOpts:i}=t;e.fetchers.forEach((e,t)=>{void 0!==e.data&&S.current.set(t,e.data)}),n.forEach(e=>S.current.delete(e));let s=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(!i||s)return void(a?R(()=>o(e)):C(()=>o(e)));if(a){R(()=>{f&&(h&&h.resolve(),f.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=r.window.document.startViewTransition(()=>{R(()=>o(e))});t.finished.finally(()=>{R(()=>{p(void 0),m(void 0),l(void 0),d({isTransitioning:!1})})}),R(()=>m(t));return}f?(h&&h.resolve(),f.skipTransition(),y({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,S,C]);s.useLayoutEffect(()=>r.subscribe(k),[r,k]),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&&v&&(l(v.state),d({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),y(void 0))},[u.isTransitioning,v]),s.useEffect(()=>{},[]);let N=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]),j=r.basename||"/",T=s.useMemo(()=>({router:r,navigator:N,static:!1,basename:j}),[r,N,j]),_=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(b.Provider,{value:S.current},s.createElement(g.Provider,{value:u},s.createElement(c.Ix,{basename:j,location:a.location,navigationType:a.historyAction,navigator:N,future:_},a.initialized||r.future.v7_partialHydration?s.createElement(x,{routes:r.routes,future:r.future,state:a}):t))))),null)}let x=s.memo(function(e){let{routes:t,future:r,state:n}=e;return(0,c.ph)(t,void 0,n,r)}),C="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,k=/^(?:[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:f,preventScrollReset:v,viewTransition:y}=e,g=h(e,m),{basename:b}=s.useContext(c.jb),w=!1;if("string"==typeof f&&k.test(f)&&(r=f,C))try{let e=new URL(window.location.href),t=new URL(f.startsWith("//")?e.protocol+f:f),r=(0,u.pb)(t.pathname,b);t.origin===e.origin&&null!=r?f=r+t.search+t.hash:w=!0}catch(e){}let S=(0,c.$P)(f,{relative:a}),R=A(f,{replace:i,state:l,target:p,preventScrollReset:v,relative:a,viewTransition:y});return s.createElement("a",d({},g,{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:m,children:y}=e,b=h(e,v),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}=_(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===m,k=E.encodeLocation?E.encodeLocation(w).pathname:w.pathname,j=S.pathname,T=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;a||(j=j.toLowerCase(),T=T?T.toLowerCase():null,k=k.toLowerCase()),T&&x&&(T=(0,u.pb)(T,x)||T);let A="/"!==k&&k.endsWith("/")?k.length-1:k.length,P=j===k||!l&&j.startsWith(k)&&"/"===j.charAt(A),L=null!=T&&(T===k||!l&&T.startsWith(k)&&"/"===T.charAt(k.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:m}),"function"==typeof y?y(D):y)});function T(e){let{getKey:t,storageKey:r}=e;return function(e){let{getKey:t,storageKey:r}=void 0===e?{}:e,{router:n}=_(o.UseScrollRestoration),{restoreScrollPosition:a,preventScrollReset:l}=function(e){let t=s.useContext(c.Rq);return t||(0,u.Oi)(!1),t}(i.UseScrollRestoration),{basename:h}=s.useContext(c.jb),p=(0,c.zy)(),f=(0,c.FE)(),m=(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"===m.state&&(O[(t?t(p,f):null)||p.key]=window.scrollY);try{sessionStorage.setItem(r||D,JSON.stringify(O))}catch(e){}window.history.scrollRestoration="auto"},[r,t,m.state,p,f])),"undefined"!=typeof document&&(s.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(r||D);e&&(O=JSON.parse(e))}catch(e){}},[r]),s.useLayoutEffect(()=>{let e=t&&"/"!==h?(e,r)=>t(d({},e,{pathname:(0,u.pb)(e.pathname,h)||e.pathname}),r):t,r=null==n?void 0:n.enableScrollRestoration(O,()=>window.scrollY,e);return()=>r&&r()},[n,h,t]),s.useLayoutEffect(()=>{if(!1!==a){if("number"==typeof a)return void window.scrollTo(0,a);if(p.hash){let e=document.getElementById(decodeURIComponent(p.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==l&&window.scrollTo(0,0)}},[p,a,l]))}({getKey:t,storageKey:r}),null}function _(e){let t=s.useContext(c.sp);return t||(0,u.Oi)(!1),t}!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={}));function A(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 P(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]}let L=0,D="react-router-scroll-positions",O={};function I(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:()=>f,BV:()=>G,C5:()=>F,Ew:()=>I,FE:()=>D,Ix:()=>V,KP:()=>z,LG:()=>O,RQ:()=>g,Rq:()=>l,V8:()=>H,Ye:()=>x,Zp:()=>w,cq:()=>L,g:()=>R,jb:()=>u,ph:()=>C,qh:()=>$,r5:()=>M,sp:()=>s,sv:()=>q,wE:()=>X,wQ:()=>y,x$:()=>E,zy:()=>v});var n,a=r(96540),o=r(45588);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 b(e){a.useContext(u).static||a.useLayoutEffect(e)}function w(){let{isDataRoute:e}=a.useContext(h);return e?function(){let{router:e}=_(j.UseNavigateStable),t=P(T.UseNavigateStable),r=a.useRef(!1);return b(()=>{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(){m()||(0,o.Oi)(!1);let e=a.useContext(s),{basename:t,future:r,navigator:n}=a.useContext(u),{matches:i}=a.useContext(h),{pathname:l}=v(),c=JSON.stringify((0,o.yD)(i,r.v7_relativeSplatPath)),d=a.useRef(!1);return b(()=>{d.current=!0}),a.useCallback(function(r,a){if(void 0===a&&(a={}),!d.current)return;if("number"==typeof r)return void n.go(r);let i=(0,o.Gh)(r,JSON.parse(c),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,c,l,e])}()}let S=a.createContext(null);function R(){let{matches:e}=a.useContext(h),t=e[e.length-1];return t?t.params:{}}function E(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=a.useContext(u),{matches:i}=a.useContext(h),{pathname:s}=v(),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 x(e,t){return C(e,t)}function C(e,t,r,n){let s;m()||(0,o.Oi)(!1);let{navigator:l}=a.useContext(u),{matches:c}=a.useContext(h),p=c[c.length-1],f=p?p.params:{};p&&p.pathname;let y=p?p.pathnameBase:"/";p&&p.route;let g=v();if(t){var b;let e="string"==typeof t?(0,o.Rr)(t):t;"/"===y||(null==(b=e.pathname)?void 0:b.startsWith(y))||(0,o.Oi)(!1),s=e}else s=g;let w=s.pathname||"/",S=w;if("/"!==y){let e=y.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,s;let h,p=!1,f=null,m=null;r&&(h=c&&n.route.id?c[n.route.id]:void 0,f=n.route.errorElement||k,u&&(d<0&&0===o?(i="route-fallback",s=0,W[i]||(W[i]=!0),p=!0,m=null):d===o&&(p=!0,m=n.route.hydrateFallbackElement||null)));let v=t.concat(l.slice(0,o+1)),y=()=>{let t;return t=h?f:p?m: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:v,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:f,error:h,children:y(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):y()},null)}(R&&R.map(e=>Object.assign({},e,{params:Object.assign({},f,e.params),pathname:(0,o.HS)([y,l.encodeLocation?l.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?y:(0,o.HS)([y,l.encodeLocation?l.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),c,r,n);return t&&E?a.createElement(d.Provider,{value:{location:i({pathname:"/",search:"",hash:"",state:null,key:"default"},s),navigationType:o.rc.Pop}},E):E}let k=a.createElement(function(){let e=M(),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(h.Provider,{value:this.props.routeContext},a.createElement(p.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(h.Provider,{value:t},n)}var j=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(j||{}),T=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}(T||{});function _(e){let t=a.useContext(s);return t||(0,o.Oi)(!1),t}function A(e){let t=a.useContext(l);return t||(0,o.Oi)(!1),t}function P(e){let t,r=((t=a.useContext(h))||(0,o.Oi)(!1),t),n=r.matches[r.matches.length-1];return n.route.id||(0,o.Oi)(!1),n.route.id}function L(){return A(T.UseNavigation).navigation}function D(){let{matches:e,loaderData:t}=A(T.UseMatches);return a.useMemo(()=>e.map(e=>(0,o.ro)(e,t)),[e,t])}function O(){let e=A(T.UseLoaderData),t=P(T.UseLoaderData);return e.errors&&null!=e.errors[t]?void console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")"):e.loaderData[t]}function I(e){return A(T.UseRouteLoaderData).loaderData[e]}function M(){var e;let t=a.useContext(p),r=A(T.UseRouteError),n=P(T.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}let U=0;function z(e){let{router:t,basename:r}=_(j.UseBlocker),n=A(T.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(++U);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 W={},B=(e,t,r)=>{};function H(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"))}(n||(n=r.t(a,2))).startTransition;function F(e){let{to:t,replace:r,state:n,relative:i}=e;m()||(0,o.Oi)(!1);let{future:s,static:l}=a.useContext(u),{matches:c}=a.useContext(h),{pathname:d}=v(),p=w(),f=JSON.stringify((0,o.Gh)(t,(0,o.yD)(c,s.v7_relativeSplatPath),d,"path"===i));return a.useEffect(()=>p(JSON.parse(f),{replace:r,state:n,relative:i}),[p,f,i,r,n]),null}function q(e){var t;let r;return t=e.context,(r=a.useContext(h).outlet)?a.createElement(S.Provider,{value:t},r):r}function $(e){(0,o.Oi)(!1)}function V(e){let{basename:t="/",children:r=null,location:n,navigationType:s=o.rc.Pop,navigator:l,static:c=!1,future:h}=e;m()&&(0,o.Oi)(!1);let p=t.replace(/^\/*/,"/"),f=a.useMemo(()=>({basename:p,navigator:l,static:c,future:i({v7_relativeSplatPath:!1},h)}),[p,h,l,c]);"string"==typeof n&&(n=(0,o.Rr)(n));let{pathname:v="/",search:y="",hash:g="",state:b=null,key:w="default"}=n,S=a.useMemo(()=>{let e=(0,o.pb)(v,p);return null==e?null:{location:{pathname:e,search:y,hash:g,state:b,key:w},navigationType:s}},[p,v,y,g,b,w,s]);return null==S?null:a.createElement(u.Provider,{value:f},a.createElement(d.Provider,{children:r,value:S}))}function G(e){let{children:t,location:r}=e;return C(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)return void n.push.apply(n,e(t.props.children,s));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)}var Y=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(Y||{});let J=new Promise(()=>{});a.Component;function X(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}},38267:(e,t,r)=>{r.d(t,{AH:()=>em,Ay:()=>e_,DU:()=>ej,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=N&&(N=t+1),C.set(e,t),k.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*/ `}}}return n}(this)},e}(),H=/(a)(d)/gi,F=function(e){return String.fromCharCode(e+(e>25?39:97))};function q(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 $=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},V=function(e){return $(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=$(this.baseHash,r.hash),u="",d=0;d>>0);if(!t.hasNameForId(n,m)){var v=r(u,"."+m,void 0,n);t.insertRules(n,m,v)}a.push(m)}}return a.join(" ")},e}(),X=/^\s*\/\/.*$/gm,K=[":","[",".","#"];function Q(e){var t,r,n,a,o=void 0===e?v:e,i=o.options,l=void 0===i?v: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 y(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}}])),y.hash=u.length?u.reduce(function(e,t){return t.name||E(15),$(e,t.name)},5381).toString():"",y}var Z=a.createContext(),ee=(Z.Consumer,a.createContext()),et=(ee.Consumer,new B),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,eg=/(^-|-$)/g;function eb(e){return e.replace(ey,"-").replace(eg,"")}var ew=function(e){return q(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,r?y(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={},ek=function(e){return function e(t,r,a){if(void 0===a&&(a=v),!(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[k="string"!=typeof x?"sc":eb(x)]=(eC[k]||0)+1,N=k+"-"+ew("5.3.11"+k+eC[k]),C?C+"-"+N:N):u,f=r.displayName,w=void 0===f?eS(t)?"styled."+t:"Styled("+g(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,k,N,j,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,g=e.shouldForwardProp,b=e.styledComponentId,w=e.target,S=(o=ev(t,(0,a.useContext)(eE),f)||v,void 0===o&&(o=v),i=h({},t,{theme:o}),s={},d.forEach(function(e){var t,r,n,a=e;for(t in y(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(v,l,u):p.generateAndInjectStyles(R,l,u)),C=E.$as||t.$as||E.as||t.as||w,k=eS(C),N=E!==t?h({},t,{},E):t,j={};for(var T in N)"$"!==T[0]&&"as"!==T&&("forwardedAs"===T?j.as=N[T]:(g?g(T,c.A,C):!k||(0,c.A)(T))&&(j[T]=N[T]));return t.style&&E.style!==t.style&&(j.style=h({},t.style,{},E.style)),j.className=Array.prototype.concat(m,b,x!==b?x:null,t.className,E.className).filter(Boolean).join(" "),j.ref=r,(0,a.createElement)(C,j)}(j,e,t,_)};return A.displayName=w,(j=a.forwardRef(A)).attrs=R,j.componentStyle=T,j.displayName=w,j.shouldForwardProp=E,j.foldedComponentIds=o?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):m,j.styledComponentId=S,j.target=o?t.target:t,j.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(g(t)));return e(t,h({},o,{attrs:R,componentId:i}),n)},Object.defineProperty(j,"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&&B.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function ej(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 B({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_=ek},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,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){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");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){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,r)}function s(e,t,r){var n=a(e,t,"set");if(n.set)n.set.call(e,r);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=r}return 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={...t,init:{...t?.init,headers:{...r,...t?.init?.headers}}};var i=await (0,o.X)({queryDeps:a}),s=e;let l=i.payload?.[s];if(!l)throw Error(`Unable to find payload for route Id: ${s}`);return{meta:i.meta,payload:l}},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(58394);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 v(e,t,r){p(e,t),t.set(e,r)}function y(e,t,r){var n=f(e,t,"set");if(n.set)n.set.call(e,r);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=r}return r}function g(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,k=new WeakMap,N=new WeakSet,j=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,N),b(this,T),v(this,C,{writable:!0,value:void 0}),v(this,k,{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),v(this,j,{writable:!0,value:async({request:e,params:t})=>{!function(e){a.KJ&&!x.has(e)&&((0,n.SC)("react"),x.add(e))}(e);let r=[],{searchParams:i}=new URL(e.url,a.fV.origin),u=function(e,t){return(0,s.tW)(e,Object.fromEntries(P(t).map(([e,t])=>[e,void 0===t?null:t])))}(this.path,t),d=(0,l.S)(),h=P(this.queries).map(([e,{queryFn:n,queryDeps:s,type:l=c.g.Deferred,staleTimeForNavigation:h=E,...p}])=>{let f=s?.({pathname:u,params:t,searchParams:i})??{},v={appName:m(this,C),routeId:this.id,routePath:this.path,queryName:e.toString(),queryDeps:f},y=(0,o.j)({...R,queryKey:function({appName:e,routeId:t,routePath:r,queryName:n,queryDeps:a}){return[e,t,r,n,a]}(v),queryFn:({signal:e,meta:t})=>n(v,{signal:e,meta:t}),...p});if(g(this,N,_).call(this,e,y.queryKey),a.KJ){let e={...y,staleTime:h};switch(l){case c.g.Deferred:d.prefetchQuery(e);break;case c.g.Blocking:{let t=d.ensureQueryData({...e,revalidateIfStale:!0});r.push(t);break}default:throw Error(`Invalid QueryRouteQueryType defined, \`${l}\`. Valid QueryRouteQueryTypes are ${JSON.stringify(Object.keys(c.g))}`)}}return[e,{queryConfig:y,type:l}]});return await Promise.all(r),{route:this,queries:Object.fromEntries(h)}}}),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,j),element:h(this.id,{element:t,Component:e})}:{...r,id:this.id,path:this.path,index:this.index,loader:m(this,j),element:h(this.id,{element:t,Component:e})}),y(this,C,e.appName),this.id=e.id,this.path=e.path,this.queries=e.queries,this.index=e.index,y(this,k,e.getEmbeddedData)}};function _(e,t){let r=(0,l.S)(),n=m(this,k).call(this),a=n?.payload,o=g(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,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,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,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,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,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),v=r(40982),y=r(45499),g=r(64262),b=r(21728),w=r(96540),S=r(32494);function R(e,t,r){let n,a,o,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),k=r(21715),N=r(11608),j=r(12201);let T=k.z.INITIAL;function _(){let e,t,r,n,a=(0,b.c)(10),o=(0,g.X)(),i=(0,j.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===N.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 W(){D.cg&&(M||(await z(),M=!0))}function B(){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)(B)}:L.l;function F(){let e,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)}W();try{F.displayName||(F.displayName="CombinedScrollRestoration")}catch{}var q=r(97396),$=r(78284),V=r(7479);let G=(e,t,r)=>{let n,a,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,$.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,q.o4)():((0,q.rZ)(),(0,q.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,r=(0,b.c)(4),n=(0,j.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,ev))||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))return void this.navigateWithCurrentPayload(e);"POP"!==e.action&&(0,q.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)return void this.navigateWithoutPayload(e);let r=(0,i.JV)().usr?.__prefetched_data;if(r)return void this.leaveLoadingStateWithRouteData(e,r,r.title);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,r;return t=this.routes,r=e,(0,ea.ue)(t,r.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 ev(e){for(let t of ec(this,eh))t?.(e)}function ey(e){let t,r,a,o,i,s,l,c=(0,b.c)(28),{appName:u,initialLocation:d,history:h,embeddedData:v,routes:y,App:g,wasServerRendered:S,ssrError:E,onError:x}=e;c[0]!==u||c[1]!==v||c[2]!==d||c[3]!==y?(t={initialLocation:d,appName:u,embeddedData:v,routes:y},c[0]=u,c[1]=v,c[2]=d,c[3]=y,c[4]=t):t=c[4];let[C,k]=function(e){let t,r,n,a,o,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:N,error:j,routeStateMap:T,appPayload:_,navigateOnError:A,isLoading:P}=C,{handleHistoryUpdate:L}=k;return!function(e,t,r){let n,a,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[N.key],j,N),R(P,N),G(N,P,j),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]!==g||c[12]!==_||c[13]!==j||c[14]!==h||c[15]!==N||c[16]!==A||c[17]!==T||c[18]!==y||c[19]!==o?(i=(0,n.jsx)(en.l,{App:g,appPayload:_,error:j,history:h,location:N,navigateOnError:A,Router:p.Ix,routes:y,routeStateMap:T,children:o}),c[11]=g,c[12]=_,c[13]=j,c[14]=h,c[15]=N,c[16]=A,c[17]=T,c[18]=y,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}W();try{ey.displayName||(ey.displayName="NavigatorClientEntry")}catch{}var eg=r(58394),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){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");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 ek=()=>Math.random().toString(36).substr(2,8);var eN=new WeakSet,ej=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,eN,eT).call(this,e,t,r.registration)}let r=await et(this.name);return eE(this,ej,e_).call(this,e,t,r.registration)}get isLazy(){return"true"===this.getAttribute("data-lazy")}constructor(...e){super(...e),ex(this,eN),ex(this,ej),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)(g.z.Provider,{value:l,children:(0,n.jsxs)(y.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)(v.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)(eg.f,{appName:this.name,isDataRouterEnabled:!0,children:(0,n.jsx)(eg.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:ek()});let p=(0,l.z)({window:c});this.routerOrHistory=p;let{key:f,state:m}=p.location;return(0,n.jsx)(eg.f,{appName:this.name,isDataRouterEnabled:!1,children:(0,n.jsx)(eg.U,{id:this.name,children:(0,n.jsx)(ey,{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(58394),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(){var e;return l(RouterStore,RouterStore,f)||(e=new RouterStore,c(RouterStore,RouterStore),o(f,"set"),a(RouterStore,f,e)),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){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");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){var t;return void 0!==e&&(t=e,c.has(t))?u[e]:e}let h=i.XC?function(){let e,t,r,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=()=>(0,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:()=>v});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 v(e){let t,r,v,y,g,b,w,S=(0,a.c)(20),{appName:R,children:E,wasServerRendered:x,dataRouterEnabled:C}=e,{colorMode:k,dayScheme:N,nightScheme:j}=(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?(v=(0,n.jsx)(d.V,{appName:R,children:r}),S[3]=R,S[4]=r,S[5]=v):v=S[5],S[6]!==C||S[7]!==v?(y=(0,n.jsx)(u.v,{enabled:C,children:v}),S[6]=C,S[7]=v,S[8]=y):y=S[8],S[9]!==k||S[10]!==N||S[11]!==j||S[12]!==y?(g=(0,n.jsx)(h.n,{children:(0,n.jsx)(l.NP,{colorMode:k,dayScheme:N,nightScheme:j,preventSSRMismatch:!0,children:y})}),S[9]=k,S[10]=N,S[11]=j,S[12]=y,S[13]=g):g=S[13],S[14]!==R||S[15]!==g?(b=(0,n.jsx)(o.y,{appName:R,category:"",metadata:m,children:g}),S[14]=R,S[15]=g,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{v.displayName||(v.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,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,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,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,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 e({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,v=(0,a.c)(14);v[0]!==e?({to:p,reloadDocument:h,preventAutofocus:r,...d}=e,v[0]=e,v[1]=r,v[2]=d,v[3]=h,v[4]=p):(r=v[1],d=v[2],h=v[3],p=v[4]);let{routes:y}=(0,i.useContext)(u.k),g=(0,s.o1)(p,o.fV.pathname).pathname;return h=h??!(0,s.ue)(y,g),v[5]!==r||v[6]!==d.state?(f=r?{[c.V]:!0,...d.state}:d.state,v[5]=r,v[6]=d.state,v[7]=f):f=v[7],v[8]!==d||v[9]!==t||v[10]!==h||v[11]!==f||v[12]!==p?(m=(0,n.jsx)(l.N_,{to:p,...d,state:f,reloadDocument:h,ref:t}),v[8]=d,v[9]=t,v[10]=h,v[11]=f,v[12]=p,v[13]=m):m=v[13],m});d.displayName="Link";let h=(0,i.forwardRef)(function(e,t){let r,d,h,p,f,m,v=(0,a.c)(14);v[0]!==e?({to:p,reloadDocument:h,preventAutofocus:r,...d}=e,v[0]=e,v[1]=r,v[2]=d,v[3]=h,v[4]=p):(r=v[1],d=v[2],h=v[3],p=v[4]);let{routes:y}=(0,i.useContext)(u.k),g=(0,s.o1)(p,o.fV.pathname).pathname;return h=h??!(0,s.ue)(y,g),v[5]!==r||v[6]!==d.state?(f=r?{[c.V]:!0,...d.state}:d.state,v[5]=r,v[6]=d.state,v[7]=f):f=v[7],v[8]!==d||v[9]!==t||v[10]!==h||v[11]!==f||v[12]!==p?(m=(0,n.jsx)(l.k2,{to:p,...d,state:f,reloadDocument:h,ref:t}),v[8]=d,v[9]=t,v[10]=h,v[11]=f,v[12]=p,v[13]=m):m=v[13],m});try{h.displayName||(h.displayName="NavLink")}catch{}},52507:(e,t,r)=>{r.d(t,{C:()=>v,l:()=>y});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,r=(0,a.c)(2),{App:d}=e;return!function(){let e,t,r,n,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 v=(0,o.createContext)(null);function y(e){let t,r,o=(0,a.c)(14),{App:i,appPayload:s,children:l,error:u,history:d,location:y,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]!==y||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)(v.Provider,{value:u,children:(0,n.jsx)(p.Y.Provider,{value:R,children:(0,n.jsxs)(w,{location:y,navigator:d,future:{v7_relativeSplatPath:!0},children:[(0,n.jsx)(g,{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]=y,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 g(e){let t,r,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{v.displayName||(v.displayName="NavigationErrorContext")}catch{}try{y.displayName||(y.displayName="NavigatorRouter")}catch{}try{g.displayName||(g.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,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,f=(0,a.c)(17),{partialName:m,embeddedData:v,Component:y,wasServerRendered:g,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]!==y||f[2]!==v.props?(r=(0,n.jsx)(y,{...v.props}),f[1]=y,f[2]=v.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]!==g?(p=(0,n.jsx)(o.U,{appName:m,wasServerRendered:g,dataRouterEnabled:!1,children:u}),f[13]=m,f[14]=u,f[15]=g,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,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{}},58394:(e,t,r)=>{r.d(t,{U:()=>h,f:()=>u});var n=r(74848),a=r(21728),o=r(13233),i=r(96540),s=r(27851),l=r(7479);let c=(0,i.createContext)(null),u=(0,i.memo)(function(e){let t,r,o=(0,a.c)(6),{isDataRouterEnabled:u,appName:d,children:h}=e;o[0]!==d||o[1]!==u?(t={appName:d,isDataRouterEnabled:u},o[0]=d,o[1]=u,o[2]=t):t=o[2];let{onRender:p}=function(e){let t,r,n=(0,a.c)(5),{appName:o,isDataRouterEnabled:c}=e;n[0]!==o||n[1]!==c?(t=(e,t,r,n,a,u)=>{"undefined"!=typeof window&&(0,s.G7)("react_quality_profiling")&&(0,l.i)({requestUrl:window.location.href,reactRenderPerformance:{actualDuration:r,baseDuration:n,commitLag:u-a,phase:t,appName:o,isDataRouterEnabled:c,componentId:e,reactVersion:i.version}})},n[0]=o,n[1]=c,n[2]=t):t=n[2];let u=t;return n[3]!==u?(r={onRender:u},n[3]=u,n[4]=r):r=n[4],r}(t);return o[3]!==h||o[4]!==p?(r=(0,n.jsx)(c.Provider,{value:p,children:h}),o[3]=h,o[4]=p,o[5]=r):r=o[5],r}),d=()=>(0,i.useContext)(c),h=(0,i.memo)(function(e){let t,r=(0,a.c)(4),{id:s,children:l}=e,c=d()??o.l;return r[0]!==l||r[1]!==s||r[2]!==c?(t=(0,n.jsx)(i.Profiler,{id:s,onRender:c,children:l}),r[0]=l,r[1]=s,r[2]=c,r[3]=t):t=r[3],t});try{c.displayName||(c.displayName="ProfilerContext")}catch{}try{u.displayName||(u.displayName="ProfilerProvider")}catch{}try{h.displayName||(h.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){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function p(e,t){var r=h(e,t,"get");return r.get?r.get.call(e):r.value}function f(e,t,r){d(e,t),t.set(e,r)}function m(e,t,r){var n=h(e,t,"set");if(n.set)n.set.call(e,r);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=r}return r}function v(e,t,r){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return r}function y(e,t){d(e,t),t.add(e)}function g(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 b=/Minified React error #(?\d+)/,w=["419","421"];var S=new WeakMap,R=new WeakMap,E=new WeakSet,x=new WeakSet,C=new WeakSet,k=new WeakSet;let ReactBaseElement=class ReactBaseElement extends HTMLElement{get name(){return this.getAttribute(this.nameAttribute)}get hasSSRContent(){return"true"===this.getAttribute("data-ssr")}get attemptedSSR(){return"true"===this.getAttribute("data-attempted-ssr")}connectedCallback(){v(this,x,T).call(this)}disconnectedCallback(){p(this,S)?.unmount(),m(this,S,void 0)}constructor(...e){super(...e),f(this,R,{get:N,set:void 0}),y(this,E),y(this,x),y(this,C),y(this,k),f(this,S,{writable:!0,value:void 0})}};function N(){let e=this.embeddedData?.textContent;if(!e)throw Error(`No embedded data provided for react element ${this.name}`);return e}function j(){return i.A.isEnabled()||"true"===this.getAttribute("data-react-profiling")}async function T(){if(!this.reactRoot)throw Error("No react root provided");let e={createRoot:c.H,hydrateRoot:c.c};v(this,E,j).call(this)&&(e=await v(this,C,_).call(this));let t=!1,r=JSON.parse(p(this,R)),a=this.ssrError?.textContent,i=await this.getReactNode(r,(e,r={})=>{t=!0;let n={critical:!0,reactAppName:this.name,...r};setTimeout(()=>{(0,o.N7)(e,n)})}),u=(0,n.jsx)(l.StrictMode,{children:i});if(a&&v(this,k,A).call(this,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);m(this,S,e.hydrateRoot(this.reactRoot,u,{onRecoverableError:(e,r)=>{if(!(e instanceof Error))return;let n=b.exec(e.message),a=String(n?.groups?.invariant);t=!w.includes(a),(0,s.i)({incrementKey:"REACT_HYDRATION_ERROR",incrementTags:{appName:this.name,invariant:a},requestUrl:window.location.href}),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 m(this,S,e.createRoot(this.reactRoot)),p(this,S).render(u),(0,s.i)({incrementKey:"REACT_RENDER",incrementTags:{appName:this.name,csr:!0,error:t,ssr:this.attemptedSSR,ssrError:!!this.ssrError}});this.classList.add("loaded")}function _(){return r.e("react-profiling").then(r.t.bind(r,87335,19))}function A(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=` `;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(` `)}(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")}}}g([a.aC],ReactBaseElement.prototype,"embeddedData",void 0),g([a.aC],ReactBaseElement.prototype,"ssrError",void 0),g([a.aC],ReactBaseElement.prototype,"reactRoot",void 0);try{b.displayName||(b.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,c=(0,a.c)(9),{routes:u}=e,d=(0,i.zy)();return c[0]!==d||c[1]!==u?(r=(0,s.ue)(u,d)?.map(v)??[],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,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,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 o of e){let e,i=!0===o.index,s=o.path??"";if(i)e=t.startsWith("/")&&!t.endsWith("/")?t.endsWith("/")?t:`${t}/`:t||"/";else{var n,a;e=s.startsWith("/")?s:(n=t,a=s,n?a?`${n.replace(/\/+$/,"")}/${a.replace(/^\/+/,"")}`:n:a)}let l="id"in o&&"string"==typeof o.id?o.id:e||"/";r.push({id:l,pathname:e||"/",route:o}),o.children&&r.push(...m(o.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 v(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,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,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,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 v=c;return d[7]!==p?(u=(0,n.jsx)(l.Provider,{value:v,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:()=>v,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,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,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 v=e=>{let t,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)(y,{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 y(e){let t,r,l,c,u,h,f,m,v,y=(0,a.c)(11),{appName:g,responseError:b}=e,w=(0,a.c)(3),S=b.response.status;w[0]!==S?(m=()=>{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)}(S);(0,d.D)(e)},v=[S],w[0]=S,w[1]=m,w[2]=v):(m=w[1],v=w[2]),(0,s.useEffect)(m,v);let R=(0,s.useRef)(g);y[0]!==g?(t=()=>{R.current=g},y[0]=g,y[1]=t):t=y[1],(0,s.useEffect)(t),y[2]!==b?(r=()=>{p(b,e=>{(0,o.N7)(e,{critical:!0,reactAppName:R.current})})},l=[b],y[2]=b,y[3]=r,y[4]=l):(r=y[3],l=y[4]),(0,s.useEffect)(r,l),y[5]===Symbol.for("react.memo_cache_sentinel")?(c=(0,n.jsx)(i.E.Heading,{children:"Unable to load page."}),y[5]=c):c=y[5];let E=`Status: ${b.response.status} Message: ${b.message}`;return y[6]!==E?(u=(0,n.jsx)(i.E.Description,{children:E}),y[6]=E,y[7]=u):u=y[7],y[8]===Symbol.for("react.memo_cache_sentinel")?(h=(0,n.jsx)(i.E.Description,{children:"Please reload page and try again"}),y[8]=h):h=y[8],y[9]!==u?(f=(0,n.jsxs)(i.E,{border:!1,spacious:!1,children:[c,u,h]}),y[9]=u,y[10]=f):f=y[10],f}try{f.displayName||(f.displayName="UnhandledRouteError")}catch{}try{m.displayName||(m.displayName="BaseRouteErrorBoundary")}catch{}try{v.displayName||(v.displayName="RootAppRouteErrorElement")}catch{}try{y.displayName||(y.displayName="ResponseErrorElement")}catch{}}}]); //# sourceMappingURL=react-core-096ad340fae0.js.map