@rsdoctor/client 1.5.14 → 1.5.16
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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><title>Rsdoctor</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="./resource/js/react.011ed2315a.js"></script><script defer src="./resource/js/49.131f657c61.js"></script><script defer src="./resource/js/567.86a6194659.js"></script><script defer src="./resource/js/668.
|
|
1
|
+
<!DOCTYPE html><html><head><title>Rsdoctor</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="./resource/js/react.011ed2315a.js"></script><script defer src="./resource/js/49.131f657c61.js"></script><script defer src="./resource/js/567.86a6194659.js"></script><script defer src="./resource/js/668.5625ee4138.js"></script><script defer src="./resource/js/diff.35abbf717e.js"></script><link href="./resource/css/668.79e1a33616.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
|
package/dist/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><title>Rsdoctor</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="./resource/js/react.011ed2315a.js"></script><script defer src="./resource/js/rc-0.9dcfc70e9d.js"></script><script defer src="./resource/js/rc-1.6bbc42a150.js"></script><script defer src="./resource/js/ant-design-0.19a675fc40.js"></script><script defer src="./resource/js/ant-design-1.4905c63481.js"></script><script defer src="./resource/js/ant-design-2.a00e0dd3b8.js"></script><script defer src="./resource/js/ant-design-3.0f9f01b96d.js"></script><script defer src="./resource/js/ant-design-4.bba757a4e2.js"></script><script defer src="./resource/js/ant-design-icons.3388a59c42.js"></script><script defer src="./resource/js/49.131f657c61.js"></script><script defer src="./resource/js/369.198e520a29.js"></script><script defer src="./resource/js/668.
|
|
1
|
+
<!DOCTYPE html><html><head><title>Rsdoctor</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="./resource/js/react.011ed2315a.js"></script><script defer src="./resource/js/rc-0.9dcfc70e9d.js"></script><script defer src="./resource/js/rc-1.6bbc42a150.js"></script><script defer src="./resource/js/ant-design-0.19a675fc40.js"></script><script defer src="./resource/js/ant-design-1.4905c63481.js"></script><script defer src="./resource/js/ant-design-2.a00e0dd3b8.js"></script><script defer src="./resource/js/ant-design-3.0f9f01b96d.js"></script><script defer src="./resource/js/ant-design-4.bba757a4e2.js"></script><script defer src="./resource/js/ant-design-icons.3388a59c42.js"></script><script defer src="./resource/js/49.131f657c61.js"></script><script defer src="./resource/js/369.198e520a29.js"></script><script defer src="./resource/js/668.5625ee4138.js"></script><script defer src="./resource/js/index.225c62a776.js"></script><link href="./resource/css/668.79e1a33616.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<ol>
|
|
10
10
|
${(0,m.mJ)(n,i?t.position.source:t.position.transformed,function(e,t){let{path:s,isPreferSource:r}=t,n=r?e.position.source.start:e.position.transformed.start,i=`:${n.line??1}:${n.column??0}`;return s.length<=30?`${s}${i}`:`...${s.substring(s.length-30)}${i}`}(t,s))}
|
|
11
11
|
${l?`<pre>${(0,o.i)(l)}</pre>`:""}
|
|
12
|
-
</ol>`}return r+"\n</li></div>"}(e)}}}}).filter(e=>!!e)}s.d(t,{EV:()=>g,L1:()=>A,jx:()=>y,ut:()=>j})},77132(e,t,s){s.d(t,{V:()=>f});var r=s(10347),n=s(27348),i=s(77886),l=s(97462);function a(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}class o{get(e){if(this.manifest)return this.manifest[e]}getData(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data",s=this.get(t);if(s)return s[e]}getKeys(e){return e.split(".")}joinKeys(e){return e.join(".")}dispose(){this.disposed=!0}limit(e,t){if(this.pool.has(e))return this.pool.get(e);let s=t().finally(()=>this.pool.delete(e));return this.pool.set(e,s),s}log(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];console.log(`[${this.constructor.name}]`,...t)}async loadManifest(){return this.manifest}constructor(e){a(this,"manifest",void 0),a(this,"pool",void 0),a(this,"loader",void 0),a(this,"disposed",void 0),a(this,"shardingDataMap",void 0),this.manifest=e,this.pool=new Map,this.disposed=!1,this.shardingDataMap=new Map,this.loader=new i.B_.APIDataLoader(this),console.log("[DataLoader] isLocal: ",this.isLocal())}}var d=s(77362);class c extends o{isLocal(){return!0}async loadData(e){return this.limit(e,async()=>{let[t,...s]=this.getKeys(e),n=this.getData(t);if(!n)return;let a=n;if(i._8.isShardingData(a)){if(!this.shardingDataMap.has(e)){let t=new Promise(t=>{(0,d.O)().emit(r.hp.ServerAPI.API.LoadDataByKey,{key:e},e=>{t(e.res)})});this.shardingDataMap.set(e,t)}return a=await this.shardingDataMap.get(e),this.shardingDataMap.delete(e),a}return s.length>0?(0,l.J)(a,this.joinKeys(s)):a})}async loadAPI(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];let[r,n]=t,i=n?`${r}_${JSON.stringify(n)}`:`${r}`,l=this.get("__SOCKET__PORT__")??"";return this.limit(i,async()=>new Promise(e=>{(0,d.O)(l).emit(r,n,t=>{e(t.res)})}))}dispose(){super.dispose(),this.events.forEach((e,t)=>{e.forEach(e=>{this.removeOnDataUpdate(t,e)}),e.clear()}),this.events.clear()}onDataUpdate(e,t){this.events.has(e)||this.events.set(e,new Set),this.events.get(e).has(t)||(this.events.get(e).add(t),(0,d.O)().on(e,t))}removeOnDataUpdate(e,t){(0,d.O)().off(e,t),this.events.get(e).delete(t)}constructor(...e){super(...e),function(e,t,s){t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s}(this,"events",new Map)}}var u=s(82784);class h extends o{isLocal(){return!1}async loadData(e){return this.limit(e,async()=>{let[t,...s]=this.getKeys(e),r=this.getData(t,"cloudData");if(!r)return;let n=r;if(i._8.isShardingData(n)){if(!this.shardingDataMap.has(t)){let s=i._8.fetchShardingData(n,u.fZ).catch(t=>{throw this.log("loadData error: ",n,e),t});this.shardingDataMap.set(t,s)}n=await this.shardingDataMap.get(t)}return s.length>0?(0,l.J)(n,this.joinKeys(s)):n})}async loadAPI(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];let[r,n]=t,i=n?`${r}_${JSON.stringify(n)}`:`${r}`;return this.limit(i,async()=>this.loader.loadAPI(...t))}dispose(){super.dispose()}onDataUpdate(){}removeOnDataUpdate(){}}s(76252),s(97478);class p extends o{isLocal(){return!1}async loadData(e){console.log(`[loadData]-[key]: ${e}`);let[t]=this.getKeys(e);console.log(`[loadData]-[scope]: ${t}`);let s=this.getData(t);if(!s)return;let r=s;if(!this.shardingDataMap.has(t)){let e=this.parseData(r);this.shardingDataMap.set(t,Promise.resolve(e))}return await this.shardingDataMap.get(t)}getData(e){return console.log(`[getData]-[scope]: ${e}`),window[r.YM.WINDOW_RSDOCTOR_TAG][e]}parseData(e){if("object"==typeof e&&null!==e||"string"!=typeof e)return e;try{return JSON.parse(i.oG.decompressText(e))}catch{return e}}async loadAPI(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.loader.loadAPI(...t)}dispose(){super.dispose()}onDataUpdate(){}removeOnDataUpdate(){}}let x=new WeakMap;async function m(e){try{if(e.__LOCAL__SERVER__)return console.log("[LocalServerDataLoader]"),new c(e)}catch{console.log("[DataLoader] fallback to RemoteDataLoader")}return new h(e)}function f(e){let[t,s]=(0,n.useState)(void 0);return(0,n.useEffect)(()=>{window[r.YM.WINDOW_RSDOCTOR_TAG]&&(console.log("[brief mode]"),s(new p({data:[]})))},[]),(0,n.useEffect)(()=>{if(e){if(!x.has(e)){let t=m(e);x.set(e,t)}x.get(e).then(e=>{s(e)})}},[e]),{loader:t}}},48419(e,t,s){var r=s(25205),n=s(89488),i=s(76252);r.Ay.use(n.r9).init({lng:(0,i.U)(),resources:{en:{translations:{Overall:"Overall","Compile Analysis":"Compile Analysis","Bundle Alerts":"Bundle Alerts","Help Center":"Help Center",LoadersAnalysis:"Loaders Analysis","Loaders Timeline":"Loaders Timeline","Loaders Analysis":"Loaders Analysis","Rsdoctor Introduction":"Rsdoctor Introduction","Compilation Alerts":"Compilation Alerts","Plugins Analysis":"Plugins Analysis",PluginsAnalysis:"Plugins Analysis",ModuleResolve:"Module Resolve","Bundle Analysis":"Bundle Analysis",BundleSize:"Bundle Size",ViewBundleSize:"View Bundle Size","Module Graph":"Module Graph",TreeShaking:"Tree Shaking","Rule Index":"Rule Index",Resources:"Resources","Project Overall":"Project Overall","Compile Overall":"Compile Overall","Bundle Overall":"Bundle Overall","Expand Omitted":"By default, the reasons tree collapses to the middle of the module introduced by a third party. Click on this icon to view the full tree diagram","Concatenated Tag":"Concatenated Module,hover can display the name of the concatenated main module. Note: the bundled size of the concatenated module is zero, possibly because it is aggregated into the main module.","the file content not changed after transpiled by this loader":"the file content not changed after transpiled by this loader","Output Assets List":"Output Assets List","filter the output assets which size is greater than the input value":"filter the output assets which size is greater than the input value","filter the modules which size is greater than the input value":"filter the modules which size is greater than the input value","After Compile":"After Compile","After Bundle":"After Bundle",CodeModeExplain:"In lite mode or pure stats.json upload, only source code.",DuplicatePakCodeExplain:"There is no code, when in the case of pure stats.json.",AsyncLoaderInfo:"For async loaders, the time cost of each loader is not accurate. For example: mini-css-extract-plugin's loader.",Details:"Details",Expand:"Expand",Collapse:"Collapse"}},cn:{translations:{Overall:"概览","Compile Analysis":"编译分析","Bundle Alerts":"编译预警","Help Center":"帮助中心","Rsdoctor Introduction":"Rsdoctor 介绍","Compilation Alerts":"编译预警","Plugins Analysis":"Plugins 分析",LoadersAnalysis:"Loaders 分析","Loaders Timeline":"Loaders 概览","Loaders Analysis":"Loaders 分析",PluginsAnalysis:"Plugins 分析",ModuleResolve:"Module Resolve 分析","Bundle Analysis":"产物分析",BundleSize:"产物体积分析",ViewBundleSize:"查看包大小","Module Graph":"Module Graph",TreeShaking:"Tree Shaking","Rule Index":"错误索引信息",Resources:"资源","Project Overall":"项目信息概览","Compile Overall":"编译数据概览","Bundle Overall":"产物数据概览","Expand Omitted":" reasons 树会默认折叠中间的第三方引入的模块,点击这个图标可以查看完整树图","Concatenated Tag":"串联模块,hover 上去可以显示聚合成的主模块名称。注:聚合模块 bundled size 为零,有可能是因为被聚合到了主模块中。","the file content not changed after transpiled by this loader":"该文件内容在 loader 处理前后没有发生变化","Output Assets List":"产物文件列表","filter the output assets which size is greater than the input value":"筛选大小大于输入值的产物文件","filter the modules which size is greater than the input value":"筛选大小大于输入值的模块","After Compile":"编译后","After Bundle":"打包后",CodeModeExplain:"Lite 模式下或纯 stats.json 上传的情况下只有 source code.",DuplicatePakCodeExplain:"纯 stats.json 输入的情况下没有代码,可使用 Rsdoctor 插件参与构建会有对应代码。",AsyncLoaderInfo:"对于异步 loader,单个 loader 的耗时可能不准确。例如:mini-css-extract-plugin 的 loader。",Details:"详情",Expand:"展开",Collapse:"收起"}}},fallbackLng:{"zh-CN":["cn"],default:["en"]},debug:!1,ns:["translations"],defaultNS:"translations",keySeparator:!1,interpolation:{escapeValue:!1}})},7504(e,t,s){let{findLoaderTotalTiming:r,getLoaderCosts:n}=s(77886).aH;function i(e,t,s,r,n,i){return!(s&&-1===e.indexOf(s)||n&&i&&n!==i||r?.length&&!r.includes(t))}s.d(t,{ak:()=>i},{xr:r})},27498(e,t,s){var r=s(27348),n=s(1616),i=s(80121),l=s(97478);function a(){return(0,r.useContext)(i.Q).locale}function o(){let{theme:e,setTheme:t}=(0,r.useContext)(i.Q),s=e===l.Sx.Dark;return{theme:e,setTheme:t,isDark:s,isLight:!s}}function d(){let{viewMode:e,setViewMode:t}=(0,r.useContext)(i.Q),{bundleAlerts:s,compileAlerts:n}=e;return{viewMode:e,setViewMode:t,setCompileAlertsViewMode(e){t({compileAlerts:e})},setBundleAlertsViewMode(e){t({bundleAlerts:e})},isCompileList:n===l.nE.List,isBundleList:s===l.nE.List}}function c(e){return(0,r.useMemo)(()=>n.dh.fromData(e),[e])}s(82784),s.d(t,{DP:()=>o,Ym:()=>a,an:()=>d,mB:()=>c})},82784(e,t,s){var r=s(10347),n=s(77886);s(97478);var i=s(55060);async function l(e,t){return(await n.Fp.fetchWithTimeout(e,{timeout:t})).text()}async function a(e){return n.s0.isUrl(e)?l(e,999999):e}async function o(e){let t=await l(e,3e4);if("string"==typeof t){let e=t.trim();t=/^<!doctype html\b/i.test(e)||/^<html\b/i.test(e)?{}:JSON.parse(t)}return t}s(76252);let d=new Map;async function c(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:((e=window[r._8.RsdoctorManifestClientConstant.WindowPropertyForManifestUrl]?window[r._8.RsdoctorManifestClientConstant.WindowPropertyForManifestUrl]:(0,i.kJ)())||(e=r.hp.ServerAPI.API.Manifest),e);return d.has(t)||d.set(t,o(t).catch(e=>{throw d.delete(t),e})),await d.get(t)}s.d(t,{Cj:()=>c,fZ:()=>a})},60499(e,t,s){var r=s(10347);function n(e){return e.includes(r._8.RsdoctorManifestClientRoutes.WebpackLoaders)||e.includes(r._8.RsdoctorManifestClientRoutes.ModuleResolve)||e.includes(r._8.RsdoctorManifestClientRoutes.WebpackPlugins)}function i(e){return e.includes(r._8.RsdoctorManifestClientRoutes.BundleSize)||e.includes(r._8.RsdoctorManifestClientRoutes.ModuleGraph)||e.includes(r._8.RsdoctorManifestClientRoutes.TreeShaking)}s.d(t,{c:()=>n,r:()=>i})},14914(e,t,s){function r(e){return e>=1e9?`${(e/1e9).toFixed(2)} GB`:e>=1e6?`${(e/1e6).toFixed(2)} MB`:e>=1e3?`${(e/1e3).toFixed(2)} KB`:e>1?`${e} bytes`:1===e?`${e} byte`:"0 bytes"}function n(e){return`${+e.toFixed(2)}%`}s.d(t,{X:()=>r,l:()=>n})},77362(e,t,s){var r=s(43562);let n=new Map,i=location.protocol.includes("https")?"wss":"ws",l=`${i}://${location.host}`,a=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;function o(e){let t=function(e){let{port:t,protocol:s,hostname:r}=e;if("u">typeof URL){let e=new URL("http://localhost");return e.port=String(t),e.hostname=r,e.protocol=location.protocol.includes("https")?"wss":"ws",a.test(r)||r.includes("localhost")?e.toString():`${s}//${r}`}let n=-1===s.indexOf(":")?":":"";return`${s}${n}//${r}:${t}`}({port:e,hostname:location.hostname,protocol:location.protocol});return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;if(!n.has(e)){let t=(0,r.io)(e,{});t.on("connect",()=>{console.log(`Socket Connect ${e}`)}),n.set(e,t)}return n.get(e)}(e?t:l)}s.d(t,{O:()=>o})},76252(e,t,s){var r=s(97478);function n(e){return window.localStorage.getItem(`__RSDOCTOR__STORAGE__${e}`)}function i(e,t){try{return window.localStorage.setItem(`__RSDOCTOR__STORAGE__${e}`,t),!0}catch(e){return console.error(e),!1}}function l(){return n("THEME")||r.Sx.Light}function a(e){i("THEME",e)}function o(){return n("LOCALE")||r.TM.En}function d(e){i("LOCALE",e)}function c(){let e={bundleAlerts:r.nE.List,compileAlerts:r.nE.List};try{let t=n("VIEWMODE");if(t)return JSON.parse(t)||e;return e}catch{return e}}function u(e){i("VIEWMODE",JSON.stringify(e))}function h(){return!!n("VIEWMODE")}function p(){return n("FIRST_VISIT")}function x(e){i("FIRST_VISIT",e)}s.d(t,{DT:()=>l,Kv:()=>a,R7:()=>p,U:()=>o,XX:()=>d,Yh:()=>x,ZI:()=>u,it:()=>h,oi:()=>c})},5418(e,t,s){let{toFixedDigits:r,getUnit:n,formatCosts:i}=s(77886).gX;s.d(t,{},{a4:i})},93471(){function e(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}class t{setup(){this.worker.onmessage=e=>{let{data:t}=e;if(this.callbacks.has(t.id)){let e=this.callbacks.get(t.id);this.callbacks.delete(t.id),e(t.data)}}}createEventId(){return`${Date.now()}_${++this.timer}`}emit(e,t){var s;let r=this.createEventId();return this.callbacks.set(r,t),s={id:r,data:e},this.worker.postMessage(s),{abort:()=>this.callbacks.delete(r)}}dispose(){this.worker.terminate()}constructor(t){e(this,"worker",void 0),e(this,"timer",void 0),e(this,"callbacks",void 0),this.worker=t,this.timer=0,this.callbacks=new Map,this.setup()}}new class{detectWorker(e){if(this._workerMap.has(e))return this._workerMap.get(e);let s=new t(e());return this._workerMap.set(e,s),s}constructor(){!function(e,t,s){t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s}(this,"_workerMap",new WeakMap)}}},10347(e,t,s){var r,n,i,l,a,o,d,c,u,h,p,x,m,f,g,j,y,A={};A.d=(e,t)=>{for(var s in t)A.o(t,s)&&!A.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},A.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),A.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},A.r({});var v={};A.r(v),A.d(v,{RsdoctorClientDiffState:()=>Y,RsdoctorClientRoutes:()=>Z,RsdoctorClientUrlQuery:()=>J}),A.r({}),A.r({});var b={};A.r(b),A.d(b,{BundleExtension:()=>ee,CSSExtension:()=>es,FontExtensions:()=>el,HtmlExtension:()=>er,ImgExtensions:()=>en,JSExtension:()=>X,JSExtensions:()=>et,MapExtensions:()=>ea,MediaExtensions:()=>ei,RsdoctorClientUrl:()=>ef,RsdoctorMonitorDocBId:()=>ex,RsdoctorMonitorNodeBId:()=>eh,RsdoctorMonitorWebBId:()=>ep,RsdoctorOutputFolder:()=>eo,RsdoctorOutputManifest:()=>ed,RsdoctorOutputManifestPath:()=>ec,RsdoctorProcessEnvDebugKey:()=>em,StatsFilePath:()=>eu,WINDOW_RSDOCTOR_TAG:()=>eg});var w={};A.r(w),A.d(w,{ErrorLevel:()=>z}),A.r({});var C={};A.r(C),A.d(C,{Severity:()=>z});var S={};A.r(S),A.d(S,{LogLevel:()=>L});var k={};A.r(k),A.d(k,{RsdoctorManifestClientConstant:()=>R,RsdoctorManifestClientRoutes:()=>T}),A.r({}),A.r({});var N={};A.r(N),A.d(N,{RsdoctorRuleClientConstant:()=>Q,RuleErrorMap:()=>K,RuleMessageCategory:()=>H,RuleMessageCodeEnumerated:()=>V});var M={};A.r(M),A.d(M,{DependencyKind:()=>P,IMode:()=>$,ModuleKind:()=>D,ServerAPI:()=>E,StatementKind:()=>O,ToDataType:()=>B});var E={};A.r(E),A.d(E,{API:()=>I,APIExtends:()=>F}),A.r({});var T=((r={}).Overall="Overall",r.WebpackLoaders="Compile.WebpackLoaders",r.ModuleResolve="Compile.ModuleResolve",r.WebpackPlugins="Compile.WebpackPlugins",r.BundleSize="Bundle.BundleSize",r.ModuleGraph="Bundle.ModuleGraph",r.TreeShaking="Bundle.TreeShaking",r),R=((n={}).WindowPropertyForManifestUrl="__DEVTOOLS_MANIFEST_URL__",n),z=((i={})[i.Ignore=0]="Ignore",i[i.Warn=1]="Warn",i[i.Error=2]="Error",i),L=((l={})[l.Silent=0]="Silent",l[l.Error=1]="Error",l[l.Warning=2]="Warning",l[l.Info=3]="Info",l[l.Debug=4]="Debug",l[l.Verbose=5]="Verbose",l),P=((a={})[a.Unknown=0]="Unknown",a[a.ImportStatement=1]="ImportStatement",a[a.DynamicImport=2]="DynamicImport",a[a.RequireCall=3]="RequireCall",a[a.AMDRequire=4]="AMDRequire",a),D=((o={})[o.Normal=0]="Normal",o[o.Concatenation=1]="Concatenation",o),B=((d={})[d.NoCode=0]="NoCode",d[d.Normal=1]="Normal",d[d.NoSource=2]="NoSource",d[d.NoSourceAndAssets=3]="NoSourceAndAssets",d[d.All=4]="All",d),I=((c={}).ApplyErrorFix="/api/apply/error/fix",c.Env="/api/env",c.EntryHtml="/index.html",c.Manifest="/api/manifest.json",c.LoadDataByKey="/api/data/key",c.SendAPIDataToClient="/api/socket/send",c.GetProjectInfo="/api/project/info",c.GetClientRoutes="/api/routes",c.ReportLoader="/api/loader/report",c.GetLoaderNames="/api/loader/names",c.GetLoaderChartData="/api/loader/chart/data",c.GetLoaderFileTree="/api/loader/filetree",c.GetLoaderFileDetails="/api/loader/file",c.GetLoaderFolderStatistics="/api/loader/folder/statics",c.GetLoaderFileFirstInput="/api/loader/input",c.GetLoaderFileInputAndOutput="/api/loader/inputandoutput",c.GetDirectoriesLoaders="/api/loader/directories",c.ReportSourceMap="/api/sourcemap/report",c.GetResolverFileTree="/api/resolver/filetree",c.GetResolverFileDetails="/api/resolver/file",c.GetPluginSummary="/api/plugins/summary",c.GetPluginData="/api/plugins/data",c.GetSummaryBundles="/api/graph/bundles/summary",c.GetChunkGraph="/api/graph/chunks/graph",c.GetAssetsSummary="/api/graph/assets/summary",c.GetAssetDetails="/api/graph/asset/details",c.GetChunksByModuleId="/api/graph/chunk/module",c.GetModuleDetails="/api/graph/module/details",c.GetModulesByModuleIds="/api/graph/modules/ids",c.GetEntryPoints="/api/graph/entrypoints",c.GetModuleCodeByModuleId="/api/graph/module/code",c.GetModuleCodeByModuleIds="/api/graph/module/codes",c.GetAllModuleGraph="/api/graph/module/all",c.GetAllChunkGraph="/api/graph/chunk/all",c.GetLayers="/api/graph/layers",c.GetSearchModules="/api/search/modules",c.GetSearchModuleInChunk="/api/search/chunk/modules",c.GetAllModuleGraphFilter="/api/graph/module/filter",c.GetModuleByName="/api/graph/module/name",c.GetModuleIssuerPath="/api/graph/module/issuer_path",c.GetPackageInfo="/api/package/info",c.GetPackageDependency="/api/package/dependency",c.GetPackageRelationAlertDetails="/api/alerts/details/package/relation",c.GetOverlayAlerts="/api/alerts/overlay",c.GetBundleAlerts="/api/alerts/bundle",c.BundleDiffManifest="/api/bundle_diff/manifest.json",c.GetBundleDiffSummary="/api/bundle_diff/summary",c.GetChunkGraphAI="/api/graph/chunks/graph/ai",c.GetChunkByIdAI="/api/graph/chunk/id/ai",c),F=((u={}).GetCompileProgress="/api/progress",u),O=((h={})[h.ImportDefault=100]="ImportDefault",h[h.ImportNamed=101]="ImportNamed",h[h.ImportDefaultWithNamed=102]="ImportDefaultWithNamed",h[h.ImportDefaultWithNamespace=103]="ImportDefaultWithNamespace",h[h.ImportNamespace=104]="ImportNamespace",h[h.ImportSideEffect=105]="ImportSideEffect",h[h.ImportDynamic=106]="ImportDynamic",h[h.ExportDeclaration=200]="ExportDeclaration",h[h.ExportList=201]="ExportList",h[h.ExportDefault=202]="ExportDefault",h[h.ExportAggregating=203]="ExportAggregating",h[h.ExportNamespace=204]="ExportNamespace",h[h.RequireCall=300]="RequireCall",h[h.RequireName=301]="RequireName",h[h.RequireExports=302]="RequireExports",h[h.RequireExportAggregating=303]="RequireExportAggregating",h[h.RequireExportName=304]="RequireExportName",h[h.Unknown=999]="Unknown",h),$=((p={}).brief="brief",p.lite="lite",p.normal="normal",p);let _={code:"E1001",title:"Duplicate Packages",type:"markdown",category:"bundle",description:`
|
|
12
|
+
</ol>`}return r+"\n</li></div>"}(e)}}}}).filter(e=>!!e)}s.d(t,{EV:()=>g,L1:()=>A,jx:()=>y,ut:()=>j})},77132(e,t,s){s.d(t,{V:()=>f});var r=s(10347),n=s(27348),i=s(77886),l=s(97462);function a(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}class o{get(e){if(this.manifest)return this.manifest[e]}getData(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data",s=this.get(t);if(s)return s[e]}getKeys(e){return e.split(".")}joinKeys(e){return e.join(".")}dispose(){this.disposed=!0}limit(e,t){if(this.pool.has(e))return this.pool.get(e);let s=t().finally(()=>this.pool.delete(e));return this.pool.set(e,s),s}log(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];console.log(`[${this.constructor.name}]`,...t)}async loadManifest(){return this.manifest}constructor(e){a(this,"manifest",void 0),a(this,"pool",void 0),a(this,"loader",void 0),a(this,"disposed",void 0),a(this,"shardingDataMap",void 0),this.manifest=e,this.pool=new Map,this.disposed=!1,this.shardingDataMap=new Map,this.loader=new i.B_.APIDataLoader(this),console.log("[DataLoader] isLocal: ",this.isLocal())}}var d=s(77362);class c extends o{isLocal(){return!0}async loadData(e){return this.limit(e,async()=>{let[t,...s]=this.getKeys(e),n=this.getData(t);if(!n)return;let a=n;if(i._8.isShardingData(a)){if(!this.shardingDataMap.has(e)){let t=new Promise(t=>{this.getSocket().emit(r.hp.ServerAPI.API.LoadDataByKey,{key:e},e=>{t(e.res)})});this.shardingDataMap.set(e,t)}return a=await this.shardingDataMap.get(e),this.shardingDataMap.delete(e),a}return s.length>0?(0,l.J)(a,this.joinKeys(s)):a})}async loadAPI(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];let[r,n]=t,i=n?`${r}_${JSON.stringify(n)}`:`${r}`;return this.limit(i,async()=>new Promise(e=>{this.getSocket().emit(r,n,t=>{e(t.res)})}))}dispose(){super.dispose(),this.events.forEach((e,t)=>{e.forEach(e=>{this.removeOnDataUpdate(t,e)}),e.clear()}),this.events.clear()}onDataUpdate(e,t){this.events.has(e)||this.events.set(e,new Set),this.events.get(e).has(t)||(this.events.get(e).add(t),this.getSocket().on(e,t))}removeOnDataUpdate(e,t){this.getSocket().off(e,t),this.events.get(e).delete(t)}getSocket(){let e=this.get("__SOCKET__PORT__")??"",t=this.get("__SOCKET__URL__")??"";return(0,d.O)(e,t)}constructor(...e){super(...e),function(e,t,s){t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s}(this,"events",new Map)}}var u=s(82784);class h extends o{isLocal(){return!1}async loadData(e){return this.limit(e,async()=>{let[t,...s]=this.getKeys(e),r=this.getData(t,"cloudData");if(!r)return;let n=r;if(i._8.isShardingData(n)){if(!this.shardingDataMap.has(t)){let s=i._8.fetchShardingData(n,u.fZ).catch(t=>{throw this.log("loadData error: ",n,e),t});this.shardingDataMap.set(t,s)}n=await this.shardingDataMap.get(t)}return s.length>0?(0,l.J)(n,this.joinKeys(s)):n})}async loadAPI(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];let[r,n]=t,i=n?`${r}_${JSON.stringify(n)}`:`${r}`;return this.limit(i,async()=>this.loader.loadAPI(...t))}dispose(){super.dispose()}onDataUpdate(){}removeOnDataUpdate(){}}s(76252),s(97478);class p extends o{isLocal(){return!1}async loadData(e){console.log(`[loadData]-[key]: ${e}`);let[t]=this.getKeys(e);console.log(`[loadData]-[scope]: ${t}`);let s=this.getData(t);if(!s)return;let r=s;if(!this.shardingDataMap.has(t)){let e=this.parseData(r);this.shardingDataMap.set(t,Promise.resolve(e))}return await this.shardingDataMap.get(t)}getData(e){return console.log(`[getData]-[scope]: ${e}`),window[r.YM.WINDOW_RSDOCTOR_TAG][e]}parseData(e){if("object"==typeof e&&null!==e||"string"!=typeof e)return e;try{return JSON.parse(i.oG.decompressText(e))}catch{return e}}async loadAPI(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.loader.loadAPI(...t)}dispose(){super.dispose()}onDataUpdate(){}removeOnDataUpdate(){}}let x=new WeakMap;async function m(e){try{if(e.__LOCAL__SERVER__)return console.log("[LocalServerDataLoader]"),new c(e)}catch{console.log("[DataLoader] fallback to RemoteDataLoader")}return new h(e)}function f(e){let[t,s]=(0,n.useState)(void 0);return(0,n.useEffect)(()=>{window[r.YM.WINDOW_RSDOCTOR_TAG]&&(console.log("[brief mode]"),s(new p({data:[]})))},[]),(0,n.useEffect)(()=>{if(e){if(!x.has(e)){let t=m(e);x.set(e,t)}x.get(e).then(e=>{s(e)})}},[e]),{loader:t}}},48419(e,t,s){var r=s(25205),n=s(89488),i=s(76252);r.Ay.use(n.r9).init({lng:(0,i.U)(),resources:{en:{translations:{Overall:"Overall","Compile Analysis":"Compile Analysis","Bundle Alerts":"Bundle Alerts","Help Center":"Help Center",LoadersAnalysis:"Loaders Analysis","Loaders Timeline":"Loaders Timeline","Loaders Analysis":"Loaders Analysis","Rsdoctor Introduction":"Rsdoctor Introduction","Compilation Alerts":"Compilation Alerts","Plugins Analysis":"Plugins Analysis",PluginsAnalysis:"Plugins Analysis",ModuleResolve:"Module Resolve","Bundle Analysis":"Bundle Analysis",BundleSize:"Bundle Size",ViewBundleSize:"View Bundle Size","Module Graph":"Module Graph",TreeShaking:"Tree Shaking","Rule Index":"Rule Index",Resources:"Resources","Project Overall":"Project Overall","Compile Overall":"Compile Overall","Bundle Overall":"Bundle Overall","Expand Omitted":"By default, the reasons tree collapses to the middle of the module introduced by a third party. Click on this icon to view the full tree diagram","Concatenated Tag":"Concatenated Module,hover can display the name of the concatenated main module. Note: the bundled size of the concatenated module is zero, possibly because it is aggregated into the main module.","the file content not changed after transpiled by this loader":"the file content not changed after transpiled by this loader","Output Assets List":"Output Assets List","filter the output assets which size is greater than the input value":"filter the output assets which size is greater than the input value","filter the modules which size is greater than the input value":"filter the modules which size is greater than the input value","After Compile":"After Compile","After Bundle":"After Bundle",CodeModeExplain:"In lite mode or pure stats.json upload, only source code.",DuplicatePakCodeExplain:"There is no code, when in the case of pure stats.json.",AsyncLoaderInfo:"For async loaders, the time cost of each loader is not accurate. For example: mini-css-extract-plugin's loader.",Details:"Details",Expand:"Expand",Collapse:"Collapse"}},cn:{translations:{Overall:"概览","Compile Analysis":"编译分析","Bundle Alerts":"编译预警","Help Center":"帮助中心","Rsdoctor Introduction":"Rsdoctor 介绍","Compilation Alerts":"编译预警","Plugins Analysis":"Plugins 分析",LoadersAnalysis:"Loaders 分析","Loaders Timeline":"Loaders 概览","Loaders Analysis":"Loaders 分析",PluginsAnalysis:"Plugins 分析",ModuleResolve:"Module Resolve 分析","Bundle Analysis":"产物分析",BundleSize:"产物体积分析",ViewBundleSize:"查看包大小","Module Graph":"Module Graph",TreeShaking:"Tree Shaking","Rule Index":"错误索引信息",Resources:"资源","Project Overall":"项目信息概览","Compile Overall":"编译数据概览","Bundle Overall":"产物数据概览","Expand Omitted":" reasons 树会默认折叠中间的第三方引入的模块,点击这个图标可以查看完整树图","Concatenated Tag":"串联模块,hover 上去可以显示聚合成的主模块名称。注:聚合模块 bundled size 为零,有可能是因为被聚合到了主模块中。","the file content not changed after transpiled by this loader":"该文件内容在 loader 处理前后没有发生变化","Output Assets List":"产物文件列表","filter the output assets which size is greater than the input value":"筛选大小大于输入值的产物文件","filter the modules which size is greater than the input value":"筛选大小大于输入值的模块","After Compile":"编译后","After Bundle":"打包后",CodeModeExplain:"Lite 模式下或纯 stats.json 上传的情况下只有 source code.",DuplicatePakCodeExplain:"纯 stats.json 输入的情况下没有代码,可使用 Rsdoctor 插件参与构建会有对应代码。",AsyncLoaderInfo:"对于异步 loader,单个 loader 的耗时可能不准确。例如:mini-css-extract-plugin 的 loader。",Details:"详情",Expand:"展开",Collapse:"收起"}}},fallbackLng:{"zh-CN":["cn"],default:["en"]},debug:!1,ns:["translations"],defaultNS:"translations",keySeparator:!1,interpolation:{escapeValue:!1}})},7504(e,t,s){let{findLoaderTotalTiming:r,getLoaderCosts:n}=s(77886).aH;function i(e,t,s,r,n,i){return!(s&&-1===e.indexOf(s)||n&&i&&n!==i||r?.length&&!r.includes(t))}s.d(t,{ak:()=>i},{xr:r})},27498(e,t,s){var r=s(27348),n=s(1616),i=s(80121),l=s(97478);function a(){return(0,r.useContext)(i.Q).locale}function o(){let{theme:e,setTheme:t}=(0,r.useContext)(i.Q),s=e===l.Sx.Dark;return{theme:e,setTheme:t,isDark:s,isLight:!s}}function d(){let{viewMode:e,setViewMode:t}=(0,r.useContext)(i.Q),{bundleAlerts:s,compileAlerts:n}=e;return{viewMode:e,setViewMode:t,setCompileAlertsViewMode(e){t({compileAlerts:e})},setBundleAlertsViewMode(e){t({bundleAlerts:e})},isCompileList:n===l.nE.List,isBundleList:s===l.nE.List}}function c(e){return(0,r.useMemo)(()=>n.dh.fromData(e),[e])}s(82784),s.d(t,{DP:()=>o,Ym:()=>a,an:()=>d,mB:()=>c})},82784(e,t,s){var r=s(10347),n=s(77886);s(97478);var i=s(55060);async function l(e,t){return(await n.Fp.fetchWithTimeout(e,{timeout:t})).text()}async function a(e){return n.s0.isUrl(e)?l(e,999999):e}async function o(e){let t=await l(e,3e4);if("string"==typeof t){let e=t.trim();t=/^<!doctype html\b/i.test(e)||/^<html\b/i.test(e)?{}:JSON.parse(t)}return t}s(76252);let d=new Map;async function c(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:((e=window[r._8.RsdoctorManifestClientConstant.WindowPropertyForManifestUrl]?window[r._8.RsdoctorManifestClientConstant.WindowPropertyForManifestUrl]:(0,i.kJ)())||(e=r.hp.ServerAPI.API.Manifest),e);return d.has(t)||d.set(t,o(t).catch(e=>{throw d.delete(t),e})),await d.get(t)}s.d(t,{Cj:()=>c,fZ:()=>a})},60499(e,t,s){var r=s(10347);function n(e){return e.includes(r._8.RsdoctorManifestClientRoutes.WebpackLoaders)||e.includes(r._8.RsdoctorManifestClientRoutes.ModuleResolve)||e.includes(r._8.RsdoctorManifestClientRoutes.WebpackPlugins)}function i(e){return e.includes(r._8.RsdoctorManifestClientRoutes.BundleSize)||e.includes(r._8.RsdoctorManifestClientRoutes.ModuleGraph)||e.includes(r._8.RsdoctorManifestClientRoutes.TreeShaking)}s.d(t,{c:()=>n,r:()=>i})},14914(e,t,s){function r(e){return e>=1e9?`${(e/1e9).toFixed(2)} GB`:e>=1e6?`${(e/1e6).toFixed(2)} MB`:e>=1e3?`${(e/1e3).toFixed(2)} KB`:e>1?`${e} bytes`:1===e?`${e} byte`:"0 bytes"}function n(e){return`${+e.toFixed(2)}%`}s.d(t,{X:()=>r,l:()=>n})},77362(e,t,s){var r=s(43562);let n=new Map,i=location.protocol.includes("https")?"wss":"ws",l=`${i}://${location.host}`,a=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;function o(e,t){let s=t||function(e){let{port:t,protocol:s,hostname:r}=e;if("u">typeof URL){let e=new URL("http://localhost");return e.port=String(t),e.hostname=r,e.protocol=location.protocol.includes("https")?"wss":"ws",a.test(r)||r.includes("localhost")?e.toString():`${s}//${r}`}let n=-1===s.indexOf(":")?":":"";return`${s}${n}//${r}:${t}`}({port:e,hostname:location.hostname,protocol:location.protocol});return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;if(!n.has(e)){let t=(0,r.io)(e,{});t.on("connect",()=>{console.log(`Socket Connect ${e.replace(/([?&]token=)[^&]+/,"$1<redacted>")}`)}),n.set(e,t)}return n.get(e)}(e||t?s:l)}s.d(t,{O:()=>o})},76252(e,t,s){var r=s(97478);function n(e){return window.localStorage.getItem(`__RSDOCTOR__STORAGE__${e}`)}function i(e,t){try{return window.localStorage.setItem(`__RSDOCTOR__STORAGE__${e}`,t),!0}catch(e){return console.error(e),!1}}function l(){return n("THEME")||r.Sx.Light}function a(e){i("THEME",e)}function o(){return n("LOCALE")||r.TM.En}function d(e){i("LOCALE",e)}function c(){let e={bundleAlerts:r.nE.List,compileAlerts:r.nE.List};try{let t=n("VIEWMODE");if(t)return JSON.parse(t)||e;return e}catch{return e}}function u(e){i("VIEWMODE",JSON.stringify(e))}function h(){return!!n("VIEWMODE")}function p(){return n("FIRST_VISIT")}function x(e){i("FIRST_VISIT",e)}s.d(t,{DT:()=>l,Kv:()=>a,R7:()=>p,U:()=>o,XX:()=>d,Yh:()=>x,ZI:()=>u,it:()=>h,oi:()=>c})},5418(e,t,s){let{toFixedDigits:r,getUnit:n,formatCosts:i}=s(77886).gX;s.d(t,{},{a4:i})},93471(){function e(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}class t{setup(){this.worker.onmessage=e=>{let{data:t}=e;if(this.callbacks.has(t.id)){let e=this.callbacks.get(t.id);this.callbacks.delete(t.id),e(t.data)}}}createEventId(){return`${Date.now()}_${++this.timer}`}emit(e,t){var s;let r=this.createEventId();return this.callbacks.set(r,t),s={id:r,data:e},this.worker.postMessage(s),{abort:()=>this.callbacks.delete(r)}}dispose(){this.worker.terminate()}constructor(t){e(this,"worker",void 0),e(this,"timer",void 0),e(this,"callbacks",void 0),this.worker=t,this.timer=0,this.callbacks=new Map,this.setup()}}new class{detectWorker(e){if(this._workerMap.has(e))return this._workerMap.get(e);let s=new t(e());return this._workerMap.set(e,s),s}constructor(){!function(e,t,s){t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s}(this,"_workerMap",new WeakMap)}}},10347(e,t,s){var r,n,i,l,a,o,d,c,u,h,p,x,m,f,g,j,y,A={};A.d=(e,t)=>{for(var s in t)A.o(t,s)&&!A.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},A.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),A.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},A.r({});var v={};A.r(v),A.d(v,{RsdoctorClientDiffState:()=>Y,RsdoctorClientRoutes:()=>Z,RsdoctorClientUrlQuery:()=>J}),A.r({}),A.r({});var b={};A.r(b),A.d(b,{BundleExtension:()=>ee,CSSExtension:()=>es,FontExtensions:()=>el,HtmlExtension:()=>er,ImgExtensions:()=>en,JSExtension:()=>X,JSExtensions:()=>et,MapExtensions:()=>ea,MediaExtensions:()=>ei,RsdoctorClientUrl:()=>ef,RsdoctorMonitorDocBId:()=>ex,RsdoctorMonitorNodeBId:()=>eh,RsdoctorMonitorWebBId:()=>ep,RsdoctorOutputFolder:()=>eo,RsdoctorOutputManifest:()=>ed,RsdoctorOutputManifestPath:()=>ec,RsdoctorProcessEnvDebugKey:()=>em,StatsFilePath:()=>eu,WINDOW_RSDOCTOR_TAG:()=>eg});var w={};A.r(w),A.d(w,{ErrorLevel:()=>z}),A.r({});var C={};A.r(C),A.d(C,{Severity:()=>z});var S={};A.r(S),A.d(S,{LogLevel:()=>L});var k={};A.r(k),A.d(k,{RsdoctorManifestClientConstant:()=>R,RsdoctorManifestClientRoutes:()=>T}),A.r({}),A.r({});var N={};A.r(N),A.d(N,{RsdoctorRuleClientConstant:()=>Q,RuleErrorMap:()=>K,RuleMessageCategory:()=>H,RuleMessageCodeEnumerated:()=>V});var M={};A.r(M),A.d(M,{DependencyKind:()=>P,IMode:()=>$,ModuleKind:()=>D,ServerAPI:()=>E,StatementKind:()=>O,ToDataType:()=>B});var E={};A.r(E),A.d(E,{API:()=>I,APIExtends:()=>F}),A.r({});var T=((r={}).Overall="Overall",r.WebpackLoaders="Compile.WebpackLoaders",r.ModuleResolve="Compile.ModuleResolve",r.WebpackPlugins="Compile.WebpackPlugins",r.BundleSize="Bundle.BundleSize",r.ModuleGraph="Bundle.ModuleGraph",r.TreeShaking="Bundle.TreeShaking",r),R=((n={}).WindowPropertyForManifestUrl="__DEVTOOLS_MANIFEST_URL__",n),z=((i={})[i.Ignore=0]="Ignore",i[i.Warn=1]="Warn",i[i.Error=2]="Error",i),L=((l={})[l.Silent=0]="Silent",l[l.Error=1]="Error",l[l.Warning=2]="Warning",l[l.Info=3]="Info",l[l.Debug=4]="Debug",l[l.Verbose=5]="Verbose",l),P=((a={})[a.Unknown=0]="Unknown",a[a.ImportStatement=1]="ImportStatement",a[a.DynamicImport=2]="DynamicImport",a[a.RequireCall=3]="RequireCall",a[a.AMDRequire=4]="AMDRequire",a),D=((o={})[o.Normal=0]="Normal",o[o.Concatenation=1]="Concatenation",o),B=((d={})[d.NoCode=0]="NoCode",d[d.Normal=1]="Normal",d[d.NoSource=2]="NoSource",d[d.NoSourceAndAssets=3]="NoSourceAndAssets",d[d.All=4]="All",d),I=((c={}).ApplyErrorFix="/api/apply/error/fix",c.Env="/api/env",c.EntryHtml="/index.html",c.Manifest="/api/manifest.json",c.LoadDataByKey="/api/data/key",c.SendAPIDataToClient="/api/socket/send",c.GetProjectInfo="/api/project/info",c.GetClientRoutes="/api/routes",c.ReportLoader="/api/loader/report",c.GetLoaderNames="/api/loader/names",c.GetLoaderChartData="/api/loader/chart/data",c.GetLoaderFileTree="/api/loader/filetree",c.GetLoaderFileDetails="/api/loader/file",c.GetLoaderFolderStatistics="/api/loader/folder/statics",c.GetLoaderFileFirstInput="/api/loader/input",c.GetLoaderFileInputAndOutput="/api/loader/inputandoutput",c.GetDirectoriesLoaders="/api/loader/directories",c.ReportSourceMap="/api/sourcemap/report",c.GetResolverFileTree="/api/resolver/filetree",c.GetResolverFileDetails="/api/resolver/file",c.GetPluginSummary="/api/plugins/summary",c.GetPluginData="/api/plugins/data",c.GetSummaryBundles="/api/graph/bundles/summary",c.GetChunkGraph="/api/graph/chunks/graph",c.GetAssetsSummary="/api/graph/assets/summary",c.GetAssetDetails="/api/graph/asset/details",c.GetChunksByModuleId="/api/graph/chunk/module",c.GetModuleDetails="/api/graph/module/details",c.GetModulesByModuleIds="/api/graph/modules/ids",c.GetEntryPoints="/api/graph/entrypoints",c.GetModuleCodeByModuleId="/api/graph/module/code",c.GetModuleCodeByModuleIds="/api/graph/module/codes",c.GetAllModuleGraph="/api/graph/module/all",c.GetAllChunkGraph="/api/graph/chunk/all",c.GetLayers="/api/graph/layers",c.GetSearchModules="/api/search/modules",c.GetSearchModuleInChunk="/api/search/chunk/modules",c.GetAllModuleGraphFilter="/api/graph/module/filter",c.GetModuleByName="/api/graph/module/name",c.GetModuleIssuerPath="/api/graph/module/issuer_path",c.GetPackageInfo="/api/package/info",c.GetPackageDependency="/api/package/dependency",c.GetPackageRelationAlertDetails="/api/alerts/details/package/relation",c.GetOverlayAlerts="/api/alerts/overlay",c.GetBundleAlerts="/api/alerts/bundle",c.BundleDiffManifest="/api/bundle_diff/manifest.json",c.GetBundleDiffSummary="/api/bundle_diff/summary",c.GetChunkGraphAI="/api/graph/chunks/graph/ai",c.GetChunkByIdAI="/api/graph/chunk/id/ai",c),F=((u={}).GetCompileProgress="/api/progress",u),O=((h={})[h.ImportDefault=100]="ImportDefault",h[h.ImportNamed=101]="ImportNamed",h[h.ImportDefaultWithNamed=102]="ImportDefaultWithNamed",h[h.ImportDefaultWithNamespace=103]="ImportDefaultWithNamespace",h[h.ImportNamespace=104]="ImportNamespace",h[h.ImportSideEffect=105]="ImportSideEffect",h[h.ImportDynamic=106]="ImportDynamic",h[h.ExportDeclaration=200]="ExportDeclaration",h[h.ExportList=201]="ExportList",h[h.ExportDefault=202]="ExportDefault",h[h.ExportAggregating=203]="ExportAggregating",h[h.ExportNamespace=204]="ExportNamespace",h[h.RequireCall=300]="RequireCall",h[h.RequireName=301]="RequireName",h[h.RequireExports=302]="RequireExports",h[h.RequireExportAggregating=303]="RequireExportAggregating",h[h.RequireExportName=304]="RequireExportName",h[h.Unknown=999]="Unknown",h),$=((p={}).brief="brief",p.lite="lite",p.normal="normal",p);let _={code:"E1001",title:"Duplicate Packages",type:"markdown",category:"bundle",description:`
|
|
13
13
|
#### Description
|
|
14
14
|
|
|
15
15
|
There is a same name package which is bundled in multiple versions in your application.
|