@rsdoctor/client 0.3.2 → 0.3.3
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/css/826.2794f707.css +4 -0
- package/dist/resource/font/{codicon.7fe16dbd.ttf → codicon.44bc17fa.ttf} +0 -0
- package/dist/resource/js/{505.b0671115.js → 826.5dba3977.js} +5 -5
- package/dist/resource/js/async/{811.1fbe2090.js → 811.aeb19dcb.js} +1 -1
- package/dist/resource/js/index.f0279c55.js +156 -0
- package/dist/resource/js/monaco-0.92c812de.js +20 -0
- package/dist/resource/js/monaco-1.6a7defc9.js +1 -0
- package/dist/resource/js/monaco-10.cdc45bb5.js +3 -0
- package/dist/resource/js/monaco-11.40a1fcb1.js +4 -0
- package/dist/resource/js/monaco-12.0c116aa2.js +43 -0
- package/dist/resource/js/monaco-13.dcefcf80.js +366 -0
- package/dist/resource/js/monaco-14.afa84c5f.js +42 -0
- package/dist/resource/js/monaco-15.26757ead.js +8 -0
- package/dist/resource/js/monaco-16.77a3677c.js +4 -0
- package/dist/resource/js/monaco-17.b0290dba.js +1 -0
- package/dist/resource/js/monaco-2.133a02f6.js +18 -0
- package/dist/resource/js/monaco-3.6eef79c7.js +14 -0
- package/dist/resource/js/monaco-4.b9b35171.js +301 -0
- package/dist/resource/js/monaco-5.b2a6d9b1.js +8 -0
- package/dist/resource/js/monaco-6.042b95c8.js +3 -0
- package/dist/resource/js/monaco-7.0c2b350f.js +1 -0
- package/dist/resource/js/monaco-8.389906ed.js +1 -0
- package/dist/resource/js/monaco-9.9a685176.js +1 -0
- package/package.json +3 -3
- package/dist/resource/css/505.b09c71b1.css +0 -1
- package/dist/resource/js/index.fc9559d0.js +0 -156
- package/dist/resource/js/monaco-0.c3af1bd3.js +0 -2
- package/dist/resource/js/monaco-1.7ad7764f.js +0 -369
- package/dist/resource/js/monaco-10.4db28e1a.js +0 -4
- package/dist/resource/js/monaco-11.18edf242.js +0 -25
- package/dist/resource/js/monaco-12.f2868e03.js +0 -5
- package/dist/resource/js/monaco-13.88108488.js +0 -1
- package/dist/resource/js/monaco-14.9ed23e83.js +0 -70
- package/dist/resource/js/monaco-2.6895e134.js +0 -17
- package/dist/resource/js/monaco-3.51c02ad7.js +0 -31
- package/dist/resource/js/monaco-4.2525ec7c.js +0 -31
- package/dist/resource/js/monaco-5.5bc856bc.js +0 -1
- package/dist/resource/js/monaco-6.6e712e08.js +0 -1
- package/dist/resource/js/monaco-7.1fa8c3af.js +0 -1
- package/dist/resource/js/monaco-8.dcf3e8dc.js +0 -38
- package/dist/resource/js/monaco-9.7c59b09b.js +0 -7
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
!function(){var e,t,n,r,i,s,o={11299:function(e,t,n){"use strict";n.d(t,{X:function(){return Z}});var r=n("97458"),i=n("52983"),s=n("97889"),o=n("47297"),a=n("21134"),l=n("24978"),d=n("33931"),c=n("36175"),u=n("32658"),h=n("3230"),f=n("80213"),p=n("21302"),x=n("9172"),m=n("78741"),g=n("77422"),j=n("57448"),y=n("23675"),M=n("99997"),v=n("46591");let S=({data:e,setIsFixed:t,cwd:n})=>{let{file:i,id:h}=e,{path:f,line:x,isFixed:g,actual:j,expected:S}=i,Z=()=>{s.Z.post(m.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)(M.XF,{cwd:n,url:f,loc:String(x),code:!0,disabled:!0}),(0,r.jsxs)(d.Z,{children:[(0,r.jsx)(c.Z,{span:12,children:(0,r.jsx)(u.Z.Text,{strong:!0,children:"Before"})}),(0,r.jsx)(c.Z,{span:12,children:(0,r.jsx)(u.Z.Text,{strong:!0,children:"After"})})]}),(0,r.jsx)(v.ZX,{className:"full-space",filepath:f,before:j,after:S})]})},Z=({data:e,cwd:t})=>{let{title:n,description:s="",level:o,code:d,file:c}=e,[p,m]=(0,i.useState)(c.isFixed??!1),y=(0,g.useRuleIndexNavigate)(d,e.link),M=(0,r.jsxs)(l.Z,{direction:"vertical",children:[(0,r.jsx)(u.Z.Text,{children:s}),(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(u.Z.Text,{children:"File:"}),(0,r.jsx)(u.Z.Text,{strong:!0,code:!0,children:c.path}),(0,r.jsx)(u.Z.Text,{children:"in line"}),(0,r.jsx)(u.Z.Text,{strong:!0,code:!0,children:c.line})]})]});return(0,r.jsx)(h.Z,{showIcon:!0,message:(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(u.Z.Text,{code:!0,strong:!0,onClick:y,style:{cursor:"pointer"},children:(0,r.jsx)("a",{children:d})}),(0,r.jsx)(u.Z.Text,{strong:!0,children:n})]}),description:M,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)(S,{data:e,setIsFixed:e=>{m(e),c.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)(x.Z,{})})]})})}},36479:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n("97458"),i=n("3230");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("86009");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 c}});var r=n("97458"),i=n("3230"),s=n("24978"),o=n("32658"),a=n("21134"),l=n("9172"),d=n("77422");let c=({data:e})=>{let{title:t,description:n="",level:c,code:u}=e,h=(0,d.useRuleIndexNavigate)(u,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:u})}),(0,r.jsx)(o.Z.Text,{strong:!0,children:t})]}),description:(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:n}}),type:"warn"===c?"info":c,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 P}});var r=n("97458"),i=n("52983"),s=n("33931"),o=n("36175"),a=n("60737"),l=n("64830"),d=n("32658"),c=n("66208"),u=n("61884"),h=n("58450"),f=n("3230"),p=n("24978"),x=n("80213"),m=n("70033"),g=n("19645"),j=n("21134"),y=n("20942"),M=n("78741"),v=n("9172"),S=n("82016"),Z=n("77422"),b=n("57448"),I=n("23675"),D=n("95925"),w=n("94386"),A=n("46591"),C=n("43622");let P=(0,C.U$)({Component:({data:e,cwd:t})=>{let[n,h]=(0,i.useState)(0),{t:f}=(0,Z.useI18n)();return(0,r.jsxs)(s.Z,{gutter:D.Size.BasePadding,wrap:!1,align:"top",children:[(0,r.jsx)(o.Z,{span:12,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:f("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:D.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)(c.Z,{children:e.map((t,i)=>{let{dependency:s,module:o,relativePath:a}=t,{statements:l}=s,{start:u}=l?.[0]?.position?o.isPreferSource?l[0].position.source:l[0].position.transformed:{start:{line:0,column:0}},f=`${a}:${u.line}:${u.column||1}`;return(0,r.jsx)(c.Z.Item,{style:{cursor:"pointer"},dot:i===e.length-1?void 0:"\u2B07\uFE0F",children:(0,r.jsx)(d.Z.Text,{copyable:{text:a},onClick:e=>{e.preventDefault(),e.stopPropagation(),h(i)},strong:i===n,style:{color:i===n?D.Color.Blue:"inherit",display:"block"},children:f})},f)})})]}):(0,r.jsx)(u.Z,{description:"This package no dependencies"})})}),(0,r.jsx)(o.Z,{span:12,style:{height:"100%"},children:(0,i.createElement)(A.We,{...e[n],key:n,cwd:t})})]})},api:M.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),c=(0,Z.formatSize)(l),{xs:u,lg:A,xxl:C}=h.ZP.useBreakpoint(),{name:P}=o.find(e=>!!e.target.name).target,E=o.map(e=>e.target.version);return(0,r.jsx)(f.Z,{showIcon:!u,message:(0,r.jsxs)(p.Z,{wrap:!0,split:u?null:(0,r.jsx)(x.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:M.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:P}),(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)(w.Ct,{label:"total size",value:c,type:"error",tooltip:`total size of ${e.packages.length} versions is ${c}`})]}),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:u?null:(0,r.jsx)(x.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)(w.Ct,{label:e.name,value:`v${e.version}`,tooltip:s})]}),(0,r.jsxs)(p.Z,{children:[(0,r.jsx)(w.Ct,{label:(0,r.jsxs)("div",{color:"rgb(255, 255, 255)",children:["Source Size ",(0,r.jsx)(v.Z,{})]}),value:n,tooltip:`The bundle size of "${s}" is ${n}, this is source size.`,type:"error"}),(0,r.jsx)(w.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:C?"40rem":A?"30rem":"20rem"},copyable:{text:e.root},ellipsis:{rows:1,expandable:!0,symbol:(0,r.jsx)(S.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)(b.XU,{text:"Show Relations",buttonProps:{size:"small"},drawerProps:{title:e.title},children:(0,r.jsxs)(p.Z,{direction:"vertical",className:"alert-space",children:[(0,r.jsxs)(p.Z,{style:{marginBottom:D.Size.BasePadding/2},children:[(0,r.jsx)(I.D,{text:P,upperFisrt:!1}),(0,r.jsx)(d.Z.Text,{strong:!0,children:E.length}),(0,r.jsx)(d.Z.Text,{children:" versions was found: "}),E.map(e=>(0,r.jsx)(d.Z.Text,{strong:!0,code:!0,children:e},e))]}),(0,r.jsx)(m.Z,{type:"card",size:"middle",className:"tabs-space",defaultActiveKey:E[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:`${P}@${i.version}`}),(0,r.jsx)(g.Z,{color:D.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)(x.Z,{type:"vertical"}),(0,r.jsx)(j.ZP,{type:"link",onClick:a,size:"small",icon:(0,r.jsx)(v.Z,{})})]})})}},42152:function(e,t,n){"use strict";n.d(t,{k:function(){return g}});var r=n("97458"),i=n("77590"),s=n("24978"),o=n("32658"),a=n("3230"),l=n("80213"),d=n("21134"),c=n("9172"),u=n("77422"),h=n("57448"),f=n("23675"),p=n("99997"),x=n("46591");let m=({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)(x.uX,{path:n.path,content:n.content,ranges:a,defaultLine:l})]})},g=({data:e,cwd:t})=>{let{title:n,description:f="",level:p,code:x,file:g}=e,j=(0,u.useRuleIndexNavigate)(x,e.link),y=g.ranges?.[0].start.line,M=(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:x})}),(0,r.jsx)(o.Z.Text,{strong:!0,children:n})]}),description:M,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)(m,{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)(c.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"),c=n("57031"),u=n("5062");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)(),x=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)(u.ZP,{theme:{components:{Alert:{colorInfoBg:"#e6f4ff57",colorInfoBorder:"none"}}},children:(0,r.jsx)(a.h,{title:"Bundle Alerts",dataSource:x,extraData:{cwd:s,getPackageRelationContentComponent:e=>(0,r.jsx)(c.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 S}});var r=n("97458"),i=n("24978"),s=n("77907"),o=n("32658"),a=n("49607"),l=n("51888"),d=n("52983"),c=n("93716"),u=n("64453"),h=n("78741"),f=n("61550"),p=n("49446"),x=n("95925"),m=n("97946"),g=n("21807"),j=n("94386");let y={warn:1,error:2},M=({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)(m.b,{data:e,...t},n))})},v=({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)(m.b,{data:e,...t},n))})},n.code)})})})},S=({title:e,dataSource:t,extraData:n,viewMode:i,setViewMode:s,extraCom:o})=>t.length?(0,r.jsx)(g.Zb,{title:e,style:{marginTop:x.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)(c.Z,{})}),value:x.ViewMode.List},{label:(0,r.jsx)(l.Z,{title:"display by group",children:(0,r.jsx)(u.Z,{})}),value:x.ViewMode.Group}],value:i,optionType:"button",size:"small",onChange:e=>{s(e.target.value)}}),children:i===x.ViewMode.List?(0,r.jsx)(M,{dataSource:t,extraData:n}):(0,r.jsx)(v,{dataSource:t,extraData:n})}):null},35037:function(e,t,n){"use strict";n.d(t,{$:function(){return u}});var r=n("97458"),i=n("52983"),s=n("78741"),o=n("77422"),a=n("6692"),l=n("43622"),d=n("95925"),c=n("57031");let u=(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:u,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)(c.md,{body:{id:e.data.id,target:e.package.target},cwd:n})},viewMode:h.compileAlerts,setViewMode:u,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 I},u1:function(){return b}});var r=n("97458"),i=n("52983"),s=n("78741"),o=n("32658"),a=n("33931"),l=n("21134"),d=n("36175"),c=n("77907"),u=n("19645"),h=n("3230"),f=n("18631"),p=n("68205"),x=n("71763"),m=n("17872"),g=n("73843"),j=n("90773"),y=n.n(j),M=n("43622"),v=n("95925");function S(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:v.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:v.Color.Yellow,fontSize:16},children:[t," warnings"]})]}),warns:t,errors:n}}n("11856");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:[S(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,v.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)(c.Z,{ghost:!0,style:{background:"#000"},defaultActiveKey:[e.id],expandIcon:e=>e.isActive?(0,r.jsx)(p.Z,{style:{color:"#fff"}}):(0,r.jsx)(x.Z,{style:{color:"#fff"}}),children:(0,r.jsx)(c.Z.Panel,{header:(0,r.jsxs)("div",{style:{color:"#fff"},children:["warn"===e.level?(0,r.jsx)(u.Z,{color:v.Color.Yellow,children:"WARNING"}):(0,r.jsx)(u.Z,{color:v.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,b=(0,M.U$)({api:s.SDK.ServerAPI.API.GetOverlayAlerts,Component:({alerts:e=[]})=>{if(!e.length)return null;let{errors:t}=S(e),[n,s]=(0,i.useState)(t>0);return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(l.ZP,{icon:(0,r.jsx)(m.Z,{}),danger:!0,size:"small",onClick:()=>s(!n),children:S(e).title}),(0,r.jsx)(Z,{alerts:e,open:n,onClose:()=>s(!1)})]})},responsePropName:"alerts",fallbackComponent:()=>null}),I=(0,M.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(S(e).detail,{style:{color:"#000"}}),icon:(0,r.jsx)(m.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("51888");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 u}});var r=n("97458"),i=n("80140"),s=n("38879"),o=n("60737"),a=n("24978"),l=n("21134"),d=n("80213"),c=n("52983");n("30524");let u=({collapsable:e=!1,children:t,title:n,dividerStyle:u,defaultCollapsed:h=!1,...f})=>{let[p,x]=(0,c.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:()=>x(!p),size:"small"}),n]}),children:p?(0,r.jsx)(d.Z,{orientation:"center",style:u,plain:!0,children:(0,r.jsx)(l.ZP,{icon:(0,r.jsx)(i.Z,{}),type:"text",onClick:()=>x(!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("25128"),s=n("54729"),o=n("24978"),a=n("32658"),l=n("19645"),d=n("61884"),c=n("85817"),u=n("51888"),h=n("20942"),f=n("52983"),p=n("77422"),x=n("35972"),m=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]),M=(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===M.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)(c.Z,{type:"dashboard",percent:+(y/t*100).toFixed(2),strokeColor:{"0%":"#108ee9","100%":"#87d068"},width:80}):null,(0,r.jsx)(m.XU,{text:(0,r.jsx)(u.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)(x.z,{treeData:M,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("35610");n("89019");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 h}});var r=n("97458"),i=n("52983"),s=n("52921"),o=n("96646"),a=n("32186"),l=n("14123"),d=n.n(l),c=n("49446"),u=n("52161");let h=(0,i.memo)(({loaderData:e,pluginsData:t,formatterFn:n,chartType:l="normal"})=>{let h=[],f=[],[p,x]=(0,i.useState)({});return(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(h.push({name:e.n+" total",value:[t.indexOf(e.n+" total"),e.s,e.e,e.e-e.s],itemStyle:{normal:{color:u.I[n%8]}}}),e?.c)for(let r=0;r<e?.c?.length;r++)h.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:u.f[(r+n)%30]}},ext:e.c[r].ext})}),f=t.map((e,t)=>t%2!=0?e.replace(" total",""):"")},[e]),(0,i.useEffect)(()=>{if(!t)return;let e=(0,c.Z)(t,e=>e.pid);Object.keys(e).reverse().forEach(function(t,n){e[t].forEach((e,t)=>{h.push({name:String(e.pid),value:[n,e.args.s,e.args.e,e.args.e-e.args.s],itemStyle:{normal:{color:u.f[(t+n)%30]}},ext:e})}),f.push(String(t.charAt(0).toUpperCase()+t.slice(1)))})},[t]),(0,i.useEffect)(()=>{x({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:f.length>("loader"===l?6:3)?"auto":60*f.length,containLabel:!0},xAxis:{position:"top",splitLine:{show:!1},scale:!0,axisLine:{show:!1},axisLabel:{formatter:e=>d()(e).format("HH:mm:ss")}},yAxis:{type:"category",splitLine:{interval:"loader"===l?1:0,show:!0},axisLabel:{inside:!0,lineHeight:20,width:100,fontSize:12,color:"#000",verticalAlign:"bottom"},axisLine:{show:!0},axisTick:{show:!1},data:f},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],a=o.clipRectByRect({x:r[0],y:"loader"===l?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 a&&{type:"rect",transition:["shape"],shape:a,style:t.style(),enterFrom:{style:{opacity:0},x:0}}},itemStyle:{opacity:.8},encode:{x:[1,2],y:0},data:h}]})},[e,t]),(0,r.jsx)(s.Z,{option:p,echarts:a,style:{width:"100%",minHeight:"400px"}})})},85057:function(e,t,n){"use strict";n.d(t,{E:function(){return u}});var r=n("97458"),i=n("24978"),s=n("24001"),o=n("78741"),a=n("57448");n("69627"),n("97893");var l=n("6454"),d=n("43622"),c=n("46641");let u=({summary:e})=>{let{costs:t=[]}=e||{},n=t.find(e=>e.name===c.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 c},m:function(){return u}});var r=n("97458"),i=n("3230"),s=n("32658"),o=n("52983"),a=n("77422"),l=n("67451");n("69627"),n("97893");var d=n("18019");let c=({plugins:e,defaultDatas:t=[]})=>{let{isDark:n}=(0,a.useTheme)(),i=(0,o.useRef)(null),[s,c]=(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})})}),c([...(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})})},u=()=>(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("24978"),s=n("80213"),o=n("24001"),a=n("78741"),l=n("46641"),d=n("57448"),c=n("21807"),u=n("6454"),h=n("13938"),f=n("43622");n("69627"),n("97893");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)(c.Zb,{title:`Plugin DataSource of ${p}`,collapsable:!0,children:(0,r.jsx)(h.A,{dataSource:e})}),(0,r.jsx)(s.Z,{}),(0,r.jsx)(c.Zb,{title:`Chart ${p}`,children:(0,r.jsx)(u.T,{plugins:e})})]}):(0,r.jsx)(u.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("24978"),a=n("78741"),l=n("42068"),d=n("43622"),c=n("56816"),u=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,u.F3)(e.resource,e.loader,n.filename,n.loaders));return 0===h?(0,i.jsx)(c.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("49446"),o=n("61884");n("69627");var a=n("44428"),l=n("75196"),d=n("85518"),c=n("67451"),u=n("18019");let h=({loaders:e,cwd:t})=>{let{isDark:n}=(0,a.Fg)(),h=(0,i.useRef)(null),[f,p]=(0,i.useState)([]),x=(0,u.Cu)(f,200),m=(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,u.Ux)(i.ext):(0,u.Wl)(s,e,t)},[]);return(0,i.useEffect)(()=>{p(Object.keys(m).map(e=>{let n=m[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}))}}))},[m]),(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)(c.z,{loaderData:x,formatterFn:g,chartType:"loader"})}):(0,r.jsx)(o.Z,{})})}},40263:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n("97458"),i=n("24001"),s=n("78741"),o=n("24978"),a=n("80213"),l=n("57448"),d=n("46641"),c=n("21807"),u=n("43622"),h=n("13938"),f=n("6454");n("69627"),n("97893");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)(u.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)(c.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)(c.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 x},TU:function(){return f},Ux:function(){return u},Wl:function(){return h},vF:function(){return p}});var r=n("46641"),i=n("14123"),s=n.n(i),o=n("94229"),a=n("24837"),l=n("77422");n("97893");var d=n("67804"),c=n("52983");function u(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),c=d.map(e=>e.resource),u=c.filter(e=>e.includes("/node_modules/")),h=c.filter(e=>!e.startsWith(n)),f=(0,o.Z)(d,e=>e.startAt).startAt,p=(0,a.Z)(d,e=>e.endAt).endAt,x=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">${c.length}</span>
|
|
31
|
+
</li>
|
|
32
|
+
<li class="loader-tooltip-item">
|
|
33
|
+
<span>files(node_modules)</span>
|
|
34
|
+
<span class="loader-tooltip-textbold">${u.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)(x)}</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 x(e,t){let[n,r]=(0,c.useState)(e);return(0,c.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("3242"),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.d(t,{W:function(){return h}});var r=n("97458"),i=n("52983"),s=n("60737"),o=n("24978"),a=n("51888"),l=n("9172"),d=n("3242"),c=n("77422"),u=n("99997");let h=({dependency:e,module:t,cwd:n,moduleCode:h})=>{let f=(0,i.useRef)(null);if(!e)return null;let{statements:p}=e,x=!!p?.[0]?.position?.source,{start:m,end:g}=p?.[0]?.position?x?p[0].position.source:p[0].position.transformed:{start:{line:0,column:0},end:{line:0,column:0}},j=x?h?.source:h?.transformed||h?.source,y=t.path;return(0,r.jsx)(s.Z,{title:(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(a.Z,{title:y,zIndex:99999,children:(0,r.jsx)(l.Z,{})}),(0,r.jsx)(u.XF,{cwd:n,url:y,label:(0,c.beautifyModulePath)(y,n).alias,loc:`${m.line}:${m.column||1}`,code:!0,disabled:!0})]}),style:{height:"100%"},children:(0,r.jsx)(d.ZP,{theme:"vs-dark",language:(0,c.getOriginalLanguage)(y),value:j,width:"100%",height:window.innerHeight/1.5,options:{readOnly:!0,domReadOnly:!0,fontSize:14,minimap:{enabled:!1}},onMount:(e,t)=>{f.current=e;let n=(0,c.getSelectionRange)({start:m,end:g},t.Range),r=(0,c.getRevealPositionForViewer)(n.startLineNumber,n.startColumn);e.revealPositionInCenter(r),e.deltaDecorations([],[{range:n,options:{inlineClassName:"file-inline-decoration"}}])}})})}},46591:function(e,t,n){"use strict";n.d(t,{We:function(){return i.W},ZX:function(){return r.Z},uX:function(){return s.u},ut:function(){return s.v},z9:function(){return o.z}});var r=n("78527"),i=n("3579"),s=n("44548"),o=n("81185")},44548:function(e,t,n){"use strict";n.d(t,{u:function(){return c},v:function(){return u}});var r=n("97458"),i=n("3242"),s=n("77590"),o=n("23123"),a=n("77422"),l=n("81185"),d=n("57448");let c=({content:e,ranges:t,path:n,defaultLine:o,editorConfig:d={}})=>(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"}})))}}),u=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("33931"),o=n("80213"),a=n("24978"),l=n("32658"),d=n("32443"),c=n("90396"),u=n("52983"),h=n("45462"),f=n.n(h),p=n("77422"),x=n("43622"),m=n("57448"),g=n("23675");let j=(0,x.U$)({Component:({defaultKeys:e,configs:t})=>{let n=(0,p.useWebpackConfigurationByConfigs)(t||[]);if(!n)return null;let{config:i,version:h,name:x}=n,j=Object.keys(i),[y,M]=(0,u.useState)(e||j);return(0,r.jsx)(m.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=>{M(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?`${x}@${h}`:"webpack.config",theme:"monokai",src:0===y.length?i:(0,c.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("54729"),s=n("24978"),o=n("71763"),a=n("32968"),l=n("86063"),d=n("49646"),c=n("18968"),u=n("95925");n("49905");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)(c.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:u.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("38937"),o=n("21134"),a=n("32658");let l=({icon:e,label:t,labelStyle:n={},placeholder:l,onChange:d,style:c,className:u,width:h,delay:f=300})=>{let p;let[x,m]=(0,i.useState)(""),g={width:120,...n},j=(0,i.useRef)(null);return(0,i.useEffect)(()=>{d(x)},[x]),(0,r.jsxs)(s.Z.Group,{compact:!0,style:c,className:u,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:x,style:{width:h?h-120:250},placeholder:l,onChange:e=>{clearTimeout(p);let t=e.target.value.trim();setTimeout(()=>{m(t)},f)}})]})}},67522:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n("97458"),i=n("32658");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 c}});var r=n("97458"),i=n("80213"),s=n("32658"),o=n("32443"),a=n("52983"),l=n("39504"),d=n("77422");let c=()=>{let[e,t]=(0,a.useState)(""),[n,c]=(0,a.useState)([]);return((0,a.useEffect)(()=>{(0,d.fetchManifest)().then(({name:e,series:n})=>{e&&t(e),n&&n.length>0&&c(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 x}});var r=n("97458"),i=n("98546"),s=n("71832"),o=n("33931"),a=n("36175"),l=n("32658"),d=n("13800"),c=n("95925"),u=n("77422"),h=n("14496"),f=n("5161"),p=n("53876");n("88267");let x=()=>{let{i18n:e}=(0,u.useI18n)(),{isLight:t}=(0,u.useTheme)(),n=[{value:c.Language.Cn,label:"\u4E2D\u6587"},{value:c.Language.En,label:"English"}];return(0,r.jsx)(s.Z.Header,{style:{height:c.Size.NavBarHeight,padding:0,paddingLeft:c.Size.BasePadding,paddingRight:c.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:c.Size.NavBarHeight},wrap:!1,children:[(0,r.jsx)(a.Z,{style:{height:c.Size.NavBarHeight,lineHeight:`${c.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://lf3-static.bytednsdoc.com/obj/eden-cn/lognuvj/rsdoctor/logo/rsdoctor.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:c.Size.NavBarHeight},wrap:!1,gutter:[c.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 u}});var r=n("97458"),i=n("52983"),s=n("71832"),o=n("37925"),a=n("95925"),l=n("89782"),d=n("77422"),c=n("36838");let u=e=>{let t=(0,d.useLocale)(),{i18n:n}=(0,d.useI18n)(),{children:u}=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)(c.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:[u,(0,r.jsx)(o.Z.BackTop,{})]})]})}},53876:function(e,t,n){"use strict";n.d(t,{I:function(){return b}});var r=n("97458"),i=n("24001"),s=n("45683"),o=n("19369"),a=n("20685"),l=n("49382"),d=n("28787"),c=n("26661"),u=n("78741"),h=n("32658"),f=n("88387"),p=n("36175"),x=n("15890"),m=n("44278"),g=n("51019"),j=n("95925"),y=n("38613"),M=n("77422"),v=n("43622"),S=n("83177"),Z=n("75910");let b=(0,v.U$)({api:u.SDK.ServerAPI.API.GetClientRoutes,responsePropName:"routes",Component:e=>{let{t}=(0,M.useI18n)(),{pathname:n}=(0,m.TH)(),v=(0,m.s0)(),{routes:b}=e,I={fontSize:16},D={...I,transform:"translateY(-2px)"},w=[];console.log("enableRoutes: ",b),(0,x.Z)(b,u.Manifest.RsdoctorManifestClientRoutes.Overall)&&w.push({label:t(y.u),key:y.B,icon:(0,r.jsx)(i.Z,{style:I}),children:[],onTitleClick(e){v(e.key)}}),(0,M.hasCompile)(b)&&w.push({label:t(Z._),key:Z._,icon:(0,r.jsx)(s.Z,{style:I}),children:[(0,x.Z)(b,u.Manifest.RsdoctorManifestClientRoutes.WebpackLoaders)&&{label:(0,r.jsx)(h.Z.Text,{style:{marginRight:8},children:t(S.Yt.u2)}),key:S.Yt.BC,icon:(0,r.jsx)("img",{src:g,alt:"",style:{...I,width:16}}),children:[{label:t(S.xA.u2),key:S.xA.BC,icon:(0,r.jsx)(i.Z,{style:I})},{label:t(S.Yt.u2),key:S.Yt.BC,icon:(0,r.jsx)(o.Z,{style:I})}]},(0,x.Z)(b,u.Manifest.RsdoctorManifestClientRoutes.ModuleResolve)&&{label:t(S.kc.u2),key:S.kc.BC,icon:(0,r.jsx)(a.Z,{style:I})},(0,x.Z)(b,u.Manifest.RsdoctorManifestClientRoutes.WebpackPlugins)&&{label:t(S.UM.u2),key:S.UM.BC,icon:(0,r.jsx)(l.Z,{style:I})}].filter(e=>!!e)}),(0,M.hasBundle)(b)&&w.push({label:t(S.P3.u2),key:S.P3.u2,icon:(0,r.jsx)("span",{style:D,children:"\uD83D\uDCE6"}),children:[(0,x.Z)(b,u.Manifest.RsdoctorManifestClientRoutes.BundleSize)&&{label:t(S.P3.u2),key:S.P3.BC,icon:(0,r.jsx)(d.Z,{style:I})},(0,x.Z)(b,u.Manifest.RsdoctorManifestClientRoutes.TreeShaking)&&{label:t(S.wH.u2),key:S.wH.BC,icon:(0,r.jsx)(d.Z,{style:I})}].filter(e=>!!e)});let A=(0,r.jsx)(f.Z,{items:w,mode:"horizontal",onClick:e=>{!e.keyPath.includes("builder-switcher")&&v(e.key)},overflowedIndicator:(0,r.jsx)(c.Z,{}),style:{height:j.Size.NavBarHeight,lineHeight:`${j.Size.NavBarHeight}px`,minWidth:0,justifyContent:"flex-end",...e.style},selectedKeys:["/"===n?y.B:n]},b.join(""));return(0,r.jsx)(p.Z,{xs:{span:3},md:{span:6},lg:{span:10},xl:{span:11},xxl:{span:12},children:A})},fallbackComponent:()=>null})},36838:function(e,t,n){"use strict";n.d(t,{E:function(){return u}});var r=n("97458"),i=n("33931"),s=n("36175"),o=n("85817"),a=n("32658"),l=n("78741"),d=n("95925"),c=n("43622");let u=(0,c.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 w}});var r=n("97458"),i=n("52983"),s=n("45641"),o=n("50002"),a=n("20942"),l=n("24978"),d=n("51888"),c=n("32658"),u=n("80213"),h=n("33931"),f=n("36175"),p=n("60737"),x=n("58323"),m=n("63337"),g=n("5561"),j=n("18631"),y=n("78741"),M=n("43622"),v=n("95925"),S=n("77422"),Z=n("23900"),b=n("35972"),I=n("67522"),D=n("13872");let w=e=>{let{cwd:t,filetree:n}=e,[w,A]=(0,i.useState)(!1),[C,P]=(0,i.useState)(""),[E,T]=(0,i.useState)(0),[k,z]=(0,i.useState)(null),N=(0,i.useRef)(null),{initMonaco:R}=(0,S.useMonacoEditor)(),_=(0,i.useCallback)(async()=>{await R(N)},[]),O=(0,i.useMemo)(()=>n.filter(t=>t.loaders.some(n=>(0,S.filterLoader)(t.path,n.loader,e.filename,e.loaders))),[e.filename,e.loaders]),L="__RESOURCEPATH__",B=(0,i.useMemo)(()=>(0,S.createFileStructures)({files:O.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:()=>{T(0),P(t),A(!0)},children:[(0,r.jsx)(I.Z,{text:i,keyword:e.filename}),(0,s.Z)(t,y.Constants.JSExtension)?(0,r.jsx)(M.Nu,{api:y.SDK.ServerAPI.API.GetLoaderFileFirstInput,body:{file:t},fallbackComponent:()=>null,children:e=>(0,r.jsx)(D.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)(c.Z.Text,{code:!0,style:{color:i?"#f50":"inherit"},onClick:e=>{e.stopPropagation(),P(t),T(n),A(!0)},children:[(0,r.jsx)(c.Z.Text,{style:{maxWidth:135,color:"inherit"},ellipsis:!0,children:e.loader}),(0,r.jsx)(u.Z,{type:"vertical"}),i?(0,r.jsx)(j.Z,{}):(0,r.jsx)(c.Z.Text,{strong:!0,children:(0,S.formatCosts)(e.costs)})]})},s)})]})},dirTitle:(t,n)=>(0,r.jsx)(I.Z,{text:n,keyword:e.filename})}),[O]);return(0,r.jsxs)(h.Z,{style:{width:"100%"},gutter:v.Size.BasePadding,children:[(0,r.jsx)(f.Z,{span:14,children:(0,r.jsxs)(p.Z,{title:(0,r.jsxs)(c.Z.Text,{strong:!0,children:["Total Files: ",O.length]}),bodyStyle:{overflow:"scroll",maxHeight:700},children:[(0,r.jsx)(b.z,{defaultExpandedKeys:(0,S.mapFileKey)(B,O.length>=100?3:4,e=>!((0,o.Z)(e,L).indexOf("/node_modules/")>-1)),treeData:B,onSelect:(e,t)=>{_(),!t.node.isLeaf&&z(t.node)},selectedKeys:k?[k.key]:void 0,expandAction:"click"},`${e.loaders.join("|")}_${e.filename}`),(0,r.jsx)(x.Z,{open:w,onClose:()=>A(!1),maskClosable:!0,width:v.drawerWidth,zIndex:999,bodyStyle:{padding:0},children:w?(0,r.jsx)(M.Nu,{api:y.SDK.ServerAPI.API.GetLoaderFileDetails,body:{path:C},children:e=>(0,r.jsx)(Z.g,{data:e,cwd:t,index:E})}):null})]})}),k?(0,r.jsx)(f.Z,{span:10,children:(0,r.jsx)(p.Z,{title:(0,r.jsx)(d.Z,{title:i.cloneElement(k.title,{style:{color:"#fff"}}),children:(0,r.jsxs)(c.Z.Text,{children:['Statistics of "',k.title,'"']})}),children:(0,r.jsx)(M.Nu,{api:y.SDK.ServerAPI.API.GetLoaderFolderStatistics,body:{folder:k[L]},children:e=>(0,r.jsx)(m.Z,{style:{width:"100%",maxHeight:700,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)(c.Z.Text,{strong:!0,children:(0,S.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)(c.Z.Text,{strong:!0,children:(0,S.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})})]})}})},23900:function(e,t,n){"use strict";n.d(t,{g:function(){return P}});var r=n("97458"),i=n("71357"),s=n("3242"),o=n("78741"),a=n("33931"),l=n("36175"),d=n("24978"),c=n("76576"),u=n("32658"),h=n("80213"),f=n("66208"),p=n("19645"),x=n("51888"),m=n("21134"),g=n("61884"),j=n("14123"),y=n.n(j),M=n("45641"),v=n("52983"),S=n("95925"),Z=n("77422"),b=n("21807"),I=n("46591"),D=n("99997"),w=n("23675"),A=n("1438");let C=({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)(c.Z,{status:"processing"}),(0,r.jsx)("div",{style:{width:180},children:(0,r.jsx)(u.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)(u.Z.Paragraph,{ellipsis:n,strong:!0,...i,children:t})})]}),P=({data:e,cwd:t,index:n})=>{let{loaders:c,resource:j}=e,[P,E]=(0,v.useState)(n||0),{theme:T}=(0,Z.useTheme)(),k="light"===T,z=c[P],N=z.input||"",R=z.errors&&z.errors.length;return(0,r.jsxs)(a.Z,{style:{height:"100%"},children:[(0,r.jsx)(l.Z,{span:5,style:{borderRight:k?"1px solid #f0f0f0":void 0,padding:S.Size.BasePadding},children:(0,r.jsxs)(d.Z,{direction:"vertical",style:{width:"100%"},children:[(0,r.jsx)(w.D,{text:"Executions"}),(0,r.jsx)(f.Z,{mode:"left",style:{marginTop:S.Size.BasePadding},children:c.map((e,t,n)=>{let{loader:s,isPitch:o}=e;return(0,r.jsxs)(f.Z.Item,{dot:o?(0,r.jsx)(p.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)(x.Z,{title:s,trigger:"hover",children:(0,r.jsx)(m.ZP,{type:t===P?"primary":"default",block:!0,onClick:()=>{E(t)},style:{textAlign:"left"},children:(0,r.jsxs)(u.Z.Text,{ellipsis:!0,style:{color:"inherit"},children:[(0,r.jsx)(u.Z.Text,{strong:!0,style:{color:"inherit"},children:(0,Z.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)(u.Z.Text,{children:"\u2B07\uFE0F"})})]},t)})})]})}),(0,r.jsxs)(l.Z,{span:19,style:{height:"100%"},children:[(0,r.jsx)(l.Z,{span:24,children:(0,r.jsxs)(b.Zb,{title:"Loader Details",style:{border:"none"},collapsable:!0,defaultCollapsed:!0,extra:(0,r.jsx)(p.Z,{icon:(0,r.jsx)(i.Z,{}),color:"default",children:y()(z.startAt).format("YYYY-MM-DD HH:mm:ss")}),children:[z.isPitch?(0,r.jsx)(u.Z.Text,{code:!0,children:"pitch"}):null,z.isPitch||R||!(0,M.Z)(j.path,o.Constants.JSExtension)?null:(0,r.jsx)(A.E,{input:N,output:z.result||""}),(0,r.jsxs)(d.Z,{direction:"vertical",style:{padding:S.Size.BasePadding,wordBreak:"break-all"},children:[(0,r.jsx)(C,{label:"file path",value:(0,Z.beautifyPath)(j.path,t),code:!0}),(0,r.jsx)(C,{label:"resource path",value:(0,r.jsx)(D.XF,{cwd:t,url:j.path,loc:"",disabled:!0})}),(0,r.jsx)(C,{label:"resource query",value:j.queryRaw||"-"}),(0,r.jsx)(C,{label:"duration",value:(0,Z.formatCosts)(z.costs),mark:!0}),(0,r.jsx)(C,{label:"loader name",value:z.loader,code:!0}),(0,r.jsx)(C,{label:"loader index",value:`${z.loaderIndex}`}),(0,r.jsx)(C,{label:"loader path",value:(0,r.jsx)(D.XF,{cwd:t,url:z.path,loc:"",disabled:!0})}),(0,r.jsx)(C,{label:"options",value:JSON.stringify(z.options||"-"),copyable:!0,ellipsis:{rows:2,expandable:!0,symbol:"more"}})]})]})}),R?(0,r.jsxs)(l.Z,{span:24,style:{height:"53%",minHeight:400},children:[(0,r.jsx)("div",{style:{padding:S.Size.BasePadding,borderTop:`1px solid ${k?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`,borderBottom:`1px solid ${k?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:(0,r.jsx)(w.D,{text:`the error stack of [${z.loader}] ${z.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:z.errors[0].message,language:"javascript"})})]}):(0,r.jsxs)(l.Z,{span:24,style:{height:"53%",minHeight:400},children:[(0,r.jsx)("div",{style:{padding:S.Size.BasePadding,borderTop:`1px solid ${k?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`,borderBottom:`1px solid ${k?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:(0,r.jsx)(w.D,{text:`the result of [${z.loader}] ${z.isPitch?"pitch":""}`})}),z.isPitch?z.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:z.result,language:(0,Z.getModifiedLanguage)(j.path)})}):(0,r.jsx)(g.Z,{}):(0,r.jsxs)("div",{style:{height:"90%"},children:[(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(l.Z,{span:12,style:{padding:`${S.Size.BasePadding/2}px ${S.Size.BasePadding}px`},children:(0,r.jsx)(u.Z.Text,{strong:!0,children:"Input"})}),(0,r.jsx)(l.Z,{span:12,style:{padding:`${S.Size.BasePadding/2}px ${S.Size.BasePadding}px`},children:(0,r.jsx)(u.Z.Text,{strong:!0,children:"Output"})})]}),(0,r.jsx)("div",{style:{height:"86%"},children:(0,r.jsx)(I.ZX,{filepath:j.path,before:N,after:z.result||""})})]})]})]})]})}},26255:function(e,t,n){"use strict";n.d(t,{N:function(){return x},U:function(){return m}});var r=n("97458"),i=n("78741"),s=n("17467"),o=n("96645"),a=n("52983"),l=n("83053"),d=n("83911"),c=n("61550"),u=n("15890"),h=n("77422"),f=n("95925"),p=n("89639");let x=e=>{let{manifestLoader:t=h.fetchManifest,api:n,children:x,body:m=null,showSkeleton:g=!0,fallbackComponent:j}=e,y=t(),[M,v]=(0,a.useState)(),[S,Z]=(0,a.useState)(f.ComponentState.Pending),[b,I]=(0,a.useState)({}),{loader:D}=(0,h.useDataLoader)(M);function w(e){(function(e){return e.then(e=>{v(e)}).catch(e=>{throw Z(f.ComponentState.Fail),e})})(y).then(()=>{(function(e){if(!e)return;let t=(0,c.Z)(i.SDK.ServerAPI.APIExtends);if((0,u.Z)(t,n)){Z(f.ComponentState.Success);return}e.loadAPI(n,m).then(e=>{!(0,d.Z)(e)&&(I(e),Z(f.ComponentState.Success))}).catch(e=>{console.error(e),Z(f.ComponentState.Fail)})})(e)})}let A=(0,a.useCallback)(({req:e,res:t})=>{e.api===n&&((0,l.Z)(e.body,m)||(0,d.Z)(e.body)&&(0,d.Z)(m))&&!(0,l.Z)(b,t)&&I(t),Z(f.ComponentState.Success)},[b,n,m]);(0,a.useEffect)(()=>{w(D)},[D,n,m]),(0,a.useEffect)(()=>{if(D)return D.onDataUpdate(n,A),()=>{D.removeOnDataUpdate(n,A)}},[D,n,m]);if(S===f.ComponentState.Pending)return g?(0,r.jsx)(s.Z,{active:!0}):null;if(S===f.ComponentState.Fail)return j?j:(0,r.jsx)(p.c,{retry:()=>{Z(f.ComponentState.Pending),y=t(),w()}});return S===f.ComponentState.Updating?(0,r.jsx)(o.Z,{spinning:!0,children:x(b)}):x(b)};function m({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)(x,{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("17467"),s=n("52983"),o=n("77422"),a=n("95925"),l=n("89639");function d(e,t,n){let d=e();return function(){let[c,u]=(0,s.useState)(),[h,f]=(0,s.useState)(a.PageState.Pending),[p,x]=(0,s.useState)({}),{loader:m}=(0,o.useDataLoader)(c);function g(e){return e.then(e=>{u(e)}).catch(()=>{f(a.PageState.Fail)})}function j(e){e&&Promise.all(t.map(([t])=>e.loadData(t))).then(e=>{x(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(m)})},[m]),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(m)}).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 c}});var r=n("97458"),i=n("32658"),s=n("77410"),o=n.n(s),a=n("96883"),l=n("7368");let d=+Date.now().toString().slice(-4)+1e3,c=({cwd:e,url:t,loc:n,windowId:s=d,label:c,disabled:u,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:x}=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:()=>{!u&&(0,l.a)({file:f,line:p,column:x,windowId:s})},style:{cursor:u?"revert":"pointer"},children:[c||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("21134"),s=n("32658"),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("33833");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 I}});var r=n("97458"),i=n("24978"),s=n("32658"),o=n("19645"),a=n("5561"),l=n("33931"),d=n("36175"),c=n("52983"),u=n("78741"),h=n("25128"),f=n("44278"),p=n("77422"),x=n("57448"),m=n("21807"),g=n("43622"),j=n("35972"),y=n("59544"),M=n("19942"),v=n("57102"),S=n("9665");let Z=e=>{let t=(0,c.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)(x.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})},b=({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})},I=({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:u.SDK.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!1},children:e=>{let o=(0,p.formatSize)(e.all.total.size);return(0,r.jsxs)(m.Zb,{title:n("Bundle Overall"),className:M.Z.card,children:[(0,r.jsxs)(l.Z,{gutter:16,children:[(0,r.jsx)(d.Z,{span:12,className:v.Z.container,children:(0,r.jsx)(S._,{theme:"success",number:o,description:"Total Size",numberFontSize:"30px",onClick:()=>{i(u.Client.RsdoctorClientRoutes.BundleSize)}})}),(0,r.jsx)(d.Z,{span:12,className:v.Z.container,children:(0,r.jsx)(x.sv,{cwd:t,duplicatePackages:s,button:(0,r.jsx)(S._,{theme:0===s.length?"success":"warning",number:s.length,description:"Duplicate Packages"})})})]}),(0,r.jsx)(b,{res:e})]})}})}},19942:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}}),n("56323");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("32658"),o=n("80213"),a=n("24978"),l=n("85817"),d=n("77422"),c=n("21807"),u=n("85057"),h=n("92381"),f=n("40263"),p=n("19942"),x=n("55295");let m=({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)(c.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,c=(0,r.jsx)(l.Z,{className:x.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)(m,{name:"Bootstrap ~ BeforeCompile",children:[(0,r.jsx)(u.E,{summary:e}),c]},s);case i.ER.M.Compile:return(0,r.jsx)(m,{name:"Compile",showDivider:!1,children:c},s);case i.ER.M.Done:return(0,r.jsxs)(m,{name:"AfterCompile ~ Done",children:[(0,r.jsx)(h.T,{summary:e}),c]},s);case i.ER.M.Minify:return(0,r.jsxs)(m,{name:"Minify",children:[(0,r.jsx)(f.Z,{summary:e}),c]},s);default:return null}})})})}},55295:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}}),n("24580");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("71151");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("33931"),s=n("36175"),o=n("24978"),a=n("5561"),l=n("52136"),d=n("77422"),c=n("51264"),u=n("21807"),h=n("59544"),f=n("19942"),p=n("57102"),x=n("57448"),m=n("14496"),g=n("9665");let j=({configs:e=[],cwd:t,envinfo:n,alerts:j=[]})=>{let{t:y}=(0,d.useI18n)(),M=(0,l.Z)(j,e=>"warn"===e.level).length,v=j.length-M,S=[...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)(u.Zb,{title:y("Project Overall"),extra:(0,r.jsx)(c.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)(x.XU,{button:(0,r.jsx)(g._,{theme:0===v?"success":"error",number:v,description:"Errors"}),drawerProps:{title:"Errors List"},children:(0,r.jsxs)(o.Z,{direction:"vertical",style:{width:"100%"},children:[(0,r.jsx)(m.QE,{defaultOpen:!1}),(0,r.jsx)(m.CG,{filter:e=>"error"===e.level}),(0,r.jsx)(m.$X,{filter:e=>"error"===e.level})]})})}),(0,r.jsx)(s.Z,{span:12,className:p.Z.container,children:(0,r.jsx)(x.XU,{button:(0,r.jsx)(g._,{theme:0===M?"success":"warning",number:M,description:"Warnings"}),drawerProps:{title:"Warnings List"},children:(0,r.jsxs)(o.Z,{direction:"vertical",style:{width:"100%"},children:[(0,r.jsx)(m.QE,{defaultOpen:!1}),(0,r.jsx)(m.CG,{filter:e=>"warn"===e.level}),(0,r.jsx)(m.$X,{filter:e=>"warn"===e.level})]})})})]}),(0,r.jsx)(a.Z,{className:h.Z.root,items:S,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("63337"),s=n("51888"),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 A}});var r=n("97458"),i=n("52983"),s=n("73934"),o=n("50002"),a=n("36175"),l=n("60737"),d=n("21134"),c=n("63337"),u=n("32658"),h=n("33931"),f=n("24978"),p=n("36535"),x=n("20980"),m=n("18631"),g=n("42997"),j=n("46641"),y=n("78741"),M=n("95925"),v=n("77422"),S=n("35972"),Z=n("33448"),b=n("46591"),I=n("43622");let D=({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)(b.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)(x.Z,{})}),style:o?{width:80}:void 0,children:o?null:(0,r.jsx)(c.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)(u.Z.Text,{copyable:!0,children:(0,r.jsx)(u.Z.Text,{code:!0,strong:!0,children:t.request})})},{title:"Duration",width:80,render:(e,t)=>(0,r.jsx)(u.Z.Text,{strong:!0,children:(0,v.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)(u.Z.Text,{copyable:!0,children:t.result}):(0,r.jsx)(m.Z,{style:{color:"#f50"}})}],dataSource:s})})})]})},w=e=>{let{resolver:t,cwd:n}=e,[d,c]=(0,i.useState)(""),u="/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]),x=p.length&&p.every(e=>e.indexOf(u)>-1),m=(0,i.useMemo)(()=>(0,v.createFileStructures)({files:p.length?p:f,cwd:n,fileTitle:(e,t)=>(0,r.jsx)("div",{onClick:()=>c(e),children:t})}),[e.filename]);return(0,r.jsxs)(h.Z,{justify:"start",align:"top",wrap:!1,gutter:M.Size.BasePadding,children:[(0,r.jsx)(a.Z,{span:7,children:(0,r.jsx)(l.Z,{title:"Files",children:(0,r.jsx)(S.z,{style:{width:"100%",height:735,overflow:"scroll"},treeData:m,defaultExpandedKeys:(0,v.mapFileKey)(m,x?1:4,x?void 0:e=>{let t=(0,o.Z)(e,"__RESOURCEPATH__").indexOf(u)>-1;return!!(p.length&&p.every(e=>e.indexOf(u)>-1))||!t})},`tree_${e.filename}`)})}),d&&(0,r.jsx)(I.Nu,{api:y.SDK.ServerAPI.API.GetResolverFileDetails,body:{filepath:d},children:e=>(0,r.jsx)(D,{...e})})]})},A=(0,I.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:M.Size.BasePadding,marginBottom:M.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)(I.Nu,{api:y.SDK.ServerAPI.API.GetResolverFileTree,children:e=>(0,r.jsx)(w,{filename:n,resolver:e,cwd:t})})]})}})},42068:function(e,t,n){"use strict";n.d(t,{k:function(){return x}});var r=n("97458"),i=n("52983"),s=n("38937"),o=n("21134"),a=n("32658"),l=n("32443"),d=n("24978"),c=n("50223"),u=n("42997"),h=n("33448"),f=n("95925");let p=({style:e,onChange:t,loaderNames:n})=>{let[d,u]=(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)(c.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=>{u(e),t(e)},children:n.map(e=>(0,r.jsx)(l.Z.Option,{label:e,value:e,children:e},e))})]})},x=({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)(u.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 u}});var r=n("97458"),i=n("61884"),s=n("24978"),o=n("32658"),a=n("21134"),l=n("52983");let d="Load data failed, please try again",c="retry",u=l.memo(({title:e=d,buttonText:t=c,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("51888"),s=n("24978"),o=n("32658"),a=n("33931"),l=n("36175");n("78741");var d=n("25128");n("46641");var c=n("95925"),u=n("57448"),h=n("57031");n("43622");let f=({duplicatePackages:e=[],cwd:t,children:n,...f})=>(0,r.jsx)(u.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:[c.Size.BasePadding,c.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("21134"),s=n("58323"),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("32658"),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 c}});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]},c=({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("19645"),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 m},Color:function(){return j},ComponentState:function(){return f},Language:function(){return x},MAIN_BG:function(){return v},PageState:function(){return h},ROOT_BG_COLOR:function(){return S},Size:function(){return g},TAG_PALLETE:function(){return M},Theme:function(){return u},ViewMode:function(){return p},drawerWidth:function(){return y}});var r,i,s,o,a,l,d,c,u=((r=u||{}).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 x=((a=x||{}).Cn="cn",a.En="en",a);var m=((l=m||{}).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=((c=j||{}).Red="#e17055",c.Green="#52c41a",c.Yellow="#faad14",c.Blue="#1677ff",c);let y="undefined"==typeof window?0:.85*window.innerWidth>=1100?.85*window.innerWidth:1100,M={COLOR_A:"#90DCE9",COLOR_B:"green",COLOR_C:"#4EAAB9",COLOR_D:"#B7E9F4",COLOR_E:"#2E7CBE",DARK_BLUE:"#1554ad"},v="",S="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 $}});var r=n("97458"),i=n("23123"),s=n("9172"),o=n("59876"),a=n("80140"),l=n("3242"),d=n("78741"),c=n("61884"),u=n("60737"),h=n("64830"),f=n("32658"),p=n("58323"),x=n("24978"),m=n("51888"),g=n("80213"),j=n("19645"),y=n("21134"),M=n("33931"),v=n("36175"),S=n("80613"),Z=n("20942"),b=n("77410"),I=n("52983"),D=n("43622"),w=n("18602"),A=n("94386"),C=n("35972"),P=n("33448"),E=n("67522"),T=n("57448"),k=n("95925"),z=n("77422"),N=n("53394");let R=[],_={source:"source code",transformed:"Transformed Code (After compile)",parsedSource:"Bundled Code (After bundle and tree-shaking)"},O={margin:"none",marginInlineEnd:0},L=({data:e})=>{let[t,n]=(0,I.useState)("parsedSource"),{t:s}=(0,z.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)(T.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)(D.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)(u.Z,{className:"code-size-card",style:{width:"100%"},tabList:Object.keys((0,S.Z)(e,e=>!e)).map(e=>({tab:e})).map(e=>({...e,tab:o[e.tab],key:e.tab})),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:_.source})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)(f.Z.Text,{strong:!0,children:["Transformed:"," "]}),(0,r.jsx)(f.Z.Text,{children:_.transformed})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)(f.Z.Text,{strong:!0,children:["Bundled Source:"," "]}),(0,r.jsx)(f.Z.Text,{children:_.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:(0,r.jsx)(l.ZP,{theme:"vs-dark",language:(0,z.getOriginalLanguage)(a),height:window.innerHeight/1.5,value:e[t],options:{readOnly:!0,domReadOnly:!0,fontSize:14,wordWrap:"bounded",minimap:{enabled:!1}}})}):(0,r.jsx)(c.Z,{description:"No Code. Rspack builder not support code yet. And if you upload the stats.json to analysis, it's also no code to show."})})})})},B=({id:e,show:t,setShow:n,cwd:i})=>e?(0,r.jsx)(p.Z,{open:t,maskClosable:!0,width:k.drawerWidth,onClose:()=>n(!1),children:(0,r.jsx)(D.Nu,{api:d.SDK.ServerAPI.API.GetAllModuleGraph,body:{},children:t=>(0,r.jsx)(w.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,I.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)(x.Z,{children:[(0,r.jsx)(m.Z,{title:`total modules count is ${e.length}, the filtered modules count is ${n.length}`,children:(0,r.jsxs)(x.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)(m.Z,{title:(0,r.jsxs)(x.Z,{direction:"vertical",children:[(0,r.jsxs)(f.Z.Text,{style:{color:"inherit"},children:["Total modules bundled size: ",(0,z.formatSize)(o)]}),(0,r.jsxs)(f.Z.Text,{style:{color:"inherit"},children:["Total modules source size: ",(0,z.formatSize)(i)]}),(0,r.jsxs)(f.Z.Text,{style:{color:"inherit"},children:["Filtered modules bundled size: ",(0,z.formatSize)(a)]}),(0,r.jsxs)(f.Z.Text,{style:{color:"inherit"},children:["Filtered modules source size: ",(0,z.formatSize)(l)]})]}),children:(0,r.jsxs)(x.Z,{children:[(0,r.jsxs)(f.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules Size:"," ",a===o?(0,z.formatSize)(o):`${(0,z.formatSize)(a)} / ${(0,z.formatSize)(o)}`]}),(0,r.jsx)(s.Z,{})]})}),(0,r.jsx)(g.Z,{type:"vertical"}),(0,r.jsx)(m.Z,{title:(0,r.jsxs)(x.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)(A.Ct,{label:"chunk",value:e.name},e.name))]}),children:(0,r.jsxs)(x.Z,{children:[(0,r.jsxs)(f.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Chunks: ",t.length]}),(0,r.jsx)(s.Z,{})]})})]})},$=({asset:e,chunks:t,modules:n,moduleSizeLimit:i,height:s,root:l})=>{let[h,p]=(0,I.useState)(""),[g,S]=(0,I.useState)(!1),[D,w]=(0,I.useState)([]),[A,T]=(0,I.useState)(!1),_=(0,I.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]),$=(0,I.useMemo)(()=>(0,z.createFileStructures)({files:_.map(e=>e.path).filter(Boolean),inlinedResourcePathKey:G,fileTitle(e,t){let i=_.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,c=!l&&0===s&&n.filter(e=>e!==i&&e.modules&&e.modules.indexOf(i.id)>-1);return(0,r.jsxs)(x.Z,{children:[(0,r.jsx)(E.Z,{ellipsis:!0,style:{maxWidth:500},text:t,keyword:h}),0!==s?(0,r.jsx)(m.Z,{title:(0,r.jsxs)(x.Z,{direction:"vertical",children:[(0,r.jsx)(j.Z,{color:"orange",children:"Bundled Size:"+(0,z.formatSize)(s)}),(0,r.jsx)(j.Z,{color:"volcano",children:"Source Size:"+(0,z.formatSize)(a)})]}),color:"white",children:(0,r.jsx)(j.Z,{color:"purple",style:O,children:"Bundled: "+(0,z.formatSize)(s)})}):0!==a?(0,r.jsx)(j.Z,{color:"geekblue",children:"Source Size:"+(0,z.formatSize)(a)}):null,l?(0,r.jsx)(m.Z,{title:(0,r.jsx)(x.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:O,children:"concatenated"})}):null,c&&c.length?(0,r.jsx)(m.Z,{title:(0,r.jsxs)(x.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:"}),c.map(({id:e,path:t})=>{if((0,z.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,b.relative)((0,b.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:()=>{w([i.id]),T(!0)}}),(0,r.jsx)(L,{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)(x.Z,{children:[(0,r.jsx)(f.Z.Text,{children:t}),s>0?(0,r.jsx)(j.Z,{style:O,color:"orange",children:"Bundled:"+(0,z.formatSize)(s)}):null]})}return t}}),[_]);return(0,I.useEffect)(()=>{p(""),S(!1)},[e]),(0,I.useEffect)(()=>{S(!1)},[h]),(0,r.jsx)(N.r.Provider,{value:{moduleJumpList:D,setModuleJumpList:w},children:(0,r.jsxs)(u.Z,{title:`Modules of "${e.path}"`,bodyStyle:{overflow:"scroll",height:s},size:"small",children:[n.length?(0,r.jsxs)(M.Z,{children:[(0,r.jsx)(v.Z,{span:24,children:(0,r.jsx)(F,{modules:n,chunks:t,filteredModules:_})}),(0,r.jsx)(v.Z,{span:24,children:(0,r.jsxs)(x.Z,{children:[(0,r.jsx)(P.a,{placeholder:"search module by keyword",onChange:e=>p(e)},e.path),(0,r.jsx)(y.ZP,{onClick:()=>S(!0),size:"small",icon:(0,r.jsx)(a.Z,{}),children:"expand all"})]})}),(0,r.jsx)(v.Z,{span:24,style:{marginTop:k.Size.BasePadding},children:_.length?(0,r.jsx)(C.z,{onExpand:e=>{R=e},treeData:$,autoExpandParent:!0,defaultExpandParent:!0,defaultExpandedKeys:R?.length?R:1===$.length?[$[0].key]:[],defaultExpandAll:g||_.length<=20},`tree_${h}_${g}_${e.path}`):(0,r.jsx)(c.Z,{description:(0,r.jsx)(f.Z.Text,{strong:!0,children:`"${h}" can't match any modules`})})})]}):(0,r.jsx)(c.Z,{description:(0,r.jsx)(f.Z.Text,{strong:!0,children:`"${e.path}" doesn't have any modules`})}),(0,r.jsx)(B,{id:D?.length?D[D.length-1]:"",show:A,setShow:T,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("54729"),o=n("6253"),a=n("33931"),l=n("36175"),d=n("77422"),c=n("95925"),u=n("50818"),h=n("57448"),f=n("87457");let{useToken:p}=s.Z,x=({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})},m=({titles:e,datas:t,bgColor:n})=>{let[s,a]=(0,i.useState)(0);return(0,r.jsx)(u.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)(x,{...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)(m,{titles:["Total Files"],datas:[{data:n.all.total,total:n.all.total.size,showProgress:!0}]}),(0,r.jsx)(m,{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)(m,{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)(m,{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)(m,{titles:["HTML Files"],datas:[{data:n.html.total,total:n.all.total.size,showProgress:!0}]}),(0,r.jsx)(u.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*c.Size.BasePadding,c.Size.BasePadding]:[c.Size.BasePadding,c.Size.BasePadding],wrap:!0,style:{marginBottom:c.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("23123"),s=n("59876"),o=n("9172"),a=n("80140"),l=n("38879"),d=n("78741"),c=n("32443"),u=n("24978"),h=n("19645"),f=n("49607"),p=n("60737"),x=n("61884"),m=n("51888"),g=n("33931"),j=n("36175"),y=n("32658"),M=n("21134"),v=n("21696"),S=n("80213"),Z=n("6139"),b=n("15890"),I=n("20942"),D=n("52983"),w=n("43622"),A=n("94386"),C=n("35972"),P=n("33448"),E=n("67522"),T=n("23675"),k=n("95925"),z=n("77422"),N=n("16581"),R=n("46591"),_=n("89256");n("95063");let{Option:O}=c.Z,L=({errors:e,cwd:t,summary:n,entryPoints:L})=>{let[B,G]=(0,D.useState)([]),[F,$]=(0,D.useState)(0),[W,K]=(0,D.useState)(""),[U,V]=(0,D.useState)(0),[Y,H]=(0,D.useState)(!1),[Q,J]=(0,D.useState)(""),[X,q]=(0,D.useState)(""),[ee,et]=(0,D.useState)(null),[en,er]=(0,D.useState)(!1),[ei,es]=(0,D.useState)("tree"),{t:eo}=(0,z.useI18n)(),ea=n.all.total.files,el=(0,D.useCallback)(e=>t=>{"module"===e?J(t):"chunk"===e&&q(t)},[]),ed=e=>(0,r.jsxs)(c.Z,{defaultValue:"kb",onChange:el(e),children:[(0,r.jsx)(O,{value:"kb",children:"KB"}),(0,r.jsx)(O,{value:"mb",children:"MB"})]}),ec=(0,D.useCallback)((0,Z.Z)(e=>{$("mb"===Q?1048576*e:1024*e)},300),[]),eu=(0,D.useCallback)((0,Z.Z)(e=>{V("mb"===X?1048576*e:1024*e)},300),[]),eh=(0,D.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,b.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,D.useMemo)(()=>(0,z.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)(u.Z,{onClick:()=>{et(s)},children:[(0,r.jsx)(E.Z,{text:t,keyword:W}),(0,r.jsx)(h.Z,{color:"success",style:{margin:0},children:(0,z.formatSize)(n)}),i?(0,r.jsx)(h.Z,{color:"cyan",style:{margin:0},children:"initial"}):null,(0,r.jsx)(R.ut,{path:s,content:o,editorConfig:{readOnly:!1,domReadOnly:!1}})]})}}),[eh]);return(0,r.jsxs)(D.Fragment,{children:[(0,r.jsx)(N.b,{cwd:t,errors:e,summary:n}),(0,r.jsxs)(f.ZP.Group,{value:ei,onChange:e=>es(e.target.value),style:{marginBottom:k.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)(u.Z,{children:(0,r.jsx)(T.D,{text:"From: Webpack Bundle Analyzer"})}),children:(0,r.jsx)(w.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)(x.Z,{})})}),(0,r.jsx)(p.Z,{hidden:"tile"===ei,title:(0,r.jsxs)(u.Z,{children:[(0,r.jsx)(T.D,{text:"Bundle Analysis"}),(0,r.jsx)(m.Z,{color:"white",title:(0,r.jsxs)(u.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.jsx)(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.jsx)(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)(M.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)(M.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)(M.ZP,{onClick:()=>er(!1),children:(0,r.jsxs)(y.Z.Text,{children:["Expand ",(0,r.jsx)(a.Z,{})]})}):(0,r.jsx)(M.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:[k.Size.BasePadding,k.Size.BasePadding],children:[L&&L.length?(0,r.jsx)(j.Z,{children:(0,r.jsx)(c.Z,{mode:"multiple",value:B.map(e=>e.name),style:{minWidth:230,width:"auto",maxWidth:300},placeholder:"filter assets by entry point",onChange:e=>{G(e.map(e=>L.find(t=>t.name===e)).filter(Boolean))},allowClear:!0,onClear:()=>{G([])},children:L.map(e=>(0,r.jsx)(c.Z.Option,{value:e.name,children:(0,r.jsx)(u.Z,{children:(0,r.jsx)(A.Ct,{label:e.name,value:(0,z.formatSize)(e.size),tooltip:e.name})})},e.name))})}):null,(0,r.jsx)(j.Z,{children:(0,r.jsx)(P.a,{placeholder:"search asset by keyword",onChange:e=>{K(e),H(!1)}})}),(0,r.jsx)(j.Z,{span:7,children:(0,r.jsx)(v.Z,{min:0,style:{width:"95%"},addonBefore:(0,r.jsxs)(u.Z,{children:[(0,r.jsx)(y.Z.Text,{style:{fontSize:14,color:"inherit"},children:"Asset Size"}),(0,r.jsx)(m.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=>eu(Number(e)),addonAfter:ed("chunk")})}),(0,r.jsx)(j.Z,{span:7,children:(0,r.jsx)(v.Z,{min:0,style:{width:"95%"},addonBefore:(0,r.jsxs)(u.Z,{children:[(0,r.jsx)(y.Z.Text,{style:{fontSize:14,color:"inherit"},children:"Module Size"}),(0,r.jsx)(m.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=>{ec(Number(e))},addonAfter:ed("module")})}),(0,r.jsx)(j.Z,{span:24,children:eh.length?(0,r.jsxs)(g.Z,{gutter:k.Size.BasePadding,children:[(0,r.jsx)(j.Z,{span:8,children:(0,r.jsx)(p.Z,{title:(0,r.jsxs)(u.Z,{children:[(0,r.jsx)(y.Z.Text,{children:eo("Output Assets List")}),(0,r.jsx)(S.Z,{type:"vertical"}),(0,r.jsx)(m.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)(S.Z,{type:"vertical"}),(0,r.jsx)(y.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:(0,z.formatSize)((0,I.Z)(eh,e=>e.size))})]}),size:"small",bodyStyle:{overflow:"scroll",height:en?410:800},extra:(0,r.jsx)(M.ZP,{size:"small",icon:(0,r.jsx)(a.Z,{}),onClick:()=>H(!0),children:"expand all"}),children:(0,r.jsx)(C.z,{treeData:ef,autoExpandParent:!0,defaultExpandAll:Y||eh.length<=20},`tree_${W}_${Y}`)})}),(0,r.jsx)(j.Z,{span:16,children:ee?(0,r.jsx)(w.Nu,{api:d.SDK.ServerAPI.API.GetAssetDetails,body:{assetPath:ee},children:e=>(0,r.jsx)(_.VT,{asset:e.asset,chunks:e.chunks,modules:e.modules,height:en?410:800,moduleSizeLimit:F,root:t})}):(0,r.jsx)(p.Z,{bodyStyle:{height:en?450:800},children:(0,r.jsx)(x.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)(x.Z,{})})]})})]})},B=(0,w.U$)({api:d.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:e=>{let{root:t,errors:n}=e.project;return(0,r.jsx)(w.Nu,{api:d.SDK.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!0},children:e=>(0,r.jsx)(w.Nu,{api:d.SDK.ServerAPI.API.GetEntryPoints,children:i=>(0,r.jsx)(L,{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("33931"),s=n("36175"),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("19645"),s=n("63337"),o=n("61884"),a=n("78398"),l=n("86938"),d=n("52983"),c=n("77422");n("92617");let u=[{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,c.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:u}):(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("73670"),s=n("13341"),o=n("9172"),a=n("64579"),l=n("78741"),d=n("24978"),c=n("32658"),u=n("64830"),h=n("19645"),f=n("52983"),p=n("73057"),x=n("43622"),m=n("95925"),g=n("53394");n("32560");let j="file-tree-com",y=e=>{let{treeData:t,needJumpto:n=!1,defaultOpened:y=!1,defaultOpenFather:M=0}=e,{required:v,handlers:S}=(0,p.Du)({id:`${j}-tree`,data:t||[],defaultOpened:y,multipleSelect:!1,refreshAsyncNodes:!0}),Z=(0,f.useCallback)(({node:e,onToggle:t})=>(M&&e.data.level<M&&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)(c.Z.Text,{code:!0,children:[e.data.name,(0,r.jsx)(u.Z,{content:(0,r.jsx)(r.Fragment,{children:e.data.__RESOURCEPATH__?(0,r.jsx)(c.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)(u.Z,{content:(0,r.jsx)(x.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:m.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:m.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,{...v,...S,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("33931"),s=n("36175"),o=n("61884"),a=n("41766"),l=n("86938"),d=n("52983"),c=n("77422"),u=n("25321");n("92617");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,c.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)(u.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 T}});var r,i=n("97458"),s=n("7913"),o=n("64579"),a=n("9172"),l=n("36535"),d=n("20980"),c=n("78741"),u=n("33931"),h=n("64830"),f=n("76576"),p=n("32658"),x=n("19645"),m=n("21134"),g=n("36175"),j=n("61884"),y=n("49607"),M=n("52983"),v=n("43622"),S=n("23675"),Z=n("95925"),b=n("11390"),I=n("11682"),D=n("25321"),w=n("98771"),A=n("35210"),C=n("3022"),P=n("39465");var E=((r=E||{})[r.Dependencies=0]="Dependencies",r[r.Chunks=1]="Chunks",r);let T=e=>{let{curModule:t,modules:n,dependencies:r,cwd:E,selectedChunk:T=""}=e,{t:k}=(0,b.QT)(),[z,N]=(0,M.useState)([]),[R,_]=(0,M.useState)(0),[O,L]=(0,M.useState)(!0),{data:B}=(0,P.h)(n,z,t),[G,F]=(0,M.useState)({});return(0,M.useEffect)(()=>{N((0,C.e)(t,n))},[t,n]),(0,M.useEffect)(()=>{let e={};z.forEach(t=>{let r=[],i=new Map;(0,C.F)(t,n,r,i),e[t.id]=r}),F(e)},[z]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.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:`: ${k("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)(x.Z,{color:Z.TAG_PALLETE.DARK_BLUE,children:"Concatenated"})}),(0,i.jsx)(p.Z.Text,{children:`: ${k("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)(m.ZP,{type:"primary",icon:(0,i.jsx)(a.Z,{}),children:"Usage"})})}),(0,i.jsxs)(u.Z,{gutter:4,style:{marginTop:Z.Size.BasePadding},children:[(0,i.jsx)(g.Z,{span:O?18:12,children:(0,i.jsx)(u.Z,{className:`${w.m2}-file-tree`,justify:"center",children:(0,i.jsxs)(g.Z,{span:24,style:{padding:Z.Size.BasePadding/2},children:[(0,i.jsx)(S.D,{text:"Current Module Imported Reasons Tree:"}),z?(0,i.jsx)(D.z,{cwd:E,treeData:T?B.filter(e=>G[e.id].indexOf(T)>=0):B,needCode:!0,needShowAllTree:!0,needJumpto:!0,selectedChunk:T}):(0,i.jsx)(j.Z,{className:`${w.m2}-empty`})]})})}),(0,i.jsx)(g.Z,{span:O?6:12,children:(0,i.jsxs)("div",{className:`${w.m2}-file-tree`,style:{padding:Z.Size.BasePadding/2},children:[O?(0,i.jsx)(h.Z,{content:"Unfold [Dependencies & Chunks] Box.",children:(0,i.jsx)(l.Z,{onClick:()=>L(!O),style:{marginRight:8}})}):(0,i.jsx)(h.Z,{content:"Fold [Dependencies & Chunks] Box.",children:(0,i.jsx)(d.Z,{onClick:()=>L(!O),style:{marginRight:8}})}),(0,i.jsx)(y.ZP.Group,{options:[{label:"Dependencies",value:0},{label:"Chunks",value:1}],onChange:e=>_(e.target.value),value:R,optionType:"button",buttonStyle:"solid",size:"middle"}),O?(0,i.jsx)(i.Fragment,{}):(0,i.jsxs)(i.Fragment,{children:[0===R&&(0,i.jsx)(g.Z,{span:24,style:{marginTop:Z.Size.BasePadding/2},children:t?(0,i.jsx)(A.Z,{module:t,dependencies:r,cwd:E}):(0,i.jsx)(j.Z,{className:`${w.m2}-empty`})}),1===R&&(0,i.jsx)(g.Z,{span:18,style:{marginTop:Z.Size.BasePadding/2},children:t?(0,i.jsx)(v.Nu,{api:c.SDK.ServerAPI.API.GetChunksByModuleId,body:{moduleId:t.id},children:e=>(0,i.jsx)(I.t,{chunks:e})}):(0,i.jsx)(j.Z,{className:`${w.m2}-empty`})})]})]})})]})]})}},18602:function(e,t,n){"use strict";n.d(t,{H:function(){return j}});var r=n("97458"),i=n("23416"),s=n("78741"),o=n("60737"),a=n("24978"),l=n("32658"),d=n("33931"),c=n("36175"),u=n("32443"),h=n("52983"),f=n("43622"),p=n("77422"),x=n("61550"),m=n("53394"),g=n("31837");n("92617");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)(m.r.Consumer,{children:({moduleJumpList:f,setModuleJumpList:m})=>(0,r.jsxs)(o.Z,{title:(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(i.Z,{onClick:()=>{m([...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)(c.Z,{children:(0,r.jsx)(u.Z,{allowClear:!0,placeholder:"Select Chunk To Filter Modules Links",showSearch:!0,style:{width:300},options:(0,x.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)(c.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);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("60737"),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 c}});var r=n("97458"),i=n("78741"),s=n("14496"),o=n("43622"),a=n("23312"),l=n("45838"),d=n("38613");let c=(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("58450"),s=n("33931"),o=n("36175"),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("33931"),a=n("36175"),l=n("60737"),d=n("24978"),c=n("76576"),u=n("32658"),h=n("19645"),f=n("49162"),p=n("61550"),x=n("23675"),m=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:m.Size.BasePadding/2,children:[(0,r.jsx)(a.Z,{span:8,children:(0,r.jsx)(l.Z,{title:(0,r.jsx)(x.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:m.Size.BasePadding/2,cursor:"pointer"},onClick:()=>n(e),align:"center",children:[(0,r.jsx)(c.Z,{status:"default"}),(0,r.jsx)(u.Z.Text,{code:!0,children:(0,r.jsx)("a",{children:e.code})}),(0,r.jsx)(u.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)(u.Z.Text,{code:!0,children:t.code}),(0,r.jsx)(u.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)(u.Z.Paragraph,{children:"markdown"===t.type?(0,r.jsx)(f.U,{children:t.description}):(0,r.jsx)(u.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)(u.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("60737"),l=n("51888"),d=n("24978"),c=n("32658"),u=n("9172"),h=n("52494"),f=n("3242"),p=n("88626"),x=n("51742"),m=n("65079"),g=n("77422"),j=n("46591");function y(e){let{module:t,moduleGraph:n,ranges:s,toLine:y,setEditorData:M,source:v}=e,S=(0,i.useRef)(),Z=(0,i.useRef)([]),b=(0,i.useRef)([]),I=(0,i.useRef)(),D=(0,i.useRef)(!1),[w,A]=(0,i.useState)("");return((0,i.useEffect)(()=>{let{isPreferSource:e}=t;D.current=!0,A(v.source||e?v.source:v.transformed),setTimeout(()=>{b.current=S.current?.getModel()?.deltaDecorations(b.current,m.su(t,n))??[]},200)},[t,v]),(0,i.useEffect)(()=>{function e(){let e=S.current?.getModel();e&&(Z.current=e.deltaDecorations(Z.current,s.map(e=>({range:(0,g.getSelectionRange)(e,p.e6),options:{stickiness:1,inlineClassName:"tree-shaking-statement-side-effect",isWholeLine:!1,showIfCollapsed:!0}}))),S.current&&"number"==typeof y&&I.current!==y&&(I.current=y,S.current.revealLine(y,p.j6.ScrollType.Smooth)))}D?setTimeout(e,300):e(),D.current=!1},[s,y]),(0,i.useEffect)(()=>{let e=e=>{let t=(0,x.hR)(e.target);if(t){let e=n.getModuleById(t.module);e&&M(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)(c.Z.Text,{children:o().basename(t.path)}),(0,r.jsx)(u.Z,{})]})}),className:"tree-shaking-editor",children:(0,r.jsx)(f.ZP,{theme:"vs-dark",language:(0,g.getOriginalLanguage)(t.path),value:w,loading:(0,r.jsx)(h.Z,{style:{fontSize:30}}),options:j.z9,onMount:e=>{S.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 b},BC:function(){return Z.B},u2:function(){return Z.u}});var r=n("97458"),i=n("52983"),s=n("60737"),o=n("33931"),a=n("49607"),l=n("36175"),d=n("77590"),c=n("42997"),u=n("78741"),h=n("77410"),f=n.n(h),p=n("43622"),x=n("95925"),m=n("35972"),g=n("33448"),j=n("65079"),y=n("77422"),M=n("77754"),v=n("65609"),S=n("74915");n("62283");var Z=n("43721");let b=(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)(v.T,{});let[h,Z]=(0,i.useState)(""),[b,I]=(0,i.useState)(1),[D,w]=(0,i.useState)([]),[A,C]=(0,i.useState)("side-effect"),P=(0,i.useMemo)(()=>n.getModules().filter(e=>e.kind===u.SDK.ModuleKind.Normal&&f().basename(e.path).includes(h)),[h]),E=(0,i.useMemo)(()=>P.find(e=>e.isEntry),[]),[T,k]=(0,i.useState)(E||P?.length&&P?.[0]),z=(0,j.X0)(P,n,h,T,e=>{N(P.find(t=>t.path===e),[])},t),N=(e,t,n)=>{k(e),w(t.slice()),(0,d.Z)(n)&&I(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:x.Size.BasePadding,marginTop:x.Size.BasePadding},children:[(0,r.jsx)(g.a,{icon:(0,r.jsx)(c.Z,{}),width:400,label:"FileName",placeholder:"search filename by keyword",style:{width:"auto"},onChange:e=>Z(e)}),(0,r.jsxs)(a.ZP.Group,{value:A,onChange:({target:e})=>C(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:[x.Size.BasePadding,x.Size.BasePadding],children:[(0,r.jsx)(l.Z,{span:7,children:(0,r.jsx)(s.Z,{title:`Total Files: ${P.length}`,className:"tree-shaking-files-box",children:(0,r.jsx)(m.z,{className:"tree-shaking-files",selectedKeys:T?[T.path]:[],defaultExpandedKeys:(0,j.yA)(z),treeData:z,expandAction:"click"})})}),(0,r.jsx)(l.Z,{span:9,children:(0,r.jsx)(p.Nu,{api:u.SDK.ServerAPI.API.GetModuleCodeByModuleId,body:{moduleId:T.id},children:e=>(0,r.jsx)(M.p,{module:T,moduleGraph:n,ranges:D,toLine:b,setEditorData:N,source:e})})}),(0,r.jsx)(l.Z,{flex:1,children:(0,r.jsx)(S.c0,{kind:A,setEditorData:N,module:T,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}},65609:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n("97458"),i=n("60737"),s=n("61884");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 S}});var r=n("97458"),i=n("51888"),s=n("21134"),o=n("38937"),a=n("24978"),l=n("32658"),d=n("80213"),c=n("63337"),u=n("11997"),h=n("52983"),f=n("63764"),p=n.n(f),x=n("21807"),m=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),c=(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:()=>c(n,i,e),style:{marginBottom:8,display:"block"}}),(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(s.ZP,{type:"primary",onClick:()=>c(n,i,e),icon:(0,r.jsx)(u.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)(u.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 M=({module:e,moduleGraph:t,setEditorData:n})=>{let o=(0,h.useMemo)(()=>t.getModuleGraphModule(e).getSideEffects(),[e]),u=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:u.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)(x.Zb,{style:{marginBottom:10},title:p,className:"tree-shaking-export-table",children:(0,r.jsx)(c.Z,{size:"small",dataSource:u,columns:f,pagination:!1,scroll:{y:600}})})},v=({module:e,moduleGraph:t,setEditorData:n})=>{let o=(0,h.useMemo)(()=>t.getModuleGraphModule(e).getExports(),[e]),u=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:u.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-u.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)}}),M=[{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)(x.Zb,{title:f,className:"tree-shaking-export-table",children:(0,r.jsx)(c.Z,{size:"small",dataSource:p,columns:M,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,m.XZ)(e.path)}:${t.start.line}`})},e.id))]}),rowExpandable:e=>e.used.length>0}})})},S=e=>"side-effect"===e.kind?(0,r.jsx)(M,{...e}):(0,r.jsx)(v,{...e})},65079:function(e,t,n){"use strict";n.d(t,{X0:function(){return m},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"),c=n("24978"),u=n("19645"),h=n("88626"),f=n("51742"),p=n("77422"),x=n("67522");function m(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)(c.Z,{style:{wordBreak:"break-all"},children:[(0,r.jsx)(x.Z,{text:n,keyword:e,onClick:()=>o(e)}),s.dynamic?(0,r.jsx)(u.Z,{color:"cyan",children:"dynamic"}):"",a.length>0?(0,r.jsxs)(u.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.e6);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:
|
|
78
|
+
|
|
79
|
+
<div data-code="tree-shaking-hover">
|
|
80
|
+
<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+=`
|
|
81
|
+
<ol>
|
|
82
|
+
${(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))}
|
|
83
|
+
${o?`<pre>${(0,l.Z)(o)}</pre>`:""}
|
|
84
|
+
</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},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("49382"),s=n("22722"),o=n("78741"),a=n("60737"),l=n("24978"),d=n("38937"),c=n("21134"),u=n("32658"),h=n("32443"),f=n("52983"),p=n("51264"),x=n("43622"),m=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)(x.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)(c.ZP,{children:[(0,r.jsx)(i.Z,{}),(0,r.jsx)(u.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)(c.ZP,{children:[(0,r.jsx)(s.Z,{}),(0,r.jsx)(u.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)(x.Nu,{api:o.SDK.ServerAPI.API.GetPluginData,body:{hooks:n,tapNames:e},children:e=>(0,r.jsx)(m.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 c},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"),c=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}}},1675:function(e,t,n){"use strict";n.d(t,{w:function(){return l}});var r=n("52983"),i=n("36514"),s=n("21249");n("41451"),n("95925");let o=new WeakMap;async function a(e){try{if(e.__LOCAL__SERVER__)return new i.G(e)}catch(e){console.log("[DataLoader] fallback to RemoteDataLoader")}return new s.O(e)}function l(e){let[t,n]=(0,r.useState)(void 0);return(0,r.useEffect)(()=>{if(!!e){if(!o.has(e)){let t=a(e);o.set(e,t)}o.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){!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},ZK:function(){return c},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),c=d?o?.slice(d.length+1):o,u=e;for(;d;){let e=u.children.find(e=>e.title===d);if(!e){let r=[u[n],d].filter(Boolean).join(t);e={title:d,key:r,children:[],[n]:r,[a]:d},u.children.push(e)}u=e,c=(d=s(c))?c.slice(d.length).replace(l,""):c}return u.children.some(e=>(0,r.Z)(e,n)===o)?e:(u.children.push({title:()=>i(o,c),key:o,isLeaf:!0,[n]:o,[a]:c}),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}function c(e,t){let n=d(e,t),r="/node_modules/",i=n.lastIndexOf(r);return i>-1?{alias:n.slice(i+r.length),inNodeModules:!0}:{alias:n,inNodeModules:!1}}},11390:function(e,t,n){"use strict";n.d(t,{Bh:function(){return g},Bo:function(){return m},EF:function(){return x},LR:function(){return j},Lm:function(){return M},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("7765"),a=n("44278"),l=n("89730"),d=n.n(l);n("63396");var c=n("41451");let u=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,c.Ch)(t),n&&n(e,r)})}}};function f(e,t){let n=(0,a.s0)();return t?()=>window.open(t,"__blank"):()=>{n(`${u}?${r.Rule.RsdoctorRuleClientConstant.UrlQueryForErrorCode}=${e}`)}}function p(){let e=(0,a.TH)().search||location.search,{query:t}=d()(e,!0);return t}function x(e){return(0,i.Z)(e)?e.filter(e=>e.category===r.Rule.RuleMessageCategory.Compile&&e.code!==r.Rule.RuleMessageCodeEnumerated.Overlay):[]}function m(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 m(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 M(){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("15051"),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,{beautifyModulePath:function(){return i.ZK},beautifyPath:function(){return i.C0},changeOrigin:function(){return p.yq},createFileStructures:function(){return i.n9},fetchManifest:function(){return d.eq},filterLoader:function(){return m.F3},formatCosts:function(){return f.au},formatSize:function(){return u.B},getDemoUrl:function(){return p.jg},getLocale:function(){return o.K},getModifiedLanguage:function(){return l.oU},getOriginalLanguage:function(){return l.wA},getRevealPositionForViewer:function(){return l.Wx},getSelectionRange:function(){return l.pl},getShortPath:function(){return p.Uc},hasBundle:function(){return c.p},hasCompile:function(){return c.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"),c=n("45437"),u=n("29321");n("41561");var h=n("41451"),f=n("53607"),p=n("93155"),x=n("47993");n.o(x,"filterLoader")&&n.d(t,{filterLoader:function(){return x.filterLoader}}),n.o(x,"Constants")&&n.d(t,{Constants:function(){return x.Constants}});var m=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("85352"),i=n("34437");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 c},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 c(e){return(0,r.useMemo)(()=>i.ModuleGraph.fromData(e),[e])}n("48612")},60271:function(e,t,n){"use strict";n.d(t,{Wx:function(){return d},oU:function(){return l},pl:function(){return c},wA:function(){return a},xA:function(){return h}});var r=n("77410"),i=n("3242"),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){return{lineNumber:Math.floor(e/1.2)||1,column:Math.floor(t/1.5)||1}}function c(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 h(){return{initMonaco:u}}},48612:function(e,t,n){"use strict";let r;n.d(t,{C2:function(){return l},eq:function(){return u}});var i=n("97889"),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 c=new Map;async function u(e=(!(r=window[s.Manifest.RsdoctorManifestClientConstant.WindowPropertyForManifestUrl]?window[s.Manifest.RsdoctorManifestClientConstant.WindowPropertyForManifestUrl]:(0,a.Pi)())&&(r=s.SDK.ServerAPI.API.Manifest),r)){return!c.has(e)&&c.set(e,d(e).catch(t=>{throw c.delete(e),t})),await c.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>=1073741824?`${(e/1073741824).toFixed(2)} GB`:e>=1048576?`${(e/1048576).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 u},JS:function(){return p},V1:function(){return c},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 c(){return o("LOCALE")||i.Language.En}function u(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 u},Xq:function(){return h},jg:function(){return c},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 c(){return null}let u=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));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())!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 u}});var r=n("78741"),i=n("77410"),s=n.n(i),o=n("39378"),a=n("93492"),l=n("1718"),d=n("4034");let c=1;class u{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=c++,this.webpackId=e,this.path=t,this.isEntry=n,this.kind=i}static init(){c=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.Lite||e===r.SDK.ToDataType.LiteAndNoAsset?{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}}u.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("46641"),n("32603")},16898:function(e,t,n){"use strict";n("53330"),n("32603")},32603:function(e,t,n){"use strict";n("77410")},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.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=""},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:`
|
|
85
|
+
#### Description
|
|
86
|
+
|
|
87
|
+
there is a same name package which bundled more than one version in your application.
|
|
88
|
+
|
|
89
|
+
it is not good to the bundle size of your application.
|
|
90
|
+
|
|
91
|
+
#### General Solution
|
|
92
|
+
|
|
93
|
+
add an entry in \`resolve.alias\` which will configure Webpack to route any package references to a single specified path.
|
|
94
|
+
|
|
95
|
+
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\`:
|
|
96
|
+
|
|
97
|
+
\`\`\`js
|
|
98
|
+
{
|
|
99
|
+
alias: {
|
|
100
|
+
lodash: path.resolve(__dirname, 'node_modules/lodash')
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
\`\`\`
|
|
104
|
+
`}},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:`
|
|
105
|
+
#### Description
|
|
106
|
+
|
|
107
|
+
Usually webpack will automatically compatible different modules that has different types, but in a special case, the operation of compatibility will fail.
|
|
108
|
+
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 = \`.
|
|
109
|
+
|
|
110
|
+
#### General Solution
|
|
111
|
+
|
|
112
|
+
1. for cjs module, write a \`exports.default = \` statement for default export.
|
|
113
|
+
2. use \`Namespace Import\` for import the cjs module.
|
|
114
|
+
|
|
115
|
+
For example, for the package \`htmlparser2@7.2.0\`:
|
|
116
|
+
|
|
117
|
+
\`\`\`ts
|
|
118
|
+
// you should use this
|
|
119
|
+
import * as Parser from 'htmlparser2';
|
|
120
|
+
|
|
121
|
+
// can not use this
|
|
122
|
+
import Parser from 'htmlparser2';
|
|
123
|
+
\`\`\`
|
|
124
|
+
`}},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:`
|
|
125
|
+
#### Description
|
|
126
|
+
|
|
127
|
+
Usually the slow compile of most projects is due to the slow execution of the loaders.
|
|
128
|
+
|
|
129
|
+
And the loaders always pre-process many unnecessary files, such as \`node_modules files\` and \`already compiled files\`.
|
|
130
|
+
|
|
131
|
+
#### General Solution
|
|
132
|
+
|
|
133
|
+
Set \`exclude\` to the \`module.rules\` of webpack configuration for target loader.
|
|
134
|
+
|
|
135
|
+
For example, if \`node_modules/lodash\` is processed by the \`babel-loader\` that make the compile slowly:
|
|
136
|
+
|
|
137
|
+
\`\`\`
|
|
138
|
+
{
|
|
139
|
+
module: {
|
|
140
|
+
rules: [
|
|
141
|
+
{
|
|
142
|
+
test: /\\.js$/,
|
|
143
|
+
use: 'babel-loader',
|
|
144
|
+
exclude: [
|
|
145
|
+
/node_modules\\/lodash/
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
\`\`\`
|
|
152
|
+
`}},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:`
|
|
153
|
+
#### Description
|
|
154
|
+
|
|
155
|
+
Detect if there is a newer version of ECMA syntax in the js bundle file
|
|
156
|
+
`}},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")),c=o(n("46580")),u=o(n("58686"));t.RuleErrorMap={[l.code]:l.message,[d.code]:d.message,[c.code]:c.message,[u.code]:u.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";Object.defineProperty(t,"__esModule",{value:!0})},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.Normal=0]="Normal",a[a.Lite=1]="Lite",a[a.LiteAndNoAsset=2]="LiteAndNoAsset",a[a.All=3]="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: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:c=[]}=i||{},{packages:u=[]}=s.find(e=>e.id===t)||{},{dependencies:h=[]}=u.find(e=>e.target.name===r.name&&e.target.root===r.root&&e.target.version===r.version)||{};return l.J(d,c,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:c(e,t),content:i?e.content:void 0}))}:{count:0,size:0,files:[]}}function c(e,t){return(0,i.qb)(e,t).some(e=>!!e.initial)}function u(e,t,n={}){return n.filterOrExtensions&&(e=l(e,n.filterOrExtensions)),d(e,t,{...n,filterOrExtensions:e=>c(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},c={...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:u(e,t,i)},css:{total:d(e,t,s),initial:u(e,t,s)},imgs:{total:d(e,t,o)},html:{total:d(e,t,l)},media:{total:d(e,t,c)},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 a},R9:function(){return l},Vw:function(){return d},aN:function(){return s},qp:function(){return o}});var r=n("79610"),i=n("96528"),s=n("99522"),o=n("14399");n("32662");var a=n("73225");n("66183"),n("89896");var l=n("30514"),d=n("96270");n("56997"),n("52352")},99522:function(e,t,n){"use strict";n.r(t),n.d(t,{LoaderInternalPropertyName:function(){return x},findLoaderTotalTiming:function(){return i},getLoaderChartData:function(){return d},getLoaderCosts:function(){return o},getLoaderFileDetails:function(){return u},getLoaderFileFirstInput:function(){return f},getLoaderFileInputAndOutput:function(){return p},getLoaderFileTree:function(){return c},getLoaderFolderStatistics:function(){return h},getLoaderNames:function(){return a},getLoadersCosts:function(){return s},getLoadersTransformData:function(){return l},isVue:function(){return m}});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 c(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 u(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 x="__l__",m=e=>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("99738"),i=n("28385");n("28272"),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 u},detectECMAVersion:function(){return p},getDefaultImports:function(){return o},getIdentifierInDeclaration:function(){return l},getIdentifierInExport:function(){return c},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("99738"),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 c(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 u(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 u(e,5)}function f(e){return u(e,6)}function p(e){if(f(e))return h(e)?i.W.ES5:i.W.ES6;return i.W.ES7P}},84345:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII="},81266:function(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjNDI0MjQyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="},59394:function(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="},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=="},76930:function(e,t,n){"use strict";var r=n("97458"),i=n("18005"),s=n("67351"),o=n("31646"),a=n("77422"),l=n("4471"),d=n("4696"),c=n("15196"),u=n("40641"),h=n("23973"),f=n("62147"),p=n("76807"),x=n("21846"),m=n("52983"),g=n("82435"),j=n("75169"),y=n("90070");let{PageState:M,Theme:v}=i.Constants;t.Z=()=>{let e=(0,a.useDetectIfCloudIdeEnv)(),[t,n]=(0,m.useState)(M.Success),[S,Z]=(0,m.useState)({...s.u.viewMode}),[b,I]=(0,m.useState)(),[D,w]=(0,m.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)(c.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)(c.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:D,setTheme:e=>{w(e),(0,a.setThemeToStorage)(e)},pageState:t,json:b,viewMode:S,setManifest:I,setPageState:n,setViewMode(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n={...S,...e};Z(n),t&&(0,a.setViewModeToStorage)(n)}},children:(0,r.jsx)(s.E.Consumer,{children:n=>(0,r.jsx)(u.ZP,{locale:(0,a.getLocale)(n.locale),theme:{algorithm:D===v.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)(x.ZP,{type:"primary",onClick:i,loading:t===M.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,{})})]})})})})})})}},69506:function(e,t,n){"use strict";var r=n("97458");n("63396");var i=n("76930"),s=n("78520");n("75121");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://lf3-static.bytednsdoc.com/obj/eden-cn/lognuvj/rsdoctor/logo/rsdoctor.png"),document.head.appendChild(a)},90070: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.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))]})}},75121:function(e,t,n){"use strict";n.r(e.exports={})},86009:function(e,t,n){"use strict";n.r(e.exports={})},89019:function(e,t,n){"use strict";n.r(e.exports={})},69627:function(e,t,n){"use strict";n.r(e.exports={})},97893:function(e,t,n){"use strict";n.r(e.exports={})},49905:function(e,t,n){"use strict";n.r(e.exports={})},88267:function(e,t,n){"use strict";n.r(e.exports={})},33833:function(e,t,n){"use strict";n.r(e.exports={})},56323:function(e,t,n){"use strict";n.r(e.exports={})},24580:function(e,t,n){"use strict";n.r(e.exports={})},71151:function(e,t,n){"use strict";n.r(e.exports={})},95063:function(e,t,n){"use strict";n.r(e.exports={})},32560:function(e,t,n){"use strict";n.r(e.exports={})},92617:function(e,t,n){"use strict";n.r(e.exports={})},62283:function(e,t,n){"use strict";n.r(e.exports={})},6156:function(){},41037:function(){}},a={};function l(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,l),n.loaded=!0,n.exports}l.m=o,l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},l.t=function(n,r){if(1&r&&(n=this(n)),8&r||"object"==typeof n&&n&&(4&r&&n.__esModule||16&r&&"function"==typeof n.then))return n;var i=Object.create(null);l.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var o=2&r&&n;"object"==typeof o&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach(function(e){s[e]=function(){return n[e]}});return s.default=function(){return n},l.d(i,s),i},l.d=function(e,t){for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.e=function(){return Promise.resolve()},l.k=function(e){return""+e+".css"},l.u=function(e){return"resource/js/async/"+e+"."+({432:"627e7428",811:"aeb19dcb"})[e]+".js"},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.nmd=function(e){return e.paths=[],!e.children&&(e.children=[]),e},n=[],l.O=function(e,t,r,i){if(t){i=i||0;for(var s=n.length;s>0&&n[s-1][2]>i;s--)n[s]=n[s-1];n[s]=[t,r,i];return}for(var o=1/0,s=0;s<n.length;s++){for(var t=n[s][0],r=n[s][1],i=n[s][2],a=!0,d=0;d<t.length;d++)o>=i&&Object.keys(l.O).every(function(e){return l.O[e](t[d])})?t.splice(d--,1):(a=!1,i<o&&(o=i));if(a){n.splice(s--,1);var c=r();void 0!==c&&(e=c)}}return e},l.p="/",l.b=document.baseURI||self.location.href,r={980:0},l.O.j=function(e){return 0===r[e]},i=function(e,t){var n=t[0],i=t[1],s=t[2],o,a,d=0;if(n.some(function(e){return 0!==r[e]})){for(o in i)l.o(i,o)&&(l.m[o]=i[o]);if(s)var c=s(l)}for(e&&e(t);d<n.length;d++)a=n[d],l.o(r,a)&&r[a]&&r[a][0](),r[a]=0;return l.O(c)},(s=self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).forEach(i.bind(null,0)),s.push=i.bind(null,s.push.bind(s));var d=l.O(void 0,["670","624","889","786","531","242","159","86","790","387","488","25","297","606","310","471","389","374","685","305","826"],function(){return l("69506")});l.O(d)}();
|