@rsdoctor/client 1.4.1-beta.0 → 1.5.1

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/diff.html CHANGED
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><title>Rsdoctor</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="./resource/js/react.72d3d85b.js"></script><script defer src="./resource/js/vender.4a6fee86.js"></script><script defer src="./resource/js/197.aa320ba5.js"></script><script defer src="./resource/js/883.0a0d6fad.js"></script><script defer src="./resource/js/791.5f557611.js"></script><script defer src="./resource/js/diff.3a332a2e.js"></script><link href="./resource/css/791.83b51c66.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
1
+ <!DOCTYPE html><html><head><title>Rsdoctor</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="./resource/js/react.3dfe4388.js"></script><script defer src="./resource/js/vender.964dfc5c.js"></script><script defer src="./resource/js/384.d4e59acc.js"></script><script defer src="./resource/js/246.d2c7c8d3.js"></script><script defer src="./resource/js/159.3897a28e.js"></script><script defer src="./resource/js/diff.48b74bd1.js"></script><link href="./resource/css/159.83b51c66.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
package/dist/index.html CHANGED
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><title>Rsdoctor</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="./resource/js/react.72d3d85b.js"></script><script defer src="./resource/js/vender.4a6fee86.js"></script><script defer src="./resource/js/rc-0.1aa34d68.js"></script><script defer src="./resource/js/rc-1.eb2754d2.js"></script><script defer src="./resource/js/ant-design-0.71243426.js"></script><script defer src="./resource/js/ant-design-1.6050f2c5.js"></script><script defer src="./resource/js/ant-design-2.16432452.js"></script><script defer src="./resource/js/ant-design-3.23ce91b6.js"></script><script defer src="./resource/js/ant-design-4.97833ea2.js"></script><script defer src="./resource/js/ant-design-icons.6f529e48.js"></script><script defer src="./resource/js/197.aa320ba5.js"></script><script defer src="./resource/js/610.d58c44f0.js"></script><script defer src="./resource/js/791.5f557611.js"></script><script defer src="./resource/js/index.67a914b8.js"></script><link href="./resource/css/791.83b51c66.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
1
+ <!DOCTYPE html><html><head><title>Rsdoctor</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="./resource/js/react.3dfe4388.js"></script><script defer src="./resource/js/vender.964dfc5c.js"></script><script defer src="./resource/js/rc-0.bd9999ac.js"></script><script defer src="./resource/js/rc-1.eb2754d2.js"></script><script defer src="./resource/js/ant-design-0.71243426.js"></script><script defer src="./resource/js/ant-design-1.6050f2c5.js"></script><script defer src="./resource/js/ant-design-2.16432452.js"></script><script defer src="./resource/js/ant-design-3.23ce91b6.js"></script><script defer src="./resource/js/ant-design-4.97833ea2.js"></script><script defer src="./resource/js/ant-design-icons.6f529e48.js"></script><script defer src="./resource/js/384.d4e59acc.js"></script><script defer src="./resource/js/610.d58c44f0.js"></script><script defer src="./resource/js/159.3897a28e.js"></script><script defer src="./resource/js/index.d0420c7a.js"></script><link href="./resource/css/159.83b51c66.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
@@ -0,0 +1,112 @@
1
+ "use strict";(self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["159"],{25234(){},48281(){},27037(){},8092(){},53673(){},37529(){},57143(){},20649(){},71652(){},97742(){},49775(){},77104(){},26980(){},97512(){},2201(){},50366(){},48423(){},49531(){},78977(){},46528(){},78562(){},22797(e,t,r){r.d(t,{A:()=>y});var n=r(65723),l=r(21919),i=r(98685),s=r(10117),a=r(17400),o=r(66287),d=r(66020),c=r(60503),u=r(35500),h=r(19143),p=r(68701),x=r(47748),m=r(22155),f=r(67409),g=r(97322);let{jK:j,Sx:v}=s,y=e=>{let{router:t,renderFailState:r,extraContent:y}=e,[b,A]=(0,m.useState)(j.Success),[w,C]=(0,m.useState)({...a.s.viewMode}),[S,M]=(0,m.useState)(),[k,N]=(0,m.useState)(a.s.theme);return b===s.jK.Fail?r?(0,n.jsx)(n.Fragment,{children:r()}):(0,n.jsxs)(o.A,{direction:"vertical",style:{padding:14},children:[(0,n.jsx)(d.A.Text,{strong:!0,style:{fontSize:16},children:"load json file of Rsdoctor failed."}),(0,n.jsxs)(d.A.Text,{children:["try to use ",(0,n.jsx)(d.A.Text,{keyboard:!0,children:"command + r"})," to refresh page."]}),null,(0,n.jsx)(c.A,{}),(0,n.jsx)(o.A,{direction:"vertical",style:{width:"100%"},children:(0,n.jsxs)(d.A.Text,{style:{fontSize:16},children:["you can",(0,n.jsx)(d.A.Text,{strong:!0,style:{fontSize:"inherit"},children:"upload a file"}),"in the area below to analyze your project."]})}),(0,n.jsx)(c.A,{})]}):(0,n.jsx)(g.I9,{children:(0,n.jsx)(a.Q.Provider,{value:{...a.s,theme:k,setTheme:e=>{N(e),(0,i.setThemeToStorage)(e)},pageState:b,json:S,viewMode:w,setManifest:M,setPageState:A,setViewMode(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r={...w,...e};C(r),t&&(0,i.setViewModeToStorage)(r)}},children:(0,n.jsx)(a.Q.Consumer,{children:e=>(0,n.jsx)(u.Ay,{locale:(0,i.getLocale)(e.locale),theme:{algorithm:k===v.Dark?h.A.darkAlgorithm:h.A.defaultAlgorithm,token:{padding:16,colorText:"rgba(0, 0, 0, 0.85)",fontFamily:"var(--font-family-code)"}},children:(0,n.jsx)(l.PE,{children:(0,n.jsxs)(n.Fragment,{children:[y,(0,n.jsx)(f.tH,{FallbackComponent:e=>{let{error:t,resetErrorBoundary:r}=e;return(0,n.jsx)(p.Ay,{status:"error",title:"Sorry, something went wrong.",extra:(0,n.jsx)(x.Ay,{type:"primary",onClick:r,loading:b===j.Pending,children:"Reload"}),children:(0,n.jsxs)(d.A.Paragraph,{children:[(0,n.jsx)(d.A.Title,{level:3,children:"Error Stack"}),(0,n.jsx)("pre",{children:t.stack||t.message})]})})},onReset:()=>{window.location.reload()},children:t})]})})})})})})}},21376(e,t,r){r.d(t,{ZZ:()=>P,aM:()=>k,rU:()=>N});var n=r(65723),l=r(63079),i=r(84585),s=r(73147),a=r(66020),o=r(87417),d=r(14913),c=r(44759),u=r(66287),h=r(60503),p=r(84262),x=r(87655),m=r(47748),f=r(67187),g=r(55828),j=r(94959),v=r(71079),y=r(98685),b=r(14760),A=r(90220),w=r(10117),C=r(35471),S=r(74579),M=r(91888);let k=e=>{let{data:t}=e;return(0,n.jsx)(l.A,{gutter:w.or.BasePadding,wrap:!1,align:"top",children:(0,n.jsx)(i.A,{style:{height:"100%",width:"100%"},children:t.length?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(s.A,{style:{marginTop:"20px"},children:t.map((e,r)=>{var l;let{dependency:i,module:o,relativePath:d}=e,{statements:c}=i,{start:u}=(null==c||null==(l=c[0])?void 0:l.position)?o.isPreferSource?c[0].position.source:c[0].position.transformed:{start:{line:0,column:0}},h=`${d}:${u.line}:${u.column||1}`;return(0,n.jsx)(s.A.Item,{style:{cursor:"default"},children:(0,n.jsxs)(a.A.Text,{children:[(0,n.jsxs)("div",{className:"filePath-UF3inH",children:[h,(0,n.jsx)(a.A.Paragraph,{copyable:{text:d},style:{position:"relative",top:"7px"}})]}),r!==t.length-1?(0,n.jsx)(g.A,{className:"arrow-VrZOco"}):null]})},h)})})}):(0,n.jsx)(o.A,{description:"This package no dependencies"})})})},N=(0,S.eN)({Component:k,api:M.SDK.ServerAPI.API.GetPackageRelationAlertDetails,responsePropName:"data"}),P=e=>{var t;let{data:r,getPackageRelationContentComponent:l}=e,{level:i,code:s,packages:o}=r,g=(0,y.useRuleIndexNavigate)(s,r.link),S=(0,f.x)(o,e=>e.targetSize.sourceSize),k=(0,y.formatSize)(S),{xs:N,lg:P,xxl:T}=d.Ay.useBreakpoint(),{name:R}=o.find(e=>!!e.target.name).target,E=o.map(e=>e.target.version);return(0,n.jsx)(c.A,{showIcon:!N,message:(0,n.jsxs)(u.A,{wrap:!0,split:N?null:(0,n.jsx)(h.A,{type:"vertical"}),align:"center",children:[(0,n.jsxs)(u.A,{wrap:!1,children:[(0,n.jsx)(a.A.Text,{code:!0,strong:!0,onClick:g,style:{cursor:"pointer"},children:(0,n.jsx)("a",{children:s})}),(0,n.jsx)(a.A.Text,{strong:!0,children:(null==(t=M.Rule.RuleErrorMap[s])?void 0:t.title)||r.title})]}),(0,n.jsxs)(a.A.Paragraph,{ellipsis:{rows:1},style:{marginBottom:0},children:[(0,n.jsx)(a.A.Text,{strong:!0,code:!0,children:R}),(0,n.jsxs)(a.A.Text,{strong:!0,children:[" ",r.packages.length]}),(0,n.jsx)(a.A.Text,{children:" versions was found"})]}),(0,n.jsx)(C.Ex,{label:"total size",value:k,type:"error",tooltip:`total size of ${r.packages.length} versions is ${k}`})]}),description:(0,n.jsx)(u.A,{direction:"vertical",wrap:!1,children:r.packages.map(e=>{let{target:t,targetSize:r}=e,l=(0,y.formatSize)(r.sourceSize),i=r.parsedSize?(0,y.formatSize)(r.parsedSize):null,s=`${t.name}@${t.version}`;return(0,n.jsxs)(u.A,{style:{wordBreak:"break-all"},align:"center",split:N?null:(0,n.jsx)(h.A,{type:"vertical"}),wrap:!0,children:[(0,n.jsxs)(u.A,{wrap:!1,children:[(0,n.jsx)(a.A.Text,{style:{marginLeft:4},children:"└"}),(0,n.jsx)(C.Ex,{label:t.name,value:`v${t.version}`,tooltip:s})]}),(0,n.jsxs)(u.A,{children:[(0,n.jsx)(C.Ex,{label:(0,n.jsxs)("div",{color:"rgb(255, 255, 255)",children:["Source Size ",(0,n.jsx)(j.A,{})]}),value:l,tooltip:`The bundle size of "${s}" is ${l}, this is source size.`,type:"error"}),(0,n.jsx)(C.Ex,{label:"Bundled size",value:i||"CONCATENATED",tooltip:`The bundle size of "${s}" is ${l}, this is after bundled, concatenated module cannot get bundled size. `,type:"error"})]}),(0,n.jsx)(a.A.Paragraph,{style:{marginBottom:0,width:T?"40rem":P?"30rem":"20rem"},copyable:{text:t.root},ellipsis:{rows:1,expandable:!0,symbol:(0,n.jsx)(v.A,{}),tooltip:t.root},code:!0,children:t.root})]},t.version)})}),type:"warn"===i?"info":i,action:(0,n.jsxs)(n.Fragment,{children:[o&&o.length>0?(0,n.jsx)(b.hX,{text:"Show Relations",buttonProps:{size:"small"},drawerProps:{title:r.title,width:"60%"},children:(0,n.jsxs)(u.A,{direction:"vertical",className:"alert-space",children:[(0,n.jsxs)(u.A,{style:{marginBottom:w.or.BasePadding/2},children:[(0,n.jsx)(A.h,{text:R,upperFirst:!1}),(0,n.jsx)(a.A.Text,{strong:!0,children:E.length}),(0,n.jsx)(a.A.Text,{children:" versions was found: "}),E.map(e=>(0,n.jsx)(a.A.Text,{strong:!0,code:!0,children:e},e))]}),(0,n.jsx)(p.A,{type:"card",size:"middle",className:"tabs-space",defaultActiveKey:E[0],items:o.map(e=>{let{target:t,targetSize:i}=e;return{label:(0,n.jsxs)(u.A,{children:[(0,n.jsx)(a.A.Text,{children:`${R}@${t.version}`}),(0,n.jsx)(x.A,{color:w.Q1.Red,children:(0,y.formatSize)(i.sourceSize)})]}),key:`${t.root}${t.name}${t.version}`,children:l({data:r,package:e})}})})]})}):null,(0,n.jsx)(h.A,{type:"vertical"}),(0,n.jsx)(m.Ay,{type:"link",onClick:g,size:"small",icon:(0,n.jsx)(j.A,{})})]})})}},7308(e,t,r){r.d(t,{J:()=>Y});var n=r(65723),l=r(87655),i=r(87417),s=r(84262),a=r(30786),o=r(66020),d=r(47748),c=r(11728),u=r(22155);let h=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,n.jsx)("rect",{width:16,height:16,fill:"#FFF2E8",rx:2}),(0,n.jsx)("path",{fill:"#FA541C",d:"M13.21 4.026a.5.5 0 0 0-.5-.5H3.29a.5.5 0 0 0-.5.5v1.316a.5.5 0 0 0 .5.5h9.42a.5.5 0 0 0 .5-.5zM13.21 7.342a.5.5 0 0 0-.5-.5H3.29a.5.5 0 0 0-.5.5v1.316a.5.5 0 0 0 .5.5h9.42a.5.5 0 0 0 .5-.5zM13.21 10.658a.5.5 0 0 0-.5-.5H3.29a.5.5 0 0 0-.5.5v1.316a.5.5 0 0 0 .5.5h9.42a.5.5 0 0 0 .5-.5z"})]}),p=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,n.jsx)("rect",{width:16,height:16,fill:"#F6FFED",rx:2}),(0,n.jsx)("path",{fill:"#52C41A",fillRule:"evenodd",d:"M4.586 6.172a.853.853 0 0 0-.853.854v5.12c0 .472.382.854.853.854h6.828a.853.853 0 0 0 .853-.854v-5.12a.853.853 0 0 0-.853-.854H9.707V7.88a1.707 1.707 0 1 1-3.414 0V6.172z",clipRule:"evenodd"}),(0,n.jsx)("path",{fill:"#52C41A",d:"M7.147 4.466a.853.853 0 1 1 1.707 0V7.88a.853.853 0 0 1-1.707 0z"}),(0,n.jsx)("path",{fill:"#52C41A",d:"m8 3 2.217 2.304H5.783z"})]}),x=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,n.jsx)("rect",{width:16,height:16,fill:"#FFF1F0",rx:2}),(0,n.jsx)("path",{fill:"#FF5658",fillRule:"evenodd",d:"M13 8A5 5 0 1 1 3 8a5 5 0 0 1 10 0M9.768 6.232a.5.5 0 0 1 0 .707L8.708 8l1.06 1.06a.5.5 0 0 1-.707.708L8 8.708l-1.062 1.06a.5.5 0 0 1-.707-.707L7.293 8l-1.06-1.062a.5.5 0 0 1 .706-.707L8 7.293l1.06-1.06a.5.5 0 0 1 .708 0",clipRule:"evenodd"})]});var m=r(98685);let f="box-yCgd0f",g="title-OR484p",j="content-iOwxYc",{Text:v}=o.A,y=e=>{let{data:t}=e;return t.map(e=>{let{code:t,link:r,error:l}=e,{source:i,output:s}=l||{},a=(null==i?void 0:i.path)?`${null==i?void 0:i.path}:${null==i?void 0:i.line}:${null==i?void 0:i.column}`:null,o=(null==s?void 0:s.path)?`${null==s?void 0:s.path}:${null==s?void 0:s.line}:${null==s?void 0:s.column}`:`There's no source map for this error. Possible reasons are as follows:
2
+ 1. It might come from a third-party library without source map.
3
+ 2. If this is your business source code, source map should be enabled in your build config.
4
+ `,u=(0,m.useRuleIndexNavigate)(t,r);return(0,n.jsxs)("div",{className:"container-iQTvf7",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:g,children:"Source"}),(0,n.jsxs)("div",{className:f,children:[(0,n.jsx)(c.A,{component:h}),(0,n.jsx)(v,{ellipsis:{tooltip:a},className:`${j} e2e-ecma-source`,children:a})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:g,children:"Output"}),(0,n.jsxs)("div",{className:f,children:[(0,n.jsx)(c.A,{component:p}),(0,n.jsx)(v,{ellipsis:{tooltip:o},className:`${j} e2e-ecma-output`,children:o})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:g,children:"Error"}),(0,n.jsxs)("div",{className:f,children:[(0,n.jsx)(c.A,{component:x}),(0,n.jsx)(v,{ellipsis:{tooltip:e.description},className:`${j} e2e-ecma-error`,children:e.description})]})]}),(0,n.jsx)(d.Ay,{onClick:u,type:"link",children:"more"})]})})};var b=r(23230),A=r(29656),w=r(60503),C=r(66287),S=r(58023),M=r(67187),k=r(14760),N=r(90220),P=r(10117);let T=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,n.jsx)("rect",{width:16,height:16,fill:"#FFF7E6",rx:2}),(0,n.jsx)("path",{fill:"#F2793D",fillRule:"evenodd",d:"M11.377 5.186h1.488L10.973 3H5.027L3.135 5.186h1.488l.87-1.005h5.015z",clipRule:"evenodd"}),(0,n.jsx)("path",{fill:"#F2793D",fillRule:"evenodd",d:"M3.676 4.82h8.648c.299 0 .54.243.54.545v7.09a.543.543 0 0 1-.54.545H3.676a.543.543 0 0 1-.54-.545v-7.09c0-.302.241-.546.54-.546m2.702 1.77a.54.54 0 0 0 0 1.082h3.244a.54.54 0 1 0 0-1.081z",clipRule:"evenodd"})]}),R=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,n.jsx)("rect",{width:16,height:16,fill:"#FFF7E6",rx:2}),(0,n.jsx)("path",{fill:"#F2793D",d:"M3 7V5c0-1.105 2.239-2 5-2s5 .895 5 2v2c0 1.105-2.239 2-5 2s-5-.895-5-2"}),(0,n.jsx)("path",{fill:"#F2793D",d:"M8 10c2.761 0 5-.895 5-2v1c0 1.105-2.239 2-5 2s-5-.895-5-2V8c0 1.105 2.239 2 5 2"}),(0,n.jsx)("path",{fill:"#F2793D",d:"M8 12c2.761 0 5-.895 5-2v1c0 1.105-2.239 2-5 2s-5-.895-5-2v-1c0 1.105 2.239 2 5 2"})]});var E=r(85817);let O=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,n.jsx)("rect",{width:16,height:16,fill:"#E6F7FF",rx:2}),(0,n.jsx)("g",{clipPath:"url(#version_svg__a)",children:(0,n.jsx)("path",{fill:"#3874F6",d:"M13.438 9.875a.6.6 0 0 0-.216.043h-.002l-.002.002L8 12.079l-5.217-2.16H2.78l-.002-.001a.562.562 0 0 0-.43 1.039l5.432 2.248.002.001.003.001a.56.56 0 0 0 .43 0h.003l.002-.002 5.433-2.248a.563.563 0 0 0-.216-1.082M2.348 6.082 7.78 8.33l.003.001.002.001a.56.56 0 0 0 .43 0h.003l.002-.002 5.433-2.248a.563.563 0 0 0 0-1.04L8.22 2.796l-.002-.001-.003-.001a.56.56 0 0 0-.43 0h-.003l-.002.002-5.433 2.248a.563.563 0 0 0 0 1.039m11.09 1.355a.6.6 0 0 0-.216.043l-.002.001-.002.001L8 9.642l-5.217-2.16H2.78l-.002-.002a.563.563 0 0 0-.43 1.04l5.432 2.248h.002l.003.002a.56.56 0 0 0 .43 0l.003-.001.002-.001 5.433-2.248a.563.563 0 0 0-.216-1.083"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"version_svg__a",children:(0,n.jsx)("path",{fill:"#fff",d:"M2 2h12v12H2z"})})})]}),z="label-XufLCq",L="labelContent-nkrbEg",D="collapseContainer-RlFMpI",_="collapseChild-WWZD3z",B="attribute-bDSZ0z",I="iconContainer-qPzCrR",F="data-po89g7",$="pkgName-vA16cZ",{Paragraph:G,Text:W}=o.A,{innerWidth:V}=window,H=e=>{let{title:t,description:r,extra:l}=e;return(0,n.jsxs)("div",{className:z,children:[(0,n.jsxs)("div",{className:L,children:[(0,n.jsx)("div",{children:t}),(0,n.jsx)("div",{children:r})]}),(0,n.jsx)("div",{children:l})]})},U=e=>{let{data:t,extraData:r}=e,i=t.map(e=>{let{packages:t}=e;return{totalSize:(0,M.x)(t,e=>e.targetSize.sourceSize),data:e}}).sort((e,t)=>t.totalSize-e.totalSize).map(e=>{let{data:t,totalSize:i}=e,{packages:a}=t,d=(0,m.formatSize)(i),{name:u}=a.find(e=>!!e.target.name).target,h=a.map(e=>e.target.version);return{key:u,label:(0,n.jsx)(H,{title:(0,n.jsx)(l.A,{style:{backgroundColor:"#EAEDF1",borderRadius:"2px"},children:(0,n.jsx)("span",{className:$,children:u})}),description:`${a.length} versions was found`,extra:(0,n.jsxs)("div",{className:"extraContainer-Zf1u14",children:[(0,n.jsxs)("div",{className:I,children:[(0,n.jsx)(c.A,{style:{fontSize:"18px"},component:E.A}),(0,n.jsx)("span",{className:F,children:d})]}),a&&a.length>0?(0,n.jsx)(k.hX,{text:"Show Relations",buttonProps:{size:"small"},drawerProps:{title:t.title,width:"60%"},children:(0,n.jsxs)(C.A,{direction:"vertical",className:"alert-space",style:{width:"100%"},children:[(0,n.jsxs)(C.A,{style:{marginBottom:P.or.BasePadding/2,width:"100%"},children:[(0,n.jsx)(N.h,{text:(0,n.jsx)(l.A,{style:{backgroundColor:"#EAEDF1"},children:u}),upperFirst:!1}),(0,n.jsx)(o.A.Text,{strong:!0,children:h.length}),(0,n.jsx)(o.A.Text,{children:" versions found"})]}),(0,n.jsx)(s.A,{size:"middle",items:a.map(e=>{let{target:i,targetSize:s}=e;return{label:(0,n.jsxs)(C.A,{className:"drawerLabelTitle-bDwhFt",children:[(0,n.jsxs)("div",{children:["v",i.version]}),(0,n.jsx)(l.A,{className:"drawerLabelSize-gzchzs",children:(0,m.formatSize)(s.sourceSize)})]}),key:`${i.root}${i.name}${i.version}`,children:r.getPackageRelationContentComponent({data:t,package:e})}})})]})}):null]})}),children:(0,n.jsx)(()=>a.map((e,t)=>{let r=e.target.version,l=e.target.root,i=(0,m.formatSize)(e.targetSize.sourceSize),s=e.targetSize.parsedSize?(0,m.formatSize)(e.targetSize.parsedSize):null;return(0,n.jsxs)("div",{className:D,children:[(0,n.jsx)(b.h,{style:{backgroundColor:"#fff"},title:(0,n.jsx)(W,{style:{width:V>1500?900:700},ellipsis:{tooltip:l},children:l}),description:(0,n.jsxs)("div",{className:_,children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:B,children:"Version"}),(0,n.jsxs)("div",{className:I,children:[(0,n.jsx)(c.A,{style:{fontSize:"18px"},component:O}),(0,n.jsxs)("span",{className:F,children:["v",r]})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:B,children:"Source size"}),(0,n.jsxs)("div",{className:I,children:[(0,n.jsx)(c.A,{style:{fontSize:"18px"},component:R}),(0,n.jsx)("span",{className:F,children:i})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:B,children:"Bundle size"}),(0,n.jsxs)("div",{className:I,children:[(0,n.jsx)(c.A,{style:{fontSize:"18px"},component:T}),(0,n.jsx)(A.A,{title:`The bundle size of "${u}" is ${i}, this is after bundled, concatenated module cannot get bundled size. `,children:(0,n.jsx)("span",{className:F,children:s||"CONCATENATED"})})]})]})]}),icon:(0,n.jsx)(G,{style:{position:"relative",top:"-10px"},copyable:{text:l}})}),t!==a.length-1?(0,n.jsx)(w.A,{style:{margin:"10px 0"}}):null]})}),{})}});return(0,n.jsx)(S.A,{style:{width:"100%"},defaultActiveKey:["E1001"],items:i})},q=e=>{let{data:t}=e;return t.map(e=>{let{code:t,link:r,description:l}=e,i=(0,m.useRuleIndexNavigate)(t,r);return(0,n.jsx)(b.A,{style:{background:"#fff"},description:(0,n.jsx)("div",{className:"description-h4sYv3",dangerouslySetInnerHTML:{__html:l||""}}),icon:(0,n.jsx)(d.Ay,{onClick:()=>i,type:"link",children:"more"})})})},{Text:K}=o.A,{innerWidth:Q}=window,Z=e=>{let{title:t,description:r,extra:l}=e;return(0,n.jsxs)("div",{className:z,children:[(0,n.jsxs)("div",{className:L,children:[(0,n.jsx)("div",{children:t}),(0,n.jsx)("div",{children:r})]}),(0,n.jsx)("div",{children:l})]})},J=e=>{let{data:t}=e,r=t.map(e=>{let{package:t,chunks:r}=e;return{key:`${t.name}@${t.version}`,label:(0,n.jsx)(Z,{title:(0,n.jsx)(l.A,{style:{backgroundColor:"#EAEDF1",borderRadius:"2px"},children:(0,n.jsx)("span",{className:$,children:`${t.name}@${t.version}`})}),description:"has duplicates bundled into multiple chunks."}),children:(0,n.jsx)(()=>r.map(e=>{let{chunks:t,module:r}=e;return(0,n.jsx)("div",{className:D,children:(0,n.jsx)(b.h,{style:{backgroundColor:"#fff"},title:(0,n.jsxs)(C.A,{children:[(0,n.jsx)(c.A,{style:{fontSize:"18px"},component:E.A}),(0,n.jsxs)(K,{style:{width:Q>1500?900:700},children:["Module:"," ",(0,n.jsx)(K,{style:{fontSize:12,color:"rgba(28, 31, 35, 0.6)",fontWeight:300},children:r.path})]})]}),description:(0,n.jsx)("div",{className:_,children:t.map(e=>(0,n.jsxs)("div",{style:{display:"flex"},children:[(0,n.jsx)("div",{className:B,children:"Chunk"}),(0,n.jsx)("div",{className:I,children:(0,n.jsx)("span",{className:F,children:e.name})})]}))})})})}),{})}});return(0,n.jsx)(S.A,{style:{width:"100%"},defaultActiveKey:["E1005"],items:r})},Y=e=>{let{title:t,dataSource:r,extraData:o}=e,[d,c]=(0,u.useState)("E1001"),h=[{key:"E1001",label:"Duplicate Packages",data:[]},{key:"E1002",label:"Cross Chunks Package",data:[]},{key:"E1003",label:"Loader Performance Optimization",data:[]},{key:"E1004",label:"ECMA Version Check",data:[]},{key:"E1005",label:"Default Import Check",data:[]}];r.forEach(e=>{var t;let r=null==(t=h.find(t=>t.key===e.code))?void 0:t.data;null==r||r.push(e)});let p=h.map(e=>{let t,r,s=d===e.key?{border:"1px solid #91D5FF",backgroundColor:"#E6F7FF"}:{},c=d===e.key?{color:"#1890FF"}:{};switch(e.key){case"E1001":t=(0,n.jsx)(U,{data:e.data,extraData:o});break;case"E1002":t=(0,n.jsx)(J,{data:e.data,extraData:o});break;case"E1003":case"E1005":t=(0,n.jsx)(q,{data:e.data});break;case"E1004":r=(0,n.jsx)("span",{children:"No ECMA Version Check Rules were found. Please refer to 「https://rsdoctor.rs/guide/usage/rule-config」."}),t=(0,n.jsx)(y,{data:e.data});break;default:t=null}return e.data.length||(t=(0,n.jsx)(i.A,{description:r,image:i.A.PRESENTED_IMAGE_SIMPLE})),{key:e.key,label:(0,n.jsx)(()=>(0,n.jsx)(b.A,{style:{backgroundColor:"transparent",paddingLeft:0,paddingRight:0,width:"100%"},title:(0,n.jsx)("span",{className:"labelTitle-tjSCQ_",children:e.label}),description:(0,n.jsxs)("div",{className:"labelDescription-kB74lb",children:[(0,n.jsx)("span",{children:e.data.length}),(0,n.jsx)(l.A,{style:{fontFamily:"Menlo",borderRadius:"2px",...s},children:(0,n.jsx)("span",{style:{...c},children:e.key})})]})}),{}),children:(0,n.jsx)(a.Zp,{className:"card-HNTMcZ",type:"inner",title:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.A,{style:{fontFamily:"Menlo",fontWeight:"700",fontSize:"13px",backgroundColor:"#EAEDF1",borderRadius:"2px"},children:e.key}),(0,n.jsx)("span",{children:e.label})]}),children:t})}});return(0,n.jsx)(a.Zp,{style:{width:"100%",borderRadius:"12px"},children:(0,n.jsxs)("div",{className:"container-TWzmhb",children:[(0,n.jsx)("div",{className:"title-gD67_A",children:t}),r.length?(0,n.jsx)(s.A,{onChange:c,tabBarGutter:10,type:"card",defaultActiveKey:"E1001",items:p}):(0,n.jsx)("div",{style:{minHeight:"480px",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,n.jsx)(i.A,{description:"No Bundle Alerts Data",image:i.A.PRESENTED_IMAGE_SIMPLE})})]})})}},30942(e,t,r){var n=r(65723),l=r(22155),i=r(91888),s=r(98685),a=r(7308),o=r(74579),d=r(10117),c=r(21376);(0,o.eN)({api:i.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:e=>{let{filter:t,project:r}=e,{root:i,errors:o}=r,u=(0,s.useCompileAlertsByErrors)(o),{setCompileAlertsViewMode:h,viewMode:p,setViewMode:x}=(0,s.useViewMode)(),m=t?u.filter(t):u;return(0,l.useEffect)(()=>{(0,s.hasViewModeFromStorage)()||x({compileAlerts:u.length>=5?d.nE.Group:d.nE.List},!1)},[]),(0,n.jsx)(a.J,{title:"Compile Alerts",dataSource:m,extraData:{cwd:i,getPackageRelationContentComponent:e=>(0,n.jsx)(c.rU,{body:{id:e.data.id,target:e.package.target},cwd:i})},viewMode:p.compileAlerts,setViewMode:h,cwd:i})}})},49084(e,t,r){r.d(t,{EJ:()=>S});var n=r(65723),l=r(22155),i=r(91888),s=r(66020),a=r(63079),o=r(47748),d=r(84585),c=r(58023),u=r(87655),h=r(44759),p=r(35423),x=r(40961),m=r(52416),f=r(68108),g=r(29269),j=r(27222),v=r(99128),y=r.n(v),b=r(74579),A=r(10117);function w(e){let t=0,r=0;e.forEach(e=>{"warn"===e.level?t++:r++});let l=0!==t&&0!==r?"problems":0===t?"errors":"warns";return{title:`${e.length} compiled ${l}`,detail:(0,n.jsxs)(s.A.Text,{strong:!0,style:{color:"#fff",marginBottom:0},children:[(0,n.jsx)(s.A.Text,{style:{color:"inherit",fontSize:16},children:"Compiled with"}),(0,n.jsxs)(s.A.Text,{strong:!0,style:{color:A.Q1.Red,fontSize:16},children:[" ",r," ",1===r?"error":"errors"," "]}),(0,n.jsx)(s.A.Text,{style:{color:"inherit",fontSize:16},children:"and"}),(0,n.jsxs)(s.A.Text,{strong:!0,style:{color:A.Q1.Yellow,fontSize:16},children:[" ",t," ",1===t?"warning":"warnings"]})]}),warns:t,errors:r}}r(3485);let C=e=>{let{alerts:t=[],open:r,onClose:i}=e;return t.length?(0,n.jsxs)(j.default,{visible:r,onClose:()=>i(),style:{width:"100%",height:"100%",margin:0,zIndex:1e3},closable:!1,modalRender:e=>l.cloneElement(e,{style:{background:"rgba(0, 0, 0, 0.7)",color:"#fff",height:"100%",overflow:"scroll",borderRadius:0}}),children:[(0,n.jsxs)(a.A,{justify:"space-between",align:"middle",children:[w(t).detail,(0,n.jsx)(o.Ay,{onClick:()=>i(),type:"text",style:{color:"#fff"},size:"large",icon:(0,n.jsx)(x.A,{})})]}),(0,n.jsx)(a.A,{gutter:[0,A.or.BasePadding],children:t.map(e=>(0,n.jsx)(d.A,{span:24,style:{whiteSpace:"pre-wrap",lineHeight:"16px",fontSize:14},children:(0,n.jsx)(c.A,{ghost:!0,style:{background:"#000"},defaultActiveKey:[e.id],expandIcon:e=>e.isActive?(0,n.jsx)(m.A,{style:{color:"#fff"}}):(0,n.jsx)(f.A,{style:{color:"#fff"}}),children:(0,n.jsx)(c.A.Panel,{header:(0,n.jsxs)("div",{style:{color:"#fff"},children:["warn"===e.level?(0,n.jsx)(u.A,{color:A.Q1.Yellow,children:"WARNING"}):(0,n.jsx)(u.A,{color:A.Q1.Red,children:"ERROR"}),(0,n.jsx)(y(),{children:e.description||e.title})]}),children:(0,n.jsx)("div",{style:{color:"#fff"},children:(0,n.jsx)(y(),{children:e.stack})})},e.id)})},e.id))})]}):null},S=(0,b.eN)({api:i.SDK.ServerAPI.API.GetOverlayAlerts,Component:e=>{let{alerts:t=[]}=e;if(!t.length)return null;let[r,i]=(0,l.useState)(!1);return(0,n.jsxs)("div",{className:"container-t1WME9",children:[(0,n.jsx)("div",{onClick:()=>i(!r),className:"badgeContainer-K7EgOu",children:(0,n.jsx)(p.A,{count:t.length,size:"small",children:(0,n.jsx)(g.A,{style:{fontSize:15}})})}),(0,n.jsx)(C,{alerts:t,open:r,onClose:()=>i(!1)})]})},responsePropName:"alerts",fallbackComponent:()=>null});(0,b.eN)({api:i.SDK.ServerAPI.API.GetOverlayAlerts,Component:e=>{let{alerts:t=[],defaultOpen:r=t.length>0}=e;if(!t.length)return null;let[i,s]=(0,l.useState)(r);return(0,n.jsxs)(l.Fragment,{children:[(0,n.jsx)(h.A,{banner:!0,message:l.cloneElement(w(t).detail,{style:{color:"#000"}}),icon:(0,n.jsx)(g.A,{}),action:(0,n.jsx)(o.Ay,{onClick:()=>s(!0),size:"small",children:"More"})}),(0,n.jsx)(C,{alerts:t,open:i,onClose:()=>s(!1)})]})},responsePropName:"alerts",fallbackComponent:()=>null})},35471(e,t,r){r.d(t,{Ex:()=>s});var n=r(65723),l=r(29656);r(22155);let i={default:"linear-gradient(to bottom, #3ea2ff 0%, #0072db 100%)",success:"linear-gradient(to bottom, #6cf42a 0%, #52C41A 100%)",warn:"linear-gradient(to bottom, #ffc100 0%, #f59025 100%)",error:"linear-gradient(to bottom, rgb(250 127 22), #FF4D4F 100%)"},s=e=>{let{label:t,value:r,type:s="default",tooltip:a}=e,o={height:"100%",lineHeight:"22px",width:"auto",display:"inline-block",boxSizing:"border-box",padding:"0 6px",color:"#fff",fontSize:12,textAlign:"center",verticalAlign:"middle"},d=(0,n.jsxs)("div",{style:{height:22,margin:0,padding:0,boxSizing:"border-box",borderRadius:4,fontSize:0,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",display:"flex",justifyContent:"flex-start",alignItems:"center"},children:[(0,n.jsx)("div",{style:{...o,borderTopLeftRadius:4,borderBottomLeftRadius:4,background:"linear-gradient(to bottom, #525252a3 0%, #1F1F1F 100%)"},children:t}),(0,n.jsx)("div",{style:{...o,borderTopRightRadius:4,borderBottomRightRadius:4,overflow:"hidden",textOverflow:"ellipsis",background:i[s]||i.default},children:r})]});return a?(0,n.jsx)(l.A,{title:!0===a?r:a,placement:"topLeft",children:d}):d}},67331(e,t,r){r.d(t,{QE:()=>m,aq:()=>g,vh:()=>x});var n=r(65723),l=r(91888),i=r(66020),s=r(66287),a=r(29656),o=r(85768),d=r(40799),c=r(22155),u=r(98685),h=r(10117),p=r(25800);let x=e=>{let{baseline:t,current:r,...l}=e,i=d.TS.diffSize(t,r);return(0,n.jsx)(m,{...l,...i})},m=e=>{let{percent:t,state:r,fontSize:s=14}=e,a=+t.toFixed(2);if(a>0){let e=`${a}`;if(r===l.Client.RsdoctorClientDiffState.Up)return(0,n.jsxs)(i.A.Text,{strong:!0,style:{fontSize:s,color:h.Q1.Red},children:["+",e,"%"]});if(r===l.Client.RsdoctorClientDiffState.Down)return(0,n.jsxs)(i.A.Text,{strong:!0,style:{fontSize:s,color:h.Q1.Green},children:["-",e,"%"]})}return null},f=e=>{let{data:t,formatter:r}=e,{percent:l,state:o,size:d}=t,{baseline:c,current:h}=d,p=r?r(c,"baseline"):(0,u.formatSize)(c),x=r?r(h,"current"):(0,u.formatSize)(h);return(0,n.jsx)(s.A,{align:"start",children:(0,n.jsxs)(s.A,{direction:"vertical",style:{textAlign:"left"},children:[(0,n.jsxs)(s.A,{children:[(0,n.jsx)(i.A.Text,{style:{fontSize:10,color:"inherit"},keyboard:!0,children:"Current"}),(0,n.jsx)(a.A,{title:"number"==typeof x||"string"==typeof x?`Value of Current is ${x}`:void 0,children:(0,n.jsx)(i.A.Text,{style:{fontSize:16,color:"inherit"},strong:!0,children:x})}),(0,n.jsx)(m,{percent:l,state:o})]}),(0,n.jsxs)(s.A,{children:[(0,n.jsx)(i.A.Text,{style:{fontSize:10,color:"inherit"},keyboard:!0,children:"Baseline"}),(0,n.jsx)(a.A,{title:"number"==typeof p||"string"==typeof p?`Value of Baseline is ${p}`:void 0,children:(0,n.jsx)(i.A.Text,{style:{fontSize:14},type:"secondary",children:p})})]})]})})},g=e=>{let{titles:t,datas:r,formatter:l,showPercentInTitle:a}=e,[d,u]=(0,c.useState)(0);return(0,n.jsx)(p.j,{title:t.length>1?(0,n.jsx)(o.A,{defaultValue:t[d],options:a?t.map((e,t)=>{let l=r[t];return{label:(0,n.jsxs)(s.A,{children:[(0,n.jsx)(i.A.Text,{children:e}),(0,n.jsx)(m,{percent:l.percent,state:l.state})]}),value:e}}):t,onChange:e=>{u(t.indexOf(e))},size:"small",style:{transition:"transform 0.3s ease"},value:t[d]||t[0]}):t[d],value:(0,n.jsx)(f,{data:r[d],formatter:l}),statisticProps:{style:{textAlign:"left"}}})}},30786(e,t,r){r.d(t,{Zp:()=>d});var n=r(65723),l=r(22155),i=r(61986),s=r(37324),a=r(94042),o=r(66287);r(67331);let d=e=>{let{collapsable:t=!1,children:r,title:d,dividerStyle:c,defaultCollapsed:u=!1,...h}=e,[p,x]=(0,l.useState)(u);return d&&t?(0,n.jsx)(a.A,{style:{borderRadius:"12px"},...h,title:(0,n.jsxs)(o.A,{style:{fontSize:"inherit"},children:[(0,n.jsx)("div",{style:{cursor:"pointer"},onClick:()=>x(!p),children:p?(0,n.jsx)(i.A,{}):(0,n.jsx)(s.A,{})}),d]}),children:p?null:r}):(0,n.jsx)(a.A,{style:{borderRadius:"12px"},title:d,...h,children:r})}},25800(e,t,r){r.d(t,{j:()=>i});var n=r(65723),l=r(26032);let i=e=>{let{title:t,value:r,statisticProps:i,boxProps:s}=e;return(0,n.jsx)("div",{className:"statistic-card",...s,children:(0,n.jsx)(l.A,{title:(0,n.jsx)("div",{className:"statistic-card-title",children:t}),valueRender:()=>r,valueStyle:{fontSize:24},...i})})}},53878(e,t,r){r.d(t,{n:()=>j});var n=r(65723),l=r(22155),i=r(62188),s=r(44491),a=r(26658),o=r(43653),d=r(33840),c=r(61223),u=r(18814),h=r.n(u),p=r(30484),x=r(57568),m=r(36473),f=r(36443),g=r(30029);let j=(0,l.memo)(e=>{let{loaderData:t,pluginsData:r,formatterFn:u,chartType:j=x.wx.Normal,exts:v=null}=e,y=[],b=[],[A,w]=(0,l.useState)({});return m.Y([s.a,a.a,o.a,d.a,c.a]),(0,l.useEffect)(()=>{if(!t)return;let e=[];t.forEach(t=>{e.unshift(t.n+" total"),e.unshift(t.n)}),t.forEach(function(t,r){var n;if(y.push({name:t.n+" total",value:[e.indexOf(t.n+" total"),t.s,t.e,t.e-t.s],itemStyle:{normal:{color:x.dK[Math.floor(27*Math.random())],opacity:.25}}}),null==t?void 0:t.c)for(let r=0;r<(null==t||null==(n=t.c)?void 0:n.length);r++)y.push({name:t.n,value:[e.indexOf(t.n),t.c[r].s,t.c[r].e,t.c[r].e-t.c[r].s],itemStyle:{normal:{color:x.dK[Math.floor(27*Math.random())],opacity:.25}},ext:t.c[r].ext})}),b=e.map((e,t)=>t%2!=0?e.replace(" total",""):"")},[t]),(0,l.useEffect)(()=>{if(!r)return;let e=(0,p.$)(r,e=>e.pid);Object.keys(e).reverse().forEach(function(t,r){e[t].forEach((e,t)=>{y.push({name:String(e.pid),value:[r,e.args.s,e.args.e,e.args.e-e.args.s],itemStyle:{normal:{color:x.dK[Math.floor(27*Math.random())],opacity:.25}},ext:e})}),b.push(String(t.charAt(0).toUpperCase()+t.slice(1)))})},[r]),(0,l.useEffect)(()=>{w({tooltip:{formatter:e=>u(e)},dataZoom:[{type:"slider",filterMode:"weakFilter",showDataShadow:!1,top:-10},{type:"inside",filterMode:"weakFilter"}],grid:{top:10,left:0,bottom:10,right:0,height:b.length>(j===x.wx.Loader?6:3)?"auto":60*b.length,containLabel:!0},xAxis:{interval:(null==v?void 0:v.endTimestamp)&&(null==v?void 0:v.startTimestamp)?Math.floor((v.endTimestamp-v.startTimestamp)/8):null,position:"top",splitLine:{show:!0},scale:!0,axisLine:{show:!1},axisLabel:{formatter:e=>h()(e).format("HH:mm:ss:SSS")}},yAxis:{type:"category",splitLine:{show:!1},axisLabel:{inside:!0,lineHeight:20,width:100,fontSize:12,color:"#000",verticalAlign:"bottom"},axisLine:{show:!1},axisTick:{show:!1},data:b},series:[{type:"custom",renderItem:function(e,t){let r=t.value(0),n=t.coord([t.value(1),r]),l=t.coord([t.value(2),r]),i=.3*t.size([0,1])[1],s=f.clipRectByRect({x:n[0],y:j===x.wx.Loader?n[1]-(r%2!=0?0:2*i):n[1],width:l[0]-n[0]||5,height:i},{x:e.coordSys.x,y:e.coordSys.y,width:e.coordSys.width,height:e.coordSys.height});return s&&{type:"rect",transition:["shape"],shape:s,style:t.style(),enterFrom:{style:{opacity:0},x:0}}},itemStyle:{opacity:.8},encode:{x:[1,2],y:0},data:y}]})},[t,r,v]),(0,n.jsx)(i.A,{option:A,echarts:g,style:{width:"100%",minHeight:j===x.wx.Loader?"500px":j===x.wx.Minify?"100px":"200px",maxHeight:j===x.wx.Minify?"100px":"1000px",border:"1px solid #eee",borderRadius:"10px"}})})},76627(e,t,r){r.d(t,{z:()=>m});var n=r(65723),l=r(22155),i=r(30484),s=r(87417);r(27037);var a=r(18679),o=r(47001),d=r(33498),c=r(53878),u=r(54132),h=r(57568);let p=0,x=0,m=e=>{let{loaders:t,cwd:r}=e,{isDark:m}=(0,a.DP)(),f=(0,l.useRef)(null),[g,j]=(0,l.useState)([]),v=(0,u.Wy)(g,200),y=(0,l.useMemo)(()=>(0,i.$)(t,e=>e.loader),[t]),b=(0,l.useCallback)(e=>{let{name:n,data:l}=e,i=n.replace(" total","");return(null==l?void 0:l.ext)?(0,u.Bq)(l.ext):(0,u.iv)(i,t,r)},[]);return(0,l.useEffect)(()=>{j(Object.keys(y).map(e=>{let t=y[e]||[],{start:n,end:l}=(0,o.xr)(t);return(n<p||0===p)&&(p=n),(l>x||0===x)&&(x=l),{p:e,n:e,s:n,e:l,c:t.map(t=>({p:e,n:(0,d.Zb)(t.resource,r),s:t.startAt,e:t.endAt,ext:t}))}}))},[y]),(0,n.jsx)(n.Fragment,{children:(null==g?void 0:g.length)?(0,n.jsx)("div",{className:["loader-chart-container",m?"loader-chart-container_dark":""].join(" ").trim(),ref:f,style:{width:"100%"},children:(0,n.jsx)(c.n,{loaderData:v,formatterFn:b,chartType:h.wx.Loader,exts:{startTimestamp:p,endTimestamp:x}})}):(0,n.jsx)(s.A,{})})}},203(e,t,r){r.d(t,{A:()=>n});let n={title:"title-BZ9xk1"}},53289(e,t,r){r.d(t,{h:()=>b,C:()=>y});var n=r(65723);r(22155);var l=r(19143),i=r(66287),s=r(68108),a=r(64060),o=r(61858),d=r(76681),c=r(17848);let u=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,n.jsx)("path",{fill:"#FAAD14",d:"M11.409 3.51 8.046.146A.5.5 0 0 0 7.693 0H1.056a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.147-.355M7.462 1.152l2.94 2.94h-2.94zm2.969 11.722H1.68V1.125h4.718V4.5a.656.656 0 0 0 .657.656h3.375z"}),(0,n.jsx)("path",{fill:"#FAAD14",d:"M6.927 9.651h.888a1.6 1.6 0 0 1-.24.775q-.211.339-.592.528-.377.19-.908.19a1.9 1.9 0 0 1-.745-.142 1.6 1.6 0 0 1-.564-.416 1.9 1.9 0 0 1-.354-.653 2.8 2.8 0 0 1-.121-.858v-.3q0-.474.124-.858.128-.386.362-.656.238-.27.567-.415.33-.146.737-.146.54 0 .911.196.375.195.58.54.206.345.249.784H6.93a1.15 1.15 0 0 0-.104-.442.6.6 0 0 0-.27-.276 1 1 0 0 0-.475-.095.86.86 0 0 0-.39.083.7.7 0 0 0-.278.252 1.3 1.3 0 0 0-.17.428q-.053.255-.053.6v.305q0 .335.05.591.051.251.155.428a.7.7 0 0 0 .273.26.9.9 0 0 0 .407.087q.28 0 .46-.09a.6.6 0 0 0 .276-.263q.098-.176.116-.437"}),(0,n.jsx)("path",{fill:"#FFF1B8",fillRule:"evenodd",d:"M6.4 1.125V4.5a.656.656 0 0 0 .656.656h3.375v7.719H1.68V1.125zm1.415 8.526h-.888q-.017.261-.116.437a.6.6 0 0 1-.276.264q-.18.09-.46.089a.9.9 0 0 1-.407-.086.7.7 0 0 1-.273-.261q-.104-.176-.154-.428a3 3 0 0 1-.05-.59v-.307q0-.345.053-.6.056-.258.169-.427a.7.7 0 0 1 .279-.252.86.86 0 0 1 .389-.083q.297 0 .475.095a.6.6 0 0 1 .27.276q.09.18.104.442h.89a1.8 1.8 0 0 0-.249-.784q-.205-.345-.579-.54-.37-.195-.911-.196-.407 0-.737.146-.33.145-.567.415-.234.27-.362.656a2.8 2.8 0 0 0-.124.858v.3q0 .476.121.858.122.383.354.653.234.27.564.416.33.143.745.143.531 0 .908-.19.38-.19.591-.529a1.6 1.6 0 0 0 .24-.775",clipRule:"evenodd"})]}),h=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,n.jsx)("path",{fill:"#722ED1",d:"M6.076 7.58a.356.356 0 0 1 .646.299l-1.576 3.414a.356.356 0 0 1-.646-.298zM7.198 8.135a.356.356 0 0 0 0 .503l.8.799-.8.8a.356.356 0 1 0 .503.502l1.05-1.05a.356.356 0 0 0 0-.503l-1.05-1.05a.356.356 0 0 0-.503 0M4.024 8.135a.356.356 0 0 1 0 .503l-.799.799.8.8a.356.356 0 1 1-.504.502l-1.05-1.05a.356.356 0 0 1 0-.503l1.05-1.05a.356.356 0 0 1 .503 0"}),(0,n.jsx)("path",{fill:"#EFDBFF",fillRule:"evenodd",d:"M5.955 1.125V4.5a.656.656 0 0 0 .656.656h3.375v7.719h-8.75V1.125zm.121 6.456a.356.356 0 1 1 .646.298l-1.576 3.414a.356.356 0 1 1-.646-.298zm1.122.554a.356.356 0 0 0 0 .503l.8.799-.8.8a.356.356 0 1 0 .503.502l1.05-1.05a.356.356 0 0 0 0-.503l-1.05-1.05a.356.356 0 0 0-.503 0m-3.174.503a.356.356 0 1 0-.503-.503l-1.05 1.05a.356.356 0 0 0 0 .503l1.05 1.05a.355.355 0 1 0 .503-.502l-.799-.799z",clipRule:"evenodd"}),(0,n.jsx)("path",{fill:"#722ED1",d:"M10.964 3.51 7.602.146A.5.5 0 0 0 7.249 0H.61a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.147-.355M7.017 1.152l2.941 2.94h-2.94zm2.97 11.722h-8.75V1.125h4.718V4.5a.656.656 0 0 0 .656.656h3.375z"})]}),p=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,n.jsx)("path",{fill:"#E6F7FF",d:"M6.733 4.5V1.125h-4.72v11.75h8.75V5.156H7.39a.656.656 0 0 1-.656-.656m-2.094.781a.625.625 0 1 1 0 1.25.625.625 0 0 1 0-1.25m4.625 4.594H3.515a.125.125 0 0 1-.098-.202l1.56-1.987a.125.125 0 0 1 .196 0l.642.819 1.216-1.55a.126.126 0 0 1 .199 0l2.132 2.718a.125.125 0 0 1-.098.202"}),(0,n.jsx)("path",{fill:"#1890FF",d:"M11.742 3.51 8.38.146A.5.5 0 0 0 8.026 0H1.39a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.147-.355M7.795 1.152l2.94 2.94h-2.94zm2.969 11.722h-8.75V1.125h4.719V4.5a.656.656 0 0 0 .656.656h3.375z"}),(0,n.jsx)("path",{fill:"#1890FF",d:"m7.031 6.955-1.215 1.55-.643-.82a.125.125 0 0 0-.196 0l-1.56 1.988a.125.125 0 0 0 .099.202h5.748c.105 0 .163-.12.098-.202L7.23 6.955a.127.127 0 0 0-.199 0M4.014 5.906a.625.625 0 1 0 1.25 0 .625.625 0 0 0-1.25 0"})]}),x=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,n.jsx)("path",{fill:"#E6F7FF",fillRule:"evenodd",d:"M6.177 1.125V4.5a.656.656 0 0 0 .656.656h3.375v7.719h-8.75V1.125zm1.806 8.7q.03.081.03.183a.411.411 0 0 1-.26.388.8.8 0 0 1-.333.057q-.166 0-.307-.034a.7.7 0 0 1-.24-.11.5.5 0 0 1-.153-.197.7.7 0 0 1-.055-.3H5.88q0 .321.133.555.132.234.354.386.225.15.497.226.275.073.555.073.313 0 .565-.07.254-.07.435-.206.183-.135.279-.33a1 1 0 0 0 .096-.443q0-.235-.08-.42a1 1 0 0 0-.24-.33 1.7 1.7 0 0 0-.396-.263 3.5 3.5 0 0 0-.544-.211 3 3 0 0 1-.326-.118 1.3 1.3 0 0 1-.237-.127.5.5 0 0 1-.146-.146.33.33 0 0 1-.047-.174q0-.129.068-.23a.45.45 0 0 1 .203-.164.8.8 0 0 1 .339-.062q.21 0 .349.073a.48.48 0 0 1 .208.2q.07.125.07.292h.777q0-.339-.175-.602a1.17 1.17 0 0 0-.484-.414 1.7 1.7 0 0 0-.732-.15q-.307 0-.565.075-.255.075-.443.216a1 1 0 0 0-.292.333.9.9 0 0 0-.104.43q0 .244.1.43.1.184.275.325.178.138.406.242.232.104.49.188.232.072.378.14a1 1 0 0 1 .226.138q.08.068.11.152M4.595 7.209v2.628q0 .195-.063.33a.46.46 0 0 1-.17.206.47.47 0 0 1-.257.07.6.6 0 0 1-.263-.051.36.36 0 0 1-.17-.175.8.8 0 0 1-.057-.33h-.783q0 .398.164.658.164.258.45.383t.659.125q.36 0 .646-.146.289-.146.456-.416.166-.274.166-.654V7.208z",clipRule:"evenodd"}),(0,n.jsx)("path",{fill:"#1890FF",d:"M8.014 10.008a.5.5 0 0 0-.031-.182.34.34 0 0 0-.11-.152 1 1 0 0 0-.226-.138 3 3 0 0 0-.378-.14 5 5 0 0 1-.49-.188 2 2 0 0 1-.406-.242 1.1 1.1 0 0 1-.276-.325.9.9 0 0 1-.099-.43q0-.237.104-.43a1 1 0 0 1 .292-.333q.188-.141.443-.216.258-.075.565-.076.42 0 .732.151.312.152.484.414.175.264.175.602h-.776a.6.6 0 0 0-.07-.292.48.48 0 0 0-.21-.2.74.74 0 0 0-.348-.073.8.8 0 0 0-.339.062.45.45 0 0 0-.203.164.4.4 0 0 0-.067.23q0 .096.046.174.05.078.146.146t.237.127q.14.06.326.118.31.093.544.21.237.118.396.264a1 1 0 0 1 .24.33q.08.185.08.42a1 1 0 0 1-.096.442.9.9 0 0 1-.279.331q-.181.135-.435.206a2.1 2.1 0 0 1-.565.07q-.28 0-.555-.073a1.7 1.7 0 0 1-.497-.226q-.222-.152-.354-.386a1.1 1.1 0 0 1-.133-.555h.784q0 .178.055.3a.5.5 0 0 0 .153.198q.102.075.24.11.14.033.307.033.204 0 .333-.057a.41.41 0 0 0 .26-.388M4.595 9.836V7.208h.778v2.628q0 .38-.166.654-.167.27-.456.416a1.4 1.4 0 0 1-.646.146q-.372 0-.659-.125a1 1 0 0 1-.45-.383q-.164-.26-.164-.659h.783q0 .21.058.331a.36.36 0 0 0 .169.175q.109.052.263.052a.47.47 0 0 0 .258-.07.46.46 0 0 0 .17-.206q.061-.135.062-.331"}),(0,n.jsx)("path",{fill:"#1890FF",d:"M11.186 3.51 7.824.146A.5.5 0 0 0 7.47 0H.833a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.147-.355M7.24 1.152l2.94 2.94H7.24zm2.968 11.722h-8.75V1.125h4.72V4.5a.656.656 0 0 0 .655.656h3.375z"})]}),m=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,n.jsx)("path",{fill:"#F0F0F0",d:"M6.288 4.5V1.125H1.57v11.75h8.75V5.156H6.944a.656.656 0 0 1-.656-.656m-.344 6.625a.5.5 0 1 1 0-.999.5.5 0 0 1 0 .999m1.72-3.569c.01.702-.465 1.32-1.162 1.546a.22.22 0 0 0-.151.207V9.5c0 .086-.07.156-.157.156h-.5a.157.157 0 0 1-.156-.156V9a.65.65 0 0 1 .542-.627c.443-.057.77-.4.77-.795 0-.439-.402-.805-.906-.805-.503 0-.906.366-.906.807a.15.15 0 0 1-.153.147H4.38a.15.15 0 0 1-.153-.149c0-.897.783-1.62 1.742-1.61.926.013 1.683.721 1.695 1.588"}),(0,n.jsx)("path",{fill:"#8C8C8C",d:"M11.298 3.51 7.935.148A.5.5 0 0 0 7.58 0H.944a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.146-.353M7.35 1.154l2.94 2.94h-2.94zm2.968 11.722H1.57V1.125h4.72V4.5a.656.656 0 0 0 .655.656h3.375z"}),(0,n.jsx)("path",{fill:"#8C8C8C",d:"M5.444 10.625a.5.5 0 1 0 1 0 .5.5 0 0 0-1 0M4.226 7.578a.15.15 0 0 0 .153.149h.506a.15.15 0 0 0 .153-.147c0-.44.403-.807.906-.807.504 0 .907.366.907.805 0 .395-.328.738-.77.795A.65.65 0 0 0 5.537 9v.5c0 .086.07.156.156.156h.5c.086 0 .157-.07.157-.156v-.19a.22.22 0 0 1 .151-.208c.697-.225 1.172-.844 1.161-1.546-.012-.867-.769-1.575-1.695-1.587-.96-.011-1.742.712-1.742 1.61"})]});var f=r(98685),g=r(13078),j=r.n(g);let{useToken:v}=l.A;function y(e){let t=function(e){switch(j().extname(e).slice(1).toLowerCase()){case"js":case"jsx":case"ts":case"mjs":case"cjs":case"mts":case"cts":return(0,n.jsx)(x,{});case"tsx":default:return(0,n.jsx)(m,{});case"css":case"scss":case"sass":case"less":case"styl":case"stylus":return(0,n.jsx)(u,{});case"html":return(0,n.jsx)(h,{});case"png":case"jpg":case"jpeg":case"gif":case"svg":case"bmp":case"webp":case"ico":case"apng":case"avif":case"tif":case"tiff":case"jfif":case"pjpeg":case"pjp":return(0,n.jsx)(p,{})}}(e);return(0,n.jsx)("div",{className:"file-icon",children:t})}let b=e=>{let{isDark:t}=(0,f.useTheme)(),{token:r}=v(),l=t?r.colorWhite:r.colorText,u={fontSize:r.fontSize};return(0,n.jsx)(c.default,{checkable:!1,selectable:!0,switcherIcon:e=>{let{data:t,expanded:r}=e;return(null==t?void 0:t.children)?(0,n.jsxs)(i.A,{style:{color:l},children:[(0,n.jsx)(s.A,{twoToneColor:l,className:`file-tree-switcher-arrow ${r?"file-tree-switcher-arrow-expand":""}`,style:u}),r?(0,n.jsx)(a.A,{}):(0,n.jsx)(o.A,{})]}):(null==t?void 0:t.key)&&"string"==typeof t.key?y(t.key):(0,n.jsx)(d.A,{})},expandAction:"click",...e})}},94175(e,t,r){r.d(t,{E:()=>o});var n=r(65723),l=r(22155),i=r(32354),s=r(47748),a=r(66020);let o=e=>{let t,{icon:r,label:o,labelStyle:d={},placeholder:c,onChange:u,style:h,className:p,width:x,delay:m=300}=e,[f,g]=(0,l.useState)(""),j={width:120,...d},v=(0,l.useRef)(null);return(0,l.useEffect)(()=>{u(f)},[f]),(0,n.jsxs)(i.A.Group,{compact:!0,style:h,className:p,children:[o||r?(0,n.jsxs)(s.Ay,{style:j,onClick:()=>{v&&v.current&&v.current.focus()},children:[r||null,(0,n.jsx)(a.A.Text,{children:o})]}):null,(0,n.jsx)(i.A,{ref:v,allowClear:!0,defaultValue:f,style:{width:x?x-120:250},placeholder:c,onChange:e=>{t&&clearTimeout(t);let r=e.target.value.trim();t=setTimeout(()=>{g(r)},m)}})]})}},76385(e,t,r){r.d(t,{A:()=>n});let n={text:"text-QI6k9S"}},70972(e,t,r){r.d(t,{P:()=>V});var n=r(65723),l=r(22155),i=r(42617),s=r(16753),a=r(10117),o=r(90982),d=r(63079),c=r(84585),u=r(5515),h=r(98685),p=r(78363),x=r(60503),m=r(66287),f=r(66020),g=r(43995),j=r(85817),v=r(11728);let y=()=>{let[e,t]=(0,l.useState)(""),[r,i]=(0,l.useState)([]);return((0,l.useEffect)(()=>{(0,h.fetchManifest)().then(e=>{let{name:r,series:n}=e;r&&t(r),n&&n.length>0&&i(n)})},[]),e.length<=0||r.length<=0)?(0,n.jsx)(n.Fragment,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.A,{type:"vertical",style:{margin:"0 24px"}}),(0,n.jsxs)(m.A,{children:[(0,n.jsx)(v.A,{style:{fontSize:"18px"},component:j.A}),(0,n.jsx)(f.A,{children:"Compiler"}),(0,n.jsx)(g.A,{className:"builder-selector",defaultValue:e,bordered:!1,style:{minWidth:100},onChange:e=>{let t=r.find(t=>t.name===e);t&&(t.origin?location.href=(0,h.changeOrigin)(t.origin):console.error("No RsdoctorManifestSeriesData.origin"))},children:r.map((e,t)=>(0,n.jsx)(g.A.Option,{value:e.name,className:"builder-selector-option-item",children:e.name},t))})]})]})};var b=r(64904),A=r(5198),w=r(5991),C=r(86874),S=r(60634),M=r(91888),k=r(36903),N=r(41346),P=r(45554),T=r(74579);let R=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:12,fill:"none",viewBox:"0 0 13 12",...e,children:[(0,n.jsx)("rect",{width:12,height:9.333,x:.396,y:.167,fill:"#0079FF",rx:1}),(0,n.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M3.563 3.5c.276 0 .5.214.5.478v3.044a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478V3.978a.49.49 0 0 1 .5-.478M6.396 1.833c.276 0 .5.214.5.479v4.71a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478v-4.71a.49.49 0 0 1 .5-.479M9.23 4.833c.275 0 .5.214.5.479v1.71a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478v-1.71a.49.49 0 0 1 .5-.479",clipRule:"evenodd"}),(0,n.jsx)("rect",{width:6,height:1.333,x:3.396,y:10.5,fill:"#0079FF",fillOpacity:.5,rx:.667})]}),E=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:12,fill:"none",viewBox:"0 0 13 12",...e,children:[(0,n.jsx)("rect",{width:12,height:9.333,x:.396,y:.167,fill:"#0079FF",rx:1}),(0,n.jsx)("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",d:"M4.023 6.212 2.676 5.014l1.347-1.199M8.752 6.212l1.347-1.198-1.347-1.199M5.742 7.014l1.362-4"}),(0,n.jsx)("rect",{width:6,height:1.333,x:3.396,y:10.5,fill:"#0079FF",fillOpacity:.5,rx:.667})]}),O=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,n.jsx)("path",{fill:"#0079FF",fillRule:"evenodd",d:"M6.329.788A1 1 0 0 0 5.35.8L.466 3.62l5.36 2.83 5.327-3.044zm-.993 12.777V7.322L.063 4.54v5.404a1 1 0 0 0 .5.866z",clipRule:"evenodd"}),(0,n.jsx)("path",{fill:"#0079FF",fillOpacity:.5,fillRule:"evenodd",d:"M5.354.8H5.35L.546 3.576l.017-.01L5.336.81zm-.018 12.765V7.322L.063 4.54l5.273 2.783zm1-6.254 5.265-3.009q.009.064.009.13v5.511a1 1 0 0 1-.5.866l-4.774 2.756z",clipRule:"evenodd"})]});var z=r(84475);let L="Compile Analysis",D={overall:(0,n.jsx)(e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:12,fill:"none",viewBox:"0 0 13 12",...e,children:[(0,n.jsx)("rect",{width:12,height:9.333,x:.615,y:.167,fill:"#5E6673",rx:1}),(0,n.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M3.781 3.5c.277 0 .5.214.5.478v3.044a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478V3.978a.49.49 0 0 1 .5-.478M6.615 1.833c.276 0 .5.214.5.479v4.71a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478v-4.71a.49.49 0 0 1 .5-.479M9.448 4.833c.276 0 .5.214.5.479v1.71a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478v-1.71a.49.49 0 0 1 .5-.479",clipRule:"evenodd"}),(0,n.jsx)("rect",{width:6,height:1.333,x:3.615,y:10.5,fill:"#5E6673",fillOpacity:.5,rx:.667})]}),{}),webpack:(0,n.jsx)(e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:12,fill:"none",viewBox:"0 0 13 12",...e,children:[(0,n.jsx)("rect",{width:12,height:9.333,x:.615,y:.167,fill:"#5E6673",rx:1}),(0,n.jsx)("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",d:"M4.241 6.212 2.895 5.014 4.24 3.815M8.97 6.212l1.347-1.198-1.346-1.199M5.96 7.014l1.363-4"}),(0,n.jsx)("rect",{width:6,height:1.333,x:3.615,y:10.5,fill:"#5E6673",fillOpacity:.5,rx:.667})]}),{}),bundle:(0,n.jsx)(e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,n.jsx)("path",{fill:"#5E6673",fillRule:"evenodd",d:"M6.44.672a1 1 0 0 0-.977.013L.578 3.505l5.36 2.83 5.327-3.044zm-.992 12.777V7.206L.175 4.423v5.404a1 1 0 0 0 .5.866z",clipRule:"evenodd"}),(0,n.jsx)("path",{fill:"#5E6673",fillOpacity:.5,fillRule:"evenodd",d:"m5.466.683-.003.002L.658 3.459l.017-.01L5.448.693zM5.448 13.45V7.206L.175 4.423l5.273 2.783zm1-6.254 5.265-3.009q.009.064.009.13v5.511a1 1 0 0 1-.5.866L6.448 13.45z",clipRule:"evenodd"})]}),{})},_=(0,T.eN)({api:M.SDK.ServerAPI.API.GetClientRoutes,responsePropName:"routes",Component:e=>{let{t}=(0,h.useI18n)(),{pathname:r}=(0,N.zy)(),i=(0,N.Zp)(),[s,o]=(0,l.useState)(D),{routes:d}=e,c=(0,h.getEnableRoutesFromUrlQuery)(),u=d&&d.length>0?d:c||[];(0,l.useEffect)(()=>{r.includes("webpack")?o({...D,webpack:(0,n.jsx)(E,{})}):r.includes("overall")||"/"===r?o({...D,overall:(0,n.jsx)(R,{})}):r.includes("bundle")&&o({...D,bundle:(0,n.jsx)(O,{})})},[r]);let p={color:"rgba(96, 102, 114)"},x=[];u.includes(M.Manifest.RsdoctorManifestClientRoutes.Overall)&&x.push({label:t(P.U),key:P.w,icon:s.overall,children:[],onTitleClick(e){i(e.key)}}),(0,h.hasCompile)(u)&&x.push({label:t(L),key:L,icon:s.webpack,children:[u.includes(M.Manifest.RsdoctorManifestClientRoutes.WebpackLoaders)&&{label:t(z.pI.UU),key:z.pI.wE,icon:(0,n.jsx)(b.A,{style:p})},u.includes(M.Manifest.RsdoctorManifestClientRoutes.WebpackLoaders)&&{label:t(z.hK.UU),key:z.hK.wE,icon:(0,n.jsx)(A.A,{style:p})},u.includes(M.Manifest.RsdoctorManifestClientRoutes.ModuleResolve)&&{label:t(z.dn.UU),key:z.dn.wE,icon:(0,n.jsx)(w.A,{style:p})},u.includes(M.Manifest.RsdoctorManifestClientRoutes.WebpackPlugins)&&{label:t(z.FO.UU),key:z.FO.wE,icon:(0,n.jsx)(C.A,{style:p})}].filter(e=>!!e)}),(0,h.hasBundle)(u)&&x.push({label:t(z._y.UU),key:z._y.UU,icon:s.bundle,children:[],onTitleClick(){i(z._y.wE)}});let m=(0,n.jsx)(k.A,{items:x,mode:"horizontal",onClick:e=>{e.keyPath.includes("builder-switcher")||i(e.key)},disabledOverflow:!0,overflowedIndicator:(0,n.jsx)(S.A,{}),style:{height:a.or.NavBarHeight,lineHeight:`${a.or.NavBarHeight}px`,minWidth:0,justifyContent:"flex-end",...e.style},selectedKeys:["/"===r?P.w:r]},u.join(""));return(0,n.jsx)("div",{style:{marginLeft:"30px"},children:m})},fallbackComponent:()=>null,showSkeleton:!1}),B=e=>{let{enableRoutes:t}=e,{i18n:r}=(0,h.useI18n)(),l=(0,N.Zp)(),{isLight:s}=(0,h.useTheme)(),x=[{value:a.TM.Cn,label:"中文"},{value:a.TM.En,label:"English"}];return(0,n.jsx)(i.A.Header,{style:{height:a.or.NavBarHeight,padding:0,paddingLeft:a.or.BasePadding,paddingRight:a.or.BasePadding,position:"fixed",zIndex:999,width:"100%",backgroundColor:s?"#fff":"#141414",transition:"none"},children:(0,n.jsxs)(d.A,{justify:"space-between",align:"middle",style:{height:a.or.NavBarHeight},wrap:!1,children:[(0,n.jsx)(c.A,{style:{height:a.or.NavBarHeight,lineHeight:`${a.or.NavBarHeight+2}px`},children:(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",height:"100%"},children:[(0,n.jsx)("img",{src:"https://assets.rspack.rs/rsdoctor/rsdoctor-title-logo.png",className:"rsdoctor-logo",alt:"logo",onClick:()=>{location.hash.includes(M.Client.RsdoctorClientRoutes.Uploader)&&location.pathname.includes("/preview")?location.href="http://rsdoctor.rs":l(M.Client.RsdoctorClientRoutes.Home)}}),(0,n.jsx)(y,{})]})}),(0,n.jsx)(_,{style:{transition:"none"}},t?JSON.stringify(t):"default"),(0,n.jsx)(c.A,{flex:1,children:(0,n.jsxs)(d.A,{align:"middle",justify:"end",style:{height:a.or.NavBarHeight},wrap:!1,gutter:[a.or.BasePadding/3,0],children:[(0,n.jsx)(c.A,{children:(0,n.jsx)(p.EJ,{})}),(0,n.jsx)(c.A,{children:(0,n.jsx)(u.A,{overlayStyle:{zIndex:1e3},menu:{items:x.map(e=>({label:e.label,key:e.value,onClick(){r.changeLanguage(e.value)}})),selectedKeys:[r.language]},children:(0,n.jsx)(o.A,{className:"header-icon",style:{display:"inline-block",fontSize:20,textAlign:"center",verticalAlign:"middle",cursor:"pointer",width:30,transition:"all 0.3s ease"}})})})]})})]})})};var I=r(98184);let F=(0,T.eN)({api:M.SDK.ServerAPI.APIExtends.GetCompileProgress,responsePropName:"progress",Component:e=>{let{progress:t}=e;if(!t)return null;let{percentage:r=1,message:l}=t;if(r>=1)return null;let i=+(100*r).toFixed(1);return(0,n.jsx)(d.A,{wrap:!0,style:{width:"100%",position:"fixed",top:a.or.NavBarHeight,left:1,zIndex:99},children:(0,n.jsx)(c.A,{span:Math.min(Math.floor(24*r),24),children:(0,n.jsx)(I.A,{percent:100,status:"active",size:"small",format:()=>(0,n.jsx)(f.A.Text,{style:{fontSize:12},type:"secondary",children:`${i}% ${l}`})})})})},fallbackComponent:()=>null,showSkeleton:!1});var $=r(17400),G=r(99008);let W=e=>{let{name:t}=e;return(0,l.useEffect)(()=>{t?document.title=`Rsdoctor - ${t}`:document.title="Rsdoctor"},[t]),null},V=e=>{let t=(0,h.useLocale)(),{i18n:r}=(0,h.useI18n)(),{children:o}=e,d=(0,h.useUrlQuery)(),[c,u]=(0,l.useState)(()=>(0,h.getEnableRoutesFromUrlQuery)()||void 0);(0,l.useEffect)(()=>{let e=t;if(!(0,h.getFirstVisitFromStorage)()){(0,h.setFirstVisitToStorage)("1");let t=window.navigator.language.split("-")[0],r=(0,h.getLanguage)(t);Object.values(a.TM).includes(r)&&(e=r)}r.language!==e&&r.changeLanguage(e)},[t]),(0,l.useEffect)(()=>{u((0,h.getEnableRoutesFromUrlQuery)()||void 0)},[d]);let p=(0,l.useContext)($.Q);return(0,n.jsx)(T.zW,{api:M.SDK.ServerAPI.API.GetProjectInfo,showSkeleton:!1,children:e=>(0,n.jsx)(G.h.Provider,{value:{project:e},children:(0,n.jsxs)(i.A,{children:[(0,n.jsx)(W,{name:null==e?void 0:e.name}),p.embedded?null:(0,n.jsx)(B,{enableRoutes:c}),(0,n.jsx)(F,{}),(0,n.jsxs)(i.A.Content,{style:{height:"100%",minHeight:"100vh",padding:a.or.BasePadding,marginTop:p.embedded?0:a.or.NavBarHeight,background:""},children:[o,(0,n.jsx)(s.A.BackTop,{})]})]})})})}},83271(e,t,r){r.d(t,{h:()=>H});var n=r(65723),l=r(40961),i=r(91888),s=r(60503),a=r(87655),o=r(66287),d=r(29656),c=r(66020),u=r(28342),h=r(95134),p=r(63079),x=r(84585),m=r(94042),f=r(58094),g=r(36025),j=r(67647),v=r(22155),y=r(10117),b=r(98685),A=r(53289),w=r(78899),C=r(74579),S=r(45286),M=r(73147),k=r(84262),N=r(87417),P=r(18814),T=r.n(P);let R=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:12,fill:"none",viewBox:"0 0 10 12",...e,children:[(0,n.jsx)("path",{fill:"#FAAD14",fillRule:"evenodd",d:"M3.151 7.98h-1.85a.925.925 0 0 1-.924-.925V1.508c0-.511.414-.925.925-.925h7.396c.511 0 .925.414.925.925v5.547c0 .51-.414.924-.925.924H6.85V6.13a1.85 1.85 0 0 0-3.698 0z",clipRule:"evenodd"}),(0,n.jsx)("path",{fill:"#FAAD14",d:"M4.076 9.829a.925.925 0 0 0 1.849 0V6.13a.925.925 0 0 0-1.85 0z"}),(0,n.jsx)("path",{fill:"#FAAD14",d:"M5 11.416 7.402 8.92H2.598z"})]}),E=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,n.jsx)("rect",{width:16,height:16,fill:"#F6FFED",rx:2}),(0,n.jsx)("path",{fill:"#52C41A",fillRule:"evenodd",d:"M4.302 6.02a.925.925 0 0 0-.925.925v5.547c0 .51.414.925.925.925h7.396c.511 0 .925-.414.925-.925V6.945a.925.925 0 0 0-.925-.925zm5.547 0H6.151v1.85a1.85 1.85 0 0 0 3.698 0z",clipRule:"evenodd"}),(0,n.jsx)("path",{fill:"#52C41A",d:"M7.076 4.171a.925.925 0 0 1 1.849 0V7.87a.925.925 0 0 1-1.85 0z"}),(0,n.jsx)("path",{fill:"#52C41A",d:"m8 2.584 2.402 2.496H5.598z"})]}),O=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",viewBox:"0 0 14 14",...e,children:(0,n.jsx)("path",{fill:"#2994FF",d:"M7 10.736 1.7 6.589a.125.125 0 0 0-.201.098v1.208c0 .077.036.15.095.197l5.097 3.989a.5.5 0 0 0 .617 0l5.095-3.99a.25.25 0 0 0 .096-.196V6.687a.125.125 0 0 0-.202-.098zm0-4.75L1.7 1.839a.125.125 0 0 0-.201.098v1.208c0 .077.036.15.095.197L6.692 7.33a.5.5 0 0 0 .617 0l5.095-3.99a.25.25 0 0 0 .096-.196V1.937a.125.125 0 0 0-.202-.098z"})});var z=r(68850),L=r(30786),D=r(13078),_=r.n(D),B=r(40799);let I=+Date.now().toString().slice(-4)+1e3,F=e=>{let t,r,{cwd:l,url:i,loc:s,windowId:a=I,label:o,disabled:d,code:u=!1}=e,h=_().resolve(l,(t=i.split(" "),r="",1===t.length?[r]=t:[r]=t.filter(e=>_().isAbsolute(e)||e.startsWith("./")),r||i)),{line:p,columnStart:x}=function(e){if(!e)return{line:1,column:1};let[t,r=""]=e.split(":"),[n=1,l]=r.split("-");return{line:t,columnStart:n,columnEnd:l||n}}(s);return(0,n.jsxs)("span",{style:{wordBreak:"break-all"},children:[(0,n.jsx)(c.A.Text,{copyable:{text:h},children:(0,n.jsxs)(c.A.Text,{code:u,onClick:()=>{d||function(e){let{file:t,line:r=1,column:n=1,windowId:l}=e,i={windowId:l},s=Object.keys(i).map(e=>{let t=i[e];return B.AP.isNil(t)||""===t?null:`${e}=${t}`}).filter(Boolean).join("&"),a=`vscode://file/${t}:${r}:${n}`;s&&(a+=`?${s}`),window.open(a)}({file:h,line:p,column:x,windowId:a})},style:{cursor:d?"revert":"pointer"},children:[o||(0,b.getShortPath)(i),s?`:${s}`:""]})}),(0,n.jsx)("div",{style:{display:"inline-block"}})]})};var $=r(90220),G=r(45742);let W=e=>{let{loader:t,resource:r,cwd:l}=e;return(0,n.jsx)(L.Zp,{title:"Loader Details",style:{border:"none"},extra:(0,n.jsx)(a.A,{icon:(0,n.jsx)(S.A,{}),color:"default",children:T()(t.startAt).format("YYYY-MM-DD HH:mm:ss")}),children:(0,n.jsxs)(o.A,{direction:"vertical",style:{width:"100%"},children:[t.isPitch?(0,n.jsx)(c.A.Text,{code:!0,children:"pitch"}):null,(0,n.jsxs)(h.A,{size:"large",bordered:!0,children:[(0,n.jsxs)(h.A.Item,{children:[(0,n.jsx)(c.A.Text,{strong:!0,children:"File Path"}),(0,n.jsx)("div",{children:(0,b.beautifyPath)(r.path,l)})]}),(0,n.jsxs)(h.A.Item,{children:[(0,n.jsx)(c.A.Text,{strong:!0,children:"Resource Path"}),(0,n.jsx)(F,{cwd:l,url:r.path,loc:"",disabled:!0})]}),(0,n.jsxs)(h.A.Item,{children:[(0,n.jsx)(c.A.Text,{strong:!0,children:"Resource Query"}),(0,n.jsx)("div",{children:r.queryRaw||"-"})]}),(0,n.jsxs)(h.A.Item,{children:[(0,n.jsx)(c.A.Text,{strong:!0,children:"Duration"}),(0,n.jsx)("div",{children:(0,b.formatCosts)(t.costs)})]}),(0,n.jsxs)(h.A.Item,{children:[(0,n.jsx)(c.A.Text,{strong:!0,children:"Loader"}),(0,n.jsx)("div",{children:(0,n.jsx)(c.A.Text,{code:!0,children:t.loader})})]}),(0,n.jsxs)(h.A.Item,{children:[(0,n.jsx)(c.A.Text,{strong:!0,children:"Loader Index"}),(0,n.jsx)("div",{children:`${t.loaderIndex}`})]}),(0,n.jsxs)(h.A.Item,{children:[(0,n.jsx)(c.A.Text,{strong:!0,children:"Loader Path"}),(0,n.jsx)(F,{cwd:l,url:t.path,loc:"",disabled:!0})]}),(0,n.jsxs)(h.A.Item,{children:[(0,n.jsx)("div",{style:{width:180},children:(0,n.jsx)(c.A.Text,{strong:!0,children:"Options"})}),(0,n.jsx)(s.A,{type:"vertical"}),(0,n.jsx)(c.A.Paragraph,{ellipsis:{rows:2,expandable:!0,symbol:"more"},copyable:!0,children:JSON.stringify(t.options||"-")})]})]})]})})},V=e=>{let{data:t,cwd:r,index:l}=e,{loaders:i,resource:s}=t,[u,h]=(0,v.useState)(l||0),{theme:m}=(0,b.useTheme)(),f="light"===m,g=i[u],j=g.input||"",A=g.errors&&g.errors.length,[w,C]=(0,v.useState)("loaderDetails"),P=(0,v.useCallback)(e=>{C(e)},[]);return(0,n.jsxs)(p.A,{className:G.A.executions,style:{height:"100%"},children:[(0,n.jsx)(x.A,{span:5,style:{borderRight:f?"1px solid #f0f0f0":void 0,padding:y.or.BasePadding},children:(0,n.jsxs)(o.A,{direction:"vertical",style:{width:"100%"},children:[(0,n.jsx)($.h,{text:"Executions"}),(0,n.jsx)(M.A,{mode:"left",style:{marginTop:y.or.BasePadding},children:i.map((e,t,r)=>{var l;let{loader:i,isPitch:s}=e,o=(0,b.formatCosts)(e.costs);return(0,n.jsxs)(M.A.Item,{dot:s?(0,n.jsx)(a.A,{style:{marginLeft:1,fontWeight:500},children:"pitch"}):(0,n.jsx)(S.A,{}),style:{paddingBottom:10,textAlign:"center"},children:[(0,n.jsx)(p.A,{align:"middle",justify:"space-between",gutter:[0,10],children:(0,n.jsx)(x.A,{span:24,className:G.A.timeline,children:(0,n.jsx)(d.A,{title:i,trigger:"hover",children:(0,n.jsxs)("div",{className:`${G.A.box} ${u===t?G.A.selected:""}`,onClick:()=>{h(t)},style:{textAlign:"left"},children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(c.A.Text,{style:{color:"#000"},children:null==(l=o.match(/[0-9]*\.?[0-9]+/g))?void 0:l[0]})," ",(0,n.jsx)(c.A.Text,{style:{color:"rgba(0,0,0,0.45)"},children:o.match(/[a-zA-Z]+/g)})]}),(0,n.jsx)(c.A.Text,{style:{color:"rgba(0,0,0,0.65)"},className:G.A.loader,children:i})]})})})}),t===r.length-1?null:(0,n.jsx)("div",{style:{paddingTop:10},children:(0,n.jsx)(O,{})})]},t)})})]})}),(0,n.jsx)(x.A,{span:19,style:{height:"100%"},children:(0,n.jsx)(k.A,{type:"card",defaultActiveKey:"loaderDetails",activeKey:w,items:[{label:"Loader Props",key:"loaderProps",children:(0,n.jsx)(W,{loader:g,resource:s,cwd:r})},{label:"Loader Details",key:"loaderDetails",children:(0,n.jsx)("div",{style:{height:"100%"},children:A?(0,n.jsxs)(x.A,{span:24,style:{height:"53%",minHeight:400},children:[(0,n.jsx)("div",{style:{padding:y.or.BasePadding,borderTop:`1px solid ${f?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`,borderBottom:`1px solid ${f?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:(0,n.jsx)($.h,{text:`the error stack of [${g.loader}] ${g.isPitch?"pitch":""}`})}),(0,n.jsx)("div",{style:{height:"90%"},children:(0,n.jsx)(z.Cv,{code:g.errors[0].message,lang:"javascript"})})]}):(0,n.jsxs)(x.A,{span:24,style:{height:"53%",minHeight:400},children:[(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",padding:y.or.BasePadding,borderBottom:`1px solid ${f?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:[(0,n.jsx)($.h,{text:(0,n.jsxs)(n.Fragment,{children:[`the result of [${g.loader}] ${g.isPitch?"pitch":""}`,!g.isPitch&&(0,n.jsxs)("span",{style:{fontWeight:400},children:["(",(0,n.jsx)(R,{style:{verticalAlign:"middle",margin:"0 2px"}}),"Input ⟷",(0,n.jsx)(E,{style:{verticalAlign:"middle",position:"relative",top:-2}}),"Output)"]})]})}),(0,n.jsx)("div",{style:{flex:1}})]}),g.isPitch?g.result?(0,n.jsx)("div",{style:{height:"90%"},children:(0,n.jsx)(z.Cv,{isEmbed:!0,code:g.result,filePath:s.path})}):(0,n.jsx)(N.A,{description:"No loader result. If you use the Brief Mode, there will not have loader results."}):(0,n.jsx)("div",{style:{minHeight:"700px"},children:(0,n.jsx)("div",{style:{height:"40rem",overflow:"hidden"},children:g.result||j?(0,n.jsx)(z.Mh,{isEmbed:!0,original:j,modified:g.result||"",originalFilePath:s.path,modifiedFilePath:s.path}):(0,n.jsx)(N.A,{description:"No loader result. If you use the Brief Mode, there will not have loader results."})})})]})})}],onChange:P})})]})},H=e=>{let{cwd:t,filetree:r}=e,[S,M]=(0,v.useState)(!1),[k,N]=(0,v.useState)(""),[P,T]=(0,v.useState)(0),[R,E]=(0,v.useState)(null),O=(0,v.useMemo)(()=>r.filter(t=>t.loaders.some(r=>(0,b.filterLoader)(t.path,r.loader,e.filename,e.loaders,t.layer,null==e?void 0:e.layer))),[e.filename,e.loaders,e.layer]),z="__RESOURCEPATH__",L=(0,v.useMemo)(()=>(0,b.createFileStructures)({files:O.map(e=>e.path),cwd:t,fileTitle(e,t){let{loaders:i,layer:p}=r.find(t=>t.path===e),x=[];return i.forEach((e,t)=>t>3&&x.push(e)),(0,n.jsxs)("div",{style:{wordBreak:"break-all",display:"flex",cursor:"pointer"},onClick:()=>{T(0),N(e),M(!0)},children:[(0,n.jsx)("div",{className:G.A.box,children:(0,n.jsx)("div",{className:G.A.keywords,children:(0,n.jsx)(w.i,{text:t.replace(/\[.*?\]/g,""),keyword:""})})}),(0,n.jsx)("div",{className:G.A.dividerDiv,style:{flex:1},children:(0,n.jsx)(s.A,{className:G.A.divider,dashed:!0})}),p&&(0,n.jsx)(a.A,{color:"cyan",bordered:!1,children:p}),(0,n.jsxs)(o.A,{children:[i.slice(0,3).map((t,r)=>{var i;let a=t.errors&&t.errors.length,o=`${e}_${t.loader}_${r}`;if(r<=3)return(0,n.jsx)(d.A,{title:t.path,children:(0,n.jsxs)(c.A.Text,{className:G.A.textBox,style:{color:a?"#f50":"inherit"},onClick:t=>{t.stopPropagation(),N(e),T(r),M(!0)},children:[(0,n.jsx)(c.A.Text,{className:G.A.text,ellipsis:!0,children:(null==(i=t.loader.match(/([^/]+-loader)/g))?void 0:i[0])||t.loader}),(0,n.jsx)(s.A,{type:"vertical"}),a?(0,n.jsx)(l.A,{}):(0,n.jsx)(c.A.Text,{className:G.A.text,children:(0,b.formatCosts)(t.costs)})]})},o)}),(null==x?void 0:x.length)?(0,n.jsx)(u.A,{content:(0,n.jsx)(h.A,{dataSource:x,renderItem:(t,r)=>{var l;let i=t.errors&&t.errors.length,a=`${e}_${t.loader}_${r+3}`;return(0,n.jsx)(h.A.Item,{children:(0,n.jsx)(d.A,{title:t.path,children:(0,n.jsx)("div",{style:{paddingBottom:5},children:(0,n.jsxs)(c.A.Text,{className:G.A.textBox,style:{color:i?"#f50":"inherit"},onClick:t=>{t.stopPropagation(),N(e),T(r),M(!0)},children:[(0,n.jsx)(c.A.Text,{className:G.A.text,ellipsis:!0,children:(null==(l=t.loader.match(/([^/]+-loader)/g))?void 0:l[0])||t.loader}),(0,n.jsx)(s.A,{type:"vertical"}),(0,n.jsx)(c.A.Text,{className:G.A.text,children:(0,b.formatCosts)(t.costs)})]})})},a)})}}),children:(0,n.jsx)("div",{className:G.A.textBox,children:(0,n.jsx)(c.A.Text,{children:"\xb7\xb7\xb7"})})}):(0,n.jsx)(n.Fragment,{})]})]})},dirTitle:(e,t)=>(0,n.jsx)("div",{style:{display:"flex",cursor:"pointer"},children:(0,n.jsx)(w.i,{text:t,keyword:""})})}),[O]);return(0,n.jsxs)(p.A,{style:{width:"100%",marginLeft:0},gutter:y.or.BasePadding,children:[(0,n.jsx)(x.A,{span:24,children:(0,n.jsxs)(m.A,{title:(0,n.jsxs)(o.A,{children:[(0,n.jsx)(c.A.Text,{strong:!0,children:"Files"}),(0,n.jsxs)(c.A.Text,{style:{fontSize:12,fontWeight:400,color:"#1C1F2399",opacity:.6},children:["Total Files: ",O.length]})]}),bodyStyle:{overflow:"auto",maxHeight:800,minHeight:"40rem",padding:14},children:[(0,n.jsx)(A.h,{defaultExpandedKeys:(0,b.mapFileKey)(L,O.length>=100?3:4,e=>!((0,j.J)(e,z).indexOf("/node_modules/")>-1)),treeData:L,onSelect:(e,t)=>{t.node.isLeaf||E(t.node)},selectedKeys:R?[R.key]:void 0,expandAction:"click"},`${e.loaders.join("|")}_${e.filename}`),(0,n.jsx)(f.A,{open:S,onClose:()=>M(!1),maskClosable:!0,width:y.Y7,zIndex:999,bodyStyle:{padding:0},children:S?(0,n.jsx)(C.zW,{api:i.SDK.ServerAPI.API.GetLoaderFileDetails,body:{path:k},children:e=>(0,n.jsx)(V,{data:e,cwd:t,index:P})}):null})]})}),(0,n.jsx)(f.A,{open:!!R,onClose:()=>E(null),maskClosable:!0,width:y.Y7,zIndex:999,bodyStyle:{padding:0},children:R&&(0,n.jsx)(p.A,{children:(0,n.jsx)(x.A,{span:24,children:(0,n.jsx)(m.A,{title:(0,n.jsx)(d.A,{title:v.cloneElement(R.title,{style:{color:"#fff"}}),children:(0,n.jsxs)(c.A.Text,{children:["Statistics of",R.title]})}),children:(0,n.jsx)(C.zW,{api:i.SDK.ServerAPI.API.GetLoaderFolderStatistics,body:{folder:R[z]},children:e=>(0,n.jsx)(g.A,{style:{width:"100%",maxHeight:800,height:"40rem",overflowY:"scroll",wordBreak:"break-all"},pagination:!1,bordered:!0,rowKey:e=>e.loader,columns:[{title:"Loader Name",dataIndex:"loader"},{title:"Files",dataIndex:"files"},{title:"Total Duration",dataIndex:"costs",render:e=>(0,n.jsx)(c.A.Text,{strong:!0,children:(0,b.formatCosts)(e)}),sorter:(e,t)=>e.costs-t.costs,defaultSortOrder:"descend",sortDirections:["descend","ascend"]}],dataSource:e})})})})})})]})}},45742(e,t,r){r.d(t,{A:()=>n});let n={loaderAnalysis:"loaderAnalysis-h6mG3n",dividerDiv:"dividerDiv-hrfVKQ",divider:"divider-hnPRxv",box:"box-lFdvrG",keyword:"keyword-UO64w1",textBox:"textBox-sVZZ_A",text:"text-omPvlh",space:"space-qT5CaN",executions:"executions-uZxmQC",timeline:"timeline-wMFXyU",loader:"loader-PHR4ca",selected:"selected-wUMOH3"}},74579(e,t,r){r.d(t,{eN:()=>l.e,ug:()=>n.u,zW:()=>l.z});var n=r(25957),l=r(99359)},85333(e,t,r){r.d(t,{F:()=>v});var n=r(65723),l=r(22155),i=r(32354),s=r(47748),a=r(66020),o=r(43995),d=r(63079),c=r(84585),u=r(7710),h=r(45917),p=r(94175),x=r(10117),m=r(74579),f=r(91888);let g=e=>{let{style:t,onChange:r,loaderNames:d}=e,[c,h]=(0,l.useState)([]);return(0,n.jsxs)(i.A.Group,{compact:!0,style:t,children:[(0,n.jsxs)(s.Ay,{style:{width:120},children:[(0,n.jsx)(u.A,{}),(0,n.jsx)(a.A.Text,{children:"Loaders"})]}),(0,n.jsx)(o.A,{mode:"multiple",allowClear:!0,defaultValue:c,className:"loader-select",style:{width:300},popupMatchSelectWidth:300,placeholder:"select loaders",onChange:e=>{h(e),r(e)},children:d.map(e=>(0,n.jsx)(o.A.Option,{label:e,value:e,children:e},e))})]})},j=e=>{let{onChange:t,layers:r}=e,[d,c]=(0,l.useState)("");return(0,n.jsxs)(i.A.Group,{compact:!0,children:[(0,n.jsxs)(s.Ay,{style:{width:120},children:[(0,n.jsx)(u.A,{}),(0,n.jsx)(a.A.Text,{children:"Layers"})]}),(0,n.jsx)(o.A,{allowClear:!0,className:"layer-select",style:{width:150},defaultValue:d,placeholder:"select layer",onChange:e=>{c(e),t(e)},children:(null==r?void 0:r.length)?null==r?void 0:r.map(e=>(0,n.jsx)(o.A.Option,{label:e,value:e,children:e},e)):(0,n.jsx)(n.Fragment,{})})]})},v=e=>{let{onChange:t,loaderNames:r}=e,[i,s]=(0,l.useState)([]),[a,o]=(0,l.useState)(""),[u,v]=(0,l.useState)("");return(0,l.useEffect)(()=>{t({loaders:i,filename:a,layer:u})},[i,a,u]),(0,n.jsxs)(d.A,{style:{marginBottom:x.or.BasePadding,marginLeft:10},children:[(0,n.jsx)(c.A,{children:(0,n.jsx)(g,{loaderNames:r,style:{marginRight:x.or.BasePadding},onChange:e=>{s(e)}})}),(0,n.jsx)(c.A,{children:(0,n.jsx)(p.E,{icon:(0,n.jsx)(h.A,{}),style:{marginRight:x.or.BasePadding},label:"Filename",placeholder:"search filename by keyword",onChange:e=>{o(e)}})}),(0,n.jsx)(c.A,{children:(0,n.jsx)(m.zW,{api:f.SDK.ServerAPI.API.GetLayers,children:e=>e.length?(0,n.jsx)(j,{layers:e,onChange:e=>{v(e)}}):(0,n.jsx)(n.Fragment,{})})})]})}},14760(e,t,r){r.d(t,{P6:()=>y,hX:()=>b});var n=r(65723),l=r(77665),i=r(47748),s=r(58094),a=r(22155),o=r(29656),d=r(66287),c=r(66020),u=r(63079),h=r(84585),p=r(91888),x=r(74620),m=r(40799),f=r(10117),g=r(21376),j=r(74579);let v=e=>{let{duplicatePackages:t=[],cwd:r,children:l,...i}=e;return(0,n.jsx)(b,{...i,buttonStyle:{fontSize:"inherit",...i.buttonStyle},buttonProps:{type:"text",...i.buttonProps},text:(0,n.jsx)(o.A,{title:"Click to show the details of duplicate packages",children:(0,n.jsxs)(d.A,{style:{fontSize:"inherit"},children:[(0,n.jsx)(c.A.Text,{strong:!0,style:{fontSize:"inherit",color:"inherit",...i.textStyle},children:t.length}),(0,n.jsx)(x.A,{})]})}),drawerProps:{title:"Duplicate Packages Viewer",...i.drawerProps},children:(0,n.jsx)(u.A,{gutter:[f.or.BasePadding,f.or.BasePadding],children:t.map((e,t)=>(0,n.jsx)(h.A,{span:24,children:(0,n.jsx)(g.ZZ,{data:e,cwd:r,getPackageRelationContentComponent:l})},t))})})},y=e=>{let{moduleGraph:t,...r}=e;return(0,n.jsx)(v,{...r,children:e=>(0,n.jsx)(j.zW,{api:p.SDK.ServerAPI.API.GetModuleCodeByModuleIds,body:{moduleIds:t.modules.map(e=>e.id)},children:l=>(0,n.jsx)(g.aM,{data:m.Wh.getPackageRelationAlertDetails(t.modules,t.dependencies,r.cwd,e.package.dependencies,l),cwd:r.cwd})})})},b=e=>{let[t,r]=(0,a.useState)(!1);return(0,n.jsxs)("div",{onClick:e=>e.stopPropagation(),...e.containerProps,children:[e.button?(0,n.jsx)("div",{onClick:()=>r(!t),children:e.button}):e.text?(0,n.jsx)(i.Ay,{type:"link",...e.buttonProps,onClick:()=>r(!t),style:{padding:0,...e.buttonStyle},children:e.text}):(0,n.jsx)(l.A,{style:{fontSize:14,padding:0},onClick:()=>r(!t)}),(0,n.jsx)(s.A,{maskClosable:!0,zIndex:999,width:"60%",...e.drawerProps,open:t,onClose:()=>r(!1),destroyOnClose:!0,children:e.children})]})}},90220(e,t,r){r.d(t,{h:()=>s});var n=r(65723);r(22155);var l=r(66020),i=r(18812);let s=e=>{let{upperFirst:t=!0,fontSize:r=16,text:s,hash:a}=e,o="string"==typeof s&&t?(0,i.Z)(s):s;return(0,n.jsx)(l.A.Text,{style:{fontSize:r},strong:!0,children:a?(0,n.jsx)("a",{href:a,id:a.replace(/^#/,""),style:{color:"inherit"},children:o}):o})}},85240(e,t,r){r.d(t,{Cv:()=>c});var n=r(65723),l=r(83021),i=r(70851),s=r(22155),a=r(27618),o=r(28322),d=r(40799);function c(e){let{className:t,style:r,code:c="",lang:u,filePath:h="",defaultLine:p,ranges:x,isEmbed:m=!1,headerVisible:f=!0,isLightTheme:g=!0}=e,j=(0,s.useRef)(),v=(0,s.useRef)(),y=(0,s.useMemo)(()=>u||(0,a.rZ)(h)||"plaintext",[u,h]),[b,A]=(0,s.useState)(!0),w=(0,s.useMemo)(()=>(0,a.$N)({wordWrap:b?"on":"off"}),[b]),C=(0,s.useCallback)((e,t)=>{j.current=e,v.current=t,(0,a.sK)(e,t,x),d.AP.isNumber(p)&&setTimeout(()=>{e.revealLine(p)})},[]);return(0,s.useEffect)(()=>()=>{var e;null==(e=j.current)||e.setModel(null)},[]),(0,n.jsxs)("div",{className:(0,i.A)("monaco-component","code-viewer","code-viewer-H7hGrZ",m&&"embed-tjljOS",t),style:r,children:[f&&!!h&&(0,n.jsxs)("div",{className:"header-qejtwX",children:[(0,n.jsx)("div",{children:(0,a.WP)(h)}),(0,n.jsx)("div",{style:{flex:1}}),(0,n.jsx)("div",{children:(0,n.jsx)(o.A,{className:"text-T29bd1",title:"side-by-side",checked:b,onChange:e=>{A(e.target.checked)},children:"word-wrap"})})]}),(0,n.jsx)("div",{className:(0,i.A)("content-EVSW1C","editor-wrap"),children:(0,n.jsx)(l.KE,{theme:g?"vs-light":"vs-dark",language:y,value:c,options:w,onMount:C})})]})}r(75652)},27618(e,t,r){r.d(t,{$N:()=>s,WP:()=>a,XX:()=>i,qK:()=>o,rZ:()=>l,sK:()=>d});var n=r(13078);function l(e){if(!e)return"";let t=function(e){if(!e)return"";try{if(!e.startsWith("data:"))return"";let{mimeType:t}=function(e){if(!e.startsWith("data:"))throw Error("输入不是有效的 Data URL");let t=e.substring(5),r=t.indexOf(",");if(-1===r)throw Error("无效的 Data URL 格式: 缺少数据分隔符");let n=t.substring(0,r),l=t.substring(r+1),i="",s="",a=!1,o=n.split(";");o.length>0&&(i=o[0]||"text/plain");for(let e=1;e<o.length;e++){let t=o[e];"base64"===t?a=!0:t.startsWith("charset=")&&(s=t.substring(8))}return{mimeType:i,charset:s,isBase64:a,data:l}}(e);switch(t){case"text/javascript":return"javascript";case"text/html":return"html";case"text/css":return"css";case"text/plain":return"text";case"application/json":return"json";default:return""}}catch(e){return console.error("解析 data 协议文件格式失败::",e),""}}(e);if(t)return t;try{let t=(0,n.extname)(e).slice(1);switch(t){case"js":case"cjs":case"mjs":case"jsx":return"javascript";case"ts":case"tsx":return"typescript";case"md":return"markdown";default:return t}}catch(e){return""}}let i={readOnly:!0,domReadOnly:!0,fontSize:14,tabSize:2,lineHeight:24,renderValidationDecorations:"off",hideCursorInOverviewRuler:!0,smoothScrolling:!0,wordWrap:"on",colorDecorators:!0,codeLens:!1,cursorWidth:0,minimap:{enabled:!1},contextmenu:!1,gotoLocation:{multiple:"goto",multipleDefinitions:"goto",multipleTypeDefinitions:"goto",multipleDeclarations:"goto",multipleImplementations:"goto",multipleReferences:"goto"},hover:{enabled:!1},links:!1};function s(e){return{...structuredClone(i),...e}}function a(e){return e?e.startsWith("data:")?"data":e.split("/").at(-1)||"":""}function o(e,t){let{start:r,end:n}=e,{line:l=1,column:i=0}=r;return new t(l,i+1,(null==n?void 0:n.line)??l,((null==n?void 0:n.column)??9999)+1)}function d(e,t,r){if(!r||0===r.length)return;let n=r.map(e=>({range:o(e,t.Range),options:{inlineClassName:"file-inline-decoration"}}));e.deltaDecorations([],n),setTimeout(()=>{e.revealLine(n[0].range.startLineNumber)})}},68850(e,t,r){r.d(t,{Mh:()=>u,Cv:()=>n.Cv});var n=r(85240),l=r(65723),i=r(83021),s=r(28322),a=r(70851),o=r(22155),d=r(27618);let c={...structuredClone(d.XX),readOnly:!0,originalEditable:!1,renderSideBySide:!0,renderSideBySideInlineBreakpoint:1,renderIndicators:!0,definitionLinkOpensInPeek:!1,domReadOnly:!0,minimap:{enabled:!1},diffWordWrap:"on",folding:!1,lineNumbersMinChars:3,renderLineHighlight:"none",matchBrackets:"never",diffAlgorithm:"advanced",ignoreTrimWhitespace:!0,renderOverviewRuler:!0,renderLineHighlightOnlyWhenFocus:!0,smoothScrolling:!0,letterSpacing:.5};function u(e){let{className:t,style:r,original:n="",modified:u="",originalFilePath:h="",modifiedFilePath:p="",originalLang:x,modifiedLang:m,isEmbed:f=!1,isLightTheme:g=!0,headerVisible:j=!0}=e,[v,y]=(0,o.useState)(!0),b=(0,o.useRef)(),A=(0,o.useMemo)(()=>x||(0,d.rZ)(h)||"plaintext",[x,h]),w=(0,o.useMemo)(()=>m||(0,d.rZ)(p)||"plaintext",[m,p]),C=(0,o.useMemo)(()=>{var e;return e={renderSideBySide:v},{...structuredClone(c),...e}},[v]),S=(0,o.useCallback)(e=>{b.current=e},[]);return(0,o.useEffect)(()=>()=>{var e;null==(e=b.current)||e.setModel(null)},[]),(0,l.jsxs)("div",{className:(0,a.A)("monaco-component","diff-viewer","diff-viewer-CczjmT",f&&"embed-VNMDA8",t),style:r,children:[j&&(0,l.jsxs)("div",{className:"header-VBdMD0",children:[(0,l.jsx)("div",{children:(0,d.WP)(h)}),(0,l.jsx)("div",{style:{flex:1}}),(0,l.jsx)("div",{children:(0,l.jsx)(s.A,{className:"text-Pi6YdN",title:"side-by-side",checked:v,onChange:e=>{y(e.target.checked)},children:"side-by-side"})})]}),(0,l.jsx)("div",{className:(0,a.A)("content-BsfSuD","editor-wrap"),children:(0,l.jsx)(i.zC,{theme:g?"vs-light":"vs-dark",originalLanguage:A,modifiedLanguage:w,original:n,modified:u,width:"100%",options:C,onMount:S})})]})}},17400(e,t,r){r.d(t,{Q:()=>a,s:()=>s});var n=r(22155),l=r(96307),i=r(10117);let s={locale:(0,l.U)(),theme:(0,l.DT)(),pageState:i.jK.Pending,viewMode:(0,l.oi)(),json:{},setTheme(){},setManifest(){},setPageState(e){},setViewMode(){}},a=(0,n.createContext)({...s})},10117(e,t,r){r.d(t,{Q1:()=>f,Sx:()=>c,TM:()=>x,Y7:()=>g,jK:()=>u,nE:()=>p,nl:()=>h,or:()=>m});var n,l,i,s,a,o,d,c=((n={}).Light="light",n.Dark="dark",n),u=((l={})[l.Success=0]="Success",l[l.Pending=1]="Pending",l[l.Fail=2]="Fail",l),h=((i={})[i.Success=0]="Success",i[i.Pending=1]="Pending",i[i.Updating=2]="Updating",i[i.Fail=3]="Fail",i),p=((s={}).List="list",s.Group="group",s),x=((a={}).Cn="cn",a.En="en",a),m=((o={})[o.BasePadding=20]="BasePadding",o[o.BaseBorderRadius=8]="BaseBorderRadius",o[o.NavBarHeight=54]="NavBarHeight",o),f=((d={}).Red="#e17055",d.Green="#52c41a",d.Yellow="#faad14",d.Blue="#1677ff",d);let g="u"<typeof window?0:.85*window.innerWidth>=1100?.85*window.innerWidth:1100},4324(e,t,r){r.d(t,{wE:()=>ej,YW:()=>ev});var n,l,i=r(65723),s=r(22155),a=r(16753),o=r(29656),d=r(66287),c=r(94042),u=r(66020),h=r(60503),p=r(47748),x=r(19126),m=r(84262),f=r(94959),g=r(75168),j=r(91888),v=r(10117),y=r(63079),b=r(84585),A=r(67331),w=r(98685),C=r(14760),S=r(87417),M=r(43995),k=r(36025),N=r(61059),P=r(67187),T=r(87655),R=r(45917),E=r(94175),O=r(80956),z=r(85768),L=r(68850);let D=e=>{let{file:t,data:r}=e,[n,l]=(0,s.useState)(r[0].group),a=r.find(e=>e.group===n);return(0,i.jsxs)(y.A,{wrap:!0,gutter:[v.or.BasePadding,v.or.BasePadding],style:{height:"100%",alignContent:"flex-start"},children:[r.length>1?(0,i.jsx)(b.A,{span:24,children:(0,i.jsx)(z.A,{value:n,options:r.map(e=>e.group),onChange:e=>l(e)})}):null,a?(0,i.jsxs)(s.Fragment,{children:[(0,i.jsx)(b.A,{span:24,children:(0,i.jsxs)(u.A.Text,{strong:!0,children:[a.baselineTitle||"Baseline"," ⟷"," ",a.currentTitle||"Current"]})}),(0,i.jsx)(b.A,{span:24,children:(0,i.jsx)(L.Mh,{originalFilePath:t,modifiedFilePath:t,original:a.baseline||"",modified:a.current||""})})]},n):null]})},_=e=>{let{text:t="View Changes",...r}=e;return(0,i.jsx)(C.hX,{text:t,buttonProps:{size:"small",icon:(0,i.jsx)(O.A,{})},drawerProps:{destroyOnClose:!0,title:`Content diff for "${r.file}"`},children:(0,i.jsx)(D,{...r})})};var B=((n={}).New="New",n.Changed="Changed",n.Deleted="Deleted",n.NotChanged="Not Changed",n),I=((l={}).Name="Sorted by Name",l.Size="Sorted by Size",l.Delta="Sorted by Delta",l),F=r(35471),$=r(78172),G=r(32354),W=r(18812);let V=(e,t,r,n)=>(0,i.jsx)(i.Fragment,{children:t-e==0?(0,i.jsx)(i.Fragment,{}):(0,i.jsxs)(u.A.Text,{strong:!0,style:{color:r===j.Client.RsdoctorClientDiffState.Up?v.Q1.Red:v.Q1.Green,...n},children:[r===j.Client.RsdoctorClientDiffState.Up?"+":"-",(0,w.formatSize)(Math.abs(t-e))]})});var H=r(40799);let U=/[a-fA-F0-9]{20,}/,q=(e,t,r)=>{let n=r?(e,r)=>{var n,l,i,s;return((null==(n=e.current)?void 0:n.size[t])||0)-((null==(l=e.baseline)?void 0:l.size[t])||0)-((null==(i=r.current)?void 0:i.size[t])||0)+((null==(s=r.baseline)?void 0:s.size[t])||0)}:(r,n)=>{var l,i;return((null==(l=r[e])?void 0:l.size[t])||0)-((null==(i=n[e])?void 0:i.size[t])||0)};return{width:200,sorter:(e,t)=>n(e,t),render:(r,n)=>{var l,s;if(!n[e])return"-";let a=n[e].size[t];return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:(0,w.formatSize)(a)}),"current"===e?V((null==(l=n.baseline)?void 0:l.size[t])||0,a,((null==(s=n.baseline)?void 0:s.size[t])||0)>a?j.Client.RsdoctorClientDiffState.Down:j.Client.RsdoctorClientDiffState.Up):null]})}}},K=(e,t,r)=>{let[n,l]=(0,s.useState)(!1),a="baseline"===e;return{title:()=>{let n=a?t:r,l=(0,W.Z)(e),s=H.TS.diffSize(t,r);return(0,i.jsxs)("div",{children:[(0,i.jsx)(u.A.Text,{children:l}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsx)(o.A,{title:(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:[l," modules is ",n]}),a?null:(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["Percent is ",(0,w.formatPercent)(s.percent)]})]}),children:(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400},children:n}),(0,i.jsx)(f.A,{})]})})]})},children:[{title:"Source Size",...q(e,"sourceSize",n)},{title:"Parsed Size",defaultSortOrder:a?void 0:"descend",...q(e,"parsedSize",n)}],filterSearch:!0,filters:[{text:"Show Changed",value:B.NotChanged},{text:"Show All",value:"All"}],onFilter:(e,t)=>(e===B.NotChanged?l(!0):l(!1),e!==B.NotChanged||Z(t)!==e)}},Q=e=>{let{data:t,baseline:r,current:n}=e,{modules:l}=r.moduleGraph,{modules:a}=n.moduleGraph,{chunks:c}=r.chunkGraph,{chunks:x}=n.chunkGraph,m=r.root,g=n.root,[j,y]=(0,s.useState)(""),b=(0,s.useRef)(null),A=(e,t)=>{t(),y(e[0])},C="__is_baseline__",S=(0,s.useMemo)(()=>t.baseline?H.TS.getModulesByAsset(t.baseline,c,l).map(e=>({...e,[C]:!0})).filter(e=>{var t;return!(null==(t=e.concatenationModules)?void 0:t.length)}):[],[t,r]),M=(0,s.useMemo)(()=>t.current?H.TS.getModulesByAsset(t.current,x,a).map(e=>({...e,[C]:!1})).filter(e=>{var t;return!(null==(t=e.concatenationModules)?void 0:t.length)}):[],[t,n]),N=e=>(0,w.beautifyModulePath)(e.path,e.__is_baseline__?m:g),P=(0,s.useMemo)(()=>{let e=[...S,...M],t=new Map;return e.forEach(e=>{var r,n;let l=(null==(r=e.webpackId)?void 0:r.replace(U,""))||(null==(n=e.path)?void 0:n.replace(U,"")),i=t.get(l);i||(i={path:l}),e[C]?i.baseline=e:i.current=e,t.set(l,i)}),[...t.values()]},[S,M,j]),{bModulesCount:R,cModulesCount:E,totalCount:O}=(0,s.useMemo)(()=>{let e=e=>N(e).alias.indexOf(j)>-1,t=P.filter(e=>e.baseline),r=P.filter(e=>e.current),n=P.length;return j&&(t=t.filter(e),r=r.filter(e),n=P.filter(e).length),{bModulesCount:t.length,cModulesCount:r.length,totalCount:n}},[P,j]);return(0,i.jsx)(k.A,{dataSource:P,rowKey:e=>e.path,size:"small",pagination:{size:"small"},bordered:!0,scroll:{x:1500},columns:[{fixed:"left",title:()=>(0,i.jsxs)("div",{children:[(0,i.jsxs)(u.A.Text,{children:["Modules of ",`"${t.alias}"`]}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsxs)(o.A,{title:(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["filtered modules: ",O]}),(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["total modules: ",P.length]})]}),children:[(0,i.jsxs)(u.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400,marginRight:4},children:[O,"/",P.length]}),(0,i.jsx)(f.A,{})]})]}),filterDropdown(e){let{setSelectedKeys:t,selectedKeys:r,confirm:n,clearFilters:l}=e;return(0,i.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,i.jsx)(G.A,{ref:b,placeholder:"Search by file name",value:r[0],onChange:e=>t(e.target.value?[e.target.value]:[]),onPressEnter:()=>A(r,n),style:{marginBottom:8,display:"block"}}),(0,i.jsxs)(d.A,{children:[(0,i.jsx)(p.Ay,{type:"primary",onClick:()=>A(r,n),icon:(0,i.jsx)($.A,{}),size:"small",style:{width:90},children:"Search"}),(0,i.jsx)(p.Ay,{onClick:()=>{l&&(l(),y("")),t([]),A([],n)},size:"small",style:{width:90},children:"Reset"})]})]})},filterSearch:!0,filterIcon:e=>(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{type:j?void 0:"secondary",style:{fontWeight:400},children:j||"Search by file name"}),(0,i.jsx)($.A,{style:{color:e?v.Q1.Blue:void 0}})]}),onFilterDropdownOpenChange:e=>{e&&setTimeout(()=>{var e;return null==(e=b.current)?void 0:e.focus()},100)},onFilter:(e,t)=>N(t).alias.indexOf(e)>-1,render:(e,t)=>{let{alias:r,inNodeModules:n}=N(t);return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(o.A,{title:t.path,children:(0,i.jsx)(u.A.Text,{copyable:{text:t.path},children:r})}),n?(0,i.jsx)(T.A,{color:"warning",children:"node_modules"}):null,(0,i.jsx)(J,{type:Z(t)})]})}},K("current",R,E),K("baseline",R,E),{title:"Actions",width:200,render:(e,t)=>{var l,s,a,o,c,u,h,p,x,m,f,g;return(0,i.jsx)(d.A,{direction:"vertical",style:{maxWidth:170},children:(0,i.jsx)(_,{text:"View Changes",file:t.path,data:[{baseline:null==(l=r.moduleCodeMap[null==(s=t.baseline)?void 0:s.id])?void 0:l.source,current:null==(a=n.moduleCodeMap[null==(o=t.current)?void 0:o.id])?void 0:a.source,group:"Source"},{baseline:null==(c=r.moduleCodeMap[null==(u=t.baseline)?void 0:u.id])?void 0:c.transformed,current:null==(h=n.moduleCodeMap[null==(p=t.current)?void 0:p.id])?void 0:h.transformed,group:"Transformed Source"},{baseline:null==(x=r.moduleCodeMap[null==(m=t.baseline)?void 0:m.id])?void 0:x.parsedSource,current:null==(f=n.moduleCodeMap[null==(g=t.current)?void 0:g.id])?void 0:f.parsedSource,group:"Parsed Source"}]})})}}]})};function Z(e){if(e.baseline&&!e.current)return B.Deleted;if(!e.baseline&&e.current)return B.New;if(e.baseline&&e.current)return e.baseline.size.sourceSize===e.current.size.sourceSize&&e.baseline.size.parsedSize===e.current.size.parsedSize?B.NotChanged:B.Changed;throw Error("Update Type not match")}let J=e=>{let{type:t}=e;return t===B.NotChanged?(0,i.jsx)(o.A,{title:"It hasn't changed between Baseline and Current",children:(0,i.jsx)(T.A,{color:"success",children:"Not Changed"})}):t===B.Changed?(0,i.jsx)(o.A,{title:"It has been changed between Baseline and Current",children:(0,i.jsx)(T.A,{color:"warning",children:"Changed"})}):t===B.New?(0,i.jsx)(o.A,{title:"It is created in Current",children:(0,i.jsx)(T.A,{color:"error",children:"New"})}):t===B.Deleted?(0,i.jsx)(o.A,{title:"It has been deleted in Current",children:(0,i.jsx)(T.A,{color:"error",children:"Deleted"})}):null},Y=e=>{let{baseline:t,current:r}=e,n=(0,s.useMemo)(()=>(0,w.useUniqModules)(t.moduleGraph.modules),[t]),l=(0,s.useMemo)(()=>(0,w.useUniqModules)(r.moduleGraph.modules),[r]),a=t.chunkGraph.chunks,c=r.chunkGraph.chunks,p=t.root,x=r.root,[m,g]=(0,s.useState)(),[j,A]=(0,s.useState)([]),C=(0,s.useMemo)(()=>{let e={};return n.forEach(t=>{var r,n;let l=(null==(r=t.webpackId)?void 0:r.replace(U,""))||(null==(n=t.path)?void 0:n.replace(U,""));e[l]?console.warn("[Baseline Module Exists]: ",t,e):e[l]={path:l,baseline:t}}),l.forEach(t=>{var r,n;let l=(null==(r=t.webpackId)?void 0:r.replace(U,""))||(null==(n=t.path)?void 0:n.replace(U,""));e[l]||(e[l]={path:l}),e[l].current=t}),Object.values(e)},[n,l]),S=(0,s.useMemo)(()=>{let e=C.slice();return m&&(e=e.filter(e=>e.path.indexOf(m)>-1)),j.length&&(e=e.filter(e=>j.includes(Z(e)))),e},[C,m,j]),{bFilteredModulesLength:P,cFilteredModulesLength:O}=(0,s.useMemo)(()=>({bFilteredModulesLength:S.filter(e=>e.baseline).length,cFilteredModulesLength:S.filter(e=>e.current).length}),[S]);return(0,i.jsxs)(y.A,{gutter:[v.or.BasePadding,v.or.BasePadding],children:[(0,i.jsx)(b.A,{span:24,children:(0,i.jsxs)(d.A,{wrap:!0,children:[(0,i.jsx)(E.E,{icon:(0,i.jsx)(R.A,{}),label:"",labelStyle:{width:45},placeholder:"Search by name",onChange:e=>{g(e)}}),(0,i.jsx)(M.A,{mode:"multiple",placeholder:"Filter by changed type",style:{width:200},options:Object.values(B).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{A(e)}})]})}),(0,i.jsx)(b.A,{span:24,children:(0,i.jsx)(k.A,{bordered:!0,sticky:{offsetHeader:54},pagination:{pageSize:20,size:"small"},scroll:{x:1700},dataSource:S,rowKey:e=>e.path,columns:[{fixed:"left",title:(0,i.jsxs)(o.A,{title:(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["filtered modules is ",S.length," (Current & Baseline)"]}),(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["total modules is ",C.length," (Current & Baseline)"]})]}),children:[(0,i.jsx)(u.A.Text,{strong:!0,children:"Modules"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsxs)(u.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400,marginRight:4},children:[S.length,"/",C.length]}),(0,i.jsx)(f.A,{})]}),render:(e,t)=>{let{alias:r,inNodeModules:n}=(0,w.beautifyModulePath)(t.path,t.baseline?p:x);return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(o.A,{title:t.path,children:(0,i.jsx)(u.A.Text,{copyable:{text:t.path},children:r})}),(0,i.jsx)(J,{type:Z(t)}),n?(0,i.jsx)(T.A,{color:"warning",children:"node_modules"}):null]})}},K("current",P,O),K("baseline",P,O),{title:"in Assets",render:(e,t)=>{let r=[],n=[];return(t.current&&H.TS.getChunksByModule(t.current,c).forEach(e=>e.assets.forEach(e=>n.push(e))),t.baseline&&H.TS.getChunksByModule(t.baseline,a).forEach(e=>e.assets.forEach(e=>r.push(e))),r.length||n.length)?(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,N.s)(n).filter(Boolean).map(e=>(0,i.jsx)(F.Ex,{label:"Current",value:e},`c_${e}`)),(0,N.s)(r).filter(Boolean).map(e=>(0,i.jsx)(F.Ex,{label:"Baseline",value:e},`b_${e}`))]}):null}},{title:"Actions",width:200,render:(e,n)=>{var l,s,a,o,c,u,h,p,x,m,f,g,j,v,y,b;let A=Z(n)===B.Changed;return(0,i.jsxs)(d.A,{direction:"vertical",style:{maxWidth:170},children:[A?(0,i.jsx)(_,{text:"View Changes",file:n.path,data:[{baseline:null==(l=t.moduleCodeMap[null==(s=n.baseline)?void 0:s.id])?void 0:l.source,current:null==(a=r.moduleCodeMap[null==(o=n.current)?void 0:o.id])?void 0:a.source,group:"Source"},{baseline:null==(c=t.moduleCodeMap[null==(u=n.baseline)?void 0:u.id])?void 0:c.transformed,current:null==(h=r.moduleCodeMap[null==(p=n.current)?void 0:p.id])?void 0:h.transformed,group:"Transformed Source"},{baseline:null==(x=t.moduleCodeMap[null==(m=n.baseline)?void 0:m.id])?void 0:x.parsedSource,current:null==(f=r.moduleCodeMap[null==(g=n.current)?void 0:g.id])?void 0:f.parsedSource,group:"Parsed Source"}]}):null,(null==n?void 0:n.current)?(0,i.jsx)(_,{text:"Current Result Viewer",file:n.path,data:[{baseline:null==(j=r.moduleCodeMap[n.current.id])?void 0:j.source,current:null==(v=r.moduleCodeMap[n.current.id])?void 0:v.transformed,baselineTitle:"Current Source",currentTitle:"Current Transformed Source",group:"Transformed Source"},{baseline:null==(y=r.moduleCodeMap[n.current.id])?void 0:y.source,current:null==(b=r.moduleCodeMap[n.current.id])?void 0:b.parsedSource,baselineTitle:"Current Source",currentTitle:"Current Parsed Source",group:"Parsed Source"}]}):null]})}}]})})]})},X=e=>e.baseline&&e.current?e.baseline.map(e=>e.version).sort().join()===e.current.map(e=>e.version).sort().join()?B.NotChanged:B.Changed:e.baseline||e.current?e.baseline&&!e.current?B.Deleted:B.New:B.NotChanged,ee=e=>X(e)!==B.NotChanged,et=e=>{let{dataSource:t}=e,{newCount:r,deleteCount:n,changedCount:l}=(0,s.useMemo)(()=>({newCount:t.filter(e=>e.updateType===B.New).length,deleteCount:t.filter(e=>e.updateType===B.Deleted).length,changedCount:t.filter(e=>e.updateType===B.Changed).length}),[t]);return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(F.Ex,{label:"New",value:r,type:r>0?"error":"default",tooltip:`Current has ${r} packages which not found in Baseline`}),(0,i.jsx)(F.Ex,{label:"Deleted",value:n,type:n>0?"error":"default",tooltip:`Current delete ${n} packages than Baseline`}),(0,i.jsx)(F.Ex,{label:"Changed",value:l,type:l>0?"error":"default",tooltip:`Current has ${l} changed packages than Baseline`})]})},er=e=>{let{baseline:t,current:r}=e,{packages:n=[]}=t||{},{packages:l=[]}=r||{},i={},s=(e,t)=>{i[e.name]||(i[e.name]={name:e.name,updateType:B.NotChanged}),i[e.name][t]||(i[e.name][t]=[]),i[e.name][t].push(e)};n.forEach(e=>s(e,"baseline")),l.forEach(e=>s(e,"current"));let a=[],o=[];return Object.values(i).forEach(e=>{ee(e)?a.push(e):o.push(e)}),a.concat(o).map(e=>({...e,updateType:X(e)}))},en=e=>{let{baseline:t,current:r}=e,{packages:n=[]}=t||{},{packages:l=[]}=r||{};if(!n.length&&!l.length)return(0,i.jsx)(S.A,{});let a=(0,s.useMemo)(()=>(0,N.s)(n.concat(l).map(e=>e.name)),[n,l]),[c,p]=(0,s.useState)([]),[x,m]=(0,s.useState)([]),f=(0,s.useMemo)(()=>er({baseline:t,current:r}),[t,r]),g=(0,s.useMemo)(()=>f.filter(e=>x.length?x.indexOf(e.updateType)>-1:!c.length||c.indexOf(e.name)>-1),[f,c,x]);return(0,i.jsxs)(y.A,{gutter:[v.or.BasePadding,v.or.BasePadding],children:[(0,i.jsx)(b.A,{span:24,style:{marginTop:16},children:(0,i.jsxs)(d.A,{wrap:!0,children:[(0,i.jsx)(M.A,{mode:"multiple",placeholder:"Filter by package names",style:{width:400},options:a.map(e=>{let t=f.find(t=>t.name===e);return t&&ee(t)?{label:(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:e}),(0,i.jsx)(J,{type:X(t)})]}),value:e}:{label:e,value:e}}),allowClear:!0,onChange:e=>{p(e)}}),(0,i.jsx)(M.A,{mode:"multiple",placeholder:"Filter by changed type",style:{width:200},options:Object.values(B).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{m(e)}})]})}),(0,i.jsx)(b.A,{span:24,children:(0,i.jsx)(k.A,{bordered:!0,sticky:{offsetHeader:54},pagination:{pageSize:20,size:"small"},dataSource:g,rowKey:e=>e.name,columns:[{title:()=>(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:"Package Name"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsx)(o.A,{title:`Filtered Package Count is ${g.length}, Total Package Count is ${f.length}`,children:(0,i.jsxs)(u.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400},children:[g.length," / ",f.length]})})]}),render:(e,t)=>t.updateType!==B.NotChanged?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:t.name}),(0,i.jsx)(J,{type:t.updateType})]}):t.name},{title:()=>(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:"Current"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsx)(et,{dataSource:f})]}),children:[{title:"Version",render:(e,t)=>t.current?(0,i.jsx)(d.A,{direction:"vertical",children:t.current.map(e=>(0,i.jsx)(F.Ex,{label:"version",value:e.version,tooltip:e.root,type:t.updateType===B.Deleted?"error":t.updateType===B.Changed?"warn":"default"},e.version))}):null},{title:"Parsed Size",render:(e,t)=>{let r=(0,P.x)(t.current,e=>e.size.parsedSize),n=()=>(0,i.jsx)(A.vh,{baseline:(0,P.x)(t.baseline,e=>e.size.parsedSize),current:r});return t.current?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{strong:t.updateType!==B.NotChanged,children:(0,w.formatSize)(r)}),(0,i.jsx)(n,{})]}):(0,i.jsx)(n,{})}}]},{title:"Baseline",children:[{title:"Version",render:(e,t)=>t.baseline?(0,i.jsx)(d.A,{direction:"vertical",children:t.baseline.map(e=>(0,i.jsx)(F.Ex,{label:"version",value:e.version,tooltip:e.root,type:t.updateType===B.Deleted?"error":t.updateType===B.Changed?"warn":"default"},e.version))}):null},{title:"Parsed Size",render:(e,t)=>{if(t.baseline){let e=(0,P.x)(t.baseline,e=>e.size.parsedSize);return(0,i.jsx)(u.A.Text,{children:(0,w.formatSize)(e)})}return null}}]}]})})]})},el=e=>{let{baseline:t,current:r,assetsDiffResult:n}=e,l=(0,w.useUniqModules)(t.moduleGraph.modules),s=(0,w.useUniqModules)(r.moduleGraph.modules),a=(0,w.useDuplicatePackagesByErrors)(t.errors),o=(0,w.useDuplicatePackagesByErrors)(r.errors),c=(0,w.useModuleGraph)(t.moduleGraph),h=(0,w.useModuleGraph)(r.moduleGraph),p=t.root,x=r.root,m=er({baseline:t.packageGraph,current:r.packageGraph}),f=[{title:["Bundle Size"],value:[n.all.total]},{title:["Total JS","Initial JS"],value:[n.js.total,n.js.initial]},{title:["Total CSS","Initial CSS"],value:[n.css.total,n.css.initial]},{title:["Images","Fonts","Media"],value:[n.imgs.total,n.fonts.total,n.media.total]},{title:["HTML"],value:[n.html.total]},{title:["Others"],value:[n.others.total]}];return(0,i.jsxs)(y.A,{gutter:[v.or.BasePadding,v.or.BasePadding],wrap:!0,style:{marginBottom:v.or.BasePadding},children:[f.map(e=>(0,i.jsx)(b.A,{style:{minWidth:335},children:(0,i.jsx)(A.aq,{titles:e.title,datas:e.value,showPercentInTitle:!0})},e.title.join(","))),(0,i.jsx)(b.A,{style:{minWidth:335},children:(0,i.jsx)(A.aq,{titles:["Duplicate Packages"],datas:[{size:{baseline:a.length,current:o.length},count:{baseline:a.length,current:o.length},percent:0,state:j.Client.RsdoctorClientDiffState.Equal}],formatter:(e,n)=>(0,i.jsx)(C.P6,{duplicatePackages:"baseline"===n?a:o,moduleGraph:"baseline"===n?c:h,cwd:"baseline"===n?p:x,buttonProps:{size:"small"},moduleCodeMap:"baseline"===n?t.moduleCodeMap:r.moduleCodeMap})})}),(0,i.jsx)(b.A,{style:{minWidth:335},children:(0,i.jsx)(A.aq,{titles:["Modules"],datas:[{size:{baseline:l.length,current:s.length},count:{baseline:l.length,current:s.length},percent:0,state:j.Client.RsdoctorClientDiffState.Equal}],formatter:(e,t)=>{if("baseline"===t)return e;let r=H.TS.diffSize(l.length,s.length);return(0,i.jsxs)(d.A,{style:{fontSize:"inherit"},children:[(0,i.jsx)(u.A.Text,{style:{fontSize:"inherit"},children:e}),(0,i.jsx)(A.QE,{...r})]})}})}),(0,i.jsx)(b.A,{style:{minWidth:335},children:(0,i.jsx)(A.aq,{titles:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{style:{color:"inherit"},children:"Packages"}),(0,i.jsx)(et,{dataSource:m})]},"0")],datas:[{size:{baseline:m.filter(e=>e.baseline).length,current:m.filter(e=>e.current).length},count:{baseline:m.filter(e=>e.baseline).length,current:m.filter(e=>e.current).length},percent:0,state:j.Client.RsdoctorClientDiffState.Equal}],formatter:(e,t)=>"baseline"===t?e:(0,i.jsx)(d.A,{children:e})})})]})},ei=e=>{let{assetsDiffResult:t}=e,r=[{type:"JS",data:t.js},{type:"CSS",data:t.css},{type:"Imgs",data:t.imgs},{type:"Fonts",data:t.fonts},{type:"Media",data:t.media},{type:"HTML",data:t.html},{type:"Others",data:t.others}];return(0,i.jsx)(k.A,{bordered:!0,pagination:!1,dataSource:r,rowKey:e=>e.type,style:{marginTop:v.or.BasePadding-v.or.BasePadding/4},columns:[{title:"File Type",dataIndex:"type",key:"type",render:e=>(0,i.jsx)(u.A.Text,{strong:!0,children:e})},{title:"Size",dataIndex:"data",key:"size",children:[{title:"Current",dataIndex:"data",key:"csize",render:e=>{let t=(0,i.jsxs)(s.Fragment,{children:[(0,i.jsx)(u.A.Text,{strong:!0,children:(0,w.formatSize)(e.total.size.current)}),(0,i.jsx)(A.QE,{percent:e.total.percent,state:e.total.state}),V(e.total.size.baseline,e.total.size.current,e.total.state)]});return e.initial?(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"Total"}),t]}),(0,i.jsxs)(d.A,{children:[(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"Initial"}),(0,i.jsx)(u.A.Text,{strong:!0,children:(0,w.formatSize)(e.initial.size.current)}),(0,i.jsx)(A.QE,{percent:e.initial.percent,state:e.initial.state}),V(e.initial.size.baseline,e.initial.size.current,e.initial.state)]})]}):(0,i.jsx)(d.A,{children:t})}},{title:"Baseline",dataIndex:"data",key:"bsize",render:e=>{let t=(0,i.jsx)(u.A.Text,{children:(0,w.formatSize)(e.total.size.baseline)});return e.initial?(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"Total"}),t]}),(0,i.jsxs)(d.A,{children:[(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"Initial"}),(0,i.jsx)(u.A.Text,{children:(0,w.formatSize)(e.initial.size.baseline)})]})]}):t}}]},{title:"Count",dataIndex:"data",key:"count",children:[{title:"Current",dataIndex:"data",key:"ccount",render:e=>{let t=(0,i.jsx)(u.A.Text,{strong:!0,children:e.total.count.current});return e.initial?(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"Total"}),t]}),(0,i.jsxs)(d.A,{children:[(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"Initial"}),(0,i.jsx)(u.A.Text,{strong:!0,children:e.initial.count.current})]})]}):(0,i.jsx)(d.A,{children:t})}},{title:"Baseline",dataIndex:"data",key:"bcount",render:e=>{let t=(0,i.jsx)(u.A.Text,{children:e.total.count.baseline});return e.initial?(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"Total"}),t]}),(0,i.jsxs)(d.A,{children:[(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"Initial"}),(0,i.jsx)(u.A.Text,{children:e.initial.count.baseline})]})]}):(0,i.jsx)(d.A,{children:t})}}]}]})};var es=r(26845),ea=r(87836),eo=r(48787),ed=r(81740),ec=r(5574);let eu={JS:[j.Constants.JSExtension],CSS:[j.Constants.CSSExtension],HTML:[j.Constants.HtmlExtension],Imgs:j.Constants.ImgExtensions,Fonts:j.Constants.FontExtensions,Media:j.Constants.MediaExtensions,Others:[]},eh=Object.values(eu).flat(),ep=e=>{let{data:t}=e,r=(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{strong:!0,children:t.alias}),(0,i.jsx)(o.A,{title:(0,i.jsxs)(d.A,{style:{color:"inherit"},direction:"vertical",children:[t.current?(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["Current realpath: ",t.current.path]}):null,t.baseline?(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["Baseline realpath: ",t.baseline.path]}):null]}),children:(0,i.jsx)(f.A,{})})]});return t.baseline&&!t.current?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(es.A,{style:{color:v.Q1.Red}}),r]}):!t.baseline&&t.current?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(ea.A,{style:{color:v.Q1.Green}}),r]}):t.baseline&&t.current?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(eo.A,{style:{color:v.Q1.Yellow}}),r]}):r},ex=e=>{let{baseline:t,current:r,outputFilename:n}=e,[l,a]=(0,s.useState)(),[c,x]=(0,s.useState)([]),[m,g]=(0,s.useState)([]),[C,S]=(0,s.useState)(I.Size),[N,O]=(0,s.useState)(null),[z,L]=(0,s.useState)(null),{assets:D}=t.chunkGraph,{assets:F}=r.chunkGraph,$=(0,s.useMemo)(()=>{let e={};return N&&z?e.choose={alias:`${N}
5
+ ${z}`,current:F.find(e=>e.path===z),baseline:D.find(e=>e.path===N)}:(D.forEach(t=>{let r=H.TS.formatAssetName(t.path,n);e[r]?console.warn("[Baseline Asset Exists]: ",t,e):e[r]={alias:r,baseline:t}}),F.forEach(t=>{let r=H.TS.formatAssetName(t.path,n);e[r]||(e[r]={alias:r}),e[r].current=t})),Object.values(e)},[D,F,N,z]),G=(0,s.useMemo)(()=>{let e=$.slice();if(l&&(e=e.filter(e=>e.alias.indexOf(l)>-1)),c.length){let t=c.map(e=>eu[e]).flat(),r=c.indexOf("Others")>-1;e=e.filter(e=>{let n=e.baseline||e.current;return!!H.TS.isAssetMatchExtensions(n,t)||!!r&&!H.TS.isAssetMatchExtensions(n,eh)})}if(m.length&&(e=e.filter(e=>e.baseline&&!e.current?m.includes(B.Deleted):!e.baseline&&e.current?m.includes(B.New):!!e.baseline&&!!e.current&&(e.baseline.size===e.current.size?m.includes(B.NotChanged):m.includes(B.Changed)))),C)if(C===I.Name)e.sort((e,t)=>e.alias.localeCompare(t.alias));else{let{prev:l,others:i}=e.reduce((e,t)=>(t.current?t.baseline?e.prev.unshift(t):e.prev.push(t):e.others.push(t),e),{prev:[],others:[]});e=[...l.sort((e,l)=>{if(l.current&&e.current){if(C===I.Delta){let{percent:i}=H.TS.diffAssetsByExtensions(t.chunkGraph,r.chunkGraph,t=>H.TS.formatAssetName(t.path,n)===e.alias),{percent:s}=H.TS.diffAssetsByExtensions(t.chunkGraph,r.chunkGraph,e=>H.TS.formatAssetName(e.path,n)===l.alias);return s-i}return l.current.size-e.current.size}return -1}),...i]}return e},[$,l,c,m,C]),W=(0,s.useMemo)(()=>(0,P.x)(G,e=>e.current?e.current.size:0)||0,[G]),U=(0,s.useMemo)(()=>(0,P.x)(G,e=>e.baseline?e.baseline.size:0)||0,[G]);return(0,i.jsxs)(y.A,{gutter:[v.or.BasePadding,v.or.BasePadding],children:[(0,i.jsxs)(b.A,{span:24,children:[(0,i.jsxs)(d.A,{wrap:!0,children:[(0,i.jsx)(E.E,{icon:(0,i.jsx)(R.A,{}),label:"",labelStyle:{width:45},placeholder:"Search by file name",onChange:e=>{a(e)}}),(0,i.jsx)(M.A,{mode:"multiple",placeholder:"Filter by file type",style:{width:250},options:Object.keys(eu).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{x(e)}}),(0,i.jsx)(M.A,{mode:"multiple",placeholder:"Filter by file changed type",style:{width:200},options:Object.values(B).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{g(e)}}),(0,i.jsx)(M.A,{suffixIcon:(0,i.jsx)(ed.A,{}),options:Object.values(I).map(e=>({label:e,value:e})),value:C,onChange:e=>{S(e)}})]}),(0,i.jsxs)(y.A,{style:{marginTop:10},gutter:[6,6],children:[(0,i.jsx)(b.A,{children:(0,i.jsx)(p.Ay,{children:"Select Baseline Asset and Current Asset to Diff "})}),(0,i.jsx)(b.A,{children:(0,i.jsx)(M.A,{allowClear:!0,placeholder:"select baseline assets",showSearch:!0,style:{width:300},options:Object.values(t.chunkGraph.assets).map(e=>({label:e.path,value:e.path})),onChange:e=>O(e)})}),(0,i.jsx)(b.A,{children:(0,i.jsx)(M.A,{allowClear:!0,placeholder:"select current assets",showSearch:!0,style:{width:300},options:Object.values(r.chunkGraph.assets).map(e=>({label:e.path,value:e.path})),onChange:e=>L(e)})})]})]}),(0,i.jsx)(b.A,{span:24,children:(0,i.jsx)(k.A,{bordered:!0,sticky:{offsetHeader:54},pagination:{pageSize:20,size:"small"},dataSource:G,rowKey:e=>e.alias,expandable:{expandedRowRender:e=>(0,i.jsx)("div",{style:{margin:v.or.BasePadding/3},children:(0,i.jsx)(Q,{data:e,baseline:t,current:r})}),columnTitle:(0,i.jsx)(o.A,{title:"Click to expand row to see the modules which the chunk contains",placement:"left",children:(0,i.jsx)(ec.A,{style:{cursor:"pointer"}})})},columns:[{title:(0,i.jsxs)(o.A,{title:(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["filtered assets is ",G.length]}),(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["total assets is ",$.length]})]}),children:[(0,i.jsx)(u.A.Text,{strong:!0,children:"Assets"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsxs)(u.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400,marginRight:4},children:[G.length,"/",$.length]}),(0,i.jsx)(f.A,{})]}),render:(e,t)=>(0,i.jsx)(ep,{data:t})},{title:()=>{let e=(0,w.formatSize)(W),t=H.TS.diffSize(U,W);return(0,i.jsxs)(o.A,{title:`Current size is ${e}, Delta is ${(0,w.formatPercent)(t.percent)}`,children:[(0,i.jsx)(u.A.Text,{strong:!0,children:"Current"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsxs)(u.A.Text,{style:{fontSize:10,fontWeight:400,marginRight:4},children:[(0,i.jsx)(u.A.Text,{style:{fontSize:"inherit",marginRight:8},children:e}),(0,i.jsx)(A.vh,{fontSize:"inherit",baseline:U,current:W}),V(U,W,U>W?j.Client.RsdoctorClientDiffState.Down:j.Client.RsdoctorClientDiffState.Up,{fontSize:10,fontWeight:400,marginLeft:4})]}),(0,i.jsx)(f.A,{})]})},render:(e,l)=>{if(l.current){let{percent:e,state:s}=H.TS.diffAssetsByExtensions(t.chunkGraph,r.chunkGraph,e=>H.TS.formatAssetName(e.path,n)===l.alias),a=H.TS.isInitialAsset(l.current,r.chunkGraph.chunks);return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:(0,w.formatSize)(l.current.size)}),(0,i.jsx)(A.QE,{percent:e,state:s}),a?(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"initial"}):null]})}return"-"}},{title:()=>{let e=(0,w.formatSize)(U);return(0,i.jsxs)(o.A,{title:`Baseline size is ${e}`,children:[(0,i.jsx)(u.A.Text,{strong:!0,children:"Baseline"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsx)(u.A.Text,{style:{fontSize:10,fontWeight:400,marginRight:4},children:e}),(0,i.jsx)(f.A,{})]})},render:(e,r)=>{if(r.baseline){let e=H.TS.isInitialAsset(r.baseline,t.chunkGraph.chunks);return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:(0,w.formatSize)(r.baseline.size)}),e?(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"initial"}):null]})}return"-"}},{title:"Actions",key:"actions",render:(e,t)=>{var r,n;return(0,i.jsx)(_,{file:t.alias,data:[{baseline:null==(r=t.baseline)?void 0:r.content,current:null==(n=t.current)?void 0:n.content,group:"assets"}]})}}]})})]})};var em=r(74579);let ef=e=>{var t;let{api:r,body:n,children:l,manifests:s}=e,a=(0,w.useUrlQuery)(),o=window[j.Constants.WINDOW_RSDOCTOR_TAG];if((null==o?void 0:o.baseline)&&(null==o?void 0:o.current)){let e=JSON.parse(H.oG.decompressText(o.baseline)),t=JSON.parse(H.oG.decompressText(o.current));return(0,i.jsx)(i.Fragment,{children:l(e,t)})}if(null==s?void 0:s.length)return(0,i.jsx)(i.Fragment,{children:l(s[0].data,s[1].data)});let[d,c]=(null==(t=a[j.Client.RsdoctorClientUrlQuery.BundleDiffFiles])?void 0:t.split(","))||[];return(0,i.jsx)(em.zW,{api:r,body:n,manifestLoader:d?()=>(0,w.fetchManifest)(d):void 0,children:e=>(0,i.jsx)(em.zW,{api:r,body:n,manifestLoader:c?()=>(0,w.fetchManifest)(c):void 0,children:t=>l(e,t)})})},eg=e=>{let{manifests:t}=e;return(0,s.useEffect)(()=>{console.log("BundleDiff Manifests: ",t)},[t]),(0,i.jsx)(ef,{api:j.SDK.ServerAPI.API.GetBundleDiffSummary,manifests:t,children:(e,t)=>{let r=e.chunkGraph===t.chunkGraph,n=e.chunkGraph,l=r?n:t.chunkGraph,s=H.TS.getAssetsDiffResult(n,l);return(0,i.jsxs)("div",{children:[(0,i.jsxs)(a.A.Group,{children:[(0,i.jsx)(o.A,{placement:"leftBottom",title:(0,i.jsx)(d.A,{direction:"vertical",children:[{title:"Baseline",data:e},{title:"Current",data:t}].map(e=>{let{title:t,data:r}=e;return(0,i.jsx)(c.A,{size:"small",children:(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsx)(u.A.Text,{strong:!0,children:t}),(0,i.jsxs)(d.A,{style:{fontSize:10},children:[(0,i.jsx)(u.A.Text,{style:{fontSize:"inherit",width:30,display:"inline-block"},children:"Hash"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsx)(u.A.Text,{type:"secondary",style:{fontSize:"inherit"},children:r.hash||"-"})]}),r.cloudManifestUrl?(0,i.jsx)(p.Ay,{type:"link",size:"small",style:{padding:0,fontSize:10},onClick:()=>window.open(r.cloudManifestUrl),children:"Open File"}):null]})},t)})}),children:(0,i.jsx)(a.A,{icon:(0,i.jsx)(f.A,{})})}),(0,i.jsx)(x.A,{title:(0,i.jsxs)(u.A.Text,{children:["Are you sure to",(0,i.jsx)(u.A.Text,{strong:!0,children:" re-upload "}),"json files for bundle diff?"]}),onConfirm:()=>{},okText:"Yes",cancelText:"Cancel",placement:"topLeft",trigger:"hover",children:(0,i.jsx)(a.A,{icon:(0,i.jsx)(g.A,{})})}),(0,i.jsx)(a.A.BackTop,{})]}),(0,i.jsx)(el,{baseline:e,current:t,onlyBaseline:r,assetsDiffResult:s}),(0,i.jsx)(m.A,{defaultActiveKey:"Overview",tabBarStyle:{marginBottom:v.or.BasePadding/3},items:[{label:"Overview",key:"Overview",children:(0,i.jsx)(ei,{assetsDiffResult:s})},{label:"Assets",key:"Assets",children:(0,i.jsx)(ex,{outputFilename:e.outputFilename,baseline:e,current:t})},{label:"Modules",key:"Modules",children:(0,i.jsx)(Y,{baseline:e,current:t,onlyBaseline:r,assetsDiffResult:s})},{label:"Packages",key:"Packages",children:(0,i.jsx)(en,{baseline:e.packageGraph,current:t.packageGraph})}].map(e=>({...e,label:(0,i.jsx)(u.A.Text,{strong:!0,children:e.label})}))})]})}})},ej=j.Client.RsdoctorClientRoutes.BundleDiff,ev=()=>(0,i.jsx)(eg,{manifests:[]})},14296(e,t,r){r.d(t,{B:()=>v});var n=r(65723),l=r(94959),i=r(15248),s=r(83021),a=r(94042),o=r(29656),d=r(66287),c=r(66020),u=r(13078),h=r.n(u),p=r(22155),x=r(27618),m=r(71720),f=r(60338),g=r(8302);let j=(0,x.$N)();function v(e){let{module:t,moduleGraph:r,ranges:u,toLine:v,setEditorData:y,source:b}=e,A=(0,p.useRef)(),w=(0,p.useRef)([]),C=(0,p.useRef)([]),S=(0,p.useRef)(),M=(0,p.useRef)(!1),[k,N]=(0,p.useState)("");return((0,p.useEffect)(()=>{let{isPreferSource:e}=t;M.current=!0,N(b.source||e?b.source:b.transformed),setTimeout(()=>{var e,n;C.current=(null==(n=A.current)||null==(e=n.getModel())?void 0:e.deltaDecorations(C.current,(0,g.L1)(t,r)))??[]},200)},[t,b]),(0,p.useEffect)(()=>{function e(){var e;let t=null==(e=A.current)?void 0:e.getModel();t&&(w.current=t.deltaDecorations(w.current,u.map(e=>({range:(0,x.qK)(e,f.Q),options:{stickiness:1,inlineClassName:"tree-shaking-statement-side-effect",isWholeLine:!1,showIfCollapsed:!0}}))),A.current&&"number"==typeof v&&S.current!==v&&(S.current=v,A.current.revealLine(v,0)))}M?setTimeout(e,300):e(),M.current=!1},[u,v]),(0,p.useEffect)(()=>{let e=e=>{let t=(0,m.U1)(e.target);if(t){let e=r.getModuleById(t.module);e&&y(e,[t.range],t.range.start.line)}};return document.body.addEventListener("click",e),()=>{document.body.removeEventListener("click",e)}},[]),t)?(0,n.jsx)(a.A,{title:(0,n.jsx)(o.A,{title:t.path,children:(0,n.jsxs)(d.A,{children:[(0,n.jsx)(c.A.Text,{children:h().basename(t.path)}),(0,n.jsx)(l.A,{})]})}),className:"tree-shaking-editor",children:(0,n.jsx)(s.Ay,{theme:"vs-dark",language:(0,x.rZ)(t.path),value:k,loading:(0,n.jsx)(i.A,{style:{fontSize:30}}),options:j,onMount:e=>{A.current=e}})}):(0,n.jsx)("div",{children:"请选择要查看的模块"})}},71720(e,t,r){function n(e,t,r){return`<a data-href="data-module=${e}&data-range=${encodeURIComponent(JSON.stringify(t))}">${r}</a>`}function l(e){if("a"!==e.tagName.toLocaleLowerCase())return;let t=e.getAttribute("data-href")??"",r={module:-1,range:{start:{line:1,column:0},end:{line:1,column:0}}};for(let e of t.split("&")){let[t,n]=e.split("=");if("data-module"===t){r.module=Number.parseInt(n,10);continue}"data-range"===t&&(r.range=JSON.parse(decodeURIComponent(n)))}return r}r.d(t,{U1:()=>l,mJ:()=>n})},60338(e,t,r){function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{Q:()=>l});class l{isEmpty(){return l.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return l.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber)&&!(t.lineNumber>e.endLineNumber)&&(t.lineNumber!==e.startLineNumber||!(t.column<e.startColumn))&&(t.lineNumber!==e.endLineNumber||!(t.column>e.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber)&&!(t.lineNumber>e.endLineNumber)&&(t.lineNumber!==e.startLineNumber||!(t.column<=e.startColumn))&&(t.lineNumber!==e.endLineNumber||!(t.column>=e.endColumn))}containsRange(e){return l.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber)&&!(t.endLineNumber<e.startLineNumber)&&!(t.startLineNumber>e.endLineNumber)&&!(t.endLineNumber>e.endLineNumber)&&(t.startLineNumber!==e.startLineNumber||!(t.startColumn<e.startColumn))&&(t.endLineNumber!==e.endLineNumber||!(t.endColumn>e.endColumn))}strictContainsRange(e){return l.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber)&&!(t.endLineNumber<e.startLineNumber)&&!(t.startLineNumber>e.endLineNumber)&&!(t.endLineNumber>e.endLineNumber)&&(t.startLineNumber!==e.startLineNumber||!(t.startColumn<=e.startColumn))&&(t.endLineNumber!==e.endLineNumber||!(t.endColumn>=e.endColumn))}plusRange(e){return l.plusRange(this,e)}static plusRange(e,t){let r,n,i,s;return t.startLineNumber<e.startLineNumber?(r=t.startLineNumber,n=t.startColumn):t.startLineNumber===e.startLineNumber?(r=t.startLineNumber,n=Math.min(t.startColumn,e.startColumn)):(r=e.startLineNumber,n=e.startColumn),t.endLineNumber>e.endLineNumber?(i=t.endLineNumber,s=t.endColumn):t.endLineNumber===e.endLineNumber?(i=t.endLineNumber,s=Math.max(t.endColumn,e.endColumn)):(i=e.endLineNumber,s=e.endColumn),new l(r,n,i,s)}intersectRanges(e){return l.intersectRanges(this,e)}static intersectRanges(e,t){let r=e.startLineNumber,n=e.startColumn,i=e.endLineNumber,s=e.endColumn,a=t.startLineNumber,o=t.startColumn,d=t.endLineNumber,c=t.endColumn;return(r<a?(r=a,n=o):r===a&&(n=Math.max(n,o)),i>d?(i=d,s=c):i===d&&(s=Math.min(s,c)),r>i||r===i&&n>s)?null:new l(r,n,i,s)}equalsRange(e){return l.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return l.getEndPosition(this)}static getEndPosition(e){return new i(e.endLineNumber,e.endColumn)}getStartPosition(){return l.getStartPosition(this)}static getStartPosition(e){return new i(e.startLineNumber,e.startColumn)}toString(){return`[${this.startLineNumber},${this.startColumn} -> ${this.endLineNumber},${this.endColumn}]`}setEndPosition(e,t){return new l(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new l(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return l.collapseToStart(this)}static collapseToStart(e){return new l(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return l.collapseToEnd(this)}static collapseToEnd(e){return new l(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new l(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return new l(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new l(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber)&&(e.endLineNumber!==t.startLineNumber||!(e.endColumn<t.startColumn))&&!(t.endLineNumber<e.startLineNumber)&&(t.endLineNumber!==e.startLineNumber||!(t.endColumn<e.startColumn))}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber)&&(e.endLineNumber!==t.startLineNumber||!(e.endColumn<=t.startColumn))&&!(t.endLineNumber<e.startLineNumber)&&(t.endLineNumber!==e.startLineNumber||!(t.endColumn<=e.startColumn))}static compareRangesUsingStarts(e,t){if(e&&t){let r=0|e.startLineNumber,n=0|t.startLineNumber;if(r===n){let r=0|e.startColumn,n=0|t.startColumn;if(r===n){let r=0|e.endLineNumber,n=0|t.endLineNumber;return r===n?(0|e.endColumn)-(0|t.endColumn):r-n}return r-n}return r-n}return!!e-!!t}static compareRangesUsingEnds(e,t){if(e.endLineNumber===t.endLineNumber)return e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn;return e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}constructor(e,t,r,l){n(this,"startLineNumber",void 0),n(this,"startColumn",void 0),n(this,"endLineNumber",void 0),n(this,"endColumn",void 0),e>r||e===r&&t>l?(this.startLineNumber=r,this.startColumn=l,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=r,this.endColumn=l)}}class i{with(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lineNumber,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.column;return e===this.lineNumber&&t===this.column?this:new i(e,t)}delta(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.with(this.lineNumber+e,this.column+t)}equals(e){return i.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return i.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return i.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){let r=0|e.lineNumber,n=0|t.lineNumber;return r===n?(0|e.column)-(0|t.column):r-n}clone(){return new i(this.lineNumber,this.column)}toString(){return`(${this.lineNumber},${this.column})`}static lift(e){return new i(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}constructor(e,t){n(this,"lineNumber",void 0),n(this,"column",void 0),this.lineNumber=e,this.column=t}}},49815(e,t,r){r.d(t,{$:()=>s});var n=r(65723),l=r(94042),i=r(87417);function s(){return(0,n.jsx)(l.A,{title:"Tree Shaking Analysis",bodyStyle:{paddingTop:0},className:"tree-shaking-page",children:(0,n.jsx)(i.A,{style:{marginTop:30}})})}},36797(e,t,r){r.d(t,{oK:()=>A});var n=r(65723),l=r(29656),i=r(47748),s=r(32354),a=r(66287),o=r(66020),d=r(60503),c=r(36025),u=r(78172),h=r(22155),p=r(57474),x=r.n(p),m=r(30786),f=r(8302),g=r(98685);function j(e,t){if(!e)return(0,n.jsx)("div",{children:"Can not find declaration."});let{module:r}=e,s=r.isPreferSource?e.position.source:e.position.transformed;return(0,n.jsx)(l.A,{title:`${r.path}, line ${s.start.line}`,children:(0,n.jsx)(i.Ay,{type:"link",onClick:()=>t(r,[s],s.start.line),children:"Move To"})})}function v(e){let[t,r]=(0,h.useState)(""),[l,o]=(0,h.useState)(""),d=(0,h.useRef)(null),c=(e,t,n)=>{t(),r(e[0]),o(n)};return{filterDropdown:t=>{let{setSelectedKeys:l,selectedKeys:o,confirm:h,clearFilters:p,close:x}=t;return(0,n.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,n.jsx)(s.A,{ref:d,placeholder:`Search ${e}`,value:o[0],onChange:e=>l(e.target.value?[e.target.value]:[]),onPressEnter:()=>c(o,h,e),style:{marginBottom:8,display:"block"}}),(0,n.jsxs)(a.A,{children:[(0,n.jsx)(i.Ay,{type:"primary",onClick:()=>c(o,h,e),icon:(0,n.jsx)(u.A,{}),size:"small",style:{width:90},children:"Search"}),(0,n.jsx)(i.Ay,{onClick:()=>p&&void(p(),r("")),size:"small",style:{width:90},children:"Reset"}),(0,n.jsx)(i.Ay,{type:"link",size:"small",onClick:x,children:"close"})]})]})},filterIcon:e=>(0,n.jsx)(u.A,{style:{color:e?"#1890ff":void 0}}),onFilter:(t,r)=>r[e].toString().toLowerCase().includes(t.toLowerCase()),render:r=>l===e?(0,n.jsx)(x(),{highlightStyle:{backgroundColor:"#ffc069",padding:0},searchWords:[t],autoEscape:!0,textToHighlight:r?r.toString():""}):r}}let y=e=>{let{module:t,moduleGraph:r,setEditorData:s}=e,u=(0,h.useMemo)(()=>r.getModuleGraphModule(t).getSideEffects(),[t]),p=u.map((e,r)=>{let{variable:n,name:l,identifier:i}=e;return{key:r,name:l,identifier:t.isPreferSource?i.position.source:i.position.transformed,declaration:null==n?void 0:n.identifier}}).sort((e,t)=>e.name===t.name?e.identifier.start.line>t.identifier.start.line?1:-1:e.name>t.name?1:-1).reduce((e,t)=>{let r=e[e.length-1];return r&&r.name===t.name?(r.children||(r.children=[]),r.children.push(t)):e.push(t),e},[]),x=[{title:"Name",dataIndex:"name",key:"name",align:"center",...v("name")},{title:"SideEffect",dataIndex:"identifier",key:"identifier",align:"center",render:e=>(0,n.jsx)(l.A,{title:`Current File line ${e.start.line}`,children:(0,n.jsx)(i.Ay,{type:"link",onClick:()=>s(t,[e],e.start.line),children:"Move To"})})},{title:"Declaration",dataIndex:"declaration",key:"declaration",align:"center",render:e=>j(e,s)}],f=(0,n.jsx)(h.Fragment,{children:(0,n.jsxs)(a.A,{style:{fontWeight:400},children:["Import",(0,n.jsx)(o.A.Text,{strong:!0,children:p.length}),"variables",(0,n.jsx)(d.A,{type:"vertical"}),(0,n.jsx)(o.A.Text,{strong:!0,children:u.length}),"sideEffects"]})});return(0,n.jsx)(m.Zp,{style:{marginBottom:10},title:f,className:"tree-shaking-export-table",children:(0,n.jsx)(c.A,{size:"small",dataSource:p,columns:x,pagination:!1,scroll:{y:600}})})},b=e=>{let{module:t,moduleGraph:r,setEditorData:s}=e,u=(0,h.useMemo)(()=>r.getModuleGraphModule(t).getExports(),[t]),p=u.filter(e=>0===e.getSideEffects().length),x=(0,n.jsxs)(h.Fragment,{children:[(0,n.jsxs)(a.A,{style:{fontWeight:400},children:["Export",(0,n.jsx)(o.A.Text,{strong:!0,children:u.length})]}),u.length>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.A,{type:"vertical"}),(0,n.jsxs)(o.A.Text,{style:{fontWeight:400},code:!0,children:[(0,n.jsx)(o.A.Text,{children:"Unused"}),(0,n.jsx)(d.A,{type:"vertical"}),(0,n.jsx)(o.A.Text,{strong:!0,children:p.length})]}),(0,n.jsx)(d.A,{type:"vertical"}),(0,n.jsxs)(o.A.Text,{style:{fontWeight:400},code:!0,children:[(0,n.jsx)(o.A.Text,{children:"Used"}),(0,n.jsx)(d.A,{type:"vertical"}),(0,n.jsx)(o.A.Text,{strong:!0,children:u.length-p.length})]})]}):""]}),y=u.map((e,t)=>{let{variable:r}=e;return{key:t,name:e.name,declaration:null==r?void 0:r.identifier,used:e.getSideEffects().map(e=>{let{module:t,identifier:r}=e,n=(null==t?void 0:t.isPreferSource)?r.position.source:r.position.transformed;if(t&&n)return{module:t,range:n}}).filter(g.isDef)}}),b=[{title:"Name",dataIndex:"name",key:"name",align:"center",...v("name")},{title:"Declaration",dataIndex:"declaration",key:"declaration",align:"center",render:e=>j(e,s)},{title:"Info",dataIndex:"used",key:"used",align:"center",sorter:(e,t)=>e.used.length-t.used.length,sortDirections:["descend","ascend"],render:e=>(0,n.jsxs)("span",{children:["Used ",e.length," times"]})}];return(0,n.jsx)(m.Zp,{title:x,className:"tree-shaking-export-table",children:(0,n.jsx)(c.A,{size:"small",dataSource:y,columns:b,pagination:!1,scroll:{y:600},expandable:{expandedRowRender:e=>(0,n.jsxs)("div",{className:"tree-shaking-side-effect-list",children:[(0,n.jsx)(o.A.Text,{children:"List of SideEffect:"}),e.used.map(e=>{let{module:t,range:r}=e;return(0,n.jsx)(l.A,{title:`${t.path}:${r.start.line}`,children:(0,n.jsx)(i.Ay,{className:"tree-shaking-side-effect-list-item",type:"link",onClick:()=>{s(t,[r],r.start.line)},children:`${(0,f.jx)(t.path)}:${r.start.line}`})},t.id)})]}),rowExpandable:e=>e.used.length>0}})})},A=e=>"side-effect"===e.kind?(0,n.jsx)(y,{...e}):(0,n.jsx)(b,{...e})},8302(e,t,r){r.d(t,{EV:()=>g,L1:()=>y,jx:()=>v,ut:()=>j});var n=r(65723),l=r(44751),i=r(66287),s=r(87655),a=r(67647),o=r(43079),d=r(13078),c=r.n(d),u=r(22155),h=r(27618),p=r(78899),x=r(98685),m=r(71720),f=r(60338);function g(e,t,r,a,o,d){return(0,u.useMemo)(()=>(0,x.createFileStructures)({files:e.map(e=>e.path),cwd:d,fileTitle(e,r){let a=t.getModules().find(t=>t.path===e&&t.kind===l.nV.kind.Normal),d=t.getModuleGraphModule(a),c=d.getExports().filter(e=>0===e.getSideEffects().length);return(0,n.jsxs)(i.A,{style:{wordBreak:"break-all"},children:[(0,n.jsx)(p.i,{text:r,keyword:e,onClick:()=>o(e)}),d.dynamic?(0,n.jsx)(s.A,{color:"cyan",children:"dynamic"}):"",c.length>0?(0,n.jsxs)(s.A,{color:"green",children:[c.length," Unused"]}):""]})}}),[r,a])}function j(e){return(0,x.mapFileKey)(e,3,e=>!((0,a.J)(e,"__RESOURCEPATH__").indexOf("/node_modules/")>-1))}function v(e){let t="",r=e;for(let e=0;e<3;e++)t=t?`${c().basename(r)}/${t}`:c().basename(r),r=c().dirname(r);return`...${t}`}function y(e,t){let r=t.getModuleGraphModule(e).getOwnExports(),n=r.map(e=>e.variable).filter(e=>!!e);if(0===r.length&&0===n.length)return[];let{isPreferSource:l}=e;return n.map(e=>{let t=l?e.identifier.position.source:e.identifier.position.transformed,r=t&&(0,h.qK)(t,f.Q);if(t&&r)return{range:r,options:{stickiness:1,inlineClassName:"tree-shaking-statement-declaration-identifier",isWholeLine:!1,showIfCollapsed:!0,hoverMessage:{supportHtml:!0,supportThemeIcons:!0,isTrusted:!0,value:function(e){let t=e.getExportInfo();if(!t)return"Can not find SideEffect info.";let r=t.getSideEffects();if(0===r.length)return"Have no sideEffect.";let n=`Used **${r.length}** times:
6
+
7
+ <div data-code="tree-shaking-hover">
8
+ <li>`;for(let e of r){if(!e)continue;let{identifier:t,module:r}=e;if(!r)continue;let{id:l,isPreferSource:i}=r,s=t.getLineCode();n+=`
9
+ <ol>
10
+ ${(0,m.mJ)(l,i?t.position.source:t.position.transformed,function(e,t){let{path:r,isPreferSource:n}=t,l=n?e.position.source.start:e.position.transformed.start,i=`:${l.line??1}:${l.column??0}`;return r.length<=30?`${r}${i}`:`...${r.substring(r.length-30)}${i}`}(t,r))}
11
+ ${s?`<pre>${(0,o.i)(s)}</pre>`:""}
12
+ </ol>`}return n+"\n</li></div>"}(e)}}}}).filter(e=>!!e)}},14415(e,t,r){r.d(t,{V:()=>f});var n=r(91888),l=r(22155),i=r(40799),s=r(67647);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class o{get(e){if(this.manifest)return this.manifest[e]}getData(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data",r=this.get(t);if(r)return r[e]}getKeys(e){return e.split(".")}joinKeys(e){return e.join(".")}dispose(){this.disposed=!0}limit(e,t){if(this.pool.has(e))return this.pool.get(e);let r=t().finally(()=>this.pool.delete(e));return this.pool.set(e,r),r}log(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];console.log(`[${this.constructor.name}]`,...t)}async loadManifest(){return this.manifest}constructor(e){a(this,"manifest",void 0),a(this,"pool",void 0),a(this,"loader",void 0),a(this,"disposed",void 0),a(this,"shardingDataMap",void 0),this.manifest=e,this.pool=new Map,this.disposed=!1,this.shardingDataMap=new Map,this.loader=new i.B_.APIDataLoader(this),console.log("[DataLoader] isLocal: ",this.isLocal())}}var d=r(37503);class c extends o{isLocal(){return!0}async loadData(e){return this.limit(e,async()=>{let[t,...r]=this.getKeys(e),l=this.getData(t);if(!l)return;let a=l;if(i._8.isShardingData(a)){if(!this.shardingDataMap.has(e)){let t=new Promise(t=>{(0,d.O)().emit(n.SDK.ServerAPI.API.LoadDataByKey,{key:e},e=>{t(e.res)})});this.shardingDataMap.set(e,t)}return a=await this.shardingDataMap.get(e),this.shardingDataMap.delete(e),a}return r.length>0?(0,s.J)(a,this.joinKeys(r)):a})}async loadAPI(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,l]=t,i=l?`${n}_${JSON.stringify(l)}`:`${n}`,s=this.get("__SOCKET__PORT__")??"";return this.limit(i,async()=>new Promise(e=>{(0,d.O)(s).emit(n,l,t=>{e(t.res)})}))}dispose(){super.dispose(),this.events.forEach((e,t)=>{e.forEach(e=>{this.removeOnDataUpdate(t,e)}),e.clear()}),this.events.clear()}onDataUpdate(e,t){this.events.has(e)||this.events.set(e,new Set),this.events.get(e).has(t)||(this.events.get(e).add(t),(0,d.O)().on(e,t))}removeOnDataUpdate(e,t){(0,d.O)().off(e,t),this.events.get(e).delete(t)}constructor(...e){super(...e),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(this,"events",new Map)}}var u=r(20219);class h extends o{isLocal(){return!1}async loadData(e){return this.limit(e,async()=>{let[t,...r]=this.getKeys(e),n=this.getData(t,"cloudData");if(!n)return;let l=n;if(i._8.isShardingData(l)){if(!this.shardingDataMap.has(t)){let r=i._8.fetchShardingData(l,u.fZ).catch(t=>{throw this.log("loadData error: ",l,e),t});this.shardingDataMap.set(t,r)}l=await this.shardingDataMap.get(t)}return r.length>0?(0,s.J)(l,this.joinKeys(r)):l})}async loadAPI(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,l]=t,i=l?`${n}_${JSON.stringify(l)}`:`${n}`;return this.limit(i,async()=>this.loader.loadAPI(...t))}dispose(){super.dispose()}onDataUpdate(){}removeOnDataUpdate(){}}r(96307),r(10117);class p extends o{isLocal(){return!1}async loadData(e){console.log(`[loadData]-[key]: ${e}`);let[t]=this.getKeys(e);console.log(`[loadData]-[scope]: ${t}`);let r=this.getData(t);if(!r)return;let n=r;if(!this.shardingDataMap.has(t)){let e=this.parseData(n);this.shardingDataMap.set(t,Promise.resolve(e))}return await this.shardingDataMap.get(t)}getData(e){return console.log(`[getData]-[scope]: ${e}`),window[n.Constants.WINDOW_RSDOCTOR_TAG][e]}parseData(e){if("object"==typeof e&&null!==e||"string"!=typeof e)return e;try{return JSON.parse(i.oG.decompressText(e))}catch{return e}}async loadAPI(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.loader.loadAPI(...t)}dispose(){super.dispose()}onDataUpdate(){}removeOnDataUpdate(){}}let x=new WeakMap;async function m(e){try{if(e.__LOCAL__SERVER__)return console.log("[LocalServerDataLoader]"),new c(e)}catch(e){console.log("[DataLoader] fallback to RemoteDataLoader")}return new h(e)}function f(e){let[t,r]=(0,l.useState)(void 0);return(0,l.useEffect)(()=>{window[n.Constants.WINDOW_RSDOCTOR_TAG]&&(console.log("[brief mode]"),r(new p({data:[]})))},[]),(0,l.useEffect)(()=>{if(e){if(!x.has(e)){let t=m(e);x.set(e,t)}x.get(e).then(e=>{r(e)})}},[e]),{loader:t}}},92958(e,t,r){var n=r(25205),l=r(9858),i=r(96307);n.Ay.use(l.r9).init({lng:(0,i.U)(),resources:{en:{translations:{Overall:"Overall","Compile Analysis":"Compile Analysis","Bundle Alerts":"Bundle Alerts","Help Center":"Help Center",LoadersAnalysis:"Loaders Analysis","Loaders Timeline":"Loaders Timeline","Loaders Analysis":"Loaders Analysis","Rsdoctor Introduction":"Rsdoctor Introduction","Compilation Alerts":"Compilation Alerts","Plugins Analysis":"Plugins Analysis",PluginsAnalysis:"Plugins Analysis",ModuleResolve:"Module Resolve","Bundle Analysis":"Bundle Analysis",BundleSize:"Bundle Size",ViewBundleSize:"View Bundle Size","Module Graph":"Module Graph",TreeShaking:"Tree Shaking","Rule Index":"Rule Index",Resources:"Resources","Project Overall":"Project Overall","Compile Overall":"Compile Overall","Bundle Overall":"Bundle Overall","Expand Omitted":"By default, the reasons tree collapses to the middle of the module introduced by a third party. Click on this icon to view the full tree diagram","Concatenated Tag":"Concatenated Module,hover can display the name of the concatenated main module. Note: the bundled size of the concatenated module is zero, possibly because it is aggregated into the main module.","the file content not changed after transpiled by this loader":"the file content not changed after transpiled by this loader","Output Assets List":"Output Assets List","filter the output assets which size is greater than the input value":"filter the output assets which size is greater than the input value","filter the modules which size is greater than the input value":"filter the modules which size is greater than the input value","After Compile":"After Compile","After Bundle":"After Bundle",CodeModeExplain:"In lite mode or pure stats.json upload, only source code.",DuplicatePakCodeExplain:"There is no code, when in the case of pure stats.json.",AsyncLoaderInfo:"For async loaders, the time cost of each loader is not accurate. For example: mini-css-extract-plugin's loader.",Details:"Details",Expand:"Expand",Collapse:"Collapse"}},cn:{translations:{Overall:"概览","Compile Analysis":"编译分析","Bundle Alerts":"编译预警","Help Center":"帮助中心","Rsdoctor Introduction":"Rsdoctor 介绍","Compilation Alerts":"编译预警","Plugins Analysis":"Plugins 分析",LoadersAnalysis:"Loaders 分析","Loaders Timeline":"Loaders 概览","Loaders Analysis":"Loaders 分析",PluginsAnalysis:"Plugins 分析",ModuleResolve:"Module Resolve 分析","Bundle Analysis":"产物分析",BundleSize:"产物体积分析",ViewBundleSize:"查看包大小","Module Graph":"Module Graph",TreeShaking:"Tree Shaking","Rule Index":"错误索引信息",Resources:"资源","Project Overall":"项目信息概览","Compile Overall":"编译数据概览","Bundle Overall":"产物数据概览","Expand Omitted":" reasons 树会默认折叠中间的第三方引入的模块,点击这个图标可以查看完整树图","Concatenated Tag":"串联模块,hover 上去可以显示聚合成的主模块名称。注:聚合模块 bundled size 为零,有可能是因为被聚合到了主模块中。","the file content not changed after transpiled by this loader":"该文件内容在 loader 处理前后没有发生变化","Output Assets List":"产物文件列表","filter the output assets which size is greater than the input value":"筛选大小大于输入值的产物文件","filter the modules which size is greater than the input value":"筛选大小大于输入值的模块","After Compile":"编译后","After Bundle":"打包后",CodeModeExplain:"Lite 模式下或纯 stats.json 上传的情况下只有 source code.",DuplicatePakCodeExplain:"纯 stats.json 输入的情况下没有代码,可使用 Rsdoctor 插件参与构建会有对应代码。",AsyncLoaderInfo:"对于异步 loader,单个 loader 的耗时可能不准确。例如:mini-css-extract-plugin 的 loader。",Details:"详情",Expand:"展开",Collapse:"收起"}}},fallbackLng:{"zh-CN":["cn"],default:["en"]},debug:!1,ns:["translations"],defaultNS:"translations",keySeparator:!1,interpolation:{escapeValue:!1}})},47001(e,t,r){r.d(t,{ak:()=>i,xr:()=>n});let{findLoaderTotalTiming:n,getLoaderCosts:l}=r(40799).aH;function i(e,t,r,n,l,i){return(!r||-1!==e.indexOf(r))&&(!l||!i||l===i)&&(null==n||!n.length||!!n.includes(t))}},18679(e,t,r){r.d(t,{DP:()=>o,Ym:()=>a,an:()=>d,mB:()=>c});var n=r(22155),l=r(44751),i=r(17400),s=r(10117);function a(){return(0,n.useContext)(i.Q).locale}function o(){let{theme:e,setTheme:t}=(0,n.useContext)(i.Q),r=e===s.Sx.Dark;return{theme:e,setTheme:t,isDark:r,isLight:!r}}function d(){let{viewMode:e,setViewMode:t}=(0,n.useContext)(i.Q),{bundleAlerts:r,compileAlerts:l}=e;return{viewMode:e,setViewMode:t,setCompileAlertsViewMode(e){t({compileAlerts:e})},setBundleAlertsViewMode(e){t({bundleAlerts:e})},isCompileList:l===s.nE.List,isBundleList:r===s.nE.List}}function c(e){return(0,n.useMemo)(()=>l.dh.fromData(e),[e])}r(20219)},20219(e,t,r){r.d(t,{Cj:()=>c,fZ:()=>a});var n=r(71146),l=r(91888),i=r(40799);r(10117);var s=r(62975);async function a(e){return i.s0.isUrl(e)?n.A.get(e,{timeout:999999,responseType:"text"}).then(e=>e.data):e}async function o(e){let t=(await n.A.get(e,{timeout:3e4})).data;if("string"==typeof t){let e=t.trim();t=/^<!doctype html\b/i.test(e)||/^<html\b/i.test(e)?{}:JSON.parse(t)}return t}r(96307);let d=new Map;async function c(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:((e=window[l.Manifest.RsdoctorManifestClientConstant.WindowPropertyForManifestUrl]?window[l.Manifest.RsdoctorManifestClientConstant.WindowPropertyForManifestUrl]:(0,s.kJ)())||(e=l.SDK.ServerAPI.API.Manifest),e);return d.has(t)||d.set(t,o(t).catch(e=>{throw d.delete(t),e})),await d.get(t)}},40686(e,t,r){r.d(t,{c:()=>l,r:()=>i});var n=r(91888);function l(e){return e.includes(n.Manifest.RsdoctorManifestClientRoutes.WebpackLoaders)||e.includes(n.Manifest.RsdoctorManifestClientRoutes.ModuleResolve)||e.includes(n.Manifest.RsdoctorManifestClientRoutes.WebpackPlugins)}function i(e){return e.includes(n.Manifest.RsdoctorManifestClientRoutes.BundleSize)||e.includes(n.Manifest.RsdoctorManifestClientRoutes.ModuleGraph)||e.includes(n.Manifest.RsdoctorManifestClientRoutes.TreeShaking)}},9919(e,t,r){function n(e){return e>=1e9?`${(e/1e9).toFixed(2)} GB`:e>=1e6?`${(e/1e6).toFixed(2)} MB`:e>=1e3?`${(e/1e3).toFixed(2)} KB`:e>1?`${e} bytes`:1===e?`${e} byte`:"0 bytes"}function l(e){return`${+e.toFixed(2)}%`}r.d(t,{X:()=>n,l:()=>l})},37503(e,t,r){r.d(t,{O:()=>o});var n=r(57734);let l=new Map,i=location.protocol.includes("https")?"wss":"ws",s=`${i}://${location.host}`,a=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;function o(e){let t=function(e){let{port:t,protocol:r,hostname:n}=e;if("u">typeof URL){let e=new URL("http://localhost");return e.port=String(t),e.hostname=n,e.protocol=location.protocol.includes("https")?"wss":"ws",a.test(n)||n.includes("localhost")?e.toString():`${r}//${n}`}let l=-1===r.indexOf(":")?":":"";return`${r}${l}//${n}:${t}`}({port:e,hostname:location.hostname,protocol:location.protocol});return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;if(!l.has(e)){let t=(0,n.io)(e,{});t.on("connect",()=>{console.log(`Socket Connect ${e}`)}),l.set(e,t)}return l.get(e)}(e?t:s)}},96307(e,t,r){r.d(t,{DT:()=>s,Kv:()=>a,R7:()=>p,U:()=>o,XX:()=>d,Yh:()=>x,ZI:()=>u,it:()=>h,oi:()=>c});var n=r(10117);function l(e){return window.localStorage.getItem(`__RSDOCTOR__STORAGE__${e}`)}function i(e,t){try{return window.localStorage.setItem(`__RSDOCTOR__STORAGE__${e}`,t),!0}catch(e){return console.error(e),!1}}function s(){return l("THEME")||n.Sx.Light}function a(e){i("THEME",e)}function o(){return l("LOCALE")||n.TM.En}function d(e){i("LOCALE",e)}function c(){let e={bundleAlerts:n.nE.List,compileAlerts:n.nE.List};try{let t=l("VIEWMODE");if(t)return JSON.parse(t)||e;return e}catch(t){return e}}function u(e){i("VIEWMODE",JSON.stringify(e))}function h(){return!!l("VIEWMODE")}function p(){return l("FIRST_VISIT")}function x(e){i("FIRST_VISIT",e)}},22679(e,t,r){r.d(t,{a4:()=>i});let{toFixedDigits:n,getUnit:l,formatCosts:i}=r(40799).gX},28306(){function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class t{setup(){this.worker.onmessage=e=>{let{data:t}=e;if(this.callbacks.has(t.id)){let e=this.callbacks.get(t.id);this.callbacks.delete(t.id),e(t.data)}}}createEventId(){return`${Date.now()}_${++this.timer}`}emit(e,t){var r;let n=this.createEventId();return this.callbacks.set(n,t),r={id:n,data:e},this.worker.postMessage(r),{abort:()=>this.callbacks.delete(n)}}dispose(){this.worker.terminate()}constructor(t){e(this,"worker",void 0),e(this,"timer",void 0),e(this,"callbacks",void 0),this.worker=t,this.timer=0,this.callbacks=new Map,this.setup()}}new class{detectWorker(e){if(this._workerMap.has(e))return this._workerMap.get(e);let r=new t(e());return this._workerMap.set(e,r),r}constructor(){!function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(this,"_workerMap",new WeakMap)}}},57808(e,t){Object.defineProperty(t,"__esModule",{value:!0})},19113(e,t){var r,n,l,i,s,a;Object.defineProperty(t,"__esModule",{value:!0}),t.RsdoctorClientDiffState=t.RsdoctorClientRoutes=t.RsdoctorClientUrlQuery=void 0,(i=r||(t.RsdoctorClientUrlQuery=r={})).BundleDiffFiles="__bundle_files__",i.ManifestFile="manifest",i.EnableRoutes="enableRoutes",(s=n||(t.RsdoctorClientRoutes=n={})).Home="/",s.Overall="/overall",s.WebpackLoaderOverall="/webpack/loaders/overall",s.WebpackLoaderAnalysis="/webpack/loaders/analysis",s.ModuleResolve="/module/resolve",s.WebpackPlugins="/webpack/plugins",s.BundleSize="/bundle/size",s.ModuleAnalyze="/module/analyze",s.TreeShaking="/treeshaking",s.BundleDiff="/resources/bundle/diff",s.RuleIndex="/resources/rules",s.Uploader="/resources/uploader",s.EmoCheck="/emo/check",(a=l||(t.RsdoctorClientDiffState=l={})).Equal="-",a.Up="UP",a.Down="DOWN"},68771(e,t){Object.defineProperty(t,"__esModule",{value:!0})},79604(e,t){Object.defineProperty(t,"__esModule",{value:!0})},27045(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.WINDOW_RSDOCTOR_TAG=t.RsdoctorClientUrl=t.RsdoctorProcessEnvDebugKey=t.RsdoctorMonitorDocBId=t.RsdoctorMonitorWebBId=t.RsdoctorMonitorNodeBId=t.StatsFilePath=t.RsdoctorOutputManifestPath=t.RsdoctorOutputManifest=t.RsdoctorOutputFolder=t.MapExtensions=t.FontExtensions=t.MediaExtensions=t.ImgExtensions=t.HtmlExtension=t.CSSExtension=t.JSExtension=void 0,t.JSExtension=".js",t.CSSExtension=".css",t.HtmlExtension=".html",t.ImgExtensions=[".png",".jpg",".svg",".webp",".jpeg",".gif",".bmp"],t.MediaExtensions=[".mp3",".mp4",".avi",".wav",".flv",".mov",".mpg",".mpeg"],t.FontExtensions=[".ttf",".fnt",".fon",".otf",".woff",".woff2"],t.MapExtensions=[".js.map",".css.map",".ts.map",".LICENSE.txt"],t.RsdoctorOutputFolder=".rsdoctor",t.RsdoctorOutputManifest="manifest.json",t.RsdoctorOutputManifestPath=`${t.RsdoctorOutputFolder}/${t.RsdoctorOutputManifest}`,t.StatsFilePath="dist/stats.json",t.RsdoctorMonitorNodeBId="Rsdoctor",t.RsdoctorMonitorWebBId="Rsdoctor-Client",t.RsdoctorMonitorDocBId="Rsdoctor-Doc",t.RsdoctorProcessEnvDebugKey="rsdoctor",t.RsdoctorClientUrl="",t.WINDOW_RSDOCTOR_TAG="__RSDOCTOR__"},73442(e,t){var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorLevel=void 0,(n=r||(t.ErrorLevel=r={}))[n.Ignore=0]="Ignore",n[n.Warn=1]="Warn",n[n.Error=2]="Error"},37548(e,t){Object.defineProperty(t,"__esModule",{value:!0})},91888(e,t,r){var n,l=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var l=Object.getOwnPropertyDescriptor(t,r);(!l||("get"in l?!t.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,l)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(n=function(e){return(n=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),s=0;s<r.length;s++)"default"!==r[s]&&l(t,e,r[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.Config=t.Plugin=t.Constants=t.Client=t.Thirdparty=t.Rule=t.Linter=t.Modules=t.SDK=t.Logger=t.Err=t.Common=t.Babel=t.Esbuild=t.Manifest=void 0,t.Manifest=s(r(13331)),t.Esbuild=s(r(37548)),t.Babel=s(r(57808)),t.Common=s(r(68771)),t.Err=s(r(73442)),t.Logger=s(r(24014)),t.SDK=s(r(7223)),t.Modules=s(r(33765)),t.Linter=s(r(59071)),t.Rule=s(r(48775)),t.Thirdparty=s(r(90725)),t.Client=s(r(19113)),t.Constants=s(r(27045)),t.Plugin=s(r(8726)),t.Config=s(r(79604))},5224(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Severity=void 0;var n=r(73442);Object.defineProperty(t,"Severity",{enumerable:!0,get:function(){return n.ErrorLevel}})},59071(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var l=Object.getOwnPropertyDescriptor(t,r);(!l||("get"in l?!t.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,l)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),l=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),l(r(5224),t),l(r(43973),t)},43973(e,t){Object.defineProperty(t,"__esModule",{value:!0})},24014(e,t){var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.LogLevel=void 0,(n=r||(t.LogLevel=r={}))[n.Silent=0]="Silent",n[n.Error=1]="Error",n[n.Warning=2]="Warning",n[n.Info=3]="Info",n[n.Debug=4]="Debug",n[n.Verbose=5]="Verbose"},13331(e,t){var r,n,l;Object.defineProperty(t,"__esModule",{value:!0}),t.RsdoctorManifestClientConstant=t.RsdoctorManifestClientRoutes=void 0,(l=r||(t.RsdoctorManifestClientRoutes=r={})).Overall="Overall",l.WebpackLoaders="Compile.WebpackLoaders",l.ModuleResolve="Compile.ModuleResolve",l.WebpackPlugins="Compile.WebpackPlugins",l.BundleSize="Bundle.BundleSize",l.ModuleGraph="Bundle.ModuleGraph",l.TreeShaking="Bundle.TreeShaking",(n||(t.RsdoctorManifestClientConstant=n={})).WindowPropertyForManifestUrl="__DEVTOOLS_MANIFEST_URL__"},33765(e,t){Object.defineProperty(t,"__esModule",{value:!0})},8872(e,t){Object.defineProperty(t,"__esModule",{value:!0})},22966(e,t){Object.defineProperty(t,"__esModule",{value:!0})},36842(e,t){Object.defineProperty(t,"__esModule",{value:!0})},8726(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var l=Object.getOwnPropertyDescriptor(t,r);(!l||("get"in l?!t.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,l)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),l=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),l(r(8872),t),l(r(36842),t),l(r(14891),t),l(r(22966),t),l(r(68846),t),l(r(14139),t),l(r(19061),t)},14139(e,t){Object.defineProperty(t,"__esModule",{value:!0})},14891(e,t){Object.defineProperty(t,"__esModule",{value:!0})},68846(e,t){Object.defineProperty(t,"__esModule",{value:!0})},19061(e,t){Object.defineProperty(t,"__esModule",{value:!0})},94140(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.message=t.code=void 0,t.code="E1001",t.message={code:t.code,title:"Duplicate Packages",type:"markdown",category:"bundle",description:`
13
+ #### Description
14
+
15
+ There is a same name package which is bundled in multiple versions in your application.
16
+
17
+ This negatively impacts the bundle size of your application.
18
+
19
+ #### General Solution
20
+
21
+ Add an entry in \`resolve.alias\` to configure Webpack to route any package references to a single specified path.
22
+
23
+ For example, if \`lodash\` is duplicated in your bundle, the following configuration would make all Lodash imports refer to the \`lodash\` instance found at \`./node_modules/lodash\`:
24
+
25
+ \`\`\`js
26
+ {
27
+ alias: {
28
+ lodash: path.resolve(__dirname, 'node_modules/lodash')
29
+ }
30
+ }
31
+ \`\`\`
32
+ `}},74917(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.message=t.code=void 0,t.code="E1002",t.message={code:t.code,title:"Cross Chunks Packages",type:"markdown",category:"bundle",description:`
33
+ #### Description
34
+
35
+ There is a package with the same version that is duplicated across different chunks in your application. This redundancy increases the overall bundle size, which is not optimal for performance.
36
+
37
+ #### General Solution
38
+
39
+ To address this issue, you can use Rspack's **SplitChunksPlugin** to extract common dependencies into a separate chunk. This ensures that the same package is not duplicated across multiple chunks, thereby reducing the bundle size.
40
+
41
+ For example, if **lodash** is being duplicated across different chunks, you can configure the **optimization.splitChunks** option in your Webpack configuration to extract **lodash** into a separate chunk:
42
+
43
+ \`\`\`
44
+ module.exports = {
45
+ optimization: {
46
+ splitChunks: {
47
+ cacheGroups: {
48
+ commons: {
49
+ test: /[\\/]node_modules[\\/]lodash[\\/]/,
50
+ name: 'lodash',
51
+ chunks: 'all',
52
+ },
53
+ },
54
+ },
55
+ },
56
+ };
57
+ \`\`\`
58
+
59
+ This configuration will automatically split out common dependencies (including those from \`node_modules\`) into separate chunks, ensuring that no package is duplicated across different chunks.
60
+ `}},27846(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.message=t.code=void 0,t.code="E1003",t.message={code:t.code,title:"Loader Performance Optimization",type:"markdown",category:"compile",description:`
61
+ #### Description
62
+
63
+ Usually the slow compile of most projects is due to the slow execution of the loaders.
64
+
65
+ And the loaders always pre-process many unnecessary files, such as \`node_modules files\` and \`already compiled files\`.
66
+
67
+ #### General Solution
68
+
69
+ Set \`exclude\` to the \`module.rules\` of webpack configuration for target loader.
70
+
71
+ For example, if \`node_modules/lodash\` is processed by the \`babel-loader\` that make the compile slowly:
72
+
73
+ \`\`\`
74
+ {
75
+ module: {
76
+ rules: [
77
+ {
78
+ test: /\\.js$/,
79
+ use: 'babel-loader',
80
+ exclude: [
81
+ /node_modules\\/lodash/
82
+ ]
83
+ }
84
+ ]
85
+ }
86
+ }
87
+ \`\`\`
88
+ `}},99111(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.message=t.code=void 0,t.code="E1004",t.message={code:t.code,title:"ECMA Version Check",type:"markdown",category:"bundle",description:`
89
+ #### Description
90
+
91
+ Detect if there is a newer version of ECMA syntax in the js bundle file
92
+ `}},58064(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.message=t.code=void 0,t.code="E1005",t.message={code:t.code,title:"Default Import Check",type:"markdown",category:"compile",description:`
93
+ #### Description
94
+
95
+ Usually webpack will automatically compatible different modules that has different types, but in a special case, the operation of compatibility will fail.
96
+ That is, when you use \`Default Import\` to import a cjs module, and this cjs module do not have the compatible statement, such as \`exports.default = \`.
97
+
98
+ #### General Solution
99
+
100
+ 1. for cjs module, write a \`exports.default = \` statement for default export.
101
+ 2. use \`Namespace Import\` for import the cjs module.
102
+
103
+ For example, for the package \`htmlparser2@7.2.0\`:
104
+
105
+ \`\`\`ts
106
+ // you should use this
107
+ import * as Parser from 'htmlparser2';
108
+
109
+ // can not use this
110
+ import Parser from 'htmlparser2';
111
+ \`\`\`
112
+ `}},47017(e,t,r){var n,l,i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var l=Object.getOwnPropertyDescriptor(t,r);(!l||("get"in l?!t.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,l)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(n=function(e){return(n=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),l=0;l<r.length;l++)"default"!==r[l]&&i(t,e,r[l]);return s(t,e),t}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.RsdoctorRuleClientConstant=t.RuleErrorMap=void 0;let d=a(r(94140)),c=a(r(74917)),u=a(r(27846)),h=a(r(99111)),p=a(r(58064));t.RuleErrorMap={[d.code]:d.message,[c.code]:c.message,[u.code]:u.message,[h.code]:h.message,[p.code]:p.message},(l||(t.RsdoctorRuleClientConstant=l={})).UrlQueryForErrorCode="code",o(r(61469),t)},61469(e,t){var r,n,l,i;Object.defineProperty(t,"__esModule",{value:!0}),t.RuleMessageCategory=t.RuleMessageCodeEnumerated=void 0,(l=r||(t.RuleMessageCodeEnumerated=r={})).Extend="EXTEND",l.Overlay="OVERLAY",(i=n||(t.RuleMessageCategory=n={})).Compile="compile",i.Bundle="bundle",i.EMO="emo"},8251(e,t){Object.defineProperty(t,"__esModule",{value:!0})},48775(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var l=Object.getOwnPropertyDescriptor(t,r);(!l||("get"in l?!t.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,l)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),l=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),l(r(47017),t),l(r(8251),t)},50258(e,t){Object.defineProperty(t,"__esModule",{value:!0})},23997(e,t){Object.defineProperty(t,"__esModule",{value:!0})},4380(e,t){Object.defineProperty(t,"__esModule",{value:!0})},78036(e,t){Object.defineProperty(t,"__esModule",{value:!0})},37871(e,t){Object.defineProperty(t,"__esModule",{value:!0})},7223(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var l=Object.getOwnPropertyDescriptor(t,r);(!l||("get"in l?!t.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,l)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),l=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),l(r(16692),t),l(r(25201),t),l(r(44780),t),l(r(78651),t),l(r(50258),t),l(r(19158),t),l(r(58907),t),l(r(81491),t),l(r(4380),t),l(r(23997),t),l(r(41195),t),l(r(56706),t),l(r(31270),t),l(r(78036),t),l(r(56436),t),l(r(37871),t)},56436(e,t){var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.IMode=void 0,(n=r||(t.IMode=r={})).brief="brief",n.lite="lite",n.normal="normal"},16692(e,t){Object.defineProperty(t,"__esModule",{value:!0})},78651(e,t){var r,n,l,i,s,a;Object.defineProperty(t,"__esModule",{value:!0}),t.ToDataType=t.ModuleKind=t.DependencyKind=void 0,(i=r||(t.DependencyKind=r={}))[i.Unknown=0]="Unknown",i[i.ImportStatement=1]="ImportStatement",i[i.DynamicImport=2]="DynamicImport",i[i.RequireCall=3]="RequireCall",i[i.AMDRequire=4]="AMDRequire",(s=n||(t.ModuleKind=n={}))[s.Normal=0]="Normal",s[s.Concatenation=1]="Concatenation",(a=l||(t.ToDataType=l={}))[a.NoCode=0]="NoCode",a[a.Normal=1]="Normal",a[a.NoSource=2]="NoSource",a[a.NoSourceAndAssets=3]="NoSourceAndAssets",a[a.All=4]="All"},81491(e,t){Object.defineProperty(t,"__esModule",{value:!0})},44780(e,t){Object.defineProperty(t,"__esModule",{value:!0})},25201(e,t){Object.defineProperty(t,"__esModule",{value:!0})},19158(e,t){Object.defineProperty(t,"__esModule",{value:!0})},10905(e,t,r){var n,l,i,s=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var l=Object.getOwnPropertyDescriptor(t,r);(!l||("get"in l?!t.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,l)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.APIExtends=t.API=void 0,a(r(30181),t),(n=l||(t.API=l={})).ApplyErrorFix="/api/apply/error/fix",n.Env="/api/env",n.EntryHtml="/index.html",n.Manifest="/api/manifest.json",n.LoadDataByKey="/api/data/key",n.SendAPIDataToClient="/api/socket/send",n.GetProjectInfo="/api/project/info",n.GetClientRoutes="/api/routes",n.ReportLoader="/api/loader/report",n.GetLoaderNames="/api/loader/names",n.GetLoaderChartData="/api/loader/chart/data",n.GetLoaderFileTree="/api/loader/filetree",n.GetLoaderFileDetails="/api/loader/file",n.GetLoaderFolderStatistics="/api/loader/folder/statics",n.GetLoaderFileFirstInput="/api/loader/input",n.GetLoaderFileInputAndOutput="/api/loader/inputandoutput",n.GetDirectoriesLoaders="/api/loader/directories",n.ReportSourceMap="/api/sourcemap/report",n.GetResolverFileTree="/api/resolver/filetree",n.GetResolverFileDetails="/api/resolver/file",n.GetPluginSummary="/api/plugins/summary",n.GetPluginData="/api/plugins/data",n.GetSummaryBundles="/api/graph/bundles/summary",n.GetChunkGraph="/api/graph/chunks/graph",n.GetAssetsSummary="/api/graph/assets/summary",n.GetAssetDetails="/api/graph/asset/details",n.GetChunksByModuleId="/api/graph/chunk/module",n.GetModuleDetails="/api/graph/module/details",n.GetModulesByModuleIds="/api/graph/modules/ids",n.GetEntryPoints="/api/graph/entrypoints",n.GetModuleCodeByModuleId="/api/graph/module/code",n.GetModuleCodeByModuleIds="/api/graph/module/codes",n.GetAllModuleGraph="/api/graph/module/all",n.GetAllChunkGraph="/api/graph/chunk/all",n.GetLayers="/api/graph/layers",n.GetSearchModules="/api/search/modules",n.GetSearchModuleInChunk="/api/search/chunk/modules",n.GetAllModuleGraphFilter="/api/graph/module/filter",n.GetModuleByName="/api/graph/module/name",n.GetModuleIssuerPath="/api/graph/module/issuer_path",n.GetPackageInfo="/api/package/info",n.GetPackageDependency="/api/package/dependency",n.GetPackageRelationAlertDetails="/api/alerts/details/package/relation",n.GetOverlayAlerts="/api/alerts/overlay",n.GetBundleAlerts="/api/alerts/bundle",n.BundleDiffManifest="/api/bundle_diff/manifest.json",n.GetBundleDiffSummary="/api/bundle_diff/summary",n.GetChunkGraphAI="/api/graph/chunks/graph/ai",n.GetChunkByIdAI="/api/graph/chunk/id/ai",(i||(t.APIExtends=i={})).GetCompileProgress="/api/progress"},30181(e,t){Object.defineProperty(t,"__esModule",{value:!0})},41195(e,t,r){var n,l=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var l=Object.getOwnPropertyDescriptor(t,r);(!l||("get"in l?!t.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,l)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(n=function(e){return(n=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),s=0;s<r.length;s++)"default"!==r[s]&&l(t,e,r[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.ServerAPI=void 0,t.ServerAPI=s(r(10905))},56706(e,t){var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.StatementKind=void 0,(n=r||(t.StatementKind=r={}))[n.ImportDefault=100]="ImportDefault",n[n.ImportNamed=101]="ImportNamed",n[n.ImportDefaultWithNamed=102]="ImportDefaultWithNamed",n[n.ImportDefaultWithNamespace=103]="ImportDefaultWithNamespace",n[n.ImportNamespace=104]="ImportNamespace",n[n.ImportSideEffect=105]="ImportSideEffect",n[n.ImportDynamic=106]="ImportDynamic",n[n.ExportDeclaration=200]="ExportDeclaration",n[n.ExportList=201]="ExportList",n[n.ExportDefault=202]="ExportDefault",n[n.ExportAggregating=203]="ExportAggregating",n[n.ExportNamespace=204]="ExportNamespace",n[n.RequireCall=300]="RequireCall",n[n.RequireName=301]="RequireName",n[n.RequireExports=302]="RequireExports",n[n.RequireExportAggregating=303]="RequireExportAggregating",n[n.RequireExportName=304]="RequireExportName",n[n.Unknown=999]="Unknown"},58907(e,t){Object.defineProperty(t,"__esModule",{value:!0})},31270(e,t){Object.defineProperty(t,"__esModule",{value:!0})},90725(e,t){Object.defineProperty(t,"__esModule",{value:!0})},76554(e,t,r){r.d(t,{PZ:()=>u,kB:()=>c,vF:()=>o});var n=r(97142),l=r.n(n),i=r(66963),s=r(91888),a=r(85409);let o=(0,i.h)();o.override({log:e=>{console.log(`${l().green("[RSDOCTOR LOG]")} ${e}`)},info:e=>{console.log(`${l().yellow("[RSDOCTOR INFO]")} ${e}`)},warn:e=>{console.warn(`${l().yellow("[RSDOCTOR WARN]")} ${e}`)},start:e=>{console.log(`${l().green("[RSDOCTOR START]")} ${e}`)},ready:e=>{console.log(`${l().green("[RSDOCTOR READY]")} ${e}`)},error:e=>{console.error(`${l().red("[RSDOCTOR ERROR]")} ${e}`)},success:e=>{console.error(`${l().green("[RSDOCTOR SUCCESS]")} ${e}`)},debug:e=>{a.env.DEBUG&&console.log(`${l().blue("[RSDOCTOR DEBUG]")} ${e}`)}});let d=new Map;function c(e){a.env.DEBUG!==s.Constants.RsdoctorProcessEnvDebugKey||d.has(e)||d.set(e,Date.now())}function u(e){if(a.env.DEBUG!==s.Constants.RsdoctorProcessEnvDebugKey)return;let t=d.get(e);if(null==t)return void i.v.debug(`Timer '${e}' does not exist.`);let r=Date.now()-t;i.v.debug(`Timer '${e}' ended: ${r}ms`),d.delete(e)}},50902(){},3710(){},39980(){}}]);