@modern-js/devtools-client 2.68.19 → 2.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/modern.config.json +1 -1
- package/dist/public/sw-proxy.js +1 -1
- package/dist/routes-manifest.json +75 -75
- package/dist/static/css/{884.f5c7162b.css → 369.bd57b9e5.css} +1 -1
- package/dist/static/css/{335.649dd1fe.css → 902.aa32da8f.css} +1 -1
- package/dist/static/html/client/index.html +3 -3
- package/dist/static/html/mount/index.html +3 -3
- package/dist/static/js/{884.f8cb7101.js → 369.ca84b0e0.js} +3 -3
- package/dist/static/js/404.106c3e17.js +1 -0
- package/dist/static/js/{648.855ed744.js → 648.dc707811.js} +1 -1
- package/dist/static/js/902.0c37ea07.js +2 -0
- package/dist/static/js/async/{788.0066d691.js → 852.986c4d4d.js} +1 -1
- package/dist/static/js/async/94.4703e793.js +1 -0
- package/dist/static/js/async/client_config/(toolkit).(type)/page.f78b63b1.js +1 -0
- package/dist/static/js/async/client_config/{layout.7fb089c3.js → layout.05c706d4.js} +1 -1
- package/dist/static/js/async/client_config/page.2f245290.js +1 -0
- package/dist/static/js/async/client_context/builder/page.3d66687d.js +1 -0
- package/dist/static/js/async/client_context/framework/page.f2148aa9.js +1 -0
- package/dist/static/js/async/client_context/{layout.cc077653.js → layout.1a92e654.js} +1 -1
- package/dist/static/js/async/client_context/page.4197b408.js +1 -0
- package/dist/static/js/async/client_doctor/page.882d12bc.js +1 -0
- package/dist/static/js/async/client_external/$.4e4a255f.js +1 -0
- package/dist/static/js/async/client_external/layout.c4d03c26.js +1 -0
- package/dist/static/js/async/client_headers/editor/page.9de46cab.js +4 -0
- package/dist/static/js/async/client_headers/{layout.c08b8d2a.js → layout.1a2f8d2a.js} +1 -1
- package/dist/static/js/async/client_headers/page.a34be403.js +1 -0
- package/dist/static/js/async/client_headers/welcome/page.c7fad8df.js +1 -0
- package/dist/static/js/async/client_overview/{layout.87ade992.js → layout.92381edc.js} +1 -1
- package/dist/static/js/async/client_overview/page.9b4870e3.js +1 -0
- package/dist/static/js/async/client_page.ef11f7fe.js +1 -0
- package/dist/static/js/async/client_pages/{layout.a5d3c7d0.js → layout.a98b3347.js} +1 -1
- package/dist/static/js/async/client_pages/page.5d2f059b.js +4 -0
- package/dist/static/js/async/client_react/(tab)/layout.70192fd4.js +1 -0
- package/dist/static/js/async/client_react/(tab)/page.8eed2352.js +1 -0
- package/dist/static/js/async/client_react/offscreen/page.33d17411.js +1 -0
- package/dist/static/js/async/client_react/page.02b5c106.js +1 -0
- package/dist/static/js/async/client_storage/preset/(id)/page.d5705d9a.js +1 -0
- package/dist/static/js/async/client_storage/preset/layout.39fd7c71.js +1 -0
- package/dist/static/js/async/client_storage/preset/page.76ebfc0c.js +1 -0
- package/dist/static/js/builder-runtime.082a272a.js +1 -0
- package/dist/static/js/client.f82214d5.js +2 -0
- package/dist/static/js/components.2a5a2c5d.js +1 -0
- package/dist/static/js/lib-polyfill.781b4fd5.js +1 -0
- package/dist/static/js/lib-router.da7a304c.js +2 -0
- package/dist/static/js/mount.61a612b9.js +1 -0
- package/package.json +9 -9
- package/dist/static/js/335.44526d1f.js +0 -2
- package/dist/static/js/564.c1e8f770.js +0 -1
- package/dist/static/js/async/366.66c8d2d3.js +0 -1
- package/dist/static/js/async/client_config/(toolkit).(type)/page.f4af3426.js +0 -1
- package/dist/static/js/async/client_config/page.a89488a5.js +0 -1
- package/dist/static/js/async/client_context/builder/page.b805c88c.js +0 -1
- package/dist/static/js/async/client_context/framework/page.b68af1ce.js +0 -1
- package/dist/static/js/async/client_context/page.1276ddbf.js +0 -1
- package/dist/static/js/async/client_doctor/page.03e78ac0.js +0 -1
- package/dist/static/js/async/client_external/$.40200b49.js +0 -1
- package/dist/static/js/async/client_external/layout.ce224eaf.js +0 -1
- package/dist/static/js/async/client_headers/editor/page.79f45ee4.js +0 -4
- package/dist/static/js/async/client_headers/page.b7c382a2.js +0 -1
- package/dist/static/js/async/client_headers/welcome/page.4cea0a0a.js +0 -1
- package/dist/static/js/async/client_overview/page.362a82f5.js +0 -1
- package/dist/static/js/async/client_page.dc0f7e5c.js +0 -1
- package/dist/static/js/async/client_pages/page.fdda31be.js +0 -4
- package/dist/static/js/async/client_react/(tab)/layout.0c69e27f.js +0 -1
- package/dist/static/js/async/client_react/(tab)/page.ac34a4ad.js +0 -1
- package/dist/static/js/async/client_react/offscreen/page.92568d24.js +0 -1
- package/dist/static/js/async/client_react/page.957b6e1f.js +0 -1
- package/dist/static/js/async/client_storage/preset/(id)/page.c6927872.js +0 -1
- package/dist/static/js/async/client_storage/preset/layout.3166e77a.js +0 -1
- package/dist/static/js/async/client_storage/preset/page.74a6994c.js +0 -1
- package/dist/static/js/builder-runtime.b7c9fc99.js +0 -1
- package/dist/static/js/client.749ee50b.js +0 -2
- package/dist/static/js/components.c6203174.js +0 -1
- package/dist/static/js/lib-polyfill.ac8dc855.js +0 -1
- package/dist/static/js/lib-router.904905a0.js +0 -2
- package/dist/static/js/mount.16b167bb.js +0 -1
- /package/dist/static/js/{884.f8cb7101.js.LICENSE.txt → 369.ca84b0e0.js.LICENSE.txt} +0 -0
- /package/dist/static/js/{335.44526d1f.js.LICENSE.txt → 902.0c37ea07.js.LICENSE.txt} +0 -0
- /package/dist/static/js/{client.749ee50b.js.LICENSE.txt → client.f82214d5.js.LICENSE.txt} +0 -0
- /package/dist/static/js/{lib-router.904905a0.js.LICENSE.txt → lib-router.da7a304c.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see lib-router.904905a0.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["535"],{61621: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,{AO:()=>v,B6:()=>D,Gh:()=>M,HS:()=>T,Oi:()=>d,RO:()=>C,Rr:()=>m,TM:()=>c,V2:()=>B,VV:()=>z,aE:()=>K,pX:()=>F,pb:()=>L,rc:()=>n,ro:()=>x,tH:()=>_,ue:()=>b,yD:()=>O,zR:()=>u}),(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:v(t)},null,e)}function c(e){return void 0===e&&(e={}),y(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=m(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:v(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,r,n){return void 0===r&&(r=null),l({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?m(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function v(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 m(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,h=null,m=y();function y(){return(u.state||{idx:null}).idx}function g(){c=n.Pop;let e=y(),t=null==e?null:e-m;m=e,h&&h({action:c,location:b.location,delta:t})}function w(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,r="string"==typeof e?e:v(e);return d(t,"No window.location.(origin|href) available to create URL for href: "+(r=r.replace(/ $/,"%20"))),new URL(r,t)}null==m&&(m=0,u.replaceState(l({},u.state,{idx:m}),""));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=n.Push;let a=p(b.location,e,t);r&&r(a,e);let l=f(a,m=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=n.Replace;let a=p(b.location,e,t);r&&r(a,e);let o=f(a,m=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,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{let o=[...r,String(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){return void 0===r&&(r="/"),E(e,t,r,!1)}function E(e,t,r,n){let a=L(("string"==typeof t?m(t):t).pathname||"/",r);if(null==a)return null;let o=function e(t,r,n,a){void 0===r&&(r=[]),void 0===n&&(n=[]),void 0===a&&(a="");let o=(t,o,i)=>{var l,s;let u,c,h={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};h.relativePath.startsWith("/")&&(d(h.relativePath.startsWith(a),'Absolute route path "'+h.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),h.relativePath=h.relativePath.slice(a.length));let f=T([a,h.relativePath]),p=n.concat(h);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 "'+f+'".'),e(t.children,r,p,f)),(null!=t.path||t.index)&&r.push({path:f,score:(l=f,s=t.index,c=(u=l.split("/")).length,u.some(S)&&(c+=-2),s&&(c+=2),u.filter(e=>!S(e)).reduce((e,t)=>e+(R.test(t)?3:""===t?1:10),c)),routesMeta:p})};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);o.sort((e,t)=>{var r,n;return e.score!==t.score?t.score-e.score:(r=e.routesMeta.map(e=>e.childrenIndex),n=t.routesMeta.map(e=>e.childrenIndex),r.length===n.length&&r.slice(0,-1).every((e,t)=>e===n[t])?r[r.length-1]-n[n.length-1]:0)});let i=null;for(let e=0;null==i&&e<o.length;++e){let t=C(a);i=function(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let e=0;e<n.length;++e){let l=n[e],s=e===n.length-1,u="/"===o?t:t.slice(o.length)||"/",c=D({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u),d=l.route;if(!c&&s&&r&&!n[n.length-1].route.index&&(c=D({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:T([o,c.pathname]),pathnameBase:j(T([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=T([o,c.pathnameBase]))}return i}(o[e],t,n)}return i}function x(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 R=/^:[\w-]+$/,S=e=>"*"===e;function D(e,t){var r,n,a;let o,i;"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[l,s]=(r=e.path,n=e.caseSensitive,a=e.end,void 0===n&&(n=!1),void 0===a&&(a=!0),h("*"===r||!r.endsWith("*")||r.endsWith("/*"),'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),o=[],i="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(o.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")),r.endsWith("*")?(o.push({paramName:"*"}),i+="*"===r||"/*"===r?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?i+="\\/*$":""!==r&&"/"!==r&&(i+="(?:(?=\\/|$))"),[new RegExp(i,n?void 0:"i"),o]),u=t.match(l);if(!u)return null;let c=u[0],d=c.replace(/(.)\/+$/,"$1"),f=u.slice(1);return{params:s.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=f[r]||"";d=c.slice(0,c.length-e.length).replace(/(.)\/+$/,"$1")}let o=f[r];return a&&!o?e[n]=void 0:e[n]=(o||"").replace(/%2F/g,"/"),e},{}),pathname:c,pathnameBase:d,pattern:e}}function C(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}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}}function L(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 P(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 k(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function O(e,t){let r=k(e);return t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase)}function M(e,t,r,n){let a,o;void 0===n&&(n=!1),"string"==typeof e?a=m(e):(d(!(a=l({},e)).pathname||!a.pathname.includes("?"),P("?","pathname","search",a)),d(!a.pathname||!a.pathname.includes("#"),P("#","pathname","hash",a)),d(!a.search||!a.search.includes("#"),P("#","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){var r;let n;void 0===t&&(t="/");let{pathname:a,search:o="",hash:i=""}="string"==typeof e?m(e):e;return{pathname:a?a.startsWith("/")?a:(r=a,n=t.replace(/\/+$/,"").split("/"),r.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"):t,search:U(o),hash:A(i)}}(a,o),c=s&&"/"!==s&&s.endsWith("/"),h=(i||"."===s)&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||h)&&(u.pathname+="/"),u}let T=e=>e.join("/").replace(/\/\/+/g,"/"),j=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),U=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",A=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class _ extends Error{}let B=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 z{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 N=["post","put","patch","delete"],H=new Set(N),I=new Set(["get",...N]),W=new Set([301,302,303,307,308]),$=new Set([307,308]),V={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},q={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},J={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Y=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,G=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),X="remix-router-transitions";function K(e){let t,r,o,i,s,u,c=e.window?e.window:"undefined"!=typeof window?window:void 0,f=void 0!==c&&void 0!==c.document&&void 0!==c.document.createElement,v=!f;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=G;let m={},y=w(e.routes,t,void 0,m),g=e.basename||"/",R=e.dataStrategy||el,S=e.patchRoutesOnNavigation,D=l({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),C=null,P=new Set,k=null,O=null,M=null,T=null!=e.hydrationData,j=b(y,e.history.location,g),U=null;if(null==j&&!S){let t=eb(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=ew(y);j=r,U={[n.id]:t}}if(j&&!e.hydrationData&&ta(j,y,e.history.location.pathname).active&&(j=null),j)if(j.some(e=>e.route.lazy))o=!1;else if(j.some(e=>e.route.loader))if(D.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=j.findIndex(e=>void 0!==r[e.route.id]);o=j.slice(0,e+1).every(e=>!er(e.route,t,r))}else o=j.every(e=>!er(e.route,t,r))}else o=null!=e.hydrationData;else o=!0;else if(o=!1,j=[],D.v7_partialHydration){let t=ta(null,y,e.history.location.pathname);t.active&&t.matches&&(j=t.matches)}let A={historyAction:e.history.action,location:e.history.location,matches:j,initialized:o,navigation:V,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},_=n.Pop,B=!1,z=!1,N=new Map,H=null,I=!1,K=!1,ee=[],en=new Set,ea=new Map,ei=0,eu=-1,ef=new Map,ep=new Set,ex=new Map,eC=new Map,eT=new Set,ez=new Map,eF=new Map;function eN(e,t){void 0===t&&(t={}),A=l({},A,e);let r=[],n=[];D.v7_fetcherPersist&&A.fetchers.forEach((e,t)=>{"idle"===e.state&&(eT.has(t)?n.push(t):r.push(t))}),[...P].forEach(e=>e(A,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),D.v7_fetcherPersist&&(r.forEach(e=>A.fetchers.delete(e)),n.forEach(e=>e7(e)))}function eH(t,a,o){var i,s;let u,c,{flushSync:d}=void 0===o?{}:o,h=null!=A.actionData&&null!=A.navigation.formMethod&&eP(A.navigation.formMethod)&&"loading"===A.navigation.state&&(null==(i=t.state)?void 0:i._isRedirect)!==!0;u=a.actionData?Object.keys(a.actionData).length>0?a.actionData:null:h?A.actionData:null;let f=a.loaderData?em(A.loaderData,a.loaderData,a.matches||[],a.errors):A.loaderData,p=A.blockers;p.size>0&&(p=new Map(p)).forEach((e,t)=>p.set(t,J));let v=!0===B||null!=A.navigation.formMethod&&eP(A.navigation.formMethod)&&(null==(s=t.state)?void 0:s._isRedirect)!==!0;if(r&&(y=r,r=void 0),I||_===n.Pop||(_===n.Push?e.history.push(t,t.state):_===n.Replace&&e.history.replace(t,t.state)),_===n.Pop){let e=N.get(A.location.pathname);e&&e.has(t.pathname)?c={currentLocation:A.location,nextLocation:t}:N.has(t.pathname)&&(c={currentLocation:t,nextLocation:A.location})}else if(z){let e=N.get(A.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),N.set(A.location.pathname,e)),c={currentLocation:A.location,nextLocation:t}}eN(l({},a,{actionData:u,loaderData:f,historyAction:_,location:t,initialized:!0,navigation:V,revalidation:"idle",restoreScrollPosition:tn(t,a.matches||A.matches),preventScrollReset:v,blockers:p}),{viewTransitionOpts:c,flushSync:!0===d}),_=n.Pop,B=!1,z=!1,I=!1,K=!1,ee=[]}async function eI(t,r){if("number"==typeof t)return void e.history.go(t);let a=Z(A.location,A.matches,g,D.v7_prependBasename,t,D.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:o,submission:i,error:s}=Q(D.v7_normalizeFormMethod,!1,a,r),u=A.location,c=p(A.location,o,r&&r.state);c=l({},c,e.history.encodeLocation(c));let d=r&&null!=r.replace?r.replace:void 0,h=n.Push;!0===d?h=n.Replace:!1===d||null!=i&&eP(i.formMethod)&&i.formAction===A.location.pathname+A.location.search&&(h=n.Replace);let f=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,v=!0===(r&&r.flushSync),m=e8({currentLocation:u,nextLocation:c,historyAction:h});return m?void e9(m,{state:"blocked",location:c,proceed(){e9(m,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),eI(t,r)},reset(){let e=new Map(A.blockers);e.set(m,J),eN({blockers:e})}}):await eW(h,c,{submission:i,pendingError:s,preventScrollReset:f,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:v})}async function eW(t,n,o){var i,u,c,d;let h;s&&s.abort(),s=null,_=t,I=!0===(o&&o.startUninterruptedRevalidation),i=A.location,u=A.matches,k&&M&&(k[tr(i,u)]=M()),B=!0===(o&&o.preventScrollReset),z=!0===(o&&o.enableViewTransition);let f=r||y,p=o&&o.overrideNavigation,v=b(f,n,g),m=!0===(o&&o.flushSync),w=ta(v,f,n.pathname);if(w.active&&w.matches&&(v=w.matches),!v){let{error:e,notFoundMatches:t,route:r}=te(n.pathname);eH(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:m});return}if(A.initialized&&!K&&(c=A.location,d=n,c.pathname===d.pathname&&c.search===d.search&&(""===c.hash?""!==d.hash:c.hash===d.hash||""!==d.hash||!1))&&!(o&&o.submission&&eP(o.submission.formMethod)))return void eH(n,{matches:v},{flushSync:m});s=new AbortController;let E=eh(e.history,n,s.signal,o&&o.submission);if(o&&o.pendingError)h=[eg(v).route.id,{type:a.error,error:o.pendingError}];else if(o&&o.submission&&eP(o.submission.formMethod)){let t=await e$(E,n,o.submission,v,w.active,{replace:o.replace,flushSync:m});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(eS(r)&&F(r.error)&&404===r.error.status){s=null,eH(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}v=t.matches||v,h=t.pendingActionResult,p=eA(n,o.submission),m=!1,w.active=!1,E=eh(e.history,E.url,E.signal)}let{shortCircuited:x,matches:R,loaderData:S,errors:D}=await eV(E,n,v,w.active,p,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,m,h);x||(s=null,eH(n,l({matches:R||v},ey(h),{loaderData:S,errors:D})))}async function e$(e,t,r,o,i,l){var s;let u;if(void 0===l&&(l={}),eZ(),eN({navigation:{state:"submitting",location:t,formMethod:(s=r).formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text}},{flushSync:!0===l.flushSync}),i){let r=await to(o,t.pathname,e.signal);if("aborted"===r.type)return{shortCircuited:!0};if("error"===r.type){let e=eg(r.partialMatches).route.id;return{matches:r.partialMatches,pendingActionResult:[e,{type:a.error,error:r.error}]}}if(r.matches)o=r.matches;else{let{notFoundMatches:e,error:r,route:n}=te(t.pathname);return{matches:e,pendingActionResult:[n.id,{type:a.error,error:r}]}}}let c=ej(o,t);if(c.route.action||c.route.lazy){if(u=(await eX("action",A,e,[c],o,null))[c.route.id],e.signal.aborted)return{shortCircuited:!0}}else u={type:a.error,error:eb(405,{method:e.method,pathname:t.pathname,routeId:c.route.id})};if(eD(u)){let t;return t=l&&null!=l.replace?l.replace:ed(u.response.headers.get("Location"),new URL(e.url),g)===A.location.pathname+A.location.search,await eG(e,u,!0,{submission:r,replace:t}),{shortCircuited:!0}}if(eR(u))throw eb(400,{type:"defer-action"});if(eS(u)){let e=eg(o,c.route.id);return!0!==(l&&l.replace)&&(_=n.Push),{matches:o,pendingActionResult:[e.route.id,u]}}return{matches:o,pendingActionResult:[c.route.id,u]}}async function eV(t,n,a,o,i,u,c,d,h,f,p){let v=i||eA(n,u),m=u||c||eU(v),w=!I&&(!D.v7_partialHydration||!h);if(o){if(w){let e=eq(p);eN(l({navigation:v},void 0!==e?{actionData:e}:{}),{flushSync:f})}let e=await to(a,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=eg(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)a=e.matches;else{let{error:e,notFoundMatches:t,route:r}=te(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let b=r||y,[E,x]=et(e.history,A,a,m,n,D.v7_partialHydration&&!0===h,D.v7_skipActionErrorRevalidation,K,ee,en,eT,ex,ep,b,g,p);if(tt(e=>!(a&&a.some(t=>t.route.id===e))||E&&E.some(t=>t.route.id===e)),eu=++ei,0===E.length&&0===x.length){let e=e3();return eH(n,l({matches:a,loaderData:{},errors:p&&eS(p[1])?{[p[0]]:p[1].error}:null},ey(p),e?{fetchers:new Map(A.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(w){let e={};if(!o){e.navigation=v;let t=eq(p);void 0!==t&&(e.actionData=t)}x.length>0&&(x.forEach(e=>{let t=A.fetchers.get(e.key),r=e_(void 0,t?t.data:void 0);A.fetchers.set(e.key,r)}),e.fetchers=new Map(A.fetchers)),eN(e,{flushSync:f})}x.forEach(e=>{e2(e.key),e.controller&&ea.set(e.key,e.controller)});let R=()=>x.forEach(e=>e2(e.key));s&&s.signal.addEventListener("abort",R);let{loaderResults:S,fetcherResults:C}=await eK(A,a,E,x,t);if(t.signal.aborted)return{shortCircuited:!0};s&&s.signal.removeEventListener("abort",R),x.forEach(e=>ea.delete(e.key));let L=eE(S);if(L)return await eG(t,L.result,!0,{replace:d}),{shortCircuited:!0};if(L=eE(C))return ep.add(L.key),await eG(t,L.result,!0,{replace:d}),{shortCircuited:!0};let{loaderData:P,errors:k}=ev(A,a,S,p,x,C,ez);ez.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&ez.delete(t)})}),D.v7_partialHydration&&h&&A.errors&&(k=l({},A.errors,k));let O=e3(),M=e6(eu),T=O||M||x.length>0;return l({matches:a,loaderData:P,errors:k},T?{fetchers:new Map(A.fetchers)}:{})}function eq(e){if(e&&!eS(e[1]))return{[e[0]]:e[1].data};if(A.actionData)if(0===Object.keys(A.actionData).length)return null;else return A.actionData}async function eJ(t,n,a,o,i,l,u,c,h){var f,p;function v(e){if(!e.route.action&&!e.route.lazy){let e=eb(405,{method:h.formMethod,pathname:a,routeId:n});return e0(t,n,e,{flushSync:u}),!0}return!1}if(eZ(),ex.delete(t),!l&&v(o))return;let m=A.fetchers.get(t);eQ(t,(f=h,p=m,{state:"submitting",formMethod:f.formMethod,formAction:f.formAction,formEncType:f.formEncType,formData:f.formData,json:f.json,text:f.text,data:p?p.data:void 0}),{flushSync:u});let w=new AbortController,E=eh(e.history,a,w.signal,h);if(l){let e=await to(i,a,E.signal);if("aborted"===e.type)return;if("error"===e.type)return void e0(t,n,e.error,{flushSync:u});if(!e.matches)return void e0(t,n,eb(404,{pathname:a}),{flushSync:u});if(v(o=ej(i=e.matches,a)))return}ea.set(t,w);let x=ei,R=(await eX("action",A,E,[o],i,t))[o.route.id];if(E.signal.aborted){ea.get(t)===w&&ea.delete(t);return}if(D.v7_fetcherPersist&&eT.has(t)){if(eD(R)||eS(R))return void eQ(t,eB(void 0))}else{if(eD(R))return(ea.delete(t),eu>x)?void eQ(t,eB(void 0)):(ep.add(t),eQ(t,e_(h)),eG(E,R,!1,{fetcherSubmission:h,preventScrollReset:c}));if(eS(R))return void e0(t,n,R.error)}if(eR(R))throw eb(400,{type:"defer-action"});let S=A.navigation.location||A.location,C=eh(e.history,S,w.signal),L=r||y,P="idle"!==A.navigation.state?b(L,A.navigation.location,g):A.matches;d(P,"Didn't find any matches after fetcher action");let k=++ei;ef.set(t,k);let O=e_(h,R.data);A.fetchers.set(t,O);let[M,T]=et(e.history,A,P,h,S,!1,D.v7_skipActionErrorRevalidation,K,ee,en,eT,ex,ep,L,g,[o.route.id,R]);T.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=A.fetchers.get(t),n=e_(void 0,r?r.data:void 0);A.fetchers.set(t,n),e2(t),e.controller&&ea.set(t,e.controller)}),eN({fetchers:new Map(A.fetchers)});let j=()=>T.forEach(e=>e2(e.key));w.signal.addEventListener("abort",j);let{loaderResults:U,fetcherResults:B}=await eK(A,P,M,T,C);if(w.signal.aborted)return;w.signal.removeEventListener("abort",j),ef.delete(t),ea.delete(t),T.forEach(e=>ea.delete(e.key));let z=eE(U);if(z)return eG(C,z.result,!1,{preventScrollReset:c});if(z=eE(B))return ep.add(z.key),eG(C,z.result,!1,{preventScrollReset:c});let{loaderData:F,errors:N}=ev(A,P,U,void 0,T,B,ez);if(A.fetchers.has(t)){let e=eB(R.data);A.fetchers.set(t,e)}e6(k),"loading"===A.navigation.state&&k>eu?(d(_,"Expected pending action"),s&&s.abort(),eH(A.navigation.location,{matches:P,loaderData:F,errors:N,fetchers:new Map(A.fetchers)})):(eN({errors:N,loaderData:em(A.loaderData,F,P,N),fetchers:new Map(A.fetchers)}),K=!1)}async function eY(t,r,n,a,o,i,l,s,u){let c=A.fetchers.get(t);eQ(t,e_(u,c?c.data:void 0),{flushSync:l});let h=new AbortController,f=eh(e.history,n,h.signal);if(i){let e=await to(o,n,f.signal);if("aborted"===e.type)return;if("error"===e.type)return void e0(t,r,e.error,{flushSync:l});if(!e.matches)return void e0(t,r,eb(404,{pathname:n}),{flushSync:l});a=ej(o=e.matches,n)}ea.set(t,h);let p=ei,v=(await eX("loader",A,f,[a],o,t))[a.route.id];if(eR(v)&&(v=await eM(v,f.signal,!0)||v),ea.get(t)===h&&ea.delete(t),!f.signal.aborted){if(eT.has(t))return void eQ(t,eB(void 0));if(eD(v))if(eu>p)return void eQ(t,eB(void 0));else{ep.add(t),await eG(f,v,!1,{preventScrollReset:s});return}if(eS(v))return void e0(t,r,v.error);d(!eR(v),"Unhandled fetcher deferred data"),eQ(t,eB(v.data))}}async function eG(t,r,a,o){let{submission:i,fetcherSubmission:u,preventScrollReset:h,replace:v}=void 0===o?{}:o;r.response.headers.has("X-Remix-Revalidate")&&(K=!0);let m=r.response.headers.get("Location");d(m,"Expected a Location header on the redirect Response"),m=ed(m,new URL(t.url),g);let y=p(A.location,m,{_isRedirect:!0});if(f){let t=!1;if(r.response.headers.has("X-Remix-Reload-Document"))t=!0;else if(Y.test(m)){let r=e.history.createURL(m);t=r.origin!==c.location.origin||null==L(r.pathname,g)}if(t)return void(v?c.location.replace(m):c.location.assign(m))}s=null;let w=!0===v||r.response.headers.has("X-Remix-Replace")?n.Replace:n.Push,{formMethod:b,formAction:E,formEncType:x}=A.navigation;!i&&!u&&b&&E&&x&&(i=eU(A.navigation));let R=i||u;if($.has(r.response.status)&&R&&eP(R.formMethod))await eW(w,y,{submission:l({},R,{formAction:m}),preventScrollReset:h||B,enableViewTransition:a?z:void 0});else{let e=eA(y,i);await eW(w,y,{overrideNavigation:e,fetcherSubmission:u,preventScrollReset:h||B,enableViewTransition:a?z:void 0})}}async function eX(e,r,n,o,i,l){let s,u={};try{s=await es(R,e,r,n,o,i,l,m,t)}catch(e){return o.forEach(t=>{u[t.route.id]={type:a.error,error:e}}),u}for(let[e,t]of Object.entries(s)){var c;if(eL((c=t).result)&&W.has(c.result.status)){let r=t.result;u[e]={type:a.redirect,response:function(e,t,r,n,a,o){let i=e.headers.get("Location");if(d(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!Y.test(i)){let l=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=Z(new URL(t.url),l,a,!0,i,o),e.headers.set("Location",i)}return e}(r,n,e,i,g,D.v7_relativeSplatPath)}}else u[e]=await ec(t)}return u}async function eK(t,r,n,o,i){let l=t.matches,s=eX("loader",t,i,n,r,null),u=Promise.all(o.map(async r=>{if(!r.matches||!r.match||!r.controller)return Promise.resolve({[r.key]:{type:a.error,error:eb(404,{pathname:r.path})}});{let n=(await eX("loader",t,eh(e.history,r.path,r.controller.signal),[r.match],r.matches,r.key))[r.match.route.id];return{[r.key]:n}}})),c=await s,d=(await u).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([ek(r,c,i.signal,l,t.loaderData),eO(r,d,o)]),{loaderResults:c,fetcherResults:d}}function eZ(){K=!0,ee.push(...tt()),ex.forEach((e,t)=>{ea.has(t)&&en.add(t),e2(t)})}function eQ(e,t,r){void 0===r&&(r={}),A.fetchers.set(e,t),eN({fetchers:new Map(A.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function e0(e,t,r,n){void 0===n&&(n={});let a=eg(A.matches,t);e7(e),eN({errors:{[a.route.id]:r},fetchers:new Map(A.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function e1(e){return D.v7_fetcherPersist&&(eC.set(e,(eC.get(e)||0)+1),eT.has(e)&&eT.delete(e)),A.fetchers.get(e)||q}function e7(e){let t=A.fetchers.get(e);ea.has(e)&&!(t&&"loading"===t.state&&ef.has(e))&&e2(e),ex.delete(e),ef.delete(e),ep.delete(e),eT.delete(e),en.delete(e),A.fetchers.delete(e)}function e2(e){let t=ea.get(e);t&&(t.abort(),ea.delete(e))}function e4(e){for(let t of e){let e=eB(e1(t).data);A.fetchers.set(t,e)}}function e3(){let e=[],t=!1;for(let r of ep){let n=A.fetchers.get(r);d(n,"Expected fetcher: "+r),"loading"===n.state&&(ep.delete(r),e.push(r),t=!0)}return e4(e),t}function e6(e){let t=[];for(let[r,n]of ef)if(n<e){let e=A.fetchers.get(r);d(e,"Expected fetcher: "+r),"loading"===e.state&&(e2(r),ef.delete(r),t.push(r))}return e4(t),t.length>0}function e5(e){A.blockers.delete(e),eF.delete(e)}function e9(e,t){let r=A.blockers.get(e)||J;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(A.blockers);n.set(e,t),eN({blockers:n})}function e8(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===eF.size)return;eF.size>1&&h(!1,"A router only supports one blocker at a time");let a=Array.from(eF.entries()),[o,i]=a[a.length-1],l=A.blockers.get(o);if((!l||"proceeding"!==l.state)&&i({currentLocation:t,nextLocation:r,historyAction:n}))return o}function te(e){let t=eb(404,{pathname:e}),{matches:n,route:a}=ew(r||y);return tt(),{notFoundMatches:n,route:a,error:t}}function tt(e){let t=[];return ez.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),ez.delete(n))}),t}function tr(e,t){return O&&O(e,t.map(e=>x(e,A.loaderData)))||e.key}function tn(e,t){if(k){let r=k[tr(e,t)];if("number"==typeof r)return r}return null}function ta(e,t,r){if(S){if(!e)return{active:!0,matches:E(t,r,g,!0)||[]};else if(Object.keys(e[0].params).length>0)return{active:!0,matches:E(t,r,g,!0)}}return{active:!1,matches:null}}async function to(e,n,a){if(!S)return{type:"success",matches:e};let o=e;for(;;){let e=null==r,i=r||y,l=m;try{await S({path:n,matches:o,patch:(e,r)=>{a.aborted||eo(e,r,i,l,t)}})}catch(e){return{type:"error",error:e,partialMatches:o}}finally{e&&!a.aborted&&(y=[...y])}if(a.aborted)return{type:"aborted"};let s=b(i,n,g);if(s)return{type:"success",matches:s};let u=E(i,n,g,!0);if(!u||o.length===u.length&&o.every((e,t)=>e.route.id===u[t].route.id))return{type:"success",matches:null};o=u}}return i={get basename(){return g},get future(){return D},get state(){return A},get routes(){return y},get window(){return c},initialize:function(){if(C=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(u){u(),u=void 0;return}h(0===eF.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=e8({currentLocation:A.location,nextLocation:n,historyAction:r});if(o&&null!=a){let t=new Promise(e=>{u=e});e.history.go(-1*a),e9(o,{state:"blocked",location:n,proceed(){e9(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(a))},reset(){let e=new Map(A.blockers);e.set(o,J),eN({blockers:e})}});return}return eW(r,n)}),f){var t=c,r=N;try{let e=t.sessionStorage.getItem(X);if(e){let t=JSON.parse(e);for(let[e,n]of Object.entries(t||{}))n&&Array.isArray(n)&&r.set(e,new Set(n||[]))}}catch(e){}let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(X,JSON.stringify(r))}catch(e){h(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(c,N);c.addEventListener("pagehide",e),H=()=>c.removeEventListener("pagehide",e)}return A.initialized||eW(n.Pop,A.location,{initialHydration:!0}),i},subscribe:function(e){return P.add(e),()=>P.delete(e)},enableScrollRestoration:function(e,t,r){if(k=e,M=t,O=r||null,!T&&A.navigation===V){T=!0;let e=tn(A.location,A.matches);null!=e&&eN({restoreScrollPosition:e})}return()=>{k=null,M=null,O=null}},navigate:eI,fetch:function(e,t,n,a){if(v)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.");e2(e);let o=!0===(a&&a.flushSync),i=r||y,l=Z(A.location,A.matches,g,D.v7_prependBasename,n,D.v7_relativeSplatPath,t,null==a?void 0:a.relative),s=b(i,l,g),u=ta(s,i,l);if(u.active&&u.matches&&(s=u.matches),!s)return void e0(e,t,eb(404,{pathname:l}),{flushSync:o});let{path:c,submission:d,error:h}=Q(D.v7_normalizeFormMethod,!0,l,a);if(h)return void e0(e,t,h,{flushSync:o});let f=ej(s,c),p=!0===(a&&a.preventScrollReset);d&&eP(d.formMethod)?eJ(e,t,c,f,s,u.active,o,p,d):(ex.set(e,{routeId:t,path:c}),eY(e,t,c,f,s,u.active,o,p,d))},revalidate:function(){if(eZ(),eN({revalidation:"loading"}),"submitting"!==A.navigation.state){if("idle"===A.navigation.state)return void eW(A.historyAction,A.location,{startUninterruptedRevalidation:!0});eW(_||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation,enableViewTransition:!0===z})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:e1,deleteFetcher:function(e){if(D.v7_fetcherPersist){let t=(eC.get(e)||0)-1;t<=0?(eC.delete(e),eT.add(e)):eC.set(e,t)}else e7(e);eN({fetchers:new Map(A.fetchers)})},dispose:function(){C&&C(),H&&H(),P.clear(),s&&s.abort(),A.fetchers.forEach((e,t)=>e7(t)),A.blockers.forEach((e,t)=>e5(t))},getBlocker:function(e,t){let r=A.blockers.get(e)||J;return eF.get(e)!==t&&eF.set(e,t),r},deleteBlocker:e5,patchRoutes:function(e,n){let a=null==r;eo(e,n,r||y,m,t),a&&(y=[...y],eN({}))},_internalFetchControllers:ea,_internalActiveDeferreds:ez,_internalSetRoutes:function(e){r=w(e,t,void 0,m={})}}}function Z(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=M(a||".",O(s,o),L(e.pathname,r)||e.pathname,"path"===l);if(null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&u){let e=eT(c.search);if(u.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();c.search=r?"?"+r:""}}return n&&"/"!==r&&(c.pathname="/"===c.pathname?r:T([r,c.pathname])),v(c)}function Q(e,t,r,n){var a;let o,i;if(!n||!(null!=n&&("formData"in n&&null!=n.formData||"body"in n&&void 0!==n.body)))return{path:r};if(n.formMethod&&(a=n.formMethod,!I.has(a.toLowerCase())))return{path:r,error:eb(405,{method:n.formMethod})};let l=()=>({path:r,error:eb(400,{type:"invalid-body"})}),s=n.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),c=ex(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!eP(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}}}else if("application/json"===n.formEncType){if(!eP(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=ef(n.formData),i=n.formData;else if(n.body instanceof FormData)o=ef(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=ep(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=ep(o)}catch(e){return l()}let h={formMethod:u,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(eP(h.formMethod))return{path:r,submission:h};let f=m(r);return t&&f.search&&eT(f.search)&&o.append("index",""),f.search="?"+o,{path:v(f),submission:h}}function ee(e,t,r){void 0===r&&(r=!1);let n=e.findIndex(e=>e.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function et(e,t,r,n,a,o,i,s,u,c,d,h,f,p,v,m){let y=m?eS(m[1])?m[1].error:m[1].data:void 0,g=e.createURL(t.location),w=e.createURL(a),E=r;o&&t.errors?E=ee(r,Object.keys(t.errors)[0],!0):m&&eS(m[1])&&(E=ee(r,m[0]));let x=m?m[1].statusCode:void 0,R=i&&x&&x>=400,S=E.filter((e,r)=>{var a,i,c;let d,h,{route:f}=e;if(f.lazy)return!0;if(null==f.loader)return!1;if(o)return er(f,t.loaderData,t.errors);if(a=t.loaderData,i=t.matches[r],c=e,d=!i||c.route.id!==i.route.id,h=void 0===a[c.route.id],d||h||u.some(t=>t===e.route.id))return!0;let p=t.matches[r];return ea(e,l({currentUrl:g,currentParams:p.params,nextUrl:w,nextParams:e.params},n,{actionResult:y,actionStatus:x,defaultShouldRevalidate:!R&&(s||g.pathname+g.search===w.pathname+w.search||g.search!==w.search||en(p,e))}))}),D=[];return h.forEach((e,a)=>{if(o||!r.some(t=>t.route.id===e.routeId)||d.has(a))return;let i=b(p,e.path,v);if(!i)return void D.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let u=t.fetchers.get(a),h=ej(i,e.path),m=!1;f.has(a)?m=!1:c.has(a)?(c.delete(a),m=!0):m=u&&"idle"!==u.state&&void 0===u.data?s:ea(h,l({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:y,actionStatus:x,defaultShouldRevalidate:!R&&s})),m&&D.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:h,controller:new AbortController})}),[S,D]}function er(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=null!=t&&void 0!==t[e.id],a=null!=r&&void 0!==r[e.id];return(!!n||!a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!a)}function en(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function ea(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function eo(e,t,r,n,a){var o;let i;if(e){let t=n[e];d(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=r;let l=w(t.filter(e=>!i.some(t=>(function e(t,r){return"id"in t&&"id"in r&&t.id===r.id||t.index===r.index&&t.path===r.path&&t.caseSensitive===r.caseSensitive&&((!t.children||0===t.children.length)&&(!r.children||0===r.children.length)||t.children.every((t,n)=>{var a;return null==(a=r.children)?void 0:a.some(r=>e(t,r))}))})(e,t))),a,[e||"_","patch",String((null==(o=i)?void 0:o.length)||"0")],n);i.push(...l)}async function ei(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;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]=n[e])}Object.assign(a,o),Object.assign(a,l({},t(a),{lazy:void 0}))}async function el(e){let{matches:t}=e,r=t.filter(e=>e.shouldLoad);return(await Promise.all(r.map(e=>e.resolve()))).reduce((e,t,n)=>Object.assign(e,{[r[n].route.id]:t}),{})}async function es(e,t,r,n,o,i,s,u,c,d){let h=i.map(e=>e.route.lazy?ei(e.route,c,u):void 0),f=i.map((e,r)=>{let i=h[r],s=o.some(t=>t.route.id===e.route.id),u=async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(s=!0),s?eu(t,n,e,i,r,d):Promise.resolve({type:a.data,result:void 0}));return l({},e,{shouldLoad:s,resolve:u})}),p=await e({matches:f,request:n,params:i[0].params,fetcherKey:s,context:d});try{await Promise.all(h)}catch(e){}return p}async function eu(e,t,r,n,o,i){let l,s,u=n=>{let a,l=new Promise((e,t)=>a=t);s=()=>a(),t.signal.addEventListener("abort",s);let u=a=>"function"!=typeof n?Promise.reject(Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: ')+r.route.id+"]")):n({request:t,params:r.params,context:i},...void 0!==a?[a]:[]);return Promise.race([(async()=>{try{let e=await (o?o(e=>u(e)):u());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})(),l])};try{let o=r.route[e];if(n)if(o){let e,[t]=await Promise.all([u(o).catch(t=>{e=t}),n]);if(void 0!==e)throw e;l=t}else if(await n,o=r.route[e])l=await u(o);else{if("action"!==e)return{type:a.data,result:void 0};let n=new URL(t.url),o=n.pathname+n.search;throw eb(405,{method:t.method,pathname:o,routeId:r.route.id})}else if(o)l=await u(o);else{let e=new URL(t.url),r=e.pathname+e.search;throw eb(404,{pathname:r})}d(void 0!==l.result,"You defined "+("action"===e?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `")+e+"` function. Please return a value or `null`.")}catch(e){return{type:a.error,result:e}}finally{s&&t.signal.removeEventListener("abort",s)}return l}async function ec(e){var t,r,n,o,i,l,s;let{result:u,type:c}=e;if(eL(u)){let e;try{let t=u.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==u.body?null:await u.json():await u.text()}catch(e){return{type:a.error,error:e}}return c===a.error?{type:a.error,error:new z(u.status,u.statusText,e),statusCode:u.status,headers:u.headers}:{type:a.data,data:e,statusCode:u.status,headers:u.headers}}if(c===a.error){if(eC(u)){if(u.data instanceof Error)return{type:a.error,error:u.data,statusCode:null==(r=u.init)?void 0:r.status};u=new z((null==(t=u.init)?void 0:t.status)||500,void 0,u.data)}return{type:a.error,error:u,statusCode:F(u)?u.status:void 0}}return(s=u)&&"object"==typeof s&&"object"==typeof s.data&&"function"==typeof s.subscribe&&"function"==typeof s.cancel&&"function"==typeof s.resolveData?{type:a.deferred,deferredData:u,statusCode:null==(n=u.init)?void 0:n.status,headers:(null==(o=u.init)?void 0:o.headers)&&new Headers(u.init.headers)}:eC(u)?{type:a.data,data:u.data,statusCode:null==(i=u.init)?void 0:i.status,headers:null!=(l=u.init)&&l.headers?new Headers(u.init.headers):void 0}:{type:a.data,data:u}}function ed(e,t,r){if(Y.test(e)){let n=new URL(e.startsWith("//")?t.protocol+e:e),a=null!=L(n.pathname,r);if(n.origin===t.origin&&a)return n.pathname+n.search+n.hash}return e}function eh(e,t,r,n){let a=e.createURL(ex(t)).toString(),o={signal:r};if(n&&eP(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=ef(n.formData):o.body=n.formData}return new Request(a,o)}function ef(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function ep(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function ev(e,t,r,n,a,o,i){let s,u,c,h,f,p,{loaderData:v,errors:m}=(u={},c=null,h=!1,f={},p=n&&eS(n[1])?n[1].error:void 0,t.forEach(e=>{if(!(e.route.id in r))return;let n=e.route.id,a=r[n];if(d(!eD(a),"Cannot handle redirect results in processLoaderData"),eS(a)){let e=a.error;void 0!==p&&(e=p,p=void 0),c=c||{},1;{let r=eg(t,n);null==c[r.route.id]&&(c[r.route.id]=e)}u[n]=void 0,h||(h=!0,s=F(a.error)?a.error.status:500),a.headers&&(f[n]=a.headers)}else eR(a)?(i.set(n,a.deferredData),u[n]=a.deferredData.data,null==a.statusCode||200===a.statusCode||h||(s=a.statusCode)):(u[n]=a.data,a.statusCode&&200!==a.statusCode&&!h&&(s=a.statusCode)),a.headers&&(f[n]=a.headers)}),void 0!==p&&n&&(c={[n[0]]:p},u[n[0]]=void 0),{loaderData:u,errors:c,statusCode:s||200,loaderHeaders:f});return a.forEach(t=>{let{key:r,match:n,controller:a}=t,i=o[r];if(d(i,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(eS(i)){let t=eg(e.matches,null==n?void 0:n.route.id);m&&m[t.route.id]||(m=l({},m,{[t.route.id]:i.error})),e.fetchers.delete(r)}else if(eD(i))d(!1,"Unhandled fetcher revalidation redirect");else if(eR(i))d(!1,"Unhandled fetcher deferred data");else{let t=eB(i.data);e.fetchers.set(r,t)}}),{loaderData:v,errors:m}}function em(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 ey(e){return e?eS(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function eg(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 ew(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 eb(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=void 0===t?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(l="Bad Request",a&&r&&n?s="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?s="defer() is not supported in actions":"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):404===e?(l="Not Found",s='No route matches URL "'+r+'"'):405===e&&(l="Method Not Allowed",a&&r&&n?s="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&&(s='Invalid request method "'+a.toUpperCase()+'"')),new z(e||500,l,Error(s),!0)}function eE(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(eD(n))return{key:r,result:n}}}function ex(e){let t="string"==typeof e?m(e):e;return v(l({},t,{hash:""}))}function eR(e){return e.type===a.deferred}function eS(e){return e.type===a.error}function eD(e){return(e&&e.type)===a.redirect}function eC(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function eL(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function eP(e){return H.has(e.toLowerCase())}async function ek(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[l,s]=o[i],u=e.find(e=>(null==e?void 0:e.route.id)===l);if(!u)continue;let c=n.find(e=>e.route.id===u.route.id),d=null!=c&&!en(c,u)&&(a&&a[u.route.id])!==void 0;eR(s)&&d&&await eM(s,r,!1).then(e=>{e&&(t[l]=e)})}}async function eO(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:o,controller:i}=r[n],l=t[a];e.find(e=>(null==e?void 0:e.route.id)===o)&&eR(l)&&(d(i,"Expected an AbortController for revalidating fetcher deferred result"),await eM(l,i.signal,!0).then(e=>{e&&(t[a]=e)}))}}async function eM(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 eT(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function ej(e,t){let r="string"==typeof t?m(t).search:t.search;if(e[e.length-1].route.index&&eT(r||""))return e[e.length-1];let n=k(e);return n[n.length-1]}function eU(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n){if(null!=a)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};else if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};else if(void 0!==i)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function eA(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 e_(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function eB(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}Symbol("deferred")},97271:function(e,t,r){r.d(t,{Ge:()=>g,N_:()=>O,Ys:()=>y,k2:()=>M,pg:()=>C});var n,a,o,i,l,s,u=r(73271),c=r(40626),d=r(97621),h=r(61621);function f(){return(f=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 v=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],m=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"];try{window.__reactRouterVersion="6"}catch(e){}function y(e,t){return(0,h.aE)({basename:null==t?void 0:t.basename,future:f({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,h.zR)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||w(),routes:e,mapRouteProperties:d.wE,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function g(e,t){return(0,h.aE)({basename:null==t?void 0:t.basename,future:f({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,h.TM)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||w(),routes:e,mapRouteProperties:d.wE,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function w(){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),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new h.VV(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}(t.errors)})),t}let b=u.createContext({isTransitioning:!1}),E=u.createContext(new Map),x=(o||(o=r.t(u,2))).startTransition,R=(i||(i=r.t(c,2))).flushSync;function S(e){R?R(e):e()}(o||(o=r.t(u,2))).useId;class D{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 C(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}),[h,f]=u.useState(),[p,v]=u.useState(),[m,y]=u.useState(),g=u.useRef(new Map),{v7_startTransition:w}=n||{},R=u.useCallback(e=>{if(w)x?x(e):e();else e()},[w]),C=u.useCallback((e,t)=>{let{deletedFetchers:n,flushSync:a,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||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(!i||s)return void(a?S(()=>o(e)):R(()=>o(e)));if(a){S(()=>{p&&(h&&h.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=r.window.document.startViewTransition(()=>{S(()=>o(e))});t.finished.finally(()=>{S(()=>{f(void 0),v(void 0),l(void 0),c({isTransitioning:!1})})}),S(()=>v(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}))},[r.window,p,h,g,R]);u.useLayoutEffect(()=>r.subscribe(C),[r,C]),u.useEffect(()=>{s.isTransitioning&&!s.flushSync&&f(new D)},[s]),u.useEffect(()=>{if(h&&i&&r.window){let e=h.promise,t=r.window.document.startViewTransition(async()=>{R(()=>o(i)),await e});t.finished.finally(()=>{f(void 0),v(void 0),l(void 0),c({isTransitioning:!1})}),v(t)}},[R,i,h,r.window]),u.useEffect(()=>{h&&i&&a.location.key===i.location.key&&h.resolve()},[h,p,a.location,i]),u.useEffect(()=>{!s.isTransitioning&&m&&(l(m.state),c({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),y(void 0))},[s.isTransitioning,m]),u.useEffect(()=>{},[]);let P=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]),k=r.basename||"/",O=u.useMemo(()=>({router:r,navigator:P,static:!1,basename:k}),[r,P,k]),M=u.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return u.createElement(u.Fragment,null,u.createElement(d.sp.Provider,{value:O},u.createElement(d.Rq.Provider,{value:a},u.createElement(E.Provider,{value:g.current},u.createElement(b.Provider,{value:s},u.createElement(d.Ix,{basename:k,location:a.location,navigationType:a.historyAction,navigator:P,future:M},a.initialized||r.future.v7_partialHydration?u.createElement(L,{routes:r.routes,future:r.future,state:a}):t))))),null)}let L=u.memo(function(e){let{routes:t,future:r,state:n}=e;return(0,d.ph)(t,void 0,n,r)}),P="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,k=/^(?:[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,viewTransition:y}=e,g=p(e,v),{basename:w}=u.useContext(d.jb),b=!1;if("string"==typeof c&&k.test(c)&&(r=c,P))try{let e=new URL(window.location.href),t=new URL(c.startsWith("//")?e.protocol+c:c),r=(0,h.pb)(t.pathname,w);t.origin===e.origin&&null!=r?c=r+t.search+t.hash:b=!0}catch(e){}let E=(0,d.$P)(c,{relative:a}),x=function(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:l}=void 0===t?{}:t,s=(0,d.Zp)(),c=(0,d.zy)(),f=(0,d.x$)(e,{relative:i});return u.useCallback(t=>{0!==t.button||r&&"_self"!==r||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),s(e,{replace:void 0!==n?n:(0,h.AO)(c)===(0,h.AO)(f),state:a,preventScrollReset:o,relative:i,viewTransition:l}))},[c,s,f,n,a,r,e,o,i,l])}(c,{replace:i,state:l,target:s,preventScrollReset:m,relative:a,viewTransition:y});return u.createElement("a",f({},g,{href:r||E,onClick:b||o?n:function(e){n&&n(e),e.defaultPrevented||x(e)},ref:t,target:s}))}),M=u.forwardRef(function(e,t){let r,{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:i=!1,style:s,to:c,viewTransition:v,children:y}=e,g=p(e,m),w=(0,d.x$)(c,{relative:g.relative}),E=(0,d.zy)(),x=u.useContext(d.Rq),{navigator:R,basename:S}=u.useContext(d.jb),D=null!=x&&function(e,t){let r;void 0===t&&(t={});let n=u.useContext(b);null==n&&(0,h.Oi)(!1);let{basename:a}=(l.useViewTransitionState,(r=u.useContext(d.sp))||(0,h.Oi)(!1),r),o=(0,d.x$)(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=(0,h.pb)(n.currentLocation.pathname,a)||n.currentLocation.pathname,s=(0,h.pb)(n.nextLocation.pathname,a)||n.nextLocation.pathname;return null!=(0,h.B6)(o.pathname,s)||null!=(0,h.B6)(o.pathname,i)}(w)&&!0===v,C=R.encodeLocation?R.encodeLocation(w).pathname:w.pathname,L=E.pathname,P=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;a||(L=L.toLowerCase(),P=P?P.toLowerCase():null,C=C.toLowerCase()),P&&S&&(P=(0,h.pb)(P,S)||P);let k="/"!==C&&C.endsWith("/")?C.length-1:C.length,M=L===C||!i&&L.startsWith(C)&&"/"===L.charAt(k),T=null!=P&&(P===C||!i&&P.startsWith(C)&&"/"===P.charAt(C.length)),j={isActive:M,isPending:T,isTransitioning:D},U=M?n:void 0;r="function"==typeof o?o(j):[o,M?"active":null,T?"pending":null,D?"transitioning":null].filter(Boolean).join(" ");let A="function"==typeof s?s(j):s;return u.createElement(O,f({},g,{"aria-current":U,className:r,ref:t,style:A,to:c,viewTransition:v}),"function"==typeof y?y(j):y)});(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"},97621:function(e,t,r){r.d(t,{$P:()=>m,BV:()=>I,Eu:()=>$,FE:()=>A,Ix:()=>H,LG:()=>_,RQ:()=>w,Rq:()=>d,Zp:()=>E,g:()=>R,jb:()=>h,ph:()=>D,qh:()=>N,r5:()=>B,sp:()=>c,sv:()=>F,vL:()=>U,wE:()=>V,x$:()=>S,zy:()=>g});var n,a,o,i,l=r(73271),s=r(61621);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),h=l.createContext(null),f=l.createContext(null),p=l.createContext({outlet:null,matches:[],isDataRoute:!1}),v=l.createContext(null);function m(e,t){let{relative:r}=void 0===t?{}:t;y()||(0,s.Oi)(!1);let{basename:n,navigator:a}=l.useContext(h),{hash:o,pathname:i,search:u}=S(e,{relative:r}),c=i;return"/"!==n&&(c="/"===i?n:(0,s.HS)([n,i])),a.createHref({pathname:c,search:u,hash:o})}function y(){return null!=l.useContext(f)}function g(){return y()||(0,s.Oi)(!1),l.useContext(f).location}function w(e){y()||(0,s.Oi)(!1);let{pathname:t}=g();return l.useMemo(()=>(0,s.B6)(e,(0,s.RO)(t)),[t,e])}function b(e){l.useContext(h).static||l.useLayoutEffect(e)}function E(){let{isDataRoute:e}=l.useContext(p);return e?function(){let{router:e}=M(k.UseNavigateStable),t=j(O.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.Oi)(!1);let e=l.useContext(c),{basename:t,future:r,navigator:n}=l.useContext(h),{matches:a}=l.useContext(p),{pathname:o}=g(),i=JSON.stringify((0,s.yD)(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)return void n.go(r);let l=(0,s.Gh)(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:(0,s.HS)([t,l.pathname])),(a.replace?n.replace:n.push)(l,a.state,a)},[t,n,i,o,e])}()}let x=l.createContext(null);function R(){let{matches:e}=l.useContext(p),t=e[e.length-1];return t?t.params:{}}function S(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=l.useContext(h),{matches:a}=l.useContext(p),{pathname:o}=g(),i=JSON.stringify((0,s.yD)(a,n.v7_relativeSplatPath));return l.useMemo(()=>(0,s.Gh)(e,JSON.parse(i),o,"path"===r),[e,i,o,r])}function D(e,t,r,n){let a;y()||(0,s.Oi)(!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 v=c?c.pathnameBase:"/";c&&c.route;let m=g();if(t){var w;let e="string"==typeof t?(0,s.Rr)(t):t;"/"===v||(null==(w=e.pathname)?void 0:w.startsWith(v))||(0,s.Oi)(!1),a=e}else a=m;let b=a.pathname||"/",E=b;if("/"!==v){let e=v.replace(/^\//,"").split("/");E="/"+b.replace(/^\//,"").split("/").slice(e.length).join("/")}let x=(0,s.ue)(e,{pathname:E}),R=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(!r)return null;if(r.errors)e=r.matches;else{if(null==(o=n)||!o.v7_partialHydration||0!==t.length||r.initialized||!(r.matches.length>0))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])!==void 0);e>=0||(0,s.Oi)(!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)=>{var o;let s,h=!1,f=null,p=null;r&&(s=u&&n.route.id?u[n.route.id]:void 0,f=n.route.errorElement||C,c&&(d<0&&0===a?(o="route-fallback",z[o]||(z[o]=!0),h=!0,p=null):d===a&&(h=!0,p=n.route.hydrateFallbackElement||null)));let v=t.concat(i.slice(0,a+1)),m=()=>{let t;return t=s?f:h?p: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:v,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?l.createElement(L,{location:r.location,revalidation:r.revalidation,component:f,error:s,children:m(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):m()},null)}(x&&x.map(e=>Object.assign({},e,{params:Object.assign({},d,e.params),pathname:(0,s.HS)([v,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?v:(0,s.HS)([v,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),i,r,n);return t&&R?l.createElement(f.Provider,{value:{location:u({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:s.rc.Pop}},R):R}let C=l.createElement(function(){let e=B(),t=(0,s.pX)(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 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(v.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),O=((a=O||{}).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 M(e){let t=l.useContext(c);return t||(0,s.Oi)(!1),t}function T(e){let t=l.useContext(d);return t||(0,s.Oi)(!1),t}function j(e){let t,r=((t=l.useContext(p))||(0,s.Oi)(!1),t),n=r.matches[r.matches.length-1];return n.route.id||(0,s.Oi)(!1),n.route.id}function U(){let e=M(k.UseRevalidator),t=T(O.UseRevalidator);return l.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function A(){let{matches:e,loaderData:t}=T(O.UseMatches);return l.useMemo(()=>e.map(e=>(0,s.ro)(e,t)),[e,t])}function _(){let e=T(O.UseLoaderData),t=j(O.UseLoaderData);return e.errors&&null!=e.errors[t]?void console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")"):e.loaderData[t]}function B(){var e;let t=l.useContext(v),r=T(O.UseRouteError),n=j(O.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}let z={};function F(e){var t;let r;return t=e.context,(r=l.useContext(p).outlet)?l.createElement(x.Provider,{value:t},r):r}function N(e){(0,s.Oi)(!1)}function H(e){let{basename:t="/",children:r=null,location:n,navigationType:a=s.rc.Pop,navigator:o,static:i=!1,future:c}=e;y()&&(0,s.Oi)(!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.Rr)(n));let{pathname:v="/",search:m="",hash:g="",state:w=null,key:b="default"}=n,E=l.useMemo(()=>{let e=(0,s.pb)(v,d);return null==e?null:{location:{pathname:e,search:m,hash:g,state:w,key:b},navigationType:a}},[d,v,m,g,w,b,a]);return null==E?null:l.createElement(h.Provider,{value:p},l.createElement(f.Provider,{children:r,value:E}))}function I(e){let{children:t,location:r}=e;return D($(t),r)}(i||(i=r.t(l,2))).startTransition;var W=((o=W||{})[o.pending=0]="pending",o[o.success=1]="success",o[o.error=2]="error",o);function $(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)return void r.push.apply(r,$(e.props.children,a));e.type!==N&&(0,s.Oi)(!1),e.props.index&&e.props.children&&(0,s.Oi)(!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=$(e.props.children,a)),r.push(o)}),r}function V(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:l.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:l.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:l.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}new Promise(()=>{}),l.Component}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["491"],{86677:function(e,t,o){var n=o(30255),l=o(68015),r=o(20482),i=o(85009),s=o(96486),a=o(66144),c=o(50609),d=o(19461),u=o.n(d),m=o(48630),h=o.n(m),v=o(30198),p=o(99699);let y=s.MessagePortChannel.wait(window,"channel:connect:client"),f=new i.s,g=(0,v.createBridge)(window,f),w=y.then(e=>{let t=(0,c.FF)();return{remote:(0,a.L4)({async activateReactDevtools(){(0,v.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("788").then(o.bind(o,89495)),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.BX)({loaded:!1}),b=h()();w.then(e=>{let{remote:t,hooks:o}=e;f.bindRemote(t,"sendReactDevtoolsData"),o.hook("onFinishRender",async()=>{k.loaded=!0,b.resolve()})});var _=o(38987),j=o(73271),x=o(62729);let C=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=>{var o,n,l;let{key:r}=e;return o=t.key,null!=(l=null==(n=({top:["left","right"],bottom:["left","right"],left:["top","bottom"],right:["top","bottom"]})[o])?void 0:n.includes(r))&&l}),[l]=o.splice(n,1);return[t,l,o[0],o[1]]},A=(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 E=o(59088),S=o(23205),N=o(7252),R=o(83008),D=o(57773),P=o(95329);let T=e=>{var t;let o=null==(t=e.keepAlive)||t,{when:l}=e,r=(0,j.useRef)(!1);return l&&(r.current=!0),e.load||(o?r.current:l)?(0,n.jsx)("div",{style:{display:!o||l?"unset":"none"},children:e.children}):null};var B=o(5401),L=o(20787);let X=e=>{var t;let[o,l]=(0,B.A)(()=>Promise.resolve(e.onClick()),[]);return(0,n.jsx)("button",{className:L.A.container,onClick:l,"data-type":null!=(t=e.type)?t:"default",disabled:o.loading,children:e.children})};var Y=o(73292),H=o(79537),I=o(40229),O=o(54955),F=o(23134),U=o(42893);let W=e=>{var{src:t,onClose:o}=e,i=(0,H._)(e,["src","onClose"]);let{loaded:s}=(0,O.s)(k);return(0,n.jsxs)(I.a,(0,r._)((0,l._)({className:U.A.container},i),{children:[(0,n.jsx)("iframe",{className:U.A.frame,src:t}),(0,n.jsx)(R.y1J,{className:U.A.closeButton,onClick:o}),(0,n.jsx)("div",{className:U.A.backdrop,style:{display:s?"none":void 0},children:(0,n.jsx)(F.R,{})})]}))},K=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[1];return"string"!=typeof n?null:""===n?"/":n},M=e=>{let t=K(),[o,i]=(0,D.A)(!!t),[s,a]=(0,j.useState)(!1),c=(e=>{var t;let o=null!=(t=null==e?void 0:e.margin)?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]=C((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}})(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=C({top:c,left:d,bottom:window.innerHeight-c-a,right:window.innerWidth-d-s}).map(e=>{let{key:t,value:o}=e;return{key:t,value:"".concat(o,"px")}});if(null==e?void 0:e.clamp)for(let e of u){let t=["top","bottom"].includes(e.key)?window.innerHeight-a:window.innerWidth-s;e.value="clamp(".concat(n,", ").concat(e.value,", ").concat(t,"px)")}let[m,h,...v]=u,{style:p}=l.el;p.transition="",p[m.key]=m.value,p[h.key]=h.value,p[v[0].key]="auto",p[v[1].key]="auto"};(0,x.A)("blur",i),(0,x.A)("mouseup",i),(0,x.A)("touchend",i),(0,x.A)("mousemove",s),(0,x.A)("touchmove",s);let a=e=>{let t="touches"in e?e.touches[0]:e,o=e.currentTarget,n=o.getBoundingClientRect();r({el:o,clickable:!0,moveable:!0,offsetX:t.clientX-n.left,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()}}}})({clamp:!0}),[d]=(0,E.B)();(0,x.A)("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 A(w,1e4)).remote.pullUp("/react/components#inspecting")}catch(e){console.error(e),document.documentElement.style.removeProperty("cursor")}};return(0,P.A)(async()=>{t&&(await A(w,1e4)).remote.pullUp(t)},[]),(0,n.jsxs)(S.Sx,{appearance:d,className:d,hasBackground:!1,style:{height:0,width:0,minHeight:0,minWidth:0},children:[(0,n.jsx)(T,{when:o,keepAlive:!0,load:s,children:(0,n.jsx)("div",{className:Y.A.container,children:(0,n.jsx)(W,{src:e.src,onClose:()=>i(!1),style:{pointerEvents:c.isDragging?"none":"auto"}})})}),(0,n.jsxs)(N.s,(0,r._)((0,l._)({className:Y.A.fab},c.props),{align:"center",children:[(0,n.jsx)(X,{type:"primary",onClick:i,children:(0,n.jsx)("img",{className:Y.A.logo,src:e.logo})}),(0,n.jsx)(X,{onClick:u,children:(0,n.jsx)(R.SbD,{})})]}))]})},J=()=>{let e=window.__modern_js_devtools_manifest;if(!e)throw TypeError("Devtools manifest is not found");let t=e.client;if(!t)throw TypeError("Devtools client source is not found");let o=e.source,l=new URL(t,location.href);if(o){let e=new URL(o,location.href);l.searchParams.set("src",e.href)}return(0,n.jsx)(M,{logo:e.context.def.assets.logo,src:l.href})},q=()=>{let e=document.createElement("div");e.className="_modern_js_devtools_container",document.body.appendChild(e);let t=e.attachShadow({mode:"closed"}),o=document.getElementById("_modern_js_devtools_styles");if(!(o instanceof HTMLTemplateElement))throw Error("template not found");t.appendChild(o.content);let l=document.createElement("div");l.classList.add("_modern_js_devtools_mountpoint","theme-register","container-bYVevn"),t.appendChild(l),(0,_.createRoot)(l).render((0,n.jsx)(J,{}))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",q):q()}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["335","493","564","648","783","792"],function(){return t(98360),t(63653),t(97952),t(30099),t(86677)}),e.O()}]);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/static/js/{lib-router.904905a0.js.LICENSE.txt → lib-router.da7a304c.js.LICENSE.txt}
RENAMED
|
File without changes
|