@rsdoctor/client 2.0.0-beta.2 → 2.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/diff.html +1 -1
- package/dist/index.html +1 -1
- package/dist/resource/css/702.fd97816ccf.css +1 -0
- package/dist/resource/js/{834.c4819b7353.js → 13.d9db43ac4b.js} +3 -3
- package/dist/resource/js/228.7f274a9d26.js +1 -0
- package/dist/resource/js/428.bfc4d2c0c8.js +1 -0
- package/dist/resource/js/702.41ca20141d.js +105 -0
- package/dist/resource/js/{ant-design-icons.3809dbee56.js → ant-design-icons.83941b8490.js} +1 -1
- package/dist/resource/js/diff.ac519620bb.js +57 -0
- package/dist/resource/js/index.d0d3dfd0c9.js +91 -0
- package/dist/resource/js/rc.152a2960dc.js +1 -0
- package/dist/resource/js/react.b765a406a8.js +1 -0
- package/package.json +2 -2
- package/dist/resource/css/187.d41ba45a6c.css +0 -1
- package/dist/resource/js/187.91ee1b86ce.js +0 -112
- package/dist/resource/js/286.c1ea0d3ae4.js +0 -1
- package/dist/resource/js/428.d6fe85f59c.js +0 -1
- package/dist/resource/js/diff.f789284320.js +0 -57
- package/dist/resource/js/index.676033352c.js +0 -91
- package/dist/resource/js/rc.42f199fbde.js +0 -1
- package/dist/resource/js/react.e68b05fdf2.js +0 -1
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";(self.rspackChunk_rsdoctor_client=self.rspackChunk_rsdoctor_client||[]).push([[702],{66284(){},66605(e,t){t.A={container:"container-t1WME9",badgeContainer:"badgeContainer-K7EgOu"}},99246(){},89413(){},26433(e,t){t.A={title:"title-BZ9xk1"}},90912(e,t){t.A={text:"text-QI6k9S"}},75255(e,t){t.A={loaderAnalysis:"loaderAnalysis-h6mG3n",dividerDiv:"dividerDiv-hrfVKQ",divider:"divider-hnPRxv",box:"box-lFdvrG",keyword:"keyword-UO64w1",textBox:"textBox-sVZZ_A",text:"text-omPvlh",space:"space-qT5CaN",executions:"executions-uZxmQC",timeline:"timeline-wMFXyU",loader:"loader-PHR4ca",selected:"selected-wUMOH3"}},64633(e,t){t.A={"code-viewer":"code-viewer-H7hGrZ",codeViewer:"code-viewer-H7hGrZ",embed:"embed-tjljOS",header:"header-qejtwX",text:"text-T29bd1",content:"content-EVSW1C"}},94546(){},77764(){},460(){},1812(){},12709(){},87775(e,t,r){var l=r(64558);r(1102),t.A=e=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",fillRule:"evenodd",style:{flex:"none",lineHeight:1},viewBox:"0 0 24 24",...e,children:(0,l.jsx)("path",{d:"M22.106 5.68 12.5.135a1 1 0 0 0-.998 0L1.893 5.68a.84.84 0 0 0-.419.726v11.186c0 .3.16.577.42.727l9.607 5.547a1 1 0 0 0 .998 0l9.608-5.547a.84.84 0 0 0 .42-.727V6.407a.84.84 0 0 0-.42-.726zm-.603 1.176L12.228 22.92c-.063.108-.228.064-.228-.061V12.34a.59.59 0 0 0-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264 0 .428.286.296.514"})})},27929(e,t,r){var l=r(64558);r(1102),t.A=e=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",style:{flex:"none",lineHeight:1},viewBox:"0 0 24 24",...e,children:(0,l.jsx)("path",{fill:"#32F08C",d:"M24 20.541H3.428v-3.426H0V3.4h24v17.14zM3.428 17.115h17.144V6.827H3.428zm8.573-5.196-2.425 2.424-2.424-2.424 2.424-2.424zm6.857-.001-2.424 2.423-2.425-2.423 2.425-2.425z"})})},35615(e,t,r){var l=r(64558);r(1102),t.A=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:100,height:100,fill:"none",viewBox:"0 0 100 100",...e,children:[(0,l.jsx)("mask",{id:"vscode_svg__a",width:100,height:100,x:0,y:0,"mask-type":"alpha",maskUnits:"userSpaceOnUse",children:(0,l.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M70.912 99.317a6.22 6.22 0 0 0 4.96-.19l20.589-9.907A6.25 6.25 0 0 0 100 83.587V16.413a6.25 6.25 0 0 0-3.54-5.632L75.874.874a6.23 6.23 0 0 0-7.104 1.21L29.355 38.04 12.187 25.01a4.16 4.16 0 0 0-5.318.236l-5.506 5.009a4.17 4.17 0 0 0-.004 6.162L16.247 50 1.36 63.583a4.17 4.17 0 0 0 .004 6.162l5.506 5.01a4.16 4.16 0 0 0 5.318.236l17.168-13.032L68.77 97.917a6.2 6.2 0 0 0 2.143 1.4M75.015 27.3 45.11 50l29.906 22.701z",clipRule:"evenodd"})}),(0,l.jsxs)("g",{mask:"url(#vscode_svg__a)",children:[(0,l.jsx)("path",{fill:"#0065A9",d:"M96.461 10.796 75.857.876a6.23 6.23 0 0 0-7.107 1.207l-67.451 61.5a4.167 4.167 0 0 0 .004 6.162l5.51 5.009a4.17 4.17 0 0 0 5.32.236l81.228-61.62c2.725-2.067 6.639-.124 6.639 3.297v-.24a6.25 6.25 0 0 0-3.539-5.63"}),(0,l.jsx)("g",{filter:"url(#vscode_svg__b)",children:(0,l.jsx)("path",{fill:"#007ACC",d:"m96.461 89.204-20.604 9.92a6.23 6.23 0 0 1-7.107-1.207l-67.451-61.5a4.167 4.167 0 0 1 .004-6.162l5.51-5.009a4.17 4.17 0 0 1 5.32-.236l81.228 61.62c2.725 2.067 6.639.124 6.639-3.297v.24a6.25 6.25 0 0 1-3.539 5.63"})}),(0,l.jsx)("g",{filter:"url(#vscode_svg__c)",children:(0,l.jsx)("path",{fill:"#1F9CF0",d:"M75.858 99.126a6.23 6.23 0 0 1-7.108-1.21c2.306 2.307 6.25.674 6.25-2.588V4.672c0-3.262-3.944-4.895-6.25-2.589a6.23 6.23 0 0 1 7.108-1.21l20.6 9.908A6.25 6.25 0 0 1 100 16.413v67.174a6.25 6.25 0 0 1-3.541 5.633z"})}),(0,l.jsx)("path",{fill:"url(#vscode_svg__d)",fillRule:"evenodd",d:"M70.851 99.317a6.22 6.22 0 0 0 4.96-.19L96.4 89.22a6.25 6.25 0 0 0 3.54-5.633V16.413a6.25 6.25 0 0 0-3.54-5.632L75.812.874a6.23 6.23 0 0 0-7.104 1.21L29.294 38.04 12.126 25.01a4.16 4.16 0 0 0-5.317.236l-5.507 5.009a4.17 4.17 0 0 0-.004 6.162L16.186 50 1.298 63.583a4.17 4.17 0 0 0 .004 6.162l5.507 5.009a4.16 4.16 0 0 0 5.317.236L29.294 61.96l39.414 35.958a6.2 6.2 0 0 0 2.143 1.4M74.954 27.3 45.048 50l29.906 22.701z",clipRule:"evenodd",opacity:.25,style:{mixBlendMode:"overlay"}})]}),(0,l.jsxs)("defs",{children:[(0,l.jsxs)("filter",{id:"vscode_svg__b",width:116.727,height:92.246,x:-8.394,y:15.829,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[(0,l.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,l.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,l.jsx)("feOffset",{}),(0,l.jsx)("feGaussianBlur",{stdDeviation:4.167}),(0,l.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),(0,l.jsx)("feBlend",{in2:"BackgroundImageFix",mode:"overlay",result:"effect1_dropShadow"}),(0,l.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,l.jsxs)("filter",{id:"vscode_svg__c",width:47.917,height:116.151,x:60.417,y:-8.076,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[(0,l.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,l.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,l.jsx)("feOffset",{}),(0,l.jsx)("feGaussianBlur",{stdDeviation:4.167}),(0,l.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),(0,l.jsx)("feBlend",{in2:"BackgroundImageFix",mode:"overlay",result:"effect1_dropShadow"}),(0,l.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,l.jsxs)("linearGradient",{id:"vscode_svg__d",x1:49.939,x2:49.939,y1:.258,y2:99.742,gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#fff"}),(0,l.jsx)("stop",{offset:1,stopColor:"#fff",stopOpacity:0})]})]})]})},9926(e,t,r){r.d(t,{ZZ:()=>T,aM:()=>C,rU:()=>M});var l=r(64558),s=r(80844),a=r(63598),n=r(7802),i=r(66482),o=r(74374),d=r(81320),c=r(41648),h=r(85326),u=r(6755),p=r(78593),x=r(54594),f=r(53919),m=r(67782),g=r(7472),j=r(22733),y=r(23858),v=r(1426),A=r(68062),b=r(76174);r(15061);var w=r(8857),k=r(41611),S=r(43029);let C=e=>{let{data:t}=e;return(0,l.jsx)(s.A,{gutter:20,wrap:!1,align:"top",children:(0,l.jsx)(a.A,{style:{height:"100%",width:"100%"},children:t.length?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(n.A,{style:{marginTop:"20px"},children:t.map((e,r)=>{let{dependency:s,module:a,relativePath:o}=e,{statements:d}=s,{start:c}=d?.[0]?.position?a.isPreferSource?d[0].position.source:d[0].position.transformed:{start:{line:0,column:0}},h=`${o}:${c.line}:${c.column||1}`;return(0,l.jsx)(n.A.Item,{style:{cursor:"default"},children:(0,l.jsxs)(i.A.Text,{children:[(0,l.jsxs)("div",{className:"filePath-UF3inH",children:[h,(0,l.jsx)(i.A.Paragraph,{copyable:{text:o},style:{position:"relative",top:"7px"}})]}),r!==t.length-1?(0,l.jsx)(g.A,{className:"arrow-VrZOco"}):null]})},h)})})}):(0,l.jsx)(o.A,{description:"This package no dependencies"})})})},M=(0,k.eN)({Component:C,api:S.hp.uT.n.GetPackageRelationAlertDetails,responsePropName:"data"}),T=e=>{let{data:t,getPackageRelationContentComponent:r}=e,{level:s,code:a,packages:n}=t,o=(0,v.nN)(a,t.link),g=(0,m.xu)(n,e=>e.targetSize.sourceSize),k=(0,v.Xq)(g),{xs:C,lg:M,xxl:T}=d.Ay.useBreakpoint(),{name:z}=n.find(e=>!!e.target.name).target,D=n.map(e=>e.target.version);return(0,l.jsx)(c.A,{showIcon:!C,message:(0,l.jsxs)(h.A,{wrap:!0,split:C?null:(0,l.jsx)(u.A,{type:"vertical"}),align:"center",children:[(0,l.jsxs)(h.A,{wrap:!1,children:[(0,l.jsx)(i.A.Text,{code:!0,strong:!0,onClick:o,style:{cursor:"pointer"},children:(0,l.jsx)("a",{children:a})}),(0,l.jsx)(i.A.Text,{strong:!0,children:S.jO.bW[a]?.title||t.title})]}),(0,l.jsxs)(i.A.Paragraph,{ellipsis:{rows:1},style:{marginBottom:0},children:[(0,l.jsx)(i.A.Text,{strong:!0,code:!0,children:z}),(0,l.jsxs)(i.A.Text,{strong:!0,children:[" ",t.packages.length]}),(0,l.jsx)(i.A.Text,{children:" versions was found"})]}),(0,l.jsx)(w.Ex,{label:"total size",value:k,type:"error",tooltip:`total size of ${t.packages.length} versions is ${k}`})]}),description:(0,l.jsx)(h.A,{direction:"vertical",wrap:!1,children:t.packages.map(e=>{let{target:t,targetSize:r}=e,s=(0,v.Xq)(r.sourceSize),a=r.parsedSize?(0,v.Xq)(r.parsedSize):null,n=`${t.name}@${t.version}`;return(0,l.jsxs)(h.A,{style:{wordBreak:"break-all"},align:"center",split:C?null:(0,l.jsx)(u.A,{type:"vertical"}),wrap:!0,children:[(0,l.jsxs)(h.A,{wrap:!1,children:[(0,l.jsx)(i.A.Text,{style:{marginLeft:4},children:"└"}),(0,l.jsx)(w.Ex,{label:t.name,value:`v${t.version}`,tooltip:n})]}),(0,l.jsxs)(h.A,{children:[(0,l.jsx)(w.Ex,{label:(0,l.jsxs)("div",{color:"rgb(255, 255, 255)",children:["Source Size ",(0,l.jsx)(j.A,{})]}),value:s,tooltip:`The bundle size of "${n}" is ${s}, this is source size.`,type:"error"}),(0,l.jsx)(w.Ex,{label:"Bundled size",value:a||"CONCATENATED",tooltip:`The bundle size of "${n}" is ${s}, this is after bundled, concatenated module cannot get bundled size. `,type:"error"})]}),(0,l.jsx)(i.A.Paragraph,{style:{marginBottom:0,width:T?"40rem":M?"30rem":"20rem"},copyable:{text:t.root},ellipsis:{rows:1,expandable:!0,symbol:(0,l.jsx)(y.A,{}),tooltip:t.root},code:!0,children:t.root})]},t.version)})}),type:"warn"===s?"info":s,action:(0,l.jsxs)(l.Fragment,{children:[n&&n.length>0?(0,l.jsx)(A.hX,{text:"Show Relations",buttonProps:{size:"small"},drawerProps:{title:t.title,width:"60%"},children:(0,l.jsxs)(h.A,{direction:"vertical",className:"alert-space",children:[(0,l.jsxs)(h.A,{style:{marginBottom:10},children:[(0,l.jsx)(b.h,{text:z,upperFirst:!1}),(0,l.jsx)(i.A.Text,{strong:!0,children:D.length}),(0,l.jsx)(i.A.Text,{children:" versions was found: "}),D.map(e=>(0,l.jsx)(i.A.Text,{strong:!0,code:!0,children:e},e))]}),(0,l.jsx)(p.A,{type:"card",size:"middle",className:"tabs-space",defaultActiveKey:D[0],items:n.map(e=>{let{target:s,targetSize:a}=e;return{label:(0,l.jsxs)(h.A,{children:[(0,l.jsx)(i.A.Text,{children:`${z}@${s.version}`}),(0,l.jsx)(x.A,{color:"#e17055",children:(0,v.Xq)(a.sourceSize)})]}),key:`${s.root}${s.name}${s.version}`,children:r({data:t,package:e})}})})]})}):null,(0,l.jsx)(u.A,{type:"vertical"}),(0,l.jsx)(f.Ay,{type:"link",onClick:o,size:"small",icon:(0,l.jsx)(j.A,{})})]})})}},10943(e,t,r){r.d(t,{J:()=>ef});var l=r(64558),s=r(54594),a=r(74374),n=r(78593),i=r(1102),o=r(44506),d=r(66482),c=r(53919),h=r(76253),u=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,l.jsx)("rect",{width:16,height:16,fill:"#FFF2E8",rx:2}),(0,l.jsx)("path",{fill:"#FA541C",d:"M13.21 4.026a.5.5 0 0 0-.5-.5H3.29a.5.5 0 0 0-.5.5v1.316a.5.5 0 0 0 .5.5h9.42a.5.5 0 0 0 .5-.5zM13.21 7.342a.5.5 0 0 0-.5-.5H3.29a.5.5 0 0 0-.5.5v1.316a.5.5 0 0 0 .5.5h9.42a.5.5 0 0 0 .5-.5zM13.21 10.658a.5.5 0 0 0-.5-.5H3.29a.5.5 0 0 0-.5.5v1.316a.5.5 0 0 0 .5.5h9.42a.5.5 0 0 0 .5-.5z"})]}),p=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,l.jsx)("rect",{width:16,height:16,fill:"#F6FFED",rx:2}),(0,l.jsx)("path",{fill:"#52C41A",fillRule:"evenodd",d:"M4.586 6.172a.853.853 0 0 0-.853.854v5.12c0 .472.382.854.853.854h6.828a.853.853 0 0 0 .853-.854v-5.12a.853.853 0 0 0-.853-.854H9.707V7.88a1.707 1.707 0 1 1-3.414 0V6.172z",clipRule:"evenodd"}),(0,l.jsx)("path",{fill:"#52C41A",d:"M7.147 4.466a.853.853 0 1 1 1.707 0V7.88a.853.853 0 0 1-1.707 0z"}),(0,l.jsx)("path",{fill:"#52C41A",d:"m8 3 2.217 2.304H5.783z"})]}),x=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,l.jsx)("rect",{width:16,height:16,fill:"#FFF1F0",rx:2}),(0,l.jsx)("path",{fill:"#FF5658",fillRule:"evenodd",d:"M13 8A5 5 0 1 1 3 8a5 5 0 0 1 10 0M9.768 6.232a.5.5 0 0 1 0 .707L8.708 8l1.06 1.06a.5.5 0 0 1-.707.708L8 8.708l-1.062 1.06a.5.5 0 0 1-.707-.707L7.293 8l-1.06-1.062a.5.5 0 0 1 .706-.707L8 7.293l1.06-1.06a.5.5 0 0 1 .708 0",clipRule:"evenodd"})]}),f=r(1426),m="box-yCgd0f",g="title-OR484p",j="content-iOwxYc";let{Text:y}=d.A,v=e=>{let{data:t}=e;return t.map((e,t)=>{let{code:r,link:s,error:a}=e,{source:n,output:i}=a||{},o=n?.path?`${n?.path}:${n?.line}:${n?.column}`:null,d=i?.path?`${i?.path}:${i?.line}:${i?.column}`:`There's no source map for this error. Possible reasons are as follows:
|
|
2
|
+
1. It might come from a third-party library without source map.
|
|
3
|
+
2. If this is your business source code, source map should be enabled in your build config.
|
|
4
|
+
`,v=(0,f.nN)(r,s);return(0,l.jsxs)("div",{className:"container-iQTvf7",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:g,children:"Source"}),(0,l.jsxs)("div",{className:m,children:[(0,l.jsx)(h.A,{component:u}),(0,l.jsx)(y,{ellipsis:{tooltip:o},className:`${j} e2e-ecma-source`,children:o})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:g,children:"Output"}),(0,l.jsxs)("div",{className:m,children:[(0,l.jsx)(h.A,{component:p}),(0,l.jsx)(y,{ellipsis:{tooltip:d},className:`${j} e2e-ecma-output`,children:d})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:g,children:"Error"}),(0,l.jsxs)("div",{className:m,children:[(0,l.jsx)(h.A,{component:x}),(0,l.jsx)(y,{ellipsis:{tooltip:e.description},className:`${j} e2e-ecma-error`,children:e.description})]})]}),(0,l.jsx)(c.Ay,{onClick:v,type:"link",children:"more"})]},`${r}-${s}-${t}`)})};var A=r(88557),b=r(50162),w=r(6755),k=r(85326),S=r(55552),C=r(67782),M=r(68062),T=r(76174);r(15061);var z=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,l.jsx)("rect",{width:16,height:16,fill:"#FFF7E6",rx:2}),(0,l.jsx)("path",{fill:"#F2793D",fillRule:"evenodd",d:"M11.377 5.186h1.488L10.973 3H5.027L3.135 5.186h1.488l.87-1.005h5.015z",clipRule:"evenodd"}),(0,l.jsx)("path",{fill:"#F2793D",fillRule:"evenodd",d:"M3.676 4.82h8.648c.299 0 .54.243.54.545v7.09a.543.543 0 0 1-.54.545H3.676a.543.543 0 0 1-.54-.545v-7.09c0-.302.241-.546.54-.546m2.702 1.77a.54.54 0 0 0 0 1.082h3.244a.54.54 0 1 0 0-1.081z",clipRule:"evenodd"})]}),D=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,l.jsx)("rect",{width:16,height:16,fill:"#FFF7E6",rx:2}),(0,l.jsx)("path",{fill:"#F2793D",d:"M3 7V5c0-1.105 2.239-2 5-2s5 .895 5 2v2c0 1.105-2.239 2-5 2s-5-.895-5-2"}),(0,l.jsx)("path",{fill:"#F2793D",d:"M8 10c2.761 0 5-.895 5-2v1c0 1.105-2.239 2-5 2s-5-.895-5-2V8c0 1.105 2.239 2 5 2"}),(0,l.jsx)("path",{fill:"#F2793D",d:"M8 12c2.761 0 5-.895 5-2v1c0 1.105-2.239 2-5 2s-5-.895-5-2v-1c0 1.105 2.239 2 5 2"})]}),E=r(29409),N=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,l.jsx)("rect",{width:16,height:16,fill:"#E6F7FF",rx:2}),(0,l.jsx)("g",{clipPath:"url(#version_svg__a)",children:(0,l.jsx)("path",{fill:"#3874F6",d:"M13.438 9.875a.6.6 0 0 0-.216.043h-.002l-.002.002L8 12.079l-5.217-2.16H2.78l-.002-.001a.562.562 0 0 0-.43 1.039l5.432 2.248.002.001.003.001a.56.56 0 0 0 .43 0h.003l.002-.002 5.433-2.248a.563.563 0 0 0-.216-1.082M2.348 6.082 7.78 8.33l.003.001.002.001a.56.56 0 0 0 .43 0h.003l.002-.002 5.433-2.248a.563.563 0 0 0 0-1.04L8.22 2.796l-.002-.001-.003-.001a.56.56 0 0 0-.43 0h-.003l-.002.002-5.433 2.248a.563.563 0 0 0 0 1.039m11.09 1.355a.6.6 0 0 0-.216.043l-.002.001-.002.001L8 9.642l-5.217-2.16H2.78l-.002-.002a.563.563 0 0 0-.43 1.04l5.432 2.248h.002l.003.002a.56.56 0 0 0 .43 0l.003-.001.002-.001 5.433-2.248a.563.563 0 0 0-.216-1.083"})}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"version_svg__a",children:(0,l.jsx)("path",{fill:"#fff",d:"M2 2h12v12H2z"})})})]}),B="collapseContainer-RlFMpI",F="collapseChild-WWZD3z",P="attribute-bDSZ0z",R="iconContainer-qPzCrR",L="data-po89g7",I="pkgName-vA16cZ",O="tag-lJs0Ro",G=r(35615),$=r(87775),_=r(27929),q=r(91326);let W=e=>{let{title:t,description:r,extra:s}=e;return(0,l.jsxs)("div",{className:"label-XufLCq",children:[(0,l.jsxs)("div",{className:"labelContent-nkrbEg",children:[(0,l.jsx)("div",{children:t}),(0,l.jsx)("div",{children:r})]}),(0,l.jsx)("div",{children:s})]})},V=e=>{let{file:t}=e;return(0,l.jsxs)(k.A,{size:4,style:{marginLeft:8,flexShrink:0,marginTop:5},children:[(0,l.jsx)(b.A,{title:"Open in VSCode",children:(0,l.jsx)(G.A,{style:{width:16,height:16,cursor:"pointer"},onClick:e=>{e.stopPropagation(),(0,q.jk)({file:t})}})}),(0,l.jsx)(b.A,{title:"Open in Cursor",children:(0,l.jsx)($.A,{style:{width:16,height:16,cursor:"pointer"},onClick:e=>{e.stopPropagation(),(0,q.L2)({file:t})}})}),(0,l.jsx)(b.A,{title:"Open in Trae",children:(0,l.jsx)(_.A,{style:{width:16,height:16,cursor:"pointer"},onClick:e=>{e.stopPropagation(),(0,q.bX)({file:t})}})})]})},{Paragraph:U,Text:H}=d.A,{innerWidth:K}=window,J=e=>{let{data:t,extraData:r}=e,a=t.map(e=>{let{packages:t}=e;return{totalSize:(0,C.xu)(t,e=>e.targetSize.sourceSize),data:e}}).sort((e,t)=>t.totalSize-e.totalSize).map(e=>{let{data:t,totalSize:a}=e,{packages:i}=t,o=(0,f.Xq)(a),{name:c}=i.find(e=>!!e.target.name).target,u=i.map(e=>e.target.version);return{key:c,label:(0,l.jsx)(W,{title:(0,l.jsx)(s.A,{className:O,children:(0,l.jsx)("span",{className:I,children:c})}),description:`${i.length} versions was found`,extra:(0,l.jsxs)("div",{className:"extraContainer-Zf1u14",children:[(0,l.jsxs)("div",{className:R,children:[(0,l.jsx)(h.A,{style:{fontSize:"18px"},component:E.A}),(0,l.jsx)("span",{className:L,children:o})]}),i&&i.length>0?(0,l.jsx)(M.hX,{text:"Show Relations",buttonProps:{size:"small"},drawerProps:{title:t.title,width:"60%"},children:(0,l.jsxs)(k.A,{direction:"vertical",className:"alert-space",style:{width:"100%"},children:[(0,l.jsxs)(k.A,{style:{marginBottom:10,width:"100%"},children:[(0,l.jsx)(T.h,{text:(0,l.jsx)(s.A,{className:O,children:c}),upperFirst:!1}),(0,l.jsx)(d.A.Text,{strong:!0,children:u.length}),(0,l.jsx)(d.A.Text,{children:" versions found"})]}),(0,l.jsx)(n.A,{size:"middle",items:i.map(e=>{let{target:a,targetSize:n}=e;return{label:(0,l.jsxs)(k.A,{className:"drawerLabelTitle-bDwhFt",children:[(0,l.jsxs)("div",{children:["v",a.version]}),(0,l.jsx)(s.A,{className:"drawerLabelSize-gzchzs",children:(0,f.Xq)(n.sourceSize)})]}),key:`${a.root}${a.name}${a.version}`,children:r.getPackageRelationContentComponent({data:t,package:e})}})})]})}):null]})}),children:(0,l.jsx)(()=>i.map((e,t)=>{let r=e.target.version,s=e.target.root,a=(0,f.Xq)(e.targetSize.sourceSize),n=e.targetSize.parsedSize?(0,f.Xq)(e.targetSize.parsedSize):null;return(0,l.jsxs)("div",{className:B,children:[(0,l.jsx)(A.h,{title:(0,l.jsx)(H,{style:{width:K>1500?900:700},ellipsis:{tooltip:s},children:s}),description:(0,l.jsxs)("div",{className:F,children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:P,children:"Version"}),(0,l.jsxs)("div",{className:R,children:[(0,l.jsx)(h.A,{style:{fontSize:"18px"},component:N}),(0,l.jsxs)("span",{className:L,children:["v",r]})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:P,children:"Source size"}),(0,l.jsxs)("div",{className:R,children:[(0,l.jsx)(h.A,{style:{fontSize:"18px"},component:D}),(0,l.jsx)("span",{className:L,children:a})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:P,children:"Bundle size"}),(0,l.jsxs)("div",{className:R,children:[(0,l.jsx)(h.A,{style:{fontSize:"18px"},component:z}),(0,l.jsx)(b.A,{title:`The bundle size of "${c}" is ${a}, this is after bundled, concatenated module cannot get bundled size. `,children:(0,l.jsx)("span",{className:L,children:n||"CONCATENATED"})})]})]})]}),icon:(0,l.jsx)(U,{style:{position:"relative",top:"-10px"},copyable:{text:s}})}),t!==i.length-1?(0,l.jsx)(w.A,{style:{margin:"10px 0"}}):null]})}),{})}});return(0,l.jsx)(S.A,{style:{width:"100%"},defaultActiveKey:["E1001"],items:a})},Y=e=>{let{data:t,showCode:r}=e;return t.map(e=>{let{code:t,link:s,description:a}=e,n=(0,f.nN)(t,s);return(0,l.jsx)(A.A,{style:{background:"#fff"},description:(0,l.jsxs)("div",{className:"description-h4sYv3",children:[r?(0,l.jsx)("div",{className:"code-ocfe7Q",children:t}):null,(0,l.jsx)("div",{children:a||""})]}),icon:(0,l.jsx)(c.Ay,{onClick:n,type:"link",children:"more"})})})},{Text:X}=d.A,{innerWidth:Z}=window,Q=e=>{let{data:t}=e,r=t.map(e=>{let{package:t,chunks:r}=e;return{key:`${t.name}@${t.version}`,label:(0,l.jsx)(W,{title:(0,l.jsx)(s.A,{className:O,children:(0,l.jsx)("span",{className:I,children:`${t.name}@${t.version}`})}),description:"has duplicates bundled into multiple chunks."}),children:(0,l.jsx)(()=>r.map(e=>{let{chunks:t,module:r}=e;return(0,l.jsx)("div",{className:B,children:(0,l.jsx)(A.h,{title:(0,l.jsxs)(k.A,{children:[(0,l.jsx)(h.A,{style:{fontSize:"18px"},component:E.A}),(0,l.jsxs)(X,{style:{width:Z>1500?900:700},children:["Module:"," ",(0,l.jsx)(X,{type:"secondary",style:{fontSize:12,fontWeight:300},children:r.path})]})]}),description:(0,l.jsx)("div",{className:F,children:t.map(e=>(0,l.jsxs)("div",{style:{display:"flex"},children:[(0,l.jsx)("div",{className:P,children:"Chunk"}),(0,l.jsx)("div",{className:R,children:(0,l.jsx)("span",{className:L,children:e.name})})]}))})})})}),{})}});return(0,l.jsx)(S.A,{style:{width:"100%"},defaultActiveKey:["E1005"],items:r})};var ee=r(35784);let{Text:et}=d.A,{innerWidth:er}=window,el=e=>{let{data:t,extraData:r}=e,{cwd:a}=r,n=t.map(e=>{let{module:t,initialChunks:r,asyncChunks:n}=e,i=(0,ee.Zb)(t.path,a);return{key:i,label:(0,l.jsx)(W,{title:(0,l.jsx)(s.A,{className:O,children:(0,l.jsx)("span",{className:I,children:i})}),description:"is included in both initial and async chunks."}),children:(0,l.jsx)(()=>(0,l.jsx)("div",{className:B,children:(0,l.jsx)(A.h,{title:(0,l.jsxs)(k.A,{children:[(0,l.jsx)(h.A,{style:{fontSize:"18px"},component:E.A}),(0,l.jsxs)(et,{style:{width:er>1500?900:700},children:["Module:"," ",(0,l.jsx)(et,{type:"secondary",style:{fontSize:12,fontWeight:300},children:i})]})]}),description:(0,l.jsxs)("div",{className:F,children:[r.length>0&&(0,l.jsxs)("div",{style:{marginBottom:16},children:[(0,l.jsx)("div",{style:{marginBottom:8,fontWeight:500},children:"Initial Chunks:"}),r.map(e=>(0,l.jsxs)("div",{style:{display:"flex",marginBottom:4},children:[(0,l.jsx)("div",{className:P,children:"Chunk"}),(0,l.jsx)("div",{className:R,children:(0,l.jsx)("span",{className:L,children:e.name||`chunk-${e.id}`})})]},e.id))]}),n.length>0&&(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{style:{marginBottom:8,fontWeight:500},children:"Async Chunks:"}),n.map(e=>(0,l.jsxs)("div",{style:{display:"flex",marginBottom:4},children:[(0,l.jsx)("div",{className:P,children:"Chunk"}),(0,l.jsx)("div",{className:R,children:(0,l.jsx)("span",{className:L,children:e.name||`(no chunk name, ChunkId: ${e.id})`})})]},e.id))]})]})})}),{})}});return(0,l.jsx)(S.A,{style:{width:"100%"},defaultActiveKey:n.map(e=>e.key),items:n})},{Text:es}=d.A,{innerWidth:ea}=window,en=e=>{let{data:t,extraData:r}=e,{cwd:a}=r,n=t.map(e=>{let{module:t,connections:r}=e,n=(0,ee.Zb)(t.path,a);return{key:n,label:(0,l.jsx)(W,{title:(0,l.jsx)(k.A,{size:4,align:"center",children:(0,l.jsx)(s.A,{className:O,children:(0,l.jsx)("span",{className:I,children:n})})}),description:`is only imported for its side effects by ${new Set(r.map(e=>e.originModule)).size} importer(s).`}),children:(0,l.jsx)(()=>(0,l.jsx)("div",{className:B,children:(0,l.jsx)(A.h,{title:(0,l.jsxs)(k.A,{align:"center",children:[(0,l.jsx)(h.A,{style:{fontSize:"18px"},component:E.A}),(0,l.jsxs)(es,{style:{width:ea>1500?900:700},children:["Module:"," ",(0,l.jsx)(es,{type:"secondary",style:{fontSize:12,fontWeight:300},children:n})]}),(0,l.jsx)(V,{file:t.path})]}),description:(0,l.jsxs)("div",{className:F,children:[(0,l.jsx)("div",{style:{marginBottom:8,fontWeight:500},children:"Side-Effects-Only Importers:"}),r.map((e,t)=>(0,l.jsxs)("div",{style:{display:"flex",marginBottom:4},children:[(0,l.jsx)("div",{className:P,children:"Import"}),(0,l.jsxs)("div",{className:R,children:[(0,l.jsx)("span",{className:L,children:e.userRequest}),(0,l.jsx)(s.A,{className:O,style:{marginLeft:8,fontSize:11},children:e.dependencyType})]})]},t))]})})}),{})}});return(0,l.jsx)(S.A,{style:{width:"100%"},defaultActiveKey:n.map(e=>e.key),items:n})},{innerWidth:ei}=window,eo=e=>{let{data:t,extraData:r}=e,{cwd:a}=r,n=new Map;for(let e of t){let t=e.requiredModule.path;n.has(t)||n.set(t,{requiredPath:t,issuers:[]}),n.get(t).issuers.push({issuerPath:e.issuerModule.path,request:e.request})}let i=Array.from(n.values()).map(e=>{let t=(0,ee.Zb)(e.requiredPath,a),r=e.issuers.length;return{key:t,label:(0,l.jsx)(W,{title:(0,l.jsx)(k.A,{size:4,align:"center",children:(0,l.jsx)(s.A,{className:O,children:(0,l.jsx)("span",{className:I,children:t})})}),description:`cannot be tree-shaken — required via CJS \`require()\` by ${r} caller(s).`}),children:(0,l.jsx)(()=>(0,l.jsx)("div",{className:B,children:(0,l.jsx)(A.h,{title:(0,l.jsxs)(k.A,{align:"center",children:[(0,l.jsx)("span",{style:{fontSize:13,fontWeight:500},children:"Required Module:"}),(0,l.jsx)("span",{style:{fontSize:12,color:"var(--text-color-secondary)",fontWeight:300,maxWidth:ei>1500?900:700,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block"},children:t})]}),description:(0,l.jsxs)("div",{className:F,children:[(0,l.jsx)("div",{style:{marginBottom:8,fontWeight:500},children:"CJS Require Callers:"}),e.issuers.map((e,t)=>(0,l.jsxs)("div",{style:{display:"flex",marginBottom:4,alignItems:"center"},children:[(0,l.jsx)("div",{className:P,children:"require"}),(0,l.jsxs)("div",{className:R,children:[(0,l.jsx)("span",{className:L,children:(0,ee.Zb)(e.issuerPath,a)}),(0,l.jsx)(s.A,{className:O,style:{marginLeft:8,fontSize:11,fontFamily:"Menlo"},children:`require('${e.request}')`}),(0,l.jsx)(V,{file:e.issuerPath})]})]},t))]})})}),{})}});return(0,l.jsx)(S.A,{style:{width:"100%"},defaultActiveKey:i.map(e=>e.key),items:i})};function ed(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60;if(e.length<=t)return e;let r=Math.floor((t-3)/2);return`${e.slice(0,r)}...${e.slice(-r)}`}let{Text:ec}=d.A,eh=e=>{let{data:t,extraData:r}=e,{cwd:a}=r,n=t.map(e=>{let{packageName:t,packageVersion:r,esmEntry:n,resolvedModule:i,issuers:o}=e,d=(0,ee.Zb)(i.path,a),c=(0,ee.Zb)(n,a);return{key:`${t}::${i.path}`,label:(0,l.jsx)(W,{title:(0,l.jsx)(k.A,{size:4,align:"center",children:(0,l.jsx)(s.A,{className:O,style:{backgroundColor:"#EAEDF1",borderRadius:"2px"},children:(0,l.jsx)("span",{className:I,children:`${t}@${r}`})})}),description:`has an ESM entry but was resolved to CJS by ${o.length} importer(s).`}),children:(0,l.jsx)(()=>(0,l.jsx)("div",{className:B,children:(0,l.jsx)(A.h,{title:(0,l.jsxs)(k.A,{align:"center",wrap:!0,children:[(0,l.jsx)(ec,{strong:!0,style:{fontSize:13},children:"Package:"}),(0,l.jsx)(s.A,{className:O,style:{fontFamily:"Menlo"},children:`${t}@${r}`})]}),description:(0,l.jsxs)("div",{className:F,style:{flexDirection:"column",paddingTop:16},children:[(0,l.jsxs)("div",{style:{display:"flex",marginBottom:8,alignItems:"center"},children:[(0,l.jsx)("div",{className:P,style:{color:"#52c41a",minWidth:100},children:(0,l.jsx)(s.A,{style:{backgroundColor:"#f6ffed",borderColor:"#b7eb8f",color:"#389e0d",borderRadius:"2px"},children:"ESM Entry"})}),(0,l.jsxs)("div",{className:R,children:[(0,l.jsx)(b.A,{title:c,children:(0,l.jsx)("span",{className:L,children:ed(c)})}),(0,l.jsx)(s.A,{style:{marginLeft:8,backgroundColor:"#f6ffed",borderColor:"#b7eb8f",color:"#389e0d",borderRadius:"2px",fontSize:11},children:"declared in package.json"})]})]}),(0,l.jsxs)("div",{style:{display:"flex",marginBottom:16,alignItems:"center"},children:[(0,l.jsx)("div",{className:P,style:{color:"#ff4d4f",minWidth:100},children:(0,l.jsx)(s.A,{style:{backgroundColor:"#fff7e6",borderColor:"#ffd591",color:"#d46b08",borderRadius:"2px"},children:"CJS Resolved"})}),(0,l.jsxs)("div",{className:R,children:[(0,l.jsx)(b.A,{title:d,children:(0,l.jsx)("span",{className:L,children:ed(d)})}),(0,l.jsx)(s.A,{style:{marginLeft:8,backgroundColor:"#fff1f0",borderColor:"#ffa39e",color:"#cf1322",borderRadius:"2px",fontSize:11},children:"actually bundled"})]})]}),(0,l.jsx)(S.A,{size:"small",ghost:!0,items:[{key:"issuers",label:(0,l.jsx)("span",{style:{fontWeight:500},children:`ESM Importers (${o.length})`}),children:o.map((e,t)=>(0,l.jsxs)("div",{style:{display:"flex",marginBottom:4,alignItems:"center"},children:[(0,l.jsx)("div",{className:P,children:"import"}),(0,l.jsxs)("div",{className:R,children:[(0,l.jsx)("span",{className:L,children:(0,ee.Zb)(e.path,a)}),(0,l.jsx)(s.A,{className:O,style:{marginLeft:8,fontSize:11,fontFamily:"Menlo"},children:`'${e.request}'`})]})]},t))}]})]})})}),{})}});return(0,l.jsx)(S.A,{style:{width:"100%"},defaultActiveKey:n.map(e=>e.key),items:n})};var eu=r(43029);let ep=[{key:"E1001",label:"Duplicate Packages"},{key:"E1002",label:"Cross Chunks Package"},{key:"E1003",label:"Loader Performance Optimization"},{key:"E1004",label:"ECMA Version Check"},{key:"E1005",label:"Default Import Check"},{key:"E1006",label:"Module Mixed Chunks"},{key:"E1007",label:"Tree Shaking Side Effects Only"},{key:"E1008",label:"CJS Require Cannot Tree-Shake"},{key:"E1009",label:"ESM Import Resolved to CJS"}];function ex(e){if(!(e instanceof Element))return null;let t=e.closest(".ant-tabs-nav-wrap");return t instanceof HTMLElement?t:null}let ef=e=>{let t,r,d,c,h,{title:u,dataSource:p,extraData:x}=e,f=(t=(0,i.useRef)(null),r=(0,i.useRef)(!1),d=(e,l)=>{let s=t.current;s&&s.pointerId===e&&(delete s.element.dataset.dragging,s.element.hasPointerCapture(e)&&s.element.releasePointerCapture(e),t.current=null,l&&s.moved&&(r.current=!0,window.setTimeout(()=>{r.current=!1})))},{onWheel(e){let t=ex(e.target);if(!t)return;let r=function(e){let{scrollLeft:t,scrollWidth:r,clientWidth:l,deltaX:s,deltaY:a,deltaMode:n}=e;return Math.min(Math.max(0,r-l),Math.max(0,t+(Math.abs(s)>Math.abs(a)?s:a)*(1===n?16:2===n?l:1)))}({scrollLeft:t.scrollLeft,scrollWidth:t.scrollWidth,clientWidth:t.clientWidth,deltaX:e.deltaX,deltaY:e.deltaY,deltaMode:e.deltaMode});r!==t.scrollLeft&&(t.scrollLeft=r,e.preventDefault())},onPointerDown(e){if("mouse"!==e.pointerType||0!==e.button)return;let r=ex(e.target);r&&!(r.scrollWidth<=r.clientWidth)&&(t.current={element:r,pointerId:e.pointerId,startX:e.clientX,startScrollLeft:r.scrollLeft,moved:!1})},onPointerMove(e){let r=t.current;if(!r||r.pointerId!==e.pointerId)return;let l=e.clientX-r.startX;!r.moved&&Math.abs(l)>=4&&(r.moved=!0,r.element.dataset.dragging="true",r.element.setPointerCapture(e.pointerId)),r.moved&&(r.element.scrollLeft=r.startScrollLeft-l,e.preventDefault())},onPointerUp(e){d(e.pointerId,!0)},onPointerCancel(e){d(e.pointerId,!1)},onClickCapture(e){r.current&&ex(e.target)&&(r.current=!1,e.preventDefault(),e.stopPropagation())}}),m=(c=ep.map(e=>({...e,data:[],tag:e.key})),h=[],p.forEach(e=>{let t=c.find(t=>{let{key:r}=t;return r===e.code});t?t.data.push(e):e.code===eu.jO.jr.Extend&&h.push(e)}),h.length&&c.push({key:"CUSTOM_RULES",label:"Custom Rules",data:h,tag:"Custom"}),c);m.sort((e,t)=>(t.data.length>0)-(e.data.length>0));let g=m.some(e=>{let{data:t}=e;return t.length>0}),j=m[0]?.key??"E1001",[y,b]=(0,i.useState)(j),w=m.some(e=>e.key===y)?y:j,k=m.map(e=>{let t,r,n=w===e.key?{border:"1px solid #91D5FF",backgroundColor:"#E6F7FF"}:{},i=w===e.key?{color:"#1890FF"}:{};switch(e.key){case"E1001":t=(0,l.jsx)(J,{data:e.data,extraData:x});break;case"E1002":t=(0,l.jsx)(Q,{data:e.data,extraData:x});break;case"E1003":case"E1005":t=(0,l.jsx)(Y,{data:e.data});break;case"E1004":r=(0,l.jsx)("span",{children:"No ECMA Version Check Rules were found. Please refer to 「https://rsdoctor.rs/guide/usage/rule-config」."}),t=(0,l.jsx)(v,{data:e.data});break;case"E1006":t=(0,l.jsx)(el,{data:e.data,extraData:x});break;case"E1007":t=(0,l.jsx)(en,{data:e.data,extraData:x});break;case"E1008":t=(0,l.jsx)(eo,{data:e.data,extraData:x});break;case"E1009":t=(0,l.jsx)(eh,{data:e.data,extraData:x});break;case"CUSTOM_RULES":t=(0,l.jsx)(Y,{data:e.data,showCode:!0});break;default:t=null}return e.data.length||(t=(0,l.jsx)(a.A,{description:r,image:a.A.PRESENTED_IMAGE_SIMPLE})),{key:e.key,label:(0,l.jsx)(()=>(0,l.jsx)(A.A,{style:{backgroundColor:"transparent",border:"none",borderRadius:0,minHeight:"auto",padding:"8px 0",width:"100%"},title:(0,l.jsx)("span",{className:"labelTitle-tjSCQ_",children:e.label}),description:(0,l.jsxs)("div",{className:"labelDescription-kB74lb",children:[(0,l.jsx)("span",{children:e.data.length}),(0,l.jsx)(s.A,{style:{fontFamily:"Menlo",borderRadius:"2px",...n},children:(0,l.jsx)("span",{style:{...i},children:e.tag})})]})}),{}),children:(0,l.jsx)(o.Zp,{className:"card-HNTMcZ",type:"inner",title:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s.A,{className:O,style:{fontFamily:"Menlo",fontWeight:"700",fontSize:"13px"},children:e.tag}),(0,l.jsx)("span",{children:e.label})]}),children:t})}});return(0,l.jsx)(o.Zp,{style:{width:"100%",borderRadius:"12px"},children:(0,l.jsxs)("div",{className:"container-TWzmhb",...f,children:[(0,l.jsx)("div",{className:"title-gD67_A",children:u}),g?(0,l.jsx)(n.A,{onChange:b,tabBarGutter:10,type:"card",activeKey:w,items:k}):(0,l.jsx)("div",{style:{minHeight:"480px",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,l.jsx)(a.A,{description:"No Bundle Alerts Data",image:a.A.PRESENTED_IMAGE_SIMPLE})})]})})}},594(e,t,r){var l=r(64558),s=r(1102),a=r(43029),n=r(1426),i=r(10943),o=r(41611);r(15061);var d=r(9926);(0,o.eN)({api:a.hp.uT.n.GetProjectInfo,responsePropName:"project",Component:e=>{let{filter:t,project:r}=e,{root:a,errors:o}=r,c=(0,n.y8)(o),{setCompileAlertsViewMode:h,viewMode:u,setViewMode:p}=(0,n.an)(),x=t?c.filter(t):c;return(0,s.useEffect)(()=>{(0,n.it)()||p({compileAlerts:c.length>=5?"group":"list"},!1)},[]),(0,l.jsx)(i.J,{title:"Compile Alerts",dataSource:x,extraData:{cwd:a,getPackageRelationContentComponent:e=>(0,l.jsx)(d.rU,{body:{id:e.data.id,target:e.package.target},cwd:a})},viewMode:u.compileAlerts,setViewMode:h,cwd:a})}})},8857(e,t,r){var l=r(64558),s=r(50162);r(1102);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%)"};r.d(t,{},{Ex:e=>{let{label:t,value:r,type:n="default",tooltip:i}=e,o={height:"100%",lineHeight:"22px",width:"auto",display:"inline-block",boxSizing:"border-box",padding:"0 6px",color:"#fff",fontSize:12,textAlign:"center",verticalAlign:"middle"},d=(0,l.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,l.jsx)("div",{style:{...o,borderTopLeftRadius:4,borderBottomLeftRadius:4,background:"linear-gradient(to bottom, #525252a3 0%, #1F1F1F 100%)"},children:t}),(0,l.jsx)("div",{style:{...o,borderTopRightRadius:4,borderBottomRightRadius:4,overflow:"hidden",textOverflow:"ellipsis",background:a[n]||a.default},children:r})]});return i?(0,l.jsx)(s.A,{title:!0===i?r:i,placement:"topLeft",children:d}):d}})},71029(e,t,r){var l=r(64558),s=r(85326),a=r(66482),n=r(6755),i=r(44953),o=r(16798),d=r(83821),c=r(53919),h=r(1102),u=r(30670),p=r(14061),x=r(15061),f=r(17886),m=r(78131),g=r(1426);let{jK:j,Sx:y}=x,v={colorPrimary:"#2f81f7",colorInfo:"#5b8ff9",colorSuccess:"#5ccb8a",colorWarning:"#f2b84b",colorError:"#ff6b6b",colorBgBase:"#090b10",colorBgLayout:"#090b10",colorBgContainer:"#11151b",colorBgElevated:"#171c24",colorBorder:"rgba(255, 255, 255, 0.16)",colorBorderSecondary:"rgba(255, 255, 255, 0.1)",colorText:"#f3f5f7",colorTextSecondary:"#aab2bf",colorTextTertiary:"#7d8796",colorFill:"rgba(255, 255, 255, 0.16)",colorFillSecondary:"rgba(255, 255, 255, 0.1)",colorFillTertiary:"rgba(255, 255, 255, 0.06)",colorFillQuaternary:"rgba(255, 255, 255, 0.04)",borderRadius:8,borderRadiusLG:12,boxShadowSecondary:"0 12px 32px rgba(0, 0, 0, 0.24)"},A={Layout:{bodyBg:"#090b10",headerBg:"#071827",headerColor:"#f3f5f7"},Menu:{activeBarHeight:2,darkItemBg:"transparent",darkSubMenuItemBg:"#11151b",darkItemColor:"#aab2bf",darkItemHoverColor:"#f3f5f7",darkItemHoverBg:"rgba(47, 129, 247, 0.08)",darkItemSelectedColor:"#f3f5f7",darkItemSelectedBg:"rgba(47, 129, 247, 0.14)",itemBorderRadius:8,horizontalItemBorderRadius:8},Card:{headerBg:"transparent",extraColor:"#aab2bf"},Segmented:{trackBg:"rgba(255, 255, 255, 0.06)",itemHoverBg:"rgba(255, 255, 255, 0.08)",itemActiveBg:"rgba(47, 129, 247, 0.12)",itemSelectedBg:"#202733",itemSelectedColor:"#f3f5f7"},Progress:{defaultColor:"#2f81f7",remainingColor:"rgba(255, 255, 255, 0.1)"},Tree:{nodeHoverBg:"rgba(47, 129, 247, 0.08)",nodeSelectedBg:"rgba(47, 129, 247, 0.14)",directoryNodeSelectedBg:"rgba(47, 129, 247, 0.18)"}};t.A=e=>{let{router:t,renderFailState:r,extraContent:b}=e,[w,k]=(0,h.useState)(j.Success),[S,C]=(0,h.useState)({...f.s.viewMode}),[M,T]=(0,h.useState)(),[z,D]=(0,h.useState)(f.s.theme);return w===x.jK.Fail?r?(0,l.jsx)(l.Fragment,{children:r()}):(0,l.jsxs)(s.A,{direction:"vertical",style:{padding:14},children:[(0,l.jsx)(a.A.Text,{strong:!0,style:{fontSize:16},children:"load json file of Rsdoctor failed."}),(0,l.jsxs)(a.A.Text,{children:["try to use ",(0,l.jsx)(a.A.Text,{keyboard:!0,children:"command + r"})," to refresh page."]}),null,(0,l.jsx)(n.A,{}),(0,l.jsx)(s.A,{direction:"vertical",style:{width:"100%"},children:(0,l.jsxs)(a.A.Text,{style:{fontSize:16},children:["you can",(0,l.jsx)(a.A.Text,{strong:!0,style:{fontSize:"inherit"},children:"upload a file"}),"in the area below to analyze your project."]})}),(0,l.jsx)(n.A,{})]}):(0,l.jsx)(p.I9,{children:(0,l.jsx)(f.Q.Provider,{value:{...f.s,theme:z,setTheme:e=>{D(e),(0,g.Kv)(e)},pageState:w,json:M,viewMode:S,setManifest:T,setPageState:k,setViewMode(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r={...S,...e};C(r),t&&(0,g.ZI)(r)}},children:(0,l.jsx)(i.Ay,{locale:(0,g.JK)(),theme:{components:{...z===y.Dark?A:{},Layout:{...z===y.Dark?A?.Layout:{},...y.Light===z&&{headerBg:"#fff"}}},algorithm:z===y.Dark?o.A.darkAlgorithm:o.A.defaultAlgorithm,token:{padding:16,fontFamily:"var(--font-family-code)",...z===y.Dark?v:{}}},children:(0,l.jsx)(m.P,{children:(0,l.jsxs)(l.Fragment,{children:[b,(0,l.jsx)(u.tH,{FallbackComponent:e=>{let{error:t,resetErrorBoundary:r}=e;return(0,l.jsx)(d.Ay,{status:"error",title:"Sorry, something went wrong.",extra:(0,l.jsx)(c.Ay,{type:"primary",onClick:r,loading:w===j.Pending,children:"Reload"}),children:(0,l.jsxs)(a.A.Paragraph,{children:[(0,l.jsx)(a.A.Title,{level:3,children:"Error Stack"}),(0,l.jsx)("pre",{children:t.stack||t.message})]})})},onReset:()=>{window.location.reload()},children:t})]})})})})})}},1637(e,t,r){var l=r(64558),s=r(43029),a=r(66482),n=r(85326),i=r(50162),o=r(17076),d=r(3534),c=r(1102),h=r(1426);r(15061);var u=r(50832);let p=e=>{let{percent:t,state:r,fontSize:n=14}=e,i=+t.toFixed(2);if(i>0){let e=`${i}`;if(r===s.Kj.Ol.Up)return(0,l.jsxs)(a.A.Text,{strong:!0,style:{fontSize:n,color:"#e17055"},children:["+",e,"%"]});if(r===s.Kj.Ol.Down)return(0,l.jsxs)(a.A.Text,{strong:!0,style:{fontSize:n,color:"#52c41a"},children:["-",e,"%"]})}return null},x=e=>{let{data:t,formatter:r}=e,{percent:s,state:o,size:d}=t,{baseline:c,current:u}=d,x=r?r(c,"baseline"):(0,h.Xq)(c),f=r?r(u,"current"):(0,h.Xq)(u);return(0,l.jsx)(n.A,{align:"start",children:(0,l.jsxs)(n.A,{direction:"vertical",style:{textAlign:"left"},children:[(0,l.jsxs)(n.A,{children:[(0,l.jsx)(a.A.Text,{style:{fontSize:10,color:"inherit"},keyboard:!0,children:"Current"}),(0,l.jsx)(i.A,{title:"number"==typeof f||"string"==typeof f?`Value of Current is ${f}`:void 0,children:(0,l.jsx)(a.A.Text,{style:{fontSize:16,color:"inherit"},strong:!0,children:f})}),(0,l.jsx)(p,{percent:s,state:o})]}),(0,l.jsxs)(n.A,{children:[(0,l.jsx)(a.A.Text,{style:{fontSize:10,color:"inherit"},keyboard:!0,children:"Baseline"}),(0,l.jsx)(i.A,{title:"number"==typeof x||"string"==typeof x?`Value of Baseline is ${x}`:void 0,children:(0,l.jsx)(a.A.Text,{style:{fontSize:14},type:"secondary",children:x})})]})]})})};r.d(t,{},{QE:p,aq:e=>{let{titles:t,datas:r,formatter:s,showPercentInTitle:i}=e,[d,h]=(0,c.useState)(0);return(0,l.jsx)(u.j,{title:t.length>1?(0,l.jsx)(o.A,{defaultValue:t[d],options:i?t.map((e,t)=>{let s=r[t];return{label:(0,l.jsxs)(n.A,{children:[(0,l.jsx)(a.A.Text,{children:e}),(0,l.jsx)(p,{percent:s.percent,state:s.state})]}),value:e}}):t,onChange:e=>{h(t.indexOf(e))},size:"small",style:{transition:"transform 0.3s ease"},value:t[d]||t[0]}):t[d],value:(0,l.jsx)(x,{data:r[d],formatter:s}),statisticProps:{style:{textAlign:"left"}}})},vh:e=>{let{baseline:t,current:r,...s}=e,a=d.TS.Nt(t,r);return(0,l.jsx)(p,{...s,...a})}})},44506(e,t,r){var l=r(64558),s=r(1102),a=r(28005),n=r(59896),i=r(30147),o=r(85326);r(1637),r.d(t,{},{Zp:e=>{let{collapsable:t=!1,children:r,title:d,dividerStyle:c,defaultCollapsed:h=!1,...u}=e,[p,x]=(0,s.useState)(h);return d&&t?(0,l.jsx)(i.A,{style:{borderRadius:"12px"},...u,title:(0,l.jsxs)(o.A,{style:{fontSize:"inherit"},children:[(0,l.jsx)("div",{style:{cursor:"pointer"},onClick:()=>x(!p),children:p?(0,l.jsx)(a.A,{}):(0,l.jsx)(n.A,{})}),d]}),children:p?null:r}):(0,l.jsx)(i.A,{style:{borderRadius:"12px"},title:d,...u,children:r})}})},50832(e,t,r){var l=r(64558),s=r(67628);r.d(t,{},{j:e=>{let{title:t,value:r,statisticProps:a,boxProps:n}=e;return(0,l.jsx)("div",{className:"statistic-card",...n,children:(0,l.jsx)(s.A,{title:(0,l.jsx)("div",{className:"statistic-card-title",children:t}),valueRender:()=>r,valueStyle:{fontSize:24},...a})})}})},29980(e,t,r){r.d(t,{n:()=>y});var l=r(64558),s=r(1102),a=r(35574),n=r(91241),i=r(88523),o=r(74008),d=r(77731),c=r(3935),h=r(96308),u=r(6750),p=r(51199),x=r(817),f=r.n(x),m=r(67782),g=r(66592),j=r(1426);n.Y([d.a,c.a,h.a,u.a,p.a]);let y=(0,s.memo)(e=>{let{loaderData:t,pluginsData:r,formatterFn:n,chartType:d=5,exts:c=null}=e,[h,u]=(0,s.useState)({}),p=(0,j.al)(),{data:x,categories:y}=(0,s.useMemo)(()=>{let e=[],l=[];if(t){t.forEach(e=>{l.unshift(e.n+" total"),l.unshift(e.n)}),t.forEach((t,r)=>{let s=g.LS[r%g.LS.length];e.push({name:t.n+" total",value:[l.indexOf(t.n+" total"),t.s,t.e,t.e-t.s],itemStyle:{normal:{color:s,opacity:.34}}}),t.c?.forEach((s,a)=>{e.push({name:t.n,value:[l.indexOf(t.n),s.s,s.e,s.e-s.s],itemStyle:{normal:{color:g.LS[(r+a)%g.LS.length],opacity:.78}},ext:s.ext})})});for(let e=0;e<l.length;e++)l[e]=e%2!=0?l[e].replace(" total",""):""}if(r){let t=(0,m.$z)(r,e=>e.pid);Object.keys(t).reverse().forEach((r,s)=>{t[r].forEach((t,r)=>{e.push({name:String(t.pid),value:[s,t.args.s,t.args.e,t.args.e-t.args.s],itemStyle:{normal:{color:g.LS[(s+r)%g.LS.length],opacity:.78}},ext:t})}),l.push(String(r.charAt(0).toUpperCase()+r.slice(1)))})}return{data:e,categories:l}},[t,r]);(0,s.useEffect)(()=>{u({tooltip:{formatter:e=>n(e)},dataZoom:[{type:"slider",filterMode:"weakFilter",showDataShadow:!1,top:-8,height:14,borderColor:p.colorBorderSecondary,backgroundColor:p.colorFillQuaternary,fillerColor:p.colorPrimaryBg,handleStyle:{color:p.colorTextSecondary,borderColor:p.colorBorder}},{type:"inside",filterMode:"weakFilter"}],grid:{top:18,left:12,bottom:12,right:16,height:y.length>(4===d?6:3)?"auto":46*y.length,containLabel:!0},xAxis:{interval:function(e){if(!e)return null;let t=e.endTimestamp-e.startTimestamp;return!Number.isFinite(t)||t<=0?null:Math.max(1,Math.ceil(t/5))}(c??void 0),position:"top",splitLine:{show:!0,lineStyle:{color:p.colorBorderSecondary,width:1}},scale:!0,axisLine:{show:!1},axisLabel:{color:p.colorTextSecondary,fontSize:11,hideOverlap:!0,margin:10,formatter:e=>f()(e).format("HH:mm:ss:SSS")}},yAxis:{type:"category",splitLine:{show:!1},axisLabel:{inside:!1,lineHeight:20,width:4===d?220:140,overflow:"truncate",margin:16,fontSize:12,color:p.colorTextSecondary,verticalAlign:"middle"},axisLine:{show:!1},axisTick:{show:!1},data:y},series:[{type:"custom",renderItem:function(e,t){let r=t.value(0),l=t.coord([t.value(1),r]),s=t.coord([t.value(2),r]),a=.36*t.size([0,1])[1],n=i.clipRectByRect({x:l[0],y:4===d?l[1]-(r%2!=0?0:2*a):l[1],width:s[0]-l[0]||5,height:a},{x:e.coordSys.x,y:e.coordSys.y,width:e.coordSys.width,height:e.coordSys.height});return n&&{type:"rect",transition:["shape"],shape:n,style:t.style(),enterFrom:{style:{opacity:0},x:0}}},itemStyle:{opacity:1},encode:{x:[1,2],y:0},data:x}]})},[y,d,x,c,n,p]);let v=t?2*t.length:new Set(r?.map(e=>e.pid)).size,A=3===d?100:4===d?Math.min(Math.max(46*v+80,300),1e3):Math.min(Math.max(46*v+70,200),1e3);return(0,l.jsx)(a.A,{option:h,echarts:o,style:{width:"100%",height:`${A}px`,border:"1px solid var(--color-border)",borderRadius:"10px"}})})},95194(e,t,r){var l=r(64558),s=r(1102),a=r(67782),n=r(74374);r(99246);var i=r(22009),o=r(5525),d=r(35784),c=r(29980),h=r(55096);let u=0,p=0;r.d(t,{},{z:e=>{let{loaders:t,cwd:r}=e,{isDark:x}=(0,i.DP)(),f=(0,s.useRef)(null),[m,g]=(0,s.useState)([]),j=(0,h.Wy)(m,200),y=(0,s.useMemo)(()=>(0,a.$z)(t,e=>e.loader),[t]),v=(0,s.useCallback)(e=>{let{name:l,data:s}=e,a=l.replace(" total","");return s?.ext?(0,h.Bq)(s.ext):(0,h.iv)(a,t,r)},[]);return(0,s.useEffect)(()=>{g(Object.keys(y).map(e=>{let t=y[e]||[],{start:l,end:s}=(0,o.xr)(t);return(l<u||0===u)&&(u=l),(s>p||0===p)&&(p=s),{p:e,n:e,s:l,e:s,c:t.map(t=>({p:e,n:(0,d.Zb)(t.resource,r),s:t.startAt,e:t.endAt,ext:t}))}}))},[y]),(0,l.jsx)(l.Fragment,{children:m?.length?(0,l.jsx)("div",{className:["loader-chart-container",x?"loader-chart-container_dark":""].join(" ").trim(),ref:f,style:{width:"100%"},children:(0,l.jsx)(c.n,{loaderData:j,formatterFn:v,chartType:4,exts:{startTimestamp:u,endTimestamp:p}})}):(0,l.jsx)(n.A,{})})}})},75140(e,t,r){r.d(t,{h:()=>y,C:()=>j});var l=r(64558);r(1102);var s=r(85326),a=r(61324),n=r(14124),i=r(37831),o=r(48406),d=r(87738),c=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,l.jsx)("path",{fill:"#FAAD14",d:"M11.409 3.51 8.046.146A.5.5 0 0 0 7.693 0H1.056a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.147-.355M7.462 1.152l2.94 2.94h-2.94zm2.969 11.722H1.68V1.125h4.718V4.5a.656.656 0 0 0 .657.656h3.375z"}),(0,l.jsx)("path",{fill:"#FAAD14",d:"M6.927 9.651h.888a1.6 1.6 0 0 1-.24.775q-.211.339-.592.528-.377.19-.908.19a1.9 1.9 0 0 1-.745-.142 1.6 1.6 0 0 1-.564-.416 1.9 1.9 0 0 1-.354-.653 2.8 2.8 0 0 1-.121-.858v-.3q0-.474.124-.858.128-.386.362-.656.238-.27.567-.415.33-.146.737-.146.54 0 .911.196.375.195.58.54.206.345.249.784H6.93a1.15 1.15 0 0 0-.104-.442.6.6 0 0 0-.27-.276 1 1 0 0 0-.475-.095.86.86 0 0 0-.39.083.7.7 0 0 0-.278.252 1.3 1.3 0 0 0-.17.428q-.053.255-.053.6v.305q0 .335.05.591.051.251.155.428a.7.7 0 0 0 .273.26.9.9 0 0 0 .407.087q.28 0 .46-.09a.6.6 0 0 0 .276-.263q.098-.176.116-.437"}),(0,l.jsx)("path",{fill:"#FFF1B8",fillRule:"evenodd",d:"M6.4 1.125V4.5a.656.656 0 0 0 .656.656h3.375v7.719H1.68V1.125zm1.415 8.526h-.888q-.017.261-.116.437a.6.6 0 0 1-.276.264q-.18.09-.46.089a.9.9 0 0 1-.407-.086.7.7 0 0 1-.273-.261q-.104-.176-.154-.428a3 3 0 0 1-.05-.59v-.307q0-.345.053-.6.056-.258.169-.427a.7.7 0 0 1 .279-.252.86.86 0 0 1 .389-.083q.297 0 .475.095a.6.6 0 0 1 .27.276q.09.18.104.442h.89a1.8 1.8 0 0 0-.249-.784q-.205-.345-.579-.54-.37-.195-.911-.196-.407 0-.737.146-.33.145-.567.415-.234.27-.362.656a2.8 2.8 0 0 0-.124.858v.3q0 .476.121.858.122.383.354.653.234.27.564.416.33.143.745.143.531 0 .908-.19.38-.19.591-.529a1.6 1.6 0 0 0 .24-.775",clipRule:"evenodd"})]}),h=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,l.jsx)("path",{fill:"#722ED1",d:"M6.076 7.58a.356.356 0 0 1 .646.299l-1.576 3.414a.356.356 0 0 1-.646-.298zM7.198 8.135a.356.356 0 0 0 0 .503l.8.799-.8.8a.356.356 0 1 0 .503.502l1.05-1.05a.356.356 0 0 0 0-.503l-1.05-1.05a.356.356 0 0 0-.503 0M4.024 8.135a.356.356 0 0 1 0 .503l-.799.799.8.8a.356.356 0 1 1-.504.502l-1.05-1.05a.356.356 0 0 1 0-.503l1.05-1.05a.356.356 0 0 1 .503 0"}),(0,l.jsx)("path",{fill:"#EFDBFF",fillRule:"evenodd",d:"M5.955 1.125V4.5a.656.656 0 0 0 .656.656h3.375v7.719h-8.75V1.125zm.121 6.456a.356.356 0 1 1 .646.298l-1.576 3.414a.356.356 0 1 1-.646-.298zm1.122.554a.356.356 0 0 0 0 .503l.8.799-.8.8a.356.356 0 1 0 .503.502l1.05-1.05a.356.356 0 0 0 0-.503l-1.05-1.05a.356.356 0 0 0-.503 0m-3.174.503a.356.356 0 1 0-.503-.503l-1.05 1.05a.356.356 0 0 0 0 .503l1.05 1.05a.355.355 0 1 0 .503-.502l-.799-.799z",clipRule:"evenodd"}),(0,l.jsx)("path",{fill:"#722ED1",d:"M10.964 3.51 7.602.146A.5.5 0 0 0 7.249 0H.61a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.147-.355M7.017 1.152l2.941 2.94h-2.94zm2.97 11.722h-8.75V1.125h4.718V4.5a.656.656 0 0 0 .656.656h3.375z"})]}),u=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,l.jsx)("path",{fill:"#E6F7FF",d:"M6.733 4.5V1.125h-4.72v11.75h8.75V5.156H7.39a.656.656 0 0 1-.656-.656m-2.094.781a.625.625 0 1 1 0 1.25.625.625 0 0 1 0-1.25m4.625 4.594H3.515a.125.125 0 0 1-.098-.202l1.56-1.987a.125.125 0 0 1 .196 0l.642.819 1.216-1.55a.126.126 0 0 1 .199 0l2.132 2.718a.125.125 0 0 1-.098.202"}),(0,l.jsx)("path",{fill:"#1890FF",d:"M11.742 3.51 8.38.146A.5.5 0 0 0 8.026 0H1.39a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.147-.355M7.795 1.152l2.94 2.94h-2.94zm2.969 11.722h-8.75V1.125h4.719V4.5a.656.656 0 0 0 .656.656h3.375z"}),(0,l.jsx)("path",{fill:"#1890FF",d:"m7.031 6.955-1.215 1.55-.643-.82a.125.125 0 0 0-.196 0l-1.56 1.988a.125.125 0 0 0 .099.202h5.748c.105 0 .163-.12.098-.202L7.23 6.955a.127.127 0 0 0-.199 0M4.014 5.906a.625.625 0 1 0 1.25 0 .625.625 0 0 0-1.25 0"})]}),p=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,l.jsx)("path",{fill:"#E6F7FF",fillRule:"evenodd",d:"M6.177 1.125V4.5a.656.656 0 0 0 .656.656h3.375v7.719h-8.75V1.125zm1.806 8.7q.03.081.03.183a.411.411 0 0 1-.26.388.8.8 0 0 1-.333.057q-.166 0-.307-.034a.7.7 0 0 1-.24-.11.5.5 0 0 1-.153-.197.7.7 0 0 1-.055-.3H5.88q0 .321.133.555.132.234.354.386.225.15.497.226.275.073.555.073.313 0 .565-.07.254-.07.435-.206.183-.135.279-.33a1 1 0 0 0 .096-.443q0-.235-.08-.42a1 1 0 0 0-.24-.33 1.7 1.7 0 0 0-.396-.263 3.5 3.5 0 0 0-.544-.211 3 3 0 0 1-.326-.118 1.3 1.3 0 0 1-.237-.127.5.5 0 0 1-.146-.146.33.33 0 0 1-.047-.174q0-.129.068-.23a.45.45 0 0 1 .203-.164.8.8 0 0 1 .339-.062q.21 0 .349.073a.48.48 0 0 1 .208.2q.07.125.07.292h.777q0-.339-.175-.602a1.17 1.17 0 0 0-.484-.414 1.7 1.7 0 0 0-.732-.15q-.307 0-.565.075-.255.075-.443.216a1 1 0 0 0-.292.333.9.9 0 0 0-.104.43q0 .244.1.43.1.184.275.325.178.138.406.242.232.104.49.188.232.072.378.14a1 1 0 0 1 .226.138q.08.068.11.152M4.595 7.209v2.628q0 .195-.063.33a.46.46 0 0 1-.17.206.47.47 0 0 1-.257.07.6.6 0 0 1-.263-.051.36.36 0 0 1-.17-.175.8.8 0 0 1-.057-.33h-.783q0 .398.164.658.164.258.45.383t.659.125q.36 0 .646-.146.289-.146.456-.416.166-.274.166-.654V7.208z",clipRule:"evenodd"}),(0,l.jsx)("path",{fill:"#1890FF",d:"M8.014 10.008a.5.5 0 0 0-.031-.182.34.34 0 0 0-.11-.152 1 1 0 0 0-.226-.138 3 3 0 0 0-.378-.14 5 5 0 0 1-.49-.188 2 2 0 0 1-.406-.242 1.1 1.1 0 0 1-.276-.325.9.9 0 0 1-.099-.43q0-.237.104-.43a1 1 0 0 1 .292-.333q.188-.141.443-.216.258-.075.565-.076.42 0 .732.151.312.152.484.414.175.264.175.602h-.776a.6.6 0 0 0-.07-.292.48.48 0 0 0-.21-.2.74.74 0 0 0-.348-.073.8.8 0 0 0-.339.062.45.45 0 0 0-.203.164.4.4 0 0 0-.067.23q0 .096.046.174.05.078.146.146t.237.127q.14.06.326.118.31.093.544.21.237.118.396.264a1 1 0 0 1 .24.33q.08.185.08.42a1 1 0 0 1-.096.442.9.9 0 0 1-.279.331q-.181.135-.435.206a2.1 2.1 0 0 1-.565.07q-.28 0-.555-.073a1.7 1.7 0 0 1-.497-.226q-.222-.152-.354-.386a1.1 1.1 0 0 1-.133-.555h.784q0 .178.055.3a.5.5 0 0 0 .153.198q.102.075.24.11.14.033.307.033.204 0 .333-.057a.41.41 0 0 0 .26-.388M4.595 9.836V7.208h.778v2.628q0 .38-.166.654-.167.27-.456.416a1.4 1.4 0 0 1-.646.146q-.372 0-.659-.125a1 1 0 0 1-.45-.383q-.164-.26-.164-.659h.783q0 .21.058.331a.36.36 0 0 0 .169.175q.109.052.263.052a.47.47 0 0 0 .258-.07.46.46 0 0 0 .17-.206q.061-.135.062-.331"}),(0,l.jsx)("path",{fill:"#1890FF",d:"M11.186 3.51 7.824.146A.5.5 0 0 0 7.47 0H.833a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.147-.355M7.24 1.152l2.94 2.94H7.24zm2.968 11.722h-8.75V1.125h4.72V4.5a.656.656 0 0 0 .655.656h3.375z"})]}),x=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,l.jsx)("path",{fill:"#F0F0F0",d:"M6.288 4.5V1.125H1.57v11.75h8.75V5.156H6.944a.656.656 0 0 1-.656-.656m-.344 6.625a.5.5 0 1 1 0-.999.5.5 0 0 1 0 .999m1.72-3.569c.01.702-.465 1.32-1.162 1.546a.22.22 0 0 0-.151.207V9.5c0 .086-.07.156-.157.156h-.5a.157.157 0 0 1-.156-.156V9a.65.65 0 0 1 .542-.627c.443-.057.77-.4.77-.795 0-.439-.402-.805-.906-.805-.503 0-.906.366-.906.807a.15.15 0 0 1-.153.147H4.38a.15.15 0 0 1-.153-.149c0-.897.783-1.62 1.742-1.61.926.013 1.683.721 1.695 1.588"}),(0,l.jsx)("path",{fill:"#8C8C8C",d:"M11.298 3.51 7.935.148A.5.5 0 0 0 7.58 0H.944a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.146-.353M7.35 1.154l2.94 2.94h-2.94zm2.968 11.722H1.57V1.125h4.72V4.5a.656.656 0 0 0 .655.656h3.375z"}),(0,l.jsx)("path",{fill:"#8C8C8C",d:"M5.444 10.625a.5.5 0 1 0 1 0 .5.5 0 0 0-1 0M4.226 7.578a.15.15 0 0 0 .153.149h.506a.15.15 0 0 0 .153-.147c0-.44.403-.807.906-.807.504 0 .907.366.907.805 0 .395-.328.738-.77.795A.65.65 0 0 0 5.537 9v.5c0 .086.07.156.156.156h.5c.086 0 .157-.07.157-.156v-.19a.22.22 0 0 1 .151-.208c.697-.225 1.172-.844 1.161-1.546-.012-.867-.769-1.575-1.695-1.587-.96-.011-1.742.712-1.742 1.61"})]}),f=r(1426),m=r(13078),g=r.n(m);function j(e){let t=function(e){switch(g().extname(e).slice(1).toLowerCase()){case"js":case"jsx":case"ts":case"mjs":case"cjs":case"mts":case"cts":return(0,l.jsx)(p,{});case"tsx":default:return(0,l.jsx)(x,{});case"css":case"scss":case"sass":case"less":case"styl":case"stylus":return(0,l.jsx)(c,{});case"html":return(0,l.jsx)(h,{});case"png":case"jpg":case"jpeg":case"gif":case"svg":case"bmp":case"webp":case"ico":case"apng":case"avif":case"tif":case"tiff":case"jfif":case"pjpeg":case"pjp":return(0,l.jsx)(u,{})}}(e);return(0,l.jsx)("div",{className:"file-icon",children:t})}let y=e=>{let{isDark:t}=(0,f.DP)(),r=(0,f.al)(),c=t?r.colorWhite:r.colorText,h={fontSize:r.fontSize};return(0,l.jsx)(d.A,{checkable:!1,selectable:!0,switcherIcon:e=>{let{data:t,expanded:r}=e;return t?.children?(0,l.jsxs)(s.A,{style:{color:c},children:[(0,l.jsx)(a.A,{twoToneColor:c,className:`file-tree-switcher-arrow ${r?"file-tree-switcher-arrow-expand":""}`,style:h}),r?(0,l.jsx)(n.A,{}):(0,l.jsx)(i.A,{})]}):t?.key&&"string"==typeof t.key?j(t.key):(0,l.jsx)(o.A,{})},expandAction:"click",...e})}},7415(e,t,r){var l=r(64558),s=r(1102),a=r(70722),n=r(53919),i=r(66482);r.d(t,{},{E:e=>{let t,{icon:r,label:o,labelStyle:d={},placeholder:c,onChange:h,style:u,className:p,width:x,delay:f=300}=e,[m,g]=(0,s.useState)(""),j={width:120,...d},y=(0,s.useRef)(null);return(0,s.useEffect)(()=>{h(m)},[m]),(0,l.jsxs)(a.A.Group,{compact:!0,style:u,className:p,children:[o||r?(0,l.jsxs)(n.Ay,{style:j,onClick:()=>{y&&y.current&&y.current.focus()},children:[r||null,(0,l.jsx)(i.A.Text,{children:o})]}):null,(0,l.jsx)(a.A,{ref:y,allowClear:!0,defaultValue:m,style:{width:x?x-120:250},placeholder:c,onChange:e=>{t&&clearTimeout(t);let r=e.target.value.trim();t=setTimeout(()=>{g(r)},f)}})]})}})},78131(e,t,r){r.d(t,{P:()=>W});var l=r(64558),s=r(1102),a=r(75273),n=r(36187),i=r(15061),o=r(43029),d=r(80844),c=r(63598),h=r(85395),u=r(23807),p=r(1426),x=r(49249),f=r(6755),m=r(85326),g=r(66482),j=r(13616),y=r(54594),v=r(29409),A=r(76253);let b=()=>{let[e,t]=(0,s.useState)(""),[r,a]=(0,s.useState)([]);return((0,s.useEffect)(()=>{let e=window[o.YM.tQ];if(e?.name&&e.series?.length){t(e.name),a(e.series);return}(0,p.Cj)().then(e=>{let{name:r,series:l}=e;r&&t(r),l&&l.length>0&&a(l)})},[]),e.length<=0||r.length<=1)?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(f.A,{type:"vertical",style:{margin:"0 24px"}}),(0,l.jsxs)(m.A,{children:[(0,l.jsx)(A.A,{style:{fontSize:"18px"},component:v.A}),(0,l.jsx)(g.A,{children:"Compiler"}),(0,l.jsx)(j.A,{className:"builder-selector",defaultValue:e,bordered:!1,style:{minWidth:100},onChange:e=>{let t=r.find(t=>t.name===e);t&&(t.origin?location.href=(0,p.$G)(t.origin):t.path?location.href=t.path.endsWith(".html")?new URL(t.path,location.href).href:(0,p.mZ)(t.path):console.error("No Rsdoctor compiler report location"))},children:r.map(e=>(0,l.jsx)(j.A.Option,{value:e.name,className:"builder-selector-option-item",children:(0,l.jsxs)(m.A,{size:6,children:[(0,l.jsx)("span",{children:e.displayName||e.name}),e.isChild?(0,l.jsx)(y.A,{color:"blue",bordered:!1,children:"Child"}):null]})},e.name))})]})]})};var w=r(37318),k=r(47682),S=r(89275),C=r(32715),M=r(40008),T=r(53879),z=r(80606),D=r(41611),E=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:12,fill:"none",viewBox:"0 0 13 12",...e,children:[(0,l.jsx)("rect",{width:12,height:9.333,x:.396,y:.167,fill:"#0079FF",rx:1}),(0,l.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M3.563 3.5c.276 0 .5.214.5.478v3.044a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478V3.978a.49.49 0 0 1 .5-.478M6.396 1.833c.276 0 .5.214.5.479v4.71a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478v-4.71a.49.49 0 0 1 .5-.479M9.23 4.833c.275 0 .5.214.5.479v1.71a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478v-1.71a.49.49 0 0 1 .5-.479",clipRule:"evenodd"}),(0,l.jsx)("rect",{width:6,height:1.333,x:3.396,y:10.5,fill:"#0079FF",fillOpacity:.5,rx:.667})]}),N=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:12,fill:"none",viewBox:"0 0 13 12",...e,children:[(0,l.jsx)("rect",{width:12,height:9.333,x:.396,y:.167,fill:"#0079FF",rx:1}),(0,l.jsx)("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",d:"M4.023 6.212 2.676 5.014l1.347-1.199M8.752 6.212l1.347-1.198-1.347-1.199M5.742 7.014l1.362-4"}),(0,l.jsx)("rect",{width:6,height:1.333,x:3.396,y:10.5,fill:"#0079FF",fillOpacity:.5,rx:.667})]}),B=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,l.jsx)("path",{fill:"#0079FF",fillRule:"evenodd",d:"M6.329.788A1 1 0 0 0 5.35.8L.466 3.62l5.36 2.83 5.327-3.044zm-.993 12.777V7.322L.063 4.54v5.404a1 1 0 0 0 .5.866z",clipRule:"evenodd"}),(0,l.jsx)("path",{fill:"#0079FF",fillOpacity:.5,fillRule:"evenodd",d:"M5.354.8H5.35L.546 3.576l.017-.01L5.336.81zm-.018 12.765V7.322L.063 4.54l5.273 2.783zm1-6.254 5.265-3.009q.009.064.009.13v5.511a1 1 0 0 1-.5.866l-4.774 2.756z",clipRule:"evenodd"})]}),F=r(42718);let P="Compile Analysis",R={overall:(0,l.jsx)(e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:12,fill:"none",viewBox:"0 0 13 12",...e,children:[(0,l.jsx)("rect",{width:12,height:9.333,x:.615,y:.167,fill:"#5E6673",rx:1}),(0,l.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M3.781 3.5c.277 0 .5.214.5.478v3.044a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478V3.978a.49.49 0 0 1 .5-.478M6.615 1.833c.276 0 .5.214.5.479v4.71a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478v-4.71a.49.49 0 0 1 .5-.479M9.448 4.833c.276 0 .5.214.5.479v1.71a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478v-1.71a.49.49 0 0 1 .5-.479",clipRule:"evenodd"}),(0,l.jsx)("rect",{width:6,height:1.333,x:3.615,y:10.5,fill:"#5E6673",fillOpacity:.5,rx:.667})]}),{}),compile:(0,l.jsx)(e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:12,fill:"none",viewBox:"0 0 13 12",...e,children:[(0,l.jsx)("rect",{width:12,height:9.333,x:.615,y:.167,fill:"#5E6673",rx:1}),(0,l.jsx)("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",d:"M4.241 6.212 2.895 5.014 4.24 3.815M8.97 6.212l1.347-1.198-1.346-1.199M5.96 7.014l1.363-4"}),(0,l.jsx)("rect",{width:6,height:1.333,x:3.615,y:10.5,fill:"#5E6673",fillOpacity:.5,rx:.667})]}),{}),bundle:(0,l.jsx)(e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,l.jsx)("path",{fill:"#5E6673",fillRule:"evenodd",d:"M6.44.672a1 1 0 0 0-.977.013L.578 3.505l5.36 2.83 5.327-3.044zm-.992 12.777V7.206L.175 4.423v5.404a1 1 0 0 0 .5.866z",clipRule:"evenodd"}),(0,l.jsx)("path",{fill:"#5E6673",fillOpacity:.5,fillRule:"evenodd",d:"m5.466.683-.003.002L.658 3.459l.017-.01L5.448.693zM5.448 13.45V7.206L.175 4.423l5.273 2.783zm1-6.254 5.265-3.009q.009.064.009.13v5.511a1 1 0 0 1-.5.866L6.448 13.45z",clipRule:"evenodd"})]}),{})},L=(0,D.eN)({api:o.hp.uT.n.GetClientRoutes,responsePropName:"routes",Component:e=>{let{t}=(0,p.s9)(),{pathname:r}=(0,u.zy)(),a=(0,u.Zp)(),[n,i]=(0,s.useState)(R),{routes:d}=e,c=(0,p.TR)(),h=d&&d.length>0?d:c||[];(0,s.useEffect)(()=>{r.includes("loaders")||r.includes("plugins")||r.includes("/module/resolve")?i({...R,compile:(0,l.jsx)(N,{})}):r.includes("overall")||"/"===r?i({...R,overall:(0,l.jsx)(E,{})}):(r.includes("bundle")||r===F.s0.wE)&&i({...R,bundle:(0,l.jsx)(B,{})})},[r]);let x={color:"rgba(96, 102, 114)"},f=[];h.includes(o._8.z.Overall)&&f.push({label:t(z.U),key:z.w,icon:n.overall,children:[],onTitleClick(e){a(e.key)}}),(0,p.cv)(h)&&f.push({label:t(P),key:P,icon:n.compile,children:[h.includes(o._8.z.Loaders)&&{label:t(F.pI.UU),key:F.pI.wE,icon:(0,l.jsx)(w.A,{style:x})},h.includes(o._8.z.Loaders)&&{label:t(F.hK.UU),key:F.hK.wE,icon:(0,l.jsx)(k.A,{style:x})},h.includes(o._8.z.ModuleResolve)&&{label:t(F.dn.UU),key:F.dn.wE,icon:(0,l.jsx)(S.A,{style:x})},h.includes(o._8.z.Plugins)&&{label:t(F.FO.UU),key:F.FO.wE,icon:(0,l.jsx)(C.A,{style:x})}].filter(e=>!!e)}),(0,p.r0)(h)&&f.push({label:t(F._y.UU),key:F._y.UU,icon:n.bundle,children:[{label:t("Bundle Analysis"),key:F._y.wE},...h.includes(o._8.z.TreeShaking)?[{label:t(F.s0.UU),key:F.s0.wE}]:[]],onTitleClick(){a(F._y.wE)}});let{theme:m}=(0,p.DP)(),g=(0,l.jsx)(T.A,{items:f,theme:m,mode:"horizontal",onClick:e=>{e.keyPath.includes("builder-switcher")||a(e.key)},disabledOverflow:!0,overflowedIndicator:(0,l.jsx)(M.A,{}),className:"primaryMenu-gMpDIg",style:{height:54,lineHeight:"54px",minWidth:0,justifyContent:"flex-start",...e.style},selectedKeys:["/"===r?z.w:r]},h.join(""));return(0,l.jsx)("nav",{className:"menuContainer-teTlDu","aria-label":"Primary navigation",children:g})},fallbackComponent:()=>null,showSkeleton:!1}),I=e=>{let{enableRoutes:t}=e,r=(0,u.Zp)(),{setTheme:s,isLight:n,isDark:f}=(0,p.DP)();return(0,l.jsx)(a.A.Header,{className:"root-nAtwJx",children:(0,l.jsxs)(d.A,{className:"innerRoot-b2vAK8",children:[(0,l.jsx)(c.A,{className:"leftCol-n3WyJ5",children:(0,l.jsxs)("div",{className:"leftColInner-AB1JiD",children:[(0,l.jsx)("button",{type:"button",className:"logoButton-TKslN_","aria-label":"Go to Rsdoctor home",onClick:()=>{location.hash.includes(o.Kj.EH.Uploader)&&location.pathname.includes("/preview")?location.href="http://rsdoctor.rs":r(o.Kj.EH.Home)},children:(0,l.jsx)("img",{width:"1604",height:"380",src:n?"https://assets.rspack.rs/rsdoctor/rsdoctor-title-logo.png":"https://assets.rspack.rs/rsdoctor/rsdoctor-logo-dark.png",className:"rsdoctorLogo-O30iKB",alt:"Rsdoctor",draggable:!1})}),(0,l.jsx)(b,{})]})}),(0,l.jsx)(L,{style:{transition:"none"}},t?JSON.stringify(t):"default"),(0,l.jsx)(c.A,{className:"rightCol-jgHpb9",children:(0,l.jsxs)(d.A,{className:"rightColInner-nINgMT",children:[(0,l.jsx)(c.A,{children:(0,l.jsx)(x.EJ,{})}),(0,l.jsx)(c.A,{children:(0,l.jsx)(h.A,{className:"themeSwitch-qaSSKB","aria-label":f?"Use light theme":"Use dark theme",checkedChildren:"🌛",unCheckedChildren:"🌞",checked:f,onChange:e=>{s(e?i.Sx.Dark:i.Sx.Light)}})})]})})]})})};var O=r(23197);let G=(0,D.eN)({api:o.hp.uT.k.GetCompileProgress,responsePropName:"progress",Component:e=>{let{progress:t}=e;if(!t)return null;let{percentage:r=1,message:s}=t;if(r>=1)return null;let a=+(100*r).toFixed(1);return(0,l.jsx)(d.A,{wrap:!0,style:{width:"100%",position:"fixed",top:54,left:1,zIndex:99},children:(0,l.jsx)(c.A,{span:Math.min(Math.floor(24*r),24),children:(0,l.jsx)(O.A,{percent:100,status:"active",size:"small",format:()=>(0,l.jsx)(g.A.Text,{style:{fontSize:12},type:"secondary",children:`${a}% ${s}`})})})})},fallbackComponent:()=>null,showSkeleton:!1});var $=r(17886),_=r(76274);let q=e=>{let{name:t}=e;return(0,s.useEffect)(()=>{t?document.title=`Rsdoctor - ${t}`:document.title="Rsdoctor"},[t]),null},W=e=>{let{isLight:t}=(0,p.DP)(),r=(0,p.al)(),{children:i}=e,d=(0,p.xF)(),[c,h]=(0,s.useState)(()=>(0,p.TR)()||void 0);(0,s.useEffect)(()=>{h((0,p.TR)()||void 0)},[d]);let u=!(0,s.useContext)($.Q).embedded;return(0,s.useLayoutEffect)(()=>{let e=document.documentElement;for(let[l,s]of Object.entries({"--spacing-base":"20px","--layout-nav-height":u?"54px":"0px","--color-bg-main":t?"":r.colorBgLayout,"--color-bg-box":r.colorBgContainer,"--color-bg-box-elevated":t?r.colorBgLayout:r.colorBgElevated,"--color-bg-box-subtle":t?r.colorBgContainer:"#0d1218","--color-border":r.colorBorder,"--color-border-secondary":r.colorBorderSecondary,"--color-divider":r.colorBorder,"--color-scrollbar":t?"rgba(0, 0, 0, 0.5)":"rgba(255,255,255, 0.5)","--text-color":r.colorText,"--text-color-secondary":r.colorTextSecondary,"--text-color-muted":r.colorTextTertiary,"--color-accent-subtle":t?"#e6f4ff":"rgba(47, 129, 247, 0.12)","--color-data-bundled":"#5b8ff9","--color-data-source":"#43c6d9","--color-data-gzip":"#f2b84b","--color-data-initial":"#43c6d9","--border-radius":r.borderRadius+"px","--border-radius-lg":r.borderRadiusLG+"px"}))e.style.setProperty(l,s)},[u,r,t]),(0,l.jsx)(D.zW,{api:o.hp.uT.n.GetProjectInfo,showSkeleton:!1,children:e=>(0,l.jsx)(_.h.Provider,{value:{project:e},children:(0,l.jsxs)(a.A,{children:[(0,l.jsx)(q,{name:e?.name}),u&&(0,l.jsx)(I,{enableRoutes:c}),(0,l.jsx)(G,{}),(0,l.jsxs)(a.A.Content,{className:"content-LBJ07l",children:[i,(0,l.jsx)(n.A.BackTop,{})]})]})})})}},73058(e,t,r){r.d(t,{h:()=>q});var l=r(64558),s=r(12529),a=r(43029),n=r(6755),i=r(54594),o=r(85326),d=r(50162),c=r(66482),h=r(50037),u=r(88693),p=r(80844),x=r(63598),f=r(30147),m=r(35074),g=r(60339),j=r(67782),y=r(1102),v=r(15061),A=r(1426),b=r(75140),w=r(46977),k=r(41611),S=r(20458),C=r(74374),M=r(7802),T=r(78593),z=r(817),D=r.n(z),E=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:12,fill:"none",viewBox:"0 0 10 12",...e,children:[(0,l.jsx)("path",{fill:"#FAAD14",fillRule:"evenodd",d:"M3.151 7.98h-1.85a.925.925 0 0 1-.924-.925V1.508c0-.511.414-.925.925-.925h7.396c.511 0 .925.414.925.925v5.547c0 .51-.414.924-.925.924H6.85V6.13a1.85 1.85 0 0 0-3.698 0z",clipRule:"evenodd"}),(0,l.jsx)("path",{fill:"#FAAD14",d:"M4.076 9.829a.925.925 0 0 0 1.849 0V6.13a.925.925 0 0 0-1.85 0z"}),(0,l.jsx)("path",{fill:"#FAAD14",d:"M5 11.416 7.402 8.92H2.598z"})]}),N=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,l.jsx)("rect",{width:16,height:16,fill:"#F6FFED",rx:2}),(0,l.jsx)("path",{fill:"#52C41A",fillRule:"evenodd",d:"M4.302 6.02a.925.925 0 0 0-.925.925v5.547c0 .51.414.925.925.925h7.396c.511 0 .925-.414.925-.925V6.945a.925.925 0 0 0-.925-.925zm5.547 0H6.151v1.85a1.85 1.85 0 0 0 3.698 0z",clipRule:"evenodd"}),(0,l.jsx)("path",{fill:"#52C41A",d:"M7.076 4.171a.925.925 0 0 1 1.849 0V7.87a.925.925 0 0 1-1.85 0z"}),(0,l.jsx)("path",{fill:"#52C41A",d:"m8 2.584 2.402 2.496H5.598z"})]}),B=e=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",viewBox:"0 0 14 14",...e,children:(0,l.jsx)("path",{fill:"#2994FF",d:"M7 10.736 1.7 6.589a.125.125 0 0 0-.201.098v1.208c0 .077.036.15.095.197l5.097 3.989a.5.5 0 0 0 .617 0l5.095-3.99a.25.25 0 0 0 .096-.196V6.687a.125.125 0 0 0-.202-.098zm0-4.75L1.7 1.839a.125.125 0 0 0-.201.098v1.208c0 .077.036.15.095.197L6.692 7.33a.5.5 0 0 0 .617 0l5.095-3.99a.25.25 0 0 0 .096-.196V1.937a.125.125 0 0 0-.202-.098z"})}),F=r(73308),P=r(44506),R=r(91326),L=r(76174),I=r(75255),O=r(70851);let G=e=>{let{loader:t,resource:r,cwd:s}=e;return(0,l.jsx)(P.Zp,{title:"Loader Details",style:{border:"none"},extra:(0,l.jsx)(i.A,{icon:(0,l.jsx)(S.A,{}),color:"default",children:D()(t.startAt).format("YYYY-MM-DD HH:mm:ss")}),children:(0,l.jsxs)(o.A,{direction:"vertical",style:{width:"100%"},children:[t.isPitch?(0,l.jsx)(c.A.Text,{code:!0,children:"pitch"}):null,(0,l.jsxs)(u.A,{size:"large",bordered:!0,children:[(0,l.jsxs)(u.A.Item,{children:[(0,l.jsx)(c.A.Text,{strong:!0,children:"File Path"}),(0,l.jsx)("div",{children:(0,A.Zb)(r.path,s)})]}),(0,l.jsxs)(u.A.Item,{children:[(0,l.jsx)(c.A.Text,{strong:!0,children:"Resource Path"}),(0,l.jsx)(R.hZ,{cwd:s,url:r.path,loc:"",disabled:!0})]}),(0,l.jsxs)(u.A.Item,{children:[(0,l.jsx)(c.A.Text,{strong:!0,children:"Resource Query"}),(0,l.jsx)("div",{children:r.queryRaw||"-"})]}),(0,l.jsxs)(u.A.Item,{children:[(0,l.jsx)(c.A.Text,{strong:!0,children:"Duration"}),(0,l.jsx)("div",{children:(0,A.a4)(t.costs)})]}),(0,l.jsxs)(u.A.Item,{children:[(0,l.jsx)(c.A.Text,{strong:!0,children:"Loader"}),(0,l.jsx)("div",{children:(0,l.jsx)(c.A.Text,{code:!0,children:t.loader})})]}),(0,l.jsxs)(u.A.Item,{children:[(0,l.jsx)(c.A.Text,{strong:!0,children:"Loader Index"}),(0,l.jsx)("div",{children:`${t.loaderIndex}`})]}),(0,l.jsxs)(u.A.Item,{children:[(0,l.jsx)(c.A.Text,{strong:!0,children:"Loader Path"}),(0,l.jsx)(R.hZ,{cwd:s,url:t.path,loc:"",disabled:!0})]}),(0,l.jsxs)(u.A.Item,{children:[(0,l.jsx)("div",{style:{width:180},children:(0,l.jsx)(c.A.Text,{strong:!0,children:"Options"})}),(0,l.jsx)(n.A,{type:"vertical"}),(0,l.jsx)(c.A.Paragraph,{ellipsis:{rows:2,expandable:!0,symbol:"more"},copyable:!0,children:JSON.stringify(t.options||"-")})]})]})]})})},$=e=>{let{loader:t,resource:r,isLight:s,codeData:a}=e,n=t.errors&&t.errors.length,i=a?.input||"",o=a?.output||"";return(0,l.jsx)("div",{style:{height:"100%"},children:n?(0,l.jsxs)(x.A,{span:24,style:{height:"53%",minHeight:400},children:[(0,l.jsx)("div",{style:{padding:20,borderTop:`1px solid ${s?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`,borderBottom:`1px solid ${s?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:(0,l.jsx)(L.h,{text:`the error stack of [${t.loader}] ${t.isPitch?"pitch":""}`})}),(0,l.jsx)("div",{style:{height:"90%"},children:(0,l.jsx)(F.Cv,{code:t.errors[0].message,lang:"javascript"})})]}):(0,l.jsxs)(x.A,{span:24,style:{height:"53%",minHeight:400},children:[(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center",padding:20,borderBottom:`1px solid ${s?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:[(0,l.jsx)(L.h,{text:(0,l.jsxs)(l.Fragment,{children:[`the result of [${t.loader}] ${t.isPitch?"pitch":""}`,!t.isPitch&&(0,l.jsxs)("span",{style:{fontWeight:400},children:["(",(0,l.jsx)(E,{style:{verticalAlign:"middle",margin:"0 2px"}}),"Input ⟷",(0,l.jsx)(N,{style:{verticalAlign:"middle",position:"relative",top:-2}}),"Output)"]})]})}),(0,l.jsx)("div",{style:{flex:1}})]}),t.isPitch?o?(0,l.jsx)("div",{style:{height:"90%"},children:(0,l.jsx)(F.Cv,{isEmbed:!0,code:o,filePath:r.path})}):(0,l.jsx)(C.A,{description:"No loader result. If you use the Brief Mode, there will not have loader results."}):(0,l.jsx)("div",{style:{minHeight:"700px"},children:(0,l.jsx)("div",{style:{height:"40rem",overflow:"hidden"},children:o||i?(0,l.jsx)(F.Mh,{isEmbed:!0,original:i,modified:o||"",originalFilePath:r.path,modifiedFilePath:r.path}):(0,l.jsx)(C.A,{description:"No loader result. If you use the Brief Mode, there will not have loader results."})})})]})})},_=e=>{let{data:t,cwd:r,index:s}=e,{loaders:n,resource:h}=t,[u,f]=(0,y.useState)(s||0),{isLight:m}=(0,A.DP)(),g=n[u],[j,v]=(0,y.useState)("loaderDetails"),b=(0,y.useCallback)(e=>{v(e)},[]);return(0,l.jsxs)(p.A,{className:I.A.executions,style:{height:"100%"},children:[(0,l.jsx)(x.A,{span:5,style:{borderRight:"1px solid var(--color-border-secondary)",padding:20},children:(0,l.jsxs)(o.A,{direction:"vertical",style:{width:"100%"},children:[(0,l.jsx)(L.h,{text:"Executions"}),(0,l.jsx)(M.A,{mode:"left",style:{marginTop:20},children:n.map((e,t,r)=>{let{loader:s,isPitch:a}=e,n=(0,A.a4)(e.costs);return(0,l.jsxs)(M.A.Item,{dot:a?(0,l.jsx)(i.A,{style:{marginLeft:1,fontWeight:500},children:"pitch"}):(0,l.jsx)(S.A,{}),style:{paddingBottom:10,textAlign:"center"},children:[(0,l.jsx)(p.A,{align:"middle",justify:"space-between",gutter:[0,10],children:(0,l.jsx)(x.A,{span:24,className:I.A.timeline,children:(0,l.jsx)(d.A,{title:s,trigger:"hover",children:(0,l.jsxs)("div",{className:(0,O.A)(I.A.box,u===t&&I.A.selected),onClick:()=>{f(t)},style:{textAlign:"left"},children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(c.A.Text,{children:n.match(/[0-9]*\.?[0-9]+/g)?.[0]})," ",(0,l.jsx)(c.A.Text,{type:"secondary",children:n.match(/[a-zA-Z]+/g)})]}),(0,l.jsx)(c.A.Text,{className:I.A.loader,children:s})]})})})}),t===r.length-1?null:(0,l.jsx)("div",{style:{paddingTop:10},children:(0,l.jsx)(B,{})})]},t)})})]})}),(0,l.jsx)(x.A,{span:19,style:{height:"100%"},children:(0,l.jsx)(T.A,{type:"card",defaultActiveKey:"loaderDetails",activeKey:j,items:[{label:"Loader Props",key:"loaderProps",children:(0,l.jsx)(G,{loader:g,resource:h,cwd:r})},{label:"Loader Details",key:"loaderDetails",children:"loaderDetails"===j?(0,l.jsx)(k.zW,{api:a.hp.uT.n.GetLoaderFileInputAndOutput,body:{file:h.path,loader:g.loader,loaderIndex:g.loaderIndex,isPitch:g.isPitch},showSkeleton:!1,children:e=>(0,l.jsx)($,{loader:g,resource:h,isLight:m,codeData:e})}):null}],onChange:b})})]})},q=e=>{let{cwd:t,filetree:r}=e,[S,C]=(0,y.useState)(!1),[M,T]=(0,y.useState)(""),[z,D]=(0,y.useState)(0),[E,N]=(0,y.useState)(null),B=(0,y.useMemo)(()=>r.filter(t=>t.loaders.some(r=>(0,A.ak)(t.path,r.loader,e.filename,e.loaders,t.layer,e?.layer))),[e.filename,e.loaders,e.layer]),F="__RESOURCEPATH__",P=(0,y.useMemo)(()=>(0,A.Bq)({files:B.map(e=>e.path),cwd:t,fileTitle(e,t){let{loaders:a,layer:p}=r.find(t=>t.path===e),x=[];return a.forEach((e,t)=>t>3&&x.push(e)),(0,l.jsxs)("div",{style:{wordBreak:"break-all",display:"flex",cursor:"pointer"},onClick:()=>{D(0),T(e),C(!0)},children:[(0,l.jsx)("div",{className:I.A.box,children:(0,l.jsx)("div",{className:I.A.keywords,children:(0,l.jsx)(w.i,{text:t.replace(/\[.*?\]/g,""),keyword:""})})}),(0,l.jsx)("div",{className:I.A.dividerDiv,style:{flex:1},children:(0,l.jsx)(n.A,{className:I.A.divider,dashed:!0})}),p&&(0,l.jsx)(i.A,{color:"cyan",bordered:!1,children:p}),(0,l.jsxs)(o.A,{children:[a.slice(0,3).map((t,r)=>{let a=t.errors&&t.errors.length,o=`${e}_${t.loader}_${r}`;if(r<=3)return(0,l.jsx)(d.A,{title:t.path,children:(0,l.jsxs)(i.A,{onClick:t=>{t.stopPropagation(),T(e),D(r),C(!0)},className:I.A.textBox,style:{color:a?"#f50":"inherit"},children:[(0,l.jsx)(c.A.Text,{className:I.A.text,ellipsis:!0,children:t.loader.match(/([^/]+-loader)/g)?.[0]||t.loader}),(0,l.jsx)(n.A,{type:"vertical"}),a?(0,l.jsx)(s.A,{}):(0,l.jsx)(c.A.Text,{className:I.A.text,children:(0,A.a4)(t.costs)})]})},o)}),x?.length>0&&(0,l.jsx)(h.A,{content:(0,l.jsx)(u.A,{dataSource:x,renderItem:(t,r)=>{let s=t.errors&&t.errors.length,a=`${e}_${t.loader}_${r+3}`;return(0,l.jsx)(u.A.Item,{children:(0,l.jsx)(d.A,{title:t.path,children:(0,l.jsx)("div",{style:{paddingBottom:5},children:(0,l.jsxs)(i.A,{onClick:t=>{t.stopPropagation(),T(e),D(r),C(!0)},className:I.A.textBox,style:{color:s?"#f50":"inherit"},children:[(0,l.jsx)(c.A.Text,{className:I.A.text,ellipsis:!0,children:t.loader.match(/([^/]+-loader)/g)?.[0]||t.loader}),(0,l.jsx)(n.A,{type:"vertical"}),(0,l.jsx)(c.A.Text,{className:I.A.text,children:(0,A.a4)(t.costs)})]})})},a)})}}),children:(0,l.jsx)(i.A,{className:I.A.textBox,children:(0,l.jsx)(c.A.Text,{children:"···"})})})]})]})},dirTitle:(e,t)=>(0,l.jsx)("div",{style:{display:"flex",cursor:"pointer"},children:(0,l.jsx)(w.i,{text:t,keyword:""})})}),[B]);return(0,l.jsxs)(p.A,{style:{width:"100%",marginLeft:0},gutter:20,children:[(0,l.jsx)(x.A,{span:24,children:(0,l.jsxs)(f.A,{title:(0,l.jsxs)(o.A,{children:[(0,l.jsx)(c.A.Text,{strong:!0,children:"Files"}),(0,l.jsxs)(c.A.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Total Files: ",B.length]})]}),bodyStyle:{overflow:"auto",maxHeight:800,minHeight:"40rem",padding:14},children:[(0,l.jsx)(b.h,{defaultExpandedKeys:(0,A.ME)(P,B.length>=100?3:4,e=>!((0,j.Jt)(e,F).indexOf("/node_modules/")>-1)),treeData:P,onSelect:(e,t)=>{t.node.isLeaf||N(t.node)},selectedKeys:E?[E.key]:void 0,expandAction:"click"},`${e.loaders.join("|")}_${e.filename}`),(0,l.jsx)(m.A,{open:S,onClose:()=>C(!1),maskClosable:!0,width:v.Y7,zIndex:999,bodyStyle:{padding:0},children:S?(0,l.jsx)(k.zW,{api:a.hp.uT.n.GetLoaderFileDetails,body:{path:M},children:e=>(0,l.jsx)(_,{data:e,cwd:t,index:z})}):null})]})}),(0,l.jsx)(m.A,{open:!!E,onClose:()=>N(null),maskClosable:!0,width:v.Y7,zIndex:999,bodyStyle:{padding:0},children:E&&(0,l.jsx)(p.A,{children:(0,l.jsx)(x.A,{span:24,children:(0,l.jsx)(f.A,{title:(0,l.jsx)(d.A,{title:y.cloneElement(E.title,{style:{color:"#fff"}}),children:(0,l.jsxs)(c.A.Text,{children:["Statistics of",E.title]})}),children:(0,l.jsx)(k.zW,{api:a.hp.uT.n.GetLoaderFolderStatistics,body:{folder:E[F]},children:e=>(0,l.jsx)(g.A,{style:{width:"100%",maxHeight:800,height:"40rem",overflowY:"scroll",wordBreak:"break-all"},pagination:!1,bordered:!0,rowKey:e=>e.loader,columns:[{title:"Loader Name",dataIndex:"loader"},{title:"Files",dataIndex:"files"},{title:"Total Duration",dataIndex:"costs",render:e=>(0,l.jsx)(c.A.Text,{strong:!0,children:(0,A.a4)(e)}),sorter:(e,t)=>e.costs-t.costs,defaultSortOrder:"descend",sortDirections:["descend","ascend"]}],dataSource:e})})})})})})]})}},41611(e,t,r){r.d(t,{zW:()=>p,kn:()=>l.k,eN:()=>x});var l=r(91307),s=r(64558),a=r(43029),n=r(304),i=r(68122),o=r(1102),d=r(67782),c=r(1426);r(15061);var h=r(82982),u=r(3534);let p=e=>{let{manifestLoader:t=c.Cj,api:r,children:l,body:p=null,showSkeleton:x=!0,fallbackComponent:f}=e,[m,g]=(0,o.useState)(),[j,y]=(0,o.useState)(1),[v,A]=(0,o.useState)({}),{loader:b}=(0,c.VX)(m);function w(e){window[a.YM.tQ]?S(e):t().then(e=>{g(e)}).catch(e=>{if(!("u"<typeof window)&&window.location.hash.includes(a.Kj.EH.Uploader)){console.warn("[ServerAPIProvider] Failed to load manifest for uploader route, continuing with empty manifest:",e),y(0);return}throw y(3),e}).then(()=>{S(e)})}let k=(0,o.useCallback)(e=>{let{req:t,res:l}=e;t.api===r&&((0,d.n4)(t.body,p)||u.AP.gD(t.body)&&u.AP.gD(p))&&!(0,d.n4)(v,l)&&A(l),y(0)},[v,r,p]);function S(e){e&&(Object.values(a.hp.uT.k).includes(r)?y(0):e.loadAPI(r,p).then(e=>{u.AP.gD(e)||(A(e),y(0))}).catch(e=>{console.error(e),y(3)}))}return((0,o.useEffect)(()=>{w(b)},[b,r,p]),(0,o.useEffect)(()=>{if(b)return b.onDataUpdate(r,p,k),()=>{b.removeOnDataUpdate(r,p,k)}},[b,r,p]),1===j)?x?(0,s.jsx)(n.A,{active:!0}):null:3===j?f||(0,s.jsx)(h.c,{retry:()=>{y(1),t(),w()}}):2===j?(0,s.jsx)(i.A,{spinning:!0,children:l(v)}):l(v)};function x(e){let{Component:t,api:r,responsePropName:l,body:a,fallbackComponent:n,showSkeleton:i}=e;return function(e){let{body:o=a,...d}=e;return(0,s.jsx)(p,{api:r,body:o,showSkeleton:i,fallbackComponent:n,children:e=>{let r={...d,[l]:e};return(0,s.jsx)(t,{...r})}})}}},91326(e,t,r){let l;r.d(t,{hZ:()=>j,L2:()=>x,bX:()=>f,jk:()=>p});var s=r(64558),a=r(66482),n=r(13078),i=r.n(n),o=r(3534),d=r(43029);function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;l===e&&(l=void 0)}async function h(e){if(e){if(!l){let t=fetch(`${e}${d.hp.uT.n.Manifest}`).then(e=>e.ok?e.json():void 0).then(e=>{let r=function(e){if(e)try{return new URL(e,window.location.origin).searchParams.get("token")||void 0}catch{return}}(e?.__SOCKET__URL__);return r||c(t),r}).catch(()=>{c(t)});l=t}return l}}async function u(e,t,r,l,s){let a=`${e}:${t}:${r}`;try{let e="u">typeof window&&window.location?.origin?window.location.origin:"",t=await h(e);if(!t)return void s();let r=new URLSearchParams({file:a,editor:l,token:t}),n=await fetch(`${e}/__open-in-editor?${r}`,{method:"GET"});403===n.status&&c(),n.ok||s()}catch{s()}}function p(e){let{file:t,line:r=1,column:l=1,windowId:s}=e,a={windowId:s},n=Object.keys(a).map(e=>{let t=a[e];return o.AP.gD(t)||""===t?null:`${e}=${t}`}).filter(Boolean).join("&");u(t,r,l,"code",()=>{let e=`vscode://file/${t}:${r}:${l}`;n&&(e+=`?${n}`),window.open(e)})}function x(e){let{file:t,line:r=1,column:l=1}=e;u(t,r,l,"cursor",()=>{window.open(`cursor://file/${t}:${r}:${l}`)})}function f(e){let{file:t,line:r=1,column:l=1}=e;u(t,r,l,"trae",()=>{window.open(`trae://file/${t}:${r}:${l}`)})}r(1102),r(35615);var m=r(1426);let g=+Date.now().toString().slice(-4)+1e3,j=e=>{let t,r,{cwd:l,url:n,loc:o,windowId:d=g,label:c,disabled:h,code:u=!1}=e,x=i().resolve(l,(1===(r=n.split(" ")).length?[t]=r:[t]=r.filter(e=>i().isAbsolute(e)||e.startsWith("./")),t||n)),{line:f,columnStart:j}=function(e){if(!e)return{line:1,column:1};let[t,r=""]=e.split(":"),[l=1,s]=r.split("-");return{line:t,columnStart:l,columnEnd:s||l}}(o);return(0,s.jsxs)("span",{style:{wordBreak:"break-all"},children:[(0,s.jsx)(a.A.Text,{copyable:{text:x},children:(0,s.jsxs)(a.A.Text,{code:u,onClick:()=>{h||p({file:x,line:f,column:j,windowId:d})},style:{cursor:h?"revert":"pointer"},children:[c||(0,m.Ml)(n),o?`:${o}`:""]})}),(0,s.jsx)("div",{style:{display:"inline-block"}})]})}},51747(e,t,r){r.d(t,{F:()=>j});var l=r(64558),s=r(1102),a=r(70722),n=r(53919),i=r(66482),o=r(13616),d=r(80844),c=r(63598),h=r(89802),u=r(44767),p=r(7415);r(15061);var x=r(41611),f=r(43029);let m=e=>{let{style:t,onChange:r,loaderNames:d}=e,[c,u]=(0,s.useState)([]);return(0,l.jsxs)(a.A.Group,{compact:!0,style:t,children:[(0,l.jsxs)(n.Ay,{style:{width:120},children:[(0,l.jsx)(h.A,{}),(0,l.jsx)(i.A.Text,{children:"Loaders"})]}),(0,l.jsx)(o.A,{mode:"multiple",allowClear:!0,defaultValue:c,className:"loader-select",style:{width:300},popupMatchSelectWidth:300,placeholder:"select loaders",onChange:e=>{u(e),r(e)},children:d.map(e=>(0,l.jsx)(o.A.Option,{label:e,value:e,children:e},e))})]})},g=e=>{let{onChange:t,layers:r}=e,[d,c]=(0,s.useState)("");return(0,l.jsxs)(a.A.Group,{compact:!0,children:[(0,l.jsxs)(n.Ay,{style:{width:120},children:[(0,l.jsx)(h.A,{}),(0,l.jsx)(i.A.Text,{children:"Layers"})]}),(0,l.jsx)(o.A,{allowClear:!0,className:"layer-select",style:{width:150},defaultValue:d,placeholder:"select layer",onChange:e=>{c(e),t(e)},children:r?.length?r?.map(e=>(0,l.jsx)(o.A.Option,{label:e,value:e,children:e},e)):(0,l.jsx)(l.Fragment,{})})]})},j=e=>{let{onChange:t,loaderNames:r}=e,[a,n]=(0,s.useState)([]),[i,o]=(0,s.useState)(""),[h,j]=(0,s.useState)("");return(0,s.useEffect)(()=>{t({loaders:a,filename:i,layer:h})},[a,i,h]),(0,l.jsxs)(d.A,{style:{marginBottom:20,marginLeft:10},children:[(0,l.jsx)(c.A,{children:(0,l.jsx)(m,{loaderNames:r,style:{marginRight:20},onChange:e=>{n(e)}})}),(0,l.jsx)(c.A,{children:(0,l.jsx)(p.E,{icon:(0,l.jsx)(u.A,{}),style:{marginRight:20},label:"Filename",placeholder:"search filename by keyword",onChange:e=>{o(e)}})}),(0,l.jsx)(c.A,{children:(0,l.jsx)(x.zW,{api:f.hp.uT.n.GetLayers,children:e=>e.length?(0,l.jsx)(g,{layers:e,onChange:e=>{j(e)}}):(0,l.jsx)(l.Fragment,{})})})]})}},40879(e,t,r){var l=r(64558),s=r(74374),a=r(85326),n=r(66482),i=r(53919);let o=r(1102).memo(e=>{let{title:t="Load data failed, please try again",buttonText:r="retry",retry:o}=e;return(0,l.jsx)(s.A,{description:(0,l.jsxs)(a.A,{direction:"vertical",children:[(0,l.jsx)(n.A.Text,{children:t}),(0,l.jsx)(i.Ay,{type:"primary",onClick:()=>{o()},children:r})]})})});r.d(t,{},{c:o})},68062(e,t,r){r.d(t,{P6:()=>y,hX:()=>v});var l=r(64558),s=r(10489),a=r(53919),n=r(35074),i=r(1102),o=r(50162),d=r(85326),c=r(66482),h=r(80844),u=r(63598),p=r(43029),x=r(33468),f=r(3534);r(15061);var m=r(9926),g=r(41611);let j=e=>{let{duplicatePackages:t=[],cwd:r,children:s,...a}=e;return(0,l.jsx)(v,{...a,buttonStyle:{fontSize:"inherit",...a.buttonStyle},buttonProps:{type:"text",...a.buttonProps},text:(0,l.jsx)(o.A,{title:"Click to show the details of duplicate packages",children:(0,l.jsxs)(d.A,{style:{fontSize:"inherit"},children:[(0,l.jsx)(c.A.Text,{strong:!0,style:{fontSize:"inherit",color:"inherit",...a.textStyle},children:t.length}),(0,l.jsx)(x.A,{})]})}),drawerProps:{title:"Duplicate Packages Viewer",...a.drawerProps},children:(0,l.jsx)(h.A,{gutter:[20,20],children:t.map((e,t)=>(0,l.jsx)(u.A,{span:24,children:(0,l.jsx)(m.ZZ,{data:e,cwd:r,getPackageRelationContentComponent:s})},t))})})},y=e=>{let{moduleGraph:t,...r}=e;return(0,l.jsx)(j,{...r,children:e=>(0,l.jsx)(g.zW,{api:p.hp.uT.n.GetModuleCodeByModuleIds,body:{moduleIds:t.modules.map(e=>e.id)},children:s=>(0,l.jsx)(m.aM,{data:f.Wh.X(t.modules,t.dependencies,r.cwd,e.package.dependencies,s),cwd:r.cwd})})})},v=e=>{let[t,r]=(0,i.useState)(!1);return(0,l.jsxs)("div",{onClick:e=>e.stopPropagation(),...e.containerProps,children:[e.button?(0,l.jsx)("div",{onClick:()=>r(!t),children:e.button}):e.text?(0,l.jsx)(a.Ay,{type:"link",...e.buttonProps,onClick:()=>r(!t),style:{padding:0,...e.buttonStyle},children:e.text}):(0,l.jsx)(s.A,{style:{fontSize:14,padding:0},onClick:()=>r(!t)}),(0,l.jsx)(n.A,{maskClosable:!0,zIndex:999,width:"60%",...e.drawerProps,open:t,onClose:()=>r(!1),destroyOnClose:!0,children:e.children})]})}},76174(e,t,r){var l=r(64558);r(1102);var s=r(66482),a=r(67782);r.d(t,{},{h:e=>{let{upperFirst:t=!0,fontSize:r=16,text:n,hash:i}=e,o="string"==typeof n&&t?(0,a.Zb)(n):n;return(0,l.jsx)(s.A.Text,{style:{fontSize:r},strong:!0,children:i?(0,l.jsx)("a",{href:i,id:i.replace(/^#/,""),style:{color:"inherit"},children:o}):o})}})},75232(e,t,r){var l=r(13078);function s(e){if(!e)return"";let t=function(e){if(!e)return"";try{if(!e.startsWith("data:"))return"";let{mimeType:t}=function(e){if(!e.startsWith("data:"))throw Error("The input is not a valid data URL");let t=e.substring(5),r=t.indexOf(",");if(-1===r)throw Error("Invalid data URL: missing data separator");let l=t.substring(0,r),s=t.substring(r+1),a="",n="",i=!1,o=l.split(";");o.length>0&&(a=o[0]||"text/plain");for(let e=1;e<o.length;e++){let t=o[e];"base64"===t?i=!0:t.startsWith("charset=")&&(n=t.substring(8))}return{mimeType:a,charset:n,isBase64:i,data:s}}(e);switch(t){case"text/javascript":return"javascript";case"text/html":return"html";case"text/css":return"css";case"text/plain":return"text";case"application/json":return"json";default:return""}}catch(e){return console.error("Failed to parse the data URL:",e),""}}(e);if(t)return t;try{let t=(0,l.extname)(e).slice(1);switch(t){case"js":case"cjs":case"mjs":case"jsx":return"javascript";case"ts":case"tsx":return"typescript";case"md":return"markdown";default:return t}}catch{return""}}let a={readOnly:!0,domReadOnly:!0,fontSize:14,tabSize:2,lineHeight:24,renderValidationDecorations:"off",hideCursorInOverviewRuler:!0,smoothScrolling:!0,wordWrap:"on",colorDecorators:!0,codeLens:!1,cursorWidth:0,minimap:{enabled:!1},contextmenu:!1,gotoLocation:{multiple:"goto",multipleDefinitions:"goto",multipleTypeDefinitions:"goto",multipleDeclarations:"goto",multipleImplementations:"goto",multipleReferences:"goto"},hover:{enabled:!1},links:!1};function n(e){return{...structuredClone(a),...e}}function i(e){return e?e.startsWith("data:")?"data":e.split("/").at(-1)||"":""}function o(e,t,r){if(!r||0===r.length)return;let l=r.map(e=>({range:function(e,t){let{start:r,end:l}=e,{line:s=1,column:a=0}=r;return new t(s,a+1,l?.line??s,(l?.column??9999)+1)}(e,t.Range),options:{inlineClassName:"file-inline-decoration"}}));e.deltaDecorations([],l),setTimeout(()=>{e.revealLine(l[0].range.startLineNumber)})}r.d(t,{$N:()=>n,WP:()=>i,rZ:()=>s,sK:()=>o},{XX:a})},73308(e,t,r){r.d(t,{Cv:()=>l.Cv,Mh:()=>u});var l=r(96867),s=r(64558),a=r(89797),n=r(97173),i=r(70851),o=r(1102),d=r(75232);let c={...structuredClone(d.XX),readOnly:!0,originalEditable:!1,renderSideBySide:!0,renderSideBySideInlineBreakpoint:1,renderIndicators:!0,definitionLinkOpensInPeek:!1,domReadOnly:!0,minimap:{enabled:!1},diffWordWrap:"on",folding:!1,lineNumbersMinChars:3,renderLineHighlight:"none",matchBrackets:"never",diffAlgorithm:"advanced",ignoreTrimWhitespace:!0,renderOverviewRuler:!0,renderLineHighlightOnlyWhenFocus:!0,smoothScrolling:!0,letterSpacing:.5};var h=r(1426);function u(e){let{className:t,style:r,original:l="",modified:u="",originalFilePath:p="",modifiedFilePath:x="",originalLang:f,modifiedLang:m,isEmbed:g=!1,isLightTheme:j,headerVisible:y=!0}=e,{isLight:v}=(0,h.DP)(),[A,b]=(0,o.useState)(!0),w=(0,o.useRef)(void 0),k=(0,o.useMemo)(()=>f||(0,d.rZ)(p)||"plaintext",[f,p]),S=(0,o.useMemo)(()=>m||(0,d.rZ)(x)||"plaintext",[m,x]),C=(0,o.useMemo)(()=>{var e;return e={renderSideBySide:A},{...structuredClone(c),...e}},[A]),M=(0,o.useCallback)(e=>{w.current=e},[]);return(0,o.useEffect)(()=>()=>{w.current?.setModel(null)},[]),(0,s.jsxs)("div",{className:(0,i.A)("monaco-component","diff-viewer","diff-viewer-CczjmT",g&&"embed-VNMDA8",t),style:r,children:[y&&(0,s.jsxs)("div",{className:"header-VBdMD0",children:[(0,s.jsx)("div",{children:(0,d.WP)(p)}),(0,s.jsx)("div",{style:{flex:1}}),(0,s.jsx)("div",{children:(0,s.jsx)(n.A,{className:"text-Pi6YdN",title:"side-by-side",checked:A,onChange:e=>{b(e.target.checked)},children:"side-by-side"})})]}),(0,s.jsx)("div",{className:(0,i.A)("content-BsfSuD","editor-wrap"),children:(0,s.jsx)(a.zC,{theme:j??v?"vs-light":"vs-dark",originalLanguage:k,modifiedLanguage:S,original:l,modified:u,width:"100%",options:C,onMount:M})})]})}},17886(e,t,r){var l=r(1102),s=r(10815),a=r(15061);let n={theme:(0,s.DT)(),pageState:a.jK.Pending,viewMode:(0,s.oi)(),json:{},setTheme(){},setManifest(){},setPageState(e){},setViewMode(){}},i=(0,l.createContext)({...n});r.d(t,{},{Q:i,s:n})},15061(e,t,r){var l,s,a,n=((l={}).Light="light",l.Dark="dark",l),i=((s={})[s.Success=0]="Success",s[s.Pending=1]="Pending",s[s.Fail=2]="Fail",s),o=((a={})[a.BasePadding=20]="BasePadding",a[a.BaseBorderRadius=8]="BaseBorderRadius",a[a.NavBarHeight=54]="NavBarHeight",a);let d="u"<typeof window?0:.85*window.innerWidth>=1100?.85*window.innerWidth:1100;r.d(t,{Sx:()=>n,jK:()=>i,or:()=>o},{Y7:d})},54845(e,t,r){r.d(t,{YW:()=>ej,wE:()=>eg});var l,s,a=r(64558),n=r(1102),i=r(36187),o=r(50162),d=r(85326),c=r(30147),h=r(66482),u=r(6755),p=r(53919),x=r(11063),f=r(78593),m=r(22733),g=r(18890),j=r(43029);r(15061);var y=r(80844),v=r(63598),A=r(1637),b=r(1426),w=r(68062),k=r(74374),S=r(13616),C=r(60339),M=r(67782),T=r(54594),z=r(44767),D=r(7415),E=r(15017),N=r(17076),B=r(73308);let F=e=>{let{file:t,data:r}=e,[l,s]=(0,n.useState)(r[0].group),i=r.find(e=>e.group===l);return(0,a.jsxs)(y.A,{wrap:!0,gutter:[20,20],style:{height:"100%",alignContent:"flex-start"},children:[r.length>1?(0,a.jsx)(v.A,{span:24,children:(0,a.jsx)(N.A,{value:l,options:r.map(e=>e.group),onChange:e=>s(e)})}):null,i?(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)(v.A,{span:24,children:(0,a.jsxs)(h.A.Text,{strong:!0,children:[i.baselineTitle||"Baseline"," ⟷"," ",i.currentTitle||"Current"]})}),(0,a.jsx)(v.A,{span:24,children:(0,a.jsx)(B.Mh,{originalFilePath:t,modifiedFilePath:t,original:i.baseline||"",modified:i.current||""})})]},l):null]})},P=e=>{let{text:t="View Changes",...r}=e;return(0,a.jsx)(w.hX,{text:t,buttonProps:{size:"small",icon:(0,a.jsx)(E.A,{})},drawerProps:{destroyOnClose:!0,title:`Content diff for "${r.file}"`},children:(0,a.jsx)(F,{...r})})};var R=((l={}).New="New",l.Changed="Changed",l.Deleted="Deleted",l.NotChanged="Not Changed",l),L=((s={}).Name="Sorted by Name",s.Size="Sorted by Size",s.Delta="Sorted by Delta",s),I=r(8857);let O=/[a-fA-F0-9]{20,}/,G=/\|[a-fA-F0-9]{16,}$/;function $(e){let t=e=>e?.replace(G,"").replace(O,"")||"";return t(e.identifier)||t(e.path)}var _=r(42322),q=r(70722);let W=(e,t,r,l)=>(0,a.jsx)(a.Fragment,{children:t-e==0?(0,a.jsx)(a.Fragment,{}):(0,a.jsxs)(h.A.Text,{strong:!0,style:{color:r===j.Kj.Ol.Up?"#e17055":"#52c41a",...l},children:[r===j.Kj.Ol.Up?"+":"-",(0,b.Xq)(Math.abs(t-e))]})});var V=r(3534);let U=(e,t,r)=>{let l=r?(e,r)=>(e.current?.size[t]||0)-(e.baseline?.size[t]||0)-(r.current?.size[t]||0)+(r.baseline?.size[t]||0):(r,l)=>(r[e]?.size[t]||0)-(l[e]?.size[t]||0);return{width:200,sorter:(e,t)=>l(e,t),render:(r,l)=>{if(!l[e])return"-";let s=l[e].size[t];return(0,a.jsxs)(d.A,{children:[(0,a.jsx)(h.A.Text,{children:(0,b.Xq)(s)}),"current"===e?W(l.baseline?.size[t]||0,s,(l.baseline?.size[t]||0)>s?j.Kj.Ol.Down:j.Kj.Ol.Up):null]})}}},H=(e,t,r)=>{let[l,s]=(0,n.useState)(!1),i="baseline"===e;return{title:()=>{let l=i?t:r,s=(0,M.Zb)(e),n=V.TS.Nt(t,r);return(0,a.jsxs)("div",{children:[(0,a.jsx)(h.A.Text,{children:s}),(0,a.jsx)(u.A,{type:"vertical"}),(0,a.jsx)(o.A,{title:(0,a.jsxs)(d.A,{direction:"vertical",children:[(0,a.jsxs)(h.A.Text,{style:{color:"inherit"},children:[s," modules is ",l]}),i?null:(0,a.jsxs)(h.A.Text,{style:{color:"inherit"},children:["Percent is ",(0,b.l9)(n.percent)]})]}),children:(0,a.jsxs)(d.A,{children:[(0,a.jsx)(h.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400},children:l}),(0,a.jsx)(m.A,{})]})})]})},children:[{title:"Source Size",...U(e,"sourceSize",l)},{title:"Parsed Size",defaultSortOrder:i?void 0:"descend",...U(e,"parsedSize",l)}],filterSearch:!0,filters:[{text:"Show Changed",value:R.NotChanged},{text:"Show All",value:"All"}],onFilter:(e,t)=>(e===R.NotChanged?s(!0):s(!1),e!==R.NotChanged||J(t)!==e)}},K=e=>{let{data:t,baseline:r,current:l}=e,{modules:s}=r.moduleGraph,{modules:i}=l.moduleGraph,{chunks:c}=r.chunkGraph,{chunks:x}=l.chunkGraph,f=r.root,g=l.root,[j,y]=(0,n.useState)(""),v=(0,n.useRef)(null),A=(e,t)=>{t(),y(e[0])},w="__is_baseline__",k=(0,n.useMemo)(()=>t.baseline?V.TS.Xm(t.baseline,c,s).map(e=>({...e,[w]:!0})).filter(e=>!e.concatenationModules?.length):[],[t,r]),S=(0,n.useMemo)(()=>t.current?V.TS.Xm(t.current,x,i).map(e=>({...e,[w]:!1})).filter(e=>!e.concatenationModules?.length):[],[t,l]),M=e=>(0,b.Rz)(e.path,e.__is_baseline__?f:g),z=(0,n.useMemo)(()=>{let e=[...k,...S],t=new Map;return e.forEach(e=>{let r=$(e),l=t.get(r);l||(l={path:r}),e[w]?l.baseline=e:l.current=e,t.set(r,l)}),[...t.values()]},[k,S,j]),{bModulesCount:D,cModulesCount:E,totalCount:N}=(0,n.useMemo)(()=>{let e=e=>M(e).alias.indexOf(j)>-1,t=z.filter(e=>e.baseline),r=z.filter(e=>e.current),l=z.length;return j&&(t=t.filter(e),r=r.filter(e),l=z.filter(e).length),{bModulesCount:t.length,cModulesCount:r.length,totalCount:l}},[z,j]);return(0,a.jsx)(C.A,{dataSource:z,rowKey:e=>e.path,size:"small",pagination:{size:"small"},bordered:!0,scroll:{x:1500},columns:[{fixed:"left",title:()=>(0,a.jsxs)("div",{children:[(0,a.jsxs)(h.A.Text,{children:["Modules of ",`"${t.alias}"`]}),(0,a.jsx)(u.A,{type:"vertical"}),(0,a.jsxs)(o.A,{title:(0,a.jsxs)(d.A,{direction:"vertical",children:[(0,a.jsxs)(h.A.Text,{style:{color:"inherit"},children:["filtered modules: ",N]}),(0,a.jsxs)(h.A.Text,{style:{color:"inherit"},children:["total modules: ",z.length]})]}),children:[(0,a.jsxs)(h.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400,marginRight:4},children:[N,"/",z.length]}),(0,a.jsx)(m.A,{})]})]}),filterDropdown(e){let{setSelectedKeys:t,selectedKeys:r,confirm:l,clearFilters:s}=e;return(0,a.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,a.jsx)(q.A,{ref:v,placeholder:"Search by file name",value:r[0],onChange:e=>t(e.target.value?[e.target.value]:[]),onPressEnter:()=>A(r,l),style:{marginBottom:8,display:"block"}}),(0,a.jsxs)(d.A,{children:[(0,a.jsx)(p.Ay,{type:"primary",onClick:()=>A(r,l),icon:(0,a.jsx)(_.A,{}),size:"small",style:{width:90},children:"Search"}),(0,a.jsx)(p.Ay,{onClick:()=>{s&&(s(),y("")),t([]),A([],l)},size:"small",style:{width:90},children:"Reset"})]})]})},filterSearch:!0,filterIcon:e=>(0,a.jsxs)(d.A,{children:[(0,a.jsx)(h.A.Text,{type:j?void 0:"secondary",style:{fontWeight:400},children:j||"Search by file name"}),(0,a.jsx)(_.A,{style:{color:e?"#1677ff":void 0}})]}),onFilterDropdownOpenChange:e=>{e&&setTimeout(()=>v.current?.focus(),100)},onFilter:(e,t)=>M(t).alias.indexOf(e)>-1,render:(e,t)=>{let{alias:r,inNodeModules:l}=M(t);return(0,a.jsxs)(d.A,{children:[(0,a.jsx)(o.A,{title:t.path,children:(0,a.jsx)(h.A.Text,{copyable:{text:t.path},children:r})}),l?(0,a.jsx)(T.A,{color:"warning",children:"node_modules"}):null,(0,a.jsx)(Y,{type:J(t)})]})}},H("current",D,E),H("baseline",D,E),{title:"Actions",width:200,render:(e,t)=>(0,a.jsx)(d.A,{direction:"vertical",style:{maxWidth:170},children:(0,a.jsx)(P,{text:"View Changes",file:t.path,data:[{baseline:r.moduleCodeMap[t.baseline?.id]?.source,current:l.moduleCodeMap[t.current?.id]?.source,group:"Source"},{baseline:r.moduleCodeMap[t.baseline?.id]?.transformed,current:l.moduleCodeMap[t.current?.id]?.transformed,group:"Transformed Source"},{baseline:r.moduleCodeMap[t.baseline?.id]?.parsedSource,current:l.moduleCodeMap[t.current?.id]?.parsedSource,group:"Parsed Source"}]})})}]})};function J(e){if(e.baseline&&!e.current)return R.Deleted;if(!e.baseline&&e.current)return R.New;if(e.baseline&&e.current)return e.baseline.size.sourceSize===e.current.size.sourceSize&&e.baseline.size.parsedSize===e.current.size.parsedSize?R.NotChanged:R.Changed;throw Error("Update Type not match")}let Y=e=>{let{type:t}=e;return t===R.NotChanged?(0,a.jsx)(o.A,{title:"It hasn't changed between Baseline and Current",children:(0,a.jsx)(T.A,{color:"success",children:"Not Changed"})}):t===R.Changed?(0,a.jsx)(o.A,{title:"It has been changed between Baseline and Current",children:(0,a.jsx)(T.A,{color:"warning",children:"Changed"})}):t===R.New?(0,a.jsx)(o.A,{title:"It is created in Current",children:(0,a.jsx)(T.A,{color:"error",children:"New"})}):t===R.Deleted?(0,a.jsx)(o.A,{title:"It has been deleted in Current",children:(0,a.jsx)(T.A,{color:"error",children:"Deleted"})}):null},X=e=>{let{baseline:t,current:r}=e,l=(0,n.useMemo)(()=>(0,b.CL)(t.moduleGraph.modules),[t]),s=(0,n.useMemo)(()=>(0,b.CL)(r.moduleGraph.modules),[r]),i=t.chunkGraph.chunks,c=r.chunkGraph.chunks,p=t.root,x=r.root,[f,g]=(0,n.useState)(),[j,A]=(0,n.useState)([]),w=(0,n.useMemo)(()=>{let e={};return l.forEach(t=>{let r=$(t);e[r]?console.warn("[Baseline Module Exists]: ",t,e):e[r]={path:r,baseline:t}}),s.forEach(t=>{let r=$(t);e[r]||(e[r]={path:r}),e[r].current=t}),Object.values(e)},[l,s]),k=(0,n.useMemo)(()=>{let e=w.slice();return f&&(e=e.filter(e=>e.path.indexOf(f)>-1)),j.length&&(e=e.filter(e=>j.includes(J(e)))),e},[w,f,j]),{bFilteredModulesLength:E,cFilteredModulesLength:N}=(0,n.useMemo)(()=>({bFilteredModulesLength:k.filter(e=>e.baseline).length,cFilteredModulesLength:k.filter(e=>e.current).length}),[k]);return(0,a.jsxs)(y.A,{gutter:[20,20],children:[(0,a.jsx)(v.A,{span:24,children:(0,a.jsxs)(d.A,{wrap:!0,children:[(0,a.jsx)(D.E,{icon:(0,a.jsx)(z.A,{}),label:"",labelStyle:{width:45},placeholder:"Search by name",onChange:e=>{g(e)}}),(0,a.jsx)(S.A,{mode:"multiple",placeholder:"Filter by changed type",style:{width:200},options:Object.values(R).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{A(e)}})]})}),(0,a.jsx)(v.A,{span:24,children:(0,a.jsx)(C.A,{bordered:!0,sticky:{offsetHeader:54},pagination:{pageSize:20,size:"small"},scroll:{x:1700},dataSource:k,rowKey:e=>e.path,columns:[{fixed:"left",title:(0,a.jsxs)(o.A,{title:(0,a.jsxs)(d.A,{direction:"vertical",children:[(0,a.jsxs)(h.A.Text,{style:{color:"inherit"},children:["filtered modules is ",k.length," (Current & Baseline)"]}),(0,a.jsxs)(h.A.Text,{style:{color:"inherit"},children:["total modules is ",w.length," (Current & Baseline)"]})]}),children:[(0,a.jsx)(h.A.Text,{strong:!0,children:"Modules"}),(0,a.jsx)(u.A,{type:"vertical"}),(0,a.jsxs)(h.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400,marginRight:4},children:[k.length,"/",w.length]}),(0,a.jsx)(m.A,{})]}),render:(e,t)=>{let{alias:r,inNodeModules:l}=(0,b.Rz)(t.path,t.baseline?p:x);return(0,a.jsxs)(d.A,{children:[(0,a.jsx)(o.A,{title:t.path,children:(0,a.jsx)(h.A.Text,{copyable:{text:t.path},children:r})}),(0,a.jsx)(Y,{type:J(t)}),l?(0,a.jsx)(T.A,{color:"warning",children:"node_modules"}):null]})}},H("current",E,N),H("baseline",E,N),{title:"in Assets",render:(e,t)=>{let r=[],l=[];return(t.current&&V.TS.QZ(t.current,c).forEach(e=>e.assets.forEach(e=>l.push(e))),t.baseline&&V.TS.QZ(t.baseline,i).forEach(e=>e.assets.forEach(e=>r.push(e))),r.length||l.length)?(0,a.jsxs)(d.A,{direction:"vertical",children:[(0,M.sb)(l).filter(Boolean).map(e=>(0,a.jsx)(I.Ex,{label:"Current",value:e},`c_${e}`)),(0,M.sb)(r).filter(Boolean).map(e=>(0,a.jsx)(I.Ex,{label:"Baseline",value:e},`b_${e}`))]}):null}},{title:"Actions",width:200,render:(e,l)=>{let s=J(l)===R.Changed;return(0,a.jsxs)(d.A,{direction:"vertical",style:{maxWidth:170},children:[s?(0,a.jsx)(P,{text:"View Changes",file:l.path,data:[{baseline:t.moduleCodeMap[l.baseline?.id]?.source,current:r.moduleCodeMap[l.current?.id]?.source,group:"Source"},{baseline:t.moduleCodeMap[l.baseline?.id]?.transformed,current:r.moduleCodeMap[l.current?.id]?.transformed,group:"Transformed Source"},{baseline:t.moduleCodeMap[l.baseline?.id]?.parsedSource,current:r.moduleCodeMap[l.current?.id]?.parsedSource,group:"Parsed Source"}]}):null,l?.current?(0,a.jsx)(P,{text:"Current Result Viewer",file:l.path,data:[{baseline:r.moduleCodeMap[l.current.id]?.source,current:r.moduleCodeMap[l.current.id]?.transformed,baselineTitle:"Current Source",currentTitle:"Current Transformed Source",group:"Transformed Source"},{baseline:r.moduleCodeMap[l.current.id]?.source,current:r.moduleCodeMap[l.current.id]?.parsedSource,baselineTitle:"Current Source",currentTitle:"Current Parsed Source",group:"Parsed Source"}]}):null]})}}]})})]})},Z=e=>e.baseline&&e.current?e.baseline.map(e=>e.version).sort().join()===e.current.map(e=>e.version).sort().join()?R.NotChanged:R.Changed:e.baseline||e.current?e.baseline&&!e.current?R.Deleted:R.New:R.NotChanged,Q=e=>Z(e)!==R.NotChanged,ee=e=>{let{dataSource:t}=e,{newCount:r,deleteCount:l,changedCount:s}=(0,n.useMemo)(()=>({newCount:t.filter(e=>e.updateType===R.New).length,deleteCount:t.filter(e=>e.updateType===R.Deleted).length,changedCount:t.filter(e=>e.updateType===R.Changed).length}),[t]);return(0,a.jsxs)(d.A,{children:[(0,a.jsx)(I.Ex,{label:"New",value:r,type:r>0?"error":"default",tooltip:`Current has ${r} packages which not found in Baseline`}),(0,a.jsx)(I.Ex,{label:"Deleted",value:l,type:l>0?"error":"default",tooltip:`Current delete ${l} packages than Baseline`}),(0,a.jsx)(I.Ex,{label:"Changed",value:s,type:s>0?"error":"default",tooltip:`Current has ${s} changed packages than Baseline`})]})},et=e=>{let{baseline:t,current:r}=e,{packages:l=[]}=t||{},{packages:s=[]}=r||{},a={},n=(e,t)=>{a[e.name]||(a[e.name]={name:e.name,updateType:R.NotChanged}),a[e.name][t]||(a[e.name][t]=[]),a[e.name][t].push(e)};l.forEach(e=>n(e,"baseline")),s.forEach(e=>n(e,"current"));let i=[],o=[];return Object.values(a).forEach(e=>{Q(e)?i.push(e):o.push(e)}),i.concat(o).map(e=>({...e,updateType:Z(e)}))},er=e=>{let{baseline:t,current:r}=e,{packages:l=[]}=t||{},{packages:s=[]}=r||{};if(!l.length&&!s.length)return(0,a.jsx)(k.A,{});let i=(0,n.useMemo)(()=>(0,M.sb)(l.concat(s).map(e=>e.name)),[l,s]),[c,p]=(0,n.useState)([]),[x,f]=(0,n.useState)([]),m=(0,n.useMemo)(()=>et({baseline:t,current:r}),[t,r]),g=(0,n.useMemo)(()=>m.filter(e=>x.length?x.indexOf(e.updateType)>-1:!c.length||c.indexOf(e.name)>-1),[m,c,x]);return(0,a.jsxs)(y.A,{gutter:[20,20],children:[(0,a.jsx)(v.A,{span:24,style:{marginTop:16},children:(0,a.jsxs)(d.A,{wrap:!0,children:[(0,a.jsx)(S.A,{mode:"multiple",placeholder:"Filter by package names",style:{width:400},options:i.map(e=>{let t=m.find(t=>t.name===e);return t&&Q(t)?{label:(0,a.jsxs)(d.A,{children:[(0,a.jsx)(h.A.Text,{children:e}),(0,a.jsx)(Y,{type:Z(t)})]}),value:e}:{label:e,value:e}}),allowClear:!0,onChange:e=>{p(e)}}),(0,a.jsx)(S.A,{mode:"multiple",placeholder:"Filter by changed type",style:{width:200},options:Object.values(R).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{f(e)}})]})}),(0,a.jsx)(v.A,{span:24,children:(0,a.jsx)(C.A,{bordered:!0,sticky:{offsetHeader:54},pagination:{pageSize:20,size:"small"},dataSource:g,rowKey:e=>e.name,columns:[{title:()=>(0,a.jsxs)(d.A,{children:[(0,a.jsx)(h.A.Text,{children:"Package Name"}),(0,a.jsx)(u.A,{type:"vertical"}),(0,a.jsx)(o.A,{title:`Filtered Package Count is ${g.length}, Total Package Count is ${m.length}`,children:(0,a.jsxs)(h.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400},children:[g.length," / ",m.length]})})]}),render:(e,t)=>t.updateType!==R.NotChanged?(0,a.jsxs)(d.A,{children:[(0,a.jsx)(h.A.Text,{children:t.name}),(0,a.jsx)(Y,{type:t.updateType})]}):t.name},{title:()=>(0,a.jsxs)(d.A,{children:[(0,a.jsx)(h.A.Text,{children:"Current"}),(0,a.jsx)(u.A,{type:"vertical"}),(0,a.jsx)(ee,{dataSource:m})]}),children:[{title:"Version",render:(e,t)=>t.current?(0,a.jsx)(d.A,{direction:"vertical",children:t.current.map(e=>(0,a.jsx)(I.Ex,{label:"version",value:e.version,tooltip:e.root,type:t.updateType===R.Deleted?"error":t.updateType===R.Changed?"warn":"default"},e.version))}):null},{title:"Parsed Size",render:(e,t)=>{let r=(0,M.xu)(t.current,e=>e.size.parsedSize),l=()=>(0,a.jsx)(A.vh,{baseline:(0,M.xu)(t.baseline,e=>e.size.parsedSize),current:r});return t.current?(0,a.jsxs)(d.A,{children:[(0,a.jsx)(h.A.Text,{strong:t.updateType!==R.NotChanged,children:(0,b.Xq)(r)}),(0,a.jsx)(l,{})]}):(0,a.jsx)(l,{})}}]},{title:"Baseline",children:[{title:"Version",render:(e,t)=>t.baseline?(0,a.jsx)(d.A,{direction:"vertical",children:t.baseline.map(e=>(0,a.jsx)(I.Ex,{label:"version",value:e.version,tooltip:e.root,type:t.updateType===R.Deleted?"error":t.updateType===R.Changed?"warn":"default"},e.version))}):null},{title:"Parsed Size",render:(e,t)=>{if(t.baseline){let e=(0,M.xu)(t.baseline,e=>e.size.parsedSize);return(0,a.jsx)(h.A.Text,{children:(0,b.Xq)(e)})}return null}}]}]})})]})},el=e=>{let{baseline:t,current:r,assetsDiffResult:l}=e,s=(0,b.CL)(t.moduleGraph.modules),n=(0,b.CL)(r.moduleGraph.modules),i=(0,b.sO)(t.errors),o=(0,b.sO)(r.errors),c=(0,b.yC)(t.moduleGraph),u=(0,b.yC)(r.moduleGraph),p=t.root,x=r.root,f=et({baseline:t.packageGraph,current:r.packageGraph}),m=[{title:["Bundle Size"],value:[l.all.total]},{title:["Total JS","Initial JS"],value:[l.js.total,l.js.initial]},{title:["Total CSS","Initial CSS"],value:[l.css.total,l.css.initial]},{title:["Images","Fonts","Media"],value:[l.imgs.total,l.fonts.total,l.media.total]},{title:["HTML"],value:[l.html.total]},{title:["Others"],value:[l.others.total]}];return(0,a.jsxs)(y.A,{gutter:[20,20],wrap:!0,style:{marginBottom:20},children:[m.map(e=>(0,a.jsx)(v.A,{style:{minWidth:335},children:(0,a.jsx)(A.aq,{titles:e.title,datas:e.value,showPercentInTitle:!0})},e.title.join(","))),(0,a.jsx)(v.A,{style:{minWidth:335},children:(0,a.jsx)(A.aq,{titles:["Duplicate Packages"],datas:[{size:{baseline:i.length,current:o.length},count:{baseline:i.length,current:o.length},percent:0,state:j.Kj.Ol.Equal}],formatter:(e,l)=>(0,a.jsx)(w.P6,{duplicatePackages:"baseline"===l?i:o,moduleGraph:"baseline"===l?c:u,cwd:"baseline"===l?p:x,buttonProps:{size:"small"},moduleCodeMap:"baseline"===l?t.moduleCodeMap:r.moduleCodeMap})})}),(0,a.jsx)(v.A,{style:{minWidth:335},children:(0,a.jsx)(A.aq,{titles:["Modules"],datas:[{size:{baseline:s.length,current:n.length},count:{baseline:s.length,current:n.length},percent:0,state:j.Kj.Ol.Equal}],formatter:(e,t)=>{if("baseline"===t)return e;let r=V.TS.Nt(s.length,n.length);return(0,a.jsxs)(d.A,{style:{fontSize:"inherit"},children:[(0,a.jsx)(h.A.Text,{style:{fontSize:"inherit"},children:e}),(0,a.jsx)(A.QE,{...r})]})}})}),(0,a.jsx)(v.A,{style:{minWidth:335},children:(0,a.jsx)(A.aq,{titles:[(0,a.jsxs)(d.A,{children:[(0,a.jsx)(h.A.Text,{style:{color:"inherit"},children:"Packages"}),(0,a.jsx)(ee,{dataSource:f})]},"0")],datas:[{size:{baseline:f.filter(e=>e.baseline).length,current:f.filter(e=>e.current).length},count:{baseline:f.filter(e=>e.baseline).length,current:f.filter(e=>e.current).length},percent:0,state:j.Kj.Ol.Equal}],formatter:(e,t)=>"baseline"===t?e:(0,a.jsx)(d.A,{children:e})})})]})},es=e=>{let{assetsDiffResult:t}=e,r=[{type:"JS",data:t.js},{type:"CSS",data:t.css},{type:"Imgs",data:t.imgs},{type:"Fonts",data:t.fonts},{type:"Media",data:t.media},{type:"HTML",data:t.html},{type:"Others",data:t.others}];return(0,a.jsx)(C.A,{bordered:!0,pagination:!1,dataSource:r,rowKey:e=>e.type,style:{marginTop:15},columns:[{title:"File Type",dataIndex:"type",key:"type",render:e=>(0,a.jsx)(h.A.Text,{strong:!0,children:e})},{title:"Size",dataIndex:"data",key:"size",children:[{title:"Current",dataIndex:"data",key:"csize",render:e=>{let t=(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)(h.A.Text,{strong:!0,children:(0,b.Xq)(e.total.size.current)}),(0,a.jsx)(A.QE,{percent:e.total.percent,state:e.total.state}),W(e.total.size.baseline,e.total.size.current,e.total.state)]});return e.initial?(0,a.jsxs)(d.A,{direction:"vertical",children:[(0,a.jsxs)(d.A,{children:[(0,a.jsx)(T.A,{color:"#1677ff",children:"Total"}),t]}),(0,a.jsxs)(d.A,{children:[(0,a.jsx)(T.A,{color:"#1677ff",children:"Initial"}),(0,a.jsx)(h.A.Text,{strong:!0,children:(0,b.Xq)(e.initial.size.current)}),(0,a.jsx)(A.QE,{percent:e.initial.percent,state:e.initial.state}),W(e.initial.size.baseline,e.initial.size.current,e.initial.state)]})]}):(0,a.jsx)(d.A,{children:t})}},{title:"Baseline",dataIndex:"data",key:"bsize",render:e=>{let t=(0,a.jsx)(h.A.Text,{children:(0,b.Xq)(e.total.size.baseline)});return e.initial?(0,a.jsxs)(d.A,{direction:"vertical",children:[(0,a.jsxs)(d.A,{children:[(0,a.jsx)(T.A,{color:"#1677ff",children:"Total"}),t]}),(0,a.jsxs)(d.A,{children:[(0,a.jsx)(T.A,{color:"#1677ff",children:"Initial"}),(0,a.jsx)(h.A.Text,{children:(0,b.Xq)(e.initial.size.baseline)})]})]}):t}}]},{title:"Count",dataIndex:"data",key:"count",children:[{title:"Current",dataIndex:"data",key:"ccount",render:e=>{let t=(0,a.jsx)(h.A.Text,{strong:!0,children:e.total.count.current});return e.initial?(0,a.jsxs)(d.A,{direction:"vertical",children:[(0,a.jsxs)(d.A,{children:[(0,a.jsx)(T.A,{color:"#1677ff",children:"Total"}),t]}),(0,a.jsxs)(d.A,{children:[(0,a.jsx)(T.A,{color:"#1677ff",children:"Initial"}),(0,a.jsx)(h.A.Text,{strong:!0,children:e.initial.count.current})]})]}):(0,a.jsx)(d.A,{children:t})}},{title:"Baseline",dataIndex:"data",key:"bcount",render:e=>{let t=(0,a.jsx)(h.A.Text,{children:e.total.count.baseline});return e.initial?(0,a.jsxs)(d.A,{direction:"vertical",children:[(0,a.jsxs)(d.A,{children:[(0,a.jsx)(T.A,{color:"#1677ff",children:"Total"}),t]}),(0,a.jsxs)(d.A,{children:[(0,a.jsx)(T.A,{color:"#1677ff",children:"Initial"}),(0,a.jsx)(h.A.Text,{children:e.initial.count.baseline})]})]}):(0,a.jsx)(d.A,{children:t})}}]}]})};var ea=r(93164),en=r(83449),ei=r(8951),eo=r(8295),ed=r(127);let ec={JS:j.YM.Wm,CSS:[j.YM.lk],HTML:[j.YM.Fe],Imgs:j.YM.q$,Fonts:j.YM.AU,Media:j.YM.zz,Others:[]},eh=Object.values(ec).flat(),eu=e=>{let{data:t}=e,r=(0,a.jsxs)(d.A,{children:[(0,a.jsx)(h.A.Text,{strong:!0,children:t.alias}),(0,a.jsx)(o.A,{title:(0,a.jsxs)(d.A,{style:{color:"inherit"},direction:"vertical",children:[t.current?(0,a.jsxs)(h.A.Text,{style:{color:"inherit"},children:["Current realpath: ",t.current.path]}):null,t.baseline?(0,a.jsxs)(h.A.Text,{style:{color:"inherit"},children:["Baseline realpath: ",t.baseline.path]}):null]}),children:(0,a.jsx)(m.A,{})})]});return t.baseline&&!t.current?(0,a.jsxs)(d.A,{children:[(0,a.jsx)(ea.A,{style:{color:"#e17055"}}),r]}):!t.baseline&&t.current?(0,a.jsxs)(d.A,{children:[(0,a.jsx)(en.A,{style:{color:"#52c41a"}}),r]}):t.baseline&&t.current?(0,a.jsxs)(d.A,{children:[(0,a.jsx)(ei.A,{style:{color:"#faad14"}}),r]}):r},ep=e=>{let{baseline:t,current:r,outputFilename:l}=e,[s,i]=(0,n.useState)(),[c,x]=(0,n.useState)([]),[f,g]=(0,n.useState)([]),[w,k]=(0,n.useState)(L.Size),[E,N]=(0,n.useState)(null),[B,F]=(0,n.useState)(null),{assets:I}=t.chunkGraph,{assets:O}=r.chunkGraph,G=(0,n.useMemo)(()=>{let e={};return E&&B?e.choose={alias:`${E}
|
|
5
|
+
${B}`,current:O.find(e=>e.path===B),baseline:I.find(e=>e.path===E)}:(I.forEach(t=>{let r=V.TS.H9(t.path,l);e[r]?console.warn("[Baseline Asset Exists]: ",t,e):e[r]={alias:r,baseline:t}}),O.forEach(t=>{let r=V.TS.H9(t.path,l);e[r]||(e[r]={alias:r}),e[r].current=t})),Object.values(e)},[I,O,E,B]),$=(0,n.useMemo)(()=>{let e=G.slice();if(s&&(e=e.filter(e=>e.alias.indexOf(s)>-1)),c.length){let t=c.map(e=>ec[e]).flat(),r=c.indexOf("Others")>-1;e=e.filter(e=>{let l=e.baseline||e.current;return!!V.TS.C5(l,t)||!!r&&!V.TS.C5(l,eh)})}if(f.length&&(e=e.filter(e=>e.baseline&&!e.current?f.includes(R.Deleted):!e.baseline&&e.current?f.includes(R.New):!!e.baseline&&!!e.current&&(e.baseline.size===e.current.size?f.includes(R.NotChanged):f.includes(R.Changed)))),w)if(w===L.Name)e.sort((e,t)=>e.alias.localeCompare(t.alias));else{let{prev:s,others:a}=e.reduce((e,t)=>(t.current?t.baseline?e.prev.unshift(t):e.prev.push(t):e.others.push(t),e),{prev:[],others:[]});e=[...s.sort((e,s)=>{if(s.current&&e.current){if(w===L.Delta){let{percent:a}=V.TS.SE(t.chunkGraph,r.chunkGraph,t=>V.TS.H9(t.path,l)===e.alias),{percent:n}=V.TS.SE(t.chunkGraph,r.chunkGraph,e=>V.TS.H9(e.path,l)===s.alias);return n-a}return s.current.size-e.current.size}return -1}),...a]}return e},[G,s,c,f,w]),_=(0,n.useMemo)(()=>(0,M.xu)($,e=>e.current?e.current.size:0)||0,[$]),q=(0,n.useMemo)(()=>(0,M.xu)($,e=>e.baseline?e.baseline.size:0)||0,[$]);return(0,a.jsxs)(y.A,{gutter:[20,20],children:[(0,a.jsxs)(v.A,{span:24,children:[(0,a.jsxs)(d.A,{wrap:!0,children:[(0,a.jsx)(D.E,{icon:(0,a.jsx)(z.A,{}),label:"",labelStyle:{width:45},placeholder:"Search by file name",onChange:e=>{i(e)}}),(0,a.jsx)(S.A,{mode:"multiple",placeholder:"Filter by file type",style:{width:250},options:Object.keys(ec).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{x(e)}}),(0,a.jsx)(S.A,{mode:"multiple",placeholder:"Filter by file changed type",style:{width:200},options:Object.values(R).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{g(e)}}),(0,a.jsx)(S.A,{suffixIcon:(0,a.jsx)(eo.A,{}),options:Object.values(L).map(e=>({label:e,value:e})),value:w,onChange:e=>{k(e)}})]}),(0,a.jsxs)(y.A,{style:{marginTop:10},gutter:[6,6],children:[(0,a.jsx)(v.A,{children:(0,a.jsx)(p.Ay,{children:"Select Baseline Asset and Current Asset to Diff "})}),(0,a.jsx)(v.A,{children:(0,a.jsx)(S.A,{allowClear:!0,placeholder:"select baseline assets",showSearch:!0,style:{width:300},options:Object.values(t.chunkGraph.assets).map(e=>({label:e.path,value:e.path})),onChange:e=>N(e)})}),(0,a.jsx)(v.A,{children:(0,a.jsx)(S.A,{allowClear:!0,placeholder:"select current assets",showSearch:!0,style:{width:300},options:Object.values(r.chunkGraph.assets).map(e=>({label:e.path,value:e.path})),onChange:e=>F(e)})})]})]}),(0,a.jsx)(v.A,{span:24,children:(0,a.jsx)(C.A,{bordered:!0,sticky:{offsetHeader:54},pagination:{pageSize:20,size:"small"},dataSource:$,rowKey:e=>e.alias,expandable:{expandedRowRender:e=>(0,a.jsx)("div",{style:{margin:20/3},children:(0,a.jsx)(K,{data:e,baseline:t,current:r})}),columnTitle:(0,a.jsx)(o.A,{title:"Click to expand row to see the modules which the chunk contains",placement:"left",children:(0,a.jsx)(ed.A,{style:{cursor:"pointer"}})})},columns:[{title:(0,a.jsxs)(o.A,{title:(0,a.jsxs)(d.A,{direction:"vertical",children:[(0,a.jsxs)(h.A.Text,{style:{color:"inherit"},children:["filtered assets is ",$.length]}),(0,a.jsxs)(h.A.Text,{style:{color:"inherit"},children:["total assets is ",G.length]})]}),children:[(0,a.jsx)(h.A.Text,{strong:!0,children:"Assets"}),(0,a.jsx)(u.A,{type:"vertical"}),(0,a.jsxs)(h.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400,marginRight:4},children:[$.length,"/",G.length]}),(0,a.jsx)(m.A,{})]}),render:(e,t)=>(0,a.jsx)(eu,{data:t})},{title:()=>{let e=(0,b.Xq)(_),t=V.TS.Nt(q,_);return(0,a.jsxs)(o.A,{title:`Current size is ${e}, Delta is ${(0,b.l9)(t.percent)}`,children:[(0,a.jsx)(h.A.Text,{strong:!0,children:"Current"}),(0,a.jsx)(u.A,{type:"vertical"}),(0,a.jsxs)(h.A.Text,{style:{fontSize:10,fontWeight:400,marginRight:4},children:[(0,a.jsx)(h.A.Text,{style:{fontSize:"inherit",marginRight:8},children:e}),(0,a.jsx)(A.vh,{fontSize:"inherit",baseline:q,current:_}),W(q,_,q>_?j.Kj.Ol.Down:j.Kj.Ol.Up,{fontSize:10,fontWeight:400,marginLeft:4})]}),(0,a.jsx)(m.A,{})]})},render:(e,s)=>{if(s.current){let{percent:e,state:n}=V.TS.SE(t.chunkGraph,r.chunkGraph,e=>V.TS.H9(e.path,l)===s.alias),i=V.TS.X9(s.current,r.chunkGraph.chunks);return(0,a.jsxs)(d.A,{children:[(0,a.jsx)(h.A.Text,{children:(0,b.Xq)(s.current.size)}),(0,a.jsx)(A.QE,{percent:e,state:n}),i?(0,a.jsx)(T.A,{color:"#1677ff",children:"initial"}):null]})}return"-"}},{title:()=>{let e=(0,b.Xq)(q);return(0,a.jsxs)(o.A,{title:`Baseline size is ${e}`,children:[(0,a.jsx)(h.A.Text,{strong:!0,children:"Baseline"}),(0,a.jsx)(u.A,{type:"vertical"}),(0,a.jsx)(h.A.Text,{style:{fontSize:10,fontWeight:400,marginRight:4},children:e}),(0,a.jsx)(m.A,{})]})},render:(e,r)=>{if(r.baseline){let e=V.TS.X9(r.baseline,t.chunkGraph.chunks);return(0,a.jsxs)(d.A,{children:[(0,a.jsx)(h.A.Text,{children:(0,b.Xq)(r.baseline.size)}),e?(0,a.jsx)(T.A,{color:"#1677ff",children:"initial"}):null]})}return"-"}},{title:"Actions",key:"actions",render:(e,t)=>(0,a.jsx)(P,{file:t.alias,data:[{baseline:t.baseline?.content,current:t.current?.content,group:"assets"}]})}]})})]})};var ex=r(41611);let ef=e=>{let{api:t,body:r,children:l,manifests:s}=e,n=(0,b.xF)(),i=window[j.YM.tQ];if(i?.baseline&&i?.current){let e=JSON.parse(V.oG.J0(i.baseline)),t=JSON.parse(V.oG.J0(i.current));return(0,a.jsx)(a.Fragment,{children:l(e,t)})}if(s?.length)return(0,a.jsx)(a.Fragment,{children:l(s[0].data,s[1].data)});let[o,d]=n[j.Kj.H9.BundleDiffFiles]?.split(",")||[];return(0,a.jsx)(ex.zW,{api:t,body:r,manifestLoader:o?()=>(0,b.Cj)(o):void 0,children:e=>(0,a.jsx)(ex.zW,{api:t,body:r,manifestLoader:d?()=>(0,b.Cj)(d):void 0,children:t=>l(e,t)})})},em=e=>{let{manifests:t}=e;return(0,n.useEffect)(()=>{console.log("BundleDiff Manifests: ",t)},[t]),(0,a.jsx)(ef,{api:j.hp.uT.n.GetBundleDiffSummary,manifests:t,children:(e,t)=>{let r=e.chunkGraph===t.chunkGraph,l=e.chunkGraph,s=r?l:t.chunkGraph,n=V.TS.oT(l,s);return(0,a.jsxs)("div",{children:[(0,a.jsxs)(i.A.Group,{children:[(0,a.jsx)(o.A,{placement:"leftBottom",title:(0,a.jsx)(d.A,{direction:"vertical",children:[{title:"Baseline",data:e},{title:"Current",data:t}].map(e=>{let{title:t,data:r}=e;return(0,a.jsx)(c.A,{size:"small",children:(0,a.jsxs)(d.A,{direction:"vertical",children:[(0,a.jsx)(h.A.Text,{strong:!0,children:t}),(0,a.jsxs)(d.A,{style:{fontSize:10},children:[(0,a.jsx)(h.A.Text,{style:{fontSize:"inherit",width:30,display:"inline-block"},children:"Hash"}),(0,a.jsx)(u.A,{type:"vertical"}),(0,a.jsx)(h.A.Text,{type:"secondary",style:{fontSize:"inherit"},children:r.hash||"-"})]}),r.cloudManifestUrl?(0,a.jsx)(p.Ay,{type:"link",size:"small",style:{padding:0,fontSize:10},onClick:()=>window.open(r.cloudManifestUrl),children:"Open File"}):null]})},t)})}),children:(0,a.jsx)(i.A,{icon:(0,a.jsx)(m.A,{})})}),(0,a.jsx)(x.A,{title:(0,a.jsxs)(h.A.Text,{children:["Are you sure to",(0,a.jsx)(h.A.Text,{strong:!0,children:" re-upload "}),"json files for bundle diff?"]}),onConfirm:()=>{},okText:"Yes",cancelText:"Cancel",placement:"topLeft",trigger:"hover",children:(0,a.jsx)(i.A,{icon:(0,a.jsx)(g.A,{})})}),(0,a.jsx)(i.A.BackTop,{})]}),(0,a.jsx)(el,{baseline:e,current:t,onlyBaseline:r,assetsDiffResult:n}),(0,a.jsx)(f.A,{defaultActiveKey:"Overview",tabBarStyle:{marginBottom:20/3},items:[{label:"Overview",key:"Overview",children:(0,a.jsx)(es,{assetsDiffResult:n})},{label:"Assets",key:"Assets",children:(0,a.jsx)(ep,{outputFilename:e.outputFilename,baseline:e,current:t})},{label:"Modules",key:"Modules",children:(0,a.jsx)(X,{baseline:e,current:t,onlyBaseline:r,assetsDiffResult:n})},{label:"Packages",key:"Packages",children:(0,a.jsx)(er,{baseline:e.packageGraph,current:t.packageGraph})}].map(e=>({...e,label:(0,a.jsx)(h.A.Text,{strong:!0,children:e.label})}))})]})}})},eg=j.Kj.EH.BundleDiff,ej=()=>(0,a.jsx)(em,{manifests:[]})},34376(e,t,r){var l=r(13078),s=r.n(l);function a(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",l=r.toLowerCase();return e.filter(e=>t?.sideEffectCodes[e.id]?.length&&e.path.toLowerCase().includes(l))}function n(e,t){let r=[],l=t.replace(/\\/g,"/");for(let t of e){let e=t.path.replace(/\\/g,"/"),a=[t.layer||"Modules",...s().relative(l,e).split("/").filter(Boolean)],n=a.pop()||e,i=r,o="directory";for(let e of a){o+=`/${e}`;let t=i.find(e=>e.key===o);t||(t={key:o,title:e,selectable:!1,children:[]},i.push(t)),i=t.children}i.push({key:`module:${t.id}`,title:n})}return r}r.d(t,{F:()=>n,s:()=>a})},53715(e,t,r){r.d(t,{V:()=>f});var l=r(43029),s=r(1102),a=r(3534),n=r(67782);class i{manifest;pool=new Map;loader;disposed=!1;shardingDataMap=new Map;constructor(e){this.manifest=e,this.loader=new a.B_.s(this),console.log("[DataLoader] isLocal: ",this.isLocal())}get(e){if(this.manifest)return this.manifest[e]}getData(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data",r=this.get(t);if(r)return r[e]}getKeys(e){return e.split(".")}joinKeys(e){return e.join(".")}dispose(){this.disposed=!0}limit(e,t){if(this.pool.has(e))return this.pool.get(e);let r=t().finally(()=>this.pool.delete(e));return this.pool.set(e,r),r}log(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];console.log(`[${this.constructor.name}]`,...t)}async loadManifest(){return this.manifest}}var o=r(83977),d=r(19495);class c extends i{events=new Map;isLocal(){return!0}async loadData(e){return this.limit(e,async()=>{let[t,...r]=this.getKeys(e),s=this.getData(t);if(!s)return;let i=s;if(a._8.tg(i)){if(!this.shardingDataMap.has(e)){let t=(0,o.mq)(l.hp.uT.n.LoadDataByKey,{key:e}).catch(t=>{throw this.log("loadData error: ",i,e),t});this.shardingDataMap.set(e,t)}return i=await this.shardingDataMap.get(e),this.shardingDataMap.delete(e),i}return r.length>0?(0,n.Jt)(i,this.joinKeys(r)):i})}async loadAPI(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[l,s]=t,a=s?`${l}_${JSON.stringify(s)}`:`${l}`,n=this.get("__SOCKET__PORT__")??"",i=this.get("__SOCKET__URL__")??"";return this.limit(a,async()=>{try{return await (0,d.XM)(l,s,n,i)}catch(e){throw this.log("loadAPI error: ",a),e}})}dispose(){super.dispose(),this.events.forEach(e=>{let{api:t,body:r,listeners:l}=e;l.forEach(e=>{this.removeOnDataUpdate(t,r,e)}),l.clear()}),this.events.clear()}onDataUpdate(e,t,r){let l=t??null,s=`${e}::${JSON.stringify(l)}`;this.events.has(s)||this.events.set(s,{api:e,body:l,listeners:new Set});let a=this.events.get(s);if(a.listeners.has(r))return;a.listeners.add(r);let n=this.get("__SOCKET__PORT__")??"",i=this.get("__SOCKET__URL__")??"";(0,d.Wi)(e,l,r,n,i)}removeOnDataUpdate(e,t,r){let l=`${e}::${JSON.stringify(t??null)}`,s=this.get("__SOCKET__PORT__")??"",a=this.get("__SOCKET__URL__")??"";(0,d.Xi)(e,t,r,s,a),this.events.get(l)?.listeners.delete(r)}}class h extends i{isLocal(){return!1}async loadData(e){return this.limit(e,async()=>{let[t,...r]=this.getKeys(e),l=this.getData(t,"cloudData");if(!l)return;let s=l;if(a._8.tg(s)){if(!this.shardingDataMap.has(t)){let r=a._8.pJ(s,o.fZ).catch(t=>{throw this.log("loadData error: ",s,e),t});this.shardingDataMap.set(t,r)}s=await this.shardingDataMap.get(t)}return r.length>0?(0,n.Jt)(s,this.joinKeys(r)):s})}async loadAPI(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[l,s]=t,a=s?`${l}_${JSON.stringify(s)}`:`${l}`;return this.limit(a,async()=>this.loader.loadAPI(...t))}dispose(){super.dispose()}onDataUpdate(){}removeOnDataUpdate(){}}r(10815),r(15061);class u extends i{isLocal(){return!1}async loadData(e){console.log(`[loadData]-[key]: ${e}`);let[t]=this.getKeys(e);console.log(`[loadData]-[scope]: ${t}`);let r=this.getData(t);if(!r)return;let l=r;if(!this.shardingDataMap.has(t)){let e=this.parseData(l);this.shardingDataMap.set(t,Promise.resolve(e))}return await this.shardingDataMap.get(t)}getData(e){return console.log(`[getData]-[scope]: ${e}`),window[l.YM.tQ][e]}parseData(e){if("object"==typeof e&&null!==e||"string"!=typeof e)return e;try{return JSON.parse(a.oG.J0(e))}catch{return e}}async loadAPI(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.loader.loadAPI(...t)}dispose(){super.dispose()}onDataUpdate(){}removeOnDataUpdate(){}}let p=new WeakMap;async function x(e){try{if(e.__LOCAL__SERVER__)return console.log("[LocalServerDataLoader]"),new c(e)}catch{console.log("[DataLoader] fallback to RemoteDataLoader")}return new h(e)}function f(e){let[t,r]=(0,s.useState)(void 0);return(0,s.useEffect)(()=>{window[l.YM.tQ]&&(console.log("[brief mode]"),r(new u({data:[]})))},[]),(0,s.useEffect)(()=>{if(e){if(!p.has(e)){let t=x(e);p.set(e,t)}p.get(e).then(e=>{r(e)})}},[e]),{loader:t}}},71631(e,t,r){var l=r(25205),s=r(33663);l.Ay.use(s.r9).init({lng:"en",supportedLngs:["en"],resources:{en:{translations:{Overall:"Overall","Compile Analysis":"Compile Analysis","Bundle Alerts":"Bundle Alerts","Help Center":"Help Center",LoadersAnalysis:"Loaders Analysis","Loaders Timeline":"Loaders Timeline","Loaders Analysis":"Loaders Analysis","Rsdoctor Introduction":"Rsdoctor Introduction","Compilation Alerts":"Compilation Alerts","Plugins Analysis":"Plugins Analysis",PluginsAnalysis:"Plugins Analysis",ModuleResolve:"Module Resolve","Bundle Analysis":"Bundle Analysis",BundleSize:"Bundle Size",ViewBundleSize:"View Bundle Size","Module Graph":"Module Graph",TreeShaking:"Tree Shaking","Rule Index":"Rule Index",Resources:"Resources","Project Overall":"Project Overall","Compile Overall":"Compile Overall","Bundle Overall":"Bundle Overall","Expand Omitted":"By default, the reasons tree collapses to the middle of the module introduced by a third party. Click on this icon to view the full tree diagram","Concatenated Tag":"Concatenated Module,hover can display the name of the concatenated main module. Note: the bundled size of the concatenated module is zero, possibly because it is aggregated into the main module.","the file content not changed after transpiled by this loader":"the file content not changed after transpiled by this loader","Output Assets List":"Output Assets List","filter the output assets which size is greater than the input value":"filter the output assets which size is greater than the input value","filter the modules which size is greater than the input value":"filter the modules which size is greater than the input value","After Compile":"After Compile","After Bundle":"After Bundle",CodeModeExplain:"In lite mode or pure stats.json upload, only source code.",DuplicatePakCodeExplain:"There is no code, when in the case of pure stats.json.",AsyncLoaderInfo:"For async loaders, the time cost of each loader is not accurate. For example: mini-css-extract-plugin's loader.",Details:"Details",Expand:"Expand",Collapse:"Collapse"}}},fallbackLng:"en",debug:!1,ns:["translations"],defaultNS:"translations",keySeparator:!1,interpolation:{escapeValue:!1}})},5525(e,t,r){let{xr:l,Wx:s}=r(3534).aH;function a(e,t,r,l,s,a){return!(r&&-1===e.indexOf(r)||s&&a&&s!==a||l?.length&&!l.includes(t))}r.d(t,{ak:()=>a},{xr:l})},24336(e,t,r){var l=r(79514);function s(){return l.A}r.d(t,{J:()=>s})},22009(e,t,r){var l=r(1102);r(41537);var s=r(17886),a=r(15061);function n(){let{theme:e,setTheme:t}=(0,l.useContext)(s.Q),r=e===a.Sx.Dark;return{theme:e,setTheme:t,isDark:r,isLight:!r}}function i(){let{viewMode:e,setViewMode:t}=(0,l.useContext)(s.Q),{bundleAlerts:r,compileAlerts:a}=e;return{viewMode:e,setViewMode:t,setCompileAlertsViewMode(e){t({compileAlerts:e})},setBundleAlertsViewMode(e){t({bundleAlerts:e})},isCompileList:"list"===a,isBundleList:"list"===r}}r(83977),r.d(t,{DP:()=>n,an:()=>i})},83977(e,t,r){var l=r(43029),s=r(3534);r(15061);var a=r(36577);r(10815);async function n(e,t){return(await s.Fp.u9(e,{timeout:t})).text()}async function i(e){return s.s0.gU(e)?n(e,999999):e}async function o(e){let t=await n(e,3e4);if("string"==typeof t){let e=t.trim();t=/^<!doctype html\b/i.test(e)||/^<html\b/i.test(e)?{}:JSON.parse(t)}return t}let d=new Map;async function c(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:((e=window[l._8.V.WindowPropertyForManifestUrl]?window[l._8.V.WindowPropertyForManifestUrl]:(0,a.kJ)())||(e=l.hp.uT.n.Manifest),e);return d.has(t)||d.set(t,o(t).catch(e=>{throw d.delete(t),e})),await d.get(t)}async function h(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[l,a]=t,n={method:"POST",headers:{"Content-Type":"application/json"},timeout:6e4};null!=a&&(n.body=JSON.stringify(a));let i=await s.Fp.u9(`${l}?_t=${Date.now()}${Math.floor(1e4*Math.random())}`,n);return await i.json()}r.d(t,{Cj:()=>c,fZ:()=>i,mq:()=>h})},62772(e,t,r){var l=r(43029);function s(e){return e.includes(l._8.z.Loaders)||e.includes(l._8.z.ModuleResolve)||e.includes(l._8.z.Plugins)}function a(e){return e.includes(l._8.z.BundleSize)||e.includes(l._8.z.ModuleGraph)||e.includes(l._8.z.TreeShaking)}r.d(t,{c:()=>s,r:()=>a})},91431(e,t,r){function l(e){return e>=1e9?`${(e/1e9).toFixed(2)} GB`:e>=1e6?`${(e/1e6).toFixed(2)} MB`:e>=1e3?`${(e/1e3).toFixed(2)} KB`:e>1?`${e} bytes`:1===e?`${e} byte`:"0 bytes"}function s(e){return`${+e.toFixed(2)}%`}r.d(t,{X:()=>l,l:()=>s})},19495(e,t,r){let l=new Map,s=0,a=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;function n(e){return e.includes("https")?"wss":"ws"}function i(){if("u"<typeof location)return"";let e=n(location.protocol);return`${e}://${location.host}`}function o(e,t){return t||("u"<typeof location?e?`ws://localhost:${e}`:"":e?function(e){let{port:t,protocol:r,hostname:l}=e,s=n(r),i=a.test(l)||l.includes("localhost");if("u">typeof URL){let e=new URL("http://localhost");return e.hostname=l,e.protocol=s,t&&i&&(e.port=t),e.toString()}let o=t&&i?`:${t}`:"";return`${s}://${l}${o}`}({port:e,hostname:location.hostname,protocol:location.protocol}):i())}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i(),t=e||"__default__";return l.has(t)||l.set(t,{url:e,listeners:new Map,subscriptions:new Map,requests:new Map}),l.get(t)}function c(e,t){return`${e}:${JSON.stringify(t??null)}`}function h(e,t){e.socket?.readyState===1&&e.socket.send(JSON.stringify({type:"subscribe",api:t.api,body:t.body??null}))}function u(e,t){if(e.socket?.readyState!==1)return;let r=e.requests.get(t);r&&e.socket.send(r.message)}function p(e){if(!e.url||"u"<typeof WebSocket||e.socket)return;let t=new WebSocket(e.url);t.addEventListener("open",()=>{e.subscriptions.forEach(t=>{h(e,t)}),e.requests.forEach((t,r)=>{u(e,r)})}),t.addEventListener("message",t=>{if("string"==typeof t.data)try{var r,s;let a=JSON.parse(t.data);if("type"in a&&"response"===a.type)return void function(e,t){let r=e.requests.get(t.id);if(r){if(e.requests.delete(t.id),t.error)return r.reject(Error(t.error));r.resolve(t.payload)}}(e,a);r=a,((s=e.url)?[d(s)]:[...l.values()]).forEach(e=>{let t=c(r.api,r.payload.req.body);e.listeners.get(t)?.forEach(e=>{e(r.payload)})})}catch{}}),t.addEventListener("close",()=>{e.socket=void 0,e.requests.forEach(e=>{e.reject(Error("WebSocket closed before the response arrived."))}),e.requests.clear()}),e.socket=t}function x(e,t,r,l){let a=o(r,l);if(!a)return Promise.reject(Error("WebSocket URL is not available."));if("u"<typeof WebSocket)return Promise.reject(Error("WebSocket is not available."));let n=d(a),i=`${Date.now()}-${++s}`;return new Promise((r,l)=>{n.requests.set(i,{message:JSON.stringify({type:"request",id:i,api:e,body:t??null}),resolve:r,reject:l}),p(n),u(n,i)})}function f(e,t,r,l,s){let a=d(o(l,s)),n=t??null,i=c(e,n);a.listeners.has(i)||a.listeners.set(i,new Set),a.listeners.get(i).add(r);let u={api:e,body:n};return a.subscriptions.set(i,u),p(a),h(a,u),()=>{m(e,n,r,l,s)}}function m(e,t,r,l,s){let a=d(o(l,s)),n=c(e,t),i=a.listeners.get(n);if(i?.delete(r),i?.size===0){let e=a.subscriptions.get(n);e&&a.socket?.readyState===1&&a.socket.send(JSON.stringify({type:"unsubscribe",api:e.api,body:e.body??null})),a.listeners.delete(n),a.subscriptions.delete(n)}}r.d(t,{Wi:()=>f,XM:()=>x,Xi:()=>m})},10815(e,t,r){var l=r(15061);function s(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 n(){return s("THEME")||l.Sx.Light}function i(e){a("THEME",e)}function o(){let e={bundleAlerts:"list",compileAlerts:"list"};try{let t=s("VIEWMODE");if(t)return JSON.parse(t)||e;return e}catch{return e}}function d(e){a("VIEWMODE",JSON.stringify(e))}function c(){return!!s("VIEWMODE")}r.d(t,{DT:()=>n,Kv:()=>i,ZI:()=>d,it:()=>c,oi:()=>o})},72911(e,t,r){let{ox:l,l_:s,a4:a}=r(3534).gX;r.d(t,{},{a4:a})},36744(){class e{worker;timer=0;callbacks=new Map;constructor(e){this.worker=e,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){var r;let l=this.createEventId();return this.callbacks.set(l,t),r={id:l,data:e},this.worker.postMessage(r),{abort:()=>this.callbacks.delete(l)}}dispose(){this.worker.terminate()}}class t{_workerMap=new WeakMap;detectWorker(t){if(this._workerMap.has(t))return this._workerMap.get(t);let r=new e(t());return this._workerMap.set(t,r),r}}new t},64033(e,t,r){var l=r(13078);let{relative:s}=(r.n(l))();function a(e,t,r,l,a){return l.slice().reverse().map(l=>{let n=t.find(e=>e.id===l.dependencyId);if(!n)return null;let i=e.find(e=>e.id===n.module);return i?{group:l.group,module:i,dependency:n,relativePath:s(r,i.path),moduleCode:a?.[i.id]}:null}).filter(Boolean)}r.d(t,{X:()=>a})},16397(e,t,r){var l=r(46068),s=r(36533);function a(e){let t,r;e.sort((e,t)=>e[0]-t[0]);let l=[];for(let s=0;s<e.length;s++)r=e[s],!t||r[0]>t[1]?(t=r,l.push(r)):t[1]=Math.max(t[1],r[1]);return l}function n(e){return(0,l.inflateSync)(s.Buffer.from(e,"base64")).toString()}r.d(t,{J0:()=>n,l7:()=>a})},17806(e,t,r){r(43029)},61101(e,t,r){r.d(t,{s:()=>x});var l=r(43029),s=r(13078),a=r.n(s),n=r(83920),i=r(94485),o=r(47776);function d(e){return Object.keys(e)}function c(e){let t=d(e),r=new Set;return t.forEach(t=>{e[t].forEach(e=>{r.add(e.tapName)})}),[...r]}var h=r(88297),u=r(64033);let{relative:p}=a();class x{loader;constructor(e){this.loader=e,this.loadAPI=this.loadAPI.bind(this)}log(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];console.log(`[${this.constructor.name}]`,...t)}loadAPI(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[s,a]=t;switch(s){case l.hp.uT.n.LoadDataByKey:return this.loader.loadData(a.key);case l.hp.uT.n.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=>{let[t,r,l,s,a,n,i]=e;return{root:t,pid:r,hash:l,summary:s,configs:a,envinfo:n,errors:i,name:a?.[0]?.config?.name}});case l.hp.uT.n.GetClientRoutes:{let e="u"<typeof window?void 0:window;if(e?.[l.YM.tQ]?.enableRoutes)return Promise.resolve(e[l.YM.tQ].enableRoutes);return this.loader.loadManifest().then(e=>{let{enableRoutes:t=[]}=e.client||{};return t})}case l.hp.uT.n.GetLoaderNames:return this.loader.loadData("loader").then(e=>i.Gk(e||[]));case l.hp.uT.n.GetLayers:return this.loader.loadData("moduleGraph").then(e=>{let{layers:t}=e||{};return t});case l.hp.uT.n.GetLoaderChartData:return this.loader.loadData("loader").then(e=>i.q6(e||[]));case l.hp.uT.n.GetLoaderFileTree:return this.loader.loadData("loader").then(e=>i.Ym(e||[]));case l.hp.uT.n.GetLoaderFileDetails:return this.loader.loadData("loader").then(e=>i.Yf(a.path,e||[]));case l.hp.uT.n.GetLoaderFolderStatistics:return this.loader.loadData("loader").then(e=>i.bO(a.folder,e||[]));case l.hp.uT.n.GetLoaderFileFirstInput:return this.loader.loadData("loader").then(e=>i.Ah(a.file,e||[]));case l.hp.uT.n.GetLoaderFileInputAndOutput:return this.loader.loadData("loader").then(e=>i.eJ(a.file,a.loader,a.loaderIndex,e||[],a.isPitch));case l.hp.uT.n.GetResolverFileTree:return this.loader.loadData("resolver").then(e=>o.NB(e||[]));case l.hp.uT.n.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],l=e[2];return o.Vj(a.filepath,t||[],r||[],l||{})});case l.hp.uT.n.GetPluginSummary:return this.loader.loadData("plugin").then(e=>{var t;return{hooks:d(t=e||{}),tapNames:c(t)}});case l.hp.uT.n.GetPluginData:return this.loader.loadData("plugin").then(e=>{let{hooks:t,tapNames:r}=a;return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],l=d(e).filter(e=>!t.length||-1!==t.indexOf(e));return l.length?c(e).reduce((t,s)=>(r.length&&-1===r.indexOf(s)||l.forEach(r=>{let l=e[r].filter(e=>e.tapName===s);0!==l.length&&t.push({tapName:s,hook:r,data:l.map(e=>({startAt:e.startAt,endAt:e.endAt,costs:e.costs,type:e.type}))})}),t),[]):[]}(e||{},t,r)});case l.hp.uT.n.GetAssetsSummary:return this.loader.loadData("chunkGraph").then(e=>{let{withFileContent:t=!0}=a,{assets:r=[],chunks:l=[]}=e||{};return h.iD(r,l,{withFileContent:t})});case l.hp.uT.n.GetAssetDetails:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph"),this.loader.loadData("configs")]).then(e=>{let{assetPath:t}=a,{isRspack:r,hasSourceMap:l}=(0,n.fM)(e[2]||[]),{assets:s=[],chunks:i=[]}=e[0]||{},{modules:o=[]}=e[1]||{};return h.Xh(t,s,i,o,r||l?e=>0!==e.size.parsedSize:()=>!0)});case l.hp.uT.n.GetSummaryBundles:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph"),this.loader.loadData("configs")]).then(e=>{let{assets:t=[],chunks:r=[]}=e[0]||{},{modules:l=[]}=e[1]||{},s=e[2]||[],a=t;return Array.isArray(s)&&s[0]?.config?.name==="lynx"&&(a=t.filter(e=>!e.path.endsWith("/template.js"))),h.ko(a,r,l,["id","path","size","kind"])});case l.hp.uT.n.GetChunksByModuleId:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph")]).then(e=>{let{moduleId:t}=a,{chunks:r=[]}=e[0]||{},{modules:l=[]}=e[1]||{};return h.lq(t,l,r)});case l.hp.uT.n.GetModuleDetails:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph"),this.loader.loadData("treeShaking")]).then(e=>{let{moduleId:t}=a,{modules:r=[],dependencies:l=[]}=e[1]||{},s=e[2],n=s?.sideEffectCodes[t]||[];return h.lD(t,r,l,n)});case l.hp.uT.n.GetModulesByModuleIds:return this.loader.loadData("moduleGraph").then(e=>{let{moduleIds:t}=a,{modules:r=[]}=e||{};return h.xp(t,r)});case l.hp.uT.n.GetEntryPoints:return Promise.all([this.loader.loadData("chunkGraph")]).then(e=>{let[t]=e,{entrypoints:r=[]}=t||{};return h.WL(r)});case l.hp.uT.n.GetModuleCodeByModuleId:return this.loader.loadData("moduleCodeMap").then(e=>{let{moduleId:t}=a;return e?e[t]:{source:"",transformed:"",parsedSource:""}});case l.hp.uT.n.GetModuleCodeByModuleIds:return this.loader.loadData("moduleCodeMap").then(e=>{let{moduleIds:t}=a,r={};return e?(t.forEach(t=>{r[t]=e[t]}),r):[]});case l.hp.uT.n.GetAllModuleGraph:return this.loader.loadData("moduleGraph").then(e=>e?.modules);case l.hp.uT.n.GetSearchModules:return Promise.all([this.loader.loadData("moduleGraph"),this.loader.loadData("chunkGraph")]).then(e=>{let[t,r]=e,{moduleName:l}=a;if(!l)return[];let s=r.chunks.reduce((e,t)=>(t.assets.forEach(r=>{e[t.id]||(e[t.id]=[]),e[t.id].push(r)}),e),{}),n=new Map;return t?.modules.filter(e=>{e.identifier.includes(l)&&e.chunks.forEach(e=>{n.has(e)||(s[e]||[]).forEach(t=>{t.endsWith(".js")&&n.set(e,t)})})}),Object.fromEntries(n)});case l.hp.uT.n.GetSearchModuleInChunk:return Promise.all([this.loader.loadData("moduleGraph"),this.loader.loadData("root")]).then(e=>{let[t,r]=e,{moduleName:l,chunk:s}=a;return l?t?.modules.filter(e=>e.identifier.includes(l)&&e.chunks.includes(s)).map(e=>({id:e.id,path:e.path,relativePath:p(r,e.path)})):[]});case l.hp.uT.n.GetAllChunkGraph:return this.loader.loadData("chunkGraph").then(e=>e?.chunks);case l.hp.uT.n.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}=a,[l,s=[],n="",i]=e,{modules:o=[],dependencies:d=[]}=l||{},{packages:c=[]}=s.find(e=>e.id===t)||{},{dependencies:h=[]}=c.find(e=>e.target.name===r.name&&e.target.root===r.root&&e.target.version===r.version)||{};return u.X(o,d,n,h,i||{})});case l.hp.uT.n.GetOverlayAlerts:return this.loader.loadData("errors").then(e=>(e||[]).filter(e=>e.code===l.jO.jr.Overlay));case l.hp.uT.n.GetBundleAlerts:return this.loader.loadData("errors").then(e=>(e||[]).filter(e=>e.category===l.jO.y1.Bundle));case l.hp.uT.n.BundleDiffManifest:return this.loader.loadManifest();case l.hp.uT.n.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=>{let[t,r="",l="",s={},a={},n={},i={},o={},d=[]]=e,c="";return"string"==typeof d[0]?.config?.output?.chunkFilename&&(c=d[0]?.config.output.chunkFilename),{root:r,hash:l,errors:s,chunkGraph:a,moduleGraph:n,packageGraph:o,outputFilename:c,moduleCodeMap:i}});case l.hp.uT.n.GetChunkGraph:return this.loader.loadData("chunkGraph").then(e=>{let{chunks:t=[]}=e||{};return t});case l.hp.uT.n.GetAllModuleGraphFilter:return this.loader.loadData("moduleGraph").then(e=>e?.modules.map(e=>({id:e.id,identifier:e.identifier,path:e.path,size:e.size,chunks:e.chunks,kind:e.kind})));case l.hp.uT.n.GetModuleByName:return this.loader.loadData("moduleGraph").then(e=>{let{moduleName:t}=a,{modules:r=[]}=e||{};return r.filter(e=>e.path.includes(t)).map(e=>({id:e.id,path:e.path}))||[]});case l.hp.uT.n.GetModuleIssuerPath:return this.loader.loadData("moduleGraph").then(e=>{let{moduleId:t}=a,r=e?.modules||[],l=r.find(e=>String(e.id)===t)?.issuerPath||[];return Array.isArray(l)&&l.length>0&&"number"==typeof l[0]?l.map(e=>r.find(t=>t.id===e)?.path).filter(Boolean):l});case l.hp.uT.n.GetPackageInfo:return this.loader.loadData("packageGraph").then(e=>e?.packages);case l.hp.uT.n.GetPackageDependency:return this.loader.loadData("packageGraph").then(e=>e?.dependencies||[]);case l.hp.uT.n.GetChunkGraphAI:return this.loader.loadData("chunkGraph").then(e=>{let{assets:t=[]}=e||{};return t.map(e=>{let{content:t,...r}=e;return r})});case l.hp.uT.n.GetChunkByIdAI:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph")]).then(e=>{let[t,r]=e,{chunks:l=[]}=t||{},{modules:s=[]}=r||{},{chunkId:n}=a,i=l.find(e=>e.id===n);if(!i)return null;let o=s.filter(e=>i.modules.includes(e.id)).map(e=>({id:e.id,path:e.path,size:e.size,chunks:e.chunks,kind:e.kind,issuerPath:e.issuerPath}));return i.modulesInfo=o,i});case l.hp.uT.n.GetDirectoriesLoaders:return Promise.all([this.loader.loadData("root"),this.loader.loadData("loader")]).then(e=>{let[t,r]=e;return i.qJ(r||[],t||"")});default:throw Error(`API not implement: "${s}"`)}}}},33592(e,t,r){async function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{timeout:r=3e4,signal:l,...s}=t,a=new AbortController,n=setTimeout(()=>a.abort(),r);l&&(l.aborted?a.abort():l.addEventListener("abort",()=>a.abort(),{once:!0}));let i=function(){let e=globalThis.fetch;if("function"!=typeof e)throw Error("fetch is not available in this environment");return e.bind(globalThis)}();try{let t=await i(e,{...s,signal:a.signal});if(!t.ok)throw Error(`Request failed with status ${t.status}`);return t}finally{clearTimeout(n)}}r.d(t,{u9:()=>l})},88297(e,t,r){r.d(t,{SE:()=>v,Nt:()=>y,H9:()=>u,ko:()=>w,Xh:()=>b,oT:()=>j,iD:()=>A,QZ:()=>a,lq:()=>i,WL:()=>k,lD:()=>c,xp:()=>d,Xm:()=>o,C5:()=>x,X9:()=>m});var l=r(43029);function s(e){return e.chunks?e.chunks:[]}function a(e,t){return e.chunks.length?n(e.chunks,t):[]}function n(e,t,r){return e.length?e.map(e=>t.find(t=>t.id===e)).filter(Boolean).map(e=>{if(r&&r.length>0){let t={};for(let l of r)void 0!==e[l]&&(t[l]=e[l]);return t}return e}):[]}function i(e,t,r){let l=t.find(t=>t.id===e);return l?a(l,r):[]}function o(e,t,r,l,a){var i=n(s(e),t),o=r,d=l,c=a;let h=[];try{i.forEach(e=>{(function(e){let{modules:t=[]}=e;return t})(e).map(e=>{let t=o.find(t=>t.id===e);if(d&&d.length>0){if(!t)return null;let e={};for(let r of d)void 0!==t[r]&&(e[r]=t[r]);return e}return t}).filter(Boolean).forEach(e=>{(!c||c(e))&&!h.filter(t=>t.id===e.id).length&&h.push(e)})})}catch{}return h}function d(e,t){return e.map(e=>t.find(t=>t.id===e)).filter(Boolean)}function c(e,t,r,l){let s=t.find(t=>t.id===e);return{module:s,dependencies:s.dependencies.map(e=>r.find(t=>t.id===e)).filter(Boolean),...l?.length?{sideEffectCodes:l}:{}}}let h=RegExp(`(.*)${/[-|.]/.source}(${/(?:[a-f0-9]{4,32}|[a-zA-Z]{3,}[0-9]|[a-zA-Z]*[0-9][a-zA-Z]{2,}|[a-zA-Z]*[0-9][a-zA-Z0-9]{3,31})/.source})(${/(?:\.[a-z|A-Z|0-9]{2,}){1,}/.source})$`);function u(e,t){let r=t?.split(".");if(r?.length&&r.length>=3&&r[r.length-2]?.indexOf("[")<0&&"js|css|html".indexOf(r[r.length-1])>-1){let t=r[r.length-2],l=e.match(/(.*)(\.([a-f0-9]{4,32}|[a-zA-Z]*[0-9][a-zA-Z0-9]*))(\.[^.]+){2,}$/);if(l&&l[3].length>=4&&l[3].length<=32){let r=l[1];return`${r}.${t}.${e.substring(e.lastIndexOf(".")+1)}`}}let l=e.match(h);return l&&l[2]&&l[2].length>=4&&l[2].length<=32?e.replace(h,"$1$3"):e}function p(e,t){let r;return e.path.slice(-t.length)===t||((r=e.path.split("?")[0].match(/\.([0-9a-z]+)(?:[?#]|$)/i))?`.${r[1]}`:"")===t}function x(e,t){return!!t.length&&t.some(t=>p(e,t))}function f(e,t){var r,s;let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{withFileContent:n=!0,filterOrExtensions:i}=a;return(e=e.filter(e=>!x(e,l.YM.Jt)),i&&(r=e,i&&(r="function"==typeof i?r.filter(i):(s=r,"string"==typeof i?s.filter(e=>p(e,i)):Array.isArray(i)?s.filter(e=>x(e,i)):[])),e=r),e.length)?{count:e.length,size:e.reduce((e,t)=>e+t.size,0),files:e.map(e=>({path:e.path,size:e.size,gzipSize:e.gzipSize,brotliSize:e.brotliSize,initial:m(e,t),content:n?e.content:void 0}))}:{count:0,size:0,files:[]}}function m(e,t){return n(s(e),t,void 0).some(e=>!!e.initial)}function g(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f(e,t,{...r,filterOrExtensions:e=>{var l;return(!(l=r.filterOrExtensions)||("function"==typeof l?l(e):"string"==typeof l?p(e,l):x(e,l)))&&m(e,t)}})}function j(e,t){return{all:{total:v(e,t)},js:{total:v(e,t,l.YM.Wm),initial:v(e,t,l.YM.Wm,!0)},css:{total:v(e,t,l.YM.lk),initial:v(e,t,l.YM.lk,!0)},imgs:{total:v(e,t,l.YM.q$)},html:{total:v(e,t,l.YM.Fe)},media:{total:v(e,t,l.YM.zz)},fonts:{total:v(e,t,l.YM.AU)},others:{total:v(e,t,e=>!x(e,[...l.YM.Wm,l.YM.lk,l.YM.Fe].concat(l.YM.q$,l.YM.zz,l.YM.AU,l.YM.Jt)))}}}function y(e,t){let r=e===t;return{percent:r?0:0===e?100:Math.abs(t-e)/e*100,state:r?l.Kj.Ol.Equal:e>t?l.Kj.Ol.Down:l.Kj.Ol.Up}}function v(e,t,r){let l=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s,a,{size:n,count:i}=l?g(e.assets,e.chunks,{filterOrExtensions:r}):f(e.assets,e.chunks,{filterOrExtensions:r});if(e===t)s=n,a=i;else{let{size:e,count:n}=l?g(t.assets,t.chunks,{filterOrExtensions:r}):f(t.assets,t.chunks,{filterOrExtensions:r});s=e,a=n}let{percent:o,state:d}=y(n,s);return{size:{baseline:n,current:s},count:{baseline:i,current:a},percent:o,state:d}}function A(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s={...r,filterOrExtensions:l.YM.Wm},a={...r,filterOrExtensions:l.YM.lk},n={...r,filterOrExtensions:l.YM.q$},i={...r,filterOrExtensions:l.YM.Fe},o={...r,filterOrExtensions:l.YM.zz},d={...r,filterOrExtensions:l.YM.AU},c={...r,filterOrExtensions:e=>!x(e,[...l.YM.Wm,l.YM.lk,l.YM.Fe].concat(l.YM.q$,l.YM.zz,l.YM.AU,l.YM.Jt))};return{all:{total:f(e,t,r)},js:{total:f(e,t,s),initial:g(e,t,s)},css:{total:f(e,t,a),initial:g(e,t,a)},imgs:{total:f(e,t,n)},html:{total:f(e,t,i)},media:{total:f(e,t,o)},fonts:{total:f(e,t,d)},others:{total:f(e,t,c)}}}function b(e,t,r,l,a){let i=t.find(t=>t.path===e);return{asset:i,chunks:n(s(i),r,void 0),modules:o(i,r,l,void 0,a)}}function w(e,t,r,l){let s=[];try{for(let a=0;a<e.length;a++){let n=e[a];s.push({asset:n,modules:o(n,t,r,l)})}return s}catch(e){return console.error(e),[]}}function k(e){return e}},94485(e,t,r){var l=r(16397),s=r(85409);function a(e){let t=1/0,r=-1/0;for(let l=0;l<e.length;l++){let s=e[l];s.startAt<=t&&(t=s.startAt),s.endAt>=r&&(r=s.endAt)}return{start:t,end:r}}function n(e,t){let r={},s={};t.forEach(t=>{e(t)?(r[t.pid]||(r[t.pid]=[]),r[t.pid].push([t.startAt,t.endAt])):(s[t.pid]||(s[t.pid]=[]),s[t.pid].push([t.startAt,t.endAt]))});let a=0,n=Object.keys(r);for(let e=0;e<n.length;e++){let t=n[e],i=(0,l.l7)(r[t]),o=(0,l.l7)(s[t]||[]).filter(e=>{let[t,r]=e;return i.some(e=>t>=e[0]&&r<=e[1])});a+=(i.length?i.reduce((e,t)=>e+t[1]-t[0],0):0)-(o.length?o.reduce((e,t)=>e+t[1]-t[0],0):0)}return a}function i(e,t){let r=t.filter(t=>!t.loader.includes("builtin")&&t!==e&&t.pid===e.pid&&t.startAt>=e.startAt&&t.endAt<=e.endAt),s=e.endAt-e.startAt;return r.length&&(0,l.l7)(r.map(t=>[Math.max(t.startAt,e.startAt),Math.min(t.endAt,e.endAt)])).forEach(e=>{let t=e[1]-e[0];s-=t}),s}function o(e){let t=new Set;return e.forEach(e=>e.loaders.forEach(e=>t.add(g(e.loader)))),[...t]}function d(e){let t=[];for(let r=0;r<e.length;r++){let l=e[r];for(let e=0;e<l.loaders.length;e++){let r=l.loaders[e];t.push(r)}}return t}function c(e){let t=[],r=d(e);return e.forEach(e=>{e.loaders.forEach(l=>{t.push({layer:e.resource.layer,loader:g(l.loader),isPitch:l.isPitch,startAt:l.startAt,endAt:l.endAt,pid:l.pid,sync:l.sync,resource:e.resource.path,costs:i(l,r)})})}),t}function h(e){let t=d(e);return e.map(e=>{let{loaders:r,resource:l}=e;return{path:l.path,layer:l.layer,loaders:r.map(e=>({key:e.path,loader:g(e.loader),path:e.path,errors:e.errors,costs:i(e,t)}))}})}function u(e,t){let r=t.find(t=>t.resource.path===e);if(!r)throw Error(`"${e}" not match any loader data`);let l=d(t);return{...r,loaders:r.loaders.map(e=>{let{input:t,result:r,...s}=e;return{...s,loader:g(e.loader),costs:i(e,l)}})}}function p(e,t){let r=t.filter(t=>{let{path:r}=t.resource;return r.startsWith(e)}),l=[],s=new Map;return r.forEach(e=>{e.loaders.forEach(e=>{let t=s.get(e.loader);return t?s.set(e.loader,{files:t.files+1,path:e.path}):s.set(e.loader,{files:1,path:e.path}),l.push({loader:e.loader,startAt:e.startAt,endAt:e.endAt,pid:e.pid})})}),Array.from(s).map(e=>{let t=n(t=>t.loader===e[0],l);return{loader:e[0],files:e[1].files,path:e[1].path,costs:t}})}function x(e,t){let r,l=t||s.cwd();return(r=new Set,e.forEach(e=>{if(e.resource.path.startsWith(l)){let t=e.resource.path.split(l).slice(1).join("/").split("/");if(t.length>=2){let e=t.slice(0,2).join("/");r.add(`${l}/${e}`)}}else{let t=e.resource.path.split("/"),l=t.slice(0,t.length-1).join("/");r.add(l)}}),Array.from(r)).map(t=>{let r=p(t,e);return{directory:t,stats:r}})}function f(e,t){for(let r=0;r<t.length;r++){let l=t[r];if(l.resource.path===e){let e=l.loaders.filter(e=>!e.isPitch);if(!e.length)return"";return e[0].input||""}}return""}function m(e,t,r,l,s){for(let a=0;a<l.length;a++){let n=l[a];if(n.resource.path===e)for(let e=0;e<n.loaders.length;e++){let l=n.loaders[e];if(g(l.loader)===t&&l.loaderIndex===r&&(void 0===s||l.isPitch===s))return{input:l.input||"",output:l.result||""}}}return{input:"",output:""}}let g=e=>{let t=e.includes("node_modules")?e.split("node_modules"):null;return t?t[t.length-1]:e};r.d(t,{Ah:()=>f,Gk:()=>o,Wx:()=>i,Yf:()=>u,Ym:()=>h,bO:()=>p,eJ:()=>m,pU:()=>n,q6:()=>c,qJ:()=>x,xr:()=>a})},73555(e,t,r){var l=r(36533),s=r(43803),a=r(86704),n=r(46068),i=r(52497);async function*o(e,t){let r="",s=0,a=new Map,n=()=>{for(;s<e.length&&a.size<3;){let r=s++;a.set(r,Promise.resolve().then(()=>t(e[r])).then(e=>({status:"fulfilled",value:e}),e=>({status:"rejected",reason:e})))}};n();for(let t=0;t<e.length;t++){let e=await a.get(t);if(a.delete(t),"rejected"===e.status)throw e.reason;n();let s=r+e.value,i=s.length-s.length%4;i>0&&(yield l.Buffer.from(s.slice(0,i),"base64")),r=s.slice(i)}if(1===r.length)throw Error("Invalid Base64 shard data: truncated final quartet.");r.length>0&&(yield l.Buffer.from(r,"base64"))}function d(e){return!!(Array.isArray(e)&&e.length>0&&e.every(e=>(0,i.Km)(e)))}async function c(e,t){if(0===e.length)return[];let r=new a.I("utf8"),i=[];await new Promise((a,d)=>{let c,h;(0,s.pipeline)((c=o(e,t)[Symbol.asyncIterator](),h=!1,new s.Readable({read(){h||(h=!0,c.next().then(e=>{let{value:t,done:r}=e;h=!1,this.push(r?null:t)},e=>{h=!1,this.destroy(e)}))}})),(0,n.createInflate)(),new s.Writable({write(e,t,s){i.push(r.write(l.Buffer.from(e))),s()}}),e=>{e?d(e):a()})});let d=r.end();return d&&i.push(d),JSON.parse(i.join(""))}r.d(t,{pJ:()=>c,tg:()=>d})},16664(){let e=/[a-zA-Z0-9]+(?:[-|_|.]+[a-zA-Z0-9]+)*/;RegExp(`(?:${/(?:node_modules|~)(?:\/\.pnpm)?/.source}/)(?:(?:@${e.source}[/|+])?(?:${e.source}\\+)*(?:${e.source})(?:${/@[\w|\-|_|.]+/.source})?)(?:_(?:@${e.source}[/|+])?(?:${e.source})(?:@${e.source})?)*/`,"g")},47776(e,t,r){var l=r(16397);function s(e){return!!e.result}function a(e){return e.map(e=>({issuerPath:e.issuerPath}))}function n(e,t,r,a){let n=r.find(t=>t.path===e),i=t.filter(t=>t.issuerPath===e),o=n&&a&&a[n.id]?a[n.id].source:"",d=i.reduce((e,t)=>t.request&&s(t)?e.replace(RegExp(`["']${t.request}["']`),`"${t.result}"`):e,o);return{filepath:e,before:o,after:d,resolvers:i.map(e=>{let r,s;return{...e,costs:(r=t.filter(t=>t!==e&&t.pid===e.pid&&t.startAt>=e.startAt&&t.endAt<=e.endAt),s=e.endAt-e.startAt,r.length&&(0,l.l7)(r.map(t=>[Math.max(t.startAt,e.startAt),Math.min(t.endAt,e.endAt)])).forEach(e=>{let t=e[1]-e[0];s-=t}),s)}})}}r.d(t,{Iu:()=>s,NB:()=>a,Vj:()=>n})},83920(e,t,r){var l;function s(e){if(!Array.isArray(e)||!e[0])return{isRspack:!1,hasSourceMap:!1,isLynx:!1,isEvalSourceMap:!1};let t=e[0].config,r=t?.name==="lynx",l="rspack"===e[0].name&&!r,s=t?.devtool,a="string"==typeof s&&/eval/i.test(s),n=t?.plugins,i=n?.filter(e=>e&&e.includes("SourceMapDevToolPlugin"));return{isRspack:l,hasSourceMap:"string"==typeof s&&s.includes("source-map")&&!a||!!i?.length,isLynx:r,isEvalSourceMap:a}}(l={}).Bootstrap="bootstrap->rspack:beforeCompile",l.Compile="rspack:beforeCompile->afterCompile",l.Done="rspack:afterCompile->done",l.Minify="rspack:minify(rspack:optimizeChunkAssets)",r.d(t,{fM:()=>s})},34275(e,t,r){function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return 0===t?Math.floor(e):+e.toFixed(t)}function s(e,t){return"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=l(e/60,0),r=l(e%60,1),a=s(t,"h");return r>0?`${t}${a} ${r}${s(r,"m")}`:`${t}${a}`}let r=s(e=l(e,0),"m"),a=l(t%60,0);return a>0?`${e}${r} ${a}s`:`${e}${r}`}return`${l(t,1)}s`}if(e>=10)return`${+l(e,0)}ms`;if(e>=1)return`${+l(e,1)}ms`;let t=+l(e,2);return 0===t&&(t=+l(e,3)),`${t}ms`}r(85409),r(85409),r.d(t,{a4:()=>a,l_:()=>s,ox:()=>l})},52497(e,t,r){var l=r(13078);let{isAbsolute:s}=(r.n(l))(),a=/^(?:[a-zA-Z]:[\\/]|\\\\)/;function n(e){return/^https?:\/\//.test(e)}function i(e){var t;return!!("string"==typeof e&&(n(e)||s(t=e)||a.test(t)))}r.d(t,{Km:()=>i,gU:()=>n})},11223(e,t,r){var l=r(43029);let s=1;class a{static kind=l.hp.yV;static init(){s=1}id;request;module;kind;typeString;statements=[];_originDependency;meta={exportsType:"default-with-named"};constructor(e,t,r,l,a){this.id=s++,this.request=e,this.module=t,this._originDependency=r,this.kind=l,this.statements=a??[]}get resolvedRequest(){return this.dependency.path}get dependency(){return this.originDependency.rootModule??this.originDependency}get originDependency(){return this._originDependency}get kindString(){return l.hp.yV[this.kind]}get resolveConcatenationModule(){return this.dependency.kind===l.hp.JT.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,...void 0!==this.typeString&&{typeString:this.typeString},module:this.module.id,dependency:this.dependency.id,originDependency:this.originDependency.id,statements:this.statements.map(e=>e.toData())}}setId(e){this.id=e}}r.d(t,{O:()=>a})},87261(e,t,r){var l=r(54005);class s{static getDefaultStatement(e){let t={line:1,column:0},r={start:{...t},end:{...t}};return new s(e,{source:{...r},transformed:{...r}})}position;module;constructor(e,t){this.module=e,this.position=t}isSame(e){return this.module.id===e.module.id&&(0,l.Ut)(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(),r=e?t.source:t.transformed,l=e?this.position.source.start.line:this.position.transformed.start.line;if("number"==typeof l)return r.split("\n")[l-1]}toData(){let e={transformed:this.position.transformed};return this.position.source&&(e.source=this.position.source),{position:e,module:this.module.id}}}r.d(t,{W:()=>s})},54005(e,t,r){var l=r(62343);function s(e,t){return e.line===t.line&&e.column===t.column}function a(e,t){return!!s(e.start,t.start)&&((0,l.gD)(e.end)||(0,l.gD)(t.end)?(0,l.b0)(e.end)&&(0,l.b0)(t.end):s(e.end,t.end))}let n=/!/,i=/\s\+\s\d*\smodules$/,o=/^css\s.*node_modules(?!\/)/;function d(e){if(!e)return"";if(n.test(e)){let t=(0,l.HV)(e.split(n));if(t?.trim())return t}return i.test(e)?e.replace(i,""):o.test(e)?e.replace(o,""):e}r.d(t,{Ut:()=>a,ug:()=>d})},72229(e,t,r){r(71638),r(8963).hp},98147(e,t,r){r(57896)},43029(e,t,r){r.d(t,{Kj:()=>C,YM:()=>o,_8:()=>a,jO:()=>S,hp:()=>i});var l,s,a={};r.r(a),r.d(a,{V:()=>u,z:()=>h});var n={};r.r(n),r.d(n,{n:()=>w,k:()=>k});var i={};r.r(i),r.d(i,{yV:()=>v,JT:()=>A,uT:()=>n,w5:()=>b});var o={};r.r(o),r.d(o,{lk:()=>T,AU:()=>N,Fe:()=>z,q$:()=>D,Wm:()=>M,Jt:()=>B,zz:()=>E,Fv:()=>F,tQ:()=>P});var d,c,h=((d={}).Overall="Overall",d.Loaders="Compile.Loaders",d.ModuleResolve="Compile.ModuleResolve",d.Plugins="Compile.Plugins",d.BundleSize="Bundle.BundleSize",d.ModuleGraph="Bundle.ModuleGraph",d.TreeShaking="Bundle.TreeShaking",d),u=((c={}).WindowPropertyForManifestUrl="__DEVTOOLS_MANIFEST_URL__",c);(p={})[p.Ignore=0]="Ignore",p[p.Warn=1]="Warn",p[p.Error=2]="Error",(x={})[x.Silent=0]="Silent",x[x.Error=1]="Error",x[x.Warning=2]="Warning",x[x.Info=3]="Info",x[x.Debug=4]="Debug",x[x.Verbose=5]="Verbose";var p,x,f,m,g,j,y,v=((f={})[f.Unknown=0]="Unknown",f[f.ImportStatement=1]="ImportStatement",f[f.DynamicImport=2]="DynamicImport",f[f.RequireCall=3]="RequireCall",f[f.AMDRequire=4]="AMDRequire",f),A=((m={})[m.Normal=0]="Normal",m[m.Concatenation=1]="Concatenation",m),b=((g={})[g.NoCode=0]="NoCode",g[g.Normal=1]="Normal",g[g.NoSource=2]="NoSource",g[g.NoSourceAndAssets=3]="NoSourceAndAssets",g[g.All=4]="All",g),w=((j={}).ApplyErrorFix="/api/apply/error/fix",j.Env="/api/env",j.EntryHtml="/index.html",j.Manifest="/api/manifest.json",j.LoadDataByKey="/api/data/key",j.SendAPIDataToClient="/api/socket/send",j.GetProjectInfo="/api/project/info",j.GetClientRoutes="/api/routes",j.ReportLoader="/api/loader/report",j.GetLoaderNames="/api/loader/names",j.GetLoaderChartData="/api/loader/chart/data",j.GetLoaderFileTree="/api/loader/filetree",j.GetLoaderFileDetails="/api/loader/file",j.GetLoaderFolderStatistics="/api/loader/folder/statics",j.GetLoaderFileFirstInput="/api/loader/input",j.GetLoaderFileInputAndOutput="/api/loader/inputandoutput",j.GetDirectoriesLoaders="/api/loader/directories",j.ReportSourceMap="/api/sourcemap/report",j.GetResolverFileTree="/api/resolver/filetree",j.GetResolverFileDetails="/api/resolver/file",j.GetPluginSummary="/api/plugins/summary",j.GetPluginData="/api/plugins/data",j.GetSummaryBundles="/api/graph/bundles/summary",j.GetChunkGraph="/api/graph/chunks/graph",j.GetAssetsSummary="/api/graph/assets/summary",j.GetAssetDetails="/api/graph/asset/details",j.GetChunksByModuleId="/api/graph/chunk/module",j.GetModuleDetails="/api/graph/module/details",j.GetModulesByModuleIds="/api/graph/modules/ids",j.GetEntryPoints="/api/graph/entrypoints",j.GetModuleCodeByModuleId="/api/graph/module/code",j.GetModuleCodeByModuleIds="/api/graph/module/codes",j.GetAllModuleGraph="/api/graph/module/all",j.GetAllChunkGraph="/api/graph/chunk/all",j.GetLayers="/api/graph/layers",j.GetSearchModules="/api/search/modules",j.GetSearchModuleInChunk="/api/search/chunk/modules",j.GetAllModuleGraphFilter="/api/graph/module/filter",j.GetModuleByName="/api/graph/module/name",j.GetModuleIssuerPath="/api/graph/module/issuer_path",j.GetPackageInfo="/api/package/info",j.GetPackageDependency="/api/package/dependency",j.GetPackageRelationAlertDetails="/api/alerts/details/package/relation",j.GetOverlayAlerts="/api/alerts/overlay",j.GetBundleAlerts="/api/alerts/bundle",j.BundleDiffManifest="/api/bundle_diff/manifest.json",j.GetBundleDiffSummary="/api/bundle_diff/summary",j.GetChunkGraphAI="/api/graph/chunks/graph/ai",j.GetChunkByIdAI="/api/graph/chunk/id/ai",j),k=((y={}).GetCompileProgress="/api/progress",y);(l={})[l.ImportDefault=100]="ImportDefault",l[l.ImportNamed=101]="ImportNamed",l[l.ImportDefaultWithNamed=102]="ImportDefaultWithNamed",l[l.ImportDefaultWithNamespace=103]="ImportDefaultWithNamespace",l[l.ImportNamespace=104]="ImportNamespace",l[l.ImportSideEffect=105]="ImportSideEffect",l[l.ImportDynamic=106]="ImportDynamic",l[l.ExportDeclaration=200]="ExportDeclaration",l[l.ExportList=201]="ExportList",l[l.ExportDefault=202]="ExportDefault",l[l.ExportAggregating=203]="ExportAggregating",l[l.ExportNamespace=204]="ExportNamespace",l[l.RequireCall=300]="RequireCall",l[l.RequireName=301]="RequireName",l[l.RequireExports=302]="RequireExports",l[l.RequireExportAggregating=303]="RequireExportAggregating",l[l.RequireExportName=304]="RequireExportName",l[l.Unknown=999]="Unknown",(s={}).brief="brief",s.lite="lite",s.normal="normal";var S=r(57942),C=r(11339);let M=[".js",".bundle"],T=".css",z=".html",D=[".png",".jpg",".svg",".webp",".jpeg",".gif",".bmp"],E=[".mp3",".mp4",".avi",".wav",".flv",".mov",".mpg",".mpeg"],N=[".ttf",".fnt",".fon",".otf",".woff",".woff2"],B=[".js.map",".css.map",".ts.map",".LICENSE.txt"],F="",P="__RSDOCTOR__"},61982(e,t,r){let l="E1001",s={code:l,title:"Duplicate Packages",type:"markdown",category:"bundle",description:`
|
|
6
|
+
#### Description
|
|
7
|
+
|
|
8
|
+
There is a same name package which is bundled in multiple versions in your application.
|
|
9
|
+
|
|
10
|
+
This negatively impacts the bundle size of your application.
|
|
11
|
+
|
|
12
|
+
#### General Solution
|
|
13
|
+
|
|
14
|
+
Add an entry in \`resolve.alias\` to configure Rspack to route any package references to a single specified path.
|
|
15
|
+
|
|
16
|
+
For example, if \`lodash\` is duplicated in your bundle, the following configuration would make all Lodash imports refer to the \`lodash\` instance found at \`./node_modules/lodash\`:
|
|
17
|
+
|
|
18
|
+
\`\`\`js
|
|
19
|
+
{
|
|
20
|
+
alias: {
|
|
21
|
+
lodash: path.resolve(__dirname, 'node_modules/lodash')
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
\`\`\`
|
|
25
|
+
`};r.d(t,{a:()=>l,i:()=>s})},65467(e,t,r){let l="E1002",s={code:l,title:"Cross Chunks Packages",type:"markdown",category:"bundle",description:`
|
|
26
|
+
#### Description
|
|
27
|
+
|
|
28
|
+
There is a package with the same version that is duplicated across different chunks in your application. This redundancy increases the overall bundle size, which is not optimal for performance.
|
|
29
|
+
|
|
30
|
+
#### General Solution
|
|
31
|
+
|
|
32
|
+
To address this issue, you can use Rspack's **SplitChunksPlugin** to extract common dependencies into a separate chunk. This ensures that the same package is not duplicated across multiple chunks, thereby reducing the bundle size.
|
|
33
|
+
|
|
34
|
+
For example, if **lodash** is being duplicated across different chunks, you can configure the **optimization.splitChunks** option in your Rspack configuration to extract **lodash** into a separate chunk:
|
|
35
|
+
|
|
36
|
+
\`\`\`
|
|
37
|
+
module.exports = {
|
|
38
|
+
optimization: {
|
|
39
|
+
splitChunks: {
|
|
40
|
+
cacheGroups: {
|
|
41
|
+
commons: {
|
|
42
|
+
test: /[\\/]node_modules[\\/]lodash[\\/]/,
|
|
43
|
+
name: 'lodash',
|
|
44
|
+
chunks: 'all',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
\`\`\`
|
|
51
|
+
|
|
52
|
+
This configuration will automatically split out common dependencies (including those from \`node_modules\`) into separate chunks, ensuring that no package is duplicated across different chunks.
|
|
53
|
+
`};r.d(t,{a:()=>l,i:()=>s})},17524(e,t,r){let l="E1003",s={code:l,title:"Loader Performance Optimization",type:"markdown",category:"compile",description:`
|
|
54
|
+
#### Description
|
|
55
|
+
|
|
56
|
+
Usually the slow compile of most projects is due to the slow execution of the loaders.
|
|
57
|
+
|
|
58
|
+
And the loaders always pre-process many unnecessary files, such as \`node_modules files\` and \`already compiled files\`.
|
|
59
|
+
|
|
60
|
+
#### General Solution
|
|
61
|
+
|
|
62
|
+
Set \`exclude\` to the \`module.rules\` of Rspack configuration for target loader.
|
|
63
|
+
|
|
64
|
+
For example, if \`node_modules/lodash\` is processed by the \`babel-loader\` that make the compile slowly:
|
|
65
|
+
|
|
66
|
+
\`\`\`
|
|
67
|
+
{
|
|
68
|
+
module: {
|
|
69
|
+
rules: [
|
|
70
|
+
{
|
|
71
|
+
test: /\\.js$/,
|
|
72
|
+
use: 'babel-loader',
|
|
73
|
+
exclude: [
|
|
74
|
+
/node_modules\\/lodash/
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
\`\`\`
|
|
81
|
+
`};r.d(t,{a:()=>l,i:()=>s})},45121(e,t,r){let l="E1004",s={code:l,title:"ECMA Version Check",type:"markdown",category:"bundle",description:`
|
|
82
|
+
#### Description
|
|
83
|
+
|
|
84
|
+
Detect if there is a newer version of ECMA syntax in the js bundle file
|
|
85
|
+
`};r.d(t,{a:()=>l,i:()=>s})},37842(e,t,r){let l="E1005",s={code:l,title:"Default Import Check",type:"markdown",category:"compile",description:`
|
|
86
|
+
#### Description
|
|
87
|
+
|
|
88
|
+
Usually the bundler will automatically compatible different modules that has different types, but in a special case, the operation of compatibility will fail.
|
|
89
|
+
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 = \`.
|
|
90
|
+
|
|
91
|
+
#### General Solution
|
|
92
|
+
|
|
93
|
+
1. for cjs module, write a \`exports.default = \` statement for default export.
|
|
94
|
+
2. use \`Namespace Import\` for import the cjs module.
|
|
95
|
+
|
|
96
|
+
For example, for the package \`htmlparser2@7.2.0\`:
|
|
97
|
+
|
|
98
|
+
\`\`\`ts
|
|
99
|
+
// you should use this
|
|
100
|
+
import * as Parser from 'htmlparser2';
|
|
101
|
+
|
|
102
|
+
// can not use this
|
|
103
|
+
import Parser from 'htmlparser2';
|
|
104
|
+
\`\`\`
|
|
105
|
+
`};r.d(t,{a:()=>l,i:()=>s})},44639(e,t,r){let l="E1006",s={code:l,title:"Module Mixed Chunks",type:"markdown",category:"bundle",description:"\n#### Description\n\nWhen a module is included in both **initial chunks** and **async chunks**, the same module code is bundled into multiple chunks, increasing output size and potentially affecting first-screen load and cache efficiency.\n\n- **Initial chunks**: Chunks loaded with the main entry (e.g. entry points, synchronous `import` in the main bundle).\n- **Async chunks**: Chunks loaded on demand via dynamic `import()` or similar.\n\nIn the **Module Mixed Chunks** tab of Bundle Alerts, each entry shows the module path, **Initial Chunks** list, and **Async Chunks** list so you can locate duplicated modules.\n\n#### Common Causes\n\n- **Same module referenced in two ways**: The module is both synchronously imported in the main bundle or entry and dynamically `import()`ed elsewhere, so the bundler emits it in both initial and async chunks.\n- **A file is both an entry and an async chunk**: e.g. a utility module is configured as an entry and also `import()`ed in app code, so it appears in the entry's initial chunk and in a dynamically loaded async chunk.\n- **splitChunks overlapping with entry**: A path is split into an async chunk via `splitChunks`, but that path is also an entry or a main-bundle dependency, leading to mixed chunk types.\n\n#### General Solution\n\n1. **Use a single import style**: Prefer one way to reference a module—either all synchronous imports (initial) or all dynamic `import()` (async). Avoid the same file being both synchronously imported in the main bundle and dynamically imported elsewhere.\n2. **Review entry vs dynamic loading**: If a file is both an entry and part of an async chunk, remove one of those usages or extract it into a single shared chunk via build config so both initial and async chunks reference it instead of duplicating it.\n3. **Adjust splitChunks**: Check rules for that module path in `optimization.splitChunks` (Rspack) or `splitChunks` (Rsbuild), and avoid the same module being split into both initial and async chunks. Use `chunks: 'async'` or `chunks: 'initial'` where appropriate, or control which chunk type it goes into via `cacheGroups` and `test` / `chunks`.\n4. **Trace dependencies**: From the reported module path and chunk list, search the codebase for references to that module, distinguish sync vs dynamic imports, then converge to a single chunk type or extract a common chunk.\n"};r.d(t,{a:()=>l,i:()=>s})},10024(e,t,r){let l="E1007",s={code:l,title:"Tree Shaking Side Effects Only",type:"markdown",category:"bundle",description:"\n#### Description\n\nThis rule detects modules that are pulled in and bundled solely due to side effects. This is often caused by unintended tree-shaking failures (e.g. missing or incorrect `\"sideEffects\"` field in `package.json`, or non-tree-shakeable import patterns), resulting in the entire module being bundled even though none of its exports are used.\n\n#### Common Causes\n\n- The package's `package.json` is missing `\"sideEffects\": false` (or incorrectly set to `true`), preventing the bundler from pruning unused exports.\n- An import statement like `import 'some-module'` or `import './styles.css'` is being treated as a side-effect-only import, but the intended use was to consume exports.\n- Barrel files (index files that re-export many things) cause the whole module to be kept alive when only a side-effect import is present.\n\n#### General Solution\n\n1. **Audit import statements**: Make sure you are actually importing and using named exports from this module. Replace bare side-effect imports with explicit named imports when you intend to use the module's exports.\n2. **Set `\"sideEffects\"` correctly**: In the module's `package.json`, set `\"sideEffects\": false` if the module has no global side effects, so the bundler can safely tree-shake unused exports.\n3. **Avoid unintended side-effect imports**: Remove or convert `import 'module'` patterns to explicit `import { foo } from 'module'` patterns where the exports are needed.\n"};r.d(t,{a:()=>l,i:()=>s})},89205(e,t,r){let l="E1008",s={code:l,title:"CJS Require Cannot Tree-Shake",type:"markdown",category:"bundle",description:"\n#### Description\n\nThis rule detects `require()` calls that use the **CJS Require** dependency type, which prevents tree-shaking of the required module. Unlike `require('module').property` (CJS Full Require), a bare `require('module')` call forces the entire module to be bundled because the bundler cannot statically determine which exports are used.\n\n#### Common Causes\n\n- Using `const mod = require('some-module')` instead of destructuring at the require site.\n- Dynamically accessing properties of the required module at runtime rather than statically.\n\n#### General Solution\n\n1. **Use destructured require**: Replace `const mod = require('A')` with `const { foo } = require('A')` (CJS Full Require) so the bundler can track which exports are used.\n2. **Migrate to ESM**: Use `import { foo } from 'A'` to enable full tree-shaking support.\n3. **Use require with property access**: Replace `const mod = require('A'); mod.foo()` with `const foo = require('A').foo` to allow partial tree-shaking.\n"};r.d(t,{a:()=>l,i:()=>s})},77366(e,t,r){let l="E1009",s={code:l,title:"ESM Import Resolved to CJS",type:"markdown",category:"bundle",description:'\n#### Description\n\nThis rule detects cases where a package provides both **ESM** and **CJS** formats (via the `module` field or `exports["."]["import"]` in `package.json`), but the bundler resolved the ESM `import` statement to the **CJS** entry instead.\n\nThis prevents tree-shaking of the package, leading to larger bundle sizes than necessary.\n\n#### Common Causes\n\n- The bundler\'s `resolve.mainFields` does not include `module`, so it falls back to `main` (CJS).\n- The `resolve.conditionNames` does not include `import`, so `exports` conditions are resolved as `require`.\n- The package uses `exports` field but the bundler version does not support conditional exports.\n\n#### General Solution\n\n1. **Add `module` to `resolve.mainFields`**: Ensure your bundler config includes `"module"` before `"main"`.\n2. **Add `import` to `resolve.conditionNames`**: For packages using the `exports` field, ensure the `import` condition is listed.\n3. **Check bundler version**: Older Rspack versions may not support `exports` conditional resolution. Upgrade if necessary.\n'};r.d(t,{a:()=>l,i:()=>s})},13259(e,t,r){var l,s,a=((l={}).Extend="EXTEND",l.Overlay="OVERLAY",l),n=((s={}).Compile="compile",s.Bundle="bundle",s.EMO="emo",s);r.d(t,{j:()=>a,y:()=>n})},50902(){},3710(){}}]);
|