@modern-js/devtools-client 2.49.4 → 2.51.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/html/client/index.html +3 -3
- package/dist/html/mount/index.html +3 -3
- package/dist/modern.config.json +9 -5
- package/dist/nestedRoutes.json +1 -1
- package/dist/public/sw-proxy.js +1 -1
- package/dist/routes-manifest.json +150 -97
- package/dist/static/css/277.aed06014.css +1 -0
- package/dist/static/css/837.bc7cb3f3.css +1 -0
- package/dist/static/css/async/client_doctor/page.6c2b0f5d.css +1 -0
- package/dist/static/css/async/client_headers/editor/page.139b8749.css +1 -0
- package/dist/static/css/async/client_overview/page.2c2e362e.css +1 -0
- package/dist/static/css/async/client_pages/page.cc6d30f6.css +1 -0
- package/dist/static/css/async/client_storage/preset/(id)/page.2a6c9f92.css +1 -0
- package/dist/static/css/async/client_storage/preset/layout.a5d43a24.css +1 -0
- package/dist/static/css/async/client_storage/preset/page.a5d43a24.css +1 -0
- package/dist/static/css/client.3d040deb.css +1 -0
- package/dist/static/css/components.486af3c8.css +1 -0
- package/dist/static/css/mount.e47f2557.css +1 -0
- package/dist/static/js/277.03e3158c.js +18 -0
- package/dist/static/js/8.cb783a1c.js +1 -0
- package/dist/static/js/837.297b9934.js +2 -0
- package/dist/static/js/{991.6c981fe2.js → 991.ef10c05e.js} +2 -2
- package/dist/static/js/async/769.13d15f09.js +1 -0
- package/dist/static/js/async/851.91d1cd7d.js +107 -0
- package/dist/static/js/async/883.c1ccd749.js +1 -0
- package/dist/static/js/async/client_config/(toolkit).(type)/page.71c441e6.js +1 -0
- package/dist/static/js/async/client_config/layout.b91eefc0.js +1 -0
- package/dist/static/js/async/client_config/page.d9f1f370.js +1 -0
- package/dist/static/js/async/client_context/builder/page.4d6340de.js +1 -0
- package/dist/static/js/async/client_context/framework/page.2bf86c9d.js +1 -0
- package/dist/static/js/async/client_context/layout.b84a8093.js +1 -0
- package/dist/static/js/async/client_context/page.e1e3546b.js +1 -0
- package/dist/static/js/async/client_doctor/page.ba636c8d.js +1 -0
- package/dist/static/js/async/client_external/$.ed413f7e.js +1 -0
- package/dist/static/js/async/client_external/layout.3685e06a.js +1 -0
- package/dist/static/js/async/client_headers/editor/page.85f3e8ba.js +1 -0
- package/dist/static/js/async/client_headers/layout.5c58f72e.js +1 -0
- package/dist/static/js/async/client_headers/page.f9fa9e86.js +1 -0
- package/dist/static/js/async/client_headers/welcome/page.f5c165b4.js +1 -0
- package/dist/static/js/async/client_overview/layout.b2e7346f.js +1 -0
- package/dist/static/js/async/client_overview/page.3ef206a7.js +1 -0
- package/dist/static/js/async/client_page.1be71366.js +1 -0
- package/dist/static/js/async/client_pages/layout.8b491ed7.js +1 -0
- package/dist/static/js/async/client_pages/page.f7869aa9.js +1 -0
- package/dist/static/js/async/client_react/(tab)/layout.3e25c193.js +1 -0
- package/dist/static/js/async/client_react/(tab)/page.cefa4afb.js +1 -0
- package/dist/static/js/async/client_react/offscreen/page.7cbc65b5.js +1 -0
- package/dist/static/js/async/client_react/page.61b5dd34.js +1 -0
- package/dist/static/js/async/client_storage/preset/(id)/page.902af094.js +1 -0
- package/dist/static/js/async/client_storage/preset/layout.04431189.js +1 -0
- package/dist/static/js/async/client_storage/preset/page.4965240d.js +1 -0
- package/dist/static/js/builder-runtime.43f1585d.js +1 -0
- package/dist/static/js/client.b6374f7d.js +1 -0
- package/dist/static/js/components.1efc6219.js +1 -0
- package/dist/static/js/lib-lodash.6697a659.js +1 -0
- package/dist/static/js/lib-router.0a6f9fdc.js +2 -0
- package/dist/static/js/mount.ae4a297b.js +1 -0
- package/package.json +19 -15
- package/dist/static/css/522.a0ab2810.css +0 -1
- package/dist/static/css/async/client_doctor/page.872cf311.css +0 -1
- package/dist/static/css/async/client_headers/editor/page.2899fd79.css +0 -1
- package/dist/static/css/async/client_headers/layout.069f6111.css +0 -1
- package/dist/static/css/async/client_overview/page.ad0988c7.css +0 -1
- package/dist/static/css/async/client_pages/layout.b94b702a.css +0 -1
- package/dist/static/css/async/client_pages/page.5be052b8.css +0 -1
- package/dist/static/css/client.9f948c8a.css +0 -1
- package/dist/static/css/components.139864ee.css +0 -1
- package/dist/static/css/mount.ea06a1a5.css +0 -1
- package/dist/static/js/522.1ff9d088.js +0 -6
- package/dist/static/js/637.25b041e0.js +0 -1
- package/dist/static/js/696.53c3f39d.js +0 -2
- package/dist/static/js/async/459.d7124972.js +0 -1
- package/dist/static/js/async/769.76593243.js +0 -1
- package/dist/static/js/async/851.115c9745.js +0 -107
- package/dist/static/js/async/client_config/(toolkit).(type)/page.238b313f.js +0 -1
- package/dist/static/js/async/client_config/layout.1d4aae34.js +0 -1
- package/dist/static/js/async/client_config/page.47ec49b7.js +0 -1
- package/dist/static/js/async/client_context/builder/page.504913ed.js +0 -1
- package/dist/static/js/async/client_context/framework/page.6dd8eadf.js +0 -1
- package/dist/static/js/async/client_context/layout.3a7367e5.js +0 -1
- package/dist/static/js/async/client_context/page.1a1007e1.js +0 -1
- package/dist/static/js/async/client_doctor/page.c9e1ad5c.js +0 -1
- package/dist/static/js/async/client_external/$.3c9cebee.js +0 -1
- package/dist/static/js/async/client_external/layout.620cf2f6.js +0 -1
- package/dist/static/js/async/client_headers/editor/page.4e542498.js +0 -1
- package/dist/static/js/async/client_headers/layout.d72595e7.js +0 -1
- package/dist/static/js/async/client_headers/page.210a3503.js +0 -1
- package/dist/static/js/async/client_headers/welcome/page.95a5a242.js +0 -1
- package/dist/static/js/async/client_overview/page.3f33e9c8.js +0 -1
- package/dist/static/js/async/client_page.3e19f015.js +0 -1
- package/dist/static/js/async/client_pages/layout.e1d5b4c4.js +0 -1
- package/dist/static/js/async/client_pages/page.23a4b010.js +0 -1
- package/dist/static/js/async/client_react/(tab)/layout.7d7e5b62.js +0 -1
- package/dist/static/js/async/client_react/(tab)/page.f24fc2b9.js +0 -1
- package/dist/static/js/async/client_react/offscreen/page.746b81bc.js +0 -1
- package/dist/static/js/async/client_react/page.57cc0bd0.js +0 -1
- package/dist/static/js/builder-runtime.fffee636.js +0 -1
- package/dist/static/js/client.0308fac0.js +0 -1
- package/dist/static/js/components.abcf8160.js +0 -1
- package/dist/static/js/lib-lodash.4267ab6e.js +0 -2
- package/dist/static/js/lib-lodash.4267ab6e.js.LICENSE.txt +0 -8
- package/dist/static/js/lib-router.6ca49914.js +0 -2
- package/dist/static/js/mount.2080c337.js +0 -1
- /package/dist/static/js/{522.1ff9d088.js.LICENSE.txt → 277.03e3158c.js.LICENSE.txt} +0 -0
- /package/dist/static/js/{696.53c3f39d.js.LICENSE.txt → 837.297b9934.js.LICENSE.txt} +0 -0
- /package/dist/static/js/{991.6c981fe2.js.LICENSE.txt → 991.ef10c05e.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/{851.115c9745.js.LICENSE.txt → 851.91d1cd7d.js.LICENSE.txt} +0 -0
- /package/dist/static/js/{lib-router.6ca49914.js.LICENSE.txt → lib-router.0a6f9fdc.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see lib-router.6ca49914.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["118"],{77393:function(e,t,n){"use strict";var r,a,o,i;function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.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 r},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=r||(r={})).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:n,search:r,hash:a}=e.location;return p("",{pathname:n,search:r,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:n="/",search:r="",hash:a=""}=v(e.location.hash.substr(1));return!n.startsWith("/")&&!n.startsWith(".")&&(n="/"+n),p("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:m(t))},function(e,t){h("/"===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 h(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function f(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,n,r){return void 0===n&&(n=null),l({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?v(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function m(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function v(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function y(e,t,n,a){void 0===a&&(a={});let{window:o=document.defaultView,v5Compat:i=!1}=a,u=o.history,c=r.Pop,h=null,v=y();function y(){return(u.state||{idx:null}).idx}function g(){c=r.Pop;let e=y(),t=null==e?null:e-v;v=e,h&&h({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,n="string"==typeof e?e:m(e);return d(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}let b={get action(){return c},get location(){return e(o,u)},listen(e){if(h)throw Error("A history only accepts one active listener");return o.addEventListener(s,g),h=e,()=>{o.removeEventListener(s,g),h=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=r.Push;let a=p(b.location,e,t);n&&n(a,e);let l=f(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&&h&&h({action:c,location:b.location,delta:1})},replace:function(e,t){c=r.Replace;let a=p(b.location,e,t);n&&n(a,e);let o=f(a,v=y()),l=b.createHref(a);u.replaceState(o,"",l),i&&h&&h({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,n,r){return void 0===n&&(n=[]),void 0===r&&(r={}),e.map((e,a)=>{let o=[...n,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(!r[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let n=l({},e,t(e),{id:i});return r[i]=n,n}{let n=l({},e,t(e),{id:i,children:void 0});return r[i]=n,e.children&&(n.children=w(e.children,t,o,r)),n}})}function b(e,t,n){void 0===n&&(n="/");let r=D(("string"==typeof t?v(t):t).pathname||"/",n);if(null==r)return null;let a=function e(t,n,r,a){void 0===n&&(n=[]),void 0===r&&(r=[]),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=r.concat(l);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,n,u,s)),(null!=t.path||t.index)&&n.push({path:s,score:function(e,t){let n=e.split("/"),r=n.length;return n.some(S)&&(r+=-2),t&&(r+=2),n.filter(e=>!S(e)).reduce((e,t)=>e+(x.test(t)?3:""===t?1:10),r)}(s,t.index),routesMeta:u})};return t.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of function e(t){let n=t.split("/");if(0===n.length)return[];let[r,...a]=n,o=r.endsWith("?"),i=r.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,n);else o(e,t)}),n}(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,n)=>e===t[n])?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:n}=e,r={},a="/",o=[];for(let e=0;e<n.length;++e){let i=n[e],l=e===n.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(r,u.params);let c=i.route;o.push({params:r,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 h(!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}}(r));return o}function E(e,t){let{route:n,pathname:r,params:a}=e;return{id:n.id,pathname:r,params:a,data:t[n.id],handle:n.handle}}let x=/^:[\w-]+$/,S=e=>"*"===e;function R(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),h("*"===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 r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce((e,t,n)=>{let{paramName:r,isOptional:a}=t;if("*"===r){let e=l[n]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}let s=l[n];return a&&!s?e[r]=void 0:e[r]=function(e,t){try{return decodeURIComponent(e)}catch(n){return h(!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 ("+n)+")."),e}}(s||"",r),e},{}),pathname:o,pathnameBase:i,pattern:e}}function D(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function L(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r))+"]. Please separate it out to the "+("`to."+n)+'` 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 n=C(e);return t?n.map((t,n)=>n===e.length-1?t.pathname:t.pathnameBase):n.map(e=>e.pathnameBase)}function k(e,t,n,r){let a,o;void 0===r&&(r=!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=n;else{let e=t.length-1;if(!r&&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:n,search:r="",hash:a=""}="string"==typeof e?v(e):e;return{pathname:n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}(n,t):t,search:_(r),hash:M(a)}}(a,o),c=s&&"/"!==s&&s.endsWith("/"),h=(i||"."===s)&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||h)&&(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 n=t;"number"==typeof n?n={status:n}:void 0===n.status&&(n.status=302);let r=new Headers(n.headers);return r.set("Location",e),new Response(null,l({},n,{headers:r}))};class A{constructor(e,t,n,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}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,n,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,f=!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 n=e.detectErrorBoundary;t=e=>({hasErrorBoundary:n(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:n,route:r}=eu(v);k=n,U={[r.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,n=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]||n&&void 0!==n[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=r.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,eh=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 n=[],r=[];g.v7_fetcherPersist&&M.fetchers.forEach((e,t)=>{"idle"===e.state&&(eD.has(t)?r.push(t):n.push(t))}),[...S].forEach(e=>e(M,{deletedFetchers:r,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync})),g.v7_fetcherPersist&&(n.forEach(e=>M.fetchers.delete(e)),r.forEach(e=>eI(e)))}function eU(t,a,o){var i,s;let u,c;let{flushSync:d}=void 0===o?{}:o,h=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:h?M.actionData:null;let f=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(n&&(v=n,n=void 0),W||j===r.Pop||(j===r.Push?e.history.push(t,t.state):j===r.Replace&&e.history.replace(t,t.state)),j===r.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:f,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=r.Pop,O=!1,A=!1,W=!1,z=!1,N=[],Y=[]}async function eT(t,n){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==n?void 0:n.fromRouteId,null==n?void 0:n.relative),{path:o,submission:i,error:s}=Z(g.v7_normalizeFormMethod,!1,a,n),u=M.location,c=p(M.location,o,n&&n.state);c=l({},c,e.history.encodeLocation(c));let d=n&&null!=n.replace?n.replace:void 0,h=r.Push;!0===d?h=r.Replace:!1===d||null!=i&&ev(i.formMethod)&&i.formAction===M.location.pathname+M.location.search&&(h=r.Replace);let f=n&&"preventScrollReset"in n?!0===n.preventScrollReset:void 0,m=!0===(n&&n.unstable_flushSync),v=eQ({currentLocation:u,nextLocation:c,historyAction:h});if(v){eY(v,{state:"blocked",location:c,proceed(){eY(v,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),eT(t,n)},reset(){let e=new Map(M.blockers);e.set(v,$),ek({blockers:e})}});return}return await e_(h,c,{submission:i,pendingError:s,preventScrollReset:f,replace:n&&n.replace,enableViewTransition:n&&n.unstable_viewTransition,flushSync:m})}async function e_(t,r,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=n||v,c=a&&a.overrideNavigation,d=b(u,r,y),h=!0===(a&&a.flushSync);if(!d){let e=ec(404,{pathname:r.pathname}),{matches:t,route:n}=eu(u);eZ(),eU(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:h});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,r)&&!(a&&a.submission&&ev(a.submission.formMethod))){eU(r,{matches:d},{flushSync:h});return}s=new AbortController;let f=er(e.history,r,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(f,r,a.submission,d,{replace:a.replace,flushSync:h});if(e.shortCircuited)return;o=e.pendingActionData,i=e.pendingActionError,c=ex(r,a.submission),h=!1,f=new Request(f.url,{signal:f.signal})}let{shortCircuited:p,loaderData:m,errors:g}=await ej(f,r,d,c,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,h,o,i);!p&&(s=null,eU(r,l({matches:d},o?{actionData:o}:{},{loaderData:m,errors:g})))}async function eM(e,n,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}}(n,o)},{flushSync:!0===l.flushSync});let u=eb(i,n);if(u.route.action||u.route.lazy){if(s=await en("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:n.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=r.Push),{pendingActionData:{},pendingActionError:{[e.route.id]:s.error}}}if(ef(s))throw ec(400,{type:"defer-action"});return{pendingActionData:{[u.route.id]:s.data}}}async function ej(t,r,a,o,i,u,c,d,h,f,p){let m=o||ex(r,i),w=i||u||eE(m),b=n||v,[E,x]=K(e.history,M,a,w,r,g.v7_partialHydration&&!0===d,z,N,Y,eD,eh,eo,b,y,f,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(r,l({matches:a,loaderData:{},errors:p||null},f?{actionData:f}:{},e?{fetchers:new Map(M.fetchers)}:{}),{flushSync:h}),{shortCircuited:!0}}if(!W&&(!g.v7_partialHydration||!d)){x.forEach(e=>{let t=M.fetchers.get(e.key),n=eS(void 0,t?t.data:void 0);M.fetchers.set(e.key,n)});let e=f||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:h})}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(n=>{(n||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(r,a,o,i,l,u,c){if(eW(),eh.delete(r),!i.route.action&&!i.route.lazy){let e=ec(405,{method:c.formMethod,pathname:o,routeId:a});eN(r,a,e,{flushSync:u});return}let h=M.fetchers.get(r);ez(r,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,h),{flushSync:u});let f=new AbortController,p=er(e.history,o,f.signal,c);G.set(r,f);let w=ee,E=await en("action",p,i,l,m,t,y,g.v7_relativeSplatPath);if(p.signal.aborted){G.get(r)===f&&G.delete(r);return}if(g.v7_fetcherPersist&&eD.has(r)){if(em(E)||ep(E)){ez(r,eR(void 0));return}}else{if(em(E)){if(G.delete(r),!(et>w))return eo.add(r),ez(r,eS(c)),eF(M,E,{fetcherSubmission:c});ez(r,eR(void 0));return}if(ep(E)){eN(r,a,E.error);return}}if(ef(E))throw ec(400,{type:"defer-action"});let x=M.navigation.location||M.location,S=er(e.history,x,f.signal),R=n||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(r,L);let C=eS(c,E.data);M.fetchers.set(r,C);let[P,k]=K(e.history,M,D,c,x,!1,z,N,Y,eD,eh,eo,R,y,{[i.route.id]:E.data},void 0);k.filter(e=>e.key!==r).forEach(e=>{let t=e.key,n=M.fetchers.get(t),r=eS(void 0,n?n.data:void 0);M.fetchers.set(t,r),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));f.signal.addEventListener("abort",U);let{results:T,loaderResults:_,fetcherResults:O}=await eB(M.matches,D,P,k,S);if(f.signal.aborted)return;f.signal.removeEventListener("abort",U),ea.delete(r),G.delete(r),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(r)){let e=eR(E.data);M.fetchers.set(r,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(n,r,a,o,i,l,s){let u=M.fetchers.get(n);ez(n,eS(s,u?u.data:void 0),{flushSync:l});let c=new AbortController,h=er(e.history,a,c.signal);G.set(n,c);let f=ee,p=await en("loader",h,o,i,m,t,y,g.v7_relativeSplatPath);if(ef(p)&&(p=await eg(p,h.signal,!0)||p),G.get(n)===c&&G.delete(n),!h.signal.aborted){if(eD.has(n)){ez(n,eR(void 0));return}if(em(p)){if(et>f){ez(n,eR(void 0));return}eo.add(n),await eF(M,p);return}if(ep(p)){eN(n,r,p.error);return}d(!ef(p),"Unhandled fetcher deferred data"),ez(n,eR(p.data))}}async function eF(t,n,a){let{submission:o,fetcherSubmission:i,replace:h}=void 0===a?{}:a;n.revalidate&&(z=!0);let f=p(t.location,n.location,{_isRedirect:!0});if(d(f,"Expected a location on the redirect navigation"),c){let t=!1;if(n.reloadDocument)t=!0;else if(q.test(n.location)){let r=e.history.createURL(n.location);t=r.origin!==u.location.origin||null==D(r.pathname,y)}if(t){h?u.location.replace(n.location):u.location.assign(n.location);return}}s=null;let m=!0===h?r.Replace:r.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(n.status)&&b&&ev(b.formMethod))await e_(m,f,{submission:l({},b,{formAction:n.location}),preventScrollReset:O});else{let e=ex(f,o);await e_(m,f,{overrideNavigation:e,fetcherSubmission:i,preventScrollReset:O})}}async function eB(n,r,o,i,l){let s=await Promise.all([...o.map(e=>en("loader",l,e,r,m,t,y,g.v7_relativeSplatPath)),...i.map(n=>n.matches&&n.match&&n.controller?en("loader",er(e.history,n.path,n.controller.signal),n.match,n.matches,m,t,y,g.v7_relativeSplatPath):{type:a.error,error:ec(404,{pathname:n.path})})]),u=s.slice(0,o.length),c=s.slice(o.length);return await Promise.all([ey(n,o,u,u.map(()=>l.signal),!1,M.loaderData),ey(n,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()),eh.forEach((e,t)=>{G.has(t)&&(Y.push(t),eJ(t))})}function ez(e,t,n){void 0===n&&(n={}),M.fetchers.set(e,t),ek({fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function eN(e,t,n,r){void 0===r&&(r={});let a=es(M.matches,t);eI(e),ek({errors:{[a.route.id]:n},fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.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),eh.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 n of eo){let r=M.fetchers.get(n);d(r,"Expected fetcher: "+n),"loading"===r.state&&(eo.delete(n),e.push(n),t=!0)}return e$(e),t}function eV(e){let t=[];for(let[n,r]of ea)if(r<e){let e=M.fetchers.get(n);d(e,"Expected fetcher: "+n),"loading"===e.state&&(eJ(n),ea.delete(n),t.push(n))}return e$(t),t.length>0}function eX(e){M.blockers.delete(e),eC.delete(e)}function eY(e,t){let n=M.blockers.get(e)||$;d("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state);let r=new Map(M.blockers);r.set(e,t),ek({blockers:r})}function eQ(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(0===eC.size)return;eC.size>1&&h(!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)&&i({currentLocation:t,nextLocation:n,historyAction:r}))return o}function eZ(e){let t=[];return eL.forEach((n,r)=>{(!e||e(r))&&(n.cancel(),t.push(r),eL.delete(r))}),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 n=R[eK(e,t)];if("number"==typeof n)return n}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:n,location:r,delta:a}=t;if(eP){eP=!1;return}h(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:r,historyAction:n});if(o&&null!=a){eP=!0,e.history.go(-1*a),eY(o,{state:"blocked",location:r,proceed(){eY(o,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),e.history.go(a)},reset(){let e=new Map(M.blockers);e.set(o,$),ek({blockers:e})}});return}return e_(n,r)}),c){(function(e,t){try{let n=e.sessionStorage.getItem(X);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}})(u,F);let e=()=>(function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(X,JSON.stringify(n))}catch(e){h(!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_(r.Pop,M.location,{initialHydration:!0}),i},subscribe:function(e){return S.add(e),()=>S.delete(e)},enableScrollRestoration:function(e,t,n){if(R=e,C=t,L=n||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,r,a){if(f)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=n||v,l=Q(M.location,M.matches,y,g.v7_prependBasename,r,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 h=eb(s,u);if(O=!0===(a&&a.preventScrollReset),c&&ev(c.formMethod)){eO(e,t,u,h,s,o,c);return}eh.set(e,{routeId:t,path:u}),eA(e,t,u,h,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 n=M.blockers.get(e)||$;return eC.get(e)!==t&&eC.set(e,t),n},deleteBlocker:eX,_internalFetchControllers:G,_internalActiveDeferreds:eL,_internalSetRoutes:function(e){n=w(e,t,void 0,m={})}}}Symbol("deferred");function Q(e,t,n,r,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,n)||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"),r&&"/"!==n&&(c.pathname="/"===c.pathname?n:U([n,c.pathname])),m(c)}function Z(e,t,n,r){var a;let o,i;if(!r||!(null!=(a=r)&&("formData"in a&&null!=a.formData||"body"in a&&void 0!==a.body)))return{path:n};if(r.formMethod&&!function(e){return z.has(e.toLowerCase())}(r.formMethod))return{path:n,error:ec(405,{method:r.formMethod})};let l=()=>({path:n,error:ec(400,{type:"invalid-body"})}),s=r.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),c=eh(n);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!ev(u))return l();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((e,t)=>{let[n,r]=t;return""+e+n+"="+r+"\n"},""):String(r.body);return{path:n,submission:{formMethod:u,formAction:c,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!ev(u))return l();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:u,formAction:c,formEncType:r.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"),r.formData)o=ea(r.formData),i=r.formData;else if(r.body instanceof FormData)o=ea(r.body),i=r.body;else if(r.body instanceof URLSearchParams)i=eo(o=r.body);else if(null==r.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(r.body),i=eo(o)}catch(e){return l()}let h={formMethod:u,formAction:c,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(ev(h.formMethod))return{path:n,submission:h};let f=v(n);return t&&f.search&&ew(f.search)&&o.append("index",""),f.search="?"+o,{path:m(f),submission:h}}function K(e,t,n,r,a,o,i,s,u,c,d,h,f,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 n=e;if(t){let r=e.findIndex(e=>e.route.id===t);r>=0&&(n=e.slice(0,r))}return n})(n,v?Object.keys(v)[0]:void 0).filter((e,n)=>{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,n){let r=!t||n.route.id!==t.route.id,a=void 0===e[n.route.id];return r||a}(t.loaderData,t.matches[n],e)||s.some(t=>t===e.route.id))return!0;let u=t.matches[n];return ee(e,l({currentUrl:g,currentParams:u.params,nextUrl:w,nextParams:e.params},r,{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||!n.some(t=>t.route.id===e.routeId)||c.has(a))return;let s=b(f,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=!h.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:n[n.length-1].params},r,{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 n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function ee(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}async function et(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let a=n[e.id];d(a,"No route found in manifest");let o={};for(let e in r){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;h(!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]=r[e])}Object.assign(a,o),Object.assign(a,l({},t(a),{lazy:void 0}))}async function en(e,t,n,r,o,i,l,s,u){let c,h,f;void 0===u&&(u={});let p=e=>{let r;let a=new Promise((e,t)=>r=t);return f=()=>r(),t.signal.addEventListener("abort",f),Promise.race([e({request:t,params:n.params,context:u.requestContext}),a])};try{let r=n.route[e];if(n.route.lazy){if(r){let e;let t=await Promise.all([p(r).catch(t=>{e=t}),et(n.route,i,o)]);if(e)throw e;h=t[0]}else if(await et(n.route,i,o),r=n.route[e])h=await p(r);else{if("action"!==e)return{type:a.data,data:void 0};let r=new URL(t.url),o=r.pathname+r.search;throw ec(405,{method:t.method,pathname:o,routeId:n.route.id})}}else if(r)h=await p(r);else{let e=new URL(t.url),n=e.pathname+e.search;throw ec(404,{pathname:n})}d(void 0!==h,"You defined "+("action"===e?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e)+"` function. Please return a value or `null`.")}catch(e){c=a.error,h=e}finally{f&&t.signal.removeEventListener("abort",f)}if(function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}(h)){let e,o=h.status;if(N.has(o)){let e=h.headers.get("Location");if(d(e,"Redirects returned/thrown from loaders/actions must have a Location header"),q.test(e)){if(!u.isStaticRequest){let n=new URL(t.url),r=new URL(e.startsWith("//")?n.protocol+e:e),a=null!=D(r.pathname,l);r.origin===n.origin&&a&&(e=r.pathname+r.search+r.hash)}}else e=Q(new URL(t.url),r.slice(0,r.indexOf(n)+1),l,!0,e,s);if(u.isStaticRequest)throw h.headers.set("Location",e),h;return{type:a.redirect,status:o,location:e,revalidate:null!==h.headers.get("X-Remix-Revalidate"),reloadDocument:null!==h.headers.get("X-Remix-Reload-Document")}}if(u.isRouteRequest)throw{type:c===a.error?a.error:a.data,response:h};try{let t=h.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==h.body?null:await h.json():await h.text()}catch(e){return{type:a.error,error:e}}return c===a.error?{type:c,error:new A(o,h.statusText,e),headers:h.headers}:{type:a.data,data:e,statusCode:h.status,headers:h.headers}}if(c===a.error)return{type:c,error:h};if(function(e){return e&&"object"==typeof e&&"object"==typeof e.data&&"function"==typeof e.subscribe&&"function"==typeof e.cancel&&"function"==typeof e.resolveData}(h)){var m,v;return{type:a.deferred,deferredData:h,statusCode:null==(m=h.init)?void 0:m.status,headers:(null==(v=h.init)?void 0:v.headers)&&new Headers(h.init.headers)}}return{type:a.data,data:h}}function er(e,t,n,r){let a=e.createURL(eh(t)).toString(),o={signal:n};if(r&&ev(r.formMethod)){let{formMethod:e,formEncType:t}=r;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(r.json)):"text/plain"===t?o.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?o.body=ea(r.formData):o.body=r.formData}return new Request(a,o)}function ea(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function eo(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function ei(e,t,n,r,a,o,i,s){var u,c,h,f,p;let m,v,y,g,w;let{loaderData:b,errors:E}=(u=t,c=n,h=r,f=a,p=s,v={},y=null,g=!1,w={},h.forEach((e,t)=>{let n=c[t].route.id;if(d(!em(e),"Cannot handle redirect results in processLoaderData"),ep(e)){let t=es(u,n),r=e.error;f&&(r=Object.values(f)[0],f=void 0),null==(y=y||{})[t.route.id]&&(y[t.route.id]=r),v[n]=void 0,!g&&(g=!0,m=F(e.error)?e.error.status:500),e.headers&&(w[n]=e.headers)}else ef(e)?(p.set(n,e.deferredData),v[n]=e.deferredData.data):v[n]=e.data,null!=e.statusCode&&200!==e.statusCode&&!g&&(m=e.statusCode),e.headers&&(w[n]=e.headers)}),f&&(y=f,v[Object.keys(f)[0]]=void 0),{loaderData:v,errors:y,statusCode:m||200,loaderHeaders:w});for(let t=0;t<o.length;t++){let{key:n,match:r,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==r?void 0:r.route.id);!(E&&E[t.route.id])&&(E=l({},E,{[t.route.id]:s.error})),e.fetchers.delete(n)}else if(em(s))d(!1,"Unhandled fetcher revalidation redirect");else if(ef(s))d(!1,"Unhandled fetcher deferred data");else{let t=eR(s.data);e.fetchers.set(n,t)}}return{loaderData:b,errors:E}}function el(e,t,n,r){let a=l({},t);for(let o of n){let n=o.route.id;if(t.hasOwnProperty(n)?void 0!==t[n]&&(a[n]=t[n]):void 0!==e[n]&&o.route.loader&&(a[n]=e[n]),r&&r.hasOwnProperty(n))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:n,routeId:r,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&&n&&r?l="You made a "+a+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r)+'", 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 "'+r+'" does not match URL "'+n+'"'):404===e?(i="Not Found",l='No route matches URL "'+n+'"'):405===e&&(i="Method Not Allowed",a&&n&&r?l="You made a "+a.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r)+'", 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 n=e[t];if(em(n))return{result:n,idx:t}}}function eh(e){let t="string"==typeof e?v(e):e;return m(l({},t,{hash:""}))}function ef(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,n,r,a,o){for(let i=0;i<n.length;i++){let l=n[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(ef(l)&&(a||c)){let e=r[i];d(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await eg(l,e,a).then(e=>{e&&(n[i]=e||n[i])})}}}async function eg(e,t,n){if(void 0===n&&(n=!1),!await e.deferredData.resolveData(t)){if(n)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 n="string"==typeof t?v(t).search:t.search;if(e[e.length-1].route.index&&ew(n||""))return e[e.length-1];let r=C(e);return r[r.length-1]}function eE(e){let{formMethod:t,formAction:n,formEncType:r,text:a,formData:o,json:i}=e;if(t&&n&&r){if(null!=a)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a};else if(null!=o)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};else if(void 0!==i)return{formMethod:t,formAction:n,formEncType:r,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}}},31988:function(e,t,n){"use strict";n.d(t,{OL:function(){return A},aj:function(){return x},cP:function(){return S},pG:function(){return T},rU:function(){return O}});var r,a,o,i,l,s,u=n("5872"),c=n("13922"),d=n("92927"),h=n("77393");function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&(a[n]=e[n]);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,h.p7)({basename:null==t?void 0:t.basename,future:f({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,h.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,h.p7)({basename:null==t?void 0:t.basename,future:f({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,h.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=f({},t,{errors:function(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new h.OF(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let a=new t(r.message);a.stack="",n[e]=a}catch(e){}}if(null==n[e]){let t=Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}(t.errors)})),t}let D=u.createContext({isTransitioning:!1}),L=u.createContext(new Map),C=(o||(o=n.t(u,2))).startTransition,P=(i||(i=n.t(c,2))).flushSync;(o||(o=n.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:n,future:r}=e,[a,o]=u.useState(n.state),[i,l]=u.useState(),[s,c]=u.useState({isTransitioning:!1}),[h,f]=u.useState(),[p,m]=u.useState(),[v,y]=u.useState(),g=u.useRef(new Map),{v7_startTransition:w}=r||{},b=u.useCallback(e=>{if(w){var t;t=e,C?C(t):t()}else e()},[w]),E=u.useCallback((e,t)=>{let{deletedFetchers:r,unstable_flushSync:a,unstable_viewTransitionOpts:i}=t;r.forEach(e=>g.current.delete(e)),e.fetchers.forEach((e,t)=>{void 0!==e.data&&g.current.set(t,e.data)});let s=null==n.window||"function"!=typeof n.window.document.startViewTransition;if(!i||s){a?k(()=>o(e)):b(()=>o(e));return}if(a){k(()=>{p&&(h&&h.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=n.window.document.startViewTransition(()=>{k(()=>o(e))});t.finished.finally(()=>{k(()=>{f(void 0),m(void 0),l(void 0),c({isTransitioning:!1})})}),k(()=>m(t));return}p?(h&&h.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}))},[n.window,p,h,g,b]);u.useLayoutEffect(()=>n.subscribe(E),[n,E]),u.useEffect(()=>{s.isTransitioning&&!s.flushSync&&f(new U)},[s]),u.useEffect(()=>{if(h&&i&&n.window){let e=h.promise,t=n.window.document.startViewTransition(async()=>{b(()=>o(i)),await e});t.finished.finally(()=>{f(void 0),m(void 0),l(void 0),c({isTransitioning:!1})}),m(t)}},[b,i,h,n.window]),u.useEffect(()=>{h&&i&&a.location.key===i.location.key&&h.resolve()},[h,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:n.createHref,encodeLocation:n.encodeLocation,go:e=>n.navigate(e),push:(e,t,r)=>n.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>n.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})}),[n]),S=n.basename||"/",R=u.useMemo(()=>({router:n,navigator:x,static:!1,basename:S}),[n,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:n.future.v7_relativeSplatPath}},a.initialized||n.future.v7_partialHydration?u.createElement(_,{routes:n.routes,future:n.future,state:a}):t))))),null)}function _(e){let{routes:t,future:n,state:r}=e;return(0,d.DY)(t,void 0,r,n)}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 n,{onClick:r,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)&&(n=c,M))try{let e=new URL(window.location.href),t=new URL(c.startsWith("//")?e.protocol+c:c),n=(0,h.Zn)(t.pathname,g);t.origin===e.origin&&null!=n?c=n+t.search+t.hash:w=!0}catch(e){}let E=(0,d.oQ)(c,{relative:a}),x=function(e,t){let{target:n,replace:r,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:l}=void 0===t?{}:t,s=(0,d.s0)(),c=(0,d.TH)(),f=(0,d.WU)(e,{relative:i});return u.useCallback(t=>{var u,d,p;if(u=t,d=n,0===u.button&&(!d||"_self"===d)&&!((p=u).metaKey||p.altKey||p.ctrlKey||p.shiftKey))t.preventDefault(),s(e,{replace:void 0!==r?r:(0,h.Ep)(c)===(0,h.Ep)(f),state:a,preventScrollReset:o,relative:i,unstable_viewTransition:l})},[c,s,f,r,a,n,e,o,i,l])}(c,{replace:i,state:l,target:s,preventScrollReset:m,relative:a,unstable_viewTransition:v});return u.createElement("a",f({},y,{href:n||E,onClick:w||o?r:function(e){r&&r(e),!e.defaultPrevented&&x(e)},ref:t,target:s}))}),A=u.forwardRef(function(e,t){let n,{"aria-current":r="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 n=u.useContext(D);null!=n||(0,h.J0)(!1);let{basename:r}=F(l.useViewTransitionState),a=(0,d.WU)(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=(0,h.Zn)(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=(0,h.Zn)(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=(0,h.LX)(a.pathname,i)||null!=(0,h.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,h.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?r:void 0;n="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,f({},y,{"aria-current":M,className:n,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,h.J0)(!1),t}(r=l||(l={})).UseScrollRestoration="useScrollRestoration",r.UseSubmit="useSubmit",r.UseSubmitFetcher="useSubmitFetcher",r.UseFetcher="useFetcher",r.useViewTransitionState="useViewTransitionState",(a=s||(s={})).UseFetcher="useFetcher",a.UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration";let B=0,W=()=>"__"+String(++B)+"__"},92927:function(e,t,n){"use strict";n.d(t,{AW:function(){return F},DY:function(){return R},F0:function(){return B},FR:function(){return d},SN:function(){return M},TH:function(){return g},UO:function(){return x},Us:function(){return h},WU:function(){return S},Yi:function(){return _},Z5:function(){return W},i7:function(){return N},j3:function(){return A},lk:function(){return j},oQ:function(){return v},pW:function(){return p},s0:function(){return b},us:function(){return H},w3:function(){return c}});var r,a,o,i,l=n("5872"),s=n("77393");function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let c=l.createContext(null),d=l.createContext(null),h=l.createContext(null),f=l.createContext(null),p=l.createContext({outlet:null,matches:[],isDataRoute:!1}),m=l.createContext(null);function v(e,t){let{relative:n}=void 0===t?{}:t;y()||(0,s.J0)(!1);let{basename:r,navigator:a}=l.useContext(h),{hash:o,pathname:i,search:u}=S(e,{relative:n}),c=i;return"/"!==r&&(c="/"===i?r:(0,s.RQ)([r,i])),a.createHref({pathname:c,search:u,hash:o})}function y(){return null!=l.useContext(f)}function g(){return y()||(0,s.J0)(!1),l.useContext(f).location}function w(e){!l.useContext(h).static&&l.useLayoutEffect(e)}function b(){let{isDataRoute:e}=l.useContext(p);return e?function(){var e;let t;let{router:n}=(e=P.UseNavigateStable,(t=l.useContext(c))||(0,s.J0)(!1),t),r=T(k.UseNavigateStable),a=l.useRef(!1);return w(()=>{a.current=!0}),l.useCallback(function(e,t){void 0===t&&(t={}),a.current&&("number"==typeof e?n.navigate(e):n.navigate(e,u({fromRouteId:r},t)))},[n,r])}():function(){y()||(0,s.J0)(!1);let e=l.useContext(c),{basename:t,future:n,navigator:r}=l.useContext(h),{matches:a}=l.useContext(p),{pathname:o}=g(),i=JSON.stringify((0,s.cm)(a,n.v7_relativeSplatPath)),u=l.useRef(!1);return w(()=>{u.current=!0}),l.useCallback(function(n,a){if(void 0===a&&(a={}),!u.current)return;if("number"==typeof n){r.go(n);return}let l=(0,s.pC)(n,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:(0,s.RQ)([t,l.pathname])),(a.replace?r.replace:r.push)(l,a.state,a)},[t,r,i,o,e])}()}let E=l.createContext(null);function x(){let{matches:e}=l.useContext(p),t=e[e.length-1];return t?t.params:{}}function S(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=l.useContext(h),{matches:a}=l.useContext(p),{pathname:o}=g(),i=JSON.stringify((0,s.cm)(a,r.v7_relativeSplatPath));return l.useMemo(()=>(0,s.pC)(e,JSON.parse(i),o,"path"===n),[e,i,o,n])}function R(e,t,n,r){let a;y()||(0,s.J0)(!1);let{navigator:o}=l.useContext(h),{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,n,r){var a,o;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){if(null==(o=n)||!o.errors)return null;e=n.matches}let i=e,u=null==(a=n)?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(n&&r&&r.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:r}=n,a=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[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,r,a)=>{let o;let s=!1,h=null,f=null;n&&(o=u&&r.route.id?u[r.route.id]:void 0,h=r.route.errorElement||D,c&&(d<0&&0===a?(function(e,t,n){!t&&!O[e]&&(O[e]=!0)}("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),s=!0,f=null):d===a&&(s=!0,f=r.route.hydrateFallbackElement||null)));let p=t.concat(i.slice(0,a+1)),m=()=>{let t;return t=o?h:s?f:r.route.Component?l.createElement(r.route.Component,null):r.route.element?r.route.element:e,l.createElement(C,{match:r,routeContext:{outlet:e,matches:p,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===a)?l.createElement(L,{location:n.location,revalidation:n.revalidation,component:h,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,n,r);return t&&S?l.createElement(f.Provider,{value:{location:u({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:s.aU.Pop}},S):S}let D=l.createElement(function(){let e=j(),t=(0,s.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=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),n?l.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},n):null,null)},null);class L 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 C(e){let{routeContext:t,match:n,children:r}=e,a=l.useContext(c);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),l.createElement(p.Provider,{value:t},r)}var P=((r=P||{}).UseBlocker="useBlocker",r.UseRevalidator="useRevalidator",r.UseNavigateStable="useNavigate",r);var k=((a=k||{}).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 U(e){let t=l.useContext(d);return t||(0,s.J0)(!1),t}function T(e){var t;let n;let r=(t=0,(n=l.useContext(p))||(0,s.J0)(!1),n),a=r.matches[r.matches.length-1];return a.route.id||(0,s.J0)(!1),a.route.id}function _(){return T(k.UseRouteId)}function M(){let{matches:e,loaderData:t}=U(k.UseMatches);return l.useMemo(()=>e.map(e=>(0,s.WS)(e,t)),[e,t])}function j(){var e;let t=l.useContext(m),n=U(k.UseRouteError),r=T(k.UseRouteError);return void 0!==t?t:null==(e=n.errors)?void 0:e[r]}let O={};function A(e){var t;let n;return t=e.context,(n=l.useContext(p).outlet)?l.createElement(E.Provider,{value:t},n):n}function F(e){(0,s.J0)(!1)}function B(e){let{basename:t="/",children:n=null,location:r,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 r&&(r=(0,s.cP)(r));let{pathname:m="/",search:v="",hash:g="",state:w=null,key:b="default"}=r,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(h.Provider,{value:p},l.createElement(f.Provider,{children:n,value:E}))}function W(e){var t;let{children:n,location:r}=e;return t=N(n),R(t,r)}(i||(i=n.t(l,2))).startTransition;var z=((o=z||{})[o.pending=0]="pending",o[o.success=1]="success",o[o.error=2]="error",o);function N(e,t){void 0===t&&(t=[]);let n=[];return l.Children.forEach(e,(e,r)=>{if(!l.isValidElement(e))return;let a=[...t,r];if(e.type===l.Fragment){n.push.apply(n,N(e.props.children,a));return}e.type!==F&&(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=N(e.props.children,a)),n.push(o)}),n}function H(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
|
-
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["400"],{74709:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});var o=n("86834");n("5872");var r=n("42666"),l=n("70130");let i=e=>{var t;let[n,i]=(0,r.Z)(()=>Promise.resolve(e.onClick()),[]);return(0,o.jsx)("button",{className:l.container,onClick:i,"data-type":null!==(t=e.type)&&void 0!==t?t:"default",disabled:n.loading,children:e.children})}},62325:function(e,t,n){"use strict";n.d(t,{t:function(){return b}});var o=n("90247"),r=n("55709"),l=n("86834"),i=n("54305"),s=n("42183"),c=n("5872"),a=n("56573"),u=n("71161"),d=n("36339"),v=n("29214"),m=n("55058"),h=n("45967"),p=n("2395"),f=n("10734"),_=n("74709"),y=n("94258"),g=n("28391"),w=n("51879");let k=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location,{hash:n}=t,o=null===(e=n.match(/^#\/__devtools(.*)/))||void 0===e?void 0:e[1];return"string"!=typeof o?null:""===o?"/":o},b=e=>{let t=e.def.assets.logo,n=k(),[b,j]=(0,a.Z)(!!n),[x,C]=(0,c.useState)(!1),E=(0,m.jb)(e.endpoint,{src:e.dataSource}),O=(0,y.d)({clamp:!0}),[T,R]=(0,c.useState)(()=>{var e;let t=null!==(e=localStorage.getItem("__modern_js_devtools_appearance"))&&void 0!==e?e:"light";return localStorage.setItem("__modern_js_devtools_appearance",t),t});(0,u.Z)("storage",e=>{"__modern_js_devtools_appearance"===e.key&&R(e.newValue||void 0)}),(0,u.Z)("keydown",e=>{e.shiftKey&&e.altKey&&"KeyD"===e.code&&j()}),(0,c.useEffect)(()=>{g.QB.hook("receive",e=>{"startInspectingNative"===e.event&&(j(!1),document.documentElement.style.setProperty("cursor","cell"))});let e=e=>{"stopInspectingNative"===e.event&&(j(!0),document.documentElement.style.removeProperty("cursor"))};return g.QB.hook("send",e),()=>{g.QB.removeHook("send",e)}},[]);let S=async()=>{document.documentElement.style.setProperty("cursor","wait"),j(!1),C(!0);try{(await (0,w.F)(g.mp,1e4)).remote.pullUp("/react/components#inspecting")}catch(e){console.error(e),document.documentElement.style.removeProperty("cursor")}};return(0,d.Z)(async()=>{if(!!n)(await (0,w.F)(g.mp,1e4)).remote.pullUp(n)},[]),(0,l.jsxs)(i.Q2,{appearance:T,className:T,children:[(0,l.jsx)(h.Z,{when:b,keepAlive:!0,load:x,children:(0,l.jsx)("div",{className:p.container,children:(0,l.jsx)(f.s,{src:E,onClose:()=>j(!1),style:{pointerEvents:O.isDragging?"none":"auto"}})})}),(0,l.jsxs)(s.k,(0,r._)((0,o._)({className:p.fab},O.props),{align:"center",children:[(0,l.jsx)(_.T,{type:"primary",onClick:j,children:(0,l.jsx)("img",{className:p.logo,src:t})}),(0,l.jsx)(_.T,{onClick:S,children:(0,l.jsx)(v.aur,{})})]}))]})}},10734:function(e,t,n){"use strict";n.d(t,{s:function(){return m}});var o=n("90247"),r=n("55709"),l=n("16170"),i=n("86834"),s=n("76416");n("5872");var c=n("29214"),a=n("79197"),u=n("428"),d=n("80115"),v=n("28391");let m=e=>{var{src:t,onClose:n}=e,m=(0,l._)(e,["src","onClose"]);let{loaded:h}=(0,a.R)(v.Cl);return(0,i.jsxs)(s.x,(0,r._)((0,o._)({className:d.container},m),{children:[(0,i.jsx)("iframe",{className:d.frame,src:t}),(0,i.jsx)(c.cu3,{className:d.closeButton,onClick:n}),(0,i.jsx)("div",{className:d.backdrop,style:{display:h?"none":void 0},children:(0,i.jsx)(u.g,{})})]}))}},45967:function(e,t,n){"use strict";var o=n("86834"),r=n("5872");t.Z=e=>{var t;let n=null===(t=e.keepAlive)||void 0===t||t,{when:l}=e,i=(0,r.useRef)(!1);l&&(i.current=!0);let s=e.load||(n?i.current:l);return s?(0,o.jsx)("div",{style:{display:!n||l?"unset":"none"},children:e.children}):null}},80295:function(e,t,n){"use strict";var o=n("90247"),r=n("86834");n("82231"),n("28391");var l=n("60182"),i=n("62484"),s=n("62325");document.addEventListener("DOMContentLoaded",()=>{let e=document.createElement("div");e.className="_modern_js_devtools_container",document.body.appendChild(e);let t=e.attachShadow({mode:"closed"}),n=document.getElementById("_modern_js_devtools_styles");if(!(n instanceof HTMLTemplateElement))throw Error("template not found");t.appendChild(n.content);let c=document.createElement("div");c.classList.add("_modern_js_devtools_mountpoint","theme-register",i.container),t.appendChild(c);let a=window.__MODERN_JS_DEVTOOLS_OPTIONS__;(0,l.createRoot)(c).render((0,r.jsx)(s.t,(0,o._)({},a)))})},82231:function(e,t,n){"use strict";var o=n("57662");if(!window.opener)try{try{delete window.__REACT_DEVTOOLS_GLOBAL_HOOK__}catch(e){}(0,o.initialize)(window);let e=window.__REACT_DEVTOOLS_GLOBAL_HOOK__.sub;window.__REACT_DEVTOOLS_GLOBAL_HOOK__.sub=(t,n)=>{if("devtools-backend-installed"!==t)return e(t,n)}}catch(t){let e=Error("Failed to inject React DevTools backend.");e.cause=t,console.error(e)}},28391:function(e,t,n){"use strict";n.d(t,{Cl:function(){return _},QB:function(){return h},mp:function(){return f}});var o=n("90247"),r=n("55709"),l=n("10487"),i=n("88739"),s=n("65872"),c=n("9880"),a=n.n(c),u=n("81733"),d=n("57662"),v=n("24933");let m=l.MessagePortChannel.wait(window,"channel:connect:client"),h=new v.S,p=(0,d.createBridge)(window,h),f=m.then(e=>{let t=(0,s.Hu)();return{remote:(0,i.Fu)({async activateReactDevtools(){(0,d.activate)(window,{bridge:p})},async onFinishRender(){await t.callHook("onFinishRender")}},(0,r._)((0,o._)({},e.handlers),{timeout:500})),hooks:t}}),_=(0,u.sj)({loaded:!1}),y=a()();f.then(e=>{let{remote:t,hooks:n}=e;h.bindRemote(t,"sendReactDevtoolsData"),n.hook("onFinishRender",async()=>{_.loaded=!0,y.resolve()})})},94258:function(e,t,n){"use strict";n.d(t,{d:function(){return c}});var o=n("5872"),r=n("71161");let l=(e,t)=>{var n,o;return null!==(o=null===(n=({top:["left","right"],bottom:["left","right"],left:["top","bottom"],right:["top","bottom"]})[e])||void 0===n?void 0:n.includes(t))&&void 0!==o&&o},i=e=>{let[t,...n]=[{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),o=n.findIndex(e=>{let{key:n}=e;return l(t.key,n)}),[r]=n.splice(o,1);return[t,r,n[0],n[1]]},s=e=>{let{top:t,left:n,height:o,width:r}=e.getBoundingClientRect();return{top:t,left:n,bottom:window.innerHeight-t-o,right:window.innerWidth-n-r}},c=e=>{var t;let n=null!==(t=null==e?void 0:e.margin)&&void 0!==t?t:"10px",l="number"==typeof n?"".concat(n,"px"):n,[c,a]=(0,o.useState)(),u=()=>{if(!c)return;c.moveable=!1;let{el:e}=c,[t]=i(s(e));e.style.transition="".concat(t.key," 200ms"),requestIdleCallback(()=>{a(void 0),e.style[t.key]=l}),e.addEventListener("transitionend",()=>e.style.transition="",{once:!0})},d=t=>{let n="touches"in t?t.touches[0]:t;if(!(null==c?void 0:c.moveable))return;let{startX:o,startY:r}=c;(o-n.clientX)**2+(r-n.clientY)**2>9&&(c.clickable=!1);let{width:s,height:a}=c.el.getBoundingClientRect(),u=n.clientY-c.offsetY,d=n.clientX-c.offsetX,v=i({top:u,left:d,bottom:window.innerHeight-u-a,right:window.innerWidth-d-s}).map(e=>{let{key:t,value:n}=e;return{key:t,value:"".concat(n,"px")}});if(null==e?void 0:e.clamp)for(let e of v){let t=["top","bottom"].includes(e.key)?window.innerHeight-a:window.innerWidth-s;e.value="clamp(".concat(l,", ").concat(e.value,", ").concat(t,"px)")}let[m,h,...p]=v,{style:f}=c.el;f.transition="",f[m.key]=m.value,f[h.key]=h.value,f[p[0].key]="auto",f[p[1].key]="auto"};(0,r.Z)("blur",u),(0,r.Z)("mouseup",u),(0,r.Z)("touchend",u),(0,r.Z)("mousemove",d),(0,r.Z)("touchmove",d);let v=e=>{let t="touches"in e?e.touches[0]:e,n=e.currentTarget,o=n.getBoundingClientRect(),r=t.clientX-o.left;a({el:n,clickable:!0,moveable:!0,offsetX:r,offsetY:t.clientY-o.top,startX:t.clientX,startY:t.clientY})};return{isDragging:!!c,props:{onMouseDown:v,onTouchStart:v,onClickCapture:e=>{(null==c?void 0:c.clickable)||e.stopPropagation()}}}}},51879:function(e,t,n){"use strict";n.d(t,{F:function(){return o}});let o=(e,t)=>new Promise((n,o)=>{let r=!0,l=setTimeout(()=>{r=!1,o(Error("Promise Timeout"))},t);e.then(e=>{r&&n(e),clearTimeout(l)}),e.catch(o)})},24933:function(e,t,n){"use strict";n.d(t,{S:function(){return r}});var o=n("65872");class r extends o.gl{listen(e){return this.hook("receive",e),e}send(e,t,n){this.callHook("send",{event:e,payload:t,transferable:n})}bindRemote(e,t){var n=this;return e.$functions[t]=function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];n.callHook("receive",e,...o)},this.hook("send",function(){for(var n=arguments.length,o=Array(n),r=0;r<n;r++)o[r]=arguments[r];e[t](...o)}),this}constructor(){super(),this.status="close";let e=e=>{this.status!==e&&(this.status=e,this.callHook(e))};this.hook("send",t=>{"shutdown"===t.event&&e("close")}),this.hook("receive",t=>{"shutdown"===t.event?e("close"):"operations"===t.event?e("active"):e("open")})}}},62484:function(e,t,n){"use strict";n.r(e.exports={container:"container-c8bb15"})}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["126","522","567","58","637","991"],function(){return t("90915"),t("41975"),t("15326"),t("19449"),t("80295")}),e.O()}]);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/static/js/{lib-router.6ca49914.js.LICENSE.txt → lib-router.0a6f9fdc.js.LICENSE.txt}
RENAMED
|
File without changes
|