(()=>{"use strict";var e,t,r,s,n,i,a={39899(e,t,r){var s=r(27080);r(24916);var n=r(2303);r(27348);var i=r(66349),a=r(47302);function o(){return(0,s.jsxs)(i.BV,{children:[(0,s.jsx)(i.qh,{path:"/",element:(0,s.jsx)(a.aD.YW,{})}),(0,s.jsx)(i.qh,{path:a.aD.wE,element:(0,s.jsx)(a.aD.YW,{})})]})}var l=r(17427);r(23746);let d=document.getElementById("root");n.createRoot(d).render((0,s.jsx)(()=>(0,s.jsx)(l.A,{router:(0,s.jsx)(o,{})}),{}));let u=document.createElement("link");u.setAttribute("type","image/x-icon"),u.setAttribute("rel","icon"),u.setAttribute("href","https://assets.rspack.rs/rsdoctor/rsdoctor-logo-960x960.png"),document.head.appendChild(u)},72921(e,t,r){var s=r(27080);r(27348),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"})})})]})},91597(e,t,r){r.d(t,{EJ:()=>c.EJ});var s=r(27080),n=r(27348),i=r(80336),a=r(86525),o=r(6430),l=r(85491),d=r(30597),u=r(70412),h=r(89654);(0,l.eN)({api:i.hp.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:e=>{let{filter:t,project:r}=e,{errors:i,root:l}=r,{setBundleAlertsViewMode:c,viewMode:p,setViewMode:f}=(0,a.useViewMode)(),{t:m}=(0,a.useI18n)(),g=t?i.filter(t):i;return(0,n.useEffect)(()=>{(0,a.hasViewModeFromStorage)()||f({bundleAlerts:i.length>=5?d.nE.Group:d.nE.List},!1)},[]),(0,s.jsx)(h.Ay,{theme:{components:{Alert:{colorInfoBg:"#e6f4ff57",colorInfoBorder:"none"}},token:{padding:16,colorText:"rgba(0, 0, 0, 0.85)"}},children:(0,s.jsx)(o.J,{title:m("Bundle Alerts"),dataSource:g,extraData:{cwd:l,getPackageRelationContentComponent:e=>(0,s.jsx)(u.rU,{body:{id:e.data.id,target:e.package.target},cwd:l})},viewMode:p.bundleAlerts,setViewMode:c,cwd:l})})}}),r(47902);var c=r(14263)},59104(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},{dK:["#F2793D","#F28B24","#F2A200","#F5CC00","#F5E000","#A3D900","#66CC00","#0AC419","#0AC496","#0AC7D1","#00A8E0","#1471F5","#4060FF","#7559FF","#884DFF","#A526FF","#BA39E5","#C700D9","#D900B5","#E50099","#E52E6B","#F24957","#30B2F2","#00BF70","#5959FF","#9F40FF","#528BFF"]})},10932(e,t,r){var s=r(55807),n=r(79595),i=r.n(n),a=r(86745),o=r(53117),l=r(86525);r(59276);var d=r(27348);function u(e){return`
  <div class="loader-tooltip-container">
    <div class="loader-tooltip-title">${e.loader}</div>
    <li class="loader-tooltip-item">
      <span>isPitch</span>
      <span>${e.isPitch}</span>
    </li>
    ${e.layer&&"undefined"!==e.layer?`<li class="loader-tooltip-item">
        <span>layer</span>
        <span>${e.layer}</span>
      </li>`:""}
    <li class="loader-tooltip-item">
      <span>duration</span>
      <span class="loader-tooltip-text-bold">${(0,l.formatCosts)(e.costs)}</span>
    </li>
    <li class="loader-tooltip-item">
      <span>filepath</span>
      <span>${e.resource}</span>
    </li>
    <li class="loader-tooltip-item">
      <span>start</span>
      <span class="loader-tooltip-text-bold">${i()(e.startAt).format("YYYY/MM/DD HH:mm:ss")}</span>
    </li>
    <li class="loader-tooltip-item">
      <span>end</span>
      <span class="loader-tooltip-text-bold">${i()(e.endAt).format("YYYY/MM/DD HH:mm:ss")}</span>
    </li>
  </div>
  `.trim()}function h(e,t,r){let n=t=>t.loader===e,d=t.filter(n),u=d.map(e=>e.resource),h=u.filter(e=>e.includes("/node_modules/")),c=u.filter(e=>!e.startsWith(r)),p=(0,a.w)(d,e=>e.startAt).startAt,f=(0,o.S)(d,e=>e.endAt).endAt,m=s.aH.getLoadersCosts(n,t);return`
<div class="loader-tooltip-container">
  <div class="loader-tooltip-title">${e}</div>
  <li class="loader-tooltip-item">
    <span>files</span>
    <span class="loader-tooltip-text-bold">${u.length}</span>
  </li>
  <li class="loader-tooltip-item">
    <span>files(node_modules)</span>
    <span class="loader-tooltip-text-bold">${h.length}</span>
  </li>
  <li class="loader-tooltip-item">
    <span>files(outside the cwd)</span>
    <span class="loader-tooltip-text-bold">${c.length}</span>
  </li>
  <li class="loader-tooltip-item">
    <span>duration(estimated)</span>
    <span class="loader-tooltip-text-bold">${(0,l.formatCosts)(m)}</span>
  </li>
  <li class="loader-tooltip-item">
    <span>start(min)</span>
    <span>${i()(p).format("YYYY/MM/DD HH:mm:ss")}</span>
  </li>
  <li class="loader-tooltip-item">
    <span>end(max)</span>
    <span>${i()(f).format("YYYY/MM/DD HH:mm:ss")}</span>
  </li>
  </div>
    `.trim()}function c(e,t){let[r,s]=(0,d.useState)(e);return(0,d.useEffect)(()=>{let r=setTimeout(()=>s(e),t);return()=>clearTimeout(r)},[e,t]),r}r.d(t,{Bq:()=>u,Wy:()=>c,iv:()=>h})},96372(e,t,r){var s=r(27080),n=r(80336),i=r(25294),a=r(11034),o=r(64254),l=r(78195),d=r(88059),u=r(11383),h=r(27348),c=r(23007),p=r.n(c),f=r(86525),m=r(85491),g=r(83283),y=r(72876),M=r(4159),v=r(55807);(0,m.eN)({Component:e=>{let{defaultKeys:t,configs:r}=e,n=(0,f.useWebpackConfigurationByConfigs)(r||[]);if(!n)return null;let{config:c,version:m,name:A}=n,S=Object.keys(c),[x,I]=(0,h.useState)(t||S);return(0,s.jsxs)(g.hX,{text:(0,s.jsxs)("div",{className:M.A.title,children:[(0,s.jsx)("span",{style:{marginRight:"8px",fontSize:"13px"},children:"View Bundler Config"}),(0,s.jsx)(u.A,{style:{fontSize:"10px"}})]}),children:[(0,s.jsxs)(i.A,{children:[(0,s.jsx)(y.h,{text:"Bundler Config Viewer"}),(0,s.jsx)(a.A,{}),(0,s.jsxs)(o.A,{children:[(0,s.jsx)(l.A.Text,{children:"Properties: "}),(0,s.jsx)(d.A,{dropdownStyle:{zIndex:999},mode:"multiple",allowClear:!0,value:x.length===S.length?[]:x,style:{width:350},popupMatchSelectWidth:!0,placeholder:"Show Selected Properties Only.",onChange:e=>{I(e)},children:S.map(e=>(0,s.jsx)(d.A.Option,{label:e,value:e,children:e},e))})]}),(0,s.jsx)(a.A,{})]}),(0,s.jsx)(p(),{name:m&&"unknown"!==m?`${A}@${m}`:"webpack.config",theme:"monokai",src:0===x.length?c:v.AP.pick(c,x),displayDataTypes:!1,displayObjectSize:!1,style:{overflowX:"auto"}})]})},api:n.hp.ServerAPI.API.LoadDataByKey,responsePropName:"configs",body:{key:"configs"},showSkeleton:!1})},99219(e,t,r){var s=r(27080);r(27348);var n=r(78195),i=r(91915),a=r(55080);let o=e=>{let{text:t,els:r,marked:o=!1,rest:l}=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)(i.A,{content:t,placement:"left",children:(0,s.jsx)("div",{children:(0,s.jsxs)(n.A.Text,{className:a.A.text,mark:!!o,...l,children:[t.slice(0,e),"...",t.slice(d-r)]})})})}return(0,s.jsx)(i.A,{content:t,children:(0,s.jsx)("div",{children:(0,s.jsx)(n.A.Text,{className:a.A.text,...l,children:t},r?r.length:0)})})};r.d(t,{},{i:e=>{let{text:t,keyword:r,...i}=e;if(!r||-1===t.indexOf(r))return o({text:t,rest:i});let l=[],d=t;for(;d.length>0;){let e=d.indexOf(r);if(e>-1)0!==e&&l.push(o({text:d,els:l})),l.push(o({text:d,els:l,marked:!0})),d=d.slice(e+r.length);else{l.push(o({text:d,els:l,marked:!0}));break}}return(0,s.jsx)(n.A.Text,{className:a.A.text,...i,children:l})}})},29056(e,t,r){let s=(0,r(27348).createContext)({project:null});r.d(t,{},{h:s})},81215(e,t,r){var s=r(27080),n=r(80336),i=r(25453),a=r(87734),o=r(27348),l=r(86624),d=r(86525),u=r(30597),h=r(88238),c=r(55807);let p=e=>{let{manifestLoader:t=d.fetchManifest,api:r,children:p,body:f=null,showSkeleton:m=!0,fallbackComponent:g}=e,[y,M]=(0,o.useState)(),[v,A]=(0,o.useState)(u.nl.Pending),[S,x]=(0,o.useState)({}),{loader:I}=(0,d.useDataLoader)(y);function P(e){window[n.YM.WINDOW_RSDOCTOR_TAG]?k(e):t().then(e=>{M(e)}).catch(e=>{if(!("u"<typeof window)&&window.location.hash.includes(n.Kj.RsdoctorClientRoutes.Uploader)){console.warn("[ServerAPIProvider] Failed to load manifest for uploader route, continuing with empty manifest:",e),A(u.nl.Success);return}throw A(u.nl.Fail),e}).then(()=>{k(e)})}let E=(0,o.useCallback)(e=>{let{req:t,res:s}=e;t.api===r&&((0,l.n)(t.body,f)||c.AP.isNil(t.body)&&c.AP.isNil(f))&&!(0,l.n)(S,s)&&x(s),A(u.nl.Success)},[S,r,f]);function k(e){e&&(Object.values(n.hp.ServerAPI.APIExtends).includes(r)?A(u.nl.Success):e.loadAPI(r,f).then(e=>{c.AP.isNil(e)||(x(e),A(u.nl.Success))}).catch(e=>{console.error(e),A(u.nl.Fail)}))}return((0,o.useEffect)(()=>{P(I)},[I,r,f]),(0,o.useEffect)(()=>{if(I)return I.onDataUpdate(r,E),()=>{I.removeOnDataUpdate(r,E)}},[I,r,f]),v===u.nl.Pending)?m?(0,s.jsx)(i.A,{active:!0}):null:v===u.nl.Fail?g||(0,s.jsx)(h.c,{retry:()=>{A(u.nl.Pending),t(),P()}}):v===u.nl.Updating?(0,s.jsx)(a.A,{spinning:!0,children:p(S)}):p(S)};function f(e){let{Component:t,api:r,responsePropName:n,body:i,fallbackComponent:a,showSkeleton:o}=e;return function(e){let{body:l=i,...d}=e;return(0,s.jsx)(p,{api:r,body:l,showSkeleton:o,fallbackComponent:a,children:e=>{let r={...d,[n]:e};return(0,s.jsx)(t,{...r})}})}}r.d(t,{e:()=>f},{z:p})},1733(e,t,r){var s=r(27080),n=r(25453),i=r(27348),a=r(86525),o=r(30597),l=r(88238);function d(e,t,r){let d=e();return function(){let[u,h]=(0,i.useState)(),[c,p]=(0,i.useState)(o.jK.Pending),[f,m]=(0,i.useState)({}),{loader:g}=(0,a.useDataLoader)(u);function y(e){return e.then(e=>{h(e)}).catch(()=>{p(o.jK.Fail)})}function M(e){e&&Promise.all(t.map(t=>{let[r]=t;return e.loadData(r)})).then(e=>{m(e.reduce((e,r,s)=>{let[n,i]=t[s];return e[i]=r,e},{})),p(o.jK.Success)}).catch(e=>{console.error(e),p(o.jK.Fail)})}return((0,i.useEffect)(()=>{y(d).then(()=>{M(g)})},[g]),c===o.jK.Pending)?(0,s.jsx)(n.A,{active:!0}):c===o.jK.Fail?(0,s.jsx)(l.c,{retry:()=>{p(o.jK.Pending),d.then(()=>{M(g)}).catch(()=>{y(e())})}}):(0,s.jsx)(r,{...f})}}r.d(t,{u:()=>d})},60839(e,t,r){r(27080),r(27348);var s=r(80946);r(15292),r(86525),r(83283),r(24674),r(85491),r(21023),r(86201),r(72921),r(6953),r(80336),r(56263);let{DirectoryTree:n}=s.A;r(55807),r(2157),r(59276),r(99766),r(10932),r(85687),r(884),r(96372),r(19615),r(32532)},19615(e,t,r){r.d(t,{A:()=>n,h:()=>i});var s=r(27080);r(18176);let n=e=>{let{title:t,description:r,icon:n,style:i}=e;return(0,s.jsxs)("div",{className:"container-KSV5DZ",style:i,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 i=n},85687(e,t,r){r(27080),r(27348),r(86525)},88238(e,t,r){r.d(t,{c:()=>l});var s=r(27080),n=r(39646),i=r(64254),a=r(78195),o=r(46198);let l=r(27348).memo(e=>{let{title:t="Load data failed, please try again",buttonText:r="retry",retry:l}=e;return(0,s.jsx)(n.A,{description:(0,s.jsxs)(i.A,{direction:"vertical",children:[(0,s.jsx)(a.A.Text,{children:t}),(0,s.jsx)(o.Ay,{type:"primary",onClick:()=>{l()},children:r})]})})})},12420(e,t,r){r(27080),r(27348),r(66849)},83615(e,t,r){r.d(t,{PE:()=>s.P}),r(91597),r(75567),r(33620),r(24674),r(60287);var s=r(6836);r(85491),r(60839),r(83283),r(99766)},6002(e,t,r){let s=r(80336).Kj.RsdoctorClientRoutes.Overall;r.d(t,{},{U:"Overall",w:s})},47302(e,t,r){r.d(t,{aD:()=>ev,_y:()=>n,hK:()=>a,pI:()=>i,dn:()=>l,FO:()=>o});var s,n={};r.r(n),r.d(n,{UU:()=>F,wE:()=>T});var i={};r.r(i),r.d(i,{UU:()=>U,wE:()=>W});var a={};r.r(a),r.d(a,{UU:()=>Z,wE:()=>H});var o={};r.r(o),r.d(o,{UU:()=>X,wE:()=>ee});var l={};r.r(l),r.d(l,{UU:()=>ec,wE:()=>ep});var d=r(27080),u=r(27348);r(24674);var h=r(86525);r(77406),r(91597),r(60839),r(40817),r(29056),r(6002);var c=r(80336),p=r(85491),f=r(80946),m=r(44443);r(29736),r(83283),r(38089);let{DirectoryTree:g}=f.A;r(19615),r(11288);let{DirectoryTree:y}=f.A,{useToken:M}=m.A,{innerWidth:v}=window;r(76110),r(7721),r(53829);var A=r(36473),S=r(98038),x=r(10017),I=r(30574),P=r(65925),E=r(30597);r(75238);var k=r(33620);r(27723),r(95807),r(68257),r(95503),r(60727);var D=r(15292);c.Kj.RsdoctorClientRoutes.ModuleAnalyze,r(46251);var b=r(55807),_=((s={})[s.Reasons=0]="Reasons",s[s.Dependencies=1]="Dependencies",s);_[0],_[0],_[1],_[1],r(83161),A.Y([S.a,x.a,I.a,P.a]);var j=r(88059);r(12420),r(75567);var C=r(60287);r(99219);var w=r(13078),z=r.n(w);r(12310);let{DirectoryTree:R}=f.A;var B=r(65773);r(83615);let{Search:G}=B.A,{Option:O}=j.A,F="BundleSize",T=c.Kj.RsdoctorClientRoutes.BundleSize;r(96372);var N=r(10330),$=r(94208),L=r(74457),K=r(64254);(0,p.eN)({api:c.hp.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:e=>{let{project:t}=e,{root:r}=t,[s,n]=(0,u.useState)({filename:"",loaders:[],layer:""}),[i]=(0,u.useState)(0);return(0,d.jsxs)(K.A,{direction:"vertical",style:{width:"100%"},children:[(0,d.jsx)(p.zW,{api:c.hp.ServerAPI.API.GetLoaderNames,children:e=>(0,d.jsx)(N.F,{onChange:n,loaderNames:e})}),(0,d.jsx)(p.zW,{api:c.hp.ServerAPI.API.GetLoaderChartData,children:e=>{let t=e.filter(e=>(0,L.ak)(e.resource,e.loader,s.filename,s.loaders,e.layer,s?.layer));return 0===i?(0,d.jsx)($.z,{loaders:t,cwd:r}):(0,d.jsx)(d.Fragment,{})}})]})}});let U="Loaders Timeline",W=c.Kj.RsdoctorClientRoutes.WebpackLoaderOverall;var Y=r(89654),q=r(8568),Q=r(46917),V=r(85599);(0,p.eN)({api:c.hp.ServerAPI.API.LoadDataByKey,body:{key:"root"},responsePropName:"cwd",Component:e=>{let{cwd:t}=e,[r,s]=(0,u.useState)({filename:"",loaders:[],layer:""});return(0,d.jsx)(q.Q.Consumer,{children:e=>(0,d.jsx)(Y.Ay,{locale:(0,h.getLocale)(e.locale),theme:{token:{padding:16,fontSize:14}},children:(0,d.jsxs)("div",{className:V.A.loaderAnalysis,children:[(0,d.jsx)(p.zW,{api:c.hp.ServerAPI.API.GetLoaderNames,children:e=>(0,d.jsx)(N.F,{onChange:e=>s(e),loaderNames:e})}),(0,d.jsx)(p.zW,{api:c.hp.ServerAPI.API.GetLoaderFileTree,children:e=>(0,d.jsx)(Q.h,{filename:r.filename,filetree:e,loaders:r.loaders,layer:r.layer,cwd:t})})]})})})}}),r(25205);let Z="Loaders Analysis",H=c.Kj.RsdoctorClientRoutes.WebpackLoaderAnalysis,{useToken:J}=m.A;r(85687),r(47762);let X="Plugins Analysis",ee=c.Kj.RsdoctorClientRoutes.WebpackPlugins;var et=r(65841),er=r(81923),es=r(87884),en=r(58924),ei=r(34424),ea=r(10006),eo=r(78195),el=r(25294),ed=r(66888);let eu=e=>{let{filepath:t,before:r,after:s,resolvers:n}=e;return(0,d.jsx)(es.A,{flex:1,children:(0,d.jsx)(en.A,{defaultActiveKey:"diff",items:[{key:"diff",label:"Resolve Diff Viewer",children:(0,d.jsx)(ei.A,{styles:{body:{padding:0,overflow:"hidden"}},children:(0,d.jsx)(k.Mh,{style:{height:785},isEmbed:!0,originalFilePath:t,modifiedFilePath:t,original:r,modified:s})})},{key:"details",label:"Resolve Details",children:(0,d.jsx)(ei.A,{children:(0,d.jsx)(ea.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,d.jsx)(eo.A.Text,{copyable:!0,children:(0,d.jsx)(eo.A.Text,{code:!0,strong:!0,children:t.request})})},{title:"Duration",width:80,render:(e,t)=>(0,d.jsx)(eo.A.Text,{strong:!0,children:(0,h.formatCosts)(t.costs)}),sorter:(e,t)=>e.costs-t.costs,sortDirections:["descend","ascend"]},{title:"Resolve Result",render:(e,t)=>b.xR.isResolveSuccessData(t)?(0,d.jsx)(eo.A.Text,{copyable:!0,children:t.result}):(0,d.jsx)(et.A,{style:{color:"#f50"}})}],dataSource:n})})}]})})},eh=e=>{let{resolver:t,cwd:r}=e,[s,n]=(0,u.useState)(""),i="/node_modules/",a=(0,u.useMemo)(()=>t.map(e=>e.issuerPath).filter(Boolean),[t]),o=(0,u.useMemo)(()=>a.filter(t=>!e.filename||t.indexOf(e.filename)>-1),[e.filename,a]),l=o.length&&o.every(e=>e.indexOf(i)>-1),f=(0,u.useMemo)(()=>(0,h.createFileStructures)({files:o.length?o:a,cwd:r,fileTitle:(e,t)=>(0,d.jsx)("div",{onClick:()=>n(e),children:t})}),[e.filename]);return(0,d.jsxs)(el.A,{justify:"start",align:"top",wrap:!1,gutter:E.or.BasePadding,children:[(0,d.jsx)(es.A,{span:7,children:(0,d.jsx)(ei.A,{title:"Files",children:(0,d.jsx)(D.h,{style:{width:"100%",height:735,overflow:"scroll"},treeData:f,defaultExpandedKeys:(0,h.mapFileKey)(f,l?1:4,l?void 0:e=>{let t=(0,ed.J)(e,"__RESOURCEPATH__").indexOf(i)>-1;return!!(o.length&&o.every(e=>e.indexOf(i)>-1))||!t})},`tree_${e.filename}`)})}),s&&(0,d.jsx)(p.zW,{api:c.hp.ServerAPI.API.GetResolverFileDetails,body:{filepath:s},children:e=>(0,d.jsx)(eu,{...e})})]})};(0,p.eN)({api:c.hp.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:e=>{let{project:t}=e,{root:r}=t,[s,n]=(0,u.useState)("");return(0,d.jsxs)("div",{style:{width:"100%"},children:[(0,d.jsx)(K.A,{style:{marginTop:E.or.BasePadding,marginBottom:E.or.BasePadding},children:(0,d.jsx)(C.E,{icon:(0,d.jsx)(er.A,{}),label:"Filename",placeholder:"search filename by keyword",onChange:e=>n(e)})}),(0,d.jsx)(p.zW,{api:c.hp.ServerAPI.API.GetResolverFileTree,children:e=>(0,d.jsx)(eh,{filename:s,resolver:e,cwd:r})})]})}});let ec="ModuleResolve",ep=c.Kj.RsdoctorClientRoutes.ModuleResolve;r(72876),c.Kj.RsdoctorClientRoutes.RuleIndex;var ef=r(99791),em=r(94414),eg=r(57336),ey=r(50519),eM=r(46205);r(29936),c.Kj.RsdoctorClientRoutes.TreeShaking,(0,p.ug)(h.fetchManifest,[["moduleGraph","data"],["root","cwd"]],e=>{let{data:t,cwd:r}=e,s=(0,h.useModuleGraphInstanceByModuleGraph)(t);if(0===s.size())return(0,d.jsx)(ey.$,{});let[n,i]=(0,u.useState)(""),[a,o]=(0,u.useState)(1),[l,f]=(0,u.useState)([]),[m,g]=(0,u.useState)("side-effect"),y=(0,u.useMemo)(()=>s.getModules().filter(e=>e.kind===c.hp.ModuleKind.Normal&&z().basename(e.path).includes(n)),[n]),M=(0,u.useMemo)(()=>y.find(e=>e.isEntry),[]),[v,A]=(0,u.useState)(M||y?.length&&y?.[0]),S=(0,em.EV)(y,s,n,v,e=>{x(y.find(t=>t.path===e),[])},r),x=(e,t,r)=>{A(e),f(t.slice()),b.AP.isNumber(r)&&o(r)};return(0,d.jsxs)(ei.A,{title:"Tree Shaking Analysis",bodyStyle:{paddingTop:0},className:"tree-shaking-page",children:[(0,d.jsxs)(el.A,{justify:"space-between",align:"middle",style:{marginBottom:E.or.BasePadding,marginTop:E.or.BasePadding},children:[(0,d.jsx)(C.E,{icon:(0,d.jsx)(er.A,{}),width:400,label:"FileName",placeholder:"search filename by keyword",style:{width:"auto"},onChange:e=>i(e)}),(0,d.jsxs)(ef.A.Group,{value:m,onChange:e=>{let{target:t}=e;return g(t.value)},children:[(0,d.jsx)(ef.A.Button,{value:"side-effect",children:"SideEffects"}),(0,d.jsx)(ef.A.Button,{value:"export",children:"Export Variables"})]})]}),(0,d.jsxs)(el.A,{justify:"space-between",align:"top",wrap:!1,gutter:[E.or.BasePadding,E.or.BasePadding],children:[(0,d.jsx)(es.A,{span:7,children:(0,d.jsx)(ei.A,{title:`Total Files: ${y.length}`,className:"tree-shaking-files-box",children:(0,d.jsx)(D.h,{style:{height:"80%"},className:"tree-shaking-files",selectedKeys:v?[v.path]:[],defaultExpandedKeys:(0,em.ut)(S),treeData:S,expandAction:"click"})})}),(0,d.jsx)(es.A,{span:9,children:(0,d.jsx)(p.zW,{api:c.hp.ServerAPI.API.GetModuleCodeByModuleId,body:{moduleId:v.id},children:e=>(0,d.jsx)(eg.B,{module:v,moduleGraph:s,ranges:l,toLine:a,setEditorData:x,source:e})})}),(0,d.jsx)(es.A,{flex:1,children:(0,d.jsx)(eM.oK,{kind:m,setEditorData:x,module:v,moduleGraph:s})})]})]})});var ev=r(89264);r(26037),c._8.RsdoctorManifestClientRoutes.Overall,c._8.RsdoctorManifestClientRoutes.BundleSize,c.Kj.RsdoctorClientRoutes.Uploader},38298(e,t,r){r.d(t,{Bq:()=>f,ME:()=>c,Rz:()=>g,Zb:()=>m});var s=r(27080),n=r(66888),i=r(64254),a=r(11383),o=r(5873),l=r(12329),d=r(12939),u=r(15292);let h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",r=e?.indexOf(t);return -1===r?null:0===r?t+(h(e?.slice(1),t)||""):e?.slice(0,r)};function c(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=[],i=e;for(;s<t&&(i.filter(r).forEach(e=>{e.isLeaf||n.push(e.key)}),(i=i.reduce((e,t)=>e.concat(t.children||[]),[])).length);)s++;return n}let p="__BASENAME__";function f(e){let{files:t,inlinedResourcePathKey:r="__RESOURCEPATH__",fileTitle:s=(e,t)=>t,dirTitle:i=(e,t)=>t,page:a="other"}=e,o=t.map(e=>e.replace(/\\/g,"/")),l=RegExp("/"),d=o.reduce((e,t)=>{let i=h(t,"/"),o=i?t?.slice(i.length+1):t,d=e;for(;i;){let e=d.children.find(e=>e.title===i);if(!e){let t=[d[r],i].filter(Boolean).join("/");e={title:i,icon:"bundle"===a?e=>y(e,!1):null,key:t,children:[],[r]:t,[p]:i},d.children.push(e)}d=e,o=(i=h(o,"/"))?o.slice(i.length).replace(l,""):o}return d.children.some(e=>(0,n.J)(e,r)===t)||d.children.push({title:()=>s(t,o),icon:"bundle"===a?e=>y(e):null,key:t,isLeaf:!0,[r]:t,[p]:o}),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,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:(e,t)=>t;if(!t.isLeaf)if(r.children&&1===r.children.length){let a=[r[p],t[p]].join(s);r[n]=t[n],r[p]=a,r.key=[r.key,t.key].join("-"),r.children=t.children,r.title=i(r,a),t.children&&t.children.forEach(t=>{e(t,r,s,n,i)})}else t.title=i(t,t[p]),t.children&&t.children.forEach(r=>{e(r,t,s,n,i)})})(t,e,"/",r,i))}),d}function m(e,t){return e.startsWith(t)?e.replace(t,"."):e}function g(e,t){let r=m(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)(l.A,{})]}):e.eventKey&&"string"==typeof e.eventKey?(0,u.C)(e.eventKey):(0,s.jsx)(d.A,{})}},86525(e,t,r){r.d(t,{beautifyModulePath:()=>n.Rz,beautifyPath:()=>n.Zb,changeOrigin:()=>B.$G,createFileStructures:()=>n.Bq,fetchManifest:()=>C.Cj,filterLoader:()=>P.ak,formatCosts:()=>R.a4,formatPercent:()=>z.l,formatSize:()=>z.X,getEnableRoutesFromUrlQuery:()=>B.TR,getFirstVisitFromStorage:()=>f.R7,getLanguage:()=>_,getLocale:()=>b,getShortPath:()=>B.Ml,hasBundle:()=>w.r,hasCompile:()=>w.c,hasViewModeFromStorage:()=>f.it,isDef:()=>B.C8,mapFileKey:()=>n.ME,setFirstVisitToStorage:()=>f.Yh,setThemeToStorage:()=>f.Kv,setViewModeToStorage:()=>f.ZI,useCompileAlertsByErrors:()=>S,useDataLoader:()=>s.V,useDuplicatePackagesByErrors:()=>x,useI18n:()=>g,useLocale:()=>j.Ym,useModuleGraph:()=>v,useModuleGraphInstanceByModuleGraph:()=>j.mB,useRuleIndexNavigate:()=>y,useTheme:()=>j.DP,useUniqModules:()=>A,useUrlQuery:()=>M,useViewMode:()=>j.an,useWebpackConfigurationByConfigs:()=>I});var s=r(93159),n=r(38298),i=r(55807),a=r(80336),o=r(5545),l=r(78762),d=r(27348),u=r(73498),h=r(66349),c=r(31337),p=r.n(c);r(24916);var f=r(86931);let m=a.Kj.RsdoctorClientRoutes.RuleIndex,g=()=>{let{i18n:e,...t}=(0,u.B)();return{...t,i18n:{...e,changeLanguage:(t,r)=>e.changeLanguage(t,(e,s)=>{e||(0,f.XX)(t),r&&r(e,s)})}}};function y(e,t){let r=(0,h.Zp)();return t?()=>window.open(t,"__blank"):()=>{r(`${m}?${a.jO.RsdoctorRuleClientConstant.UrlQueryForErrorCode}=${e}`)}}function M(){let e=(0,h.zy)().search||location.search;return(0,d.useMemo)(()=>p()(e,!0).query,[e])}function v(e){let t=e;"string"==typeof t&&(e=JSON.parse(i.oG.decompressText(t)));var r=e,s={dependencies:[],modules:[],moduleGraphModules:[],exports:[],sideEffects:[],variables:[]};return r&&"object"==typeof r?Array.isArray(r)?s:(0,o.N)(r,s):s}function A(e){return(0,l.h)(e,e=>e.path)}function S(e){return Array.isArray(e)?e.filter(e=>e.category===a.jO.RuleMessageCategory.Compile&&e.code!==a.jO.RuleMessageCodeEnumerated.Overlay):[]}function x(e){return(Array.isArray(e)?e.filter(e=>e.category===a.jO.RuleMessageCategory.Bundle&&e.code!==a.jO.RuleMessageCodeEnumerated.Overlay):[]).filter(e=>e.code===a.jO.RuleErrorMap.E1001.code)}function I(){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}var P=r(74457),E=r(99951),k=r(7999),D=r(30597);function b(e){return"cn"===e||"zh-CN"===e?E.A:k.A}function _(e){return"cn"===e||"zh"===e?D.TM.Cn:D.TM.En}var j=r(91799),C=r(30523),w=r(73646),z=r(42143);r(58239);var R=r(41975),B=r(70463);r(14300),r(26037)},26037(e,t,r){r(80336),r(98511)},70463(e,t,r){var s=r(31337),n=r.n(s),i=r(80336);function a(){let{query:e}=n()(location.href,!0),t=e[i.Kj.RsdoctorClientUrlQuery.ManifestFile];if(t)return decodeURIComponent(t)}function o(){let{query:e}=n()(location.href,!0),t=e[i.Kj.RsdoctorClientUrlQuery.EnableRoutes];if(!t&&location.hash&&(t=n()(location.hash,!0).query[i.Kj.RsdoctorClientUrlQuery.EnableRoutes]),!t&&location.hash){let e=location.hash,r=e.indexOf("?");-1!==r&&(t=new URLSearchParams(e.substring(r+1)).get(i.Kj.RsdoctorClientUrlQuery.EnableRoutes)||void 0)}if(t)try{return JSON.parse(decodeURIComponent(t))}catch(e){console.warn("Failed to parse enableRoutes from URL query:",e)}}function l(e){let t=n()(location.href,!0),r=n()(e,!0);return t.hash.endsWith(i.Kj.RsdoctorClientRoutes.Uploader)&&t.set("hash",i.Kj.RsdoctorClientRoutes.Overall),t.set("origin",e),t.set("protocol",r.protocol),t.set("host",r.host),t.set("port",r.port),t.toString()}function d(e){return null!=e}r.d(t,{$G:()=>l,C8:()=>d,TR:()=>o,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}})},98511(e,t,r){var s=r(80336),n=r(46068),i=r(13078),a=r.n(i),o=r(55807),l=r(85311),d=r(15306),u=r(85409),h=r(8963).Buffer,c={};c.d=(e,t,r)=>{var s=(t,r)=>{for(var s in t)c.o(t,s)&&!c.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,[r]:t[s]})};s(t,"get"),s(r,"value")},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var p={};c.r(p),c.d(p,{assetsContents:()=>W,chunkTransform:()=>K,getAssetsModulesData:()=>N,transformAssetsModulesData:()=>$});var f={};c.r(f),c.d(f,{getImportKind:()=>q,getModuleGraphByStats:()=>et,getModulesFromArray:()=>ee,getPositionByStatsLocation:()=>V,isImportDependency:()=>Y,isWebpack5orRspack:()=>Z,removeNoImportStyle:()=>Q});var m={};c.r(m),c.d(m,{transStats:()=>er});var g={};c.r(g),c.d(g,{getAllModules:()=>eg,getDependencyPosition:()=>eh,getEntryModule:()=>eu,getExportDependency:()=>ec,getExportStatement:()=>ef,getLastExportInfo:()=>em,getModuleSource:()=>ed,getResolveRequest:()=>eo,getSdkDependencyByWebpackDependency:()=>ep,getWebpackDependencyRequest:()=>ea,getWebpackModuleId:()=>en,getWebpackModulePath:()=>ei,isExternalModule:()=>el,isNormalModule:()=>es});class y{constructor(e,t,r,s,n){this._assets=[],this._modules=[],this._dependencies=[],this._imported=[],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}}class M{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]))}constructor(){this._assetMap=new Map,this._assetPathMap=new Map,this._chunkMap=new Map,this._entrypointMap=new Map}}let v=1;class A{static init(){v=1}constructor(e,t,r,s){this.id=v++,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===s.hp.ToDataType.NoSourceAndAssets||e===s.hp.ToDataType.NoCode?"":this.content}}setChunks(e){this.chunks=e}setId(e){this.id=e}setGzipSize(e){this.gzipSize=(0,n.gzipSync)(e,{level:9}).length}}let S=1;class x{static init(){S=1}constructor(e){this.name=e,this._chunks=[],this._assets=[],this.id=S++}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}}let I=1;class P{static #e=this.kind=s.hp.DependencyKind;static init(){I=1}constructor(e,t,r,s,n){this.statements=[],this.meta={exportsType:"default-with-named"},this.id=I++,this.request=e,this.module=t,this._originDependency=r,this.kind=s,this.statements=n??[]}get resolvedRequest(){return this.dependency.path}get dependency(){return this.originDependency.rootModule??this.originDependency}get originDependency(){return this._originDependency}get kindString(){return s.hp.DependencyKind[this.kind]}get resolveConcatenationModule(){return this.dependency.kind===s.hp.ModuleKind.Concatenation}isSameWithoutStatements(e){return this.request===e.request&&this.kind===e.kind&&this.module.id===e.module.id&&this.dependency.id===e.dependency.id}addStatement(e){this.hasStatement(e)||this.statements.push(e)}hasStatement(e){return this.statements.some(t=>t.isSame(e))}setBuildMeta(e){this.meta={...this.meta,...e}}toData(){return{id:this.id,request:this.request,resolvedRequest:this.resolvedRequest,kind:this.kind,...void 0!==this.typeString&&{typeString:this.typeString},module:this.module.id,dependency:this.dependency.id,originDependency:this.originDependency.id,statements:this.statements.map(e=>e.toData())}}setId(e){this.id=e}}function E(e,t){return e.line===t.line&&e.column===t.column}let k=/!/,D=/\s\+\s\d*\smodules$/,b=/^css\s.*node_modules(?!\/)/;class _{static getDefaultStatement(e){let t={line:1,column:0},r={start:{...t},end:{...t}};return new _(e,{source:{...r},transformed:{...r}})}constructor(e,t){this.module=e,this.position=t}isSame(e){var t,r;return this.module.id===e.module.id&&(t=this.position.transformed,r=e.position.transformed,!!E(t.start,r.start)&&(o.AP.isNil(t.end)||o.AP.isNil(r.end)?o.AP.isUndefined(t.end)&&o.AP.isUndefined(r.end):E(t.end,r.end)))}getSourcePosition(){let{module:e,position:t}=this;return t.source?t.source:e.getSourceMap()?(t.source=e.getSourceRange(t.transformed),t.source):void 0}getLineCode(){let e=this.module.isPreferSource&&this.position.source,t=this.module.getSource(),r=e?t.source:t.transformed,s=e?this.position.source.start.line:this.position.transformed.start.line;if("number"==typeof s)return r.split("\n")[s-1]}toData(){let e={transformed:this.position.transformed};return this.position.source&&(e.source=this.position.source),{position:e,module:this.module.id}}}let j=1;class C{static #e=this.kind=s.hp.ModuleKind;static init(){j=1}constructor(e,t,r=!1,n=s.hp.ModuleKind.Normal,i,a=""){this.issuerPath=[],this.bailoutReason=[],this.sideEffectLocations=[],this.sideEffectCodes=[],this.source={source:"",transformed:"",parsedSource:""},this.size={sourceSize:0,transformedSize:0,parsedSize:0,gzipSize:0},this.chunks=[],this.dependencies=[],this.imported=[],this.modules=[],this.concatenationModules=[],this.meta={hasSetEsModuleStatement:!1,strictHarmonyModule:!1},this.id=j++,this.webpackId=e,this.path=t,this.isEntry=r,this.kind=n,this.renderId=i,this.layer=a}get rootModule(){return this.modules.find(e=>e.path===this.path)}get isPreferSource(){if("boolean"==typeof this._isPreferSource)return this._isPreferSource;let e=this.source.source.length>0&&"test code"!==this.source.source&&!!this.sourceMap;return this._isPreferSource=e,e}addBailoutReason(e){this.bailoutReason.push(e)}getBailoutReason(){return this.bailoutReason}addSideEffectLocation(e){this.sideEffectLocations.push(e)}getSideEffectLocations(){return this.sideEffectLocations.slice()}addSideEffectCode(e){this.sideEffectCodes.push(e)}getSideEffectCodes(){return this.sideEffectCodes.slice()}getChunks(){return this.chunks.slice()}addChunk(e){this.chunks.includes(e)||(this.chunks.push(e),e.addModule(this))}removeChunk(e){this.chunks=this.chunks.filter(t=>t!==e)}getDependencies(){return this.dependencies.slice()}getDependencyByRequest(e){return this.dependencies.find(t=>t.request===e)}getDependencyByModule(e){return this.dependencies.find(t=>t.originDependency===e||t.dependency===e)}addDependency(e,t,r,s){let n=new P(e,this,t,r,s);if(this.dependencies.every(e=>!e.isSameWithoutStatements(n)))return this.dependencies.push(n),t.addImported(this),t.rootModule&&t.rootModule.addImported(this),n}removeDependency(e){this.dependencies=this.dependencies.filter(t=>t===e)}removeDependencyByModule(e){let t=this.getDependencyByModule(e);t&&this.removeDependency(t)}getImported(){return this.imported.slice()}addImported(e){this.imported.includes(e)||this.imported.push(e)}removeImported(e){this.imported=this.imported.filter(t=>t===e)}setProgram(e){this.program=e}getProgram(){return this.program}setSource(e){let{source:t}=this;t.source=e.source??t.source,t.transformed=e.transformed??t.transformed,t.parsedSource=e.parsedSource??t.parsedSource}getSource(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.hp.ToDataType.Normal;return e===s.hp.ToDataType.NoCode?{source:"",transformed:"",parsedSource:""}:e===s.hp.ToDataType.NoSourceAndAssets||e===s.hp.ToDataType.NoSource?{source:"",transformed:"",parsedSource:this.isPreferSource?"":this.source.parsedSource}:e===s.hp.ToDataType.All?{source:this.source.source,transformed:this.source.transformed,parsedSource:this.isPreferSource?"":this.source.parsedSource}:{source:this.source.source,transformed:"",parsedSource:this.isPreferSource?"":this.source.parsedSource}}setSourceMap(e){this.sourceMap=e}getSourceMap(){return this.sourceMap}setSize(e){let{size:t}=this;if(t.sourceSize=e.sourceSize??t.sourceSize,t.transformedSize=e.transformedSize??t.transformedSize,t.parsedSize=e.parsedSize??t.parsedSize,"number"==typeof e.gzipSize)t.gzipSize=e.gzipSize;else{let e=this.source.parsedSource||this.source.source;if(e&&"string"==typeof e&&e.length>0)try{t.gzipSize=(0,n.gzipSync)(e,{level:9}).length}catch{t.gzipSize=0}}}getSize(){return{...this.size}}getStatement(e){return new _(this,{source:this.getSourceRange(e),transformed:{start:{...e.start},end:e.end?{...e.end}:void 0}})}getSourceRange(e){let{sourceMap:t}=this;if(!t)return;let r={start:{}},s=t.originalPositionFor({line:e.start.line??0,column:e.start.column??0,bias:1});if(o.AP.isNumber(s.line)&&(r.start={line:s.line,column:s.column??void 0}),e.end){let s=t.originalPositionFor({line:e.end.line??0,column:e.end.column??0});o.AP.isNumber(s.line)&&(r.end={line:s.line,column:s.column??void 0})}return r}addNormalModule(e){this.modules.includes(e)||(this.modules.push(e),e.addConcatenationModule(this))}getNormalModules(){return this.modules.slice()}addConcatenationModule(e){this.concatenationModules.includes(e)||this.concatenationModules.push(e)}addIssuerPath(e){this.issuerPath?.length||(this.issuerPath=e)}getIssuerPath(){return this.issuerPath}getConcatenationModules(){return this.concatenationModules.slice()}toData(e,t){let{isPreferSource:r}=this,s=function(e){if(!e)return"";if(k.test(e)){let t=o.AP.last(e.split(k));if(t?.trim())return t}return D.test(e)?e.replace(D,""):b.test(e)?e.replace(b,""):e}(this.webpackId),n={id:this.id,renderId:this.renderId,webpackId:e&&s.indexOf(".")>0?a().relative(e,s):this.webpackId,path:this.path,isPreferSource:r,dependencies:this.dependencies.map(e=>e.id),imported:this.imported.map(e=>e.id),chunks:this.chunks.map(e=>e.id),size:this.getSize(),kind:this.kind,...this.layer?{layer:this.layer}:{},issuerPath:t?void 0:this.issuerPath?.filter(e=>e.moduleId).map(e=>e.moduleId)||[],bailoutReason:this.bailoutReason,...this.sideEffectLocations.length>0?{sideEffectLocations:this.sideEffectLocations}:{}};return(this.meta.hasSetEsModuleStatement||this.meta.strictHarmonyModule)&&(n.meta={},this.meta.hasSetEsModuleStatement&&(n.meta.hasSetEsModuleStatement=!0),this.meta.strictHarmonyModule&&(n.meta.strictHarmonyModule=!0)),this.isEntry&&(n.isEntry=this.isEntry),this.modules.length>0&&(n.modules=this.modules.map(e=>e.id)),this.rootModule&&(n.rootModule=this.rootModule.id),this.concatenationModules.length>0&&(n.concatenationModules=this.concatenationModules.map(e=>e.id)),n}setId(e){this.id=e}setRenderId(e){this.renderId=e}setChunks(e){this.chunks=e}setDependencies(e){this.dependencies=e}setImported(e){this.imported=e}setModules(e){this.modules=e}setConcatenationModules(e){this.concatenationModules=e}}let w=1;class z{static init(){w=1}constructor(e,t,r){this.id=w++,this._sideEffects=[],this.name=e,this.identifier=t,this._variable=r}get isReExport(){return!!this.from}set variable(e){this._variable=e}get variable(){if(this._variable)return this._variable;if(!this.from||!1===this._variable){this._variable=!1;return}let e=this.getRecursiveExport()?.variable;return e||(this._variable=!1),e}addSideEffect(e){this._sideEffects.every(t=>t.id!==e.id)&&(this._sideEffects.push(e),this.from&&this.from.addSideEffect(e))}getSideEffects(){return this._sideEffects.slice()}setFromExport(e){this.from=e}getRecursiveExport(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;if(0===e)throw Error("`getRecursiveExport` method parameter depth must be greater than 1.");if(!this.from)return this;let t=0,r=this;for(;r.from&&t<e;)t++,r=r.from;return r}toData(){let e={id:this.id,name:this.name,isReExport:this.isReExport,used:this._sideEffects.map(e=>e.id)};return this.from&&(e.from=this.from.id,e.root=this.getRecursiveExport().id),this.variable&&(e.variable=this.variable.id),e}}let R=1;class B{static init(){R=1}static #e=this.NamespaceSymbol=Symbol("namespace");constructor(e,t,r,s,n){this.id=R++,this._exports=[],this.name=e,this.module=t,this.identifier=r,s&&(this.fromDependency=this.module.getDependencyByRequest(s)),n===B.NamespaceSymbol?this.isNameSpace=!0:(this.isNameSpace=!1,this.originName=n)}get variable(){if(void 0!==this._variable)return this._variable?this._variable:void 0;let e=this.exports[0]?.getRecursiveExport()?.variable;return this._variable=e??!1,e}get exports(){return this._exports?.slice()??[]}setModuleExport(e){e.getExports().forEach(e=>this.setExportInfo(e))}setExportInfo(e){this._exports.push(e),e.addSideEffect(this)}toData(){let e={id:this.id,name:this.name,identifier:this.identifier.toData(),module:this.module.id};return this.fromDependency&&(e.fromDependency=this.fromDependency.id),this.isNameSpace&&(e.isNameSpace=this.isNameSpace),this.exports.length>0&&(e.exports=this.exports.map(e=>e.id)),this.variable&&(e.variable=this.variable.id),e}}let G=1;class O{static init(){G=1}constructor(e,t,r,s){this.id=G++,this.name=e,this.module=t,this.usedInfo=r,this.identifier=s}get isUsed(){return!!this._exported&&this._exported.getSideEffects().length>0}setExportInfo(e){this._exported=e,e.variable=this}getExportInfo(){return this._exported}toData(){let e={id:this.id,name:this.name,module:this.module.id,identifier:this.identifier.toData(),usedInfo:this.usedInfo};return this._exported&&(e.exported=this._exported.id),e}}class F{static init(){z.init(),B.init(),O.init()}constructor(e,t,r){this.exports=[],this.sideEffects=[],this.variables=[],this.module=e,this._graph=t,"boolean"==typeof this._dynamic&&(this._dynamic=r)}get dynamic(){return"boolean"==typeof this._dynamic?this._dynamic:this.module.getImported().map(e=>e.getDependencyByModule(this.module)).some(e=>e&&"dynamic"===e.meta.exportsType)}addExportInfo(e){this.exports.push(e),this._graph.addExportInfo(e)}addSideEffect(e){this.sideEffects.push(e),this._graph.addSideEffect(e)}addVariable(e){this.variables.push(e),this._graph.addVariable(e)}getExports(){return this.exports.slice()}getSideEffects(e){return e?this.sideEffects.filter(t=>t.name===e):this.sideEffects.slice()}getOwnExports(){return this.exports.filter(e=>!e.isReExport)}getExport(e){return this.exports.find(t=>t.name===e)}getReExports(){return this.exports.filter(e=>e.isReExport)}getOwnExport(e){return this.getOwnExports().find(t=>t.name===e)}getReExport(e){return this.getReExports().find(t=>t.name===e)}toData(){return{module:this.module.id,dynamic:this.dynamic,exports:this.exports.map(e=>e.id),sideEffects:this.sideEffects.map(e=>e.id),variables:this.variables.map(e=>e.id)}}}class T{static init(){C.init(),P.init(),F.init()}static fromData(e){let t=new T,r=e=>new _(t.getModuleById(e.module),e.position);for(let r of e.modules??[]){let e=new C(String(r.id),r.path,r.isEntry,r.kind,r.renderId,r.layer);e.id=r.id,e.setSize(r.size),e.meta={strictHarmonyModule:r.meta?.strictHarmonyModule??!1,hasSetEsModuleStatement:r.meta?.hasSetEsModuleStatement??!1},e._isPreferSource=r.isPreferSource,e.chunks=r.chunks,t.addModule(e)}for(let s of e.modules??[]){let n=t.getModuleById(s.id);for(let i of s.dependencies){let s=(e.dependencies??[]).find(e=>e.id===i),a=s&&t.getModuleById(s.originDependency);if(!s||!a){console.warn(`The connection data ID is empty: ${i}`);continue}let o=n.addDependency(s.request,a,s.kind,s.statements.map(r));o&&(o.id=s.id,t.addDependency(o))}for(let e of s.modules??[]){let r=t.getModuleById(e);if(!r){console.warn(`Add the ordinary module ID as empty: ${e}`);continue}n.addNormalModule(r)}for(let e of s.concatenationModules??[]){let r=t.getModuleById(e);if(!r){console.warn(`The aggregation module ID is empty: ${r}`);continue}n.addConcatenationModule(r)}}for(let s of e.exports??[]){let e=new z(s.name,s.identifier?r(s.identifier):void 0);e.id=s.id,t.addExportInfo(e)}for(let r of e.exports??[])if(r.from){let e=t._exportIdMap.get(r.id),s=t._exportIdMap.get(r.from);e&&s&&e.setFromExport(s)}for(let s of e.variables??[]){let e=t.getModuleById(s.module);if(!e){console.warn(`The module ID in the variable is empty：${s.module}`);continue}let n=new O(s.name,e,s.usedInfo,r(s.identifier)),i=t._exportIdMap.get(s.exported??-1);i&&n.setExportInfo(i),n.id=s.id,t.addVariable(n)}for(let s of e.sideEffects??[]){let e=t.getModuleById(s.module);if(!e){console.warn(`The module ID in the side effects is empty：${s.module}`);continue}let n=new B(s.name,e,r(s.identifier),s.originName);for(let e of(n.isNameSpace=s.isNameSpace,n.id=s.id,s.exports??[])){let r=t._exportIdMap.get(e);r&&r.addSideEffect(n)}if(s.variable){let e=t._varIdMap.get(s.variable);e&&(n._variable=e)}t.addSideEffect(n)}for(let r of e.moduleGraphModules??[]){let e=t.getModuleById(r.module);if(!e){console.warn(`The module ID in ModuleGraphModule is empty: ${r.module}`);continue}let s=new F(e,t,r.dynamic);t.addModuleGraphModule(s),r.exports.forEach(e=>{let r=t._exportIdMap.get(e);r&&s.addExportInfo(r)}),r.sideEffects.forEach(e=>{let r=t._sideEffectIdMap.get(e);r&&s.addSideEffect(r)}),r.variables.forEach(e=>{let r=t._varIdMap.get(e);r&&s.addVariable(r)})}return T.init(),t}clear(){this._dependenciesIdMap=new Map,this._moduleWebpackIdMap=new Map,this._moduleIdMap=new Map,this._moduleGraphModules=new Map,this._exportIdMap=new Map,this._sideEffectIdMap=new Map,this._varIdMap=new Map,this._layers=new Map}size(){return this._moduleIdMap.size}fromInstance(e){this.setModules(e.getModules()),this.setDependencies(e.getDependencies()),this.setConnectionsOnlyImports(e.getConnectionsOnlyImports()),e instanceof T&&(this._moduleGraphModules=new Map(e._moduleGraphModules),this._exportIdMap=new Map(e._exportIdMap),this._sideEffectIdMap=new Map(e._sideEffectIdMap),this._varIdMap=new Map(e._varIdMap),this._layers=new Map(e._layers))}getSubGraphByModule(e){let t=new Set,r=[e];t.add(e);for(let e=0;e<r.length;e++)for(let{dependency:s}of r[e].getDependencies())t.has(s)||(t.add(s),r.push(s));return r}getModules(){return Array.from(this._moduleWebpackIdMap.values())}getDependencies(){return Array.from(this._dependenciesIdMap.values())}getEntryModules(){return this.getModules().filter(e=>e.isEntry&&e.kind!==s.hp.ModuleKind.Concatenation)}getModuleById(e){return this._moduleIdMap.get(e)}getDependencyById(e){return this._dependenciesIdMap.get(e)}getModuleByWebpackId(e){return this._moduleWebpackIdMap.get(e)}getModuleByFile(e,t){return this.getModules().filter(r=>r.path===e&&(void 0===t||r.layer===t))}addModule(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(let e of t)!this._moduleIdMap.has(e.id)&&(this._moduleWebpackIdMap.set(e.webpackId,e),this._moduleIdMap.set(e.id,e),e.layer&&this.addLayer(e.layer))}addDependency(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(let e of t)this._dependenciesIdMap.has(e.id)||(this._dependenciesIdMap.set(e.id,e),this.addModule(e.module),this.addModule(e.dependency))}removeModule(e){for(let t of(this._moduleIdMap.delete(e.id),this._moduleWebpackIdMap.delete(e.webpackId),e.getDependencies()))this.removeDependency(t),this._dependenciesIdMap.delete(t.id);for(let t of e.getImported())t.removeDependencyByModule(t)}removeDependency(e){e.module.removeDependency(e),e.dependency.removeImported(e.module),this._dependenciesIdMap.delete(e.id)}addModuleGraphModule(e){this._moduleGraphModules.has(e.module)||this._moduleGraphModules.set(e.module,e)}getModuleGraphModule(e){return this._moduleGraphModules.get(e)}getModuleGraphModules(){return Array.from(this._moduleGraphModules.values())}addExportInfo(e){this._exportIdMap.set(e.id,e)}addSideEffect(e){this._sideEffectIdMap.set(e.id,e)}addVariable(e){this._varIdMap.set(e.id,e)}addLayer(e){this._layers.get(e)||this._layers.set(e,1)}getLayers(){return this._layers}toData(e){let t=!!(e?.briefOptions?.type&&e.briefOptions.type.length);return{dependencies:this.getDependencies().map(e=>e.toData()),modules:this.getModules().map(r=>r.toData(e?.contextPath,t)),moduleGraphModules:t?[]:Array.from(this._moduleGraphModules.values()).map(e=>e.toData()),exports:t?[]:Array.from(this._exportIdMap.values()).map(e=>e.toData()),sideEffects:t?[]:Array.from(this._sideEffectIdMap.values()).map(e=>e.toData()),variables:t?[]:Array.from(this._varIdMap.values()).map(e=>e.toData()),layers:Array.from(this._layers.keys())}}toTreeShakingData(){let e={};for(let t of this.getModules()){let r=t.getSideEffectCodes();r.length>0&&(e[r[0].moduleId]=r)}return{sideEffectCodes:e}}toCodeData(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.hp.ToDataType.Normal,t={};return this.getModules().forEach(r=>{t[r.id]=r.getSource(e)}),t}setModules(e){this._moduleIdMap=new Map(e.map(e=>[e.id,e])),this._moduleWebpackIdMap=new Map(e.map(e=>[e.webpackId,e])),this._layers=new Map(e.filter(e=>e.layer).map(e=>[e.layer,1]))}setDependencies(e){this._dependenciesIdMap=new Map(e.map(e=>[e.id,e]))}setConnectionsOnlyImports(e){this._connectionsOnlyImports=e}getConnectionsOnlyImports(){return this._connectionsOnlyImports}constructor(){this._dependenciesIdMap=new Map,this._connectionsOnlyImports=[],this._moduleWebpackIdMap=new Map,this._moduleIdMap=new Map,this._moduleGraphModules=new Map,this._exportIdMap=new Map,this._sideEffectIdMap=new Map,this._varIdMap=new Map,this._layers=new Map}}async function N(e,t,r,s){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Map,l=arguments.length>5?arguments[5]:void 0;if(i.size>0){for(let[t,r]of((0,d.kB)("Start Parse bundle by sourcemap."),i.entries())){let s,i=e.getModuleByFile(t);try{r&&"string"==typeof r&&r.length>0&&(s=(0,n.gzipSync)(r,{level:9}).length)}catch{}for(let e of i)e?.setSize({parsedSize:r.length,gzipSize:s}),e?.setSource({parsedSource:r})}(0,d.PZ)("Start Parse bundle by sourcemap.")}if(s.parseBundle&&(l&&l.size>0||i.size<1)){(0,d.kB)("Start Parse bundle by AST.");let{parseBundle:n=()=>({})}=s||{},i=t.getAssets(),h=e.getModules(),c=null,p=null;if(r&&i.length){for(let e of(c={},p={},i)){let t;if(l&&l.size>0&&!l.has(e.path))continue;let s=a().join(r,e.path);try{t=n(s,h)}catch(n){let{code:e="",message:t}=n,r="ENOENT"===e?"no such file":t;"1"===u.env.DEVTOOLS_NODE_DEV&&d.vF.warn(`Error parsing bundle asset "${s}": ${r}`);continue}c[e.path]=o.AP.pick(t,["src","runtimeSrc"]),Object.assign(p,t?.modules||{})}o.AP.isEmpty(c)&&(c=null,p=null,u.env.DEVTOOLS_DEV&&d.vF.warn("\nNo bundles were parsed. Analyzer will show only original module sizes from stats file.\n")),p&&$(p,e)}(0,d.PZ)("Start Parse bundle by AST.")}}function $(e,t){t&&Object.entries(e).forEach(e=>{let[r,s]=e,i,a=t.getModuleByWebpackId(r??"");try{s?.content&&"string"==typeof s.content&&s.content.length>0&&(i=(0,n.gzipSync)(s.content,{level:9}).length)}catch{}a?.setSize({parsedSize:s?.size,gzipSize:i}),a?.setSource({parsedSource:s?.content||""})})}let L="assets by status";function K(e,t){let r=new M;if(t.chunks?.forEach(e=>{let t=new y(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===L)?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)||{},i=new A(t,0,[s],n);s.addAsset(i),r.addAsset(i)}})}):t.assets?.forEach(t=>{if(t.type===L)return;let s=t.chunks?.map(e=>r.getChunkById(String(e))).filter(e=>!!e)||[],{content:n=""}=e.get(t.name)||{},i=h.byteLength(n,"utf8"),a=t.size??i,o=new A(t.name,a,s,n);s.forEach(e=>e?.addAsset(o)),r.addAsset(o)}),t.entrypoints)for(let[e,s]of Object.entries(t.entrypoints)){let t=new x(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}let U=/\.(?:js|css|html|json|svg|txt|xml|xhtml|wasm|manifest)$/i;function W(e,t,r){t.getAssets().forEach(t=>{let{content:s=""}=e.get(t.path)||{};t.content=s,s.length>0&&0===t.size&&(t.size=h.byteLength(s,"utf8")),U.test(t.path)&&r?.gzip&&t.setGzipSize(s)})}function Y(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}function q(e){let{type:t}=e;return t?t.includes("harmony")||"esm import"===t?s.hp.DependencyKind.ImportStatement:t.includes("cjs")?s.hp.DependencyKind.RequireCall:t.includes("import()")?s.hp.DependencyKind.DynamicImport:t.includes("amd")?s.hp.DependencyKind.AMDRequire:s.hp.DependencyKind.Unknown:s.hp.DependencyKind.Unknown}function Q(e){e.getModules().filter(e=>o.ZH.isStyleExt(e.path)).filter(e=>0===e.getImported().length).forEach(t=>e.removeModule(t))}function V(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}function Z(e){return"moduleGraph"in e&&!!e.moduleGraph}function H(e){if(!e.identifier||!(e?.nameForCondition||e.name)||e.identifier.startsWith("webpack/runtime")||e?.name?.startsWith("(webpack)"))return!0}function J(e,t){if(t.nameForCondition)return t.nameForCondition.replace("\0","");let r=t.name.replace(/ ?\+ ?\d+ ?modules$/,"");return a().isAbsolute(r)?r:a().join(e,r)}function X(e){return".json"===a().extname(e).toLowerCase()}function ee(e,t){e.forEach(e=>{"module"===e.type||void 0===e.type?t.push(e):"children"in e&&e.children&&ee(e.children,t)})}function et(e,t,r){var n;let{modules:i,chunks:a}=e;T.init();let o=new T,l=[],d=[];for(let e of(ee(i??[],d),n=a??[],n?.forEach(e=>{e.modules?.length&&d.push(...e.modules.map(e=>({...e,identifier:e.identifier??e.moduleIdentifier,name:e.name??e.moduleName})))}),d??[])){if(H(e)||o.getModuleByWebpackId(e.identifier))continue;l.push(e);let n=!!(e.modules&&e.modules.length>0),i=new C(e.identifier??e.moduleIdentifier,J(t,e),0===e.depth,n?s.hp.ModuleKind.Concatenation:s.hp.ModuleKind.Normal,e.id?String(e.id):void 0,e.layer);if(e.optimizationBailout&&e.optimizationBailout.forEach(e=>i.addBailoutReason(e)),e.issuerPath&&i.addIssuerPath(e.issuerPath),e.chunks?.forEach(e=>{let t=r.getChunkById(String(e));t&&i.addChunk(t)}),o.addModule(i),e.source&&i.setSource({transformed:h.isBuffer(e.source)?e.source.toString():e.source}),"number"==typeof e.size){i.setSize({sourceSize:e.size,transformedSize:e.size});let t={sourceSize:e.size,transformedSize:e.size};X(i.path)&&(t.parsedSize=e.size),i.setSize(t)}for(let n of e.modules??[]){let a;if(H(n))continue;l.push(n);let d=n.identifier;if(a=o.getModuleByWebpackId(d)||(o.getModuleByWebpackId(d)??new C(d,J(t,n),0===n.depth,s.hp.ModuleKind.Normal,n.id?String(n.id):void 0,n.layer)),n.optimizationBailout&&n.optimizationBailout.filter(e=>!e.includes("ModuleConcatenation bailout")).forEach(e=>a.addBailoutReason(e)),n.issuerPath&&a.addIssuerPath(n.issuerPath),n.chunks?.length?n.chunks?.forEach(e=>{let t=r.getChunkById(String(e));t&&a.addChunk(t)}):e.chunks?.forEach(e=>{let t=r.getChunkById(String(e));t&&a.addChunk(t)}),n.source&&a.setSource({transformed:h.isBuffer(n.source)?n.source.toString():n.source}),"number"==typeof n.size){a.setSize({sourceSize:n.size,transformedSize:n.size});let e={sourceSize:n.size,transformedSize:n.size};X(a.path)&&(e.parsedSize=n.size),a.setSize(e)}o.addModule(a),i.addNormalModule(a)}}for(let e of l){let t=o.getModuleByWebpackId(e.identifier??"");if(!t)continue;let r=(e.reasons??[]).filter(Y).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=o.getModuleByWebpackId(s.moduleIdentifier);if(!r)continue;if(!r.getDependencyByRequest(e)){let n=r.addDependency(e,t,q(s));n&&o.addDependency(n)}let n=r.getDependencyByRequest(e);if(n&&s?.loc){let e=V(s.loc);e&&n.addStatement(new _(r,{transformed:e}))}}}let u=new Map;return o.getModules().forEach(e=>{e.issuerPath&&e.issuerPath.forEach(e=>{let t=u.get(e.identifier);!t&&(t=o.getModuleByWebpackId(e.identifier))&&u.set(e.identifier,t),t&&(e.moduleId=t.id)})}),o}async function er(e){let t=K(new Map,e),r=et(e,".",t);return await N(r,t,e.outputPath||"",{}),{chunkGraph:t,moduleGraph:r}}function es(e){return"request"in e&&"rawRequest"in e&&"resource"in e}function en(e){return e.identifier()}function ei(e){return e.resource??e.nameForCondition?.()??en(e)}function ea(e,t){return e.request??e.userRequest??t?.rawRequest}function eo(e,t){return ei(t.getResolvedModule(e))}function el(e){return!!e.externalType}function ed(e){return el(e)?"":e.originalSource?.()?.source().toString()??""}function eu(e){return Array.from(e.values()).map(e=>e.getRuntimeChunk()).map(e=>e?e.entryModule:null).filter(Boolean).map(e=>es(e)?e:e.rootModule)}function eh(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],{loc:s}=e;if(!s||!("start"in s))return;let n={start:{line:s.start.line,column:s.start.column},end:s.end?{line:s.end.line,column:s.end.column}:void 0};return new _(t,{source:r?t.getSourceRange(n):void 0,transformed:n})}function ec(e,t){let r=t.dependencies.find(t=>t.name===e.name&&("harmony export imported specifier"===t.type||"harmony export specifier"===t.type));return!r&&e._target&&e._target.size>0&&(r=e._getMaxTarget().values().next().value.connection.dependency),r}function ep(e,t,r){let s=ei(t),n=ea(e);return r.getDependencies().find(e=>e.module.path===s&&e.request===n)}function ef(e,t,r){let s=ec(e,t);if(!s)return;let n=ei(t),i=ea(s),a=r.getDependencies().find(e=>e.module.path===n&&e.request===i);if(a&&1===a.statements.length)return a.statements[0];let o=r.getModuleByWebpackId(en(t));if(o)return eh(s,o)}function em(e,t){let r=e.findTarget(t,()=>!0);if(r&&r.export)return t.getExportsInfo(r.module).getExportInfo(r.export[0])}function eg(e){let t=[];for(let r of e.modules)t.push(...r.modules??[]),t.push(r);return(0,l.R)(t.filter(e=>!en(e).startsWith("webpack/runtime")),e=>en(e))}r.d(t,{dh:()=>T,nV:()=>C})},55807(e,t,r){var s,n,i=r(37757),a=r(46068),o=r(8963),l=r(13078),d=r.n(l),u=r(85409),h=r(80336),c=r(39980),p=r.n(c),f=r(35207),m=r(15306),g=r(60066),y=r(85409),M={};i.Q.r(M),i.Q.d(M,{getPackageRelationAlertDetails:()=>e4});var v={};i.Q.r(v),i.Q.d(v,{compressText:()=>N,decompressText:()=>$,mergeIntervals:()=>T,random:()=>L});var A={};i.Q.r(A),i.Q.d(A,{getBundleDiffPageQueryString:()=>e2,getBundleDiffPageUrl:()=>e8,parseFilesFromBundlePageUrlQuery:()=>e3});var S={};i.Q.r(S),i.Q.d(S,{decode:()=>F,encode:()=>O});var x={};i.Q.r(x),i.Q.d(x,{APIDataLoader:()=>ts});var I={};i.Q.r(I),i.Q.d(I,{fetchWithTimeout:()=>ti,getFetch:()=>tn,postJSON:()=>ta});var P={};i.Q.r(P),i.Q.d(P,{isJsExt:()=>ty,isStyleExt:()=>tg});var E={};i.Q.r(E),i.Q.d(E,{getMcpConfigPath:()=>tm,getMcpServerInfo:()=>tc,getMcpServerInfoByPort:()=>tp,readMcpConfig:()=>th,writeMcpPort:()=>tf});var k={};i.Q.r(k),i.Q.d(k,{diffAssetsByExtensions:()=>eq,diffSize:()=>eY,extname:()=>eH,filterAssets:()=>e$,filterAssetsByExtensions:()=>eN,filterModulesAndDependenciesByPackageDeps:()=>eR,formatAssetName:()=>eO,getAllBundleData:()=>eZ,getAssetDetails:()=>eV,getAssetsDiffResult:()=>eW,getAssetsSizeInfo:()=>eL,getAssetsSummary:()=>eQ,getBundleDiffResult:()=>e0,getChunkByChunkId:()=>eS,getChunkIdsByAsset:()=>ev,getChunksByAsset:()=>eI,getChunksByChunkIds:()=>ex,getChunksByModule:()=>eA,getChunksByModuleId:()=>eP,getDependenciesByModule:()=>ek,getDependencyByPackageData:()=>eE,getDependencyByResolvedRequest:()=>eD,getEntryPoints:()=>e1,getInitialAssetsSizeInfo:()=>eU,getModuleByDependency:()=>ez,getModuleDetails:()=>eB,getModuleIdsByChunk:()=>e_,getModuleIdsByModulesIds:()=>ej,getModulesByAsset:()=>eb,getModulesByChunk:()=>eC,getModulesByChunks:()=>ew,getModulesDiffResult:()=>eJ,getPackagesDiffResult:()=>eX,isAssetMatchExtension:()=>eF,isAssetMatchExtensions:()=>eT,isInitialAsset:()=>eK});var D={};i.Q.r(D),i.Q.d(D,{LoaderInternalPropertyName:()=>eo,findLoaderTotalTiming:()=>V,getDirectoriesLoaders:()=>en,getLoaderChartData:()=>ee,getLoaderCosts:()=>H,getLoaderFileDetails:()=>er,getLoaderFileFirstInput:()=>ei,getLoaderFileInputAndOutput:()=>ea,getLoaderFileTree:()=>et,getLoaderFolderStatistics:()=>es,getLoaderNames:()=>J,getLoadersCosts:()=>Z,getLoadersTransformData:()=>X,isVue:()=>el});var b={};i.Q.r(b),i.Q.d(b,{fetchShardingData:()=>q,fetchShardingFiles:()=>Q,isShardingData:()=>Y});var _={};i.Q.r(_),i.Q.d(_,{MODULE_PATH_PACKAGES:()=>tl,PACKAGE_PATH_NAME:()=>td,getPackageMetaFromModulePath:()=>tu});var j={};i.Q.r(j),i.Q.d(j,{getPluginData:()=>e6,getPluginHooks:()=>e5,getPluginSummary:()=>e7,getPluginTapNames:()=>e9});var C={};i.Q.r(C),i.Q.d(C,{getResolverCosts:()=>eg,getResolverFileDetails:()=>eM,getResolverFileTree:()=>ey,isResolveFailData:()=>em,isResolveSuccessData:()=>ef});var w={};i.Q.r(w),i.Q.d(w,{RspackLoaderInternalPropertyName:()=>te,RspackSummaryCostsDataName:()=>tt,checkSourceMapSupport:()=>tr});var z={};i.Q.r(z),i.Q.d(z,{SummaryCostsDataName:()=>G});var R={};i.Q.r(R),i.Q.d(R,{formatCosts:()=>ec,getCurrentTimestamp:()=>ep,getUnit:()=>eh,toFixedDigits:()=>eu});var B={};i.Q.r(B),i.Q.d(B,{isFilePath:()=>U,isRemoteUrl:()=>W,isUrl:()=>K});var G=((s={}).Bootstrap="bootstrap->beforeCompile",s.Compile="beforeCompile->afterCompile",s.Done="afterCompile->done",s.Minify="minify(processAssets)",s);function O(e){let t=`${e.charCodeAt(0)}`;for(let r=1;r<e.length;r++)t+=`!${e.charCodeAt(r)}`;return t}function F(e){let t="",r="";for(let s=0;s<e.length;s++)"!"===e[s]?(t+=String.fromCharCode(+r),r=""):r+=e[s];return r&&(t+=String.fromCharCode(+r)),t}function T(e){let t,r;e.sort((e,t)=>e[0]-t[0]);let s=[];for(let n=0;n<e.length;n++)r=e[n],!t||r[0]>t[1]?(t=r,s.push(r)):t[1]=Math.max(t[1],r[1]);return s}function N(e){try{return(0,a.deflateSync)(e).toString("base64")}catch(e){return m.vF.debug(`compressText error: ${e}`),""}}function $(e){return(0,a.inflateSync)(o.Buffer.from(e,"base64")).toString()}function L(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function K(e){return/^https?:\/\//.test(e)}function U(e){return(0,l.isAbsolute)(e)}function W(e){return!!("string"==typeof e&&(K(e)||(0,l.isAbsolute)(e)))}function Y(e){return!!(Array.isArray(e)&&e.length>0&&e.every(e=>W(e)))}async function q(e,t){let r=await Promise.all(e.map(e=>t(e))),s=0===r.length?[]:r.reduce((e,t)=>e+t);return"object"==typeof s?s:JSON.parse($(s))}async function Q(e,t,r){return(await Promise.all(Object.keys(e).map(async s=>{let n=e[s];return r?.length&&0>r.indexOf(s)?{[s]:[]}:Y(n)?{[s]:await q(n,t)}:{[s]:n}}))).reduce((e,t)=>Object.assign(e,t))}function V(e){let t=1/0,r=-1/0;for(let s=0;s<e.length;s++){let n=e[s];n.startAt<=t&&(t=n.startAt),n.endAt>=r&&(r=n.endAt)}return{start:t,end:r}}function Z(e,t){let r={},s={};t.forEach(t=>{e(t)?(r[t.pid]||(r[t.pid]=[]),r[t.pid].push([t.startAt,t.endAt])):(s[t.pid]||(s[t.pid]=[]),s[t.pid].push([t.startAt,t.endAt]))});let n=0,i=Object.keys(r);for(let e=0;e<i.length;e++){let t=i[e],a=T(r[t]),o=T(s[t]||[]).filter(e=>{let[t,r]=e;return a.some(e=>t>=e[0]&&r<=e[1])});n+=(a.length?a.reduce((e,t)=>e+=t[1]-t[0],0):0)-(o.length?o.reduce((e,t)=>e+=t[1]-t[0],0):0)}return n}function H(e,t){let r=t.filter(t=>!t.loader.includes("builtin")&&t!==e&&t.pid===e.pid&&t.startAt>=e.startAt&&t.endAt<=e.endAt),s=e.endAt-e.startAt;return r.length&&T(r.map(t=>[Math.max(t.startAt,e.startAt),Math.min(t.endAt,e.endAt)])).forEach(e=>{let t=e[1]-e[0];s-=t}),s}function J(e){let t=new Set;return e.forEach(e=>e.loaders.forEach(e=>t.add(ed(e.loader)))),[...t]}function X(e){let t=[];for(let r=0;r<e.length;r++){let s=e[r];for(let e=0;e<s.loaders.length;e++){let r=s.loaders[e];t.push(r)}}return t}function ee(e){let t=[],r=X(e);return e.forEach(e=>{e.loaders.forEach(s=>{t.push({layer:e.resource.layer,loader:ed(s.loader),isPitch:s.isPitch,startAt:s.startAt,endAt:s.endAt,pid:s.pid,sync:s.sync,resource:e.resource.path,costs:H(s,r)})})}),t}function et(e){let t=X(e);return e.map(e=>{let{loaders:r,resource:s}=e;return{path:s.path,layer:s.layer,loaders:r.map(e=>({key:e.path,loader:ed(e.loader),path:e.path,errors:e.errors,costs:H(e,t)}))}})}function er(e,t){let r=t.find(t=>t.resource.path===e);if(!r)throw Error(`"${e}" not match any loader data`);let s=X(t);return{...r,loaders:r.loaders.map(e=>{let{input:t,result:r,...n}=e;return{...n,loader:ed(e.loader),costs:H(e,s)}})}}function es(e,t){let r=t.filter(t=>{let{path:r}=t.resource;return r.startsWith(e)}),s=[],n=new Map;return r.forEach(e=>{e.loaders.forEach(e=>{let t=n.get(e.loader);return t?n.set(e.loader,{files:t.files+1,path:e.path}):n.set(e.loader,{files:1,path:e.path}),s.push({loader:e.loader,startAt:e.startAt,endAt:e.endAt,pid:e.pid})})}),Array.from(n).map(e=>{let t=Z(t=>t.loader===e[0],s);return{loader:e[0],files:e[1].files,path:e[1].path,costs:t}})}function en(e,t){let r,s=t||y.cwd();return(r=new Set,e.forEach(e=>{if(e.resource.path.startsWith(s)){let t=e.resource.path.split(s).slice(1).join("/").split("/");if(t.length>=2){let e=t.slice(0,2).join("/");r.add(`${s}/${e}`)}}else{let t=e.resource.path.split("/"),s=t.slice(0,t.length-1).join("/");r.add(s)}}),Array.from(r)).map(t=>{let r=es(t,e);return{directory:t,stats:r}})}function ei(e,t){for(let r=0;r<t.length;r++){let s=t[r];if(s.resource.path===e){let e=s.loaders.filter(e=>!e.isPitch);if(!e.length)return"";return e[0].input||""}}return""}function ea(e,t,r,s){for(let n=0;n<s.length;n++){let i=s[n];if(i.resource.path===e)for(let e=0;e<i.loaders.length;e++){let s=i.loaders[e];if(ed(s.loader)===t&&s.loaderIndex===r)return{input:s.input||"",output:s.result||""}}}return{input:"",output:""}}let eo="__l__",el=e=>("module"in e.options&&e.options.module.rules||[]).some(e=>!!(e&&"object"==typeof e&&e.test instanceof RegExp&&e.test?.test(".vue"))),ed=e=>{let t=e.includes("node_modules")?e.split("node_modules"):null;return t?t[t.length-1]:e};function eu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return 0===t?Math.floor(e):+e.toFixed(t)}function eh(e,t){return"m"===t?e>1?"mins":"min":e>1?"hours":"hour"}function ec(e){if((e=Number(e))>=1e3){let t=e/1e3;if(t>=60){let e=t/60;if(e>=60){let t=eu(e/60,0),r=eu(e%60,1),s=eh(t,"h");return r>0?`${t}${s} ${r}${eh(r,"m")}`:`${t}${s}`}let r=eh(e=eu(e,0),"m"),s=eu(t%60,0);return s>0?`${e}${r} ${s}s`:`${e}${r}`}return`${eu(t,1)}s`}if(e>=10)return`${+eu(e,0)}ms`;if(e>=1)return`${+eu(e,1)}ms`;let t=+eu(e,2);return 0===t&&(t=+eu(e,3)),`${t}ms`}function ep(e,t){let r=(0,u.hrtime)(t);return e+1e3*r[0]+(y.env.RSTEST?Math.round(r[1]/1e6):r[1]/1e6)}function ef(e){return!!e.result}function em(e){return!!e.error}function eg(e,t){let r=t.filter(t=>t!==e&&t.pid===e.pid&&t.startAt>=e.startAt&&t.endAt<=e.endAt),s=e.endAt-e.startAt;return r.length&&T(r.map(t=>[Math.max(t.startAt,e.startAt),Math.min(t.endAt,e.endAt)])).forEach(e=>{let t=e[1]-e[0];s-=t}),s}function ey(e){return e.map(e=>({issuerPath:e.issuerPath}))}function eM(e,t,r,s){let n=r.find(t=>t.path===e),i=t.filter(t=>t.issuerPath===e),a=n&&s&&s[n.id]?s[n.id].source:"",o=i.reduce((e,t)=>t.request&&ef(t)?e.replace(RegExp(`["']${t.request}["']`),`"${t.result}"`):e,a);return{filepath:e,before:a,after:o,resolvers:i.map(e=>({...e,costs:eg(e,t)}))}}function ev(e){return e.chunks?e.chunks:[]}function eA(e,t){return e.chunks.length?ex(e.chunks,t):[]}function eS(e,t){return t.find(t=>t.id===e)}function ex(e,t,r){return e.length?e.map(e=>t.find(t=>t.id===e)).filter(Boolean).map(e=>{if(r&&r.length>0){let t={};for(let s of r)void 0!==e[s]&&(t[s]=e[s]);return t}return e}):[]}function eI(e,t,r){return ex(ev(e),t,r)}function eP(e,t,r){let s=t.find(t=>t.id===e);return s?eA(s,r):[]}function eE(e,t){return t.find(t=>t.id===e.dependencyId)}function ek(e,t){return e.dependencies.map(e=>t.find(t=>t.id===e)).filter(Boolean)}function eD(e,t){return t.find(t=>t.resolvedRequest===e)}function eb(e,t,r,s,n){return ew(ex(ev(e),t),r,s,n)}function e_(e){let{modules:t=[]}=e;return t}function ej(e,t){return e.map(e=>t.find(t=>t.id===e)).filter(Boolean)}function eC(e,t,r){return e_(e).map(e=>{let s=t.find(t=>t.id===e);if(r&&r.length>0){if(!s)return null;let e={};for(let t of r)void 0!==s[t]&&(e[t]=s[t]);return e}return s}).filter(Boolean)}function ew(e,t,r,s){let n=[];try{e.forEach(e=>{eC(e,t,r).forEach(e=>{(!s||s(e))&&!n.filter(t=>t.id===e.id).length&&n.push(e)})})}catch(e){m.vF.debug(e)}return n}function ez(e,t){return t.find(t=>t.id===e.module)}function eR(e,t,r){let s=[],n=[];for(let i=0;i<e.length;i++){let a=eE(e[i],t);if(a){s.push(a);let e=ez(a,r);e&&n.push(e)}}return{dependencies:s,modules:n}}function eB(e,t,r,s){let n=t.find(t=>t.id===e);return{module:n,dependencies:ek(n,r),...s?.length?{sideEffectCodes:s}:{}}}let eG=RegExp(`(.*)${/[-|.]/.source}(${/(?:[a-f0-9]{4,32}|[a-zA-Z]{3,}[0-9]|[a-zA-Z]*[0-9][a-zA-Z]{2,}|[a-zA-Z]*[0-9][a-zA-Z0-9]{3,31})/.source})(${/(?:\.[a-z｜A-Z|0-9]{2,}){1,}/.source})$`);function eO(e,t){let r=t?.split("."),s="",n=e;if(r?.length&&r.length>=3&&r[r.length-2]?.indexOf("[")<0&&"js|css|html".indexOf(r[r.length-1])>-1){s=r[r.length-2];let t=e.match(/(.*)(\.([a-f0-9]{4,32}|[a-zA-Z]*[0-9][a-zA-Z0-9]*))(\.[^.]+){2,}$/);if(t&&t[3].length>=4&&t[3].length<=32)return n=t[1],`${n}.${s}.${e.substring(e.lastIndexOf(".")+1)}`}let i=e.match(eG);return i&&i[2]&&i[2].length>=4&&i[2].length<=32?e.replace(eG,"$1$3"):e}function eF(e,t){return e.path.slice(-t.length)===t||eH(e.path)===t}function eT(e,t){return!!t.length&&t.some(t=>eF(e,t))}function eN(e,t){return"string"==typeof t?e.filter(e=>eF(e,t)):Array.isArray(t)?e.filter(e=>eT(e,t)):[]}function e$(e,t){return t&&(e="function"==typeof t?e.filter(t):eN(e,t)),e}function eL(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{withFileContent:s=!0,filterOrExtensions:n}=r;return(e=e.filter(e=>!eT(e,h.YM.MapExtensions)),n&&(e=e$(e,n)),e.length)?{count:e.length,size:e.reduce((e,t)=>e+t.size,0),files:e.map(e=>({path:e.path,size:e.size,gzipSize:e.gzipSize,initial:eK(e,t),content:s?e.content:void 0}))}:{count:0,size:0,files:[]}}function eK(e,t){return eI(e,t).some(e=>!!e.initial)}function eU(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return eL(e,t,{...r,filterOrExtensions:e=>{var s;return(!(s=r.filterOrExtensions)||("function"==typeof s?s(e):"string"==typeof s?eF(e,s):eT(e,s)))&&eK(e,t)}})}function eW(e,t){return{all:{total:eq(e,t)},js:{total:eq(e,t,h.YM.JSExtensions),initial:eq(e,t,h.YM.JSExtensions,!0)},css:{total:eq(e,t,h.YM.CSSExtension),initial:eq(e,t,h.YM.CSSExtension,!0)},imgs:{total:eq(e,t,h.YM.ImgExtensions)},html:{total:eq(e,t,h.YM.HtmlExtension)},media:{total:eq(e,t,h.YM.MediaExtensions)},fonts:{total:eq(e,t,h.YM.FontExtensions)},others:{total:eq(e,t,e=>!eT(e,[...h.YM.JSExtensions,h.YM.CSSExtension,h.YM.HtmlExtension].concat(h.YM.ImgExtensions,h.YM.MediaExtensions,h.YM.FontExtensions,h.YM.MapExtensions)))}}}function eY(e,t){let r=e===t;return{percent:r?0:0===e?100:Math.abs(t-e)/e*100,state:r?h.Kj.RsdoctorClientDiffState.Equal:e>t?h.Kj.RsdoctorClientDiffState.Down:h.Kj.RsdoctorClientDiffState.Up}}function eq(e,t,r){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n,i,{size:a,count:o}=s?eU(e.assets,e.chunks,{filterOrExtensions:r}):eL(e.assets,e.chunks,{filterOrExtensions:r});if(e===t)n=a,i=o;else{let{size:e,count:a}=s?eU(t.assets,t.chunks,{filterOrExtensions:r}):eL(t.assets,t.chunks,{filterOrExtensions:r});n=e,i=a}let{percent:l,state:d}=eY(a,n);return{size:{baseline:a,current:n},count:{baseline:o,current:i},percent:l,state:d}}function eQ(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s={...r,filterOrExtensions:h.YM.JSExtensions},n={...r,filterOrExtensions:h.YM.CSSExtension},i={...r,filterOrExtensions:h.YM.ImgExtensions},a={...r,filterOrExtensions:h.YM.HtmlExtension},o={...r,filterOrExtensions:h.YM.MediaExtensions},l={...r,filterOrExtensions:h.YM.FontExtensions},d={...r,filterOrExtensions:e=>!eT(e,[...h.YM.JSExtensions,h.YM.CSSExtension,h.YM.HtmlExtension].concat(h.YM.ImgExtensions,h.YM.MediaExtensions,h.YM.FontExtensions,h.YM.MapExtensions))};return{all:{total:eL(e,t,r)},js:{total:eL(e,t,s),initial:eU(e,t,s)},css:{total:eL(e,t,n),initial:eU(e,t,n)},imgs:{total:eL(e,t,i)},html:{total:eL(e,t,a)},media:{total:eL(e,t,o)},fonts:{total:eL(e,t,l)},others:{total:eL(e,t,d)}}}function eV(e,t,r,s,n){let i=t.find(t=>t.path===e);return{asset:i,chunks:eI(i,r),modules:eb(i,r,s,void 0,n)}}function eZ(e,t,r,s){let n=[];try{for(let i=0;i<e.length;i++){let a=e[i];n.push({asset:a,modules:eb(a,t,r,s)})}return n}catch(e){return console.error(e),[]}}function eH(e){let t=e.split("?")[0].match(/\.([0-9a-z]+)(?:[\?#]|$)/i);return t?`.${t[1]}`:""}function eJ(e,t){let r=new Map;for(let t of e.modules)r.set(t.path,t);let s=new Map;for(let e of t.modules)s.set(e.path,e);let n=[],i=[],a=[];for(let[e,t]of r){let r=s.get(e);if(r){if(t.size.parsedSize!==r.size.parsedSize){let{percent:s,state:n}=eY(t.size.parsedSize,r.size.parsedSize);a.push({path:e,size:{baseline:t.size,current:r.size},percent:s,state:n})}}else i.push({path:e,size:t.size})}for(let[e,t]of s)r.has(e)||n.push({path:e,size:t.size});return n.sort((e,t)=>e.path.localeCompare(t.path)),i.sort((e,t)=>e.path.localeCompare(t.path)),a.sort((e,t)=>e.path.localeCompare(t.path)),{added:n,removed:i,changed:a}}function eX(e,t){let r=e=>`${e.name}@${e.version}`,s=new Map;for(let t of e.packages)s.set(r(t),t);let n=new Map;for(let e of t.packages)n.set(r(e),e);let i=[],a=[],o=[];for(let[e,t]of s){let r=n.get(e);if(r){if(t.size.parsedSize!==r.size.parsedSize){let{percent:e,state:s}=eY(t.size.parsedSize,r.size.parsedSize);o.push({name:t.name,version:t.version,root:t.root,size:{baseline:t.size,current:r.size},percent:e,state:s})}}else a.push({name:t.name,version:t.version,root:t.root,size:t.size})}for(let[e,t]of n)s.has(e)||i.push({name:t.name,version:t.version,root:t.root,size:t.size});return{added:i,removed:a,changed:o}}function e0(e,t){return{assets:eW(e.chunkGraph,t.chunkGraph),modules:eJ(e.moduleGraph,t.moduleGraph),packages:eX(e.packageGraph,t.packageGraph)}}function e1(e){return e}function e2(e){let t=encodeURIComponent(e.join(","));return t&&(t=`?${h.Kj.RsdoctorClientUrlQuery.BundleDiffFiles}=${t}`),t}function e8(e){let t=e2(e);return`${t}#${h.Kj.RsdoctorClientRoutes.BundleDiff}`}function e3(e){return decodeURIComponent(e).split(",")}function e5(e){return Object.keys(e)}function e9(e){let t=e5(e),r=new Set;return t.forEach(t=>{e[t].forEach(e=>{r.add(e.tapName)})}),[...r]}function e7(e){return{hooks:e5(e),tapNames:e9(e)}}function e6(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],s=e5(e).filter(e=>!t.length||-1!==t.indexOf(e));return s.length?e9(e).reduce((t,n)=>(r.length&&-1===r.indexOf(n)||s.forEach(r=>{let s=e[r].filter(e=>e.tapName===n);0!==s.length&&t.push({tapName:n,hook:r,data:s.map(e=>({startAt:e.startAt,endAt:e.endAt,costs:e.costs,type:e.type}))})}),t),[]):[]}function e4(e,t,r,s,n){return s.slice().reverse().map(s=>{let i=t.find(e=>e.id===s.dependencyId);if(!i)return null;let a=e.find(e=>e.id===i.module);return a?{group:s.group,module:a,dependency:i,relativePath:(0,l.relative)(r,a.path),moduleCode:n?.[a.id]}:null}).filter(Boolean)}let te="__l__";var tt=((n={}).Bootstrap="bootstrap->rspack:beforeCompile",n.Compile="rspack:beforeCompile->afterCompile",n.Done="rspack:afterCompile->done",n.Minify="rspack:minify(rspack:optimizeChunkAssets)",n);function tr(e){if(!Array.isArray(e)||!e[0])return{isRspack:!1,hasSourceMap:!1};let t="rspack"===e[0].name&&e[0]?.config?.name!=="lynx",r=e[0].config?.devtool,s=e[0].config?.plugins,n=s?.filter(e=>e&&e.includes("SourceMapDevToolPlugin"));return{isRspack:t,hasSourceMap:"string"==typeof r&&r.includes("source-map")&&!r.includes("eval")||!!n?.length}}class ts{loader;constructor(e){this.loader=e,this.loadAPI=this.loadAPI.bind(this)}log(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];console.log(`[${this.constructor.name}]`,...t)}loadAPI(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[s,n]=t;switch(s){case h.hp.ServerAPI.API.LoadDataByKey:return this.loader.loadData(n.key);case h.hp.ServerAPI.API.GetProjectInfo:return Promise.all([this.loader.loadData("root"),this.loader.loadData("pid"),this.loader.loadData("hash"),this.loader.loadData("summary"),this.loader.loadData("configs"),this.loader.loadData("envinfo"),this.loader.loadData("errors")]).then(e=>{let[t,r,s,n,i,a,o]=e;return{root:t,pid:r,hash:s,summary:n,configs:i,envinfo:a,errors:o,name:i?.[0]?.config?.name}});case h.hp.ServerAPI.API.GetClientRoutes:if("u">typeof window&&window?.[h.YM.WINDOW_RSDOCTOR_TAG])return window[h.YM.WINDOW_RSDOCTOR_TAG].enableRoutes;return this.loader.loadManifest().then(e=>{let{enableRoutes:t=[]}=e.client||{};return t});case h.hp.ServerAPI.API.GetLoaderNames:return this.loader.loadData("loader").then(e=>J(e||[]));case h.hp.ServerAPI.API.GetLayers:return this.loader.loadData("moduleGraph").then(e=>{let{layers:t}=e||{};return t});case h.hp.ServerAPI.API.GetLoaderChartData:return this.loader.loadData("loader").then(e=>ee(e||[]));case h.hp.ServerAPI.API.GetLoaderFileTree:return this.loader.loadData("loader").then(e=>et(e||[]));case h.hp.ServerAPI.API.GetLoaderFileDetails:return this.loader.loadData("loader").then(e=>er(n.path,e||[]));case h.hp.ServerAPI.API.GetLoaderFolderStatistics:return this.loader.loadData("loader").then(e=>es(n.folder,e||[]));case h.hp.ServerAPI.API.GetLoaderFileFirstInput:return this.loader.loadData("loader").then(e=>ei(n.file,e||[]));case h.hp.ServerAPI.API.GetLoaderFileInputAndOutput:return this.loader.loadData("loader").then(e=>ea(n.file,n.loader,n.loaderIndex,e||[]));case h.hp.ServerAPI.API.GetResolverFileTree:return this.loader.loadData("resolver").then(e=>ey(e||[]));case h.hp.ServerAPI.API.GetResolverFileDetails:return Promise.all([this.loader.loadData("resolver"),this.loader.loadData("moduleGraph.modules"),this.loader.loadData("moduleCodeMap")]).then(e=>{let t=e[0],r=e[1],s=e[2];return eM(n.filepath,t||[],r||[],s||{})});case h.hp.ServerAPI.API.GetPluginSummary:return this.loader.loadData("plugin").then(e=>e7(e||{}));case h.hp.ServerAPI.API.GetPluginData:return this.loader.loadData("plugin").then(e=>{let{hooks:t,tapNames:r}=n;return e6(e||{},t,r)});case h.hp.ServerAPI.API.GetAssetsSummary:return this.loader.loadData("chunkGraph").then(e=>{let{withFileContent:t=!0}=n,{assets:r=[],chunks:s=[]}=e||{};return eQ(r,s,{withFileContent:t})});case h.hp.ServerAPI.API.GetAssetDetails:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph"),this.loader.loadData("configs")]).then(e=>{let{assetPath:t}=n,{isRspack:r,hasSourceMap:s}=tr(e[2]||[]),{assets:i=[],chunks:a=[]}=e[0]||{},{modules:o=[]}=e[1]||{};return eV(t,i,a,o,r||s?e=>0!==e.size.parsedSize:()=>!0)});case h.hp.ServerAPI.API.GetSummaryBundles:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph"),this.loader.loadData("configs")]).then(e=>{let{assets:t=[],chunks:r=[]}=e[0]||{},{modules:s=[]}=e[1]||{},n=e[2]||[],i=t;return Array.isArray(n)&&n[0]?.config?.name==="lynx"&&(i=t.filter(e=>!e.path.endsWith("/template.js"))),eZ(i,r,s,["id","path","size","kind"])});case h.hp.ServerAPI.API.GetChunksByModuleId:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph")]).then(e=>{let{moduleId:t}=n,{chunks:r=[]}=e[0]||{},{modules:s=[]}=e[1]||{};return eP(t,s,r)});case h.hp.ServerAPI.API.GetModuleDetails:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph"),this.loader.loadData("treeShaking")]).then(e=>{let{moduleId:t}=n,{modules:r=[],dependencies:s=[]}=e[1]||{},i=e[2],a=i?.sideEffectCodes[t]||[];return eB(t,r,s,a)});case h.hp.ServerAPI.API.GetModulesByModuleIds:return this.loader.loadData("moduleGraph").then(e=>{let{moduleIds:t}=n,{modules:r=[]}=e||{};return ej(t,r)});case h.hp.ServerAPI.API.GetEntryPoints:return Promise.all([this.loader.loadData("chunkGraph")]).then(e=>{let[t]=e,{entrypoints:r=[]}=t||{};return r});case h.hp.ServerAPI.API.GetModuleCodeByModuleId:return this.loader.loadData("moduleCodeMap").then(e=>{let{moduleId:t}=n;return e?e[t]:{source:"",transformed:"",parsedSource:""}});case h.hp.ServerAPI.API.GetModuleCodeByModuleIds:return this.loader.loadData("moduleCodeMap").then(e=>{let{moduleIds:t}=n,r={};return e?(t.forEach(t=>{r[t]=e[t]}),r):[]});case h.hp.ServerAPI.API.GetAllModuleGraph:return this.loader.loadData("moduleGraph").then(e=>e?.modules);case h.hp.ServerAPI.API.GetSearchModules:return Promise.all([this.loader.loadData("moduleGraph"),this.loader.loadData("chunkGraph")]).then(e=>{let[t,r]=e,{moduleName:s}=n;if(!s)return[];let i=r.chunks.reduce((e,t)=>(t.assets.forEach(r=>{e[t.id]||(e[t.id]=[]),e[t.id].push(r)}),e),{}),a=new Map;return t?.modules.filter(e=>{e.webpackId.includes(s)&&e.chunks.forEach(e=>{a.has(e)||(i[e]||[]).forEach(t=>{t.endsWith(".js")&&a.set(e,t)})})}),Object.fromEntries(a)});case h.hp.ServerAPI.API.GetSearchModuleInChunk:return Promise.all([this.loader.loadData("moduleGraph"),this.loader.loadData("root")]).then(e=>{let[t,r]=e,{moduleName:s,chunk:i}=n;return s?t?.modules.filter(e=>e.webpackId.includes(s)&&e.chunks.includes(i)).map(e=>({id:e.id,path:e.path,relativePath:(0,l.relative)(r,e.path)})):[]});case h.hp.ServerAPI.API.GetAllChunkGraph:return this.loader.loadData("chunkGraph").then(e=>e?.chunks);case h.hp.ServerAPI.API.GetPackageRelationAlertDetails:return Promise.all([this.loader.loadData("moduleGraph"),this.loader.loadData("errors"),this.loader.loadData("root"),this.loader.loadData("moduleCodeMap")]).then(e=>{let{id:t,target:r}=n,[s,i=[],a="",o]=e,{modules:l=[],dependencies:d=[]}=s||{},{packages:u=[]}=i.find(e=>e.id===t)||{},{dependencies:h=[]}=u.find(e=>e.target.name===r.name&&e.target.root===r.root&&e.target.version===r.version)||{};return e4(l,d,a,h,o||{})});case h.hp.ServerAPI.API.GetOverlayAlerts:return this.loader.loadData("errors").then(e=>(e||[]).filter(e=>e.code===h.jO.RuleMessageCodeEnumerated.Overlay));case h.hp.ServerAPI.API.GetBundleAlerts:return this.loader.loadData("errors").then(e=>(e||[]).filter(e=>e.category===h.jO.RuleMessageCategory.Bundle));case h.hp.ServerAPI.API.BundleDiffManifest:return this.loader.loadManifest();case h.hp.ServerAPI.API.GetBundleDiffSummary:return Promise.all([this.loader.loadManifest(),this.loader.loadData("root"),this.loader.loadData("hash"),this.loader.loadData("errors"),this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph"),this.loader.loadData("moduleCodeMap"),this.loader.loadData("packageGraph"),this.loader.loadData("configs")]).then(e=>{let[t,r="",s="",n={},i={},a={},o={},l={},d=[]]=e,u="";return"string"==typeof d[0]?.config?.output?.chunkFilename&&(u=d[0]?.config.output.chunkFilename),{root:r,hash:s,errors:n,chunkGraph:i,moduleGraph:a,packageGraph:l,outputFilename:u,moduleCodeMap:o}});case h.hp.ServerAPI.API.GetChunkGraph:return this.loader.loadData("chunkGraph").then(e=>{let{chunks:t=[]}=e||{};return t});case h.hp.ServerAPI.API.GetAllModuleGraphFilter:return this.loader.loadData("moduleGraph").then(e=>e?.modules.map(e=>({id:e.id,webpackId:e.webpackId,path:e.path,size:e.size,chunks:e.chunks,kind:e.kind})));case h.hp.ServerAPI.API.GetModuleByName:return this.loader.loadData("moduleGraph").then(e=>{let{moduleName:t}=n,{modules:r=[]}=e||{};return r.filter(e=>e.path.includes(t)).map(e=>({id:e.id,path:e.path}))||[]});case h.hp.ServerAPI.API.GetModuleIssuerPath:return this.loader.loadData("moduleGraph").then(e=>{let{moduleId:t}=n,r=e?.modules||[],s=r.find(e=>String(e.id)===t)?.issuerPath||[];return Array.isArray(s)&&s.length>0&&"number"==typeof s[0]?s.map(e=>r.find(t=>t.id===e)?.path).filter(Boolean):s});case h.hp.ServerAPI.API.GetPackageInfo:return this.loader.loadData("packageGraph").then(e=>e?.packages);case h.hp.ServerAPI.API.GetPackageDependency:return this.loader.loadData("packageGraph").then(e=>e?.dependencies||[]);case h.hp.ServerAPI.API.GetChunkGraphAI:return this.loader.loadData("chunkGraph").then(e=>{let{assets:t=[]}=e||{};return t.map(e=>{let{content:t,...r}=e;return r})});case h.hp.ServerAPI.API.GetChunkByIdAI:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph")]).then(e=>{let[t,r]=e,{chunks:s=[]}=t||{},{modules:i=[]}=r||{},{chunkId:a}=n,o=s.find(e=>e.id===a);if(!o)return null;let l=i.filter(e=>o.modules.includes(e.id)).map(e=>({id:e.id,path:e.path,size:e.size,chunks:e.chunks,kind:e.kind,issuerPath:e.issuerPath}));return o.modulesInfo=l,o});case h.hp.ServerAPI.API.GetDirectoriesLoaders:return Promise.all([this.loader.loadData("root"),this.loader.loadData("loader")]).then(e=>{let[t,r]=e;return en(r||[],t||"")});default:throw Error(`API not implement: "${s}"`)}}}function tn(){let e=globalThis.fetch;if("function"!=typeof e)throw Error("fetch is not available in this environment");return e.bind(globalThis)}async function ti(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{timeout:r=3e4,signal:s,...n}=t,i=new AbortController,a=setTimeout(()=>i.abort(),r);s&&(s.aborted?i.abort():s.addEventListener("abort",()=>i.abort(),{once:!0}));let o=tn();try{let t=await o(e,{...n,signal:i.signal});if(!t.ok)throw Error(`Request failed with status ${t.status}`);return t}finally{clearTimeout(a)}}async function ta(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e4;return ti(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),timeout:r})}let to=/[a-zA-Z0-9]+(?:[-|_|.]+[a-zA-Z0-9]+)*/,tl=RegExp(`(?:${/(?:node_modules|~)(?:\/\.pnpm)?/.source}/)(?:(?:@${to.source}[/|+])?(?:${to.source}\\+)*(?:${to.source})(?:${/@[\w|\-|_|.]+/.source})?)(?:_(?:@${to.source}[/|+])?(?:${to.source})(?:@${to.source})?)*/`,"g"),td=/(?:(?: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,tu=e=>{var t;let r,s=e.match(tl);if(!s)return{name:"",version:""};let n=(t=s.flatMap(e=>{let t=e.matchAll(td);return t?(0,g.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,g.Im)(n))return{name:"",version:""};let i=(0,g.HV)(n),a=RegExp(`(.*)(${(0,g.HV)(s)}).*`),o=e.replace(a,"$1$2").replace(/\/$/,"");return{name:i,version:o&&i&&o.match(RegExp(`${i}@([\\d.]+)`))?.flat().slice(1)?.[0]||""}};function th(){let e=tm();if(p().existsSync(e))try{return JSON.parse(p().readFileSync(e,"utf8"))}catch(e){m.vF.debug("Failed to parse mcp.json",e);return}}function tc(e){let t=th();if(!t)return{};if(e){let r=t.portList?.[e],s=t.socketUrlList?.[e];if(r||s)return{port:r,socketUrl:s}}return{port:t.port,socketUrl:t.socketUrl}}function tp(e){let t=th();if(!t)return{};let r=Object.entries(t.portList||{}).find(t=>{let[,r]=t;return r===e})?.[0];return r?{port:e,socketUrl:t.socketUrlList?.[r]}:t.port===e?{port:e,socketUrl:t.socketUrl}:{port:e}}function tf(e,t,r){let s=f.tA(),n=d().join(s,".cache/rsdoctor"),i=d().join(n,"mcp.json");p().existsSync(n)||p().mkdirSync(n,{recursive:!0});let a=t||"builder",o=function(e,t){if(e&&t)return`ws://localhost:${e}?token=${encodeURIComponent(t)}`}(e,r),l=th()??{portList:{},port:0};l.portList||(l.portList={}),l.portList[a]=e,l.socketUrlList||(l.socketUrlList={}),o?(l.socketUrlList[a]=o,l.socketUrl=o):(delete l.socketUrlList[a],delete l.socketUrl),l.port=e,o&&(l.socketUrlList||(l.socketUrlList={}),l.socketUrlList[t||"builder"]=o,l.socketUrl=o),p().writeFileSync(i,JSON.stringify(l,null,2),"utf8")}function tm(){let e=f.tA(),t=d().join(e,".cache/rsdoctor");return d().join(t,"mcp.json")}function tg(e){return/\.(c|le|sa|sc)ss(\?.*)?$/.test(e)}function ty(e){return/\.(js|ts|jsx|tsx)(\?.*)?$/.test(e)}r.d(t,{AP:()=>g.AP,B_:()=>x,Fp:()=>I,TS:()=>k,Wh:()=>M,ZH:()=>P,_8:()=>b,aH:()=>D,gX:()=>R,oG:()=>v,s0:()=>B,xR:()=>C})}},o={};function l(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return a[e].call(r.exports,r,r.exports,l),r.exports}l.m=a,l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.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);l.r(n);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&s&&r;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(e=>{i[e]=()=>r[e]});return i.default=()=>r,l.d(n,i),n},l.d=(e,t,r)=>{var s=(t,r)=>{for(var s in t)l.o(t,s)&&!l.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,[r]:t[s]})};s(t,"get"),s(r,"value")},l.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r=[],l.O=(e,t,s,n)=>{if(t){n=n||0;for(var i=r.length;i>0&&r[i-1][2]>n;i--)r[i]=r[i-1];r[i]=[t,s,n];return}for(var a=1/0,i=0;i<r.length;i++){for(var[t,s,n]=r[i],o=!0,d=0;d<t.length;d++)(!1&n||a>=n)&&Object.keys(l.O).every(e=>l.O[e](t[d]))?t.splice(d--,1):(o=!1,n<a&&(a=n));if(o){r.splice(i--,1);var u=s();void 0!==u&&(e=u)}}return e},l.j="331",s={331:0},l.O.j=e=>0===s[e],n=(e,t)=>{var r,n,[i,a,o]=t,d=0;if(i.some(e=>0!==s[e])){for(r in a)l.o(a,r)&&(l.m[r]=a[r]);if(o)var u=o(l)}for(e&&e(t);d<i.length;d++)n=i[d],l.o(s,n)&&s[n]&&s[n][0](),s[n]=0;return l.O(u)},(i=self.rspackChunk_rsdoctor_client=self.rspackChunk_rsdoctor_client||[]).forEach(n.bind(null,0)),i.push=n.bind(null,i.push.bind(i));var d=l.O(void 0,["85","154","377","741"],()=>l(39899));d=l.O(d)})();