@rsdoctor/client 0.4.2 → 0.4.4
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/index.html +1 -1
- package/dist/resource/js/{ant-design-1.d463446a.js → ant-design-0.cef2898a.js} +1 -1
- package/dist/resource/js/{ant-design-0.1eccf358.js → ant-design-1.2527f82c.js} +1 -1
- package/dist/resource/js/ant-design-icons.07eb4370.js +1 -0
- package/dist/resource/js/async/{432.0cd699ed.js → 432.a22c42c7.js} +1 -1
- package/dist/resource/js/async/{811.b67cc575.js → 811.0983dcee.js} +1 -1
- package/dist/resource/js/index.3662d602.js +159 -0
- package/dist/resource/js/vender-0.2abfc676.js +1 -0
- package/dist/resource/js/vender-1.ed8c9a50.js +1 -0
- package/dist/resource/js/vender-2.65d39c48.js +1 -0
- package/package.json +4 -4
- package/dist/resource/js/ant-design-icons.fb86cf12.js +0 -1
- package/dist/resource/js/index.89b9cf69.js +0 -158
- package/dist/resource/js/vender-0.83b3821c.js +0 -1
- package/dist/resource/js/vender-1.0463b8ff.js +0 -1
- package/dist/resource/js/vender-2.5b106eb9.js +0 -1
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
(()=>{var e={6639:function(){},34968:function(){},64183:function(){},76493:function(){},33090:function(){},64488:function(){},15702:function(){},35371:function(){},90438:function(){},22338:function(){},2623:function(){},39559:function(){},3755:function(){},4244:function(){},79390:function(){},11299:function(e,t,n){"use strict";n.d(t,{X:function(){return Z}});var r=n(97458),i=n(52983),s=n(87775),o=n(47586),a=n(21846),l=n(25362),d=n(60416),u=n(58678),c=n(4696),h=n(62147),f=n(15196),p=n(11788),m=n(38490),x=n(78741),g=n(77422),j=n(57448),y=n(23675),v=n(99997),S=n(46591);let b=({data:e,setIsFixed:t,cwd:n})=>{let{file:i,id:h}=e,{path:f,line:m,isFixed:g,actual:j,expected:b}=i,Z=()=>{s.Z.post(x.SDK.ServerAPI.API.ApplyErrorFix,{id:h}).then(()=>{t(!0)})};return(0,r.jsxs)(l.Z,{direction:"vertical",className:"alert-space",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(y.D,{text:g?"Fix History":"Suggest Fix"}),(0,r.jsx)("span",{className:"code-change-tag-list",children:(0,r.jsx)(()=>(0,r.jsx)(o.Z,{title:"Did you confirm to apply the change i the area below ?",onConfirm:Z,okText:"Yes",cancelText:"Cancel",zIndex:99999,disabled:g,placement:"bottom",children:(0,r.jsx)(a.ZP,{type:"primary",size:"small",icon:g?(0,r.jsx)(p.Z,{}):void 0,disabled:g,children:g?"Fix Applied":"Apply Fix"})}),{})})]}),(0,r.jsx)(v.XF,{cwd:n,url:f,loc:String(m),code:!0,disabled:!0}),(0,r.jsxs)(d.Z,{children:[(0,r.jsx)(u.Z,{span:12,children:(0,r.jsx)(c.Z.Text,{strong:!0,children:"Before"})}),(0,r.jsx)(u.Z,{span:12,children:(0,r.jsx)(c.Z.Text,{strong:!0,children:"After"})})]}),(0,r.jsx)(S.ZX,{className:"full-space",filepath:f,before:j,after:b})]})},Z=({data:e,cwd:t})=>{let{title:n,description:s="",level:o,code:d,file:u}=e,[p,x]=(0,i.useState)(u.isFixed??!1),y=(0,g.useRuleIndexNavigate)(d,e.link),v=(0,r.jsxs)(l.Z,{direction:"vertical",children:[(0,r.jsx)(c.Z.Text,{children:s}),(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(c.Z.Text,{children:"File:"}),(0,r.jsx)(c.Z.Text,{strong:!0,code:!0,children:u.path}),(0,r.jsx)(c.Z.Text,{children:"in line"}),(0,r.jsx)(c.Z.Text,{strong:!0,code:!0,children:u.line})]})]});return(0,r.jsx)(h.Z,{showIcon:!0,message:(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(c.Z.Text,{code:!0,strong:!0,onClick:y,style:{cursor:"pointer"},children:(0,r.jsx)("a",{children:d})}),(0,r.jsx)(c.Z.Text,{strong:!0,children:n})]}),description:v,type:p?"success":"warn"===o?"info":o,action:(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(j.XU,{text:p?"Fixed | Show Fix History":"Show Fix Suggestion",buttonProps:{size:"small"},children:(0,r.jsx)(b,{data:e,setIsFixed:e=>{x(e),u.isFixed=e},cwd:t})}),(0,r.jsx)(f.Z,{type:"vertical"}),(0,r.jsx)(a.ZP,{type:"link",onClick:y,size:"small",children:(0,r.jsx)(m.Z,{})})]})})}},36479:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(97458),i=n(62147);let s=({data:e})=>{let{description:t="",level:n}=e;return(0,r.jsx)(i.Z,{type:"warn"===n?"info":n,description:t})}},97946:function(e,t,n){"use strict";n.d(t,{b:function(){return d}});var r=n(97458),i=n(32058),s=n(36479),o=n(57031),a=n(11299),l=n(42152);n(6639);let d=e=>{let{data:t,cwd:n=""}=e;if("file-relation"===t.type)return(0,r.jsx)(s.Z,{data:t});if("code-view"===t.type)return(0,r.jsx)(l.k,{data:t,cwd:n});if("code-change"===t.type)return(0,r.jsx)(a.X,{data:t,cwd:n});if("emo"===t.type)return(0,r.jsx)(r.Fragment,{});if("package-relation"===t.type){let{getPackageRelationContentComponent:i}=e;return(0,r.jsx)(o.jA,{data:t,cwd:n,getPackageRelationContentComponent:i})}return(0,r.jsx)(i.w,{data:t})}},32058:function(e,t,n){"use strict";n.d(t,{w:function(){return u}});var r=n(97458),i=n(62147),s=n(25362),o=n(4696),a=n(21846),l=n(38490),d=n(77422);let u=({data:e})=>{let{title:t,description:n="",level:u,code:c}=e,h=(0,d.useRuleIndexNavigate)(c,e.link);return(0,r.jsx)(i.Z,{showIcon:!0,message:(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(o.Z.Text,{code:!0,strong:!0,onClick:h,style:{cursor:"pointer"},children:(0,r.jsx)("a",{children:c})}),(0,r.jsx)(o.Z.Text,{strong:!0,children:t})]}),description:(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:n}}),type:"warn"===u?"info":u,action:(0,r.jsxs)(a.ZP,{type:"link",onClick:h,size:"small",children:["More",(0,r.jsx)(l.Z,{})]})})}},57031:function(e,t,n){"use strict";n.d(t,{jA:function(){return E},md:function(){return D}});var r=n(97458),i=n(52983),s=n(60416),o=n(58678),a=n(82487),l=n(87999),d=n(4696),u=n(72858),c=n(53754),h=n(44170),f=n(62147),p=n(25362),m=n(15196),x=n(56710),g=n(93756),j=n(21846),y=n(20942),v=n(78741),S=n(38490),b=n(99235),Z=n(77422),M=n(57448),C=n(23675),P=n(95925),I=n(94386),w=n(43622);let D=(0,w.U$)({Component:({data:e})=>{let[t,n]=(0,i.useState)(0),{t:h}=(0,Z.useI18n)();return(0,r.jsx)(s.Z,{gutter:P.Size.BasePadding,wrap:!1,align:"top",children:(0,r.jsx)(o.Z,{span:20,style:{height:"100%"},children:(0,r.jsx)(a.Z,{title:"The reasons for importing this version",style:{height:"100%"},extra:(0,r.jsx)(l.Z,{content:(0,r.jsx)(d.Z.Text,{children:h("DuplicatePakCodeExplain")}),children:(0,r.jsx)("a",{href:"#",children:"Explain"})}),bodyStyle:{overflow:"scroll"},children:e.length?(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)("div",{style:{marginBottom:P.Size.BasePadding},children:(0,r.jsx)(d.Z.Text,{type:"secondary",strong:!0,children:"Click the file path below to show the reason in code viewer."})}),(0,r.jsx)(u.Z,{children:e.map((i,s)=>{let{dependency:o,module:a,relativePath:l}=i,{statements:c}=o,{start:h}=c?.[0]?.position?a.isPreferSource?c[0].position.source:c[0].position.transformed:{start:{line:0,column:0}},f=`${l}:${h.line}:${h.column||1}`;return(0,r.jsx)(u.Z.Item,{style:{cursor:"pointer"},dot:s===e.length-1?void 0:"\u2B07\uFE0F",children:(0,r.jsx)(d.Z.Text,{copyable:{text:l},onClick:e=>{e.preventDefault(),e.stopPropagation(),n(s)},strong:s===t,style:{color:s===t?P.Color.Blue:"inherit",display:"block"},children:f})},f)})})]}):(0,r.jsx)(c.Z,{description:"This package no dependencies"})})})})},api:v.SDK.ServerAPI.API.GetPackageRelationAlertDetails,responsePropName:"data"}),E=({data:e,getPackageRelationContentComponent:t})=>{let{level:n,code:s,packages:o}=e,a=(0,Z.useRuleIndexNavigate)(s,e.link),l=(0,y.Z)(o,e=>e.targetSize.sourceSize),u=(0,Z.formatSize)(l),{xs:c,lg:w,xxl:D}=h.ZP.useBreakpoint(),{name:E}=o.find(e=>!!e.target.name).target,k=o.map(e=>e.target.version);return(0,r.jsx)(f.Z,{showIcon:!c,message:(0,r.jsxs)(p.Z,{wrap:!0,split:c?null:(0,r.jsx)(m.Z,{type:"vertical"}),align:"center",children:[(0,r.jsxs)(p.Z,{wrap:!1,children:[(0,r.jsx)(d.Z.Text,{code:!0,strong:!0,onClick:a,style:{cursor:"pointer"},children:(0,r.jsx)("a",{children:s})}),(0,r.jsx)(d.Z.Text,{strong:!0,children:v.Rule.RuleErrorMap[s]?.title||e.title})]}),(0,r.jsxs)(d.Z.Paragraph,{ellipsis:{rows:1},style:{marginBottom:0},children:[(0,r.jsx)(d.Z.Text,{strong:!0,code:!0,children:E}),(0,r.jsxs)(d.Z.Text,{strong:!0,children:[" ",e.packages.length]}),(0,r.jsx)(d.Z.Text,{children:" versions was found"})]}),(0,r.jsx)(I.Ct,{label:"total size",value:u,type:"error",tooltip:`total size of ${e.packages.length} versions is ${u}`})]}),description:(0,r.jsx)(p.Z,{direction:"vertical",wrap:!1,children:e.packages.map(({target:e,targetSize:t})=>{let n=(0,Z.formatSize)(t.sourceSize),i=t.parsedSize?(0,Z.formatSize)(t.parsedSize):null,s=`${e.name}@${e.version}`;return(0,r.jsxs)(p.Z,{style:{wordBreak:"break-all"},align:"center",split:c?null:(0,r.jsx)(m.Z,{type:"vertical"}),wrap:!0,children:[(0,r.jsxs)(p.Z,{wrap:!1,children:[(0,r.jsx)(d.Z.Text,{style:{marginLeft:4},children:"\u2514"}),(0,r.jsx)(I.Ct,{label:e.name,value:`v${e.version}`,tooltip:s})]}),(0,r.jsxs)(p.Z,{children:[(0,r.jsx)(I.Ct,{label:(0,r.jsxs)("div",{color:"rgb(255, 255, 255)",children:["Source Size ",(0,r.jsx)(S.Z,{})]}),value:n,tooltip:`The bundle size of "${s}" is ${n}, this is source size.`,type:"error"}),(0,r.jsx)(I.Ct,{label:"Bundled size",value:i||"CONCATENATED",tooltip:`The bundle size of "${s}" is ${n}, this is after bundled, concatenated module cannot get bundled size. `,type:"error"})]}),(0,r.jsx)(d.Z.Paragraph,{style:{marginBottom:0,width:D?"40rem":w?"30rem":"20rem"},copyable:{text:e.root},ellipsis:{rows:1,expandable:!0,symbol:(0,r.jsx)(b.Z,{}),tooltip:e.root},code:!0,children:e.root})]},e.version)})}),type:"warn"===n?"info":n,action:(0,r.jsxs)(i.Fragment,{children:[o&&o.length>0?(0,r.jsx)(M.XU,{text:"Show Relations",buttonProps:{size:"small"},drawerProps:{title:e.title,width:"60%"},children:(0,r.jsxs)(p.Z,{direction:"vertical",className:"alert-space",children:[(0,r.jsxs)(p.Z,{style:{marginBottom:P.Size.BasePadding/2},children:[(0,r.jsx)(C.D,{text:E,upperFisrt:!1}),(0,r.jsx)(d.Z.Text,{strong:!0,children:k.length}),(0,r.jsx)(d.Z.Text,{children:" versions was found: "}),k.map(e=>(0,r.jsx)(d.Z.Text,{strong:!0,code:!0,children:e},e))]}),(0,r.jsx)(x.Z,{type:"card",size:"middle",className:"tabs-space",defaultActiveKey:k[0],items:o.map(n=>{let{target:i,targetSize:s}=n;return{label:(0,r.jsxs)(p.Z,{children:[(0,r.jsx)(d.Z.Text,{children:`${E}@${i.version}`}),(0,r.jsx)(g.Z,{color:P.Color.Red,children:(0,Z.formatSize)(s.sourceSize)})]}),key:`${i.root}${i.name}${i.version}`,children:t({data:e,package:n})}})})]})}):null,(0,r.jsx)(m.Z,{type:"vertical"}),(0,r.jsx)(j.ZP,{type:"link",onClick:a,size:"small",icon:(0,r.jsx)(S.Z,{})})]})})}},42152:function(e,t,n){"use strict";n.d(t,{k:function(){return g}});var r=n(97458),i=n(77590),s=n(25362),o=n(4696),a=n(62147),l=n(15196),d=n(21846),u=n(38490),c=n(77422),h=n(57448),f=n(23675),p=n(99997),m=n(46591);let x=({data:e,cwd:t})=>{let{file:n}=e,{path:o,ranges:a}=n,l=a?.[0].start.line;return(0,r.jsxs)(s.Z,{direction:"vertical",className:"alert-space",children:[(0,r.jsx)(f.D,{text:"Code Viewer"}),(0,r.jsx)(p.XF,{cwd:t,url:o,loc:(0,i.Z)(l)?String(l):void 0,code:!0,disabled:!0}),(0,r.jsx)(m.uX,{path:n.path,content:n.content,ranges:a,defaultLine:l})]})},g=({data:e,cwd:t})=>{let{title:n,description:f="",level:p,code:m,file:g}=e,j=(0,c.useRuleIndexNavigate)(m,e.link),y=g.ranges?.[0].start.line,v=(0,r.jsxs)(s.Z,{direction:"vertical",children:[(0,r.jsx)(o.Z.Text,{children:f}),(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(o.Z.Text,{children:"File:"}),(0,r.jsx)(o.Z.Text,{strong:!0,code:!0,children:g.path}),(0,i.Z)(y)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z.Text,{children:"in line"}),(0,r.jsx)(o.Z.Text,{strong:!0,code:!0,children:y})]}):""]})]});return(0,r.jsx)(a.Z,{showIcon:!0,message:(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(o.Z.Text,{code:!0,strong:!0,onClick:j,style:{cursor:"pointer"},children:(0,r.jsx)("a",{children:m})}),(0,r.jsx)(o.Z.Text,{strong:!0,children:n})]}),description:v,type:"warn"===p?"info":p,action:(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(h.XU,{text:"Show Source Code",buttonProps:{size:"small"},children:(0,r.jsx)(x,{data:e,cwd:t})}),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.Z,{type:"vertical"}),(0,r.jsx)(d.ZP,{type:"link",onClick:j,size:"small",icon:(0,r.jsx)(u.Z,{})})]})]})})}},97322:function(e,t,n){"use strict";n.d(t,{C:function(){return h}});var r=n(97458),i=n(52983),s=n(78741),o=n(77422),a=n(6692),l=n(43622),d=n(95925),u=n(57031),c=n(40641);let h=(0,l.U$)({api:s.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:({filter:e,project:t})=>{let{errors:n,root:s}=t,l=(0,o.useBundleAlertsByErrors)(n),{setBundleAlertsViewMode:h,viewMode:f,setViewMode:p}=(0,o.useViewMode)(),m=e?l.filter(e):l;return(0,i.useEffect)(()=>{!(0,o.hasViewModeFromStorage)()&&p({bundleAlerts:l.length>=5?d.ViewMode.Group:d.ViewMode.List},!1)},[]),(0,r.jsx)(c.ZP,{theme:{components:{Alert:{colorInfoBg:"#e6f4ff57",colorInfoBorder:"none"}}},children:(0,r.jsx)(a.h,{title:"Bundle Alerts",dataSource:m,extraData:{cwd:s,getPackageRelationContentComponent:e=>(0,r.jsx)(u.md,{body:{id:e.data.id,target:e.package.target},cwd:s})},viewMode:f.bundleAlerts,setViewMode:h,cwd:s})})}})},6692:function(e,t,n){"use strict";n.d(t,{h:function(){return b}});var r=n(97458),i=n(25362),s=n(45605),o=n(4696),a=n(97398),l=n(67510),d=n(52983),u=n(29395),c=n(49738),h=n(78741),f=n(61550),p=n(86395),m=n(95925),x=n(97946),g=n(21807),j=n(94386);let y={warn:1,error:2},v=({dataSource:e,extraData:t})=>{let n=(0,d.useMemo)(()=>e.slice().sort((e,t)=>y[t.level]-y[e.level]),[e]);return(0,r.jsx)(i.Z,{direction:"vertical",style:{wordBreak:"break-all",width:"100%"},children:n.map((e,n)=>(0,r.jsx)(x.b,{data:e,...t},n))})},S=({dataSource:e,extraData:t})=>{let n=(0,d.useMemo)(()=>(0,f.Z)((0,p.Z)(e,e=>e.code)),[e]);return(0,r.jsx)(i.Z,{direction:"vertical",style:{wordBreak:"break-all",width:"100%"},children:(0,r.jsx)(s.Z,{children:n.map(e=>{let[n]=e;return(0,r.jsx)(s.Z.Panel,{header:(0,r.jsxs)(i.Z,{children:[(0,r.jsx)(o.Z.Text,{code:!0,strong:!0,style:{cursor:"pointer"},children:n.code}),(0,r.jsx)(o.Z.Text,{strong:!0,children:h.Rule.RuleErrorMap[n.code]?.title||n.title}),(0,r.jsx)(j.Ct,{label:"count",value:e.length,type:"error"})]}),children:(0,r.jsx)(i.Z,{direction:"vertical",size:16,style:{width:"100%"},children:e.map((e,n)=>(0,r.jsx)(x.b,{data:e,...t},n))})},n.code)})})})},b=({title:e,dataSource:t,extraData:n,viewMode:i,setViewMode:s,extraCom:o})=>t.length?(0,r.jsx)(g.Zb,{title:e,style:{marginTop:m.Size.BasePadding},collapsable:!0,extra:o||(0,r.jsx)(a.ZP.Group,{options:[{label:(0,r.jsx)(l.Z,{title:"display by list",children:(0,r.jsx)(u.Z,{})}),value:m.ViewMode.List},{label:(0,r.jsx)(l.Z,{title:"display by group",children:(0,r.jsx)(c.Z,{})}),value:m.ViewMode.Group}],value:i,optionType:"button",size:"small",onChange:e=>{s(e.target.value)}}),children:i===m.ViewMode.List?(0,r.jsx)(v,{dataSource:t,extraData:n}):(0,r.jsx)(S,{dataSource:t,extraData:n})}):null},35037:function(e,t,n){"use strict";n.d(t,{$:function(){return c}});var r=n(97458),i=n(52983),s=n(78741),o=n(77422),a=n(6692),l=n(43622),d=n(95925),u=n(57031);let c=(0,l.U$)({api:s.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:({filter:e,project:t})=>{let{root:n,errors:s}=t,l=(0,o.useCompileAlertsByErrors)(s),{setCompileAlertsViewMode:c,viewMode:h,setViewMode:f}=(0,o.useViewMode)(),p=e?l.filter(e):l;return(0,i.useEffect)(()=>{!(0,o.hasViewModeFromStorage)()&&f({compileAlerts:l.length>=5?d.ViewMode.Group:d.ViewMode.List},!1)},[]),(0,r.jsx)(a.h,{title:"Compile Alerts",dataSource:p,extraData:{cwd:n,getPackageRelationContentComponent:e=>(0,r.jsx)(u.md,{body:{id:e.data.id,target:e.package.target},cwd:n})},viewMode:h.compileAlerts,setViewMode:c,cwd:n})}})},14496:function(e,t,n){"use strict";n.d(t,{$X:function(){return i.$},CG:function(){return r.C},QE:function(){return s.QE},u1:function(){return s.u1}});var r=n(97322),i=n(35037),s=n(14188)},14188:function(e,t,n){"use strict";n.d(t,{QE:function(){return C},u1:function(){return M}});var r=n(97458),i=n(52983),s=n(78741),o=n(4696),a=n(60416),l=n(21846),d=n(58678),u=n(45605),c=n(93756),h=n(62147),f=n(93259),p=n(95757),m=n(54001),x=n(87448),g=n(20084),j=n(87042),y=n.n(j),v=n(43622),S=n(95925);function b(e){let t=0,n=0;e.forEach(e=>{"warn"===e.level?t++:n++});let i=0!==t&&0!==n?"problems":0===t?"errors":"warns";return{title:`${e.length} compiled ${i}`,detail:(0,r.jsxs)(o.Z.Text,{strong:!0,style:{color:"#fff",marginBottom:0},children:[(0,r.jsx)(o.Z.Text,{style:{color:"inherit",fontSize:16},children:"Compiled with "}),(0,r.jsxs)(o.Z.Text,{strong:!0,style:{color:S.Color.Red,fontSize:16},children:[n," errors"]}),(0,r.jsx)(o.Z.Text,{style:{color:"inherit",fontSize:16},children:" and "}),(0,r.jsxs)(o.Z.Text,{strong:!0,style:{color:S.Color.Yellow,fontSize:16},children:[t," warnings"]})]}),warns:t,errors:n}}n(27069);let Z=({alerts:e=[],open:t,onClose:n})=>e.length?(0,r.jsxs)(g.Z,{visible:t,onClose:()=>n(),style:{width:"100%",height:"100%",margin:0,zIndex:1e3},closable:!1,modalRender:e=>i.cloneElement(e,{style:{background:"rgba(0, 0, 0, 0.7)",color:"#fff",height:"100%",overflow:"scroll",borderRadius:0}}),children:[(0,r.jsxs)(a.Z,{justify:"space-between",align:"middle",children:[b(e).detail,(0,r.jsx)(l.ZP,{onClick:()=>n(),type:"text",style:{color:"#fff"},size:"large",icon:(0,r.jsx)(f.Z,{})})]}),(0,r.jsx)(a.Z,{gutter:[0,S.Size.BasePadding],children:e.map(e=>(0,r.jsx)(d.Z,{span:24,style:{whiteSpace:"pre-wrap",lineHeight:"16px",fontSize:14},children:(0,r.jsx)(u.Z,{ghost:!0,style:{background:"#000"},defaultActiveKey:[e.id],expandIcon:e=>e.isActive?(0,r.jsx)(p.Z,{style:{color:"#fff"}}):(0,r.jsx)(m.Z,{style:{color:"#fff"}}),children:(0,r.jsx)(u.Z.Panel,{header:(0,r.jsxs)("div",{style:{color:"#fff"},children:["warn"===e.level?(0,r.jsx)(c.Z,{color:S.Color.Yellow,children:"WARNING"}):(0,r.jsx)(c.Z,{color:S.Color.Red,children:"ERROR"}),(0,r.jsx)(y(),{children:e.description||e.title})]}),children:(0,r.jsx)("div",{style:{color:"#fff"},children:(0,r.jsx)(y(),{children:e.stack})})},e.id)})},e.id))})]}):null,M=(0,v.U$)({api:s.SDK.ServerAPI.API.GetOverlayAlerts,Component:({alerts:e=[]})=>{if(!e.length)return null;let{errors:t}=b(e),[n,s]=(0,i.useState)(t>0);return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(l.ZP,{icon:(0,r.jsx)(x.Z,{}),danger:!0,size:"small",onClick:()=>s(!n),children:b(e).title}),(0,r.jsx)(Z,{alerts:e,open:n,onClose:()=>s(!1)})]})},responsePropName:"alerts",fallbackComponent:()=>null}),C=(0,v.U$)({api:s.SDK.ServerAPI.API.GetOverlayAlerts,Component:({alerts:e=[],defaultOpen:t=e.length>0})=>{if(!e.length)return null;let[n,s]=(0,i.useState)(t);return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(h.Z,{banner:!0,message:i.cloneElement(b(e).detail,{style:{color:"#000"}}),icon:(0,r.jsx)(x.Z,{}),action:(0,r.jsx)(l.ZP,{onClick:()=>s(!0),size:"small",children:"More"})}),(0,r.jsx)(Z,{alerts:e,open:n,onClose:()=>s(!1)})]})},responsePropName:"alerts",fallbackComponent:()=>null})},94386:function(e,t,n){"use strict";n.d(t,{Ct:function(){return l},Rf:function(){return a},gZ:function(){return o}});var r,i=n(97458),s=n(67510);var o=((r=o||{}).Default="default",r.Success="success",r.Warn="warn",r.Error="error",r);let a={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%)"},l=({label:e,value:t,type:n="default",tooltip:r})=>{let o={height:"100%",lineHeight:"22px",width:"auto",display:"inline-block",boxSizing:"border-box",padding:"0 6px",color:"#fff",fontSize:12,textAlign:"center",verticalAlign:"middle"},l=(0,i.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,i.jsx)("div",{style:{...o,borderTopLeftRadius:4,borderBottomLeftRadius:4,background:"linear-gradient(to bottom, #525252a3 0%, #1F1F1F 100%)"},children:e}),(0,i.jsx)("div",{style:{...o,borderTopRightRadius:4,borderBottomRightRadius:4,overflow:"hidden",textOverflow:"ellipsis",background:a[n]||a.default},children:t})]});return r?(0,i.jsx)(s.Z,{title:!0===r?t:r,placement:"topLeft",children:l}):l}},33475:function(e,t,n){"use strict";n(97458),n(52983),n(46641);var r=n(51445),i=n(61550),s=n(78741);n(77422),n(31646),n(18005),n(98306),n(72277),n(34050),n(95925);let o={JS:[s.Constants.JSExtension],CSS:[s.Constants.CSSExtension],HTML:[s.Constants.HtmlExtension],Imgs:s.Constants.ImgExtensions,Fonts:s.Constants.FontExtensions,Media:s.Constants.MediaExtensions,Others:[]};(0,r.Z)((0,i.Z)(o))},54066:function(e,t,n){"use strict";n(97458),n(18005),n(31646),n(77422),n(78741),n(46641),n(95925),n(48349)},72277:function(e,t,n){"use strict";n(97458),n(52983),n(18005),n(95925)},1812:function(e,t,n){"use strict";n(97458),n(78741),n(46641),n(52983),n(95925),n(21807),n(77422)},68604:function(e,t,n){"use strict";n(97458),n(52983),n(46641),n(78741),n(54066),n(57722),n(33475),n(85797),n(48349),n(57406),n(95925)},85797:function(e,t,n){"use strict";n(97458),n(52983),n(46641),n(77422),n(72277),n(18005),n(98306),n(95925)},57722:function(e,t,n){"use strict";n(97458),n(52983),n(34050),n(95925),n(77422),n(1812)},48349:function(e,t,n){"use strict";n(97458),n(31646),n(77422),n(52983),n(85797),n(95925)},98306:function(e,t,n){"use strict";n(97458),n(77422),n(78741),n(46641),n(52983),n(72277),n(85797),n(34050),n(95925)},34050:function(e,t,n){"use strict";n(97458),n(77422),n(78741),n(95925)},57406:function(e,t,n){"use strict";n(97458),n(78741),n(43622),n(77422)},91770:function(e,t,n){"use strict";n(68604)},30524:function(e,t,n){"use strict";n(97458),n(78741),n(46641),n(52983),n(77422),n(95925),n(50818)},21807:function(e,t,n){"use strict";n.d(t,{Zb:function(){return c}});var r=n(97458),i=n(96733),s=n(87585),o=n(82487),a=n(25362),l=n(21846),d=n(15196),u=n(52983);n(30524);let c=({collapsable:e=!1,children:t,title:n,dividerStyle:c,defaultCollapsed:h=!1,...f})=>{let[p,m]=(0,u.useState)(h);return n&&e?(0,r.jsx)(o.Z,{...f,title:(0,r.jsxs)(a.Z,{style:{fontSize:"inherit"},children:[(0,r.jsx)(l.ZP,{icon:p?(0,r.jsx)(i.Z,{}):(0,r.jsx)(s.Z,{}),onClick:()=>m(!p),size:"small"}),n]}),children:p?(0,r.jsx)(d.Z,{orientation:"center",style:c,plain:!0,children:(0,r.jsx)(l.ZP,{icon:(0,r.jsx)(i.Z,{}),type:"text",onClick:()=>m(!p),children:"show more"})}):t}):(0,r.jsx)(o.Z,{title:n,...f,children:t})}},87457:function(e,t,n){"use strict";n.d(t,{K:function(){return j}});var r=n(97458),i=n(77446),s=n(23973),o=n(25362),a=n(4696),l=n(93756),d=n(53754),u=n(14516),c=n(67510),h=n(20942),f=n(52983),p=n(77422),m=n(35972),x=n(57448);let{useToken:g}=s.Z,j=({files:e,total:t,showProgress:n=!1,tagBgColor:s})=>{let{token:j}=g(),y=(0,f.useMemo)(()=>(0,h.Z)(e,e=>e.size),[e]),v=(0,f.useMemo)(()=>(0,p.createFileStructures)({files:e.map(e=>e.path),fileTitle(t,n){let{size:i}=e.find(e=>e.path===t);return(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(a.Z.Text,{children:n}),(0,r.jsx)(l.Z,{color:"success",children:(0,p.formatSize)(i)})]})}}),[e]);return 0===v.length?(0,r.jsx)(o.Z,{style:{height:100,fontSize:24},align:"center",children:(0,r.jsx)(l.Z,{bordered:!1,color:s,children:(0,r.jsxs)(a.Z.Text,{style:{fontSize:14,color:j.colorWhite},children:[(0,r.jsxs)(a.Z.Text,{style:{color:j.colorWhite},children:[" ",0]})," Files"]})})}):(0,r.jsxs)(o.Z,{style:{height:100},align:"center",children:[n?0===y?(0,r.jsx)(d.Z,{}):(0,r.jsx)(u.Z,{type:"dashboard",percent:+(y/t*100).toFixed(2),strokeColor:{"0%":"#108ee9","100%":"#87d068"},width:80}):null,(0,r.jsx)(x.XU,{text:(0,r.jsx)(c.Z,{title:"Click to show the total files",children:(0,r.jsxs)(o.Z,{style:{textAlign:n?"left":"center"},align:"end",children:[(0,r.jsxs)(o.Z,{direction:"vertical",children:[(0,r.jsx)(l.Z,{bordered:!1,color:s,children:(0,r.jsxs)(a.Z.Text,{style:{fontSize:14,color:j.colorWhite},children:[(0,r.jsxs)(a.Z.Text,{style:{color:j.colorWhite},children:[" ",e.length]})," Files"]})}),(0,r.jsx)(a.Z.Text,{style:{fontSize:20},children:(0,p.formatSize)(y)})]}),(0,r.jsx)(i.Z,{style:{transform:"translateY(-3.5px)"}})]})}),buttonStyle:{height:"100%"},buttonProps:{type:"text"},children:(0,r.jsx)(m.z,{treeData:v,defaultExpandAll:!0,titleRender:e=>(0,r.jsx)(a.Z.Text,{children:e.title})})})]})}},50818:function(e,t,n){"use strict";n.d(t,{I:function(){return o}});var r=n(97458),i=n(97712);n(34968);var s=n(77422);let o=({title:e,value:t,statisticProps:n,boxProps:o})=>{let{theme:a}=(0,s.useTheme)();return(0,r.jsx)("div",{className:`statistic-card statistic-card-${a}`,...o,children:(0,r.jsx)(i.Z,{title:(0,r.jsx)("div",{className:"statistic-card-title",children:e}),valueRender:()=>t,valueStyle:{fontSize:24},...n})})}},67451:function(e,t,n){"use strict";n.d(t,{z:function(){return j}});var r=n(97458),i=n(52983),s=n(53034),o=n(89687),a=n(12090),l=n(22577),d=n(80002),u=n(78059),c=n(89112),h=n(41879),f=n(13950),p=n(28977),m=n.n(p),x=n(86395),g=n(52161);let j=(0,i.memo)(({loaderData:e,pluginsData:t,formatterFn:n,chartType:p="normal"})=>{let j=[],y=[],[v,S]=(0,i.useState)({});return o.D([d.N,u.N,c.N,h.N,f.N]),(0,i.useEffect)(()=>{if(!e)return;let t=[];e.forEach(e=>{t.unshift(e.n+" total"),t.unshift(e.n)}),e.forEach(function(e,n){if(j.push({name:e.n+" total",value:[t.indexOf(e.n+" total"),e.s,e.e,e.e-e.s],itemStyle:{normal:{color:g.I[n%8]}}}),e?.c)for(let r=0;r<e?.c?.length;r++)j.push({name:e.n,value:[t.indexOf(e.n),e.c[r].s,e.c[r].e,e.c[r].e-e.c[r].s],itemStyle:{normal:{color:g.f[(r+n)%30]}},ext:e.c[r].ext})}),y=t.map((e,t)=>t%2!=0?e.replace(" total",""):"")},[e]),(0,i.useEffect)(()=>{if(!t)return;let e=(0,x.Z)(t,e=>e.pid);Object.keys(e).reverse().forEach(function(t,n){e[t].forEach((e,t)=>{j.push({name:String(e.pid),value:[n,e.args.s,e.args.e,e.args.e-e.args.s],itemStyle:{normal:{color:g.f[(t+n)%30]}},ext:e})}),y.push(String(t.charAt(0).toUpperCase()+t.slice(1)))})},[t]),(0,i.useEffect)(()=>{S({tooltip:{formatter:e=>n(e)},dataZoom:[{type:"slider",filterMode:"weakFilter",showDataShadow:!1,top:-10,labelFormatter:""},{type:"inside",filterMode:"weakFilter"}],grid:{top:10,left:0,bottom:10,right:0,height:y.length>("loader"===p?6:3)?"auto":60*y.length,containLabel:!0},xAxis:{position:"top",splitLine:{show:!1},scale:!0,axisLine:{show:!1},axisLabel:{formatter:e=>m()(e).format("HH:mm:ss")}},yAxis:{type:"category",splitLine:{interval:"loader"===p?1:0,show:!0},axisLabel:{inside:!0,lineHeight:20,width:100,fontSize:12,color:"#000",verticalAlign:"bottom"},axisLine:{show:!0},axisTick:{show:!1},data:y},series:[{type:"custom",renderItem:function(e,t){let n=t.value(0),r=t.coord([t.value(1),n]),i=t.coord([t.value(2),n]),s=.3*t.size([0,1])[1],o=a.clipRectByRect({x:r[0],y:"loader"===p?r[1]-(n%2!=0?0:2*s):r[1],width:i[0]-r[0]||5,height:s},{x:e.coordSys.x,y:e.coordSys.y,width:e.coordSys.width,height:e.coordSys.height});return o&&{type:"rect",transition:["shape"],shape:o,style:t.style(),enterFrom:{style:{opacity:0},x:0}}},itemStyle:{opacity:.8},encode:{x:[1,2],y:0},data:j}]})},[e,t]),(0,r.jsx)(s.default,{option:v,echarts:l,style:{width:"100%",minHeight:"400px"}})})},85057:function(e,t,n){"use strict";n.d(t,{E:function(){return c}});var r=n(97458),i=n(25362),s=n(35040),o=n(78741),a=n(57448);n(64183),n(76493);var l=n(6454),d=n(43622),u=n(46641);let c=({summary:e})=>{let{costs:t=[]}=e||{},n=t.find(e=>e.name===u.ER.M.Bootstrap);return n?(0,r.jsx)(a.XU,{drawerProps:{title:'Chart of the "Bootstrap -> BeforeCompile" stage'},text:(0,r.jsxs)(i.Z,{children:["detail",(0,r.jsx)(s.Z,{})]}),children:(0,r.jsx)(d.Nu,{api:o.SDK.ServerAPI.API.GetPluginData,body:{hooks:["environment","afterEnvironment","entryOption","afterPlugins","afterResolvers","initialize","beforeRun","run","watchRun","normalModuleFactory","contextModuleFactory","beforeCompile"]},children:e=>e&&e.length?(0,r.jsx)(l.T,{plugins:e}):(0,r.jsx)(l.m,{})})}):null}},6454:function(e,t,n){"use strict";n.d(t,{T:function(){return u},m:function(){return c}});var r=n(97458),i=n(62147),s=n(4696),o=n(52983),a=n(77422),l=n(67451);n(64183),n(76493);var d=n(18019);let u=({plugins:e,defaultDatas:t=[]})=>{let{isDark:n}=(0,a.useTheme)(),i=(0,o.useRef)(null),[s,u]=(0,o.useState)([]);return(0,o.useEffect)(()=>{let n=[];e.forEach(e=>{e.data.forEach(t=>{n.push({p:e.hook,n:`${e.tapName}`,s:t.startAt,e:t.endAt})})}),u([...(0,d.TU)(t),...(0,d.TU)(n)])},[]),(0,r.jsx)("div",{className:["loader-chart-container",n?"loader-chart-container_dark":""].join(" ").trim(),ref:i,style:{width:"100%",height:"600px"},children:(0,r.jsx)(l.z,{pluginsData:s,formatterFn:d.vF})})},c=()=>(0,r.jsx)(i.Z,{message:(0,r.jsxs)(s.Z.Text,{children:[(0,r.jsx)(s.Z.Text,{children:"make sure that you have turn on "}),(0,r.jsx)(s.Z.Text,{children:" in configuration for the Rsdoctor plugin."})]}),type:"info",showIcon:!0})},52161:function(e,t,n){"use strict";n.d(t,{I:function(){return r},f:function(){return i}});let r=["#a8071a","#ad6800","#237804","#006d75","#ad8b00","#ad4e00","#5b8c00","#003eb3"],i=["#4096ff","#69b1ff","#9e1068","#722ed1","#bae0ff","#d3adf7","#597ef7","#ffadd2","#c41d7f","#391085","#ffa940","#5c060b","#a81414","#ff7875","#ffd591","#ffe58f","#d3f261","#d4b106","#7cb305","#f4ffb8","#fa8c16","#0958d9","#fff3f0","#82090d","#ffbfb3","#f44336","#ff998a","#ff7161","#ffe2db","#cf2923"]},92381:function(e,t,n){"use strict";n.d(t,{T:function(){return p}});var r=n(97458),i=n(25362),s=n(15196),o=n(35040),a=n(78741),l=n(46641),d=n(57448),u=n(21807),c=n(6454),h=n(13938),f=n(43622);n(64183),n(76493);let p=({summary:e})=>{let{costs:t=[]}=e||{},n=t.find(e=>e.name===l.ER.M.Done),p='of the "AfterCompile -> Done" stage';return n?(0,r.jsx)(d.XU,{drawerProps:{title:`Details ${p}`},text:(0,r.jsxs)(i.Z,{children:["detail",(0,r.jsx)(o.Z,{})]}),children:(0,r.jsx)(f.Nu,{api:a.SDK.ServerAPI.API.GetPluginData,body:{hooks:["afterCompile","shouldEmit","emit","afterEmit","assetEmitted","done"]},children:e=>e&&e.length?(0,r.jsxs)(i.Z,{direction:"vertical",style:{width:"100%"},children:[(0,r.jsx)(u.Zb,{title:`Plugin DataSource of ${p}`,collapsable:!0,children:(0,r.jsx)(h.A,{dataSource:e})}),(0,r.jsx)(s.Z,{}),(0,r.jsx)(u.Zb,{title:`Chart ${p}`,children:(0,r.jsx)(c.T,{plugins:e})})]}):(0,r.jsx)(c.m,{})})}):null}},98463:function(e,t,n){"use strict";n.d(t,{T:function(){return f}});var r,i=n(97458),s=n(52983),o=n(25362),a=n(78741),l=n(42068),d=n(43622),u=n(56816),c=n(75196);var h=((r=h||{})[r.Loader=0]="Loader",r[r.Process=1]="Process",r);let f=(0,d.U$)({api:a.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:({project:e})=>{let{root:t}=e,[n,r]=(0,s.useState)({filename:"",loaders:[]}),[h,f]=(0,s.useState)(0);return(0,i.jsxs)(o.Z,{direction:"vertical",style:{width:"100%"},children:[(0,i.jsx)(d.Nu,{api:a.SDK.ServerAPI.API.GetLoaderNames,children:e=>(0,i.jsx)(l.k,{onChange:r,loaderNames:e})}),(0,i.jsx)(d.Nu,{api:a.SDK.ServerAPI.API.GetLoaderChartData,children:e=>{let r=e.filter(e=>(0,c.F3)(e.resource,e.loader,n.filename,n.loaders));return 0===h?(0,i.jsx)(u.o,{loaders:r,cwd:t}):(0,i.jsx)(i.Fragment,{})}})]})}})},56816:function(e,t,n){"use strict";n.d(t,{o:function(){return h}});var r=n(97458),i=n(52983),s=n(86395),o=n(53754);n(64183);var a=n(44428),l=n(75196),d=n(85518),u=n(67451),c=n(18019);let h=({loaders:e,cwd:t})=>{let{isDark:n}=(0,a.Fg)(),h=(0,i.useRef)(null),[f,p]=(0,i.useState)([]),m=(0,c.Cu)(f,200),x=(0,i.useMemo)(()=>(0,s.Z)(e,e=>e.loader),[e]),g=(0,i.useCallback)(n=>{let{name:r,data:i}=n,s=r.replace(" total","");return i?.ext?(0,c.Ux)(i.ext):(0,c.Wl)(s,e,t)},[]);return(0,i.useEffect)(()=>{p(Object.keys(x).map(e=>{let n=x[e]||[],{start:r,end:i}=(0,l.d8)(n);return{p:e,n:e,s:r,e:i,c:n.map(n=>({p:e,n:(0,d.C0)(n.resource,t),s:n.startAt,e:n.endAt,ext:n}))}}))},[x]),(0,r.jsx)(r.Fragment,{children:f?.length?(0,r.jsx)("div",{className:["loader-chart-container",n?"loader-chart-container_dark":""].join(" ").trim(),ref:h,style:{width:"100%",height:"600px"},children:(0,r.jsx)(u.z,{loaderData:m,formatterFn:g,chartType:"loader"})}):(0,r.jsx)(o.Z,{})})}},21682:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(97458),i=n(35040),s=n(78741),o=n(25362),a=n(15196),l=n(57448),d=n(46641),u=n(21807),c=n(43622),h=n(13938),f=n(6454);n(64183),n(76493);let p=({summary:e})=>{let{costs:t=[]}=e||{};return t.find(e=>e.name===d.ER.M.Minify)?(0,r.jsx)(l.XU,{drawerProps:{title:'Details of the "Minify" stage'},text:(0,r.jsxs)(o.Z,{children:["detail",(0,r.jsx)(i.Z,{})]}),children:(0,r.jsx)(c.Nu,{api:s.SDK.ServerAPI.API.GetPluginData,body:{hooks:["processAssets","optimizeChunkAssets"]},children:e=>e&&e.length?(0,r.jsxs)(o.Z,{direction:"vertical",style:{width:"100%"},children:[(0,r.jsx)(u.Zb,{title:'Plugin DataSource of the "Minify"',collapsable:!0,children:(0,r.jsx)(h.A,{dataSource:e})}),(0,r.jsx)(a.Z,{}),(0,r.jsx)(u.Zb,{title:'Chart of the "Minify"',children:(0,r.jsx)(f.T,{plugins:e})})]}):(0,r.jsx)(f.m,{})})}):null}},67804:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r,i=((r=i||{}).BEGIN="B",r.END="E",r.COMPLETE="X",r.INSTANT="I",r.MARK="R",r)},18019:function(e,t,n){"use strict";n.d(t,{Cu:function(){return m},TU:function(){return f},Ux:function(){return c},Wl:function(){return h},vF:function(){return p}});var r=n(46641),i=n(28977),s=n.n(i),o=n(94229),a=n(24837),l=n(77422);n(76493);var d=n(67804),u=n(52983);function c(e){return`
|
|
2
|
-
<div class="loader-tooltip-container">
|
|
3
|
-
<div class="loader-tooltip-title">${e.loader}</div>
|
|
4
|
-
<li class="loader-tooltip-item">
|
|
5
|
-
<span>isPitch</span>
|
|
6
|
-
<span>${e.isPitch}</span>
|
|
7
|
-
</li>
|
|
8
|
-
<li class="loader-tooltip-item">
|
|
9
|
-
<span>duration</span>
|
|
10
|
-
<span class="loader-tooltip-textbold">${(0,l.formatCosts)(e.costs)}</span>
|
|
11
|
-
</li>
|
|
12
|
-
<li class="loader-tooltip-item">
|
|
13
|
-
<span>filepath</span>
|
|
14
|
-
<span>${e.resource}</span>
|
|
15
|
-
</li>
|
|
16
|
-
<li class="loader-tooltip-item">
|
|
17
|
-
<span>start</span>
|
|
18
|
-
<span class="loader-tooltip-textbold">${s()(e.startAt).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
19
|
-
</li>
|
|
20
|
-
<li class="loader-tooltip-item">
|
|
21
|
-
<span>end</span>
|
|
22
|
-
<span class="loader-tooltip-textbold">${s()(e.endAt).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
23
|
-
</li>
|
|
24
|
-
</div>
|
|
25
|
-
`.trim()}function h(e,t,n){let i=t=>t.loader===e,d=t.filter(i),u=d.map(e=>e.resource),c=u.filter(e=>e.includes("/node_modules/")),h=u.filter(e=>!e.startsWith(n)),f=(0,o.Z)(d,e=>e.startAt).startAt,p=(0,a.Z)(d,e=>e.endAt).endAt,m=r.aN.getLoadersCosts(i,t);return`
|
|
26
|
-
<div class="loader-tooltip-container">
|
|
27
|
-
<div class="loader-tooltip-title">${e}</div>
|
|
28
|
-
<li class="loader-tooltip-item">
|
|
29
|
-
<span>files</span>
|
|
30
|
-
<span class="loader-tooltip-textbold">${u.length}</span>
|
|
31
|
-
</li>
|
|
32
|
-
<li class="loader-tooltip-item">
|
|
33
|
-
<span>files(node_modules)</span>
|
|
34
|
-
<span class="loader-tooltip-textbold">${c.length}</span>
|
|
35
|
-
</li>
|
|
36
|
-
<li class="loader-tooltip-item">
|
|
37
|
-
<span>files(outside the cwd)</span>
|
|
38
|
-
<span class="loader-tooltip-textbold">${h.length}</span>
|
|
39
|
-
</li>
|
|
40
|
-
<li class="loader-tooltip-item">
|
|
41
|
-
<span>duration(estimated)</span>
|
|
42
|
-
<span class="loader-tooltip-textbold">${(0,l.formatCosts)(m)}</span>
|
|
43
|
-
</li>
|
|
44
|
-
<li class="loader-tooltip-item">
|
|
45
|
-
<span>start(min)</span>
|
|
46
|
-
<span>${s()(f).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
47
|
-
</li>
|
|
48
|
-
<li class="loader-tooltip-item">
|
|
49
|
-
<span>end(max)</span>
|
|
50
|
-
<span>${s()(p).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
51
|
-
</li>
|
|
52
|
-
</div>
|
|
53
|
-
`.trim()}function f(e){return function e(t){return t.reduce((t,n)=>{if(n.c){let r=e(n.c);t.push({name:n.n,ph:d.A.BEGIN,pid:n.p,ts:n.s,args:n},...r,{name:n.n,ph:d.A.END,pid:n.p,ts:n.e,args:n})}else t.push({name:n.n,ph:d.A.BEGIN,pid:n.p,ts:n.s,args:n}),t.push({name:n.n,ph:d.A.END,pid:n.p,ts:n.e,args:n});return t},[])}(Object.entries(e.sort((e,t)=>e.s-t.s).reduce((e,t)=>{let n=e[t.p];return n?function(e,t){let n=[e];for(;n.length>0;){let e;let r=n.shift()||[];if(0===r.length)return;let i=r[r.length-1];if(i.e<=t.s)return r.push(t);for(let t=r.length-1;t>=0;t--){let{c:n}=r[t];n&&(e=n)}e?n.push(e):i.c=[t]}}(n,t):e[t.p]=[t],e},{})).reduce((e,[t,n])=>(e.push(...n),e),[]))}function p(e){let{ext:t}=e.data;return`
|
|
54
|
-
<div class="loader-tooltip-container">
|
|
55
|
-
<div class="loader-tooltip-title">[${t.args.p}] ${t.args.n}</div>
|
|
56
|
-
<li class="loader-tooltip-item">
|
|
57
|
-
<span>hook</span>
|
|
58
|
-
<span>${t.args.p}</span>
|
|
59
|
-
</li>
|
|
60
|
-
<li class="loader-tooltip-item">
|
|
61
|
-
<span>tap name</span>
|
|
62
|
-
<span>${t.args.n}</span>
|
|
63
|
-
</li>
|
|
64
|
-
<li class="loader-tooltip-item">
|
|
65
|
-
<span>start</span>
|
|
66
|
-
<span>${s()(t.args.s).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
67
|
-
</li>
|
|
68
|
-
<li class="loader-tooltip-item">
|
|
69
|
-
<span>end</span>
|
|
70
|
-
<span>${s()(t.args.e).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
71
|
-
</li>
|
|
72
|
-
<li class="loader-tooltip-item">
|
|
73
|
-
<span>duration</span>
|
|
74
|
-
<span>${(0,l.formatCosts)(t.args.e-t.args.s)}</span>
|
|
75
|
-
</li>
|
|
76
|
-
</div>
|
|
77
|
-
`.trim()}function m(e,t){let[n,r]=(0,u.useState)(e);return(0,u.useEffect)(()=>{let n=setTimeout(()=>r(e),t);return()=>clearTimeout(n)},[e,t]),n}},81185:function(e,t,n){"use strict";n.d(t,{z:function(){return r}});let r={readOnly:!0,domReadOnly:!0,fontSize:12,renderValidationDecorations:"off",hideCursorInOverviewRuler:!0,smoothScrolling:!0,wordWrap:"bounded",colorDecorators:!0,codeLens:!1,cursorWidth:0,minimap:{enabled:!1}}},78527:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(97458),i=n(68851),s=n(95925),o=n(77422);let a=({before:e,after:t,filepath:n,className:a,editorProps:l})=>(0,r.jsx)(i.SV,{className:a,originalLanguage:(0,o.getOriginalLanguage)(n),modifiedLanguage:(0,o.getModifiedLanguage)(n),theme:"vs-dark",original:e,modified:t,width:"100%",...l,options:{readOnly:!0,originalEditable:!1,renderSideBySide:!0,renderIndicators:!0,lineDecorationsWidth:s.Size.BasePadding,definitionLinkOpensInPeek:!1,domReadOnly:!0,fontSize:14,minimap:{enabled:!1},diffWordWrap:"on",...l?.options}})},3579:function(e,t,n){"use strict";n(97458),n(52983),n(68851),n(77422),n(99997)},46591:function(e,t,n){"use strict";n.d(t,{ZX:function(){return r.Z},uX:function(){return i.u},ut:function(){return i.v},z9:function(){return s.z}});var r=n(78527);n(3579);var i=n(44548),s=n(81185)},44548:function(e,t,n){"use strict";n.d(t,{u:function(){return c},v:function(){return h}});var r=n(97458),i=n(68851),s=n(77590),o=n(47880),a=n(77422),l=n(81185),d=n(57448),u=n(53754);let c=({content:e,ranges:t,path:n,defaultLine:o,editorConfig:d={},emptyReason:c})=>e?(0,r.jsx)(i.ZP,{theme:"vs-dark",language:(0,a.getOriginalLanguage)(n),value:e,width:"100%",height:window.innerHeight/1.5,options:{...l.z,...d},onMount:(e,n)=>{(0,s.Z)(o)&&e.revealLine(o),t&&t.length>0&&e.deltaDecorations([],t.map(e=>({range:(0,a.getSelectionRange)(e,n.Range),options:{inlineClassName:"file-inline-decoration"}})))}}):(0,r.jsx)(u.Z,{description:c}),h=e=>(0,r.jsx)(d.XU,{text:"",buttonProps:{size:"small",icon:(0,r.jsx)(o.Z,{}),type:"default"},buttonStyle:{padding:"0 4px"},drawerProps:{destroyOnClose:!0,title:`Code of "${e.path}"`},children:(0,r.jsx)(c,{...e})})},98915:function(e,t,n){"use strict";n.d(t,{S:function(){return j}});var r=n(97458),i=n(78741),s=n(60416),o=n(15196),a=n(25362),l=n(4696),d=n(35737),u=n(90396),c=n(52983),h=n(87513),f=n.n(h),p=n(77422),m=n(43622),x=n(57448),g=n(23675);let j=(0,m.U$)({Component:({defaultKeys:e,configs:t})=>{let n=(0,p.useWebpackConfigurationByConfigs)(t||[]);if(!n)return null;let{config:i,version:h,name:m}=n,j=Object.keys(i),[y,v]=(0,c.useState)(e||j);return(0,r.jsx)(x.XU,{text:"View Bundler Config",children:(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(g.D,{text:"Bundler Config Viewer"}),(0,r.jsx)(o.Z,{}),(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(l.Z.Text,{children:"Properties: "}),(0,r.jsx)(d.Z,{dropdownStyle:{zIndex:999},mode:"multiple",allowClear:!0,value:y.length===j.length?[]:y,style:{width:350},dropdownMatchSelectWidth:!0,placeholder:"Show Selected Properties Only.",onChange:e=>{v(e)},children:j.map(e=>(0,r.jsx)(d.Z.Option,{label:e,value:e,children:e},e))})]}),(0,r.jsx)(o.Z,{}),(0,r.jsx)(f(),{name:h&&"unknown"!==h?`${m}@${h}`:"webpack.config",theme:"monokai",src:0===y.length?i:(0,u.Z)(i,y),displayDataTypes:!1,displayObjectSize:!1})]})})},api:i.SDK.ServerAPI.API.LoadDataByKey,responsePropName:"configs",body:{key:"configs"},showSkeleton:!1})},51264:function(e,t,n){"use strict";n.d(t,{S:function(){return r.S}});var r=n(98915)},35972:function(e,t,n){"use strict";n.d(t,{z:function(){return p}});var r=n(97458),i=n(23973),s=n(25362),o=n(54001),a=n(87068),l=n(1494),d=n(96273),u=n(44045),c=n(95925);n(33090);var h=n(77422);let{useToken:f}=i.Z,p=e=>{let{isDark:t}=(0,h.useTheme)(),{token:n}=f(),i=t?n.colorWhite:n.colorText,p={fontSize:n.fontSize};return(0,r.jsx)(u.Z,{checkable:!1,selectable:!0,switcherIcon:({data:e,expanded:t})=>e?.children?(0,r.jsxs)(s.Z,{style:{color:i},children:[(0,r.jsx)(o.Z,{twoToneColor:i,className:`file-tree-switcher-arrow ${t?"file-tree-switcher-arrow-expand":""}`,style:p}),t?(0,r.jsx)(a.Z,{twoToneColor:i,style:p}):(0,r.jsx)(l.Z,{twoToneColor:i,style:p})]}):(0,r.jsx)(d.Z,{style:{marginLeft:c.Size.BasePadding-6,color:i}}),expandAction:"click",...e})}},33448:function(e,t,n){"use strict";n.d(t,{a:function(){return l}});var r=n(97458),i=n(52983),s=n(6377),o=n(21846),a=n(4696);let l=({icon:e,label:t,labelStyle:n={},placeholder:l,onChange:d,style:u,className:c,width:h,delay:f=300})=>{let p;let[m,x]=(0,i.useState)(""),g={width:120,...n},j=(0,i.useRef)(null);return(0,i.useEffect)(()=>{d(m)},[m]),(0,r.jsxs)(s.Z.Group,{compact:!0,style:u,className:c,children:[t||e?(0,r.jsxs)(o.ZP,{style:g,onClick:()=>{j&&j.current&&j.current.focus()},children:[e||null,(0,r.jsx)(a.Z.Text,{children:t})]}):null,(0,r.jsx)(s.Z,{ref:j,allowClear:!0,defaultValue:m,style:{width:h?h-120:250},placeholder:l,onChange:e=>{clearTimeout(p);let t=e.target.value.trim();setTimeout(()=>{x(t)},f)}})]})}},67522:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(97458),i=n(4696);let s=({text:e,keyword:t,...n})=>{if(!t||-1===e.indexOf(t))return(0,r.jsx)(i.Z.Text,{...n,children:e});let s=[],o=e;for(;o.length>0;){let e=o.indexOf(t);if(e>-1)0!==e&&s.push((0,r.jsx)(i.Z.Text,{style:{fontSize:"inherit"},children:o.slice(0,e)},s.length)),s.push((0,r.jsx)(i.Z.Text,{mark:!0,style:{fontSize:"inherit"},children:t},s.length)),o=o.slice(e+t.length);else{s.push((0,r.jsx)(i.Z.Text,{style:{fontSize:"inherit"},children:o},s.length));break}}return(0,r.jsx)(i.Z.Text,{...n,children:s})}},5161:function(e,t,n){"use strict";n.d(t,{P:function(){return u}});var r=n(97458),i=n(15196),s=n(4696),o=n(35737),a=n(52983),l=n(39504),d=n(77422);let u=()=>{let[e,t]=(0,a.useState)(""),[n,u]=(0,a.useState)([]);return((0,a.useEffect)(()=>{(0,d.fetchManifest)().then(({name:e,series:n})=>{e&&t(e),n&&n.length>0&&u(n)})},[]),e.length<=0||n.length<=0)?(0,r.jsx)(r.Fragment,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Z,{type:"vertical",style:{margin:"0 24px"}}),(0,r.jsx)("img",{src:l,style:{marginRight:6,height:16}}),(0,r.jsx)(s.Z,{children:"Compiler"}),(0,r.jsx)(o.Z,{className:"builder-selector",defaultValue:e,bordered:!1,style:{minWidth:100},onChange:e=>{let t=n.find(t=>t.name===e);t&&(t.origin?location.href=(0,d.changeOrigin)(t.origin):console.error("No RsdoctorManifestSeriesData.origin"))},children:n.map((e,t)=>(0,r.jsx)(o.Z.Option,{value:e.name,className:"builder-selector-option-item",children:e.name},t))})]})}},75910:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});let r="Compile Analysis"},89782:function(e,t,n){"use strict";n.d(t,{h:function(){return m}});var r=n(97458),i=n(31576),s=n(64480),o=n(60416),a=n(58678),l=n(4696),d=n(39095),u=n(95925),c=n(77422),h=n(14496),f=n(5161),p=n(53876);n(64488);let m=()=>{let{i18n:e}=(0,c.useI18n)(),{isLight:t}=(0,c.useTheme)(),n=[{value:u.Language.Cn,label:"\u4E2D\u6587"},{value:u.Language.En,label:"English"}];return(0,r.jsx)(s.Z.Header,{style:{height:u.Size.NavBarHeight,padding:0,paddingLeft:u.Size.BasePadding,paddingRight:u.Size.BasePadding,position:"fixed",zIndex:999,width:"100%",backgroundColor:t?"#fff":"#141414",transition:"none"},children:(0,r.jsxs)(o.Z,{justify:"space-between",align:"middle",style:{height:u.Size.NavBarHeight},wrap:!1,children:[(0,r.jsx)(a.Z,{style:{height:u.Size.NavBarHeight,lineHeight:`${u.Size.NavBarHeight+2}px`},children:(0,r.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",height:"100%"},children:[(0,r.jsx)("img",{style:{height:30},src:"https://assets.rspack.dev/rsdoctor/rsdoctor-logo-960x960.png",className:"web-doctor-logo",alt:"logo"}),(0,r.jsx)(l.Z.Text,{style:{color:"inherit",fontSize:18,marginLeft:4,marginTop:8},children:"Rsdoctor"}),(0,r.jsx)(f.P,{})]})}),(0,r.jsx)(a.Z,{flex:1,children:(0,r.jsxs)(o.Z,{align:"middle",justify:"end",style:{height:u.Size.NavBarHeight},wrap:!1,gutter:[u.Size.BasePadding/3,0],children:[(0,r.jsx)(a.Z,{children:(0,r.jsx)(h.u1,{})}),(0,r.jsx)(p.I,{style:{transition:"none"}}),(0,r.jsx)(a.Z,{children:(0,r.jsx)(d.Z,{overlayStyle:{zIndex:1e3},menu:{items:n.map(t=>({label:t.label,key:t.value,onClick(){e.changeLanguage(t.value)}})),selectedKeys:[e.language]},children:(0,r.jsx)(i.Z,{className:"header-icon",style:{display:"inline-block",fontSize:20,textAlign:"center",verticalAlign:"middle",cursor:"pointer",width:30,transition:"all 0.3s ease"}})})})]})})]})})}},42579:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(97458),i=n(52983),s=n(64480),o=n(62779),a=n(95925),l=n(89782),d=n(77422),u=n(36838);let c=e=>{let t=(0,d.useLocale)(),{i18n:n}=(0,d.useI18n)(),{children:c}=e;return(0,i.useEffect)(()=>{n.language!==t&&n.changeLanguage(t)},[t]),(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(l.h,{}),(0,r.jsx)(u.E,{}),(0,r.jsxs)(s.Z.Content,{style:{height:"100%",minHeight:"100vh",padding:a.Size.BasePadding,marginTop:a.Size.NavBarHeight,background:a.MAIN_BG},children:[c,(0,r.jsx)(o.Z.BackTop,{})]})]})}},53876:function(e,t,n){"use strict";n.d(t,{I:function(){return M}});var r=n(97458),i=n(35040),s=n(46303),o=n(23205),a=n(66909),l=n(30100),d=n(15720),u=n(17614),c=n(78741),h=n(4696),f=n(90424),p=n(58678),m=n(15890),x=n(44278),g=n(51019),j=n(95925),y=n(38613),v=n(77422),S=n(43622),b=n(83177),Z=n(75910);let M=(0,S.U$)({api:c.SDK.ServerAPI.API.GetClientRoutes,responsePropName:"routes",Component:e=>{let{t}=(0,v.useI18n)(),{pathname:n}=(0,x.TH)(),S=(0,x.s0)(),{routes:M}=e,C={fontSize:16},P={...C,transform:"translateY(-2px)"},I=[];console.log("enableRoutes: ",M),(0,m.Z)(M,c.Manifest.RsdoctorManifestClientRoutes.Overall)&&I.push({label:t(y.u),key:y.B,icon:(0,r.jsx)(i.Z,{style:C}),children:[],onTitleClick(e){S(e.key)}}),(0,v.hasCompile)(M)&&I.push({label:t(Z._),key:Z._,icon:(0,r.jsx)(s.Z,{style:C}),children:[(0,m.Z)(M,c.Manifest.RsdoctorManifestClientRoutes.WebpackLoaders)&&{label:(0,r.jsx)(h.Z.Text,{style:{marginRight:8},children:t(b.Yt.u2)}),key:b.Yt.BC,icon:(0,r.jsx)("img",{src:g,alt:"",style:{...C,width:16}}),children:[{label:t(b.xA.u2),key:b.xA.BC,icon:(0,r.jsx)(i.Z,{style:C})},{label:t(b.Yt.u2),key:b.Yt.BC,icon:(0,r.jsx)(o.Z,{style:C})}]},(0,m.Z)(M,c.Manifest.RsdoctorManifestClientRoutes.ModuleResolve)&&{label:t(b.kc.u2),key:b.kc.BC,icon:(0,r.jsx)(a.Z,{style:C})},(0,m.Z)(M,c.Manifest.RsdoctorManifestClientRoutes.WebpackPlugins)&&{label:t(b.UM.u2),key:b.UM.BC,icon:(0,r.jsx)(l.Z,{style:C})}].filter(e=>!!e)}),(0,v.hasBundle)(M)&&I.push({label:t(b.P3.u2),key:b.P3.u2,icon:(0,r.jsx)("span",{style:P,children:"\uD83D\uDCE6"}),children:[(0,m.Z)(M,c.Manifest.RsdoctorManifestClientRoutes.BundleSize)&&{label:t(b.P3.u2),key:b.P3.BC,icon:(0,r.jsx)(d.Z,{style:C})},(0,m.Z)(M,c.Manifest.RsdoctorManifestClientRoutes.TreeShaking)&&{label:t(b.wH.u2),key:b.wH.BC,icon:(0,r.jsx)(d.Z,{style:C})}].filter(e=>!!e)});let w=(0,r.jsx)(f.Z,{items:I,mode:"horizontal",onClick:e=>{!e.keyPath.includes("builder-switcher")&&S(e.key)},overflowedIndicator:(0,r.jsx)(u.Z,{}),style:{height:j.Size.NavBarHeight,lineHeight:`${j.Size.NavBarHeight}px`,minWidth:0,justifyContent:"flex-end",...e.style},selectedKeys:["/"===n?y.B:n]},M.join(""));return(0,r.jsx)(p.Z,{xs:{span:3},md:{span:6},lg:{span:10},xl:{span:11},xxl:{span:12},children:w})},fallbackComponent:()=>null})},36838:function(e,t,n){"use strict";n.d(t,{E:function(){return c}});var r=n(97458),i=n(60416),s=n(58678),o=n(14516),a=n(4696),l=n(78741),d=n(95925),u=n(43622);let c=(0,u.U$)({api:l.SDK.ServerAPI.APIExtends.GetCompileProgess,responsePropName:"progress",Component:({progress:e})=>{if(!e)return null;let{percentage:t=1,message:n}=e;if(t>=1)return null;let l=+(100*t).toFixed(1);return(0,r.jsx)(i.Z,{wrap:!0,style:{width:"100%",position:"fixed",top:d.Size.NavBarHeight,left:1,zIndex:99},children:(0,r.jsx)(s.Z,{span:Math.min(Math.floor(24*t),24),children:(0,r.jsx)(o.Z,{percent:100,status:"active",size:"small",format:()=>(0,r.jsx)(a.Z.Text,{style:{fontSize:12},type:"secondary",children:`${l}% ${n}`})})})})},fallbackComponent:()=>null})},37189:function(e,t,n){"use strict";n.d(t,{Y:function(){return I}});var r=n(97458),i=n(52983),s=n(45641),o=n(50002),a=n(20942),l=n(25362),d=n(67510),u=n(4696),c=n(15196),h=n(60416),f=n(58678),p=n(82487),m=n(73725),x=n(44017),g=n(24680),j=n(93259),y=n(78741),v=n(43622),S=n(95925),b=n(77422),Z=n(84011),M=n(35972),C=n(67522),P=n(13872);let I=e=>{let{cwd:t,filetree:n}=e,[I,w]=(0,i.useState)(!1),[D,E]=(0,i.useState)(""),[k,A]=(0,i.useState)(0),[T,N]=(0,i.useState)(null),z=(0,i.useRef)(null),{initMonaco:_}=(0,b.useMonacoEditor)(),R=(0,i.useCallback)(async()=>{await _(z)},[]),L=(0,i.useMemo)(()=>n.filter(t=>t.loaders.some(n=>(0,b.filterLoader)(t.path,n.loader,e.filename,e.loaders))),[e.filename,e.loaders]),O="__RESOURCEPATH__",B=(0,i.useMemo)(()=>(0,b.createFileStructures)({files:L.map(e=>e.path),cwd:t,fileTitle(t,i){let{loaders:o}=n.find(e=>e.path===t);return(0,r.jsxs)(l.Z,{style:{wordBreak:"break-all"},onClick:()=>{A(0),E(t),w(!0)},children:[(0,r.jsx)(C.Z,{text:i,keyword:e.filename}),(0,s.Z)(t,y.Constants.JSExtension)?(0,r.jsx)(v.Nu,{api:y.SDK.ServerAPI.API.GetLoaderFileFirstInput,body:{file:t},fallbackComponent:()=>null,children:e=>(0,r.jsx)(P.y,{code:e})}):null,o.map((e,n)=>{let i=e.errors&&e.errors.length,s=`${t}_${e.loader}_${n}`;return(0,r.jsx)(d.Z,{title:e.path,children:(0,r.jsxs)(u.Z.Text,{code:!0,style:{color:i?"#f50":"inherit"},onClick:e=>{e.stopPropagation(),E(t),A(n),w(!0)},children:[(0,r.jsx)(u.Z.Text,{style:{maxWidth:135,color:"inherit"},ellipsis:!0,children:e.loader}),(0,r.jsx)(c.Z,{type:"vertical"}),i?(0,r.jsx)(j.Z,{}):(0,r.jsx)(u.Z.Text,{strong:!0,children:(0,b.formatCosts)(e.costs)})]})},s)})]})},dirTitle:(t,n)=>(0,r.jsx)(C.Z,{text:n,keyword:e.filename})}),[L]);return(0,r.jsxs)(h.Z,{style:{width:"100%"},gutter:S.Size.BasePadding,children:[(0,r.jsx)(f.Z,{span:14,children:(0,r.jsxs)(p.Z,{title:(0,r.jsxs)(u.Z.Text,{strong:!0,children:["Total Files: ",L.length]}),bodyStyle:{overflow:"scroll",maxHeight:800,height:"40rem"},children:[(0,r.jsx)(M.z,{defaultExpandedKeys:(0,b.mapFileKey)(B,L.length>=100?3:4,e=>!((0,o.Z)(e,O).indexOf("/node_modules/")>-1)),treeData:B,onSelect:(e,t)=>{R(),!t.node.isLeaf&&N(t.node)},selectedKeys:T?[T.key]:void 0,expandAction:"click"},`${e.loaders.join("|")}_${e.filename}`),(0,r.jsx)(m.Z,{open:I,onClose:()=>w(!1),maskClosable:!0,width:S.drawerWidth,zIndex:999,bodyStyle:{padding:0},children:I?(0,r.jsx)(v.Nu,{api:y.SDK.ServerAPI.API.GetLoaderFileDetails,body:{path:D},children:e=>(0,r.jsx)(Z.g,{data:e,cwd:t,index:k})}):null})]})}),T?(0,r.jsx)(f.Z,{span:10,children:(0,r.jsx)(p.Z,{title:(0,r.jsx)(d.Z,{title:i.cloneElement(T.title,{style:{color:"#fff"}}),children:(0,r.jsxs)(u.Z.Text,{children:['Statistics of "',T.title,'"']})}),children:(0,r.jsx)(v.Nu,{api:y.SDK.ServerAPI.API.GetLoaderFolderStatistics,body:{folder:T[O]},children:e=>(0,r.jsx)(x.Z,{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,r.jsx)(u.Z.Text,{strong:!0,children:(0,b.formatCosts)(e)}),sorter:(e,t)=>e.costs-t.costs,defaultSortOrder:"descend",sortDirections:["descend","ascend"]}],dataSource:e,footer:()=>(0,r.jsxs)(g.Z,{title:"Total",bordered:!0,layout:"vertical",size:"small",children:[(0,r.jsx)(g.Z.Item,{label:"loaders",children:e.length}),(0,r.jsx)(g.Z.Item,{label:"files",children:(0,a.Z)(e,e=>e.files)}),(0,r.jsx)(g.Z.Item,{label:"duration",children:(0,r.jsx)(u.Z.Text,{strong:!0,children:(0,b.formatCosts)((0,a.Z)(e,e=>e.costs))})})]})})})})}):null]})}},4487:function(e,t,n){"use strict";n.d(t,{a:function(){return d}});var r=n(97458),i=n(52983),s=n(78741),o=n(43622),a=n(37189),l=n(42068);let d=(0,o.U$)({api:s.SDK.ServerAPI.API.LoadDataByKey,body:{key:"root"},responsePropName:"cwd",Component:({cwd:e})=>{let[t,n]=(0,i.useState)({filename:"",loaders:[]});return(0,r.jsxs)("div",{children:[(0,r.jsx)(o.Nu,{api:s.SDK.ServerAPI.API.GetLoaderNames,children:e=>(0,r.jsx)(l.k,{onChange:e=>n(e),loaderNames:e})}),(0,r.jsx)(o.Nu,{api:s.SDK.ServerAPI.API.GetLoaderFileTree,children:n=>(0,r.jsx)(a.Y,{filename:t.filename,filetree:n,loaders:t.loaders,cwd:e})})]})}})},84011:function(e,t,n){"use strict";n.d(t,{g:function(){return A}});var r=n(97458),i=n(82291),s=n(68851),o=n(78741),a=n(60416),l=n(58678),d=n(25362),u=n(32447),c=n(4696),h=n(15196),f=n(93756),p=n(72858),m=n(67510),x=n(21846),g=n(56710),j=n(53754),y=n(28977),v=n.n(y),S=n(45641),b=n(52983),Z=n(95925),M=n(77422),C=n(21807),P=n(46591),I=n(99997),w=n(23675),D=n(1438);let E=({label:e,value:t,ellipsis:n=!1,...i})=>(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(l.Z,{span:6,children:(0,r.jsxs)(d.Z,{children:[(0,r.jsx)(u.Z,{status:"processing"}),(0,r.jsx)("div",{style:{width:180},children:(0,r.jsx)(c.Z.Text,{strong:!0,code:!0,children:e})}),(0,r.jsx)(h.Z,{type:"vertical"})]})}),(0,r.jsx)(l.Z,{span:18,children:(0,r.jsx)(c.Z.Paragraph,{ellipsis:n,strong:!0,...i,children:t})})]}),k=({loader:e,hasError:t,resource:n,before:s,cwd:a})=>(0,r.jsxs)(C.Zb,{title:"Loader Details",style:{border:"none"},extra:(0,r.jsx)(f.Z,{icon:(0,r.jsx)(i.Z,{}),color:"default",children:v()(e.startAt).format("YYYY-MM-DD HH:mm:ss")}),children:[e.isPitch?(0,r.jsx)(c.Z.Text,{code:!0,children:"pitch"}):null,e.isPitch||t||!(0,S.Z)(n.path,o.Constants.JSExtension)?null:(0,r.jsx)(D.E,{input:s,output:e.result||""}),(0,r.jsxs)(d.Z,{direction:"vertical",style:{padding:Z.Size.BasePadding,wordBreak:"break-all"},children:[(0,r.jsx)(E,{label:"file path",value:(0,M.beautifyPath)(n.path,a),code:!0}),(0,r.jsx)(E,{label:"resource path",value:(0,r.jsx)(I.XF,{cwd:a,url:n.path,loc:"",disabled:!0})}),(0,r.jsx)(E,{label:"resource query",value:n.queryRaw||"-"}),(0,r.jsx)(E,{label:"duration",value:(0,M.formatCosts)(e.costs),mark:!0}),(0,r.jsx)(E,{label:"loader name",value:e.loader,code:!0}),(0,r.jsx)(E,{label:"loader index",value:`${e.loaderIndex}`}),(0,r.jsx)(E,{label:"loader path",value:(0,r.jsx)(I.XF,{cwd:a,url:e.path,loc:"",disabled:!0})}),(0,r.jsx)(E,{label:"options",value:JSON.stringify(e.options||"-"),copyable:!0,ellipsis:{rows:2,expandable:!0,symbol:"more"}})]})]}),A=({data:e,cwd:t,index:n})=>{let{loaders:o,resource:u}=e,[y,v]=(0,b.useState)(n||0),{theme:S}=(0,M.useTheme)(),C="light"===S,I=o[y],D=I.input||"",E=I.errors&&I.errors.length,[A,T]=(0,b.useState)("loaderDetails"),N=(0,b.useCallback)(e=>{T(e)},[]);return(0,r.jsxs)(a.Z,{style:{height:"100%"},children:[(0,r.jsx)(l.Z,{span:5,style:{borderRight:C?"1px solid #f0f0f0":void 0,padding:Z.Size.BasePadding},children:(0,r.jsxs)(d.Z,{direction:"vertical",style:{width:"100%"},children:[(0,r.jsx)(w.D,{text:"Executions"}),(0,r.jsx)(p.Z,{mode:"left",style:{marginTop:Z.Size.BasePadding},children:o.map((e,t,n)=>{let{loader:s,isPitch:o}=e;return(0,r.jsxs)(p.Z.Item,{dot:o?(0,r.jsx)(f.Z,{style:{marginLeft:1,fontWeight:500},children:"pitch"}):(0,r.jsx)(i.Z,{}),style:{paddingBottom:10,textAlign:"center"},children:[(0,r.jsx)(a.Z,{align:"middle",justify:"space-between",gutter:[0,10],children:(0,r.jsx)(l.Z,{span:24,children:(0,r.jsx)(m.Z,{title:s,trigger:"hover",children:(0,r.jsx)(x.ZP,{type:t===y?"primary":"default",block:!0,onClick:()=>{v(t)},style:{textAlign:"left"},children:(0,r.jsxs)(c.Z.Text,{ellipsis:!0,style:{color:"inherit"},children:[(0,r.jsx)(c.Z.Text,{strong:!0,style:{color:"inherit"},children:(0,M.formatCosts)(e.costs)}),(0,r.jsx)(h.Z,{type:"vertical"}),s]})})})})}),t===n.length-1?null:(0,r.jsx)("div",{style:{paddingTop:10},children:(0,r.jsx)(c.Z.Text,{children:"\u2B07\uFE0F"})})]},t)})})]})}),(0,r.jsx)(l.Z,{span:19,style:{height:"100%"},children:(0,r.jsx)(g.Z,{type:"card",defaultActiveKey:"loaderDetails",activeKey:A,items:[{label:"Loader Props",key:"loaderProps",children:(0,r.jsx)(k,{loader:I,hasError:E,resource:u,before:D,cwd:t})},{label:"Loader Details",key:"loaderDetails",children:(0,r.jsx)("div",{style:{height:"100%"},children:E?(0,r.jsxs)(l.Z,{span:24,style:{height:"53%",minHeight:400},children:[(0,r.jsx)("div",{style:{padding:Z.Size.BasePadding,borderTop:`1px solid ${C?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`,borderBottom:`1px solid ${C?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:(0,r.jsx)(w.D,{text:`the error stack of [${I.loader}] ${I.isPitch?"pitch":""}`})}),(0,r.jsx)("div",{style:{height:"90%"},children:(0,r.jsx)(s.ZP,{theme:"vs-dark",options:{readOnly:!0,domReadOnly:!0,fontSize:14,minimap:{enabled:!1},lineNumbers:"off"},value:I.errors[0].message,language:"javascript"})})]}):(0,r.jsxs)(l.Z,{span:24,style:{height:"53%",minHeight:400},children:[(0,r.jsx)("div",{style:{padding:Z.Size.BasePadding,borderTop:`1px solid ${C?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`,borderBottom:`1px solid ${C?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:(0,r.jsx)(w.D,{text:`the result of [${I.loader}] ${I.isPitch?"pitch":""}`})}),I.isPitch?I.result?(0,r.jsx)("div",{style:{height:"90%"},children:(0,r.jsx)(s.ZP,{theme:"vs-dark",options:{readOnly:!0,domReadOnly:!0,fontSize:14,formatOnType:!0,formatOnPaste:!0},value:I.result,language:(0,M.getModifiedLanguage)(u.path)})}):(0,r.jsx)(j.Z,{description:"No loader result. If you use the Brief Mode, there will not have loader results."}):(0,r.jsxs)("div",{style:{minHeight:"700px"},children:[(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(l.Z,{span:12,style:{padding:`${Z.Size.BasePadding/2}px ${Z.Size.BasePadding}px`},children:(0,r.jsx)(c.Z.Text,{strong:!0,children:"Input"})}),(0,r.jsx)(l.Z,{span:12,style:{padding:`${Z.Size.BasePadding/2}px ${Z.Size.BasePadding}px`},children:(0,r.jsx)(c.Z.Text,{strong:!0,children:"Output"})})]}),(0,r.jsx)("div",{style:{height:"40rem"},children:I.result||D?(0,r.jsx)(P.ZX,{filepath:u.path,before:D,after:I.result||""}):(0,r.jsx)(j.Z,{description:"No loader result. If you use the Brief Mode, there will not have loader results."})})]})]})})}],onChange:N})})]})}},26255:function(e,t,n){"use strict";n.d(t,{N:function(){return m},U:function(){return x}});var r=n(97458),i=n(78741),s=n(65783),o=n(40385),a=n(52983),l=n(83053),d=n(83911),u=n(61550),c=n(15890),h=n(77422),f=n(95925),p=n(89639);let m=e=>{let t;let{manifestLoader:n=h.fetchManifest,api:m,children:x,body:g=null,showSkeleton:j=!0,fallbackComponent:y}=e,[v,S]=(0,a.useState)(),[b,Z]=(0,a.useState)(f.ComponentState.Pending),[M,C]=(0,a.useState)({}),{loader:P}=(0,h.useDataLoader)(v);function I(e){window[i.Constants.WINDOW_RSDOCTOR_TAG]?D(e):(function(e){return e.then(e=>{S(e)}).catch(e=>{throw Z(f.ComponentState.Fail),e})})(t=n()).then(()=>{D(e)})}let w=(0,a.useCallback)(({req:e,res:t})=>{e.api===m&&((0,l.Z)(e.body,g)||(0,d.Z)(e.body)&&(0,d.Z)(g))&&!(0,l.Z)(M,t)&&C(t),Z(f.ComponentState.Success)},[M,m,g]);(0,a.useEffect)(()=>{I(P)},[P,m,g]),(0,a.useEffect)(()=>{if(P)return P.onDataUpdate(m,w),()=>{P.removeOnDataUpdate(m,w)}},[P,m,g]);function D(e){if(!e)return;let t=(0,u.Z)(i.SDK.ServerAPI.APIExtends);if((0,c.Z)(t,m)){Z(f.ComponentState.Success);return}e.loadAPI(m,g).then(e=>{if(!(0,d.Z)(e))C(e),Z(f.ComponentState.Success)}).catch(e=>{console.error(e),Z(f.ComponentState.Fail)})}if(b===f.ComponentState.Pending)return j?(0,r.jsx)(s.Z,{active:!0}):null;if(b===f.ComponentState.Fail)return y?y:(0,r.jsx)(p.c,{retry:()=>{Z(f.ComponentState.Pending),t=n(),I()}});return b===f.ComponentState.Updating?(0,r.jsx)(o.Z,{spinning:!0,children:x(M)}):x(M)};function x({Component:e,api:t,responsePropName:n,body:i,fallbackComponent:s,showSkeleton:o}){return function(a){let{body:l=i,...d}=a;return(0,r.jsx)(m,{api:t,body:l,showSkeleton:o,fallbackComponent:s,children:t=>{let i={...d,[n]:t};return(0,r.jsx)(e,{...i})}})}}},42420:function(e,t,n){"use strict";n.d(t,{i:function(){return d}});var r=n(97458),i=n(65783),s=n(52983),o=n(77422),a=n(95925),l=n(89639);function d(e,t,n){let d=e();return function(){let[u,c]=(0,s.useState)(),[h,f]=(0,s.useState)(a.PageState.Pending),[p,m]=(0,s.useState)({}),{loader:x}=(0,o.useDataLoader)(u);function g(e){return e.then(e=>{c(e)}).catch(()=>{f(a.PageState.Fail)})}function j(e){e&&Promise.all(t.map(([t])=>e.loadData(t))).then(e=>{m(e.reduce((e,n,r)=>{let[i,s]=t[r];return e[s]=n,e},{})),f(a.PageState.Success)}).catch(e=>{console.error(e),f(a.PageState.Fail)})}return((0,s.useEffect)(()=>{g(d).then(()=>{j(x)})},[x]),h===a.PageState.Pending)?(0,r.jsx)(i.Z,{active:!0}):h===a.PageState.Fail?(0,r.jsx)(l.c,{retry:()=>{f(a.PageState.Pending),d.then(()=>{j(x)}).catch(()=>{g(e())})}}):(0,r.jsx)(n,{...p})}}},43622:function(e,t,n){"use strict";n.d(t,{Nu:function(){return i.N},U$:function(){return i.U},i8:function(){return r.i}});var r=n(42420),i=n(26255)},97835:function(e,t,n){"use strict";n.d(t,{X:function(){return u}});var r=n(97458),i=n(4696),s=n(77410),o=n.n(s),a=n(96883),l=n(7368);let d=+Date.now().toString().slice(-4)+1e3,u=({cwd:e,url:t,loc:n,windowId:s=d,label:u,disabled:c,code:h=!1})=>{let f=o().resolve(e,function(e){let t=e.split(" "),n="";return 1===t.length?[n]=t:[n]=t.filter(e=>o().isAbsolute(e)||(0,a.Z)(e,"./")),n||e}(t)),{line:p,columnStart:m}=function(e){if(!e)return{line:1,column:1};let[t,n=""]=e.split(":"),[r=1,i]=n.split("-");return{line:t,columnStart:r,columnEnd:i||r}}(n);return(0,r.jsxs)("span",{style:{wordBreak:"break-all"},children:[(0,r.jsx)(i.Z.Text,{copyable:{text:f},children:(0,r.jsxs)(i.Z.Text,{code:h,onClick:()=>{!c&&(0,l.a)({file:f,line:p,column:m,windowId:s})},style:{cursor:c?"revert":"pointer"},children:[u||t,n?`:${n}`:""]})}),(0,r.jsx)("div",{style:{display:"inline-block"}})]})}},99997:function(e,t,n){"use strict";n.d(t,{XF:function(){return r.X}});var r=n(97835);n(7368)},7368:function(e,t,n){"use strict";n.d(t,{a:function(){return i}}),n(97458);var r=n(83911);function i({file:e,line:t=1,column:n=1,windowId:i}){let s={windowId:i},o=Object.keys(s).map(e=>{let t=s[e];return(0,r.Z)(t)||""===t?null:`${e}=${t}`}).filter(Boolean).join("&"),a=`vscode://file/${e}:${t}:${n}`;o&&(a+=`?${o}`),window.open(a)}},9665:function(e,t,n){"use strict";n.d(t,{_:function(){return a}});var r=n(97458),i=n(21846),s=n(4696),o=n(57102);let a=({theme:e,number:t,onClick:n,description:a,numberFontSize:l})=>{let d={success:{number:o.Z.successNumber,button:o.Z.successButton,description:o.Z.successText},error:{number:o.Z.errorNumber,button:o.Z.errorButton,description:o.Z.errorText},warning:{number:o.Z.warningNumber,button:o.Z.warningButton,description:o.Z.warningText}};return(0,r.jsxs)(i.ZP,{type:"text",className:d[e].button,onClick:n,children:[(0,r.jsx)(s.Z.Text,{className:d[e].number,style:{fontSize:l},children:t}),(0,r.jsx)("div",{className:d[e].description,children:a})]})}},57102:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}}),n(15702);var r={errorNumber:"errorNumber_3c2f5",warningNumber:"warningNumber_3c2f5",successNumber:"successNumber_3c2f5",errorText:"errorText_3c2f5",warningText:"warningText_3c2f5",successText:"successText_3c2f5",errorButton:"errorButton_3c2f5",warningButton:"warningButton_3c2f5",successButton:"successButton_3c2f5",container:"container_3c2f5"}},10907:function(e,t,n){"use strict";n.d(t,{v:function(){return C}});var r=n(97458),i=n(25362),s=n(4696),o=n(93756),a=n(24680),l=n(60416),d=n(58678),u=n(52983),c=n(78741),h=n(77446),f=n(44278),p=n(77422),m=n(57448),x=n(21807),g=n(43622),j=n(35972),y=n(59544),v=n(19942),S=n(57102),b=n(9665);let Z=e=>{let t=(0,u.useMemo)(()=>e.files.length?(0,p.createFileStructures)({files:e.files.map(e=>e.path),fileTitle(t,n){let{size:a,initial:l}=e.files.find(e=>e.path===t);return(0,r.jsxs)(i.Z,{children:[(0,r.jsx)(s.Z.Text,{children:n}),(0,r.jsx)(o.Z,{color:"success",style:{marginRight:0},children:(0,p.formatSize)(a)}),l?(0,r.jsx)(o.Z,{color:"cyan",children:"Initial"}):null]})}}):[],[e.files]);return(0,r.jsx)(r.Fragment,{children:e.files.length?(0,r.jsx)(m.XU,{buttonProps:{size:"small"},buttonStyle:{fontSize:"inherit"},text:(0,r.jsxs)(r.Fragment,{children:[e.count," ",(0,r.jsx)(h.Z,{})]}),children:(0,r.jsx)(j.z,{treeData:t,defaultExpandAll:!0})}):e.count})},M=({res:e})=>{let t=[{key:"total-files-count",label:"Total files",children:e.all.total.count},{key:"total-files-size",label:"",children:""},{key:"js-files-count",label:"JS files",children:Z(e.js.total)},{key:"js-files-size",label:"JS size",children:(0,p.formatSize)(e.js.total.size)},{key:"css-files-count",label:"CSS files",children:Z(e.css.total)},{key:"css-files-size",label:"CSS size",children:(0,p.formatSize)(e.css.total.size)},{key:"font-files-count",label:"Font files",children:Z(e.fonts.total)},{key:"font-files-size",label:"Font size",children:(0,p.formatSize)(e.fonts.total.size)},{key:"html-files-count",label:"HTML files",children:Z(e.html.total)},{key:"html-files-size",label:"HTML size",children:(0,p.formatSize)(e.html.total.size)},{key:"image-files-count",label:"Image files",children:Z(e.imgs.total)},{key:"image-files-size",label:"Image size",children:(0,p.formatSize)(e.imgs.total.size)},{key:"media-files-count",label:"Media files",children:Z(e.media.total)},{key:"media-files-size",label:"Media size",children:(0,p.formatSize)(e.media.total.size)}];return(0,r.jsx)(a.Z,{className:y.Z.root,size:"small",column:2,items:t})},C=({errors:e,cwd:t})=>{let{t:n}=(0,p.useI18n)(),i=(0,f.s0)(),s=(0,p.useDuplicatePackagesByErrors)(e);return(0,r.jsx)(g.Nu,{api:c.SDK.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!1},children:e=>{let o=(0,p.formatSize)(e.all.total.size);return(0,r.jsxs)(x.Zb,{title:n("Bundle Overall"),className:v.Z.card,children:[(0,r.jsxs)(l.Z,{gutter:16,children:[(0,r.jsx)(d.Z,{span:12,className:S.Z.container,children:(0,r.jsx)(b._,{theme:"success",number:o,description:"Total Size",numberFontSize:"30px",onClick:()=>{i(c.Client.RsdoctorClientRoutes.BundleSize)}})}),(0,r.jsx)(d.Z,{span:12,className:S.Z.container,children:(0,r.jsx)(m.sv,{cwd:t,duplicatePackages:s,button:(0,r.jsx)(b._,{theme:0===s.length?"success":"warning",number:s.length,description:"Duplicate Packages"})})})]}),(0,r.jsx)(M,{res:e})]})}})}},19942:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}}),n(35371);var r={card:"card_3bba1"}},81981:function(e,t,n){"use strict";n.d(t,{F:function(){return j}});var r=n(97458),i=n(46641),s=n(4696),o=n(15196),a=n(25362),l=n(14516),d=n(77422),u=n(21807),c=n(85057),h=n(92381),f=n(21682),p=n(19942),m=n(55295);let x=({children:e,name:t,showDivider:n=!0})=>(0,r.jsxs)(s.Z.Text,{style:{color:"inherit"},children:[(0,r.jsx)(s.Z.Text,{style:{color:"inherit"},children:t}),n?(0,r.jsx)(o.Z,{type:"vertical"}):null,e]}),g=e=>e<33.3?{"0%":"#95de64","100%":"#5cdbd3"}:{"0%":"#ff9c6e","100%":"#ff7875"},j=({summary:e})=>{let{t}=(0,d.useI18n)();if(!e?.costs?.length)return null;let n=Math.max(...e.costs.map(e=>e.costs));return(0,r.jsx)(u.Zb,{title:t("Compile Overall"),className:p.Z.card,children:(0,r.jsx)(a.Z,{style:{wordBreak:"break-all",width:"100%"},size:20,direction:"vertical",children:e.costs.map(t=>{let{name:s,costs:o}=t,a=100*o/n,u=(0,r.jsx)(l.Z,{className:m.Z.progress,percent:a,status:"normal",strokeColor:g(a),format:()=>(0,d.formatCosts)(o)});switch(s){case i.ER.M.Bootstrap:return(0,r.jsxs)(x,{name:"Bootstrap ~ BeforeCompile",children:[(0,r.jsx)(c.E,{summary:e}),u]},s);case i.ER.M.Compile:return(0,r.jsx)(x,{name:"Compile",showDivider:!1,children:u},s);case i.ER.M.Done:return(0,r.jsxs)(x,{name:"AfterCompile ~ Done",children:[(0,r.jsx)(h.T,{summary:e}),u]},s);case i.ER.M.Minify:return(0,r.jsxs)(x,{name:"Minify",children:[(0,r.jsx)(f.Z,{summary:e}),u]},s);default:return null}})})})}},55295:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}}),n(90438);var r={progress:"progress_61324"}},23312:function(e,t,n){"use strict";n.d(t,{F8:function(){return i.F},lj:function(){return s.l},vD:function(){return r.v}});var r=n(10907),i=n(81981),s=n(22686)},59544:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}}),n(22338);var r={root:"root_17e15"}},22686:function(e,t,n){"use strict";n.d(t,{l:function(){return j}});var r=n(97458),i=n(60416),s=n(58678),o=n(25362),a=n(24680),l=n(52136),d=n(77422),u=n(51264),c=n(21807),h=n(59544),f=n(19942),p=n(57102),m=n(57448),x=n(14496),g=n(9665);let j=({configs:e=[],cwd:t,envinfo:n,alerts:j=[]})=>{let{t:y}=(0,d.useI18n)(),v=(0,l.Z)(j,e=>"warn"===e.level).length,S=j.length-v,b=[...Object.keys(n).map(e=>{let t=/Version$/,r=t.test(e);return{key:e,label:r?e.replace(t,""):e,children:n?n[e]:void 0}}),...e.filter(e=>!!e.version).map(e=>{let{name:t,version:n}=e;return{key:t,label:t,children:n}}),{key:"cwd",label:"cwd",children:t}];return(0,r.jsxs)(c.Zb,{title:y("Project Overall"),extra:(0,r.jsx)(u.S,{}),className:f.Z.card,children:[(0,r.jsxs)(i.Z,{gutter:16,children:[(0,r.jsx)(s.Z,{span:12,className:p.Z.container,children:(0,r.jsx)(m.XU,{button:(0,r.jsx)(g._,{theme:0===S?"success":"error",number:S,description:"Errors"}),drawerProps:{title:"Errors List"},children:(0,r.jsxs)(o.Z,{direction:"vertical",style:{width:"100%"},children:[(0,r.jsx)(x.QE,{defaultOpen:!1}),(0,r.jsx)(x.CG,{filter:e=>"error"===e.level}),(0,r.jsx)(x.$X,{filter:e=>"error"===e.level})]})})}),(0,r.jsx)(s.Z,{span:12,className:p.Z.container,children:(0,r.jsx)(m.XU,{button:(0,r.jsx)(g._,{theme:0===v?"success":"warning",number:v,description:"Warnings"}),drawerProps:{title:"Warnings List"},children:(0,r.jsxs)(o.Z,{direction:"vertical",style:{width:"100%"},children:[(0,r.jsx)(x.QE,{defaultOpen:!1}),(0,r.jsx)(x.CG,{filter:e=>"warn"===e.level}),(0,r.jsx)(x.$X,{filter:e=>"warn"===e.level})]})})})]}),(0,r.jsx)(a.Z,{className:h.Z.root,items:b,size:"small",column:1})]})}},13938:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var r=n(97458);n(52983);var i=n(44017),s=n(67510),o=n(20942),a=n(77422);let l=({dataSource:e})=>(0,r.jsx)(i.Z,{dataSource:e,rowKey:e=>`${e.tapName}_${e.hook}`,columns:[{title:"Plugin Tap Name",render:(e,t)=>t.tapName},{title:"Hook",render:(e,t)=>t.hook},{title:"calls",render:(e,t)=>(0,r.jsx)(s.Z,{title:`"${t.hook}" has been called ${t.data.length} times by "${t.tapName}"`,children:t.data.length}),sorter:(e,t)=>e.data.length-t.data.length},{title:"duration(total)",render:(e,t)=>(0,a.formatCosts)((0,o.Z)(t.data,e=>e.costs)),sorter:(e,t)=>(0,o.Z)(e.data,e=>e.costs)-(0,o.Z)(t.data,e=>e.costs),defaultSortOrder:"descend"}]})},90647:function(e,t,n){"use strict";n.d(t,{gY:function(){return w}});var r=n(97458),i=n(52983),s=n(73934),o=n(50002),a=n(58678),l=n(82487),d=n(21846),u=n(44017),c=n(4696),h=n(60416),f=n(25362),p=n(60592),m=n(15471),x=n(93259),g=n(25974),j=n(46641),y=n(78741),v=n(95925),S=n(77422),b=n(35972),Z=n(33448),M=n(46591),C=n(43622);let P=({filepath:e,before:t,after:n,resolvers:s})=>{let[o,h]=(0,i.useState)(!1);return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(a.Z,{flex:1,children:(0,r.jsx)(l.Z,{title:"Resolve Diff Viewer",children:(0,r.jsx)(M.ZX,{filepath:e,before:t,after:n,editorProps:{height:735}})})}),(0,r.jsx)(a.Z,{span:o?2:7,children:(0,r.jsx)(l.Z,{title:o?"...":"Resolve Details",extra:(0,r.jsx)(d.ZP,{onClick:()=>h(!o),size:"small",icon:o?(0,r.jsx)(p.Z,{}):(0,r.jsx)(m.Z,{})}),style:o?{width:80}:void 0,children:o?null:(0,r.jsx)(u.Z,{style:{width:"100%",height:735,overflowY:"scroll",wordBreak:"break-all"},size:"small",pagination:!1,bordered:!0,rowKey:e=>e.request,columns:[{title:"Source Code",width:200,render:(e,t)=>(0,r.jsx)(c.Z.Text,{copyable:!0,children:(0,r.jsx)(c.Z.Text,{code:!0,strong:!0,children:t.request})})},{title:"Duration",width:80,render:(e,t)=>(0,r.jsx)(c.Z.Text,{strong:!0,children:(0,S.formatCosts)(t.costs)}),sorter:(e,t)=>e.costs-t.costs,sortDirections:["descend","ascend"]},{title:"Resolve Result",render:(e,t)=>j.H2.Q4(t)?(0,r.jsx)(c.Z.Text,{copyable:!0,children:t.result}):(0,r.jsx)(x.Z,{style:{color:"#f50"}})}],dataSource:s})})})]})},I=e=>{let{resolver:t,cwd:n}=e,[d,u]=(0,i.useState)(""),c="/node_modules/",f=(0,i.useMemo)(()=>(0,s.Z)(t,e=>e.issuerPath).filter(Boolean),[t]),p=(0,i.useMemo)(()=>f.filter(t=>!e.filename||t.indexOf(e.filename)>-1),[e.filename,f]),m=p.length&&p.every(e=>e.indexOf(c)>-1),x=(0,i.useMemo)(()=>(0,S.createFileStructures)({files:p.length?p:f,cwd:n,fileTitle:(e,t)=>(0,r.jsx)("div",{onClick:()=>u(e),children:t})}),[e.filename]);return(0,r.jsxs)(h.Z,{justify:"start",align:"top",wrap:!1,gutter:v.Size.BasePadding,children:[(0,r.jsx)(a.Z,{span:7,children:(0,r.jsx)(l.Z,{title:"Files",children:(0,r.jsx)(b.z,{style:{width:"100%",height:735,overflow:"scroll"},treeData:x,defaultExpandedKeys:(0,S.mapFileKey)(x,m?1:4,m?void 0:e=>{let t=(0,o.Z)(e,"__RESOURCEPATH__").indexOf(c)>-1;return!!(p.length&&p.every(e=>e.indexOf(c)>-1))||!t})},`tree_${e.filename}`)})}),d&&(0,r.jsx)(C.Nu,{api:y.SDK.ServerAPI.API.GetResolverFileDetails,body:{filepath:d},children:e=>(0,r.jsx)(P,{...e})})]})},w=(0,C.U$)({api:y.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:({project:e})=>{let{root:t}=e,[n,s]=(0,i.useState)("");return(0,r.jsxs)("div",{style:{width:"100%"},children:[(0,r.jsx)(f.Z,{style:{marginTop:v.Size.BasePadding,marginBottom:v.Size.BasePadding},children:(0,r.jsx)(Z.a,{icon:(0,r.jsx)(g.Z,{}),label:"Filename",placeholder:"search filename by keyword",onChange:e=>s(e)})}),(0,r.jsx)(C.Nu,{api:y.SDK.ServerAPI.API.GetResolverFileTree,children:e=>(0,r.jsx)(I,{filename:n,resolver:e,cwd:t})})]})}})},42068:function(e,t,n){"use strict";n.d(t,{k:function(){return m}});var r=n(97458),i=n(52983),s=n(6377),o=n(21846),a=n(4696),l=n(35737),d=n(25362),u=n(43136),c=n(25974),h=n(33448),f=n(95925);let p=({style:e,onChange:t,loaderNames:n})=>{let[d,c]=(0,i.useState)([]);return(0,r.jsxs)(s.Z.Group,{compact:!0,style:e,children:[(0,r.jsxs)(o.ZP,{style:{width:120},children:[(0,r.jsx)(u.Z,{}),(0,r.jsx)(a.Z.Text,{children:"Loaders"})]}),(0,r.jsx)(l.Z,{mode:"multiple",allowClear:!0,defaultValue:d,style:{width:350},dropdownMatchSelectWidth:!0,placeholder:"select loaders",onChange:e=>{c(e),t(e)},children:n.map(e=>(0,r.jsx)(l.Z.Option,{label:e,value:e,children:e},e))})]})},m=({onChange:e,loaderNames:t})=>{let[n,s]=(0,i.useState)([]),[o,a]=(0,i.useState)("");return(0,i.useEffect)(()=>{e({loaders:n,filename:o})},[n,o]),(0,r.jsxs)(d.Z,{style:{marginBottom:f.Size.BasePadding},children:[(0,r.jsx)(p,{loaderNames:t,style:{marginRight:f.Size.BasePadding-8},onChange:e=>{s(e)}}),(0,r.jsx)(h.a,{icon:(0,r.jsx)(c.Z,{}),label:"Filename",placeholder:"search filename by keyword",onChange:e=>{a(e)}})]})}},29802:function(e,t,n){"use strict";n.d(t,{c:function(){return c}});var r=n(97458),i=n(53754),s=n(25362),o=n(4696),a=n(21846),l=n(52983);let d="Load data failed, please try again",u="retry",c=l.memo(({title:e=d,buttonText:t=u,retry:n})=>(0,r.jsx)(i.Z,{description:(0,r.jsxs)(s.Z,{direction:"vertical",children:[(0,r.jsx)(o.Z.Text,{children:e}),(0,r.jsx)(a.ZP,{type:"primary",onClick:()=>{n()},children:t})]})}))},89639:function(e,t,n){"use strict";n.d(t,{c:function(){return r.c}});var r=n(29802)},50010:function(e,t,n){"use strict";n.d(t,{s:function(){return p}});var r=n(97458),i=n(67510),s=n(25362),o=n(4696),a=n(60416),l=n(58678);n(78741);var d=n(77446);n(46641);var u=n(95925),c=n(57448),h=n(57031);n(43622);let f=({duplicatePackages:e=[],cwd:t,children:n,...f})=>(0,r.jsx)(c.XU,{...f,buttonStyle:{fontSize:"inherit",...f.buttonStyle},buttonProps:{type:"text",...f.buttonProps},text:(0,r.jsx)(i.Z,{title:"Click to show the details of duplicate packages",children:(0,r.jsxs)(s.Z,{style:{fontSize:"inherit"},children:[(0,r.jsx)(o.Z.Text,{strong:!0,style:{fontSize:"inherit",color:"inherit",...f.textStyle},children:e.length}),(0,r.jsx)(d.Z,{})]})}),drawerProps:{title:"Duplicate Packages Viewer",...f.drawerProps},children:(0,r.jsx)(a.Z,{gutter:[u.Size.BasePadding,u.Size.BasePadding],children:e.map((e,i)=>(0,r.jsx)(l.Z,{span:24,children:(0,r.jsx)(h.jA,{data:e,cwd:t,getPackageRelationContentComponent:n})},i))})}),p=e=>(0,r.jsx)(f,{...e,children:t=>(0,r.jsx)(h.md,{body:{id:t.data.id,target:t.package.target},cwd:e.cwd})})},57448:function(e,t,n){"use strict";n.d(t,{XU:function(){return d},sv:function(){return l.s}});var r=n(97458),i=n(21846),s=n(73725),o=n(52983),a=n(95925),l=n(50010);let d=e=>{let[t,n]=(0,o.useState)(!1);return(0,r.jsxs)(o.Fragment,{children:[e.button?(0,r.jsx)("div",{onClick:()=>n(!t),children:e.button}):(0,r.jsx)(i.ZP,{type:"link",...e.buttonProps,onClick:()=>n(!t),style:{padding:0,...e.buttonStyle},children:e.text}),(0,r.jsx)(s.Z,{maskClosable:!0,width:a.drawerWidth,zIndex:999,...e.drawerProps,open:t,onClose:()=>n(!1),destroyOnClose:!0,children:e.children})]})}},23675:function(e,t,n){"use strict";n.d(t,{D:function(){return o}});var r=n(97458),i=n(4696),s=n(42689);let o=({upperFisrt:e=!0,fontSize:t=16,text:n,hash:o})=>{let a="string"==typeof n&&e?(0,s.Z)(n):n;return(0,r.jsx)(i.Z.Text,{style:{fontSize:t},strong:!0,children:o?(0,r.jsx)("a",{href:o,id:o.replace(/^#/,""),style:{color:"inherit"},children:a}):a})}},31646:function(e,t,n){"use strict";n.d(t,{Ar:function(){return r.A}}),n(97946),n(14496),n(94386),n(21807),n(46591);var r=n(42579);n(23312),n(43622),n(33448),n(57448),n(91770),n(67451)},13872:function(e,t,n){"use strict";n.d(t,{y:function(){return u}});var r=n(97458),i=n(52983),s=n(94386),o=n(79381),a=n(47993);let l=()=>new Worker(new URL(n.p+n.u("811"),n.b)),d={[o.ECMAVersion.ES5]:s.Rf[s.gZ.Success],[o.ECMAVersion.ES6]:s.Rf[s.gZ.Error],[o.ECMAVersion.ES7P]:s.Rf[s.gZ.Error]},u=({code:e})=>{if(!e)return null;let{version:t}=function(e){let{code:t}=e,[n,r]=(0,i.useState)();return(0,i.useEffect)(()=>{if(!t)return;let{abort:e}=a.master.detectWorker(l).emit(t,e=>{r(e)});return()=>{e()}},[t]),{version:n}}({code:e});return t?(0,r.jsx)("div",{style:{display:"inline-block",height:19.5,padding:"0px 4px",width:40,fontSize:10,lineHeight:"19.5px",textAlign:"center",color:"#fff",background:d[t]||s.Rf[s.gZ.Default],borderRadius:4},children:t}):null}},1438:function(e,t,n){"use strict";n.d(t,{E:function(){return d}});var r=n(97458),i=n(52983),s=n(93756),o=n(47993),a=n(77422);let l=()=>new Worker(new URL(n.p+n.u("432"),n.b)),d=({input:e,output:t})=>{if(!e||!t)return null;let{isEqual:n}=function(e){let{input:t,output:n}=e,[r,s]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(!t||!n)return;let{abort:e}=o.master.detectWorker(l).emit({input:t,output:n},e=>{s(e)});return()=>{e()}},[t,n]),{isEqual:r}}({input:e,output:t}),{t:d}=(0,a.useI18n)();return n?(0,r.jsx)(s.Z,{color:"warning",children:d("the file content not changed after transpiled by this loader")}):null}},67351:function(e,t,n){"use strict";n.d(t,{E:function(){return a},u:function(){return o}});var r=n(52983),i=n(41451),s=n(95925);let o={locale:(0,i.V1)(),theme:(0,i.Bd)(),pageState:s.PageState.Pending,viewMode:(0,i.ZM)(),json:{},setTheme(){},setManifest(){},setPageState(e){},setViewMode(){}},a=(0,r.createContext)({...o})},95925:function(e,t,n){"use strict";n.r(t),n.d(t,{APILoaderMode4Dev:function(){return x},Color:function(){return j},ComponentState:function(){return f},Language:function(){return m},MAIN_BG:function(){return S},PageState:function(){return h},ROOT_BG_COLOR:function(){return b},Size:function(){return g},TAG_PALLETE:function(){return v},Theme:function(){return c},ViewMode:function(){return p},drawerWidth:function(){return y}});var r,i,s,o,a,l,d,u,c=((r=c||{}).Light="light",r.Dark="dark",r);var h=((i=h||{})[i.Success=0]="Success",i[i.Pending=1]="Pending",i[i.Fail=2]="Fail",i);var f=((s=f||{})[s.Success=0]="Success",s[s.Pending=1]="Pending",s[s.Updating=2]="Updating",s[s.Fail=3]="Fail",s);var p=((o=p||{}).List="list",o.Group="group",o);var m=((a=m||{}).Cn="cn",a.En="en",a);var x=((l=x||{}).Local="local",l.Remote="remote",l.Default="default",l);var g=((d=g||{})[d.BasePadding=24]="BasePadding",d[d.BaseBorderRadius=8]="BaseBorderRadius",d[d.NavBarHeight=54]="NavBarHeight",d);var j=((u=j||{}).Red="#e17055",u.Green="#52c41a",u.Yellow="#faad14",u.Blue="#1677ff",u);let y="undefined"==typeof window?0:.85*window.innerWidth>=1100?.85*window.innerWidth:1100,v={COLOR_A:"#90DCE9",COLOR_B:"green",COLOR_C:"#4EAAB9",COLOR_D:"#B7E9F4",COLOR_E:"#2E7CBE",DARK_BLUE:"#1554ad"},S="",b="rgb(105, 177, 255)"},18005:function(e,t,n){"use strict";n.d(t,{Constants:function(){return i}}),n(31646);var r=n(77422);n.o(r,"Constants")&&n.d(t,{Constants:function(){return r.Constants}});var i=n(95925)},89256:function(e,t,n){"use strict";n.d(t,{VT:function(){return W}});var r=n(97458),i=n(47880),s=n(38490),o=n(40862),a=n(96733),l=n(68851),d=n(78741),u=n(53754),c=n(82487),h=n(87999),f=n(4696),p=n(73725),m=n(25362),x=n(67510),g=n(15196),j=n(93756),y=n(21846),v=n(60416),S=n(58678),b=n(80613),Z=n(20942),M=n(77410),C=n(52983),P=n(43622),I=n(18602),w=n(94386),D=n(35972),E=n(33448),k=n(67522),A=n(57448),T=n(95925),N=n(77422),z=n(53394);let _=[],R={source:"source code",transformed:"Transformed Code (After compile)",parsedSource:"Bundled Code (After bundle and tree-shaking)"},L={margin:"none",marginInlineEnd:0},O=()=>(0,r.jsx)(u.Z,{description:`Do not have the module code.
|
|
78
|
-
(1) If you use the brief mode, there will not have any codes to show.
|
|
79
|
-
(2) If you use lite mode, there will not have source codes.`}),B=({data:e})=>{let[t,n]=(0,C.useState)(""),{t:s}=(0,N.useI18n)(),o={source:"Source Code",transformed:`Transformed Code(${s("After Compile")})`,parsedSource:`Bundled Code(${s("After Bundled")})`};if(!e)return null;let{path:a}=e;return(0,r.jsx)(A.XU,{text:"",buttonProps:{size:"small",icon:(0,r.jsx)(i.Z,{}),type:"default"},buttonStyle:{padding:"0 4px"},drawerProps:{destroyOnClose:!0,title:`Code of "${a}"`},children:(0,r.jsx)(P.Nu,{api:d.SDK.ServerAPI.API.GetModuleCodeByModuleId,body:{moduleId:e.id},children:e=>(0,r.jsx)(r.Fragment,{children:e.source||e.parsedSource||e.transformed?(0,r.jsx)(c.Z,{className:"code-size-card",style:{width:"100%"},tabList:Object.keys((0,b.Z)(e,e=>!e)).map(e=>({tab:e})).map(e=>({...e,tab:o[e.tab],key:e.tab})),defaultActiveTabKey:e.parsedSource?"parsedSource":"source",onTabChange:e=>n(e),tabBarExtraContent:(0,r.jsx)(h.Z,{placement:"bottom",title:(0,r.jsx)(f.Z.Title,{level:5,children:"Explain"}),content:(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",marginBottom:30},children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(f.Z.Text,{strong:!0,children:"Source: "}),(0,r.jsx)(f.Z.Text,{children:R.source})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)(f.Z.Text,{strong:!0,children:["Transformed:"," "]}),(0,r.jsx)(f.Z.Text,{children:R.transformed})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)(f.Z.Text,{strong:!0,children:["Bundled Source:"," "]}),(0,r.jsx)(f.Z.Text,{children:R.parsedSource})]}),(0,r.jsx)("br",{}),(0,r.jsx)(f.Z.Text,{strong:!0,children:"More"}),(0,r.jsx)(f.Z.Text,{children:s("CodeModeExplain")})]})}),trigger:"hover",children:(0,r.jsx)("a",{href:"#",children:"Explain"})}),children:e.parsedSource||e.source||e.transformed?(0,r.jsx)(l.ZP,{theme:"vs-dark",language:(0,N.getOriginalLanguage)(a),height:window.innerHeight/1.5,value:t?e[t]:e.parsedSource?e.parsedSource:e.source,options:{readOnly:!0,domReadOnly:!0,fontSize:14,wordWrap:"bounded",minimap:{enabled:!1}}}):(0,r.jsx)(O,{})}):(0,r.jsx)(O,{})})})})},$=({id:e,show:t,setShow:n,cwd:i})=>e?(0,r.jsx)(p.Z,{open:t,maskClosable:!0,width:T.drawerWidth,onClose:()=>n(!1),children:(0,r.jsx)(P.Nu,{api:d.SDK.ServerAPI.API.GetAllModuleGraph,body:{},children:t=>(0,r.jsx)(I.H,{cwd:i,moduleId:e,modules:t})})}):null,G="__RESOURCEPATH__",F=({modules:e,chunks:t,filteredModules:n})=>{let{sourceSize:i,parsedSize:o,filteredParsedSize:a,filteredSourceSize:l}=(0,C.useMemo)(()=>({sourceSize:(0,Z.Z)(e,e=>e.size.sourceSize),parsedSize:(0,Z.Z)(e,e=>e.size.parsedSize),filteredSourceSize:(0,Z.Z)(n,e=>e.size.sourceSize),filteredParsedSize:(0,Z.Z)(n,e=>e.size.parsedSize)}),[e,n]);return(0,r.jsxs)(m.Z,{children:[(0,r.jsx)(x.Z,{title:`total modules count is ${e.length}, the filtered modules count is ${n.length}`,children:(0,r.jsxs)(m.Z,{children:[(0,r.jsxs)(f.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules: ",n.length," / ",e.length]}),(0,r.jsx)(s.Z,{})]})}),(0,r.jsx)(g.Z,{type:"vertical"}),(0,r.jsx)(x.Z,{title:(0,r.jsxs)(m.Z,{direction:"vertical",children:[(0,r.jsxs)(f.Z.Text,{style:{color:"inherit"},children:["Total modules bundled size: ",(0,N.formatSize)(o)]}),(0,r.jsxs)(f.Z.Text,{style:{color:"inherit"},children:["Total modules source size: ",(0,N.formatSize)(i)]}),(0,r.jsxs)(f.Z.Text,{style:{color:"inherit"},children:["Filtered modules bundled size: ",(0,N.formatSize)(a)]}),(0,r.jsxs)(f.Z.Text,{style:{color:"inherit"},children:["Filtered modules source size: ",(0,N.formatSize)(l)]})]}),children:(0,r.jsxs)(m.Z,{children:[(0,r.jsxs)(f.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules Size:"," ",a===o?(0,N.formatSize)(o):`${(0,N.formatSize)(a)} / ${(0,N.formatSize)(o)}`]}),(0,r.jsx)(s.Z,{})]})}),(0,r.jsx)(g.Z,{type:"vertical"}),(0,r.jsx)(x.Z,{title:(0,r.jsxs)(m.Z,{direction:"vertical",children:[(0,r.jsxs)(f.Z.Text,{style:{color:"inherit"},children:["this asset includes ",t.length," chunks:"," "]}),t.map(e=>(0,r.jsx)(w.Ct,{label:"chunk",value:e.name},e.name))]}),children:(0,r.jsxs)(m.Z,{children:[(0,r.jsxs)(f.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Chunks: ",t.length]}),(0,r.jsx)(s.Z,{})]})})]})},W=({asset:e,chunks:t,modules:n,moduleSizeLimit:i,height:s,root:l})=>{let[h,p]=(0,C.useState)(""),[g,b]=(0,C.useState)(!1),[P,I]=(0,C.useState)([]),[w,A]=(0,C.useState)(!1),R=(0,C.useMemo)(()=>{let e=n.slice();if(h){let t=RegExp(h,"i");e=e.filter(e=>t.test(e.path))}return i&&(e=e.filter(e=>e.size.parsedSize>=i)),e},[n,h,i]),O=(0,C.useMemo)(()=>(0,N.createFileStructures)({files:R.map(e=>e.path).filter(Boolean),inlinedResourcePathKey:G,fileTitle(e,t){let i=R.find(t=>t.path===e);if(!i)return t;let{parsedSize:s=0,sourceSize:a=0}=i.size,l=i.kind===d.SDK.ModuleKind.Concatenation,u=!l&&0===s&&n.filter(e=>e!==i&&e.modules&&e.modules.indexOf(i.id)>-1);return(0,r.jsxs)(m.Z,{children:[(0,r.jsx)(k.Z,{ellipsis:!0,style:{maxWidth:500},text:t,keyword:h}),0!==s?(0,r.jsx)(x.Z,{title:(0,r.jsxs)(m.Z,{direction:"vertical",children:[(0,r.jsx)(j.Z,{color:"orange",children:"Bundled Size:"+(0,N.formatSize)(s)}),(0,r.jsx)(j.Z,{color:"volcano",children:"Source Size:"+(0,N.formatSize)(a)})]}),color:"white",children:(0,r.jsx)(j.Z,{color:"purple",style:L,children:"Bundled: "+(0,N.formatSize)(s)})}):0!==a?(0,r.jsx)(j.Z,{color:"geekblue",children:"Source Size:"+(0,N.formatSize)(a)}):null,l?(0,r.jsx)(x.Z,{title:(0,r.jsx)(m.Z,{children:(0,r.jsxs)(f.Z.Text,{style:{color:"inherit"},children:["this is a concatenated module, it contains"," ",i.modules?.length," modules"]})}),children:(0,r.jsx)(j.Z,{color:"green",style:L,children:"concatenated"})}):null,u&&u.length?(0,r.jsx)(x.Z,{title:(0,r.jsxs)(m.Z,{direction:"vertical",children:[(0,r.jsx)(f.Z.Text,{style:{color:"inherit"},children:"this is a concatenated module, it is be contained in these modules below:"}),u.map(({id:e,path:t})=>{if((0,N.isJsDataUrl)(t))return(0,r.jsx)(f.Z.Paragraph,{ellipsis:{rows:4},style:{color:"inherit",maxWidth:"100%"},code:!0,children:t},e);let n=(0,M.relative)((0,M.dirname)(i.path),t);return n.startsWith("javascript;charset=utf-8;base64,")?(0,r.jsx)(f.Z.Text,{style:{color:"inherit",maxWidth:"100%"},code:!0,children:"."===n[0]?n:`./${n}`},e):(0,r.jsx)(f.Z.Text,{style:{color:"inherit"},code:!0,children:"."===n[0]?n:`./${n}`},e)})]}),children:(0,r.jsx)(j.Z,{color:"green",children:"concatenated"})}):null,(0,r.jsx)(y.ZP,{size:"small",icon:(0,r.jsx)(o.Z,{}),onClick:()=>{I([i.id]),A(!0)}}),(0,r.jsx)(B,{data:i})]})},dirTitle(e,t){let i=function e(t){let n=[];return t.children&&t.children.forEach(t=>{t.isLeaf?n.push(t[G]):e(t)}),n}(e);if(i.length){let e=i.map(e=>n.find(t=>t.path===e)),s=(0,Z.Z)(e,e=>e.size?.parsedSize||0);return(0,r.jsxs)(m.Z,{children:[(0,r.jsx)(f.Z.Text,{children:t}),s>0?(0,r.jsx)(j.Z,{style:L,color:"orange",children:"Bundled:"+(0,N.formatSize)(s)}):null]})}return t}}),[R]);return(0,C.useEffect)(()=>{p(""),b(!1)},[e]),(0,C.useEffect)(()=>{b(!1)},[h]),(0,r.jsx)(z.r.Provider,{value:{moduleJumpList:P,setModuleJumpList:I},children:(0,r.jsxs)(c.Z,{title:`Modules of "${e.path}"`,bodyStyle:{overflow:"scroll",height:s},size:"small",children:[n.length?(0,r.jsxs)(v.Z,{children:[(0,r.jsx)(S.Z,{span:24,children:(0,r.jsx)(F,{modules:n,chunks:t,filteredModules:R})}),(0,r.jsx)(S.Z,{span:24,children:(0,r.jsxs)(m.Z,{children:[(0,r.jsx)(E.a,{placeholder:"search module by keyword",onChange:e=>p(e)},e.path),(0,r.jsx)(y.ZP,{onClick:()=>b(!0),size:"small",icon:(0,r.jsx)(a.Z,{}),children:"expand all"})]})}),(0,r.jsx)(S.Z,{span:24,style:{marginTop:T.Size.BasePadding},children:R.length?(0,r.jsx)(D.z,{onExpand:e=>{_=e},treeData:O,autoExpandParent:!0,defaultExpandParent:!0,defaultExpandedKeys:_?.length?_:1===O.length?[O[0].key]:[],defaultExpandAll:g||R.length<=20},`tree_${h}_${g}_${e.path}`):(0,r.jsx)(u.Z,{description:(0,r.jsx)(f.Z.Text,{strong:!0,children:`"${h}" can't match any modules`})})})]}):(0,r.jsx)(u.Z,{description:(0,r.jsx)(f.Z.Text,{strong:!0,children:`"${e.path}" doesn't have any modules`})}),(0,r.jsx)($,{id:P?.length?P[P.length-1]:"",show:w,setShow:A,cwd:l})]})})}},16581:function(e,t,n){"use strict";n.d(t,{b:function(){return g}});var r=n(97458),i=n(52983),s=n(23973),o=n(11999),a=n(60416),l=n(58678),d=n(77422),u=n(95925),c=n(50818),h=n(57448),f=n(87457);let{useToken:p}=s.Z,m=({showProgress:e=!1,data:t,total:n,tagBgColor:i})=>{let{token:s}=p(),o=i||s.colorPrimaryBorderHover;return(0,r.jsx)(f.K,{files:t.files,total:n,showProgress:e,tagBgColor:o})},x=({titles:e,datas:t,bgColor:n})=>{let[s,a]=(0,i.useState)(0);return(0,r.jsx)(c.I,{title:e.length>1?(0,r.jsx)(o.Z,{defaultValue:e[s],options:e,onChange:t=>{a(e.indexOf(t))},size:"small",style:{transition:"transform 0.3s ease"},value:e[s]||e[0]}):e[s],value:t.map((e,t)=>(0,i.createElement)(m,{...e,key:t,tagBgColor:n?.tagBgColor}))[s],boxProps:{style:{background:n?.bgColor}}})},g=({cwd:e,errors:t,summary:n})=>{let i=(0,d.useWindowWidth)(),s=(0,d.useDuplicatePackagesByErrors)(t),o=[(0,r.jsx)(x,{titles:["Total Files"],datas:[{data:n.all.total,total:n.all.total.size,showProgress:!0}]}),(0,r.jsx)(x,{titles:["Total JS","Initial JS"],datas:[{data:n.js.total,total:n.all.total.size,showProgress:!0},{data:n.js.initial,total:n.all.total.size,showProgress:!0}]}),(0,r.jsx)(x,{titles:["Total CSS","Initial CSS"],datas:[{data:n.css.total,total:n.all.total.size,showProgress:!0},{data:n.css.initial,total:n.all.total.size,showProgress:!0}]}),(0,r.jsx)(x,{titles:["Images","Fonts","Media"],datas:[{data:n.imgs.total,total:n.all.total.size,showProgress:!0},{data:n.fonts.total,total:n.all.total.size,showProgress:!0},{data:n.media.total,total:n.all.total.size,showProgress:!0}]}),(0,r.jsx)(x,{titles:["HTML Files"],datas:[{data:n.html.total,total:n.all.total.size,showProgress:!0}]}),(0,r.jsx)(c.I,{title:"Duplicate Packages",value:(0,r.jsx)(h.sv,{buttonStyle:{height:100},duplicatePackages:s,cwd:e})})];return(0,r.jsx)(a.Z,{gutter:i>1200&&i<1400?[2*u.Size.BasePadding,u.Size.BasePadding]:[u.Size.BasePadding,u.Size.BasePadding],wrap:!0,style:{marginBottom:u.Size.BasePadding},children:o.map((e,t)=>(0,r.jsx)(l.Z,{span:i>1500?4:8,children:e},t))})}},62585:function(e,t,n){"use strict";n.d(t,{V:function(){return B}});var r=n(97458),i=n(47880),s=n(40862),o=n(38490),a=n(96733),l=n(87585),d=n(78741),u=n(35737),c=n(25362),h=n(93756),f=n(97398),p=n(82487),m=n(53754),x=n(67510),g=n(60416),j=n(58678),y=n(4696),v=n(21846),S=n(36377),b=n(15196),Z=n(6139),M=n(15890),C=n(20942),P=n(52983),I=n(43622),w=n(94386),D=n(35972),E=n(33448),k=n(67522),A=n(23675),T=n(95925),N=n(77422),z=n(16581),_=n(46591),R=n(89256);n(2623);let{Option:L}=u.Z,O=({errors:e,cwd:t,summary:n,entryPoints:O})=>{let[B,$]=(0,P.useState)([]),[G,F]=(0,P.useState)(0),[W,K]=(0,P.useState)(""),[U,H]=(0,P.useState)(0),[V,Y]=(0,P.useState)(!1),[J,q]=(0,P.useState)(""),[Q,X]=(0,P.useState)(""),[ee,et]=(0,P.useState)(null),[en,er]=(0,P.useState)(!1),[ei,es]=(0,P.useState)("tree"),{t:eo}=(0,N.useI18n)(),ea=n.all.total.files,el=(0,P.useCallback)(e=>t=>{"module"===e?q(t):"chunk"===e&&X(t)},[]),ed=e=>(0,r.jsxs)(u.Z,{defaultValue:"kb",onChange:el(e),children:[(0,r.jsx)(L,{value:"kb",children:"KB"}),(0,r.jsx)(L,{value:"mb",children:"MB"})]}),eu=(0,P.useCallback)((0,Z.Z)(e=>{F("mb"===J?1048576*e:1024*e)},300),[]),ec=(0,P.useCallback)((0,Z.Z)(e=>{H("mb"===Q?1048576*e:1024*e)},300),[]),eh=(0,P.useMemo)(()=>{let e=ea.slice();return W&&(e=e.filter(e=>e.path.indexOf(W)>-1)),U>0&&(e=e.filter(e=>e.size>=U)),B.length&&(e=e.filter(e=>!!B.some(t=>(0,M.Z)(t.assets,e.path))||!1)),e.sort((e,t)=>{let n=e.path.indexOf("/")>-1?1:0;return(t.path.indexOf("/")>-1?1:0)-n})},[ea,B,W,U]),ef=(0,P.useMemo)(()=>(0,N.createFileStructures)({files:eh.map(e=>e.path).filter(Boolean),fileTitle(e,t){let{size:n,initial:i,path:s,content:o}=eh.find(t=>t.path===e);return(0,r.jsxs)(c.Z,{onClick:()=>{et(s)},children:[(0,r.jsx)(k.Z,{text:t,keyword:W}),(0,r.jsx)(h.Z,{color:"success",style:{margin:0},children:(0,N.formatSize)(n)}),i?(0,r.jsx)(h.Z,{color:"cyan",style:{margin:0},children:"initial"}):null,(0,r.jsx)(_.ut,{path:s,content:o,editorConfig:{readOnly:!1,domReadOnly:!1},emptyReason:"Do not have the codes of assets. If you use the lite or brief mode, there will have codes."})]})}}),[eh]);return(0,r.jsxs)(P.Fragment,{children:[(0,r.jsx)(z.b,{cwd:t,errors:e,summary:n}),(0,r.jsxs)(f.ZP.Group,{value:ei,onChange:e=>es(e.target.value),style:{marginBottom:T.Size.BasePadding},buttonStyle:"solid",optionType:"button",children:[(0,r.jsx)(f.ZP.Button,{value:"tree",children:"Tree Graph"}),(0,r.jsx)(f.ZP.Button,{value:"tile",children:"Bundle Analyzer Graph"})]}),(0,r.jsx)(p.Z,{hidden:"tree"===ei,title:(0,r.jsx)(c.Z,{children:(0,r.jsx)(A.D,{text:"From: Webpack Bundle Analyzer"})}),children:(0,r.jsx)(I.Nu,{api:d.SDK.ServerAPI.API.GetTileReportHtml,body:{},children:e=>e&&"tile"===ei?(0,r.jsx)("iframe",{srcDoc:e,width:"100%",height:800,style:{border:"none"}}):(0,r.jsx)(m.Z,{description:(0,r.jsxs)("div",{children:["Generate Tile Graph is Closed.",(0,r.jsx)("a",{href:"https://rsdoctor.dev/zh/config/options/options#generatetilegraph",children:"Please check the document."})]})})})}),(0,r.jsx)(p.Z,{hidden:"tile"===ei,title:(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(A.D,{text:"Bundle Analysis"}),(0,r.jsx)(x.Z,{color:"white",title:(0,r.jsxs)(c.Z,{direction:"vertical",color:"white",children:[(0,r.jsx)(g.Z,{children:(0,r.jsxs)(j.Z,{children:[(0,r.jsx)(h.Z,{color:"cyan",style:{margin:0},children:"initial"}),(0,r.jsx)(y.Z.Text,{children:": Indignify whether the chunk is the initial chunk."})]})}),(0,r.jsx)(g.Z,{children:(0,r.jsxs)(j.Z,{children:[(0,r.jsx)(h.Z,{color:"green",children:"concatenated"}),(0,r.jsxs)(y.Z.Text,{children:[": Indignify whether the module is the concatenated module."," "]}),(0,r.jsx)("br",{}),(0,r.jsx)(y.Z.Text,{strong:!0,children:"Concatenated Module:"}),(0,r.jsxs)(y.Z.Text,{children:["A series module is to lift or series multiple modules into a closure when packaging."," "]})]})}),(0,r.jsx)(g.Z,{children:(0,r.jsxs)(j.Z,{children:[(0,r.jsx)(v.ZP,{size:"small",icon:(0,r.jsx)(i.Z,{})}),(0,r.jsx)(y.Z.Text,{children:": Open the code."})]})}),(0,r.jsx)(g.Z,{children:(0,r.jsxs)(j.Z,{children:[(0,r.jsx)(v.ZP,{size:"small",icon:(0,r.jsx)(s.Z,{})}),(0,r.jsx)(y.Z.Text,{children:": View the module dependency, that is, module reasons in stats.json."})]})}),(0,r.jsx)(g.Z,{children:(0,r.jsxs)(j.Z,{children:[(0,r.jsx)(h.Z,{color:"purple",children:"Bundled: 15.77 KB"}),(0,r.jsx)(y.Z.Text,{strong:!0,children:"Bundled Size"}),(0,r.jsx)(y.Z.Text,{children:"The size of the code which bundled. That is, after bundle and tree-shaking."})]})}),(0,r.jsx)(g.Z,{children:(0,r.jsxs)(j.Z,{children:[(0,r.jsx)(h.Z,{color:"orange",children:"Source: 15.77 KB"}),(0,r.jsx)(y.Z.Text,{strong:!0,children:"Source Size"}),(0,r.jsx)(y.Z.Text,{children:"The size of the code which before bundle and transform."})]})})]}),style:{marginLeft:3},children:(0,r.jsx)(o.Z,{style:{color:"rgba(0,0,0,.45)"}})})]}),extra:en?(0,r.jsx)(v.ZP,{onClick:()=>er(!1),children:(0,r.jsxs)(y.Z.Text,{children:["Expand ",(0,r.jsx)(a.Z,{})]})}):(0,r.jsx)(v.ZP,{onClick:()=>er(!0),children:(0,r.jsxs)(y.Z.Text,{children:["Fold",(0,r.jsx)(l.Z,{})]})}),children:(0,r.jsxs)(g.Z,{align:"middle",gutter:[T.Size.BasePadding,T.Size.BasePadding],children:[O&&O.length?(0,r.jsx)(j.Z,{children:(0,r.jsx)(u.Z,{mode:"multiple",value:B.map(e=>e.name),style:{minWidth:230,width:"auto",maxWidth:300},placeholder:"filter assets by entry point",onChange:e=>{$(e.map(e=>O.find(t=>t.name===e)).filter(Boolean))},allowClear:!0,onClear:()=>{$([])},children:O.map(e=>(0,r.jsx)(u.Z.Option,{value:e.name,children:(0,r.jsx)(c.Z,{children:(0,r.jsx)(w.Ct,{label:e.name,value:(0,N.formatSize)(e.size),tooltip:e.name})})},e.name))})}):null,(0,r.jsx)(j.Z,{children:(0,r.jsx)(E.a,{placeholder:"search asset by keyword",onChange:e=>{K(e),Y(!1)}})}),(0,r.jsx)(j.Z,{span:7,children:(0,r.jsx)(S.Z,{min:0,style:{width:"95%"},addonBefore:(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(y.Z.Text,{style:{fontSize:14,color:"inherit"},children:"Asset Size"}),(0,r.jsx)(x.Z,{title:eo("filter the output assets which size is greater than the input value"),style:{marginLeft:3},children:(0,r.jsx)(o.Z,{style:{color:"rgba(0,0,0,.45)"}})})]}),onChange:e=>ec(Number(e)),addonAfter:ed("chunk")})}),(0,r.jsx)(j.Z,{span:7,children:(0,r.jsx)(S.Z,{min:0,style:{width:"95%"},addonBefore:(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(y.Z.Text,{style:{fontSize:14,color:"inherit"},children:"Module Size"}),(0,r.jsx)(x.Z,{title:eo("filter the modules which size is greater than the input value"),style:{marginLeft:3},children:(0,r.jsx)(o.Z,{style:{color:"rgba(0,0,0,.45)"}})})]}),onChange:e=>{eu(Number(e))},addonAfter:ed("module")})}),(0,r.jsx)(j.Z,{span:24,children:eh.length?(0,r.jsxs)(g.Z,{gutter:T.Size.BasePadding,children:[(0,r.jsx)(j.Z,{span:8,children:(0,r.jsx)(p.Z,{title:(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(y.Z.Text,{children:eo("Output Assets List")}),(0,r.jsx)(b.Z,{type:"vertical"}),(0,r.jsx)(x.Z,{title:`total assets count is ${ea.length}, the filtered assets count is ${eh.length}`,children:(0,r.jsxs)(y.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:[eh.length," / ",ea.length]})}),(0,r.jsx)(b.Z,{type:"vertical"}),(0,r.jsx)(y.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:(0,N.formatSize)((0,C.Z)(eh,e=>e.size))})]}),size:"small",bodyStyle:{overflow:"scroll",height:en?410:800},extra:(0,r.jsx)(v.ZP,{size:"small",icon:(0,r.jsx)(a.Z,{}),onClick:()=>Y(!0),children:"expand all"}),children:(0,r.jsx)(D.z,{treeData:ef,autoExpandParent:!0,defaultExpandAll:V||eh.length<=20},`tree_${W}_${V}`)})}),(0,r.jsx)(j.Z,{span:16,children:ee?(0,r.jsx)(I.Nu,{api:d.SDK.ServerAPI.API.GetAssetDetails,body:{assetPath:ee},children:e=>(0,r.jsx)(R.VT,{asset:e.asset,chunks:e.chunks,modules:e.modules,height:en?410:800,moduleSizeLimit:G,root:t})}):(0,r.jsx)(p.Z,{bodyStyle:{height:en?450:800},children:(0,r.jsx)(m.Z,{description:(0,r.jsx)(y.Z.Text,{strong:!0,children:"Click the file path on the left to show the modules of the asset"})})})})]}):(0,r.jsx)(m.Z,{})})]})})]})},B=(0,I.U$)({api:d.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:e=>{let{root:t,errors:n}=e.project;return(0,r.jsx)(I.Nu,{api:d.SDK.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!0},children:e=>(0,r.jsx)(I.Nu,{api:d.SDK.ServerAPI.API.GetEntryPoints,children:i=>(0,r.jsx)(O,{cwd:t,errors:n,summary:e,entryPoints:i})})})}})},53394:function(e,t,n){"use strict";n.d(t,{r:function(){return r}});let r=(0,n(52983).createContext)({setModuleJumpList(e){},moduleJumpList:[]})},16342:function(e,t,n){"use strict";n.d(t,{BC:function(){return s},u2:function(){return i}});var r=n(78741);let i="BundleSize",s=r.Client.RsdoctorClientRoutes.BundleSize},37556:function(e,t,n){"use strict";n.d(t,{BC:function(){return l.BC},T3:function(){return d},u2:function(){return l.u2}});var r=n(97458),i=n(60416),s=n(58678),o=n(95925),a=n(62585),l=n(16342);let d=()=>(0,r.jsx)(i.Z,{children:(0,r.jsx)(s.Z,{span:24,style:{marginBottom:o.Size.BasePadding},children:(0,r.jsx)(a.V,{})})})},11682:function(e,t,n){"use strict";n.d(t,{t:function(){return h}});var r=n(97458),i=n(93756),s=n(44017),o=n(53754),a=n(78398),l=n(86938),d=n(52983),u=n(77422);n(3755);let c=[{title:"Chunk Name",dataIndex:"name",key:"name"},{title:"size | \u5927\u5C0F",dataIndex:"size",key:"size"},{title:"assets | \u8D44\u6E90",dataIndex:"assets",key:"assets"},{title:"Entry or Not | \u662F\u5426\u662F\u5165\u53E3",dataIndex:"entry",key:"entry"}],h=({chunks:e})=>{let t=(0,d.useMemo)(()=>{let t=e.map(e=>{if(e)return{key:e.id,name:(0,r.jsx)(i.Z,{children:e.name}),size:(0,r.jsx)(i.Z,{children:(0,u.formatSize)(e.parsedSize)}),entry:(0,r.jsx)(i.Z,{children:e.entry?"\u662F | Yes":"\u5426 | No"}),assets:e.assets.map(e=>(0,r.jsx)("p",{children:(0,r.jsx)(i.Z,{children:e},e)},e))}});return(0,a.Z)((0,l.Z)(t),["size"],["desc"])},[e]);return(0,r.jsx)(r.Fragment,{children:t?.length?(0,r.jsx)(s.Z,{bordered:!0,pagination:!1,dataSource:t,columns:c}):(0,r.jsx)(o.Z,{})})}},25321:function(e,t,n){"use strict";n.d(t,{z:function(){return y}});var r=n(97458),i=n(81764),s=n(29959),o=n(38490),a=n(40972),l=n(78741),d=n(25362),u=n(4696),c=n(87999),h=n(93756),f=n(52983),p=n(95945),m=n(43622),x=n(95925),g=n(53394);n(39559);let j="file-tree-com",y=e=>{let{treeData:t,needJumpto:n=!1,defaultOpened:y=!1,defaultOpenFather:v=0}=e,{required:S,handlers:b}=(0,p.Du)({id:`${j}-tree`,data:t||[],defaultOpened:y,multipleSelect:!1,refreshAsyncNodes:!0}),Z=(0,f.useCallback)(({node:e,onToggle:t})=>(v&&e.data.level<v&&e.setOpened(!0),(0,r.jsx)("div",{className:`${j}-titles-box`,children:(0,r.jsx)("div",{className:`${j}-titles`,children:(0,r.jsx)(d.Z,{direction:"vertical",children:(0,r.jsx)("div",{className:`${j}-node-title`,children:(0,r.jsxs)(d.Z,{children:[(0,r.jsxs)("div",{onClick:t,children:[!e.options.opened&&e.data.children?.length?(0,r.jsx)(i.Z,{style:{color:"lightblue"}}):(0,r.jsx)(s.Z,{style:{color:"lightblue"}}),(0,r.jsxs)(u.Z.Text,{code:!0,children:[e.data.name,(0,r.jsx)(c.Z,{content:(0,r.jsx)(r.Fragment,{children:e.data.__RESOURCEPATH__?(0,r.jsx)(u.Z.Text,{code:!0,children:e.data.__RESOURCEPATH__},`${e.data.name}-popover-path`):(0,r.jsx)(r.Fragment,{})}),title:"INFO",trigger:"hover",children:(0,r.jsx)(o.Z,{style:{marginLeft:4}})},`${e.data.name}popover`)]})]}),(0,r.jsxs)(d.Z,{children:[e.data.concatModules?.length?(0,r.jsx)(c.Z,{content:(0,r.jsx)(m.Nu,{api:l.SDK.ServerAPI.API.GetModulesByModuleIds,body:{moduleIds:e.data.concatModules||[]},children:e=>(0,r.jsx)("div",{children:e.map(({path:e},t)=>(0,r.jsx)("p",{children:e},`${e}-${t}`))})}),title:"Concatenated Module Name",trigger:"hover",children:(0,r.jsx)(h.Z,{className:`${j}-node-title-tag`,color:x.TAG_PALLETE.DARK_BLUE,children:"Concatenated"},`${e.data.name}-size-tag`)}):e.data.size&&"0 bytes"!==e.data.size?(0,r.jsx)(h.Z,{className:`${j}-node-title-tag`,color:x.TAG_PALLETE.COLOR_B,children:`Bundled: ${e.data.size}`},`${e.data.name}-size-tag`):(0,r.jsx)(r.Fragment,{}),n&&(0,r.jsx)(g.r.Consumer,{children:({moduleJumpList:t,setModuleJumpList:n})=>(0,r.jsx)(a.Z,{onClick:()=>{let r=[...t];r.push(+e.id),n(r)}})})]})]})})})})},e.data.name)),[]);return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(p.ZP,{...S,...b,horizontalLineStyles:{stroke:"#c4c4c4",strokeWidth:2,strokeDasharray:"1 1"},verticalLineStyles:{stroke:"#c4c4c4",strokeWidth:2,strokeDasharray:"1 1"},draggable:!1,depthGap:14,gapMode:"padding",disableLines:!1,disableTransitions:!0,disableHorizontalLines:!1,disableVerticalLines:!1,verticalLineTopOffset:0,verticalLineOffset:5,renderNode:Z})})}},98771:function(e,t,n){"use strict";n.d(t,{m2:function(){return s}}),n(78741).Client.RsdoctorClientRoutes.ModuleAnalyze;var r,i=((r=i||{}).UrlQueryForModuleAnalyze="curModuleId",r);let s="module-analyze"},35210:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(97458),i=n(60416),s=n(58678),o=n(53754),a=n(41766),l=n(86938),d=n(52983),u=n(77422),c=n(25321);n(3755);var h=(0,d.memo)(({dependencies:e,cwd:t,module:n})=>{let h=(0,d.useMemo)(()=>{let t=n.dependencies.map(t=>{let n=(0,a.Z)(e,e=>e.id===t);if(n)return{__RESOURCEPATH__:n.resolvedRequest||"",id:n.dependency,key:n.resolvedRequest,name:(0,u.getShortPath)(n.resolvedRequest)||"",level:1,kind:n.kind,concatModules:void 0}});return(0,l.Z)(t)},[n]);return(0,r.jsx)(i.Z,{justify:"start",align:"middle",children:(0,r.jsx)(s.Z,{span:24,children:h.length?(0,r.jsx)(c.z,{treeData:h,needJumpto:!0,cwd:t}):(0,r.jsx)(o.Z,{})})})})},31837:function(e,t,n){"use strict";n.d(t,{V:function(){return A}});var r,i=n(97458),s=n(22150),o=n(40972),a=n(38490),l=n(60592),d=n(15471),u=n(78741),c=n(60416),h=n(87999),f=n(32447),p=n(4696),m=n(93756),x=n(21846),g=n(58678),j=n(53754),y=n(97398),v=n(52983),S=n(43622),b=n(23675),Z=n(95925),M=n(11390),C=n(11682),P=n(25321),I=n(98771),w=n(35210),D=n(3022),E=n(39465);var k=((r=k||{})[r.Dependencies=0]="Dependencies",r[r.Chunks=1]="Chunks",r);let A=e=>{let{curModule:t,modules:n,dependencies:r,cwd:k,selectedChunk:A=""}=e,{t:T}=(0,M.QT)(),[N,z]=(0,v.useState)([]),[_,R]=(0,v.useState)(0),[L,O]=(0,v.useState)(!0),{data:B}=(0,E.h)(n,N,t),[$,G]=(0,v.useState)({});return(0,v.useEffect)(()=>{z((0,D.e)(t,n))},[t,n]),(0,v.useEffect)(()=>{let e={};N.forEach(t=>{let r=[],i=new Map;(0,D.F)(t,n,r,i),e[t.id]=r}),G(e)},[N]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.Z,{children:(0,i.jsx)(h.Z,{content:(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(f.Z,{status:"success",text:" "}),(0,i.jsxs)(p.Z.Text,{code:!0,children:[(0,i.jsx)(s.Z,{})," Expand the node_modules's modules that was omitted... "]})," ",(0,i.jsx)(p.Z.Text,{children:`: ${T("Expand Omitted")}`})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(f.Z,{status:"success",text:" "}),(0,i.jsx)(h.Z,{content:"xxxx",title:"Concatenated Module Name",trigger:"hover",children:(0,i.jsx)(m.Z,{color:Z.TAG_PALLETE.DARK_BLUE,children:"Concatenated"})}),(0,i.jsx)(p.Z.Text,{children:`: ${T("Concatenated Tag")}`})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(f.Z,{status:"success",text:" "}),(0,i.jsx)(o.Z,{}),(0,i.jsx)(p.Z.Text,{children:": Jump button, click to jump to the Module dependency analysis page of this module."})]})]}),title:"Usage",children:(0,i.jsx)(x.ZP,{type:"primary",icon:(0,i.jsx)(a.Z,{}),children:"Usage"})})}),(0,i.jsxs)(c.Z,{gutter:4,style:{marginTop:Z.Size.BasePadding},children:[(0,i.jsx)(g.Z,{span:L?18:12,children:(0,i.jsx)(c.Z,{className:`${I.m2}-file-tree`,justify:"center",children:(0,i.jsxs)(g.Z,{span:24,style:{padding:Z.Size.BasePadding/2},children:[(0,i.jsx)(b.D,{text:"Current Module Imported Reasons Tree:"}),N?(0,i.jsx)(P.z,{cwd:k,treeData:A?B.filter(e=>$[e.id].indexOf(A)>=0):B,needCode:!0,needShowAllTree:!0,needJumpto:!0,selectedChunk:A}):(0,i.jsx)(j.Z,{className:`${I.m2}-empty`})]})})}),(0,i.jsx)(g.Z,{span:L?6:12,children:(0,i.jsxs)("div",{className:`${I.m2}-file-tree`,style:{padding:Z.Size.BasePadding/2},children:[L?(0,i.jsx)(h.Z,{content:"Unfold [Dependencies & Chunks] Box.",children:(0,i.jsx)(l.Z,{onClick:()=>O(!L),style:{marginRight:8}})}):(0,i.jsx)(h.Z,{content:"Fold [Dependencies & Chunks] Box.",children:(0,i.jsx)(d.Z,{onClick:()=>O(!L),style:{marginRight:8}})}),(0,i.jsx)(y.ZP.Group,{options:[{label:"Dependencies",value:0},{label:"Chunks",value:1}],onChange:e=>R(e.target.value),value:_,optionType:"button",buttonStyle:"solid",size:"middle"}),L?(0,i.jsx)(i.Fragment,{}):(0,i.jsxs)(i.Fragment,{children:[0===_&&(0,i.jsx)(g.Z,{span:24,style:{marginTop:Z.Size.BasePadding/2},children:t?(0,i.jsx)(w.Z,{module:t,dependencies:r,cwd:k}):(0,i.jsx)(j.Z,{className:`${I.m2}-empty`})}),1===_&&(0,i.jsx)(g.Z,{span:18,style:{marginTop:Z.Size.BasePadding/2},children:t?(0,i.jsx)(S.Nu,{api:u.SDK.ServerAPI.API.GetChunksByModuleId,body:{moduleId:t.id},children:e=>(0,i.jsx)(C.t,{chunks:e})}):(0,i.jsx)(j.Z,{className:`${I.m2}-empty`})})]})]})})]})]})}},18602:function(e,t,n){"use strict";n.d(t,{H:function(){return j}});var r=n(97458),i=n(38125),s=n(78741),o=n(82487),a=n(25362),l=n(4696),d=n(60416),u=n(58678),c=n(35737),h=n(52983),f=n(43622),p=n(77422),m=n(61550),x=n(53394),g=n(31837);n(3755);let j=({modules:e,cwd:t,moduleId:n})=>{let[j,y]=(0,h.useState)("");return(0,r.jsx)(f.Nu,{api:s.SDK.ServerAPI.API.GetModuleDetails,body:{moduleId:+n},children:({module:n,dependencies:h})=>(0,r.jsx)(f.Nu,{api:s.SDK.ServerAPI.API.GetAllChunkGraph,body:{},children:s=>(0,r.jsx)(x.r.Consumer,{children:({moduleJumpList:f,setModuleJumpList:x})=>(0,r.jsxs)(o.Z,{title:(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(i.Z,{onClick:()=>{x([...f.slice(0,-1)])}}),(0,r.jsx)(l.Z.Title,{code:!0,level:5,style:{marginBottom:"revert"},children:`Current Module: ${(0,p.getShortPath)(n.path)}`})]}),style:{height:"100%"},children:[(0,r.jsx)(d.Z,{justify:"start",style:{marginBottom:20},children:(0,r.jsx)(u.Z,{children:(0,r.jsx)(c.Z,{allowClear:!0,placeholder:"Select Chunk To Filter Modules Links",showSearch:!0,style:{width:300},options:(0,m.Z)(s).map(e=>({label:e.name,value:e.id})),onChange:e=>y(e)})})}),(0,r.jsx)(d.Z,{justify:"start",align:"middle",children:(0,r.jsx)(u.Z,{span:24,children:(0,r.jsx)(g.V,{curModule:n,modules:e,dependencies:h,cwd:t,selectedChunk:j})})})]})})})})}},39465:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(86938),i=n(52983),s=n(77422),o=n(3022);function a(e,t,n){return(0,i.useMemo)(()=>t&&t?.length?{data:(0,r.Z)(t?.map((t,r)=>({key:`0-${r}`,name:s.getShortPath(t.path),__RESOURCEPATH__:t.path,id:t.id,level:1,chunks:t.chunks,size:s.formatSize(t.size.parsedSize),kind:t.kind,concatModules:t.concatenationModules,fatherPath:s.getShortPath(n.path),dependencies:t.dependencies,getChildren:()=>(function e(t,n,r){let i=(0,o.e)(t,n);return i?.map((i,o)=>({key:`0-${o}`,name:s.getShortPath(i.path),__RESOURCEPATH__:i.path,id:i.id,level:1,size:s.formatSize(i.size.parsedSize),kind:i.kind,chunks:i.chunks,concatModules:i.concatenationModules,fatherPath:s.getShortPath(r.path),dependencies:i.dependencies,getChildren:()=>e(i,n,t),children:i.imported}))})(t,e,n),children:t.imported})))}:{filterData:[],data:[]},[t,n])}},3022:function(e,t,n){"use strict";n.d(t,{F:function(){return o},e:function(){return s}});var r=n(41766),i=n(86938);let s=(e,t)=>{if(e?.imported?.length){let n=e.imported.map(e=>(0,r.Z)(t,t=>t.id===Number(e)));return(0,i.Z)(n)}return[]},o=(e,t,n,r)=>{if(r.has(e.id)){if(r.get(e.id))return}else r.set(e.id,!0);let i=s(e,t);if(!!i.length)i.forEach(e=>{e?.chunks?.forEach(e=>{0>n.indexOf(e)&&n.push(e)}),o(e,t,n,r)})}},15837:function(e,t,n){"use strict";n.d(t,{B:function(){return s},u:function(){return i}});var r=n(78741);let i="ModuleResolve",s=r.Client.RsdoctorClientRoutes.ModuleResolve},90025:function(e,t,n){"use strict";n.d(t,{BC:function(){return a.B},T3:function(){return l},u2:function(){return a.u}});var r=n(97458),i=n(82487),s=n(90647),o=n(51264),a=n(15837);let l=()=>(0,r.jsx)("div",{children:(0,r.jsx)(i.Z,{title:"Webpack Resolver Analysis",extra:(0,r.jsx)(o.S,{defaultKeys:["resolve","resolveLoader"]}),bodyStyle:{paddingTop:0},children:(0,r.jsx)(s.gY,{})})})},38613:function(e,t,n){"use strict";n.d(t,{B:function(){return s},u:function(){return i}});var r=n(78741);let i="Overall",s=r.Client.RsdoctorClientRoutes.Overall},11970:function(e,t,n){"use strict";n.d(t,{BC:function(){return d.B},T3:function(){return u}});var r=n(97458),i=n(78741),s=n(14496),o=n(43622),a=n(23312),l=n(45838),d=n(38613);let u=(0,o.U$)({api:i.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:({project:e})=>{let{summary:t,configs:n,root:i,envinfo:o,errors:d}=e;return(0,r.jsxs)("div",{children:[(0,r.jsxs)(l.u,{children:[(0,r.jsx)(a.lj,{configs:n,cwd:i,envinfo:o,alerts:d}),(0,r.jsx)(a.vD,{errors:d,cwd:i}),(0,r.jsx)(a.F8,{summary:t})]}),(0,r.jsx)(s.$X,{}),(0,r.jsx)(s.CG,{})]})}})},45838:function(e,t,n){"use strict";n.d(t,{u:function(){return d}});var r=n(97458),i=n(44170),s=n(60416),o=n(58678),a=n(52983),l=n(95925);let d=({children:e})=>{let{sm:t,xxl:n}=i.ZP.useBreakpoint(),d=(0,a.useMemo)(()=>n?[2*l.Size.BasePadding,l.Size.BasePadding]:[l.Size.BasePadding,l.Size.BasePadding],[t,n]);return(0,r.jsx)(s.Z,{gutter:d,wrap:!0,style:{marginBottom:l.Size.BasePadding},children:e.map((e,t)=>(0,r.jsx)(o.Z,{xs:24,sm:24,md:12,lg:8,children:e},t))})}},4282:function(e,t,n){"use strict";n.d(t,{B:function(){return r}});let r=n(78741).Client.RsdoctorClientRoutes.RuleIndex},488:function(e,t,n){"use strict";n.d(t,{BC:function(){return j.B},T3:function(){return y}});var r=n(97458),i=n(52983),s=n(78741),o=n(60416),a=n(58678),l=n(82487),d=n(25362),u=n(32447),c=n(4696),h=n(93756),f=n(76773),p=n(61550),m=n(23675),x=n(95925),g=n(77422),j=n(4282);let y=()=>{let e=(0,g.useUrlQuery)()[s.Rule.RsdoctorRuleClientConstant.UrlQueryForErrorCode]||"",[t,n]=(0,i.useState)(s.Rule.RuleErrorMap[e]),j=(0,p.Z)(s.Rule.RuleErrorMap);return(0,i.useEffect)(()=>{window.scrollTo({top:0})},[]),(0,r.jsxs)(o.Z,{gutter:x.Size.BasePadding/2,children:[(0,r.jsx)(a.Z,{span:8,children:(0,r.jsx)(l.Z,{title:(0,r.jsx)(m.D,{text:"list of the error codes."}),bordered:!0,children:(0,r.jsx)(d.Z,{direction:"vertical",children:j.map((e,i)=>(0,r.jsxs)(d.Z,{style:{marginTop:0===i?0:x.Size.BasePadding/2,cursor:"pointer"},onClick:()=>n(e),align:"center",children:[(0,r.jsx)(u.Z,{status:"default"}),(0,r.jsx)(c.Z.Text,{code:!0,children:(0,r.jsx)("a",{children:e.code})}),(0,r.jsx)(c.Z.Text,{style:{color:t&&t.code===e.code?"#1890ff":void 0},children:e.title})]},e.code))})})}),(0,r.jsx)(a.Z,{span:16,children:t?(0,r.jsx)(l.Z,{title:(0,r.jsxs)(o.Z,{justify:"space-between",children:[(0,r.jsxs)(d.Z,{children:[(0,r.jsx)(c.Z.Text,{code:!0,children:t.code}),(0,r.jsx)(c.Z.Text,{children:t.title})]}),(0,r.jsx)("div",{children:(0,r.jsx)(h.Z,{children:t.category})})]}),bodyStyle:{paddingTop:0},bordered:!0,children:(0,r.jsx)(c.Z.Paragraph,{children:"markdown"===t.type?(0,r.jsx)(f.U,{children:t.description}):(0,r.jsx)(c.Z.Text,{children:t.description})})}):(0,r.jsx)(l.Z,{title:"This page lists all the error codes emitted by the Rsdoctor.",bordered:!0,children:(0,r.jsx)(c.Z.Text,{children:"click the error code in left bar to show more details."})})})]})}},43721:function(e,t,n){"use strict";n.d(t,{B:function(){return s},u:function(){return i}});var r=n(78741);let i="TreeShaking",s=r.Client.RsdoctorClientRoutes.TreeShaking},77754:function(e,t,n){"use strict";n.d(t,{p:function(){return y}});var r=n(97458),i=n(52983),s=n(77410),o=n.n(s),a=n(82487),l=n(67510),d=n(25362),u=n(4696),c=n(38490),h=n(60478),f=n(68851),p=n(47180),m=n(51742),x=n(65079),g=n(77422),j=n(46591);function y(e){let{module:t,moduleGraph:n,ranges:s,toLine:y,setEditorData:v,source:S}=e,b=(0,i.useRef)(),Z=(0,i.useRef)([]),M=(0,i.useRef)([]),C=(0,i.useRef)(),P=(0,i.useRef)(!1),[I,w]=(0,i.useState)("");return((0,i.useEffect)(()=>{let{isPreferSource:e}=t;P.current=!0,w(S.source||e?S.source:S.transformed),setTimeout(()=>{M.current=b.current?.getModel()?.deltaDecorations(M.current,x.su(t,n))??[]},200)},[t,S]),(0,i.useEffect)(()=>{function e(){let e=b.current?.getModel();if(!!e)Z.current=e.deltaDecorations(Z.current,s.map(e=>({range:(0,g.getSelectionRange)(e,p.e),options:{stickiness:1,inlineClassName:"tree-shaking-statement-side-effect",isWholeLine:!1,showIfCollapsed:!0}}))),b.current&&"number"==typeof y&&C.current!==y&&(C.current=y,b.current.revealLine(y,0))}P?setTimeout(e,300):e(),P.current=!1},[s,y]),(0,i.useEffect)(()=>{let e=e=>{let t=(0,m.hR)(e.target);if(t){let e=n.getModuleById(t.module);e&&v(e,[t.range],t.range.start.line)}};return document.body.addEventListener("click",e),()=>{document.body.removeEventListener("click",e)}},[]),t)?(0,r.jsx)(a.Z,{title:(0,r.jsx)(l.Z,{title:t.path,children:(0,r.jsxs)(d.Z,{children:[(0,r.jsx)(u.Z.Text,{children:o().basename(t.path)}),(0,r.jsx)(c.Z,{})]})}),className:"tree-shaking-editor",children:(0,r.jsx)(f.ZP,{theme:"vs-dark",language:(0,g.getOriginalLanguage)(t.path),value:I,loading:(0,r.jsx)(h.Z,{style:{fontSize:30}}),options:j.z9,onMount:e=>{b.current=e}})}):(0,r.jsx)("div",{children:"\u8BF7\u9009\u62E9\u8981\u67E5\u770B\u7684\u6A21\u5757"})}},29668:function(e,t,n){"use strict";n.d(t,{$R:function(){return M},BC:function(){return Z.B},u2:function(){return Z.u}});var r=n(97458),i=n(52983),s=n(82487),o=n(60416),a=n(97398),l=n(58678),d=n(77590),u=n(25974),c=n(78741),h=n(77410),f=n.n(h),p=n(43622),m=n(95925),x=n(35972),g=n(33448),j=n(65079),y=n(77422),v=n(77754),S=n(65609),b=n(74915);n(4244);var Z=n(43721);let M=(0,p.i8)(y.fetchManifest,[["moduleGraph","data"],["root","cwd"]],({data:e,cwd:t})=>{let n=(0,y.useModuleGraphInstanceByModuleGraph)(e);if(0===n.size())return(0,r.jsx)(S.T,{});let[h,Z]=(0,i.useState)(""),[M,C]=(0,i.useState)(1),[P,I]=(0,i.useState)([]),[w,D]=(0,i.useState)("side-effect"),E=(0,i.useMemo)(()=>n.getModules().filter(e=>e.kind===c.SDK.ModuleKind.Normal&&f().basename(e.path).includes(h)),[h]),k=(0,i.useMemo)(()=>E.find(e=>e.isEntry),[]),[A,T]=(0,i.useState)(k||E?.length&&E?.[0]),N=(0,j.X0)(E,n,h,A,e=>{z(E.find(t=>t.path===e),[])},t),z=(e,t,n)=>{T(e),I(t.slice()),(0,d.Z)(n)&&C(n)};return(0,r.jsxs)(s.Z,{title:"Tree Shaking Analysis",bodyStyle:{paddingTop:0},className:"tree-shaking-page",children:[(0,r.jsxs)(o.Z,{justify:"space-between",align:"middle",style:{marginBottom:m.Size.BasePadding,marginTop:m.Size.BasePadding},children:[(0,r.jsx)(g.a,{icon:(0,r.jsx)(u.Z,{}),width:400,label:"FileName",placeholder:"search filename by keyword",style:{width:"auto"},onChange:e=>Z(e)}),(0,r.jsxs)(a.ZP.Group,{value:w,onChange:({target:e})=>D(e.value),children:[(0,r.jsx)(a.ZP.Button,{value:"side-effect",children:"SideEffects"}),(0,r.jsx)(a.ZP.Button,{value:"export",children:"Export Variables"})]})]}),(0,r.jsxs)(o.Z,{justify:"space-between",align:"top",wrap:!1,gutter:[m.Size.BasePadding,m.Size.BasePadding],children:[(0,r.jsx)(l.Z,{span:7,children:(0,r.jsx)(s.Z,{title:`Total Files: ${E.length}`,className:"tree-shaking-files-box",children:(0,r.jsx)(x.z,{style:{height:"80%"},className:"tree-shaking-files",selectedKeys:A?[A.path]:[],defaultExpandedKeys:(0,j.yA)(N),treeData:N,expandAction:"click"})})}),(0,r.jsx)(l.Z,{span:9,children:(0,r.jsx)(p.Nu,{api:c.SDK.ServerAPI.API.GetModuleCodeByModuleId,body:{moduleId:A.id},children:e=>(0,r.jsx)(v.p,{module:A,moduleGraph:n,ranges:P,toLine:M,setEditorData:z,source:e})})}),(0,r.jsx)(l.Z,{flex:1,children:(0,r.jsx)(b.c0,{kind:w,setEditorData:z,module:A,moduleGraph:n})})]})]})})},51742:function(e,t,n){"use strict";n.d(t,{hR:function(){return o},ue:function(){return s}});var r,i=((r=i||{}).Module="data-module",r.Range="data-range",r);function s(e,t,n){return`<a data-href="data-module=${e}&data-range=${encodeURIComponent(JSON.stringify(t))}">${n}</a>`}function o(e){if("a"!==e.tagName.toLocaleLowerCase())return;let t=e.getAttribute("data-href")??"",n={module:-1,range:{start:{line:1,column:0},end:{line:1,column:0}}};for(let e of t.split("&")){let[t,r]=e.split("=");if("data-module"===t){n.module=Number.parseInt(r,10);continue}"data-range"===t&&(n.range=JSON.parse(decodeURIComponent(r)))}return n}},47180:function(e,t,n){"use strict";n.d(t,{e:function(){return r}});class r{constructor(e,t,n,r){e>n||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}isEmpty(){return r.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return r.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))&&!0}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))&&!0}containsRange(e){return r.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))&&!0}strictContainsRange(e){return r.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))&&!0}plusRange(e){return r.plusRange(this,e)}static plusRange(e,t){let n,i,s,o;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,i=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,i=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,i=e.startColumn),t.endLineNumber>e.endLineNumber?(s=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(s=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(s=e.endLineNumber,o=e.endColumn),new r(n,i,s,o)}intersectRanges(e){return r.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,s=e.endLineNumber,o=e.endColumn,a=t.startLineNumber,l=t.startColumn,d=t.endLineNumber,u=t.endColumn;return(n<a?(n=a,i=l):n===a&&(i=Math.max(i,l)),s>d?(s=d,o=u):s===d&&(o=Math.min(o,u)),n>s||n===s&&i>o)?null:new r(n,i,s,o)}equalsRange(e){return r.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 r.getEndPosition(this)}static getEndPosition(e){return new i(e.endLineNumber,e.endColumn)}getStartPosition(){return r.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 r(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new r(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return r.collapseToStart(this)}static collapseToStart(e){return new r(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return r.collapseToEnd(this)}static collapseToEnd(e){return new r(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new r(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new r(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))&&!0}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))&&!0}static compareRangesUsingStarts(e,t){if(e&&t){let n=0|e.startLineNumber,r=0|t.startLineNumber;if(n===r){let n=0|e.startColumn,r=0|t.startColumn;if(n===r){let n=0|e.endLineNumber,r=0|t.endLineNumber;if(n===r){let n=0|e.endColumn;return n-(0|t.endColumn)}return n-r}return n-r}return n-r}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){if(e.endLineNumber===t.endLineNumber){if(e.endColumn===t.endColumn)return e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber;return e.endColumn-t.endColumn}return e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}class i{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new i(e,t)}delta(e=0,t=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 n=0|e.lineNumber,r=0|t.lineNumber;if(n===r){let n=0|e.column;return n-(0|t.column)}return n-r}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}}}},65609:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(97458),i=n(82487),s=n(53754);function o(){return(0,r.jsx)(i.Z,{title:"Tree Shaking Analysis",bodyStyle:{paddingTop:0},className:"tree-shaking-page",children:(0,r.jsx)(s.Z,{style:{marginTop:30}})})}},74915:function(e,t,n){"use strict";n.d(t,{c0:function(){return b}});var r=n(97458),i=n(67510),s=n(21846),o=n(6377),a=n(25362),l=n(4696),d=n(15196),u=n(44017),c=n(17485),h=n(52983),f=n(63764),p=n.n(f),m=n(21807),x=n(65079),g=n(77422);function j(e,t){if(!e)return(0,r.jsx)("div",{children:"Can not find declaration."});let{module:n}=e,o=n.isPreferSource?e.position.source:e.position.transformed;return(0,r.jsx)(i.Z,{title:`${n.path}, line ${o.start.line}`,children:(0,r.jsx)(s.ZP,{type:"link",onClick:()=>t(n,[o],o.start.line),children:"Move To"})})}function y(e){let[t,n]=(0,h.useState)(""),[i,l]=(0,h.useState)(""),d=(0,h.useRef)(null),u=(e,t,r)=>{t(),n(e[0]),l(r)},f=e=>{e(),n("")};return{filterDropdown:({setSelectedKeys:t,selectedKeys:n,confirm:i,clearFilters:l,close:h})=>(0,r.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,r.jsx)(o.Z,{ref:d,placeholder:`Search ${e}`,value:n[0],onChange:e=>t(e.target.value?[e.target.value]:[]),onPressEnter:()=>u(n,i,e),style:{marginBottom:8,display:"block"}}),(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(s.ZP,{type:"primary",onClick:()=>u(n,i,e),icon:(0,r.jsx)(c.Z,{}),size:"small",style:{width:90},children:"Search"}),(0,r.jsx)(s.ZP,{onClick:()=>l&&f(l),size:"small",style:{width:90},children:"Reset"}),(0,r.jsx)(s.ZP,{type:"link",size:"small",onClick:h,children:"close"})]})]}),filterIcon:e=>(0,r.jsx)(c.Z,{style:{color:e?"#1890ff":void 0}}),onFilter:(t,n)=>n[e].toString().toLowerCase().includes(t.toLowerCase()),render:n=>i===e?(0,r.jsx)(p(),{highlightStyle:{backgroundColor:"#ffc069",padding:0},searchWords:[t],autoEscape:!0,textToHighlight:n?n.toString():""}):n}}let v=({module:e,moduleGraph:t,setEditorData:n})=>{let o=(0,h.useMemo)(()=>t.getModuleGraphModule(e).getSideEffects(),[e]),c=o.map(({variable:t,name:n,identifier:r},i)=>({key:i,name:n,identifier:e.isPreferSource?r.position.source:r.position.transformed,declaration:t?.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 n=e[e.length-1];return n&&n.name===t.name?(!n.children&&(n.children=[]),n.children.push(t),e):(e.push(t),e)},[]),f=[{title:"Name",dataIndex:"name",key:"name",align:"center",...y("name")},{title:"SideEffect",dataIndex:"identifier",key:"identifier",align:"center",render:t=>(0,r.jsx)(i.Z,{title:`Current File line ${t.start.line}`,children:(0,r.jsx)(s.ZP,{type:"link",onClick:()=>n(e,[t],t.start.line),children:"Move To"})})},{title:"Declaration",dataIndex:"declaration",key:"declaration",align:"center",render:e=>j(e,n)}],p=(0,r.jsx)(h.Fragment,{children:(0,r.jsxs)(a.Z,{style:{fontWeight:400},children:["Import",(0,r.jsx)(l.Z.Text,{strong:!0,children:c.length}),"variables",(0,r.jsx)(d.Z,{type:"vertical"}),(0,r.jsx)(l.Z.Text,{strong:!0,children:o.length}),"sideEffects"]})});return(0,r.jsx)(m.Zb,{style:{marginBottom:10},title:p,className:"tree-shaking-export-table",children:(0,r.jsx)(u.Z,{size:"small",dataSource:c,columns:f,pagination:!1,scroll:{y:600}})})},S=({module:e,moduleGraph:t,setEditorData:n})=>{let o=(0,h.useMemo)(()=>t.getModuleGraphModule(e).getExports(),[e]),c=o.filter(e=>0===e.getSideEffects().length),f=(0,r.jsxs)(h.Fragment,{children:[(0,r.jsxs)(a.Z,{style:{fontWeight:400},children:["Export",(0,r.jsx)(l.Z.Text,{strong:!0,children:o.length})]}),o.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Z,{type:"vertical"}),(0,r.jsxs)(l.Z.Text,{style:{fontWeight:400},code:!0,children:[(0,r.jsx)(l.Z.Text,{children:"Unused"}),(0,r.jsx)(d.Z,{type:"vertical"}),(0,r.jsx)(l.Z.Text,{strong:!0,children:c.length})]}),(0,r.jsx)(d.Z,{type:"vertical"}),(0,r.jsxs)(l.Z.Text,{style:{fontWeight:400},code:!0,children:[(0,r.jsx)(l.Z.Text,{children:"Used"}),(0,r.jsx)(d.Z,{type:"vertical"}),(0,r.jsx)(l.Z.Text,{strong:!0,children:o.length-c.length})]})]}):""]}),p=o.map((e,t)=>{let{variable:n}=e;return{key:t,name:e.name,declaration:n?.identifier,used:e.getSideEffects().map(({module:e,identifier:t})=>{let n=e?.isPreferSource?t.position.source:t.position.transformed;if(!!e&&!!n)return{module:e,range:n}}).filter(g.isDef)}}),v=[{title:"Name",dataIndex:"name",key:"name",align:"center",...y("name")},{title:"Declaration",dataIndex:"declaration",key:"declaration",align:"center",render:e=>j(e,n)},{title:"Info",dataIndex:"used",key:"used",align:"center",sorter:(e,t)=>e.used.length-t.used.length,sortDirections:["descend","ascend"],render:e=>(0,r.jsxs)("span",{children:["Used ",e.length," times"]})}];return(0,r.jsx)(m.Zb,{title:f,className:"tree-shaking-export-table",children:(0,r.jsx)(u.Z,{size:"small",dataSource:p,columns:v,pagination:!1,scroll:{y:600},expandable:{expandedRowRender:e=>(0,r.jsxs)("div",{className:"tree-shaking-side-effect-list",children:[(0,r.jsx)(l.Z.Text,{children:"List of SideEffect:"}),e.used.map(({module:e,range:t})=>(0,r.jsx)(i.Z,{title:`${e.path}:${t.start.line}`,children:(0,r.jsx)(s.ZP,{className:"tree-shaking-side-effect-list-item",type:"link",onClick:()=>{n(e,[t],t.start.line)},children:`${(0,x.XZ)(e.path)}:${t.start.line}`})},e.id))]}),rowExpandable:e=>e.used.length>0}})})},b=e=>"side-effect"===e.kind?(0,r.jsx)(v,{...e}):(0,r.jsx)(S,{...e})},65079:function(e,t,n){"use strict";n.d(t,{X0:function(){return x},XZ:function(){return j},su:function(){return y},yA:function(){return g}});var r=n(97458),i=n(52983),s=n(77410),o=n.n(s),a=n(50002),l=n(45307),d=n(70459),u=n(25362),c=n(93756),h=n(47180),f=n(51742),p=n(77422),m=n(67522);function x(e,t,n,s,o,a){return(0,i.useMemo)(()=>(0,p.createFileStructures)({files:e.map(e=>e.path),cwd:a,fileTitle(e,n){let i=t.getModules().find(t=>t.path===e&&t.kind===d.Module.kind.Normal),s=t.getModuleGraphModule(i),a=s.getExports().filter(e=>0===e.getSideEffects().length);return(0,r.jsxs)(u.Z,{style:{wordBreak:"break-all"},children:[(0,r.jsx)(m.Z,{text:n,keyword:e,onClick:()=>o(e)}),s.dynamic?(0,r.jsx)(c.Z,{color:"cyan",children:"dynamic"}):"",a.length>0?(0,r.jsxs)(c.Z,{color:"green",children:[a.length," Unused"]}):""]})}}),[n,s])}function g(e){return(0,p.mapFileKey)(e,3,e=>!((0,a.Z)(e,"__RESOURCEPATH__").indexOf("/node_modules/")>-1))}function j(e){let t="",n=e;for(let e=0;e<3;e++)t=t?`${o().basename(n)}/${t}`:o().basename(n),n=o().dirname(n);return`...${t}`}function y(e,t){let n=t.getModuleGraphModule(e).getOwnExports(),r=n.map(e=>e.variable).filter(e=>!!e);if(0===n.length&&0===r.length)return[];let{isPreferSource:i}=e;return r.map(e=>{let t=i?e.identifier.position.source:e.identifier.position.transformed,n=t&&(0,p.getSelectionRange)(t,h.e);if(!!t&&!!n)return{range:n,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 n=t.getSideEffects();if(0===n.length)return"Have no sideEffect.";let r=`Used **${n.length}** times:
|
|
80
|
-
|
|
81
|
-
<div data-code="tree-shaking-hover">
|
|
82
|
-
<li>`;for(let e of n){if(!e)continue;let{identifier:t,module:n}=e;if(!n)continue;let{id:i,isPreferSource:s}=n,o=t.getLineCode();r+=`
|
|
83
|
-
<ol>
|
|
84
|
-
${(0,f.ue)(i,s?t.position.source:t.position.transformed,function(e,t){let{path:n,isPreferSource:r}=t,i=r?e.position.source.start:e.position.transformed.start,s=`:${i.line??1}:${i.column??0}`;return n.length<=30?`${n}${s}`:`...${n.substring(n.length-30)}${s}`}(t,n))}
|
|
85
|
-
${o?`<pre>${(0,l.Z)(o)}</pre>`:""}
|
|
86
|
-
</ol>`}return r+="\n</li></div>"}(e)}}}}).filter(e=>!!e)}},41457:function(e,t,n){"use strict";n.d(t,{B:function(){return s},u:function(){return i}});var r=n(78741);let i="Loaders Analysis",s=r.Client.RsdoctorClientRoutes.WebpackLoaderAnalysis},40335:function(e,t,n){"use strict";n.d(t,{BC:function(){return a.B},T3:function(){return l},u2:function(){return a.u}});var r=n(97458),i=n(4487),s=n(51264),o=n(21807),a=n(41457);let l=()=>(0,r.jsx)(o.Zb,{title:"Webpack Loader Analysis",extra:(0,r.jsx)(s.S,{defaultKeys:["module","resolve"]}),bodyStyle:{paddingTop:0,height:800},children:(0,r.jsx)(i.a,{})})},50638:function(e,t,n){"use strict";n.d(t,{B:function(){return s},u:function(){return i}});var r=n(78741);let i="Loaders Timeline",s=r.Client.RsdoctorClientRoutes.WebpackLoaderOverall},77122:function(e,t,n){"use strict";n.d(t,{BC:function(){return a.B},T3:function(){return l},u2:function(){return a.u}});var r=n(97458),i=n(51264),s=n(21807),o=n(98463),a=n(50638);let l=()=>(0,r.jsx)(s.Zb,{title:"Loader Timeline",extra:(0,r.jsx)(i.S,{defaultKeys:["module"]}),collapsable:!0,children:(0,r.jsx)(o.T,{})})},90520:function(e,t,n){"use strict";n.d(t,{B:function(){return s},u:function(){return i}});var r=n(78741);let i="Plugins Analysis",s=r.Client.RsdoctorClientRoutes.WebpackPlugins},86825:function(e,t,n){"use strict";n.d(t,{BC:function(){return j.B},T3:function(){return y},u2:function(){return j.u}});var r=n(97458),i=n(30100),s=n(57515),o=n(78741),a=n(82487),l=n(25362),d=n(6377),u=n(21846),c=n(4696),h=n(35737),f=n(52983),p=n(51264),m=n(43622),x=n(13938),g=n(95925),j=n(90520);let y=()=>{let[e,t]=(0,f.useState)([]),[n,j]=(0,f.useState)([]);return(0,r.jsx)("div",{children:(0,r.jsx)(a.Z,{title:"Webpack Plugins Overall",bodyStyle:{paddingTop:g.Size.BasePadding/3},extra:(0,r.jsx)(p.S,{defaultKeys:["plugins"]}),children:(0,r.jsxs)(l.Z,{direction:"vertical",children:[(0,r.jsx)(m.Nu,{api:o.SDK.ServerAPI.API.GetPluginSummary,children:({hooks:e,tapNames:n})=>(0,r.jsxs)(l.Z,{style:{marginBottom:g.Size.BasePadding/2},children:[(0,r.jsxs)(d.Z.Group,{compact:!0,children:[(0,r.jsxs)(u.ZP,{children:[(0,r.jsx)(i.Z,{}),(0,r.jsx)(c.Z.Text,{children:"Plugin Tap Names"})]}),(0,r.jsx)(h.Z,{mode:"multiple",allowClear:!0,style:{width:350},dropdownMatchSelectWidth:!0,onChange:e=>{t(e)},children:n.map(e=>(0,r.jsx)(h.Z.Option,{label:e,value:e,children:e},e))})]}),(0,r.jsxs)(d.Z.Group,{compact:!0,children:[(0,r.jsxs)(u.ZP,{children:[(0,r.jsx)(s.Z,{}),(0,r.jsx)(c.Z.Text,{children:"Hooks"})]}),(0,r.jsx)(h.Z,{mode:"multiple",allowClear:!0,style:{width:350},dropdownMatchSelectWidth:!0,onChange:e=>{j(e)},children:e.map(e=>(0,r.jsx)(h.Z.Option,{label:e,value:e,children:e},e))})]})]})}),(0,r.jsx)(m.Nu,{api:o.SDK.ServerAPI.API.GetPluginData,body:{hooks:n,tapNames:e},children:e=>(0,r.jsx)(x.A,{dataSource:e})})]})})})}},83177:function(e,t,n){"use strict";n.d(t,{JZ:function(){return r},P3:function(){return i},Px:function(){return d},UM:function(){return a},Yt:function(){return o},kc:function(){return l},wH:function(){return u},xA:function(){return s}});var r=n(11970),i=n(37556);n(18602);var s=n(77122),o=n(40335),a=n(86825),l=n(90025),d=n(488),u=n(29668)},11082:function(e,t,n){"use strict";n.d(t,{K:function(){return i}});var r=n(46641);class i{constructor(e){this.manifest=e,this.pool=new Map,this.disposed=!1,this.shardingDataMap=new Map,this.loader=new r.Vw.D(this),console.log("[DataLoader] isLocal: ",this.isLocal())}get(e){if(this.manifest)return this.manifest[e]}getData(e,t="data"){let n=this.get(t);if(n)return n[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 n=t().finally(()=>this.pool.delete(e));return this.pool.set(e,n),n}log(...e){console.log(`[${this.constructor.name}]`,...e)}async loadManifest(){return this.manifest}}},16510:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var r=n(46641),i=n(11082),s=n(78741);class o extends i.K{isLocal(){return!1}async loadData(e){console.log(`[loadData]-[key]: ${e}`);let[t]=this.getKeys(e);console.log(`[loadData]-[scope]: ${t}`);let n=this.getData(t);if(console.log(`[loadData]-[data]: ${n}`),!n)return;let i=n;if(!this.shardingDataMap.has(t)){let e="object"==typeof i?i:JSON.parse(r.k1.AV(i));console.log(`[loadData]-[scopeData]: ${e}`),this.shardingDataMap.set(t,e)}return i=await this.shardingDataMap.get(t)}getData(e){return console.log(`[getData]-[scope]: ${e}`),window[s.Constants.WINDOW_RSDOCTOR_TAG][e]}async loadAPI(...e){return this.loader.loadAPI(...e)}dispose(){super.dispose()}onDataUpdate(){}removeOnDataUpdate(){}}},1675:function(e,t,n){"use strict";n.d(t,{w:function(){return u}});var r=n(78741),i=n(52983),s=n(36514),o=n(21249);n(41451),n(95925);var a=n(16510);let l=new WeakMap;async function d(e){try{if(e.__LOCAL__SERVER__)return console.log("[LocalServerDataLoader]"),new s.G(e)}catch(e){console.log("[DataLoader] fallback to RemoteDataLoader")}return new o.O(e)}function u(e){let[t,n]=(0,i.useState)(void 0);return(0,i.useEffect)(()=>{window[r.Constants.WINDOW_RSDOCTOR_TAG]&&(console.log("[brief mode]"),n(new a.P({data:[]})))},[]),(0,i.useEffect)(()=>{if(!!e){if(!l.has(e)){let t=d(e);l.set(e,t)}l.get(e).then(e=>{n(e)})}},[e]),{loader:t}}},36514:function(e,t,n){"use strict";n.d(t,{G:function(){return l}});var r=n(46641),i=n(78741),s=n(50002),o=n(11082),a=n(41561);class l extends o.K{constructor(){super(...arguments),this.events=new Map}isLocal(){return!0}async loadData(e){return this.limit(e,async()=>{let[t,...n]=this.getKeys(e),o=this.getData(t);if(!o)return;let l=o;if(r.Gp.j8(l)){if(!this.shardingDataMap.has(e)){let t=new Promise(t=>{(0,a.h)().emit(i.SDK.ServerAPI.API.LoadDataByKey,{key:e},e=>{t(e.res)})});this.shardingDataMap.set(e,t)}return l=await this.shardingDataMap.get(e),this.shardingDataMap.delete(e),l}return n.length>0?(0,s.Z)(l,this.joinKeys(n)):l})}async loadAPI(...e){let[t,n]=e,r=n?`${t}_${JSON.stringify(n)}`:`${t}`;return this.limit(r,async()=>new Promise(e=>{(0,a.h)().emit(t,n,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){if(!this.events.has(e)&&this.events.set(e,new Set),!this.events.get(e).has(t))this.events.get(e).add(t),(0,a.h)().on(e,t)}removeOnDataUpdate(e,t){(0,a.h)().off(e,t),this.events.get(e).delete(t)}}},21249:function(e,t,n){"use strict";n.d(t,{O:function(){return a}});var r=n(46641),i=n(50002),s=n(11082),o=n(48612);class a extends s.K{isLocal(){return!1}async loadData(e){return this.limit(e,async()=>{let[t,...n]=this.getKeys(e),s=this.getData(t,"cloudData");if(!s)return;let a=s;if(r.Gp.j8(a)){if(!this.shardingDataMap.has(t)){let n=r.Gp.om(a,o.C2).catch(t=>{throw this.log("loadData error: ",a,e),t});this.shardingDataMap.set(t,n)}a=await this.shardingDataMap.get(t)}return n.length>0?(0,i.Z)(a,this.joinKeys(n)):a})}async loadAPI(...e){let[t,n]=e,r=n?`${t}_${JSON.stringify(n)}`:`${t}`;return this.limit(r,async()=>this.loader.loadAPI(...e))}dispose(){super.dispose()}onDataUpdate(){}removeOnDataUpdate(){}}},85518:function(e,t,n){"use strict";n.d(t,{C0:function(){return d},n9:function(){return l},p_:function(){return o}});var r=n(50002),i=n(96883);let s=(e,t="/")=>{let n=e?.indexOf(t);return -1===n?null:0===n?t+(s(e?.slice(1))||""):e?.slice(0,n)};function o(e,t=2,n=()=>!0){let r=0,i=[],s=e;for(;r<t&&(s.filter(n).forEach(e=>{!e.isLeaf&&i.push(e.key)}),(s=s.reduce((e,t)=>e.concat(t.children||[]),[])).length);){;r++}return i}let a="__BASENAME__";function l({files:e,sep:t="/",inlinedResourcePathKey:n="__RESOURCEPATH__",fileTitle:i=(e,t)=>t,dirTitle:o=(e,t)=>t}){let l=new RegExp(t),d=e.reduce((e,o)=>{let d=s(o,t),u=d?o?.slice(d.length+1):o,c=e;for(;d;){let e=c.children.find(e=>e.title===d);if(!e){let r=[c[n],d].filter(Boolean).join(t);e={title:d,key:r,children:[],[n]:r,[a]:d},c.children.push(e)}c=e,u=(d=s(u))?u.slice(d.length).replace(l,""):u}return c.children.some(e=>(0,r.Z)(e,n)===o)?e:(c.children.push({title:()=>i(o,u),key:o,isLeaf:!0,[n]:o,[a]:u}),e)},{key:"0",children:[]}).children;return d.forEach(e=>{e.children&&e.children.forEach(r=>(function e(t,n,r="/",i,s=(e,t)=>t){if(!t.isLeaf){if(n.children&&1===n.children.length){let o=[n[a],t[a]].join(r);n[i]=t[i],n[a]=o,n.key=[n.key,t.key].join("-"),n.children=t.children,n.title=s(n,o),t.children&&t.children.forEach(t=>{e(t,n,r,i,s)})}else t.title=s(t,t[a]),t.children&&t.children.forEach(n=>{e(n,t,r,i,s)})}})(r,e,t,n,o))}),d}function d(e,t){return(0,i.Z)(e,t)?e.replace(t,"."):e}},11390:function(e,t,n){"use strict";n.d(t,{Bh:function(){return g},Bo:function(){return x},EF:function(){return m},LR:function(){return j},Lm:function(){return v},QT:function(){return h},XO:function(){return f},is:function(){return p},m5:function(){return y}}),n(46641);var r=n(78741),i=n(40521),s=n(52983),o=n(88524),a=n(44278),l=n(89730),d=n.n(l);n(63396);var u=n(41451);let c=r.Client.RsdoctorClientRoutes.RuleIndex,h=()=>{let{i18n:e,...t}=(0,o.$)();return{...t,i18n:{...e,changeLanguage:(t,n)=>e.changeLanguage(t,(e,r)=>{!e&&(0,u.Ch)(t),n&&n(e,r)})}}};function f(e,t){let n=(0,a.s0)();return t?()=>window.open(t,"__blank"):()=>{n(`${c}?${r.Rule.RsdoctorRuleClientConstant.UrlQueryForErrorCode}=${e}`)}}function p(){let e=(0,a.TH)().search||location.search,{query:t}=d()(e,!0);return t}function m(e){return(0,i.Z)(e)?e.filter(e=>e.category===r.Rule.RuleMessageCategory.Compile&&e.code!==r.Rule.RuleMessageCodeEnumerated.Overlay):[]}function x(e){return(0,i.Z)(e)?e.filter(e=>e.category===r.Rule.RuleMessageCategory.Bundle&&e.code!==r.Rule.RuleMessageCodeEnumerated.Overlay):[]}function g(e){return x(e).filter(e=>e.code===r.Rule.RuleErrorMap.E1001.code)}function j(e=[]){return(0,i.Z)(e)?e.find(e=>"webpack"===e.name||"rspack"===e.name):null}function y(){return!!("https:"===window.location.protocol&&window.location.href.indexOf("ide-proxy")>0)||!1}function v(){let[e,t]=(0,s.useState)(window.innerWidth);return(0,s.useEffect)(()=>{let e=()=>t(window.innerWidth);return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),e}},91110:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r={Overall:"\u6982\u89C8","Compile Analysis":"\u7F16\u8BD1\u5206\u6790",LoadersAnalysis:"Loaders \u5206\u6790","Loaders Timeline":"Loaders \u6982\u89C8","Loaders Analysis":"Loaders \u5206\u6790",PluginsAnalysis:"Plugins \u5206\u6790",ModuleResolve:"Module Resolve \u5206\u6790","Bundle Analysis":"\u4EA7\u7269\u5206\u6790",BundleSize:"\u4EA7\u7269\u4F53\u79EF\u5206\u6790","Module Graph":"Module Graph",TreeShaking:"Tree Shaking","Rule Index":"\u9519\u8BEF\u7D22\u5F15\u4FE1\u606F",Resources:"\u8D44\u6E90","Project Overall":"\u9879\u76EE\u4FE1\u606F\u6982\u89C8","Compile Overall":"\u7F16\u8BD1\u6570\u636E\u6982\u89C8","Bundle Overall":"\u4EA7\u7269\u6570\u636E\u6982\u89C8","Expand Omitted":" reasons \u6811\u4F1A\u9ED8\u8BA4\u6298\u53E0\u4E2D\u95F4\u7684\u7B2C\u4E09\u65B9\u5F15\u5165\u7684\u6A21\u5757\uFF0C\u70B9\u51FB\u8FD9\u4E2A\u56FE\u6807\u53EF\u4EE5\u67E5\u770B\u5B8C\u6574\u6811\u56FE","Concatenated Tag":"\u4E32\u8054\u6A21\u5757\uFF0Chover \u4E0A\u53BB\u53EF\u4EE5\u663E\u793A\u805A\u5408\u6210\u7684\u4E3B\u6A21\u5757\u540D\u79F0\u3002\u6CE8\uFF1A\u805A\u5408\u6A21\u5757 bundled size \u4E3A\u96F6\uFF0C\u6709\u53EF\u80FD\u662F\u56E0\u4E3A\u88AB\u805A\u5408\u5230\u4E86\u4E3B\u6A21\u5757\u4E2D\u3002","the file content not changed after transpiled by this loader":"\u8BE5\u6587\u4EF6\u5185\u5BB9\u5728 loader \u5904\u7406\u524D\u540E\u6CA1\u6709\u53D1\u751F\u53D8\u5316","Output Assets List":"\u4EA7\u7269\u6587\u4EF6\u5217\u8868","filter the output assets which size is greater than the input value":"\u7B5B\u9009\u5927\u5C0F\u5927\u4E8E\u8F93\u5165\u503C\u7684\u4EA7\u7269\u6587\u4EF6","filter the modules which size is greater than the input value":"\u7B5B\u9009\u5927\u5C0F\u5927\u4E8E\u8F93\u5165\u503C\u7684\u6A21\u5757","After Compile":"\u7F16\u8BD1\u540E","After Bundle":"\u6253\u5305\u540E",CodeModeExplain:"Lite \u6A21\u5F0F\u4E0B\u6216\u7EAF stats.json \u4E0A\u4F20\u7684\u60C5\u51B5\u4E0B\u53EA\u6709 source code.",DuplicatePakCodeExplain:"\u7EAF stats.json \u8F93\u5165\u7684\u60C5\u51B5\u4E0B\u6CA1\u6709\u4EE3\u7801\uFF0C\u53EF\u4F7F\u7528 web-doctor \u63D2\u4EF6\u53C2\u4E0E\u6784\u5EFA\u4F1A\u6709\u5BF9\u5E94\u4EE3\u7801\u3002"}},85371:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r={Overall:"Overall","Compile Analysis":"Compile Analysis",LoadersAnalysis:"Loaders Analysis","Loaders Timeline":"Loaders Timeline","Loaders Analysis":"Loaders Analysis",PluginsAnalysis:"Plugins Analysis",ModuleResolve:"Module Resolve","Bundle Analysis":"Bundle Analysis",BundleSize:"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."}},63396:function(e,t,n){"use strict";var r=n(81346),i=n(60603),s=n(85371),o=n(91110),a=n(41451);r.ZP.use(i.Db).init({lng:(0,a.V1)(),resources:{en:{translations:s.Z},cn:{translations:o.Z}},fallbackLng:{"zh-CN":["cn"],default:["en"]},debug:!1,ns:["translations"],defaultNS:"translations",keySeparator:!1,interpolation:{escapeValue:!1}})},77422:function(e,t,n){"use strict";n.d(t,{beautifyPath:function(){return i.C0},changeOrigin:function(){return p.yq},createFileStructures:function(){return i.n9},fetchManifest:function(){return d.eq},filterLoader:function(){return x.F3},formatCosts:function(){return f.au},formatSize:function(){return c.B},getDemoUrl:function(){return p.jg},getLocale:function(){return o.K},getModifiedLanguage:function(){return l.oU},getOriginalLanguage:function(){return l.wA},getSelectionRange:function(){return l.pl},getShortPath:function(){return p.Uc},hasBundle:function(){return u.p},hasCompile:function(){return u.H},hasViewModeFromStorage:function(){return h.JS},isDef:function(){return p.Xq},isJsDataUrl:function(){return p.lW},mapFileKey:function(){return i.p_},setThemeToStorage:function(){return h.rn},setViewModeToStorage:function(){return h.oP},useBundleAlertsByErrors:function(){return s.Bo},useCompileAlertsByErrors:function(){return s.EF},useDataLoader:function(){return r.w},useDetectIfCloudIdeEnv:function(){return s.m5},useDuplicatePackagesByErrors:function(){return s.Bh},useI18n:function(){return s.QT},useLocale:function(){return a.bU},useModuleGraphInstanceByModuleGraph:function(){return a.kb},useMonacoEditor:function(){return l.xA},useRuleIndexNavigate:function(){return s.XO},useTheme:function(){return a.Fg},useUrlQuery:function(){return s.is},useViewMode:function(){return a.mJ},useWebpackConfigurationByConfigs:function(){return s.LR},useWindowWidth:function(){return s.Lm}});var r=n(1675),i=n(85518),s=n(11390),o=n(84573),a=n(44428),l=n(60271),d=n(48612),u=n(45437),c=n(29321);n(41561);var h=n(41451),f=n(53607),p=n(93155),m=n(47993);n.o(m,"filterLoader")&&n.d(t,{filterLoader:function(){return m.filterLoader}}),n.o(m,"Constants")&&n.d(t,{Constants:function(){return m.Constants}});var x=n(75196)},75196:function(e,t,n){"use strict";n.d(t,{F3:function(){return a},d8:function(){return s}});var r=n(46641),i=n(15890);let{findLoaderTotalTiming:s,getLoaderCosts:o}=r.aN;function a(e,t,n,r){return!(n&&-1===e.indexOf(n)||r?.length&&!(0,i.Z)(r,t))&&!0}},84573:function(e,t,n){"use strict";n.d(t,{K:function(){return s}});var r=n(64841),i=n(54903);function s(e){return"cn"===e||"zh-CN"===e?r.Z:i.Z}},44428:function(e,t,n){"use strict";n.d(t,{Fg:function(){return l},bU:function(){return a},kb:function(){return u},mJ:function(){return d}});var r=n(52983),i=n(70459),s=n(67351),o=n(95925);function a(){return(0,r.useContext)(s.E).locale}function l(){let{theme:e,setTheme:t}=(0,r.useContext)(s.E),n=e===o.Theme.Dark;return{theme:e,setTheme:t,isDark:n,isLight:!n}}function d(){let{viewMode:e,setViewMode:t}=(0,r.useContext)(s.E),{bundleAlerts:n,compileAlerts:i}=e;return{viewMode:e,setViewMode:t,setCompileAlertsViewMode(e){t({compileAlerts:e})},setBundleAlertsViewMode(e){t({bundleAlerts:e})},isCompileList:i===o.ViewMode.List,isBundleList:n===o.ViewMode.List}}function u(e){return(0,r.useMemo)(()=>i.ModuleGraph.fromData(e),[e])}n(48612)},60271:function(e,t,n){"use strict";n.d(t,{oU:function(){return l},pl:function(){return d},wA:function(){return a},xA:function(){return c}});var r=n(77410),i=n(68851),s=n(93155);let o=i._m.init();function a(e){if((0,s.lW)(e))return"javascript";let t=(0,r.extname)(e).slice(1);switch(t){case"js":case"jsx":return"javascript";case"ts":case"tsx":return"typescript";default:return t}}function l(e){let t=(0,r.extname)(e).slice(1);switch(t){case"js":case"jsx":case"ts":case"tsx":return"javascript";default:return t}}function d(e,t){let{start:n,end:r}=e,{line:i=1,column:s=0}=n;return new t(i,s+1,r?.line??i,(r?.column??9999)+1)}let u=e=>new Promise((t,n)=>{if(e.value){t();return}o.then(t=>{e.value=t}).catch(e=>{e?.type!=="cancelation"&&(console.error("Monaco initialization error:",e),n())})});function c(){return{initMonaco:u}}},48612:function(e,t,n){"use strict";let r;n.d(t,{C2:function(){return l},eq:function(){return c}});var i=n(87775),s=n(78741),o=n(46641);n(95925);var a=n(93155);async function l(e){return o.R9.CB(e)?i.Z.get(e,{timeout:999999,responseType:"text"}).then(e=>e.data):e}async function d(e){let t=await i.Z.get(e,{timeout:3e4}).then(e=>e.data);return"string"==typeof t&&(t=JSON.parse(t)),console.log("[json] ",e,t),t}n(41451);let u=new Map;async function c(e=(!(r=window[s.Manifest.RsdoctorManifestClientConstant.WindowPropertyForManifestUrl]?window[s.Manifest.RsdoctorManifestClientConstant.WindowPropertyForManifestUrl]:(0,a.Pi)())&&(r=s.SDK.ServerAPI.API.Manifest),r)){return!u.has(e)&&u.set(e,d(e).catch(t=>{throw u.delete(e),t})),await u.get(e)}},45437:function(e,t,n){"use strict";n.d(t,{H:function(){return s},p:function(){return o}});var r=n(15890),i=n(78741);function s(e){return(0,r.Z)(e,i.Manifest.RsdoctorManifestClientRoutes.WebpackLoaders)||(0,r.Z)(e,i.Manifest.RsdoctorManifestClientRoutes.ModuleResolve)||(0,r.Z)(e,i.Manifest.RsdoctorManifestClientRoutes.WebpackPlugins)}function o(e){return(0,r.Z)(e,i.Manifest.RsdoctorManifestClientRoutes.BundleSize)||(0,r.Z)(e,i.Manifest.RsdoctorManifestClientRoutes.ModuleGraph)||(0,r.Z)(e,i.Manifest.RsdoctorManifestClientRoutes.TreeShaking)}},29321:function(e,t,n){"use strict";function r(e){let t;return t=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"}n.d(t,{B:function(){return r}})},41561:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(99524);let i=new Map,s=location.protocol.includes("https")?"wss":"ws",o=`${s}://${location.host}`;function a(){return function(e=o){if(!i.has(e)){let t=(0,r.io)(e,{});t.on("connect",()=>{console.log(`Scoket Connect ${e}`)}),i.set(e,t)}return i.get(e)}(o)}},41451:function(e,t,n){"use strict";n.d(t,{Bd:function(){return l},Ch:function(){return c},JS:function(){return p},V1:function(){return u},ZM:function(){return h},oP:function(){return f},rn:function(){return d}});var r,i=n(95925);var s=((r=s||{}).Namespace="__RSDOCTOR__STORAGE__",r.Theme="THEME",r.Locale="LOCALE",r.ViewMode="VIEWMODE",r.APILoaderMode4Dev="APILOADERMODE_DEV",r);function o(e){return window.localStorage.getItem(`__RSDOCTOR__STORAGE__${e}`)}function a(e,t){try{return window.localStorage.setItem(`__RSDOCTOR__STORAGE__${e}`,t),!0}catch(e){return console.error(e),!1}}function l(){return o("THEME")||i.Theme.Light}function d(e){a("THEME",e)}function u(){return o("LOCALE")||i.Language.En}function c(e){a("LOCALE",e)}function h(){let e={bundleAlerts:i.ViewMode.List,compileAlerts:i.ViewMode.List};try{let t=o("VIEWMODE");if(t)return JSON.parse(t)||e;return e}catch(t){return e}}function f(e){a("VIEWMODE",JSON.stringify(e))}function p(){return!!o("VIEWMODE")}},53607:function(e,t,n){"use strict";n.d(t,{au:function(){return s}});let{toFixedDigits:r,getUnit:i,formatCosts:s}=n(46641).qp},93155:function(e,t,n){"use strict";n.d(t,{Pi:function(){return l},Uc:function(){return c},Xq:function(){return h},jg:function(){return u},lW:function(){return a},yq:function(){return d}});var r=n(89730),i=n.n(r),s=n(78741),o=n(45641);function a(e){return e.startsWith("data:text/javascript;")}function l(){let{query:e}=i()(location.href,!0),t=e[s.Client.RsdoctorClientUrlQuery.ManifestFile];if(t)return decodeURIComponent(t)}function d(e){var t;let n=i()(location.href,!0),r=i()(e,!0);return t=n,(0,o.Z)(t.hash,s.Client.RsdoctorClientRoutes.Uploader)&&t.set("hash",s.Client.RsdoctorClientRoutes.Overall),n.set("origin",e),n.set("protocol",r.protocol),n.set("host",r.host),n.set("port",r.port),n.toString()}function u(){return null}let c=e=>{if(e?.indexOf("node_modules")>=0){let t=e.split("node_modules");return`node_modules${t[t.length-1]}`}return e?.length?`${e?.split("/").slice(-4).join("/")}`:e};function h(e){return null!=e}},47993:function(e,t,n){"use strict";n.d(t,{master:function(){return i.S}});var r=n(19749);n.o(r,"filterLoader")&&n.d(t,{filterLoader:function(){return r.filterLoader}}),n.o(r,"master")&&n.d(t,{master:function(){return r.master}}),n.o(r,"Constants")&&n.d(t,{Constants:function(){return r.Constants}});var i=n(3204)},3204:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});var r=n(86880);let i=new class e{constructor(){this._workerMap=new WeakMap}detectWorker(e){if(this._workerMap.has(e))return this._workerMap.get(e);let t=e(),n=new r.V(t);return this._workerMap.set(e,n),n}}},19749:function(){},86848:function(e,t,n){"use strict";function r(e,t){return t.postMessage(e)}n.d(t,{F5:function(){return r}})},86880:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var r=n(86848);class i{constructor(e){this.worker=e,this.timer=0,this.callbacks=new Map,this.setup()}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){let n=this.createEventId();return this.callbacks.set(n,t),(0,r.F5)({id:n,data:e},this.worker),{abort:()=>this.callbacks.delete(n)}}dispose(){this.worker.terminate()}}},35563:function(e,t,n){"use strict";n(78741)},47687:function(e,t,n){"use strict";n(35563)},49689:function(e,t,n){"use strict";n.d(t,{Module:function(){return r.Module},ModuleGraph:function(){return r.ModuleGraph}}),n(47687);var r=n(55620);n(16898)},93492:function(e,t,n){"use strict";n.d(t,{S:function(){return s}});var r=n(78741);let i=1;class s{constructor(e,t,n,r,s){this.statements=[],this.meta={exportsType:"default-with-named"},this.id=i++,this.request=e,this.module=t,this._originDependency=n,this.kind=r,this.statements=s??[]}static init(){i=1}get resolvedRequest(){return this.dependency.path}get dependency(){return this.originDependency.rootModule??this.originDependency}get originDependency(){return this._originDependency}get kindString(){return r.SDK.DependencyKind[this.kind]}get resolveConcatenationModule(){return this.dependency.kind===r.SDK.ModuleKind.Concatenation}isSameWithoutStatements(e){return this.request===e.request&&this.kind===e.kind&&this.module.id===e.module.id&&this.dependency.id===e.dependency.id}addStatement(e){!this.hasStatement(e)&&this.statements.push(e)}hasStatement(e){return this.statements.some(t=>t.isSame(e))}setBuildMeta(e){this.meta={...this.meta,...e}}toData(){return{id:this.id,request:this.request,resolvedRequest:this.resolvedRequest,kind:this.kind,module:this.module.id,dependency:this.dependency.id,originDependency:this.originDependency.id,statements:this.statements.map(e=>e.toData())}}}s.kind=r.SDK.DependencyKind},39126:function(e,t,n){"use strict";n.d(t,{x:function(){return l}});var r=n(78741),i=n(93492),s=n(54223),o=n(1718),a=n(57882);class l{constructor(){this._dependenciesIdMap=new Map,this._moduleWebpackIdMap=new Map,this._moduleIdMap=new Map,this._moduleGraphModules=new Map,this._exportIdMap=new Map,this._sideEffectIdMap=new Map,this._varIdMap=new Map}static init(){s.Y.init(),i.S.init(),a.ModuleGraphModule.init()}static fromData(e){let t=new l,n=e=>new o.P(t.getModuleById(e.module),e.position);for(let n of e.modules??[]){let e=new s.Y(String(n.id),n.path,n.isEntry,n.kind);e.id=n.id,e.setSize(n.size),e.meta={strictHarmonyModule:n.meta?.strictHarmonyModule??!1,hasSetEsModuleStatement:n.meta?.hasSetEsModuleStatement??!1},e._isPreferSource=n.isPreferSource,e.chunks=n.chunks,t.addModule(e)}for(let r of e.modules??[]){let i=t.getModuleById(r.id);for(let s of r.dependencies){let r=(e.dependencies??[]).find(e=>e.id===s),o=r&&t.getModuleById(r.originDependency);if(!r||!o){console.warn(`The connection data ID is empty: ${s}`);continue}let a=i.addDependency(r.request,o,r.kind,r.statements.map(n));if(!!a)a.id=r.id,t.addDependency(a)}for(let e of r.modules??[]){let n=t.getModuleById(e);if(!n){console.warn(`Add the ordinary module ID as empty: ${e}`);continue}i.addNormalModule(n)}for(let e of r.concatenationModules??[]){let n=t.getModuleById(e);if(!n){console.warn(`The aggregation module ID is empty: ${n}`);continue}i.addConcatenationModule(n)}}for(let r of e.exports??[]){let e=new a.ExportInfo(r.name,r.identifier?n(r.identifier):void 0);e.id=r.id,t.addExportInfo(e)}for(let n of e.exports??[])if(n.from){let e=t._exportIdMap.get(n.id),r=t._exportIdMap.get(n.from);e&&r&&e.setFromExport(r)}for(let r of e.variables??[]){let e=t.getModuleById(r.module);if(!e){console.warn(`The module ID in the variable is empty\u{FF1A}${r.module}`);continue}let i=new a.Variable(r.name,e,r.usedInfo,n(r.identifier)),s=t._exportIdMap.get(r.exported??-1);s&&i.setExportInfo(s),i.id=r.id,t.addVariable(i)}for(let r of e.sideEffects??[]){let e=t.getModuleById(r.module);if(!e){console.warn(`The module ID in the side effects is empty\u{FF1A}${r.module}`);continue}let i=new a.SideEffect(r.name,e,n(r.identifier),r.originName);for(let e of(i.isNameSpace=r.isNameSpace,i.id=r.id,r.exports??[])){let n=t._exportIdMap.get(e);n&&n.addSideEffect(i)}if(r.variable){let e=t._varIdMap.get(r.variable);e&&(i._variable=e)}t.addSideEffect(i)}for(let n of e.moduleGraphModules??[]){let e=t.getModuleById(n.module);if(!e){console.warn(`The module ID in ModuleGraphModule is empty: ${n.module}`);continue}let r=new a.ModuleGraphModule(e,t,n.dynamic);t.addModuleGraphModule(r),n.exports.forEach(e=>{let n=t._exportIdMap.get(e);n&&r.addExportInfo(n)}),n.sideEffects.forEach(e=>{let n=t._sideEffectIdMap.get(e);n&&r.addSideEffect(n)}),n.variables.forEach(e=>{let n=t._varIdMap.get(e);n&&r.addVariable(n)})}return l.init(),t}clear(){this._dependenciesIdMap=new Map,this._moduleWebpackIdMap=new Map,this._moduleIdMap=new Map,this._moduleGraphModules=new Map,this._exportIdMap=new Map,this._sideEffectIdMap=new Map,this._varIdMap=new Map}size(){return this._moduleIdMap.size}fromInstance(e){this._dependenciesIdMap=new Map(e._dependenciesIdMap),this._moduleWebpackIdMap=new Map(e._moduleWebpackIdMap),this._moduleIdMap=new Map(e._moduleIdMap),this._moduleGraphModules=new Map(e._moduleGraphModules),this._exportIdMap=new Map(e._exportIdMap),this._sideEffectIdMap=new Map(e._sideEffectIdMap),this._varIdMap=new Map(e._varIdMap)}getSubGraphByModule(e){let t=new Set,n=[e];t.add(e);for(let e=0;e<n.length;e++)for(let{dependency:r}of n[e].getDependencies()){if(!t.has(r))t.add(r),n.push(r)}return n}getModules(){return Array.from(this._moduleWebpackIdMap.values())}getDependencies(){return Array.from(this._dependenciesIdMap.values())}getEntryModules(){return this.getModules().filter(e=>e.isEntry&&e.kind!==r.SDK.ModuleKind.Concatenation)}getModuleById(e){return this._moduleIdMap.get(e)}getDependencyById(e){return this._dependenciesIdMap.get(e)}getModuleByWebpackId(e){return this._moduleWebpackIdMap.get(e)}getModuleByFile(e){return this.getModules().find(t=>t.path===e)}addModule(...e){for(let t of e)!this._moduleIdMap.has(t.id)&&(this._moduleWebpackIdMap.set(t.webpackId,t),this._moduleIdMap.set(t.id,t))}addDependency(...e){for(let t of e)!this._dependenciesIdMap.has(t.id)&&(this._dependenciesIdMap.set(t.id,t),this.addModule(t.module),this.addModule(t.dependency))}removeModule(e){for(let t of(this._moduleIdMap.delete(e.id),this._moduleWebpackIdMap.delete(e.webpackId),e.getDependencies()))this.removeDependency(t),this._dependenciesIdMap.delete(t.id);for(let t of e.getImported())t.removeDependencyByModule(t)}removeDependency(e){e.module.removeDependency(e),e.dependency.removeImported(e.module),this._dependenciesIdMap.delete(e.id)}addModuleGraphModule(e){!this._moduleGraphModules.has(e.module)&&this._moduleGraphModules.set(e.module,e)}getModuleGraphModule(e){return this._moduleGraphModules.get(e)}getModuleGraphModules(){return Array.from(this._moduleGraphModules.values())}addExportInfo(e){this._exportIdMap.set(e.id,e)}addSideEffect(e){this._sideEffectIdMap.set(e.id,e)}addVariable(e){this._varIdMap.set(e.id,e)}toData(e){return{dependencies:this.getDependencies().map(e=>e.toData()),modules:this.getModules().map(t=>t.toData(e?.contextPath)),moduleGraphModules:Array.from(this._moduleGraphModules.values()).map(e=>e.toData()),exports:Array.from(this._exportIdMap.values()).map(e=>e.toData()),sideEffects:Array.from(this._sideEffectIdMap.values()).map(e=>e.toData()),variables:Array.from(this._varIdMap.values()).map(e=>e.toData())}}toCodeData(e=r.SDK.ToDataType.Normal){let t={};return this.getModules().forEach(n=>{t[n.id]=n.getSource(e)}),t}}},55620:function(e,t,n){"use strict";n.d(t,{Module:function(){return r.Y},ModuleGraph:function(){return i.x}}),n(93492);var r=n(54223),i=n(39126);n(1718),n(57882)},54223:function(e,t,n){"use strict";n.d(t,{Y:function(){return c}});var r=n(78741),i=n(77410),s=n.n(i),o=n(39378),a=n(93492),l=n(1718),d=n(4034);let u=1;class c{constructor(e,t,n=!1,i=r.SDK.ModuleKind.Normal){this.source={source:"",transformed:"",parsedSource:""},this.size={sourceSize:0,transformedSize:0,parsedSize:0},this.chunks=[],this.dependencies=[],this.imported=[],this.modules=[],this.concatenationModules=[],this.meta={hasSetEsModuleStatement:!1,strictHarmonyModule:!1},this.id=u++,this.webpackId=e,this.path=t,this.isEntry=n,this.kind=i}static init(){u=1}get rootModule(){return this.modules.find(e=>e.path===this.path)}get isPreferSource(){if("boolean"==typeof this._isPreferSource)return this._isPreferSource;let e=this.source.source.length>0&&"test code"!==this.source.source&&!!this.sourceMap;return this._isPreferSource=e,e}getChunks(){return this.chunks.slice()}addChunk(e){!this.chunks.includes(e)&&(this.chunks.push(e),e.addModule(this))}removeChunk(e){this.chunks=this.chunks.filter(t=>t!==e)}getDependencies(){return this.dependencies.slice()}getDependencyByRequest(e){return this.dependencies.find(t=>t.request===e)}getDependencyByModule(e){return this.dependencies.find(t=>t.originDependency===e||t.dependency===e)}addDependency(e,t,n,r){let i=new a.S(e,this,t,n,r);if(this.dependencies.every(e=>!e.isSameWithoutStatements(i)))return this.dependencies.push(i),t.addImported(this),t.rootModule&&t.rootModule.addImported(this),i}removeDependency(e){this.dependencies=this.dependencies.filter(t=>t===e)}removeDependencyByModule(e){let t=this.getDependencyByModule(e);t&&this.removeDependency(t)}getImported(){return this.imported.slice()}addImported(e){!this.imported.includes(e)&&this.imported.push(e)}removeImported(e){this.imported=this.imported.filter(t=>t===e)}setProgram(e){this.program=e}getProgram(){return this.program}setSource(e){let{source:t}=this;t.source=e.source??t.source,t.transformed=e.transformed??t.transformed,t.parsedSource=e.parsedSource??t.parsedSource}getSource(e=r.SDK.ToDataType.Normal){return e===r.SDK.ToDataType.NoCode?{source:"",transformed:"",parsedSource:""}:e===r.SDK.ToDataType.NoSourceAndAssets||e===r.SDK.ToDataType.NoSource?{source:"",transformed:"",parsedSource:this.isPreferSource?"":this.source.parsedSource}:e===r.SDK.ToDataType.All?{source:this.source.source,transformed:this.source.transformed,parsedSource:this.isPreferSource?"":this.source.parsedSource}:{source:this.source.source,transformed:"",parsedSource:this.isPreferSource?"":this.source.parsedSource}}setSourceMap(e){this.sourceMap=e}getSourceMap(){return this.sourceMap}setSize(e){let{size:t}=this;t.sourceSize=e.sourceSize??t.sourceSize,t.transformedSize=e.transformedSize??t.transformedSize,t.parsedSize=e.parsedSize??t.parsedSize}getSize(){return{...this.size}}getStatement(e){return new l.P(this,{source:this.getSourceRange(e),transformed:{start:{...e.start},end:e.end?{...e.end}:void 0}})}getSourceRange(e){let{sourceMap:t}=this;if(!t)return;let n={start:{}},r=t.originalPositionFor({line:e.start.line??0,column:e.start.column??0,bias:1});if((0,o.isNumber)(r.line)&&(n.start={line:r.line,column:r.column??void 0}),e.end){let r=t.originalPositionFor({line:e.end.line??0,column:e.end.column??0});(0,o.isNumber)(r.line)&&(n.end={line:r.line,column:r.column??void 0})}return n}addNormalModule(e){!this.modules.includes(e)&&(this.modules.push(e),e.addConcatenationModule(this))}getNormalModules(){return this.modules.slice()}addConcatenationModule(e){!this.concatenationModules.includes(e)&&this.concatenationModules.push(e)}getConcatenationModules(){return this.concatenationModules.slice()}toData(e){let{isPreferSource:t}=this,n=(0,d.mz)(this.webpackId),r={id:this.id,webpackId:e&&n.indexOf(".")>0?s().relative(e,n):this.webpackId,path:this.path,isPreferSource:t,dependencies:this.dependencies.map(e=>e.id),imported:this.imported.map(e=>e.id),chunks:this.chunks.map(e=>e.id),size:this.getSize(),kind:this.kind};return(this.meta.hasSetEsModuleStatement||this.meta.strictHarmonyModule)&&(r.meta={},this.meta.hasSetEsModuleStatement&&(r.meta.hasSetEsModuleStatement=!0),this.meta.strictHarmonyModule&&(r.meta.strictHarmonyModule=!0)),this.isEntry&&(r.isEntry=this.isEntry),this.modules.length>0&&(r.modules=this.modules.map(e=>e.id)),this.rootModule&&(r.rootModule=this.rootModule.id),this.concatenationModules.length>0&&(r.concatenationModules=this.concatenationModules.map(e=>e.id)),r}}c.kind=r.SDK.ModuleKind},1718:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(4034);class i{static getDefaultStatement(e){let t={line:1,column:0},n={start:{...t},end:{...t}};return new i(e,{source:{...n},transformed:{...n}})}constructor(e,t){this.module=e,this.position=t}isSame(e){return this.module.id===e.module.id&&(0,r.Hf)(this.position.transformed,e.position.transformed)}getSourcePosition(){let{module:e,position:t}=this;return t.source?t.source:e.getSourceMap()?(t.source=e.getSourceRange(t.transformed),t.source):void 0}getLineCode(){let e=this.module.isPreferSource&&this.position.source,t=this.module.getSource(),n=e?t.source:t.transformed,r=e?this.position.source.start.line:this.position.transformed.start.line;if("number"==typeof r)return n.split("\n")[r-1]}toData(){let e={transformed:this.position.transformed};return this.position.source&&(e.source=this.position.source),{position:e,module:this.module.id}}}},23634:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});let r=1;class i{constructor(e,t,n){this.id=r++,this._sideEffects=[],this.name=e,this.identifier=t,this._variable=n}static init(){r=1}get isReExport(){return!!this.from}set variable(e){this._variable=e}get variable(){if(this._variable)return this._variable;if(!this.from||!1===this._variable){this._variable=!1;return}let e=this.getRecursiveExport()?.variable;return!e&&(this._variable=!1),e}addSideEffect(e){this._sideEffects.every(t=>t.id!==e.id)&&(this._sideEffects.push(e),this.from&&this.from.addSideEffect(e))}getSideEffects(){return this._sideEffects.slice()}setFromExport(e){this.from=e}getRecursiveExport(e=1/0){if(0===e)throw Error("`getRecursiveExport` method parameter depth must be greater than 1.");if(!this.from)return this;let t=0,n=this;for(;n.from&&t<e;)t++,n=n.from;return n}toData(){let e={id:this.id,name:this.name,isReExport:this.isReExport,used:this._sideEffects.map(e=>e.id)};return this.from&&(e.from=this.from.id,e.root=this.getRecursiveExport().id),this.variable&&(e.variable=this.variable.id),e}}},57882:function(e,t,n){"use strict";n.d(t,{ExportInfo:function(){return i.h},ModuleGraphModule:function(){return r.N},SideEffect:function(){return o.k},Variable:function(){return s._}});var r=n(97095),i=n(23634),s=n(12689),o=n(88449)},97095:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(23634),i=n(88449),s=n(12689);class o{constructor(e,t,n){this.exports=[],this.sideEffects=[],this.variables=[],this.module=e,this._graph=t,"boolean"==typeof this._dynamic&&(this._dynamic=n)}static init(){r.h.init(),i.k.init(),s._.init()}get dynamic(){return"boolean"==typeof this._dynamic?this._dynamic:this.module.getImported().map(e=>e.getDependencyByModule(this.module)).some(e=>e&&"dynamic"===e.meta.exportsType)}addExportInfo(e){this.exports.push(e),this._graph.addExportInfo(e)}addSideEffect(e){this.sideEffects.push(e),this._graph.addSideEffect(e)}addVariable(e){this.variables.push(e),this._graph.addVariable(e)}getExports(){return this.exports.slice()}getSideEffects(e){return e?this.sideEffects.filter(t=>t.name===e):this.sideEffects.slice()}getOwnExports(){return this.exports.filter(e=>!e.isReExport)}getExport(e){return this.exports.find(t=>t.name===e)}getReExports(){return this.exports.filter(e=>e.isReExport)}getOwnExport(e){return this.getOwnExports().find(t=>t.name===e)}getReExport(e){return this.getReExports().find(t=>t.name===e)}toData(){return{module:this.module.id,dynamic:this.dynamic,exports:this.exports.map(e=>e.id),sideEffects:this.sideEffects.map(e=>e.id),variables:this.variables.map(e=>e.id)}}}},88449:function(e,t,n){"use strict";n.d(t,{k:function(){return s}});let r=1,i=class e{constructor(t,n,i,s,o){this.id=r++,this._exports=[],this.name=t,this.module=n,this.identifier=i,s&&(this.fromDependency=this.module.getDependencyByRequest(s)),o===e.NamespaceSymbol?this.isNameSpace=!0:(this.isNameSpace=!1,this.originName=o)}static init(){r=1}get variable(){if(void 0!==this._variable)return this._variable?this._variable:void 0;let e=this.exports[0]?.getRecursiveExport()?.variable;return this._variable=e??!1,e}get exports(){return this._exports?.slice()??[]}setModuleExport(e){e.getExports().forEach(e=>this.setExportInfo(e))}setExportInfo(e){this._exports.push(e),e.addSideEffect(this)}toData(){let e={id:this.id,name:this.name,identifier:this.identifier.toData(),module:this.module.id};return this.fromDependency&&(e.fromDependency=this.fromDependency.id),this.isNameSpace&&(e.isNameSpace=this.isNameSpace),this.exports.length>0&&(e.exports=this.exports.map(e=>e.id)),this.variable&&(e.variable=this.variable.id),e}};i.NamespaceSymbol=Symbol("namespace");let s=i},12689:function(e,t,n){"use strict";n.d(t,{_:function(){return i}});let r=1;class i{constructor(e,t,n,i){this.id=r++,this.name=e,this.module=t,this.usedInfo=n,this.identifier=i}static init(){r=1}get isUsed(){return!!this._exported&&this._exported.getSideEffects().length>0}setExportInfo(e){this._exported=e,e.variable=this}getExportInfo(){return this._exported}toData(){let e={id:this.id,name:this.name,module:this.module.id,identifier:this.identifier.toData(),usedInfo:this.usedInfo};return this._exported&&(e.exported=this._exported.id),e}}},4034:function(e,t,n){"use strict";n.d(t,{Hf:function(){return s},mz:function(){return d}});var r=n(39378);function i(e,t){return e.line===t.line&&e.column===t.column}function s(e,t){return!!i(e.start,t.start)&&((0,r.isNil)(e.end)||(0,r.isNil)(t.end)?(0,r.isUndefined)(e.end)&&(0,r.isUndefined)(t.end):i(e.end,t.end))}let o=/!/,a=/\s\+\s\d*\smodules$/,l=/^css\s.*node_modules(?!\/)/;function d(e){if(!e)return"";if(o.test(e)){let t=(0,r.last)(e.split(o));if(t?.trim())return t}return a.test(e)?e.replace(a,""):l.test(e)?e.replace(l,""):e}},53330:function(e,t,n){"use strict";n(39378),n(77410),n(78741),n(32603),n(68442)},16898:function(e,t,n){"use strict";n(53330),n(32603)},32603:function(e,t,n){"use strict";n(77410),n(68442)},68442:function(e,t,n){"use strict";n(77410),n(46641)},70459:function(e,t,n){"use strict";var r=n(49689);n.o(r,"Module")&&n.d(t,{Module:function(){return r.Module}}),n.o(r,"ModuleGraph")&&n.d(t,{ModuleGraph:function(){return r.ModuleGraph}})},98878:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5264:function(e,t){"use strict";var n,r,i,s,o,a;Object.defineProperty(t,"__esModule",{value:!0}),t.RsdoctorClientDiffState=t.RsdoctorClientRoutes=t.RsdoctorClientUrlQuery=void 0,(s=n||(t.RsdoctorClientUrlQuery=n={})).BundleDiffFiles="__bundle_files__",s.ManifestFile="manifest",(o=r||(t.RsdoctorClientRoutes=r={})).Overall="/overall",o.WebpackLoaderOverall="/webpack/loaders/overall",o.WebpackLoaderAnalysis="/webpack/loaders/analysis",o.ModuleResolve="/module/resolve",o.WebpackPlugins="/webpack/plugins",o.BundleSize="/bundle/size",o.ModuleAnalyze="/module/analyze",o.TreeShaking="/treeshaking",o.BundleDiff="/resources/bundle/diff",o.RuleIndex="/resources/rules",o.Uploader="/resources/uploader",o.EmoCheck="/emo/check",(a=i||(t.RsdoctorClientDiffState=i={})).Equal="-",a.Up="UP",a.Down="DOWN"},43900:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},81046:function(e,t){"use strict";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_DEBUG",t.RsdoctorClientUrl="",t.WINDOW_RSDOCTOR_TAG="__RSDOCTOR__"},38159:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorLevel=void 0,(r=n||(t.ErrorLevel=n={}))[r.Ignore=0]="Ignore",r[r.Warn=1]="Warn",r[r.Error=2]="Error"},99982:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},78741:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),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(n(41657)),t.Esbuild=s(n(99982)),t.Babel=s(n(98878)),t.Common=s(n(43900)),t.Err=s(n(38159)),t.Logger=s(n(79841)),t.SDK=s(n(2167)),t.Modules=s(n(25775)),t.Linter=s(n(57274)),t.Rule=s(n(30518)),t.Thirdparty=s(n(11549)),t.Client=s(n(5264)),t.Constants=s(n(81046)),t.Plugin=s(n(87428))},46615:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Severity=void 0;var r=n(38159);Object.defineProperty(t,"Severity",{enumerable:!0,get:function(){return r.ErrorLevel}})},57274:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"!==n&&!Object.prototype.hasOwnProperty.call(t,n)&&r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(46615),t),i(n(57222),t)},57222:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},79841:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.LogLevel=void 0,(r=n||(t.LogLevel=n={}))[r.Silent=0]="Silent",r[r.Error=1]="Error",r[r.Warning=2]="Warning",r[r.Info=3]="Info",r[r.Debug=4]="Debug",r[r.Verbose=5]="Verbose"},41657:function(e,t){"use strict";var n,r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.RsdoctorManifestClientConstant=t.RsdoctorManifestClientRoutes=void 0,(i=n||(t.RsdoctorManifestClientRoutes=n={})).Overall="Overall",i.WebpackLoaders="Compile.WebpackLoaders",i.ModuleResolve="Compile.ModuleResolve",i.WebpackPlugins="Compile.WebpackPlugins",i.BundleSize="Bundle.BundleSize",i.ModuleGraph="Bundle.ModuleGraph",i.TreeShaking="Bundle.TreeShaking",(r||(t.RsdoctorManifestClientConstant=r={})).WindowPropertyForManifestUrl="__DEVTOOLS_MANIFEST_URL__"},25775:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},82122:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},13709:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},29842:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},87428:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"!==n&&!Object.prototype.hasOwnProperty.call(t,n)&&r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(82122),t),i(n(29842),t),i(n(63345),t),i(n(13709),t)},63345:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5312:function(e,t){"use strict";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:`
|
|
87
|
-
#### Description
|
|
88
|
-
|
|
89
|
-
there is a same name package which bundled more than one version in your application.
|
|
90
|
-
|
|
91
|
-
it is not good to the bundle size of your application.
|
|
92
|
-
|
|
93
|
-
#### General Solution
|
|
94
|
-
|
|
95
|
-
add an entry in \`resolve.alias\` which will configure Webpack to route any package references to a single specified path.
|
|
96
|
-
|
|
97
|
-
For example, if \`lodash\` is duplicated in your bundle, the following configuration would render all Lodash imports to always refer to the \`lodash\` instance found at \`./node_modules/lodash\`:
|
|
98
|
-
|
|
99
|
-
\`\`\`js
|
|
100
|
-
{
|
|
101
|
-
alias: {
|
|
102
|
-
lodash: path.resolve(__dirname, 'node_modules/lodash')
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
\`\`\`
|
|
106
|
-
`}},88659:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.message=t.code=void 0,t.code="E1002",t.message={code:t.code,title:"Default Import Check",type:"markdown",category:"compile",description:`
|
|
107
|
-
#### Description
|
|
108
|
-
|
|
109
|
-
Usually webpack will automatically compatible different modules that has different types, but in a special case, the operation of compatibility will fail.
|
|
110
|
-
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 = \`.
|
|
111
|
-
|
|
112
|
-
#### General Solution
|
|
113
|
-
|
|
114
|
-
1. for cjs module, write a \`exports.default = \` statement for default export.
|
|
115
|
-
2. use \`Namespace Import\` for import the cjs module.
|
|
116
|
-
|
|
117
|
-
For example, for the package \`htmlparser2@7.2.0\`:
|
|
118
|
-
|
|
119
|
-
\`\`\`ts
|
|
120
|
-
// you should use this
|
|
121
|
-
import * as Parser from 'htmlparser2';
|
|
122
|
-
|
|
123
|
-
// can not use this
|
|
124
|
-
import Parser from 'htmlparser2';
|
|
125
|
-
\`\`\`
|
|
126
|
-
`}},46580:function(e,t){"use strict";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:`
|
|
127
|
-
#### Description
|
|
128
|
-
|
|
129
|
-
Usually the slow compile of most projects is due to the slow execution of the loaders.
|
|
130
|
-
|
|
131
|
-
And the loaders always pre-process many unnecessary files, such as \`node_modules files\` and \`already compiled files\`.
|
|
132
|
-
|
|
133
|
-
#### General Solution
|
|
134
|
-
|
|
135
|
-
Set \`exclude\` to the \`module.rules\` of webpack configuration for target loader.
|
|
136
|
-
|
|
137
|
-
For example, if \`node_modules/lodash\` is processed by the \`babel-loader\` that make the compile slowly:
|
|
138
|
-
|
|
139
|
-
\`\`\`
|
|
140
|
-
{
|
|
141
|
-
module: {
|
|
142
|
-
rules: [
|
|
143
|
-
{
|
|
144
|
-
test: /\\.js$/,
|
|
145
|
-
use: 'babel-loader',
|
|
146
|
-
exclude: [
|
|
147
|
-
/node_modules\\/lodash/
|
|
148
|
-
]
|
|
149
|
-
}
|
|
150
|
-
]
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
\`\`\`
|
|
154
|
-
`}},58686:function(e,t){"use strict";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:`
|
|
155
|
-
#### Description
|
|
156
|
-
|
|
157
|
-
Detect if there is a newer version of ECMA syntax in the js bundle file
|
|
158
|
-
`}},43450:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return s(t,e),t},a=this&&this.__exportStar||function(e,t){for(var n in e)"default"!==n&&!Object.prototype.hasOwnProperty.call(t,n)&&i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.RsdoctorRuleClientConstant=t.RuleErrorMap=void 0;let l=o(n(5312)),d=o(n(88659)),u=o(n(46580)),c=o(n(58686));t.RuleErrorMap={[l.code]:l.message,[d.code]:d.message,[u.code]:u.message,[c.code]:c.message},(r||(t.RsdoctorRuleClientConstant=r={})).UrlQueryForErrorCode="code",a(n(22552),t)},22552:function(e,t){"use strict";var n,r,i,s;Object.defineProperty(t,"__esModule",{value:!0}),t.RuleMessageCategory=t.RuleMessageCodeEnumerated=void 0,(i=n||(t.RuleMessageCodeEnumerated=n={})).Extend="EXTEND",i.Overlay="OVERLAY",(s=r||(t.RuleMessageCategory=r={})).Compile="compile",s.Bundle="bundle",s.EMO="emo"},83014:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},30518:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"!==n&&!Object.prototype.hasOwnProperty.call(t,n)&&r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(43450),t),i(n(83014),t)},23012:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},83033:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},62353:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},76532:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},19753:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2167:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"!==n&&!Object.prototype.hasOwnProperty.call(t,n)&&r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(48051),t),i(n(58615),t),i(n(82635),t),i(n(89258),t),i(n(23012),t),i(n(99342),t),i(n(62757),t),i(n(66596),t),i(n(62353),t),i(n(83033),t),i(n(18377),t),i(n(64420),t),i(n(46147),t),i(n(76532),t),i(n(12674),t),i(n(19753),t)},12674:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.IMode=void 0,(r=n||(t.IMode=n={}))[r.brief=0]="brief",r[r.lite=1]="lite",r[r.normal=2]="normal"},48051:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},89258:function(e,t){"use strict";var n,r,i,s,o,a;Object.defineProperty(t,"__esModule",{value:!0}),t.ToDataType=t.ModuleKind=t.DependencyKind=void 0,(s=n||(t.DependencyKind=n={}))[s.Unknown=0]="Unknown",s[s.ImportStatement=1]="ImportStatement",s[s.DynamicImport=2]="DynamicImport",s[s.RequireCall=3]="RequireCall",s[s.AMDRequire=4]="AMDRequire",(o=r||(t.ModuleKind=r={}))[o.Normal=0]="Normal",o[o.Concatenation=1]="Concatenation",(a=i||(t.ToDataType=i={}))[a.NoCode=0]="NoCode",a[a.Normal=1]="Normal",a[a.NoSource=2]="NoSource",a[a.NoSourceAndAssets=3]="NoSourceAndAssets",a[a.All=4]="All"},66596:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},82635:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},58615:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},99342:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},43866:function(e,t,n){"use strict";var r,i,s,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"!==n&&!Object.prototype.hasOwnProperty.call(t,n)&&o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.APIExtends=t.API=void 0,a(n(50028),t),(r=i||(t.API=i={})).ApplyErrorFix="/api/apply/error/fix",r.Env="/api/env",r.EntryHtml="/index.html",r.Manifest="/api/manifest.json",r.LoadDataByKey="/api/data/key",r.SendAPIDataToClient="/api/socket/send",r.GetProjectInfo="/api/project/info",r.GetClientRoutes="/api/routes",r.ReportLoader="/api/loader/report",r.GetLoaderNames="/api/loader/names",r.GetLoaderChartData="/api/loader/chart/data",r.GetLoaderFileTree="/api/loader/filetree",r.GetLoaderFileDetails="/api/loader/file",r.GetLoaderFolderStatistics="/api/loader/folder/statics",r.GetLoaderFileFirstInput="/api/loader/input",r.GetLoaderFileInputAndOutput="/api/loader/inputandoutput",r.ReportSourceMap="/api/sourcemap/report",r.GetResolverFileTree="/api/resolver/filetree",r.GetResolverFileDetails="/api/resolver/file",r.GetPluginSummary="/api/plugins/summary",r.GetPluginData="/api/plugins/data",r.GetAssetsSummary="/api/graph/assets/summary",r.GetAssetDetails="/api/graph/asset/details",r.GetChunksByModuleId="/api/graph/chunk/module",r.GetModuleDetails="/api/graph/module/details",r.GetModulesByModuleIds="/api/graph/modules/ids",r.GetEntryPoints="/api/graph/entrypoints",r.GetModuleCodeByModuleId="/api/graph/module/code",r.GetModuleCodeByModuleIds="/api/graph/module/codes",r.GetAllModuleGraph="/api/graph/module/all",r.GetAllChunkGraph="/api/graph/chunk/all",r.GetPackageRelationAlertDetails="/api/alerts/details/package/relation",r.GetOverlayAlerts="/api/alerts/overlay",r.BundleDiffManifest="/api/bundle_diff/manifest.json",r.GetBundleDiffSummary="/api/bundle_diff/summary",r.GetTileReportHtml="/api/tile/report",(s||(t.APIExtends=s={})).GetCompileProgess="/api/progress"},50028:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},18377:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ServerAPI=void 0,t.ServerAPI=s(n(43866))},64420:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.StatementKind=void 0,(r=n||(t.StatementKind=n={}))[r.ImportDefault=100]="ImportDefault",r[r.ImportNamed=101]="ImportNamed",r[r.ImportDefaultWithNamed=102]="ImportDefaultWithNamed",r[r.ImportDefaultWithNamespace=103]="ImportDefaultWithNamespace",r[r.ImportNamespace=104]="ImportNamespace",r[r.ImportSideEffect=105]="ImportSideEffect",r[r.ImportDynamic=106]="ImportDynamic",r[r.ExportDeclaration=200]="ExportDeclaration",r[r.ExportList=201]="ExportList",r[r.ExportDefault=202]="ExportDefault",r[r.ExportAggregating=203]="ExportAggregating",r[r.ExportNamespace=204]="ExportNamespace",r[r.RequireCall=300]="RequireCall",r[r.RequireName=301]="RequireName",r[r.RequireExports=302]="RequireExports",r[r.RequireExportAggregating=303]="RequireExportAggregating",r[r.RequireExportName=304]="RequireExportName",r[r.Unknown=999]="Unknown"},62757:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},46147:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},11549:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},56997:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});var r=n(77410);function i(e,t,n,i,s){return i.slice().reverse().map(i=>{let o=t.find(e=>e.id===i.dependencyId);if(!o)return null;let a=e.find(e=>e.id===o.module);return a?{group:i.group,module:a,dependency:o,relativePath:(0,r.relative)(n,a.path),moduleCode:s?.[a.id]}:null}).filter(Boolean)}},32662:function(e,t,n){"use strict";n.d(t,{AV:function(){return o},ln:function(){return s}});var r=n(62802),i=n(57861);function s(e){let t,n;e.sort((e,t)=>e[0]-t[0]);let r=[];for(let i=0;i<e.length;i++)n=e[i],!t||n[0]>t[1]?(t=n,r.push(n)):t[1]=Math.max(t[1],n[1]);return r}function o(e){return(0,r.inflateSync)(i.Buffer.from(e,"base64")).toString()}},89896:function(e,t,n){"use strict";n(78741)},96270:function(e,t,n){"use strict";n.d(t,{D:function(){return d}});var r=n(78741),i=n(99522),s=n(73225),o=n(23150),a=n(66183),l=n(56997);class d{constructor(e){this.loader=e,this.loadAPI=this.loadAPI.bind(this)}log(...e){console.log(`[${this.constructor.name}]`,...e)}loadAPI(...e){let[t,n]=e;switch(t){case r.SDK.ServerAPI.API.LoadDataByKey:return this.loader.loadData(n.key);case r.SDK.ServerAPI.API.GetProjectInfo:return Promise.all([this.loader.loadData("root"),this.loader.loadData("pid"),this.loader.loadData("hash"),this.loader.loadData("summary"),this.loader.loadData("configs"),this.loader.loadData("envinfo"),this.loader.loadData("errors")]).then(([e,t,n,r,i,s,o])=>({root:e,pid:t,hash:n,summary:r,configs:i,envinfo:s,errors:o}));case r.SDK.ServerAPI.API.GetClientRoutes:if("undefined"!=typeof window&&window?.[r.Constants.WINDOW_RSDOCTOR_TAG])return window[r.Constants.WINDOW_RSDOCTOR_TAG].enableRoutes;return this.loader.loadManifest().then(e=>{let{enableRoutes:t=[]}=e.client||{};return t});case r.SDK.ServerAPI.API.GetLoaderNames:return this.loader.loadData("loader").then(e=>i.getLoaderNames(e||[]));case r.SDK.ServerAPI.API.GetLoaderChartData:return this.loader.loadData("loader").then(e=>i.getLoaderChartData(e||[]));case r.SDK.ServerAPI.API.GetLoaderFileTree:return this.loader.loadData("loader").then(e=>i.getLoaderFileTree(e||[]));case r.SDK.ServerAPI.API.GetLoaderFileDetails:return this.loader.loadData("loader").then(e=>i.getLoaderFileDetails(n.path,e||[]));case r.SDK.ServerAPI.API.GetLoaderFolderStatistics:return this.loader.loadData("loader").then(e=>i.getLoaderFolderStatistics(n.folder,e||[]));case r.SDK.ServerAPI.API.GetLoaderFileFirstInput:return this.loader.loadData("loader").then(e=>i.getLoaderFileFirstInput(n.file,e||[]));case r.SDK.ServerAPI.API.GetLoaderFileInputAndOutput:return this.loader.loadData("loader").then(e=>i.getLoaderFileFirstInput(n.file,e||[]));case r.SDK.ServerAPI.API.GetResolverFileTree:return this.loader.loadData("resolver").then(e=>s.zD(e||[]));case r.SDK.ServerAPI.API.GetResolverFileDetails:return Promise.all([this.loader.loadData("resolver"),this.loader.loadData("moduleGraph.modules"),this.loader.loadData("moduleCodeMap")]).then(e=>{let t=e[0],r=e[1],i=e[2];return s.yj(n.filepath,t||[],r||[],i||{})});case r.SDK.ServerAPI.API.GetPluginSummary:return this.loader.loadData("plugin").then(e=>o.Qj(e||{}));case r.SDK.ServerAPI.API.GetPluginData:return this.loader.loadData("plugin").then(e=>{let{hooks:t,tapNames:r}=n;return o.xN(e||{},t,r)});case r.SDK.ServerAPI.API.GetAssetsSummary:return this.loader.loadData("chunkGraph").then(e=>{let{withFileContent:t=!0}=n,{assets:r=[],chunks:i=[]}=e||{};return a.zU(r,i,{withFileContent:t})});case r.SDK.ServerAPI.API.GetAssetDetails:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph")]).then(e=>{let{assetPath:t}=n,{assets:r=[],chunks:i=[]}=e[0]||{},{modules:s=[]}=e[1]||{};return a.uI(t,r,i,s)});case r.SDK.ServerAPI.API.GetChunksByModuleId:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph")]).then(e=>{let{moduleId:t}=n,{chunks:r=[]}=e[0]||{},{modules:i=[]}=e[1]||{};return a.mh(t,i,r)});case r.SDK.ServerAPI.API.GetModuleDetails:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph")]).then(e=>{let{moduleId:t}=n,{modules:r=[],dependencies:i=[]}=e[1]||{};return a.gQ(t,r,i)});case r.SDK.ServerAPI.API.GetModulesByModuleIds:return this.loader.loadData("moduleGraph").then(e=>{let{moduleIds:t}=n,{modules:r=[]}=e||{};return a.Il(t,r)});case r.SDK.ServerAPI.API.GetEntryPoints:return Promise.all([this.loader.loadData("chunkGraph")]).then(e=>{let[t]=e,{entrypoints:n=[]}=t||{};return a.HM(n)});case r.SDK.ServerAPI.API.GetModuleCodeByModuleId:return this.loader.loadData("moduleCodeMap").then(e=>{let{moduleId:t}=n;return e?e[t]:{source:"",transformed:"",parsedSource:""}});case r.SDK.ServerAPI.API.GetModuleCodeByModuleIds:return this.loader.loadData("moduleCodeMap").then(e=>{let{moduleIds:t}=n,r={};return e?(t.forEach(t=>{r[t]=e[t]}),r):[]});case r.SDK.ServerAPI.API.GetAllModuleGraph:return this.loader.loadData("moduleGraph").then(e=>e?.modules);case r.SDK.ServerAPI.API.GetAllChunkGraph:return this.loader.loadData("chunkGraph").then(e=>e?.chunks);case r.SDK.ServerAPI.API.GetPackageRelationAlertDetails:return Promise.all([this.loader.loadData("moduleGraph"),this.loader.loadData("errors"),this.loader.loadData("root"),this.loader.loadData("moduleCodeMap")]).then(e=>{let{id:t,target:r}=n,[i,s=[],o="",a]=e,{modules:d=[],dependencies:u=[]}=i||{},{packages:c=[]}=s.find(e=>e.id===t)||{},{dependencies:h=[]}=c.find(e=>e.target.name===r.name&&e.target.root===r.root&&e.target.version===r.version)||{};return l.J(d,u,o,h,a||{})});case r.SDK.ServerAPI.API.GetOverlayAlerts:return this.loader.loadData("errors").then(e=>(e||[]).filter(e=>e.code===r.Rule.RuleMessageCodeEnumerated.Overlay));case r.SDK.ServerAPI.API.BundleDiffManifest:return this.loader.loadManifest();case r.SDK.ServerAPI.API.GetBundleDiffSummary:return Promise.all([this.loader.loadManifest(),this.loader.loadData("root"),this.loader.loadData("hash"),this.loader.loadData("errors"),this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph"),this.loader.loadData("moduleCodeMap"),this.loader.loadData("packageGraph"),this.loader.loadData("configs")]).then(([e,t="",n="",r={},i={},s={},o={},a={},l=[]])=>{let d="";return"string"==typeof l[0]?.config?.output?.chunkFilename&&(d=l[0]?.config.output.chunkFilename),{root:t,hash:n,errors:r,chunkGraph:i,moduleGraph:s,packageGraph:a,outputFilename:d,moduleCodeMap:o}});case r.SDK.ServerAPI.API.GetTileReportHtml:return this.loader.loadData("otherReports").then(e=>e?.tileReportHtml);default:throw Error(`API not implement: "${t}"`)}}}},266:function(e,t,n){"use strict";n.d(t,{uI:function(){return f},zU:function(){return h}});var r=n(78741),i=n(37610),s=n(44176);function o(e,t){return e.path.slice(-t.length)===t}function a(e,t){return!!t.length&&t.some(t=>o(e,t))}RegExp(`(.*)${/[-|.]/.source}${/[a-z|A-Z|0-9]{4,32}/.source}(${/(?:\.[a-z|A-Z|0-9]{2,}){1,}/.source})$`);function l(e,t){if(t){if("function"==typeof t)e=e.filter(t);else{var n,r;n=e,e="string"==typeof(r=t)?n.filter(e=>o(e,r)):Array.isArray(r)?n.filter(e=>a(e,r)):[]}}return e}function d(e,t,n={}){let{withFileContent:i=!0,filterOrExtensions:s}=n;return(e=e.filter(e=>!a(e,r.Constants.MapExtensions)),s&&(e=l(e,s)),e.length)?{count:e.length,size:e.reduce((e,t)=>e+t.size,0),files:e.map(e=>({path:e.path,size:e.size,initial:u(e,t),content:i?e.content:void 0}))}:{count:0,size:0,files:[]}}function u(e,t){return(0,i.qb)(e,t).some(e=>!!e.initial)}function c(e,t,n={}){return n.filterOrExtensions&&(e=l(e,n.filterOrExtensions)),d(e,t,{...n,filterOrExtensions:e=>u(e,t)})}function h(e,t,n={}){let i={...n,filterOrExtensions:r.Constants.JSExtension},s={...n,filterOrExtensions:r.Constants.CSSExtension},o={...n,filterOrExtensions:r.Constants.ImgExtensions},l={...n,filterOrExtensions:r.Constants.HtmlExtension},u={...n,filterOrExtensions:r.Constants.MediaExtensions},h={...n,filterOrExtensions:r.Constants.FontExtensions},f={...n,filterOrExtensions:e=>!a(e,[r.Constants.JSExtension,r.Constants.CSSExtension,r.Constants.HtmlExtension].concat(r.Constants.ImgExtensions,r.Constants.MediaExtensions,r.Constants.FontExtensions,r.Constants.MapExtensions))};return{all:{total:d(e,t,n)},js:{total:d(e,t,i),initial:c(e,t,i)},css:{total:d(e,t,s),initial:c(e,t,s)},imgs:{total:d(e,t,o)},html:{total:d(e,t,l)},media:{total:d(e,t,u)},fonts:{total:d(e,t,h)},others:{total:d(e,t,f)}}}function f(e,t,n,r){let o=t.find(t=>t.path===e);return{asset:o,chunks:(0,i.qb)(o,n),modules:(0,s.hq)(o,n,r)}}},37610:function(e,t,n){"use strict";function r(e){return e.chunks?e.chunks:[]}n.d(t,{mh:function(){return o},qb:function(){return s},un:function(){return i},xy:function(){return r}});function i(e,t){return e.length?e.map(e=>{var n;return n=e,t.find(e=>e.id===n)}).filter(Boolean):[]}function s(e,t){return i(r(e),t)}function o(e,t,n){var r,s;let o=t.find(t=>t.id===e);if(!o)return[];return r=o,s=n,r.chunks.length?i(r.chunks,s):[]}},30035:function(e,t,n){"use strict";function r(e,t){return e.dependencies.map(e=>t.find(t=>t.id===e)).filter(Boolean)}n.d(t,{RV:function(){return r}})},44350:function(e,t,n){"use strict";function r(e){return e}n.d(t,{H:function(){return r}})},66183:function(e,t,n){"use strict";n.d(t,{HM:function(){return o.H},Il:function(){return s.Il},gQ:function(){return s.gQ},mh:function(){return i.mh},uI:function(){return r.uI},zU:function(){return r.zU}});var r=n(266),i=n(37610),s=n(44176),o=n(44350)},44176:function(e,t,n){"use strict";n.d(t,{Il:function(){return o},gQ:function(){return a},hq:function(){return s}});var r=n(37610),i=n(30035);function s(e,t,n){let i=(0,r.xy)(e);return function(e,t){let n=[];return e.forEach(e=>{var r,i;(r=e,i=t,(function(e){let{modules:t=[]}=e;return t})(r).map(e=>i.find(t=>t.id===e)).filter(Boolean)).forEach(e=>{!n.filter(t=>t.id===e.id).length&&n.push(e)})}),n}((0,r.un)(i,t),n)}function o(e,t){return e.map(e=>t.find(t=>t.id===e)).filter(Boolean)}function a(e,t,n){let r=t.find(t=>t.id===e);return{module:r,dependencies:(0,i.RV)(r,n)}}},46641:function(e,t,n){"use strict";n.d(t,{ER:function(){return r},Gp:function(){return i},H2:function(){return l},R9:function(){return d},Vw:function(){return u},aN:function(){return s},k1:function(){return a},qp:function(){return o}});var r=n(79610),i=n(96528),s=n(99522),o=n(14399),a=n(32662),l=n(73225);n(66183),n(89896);var d=n(30514),u=n(96270);n(56997),n(52352)},99522:function(e,t,n){"use strict";n.r(t),n.d(t,{LoaderInternalPropertyName:function(){return m},findLoaderTotalTiming:function(){return i},getLoaderChartData:function(){return d},getLoaderCosts:function(){return o},getLoaderFileDetails:function(){return c},getLoaderFileFirstInput:function(){return f},getLoaderFileInputAndOutput:function(){return p},getLoaderFileTree:function(){return u},getLoaderFolderStatistics:function(){return h},getLoaderNames:function(){return a},getLoadersCosts:function(){return s},getLoadersTransformData:function(){return l},isVue:function(){return x}});var r=n(32662);function i(e){let t=1/0,n=-1/0;for(let r=0;r<e.length;r++){let i=e[r];i.startAt<=t&&(t=i.startAt),i.endAt>=n&&(n=i.endAt)}return{start:t,end:n}}function s(e,t){let n={},i={};t.forEach(t=>{e(t)?(!n[t.pid]&&(n[t.pid]=[]),n[t.pid].push([t.startAt,t.endAt])):(!i[t.pid]&&(i[t.pid]=[]),i[t.pid].push([t.startAt,t.endAt]))});let s=0,o=Object.keys(n);for(let e=0;e<o.length;e++){let t=o[e],a=(0,r.ln)(n[t]),l=(0,r.ln)(i[t]||[]).filter(([e,t])=>a.some(n=>e>=n[0]&&t<=n[1])),d=a.length?a.reduce((e,t)=>e+=t[1]-t[0],0):0;s+=d-(l.length?l.reduce((e,t)=>e+=t[1]-t[0],0):0)}return s}function o(e,t){let n=t.filter(t=>t!==e&&t.pid===e.pid&&!!(t.startAt>=e.startAt)&&!!(t.endAt<=e.endAt)||!1),i=e.endAt-e.startAt;if(n.length){let t=n.map(t=>[Math.max(t.startAt,e.startAt),Math.min(t.endAt,e.endAt)]);(0,r.ln)(t).forEach(e=>{let t=e[1]-e[0];i-=t})}return i}function a(e){let t=new Set;return e.forEach(e=>e.loaders.forEach(e=>t.add(e.loader))),[...t]}function l(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(let e=0;e<r.loaders.length;e++){let n=r.loaders[e];t.push(n)}}return t}function d(e){let t=[],n=l(e);return e.forEach(e=>{e.loaders.forEach(r=>{t.push({loader:r.loader,isPitch:r.isPitch,startAt:r.startAt,endAt:r.endAt,pid:r.pid,sync:r.sync,resource:e.resource.path,costs:o(r,n)})})}),t}function u(e){let t=l(e);return e.map(e=>{let{loaders:n,resource:r}=e;return{path:r.path,loaders:n.map(e=>({loader:e.loader,path:e.path,errors:e.errors,costs:o(e,t)}))}})}function c(e,t){let n=t.find(t=>t.resource.path===e);if(!n)throw Error(`"${e}" not match any loader data`);let r=l(t);return{...n,loaders:n.loaders.map(e=>({...e,costs:o(e,r)}))}}function h(e,t){let n=t.filter(t=>{let{path:n}=t.resource;return n.startsWith(e)}),r=l(t);return n.reduce((e,t)=>{let{loaders:n}=t;return n.forEach(t=>{let n=e.find(e=>e.loader===t.loader),i=o(t,r);n?(n.files++,n.costs+=i):e.push({loader:t.loader,path:t.path,files:1,costs:i})}),e},[])}function f(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(r.resource.path===e){let e=r.loaders.filter(e=>!e.isPitch);if(!e.length)return"";return e[0].input||""}}return""}function p(e,t,n,r){for(let i=0;i<r.length;i++){let s=r[i];if(s.resource.path===e)for(let e=0;e<s.loaders.length;e++){let r=s.loaders[e];if(r.loader===t&&r.loaderIndex===n)return{input:r.input||"",output:r.result||""};return{input:"",output:""}}}return{input:"",output:""}}let m="__l__",x=e=>("module"in e.options&&e.options.module.rules||[]).some(e=>!!(e&&"object"==typeof e&&e.test instanceof RegExp&&e.test?.test(".vue"))||!1)},96528:function(e,t,n){"use strict";n.d(t,{j8:function(){return s},om:function(){return o}});var r=n(32662),i=n(30514);function s(e){return!!(Array.isArray(e)&&e.length>0&&e.every(e=>(0,i.cW)(e)))||!1}async function o(e,t){let n=await Promise.all(e.map(e=>t(e))),i=0===n.length?[]:n.reduce((e,t)=>e+t);return"object"==typeof i?i:JSON.parse((0,r.AV)(i))}},52352:function(e,t,n){"use strict";n(39378);let r=/[a-zA-Z0-9]+(?:[-|_|.]+[a-zA-Z0-9]+)*/;RegExp(`(?:${/(?:node_modules|~)(?:\/\.pnpm)?/.source}/)(?:(?:@${r.source}[/|+])?(?:${r.source}\\+)*(?:${r.source})(?:${/@[\w|\-|_|.]+/.source})?)(?:_(?:@${r.source}[/|+])?(?:${r.source})(?:@${r.source})?)*/`,"g")},23150:function(e,t,n){"use strict";function r(e){return Object.keys(e)}function i(e){let t=r(e),n=new Set;return t.forEach(t=>{e[t].forEach(e=>{n.add(e.tapName)})}),[...n]}function s(e){return{hooks:r(e),tapNames:i(e)}}function o(e,t=[],n=[]){let s=r(e).filter(e=>(!t.length||-1!==t.indexOf(e))&&!0);return s.length?i(e).reduce((t,r)=>n.length&&-1===n.indexOf(r)?t:(s.forEach(n=>{let i=e[n].filter(e=>e.tapName===r);0!==i.length&&t.push({tapName:r,hook:n,data:i.map(e=>({startAt:e.startAt,endAt:e.endAt,costs:e.costs,type:e.type}))})}),t),[]):[]}n.d(t,{Qj:function(){return s},xN:function(){return o}})},73225:function(e,t,n){"use strict";n.d(t,{Q4:function(){return i},yj:function(){return o},zD:function(){return s}});var r=n(32662);function i(e){return!!e.result}function s(e){return e.map(e=>({issuerPath:e.issuerPath}))}function o(e,t,n,s){let o=n.find(t=>t.path===e),a=t.filter(t=>t.issuerPath===e),l=o&&s&&s[o.id]?s[o.id].source:"",d=a.reduce((e,t)=>t.request&&i(t)?e.replace(RegExp(`["']${t.request}["']`),`"${t.result}"`):e,l);return{filepath:e,before:l,after:d,resolvers:a.map(e=>({...e,costs:function(e,t){let n=t.filter(t=>t!==e&&t.pid===e.pid&&t.startAt>=e.startAt&&t.endAt<=e.endAt),i=e.endAt-e.startAt;if(n.length){let t=n.map(t=>[Math.max(t.startAt,e.startAt),Math.min(t.endAt,e.endAt)]);(0,r.ln)(t).forEach(e=>{let t=e[1]-e[0];i-=t})}return i}(e,t)}))}}},79610:function(e,t,n){"use strict";n.d(t,{M:function(){return i}});var r,i=((r=i||{}).Bootstrap="bootstrap->beforeCompile",r.Compile="beforeCompile->afterCompile",r.Done="afterCompile->done",r.Minify="minify(webpack4:optimizeChunkAssets|webpack5:processAssets|rspack:processAssets)",r)},14399:function(e,t,n){"use strict";n.r(t),n.d(t,{formatCosts:function(){return a},getCurrentTimestamp:function(){return l},getUnit:function(){return o},toFixedDigits:function(){return s}});var r=n(73656),i=n(73656);function s(e,t=2){return 0===t?Math.floor(e):+e.toFixed(t)}function o(e,t){let n;return n="m"===t?e>1?"mins":"min":e>1?"hours":"hour"}function a(e){if((e=Number(e))>=1e3){let t=e/1e3;if(t>=60){let e=t/60;if(e>=60){let t=s(e/60,0),n=s(e%60,1),r=o(t,"h");return n>0?`${t}${r} ${n}${o(n,"m")}`:`${t}${r}`}let n=o(e=s(e,0),"m"),r=s(t%60,0);return r>0?`${e}${n} ${r}s`:`${e}${n}`}return`${s(t,1)}s`}if(e>=10)return`${+s(e,0)}ms`;if(e>=1)return`${+s(e,1)}ms`;let t=+s(e,2);return 0===t&&(t=+s(e,3)),`${t}ms`}function l(e,t){let n=(0,r.hrtime)(t);return e+1e3*n[0]+(i.env.VITEST?Math.round(n[1]/1e6):n[1]/1e6)}},30514:function(e,t,n){"use strict";n.d(t,{CB:function(){return i},cW:function(){return s}});var r=n(77410);function i(e){return/^https?:\/\//.test(e)}function s(e){if("string"==typeof e){var t;if(i(e)||(t=e,(0,r.isAbsolute)(t)))return!0}return!1}},71015:function(e,t,n){"use strict";n(96386),n(39378)},47665:function(e,t,n){"use strict";n(71015);var r=n(52901);n.o(r,"ECMAVersion")&&n.d(t,{ECMAVersion:function(){return r.ECMAVersion}}),n(19263)},19263:function(e,t,n){"use strict";n(71015)},52901:function(){},79381:function(e,t,n){"use strict";n.d(t,{ECMAVersion:function(){return i.Wc}});var r=n(47665);n.o(r,"ECMAVersion")&&n.d(t,{ECMAVersion:function(){return r.ECMAVersion}});var i=n(77383)},9964:function(e,t,n){"use strict";n.d(t,{K:function(){return o}});var r=n(39378);function i(e){return(0,r.isObject)(e)&&"type"in e}function s(e){return t=>i(t)&&t.type===e}let o={isProgram:s("Program"),isEmptyStatement:s("EmptyStatement"),isBlockStatement:s("BlockStatement"),isStaticBlock:s("StaticBlock"),isExpressionStatement:s("ExpressionStatement"),isIfStatement:s("IfStatement"),isLabeledStatement:s("LabeledStatement"),isBreakStatement:s("BreakStatement"),isContinueStatement:s("ContinueStatement"),isWithStatement:s("WithStatement"),isSwitchStatement:s("SwitchStatement"),isReturnStatement:s("ReturnStatement"),isThrowStatement:s("ThrowStatement"),isTryStatement:s("TryStatement"),isWhileStatement:s("WhileStatement"),isDoWhileStatement:s("DoWhileStatement"),isForStatement:s("ForStatement"),isForInStatement:s("ForInStatement"),isForOfStatement:s("ForOfStatement"),isDebuggerStatement:s("DebuggerStatement"),isFunctionDeclaration:s("FunctionDeclaration"),isVariableDeclaration:s("VariableDeclaration"),isVariableDeclarator:s("VariableDeclarator"),isChainExpression:s("ChainExpression"),isThisExpression:s("ThisExpression"),isArrayExpression:s("ArrayExpression"),isObjectExpression:s("ObjectExpression"),isPrivateIdentifier:s("PrivateIdentifier"),isProperty:s("Property"),isPropertyDefinition:s("PropertyDefinition"),isFunctionExpression:s("FunctionExpression"),isSequenceExpression:s("SequenceExpression"),isUnaryExpression:s("UnaryExpression"),isBinaryExpression:s("BinaryExpression"),isAssignmentExpression:s("AssignmentExpression"),isUpdateExpression:s("UpdateExpression"),isLogicalExpression:s("LogicalExpression"),isConditionalExpression:s("ConditionalExpression"),isNewExpression:s("NewExpression"),isSwitchCase:s("SwitchCase"),isCatchClause:s("CatchClause"),isIdentifier:s("Identifier"),isLiteral:s("Literal"),isSuper:s("Super"),isSpreadElement:s("SpreadElement"),isArrowFunctionExpression:s("ArrowFunctionExpression"),isYieldExpression:s("YieldExpression"),isTemplateLiteral:s("TemplateLiteral"),isTaggedTemplateExpression:s("TaggedTemplateExpression"),isTemplateElement:s("TemplateElement"),isObjectPattern:s("ObjectPattern"),isArrayPattern:s("ArrayPattern"),isRestElement:s("RestElement"),isAssignmentPattern:s("AssignmentPattern"),isClassBody:s("ClassBody"),isClassDeclaration:s("ClassDeclaration"),isClassExpression:s("ClassExpression"),isMetaProperty:s("MetaProperty"),isImportDeclaration:s("ImportDeclaration"),isImportSpecifier:s("ImportSpecifier"),isImportExpression:s("ImportExpression"),isImportDefaultSpecifier:s("ImportDefaultSpecifier"),isImportNamespaceSpecifier:s("ImportNamespaceSpecifier"),isExportNamedDeclaration:s("ExportNamedDeclaration"),isExportSpecifier:s("ExportSpecifier"),isExportDefaultDeclaration:s("ExportDefaultDeclaration"),isExportAllDeclaration:s("ExportAllDeclaration"),isAwaitExpression:s("AwaitExpression"),isMethodDefinition:s("MethodDefinition"),isMemberExpression:s("MemberExpression"),isComment:e=>i(e)&&("Line"===e.type||"Block"===e.type),isDirective:e=>o.isExpressionStatement(e)&&"directive"in e,isSimpleCallExpression:e=>i(e)&&"CallExpression"===e.type,isAssignmentProperty:e=>o.isProperty(e)&&"init"===e.kind,isSimpleLiteral:e=>o.isLiteral(e)&&!o.isRegExpLiteral(e)&&!o.isBigIntLiteral(e),isRegExpLiteral:e=>o.isLiteral(e)&&"regex"in e,isBigIntLiteral:e=>o.isLiteral(e)&&"bigint"in e,isExportStatement:e=>o.isExportAllDeclaration(e)||o.isExportDefaultDeclaration(e)||o.isExportNamedDeclaration(e)}},77383:function(e,t,n){"use strict";n.d(t,{Wc:function(){return r.W}}),n(9964),n(90042),n(23396);var r=n(94683)},90042:function(e,t,n){"use strict";var r=n(56856),i=n(50795);n(30504),n(9964),n(23396),r.Parser.extend(i.X),r.Parser.extend(i.X)},94683:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r,i=((r=i||{}).ES5="ES5",r.ES6="ES6",r.ES7P="ES7+",r)},23396:function(e,t,n){"use strict";n.r(t),n.d(t,{canParse:function(){return c},detectECMAVersion:function(){return p},getDefaultImports:function(){return o},getIdentifierInDeclaration:function(){return l},getIdentifierInExport:function(){return u},getIdentifierInImport:function(){return d},getIdentifierInPattern:function(){return a},isES5:function(){return h},isES6:function(){return f},isSameSemantics:function(){return function e(t,n){if(t.type!==n.type)return!1;switch(t.type){case"CallExpression":return t.arguments.length===n.arguments.length&&!!t.optional==!!n.optional&&e(t.callee,n.callee)&&t.arguments.every((t,r)=>e(t,n.arguments[r]));case"MemberExpression":return t.computed===n.computed&&!!t.optional==!!n.optional&&e(t.object,n.object)&&e(t.property,n.property);case"Identifier":return t.name===n.name;case"Literal":if(s.K.isSimpleLiteral(t)&&s.K.isSimpleLiteral(n))return t.value===n.value;return t.raw===n.raw;case"ObjectExpression":return t.properties.length===n.properties.length&&t.properties.every((t,r)=>e(t,n.properties[r]));case"Property":return t.computed===n.computed&&t.kind===n.kind&&t.method===n.method&&e(t.key,n.key)&&e(t.value,n.value);default:throw Error(`Unknown node type: ${t.type}`)}}}});var r=n(56856),i=n(94683),s=n(9964);function o(e){return e.body.filter(e=>{if("ImportDeclaration"!==e.type)return!1;let t=e?.specifiers?.[0];return t?.type==="ImportDefaultSpecifier"||!1})}function a(e,t){if(s.K.isIdentifier(t)&&t.name===e)return t;if(s.K.isObjectPattern(t))for(let n of t.properties){if(s.K.isAssignmentProperty(n))return a(e,n.value);if(s.K.isRestElement(n))return a(e,n)}if(s.K.isArrayPattern(t)){for(let n of t.elements)if(n){let t=a(e,n);if(t)return t}}return s.K.isRestElement(t)?a(e,t.argument):s.K.isAssignmentPattern(t)?a(e,t.left):void 0}function l(e,t){function n(t){return s.K.isIdentifier(t.id)&&t.id.name===e?t.id:void 0}return s.K.isFunctionDeclaration(t)||s.K.isClassDeclaration(t)?n(t):s.K.isVariableDeclaration(t)?t.declarations.find(t=>a(e,t.id))?.id:void 0}function d(e,t){if(s.K.isImportDeclaration(t)){for(let n of t.specifiers??[])if(n.local.name===e)return n.local}}function u(e,t){if(s.K.isExportNamedDeclaration(t)){if(t.declaration)return l(e,t.declaration);for(let n of t.specifiers??[])if(n.exported.name===e)return n.exported}if(s.K.isExportAllDeclaration(t)&&t.exported&&t.exported.name===e)return t.exported}function c(e,t){try{return(0,r.parse)(e,{ecmaVersion:t,sourceType:"number"==typeof t&&t<=5?"script":"module"}),!0}catch(e){return!1}}function h(e){return c(e,5)}function f(e){return c(e,6)}function p(e){if(f(e))return h(e)?i.W.ES5:i.W.ES6;return i.W.ES7P}},39504:function(e){"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDQ4IDQ4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik01IDI0TDQzIDI0IiBzdHJva2U9IiMzMzMiIHN0cm9rZS13aWR0aD0iNCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PHBhdGggZD0iTTI4IDRIMjBDMTguODk1NCA0IDE4IDQuODk1NDMgMTggNlYxNEMxOCAxNS4xMDQ2IDE4Ljg5NTQgMTYgMjAgMTZIMjhDMjkuMTA0NiAxNiAzMCAxNS4xMDQ2IDMwIDE0VjZDMzAgNC44OTU0MyAyOS4xMDQ2IDQgMjggNFoiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzMzMyIgc3Ryb2tlLXdpZHRoPSI0IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PHBhdGggZD0iTTE2IDMySDhDNi44OTU0MyAzMiA2IDMyLjg5NTQgNiAzNFY0MkM2IDQzLjEwNDYgNi44OTU0MyA0NCA4IDQ0SDE2QzE3LjEwNDYgNDQgMTggNDMuMTA0NiAxOCA0MlYzNEMxOCAzMi44OTU0IDE3LjEwNDYgMzIgMTYgMzJaIiBmaWxsPSJub25lIiBzdHJva2U9IiMzMzMiIHN0cm9rZS13aWR0aD0iNCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxwYXRoIGQ9Ik00MCAzMkgzMkMzMC44OTU0IDMyIDMwIDMyLjg5NTQgMzAgMzRWNDJDMzAgNDMuMTA0NiAzMC44OTU0IDQ0IDMyIDQ0SDQwQzQxLjEwNDYgNDQgNDIgNDMuMTA0NiA0MiA0MlYzNEM0MiAzMi44OTU0IDQxLjEwNDYgMzIgNDAgMzJaIiBmaWxsPSJub25lIiBzdHJva2U9IiMzMzMiIHN0cm9rZS13aWR0aD0iNCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxwYXRoIGQ9Ik0yNCAyNFYxNiIgc3Ryb2tlPSIjMzMzIiBzdHJva2Utd2lkdGg9IjQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxwYXRoIGQ9Ik0zNiAzMlYyNCIgc3Ryb2tlPSIjMzMzIiBzdHJva2Utd2lkdGg9IjQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxwYXRoIGQ9Ik0xMiAzMlYyNCIgc3Ryb2tlPSIjMzMzIiBzdHJva2Utd2lkdGg9IjQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg=="},51019:function(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTIwMCAxMjAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Im02MDAgMCA1MzAuMyAzMDB2NjAwbC01MzAuMyAzMDAtNTMwLjMtMzAwdi02MDB6IiBmaWxsPSIjZmZmIi8+PHBhdGggZD0ibTEwMzUuNiA4NzkuMy00MTguMSAyMzYuNXYtMTg0LjJsMjYwLjUtMTQzLjN6bTI4LjYtMjUuOXYtNDk0LjZsLTE1MyA4OC4zdjMxNy45em0tOTAxLjUgMjUuOSA0MTguMSAyMzYuNXYtMTg0LjJsLTI2MC41LTE0My4zem0tMjguNi0yNS45di00OTQuNmwxNTMgODguM3YzMTcuOXptMTcuOS01MjYuNiA0MjguOC0yNDIuNnYxNzguMWwtMjc0LjcgMTUxLjEtMi4xIDEuMnptODk0LjMgMC00MjguOC0yNDIuNnYxNzguMWwyNzQuNyAxNTEuMSAyLjEgMS4yeiIgZmlsbD0iIzhlZDZmYiIvPjxwYXRoIGQ9Im01ODAuOCA4ODkuNy0yNTctMTQxLjN2LTI4MGwyNTcgMTQ4LjR6bTM2LjcgMCAyNTctMTQxLjN2LTI4MGwtMjU3IDE0OC40em0tMjc2LjMtNDUzLjcgMjU4LTE0MS45IDI1OCAxNDEuOS0yNTggMTQ5eiIgZmlsbD0iIzFjNzhjMCIvPjwvc3ZnPg=="},50070:function(e,t,n){"use strict";var r=n(97458),i=n(18005),s=n(67351),o=n(31646),a=n(77422),l=n(25362),d=n(4696),u=n(15196),c=n(40641),h=n(23973),f=n(62147),p=n(76807),m=n(21846),x=n(52983),g=n(9060),j=n(75169),y=n(52153);let{PageState:v,Theme:S}=i.Constants;t.Z=()=>{let e=(0,a.useDetectIfCloudIdeEnv)(),[t,n]=(0,x.useState)(v.Success),[b,Z]=(0,x.useState)({...s.u.viewMode}),[M,C]=(0,x.useState)(),[P,I]=(0,x.useState)(s.u.theme);if(t===i.Constants.PageState.Fail){let e=(0,a.getDemoUrl)();return(0,r.jsxs)(l.Z,{direction:"vertical",style:{padding:14},children:[(0,r.jsx)(d.Z.Text,{strong:!0,style:{fontSize:16},children:"load json file of Rsdoctor failed."}),(0,r.jsxs)(d.Z.Text,{children:["try to use ",(0,r.jsx)(d.Z.Text,{keyboard:!0,children:"command + r"})," to refresh page."]}),null,(0,r.jsx)(u.Z,{}),(0,r.jsx)(l.Z,{direction:"vertical",style:{width:"100%"},children:(0,r.jsxs)(d.Z.Text,{style:{fontSize:16},children:["you can",(0,r.jsxs)(d.Z.Text,{strong:!0,style:{fontSize:"inherit"},children:[" ","upload a file"," "]}),"in the area below to analyze your project."]})}),(0,r.jsx)(u.Z,{}),e?(0,r.jsxs)(d.Z.Text,{style:{fontSize:16},children:["or you can open the"," ",(0,r.jsx)(d.Z.Text,{strong:!0,style:{fontSize:"inherit"},children:(0,r.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",children:"demo"})})," ","to get started with the Rsdoctor."]}):null]})}return(0,r.jsx)(j.UT,{children:(0,r.jsx)(s.E.Provider,{value:{...s.u,theme:P,setTheme:e=>{I(e),(0,a.setThemeToStorage)(e)},pageState:t,json:M,viewMode:b,setManifest:C,setPageState:n,setViewMode(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n={...b,...e};Z(n),t&&(0,a.setViewModeToStorage)(n)}},children:(0,r.jsx)(s.E.Consumer,{children:n=>(0,r.jsx)(c.ZP,{locale:(0,a.getLocale)(n.locale),theme:{algorithm:P===S.Dark?h.Z.darkAlgorithm:h.Z.defaultAlgorithm},children:(0,r.jsx)(o.Ar,{children:(0,r.jsxs)(r.Fragment,{children:[e&&(0,r.jsx)(f.Z,{message:"Warning",description:(0,r.jsx)("a",{href:window.location.href.replace(/https/,"http"),children:`Please jump to\u{FF1A}${window.location.href.replace(/https/,"http")}`}),type:"warning",showIcon:!0,closable:!0}),(0,r.jsx)(g.SV,{FallbackComponent:e=>{let{error:n,resetErrorBoundary:i}=e;return(0,r.jsx)(p.ZP,{status:"error",title:"Sorry, something went wrong.",extra:(0,r.jsx)(m.ZP,{type:"primary",onClick:i,loading:t===v.Pending,children:"Reload"}),children:(0,r.jsxs)(d.Z.Paragraph,{children:[(0,r.jsx)(d.Z.Title,{level:3,children:"Error Stack"}),(0,r.jsx)("pre",{children:n.stack||n.message})]})})},onReset:()=>{window.location.reload()},children:(0,r.jsx)(y.Z,{})})]})})})})})})}},17204:function(e,t,n){"use strict";var r=n(97458);n(63396);var i=n(50070),s=n(78520);n(79390);let o=document.getElementById("root");s.createRoot(o).render((0,r.jsx)(i.Z,{}));let a=document.createElement("link");a.setAttribute("type","image/x-icon"),a.setAttribute("rel","icon"),a.setAttribute("href","https://assets.rspack.dev/rsdoctor/rsdoctor-logo-960x960.png"),document.head.appendChild(a)},52153:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}}),n(42773),n(5470),n(53779),n(27743),n(80568);var r=n(97458);n(52983);var i=n(44278),s=n(83177);function o(){let e=[{path:s.P3.BC,element:(0,r.jsx)(s.P3.T3,{})},{path:s.Yt.BC,element:(0,r.jsx)(s.Yt.T3,{})},{path:s.UM.BC,element:(0,r.jsx)(s.UM.T3,{})},{path:s.kc.BC,element:(0,r.jsx)(s.kc.T3,{})},{path:s.xA.BC,element:(0,r.jsx)(s.xA.T3,{})},{path:s.Px.BC,element:(0,r.jsx)(s.Px.T3,{})},{path:s.wH.BC,element:(0,r.jsx)(s.wH.$R,{})}].filter(e=>!!e);return(0,r.jsxs)(i.Z5,{children:[(0,r.jsx)(i.AW,{path:"/",element:(0,r.jsx)(s.JZ.T3,{})}),(0,r.jsx)(i.AW,{path:s.JZ.BC,element:(0,r.jsx)(s.JZ.T3,{})}),e.map(e=>(0,r.jsx)(i.AW,{path:e.path,element:e.element},e.path))]})}},6156:function(){},41037:function(){}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(s.exports,s,s.exports,n),s.loaded=!0,s.exports}n.m=e,n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,i){if(1&i&&(r=this(r)),8&i||"object"==typeof r&&r&&(4&i&&r.__esModule||16&i&&"function"==typeof r.then))return r;var s=Object.create(null);n.r(s);var o={};e=e||[null,t({}),t([]),t(t)];for(var a=2&i&&r;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(function(e){o[e]=function(){return r[e]}});return o.default=function(){return r},n.d(s,o),s}})(),n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.u=function(e){return"resource/js/async/"+e+"."+({432:"0cd699ed",811:"b67cc575"})[e]+".js"},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],!e.children&&(e.children=[]),e},(()=>{var e=[];n.O=function(t,r,i,s){if(r){s=s||0;for(var o=e.length;o>0&&e[o-1][2]>s;o--)e[o]=e[o-1];e[o]=[r,i,s];return}for(var a=1/0,o=0;o<e.length;o++){for(var r=e[o][0],i=e[o][1],s=e[o][2],l=!0,d=0;d<r.length;d++)(!1&s||a>=s)&&Object.keys(n.O).every(function(e){return n.O[e](r[d])})?r.splice(d--,1):(l=!1,s<a&&(a=s));if(l){e.splice(o--,1);var u=i();void 0!==u&&(t=u)}}return t}})(),n.p="./",n.j="980",(()=>{n.b=document.baseURI||self.location.href;var e={980:0};n.O.j=function(t){return 0===e[t]};var t=function(t,r){var i=r[0],s=r[1],o=r[2],a,l,d=0;if(i.some(function(t){return 0!==e[t]})){for(a in s)n.o(s,a)&&(n.m[a]=s[a]);if(o)var u=o(n)}for(t&&t(r);d<i.length;d++)l=i[d],n.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return n.O(u)},r=self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var r=n.O(void 0,["364","641","301","82","150","741","208","21","966","685","646"],function(){return n("17204")});r=n.O(r)})();
|