@modern-js/devtools-client 2.49.4 → 2.50.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 +5 -5
- package/dist/nestedRoutes.json +1 -1
- package/dist/public/sw-proxy.js +1 -1
- package/dist/routes-manifest.json +130 -79
- package/dist/static/css/977.6805d9d2.css +1 -0
- package/dist/static/css/async/client_overview/page.e0c5e73d.css +1 -0
- package/dist/static/css/async/client_pages/page.77da491c.css +1 -0
- package/dist/static/css/async/client_storage/preset/(id)/page.04a7e72b.css +1 -0
- package/dist/static/css/async/client_storage/preset/layout.1177580d.css +1 -0
- package/dist/static/css/async/client_storage/preset/page.1177580d.css +1 -0
- package/dist/static/css/client.8f83eee6.css +1 -0
- package/dist/static/css/components.c51066af.css +1 -0
- package/dist/static/js/293.23479a27.js +2 -0
- package/dist/static/js/770.74f08f7c.js +1 -0
- package/dist/static/js/977.5a67aa7b.js +18 -0
- package/dist/static/js/{991.6c981fe2.js → 991.911eb91e.js} +2 -2
- package/dist/static/js/async/883.aac2d702.js +1 -0
- package/dist/static/js/async/client_config/(toolkit).(type)/page.343ccf40.js +1 -0
- package/dist/static/js/async/client_config/layout.4841f5be.js +1 -0
- package/dist/static/js/async/client_context/builder/{page.504913ed.js → page.9eccaadd.js} +1 -1
- package/dist/static/js/async/client_context/framework/{page.6dd8eadf.js → page.1dcd0598.js} +1 -1
- package/dist/static/js/async/client_context/layout.a59cf1b6.js +1 -0
- package/dist/static/js/async/client_doctor/page.0003ca4f.js +1 -0
- package/dist/static/js/async/client_headers/editor/page.1e969311.js +1 -0
- package/dist/static/js/async/client_headers/layout.ed9de95e.js +1 -0
- package/dist/static/js/async/client_headers/welcome/page.43008445.js +1 -0
- package/dist/static/js/async/client_overview/layout.98957bf0.js +1 -0
- package/dist/static/js/async/client_overview/page.d548e893.js +1 -0
- package/dist/static/js/async/client_pages/layout.6b484518.js +1 -0
- package/dist/static/js/async/client_pages/page.7e93bddc.js +1 -0
- package/dist/static/js/async/client_react/(tab)/page.6bb3fa65.js +1 -0
- package/dist/static/js/async/client_react/offscreen/page.0e6794ce.js +1 -0
- package/dist/static/js/async/client_storage/preset/(id)/page.ee6678ec.js +1 -0
- package/dist/static/js/async/client_storage/preset/layout.300cb677.js +1 -0
- package/dist/static/js/async/client_storage/preset/page.339d1df6.js +1 -0
- package/dist/static/js/builder-runtime.38c82d1e.js +1 -0
- package/dist/static/js/client.339daa25.js +1 -0
- package/dist/static/js/components.92a2edb8.js +1 -0
- package/dist/static/js/lib-router.28d6a20e.js +2 -0
- package/dist/static/js/mount.12a2a0cd.js +1 -0
- package/package.json +18 -14
- package/dist/static/css/522.a0ab2810.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/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/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_context/layout.3a7367e5.js +0 -1
- package/dist/static/js/async/client_doctor/page.c9e1ad5c.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/welcome/page.95a5a242.js +0 -1
- package/dist/static/js/async/client_overview/page.3f33e9c8.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)/page.f24fc2b9.js +0 -1
- package/dist/static/js/async/client_react/offscreen/page.746b81bc.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-router.6ca49914.js +0 -2
- package/dist/static/js/mount.2080c337.js +0 -1
- /package/dist/static/js/{696.53c3f39d.js.LICENSE.txt → 293.23479a27.js.LICENSE.txt} +0 -0
- /package/dist/static/js/{522.1ff9d088.js.LICENSE.txt → 977.5a67aa7b.js.LICENSE.txt} +0 -0
- /package/dist/static/js/{991.6c981fe2.js.LICENSE.txt → 991.911eb91e.js.LICENSE.txt} +0 -0
- /package/dist/static/js/{lib-router.6ca49914.js.LICENSE.txt → lib-router.28d6a20e.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["883"],{10851:function(e,i,t){"use strict";t.r(i),t.d(i,{parse:function(){return o},serialize:function(){return n}});let r=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function o(e,i){if("string"!=typeof e)throw TypeError("argument str must be a string");let t={},r=(i||{}).decode||a,o=0;for(;o<e.length;){let i=e.indexOf("=",o);if(-1===i)break;let n=e.indexOf(";",o);if(-1===n)n=e.length;else if(n<i){o=e.lastIndexOf(";",i-1)+1;continue}let a=e.slice(o,i).trim();if(void 0===t[a]){let o=e.slice(i+1,n).trim();34===o.codePointAt(0)&&(o=o.slice(1,-1)),t[a]=function(e,i){try{return i(e)}catch{return e}}(o,r)}o=n+1}return t}function n(e,i,t){let o=t||{},n=o.encode||s;if("function"!=typeof n)throw TypeError("option encode is invalid");if(!r.test(e))throw TypeError("argument name is invalid");let a=n(i);if(a&&!r.test(a))throw TypeError("argument val is invalid");let p=e+"="+a;if(void 0!==o.maxAge&&null!==o.maxAge){let e=o.maxAge-0;if(Number.isNaN(e)||!Number.isFinite(e))throw TypeError("option maxAge is invalid");p+="; Max-Age="+Math.floor(e)}if(o.domain){if(!r.test(o.domain))throw TypeError("option domain is invalid");p+="; Domain="+o.domain}if(o.path){if(!r.test(o.path))throw TypeError("option path is invalid");p+="; Path="+o.path}if(o.expires){if(!function(e){return"[object Date]"===Object.prototype.toString.call(e)||e instanceof Date}(o.expires)||Number.isNaN(o.expires.valueOf()))throw TypeError("option expires is invalid");p+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(p+="; HttpOnly"),o.secure&&(p+="; Secure"),o.priority)switch("string"==typeof o.priority?o.priority.toLowerCase():o.priority){case"low":p+="; Priority=Low";break;case"medium":p+="; Priority=Medium";break;case"high":p+="; Priority=High";break;default:throw TypeError("option priority is invalid")}if(o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:case"strict":p+="; SameSite=Strict";break;case"lax":p+="; SameSite=Lax";break;case"none":p+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return p}function a(e){return e.includes("%")?decodeURIComponent(e):e}function s(e){return encodeURIComponent(e)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["288"],{87864:function(e,s,b){"use strict";b.d(s,{v:function(){return f}});var a=b("90247"),r=b("86834"),n=b("99231"),t=b("28291"),c=b("86825");let o={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"transparent",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},f=e=>(0,r.jsx)(n.xu,{className:c.container,children:(0,r.jsx)(t.L,(0,a._)({theme:o},e))})},9383:function(e,s,b){"use strict";b.r(s);var a=b("86834");b("5872");var r=b("92927"),n=b("79197"),t=b("99480"),c=b("87864");s.default=()=>{let e={framework:(0,n.R)(t.nb.framework.config),builder:(0,n.R)(t.nb.builder.config),bundler:(0,n.R)(t.nb.bundler.configs)},{toolkit:s,type:b}=(0,r.UO)(),o=e[s][b];return(0,a.jsx)(c.v,{data:o,sortObjectKeys:!0})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["518"],{92987:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return u}});var t=s("86834"),o=s("92927"),r=s("99231");function u(){return(0,t.jsx)(r.xu,{width:"100%",height:"100%",p:"4",style:{overflowY:"scroll"},children:(0,t.jsx)(o.j3,{})})}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["958"],{87864:function(e,s,a){"use strict";a.d(s,{v:function(){return f}});var b=a("90247"),t=a("86834"),r=a("
|
|
1
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["958"],{87864:function(e,s,a){"use strict";a.d(s,{v:function(){return f}});var b=a("90247"),t=a("86834"),r=a("99231"),c=a("28291"),n=a("86825");let o={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"transparent",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},f=e=>(0,t.jsx)(r.xu,{className:n.container,children:(0,t.jsx)(c.L,(0,b._)({theme:o},e))})},84496:function(e,s,a){"use strict";a.r(s);var b=a("86834");a("5872");var t=a("79197"),r=a("99480"),c=a("87864");s.default=()=>{let{context:e}=(0,t.R)(r.nb.framework);return(0,b.jsx)(c.v,{data:e,sortObjectKeys:!0})}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["818"],{87864:function(e,s,a){"use strict";a.d(s,{v:function(){return f}});var b=a("90247"),t=a("86834"),r=a("
|
|
1
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["818"],{87864:function(e,s,a){"use strict";a.d(s,{v:function(){return f}});var b=a("90247"),t=a("86834"),r=a("99231"),c=a("28291"),n=a("86825");let o={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"transparent",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},f=e=>(0,t.jsx)(r.xu,{className:n.container,children:(0,t.jsx)(c.L,(0,b._)({theme:o},e))})},12909:function(e,s,a){"use strict";a.r(s);var b=a("86834");a("5872");var t=a("79197"),r=a("99480"),c=a("87864");s.default=()=>{let{context:e}=(0,t.R)(r.nb.framework);return(0,b.jsx)(c.v,{data:e,sortObjectKeys:!0})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["504"],{17779:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return u}});var t=s("86834"),o=s("92927"),r=s("99231");function u(){return(0,t.jsx)(r.xu,{width:"100%",height:"100%",p:"4",style:{overflowY:"scroll"},children:(0,t.jsx)(o.j3,{})})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["488"],{88640:function(e,r){"use strict";r.Z=function(){for(var e,r,c=0,t="";c<arguments.length;)(e=arguments[c++])&&(r=function e(r){var c,t,s="";if("string"==typeof r||"number"==typeof r)s+=r;else if("object"==typeof r){if(Array.isArray(r))for(c=0;c<r.length;c++)r[c]&&(t=e(r[c]))&&(s&&(s+=" "),s+=t);else for(c in r)r[c]&&(s&&(s+=" "),s+=c)}return s}(e))&&(t&&(t+=" "),t+=r);return t}},32579:function(e,r,c){"use strict";e.exports=c.p+"static/image/rsdoctor-large.eda50fe7.png"},11046:function(e,r,c){"use strict";c.d(r,{Z:function(){return d},x:function(){return u}});var t=c("90247"),s=c("55709"),n=c("16170"),o=c("86834"),a=c("88640"),i=c("99231"),l=c("52783");let d=e=>{let{children:r,className:c,variant:d,clickable:u=!1,selected:x=!1,inset:h=!1}=e,p=(0,n._)(e,["children","className","variant","clickable","selected","inset"]);return(0,o.jsx)(i.xu,(0,s._)((0,t._)({},p),{"data-variant":null!=d?d:"","data-clickable":u,"data-selected":x,"data-inset":h,className:(0,a.Z)(l.card,c),children:r}))},u=e=>(0,o.jsx)(i.kC,(0,t._)({gap:"2",height:"100%",justify:"center",direction:"column",align:"start"},e))},72737:function(e,r,c){"use strict";c.d(r,{Z:function(){return t.Z},x:function(){return t.x}});var t=c("11046")},47384:function(e,r,c){"use strict";c.r(r);var t=c("90247"),s=c("55709"),n=c("86834"),o=c("99231"),a=c("29214"),i=c("52493"),l=c.n(i),d=c("55058"),u=c("88640"),x=c("79197"),h=c("99480"),p=c("32579"),m=c("27873"),j=c("72737");let g=e=>{let{cost:r}=e,[c,t]=r.name.split("->"),[s,a]=[c,t].map(e=>["bootstrap","done"].includes(e)?void 0:"".concat("https://webpack.js.org/api/compiler-hooks","#").concat(e.toLowerCase())),i=r.costs>1e3?"".concat((r.costs/1e3).toFixed(2),"s"):"".concat(r.costs,"ms");return(0,n.jsxs)(o.zs.fC,{children:[(0,n.jsx)(o.zs.xz,{children:(0,n.jsxs)(o.xu,{className:m.costBox,style:{flex:r.costs},children:[(0,n.jsxs)(o.xv,{size:"1",color:"gray",className:(0,u.Z)(m.textTruncation,m.costLabel),children:[l().startCase(r.title),"(",i,")"]}),(0,n.jsx)(o.xu,{className:m.costBar})]})}),(0,n.jsx)(o.zs.VY,{size:"1",children:(0,n.jsxs)(o.xv,{size:"1",color:"gray",children:[(0,n.jsx)(o.rU,{target:"_blank",href:s,children:c}),(0,n.jsxs)(o.xv,{children:[" \xb7\xb7\xb7",i,"\xb7\xb7\xb7 "]}),(0,n.jsx)(o.rU,{target:"_blank",href:a,children:t})]})})]})};r.default=()=>{var e,r,c,i,u,b;let{doctor:f}=(0,x.R)(h.nb);if(!f)throw TypeError("Doctor is not available");let k=(0,x.R)(h.nb.dependencies),{def:v}=(0,x.R)(h.nb).context,C=Object.keys(k).find(e=>e.startsWith("@web-doctor/"))?"Web Doctor":"Rsdoctor",y=null!==(b=null!==(u=null!==(i=null!==(c=null!==(r=null!==(e=k["@web-doctor/webpack-plugin(builder)"])&&void 0!==e?e:k["@web-doctor/rspack-plugin(builder)"])&&void 0!==r?r:k["@web-doctor/webpack-plugin"])&&void 0!==c?c:k["@web-doctor/rspack-plugin"])&&void 0!==i?i:k["@rsdoctor/rspack-plugin"])&&void 0!==u?u:k["@rsdoctor/webpack-plugin"])&&void 0!==b?b:k["@rsdoctor/core"],w=l()(f.summary.costs).sortBy(["startAt","name","costs"]).sortedUniqBy("name").cloneDeep().map(e=>{if("bootstrap->beforeCompile"===e.name)return(0,s._)((0,t._)({},e),{title:"prepare"});if("beforeCompile->afterCompile"===e.name)return(0,s._)((0,t._)({},e),{title:"compile"});if("afterCompile->done"===e.name)return(0,s._)((0,t._)({},e),{title:"optimize"});return(0,s._)((0,t._)({},e),{title:"unknown"})}),N=l().groupBy(f.errors,"description");return(0,n.jsx)(o.kC,{direction:"column",align:"center",p:"4",children:(0,n.jsxs)(o.kC,{wrap:"wrap",gap:"4",mb:"8",justify:"center",className:m.container,children:[(0,n.jsx)(j.Z,{variant:"indicate",className:m.primaryCard,children:(0,n.jsx)(o.Q2,{appearance:"light",hasBackground:!1,asChild:!0,children:(0,n.jsxs)(j.x,{children:[(0,n.jsx)(o.X6,{as:"h1",color:"gray",className:m.heading,children:C}),(0,n.jsx)(o.kC,{gap:"2",children:(0,n.jsx)("button",{type:"button",children:y?"v".concat(y):"Unknown"})}),(0,n.jsxs)(o.rU,{href:v.doctor.quickStart,color:"gray",size:"1",underline:"always",target:"_blank",rel:"noopener noreferrer",children:["Launch ",C," with complete features."]})]})})}),(0,n.jsx)(j.Z,{variant:"indicate",className:m.infoCard,children:(0,n.jsxs)(o.kC,{justify:"between",gap:"2",align:"center",height:"100%",children:[(0,n.jsxs)(o.xu,{children:[(0,n.jsx)(o.xv,{color:"gray",children:"Visit our website"}),(0,n.jsx)(o.kC,{align:"center",asChild:!0,children:(0,n.jsxs)(o.rU,{href:v.doctor.home,target:"_blank",rel:"noopener noreferrer",children:[(0,n.jsx)(a.WRS,{}),(0,n.jsx)(o.xv,{children:(0,d.Lk)(v.doctor.home).host})]})})]}),(0,n.jsx)("img",{className:m.logo,src:p})]})}),(0,n.jsx)(j.Z,{variant:"indicate",className:m.countCard,children:(0,n.jsxs)(j.x,{children:[(0,n.jsxs)(o.xv,{className:m.countText,size:"1",children:[(0,n.jsx)(a.bMg,{})," ",f.numModules," modules"]}),(0,n.jsxs)(o.xv,{className:m.countText,size:"1",children:[(0,n.jsx)(a.hsV,{})," ",f.numPackages," packages"]}),(0,n.jsxs)(o.xv,{className:m.countText,size:"1",children:[(0,n.jsx)(a.DlH,{})," ",f.numChunks," chunks"]})]})}),(0,n.jsx)(j.Z,{variant:"indicate",className:m.compileCostCard,children:(0,n.jsxs)(j.x,{children:[(0,n.jsx)(o.kC,{asChild:!0,align:"center",gap:"1",children:(0,n.jsxs)(o.X6,{as:"h3",size:"2",color:"gray",children:[(0,n.jsx)(a.h4y,{}),"Compile Overall"]})}),(0,n.jsx)(o.kC,{width:"100%",gap:"1",children:w.map(e=>(0,n.jsx)(g,{cost:e},e.name))})]})}),(0,n.jsx)(j.Z,{variant:"indicate",width:"100%",children:(0,n.jsxs)(j.x,{children:[(0,n.jsxs)(o.xv,{weight:"bold",size:"1",color:"gray",children:["Found ",l().size(N)," ",l().size(N)>1?"errors":"error"]}),Object.entries(N).map(e=>{let[r,c]=e;return(0,n.jsxs)(o.xu,{className:m.errorItem,children:[(0,n.jsx)(a.Sbn,{className:m.errorIcon})," ",(0,n.jsx)(o.xv,{size:"1",className:m.textTruncation,children:r}),c.length>1&&(0,n.jsxs)(o.xv,{size:"1",className:m.errorCount,children:["(x",c.length,")"]})]},r)})]})})]})})}},27873:function(e,r,c){"use strict";c.r(e.exports={"compile-cost-card":"compile-cost-card-ec02c5",compileCostCard:"compile-cost-card-ec02c5",container:"container-ec02c5","cost-bar":"cost-bar-ec02c5",costBar:"cost-bar-ec02c5","cost-box":"cost-box-ec02c5",costBox:"cost-box-ec02c5","cost-label":"cost-label-ec02c5",costLabel:"cost-label-ec02c5","count-card":"count-card-ec02c5",countCard:"count-card-ec02c5","count-text":"count-text-ec02c5",countText:"count-text-ec02c5","error-item":"error-item-ec02c5",errorItem:"error-item-ec02c5",heading:"heading-ec02c5","info-card":"info-card-ec02c5",infoCard:"info-card-ec02c5",logo:"logo-ec02c5","primary-card":"primary-card-ec02c5",primaryCard:"primary-card-ec02c5","text-truncation":"text-truncation-ec02c5",textTruncation:"text-truncation-ec02c5"})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["730"],{13493:function(e,s,a){"use strict";a.d(s,{P:function(){return v}});var r=a("90247"),l=a("55709"),n=a("16170"),i=a("86834"),c=a("99231"),t=a("89677"),d=a("5872"),o=a("81733"),u=a("79197"),h=a("7580"),x=a("68492");let v=e=>{var{$data:s=(0,o.sj)([]),disabled:a,placeholders:v}=e,f=(0,n._)(e,["$data","disabled","placeholders"]);let j=(0,u.R)(s);return(0,d.useEffect)(()=>{j.length<=0&&s.push({id:(0,t.nanoid)(),key:"",value:""})},[j.length]),(0,i.jsx)(c.xu,(0,l._)((0,r._)({className:h.container},f),{children:j.map((e,r)=>(0,i.jsx)(x.s,{$data:s[r],disabled:a,placeholders:v,onDelete:()=>s.splice(r,1),onInsert:()=>s.splice(r+1,0,{id:(0,t.nanoid)(),key:"",value:""})},e.id))}))}},68492:function(e,s,a){"use strict";a.d(s,{s:function(){return t}});var r=a("86834"),l=a("99231");a("5872");var n=a("29214"),i=a("79197"),c=a("86545");let t=e=>{let{$data:s,onDelete:a,onInsert:t,disabled:d,placeholders:o=["Key...","Value..."]}=e,u=(0,i.R)(s);return(0,r.jsxs)(l.xu,{className:c.inputPair,"aria-disabled":d,children:[(0,r.jsx)(l.nv.f,{value:u.key,disabled:d,placeholder:o[0],onChange:e=>s.key=e.currentTarget.value}),(0,r.jsx)(l.xu,{asChild:!0,flexGrow:"1",children:(0,r.jsx)(l.nv.f,{value:u.value,disabled:d,placeholder:o[1],onChange:e=>s.value=e.currentTarget.value})}),(0,r.jsxs)(l.xu,{className:c.actions,children:[(0,r.jsx)(l.hU,{variant:"ghost",color:"gray",onClick:a,children:(0,r.jsx)(n.O$V,{})}),(0,r.jsx)(l.hU,{variant:"ghost",color:"gray",onClick:t,children:(0,r.jsx)(n.PW$,{})})]})]},u.id)}},98214:function(e,s,a){"use strict";a.r(s);var r=a("86834"),l=a("52493"),n=a.n(l),i=a("5872"),c=a("99231"),t=a("79197"),d=a("81733"),o=a("55058"),u=a("81695"),h=a("50131"),x=a("13493");s.default=()=>{let e=(0,t.R)(u.ok),s=!!e.service.href,a=(0,i.useMemo)(()=>{var s;return(0,d.sj)(null!==(s=n().cloneDeep(e.service.rules))&&void 0!==s?s:[])},[]),l=(0,t.R)(a),v=s?"Active":"Offline",f=async()=>{await (0,u.gM)(l.filter(e=>e.key))},j=async()=>{await (0,u.m)()};return(0,r.jsxs)(c.xu,{className:h.container,children:[(0,r.jsx)(c.X6,{mt:"4",children:"Header Modifier"}),(0,r.jsxs)(c.kC,{align:"center",gap:"1",children:[(0,r.jsx)(c.xu,{className:h.signal,"data-active":s}),(0,r.jsx)(c.xv,{color:"gray",size:"1",children:v}),e.service.href&&(0,r.jsx)(c.rU,{size:"1",href:e.service.href,target:"_blank",children:(0,o.Lk)(e.service.href).pathname})]}),(0,r.jsx)(x.P,{$data:a,disabled:s,my:"3",placeholders:["Match header field...","Replace by..."]}),(0,r.jsx)(c.kC,{justify:"end",gap:"2",children:s?(0,r.jsx)(c.zx,{color:"red",onClick:j,children:"Unregister"}):(0,r.jsx)(c.zx,{onClick:f,children:"Register"})})]})}},50131:function(e,s,a){"use strict";a.r(e.exports={signal:"signal-ed942f"})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["925"],{4612:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return u}});var n=s("86834"),r=s("92927"),o=s("99231");function u(){return(0,n.jsx)(o.xu,{width:"100%",height:"100%",pt:"6",style:{overflowY:"scroll"},children:(0,n.jsx)(o.xu,{mx:"auto",style:{maxWidth:"40rem"},children:(0,n.jsx)(r.j3,{})})})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["860"],{19523:function(e,s,r){"use strict";r.r(s);var l=r("86834"),n=r("92927"),i=r("99231");r("5872");s.default=()=>{let e=(0,n.s0)();return(0,l.jsxs)(i.xu,{children:[(0,l.jsx)(i.X6,{my:"4",children:"Header Modifier"}),(0,l.jsx)(i.xv,{as:"p",mb:"2",children:"Modifying headers of requests, useful for switch between traffic lanes."}),(0,l.jsxs)(i.xv,{as:"p",children:["That will register",(0,l.jsx)(i.rU,{href:"/sw-proxy.js",target:"_blank",mx:"1",children:"/sw-proxy.js"}),"as a service worker to handle all requests under",(0,l.jsx)(i.rU,{mx:"1",children:location.host})]}),(0,l.jsx)(i.zx,{my:"4",onClick:()=>e("../editor"),children:"Enable"})]})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["988"],{56109:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var s=n("86834"),o=n("92927"),r=n("99231");function u(){return(0,s.jsx)(r.xu,{width:"100%",height:"100%",pt:"6",style:{overflowY:"scroll"},children:(0,s.jsx)(o.j3,{})})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["161"],{88640:function(e,r){"use strict";r.Z=function(){for(var e,r,i=0,n="";i<arguments.length;)(e=arguments[i++])&&(r=function e(r){var i,n,a="";if("string"==typeof r||"number"==typeof r)a+=r;else if("object"==typeof r){if(Array.isArray(r))for(i=0;i<r.length;i++)r[i]&&(n=e(r[i]))&&(a&&(a+=" "),a+=n);else for(i in r)r[i]&&(a&&(a+=" "),a+=i)}return a}(e))&&(n&&(n+=" "),n+=r);return n}},11046:function(e,r,i){"use strict";i.d(r,{Z:function(){return d},x:function(){return f}});var n=i("90247"),a=i("55709"),t=i("16170"),s=i("86834"),c=i("88640"),l=i("99231"),o=i("52783");let d=e=>{let{children:r,className:i,variant:d,clickable:f=!1,selected:h=!1,inset:p=!1}=e,x=(0,t._)(e,["children","className","variant","clickable","selected","inset"]);return(0,s.jsx)(l.xu,(0,a._)((0,n._)({},x),{"data-variant":null!=d?d:"","data-clickable":f,"data-selected":h,"data-inset":p,className:(0,c.Z)(o.card,i),children:r}))},f=e=>(0,s.jsx)(l.kC,(0,n._)({gap:"2",height:"100%",justify:"center",direction:"column",align:"start"},e))},72737:function(e,r,i){"use strict";i.d(r,{Z:function(){return n.Z},x:function(){return n.x}});var n=i("11046")},51090:function(e,r,i){"use strict";i.r(r);var n=i("86834"),a=i("99231");i("5872");var t=i("29214"),s=i("55058"),c=i("79197"),l=i("99480");i("52783");var o=i("70870"),d=i("72737");let f={webpack:"webpack",rspack:"@rspack/core"};r.default=()=>{let e=(0,c.R)(l.nb.framework).context,{def:r}=(0,c.R)(l.nb).context,i=(0,c.R)(l.nb.dependencies),h=(0,c.R)(l.nb.builder).context,{compileDuration:p}=(0,c.R)(l.nb).performance,x=window.navigator.userAgent.includes("Mac OS"),{toolsType:u}=e;if("app-tools"!==u)throw Error();let g=r.packages.appTools,j=i[g],{bundlerType:m}=h,b=f[m],v=i[b];return(0,n.jsxs)(a.kC,{direction:"column",align:"center",children:[(0,n.jsxs)(a.kC,{wrap:"wrap",gap:"4",mb:"8",justify:"center",className:o.container,children:[(0,n.jsx)(d.Z,{variant:"indicate",className:o.primaryCard,children:(0,n.jsx)(a.Q2,{appearance:"dark",hasBackground:!1,asChild:!0,children:(0,n.jsxs)(d.x,{children:[(0,n.jsx)(a.X6,{as:"h1",className:o.heading,children:"DevTools"}),(0,n.jsx)(a.kC,{gap:"2",children:(0,n.jsxs)("button",{type:"button",children:["v",l.q4]})}),(0,n.jsxs)(a.xv,{as:"p",size:"1",children:["Powered by ",g,"@",j]})]})})}),(0,n.jsx)(d.Z,{variant:"indicate",className:o.infoCard,children:(0,n.jsxs)(a.kC,{justify:"between",gap:"3",align:"center",height:"100%",children:[(0,n.jsxs)(a.xu,{children:[(0,n.jsx)(a.xv,{color:"gray",children:"Visit our website"}),(0,n.jsx)(a.kC,{align:"center",asChild:!0,children:(0,n.jsxs)(a.rU,{href:r.announcement.fallback,target:"_blank",rel:"noopener noreferrer",children:[(0,n.jsx)(t.WRS,{}),(0,n.jsx)(a.xv,{children:(0,s.Lk)(r.announcement.fallback).host})]})})]}),(0,n.jsx)(t.vrJ,{size:"50",color:"var(--gray-6)"})]})}),(0,n.jsx)(d.Z,{variant:"indicate",className:o.pluginCard,children:(0,n.jsxs)(a.kC,{align:"center",justify:"between",height:"100%",gap:"6",children:[(0,n.jsxs)(a.xu,{children:[(0,n.jsx)(a.xv,{as:"p",size:"8",weight:"bold",style:{color:"var(--gray-11)"},mb:"2",children:e.plugins.length}),(0,n.jsx)(a.xv,{as:"p",size:"1",color:"gray",children:"Framework Plugins"})]}),(0,n.jsx)(t.hjZ,{size:"50",color:"var(--gray-6)"})]})}),(0,n.jsx)(d.Z,{variant:"indicate",className:o.compileTimeCard,children:(0,n.jsxs)(a.kC,{align:"center",justify:"between",height:"100%",gap:"6",children:[(0,n.jsxs)(a.xu,{children:[(0,n.jsxs)(a.xv,{as:"p",size:"8",weight:"bold",style:{color:"var(--gray-11)"},children:[(p/1e3).toFixed(2),"s"]}),(0,n.jsxs)(a.xv,{as:"p",size:"1",color:"gray",children:["Compiled in ",b,"@",v]})]}),(0,n.jsx)(t.XoX,{size:"50",color:"var(--gray-6)"})]})})]}),(0,n.jsxs)(a.kC,{align:"center",className:o.bottomTip,children:[(0,n.jsx)(a.xv,{color:"gray",size:"2",children:"Use"}),(0,n.jsxs)(a.Tz,{mx:"2",children:["Shift + ",x?"Opt":"Alt"," + D"]}),(0,n.jsx)(a.xv,{color:"gray",size:"2",children:"to open DevTools"})]})]})}},70870:function(e,r,i){"use strict";i.r(e.exports={"bottom-tip":"bottom-tip-f5f561",bottomTip:"bottom-tip-f5f561","compile-time-card":"compile-time-card-f5f561",compileTimeCard:"compile-time-card-f5f561",container:"container-f5f561",heading:"heading-f5f561","indicate-bar":"indicate-bar-f5f561",indicateBar:"indicate-bar-f5f561","info-card":"info-card-f5f561",infoCard:"info-card-f5f561","plugin-card":"plugin-card-f5f561",pluginCard:"plugin-card-f5f561","primary-card":"primary-card-f5f561",primaryCard:"primary-card-f5f561"})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["631"],{73835:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var s=n("86834"),o=n("92927"),r=n("99231");function u(){return(0,s.jsx)(r.xu,{width:"100%",height:"100%",pt:"9",style:{overflowY:"scroll"},children:(0,s.jsx)(o.j3,{})})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["718"],{34786:function(e,t,n){"use strict";function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function i(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}n.d(t,{S1:function(){return i},jU:function(){return o},on:function(){return r}});var o="undefined"!=typeof window},70398:function(e,t,n){"use strict";var r=n("5872"),i=n("34786");t.Z=function(e,t){void 0===t&&(t=!0);var n=(0,r.useState)(!1),o=n[0],a=n[1];return(0,r.useEffect)(function(){var n=function(){return a(!0)},r=function(){return a(!1)};t&&e&&e.current&&((0,i.on)(e.current,"mouseover",n),(0,i.on)(e.current,"mouseout",r));var o=e.current;return function(){t&&o&&((0,i.S1)(o,"mouseover",n),(0,i.S1)(o,"mouseout",r))}},[t,e]),o}},16887:function(e,t,n){"use strict";n.d(t,{N:function(){return c}});var r=n("86834"),i=n("5872"),o=n("1607"),a=n("99231"),s=n("60441"),l=n("85479"),u=n("17862");let c=e=>{let{badge:t,route:n,title:c,children:d,open:f,onOpenChange:p}=e,{matched:x}=(0,i.useContext)(u.K),[h,m]=(0,i.useState)(!1),j=x===n,v=j||(null!=f?f:h);return(0,r.jsx)(a.xu,{p:"3",className:l.container,children:(0,r.jsxs)(o.fC,{open:v,onOpenChange:null!=p?p:m,children:[(0,r.jsxs)(o.xz,{className:l.trigger,children:[t,(0,r.jsx)(a.xv,{className:l.urlText,style:{opacity:x&&!j?.5:1},children:c}),(0,r.jsx)(a.xu,{flexGrow:"1"}),(0,r.jsx)(a.xu,{className:l.mark,"data-open":v,children:(0,r.jsx)(s.jnn,{})})]}),(0,r.jsx)(o.VY,{className:l.content,children:d})]})})}},17862:function(e,t,n){"use strict";n.d(t,{K:function(){return r}});let r=(0,n("5872").createContext)({url:""})},96737:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});var r=n("86834");n("5872");var i=n("99231");let o=()=>(0,r.jsx)(i.xv,{children:"Unimplemented."})},68199:function(e,t,n){"use strict";n.d(t,{u:function(){return r}});let r=(0,n("5872").createContext)([])},14492:function(e,t,n){"use strict";n.d(t,{e:function(){return f}});var r=n("86834"),i=n("5872"),o=n("99231"),a=n("52493"),s=n.n(a),l=n("55058"),u=n("70398"),c=n("68199"),d=n("57433");let f=e=>{var t,n;let{route:a}=e,p=s().castArray(a),x=s().last(p),h="_component"in x&&s().isString(x._component)?x._component:null,m=(0,l.As)("/",...p.map(e=>e.path).filter(s().isString))||"/",j=null!==(n=x.index)&&void 0!==n&&n,v="/"===m,y=(0,i.useContext)(c.u),g=!1===y||y.length>0,b=!!y&&!!s().find(y,{route:{id:x.id}}),C=(0,i.useRef)(null),N=(0,u.Z)(C);return(0,r.jsxs)(o.xu,{ref:C,children:[(0,r.jsxs)(o.kC,{gap:"2",align:"center",mb:x.children&&"1",children:[(0,r.jsxs)(o.xu,{className:d.endpointContainer,"data-matched":!g||b,children:[j&&v||(0,r.jsx)(o.EK,{className:d.endpointTag,"data-compose":j&&"head",children:m}),j&&(0,r.jsx)(o.EK,{className:d.endpointTag,color:"purple","data-compose":!v&&"tail",children:"/(index)"})]}),h&&(0,r.jsx)(o.rU,{className:d.shyLink,style:{visibility:N?"visible":"hidden"},children:h})]}),(0,r.jsx)(o.kC,{direction:"column",gap:"1",children:null===(t=x.children)||void 0===t?void 0:t.map(e=>(0,r.jsx)(f,{route:p.concat(e)},e.id))})]})}},16197:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n("86834"),i=n("77393"),o=n("99231"),a=n("5872"),s=n("55058"),l=n("17862"),u=n("68199"),c=n("14492");let d=e=>{let{remixRoutes:t,route:n}=e,{matched:d,url:f}=(0,a.useContext)(l.K),p=(0,a.useMemo)(()=>{if(d!==n)return!d&&[];{var e;if(!t)return[];let r=(0,s.v$)(f.replace(n.urlPath,"/")),o=null!==(e=(0,i.fp)(t,r))&&void 0!==e?e:[];return!!o.length&&o}},[t,d,f]);return(null==t?void 0:t.length)?(0,r.jsx)(u.u.Provider,{value:p,children:(0,r.jsx)(o.kC,{gap:"2",direction:"column",children:t.map(e=>(0,r.jsx)(c.e,{route:e},e.id))})}):null}},85080:function(e,t,n){"use strict";n.d(t,{U:function(){return f}});var r=n("86834"),i=n("52493"),o=n.n(i),a=n("5872"),s=n("81733"),l=n("79197"),u=n("96737"),c=n("16197"),d=n("99480");(0,s.sj)({});let f=e=>{let{route:t}=e,{entryName:n}=t;if(!n)throw TypeError("");let{entrypoints:i}=(0,l.R)(d.nb.framework).context,s=o().find(i,{entryName:n});if(!s)throw TypeError("Can't found the entrypoint named ".concat(JSON.stringify(t.entryName)));let f=(0,l.R)(d.nb.fileSystemRoutes)[s.entryName];if(!s)throw Error("Can't found the entrypoint named ".concat(JSON.stringify(t.entryName)));return(0,r.jsx)(a.Suspense,{children:(0,r.jsx)(()=>p(f)?(0,r.jsx)(u.j,{}):(0,r.jsx)(c.Z,{remixRoutes:f,route:t}),{})})},p=e=>(null==e?void 0:e[0])&&!("type"in e[0])},38502:function(e,t,n){"use strict";n.d(t,{U:function(){return r.U}});var r=n("85080")},82616:function(e,t,n){"use strict";n.d(t,{e:function(){return u}});var r=n("86834"),i=n("5872"),o=n("99231"),a=n("16887"),s=n("5489"),l=n("38502");let u=e=>{let{route:t}=e;return(0,r.jsx)(a.N,{badge:c,route:t,title:t.urlPath,children:(0,r.jsxs)(o.kC,{direction:"column",gap:"2",children:[(0,r.jsx)(o.xr,{scrollbars:"horizontal",children:(0,r.jsx)(s.b,{route:t})}),(0,r.jsx)(o.xr,{scrollbars:"horizontal",children:(0,r.jsx)(i.Suspense,{children:(0,r.jsx)(l.U,{route:t})})})]})})},c=(0,r.jsx)(o.Ct,{color:"cyan",children:"Entry"})},5489:function(e,t,n){"use strict";n.d(t,{b:function(){return c}});var r=n("86834");n("5872");var i=n("52493"),o=n.n(i),a=n("99231"),s=n("79197"),l=n("82023"),u=n("99480");let c=e=>{let{route:t}=e,{entrypoints:n}=(0,s.R)(u.nb.framework).context,i=t.entryName&&o().find(n,{entryName:t.entryName});if(!i)throw Error("Can't found the entrypoint named ".concat(JSON.stringify(t.entryName)));return(0,r.jsxs)(a.xu,{className:l.stats,children:[(0,r.jsxs)(a.kC,{gap:"1",children:[(0,r.jsx)(a.cK,{children:"Directory: "}),(0,r.jsx)(a.xv,{children:i.absoluteEntryDir})]}),(0,r.jsxs)(a.kC,{gap:"1",children:[(0,r.jsx)(a.cK,{children:"Entry:"}),(0,r.jsx)(a.xv,{children:i.entry})]})]})}},4992:function(e,t,n){"use strict";n.d(t,{e:function(){return r.e}});var r=n("82616")},97083:function(e,t,n){"use strict";n.d(t,{j:function(){return l}});var r=n("86834");n("5872");var i=n("52493"),o=n.n(i),a=n("4992"),s=n("76533");let l=e=>{let{route:t}=e;return o().isString(t.entryName)?(0,r.jsx)(a.e,{route:t}):(0,r.jsx)(s.R,{route:t})}},76533:function(e,t,n){"use strict";n.d(t,{R:function(){return a}});var r=n("86834");n("5872");var i=n("99231"),o=n("16887");let a=e=>{let{route:t}=e;return(0,r.jsx)(o.N,{badge:s,route:t,title:t.urlPath,children:(0,r.jsx)(i.Zb,{children:"Unknown route type."})})},s=(0,r.jsx)(i.Ct,{color:"gray",children:"Unknown"})},95879:function(e,t,n){"use strict";n.r(t);var r=n("86834"),i=n("99231"),o=n("5872"),a=n("55058"),s=n("29214"),l=n("79197"),u=n("99480"),c=n("56890"),d=n("17862"),f=n("97083");t.default=()=>{let{serverRoutes:e}=(0,l.R)(u.nb.framework).context,[t,n]=(0,o.useState)({url:""}),p=t=>{let{pathname:r}=(0,a.Lk)(t);n({url:t,matched:e.find(e=>r===e.urlPath||r.startsWith((0,a.jE)(e.urlPath)))})};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.kC,{className:c.list,direction:"column",gap:"2",align:"stretch",justify:"between",mx:"auto",children:(0,r.jsx)(d.K.Provider,{value:t,children:e.map(e=>(0,r.jsx)(f.j,{route:e},e.entryPath))})}),(0,r.jsx)(i.xu,{className:c.input,children:(0,r.jsx)(i.xu,{mx:"auto",style:{maxWidth:"40rem"},children:(0,r.jsx)(i.nv.f,{placeholder:"/foo?bar#baz",onChange:e=>p(e.target.value),type:"url",autoComplete:"false",autoCapitalize:"false",autoCorrect:"false",children:(0,r.jsx)(i.nv.g,{children:(0,r.jsx)(s.IIh,{})})})})})]})}},56890:function(e,t,n){"use strict";n.r(e.exports={input:"input-c439e4",list:"list-c439e4"})},1607:function(e,t,n){"use strict";n.d(t,{VY:function(){return w},fC:function(){return k},xz:function(){return E}});var r=n("83197"),i=n("5872"),o=n("67844"),a=n("82602"),s=n("88654"),l=n("59504"),u=n("88340"),c=n("63422"),d=n("78910"),f=n("63018");let p="Collapsible",[x,h]=(0,a.b)(p),[m,j]=x(p),v=(0,i.forwardRef)((e,t)=>{let{__scopeCollapsible:n,open:o,defaultOpen:a,disabled:l,onOpenChange:u,...d}=e,[p=!1,x]=(0,s.T)({prop:o,defaultProp:a,onChange:u});return(0,i.createElement)(m,{scope:n,disabled:l,contentId:(0,f.M)(),open:p,onOpenToggle:(0,i.useCallback)(()=>x(e=>!e),[x])},(0,i.createElement)(c.WV.div,(0,r.Z)({"data-state":N(p),"data-disabled":l?"":void 0},d,{ref:t})))}),y=(0,i.forwardRef)((e,t)=>{let{__scopeCollapsible:n,...a}=e,s=j("CollapsibleTrigger",n);return(0,i.createElement)(c.WV.button,(0,r.Z)({type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":N(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled},a,{ref:t,onClick:(0,o.M)(e.onClick,s.onOpenToggle)}))}),g="CollapsibleContent",b=(0,i.forwardRef)((e,t)=>{let{forceMount:n,...o}=e,a=j(g,e.__scopeCollapsible);return(0,i.createElement)(d.z,{present:n||a.open},({present:e})=>(0,i.createElement)(C,(0,r.Z)({},o,{ref:t,present:e})))}),C=(0,i.forwardRef)((e,t)=>{let{__scopeCollapsible:n,present:o,children:a,...s}=e,d=j(g,n),[f,p]=(0,i.useState)(o),x=(0,i.useRef)(null),h=(0,u.e)(t,x),m=(0,i.useRef)(0),v=m.current,y=(0,i.useRef)(0),b=y.current,C=d.open||f,k=(0,i.useRef)(C),E=(0,i.useRef)();return(0,i.useEffect)(()=>{let e=requestAnimationFrame(()=>k.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,l.b)(()=>{let e=x.current;if(e){E.current=E.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();m.current=t.height,y.current=t.width,!k.current&&(e.style.transitionDuration=E.current.transitionDuration,e.style.animationName=E.current.animationName),p(o)}},[d.open,o]),(0,i.createElement)(c.WV.div,(0,r.Z)({"data-state":N(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!C},s,{ref:h,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style}}),C&&a)});function N(e){return e?"open":"closed"}let k=v,E=y,w=b}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["483"],{74838:function(e,t,s){"use strict";s.r(t);var n=s("86834"),o=s("92927"),r=s("99231"),i=s("5872"),a=s("3570"),c=s("99480"),l=s("21364"),h=s("24326");t.default=()=>{let e=(0,o.UO)(),t=(0,r.TC)(),s=(0,o.TH)(),u=(0,o.s0)(),d="light"===t.appearance?"light":"dark",v=(0,h.X7)(c.dL);(0,i.useEffect)(()=>{v.remote.activateReactDevtools()},[]),(0,i.useEffect)(()=>{if("#inspecting"===s.hash){let e=()=>{l.Q.send("startInspectingNative",null),u(s.pathname,{replace:!0})};"active"===l.Q.status?e():l.Q.hookOnce("active",e)}},[s,u]);let f=(0,i.useMemo)(()=>{let e=(0,a.createBridge)(window.parent,l.Q),t=(0,a.createStore)(e);return(0,a.initialize)(window.parent,{bridge:e,store:t})},[]);return(0,n.jsx)(r.xu,{width:"100%",height:"100%",pt:"5",children:f&&(0,n.jsx)(f,{browserTheme:d,overrideTab:"profiler"===e.tab?"profiler":"components",hideSettings:!1})})}},21364:function(e,t,s){"use strict";s.d(t,{Q:function(){return o}});var n=s("99480");let o=new(s("24933")).S;n.dL.then(e=>{o.bindRemote(e.remote,"sendReactDevtoolsData")})},24933:function(e,t,s){"use strict";s.d(t,{S:function(){return o}});var n=s("65872");class o extends n.gl{listen(e){return this.hook("receive",e),e}send(e,t,s){this.callHook("send",{event:e,payload:t,transferable:s})}bindRemote(e,t){var s=this;return e.$functions[t]=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];s.callHook("receive",e,...n)},this.hook("send",function(){for(var s=arguments.length,n=Array(s),o=0;o<s;o++)n[o]=arguments[o];e[t](...n)}),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")})}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["752"],{48221:function(e,s,o){"use strict";o.r(s);var l=o("86834"),n=o("99231");o("5872");s.default=()=>(0,l.jsx)(n.xu,{children:(0,l.jsx)(n.xv,{children:"React DevTools is unavailable for offscreen."})})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["244"],{88640:function(e,t){"use strict";t.Z=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(o&&(o+=" "),o+=r);else for(n in t)t[n]&&(o&&(o+=" "),o+=n)}return o}(e))&&(r&&(r+=" "),r+=t);return r}},11046:function(e,t,n){"use strict";n.d(t,{Z:function(){return u},x:function(){return d}});var r=n("90247"),o=n("55709"),l=n("16170"),i=n("86834"),s=n("88640"),a=n("99231"),c=n("52783");let u=e=>{let{children:t,className:n,variant:u,clickable:d=!1,selected:x=!1,inset:p=!1}=e,h=(0,l._)(e,["children","className","variant","clickable","selected","inset"]);return(0,i.jsx)(a.xu,(0,o._)((0,r._)({},h),{"data-variant":null!=u?u:"","data-clickable":d,"data-selected":x,"data-inset":p,className:(0,s.Z)(c.card,n),children:t}))},d=e=>(0,i.jsx)(a.kC,(0,r._)({gap:"2",height:"100%",justify:"center",direction:"column",align:"start"},e))},72737:function(e,t,n){"use strict";n.d(t,{Z:function(){return r.Z},x:function(){return r.x}});var r=n("11046")},80875:function(e,t,n){"use strict";n.d(t,{p:function(){return p}});var r=n("90247"),o=n("55709"),l=n("16170"),i=n("86834"),s=n("4537"),a=n("5872"),c=n("29214"),u=n("99231"),d=n("96911");let x=e=>{let{title:t,content:n,children:a}=e,x=(0,l._)(e,["title","content","children"]);return(0,i.jsxs)(s.fC,(0,o._)((0,r._)({},x),{className:d.container,children:[t&&(0,i.jsx)(s.Dx,{children:t}),(0,i.jsx)(s.dk,{children:n}),a&&(0,i.jsx)(s.aU,{altText:"",asChild:!0,children:a}),(0,i.jsx)(u.xu,{flexGrow:"1"}),(0,i.jsx)(s.x8,{className:d.close,"aria-label":"Close",children:(0,i.jsx)(c.cu3,{})})]}))},p=e=>{let{duration:t=5e3}=e,n=(0,l._)(e,["duration"]),[c,u]=(0,a.useState)(!1),p=(0,i.jsxs)(a.Fragment,{children:[(0,i.jsx)(x,(0,o._)((0,r._)({},n),{open:c,onOpenChange:u})),(0,i.jsx)(s.l_,{className:d.viewport})]}),h=(0,a.useRef)(null);return{element:p,open:()=>{u(!0),h.current&&clearTimeout(h.current),h.current=null,t&&(h.current=window.setTimeout(()=>u(!1),t))}}}},49349:function(e,t,n){"use strict";n.r(t);var r=n("90247"),o=n("55709"),l=n("16170"),i=n("86834"),s=n("5872"),a=n("29214"),c=n("92927"),u=n("99231"),d=n("81733"),x=n("96956"),p=n("20411"),h=n("99480"),j=n("80875"),f=n("24326"),g=n("72737");let y=e=>{let{onCopyAction:t,onOpenAction:n,onApplyAction:s,onPasteAction:c}=e,d=(0,l._)(e,["onCopyAction","onOpenAction","onApplyAction","onPasteAction"]);return(0,i.jsxs)(u.kC,(0,o._)((0,r._)({position:"relative",gap:"3",height:"var(--space-5)",align:"center"},d),{children:[(0,i.jsx)(u.u,{content:"Copy as Data URL",delayDuration:200,children:(0,i.jsx)(u.hU,{onClick:t,variant:"ghost",color:"gray",children:(0,i.jsx)(a.oiB,{})})}),(0,i.jsx)(u.u,{content:"Paste from Data URL",delayDuration:200,children:(0,i.jsx)(u.hU,{onClick:c,variant:"ghost",color:"gray",children:(0,i.jsx)(a.MK7,{})})}),(0,i.jsx)(u.u,{content:"Open File",delayDuration:200,children:(0,i.jsx)(u.hU,{onClick:n,variant:"ghost",color:"gray",children:(0,i.jsx)(a.g1w,{})})}),(0,i.jsx)(u.u,{content:"Apply Preset",delayDuration:200,children:(0,i.jsx)(u.hU,{onClick:s,variant:"ghost",color:"gray",children:(0,i.jsx)(a.VyF,{})})})]}))},C=async e=>{let t={cookie:{},localStorage:{},sessionStorage:{}};for(let n of x.dR){let r=e[n];r&&Object.assign(t[n],r)}return await (0,x.l5)(t)},v=e=>{let{title:t,records:n,color:s}=e,a=(0,l._)(e,["title","records","color"]);return(0,i.jsx)(g.Z,(0,o._)((0,r._)({asChild:!0},a),{children:(0,i.jsxs)(u.kC,{direction:"column",gap:"2",children:[(0,i.jsx)(u.xv,{size:"1",weight:"bold",children:t}),(0,i.jsxs)(u.kC,{width:"100%",wrap:"wrap",align:"start",gap:"2",children:[0===n.length&&(0,i.jsx)(u.Ct,{color:"gray",children:"Empty"}),n.map(e=>(0,i.jsxs)(u.Ct,{color:s,children:[e.key,": ",e.value]},e.id))]})]})}))};t.default=()=>{let{revalidate:e}=(0,c.xW)();(0,s.useEffect)(()=>(0,d.Ld)(h.nb,e),[]);let t=(0,c.f_)(),n=[...(0,x.SR)(t,"cookie"),...(0,x.SR)(t,"localStorage"),...(0,x.SR)(t,"sessionStorage")],r=(0,f.X7)(h.D7),o=(0,j.p)({content:"\uD83D\uDD25 Fired"}),l=(0,j.p)({content:"\uD83D\uDCCB Copied"}),a=(0,j.p)({content:"\uD83D\uDCCB Pasted"}),g=async()=>{await C(t),o.open(),e()},m=async()=>{let e=new Blob([JSON.stringify(t)],{type:"application/json"}),n=new FileReader;n.readAsDataURL(e);let r=await new Promise(e=>{n.onload=t=>{var n,r,o;return e(null!==(o=null===(r=t.target)||void 0===r?void 0:null===(n=r.result)||void 0===n?void 0:n.toString())&&void 0!==o?o:null)}});r?(navigator.clipboard.writeText(r),l.open()):console.error("Failed to copy preset as data URL")},w=async()=>{await r.remote.pasteStoragePreset(t),a.open()};return(0,i.jsxs)(u.kC,{direction:"column",gap:"2",children:[(0,i.jsxs)(u.kC,{flexGrow:"0",px:"2",gap:"2",justify:"between",align:"center",width:"100%",children:[(0,i.jsx)(u.xu,{flexShrink:"0",className:p.textEllipsis,children:(0,i.jsx)(u.xv,{size:"1",weight:"bold",color:"gray",children:t.name})}),(0,i.jsx)(y,{flexShrink:"0",flexGrow:"0",px:"2",justify:"end",onCopyAction:m,onPasteAction:w,onOpenAction:()=>r.remote.open(t.filename),onApplyAction:g})]}),(0,i.jsx)(u.xu,{flexGrow:"1",pb:"2",pr:"2",style:{overflowY:"scroll"},children:(0,i.jsxs)(u.kC,{direction:"column",gap:"2",children:[(0,i.jsx)(v,{title:"Cookie",records:n.filter(e=>"cookie"===e.type),color:"yellow"}),(0,i.jsx)(v,{title:"Local Storage",records:n.filter(e=>"localStorage"===e.type),color:"green"}),(0,i.jsx)(v,{title:"Session Storage",records:n.filter(e=>"sessionStorage"===e.type),color:"blue"})]})}),o.element,l.element,a.element]})}},20411:function(e,t,n){"use strict";n.r(e.exports={"text-ellipsis":"text-ellipsis-ba9d1c",textEllipsis:"text-ellipsis-ba9d1c"})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["470"],{88640:function(e,t){"use strict";t.Z=function(){for(var e,t,r=0,a="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,a,s="";if("string"==typeof t||"number"==typeof t)s+=t;else if("object"==typeof t){if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(a=e(t[r]))&&(s&&(s+=" "),s+=a);else for(r in t)t[r]&&(s&&(s+=" "),s+=r)}return s}(e))&&(a&&(a+=" "),a+=t);return a}},11046:function(e,t,r){"use strict";r.d(t,{Z:function(){return d},x:function(){return u}});var a=r("90247"),s=r("55709"),l=r("16170"),i=r("86834"),n=r("88640"),o=r("99231"),c=r("52783");let d=e=>{let{children:t,className:r,variant:d,clickable:u=!1,selected:h=!1,inset:f=!1}=e,g=(0,l._)(e,["children","className","variant","clickable","selected","inset"]);return(0,i.jsx)(o.xu,(0,s._)((0,a._)({},g),{"data-variant":null!=d?d:"","data-clickable":u,"data-selected":h,"data-inset":f,className:(0,n.Z)(c.card,r),children:t}))},u=e=>(0,i.jsx)(o.kC,(0,a._)({gap:"2",height:"100%",justify:"center",direction:"column",align:"start"},e))},72737:function(e,t,r){"use strict";r.d(t,{Z:function(){return a.Z},x:function(){return a.x}});var a=r("11046")},3329:function(e,t,r){"use strict";r.r(t);var a=r("90247"),s=r("55709"),l=r("16170"),i=r("86834"),n=r("92927"),o=r("99231"),c=r("52493"),d=r.n(c),u=r("29214"),h=r("79197"),f=r("81733"),g=r("46132"),p=r("90208"),x=r("96956"),v=r("72737"),m=r("99480"),j=r("24326");let b=e=>{let{selected:t,to:r}=e,s=(0,l._)(e,["selected","to"]),c=(0,n.s0)(),d=(0,n.bS)(null!=r?r:"");return(0,i.jsx)(v.Z,{variant:"small",selected:null!=t?t:!!d,clickable:!0,asChild:!0,onClick:()=>r&&c(r),children:(0,i.jsx)(o.kC,(0,a._)({},s))})},k=e=>{let{preset:t,highlight:r}=e,n=(0,l._)(e,["preset","highlight"]),c=!t.filename.match(/[/\\]node_modules[/\\]/),d=null;return r&&(d=(0,i.jsx)(o.xv,{size:"1",color:"red",asChild:!0,children:(0,i.jsx)(u.XC2,{})})),(0,i.jsxs)(b,(0,s._)((0,a._)({direction:"column"},n),{children:[(0,i.jsxs)(o.xv,{size:"1",weight:"bold",as:"p",mb:"2",children:[t.name," ",c||(0,i.jsx)(o.xv,{size:"1",color:"gray",children:"*"}),d]}),(0,i.jsx)(o.kC,{align:"center",children:(0,i.jsxs)(o.kC,{className:p.previewBadgeList,children:[0===t.items.length&&(0,i.jsx)(o.Ct,{color:"gray",children:"Empty"}),t.items.map(e=>(0,i.jsxs)(o.Ct,{color:x.xq[e.type],children:[e.key,": ",e.value]},e.id))]})})]}))};t.default=()=>{let{storagePresets:e}=(0,h.R)(m.nb).context,t=(0,n.f_)(),r={cookie:(0,a._)({},t.cookie.client,t.cookie.server),localStorage:t.localStorage,sessionStorage:t.sessionStorage},l=(0,j.X7)(m.D7),c=(0,n.s0)(),v={cookie:d()(e).flatMap(e=>d().keys(e.cookie)).countBy().value(),localStorage:d()(e).flatMap(e=>d().keys(e.localStorage)).countBy().value(),sessionStorage:d()(e).flatMap(e=>d().keys(e.sessionStorage)).countBy().value()},y=e.map(e=>(0,s._)((0,a._)({},e),{items:d()((0,x.f)(e)).sortBy(e=>{var t;return null!==(t=v[e.type][e.key])&&void 0!==t?t:0}).reverse().value()})),C=async()=>{let{id:e}=await l.remote.createTemporaryStoragePreset(),t=(0,g.YP)(r=>{let{storagePresets:a}=(0,f.CO)(r(m.nb)).context;d().find(a,{id:e})&&(t(),c("/storage/preset/".concat(e)))})};return(0,i.jsxs)(o.kC,{width:"100%",pt:"4",className:p.container,children:[(0,i.jsxs)(o.kC,{direction:"column",className:p.sidePanel,children:[(0,i.jsxs)(b,{to:"/storage/preset",m:"2",align:"center",gap:"1",children:[(0,i.jsx)(o.xv,{size:"1",weight:"bold",children:"Current Storage"}),(0,i.jsx)(o.xv,{size:"1",color:"red",asChild:!0,children:(0,i.jsx)(u.XC2,{})})]}),(0,i.jsx)(o.xu,{mx:"2",className:p.divider}),(0,i.jsxs)(o.kC,{p:"2",direction:"column",gap:"2",className:p.scrollable,children:[y.map(e=>(0,i.jsx)(k,{to:"/storage/preset/".concat(e.id),preset:e,highlight:e.items.length>0&&d().isMatch(r,d().pick(e,["cookie","localStorage","sessionStorage"]))},e.id)),(0,i.jsx)(b,{justify:"center",align:"center",onClick:C,className:p.btnCreatePreset,children:(0,i.jsx)(u.b9W,{})})]})]}),(0,i.jsx)(o.xu,{width:"0",flexGrow:"1",height:"100%",flexShrink:"1",pt:"2",children:(0,i.jsx)(n.j3,{})})]})}},90208:function(e,t,r){"use strict";r.r(e.exports={badge:"badge-d33da1","btn-create-preset":"btn-create-preset-d33da1",btnCreatePreset:"btn-create-preset-d33da1",container:"container-d33da1",divider:"divider-d33da1","overflow-badge":"overflow-badge-d33da1",overflowBadge:"overflow-badge-d33da1","preview-badge-list":"preview-badge-list-d33da1",previewBadgeList:"preview-badge-list-d33da1",scrollable:"scrollable-d33da1","side-panel":"side-panel-d33da1",sidePanel:"side-panel-d33da1","text-ellipsis":"text-ellipsis-d33da1",textEllipsis:"text-ellipsis-d33da1"})},46132:function(e,t,r){"use strict";let a,s;r.d(t,{YP:function(){return i}});var l=r("81733");function i(e,t){let r=!0,s=new Set,i=new Map,n=()=>{r&&(r=!1,s.forEach(e=>e()),s.clear(),i.forEach(e=>e()),i.clear())},o=()=>{if(!r)return;s.forEach(e=>e()),s.clear();let n=new Set,c=a;a=s;try{let t=e(e=>(n.add(e),e));t&&s.add(t)}finally{a=c}i.forEach((e,t)=>{n.has(t)?n.delete(t):(i.delete(t),e())}),n.forEach(e=>{let r=(0,l.Ld)(e,o,null==t?void 0:t.sync);i.set(e,r)})};return a&&a.add(n),o(),n}Symbol();let n=new WeakMap,o=e=>"object"==typeof e&&null!==e}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["146"],{88640:function(e,r){"use strict";r.Z=function(){for(var e,r,t=0,i="";t<arguments.length;)(e=arguments[t++])&&(r=function e(r){var t,i,l="";if("string"==typeof r||"number"==typeof r)l+=r;else if("object"==typeof r){if(Array.isArray(r))for(t=0;t<r.length;t++)r[t]&&(i=e(r[t]))&&(l&&(l+=" "),l+=i);else for(t in r)r[t]&&(l&&(l+=" "),l+=t)}return l}(e))&&(i&&(i+=" "),i+=r);return i}},11046:function(e,r,t){"use strict";t.d(r,{Z:function(){return c},x:function(){return u}});var i=t("90247"),l=t("55709"),a=t("16170"),s=t("86834"),n=t("88640"),d=t("99231"),o=t("52783");let c=e=>{let{children:r,className:t,variant:c,clickable:u=!1,selected:p=!1,inset:x=!1}=e,g=(0,a._)(e,["children","className","variant","clickable","selected","inset"]);return(0,s.jsx)(d.xu,(0,l._)((0,i._)({},g),{"data-variant":null!=c?c:"","data-clickable":u,"data-selected":p,"data-inset":x,className:(0,n.Z)(o.card,t),children:r}))},u=e=>(0,s.jsx)(d.kC,(0,i._)({gap:"2",height:"100%",justify:"center",direction:"column",align:"start"},e))},72737:function(e,r,t){"use strict";t.d(r,{Z:function(){return i.Z},x:function(){return i.x}});var i=t("11046")},21515:function(e,r,t){"use strict";t.r(r);var i=t("90247"),l=t("55709"),a=t("16170"),s=t("86834"),n=t("99231"),d=t("52493"),o=t.n(d),c=t("92927"),u=t("90208"),p=t("72737");let x=e=>{let{title:r,records:t,color:d}=e,o=(0,a._)(e,["title","records","color"]);return(0,s.jsx)(p.Z,(0,l._)((0,i._)({asChild:!0},o),{children:(0,s.jsxs)(n.kC,{direction:"column",gap:"2",children:[(0,s.jsx)(n.xv,{size:"1",weight:"bold",children:r}),(0,s.jsxs)(n.kC,{width:"100%",wrap:"wrap",align:"start",gap:"2",children:[0===t.length&&(0,s.jsx)(n.Ct,{color:"gray",children:"Empty"}),t.map(e=>(0,s.jsxs)(n.Ct,{color:d,className:u.badge,children:[e.key,": ",e.value]},e.id))]})]})}))};r.default=()=>{let e=(0,c.f_)(),r=o().map(e.cookie.client,(e,r)=>({key:r,value:e,id:r})),t=o().map(e.cookie.server,(e,r)=>({key:r,value:e,id:r})),i=o().map(e.localStorage,(e,r)=>({key:r,value:e,id:r})),l=o().map(e.sessionStorage,(e,r)=>({key:r,value:e,id:r}));return(0,s.jsxs)(n.kC,{direction:"column",gap:"2",height:"100%",flexShrink:"1",children:[(0,s.jsx)(n.kC,{flexGrow:"0",px:"2",gap:"2",justify:"between",align:"center",width:"100%",children:(0,s.jsx)(n.xu,{flexShrink:"0",className:u.textEllipsis,children:(0,s.jsx)(n.xv,{size:"1",weight:"bold",color:"gray",children:"Current Storage"})})}),(0,s.jsx)(n.xu,{flexGrow:"1",pb:"2",pr:"2",className:u.scrollable,children:(0,s.jsxs)(n.kC,{direction:"column",gap:"2",children:[(0,s.jsx)(x,{title:"Cookie",records:r,color:"yellow"}),(0,s.jsx)(x,{title:"Cookie (HTTP Only)",records:t,color:"yellow"}),(0,s.jsx)(x,{title:"Local Storage",records:i,color:"green"}),(0,s.jsx)(x,{title:"Session Storage",records:l,color:"blue"})]})})]})}},90208:function(e,r,t){"use strict";t.r(e.exports={badge:"badge-d33da1","btn-create-preset":"btn-create-preset-d33da1",btnCreatePreset:"btn-create-preset-d33da1",container:"container-d33da1",divider:"divider-d33da1","overflow-badge":"overflow-badge-d33da1",overflowBadge:"overflow-badge-d33da1","preview-badge-list":"preview-badge-list-d33da1",previewBadgeList:"preview-badge-list-d33da1",scrollable:"scrollable-d33da1","side-panel":"side-panel-d33da1",sidePanel:"side-panel-d33da1","text-ellipsis":"text-ellipsis-d33da1",textEllipsis:"text-ellipsis-d33da1"})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(){var e,t,n,r,o,a,i,c,l,u,f,d,s,p,b={},g={};function v(e){var t=g[e];if(void 0!==t)return t.exports;var n=g[e]={id:e,loaded:!1,exports:{}};return b[e].call(n.exports,n,n.exports,v),n.loaded=!0,n.exports}v.m=b,v.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return v.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},v.t=function(n,r){if(1&r&&(n=this(n)),8&r||"object"==typeof n&&n&&(4&r&&n.__esModule||16&r&&"function"==typeof n.then))return n;var o=Object.create(null);v.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var i=2&r&&n;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach(function(e){a[e]=function(){return n[e]}});return a.default=function(){return n},v.d(o,a),o},v.d=function(e,t){for(var n in t)v.o(t,n)&&!v.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},v.f={},v.e=function(e){return Promise.all(Object.keys(v.f).reduce(function(t,n){return v.f[n](e,t),t},[]))},v.k=function(e){return"static/css/async/"+({146:"client_storage/preset/page",161:"client_overview/page",244:"client_storage/preset/(id)/page",470:"client_storage/preset/layout",488:"client_doctor/page",718:"client_pages/page",730:"client_headers/editor/page"})[e]+"."+({146:"1177580d",161:"e0c5e73d",244:"04a7e72b",470:"1177580d",488:"872cf311",718:"77da491c",730:"2899fd79"})[e]+".css"},v.u=function(e){return"static/js/async/"+(({127:"client_page",146:"client_storage/preset/page",158:"client_external/$",161:"client_overview/page",244:"client_storage/preset/(id)/page",288:"client_config/(toolkit).(type)/page",299:"client_react/(tab)/layout",361:"client_context/page",470:"client_storage/preset/layout",483:"client_react/(tab)/page",488:"client_doctor/page",504:"client_context/layout",518:"client_config/layout",631:"client_pages/layout",718:"client_pages/page",730:"client_headers/editor/page",744:"client_external/layout",752:"client_react/offscreen/page",818:"client_context/framework/page",860:"client_headers/welcome/page",925:"client_headers/layout",943:"client_config/page",945:"client_react/page",958:"client_context/builder/page",963:"client_headers/page",988:"client_overview/layout"})[e]||e)+"."+({127:"3e19f015",146:"339d1df6",158:"3c9cebee",161:"d548e893",244:"ee6678ec",288:"343ccf40",299:"7d7e5b62",361:"1a1007e1",470:"300cb677",483:"6bb3fa65",488:"0003ca4f",504:"a59cf1b6",518:"4841f5be",631:"6b484518",718:"7e93bddc",730:"1e969311",744:"620cf2f6",752:"0e6794ce",769:"76593243",818:"1dcd0598",851:"115c9745",860:"43008445",883:"aac2d702",925:"ed9de95e",943:"47ec49b7",945:"57cc0bd0",958:"9eccaadd",963:"210a3503",988:"98957bf0"})[e]+".js"},v.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),v.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},r="modernjsDevtools:",v.l=function(e,t,o,a){if(n[e]){n[e].push(t);return}if(void 0!==o){for(var i,c,l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var f=l[u];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==r+o){i=f;break}}}!i&&(c=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,v.nc&&i.setAttribute("nonce",v.nc),i.setAttribute("data-webpack",r+o),i.src=e),n[e]=[t];var d=function(t,r){i.onerror=i.onload=null,clearTimeout(s);var o=n[e];if(delete n[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(function(e){return e(r)}),t)return t(r)},s=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),c&&document.head.appendChild(i)},v.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},v.nmd=function(e){return e.paths=[],!e.children&&(e.children=[]),e},v.nc=void 0,o=[],v.O=function(e,t,n,r){if(t){r=r||0;for(var a=o.length;a>0&&o[a-1][2]>r;a--)o[a]=o[a-1];o[a]=[t,n,r];return}for(var i=1/0,a=0;a<o.length;a++){for(var t=o[a][0],n=o[a][1],r=o[a][2],c=!0,l=0;l<t.length;l++)i>=r&&Object.keys(v.O).every(function(e){return v.O[e](t[l])})?t.splice(l--,1):(c=!1,r<i&&(i=r));if(c){o.splice(a--,1);var u=n();void 0!==u&&(e=u)}}return e},v.p="/__devtools/",a={118:0,126:0,242:0,293:0,58:0,707:0,770:0,991:0},i="modernjsDevtools",c="data-webpack-loading",l=function(e,t,n,r){var o,a,l="chunk-"+e;if(!r){for(var u=document.getElementsByTagName("link"),f=0;f<u.length;f++){var d=u[f],s=d.getAttribute("href")||d.href;if(s&&!s.startsWith(v.p)&&(s=v.p+(s.startsWith("/")?s.slice(1):s)),"stylesheet"==d.rel&&(s&&s.startsWith(t)||d.getAttribute("data-webpack")==i+":"+l)){o=d;break}}if(!n)return o}!o&&(a=!0,(o=document.createElement("link")).setAttribute("data-webpack",i+":"+l),o.setAttribute(c,1),o.rel="stylesheet",o.href=t);var p=function(e,t){if(o.onerror=o.onload=null,o.removeAttribute(c),clearTimeout(b),t&&"load"!=t.type&&o.parentNode.removeChild(o),n(t),e)return e(t)};if(o.getAttribute(c)){var b=setTimeout(p.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=p.bind(null,o.onerror),o.onload=p.bind(null,o.onload)}else p(void 0,{type:"load",target:o});return r?r.parentNode.insertBefore(o,r):a&&document.head.appendChild(o),o},v.f.css=function(e,t){var n=v.o(a,e)?a[e]:void 0;if(0!==n){if(n)t.push(n[2]);else if(/^(4(00|62|70|88)|146|161|244|567|718|730|977)$/.test(e)){var r=new Promise(function(t,r){n=a[e]=[t,r]});t.push(n[2]=r);var o=v.p+v.k(e),i=Error();l(e,o,function(t){if(v.o(a,e)&&(0!==(n=a[e])&&(a[e]=void 0),n)){if("load"!==t.type){var r=t&&t.type,o=t&&t.target&&t.target.src;i.message="Loading css chunk "+e+" failed.\n("+r+": "+o+")",i.name="ChunkLoadError",i.type=r,i.request=o,n[1](i)}else n[0]()}})}else a[e]=0}},u=function(e,t){var n=t[0];e&&e(t);for(var r=0;r<n.length;r++)void 0===a[n[r]]&&(a[n[r]]=0)},(f=self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).forEach(u.bind(null,0)),f.push=u.bind(null,f.push.bind(f)),d={242:0},v.f.j=function(e,t){var n=v.o(d,e)?d[e]:void 0;if(0!==n){if(n)t.push(n[2]);else if(242!=e){var r=new Promise(function(t,r){n=d[e]=[t,r]});t.push(n[2]=r);var o=v.p+v.u(e),a=Error();v.l(o,function(t){if(v.o(d,e)&&(0!==(n=d[e])&&(d[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;a.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",a.name="ChunkLoadError",a.type=r,a.request=o,n[1](a)}},"chunk-"+e,e)}else d[e]=0}},v.O.j=function(e){return 0===d[e]},s=function(e,t){var n=t[0],r=t[1],o=t[2],a,i,c=0;if(n.some(function(e){return 0!==d[e]})){for(a in r)v.o(r,a)&&(v.m[a]=r[a]);if(o)var l=o(v)}for(e&&e(t);c<n.length;c++)i=n[c],v.o(d,i)&&d[i]&&d[i][0](),d[i]=0;return v.O(l)},(p=self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).forEach(s.bind(null,0)),p.push=s.bind(null,p.push.bind(p))}();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["462"],{58266:function(t,n,e){"use strict";e.d(n,{Ux:function(){return w},ri:function(){return y}});var r,o=e("73839"),i=e("64534"),u=e("90247"),a=e("16170"),c=e("44518"),s=e("87317"),l=e("86834"),f=e("5872"),d=e("13266"),p=e.n(d),v=e("63415"),h=e("59535"),m=e("4513"),g=e("13063"),x=new WeakMap,b=function(t){return{loaderManager:(0,g.K)({}),runner:t,isBrowser:!0,routeManifest:"undefined"!=typeof window&&window[v.p9]}},y=function(t){var n=t.plugins,e=t.props,r=m.GZ.clone();return r.usePlugin.apply(r,(0,c._)(n)),function(t){var n=r.init(),o=function(e){var r,o=f.createElement(t||f.Fragment,t?(0,u._)({},e):null,t?e.children:f.cloneElement(e.children,(0,u._)({},null===(r=e.children)||void 0===r?void 0:r.props,e))),i=(0,f.useContext)(h.J);return n.provide({element:o,props:(0,u._)({},e),context:i},{onLast:function(t){return t.element}})};t&&p()(o,t);var i=n.hoc({App:o},{onLast:function(t){var r=t.App;return p()(function(t){var o=t.context,i=(0,a._)(t,["context"]),c=o;!(null==c?void 0:c.runner)&&(c=b(n),n.init({context:c},{onLast:function(t){var n,e=t.context;return null==r?void 0:null===(n=r.init)||void 0===n?void 0:n.call(r,e)}}));var s=(0,u._)({},i,e);return(0,l.jsx)(h.J.Provider,{value:c,children:(0,l.jsx)(r,(0,u._)({},s))})},r)}});return x.set(i,n),i}};var w=(r=(0,o._)(function(t,n,e,r){var o,a,c,l,d,p,v,h,m,w,_,j,k,E,S;return(0,s.Jh)(this,function(s){switch(s.label){case 0:var R;if(o=t,!(a=x.get(o))&&(o=y({plugins:[]})(o),a=x.get(o)),c=b(a),l=function(t){return a.init({context:t},{onLast:function(t){var n,e=t.context;return null==o?void 0:null===(n=o.init)||void 0===n?void 0:n.call(o,e)}})},!n)return[2,f.createElement(o,{context:c})];if(!("undefined"!=typeof window&&"nodejs"!==window.name))return[3,4];if(!("string"==typeof(R=n)||"undefined"!=typeof HTMLElement&&(0,i._)(R,HTMLElement)))return[3,2];return m=Object.keys(h=(null==(v=window._SSR_DATA)?void 0:null===(d=v.data)||void 0===d?void 0:d.loadersData)||{}).reduce(function(t,n){var e=h[n];return!1!==e.loading?t:(t[n]=e,t)},{}),Object.assign(c,(0,u._)({loaderManager:(0,g.K)(m,{skipStatic:!0})},v?{ssrContext:null==v?void 0:v.context}:{})),c.initialData=null==v?void 0:null===(p=v.data)||void 0===p?void 0:p.initialData,[4,l(c)];case 1:if((w=s.sent())&&(c.initialData=w),_="string"!=typeof n?n:document.getElementById(n||"root"),!r)throw Error("The `bootstrap` need provide `ReactDOM` parameter");return j=function(t){if(e)e.render(t);else if(r.createRoot)r.createRoot(_).render(t);else throw Error("The `bootstrap` `ReactDOM` parameter needs to provide the `createRoot` method")},k=function(t,n){if(!r.hydrateRoot)throw Error("The `bootstrap` `ReactDOM` parameter needs to provide the `hydrateRoot` method");r.hydrateRoot(_,t)},[2,a.client({App:o,context:c,ModernRender:j,ModernHydrate:k},{onLast:function(t){var n=t.App;j(f.createElement(n,{context:c}))}})];case 2:throw Error("`bootstrap` needs id in browser environment, it needs to be string or element");case 3:return[3,6];case 4:return Object.assign(c,{ssrContext:n,isBrowser:!1,loaderManager:(0,g.K)({},{skipNonStatic:n.staticGenerate,skipStatic:!n.staticGenerate})}),E=function(t){if("undefined"!=typeof Response&&(0,i._)(t,Response)&&t.status>=300&&t.status<=399){var n,e=t.status,r=t.headers.get("Location")||"/",o=c.ssrContext;return o&&(o.res&&(o.res.statusCode=e),null===(n=o.res)||void 0===n||n.setHeader("Location",r),o.redirection=o.redirection||{},o.redirection.status=e,o.redirection.url=r),!0}return!1},[4,l(c)];case 5:if(S=s.sent(),!E(S))return c.initialData=S,[2,a.server({App:o,context:c})];s.label=6;case 6:return[2]}})}),function(t,n,e,o){return r.apply(this,arguments)})},13063:function(t,n,e){"use strict";e.d(n,{K:function(){return v}});var r,o,i=e("73839"),u=e("64534"),a=e("70749"),c=e("44518"),s=e("87317"),l=e("24546"),f=e.n(l),d=function(){var t=new Map;return function(n){var e=t.get(n);if(e)return e;var r=JSON.stringify(n);return f()(r,"params should be not null value"),t.set(n,r),r}};(r=o||(o={}))[r.idle=0]="idle",r[r.loading=1]="loading",r[r.fulfilled=2]="fulfilled",r[r.rejected=3]="rejected";var p=function(t){var n,e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{loading:!1,reloading:!1,data:void 0,error:void 0},o=arguments.length>2?arguments[2]:void 0,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=0,f=r.data,d=r.error,p=!1,v=new Set;var h=(n=(0,i._)(function(){return(0,s.Jh)(this,function(t){return a||1===l?[2,e]:(l=1,g(),[2,e=o().then(function(t){f=t,d=null,l=2}).catch(function(t){d=t,f=null,l=3}).finally(function(){e=null,p=!0,g()})])})}),function(){return n.apply(this,arguments)}),m=function(){return{loading:!p&&1===l,reloading:p&&1===l,data:f,error:(0,u._)(d,Error)?"".concat(d.message):d,_error:d}},g=function(){(0,c._)(v).forEach(function(t){t(l,m())})};return{get result(){return m()},get promise(){return e},onChange:function(t){return v.add(t),function(){v.delete(t)}},load:h}},v=function(t){var n,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.skipStatic,o=void 0!==r&&r,c=e.skipNonStatic,l=void 0!==c&&c,f=new Map,v=d();return{hasPendingLoaders:function(){var t=!0,n=!1,e=void 0;try{for(var r,o=f.values()[Symbol.iterator]();!(t=(r=o.next()).done);t=!0){var i=r.value.promise;if((0,u._)(i,Promise))return!0}}catch(t){n=!0,e=t}finally{try{!t&&null!=o.return&&o.return()}finally{if(n)throw e}}return!1},awaitPendingLoaders:(n=(0,i._)(function(){var t,n,e,r,o,i,c,l,d,p;return(0,s.Jh)(this,function(s){switch(s.label){case 0:t=[],n=!0,e=!1,r=void 0;try{for(o=f[Symbol.iterator]();!(n=(i=o.next()).done);n=!0)l=(c=(0,a._)(i.value,2))[0],p=(d=c[1]).promise,(0,u._)(p,Promise)&&t.push([l,d])}catch(t){e=!0,r=t}finally{try{!n&&null!=o.return&&o.return()}finally{if(e)throw r}}return[4,Promise.all(t.map(function(t){return t[1].promise}))];case 1:return s.sent(),[2,t.reduce(function(t,n){var e=(0,a._)(n,2),r=e[0],o=e[1];return t[r]=o.result,t},{})]}})}),function(){return n.apply(this,arguments)}),add:function(n,e){var r=v(e.params),i=f.get(r),u=e._cache;if(!i||!1===u){var a=l&&!e.static,c=o&&e.static;i=p(r,void 0!==t[r]?t[r]:{data:e.initialData},n,a||c),f.set(r,i)}return r},get:function(t){return f.get(t)}}}},4513:function(t,n,e){"use strict";e.d(n,{GZ:function(){return l}});var r=e("15413"),o=(0,r.Jy)(),i=(0,r.Jy)(),u=(0,r.DJ)(),a=(0,r.DJ)(),c=(0,r.DJ)(),s={hoc:o,provide:i,client:u,server:a,init:c,pickContext:(0,r.Jy)()},l=(0,r.m_)(s);l.createPlugin},47534:function(t,n,e){"use strict";e.d(n,{M:function(){return o}});var r=e("86834"),o=function(){return(0,r.jsx)("div",{style:{margin:"150px auto",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"},children:"404"})}},21446:function(t,n,e){"use strict";function r(){return null}e.d(n,{Z:function(){return r}})},85371:function(t,n,e){"use strict";e.d(n,{OL:function(){return j},rU:function(){return _}});var r=e("73839"),o=e("90247"),i=e("16170"),u=e("70749"),a=e("87317"),c=e("86834"),s=e("5872"),l=e("77393"),f=e("92927"),d=e("31988"),p=e("59535");function v(t,n){return function(e){null==t||t(e),!e.defaultPrevented&&n(e)}}var h=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function m(){return(m=(0,r._)(function(t,n){var r,o;return(0,a.Jh)(this,function(i){switch(i.label){case 0:if(!(r=t.id)||!n[r]||!(o=n[r].chunkIds))return[2];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,Promise.all(o.map(function(t){return null===e.e||void 0===e.e?void 0:e.e(String(t))}))];case 2:return i.sent(),[3,4];case 3:return console.error(i.sent()),[3,4];case 4:return[2]}})})).apply(this,arguments)}var g=function(t,n){var e=window.location,r=e.protocol,o=e.host,i=new URL(t,"".concat(r,"//").concat(o));return i.searchParams.append("__loader",n),i.searchParams.append("__ssrDirect","true"),i},x=function(t,n,e){var r,o=t.id;return r=g("/"===e?n:"".concat(e).concat(n),o).toString(),(0,c.jsx)("link",{rel:"prefetch",as:"fetch",href:r},r)},b=function(t){var n=t.path,e=n.pathname,r=(0,s.useContext)(p.J),o=r.routeManifest,i=r.routes,u=(o||{}).routeAssets,a=Array.isArray(i)?(0,l.fp)(i,e):[];return(Array.isArray(a)&&u&&(null==a||a.forEach(function(t){return function(t,n){return m.apply(this,arguments)}(t.route,u)})),window._SSR_DATA)?(0,c.jsx)(y,{matches:a,path:n,routeManifest:o}):null},y=function(t){var n=t.matches,e=t.path,r=t.routeManifest,o=e.pathname,i=e.search,u=e.hash,a=(0,f.SN)(),l=(0,f.oQ)("/"),d=(0,s.useMemo)(function(){return null==n?void 0:n.filter(function(t,n){if(!t.route.loader||"function"!=typeof t.route.loader||0===t.route.loader.length)return!1;if(t.route.shouldRevalidate){var e,r=new URL(location.pathname+location.search+location.hash,window.origin),c=new URL(o+i+u,window.origin),s=t.route.shouldRevalidate({currentUrl:r,currentParams:(null===(e=a[0])||void 0===e?void 0:e.params)||{},nextUrl:c,nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof s)return s}var l=a[n];return!!(!l||l.id!==t.route.id||l.pathname!==t.pathname||l.pathname.endsWith("*")&&l.params["*"]!==t.params["*"])||!1}).map(function(t){return x(t.route,o,l)})},[n,o,r]);return(0,c.jsx)(c.Fragment,{children:d})},w=function(t){return s.forwardRef(function(n,r){var a,l,d,p,m,g,x,y,w,_,j,k,E,S,R,A=n.to,L=n.prefetch,P=(0,i._)(n,["to","prefetch"]),O="string"==typeof A&&h.test(A);var C=(0,u._)((a=void 0===L?"none":L,l=P,p=(d=(0,u._)(s.useState(!1),2))[0],m=d[1],x=(g=(0,u._)(s.useState(!1),2))[0],y=g[1],w=l.onFocus,_=l.onBlur,j=l.onMouseEnter,k=l.onMouseLeave,E=l.onTouchStart,s.useEffect(function(){"render"===a&&y(!0)},[a]),S=function(){"intent"===a&&m(!0)},R=function(){"intent"===a&&(m(!1),y(!1))},s.useEffect(function(){if(p){var t=setTimeout(function(){y(!0)},100);return function(){clearTimeout(t)}}},[p]),[x,{onFocus:v(w,S),onBlur:v(_,R),onMouseEnter:v(j,S),onMouseLeave:v(k,R),onTouchStart:v(E,S)}]),2),M=C[0],N=C[1],D=(0,f.WU)(A);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(t,(0,o._)({ref:r,to:A},P,N)),M&&e.e&&!O?(0,c.jsx)(b,{path:D}):null]})})},_=w(d.rU);_.displayName="Link";var j=w(d.OL);j.displayName="NavLink"},68705:function(t,n,e){"use strict";e.d(n,{P:function(){return r}});var r=(0,e("15413").Zz)()},90979:function(t,n,e){"use strict";e.d(n,{OL:function(){return o.OL},OL:function(){return i.OL},ZP:function(){return u},rU:function(){return o.rU},rU:function(){return i.rU}});var r=e("29552"),o=e("78771"),i=e("85371"),u=r.NA},29552:function(t,n,e){"use strict";e.d(n,{NA:function(){return x}});var r=e("90247"),o=e("55709"),i=e("44518"),u=e("86834"),a=e("5872"),c=e("92927"),s=e("31988"),l=e("13266"),f=e.n(l),d=e("89736"),p=e("59535"),v=e("68705"),h=e("78923"),m={routes:[]},g=!0,x=function(t){var n=t.serverBase,e=void 0===n?[]:n,l=t.supportHtml5History,g=void 0===l||l,x=t.basename,b=void 0===x?"":x,y=t.originalBaseUrl,w=void 0===y?"":y,_=t.routesConfig,j=t.createRoutes,k=[];return m=_,window._SERVER_DATA=(0,d.$)("__MODERN_SERVER_DATA__"),{name:"@modern-js/plugin-router",registerHook:{modifyRoutes:v.P},setup:function(t){return{init:function(t,n){var e=t.context;return e.router={useMatches:c.SN,useLocation:c.TH,useHref:c.oQ},Object.defineProperty(e,"routes",{get:function(){return k}}),n({context:e})},hoc:function(n,l){var d,v=n.App;if(!m&&!j)return l({App:v});var x=(d=function(n){var u,l,f=w||(null===(l=window._SERVER_DATA)||void 0===l?void 0:l.router.baseUrl)||(u=location.pathname,e.find(function(t){return 0===u.search(t)})||"/"),d="/"===f?(0,h.e5)(f,b):f,v=window._ROUTER_DATA,x=(0,a.useContext)(p.J),y=x.unstable_getBlockNavState;return(0,a.useMemo)(function(){(null==v?void 0:v.errors)&&(v=(0,o._)((0,r._)({},v),{errors:(0,h.SY)(v.errors)})),k=j?j():(0,c.i7)((0,h.Ho)({routesConfig:m,props:n})),k=t.useHookRunners().modifyRoutes(k);var e=g?(0,s.aj)(k,{basename:d,hydrationData:v}):(0,s.cP)(k,{basename:d,hydrationData:v}),u=e.subscribe;return e.subscribe=function(t){return u(function(){for(var n=arguments.length,e=Array(n),r=0;r<n;r++)e[r]=arguments[r];if(!(y&&y()))return t.apply(void 0,(0,i._)(e))})},Object.defineProperty(x,"remixRouter",{get:function(){return e},configurable:!0}),e},[m,n,d,v,y])},function(t){var n=d(t);return(0,u.jsx)(v,(0,o._)((0,r._)({},t),{children:(0,u.jsx)(s.pG,{router:n})}))});return(v&&(x=f()(x,v)),null==_?void 0:_.globalApp)?l({App:f()(x,_.globalApp)}):l({App:x})},pickContext:function(t,n){var e=t.context,i=t.pickedContext,u=e.remixRouter;if(!u)return n({context:e,pickedContext:i});var a={navigate:u.navigate,get location(){return u.state.location}};return n({context:e,pickedContext:(0,o._)((0,r._)({},i),{router:a})})}}}}}},83366:function(t,n,e){"use strict";e.d(n,{RC:function(){return o},UC:function(){return u},u3:function(){return i}});var r=e("63415"),o=function(t){return function(n){var e,o,i=null===(o=window)||void 0===o?void 0:null===(e=o[r.u$])||void 0===e?void 0:e[t];return i&&"function"==typeof i.shouldRevalidate?i.shouldRevalidate(n):n.defaultShouldRevalidate}},i=function(t,n){return"undefined"!=typeof document&&(window[r.u$][n]=t),t},u=function(t){return console.error(t),null}},78923:function(t,n,e){"use strict";e.d(n,{Ho:function(){return d},SY:function(){return v},e5:function(){return p}});var r=e("90247"),o=e("16170"),i=e("70749"),u=e("86834"),a=e("92927"),c=e("77393"),s=e("8921"),l=e("47534"),f=e("21446");function d(t){var n=t.routesConfig,e=t.props,i=t.ssrMode,c=t.reporter;if(!n)return null;var d=n.routes,p=n.globalApp;return d?function(t,n){var e=n.globalApp,i=n.ssrMode,c=n.props,d=n.reporter,p=function(t){var n=t.Component,i=(0,o._)(t,["Component"]);return e?(0,u.jsx)(e,(0,r._)({Component:n},i)):(0,u.jsx)(n,(0,r._)({},i))},v=[],h=!0,m=!1,g=void 0;try{for(var x,b=t[Symbol.iterator]();!(h=(x=b.next()).done);h=!0){var y=x.value;if("nested"===y.type){var w=(0,s.F)(y,{DeferredDataComponent:"stream"===i?f.Z:void 0,props:c,reporter:d});v.push(w)}else{var _=(0,u.jsx)(a.AW,{path:y.path,element:(0,u.jsx)(p,{Component:y.component})},y.path);v.push(_)}}}catch(t){m=!0,g=t}finally{try{!h&&null!=b.return&&b.return()}finally{if(m)throw g}}return v.push((0,u.jsx)(a.AW,{path:"*",element:(0,u.jsx)(l.M,{})},"*")),v}(d,{globalApp:p,ssrMode:i,props:e,reporter:c}):null}var p=function(){for(var t=arguments.length,n=Array(t),e=0;e<t;e++)n[e]=arguments[e];var r=RegExp("".concat("/","{1,}"),"g");return function(t){var n=t;return n&&"string"==typeof n?(n.startsWith(".")&&(n=n.slice(1)),!n.startsWith("/")&&(n="/".concat(n)),n.endsWith("/")&&"/"!==n&&(n=n.slice(0,n.length-1)),n):n}(n.join("/").replace(r,"/"))};function v(t){if(!t)return null;var n=Object.entries(t),e={},r=!0,o=!1,u=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=(0,i._)(a.value,2),f=l[0],d=l[1];if(d&&"RouteErrorResponse"===d.__type)e[f]=new c.OF(d.status,d.statusText,d.data,!0===d.internal);else if(d&&"Error"===d.__type){var p=Error(d.message);p.stack=d.stack,e[f]=p}else e[f]=d}}catch(t){o=!0,u=t}finally{try{!r&&null!=s.return&&s.return()}finally{if(o)throw u}}return e}},59535:function(t,n,e){"use strict";e.d(n,{J:function(){return o}});var r=e("5872"),o=(0,r.createContext)({});(0,r.createContext)({})},15413:function(t,n,e){"use strict";e.d(n,{DJ:function(){return d},Jy:function(){return f},Zz:function(){return h},m_:function(){return N}});var r=e("18360"),o=e("90247"),i=e("44518"),u=e("55709"),a=e("76492"),c=function(t){var n=function(e,r){return t(e,r,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return n(e+1,t)})};return{start:function(t){return n(0,t)},dispatch:n}},s=Symbol.for("MODERN_PIPELINE"),l=function(t){if("function"==typeof t)return t;if(t&&"function"==typeof t.middleware)return t.middleware;throw Error("".concat(t," is not a Middleware"))},f=function(){var t,n=[],e=function(t){return c(function(e,r,o){if(e>=n.length){if(t)return t(r);throw Error("Expect returning a value, but all middlewares just calling next()")}return n[e](r,o)})},o=e(),u=function(t,n){var r;return((r=n)?e(null==r?void 0:r.onLast):o).start(t)},a=(t={},(0,r._)(t,s,!0),(0,r._)(t,"use",function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return n.push.apply(n,(0,i._)(e.map(l))),a}),(0,r._)(t,"run",u),(0,r._)(t,"middleware",function(t,n){return u(t,{onLast:n})}),t);return a},d=function(){var t=f();return(0,o._)({},t)},p=Symbol.for("MODERN_WATERFALL"),v=function(t){if("function"==typeof t)return t;if(t&&"function"==typeof t.middleware)return t.middleware;throw Error("".concat(t," is not a Brook or { brook: Brook }"))},h=function(){var t=f(),n=(0,u._)((0,o._)({},t),(0,r._)({use:function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.use.apply(t,(0,i._)(r.map(v).map(m))),n},run:function(n,e){return t.run(n,(0,u._)((0,o._)({},e),{onLast:function(t){return t}}))},middleware:function(n){return t.run(n,{onLast:function(t){return t}})}},p,!0));return n},m=function(t){return function(n,e){return e(t(n))}},g=Symbol.for("MODERN_ASYNC_WATERFALL"),x=function(t){if("function"==typeof t)return t;if(t&&"function"==typeof t.middleware)return t.middleware;throw Error("".concat(t," is not a AsyncBrook or { brook: AsyncBrook }"))},b=function(){var t=d(),n=(0,u._)((0,o._)({},t),(0,r._)({use:function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.use.apply(t,(0,i._)(r.map(x).map(y))),n},run:function(n,e){return t.run(n,(0,u._)((0,o._)({},e),{onLast:function(t){return t}}))},middleware:function(n){return t.run(n,{onLast:function(t){return t}})}},g,!0));return n},y=function(t){return function(n,e){return Promise.resolve(t(n)).then(function(t){return e(t)})}},w=Symbol.for("MODERN_WORKFLOW"),_=function(){var t=f(),n=(0,u._)((0,o._)({},t),(0,r._)({use:function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.use.apply(t,(0,i._)(r.map(j))),n},run:function(n){return t.run(n,{onLast:function(){return[]}}).filter(Boolean)}},w,!0));return n},j=function(t){return function(n,e){return[t(n)].concat((0,i._)(e(n)))}},k=Symbol.for("MODERN_PARALLEL_WORKFLOW"),E=function(){var t=f(),n=(0,u._)((0,o._)({},t),(0,r._)({run:function(n){return Promise.all(t.run(n,{onLast:function(){return[]}})).then(function(t){return t.filter(Boolean)})},use:function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.use.apply(t,(0,i._)(r.map(S))),n}},k,!0));return n},S=function(t){return function(n,e){return[t(n)].concat((0,i._)(e(n)))}},R=Symbol.for("MODERN_ASYNC_WORKFLOW"),A=function(){var t=d(),n=(0,u._)((0,o._)({},t),(0,r._)({use:function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.use.apply(t,(0,i._)(r.map(L))),n},run:function(n){var e,r=t.run(n,{onLast:function(){return[]}});return(e=r)&&"function"==typeof e.then?r.then(function(t){return t.filter(Boolean)}):r.filter(Boolean)}},R,!0));return n},L=function(t){return function(n,e){return Promise.resolve(t(n)).then(function(t){return Promise.resolve(e(n)).then(function(n){return[t].concat((0,i._)(n))})})}},P=function(t){},O=function(t){return null!==t&&"object"==typeof t},C="SYNC_PLUGIN_SYMBOL",M={name:"untitled",pre:[],post:[],rivals:[],required:[],usePlugins:[],registerHook:{}},N=function(t,n){var e,r=0,i=(0,o._)({},t),c=function(){return e},s=function(t){i=(0,o._)({},t,i)},l=function(t){var n,e;return O(t)&&(n=t,e=C,n.hasOwnProperty(e))&&t[C]===C},f=(0,u._)((0,o._)({},n),{useHookRunners:c}),d=function(t){var n=[],p=function(t){var e,r;if(e=n,r=t,!e.some(function(t){return t.name===r.name}))n.push((0,o._)({},t))},v=function(){for(var t=arguments.length,n=Array(t),e=0;e<t;e++)n[e]=arguments[e];return n.forEach(function(t){if(l(t))p(t);else if("function"==typeof t){var n=t();p(h(n.setup,n))}else O(t)&&p(h(t.setup,t))}),m},h=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(null===(t=e.usePlugins)||void 0===t?void 0:t.length)&&e.usePlugins.forEach(function(t){v(h(t.setup,t))}),e.registerHook&&s(e.registerHook),(0,u._)((0,o._)((0,u._)((0,o._)({},M),{name:"No.".concat(r++," plugin")}),e),{SYNC_PLUGIN_SYMBOL:C,setup:n})},m={createPlugin:h,isPlugin:l,usePlugin:v,init:function(){var r,u=(r=n,(0,a.v)(r.slice())),c=(0,o._)({},f,t);return P(u),e=D(u.map(function(t){return t.setup(c)}),i)},clear:function(){n=[]},run:function(t){return t()},registerHook:s,useRunner:c,clone:d};return m};return d()},D=function(t,n){var e={},r=U(n);if(n){var i=function(n){t.forEach(function(t){(null==t?void 0:t[n])&&r[n].use(t[n])}),e[n]=function(t,e){return r[n].run(t,(0,o._)({},e))}};for(var u in r)i(u)}return e},B=function(t){var n,e,r,o,i,u;if(null==(n=t)?void 0:n[p])return h();if(null==(e=t)?void 0:e[g])return b();if(null==(r=t)?void 0:r[w])return _();if(null==(o=t)?void 0:o[R])return A();if(null==(i=t)?void 0:i[k])return E();if(null==(u=t)?void 0:u[s])return f();throw Error("Unknown hook: ".concat(t))},U=function(t){if(!t)return t;var n={};for(var e in t)n[e]=B(t[e]);return n}},8921:function(t,n,e){"use strict";e.d(n,{F:function(){return d}});var r=e("73839"),o=e("90247"),i=e("55709"),u=e("87317"),a=e("86834"),c=e("5872"),s=e("92927"),l=e("63415"),f=e("67791"),d=function(t){var n,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},v=t.children,h=t.index,m=t.id,g=t.component,x=t.isRoot,b=t.lazyImport,y=t.config,w=t.handle,_=e.parent,j=e.DeferredDataComponent,k=e.props,E=void 0===k?{}:k,S=e.reporter,R={caseSensitive:t.caseSensitive,path:t.path,id:t.id,loader:function(t,n){var e,o=t.loader;if(!o)return function(){return"function"==typeof t.lazyImport&&t.lazyImport(),null};return e=(0,r._)(function(e){var r,i,a;return(0,u.Jh)(this,function(u){switch(u.label){case 0:return"function"==typeof t.lazyImport&&t.lazyImport(),r=(0,f.X)(),[4,o(e)];case 1:return i=u.sent(),a=r(),"undefined"==typeof document&&n&&(null==n||n.reportTiming("".concat(l.m5,"-").concat(t.id),a)),[2,i]}})}),function(t){return e.apply(this,arguments)}}(t,S),action:t.action,hasErrorBoundary:t.hasErrorBoundary,shouldRevalidate:t.shouldRevalidate,handle:(0,o._)({},w,"object"==typeof y?null==y?void 0:y.handle:{}),index:t.index,element:t.element,errorElement:t.errorElement};if(t.error){var A=(0,a.jsx)(t.error,{});R.errorElement=A}if(g){if((null==_?void 0:_.loading)&&b){var L=_.loading;n=p(g)?(0,a.jsx)(g,{fallback:(0,a.jsx)(L,{})}):(0,a.jsx)(c.Suspense,{fallback:(0,a.jsx)(L,{}),children:(0,a.jsx)(g,{})})}else n=p(g)&&b?(0,a.jsx)(g,{}):x?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g,(0,o._)({},E)),"undefined"==typeof document&&j&&(0,a.jsx)(j,{nonce:null==E?void 0:E.nonce})]}):b?(0,a.jsx)(c.Suspense,{fallback:null,children:(0,a.jsx)(g,{})}):(0,a.jsx)(g,{})}else t.loading=null==_?void 0:_.loading,R.element=(0,a.jsx)(s.j3,{});n&&(R.element=n);var P=null==v?void 0:v.map(function(n){return d(n,{parent:t,reporter:S})});return h?(0,a.jsx)(s.AW,(0,i._)((0,o._)({},R),{index:!0}),m):(0,a.jsx)(s.AW,(0,i._)((0,o._)({},R),{index:!1,children:P}),m)};function p(t){return t&&"Loadable"===t.displayName&&t.preload&&"function"==typeof t.preload}},89736:function(t,n,e){"use strict";e.d(n,{$:function(){return r}});var r=function(t){var n=document.querySelectorAll("#".concat(t));if(0!==n.length){var e=n[n.length-1];if(e)try{return JSON.parse((null==e?void 0:e.textContent)||"")}catch(n){console.error("parse ".concat(t," error"),n)}}}},78771:function(t,n,e){"use strict";e.d(n,{OL:function(){return r.OL},rU:function(){return r.rU}});var r=e("31988")},67791:function(t,n,e){"use strict";e.d(n,{X:function(){return u}});var r=e("70749");function o(t){var n=.001*new Date().getTime(),e=Math.floor(n),r=Math.floor(n%1*1e9);return t&&(e-=t[0],(r-=t[1])<0&&(e--,r+=1e9)),[e,r]}var i=function(t){var n=(0,r._)(o(t),2);return 1e3*n[0]+n[1]/1e6},u=function(){var t=o();return function(){return i(t)}}},63415:function(t,n,e){"use strict";e.d(n,{m5:function(){return a},p9:function(){return i},u$:function(){return u}});var r,o=e("18360"),i="_MODERNJS_ROUTE_MANIFEST",u="_routeModules",a="server-loader";r={},(0,o._)(r,"@modern-js/plugin-bff","@modern-js/plugin-bff/server"),(0,o._)(r,"@modern-js/plugin-express","@modern-js/plugin-express/server"),(0,o._)(r,"@modern-js/plugin-koa","@modern-js/plugin-koa/server"),(0,o._)(r,"@modern-js/plugin-server","@modern-js/plugin-server/server"),(0,o._)(r,"@modern-js/plugin-polyfill","@modern-js/plugin-polyfill/server")},76492:function(t,n,e){"use strict";e.d(n,{v:function(){return r}});var r=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"name",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"pre",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"post",o=function(e){var r=t.find(function(t){return"string"==typeof e?t[n]===e:t[n]===e[n]});if(!r)throw Error("plugin ".concat(e," not existed"));return r},i=[];t.forEach(function(u){var a,c;null===(a=u[e])||void 0===a||a.forEach(function(e){t.find(function(t){return t.name===e})&&i.push([o(e)[n],o(u)[n]])}),null===(c=u[r])||void 0===c||c.forEach(function(e){t.find(function(t){return t.name===e})&&i.push([o(u)[n],o(e)[n]])})});for(var u=t.filter(function(t){return!i.find(function(e){return e[1]===t[n]})}),a=[];u.length;)!function(){var e=u.shift();a.push(o(e)),i=i.filter(function(t){return t[0]!==o(e)[n]}),u=t.filter(function(t){return!a.find(function(e){return e[n]===t[n]})}).filter(function(t){return!i.find(function(e){return e[1]===t[n]})})}();if(i.length){var c={};throw i.forEach(function(t){c[t[0]]=!0,c[t[1]]=!0}),Error("plugins dependencies has loop: ".concat(Object.keys(c).join(",")))}return a}},19336:function(t,n,e){"use strict";t.exports=e.p+"static/font/NotoSans-latin-subset.780eca90.woff2"},91470:function(t,n,e){"use strict";e.d(n,{O:function(){return v}});var r=e("90247"),o=e("55709"),i=e("86834");e("5872");var u=e("52493"),a=e.n(u),c=e("99231"),s=e("60441"),l=e("92927"),f=e("60421"),d=e("7870");let p=t=>{let{location:n,handle:e}=t;if(!a().isObject(e)&&a().isNil(e))return[];let{breadcrumb:r}=e,o=[];a().isFunction(r)?o.push(...a().castArray(r({location:n}))):o.push(...a().castArray(r));let i=[];for(let n of o){if(!a().isObject(n)||a().isNull(n)||!("title"in n))continue;let e={id:t.id,title:n.title,pathname:t.pathname};"pathname"in n&&a().isString(n.pathname)&&(e.pathname=n.pathname),i.push(e)}return i},v=t=>{let n=[],e=(0,l.SN)(),u=(0,l.TH)(),a=[];for(let t of e)a.push(...p((0,o._)((0,r._)({},t),{location:u})));for(let[t,e]of(u.state&&"breadcrumb"in u.state&&a.push(...p({handle:u.state.breadcrumb,pathname:u.pathname,id:"external/".concat(u.pathname),location:u})),Object.entries(a))){let r=[e.id,e.pathname,t];n.push((0,i.jsx)(d.r,{color:"gray",size:"2",to:e.pathname,children:e.title},r.join("_"))),e!==a.at(-1)&&(r.push("#connector"),n.push((0,i.jsx)(s.XCv,{className:f.connector},r.join("_"))))}return(0,i.jsx)(c.kC,(0,o._)((0,r._)({align:"center",height:"var(--space-8)",gap:"1",px:"4"},t),{children:n}))}},81881:function(t,n,e){"use strict";e.d(n,{f:function(){return c}});var r=e("5872"),o=e("92927"),i=e("24326"),u=e("99480");let a="";u.dL.then(t=>{let{hooks:n}=t;n.hookOnce("pullUp",async t=>{a=t})});let c=()=>{let t=(0,o.s0)(),n=(0,i.X7)(u.dL);return(0,r.useEffect)(()=>{a&&t(a),n.hooks.hook("pullUp",async n=>{t(n)})},[]),null}},70552:function(t,n,e){"use strict";e.d(n,{M:function(){return c}});var r=e("86834"),o=e("5872"),i=e("92927"),u=e("99231");let a=t=>{let{error:n}=t,e=n instanceof Error?"".concat(n.name,": ").concat(n.message):"Unknown Error",o=n instanceof Error?n.stack:Object.prototype.toString.call(n);return(0,r.jsxs)(u.xu,{p:"4",children:[(0,r.jsx)(u.X6,{as:"h4",mb:"4",children:(0,r.jsx)(u.xv,{as:"span",children:e})}),(0,r.jsx)(u.Kx,{disabled:!0,style:{height:"50vh"},value:o})]})},c=()=>{let t=(0,i.lk)();return(0,o.useEffect)(()=>{console.error(t)},[t]),(0,r.jsx)(a,{resetErrorBoundary:()=>null,error:t})}},99036:function(t,n,e){"use strict";e.d(n,{O:function(){return a}});var r=e("86834");e("5872");var o=e("99231"),i=e("29214"),u=e("92868");let a=t=>{let{title:n,children:e}=t;return(0,r.jsxs)(o.kC,{className:u.container,mt:"9",mx:"auto",gap:"2",children:[(0,r.jsx)(o.kC,{height:"var(--space-9)",align:"center",children:(0,r.jsx)(i.fd$,{size:"36"})}),(0,r.jsxs)(o.xu,{children:[(0,r.jsx)(o.kC,{height:"var(--space-9)",align:"center",children:(0,r.jsx)(o.X6,{children:n})}),(0,r.jsx)(o.xu,{className:u.children,children:e})]})]})}},7870:function(t,n,e){"use strict";e.d(n,{r:function(){return s}});var r=e("90247"),o=e("55709"),i=e("16170"),u=e("86834"),a=e("90979"),c=e("99231");let s=t=>{var{to:n,children:e}=t,s=(0,i._)(t,["to","children"]);return(0,u.jsx)(c.rU,(0,o._)((0,r._)({},s),{asChild:!0,children:(0,u.jsx)(a.rU,{to:n,children:e})}))}},62766:function(t,n,e){"use strict";e.d(n,{l:function(){return a}});var r=e("86834");e("5872");var o=e("99231"),i=e("92927"),u=e("77393");let a=t=>{let{items:n}=t,e=(0,i.s0)(),a=(0,i.TH)(),c=n.find(t=>(0,u.LX)(t.to,a.pathname));return(0,r.jsxs)(o.Ph.fC,{size:"1",value:null==c?void 0:c.to,onValueChange:e,children:[(0,r.jsx)(o.Ph.xz,{}),(0,r.jsx)(o.Ph.VY,{position:"popper",children:n.map(t=>{let{title:n,to:e}=t;return(0,r.jsx)(o.Ph.ck,{value:e,children:n},e)})})]})}},25642:function(t,n,e){"use strict";e.d(n,{Q:function(){return l}});var r=e("90247"),o=e("55709"),i=e("16170"),u=e("86834"),a=e("5872"),c=e("99231"),s=e("70132");let l=t=>{var{children:n}=t,e=(0,i._)(t,["children"]);let[l]=(0,s.U)();return(0,a.useEffect)(()=>{document.documentElement.classList.remove("dark","light"),document.documentElement.classList.add(l)},[l]),(0,u.jsx)(c.Q2,(0,o._)((0,r._)({},e),{appearance:l,children:n}))}},17700:function(t,n,e){"use strict";var r=e("77393");n.Z=t=>{let{params:n}=t;if(!n.toolkit||!n.type)return(0,r.uX)("/404");if(!["framework","builder","bundler"].includes(n.toolkit))return(0,r.uX)("/404");if(!["resolved","transformed"].includes(n.type))return(0,r.uX)("/404");else return null}},19744:function(t,n,e){"use strict";var r=e("70552");n.Z=r.M},36466:function(t,n,e){"use strict";e.r(n),e.d(n,{handle:function(){return d}});var r=e("86834");e("5872");var o=e("99231"),i=e("92927"),u=e("52493"),a=e.n(u),c=e("69051");let s=t=>{let{name:n,describe:e}=t,i=e.map(t=>(0,r.jsx)(o.xv,{style:{display:"block"},children:t},t));return(0,r.jsx)(o.u,{className:c.tooltip,side:"right",content:i,children:(0,r.jsx)(o.Ph.ck,{value:n,children:(0,r.jsx)(o.xu,{children:a().startCase(n)})})},n)},l=[{name:"framework",describe:["Framework config is a superset of Builder config, ","extending it with additional configurations that ","include server-side capabilities and so on."]},{name:"builder",describe:["Builder provides wrapped building capabilities for scheduling Bundler, ","as well as other plugins and tools."]},{name:"bundler",describe:["Bundler is typically a low-level build tool like webpack or Rspack, ","and their configuration options differ significantly from higher-level tools."]}],f=[{name:"resolved",describe:["The configuration content passed by the user or superior tools,","usually exposed to the plugin API for modification."]},{name:"transformed",describe:["The modified and frozen configuration objects,","typically exposed to the plugin API for consumption."]}],d={breadcrumb:[{title:"Config"},{title:(0,r.jsx)(()=>{let t=(0,i.TH)(),n=(0,i.s0)(),[e,u]=t.pathname.split("/").slice(2);return(0,r.jsxs)(o.Ph.fC,{size:"1",value:e,onValueChange:t=>{n("/config/".concat(t,"/").concat(u))},children:[(0,r.jsx)(o.Ph.xz,{children:e}),(0,r.jsx)(o.Ph.VY,{children:l.map(t=>{let{name:n,describe:e}=t;return(0,r.jsx)(s,{name:n,describe:e},n)})})]})},{})},{title:(0,r.jsx)(()=>{let t=(0,i.TH)(),n=(0,i.s0)(),[e,u]=t.pathname.split("/").slice(2);return(0,r.jsxs)(o.Ph.fC,{size:"1",value:u,onValueChange:t=>{n("/config/".concat(e,"/").concat(t))},children:[(0,r.jsx)(o.Ph.xz,{children:u}),(0,r.jsx)(o.Ph.VY,{children:f.map(t=>{let{name:n,describe:e}=t;return(0,r.jsx)(s,{name:n,describe:e},n)})})]})},{})}]}},99956:function(t,n,e){"use strict";var r=e("77393"),o=e("55058");n.Z=t=>{let{request:n}=t,e=(0,o.As)(n.url,"./builder/transformed");return(0,r.uX)(e)}},64953:function(t,n,e){"use strict";var r=e("70552");n.Z=r.M},15549:function(t,n,e){"use strict";e.r(n),e.d(n,{handle:function(){return i}});var r=e("86834"),o=e("62766");let i={breadcrumb:[{title:"Context"},{title:(0,r.jsx)(o.l,{items:[{to:"/context/builder",title:"Builder"},{to:"/context/framework",title:"Framework"}]})}]}},97815:function(t,n,e){"use strict";var r=e("77393"),o=e("55058");n.Z=t=>{let{request:n}=t,e=(0,o.As)(n.url,"./builder");return(0,r.uX)(e)}},29922:function(t,n,e){"use strict";var r=e("86834"),o=e("92927"),i=e("99231"),u=e("55058"),a=e("79197"),c=e("99480"),s=e("70552"),l=e("99036");n.Z=()=>{let t=(0,o.lk)(),{def:n}=(0,a.R)(c.nb).context;if(!(t&&"object"==typeof t&&0===Object.keys(t).length))return(0,r.jsx)(s.M,{});{let t=(0,u.Lk)(n.doctor.quickStart).host,e=(0,r.jsxs)(i.rU,{href:n.doctor.quickStart,target:"_blank",rel:"noopener noreferrer",children:["\uD83D\uDD17",t]});return(0,r.jsx)(i.xu,{width:"100%",children:(0,r.jsxs)(l.O,{title:"Doctor is not working",children:["Visit the website of ",e," to learn more."]})})}}},68605:function(t,n,e){"use strict";e.r(n),e.d(n,{handle:function(){return r}});let r={breadcrumb:{title:"Doctor"}}},62522:function(t,n,e){"use strict";var r=e("70552");n.Z=r.M},15343:function(t,n,e){"use strict";e.r(n),e.d(n,{handle:function(){return u}});var r=e("52493"),o=e.n(r),i=e("99480");let u={breadcrumb(t){var n;let e;let{pathname:r}=t.location,u=null===(n=r.match(/^\/external\/(\w+)/))||void 0===n?void 0:n[1],a=o().find(i.PA,{name:u});return a?{title:e}=a:e=u?o().startCase(u):"External",{title:e,pathname:r}}}},37650:function(t,n,e){"use strict";var r=e("70552");n.Z=r.M},17306:function(t,n,e){"use strict";e.r(n),e.d(n,{handle:function(){return r}});let r={breadcrumb:{title:"Header Modifier"}}},15401:function(t,n,e){"use strict";e.d(n,{_:function(){return i}});var r=e("77393"),o=e("81695");let i=async()=>{let t=await o.ok.service;return(0,r.uX)(t.rules?"./editor":"./welcome")}},81695:function(t,n,e){"use strict";e.d(n,{gM:function(){return u},m:function(){return a},ok:function(){return s}});var r=e("81733"),o=e("52493"),i=e.n(o);let u=async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=encodeURIComponent(JSON.stringify(t)),e="".concat("/sw-proxy.js","?rules=").concat(n),r=await navigator.serviceWorker.register(e);return await navigator.serviceWorker.ready,s.service=await c(),r},a=async()=>{let t=await navigator.serviceWorker.getRegistrations(),n=!0;for(let e of t)n=n&&await e.unregister();return s.service=Promise.resolve({}),n},c=async()=>{for(let t of i().times(3))try{let t=AbortSignal.timeout(300),n=await fetch("/__devtools/service/status",{signal:t});return await n.json()}catch(t){}return{}},s=(0,r.sj)({service:c()})},40193:function(t,n,e){"use strict";e.r(n),e.d(n,{handle:function(){return i}});var r=e("86834"),o=e("29214");let i={breadcrumb:{title:(0,r.jsx)(o.Zn9,{}),pathname:"/overview"}}},49605:function(t,n,e){"use strict";e.d(n,{_:function(){return l}});var r=e("86834"),o=e("29214"),i=e("54201"),u=e("81733"),a=e("99480"),c=e("4693");let s=!1,l=async()=>{if(s)return null;s=!0;let t=(await a.nb.context).def.plugins,n=c.eg.use();await (0,c.rh)(t);let e=[{name:"overview",title:"Overview",icon:(0,r.jsx)(o.VRM,{}),view:{type:"builtin",src:"/overview"}},{name:"config",title:"Config",icon:(0,r.jsx)(o.pZq,{}),view:{type:"builtin",src:"/config"}},{name:"pages",title:"Pages",icon:(0,r.jsx)(o.OiH,{}),view:{type:"builtin",src:"/pages"}},{name:"react",title:"React",icon:(0,r.jsx)(i.Ueg,{}),view:{type:"builtin",src:"/react"}},{name:"context",title:"Context",icon:(0,r.jsx)(o.sin,{}),view:{type:"builtin",src:"/context"}},{name:"headers",title:"Header Modifier",icon:(0,r.jsx)(o.KBe,{}),view:{type:"builtin",src:"/headers"}},{name:"doctor",title:"Doctor",icon:(0,r.jsx)(i.BwS,{}),view:{type:"builtin",src:"/doctor"}},{name:"storage",title:"Storage",icon:(0,r.jsx)(o.RMk,{}),view:{type:"builtin",src:"/storage/preset"}}];for(let t of(await n.callHook("tab:list",e),e))"object"==typeof t.icon&&(t.icon=(0,u.iH)(t.icon)),"external"===t.view.type&&(t.view.component=(0,u.iH)(t.view.component));return a.PA.length=0,a.PA.push(...e),null}},69748:function(t,n,e){"use strict";e.r(n);var r=e("86834");e("21975");var o=e("5872"),i=e("4537"),u=e("90979"),a=e("92927"),c=e("99231"),s=e("29214"),l=e("79197"),f=e("78328"),d=e("99480"),p=e("25642"),v=e("91470"),h=e("81881"),m=e("70132");let g=t=>{let{tab:n}=t,e="";if("builtin"===n.view.type)e=n.view.src;else if("iframe"===n.view.type)e="/iframe/".concat(n.view.src);else if("external"===n.view.type)e="/external/".concat(n.name);else throw Error('Invalid tab view of "'.concat(n.name,'".'));return(0,o.useEffect)(()=>{document.documentElement.classList.add("theme-register")},[]),(0,r.jsx)(c.u,{content:n.title,side:"right",children:(0,r.jsx)(u.OL,{to:e,className:f.tabButton,children:(0,r.jsx)(c.kC,{justify:"center",align:"center",p:"1",className:f.tabButtonInner,children:(0,r.jsx)(c.xu,{height:"var(--space-5)",width:"var(--space-5)",asChild:!0,children:n.icon})})})})},x=()=>{let[t,n]=(0,m.U)();return(0,r.jsx)(c.u,{content:"Appearance",side:"right",children:(0,r.jsx)(c.xu,{className:f.tabButton,onClick:()=>{n("light"===t?"dark":"light")},children:(0,r.jsx)(c.kC,{justify:"center",align:"center",p:"1",className:f.tabButtonInner,children:(0,r.jsx)(c.xu,{height:"var(--space-5)",width:"var(--space-5)",asChild:!0,children:"dark"===t?(0,r.jsx)(s.Fxr,{}):(0,r.jsx)(s.YGJ,{})})})})})},b=()=>{let t=(0,l.R)(d.PA);return(0,r.jsxs)(c.kC,{direction:"column",flexShrink:"0",className:f.navigator,children:[t.map(t=>(0,r.jsx)(g,{tab:t},t.name)),(0,r.jsx)(c.xu,{flexGrow:"1"}),(0,r.jsx)(x,{})]})};n.default=()=>(0,r.jsx)(p.Q,{className:f.wrapper,accentColor:"blue",panelBackground:"solid",children:(0,r.jsxs)(i.zt,{swipeDirection:"up",children:[(0,r.jsx)(b,{}),(0,r.jsxs)(c.xu,{width:"100%",position:"relative",pt:"4",children:[(0,r.jsx)(c.xu,{width:"100%",height:"100%",position:"relative",children:(0,r.jsx)(a.j3,{})}),(0,r.jsx)(v.O,{className:f.breadcrumbs,height:"2.5rem",position:"absolute",top:"0",left:"0",right:"0"})]}),(0,r.jsx)(h.f,{})]})})},18384:function(t,n,e){"use strict";var r=e("86834"),o=e("62809"),i=e("99480"),u=e("84041"),a=e("428");n.Z=()=>((0,o.Z)(async()=>{(await i.dL).remote.onFinishRender()}),(0,r.jsx)(a.g,{className:u.loading}))},59448:function(t,n,e){"use strict";var r=e("70552");n.Z=r.M},84826:function(t,n,e){"use strict";e.r(n),e.d(n,{handle:function(){return r}});let r={breadcrumb:{title:"Overview"}}},93113:function(t,n,e){"use strict";e.d(n,{_:function(){return i}});var r=e("77393"),o=e("55058");let i=t=>{let{request:n}=t,e=(0,o.As)(n.url,"./overview");return(0,r.uX)(e)}},96303:function(t,n,e){"use strict";var r=e("70552");n.Z=r.M},93581:function(t,n,e){"use strict";e.r(n),e.d(n,{handle:function(){return r}});let r={breadcrumb:{title:"Pages"}}},24757:function(t,n,e){"use strict";e.r(n),e.d(n,{handle:function(){return i}});var r=e("86834"),o=e("62766");let i={breadcrumb:[{title:"React"},{title:(0,r.jsx)(o.l,{items:[{to:"/react/components",title:"Components"},{to:"/react/profiler",title:"Profiler"}]})}]}},92865:function(t,n,e){"use strict";var r=e("70552");n.Z=r.M},82193:function(t,n,e){"use strict";var r=e("77393"),o=e("55058");n.Z=t=>{let{request:n}=t,e=(0,o.As)(n.url,"./components");return(0,r.uX)(e)}},99480:function(t,n,e){"use strict";e.d(n,{D7:function(){return h},PA:function(){return m},dL:function(){return f},nb:function(){return v},q4:function(){return g}});var r=e("90247"),o=e("55709"),i=e("10487"),u=e("88739"),a=e("65872"),c=e("55058"),s=e("81733");let l=(0,c.Jh)({protocol:"https:"===location.protocol?"wss:":"ws:",host:location.host,pathname:"/__devtools/rpc"}),f=i.MessagePortChannel.link(window.parent,"channel:connect:client").then(async t=>{let n=(0,a.Hu)();return{remote:(0,u.Fu)({async pullUp(t){await n.callHook("pullUp",t)}},(0,o._)((0,r._)({},t.handlers),{timeout:8e3})),hooks:n}}),d=new window.WebSocket(l),p=i.WebSocketChannel.link(d),v=(0,s.sj)((0,i.createServerExportedState)().state),h=p.then(async t=>{let n=(0,a.Hu)(),e=(0,u.Fu)({async refresh(){location.reload()},async applyStateOperations(t){for(let n of t)(0,i.applyOperation)(v,n)}},(0,o._)((0,r._)({},t.handlers),{timeout:5e3}));return e.pullExportedState().then(t=>{for(let[n,e]of Object.entries(t)){let t=v[n];(!(t instanceof Promise)||!(e instanceof Promise))&&(t instanceof Promise&&i.PromiseStub.get(t).resolve(e),v[n]=e)}}),{remote:e,hooks:n}}),m=(0,s.sj)([]),g="2.50.0"},66140:function(t,n,e){"use strict";e.d(n,{_:function(){return a}});var r=e("77393"),o=e("52493"),i=e.n(o),u=e("99480");let a=async t=>{let{params:n}=t,{id:e}=n;if(!e)throw TypeError("storage preset id is required");let{context:o}=await Promise.resolve(u.nb),{storagePresets:a}=await Promise.resolve(o),c=i().find(a,{id:e});return c?c:(0,r.uX)("/storage/preset")}},27711:function(t,n,e){"use strict";e.r(n),e.d(n,{handle:function(){return r}});let r={breadcrumb:[{title:"Storage"},{title:"Preset"}]}},63656:function(t,n,e){"use strict";e.d(n,{_:function(){return o},a:function(){return i}});var r=e("96956");let o=async t=>await (0,r.l5)(),i=()=>null},71703:function(t,n,e){"use strict";e.d(n,{_:function(){return o}});var r=e("96956");let o=async t=>await (0,r.l5)()},96956:function(t,n,e){"use strict";e.d(n,{SR:function(){return c},dR:function(){return u},f:function(){return s},l5:function(){return l},xq:function(){return a}});var r=e("52493"),o=e.n(r),i=e("99480");let u=["cookie","localStorage","sessionStorage"],a={cookie:"yellow",localStorage:"green",sessionStorage:"blue"},c=(t,n)=>o().map(t[n],(e,r)=>{let o=[t.id,n,r].join("//");return{key:r,value:e,type:n,id:o}}),s=t=>{let n=[];for(let e of u)n.push(...c(t,e));return n},l=async t=>{let n=await i.dL,[e,r,o]=await Promise.all([n.remote.cookies(null==t?void 0:t.cookie),n.remote.localStorage(null==t?void 0:t.localStorage),n.remote.sessionStorage(null==t?void 0:t.sessionStorage)]);return{cookie:e,localStorage:r,sessionStorage:o}}},74473:function(t,n,e){"use strict";e("86834"),e("5872")},38068:function(t,n,e){"use strict";e.d(n,{X7:function(){return o}}),e("52493"),e("5872");let r=new WeakMap,o=t=>{if(!(t instanceof Promise))return t;if(r.has(t)){let n=r.get(t);if(!(n instanceof Error))return n;throw n}throw t.then(n=>r.set(t,n)).catch(n=>r.set(t,n)),t}},24326:function(t,n,e){"use strict";e.d(n,{X7:function(){return r.X7}}),e("74473");var r=e("38068")},4693:function(t,n,e){"use strict";e.d(n,{eg:function(){return i},rh:function(){return u}});var r=e("10487"),o=e("65872");class i extends o.gl{static use(){return!(r.RUNTIME_GLOBALS in window)&&(window[r.RUNTIME_GLOBALS]=new i),window[r.RUNTIME_GLOBALS]}}async function u(t){i.use();let n=t.map(t=>new Promise((n,e)=>{let r=document.createElement("script");r.onload=()=>n(),r.onerror=t=>e(t),r.src=t,document.head.appendChild(r)}));await Promise.all(n)}},69051:function(t,n,e){"use strict";e.r(t.exports={tooltip:"tooltip-ce1d99"})},78328:function(t,n,e){"use strict";e.r(t.exports={breadcrumbs:"breadcrumbs-b08b87",container:"container-b08b87","fading-mask":"fading-mask-b08b87",fadingMask:"fading-mask-b08b87",navigator:"navigator-b08b87","tab-button":"tab-button-b08b87",tabButton:"tab-button-b08b87","tab-button-inner":"tab-button-inner-b08b87",tabButtonInner:"tab-button-inner-b08b87",wrapper:"wrapper-b08b87"})},84041:function(t,n,e){"use strict";e.r(t.exports={loading:"loading-b0ca18"})},21975:function(t,n,e){"use strict";e.r(t.exports={})}},function(t){var n=function(n){return t(t.s=n)};t.O(0,["118","126","293","567","58","707","770","977"],function(){return n("90915"),n("41975"),n("15219"),n("19449"),n("56036")}),t.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["567"],{60421:function(t,e,n){"use strict";n.r(t.exports={connector:"connector-b98d1a",link:"link-b98d1a"})},52783:function(t,e,n){"use strict";n.r(t.exports={card:"card-c8f116"})},70130:function(t,e,n){"use strict";n.r(t.exports={container:"container-d69202"})},2395:function(t,e,n){"use strict";n.r(t.exports={container:"container-a4c108",fab:"fab-a4c108",logo:"logo-a4c108",slideInFromRight:"slideInFromRight-a4c108"})},80115:function(t,e,n){"use strict";n.r(t.exports={backdrop:"backdrop-c93e94","close-button":"close-button-c93e94",closeButton:"close-button-c93e94",container:"container-c93e94",frame:"frame-c93e94"})},92868:function(t,e,n){"use strict";n.r(t.exports={children:"children-ee33d8",container:"container-ee33d8"})},5386:function(t,e,n){"use strict";n.r(t.exports={loading:"loading-c0d889",rotate:"rotate-c0d889"})},98281:function(t,e,n){"use strict";n.r(t.exports={container:"container-f9786a"})},86825:function(t,e,n){"use strict";n.r(t.exports={container:"container-e82720"})},7580:function(t,e,n){"use strict";n.r(t.exports={container:"container-ee7c7b"})},86545:function(t,e,n){"use strict";n.r(t.exports={actions:"actions-e1e928","input-pair":"input-pair-e1e928",inputPair:"input-pair-e1e928"})},85479:function(t,e,n){"use strict";n.r(t.exports={container:"container-cbc558",content:"content-cbc558",mark:"mark-cbc558",slideDown:"slideDown-cbc558",slideUp:"slideUp-cbc558",trigger:"trigger-cbc558","url-text":"url-text-cbc558",urlText:"url-text-cbc558"})},57433:function(t,e,n){"use strict";n.r(t.exports={"endpoint-container":"endpoint-container-bcf270",endpointContainer:"endpoint-container-bcf270","endpoint-tag":"endpoint-tag-bcf270",endpointTag:"endpoint-tag-bcf270","shy-link":"shy-link-bcf270",shyLink:"shy-link-bcf270"})},82023:function(t,e,n){"use strict";n.r(t.exports={stats:"stats-ca9c06"})},96911:function(t,e,n){"use strict";n.r(t.exports={close:"close-c8d1be",container:"container-c8d1be",hide:"hide-c8d1be",slideIn:"slideIn-c8d1be",swipeOut:"swipeOut-c8d1be",viewport:"viewport-c8d1be"})}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see lib-router.28d6a20e.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["118"],{77393:function(e,t,r){"use strict";var n,a,o,i;function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,{Ep:function(){return m},J0:function(){return d},LX:function(){return R},OF:function(){return A},RQ:function(){return U},WK:function(){return F},WS:function(){return E},X3:function(){return j},Zn:function(){return D},aU:function(){return n},cP:function(){return v},cm:function(){return P},fp:function(){return b},lX:function(){return u},p7:function(){return Y},pC:function(){return k},q_:function(){return c},uX:function(){return O}}),(o=n||(n={})).Pop="POP",o.Push="PUSH",o.Replace="REPLACE";let s="popstate";function u(e){return void 0===e&&(e={}),y(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return p("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:m(t)},null,e)}function c(e){return void 0===e&&(e={}),y(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=v(e.location.hash.substr(1));return!r.startsWith("/")&&!r.startsWith(".")&&(r="/"+r),p("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:m(t))},function(e,t){f("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function d(e,t){if(!1===e||null==e)throw Error(t)}function f(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function h(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,r,n){return void 0===r&&(r=null),l({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?v(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function m(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function v(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function y(e,t,r,a){void 0===a&&(a={});let{window:o=document.defaultView,v5Compat:i=!1}=a,u=o.history,c=n.Pop,f=null,v=y();function y(){return(u.state||{idx:null}).idx}function g(){c=n.Pop;let e=y(),t=null==e?null:e-v;v=e,f&&f({action:c,location:b.location,delta:t})}null==v&&(v=0,u.replaceState(l({},u.state,{idx:v}),""));function w(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,r="string"==typeof e?e:m(e);return d(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}let b={get action(){return c},get location(){return e(o,u)},listen(e){if(f)throw Error("A history only accepts one active listener");return o.addEventListener(s,g),f=e,()=>{o.removeEventListener(s,g),f=null}},createHref:e=>t(o,e),createURL:w,encodeLocation(e){let t=w(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=n.Push;let a=p(b.location,e,t);r&&r(a,e);let l=h(a,v=y()+1),s=b.createHref(a);try{u.pushState(l,"",s)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(s)}i&&f&&f({action:c,location:b.location,delta:1})},replace:function(e,t){c=n.Replace;let a=p(b.location,e,t);r&&r(a,e);let o=h(a,v=y()),l=b.createHref(a);u.replaceState(o,"",l),i&&f&&f({action:c,location:b.location,delta:0})},go:e=>u.go(e)};return b}(i=a||(a={})).data="data",i.deferred="deferred",i.redirect="redirect",i.error="error";let g=new Set(["lazy","caseSensitive","path","id","index","children"]);function w(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{let o=[...r,a],i="string"==typeof e.id?e.id:o.join("-");if(d(!0!==e.index||!e.children,"Cannot specify children on an index route"),d(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let r=l({},e,t(e),{id:i});return n[i]=r,r}{let r=l({},e,t(e),{id:i,children:void 0});return n[i]=r,e.children&&(r.children=w(e.children,t,o,n)),r}})}function b(e,t,r){void 0===r&&(r="/");let n=D(("string"==typeof t?v(t):t).pathname||"/",r);if(null==n)return null;let a=function e(t,r,n,a){void 0===r&&(r=[]),void 0===n&&(n=[]),void 0===a&&(a="");let o=(t,o,i)=>{let l={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};l.relativePath.startsWith("/")&&(d(l.relativePath.startsWith(a),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+a)+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),l.relativePath=l.relativePath.slice(a.length));let s=U([a,l.relativePath]),u=n.concat(l);t.children&&t.children.length>0&&(d(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),e(t.children,r,u,s)),(null!=t.path||t.index)&&r.push({path:s,score:function(e,t){let r=e.split("/"),n=r.length;return r.some(S)&&(n+=-2),t&&(n+=2),r.filter(e=>!S(e)).reduce((e,t)=>e+(x.test(t)?3:""===t?1:10),n)}(s,t.index),routesMeta:u})};return t.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of function e(t){let r=t.split("/");if(0===r.length)return[];let[n,...a]=r,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let l=e(a.join("/")),s=[];return s.push(...l.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...l),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,r);else o(e,t)}),r}(e);(function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,r)=>e===t[r])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))})(a);let o=null;for(let e=0;null==o&&e<a.length;++e)o=function(e,t){let{routesMeta:r}=e,n={},a="/",o=[];for(let e=0;e<r.length;++e){let i=r[e],l=e===r.length-1,s="/"===a?t:t.slice(a.length)||"/",u=R({path:i.relativePath,caseSensitive:i.caseSensitive,end:l},s);if(!u)return null;Object.assign(n,u.params);let c=i.route;o.push({params:n,pathname:U([a,u.pathname]),pathnameBase:T(U([a,u.pathnameBase])),route:c}),"/"!==u.pathnameBase&&(a=U([a,u.pathnameBase]))}return o}(a[e],function(e){try{return decodeURI(e)}catch(t){return f(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t)+")."),e}}(n));return o}function E(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}let x=/^:[\w-]+$/,S=e=>"*"===e;function R(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),f("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*"))+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, '+('please change the route path to "'+e.replace(/\*$/,"/*"))+'".');let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:n.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=l[r]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}let s=l[r];return a&&!s?e[n]=void 0:e[n]=function(e,t){try{return decodeURIComponent(e)}catch(r){return f(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e)+'" is a malformed URL segment. This is probably'+(" due to a bad percent encoding ("+r)+")."),e}}(s||"",n),e},{}),pathname:o,pathnameBase:i,pattern:e}}function D(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function L(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n))+"]. Please separate it out to the "+("`to."+r)+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function C(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function P(e,t){let r=C(e);return t?r.map((t,r)=>r===e.length-1?t.pathname:t.pathnameBase):r.map(e=>e.pathnameBase)}function k(e,t,r,n){let a,o;void 0===n&&(n=!1),"string"==typeof e?a=v(e):(d(!(a=l({},e)).pathname||!a.pathname.includes("?"),L("?","pathname","search",a)),d(!a.pathname||!a.pathname.includes("#"),L("#","pathname","hash",a)),d(!a.search||!a.search.includes("#"),L("#","search","hash",a)));let i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:a=""}="string"==typeof e?v(e):e;return{pathname:r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}(r,t):t,search:_(n),hash:M(a)}}(a,o),c=s&&"/"!==s&&s.endsWith("/"),f=(i||"."===s)&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||f)&&(u.pathname+="/"),u}let U=e=>e.join("/").replace(/\/\/+/g,"/"),T=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",M=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class j extends Error{}let O=function(e,t){void 0===t&&(t=302);let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,l({},r,{headers:n}))};class A{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function F(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let B=["post","put","patch","delete"],W=new Set(B),z=new Set(["get",...B]),N=new Set([301,302,303,307,308]),H=new Set([307,308]),I={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},J={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},$={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},q=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,V=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),X="remix-router-transitions";function Y(e){let t,r,o,i,s;let u=e.window?e.window:"undefined"!=typeof window?window:void 0,c=void 0!==u&&void 0!==u.document&&void 0!==u.document.createElement,h=!c;if(d(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let r=e.detectErrorBoundary;t=e=>({hasErrorBoundary:r(e)})}else t=V;let m={},v=w(e.routes,t,void 0,m),y=e.basename||"/",g=l({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),x=null,S=new Set,R=null,L=null,C=null,P=null!=e.hydrationData,k=b(v,e.history.location,y),U=null;if(null==k){let t=ec(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=eu(v);k=r,U={[n.id]:t}}let T=k.some(e=>e.route.lazy),_=k.some(e=>e.route.loader);if(T)o=!1;else if(_){if(g.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;o=k.every(e=>e.route.loader&&!0!==e.route.loader.hydrate&&(t&&void 0!==t[e.route.id]||r&&void 0!==r[e.route.id]))}else o=null!=e.hydrationData}else o=!0;let M={historyAction:e.history.action,location:e.history.location,matches:k,initialized:o,navigation:I,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||U,fetchers:new Map,blockers:new Map},j=n.Pop,O=!1,A=!1,F=new Map,B=null,W=!1,z=!1,N=[],Y=[],G=new Map,ee=0,et=-1,ea=new Map,eo=new Set,ef=new Map,ew=new Map,eD=new Set,eL=new Map,eC=new Map,eP=!1;function ek(e,t){void 0===t&&(t={}),M=l({},M,e);let r=[],n=[];g.v7_fetcherPersist&&M.fetchers.forEach((e,t)=>{"idle"===e.state&&(eD.has(t)?n.push(t):r.push(t))}),[...S].forEach(e=>e(M,{deletedFetchers:n,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync})),g.v7_fetcherPersist&&(r.forEach(e=>M.fetchers.delete(e)),n.forEach(e=>eI(e)))}function eU(t,a,o){var i,s;let u,c;let{flushSync:d}=void 0===o?{}:o,f=null!=M.actionData&&null!=M.navigation.formMethod&&ev(M.navigation.formMethod)&&"loading"===M.navigation.state&&(null==(i=t.state)?void 0:i._isRedirect)!==!0;u=a.actionData?Object.keys(a.actionData).length>0?a.actionData:null:f?M.actionData:null;let h=a.loaderData?el(M.loaderData,a.loaderData,a.matches||[],a.errors):M.loaderData,p=M.blockers;p.size>0&&(p=new Map(p)).forEach((e,t)=>p.set(t,$));let m=!0===O||null!=M.navigation.formMethod&&ev(M.navigation.formMethod)&&(null==(s=t.state)?void 0:s._isRedirect)!==!0;if(r&&(v=r,r=void 0),W||j===n.Pop||(j===n.Push?e.history.push(t,t.state):j===n.Replace&&e.history.replace(t,t.state)),j===n.Pop){let e=F.get(M.location.pathname);e&&e.has(t.pathname)?c={currentLocation:M.location,nextLocation:t}:F.has(t.pathname)&&(c={currentLocation:t,nextLocation:M.location})}else if(A){let e=F.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),F.set(M.location.pathname,e)),c={currentLocation:M.location,nextLocation:t}}ek(l({},a,{actionData:u,loaderData:h,historyAction:j,location:t,initialized:!0,navigation:I,revalidation:"idle",restoreScrollPosition:eG(t,a.matches||M.matches),preventScrollReset:m,blockers:p}),{viewTransitionOpts:c,flushSync:!0===d}),j=n.Pop,O=!1,A=!1,W=!1,z=!1,N=[],Y=[]}async function eT(t,r){if("number"==typeof t){e.history.go(t);return}let a=Q(M.location,M.matches,y,g.v7_prependBasename,t,g.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:o,submission:i,error:s}=Z(g.v7_normalizeFormMethod,!1,a,r),u=M.location,c=p(M.location,o,r&&r.state);c=l({},c,e.history.encodeLocation(c));let d=r&&null!=r.replace?r.replace:void 0,f=n.Push;!0===d?f=n.Replace:!1===d||null!=i&&ev(i.formMethod)&&i.formAction===M.location.pathname+M.location.search&&(f=n.Replace);let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,m=!0===(r&&r.unstable_flushSync),v=eQ({currentLocation:u,nextLocation:c,historyAction:f});if(v){eY(v,{state:"blocked",location:c,proceed(){eY(v,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),eT(t,r)},reset(){let e=new Map(M.blockers);e.set(v,$),ek({blockers:e})}});return}return await e_(f,c,{submission:i,pendingError:s,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.unstable_viewTransition,flushSync:m})}async function e_(t,n,a){let o,i;s&&s.abort(),s=null,j=t,W=!0===(a&&a.startUninterruptedRevalidation),function(e,t){R&&C&&(R[eK(e,t)]=C())}(M.location,M.matches),O=!0===(a&&a.preventScrollReset),A=!0===(a&&a.enableViewTransition);let u=r||v,c=a&&a.overrideNavigation,d=b(u,n,y),f=!0===(a&&a.flushSync);if(!d){let e=ec(404,{pathname:n.pathname}),{matches:t,route:r}=eu(u);eZ(),eU(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:f});return}if(M.initialized&&!z&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(M.location,n)&&!(a&&a.submission&&ev(a.submission.formMethod))){eU(n,{matches:d},{flushSync:f});return}s=new AbortController;let h=en(e.history,n,s.signal,a&&a.submission);if(a&&a.pendingError)i={[es(d).route.id]:a.pendingError};else if(a&&a.submission&&ev(a.submission.formMethod)){let e=await eM(h,n,a.submission,d,{replace:a.replace,flushSync:f});if(e.shortCircuited)return;o=e.pendingActionData,i=e.pendingActionError,c=ex(n,a.submission),f=!1,h=new Request(h.url,{signal:h.signal})}let{shortCircuited:p,loaderData:m,errors:g}=await ej(h,n,d,c,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,f,o,i);!p&&(s=null,eU(n,l({matches:d},o?{actionData:o}:{},{loaderData:m,errors:g})))}async function eM(e,r,o,i,l){let s;void 0===l&&(l={}),eW(),ek({navigation:function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(r,o)},{flushSync:!0===l.flushSync});let u=eb(i,r);if(u.route.action||u.route.lazy){if(s=await er("action",e,u,i,m,t,y,g.v7_relativeSplatPath),e.signal.aborted)return{shortCircuited:!0}}else s={type:a.error,error:ec(405,{method:e.method,pathname:r.pathname,routeId:u.route.id})};if(em(s)){let e;return e=l&&null!=l.replace?l.replace:s.location===M.location.pathname+M.location.search,await eF(M,s,{submission:o,replace:e}),{shortCircuited:!0}}if(ep(s)){let e=es(i,u.route.id);return!0!==(l&&l.replace)&&(j=n.Push),{pendingActionData:{},pendingActionError:{[e.route.id]:s.error}}}if(eh(s))throw ec(400,{type:"defer-action"});return{pendingActionData:{[u.route.id]:s.data}}}async function ej(t,n,a,o,i,u,c,d,f,h,p){let m=o||ex(n,i),w=i||u||eE(m),b=r||v,[E,x]=K(e.history,M,a,w,n,g.v7_partialHydration&&!0===d,z,N,Y,eD,ef,eo,b,y,h,p);if(eZ(e=>!(a&&a.some(t=>t.route.id===e))||E&&E.some(t=>t.route.id===e)),et=++ee,0===E.length&&0===x.length){let e=eq();return eU(n,l({matches:a,loaderData:{},errors:p||null},h?{actionData:h}:{},e?{fetchers:new Map(M.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(!W&&(!g.v7_partialHydration||!d)){x.forEach(e=>{let t=M.fetchers.get(e.key),r=eS(void 0,t?t.data:void 0);M.fetchers.set(e.key,r)});let e=h||M.actionData;ek(l({navigation:m},e?0===Object.keys(e).length?{actionData:null}:{actionData:e}:{},x.length>0?{fetchers:new Map(M.fetchers)}:{}),{flushSync:f})}x.forEach(e=>{G.has(e.key)&&eJ(e.key),e.controller&&G.set(e.key,e.controller)});let S=()=>x.forEach(e=>eJ(e.key));s&&s.signal.addEventListener("abort",S);let{results:R,loaderResults:D,fetcherResults:L}=await eB(M.matches,a,E,x,t);if(t.signal.aborted)return{shortCircuited:!0};s&&s.signal.removeEventListener("abort",S),x.forEach(e=>G.delete(e.key));let C=ed(R);if(C){if(C.idx>=E.length){let e=x[C.idx-E.length].key;eo.add(e)}return await eF(M,C.result,{replace:c}),{shortCircuited:!0}}let{loaderData:P,errors:k}=ei(M,a,E,D,p,x,L,eL);eL.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&eL.delete(t)})});let U=eq(),T=eV(et),_=U||T||x.length>0;return l({loaderData:P,errors:k},_?{fetchers:new Map(M.fetchers)}:{})}async function eO(n,a,o,i,l,u,c){if(eW(),ef.delete(n),!i.route.action&&!i.route.lazy){let e=ec(405,{method:c.formMethod,pathname:o,routeId:a});eN(n,a,e,{flushSync:u});return}let f=M.fetchers.get(n);ez(n,function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}(c,f),{flushSync:u});let h=new AbortController,p=en(e.history,o,h.signal,c);G.set(n,h);let w=ee,E=await er("action",p,i,l,m,t,y,g.v7_relativeSplatPath);if(p.signal.aborted){G.get(n)===h&&G.delete(n);return}if(g.v7_fetcherPersist&&eD.has(n)){if(em(E)||ep(E)){ez(n,eR(void 0));return}}else{if(em(E)){if(G.delete(n),!(et>w))return eo.add(n),ez(n,eS(c)),eF(M,E,{fetcherSubmission:c});ez(n,eR(void 0));return}if(ep(E)){eN(n,a,E.error);return}}if(eh(E))throw ec(400,{type:"defer-action"});let x=M.navigation.location||M.location,S=en(e.history,x,h.signal),R=r||v,D="idle"!==M.navigation.state?b(R,M.navigation.location,y):M.matches;d(D,"Didn't find any matches after fetcher action");let L=++ee;ea.set(n,L);let C=eS(c,E.data);M.fetchers.set(n,C);let[P,k]=K(e.history,M,D,c,x,!1,z,N,Y,eD,ef,eo,R,y,{[i.route.id]:E.data},void 0);k.filter(e=>e.key!==n).forEach(e=>{let t=e.key,r=M.fetchers.get(t),n=eS(void 0,r?r.data:void 0);M.fetchers.set(t,n),G.has(t)&&eJ(t),e.controller&&G.set(t,e.controller)}),ek({fetchers:new Map(M.fetchers)});let U=()=>k.forEach(e=>eJ(e.key));h.signal.addEventListener("abort",U);let{results:T,loaderResults:_,fetcherResults:O}=await eB(M.matches,D,P,k,S);if(h.signal.aborted)return;h.signal.removeEventListener("abort",U),ea.delete(n),G.delete(n),k.forEach(e=>G.delete(e.key));let A=ed(T);if(A){if(A.idx>=P.length){let e=k[A.idx-P.length].key;eo.add(e)}return eF(M,A.result)}let{loaderData:F,errors:B}=ei(M,M.matches,P,_,void 0,k,O,eL);if(M.fetchers.has(n)){let e=eR(E.data);M.fetchers.set(n,e)}eV(L),"loading"===M.navigation.state&&L>et?(d(j,"Expected pending action"),s&&s.abort(),eU(M.navigation.location,{matches:D,loaderData:F,errors:B,fetchers:new Map(M.fetchers)})):(ek({errors:B,loaderData:el(M.loaderData,F,D,B),fetchers:new Map(M.fetchers)}),z=!1)}async function eA(r,n,a,o,i,l,s){let u=M.fetchers.get(r);ez(r,eS(s,u?u.data:void 0),{flushSync:l});let c=new AbortController,f=en(e.history,a,c.signal);G.set(r,c);let h=ee,p=await er("loader",f,o,i,m,t,y,g.v7_relativeSplatPath);if(eh(p)&&(p=await eg(p,f.signal,!0)||p),G.get(r)===c&&G.delete(r),!f.signal.aborted){if(eD.has(r)){ez(r,eR(void 0));return}if(em(p)){if(et>h){ez(r,eR(void 0));return}eo.add(r),await eF(M,p);return}if(ep(p)){eN(r,n,p.error);return}d(!eh(p),"Unhandled fetcher deferred data"),ez(r,eR(p.data))}}async function eF(t,r,a){let{submission:o,fetcherSubmission:i,replace:f}=void 0===a?{}:a;r.revalidate&&(z=!0);let h=p(t.location,r.location,{_isRedirect:!0});if(d(h,"Expected a location on the redirect navigation"),c){let t=!1;if(r.reloadDocument)t=!0;else if(q.test(r.location)){let n=e.history.createURL(r.location);t=n.origin!==u.location.origin||null==D(n.pathname,y)}if(t){f?u.location.replace(r.location):u.location.assign(r.location);return}}s=null;let m=!0===f?n.Replace:n.Push,{formMethod:v,formAction:g,formEncType:w}=t.navigation;!o&&!i&&v&&g&&w&&(o=eE(t.navigation));let b=o||i;if(H.has(r.status)&&b&&ev(b.formMethod))await e_(m,h,{submission:l({},b,{formAction:r.location}),preventScrollReset:O});else{let e=ex(h,o);await e_(m,h,{overrideNavigation:e,fetcherSubmission:i,preventScrollReset:O})}}async function eB(r,n,o,i,l){let s=await Promise.all([...o.map(e=>er("loader",l,e,n,m,t,y,g.v7_relativeSplatPath)),...i.map(r=>r.matches&&r.match&&r.controller?er("loader",en(e.history,r.path,r.controller.signal),r.match,r.matches,m,t,y,g.v7_relativeSplatPath):{type:a.error,error:ec(404,{pathname:r.path})})]),u=s.slice(0,o.length),c=s.slice(o.length);return await Promise.all([ey(r,o,u,u.map(()=>l.signal),!1,M.loaderData),ey(r,i.map(e=>e.match),c,i.map(e=>e.controller?e.controller.signal:null),!0)]),{results:s,loaderResults:u,fetcherResults:c}}function eW(){z=!0,N.push(...eZ()),ef.forEach((e,t)=>{G.has(t)&&(Y.push(t),eJ(t))})}function ez(e,t,r){void 0===r&&(r={}),M.fetchers.set(e,t),ek({fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function eN(e,t,r,n){void 0===n&&(n={});let a=es(M.matches,t);eI(e),ek({errors:{[a.route.id]:r},fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function eH(e){return g.v7_fetcherPersist&&(ew.set(e,(ew.get(e)||0)+1),eD.has(e)&&eD.delete(e)),M.fetchers.get(e)||J}function eI(e){let t=M.fetchers.get(e);G.has(e)&&!(t&&"loading"===t.state&&ea.has(e))&&eJ(e),ef.delete(e),ea.delete(e),eo.delete(e),eD.delete(e),M.fetchers.delete(e)}function eJ(e){let t=G.get(e);d(t,"Expected fetch controller: "+e),t.abort(),G.delete(e)}function e$(e){for(let t of e){let e=eR(eH(t).data);M.fetchers.set(t,e)}}function eq(){let e=[],t=!1;for(let r of eo){let n=M.fetchers.get(r);d(n,"Expected fetcher: "+r),"loading"===n.state&&(eo.delete(r),e.push(r),t=!0)}return e$(e),t}function eV(e){let t=[];for(let[r,n]of ea)if(n<e){let e=M.fetchers.get(r);d(e,"Expected fetcher: "+r),"loading"===e.state&&(eJ(r),ea.delete(r),t.push(r))}return e$(t),t.length>0}function eX(e){M.blockers.delete(e),eC.delete(e)}function eY(e,t){let r=M.blockers.get(e)||$;d("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(M.blockers);n.set(e,t),ek({blockers:n})}function eQ(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===eC.size)return;eC.size>1&&f(!1,"A router only supports one blocker at a time");let a=Array.from(eC.entries()),[o,i]=a[a.length-1],l=M.blockers.get(o);if((!l||"proceeding"!==l.state)&&i({currentLocation:t,nextLocation:r,historyAction:n}))return o}function eZ(e){let t=[];return eL.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),eL.delete(n))}),t}function eK(e,t){return L&&L(e,t.map(e=>E(e,M.loaderData)))||e.key}function eG(e,t){if(R){let r=R[eK(e,t)];if("number"==typeof r)return r}return null}return i={get basename(){return y},get future(){return g},get state(){return M},get routes(){return v},get window(){return u},initialize:function(){if(x=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(eP){eP=!1;return}f(0===eC.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=eQ({currentLocation:M.location,nextLocation:n,historyAction:r});if(o&&null!=a){eP=!0,e.history.go(-1*a),eY(o,{state:"blocked",location:n,proceed(){eY(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),e.history.go(a)},reset(){let e=new Map(M.blockers);e.set(o,$),ek({blockers:e})}});return}return e_(r,n)}),c){(function(e,t){try{let r=e.sessionStorage.getItem(X);if(r){let e=JSON.parse(r);for(let[r,n]of Object.entries(e||{}))n&&Array.isArray(n)&&t.set(r,new Set(n||[]))}}catch(e){}})(u,F);let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(X,JSON.stringify(r))}catch(e){f(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(u,F);u.addEventListener("pagehide",e),B=()=>u.removeEventListener("pagehide",e)}return!M.initialized&&e_(n.Pop,M.location,{initialHydration:!0}),i},subscribe:function(e){return S.add(e),()=>S.delete(e)},enableScrollRestoration:function(e,t,r){if(R=e,C=t,L=r||null,!P&&M.navigation===I){P=!0;let e=eG(M.location,M.matches);null!=e&&ek({restoreScrollPosition:e})}return()=>{R=null,C=null,L=null}},navigate:eT,fetch:function(e,t,n,a){if(h)throw Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");G.has(e)&&eJ(e);let o=!0===(a&&a.unstable_flushSync),i=r||v,l=Q(M.location,M.matches,y,g.v7_prependBasename,n,g.v7_relativeSplatPath,t,null==a?void 0:a.relative),s=b(i,l,y);if(!s){eN(e,t,ec(404,{pathname:l}),{flushSync:o});return}let{path:u,submission:c,error:d}=Z(g.v7_normalizeFormMethod,!0,l,a);if(d){eN(e,t,d,{flushSync:o});return}let f=eb(s,u);if(O=!0===(a&&a.preventScrollReset),c&&ev(c.formMethod)){eO(e,t,u,f,s,o,c);return}ef.set(e,{routeId:t,path:u}),eA(e,t,u,f,s,o,c)},revalidate:function(){if(eW(),ek({revalidation:"loading"}),"submitting"!==M.navigation.state){if("idle"===M.navigation.state){e_(M.historyAction,M.location,{startUninterruptedRevalidation:!0});return}e_(j||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:eH,deleteFetcher:function(e){if(g.v7_fetcherPersist){let t=(ew.get(e)||0)-1;t<=0?(ew.delete(e),eD.add(e)):ew.set(e,t)}else eI(e);ek({fetchers:new Map(M.fetchers)})},dispose:function(){x&&x(),B&&B(),S.clear(),s&&s.abort(),M.fetchers.forEach((e,t)=>eI(t)),M.blockers.forEach((e,t)=>eX(t))},getBlocker:function(e,t){let r=M.blockers.get(e)||$;return eC.get(e)!==t&&eC.set(e,t),r},deleteBlocker:eX,_internalFetchControllers:G,_internalActiveDeferreds:eL,_internalSetRoutes:function(e){r=w(e,t,void 0,m={})}}}Symbol("deferred");function Q(e,t,r,n,a,o,i,l){let s,u;if(i){for(let e of(s=[],t))if(s.push(e),e.route.id===i){u=e;break}}else s=t,u=t[t.length-1];let c=k(a||".",P(s,o),D(e.pathname,r)||e.pathname,"path"===l);return null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&u&&u.route.index&&!ew(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&"/"!==r&&(c.pathname="/"===c.pathname?r:U([r,c.pathname])),m(c)}function Z(e,t,r,n){var a;let o,i;if(!n||!(null!=(a=n)&&("formData"in a&&null!=a.formData||"body"in a&&void 0!==a.body)))return{path:r};if(n.formMethod&&!function(e){return z.has(e.toLowerCase())}(n.formMethod))return{path:r,error:ec(405,{method:n.formMethod})};let l=()=>({path:r,error:ec(400,{type:"invalid-body"})}),s=n.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),c=ef(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!ev(u))return l();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!ev(u))return l();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(d("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=ea(n.formData),i=n.formData;else if(n.body instanceof FormData)o=ea(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=eo(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=eo(o)}catch(e){return l()}let f={formMethod:u,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(ev(f.formMethod))return{path:r,submission:f};let h=v(r);return t&&h.search&&ew(h.search)&&o.append("index",""),h.search="?"+o,{path:m(h),submission:f}}function K(e,t,r,n,a,o,i,s,u,c,d,f,h,p,m,v){let y=v?Object.values(v)[0]:m?Object.values(m)[0]:void 0,g=e.createURL(t.location),w=e.createURL(a),E=(function(e,t){let r=e;if(t){let n=e.findIndex(e=>e.route.id===t);n>=0&&(r=e.slice(0,n))}return r})(r,v?Object.keys(v)[0]:void 0).filter((e,r)=>{let{route:a}=e;if(a.lazy)return!0;if(null==a.loader)return!1;if(o)return!!a.loader.hydrate||void 0===t.loaderData[a.id]&&(!t.errors||void 0===t.errors[a.id]);if(function(e,t,r){let n=!t||r.route.id!==t.route.id,a=void 0===e[r.route.id];return n||a}(t.loaderData,t.matches[r],e)||s.some(t=>t===e.route.id))return!0;let u=t.matches[r];return ee(e,l({currentUrl:g,currentParams:u.params,nextUrl:w,nextParams:e.params},n,{actionResult:y,defaultShouldRevalidate:i||g.pathname+g.search===w.pathname+w.search||g.search!==w.search||G(u,e)}))}),x=[];return d.forEach((e,a)=>{if(o||!r.some(t=>t.route.id===e.routeId)||c.has(a))return;let s=b(h,e.path,p);if(!s){x.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});return}let d=t.fetchers.get(a),m=eb(s,e.path),v=!1;(v=!f.has(a)&&(!!u.includes(a)||(d&&"idle"!==d.state&&void 0===d.data?i:ee(m,l({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:y,defaultShouldRevalidate:i})))))&&x.push({key:a,routeId:e.routeId,path:e.path,matches:s,match:m,controller:new AbortController})}),[E,x]}function G(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function ee(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}async function et(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];d(a,"No route found in manifest");let o={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;f(!t,'Route "'+a.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+e)+'" will be ignored.'),!t&&!g.has(e)&&(o[e]=n[e])}Object.assign(a,o),Object.assign(a,l({},t(a),{lazy:void 0}))}async function er(e,t,r,n,o,i,l,s,u){let c,f,h;void 0===u&&(u={});let p=e=>{let n;let a=new Promise((e,t)=>n=t);return h=()=>n(),t.signal.addEventListener("abort",h),Promise.race([e({request:t,params:r.params,context:u.requestContext}),a])};try{let n=r.route[e];if(r.route.lazy){if(n){let e;let t=await Promise.all([p(n).catch(t=>{e=t}),et(r.route,i,o)]);if(e)throw e;f=t[0]}else if(await et(r.route,i,o),n=r.route[e])f=await p(n);else{if("action"!==e)return{type:a.data,data:void 0};let n=new URL(t.url),o=n.pathname+n.search;throw ec(405,{method:t.method,pathname:o,routeId:r.route.id})}}else if(n)f=await p(n);else{let e=new URL(t.url),r=e.pathname+e.search;throw ec(404,{pathname:r})}d(void 0!==f,"You defined "+("action"===e?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e)+"` function. Please return a value or `null`.")}catch(e){c=a.error,f=e}finally{h&&t.signal.removeEventListener("abort",h)}if(function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}(f)){let e,o=f.status;if(N.has(o)){let e=f.headers.get("Location");if(d(e,"Redirects returned/thrown from loaders/actions must have a Location header"),q.test(e)){if(!u.isStaticRequest){let r=new URL(t.url),n=new URL(e.startsWith("//")?r.protocol+e:e),a=null!=D(n.pathname,l);n.origin===r.origin&&a&&(e=n.pathname+n.search+n.hash)}}else e=Q(new URL(t.url),n.slice(0,n.indexOf(r)+1),l,!0,e,s);if(u.isStaticRequest)throw f.headers.set("Location",e),f;return{type:a.redirect,status:o,location:e,revalidate:null!==f.headers.get("X-Remix-Revalidate"),reloadDocument:null!==f.headers.get("X-Remix-Reload-Document")}}if(u.isRouteRequest)throw{type:c===a.error?a.error:a.data,response:f};try{let t=f.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==f.body?null:await f.json():await f.text()}catch(e){return{type:a.error,error:e}}return c===a.error?{type:c,error:new A(o,f.statusText,e),headers:f.headers}:{type:a.data,data:e,statusCode:f.status,headers:f.headers}}if(c===a.error)return{type:c,error:f};if(function(e){return e&&"object"==typeof e&&"object"==typeof e.data&&"function"==typeof e.subscribe&&"function"==typeof e.cancel&&"function"==typeof e.resolveData}(f)){var m,v;return{type:a.deferred,deferredData:f,statusCode:null==(m=f.init)?void 0:m.status,headers:(null==(v=f.init)?void 0:v.headers)&&new Headers(f.init.headers)}}return{type:a.data,data:f}}function en(e,t,r,n){let a=e.createURL(ef(t)).toString(),o={signal:r};if(n&&ev(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=ea(n.formData):o.body=n.formData}return new Request(a,o)}function ea(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function eo(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function ei(e,t,r,n,a,o,i,s){var u,c,f,h,p;let m,v,y,g,w;let{loaderData:b,errors:E}=(u=t,c=r,f=n,h=a,p=s,v={},y=null,g=!1,w={},f.forEach((e,t)=>{let r=c[t].route.id;if(d(!em(e),"Cannot handle redirect results in processLoaderData"),ep(e)){let t=es(u,r),n=e.error;h&&(n=Object.values(h)[0],h=void 0),null==(y=y||{})[t.route.id]&&(y[t.route.id]=n),v[r]=void 0,!g&&(g=!0,m=F(e.error)?e.error.status:500),e.headers&&(w[r]=e.headers)}else eh(e)?(p.set(r,e.deferredData),v[r]=e.deferredData.data):v[r]=e.data,null!=e.statusCode&&200!==e.statusCode&&!g&&(m=e.statusCode),e.headers&&(w[r]=e.headers)}),h&&(y=h,v[Object.keys(h)[0]]=void 0),{loaderData:v,errors:y,statusCode:m||200,loaderHeaders:w});for(let t=0;t<o.length;t++){let{key:r,match:n,controller:a}=o[t];d(void 0!==i&&void 0!==i[t],"Did not find corresponding fetcher result");let s=i[t];if(!a||!a.signal.aborted)if(ep(s)){let t=es(e.matches,null==n?void 0:n.route.id);!(E&&E[t.route.id])&&(E=l({},E,{[t.route.id]:s.error})),e.fetchers.delete(r)}else if(em(s))d(!1,"Unhandled fetcher revalidation redirect");else if(eh(s))d(!1,"Unhandled fetcher deferred data");else{let t=eR(s.data);e.fetchers.set(r,t)}}return{loaderData:b,errors:E}}function el(e,t,r,n){let a=l({},t);for(let o of r){let r=o.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(a[r]=t[r]):void 0!==e[r]&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function es(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function eu(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ec(e,t){let{pathname:r,routeId:n,method:a,type:o}=void 0===t?{}:t,i="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(i="Bad Request",a&&r&&n?l="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n)+'", so there is no way to handle the request.':"defer-action"===o?l="defer() is not supported in actions":"invalid-body"===o&&(l="Unable to encode submission body")):403===e?(i="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):404===e?(i="Not Found",l='No route matches URL "'+r+'"'):405===e&&(i="Method Not Allowed",a&&r&&n?l="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n)+'", so there is no way to handle the request.':a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new A(e||500,i,Error(l),!0)}function ed(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(em(r))return{result:r,idx:t}}}function ef(e){let t="string"==typeof e?v(e):e;return m(l({},t,{hash:""}))}function eh(e){return e.type===a.deferred}function ep(e){return e.type===a.error}function em(e){return(e&&e.type)===a.redirect}function ev(e){return W.has(e.toLowerCase())}async function ey(e,t,r,n,a,o){for(let i=0;i<r.length;i++){let l=r[i],s=t[i];if(!s)continue;let u=e.find(e=>e.route.id===s.route.id),c=null!=u&&!G(u,s)&&(o&&o[s.route.id])!==void 0;if(eh(l)&&(a||c)){let e=n[i];d(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await eg(l,e,a).then(e=>{e&&(r[i]=e||r[i])})}}}async function eg(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:a.data,data:e.deferredData.unwrappedData}}catch(e){return{type:a.error,error:e}}return{type:a.data,data:e.deferredData.data}}}function ew(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function eb(e,t){let r="string"==typeof t?v(t).search:t.search;if(e[e.length-1].route.index&&ew(r||""))return e[e.length-1];let n=C(e);return n[n.length-1]}function eE(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n){if(null!=a)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};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 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,r){"use strict";r.d(t,{OL:function(){return A},aj:function(){return x},cP:function(){return S},pG:function(){return T},rU:function(){return O}});var n,a,o,i,l,s,u=r("5872"),c=r("13922"),d=r("92927"),f=r("77393");function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function p(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&(a[r]=e[r]);return a}let m="application/x-www-form-urlencoded";function v(e){return null!=e&&"string"==typeof e.tagName}let y=null,g=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function w(e){return null==e||g.has(e)?e:null}let b=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],E=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];try{window.__reactRouterVersion="6"}catch(e){}function x(e,t){return(0,f.p7)({basename:null==t?void 0:t.basename,future:h({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,f.lX)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||R(),routes:e,mapRouteProperties:d.us,window:null==t?void 0:t.window}).initialize()}function S(e,t){return(0,f.p7)({basename:null==t?void 0:t.basename,future:h({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,f.q_)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||R(),routes:e,mapRouteProperties:d.us,window:null==t?void 0:t.window}).initialize()}function R(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=h({},t,{errors:function(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new f.OF(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}(t.errors)})),t}let D=u.createContext({isTransitioning:!1}),L=u.createContext(new Map),C=(o||(o=r.t(u,2))).startTransition,P=(i||(i=r.t(c,2))).flushSync;(o||(o=r.t(u,2))).useId;function k(e){P?P(e):e()}class U{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function T(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=u.useState(r.state),[i,l]=u.useState(),[s,c]=u.useState({isTransitioning:!1}),[f,h]=u.useState(),[p,m]=u.useState(),[v,y]=u.useState(),g=u.useRef(new Map),{v7_startTransition:w}=n||{},b=u.useCallback(e=>{if(w){var t;t=e,C?C(t):t()}else e()},[w]),E=u.useCallback((e,t)=>{let{deletedFetchers:n,unstable_flushSync:a,unstable_viewTransitionOpts:i}=t;n.forEach(e=>g.current.delete(e)),e.fetchers.forEach((e,t)=>{void 0!==e.data&&g.current.set(t,e.data)});let s=null==r.window||"function"!=typeof r.window.document.startViewTransition;if(!i||s){a?k(()=>o(e)):b(()=>o(e));return}if(a){k(()=>{p&&(f&&f.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=r.window.document.startViewTransition(()=>{k(()=>o(e))});t.finished.finally(()=>{k(()=>{h(void 0),m(void 0),l(void 0),c({isTransitioning:!1})})}),k(()=>m(t));return}p?(f&&f.resolve(),p.skipTransition(),y({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(l(e),c({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))},[r.window,p,f,g,b]);u.useLayoutEffect(()=>r.subscribe(E),[r,E]),u.useEffect(()=>{s.isTransitioning&&!s.flushSync&&h(new U)},[s]),u.useEffect(()=>{if(f&&i&&r.window){let e=f.promise,t=r.window.document.startViewTransition(async()=>{b(()=>o(i)),await e});t.finished.finally(()=>{h(void 0),m(void 0),l(void 0),c({isTransitioning:!1})}),m(t)}},[b,i,f,r.window]),u.useEffect(()=>{f&&i&&a.location.key===i.location.key&&f.resolve()},[f,p,a.location,i]),u.useEffect(()=>{!s.isTransitioning&&v&&(l(v.state),c({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),y(void 0))},[s.isTransitioning,v]),u.useEffect(()=>{},[]);let x=u.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),S=r.basename||"/",R=u.useMemo(()=>({router:r,navigator:x,static:!1,basename:S}),[r,x,S]);return u.createElement(u.Fragment,null,u.createElement(d.w3.Provider,{value:R},u.createElement(d.FR.Provider,{value:a},u.createElement(L.Provider,{value:g.current},u.createElement(D.Provider,{value:s},u.createElement(d.F0,{basename:S,location:a.location,navigationType:a.historyAction,navigator:x,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},a.initialized||r.future.v7_partialHydration?u.createElement(_,{routes:r.routes,future:r.future,state:a}):t))))),null)}function _(e){let{routes:t,future:r,state:n}=e;return(0,d.DY)(t,void 0,n,r)}let M="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,j=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,O=u.forwardRef(function(e,t){let r,{onClick:n,relative:a,reloadDocument:o,replace:i,state:l,target:s,to:c,preventScrollReset:m,unstable_viewTransition:v}=e,y=p(e,b),{basename:g}=u.useContext(d.Us),w=!1;if("string"==typeof c&&j.test(c)&&(r=c,M))try{let e=new URL(window.location.href),t=new URL(c.startsWith("//")?e.protocol+c:c),r=(0,f.Zn)(t.pathname,g);t.origin===e.origin&&null!=r?c=r+t.search+t.hash:w=!0}catch(e){}let E=(0,d.oQ)(c,{relative:a}),x=function(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:l}=void 0===t?{}:t,s=(0,d.s0)(),c=(0,d.TH)(),h=(0,d.WU)(e,{relative:i});return u.useCallback(t=>{var u,d,p;if(u=t,d=r,0===u.button&&(!d||"_self"===d)&&!((p=u).metaKey||p.altKey||p.ctrlKey||p.shiftKey))t.preventDefault(),s(e,{replace:void 0!==n?n:(0,f.Ep)(c)===(0,f.Ep)(h),state:a,preventScrollReset:o,relative:i,unstable_viewTransition:l})},[c,s,h,n,a,r,e,o,i,l])}(c,{replace:i,state:l,target:s,preventScrollReset:m,relative:a,unstable_viewTransition:v});return u.createElement("a",h({},y,{href:r||E,onClick:w||o?n:function(e){n&&n(e),!e.defaultPrevented&&x(e)},ref:t,target:s}))}),A=u.forwardRef(function(e,t){let r,{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:i=!1,style:s,to:c,unstable_viewTransition:m,children:v}=e,y=p(e,E),g=(0,d.WU)(c,{relative:y.relative}),w=(0,d.TH)(),b=u.useContext(d.FR),{navigator:x,basename:S}=u.useContext(d.Us),R=null!=b&&function(e,t){void 0===t&&(t={});let r=u.useContext(D);null!=r||(0,f.J0)(!1);let{basename:n}=F(l.useViewTransitionState),a=(0,d.WU)(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=(0,f.Zn)(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=(0,f.Zn)(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=(0,f.LX)(a.pathname,i)||null!=(0,f.LX)(a.pathname,o)}(g)&&!0===m,L=x.encodeLocation?x.encodeLocation(g).pathname:g.pathname,C=w.pathname,P=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;!a&&(C=C.toLowerCase(),P=P?P.toLowerCase():null,L=L.toLowerCase()),P&&S&&(P=(0,f.Zn)(P,S)||P);let k="/"!==L&&L.endsWith("/")?L.length-1:L.length,U=C===L||!i&&C.startsWith(L)&&"/"===C.charAt(k),T=null!=P&&(P===L||!i&&P.startsWith(L)&&"/"===P.charAt(L.length)),_={isActive:U,isPending:T,isTransitioning:R},M=U?n:void 0;r="function"==typeof o?o(_):[o,U?"active":null,T?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let j="function"==typeof s?s(_):s;return u.createElement(O,h({},y,{"aria-current":M,className:r,ref:t,style:j,to:c,unstable_viewTransition:m}),"function"==typeof v?v(_):v)});function F(e){let t=u.useContext(d.w3);return t||(0,f.J0)(!1),t}(n=l||(l={})).UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState",(a=s||(s={})).UseFetcher="useFetcher",a.UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration";let B=0,W=()=>"__"+String(++B)+"__"},92927:function(e,t,r){"use strict";r.d(t,{AW:function(){return N},DY:function(){return D},F0:function(){return H},FR:function(){return d},SN:function(){return A},TH:function(){return g},UO:function(){return S},Us:function(){return f},WU:function(){return R},Yi:function(){return j},Z5:function(){return I},bS:function(){return w},f_:function(){return F},i7:function(){return $},j3:function(){return z},lk:function(){return B},oQ:function(){return v},pW:function(){return p},s0:function(){return E},us:function(){return q},w3:function(){return c},xW:function(){return O}});var n,a,o,i,l=r("5872"),s=r("77393");function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let c=l.createContext(null),d=l.createContext(null),f=l.createContext(null),h=l.createContext(null),p=l.createContext({outlet:null,matches:[],isDataRoute:!1}),m=l.createContext(null);function v(e,t){let{relative:r}=void 0===t?{}:t;y()||(0,s.J0)(!1);let{basename:n,navigator:a}=l.useContext(f),{hash:o,pathname:i,search:u}=R(e,{relative:r}),c=i;return"/"!==n&&(c="/"===i?n:(0,s.RQ)([n,i])),a.createHref({pathname:c,search:u,hash:o})}function y(){return null!=l.useContext(h)}function g(){return y()||(0,s.J0)(!1),l.useContext(h).location}function w(e){y()||(0,s.J0)(!1);let{pathname:t}=g();return l.useMemo(()=>(0,s.LX)(e,t),[t,e])}function b(e){!l.useContext(f).static&&l.useLayoutEffect(e)}function E(){let{isDataRoute:e}=l.useContext(p);return e?function(){let{router:e}=T(k.UseNavigateStable),t=M(U.UseNavigateStable),r=l.useRef(!1);return b(()=>{r.current=!0}),l.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,u({fromRouteId:t},a)))},[e,t])}():function(){y()||(0,s.J0)(!1);let e=l.useContext(c),{basename:t,future:r,navigator:n}=l.useContext(f),{matches:a}=l.useContext(p),{pathname:o}=g(),i=JSON.stringify((0,s.cm)(a,r.v7_relativeSplatPath)),u=l.useRef(!1);return b(()=>{u.current=!0}),l.useCallback(function(r,a){if(void 0===a&&(a={}),!u.current)return;if("number"==typeof r){n.go(r);return}let l=(0,s.pC)(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:(0,s.RQ)([t,l.pathname])),(a.replace?n.replace:n.push)(l,a.state,a)},[t,n,i,o,e])}()}let x=l.createContext(null);function S(){let{matches:e}=l.useContext(p),t=e[e.length-1];return t?t.params:{}}function R(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=l.useContext(f),{matches:a}=l.useContext(p),{pathname:o}=g(),i=JSON.stringify((0,s.cm)(a,n.v7_relativeSplatPath));return l.useMemo(()=>(0,s.pC)(e,JSON.parse(i),o,"path"===r),[e,i,o,r])}function D(e,t,r,n){let a;y()||(0,s.J0)(!1);let{navigator:o}=l.useContext(f),{matches:i}=l.useContext(p),c=i[i.length-1],d=c?c.params:{};c&&c.pathname;let m=c?c.pathnameBase:"/";c&&c.route;let v=g();if(t){var w;let e="string"==typeof t?(0,s.cP)(t):t;"/"===m||(null==(w=e.pathname)?void 0:w.startsWith(m))||(0,s.J0)(!1),a=e}else a=v;let b=a.pathname||"/",E="/"===m?b:b.slice(m.length)||"/",x=(0,s.fp)(e,{pathname:E}),S=function(e,t,r,n){var a,o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){if(null==(o=r)||!o.errors)return null;e=r.matches}let i=e,u=null==(a=r)?void 0:a.errors;if(null!=u){let e=i.findIndex(e=>e.route.id&&(null==u?void 0:u[e.route.id]));e>=0||(0,s.J0)(!1),i=i.slice(0,Math.min(i.length,e+1))}let c=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){c=!0,i=d>=0?i.slice(0,d+1):[i[0]];break}}}return i.reduceRight((e,n,a)=>{let o;let s=!1,f=null,h=null;r&&(o=u&&n.route.id?u[n.route.id]:void 0,f=n.route.errorElement||L,c&&(d<0&&0===a?(function(e,t,r){!t&&!W[e]&&(W[e]=!0)}("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),s=!0,h=null):d===a&&(s=!0,h=n.route.hydrateFallbackElement||null)));let p=t.concat(i.slice(0,a+1)),m=()=>{let t;return t=o?f:s?h:n.route.Component?l.createElement(n.route.Component,null):n.route.element?n.route.element:e,l.createElement(P,{match:n,routeContext:{outlet:e,matches:p,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?l.createElement(C,{location:r.location,revalidation:r.revalidation,component:f,error:o,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()},null)}(x&&x.map(e=>Object.assign({},e,{params:Object.assign({},d,e.params),pathname:(0,s.RQ)([m,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?m:(0,s.RQ)([m,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),i,r,n);return t&&S?l.createElement(h.Provider,{value:{location:u({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:s.aU.Pop}},S):S}let L=l.createElement(function(){let e=B(),t=(0,s.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),r?l.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},r):null,null)},null);class C extends l.Component{static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?l.createElement(p.Provider,{value:this.props.routeContext},l.createElement(m.Provider,{value:this.state.error,children:this.props.component})):this.props.children}constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}}function P(e){let{routeContext:t,match:r,children:n}=e,a=l.useContext(c);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),l.createElement(p.Provider,{value:t},n)}var k=((n=k||{}).UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n);var U=((a=U||{}).UseBlocker="useBlocker",a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a.UseRouteId="useRouteId",a);function T(e){let t=l.useContext(c);return t||(0,s.J0)(!1),t}function _(e){let t=l.useContext(d);return t||(0,s.J0)(!1),t}function M(e){var t;let r;let n=(t=0,(r=l.useContext(p))||(0,s.J0)(!1),r),a=n.matches[n.matches.length-1];return a.route.id||(0,s.J0)(!1),a.route.id}function j(){return M(U.UseRouteId)}function O(){let e=T(k.UseRevalidator),t=_(U.UseRevalidator);return l.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function A(){let{matches:e,loaderData:t}=_(U.UseMatches);return l.useMemo(()=>e.map(e=>(0,s.WS)(e,t)),[e,t])}function F(){let e=_(U.UseLoaderData),t=M(U.UseLoaderData);if(e.errors&&null!=e.errors[t]){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function B(){var e;let t=l.useContext(m),r=_(U.UseRouteError),n=M(U.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}let W={};function z(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.J0)(!1)}function H(e){let{basename:t="/",children:r=null,location:n,navigationType:a=s.aU.Pop,navigator:o,static:i=!1,future:c}=e;y()&&(0,s.J0)(!1);let d=t.replace(/^\/*/,"/"),p=l.useMemo(()=>({basename:d,navigator:o,static:i,future:u({v7_relativeSplatPath:!1},c)}),[d,c,o,i]);"string"==typeof n&&(n=(0,s.cP)(n));let{pathname:m="/",search:v="",hash:g="",state:w=null,key:b="default"}=n,E=l.useMemo(()=>{let e=(0,s.Zn)(m,d);return null==e?null:{location:{pathname:e,search:v,hash:g,state:w,key:b},navigationType:a}},[d,m,v,g,w,b,a]);return null==E?null:l.createElement(f.Provider,{value:p},l.createElement(h.Provider,{children:r,value:E}))}function I(e){var t;let{children:r,location:n}=e;return t=$(r),D(t,n)}(i||(i=r.t(l,2))).startTransition;var J=((o=J||{})[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){r.push.apply(r,$(e.props.children,a));return}e.type!==N&&(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=$(e.props.children,a)),r.push(o)}),r}function q(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:l.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:l.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:l.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}new Promise(()=>{})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["400"],{74709:function(e,t,n){"use strict";n.d(t,{T:function(){return s}});var o=n("86834");n("5872");var r=n("42666"),i=n("70130");let s=e=>{var t;let[n,s]=(0,r.Z)(()=>Promise.resolve(e.onClick()),[]);return(0,o.jsx)("button",{className:i.container,onClick:s,"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"),i=n("86834"),s=n("99231"),l=n("5872"),c=n("56573"),a=n("71161"),u=n("36339"),d=n("29214"),m=n("55058"),v=n("45967"),h=n("2395"),p=n("10734"),f=n("74709"),w=n("94258"),y=n("28391"),_=n("51879"),g=n("70132");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,c.Z)(!!n),[C,O]=(0,l.useState)(!1),x=(0,m.jb)(e.endpoint,{src:e.dataSource}),E=(0,w.d)({clamp:!0}),[S]=(0,g.U)();(0,a.Z)("keydown",e=>{e.shiftKey&&e.altKey&&"KeyD"===e.code&&j()}),(0,l.useEffect)(()=>{y.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 y.QB.hook("send",e),()=>{y.QB.removeHook("send",e)}},[]);let T=async()=>{document.documentElement.style.setProperty("cursor","wait"),j(!1),O(!0);try{(await (0,_.F)(y.mp,1e4)).remote.pullUp("/react/components#inspecting")}catch(e){console.error(e),document.documentElement.style.removeProperty("cursor")}};return(0,u.Z)(async()=>{if(!!n)(await (0,_.F)(y.mp,1e4)).remote.pullUp(n)},[]),(0,i.jsxs)(s.Q2,{appearance:S,className:S,hasBackground:!1,style:{height:0,width:0,minHeight:0,minWidth:0},children:[(0,i.jsx)(v.Z,{when:b,keepAlive:!0,load:C,children:(0,i.jsx)("div",{className:h.container,children:(0,i.jsx)(p.s,{src:x,onClose:()=>j(!1),style:{pointerEvents:E.isDragging?"none":"auto"}})})}),(0,i.jsxs)(s.kC,(0,r._)((0,o._)({className:h.fab},E.props),{align:"center",children:[(0,i.jsx)(f.T,{type:"primary",onClick:j,children:(0,i.jsx)("img",{className:h.logo,src:t})}),(0,i.jsx)(f.T,{onClick:T,children:(0,i.jsx)(d.aur,{})})]}))]})}},10734:function(e,t,n){"use strict";n.d(t,{s:function(){return v}});var o=n("90247"),r=n("55709"),i=n("16170"),s=n("86834"),l=n("99231");n("5872");var c=n("29214"),a=n("79197"),u=n("428"),d=n("80115"),m=n("28391");let v=e=>{var{src:t,onClose:n}=e,v=(0,i._)(e,["src","onClose"]);let{loaded:h}=(0,a.R)(m.Cl);return(0,s.jsxs)(l.xu,(0,r._)((0,o._)({className:d.container},v),{children:[(0,s.jsx)("iframe",{className:d.frame,src:t}),(0,s.jsx)(c.cu3,{className:d.closeButton,onClick:n}),(0,s.jsx)("div",{className:d.backdrop,style:{display:h?"none":void 0},children:(0,s.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:i}=e,s=(0,r.useRef)(!1);i&&(s.current=!0);let l=e.load||(n?s.current:i);return l?(0,o.jsx)("div",{style:{display:!n||i?"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 i=n("60182"),s=n("62484"),l=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",s.container),t.appendChild(c);let a=window.__MODERN_JS_DEVTOOLS_OPTIONS__;(0,i.createRoot)(c).render((0,r.jsx)(l.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 f},mp:function(){return y}});var o=n("90247"),r=n("55709"),i=n("10487"),s=n("88739"),l=n("65872"),c=n("9880"),a=n.n(c),u=n("81733"),d=n("57662"),m=n("52493"),v=n.n(m),h=n("24933");let p=i.MessagePortChannel.wait(window,"channel:connect:client"),f=new h.S,w=(0,d.createBridge)(window,f),y=p.then(e=>{let t=(0,l.Hu)();return{remote:(0,s.Fu)({async activateReactDevtools(){(0,d.activate)(window,{bridge:w})},async onFinishRender(){await t.callHook("onFinishRender")},async cookies(e){let t=await fetch("/__devtools/api/cookies",{method:"POST",body:JSON.stringify({setCookies:e})}),{cookies:o}=await t.json();if(!o||"object"!=typeof o)throw TypeError("No cookies returned from server");let{parse:r}=await n.e("883").then(n.bind(n,"10851")),i=r(document.cookie),s=v().omit(o,Object.keys(i));return{client:i,server:s}},localStorage:async e=>(v().each(e,(e,t)=>{window.localStorage.setItem(t,e)}),(0,o._)({},window.localStorage)),sessionStorage:async e=>(v().each(e,(e,t)=>{window.sessionStorage.setItem(t,e)}),(0,o._)({},window.sessionStorage))},(0,r._)((0,o._)({},e.handlers),{timeout:500})),hooks:t}}),_=(0,u.sj)({loaded:!1}),g=a()();y.then(e=>{let{remote:t,hooks:n}=e;f.bindRemote(t,"sendReactDevtoolsData"),n.hook("onFinishRender",async()=>{_.loaded=!0,g.resolve()})})},94258:function(e,t,n){"use strict";n.d(t,{d:function(){return c}});var o=n("5872"),r=n("71161");let i=(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},s=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 i(t.key,n)}),[r]=n.splice(o,1);return[t,r,n[0],n[1]]},l=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",i="number"==typeof n?"".concat(n,"px"):n,[c,a]=(0,o.useState)(),u=()=>{if(!c)return;c.moveable=!1;let{el:e}=c,[t]=s(l(e));e.style.transition="".concat(t.key," 200ms"),requestIdleCallback(()=>{a(void 0),e.style[t.key]=i}),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:l,height:a}=c.el.getBoundingClientRect(),u=n.clientY-c.offsetY,d=n.clientX-c.offsetX,m=s({top:u,left:d,bottom:window.innerHeight-u-a,right:window.innerWidth-d-l}).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 m){let t=["top","bottom"].includes(e.key)?window.innerHeight-a:window.innerWidth-l;e.value="clamp(".concat(i,", ").concat(e.value,", ").concat(t,"px)")}let[v,h,...p]=m,{style:f}=c.el;f.transition="",f[v.key]=v.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 m=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:m,onTouchStart:m,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,i=setTimeout(()=>{r=!1,o(Error("Promise Timeout"))},t);e.then(e=>{r&&n(e),clearTimeout(i)}),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","567","58","707","770","977","991"],function(){return t("90915"),t("41975"),t("15219"),t("19449"),t("80295")}),e.O()}]);
|