@modern-js/devtools-client 2.69.3 → 2.69.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/modern.config.json +1 -1
  2. package/dist/public/sw-proxy.js +1 -1
  3. package/dist/routes-manifest.json +45 -45
  4. package/dist/static/html/client/index.html +3 -3
  5. package/dist/static/html/mount/index.html +3 -3
  6. package/dist/static/js/106.87141620.js +2 -0
  7. package/dist/static/js/{741.8d51d1bc.js → 277.f8a4528f.js} +7 -7
  8. package/dist/static/js/{741.8d51d1bc.js.LICENSE.txt → 277.f8a4528f.js.LICENSE.txt} +10 -0
  9. package/dist/static/js/{422.870921d0.js → 422.a055b5e0.js} +1 -1
  10. package/dist/static/js/async/client_config/(toolkit).(type)/{page.f019a0f5.js → page.c92b76fc.js} +1 -1
  11. package/dist/static/js/async/client_context/builder/{page.ff303528.js → page.e65635c2.js} +1 -1
  12. package/dist/static/js/async/client_context/framework/{page.7fb5613d.js → page.ab038a6d.js} +1 -1
  13. package/dist/static/js/async/client_doctor/{page.e88f1d2c.js → page.ef2d71ba.js} +1 -1
  14. package/dist/static/js/async/client_headers/editor/{page.79fedd5c.js → page.808048e1.js} +1 -1
  15. package/dist/static/js/async/client_overview/{page.851d3271.js → page.b240d315.js} +1 -1
  16. package/dist/static/js/async/client_pages/{page.7328625d.js → page.c799af19.js} +1 -1
  17. package/dist/static/js/async/client_storage/preset/(id)/page.955f1dc1.js +1 -0
  18. package/dist/static/js/async/client_storage/preset/{layout.8b01a4f2.js → layout.7633381a.js} +1 -1
  19. package/dist/static/js/async/client_storage/preset/{page.dae00bae.js → page.3f0142fe.js} +1 -1
  20. package/dist/static/js/{builder-runtime.2eaa16c2.js → builder-runtime.5b97129b.js} +1 -1
  21. package/dist/static/js/client.26977af0.js +1 -0
  22. package/dist/static/js/components.b0aa4fdb.js +1 -0
  23. package/dist/static/js/{mount.7f1c763a.js → mount.66770220.js} +1 -1
  24. package/package.json +10 -10
  25. package/dist/static/js/42.113fbb9b.js +0 -2
  26. package/dist/static/js/async/client_storage/preset/(id)/page.705ac899.js +0 -1
  27. package/dist/static/js/client.34df6ca3.js +0 -2
  28. package/dist/static/js/client.34df6ca3.js.LICENSE.txt +0 -9
  29. package/dist/static/js/components.f219354a.js +0 -1
  30. /package/dist/static/css/{42.aa32da8f.css → 106.aa32da8f.css} +0 -0
  31. /package/dist/static/css/{741.bd57b9e5.css → 277.bd57b9e5.css} +0 -0
  32. /package/dist/static/js/{42.113fbb9b.js.LICENSE.txt → 106.87141620.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["719"],{40148(e){e.exports={}},31470(e,t,r){"use strict";r.d(t,{k:()=>d});var n=r(30255),o=r(69148),i=r(89637),a=r(78107),s=r(10002),l=r(22387),u=r(73271);let c=e=>{let{error:t}=e,r=t instanceof Error?"".concat(t.name,": ").concat(t.message):"Unknown Error",o=t instanceof Error?t.stack:Object.prototype.toString.call(t);return(0,n.jsxs)(i.a,{p:"4",children:[(0,n.jsx)(a.D,{as:"h4",mb:"4",children:(0,n.jsx)(s.E,{as:"span",children:r})}),(0,n.jsx)(l.f,{disabled:!0,style:{height:"50vh"},value:o})]})},d=()=>{let e=(0,o.r5)();return(0,u.useEffect)(()=>{console.error(e)},[e]),(0,n.jsx)(c,{resetErrorBoundary:()=>null,error:e})}},75629(e,t,r){"use strict";r.d(t,{v:()=>s});var n=r(30255),o=r(69148),i=r(9740),a=r(13675);let s=e=>{let{items:t}=e,r=(0,o.Zp)(),s=(0,o.zy)(),l=t.find(e=>(0,i.B6)(e.to,s.pathname));return(0,n.jsxs)(a.bL,{size:"1",value:null==l?void 0:l.to,onValueChange:r,children:[(0,n.jsx)(a.l9,{}),(0,n.jsx)(a.UC,{position:"popper",children:t.map(e=>{let{title:t,to:r}=e;return(0,n.jsx)(a.q7,{value:r,children:t},r)})})]})}},68069(e,t,r){"use strict";r.d(t,{r:()=>A,E:()=>k});var n=r(15271),o=r(59354),i=r(30255),a=r(8070),s=r(55499),l=r(73385);class u extends l.il{static use(){return s.RUNTIME_GLOBALS in window||(window[s.RUNTIME_GLOBALS]=new u),window[s.RUNTIME_GLOBALS]}}async function c(e){u.use();let t=e.map(e=>new Promise((t,r)=>{let n=document.createElement("script");n.onload=()=>t(),n.onerror=e=>r(e),n.src=e,document.head.appendChild(n)}));await Promise.all(t)}var d=r(20134),f=r(19512),p=r(19461),h=r.n(p),v=r(60824),m=r(83008),g=r(72522),y=r(67044),w=r(86891);let x=async()=>{let e=await s.MessagePortChannel.link(window.parent,"channel:connect:client"),t=(0,l.FF)();return{remote:(0,f.L4)({async pullUp(e){await t.callHook("pullUp",e)}},(0,o._)((0,n._)({},e.handlers),{timeout:8e3})),hooks:t}};class _ extends Error{constructor(e){super(),this.name="InitializeManifestError",this.cause=e,this.message="Failed to initialize manifest of DevTools"}}let b=async e=>{let t=await fetch(e);try{let e=await t.text();return JSON.parse(e,(0,s.reviver)())}catch(e){throw new _(e)}},j=async(e,t)=>{let r=new URL(e,location.href),i=new window.WebSocket(r),a=await s.WebSocketChannel.link(i),u=(0,l.FF)();return{remote:(0,f.L4)({async refresh(){location.reload()},async applyStateOperations(e){for(let r of e)(0,s.applyOperation)(t,r)}},(0,o._)((0,n._)({},a.handlers),{timeout:5e3})),hooks:u,url:r}},R=async()=>{let e=u.use(),t=(0,w.BX)([{name:"overview",title:"Overview",icon:(0,i.jsx)(m.pNx,{}),view:{type:"builtin",src:"/overview"}},{name:"config",title:"Config",icon:(0,i.jsx)(m.AN7,{}),view:{type:"builtin",src:"/config"}},{name:"pages",title:"Pages",icon:(0,i.jsx)(m.KUq,{}),view:{type:"builtin",src:"/pages"}},{name:"react",title:"React",icon:(0,i.jsx)(g.u3M,{}),view:{type:"builtin",src:"/react"}},{name:"context",title:"Context",icon:(0,i.jsx)(m.XVA,{}),view:{type:"builtin",src:"/context"}},{name:"headers",title:"Header Modifier",icon:(0,i.jsx)(m.lMP,{}),view:{type:"builtin",src:"/headers"}},{name:"doctor",title:"Doctor",icon:(0,i.jsx)(g.Gyc,{}),view:{type:"builtin",src:"/doctor"}},{name:"storage",title:"Storage",icon:(0,i.jsx)(m.vU0,{}),view:{type:"builtin",src:"/storage/preset"}}]);for(let r of(await e.callHook("tab:list",t),t))"object"==typeof r.icon&&(r.icon=(0,w.KR)(r.icon)),"external"===r.view.type&&(r.view.component=(0,w.KR)(r.view.component));return t},E=async e=>{let t=new d.s,r=t.bindRemote(e.remote,"sendReactDevtoolsData");await e.remote.activateReactDevtools();let n=(0,v.createBridge)(window.parent,t);n.shutdown=()=>null;let o=(0,v.createStore)(n),i=(0,v.initialize)(window.parent,{bridge:n,store:o});return{store:o,bridge:n,wallAgent:t,unreg:r,Renderer:i}},A=(async e=>{var t;let r=(0,y.mA)((0,y.vx)(e).search),i=null!=(t=h().castArray(r.src)[0])?t:(0,y.Gc)(e,"manifest"),a=x(),s=b(i),l=s.then(e=>e.websocket?j(e.websocket,(0,w.BX)(e)):null),u=s.then(e=>c(e.context.def.plugins)).then(R),d=a.then(E),[f,p,v,m,g]=await Promise.all([a,s,l,u,d]);return(0,w.BX)((0,o._)((0,n._)({},p),{version:"2.69.5",tabs:m,server:v?(0,w.KR)(v):null,mountPoint:(0,w.KR)(f),react:{devtools:{store:(0,w.KR)(g.store),bridge:(0,w.KR)(g.bridge),wallAgent:(0,w.KR)(g.wallAgent),unreg:(0,w.KR)(g.unreg),Renderer:(0,w.KR)(g.Renderer)}}}))})(location.href),k=()=>(0,a.Yx)(A)},78850(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(9740);let o=e=>{let{params:t}=e;return t.toolkit&&t.type&&["framework","builder","bundler"].includes(t.toolkit)?["resolved","transformed"].includes(t.type)?null:(0,n.V2)("/404"):(0,n.V2)("/404")}},67931(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(31470).k},69713(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>h});var n=r(30255),o=r(69148),i=r(10002),a=r(83843),s=r(13675),l=r(89637),u=r(19461),c=r.n(u);let d=e=>{let{name:t,describe:r}=e,o=r.map(e=>(0,n.jsx)(i.E,{style:{display:"block"},children:e},e));return(0,n.jsx)(a.m,{className:"tooltip-i9AhnB",side:"right",content:o,children:(0,n.jsx)(s.q7,{value:t,children:(0,n.jsx)(l.a,{children:c().startCase(t)})})},t)},f=[{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."]}],p=[{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."]}],h={breadcrumb:[{title:"Config"},{title:(0,n.jsx)(()=>{let e=(0,o.zy)(),t=(0,o.Zp)(),[r,i]=e.pathname.split("/").slice(2);return(0,n.jsxs)(s.bL,{size:"1",value:r,onValueChange:e=>{t("/config/".concat(e,"/").concat(i))},children:[(0,n.jsx)(s.l9,{children:r}),(0,n.jsx)(s.UC,{children:f.map(e=>{let{name:t,describe:r}=e;return(0,n.jsx)(d,{name:t,describe:r},t)})})]})},{})},{title:(0,n.jsx)(()=>{let e=(0,o.zy)(),t=(0,o.Zp)(),[r,i]=e.pathname.split("/").slice(2);return(0,n.jsxs)(s.bL,{size:"1",value:i,onValueChange:e=>{t("/config/".concat(r,"/").concat(e))},children:[(0,n.jsx)(s.l9,{children:i}),(0,n.jsx)(s.UC,{children:p.map(e=>{let{name:t,describe:r}=e;return(0,n.jsx)(d,{name:t,describe:r},t)})})]})},{})}]}},2255(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(9740),o=r(67044);let i=e=>{let{request:t}=e,r=(0,o.Gc)(t.url,"./builder/transformed");return(0,n.V2)(r)}},86246(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(31470).k},20714(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>i});var n=r(30255),o=r(75629);let i={breadcrumb:[{title:"Context"},{title:(0,n.jsx)(o.v,{items:[{to:"/context/builder",title:"Builder"},{to:"/context/framework",title:"Framework"}]})}]}},75836(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(9740),o=r(67044);let i=e=>{let{request:t}=e,r=(0,o.Gc)(t.url,"./builder");return(0,n.V2)(r)}},10595(e,t,r){"use strict";r.d(t,{A:()=>m});var n=r(30255),o=r(31470),i=r(13836),a=r(89637),s=r(78107),l=r(83008),u=r(16944);let c=e=>{let{title:t,children:r}=e;return(0,n.jsxs)(i.s,{className:u.A.container,mt:"9",mx:"auto",gap:"2",children:[(0,n.jsx)(i.s,{height:"var(--space-9)",align:"center",children:(0,n.jsx)(l.TMu,{size:"36"})}),(0,n.jsxs)(a.a,{children:[(0,n.jsx)(i.s,{height:"var(--space-9)",align:"center",children:(0,n.jsx)(s.D,{children:t})}),(0,n.jsx)(a.a,{className:u.A.children,children:r})]})]})};var d=r(68069),f=r(69148),p=r(85267),h=r(67044),v=r(63171);let m=()=>{let e=(0,f.r5)(),t=(0,d.E)(),{def:r}=(0,v.s)(t).context;if(!(e&&"object"==typeof e&&0===Object.keys(e).length))return(0,n.jsx)(o.k,{});{let e=(0,h.vx)(r.doctor.quickStart).host,t=(0,n.jsxs)(p.N,{href:r.doctor.quickStart,target:"_blank",rel:"noopener noreferrer",children:["\uD83D\uDD17",e]});return(0,n.jsx)(a.a,{width:"100%",children:(0,n.jsxs)(c,{title:"Doctor is not working",children:["Visit the website of ",t," to learn more."]})})}}},82764(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>n});let n={breadcrumb:{title:"Doctor"}}},97898(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(31470).k},20564(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>s});var n=r(68069),o=r(8070),i=r(19461),a=r.n(i);let s={breadcrumb(e){var t;let r,{pathname:i}=e.location,s=null==(t=i.match(/^\/external\/(\w+)/))?void 0:t[1],{tabs:l}=(0,o.Yx)(n.r),u=a().find(l,{name:s});return u?{title:r}=u:r=s?a().startCase(s):"External",{title:r,pathname:i}}}},20005(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(31470).k},7887(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>n});let n={breadcrumb:{title:"Header Modifier"}}},78462(e,t,r){"use strict";r.d(t,{w:()=>i});var n=r(9740),o=r(57900);let i=async()=>{let e=await o.AZ.service;return(0,n.V2)(e.rules?"./editor":"./welcome")}},57900(e,t,r){"use strict";r.d(t,{AZ:()=>u,DQ:()=>a,I:()=>s});var n=r(19461),o=r.n(n),i=r(86891);let a=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=encodeURIComponent(JSON.stringify(e)),r="".concat("/sw-proxy.js","?rules=").concat(t),n=await navigator.serviceWorker.register(r);return await navigator.serviceWorker.ready,u.service=await l(),n},s=async()=>{let e=await navigator.serviceWorker.getRegistrations(),t=!0;for(let r of e)t=t&&await r.unregister();return u.service=Promise.resolve({}),t},l=async()=>{for(let e of o().times(3))try{let e=AbortSignal.timeout(300),t=await fetch("/__devtools/service/status",{signal:e});return await t.json()}catch(e){}return{}},u=(0,i.BX)({service:l()})},85062(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>i});var n=r(30255),o=r(83008);let i={breadcrumb:{title:(0,n.jsx)(o.oGk,{}),pathname:"/overview"}}},51526(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>Z});var n=r(30255),o=r(15271),i=r(59354),a=r(69148),s=r(73116),l=r(13836),u=r(19461),c=r.n(u),d=r(57691),f=r(27773),p=r(10084),h=r(88918),v=r(32198),m=r(9740),g=r(91492),y=r(73271),w=r(37021);function x(e,t){return function(r){null==e||e(r),r.defaultPrevented||t(r)}}var _=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function b(){return(b=(0,p._)(function(e,t){var n,o;return(0,v.YH)(this,function(i){switch(i.label){case 0:if(!(n=e.id)||!t[n]||!(o=t[n].chunkIds))return[2];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,Promise.all(o.map(function(e){return null===r.e||void 0===r.e?void 0:r.e(e)}))];case 2:return i.sent(),[3,4];case 3:return console.error(i.sent()),[3,4];case 4:return[2]}})})).apply(this,arguments)}var j=function(e,t){var r=window.location,n=r.protocol,o=r.host,i=new URL(e,"".concat(n,"//").concat(o));return i.searchParams.append("__loader",t),i.searchParams.append("__ssrDirect","true"),i},R=function(e,t,r){var o,i=e.id;return o=j("/"===r?t:"".concat(r).concat(t),i).toString(),(0,n.jsx)("link",{rel:"prefetch",as:"fetch",href:o},o)},E=function(e){var t=e.path,r=t.pathname,o=(0,y.useContext)(w.V_),i=o.routeManifest,a=o.routes,s=(i||{}).routeAssets,l=Array.isArray(a)?(0,m.ue)(a,r):[];return(Array.isArray(l)&&s&&(null==l||l.forEach(function(e){return function(e,t){return b.apply(this,arguments)}(e.route,s)})),window._SSR_DATA)?(0,n.jsx)(A,{matches:l,path:t,routeManifest:i}):null},A=function(e){var t=e.matches,r=e.path,o=e.routeManifest,i=r.pathname,s=r.search,l=r.hash,u=(0,a.FE)(),c=(0,a.$P)("/"),d=(0,y.useMemo)(function(){return null==t?void 0:t.filter(function(e,t){if(!e.route.loader||"function"!=typeof e.route.loader||0===e.route.loader.length)return!1;if(e.route.shouldRevalidate){var r,n=new URL(location.pathname+location.search+location.hash,window.origin),o=new URL(i+s+l,window.origin),a=e.route.shouldRevalidate({currentUrl:n,currentParams:(null==(r=u[0])?void 0:r.params)||{},nextUrl:o,nextParams:e.params,defaultShouldRevalidate:!0});if("boolean"==typeof a)return a}var c=u[t];return!!(!c||c.id!==e.route.id||c.pathname!==e.pathname||c.pathname.endsWith("*")&&c.params["*"]!==e.params["*"])}).map(function(e){return R(e.route,i,c)})},[t,i,o]);return(0,n.jsx)(n.Fragment,{children:d})},k=function(e){return y.forwardRef(function(t,i){var s,l,u,c,d,p,v,m,g,w,b,j,R,A,k=t.to,S=t.prefetch,C=(0,f._)(t,["to","prefetch"]),P="string"==typeof k&&_.test(k),N=(0,h._)((s=void 0===S?"none":S,u=(l=(0,h._)(y.useState(!1),2))[0],c=l[1],p=(d=(0,h._)(y.useState(!1),2))[0],v=d[1],m=C.onFocus,g=C.onBlur,w=C.onMouseEnter,b=C.onMouseLeave,j=C.onTouchStart,y.useEffect(function(){"render"===s&&v(!0)},[s]),R=function(){"intent"===s&&c(!0)},A=function(){"intent"===s&&(c(!1),v(!1))},y.useEffect(function(){if(u){var e=setTimeout(function(){v(!0)},100);return function(){clearTimeout(e)}}},[u]),[p,{onFocus:x(m,R),onBlur:x(g,A),onMouseEnter:x(w,R),onMouseLeave:x(b,A),onTouchStart:x(j,R)}]),2),L=N[0],D=N[1],B=(0,a.x$)(k);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e,(0,o._)({ref:i,to:k},C,D)),L&&r.e&&!P?(0,n.jsx)(E,{path:B}):null]})})},S=k(g.N_);S.displayName="Link";var C=k(g.k2);C.displayName="NavLink";var P=r(85267);let N=e=>{var{to:t,children:r}=e,a=(0,f._)(e,["to","children"]);return(0,n.jsx)(P.N,(0,i._)((0,o._)({},a),{asChild:!0,children:(0,n.jsx)(S,{to:t,children:r})}))},L=e=>{let{location:t,handle:r}=e;if(!c().isObject(r)&&c().isNil(r))return[];let{breadcrumb:n}=r,o=[];c().isFunction(n)?o.push(...c().castArray(n({location:t}))):o.push(...c().castArray(n));let i=[];for(let t of o){if(!c().isObject(t)||c().isNull(t)||!("title"in t))continue;let r={id:e.id,title:t.title,pathname:e.pathname};"pathname"in t&&c().isString(t.pathname)&&(r.pathname=t.pathname),i.push(r)}return i},D=e=>{let t=[],r=(0,a.FE)(),u=(0,a.zy)(),c=[];for(let e of r)c.push(...L((0,i._)((0,o._)({},e),{location:u})));for(let[e,r]of(u.state&&"breadcrumb"in u.state&&c.push(...L({handle:u.state.breadcrumb,pathname:u.pathname,id:"external/".concat(u.pathname),location:u})),Object.entries(c))){let o=[r.id,r.pathname,e];t.push((0,n.jsx)(N,{color:"gray",size:"2",to:r.pathname,children:r.title},o.join("_"))),r!==c.at(-1)&&(o.push("#connector"),t.push((0,n.jsx)(s.vKP,{className:d.A.connector},o.join("_"))))}return(0,n.jsx)(l.s,(0,i._)((0,o._)({align:"center",height:"var(--space-8)",gap:"1",px:"4"},e),{children:t}))};var B=r(68069);let M="";B.r.then(e=>{let{mountPoint:t}=e;t.hooks.hookOnce("pullUp",async e=>{M=e})});let T=()=>{let e=(0,a.Zp)(),{mountPoint:t}=(0,B.E)();return(0,y.useEffect)(()=>{M&&e(M),t.hooks.hook("pullUp",async t=>{e(t)})},[]),null};var H=r(25177),I=r(63221);let O=e=>{var{children:t}=e,r=(0,f._)(e,["children"]);let[a]=(0,H.B)();return(0,y.useEffect)(()=>{document.documentElement.classList.remove("dark","light"),document.documentElement.classList.add(a)},[a]),(0,n.jsx)(I.Sx,(0,i._)((0,o._)({},r),{appearance:a,children:t}))};var U=r(31346),V=r(83843),q=r(89637),z=r(83008),F=r(63171);let Y="tab-button-MtqLNp",G="tab-button-inner-KmlACp",K=e=>{let{tab:t}=e,r="";if("builtin"===t.view.type)r=t.view.src;else if("iframe"===t.view.type)r="/iframe/".concat(t.view.src);else if("external"===t.view.type)r="/external/".concat(t.name);else throw Error('Invalid tab view of "'.concat(t.name,'".'));return(0,y.useEffect)(()=>{document.documentElement.classList.add("theme-register")},[]),(0,n.jsx)(V.m,{content:t.title,side:"right",children:(0,n.jsx)(C,{to:r,className:Y,children:(0,n.jsx)(l.s,{justify:"center",align:"center",p:"1",className:G,children:(0,n.jsx)(q.a,{height:"var(--space-5)",width:"var(--space-5)",asChild:!0,children:t.icon})})})})},W=()=>{let{server:e}=(0,F.s)((0,B.E)());return(0,n.jsx)(V.m,{content:e?"Connected":"Disconnected",side:"right",children:(0,n.jsx)(q.a,{className:Y,children:(0,n.jsxs)(q.a,{p:"1",position:"relative",className:G,children:[(0,n.jsx)(q.a,{height:"var(--space-5)",width:"var(--space-5)",asChild:!0,children:(0,n.jsx)(z.BSJ,{})}),(0,n.jsx)(q.a,{className:"online-indicator-E9Pryr","data-active":!!e})]})})})},X=()=>{let[e,t]=(0,H.B)();return(0,n.jsx)(V.m,{content:"Appearance",side:"right",children:(0,n.jsx)(q.a,{className:Y,onClick:()=>{t("light"===e?"dark":"light")},children:(0,n.jsx)(l.s,{justify:"center",align:"center",p:"1",className:G,children:(0,n.jsx)(q.a,{height:"var(--space-5)",width:"var(--space-5)",asChild:!0,children:"dark"===e?(0,n.jsx)(z.DJT,{}):(0,n.jsx)(z._Nv,{})})})})})},J=()=>{let{tabs:e}=(0,F.s)((0,B.E)());return(0,n.jsxs)(l.s,{direction:"column",flexShrink:"0",className:"navigator-O_AEE3",children:[e.map(e=>(0,n.jsx)(K,{tab:e},e.name)),(0,n.jsx)(q.a,{flexGrow:"1"}),(0,n.jsx)(W,{}),(0,n.jsx)(X,{})]})},Z=()=>(0,n.jsx)(O,{className:"wrapper-YAIt0k",accentColor:"blue",panelBackground:"solid",children:(0,n.jsxs)(U.Kq,{swipeDirection:"up",children:[(0,n.jsx)(J,{}),(0,n.jsxs)(q.a,{width:"100%",position:"relative",pt:"4",children:[(0,n.jsx)(q.a,{width:"100%",height:"100%",position:"relative",children:(0,n.jsx)(a.sv,{})}),(0,n.jsx)(D,{className:"breadcrumbs-LVvAXj",height:"2.5rem",position:"absolute",top:"0",left:"0",right:"0"})]}),(0,n.jsx)(T,{})]})})},42211(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(30255),o=r(64921),i=r(68069),a=r(7498);let s=()=>{let{mountPoint:e}=(0,i.E)();return(0,a.A)(async()=>{e.remote.onFinishRender()}),(0,n.jsx)(o.R,{className:"loading-gmTvLE"})}},86832(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(31470).k},95040(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>n});let n={breadcrumb:{title:"Overview"}}},56119(e,t,r){"use strict";r.d(t,{w:()=>i});var n=r(9740),o=r(67044);let i=e=>{let{request:t}=e,r=(0,o.Gc)(t.url,"./overview");return(0,n.V2)(r)}},26995(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(31470).k},46957(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>n});let n={breadcrumb:{title:"Pages"}}},99334(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>i});var n=r(30255),o=r(75629);let i={breadcrumb:[{title:"React"},{title:(0,n.jsx)(o.v,{items:[{to:"/react/components",title:"Components"},{to:"/react/profiler",title:"Profiler"}]})}]}},12146(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(31470).k},29336(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(9740),o=r(67044);let i=e=>{let{request:t}=e,r=(0,o.Gc)(t.url,"./components");return(0,n.V2)(r)}},34277(e,t,r){"use strict";r.d(t,{w:()=>s});var n=r(68069),o=r(9740),i=r(19461),a=r.n(i);let s=async e=>{let{params:t}=e,{id:r}=t;if(!r)throw TypeError("storage preset id is required");let{context:i}=await n.r,{storagePresets:s}=await Promise.resolve(i),l=a().find(s,{id:r});return l||(0,o.V2)("/storage/preset")}},13138(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>n});let n={breadcrumb:[{title:"Storage"},{title:"Preset"}]}},42768(e,t,r){"use strict";r.d(t,{X:()=>i,w:()=>o});var n=r(39319);let o=async e=>await (0,n.Ep)(),i=()=>null},35455(e,t,r){"use strict";r.d(t,{w:()=>o});var n=r(39319);let o=async e=>await (0,n.Ep)()},39319(e,t,r){"use strict";r.d(t,{Bf:()=>s,Ep:()=>c,Gq:()=>a,Z2:()=>l,ZB:()=>u});var n=r(68069),o=r(19461),i=r.n(o);let a=["cookie","localStorage","sessionStorage"],s={cookie:"yellow",localStorage:"green",sessionStorage:"blue"},l=(e,t)=>i().map(e[t],(r,n)=>{let o=[e.id,t,n].join("//");return{key:n,value:r,type:t,id:o}}),u=e=>{let t=[];for(let r of a)t.push(...l(e,r));return t},c=async e=>{let{mountPoint:t}=await n.r,[r,o,i]=await Promise.all([t.remote.cookies(null==e?void 0:e.cookie),t.remote.localStorage(null==e?void 0:e.localStorage),t.remote.sessionStorage(null==e?void 0:e.sessionStorage)]);return{cookie:r,localStorage:o,sessionStorage:i}}},8070(e,t,r){"use strict";r.d(t,{Yx:()=>o}),r(30255),r(73271),r(19461);let n=new WeakMap,o=e=>{if(!(e instanceof Promise))return e;if(n.has(e)){let t=n.get(e);if(t instanceof Error)throw t;if(!(t instanceof Promise))return t;throw t}throw n.set(e,e),e.then(t=>n.set(e,t)).catch(t=>n.set(e,t)),e}},57609(e,t,r){"use strict";r.d(t,{XX:()=>x});var n=r(10084),o=r(78808),i=r(15271),a=r(59354),s=r(88918),l=r(32198),u=r(50016),c=r(46833),d=r(37021),f=r(29571),p=r(73271);function h(e,t){return p.createElement(d.V_.Provider,{value:t},e)}var v=r(30255),m=r(26800),g=r(98780),y=function(e){var t=e.callback,r=e.children,n=(0,p.useRef)(!1);return(0,p.useLayoutEffect)(function(){n.current||(n.current=!0,t())},[t]),r},w=function(){return!0};function x(e,t){return _.apply(this,arguments)}function _(){return(_=(0,n._)(function(e,t){var r,p,x,_,R,E,A,k,S,C;function P(){return(P=(0,n._)(function(e){return(0,l.YH)(this,function(t){return[2,function(e,t){return b.apply(this,arguments)}(e,C)]})})).apply(this,arguments)}function N(){return(N=(0,n._)(function(e,t){return(0,l.YH)(this,function(r){return[2,function(e,t){return j.apply(this,arguments)}(e,C,t)]})})).apply(this,arguments)}return(0,l.YH)(this,function(b){var j,L,D,B,M,T,H,I,O,U,V,q,z,F,Y,G,K;switch(b.label){case 0:if(r=(0,d.Ky)(),j=(0,n._)(function(e){var t,r;return(0,l.YH)(this,function(n){switch(n.label){case 0:return(t=(0,c.gy)()).pluginAPI.updateRuntimeContext(e),[4,t.hooks.onBeforeRender.call(e)];case 1:return n.sent(),[2,null==(r=(0,c.t8)())?void 0:r(e)]}})}),!(void 0===t||"string"==typeof t||"undefined"!=typeof HTMLElement&&(0,o._)(t,HTMLElement)))return[3,2];return p=function(e){return P.apply(this,arguments)},x=function(e,t){return N.apply(this,arguments)},T=null==(M=window._SSR_DATA)||null==(L=M.context)?void 0:L.request,k=Object.keys(A=(null==(_=(E=(0,a._)((0,i._)({},M||{renderLevel:0,mode:"string"}),{context:(0,a._)((0,i._)({},(null==M?void 0:M.context)||{}),{request:(0,a._)((0,i._)({},(null==M||null==(D=M.context)?void 0:D.request)||{}),{params:(null==T?void 0:T.params)||{},host:(null==T?void 0:T.host)||location.host,pathname:(null==T?void 0:T.pathname)||location.pathname,headers:(null==T?void 0:T.headers)||{},cookieMap:u.parse(document.cookie||"")||{},cookie:document.cookie||"",userAgent:(null==T||null==(B=T.headers)?void 0:B["user-agent"])||navigator.userAgent,referer:document.referrer,query:(0,i._)({},window.location.search.substring(1).split("&").reduce(function(e,t){var r=(0,s._)(t.split("="),2),n=r[0],o=r[1];return n&&(e[n]=o),e},{}),(null==T?void 0:T.query)||{}),url:location.href})})})).data)?void 0:_.loadersData)||{}).reduce(function(e,t){var r=A[t];return(null==r?void 0:r.loading)!==!1||(e[t]=r),e},{}),Object.assign(r,{loaderManager:(0,f.x)(k,{skipStatic:!0}),_internalRouterBaseName:e.props.basename,ssrContext:E.context}),r.initialData=null==(R=E.data)?void 0:R.initialData,[4,function(e){return j.apply(this,arguments)}(r)];case 1:if((S=b.sent())&&(r.initialData=S),C=t&&"string"!=typeof t?t:document.getElementById(t||"root"),window._SSR_DATA)return[2,(H=r,I=p,O=x,F=(0,a._)((0,i._)({},H),{get routes(){return H.routes},_hydration:!0}),Y=function(){delete F._hydration},G=(null==(V=window)||null==(U=V._SSR_DATA)?void 0:U.renderLevel)||g.Bw.CLIENT_RENDER,K=(null==(z=window)||null==(q=z._SSR_DATA)?void 0:q.mode)||"string",w()&&"stream"===K?G===g.Bw.SERVER_RENDER?O(h((0,v.jsx)(function(){return(0,v.jsx)(y,{callback:Y,children:e})},{}),F)):I(h(e,H)):G===g.Bw.CLIENT_RENDER||G===g.Bw.SERVER_PREFETCH?I(h(e,H)):G===g.Bw.SERVER_RENDER?new Promise(function(t){w()?(0,m.ai)(function(){O(h((0,v.jsx)(function(){return(0,v.jsx)(y,{callback:Y,children:e})},{}),F)).then(function(e){t(e)})}):(0,m.ai)(function(){O(h(e,F),Y).then(function(e){t(e)})})}):(console.warn("unknow render level: ".concat(G,", execute render()")),I(h(e,H))))];return[2,p(h(e,r))];case 2:throw Error("`render` function needs id in browser environment, it needs to be string or element")}})})).apply(this,arguments)}function b(){return(b=(0,n._)(function(e,t){var n;return(0,l.YH)(this,function(o){switch(o.label){case 0:return[4,r.e("783").then(r.t.bind(r,38987,19))];case 1:return(n=o.sent().createRoot(t)).render(e),[2,n]}})})).apply(this,arguments)}function j(){return(j=(0,n._)(function(e,t){return(0,l.YH)(this,function(n){switch(n.label){case 0:return[4,r.e("783").then(r.t.bind(r,38987,19))];case 1:return[2,n.sent().hydrateRoot(t,e)]}})})).apply(this,arguments)}},98780(e,t,r){"use strict";r.d(t,{Bw:()=>o,aQ:()=>a,rL:()=>i}),(n=o||(o={}))[n.CLIENT_RENDER=0]="CLIENT_RENDER",n[n.SERVER_PREFETCH=1]="SERVER_PREFETCH",n[n.SERVER_RENDER=2]="SERVER_RENDER";var n,o,i="__MODERN_SSR_DATA__",a="__MODERN_ROUTER_DATA__"},46833(e,t,r){"use strict";r.d(t,{A8:()=>u,J$:()=>o,Xj:()=>d,cG:()=>a,fn:()=>f,gy:()=>s,t8:()=>c,z_:()=>l,zm:()=>i});var n={};function o(){return n.isRscClient}function i(e){n.entryName=e.entryName,n.App=e.App,n.routes=e.routes,n.appInit=e.appInit,n.appConfig="function"==typeof e.appConfig?e.appConfig():e.appConfig,n.layoutApp=e.layoutApp,n.RSCRoot=e.RSCRoot,n.isRscClient=e.isRscClient,n.enableRsc=e.enableRsc}function a(e){n.internalRuntimeContext=e}function s(){return n.internalRuntimeContext}function l(){return n.App}function u(){return n.routes}function c(){var e,t;return n.appInit||(null==(e=l())?void 0:e.init)||(null==(t=f())?void 0:t.init)}function d(){var e,t;return n.appConfig||(null==(e=l())?void 0:e.config)||(null==(t=f())?void 0:t.config)}function f(){return n.layoutApp}},37021(e,t,r){"use strict";r.d(t,{Ky:()=>s,V_:()=>a});var n=r(18669),o=r(73271),i=r(29571),a=(0,o.createContext)({}),s=function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=arguments.length>1?arguments[1]:void 0;return{loaderManager:(0,i.x)({}),isBrowser:e,routeManifest:t||"undefined"!=typeof window&&window[n.Ae]}}},29571(e,t,r){"use strict";r.d(t,{x:()=>h});var n,o,i=r(10084),a=r(78808),s=r(88918),l=r(93571),u=r(32198),c=r(60191),d=r.n(c),f=function(){var e=new Map;return function(t){var r=e.get(t);if(r)return r;var n=JSON.stringify(t);return d()(n,"params should be not null value"),e.set(t,n),n}};(n=o||(o={}))[n.idle=0]="idle",n[n.loading=1]="loading",n[n.fulfilled=2]="fulfilled",n[n.rejected=3]="rejected";var p=function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{loading:!1,reloading:!1,data:void 0,error:void 0},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return Promise.resolve()},s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=0,d=n.data,f=n.error,p=!1,h=new Set,v=(t=(0,i._)(function(){return(0,u.YH)(this,function(e){return s||1===c?[2,r]:(c=1,g(),[2,r=o().then(function(e){d=e,f=null,c=2}).catch(function(e){f=e,d=null,c=3}).finally(function(){r=null,p=!0,g()})])})}),function(){return t.apply(this,arguments)}),m=function(){return{loading:!p&&1===c,reloading:p&&1===c,data:d,error:(0,a._)(f,Error)?"".concat(f.message):f,_error:f}},g=function(){(0,l._)(h).forEach(function(e){e(c,m())})};return{get result(){return m()},get promise(){return r},onChange:function(e){return h.add(e),function(){h.delete(e)}},load:v}},h=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.skipStatic,o=void 0!==n&&n,l=r.skipNonStatic,c=void 0!==l&&l,d=new Map,h=f();return{hasPendingLoaders:function(){var e=!0,t=!1,r=void 0;try{for(var n,o=d.values()[Symbol.iterator]();!(e=(n=o.next()).done);e=!0){var i=n.value.promise;if((0,a._)(i,Promise))return!0}}catch(e){t=!0,r=e}finally{try{e||null==o.return||o.return()}finally{if(t)throw r}}return!1},awaitPendingLoaders:(t=(0,i._)(function(){var e,t,r,n,o,i,l,c,f,p;return(0,u.YH)(this,function(u){switch(u.label){case 0:e=[],t=!0,r=!1,n=void 0;try{for(o=d[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)c=(l=(0,s._)(i.value,2))[0],p=(f=l[1]).promise,(0,a._)(p,Promise)&&e.push([c,f])}catch(e){r=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}return[4,Promise.all(e.map(function(e){return e[1].promise}))];case 1:return u.sent(),[2,e.reduce(function(e,t){var r=(0,s._)(t,2),n=r[0],o=r[1];return e[n]=o.result,e},{})]}})}),function(){return t.apply(this,arguments)}),add:function(t,r){var n=h(r.params),i=d.get(n),a=r._cache;if(!i||!1===a){var s=c&&!r.static,l=o&&r.static;i=p(n,void 0!==e[n]?e[n]:{data:r.initialData},t,s||l),d.set(n,i)}return n},get:function(e){return d.get(e)}}}},86995(e,t,r){"use strict";r.d(t,{F:()=>j,R:()=>R});var n,o,i,a,s,l,u,c=r(93571),d=r(17089),f=r(8084),p=r(15271),h=r(27773),v=r(59354),m=r(19723),g=(o=function(e){u.clear(),n=e;var t=e.plugins,r=e.handleSetupResult;u.addPlugins(t);var o=u.getPlugins(),i=(g=(f={runtimeContext:{},config:n.config,plugins:o}).runtimeContext,y=f.config,w=f.plugins,x={},w.forEach(function(e){var t=e.registryHooks,r=void 0===t?{}:t;Object.keys(r).forEach(function(e){x[e]=r[e]})}),(0,v._)((0,p._)({},g),{hooks:(0,p._)({},{onBeforeRender:(0,m.Ve)(),wrapRoot:(0,m.Lt)(),pickContext:(0,m.Lt)(),config:(0,m.po)()},x),extendsHooks:x,config:y})),a=function(e){var t=e.context,r=e.plugins,n=t.hooks,o=t.extendsHooks;function i(){if(t){t.hooks,t.extendsHooks,t.config,t.pluginAPI;var e=(0,h._)(t,["hooks","extendsHooks","config","pluginAPI"]);return e._internalContext=t,e}throw Error("Cannot access context")}function a(e){t=(0,d.h)(t,e)}var s={};r.forEach(function(e){var t=e._registryApi;if(t){var r=t(i,a);Object.keys(r).forEach(function(e){s[e]=r[e]})}}),o&&Object.keys(o).forEach(function(e){s[e]=o[e].tap});var l=(0,p._)({updateRuntimeContext:a,getHooks:function(){return(0,p._)({},n,o)},getRuntimeConfig:function(){if(t.config)return t.config;throw Error("Cannot access config")},config:n.config.tap,onBeforeRender:n.onBeforeRender.tap,wrapRoot:n.wrapRoot.tap,pickContext:n.pickContext.tap},s);return"undefined"==typeof Proxy?l:new Proxy(l,{get:function(e,t){if("then"!==t)return t in e?e[t]:function(){console.warn("api.".concat(t.toString()," not exist"))}}})}({context:i,pluginManager:u,plugins:o});i.pluginAPI=a;var s=!0,l=!1,c=void 0;try{for(var f,g,y,w,x,_,b=o[Symbol.iterator]();!(s=(_=b.next()).done);s=!0){var j,R=_.value,E=null==(j=R.setup)?void 0:j.call(R,a);r&&r(E,a)}}catch(e){l=!0,c=e}finally{try{s||null==b.return||b.return()}finally{if(l)throw c}}return{runtimeContext:i}},i=new Map,a=new Map,s=function(e,t,r){a.has(t)||a.set(t,{pre:new Map,post:new Map}),"pre"===r?a.get(e).pre.set(t,{name:t,isUse:!1}):"post"===r?a.get(e).post.set(t,{name:t}):"use"!==r||a.get(e).post.has(t)||a.get(t).pre.has(e)||a.get(e).pre.set(t,{name:t,isUse:!0})},l=function(e){if(e){var t=e,r=void 0===t?"undefined":(0,f._)(t);if("object"!==r||null===t)throw Error("Expect CLI Plugin instance to be an object, but got ".concat(r,"."));if(t.setup&&"function"!=typeof t.setup)throw Error("Expect CLI Plugin plugin.setup to be a function, but got ".concat(r,"."));var n=e.name,o=e.usePlugins,u=e.pre,c=e.post;if(i.has(n))return void console.warn("Plugin ".concat(n," already exists."));i.set(n,e),a.set(n,{pre:new Map,post:new Map}),(void 0===u?[]:u).forEach(function(e){s(n,e,"pre")}),(void 0===c?[]:c).forEach(function(e){s(n,e,"post")}),(void 0===o?[]:o).forEach(function(e){i.has(e.name)||l(e),s(n,e.name,"use")})}},u={getPlugins:function(){var e=new Set,t=new Set,r=[],n=function(o){if(t.has(o))throw Error("Circular dependency detected: ".concat(o));if(!e.has(o)&&i.get(o)){t.add(o);var s=i.get(o).required;(void 0===s?[]:s).forEach(function(e){if(!i.get(e))throw Error("".concat(o," plugin required plugin ").concat(e,", but not found."))});var l=a.get(o).pre;Array.from(l.values()).filter(function(e){return!e.isUse}).forEach(function(e){return n(e.name)}),Array.from(l.values()).filter(function(e){return e.isUse}).forEach(function(e){return n(e.name)}),t.delete(o),e.add(o),r.push(i.get(o))}};return i.forEach(function(e,t){a.get(t).post.forEach(function(e){a.get(e.name).pre.has(t)||a.get(e.name).pre.set(t,{name:t,isUse:!1})})}),i.forEach(function(e,t){n(t)}),r=r.filter(function(e){return e})},addPlugins:function(e){var t=!0,r=!1,n=void 0;try{for(var o,i=e[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var a=o.value;l(a)}}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}},clear:function(){i.clear(),a.clear()},isPluginExists:function(e){return i.has(e)}},{run:function(e){var t=o(e).runtimeContext,r=t.hooks.config.call().filter(function(e){return!!e});return t.config=d.h.apply(void 0,[{}].concat((0,c._)(r),[t.config||{}])),{runtimeContext:t}}}),y=r(10084),w=r(32198);function x(e,t){e&&Object.keys(e).forEach(function(r){var n=e[r];if("function"==typeof n){var o="beforeRender"===r?"onBeforeRender":r;t[o]&&("beforeRender"===r?t[o]((0,y._)(function(){var e,t,r,o=arguments;return(0,w.YH)(this,function(i){switch(i.label){case 0:for(t=Array(e=o.length),r=0;r<e;r++)t[r]=o[r];return[4,n.apply(void 0,(0,c._)(t))];case 1:return i.sent(),[2]}})})):t[o](function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.apply(void 0,(0,c._)(t))}))}})}var _=function(e){var t=e.ssrContext;return t?{isBrowser:e.isBrowser,request:t.request||{},response:t.response||{},logger:t.logger||{}}:{}},b=r(46833);function j(e,t){var r=(t||{}).plugins,n=g.run({plugins:[{name:"@modern-js/runtime-plugin-compat",_registryApi:function(e){return{useRuntimeConfigContext:function(){return e()._internalContext.config},useHookRunners:function(){var t,r;return t=e()._internalContext.hooks,{beforeRender:(r=(0,y._)(function(e){return(0,w.YH)(this,function(r){return[2,t.onBeforeRender.call(e)]})}),function(e){return r.apply(this,arguments)}),wrapRoot:function(e){return t.wrapRoot.call(e)},pickContext:function(e){return t.pickContext.call(e)},config:function(){return t.config.call()}}}}}},{name:"@modern-js/runtime-plugin-request-context",setup:function(e){e.onBeforeRender(function(e){var t=_(e);e.context=t})}}].concat((0,c._)(e),(0,c._)(void 0===r?[]:r)),config:t||{},handleSetupResult:x}).runtimeContext;return(0,b.cG)(n),n}function R(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return d.h.apply(void 0,[{},e].concat((0,c._)(r)))}},76329(e,t,r){"use strict";r.d(t,{H:()=>a});var n=function(e){var t=document.querySelectorAll("#".concat(e));if(0!==t.length){var r=t[t.length-1];if(r)try{return JSON.parse((null==r?void 0:r.textContent)||"")}catch(t){console.error("parse ".concat(e," error"),t)}}},o=r(98780),i=r(46833);function a(e){var t=e||(0,i.z_)();return"undefined"!=typeof window&&"nodejs"!==window.name&&(window._SSR_DATA=window._SSR_DATA||n(o.rL),window._ROUTER_DATA=window._ROUTER_DATA||n(o.aQ)),(0,i.gy)().hooks.wrapRoot.call(t)}},22521(e,t,r){"use strict";r.d(t,{jY:()=>W});var n=r(15271),o=r(59354),i=r(93571),a=r(30255),s=r(17089),l=r(69148),u=r(91492);function c(e){return"/"+e.replace(/^\/+|\/+$/g,"")}var d=r(73271),f=r.t(d,2),p=r(37021),h=r(46833),v=r(19723),m=(0,v.Lt)(),g=(0,v.Lt)(),y=r(10084),w=r(88918),x=r(8084),_=r(32198),b=r(6387),j=r(9740);(0,y._)(function(e){var t;return(0,_.YH)(this,function(r){switch(r.label){case 0:var n;return n=(0,y._)(function(e){return(0,_.YH)(this,function(r){switch(r.label){case 0:var n;return[4,Promise.all(e.map((n=(0,y._)(function(e){return(0,_.YH)(this,function(r){switch(r.label){case 0:var n;if(!("lazyImport"in e&&(n=e.component)&&(void 0===n?"undefined":(0,x._)(n))==="object"&&void 0!==n._init&&void 0!==n._payload))return[3,2];return[4,e.lazyImport()];case 1:e.component=r.sent().default,r.label=2;case 2:if(!(e.children&&Array.isArray(e.children)))return[3,4];return[4,t(e.children)];case 3:r.sent(),r.label=4;case 4:return[2]}})}),function(e){return n.apply(this,arguments)})))];case 1:return r.sent(),[2]}})}),[4,(t=function(e){return n.apply(this,arguments)})(e)];case 1:return r.sent(),[2]}})});var R=function(e,t){if(!t||!Array.isArray(t))return e;var r=new Map,o=function(e){e.forEach(function(e){e.id&&r.set(e.id,e),"children"in e&&e.children&&Array.isArray(e.children)&&o(e.children)})};o(e);var i=function(e){return e.map(function(e){if(e.id&&r.has(e.id)){var t=r.get(e.id),o=(0,n._)({loader:e.hasClientLoader?e.loader:void 0},t);return e.children&&Array.isArray(e.children)&&(o.children=i(e.children)),o}return e})};return i(t)},E=function(e,t){var r=!0,n=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done);r=!0){var s=i.value;if(s.id===t)return s;if(s.children&&Array.isArray(s.children)){var l=E(s.children,t);if(l)return l}}}catch(e){n=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(n)throw o}}return null},A=function(e,t){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=R(e.routes.reduceRight(function(e,t){return e.length>0?[(0,o._)((0,n._)({},t),{children:e})]:[t]},[]),t),s=(0,u.Ys)(a,{hydrationData:e,basename:i,dataStrategy:(r=(0,y._)(function(e){var r,n,o,i,a,l,u,c,d;return(0,_.YH)(this,function(f){switch(f.label){case 0:var p;return r=e.request,n=e.matches,o={},i=n.filter(function(e){return e.route.hasClientLoader}),a=fetch(r.url,{headers:{"x-rsc-tree":"true"}}),l=i.length>0?Promise.all(i.map((p=(0,y._)(function(e){var r,n;return(0,_.YH)(this,function(o){switch(o.label){case 0:return r=E(t,e.route.id),e.route.loader=null==r?void 0:r.loader,[4,e.resolve()];case 1:return n=o.sent(),[2,{routeId:e.route.id,result:n}]}})}),function(e){return p.apply(this,arguments)}))):Promise.resolve([]),[4,a];case 1:if(c=(u=f.sent()).headers.get("X-Modernjs-Redirect"))return n.forEach(function(e){var t=e.route.id;t&&(o[t]={type:"redirect",result:(0,j.V2)(c)})}),[2,o];return[4,Promise.all([l])];case 2:return w._.apply(void 0,[f.sent(),1])[0].forEach(function(e){var t=e.routeId,r=e.result;o[t]=r}),[4,(0,b.createFromReadableStream)(u.body)];case 3:if(void 0===(d=f.sent()).type||"render"!==d.type)throw Error("Unexpected payload type");return n.forEach(function(e){var t,r=e.route.id,n=d.routes.find(function(e){return e.id===r});n&&s.patchRoutes(n.parentId,[n],!0),(null==(t=d.loaderData)?void 0:t[r])&&(o[r]={type:"data",result:d.loaderData[r]})}),[2,o]}})}),function(e){return r.apply(this,arguments)})});return s},k=r(27773),S=r(18669);function C(e){var t=.001*new Date().getTime(),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]}var P=function(e){var t=(0,w._)(C(e),2);return 1e3*t[0]+t[1]/1e6},N=function(){var e=C();return function(){return P(e)}},L="undefined"!=typeof window&&void 0!==window.document,D=function(){if(L)return console.error("You should not get async storage in browser"),null;try{return r(40148).getAsyncLocalStorage()}catch(e){return console.error("Failed to load server async storage",e),null}},B=r(17854),M=r(85212),T=r(94041),H=r(48433),I=r(87962),O=r(78808);function U(e,t){if(!1===e||null==e)throw Error(t)}var V=function(e){function t(){return(0,M._)(this,t),(0,B._)(this,t,arguments)}return(0,I._)(t,e),t}((0,r(29246)._)(Error)),q=function(e){var t,r,i,s,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=e.children,f=e.index,p=e.id,h=e.component,v=e.isRoot,m=e.lazyImport,g=e.config,w=e.handle,b=u.parent,j=u.props,R={caseSensitive:e.caseSensitive,path:e.path,id:e.id,loader:(i=(t=e).loader)?(r=(0,y._)(function(e){var r,n,o,a,s,l;return(0,_.YH)(this,function(u){switch(u.label){case 0:return"function"==typeof t.lazyImport&&t.lazyImport(),r=N(),[4,i(e)];case 1:n=u.sent();return o=r(),"undefined"==typeof document&&(null==(l=D())||null==(s=l.useContext().monitors)||s.timing("".concat(S.IV,"-").concat(null==(a=t.id)?void 0:a.replace(/\//g,"_")),o)),[2,n]}})}),function(e){return r.apply(this,arguments)}):function(){return"function"==typeof t.lazyImport&&t.lazyImport(),null},action:e.action,hasErrorBoundary:e.hasErrorBoundary,shouldRevalidate:e.shouldRevalidate,handle:(0,n._)({},w,(void 0===g?"undefined":(0,x._)(g))==="object"?null==g?void 0:g.handle:{}),index:e.index,element:e.element,errorElement:e.errorElement};if(e.error&&(R.errorElement=(0,a.jsx)(e.error,{})),h)if((null==b?void 0:b.loading)&&m){var E=b.loading;s=z(h)?(0,a.jsx)(h,{fallback:(0,a.jsx)(E,{})}):(0,a.jsx)(d.Suspense,{fallback:(0,a.jsx)(E,{}),children:(0,a.jsx)(h,{})})}else s=z(h)&&m?(0,a.jsx)(h,{}):v?(0,a.jsx)(h,(0,n._)({},void 0===j?{}:j)):m?(0,a.jsx)(d.Suspense,{fallback:null,children:(0,a.jsx)(h,{})}):(0,a.jsx)(h,{});else e.loading=null==b?void 0:b.loading,R.element=(0,a.jsx)(l.sv,{});s&&(R.element=s);var A=null==c?void 0:c.map(function(t){return q(t,{parent:e})});return f?(0,a.jsx)(l.qh,(0,o._)((0,n._)({},R),{index:!0}),p):(0,a.jsx)(l.qh,(0,o._)((0,n._)({},R),{index:!1,children:A}),p)};function z(e){return e&&"Loadable"===e.displayName&&e.preload&&"function"==typeof e.preload}var F=function(){return(0,a.jsx)("div",{style:{margin:"150px auto",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"},children:"404"})};function Y(){return null}var G=function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=RegExp("".concat("/","{1,}"),"g");return(e=r.join("/").replace(o,"/"))&&"string"==typeof e&&(e.startsWith(".")&&(e=e.slice(1)),e.startsWith("/")||(e="/".concat(e)),e.endsWith("/")&&"/"!==e&&(e=e.slice(0,e.length-1))),e},K={routes:[]},W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:"@modern-js/plugin-router",registryHooks:{modifyRoutes:m,onBeforeCreateRoutes:g},setup:function(t){var r={current:[]};t.onBeforeRender(function(t){if(window._SSR_DATA&&e.unstable_reloadOnURLMismatch){var n,o=t.ssrContext,i=c(window.location.pathname),a=(null==o||null==(n=o.request)?void 0:n.pathname)&&c(o.request.pathname);a&&a!==i&&(console.error("The initial URL ".concat(a," and the URL ").concat(i," to be hydrated do not match, reload.")),window.location.reload())}t.router={useMatches:l.FE,useLocation:l.zy,useHref:l.$P},Object.defineProperty(t,"routes",{get:function(){return r.current},enumerable:!0})}),t.wrapRoot(function(c){var f=(0,s.h)(t.getRuntimeConfig().router||{},e),v=f.serverBase,m=void 0===v?[]:v,g=f.supportHtml5History,y=void 0===g||g,_=f.basename,b=void 0===_?"":_,R=f.routesConfig,E=f.createRoutes,S=f.future;if(!(K=(0,n._)({routes:(0,h.A8)(),globalApp:(0,h.fn)()},R)).routes&&!E)return c;var C=function(e){return m.find(function(t){return function(e,t){var r=t.length>1&&t.endsWith("/")?t.slice(0,-1):t||"/",n=e||"/";return n===r||n.startsWith("".concat(r,"/"))}(e,t)})||"/"};return function(e){var s,f,v,m,g,_,R,P,N,L,D,B,M,T=(s=(0,o._)((0,n._)({},e),{rscPayload:null==e?void 0:e.rscPayload}),v=(f={api:t,createRoutes:E,supportHtml5History:y,selectBasePath:C,basename:b,future:S}).api,m=f.createRoutes,g=f.supportHtml5History,_=f.selectBasePath,R=f.basename,P=(0,d.useContext)(p.V_),L="/"===(N=_(location.pathname).replace(/^\/*/,"/"))?G(N,P._internalRouterBaseName||R):N,D=P.unstable_getBlockNavState,B=(null==s?void 0:s.rscPayload)?J(s.rscPayload):null,M=window._ROUTER_DATA||B,(0,d.useMemo)(function(){(null==M?void 0:M.errors)&&(M=(0,o._)((0,n._)({},M),{errors:function(e){if(!e)return null;var t=Object.entries(e),r={},n=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var l=(0,w._)(a.value,2),u=l[0],c=l[1];if(c&&"RouteErrorResponse"===c.__type)r[u]=new j.VV(c.status,c.statusText,c.data,!0===c.internal);else if(c&&"Error"===c.__type){var d=Error(c.message);d.stack=c.stack,r[u]=d}else r[u]=c}}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(M.errors)}));var e=(0,h.J$)(),t=null;(t=e?m?m():function(e){var t=e.routesConfig,r=e.props,o=e.ssrMode;if(!t)return null;var i=t.routes,s=t.globalApp;return i?function e(t,r){var o=r.globalApp,i=r.ssrMode,s=r.props,l=function(e){return o?function(t){return(0,a.jsx)(o,(0,n._)({Component:e},t))}:e},u=[],c=!0,f=!1,p=void 0;try{for(var h,v=t[Symbol.iterator]();!(c=(h=v.next()).done);c=!0){var m=h.value;if("nested"===m.type){var g,y={path:m.path,id:m.id,loader:m.loader,action:m.action,hasErrorBoundary:m.hasErrorBoundary,shouldRevalidate:m.shouldRevalidate,handle:(0,n._)({},m.handle,"object"===(0,x._)(m.config)?null==(g=m.config)?void 0:g.handle:{}),index:m.index,hasClientLoader:!!m.clientData,Component:m.component?m.component:void 0,errorElement:m.error?(0,a.jsx)(m.error,{}):void 0,children:m.children?m.children.map(function(t){return e([t],{globalApp:o,ssrMode:i,props:s})[0]}):void 0};u.push(y)}else if("function"==typeof m.component||"object"===(0,x._)(m.component)){var w=l(m.component),_={path:m.path,element:d.createElement(w)};u.push(_)}}}catch(e){f=!0,p=e}finally{try{c||null==v.return||v.return()}finally{if(f)throw p}}return u.push({path:"*",element:(0,a.jsx)(F,{})}),u}(i,{globalApp:s,ssrMode:o,props:r}):null}({routesConfig:K}):m?m():(0,l.Eu)(function(e){var t=e.routesConfig,r=e.props,o=e.ssrMode;if(!t)return null;var i=t.routes,s=t.globalApp;return i?function(e,t){var r=t.globalApp,o=t.ssrMode,i=t.props,s=function(e){var t=e.Component,o=(0,k._)(e,["Component"]);return r?(0,a.jsx)(r,(0,n._)({Component:t},o)):(0,a.jsx)(t,(0,n._)({},o))},u=[],c=!0,d=!1,f=void 0;try{for(var p,h=e[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var v=p.value;if("nested"===v.type){var m=q(v,{DeferredDataComponent:"stream"===o?Y:void 0,props:i});u.push(m)}else{var g=(0,a.jsx)(l.qh,{path:v.path,element:(0,a.jsx)(s,{Component:v.component})},v.path);u.push(g)}}}catch(e){d=!0,f=e}finally{try{c||null==h.return||h.return()}finally{if(d)throw f}}return u.push((0,a.jsx)(l.qh,{path:"*",element:(0,a.jsx)(F,{})},"*")),u}(i,{globalApp:s,ssrMode:o,props:r}):null}({routesConfig:K,props:s})))||(t=[]);var r=v.getHooks();if(B)try{var c=A(B,t,L);return{router:c,routes:c.routes||[]}}catch(e){console.error("Failed to create router from RSC payload:",e)}var f=r.modifyRoutes.call(t),p=g?(0,u.Ys)(f,{basename:L,hydrationData:M}):(0,u.Ge)(f,{basename:L,hydrationData:M}),y=p.subscribe;return p.subscribe=function(e){return y(function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!(D&&D()))return e.apply(void 0,(0,i._)(r))})},{router:p,routes:f}},[K,s,L,M,D])),H=T.router;r.current=T.routes;var I=function(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.pg,{router:H,future:S}),(0,a.jsx)(X,{}),(0,a.jsx)(X,{})]})};return c?(0,a.jsx)(c,{children:(0,a.jsx)(I,{})}):(0,a.jsx)(I,{})}})}}},X=function(){return null},J=function(e){var t=f&&f.use;return"function"==typeof t?t(e):null}},24645(e,t,r){"use strict";r.d(t,{eM:()=>i,qF:()=>a,rl:()=>o});var n=r(18669),o=function(e){return function(t){var r,o,i=null==(o=window)||null==(r=o[n.Ql])?void 0:r[e];return i&&"function"==typeof i.shouldRevalidate?i.shouldRevalidate(t):t.defaultShouldRevalidate}},i=function(e,t){return"undefined"!=typeof document&&(window[n.Ql][t]=e),e},a=function(e){return console.error(e),null}},19723(e,t,r){"use strict";r.d(t,{Lt:()=>s,Ve:()=>a,po:()=>l});var n=r(10084),o=r(93571),i=r(32198);function a(){var e,t=[];return{tap:function(e){t.push(e)},call:(e=(0,n._)(function(){var e,r,n,a,s,l,u,c,d,f,p,h,v,m,g=arguments;return(0,i.YH)(this,function(i){switch(i.label){case 0:for(r=Array(e=g.length),n=0;n<e;n++)r[n]=g[n];a=!1,l=function(e){a=!0,s=e},u=!0,c=!1,d=void 0,i.label=1;case 1:i.trys.push([1,6,7,8]),f=t[Symbol.iterator](),i.label=2;case 2:if((u=(p=f.next()).done)||(h=p.value,a))return[3,5];return[4,h.apply(void 0,(0,o._)(r).concat([l]))];case 3:void 0!==(v=i.sent())&&(r[0]=v),i.label=4;case 4:return u=!0,[3,2];case 5:return[3,8];case 6:return m=i.sent(),c=!0,d=m,[3,8];case 7:try{u||null==f.return||f.return()}finally{if(c)throw d}return[7];case 8:return[2,a?s:r[0]||[]]}})}),function(){return e.apply(this,arguments)})}}function s(){var e=[];return{tap:function(t){e.push(t)},call:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=!0,a=!1,s=void 0;try{for(var l,u=e[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var c=l.value.apply(void 0,(0,o._)(r));void 0!==c&&(r[0]=c)}}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}return r[0]}}}function l(){var e=[];return{tap:function(t){e.push(t)},call:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=[],i=!0,a=!1,s=void 0;try{for(var l,u=e[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var c=(0,l.value)(r);void 0!==c&&o.push(c)}}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}return o}}}},17089(e,t,r){"use strict";r.d(t,{h:()=>function e(t){for(var r=arguments.length,i=Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];if(!i.length)return t;var l=i.shift();if(a(t)&&a(l))for(var u in l)a(l[u])?(t[u]||Object.assign(t,(0,n._)({},u,{})),e(t[u],l[u])):Object.assign(t,(0,n._)({},u,l[u]));return e.apply(void 0,[t].concat((0,o._)(i)))}});var n=r(48433),o=r(93571),i=r(8084);function a(e){return e&&(void 0===e?"undefined":(0,i._)(e))==="object"&&!Array.isArray(e)}},18669(e,t,r){"use strict";r.d(t,{Ae:()=>n,IV:()=>i,Ql:()=>o});var n="_MODERNJS_ROUTE_MANIFEST",o="_routeModules",i="server-loader"}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["106","277","422","493","535","783","792"],function(){return t(93125),t(54578),t(28974),t(50054),t(39325)}),e.O()}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["792"],{57691(n,e,t){t.d(e,{A:()=>o});let o={link:"link-znMYnO",connector:"connector-BqtwBd"}},14690(n,e,t){t.d(e,{A:()=>o});let o={card:"card-If0911"}},78336(n,e,t){t.d(e,{A:()=>o});let o={container:"container-WHe0d3"}},34749(n,e,t){t.d(e,{A:()=>o});let o={container:"container-tsQk3U",fab:"fab-_shO90",slideInFromRight:"slideInFromRight-cmflGC",logo:"logo-nXXNIB"}},79366(n,e,t){t.d(e,{A:()=>o});let o={container:"container-tcM8fB","close-button":"close-button-weoXpd",closeButton:"close-button-weoXpd",frame:"frame-PSYQgj",backdrop:"backdrop-SWoFLh"}},16944(n,e,t){t.d(e,{A:()=>o});let o={container:"container-uSZ85N",children:"children-cVMy6R"}},80015(n,e,t){t.d(e,{A:()=>o});let o={loading:"loading-HrjYdW",rotate:"rotate-CPIjfB"}},46e3(n,e,t){t.d(e,{A:()=>o});let o={container:"container-COzu4H"}},13081(n,e,t){t.d(e,{A:()=>o});let o={container:"container-SkRv4t"}},13639(n,e,t){t.d(e,{A:()=>o});let o={container:"container-e3dQes"}},17656(n,e,t){t.d(e,{A:()=>o});let o={"input-pair":"input-pair-rQmmCj",inputPair:"input-pair-rQmmCj",actions:"actions-AIkunB"}},62551(n,e,t){t.d(e,{A:()=>o});let o={container:"container-e74VUa",trigger:"trigger-THjT7j",content:"content-Qso8ca",slideDown:"slideDown-Z9IIi_",slideUp:"slideUp-H_SR0p","url-text":"url-text-OqB5_M",urlText:"url-text-OqB5_M",mark:"mark-cUxPxy"}},85305(n,e,t){t.d(e,{A:()=>o});let o={"endpoint-tag":"endpoint-tag-y0SEjj",endpointTag:"endpoint-tag-y0SEjj","shy-link":"shy-link-Xazm8H",shyLink:"shy-link-Xazm8H","endpoint-container":"endpoint-container-XVJeZy",endpointContainer:"endpoint-container-XVJeZy"}},47891(n,e,t){t.d(e,{A:()=>o});let o={stats:"stats-cb58Fz"}},54100(n,e,t){t.d(e,{A:()=>o});let o={container:"container-dWGOkz",slideIn:"slideIn-AQnKGk",hide:"hide-LUv_Hv",swipeOut:"swipeOut-ZTbSGG",viewport:"viewport-Owdzo8",close:"close-i8MeRu"}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["491"],{99240(e,t,o){var n=o(30255),l=o(15271),r=o(59354),s=o(20134),i=o(55499),a=o(19512),c=o(73385),d=o(19461),u=o.n(d),m=o(48630),h=o.n(m),v=o(30198),p=o(86891);let y=i.MessagePortChannel.wait(window,"channel:connect:client"),f=new s.s,g=(0,v.createBridge)(window,f),w=y.then(e=>{let t=(0,c.FF)();return{remote:(0,a.L4)({async activateReactDevtools(){(0,v.activate)(window,{bridge:g})},async onFinishRender(){await t.callHook("onFinishRender")},async cookies(e){let t=await fetch("/__devtools/api/cookies",{method:"POST",body:JSON.stringify({setCookies:e})}),{cookies:n}=await t.json();if(!n||"object"!=typeof n)throw TypeError("No cookies returned from server");let{parse:l}=await o.e("852").then(o.bind(o,23343)),r=l(document.cookie),s=u().omit(n,Object.keys(r));return{client:r,server:s}},localStorage:async e=>(u().each(e,(e,t)=>{window.localStorage.setItem(t,e)}),(0,l._)({},window.localStorage)),sessionStorage:async e=>(u().each(e,(e,t)=>{window.sessionStorage.setItem(t,e)}),(0,l._)({},window.sessionStorage))},(0,r._)((0,l._)({},e.handlers),{timeout:500})),hooks:t}}),k=(0,p.BX)({loaded:!1}),b=h()();w.then(e=>{let{remote:t,hooks:o}=e;f.bindRemote(t,"sendReactDevtoolsData"),o.hook("onFinishRender",async()=>{k.loaded=!0,b.resolve()})});var _=o(38987),j=o(73271),x=o(62729);let C=e=>{let[t,...o]=[{key:"top",value:e.top},{key:"bottom",value:e.bottom},{key:"left",value:e.left},{key:"right",value:e.right}].sort((e,t)=>e.value-t.value),n=o.findIndex(e=>{var o,n,l;let{key:r}=e;return o=t.key,null!=(l=null==(n=({top:["left","right"],bottom:["left","right"],left:["top","bottom"],right:["top","bottom"]})[o])?void 0:n.includes(r))&&l}),[l]=o.splice(n,1);return[t,l,o[0],o[1]]},A=(e,t)=>new Promise((o,n)=>{let l=!0,r=setTimeout(()=>{l=!1,n(Error("Promise Timeout"))},t);e.then(e=>{l&&o(e),clearTimeout(r)}),e.catch(n)});var E=o(25177),S=o(63221),N=o(13836),R=o(83008),D=o(57773),P=o(95329);let T=e=>{var t;let o=null==(t=e.keepAlive)||t,{when:l}=e,r=(0,j.useRef)(!1);return l&&(r.current=!0),e.load||(o?r.current:l)?(0,n.jsx)("div",{style:{display:!o||l?"unset":"none"},children:e.children}):null};var B=o(64279),L=o(20218);let X=e=>{var t;let[o,l]=(0,B.A)(()=>Promise.resolve(e.onClick()),[]);return(0,n.jsx)("button",{className:L.A.container,onClick:l,"data-type":null!=(t=e.type)?t:"default",disabled:o.loading,children:e.children})};var Y=o(92855),H=o(27773),I=o(89637),O=o(63171),F=o(64921),U=o(45180);let W=e=>{var{src:t,onClose:o}=e,s=(0,H._)(e,["src","onClose"]);let{loaded:i}=(0,O.s)(k);return(0,n.jsxs)(I.a,(0,r._)((0,l._)({className:U.A.container},s),{children:[(0,n.jsx)("iframe",{className:U.A.frame,src:t}),(0,n.jsx)(R.y1J,{className:U.A.closeButton,onClick:o}),(0,n.jsx)("div",{className:U.A.backdrop,style:{display:i?"none":void 0},children:(0,n.jsx)(F.R,{})})]}))},K=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location,{hash:o}=t,n=null==(e=o.match(/^#\/__devtools(.*)/))?void 0:e[1];return"string"!=typeof n?null:""===n?"/":n},M=e=>{let t=K(),[o,s]=(0,D.A)(!!t),[i,a]=(0,j.useState)(!1),c=(e=>{var t;let o=null!=(t=null==e?void 0:e.margin)?t:"10px",n="number"==typeof o?"".concat(o,"px"):o,[l,r]=(0,j.useState)(),s=()=>{if(!l)return;l.moveable=!1;let{el:e}=l,[t]=C((e=>{let{top:t,left:o,height:n,width:l}=e.getBoundingClientRect();return{top:t,left:o,bottom:window.innerHeight-t-n,right:window.innerWidth-o-l}})(e));e.style.transition="".concat(t.key," 200ms"),requestIdleCallback(()=>{r(void 0),e.style[t.key]=n}),e.addEventListener("transitionend",()=>e.style.transition="",{once:!0})},i=t=>{let o="touches"in t?t.touches[0]:t;if(!(null==l?void 0:l.moveable))return;let{startX:r,startY:s}=l;(r-o.clientX)**2+(s-o.clientY)**2>9&&(l.clickable=!1);let{width:i,height:a}=l.el.getBoundingClientRect(),c=o.clientY-l.offsetY,d=o.clientX-l.offsetX,u=C({top:c,left:d,bottom:window.innerHeight-c-a,right:window.innerWidth-d-i}).map(e=>{let{key:t,value:o}=e;return{key:t,value:"".concat(o,"px")}});if(null==e?void 0:e.clamp)for(let e of u){let t=["top","bottom"].includes(e.key)?window.innerHeight-a:window.innerWidth-i;e.value="clamp(".concat(n,", ").concat(e.value,", ").concat(t,"px)")}let[m,h,...v]=u,{style:p}=l.el;p.transition="",p[m.key]=m.value,p[h.key]=h.value,p[v[0].key]="auto",p[v[1].key]="auto"};(0,x.A)("blur",s),(0,x.A)("mouseup",s),(0,x.A)("touchend",s),(0,x.A)("mousemove",i),(0,x.A)("touchmove",i);let a=e=>{let t="touches"in e?e.touches[0]:e,o=e.currentTarget,n=o.getBoundingClientRect();r({el:o,clickable:!0,moveable:!0,offsetX:t.clientX-n.left,offsetY:t.clientY-n.top,startX:t.clientX,startY:t.clientY})};return{isDragging:!!l,props:{onMouseDown:a,onTouchStart:a,onClickCapture:e=>{(null==l?void 0:l.clickable)||e.stopPropagation()}}}})({clamp:!0}),[d]=(0,E.B)();(0,x.A)("keydown",e=>{e.shiftKey&&e.altKey&&"KeyD"===e.code&&s()}),(0,j.useEffect)(()=>{f.hook("receive",e=>{"startInspectingNative"===e.event&&(s(!1),document.documentElement.style.setProperty("cursor","cell"))});let e=e=>{"stopInspectingNative"===e.event&&(s(!0),document.documentElement.style.removeProperty("cursor"))};return f.hook("send",e),()=>{f.removeHook("send",e)}},[]);let u=async()=>{document.documentElement.style.setProperty("cursor","wait"),s(!1),a(!0);try{(await A(w,1e4)).remote.pullUp("/react/components#inspecting")}catch(e){console.error(e),document.documentElement.style.removeProperty("cursor")}};return(0,P.A)(async()=>{t&&(await A(w,1e4)).remote.pullUp(t)},[]),(0,n.jsxs)(S.Sx,{appearance:d,className:d,hasBackground:!1,style:{height:0,width:0,minHeight:0,minWidth:0},children:[(0,n.jsx)(T,{when:o,keepAlive:!0,load:i,children:(0,n.jsx)("div",{className:Y.A.container,children:(0,n.jsx)(W,{src:e.src,onClose:()=>s(!1),style:{pointerEvents:c.isDragging?"none":"auto"}})})}),(0,n.jsxs)(N.s,(0,r._)((0,l._)({className:Y.A.fab},c.props),{align:"center",children:[(0,n.jsx)(X,{type:"primary",onClick:s,children:(0,n.jsx)("img",{className:Y.A.logo,src:e.logo})}),(0,n.jsx)(X,{onClick:u,children:(0,n.jsx)(R.SbD,{})})]}))]})},J=()=>{let e=window.__modern_js_devtools_manifest;if(!e)throw TypeError("Devtools manifest is not found");let t=e.client;if(!t)throw TypeError("Devtools client source is not found");let o=e.source,l=new URL(t,location.href);if(o){let e=new URL(o,location.href);l.searchParams.set("src",e.href)}return(0,n.jsx)(M,{logo:e.context.def.assets.logo,src:l.href})},q=()=>{let e=document.createElement("div");e.className="_modern_js_devtools_container",document.body.appendChild(e);let t=e.attachShadow({mode:"closed"}),o=document.getElementById("_modern_js_devtools_styles");if(!(o instanceof HTMLTemplateElement))throw Error("template not found");t.appendChild(o.content);let l=document.createElement("div");l.classList.add("_modern_js_devtools_mountpoint","theme-register","container-bYVevn"),t.appendChild(l),(0,_.createRoot)(l).render((0,n.jsx)(J,{}))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",q):q()}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["42","422","493","648","783","792"],function(){return t(93125),t(18400),t(69304),t(50054),t(99240)}),e.O()}]);
1
+ "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["491"],{99240(e,t,o){var n=o(30255),l=o(15271),r=o(59354),s=o(20134),i=o(55499),a=o(19512),c=o(73385),d=o(19461),u=o.n(d),m=o(48630),h=o.n(m),v=o(30198),p=o(86891);let y=i.MessagePortChannel.wait(window,"channel:connect:client"),f=new s.s,g=(0,v.createBridge)(window,f),w=y.then(e=>{let t=(0,c.FF)();return{remote:(0,a.L4)({async activateReactDevtools(){(0,v.activate)(window,{bridge:g})},async onFinishRender(){await t.callHook("onFinishRender")},async cookies(e){let t=await fetch("/__devtools/api/cookies",{method:"POST",body:JSON.stringify({setCookies:e})}),{cookies:n}=await t.json();if(!n||"object"!=typeof n)throw TypeError("No cookies returned from server");let{parse:l}=await o.e("852").then(o.bind(o,23343)),r=l(document.cookie),s=u().omit(n,Object.keys(r));return{client:r,server:s}},localStorage:async e=>(u().each(e,(e,t)=>{window.localStorage.setItem(t,e)}),(0,l._)({},window.localStorage)),sessionStorage:async e=>(u().each(e,(e,t)=>{window.sessionStorage.setItem(t,e)}),(0,l._)({},window.sessionStorage))},(0,r._)((0,l._)({},e.handlers),{timeout:500})),hooks:t}}),k=(0,p.BX)({loaded:!1}),b=h()();w.then(e=>{let{remote:t,hooks:o}=e;f.bindRemote(t,"sendReactDevtoolsData"),o.hook("onFinishRender",async()=>{k.loaded=!0,b.resolve()})});var _=o(38987),j=o(73271),x=o(62729);let C=e=>{let[t,...o]=[{key:"top",value:e.top},{key:"bottom",value:e.bottom},{key:"left",value:e.left},{key:"right",value:e.right}].sort((e,t)=>e.value-t.value),n=o.findIndex(e=>{var o,n,l;let{key:r}=e;return o=t.key,null!=(l=null==(n=({top:["left","right"],bottom:["left","right"],left:["top","bottom"],right:["top","bottom"]})[o])?void 0:n.includes(r))&&l}),[l]=o.splice(n,1);return[t,l,o[0],o[1]]},A=(e,t)=>new Promise((o,n)=>{let l=!0,r=setTimeout(()=>{l=!1,n(Error("Promise Timeout"))},t);e.then(e=>{l&&o(e),clearTimeout(r)}),e.catch(n)});var E=o(25177),S=o(63221),N=o(13836),R=o(83008),D=o(57773),P=o(95329);let T=e=>{var t;let o=null==(t=e.keepAlive)||t,{when:l}=e,r=(0,j.useRef)(!1);return l&&(r.current=!0),e.load||(o?r.current:l)?(0,n.jsx)("div",{style:{display:!o||l?"unset":"none"},children:e.children}):null};var B=o(64279),L=o(78336);let X=e=>{var t;let[o,l]=(0,B.A)(()=>Promise.resolve(e.onClick()),[]);return(0,n.jsx)("button",{className:L.A.container,onClick:l,"data-type":null!=(t=e.type)?t:"default",disabled:o.loading,children:e.children})};var Y=o(34749),H=o(27773),I=o(89637),O=o(63171),F=o(64921),U=o(79366);let W=e=>{var{src:t,onClose:o}=e,s=(0,H._)(e,["src","onClose"]);let{loaded:i}=(0,O.s)(k);return(0,n.jsxs)(I.a,(0,r._)((0,l._)({className:U.A.container},s),{children:[(0,n.jsx)("iframe",{className:U.A.frame,src:t}),(0,n.jsx)(R.y1J,{className:U.A.closeButton,onClick:o}),(0,n.jsx)("div",{className:U.A.backdrop,style:{display:i?"none":void 0},children:(0,n.jsx)(F.R,{})})]}))},K=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location,{hash:o}=t,n=null==(e=o.match(/^#\/__devtools(.*)/))?void 0:e[1];return"string"!=typeof n?null:""===n?"/":n},M=e=>{let t=K(),[o,s]=(0,D.A)(!!t),[i,a]=(0,j.useState)(!1),c=(e=>{var t;let o=null!=(t=null==e?void 0:e.margin)?t:"10px",n="number"==typeof o?"".concat(o,"px"):o,[l,r]=(0,j.useState)(),s=()=>{if(!l)return;l.moveable=!1;let{el:e}=l,[t]=C((e=>{let{top:t,left:o,height:n,width:l}=e.getBoundingClientRect();return{top:t,left:o,bottom:window.innerHeight-t-n,right:window.innerWidth-o-l}})(e));e.style.transition="".concat(t.key," 200ms"),requestIdleCallback(()=>{r(void 0),e.style[t.key]=n}),e.addEventListener("transitionend",()=>e.style.transition="",{once:!0})},i=t=>{let o="touches"in t?t.touches[0]:t;if(!(null==l?void 0:l.moveable))return;let{startX:r,startY:s}=l;(r-o.clientX)**2+(s-o.clientY)**2>9&&(l.clickable=!1);let{width:i,height:a}=l.el.getBoundingClientRect(),c=o.clientY-l.offsetY,d=o.clientX-l.offsetX,u=C({top:c,left:d,bottom:window.innerHeight-c-a,right:window.innerWidth-d-i}).map(e=>{let{key:t,value:o}=e;return{key:t,value:"".concat(o,"px")}});if(null==e?void 0:e.clamp)for(let e of u){let t=["top","bottom"].includes(e.key)?window.innerHeight-a:window.innerWidth-i;e.value="clamp(".concat(n,", ").concat(e.value,", ").concat(t,"px)")}let[m,h,...v]=u,{style:p}=l.el;p.transition="",p[m.key]=m.value,p[h.key]=h.value,p[v[0].key]="auto",p[v[1].key]="auto"};(0,x.A)("blur",s),(0,x.A)("mouseup",s),(0,x.A)("touchend",s),(0,x.A)("mousemove",i),(0,x.A)("touchmove",i);let a=e=>{let t="touches"in e?e.touches[0]:e,o=e.currentTarget,n=o.getBoundingClientRect();r({el:o,clickable:!0,moveable:!0,offsetX:t.clientX-n.left,offsetY:t.clientY-n.top,startX:t.clientX,startY:t.clientY})};return{isDragging:!!l,props:{onMouseDown:a,onTouchStart:a,onClickCapture:e=>{(null==l?void 0:l.clickable)||e.stopPropagation()}}}})({clamp:!0}),[d]=(0,E.B)();(0,x.A)("keydown",e=>{e.shiftKey&&e.altKey&&"KeyD"===e.code&&s()}),(0,j.useEffect)(()=>{f.hook("receive",e=>{"startInspectingNative"===e.event&&(s(!1),document.documentElement.style.setProperty("cursor","cell"))});let e=e=>{"stopInspectingNative"===e.event&&(s(!0),document.documentElement.style.removeProperty("cursor"))};return f.hook("send",e),()=>{f.removeHook("send",e)}},[]);let u=async()=>{document.documentElement.style.setProperty("cursor","wait"),s(!1),a(!0);try{(await A(w,1e4)).remote.pullUp("/react/components#inspecting")}catch(e){console.error(e),document.documentElement.style.removeProperty("cursor")}};return(0,P.A)(async()=>{t&&(await A(w,1e4)).remote.pullUp(t)},[]),(0,n.jsxs)(S.Sx,{appearance:d,className:d,hasBackground:!1,style:{height:0,width:0,minHeight:0,minWidth:0},children:[(0,n.jsx)(T,{when:o,keepAlive:!0,load:i,children:(0,n.jsx)("div",{className:Y.A.container,children:(0,n.jsx)(W,{src:e.src,onClose:()=>s(!1),style:{pointerEvents:c.isDragging?"none":"auto"}})})}),(0,n.jsxs)(N.s,(0,r._)((0,l._)({className:Y.A.fab},c.props),{align:"center",children:[(0,n.jsx)(X,{type:"primary",onClick:s,children:(0,n.jsx)("img",{className:Y.A.logo,src:e.logo})}),(0,n.jsx)(X,{onClick:u,children:(0,n.jsx)(R.SbD,{})})]}))]})},J=()=>{let e=window.__modern_js_devtools_manifest;if(!e)throw TypeError("Devtools manifest is not found");let t=e.client;if(!t)throw TypeError("Devtools client source is not found");let o=e.source,l=new URL(t,location.href);if(o){let e=new URL(o,location.href);l.searchParams.set("src",e.href)}return(0,n.jsx)(M,{logo:e.context.def.assets.logo,src:l.href})},q=()=>{let e=document.createElement("div");e.className="_modern_js_devtools_container",document.body.appendChild(e);let t=e.attachShadow({mode:"closed"}),o=document.getElementById("_modern_js_devtools_styles");if(!(o instanceof HTMLTemplateElement))throw Error("template not found");t.appendChild(o.content);let l=document.createElement("div");l.classList.add("_modern_js_devtools_mountpoint","theme-register","container-bYVevn"),t.appendChild(l),(0,_.createRoot)(l).render((0,n.jsx)(J,{}))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",q):q()}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["106","422","493","648","783","792"],function(){return t(93125),t(54578),t(28974),t(50054),t(99240)}),e.O()}]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/devtools-client",
3
- "version": "2.69.3",
3
+ "version": "2.69.5",
4
4
  "engines": {
5
5
  "node": ">=14.0.0"
6
6
  },
@@ -23,7 +23,7 @@
23
23
  "@radix-ui/react-tabs": "^1.1.12",
24
24
  "@radix-ui/react-toast": "^1.2.14",
25
25
  "@radix-ui/themes": "^3.2.1",
26
- "@rsbuild/core": "1.6.13",
26
+ "@rsbuild/core": "1.6.15",
27
27
  "@types/jest": "^29",
28
28
  "@types/lodash": "^4.14.202",
29
29
  "@types/node": "~16.11.7",
@@ -57,14 +57,14 @@
57
57
  "typescript": "~5.0.4",
58
58
  "ufo": "^1.3.0",
59
59
  "valtio": "^1.11.1",
60
- "@modern-js/app-tools": "2.69.3",
61
- "@modern-js/devtools-kit": "2.69.3",
62
- "@modern-js/plugin-proxy": "2.69.3",
63
- "@modern-js/runtime": "2.69.3",
64
- "@modern-js/tsconfig": "2.69.3",
65
- "@modern-js/types": "2.69.3",
66
- "@scripts/jest-config": "2.66.0",
67
- "@modern-js/utils": "2.69.3"
60
+ "@modern-js/app-tools": "2.69.5",
61
+ "@modern-js/devtools-kit": "2.69.5",
62
+ "@modern-js/runtime": "2.69.5",
63
+ "@modern-js/plugin-proxy": "2.69.5",
64
+ "@modern-js/tsconfig": "2.69.5",
65
+ "@modern-js/types": "2.69.5",
66
+ "@modern-js/utils": "2.69.5",
67
+ "@scripts/jest-config": "2.66.0"
68
68
  },
69
69
  "dependencies": {
70
70
  "cookie-es": "^1.0.0"