@modern-js/devtools-client 2.54.6 → 2.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/modern.config.json +75 -65
- package/dist/public/sw-proxy.js +1 -1
- package/dist/route.json +2 -2
- package/dist/routes-manifest.json +77 -85
- package/dist/static/css/{599.e744b37c.css → 102.e744b37c.css} +1 -1
- package/dist/static/css/{518.861d0891.css → 675.861d0891.css} +1 -1
- package/dist/static/css/components.41191267.css +1 -1
- package/dist/static/html/client/index.html +5 -0
- package/dist/static/html/mount/index.html +5 -0
- package/dist/static/js/{async/851.32405bb9.js → 102.56c294c3.js} +9 -9
- package/dist/static/js/{async/851.32405bb9.js.LICENSE.txt → 102.56c294c3.js.LICENSE.txt} +8 -2
- package/dist/static/js/221.f9f3f0be.js +1 -0
- package/dist/static/js/675.e56cac26.js +18 -0
- package/dist/static/js/{518.3a4d37e3.js.LICENSE.txt → 675.e56cac26.js.LICENSE.txt} +10 -0
- package/dist/static/js/{991.17fd54ac.js → 991.e814d674.js} +2 -3
- package/dist/static/js/async/{769.9da82d5e.js → 474.e3ea960e.js} +1 -1
- package/dist/static/js/async/client_config/(toolkit).(type)/page.72fc872c.js +1 -0
- package/dist/static/js/async/client_config/{layout.940bdfa0.js → layout.139190d7.js} +1 -1
- package/dist/static/js/async/client_config/page.8c2e24d9.js +1 -0
- package/dist/static/js/async/client_context/builder/page.c389fea4.js +1 -0
- package/dist/static/js/async/client_context/framework/page.86e4d0c6.js +1 -0
- package/dist/static/js/async/client_context/{layout.dc4011c7.js → layout.6dd7785a.js} +1 -1
- package/dist/static/js/async/client_context/page.e4b72889.js +1 -0
- package/dist/static/js/async/client_doctor/page.345de4e6.js +1 -0
- package/dist/static/js/async/client_external/$.9352fb0d.js +1 -0
- package/dist/static/js/async/client_external/layout.8666c196.js +1 -0
- package/dist/static/js/async/client_headers/editor/page.8220176d.js +1 -0
- package/dist/static/js/async/client_headers/{layout.4a4dde71.js → layout.51293428.js} +1 -1
- package/dist/static/js/async/client_headers/page.9d807355.js +1 -0
- package/dist/static/js/async/client_headers/welcome/page.7fec5e79.js +1 -0
- package/dist/static/js/async/client_overview/{layout.1dd8a005.js → layout.e3c15e8c.js} +1 -1
- package/dist/static/js/async/client_overview/page.3d5aa6c0.js +1 -0
- package/dist/static/js/async/client_page.b804e22c.js +1 -0
- package/dist/static/js/async/client_pages/{layout.6a85b0e0.js → layout.6a0806e4.js} +1 -1
- package/dist/static/js/async/client_pages/page.7b871c21.js +1 -0
- package/dist/static/js/async/client_react/(tab)/page.5055e34d.js +1 -0
- package/dist/static/js/async/client_react/offscreen/page.2511e7a7.js +1 -0
- package/dist/static/js/async/client_react/page.959bc63c.js +1 -0
- package/dist/static/js/async/client_storage/preset/(id)/page.83fe1387.js +1 -0
- package/dist/static/js/async/client_storage/preset/layout.6950097c.js +1 -0
- package/dist/static/js/async/client_storage/preset/page.0fc1178b.js +1 -0
- package/dist/static/js/builder-runtime.c483867c.js +1 -0
- package/dist/static/js/client.44decf38.js +1 -0
- package/dist/static/js/components.b9474b8d.js +1 -0
- package/dist/static/js/{lib-lodash.4ab7d73a.js → lib-lodash.8ad2ccf0.js} +2 -2
- package/dist/static/js/lib-polyfill.e9c6441c.js +1 -0
- package/dist/static/js/{lib-react.be245967.js → lib-react.0049ff32.js} +2 -2
- package/dist/static/js/{lib-router.619ce9d4.js → lib-router.425f945d.js} +2 -2
- package/dist/static/js/mount.de51e2eb.js +1 -0
- package/package.json +12 -12
- package/dist/html/client/index.html +0 -5
- package/dist/html/mount/index.html +0 -5
- package/dist/static/js/277.1ce8ace1.js +0 -1
- package/dist/static/js/518.3a4d37e3.js +0 -18
- package/dist/static/js/599.553c521a.js +0 -2
- package/dist/static/js/599.553c521a.js.LICENSE.txt +0 -8
- package/dist/static/js/991.17fd54ac.js.LICENSE.txt +0 -9
- package/dist/static/js/async/client_config/(toolkit).(type)/page.afc8e58e.js +0 -1
- package/dist/static/js/async/client_config/page.9d42d42a.js +0 -1
- package/dist/static/js/async/client_context/builder/page.0dc5a1e9.js +0 -1
- package/dist/static/js/async/client_context/framework/page.b4f8bc08.js +0 -1
- package/dist/static/js/async/client_context/page.be7bb5ff.js +0 -1
- package/dist/static/js/async/client_doctor/page.375c9c91.js +0 -1
- package/dist/static/js/async/client_external/$.df5499f5.js +0 -1
- package/dist/static/js/async/client_external/layout.9d8d3bbe.js +0 -1
- package/dist/static/js/async/client_headers/editor/page.e44e7804.js +0 -1
- package/dist/static/js/async/client_headers/page.f0f8550b.js +0 -1
- package/dist/static/js/async/client_headers/welcome/page.72018b7e.js +0 -1
- package/dist/static/js/async/client_overview/page.8cdd6473.js +0 -1
- package/dist/static/js/async/client_page.2565084c.js +0 -1
- package/dist/static/js/async/client_pages/page.07783134.js +0 -1
- package/dist/static/js/async/client_react/(tab)/page.62695646.js +0 -1
- package/dist/static/js/async/client_react/offscreen/page.71d8db51.js +0 -1
- package/dist/static/js/async/client_react/page.798c11ca.js +0 -1
- package/dist/static/js/async/client_storage/preset/(id)/page.61899ba8.js +0 -1
- package/dist/static/js/async/client_storage/preset/layout.cbc09989.js +0 -1
- package/dist/static/js/async/client_storage/preset/page.fa223b1a.js +0 -1
- package/dist/static/js/builder-runtime.3d117aeb.js +0 -1
- package/dist/static/js/client.58507476.js +0 -1
- package/dist/static/js/components.1e877f2c.js +0 -1
- package/dist/static/js/lib-polyfill.a0b0c08b.js +0 -1
- package/dist/static/js/mount.91f07cc0.js +0 -1
- /package/dist/static/js/{lib-lodash.4ab7d73a.js.LICENSE.txt → lib-lodash.8ad2ccf0.js.LICENSE.txt} +0 -0
- /package/dist/static/js/{lib-react.be245967.js.LICENSE.txt → lib-react.0049ff32.js.LICENSE.txt} +0 -0
- /package/dist/static/js/{lib-router.619ce9d4.js.LICENSE.txt → lib-router.425f945d.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see lib-router.
|
|
2
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["118"],{85852:function(e,t,r){var n,a,o,i;function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,{Ep:function(){return m},J0:function(){return d},LX:function(){return R},OF:function(){return A},RQ:function(){return U},WK:function(){return F},WS:function(){return E},X3:function(){return j},Zn:function(){return D},aU:function(){return n},cP:function(){return v},cm:function(){return P},fp:function(){return b},lX:function(){return u},p7:function(){return Y},pC:function(){return k},q_:function(){return c},uX:function(){return O}}),(o=n||(n={})).Pop="POP",o.Push="PUSH",o.Replace="REPLACE";let s="popstate";function u(e){return void 0===e&&(e={}),y(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return p("",{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:m(t)},null,e)}function c(e){return void 0===e&&(e={}),y(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=v(e.location.hash.substr(1));return!r.startsWith("/")&&!r.startsWith(".")&&(r="/"+r),p("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:m(t))},function(e,t){f("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function d(e,t){if(!1===e||null==e)throw Error(t)}function f(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function h(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,r,n){return void 0===r&&(r=null),l({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?v(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function m(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 v(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 y(e,t,r,a){void 0===a&&(a={});let{window:o=document.defaultView,v5Compat:i=!1}=a,u=o.history,c=n.Pop,f=null,v=y();function y(){return(u.state||{idx:null}).idx}function g(){c=n.Pop;let e=y(),t=null==e?null:e-v;v=e,f&&f({action:c,location:b.location,delta:t})}null==v&&(v=0,u.replaceState(l({},u.state,{idx:v}),""));function w(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,r="string"==typeof e?e:m(e);return d(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}let b={get action(){return c},get location(){return e(o,u)},listen(e){if(f)throw Error("A history only accepts one active listener");return o.addEventListener(s,g),f=e,()=>{o.removeEventListener(s,g),f=null}},createHref:e=>t(o,e),createURL:w,encodeLocation(e){let t=w(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=n.Push;let a=p(b.location,e,t);r&&r(a,e);let l=h(a,v=y()+1),s=b.createHref(a);try{u.pushState(l,"",s)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(s)}i&&f&&f({action:c,location:b.location,delta:1})},replace:function(e,t){c=n.Replace;let a=p(b.location,e,t);r&&r(a,e);let o=h(a,v=y()),l=b.createHref(a);u.replaceState(o,"",l),i&&f&&f({action:c,location:b.location,delta:0})},go:e=>u.go(e)};return b}(i=a||(a={})).data="data",i.deferred="deferred",i.redirect="redirect",i.error="error";let g=new Set(["lazy","caseSensitive","path","id","index","children"]);function w(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{let o=[...r,a],i="string"==typeof e.id?e.id:o.join("-");if(d(!0!==e.index||!e.children,"Cannot specify children on an index route"),d(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let r=l({},e,t(e),{id:i});return n[i]=r,r}{let r=l({},e,t(e),{id:i,children:void 0});return n[i]=r,e.children&&(r.children=w(e.children,t,o,n)),r}})}function b(e,t,r){void 0===r&&(r="/");let n=D(("string"==typeof t?v(t):t).pathname||"/",r);if(null==n)return null;let a=function e(t,r,n,a){void 0===r&&(r=[]),void 0===n&&(n=[]),void 0===a&&(a="");let o=(t,o,i)=>{let l={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};l.relativePath.startsWith("/")&&(d(l.relativePath.startsWith(a),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+a)+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),l.relativePath=l.relativePath.slice(a.length));let s=U([a,l.relativePath]),u=n.concat(l);if(t.children&&t.children.length>0&&(d(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),e(t.children,r,u,s)),null!=t.path||!!t.index)r.push({path:s,score:function(e,t){let r=e.split("/"),n=r.length;return r.some(S)&&(n+=-2),t&&(n+=2),r.filter(e=>!S(e)).reduce((e,t)=>e+(x.test(t)?3:""===t?1:10),n)}(s,t.index),routesMeta:u})};return t.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of function e(t){let r=t.split("/");if(0===r.length)return[];let[n,...a]=r,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let l=e(a.join("/")),s=[];return s.push(...l.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...l),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,r);else o(e,t)}),r}(e);(function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,r)=>e===t[r])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))})(a);let o=null;for(let e=0;null==o&&e<a.length;++e)o=function(e,t){let{routesMeta:r}=e,n={},a="/",o=[];for(let e=0;e<r.length;++e){let i=r[e],l=e===r.length-1,s="/"===a?t:t.slice(a.length)||"/",u=R({path:i.relativePath,caseSensitive:i.caseSensitive,end:l},s);if(!u)return null;Object.assign(n,u.params);let c=i.route;o.push({params:n,pathname:U([a,u.pathname]),pathnameBase:T(U([a,u.pathnameBase])),route:c}),"/"!==u.pathnameBase&&(a=U([a,u.pathnameBase]))}return o}(a[e],function(e){try{return decodeURI(e)}catch(t){return f(!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}}(n));return o}function E(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}}let x=/^:[\w-]+$/,S=e=>"*"===e;function R(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),f("*"===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,(e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:n.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=l[r]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}let s=l[r];return a&&!s?e[n]=void 0:e[n]=function(e,t){try{return decodeURIComponent(e)}catch(r){return f(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e)+'" is a malformed URL segment. This is probably'+(" due to a bad percent encoding ("+r)+")."),e}}(s||"",n),e},{}),pathname:o,pathnameBase:i,pattern:e}}function D(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 L(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 C(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function P(e,t){let r=C(e);return t?r.map((t,r)=>r===e.length-1?t.pathname:t.pathnameBase):r.map(e=>e.pathnameBase)}function k(e,t,r,n){let a,o;void 0===n&&(n=!1),"string"==typeof e?a=v(e):(d(!(a=l({},e)).pathname||!a.pathname.includes("?"),L("?","pathname","search",a)),d(!a.pathname||!a.pathname.includes("#"),L("#","pathname","hash",a)),d(!a.search||!a.search.includes("#"),L("#","search","hash",a)));let i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:a=""}="string"==typeof e?v(e):e;return{pathname:r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}(r,t):t,search:_(n),hash:M(a)}}(a,o),c=s&&"/"!==s&&s.endsWith("/"),f=(i||"."===s)&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||f)&&(u.pathname+="/"),u}let U=e=>e.join("/").replace(/\/\/+/g,"/"),T=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",M=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class j extends Error{}let O=function(e,t){void 0===t&&(t=302);let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,l({},r,{headers:n}))};class A{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 F(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let B=["post","put","patch","delete"],W=new Set(B),z=new Set(["get",...B]),N=new Set([301,302,303,307,308]),H=new Set([307,308]),I={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},J={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},$={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},q=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,V=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),X="remix-router-transitions";function Y(e){let t,r,o,i,s;let u=e.window?e.window:"undefined"!=typeof window?window:void 0,c=void 0!==u&&void 0!==u.document&&void 0!==u.document.createElement,h=!c;if(d(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=V;let m={},v=w(e.routes,t,void 0,m),y=e.basename||"/",g=l({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),x=null,S=new Set,R=null,L=null,C=null,P=null!=e.hydrationData,k=b(v,e.history.location,y),U=null;if(null==k){let t=ec(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=eu(v);k=r,U={[n.id]:t}}let T=k.some(e=>e.route.lazy),_=k.some(e=>e.route.loader);if(T)o=!1;else if(_){if(g.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;o=k.every(e=>e.route.loader&&!0!==e.route.loader.hydrate&&(t&&void 0!==t[e.route.id]||r&&void 0!==r[e.route.id]))}else o=null!=e.hydrationData}else o=!0;let M={historyAction:e.history.action,location:e.history.location,matches:k,initialized:o,navigation:I,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||U,fetchers:new Map,blockers:new Map},j=n.Pop,O=!1,A=!1,F=new Map,B=null,W=!1,z=!1,N=[],Y=[],G=new Map,ee=0,et=-1,ea=new Map,eo=new Set,ef=new Map,ew=new Map,eD=new Set,eL=new Map,eC=new Map,eP=!1;function ek(e,t){void 0===t&&(t={}),M=l({},M,e);let r=[],n=[];g.v7_fetcherPersist&&M.fetchers.forEach((e,t)=>{"idle"===e.state&&(eD.has(t)?n.push(t):r.push(t))}),[...S].forEach(e=>e(M,{deletedFetchers:n,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync})),g.v7_fetcherPersist&&(r.forEach(e=>M.fetchers.delete(e)),n.forEach(e=>eI(e)))}function eU(t,a,o){var i,s;let u,c;let{flushSync:d}=void 0===o?{}:o,f=null!=M.actionData&&null!=M.navigation.formMethod&&ev(M.navigation.formMethod)&&"loading"===M.navigation.state&&(null==(i=t.state)?void 0:i._isRedirect)!==!0;u=a.actionData?Object.keys(a.actionData).length>0?a.actionData:null:f?M.actionData:null;let h=a.loaderData?el(M.loaderData,a.loaderData,a.matches||[],a.errors):M.loaderData,p=M.blockers;p.size>0&&(p=new Map(p)).forEach((e,t)=>p.set(t,$));let m=!0===O||null!=M.navigation.formMethod&&ev(M.navigation.formMethod)&&(null==(s=t.state)?void 0:s._isRedirect)!==!0;if(r&&(v=r,r=void 0),W||j===n.Pop||(j===n.Push?e.history.push(t,t.state):j===n.Replace&&e.history.replace(t,t.state)),j===n.Pop){let e=F.get(M.location.pathname);e&&e.has(t.pathname)?c={currentLocation:M.location,nextLocation:t}:F.has(t.pathname)&&(c={currentLocation:t,nextLocation:M.location})}else if(A){let e=F.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),F.set(M.location.pathname,e)),c={currentLocation:M.location,nextLocation:t}}ek(l({},a,{actionData:u,loaderData:h,historyAction:j,location:t,initialized:!0,navigation:I,revalidation:"idle",restoreScrollPosition:eG(t,a.matches||M.matches),preventScrollReset:m,blockers:p}),{viewTransitionOpts:c,flushSync:!0===d}),j=n.Pop,O=!1,A=!1,W=!1,z=!1,N=[],Y=[]}async function eT(t,r){if("number"==typeof t){e.history.go(t);return}let a=K(M.location,M.matches,y,g.v7_prependBasename,t,g.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:o,submission:i,error:s}=Q(g.v7_normalizeFormMethod,!1,a,r),u=M.location,c=p(M.location,o,r&&r.state);c=l({},c,e.history.encodeLocation(c));let d=r&&null!=r.replace?r.replace:void 0,f=n.Push;!0===d?f=n.Replace:!1===d||null!=i&&ev(i.formMethod)&&i.formAction===M.location.pathname+M.location.search&&(f=n.Replace);let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,m=!0===(r&&r.unstable_flushSync),v=eK({currentLocation:u,nextLocation:c,historyAction:f});if(v){eY(v,{state:"blocked",location:c,proceed(){eY(v,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),eT(t,r)},reset(){let e=new Map(M.blockers);e.set(v,$),ek({blockers:e})}});return}return await e_(f,c,{submission:i,pendingError:s,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.unstable_viewTransition,flushSync:m})}async function e_(t,n,a){let o,i;s&&s.abort(),s=null,j=t,W=!0===(a&&a.startUninterruptedRevalidation),function(e,t){R&&C&&(R[eZ(e,t)]=C())}(M.location,M.matches),O=!0===(a&&a.preventScrollReset),A=!0===(a&&a.enableViewTransition);let u=r||v,c=a&&a.overrideNavigation,d=b(u,n,y),f=!0===(a&&a.flushSync);if(!d){let e=ec(404,{pathname:n.pathname}),{matches:t,route:r}=eu(u);eQ(),eU(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:f});return}if(M.initialized&&!z&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(M.location,n)&&!(a&&a.submission&&ev(a.submission.formMethod))){eU(n,{matches:d},{flushSync:f});return}s=new AbortController;let h=en(e.history,n,s.signal,a&&a.submission);if(a&&a.pendingError)i={[es(d).route.id]:a.pendingError};else if(a&&a.submission&&ev(a.submission.formMethod)){let e=await eM(h,n,a.submission,d,{replace:a.replace,flushSync:f});if(e.shortCircuited)return;o=e.pendingActionData,i=e.pendingActionError,c=ex(n,a.submission),f=!1,h=new Request(h.url,{signal:h.signal})}let{shortCircuited:p,loaderData:m,errors:g}=await ej(h,n,d,c,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,f,o,i);if(!p)s=null,eU(n,l({matches:d},o?{actionData:o}:{},{loaderData:m,errors:g}))}async function eM(e,r,o,i,l){let s;void 0===l&&(l={}),eW(),ek({navigation:function(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}}(r,o)},{flushSync:!0===l.flushSync});let u=eb(i,r);if(u.route.action||u.route.lazy){if(s=await er("action",e,u,i,m,t,y,g.v7_relativeSplatPath),e.signal.aborted)return{shortCircuited:!0}}else s={type:a.error,error:ec(405,{method:e.method,pathname:r.pathname,routeId:u.route.id})};if(em(s)){let e;return e=l&&null!=l.replace?l.replace:s.location===M.location.pathname+M.location.search,await eF(M,s,{submission:o,replace:e}),{shortCircuited:!0}}if(ep(s)){let e=es(i,u.route.id);return!0!==(l&&l.replace)&&(j=n.Push),{pendingActionData:{},pendingActionError:{[e.route.id]:s.error}}}if(eh(s))throw ec(400,{type:"defer-action"});return{pendingActionData:{[u.route.id]:s.data}}}async function ej(t,n,a,o,i,u,c,d,f,h,p){let m=o||ex(n,i),w=i||u||eE(m),b=r||v,[E,x]=Z(e.history,M,a,w,n,g.v7_partialHydration&&!0===d,z,N,Y,eD,ef,eo,b,y,h,p);if(eQ(e=>!(a&&a.some(t=>t.route.id===e))||E&&E.some(t=>t.route.id===e)),et=++ee,0===E.length&&0===x.length){let e=eq();return eU(n,l({matches:a,loaderData:{},errors:p||null},h?{actionData:h}:{},e?{fetchers:new Map(M.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(!W&&(!g.v7_partialHydration||!d)){x.forEach(e=>{let t=M.fetchers.get(e.key),r=eS(void 0,t?t.data:void 0);M.fetchers.set(e.key,r)});let e=h||M.actionData;ek(l({navigation:m},e?0===Object.keys(e).length?{actionData:null}:{actionData:e}:{},x.length>0?{fetchers:new Map(M.fetchers)}:{}),{flushSync:f})}x.forEach(e=>{G.has(e.key)&&eJ(e.key),e.controller&&G.set(e.key,e.controller)});let S=()=>x.forEach(e=>eJ(e.key));s&&s.signal.addEventListener("abort",S);let{results:R,loaderResults:D,fetcherResults:L}=await eB(M.matches,a,E,x,t);if(t.signal.aborted)return{shortCircuited:!0};s&&s.signal.removeEventListener("abort",S),x.forEach(e=>G.delete(e.key));let C=ed(R);if(C){if(C.idx>=E.length){let e=x[C.idx-E.length].key;eo.add(e)}return await eF(M,C.result,{replace:c}),{shortCircuited:!0}}let{loaderData:P,errors:k}=ei(M,a,E,D,p,x,L,eL);eL.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&eL.delete(t)})});let U=eq(),T=eV(et),_=U||T||x.length>0;return l({loaderData:P,errors:k},_?{fetchers:new Map(M.fetchers)}:{})}async function eO(n,a,o,i,l,u,c){if(eW(),ef.delete(n),!i.route.action&&!i.route.lazy){let e=ec(405,{method:c.formMethod,pathname:o,routeId:a});eN(n,a,e,{flushSync:u});return}let f=M.fetchers.get(n);ez(n,function(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}}(c,f),{flushSync:u});let h=new AbortController,p=en(e.history,o,h.signal,c);G.set(n,h);let w=ee,E=await er("action",p,i,l,m,t,y,g.v7_relativeSplatPath);if(p.signal.aborted){G.get(n)===h&&G.delete(n);return}if(g.v7_fetcherPersist&&eD.has(n)){if(em(E)||ep(E)){ez(n,eR(void 0));return}}else{if(em(E)){if(G.delete(n),!(et>w))return eo.add(n),ez(n,eS(c)),eF(M,E,{fetcherSubmission:c});ez(n,eR(void 0));return}if(ep(E)){eN(n,a,E.error);return}}if(eh(E))throw ec(400,{type:"defer-action"});let x=M.navigation.location||M.location,S=en(e.history,x,h.signal),R=r||v,D="idle"!==M.navigation.state?b(R,M.navigation.location,y):M.matches;d(D,"Didn't find any matches after fetcher action");let L=++ee;ea.set(n,L);let C=eS(c,E.data);M.fetchers.set(n,C);let[P,k]=Z(e.history,M,D,c,x,!1,z,N,Y,eD,ef,eo,R,y,{[i.route.id]:E.data},void 0);k.filter(e=>e.key!==n).forEach(e=>{let t=e.key,r=M.fetchers.get(t),n=eS(void 0,r?r.data:void 0);M.fetchers.set(t,n),G.has(t)&&eJ(t),e.controller&&G.set(t,e.controller)}),ek({fetchers:new Map(M.fetchers)});let U=()=>k.forEach(e=>eJ(e.key));h.signal.addEventListener("abort",U);let{results:T,loaderResults:_,fetcherResults:O}=await eB(M.matches,D,P,k,S);if(h.signal.aborted)return;h.signal.removeEventListener("abort",U),ea.delete(n),G.delete(n),k.forEach(e=>G.delete(e.key));let A=ed(T);if(A){if(A.idx>=P.length){let e=k[A.idx-P.length].key;eo.add(e)}return eF(M,A.result)}let{loaderData:F,errors:B}=ei(M,M.matches,P,_,void 0,k,O,eL);if(M.fetchers.has(n)){let e=eR(E.data);M.fetchers.set(n,e)}eV(L),"loading"===M.navigation.state&&L>et?(d(j,"Expected pending action"),s&&s.abort(),eU(M.navigation.location,{matches:D,loaderData:F,errors:B,fetchers:new Map(M.fetchers)})):(ek({errors:B,loaderData:el(M.loaderData,F,D,B),fetchers:new Map(M.fetchers)}),z=!1)}async function eA(r,n,a,o,i,l,s){let u=M.fetchers.get(r);ez(r,eS(s,u?u.data:void 0),{flushSync:l});let c=new AbortController,f=en(e.history,a,c.signal);G.set(r,c);let h=ee,p=await er("loader",f,o,i,m,t,y,g.v7_relativeSplatPath);if(eh(p)&&(p=await eg(p,f.signal,!0)||p),G.get(r)===c&&G.delete(r),!f.signal.aborted){if(eD.has(r)){ez(r,eR(void 0));return}if(em(p)){if(et>h){ez(r,eR(void 0));return}eo.add(r),await eF(M,p);return}if(ep(p)){eN(r,n,p.error);return}d(!eh(p),"Unhandled fetcher deferred data"),ez(r,eR(p.data))}}async function eF(t,r,a){let{submission:o,fetcherSubmission:i,replace:f}=void 0===a?{}:a;r.revalidate&&(z=!0);let h=p(t.location,r.location,{_isRedirect:!0});if(d(h,"Expected a location on the redirect navigation"),c){let t=!1;if(r.reloadDocument)t=!0;else if(q.test(r.location)){let n=e.history.createURL(r.location);t=n.origin!==u.location.origin||null==D(n.pathname,y)}if(t){f?u.location.replace(r.location):u.location.assign(r.location);return}}s=null;let m=!0===f?n.Replace:n.Push,{formMethod:v,formAction:g,formEncType:w}=t.navigation;!o&&!i&&v&&g&&w&&(o=eE(t.navigation));let b=o||i;if(H.has(r.status)&&b&&ev(b.formMethod))await e_(m,h,{submission:l({},b,{formAction:r.location}),preventScrollReset:O});else{let e=ex(h,o);await e_(m,h,{overrideNavigation:e,fetcherSubmission:i,preventScrollReset:O})}}async function eB(r,n,o,i,l){let s=await Promise.all([...o.map(e=>er("loader",l,e,n,m,t,y,g.v7_relativeSplatPath)),...i.map(r=>r.matches&&r.match&&r.controller?er("loader",en(e.history,r.path,r.controller.signal),r.match,r.matches,m,t,y,g.v7_relativeSplatPath):{type:a.error,error:ec(404,{pathname:r.path})})]),u=s.slice(0,o.length),c=s.slice(o.length);return await Promise.all([ey(r,o,u,u.map(()=>l.signal),!1,M.loaderData),ey(r,i.map(e=>e.match),c,i.map(e=>e.controller?e.controller.signal:null),!0)]),{results:s,loaderResults:u,fetcherResults:c}}function eW(){z=!0,N.push(...eQ()),ef.forEach((e,t)=>{G.has(t)&&(Y.push(t),eJ(t))})}function ez(e,t,r){void 0===r&&(r={}),M.fetchers.set(e,t),ek({fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function eN(e,t,r,n){void 0===n&&(n={});let a=es(M.matches,t);eI(e),ek({errors:{[a.route.id]:r},fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function eH(e){return g.v7_fetcherPersist&&(ew.set(e,(ew.get(e)||0)+1),eD.has(e)&&eD.delete(e)),M.fetchers.get(e)||J}function eI(e){let t=M.fetchers.get(e);G.has(e)&&!(t&&"loading"===t.state&&ea.has(e))&&eJ(e),ef.delete(e),ea.delete(e),eo.delete(e),eD.delete(e),M.fetchers.delete(e)}function eJ(e){let t=G.get(e);d(t,"Expected fetch controller: "+e),t.abort(),G.delete(e)}function e$(e){for(let t of e){let e=eR(eH(t).data);M.fetchers.set(t,e)}}function eq(){let e=[],t=!1;for(let r of eo){let n=M.fetchers.get(r);d(n,"Expected fetcher: "+r),"loading"===n.state&&(eo.delete(r),e.push(r),t=!0)}return e$(e),t}function eV(e){let t=[];for(let[r,n]of ea)if(n<e){let e=M.fetchers.get(r);d(e,"Expected fetcher: "+r),"loading"===e.state&&(eJ(r),ea.delete(r),t.push(r))}return e$(t),t.length>0}function eX(e){M.blockers.delete(e),eC.delete(e)}function eY(e,t){let r=M.blockers.get(e)||$;d("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),ek({blockers:n})}function eK(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===eC.size)return;eC.size>1&&f(!1,"A router only supports one blocker at a time");let a=Array.from(eC.entries()),[o,i]=a[a.length-1],l=M.blockers.get(o);if(!l||"proceeding"!==l.state){if(i({currentLocation:t,nextLocation:r,historyAction:n}))return o}}function eQ(e){let t=[];return eL.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),eL.delete(n))}),t}function eZ(e,t){return L&&L(e,t.map(e=>E(e,M.loaderData)))||e.key}function eG(e,t){if(R){let r=R[eZ(e,t)];if("number"==typeof r)return r}return null}return i={get basename(){return y},get future(){return g},get state(){return M},get routes(){return v},get window(){return u},initialize:function(){if(x=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(eP){eP=!1;return}f(0===eC.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=eK({currentLocation:M.location,nextLocation:n,historyAction:r});if(o&&null!=a){eP=!0,e.history.go(-1*a),eY(o,{state:"blocked",location:n,proceed(){eY(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),e.history.go(a)},reset(){let e=new Map(M.blockers);e.set(o,$),ek({blockers:e})}});return}return e_(r,n)}),c){(function(e,t){try{let r=e.sessionStorage.getItem(X);if(r){let e=JSON.parse(r);for(let[r,n]of Object.entries(e||{}))n&&Array.isArray(n)&&t.set(r,new Set(n||[]))}}catch(e){}})(u,F);let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(X,JSON.stringify(r))}catch(e){f(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(u,F);u.addEventListener("pagehide",e),B=()=>u.removeEventListener("pagehide",e)}return!M.initialized&&e_(n.Pop,M.location,{initialHydration:!0}),i},subscribe:function(e){return S.add(e),()=>S.delete(e)},enableScrollRestoration:function(e,t,r){if(R=e,C=t,L=r||null,!P&&M.navigation===I){P=!0;let e=eG(M.location,M.matches);null!=e&&ek({restoreScrollPosition:e})}return()=>{R=null,C=null,L=null}},navigate:eT,fetch:function(e,t,n,a){if(h)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.");G.has(e)&&eJ(e);let o=!0===(a&&a.unstable_flushSync),i=r||v,l=K(M.location,M.matches,y,g.v7_prependBasename,n,g.v7_relativeSplatPath,t,null==a?void 0:a.relative),s=b(i,l,y);if(!s){eN(e,t,ec(404,{pathname:l}),{flushSync:o});return}let{path:u,submission:c,error:d}=Q(g.v7_normalizeFormMethod,!0,l,a);if(d){eN(e,t,d,{flushSync:o});return}let f=eb(s,u);if(O=!0===(a&&a.preventScrollReset),c&&ev(c.formMethod)){eO(e,t,u,f,s,o,c);return}ef.set(e,{routeId:t,path:u}),eA(e,t,u,f,s,o,c)},revalidate:function(){if(eW(),ek({revalidation:"loading"}),"submitting"!==M.navigation.state){if("idle"===M.navigation.state){e_(M.historyAction,M.location,{startUninterruptedRevalidation:!0});return}e_(j||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:eH,deleteFetcher:function(e){if(g.v7_fetcherPersist){let t=(ew.get(e)||0)-1;t<=0?(ew.delete(e),eD.add(e)):ew.set(e,t)}else eI(e);ek({fetchers:new Map(M.fetchers)})},dispose:function(){x&&x(),B&&B(),S.clear(),s&&s.abort(),M.fetchers.forEach((e,t)=>eI(t)),M.blockers.forEach((e,t)=>eX(t))},getBlocker:function(e,t){let r=M.blockers.get(e)||$;return eC.get(e)!==t&&eC.set(e,t),r},deleteBlocker:eX,_internalFetchControllers:G,_internalActiveDeferreds:eL,_internalSetRoutes:function(e){r=w(e,t,void 0,m={})}}}Symbol("deferred");function K(e,t,r,n,a,o,i,l){let s,u;if(i){for(let e of(s=[],t))if(s.push(e),e.route.id===i){u=e;break}}else s=t,u=t[t.length-1];let c=k(a||".",P(s,o),D(e.pathname,r)||e.pathname,"path"===l);return null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&u&&u.route.index&&!ew(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&"/"!==r&&(c.pathname="/"===c.pathname?r:U([r,c.pathname])),m(c)}function Q(e,t,r,n){var a;let o,i;if(!n||!(null!=(a=n)&&("formData"in a&&null!=a.formData||"body"in a&&void 0!==a.body)))return{path:r};if(n.formMethod&&!function(e){return z.has(e.toLowerCase())}(n.formMethod))return{path:r,error:ec(405,{method:n.formMethod})};let l=()=>({path:r,error:ec(400,{type:"invalid-body"})}),s=n.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),c=ef(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!ev(u))return l();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!ev(u))return l();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(d("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=ea(n.formData),i=n.formData;else if(n.body instanceof FormData)o=ea(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=eo(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=eo(o)}catch(e){return l()}let f={formMethod:u,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(ev(f.formMethod))return{path:r,submission:f};let h=v(r);return t&&h.search&&ew(h.search)&&o.append("index",""),h.search="?"+o,{path:m(h),submission:f}}function Z(e,t,r,n,a,o,i,s,u,c,d,f,h,p,m,v){let y=v?Object.values(v)[0]:m?Object.values(m)[0]:void 0,g=e.createURL(t.location),w=e.createURL(a),E=(function(e,t){let r=e;if(t){let n=e.findIndex(e=>e.route.id===t);n>=0&&(r=e.slice(0,n))}return r})(r,v?Object.keys(v)[0]:void 0).filter((e,r)=>{let{route:a}=e;if(a.lazy)return!0;if(null==a.loader)return!1;if(o)return!!a.loader.hydrate||void 0===t.loaderData[a.id]&&(!t.errors||void 0===t.errors[a.id]);if(function(e,t,r){let n=!t||r.route.id!==t.route.id,a=void 0===e[r.route.id];return n||a}(t.loaderData,t.matches[r],e)||s.some(t=>t===e.route.id))return!0;let u=t.matches[r];return ee(e,l({currentUrl:g,currentParams:u.params,nextUrl:w,nextParams:e.params},n,{actionResult:y,defaultShouldRevalidate:i||g.pathname+g.search===w.pathname+w.search||g.search!==w.search||G(u,e)}))}),x=[];return d.forEach((e,a)=>{if(o||!r.some(t=>t.route.id===e.routeId)||c.has(a))return;let s=b(h,e.path,p);if(!s){x.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});return}let d=t.fetchers.get(a),m=eb(s,e.path),v=!1;(v=!f.has(a)&&(!!u.includes(a)||(d&&"idle"!==d.state&&void 0===d.data?i:ee(m,l({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:y,defaultShouldRevalidate:i})))))&&x.push({key:a,routeId:e.routeId,path:e.path,matches:s,match:m,controller:new AbortController})}),[E,x]}function G(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function ee(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}async function et(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];d(a,"No route found in manifest");let o={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;f(!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&&!g.has(e)&&(o[e]=n[e])}Object.assign(a,o),Object.assign(a,l({},t(a),{lazy:void 0}))}async function er(e,t,r,n,o,i,l,s,u){let c,f,h;void 0===u&&(u={});let p=e=>{let n;let a=new Promise((e,t)=>n=t);return h=()=>n(),t.signal.addEventListener("abort",h),Promise.race([e({request:t,params:r.params,context:u.requestContext}),a])};try{let n=r.route[e];if(r.route.lazy){if(n){let e;let t=await Promise.all([p(n).catch(t=>{e=t}),et(r.route,i,o)]);if(e)throw e;f=t[0]}else if(await et(r.route,i,o),n=r.route[e])f=await p(n);else{if("action"!==e)return{type:a.data,data:void 0};let n=new URL(t.url),o=n.pathname+n.search;throw ec(405,{method:t.method,pathname:o,routeId:r.route.id})}}else if(n)f=await p(n);else{let e=new URL(t.url),r=e.pathname+e.search;throw ec(404,{pathname:r})}d(void 0!==f,"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){c=a.error,f=e}finally{h&&t.signal.removeEventListener("abort",h)}if(function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}(f)){let e,o=f.status;if(N.has(o)){let e=f.headers.get("Location");if(d(e,"Redirects returned/thrown from loaders/actions must have a Location header"),q.test(e)){if(!u.isStaticRequest){let r=new URL(t.url),n=new URL(e.startsWith("//")?r.protocol+e:e),a=null!=D(n.pathname,l);n.origin===r.origin&&a&&(e=n.pathname+n.search+n.hash)}}else e=K(new URL(t.url),n.slice(0,n.indexOf(r)+1),l,!0,e,s);if(u.isStaticRequest)throw f.headers.set("Location",e),f;return{type:a.redirect,status:o,location:e,revalidate:null!==f.headers.get("X-Remix-Revalidate"),reloadDocument:null!==f.headers.get("X-Remix-Reload-Document")}}if(u.isRouteRequest)throw{type:c===a.error?a.error:a.data,response:f};try{let t=f.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==f.body?null:await f.json():await f.text()}catch(e){return{type:a.error,error:e}}return c===a.error?{type:c,error:new A(o,f.statusText,e),headers:f.headers}:{type:a.data,data:e,statusCode:f.status,headers:f.headers}}if(c===a.error)return{type:c,error:f};if(function(e){return e&&"object"==typeof e&&"object"==typeof e.data&&"function"==typeof e.subscribe&&"function"==typeof e.cancel&&"function"==typeof e.resolveData}(f)){var m,v;return{type:a.deferred,deferredData:f,statusCode:null==(m=f.init)?void 0:m.status,headers:(null==(v=f.init)?void 0:v.headers)&&new Headers(f.init.headers)}}return{type:a.data,data:f}}function en(e,t,r,n){let a=e.createURL(ef(t)).toString(),o={signal:r};if(n&&ev(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=ea(n.formData):o.body=n.formData}return new Request(a,o)}function ea(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function eo(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function ei(e,t,r,n,a,o,i,s){var u,c,f,h,p;let m,v,y,g,w;let{loaderData:b,errors:E}=(u=t,c=r,f=n,h=a,p=s,v={},y=null,g=!1,w={},f.forEach((e,t)=>{let r=c[t].route.id;if(d(!em(e),"Cannot handle redirect results in processLoaderData"),ep(e)){let t=es(u,r),n=e.error;h&&(n=Object.values(h)[0],h=void 0),null==(y=y||{})[t.route.id]&&(y[t.route.id]=n),v[r]=void 0,!g&&(g=!0,m=F(e.error)?e.error.status:500),e.headers&&(w[r]=e.headers)}else eh(e)?(p.set(r,e.deferredData),v[r]=e.deferredData.data):v[r]=e.data,null!=e.statusCode&&200!==e.statusCode&&!g&&(m=e.statusCode),e.headers&&(w[r]=e.headers)}),h&&(y=h,v[Object.keys(h)[0]]=void 0),{loaderData:v,errors:y,statusCode:m||200,loaderHeaders:w});for(let t=0;t<o.length;t++){let{key:r,match:n,controller:a}=o[t];d(void 0!==i&&void 0!==i[t],"Did not find corresponding fetcher result");let s=i[t];if(!a||!a.signal.aborted)if(ep(s)){let t=es(e.matches,null==n?void 0:n.route.id);!(E&&E[t.route.id])&&(E=l({},E,{[t.route.id]:s.error})),e.fetchers.delete(r)}else if(em(s))d(!1,"Unhandled fetcher revalidation redirect");else if(eh(s))d(!1,"Unhandled fetcher deferred data");else{let t=eR(s.data);e.fetchers.set(r,t)}}return{loaderData:b,errors:E}}function el(e,t,r,n){let a=l({},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 es(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 eu(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 ec(e,t){let{pathname:r,routeId:n,method:a,type:o}=void 0===t?{}:t,i="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(i="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?(i="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):404===e?(i="Not Found",l='No route matches URL "'+r+'"'):405===e&&(i="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 A(e||500,i,Error(l),!0)}function ed(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(em(r))return{result:r,idx:t}}}function ef(e){let t="string"==typeof e?v(e):e;return m(l({},t,{hash:""}))}function eh(e){return e.type===a.deferred}function ep(e){return e.type===a.error}function em(e){return(e&&e.type)===a.redirect}function ev(e){return W.has(e.toLowerCase())}async function ey(e,t,r,n,a,o){for(let i=0;i<r.length;i++){let l=r[i],s=t[i];if(!s)continue;let u=e.find(e=>e.route.id===s.route.id),c=null!=u&&!G(u,s)&&(o&&o[s.route.id])!==void 0;if(eh(l)&&(a||c)){let e=n[i];d(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await eg(l,e,a).then(e=>{e&&(r[i]=e||r[i])})}}}async function eg(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 ew(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function eb(e,t){let r="string"==typeof t?v(t).search:t.search;if(e[e.length-1].route.index&&ew(r||""))return e[e.length-1];let n=C(e);return n[n.length-1]}function eE(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(!!t&&!!r&&!!n){if(null!=a)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(void 0!==i)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function ex(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 eS(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 eR(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}},70934:function(e,t,r){r.d(t,{OL:function(){return F},aj:function(){return S},cP:function(){return R},pG:function(){return _},rU:function(){return A}});var n,a,o,i,l,s,u=r(5872),c=r(13922),d=r(58654),f=r(85852);function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function p(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&(a[r]=e[r]);return a}let m="application/x-www-form-urlencoded";function v(e){return null!=e&&"string"==typeof e.tagName}let y=null,g=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function w(e){return null==e||g.has(e)?e:null}let b=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],E=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],x=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function S(e,t){return(0,f.p7)({basename:null==t?void 0:t.basename,future:h({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,f.lX)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||D(),routes:e,mapRouteProperties:d.us,window:null==t?void 0:t.window}).initialize()}function R(e,t){return(0,f.p7)({basename:null==t?void 0:t.basename,future:h({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,f.q_)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||D(),routes:e,mapRouteProperties:d.us,window:null==t?void 0:t.window}).initialize()}function D(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=h({},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 f.OF(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}let L=u.createContext({isTransitioning:!1}),C=u.createContext(new Map),P=(o||(o=r.t(u,2))).startTransition,k=(i||(i=r.t(c,2))).flushSync;(o||(o=r.t(u,2))).useId;function U(e){k?k(e):e()}class T{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){let{fallbackElement:t,router:r,future:n}=e,[a,o]=u.useState(r.state),[i,l]=u.useState(),[s,c]=u.useState({isTransitioning:!1}),[f,h]=u.useState(),[p,m]=u.useState(),[v,y]=u.useState(),g=u.useRef(new Map),{v7_startTransition:w}=n||{},b=u.useCallback(e=>{if(w){var t;t=e,P?P(t):t()}else e()},[w]),E=u.useCallback((e,t)=>{let{deletedFetchers:n,unstable_flushSync:a,unstable_viewTransitionOpts:i}=t;n.forEach(e=>g.current.delete(e)),e.fetchers.forEach((e,t)=>{void 0!==e.data&&g.current.set(t,e.data)});let s=null==r.window||"function"!=typeof r.window.document.startViewTransition;if(!i||s){a?U(()=>o(e)):b(()=>o(e));return}if(a){U(()=>{p&&(f&&f.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=r.window.document.startViewTransition(()=>{U(()=>o(e))});t.finished.finally(()=>{U(()=>{h(void 0),m(void 0),l(void 0),c({isTransitioning:!1})})}),U(()=>m(t));return}p?(f&&f.resolve(),p.skipTransition(),y({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(l(e),c({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))},[r.window,p,f,g,b]);u.useLayoutEffect(()=>r.subscribe(E),[r,E]),u.useEffect(()=>{s.isTransitioning&&!s.flushSync&&h(new T)},[s]),u.useEffect(()=>{if(f&&i&&r.window){let e=f.promise,t=r.window.document.startViewTransition(async()=>{b(()=>o(i)),await e});t.finished.finally(()=>{h(void 0),m(void 0),l(void 0),c({isTransitioning:!1})}),m(t)}},[b,i,f,r.window]),u.useEffect(()=>{f&&i&&a.location.key===i.location.key&&f.resolve()},[f,p,a.location,i]),u.useEffect(()=>{!s.isTransitioning&&v&&(l(v.state),c({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),y(void 0))},[s.isTransitioning,v]),u.useEffect(()=>{},[]);let x=u.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]),S=r.basename||"/",R=u.useMemo(()=>({router:r,navigator:x,static:!1,basename:S}),[r,x,S]);return u.createElement(u.Fragment,null,u.createElement(d.w3.Provider,{value:R},u.createElement(d.FR.Provider,{value:a},u.createElement(C.Provider,{value:g.current},u.createElement(L.Provider,{value:s},u.createElement(d.F0,{basename:S,location:a.location,navigationType:a.historyAction,navigator:x,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},a.initialized||r.future.v7_partialHydration?u.createElement(M,{routes:r.routes,future:r.future,state:a}):t))))),null)}function M(e){let{routes:t,future:r,state:n}=e;return(0,d.DY)(t,void 0,n,r)}let j="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,O=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,A=u.forwardRef(function(e,t){let r,{onClick:n,relative:a,reloadDocument:o,replace:i,state:l,target:s,to:c,preventScrollReset:m,unstable_viewTransition:v}=e,y=p(e,b),{basename:g}=u.useContext(d.Us),w=!1;if("string"==typeof c&&O.test(c)&&(r=c,j))try{let e=new URL(window.location.href),t=new URL(c.startsWith("//")?e.protocol+c:c),r=(0,f.Zn)(t.pathname,g);t.origin===e.origin&&null!=r?c=r+t.search+t.hash:w=!0}catch(e){}let E=(0,d.oQ)(c,{relative:a}),x=function(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:l}=void 0===t?{}:t,s=(0,d.s0)(),c=(0,d.TH)(),h=(0,d.WU)(e,{relative:i});return u.useCallback(t=>{var u,d,p;if(u=t,d=r,0===u.button&&(!d||"_self"===d)&&!((p=u).metaKey||p.altKey||p.ctrlKey||p.shiftKey))t.preventDefault(),s(e,{replace:void 0!==n?n:(0,f.Ep)(c)===(0,f.Ep)(h),state:a,preventScrollReset:o,relative:i,unstable_viewTransition:l})},[c,s,h,n,a,r,e,o,i,l])}(c,{replace:i,state:l,target:s,preventScrollReset:m,relative:a,unstable_viewTransition:v});return u.createElement("a",h({},y,{href:r||E,onClick:w||o?n:function(e){n&&n(e),!e.defaultPrevented&&x(e)},ref:t,target:s}))}),F=u.forwardRef(function(e,t){let r,{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:i=!1,style:s,to:c,unstable_viewTransition:m,children:v}=e,y=p(e,E),g=(0,d.WU)(c,{relative:y.relative}),w=(0,d.TH)(),b=u.useContext(d.FR),{navigator:x,basename:S}=u.useContext(d.Us),R=null!=b&&function(e,t){void 0===t&&(t={});let r=u.useContext(L);null!=r||(0,f.J0)(!1);let{basename:n}=B(l.useViewTransitionState),a=(0,d.WU)(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=(0,f.Zn)(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=(0,f.Zn)(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=(0,f.LX)(a.pathname,i)||null!=(0,f.LX)(a.pathname,o)}(g)&&!0===m,D=x.encodeLocation?x.encodeLocation(g).pathname:g.pathname,C=w.pathname,P=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;!a&&(C=C.toLowerCase(),P=P?P.toLowerCase():null,D=D.toLowerCase()),P&&S&&(P=(0,f.Zn)(P,S)||P);let k="/"!==D&&D.endsWith("/")?D.length-1:D.length,U=C===D||!i&&C.startsWith(D)&&"/"===C.charAt(k),T=null!=P&&(P===D||!i&&P.startsWith(D)&&"/"===P.charAt(D.length)),_={isActive:U,isPending:T,isTransitioning:R},M=U?n:void 0;r="function"==typeof o?o(_):[o,U?"active":null,T?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let j="function"==typeof s?s(_):s;return u.createElement(A,h({},y,{"aria-current":M,className:r,ref:t,style:j,to:c,unstable_viewTransition:m}),"function"==typeof v?v(_):v)});function B(e){let t=u.useContext(d.w3);return t||(0,f.J0)(!1),t}(n=l||(l={})).UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState",(a=s||(s={})).UseFetcher="useFetcher",a.UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration";let W=0,z=()=>"__"+String(++W)+"__"},58654:function(e,t,r){r.d(t,{AW:function(){return H},DY:function(){return D},F0:function(){return I},FR:function(){return d},HJ:function(){return O},SN:function(){return F},TH:function(){return g},UO:function(){return S},Us:function(){return f},WU:function(){return R},Yi:function(){return j},Z5:function(){return J},bS:function(){return w},f_:function(){return B},i7:function(){return q},j3:function(){return N},lk:function(){return W},oQ:function(){return v},pW:function(){return p},s0:function(){return E},us:function(){return V},w3:function(){return c},xW:function(){return A}});var n,a,o,i,l=r(5872),s=r(85852);function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let c=l.createContext(null),d=l.createContext(null),f=l.createContext(null),h=l.createContext(null),p=l.createContext({outlet:null,matches:[],isDataRoute:!1}),m=l.createContext(null);function v(e,t){let{relative:r}=void 0===t?{}:t;y()||(0,s.J0)(!1);let{basename:n,navigator:a}=l.useContext(f),{hash:o,pathname:i,search:u}=R(e,{relative:r}),c=i;return"/"!==n&&(c="/"===i?n:(0,s.RQ)([n,i])),a.createHref({pathname:c,search:u,hash:o})}function y(){return null!=l.useContext(h)}function g(){return y()||(0,s.J0)(!1),l.useContext(h).location}function w(e){y()||(0,s.J0)(!1);let{pathname:t}=g();return l.useMemo(()=>(0,s.LX)(e,t),[t,e])}function b(e){!l.useContext(f).static&&l.useLayoutEffect(e)}function E(){let{isDataRoute:e}=l.useContext(p);return e?function(){let{router:e}=T(k.UseNavigateStable),t=M(U.UseNavigateStable),r=l.useRef(!1);return b(()=>{r.current=!0}),l.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,u({fromRouteId:t},a)))},[e,t])}():function(){y()||(0,s.J0)(!1);let e=l.useContext(c),{basename:t,future:r,navigator:n}=l.useContext(f),{matches:a}=l.useContext(p),{pathname:o}=g(),i=JSON.stringify((0,s.cm)(a,r.v7_relativeSplatPath)),u=l.useRef(!1);return b(()=>{u.current=!0}),l.useCallback(function(r,a){if(void 0===a&&(a={}),!u.current)return;if("number"==typeof r){n.go(r);return}let l=(0,s.pC)(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:(0,s.RQ)([t,l.pathname])),(a.replace?n.replace:n.push)(l,a.state,a)},[t,n,i,o,e])}()}let x=l.createContext(null);function S(){let{matches:e}=l.useContext(p),t=e[e.length-1];return t?t.params:{}}function R(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=l.useContext(f),{matches:a}=l.useContext(p),{pathname:o}=g(),i=JSON.stringify((0,s.cm)(a,n.v7_relativeSplatPath));return l.useMemo(()=>(0,s.pC)(e,JSON.parse(i),o,"path"===r),[e,i,o,r])}function D(e,t,r,n){let a;y()||(0,s.J0)(!1);let{navigator:o}=l.useContext(f),{matches:i}=l.useContext(p),c=i[i.length-1],d=c?c.params:{};c&&c.pathname;let m=c?c.pathnameBase:"/";c&&c.route;let v=g();if(t){var w;let e="string"==typeof t?(0,s.cP)(t):t;"/"===m||(null==(w=e.pathname)?void 0:w.startsWith(m))||(0,s.J0)(!1),a=e}else a=v;let b=a.pathname||"/",E="/"===m?b:b.slice(m.length)||"/",x=(0,s.fp)(e,{pathname:E}),S=function(e,t,r,n){var a,o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){if(null==(o=r)||!o.errors)return null;e=r.matches}let i=e,u=null==(a=r)?void 0:a.errors;if(null!=u){let e=i.findIndex(e=>e.route.id&&(null==u?void 0:u[e.route.id]));e>=0||(0,s.J0)(!1),i=i.slice(0,Math.min(i.length,e+1))}let c=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){c=!0,i=d>=0?i.slice(0,d+1):[i[0]];break}}}return i.reduceRight((e,n,a)=>{let o;let s=!1,f=null,h=null;r&&(o=u&&n.route.id?u[n.route.id]:void 0,f=n.route.errorElement||L,c&&(d<0&&0===a?(function(e,t,r){!t&&!z[e]&&(z[e]=!0)}("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),s=!0,h=null):d===a&&(s=!0,h=n.route.hydrateFallbackElement||null)));let p=t.concat(i.slice(0,a+1)),m=()=>{let t;return t=o?f:s?h:n.route.Component?l.createElement(n.route.Component,null):n.route.element?n.route.element:e,l.createElement(P,{match:n,routeContext:{outlet:e,matches:p,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?l.createElement(C,{location:r.location,revalidation:r.revalidation,component:f,error:o,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()},null)}(x&&x.map(e=>Object.assign({},e,{params:Object.assign({},d,e.params),pathname:(0,s.RQ)([m,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?m:(0,s.RQ)([m,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),i,r,n);return t&&S?l.createElement(h.Provider,{value:{location:u({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:s.aU.Pop}},S):S}let L=l.createElement(function(){let e=W(),t=(0,s.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),r?l.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},r):null,null)},null);class C extends l.Component{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?l.createElement(p.Provider,{value:this.props.routeContext},l.createElement(m.Provider,{value:this.state.error,children:this.props.component})):this.props.children}constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}}function P(e){let{routeContext:t,match:r,children:n}=e,a=l.useContext(c);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),l.createElement(p.Provider,{value:t},n)}var k=((n=k||{}).UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n);var U=((a=U||{}).UseBlocker="useBlocker",a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a.UseRouteId="useRouteId",a);function T(e){let t=l.useContext(c);return t||(0,s.J0)(!1),t}function _(e){let t=l.useContext(d);return t||(0,s.J0)(!1),t}function M(e){var t;let r;let n=(t=0,(r=l.useContext(p))||(0,s.J0)(!1),r),a=n.matches[n.matches.length-1];return a.route.id||(0,s.J0)(!1),a.route.id}function j(){return M(U.UseRouteId)}function O(){return _(U.UseNavigation).navigation}function A(){let e=T(k.UseRevalidator),t=_(U.UseRevalidator);return l.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function F(){let{matches:e,loaderData:t}=_(U.UseMatches);return l.useMemo(()=>e.map(e=>(0,s.WS)(e,t)),[e,t])}function B(){let e=_(U.UseLoaderData),t=M(U.UseLoaderData);if(e.errors&&null!=e.errors[t]){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function W(){var e;let t=l.useContext(m),r=_(U.UseRouteError),n=M(U.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}let z={};function N(e){var t;let r;return t=e.context,(r=l.useContext(p).outlet)?l.createElement(x.Provider,{value:t},r):r}function H(e){(0,s.J0)(!1)}function I(e){let{basename:t="/",children:r=null,location:n,navigationType:a=s.aU.Pop,navigator:o,static:i=!1,future:c}=e;y()&&(0,s.J0)(!1);let d=t.replace(/^\/*/,"/"),p=l.useMemo(()=>({basename:d,navigator:o,static:i,future:u({v7_relativeSplatPath:!1},c)}),[d,c,o,i]);"string"==typeof n&&(n=(0,s.cP)(n));let{pathname:m="/",search:v="",hash:g="",state:w=null,key:b="default"}=n,E=l.useMemo(()=>{let e=(0,s.Zn)(m,d);return null==e?null:{location:{pathname:e,search:v,hash:g,state:w,key:b},navigationType:a}},[d,m,v,g,w,b,a]);return null==E?null:l.createElement(f.Provider,{value:p},l.createElement(h.Provider,{children:r,value:E}))}function J(e){var t;let{children:r,location:n}=e;return t=q(r),D(t,n)}(i||(i=r.t(l,2))).startTransition;var $=((o=$||{})[o.pending=0]="pending",o[o.success=1]="success",o[o.error=2]="error",o);function q(e,t){void 0===t&&(t=[]);let r=[];return l.Children.forEach(e,(e,n)=>{if(!l.isValidElement(e))return;let a=[...t,n];if(e.type===l.Fragment){r.push.apply(r,q(e.props.children,a));return}e.type!==H&&(0,s.J0)(!1),!e.props.index||!e.props.children||(0,s.J0)(!1);let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=q(e.props.children,a)),r.push(o)}),r}function V(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:l.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:l.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:l.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}new Promise(()=>{})}}]);
|
|
1
|
+
/*! For license information please see lib-router.425f945d.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["118"],{85852:function(e,t,r){var n,a,o,i;function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,{Ep:function(){return m},J0:function(){return d},LX:function(){return R},OF:function(){return A},RQ:function(){return U},WK:function(){return F},WS:function(){return E},X3:function(){return j},Zn:function(){return D},aU:function(){return n},cP:function(){return v},cm:function(){return P},fp:function(){return b},lX:function(){return u},p7:function(){return Y},pC:function(){return k},q_:function(){return c},uX:function(){return O}}),(o=n||(n={})).Pop="POP",o.Push="PUSH",o.Replace="REPLACE";let s="popstate";function u(e){return void 0===e&&(e={}),y(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return p("",{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:m(t)},null,e)}function c(e){return void 0===e&&(e={}),y(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=v(e.location.hash.substr(1));return!r.startsWith("/")&&!r.startsWith(".")&&(r="/"+r),p("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:m(t))},function(e,t){f("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function d(e,t){if(!1===e||null==e)throw Error(t)}function f(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function h(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,r,n){return void 0===r&&(r=null),l({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?v(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function m(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 v(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 y(e,t,r,a){void 0===a&&(a={});let{window:o=document.defaultView,v5Compat:i=!1}=a,u=o.history,c=n.Pop,f=null,v=y();function y(){return(u.state||{idx:null}).idx}function g(){c=n.Pop;let e=y(),t=null==e?null:e-v;v=e,f&&f({action:c,location:b.location,delta:t})}null==v&&(v=0,u.replaceState(l({},u.state,{idx:v}),""));function w(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,r="string"==typeof e?e:m(e);return d(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}let b={get action(){return c},get location(){return e(o,u)},listen(e){if(f)throw Error("A history only accepts one active listener");return o.addEventListener(s,g),f=e,()=>{o.removeEventListener(s,g),f=null}},createHref:e=>t(o,e),createURL:w,encodeLocation(e){let t=w(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=n.Push;let a=p(b.location,e,t);r&&r(a,e);let l=h(a,v=y()+1),s=b.createHref(a);try{u.pushState(l,"",s)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(s)}i&&f&&f({action:c,location:b.location,delta:1})},replace:function(e,t){c=n.Replace;let a=p(b.location,e,t);r&&r(a,e);let o=h(a,v=y()),l=b.createHref(a);u.replaceState(o,"",l),i&&f&&f({action:c,location:b.location,delta:0})},go:e=>u.go(e)};return b}(i=a||(a={})).data="data",i.deferred="deferred",i.redirect="redirect",i.error="error";let g=new Set(["lazy","caseSensitive","path","id","index","children"]);function w(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{let o=[...r,a],i="string"==typeof e.id?e.id:o.join("-");if(d(!0!==e.index||!e.children,"Cannot specify children on an index route"),d(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let r=l({},e,t(e),{id:i});return n[i]=r,r}{let r=l({},e,t(e),{id:i,children:void 0});return n[i]=r,e.children&&(r.children=w(e.children,t,o,n)),r}})}function b(e,t,r){void 0===r&&(r="/");let n=D(("string"==typeof t?v(t):t).pathname||"/",r);if(null==n)return null;let a=function e(t,r,n,a){void 0===r&&(r=[]),void 0===n&&(n=[]),void 0===a&&(a="");let o=(t,o,i)=>{let l={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};l.relativePath.startsWith("/")&&(d(l.relativePath.startsWith(a),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+a)+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),l.relativePath=l.relativePath.slice(a.length));let s=U([a,l.relativePath]),u=n.concat(l);if(t.children&&t.children.length>0&&(d(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),e(t.children,r,u,s)),null!=t.path||!!t.index)r.push({path:s,score:function(e,t){let r=e.split("/"),n=r.length;return r.some(S)&&(n+=-2),t&&(n+=2),r.filter(e=>!S(e)).reduce((e,t)=>e+(x.test(t)?3:""===t?1:10),n)}(s,t.index),routesMeta:u})};return t.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of function e(t){let r=t.split("/");if(0===r.length)return[];let[n,...a]=r,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let l=e(a.join("/")),s=[];return s.push(...l.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...l),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,r);else o(e,t)}),r}(e);(function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,r)=>e===t[r])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))})(a);let o=null;for(let e=0;null==o&&e<a.length;++e)o=function(e,t){let{routesMeta:r}=e,n={},a="/",o=[];for(let e=0;e<r.length;++e){let i=r[e],l=e===r.length-1,s="/"===a?t:t.slice(a.length)||"/",u=R({path:i.relativePath,caseSensitive:i.caseSensitive,end:l},s);if(!u)return null;Object.assign(n,u.params);let c=i.route;o.push({params:n,pathname:U([a,u.pathname]),pathnameBase:T(U([a,u.pathnameBase])),route:c}),"/"!==u.pathnameBase&&(a=U([a,u.pathnameBase]))}return o}(a[e],function(e){try{return decodeURI(e)}catch(t){return f(!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}}(n));return o}function E(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}}let x=/^:[\w-]+$/,S=e=>"*"===e;function R(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),f("*"===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,(e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:n.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=l[r]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}let s=l[r];return a&&!s?e[n]=void 0:e[n]=function(e,t){try{return decodeURIComponent(e)}catch(r){return f(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e)+'" is a malformed URL segment. This is probably'+(" due to a bad percent encoding ("+r)+")."),e}}(s||"",n),e},{}),pathname:o,pathnameBase:i,pattern:e}}function D(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 L(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 C(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function P(e,t){let r=C(e);return t?r.map((t,r)=>r===e.length-1?t.pathname:t.pathnameBase):r.map(e=>e.pathnameBase)}function k(e,t,r,n){let a,o;void 0===n&&(n=!1),"string"==typeof e?a=v(e):(d(!(a=l({},e)).pathname||!a.pathname.includes("?"),L("?","pathname","search",a)),d(!a.pathname||!a.pathname.includes("#"),L("#","pathname","hash",a)),d(!a.search||!a.search.includes("#"),L("#","search","hash",a)));let i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:a=""}="string"==typeof e?v(e):e;return{pathname:r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}(r,t):t,search:_(n),hash:M(a)}}(a,o),c=s&&"/"!==s&&s.endsWith("/"),f=(i||"."===s)&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||f)&&(u.pathname+="/"),u}let U=e=>e.join("/").replace(/\/\/+/g,"/"),T=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",M=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class j extends Error{}let O=function(e,t){void 0===t&&(t=302);let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,l({},r,{headers:n}))};class A{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 F(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let B=["post","put","patch","delete"],W=new Set(B),z=new Set(["get",...B]),N=new Set([301,302,303,307,308]),H=new Set([307,308]),I={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},J={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},$={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},q=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,V=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),X="remix-router-transitions";function Y(e){let t,r,o,i,s;let u=e.window?e.window:"undefined"!=typeof window?window:void 0,c=void 0!==u&&void 0!==u.document&&void 0!==u.document.createElement,h=!c;if(d(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=V;let m={},v=w(e.routes,t,void 0,m),y=e.basename||"/",g=l({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),x=null,S=new Set,R=null,L=null,C=null,P=null!=e.hydrationData,k=b(v,e.history.location,y),U=null;if(null==k){let t=ec(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=eu(v);k=r,U={[n.id]:t}}let T=k.some(e=>e.route.lazy),_=k.some(e=>e.route.loader);if(T)o=!1;else if(_){if(g.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;o=k.every(e=>e.route.loader&&!0!==e.route.loader.hydrate&&(t&&void 0!==t[e.route.id]||r&&void 0!==r[e.route.id]))}else o=null!=e.hydrationData}else o=!0;let M={historyAction:e.history.action,location:e.history.location,matches:k,initialized:o,navigation:I,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||U,fetchers:new Map,blockers:new Map},j=n.Pop,O=!1,A=!1,F=new Map,B=null,W=!1,z=!1,N=[],Y=[],G=new Map,ee=0,et=-1,ea=new Map,eo=new Set,ef=new Map,ew=new Map,eD=new Set,eL=new Map,eC=new Map,eP=!1;function ek(e,t){void 0===t&&(t={}),M=l({},M,e);let r=[],n=[];g.v7_fetcherPersist&&M.fetchers.forEach((e,t)=>{"idle"===e.state&&(eD.has(t)?n.push(t):r.push(t))}),[...S].forEach(e=>e(M,{deletedFetchers:n,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync})),g.v7_fetcherPersist&&(r.forEach(e=>M.fetchers.delete(e)),n.forEach(e=>eI(e)))}function eU(t,a,o){var i,s;let u,c;let{flushSync:d}=void 0===o?{}:o,f=null!=M.actionData&&null!=M.navigation.formMethod&&ev(M.navigation.formMethod)&&"loading"===M.navigation.state&&(null==(i=t.state)?void 0:i._isRedirect)!==!0;u=a.actionData?Object.keys(a.actionData).length>0?a.actionData:null:f?M.actionData:null;let h=a.loaderData?el(M.loaderData,a.loaderData,a.matches||[],a.errors):M.loaderData,p=M.blockers;p.size>0&&(p=new Map(p)).forEach((e,t)=>p.set(t,$));let m=!0===O||null!=M.navigation.formMethod&&ev(M.navigation.formMethod)&&(null==(s=t.state)?void 0:s._isRedirect)!==!0;if(r&&(v=r,r=void 0),W||j===n.Pop||(j===n.Push?e.history.push(t,t.state):j===n.Replace&&e.history.replace(t,t.state)),j===n.Pop){let e=F.get(M.location.pathname);e&&e.has(t.pathname)?c={currentLocation:M.location,nextLocation:t}:F.has(t.pathname)&&(c={currentLocation:t,nextLocation:M.location})}else if(A){let e=F.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),F.set(M.location.pathname,e)),c={currentLocation:M.location,nextLocation:t}}ek(l({},a,{actionData:u,loaderData:h,historyAction:j,location:t,initialized:!0,navigation:I,revalidation:"idle",restoreScrollPosition:eG(t,a.matches||M.matches),preventScrollReset:m,blockers:p}),{viewTransitionOpts:c,flushSync:!0===d}),j=n.Pop,O=!1,A=!1,W=!1,z=!1,N=[],Y=[]}async function eT(t,r){if("number"==typeof t){e.history.go(t);return}let a=Q(M.location,M.matches,y,g.v7_prependBasename,t,g.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:o,submission:i,error:s}=Z(g.v7_normalizeFormMethod,!1,a,r),u=M.location,c=p(M.location,o,r&&r.state);c=l({},c,e.history.encodeLocation(c));let d=r&&null!=r.replace?r.replace:void 0,f=n.Push;!0===d?f=n.Replace:!1===d||null!=i&&ev(i.formMethod)&&i.formAction===M.location.pathname+M.location.search&&(f=n.Replace);let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,m=!0===(r&&r.unstable_flushSync),v=eQ({currentLocation:u,nextLocation:c,historyAction:f});if(v){eY(v,{state:"blocked",location:c,proceed(){eY(v,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),eT(t,r)},reset(){let e=new Map(M.blockers);e.set(v,$),ek({blockers:e})}});return}return await e_(f,c,{submission:i,pendingError:s,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.unstable_viewTransition,flushSync:m})}async function e_(t,n,a){let o,i;s&&s.abort(),s=null,j=t,W=!0===(a&&a.startUninterruptedRevalidation),function(e,t){R&&C&&(R[eK(e,t)]=C())}(M.location,M.matches),O=!0===(a&&a.preventScrollReset),A=!0===(a&&a.enableViewTransition);let u=r||v,c=a&&a.overrideNavigation,d=b(u,n,y),f=!0===(a&&a.flushSync);if(!d){let e=ec(404,{pathname:n.pathname}),{matches:t,route:r}=eu(u);eZ(),eU(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:f});return}if(M.initialized&&!z&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(M.location,n)&&!(a&&a.submission&&ev(a.submission.formMethod))){eU(n,{matches:d},{flushSync:f});return}s=new AbortController;let h=en(e.history,n,s.signal,a&&a.submission);if(a&&a.pendingError)i={[es(d).route.id]:a.pendingError};else if(a&&a.submission&&ev(a.submission.formMethod)){let e=await eM(h,n,a.submission,d,{replace:a.replace,flushSync:f});if(e.shortCircuited)return;o=e.pendingActionData,i=e.pendingActionError,c=ex(n,a.submission),f=!1,h=new Request(h.url,{signal:h.signal})}let{shortCircuited:p,loaderData:m,errors:g}=await ej(h,n,d,c,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,f,o,i);if(!p)s=null,eU(n,l({matches:d},o?{actionData:o}:{},{loaderData:m,errors:g}))}async function eM(e,r,o,i,l){let s;void 0===l&&(l={}),eW(),ek({navigation:function(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}}(r,o)},{flushSync:!0===l.flushSync});let u=eb(i,r);if(u.route.action||u.route.lazy){if(s=await er("action",e,u,i,m,t,y,g.v7_relativeSplatPath),e.signal.aborted)return{shortCircuited:!0}}else s={type:a.error,error:ec(405,{method:e.method,pathname:r.pathname,routeId:u.route.id})};if(em(s)){let e;return e=l&&null!=l.replace?l.replace:s.location===M.location.pathname+M.location.search,await eF(M,s,{submission:o,replace:e}),{shortCircuited:!0}}if(ep(s)){let e=es(i,u.route.id);return!0!==(l&&l.replace)&&(j=n.Push),{pendingActionData:{},pendingActionError:{[e.route.id]:s.error}}}if(eh(s))throw ec(400,{type:"defer-action"});return{pendingActionData:{[u.route.id]:s.data}}}async function ej(t,n,a,o,i,u,c,d,f,h,p){let m=o||ex(n,i),w=i||u||eE(m),b=r||v,[E,x]=K(e.history,M,a,w,n,g.v7_partialHydration&&!0===d,z,N,Y,eD,ef,eo,b,y,h,p);if(eZ(e=>!(a&&a.some(t=>t.route.id===e))||E&&E.some(t=>t.route.id===e)),et=++ee,0===E.length&&0===x.length){let e=eq();return eU(n,l({matches:a,loaderData:{},errors:p||null},h?{actionData:h}:{},e?{fetchers:new Map(M.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(!W&&(!g.v7_partialHydration||!d)){x.forEach(e=>{let t=M.fetchers.get(e.key),r=eS(void 0,t?t.data:void 0);M.fetchers.set(e.key,r)});let e=h||M.actionData;ek(l({navigation:m},e?0===Object.keys(e).length?{actionData:null}:{actionData:e}:{},x.length>0?{fetchers:new Map(M.fetchers)}:{}),{flushSync:f})}x.forEach(e=>{G.has(e.key)&&eJ(e.key),e.controller&&G.set(e.key,e.controller)});let S=()=>x.forEach(e=>eJ(e.key));s&&s.signal.addEventListener("abort",S);let{results:R,loaderResults:D,fetcherResults:L}=await eB(M.matches,a,E,x,t);if(t.signal.aborted)return{shortCircuited:!0};s&&s.signal.removeEventListener("abort",S),x.forEach(e=>G.delete(e.key));let C=ed(R);if(C){if(C.idx>=E.length){let e=x[C.idx-E.length].key;eo.add(e)}return await eF(M,C.result,{replace:c}),{shortCircuited:!0}}let{loaderData:P,errors:k}=ei(M,a,E,D,p,x,L,eL);eL.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&eL.delete(t)})});let U=eq(),T=eV(et),_=U||T||x.length>0;return l({loaderData:P,errors:k},_?{fetchers:new Map(M.fetchers)}:{})}async function eO(n,a,o,i,l,u,c){if(eW(),ef.delete(n),!i.route.action&&!i.route.lazy){let e=ec(405,{method:c.formMethod,pathname:o,routeId:a});eN(n,a,e,{flushSync:u});return}let f=M.fetchers.get(n);ez(n,function(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}}(c,f),{flushSync:u});let h=new AbortController,p=en(e.history,o,h.signal,c);G.set(n,h);let w=ee,E=await er("action",p,i,l,m,t,y,g.v7_relativeSplatPath);if(p.signal.aborted){G.get(n)===h&&G.delete(n);return}if(g.v7_fetcherPersist&&eD.has(n)){if(em(E)||ep(E)){ez(n,eR(void 0));return}}else{if(em(E)){if(G.delete(n),!(et>w))return eo.add(n),ez(n,eS(c)),eF(M,E,{fetcherSubmission:c});ez(n,eR(void 0));return}if(ep(E)){eN(n,a,E.error);return}}if(eh(E))throw ec(400,{type:"defer-action"});let x=M.navigation.location||M.location,S=en(e.history,x,h.signal),R=r||v,D="idle"!==M.navigation.state?b(R,M.navigation.location,y):M.matches;d(D,"Didn't find any matches after fetcher action");let L=++ee;ea.set(n,L);let C=eS(c,E.data);M.fetchers.set(n,C);let[P,k]=K(e.history,M,D,c,x,!1,z,N,Y,eD,ef,eo,R,y,{[i.route.id]:E.data},void 0);k.filter(e=>e.key!==n).forEach(e=>{let t=e.key,r=M.fetchers.get(t),n=eS(void 0,r?r.data:void 0);M.fetchers.set(t,n),G.has(t)&&eJ(t),e.controller&&G.set(t,e.controller)}),ek({fetchers:new Map(M.fetchers)});let U=()=>k.forEach(e=>eJ(e.key));h.signal.addEventListener("abort",U);let{results:T,loaderResults:_,fetcherResults:O}=await eB(M.matches,D,P,k,S);if(h.signal.aborted)return;h.signal.removeEventListener("abort",U),ea.delete(n),G.delete(n),k.forEach(e=>G.delete(e.key));let A=ed(T);if(A){if(A.idx>=P.length){let e=k[A.idx-P.length].key;eo.add(e)}return eF(M,A.result)}let{loaderData:F,errors:B}=ei(M,M.matches,P,_,void 0,k,O,eL);if(M.fetchers.has(n)){let e=eR(E.data);M.fetchers.set(n,e)}eV(L),"loading"===M.navigation.state&&L>et?(d(j,"Expected pending action"),s&&s.abort(),eU(M.navigation.location,{matches:D,loaderData:F,errors:B,fetchers:new Map(M.fetchers)})):(ek({errors:B,loaderData:el(M.loaderData,F,D,B),fetchers:new Map(M.fetchers)}),z=!1)}async function eA(r,n,a,o,i,l,s){let u=M.fetchers.get(r);ez(r,eS(s,u?u.data:void 0),{flushSync:l});let c=new AbortController,f=en(e.history,a,c.signal);G.set(r,c);let h=ee,p=await er("loader",f,o,i,m,t,y,g.v7_relativeSplatPath);if(eh(p)&&(p=await eg(p,f.signal,!0)||p),G.get(r)===c&&G.delete(r),!f.signal.aborted){if(eD.has(r)){ez(r,eR(void 0));return}if(em(p)){if(et>h){ez(r,eR(void 0));return}eo.add(r),await eF(M,p);return}if(ep(p)){eN(r,n,p.error);return}d(!eh(p),"Unhandled fetcher deferred data"),ez(r,eR(p.data))}}async function eF(t,r,a){let{submission:o,fetcherSubmission:i,replace:f}=void 0===a?{}:a;r.revalidate&&(z=!0);let h=p(t.location,r.location,{_isRedirect:!0});if(d(h,"Expected a location on the redirect navigation"),c){let t=!1;if(r.reloadDocument)t=!0;else if(q.test(r.location)){let n=e.history.createURL(r.location);t=n.origin!==u.location.origin||null==D(n.pathname,y)}if(t){f?u.location.replace(r.location):u.location.assign(r.location);return}}s=null;let m=!0===f?n.Replace:n.Push,{formMethod:v,formAction:g,formEncType:w}=t.navigation;!o&&!i&&v&&g&&w&&(o=eE(t.navigation));let b=o||i;if(H.has(r.status)&&b&&ev(b.formMethod))await e_(m,h,{submission:l({},b,{formAction:r.location}),preventScrollReset:O});else{let e=ex(h,o);await e_(m,h,{overrideNavigation:e,fetcherSubmission:i,preventScrollReset:O})}}async function eB(r,n,o,i,l){let s=await Promise.all([...o.map(e=>er("loader",l,e,n,m,t,y,g.v7_relativeSplatPath)),...i.map(r=>r.matches&&r.match&&r.controller?er("loader",en(e.history,r.path,r.controller.signal),r.match,r.matches,m,t,y,g.v7_relativeSplatPath):{type:a.error,error:ec(404,{pathname:r.path})})]),u=s.slice(0,o.length),c=s.slice(o.length);return await Promise.all([ey(r,o,u,u.map(()=>l.signal),!1,M.loaderData),ey(r,i.map(e=>e.match),c,i.map(e=>e.controller?e.controller.signal:null),!0)]),{results:s,loaderResults:u,fetcherResults:c}}function eW(){z=!0,N.push(...eZ()),ef.forEach((e,t)=>{G.has(t)&&(Y.push(t),eJ(t))})}function ez(e,t,r){void 0===r&&(r={}),M.fetchers.set(e,t),ek({fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function eN(e,t,r,n){void 0===n&&(n={});let a=es(M.matches,t);eI(e),ek({errors:{[a.route.id]:r},fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function eH(e){return g.v7_fetcherPersist&&(ew.set(e,(ew.get(e)||0)+1),eD.has(e)&&eD.delete(e)),M.fetchers.get(e)||J}function eI(e){let t=M.fetchers.get(e);G.has(e)&&!(t&&"loading"===t.state&&ea.has(e))&&eJ(e),ef.delete(e),ea.delete(e),eo.delete(e),eD.delete(e),M.fetchers.delete(e)}function eJ(e){let t=G.get(e);d(t,"Expected fetch controller: "+e),t.abort(),G.delete(e)}function e$(e){for(let t of e){let e=eR(eH(t).data);M.fetchers.set(t,e)}}function eq(){let e=[],t=!1;for(let r of eo){let n=M.fetchers.get(r);d(n,"Expected fetcher: "+r),"loading"===n.state&&(eo.delete(r),e.push(r),t=!0)}return e$(e),t}function eV(e){let t=[];for(let[r,n]of ea)if(n<e){let e=M.fetchers.get(r);d(e,"Expected fetcher: "+r),"loading"===e.state&&(eJ(r),ea.delete(r),t.push(r))}return e$(t),t.length>0}function eX(e){M.blockers.delete(e),eC.delete(e)}function eY(e,t){let r=M.blockers.get(e)||$;d("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),ek({blockers:n})}function eQ(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===eC.size)return;eC.size>1&&f(!1,"A router only supports one blocker at a time");let a=Array.from(eC.entries()),[o,i]=a[a.length-1],l=M.blockers.get(o);if(!l||"proceeding"!==l.state){if(i({currentLocation:t,nextLocation:r,historyAction:n}))return o}}function eZ(e){let t=[];return eL.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),eL.delete(n))}),t}function eK(e,t){return L&&L(e,t.map(e=>E(e,M.loaderData)))||e.key}function eG(e,t){if(R){let r=R[eK(e,t)];if("number"==typeof r)return r}return null}return i={get basename(){return y},get future(){return g},get state(){return M},get routes(){return v},get window(){return u},initialize:function(){if(x=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(eP){eP=!1;return}f(0===eC.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=eQ({currentLocation:M.location,nextLocation:n,historyAction:r});if(o&&null!=a){eP=!0,e.history.go(-1*a),eY(o,{state:"blocked",location:n,proceed(){eY(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),e.history.go(a)},reset(){let e=new Map(M.blockers);e.set(o,$),ek({blockers:e})}});return}return e_(r,n)}),c){(function(e,t){try{let r=e.sessionStorage.getItem(X);if(r){let e=JSON.parse(r);for(let[r,n]of Object.entries(e||{}))n&&Array.isArray(n)&&t.set(r,new Set(n||[]))}}catch(e){}})(u,F);let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(X,JSON.stringify(r))}catch(e){f(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(u,F);u.addEventListener("pagehide",e),B=()=>u.removeEventListener("pagehide",e)}return!M.initialized&&e_(n.Pop,M.location,{initialHydration:!0}),i},subscribe:function(e){return S.add(e),()=>S.delete(e)},enableScrollRestoration:function(e,t,r){if(R=e,C=t,L=r||null,!P&&M.navigation===I){P=!0;let e=eG(M.location,M.matches);null!=e&&ek({restoreScrollPosition:e})}return()=>{R=null,C=null,L=null}},navigate:eT,fetch:function(e,t,n,a){if(h)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.");G.has(e)&&eJ(e);let o=!0===(a&&a.unstable_flushSync),i=r||v,l=Q(M.location,M.matches,y,g.v7_prependBasename,n,g.v7_relativeSplatPath,t,null==a?void 0:a.relative),s=b(i,l,y);if(!s){eN(e,t,ec(404,{pathname:l}),{flushSync:o});return}let{path:u,submission:c,error:d}=Z(g.v7_normalizeFormMethod,!0,l,a);if(d){eN(e,t,d,{flushSync:o});return}let f=eb(s,u);if(O=!0===(a&&a.preventScrollReset),c&&ev(c.formMethod)){eO(e,t,u,f,s,o,c);return}ef.set(e,{routeId:t,path:u}),eA(e,t,u,f,s,o,c)},revalidate:function(){if(eW(),ek({revalidation:"loading"}),"submitting"!==M.navigation.state){if("idle"===M.navigation.state){e_(M.historyAction,M.location,{startUninterruptedRevalidation:!0});return}e_(j||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:eH,deleteFetcher:function(e){if(g.v7_fetcherPersist){let t=(ew.get(e)||0)-1;t<=0?(ew.delete(e),eD.add(e)):ew.set(e,t)}else eI(e);ek({fetchers:new Map(M.fetchers)})},dispose:function(){x&&x(),B&&B(),S.clear(),s&&s.abort(),M.fetchers.forEach((e,t)=>eI(t)),M.blockers.forEach((e,t)=>eX(t))},getBlocker:function(e,t){let r=M.blockers.get(e)||$;return eC.get(e)!==t&&eC.set(e,t),r},deleteBlocker:eX,_internalFetchControllers:G,_internalActiveDeferreds:eL,_internalSetRoutes:function(e){r=w(e,t,void 0,m={})}}}Symbol("deferred");function Q(e,t,r,n,a,o,i,l){let s,u;if(i){for(let e of(s=[],t))if(s.push(e),e.route.id===i){u=e;break}}else s=t,u=t[t.length-1];let c=k(a||".",P(s,o),D(e.pathname,r)||e.pathname,"path"===l);return null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&u&&u.route.index&&!ew(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&"/"!==r&&(c.pathname="/"===c.pathname?r:U([r,c.pathname])),m(c)}function Z(e,t,r,n){var a;let o,i;if(!n||!(null!=(a=n)&&("formData"in a&&null!=a.formData||"body"in a&&void 0!==a.body)))return{path:r};if(n.formMethod&&!function(e){return z.has(e.toLowerCase())}(n.formMethod))return{path:r,error:ec(405,{method:n.formMethod})};let l=()=>({path:r,error:ec(400,{type:"invalid-body"})}),s=n.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),c=ef(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!ev(u))return l();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!ev(u))return l();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(d("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=ea(n.formData),i=n.formData;else if(n.body instanceof FormData)o=ea(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=eo(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=eo(o)}catch(e){return l()}let f={formMethod:u,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(ev(f.formMethod))return{path:r,submission:f};let h=v(r);return t&&h.search&&ew(h.search)&&o.append("index",""),h.search="?"+o,{path:m(h),submission:f}}function K(e,t,r,n,a,o,i,s,u,c,d,f,h,p,m,v){let y=v?Object.values(v)[0]:m?Object.values(m)[0]:void 0,g=e.createURL(t.location),w=e.createURL(a),E=(function(e,t){let r=e;if(t){let n=e.findIndex(e=>e.route.id===t);n>=0&&(r=e.slice(0,n))}return r})(r,v?Object.keys(v)[0]:void 0).filter((e,r)=>{let{route:a}=e;if(a.lazy)return!0;if(null==a.loader)return!1;if(o)return!!a.loader.hydrate||void 0===t.loaderData[a.id]&&(!t.errors||void 0===t.errors[a.id]);if(function(e,t,r){let n=!t||r.route.id!==t.route.id,a=void 0===e[r.route.id];return n||a}(t.loaderData,t.matches[r],e)||s.some(t=>t===e.route.id))return!0;let u=t.matches[r];return ee(e,l({currentUrl:g,currentParams:u.params,nextUrl:w,nextParams:e.params},n,{actionResult:y,defaultShouldRevalidate:i||g.pathname+g.search===w.pathname+w.search||g.search!==w.search||G(u,e)}))}),x=[];return d.forEach((e,a)=>{if(o||!r.some(t=>t.route.id===e.routeId)||c.has(a))return;let s=b(h,e.path,p);if(!s){x.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});return}let d=t.fetchers.get(a),m=eb(s,e.path),v=!1;(v=!f.has(a)&&(!!u.includes(a)||(d&&"idle"!==d.state&&void 0===d.data?i:ee(m,l({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:y,defaultShouldRevalidate:i})))))&&x.push({key:a,routeId:e.routeId,path:e.path,matches:s,match:m,controller:new AbortController})}),[E,x]}function G(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function ee(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}async function et(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];d(a,"No route found in manifest");let o={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;f(!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&&!g.has(e)&&(o[e]=n[e])}Object.assign(a,o),Object.assign(a,l({},t(a),{lazy:void 0}))}async function er(e,t,r,n,o,i,l,s,u){let c,f,h;void 0===u&&(u={});let p=e=>{let n;let a=new Promise((e,t)=>n=t);return h=()=>n(),t.signal.addEventListener("abort",h),Promise.race([e({request:t,params:r.params,context:u.requestContext}),a])};try{let n=r.route[e];if(r.route.lazy){if(n){let e;let t=await Promise.all([p(n).catch(t=>{e=t}),et(r.route,i,o)]);if(e)throw e;f=t[0]}else if(await et(r.route,i,o),n=r.route[e])f=await p(n);else{if("action"!==e)return{type:a.data,data:void 0};let n=new URL(t.url),o=n.pathname+n.search;throw ec(405,{method:t.method,pathname:o,routeId:r.route.id})}}else if(n)f=await p(n);else{let e=new URL(t.url),r=e.pathname+e.search;throw ec(404,{pathname:r})}d(void 0!==f,"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){c=a.error,f=e}finally{h&&t.signal.removeEventListener("abort",h)}if(function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}(f)){let e,o=f.status;if(N.has(o)){let e=f.headers.get("Location");if(d(e,"Redirects returned/thrown from loaders/actions must have a Location header"),q.test(e)){if(!u.isStaticRequest){let r=new URL(t.url),n=new URL(e.startsWith("//")?r.protocol+e:e),a=null!=D(n.pathname,l);n.origin===r.origin&&a&&(e=n.pathname+n.search+n.hash)}}else e=Q(new URL(t.url),n.slice(0,n.indexOf(r)+1),l,!0,e,s);if(u.isStaticRequest)throw f.headers.set("Location",e),f;return{type:a.redirect,status:o,location:e,revalidate:null!==f.headers.get("X-Remix-Revalidate"),reloadDocument:null!==f.headers.get("X-Remix-Reload-Document")}}if(u.isRouteRequest)throw{type:c===a.error?a.error:a.data,response:f};try{let t=f.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==f.body?null:await f.json():await f.text()}catch(e){return{type:a.error,error:e}}return c===a.error?{type:c,error:new A(o,f.statusText,e),headers:f.headers}:{type:a.data,data:e,statusCode:f.status,headers:f.headers}}if(c===a.error)return{type:c,error:f};if(function(e){return e&&"object"==typeof e&&"object"==typeof e.data&&"function"==typeof e.subscribe&&"function"==typeof e.cancel&&"function"==typeof e.resolveData}(f)){var m,v;return{type:a.deferred,deferredData:f,statusCode:null==(m=f.init)?void 0:m.status,headers:(null==(v=f.init)?void 0:v.headers)&&new Headers(f.init.headers)}}return{type:a.data,data:f}}function en(e,t,r,n){let a=e.createURL(ef(t)).toString(),o={signal:r};if(n&&ev(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=ea(n.formData):o.body=n.formData}return new Request(a,o)}function ea(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function eo(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function ei(e,t,r,n,a,o,i,s){var u,c,f,h,p;let m,v,y,g,w;let{loaderData:b,errors:E}=(u=t,c=r,f=n,h=a,p=s,v={},y=null,g=!1,w={},f.forEach((e,t)=>{let r=c[t].route.id;if(d(!em(e),"Cannot handle redirect results in processLoaderData"),ep(e)){let t=es(u,r),n=e.error;h&&(n=Object.values(h)[0],h=void 0),null==(y=y||{})[t.route.id]&&(y[t.route.id]=n),v[r]=void 0,!g&&(g=!0,m=F(e.error)?e.error.status:500),e.headers&&(w[r]=e.headers)}else eh(e)?(p.set(r,e.deferredData),v[r]=e.deferredData.data):v[r]=e.data,null!=e.statusCode&&200!==e.statusCode&&!g&&(m=e.statusCode),e.headers&&(w[r]=e.headers)}),h&&(y=h,v[Object.keys(h)[0]]=void 0),{loaderData:v,errors:y,statusCode:m||200,loaderHeaders:w});for(let t=0;t<o.length;t++){let{key:r,match:n,controller:a}=o[t];d(void 0!==i&&void 0!==i[t],"Did not find corresponding fetcher result");let s=i[t];if(!a||!a.signal.aborted)if(ep(s)){let t=es(e.matches,null==n?void 0:n.route.id);!(E&&E[t.route.id])&&(E=l({},E,{[t.route.id]:s.error})),e.fetchers.delete(r)}else if(em(s))d(!1,"Unhandled fetcher revalidation redirect");else if(eh(s))d(!1,"Unhandled fetcher deferred data");else{let t=eR(s.data);e.fetchers.set(r,t)}}return{loaderData:b,errors:E}}function el(e,t,r,n){let a=l({},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 es(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 eu(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 ec(e,t){let{pathname:r,routeId:n,method:a,type:o}=void 0===t?{}:t,i="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(i="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?(i="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):404===e?(i="Not Found",l='No route matches URL "'+r+'"'):405===e&&(i="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 A(e||500,i,Error(l),!0)}function ed(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(em(r))return{result:r,idx:t}}}function ef(e){let t="string"==typeof e?v(e):e;return m(l({},t,{hash:""}))}function eh(e){return e.type===a.deferred}function ep(e){return e.type===a.error}function em(e){return(e&&e.type)===a.redirect}function ev(e){return W.has(e.toLowerCase())}async function ey(e,t,r,n,a,o){for(let i=0;i<r.length;i++){let l=r[i],s=t[i];if(!s)continue;let u=e.find(e=>e.route.id===s.route.id),c=null!=u&&!G(u,s)&&(o&&o[s.route.id])!==void 0;if(eh(l)&&(a||c)){let e=n[i];d(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await eg(l,e,a).then(e=>{e&&(r[i]=e||r[i])})}}}async function eg(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 ew(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function eb(e,t){let r="string"==typeof t?v(t).search:t.search;if(e[e.length-1].route.index&&ew(r||""))return e[e.length-1];let n=C(e);return n[n.length-1]}function eE(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(!!t&&!!r&&!!n){if(null!=a)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(void 0!==i)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function ex(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 eS(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 eR(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}},70934:function(e,t,r){r.d(t,{OL:function(){return A},aj:function(){return x},cP:function(){return S},pG:function(){return T},rU:function(){return O}});var n,a,o,i,l,s,u=r(5872),c=r(13922),d=r(58654),f=r(85852);function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function p(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&(a[r]=e[r]);return a}let m="application/x-www-form-urlencoded";function v(e){return null!=e&&"string"==typeof e.tagName}let y=null,g=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function w(e){return null==e||g.has(e)?e:null}let b=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],E=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];try{window.__reactRouterVersion="6"}catch(e){}function x(e,t){return(0,f.p7)({basename:null==t?void 0:t.basename,future:h({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,f.lX)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||R(),routes:e,mapRouteProperties:d.us,window:null==t?void 0:t.window}).initialize()}function S(e,t){return(0,f.p7)({basename:null==t?void 0:t.basename,future:h({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,f.q_)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||R(),routes:e,mapRouteProperties:d.us,window:null==t?void 0:t.window}).initialize()}function R(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=h({},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 f.OF(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}let D=u.createContext({isTransitioning:!1}),L=u.createContext(new Map),C=(o||(o=r.t(u,2))).startTransition,P=(i||(i=r.t(c,2))).flushSync;(o||(o=r.t(u,2))).useId;function k(e){P?P(e):e()}class U{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 T(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=u.useState(r.state),[i,l]=u.useState(),[s,c]=u.useState({isTransitioning:!1}),[f,h]=u.useState(),[p,m]=u.useState(),[v,y]=u.useState(),g=u.useRef(new Map),{v7_startTransition:w}=n||{},b=u.useCallback(e=>{if(w){var t;t=e,C?C(t):t()}else e()},[w]),E=u.useCallback((e,t)=>{let{deletedFetchers:n,unstable_flushSync:a,unstable_viewTransitionOpts:i}=t;n.forEach(e=>g.current.delete(e)),e.fetchers.forEach((e,t)=>{void 0!==e.data&&g.current.set(t,e.data)});let s=null==r.window||"function"!=typeof r.window.document.startViewTransition;if(!i||s){a?k(()=>o(e)):b(()=>o(e));return}if(a){k(()=>{p&&(f&&f.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=r.window.document.startViewTransition(()=>{k(()=>o(e))});t.finished.finally(()=>{k(()=>{h(void 0),m(void 0),l(void 0),c({isTransitioning:!1})})}),k(()=>m(t));return}p?(f&&f.resolve(),p.skipTransition(),y({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(l(e),c({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))},[r.window,p,f,g,b]);u.useLayoutEffect(()=>r.subscribe(E),[r,E]),u.useEffect(()=>{s.isTransitioning&&!s.flushSync&&h(new U)},[s]),u.useEffect(()=>{if(f&&i&&r.window){let e=f.promise,t=r.window.document.startViewTransition(async()=>{b(()=>o(i)),await e});t.finished.finally(()=>{h(void 0),m(void 0),l(void 0),c({isTransitioning:!1})}),m(t)}},[b,i,f,r.window]),u.useEffect(()=>{f&&i&&a.location.key===i.location.key&&f.resolve()},[f,p,a.location,i]),u.useEffect(()=>{!s.isTransitioning&&v&&(l(v.state),c({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),y(void 0))},[s.isTransitioning,v]),u.useEffect(()=>{},[]);let x=u.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]),S=r.basename||"/",R=u.useMemo(()=>({router:r,navigator:x,static:!1,basename:S}),[r,x,S]);return u.createElement(u.Fragment,null,u.createElement(d.w3.Provider,{value:R},u.createElement(d.FR.Provider,{value:a},u.createElement(L.Provider,{value:g.current},u.createElement(D.Provider,{value:s},u.createElement(d.F0,{basename:S,location:a.location,navigationType:a.historyAction,navigator:x,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},a.initialized||r.future.v7_partialHydration?u.createElement(_,{routes:r.routes,future:r.future,state:a}):t))))),null)}function _(e){let{routes:t,future:r,state:n}=e;return(0,d.DY)(t,void 0,n,r)}let M="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,j=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,O=u.forwardRef(function(e,t){let r,{onClick:n,relative:a,reloadDocument:o,replace:i,state:l,target:s,to:c,preventScrollReset:m,unstable_viewTransition:v}=e,y=p(e,b),{basename:g}=u.useContext(d.Us),w=!1;if("string"==typeof c&&j.test(c)&&(r=c,M))try{let e=new URL(window.location.href),t=new URL(c.startsWith("//")?e.protocol+c:c),r=(0,f.Zn)(t.pathname,g);t.origin===e.origin&&null!=r?c=r+t.search+t.hash:w=!0}catch(e){}let E=(0,d.oQ)(c,{relative:a}),x=function(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:l}=void 0===t?{}:t,s=(0,d.s0)(),c=(0,d.TH)(),h=(0,d.WU)(e,{relative:i});return u.useCallback(t=>{var u,d,p;if(u=t,d=r,0===u.button&&(!d||"_self"===d)&&!((p=u).metaKey||p.altKey||p.ctrlKey||p.shiftKey))t.preventDefault(),s(e,{replace:void 0!==n?n:(0,f.Ep)(c)===(0,f.Ep)(h),state:a,preventScrollReset:o,relative:i,unstable_viewTransition:l})},[c,s,h,n,a,r,e,o,i,l])}(c,{replace:i,state:l,target:s,preventScrollReset:m,relative:a,unstable_viewTransition:v});return u.createElement("a",h({},y,{href:r||E,onClick:w||o?n:function(e){n&&n(e),!e.defaultPrevented&&x(e)},ref:t,target:s}))}),A=u.forwardRef(function(e,t){let r,{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:i=!1,style:s,to:c,unstable_viewTransition:m,children:v}=e,y=p(e,E),g=(0,d.WU)(c,{relative:y.relative}),w=(0,d.TH)(),b=u.useContext(d.FR),{navigator:x,basename:S}=u.useContext(d.Us),R=null!=b&&function(e,t){void 0===t&&(t={});let r=u.useContext(D);null!=r||(0,f.J0)(!1);let{basename:n}=F(l.useViewTransitionState),a=(0,d.WU)(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=(0,f.Zn)(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=(0,f.Zn)(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=(0,f.LX)(a.pathname,i)||null!=(0,f.LX)(a.pathname,o)}(g)&&!0===m,L=x.encodeLocation?x.encodeLocation(g).pathname:g.pathname,C=w.pathname,P=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;!a&&(C=C.toLowerCase(),P=P?P.toLowerCase():null,L=L.toLowerCase()),P&&S&&(P=(0,f.Zn)(P,S)||P);let k="/"!==L&&L.endsWith("/")?L.length-1:L.length,U=C===L||!i&&C.startsWith(L)&&"/"===C.charAt(k),T=null!=P&&(P===L||!i&&P.startsWith(L)&&"/"===P.charAt(L.length)),_={isActive:U,isPending:T,isTransitioning:R},M=U?n:void 0;r="function"==typeof o?o(_):[o,U?"active":null,T?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let j="function"==typeof s?s(_):s;return u.createElement(O,h({},y,{"aria-current":M,className:r,ref:t,style:j,to:c,unstable_viewTransition:m}),"function"==typeof v?v(_):v)});function F(e){let t=u.useContext(d.w3);return t||(0,f.J0)(!1),t}(n=l||(l={})).UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState",(a=s||(s={})).UseFetcher="useFetcher",a.UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration";let B=0,W=()=>"__"+String(++B)+"__"},58654:function(e,t,r){r.d(t,{AW:function(){return z},DY:function(){return D},F0:function(){return N},FR:function(){return d},SN:function(){return O},TH:function(){return g},UO:function(){return S},Us:function(){return f},WU:function(){return R},Z5:function(){return H},bS:function(){return w},f_:function(){return A},i7:function(){return J},j3:function(){return W},lk:function(){return F},oQ:function(){return v},s0:function(){return E},us:function(){return $},w3:function(){return c},xW:function(){return j}});var n,a,o,i,l=r(5872),s=r(85852);function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let c=l.createContext(null),d=l.createContext(null),f=l.createContext(null),h=l.createContext(null),p=l.createContext({outlet:null,matches:[],isDataRoute:!1}),m=l.createContext(null);function v(e,t){let{relative:r}=void 0===t?{}:t;y()||(0,s.J0)(!1);let{basename:n,navigator:a}=l.useContext(f),{hash:o,pathname:i,search:u}=R(e,{relative:r}),c=i;return"/"!==n&&(c="/"===i?n:(0,s.RQ)([n,i])),a.createHref({pathname:c,search:u,hash:o})}function y(){return null!=l.useContext(h)}function g(){return y()||(0,s.J0)(!1),l.useContext(h).location}function w(e){y()||(0,s.J0)(!1);let{pathname:t}=g();return l.useMemo(()=>(0,s.LX)(e,t),[t,e])}function b(e){!l.useContext(f).static&&l.useLayoutEffect(e)}function E(){let{isDataRoute:e}=l.useContext(p);return e?function(){let{router:e}=T(k.UseNavigateStable),t=M(U.UseNavigateStable),r=l.useRef(!1);return b(()=>{r.current=!0}),l.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,u({fromRouteId:t},a)))},[e,t])}():function(){y()||(0,s.J0)(!1);let e=l.useContext(c),{basename:t,future:r,navigator:n}=l.useContext(f),{matches:a}=l.useContext(p),{pathname:o}=g(),i=JSON.stringify((0,s.cm)(a,r.v7_relativeSplatPath)),u=l.useRef(!1);return b(()=>{u.current=!0}),l.useCallback(function(r,a){if(void 0===a&&(a={}),!u.current)return;if("number"==typeof r){n.go(r);return}let l=(0,s.pC)(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:(0,s.RQ)([t,l.pathname])),(a.replace?n.replace:n.push)(l,a.state,a)},[t,n,i,o,e])}()}let x=l.createContext(null);function S(){let{matches:e}=l.useContext(p),t=e[e.length-1];return t?t.params:{}}function R(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=l.useContext(f),{matches:a}=l.useContext(p),{pathname:o}=g(),i=JSON.stringify((0,s.cm)(a,n.v7_relativeSplatPath));return l.useMemo(()=>(0,s.pC)(e,JSON.parse(i),o,"path"===r),[e,i,o,r])}function D(e,t,r,n){let a;y()||(0,s.J0)(!1);let{navigator:o}=l.useContext(f),{matches:i}=l.useContext(p),c=i[i.length-1],d=c?c.params:{};c&&c.pathname;let m=c?c.pathnameBase:"/";c&&c.route;let v=g();if(t){var w;let e="string"==typeof t?(0,s.cP)(t):t;"/"===m||(null==(w=e.pathname)?void 0:w.startsWith(m))||(0,s.J0)(!1),a=e}else a=v;let b=a.pathname||"/",E="/"===m?b:b.slice(m.length)||"/",x=(0,s.fp)(e,{pathname:E}),S=function(e,t,r,n){var a,o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){if(null==(o=r)||!o.errors)return null;e=r.matches}let i=e,u=null==(a=r)?void 0:a.errors;if(null!=u){let e=i.findIndex(e=>e.route.id&&(null==u?void 0:u[e.route.id]));e>=0||(0,s.J0)(!1),i=i.slice(0,Math.min(i.length,e+1))}let c=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){c=!0,i=d>=0?i.slice(0,d+1):[i[0]];break}}}return i.reduceRight((e,n,a)=>{let o;let s=!1,f=null,h=null;r&&(o=u&&n.route.id?u[n.route.id]:void 0,f=n.route.errorElement||L,c&&(d<0&&0===a?(function(e,t,r){!t&&!B[e]&&(B[e]=!0)}("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),s=!0,h=null):d===a&&(s=!0,h=n.route.hydrateFallbackElement||null)));let p=t.concat(i.slice(0,a+1)),m=()=>{let t;return t=o?f:s?h:n.route.Component?l.createElement(n.route.Component,null):n.route.element?n.route.element:e,l.createElement(P,{match:n,routeContext:{outlet:e,matches:p,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?l.createElement(C,{location:r.location,revalidation:r.revalidation,component:f,error:o,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()},null)}(x&&x.map(e=>Object.assign({},e,{params:Object.assign({},d,e.params),pathname:(0,s.RQ)([m,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?m:(0,s.RQ)([m,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),i,r,n);return t&&S?l.createElement(h.Provider,{value:{location:u({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:s.aU.Pop}},S):S}let L=l.createElement(function(){let e=F(),t=(0,s.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),r?l.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},r):null,null)},null);class C extends l.Component{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?l.createElement(p.Provider,{value:this.props.routeContext},l.createElement(m.Provider,{value:this.state.error,children:this.props.component})):this.props.children}constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}}function P(e){let{routeContext:t,match:r,children:n}=e,a=l.useContext(c);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),l.createElement(p.Provider,{value:t},n)}var k=((n=k||{}).UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n);var U=((a=U||{}).UseBlocker="useBlocker",a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a.UseRouteId="useRouteId",a);function T(e){let t=l.useContext(c);return t||(0,s.J0)(!1),t}function _(e){let t=l.useContext(d);return t||(0,s.J0)(!1),t}function M(e){var t;let r;let n=(t=0,(r=l.useContext(p))||(0,s.J0)(!1),r),a=n.matches[n.matches.length-1];return a.route.id||(0,s.J0)(!1),a.route.id}function j(){let e=T(k.UseRevalidator),t=_(U.UseRevalidator);return l.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function O(){let{matches:e,loaderData:t}=_(U.UseMatches);return l.useMemo(()=>e.map(e=>(0,s.WS)(e,t)),[e,t])}function A(){let e=_(U.UseLoaderData),t=M(U.UseLoaderData);if(e.errors&&null!=e.errors[t]){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function F(){var e;let t=l.useContext(m),r=_(U.UseRouteError),n=M(U.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}let B={};function W(e){var t;let r;return t=e.context,(r=l.useContext(p).outlet)?l.createElement(x.Provider,{value:t},r):r}function z(e){(0,s.J0)(!1)}function N(e){let{basename:t="/",children:r=null,location:n,navigationType:a=s.aU.Pop,navigator:o,static:i=!1,future:c}=e;y()&&(0,s.J0)(!1);let d=t.replace(/^\/*/,"/"),p=l.useMemo(()=>({basename:d,navigator:o,static:i,future:u({v7_relativeSplatPath:!1},c)}),[d,c,o,i]);"string"==typeof n&&(n=(0,s.cP)(n));let{pathname:m="/",search:v="",hash:g="",state:w=null,key:b="default"}=n,E=l.useMemo(()=>{let e=(0,s.Zn)(m,d);return null==e?null:{location:{pathname:e,search:v,hash:g,state:w,key:b},navigationType:a}},[d,m,v,g,w,b,a]);return null==E?null:l.createElement(f.Provider,{value:p},l.createElement(h.Provider,{children:r,value:E}))}function H(e){var t;let{children:r,location:n}=e;return t=J(r),D(t,n)}(i||(i=r.t(l,2))).startTransition;var I=((o=I||{})[o.pending=0]="pending",o[o.success=1]="success",o[o.error=2]="error",o);function J(e,t){void 0===t&&(t=[]);let r=[];return l.Children.forEach(e,(e,n)=>{if(!l.isValidElement(e))return;let a=[...t,n];if(e.type===l.Fragment){r.push.apply(r,J(e.props.children,a));return}e.type!==z&&(0,s.J0)(!1),!e.props.index||!e.props.children||(0,s.J0)(!1);let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=J(e.props.children,a)),r.push(o)}),r}function $(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:l.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:l.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:l.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}new Promise(()=>{})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["400"],{96747:function(e,t,o){let n=o("86834"),l=o("789"),r=o("74679"),i=o("10487"),s=o("88739"),a=o("65872"),c=o("9880"),d=o.n(c),u=o("81733"),m=o("57662"),h=o("52493"),v=o.n(h),p=o("64542"),y=i.MessagePortChannel.wait(window,"channel:connect:client"),f=new p.S,g=(0,m.createBridge)(window,f),w=y.then(e=>{let t=(0,a.Hu)();return{remote:(0,s.Fu)({async activateReactDevtools(){(0,m.activate)(window,{bridge:g})},async onFinishRender(){await t.callHook("onFinishRender")},async cookies(e){let t=await fetch("/__devtools/api/cookies",{method:"POST",body:JSON.stringify({setCookies:e})}),{cookies:n}=await t.json();if(!n||"object"!=typeof n)throw TypeError("No cookies returned from server");let{parse:l}=await o.e("883").then(o.bind(o,10851)),r=l(document.cookie),i=v().omit(n,Object.keys(r));return{client:r,server:i}},localStorage:async e=>(v().each(e,(e,t)=>{window.localStorage.setItem(t,e)}),(0,l._)({},window.localStorage)),sessionStorage:async e=>(v().each(e,(e,t)=>{window.sessionStorage.setItem(t,e)}),(0,l._)({},window.sessionStorage))},(0,r._)((0,l._)({},e.handlers),{timeout:500})),hooks:t}}),k=(0,u.sj)({loaded:!1}),b=d()();w.then(e=>{let{remote:t,hooks:o}=e;f.bindRemote(t,"sendReactDevtoolsData"),o.hook("onFinishRender",async()=>{k.loaded=!0,b.resolve()})});let _=o("60182"),j="container-bYVevn",x=o("12320"),C=o("5872"),E=o("56573"),Z=o("71161"),N=o("36339"),R=o("29214"),S=e=>{var t;let o=null===(t=e.keepAlive)||void 0===t||t,{when:l}=e,r=(0,C.useRef)(!1);l&&(r.current=!0);let i=e.load||(o?r.current:l);return i?(0,n.jsx)("div",{style:{display:!o||l?"unset":"none"},children:e.children}):null},D=o("22675"),P=o("45230"),T=o("79197"),H=o("9768"),Y=o("45319"),B=e=>{var{src:t,onClose:o}=e,i=(0,P._)(e,["src","onClose"]);let{loaded:s}=(0,T.R)(k);return(0,n.jsxs)(x.xu,(0,r._)((0,l._)({className:Y.Z.container},i),{children:[(0,n.jsx)("iframe",{className:Y.Z.frame,src:t}),(0,n.jsx)(R.cu3,{className:Y.Z.closeButton,onClick:o}),(0,n.jsx)("div",{className:Y.Z.backdrop,style:{display:s?"none":void 0},children:(0,n.jsx)(H.g,{})})]}))},I=o("43730"),L=o("97639"),O=e=>{var t;let[o,l]=(0,I.Z)(()=>Promise.resolve(e.onClick()),[]);return(0,n.jsx)("button",{className:L.Z.container,onClick:l,"data-type":null!==(t=e.type)&&void 0!==t?t:"default",disabled:o.loading,children:e.children})},X=(e,t)=>{var o,n;return null!==(n=null===(o=({top:["left","right"],bottom:["left","right"],left:["top","bottom"],right:["top","bottom"]})[e])||void 0===o?void 0:o.includes(t))&&void 0!==n&&n},U=e=>{let[t,...o]=[{key:"top",value:e.top},{key:"bottom",value:e.bottom},{key:"left",value:e.left},{key:"right",value:e.right}].sort((e,t)=>e.value-t.value),n=o.findIndex(e=>{let{key:o}=e;return X(t.key,o)}),[l]=o.splice(n,1);return[t,l,o[0],o[1]]},F=e=>{let{top:t,left:o,height:n,width:l}=e.getBoundingClientRect();return{top:t,left:o,bottom:window.innerHeight-t-n,right:window.innerWidth-o-l}},W=e=>{var t;let o=null!==(t=null==e?void 0:e.margin)&&void 0!==t?t:"10px",n="number"==typeof o?"".concat(o,"px"):o,[l,r]=(0,C.useState)(),i=()=>{if(!l)return;l.moveable=!1;let{el:e}=l,[t]=U(F(e));e.style.transition="".concat(t.key," 200ms"),requestIdleCallback(()=>{r(void 0),e.style[t.key]=n}),e.addEventListener("transitionend",()=>e.style.transition="",{once:!0})},s=t=>{let o="touches"in t?t.touches[0]:t;if(!(null==l?void 0:l.moveable))return;let{startX:r,startY:i}=l;(r-o.clientX)**2+(i-o.clientY)**2>9&&(l.clickable=!1);let{width:s,height:a}=l.el.getBoundingClientRect(),c=o.clientY-l.offsetY,d=o.clientX-l.offsetX,u=U({top:c,left:d,bottom:window.innerHeight-c-a,right:window.innerWidth-d-s}).map(e=>{let{key:t,value:o}=e;return{key:t,value:"".concat(o,"px")}});if(null==e?void 0:e.clamp)for(let e of u){let t=["top","bottom"].includes(e.key)?window.innerHeight-a:window.innerWidth-s;e.value="clamp(".concat(n,", ").concat(e.value,", ").concat(t,"px)")}let[m,h,...v]=u,{style:p}=l.el;p.transition="",p[m.key]=m.value,p[h.key]=h.value,p[v[0].key]="auto",p[v[1].key]="auto"};(0,Z.Z)("blur",i),(0,Z.Z)("mouseup",i),(0,Z.Z)("touchend",i),(0,Z.Z)("mousemove",s),(0,Z.Z)("touchmove",s);let a=e=>{let t="touches"in e?e.touches[0]:e,o=e.currentTarget,n=o.getBoundingClientRect(),l=t.clientX-n.left;r({el:o,clickable:!0,moveable:!0,offsetX:l,offsetY:t.clientY-n.top,startX:t.clientX,startY:t.clientY})};return{isDragging:!!l,props:{onMouseDown:a,onTouchStart:a,onClickCapture:e=>{(null==l?void 0:l.clickable)||e.stopPropagation()}}}},K=(e,t)=>new Promise((o,n)=>{let l=!0,r=setTimeout(()=>{l=!1,n(Error("Promise Timeout"))},t);e.then(e=>{l&&o(e),clearTimeout(r)}),e.catch(n)}),M=o("97137"),A=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location,{hash:o}=t,n=null===(e=o.match(/^#\/__devtools(.*)/))||void 0===e?void 0:e[1];return"string"!=typeof n?null:""===n?"/":n},q=e=>{let t=A(),[o,i]=(0,E.Z)(!!t),[s,a]=(0,C.useState)(!1),c=W({clamp:!0}),[d]=(0,M.U)();(0,Z.Z)("keydown",e=>{e.shiftKey&&e.altKey&&"KeyD"===e.code&&i()}),(0,C.useEffect)(()=>{f.hook("receive",e=>{"startInspectingNative"===e.event&&(i(!1),document.documentElement.style.setProperty("cursor","cell"))});let e=e=>{"stopInspectingNative"===e.event&&(i(!0),document.documentElement.style.removeProperty("cursor"))};return f.hook("send",e),()=>{f.removeHook("send",e)}},[]);let u=async()=>{document.documentElement.style.setProperty("cursor","wait"),i(!1),a(!0);try{(await K(w,1e4)).remote.pullUp("/react/components#inspecting")}catch(e){console.error(e),document.documentElement.style.removeProperty("cursor")}};return(0,N.Z)(async()=>{if(!!t)(await K(w,1e4)).remote.pullUp(t)},[]),(0,n.jsxs)(x.Q2,{appearance:d,className:d,hasBackground:!1,style:{height:0,width:0,minHeight:0,minWidth:0},children:[(0,n.jsx)(S,{when:o,keepAlive:!0,load:s,children:(0,n.jsx)("div",{className:D.Z.container,children:(0,n.jsx)(B,{src:e.src,onClose:()=>i(!1),style:{pointerEvents:c.isDragging?"none":"auto"}})})}),(0,n.jsxs)(x.kC,(0,r._)((0,l._)({className:D.Z.fab},c.props),{align:"center",children:[(0,n.jsx)(O,{type:"primary",onClick:i,children:(0,n.jsx)("img",{className:D.Z.logo,src:e.logo})}),(0,n.jsx)(O,{onClick:u,children:(0,n.jsx)(R.aur,{})})]}))]})},J=()=>{let e=window.__modern_js_devtools_manifest;if(!e)throw TypeError("Devtools manifest is not found");let t=e.client;if(!t)throw TypeError("Devtools client source is not found");let o=e.source,l=new URL(t,location.href);if(o){let e=new URL(o,location.href);l.searchParams.set("src",e.href)}return(0,n.jsx)(q,{logo:e.context.def.assets.logo,src:l.href})},Q=()=>{let e=document.createElement("div");e.className="_modern_js_devtools_container",document.body.appendChild(e);let t=e.attachShadow({mode:"closed"}),o=document.getElementById("_modern_js_devtools_styles");if(!(o instanceof HTMLTemplateElement))throw Error("template not found");t.appendChild(o.content);let l=document.createElement("div");l.classList.add("_modern_js_devtools_mountpoint","theme-register",j),t.appendChild(l),(0,_.createRoot)(l).render((0,n.jsx)(J,{}))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Q):Q()}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["126","221","567","58","675","707","991"],function(){return t("44541"),t("74749"),t("49741"),t("28651"),t("96747")}),e.O()}]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js/devtools-client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.56.0",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=14.0.0"
|
|
6
6
|
},
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@radix-ui/react-popover": "^1.0.7",
|
|
23
23
|
"@radix-ui/react-tabs": "^1.0.4",
|
|
24
24
|
"@radix-ui/themes": "^3.0.5",
|
|
25
|
-
"@rsbuild/core": "0.
|
|
25
|
+
"@rsbuild/core": "1.0.1-beta.3",
|
|
26
26
|
"@types/jest": "^29",
|
|
27
27
|
"@types/lodash": "^4.14.202",
|
|
28
28
|
"@types/node": "~16.11.7",
|
|
@@ -58,16 +58,16 @@
|
|
|
58
58
|
"@radix-ui/react-toast": "^1.1.5",
|
|
59
59
|
"valtio": "^1.11.1",
|
|
60
60
|
"flatted": "^3.2.9",
|
|
61
|
-
"@modern-js-app/eslint-config": "2.
|
|
62
|
-
"@modern-js/app-tools": "2.
|
|
63
|
-
"@modern-js/devtools-kit": "2.
|
|
64
|
-
"@modern-js/eslint-config": "2.
|
|
65
|
-
"@modern-js/
|
|
66
|
-
"@modern-js/
|
|
67
|
-
"@modern-js/types": "2.
|
|
68
|
-
"@
|
|
69
|
-
"@modern-js/
|
|
70
|
-
"@
|
|
61
|
+
"@modern-js-app/eslint-config": "2.56.0",
|
|
62
|
+
"@modern-js/app-tools": "2.56.0",
|
|
63
|
+
"@modern-js/devtools-kit": "2.56.0",
|
|
64
|
+
"@modern-js/eslint-config": "2.56.0",
|
|
65
|
+
"@modern-js/runtime": "2.56.0",
|
|
66
|
+
"@modern-js/plugin-proxy": "2.56.0",
|
|
67
|
+
"@modern-js/types": "2.56.0",
|
|
68
|
+
"@modern-js/tsconfig": "2.56.0",
|
|
69
|
+
"@modern-js/utils": "2.56.0",
|
|
70
|
+
"@scripts/jest-config": "2.56.0"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"cookie-es": "^1.0.0"
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<!doctype html><html><head><title></title><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no,viewport-fit=cover,minimum-scale=1,maximum-scale=1,user-scalable=no"><meta http-equiv="x-ua-compatible" content="ie=edge"><meta name="renderer" content="webkit"><meta name="layoutmode" content="standard"><meta name="imagemode" content="force"><meta name="wap-font-scale" content="no"><meta name="format-detection" content="telephone=no"><script defer="defer" src="/__devtools/static/js/builder-runtime.3d117aeb.js"></script><script >
|
|
2
|
-
;(function(){
|
|
3
|
-
window._MODERNJS_ROUTE_MANIFEST = {"routeAssets":{"client":{"chunkIds":["242","567","126","707","58","118","518","599","277","462"],"assets":["static/js/builder-runtime.3d117aeb.js","static/js/components.1e877f2c.js","static/css/components.41191267.css","static/js/lib-polyfill.a0b0c08b.js","static/js/lib-lodash.4ab7d73a.js","static/js/lib-react.be245967.js","static/js/lib-router.619ce9d4.js","static/css/518.861d0891.css","static/js/518.3a4d37e3.js","static/js/599.553c521a.js","static/css/599.e744b37c.css","static/js/277.1ce8ace1.js","static/js/client.58507476.js","static/css/client.13303fab.css"],"referenceCssAssets":["static/css/components.41191267.css","static/css/518.861d0891.css","static/css/599.e744b37c.css","static/css/client.13303fab.css"]},"client_config/(toolkit).(type)/page":{"chunkIds":["567","126","769","288"],"assets":["static/js/components.1e877f2c.js","static/css/components.41191267.css","static/js/lib-polyfill.a0b0c08b.js","static/js/async/769.9da82d5e.js","static/js/async/client_config/(toolkit).(type)/page.afc8e58e.js"],"referenceCssAssets":["static/css/components.41191267.css"]},"client_config/layout":{"chunkIds":["587"],"assets":["static/js/async/client_config/layout.940bdfa0.js"],"referenceCssAssets":[]},"client_config/page":{"chunkIds":["943"],"assets":["static/js/async/client_config/page.9d42d42a.js"],"referenceCssAssets":[]},"client_context/builder/page":{"chunkIds":["567","126","769","958"],"assets":["static/js/components.1e877f2c.js","static/css/components.41191267.css","static/js/lib-polyfill.a0b0c08b.js","static/js/async/769.9da82d5e.js","static/js/async/client_context/builder/page.0dc5a1e9.js"],"referenceCssAssets":["static/css/components.41191267.css"]},"client_context/framework/page":{"chunkIds":["567","126","769","818"],"assets":["static/js/components.1e877f2c.js","static/css/components.41191267.css","static/js/lib-polyfill.a0b0c08b.js","static/js/async/769.9da82d5e.js","static/js/async/client_context/framework/page.b4f8bc08.js"],"referenceCssAssets":["static/css/components.41191267.css"]},"client_context/layout":{"chunkIds":["504"],"assets":["static/js/async/client_context/layout.dc4011c7.js"],"referenceCssAssets":[]},"client_context/page":{"chunkIds":["361"],"assets":["static/js/async/client_context/page.be7bb5ff.js"],"referenceCssAssets":[]},"client_doctor/page":{"chunkIds":["567","488"],"assets":["static/js/components.1e877f2c.js","static/css/components.41191267.css","static/js/async/client_doctor/page.375c9c91.js","static/css/async/client_doctor/page.f1527f16.css"],"referenceCssAssets":["static/css/components.41191267.css","static/css/async/client_doctor/page.f1527f16.css"]},"client_external/$":{"chunkIds":["158"],"assets":["static/js/async/client_external/$.df5499f5.js"],"referenceCssAssets":[]},"client_external/layout":{"chunkIds":["744"],"assets":["static/js/async/client_external/layout.9d8d3bbe.js"],"referenceCssAssets":[]},"client_headers/editor/page":{"chunkIds":["567","730"],"assets":["static/js/components.1e877f2c.js","static/css/components.41191267.css","static/css/async/client_headers/editor/page.47215f0e.css","static/js/async/client_headers/editor/page.e44e7804.js"],"referenceCssAssets":["static/css/components.41191267.css","static/css/async/client_headers/editor/page.47215f0e.css"]},"client_headers/layout":{"chunkIds":["925"],"assets":["static/js/async/client_headers/layout.4a4dde71.js"],"referenceCssAssets":[]},"client_headers/page":{"chunkIds":["963"],"assets":["static/js/async/client_headers/page.f0f8550b.js"],"referenceCssAssets":[]},"client_headers/welcome/page":{"chunkIds":["860"],"assets":["static/js/async/client_headers/welcome/page.72018b7e.js"],"referenceCssAssets":[]},"client_overview/layout":{"chunkIds":["988"],"assets":["static/js/async/client_overview/layout.1dd8a005.js"],"referenceCssAssets":[]},"client_overview/page":{"chunkIds":["567","161"],"assets":["static/js/components.1e877f2c.js","static/css/components.41191267.css","static/css/async/client_overview/page.a2667b2a.css","static/js/async/client_overview/page.8cdd6473.js"],"referenceCssAssets":["static/css/components.41191267.css","static/css/async/client_overview/page.a2667b2a.css"]},"client_page":{"chunkIds":["127"],"assets":["static/js/async/client_page.2565084c.js"],"referenceCssAssets":[]},"client_pages/layout":{"chunkIds":["631"],"assets":["static/js/async/client_pages/layout.6a85b0e0.js"],"referenceCssAssets":[]},"client_pages/page":{"chunkIds":["567","718"],"assets":["static/js/components.1e877f2c.js","static/css/components.41191267.css","static/js/async/client_pages/page.07783134.js","static/css/async/client_pages/page.1e9bbc9d.css"],"referenceCssAssets":["static/css/components.41191267.css","static/css/async/client_pages/page.1e9bbc9d.css"]},"client_react/(tab)/layout":{"chunkIds":["299"],"assets":["static/js/async/client_react/(tab)/layout.bda655a6.js"],"referenceCssAssets":[]},"client_react/(tab)/page":{"chunkIds":["851","483"],"assets":["static/js/async/851.32405bb9.js","static/js/async/client_react/(tab)/page.62695646.js"],"referenceCssAssets":[]},"client_react/offscreen/page":{"chunkIds":["752"],"assets":["static/js/async/client_react/offscreen/page.71d8db51.js"],"referenceCssAssets":[]},"client_react/page":{"chunkIds":["945"],"assets":["static/js/async/client_react/page.798c11ca.js"],"referenceCssAssets":[]},"client_storage/preset/(id)/page":{"chunkIds":["567","244"],"assets":["static/js/components.1e877f2c.js","static/css/components.41191267.css","static/js/async/client_storage/preset/(id)/page.61899ba8.js","static/css/async/client_storage/preset/(id)/page.79a266f3.css"],"referenceCssAssets":["static/css/components.41191267.css","static/css/async/client_storage/preset/(id)/page.79a266f3.css"]},"client_storage/preset/layout":{"chunkIds":["567","470"],"assets":["static/js/components.1e877f2c.js","static/css/components.41191267.css","static/js/async/client_storage/preset/layout.cbc09989.js","static/css/async/client_storage/preset/layout.d4eb2799.css"],"referenceCssAssets":["static/css/components.41191267.css","static/css/async/client_storage/preset/layout.d4eb2799.css"]},"client_storage/preset/page":{"chunkIds":["567","146"],"assets":["static/js/components.1e877f2c.js","static/css/components.41191267.css","static/css/async/client_storage/preset/page.d4eb2799.css","static/js/async/client_storage/preset/page.fa223b1a.js"],"referenceCssAssets":["static/css/components.41191267.css","static/css/async/client_storage/preset/page.d4eb2799.css"]}}};
|
|
4
|
-
})();
|
|
5
|
-
</script><script defer="defer" src="/__devtools/static/js/components.1e877f2c.js"></script><script defer="defer" src="/__devtools/static/js/lib-polyfill.a0b0c08b.js"></script><script defer="defer" src="/__devtools/static/js/lib-lodash.4ab7d73a.js"></script><script defer="defer" src="/__devtools/static/js/lib-react.be245967.js"></script><script defer="defer" src="/__devtools/static/js/lib-router.619ce9d4.js"></script><script defer="defer" src="/__devtools/static/js/518.3a4d37e3.js"></script><script defer="defer" src="/__devtools/static/js/599.553c521a.js"></script><script defer="defer" src="/__devtools/static/js/277.1ce8ace1.js"></script><script defer="defer" src="/__devtools/static/js/client.58507476.js"></script><link href="/__devtools/static/css/components.41191267.css" rel="stylesheet"><link href="/__devtools/static/css/518.861d0891.css" rel="stylesheet"><link href="/__devtools/static/css/599.e744b37c.css" rel="stylesheet"><link href="/__devtools/static/css/client.13303fab.css" rel="stylesheet"></head><body><div id="root"><!--<?- html ?>--></div><!--<?- chunksMap.js ?>--><!--<?- SSRDataScript ?>--></body></html>
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<!doctype html><html><head><title></title><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no,viewport-fit=cover,minimum-scale=1,maximum-scale=1,user-scalable=no"><meta http-equiv="x-ua-compatible" content="ie=edge"><meta name="renderer" content="webkit"><meta name="layoutmode" content="standard"><meta name="imagemode" content="force"><meta name="wap-font-scale" content="no"><meta name="format-detection" content="telephone=no"><script defer="defer" src="/__devtools/static/js/builder-runtime.3d117aeb.js"></script><script >
|
|
2
|
-
;(function(){
|
|
3
|
-
window._MODERNJS_ROUTE_MANIFEST = {"routeAssets":{"mount":{"chunkIds":["242","567","126","707","58","518","991","277","400"],"assets":["static/js/builder-runtime.3d117aeb.js","static/js/components.1e877f2c.js","static/css/components.41191267.css","static/js/lib-polyfill.a0b0c08b.js","static/js/lib-lodash.4ab7d73a.js","static/js/lib-react.be245967.js","static/css/518.861d0891.css","static/js/518.3a4d37e3.js","static/js/991.17fd54ac.js","static/js/277.1ce8ace1.js","static/js/mount.91f07cc0.js","static/css/mount.8fe89093.css"],"referenceCssAssets":["static/css/components.41191267.css","static/css/518.861d0891.css","static/css/mount.8fe89093.css"]}}};
|
|
4
|
-
})();
|
|
5
|
-
</script><script defer="defer" src="/__devtools/static/js/components.1e877f2c.js"></script><script defer="defer" src="/__devtools/static/js/lib-polyfill.a0b0c08b.js"></script><script defer="defer" src="/__devtools/static/js/lib-lodash.4ab7d73a.js"></script><script defer="defer" src="/__devtools/static/js/lib-react.be245967.js"></script><script defer="defer" src="/__devtools/static/js/518.3a4d37e3.js"></script><script defer="defer" src="/__devtools/static/js/991.17fd54ac.js"></script><script defer="defer" src="/__devtools/static/js/277.1ce8ace1.js"></script><script defer="defer" src="/__devtools/static/js/mount.91f07cc0.js"></script><link href="/__devtools/static/css/components.41191267.css" rel="stylesheet"><link href="/__devtools/static/css/518.861d0891.css" rel="stylesheet"><link href="/__devtools/static/css/mount.8fe89093.css" rel="stylesheet"></head><body><div id="root"><!--<?- html ?>--></div><!--<?- chunksMap.js ?>--><!--<?- SSRDataScript ?>--></body></html>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["277"],{60769:function(e,t,r){let M,o,n,s;var i=Object.create,j=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,N=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,D=(e,t,r,M)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of u(t))!a.call(e,o)&&o!==r&&j(e,o,{get:()=>t[o],enumerable:!(M=c(t,o))||M.enumerable});return e},g={};((e,t)=>{for(var r in t)j(e,r,{get:t[r],enumerable:!0})})(g,{MessagePortChannel:()=>p,MessagePortTimeout:()=>z,WebSocketChannel:()=>I});e.exports=(M=g,D(j({},"__esModule",{value:!0}),M));var y=r(89677);var l=(s=null!=(o=r(16272))?i(N(o)):{},D(o&&o.__esModule?s:j(s,"default",{value:o,enumerable:!0}),o)),O=r(46974);class I{static link(e){return new Promise((t,r)=>{let M=new I(e);e.readyState===e.OPEN?t(M):(e.addEventListener("open",()=>t(M),{once:!0}),e.addEventListener("error",r,{once:!0}),e.addEventListener("close",r,{once:!0}),setTimeout(r,1e3))})}get handlers(){return{on:this.on.bind(this),post:this.post.bind(this),deserialize:this.deserialize.bind(this),serialize:this.serialize.bind(this)}}post(e,...t){if(t.length)throw Error("Unexpected extra parameters.");this.ws.send(e)}on(e){this.ws.onmessage=e}serialize(e){return l.stringify([e],(0,O.replacer)())}deserialize(e){return l.parse(e.data.toString(),(0,O.reviver)())[0]}constructor(e){this.ws=e,Object.assign(this,{on:this.on.bind(this),post:this.post.bind(this),deserialize:this.deserialize.bind(this),serialize:this.serialize.bind(this)})}}class z extends Error{constructor(){super("Connection to target message channel port timed out")}}class p{static link(e,t="channel:connect"){return new Promise((r,M)=>{let o=(0,y.nanoid)(),{port1:n,port2:s}=new MessageChannel,i=e=>{if(e.data.tag===t&&"accepted"===e.data.type)e.data.id===o&&(s.removeEventListener("message",i),r(new p(s)))};s.addEventListener("messageerror",M,{once:!0}),s.addEventListener("message",i),s.start(),e.postMessage({tag:t,type:"request",id:o},"*",[n])})}static wait(e,t="channel:connect"){return new Promise((r,M)=>{let o=async n=>{let{data:s}=n;if(!s||"object"!=typeof s||s.tag!==t||"request"!==s.type)return;e.removeEventListener("message",o);let i=n.ports[0];i?(i.postMessage({type:"accepted",id:s.id,tag:t}),r(new p(i))):M(Error("Missing message channel port from remote."))};e.addEventListener("message",o)})}get handlers(){return{on:this.on.bind(this),post:this.post.bind(this)}}post(e,...t){if(t.length)throw Error("Unexpected extra parameters.");this.port.postMessage(e)}on(e){this.port.addEventListener("message",t=>e(t.data))}constructor(e){this.port=e,this.port.start(),Object.assign(this,{on:this.on.bind(this),post:this.post.bind(this)})}}},72215:function(e,t,r){let M,o,n,s;var i=Object.create,j=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,N=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,D=(e,t,r,M)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of u(t))!a.call(e,o)&&o!==r&&j(e,o,{get:()=>t[o],enumerable:!(M=c(t,o))||M.enumerable});return e},g={};((e,t)=>{for(var r in t)j(e,r,{get:t[r],enumerable:!0})})(g,{AnnouncementDefinition:()=>z,AssetDefinition:()=>I,ClientDefinition:()=>f,DoctorDefinition:()=>p,NameDefinition:()=>l,PackageDefinition:()=>O});e.exports=(M=g,D(j({},"__esModule",{value:!0}),M));var y=(s=null!=(o=r(34070))?i(N(o)):{},D(o&&o.__esModule?s:j(s,"default",{value:o,enumerable:!0}),o));class l{constructor(){this.formalName="Modern.js",this.casualName="modern.js",this.prefixName="_modern_js",this.shortName="modern"}}class O{constructor(){this.appTools="@modern-js/app-tools"}}class I{constructor(){this.logo=y.default}}class z{constructor(){this.src="https://raw.githubusercontent.com/web-infra-dev/modern.js/main/ANNOUNCEMENT.md",this.fallback="https://modernjs.dev/"}}class p{constructor(){this.home="https://rsdoctor.dev",this.quickStart="https://rsdoctor.dev/guide/start/quick-start"}}class f{constructor(){this.name=new l,this.packages=new O,this.assets=new I,this.doctor=new p,this.announcement=new z,this.plugins=[]}}},74966:function(e){let t;var r=Object.defineProperty,M=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,s=(e,t,s,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let j of o(t))!n.call(e,j)&&j!==s&&r(e,j,{get:()=>t[j],enumerable:!(i=M(t,j))||i.enumerable});return e},i={};((e,t)=>{for(var M in t)r(e,M,{get:t[M],enumerable:!0})})(i,{ROUTE_BASENAME:()=>j});e.exports=(t=i,s(r({},"__esModule",{value:!0}),t));let j="/__devtools"},34070:function(e){let t;var r=Object.defineProperty,M=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,s=(e,t,s,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let j of o(t))!n.call(e,j)&&j!==s&&r(e,j,{get:()=>t[j],enumerable:!(i=M(t,j))||i.enumerable});return e},i={};((e,t)=>{for(var M in t)r(e,M,{get:t[M],enumerable:!0})})(i,{default:()=>j});e.exports=(t=i,s(r({},"__esModule",{value:!0}),t));var j="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzMiIGhlaWdodD0iMzMiIHZpZXdCb3g9IjAgMCA0NSAzMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMzEzOjUxNDkpIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTguODIwNzcgMjAuMjg2OUM3Ljg0NzU5IDE3LjE1NzEgNy45NjgyNiAxMy43ODk0IDkuMTYyOTggMTAuNzM3M0MxMC4zNTc3IDcuNjg1MjggMTIuNTU1NCA1LjEzMDU3IDE1LjM5NDYgMy40OTMyQzE4LjIzMzkgMS44NTU4MyAyMS41NDU4IDEuMjMzMjYgMjQuNzg1OCAxLjcyNzg1QzI4LjAyNTkgMi4yMjI0NSAzMS4wMDEyIDMuODA0NzYgMzMuMjIyNyA2LjIxNDY1QzMyLjY2MTggNi40OTAxMSAzMi4wODY5IDYuNzc2NTQgMzEuNDk4MSA3LjA3Mzk1QzI5LjUzNjggNS4xMTc5MSAyNi45ODU1IDMuODYyODcgMjQuMjM5MSAzLjUwMzFDMjEuNDkyNiAzLjE0MzM0IDE4LjcwNDEgMy42OTg5IDE2LjMwNTIgNS4wODM4MUMxMy45MDYzIDYuNDY4NzIgMTIuMDMwOSA4LjYwNTczIDEwLjk2OTEgMTEuMTY0MUM5LjkwNzI1IDEzLjcyMjQgOS43MTgzNiAxNi41NTk0IDEwLjQzMTYgMTkuMjM2QzkuODc4NjkgMTkuNTg5MyA5LjM0MTc0IDE5LjkzOTYgOC44MjA3NyAyMC4yODY5Wk00My4wMDAxIDMuOTU1NTJDNDIuOTE4NyAzLjkzMzYyIDQyLjgzMTkgMy45NDQ5NyA0Mi43NTg4IDMuOTg3MDVINDIuNzY3OEMzOC41ODAyIDUuODE5NjIgMzQuNDU1NyA3Ljc4NjE5IDMwLjQwMDUgOS44ODMxOEwyMi41MTU4IDYuMzQ2MzlDMjIuMzY2NyA2LjI4MDc2IDIyLjIwNDMgNi4yNTA5MSAyMi4wNDE2IDYuMjU5MjNDMjEuODc4OCA2LjI2NzU1IDIxLjcyMDMgNi4zMTM4IDIxLjU3ODcgNi4zOTQzQzIxLjQzNzkgNi40NzUxNyAyMS4zMTgyIDYuNTg4MDYgMjEuMjI5MyA2LjcyMzgzQzIxLjE0MDMgNi44NTk2IDIxLjA4NDYgNy4wMTQ0MyAyMS4wNjY3IDcuMTc1NzVMMjAuMzA5MiAxMy45ODQzTDE2LjUzNjYgMTIuMzgyNUMxNi4zOTA4IDEyLjMyMDIgMTYuMjMyNSAxMi4yOTI0IDE2LjA3NDIgMTIuMzAxM0MxNS45MTU5IDEyLjMxMDIgMTUuNzYxOCAxMi4zNTU1IDE1LjYyMzggMTIuNDMzOEMxNS40ODU5IDEyLjUxMiAxNS4zNjc5IDEyLjYyMSAxNS4yNzkgMTIuNzUyNEMxNS4xOTAxIDEyLjg4MzcgMTUuMTMyOCAxMy4wMzM4IDE1LjExMTQgMTMuMTkwOUwxNC4yODQzIDE5LjEzNTdDMTAuMTQzMiAyMS43NjEzIDYuMDkxOCAyNC41MzE5IDIuMTM3ODkgMjcuNDQyOEMyLjA3MTk1IDI3LjQ4ODUgMi4wMjU1NyAyNy41NTczIDIuMDA3ODggMjcuNjM1NUMxLjk5MDIgMjcuNzEzOCAyLjAwMjUgMjcuNzk1OCAyLjA0MjM5IDI3Ljg2NTRDMi4wODIyNyAyNy45MzUgMi4xNDY4MiAyNy45ODcxIDIuMjIzMjcgMjguMDExNEMyLjI5OTcyIDI4LjAzNTcgMi4zODI1MiAyOC4wMzA1IDIuNDU1MjggMjcuOTk2N0M5LjYyNTI1IDI0LjgzODMgMTYuNjIxNCAyMS4yOTkyIDIzLjQxNCAxNy4zOTQ2QzMwLjE5MjggMTMuNDYzIDM2Ljc1NjMgOS4xNzEzNSA0My4wNzYyIDQuNTM3OTdDNDMuMTQ5MyA0LjQ5NTg4IDQzLjIwMjYgNC40MjY1IDQzLjIyNDUgNC4zNDUwOEM0My4yNDY0IDQuMjYzNjYgNDMuMjM1IDQuMTc2ODcgNDMuMTkyOSA0LjEwMzgyQzQzLjE1MDkgNC4wMzA3NiA0My4wODE1IDMuOTc3NDIgNDMuMDAwMSAzLjk1NTUyWk0xNi4yOTM5IDE3Ljg3NzJDMTcuNDU4OCAxNy4xNTY3IDE4LjYzMDcgMTYuNDQ3NiAxOS44MDkzIDE1Ljc1TDE2Ljc3MzEgMTQuNDYwNEwxNi4yOTM5IDE3Ljg3NzJaTTIyLjA5MjEgMTQuNDE3OUMyNC4xNTc2IDEzLjIyOTkgMjYuMjQzMSAxMi4wNzY3IDI4LjM0NzkgMTAuOTU4OUwyMi43NTU0IDguNDUxMjRMMjIuMDkyMSAxNC40MTc5Wk0zMy4wNzc5IDIyLjk2MTRDMzQuNDU4IDIwLjg5MjggMzUuMTk0OSAxOC40NjIxIDM1LjE5NTggMTUuOTc1NEMzNS4xOTY0IDE0Ljg5MiAzNS4wNTY1IDEzLjgxMzEgMzQuNzc5NiAxMi43NjU3QzM1LjMzMjUgMTIuNDAyNSAzNS44Njk0IDEyLjA0NzIgMzYuMzkwNCAxMS42OTk4QzM3LjM1NDcgMTQuODI2NSAzNy4yMjg1IDE4LjE4NzkgMzYuMDMyNiAyMS4yMzM1QzM0LjgzNjcgMjQuMjc5MSAzMi42NDIgMjYuODI4MiAyOS44MDc5IDI4LjQ2MzRDMjYuOTczOCAzMC4wOTg2IDIzLjY2ODUgMzAuNzIyOCAyMC40MzMzIDMwLjIzMzlDMTcuMTk4IDI5Ljc0NDkgMTQuMjI0OCAyOC4xNzE3IDEyLjAwMDUgMjUuNzcyMUMxMi41NTM0IDI1LjQ5NjYgMTMuMTI5MyAyNS4yMTAyIDEzLjcyODEgMjQuOTEyOEMxNS40OTM0IDI2LjY2NDEgMTcuNzM3NSAyNy44NTM4IDIwLjE3NzggMjguMzMxOUMyMi42MTggMjguODEgMjUuMTQ1MiAyOC41NTUyIDI3LjQ0MDggMjcuNTk5NEMyOS43MzY1IDI2LjY0MzcgMzEuNjk3OSAyNS4wMjk5IDMzLjA3NzkgMjIuOTYxNFpNNDEuOTEgMjQuMzU3NkM0Mi4xNTMxIDIzLjk5MzcgNDIuMjgyOSAyMy41NjU5IDQyLjI4MjkgMjMuMTI4M0M0Mi4yODI5IDIyLjU0MTUgNDIuMDQ5NyAyMS45Nzg3IDQxLjYzNDggMjEuNTYzN0M0MS4yMTk4IDIxLjE0ODggNDAuNjU3MSAyMC45MTU3IDQwLjA3MDIgMjAuOTE1N0MzOS42MzI2IDIwLjkxNTcgMzkuMjA0OCAyMS4wNDU0IDM4Ljg0MSAyMS4yODg2QzM4LjQ3NzEgMjEuNTMxNyAzOC4xOTM1IDIxLjg3NzMgMzguMDI2IDIyLjI4MTZDMzcuODU4NSAyMi42ODU5IDM3LjgxNDcgMjMuMTMwOCAzNy45MDAxIDIzLjU2QzM3Ljk4NTUgMjMuOTg5MiAzOC4xOTYyIDI0LjM4MzQgMzguNTA1NiAyNC42OTI5QzM4LjgxNTEgMjUuMDAyMyAzOS4yMDk0IDI1LjIxMzEgMzkuNjM4NiAyNS4yOTg0QzQwLjA2NzggMjUuMzgzOCA0MC41MTI3IDI1LjM0IDQwLjkxNyAyNS4xNzI1QzQxLjMyMTMgMjUuMDA1IDQxLjY2NjggMjQuNzIxNCA0MS45MSAyNC4zNTc2Wk02Ljk4NTM4IDcuODM3NDNDNi45ODUzOCA4LjA1NDg5IDYuOTIwODQgOC4yNjc0NSA2Ljc5OTk3IDguNDQ4MjJDNi42NzkwOSA4LjYyODk5IDYuNTA3MzMgOC43Njk4MyA2LjMwNjM3IDguODUyOTFDNi4xMDU0MSA4LjkzNTk5IDUuODg0MzEgOC45NTc1OCA1LjY3MTA4IDguOTE0OTNDNS40NTc4NCA4Ljg3MjI5IDUuMjYyMDMgOC43NjczNCA1LjEwODQ4IDguNjEzMzdDNC45NTQ5MiA4LjQ1OTM5IDQuODUwNTEgOC4yNjMzMSA0LjgwODQ1IDguMDQ5OTZDNC43NjYzOSA3LjgzNjYyIDQuNzg4NiA3LjYxNTU4IDQuODcyMjIgNy40MTQ4NUM0Ljk1NTg1IDcuMjE0MTIgNS4wOTcxNSA3LjA0MjcyIDUuMjc4MjUgNi45MjIzNEM1LjQ1OTM0IDYuODAxOTYgNS42NzIwNyA2LjczODAxIDUuODg5NTMgNi43Mzg2QzYuMDMzNjkgNi43Mzg2IDYuMTc2NDQgNi43NjcwNCA2LjMwOTU5IDYuODIyM0M2LjQ0Mjc0IDYuODc3NTYgNi41NjM2NyA2Ljk1ODU1IDYuNjY1NDYgNy4wNjA2M0M2Ljc2NzI2IDcuMTYyNyA2Ljg0NzkyIDcuMjgzODYgNi45MDI4MSA3LjQxNzE1QzYuOTU3NzEgNy41NTA0NSA2Ljk4NTc3IDcuNjkzMjcgNi45ODUzOCA3LjgzNzQzWiIgZmlsbD0iIzRFQ0FGRiIvPjwvZz48L3N2Zz4="},31656:function(e){let t;var r=Object.defineProperty,M=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,s=(e,t,s,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let j of o(t))!n.call(e,j)&&j!==s&&r(e,j,{get:()=>t[j],enumerable:!(i=M(t,j))||i.enumerable});return e};e.exports=(t={},s(r({},"__esModule",{value:!0}),t))},30242:function(e){let t;var r=Object.defineProperty,M=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,s=(e,t,s,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let j of o(t))!n.call(e,j)&&j!==s&&r(e,j,{get:()=>t[j],enumerable:!(i=M(t,j))||i.enumerable});return e},i={};((e,t)=>{for(var M in t)r(e,M,{get:t[M],enumerable:!0})})(i,{PromiseStub:()=>N,applySettled:()=>D,isPromiseLike:()=>j,traversePromises:()=>a,withResolvers:()=>g});e.exports=(t=i,s(r({},"__esModule",{value:!0}),t));let j=e=>null!==e&&"object"==typeof e&&"function"==typeof e.then,c=new WeakMap,u=new WeakMap;class N{static create(){let e=new N;return e.promise=new Promise((t,r)=>{e.resolve=t,e.reject=r}),c.set(e.promise,e.resolve),u.set(e.promise,e.reject),e}static get(e){let t=c.get(e),r=u.get(e);if(!t||!r)throw Error("Invalid promise");let M=new N;return M.promise=e,M.resolve=t,M.reject=r,M}then(e,t){return this.promise.then(e,t)}catch(e){return this.promise.catch(e)}constructor(){}}let a=(e,t=[])=>{let r=new Set,M=new WeakSet,o=(e,t)=>{if(null!==e){if("object"==typeof e){if(M.has(e))return;M.add(e)}if(j(e))r.add([e,t]);else if("object"==typeof e)for(let[r,M]of Object.entries(e))o(M,[...t,r])}};return o(e,t),Array.from(r.values())},D=e=>{let t={};return e.then(e=>{t.resolved=e}),"catch"in e&&"function"==typeof e.catch&&e.catch(e=>{t.rejected=e}),new Promise(async(e,r)=>{await Promise.resolve(),"rejected"in t?r(t.rejected):"resolved"in t&&e(t.resolved)})},g=()=>{let e={};return e.promise=new Promise((t,r)=>{e.resolve=t,e.reject=r}),e}},64735:function(e){let t;var r=Object.defineProperty,M=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,s=(e,t,s,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let j of o(t))!n.call(e,j)&&j!==s&&r(e,j,{get:()=>t[j],enumerable:!(i=M(t,j))||i.enumerable});return e},i={};((e,t)=>{for(var M in t)r(e,M,{get:t[M],enumerable:!0})})(i,{RUNTIME_GLOBALS:()=>j,getRuntimeGlobals:()=>c});e.exports=(t=i,s(r({},"__esModule",{value:!0}),t));let j="__modern_js_global",c=()=>{let e=window[j];if(!e||"object"!=typeof e)throw TypeError("RuntimeGlobals is not initialized");return e}},10487:function(e,t,r){let M;var o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,j=(e,t,r,M)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let j of s(t))!i.call(e,j)&&j!==r&&o(e,j,{get:()=>t[j],enumerable:!(M=n(t,j))||M.enumerable});return e},c=(e,t,r)=>(j(e,t,"default"),r&&j(r,t,"default")),u={};e.exports=(M=u,j(o({},"__esModule",{value:!0}),M)),c(u,r(72215),e.exports),c(u,r(31656),e.exports),c(u,r(85076),e.exports),c(u,r(74966),e.exports),c(u,r(60769),e.exports),c(u,r(64735),e.exports),c(u,r(30242),e.exports),c(u,r(56165),e.exports),c(u,r(40859),e.exports),c(u,r(46974),e.exports)},46974:function(e,t,r){let M;var o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,j=(e,t,r,M)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let j of s(t))!i.call(e,j)&&j!==r&&o(e,j,{get:()=>t[j],enumerable:!(M=n(t,j))||M.enumerable});return e},c={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(c,{replacer:()=>N,reviver:()=>a});e.exports=(M=c,j(o({},"__esModule",{value:!0}),M));var u=r(30242);function N(){let e=new WeakSet;return(t,r)=>{if("object"==typeof r&&null!==r){if(e.has(r))return;e.add(r)}return(0,u.isPromiseLike)(r)?{__type__:"promise"}:r}}function a(){let e=new WeakSet;return(t,r)=>{if("object"==typeof r&&null!==r){if(e.has(r))return;e.add(r)}return r&&"object"==typeof r?"promise"===r.__type__&&1===Object.keys(r).length?u.PromiseStub.create().promise:r:r}}},40859:function(e){let t;var r=Object.defineProperty,M=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,s=(e,t,s,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let j of o(t))!n.call(e,j)&&j!==s&&r(e,j,{get:()=>t[j],enumerable:!(i=M(t,j))||i.enumerable});return e};e.exports=(t={},s(r({},"__esModule",{value:!0}),t))},85076:function(e){let t;var r=Object.defineProperty,M=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,s=(e,t,s,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let j of o(t))!n.call(e,j)&&j!==s&&r(e,j,{get:()=>t[j],enumerable:!(i=M(t,j))||i.enumerable});return e},i={};((e,t)=>{for(var M in t)r(e,M,{get:t[M],enumerable:!0})})(i,{applyShortenAliases:()=>j});function j(e,t){if(!t)return e;let r=e;for(let e of t)r=r.replace(e.replace,e.to);return r}e.exports=(t=i,s(r({},"__esModule",{value:!0}),t))},56165:function(e,t,r){let M;var o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,j=(e,t,r,M)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let j of s(t))!i.call(e,j)&&j!==r&&o(e,j,{get:()=>t[j],enumerable:!(M=n(t,j))||M.enumerable});return e},c={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(c,{applyOperation:()=>a,extractSettledOperations:()=>D,resolvePaths:()=>N});e.exports=(M=c,j(o({},"__esModule",{value:!0}),M));var u=r(30242);let N=(e,t)=>{let r=e;for(let e of t)r=r[e];return r},a=(e,t)=>{let[r,M,o,n]=t,s=M.slice(0,-1),i=M[M.length-1],j=N(e,s);if("delete"===r)delete j[i];else if("set"===r)o instanceof u.PromiseStub?j[i]=o.promise:j[i]=o;else{let e;let t=j[i];if(t instanceof u.PromiseStub)e=t;else try{e=u.PromiseStub.get(t)}catch{e=u.PromiseStub.create()}"resolve"===r?e.resolve(o):e.reject(o)}},D=async e=>{let t=[],r=[];for(let[M,o]of(0,u.traversePromises)(e)){let e=e=>{t.push(["resolve",o,e])},n=e=>{t.push(["reject",o,e])},s=(0,u.applySettled)(M).then(e).catch(n);r.push(s)}return await Promise.all(r),t}},22144:function(e,t,r){r.d(t,{H:function(){return i}});var M=r(90247),o=r(55709),n=r(86834);r(5872);var s=r(381);let i=e=>(0,n.jsx)("svg",(0,o._)((0,M._)({xmlns:"http://www.w3.org/2000/svg",className:s.Z.loading,width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"3",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:(0,n.jsx)("circle",{cx:"12",cy:"12",r:"10",strokeDasharray:"56.548667764616276",strokeDashoffset:"14.137166941154069"})}))},38637:function(e,t,r){r.d(t,{g:function(){return c}});var M=r(90247),o=r(55709),n=r(86834),s=r(99231),i=r(22144),j=r(54086);let c=e=>(0,n.jsx)(s.xu,(0,o._)((0,M._)({className:j.Z.container},e),{children:(0,n.jsx)(i.H,{})}))},80936:function(e,t,r){r.d(t,{g:function(){return M.g}}),r(22144);var M=r(38637)},97137:function(e,t,r){r.d(t,{U:function(){return c}});var M=r(5872);let o="__modern_js_devtools_appearance",n=e=>{let t;return t="light"===e||"dark"===e?e:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},s=[],i=e=>(s.push(e),()=>s.splice(s.indexOf(e),1));window.addEventListener("storage",e=>{e.key===o&&s.forEach(e=>e())});let j=()=>n(localStorage.getItem(o)),c=()=>{let e=(0,M.useSyncExternalStore)(i,j);return[e,e=>{let t="function"==typeof e?e(j()):e;localStorage.setItem(o,t),s.forEach(e=>e())}]}},28651:function(e,t,r){r(47487),r(58739),r(87361),r(57003),r(22066),r(71931),r(67666),r(8733),r(49740),r(36858),r(5922),r(70943),r(53576),r(3403),r(24152),r(47266),r(54525),r(10623),r(54825),r(49539),r(19216),r(27257),r(36928),r(69958),r(20787),r(72138),r(15373),r(48813),r(31232),r(20241),r(5429),r(87589),r(75971),r(54369),r(93747),r(15110),r(463),r(41301),r(31287),r(80730),r(43671),r(5460),r(51466),r(91704),r(12064),r(84364),r(90370),r(72846),r(29184),r(66965),r(38499),r(32287),r(62049),r(90811),r(48996),r(31851),r(10469),r(39523),r(88057),r(29885),r(89217),r(56741),r(65736),r(94815),r(81153),r(59109),r(8229),r(36232),r(18965),r(44726),r(15930),r(77602),r(88927),r(11179),r(21727),r(74049),r(50899),r(36777),r(45445),r(92623),r(75957),r(69792),r(29234),r(58361),r(32779),r(78598),r(81971),r(602),r(70268),r(42479),r(42674),r(55579),r(44118),r(75994),r(57967),r(27832),r(51718),r(52216),r(81961),r(24557),r(49952),r(92777),r(15756),r(42974),r(85423),r(66531),r(55965),r(53330),r(60046),r(33627),r(44841),r(882),r(2617),r(99386),r(13404),r(63782),r(37053),r(20248),r(4862),r(89711),r(24360),r(15352),r(99465),r(78071),r(90002),r(41216),r(9257),r(92324),r(35692),r(1973),r(72706),r(41023),r(41244),r(50077),r(83166),r(43422),r(24068),r(74899),r(83063),r(8711),r(80798),r(69650),r(5161),r(17326),r(4190),r(76957),r(39408),r(77715),r(80680),r(64342),r(43721),r(8689),r(52609),r(87650),r(47857),r(83578),r(89549),r(34160),r(6876),r(72006),r(91875),r(60408),r(14682),r(77190),r(37231),r(69436),r(31379),r(4326),r(28534),r(2911),r(31371),r(66094),r(67855),r(98519),r(49690),r(20980),r(34921),r(85556),r(30415),r(81654),r(93825),r(4447),r(73608),r(9803),r(3520),r(64386),r(2807),r(85605),r(27800),r(20608),r(46433),r(97807),r(8866),r(92223),r(70307),r(22049),r(83632),r(19946),r(92217),r(92351),r(9108),r(84145),r(8737),r(9415),r(71626),r(88445),r(36944),r(28647),r(17133),r(83460),r(24297),r(93282),r(17140),r(46336),r(45594),r(74735),r(33309),r(21215),r(65478),r(88621),r(95694),r(36697),r(98996),r(75541),r(46631),r(29634),r(79973),r(82849),r(88237),r(50463),r(20099),r(86526),r(47790),r(40048),r(18387),r(25804),r(20604),r(72206),r(4239),r(28108),r(45558),r(20930),r(23911),r(70799),r(9745),r(56056),r(84682),r(12374),r(85524),r(5464),r(37875),r(56795),r(85938),r(66438),r(13299),r(39889),r(55134),r(84204),r(33096),r(2349),r(8545),r(83551),r(45571),r(65580),r(75292),r(15836),r(56478),r(26985),r(41485),r(1913),r(51730),r(87826),r(96407),r(64809),r(3791),r(21264),r(74943),r(76335),r(87252),r(42543),r(59100),r(96030),r(27199),r(84687),r(34983),r(793),r(79726),r(44041),r(47348),r(54797),r(7533)},44541:function(){window.__assetPrefix__="/__devtools"}}]);
|