PageSourceSearch

https://app.insomnia.rest/assets/index-DuATMukp.js

js insomnia.rest collected 2026-09-24 07:46:41 UTC 61,919 bytes, 21 lines download raw bytes

1import{r as w}from"./jsx-runtime-Dt5Dsy05.js";/**
2 * @remix-run/router v1.23.3
3 *
4 * Copyright (c) Remix Software Inc.
5 *
6 * This source code is licensed under the MIT license found in the
7 * LICENSE.md file in the root directory of this source tree.
8 *
9 * @license MIT
10 */function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},N.apply(null,arguments)}var V;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(V||(V={}));const Yt="popstate";function sa(e){e===void 0&&(e={});function t(n,a){let{pathname:l,search:o,hash:c}=n.location;return Ye("",{pathname:l,search:o,hash:c},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(n,a){return typeof a=="string"?a:Xe(a)}return $r(t,r,null,e)}function U(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ce(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Vr(){return Math.random().toString(36).substr(2,8)}function Gt(e,t){return{usr:e.state,key:e.key,idx:t}}function Ye(e,t,r,n){return r===void 0&&(r=null),N({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ge(t):t,{state:r,key:t&&t.key||n||Vr()})}function Xe(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 ge(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 $r(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:l=!1}=n,o=a.history,c=V.Pop,d=null,m=v();m==null&&(m=0,o.replaceState(N({},o.state,{idx:m}),""));function v(){return(o.state||{idx:null}).idx}function h(){c=V.Pop;let L=v(),B=L==null?null:L-m;m=L,d&&d({action:c,location:x.location,delta:B})}function y(L,B){c=V.Push;let T=Ye(x.location,L,B);m=v()+1;let J=Gt(T,m),te=x.createHref(T);try{o.pushState(J,"",te)}catch(Q){if(Q instanceof DOMException&&Q.name==="DataCloneError")throw Q;a.location.assign(te)}l&&d&&d({action:c,location:x.location,delta:1})}function b(L,B){c=V.Replace;let T=Ye(x.location,L,B);m=v();let J=Gt(T,m),te=x.createHref(T);o.replaceState(J,"",te),l&&d&&d({action:c,location:x.location,delta:0})}function C(L){let B=a.location.origin!=="null"?a.location.origin:a.location.href,T=typeof L=="string"?L:Xe(L);return T=T.replace(/ $/,"%20"),U(B,"No window.location.(origin|href) available to create URL for href: "+T),new URL(T,B)}let x={get action(){return c},get location(){return e(a,o)},listen(L){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(Yt,h),d=L,()=>{a.removeEventListener(Yt,h),d=null}},createHref(L){return t(a,L)},createURL:C,encodeLocation(L){let B=C(L);return{pathname:B.pathname,search:B.search,hash:B.hash}},push:y,replace:b,go(L){return o.go(L)}};return x}var I;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(I||(I={}));const Jr=new Set(["lazy","caseSensitive","path","id","index","children"]);function Yr(e){return e.index===!0}function ct(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,l)=>{let o=[...r,String(l)],c=typeof a.id=="string"?a.id:o.join("-");if(U(a.index!==!0||!a.children,"Cannot specify children on an index route"),U(!n[c],'Found a route id collision on i
10d "'+c+`".  Route id's must be globally unique within Data Router usages`),Yr(a)){let d=N({},a,t(a),{id:c});return n[c]=d,d}else{let d=N({},a,t(a),{id:c,children:void 0});return n[c]=d,a.children&&(d.children=ct(a.children,t,o,n)),d}})}function xe(e,t,r){return r===void 0&&(r="/"),ut(e,t,r,!1)}function ut(e,t,r,n){let a=typeof t=="string"?ge(t):t,l=Qe(a.pathname||"/",r);if(l==null)return null;let o=mr(e);Gr(o);let c=null,d=ln(l);for(let m=0;c==null&&m<o.length;++m)c=an(o[m],d,n);return c}function hr(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}function mr(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let a=(l,o,c)=>{let d={relativePath:c===void 0?l.path||"":c,caseSensitive:l.caseSensitive===!0,childrenIndex:o,route:l};d.relativePath.startsWith("/")&&(U(d.relativePath.startsWith(n),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(n.length));let m=ce([n,d.relativePath]),v=r.concat(d);l.children&&l.children.length>0&&(U(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+m+'".')),mr(l.children,t,v,m)),!(l.path==null&&!l.index)&&t.push({path:m,score:rn(m,l.index),routesMeta:v})};return e.forEach((l,o)=>{var c;if(l.path===""||!((c=l.path)!=null&&c.includes("?")))a(l,o);else for(let d of pr(l.path))a(l,o,d)}),t}function pr(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),l=r.replace(/\?$/,"");if(n.length===0)return a?[l,""]:[l];let o=pr(n.join("/")),c=[];return c.push(...o.map(d=>d===""?l:[l,d].join("/"))),a&&c.push(...o),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function Gr(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:nn(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Xr=/^:[\w-]+$/,Qr=3,Zr=2,qr=1,en=10,tn=-2,Xt=e=>e==="*";function rn(e,t){let r=e.split("/"),n=r.length;return r.some(Xt)&&(n+=tn),t&&(n+=Zr),r.filter(a=>!Xt(a)).reduce((a,l)=>a+(Xr.test(l)?Qr:l===""?qr:en),n)}function nn(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function an(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},l="/",o=[];for(let c=0;c<n.length;++c){let d=n[c],m=c===n.length-1,v=l==="/"?t:t.slice(l.length)||"/",h=Qt({path:d.relativePath,caseSensitive:d.caseSensitive,end:m},v),y=d.route;if(!h&&m&&r&&!n[n.length-1].route.index&&(h=Qt({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},v)),!h)return null;
10Object.assign(a,h.params),o.push({params:a,pathname:ce([l,h.pathname]),pathnameBase:cn(ce([l,h.pathnameBase])),route:y}),h.pathnameBase!=="/"&&(l=ce([l,h.pathnameBase]))}return o}function Qt(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=on(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let l=a[0],o=l.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:n.reduce((m,v,h)=>{let{paramName:y,isOptional:b}=v;if(y==="*"){let x=c[h]||"";o=l.slice(0,l.length-x.length).replace(/(.)\/+$/,"$1")}const C=c[h];return b&&!C?m[y]=void 0:m[y]=(C||"").replace(/%2F/g,"/"),m},{}),pathname:l,pathnameBase:o,pattern:e}}function on(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Ce(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,c,d)=>(n.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function ln(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ce(!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 Qe(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)||"/"}const sn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,dn=e=>sn.test(e);function un(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?ge(e):e,l;if(r)if(dn(r))l=r;else{if(r.includes("//")){let o=r;r=Lt(r),Ce(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+r))}r.startsWith("/")?l=Zt(r.substring(1),"/"):l=Zt(r,t)}else l=t;return{pathname:l,search:fn(n),hash:hn(a)}}function Zt(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function bt(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 <Link to="..."> and the router will parse it for you.'}function vr(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Ct(e,t){let r=vr(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Mt(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=ge(e):(a=N({},e),U(!a.pathname||!a.pathname.includes("?"),bt("?","pathname","search",a)),U(!a.pathname||!a.pathname.includes("#"),bt("#","pathname","hash",a)),U(!a.search||!a.search.includes("#"),bt("#","search","hash",a)));let l=e===""||a.pathname==="",o=l?"/":a.pathname,c;if(o==null)c=r;else{let h=t.length-1;if(!n&&o.startsWith("..")){let y=o.split("/");for(;y[0]==="..";)y.shift(),h-=1;a.pathname=y.join("/")}c=h>=0?t[h]:"/"}let d=un(a,c),m=o&&o!=="/"&&o.endsWith("/"),v=(l||o===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(m||v)&&(d.pathname+="/"),d}const Lt=e=>e.replace(/\/\/+/g,"/"),ce=e=>Lt(e.join("/")),cn=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),fn=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,hn=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,da=function(t,r){r===void 0&&(r={});let n=typeof r=="number"?{status:r}:r,a=new Headers(n.headers);return a.has("Content-Type")||a.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(t),N({},n,{headers:a}))};class mn{constructor(t,r){this.type="DataWithResponseInit",this.data=t,this.init=r||null}}function ua(e,t){return new mn(e,typeof t=="number"?{status:t}:t)}
10class Rt extends Error{}class ca{constructor(t,r){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],U(t&&typeof t=="object"&&!Array.isArray(t),"defer() only accepts plain objects");let n;this.abortPromise=new Promise((l,o)=>n=o),this.controller=new AbortController;let a=()=>n(new Rt("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",a),this.controller.signal.addEventListener("abort",a),this.data=Object.entries(t).reduce((l,o)=>{let[c,d]=o;return Object.assign(l,{[c]:this.trackPromise(c,d)})},{}),this.done&&this.unlistenAbortSignal(),this.init=r}trackPromise(t,r){if(!(r instanceof Promise))return r;this.deferredKeys.push(t),this.pendingKeysSet.add(t);let n=Promise.race([r,this.abortPromise]).then(a=>this.onSettle(n,t,void 0,a),a=>this.onSettle(n,t,a));return n.catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(t,r,n,a){if(this.controller.signal.aborted&&n instanceof Rt)return this.unlistenAbortSignal(),Object.defineProperty(t,"_error",{get:()=>n}),Promise.reject(n);if(this.pendingKeysSet.delete(r),this.done&&this.unlistenAbortSignal(),n===void 0&&a===void 0){let l=new Error('Deferred data for key "'+r+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(t,"_error",{get:()=>l}),this.emit(!1,r),Promise.reject(l)}return a===void 0?(Object.defineProperty(t,"_error",{get:()=>n}),this.emit(!1,r),Promise.reject(n)):(Object.defineProperty(t,"_data",{get:()=>a}),this.emit(!1,r),a)}emit(t,r){this.subscribers.forEach(n=>n(t,r))}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((t,r)=>this.pendingKeysSet.delete(r)),this.emit(!0)}async resolveData(t){let r=!1;if(!this.done){let n=()=>this.cancel();t.addEventListener("abort",n),r=await new Promise(a=>{this.subscribe(l=>{t.removeEventListener("abort",n),(l||this.done)&&a(l)})})}return r}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return U(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((t,r)=>{let[n,a]=r;return Object.assign(t,{[n]:vn(a)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function pn(e){return e instanceof Promise&&e._tracked===!0}function vn(e){if(!pn(e))return e;if(e._error)throw e._error;return e._data}const fa=function(t,r){r===void 0&&(r=302);let n=r;typeof n=="number"?n={status:n}:typeof n.status>"u"&&(n.status=302);let a=new Headers(n.headers);return a.set("Location",t),new Response(null,N({},n,{headers:a}))};class Pt{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Ge(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const gr=["post","put","patch","delete"],gn=new Set(gr),yn=["get",...gr],bn=new Set(yn),wn=new Set([301,302,303,307,308]),En=new Set([307,308]),wt={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Rn={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ve={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},jt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pn=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),yr="remix-router-transitions";function ha(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;U(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let i=e.detectErrorBoundary;a=s=>({hasErrorBoundary:i(s)})}else a=Pn;let l={},o=ct(e.routes,a,void 0,l),c,d=e.basename||"/",m=e.dataStrategy||Cn,v=e.patchRoutesOnNavigation,h=N({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prepe
10ndBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),y=null,b=new Set,C=null,x=null,L=null,B=e.hydrationData!=null,T=xe(o,e.history.location,d),J=!1,te=null;if(T==null&&!v){let i=Z(404,{pathname:e.history.location.pathname}),{matches:s,route:u}=dr(o);T=s,te={[u.id]:i}}T&&!e.hydrationData&&it(T,o,e.history.location.pathname).active&&(T=null);let Q;if(T)if(T.some(i=>i.route.lazy))Q=!1;else if(!T.some(i=>i.route.loader))Q=!0;else if(h.v7_partialHydration){let i=e.hydrationData?e.hydrationData.loaderData:null,s=e.hydrationData?e.hydrationData.errors:null;if(s){let u=T.findIndex(p=>s[p.route.id]!==void 0);Q=T.slice(0,u+1).every(p=>!Dt(p.route,i,s))}else Q=T.every(u=>!Dt(u.route,i,s))}else Q=e.hydrationData!=null;else if(Q=!1,T=[],h.v7_partialHydration){let i=it(null,o,e.history.location.pathname);i.active&&i.matches&&(J=!0,T=i.matches)}let Ne,f={historyAction:e.history.action,location:e.history.location,matches:T,initialized:Q,navigation:wt,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||te,fetchers:new Map,blockers:new Map},z=V.Pop,G=!1,k,q=!1,re=new Map,ae=null,Me=!1,ye=!1,qe=[],et=new Set,$=new Map,tt=0,Be=-1,Le=new Map,se=new Set,je=new Map,ze=new Map,ie=new Set,be=new Map,we=new Map,rt;function Mr(){if(y=e.history.listen(i=>{let{action:s,location:u,delta:p}=i;if(rt){rt(),rt=void 0;return}Ce(we.size===0||p!=null,"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 g=Kt({currentLocation:f.location,nextLocation:u,historyAction:s});if(g&&p!=null){let S=new Promise(M=>{rt=M});e.history.go(p*-1),at(g,{state:"blocked",location:u,proceed(){at(g,{state:"proceeding",proceed:void 0,reset:void 0,location:u}),S.then(()=>e.history.go(p))},reset(){let M=new Map(f.blockers);M.set(g,Ve),X({blockers:M})}});return}return Ee(s,u)}),r){kn(t,re);let i=()=>Hn(t,re);t.addEventListener("pagehide",i),ae=()=>t.removeEventListener("pagehide",i)}return f.initialized||Ee(V.Pop,f.location,{initialHydration:!0}),Ne}function Lr(){y&&y(),ae&&ae(),b.clear(),k&&k.abort(),f.fetchers.forEach((i,s)=>nt(s)),f.blockers.forEach((i,s)=>Wt(s))}function jr(i){return b.add(i),()=>b.delete(i)}function X(i,s){s===void 0&&(s={}),f=N({},f,i);let u=[],p=[];h.v7_fetcherPersist&&f.fetchers.forEach((g,S)=>{g.state==="idle"&&(ie.has(S)?p.push(S):u.push(S))}),ie.forEach(g=>{!f.fetchers.has(g)&&!$.has(g)&&p.push(g)}),[...b].forEach(g=>g(f,{deletedFetchers:p,viewTransitionOpts:s.viewTransitionOpts,flushSync:s.flushSync===!0})),h.v7_fetcherPersist?(u.forEach(g=>f.fetchers.delete(g)),p.forEach(g=>nt(g))):p.forEach(g=>ie.delete(g))}function Te(i,s,u){var p,g;let{flushSync:S}=u===void 0?{}:u,M=f.actionData!=null&&f.navigation.formMethod!=null&&oe(f.navigation.formMethod)&&f.navigation.state==="loading"&&((p=i.state)==null?void 0:p._isRedirect)!==!0,R;s.actionData?Object.keys(s.actionData).length>0?R=s.actionData:R=null:M?R=f.actionData:R=null;let P=s.loaderData?lr(f.loaderData,s.loaderData,s.matches||[],s.errors):f.loaderData,E=f.blockers;E.size>0&&(E=new Map(E),E.forEach((O,Y)=>E.set(Y,Ve)));let D=G===!0||f.navigation.formMethod!=null&&oe(f.navigation.formMethod)&&((g=i.state)==null?void 0:g._isRedirect)!==!0;c&&(o=c,c=void 0),Me||z===V.Pop||(z===V.Push?e.history.push(i,i.state):z===V.Replace&&e.history.replace(i,i.state));let j;if(z===V.Pop){let O=re.get(f.location.pathname);O&&O.has(i.pathname)?j={currentLocation:f.location,nextLocation:i}:re.has(i.pathname)&&(j={currentLocation:i,nextLocation:f.location})}else if(q){let O=re.get(f.location.pathname);O?O.add(i.pathname):(O=new Set([i.pathname]),re.set(f.location.pathname,O)),j={currentLocation:f.location,nextLocation:i}}X(N({},s,{actionData:R,loaderData:P,historyAction:z,location:i,initialized:!0,navigation:wt,revalidation:"idle",restoreScrollPosition:$t(i,s.matches||f.matches),preventScrollReset:D,blockers:E}),{viewTransitionOpts:j,flushSync:S===!0}),z=V.Pop,G=!1,q=!1,Me=!1,ye=!1,qe=[]}
10async function It(i,s){if(typeof i=="number"){e.history.go(i);return}let u=xt(f.location,f.matches,d,h.v7_prependBasename,i,h.v7_relativeSplatPath,s==null?void 0:s.fromRouteId,s==null?void 0:s.relative),{path:p,submission:g,error:S}=qt(h.v7_normalizeFormMethod,!1,u,s),M=f.location,R=Ye(f.location,p,s&&s.state);R=N({},R,e.history.encodeLocation(R));let P=s&&s.replace!=null?s.replace:void 0,E=V.Push;P===!0?E=V.Replace:P===!1||g!=null&&oe(g.formMethod)&&g.formAction===f.location.pathname+f.location.search&&(E=V.Replace);let D=s&&"preventScrollReset"in s?s.preventScrollReset===!0:void 0,j=(s&&s.flushSync)===!0,O=Kt({currentLocation:M,nextLocation:R,historyAction:E});if(O){at(O,{state:"blocked",location:R,proceed(){at(O,{state:"proceeding",proceed:void 0,reset:void 0,location:R}),It(i,s)},reset(){let Y=new Map(f.blockers);Y.set(O,Ve),X({blockers:Y})}});return}return await Ee(E,R,{submission:g,pendingError:S,preventScrollReset:D,replace:s&&s.replace,enableViewTransition:s&&s.viewTransition,flushSync:j})}function Tr(){if(pt(),X({revalidation:"loading"}),f.navigation.state!=="submitting"){if(f.navigation.state==="idle"){Ee(f.historyAction,f.location,{startUninterruptedRevalidation:!0});return}Ee(z||f.historyAction,f.navigation.location,{overrideNavigation:f.navigation,enableViewTransition:q===!0})}}async function Ee(i,s,u){k&&k.abort(),k=null,z=i,Me=(u&&u.startUninterruptedRevalidation)===!0,kr(f.location,f.matches),G=(u&&u.preventScrollReset)===!0,q=(u&&u.enableViewTransition)===!0;let p=c||o,g=u&&u.overrideNavigation,S=u!=null&&u.initialHydration&&f.matches&&f.matches.length>0&&!J?f.matches:xe(p,s,d),M=(u&&u.flushSync)===!0;if(S&&f.initialized&&!ye&&On(f.location,s)&&!(u&&u.submission&&oe(u.submission.formMethod))){Te(s,{matches:S},{flushSync:M});return}let R=it(S,p,s.pathname);if(R.active&&R.matches&&(S=R.matches),!S){let{error:A,notFoundMatches:F,route:H}=vt(s.pathname);Te(s,{matches:F,loaderData:{},errors:{[H.id]:A}},{flushSync:M});return}k=new AbortController;let P=Fe(e.history,s,k.signal,u&&u.submission),E;if(u&&u.pendingError)E=[De(S).route.id,{type:I.error,error:u.pendingError}];else if(u&&u.submission&&oe(u.submission.formMethod)){let A=await Ur(P,s,u.submission,S,R.active,{replace:u.replace,flushSync:M});if(A.shortCircuited)return;if(A.pendingActionResult){let[F,H]=A.pendingActionResult;if(ee(H)&&Ge(H.error)&&H.error.status===404){k=null,Te(s,{matches:A.matches,loaderData:{},errors:{[F]:H.error}});return}}S=A.matches||S,E=A.pendingActionResult,g=Et(s,u.submission),M=!1,R.active=!1,P=Fe(e.history,P.url,P.signal)}let{shortCircuited:D,matches:j,loaderData:O,errors:Y}=await Or(P,s,S,R.active,g,u&&u.submission,u&&u.fetcherSubmission,u&&u.replace,u&&u.initialHydration===!0,M,E);D||(k=null,Te(s,N({matches:j||S},sr(E),{loaderData:O,errors:Y})))}async function Ur(i,s,u,p,g,S){S===void 0&&(S={}),pt();let M=Bn(s,u);if(X({navigation:M},{flushSync:S.flushSync===!0}),g){let E=await ot(p,s.pathname,i.signal);if(E.type==="aborted")return{shortCircuited:!0};if(E.type==="error"){let D=De(E.partialMatches).route.id;return{matches:E.partialMatches,pendingActionResult:[D,{type:I.error,error:E.error}]}}else if(E.matches)p=E.matches;else{let{notFoundMatches:D,error:j,route:O}=vt(s.pathname);return{matches:D,pendingActionResult:[O.id,{type:I.error,error:j}]}}}let R,P=Je(p,s);if(!P.route.action&&!P.route.lazy)R={type:I.error,error:Z(405,{method:i.method,pathname:s.pathname,routeId:P.route.id})};else if(R=(await ke("action",f,i,[P],p,null))[P.route.id],i.signal.aborted)return{shortCircuited:!0};if(Se(R)){let E;return S&&S.replace!=null?E=S.replace:E=ar(R.response.headers.get("Location"),new URL(i.url),d,e.history)===f.location.pathname+f.location.search,await Re(i,R,!0,{submission:u,replace:E}),{shortCircuited:!0}}if(ve(R))throw Z(400,{type:"defer-action"});if(ee(R)){let E=De(p,P.route.id);return(S&&S.replace)!==!0&&(z=V.Push),{matches:p,pendingActionResult:[E.route.id,R]}}return{matches:p,pendingActionResult:[P.route.id,R]}}async function Or(i,s,u,p,g,S,M,R,P,E,D){let j=g||Et(s,S),O=S||M||cr(j),Y=!Me&&(!h.v7_partialHydration||!P);if(p){if(Y){let W=At(D);
10X(N({navigation:j},W!==void 0?{actionData:W}:{}),{flushSync:E})}let _=await ot(u,s.pathname,i.signal);if(_.type==="aborted")return{shortCircuited:!0};if(_.type==="error"){let W=De(_.partialMatches).route.id;return{matches:_.partialMatches,loaderData:{},errors:{[W]:_.error}}}else if(_.matches)u=_.matches;else{let{error:W,notFoundMatches:Oe,route:Ke}=vt(s.pathname);return{matches:Oe,loaderData:{},errors:{[Ke.id]:W}}}}let A=c||o,[F,H]=tr(e.history,f,u,O,s,h.v7_partialHydration&&P===!0,h.v7_skipActionErrorRevalidation,ye,qe,et,ie,je,se,A,d,D);if(gt(_=>!(u&&u.some(W=>W.route.id===_))||F&&F.some(W=>W.route.id===_)),Be=++tt,F.length===0&&H.length===0){let _=kt();return Te(s,N({matches:u,loaderData:{},errors:D&&ee(D[1])?{[D[0]]:D[1].error}:null},sr(D),_?{fetchers:new Map(f.fetchers)}:{}),{flushSync:E}),{shortCircuited:!0}}if(Y){let _={};if(!p){_.navigation=j;let W=At(D);W!==void 0&&(_.actionData=W)}H.length>0&&(_.fetchers=_r(H)),X(_,{flushSync:E})}H.forEach(_=>{me(_.key),_.controller&&$.set(_.key,_.controller)});let Ue=()=>H.forEach(_=>me(_.key));k&&k.signal.addEventListener("abort",Ue);let{loaderResults:He,fetcherResults:ue}=await Nt(f,u,F,H,i);if(i.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",Ue),H.forEach(_=>$.delete(_.key));let le=dt(He);if(le)return await Re(i,le.result,!0,{replace:R}),{shortCircuited:!0};if(le=dt(ue),le)return se.add(le.key),await Re(i,le.result,!0,{replace:R}),{shortCircuited:!0};let{loaderData:yt,errors:We}=or(f,u,He,D,H,ue,be);be.forEach((_,W)=>{_.subscribe(Oe=>{(Oe||_.done)&&be.delete(W)})}),h.v7_partialHydration&&P&&f.errors&&(We=N({},f.errors,We));let Pe=kt(),lt=Ht(Be),st=Pe||lt||H.length>0;return N({matches:u,loaderData:yt,errors:We},st?{fetchers:new Map(f.fetchers)}:{})}function At(i){if(i&&!ee(i[1]))return{[i[0]]:i[1].data};if(f.actionData)return Object.keys(f.actionData).length===0?null:f.actionData}function _r(i){return i.forEach(s=>{let u=f.fetchers.get(s.key),p=$e(void 0,u?u.data:void 0);f.fetchers.set(s.key,p)}),new Map(f.fetchers)}function Fr(i,s,u,p){if(n)throw new 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.");me(i);let g=(p&&p.flushSync)===!0,S=c||o,M=xt(f.location,f.matches,d,h.v7_prependBasename,u,h.v7_relativeSplatPath,s,p==null?void 0:p.relative),R=xe(S,M,d),P=it(R,S,M);if(P.active&&P.matches&&(R=P.matches),!R){de(i,s,Z(404,{pathname:M}),{flushSync:g});return}let{path:E,submission:D,error:j}=qt(h.v7_normalizeFormMethod,!0,M,p);if(j){de(i,s,j,{flushSync:g});return}let O=Je(R,E),Y=(p&&p.preventScrollReset)===!0;if(D&&oe(D.formMethod)){Ir(i,s,E,O,R,P.active,g,Y,D);return}je.set(i,{routeId:s,path:E}),Ar(i,s,E,O,R,P.active,g,Y,D)}async function Ir(i,s,u,p,g,S,M,R,P){pt(),je.delete(i);function E(K){if(!K.route.action&&!K.route.lazy){let _e=Z(405,{method:P.formMethod,pathname:u,routeId:s});return de(i,s,_e,{flushSync:M}),!0}return!1}if(!S&&E(p))return;let D=f.fetchers.get(i);he(i,zn(P,D),{flushSync:M});let j=new AbortController,O=Fe(e.history,u,j.signal,P);if(S){let K=await ot(g,new URL(O.url).pathname,O.signal,i);if(K.type==="aborted")return;if(K.type==="error"){de(i,s,K.error,{flushSync:M});return}else if(K.matches){if(g=K.matches,p=Je(g,u),E(p))return}else{de(i,s,Z(404,{pathname:u}),{flushSync:M});return}}$.set(i,j);let Y=tt,F=(await ke("action",f,O,[p],g,i))[p.route.id];if(O.signal.aborted){$.get(i)===j&&$.delete(i);return}if(h.v7_fetcherPersist&&ie.has(i)){if(Se(F)||ee(F)){he(i,pe(void 0));return}}else{if(Se(F))if($.delete(i),Be>Y){he(i,pe(void 0));return}else return se.add(i),he(i,$e(P)),Re(O,F,!1,{fetcherSubmission:P,preventScrollReset:R});if(ee(F)){de(i,s,F.error);return}}if(ve(F))throw Z(400,{type:"defer-action"});let H=f.navigation.location||f.location,Ue=Fe(e.history,H,j.signal),He=c||o,ue=f.navigation.state!=="idle"?xe(He,f.navigation.location,d):f.matches;U(ue,"Didn't find any matches after fetcher action");let le=++tt;Le.set(i,le);let yt=$e(P,F.data);f.fetchers.set(i,yt);let[We,Pe]=tr(e.history,f,ue,P,H,!1,h.v7_skipActionErrorRevalidation,ye,qe,et,ie,je,se,He,d,[p.route.id,F]);Pe.filter(K=>
10K.key!==i).forEach(K=>{let _e=K.key,Jt=f.fetchers.get(_e),Kr=$e(void 0,Jt?Jt.data:void 0);f.fetchers.set(_e,Kr),me(_e),K.controller&&$.set(_e,K.controller)}),X({fetchers:new Map(f.fetchers)});let lt=()=>Pe.forEach(K=>me(K.key));j.signal.addEventListener("abort",lt);let{loaderResults:st,fetcherResults:_}=await Nt(f,ue,We,Pe,Ue);if(j.signal.aborted)return;j.signal.removeEventListener("abort",lt),Le.delete(i),$.delete(i),Pe.forEach(K=>$.delete(K.key));let W=dt(st);if(W)return Re(Ue,W.result,!1,{preventScrollReset:R});if(W=dt(_),W)return se.add(W.key),Re(Ue,W.result,!1,{preventScrollReset:R});let{loaderData:Oe,errors:Ke}=or(f,ue,st,void 0,Pe,_,be);if(f.fetchers.has(i)){let K=pe(F.data);f.fetchers.set(i,K)}Ht(le),f.navigation.state==="loading"&&le>Be?(U(z,"Expected pending action"),k&&k.abort(),Te(f.navigation.location,{matches:ue,loaderData:Oe,errors:Ke,fetchers:new Map(f.fetchers)})):(X({errors:Ke,loaderData:lr(f.loaderData,Oe,ue,Ke),fetchers:new Map(f.fetchers)}),ye=!1)}async function Ar(i,s,u,p,g,S,M,R,P){let E=f.fetchers.get(i);he(i,$e(P,E?E.data:void 0),{flushSync:M});let D=new AbortController,j=Fe(e.history,u,D.signal);if(S){let F=await ot(g,new URL(j.url).pathname,j.signal,i);if(F.type==="aborted")return;if(F.type==="error"){de(i,s,F.error,{flushSync:M});return}else if(F.matches)g=F.matches,p=Je(g,u);else{de(i,s,Z(404,{pathname:u}),{flushSync:M});return}}$.set(i,D);let O=tt,A=(await ke("loader",f,j,[p],g,i))[p.route.id];if(ve(A)&&(A=await Tt(A,j.signal,!0)||A),$.get(i)===D&&$.delete(i),!j.signal.aborted){if(ie.has(i)){he(i,pe(void 0));return}if(Se(A))if(Be>O){he(i,pe(void 0));return}else{se.add(i),await Re(j,A,!1,{preventScrollReset:R});return}if(ee(A)){de(i,s,A.error);return}U(!ve(A),"Unhandled fetcher deferred data"),he(i,pe(A.data))}}async function Re(i,s,u,p){let{submission:g,fetcherSubmission:S,preventScrollReset:M,replace:R}=p===void 0?{}:p;s.response.headers.has("X-Remix-Revalidate")&&(ye=!0);let P=s.response.headers.get("Location");U(P,"Expected a Location header on the redirect Response"),P=ar(P,new URL(i.url),d,e.history);let E=Ye(f.location,P,{_isRedirect:!0});if(r){let F=!1;if(s.response.headers.has("X-Remix-Reload-Document"))F=!0;else if(jt.test(P)){const H=e.history.createURL(P);F=H.origin!==t.location.origin||Qe(H.pathname,d)==null}if(F){R?t.location.replace(P):t.location.assign(P);return}}k=null;let D=R===!0||s.response.headers.has("X-Remix-Replace")?V.Replace:V.Push,{formMethod:j,formAction:O,formEncType:Y}=f.navigation;!g&&!S&&j&&O&&Y&&(g=cr(f.navigation));let A=g||S;if(En.has(s.response.status)&&A&&oe(A.formMethod))await Ee(D,E,{submission:N({},A,{formAction:P}),preventScrollReset:M||G,enableViewTransition:u?q:void 0});else{let F=Et(E,g);await Ee(D,E,{overrideNavigation:F,fetcherSubmission:S,preventScrollReset:M||G,enableViewTransition:u?q:void 0})}}async function ke(i,s,u,p,g,S){let M,R={};try{M=await Mn(m,i,s,u,p,g,S,l,a)}catch(P){return p.forEach(E=>{R[E.route.id]={type:I.error,error:P}}),R}for(let[P,E]of Object.entries(M))if(_n(E)){let D=E.result;R[P]={type:I.redirect,response:Tn(D,u,P,g,d,h.v7_relativeSplatPath)}}else R[P]=await jn(E);return R}async function Nt(i,s,u,p,g){let S=i.matches,M=ke("loader",i,g,u,s,null),R=Promise.all(p.map(async D=>{if(D.matches&&D.match&&D.controller){let O=(await ke("loader",i,Fe(e.history,D.path,D.controller.signal),[D.match],D.matches,D.key))[D.match.route.id];return{[D.key]:O}}else return Promise.resolve({[D.key]:{type:I.error,error:Z(404,{pathname:D.path})}})})),P=await M,E=(await R).reduce((D,j)=>Object.assign(D,j),{});return await Promise.all([An(s,P,g.signal,S,i.loaderData),Nn(s,E,p)]),{loaderResults:P,fetcherResults:E}}function pt(){ye=!0,qe.push(...gt()),je.forEach((i,s)=>{$.has(s)&&et.add(s),me(s)})}function he(i,s,u){u===void 0&&(u={}),f.fetchers.set(i,s),X({fetchers:new Map(f.fetchers)},{flushSync:(u&&u.flushSync)===!0})}function de(i,s,u,p){p===void 0&&(p={});let g=De(f.matches,s);nt(i),X({errors:{[g.route.id]:u},fetchers:new Map(f.fetchers)},{flushSync:(p&&p.flushSync)===!0})}function Bt(i){return ze.set(i,(ze.get(i)||0)+1),ie.has(i)&&ie.delete(i),f.fetchers.get(i)||Rn}function nt(i){let s=f.fetchers.get(i);$.has(i)&&!(s&&s.state==="loading"&&Le.has(i))&&me(i),je.delete(i),Le.delete(i),se.delete(i),h.v7_fetcherPersist&&ie.delete(i),et.delete(i),f.fetchers.delete(i)}function Nr(i){let s=(ze.get(i)||0)-1;s<=0?(ze.delete(i),ie.add(i),h.v7_fetcherPersist||nt(i)):ze.set(i,s),X({fetchers:new Map(f.fetchers)})}function me(i){let s=$.get(i);s&&(s.abort(),$.delete(i))}function zt(i){for(let s of i){let u=Bt(s),p=pe(u.data);f.fetchers.set(s,p)}}function kt(){let i=[],s=!1;for(let u of se){let p=f.fetchers.get(u);U(p,"Expected fetcher: "+u),p.state==="loading"&&(se.delete(u),i.push(u),s=!0)}return zt(i),s}function Ht(i){let s=[];for(let[u,p]of Le)if(p<i){let g=f.fetchers.get(u);U(g,"Expected fetcher: "+u),g.state==="loading"&&(me(u),Le.delete(u),s.push(u))}return zt(s),s.length>0}function Br(i,s){let u=f.blockers.get(i)||Ve;return we.get(i)!==s&&we.set(i,s),u}function Wt(i){f.blockers.delete(i),we.delete(i)}function at(i,s){let u=f.blockers.get(i)||Ve;U(u.state==="unblocked"&&s.state==="blocked"||u.state==="blocked"&&s.state==="blocked"||u.state==="blocked"&&s.state==="proceeding"||u.state==="blocked"&&s.state==="unblocked"||u.state==="proceeding"&&s.state==="unblocked","Invalid blocker state transition: "+u.state+" -> "+s.state);let p=new Map(f.blockers);p.set(i,s),X({blockers:p})}function Kt(i){let{currentLocation:s,nextLocation:u,historyAction:p}=i;if(we.size===0)return;we.size>1&&Ce(!1,"A router only supports one blocker at a time");let g=Array.from(we.entries()),[S,M]=g[g.length-1],R=f.blockers.get(S);if(!(R&&R.state==="proceeding")&&M({currentLocation:s,nextLocation:u,historyAction:p}))return S}function vt(i){let s=Z(404,{pathname:i}),u=c||o,{matches:p,route:g}=dr(u);return gt(),{notFoundMatches:p,route:g,error:s}}function gt(i){let s=[];return be.forEach((u,p)=>{(!i||i(p))&&(u.cancel(),s.push(p),be.delete(p))}),s}function zr(i,s,u){if(C=i,L=s,x=u||null,!B&&f.navigation===wt){B=!0;let p=$t(f.location,f.matches);p!=null&&X({restoreScrollPosition:p})}return()=>{C=null,L=null,x=null}}function Vt(i,s){return x&&x(i,s.map(p=>hr(p,f.loaderData)))||i.key}
10function kr(i,s){if(C&&L){let u=Vt(i,s);C[u]=L()}}function $t(i,s){if(C){let u=Vt(i,s),p=C[u];if(typeof p=="number")return p}return null}function it(i,s,u){if(v)if(i){if(Object.keys(i[0].params).length>0)return{active:!0,matches:ut(s,u,d,!0)}}else return{active:!0,matches:ut(s,u,d,!0)||[]};return{active:!1,matches:null}}async function ot(i,s,u,p){if(!v)return{type:"success",matches:i};let g=i;for(;;){let S=c==null,M=c||o,R=l;try{await v({signal:u,path:s,matches:g,fetcherKey:p,patch:(D,j)=>{u.aborted||nr(D,j,M,R,a)}})}catch(D){return{type:"error",error:D,partialMatches:g}}finally{S&&!u.aborted&&(o=[...o])}if(u.aborted)return{type:"aborted"};let P=xe(M,s,d);if(P)return{type:"success",matches:P};let E=ut(M,s,d,!0);if(!E||g.length===E.length&&g.every((D,j)=>D.route.id===E[j].route.id))return{type:"success",matches:null};g=E}}function Hr(i){l={},c=ct(i,a,void 0,l)}function Wr(i,s){let u=c==null;nr(i,s,c||o,l,a),u&&(o=[...o],X({}))}return Ne={get basename(){return d},get future(){return h},get state(){return f},get routes(){return o},get window(){return t},initialize:Mr,subscribe:jr,enableScrollRestoration:zr,navigate:It,fetch:Fr,revalidate:Tr,createHref:i=>e.history.createHref(i),encodeLocation:i=>e.history.encodeLocation(i),getFetcher:Bt,deleteFetcher:Nr,dispose:Lr,getBlocker:Br,deleteBlocker:Wt,patchRoutes:Wr,_internalFetchControllers:$,_internalActiveDeferreds:be,_internalSetRoutes:Hr},Ne}function xn(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function xt(e,t,r,n,a,l,o,c){let d,m;if(o){d=[];for(let h of t)if(d.push(h),h.route.id===o){m=h;break}}else d=t,m=t[t.length-1];let v=Mt(a||".",Ct(d,l),Qe(e.pathname,r)||e.pathname,c==="path");if(a==null&&(v.search=e.search,v.hash=e.hash),(a==null||a===""||a===".")&&m){let h=Ut(v.search);if(m.route.index&&!h)v.search=v.search?v.search.replace(/^\?/,"?index&"):"?index";else if(!m.route.index&&h){let y=new URLSearchParams(v.search),b=y.getAll("index");y.delete("index"),b.filter(x=>x).forEach(x=>y.append("index",x));let C=y.toString();v.search=C?"?"+C:""}}return n&&r!=="/"&&(v.pathname=v.pathname==="/"?r:ce([r,v.pathname])),Xe(v)}function qt(e,t,r,n){if(!n||!xn(n))return{path:r};if(n.formMethod&&!In(n.formMethod))return{path:r,error:Z(405,{method:n.formMethod})};let a=()=>({path:r,error:Z(400,{type:"invalid-body"})}),l=n.formMethod||"get",o=e?l.toUpperCase():l.toLowerCase(),c=Er(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!oe(o))return a();let y=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((b,C)=>{let[x,L]=C;return""+b+x+"="+L+`
11`},""):String(n.body);return{path:r,submission:{formMethod:o,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:y}}}else if(n.formEncType==="application/json"){if(!oe(o))return a();try{let y=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:o,formAction:c,formEncType:n.formEncType,formData:void 0,json:y,text:void 0}}}catch{return a()}}}U(typeof FormData=="function","FormData is not available in this environment");let d,m;if(n.formData)d=St(n.formData),m=n.formData;else if(n.body instanceof FormData)d=St(n.body),m=n.body;else if(n.body instanceof URLSearchParams)d=n.body,m=ir(d);else if(n.body==null)d=new URLSearchParams,m=new FormData;else try{d=new URLSearchParams(n.body),m=ir(d)}catch{return a()}let v={formMethod:o,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:m,json:void 0,text:void 0};if(oe(v.formMethod))return{path:r,submission:v};let h=ge(r);return t&&h.search&&Ut(h.search)&&d.append("index",""),h.search="?"+d,{path:Xe(h),submission:v}}function er(e,t,r){r===void 0&&(r=!1);let n=e.findIndex(a=>a.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function tr(e,t,r,n,a,l,o,c,d,m,v,h,y,b,C,x){let L=x?ee(x[1])?x[1].error:x[1].data:void 0,B=e.createURL(t.location),T=e.createURL(a),J=r;l&&t.errors?J=er(r,Object.keys(t.errors)[0],!0):x&&ee(x[1])&&(J=er(r,x[0]));let te=x?x[1].statusCode:void 0,Q=o&&te&&te>=400,Ne=J.filter((z,G)=>{let{route:k}=z;if(k.lazy)return!0;
11if(k.loader==null)return!1;if(l)return Dt(k,t.loaderData,t.errors);if(Dn(t.loaderData,t.matches[G],z)||d.some(ae=>ae===z.route.id))return!0;let q=t.matches[G],re=z;return rr(z,N({currentUrl:B,currentParams:q.params,nextUrl:T,nextParams:re.params},n,{actionResult:L,actionStatus:te,defaultShouldRevalidate:Q?!1:c||B.pathname+B.search===T.pathname+T.search||B.search!==T.search||br(q,re)}))}),f=[];return h.forEach((z,G)=>{if(l||!r.some(Me=>Me.route.id===z.routeId)||v.has(G))return;let k=xe(b,z.path,C);if(!k){f.push({key:G,routeId:z.routeId,path:z.path,matches:null,match:null,controller:null});return}let q=t.fetchers.get(G),re=Je(k,z.path),ae=!1;y.has(G)?ae=!1:m.has(G)?(m.delete(G),ae=!0):q&&q.state!=="idle"&&q.data===void 0?ae=c:ae=rr(re,N({currentUrl:B,currentParams:t.matches[t.matches.length-1].params,nextUrl:T,nextParams:r[r.length-1].params},n,{actionResult:L,actionStatus:te,defaultShouldRevalidate:Q?!1:c})),ae&&f.push({key:G,routeId:z.routeId,path:z.path,matches:k,match:re,controller:new AbortController})}),[Ne,f]}function Dt(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,a=r!=null&&r[e.id]!==void 0;return!n&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!a}function Dn(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function br(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function rr(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function nr(e,t,r,n,a){var l;let o;if(e){let m=n[e];U(m,"No route found to patch children into: routeId = "+e),m.children||(m.children=[]),o=m.children}else o=r;let c=t.filter(m=>!o.some(v=>wr(m,v))),d=ct(c,a,[e||"_","patch",String(((l=o)==null?void 0:l.length)||"0")],n);o.push(...d)}function wr(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var a;return(a=t.children)==null?void 0:a.some(l=>wr(r,l))}):!1}async function Sn(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];U(a,"No route found in manifest");let l={};for(let o in n){let d=a[o]!==void 0&&o!=="hasErrorBoundary";Ce(!d,'Route "'+a.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!d&&!Jr.has(o)&&(l[o]=n[o])}Object.assign(a,l),Object.assign(a,N({},t(a),{lazy:void 0}))}async function Cn(e){let{matches:t}=e,r=t.filter(a=>a.shouldLoad);return(await Promise.all(r.map(a=>a.resolve()))).reduce((a,l,o)=>Object.assign(a,{[r[o].route.id]:l}),{})}async function Mn(e,t,r,n,a,l,o,c,d,m){let v=l.map(b=>b.route.lazy?Sn(b.route,d,c):void 0),h=l.map((b,C)=>{let x=v[C],L=a.some(T=>T.route.id===b.route.id);return N({},b,{shouldLoad:L,resolve:async T=>(T&&n.method==="GET"&&(b.route.lazy||b.route.loader)&&(L=!0),L?Ln(t,n,b,x,T,m):Promise.resolve({type:I.data,result:void 0}))})}),y=await e({matches:h,request:n,params:l[0].params,fetcherKey:o,context:m});try{await Promise.all(v)}catch{}return y}async function Ln(e,t,r,n,a,l){let o,c,d=m=>{let v,h=new Promise((C,x)=>v=x);c=()=>v(),t.signal.addEventListener("abort",c);let y=C=>typeof m!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):m({request:t,params:r.params,context:l},...C!==void 0?[C]:[]),b=(async()=>{try{return{type:"data",result:await(a?a(x=>y(x)):y())}}catch(C){return{type:"error",result:C}}})();return Promise.race([b,h])};try{let m=r.route[e];if(n)if(m){let v,[h]=await Promise.all([d(m).catch(y=>{v=y}),n]);if(v!==void 0)throw v;o=h}else if(await n,m=r.route[e],m)o=await d(m);else if(e==="action"){let v=new URL(t.url),h=v.pathname+v.search;throw Z(405,{method:t.method,pathname:h,routeId:r.route.id})}else return{type:I.data,result:void 0};else if(m)o=await d(m);else{let v=new URL(t.url),h=v.pathname+v.search;throw Z(404,{pathname:h})}U(o.result!==void 0,"You defined "+(e==="action"?"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(m){return{type:I.error,result:m}}finally{c&&t.signal.removeEventListener("abort",c)}return o}async function jn(e){let{result:t,type:r}=e;if(Rr(t)){let h;try{let y=t.headers.get("Content-Type");y&&/\bapplication\/json\b/.test(y)?t.body==null?h=null:h=await t.json():h=await t.text()}catch(y){return{type:I.error,error:y}}return r===I.error?{type:I.error,error:new Pt(t.status,t.statusText,h),statusCode:t.status,headers:t.headers}:{type:I.data,data:h,statusCode:t.status,headers:t.headers}}if(r===I.error){if(ur(t)){var n,a;if(t.data instanceof Error){var l,o;return{type:I.error,error:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(o=t.init)!=null&&o.headers?new Headers(t.init.headers):void 0}}return{type:I.error,error:new Pt(((n=t.init)==null?void 0:n.status)||500,void 0,t.data),statusCode:Ge(t)?t.status:void 0,headers:(a=t.init)!=null&&a.headers?new Headers(t.init.headers):void 0}}return{type:I.error,error:t,statusCode:Ge(t)?t.status:void 0}}if(Fn(t)){var c,d;return{type:I.deferred,deferredData:t,statusCode:(c=t.init)==null?void 0:c.status,headers:((d=t.init)==null?void 0:d.headers)&&new Headers(t.init.headers)}}if(ur(t)){var m,v;return{type:I.data,data:t.data,statusCode:(m=t.init)==null?void 0:m.status,headers:(v=t.init)!=null&&v.headers?new Headers(t.init.headers):void 0}}return{type:I.data,data:t}}function Tn(e,t,r,n,a,l){let o=e.headers.get("Location");if(U(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!jt.test(o)){let c=n.slice(0,n.findIndex(d=>d.route.id===r)+1);
11o=xt(new URL(t.url),c,a,!0,o,l),e.headers.set("Location",o)}return e}function ar(e,t,r,n){let a=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(jt.test(e)){let l=e,o=l.startsWith("//")?new URL(t.protocol+l):new URL(l);if(a.includes(o.protocol))throw new Error("Invalid redirect location");let c=Qe(o.pathname,r)!=null;if(o.origin===t.origin&&c)return Lt(o.pathname)+o.search+o.hash}try{let l=n.createURL(e);if(a.includes(l.protocol))throw new Error("Invalid redirect location")}catch{}return e}function Fe(e,t,r,n){let a=e.createURL(Er(t)).toString(),l={signal:r};if(n&&oe(n.formMethod)){let{formMethod:o,formEncType:c}=n;l.method=o.toUpperCase(),c==="application/json"?(l.headers=new Headers({"Content-Type":c}),l.body=JSON.stringify(n.json)):c==="text/plain"?l.body=n.text:c==="application/x-www-form-urlencoded"&&n.formData?l.body=St(n.formData):l.body=n.formData}return new Request(a,l)}function St(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function ir(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Un(e,t,r,n,a){let l={},o=null,c,d=!1,m={},v=r&&ee(r[1])?r[1].error:void 0;return e.forEach(h=>{if(!(h.route.id in t))return;let y=h.route.id,b=t[y];if(U(!Se(b),"Cannot handle redirect results in processLoaderData"),ee(b)){let C=b.error;v!==void 0&&(C=v,v=void 0),o=o||{};{let x=De(e,y);o[x.route.id]==null&&(o[x.route.id]=C)}l[y]=void 0,d||(d=!0,c=Ge(b.error)?b.error.status:500),b.headers&&(m[y]=b.headers)}else ve(b)?(n.set(y,b.deferredData),l[y]=b.deferredData.data,b.statusCode!=null&&b.statusCode!==200&&!d&&(c=b.statusCode),b.headers&&(m[y]=b.headers)):(l[y]=b.data,b.statusCode&&b.statusCode!==200&&!d&&(c=b.statusCode),b.headers&&(m[y]=b.headers))}
11),v!==void 0&&r&&(o={[r[0]]:v},l[r[0]]=void 0),{loaderData:l,errors:o,statusCode:c||200,loaderHeaders:m}}function or(e,t,r,n,a,l,o){let{loaderData:c,errors:d}=Un(t,r,n,o);return a.forEach(m=>{let{key:v,match:h,controller:y}=m,b=l[v];if(U(b,"Did not find corresponding fetcher result"),!(y&&y.signal.aborted))if(ee(b)){let C=De(e.matches,h==null?void 0:h.route.id);d&&d[C.route.id]||(d=N({},d,{[C.route.id]:b.error})),e.fetchers.delete(v)}else if(Se(b))U(!1,"Unhandled fetcher revalidation redirect");else if(ve(b))U(!1,"Unhandled fetcher deferred data");else{let C=pe(b.data);e.fetchers.set(v,C)}}),{loaderData:c,errors:d}}function lr(e,t,r,n){let a=N({},t);for(let l of r){let o=l.route.id;if(t.hasOwnProperty(o)?t[o]!==void 0&&(a[o]=t[o]):e[o]!==void 0&&l.route.loader&&(a[o]=e[o]),n&&n.hasOwnProperty(o))break}return a}function sr(e){return e?ee(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function De(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function dr(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Z(e,t){let{pathname:r,routeId:n,method:a,type:l,message:o}=t===void 0?{}:t,c="Unknown Server Error",d="Unknown @remix-run/router error";return e===400?(c="Bad Request",a&&r&&n?d="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.":l==="defer-action"?d="defer() is not supported in actions":l==="invalid-body"&&(d="Unable to encode submission body")):e===403?(c="Forbidden",d='Route "'+n+'" does not match URL "'+r+'"'):e===404?(c="Not Found",d='No route matches URL "'+r+'"'):e===405&&(c="Method Not Allowed",a&&r&&n?d="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&&(d='Invalid request method "'+a.toUpperCase()+'"')),new Pt(e||500,c,new Error(d),!0)}function dt(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if(Se(a))return{key:n,result:a}}}function Er(e){let t=typeof e=="string"?ge(e):e;return Xe(N({},t,{hash:""}))}function On(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function _n(e){return Rr(e.result)&&wn.has(e.result.status)}function ve(e){return e.type===I.deferred}function ee(e){return e.type===I.error}function Se(e){return(e&&e.type)===I.redirect}function ur(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Fn(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Rr(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function In(e){return bn.has(e.toLowerCase())}function oe(e){return gn.has(e.toLowerCase())}async function An(e,t,r,n,a){let l=Object.entries(t);for(let o=0;o<l.length;o++){let[c,d]=l[o],m=e.find(y=>(y==null?void 0:y.route.id)===c);if(!m)continue;let v=n.find(y=>y.route.id===m.route.id),h=v!=null&&!br(v,m)&&(a&&a[m.route.id])!==void 0;ve(d)&&h&&await Tt(d,r,!1).then(y=>{y&&(t[c]=y)})}}async function Nn(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:l,controller:o}=r[n],c=t[a];e.find(m=>(m==null?void 0:m.route.id)===l)&&ve(c)&&(U(o,"Expected an AbortController for revalidating fetcher deferred result"),await Tt(c,o.signal,!0).then(m=>{m&&(t[a]=m)}))}}async function Tt(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:I.data,data:e.deferredData.unwrappedData}}catch(a){return{type:I.error,error:a}}return{type:I.data,data:e.deferredData.data}}}function Ut(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Je(e,t){let r=typeof t=="string"?ge(t).search:t.search;if(e[e.length-1].route.index&&Ut(r||""))return e[e.length-1];let n=vr(e);return n[n.length-1]}function cr(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:l,json:o}=e;
11if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(l!=null)return{formMethod:t,formAction:r,formEncType:n,formData:l,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:o,text:void 0}}}function Et(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 Bn(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function $e(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 zn(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function pe(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function kn(e,t){try{let r=e.sessionStorage.getItem(yr);if(r){let n=JSON.parse(r);for(let[a,l]of Object.entries(n||{}))l&&Array.isArray(l)&&t.set(a,new Set(l||[]))}}catch{}}function Hn(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(yr,JSON.stringify(r))}catch(n){Ce(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/**
12 * React Router v6.30.4
13 *
14 * Copyright (c) Remix Software Inc.
15 *
16 * This source code is licensed under the MIT license found in the
17 * LICENSE.md file in the root directory of this source tree.
18 *
19 * @license MIT
20 */function ft(){return ft=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ft.apply(null,arguments)}const Ot=w.createContext(null),Wn=w.createContext(null),ht=w.createContext(null),Ie=w.createContext(null),_t=w.createContext(null),fe=w.createContext({outlet:null,matches:[],isDataRoute:!1}),Pr=w.createContext(null);function ma(e,t){let{relative:r}=t===void 0?{}:t;Ze()||U(!1);let{basename:n,navigator:a}=w.useContext(Ie),{hash:l,pathname:o,search:c}=Jn(e,{relative:r}),d=o;return n!=="/"&&(d=o==="/"?n:ce([n,o])),a.createHref({pathname:d,search:c,hash:l})}function Ze(){return w.useContext(_t)!=null}function Ft(){return Ze()||U(!1),w.useContext(_t).location}function xr(e){w.useContext(Ie).static||w.useLayoutEffect(e)}function pa(){let{isDataRoute:e}=w.useContext(fe);return e?ra():Kn()}function Kn(){Ze()||U(!1);let e=w.useContext(Ot),{basename:t,future:r,navigator:n}=w.useContext(Ie),{matches:a}=w.useContext(fe),{pathname:l}=Ft(),o=JSON.stringify(Ct(a,r.v7_relativeSplatPath)),c=w.useRef(!1);return xr(()=>{c.current=!0}),w.useCallback(function(m,v){if(v===void 0&&(v={}),!c.current)return;if(typeof m=="number"){n.go(m);return}let h=Mt(m,JSON.parse(o),l,v.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:ce([t,h.pathname])),(v.replace?n.replace:n.push)(h,v.state,v)},[t,n,o,l,e])}const Vn=w.createContext(null);function $n(e){let t=w.useContext(fe).outlet;return t&&w.createElement(Vn.Provider,{value:e},t)}function va(){let{matches:e}=w.useContext(fe),t=e[e.length-1];return t?t.params:{}}function Jn(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=w.useContext(Ie),{matches:a}=w.useContext(fe),{pathname:l}=Ft(),o=JSON.stringify(Ct(a,n.v7_relativeSplatPath));return w.useMemo(()=>Mt(e,JSON.parse(o),l,r==="path"),[e,o,l,r])}function ga(e,t,r,n){Ze()||U(!1);let{navigator:a}=w.useContext(Ie),{matches:l}=w.useContext(fe),o=l[l.length-1],c=o?o.params:{};o&&o.pathname;let d=o?o.pathnameBase:"/";o&&o.route;let m=Ft(),v;v=m;let h=v.pathname||"/",y=h;if(d!=="/"){let x=d.replace(/^\//,"").split("/");y="/"+h.replace(/^\//,"").split("/").slice(x.length).join("/")}let b=xe(e,{pathname:y});return Zn(b&&b.map(x=>Object.assign({},x,{params:Object.assign({},c,x.params),pathname:ce([d,a.encodeLocation?a.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?d:ce([d,a.encodeLocation?a.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),l,r,n)}function Yn(){let e=ea(),t=Ge(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application 
20Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),r?w.createElement("pre",{style:a},r):null,null)}const Gn=w.createElement(Yn,null);class Xn extends w.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?w.createElement(fe.Provider,{value:this.props.routeContext},w.createElement(Pr.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Qn(e){let{routeContext:t,match:r,children:n}=e,a=w.useContext(Ot);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),w.createElement(fe.Provider,{value:t},n)}function Zn(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var l;if(!r)return null;if(r.errors)e=r.matches;else if((l=n)!=null&&l.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,c=(a=r)==null?void 0:a.errors;if(c!=null){let v=o.findIndex(h=>h.route.id&&(c==null?void 0:c[h.route.id])!==void 0);v>=0||U(!1),o=o.slice(0,Math.min(o.length,v+1))}let d=!1,m=-1;if(r&&n&&n.v7_partialHydration)for(let v=0;v<o.length;v++){let h=o[v];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(m=v),h.route.id){let{loaderData:y,errors:b}=r,C=h.route.loader&&y[h.route.id]===void 0&&(!b||b[h.route.id]===void 0);if(h.route.lazy||C){d=!0,m>=0?o=o.slice(0,m+1):o=[o[0]];break}}}return o.reduceRight((v,h,y)=>{let b,C=!1,x=null,L=null;r&&(b=c&&h.route.id?c[h.route.id]:void 0,x=h.route.errorElement||Gn,d&&(m<0&&y===0?(na("route-fallback"),C=!0,L=null):m===y&&(C=!0,L=h.route.hydrateFallbackElement||null)));let B=t.concat(o.slice(0,y+1)),T=()=>{let J;return b?J=x:C?J=L:h.route.Component?J=w.createElement(h.route.Component,null):h.route.element?J=h.route.element:J=v,w.createElement(Qn,{match:h,routeContext:{outlet:v,matches:B,isDataRoute:r!=null},children:J})};return r&&(h.route.ErrorBoundary||h.route.errorElement||y===0)?w.createElement(Xn,{location:r.location,revalidation:r.revalidation,component:x,error:b,children:T(),routeContext:{outlet:null,matches:B,isDataRoute:!0}}):T()},null)}var Dr=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Dr||{}),Sr=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}(Sr||{});function Cr(e){let t=w.useContext(Ot);return t||U(!1),t}function Ae(e){let t=w.useContext(Wn);return t||U(!1),t}function qn(e){let t=w.useContext(fe);return t||U(!1),t}function mt(e){let t=qn(),r=t.matches[t.matches.length-1];return r.route.id||U(!1),r.route.id}function ya(){return mt()}function ba(){return Ae().navigation}function wa(){let e=Cr(),t=Ae();return w.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function Ea(){let{matches:e,loaderData:t}=Ae();return w.useMemo(()=>e.map(r=>hr(r,t)),[e,t])}function Ra(){let e=Ae(),t=mt();if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function Pa(e){return Ae().loaderData[e]}function ea(){var e;let t=w.useContext(Pr),r=Ae(Sr.UseRouteError),n=mt();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function ta(){let e=w.useContext(ht);return e==null?void 0:e._data}function xa(){let e=w.useContext(ht);return e==null?void 0:e._error}function ra(){let{router:e}
20=Cr(Dr.UseNavigateStable),t=mt(),r=w.useRef(!1);return xr(()=>{r.current=!0}),w.useCallback(function(a,l){l===void 0&&(l={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,ft({fromRouteId:t},l)))},[e,t])}const fr={};function na(e,t,r){fr[e]||(fr[e]=!0)}function Da(e,t){e==null||e.v7_startTransition,(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function Sa(e){return $n(e.context)}function Ca(e){let{basename:t="/",children:r=null,location:n,navigationType:a=V.Pop,navigator:l,static:o=!1,future:c}=e;Ze()&&U(!1);let d=t.replace(/^\/*/,"/"),m=w.useMemo(()=>({basename:d,navigator:l,static:o,future:ft({v7_relativeSplatPath:!1},c)}),[d,c,l,o]);typeof n=="string"&&(n=ge(n));let{pathname:v="/",search:h="",hash:y="",state:b=null,key:C="default"}=n,x=w.useMemo(()=>{let L=Qe(v,d);return L==null?null:{location:{pathname:L,search:h,hash:y,state:b,key:C},navigationType:a}},[d,v,h,y,b,C,a]);return x==null?null:w.createElement(Ie.Provider,{value:m},w.createElement(_t.Provider,{children:r,value:x}))}function Ma(e){let{children:t,errorElement:r,resolve:n}=e;return w.createElement(ia,{resolve:n,errorElement:r},w.createElement(oa,null,t))}var ne=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(ne||{});const aa=new Promise(()=>{});class ia extends w.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,r){console.error("<Await> caught the following error during render",t,r)}render(){let{children:t,errorElement:r,resolve:n}=this.props,a=null,l=ne.pending;if(!(n instanceof Promise))l=ne.success,a=Promise.resolve(),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_data",{get:()=>n});else if(this.state.error){l=ne.error;let o=this.state.error;a=Promise.reject().catch(()=>{}),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_error",{get:()=>o})}else n._tracked?(a=n,l="_error"in a?ne.error:"_data"in a?ne.success:ne.pending):(l=ne.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),a=n.then(o=>Object.defineProperty(n,"_data",{get:()=>o}),o=>Object.defineProperty(n,"_error",{get:()=>o})));if(l===ne.error&&a._error instanceof Rt)throw aa;if(l===ne.error&&!r)throw a._error;if(l===ne.error)return w.createElement(ht.Provider,{value:a,children:r});if(l===ne.success)return w.createElement(ht.Provider,{value:a,children:t});throw a}}function oa(e){let{children:t}=e,r=ta(),n=typeof t=="function"?t(r):t;return w.createElement(w.Fragment,null,n)}function La(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:w.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:w.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:w.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}export{Rt as A,Ge as B,ua as C,Ot as D,Pt as E,fa as F,Ma as G,xa as H,Rn as I,Ra as J,Pa as K,Ie as N,Sa as O,Ca as R,pa as a,Wn as b,ga as c,Jn as d,Ft as e,ma as f,Xe as g,fe as h,U as i,ya as j,ce as k,Da as l,Qt as m,Ea as n,ba as o,da as p,xe as q,ha as r,Qe as s,sa as t,va as u,La as v,ea as w,wa as x,ge as y,ca as z};
21//# sourceMappingURL=index-DuATMukp.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.