@rsdoctor/client 2.0.0-alpha.0 → 2.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/diff.html +1 -1
- package/dist/index.html +1 -1
- package/dist/resource/css/907.6e95b0049a.css +1 -0
- package/dist/resource/js/533.e56eaf911f.js +1 -0
- package/dist/resource/js/540.6a0046eda5.js +399 -0
- package/dist/resource/js/760.028ee920da.js +1 -0
- package/dist/resource/js/907.7091b9e220.js +112 -0
- package/dist/resource/js/ant-design-0.4653249cbc.js +81 -0
- package/dist/resource/js/ant-design-1.1695063c62.js +305 -0
- package/dist/resource/js/ant-design-icons.7b432ca17d.js +57 -0
- package/dist/resource/js/diff.41096a3b71.js +57 -0
- package/dist/resource/js/index.3de7da7cae.js +91 -0
- package/dist/resource/js/rc.806d75fd9c.js +1 -0
- package/dist/resource/js/react.a45650f262.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +34 -12
- package/dist/config/constants.d.cts +0 -7
- package/dist/config/constants.d.ts +0 -7
- package/dist/resource/css/523.63628dfed2.css +0 -1
- package/dist/resource/js/494.345d38694e.js +0 -1
- package/dist/resource/js/508.72f1420008.js +0 -399
- package/dist/resource/js/523.16512be1dd.js +0 -112
- package/dist/resource/js/654.b07b8694e7.js +0 -2
- package/dist/resource/js/ant-design-0.d899709d82.js +0 -124
- package/dist/resource/js/ant-design-1.6a36dac960.js +0 -262
- package/dist/resource/js/ant-design-2.afa6fe81d0.js +0 -133
- package/dist/resource/js/ant-design-3.0f9f01b96d.js +0 -128
- package/dist/resource/js/ant-design-4.daa0320cc8.js +0 -190
- package/dist/resource/js/ant-design-icons.f0e8a5e979.js +0 -57
- package/dist/resource/js/diff.d73db911d5.js +0 -57
- package/dist/resource/js/index.bc1ffed759.js +0 -91
- package/dist/resource/js/rc-0.4870b78668.js +0 -1
- package/dist/resource/js/rc-1.b43035e064.js +0 -1
- package/dist/resource/js/react.cb9d29a506.js +0 -1
- package/dist/src/App.d.cts +0 -3
- package/dist/src/App.d.ts +0 -3
- package/dist/src/DiffApp.d.cts +0 -3
- package/dist/src/DiffApp.d.ts +0 -3
- package/dist/src/DiffRouter.d.cts +0 -2
- package/dist/src/DiffRouter.d.ts +0 -2
- package/dist/src/components/BaseApp.d.cts +0 -8
- package/dist/src/components/BaseApp.d.ts +0 -8
- package/dist/src/diff.d.cts +0 -2
- package/dist/src/diff.d.ts +0 -2
- package/dist/src/index.d.cts +0 -2
- package/dist/src/index.d.ts +0 -2
- package/dist/src/router.d.cts +0 -2
- package/dist/src/router.d.ts +0 -2
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
(()=>{"use strict";var e,t,r,s,n,l,i={38163(e,t,r){var s=r(64558);r(1102),t.A=e=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,s.jsx)("rect",{width:16,height:16,fill:"#FFF7E6",rx:2}),(0,s.jsx)("g",{clipPath:"url(#total-size_svg__a)",children:(0,s.jsx)("path",{fill:"#F2793D",d:"m2.5 5.77 5.026 2.534V13.5L2.5 11.011zm11-.016v5.23l-1.775.881-1.508.747-1.685.854V8.254zM8 2.5l4.902 2.472L7.999 7.45 3.04 4.961z"})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"total-size_svg__a",children:(0,s.jsx)("path",{fill:"#fff",d:"M2 2h12v12H2z"})})})]})},49249(e,t,r){r.d(t,{mn:()=>h,EJ:()=>E});var s=r(64558),n=r(1102),l=r(87826),i=r(36033),a=r(1312),o=r(41611);r(15061);var d=r(9926),c=r(44953);let h=(0,o.eN)({api:l.hp.uT.n.GetProjectInfo,responsePropName:"project",Component:e=>{let{filter:t,project:r}=e,{errors:l,root:o}=r,{setBundleAlertsViewMode:h,viewMode:u,setViewMode:p}=(0,i.an)(),{t:f}=(0,i.s9)(),m=t?l.filter(t):l;return(0,n.useEffect)(()=>{(0,i.it)()||p({bundleAlerts:l.length>=5?"group":"list"},!1)},[]),(0,s.jsx)(c.Ay,{theme:{components:{Alert:{colorInfoBg:"var(--color-accent-subtle)",colorInfoBorder:"transparent"}},token:{padding:16}},children:(0,s.jsx)(a.J,{title:f("Bundle Alerts"),dataSource:m,extraData:{cwd:o,getPackageRelationContentComponent:e=>(0,s.jsx)(d.rU,{body:{id:e.data.id,target:e.package.target},cwd:o})},viewMode:u.bundleAlerts,setViewMode:h,cwd:o})})}});r(594);var u=r(66482),p=r(80844),f=r(53919),m=r(63598),x=r(55552),j=r(54594),g=r(41648),y=r(36344),A=r(24761),v=r(23085),b=r(50143),S=r(20295),z=r(77877),w=r(87932),k=r.n(w),C=r(75532);function N(e){let t=0,r=0;e.forEach(e=>{"warn"===e.level?t++:r++});let n=0!==t&&0!==r?"problems":0===t?"errors":"warns";return{title:`${e.length} compiled ${n}`,detail:(0,s.jsxs)(u.A.Text,{strong:!0,style:{color:"#fff",marginBottom:0},children:[(0,s.jsx)(u.A.Text,{style:{color:"inherit",fontSize:16},children:"Compiled with"}),(0,s.jsxs)(u.A.Text,{strong:!0,style:{color:"#e17055",fontSize:16},children:[" ",r," ",1===r?"error":"errors"," "]}),(0,s.jsx)(u.A.Text,{style:{color:"inherit",fontSize:16},children:"and"}),(0,s.jsxs)(u.A.Text,{strong:!0,style:{color:"#faad14",fontSize:16},children:[" ",t," ",1===t?"warning":"warnings"]})]}),warns:t,errors:r}}r(86213);let T=e=>{let{alerts:t=[],open:r,onClose:l}=e;return t.length?(0,s.jsxs)(z.A,{visible:r,onClose:()=>l(),style:{width:"100%",height:"100%",margin:0,zIndex:1e3},closable:!1,modalRender:e=>n.cloneElement(e,{style:{background:"rgba(0, 0, 0, 0.7)",color:"#fff",height:"100%",overflow:"scroll",borderRadius:0}}),children:[(0,s.jsxs)(p.A,{justify:"space-between",align:"middle",children:[N(t).detail,(0,s.jsx)(f.Ay,{onClick:()=>l(),type:"text",style:{color:"#fff"},size:"large",icon:(0,s.jsx)(A.A,{})})]}),(0,s.jsx)(p.A,{gutter:[0,20],children:t.map(e=>(0,s.jsx)(m.A,{span:24,style:{whiteSpace:"pre-wrap",lineHeight:"16px",fontSize:14},children:(0,s.jsx)(x.A,{ghost:!0,style:{background:"#000"},defaultActiveKey:[e.id],expandIcon:e=>e.isActive?(0,s.jsx)(v.A,{style:{color:"#fff"}}):(0,s.jsx)(b.A,{style:{color:"#fff"}}),children:(0,s.jsx)(x.A.Panel,{header:(0,s.jsxs)("div",{style:{color:"#fff"},children:["warn"===e.level?(0,s.jsx)(j.A,{color:"#faad14",children:"WARNING"}):(0,s.jsx)(j.A,{color:"#e17055",children:"ERROR"}),(0,s.jsx)(k(),{children:e.description||e.title})]}),children:(0,s.jsx)("div",{style:{color:"#fff"},children:(0,s.jsx)(k(),{children:e.stack})})},e.id)})},e.id))})]}):null},E=(0,o.eN)({api:l.hp.uT.n.GetOverlayAlerts,Component:e=>{let{alerts:t=[]}=e;if(!t.length)return null;let[r,l]=(0,n.useState)(!1);return(0,s.jsxs)("div",{className:C.A.container,children:[(0,s.jsx)("div",{onClick:()=>l(!r),className:C.A.badgeContainer,children:(0,s.jsx)(y.A,{count:t.length,size:"small",children:(0,s.jsx)(S.A,{style:{fontSize:15}})})}),(0,s.jsx)(T,{alerts:t,open:r,onClose:()=>l(!1)})]})},responsePropName:"alerts",fallbackComponent:()=>null});(0,o.eN)({api:l.hp.uT.n.GetOverlayAlerts,Component:e=>{let{alerts:t=[],defaultOpen:r=t.length>0}=e;if(!t.length)return null;let[l,i]=(0,n.useState)(r);return(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(g.A,{banner:!0,message:n.cloneElement(N(t).detail,{style:{color:"#000"}}),icon:(0,s.jsx)(S.A,{}),action:(0,s.jsx)(f.Ay,{onClick:()=>i(!0),size:"small",children:"More"})}),(0,s.jsx)(T,{alerts:t,open:l,onClose:()=>i(!1)})]})},responsePropName:"alerts",fallbackComponent:()=>null})},66592(e,t,r){var s,n=((s={})[s.Bootstrap=0]="Bootstrap",s[s.Compile=1]="Compile",s[s.Done=2]="Done",s[s.Minify=3]="Minify",s[s.Loader=4]="Loader",s[s.Normal=5]="Normal",s);r.d(t,{wx:()=>n},{GB:["#bda29a","#6F3FE1","#3966ed","#0a5f74","#3EBD7C","#F7A925","#ca8622","#749f83","#6e7074"],LS:["#5B8FF9","#43C6D9","#A78BFA","#F2B84B","#F27D62","#5CCB8A","#7C9CF5","#D879B9"]})},9754(e,t,r){function s(e,t){let r="stat"===t?e.sourceSize??0:"parsed"===t?e.bundledSize??0:"gzip"===t?e.gzipSize??0:e.value??0;return r>0||!e.children?.length?r:e.children.reduce((e,r)=>e+s(r,t),0)}function n(e,t){return e.reduce((e,r)=>e+s(r,t),0)}r.d(t,{M:()=>s,z:()=>n})},55096(e,t,r){var s=r(3534),n=r(79595),l=r.n(n),i=r(67782),a=r(36033);r(11908);var o=r(1102);function d(e){return`
|
|
2
|
+
<div class="loader-tooltip-container">
|
|
3
|
+
<div class="loader-tooltip-title">${e.loader}</div>
|
|
4
|
+
<li class="loader-tooltip-item">
|
|
5
|
+
<span>isPitch</span>
|
|
6
|
+
<span>${e.isPitch}</span>
|
|
7
|
+
</li>
|
|
8
|
+
${e.layer&&"undefined"!==e.layer?`<li class="loader-tooltip-item">
|
|
9
|
+
<span>layer</span>
|
|
10
|
+
<span>${e.layer}</span>
|
|
11
|
+
</li>`:""}
|
|
12
|
+
<li class="loader-tooltip-item">
|
|
13
|
+
<span>duration</span>
|
|
14
|
+
<span class="loader-tooltip-text-bold">${(0,a.a4)(e.costs)}</span>
|
|
15
|
+
</li>
|
|
16
|
+
<li class="loader-tooltip-item">
|
|
17
|
+
<span>filepath</span>
|
|
18
|
+
<span>${e.resource}</span>
|
|
19
|
+
</li>
|
|
20
|
+
<li class="loader-tooltip-item">
|
|
21
|
+
<span>start</span>
|
|
22
|
+
<span class="loader-tooltip-text-bold">${l()(e.startAt).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
23
|
+
</li>
|
|
24
|
+
<li class="loader-tooltip-item">
|
|
25
|
+
<span>end</span>
|
|
26
|
+
<span class="loader-tooltip-text-bold">${l()(e.endAt).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
27
|
+
</li>
|
|
28
|
+
</div>
|
|
29
|
+
`.trim()}function c(e,t,r){let n=t=>t.loader===e,o=t.filter(n),d=o.map(e=>e.resource),c=d.filter(e=>e.includes("/node_modules/")),h=d.filter(e=>!e.startsWith(r)),u=(0,i.wq)(o,e=>e.startAt).startAt,p=(0,i.Sk)(o,e=>e.endAt).endAt,f=s.aH.pU(n,t);return`
|
|
30
|
+
<div class="loader-tooltip-container">
|
|
31
|
+
<div class="loader-tooltip-title">${e}</div>
|
|
32
|
+
<li class="loader-tooltip-item">
|
|
33
|
+
<span>files</span>
|
|
34
|
+
<span class="loader-tooltip-text-bold">${d.length}</span>
|
|
35
|
+
</li>
|
|
36
|
+
<li class="loader-tooltip-item">
|
|
37
|
+
<span>files(node_modules)</span>
|
|
38
|
+
<span class="loader-tooltip-text-bold">${c.length}</span>
|
|
39
|
+
</li>
|
|
40
|
+
<li class="loader-tooltip-item">
|
|
41
|
+
<span>files(outside the cwd)</span>
|
|
42
|
+
<span class="loader-tooltip-text-bold">${h.length}</span>
|
|
43
|
+
</li>
|
|
44
|
+
<li class="loader-tooltip-item">
|
|
45
|
+
<span>duration(estimated)</span>
|
|
46
|
+
<span class="loader-tooltip-text-bold">${(0,a.a4)(f)}</span>
|
|
47
|
+
</li>
|
|
48
|
+
<li class="loader-tooltip-item">
|
|
49
|
+
<span>start(min)</span>
|
|
50
|
+
<span>${l()(u).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
51
|
+
</li>
|
|
52
|
+
<li class="loader-tooltip-item">
|
|
53
|
+
<span>end(max)</span>
|
|
54
|
+
<span>${l()(p).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
55
|
+
</li>
|
|
56
|
+
</div>
|
|
57
|
+
`.trim()}function h(e){return function e(t){return t.reduce((t,r)=>{if(r.c){let s=e(r.c);t.push({name:r.n,ph:"B",pid:r.p,ts:r.s,args:r},...s,{name:r.n,ph:"E",pid:r.p,ts:r.e,args:r})}else t.push({name:r.n,ph:"B",pid:r.p,ts:r.s,args:r}),t.push({name:r.n,ph:"E",pid:r.p,ts:r.e,args:r});return t},[])}(Object.entries(e.sort((e,t)=>e.s-t.s).reduce((e,t)=>{let r=e[t.p];return r?function(e,t){let r=[e];for(;r.length>0;){let e,s=r.shift()||[];if(0===s.length)return;let n=s[s.length-1];if(n.e<=t.s)return s.push(t);for(let t=s.length-1;t>=0;t--){let{c:r}=s[t];r&&(e=r)}e?r.push(e):n.c=[t]}}(r,t):e[t.p]=[t],e},{})).reduce((e,t)=>{let[r,s]=t;return e.push(...s),e},[]))}function u(e){let{ext:t}=e.data;return`
|
|
58
|
+
<div class="loader-tooltip-container">
|
|
59
|
+
<div class="loader-tooltip-title">[${t.args.p}] ${t.args.n}</div>
|
|
60
|
+
<li class="loader-tooltip-item">
|
|
61
|
+
<span>hook</span>
|
|
62
|
+
<span>${t.args.p}</span>
|
|
63
|
+
</li>
|
|
64
|
+
<li class="loader-tooltip-item">
|
|
65
|
+
<span>tap name</span>
|
|
66
|
+
<span>${t.args.n}</span>
|
|
67
|
+
</li>
|
|
68
|
+
<li class="loader-tooltip-item">
|
|
69
|
+
<span>start</span>
|
|
70
|
+
<span>${l()(t.args.s).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
71
|
+
</li>
|
|
72
|
+
<li class="loader-tooltip-item">
|
|
73
|
+
<span>end</span>
|
|
74
|
+
<span>${l()(t.args.e).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
75
|
+
</li>
|
|
76
|
+
<li class="loader-tooltip-item">
|
|
77
|
+
<span>duration</span>
|
|
78
|
+
<span>${(0,a.a4)(t.args.e-t.args.s)}</span>
|
|
79
|
+
</li>
|
|
80
|
+
</div>
|
|
81
|
+
`.trim()}function p(e,t){let[r,s]=(0,o.useState)(e);return(0,o.useEffect)(()=>{let r=setTimeout(()=>s(e),t);return()=>clearTimeout(r)},[e,t]),r}r.d(t,{Bq:()=>d,QR:()=>h,Wy:()=>p,iv:()=>c,kr:()=>u})},46977(e,t,r){var s=r(64558);r(1102);var n=r(66482),l=r(50037),i=r(50815);let a=e=>{let{text:t,els:r,marked:a=!1,rest:o}=e;if(!t)return null;let d=t.length;if(d>40){let e=Math.floor(18.5),r=Math.ceil(18.5);return(0,s.jsx)(l.A,{content:t,placement:"left",children:(0,s.jsx)("div",{children:(0,s.jsxs)(n.A.Text,{className:i.A.text,mark:!!a,...o,children:[t.slice(0,e),"...",t.slice(d-r)]})})})}return(0,s.jsx)(l.A,{content:t,children:(0,s.jsx)("div",{children:(0,s.jsx)(n.A.Text,{className:i.A.text,...o,children:t},r?r.length:0)})})};r.d(t,{},{i:e=>{let{text:t,keyword:r,...l}=e;if(!r||-1===t.indexOf(r))return a({text:t,rest:l});let o=[],d=t;for(;d.length>0;){let e=d.indexOf(r);if(e>-1)0!==e&&o.push(a({text:d,els:o})),o.push(a({text:d,els:o,marked:!0})),d=d.slice(e+r.length);else{o.push(a({text:d,els:o,marked:!0}));break}}return(0,s.jsx)(n.A.Text,{className:i.A.text,...l,children:o})}})},76274(e,t,r){var s=r(1102);let n=(0,s.createContext)({project:null});function l(){return(0,s.useContext)(n)}r.d(t,{L:()=>l},{h:n})},91307(e,t,r){var s=r(64558),n=r(304),l=r(1102),i=r(36033),a=r(15061),o=r(82982);function d(e,t,r){let d=e();return function(){let[c,h]=(0,l.useState)(),[u,p]=(0,l.useState)(a.jK.Pending),[f,m]=(0,l.useState)({}),{loader:x}=(0,i.VX)(c);function j(e){return e.then(e=>{h(e)}).catch(()=>{p(a.jK.Fail)})}function g(e){e&&Promise.all(t.map(t=>{let[r]=t;return e.loadData(r)})).then(e=>{m(e.reduce((e,r,s)=>{let[n,l]=t[s];return e[l]=r,e},{})),p(a.jK.Success)}).catch(e=>{console.error(e),p(a.jK.Fail)})}return((0,l.useEffect)(()=>{j(d).then(()=>{g(x)})},[x]),u===a.jK.Pending)?(0,s.jsx)(n.A,{active:!0}):u===a.jK.Fail?(0,s.jsx)(o.c,{retry:()=>{p(a.jK.Pending),d.then(()=>{g(x)}).catch(()=>{j(e())})}}):(0,s.jsx)(r,{...f})}}r.d(t,{u:()=>d})},88557(e,t,r){r.d(t,{A:()=>n,h:()=>l});var s=r(64558);let n=e=>{let{title:t,description:r,icon:n,style:l}=e;return(0,s.jsxs)("div",{className:"container-KSV5DZ",style:l,children:[(0,s.jsxs)("div",{className:"content-BsjkSU",children:[(0,s.jsx)("div",{className:"title-jUwqD5",children:t}),(0,s.jsx)("div",{className:"description-ArkOg4",children:r})]}),n]})};var l=n},82982(e,t,r){var s=r(40879);r.d(t,{c:()=>s.c})},81650(e,t,r){r.d(t,{Y:()=>o});var s=r(64558),n=r(35074),l=r(74374),i=r(1102),a=r(70403);function o(e){let[t,r]=(0,i.useState)(""),[o,d]=(0,i.useState)(""),[c,h]=(0,i.useState)(""),[u,p]=(0,i.useState)(!1),[f,m]=(0,i.useState)(),[x,j]=(0,i.useState)();return{showCode(e){r(e.code||""),d(e.lang||""),h(e.filePath||""),m(e.defaultLine),j(e.ranges),p(!0)},codeDrawerComponent:(0,s.jsx)(n.A,{maskClosable:!0,zIndex:999,width:"70%",destroyOnClose:!0,title:`Code of "${c}"`,open:u,onClose:()=>p(!1),children:t?(0,s.jsx)(a.Cv,{code:t,lang:o,filePath:c,defaultLine:f,ranges:x}):(0,s.jsx)(l.A,{description:e||"No Code"})})}}},70617(e,t,r){var s=r(64558);r(86508);var n=r(41648);r(1102);var l=r(23807),i=r(86060);function a(){let e=[{path:i._y.wE,element:(0,s.jsx)(i._y.YW,{})},{path:i.hK.wE,element:(0,s.jsx)(i.hK.YW,{})},{path:i.FO.wE,element:(0,s.jsx)(i.FO.YW,{})},{path:i.dn.wE,element:(0,s.jsx)(i.dn.YW,{})},{path:i.pI.wE,element:(0,s.jsx)(i.pI.YW,{})},{path:i.PR.wE,element:(0,s.jsx)(i.PR.YW,{})},{path:i.s0.wE,element:(0,s.jsx)(i.s0.BU,{})}].filter(e=>!!e);return(0,s.jsxs)(l.BV,{children:[(0,s.jsx)(l.qh,{path:"/",element:(0,s.jsx)(i.wm.YW,{})}),(0,s.jsx)(l.qh,{path:i.wm.wE,element:(0,s.jsx)(i.wm.YW,{})}),e.map(e=>(0,s.jsx)(l.qh,{path:e.path,element:e.element},e.path)),(0,s.jsx)(l.qh,{path:i.aD.wE,element:(0,s.jsx)(i.aD.YW,{})}),(0,s.jsx)(l.qh,{path:i.d9.wE,element:(0,s.jsx)(i.d9.YW,{})})]})}var o=r(71029),d=r(36033),c=r(66482),h=r(59083);r(43197);let u=document.getElementById("root");h.createRoot(u).render((0,s.jsx)(()=>{let e=(0,d.km)();return(0,s.jsx)(o.A,{router:(0,s.jsx)(a,{}),renderFailState:()=>{let e=(0,d.JI)();return e?(0,s.jsxs)(c.A.Text,{style:{fontSize:16},children:["or you can open the",(0,s.jsx)(c.A.Text,{strong:!0,style:{fontSize:"inherit"},children:(0,s.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",children:"demo"})}),"to get started with the Rsdoctor."]}):null},extraContent:e&&(0,s.jsx)(n.A,{message:"Warning",description:(0,s.jsx)("a",{href:window.location.href.replace(/https/,"http"),children:`Please jump to:${window.location.href.replace(/https/,"http")}`}),type:"warning",showIcon:!0,closable:!0})})},{}));let p=document.createElement("link");p.setAttribute("type","image/x-icon"),p.setAttribute("rel","icon"),p.setAttribute("href","https://assets.rspack.rs/rsdoctor/rsdoctor-logo-960x960.png"),document.head.appendChild(p)},2002(e,t,r){r.d(t,{},{kw:e=>new Map(e.map(e=>[e.path.replace(/\\/g,"/"),e])),yF:(e,t,r)=>e.get(t.replace(/\\/g,"/"))??r})},80606(e,t,r){let s=r(87826).Kj.EH.Overall;r.d(t,{},{U:"Overall",w:s})},86060(e,t,r){r.d(t,{aD:()=>sc,_y:()=>l,hK:()=>a,pI:()=>i,dn:()=>d,wm:()=>n,FO:()=>o,PR:()=>c,s0:()=>h,d9:()=>u});var s,n={};r.r(n),r.d(n,{YW:()=>eE,wE:()=>eT.w});var l={};r.r(l),r.d(l,{YW:()=>rO,UU:()=>rM,wE:()=>r_});var i={};r.r(i),r.d(i,{YW:()=>rW,UU:()=>rI,wE:()=>rL});var a={};r.r(a),r.d(a,{YW:()=>rZ,UU:()=>rY,wE:()=>rX});var o={};r.r(o),r.d(o,{YW:()=>r2,UU:()=>r0,wE:()=>r1});var d={};r.r(d),r.d(d,{YW:()=>se,UU:()=>r8,wE:()=>r9});var c={};r.r(c),r.d(c,{YW:()=>ss,wE:()=>sr});var h={};r.r(h),r.d(h,{BU:()=>sd,wE:()=>so});var u={};r.r(u),r.d(u,{YW:()=>sA,wE:()=>sy});var p=r(64558),f=r(1102),m=r(74537),x=r(53919),j=r(50143),g=r(44506),y=r(36033);let A=[{title:"FAQ",link:"https://rsdoctor.rs/guide/more/faq"},{title:"Introduction",link:"https://rsdoctor.rs/guide/start/intro"},{title:"Bundle Alerts",link:"https://rsdoctor.rs/guide/usage/bundle-alerts"},{title:"Bundle Overall",link:"https://rsdoctor.rs/guide/usage/bundle-overall"},{title:"Bundle Analysis",link:"https://rsdoctor.rs/guide/usage/bundle-size"},{title:"Compilation Alerts",link:"https://rsdoctor.rs/guide/usage/compile-alerts"},{title:"Compile Overall",link:"https://rsdoctor.rs/guide/usage/compile-overall"},{title:"Loaders Analysis",link:"https://rsdoctor.rs/guide/usage/loaders-analysis"},{title:"Loaders Timeline",link:"https://rsdoctor.rs/guide/usage/loaders-timeline"},{title:"Plugin Analysis",link:"https://rsdoctor.rs/guide/usage/plugins-analysis"}],v=()=>{let{t:e}=(0,y.s9)();return(0,p.jsx)(g.Zp,{style:{width:"100%",borderRadius:"12px"},children:(0,p.jsxs)("div",{children:[(0,p.jsxs)("div",{className:"title-dP_KVY",children:[(0,p.jsx)("span",{children:e("Help Center")}),(0,p.jsxs)(x.Ay,{style:{display:"flex",alignItems:"center",padding:0},type:"link",onClick:()=>{window.open("https://rsdoctor.rs/index","_blank")},children:[(0,p.jsx)("span",{style:{marginRight:"3px"},children:"More"}),(0,p.jsx)(j.A,{style:{fontSize:"10px"}})]})]}),(0,p.jsx)("div",{className:"container-LiYKWu",children:A.map((t,r)=>{let{title:s,link:n}=t;return(0,p.jsx)("div",{className:"content-WPe5pa",style:{marginBottom:r<A.length-2?"16px":0},onClick:()=>window.open(n,"_blank"),children:e(s)},r)})})]})})};var b=r(49249),S=r(56753),z=r(54594),w=r(21342),k=r(17076),C=r(31273),N=r(23807),T=r(21290),E=r(68062),M=r(41611),_="card-lyOUB6",O=r(61108),B=r(41648),D=r(38163),P=e=>(0,p.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,p.jsx)("rect",{width:16,height:16,fill:"#E6F7FF",rx:2}),(0,p.jsx)("path",{fill:"#3874F6",d:"M13.353 4.51c.094.095.147.221.147.354V14.5a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5v-13A.5.5 0 0 1 3 1h6.636c.133 0 .26.053.355.147zm-1.006.584-2.94-2.94v2.94z"})]});let $=e=>{let{theme:t,number:r,description:s}=e;return(0,p.jsx)(B.A,{message:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(O.A,{className:"icon-K6JtIV",component:"common"===t?P:D.A}),(0,p.jsx)("span",{className:"description-Ik1PO7",children:s}),(0,p.jsx)("span",{className:"data-J9Vxvq",children:r})]}),className:"container-ssAvLP",type:"warning"===t?"warning":"info"})};var F=r(87826),R="column-VJtpT7",I="description-nwRikm",L="unit-poAoxV",W="tag-fNEiQ8",q="label-vITl7c";let{DirectoryTree:G}=S.A,U=e=>{let t=[];e.files.length&&(t=e.files.map(e=>{let t=e.path.split("/");return{fileName:t.pop(),defaultDir:t.join("/")||"output",size:e.size,initial:e.initial}}));let r=[];return t.forEach(e=>{let t=r.find(t=>t.title===e.defaultDir),s=t||{title:e.defaultDir,key:e.defaultDir,icon:(0,p.jsx)(C.A,{}),children:[]},n=(0,T.C)(e.fileName);t||r.push(s),s.children.push({title:(0,p.jsxs)("div",{className:"treeContainer-jcFlxc",children:[(0,p.jsx)("div",{className:"treeTitle-B083rc",children:e.fileName}),(0,p.jsx)("div",{className:"line-Ia_8Yg"}),(0,p.jsx)(z.A,{className:`${W} sizeTag-ukmRN7`,children:(0,y.Xq)(e.size)}),e.initial?(0,p.jsx)(z.A,{className:W,color:"cyan",children:"initial"}):null]}),key:e.fileName,isLeaf:!0,icon:n})}),{treeData:r}},H=e=>{let{treeData:t}=U(e);return(0,p.jsx)(p.Fragment,{children:e.files.length?(0,p.jsx)(E.hX,{buttonProps:{size:"small"},buttonStyle:{fontSize:"inherit"},drawerProps:{title:"Files"},text:(0,p.jsx)("span",{children:e.count}),children:(0,p.jsx)(G,{defaultExpandAll:!0,selectable:!1,treeData:t,rootStyle:{minHeight:"800px",border:"1px solid rgba(235, 237, 241)"}})}):e.count})},K=e=>{let{res:t,view:r}=e,s=[{key:"js-files-count",label:"JS files",children:(0,p.jsx)("span",{className:`${I} ${R}`,children:H(t.js.total)})},{key:"css-files-count",label:"CSS files",children:(0,p.jsx)("span",{className:`${I} ${R}`,children:H(t.css.total)})},{key:"font-files-count",label:"Font files",children:(0,p.jsx)("span",{className:`${I} ${R}`,children:H(t.fonts.total)})},{key:"html-files-count",label:"HTML files",children:(0,p.jsx)("span",{className:I,children:H(t.html.total)})},{key:"image-files-count",label:"Image files",children:(0,p.jsx)("span",{className:I,children:H(t.imgs.total)})},{key:"media-files-count",label:"Media files",children:(0,p.jsx)("span",{className:I,children:H(t.media.total)})}],[n,l]=(0,y.Xq)(t.js.total.size).split(" "),[i,a]=(0,y.Xq)(t.css.total.size).split(" "),[o,d]=(0,y.Xq)(t.fonts.total.size).split(" "),[c,h]=(0,y.Xq)(t.html.total.size).split(" "),[u,f]=(0,y.Xq)(t.imgs.total.size).split(" "),[m,x]=(0,y.Xq)(t.media.total.size).split(" "),j=[{key:"js-files-size",label:(0,p.jsx)("span",{className:q,children:"JS size"}),children:(0,p.jsxs)("div",{className:R,children:[(0,p.jsx)("span",{className:I,children:n}),(0,p.jsx)("span",{className:L,children:l})]})},{key:"css-files-size",label:(0,p.jsx)("span",{className:q,children:"CSS size"}),children:(0,p.jsxs)("div",{className:R,children:[(0,p.jsx)("span",{className:I,children:i}),(0,p.jsx)("span",{className:L,children:a})]})},{key:"font-files-size",label:(0,p.jsx)("span",{className:q,children:"Font size"}),children:(0,p.jsxs)("div",{className:R,children:[(0,p.jsx)("span",{className:I,children:o}),(0,p.jsx)("span",{className:L,children:d})]})},{key:"html-files-size",label:(0,p.jsx)("span",{className:q,children:"HTML size"}),children:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("span",{className:I,children:c}),(0,p.jsx)("span",{className:L,children:h})]})},{key:"image-files-size",label:(0,p.jsx)("span",{className:q,children:"Image size"}),children:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("span",{className:I,children:u}),(0,p.jsx)("span",{className:L,children:f})]})},{key:"media-files-size",label:(0,p.jsx)("span",{className:q,children:"Media size"}),children:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("span",{className:I,children:m}),(0,p.jsx)("span",{className:L,children:x})]})}];return(0,p.jsx)(w.A,{layout:"vertical",className:"bundleOverall-Ay7WmZ",size:"small",column:3,colon:!1,items:"files"===r?s:j})},V=()=>{let[e,t]=(0,f.useState)("size"),r=(0,N.Zp)(),{t:s}=(0,y.s9)();return(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetAssetsSummary,body:{withFileContent:!1},children:n=>{let l=(0,y.Xq)(n.all.total.size);return(0,p.jsx)(g.Zp,{className:_,style:{height:"316px"},children:(0,p.jsxs)("div",{children:[(0,p.jsxs)("div",{className:"title-fNYU5O",children:[(0,p.jsx)("span",{children:s("Bundle Overall")}),(0,p.jsx)(x.Ay,{type:"link",style:{padding:"0px"},onClick:()=>{r(F.Kj.EH.BundleSize)},children:(0,p.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,p.jsx)("span",{style:{marginRight:"8px",fontSize:"13px"},children:s("ViewBundleSize")}),(0,p.jsx)(j.A,{style:{fontSize:"10px"}})]})})]}),(0,p.jsx)(k.A,{options:["Size","Files"],onChange:e=>{t(e.toLocaleLowerCase())},size:"small",style:{marginBottom:8,fontSize:"14px"}}),(0,p.jsx)($,{theme:"files"===e?"common":"size",number:"files"===e?n.all.total.count:l,description:`Total ${e}`}),(0,p.jsx)(K,{view:e,res:n})]})})}})};var Y=r(3534),X=r(66482),Z=r(6755),J=r(85326),Q=r(23197);r(71127),r(11908);var ee=r(20368),et=r(55096);let er=e=>{let{plugins:t,defaultDatas:r=[],type:s}=e,{isDark:n}=(0,y.DP)(),l=(0,f.useRef)(null),[i,a]=(0,f.useState)([]);return(0,f.useEffect)(()=>{let e=[];t.forEach(t=>{t.data.forEach(r=>{e.push({p:t.hook,n:`${t.tapName}`,s:r.startAt,e:r.endAt})})}),a([...(0,et.QR)(r),...(0,et.QR)(e)])},[]),(0,p.jsx)("div",{className:["loader-chart-container",n?"loader-chart-container_dark":""].join(" ").trim(),ref:l,style:{width:"100%"},children:(0,p.jsx)(ee.n,{pluginsData:i,formatterFn:et.kr,chartType:s})})},es=()=>(0,p.jsx)(B.A,{message:(0,p.jsxs)(X.A.Text,{children:[(0,p.jsx)(X.A.Text,{children:"make sure that you have turn on "}),(0,p.jsxs)(X.A.Text,{children:[" ","in configuration for the Rsdoctor plugin."]})]}),type:"info",showIcon:!0}),en=e=>{let{summary:t}=e,{costs:r=[]}=t||{};return r.find(e=>e.name===Y.BD.S.Bootstrap)?(0,p.jsx)(E.hX,{containerProps:{style:{display:"inline"}},drawerProps:{title:'Chart of the "Bootstrap -> BeforeCompile" stage'},text:(0,p.jsx)(J.A,{children:"detail"}),children:(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetPluginData,body:{hooks:["environment","afterEnvironment","entryOption","afterPlugins","afterResolvers","initialize","beforeRun","run","watchRun","normalModuleFactory","contextModuleFactory","beforeCompile"]},children:e=>e&&e.length?(0,p.jsx)(er,{plugins:e,type:0}):(0,p.jsx)(es,{})})}):null};var el=r(60339),ei=r(50162),ea=r(67782);let eo=e=>{let{dataSource:t}=e;return(0,p.jsx)(el.A,{dataSource:t,rowKey:e=>`${e.tapName}_${e.hook}`,columns:[{title:"Plugin Tap Name",render:(e,t)=>t.tapName},{title:"Hook",render:(e,t)=>t.hook},{title:"calls",render:(e,t)=>(0,p.jsx)(ei.A,{title:`"${t.hook}" has been called ${t.data.length} times by "${t.tapName}"`,children:t.data.length}),sorter:(e,t)=>e.data.length-t.data.length},{title:"duration(total)",render:(e,t)=>(0,y.a4)((0,ea.xu)(t.data,e=>e.costs)),sorter:(e,t)=>(0,ea.xu)(e.data,e=>e.costs)-(0,ea.xu)(t.data,e=>e.costs),defaultSortOrder:"descend"}]})},ed=e=>{let{summary:t}=e,{costs:r=[]}=t||{},s=r.find(e=>e.name===Y.BD.S.Done),n='of the "AfterCompile -> Done" stage';return s?(0,p.jsx)(E.hX,{containerProps:{style:{display:"inline"}},drawerProps:{title:`Details ${n}`},text:(0,p.jsx)(J.A,{children:"detail"}),children:(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetPluginData,body:{hooks:["afterCompile","shouldEmit","emit","afterEmit","assetEmitted","done"]},children:e=>e&&e.length?(0,p.jsxs)(J.A,{direction:"vertical",style:{width:"100%"},children:[(0,p.jsx)(g.Zp,{title:`Plugin DataSource of ${n}`,collapsable:!0,children:(0,p.jsx)(eo,{dataSource:e})}),(0,p.jsx)(Z.A,{}),(0,p.jsx)(g.Zp,{title:`Chart ${n}`,children:(0,p.jsx)(er,{plugins:e,type:2})})]}):(0,p.jsx)(es,{})})}):null},ec=e=>{let{summary:t}=e,{costs:r=[]}=t||{};return r.find(e=>e.name===Y.BD.S.Minify)?(0,p.jsx)(E.hX,{containerProps:{style:{display:"inline"}},drawerProps:{title:'Details of the "Minify" stage'},text:(0,p.jsx)(J.A,{children:"detail"}),children:(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetPluginData,body:{hooks:["processAssets","optimizeChunkAssets"]},children:e=>e&&e.length?(0,p.jsxs)(J.A,{direction:"vertical",style:{width:"100%"},children:[(0,p.jsx)(g.Zp,{title:'Plugin DataSource of the "Minify"',collapsable:!0,children:(0,p.jsx)(eo,{dataSource:e})}),(0,p.jsx)(Z.A,{}),(0,p.jsx)(g.Zp,{title:'Chart of the "Minify"',children:(0,p.jsx)(er,{plugins:e,type:3})})]}):(0,p.jsx)(es,{})})}):null},eh=e=>{let{children:t,name:r,showDivider:s=!0}=e;return(0,p.jsxs)(X.A.Text,{style:{color:"inherit"},children:[(0,p.jsx)(X.A.Text,{style:{color:"inherit"},children:r}),s?(0,p.jsx)(Z.A,{type:"vertical"}):null,t]})},eu=e=>{let{summary:t}=e,{t:r}=(0,y.s9)();if(!t?.costs?.length)return null;let s=Math.max(...t.costs.map(e=>e.costs));return(0,p.jsx)(g.Zp,{className:_,children:(0,p.jsx)("div",{children:(0,p.jsxs)(J.A,{style:{wordBreak:"break-all",width:"100%",marginTop:"0"},size:20,direction:"vertical",children:[(0,p.jsx)("div",{className:"title-wq4_QM",children:r("Compile Overall")}),t.costs.map(e=>{let{name:r,costs:n}=e,l=(0,p.jsx)(Q.A,{className:"progress-y4rFf4",percent:100*n/s,status:"normal",format:()=>(0,y.a4)(n)});switch(r){case Y.BD.S.Bootstrap:return(0,p.jsxs)(eh,{name:"Bootstrap ~ BeforeCompile",children:[(0,p.jsx)(en,{summary:t}),l]},r);case Y.BD.S.Compile:return(0,p.jsx)(eh,{name:"Compile",showDivider:!1,children:l},r);case Y.BD.S.Done:return(0,p.jsxs)(eh,{name:"AfterCompile ~ Done",children:[(0,p.jsx)(ed,{summary:t}),l]},r);case Y.BD.S.Minify:return(0,p.jsxs)(eh,{name:"Minify",children:[(0,p.jsx)(ec,{summary:t}),l]},r);default:return null}})]})})})};var ep=r(7553),ef=r(11151),em=r(82315),ex=r(36245),ej=r(5792),eg=r(80844),ey=r(13616),eA=r(37673),ev=r.n(eA),eb=r(76174),eS=r(16530);let ez=(0,M.eN)({Component:e=>{let{defaultKeys:t,configs:r}=e,s=(0,y.rt)(r||[]);if(!s)return null;let{config:n,version:l,name:i}=s,a=Object.keys(n),[o,d]=(0,f.useState)(t||a);return(0,p.jsxs)(E.hX,{text:(0,p.jsxs)("div",{className:eS.A.title,children:[(0,p.jsx)("span",{style:{marginRight:"8px",fontSize:"13px"},children:"View Bundler Config"}),(0,p.jsx)(j.A,{style:{fontSize:"10px"}})]}),children:[(0,p.jsxs)(eg.A,{children:[(0,p.jsx)(eb.h,{text:"Bundler Config Viewer"}),(0,p.jsx)(Z.A,{}),(0,p.jsxs)(J.A,{children:[(0,p.jsx)(X.A.Text,{children:"Properties: "}),(0,p.jsx)(ey.A,{dropdownStyle:{zIndex:999},mode:"multiple",allowClear:!0,value:o.length===a.length?[]:o,style:{width:350},popupMatchSelectWidth:!0,placeholder:"Show Selected Properties Only.",onChange:e=>{d(e)},children:a.map(e=>(0,p.jsx)(ey.A.Option,{label:e,value:e,children:e},e))})]}),(0,p.jsx)(Z.A,{})]}),(0,p.jsx)(ev(),{name:l&&"unknown"!==l?`${i}@${l}`:"webpack.config",theme:"monokai",src:0===o.length?n:Y.AP.Up(n,o),displayDataTypes:!1,displayObjectSize:!1,style:{overflowX:"auto"}})]})},api:F.hp.uT.n.LoadDataByKey,responsePropName:"configs",body:{key:"configs"},showSkeleton:!1});var ew=r(88557);let ek=e=>{let{configs:t=[],cwd:r,envinfo:s,alerts:n=[],name:l}=e,{t:i}=(0,y.s9)(),a=n.filter(e=>"warn"===e.level).length,o=n.length-a,d=[...l?[{key:"name",label:"Builder",children:l}]:[],...Object.keys(s||{}).map(e=>{let t=/Version$/,r=t.test(e);return{key:e,label:r?e.replace(t,""):e,children:s?s[e]:void 0}}),...t.filter(e=>!!e.version).map(e=>{let{name:t,version:r}=e;return{key:t,label:t,children:r}}),{key:"cwd",label:"cwd",children:r}];return(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetAssetsSummary,body:{withFileContent:!1},children:e=>{let t=(0,y.Xq)(e.all.total.size),r=e.all.total.count,[s,n]=t.split(" "),l=[{title:"Errors",description:(0,p.jsx)("span",{style:{color:"#FF4D4F"},children:o}),icon:(0,p.jsx)(ep.A,{style:{background:"#FF4D4F"},shape:"circle",icon:(0,p.jsx)(ef.A,{style:{fontSize:"18px"}})})},{title:"Warnings",description:(0,p.jsx)("span",{style:{color:"#FAAD14"},children:a}),icon:(0,p.jsx)(ep.A,{style:{background:"#FAAD14"},shape:"circle",icon:(0,p.jsx)(em.A,{style:{fontSize:"18px"}})})},{title:"Total Files",description:(0,p.jsx)("span",{children:r}),icon:(0,p.jsx)(ep.A,{style:{background:"#3874F6"},shape:"circle",icon:(0,p.jsx)(ex.A,{style:{fontSize:"18px"}})})},{title:"Total Size",description:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("span",{style:{fontSize:"20px"},children:s}),(0,p.jsx)("span",{style:{fontSize:"13px",marginLeft:"5px"},children:n})]}),icon:(0,p.jsx)(ep.A,{style:{background:"#5B8FF9"},shape:"circle",icon:(0,p.jsx)(ej.A,{style:{fontSize:"18px"}})})}];return(0,p.jsx)(g.Zp,{className:_,children:(0,p.jsxs)("div",{children:[(0,p.jsxs)("div",{className:"title-cqt0lp",children:[(0,p.jsx)("span",{className:"left-sk7eLC",children:i("Project Overall")}),(0,p.jsx)(ez,{})]}),(0,p.jsx)("div",{className:"overview-ZAp1A3",children:l.map((e,t)=>(0,p.jsx)(ew.A,{title:e.title,description:(0,p.jsx)("span",{children:e.description}),icon:e.icon},t))}),(0,p.jsx)(w.A,{className:"projectOverall-T7onhG",items:d})]})})}})},eC=e=>{let{children:t}=e;return(0,p.jsx)(m.A,{vertical:!0,className:"layout-izKUgB",children:t.map((e,t)=>(0,p.jsx)("div",{className:"row-RDk0Pl",children:e},t))})};var eN=r(76274),eT=r(80606);let eE=()=>{let{project:e}=(0,eN.L)();if(!e)return null;let{summary:t,configs:r,root:s,envinfo:n,errors:l,name:i}=e;return(0,p.jsx)("div",{className:"overall-MGHzQh",children:(0,p.jsxs)(m.A,{className:"columns-QZp7uT",children:[(0,p.jsx)("main",{className:"mainColumn-qPTakG",children:(0,p.jsxs)(eC,{children:[(0,p.jsx)(ek,{configs:r,cwd:s,envinfo:n,alerts:l,name:i}),(0,p.jsx)(b.mn,{})]})}),(0,p.jsx)("aside",{className:"sideColumn-QYJE_Q",children:(0,p.jsxs)(eC,{children:[(0,p.jsx)(V,{errors:l,cwd:s}),(0,p.jsx)(eu,{summary:t}),(0,p.jsx)(v,{})]})})]})})};var eM=r(9300),e_=r(47944),eO=r(64345),eB=r(42485),eD=r(92200),eP=r(30147),e$=r(78593),eF=r(63598);let eR=new Set(["js","cjs","mjs","jsx","bundle"]),eI=e=>{let t=e.split(/[?#]/,1)[0]??"",r=t.lastIndexOf(".");if(-1===r)return!1;let s=t.slice(r+1).toLowerCase();return eR.has(s)};var eL=r(36578),eW=r(50832),eq=r(74374),eG="dataContainer-lJ0PuO",eU="title-Gj8JxL",eH="description-miJCbD";let{DirectoryTree:eK}=S.A,eV=e=>{let{files:t,total:r,showProgress:s=!1,type:n}=e,l=n.toLocaleLowerCase(),i=(0,f.useMemo)(()=>(0,ea.xu)(t,e=>e.size),[t]),a=(0,f.useMemo)(()=>(0,ea.xu)(t,e=>e.gzipSize??0),[t]),o=t.some(e=>void 0!==e.gzipSize);return(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetAssetsSummary,body:{withFileContent:!1},children:e=>{let n=l.includes("image")?"imgs":l,{treeData:d}=U(e[n].total);return(0,p.jsxs)(J.A,{style:{height:100},align:"center",children:[(0,p.jsx)(Q.A,{type:"circle",percent:+(i/r*100).toFixed(2),strokeColor:{"0%":"#108ee9","100%":"#108ee9"},strokeWidth:12,format:e=>(0,p.jsxs)("div",{className:"percentContainer-VJxs6L",children:[(0,p.jsxs)("span",{style:{marginTop:"10px"},children:[e,"%"]}),(0,p.jsxs)("span",{className:"percentDescription-ymSkb_",children:["total ",n]})]})}),(0,p.jsxs)("div",{style:{marginLeft:"10px"},children:[(0,p.jsxs)("div",{className:"sizeMetrics-P0U17b",children:[(0,p.jsxs)("div",{className:eG,children:[(0,p.jsx)("div",{className:eU,children:"Size"}),(0,p.jsx)("div",{className:eH,children:(0,y.Xq)(i)})]}),(0,p.jsxs)("div",{className:eG,children:[(0,p.jsx)("div",{className:eU,children:"Gzipped"}),(0,p.jsx)("div",{className:eH,children:o?(0,y.Xq)(a):"N/A"})]})]}),(0,p.jsx)(E.hX,{buttonProps:{size:"small"},buttonStyle:{fontSize:"inherit"},drawerProps:{title:"Files"},text:(0,p.jsx)(J.A,{style:{textAlign:s?"left":"center"},align:"end",children:(0,p.jsx)(J.A,{direction:"vertical",children:(0,p.jsx)("div",{className:eG,children:(0,p.jsxs)("div",{className:eU,children:[(0,p.jsx)("span",{style:{marginRight:"5px"},children:"Files"}),(0,p.jsx)(j.A,{})]})})})}),children:d.length?(0,p.jsx)(eK,{defaultExpandAll:!0,selectable:!1,treeData:d,rootStyle:{minHeight:"800px",border:"1px solid rgba(235, 237, 241)"}}):(0,p.jsx)("div",{style:{position:"relative",top:"50%",transform:"translateY(-50%)"},children:(0,p.jsx)(eq.A,{style:{height:"100%"}})})}),(0,p.jsx)("div",{className:eH,children:t.length})]})]})}})},{DirectoryTree:eY}=S.A,{innerWidth:eX}=window,eZ=e=>{let{showProgress:t=!1,data:r,total:s,tagBgColor:n,type:l}=e,i=(0,y.al)(),a=n||i.colorPrimaryBorderHover;return(0,p.jsx)(eV,{type:l,files:r.files,total:s,showProgress:t,tagBgColor:a})},eJ=e=>{let{titles:t,datas:r,bgColor:s,type:n}=e,[l,i]=(0,f.useState)(t[0]),a=(0,f.useMemo)(()=>t.indexOf(l),[t,l]),o=a>=0?a:0,d=n||l||t[0],c=o>=0&&o<r.length?r[o]:r[0]||{};return(0,p.jsx)(eW.j,{title:(0,p.jsxs)("div",{className:"cardTitle-xNmEfV",children:[(0,p.jsx)("div",{className:"title-qIR7dd",children:d}),t.length>1?(0,p.jsx)(k.A,{defaultValue:t[0],options:t,onChange:e=>{i(e)},size:"small",style:{transition:"transform 0.3s ease"},value:l}):null]}),value:(0,p.jsx)(eZ,{type:d,...c,tagBgColor:s?.tagBgColor}),boxProps:{style:{background:s?.bgColor,width:eX>1300?"80%":"95%"}}})},eQ=(0,f.memo)(e=>{let{errors:t,summary:r}=e,s=(0,y.sO)(t),[n,l]=(0,y.Xq)(r.all.total.size).split(" "),i=[(0,p.jsx)(eJ,{type:"JS",titles:["Total","Initial"],datas:[{data:r.js.total,total:r.all.total.size,showProgress:!0},{data:r.js.initial,total:r.all.total.size,showProgress:!0}]}),(0,p.jsx)(eJ,{type:"CSS",titles:["Total","Initial"],datas:[{data:r.css.total,total:r.all.total.size,showProgress:!0},{data:r.css.initial,total:r.all.total.size,showProgress:!0}]}),(0,p.jsx)(eJ,{titles:["Images","Fonts","Media"],datas:[{data:r.imgs.total,total:r.all.total.size,showProgress:!0},{data:r.fonts.total,total:r.all.total.size,showProgress:!0},{data:r.media.total,total:r.all.total.size,showProgress:!0}]}),(0,p.jsx)(eJ,{type:"HTML",titles:["HTML Files"],datas:[{data:r.html.total,total:r.all.total.size,showProgress:!0}]})];return(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetAssetsSummary,body:{withFileContent:!1},children:e=>{let{treeData:t}=U(e.all.total);return(0,p.jsxs)("div",{className:"container-wODg_6",children:[(0,p.jsxs)("div",{className:"summary-zj0ygd",children:[(0,p.jsx)(ew.h,{title:(0,p.jsx)(E.hX,{buttonProps:{size:"small"},buttonStyle:{fontSize:"inherit"},drawerProps:{title:"Files"},text:(0,p.jsxs)("div",{style:{color:"var(--text-color-secondary)"},children:[(0,p.jsx)("span",{style:{marginRight:"5px"},children:"Total Files"}),(0,p.jsx)(j.A,{})]}),children:(0,p.jsx)(eY,{defaultExpandAll:!0,selectable:!1,treeData:t,rootStyle:{minHeight:"800px",border:"1px solid var(--color-border)"}})}),description:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("span",{className:"description-o0ffpO",children:n}),(0,p.jsx)("span",{className:"unit-n5Yty6",children:l}),(0,p.jsxs)("div",{className:"totalNumber-UweUl8",children:[(0,p.jsx)("span",{style:{marginRight:"7px"},children:"Number of files"}),(0,p.jsx)("span",{style:{fontWeight:500},children:r.all.total.count})]})]}),icon:(0,p.jsx)(ep.A,{style:{background:"#3874F6"},shape:"circle",icon:(0,p.jsx)(ex.A,{style:{fontSize:"18px"}})}),style:{marginBottom:"12px",minWidth:"210px"}}),(0,p.jsx)(ew.h,{style:{minWidth:"210px"},title:(0,p.jsx)("div",{style:{margin:"4px 0"},children:(0,p.jsx)("span",{style:{marginRight:"5px"},children:"Duplicate Packages"})}),description:s.length,icon:(0,p.jsx)(ep.A,{style:{background:"#13C2C2"},shape:"circle",icon:(0,p.jsx)(eL.A,{style:{fontSize:"18px"}})})})]}),(0,p.jsx)(Z.A,{style:{height:"200px"},type:"vertical"}),(0,p.jsx)("div",{className:"chartsContainer-msRyOd",children:i.map((e,t)=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"chart-GmBMa_",children:e},t),t!==i.length-1?(0,p.jsx)(Z.A,{style:{height:"200px"},type:"vertical"},`${t}-divider`):null]}))})]})}})});var e0="assetDetailCol-jwyTZJ";r(4937);var e1=r(35574),e2=r(91241),e5=r(89950),e4=r(74008),e3=r(37585),e7=r(3935),e6=r(95838),e8=r(51199),e9=r(72311),te=r(70722),tt=r(97173),tr=r(5332),ts=r(17940),tn=r(64716),tl=r(51125),ti=r(35074),ta=r(50037),to=r(36344);let td=(0,f.createContext)({setModuleJumpList(e){},moduleJumpList:[]});var tc=r(15061),th=r(91326),tu=r(73308),tp=r(8137),tf=r(89077),tm=r(56059),tx=r(87253),tj=r(39901),tg=r(21300),ty=r(39101);r(20785);let tA="file-tree-com",tv=e=>{let{treeData:t,needJumpto:r=!1,defaultOpenFather:s=0}=e,{required:n,handlers:l}=(0,ty.pk)({id:`${tA}-tree`,data:t||[],defaultOpened:!1,multipleSelect:!1,refreshAsyncNodes:!0}),i=(0,f.useRef)(new Set);(0,f.useEffect)(()=>{i.current.clear()},[t]);let a=(0,f.useCallback)(e=>{let t,{node:n,onToggle:a}=e;if("object"!=typeof n.data||null===n.data||Array.isArray(n.data))return null;let o="function"==typeof n.data.getChildren||Array.isArray(n.data.children)&&n.data.children.length>0;if(s>0&&"number"==typeof n.data.level&&n.data.level<s&&o){let e=n.id;i.current.has(e)||(i.current.add(e),requestAnimationFrame(()=>{l.setOpen(e,!0)}))}let d=(0,T.C)(n.data.name);return(0,p.jsx)("div",{className:`${tA}-titles-box`,children:(0,p.jsx)("div",{className:`${tA}-titles`,children:(0,p.jsx)(J.A,{direction:"vertical",children:(0,p.jsx)("div",{className:`${tA}-node-title`,children:(0,p.jsxs)(J.A,{children:[(0,p.jsx)("div",{onClick:a,children:(0,p.jsxs)(J.A,{children:[(t="function"==typeof n.data.getChildren||Array.isArray(n.data.children)&&n.data.children.length>0,!n.options.opened&&t?(0,p.jsx)(tx.A,{style:{color:"lightblue"}}):(0,p.jsx)(tj.A,{style:{color:"lightblue"}})),d,(0,p.jsx)(ta.A,{content:(0,p.jsx)(p.Fragment,{children:n.data.__RESOURCEPATH__?(0,p.jsx)(X.A.Text,{code:!0,children:n.data.__RESOURCEPATH__},`${n.data.name}-popover-path`):(0,p.jsx)(p.Fragment,{})}),title:"INFO",trigger:"hover",children:(0,p.jsx)(X.A.Text,{children:n.data.name})},`${n.data.name}popover`)]})}),(0,p.jsx)(J.A,{children:r&&(0,p.jsx)(td.Consumer,{children:e=>{let{moduleJumpList:t,setModuleJumpList:r}=e;return(0,p.jsx)(tg.A,{onClick:()=>{let e=[...t];e.push(+n.id),r(e)}})}})})]})})})})},n.data.name)},[l,s,r]);return(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(ty.Ay,{...n,...l,horizontalLineStyles:{stroke:"#c4c4c4",strokeWidth:2,strokeDasharray:"1 1"},verticalLineStyles:{stroke:"#c4c4c4",strokeWidth:2,strokeDasharray:"1 1"},draggable:!1,depthGap:14,gapMode:"padding",disableLines:!1,disableTransitions:!0,disableHorizontalLines:!1,disableVerticalLines:!1,verticalLineTopOffset:0,verticalLineOffset:5,renderNode:a})})};F.Kj.EH.ModuleAnalyze;let tb="module-analyze";r(84803);var tS=(0,f.memo)(e=>{let{dependencies:t,cwd:r,module:s}=e,n=(0,f.useMemo)(()=>{let e=s.dependencies.map(e=>{let r=t.find(t=>t.id===e);if(r)return{__RESOURCEPATH__:r.resolvedRequest||"",id:r.dependency,key:r.resolvedRequest,name:(0,y.Ml)(r.resolvedRequest)||"",level:1,kind:r.kind,concatModules:void 0}});return Y.AP.oE(e)},[s]);return(0,p.jsx)(eg.A,{justify:"start",align:"middle",children:(0,p.jsx)(eF.A,{span:24,children:n.length?(0,p.jsx)(tv,{treeData:n,needJumpto:!0,cwd:r}):(0,p.jsx)(eq.A,{})})})});let tz=(e,t)=>{if(e?.imported?.length){let r=e.imported.map(e=>t.find(t=>t.id===Number(e)));return Y.AP.oE(r)}return[]},tw=e=>{let{reasons:t,sideEffectCodes:r,modulePath:s}=e;return t&&t.length||r&&r.length?(0,p.jsxs)(eP.A,{className:`${tb}-bailout-card`,bordered:!1,bodyStyle:{padding:20,height:"100%"},children:[t&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(X.A.Text,{strong:!0,className:`${tb}-bailout-card-title`,children:"Bailout Reasons"}),(0,p.jsx)("div",{className:`${tb}-bailout-card-list`,style:{maxHeight:156,overflowY:"auto"},children:t.length>0?t.map((e,t)=>(0,p.jsxs)("div",{className:`${tb}-bailout-card-item`,children:[(0,p.jsx)(ta.A,{content:e,trigger:"hover",children:(0,p.jsx)(X.A.Paragraph,{ellipsis:{rows:1},className:`${tb}-bailout-card-text`,style:{marginBottom:0},children:e})}),(0,p.jsxs)(X.A.Text,{type:"secondary",className:`${tb}-bailout-card-meta`,children:["#",String(t+1).padStart(2,"0")]})]},`${e}-${t}`)):(0,p.jsx)(eq.A,{})})]}),r&&r.length>0&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginTop:12*!!t?.length},children:[(0,p.jsx)(X.A.Text,{strong:!0,className:`${tb}-bailout-card-title`,children:"Side Effect Codes"}),s&&r[0]&&(0,p.jsx)(ei.A,{title:`Open in VSCode: line ${r[0].startLine}`,children:(0,p.jsx)(tp.A,{style:{width:16,height:16,cursor:"pointer",flexShrink:0,marginBottom:12},onClick:()=>(0,th.jk)({file:s,line:r[0].startLine})})}),s&&r[0]&&(0,p.jsx)(ei.A,{title:`Open in Cursor: line ${r[0].startLine}`,children:(0,p.jsx)(tf.A,{style:{width:16,height:16,cursor:"pointer",flexShrink:0,marginBottom:12},onClick:()=>(0,th.L2)({file:s,line:r[0].startLine})})}),s&&r[0]&&(0,p.jsx)(ei.A,{title:`Open in Trae: line ${r[0].startLine}`,children:(0,p.jsx)(tm.A,{style:{width:16,height:16,cursor:"pointer",flexShrink:0,marginBottom:12},onClick:()=>(0,th.bX)({file:s,line:r[0].startLine})})})]}),(0,p.jsx)("div",{className:`${tb}-bailout-card-list`,style:{minHeight:"50vh",display:"flex",flexDirection:"column",gap:12,overflow:"auto"},children:r.map((e,t)=>(0,p.jsx)("div",{className:`${tb}-bailout-card-item`,style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:8,minHeight:0,flex:"1 1 0"},children:(0,p.jsx)("div",{style:{flex:1,minHeight:0,width:"100%",display:"flex",flexDirection:"column"},children:e.code?(0,p.jsx)(tu.Cv,{code:e.code,ranges:[{start:{line:e.startLine||0,column:0}}],filePath:"",lang:"javascript",style:{flex:1,minHeight:"40vh",width:"100%"},isLightTheme:!1,formatOnMount:!0}):(0,p.jsx)(eq.A,{})})},`${e.moduleId}-${t}`))})]})]}):(0,p.jsx)(eP.A,{className:`${tb}-bailout-card`,bordered:!1,bodyStyle:{padding:20,height:"100%"},children:(0,p.jsx)(eq.A,{})})},tk=e=>{let{curModule:t,modules:r,dependencies:s,cwd:n,activeTabKey:l,selectedChunk:i=""}=e,[a,o]=(0,f.useState)([]),{data:d}=(0,f.useMemo)(()=>a&&a?.length?{data:Y.AP.oE(a?.map((e,s)=>({key:`0-${s}`,name:(0,y.Ml)(e.path),__RESOURCEPATH__:e.path,id:e.id,level:0,chunks:e.chunks,size:(0,y.Xq)(e.size.parsedSize),kind:e.kind,concatModules:e.concatenationModules,fatherPath:(0,y.Ml)(t.path),dependencies:e.dependencies,getChildren:()=>(function e(t,r,s,n){let l=tz(t,r),i=n+1;return l?.map((n,l)=>({key:`0-${l}`,name:(0,y.Ml)(n.path),__RESOURCEPATH__:n.path,id:n.id,level:i,size:(0,y.Xq)(n.size.parsedSize),kind:n.kind,chunks:n.chunks,concatModules:n.concatenationModules,fatherPath:(0,y.Ml)(s.path),dependencies:n.dependencies,getChildren:()=>e(n,r,t,i),children:n.imported}))})(e,r,t,0),children:e.imported})))}:{filterData:[],data:[]},[a,t]);(0,f.useEffect)(()=>{o(tz(t,r))},[t,r]);let c=(0,f.useMemo)(()=>l===tE[tE.Reasons]?a?(0,p.jsx)(tv,{cwd:n,treeData:d,needCode:!0,needShowAllTree:!0,needJumpto:!0,selectedChunk:i,defaultOpenFather:1}):(0,p.jsx)(eq.A,{className:`${tb}-empty`}):(0,p.jsx)("div",{className:`${tb}-file-tree`,style:{padding:10},children:(0,p.jsx)(eF.A,{span:24,style:{marginTop:10},children:t?(0,p.jsx)(tS,{module:t,dependencies:s,cwd:n}):(0,p.jsx)(eq.A,{className:`${tb}-empty`})})}),[l,t,s,d,a,n,i]);return(0,p.jsx)(p.Fragment,{children:c})};var tC=r(26119),tN=r(7946),tT=r(82457),tE=((s={})[s.Reasons=0]="Reasons",s[s.Dependencies=1]="Dependencies",s);let tM=[{key:tE[0],label:tE[0]},{key:tE[1],label:tE[1]}],t_=e=>{let{modules:t,cwd:r,moduleId:s,show:n,setShow:l}=e,[i,a]=(0,f.useState)(""),[o,d]=(0,f.useState)(tE[0]);return(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetModuleDetails,body:{moduleId:+s},children:e=>{let{module:s,dependencies:a,sideEffectCodes:c}=e;return(0,p.jsx)(ti.A,{title:(0,p.jsxs)("div",{className:"module-analyze-box",children:[(0,p.jsx)(X.A.Text,{children:(0,y.Ml)(s.path)}),(0,p.jsx)(X.A.Text,{type:"secondary",style:{fontSize:12},children:`Current Module: ${s.path}`})]}),open:n,maskClosable:!0,width:.8*tc.Y7,onClose:()=>l(!1),children:(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetAllChunkGraph,body:{},children:e=>(0,p.jsx)(td.Consumer,{children:e=>{let{moduleJumpList:n,setModuleJumpList:l}=e;return(0,p.jsx)(e$.A,{defaultActiveKey:"bailout",items:[{key:"moduleTree",label:"Module Tree",children:(0,p.jsx)(eP.A,{style:{minHeight:400},tabList:tM,activeTabKey:o,tabProps:{size:"small",style:{fontSize:12}},onTabChange:e=>d(e),styles:{title:{paddingTop:0}},title:(0,p.jsxs)(J.A,{style:{padding:"10px 0px"},children:[(0,p.jsx)(tC.A,{onClick:()=>{l([...n.slice(0,-1)])}}),(0,p.jsx)(X.A.Text,{style:{fontSize:14},children:"Current Module Imported Reasons Tree"}),(0,p.jsx)(ta.A,{content:(0,p.jsx)("div",{children:(0,p.jsxs)("div",{children:[(0,p.jsx)(to.A,{status:"success",text:" "}),(0,p.jsx)(tN.A,{}),(0,p.jsx)(X.A.Text,{children:": Jump button, click to jump to the Module dependency analysis page of this module."})]})}),title:"Usage",children:(0,p.jsx)(tT.A,{})})]}),children:(0,p.jsx)(tk,{curModule:s,modules:t,dependencies:a,cwd:r,selectedChunk:i,activeTabKey:o})})},{key:"bailout",label:"Bailout",children:(0,p.jsx)("div",{style:{marginTop:16},children:(0,p.jsx)(tw,{reasons:s.bailoutReason,sideEffectCodes:c,modulePath:s.path})})}]})}})})})}})};var tO="collapsed-hxz3Bf",tB="chunk-item-dQ0XI7",tD="size-tag-EM4AKE",tP="all-none-checkbox-kw3p6X",t$=r(66592),tF=r(9754);function tR(e){let t=5381;for(let r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t>>>0}function tI(e,t){let r=parseInt(e.slice(1,3),16),s=parseInt(e.slice(3,5),16),n=parseInt(e.slice(5,7),16),l=Math.round(r*t+255*(1-t)),i=Math.round(s*t+255*(1-t)),a=Math.round(n*t+255*(1-t));return`#${l.toString(16).padStart(2,"0")}${i.toString(16).padStart(2,"0")}${a.toString(16).padStart(2,"0")}`}e2.Y([e3.a,e7.a,e6.a,e8.a]);let tL=(0,f.memo)(e=>{let{treeData:t,sizeType:r,onChartClick:s,highlightNodeId:n,centerNodeId:l,rootPath:i}=e,[a,o]=(0,f.useState)(null),d=f.useRef(null),c=f.useRef([]),h=f.useRef(null),u=(0,y.al)();return(0,f.useEffect)(()=>{var e;if(!t)return;let s=t.map((e,s)=>(function e(t){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,d=arguments.length>6?arguments[6]:void 0,c=i||t$.GB[s%t$.GB.length],h=0===l?t.path||t.name||"":d||"",u=t.children?.map((r,n)=>e(r,s,l+1,c,n,t.children?.length||0,h)),p=0;"stat"===r?p=t.sourceSize||0:"parsed"===r?p=t.bundledSize||0:"gzip"===r?p=t.gzipSize||0:"value"===r&&(p=t.value||0);let f=tR(0===l?t.path||t.name||"":`${h}::${t.path||t.name||""}`),m=n===f,x=0===l?1:Math.max(.35,1-.15*l),j=0===l?1:Math.max(.4,1-.15*l),g=o>1?1-a/(o-1)*.15:1,y=m?"#fff5f5":0===l?tI(c,.8):tI(c,x*g),A=m?"#ff4d4f":0===l?c:tI(c,j*g),v=.4>function(e){let[t,r,s]=[parseInt(e.slice(1,3),16)/255,parseInt(e.slice(3,5),16)/255,parseInt(e.slice(5,7),16)/255].map(e=>e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4));return .2126*t+.7152*r+.0722*s}(y),b=v?"#ffffff":"#000000",S={id:f,name:t.name,value:p,path:t.path||t.name,sourceSize:t.sourceSize??("stat"===r?p:void 0),bundledSize:t.bundledSize??("parsed"===r?p:void 0),gzipSize:t.gzipSize??("gzip"===r?p:void 0),moduleId:t.id,itemStyle:{borderWidth:m?4:1,color:y,borderColor:A,...0===l&&{gapWidth:2}},label:{show:!0,color:b,textBorderColor:v?"rgba(255, 255, 255, 0.2)":"rgba(0, 0, 0, 0.1)",textBorderWidth:1},upperLabel:0===l?void 0:{show:!0,color:b}};return u&&u.length>0&&(S.children=u),m?S.emphasis={itemStyle:{borderColor:"#ff4d4f",borderWidth:4,color:"#fff5f5"}}:S.emphasis={itemStyle:{color:y,borderColor:A,borderWidth:m?4:1}},S})(e,s,0,void 0,s,t.length,void 0)).filter(e=>"number"==typeof e.value&&e.value>0||e.children&&e.children.length>0);c.current=s;let l=u.colorText;o({color:t$.GB,tooltip:{padding:10,backgroundColor:u.colorBgElevated,borderColor:u.colorBorder,borderWidth:1,textStyle:{color:l},confine:!0,extraCssText:"max-width: 450px; word-wrap: break-word;",position:function(e,t,r,s,n){let l={top:e[1]+10};return e[0]<n.viewSize[0]/2?l.left=e[0]+10:l.right=n.viewSize[0]-e[0]+10,l},formatter:function(e){let t=e.data||{},s="string"==typeof t.path?t.path:"string"==typeof t.name?t.name:String(t.name??"");if(i&&s){let e=i.replace(/\\/g,"/").replace(/\/$/,""),t=s.replace(/\\/g,"/");t.startsWith(e+"/")?s=t.slice(e.length+1):t===e&&(s="")}let n="number"==typeof t.sourceSize&&t.sourceSize>0?t.sourceSize:"number"==typeof t.value&&t.value>0&&"stat"===r?t.value:void 0,a="number"==typeof t.bundledSize&&t.bundledSize>0?t.bundledSize:void 0,o="number"==typeof t.gzipSize&&t.gzipSize>0?t.gzipSize:void 0;function d(e,t,r){return`<div class="tooltip-row-sZbl0R">
|
|
82
|
+
<span class="tooltip-label-INs_JK" style="color: ${r};">${e}</span>
|
|
83
|
+
<span style="color: ${r};">${t}</span>
|
|
84
|
+
</div>`}let c=[];return void 0!==n&&n>0&&c.push(d("Stat size",(0,y.Xq)(n),"#43c6d9")),void 0!==a&&a>0&&c.push(d("Parsed size",(0,y.Xq)(a),"#5b8ff9")),void 0!==o&&o>0&&c.push(d("Gzipped size",(0,y.Xq)(o),"#f2b84b")),`
|
|
85
|
+
<div style="font-family: sans-serif; font-size: 12px; line-height: 1.5;">
|
|
86
|
+
<div style="margin-bottom: 6px; max-width: 400px; word-wrap: break-word; overflow-wrap: break-word; word-break: break-all; white-space: normal; color: ${l};">${e5.Me(s)}</div>
|
|
87
|
+
${c.join("")}
|
|
88
|
+
</div>
|
|
89
|
+
`}},series:[{type:"treemap",label:{show:!0,formatter:"{b}",fontSize:12,position:"inside",fontWeight:"normal",textBorderWidth:1,padding:[4,8,4,8]},upperLabel:{show:!0,height:30,fontSize:12,fontWeight:"normal",padding:[0,0,0,4]},levels:[{itemStyle:{borderWidth:0,gapWidth:4,gapColor:e=u.colorBgContainer}},{itemStyle:{borderColorAlpha:[1,.3],borderWidth:5,gapWidth:4,gapColor:e},upperLabel:{show:!0,color:"#ffffff",fontSize:12,height:30}}],data:s,breadcrumb:{show:!0,left:"center",top:"bottom",height:22,emptyItemWidth:25,itemStyle:{color:"#999",borderColor:"transparent",borderWidth:0,borderRadius:0,textStyle:{fontFamily:"sans-serif",fontSize:12,color:"white"}},emphasis:{itemStyle:{color:"#333"}}},roam:!0,nodeClick:!1,zoomToNodeRatio:.7,animationDurationUpdate:500,width:"100%",height:"100%",top:-10,bottom:30,left:0,right:0,scaleLimit:{min:.5,max:5}}]})},[t,r,n,i,u]),(0,f.useEffect)(()=>{if(l&&d.current&&a){let e=d.current.getEchartsInstance();if(e){let t=function(e,r){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let n of e){let e="string"==typeof n.name?n.name:String(n.name??""),l=[...s,e];if(n.id===r)return{name:e,path:l};if(n.children){let e=t(n.children,r,l);if(e)return e}}return null};setTimeout(()=>{let r=t(c.current,l);if(!r)return;let s=r.name;try{e.dispatchAction({type:"highlight",seriesIndex:0,name:s})}catch(e){console.error("Failed to highlight node with name:",s,e)}for(let t of[()=>e.dispatchAction({type:"treemapZoomToNode",seriesIndex:0,targetNodeId:String(l)}),()=>e.dispatchAction({type:"treemapZoomToNode",seriesIndex:0,name:s}),()=>e.dispatchAction({type:"treemapZoomToNode",seriesIndex:0,name:r.path.join("/")}),()=>r.path.length>0&&e.dispatchAction({type:"treemapZoomToNode",seriesIndex:0,name:r.path[r.path.length-1]})])try{t();return}catch(e){console.error("Failed to zoom to node with id:",l,e)}console.warn("Failed to zoom to node with id:",l)},200)}}},[l,a]),(0,f.useEffect)(()=>()=>{h.current&&window.clearTimeout(h.current)},[]),a?(0,p.jsxs)("div",{className:"mainArea-H7KGjK",children:[(0,p.jsx)(tW,{}),(0,p.jsx)("div",{className:"chartRoot-URgzau",children:(0,p.jsx)(e1.A,{ref:d,option:a,echarts:e4,onEvents:{click:e=>{h.current&&window.clearTimeout(h.current),h.current=window.setTimeout(()=>{if(d.current){let t=d.current.getEchartsInstance(),r=e?.data;t&&r?.id!==void 0&&t.dispatchAction({type:"treemapZoomToNode",seriesIndex:0,targetNodeId:String(r.id)})}},180)},dblclick:e=>{h.current&&(window.clearTimeout(h.current),h.current=null),s?.(e)}},style:{width:"100%",height:"100%",position:"absolute",left:0,top:0}})})]}):null}),tW=()=>{let[e,t]=(0,y.yR)("treemap-alert-visible",!0);return e?(0,p.jsx)(B.A,{closable:!0,onClose:()=>t(!1),message:"If parsed size lacks detailed module information, you can enable sourceMap when RSDOCTOR = true. This is because Rsdoctor relies on SourceMap to obtain Parsed Size. Rspack provides SourceMap information to Rsdoctor by default without affecting the build output.",type:"info",showIcon:!0}):null},tq=e=>{let{treeData:t,onChartClick:r,bundledSize:s=!0}=e;return(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetProjectInfo,children:e=>(0,p.jsx)(tG,{treeData:t,onChartClick:r,bundledSize:s,rootPath:e.root})})},tG=e=>{let{treeData:t,onChartClick:r,bundledSize:s=!0,rootPath:n}=e,l=(0,f.useMemo)(()=>t.map(e=>e.name),[t]),[i,a]=(0,f.useState)(l),[o,d]=(0,f.useState)(!1),[c,h]=(0,f.useState)(s?"parsed":"stat"),[u,m]=(0,f.useState)(""),[x,g]=(0,f.useState)(!1),[A,v]=(0,f.useState)(),[b,S]=(0,f.useState)(),[z,w]=(0,f.useState)(""),[k,C]=(0,f.useState)(!1),[N,T]=(0,f.useState)(""),[E,_]=(0,f.useState)(!1),O=f.useRef(null),B=(0,f.useMemo)(()=>E?l.filter(eI):l,[l,E]),D=(0,f.useMemo)(()=>B.join("\0"),[B]),P=f.useRef(void 0);(0,f.useEffect)(()=>{P.current!==D&&(P.current=D,a(B))},[B,D]);let $=(0,f.useCallback)(e=>{r?.(e);let t=e.data,s=t?.moduleId;void 0!==s&&(w(s),C(!0))},[r]);(0,f.useEffect)(()=>{let e=()=>{g(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e)}},[]);let R=(0,f.useMemo)(()=>{let e=t.filter(e=>B.includes(e.name)&&i.includes(e.name));if(N.trim()){let t=N.toLowerCase();e=e.filter(e=>e.name.toLowerCase().includes(t))}return e},[t,i,N,B]),I=(0,f.useMemo)(()=>{if(!u.trim())return[];let e=RegExp(u,"i"),t=[],r=(s,n)=>{let l=n||s.path||s.name||"";if(s.path&&e.test(s.path)){let e=tR(n?`${n}::${s.path}`:s.path);t.push({path:s.path,nodeId:e})}s.children&&s.children.forEach(e=>r(e,l))};return R.forEach(e=>r(e)),t},[R,u]),L=(0,f.useMemo)(()=>(0,tF.z)(R,c),[R,c]);return(0,p.jsxs)("div",{className:"treemap-DOrYiA",ref:O,children:[(0,p.jsx)("button",{className:"fullscreen-button-jVdrxO",onClick:()=>{x?document.exitFullscreen().then(()=>g(!1)).catch(e=>console.error("Failed to exit fullscreen:",e)):(()=>{if(!O.current)return;let e=O.current;if(e.requestFullscreen)e.requestFullscreen().then(()=>g(!0)).catch(e=>console.error("Failed to enter fullscreen:",e));else if(e.webkitRequestFullscreen)try{e.webkitRequestFullscreen(),g(!0)}catch(e){console.error("Failed to enter fullscreen (webkit):",e)}else if(e.mozRequestFullScreen)try{e.mozRequestFullScreen(),g(!0)}catch(e){console.error("Failed to enter fullscreen (moz):",e)}else if(e.msRequestFullscreen)try{e.msRequestFullscreen(),g(!0)}catch(e){console.error("Failed to enter fullscreen (ms):",e)}else console.error("Fullscreen API is not supported in this browser.")})()},title:x?"Exit fullscreen":"Enter fullscreen","aria-label":x?"Exit fullscreen":"Enter fullscreen",children:x?(0,p.jsx)(tr.A,{}):(0,p.jsx)(ts.A,{})}),(0,p.jsxs)("div",{className:`sidebar-Pww0Wm ${o?tO:""}`,children:[(0,p.jsx)("div",{className:`sidebar-toggle-NaGZQP ${o?tO:""}`,onClick:()=>d(!o),children:o?(0,p.jsx)(j.A,{}):(0,p.jsx)(tn.A,{})}),(0,p.jsxs)("div",{className:"sidebar-content-WuURH8",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("h4",{children:"Treemap sizes"}),(0,p.jsxs)(e9.A.Group,{value:c,onChange:e=>h(e.target.value),size:"small",buttonStyle:"solid",children:[(0,p.jsx)(e9.A.Button,{value:"stat",children:"Stat"}),(0,p.jsx)(e9.A.Button,{value:"parsed",children:"Parsed"}),(0,p.jsx)(e9.A.Button,{value:"gzip",children:"Gzipped"})]})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("h4",{children:"Show chunks"}),(0,p.jsx)(te.A,{placeholder:"Search chunks",value:N,onChange:e=>T(e.target.value),suffix:(0,p.jsx)(tl.A,{style:{color:"#ccc"}}),allowClear:!0,size:"small",style:{marginBottom:8}}),(0,p.jsxs)("div",{className:tB,children:[(0,p.jsx)(tt.A,{indeterminate:i.length>0&&i.length<B.length,checked:B.length>0&&i.length===B.length,onChange:e=>a(e.target.checked?B:[]),className:tP,children:"All"}),(0,p.jsx)("span",{className:tD,children:(0,y.Xq)(L)})]}),(0,p.jsx)(tt.A,{checked:E,onChange:e=>{_(e.target.checked)},className:tP,children:"JS only"}),(0,p.jsx)("div",{className:"chunk-list-TUqr7U",style:{maxHeight:180,overflowY:"auto"},children:B.filter(e=>e.toLowerCase().includes(N.toLowerCase())).map(e=>(0,p.jsxs)("div",{className:tB,style:{height:15,lineHeight:"15px"},children:[(0,p.jsx)(tt.A,{checked:i.includes(e),onChange:t=>{t.target.checked?a([...i,e]):a(i.filter(t=>t!==e))},children:(0,p.jsx)("span",{title:e,children:e})}),(0,p.jsx)("span",{className:tD,children:(0,y.Xq)(((e,r)=>{let s=t.find(t=>t.name===e);if(!s)return 0;let n=r||c;return(0,tF.M)(s,n)})(e,c))})]},e))})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("h4",{children:"Search modules"}),(0,p.jsx)(te.A,{placeholder:"Enter regexp",value:u,onChange:e=>{m(e.target.value),v(void 0),S(void 0)},suffix:(0,p.jsx)(tl.A,{style:{color:"#ccc"}}),allowClear:!0,size:"small"}),u.trim()&&I.length>0&&(0,p.jsxs)("div",{className:"search-results-emVgaj",children:[(0,p.jsxs)("div",{className:"search-results-header-oyQ0jw",children:["Found ",I.length," file",I.length>1?"s":""]}),(0,p.jsx)("div",{className:"search-results-list-FSMG6d",children:I.map((e,t)=>{let r=(e=>{if(!n||!e)return e;let t=n.replace(/\\/g,"/").replace(/\/$/,""),r=e.replace(/\\/g,"/");return r.startsWith(t+"/")?r.slice(t.length+1):r===t?"":e})(e.path);return(0,p.jsx)("div",{className:"search-result-item-IZR6nt",onClick:()=>{var t;v(t=e.nodeId),S(t)},title:e.path,children:r||e.path},t)})})]}),u.trim()&&0===I.length&&(0,p.jsxs)("div",{className:"search-results-empty-_khCd5",children:['No files found matching "',u,'"']})]})]})]}),(0,p.jsx)(tL,{treeData:R,sizeType:c,onChartClick:$,highlightNodeId:A,centerNodeId:b,rootPath:n}),z?(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetAllModuleGraph,body:{},children:e=>(0,p.jsx)(t_,{cwd:n,moduleId:z,modules:e,show:k,setShow:C})}):null]})};var tU=r(26168),tH=r(78824),tK=r(81650),tV=r(8857),tY=r(7415),tX=r(46977),tZ=r(67716),tJ=r(13078),tQ=r.n(tJ),t0="bundleTreeEntry-Cd5W_S",t1="bundleTreeEntryContent-E8HDg1",t2="bundleTreeEntryTitle-XbeexU",t5="divider-Iq1wtJ",t4=r(30670);let{DirectoryTree:t3}=S.A,t7=(0,f.createContext)({enabled:!0}),t6=e=>{let{children:t}=e;return(0,p.jsx)(t7.Provider,{value:{enabled:!1},children:t})},t8=()=>(0,f.use)(t7)?.enabled??!0,t9=e=>t8()?(0,p.jsx)(ei.A,{...e}):e.children??null,re=e=>t8()?(0,p.jsx)(ta.A,{...e}):e.children??null,rt=()=>(0,p.jsx)(eq.A,{description:`Do not have the module code.
|
|
90
|
+
(1) If you use the brief mode, there will not have any codes to show.
|
|
91
|
+
(2) If you use lite mode, there will not have source codes.`}),rr=e=>{let{data:t}=e,[r,s]=(0,f.useState)(""),{t:n}=(0,y.s9)(),l={source:"Source Code",transformed:`Transformed Code(${n("After Compile")})`,parsedSource:`Bundled Code(${n("After Bundled")})`};if(!t)return null;let{path:i}=t;return(0,p.jsx)(E.hX,{text:"",buttonProps:{size:"small",icon:(0,p.jsx)(re,{content:"Open the Codes Box",children:(0,p.jsx)(eB.A,{})}),type:"default"},buttonStyle:{padding:"0 4px"},drawerProps:{destroyOnClose:!0,title:`Code of "${i}"`},children:(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetModuleCodeByModuleId,body:{moduleId:t.id},children:e=>(0,p.jsx)(p.Fragment,{children:e.source||e.parsedSource||e.transformed?(0,p.jsx)(eP.A,{className:"code-size-card",style:{width:"100%"},tabList:Object.keys((0,ea.z7)(e,e=>!e)).map(e=>({tab:e})).map(e=>({...e,tab:l[e.tab],key:e.tab})),defaultActiveTabKey:e.parsedSource?"parsedSource":"source",onTabChange:e=>s(e),tabBarExtraContent:(0,p.jsx)(re,{placement:"bottom",title:(0,p.jsx)(X.A.Title,{level:5,children:"Explain"}),content:(0,p.jsx)(p.Fragment,{children:(0,p.jsxs)("div",{style:{display:"flex",flexDirection:"column",marginBottom:30},children:[(0,p.jsxs)("div",{children:[(0,p.jsx)(X.A.Text,{strong:!0,children:"Source: "}),(0,p.jsx)(X.A.Text,{children:"source code"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)(X.A.Text,{strong:!0,children:"Transformed:"}),(0,p.jsx)(X.A.Text,{children:"Transformed Code (After compile)"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)(X.A.Text,{strong:!0,children:"Bundled Source:"}),(0,p.jsx)(X.A.Text,{children:"Bundled Code (After bundle and tree-shaking)"})]}),(0,p.jsx)("br",{}),(0,p.jsx)(X.A.Text,{strong:!0,children:"More"}),(0,p.jsx)(X.A.Text,{children:n("CodeModeExplain")})]})}),trigger:"hover",children:(0,p.jsx)("a",{href:"#",children:"Explain"})}),styles:{body:{padding:0,overflow:"hidden"}},children:e.parsedSource||e.source||e.transformed?(0,p.jsx)(tu.Cv,{isEmbed:!0,code:r?e[r]:e.parsedSource?e.parsedSource:e.source,filePath:i}):(0,p.jsx)(rt,{})}):(0,p.jsx)(rt,{})})})})},rs=e=>{let{id:t,show:r,setShow:s,cwd:n}=e;return t?(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetAllModuleGraph,body:{},children:e=>(0,p.jsx)(t_,{cwd:n,moduleId:t,modules:e,show:r,setShow:s})}):null},rn="__RESOURCEPATH__",rl=(0,f.memo)(e=>{let{modules:t,chunks:r,filteredModules:s}=e,{sourceSize:n,parsedSize:l,filteredParsedSize:i,filteredSourceSize:a}=(0,f.useMemo)(()=>({sourceSize:(0,ea.xu)(t,e=>e.size.sourceSize),parsedSize:(0,ea.xu)(t,e=>e.size.parsedSize),filteredSourceSize:(0,ea.xu)(s,e=>e.size.sourceSize),filteredParsedSize:(0,ea.xu)(s,e=>e.size.parsedSize)}),[t,s]);return(0,p.jsxs)(J.A,{children:[(0,p.jsx)(t9,{title:`total modules count is ${t.length}, the filtered modules count is ${s.length}`,children:(0,p.jsxs)(J.A,{children:[(0,p.jsxs)(X.A.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules: ",s.length," / ",t.length]}),(0,p.jsx)(eO.A,{})]})}),(0,p.jsx)(Z.A,{type:"vertical"}),(0,p.jsx)(t9,{title:(0,p.jsxs)(J.A,{direction:"vertical",children:[(0,p.jsxs)(X.A.Text,{style:{color:"inherit"},children:["Total modules bundled size: ",(0,y.Xq)(l)]}),(0,p.jsxs)(X.A.Text,{style:{color:"inherit"},children:["Total modules source size: ",(0,y.Xq)(n)]}),(0,p.jsxs)(X.A.Text,{style:{color:"inherit"},children:["Filtered modules bundled size: ",(0,y.Xq)(i)]}),(0,p.jsxs)(X.A.Text,{style:{color:"inherit"},children:["Filtered modules source size: ",(0,y.Xq)(a)]})]}),children:(0,p.jsxs)(J.A,{children:[(0,p.jsxs)(X.A.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules Size:",i===l?(0,y.Xq)(l):`${(0,y.Xq)(i)} / ${(0,y.Xq)(l)}`]}),(0,p.jsx)(eO.A,{})]})}),(0,p.jsx)(Z.A,{type:"vertical"}),(0,p.jsx)(t9,{title:(0,p.jsxs)(J.A,{direction:"vertical",children:[(0,p.jsxs)(X.A.Text,{style:{color:"inherit"},children:["this asset includes ",r.length," chunks:"]}),r.map(e=>(0,p.jsx)(tV.Ex,{label:"chunk",value:e.name},e.name))]}),children:(0,p.jsxs)(J.A,{children:[(0,p.jsxs)(X.A.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Chunks: ",r.length]}),(0,p.jsx)(eO.A,{})]})})]})}),ri={margin:"none",marginInlineEnd:0},ra=e=>{let{color:t,tooltipTitle:r,style:s=ri,children:n}=e;return(0,p.jsx)(t9,{title:(0,p.jsx)(J.A,{children:(0,p.jsx)(X.A.Text,{style:{color:"inherit"},children:r})}),children:(0,p.jsx)(z.A,{color:t,style:s||void 0,children:n})})},ro=e=>{let{moduleCount:t}=e;return(0,p.jsx)(ra,{color:"blue",tooltipTitle:`This is a concatenated container module that includes ${t} modules`,children:"concatenated container"})},rd=e=>{let{size:t}=e;return(0,p.jsx)(ra,{color:"geekblue",tooltipTitle:"The total output size of all the files in this folder. If you enabled minification, this value shows the minified size.",children:`bundled size: ${(0,y.Xq)(t)}`})},rc=e=>{let{size:t}=e;return(0,p.jsx)(ra,{color:"geekblue",style:null,tooltipTitle:"The final output size of this file. If you enabled minification, this value shows the minified size.",children:`bundled size: ${(0,y.Xq)(t)}`})},rh=e=>{let{size:t}=e;return(0,p.jsx)(ra,{color:"orange",style:null,tooltipTitle:"The compressed file size that users actually download, as most web servers use gzip compression.",children:`gzipped: ${(0,y.Xq)(t)}`})},ru=e=>{let{size:t}=e;return(0,p.jsx)(ra,{tooltipTitle:"The total original size of all the files in this folder, before any transformations and minification.",color:"cyan",children:`source size: ${(0,y.Xq)(t)}`})},rp=e=>{let{size:t}=e;return(0,p.jsx)(ra,{color:"cyan",style:null,tooltipTitle:"The original size of this file, before any transformations and minification.",children:`source size: ${(0,y.Xq)(t)}`})},rf=e=>{let{asset:t,chunks:r,modules:s,moduleSizeLimit:n,height:l,root:i}=e,[a,o]=(0,f.useState)(""),[d,c]=(0,f.useState)(!1),[h,u]=(0,f.useState)([]),[m,j]=(0,f.useState)(!1),g=(0,f.useMemo)(()=>{let e=s.slice();if(a){let t=RegExp(a,"i");e=e.filter(e=>t.test(e.path))}return n&&(e=e.filter(e=>e.size.parsedSize>=n)),e},[s,a,n]),y=(0,f.useCallback)(e=>{j(!0),u(e)},[]);return(0,f.useEffect)(()=>{o(""),c(!1)},[t]),(0,f.useEffect)(()=>{c(!1)},[a]),(0,p.jsx)(td.Provider,{value:{moduleJumpList:h,setModuleJumpList:u},children:(0,p.jsxs)(eP.A,{className:"bundle-JPUVg_",title:`Modules of "${t.path}"`,style:l?{"--body-min-height":l+"px"}:void 0,classNames:{body:"bundleBody-vDRay7"},size:"small",children:[s.length?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{children:(0,p.jsx)(rl,{modules:s,chunks:r,filteredModules:g})}),(0,p.jsx)("div",{children:(0,p.jsxs)(J.A,{children:[(0,p.jsx)(tY.E,{placeholder:"search module by keyword",onChange:e=>o(e)},t.path),(0,p.jsx)(x.Ay,{onClick:()=>c(!0),size:"small",icon:(0,p.jsx)(tZ.A,{})})]})}),(0,p.jsx)(rx,{assetPath:t.path,includeModules:s,filteredModules:g,defaultExpandAll:d,moduleKeyword:a,openModuleGraphViewer:y})]}):(0,p.jsx)(eq.A,{description:(0,p.jsx)(X.A.Text,{strong:!0,children:`"${t.path}" doesn't have any modules`})}),(0,p.jsx)(rs,{id:h?.length?h[h.length-1]:"",show:m,setShow:j,cwd:i})]})})},rm=[],rx=(0,f.memo)(e=>{let{filteredModules:t,includeModules:r,defaultExpandAll:s,moduleKeyword:n,openModuleGraphViewer:l,assetPath:i}=e,[a,o]=(0,f.useState)(!1),[d,{height:c,width:h}]=(0,y.Lh)(),u=(0,f.useMemo)(()=>{let e=(0,ea.sg)(()=>{o(!1)},150);return()=>{o(!0),e()}},[]),m=(0,f.useMemo)(()=>{let e=e=>e.replace(/\\/g,"/"),s=new Map,n=[];for(let r of t)r.path&&(s.set(e(r.path),r),n.push(r.path));let i=new Map;for(let t of r)t.path&&i.set(e(t.path),t);let a=e=>l([e]);return(0,y.Bq)({files:n,inlinedResourcePathKey:rn,fileTitle(t,n){let l=s.get(e(t));return l?(0,p.jsx)(rg,{mod:l,basename:n,includeModules:r,onClick:a}):n},dirTitle(t,r){let s=function e(t,r){return t.children&&t.children.forEach(t=>{t.isLeaf?r.push(t[rn]):e(t,r)}),r}(t,[]);if(!s.length)return r;let{parsedSize:n,sourceSize:l}=s.reduce((t,r)=>{let s=i.get(e(r));return s&&(t.sourceSize+=s.size?.sourceSize||0,t.parsedSize+=s.size?.parsedSize||0),t},{sourceSize:0,parsedSize:0});return(0,p.jsx)(rj,{title:r,parsedSize:n,sourceSize:l})},page:"bundle"})},[t,l]);return(0,p.jsx)(t7.Provider,{value:{enabled:!a},children:(0,p.jsx)("div",{className:"bundleTree-ym_nR5",style:{marginTop:20,"--item-height":"30px"},children:(0,p.jsx)("div",{className:"bundleTreeViewport-JRXX4Y",children:(0,p.jsx)("div",{className:"bundleTreeInnerViewport-GsHdIR",ref:d,children:c>0&&(0,p.jsx)(p.Fragment,{children:t.length?(0,p.jsx)(t3,{onScroll:u,selectable:!1,virtual:!0,itemHeight:30,height:c,style:h?{width:h+"px"}:void 0,defaultExpandAll:s||t.length<=20,onExpand:e=>{rm=e},defaultExpandParent:!0,defaultExpandedKeys:rm?.length?rm:1===m.length?[m[0].key]:[],treeData:m,motion:!1},`tree_${n}_${s}_${i}`):(0,p.jsx)(eq.A,{description:(0,p.jsx)(X.A.Text,{strong:!0,children:`"${n}" can't match any modules`})})})})})})})}),rj=(0,f.memo)(e=>{let{title:t,parsedSize:r,sourceSize:s}=e,n=()=>(0,p.jsxs)("div",{className:t1,children:[(0,p.jsx)(re,{content:t,children:(0,p.jsx)(X.A.Text,{className:t2,children:t})}),(0,p.jsx)("div",{className:t5}),(0,p.jsx)(J.A,{children:r>0?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(rd,{size:r}),(0,p.jsx)(ru,{size:s})]}):(0,p.jsx)(ru,{size:s})})]});return(0,p.jsx)("div",{className:t0,children:(0,p.jsx)(t4.tH,{fallbackRender:()=>(0,p.jsx)(t6,{children:n()}),children:n()})})}),rg=(0,f.memo)(e=>{let{mod:t,basename:r,includeModules:s,onClick:n}=e,l=t.kind===F.hp.JT.Concatenation,{parsedSize:i=0,sourceSize:a=0,gzipSize:o=0}=t.size,d=()=>{let e;return(0,p.jsxs)("div",{className:t1,children:[(0,p.jsx)(re,{content:`Open the ${r}’s module reasons tree.`,placement:"bottom",children:(0,p.jsxs)("div",{className:"bundleTreeEntryTitleWrap-pgKUih",onClick:()=>n(t.id),children:[(0,p.jsx)(re,{content:r,children:(0,p.jsx)(X.A.Text,{className:t2,children:r})}),(0,p.jsx)("div",{className:t5})]})}),(0,p.jsxs)(J.A,{children:[(()=>{if(0!==i){let e=(0,p.jsx)(rp,{size:a}),t=(0,p.jsx)(rc,{size:i});return"number"==typeof o?(0,p.jsx)(re,{placement:"bottom",content:e,children:(0,p.jsxs)(J.A,{direction:"horizontal",children:[t,(0,p.jsx)(rh,{size:o})]})}):(0,p.jsxs)(J.A,{direction:"horizontal",children:[t,e]})}return 0!==a?(0,p.jsx)(rp,{size:a}):null})(),l&&(0,p.jsx)(ro,{moduleCount:t.modules?.length||0}),(e=!l&&0===i&&s.filter(e=>e!==t&&e.modules&&e.modules.indexOf(t.id)>-1))&&e.length?(0,p.jsx)(t9,{title:(0,p.jsxs)(J.A,{direction:"vertical",children:[(0,p.jsx)(X.A.Text,{style:{color:"inherit"},children:"This module is concatenated into another container module:"}),e.map(e=>{let{id:r,path:s}=e;if((0,y.XC)(s))return(0,p.jsx)(X.A.Paragraph,{ellipsis:{rows:4},style:{color:"inherit",maxWidth:"100%"},code:!0,children:s},r);let n=(0,tJ.relative)((0,tJ.dirname)(t.path),s);return n.startsWith("javascript;charset=utf-8;base64,")?(0,p.jsx)(X.A.Text,{style:{color:"inherit",maxWidth:"100%"},code:!0,children:"."===n[0]?n:`./${n}`},r):(0,p.jsx)(X.A.Text,{style:{color:"inherit"},code:!0,children:"."===n[0]?n:`./${n}`},r)})]}),children:(0,p.jsx)(z.A,{color:"green",children:"concatenated"})}):null,(0,p.jsx)(rr,{data:t})]})]})};return(0,p.jsx)("div",{className:t0,children:(0,p.jsx)(t4.tH,{fallbackRender:()=>(0,p.jsx)(t6,{children:d()}),children:d()})})});var ry=r(2002),rA=r(79757),rv=r(88693),rb=r(304);r(484);let{Search:rS}=te.A,rz=e=>{let{onModuleClick:t,onClose:r,open:s,setOpen:n,isIcon:l=!1}=e,[i,a]=(0,f.useState)(!1),[o,d]=(0,f.useState)(""),[c,h]=(0,f.useState)(""),u=void 0!==s?s:i,m=n||a,j=(0,f.useCallback)(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[s,n]=t;d(s)},[]),g=()=>{m(!0)},y=()=>{m(!1),r?.()},A=()=>{m(!1),r?.()};return(0,p.jsxs)(p.Fragment,{children:[l?(0,p.jsx)(tl.A,{onClick:g}):(0,p.jsx)(x.Ay,{className:"searchBtn-ZhRlk8",color:"cyan",onClick:g,children:"Search Module"}),(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetSearchModules,body:{moduleName:String(o)},children:e=>{let s=Object.keys(e)[0];return(0,p.jsx)(p.Fragment,{children:(0,p.jsxs)(rA.A,{className:"modal-jTgoC2",title:"Search Modules",onOk:y,onCancel:A,open:u,width:"65rem",footer:"",children:[(0,p.jsx)(rS,{placeholder:"input search module name",allowClear:!0,onSearch:j,style:{width:500}}),s?(0,p.jsx)(e$.A,{defaultActiveKey:s,tabPosition:"top",onChange:e=>h(e),items:Object.keys(e).map((n,l)=>({label:e[n],key:n,children:rw(o,c||s,e=>{t?.(e),m(!1),r?.()})}))}):(0,p.jsx)(eq.A,{description:"No modules found."})]})})}})]})},rw=(e,t,r)=>(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetSearchModuleInChunk,body:{moduleName:String(e),chunk:t},children:t=>(0,p.jsx)(p.Fragment,{children:t?.length!==0?(0,p.jsx)(rv.A,{className:"list-osNsTS",loading:!t.length,itemLayout:"horizontal",pagination:{position:"bottom",align:"center"},dataSource:t,renderItem:t=>{let s=t.relativePath.split(e);return(0,p.jsx)(rv.A.Item,{className:r&&"listItemInteractive-AC3tqb",onClick:r?()=>r(t):void 0,children:(0,p.jsx)(rb.A,{avatar:!0,title:!1,loading:!t.path,active:!0,children:(0,p.jsx)(rv.A.Item.Meta,{description:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(X.A.Text,{code:!0,children:"Module:"}),s.map((t,r)=>r<s.length-1?(0,p.jsxs)(X.A.Text,{style:{fontWeight:200},children:[t,(0,p.jsx)(X.A.Text,{strong:!0,style:{fontWeight:600},children:e},`${t}-${r}-strong`)]},`${t}-${r}`):(0,p.jsx)(X.A.Text,{style:{fontWeight:200},children:t}))]})},`${t.path}-${t.relativePath}-meta`)})},`${t.path}-${t.relativePath}`)}}):(0,p.jsx)(eq.A,{})})}),{Option:rk}=ey.A,rC=(0,f.memo)(e=>{let{cwd:t,summary:r,entryPoints:s}=e,[n,l]=(0,f.useState)([]),[i,a]=(0,f.useState)(0),[o,d]=(0,f.useState)(""),[c,h]=(0,f.useState)(0),[u,m]=(0,f.useState)(!1),[x,j]=(0,f.useState)(""),[g,A]=(0,f.useState)(""),[v,b]=(0,f.useState)(!1),[S,z]=(0,f.useState)(null),{showCode:w,codeDrawerComponent:k}=(0,tK.Y)("Do not have the codes of assets. If you use the lite or brief mode, there will have codes."),{t:C}=(0,y.s9)(),N=r.all.total.files,E=(0,f.useCallback)(e=>t=>{"module"===e?j(t):"chunk"===e&&A(t)},[]),_=e=>(0,p.jsxs)(ey.A,{defaultValue:"kb",onChange:E(e),children:[(0,p.jsx)(rk,{value:"kb",children:"KB"}),(0,p.jsx)(rk,{value:"mb",children:"MB"})]}),O=(0,f.useCallback)((0,ea.sg)(e=>{a("mb"===x?1024*e*1024:1024*e)},300),[]),B=(0,f.useCallback)((0,ea.sg)(e=>{h("mb"===g?1024*e*1024:1024*e)},300),[]),D=(0,f.useMemo)(()=>{let e=N.slice();return o&&(e=e.filter(e=>e.path.indexOf(o)>-1)),v&&(e=e.filter(e=>eI(e.path))),c>0&&(e=e.filter(e=>e.size>=c)),n.length&&(e=e.filter(e=>!!n.some(t=>t.assets.includes(e.path)))),e.sort((e,t)=>{let r=+(e.path.indexOf("/")>-1);return(t.path.indexOf("/")>-1)-r})},[N,n,o,c,v]);(0,f.useEffect)(()=>{if(S&&D.some(e=>e.path===S))return;let e=D.find(e=>eI(e.path))??D[0];z(e?.path??null)},[S,D]);let P=(0,f.useMemo)(()=>(0,ry.kw)(D),[D]),$=(0,f.useMemo)(()=>(0,y.Bq)({files:D.map(e=>e.path).filter(Boolean),fileTitle(e,t){let r=(0,ry.yF)(P,e,t);if("string"==typeof r)return r;let{size:s,initial:n,path:l,content:i}=r;return(0,p.jsxs)("div",{className:"assetBox-Y8vGse",onClick:()=>{z(l)},children:[(0,p.jsx)(tX.i,{text:t,keyword:"",className:"fileText-W0quVZ"}),(0,p.jsxs)(J.A,{size:"small",className:"assetsTag-eAVvyj",children:[(0,p.jsx)(Z.A,{type:"vertical"}),(0,p.jsx)(X.A.Text,{style:{color:"var(--color-data-bundled)"},children:(0,y.Xq)(s)}),(0,p.jsx)(Z.A,{type:"vertical"}),n?(0,p.jsx)(X.A.Text,{style:{color:"var(--color-data-initial)"},children:"initial"}):null,(0,p.jsx)(tU.A,{style:{fontSize:14,padding:0},onClick:()=>w({code:i,filePath:l})})]})]})}}),[P,D,w]);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("div",{className:"treeGraph-LllSyP",children:[(0,p.jsxs)(eg.A,{align:"middle",gutter:[20,20],children:[s&&s.length?(0,p.jsx)(eF.A,{children:(0,p.jsx)(ey.A,{mode:"multiple",value:n.map(e=>e.name),style:{minWidth:230,width:"auto",maxWidth:300},placeholder:"filter assets by entry point",onChange:e=>{l(e.map(e=>s.find(t=>t.name===e)).filter(Boolean))},allowClear:!0,onClear:()=>{l([])},children:s.map(e=>(0,p.jsx)(ey.A.Option,{value:e.name,children:(0,p.jsx)(J.A,{children:(0,p.jsx)(tV.Ex,{label:e.name,value:(0,y.Xq)(e.size),tooltip:e.name})})},e.name))})}):null,(0,p.jsx)(eF.A,{children:(0,p.jsx)(tY.E,{placeholder:"search asset by keyword",onChange:e=>{d(e),m(!1)}})}),(0,p.jsx)(eF.A,{children:(0,p.jsx)(tt.A,{checked:v,onChange:e=>{b(e.target.checked),m(!1)},children:"JS only"})}),(0,p.jsx)(eF.A,{span:6,children:(0,p.jsx)(tH.A,{min:0,style:{width:"95%"},addonBefore:(0,p.jsxs)(J.A,{children:[(0,p.jsx)(X.A.Text,{style:{fontSize:14,color:"inherit"},children:"Asset Size"}),(0,p.jsx)(ei.A,{title:C("filter the output assets which size is greater than the input value"),style:{marginLeft:3},children:(0,p.jsx)(eO.A,{style:{color:"var(--text-color-secondary)"}})})]}),onChange:e=>B(Number(e)),addonAfter:_("chunk")})}),(0,p.jsx)(eF.A,{span:6,children:(0,p.jsx)(tH.A,{min:0,style:{width:"95%"},addonBefore:(0,p.jsxs)(J.A,{children:[(0,p.jsx)(X.A.Text,{style:{fontSize:14,color:"inherit"},children:"Module Size"}),(0,p.jsx)(ei.A,{title:C("filter the modules which size is greater than the input value"),style:{marginLeft:3},children:(0,p.jsx)(eO.A,{style:{color:"var(--text-color-secondary)"}})})]}),onChange:e=>{O(Number(e))},addonAfter:_("module")})})]}),(0,p.jsx)(eg.A,{children:(0,p.jsx)(rz,{})}),D.length?(0,p.jsxs)("div",{className:"assetDetailRoot-dgQPS5",children:[(0,p.jsx)("div",{className:e0,children:(0,p.jsx)(eP.A,{className:"assetDetailFileTreeRoot-RBNnA8",classNames:{body:"assetDetailFileTreeBody-kRMd_h"},title:(0,p.jsxs)(J.A,{children:[(0,p.jsx)(X.A.Text,{children:C("Output Assets List")}),(0,p.jsx)(Z.A,{type:"vertical"}),(0,p.jsx)(ei.A,{title:`total assets count is ${N.length}, the filtered assets count is ${D.length}`,children:(0,p.jsxs)(X.A.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:[D.length," / ",N.length]})}),(0,p.jsx)(Z.A,{type:"vertical"}),(0,p.jsx)(X.A.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:(0,y.Xq)((0,ea.xu)(D,e=>e.size))})]}),size:"small",children:(0,p.jsx)("div",{className:"assetDetailFileTreeViewport-USNF6e",children:(0,p.jsx)("div",{className:"assetDetailFileTreeScrollArea-IqDzT3",children:(0,p.jsx)(T.h,{className:"assets-ll1P_L",treeData:$,autoExpandParent:!0,defaultExpandAll:u||D.length<=20},`tree_${o}_${u}`)})})})}),(0,p.jsx)("div",{className:e0,children:S?(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetAssetDetails,body:{assetPath:S},children:e=>(0,p.jsx)(rf,{asset:e.asset,chunks:e.chunks,modules:e.modules,moduleSizeLimit:i,root:t})}):(0,p.jsx)(eP.A,{children:(0,p.jsx)(eq.A,{description:(0,p.jsx)(X.A.Text,{strong:!0,children:"Click the file path on the left to show the modules of the asset"})})})})]}):(0,p.jsx)(eq.A,{})]}),k]})}),rN=e=>{let{errors:t,cwd:r,summary:s,entryPoints:n}=e,[l,i]=(0,y.yR)("bundle-size-tabs-card-expanded",!1),[a,o]=(0,y.yR)("bundle-size-tabs-default-tab","tree"),d=(0,f.useId)(),c=l?"Shrink card":"Expand card",{isLight:h}=(0,y.DP)(),u=h?"white":void 0;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(f.Activity,{mode:l?"hidden":"visible",children:(0,p.jsx)(eQ,{cwd:r,errors:t,summary:s})}),(0,p.jsx)(eP.A,{className:"root-DgXuux",classNames:{body:"rootBody-xGjkG7"},id:d,children:(0,p.jsx)(e$.A,{activeKey:a,onChange:o,size:"middle",className:"tabsRoot-gPEaze",tabBarExtraContent:{right:(0,p.jsx)(ei.A,{title:c,children:(0,p.jsx)(x.Ay,{"aria-controls":d,"aria-expanded":l,"aria-label":c,onClick:()=>i(!l),icon:l?(0,p.jsx)(eM.A,{}):(0,p.jsx)(e_.A,{}),size:"small"})},String(l))},items:[{key:"tree",label:(0,p.jsxs)(J.A,{children:[(0,p.jsx)(X.A.Text,{children:"Tree Graph"}),(0,p.jsx)(ei.A,{overlayStyle:{maxWidth:380},overlayInnerStyle:{marginLeft:16,padding:10},color:u,title:(0,p.jsxs)(J.A,{direction:"vertical",color:u,size:"middle",children:[(0,p.jsx)(eg.A,{children:(0,p.jsxs)(eF.A,{children:[(0,p.jsx)(z.A,{color:"cyan",style:{margin:0},children:"initial"}),(0,p.jsx)(X.A.Text,{style:{marginLeft:4},children:"Identify whether the chunk is an initial chunk."})]})}),(0,p.jsx)(eg.A,{children:(0,p.jsxs)(eF.A,{children:[(0,p.jsx)(z.A,{color:"green",style:{margin:0},children:"concatenated"}),(0,p.jsx)(X.A.Text,{style:{marginLeft:4},children:"Identify whether the module is a concatenated module"}),(0,p.jsx)(ei.A,{overlayStyle:{maxWidth:408},placement:"bottom",color:u,title:(0,p.jsx)(J.A,{direction:"vertical",color:"white",children:(0,p.jsx)(eg.A,{children:(0,p.jsxs)(eF.A,{children:[(0,p.jsx)(X.A.Text,{strong:!0,children:"Concatenated Module"}),(0,p.jsx)(X.A.Text,{children:': A performance optimization where multiple modules are merged (or "hoisted") into a single scope instead of wrapping each module in separate function closures. This reduces the bundle size and improves runtime performance by minimizing function call overhead.'})]})})}),children:(0,p.jsx)(X.A.Text,{type:"secondary",style:{marginLeft:4},children:(0,p.jsx)(eO.A,{})})}),(0,p.jsx)(X.A.Text,{children:"."})]})}),(0,p.jsx)(eg.A,{children:(0,p.jsxs)(eF.A,{children:[(0,p.jsx)(x.Ay,{size:"small",icon:(0,p.jsx)(eB.A,{})}),(0,p.jsx)(X.A.Text,{style:{marginLeft:4},children:"Open the code."})]})}),(0,p.jsx)(eg.A,{children:(0,p.jsxs)(eF.A,{children:[(0,p.jsx)(x.Ay,{size:"small",icon:(0,p.jsx)(eD.A,{})}),(0,p.jsx)(X.A.Text,{style:{marginLeft:4},children:"View the module dependency, that is, module reasons in stats.json."})]})}),(0,p.jsx)(eg.A,{children:(0,p.jsxs)(eF.A,{children:[(0,p.jsx)(z.A,{color:"purple",children:"Bundled: 15.77 KB"}),(0,p.jsx)(X.A.Text,{children:"The final size of the output files after processing, bundling, and optimization. This is what is delivered to the browser."})]})}),(0,p.jsx)(eg.A,{children:(0,p.jsxs)(eF.A,{children:[(0,p.jsx)(z.A,{color:"orange",children:"Source: 60.46 KB"}),(0,p.jsx)(X.A.Text,{children:"The original size of your source code files before any processing or transformations. This is the raw size of your code as you wrote it."})]})})]}),children:(0,p.jsx)(eO.A,{style:{color:"var(--text-color-secondary)"}})})]}),children:(0,p.jsx)(rC,{entryPoints:n,cwd:r,summary:s})},{key:"treemap",label:"Treemap",children:(0,p.jsx)(rT,{})}],defaultActiveKey:"tree"})})]})},rT=(0,f.memo)(()=>(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetProjectInfo,children:e=>{let{isRspack:t,hasSourceMap:r}=Y.l5.fM(e.configs);return(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetSummaryBundles,children:e=>{let s=e.filter(e=>{var t;let r;return r=(t=e.asset.path).toLowerCase().split(".").pop()||"",eI(t)||"css"===r||"html"===r}).map(e=>{let t=(0,y.h4)(e.modules),r=e.modules.length>0;return{name:e.asset.path,sourceSize:r?t.sourceSize??0:e.asset.size,bundledSize:e.asset.size,gzipSize:e.asset.gzipSize??0,children:t.children}});return(0,p.jsx)(tq,{treeData:s,bundledSize:r||t})}})}})),rE=()=>{let{project:e}=(0,eN.L)();if(!e)return null;let{root:t,errors:r}=e;return(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetAssetsSummary,body:{withFileContent:!0},children:e=>(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetEntryPoints,children:s=>(0,p.jsx)(rN,{cwd:t,errors:r,summary:e,entryPoints:s})})})},rM="BundleSize",r_=F.Kj.EH.BundleSize,rO=()=>(0,p.jsx)(rE,{});var rB=r(51747),rD=r(95194),rP=r(5525);let r$=(0,M.eN)({api:F.hp.uT.n.GetProjectInfo,responsePropName:"project",Component:e=>{let{project:t}=e,{root:r}=t,[s,n]=(0,f.useState)({filename:"",loaders:[],layer:""}),[l]=(0,f.useState)(0),{theme:i}=(0,y.DP)();return(0,p.jsxs)(J.A,{direction:"vertical",style:{width:"100%"},children:[(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetLoaderNames,children:e=>(0,p.jsx)(rB.F,{onChange:n,loaderNames:e})}),(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetLoaderChartData,children:e=>{let t=e.filter(e=>(0,rP.ak)(e.resource,e.loader,s.filename,s.loaders,e.layer,s?.layer));return 0===l?(0,p.jsx)(rD.z,{loaders:t,cwd:r},i):(0,p.jsx)(p.Fragment,{})}})]})}});var rF=r(92328),rR=r(77673);let rI="Loaders Timeline",rL=F.Kj.EH.LoaderOverall,rW=()=>{let{t:e}=(0,rR.B)();return(0,p.jsx)(g.Zp,{title:(0,p.jsxs)(J.A,{align:"baseline",children:[(0,p.jsx)(X.A.Title,{level:5,style:{margin:0},children:"Loader Timeline"}),(0,p.jsx)(ta.A,{content:(0,p.jsxs)("div",{children:[e("AsyncLoaderInfo"),(0,p.jsx)("a",{href:"https://rsdoctor.rs/guide/more/faq#cssextractrspackplugin-%E7%9A%84-loader-%E8%80%97%E6%97%B6%E8%BF%87%E9%95%BF%E9%97%AE%E9%A2%98",target:"_blank",rel:"noreferrer",children:e("Details")})]}),title:"Info",children:(0,p.jsx)(z.A,{icon:(0,p.jsx)(rF.A,{}),color:"warning",children:"Info"})})]}),extra:(0,p.jsx)(ez,{defaultKeys:["module"]}),children:(0,p.jsx)(r$,{})})};var rq=r(44953),rG=r(17886),rU=r(75040),rH=r(60880);let rK=(0,M.eN)({api:F.hp.uT.n.LoadDataByKey,body:{key:"root"},responsePropName:"cwd",Component:e=>{let{cwd:t}=e,[r,s]=(0,f.useState)({filename:"",loaders:[],layer:""});return(0,p.jsx)(rG.Q.Consumer,{children:e=>(0,p.jsx)(rq.Ay,{locale:(0,y.JK)(e.locale),theme:{token:{padding:16,fontSize:14}},children:(0,p.jsxs)("div",{className:rH.A.loaderAnalysis,children:[(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetLoaderNames,children:e=>(0,p.jsx)(rB.F,{onChange:e=>s(e),loaderNames:e})}),(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetLoaderFileTree,children:e=>(0,p.jsx)(rU.h,{filename:r.filename,filetree:e,loaders:r.loaders,layer:r.layer,cwd:t})})]})})})}});var rV=r(25205);let rY="Loaders Analysis",rX=F.Kj.EH.LoaderAnalysis,rZ=()=>{let e=(0,y.al)();return(0,p.jsx)(g.Zp,{title:(0,p.jsxs)(J.A,{align:"baseline",children:[(0,p.jsx)(X.A.Title,{level:5,style:{margin:0},children:"Loader Analysis"}),(0,p.jsx)(ta.A,{content:(0,p.jsxs)("div",{children:[(0,rV.t)("AsyncLoaderInfo"),(0,p.jsx)("a",{href:"https://rsdoctor.rs/guide/more/faq#cssextractrspackplugin-%E7%9A%84-loader-%E8%80%97%E6%97%B6%E8%BF%87%E9%95%BF%E9%97%AE%E9%A2%98",target:"_blank",rel:"noreferrer",children:(0,rV.t)("Details")})]}),title:"Info",children:(0,p.jsx)(z.A,{icon:(0,p.jsx)(rF.A,{}),color:"warning",children:"Info"})})]}),extra:(0,p.jsx)(ez,{defaultKeys:["module","resolve"]}),bodyStyle:{paddingTop:e.padding,height:800},children:(0,p.jsx)(rK,{})})};var rJ=r(58073),rQ=r(91555);r(35479);let r0="Plugins Analysis",r1=F.Kj.EH.Plugins,r2=()=>{let[e,t]=(0,f.useState)([]),[r,s]=(0,f.useState)([]);return(0,p.jsx)("div",{children:(0,p.jsx)(eP.A,{title:"Plugins Overall",bodyStyle:{paddingTop:20/3},extra:(0,p.jsx)(ez,{defaultKeys:["plugins"]}),children:(0,p.jsxs)(J.A,{direction:"vertical",style:{width:"100%",padding:"0 30px"},children:[(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetPluginSummary,children:e=>{let{hooks:r,tapNames:n}=e;return(0,p.jsxs)(J.A,{style:{marginBottom:10},children:[(0,p.jsxs)(te.A.Group,{compact:!0,children:[(0,p.jsxs)(x.Ay,{children:[(0,p.jsx)(rJ.A,{}),(0,p.jsx)(X.A.Text,{children:"Plugin Tap Names"})]}),(0,p.jsx)(ey.A,{mode:"multiple",allowClear:!0,className:"plugin-select",style:{width:300},popupMatchSelectWidth:!0,onChange:e=>{t(e)},children:n.map(e=>(0,p.jsx)(ey.A.Option,{label:e,value:e,children:e},e))})]}),(0,p.jsxs)(te.A.Group,{compact:!0,children:[(0,p.jsxs)(x.Ay,{children:[(0,p.jsx)(rQ.A,{}),(0,p.jsx)(X.A.Text,{children:"Hooks"})]}),(0,p.jsx)(ey.A,{mode:"multiple",allowClear:!0,className:"plugin-select",style:{width:300},popupMatchSelectWidth:!0,onChange:e=>{s(e)},children:r.map(e=>(0,p.jsx)(ey.A.Option,{label:e,value:e,children:e},e))})]})]})}}),(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetPluginData,body:{hooks:r,tapNames:e},children:e=>(0,p.jsx)(eo,{dataSource:e})})]})})})};var r5=r(24761),r4=r(87467);let r3=e=>{let{filepath:t,before:r,after:s,resolvers:n}=e;return(0,p.jsx)(eF.A,{flex:1,children:(0,p.jsx)(e$.A,{defaultActiveKey:"diff",items:[{key:"diff",label:"Resolve Diff Viewer",children:(0,p.jsx)(eP.A,{styles:{body:{padding:0,overflow:"hidden"}},children:(0,p.jsx)(tu.Mh,{style:{height:785},isEmbed:!0,originalFilePath:t,modifiedFilePath:t,original:r,modified:s})})},{key:"details",label:"Resolve Details",children:(0,p.jsx)(eP.A,{children:(0,p.jsx)(el.A,{style:{width:"100%",height:735,overflowY:"scroll",wordBreak:"break-all"},size:"small",pagination:!1,bordered:!0,rowKey:e=>e.request,columns:[{title:"Source Code",width:200,render:(e,t)=>(0,p.jsx)(X.A.Text,{copyable:!0,children:(0,p.jsx)(X.A.Text,{code:!0,strong:!0,children:t.request})})},{title:"Duration",width:80,render:(e,t)=>(0,p.jsx)(X.A.Text,{strong:!0,children:(0,y.a4)(t.costs)}),sorter:(e,t)=>e.costs-t.costs,sortDirections:["descend","ascend"]},{title:"Resolve Result",render:(e,t)=>Y.xR.Iu(t)?(0,p.jsx)(X.A.Text,{copyable:!0,children:t.result}):(0,p.jsx)(r5.A,{style:{color:"#f50"}})}],dataSource:n})})}]})})},r7=e=>{let{resolver:t,cwd:r}=e,[s,n]=(0,f.useState)(""),l="/node_modules/",i=(0,f.useMemo)(()=>t.map(e=>e.issuerPath).filter(Boolean),[t]),a=(0,f.useMemo)(()=>i.filter(t=>!e.filename||t.indexOf(e.filename)>-1),[e.filename,i]),o=a.length&&a.every(e=>e.indexOf(l)>-1),d=(0,f.useMemo)(()=>(0,y.Bq)({files:a.length?a:i,cwd:r,fileTitle:(e,t)=>(0,p.jsx)("div",{onClick:()=>n(e),children:t})}),[e.filename]);return(0,p.jsxs)(eg.A,{justify:"start",align:"top",wrap:!1,gutter:20,children:[(0,p.jsx)(eF.A,{span:7,children:(0,p.jsx)(eP.A,{title:"Files",children:(0,p.jsx)(T.h,{style:{width:"100%",height:735,overflow:"scroll"},treeData:d,defaultExpandedKeys:(0,y.ME)(d,o?1:4,o?void 0:e=>{let t=(0,ea.Jt)(e,"__RESOURCEPATH__").indexOf(l)>-1;return!!(a.length&&a.every(e=>e.indexOf(l)>-1))||!t})},`tree_${e.filename}`)})}),s&&(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetResolverFileDetails,body:{filepath:s},children:e=>(0,p.jsx)(r3,{...e})})]})},r6=(0,M.eN)({api:F.hp.uT.n.GetProjectInfo,responsePropName:"project",Component:e=>{let{project:t}=e,{root:r}=t,[s,n]=(0,f.useState)("");return(0,p.jsxs)("div",{style:{width:"100%"},children:[(0,p.jsx)(J.A,{style:{marginTop:20,marginBottom:20},children:(0,p.jsx)(tY.E,{icon:(0,p.jsx)(r4.A,{}),label:"Filename",placeholder:"search filename by keyword",onChange:e=>n(e)})}),(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetResolverFileTree,children:e=>(0,p.jsx)(r7,{filename:s,resolver:e,cwd:r})})]})}}),r8="ModuleResolve",r9=F.Kj.EH.ModuleResolve,se=()=>(0,p.jsx)("div",{children:(0,p.jsx)(eP.A,{title:"Webpack Resolver Analysis",extra:(0,p.jsx)(ez,{defaultKeys:["resolve","resolveLoader"]}),bodyStyle:{paddingTop:0},children:(0,p.jsx)(r6,{})})});var st=r(75921);let sr=F.Kj.EH.RuleIndex,ss=()=>{let e=(0,y.xF)()[F.jO.gh.UrlQueryForErrorCode]||"",[t,r]=(0,f.useState)(F.jO.bW[e]),s=Object.values(F.jO.bW);return(0,f.useEffect)(()=>{window.scrollTo({top:0})},[]),(0,p.jsxs)(eg.A,{gutter:10,children:[(0,p.jsx)(eF.A,{span:8,children:(0,p.jsx)(eP.A,{title:(0,p.jsx)(eb.h,{text:"list of the error codes."}),bordered:!0,children:(0,p.jsx)(J.A,{direction:"vertical",children:s.map((e,s)=>(0,p.jsxs)(J.A,{style:{marginTop:10*(0!==s),cursor:"pointer"},onClick:()=>r(e),align:"center",children:[(0,p.jsx)(to.A,{status:"default"}),(0,p.jsx)(X.A.Text,{code:!0,children:(0,p.jsx)("a",{children:e.code})}),(0,p.jsx)(X.A.Text,{style:{color:t&&t.code===e.code?"#1890ff":void 0},children:e.title})]},e.code))})})}),(0,p.jsx)(eF.A,{span:16,children:t?(0,p.jsx)(eP.A,{title:(0,p.jsxs)(eg.A,{justify:"space-between",children:[(0,p.jsxs)(J.A,{children:[(0,p.jsx)(X.A.Text,{code:!0,children:t.code}),(0,p.jsx)(X.A.Text,{children:t.title})]}),(0,p.jsx)("div",{children:(0,p.jsx)(z.A,{children:t.category})})]}),bodyStyle:{paddingTop:0},bordered:!0,children:(0,p.jsx)(X.A.Paragraph,{children:"markdown"===t.type?(0,p.jsx)(st.oz,{children:t.description}):(0,p.jsx)(X.A.Text,{children:t.description})})}):(0,p.jsx)(eP.A,{title:"This page lists all the error codes emitted by the Rsdoctor.",bordered:!0,children:(0,p.jsx)(X.A.Text,{children:"click the error code in left bar to show more details."})})})]})};var sn=r(44462),sl=r(54378),si=r(21344),sa=r(18345);r(67322);let so=F.Kj.EH.TreeShaking,sd=(0,M.ug)(y.Cj,[["moduleGraph","data"],["root","cwd"]],e=>{let{data:t,cwd:r}=e,s=(0,y.mB)(t);if(0===s.size())return(0,p.jsx)(si.$,{});let[n,l]=(0,f.useState)(""),[i,a]=(0,f.useState)(1),[o,d]=(0,f.useState)([]),[c,h]=(0,f.useState)("side-effect"),u=(0,f.useMemo)(()=>s.getModules().filter(e=>e.kind===F.hp.JT.Normal&&tQ().basename(e.path).includes(n)),[n]),m=(0,f.useMemo)(()=>u.find(e=>e.isEntry),[]),[x,j]=(0,f.useState)(m||u?.length&&u?.[0]),g=(0,sn.EV)(u,s,n,x,e=>{A(u.find(t=>t.path===e),[])},r),A=(e,t,r)=>{j(e),d(t.slice()),Y.AP.Et(r)&&a(r)};return(0,p.jsxs)(eP.A,{title:"Tree Shaking Analysis",bodyStyle:{paddingTop:0},className:"tree-shaking-page",children:[(0,p.jsxs)(eg.A,{justify:"space-between",align:"middle",style:{marginBottom:20,marginTop:20},children:[(0,p.jsx)(tY.E,{icon:(0,p.jsx)(r4.A,{}),width:400,label:"FileName",placeholder:"search filename by keyword",style:{width:"auto"},onChange:e=>l(e)}),(0,p.jsxs)(e9.A.Group,{value:c,onChange:e=>{let{target:t}=e;return h(t.value)},children:[(0,p.jsx)(e9.A.Button,{value:"side-effect",children:"SideEffects"}),(0,p.jsx)(e9.A.Button,{value:"export",children:"Export Variables"})]})]}),(0,p.jsxs)(eg.A,{justify:"space-between",align:"top",wrap:!1,gutter:[20,20],children:[(0,p.jsx)(eF.A,{span:7,children:(0,p.jsx)(eP.A,{title:`Total Files: ${u.length}`,className:"tree-shaking-files-box",children:(0,p.jsx)(T.h,{style:{height:"80%"},className:"tree-shaking-files",selectedKeys:x?[x.path]:[],defaultExpandedKeys:(0,sn.ut)(g),treeData:g,expandAction:"click"})})}),(0,p.jsx)(eF.A,{span:9,children:(0,p.jsx)(M.zW,{api:F.hp.uT.n.GetModuleCodeByModuleId,body:{moduleId:x.id},children:e=>(0,p.jsx)(sl.B,{module:x,moduleGraph:s,ranges:o,toLine:i,setEditorData:A,source:e})})}),(0,p.jsx)(eF.A,{flex:1,children:(0,p.jsx)(sa.oK,{kind:c,setEditorData:A,module:x,moduleGraph:s})})]})]})});var sc=r(28009),sh=r(53225),su=r(94539),sp=r(68122),sf=r(71803),sm=r(90979);let sx=[F._8.z.Overall,F._8.z.BundleSize],sj=(e,t)=>{let r,s;window[F.YM.tQ]=e,window[F.YM.tQ].enableRoutes=t;let n=(r=`//${location.host}${location.pathname}#/overall`,s=t&&t.length>0?`?${F.Kj.H9.EnableRoutes}=${encodeURIComponent(JSON.stringify(t))}`:"",`${r}${s}`);location.href=n,su.Ay.success("JSON data loaded successfully!")},sg=async e=>{try{let t=await (0,sm.k)([e]);if(t&&t[0])sj(t[0].data,sx);else throw Error("Invalid manifest data")}catch(t){let e=t instanceof Error?t.message:"Unknown error";throw su.Ay.error(`Failed to load Rspack stats: ${e}`),t}},sy=F.Kj.EH.Uploader,sA=()=>{let[e,t]=(0,f.useState)(!1),r=async e=>{if(e){t(!0);try{let t=await (0,y.jC)(e);if(!t||"object"!=typeof t)throw Error("Invalid JSON format");if((0,sm.A)(t))await sg(t);else try{let e=t.clientRoutes||sx;sj(t.data,e)}catch(t){let e=t instanceof Error?t.message:"Unknown error";su.Ay.error(`Failed to load manifest data: ${e}`),console.error("Failed to load manifest data:",t)}}catch(t){let e=t instanceof Error?t.message:"Unknown error";su.Ay.error(`Upload failed: ${e}`),console.error("Upload error:",t)}finally{t(!1)}}};return(0,p.jsx)(sp.A,{spinning:e,tip:"uploading...",children:(0,p.jsxs)(sf.A.Dragger,{multiple:!1,showUploadList:!1,accept:".json",onChange:e=>{let{file:t}=e;r(t)},style:{width:"100%"},beforeUpload:()=>!1,children:[(0,p.jsx)("p",{className:"ant-upload-drag-icon",children:(0,p.jsx)(sh.A,{})}),(0,p.jsx)("p",{className:"ant-upload-text",children:"Click or drag JSON file to this area to upload and analyze your stats.json or rsdoctor's rsdoctor-data.json."}),(0,p.jsxs)("p",{className:"ant-upload-hint",children:["The rsdoctor's rsdoctor-data.json is in brief mode, and use the file type: ['json'].",(0,p.jsx)("a",{href:"https://rsdoctor.rs/zh/config/options/output#mode-brief",target:"_blank",rel:"noopener noreferrer",children:"Check the details."})]}),(0,p.jsx)("p",{className:"ant-upload-hint",children:"By default, Rsdoctor will emit the rsdoctor-data.json to the output folder."})]})})}},35784(e,t,r){r.d(t,{Bq:()=>m,ME:()=>p,Rz:()=>g,Zb:()=>x,h4:()=>A,jC:()=>j});var s=r(64558),n=r(67782),l=r(94539),i=r(85326),a=r(50143),o=r(31273),d=r(62561),c=r(36163),h=r(21290);let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",r=e?.indexOf(t);return -1===r?null:0===r?t+(u(e?.slice(1),t)||""):e?.slice(0,r)};function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>!0,s=0,n=[],l=e;for(;s<t&&(l.filter(r).forEach(e=>{e.isLeaf||n.push(e.key)}),(l=l.reduce((e,t)=>e.concat(t.children||[]),[])).length);)s++;return n}let f="__BASENAME__";function m(e){let{files:t,inlinedResourcePathKey:r="__RESOURCEPATH__",fileTitle:s=(e,t)=>t,dirTitle:l=(e,t)=>t,page:i="other"}=e,a=t.map(e=>e.replace(/\\/g,"/")),o=RegExp("/"),d=a.reduce((e,t)=>{let l=u(t,"/"),a=l?t?.slice(l.length+1):t,d=e;for(;l;){let e=d.children.find(e=>e.title===l);if(!e){let t=[d[r],l].filter(Boolean).join("/");e={title:l,icon:"bundle"===i?e=>y(e,!1):null,key:t,children:[],[r]:t,[f]:l},d.children.push(e)}d=e,a=(l=u(a,"/"))?a.slice(l.length).replace(o,""):a}return d.children.some(e=>(0,n.Jt)(e,r)===t)||d.children.push({title:()=>s(t,a),icon:"bundle"===i?e=>y(e):null,key:t,isLeaf:!0,[r]:t,[f]:a}),e},{key:"0",children:[]}).children;return d.forEach(e=>{e.children&&e.children.forEach(t=>(function e(t,r){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",n=arguments.length>3?arguments[3]:void 0,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:(e,t)=>t;if(!t.isLeaf)if(r.children&&1===r.children.length){let i=[r[f],t[f]].join(s);r[n]=t[n],r[f]=i,r.key=[r.key,t.key].join("-"),r.children=t.children,r.title=l(r,i),t.children&&t.children.forEach(t=>{e(t,r,s,n,l)})}else t.title=l(t,t[f]),t.children&&t.children.forEach(r=>{e(r,t,s,n,l)})})(t,e,"/",r,l))}),d}function x(e,t){return e.startsWith(t)?e.replace(t,"."):e}function j(e){return new Promise((t,r)=>{let s=new FileReader;s.onloadend=()=>{let{result:e}=s;try{let r=JSON.parse(e.toString());t(r)}catch(e){l.Ay.error("json parse error"),r(e)}},s.onerror=()=>{let e="upload json file error, please try again.";l.Ay.error(e),r(Error(e))},s.readAsText(e.originFileObj||e)})}function g(e,t){let r=x(e,t),s="/node_modules/",n=r.lastIndexOf(s);return n>-1?{alias:r.slice(n+s.length),inNodeModules:!0}:{alias:r,inNodeModules:!1}}function y(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],{data:r}=e,n=e.expanded;return r?.children?(0,s.jsxs)(i.A,{children:[t?(0,s.jsx)(a.A,{className:`file-tree-switcher-arrow ${n?"file-tree-switcher-arrow-expand":""}`}):(0,s.jsx)(s.Fragment,{}),n?(0,s.jsx)(o.A,{}):(0,s.jsx)(d.A,{})]}):e.eventKey&&"string"==typeof e.eventKey?(0,h.C)(e.eventKey):(0,s.jsx)(c.A,{})}function A(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dist",r=function e(t){if(!t.children||0===t.children.length)return t;let r=t;for(;r.children&&1===r.children.length&&!r.children[0].sourceSize;)r={name:r.name+"/"+r.children[0].name,children:r.children[0].children};return r.children&&(r.children=r.children.map(e)),r}(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dist",r={name:t,children:[],_map:new Map};for(let t of e){let e=t.path.split(/[\\/]/).filter(Boolean),s=r;for(let r=0;r<e.length;r++){let n=e[r];if(r===e.length-1)s.children||(s.children=[]),s.children.push({name:n,path:t.path,sourceSize:t.size?.sourceSize??0,bundledSize:t.size?.parsedSize??0,gzipSize:t.size?.gzipSize??0,id:t.id});else{s._map||(s._map=new Map);let e=s._map.get(n);e||(e={name:n,children:[],_map:new Map},s.children.push(e),s._map.set(n,e)),s=e}}}return!function e(t){delete t._map,t.children&&t.children.forEach(e)}(r),r}(e,t));return!function e(t){if(!t.children||0===t.children.length)return{sourceSize:t.sourceSize??0,bundledSize:t.bundledSize??0,gzipSize:t.gzipSize??0};let r=0,s=0,n=0;for(let l of t.children){let{sourceSize:t,bundledSize:i,gzipSize:a}=e(l);r+=t,s+=i,n+=a}return t.sourceSize=r,t.bundledSize=s,t.gzipSize=n,{sourceSize:r,bundledSize:s,gzipSize:n}}(r),r}},36033(e,t,r){r.d(t,{Rz:()=>n.Rz,Zb:()=>n.Zb,$G:()=>R.$G,Bq:()=>n.Bq,Cj:()=>D.Cj,ak:()=>N.ak,h4:()=>n.h4,a4:()=>F.a4,l9:()=>$.l,Xq:()=>$.X,JI:()=>R.JI,TR:()=>R.TR,R7:()=>f.R7,Z0:()=>O,JK:()=>_,Ml:()=>R.Ml,r0:()=>P.r,cv:()=>P.c,it:()=>f.it,C8:()=>R.C8,XC:()=>R.XC,ME:()=>n.ME,jC:()=>n.jC,Yh:()=>f.Yh,Kv:()=>f.Kv,ZI:()=>f.ZI,y8:()=>v,VX:()=>s.V,km:()=>z,sO:()=>b,Lh:()=>w,s9:()=>x,Ym:()=>B.Ym,yC:()=>y,mB:()=>B.mB,yR:()=>k,nN:()=>j,DP:()=>B.DP,al:()=>C,CL:()=>A,xF:()=>g,an:()=>B.an,rt:()=>S});var s=r(53715),n=r(35784),l=r(3534),i=r(87826),a=r(67782),o=r(1102),d=r(77673),c=r(23807),h=r(31337),u=r.n(h),p=r(16798);r(86508);var f=r(10815);let m=i.Kj.EH.RuleIndex,x=()=>{let{i18n:e,...t}=(0,d.B)();return{...t,i18n:{...e,changeLanguage:(t,r)=>e.changeLanguage(t,(e,s)=>{e||(0,f.XX)(t),r&&r(e,s)})}}};function j(e,t){let r=(0,c.Zp)();return t?()=>window.open(t,"__blank"):()=>{r(`${m}?${i.jO.gh.UrlQueryForErrorCode}=${e}`)}}function g(){let e=(0,c.zy)().search||location.search;return(0,o.useMemo)(()=>u()(e,!0).query,[e])}function y(e){let t=e;"string"==typeof t&&(e=JSON.parse(l.oG.J0(t)));var r=e,s={dependencies:[],modules:[],moduleGraphModules:[],exports:[],sideEffects:[],variables:[]};return r&&"object"==typeof r?Array.isArray(r)?s:(0,a.NT)(r,s):s}function A(e){return(0,a.hS)(e,e=>e.path)}function v(e){return Array.isArray(e)?e.filter(e=>e.category===i.jO.y1.Compile&&e.code!==i.jO.jr.Overlay):[]}function b(e){return(Array.isArray(e)?e.filter(e=>e.category===i.jO.y1.Bundle&&e.code!==i.jO.jr.Overlay):[]).filter(e=>e.code===i.jO.bW.E1001.code)}function S(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e.find(e=>"webpack"===e.name||"rspack"===e.name):null}function z(){return!!("https:"===window.location.protocol&&window.location.href.indexOf("ide-proxy")>0)}function w(){let e=(0,o.useRef)(null),[t,r]=(0,o.useState)(0),[s,n]=(0,o.useState)(0);return(0,o.useLayoutEffect)(()=>{let t=e.current;if(!t)return;let s=e=>r(Math.ceil(e)),l=e=>n(Math.ceil(e)),i=t.getBoundingClientRect();s(i.width),l(i.height);let o=(0,a.nF)(e=>{let t=e[0];if(!t)return;let r=t.borderBoxSize?.[0];r?(s(r.inlineSize),l(r.blockSize)):(s(t.contentRect.width),l(t.contentRect.height))},100),d=new ResizeObserver(o);return d.observe(t),()=>{d.disconnect(),o.cancel()}},[]),[e,{width:t,height:s}]}function k(e,t){let r="RSDOC:"+e,[s,n]=(0,o.useState)(()=>{try{let e=window.localStorage.getItem(r);if(null!==e)return JSON.parse(e);return"function"==typeof t?t():t}catch(e){return console.warn(`Error reading localStorage key "${r}":`,e),"function"==typeof t?t():t}});return[s,(0,o.useCallback)(e=>{try{n(t=>{let s=e instanceof Function?e(t):e;return window.localStorage.setItem(r,JSON.stringify(s)),s})}catch(e){console.warn(`Error setting localStorage key "${r}":`,e)}},[r])]}let C=()=>{let{token:e}=p.A.useToken();return e};var N=r(5525),T=r(97514),E=r(79514),M=r(15061);function _(e){return"cn"===e||"zh-CN"===e?T.A:E.A}function O(e){return"cn"===e||"zh"===e?M.TM.Cn:M.TM.En}var B=r(22009),D=r(83977),P=r(62772),$=r(91431);r(19495);var F=r(72911),R=r(36577);r(36744),r(90979)},90979(e,t,r){var s=r(87826),n=r(41537),l=r(67782);function i(e){return(0,l.cy)(e.assets)&&(0,l.cy)(e.chunks)}async function a(e){return(await Promise.all(e.map(async e=>{let t=n.L2.w0(new Map,e),r=n.zG.h7(e,".",t);await n.L2.zS(r,t,e.outputPath||"",{},void 0);let l=n.ps.fromModuleGraph(r,".");return{hash:e.hash||"",moduleGraph:await r.toData(),chunkGraph:t.toData(s.hp.w5.Normal),packageGraph:l.toData()}}))).map(e=>({client:{enableRoutes:[]},data:{pid:0,root:"",errors:[],configs:[],plugin:{},summary:{costs:[]},envinfo:{},resolver:[],loader:[],moduleCodeMap:{},...e}}))}r.d(t,{A:()=>i,k:()=>a})},36577(e,t,r){var s=r(31337),n=r.n(s),l=r(87826);function i(e){return e.startsWith("data:text/javascript;")}function a(){let{query:e}=n()(location.href,!0),t=e[l.Kj.H9.ManifestFile];if(t)return decodeURIComponent(t)}function o(){let{query:e}=n()(location.href,!0),t=e[l.Kj.H9.EnableRoutes];if(!t&&location.hash&&(t=n()(location.hash,!0).query[l.Kj.H9.EnableRoutes]),!t&&location.hash){let e=location.hash,r=e.indexOf("?");-1!==r&&(t=new URLSearchParams(e.substring(r+1)).get(l.Kj.H9.EnableRoutes)||void 0)}if(t)try{return JSON.parse(decodeURIComponent(t))}catch(e){console.warn("Failed to parse enableRoutes from URL query:",e)}}function d(e){let t=n()(location.href,!0),r=n()(e,!0);return t.hash.endsWith(l.Kj.EH.Uploader)&&t.set("hash",l.Kj.EH.Overall),t.set("origin",e),t.set("protocol",r.protocol),t.set("host",r.host),t.set("port",r.port),t.toString()}function c(){return null}function h(e){return null!=e}r.d(t,{$G:()=>d,C8:()=>h,JI:()=>c,TR:()=>o,XC:()=>i,kJ:()=>a},{Ml:e=>{if(e?.indexOf("node_modules")>=0){let t=e.split("node_modules");return`node_modules${t[t.length-1]}`}return e?.length?`${e?.split("/").slice(-4).join("/")}`:e}})},67782(e,t,r){function s(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"!=typeof s&&(s={});let{leading:n=!1,trailing:l=!0,maxWait:i}=s,a=[,,];n&&(a[0]="leading"),l&&(a[1]="trailing");let o=null,d=function(e,t){let{signal:r,edges:s}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n,l=null,i=null!=s&&s.includes("leading"),a=null==s||s.includes("trailing"),o=()=>{null!==l&&(e.apply(n,l),n=void 0,l=null)},d=null,c=()=>{null!=d&&clearTimeout(d),d=setTimeout(()=>{d=null,a&&o(),h()},t)},h=()=>{null!==d&&(clearTimeout(d),d=null),n=void 0,l=null},u=function(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];if(r?.aborted)return;n=this,l=t;let a=null==d;c(),i&&a&&o()};return u.schedule=c,u.cancel=h,u.flush=()=>{o()},r?.addEventListener("abort",h,{once:!0}),u}(function(){for(var r=arguments.length,s=Array(r),n=0;n<r;n++)s[n]=arguments[n];t=e.apply(this,s),o=null},r,{edges:a}),c=function(){for(var r=arguments.length,s=Array(r),n=0;n<r;n++)s[n]=arguments[n];return null!=i&&(null===o&&(o=Date.now()),Date.now()-o>=i)?(t=e.apply(this,s),o=Date.now(),d.cancel(),d.schedule()):d.apply(this,s),t};return c.cancel=d.cancel,c.flush=()=>(d.flush(),t),c}function n(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function l(e){var t;return null!=e&&"function"!=typeof e&&Number.isSafeInteger(t=e.length)&&t>=0}function i(e){return null!==e&&("object"==typeof e||"function"==typeof e)}let a=/^(?:0|[1-9]\d*)$/;function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_SAFE_INTEGER;switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return a.test(e)}}function d(e){for(var t,r,s=arguments.length,a=Array(s>1?s-1:0),d=1;d<s;d++)a[d-1]=arguments[d];e=Object(e);let c=Object.prototype,h=a.length,u=h>2?a[2]:void 0;u&&(t=a[0],r=a[1],i(u)&&("number"==typeof r&&l(u)&&o(r)&&r<u.length||"string"==typeof r&&r in u)&&n(u[r],t))&&(h=1);for(let t=0;t<h;t++){if(null==a[t])continue;let r=a[t],s=Object.keys(r);for(let t=0;t<s.length;t++){let l=s[t],i=e[l];(void 0===i||!Object.hasOwn(e,l)&&n(i,c[l]))&&(e[l]=r[l])}}return e}let c={"&":"&","<":"<",">":">",'"':""","'":"'"};function h(e){if(null==e)return"";if("string"==typeof e)return e;if(Array.isArray(e))return e.map(h).join(",");let t=String(e);return"0"===t&&Object.is(Number(e),-0)?"-0":t}function u(e){return h(e).replace(/[&<>"']/g,e=>c[e])}function p(e){return e}function f(e){return"__proto__"===e}function m(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}function x(e){return"string"==typeof e||"symbol"==typeof e?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}function j(e){if(Array.isArray(e))return e.map(x);if("symbol"==typeof e)return[e];e=h(e);let t=[],r=e.length;if(0===r)return t;let s=0,n="",l="",i=!1;for(46===e.charCodeAt(0)&&t.push("");s<r;){let a=e[s];if(l)"\\"===a&&s+1<r?n+=e[++s]:a===l?l="":n+=a;else if(i)'"'===a||"'"===a?l=a:"]"===a?(i=!1,t.push(n),n=""):n+=a;else if("["===a)i=!0,n&&(t.push(n),n="");else if("."===a){n&&(t.push(n),n="");let r=e[s+1];(void 0===r||"."===r)&&t.push("")}else n+=a;s++}return n&&t.push(n),t}function g(e,t,r){if(null==e)return r;switch(typeof t){case"string":{if(f(t))return r;let s=e[t];if(void 0===s)if(m(t)&&!Object.hasOwn(e,t))return g(e,j(t),r);else return r;return s}case"number":case"symbol":{"number"==typeof t&&(t=x(t));let s=e[t];if(void 0===s)return r;return s}default:{if(Array.isArray(t)){var s=t;if(0===s.length)return r;let n=e;for(let e=0;e<s.length;e++){if(null==n||f(s[e]))return r;n=n[s[e]]}return void 0===n?r:n}if(f(t=Object.is(t?.valueOf(),-0)?"-0":String(t)))return r;let n=e[t];if(void 0===n)return r;return n}}}function y(e){return null==e||"object"!=typeof e&&"function"!=typeof e}function A(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function v(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function b(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let S="[object RegExp]",z="[object String]",w="[object Number]",k="[object Boolean]",C="[object Arguments]",N="[object Symbol]",T="[object Date]",E="[object Map]",M="[object Set]",_="[object Array]",O="[object ArrayBuffer]",B="[object Object]",D="[object DataView]",P="[object Uint8Array]",$="[object Uint8ClampedArray]",F="[object Uint16Array]",R="[object Uint32Array]",I="[object Int8Array]",L="[object Int16Array]",W="[object Int32Array]",q="[object Float32Array]",G="[object Float64Array]",U="object"==typeof globalThis&&globalThis||"object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof r.g&&r.g||function(){return this}();function H(e){return void 0!==U.Buffer&&U.Buffer.isBuffer(e)}function K(e,t,r){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Map,n=arguments.length>4?arguments[4]:void 0,l=n?.(e,t,r,s);if(void 0!==l)return l;if(y(e))return e;if(s.has(e))return s.get(e);if(Array.isArray(e)){let t=Array(e.length);s.set(e,t);for(let l=0;l<e.length;l++)t[l]=K(e[l],l,r,s,n);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;for(let[l,i]of(s.set(e,t),e))t.set(l,K(i,l,r,s,n));return t}if(e instanceof Set){let t=new Set;for(let l of(s.set(e,t),e))t.add(K(l,void 0,r,s,n));return t}if(H(e))return e.subarray();if(A(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);s.set(e,t);for(let l=0;l<e.length;l++)t[l]=K(e[l],l,r,s,n);return t}if(e instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return s.set(e,t),V(t,e,r,s,n),t}if("u">typeof File&&e instanceof File){let t=new File([e],e.name,{type:e.type});return s.set(e,t),V(t,e,r,s,n),t}if("u">typeof Blob&&e instanceof Blob){let t=new Blob([e],{type:e.type});return s.set(e,t),V(t,e,r,s,n),t}if(e instanceof Error){let t=structuredClone(e);return s.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,V(t,e,r,s,n),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return s.set(e,t),V(t,e,r,s,n),t}if(e instanceof Number){let t=new Number(e.valueOf());return s.set(e,t),V(t,e,r,s,n),t}if(e instanceof String){let t=new String(e.valueOf());return s.set(e,t),V(t,e,r,s,n),t}if("object"==typeof e&&function(e){switch(b(e)){case C:case _:case O:case D:case k:case T:case q:case G:case I:case L:case W:case E:case w:case B:case S:case M:case z:case N:case P:case $:case F:case R:return!0;default:return!1}}(e)){let t=Object.create(Object.getPrototypeOf(e));return s.set(e,t),V(t,e,r,s,n),t}return e}function V(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,s=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,l=[...Object.keys(t),...v(t)];for(let i=0;i<l.length;i++){let a=l[i],o=Object.getOwnPropertyDescriptor(e,a);(null==o||o.writable)&&(e[a]=K(t[a],a,r,s,n))}}function Y(e,t,r,s){let l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(t===e)return!0;switch(typeof t){case"object":if(null==t)return!0;if(Array.isArray(t))return X(e,t,r,s);if(t instanceof Map){if(0===t.size)return!0;if(!(e instanceof Map))return!1;for(let[n,l]of t.entries())if(!1===r(e.get(n),l,n,e,t,s))return!1;return!0}if(t instanceof Set)return 0===t.size||e instanceof Set&&X([...e],[...t],r,s);let a=Object.keys(t);if(null==e||y(e))return 0===a.length;if(0===a.length)return!0;if(s?.has(t))return s.get(t)===e;s?.set(t,e);try{for(let n=0;n<a.length;n++){let l=a[n];if(!y(e)&&!(l in e)||void 0===t[l]&&void 0!==e[l]||null===t[l]&&null!==e[l]||!r(e[l],t[l],l,e,t,s))return!1}return!0}finally{s?.delete(t)}case"function":if(Object.keys(t).length>0)return Y(e,{...t},r,s,l);return n(e,t);default:if(!i(e))return n(e,t);if(l){if("string"==typeof t)return""===t;return!0}return n(e,t)}}function X(e,t,r,s){if(0===t.length)return!0;if(!Array.isArray(e))return!1;let n=new Set;for(let l=0;l<t.length;l++){let i=t[l],a=!1;for(let o=0;o<e.length;o++){if(n.has(o))continue;let d=e[o],c=!1;if(r(d,i,l,e,t,s)&&(c=!0),c){n.add(o),a=!0;break}}if(!a)return!1}return!0}function Z(e,t){return function e(t,r,s){return"function"!=typeof s?e(t,r,()=>void 0):Y(t,r,function e(t,r,n,l,i,a){let o=s(t,r,n,l,i,a);return void 0!==o?!!o:Y(t,r,e,a,!1)},new Map,!0)}(e,t,()=>void 0)}function J(e){if(null==e)return p;switch(typeof e){case"function":return e;case"object":if(Array.isArray(e)&&2===e.length){var t,r,s,n,l=e[0],i=e[1];switch(typeof l){case"object":Object.is(l?.valueOf(),-0)&&(l="-0");break;case"number":l=x(l)}return t=i,r=(e,r,s,n)=>{let l;if(void 0!==l)return l;if("object"==typeof t){if("[object Object]"===b(t)&&"function"!=typeof t.constructor){let e={};return n.set(t,e),V(e,t,s,n),e}switch(Object.prototype.toString.call(t)){case w:case z:case k:{let e=new t.constructor(t?.valueOf());return V(e,t),e}case C:{let e={};return V(e,t),e.length=t.length,e[Symbol.iterator]=t[Symbol.iterator],e}default:return}}},i=K(t,void 0,t,new Map,r),function(e){let t=g(e,l);return void 0===t?function(e,t){let r;if(0===(r=Array.isArray(t)?t:"string"==typeof t&&m(t)&&e?.[t]==null?j(t):[t]).length)return!1;let s=e;for(let e=0;e<r.length;e++){var n;let t=r[e];if((null==s||!Object.hasOwn(s,t))&&!((Array.isArray(s)||null!==(n=s)&&"object"==typeof n&&"[object Arguments]"===b(n))&&o(t)&&t<s.length))return!1;s=s[t]}return!0}(e,l):void 0===i?void 0===t:Z(t,i)}}return s=K(n=s=e,void 0,n,new Map,void 0),e=>Z(e,s);case"string":case"symbol":case"number":return function(t){return g(t,e)}}}function Q(e,t){return null==e?{}:function(e,t){let r={};for(let s=0;s<e.length;s++){let n=e[s],l=t(n,s,e);Object.hasOwn(r,l)||(r[l]=[]),r[l].push(n)}return r}(l(e)?Array.from(e):Object.values(e),J(t??p))}function ee(e){return Array.isArray(e)}function et(){}function er(e){if(!e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&"[object Object]"===Object.prototype.toString.call(e)}function es(e,t){return function e(t,r,s,l,i,a,o){let d=o(t,r,s,l,i,a);if(void 0!==d)return d;if(typeof t==typeof r)switch(typeof t){case"bigint":case"string":case"boolean":case"symbol":case"undefined":case"function":return t===r;case"number":return t===r||Object.is(t,r)}return function t(r,s,l,i){if(Object.is(r,s))return!0;let a=b(r),o=b(s);if("[object Arguments]"===a&&(a=B),"[object Arguments]"===o&&(o=B),a!==o)return!1;switch(a){case z:return r.toString()===s.toString();case w:return n(r.valueOf(),s.valueOf());case k:case T:case N:return Object.is(r.valueOf(),s.valueOf());case S:return r.source===s.source&&r.flags===s.flags;case"[object Function]":return r===s}let d=(l=l??new Map).get(r),c=l.get(s);if(null!=d&&null!=c)return d===s;l.set(r,s),l.set(s,r);try{switch(a){case E:if(r.size!==s.size)return!1;for(let[t,n]of r.entries())if(!s.has(t)||!e(n,s.get(t),t,r,s,l,i))return!1;return!0;case M:{if(r.size!==s.size)return!1;let t=Array.from(r.values()),n=Array.from(s.values());for(let a=0;a<t.length;a++){let o=t[a],d=n.findIndex(t=>e(o,t,void 0,r,s,l,i));if(-1===d)return!1;n.splice(d,1)}return!0}case _:case P:case $:case F:case R:case"[object BigUint64Array]":case I:case L:case W:case"[object BigInt64Array]":case q:case G:if(H(r)!==H(s)||r.length!==s.length)return!1;for(let t=0;t<r.length;t++)if(!e(r[t],s[t],t,r,s,l,i))return!1;return!0;case O:if(r.byteLength!==s.byteLength)return!1;return t(new Uint8Array(r),new Uint8Array(s),l,i);case D:if(r.byteLength!==s.byteLength||r.byteOffset!==s.byteOffset)return!1;return t(new Uint8Array(r),new Uint8Array(s),l,i);case"[object Error]":return r.name===s.name&&r.message===s.message;case B:{if(!(t(r.constructor,s.constructor,l,i)||er(r)&&er(s)))return!1;let n=[...Object.keys(r),...v(r)],a=[...Object.keys(s),...v(s)];if(n.length!==a.length)return!1;for(let t=0;t<n.length;t++){let a=n[t],o=r[a];if(!Object.hasOwn(s,a))return!1;let d=s[a];if(!e(o,d,a,r,s,l,i))return!1}return!0}default:return!1}}finally{l.delete(r),l.delete(s)}}(t,r,a,o)}(e,t,void 0,void 0,void 0,void 0,et)}function en(e,t){if(null!=e)return function(e,t){if(0===e.length)return;let r=e[0],s=-1/0;for(let n=0;n<e.length;n++){let l=e[n],i=t(l,n,e);if(Number.isNaN(i))return l;i>s&&(s=i,r=l)}return r}(Array.from(e),J(t??p))}function el(e,t){if(null!=e)return function(e,t){if(0===e.length)return;let r=e[0],s=1/0;for(let n=0;n<e.length;n++){let l=e[n],i=t(l,n,e);if(Number.isNaN(i))return l;i<s&&(s=i,r=l)}return r}(Array.from(e),J(t??p))}function ei(e){return"symbol"==typeof e||e instanceof Symbol}function ea(e){let t=[];for(let r in e)t.push(r);return t}function eo(e){return e}function ed(e,t){if(null==e)return{};let r={},s=J(t??eo),n=[...function(e){if(null==e)return[];switch(typeof e){case"object":case"function":let t;if(l(e)){let t,r,s;return r=new Set(t=function(e,t){var r,s;let n,l;if((e=(l=(n=(r=e)?(r=ei(s=r)?NaN:Number(s))===1/0||r===-1/0?(r<0?-1:1)*Number.MAX_VALUE:r==r?r:0:0===r?r:0)%1)?n-l:n)<1||!Number.isSafeInteger(e))return[];let i=Array(e);for(let r=0;r<e;r++)i[r]="function"==typeof t?t(r):r;return i}(e.length,e=>`${e}`)),H(e)&&(r.add("offset"),r.add("parent")),A(e)&&(r.add("buffer"),r.add("byteLength"),r.add("byteOffset")),s=ea(e).filter(e=>!r.has(e)),Array.isArray(e)?[...t,...s]:[...t.filter(t=>Object.hasOwn(e,t)),...s]}if(t=e?.constructor,e===("function"==typeof t?t.prototype:Object.prototype))return ea(e).filter(e=>"constructor"!==e);return ea(e);default:return ea(Object(e))}}(e),...function(e){let t=[];for(;e;)t.push(...v(e)),e=Object.getPrototypeOf(e);return t}(e)];for(let t=0;t<n.length;t++){let l=ei(n[t])?n[t]:n[t].toString(),i=e[l];s(i,l,e)||(r[l]=i)}return r}function ec(e,t){let r;if(!e||!e.length)return 0;null!=t&&(t=J(t));for(let s=0;s<e.length;s++){let n=t?t(e[s]):e[s];void 0!==n&&(void 0===r?r=n:r+=n)}return r}function eh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{leading:n=!0,trailing:l=!0}=r;return s(e,t,{leading:n,maxWait:t,trailing:l})}function eu(e){return l(e)?[...new Set(Array.from(e))]:[]}function ep(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;return"object"==typeof e&&null!==e&&l(e)?function(e,t){let r=new Map;for(let s=0;s<e.length;s++){let n=e[s],l=t(n,s,e);r.has(l)||r.set(l,n)}return Array.from(r.values())}(Array.from(e),(t=J(r),function(){for(var e=arguments.length,r=Array(e),s=0;s<e;s++)r[s]=arguments[s];return t.apply(this,r.slice(0,1))})):[]}function ef(e){var t;return(t=h(e)).substring(0,1).toUpperCase()+t.substring(1)}r.d(t,{$z:()=>Q,Jt:()=>g,NT:()=>d,Sk:()=>en,Zb:()=>ef,cy:()=>ee,hS:()=>ep,ih:()=>u,n4:()=>es,nF:()=>eh,sb:()=>eu,sg:()=>s,wq:()=>el,xu:()=>ec,z7:()=>ed})},3534(e,t,r){r.d(t,{Wh:()=>f,oG:()=>d,B_:()=>p,Fp:()=>m,TS:()=>h,aH:()=>a,AP:()=>j,_8:()=>i,xR:()=>c,l5:()=>x,BD:()=>s,gX:()=>o,s0:()=>u});var s={};r.r(s),r.d(s,{S:()=>l});var n,l=((n={}).Bootstrap="bootstrap->beforeCompile",n.Compile="beforeCompile->afterCompile",n.Done="afterCompile->done",n.Minify="minify(processAssets)",n),i=r(73555),a=r(94485),o=r(34275),d=r(16397),c=r(47776),h=r(88297);r(17806);var u=r(52497),p=r(61101),f=r(64033),m=r(33592),x=r(83920);r(16664);var j=r(62343)},62343(e,t,r){function s(e){return void 0===e}function n(e){return"number"==typeof e||"object"==typeof e&&null!==e&&"[object Number]"===Object.prototype.toString.call(e)}function l(e){return null==e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length}function i(e){return e[e.length-1]}function a(e){return e.filter(e=>!!e)}function o(e){return null==e}function d(e,t){let r={};for(let s=0;s<t.length;s++){let n=t[s];Object.hasOwn(e,n)&&(r[n]=e[n])}return r}r.d(t,{Et:()=>n,HV:()=>i,Im:()=>l,Up:()=>d,b0:()=>s,gD:()=>o,oE:()=>a})},41537(e,t,r){r.d(t,{L2:()=>n.L2,nV:()=>s.nV,dh:()=>s.dh,zG:()=>n.zG,ps:()=>s.ps});var s=r(75083),n=r(57896)},98822(e,t,r){class s{id;name;size;initial;entry;_assets=[];_modules=[];_dependencies=[];_imported=[];_parsedSize;constructor(e,t,r,s,n){this.id=e,this.name=t,this.size=r,this.initial=s,this.entry=n}isEntry(){return this.entry}isChunkEntryModule(e){return e.isEntry||e.getImported().every(e=>!this.hasModule(e))}hasModule(e){return this._modules.includes(e)}addModule(e){this.hasModule(e)||(this._modules.push(e),e.addChunk(this))}addAsset(e){this._assets.push(e)}addModules(e){e.forEach(e=>{this.hasModule(e)||(this._modules.push(e),e.addChunk(this))})}addDependency(e){this._dependencies.includes(e)||this._dependencies.push(e)}addImported(e){this._imported.includes(e)||this._imported.push(e)}getAssets(){return this._assets.slice()}getModules(){return this._modules.slice()}getDependencies(){return this._dependencies.slice()}getImported(){return this._imported.slice()}setParsedSize(e){this._parsedSize=e}toData(){return{id:this.id,name:this.name,initial:this.initial,size:this.size,parsedSize:this._parsedSize||0,entry:this.isEntry(),assets:this._assets.map(e=>{let{path:t}=e;return t}),modules:this._modules.map(e=>{let{id:t}=e;return t}),dependencies:this._dependencies.map(e=>{let{id:t}=e;return t}),imported:this._imported.map(e=>{let{id:t}=e;return t})}}setDependencies(e){this._dependencies=e}setImported(e){this._imported=e}setModules(e){this._modules=e}setAssets(e){this._assets=e}}r.d(t,{A:()=>s})},40381(e,t,r){let s=1;class n{name;static init(){s=1}constructor(e){this.name=e,this.id=s++}id;_chunks=[];_assets=[];addChunk(e){this._chunks.includes(e)||this._chunks.push(e)}addAsset(e){this._assets.includes(e)||this._assets.push(e)}toData(){return{id:this.id,name:this.name,chunks:this._chunks.map(e=>e.id),assets:this._assets.map(e=>e.path),size:this._assets.length?this._assets.reduce((e,t)=>e+t.size,0):0}}setChunks(e){this._chunks=e}setAssets(e){this._assets=e}setId(e){this.id=e}}r.d(t,{$:()=>n})},9067(e,t,r){class s{_assetMap=new Map;_assetPathMap=new Map;_chunkMap=new Map;_entrypointMap=new Map;getAssets(){return Array.from(this._assetMap.values())}getChunks(){return Array.from(this._chunkMap.values())}addAsset(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t.forEach(e=>{this._assetMap.set(e.id,e),this._assetPathMap.set(e.path,e)})}addChunk(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t.forEach(e=>{this._chunkMap.set(e.id,e)})}getChunkById(e){return this._chunkMap.get(e)}getAssetByPath(e){return this._assetPathMap.get(e)}getAssetById(e){return this._assetMap.get(e)}getEntryPoints(){return Array.from(this._entrypointMap.values())}getEntryPointById(e){return this._entrypointMap.get(e)}addEntryPoint(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t.forEach(e=>{this._entrypointMap.set(e.id,e)})}toData(e){return{assets:Array.from(this._assetMap.values()).map(t=>t.toData(e)),chunks:Array.from(this._chunkMap.values()).map(e=>e.toData()),entrypoints:Array.from(this._entrypointMap.values()).map(e=>e.toData())}}setChunks(e){this._chunkMap=new Map(e.map(e=>[e.id,e]))}setEntrypoints(e){this._entrypointMap=new Map(e.map(e=>[e.id,e]))}setAssets(e){this._assetMap=new Map(e.map(e=>[e.id,e])),this._assetPathMap=new Map(e.map(e=>[e.path,e]))}}r.d(t,{i:()=>s})},75083(e,t,r){r.d(t,{Vd:()=>o,AA:()=>s.A,ir:()=>n.i,$k:()=>d.$,nV:()=>c.n,dh:()=>h.d,ps:()=>_,WZ:()=>u.W});var s=r(98822),n=r(9067),l=r(87826),i=r(46068);let a=1;class o{static init(){a=1}id;path;size;content;chunks;gzipSize;constructor(e,t,r,s){this.id=a++,this.path=e,this.size=t,this.chunks=r,this.content=s}toData(e){return{id:this.id,path:this.path,size:this.size,gzipSize:this.gzipSize,chunks:this.chunks?.map(e=>e.id),content:e===l.hp.w5.NoSourceAndAssets||e===l.hp.w5.NoCode?"":this.content}}setChunks(e){this.chunks=e}setId(e){this.id=e}setGzipSize(e){this.gzipSize=(0,i.gzipSync)(e,{level:9}).length}}var d=r(40381);r(11223);var c=r(66714),h=r(22464),u=r(87261);r(61726);var p=r(66265),f=r(13078),m=r.n(f),x=r(62343);let{dirname:j,join:g}=m(),y=/^(?:[a-zA-Z]:[\\/]|\\\\)/,A=e=>{let t=e.replace(/\//g,"\\").replace(/\\+$/,"");if(/^[a-zA-Z]:$/.test(t))return`${t}\\`;let r=t.match(/^\\\\[^\\]+\\[^\\]+/);if(r&&t.length===r[0].length)return`${r[0]}\\`;let s=t.lastIndexOf("\\");return -1===s?".":0===s?"\\":/^[a-zA-Z]:\\/.test(t)&&2===s?t.slice(0,3):t.slice(0,s)},v=(e,t)=>`${e.replace(/[\\/]+$/,"")}\\${t}`,b=/[a-zA-Z0-9]+(?:[-|_|.]+[a-zA-Z0-9]+)*/,S=RegExp(`(?:${/(?:node_modules|~)(?:\/\.pnpm)?/.source}/)(?:(?:@${b.source}[/|+])?(?:${b.source}\\+)*(?:${b.source})(?:${/@[\w|\-|_|.]+/.source})?)(?:_(?:@${b.source}[/|+])?(?:${b.source})(?:@${b.source})?)*/`,"g"),z=/(?:(?:node_modules|~)(?:\/\.pnpm)?\/)(?:((?:@[a-zA-Z0-9]+(?:[-|_|.]+[a-zA-Z0-9]+)*[/|+])?(?:(?:[a-zA-Z0-9]+(?:[-|_|.]+[a-zA-Z0-9]+)*\+)*)(?:[a-zA-Z0-9]+(?:[-|_|.]+[a-zA-Z0-9]+)*))(?:@[\w|\-|_|.]+)?)(?:_((?:@[a-zA-Z0-9]+(?:[-|_|.]+[a-zA-Z0-9]+)*[/|+])?(?:[a-zA-Z0-9]+(?:[-|_|.]+[a-zA-Z0-9]+)*))(?:@[a-zA-Z0-9]+(?:[-|_|.]+[a-zA-Z0-9]+)*))*\//gm,w=e=>{var t;let r,s=e.match(S);if(!s)return{name:"",version:""};let n=(t=s.flatMap(e=>{let t=e.matchAll(z);return t?(0,x.oE)([...t].flat()).slice(1).filter(Boolean).map(e=>e.replace(/\+/g,"/")):[]}),r=[],t.forEach((e,s)=>{t.slice(s+1).includes(e)||r.push(e)}),r);if((0,x.Im)(n))return{name:"",version:""};let l=(0,x.HV)(n),i=RegExp(`(.*)(${(0,x.HV)(s)}).*`),a=e.replace(i,"$1$2").replace(/\/$/,"");return{name:l,version:a&&l&&a.match(RegExp(`${l}@([\\d.]+)`))?.flat().slice(1)?.[0]||""}},k=(e,t)=>{let r,s=e,n=y.test(e)||e.includes("\\")?{dirname:A,join:v}:{dirname:j,join:g};for(;"/"!==s&&!r&&n.dirname(s)!==s;)s=n.dirname(s),t&&(r=t(n.join(s,"package.json"))),t?r?.name||(r=void 0):r=w(e);if(r)return!t||r.name&&r.version?{...r,root:s}:k(n.dirname(s),t)},{relative:C}=m(),N=1;class T{id=N++;root;name;version;duplicates;_modules=[];_dependencies=[];_imported=[];constructor(e,t,r){this.name=e,this.root=t,this.version=r,this.duplicates=[]}setDuplicates(e){this.duplicates.push({module:e.module,chunks:e.chunks})}getModules(){return this._modules.slice()}getDependencies(){return this._dependencies.slice()}getImported(){return this._imported.slice()}addModule(e){this._modules.includes(e)||this._modules.push(e)}addDependency(e){this._dependencies.every(t=>!t.isSame(e))&&(this._dependencies.push(e),e.dependency.addImported(this))}getDependenciesChain(e){return function t(r,s){for(let n of e.getDependenciesFromPackage(r))if(n.refDependency&&!s.some(e=>e.dependency===r)){if(!n.package)return s.concat(n);return t(n.package,s.concat(n))}return s}(this,[])}addImported(e){this._imported.includes(e)||this._imported.push(e)}contain(e){var t;return!!e.includes(this.root)&&(t=C(this.root,e),!/(^|[/\\])node_modules[/\\]/.test(t))}isSame(e){return this.root===e.root&&this.version===e.version&&this.name===e.name}getSize(){return this._modules.reduce((e,t)=>{let r=t.getSize();return e.sourceSize+=r.sourceSize,e.transformedSize+=r.transformedSize,e.parsedSize+=r.parsedSize,e.gzipSize+=r.gzipSize,e},{sourceSize:0,transformedSize:0,parsedSize:0,gzipSize:0})}toData(){return{id:this.id,name:this.name,root:this.root,version:this.version,modules:this.getModules().map(e=>e.id),size:this.getSize(),duplicates:this.duplicates}}}var E=r(88709);let{resolve:M}=m();class _{static fromModuleGraph(e,t,r){let s=new _(t);for(let t of e.getModules().filter(e=>e.kind===l.hp.JT.Normal)){if(!t.getChunks())continue;let e=s.getPackageByModule(t,r);e&&(s.addPackage(e),e.addModule(t))}for(let t of e.getDependencies()){let e=s.getPackageByFile(t.module.path),r=s.getPackageByFile(t.dependency.path);if(e&&r&&!e.isSame(r)){let n=new E.u(e,r,t);s.addDependency(n),e.addDependency(n)}}return s}_root;_dependencies=[];_packages=[];_pkgNameMap=new Map;_pkgFileMap=new Map;constructor(e){this._root=e}getPackages(){return this._packages.slice()}getPackageByModule(e,t){let{path:r,meta:s}=e,{_pkgFileMap:n}=this,l=e=>this.getPackageByData(e)??new T(e.name,e.root,e.version);if(n.has(r))return n.get(r);if(s.packageData){let t=l(s.packageData);return this.setDuplicates(e,t),n.set(r,t),t}let i=this.getPackageContainFile(r);if(i)return n.set(r,i),i;let a=k(r,t);if(!a)return;a.root.startsWith(".")&&(a.root=M(this._root,a.root));let o=l(a);return this.setDuplicates(e,o),this.addPackage(o),n.set(r,o),o}getPackageByFile(e){return this._pkgFileMap.get(e)}getPackageContainFile(e){return this._packages.find(t=>t.contain(e))}getPackagesByName(e){return this._pkgNameMap.get(e)??[]}getPackageByData(e){return this._pkgNameMap.get(e.name)?.find(t=>t.version===e.version&&t.root===e.root)}addPackage(e){if(this._packages.every(t=>!t.isSame(e))){this._packages.push(e);let{_pkgNameMap:t}=this,r=t.get(e.name)??[];r.every(t=>!t.isSame(e))&&(r.push(e),t.set(e.name,r))}}setDuplicates(e,t){let r=[],s=e.getChunks();s.forEach(e=>r.push(...e.getAssets().filter(e=>e.path.endsWith(".js")||e.path.endsWith(".bundle")))),s.length>1&&t.setDuplicates({module:{id:e.id,path:e.path},chunks:r.map(e=>({name:e.path}))})}getDependenciesFromPackage(e){return this._dependencies.filter(t=>t.dependency===e)}addDependency(e){this._dependencies.every(t=>!t.isSame(e))&&this._dependencies.push(e)}getDependenciesFromOrigin(){return this._dependencies.filter(e=>!e.package)}getDuplicatePackages(){return(0,p.R)(Array.from(this._pkgNameMap.values()).map(e=>(0,p.R)(e,"version")).filter(e=>e.length>1),e=>e[0].name)}toData(){return{packages:this._packages.map(e=>e.toData()),dependencies:this._dependencies.map(e=>e.toData())}}}},88709(e,t,r){let s=1;class n{id=s++;dependency;package;refDependency;constructor(e,t,r){this.package=e,this.dependency=t,this.refDependency=r}get name(){return this.dependency.name}get version(){return this.dependency.version}get root(){return this.dependency.root}isSame(e){return this.refDependency===e.refDependency&&this.dependency.isSame(e.dependency)}toData(){return{id:this.id,dependency:this.dependency.id,package:this.package.id,refDependency:this.refDependency.id}}}r.d(t,{u:()=>n})},57896(e,t,r){r.d(t,{L2:()=>s,zG:()=>n});var s={};r.r(s),r.d(s,{w0:()=>g,zS:()=>f});var n={};r.r(n),r.d(n,{h7:()=>k});var l=r(13078),i=r.n(l),a=r(62343),o=r(46068),d=r(85409);let c=new Map,h=e=>{!d.env.DEBUG||c.has(e)||c.set(e,Date.now())},u=e=>{if(!d.env.DEBUG)return;let t=c.get(e);null!=t&&(console.debug(`Timer '${e}' ended: ${Date.now()-t}ms`),c.delete(e))},p={warn(e){console.warn(e)}};async function f(e,t,r,s){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Map,l=arguments.length>5?arguments[5]:void 0;if(n.size>0){for(let[t,r]of(h("Start Parse bundle by sourcemap."),n.entries())){let s,n=e.getModuleByFile(t);try{r&&"string"==typeof r&&r.length>0&&(s=(0,o.gzipSync)(r,{level:9}).length)}catch{}for(let e of n)e?.setSize({parsedSize:r.length,gzipSize:s}),e?.setSource({parsedSource:r})}u("Start Parse bundle by sourcemap.")}if(s.parseBundle&&(l&&l.size>0||n.size<1)){h("Start Parse bundle by AST.");let{parseBundle:n=()=>({})}=s||{},m=t.getAssets(),x=e.getModules(),j=null,g=null;if(r&&m.length){var c,f;for(let e of(j={},g={},m)){let t;if(l&&l.size>0&&!l.has(e.path))continue;let s=i().join(r,e.path);try{t=n(s,x)}catch(n){let{code:e="",message:t}=n,r="ENOENT"===e?"no such file":t;"1"===d.env.DEVTOOLS_NODE_DEV&&p.warn(`Error parsing bundle asset "${s}": ${r}`);continue}j[e.path]=(0,a.Up)(t,["src","runtimeSrc"]),Object.assign(g,t?.modules||{})}(0,a.Im)(j)&&(j=null,g=null,d.env.DEVTOOLS_DEV&&p.warn("\nNo bundles were parsed. Analyzer will show only original module sizes from stats file.\n")),g&&(c=g,(f=e)&&Object.entries(c).forEach(e=>{let[t,r]=e,s,n=f.getModuleByIdentifier(t??"");try{r?.content&&"string"==typeof r.content&&r.content.length>0&&(s=(0,o.gzipSync)(r.content,{level:9}).length)}catch{}n?.setSize({parsedSize:r?.size,gzipSize:s}),n?.setSource({parsedSource:r?.content||""})}))}u("Start Parse bundle by AST.")}}var m=r(75083),x=r(8963).hp;let j="assets by status";function g(e,t){let r=new m.ir;if(t.chunks?.forEach(e=>{let t=new m.AA(String(e.id),e.names?.join("")||e.files?.join("| ")||"",e.size,e.initial,e.entry);t.setParsedSize(0),r.addChunk(t)}),t.assets?.every(e=>e.type===j)?t.chunks?.forEach(t=>{let s=r.getChunkById(String(t.id));s&&t.files&&t.files.forEach(t=>{if(!r.getAssetByPath(t)){let{content:n=""}=e.get(t)||{},l=new m.Vd(t,0,[s],n);s.addAsset(l),r.addAsset(l)}})}):t.assets?.forEach(t=>{if(t.type===j)return;let s=t.chunks?.map(e=>r.getChunkById(String(e))).filter(e=>!!e)||[],{content:n=""}=e.get(t.name)||{},l=x.byteLength(n,"utf8"),i=t.size??l,a=new m.Vd(t.name,i,s,n);s.forEach(e=>e?.addAsset(a)),r.addAsset(a)}),t.entrypoints)for(let[e,s]of Object.entries(t.entrypoints)){let t=new m.$k(s.name||e);s.chunks?.forEach(e=>{let s=r.getChunkById(`${e}`);s&&t.addChunk(s)}),s.assets?.forEach(e=>{let s=r.getAssetByPath(e.name);s&&t.addAsset(s)}),r.addEntryPoint(t)}return r}r(72229);var y=r(87826);function A(e){let{type:t}=e;return"harmony side effect evaluation"===t||"cjs require"===t||"cjs full require"===t||"cjs export require"===t||"provided"===t||"esm import"===t}var v=r(51420),b=r(8963).hp;function S(e){if(!e.identifier||!(e?.nameForCondition||e.name)||e.identifier.startsWith("webpack/runtime")||e?.name?.startsWith("(webpack)"))return!0}function z(e,t){if(t.nameForCondition)return t.nameForCondition.replace("\0","");let r=t.name.replace(/ ?\+ ?\d+ ?modules$/,"");return i().isAbsolute(r)?r:i().join(e,r)}function w(e){return".json"===i().extname(e).toLowerCase()}function k(e,t,r){var s;let{modules:n,chunks:l}=e;m.dh.init();let i=new m.dh,a=[],o=[];for(let e of(function e(t,r){t.forEach(t=>{"module"===t.type||void 0===t.type?r.push(t):"children"in t&&t.children&&e(t.children,r)})}(n??[],o),s=l??[],s?.forEach(e=>{e.modules?.length&&o.push(...e.modules.map(e=>({...e,identifier:e.identifier??e.moduleIdentifier,name:e.name??e.moduleName})))}),o??[])){if(S(e)||i.getModuleByIdentifier(e.identifier))continue;a.push(e);let s=!!(e.modules&&e.modules.length>0),n=new m.nV(e.identifier??e.moduleIdentifier,z(t,e),0===e.depth,s?y.hp.JT.Concatenation:y.hp.JT.Normal,e.id?String(e.id):void 0,e.layer);if(e.optimizationBailout&&e.optimizationBailout.forEach(e=>n.addBailoutReason(e)),e.issuerPath&&n.addIssuerPath(e.issuerPath),e.chunks?.forEach(e=>{let t=r.getChunkById(String(e));t&&n.addChunk(t)}),i.addModule(n),e.source&&n.setSource({transformed:b.isBuffer(e.source)?e.source.toString():e.source}),"number"==typeof e.size){n.setSize({sourceSize:e.size,transformedSize:e.size});let t={sourceSize:e.size,transformedSize:e.size};w(n.path)&&(t.parsedSize=e.size),n.setSize(t)}for(let s of e.modules??[]){let l;if(S(s))continue;a.push(s);let o=s.identifier;if(l=i.getModuleByIdentifier(o)||(i.getModuleByIdentifier(o)??new m.nV(o,z(t,s),0===s.depth,y.hp.JT.Normal,s.id?String(s.id):void 0,s.layer)),s.optimizationBailout&&s.optimizationBailout.filter(e=>!e.includes("ModuleConcatenation bailout")).forEach(e=>l.addBailoutReason(e)),s.issuerPath&&l.addIssuerPath(s.issuerPath),s.chunks?.length?s.chunks?.forEach(e=>{let t=r.getChunkById(String(e));t&&l.addChunk(t)}):e.chunks?.forEach(e=>{let t=r.getChunkById(String(e));t&&l.addChunk(t)}),s.source&&l.setSource({transformed:b.isBuffer(s.source)?s.source.toString():s.source}),"number"==typeof s.size){l.setSize({sourceSize:s.size,transformedSize:s.size});let e={sourceSize:s.size,transformedSize:s.size};w(l.path)&&(e.parsedSize=s.size),l.setSize(e)}i.addModule(l),n.addNormalModule(l)}}for(let e of a){let t=i.getModuleByIdentifier(e.identifier??"");if(!t)continue;let r=(e.reasons??[]).filter(A).filter(e=>!!(e.moduleIdentifier&&e.userRequest));for(let s of((e.reasons??[]).filter(e=>"from origin"===e.type).forEach(e=>e?.children?.forEach(t=>r.push({...e,...t,children:void 0}))),r)){let e=s.userRequest,r=i.getModuleByIdentifier(s.moduleIdentifier);if(!r)continue;if(!r.getDependencyByRequest(e)){let n=r.addDependency(e,t,function(e){let{type:t}=e;return t?t.includes("harmony")||"esm import"===t?y.hp.yV.ImportStatement:t.includes("cjs")?y.hp.yV.RequireCall:t.includes("import()")?y.hp.yV.DynamicImport:t.includes("amd")?y.hp.yV.AMDRequire:y.hp.yV.Unknown:y.hp.yV.Unknown}(s));n&&i.addDependency(n)}let n=r.getDependencyByRequest(e);if(n&&s?.loc){let e=(0,v.b)(s.loc);e&&n.addStatement(new m.WZ(r,{transformed:e}))}}}let d=new Map;return i.getModules().forEach(e=>{e.issuerPath&&e.issuerPath.forEach(e=>{let t=d.get(e.identifier);!t&&(t=i.getModuleByIdentifier(e.identifier))&&d.set(e.identifier,t),t&&(e.moduleId=t.id)})}),i}r(98147)},51420(e,t,r){function s(e){function t(e){let[t,r]=e.split(":");return{line:Number(t),column:Number(r)}}if(e.includes("-")){let r=e.split("-"),s=t(r[0]),n=t(r[1]);return{start:s,end:Number.isNaN(n.column)?{line:s.line,column:n.line}:n}}return e.includes(":")?{start:t(e)}:e.includes("[")?{start:{index:Number(e.match(/\[(\d+)\]/)[1])}}:void 0}r.d(t,{b:()=>s})},11339(e,t,r){var s,n,l,i=((s={}).BundleDiffFiles="__bundle_files__",s.ManifestFile="manifest",s.EnableRoutes="enableRoutes",s),a=((n={}).Home="/",n.Overall="/overall",n.LoaderOverall="/loaders/overall",n.LoaderAnalysis="/loaders/analysis",n.ModuleResolve="/module/resolve",n.Plugins="/plugins",n.BundleSize="/bundle/size",n.ModuleAnalyze="/module/analyze",n.TreeShaking="/treeshaking",n.BundleDiff="/resources/bundle/diff",n.RuleIndex="/resources/rules",n.Uploader="/resources/uploader",n.EmoCheck="/emo/check",n),o=((l={}).Equal="-",l.Up="UP",l.Down="DOWN",l);r.d(t,{EH:()=>a,H9:()=>i,Ol:()=>o})},57942(e,t,r){r.d(t,{gh:()=>m,bW:()=>p,y1:()=>s.y,jr:()=>s.j});var s=r(13259),n=r(61982),l=r(65467),i=r(17524),a=r(45121),o=r(37842),d=r(44639),c=r(10024),h=r(89205),u=r(77366);let p={[n.a]:n.i,[l.a]:l.i,[i.a]:i.i,[a.a]:a.i,[o.a]:o.i,[d.a]:d.i,[c.a]:c.i,[h.a]:h.i,[u.a]:u.i};var f,m=((f={}).UrlQueryForErrorCode="code",f)},4349(e,t,r){var s,n,l,i=((s={})[s.Unknown=0]="Unknown",s[s.ImportStatement=1]="ImportStatement",s[s.DynamicImport=2]="DynamicImport",s[s.RequireCall=3]="RequireCall",s[s.AMDRequire=4]="AMDRequire",s),a=((n={})[n.Normal=0]="Normal",n[n.Concatenation=1]="Concatenation",n),o=((l={})[l.NoCode=0]="NoCode",l[l.Normal=1]="Normal",l[l.NoSource=2]="NoSource",l[l.NoSourceAndAssets=3]="NoSourceAndAssets",l[l.All=4]="All",l);r.d(t,{JT:()=>a,w5:()=>o,yV:()=>i})}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return i[e].call(r.exports,r,r.exports,o),r.exports}o.m=i,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(r,s){if(1&s&&(r=this(r)),8&s||"object"==typeof r&&r&&(4&s&&r.__esModule||16&s&&"function"==typeof r.then))return r;var n=Object.create(null);o.r(n);var l={};e=e||[null,t({}),t([]),t(t)];for(var i=2&s&&r;("object"==typeof i||"function"==typeof i)&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach(e=>{l[e]=()=>r[e]});return l.default=()=>r,o.d(n,l),n},o.d=(e,t,r)=>{var s=(t,r)=>{for(var s in t)o.o(t,s)&&!o.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,[r]:t[s]})};s(t,"get"),s(r,"value")},o.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r=[],o.O=(e,t,s,n)=>{if(t){n=n||0;for(var l=r.length;l>0&&r[l-1][2]>n;l--)r[l]=r[l-1];r[l]=[t,s,n];return}for(var i=1/0,l=0;l<r.length;l++){for(var[t,s,n]=r[l],a=!0,d=0;d<t.length;d++)(!1&n||i>=n)&&Object.keys(o.O).every(e=>o.O[e](t[d]))?t.splice(d--,1):(a=!1,n<i&&(i=n));if(a){r.splice(l--,1);var c=s();void 0!==c&&(e=c)}}return e},o.j="410",s={410:0},o.O.j=e=>0===s[e],n=(e,t)=>{var r,n,[l,i,a]=t,d=0;if(l.some(e=>0!==s[e])){for(r in i)o.o(i,r)&&(o.m[r]=i[r]);if(a)var c=a(o)}for(e&&e(t);d<l.length;d++)n=l[d],o.o(s,n)&&s[n]&&s[n][0](),s[n]=0;return o.O(c)},(l=self.rspackChunk_rsdoctor_client=self.rspackChunk_rsdoctor_client||[]).forEach(n.bind(null,0)),l.push=n.bind(null,l.push.bind(l));var d=o.O(void 0,["85","19","767","576","485","533","760","907"],()=>o(70617));d=o.O(d)})();
|