@modern-js/devtools-client 2.60.2 → 2.60.4

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.
Files changed (82) hide show
  1. package/dist/modern.config.json +1 -1
  2. package/dist/public/sw-proxy.js +1 -1
  3. package/dist/routes-manifest.json +104 -104
  4. package/dist/static/css/582.b5b579d4.css +1 -0
  5. package/dist/static/html/client/index.html +3 -3
  6. package/dist/static/html/mount/index.html +3 -3
  7. package/dist/static/js/130.f31fb836.js +1 -0
  8. package/dist/static/js/{630.68e5f6a6.js → 582.1bc2c2d9.js} +8 -8
  9. package/dist/static/js/61.a4e2f62f.js +18 -0
  10. package/dist/static/js/async/{474.a626e358.js → 871.7df12fcc.js} +1 -1
  11. package/dist/static/js/async/client_config/(toolkit).(type)/page.62660286.js +1 -0
  12. package/dist/static/js/async/client_config/layout.ff9cdc97.js +1 -0
  13. package/dist/static/js/async/client_context/builder/page.9312d47c.js +1 -0
  14. package/dist/static/js/async/client_context/framework/page.386084e6.js +1 -0
  15. package/dist/static/js/async/client_context/layout.812ab409.js +1 -0
  16. package/dist/static/js/async/client_doctor/page.f8780366.js +1 -0
  17. package/dist/static/js/async/client_external/$.1a9a63d9.js +1 -0
  18. package/dist/static/js/async/client_external/{layout.8666c196.js → layout.5cafd9de.js} +1 -1
  19. package/dist/static/js/async/client_headers/editor/page.c9ecbb0f.js +1 -0
  20. package/dist/static/js/async/client_headers/layout.aab684eb.js +1 -0
  21. package/dist/static/js/async/client_headers/welcome/page.f2d35aba.js +1 -0
  22. package/dist/static/js/async/client_overview/layout.79a36913.js +1 -0
  23. package/dist/static/js/async/client_overview/page.09f97eca.js +1 -0
  24. package/dist/static/js/async/client_pages/layout.fa803382.js +1 -0
  25. package/dist/static/js/async/client_pages/page.8429a05c.js +1 -0
  26. package/dist/static/js/async/client_react/(tab)/{layout.bda655a6.js → layout.9accfbe2.js} +1 -1
  27. package/dist/static/js/async/client_react/(tab)/page.859f2781.js +1 -0
  28. package/dist/static/js/async/client_react/offscreen/page.c8a3540f.js +1 -0
  29. package/dist/static/js/async/client_storage/preset/(id)/{page.24e80161.js → page.117e5cae.js} +1 -1
  30. package/dist/static/js/async/client_storage/preset/layout.bbb35e6f.js +1 -0
  31. package/dist/static/js/async/client_storage/preset/page.81f8a6b3.js +1 -0
  32. package/dist/static/js/builder-runtime.5e9e2cac.js +1 -0
  33. package/dist/static/js/client.d5e1683e.js +1 -0
  34. package/dist/static/js/components.acaae99d.js +1 -0
  35. package/dist/static/js/lib-polyfill.d06b0129.js +1 -0
  36. package/dist/static/js/lib-react.e876fb8a.js +2 -0
  37. package/dist/static/js/lib-router.a466c75d.js +2 -0
  38. package/dist/static/js/{lib-router.425f945d.js.LICENSE.txt → lib-router.a466c75d.js.LICENSE.txt} +3 -3
  39. package/dist/static/js/mount.2ff1708b.js +1 -0
  40. package/package.json +12 -12
  41. package/dist/static/css/630.3549f4e5.css +0 -1
  42. package/dist/static/js/130.5762af4f.js +0 -1
  43. package/dist/static/js/570.a22d1e50.js +0 -18
  44. package/dist/static/js/async/client_config/(toolkit).(type)/page.332bd6cc.js +0 -1
  45. package/dist/static/js/async/client_config/layout.ff0d7f93.js +0 -1
  46. package/dist/static/js/async/client_context/builder/page.368e566d.js +0 -1
  47. package/dist/static/js/async/client_context/framework/page.a389a5ba.js +0 -1
  48. package/dist/static/js/async/client_context/layout.1f9a3763.js +0 -1
  49. package/dist/static/js/async/client_doctor/page.328f3234.js +0 -1
  50. package/dist/static/js/async/client_external/$.3c52b51d.js +0 -1
  51. package/dist/static/js/async/client_headers/editor/page.c3eb4d5c.js +0 -1
  52. package/dist/static/js/async/client_headers/layout.63499b33.js +0 -1
  53. package/dist/static/js/async/client_headers/welcome/page.14649c37.js +0 -1
  54. package/dist/static/js/async/client_overview/layout.a5bce35c.js +0 -1
  55. package/dist/static/js/async/client_overview/page.b3bc47e3.js +0 -1
  56. package/dist/static/js/async/client_pages/layout.96109ee8.js +0 -1
  57. package/dist/static/js/async/client_pages/page.aa8382c4.js +0 -1
  58. package/dist/static/js/async/client_react/(tab)/page.4e77b9c1.js +0 -1
  59. package/dist/static/js/async/client_react/offscreen/page.5388b2b4.js +0 -1
  60. package/dist/static/js/async/client_storage/preset/layout.71aad3de.js +0 -1
  61. package/dist/static/js/async/client_storage/preset/page.e8fa5af1.js +0 -1
  62. package/dist/static/js/builder-runtime.e67f3999.js +0 -1
  63. package/dist/static/js/client.4e501fd6.js +0 -1
  64. package/dist/static/js/components.c3d6c252.js +0 -1
  65. package/dist/static/js/lib-polyfill.2e68501e.js +0 -1
  66. package/dist/static/js/lib-react.0049ff32.js +0 -2
  67. package/dist/static/js/lib-router.425f945d.js +0 -2
  68. package/dist/static/js/mount.31dc39ae.js +0 -1
  69. /package/dist/static/css/{570.0f19a139.css → 61.a6a66003.css} +0 -0
  70. /package/dist/static/css/async/client_doctor/{page.fce48c82.css → page.f42cb4d8.css} +0 -0
  71. /package/dist/static/css/async/client_headers/editor/{page.7c30e466.css → page.b85c86db.css} +0 -0
  72. /package/dist/static/css/async/client_overview/{page.6b0abf25.css → page.33fb7c94.css} +0 -0
  73. /package/dist/static/css/async/client_pages/{page.a5e3078e.css → page.bf43ce73.css} +0 -0
  74. /package/dist/static/css/async/client_storage/preset/(id)/{page.78d58983.css → page.949b87d3.css} +0 -0
  75. /package/dist/static/css/async/client_storage/preset/{layout.ddd438c7.css → layout.9b934ad0.css} +0 -0
  76. /package/dist/static/css/async/client_storage/preset/{page.ddd438c7.css → page.9b934ad0.css} +0 -0
  77. /package/dist/static/css/{client.f03d22d2.css → client.0456f001.css} +0 -0
  78. /package/dist/static/css/{components.201af7e9.css → components.b72298e6.css} +0 -0
  79. /package/dist/static/css/{mount.c25bc0c3.css → mount.c2d5c826.css} +0 -0
  80. /package/dist/static/js/{630.68e5f6a6.js.LICENSE.txt → 582.1bc2c2d9.js.LICENSE.txt} +0 -0
  81. /package/dist/static/js/{570.a22d1e50.js.LICENSE.txt → 61.a4e2f62f.js.LICENSE.txt} +0 -0
  82. /package/dist/static/js/{lib-react.0049ff32.js.LICENSE.txt → lib-react.e876fb8a.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
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(()=>{})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["400"],{96747:function(e,t,o){var n=o("86834"),l=o("87864"),r=o("20790"),i=o("64542"),s=o("10487"),a=o("88739"),c=o("65872"),d=o("52493"),u=o.n(d),m=o("9880"),v=o.n(m),h=o("57662"),p=o("81733");let y=s.MessagePortChannel.wait(window,"channel:connect:client"),f=new i.S,g=(0,h.createBridge)(window,f),w=y.then(e=>{let t=(0,c.Hu)();return{remote:(0,a.Fu)({async activateReactDevtools(){(0,h.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=u().omit(n,Object.keys(r));return{client:r,server:i}},localStorage:async e=>(u().each(e,(e,t)=>{window.localStorage.setItem(t,e)}),(0,l._)({},window.localStorage)),sessionStorage:async e=>(u().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,p.sj)({loaded:!1}),b=v()();w.then(e=>{let{remote:t,hooks:o}=e;f.bindRemote(t,"sendReactDevtoolsData"),o.hook("onFinishRender",async()=>{k.loaded=!0,b.resolve()})});var _=o("60182"),j=o("5872"),x=o("71161");let C=(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},E=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 C(t.key,o)}),[l]=o.splice(n,1);return[t,l,o[0],o[1]]},Z=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}},N=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,j.useState)(),i=()=>{if(!l)return;l.moveable=!1;let{el:e}=l,[t]=E(Z(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=E({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,v,...h]=u,{style:p}=l.el;p.transition="",p[m.key]=m.value,p[v.key]=v.value,p[h[0].key]="auto",p[h[1].key]="auto"};(0,x.Z)("blur",i),(0,x.Z)("mouseup",i),(0,x.Z)("touchend",i),(0,x.Z)("mousemove",s),(0,x.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()}}}},R=(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)});var S=o("97137"),D=o("11989"),P=o("29214"),T=o("56573"),H=o("36339");let Y=e=>{var t;let o=null===(t=e.keepAlive)||void 0===t||t,{when:l}=e,r=(0,j.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};var B=o("43730"),I=o("58833");let L=e=>{var t;let[o,l]=(0,B.Z)(()=>Promise.resolve(e.onClick()),[]);return(0,n.jsx)("button",{className:I.Z.container,onClick:l,"data-type":null!==(t=e.type)&&void 0!==t?t:"default",disabled:o.loading,children:e.children})};var O=o("20612"),X=o("81799"),U=o("79197"),F=o("9768"),W=o("87203");let K=e=>{var{src:t,onClose:o}=e,i=(0,X._)(e,["src","onClose"]);let{loaded:s}=(0,U.R)(k);return(0,n.jsxs)(D.xu,(0,r._)((0,l._)({className:W.Z.container},i),{children:[(0,n.jsx)("iframe",{className:W.Z.frame,src:t}),(0,n.jsx)(P.cu3,{className:W.Z.closeButton,onClick:o}),(0,n.jsx)("div",{className:W.Z.backdrop,style:{display:s?"none":void 0},children:(0,n.jsx)(F.g,{})})]}))},M=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},A=e=>{let t=M(),[o,i]=(0,T.Z)(!!t),[s,a]=(0,j.useState)(!1),c=N({clamp:!0}),[d]=(0,S.U)();(0,x.Z)("keydown",e=>{e.shiftKey&&e.altKey&&"KeyD"===e.code&&i()}),(0,j.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 R(w,1e4)).remote.pullUp("/react/components#inspecting")}catch(e){console.error(e),document.documentElement.style.removeProperty("cursor")}};return(0,H.Z)(async()=>{if(!!t)(await R(w,1e4)).remote.pullUp(t)},[]),(0,n.jsxs)(D.Q2,{appearance:d,className:d,hasBackground:!1,style:{height:0,width:0,minHeight:0,minWidth:0},children:[(0,n.jsx)(Y,{when:o,keepAlive:!0,load:s,children:(0,n.jsx)("div",{className:O.Z.container,children:(0,n.jsx)(K,{src:e.src,onClose:()=>i(!1),style:{pointerEvents:c.isDragging?"none":"auto"}})})}),(0,n.jsxs)(D.kC,(0,r._)((0,l._)({className:O.Z.fab},c.props),{align:"center",children:[(0,n.jsx)(L,{type:"primary",onClick:i,children:(0,n.jsx)("img",{className:O.Z.logo,src:e.logo})}),(0,n.jsx)(L,{onClick:u,children:(0,n.jsx)(P.aur,{})})]}))]})},q=()=>{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)(A,{logo:e.context.def.assets.logo,src:l.href})},J="container-bYVevn",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)(q,{}))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Q):Q()}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["126","130","567","570","58","991"],function(){return t("5256"),t("95561"),t("8737"),t("28651"),t("96747")}),e.O()}]);