@appshell/react-shell 1.0.0-alpha.23 → 1.0.0-alpha.25
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/58.js +1 -0
- package/dist/630.js +1 -0
- package/dist/677.js +1 -0
- package/dist/877.js +1 -1
- package/dist/dev/main.js +30 -11
- package/dist/dev/main.js.map +1 -1
- package/dist/dev/mf-manifest.json +24 -3
- package/dist/dev/mf-stats.json +28 -3
- package/dist/dev/react_src_index_ts-_f7a70.js +515 -0
- package/dist/dev/react_src_index_ts-_f7a70.js.map +1 -0
- package/dist/dev/react_src_index_ts-_f7a71.js +515 -0
- package/dist/dev/react_src_index_ts-_f7a71.js.map +1 -0
- package/dist/dev/runtime_src_index_ts.js +14 -1
- package/dist/dev/runtime_src_index_ts.js.map +1 -1
- package/dist/dev/src_bootstrap_tsx.js +1 -506
- package/dist/dev/src_bootstrap_tsx.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/mf-manifest.json +24 -3
- package/dist/mf-stats.json +28 -3
- package/package.json +2 -2
- package/dist/510.js +0 -1
package/dist/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e,t,o,r,n={418(e,t,o){const r=()=>{};(Object.getOwnPropertyDescriptor(r,"name")||{}).writable||Object.defineProperty(r,"name",{value:"default",configurable:!0}),Promise.all([o.e(488),o.e(510)]).then(o.bind(o,510))},996(e,t,o){function r(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}const n=["script"];function i(e){const{webpackRequire:t,moduleToHandlerMapping:o}=e,{consumesLoadingData:r,initializeSharingData:n}=t,{sharedFallback:i,bundlerRuntime:s,libraryType:a}=t.federation;if(r&&!r._updated){const{moduleIdToConsumeDataMapping:n={},initialConsumes:c=[],chunkMapping:l={}}=r;if(Object.entries(n).forEach((([e,r])=>{o[e]||(o[e]={getter:i?s?.getSharedFallbackGetter({shareKey:r.shareKey,factory:r.fallback,webpackRequire:t,libraryType:a}):r.fallback,treeShakingGetter:i?r.fallback:void 0,shareInfo:{shareConfig:{requiredVersion:r.requiredVersion,strictVersion:r.strictVersion,singleton:r.singleton,eager:r.eager,layer:r.layer},scope:Array.isArray(r.shareScope)?r.shareScope:[r.shareScope||"default"],treeShaking:i?{get:r.fallback,mode:r.treeShakingMode}:void 0},shareKey:r.shareKey})})),"initialConsumes"in e){const{initialConsumes:t=[]}=e;c.forEach((e=>{t.includes(e)||t.push(e)}))}if("chunkMapping"in e){const{chunkMapping:t={}}=e;Object.entries(l).forEach((([e,o])=>{t[e]||(t[e]=[]),o.forEach((o=>{t[e].includes(o)||t[e].push(o)}))}))}r._updated=1}if(n&&!n._updated){const{federation:e}=t;if(!e.instance||!n.scopeToSharingDataMapping)return;const o={};for(let[e,t]of Object.entries(n.scopeToSharingDataMapping))for(let r of t)if("object"==typeof r&&null!==r){const{name:t,version:n,factory:i,eager:s,singleton:a,requiredVersion:c,strictVersion:l}=r,h={requiredVersion:`^${n}`},u=function(e){return void 0!==e};u(a)&&(h.singleton=a),u(c)&&(h.requiredVersion=c),u(s)&&(h.eager=s),u(l)&&(h.strictVersion=l);const d={version:n,scope:[e],shareConfig:h,get:i};o[t]?o[t].push(d):o[t]=[d]}e.instance.registerShared(o),n._updated=1}}var s=o(378),a=o(151);function c(e,t){const o=e.federation.usedExports;if(o)return o[t]}const l="RUNTIME-012";var h=o(650),u=o(370),d=o(655);const m={global:{...d._$.global,getGlobalFederationInstance:u.u},share:d._$.share,utils:d._$.utils},f={remotes:function(e){!function(e){const{webpackRequire:t,idToExternalAndNameMapping:o={},idToRemoteMap:r={},chunkMapping:n={}}=e,{remotesLoadingData:i}=t,s=t.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!i||i._updated||!s)return;const{chunkMapping:a,moduleIdToRemoteDataMapping:c}=i;if(a&&c){for(let[e,t]of Object.entries(c))if(o[e]||(o[e]=[t.shareScope,t.name,t.externalModuleId]),!r[e]&&s[t.remoteName]){const o=s[t.remoteName];r[e]||=[],o.forEach((t=>{r[e].includes(t)||r[e].push(t)}))}n&&Object.entries(a).forEach((([e,t])=>{n[e]||(n[e]=[]),t.forEach((t=>{n[e].includes(t)||n[e].push(t)}))})),i._updated=1}}(e);const{chunkId:t,promises:o,webpackRequire:i,chunkMapping:c,idToExternalAndNameMapping:l,idToRemoteMap:h}=e;r(i),i.o(c,t)&&c[t].forEach((e=>{let t=i.R;t||(t=[]);const r=l[e],c=h[e]||[];if(t.indexOf(r)>=0)return;if(t.push(r),r.p)return o.push(r.p);const u=t=>{t||(t=new Error("Container missing")),"string"==typeof t.message&&(t.message+=`\nwhile loading "${r[1]}" from ${r[2]}`),i.m[e]=()=>{throw t},r.p=0},d=(e,t,n,i,s,a)=>{try{const c=e(t,n);if(!c||!c.then)return s(c,i,a);{const e=c.then((e=>s(e,i)),u);if(!a)return e;o.push(r.p=e)}}catch(e){u(e)}};var m=(e,o,n)=>d(o.get,r[1],t,0,f,n),f=t=>{r.p=1,i.m[e]=e=>{e.exports=t()}};1===c.length&&n.includes(c[0].externalType)&&c[0].name?d((()=>{try{const e=(0,s.e4)(c[0].name,a.yq)+r[1].slice(1),t=i.federation.instance,o=()=>i.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy){const e=Array.isArray(r[0])?r[0]:[r[0]];return Promise.all(e.map((e=>t.sharedHandler.initializeSharing(e)))).then((()=>o()))}return o()}catch(e){u(e)}}),r[2],0,0,f,1):d(i,r[2],0,0,((e,t,o)=>e?d(i.I,r[0],0,e,m,o):u()),1)}))},consumes:function(e){i(e);const{chunkId:t,promises:o,installedModules:n,webpackRequire:s,chunkMapping:a,moduleToHandlerMapping:h}=e;r(s),s.o(a,t)&&a[t].forEach((e=>{if(s.o(n,e))return o.push(n[e]);const t=t=>{n[e]=0,s.m[e]=o=>{delete s.c[e];const r=t(),{shareInfo:n}=h[e];if(n?.shareConfig?.layer&&r&&"object"==typeof r)try{r.hasOwnProperty("layer")&&void 0!==r.layer||(r.layer=n.shareConfig.layer)}catch(e){}o.exports=r}},r=t=>{delete n[e],s.m[e]=o=>{throw delete s.c[e],t}};try{const i=s.federation.instance;if(!i)throw new Error("Federation instance not found!");const{shareKey:a,getter:u,shareInfo:d,treeShakingGetter:m}=h[e],f=c(s,a),p={...d};Array.isArray(p.scope)&&Array.isArray(p.scope[0])&&(p.scope=p.scope[0]),f&&(p.treeShaking={usedExports:f,useIn:[i.options.name]});const y=i.loadShare(a,{customShareInfo:p}).then((e=>{if(!1===e){if("function"!=typeof u)throw new Error(((e,t,o)=>{const r=[`${[t[e]]} #${e}`];return o&&r.push(`args: ${JSON.stringify(o)}`),r.push((e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`)(e)),r.join("\n")})(l,{[l]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:a}));return m?.()||u()}return e}));y.then?o.push(n[e]=y.then(t).catch(r)):t(y)}catch(e){r(e)}}))},I:function({shareScopeName:e,webpackRequire:t,initPromises:o,initTokens:i,initScope:s}){const a=Array.isArray(e)?e:[e];var c=[];return a.forEach((a=>{c.push(function(a){s||(s=[]);const c=t.federation.instance;var l=i[a];if(l||(l=i[a]={from:c.name}),s.indexOf(l)>=0)return;s.push(l);const h=o[a];if(h)return h;var u=o=>{var r=e=>{return t="Initialization of sharing external failed: "+e,"undefined"!=typeof console&&console.warn&&console.warn(t);var t};try{var n=t(o);if(!n)return;var i=o=>o&&o.init&&o.init(t.S[a],s,{shareScopeMap:t.S||{},shareScopeKeys:e});if(n.then)return d.push(n.then(i,r));var c=i(n);if(c&&"boolean"!=typeof c&&c.then)return d.push(c.catch(r))}catch(e){r(e)}};const d=c.initializeSharing(a,{strategy:c.options.shareStrategy,initScope:s,from:"build"});r(t);const m=t.federation.bundlerRuntimeOptions.remotes;return m&&Object.keys(m.idToRemoteMap).forEach((e=>{const t=m.idToRemoteMap[e],o=m.idToExternalAndNameMapping[e][2];if(t.length>1)u(o);else if(1===t.length){const e=t[0];n.includes(e.externalType)||u(o)}})),d.length?o[a]=Promise.all(d).then((()=>o[a]=!0)):o[a]=!0}(a))})),Promise.all(c).then((()=>!0))},S:{},installInitialConsumes:function(e){i(e);const{moduleToHandlerMapping:t,webpackRequire:o,installedModules:r,initialConsumes:n,asyncLoad:s}=e,a=[];n.forEach((e=>{a.push([e,()=>function(e){const{moduleId:t,moduleToHandlerMapping:o,webpackRequire:r,asyncLoad:n}=e,i=r.federation.instance;if(!i)throw new Error("Federation instance not found!");const{shareKey:s,shareInfo:a}=o[t];try{const e=c(r,s),t={...a};return e&&(t.treeShaking={usedExports:e,useIn:[i.options.name]}),n?i.loadShare(s,{customShareInfo:t}):i.loadShareSync(s,{customShareInfo:t})}catch(e){throw console.error('loadShareSync failed! The function should not be called unless you set "eager:true". If you do not set it, and encounter this issue, you can check whether an async boundary is implemented.'),console.error("The original error message is as follows: "),e}}({moduleId:e,moduleToHandlerMapping:t,webpackRequire:o,asyncLoad:s})])}));const l=(e,n)=>{o.m[e]=i=>{r[e]=0,delete o.c[e];const s=n();if("function"!=typeof s)throw new Error(`Shared module is not available for eager consumption: ${e}`);const a=s(),{shareInfo:c}=t[e];if(c?.shareConfig?.layer&&a&&"object"==typeof a)try{a.hasOwnProperty("layer")&&void 0!==a.layer||(a.layer=c.shareConfig.layer)}catch(e){}i.exports=a}};if(s)return Promise.all(a.map((async([e,t])=>{const o=await t();l(e,(()=>o))})));a.forEach((([e,t])=>{l(e,t)}))},initContainerEntry:void 0,init:function({webpackRequire:e}){const{initOptions:t,runtime:r,sharedFallback:n,bundlerRuntime:i,libraryType:s}=e.federation;if(!t)throw new Error("initOptions is required!");{const r=function(){return{name:"tree-shake-plugin",beforeInit(t){const{userOptions:r,origin:a,options:c}=t,l=r.version||c.version;if(!n)return t;const u=r.shared||{},d=[];Object.keys(u).forEach((t=>{(Array.isArray(u[t])?u[t]:[u[t]]).forEach((o=>{d.push([t,o]),"get"in o&&(o.treeShaking||={},o.treeShaking.get=o.get,o.get=i.getSharedFallbackGetter({shareKey:t,factory:o.get,webpackRequire:e,libraryType:s,version:o.version}))}))}));const f=m.global.getGlobalSnapshotInfoByModuleInfo({name:a.name,version:l});return f&&"shared"in f?(Object.keys(c.shared||{}).forEach((e=>{c.shared[e].forEach((t=>{d.push([e,t])}))})),d.forEach((([e,t])=>{((e,t)=>{const r=f.shared.find((t=>t.sharedName===e));if(!r)return;const{treeShaking:n}=t;if(!n)return;const{secondarySharedTreeShakingName:i,secondarySharedTreeShakingEntry:c,treeShakingStatus:l}=r;n.status!==l&&(n.status=l,c&&s&&i&&(n.get=async()=>{const e=await(0,h.getRemoteEntry)({origin:a,remoteInfo:{name:i,entry:c,type:s,entryGlobalName:i,shareScope:"default"}});return await e.init(a,o.federation.bundlerRuntime),e.get()}))})(e,t)})),t):t}}};t.plugins||=[],t.plugins.push(r())}return r.init(t)},getSharedFallbackGetter:({shareKey:e,factory:t,version:o,webpackRequire:r,libraryType:n="global"})=>{const{runtime:i,instance:s,bundlerRuntime:a,sharedFallback:c}=r.federation;if(!c)return t;const l=c[e];if(!l)return t;const h=o?l.find((e=>e[1]===o)):l[0];if(!h)throw new Error(`No fallback item found for shareKey: ${e} and version: ${o}`);return()=>i.getRemoteEntry({origin:r.federation.instance,remoteInfo:{name:h[2],entry:`${r.p}${h[0]}`,type:n,entryGlobalName:h[2],shareScope:"default"}}).then((t=>{if(!t)throw new Error(`Failed to load fallback entry for shareKey: ${e} and version: ${o}`);return t.init(r.federation.instance,a).then((()=>t.get()))}))}},p={runtime:h,instance:void 0,initOptions:void 0,bundlerRuntime:f,attachShareScopeMap:r,bundlerRuntimeOptions:{}};if(!o.federation.runtime||!o.federation.bundlerRuntime){var y=o.federation;for(var g in o.federation={},p)o.federation[g]=p[g];for(var g in y)o.federation[g]=y[g]}o.federation.instance||(o.federation.instance=o.federation.bundlerRuntime.init({webpackRequire:o}),o.federation.attachShareScopeMap&&o.federation.attachShareScopeMap(o),o.federation.installInitialConsumes&&o.federation.installInitialConsumes())},10(e,t,o){o.d(t,{UJ:()=>n});var r=o(904);const n={[r.Fj]:"Failed to get remoteEntry exports.",[r.MC]:'The remote entry interface does not contain "init"',[r.F0]:"Failed to get manifest.",[r.MR]:"Failed to locate remote.",[r.Fd]:"Invalid loadShareSync function call from bundler runtime",[r.yB]:"Invalid loadShareSync function call from runtime",[r.Tz]:"Failed to get remote snapshot.",[r.ML]:"Failed to load script resources.",[r.F9]:"Please call createInstance first.",[r.n3]:'The name option cannot be changed after initialization. If you want to create a new instance with a different name, please use "createInstance" api.',[r.uF]:"The remoteEntry URL is missing from the remote snapshot.",[r.Bh]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.',[r.u0]:"The manifest is not a valid Module Federation manifest.",[r.BC]:"The remote does not expose the requested module.",[r.uz]:"Remote container initialization failed."};r.Zs,r.fK,r.AI},904(e,t,o){o.d(t,{AI:()=>b,BC:()=>y,Bh:()=>f,F0:()=>i,F9:()=>u,Fd:()=>a,Fj:()=>r,MC:()=>n,ML:()=>h,MR:()=>s,Tz:()=>l,Zs:()=>E,fK:()=>S,n3:()=>d,u0:()=>p,uF:()=>m,uz:()=>g,yB:()=>c});const r="RUNTIME-001",n="RUNTIME-002",i="RUNTIME-003",s="RUNTIME-004",a="RUNTIME-005",c="RUNTIME-006",l="RUNTIME-007",h="RUNTIME-008",u="RUNTIME-009",d="RUNTIME-010",m="RUNTIME-011",f="RUNTIME-012",p="RUNTIME-013",y="RUNTIME-014",g="RUNTIME-015",E="TYPE-001",S="BUILD-001",b="BUILD-002"},843(){},655(e,t,o){o.d(t,{hS:()=>I,nV:()=>Qt,gP:()=>zt,vA:()=>d,Bf:()=>T,fE:()=>yt,pW:()=>gt,_$:()=>Yt,k0:()=>Ze,oe:()=>ot,RY:()=>D,rc:()=>O,C3:()=>A});var r=o(848);const n="[ Module Federation ]",i=console,s=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];var a=class{constructor(e,t=i){this.prefix=e,this.delegate=t??i}setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=e??i}emit(e,t){const o=this.delegate,n=(0,r.Bb)()?function(){try{const e=(new Error).stack;if(!e)return;const[,...t]=e.split("\n"),o=t.filter((e=>!s.some((t=>e.includes(t)))));if(!o.length)return;return`Stack trace:\n${o.slice(0,5).join("\n")}`}catch{return}}():void 0,a=n?[...t,n]:t,c=(()=>{switch(e){case"log":return["log","info"];case"info":return["info","log"];case"warn":return["warn","info","log"];case"error":return["error","warn","log"];default:return["debug","log"]}})();for(const e of c){const t=o[e];if("function"==typeof t)return void t.call(o,this.prefix,...a)}for(const e of c){const t=i[e];if("function"==typeof t)return void t.call(i,this.prefix,...a)}}log(...e){this.emit("log",e)}warn(...e){this.emit("warn",e)}error(...e){this.emit("error",e)}success(...e){this.emit("info",e)}info(...e){this.emit("info",e)}ready(...e){this.emit("info",e)}debug(...e){(0,r.Bb)()&&this.emit("debug",e)}};function c(e){return new a(e)}c(n),function(e){const t=new a(e);Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1})}(n);const l=(e,t,o,r)=>{const n=[`${[t[e]]} #${e}`];return o&&n.push(`args: ${JSON.stringify(o)}`),n.push((e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`)(e)),r&&n.push(`Original Error Message:\n ${r}`),n.join("\n")},h="[ Federation Runtime ]",u=c(h);function d(e,t,o,r,n){e||(void 0!==o?m(t,o,r,void 0):m(t))}function m(e,t,o,r,n){if(void 0!==t)return function(e,t,o,r,n){return(e=>{throw new Error(`${h}: ${e}`)})(l(e,t,o,n))}(e,t,o??{},0,r);const i=e;if(i instanceof Error)throw i.message.startsWith(h)||(i.message=`${h}: ${i.message}`),i;throw new Error(`${h}: ${i}`)}function f(e){e instanceof Error?(e.message.startsWith(h)||(e.message=`${h}: ${e.message}`),u.warn(e)):u.warn(e)}function p(e){return"version"in e&&e.version?`${e.name}:${e.version}`:"entry"in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`}function y(e){return void 0!==e.entry}function g(e){return!e.entry.includes(".json")}function E(e){return e&&"object"==typeof e}const S=Object.prototype.toString;function b(e){return Array.isArray(e)?e:[e]}function _(e){const t={url:"",type:"global",globalName:""};return r.Hq||(0,r.MC)()||!("ssrRemoteEntry"in e)?"remoteEntry"in e?{url:e.remoteEntry,type:e.remoteEntryType,globalName:e.globalName}:t:"ssrRemoteEntry"in e?{url:e.ssrRemoteEntry||t.url,type:e.ssrRemoteEntryType||t.type,globalName:e.globalName}:t}const I="object"==typeof globalThis?globalThis:window,w=(()=>{try{return document.defaultView}catch{return I}})(),v=w;function k(e,t,o){Object.defineProperty(e,t,{value:o,configurable:!1,writable:!0})}function R(e,t){return Object.hasOwnProperty.call(e,t)}R(I,"__GLOBAL_LOADING_REMOTE_ENTRY__")||k(I,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});const N=I.__GLOBAL_LOADING_REMOTE_ENTRY__;function $(e){R(e,"__VMOK__")&&!R(e,"__FEDERATION__")&&k(e,"__FEDERATION__",e.__VMOK__),R(e,"__FEDERATION__")||(k(e,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),k(e,"__VMOK__",e.__FEDERATION__)),e.__FEDERATION__.__GLOBAL_PLUGIN__??=[],e.__FEDERATION__.__INSTANCES__??=[],e.__FEDERATION__.moduleInfo??={},e.__FEDERATION__.__SHARE__??={},e.__FEDERATION__.__MANIFEST_LOADING__??={},e.__FEDERATION__.__PRELOADED_MAP__??=new Map}function A(e){I.__FEDERATION__.__INSTANCES__.push(e)}function T(){return I.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function O(e,t=(0,r.Bb)()){t&&(I.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,I.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="2.8.2")}function M(e,t){if("string"==typeof t){if(e[t])return{value:e[t],key:t};{const o=Object.keys(e);for(const r of o){const[o,n]=r.split(":"),i=`${o}:${t}`,s=e[i];if(s)return{value:s,key:i}}return{value:void 0,key:t}}}m(`getInfoWithoutType: "key" must be a string, got ${typeof t} (${JSON.stringify(t)}).`)}$(I),$(w);const x=()=>w.__FEDERATION__.moduleInfo,L=(e,t)=>{const o=M(t,p(e)).value;if(o&&!o.version&&"version"in e&&e.version&&(o.version=e.version),o)return o;if("version"in e&&e.version){const{version:t,...o}=e,r=p(o),n=M(w.__FEDERATION__.moduleInfo,r).value;if(n?.version===t)return n}},C=e=>L(e,w.__FEDERATION__.moduleInfo),P=(e,t)=>{const o=p(e);return w.__FEDERATION__.moduleInfo[o]=t,w.__FEDERATION__.moduleInfo},F=e=>(w.__FEDERATION__.moduleInfo={...w.__FEDERATION__.moduleInfo,...e},()=>{const t=Object.keys(e);for(const e of t)delete w.__FEDERATION__.moduleInfo[e]}),H=(e,t)=>{const o=t||`__FEDERATION_${e}:custom__`;return{remoteEntryKey:o,entryExports:I[o]}},D=e=>{const{__GLOBAL_PLUGIN__:t}=w.__FEDERATION__;e.forEach((e=>{-1===t.findIndex((t=>t.name===e.name))?t.push(e):f(`The plugin ${e.name} has been registered.`)}))},j=()=>w.__FEDERATION__.__GLOBAL_PLUGIN__,U=e=>I.__FEDERATION__.__PRELOADED_MAP__.get(e),G=e=>I.__FEDERATION__.__PRELOADED_MAP__.set(e,!0),q="default",B="global",V="[0-9A-Za-z-]+",W=`(?:\\+(${V}(?:\\.${V})*))`,J="0|[1-9]\\d*",K="[0-9]+",z="\\d*[a-zA-Z-][a-zA-Z0-9-]*",Y=`(?:${K}|${z})`,Q=`(?:${J}|${z})`,Z=`(?:-(${Q}(?:\\.${Q})*))`,X=`${J}|x|X|\\*`,ee=`[v=\\s]*(${X})(?:\\.(${X})(?:\\.(${X})(?:${Z})?${W}?)?)?`,te=`^\\s*(${ee})\\s+-\\s+(${ee})\\s*$`,oe="((?:<|>)?=?)",re=`(\\s*)${oe}\\s*([v=\\s]*(${K})\\.(${K})\\.(${K})(?:-?(${Y}(?:\\.${Y})*))?${W}?|${ee})`,ne="(?:~>?)",ie=`(\\s*)${ne}\\s+`,se="(?:\\^)",ae=`(\\s*)${se}\\s+`,ce=`^${se}${ee}$`,le=`^${ne}${ee}$`,he=`^${oe}\\s*${ee}$`,ue=`^${oe}\\s*(v?(${J})\\.(${J})\\.(${J})${Z}?${W}?)$|^$`;function de(e){return new RegExp(e)}function me(e){return!e||"x"===e.toLowerCase()||"*"===e}function fe(...e){return t=>e.reduce(((e,t)=>t(e)),t)}function pe(e){return e.match(de(ue))}function ye(e,t,o,r){const n=`${e}.${t}.${o}`;return r?`${n}-${r}`:n}function ge(e){return e.replace(de(te),((e,t,o,r,n,i,s,a,c,l,h,u)=>`${t=me(o)?"":me(r)?`>=${o}.0.0`:me(n)?`>=${o}.${r}.0`:`>=${t}`} ${a=me(c)?"":me(l)?`<${Number(c)+1}.0.0-0`:me(h)?`<${c}.${Number(l)+1}.0-0`:u?`<=${c}.${l}.${h}-${u}`:`<=${a}`}`.trim()))}function Ee(e){return e.replace(de(re),"$1$2$3")}function Se(e){return e.replace(de(ie),"$1~")}function be(e){return e.replace(de(ae),"$1^")}function _e(e){return e.trim().split(/\s+/).map((e=>e.replace(de(ce),((e,t,o,r,n)=>me(t)?"":me(o)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:me(r)?"0"===t?`>=${t}.${o}.0 <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.0 <${Number(t)+1}.0.0-0`:n?"0"===t?"0"===o?`>=${t}.${o}.${r}-${n} <${t}.${o}.${Number(r)+1}-0`:`>=${t}.${o}.${r}-${n} <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.${r}-${n} <${Number(t)+1}.0.0-0`:"0"===t?"0"===o?`>=${t}.${o}.${r} <${t}.${o}.${Number(r)+1}-0`:`>=${t}.${o}.${r} <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.${r} <${Number(t)+1}.0.0-0`)))).join(" ")}function Ie(e){return e.trim().split(/\s+/).map((e=>e.replace(de(le),((e,t,o,r,n)=>me(t)?"":me(o)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:me(r)?`>=${t}.${o}.0 <${t}.${Number(o)+1}.0-0`:n?`>=${t}.${o}.${r}-${n} <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.${r} <${t}.${Number(o)+1}.0-0`)))).join(" ")}function we(e){return e.split(/\s+/).map((e=>e.trim().replace(de(he),((e,t,o,r,n,i)=>{const s=me(o),a=s||me(r),c=a||me(n);return"="===t&&c&&(t=""),i="",s?">"===t||"<"===t?"<0.0.0-0":"*":t&&c?(a&&(r=0),n=0,">"===t?(t=">=",a?(o=Number(o)+1,r=0,n=0):(r=Number(r)+1,n=0)):"<="===t&&(t="<",a?o=Number(o)+1:r=Number(r)+1),"<"===t&&(i="-0"),`${t+o}.${r}.${n}${i}`):a?`>=${o}.0.0${i} <${Number(o)+1}.0.0-0`:c?`>=${o}.${r}.0${i} <${o}.${Number(r)+1}.0-0`:e})))).join(" ")}function ve(e){return e.trim().replace(de("(<|>)?=?\\s*\\*"),"")}function ke(e,t){return(e=Number(e)||e)>(t=Number(t)||t)?1:e===t?0:-1}function Re(e,t){return ke(e.major,t.major)||ke(e.minor,t.minor)||ke(e.patch,t.patch)||function(e,t){const{preRelease:o}=e,{preRelease:r}=t;if(void 0===o&&Boolean(r))return 1;if(Boolean(o)&&void 0===r)return-1;if(void 0===o&&void 0===r)return 0;for(let e=0,t=o.length;e<=t;e++){const t=o[e],n=r[e];if(t!==n)return void 0===t&&void 0===n?0:t?n?ke(t,n):-1:1}return 0}(e,t)}function Ne(e,t){return e.version===t.version}function $e(e,t){switch(e.operator){case"":case"=":return Ne(e,t);case">":return Re(e,t)<0;case">=":return Ne(e,t)||Re(e,t)<0;case"<":return Re(e,t)>0;case"<=":return Ne(e,t)||Re(e,t)>0;case void 0:return!0;default:return!1}}function Ae(e){return fe(_e,Ie,we,ve)(e)}function Te(e){return fe(ge,Ee,Se,be)(e.trim()).split(/\s+/).join(" ")}function Oe(e,t){if(!e)return!1;const o=pe(e);if(!o)return!1;const[,r,,n,i,s,a]=o,c={operator:r,version:ye(n,i,s,a),major:n,minor:i,patch:s,preRelease:a?.split(".")},l=t.split("||");for(const e of l){const t=e.trim();if(!t)return!0;if("*"===t||"x"===t)return!0;try{const e=Te(t);if(!e.trim())return!0;const o=e.split(" ").map((e=>Ae(e))).join(" ");if(!o.trim())return!0;const r=o.split(/\s+/).map((e=>e.trim().replace(de("^\\s*>=\\s*0.0.0\\s*$"),""))).filter(Boolean);if(0===r.length)continue;let n=!0;for(const e of r){const t=pe(e);if(!t){n=!1;break}const[,o,,r,i,s,a]=t;if(!$e({operator:o,version:ye(r,i,s,a),major:r,minor:i,patch:s,preRelease:a?.split(".")},c)){n=!1;break}}if(n)return!0}catch(e){console.error(`[semver] Error processing range part "${t}":`,e);continue}}return!1}var Me=o(151);function xe(e,t){const o=t.shared||{},r=t.name,n=Object.keys(o).reduce(((e,n)=>{const i=b(o[n]);return e[n]=e[n]||[],i.forEach((o=>{e[n].push(function(e,t,o,r){let n;return n="get"in e?e.get:"lib"in e?()=>Promise.resolve(e.lib):()=>Promise.resolve((()=>{m(`Cannot get shared "${o}" from "${t}": neither "get" nor "lib" is provided in the share config.`)})),e.shareConfig?.eager&&e.treeShaking?.mode&&m(`Invalid shared config for "${o}" from "${t}": cannot use both "eager: true" and "treeShaking.mode" simultaneously. Choose one strategy.`),{deps:[],useIn:[],from:t,loading:null,...e,shareConfig:{requiredVersion:`^${e.version}`,singleton:!1,eager:!1,strictVersion:!1,...e.shareConfig},get:n,loaded:!(!e?.loaded&&!("lib"in e))||void 0,version:e.version??"0",scope:Array.isArray(e.scope)?e.scope:[e.scope??"default"],strategy:(e.strategy??r)||"version-first",treeShaking:e.treeShaking?{...e.treeShaking,mode:e.treeShaking.mode??"server-calc",status:e.treeShaking.status??Me.gF.UNKNOWN,useIn:[]}:void 0}}(o,r,n,t.shareStrategy))})),e}),{}),i={...e.shared};return Object.keys(n).forEach((e=>{i[e]?n[e].forEach((t=>{i[e].find((e=>e.version===t.version))||i[e].push(t)})):i[e]=n[e]})),{allShareInfos:i,newShareInfos:n}}function Le(e,t){if(!e)return!1;const{status:o,mode:r}=e;return o!==Me.gF.NO_USE&&(o===Me.gF.CALCULATED||"runtime-infer"===r&&(!t||He(e,t)))}function Ce(e,t){const o=e=>{if(!Number.isNaN(Number(e))){const t=e.split(".");let o=e;for(let e=0;e<3-t.length;e++)o+=".0";return o}return e};return!!Oe(o(e),`<=${o(t)}`)}const Pe=(e,t)=>{const o=t||function(e,t){return Ce(e,t)};return Object.keys(e).reduce(((e,t)=>e?o(e,t)||"0"===e?t:e:t),0)},Fe=e=>Boolean(e.loaded)||"function"==typeof e.lib,He=(e,t)=>{if(!e||!t)return!1;const{usedExports:o}=e;return!!o&&!!t.every((e=>o.includes(e)))};function De(e,t,o,r){const n=e[t][o];let i="",s=Le(r);const a=function(e,t){return s?!n[e].treeShaking||!!n[t].treeShaking&&!Fe(n[e].treeShaking)&&Ce(e,t):!Fe(n[e])&&Ce(e,t)};if(s){if(i=Pe(e[t][o],a),i)return{version:i,useTreesShaking:s};s=!1}return{version:Pe(e[t][o],a),useTreesShaking:s}}const je=e=>Fe(e)||(e=>Boolean(e.loading))(e);function Ue(e,t,o,r){const n=e[t][o];let i="",s=Le(r);const a=function(e,t){if(s){if(!n[e].treeShaking)return!0;if(!n[t].treeShaking)return!1;if(je(n[t].treeShaking))return!je(n[e].treeShaking)||Boolean(Ce(e,t));if(je(n[e].treeShaking))return!1}return je(n[t])?!je(n[e])||Boolean(Ce(e,t)):!je(n[e])&&Ce(e,t)};if(s){if(i=Pe(e[t][o],a),i)return{version:i,useTreesShaking:s};s=!1}return{version:Pe(e[t][o],a),useTreesShaking:s}}function Ge(e){return"loaded-first"===e?Ue:De}function qe(e,t,o,r){if(!e)return;const{shareConfig:n,scope:i=q,strategy:s,treeShaking:a}=o,c=Array.isArray(i)?i:[i];for(const i of c)if(n&&e[i]&&e[i][t]){const{requiredVersion:c}=n,{version:l,useTreesShaking:h}=Ge(s)(e,i,t,a),u=()=>{const r=e[i][t][l];if(n.singleton){if("string"==typeof c&&!Oe(l,c)){const e=`Version ${l} from ${l&&r.from} of shared singleton module ${t} does not satisfy the requirement of ${o.from} which needs ${c})`;n.strictVersion?m(e):f(e)}return{shared:r,useTreesShaking:h}}{if(!1===c||"*"===c)return{shared:r,useTreesShaking:h};if(Oe(l,c))return{shared:r,useTreesShaking:h};const o=Le(a);if(o)for(const[r,n]of Object.entries(e[i][t]))if(Le(n.treeShaking,a?.usedExports)&&Oe(r,c))return{shared:n,useTreesShaking:o};for(const[o,r]of Object.entries(e[i][t]))if(Oe(o,c))return{shared:r,useTreesShaking:!1}}},d={shareScopeMap:e,scope:i,pkgName:t,version:l,GlobalFederation:v.__FEDERATION__,shareInfo:o,resolver:u};return(r.emit(d)||d).resolver()}}function Be(){return v.__FEDERATION__.__SHARE__}function Ve(e){const{pkgName:t,extraOptions:o,shareInfos:r}=e,n=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),i=(...e)=>{const t={};for(const o of e)if(o)for(const[e,r]of Object.entries(o)){const o=t[e];n(o)&&n(r)?t[e]=i(o,r):void 0!==r&&(t[e]=r)}return t};return i((o?.resolver??(e=>{if(!e)return;const t={};return e.forEach((e=>{t[e.version]=e})),t[Pe(t,(function(e,o){return!Fe(t[e])&&Ce(e,o)}))]}))(r[t]),o?.customShareInfo)}const We=(e,t)=>{var o,r;e.useIn||(e.useIn=[]),o=e.useIn,r=t,-1===o.findIndex((e=>e===r))&&o.push(r)};function Je(e,t){return t&&e.treeShaking?e.treeShaking:e}var Ke=o(378);async function ze(e,t){try{return await e()}catch(e){return void(!t&&(0,Ke.R8)(e))}}function Ye(e,t){const o=/^(https?:)?\/\//i;return e.replace(o,"").replace(/\/$/,"")===t.replace(o,"").replace(/\/$/,"")}function Qe(e){let t,o=null,r=!0,n=2e4;const i=document.getElementsByTagName("script");for(let t=0;t<i.length;t++){const n=i[t],s=n.getAttribute("src");if(s&&Ye(s,e.url)){o=n,r=!1;break}}if(!o){const t=e.attrs;let r;o=document.createElement("script"),o.type="module"===t?.type?"module":"text/javascript",e.createScriptHook&&(r=e.createScriptHook(e.url,e.attrs),r instanceof HTMLScriptElement?o=r:"object"==typeof r&&("script"in r&&r.script&&(o=r.script),"timeout"in r&&r.timeout&&(n=r.timeout))),o.src||(o.src=e.url),t&&!r&&Object.keys(t).forEach((e=>{o&&("async"===e||"defer"===e?o[e]=t[e]:o.getAttribute(e)||o.setAttribute(e,t[e]))}))}let s=null;const a="undefined"!=typeof window?t=>{if(t.filename&&Ye(t.filename,e.url)){const o=new Error(`ScriptExecutionError: Script "${e.url}" loaded but threw a runtime error during execution: ${t.message} (${t.filename}:${t.lineno}:${t.colno})`);o.name="ScriptExecutionError",s=o}}:null;a&&window.addEventListener("error",a);const c=async(r,n)=>{clearTimeout(t),a&&window.removeEventListener("error",a);const i=()=>{if("error"===n?.type){const t=new Error(n?.isTimeout?`ScriptNetworkError: Script "${e.url}" timed out.`:`ScriptNetworkError: Failed to load script "${e.url}" - the script URL is unreachable or the server returned an error (network failure, 404, CORS, etc.)`);t.name="ScriptNetworkError",e?.onErrorCallback&&e?.onErrorCallback(t)}else s?e?.onErrorCallback&&e?.onErrorCallback(s):e?.cb&&e?.cb()};if(o&&(o.onerror=null,o.onload=null,ze((()=>{const{needDeleteScript:t=!0}=e;t&&o?.parentNode&&o.parentNode.removeChild(o)})),r&&"function"==typeof r)){const e=r(n);if(e instanceof Promise){const t=await e;return i(),t}return i(),e}i()};return o.onerror=c.bind(null,o.onerror),o.onload=c.bind(null,o.onload),t=setTimeout((()=>{c(null,{type:"error",isTimeout:!0})}),n),{script:o,needAttach:r}}function Ze(e,t){const{attrs:o={},createScriptHook:r}=t;return new Promise(((t,n)=>{const{script:i,needAttach:s}=Qe({url:e,cb:t,onErrorCallback:n,attrs:{fetchpriority:"high",...o},createScriptHook:r,needDeleteScript:!0});s&&document.head.appendChild(i)}))}const Xe=new Map;function et(e){if(!e)throw new Error("import specifier is required");if(Xe.has(e))return Xe.get(e);const t=new Function("name","return import(name)")(e).then((e=>e)).catch((t=>{throw console.error(`Error importing module ${e}:`,t),Xe.delete(e),t}));return Xe.set(e,t),t}const tt="undefined"==typeof ENV_TARGET||"web"!==ENV_TARGET?(e,t,o,r)=>{if(r?.createScriptHook){const t=r.createScriptHook(e);t&&"object"==typeof t&&"url"in t&&(e=t.url)}let n;try{n=new URL(e)}catch(e){return console.error("Error constructing URL:",e),void t(new Error(`Invalid URL: ${e}`))}(async()=>r?.fetch?(e,t)=>(async(e,t,o)=>{const r=await((e,t)=>o.lifecycle.fetch.emit(e,t))(e,t||{});return r&&r instanceof Response?r:fetch(e,t||{})})(e,t,r):fetch)().then((async e=>{if("esm"===o?.type||"module"===o?.type)return at(n.href,{fetch:e,vm:await et("vm")}).then((async e=>{await e.evaluate(),t(void 0,e.namespace)})).catch((e=>{t(e instanceof Error?e:new Error(`Script execution error: ${e}`))}));(async(e,r)=>{try{const n=await e(r.href),i=await n.text(),[s,a]=await Promise.all([et("path"),et("vm")]),c={exports:{},module:{exports:{}}},l=r.pathname.split("/").slice(0,-1).join("/"),h=s.basename(r.pathname),u=new a.Script(`(function(exports, module, require, __dirname, __filename) {${i}\n})`,{filename:h,importModuleDynamically:a.constants?.USE_MAIN_CONTEXT_DEFAULT_LOADER??et});let d;d=(await et("node:module")).createRequire("file:"===r.protocol||"node:"===r.protocol?r.href:s.join(process.cwd(),"__mf_require_base__.js")),u.runInThisContext()(c.exports,c.module,d,l,h);const m=c.module.exports||c.exports;if(o&&m&&o.globalName)return void t(void 0,m[o.globalName]||m);t(void 0,m)}catch(e){t(e instanceof Error?e:new Error(`Script execution error: ${e}`))}})(e,n)})).catch((e=>{t(e)}))}:(e,t,o,r)=>{t(new Error("createScriptNode is disabled in non-Node.js environment"))},ot="undefined"==typeof ENV_TARGET||"web"!==ENV_TARGET?(e,t)=>new Promise(((o,r)=>{tt(e,((e,n)=>{e?r(e):o(globalThis[t?.attrs?.globalName||`__FEDERATION_${t?.attrs?.name}:custom__`]=n)}),t.attrs,t.loaderHook)})):(e,t)=>{throw new Error("loadScriptNode is disabled in non-Node.js environment")},rt=new Map,nt=e=>e.startsWith("http:")||e.startsWith("https:"),it=e=>!(e.startsWith("./")||e.startsWith("../")||e.startsWith("/")||e.includes(":"));async function st(e,t,o){if(await async function(e){return!!e.startsWith("node:")||!!it(e)&&(await et("node:module")).builtinModules.includes(e)}(e))return async function(e,t){const o=`node-builtin:${e}`;return rt.has(o)?rt.get(o):async function(e,t,o){if("function"!=typeof o.SyntheticModule)throw new Error("vm.SyntheticModule is required to load Node.js built-in modules in ESM remote entries.");const r=function(e){const t=!e||"object"!=typeof e&&"function"!=typeof e?{default:e}:e,o={...t};return Object.prototype.hasOwnProperty.call(o,"default")||(o.default=t),o}(t),n=Object.keys(r),i=new o.SyntheticModule(n,(function(){for(const e of n)this.setExport(e,r[e])}),{identifier:e});return rt.set(e,i),await i.link((async()=>{throw new Error(`Node.js built-in module "${e}" should not request child modules.`)})),await i.evaluate(),i}(o,await et(e),t)}(e,o.vm);if(it(e))throw new Error(`Unsupported ESM module specifier "${e}". Only relative or absolute http(s) remote modules and Node.js built-in modules are supported.`);const r=new URL(e,t).href;if(!nt(r))throw new Error(`Unsupported ESM module specifier "${e}" resolved to "${r}". Only http(s) remote modules and Node.js built-in modules are supported.`);return at(r,o)}async function at(e,t){if(rt.has(e))return rt.get(e);const{fetch:o,vm:r}=t;if(!nt(e))throw new Error(`Unsupported ESM module URL "${e}". Only http(s) remote modules and Node.js built-in modules are supported.`);const n=await(await o(e)).text(),i=(await et("node:url")).pathToFileURL(process.cwd()).href,s=new r.SourceTextModule(n,{identifier:e,initializeImportMeta:t=>{t.url=function(e,t){const o=t.endsWith("/")?t:`${t}/`;return new URL(`__module_federation_remote__${function(e){const t=new URL(e),o=encodeURIComponent(t.protocol.slice(0,-1)),r=encodeURIComponent(t.host),n=t.pathname.split("/").map((e=>encodeURIComponent(e))).join("/"),i=encodeURIComponent(`${t.search}${t.hash}`);return`/${o}/${r}${n}${i?`/${i}`:""}`}(e)}`,o).href}(e,i)},importModuleDynamically:async o=>async function(e){if("linked"===e.status&&await e.evaluate(),"errored"===e.status)throw e.error;return e}(await st(o,e,t))});return rt.set(e,s),await s.link((async o=>st(o,e,t))),s}var ct=o(904),lt=o(10);const ht=".then(callbacks[0]).catch(callbacks[1])",ut=["Failed to fetch dynamically imported module","Importing a module script failed","error loading dynamically imported module"];function dt(e){return"esm"===e||"module"===e}function mt(e,t,o){const{remoteEntryKey:r,entryExports:n}=H(e,t);return n||m(ct.Fj,lt.UJ,{remoteName:e,remoteEntryUrl:o,remoteEntryKey:r}),n}async function ft({remoteInfo:e,remoteEntryExports:t,loaderHook:o,getEntryUrl:r,resourceContext:n}){const{entry:i,entryGlobalName:s,name:a,type:c}=e;return dt(c)?async function({entry:e,remoteEntryExports:t,name:o,getEntryUrl:r}){return new Promise(((n,i)=>{const s=e=>{if((t=e)instanceof TypeError&&ut.some((e=>t.message.includes(e)))){const t=e instanceof Error?e.message:String(e);try{m(ct.ML,lt.UJ,{remoteName:o,resourceUrl:a},t)}catch(e){return void i(e)}}var t;i(e)},a=r?r(e):e;try{t?n(t):"undefined"!=typeof FEDERATION_ALLOW_NEW_FUNCTION?new Function("callbacks",`import("${a}")${ht}`)([n,s]):import(a).then(n).catch(s)}catch(e){m(`Failed to load ESM entry from "${a}". ${e instanceof Error?e.message:String(e)}`)}}))}({entry:i,remoteEntryExports:t,name:a,getEntryUrl:r}):"system"===c?async function({entry:e,remoteEntryExports:t}){return new Promise(((o,r)=>{try{t?o(t):new Function("callbacks",`System.import("${e}")${ht}`)([o,r])}catch(t){m(`Failed to load SystemJS entry from "${e}". ${t instanceof Error?t.message:String(t)}`)}}))}({entry:i,remoteEntryExports:t}):async function({name:e,globalName:t,entry:o,remoteInfo:r,loaderHook:n,getEntryUrl:i,resourceContext:s}){const{entryExports:a}=H(e,t);if(a)return a;const c=i?i(o):o;return Ze(c,{attrs:{},createScriptHook:(e,t)=>{const o=n.lifecycle.createScript.emit({url:e,attrs:t,remoteInfo:r,resourceContext:s?{...s,url:e}:void 0});if(o)return o instanceof HTMLScriptElement||"script"in o||"timeout"in o?o:void 0}}).then((()=>mt(e,t,o)),(t=>{const o=t instanceof Error?t.message:String(t);m(ct.ML,lt.UJ,{remoteName:e,resourceUrl:c},o)}))}({entry:i,globalName:s,name:a,remoteInfo:e,loaderHook:o,getEntryUrl:r,resourceContext:n})}function pt(e){const{entry:t,name:o}=e;return(0,Ke.lG)(o,t)}async function yt(e){const{origin:t,remoteEntryExports:o,remoteInfo:n,getEntryUrl:i,resourceContext:s,_inErrorHandling:a=!1}=e,c=pt(n);if(o)return o;if(!N[c]){const e=t.remoteHandler.hooks.lifecycle.loadEntry,l=t.loaderHook;N[c]=e.emit({origin:t,loaderHook:l,remoteInfo:n,remoteEntryExports:o}).then((e=>e||(("undefined"!=typeof ENV_TARGET?"web"===ENV_TARGET:r.Hq)?ft({remoteInfo:n,remoteEntryExports:o,loaderHook:l,getEntryUrl:i,resourceContext:s}):async function({remoteInfo:e,loaderHook:t,resourceContext:o}){const{entry:r,entryGlobalName:n,name:i,type:s}=e,{entryExports:a}=H(i,n);return a||ot(r,{attrs:{name:i,globalName:n,type:s},loaderHook:{createScriptHook:(r,n={})=>{const i=t.lifecycle.createScript.emit({url:r,attrs:n,remoteInfo:e,resourceContext:o?{...o,url:r}:void 0});if(i)return"url"in i?i:void 0}}}).then((()=>mt(i,n,r))).catch((e=>{m(`Failed to load Node.js entry for remote "${i}" from "${r}". ${e instanceof Error?e.message:String(e)}`)}))}({remoteInfo:n,loaderHook:l,resourceContext:s})))).then((async e=>(await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:n,remoteEntryExports:e}),e))).catch((async e=>{const r=pt(n),i=e instanceof Error&&e.message.includes("ScriptExecutionError");if(e instanceof Error&&e.message.includes(ct.ML)&&!i&&!a){const e=e=>yt({...e,_inErrorHandling:!0}),i=await t.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:e,origin:t,remoteInfo:n,remoteEntryExports:o,globalLoading:N,uniqueKey:r});if(i)return await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:n,remoteEntryExports:i,recovered:!0}),i}throw await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:n,error:e}),e}))}return N[c]}function gt(e){return{...e,entry:"entry"in e?e.entry:"",type:e.type||B,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||q}}function Et(e,t){return t&&"."!==t?`${e}/${t.replace(/^\.\//,"")}`:e}function St(e,t){for(const o of e){const e=t.startsWith(o.name);let r=t.replace(o.name,"");if(e){if(r.startsWith("/"))return r=`.${r}`,{pkgNameOrAlias:o.name,expose:r,remote:o};if(""===r)return{pkgNameOrAlias:o.name,expose:".",remote:o}}const n=o.alias&&t.startsWith(o.alias);let i=o.alias&&t.replace(o.alias,"");if(o.alias&&n){if(i&&i.startsWith("/"))return i=`.${i}`,{pkgNameOrAlias:o.alias,expose:i,remote:o};if(""===i)return{pkgNameOrAlias:o.alias,expose:".",remote:o}}}}function bt(e){return{resourceCategory:"sync",share:!0,depsRemote:!0,...e}}function _t(e){return e instanceof Error&&(e.message.includes("timed out")||e.name.includes("Timeout"))}function It(e,t,o,r){return{url:t,status:o,resourceType:e.resourceType,initiator:e.initiator,id:e.id,error:r}}function wt({host:e,remoteInfo:t,url:o,attrs:r,context:n,needDeleteLink:i}){return new Promise((s=>{const{link:a,needAttach:c}=function(e){let t,o=null,r=!0,n=2e4;const i=document.getElementsByTagName("link");for(let t=0;t<i.length;t++){const n=i[t],s=n.getAttribute("href"),a=n.getAttribute("rel");if(s&&Ye(s,e.url)&&a===e.attrs.rel){o=n,r=!1;break}}if(!o){let t;o=document.createElement("link"),o.setAttribute("href",e.url);let r=!0;const i=e.attrs;e.createLinkHook&&(t=e.createLinkHook(e.url,i),t instanceof HTMLLinkElement?(o=t,r=!1):"object"==typeof t&&("link"in t&&t.link&&(o=t.link,r=!1),"timeout"in t&&t.timeout&&(n=t.timeout))),i&&r&&Object.keys(i).forEach((e=>{o&&!o.getAttribute(e)&&o.setAttribute(e,i[e])}))}if(!r)return Promise.resolve().then((()=>{e?.cb&&e?.cb()})),{link:o,needAttach:r};const s=(r,n)=>{t&&clearTimeout(t);const i=()=>{if("error"===n?.type){const t=new Error(n?.isTimeout?`LinkNetworkError: Link "${e.url}" timed out.`:`LinkNetworkError: Failed to load link "${e.url}" - the URL is unreachable or the server returned an error.`);t.name="LinkNetworkError",e?.onErrorCallback&&e?.onErrorCallback(t)}else e?.cb&&e?.cb()};if(o&&(o.onerror=null,o.onload=null,ze((()=>{const{needDeleteLink:t=!0}=e;t&&o?.parentNode&&o.parentNode.removeChild(o)})),r)){const e=r(n);return i(),e}i()};return o.onerror=s.bind(null,o.onerror),o.onload=s.bind(null,o.onload),t=setTimeout((()=>{s(null,{type:"error",isTimeout:!0})}),n),{link:o,needAttach:r}}({url:o,cb:()=>{s(It(n,o,c?"success":"cached"))},onErrorCallback:e=>{s(It(n,o,_t(e)?"timeout":"error",e))},attrs:r,createLinkHook:(o,r)=>{const i=e.loaderHook.lifecycle.createLink.emit({url:o,attrs:r,remoteInfo:t,resourceContext:{...n,url:o}});return HTMLLinkElement,i},needDeleteLink:i});c&&document.head.appendChild(a)}))}function vt({host:e,remoteInfo:t,url:o,attrs:r,context:n}){return new Promise((i=>{const{script:s,needAttach:a}=Qe({url:o,cb:()=>{i(It(n,o,a?"success":"cached"))},onErrorCallback:e=>{i(It(n,o,_t(e)?"timeout":"error",e))},attrs:r,createScriptHook:(o,r)=>{const i=e.loaderHook.lifecycle.createScript.emit({url:o,attrs:r,remoteInfo:t,resourceContext:{...n,url:o}});return HTMLScriptElement,i},needDeleteScript:!0});a&&document.head.appendChild(s)}))}function kt(e,t){return{...e,resourceType:t}}function Rt(e,t,o,r=!0,n={initiator:"preloadRemote",id:e.name}){const{cssAssets:i,jsAssetsWithoutEntry:s,entryAssets:a}=o,c=[];if(t.options.inBrowser){if(a.forEach((e=>{const{moduleInfo:o}=e;c.push(async function(e,t,o,r){const n=e.moduleCache.get(o.name),i=o.entry;if(n?.remoteEntryExports)return It(r,i,"cached");try{if(!await yt({origin:e,remoteInfo:o,remoteEntryExports:n?.remoteEntryExports,resourceContext:{...r,url:i}}))throw new Error(`Failed to load remoteEntry "${i}".`);return It(r,i,"success")}catch(e){return It(r,i,_t(e)?"timeout":"error",e)}}(t,0,o,kt(n,"remoteEntry")))})),r){const o={rel:"preload",as:"style"};i.forEach((r=>{c.push(wt({host:t,remoteInfo:e,url:r,attrs:o,context:kt(n,"css")}))}))}else{const o={rel:"stylesheet",type:"text/css"};i.forEach((r=>{c.push(wt({host:t,remoteInfo:e,url:r,attrs:o,needDeleteLink:!1,context:kt(n,"css")}))}))}let o=vt,l={fetchpriority:"high",type:"text/javascript"};r?(o=wt,l={rel:"preload",as:"script"}):dt(e.type)&&(o=wt,l={rel:"modulepreload",fetchpriority:"high"}),s.forEach((r=>{c.push(o({host:t,remoteInfo:e,url:r,attrs:l,context:kt(n,"js")}))}))}return Promise.all(c)}var Nt={global:{Global:v,nativeGlobal:w,resetFederationGlobalInfo:function(){I.__FEDERATION__.__GLOBAL_PLUGIN__=[],I.__FEDERATION__.__INSTANCES__=[],I.__FEDERATION__.moduleInfo={},I.__FEDERATION__.__SHARE__={},I.__FEDERATION__.__MANIFEST_LOADING__={},Object.keys(N).forEach((e=>{delete N[e]}))},setGlobalFederationInstance:A,getGlobalFederationConstructor:T,setGlobalFederationConstructor:O,getInfoWithoutType:M,getGlobalSnapshot:x,getTargetSnapshotInfoByModuleInfo:L,getGlobalSnapshotInfoByModuleInfo:C,setGlobalSnapshotInfoByModuleInfo:P,addGlobalSnapshot:F,getRemoteEntryExports:H,registerGlobalPlugins:D,getGlobalHostPlugins:j,getPreloaded:U,setPreloaded:G},share:{getRegisteredShare:qe,getGlobalShareScope:Be},utils:{matchRemoteWithNameAndExpose:St,preloadAssets:Rt,getRemoteInfo:gt}};function $t(e){return{name:e.name,alias:e.alias,entry:"entry"in e?e.entry:void 0,version:"version"in e?e.version:void 0,type:e.type,entryGlobalName:e.entryGlobalName,shareScope:e.shareScope}}function At(e){const t={};for(const[o,r]of Object.entries(e.shared)){const e=r[0];e&&(t[o]={version:e.version,singleton:e.shareConfig?.singleton,requiredVersion:!1!==e.shareConfig?.requiredVersion&&e.shareConfig?.requiredVersion,eager:e.eager,strictVersion:e.shareConfig?.strictVersion})}return{project:{name:e.name,mfRole:e.remotes?.length>0?"host":"unknown"},mfConfig:{name:e.name,remotes:e.remotes?.map($t)??[],shared:t}}}function Tt(e){if(!e||!("modules"in e)||!Array.isArray(e.modules))return;const t=e.modules.map((e=>e.moduleName)).filter(Boolean);return t.length?t.join(","):void 0}var Ot=class{constructor({remoteInfo:e,host:t}){this.inited=!1,this.initing=!1,this.lib=void 0,this.remoteInfo=e,this.host=t}async getEntry(e){if(this.remoteEntryExports)return this.remoteEntryExports;const t=await yt({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports,resourceContext:{initiator:"loadRemote",id:Et(this.remoteInfo.name,e),resourceType:"remoteEntry"}});return d(t,`remoteEntryExports is undefined \n ${(0,Ke.ML)(this.remoteInfo)}`),this.remoteEntryExports=t,this.remoteEntryExports}async init(e,t,o,r){const n=await this.getEntry(r);if(this.inited)return await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:n,cached:!0,origin:this.host}),n;if(this.initPromise){try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:n,cached:!0,origin:this.host})}catch(o){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:n,error:o,cached:!0,origin:this.host}),o}return n}this.initing=!0,this.initPromise=(async()=>{await this.host.loaderHook.lifecycle.beforeInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,origin:this.host});const{remoteEntryInitOptions:r,shareScope:i,initScope:s}=function(e,t,o){const r=t,n=Array.isArray(e.shareScope)?e.shareScope:[e.shareScope];n.length||n.push("default"),n.forEach((e=>{r[e]||(r[e]={})}));const i={version:e.version||"",shareScopeKeys:Array.isArray(e.shareScope)?n:e.shareScope||"default"};return Object.defineProperty(i,"shareScopeMap",{value:r,enumerable:!1}),{remoteEntryInitOptions:i,shareScope:r[n[0]],initScope:o??[]}}(this.remoteInfo,this.host.shareScopeMap,o),a=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:i,remoteEntryInitOptions:r,initScope:s,remoteInfo:this.remoteInfo,origin:this.host});void 0===n?.init&&m(ct.MC,lt.UJ,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName},void 0,At(this.host.options));try{await n.init(a.shareScope,a.initScope,a.remoteEntryInitOptions)}catch(e){m(ct.uz,lt.UJ,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName,shareScope:this.remoteInfo.shareScope},`${e}`,At(this.host.options))}await this.host.hooks.lifecycle.initContainer.emit({...a,id:e,remoteSnapshot:t,remoteEntryExports:n}),this.inited=!0})();try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:n,origin:this.host})}catch(o){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:n,error:o,origin:this.host}),o}finally{this.initing=!1,this.initPromise=void 0}return n}async get(e,t,o,r){const{loadFactory:n=!0}=o||{loadFactory:!0},i=await this.init(e,r,void 0,t);let s;this.lib=i,await this.host.loaderHook.lifecycle.beforeGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:i,origin:this.host});try{const o=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:i,expose:t,moduleInfo:this.remoteInfo});s="function"==typeof o?o:void 0,s||(s=await i.get(t)),s||m(ct.BC,lt.UJ,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,expose:t,requestId:e,availableExposes:Tt(r)},void 0,At(this.host.options)),await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:i,moduleFactory:s,origin:this.host})}catch(o){throw await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:i,error:o,origin:this.host}),o}const a=((e,t)=>{let o;return o=e.endsWith("/")?e.slice(0,-1):e,t.startsWith(".")&&(t=t.slice(1)),o+=t,o})(this.remoteInfo.name,t),c=this.wraperFactory(s,a);if(!n)return c;await this.host.loaderHook.lifecycle.beforeExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:n,origin:this.host});try{const o=await c();return await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:n,exposeModule:o,origin:this.host}),o}catch(o){throw await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:n,error:o,origin:this.host}),o}}wraperFactory(e,t){function o(e,t){e&&"object"==typeof e&&Object.isExtensible(e)&&!Object.getOwnPropertyDescriptor(e,Symbol.for("mf_module_id"))&&Object.defineProperty(e,Symbol.for("mf_module_id"),{value:t,enumerable:!1})}return()=>{const r=e();return r instanceof Promise?r.then((e=>(o(e,t),e))):(o(r,t),r)}}},Mt=class{constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}applyPlugin(e,t){var o;d((o=e,"[object Object]"===S.call(o)),"Plugin configuration is invalid.");const r=e.name;d(r,"A name must be provided by the plugin."),this.registerPlugins[r]||(this.registerPlugins[r]=e,e.apply?.(t),Object.keys(this.lifecycle).forEach((t=>{const o=e[t];o&&this.lifecycle[t].on(o)})))}removePlugin(e){d(e,"A name is required.");const t=this.registerPlugins[e];d(t,`The plugin "${e}" is not registered.`),Object.keys(t).forEach((e=>{"name"!==e&&this.lifecycle[e].remove(t[e])}))}},xt=class{constructor(e){this.type="",this.listeners=new Set,e&&(this.type=e)}on(e){"function"==typeof e&&this.listeners.add(e)}once(e){const t=this;this.on((function o(...r){return t.remove(o),e.apply(null,r)}))}emit(...e){let t;return this.listeners.size>0&&this.listeners.forEach((o=>{const r=o(...e);void 0!==r&&(t=r)})),t}remove(e){this.listeners.delete(e)}removeAll(){this.listeners.clear()}};function Lt(e,t){if(!E(t))return!1;if(e!==t)for(const o in e)if(!(o in t))return!1;return!0}var Ct=class extends xt{constructor(e){super(),this.onerror=m,this.type=e}emit(e){E(e)||m(`The data for the "${this.type}" hook should be an object.`);for(const t of this.listeners)try{const o=t(e);if(void 0===o)continue;if(!Lt(e,o)){this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}e=o}catch(e){f(e),this.onerror(e)}return e}},Pt=class extends xt{constructor(e){super(),this.onerror=m,this.type=e}emit(e){E(e)||m(`The response data for the "${this.type}" hook must be an object.`);const t=Array.from(this.listeners);if(t.length>0){let o=0;const r=t=>(f(t),this.onerror(t),e),n=i=>{if(void 0!==i&&Lt(e,i))e=i;else if(void 0!==i)return this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`),e;if(o<t.length)try{return Promise.resolve(t[o++](e)).then(n,r)}catch(e){return r(e)}return e};return Promise.resolve(n(e))}return Promise.resolve(e)}},Ft=class extends xt{emit(...e){let t;const o=Array.from(this.listeners);if(o.length>0){let r=0;const n=t=>!1!==t&&(r<o.length?Promise.resolve(o[r++].apply(null,e)).then((o=>void 0===o||1===e.length&&o===e[0]?n(t):n(o))):t);t=n()}return Promise.resolve(t)}};function Ht(e,t){const o=_(t);o.url||m(ct.uF,lt.UJ,{remoteName:e.name});let n=(0,Ke.Al)(t,o.url);r.Hq||n.startsWith("http")||(n=`https:${n}`),e.type=o.type,e.entryGlobalName=o.globalName,e.entry=n,e.version=t.version,e.buildVersion=t.buildVersion}const Dt=(e,t)=>{if(!e)return t;const o=(e=>{if("."===e)return"";if(e.startsWith("./"))return e.replace("./","");if(e.startsWith("/")){const t=e.slice(1);return t.endsWith("/")?t.slice(0,-1):t}return e})(e);return o?o.endsWith("/")?`${o}${t}`:`${o}/${t}`:t};function jt(e){return!(!("remoteEntry"in e)||!e.remoteEntry.includes(Me.CQ))}function Ut(e){const t=e.split(":");return 1===t.length?{name:t[0],version:void 0}:2===t.length?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}}function Gt(e,t,o,r,n={},i){const{value:s}=M(e,p(t)),a=i||s;if(a&&!jt(a)&&(o(a,t,r),a.remotesInfo)){const t=Object.keys(a.remotesInfo);for(const r of t){if(n[r])continue;n[r]=!0;const t=Ut(r),i=a.remotesInfo[r];Gt(e,{name:t.name,version:i.matchedVersion},o,!1,n,void 0)}}}const qt=(e,t)=>document.querySelector(`${e}[${"link"===e?"href":"src"}="${t}"]`);function Bt(e,t,o,r,n){const i=[],s=[],a=[],c=new Set,l=new Set,{options:h}=e,{preloadConfig:u}=t,{depsRemote:d}=u;if(Gt(r,o,((t,o,r)=>{let n;if(r)n=u;else if(Array.isArray(d)){const e=d.find((e=>e.nameOrAlias===o.name||e.nameOrAlias===o.alias));if(!e)return;n=bt(e)}else{if(!0!==d)return;n=u}const c=(0,Ke.Al)(t,_(t).url);c&&a.push({name:o.name,moduleInfo:{name:o.name,entry:c,type:"remoteEntryType"in t?t.remoteEntryType:"global",entryGlobalName:"globalName"in t?t.globalName:o.name,shareScope:"",version:"version"in t?t.version:void 0},url:c});let l="modules"in t?t.modules:[];const h=(m=n.exposes)?m.map((e=>"."===e?e:e.startsWith("./")?e.replace("./",""):e)):[];var m;function f(e){const o=e.map((e=>(0,Ke.Al)(t,e)));return n.filter?o.filter(n.filter):o}if(h.length&&"modules"in t&&(l=t?.modules?.reduce(((e,t)=>(-1!==h?.indexOf(t.moduleName)&&e.push(t),e)),[])),l){const r=l.length;for(let a=0;a<r;a++){const r=l[a],c=`${o.name}/${r.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:"."===r.moduleName?o.name:c,name:o.name,remoteSnapshot:t,preloadConfig:n,remote:o,origin:e}),U(c)||("all"===n.resourceCategory?(i.push(...f(r.assets.css.async)),i.push(...f(r.assets.css.sync)),s.push(...f(r.assets.js.async)),s.push(...f(r.assets.js.sync))):"sync"===n.resourceCategory&&(i.push(...f(r.assets.css.sync)),s.push(...f(r.assets.js.sync))),G(c))}}}),!0,{},n),n.shared&&n.shared.length>0){const t=(t,o)=>{const{shared:r}=qe(e.shareScopeMap,o.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare)||{};r&&"function"==typeof r.lib&&(o.assets.js.sync.forEach((e=>{c.add(e)})),o.assets.css.sync.forEach((e=>{l.add(e)})))};n.shared.forEach((e=>{const o=h.shared?.[e.sharedName];if(!o)return;const r=e.version?o.find((t=>t.version===e.version)):o;r&&b(r).forEach((o=>{t(o,e)}))}))}const m=s.filter((e=>!c.has(e)&&!qt("script",e)));return{cssAssets:i.filter((e=>!l.has(e)&&!qt("link",e))),jsAssetsWithoutEntry:m,entryAssets:a.filter((e=>!qt("script",e.url)))}}function Vt(e,t){const o=C({name:t.name,version:t.options.version}),r=o&&"remotesInfo"in o&&o.remotesInfo&&M(o.remotesInfo,e.name).value;return r&&r.matchedVersion?{hostGlobalSnapshot:o,globalSnapshot:x(),remoteSnapshot:C({name:e.name,version:r.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:x(),remoteSnapshot:C({name:e.name,version:"version"in e?e.version:void 0})}}var Wt=class{constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new Mt({beforeLoadRemoteSnapshot:new Ft("beforeLoadRemoteSnapshot"),loadSnapshot:new Pt("loadGlobalSnapshot"),loadRemoteSnapshot:new Pt("loadRemoteSnapshot"),afterLoadSnapshot:new Pt("afterLoadSnapshot")}),this.manifestLoading=v.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}async loadRemoteSnapshotInfo({moduleInfo:e,id:t,initiator:o="loadRemote"}){const{options:n}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:n,moduleInfo:e,origin:this.HostInstance});let i=C({name:this.HostInstance.options.name,version:this.HostInstance.options.version});i||(i={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},F({[this.HostInstance.options.name]:i})),i&&"remotesInfo"in i&&!M(i.remotesInfo,e.name).value&&("version"in e||"entry"in e)&&(i.remotesInfo={...i?.remotesInfo,[e.name]:{matchedVersion:"version"in e?e.version:e.entry}});const{hostGlobalSnapshot:s,remoteSnapshot:a,globalSnapshot:c}=this.getGlobalRemoteInfo(e),{remoteSnapshot:l,globalSnapshot:h}=await this.hooks.lifecycle.loadSnapshot.emit({options:n,moduleInfo:e,hostGlobalSnapshot:s,remoteSnapshot:a,globalSnapshot:c});let u,d;if(l)if(jt(l)){const n=r.Hq?l.remoteEntry:l.ssrRemoteEntry||l.remoteEntry||"",i=await this.loadManifestSnapshot(n,e,{},{initiator:o,id:t||e.name});u=i,d=P({...e,entry:n},i)}else{const{remoteSnapshot:t}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:l,from:"global"});u=t,d=h}else if(y(e)){const r=await this.loadManifestSnapshot(e.entry,e,{},{initiator:o,id:t||e.name});u=r,d=P(e,r)}else m(ct.Tz,lt.UJ,{remoteName:e.name,remoteVersion:e.version,hostName:this.HostInstance.options.name,globalSnapshot:JSON.stringify(h)},void 0,At(this.HostInstance.options));return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:t,host:this.HostInstance,options:n,moduleInfo:e,remoteSnapshot:u}),{remoteSnapshot:u,globalSnapshot:d}}getGlobalRemoteInfo(e){return Vt(e,this.HostInstance)}async getManifestJson(e,t,o,r){return(async()=>{const o=gt(t);let n=this.manifestCache.get(e);if(n)return n;try{let t=await this.loaderHook.lifecycle.fetch.emit(e,{},o,r?{...r,url:e,resourceType:"manifest"}:void 0);t&&t instanceof Response||(t=await fetch(e,{})),n=await t.json()}catch(r){n=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:r,from:"runtime",lifecycle:"afterResolve",remote:o,origin:this.HostInstance}),n||(delete this.manifestLoading[e],m(ct.F0,lt.UJ,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${r}`,At(this.HostInstance.options)))}const i=[!n.metaData&&"metaData",!n.exposes&&"exposes",!n.shared&&"shared"].filter(Boolean);return i.length>0&&await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:new Error(`"${e}" is not a valid federation manifest for remote "${t.name}". Missing required fields: ${i.join(", ")}.`),from:"runtime",lifecycle:"afterResolve",remote:o,origin:this.HostInstance}),i.length>0&&m(ct.u0,lt.UJ,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name,missingFields:i.join(",")},void 0,At(this.HostInstance.options)),this.manifestCache.set(e,n),n})()}async loadManifestSnapshot(e,t,o,r){return this.manifestLoading[e]||(this.manifestLoading[e]=(async()=>{const n=await this.getManifestJson(e,t,o,r),i=function(e,t={}){const{remotes:o={},overrides:r={},version:n}=t;let i;const s=()=>"publicPath"in e.metaData?"auto"!==e.metaData.publicPath&&""!==e.metaData.publicPath||!n?e.metaData.publicPath:n.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"):e.metaData.getPublicPath,a=Object.keys(r);let c={};Object.keys(o).length||(c=e.remotes?.reduce(((e,t)=>{let o;const n=t.federationContainerName;return o=a.includes(n)?r[n]:"version"in t?t.version:t.entry,e[n]={matchedVersion:o},e}),{})||{}),Object.keys(o).forEach((e=>c[e]={matchedVersion:a.includes(e)?r[e]:o[e]}));const{remoteEntry:{path:l,name:h,type:u},types:d={path:"",name:"",zip:"",api:""},buildInfo:{buildVersion:m},globalName:f,ssrRemoteEntry:p}=e.metaData,{exposes:y}=e;let g={version:n||"",buildVersion:m,globalName:f,remoteEntry:Dt(l,h),remoteEntryType:u,remoteTypes:Dt(d.path,d.name),remoteTypesZip:d.zip||"",remoteTypesAPI:d.api||"",remotesInfo:c,shared:e?.shared.map((e=>({assets:e.assets,sharedName:e.name,version:e.version,usedExports:e.referenceExports||[]}))),modules:y?.map((e=>({moduleName:e.name,modulePath:e.path,assets:e.assets})))};if("publicPath"in e.metaData?(i={...g,publicPath:s()},"string"==typeof e.metaData.ssrPublicPath&&(i.ssrPublicPath=e.metaData.ssrPublicPath)):i={...g,getPublicPath:s()},p){const e=Dt(p.path,p.name);i.ssrRemoteEntry=e,i.ssrRemoteEntryType=p.type||"commonjs-module"}return i}(n,{version:e}),{remoteSnapshot:s}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:n,remoteSnapshot:i,manifestUrl:e,from:"manifest"});return s})().then((e=>e))),this.manifestLoading[e]}},Jt=class{constructor(e){this.hooks=new Mt({beforeRegisterShare:new Ct("beforeRegisterShare"),afterResolve:new Pt("afterResolve"),beforeLoadShare:new Pt("beforeLoadShare"),loadShare:new Ft,afterLoadShare:new xt("afterLoadShare"),errorLoadShare:new xt("errorLoadShare"),resolveShare:new Ct("resolveShare"),initContainerShareScopeMap:new Ct("initContainerShareScopeMap")}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}emitAfterLoadShare({lifecycle:e,pkgName:t,shareInfo:o,selectedShared:r}){try{this.hooks.lifecycle.afterLoadShare.emit({pkgName:t,shareInfo:o,selectedShared:r,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:e,origin:this.host})}catch(e){f(e)}}emitErrorLoadShare({lifecycle:e,pkgName:t,shareInfo:o,error:r,recovered:n}){try{this.hooks.lifecycle.errorLoadShare.emit({pkgName:t,shareInfo:o,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:e,origin:this.host,error:r,recovered:n})}catch(e){f(e)}}registerShared(e,t){const{newShareInfos:o,allShareInfos:r}=xe(e,t);return Object.keys(o).forEach((e=>{o[e].forEach((o=>{o.scope.forEach((r=>{this.hooks.lifecycle.beforeRegisterShare.emit({origin:this.host,pkgName:e,shared:o}),this.shareScopeMap[r]?.[e]||this.setShared({pkgName:e,lib:o.lib,get:o.get,loaded:o.loaded||Boolean(o.lib),shared:o,from:t.name})}))}))})),{newShareInfos:o,allShareInfos:r}}async loadShare(e,t){const{host:o}=this,r=Ve({pkgName:e,extraOptions:t,shareInfos:o.options.shared});let n=r;try{r?.scope&&await Promise.all(r.scope.map((async e=>{await Promise.all(this.initializeSharing(e,{strategy:r.strategy}))}))),n=(await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:r,shared:o.options.shared,origin:o})).shareInfo,d(n,`Cannot find shared "${e}" in host "${o.options.name}". Ensure the shared config for "${e}" is declared in the federation plugin options and the host has been initialized before loading shares.`);const i=n,{shared:s,useTreesShaking:a}=qe(this.shareScopeMap,e,n,this.hooks.lifecycle.resolveShare)||{};if(s){const t=Je(s,a);if(t.lib)return We(t,o.options.name),this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:i,selectedShared:s}),t.lib;if(t.loading&&!t.loaded){const r=await t.loading;return t.loaded=!0,t.lib||(t.lib=r),We(t,o.options.name),this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:i,selectedShared:s}),r}{const r=async()=>{const e=await t.get();return We(t,o.options.name),t.loaded=!0,t.lib=e,e},n=r();this.setShared({pkgName:e,loaded:!1,shared:s,from:o.options.name,lib:null,loading:n,treeShaking:a?t:void 0});const c=await n;return this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:i,selectedShared:s}),c}}{if(t?.customShareInfo)return this.emitErrorLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:i,recovered:!0}),!1;const r=Le(i.treeShaking),n=Je(i,r),s=async()=>{const t=await n.get();n.lib=t,n.loaded=!0,We(n,o.options.name);const{shared:r,useTreesShaking:s}=qe(this.shareScopeMap,e,i,this.hooks.lifecycle.resolveShare)||{};if(r){const e=Je(r,s);e.lib=t,e.loaded=!0,r.from=i.from}return t},a=s();this.setShared({pkgName:e,loaded:!1,shared:i,from:o.options.name,lib:null,loading:a,treeShaking:r?n:void 0});const c=await a;return this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:i,selectedShared:i}),c}}catch(t){throw this.emitErrorLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:n,error:t}),t}}initializeSharing(e=q,t){const{host:o}=this,r=t?.from,n=t?.strategy;let i=t?.initScope;const s=[];if("build"!==r){const{initTokens:t}=this;i||(i=[]);let o=t[e];if(o||(o=t[e]={from:this.host.name}),i.indexOf(o)>=0)return s;i.push(o)}const a=this.shareScopeMap,c=o.options.name;a[e]||(a[e]={});const l=a[e];return Object.keys(o.options.shared).forEach((t=>{o.options.shared[t].forEach((o=>{o.scope.includes(e)&&((e,t)=>{const{version:o,eager:r}=t;l[e]=l[e]||{};const n=l[e],i=n[o]&&Je(n[o]),s=Boolean(i&&("eager"in i&&i.eager||"shareConfig"in i&&i.shareConfig?.eager));(!i||"loaded-first"!==i.strategy&&!i.loaded&&(Boolean(!r)!==!s?r:c>n[o].from))&&(n[o]=t)})(t,o)}))})),"version-first"!==o.options.shareStrategy&&"version-first"!==n||o.options.remotes.forEach((t=>{t.shareScope===e&&s.push((async e=>{const{module:t}=await o.remoteHandler.getRemoteModuleAndOptions({id:e});let r;try{r=await t.getEntry()}catch(n){if(r=await o.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:n,from:"runtime",lifecycle:"beforeLoadShare",remote:t.remoteInfo,origin:o}),!r)return}finally{r?.init&&!t.initing&&(t.remoteEntryExports=r,await t.init(void 0,void 0,i))}})(t.name))})),s}loadShareSync(e,t){const{host:o}=this,r=Ve({pkgName:e,extraOptions:t,shareInfos:o.options.shared});try{r?.scope&&r.scope.forEach((e=>{this.initializeSharing(e,{strategy:r.strategy})}));const{shared:n}=qe(this.shareScopeMap,e,r,this.hooks.lifecycle.resolveShare)||{};if(n){if("function"==typeof n.lib)return We(n,o.options.name),n.loaded||(n.loaded=!0,n.from===o.options.name&&(r.loaded=!0)),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:r,selectedShared:n}),n.lib;if("function"==typeof n.get){const t=n.get();if(!(t instanceof Promise))return We(n,o.options.name),this.setShared({pkgName:e,loaded:!0,from:o.options.name,lib:t,shared:n}),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:r,selectedShared:n}),t}}if(r.lib)return r.loaded||(r.loaded=!0),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:r,selectedShared:r}),r.lib;if(r.get){const n=r.get();return n instanceof Promise&&m("build"===t?.from?ct.Fd:ct.yB,lt.UJ,{hostName:o.options.name,sharedPkgName:e},void 0,At(o.options)),r.lib=n,this.setShared({pkgName:e,loaded:!0,from:o.options.name,lib:r.lib,shared:r}),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:r,selectedShared:r}),r.lib}m(ct.yB,lt.UJ,{hostName:o.options.name,sharedPkgName:e},void 0,At(o.options))}catch(t){throw this.emitErrorLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:r,error:t}),t}}initShareScopeMap(e,t,o={}){const{host:r}=this;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:r.options,origin:r,scopeName:e,hostShareScopeMap:o.hostShareScopeMap})}setShared({pkgName:e,shared:t,from:o,lib:r,loading:n,loaded:i,get:s,treeShaking:a}){const{version:c,scope:l="default",...h}=t;(Array.isArray(l)?l:[l]).forEach((t=>{this.shareScopeMap[t]||(this.shareScopeMap[t]={}),this.shareScopeMap[t][e]||(this.shareScopeMap[t][e]={}),this.shareScopeMap[t][e][c]||(this.shareScopeMap[t][e][c]={version:c,scope:[t],...h,lib:r});const l=this.shareScopeMap[t][e][c];(e=>{const t=(e,t,o)=>{o&&!e[t]&&(e[t]=o)},o=a?e.treeShaking:e;t(o,"loaded",i),t(o,"loading",n),t(o,"get",s)})(l),o&&l.from!==o&&(l.from=o)}))}_setGlobalShareScopeMap(e){const t=Be(),o=e.id||e.name;o&&!t[o]&&(t[o]=this.shareScopeMap)}},Kt=class{constructor(e){this.hooks=new Mt({beforeRegisterRemote:new Ct("beforeRegisterRemote"),registerRemote:new Ct("registerRemote"),beforeRequest:new Pt("beforeRequest"),afterMatchRemote:new Ft("afterMatchRemote"),onLoad:new Ft("onLoad"),afterLoadRemote:new Ft("afterLoadRemote"),handlePreloadModule:new xt("handlePreloadModule"),errorLoadRemote:new Ft("errorLoadRemote"),beforePreloadRemote:new Ft("beforePreloadRemote"),generatePreloadAssets:new Ft("generatePreloadAssets"),afterPreloadRemote:new Ft("afterPreloadRemote"),loadEntry:new Ft}),this.host=e,this.idToRemoteMap={}}formatAndRegisterRemote(e,t){return(t.remotes||[]).reduce(((e,t)=>(this.registerRemote(t,e,{force:!1}),e)),e.remotes)}setIdToRemoteMap(e,t){const{remote:o,expose:r}=t,{name:n,alias:i}=o;if(this.idToRemoteMap[e]={name:o.name,expose:r},i&&e.startsWith(n)){const t=e.replace(n,i);this.idToRemoteMap[t]={name:o.name,expose:r}}else if(i&&e.startsWith(i)){const t=e.replace(i,n);this.idToRemoteMap[t]={name:o.name,expose:r}}}async loadRemote(e,t){const{host:o}=this,r=St(o.options.remotes,e);let n,i=e,s=r?.expose,a=r?gt(r.remote):void 0;try{const{loadFactory:r=!0}=t||{loadFactory:!0},{module:c,moduleOptions:l,remoteMatchInfo:h}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:u,remote:d,expose:m,id:f,remoteSnapshot:p}=h;i=f,s=m,a=gt(d);const y=await c.get(f,m,t,p),g=await this.hooks.lifecycle.onLoad.emit({id:f,pkgNameOrAlias:u,expose:m,exposeModule:r?y:void 0,exposeModuleFactory:r?void 0:y,remote:d,options:l,moduleInstance:c,origin:o});return this.setIdToRemoteMap(e,h),n={id:i,expose:s,remote:a,options:t,origin:o},"function"==typeof g?g:y}catch(r){const{from:c="runtime"}=t||{from:"runtime"};let l;try{l=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:r,from:c,lifecycle:"onLoad",expose:s,remote:a,origin:o})}catch(e){throw n={id:i,expose:s,remote:a,options:t,error:e,origin:o},e}if(!l)throw n={id:i,expose:s,remote:a,options:t,error:r,origin:o},r;return n={id:i,expose:s,remote:a,options:t,error:r,origin:o,recovered:!0},l}finally{n&&await this.hooks.lifecycle.afterLoadRemote.emit(n)}}async preloadRemote(e){const{host:t}=this,o=[];await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:t.options,origin:t});const r=(n=t.options.remotes,e.map((e=>{const t=function(e,t){for(const o of e){if(t===o.name)return o;if(o.alias&&t===o.alias)return o}}(n,e.nameOrAlias);return d(t,`Unable to preload ${e.nameOrAlias} as it is not included in ${!t&&(0,Ke.ML)({remoteInfo:t,remotes:n})}`),{remote:t,preloadConfig:bt(e)}})));var n;let i;await Promise.all(r.flatMap((e=>{const{preloadConfig:t,remote:o}=e,r=t.exposes||[];return r.length?r.map((r=>({ops:{...e,preloadConfig:{...t,exposes:[r]}},id:Et(o.name,r)}))):[{ops:e,id:`${o.name}/*`}]})).map((async e=>{const{ops:r,id:n}=e,{remote:i,preloadConfig:s}=r,a=gt(i);try{const{globalSnapshot:e,remoteSnapshot:c}=await t.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:i,id:n,initiator:"preloadRemote"}),l=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:t,preloadOptions:r,remote:i,remoteInfo:a,globalSnapshot:e,remoteSnapshot:c});if(!l)return;const h=await Rt(a,t,l,!0,{initiator:"preloadRemote",id:n});o.push({remote:i,remoteInfo:a,preloadConfig:s,id:n,results:h})}catch(e){o.push({remote:i,remoteInfo:a,preloadConfig:s,id:n,results:[{url:a.entry,status:"error",resourceType:/\.json(?:$|[?#])/i.test(a.entry)?"manifest":"remoteEntry",initiator:"preloadRemote",id:n,error:e}]})}})));const s=o.flatMap((e=>e.results.filter((e=>"error"===e.status||"timeout"===e.status))));if(s.length>0&&(i=new Error(`preloadRemote failed to load ${s.length} resource(s).`),Object.assign(i,{results:o,failedResults:s})),await this.hooks.lifecycle.afterPreloadRemote.emit({preloadOps:e,options:t.options,origin:t,results:o,error:i}),i)throw i}registerRemotes(e,t){const{host:o}=this;e.forEach((e=>{this.registerRemote(e,o.options.remotes,{force:t?.force})}))}initRawContainer(e,t,o){const{host:r}=this,n=new Ot({host:r,remoteInfo:gt({name:e,entry:t})});return n.remoteEntryExports=o,r.moduleCache.set(e,n),n}async getRemoteModuleAndOptions(e){const{host:t}=this,{id:o}=e;let r;try{r=await this.hooks.lifecycle.beforeRequest.emit({id:o,options:t.options,origin:t})}catch(e){if(r=await this.hooks.lifecycle.errorLoadRemote.emit({id:o,options:t.options,origin:t,from:"runtime",error:e,lifecycle:"beforeRequest"}),!r)throw e}const{id:n}=r,i=St(t.options.remotes,n);if(!i)try{m(ct.MR,lt.UJ,{hostName:t.options.name,requestId:n},void 0,At(t.options))}catch(e){throw await this.hooks.lifecycle.afterMatchRemote.emit({id:n,options:t.options,error:e,origin:t}),e}const{remote:s}=i,a=gt(s);await this.hooks.lifecycle.afterMatchRemote.emit({id:n,...i,options:t.options,remoteInfo:a,origin:t});const c=await t.sharedHandler.hooks.lifecycle.afterResolve.emit({id:n,...i,options:t.options,origin:t,remoteInfo:a}),{remote:l,expose:h}=c;d(l&&h,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${n}.`);let u=t.moduleCache.get(l.name);const f={host:t,remoteInfo:a};return u||(u=new Ot(f),t.moduleCache.set(l.name,u)),{module:u,moduleOptions:f,remoteMatchInfo:c}}registerRemote(e,t,o){const{host:n}=this,i=()=>{if(e.alias){const o=t.find((t=>e.alias&&(t.name.startsWith(e.alias)||t.alias?.startsWith(e.alias))));d(!o,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${o&&o.name} name or alias`)}"entry"in e&&r.Hq&&"undefined"!=typeof window&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=q),e.type||(e.type=B)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:n});const s=t.find((t=>t.name===e.name));if(s){const r=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];o?.force&&(this.removeRemote(s),i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n}),(0,Ke.R8)(r.join(" ")))}else i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n})}removeRemote(e){try{const{host:t}=this,{name:o}=e,r=t.options.remotes.findIndex((e=>e.name===o));-1!==r&&t.options.remotes.splice(r,1);const n=M(I.__FEDERATION__.moduleInfo,p(e)).key;delete I.__FEDERATION__.moduleInfo[n],"entry"in e&&(t.snapshotHandler.manifestCache.delete(e.entry),delete v.__FEDERATION__.__MANIFEST_LOADING__[e.entry]);const{hostGlobalSnapshot:i}=Vt(e,t);if(i){const t=i&&"remotesInfo"in i&&i.remotesInfo&&M(i.remotesInfo,e.name).key;t&&delete i.remotesInfo[t]}const s=t.moduleCache.get(e.name);if(s){const o=s.remoteInfo,r=o.entryGlobalName;I[r]&&(Object.getOwnPropertyDescriptor(I,r)?.configurable?delete I[r]:I[r]=void 0);const n=pt(s.remoteInfo);N[n]&&delete N[n];let i=o.buildVersion?(0,Ke.lG)(o.name,o.buildVersion):o.name;const a=I.__FEDERATION__.__INSTANCES__.findIndex((e=>o.buildVersion?e.options.id===i:e.name===i));if(-1!==a){const e=I.__FEDERATION__.__INSTANCES__[a];i=e.options.id||i;const t=Be();let r=!0;const n=[];Object.keys(t).forEach((e=>{const i=t[e];i&&Object.keys(i).forEach((t=>{const s=i[t];s&&Object.keys(s).forEach((i=>{const a=s[i];a&&Object.keys(a).forEach((s=>{const c=a[s];c&&"object"==typeof c&&c.from===o.name&&(c.loaded||c.loading?(c.useIn=c.useIn.filter((e=>e!==o.name)),c.useIn.length?r=!1:n.push([e,t,i,s])):n.push([e,t,i,s]))}))}))}))})),r&&(e.shareScopeMap={},delete t[i]),n.forEach((([e,o,r,n])=>{delete t[e]?.[o]?.[r]?.[n]})),I.__FEDERATION__.__INSTANCES__.splice(a,1)}t.moduleCache.delete(e.name)}}catch(e){u.error(`removeRemote failed: ${e instanceof Error?e.message:String(e)}`)}}},zt=class{constructor(e){this.hooks=new Mt({beforeInit:new Ct("beforeInit"),init:new xt,beforeInitContainer:new Pt("beforeInitContainer"),initContainer:new Pt("initContainer")}),this.version="2.8.2",this.moduleCache=new Map,this.loaderHook=new Mt({getModuleInfo:new xt,createScript:new xt,createLink:new xt,fetch:new Ft,loadEntryError:new Ft,afterLoadEntry:new Ft("afterLoadEntry"),beforeInitRemote:new Ft("beforeInitRemote"),afterInitRemote:new Ft("afterInitRemote"),beforeGetExpose:new Ft("beforeGetExpose"),afterGetExpose:new Ft("afterGetExpose"),beforeExecuteFactory:new Ft("beforeExecuteFactory"),afterExecuteFactory:new Ft("afterExecuteFactory"),getModuleFactory:new Ft}),this.bridgeHook=new Mt({beforeBridgeRender:new xt,afterBridgeRender:new xt,beforeBridgeDestroy:new xt,afterBridgeDestroy:new xt});const t=[{name:"snapshot-plugin",async afterResolve(e){const{remote:t,pkgNameOrAlias:o,expose:r,origin:n,remoteInfo:i,id:s}=e;if(!y(t)||!g(t)){const{remoteSnapshot:a,globalSnapshot:c}=await n.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:Et(t.name,r)});Ht(i,a);const l={remote:t,preloadConfig:{nameOrAlias:o,exposes:[r],resourceCategory:"sync",share:!1,depsRemote:!1}},h=await n.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:n,preloadOptions:l,remoteInfo:i,remote:t,remoteSnapshot:a,globalSnapshot:c});return h&&Rt(i,n,h,!1,{initiator:"loadRemote",id:s}).catch((()=>{})),{...e,remoteSnapshot:a}}return e}},{name:"generate-preload-assets-plugin",async generatePreloadAssets(e){const{origin:t,preloadOptions:o,remoteInfo:n,remote:i,globalSnapshot:s,remoteSnapshot:a}=e;return r.Hq?y(i)&&g(i)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:i.name,url:i.entry,moduleInfo:{name:n.name,entry:i.entry,type:n.type||"global",entryGlobalName:"",shareScope:""}}]}:(Ht(n,a),Bt(t,o,n,s,a)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}],o={id:"Appshell:1.0.0-alpha.23",name:e.name,plugins:t,remotes:[],shared:{},inBrowser:r.Hq};this.name=e.name,this.options=o,this.snapshotHandler=new Wt(this),this.sharedHandler=new Jt(this),this.remoteHandler=new Kt(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...o.plugins,...e.plugins||[]]),this.options=this.formatOptions(o,e)}initOptions(e){e.name&&e.name!==this.options.name&&m(l(ct.n3,lt.UJ)),this.registerPlugins(e.plugins);const t=this.formatOptions(this.options,e);return this.options=t,t}async loadShare(e,t){return this.sharedHandler.loadShare(e,t)}loadShareSync(e,t){return this.sharedHandler.loadShareSync(e,t)}initializeSharing(e=q,t){return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,o){return this.remoteHandler.initRawContainer(e,t,o)}async loadRemote(e,t){return this.remoteHandler.loadRemote(e,t)}async preloadRemote(e){return this.remoteHandler.preloadRemote(e)}initShareScopeMap(e,t,o={}){this.sharedHandler.initShareScopeMap(e,t,o)}formatOptions(e,t){const o=xe(e,t).allShareInfos,{userOptions:r,options:n}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:o}),i=this.remoteHandler.formatAndRegisterRemote(n,r),{allShareInfos:s}=this.sharedHandler.registerShared(n,r),a=[...n.plugins];r.plugins&&r.plugins.forEach((e=>{a.includes(e)||a.push(e)}));const c={...e,...t,plugins:a,remotes:i,shared:s,id:r.id||e.id};return this.hooks.lifecycle.init.emit({origin:this,options:c}),c}registerPlugins(e){const t=function(e,t){const o=j(),r=[t.hooks,t.remoteHandler.hooks,t.sharedHandler.hooks,t.snapshotHandler.hooks,t.loaderHook,t.bridgeHook];return o.length>0&&o.forEach((t=>{e?.find((e=>e.name!==t.name))&&e.push(t)})),e&&e.length>0&&e.forEach((e=>{r.forEach((o=>{o.applyPlugin(e,t)}))})),e}(e,this);this.options.plugins=this.options.plugins.reduce(((e,t)=>t?(e&&!e.find((e=>e.name===t.name))&&e.push(t),e):e),t||[])}registerRemotes(e,t){return this.remoteHandler.registerRemotes(e,t)}registerShared(e){this.sharedHandler.registerShared(this.options,{...this.options,shared:e})}};Object.defineProperty;const Yt=Nt,Qt=Ot},650(e,t,o){o.r(t),o.d(t,{Module:()=>n.nV,ModuleFederation:()=>n.gP,createInstance:()=>a,getInstance:()=>y,getRemoteEntry:()=>n.fE,getRemoteInfo:()=>n.pW,init:()=>l,loadRemote:()=>h,loadScript:()=>n.k0,loadScriptNode:()=>n.oe,loadShare:()=>u,loadShareSync:()=>d,preloadRemote:()=>m,registerGlobalPlugins:()=>n.RY,registerPlugins:()=>p,registerRemotes:()=>f,registerShared:()=>g});var r=o(370),n=o(655),i=o(904),s=o(10);function a(e){const t=new((0,n.Bf)()||n.gP)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,n.C3)(t),t}let c=null;function l(e){const t=(0,r.u)(e.name,e.version),o={...e,id:e.id||""};return t?(t.initOptions(o),c||(c=t),t):(c=a(o),c)}function h(...e){return(0,n.vA)(c,i.F9,s.UJ),c.loadRemote.apply(c,e)}function u(...e){return(0,n.vA)(c,i.F9,s.UJ),c.loadShare.apply(c,e)}function d(...e){return(0,n.vA)(c,i.F9,s.UJ),c.loadShareSync.apply(c,e)}function m(...e){return(0,n.vA)(c,i.F9,s.UJ),c.preloadRemote.apply(c,e)}function f(...e){return(0,n.vA)(c,i.F9,s.UJ),c.registerRemotes.apply(c,e)}function p(...e){return(0,n.vA)(c,i.F9,s.UJ),c.registerPlugins.apply(c,e)}function y(e){return e?n.hS.__FEDERATION__.__INSTANCES__.find(e)||null:c}function g(...e){return(0,n.vA)(c,i.F9,s.UJ),c.registerShared.apply(c,e)}(0,n.rc)(n.gP)},370(e,t,o){o.d(t,{u:()=>n});var r=o(655);function n(e,t){return r.hS.__FEDERATION__.__INSTANCES__.find((o=>!("Appshell:1.0.0-alpha.23"!==o.options.id&&(o.options.name!==e||o.options.version||t)&&(o.options.name!==e||!t||o.options.version!==t))))}},151(e,t,o){o.d(t,{CQ:()=>r,Qm:()=>i,e0:()=>a,gF:()=>h,gR:()=>s,sC:()=>n,wv:()=>c,yq:()=>l});const r=".json",n="FEDERATION_DEBUG",i={AT:"@",HYPHEN:"-",SLASH:"/"},s={[i.AT]:"scope_",[i.HYPHEN]:"_",[i.SLASH]:"__"},a={[s[i.AT]]:i.AT,[s[i.HYPHEN]]:i.HYPHEN,[s[i.SLASH]]:i.SLASH},c=":",l="ENCODE_NAME_PREFIX";let h=function(e){return e[e.UNKNOWN=1]="UNKNOWN",e[e.CALCULATED=2]="CALCULATED",e[e.NO_USE=0]="NO_USE",e}({})},284(e,t,o){},848(e,t,o){o.d(t,{Bb:()=>a,Hq:()=>n,MC:()=>s,OL:()=>i});var r=o(151);const n="undefined"!=typeof ENV_TARGET?"web"===ENV_TARGET:"undefined"!=typeof window&&void 0!==window.document;function i(){return n}function s(){return"undefined"!=typeof navigator&&"ReactNative"===navigator?.product}function a(){return"undefined"!=typeof process&&process.env&&process.env.FEDERATION_DEBUG?Boolean(process.env.FEDERATION_DEBUG):!("undefined"==typeof FEDERATION_DEBUG||!Boolean(FEDERATION_DEBUG))||function(){try{if(i()&&window.localStorage)return Boolean(localStorage.getItem(r.sC))}catch(e){return!1}return!1}()}},55(){},112(e,t,o){},469(){Object.defineProperty},378(e,t,o){o.d(t,{Al:()=>a,ML:()=>l,R8:()=>c,e4:()=>s,lG:()=>i});var r=o(151),n=o(848);const i=function(...e){return e.length?e.reduce(((e,t)=>t?e?`${e}${r.wv}${t}`:t:e),""):""},s=function(e,t,o){try{let n=e;if(t){if(!n.startsWith(t))return n;n=n.replace(new RegExp(t,"g"),"")}return n=n.replace(new RegExp(`${r.gR[r.Qm.AT]}`,"g"),r.e0[r.gR[r.Qm.AT]]).replace(new RegExp(`${r.gR[r.Qm.SLASH]}`,"g"),r.e0[r.gR[r.Qm.SLASH]]).replace(new RegExp(`${r.gR[r.Qm.HYPHEN]}`,"g"),r.e0[r.gR[r.Qm.HYPHEN]]),o&&(n=n.replace(".js","")),n}catch(e){throw e}};function a(e,t){if("getPublicPath"in e){let o;return o=e.getPublicPath.startsWith("function")?new Function("return "+e.getPublicPath)()():new Function(e.getPublicPath)(),`${o}${t}`}return"publicPath"in e?(0,n.OL)()||(0,n.MC)()||!("ssrPublicPath"in e)||"string"!=typeof e.ssrPublicPath?`${e.publicPath}${t}`:`${e.ssrPublicPath}${t}`:(console.warn("Cannot get resource URL. If in debug mode, please ignore.",e,t),"")}const c=e=>{console.warn(`[ Federation Runtime ]: ${e}`)};function l(e){try{return JSON.stringify(e,null,2)}catch(e){return""}}},365(e,t,o){}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var o=i[e]={id:e,exports:{}},r={id:e,module:o,factory:n[e],require:s};return s.i.forEach((function(e){e(r)})),o=r.module,r.factory.call(o.exports,o,o.exports,r.require),o.exports}s.m=n,s.c=i,s.i=[],s.x=e=>{},s.federation||(s.federation={initOptions:{name:"Appshell",remotes:[],shareStrategy:"version-first"},chunkMatcher:function(e){return 488!=e},rootOutputDir:"",bundlerRuntimeOptions:{remotes:{remoteInfos:{},webpackRequire:s,idToRemoteMap:{},chunkMapping:{},idToExternalAndNameMapping:{}}}},s.consumesLoadingData={},s.remotesLoadingData={}),s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,o)=>(s.f[o](e,t),t)),[])),s.u=e=>e+".js",s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="appshell-react-shell:",s.l=(o,r,n,i)=>{if(e[o])e[o].push(r);else{var a,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),h=0;h<l.length;h++){var u=l[h];if(u.getAttribute("src")==o||u.getAttribute("data-webpack")==t+n){a=u;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",t+n),a.src=o),e[o]=[r];var d=(t,r)=>{a.onerror=a.onload=null,clearTimeout(m);var n=e[o];if(delete e[o],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach((e=>e(r))),t)return t(r)},m=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),c&&document.head.appendChild(a)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{s.S={};var e={},t={};s.I=(o,r)=>{r||(r=[]);var n=t[o];if(n||(n=t[o]={}),!(r.indexOf(n)>=0)){if(r.push(n),e[o])return e[o];s.o(s.S,o)||(s.S[o]={});var i=s.S[o],a="appshell-react-shell",c=(e,t,o,r)=>{var n=i[e]=i[e]||{},s=n[t];(!s||!s.loaded&&(!r!=!s.eager?r:a>s.from))&&(n[t]={get:o,from:a,eager:!!r})},l=[];return"default"===o&&(c("@appshell/runtime","1.0.0-alpha.23",(()=>s.e(877).then((()=>()=>s(877))))),c("react-dom","18.2.0",(()=>Promise.all([s.e(144),s.e(488)]).then((()=>()=>s(144))))),c("react","18.2.0",(()=>s.e(41).then((()=>()=>s(41)))))),e[o]=l.length?Promise.all(l).then((()=>e[o]=1)):1}}})(),(()=>{s.federation.initOptions.shared={"@appshell/runtime":[{version:"1.0.0-alpha.23",get:()=>s.e(877).then((()=>()=>s(877))),scope:["default"],shareConfig:{eager:!1,singleton:!0,layer:null}}],"react-dom":[{version:"18.2.0",get:()=>Promise.all([s.e(144),s.e(488)]).then((()=>()=>s(144))),scope:["default"],shareConfig:{eager:!1,requiredVersion:"18.2.0",singleton:!0,layer:null}}],react:[{version:"18.2.0",get:()=>s.e(41).then((()=>()=>s(41))),scope:["default"],shareConfig:{eager:!1,requiredVersion:"18.2.0",singleton:!0,layer:null}}]},s.S={};var e={},t={};s.I=(o,r)=>s.federation.bundlerRuntime.I({shareScopeName:o,webpackRequire:s,initPromises:e,initTokens:t,initScope:r})})(),(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var r=o.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=o[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})(),(()=>{var e={};s.consumesLoadingData.moduleIdToConsumeDataMapping={488:{fallback:()=>s.e(41).then((()=>()=>s(41))),shareScope:["default"],singleton:!0,requiredVersion:"18.2.0",strictVersion:!1,eager:!1,layer:void 0,shareKey:"react"},202:{fallback:()=>s.e(877).then((()=>()=>s(877))),shareScope:["default"],singleton:!0,requiredVersion:"^1.0.0-alpha.23",strictVersion:!1,eager:!1,layer:void 0,shareKey:"@appshell/runtime"},536:{fallback:()=>s.e(144).then((()=>()=>s(144))),shareScope:["default"],singleton:!0,requiredVersion:"18.2.0",strictVersion:!1,eager:!1,layer:void 0,shareKey:"react-dom"}};var t={};s.consumesLoadingData.chunkMapping={488:[488],510:[202,536]},s.f.consumes=(o,r)=>{s.federation.bundlerRuntime.consumes({chunkMapping:s.consumesLoadingData.chunkMapping,installedModules:e,chunkId:o,moduleToHandlerMapping:t,promises:r,webpackRequire:s})}})(),o=s.x,r=!1,s.x=()=>{if(r||(r=!0,s(996)),"function"==typeof o)return o();console.warn("[Module Federation] prevStartup is not a function, skipping startup execution")},(()=>{var e={792:0};s.f.j=(t,o)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else if(488!=t){var n=new Promise(((o,n)=>r=e[t]=[o,n]));o.push(r[2]=n);var i=s.p+s.u(t),a=new Error;s.l(i,(o=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var n=o&&("load"===o.type?"missing":o.type),i=o&&o.target&&o.target.src;a.message="Loading chunk "+t+" failed.\n("+n+": "+i+")",a.name="ChunkLoadError",a.type=n,a.request=i,r[1](a)}}),"chunk-"+t,t)}else e[t]=0};var t=(t,o)=>{var r,n,[i,a,c]=o,l=0;if(i.some((t=>0!==e[t]))){for(r in a)s.o(a,r)&&(s.m[r]=a[r]);c&&c(s)}for(t&&t(o);l<i.length;l++)n=i[l],s.o(e,n)&&e[n]&&e[n][0](),e[n]=0},o=globalThis.webpackChunkappshell_react_shell=globalThis.webpackChunkappshell_react_shell||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),s.nc=void 0,s.x(),s(418)})();
|
|
1
|
+
(()=>{"use strict";var e,t,o,r,n={418(e,t,o){const r=()=>{};(Object.getOwnPropertyDescriptor(r,"name")||{}).writable||Object.defineProperty(r,"name",{value:"default",configurable:!0}),Promise.all([o.e(488),o.e(630)]).then(o.bind(o,630))},996(e,t,o){function r(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}const n=["script"];function i(e){const{webpackRequire:t,moduleToHandlerMapping:o}=e,{consumesLoadingData:r,initializeSharingData:n}=t,{sharedFallback:i,bundlerRuntime:s,libraryType:a}=t.federation;if(r&&!r._updated){const{moduleIdToConsumeDataMapping:n={},initialConsumes:c=[],chunkMapping:l={}}=r;if(Object.entries(n).forEach((([e,r])=>{o[e]||(o[e]={getter:i?s?.getSharedFallbackGetter({shareKey:r.shareKey,factory:r.fallback,webpackRequire:t,libraryType:a}):r.fallback,treeShakingGetter:i?r.fallback:void 0,shareInfo:{shareConfig:{requiredVersion:r.requiredVersion,strictVersion:r.strictVersion,singleton:r.singleton,eager:r.eager,layer:r.layer},scope:Array.isArray(r.shareScope)?r.shareScope:[r.shareScope||"default"],treeShaking:i?{get:r.fallback,mode:r.treeShakingMode}:void 0},shareKey:r.shareKey})})),"initialConsumes"in e){const{initialConsumes:t=[]}=e;c.forEach((e=>{t.includes(e)||t.push(e)}))}if("chunkMapping"in e){const{chunkMapping:t={}}=e;Object.entries(l).forEach((([e,o])=>{t[e]||(t[e]=[]),o.forEach((o=>{t[e].includes(o)||t[e].push(o)}))}))}r._updated=1}if(n&&!n._updated){const{federation:e}=t;if(!e.instance||!n.scopeToSharingDataMapping)return;const o={};for(let[e,t]of Object.entries(n.scopeToSharingDataMapping))for(let r of t)if("object"==typeof r&&null!==r){const{name:t,version:n,factory:i,eager:s,singleton:a,requiredVersion:c,strictVersion:l}=r,h={requiredVersion:`^${n}`},u=function(e){return void 0!==e};u(a)&&(h.singleton=a),u(c)&&(h.requiredVersion=c),u(s)&&(h.eager=s),u(l)&&(h.strictVersion=l);const d={version:n,scope:[e],shareConfig:h,get:i};o[t]?o[t].push(d):o[t]=[d]}e.instance.registerShared(o),n._updated=1}}var s=o(378),a=o(151);function c(e,t){const o=e.federation.usedExports;if(o)return o[t]}const l="RUNTIME-012";var h=o(650),u=o(370),d=o(655);const m={global:{...d._$.global,getGlobalFederationInstance:u.u},share:d._$.share,utils:d._$.utils},f={remotes:function(e){!function(e){const{webpackRequire:t,idToExternalAndNameMapping:o={},idToRemoteMap:r={},chunkMapping:n={}}=e,{remotesLoadingData:i}=t,s=t.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!i||i._updated||!s)return;const{chunkMapping:a,moduleIdToRemoteDataMapping:c}=i;if(a&&c){for(let[e,t]of Object.entries(c))if(o[e]||(o[e]=[t.shareScope,t.name,t.externalModuleId]),!r[e]&&s[t.remoteName]){const o=s[t.remoteName];r[e]||=[],o.forEach((t=>{r[e].includes(t)||r[e].push(t)}))}n&&Object.entries(a).forEach((([e,t])=>{n[e]||(n[e]=[]),t.forEach((t=>{n[e].includes(t)||n[e].push(t)}))})),i._updated=1}}(e);const{chunkId:t,promises:o,webpackRequire:i,chunkMapping:c,idToExternalAndNameMapping:l,idToRemoteMap:h}=e;r(i),i.o(c,t)&&c[t].forEach((e=>{let t=i.R;t||(t=[]);const r=l[e],c=h[e]||[];if(t.indexOf(r)>=0)return;if(t.push(r),r.p)return o.push(r.p);const u=t=>{t||(t=new Error("Container missing")),"string"==typeof t.message&&(t.message+=`\nwhile loading "${r[1]}" from ${r[2]}`),i.m[e]=()=>{throw t},r.p=0},d=(e,t,n,i,s,a)=>{try{const c=e(t,n);if(!c||!c.then)return s(c,i,a);{const e=c.then((e=>s(e,i)),u);if(!a)return e;o.push(r.p=e)}}catch(e){u(e)}};var m=(e,o,n)=>d(o.get,r[1],t,0,f,n),f=t=>{r.p=1,i.m[e]=e=>{e.exports=t()}};1===c.length&&n.includes(c[0].externalType)&&c[0].name?d((()=>{try{const e=(0,s.e4)(c[0].name,a.yq)+r[1].slice(1),t=i.federation.instance,o=()=>i.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy){const e=Array.isArray(r[0])?r[0]:[r[0]];return Promise.all(e.map((e=>t.sharedHandler.initializeSharing(e)))).then((()=>o()))}return o()}catch(e){u(e)}}),r[2],0,0,f,1):d(i,r[2],0,0,((e,t,o)=>e?d(i.I,r[0],0,e,m,o):u()),1)}))},consumes:function(e){i(e);const{chunkId:t,promises:o,installedModules:n,webpackRequire:s,chunkMapping:a,moduleToHandlerMapping:h}=e;r(s),s.o(a,t)&&a[t].forEach((e=>{if(s.o(n,e))return o.push(n[e]);const t=t=>{n[e]=0,s.m[e]=o=>{delete s.c[e];const r=t(),{shareInfo:n}=h[e];if(n?.shareConfig?.layer&&r&&"object"==typeof r)try{r.hasOwnProperty("layer")&&void 0!==r.layer||(r.layer=n.shareConfig.layer)}catch(e){}o.exports=r}},r=t=>{delete n[e],s.m[e]=o=>{throw delete s.c[e],t}};try{const i=s.federation.instance;if(!i)throw new Error("Federation instance not found!");const{shareKey:a,getter:u,shareInfo:d,treeShakingGetter:m}=h[e],f=c(s,a),p={...d};Array.isArray(p.scope)&&Array.isArray(p.scope[0])&&(p.scope=p.scope[0]),f&&(p.treeShaking={usedExports:f,useIn:[i.options.name]});const y=i.loadShare(a,{customShareInfo:p}).then((e=>{if(!1===e){if("function"!=typeof u)throw new Error(((e,t,o)=>{const r=[`${[t[e]]} #${e}`];return o&&r.push(`args: ${JSON.stringify(o)}`),r.push((e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`)(e)),r.join("\n")})(l,{[l]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:a}));return m?.()||u()}return e}));y.then?o.push(n[e]=y.then(t).catch(r)):t(y)}catch(e){r(e)}}))},I:function({shareScopeName:e,webpackRequire:t,initPromises:o,initTokens:i,initScope:s}){const a=Array.isArray(e)?e:[e];var c=[];return a.forEach((a=>{c.push(function(a){s||(s=[]);const c=t.federation.instance;var l=i[a];if(l||(l=i[a]={from:c.name}),s.indexOf(l)>=0)return;s.push(l);const h=o[a];if(h)return h;var u=o=>{var r=e=>{return t="Initialization of sharing external failed: "+e,"undefined"!=typeof console&&console.warn&&console.warn(t);var t};try{var n=t(o);if(!n)return;var i=o=>o&&o.init&&o.init(t.S[a],s,{shareScopeMap:t.S||{},shareScopeKeys:e});if(n.then)return d.push(n.then(i,r));var c=i(n);if(c&&"boolean"!=typeof c&&c.then)return d.push(c.catch(r))}catch(e){r(e)}};const d=c.initializeSharing(a,{strategy:c.options.shareStrategy,initScope:s,from:"build"});r(t);const m=t.federation.bundlerRuntimeOptions.remotes;return m&&Object.keys(m.idToRemoteMap).forEach((e=>{const t=m.idToRemoteMap[e],o=m.idToExternalAndNameMapping[e][2];if(t.length>1)u(o);else if(1===t.length){const e=t[0];n.includes(e.externalType)||u(o)}})),d.length?o[a]=Promise.all(d).then((()=>o[a]=!0)):o[a]=!0}(a))})),Promise.all(c).then((()=>!0))},S:{},installInitialConsumes:function(e){i(e);const{moduleToHandlerMapping:t,webpackRequire:o,installedModules:r,initialConsumes:n,asyncLoad:s}=e,a=[];n.forEach((e=>{a.push([e,()=>function(e){const{moduleId:t,moduleToHandlerMapping:o,webpackRequire:r,asyncLoad:n}=e,i=r.federation.instance;if(!i)throw new Error("Federation instance not found!");const{shareKey:s,shareInfo:a}=o[t];try{const e=c(r,s),t={...a};return e&&(t.treeShaking={usedExports:e,useIn:[i.options.name]}),n?i.loadShare(s,{customShareInfo:t}):i.loadShareSync(s,{customShareInfo:t})}catch(e){throw console.error('loadShareSync failed! The function should not be called unless you set "eager:true". If you do not set it, and encounter this issue, you can check whether an async boundary is implemented.'),console.error("The original error message is as follows: "),e}}({moduleId:e,moduleToHandlerMapping:t,webpackRequire:o,asyncLoad:s})])}));const l=(e,n)=>{o.m[e]=i=>{r[e]=0,delete o.c[e];const s=n();if("function"!=typeof s)throw new Error(`Shared module is not available for eager consumption: ${e}`);const a=s(),{shareInfo:c}=t[e];if(c?.shareConfig?.layer&&a&&"object"==typeof a)try{a.hasOwnProperty("layer")&&void 0!==a.layer||(a.layer=c.shareConfig.layer)}catch(e){}i.exports=a}};if(s)return Promise.all(a.map((async([e,t])=>{const o=await t();l(e,(()=>o))})));a.forEach((([e,t])=>{l(e,t)}))},initContainerEntry:void 0,init:function({webpackRequire:e}){const{initOptions:t,runtime:r,sharedFallback:n,bundlerRuntime:i,libraryType:s}=e.federation;if(!t)throw new Error("initOptions is required!");{const r=function(){return{name:"tree-shake-plugin",beforeInit(t){const{userOptions:r,origin:a,options:c}=t,l=r.version||c.version;if(!n)return t;const u=r.shared||{},d=[];Object.keys(u).forEach((t=>{(Array.isArray(u[t])?u[t]:[u[t]]).forEach((o=>{d.push([t,o]),"get"in o&&(o.treeShaking||={},o.treeShaking.get=o.get,o.get=i.getSharedFallbackGetter({shareKey:t,factory:o.get,webpackRequire:e,libraryType:s,version:o.version}))}))}));const f=m.global.getGlobalSnapshotInfoByModuleInfo({name:a.name,version:l});return f&&"shared"in f?(Object.keys(c.shared||{}).forEach((e=>{c.shared[e].forEach((t=>{d.push([e,t])}))})),d.forEach((([e,t])=>{((e,t)=>{const r=f.shared.find((t=>t.sharedName===e));if(!r)return;const{treeShaking:n}=t;if(!n)return;const{secondarySharedTreeShakingName:i,secondarySharedTreeShakingEntry:c,treeShakingStatus:l}=r;n.status!==l&&(n.status=l,c&&s&&i&&(n.get=async()=>{const e=await(0,h.getRemoteEntry)({origin:a,remoteInfo:{name:i,entry:c,type:s,entryGlobalName:i,shareScope:"default"}});return await e.init(a,o.federation.bundlerRuntime),e.get()}))})(e,t)})),t):t}}};t.plugins||=[],t.plugins.push(r())}return r.init(t)},getSharedFallbackGetter:({shareKey:e,factory:t,version:o,webpackRequire:r,libraryType:n="global"})=>{const{runtime:i,instance:s,bundlerRuntime:a,sharedFallback:c}=r.federation;if(!c)return t;const l=c[e];if(!l)return t;const h=o?l.find((e=>e[1]===o)):l[0];if(!h)throw new Error(`No fallback item found for shareKey: ${e} and version: ${o}`);return()=>i.getRemoteEntry({origin:r.federation.instance,remoteInfo:{name:h[2],entry:`${r.p}${h[0]}`,type:n,entryGlobalName:h[2],shareScope:"default"}}).then((t=>{if(!t)throw new Error(`Failed to load fallback entry for shareKey: ${e} and version: ${o}`);return t.init(r.federation.instance,a).then((()=>t.get()))}))}},p={runtime:h,instance:void 0,initOptions:void 0,bundlerRuntime:f,attachShareScopeMap:r,bundlerRuntimeOptions:{}};if(!o.federation.runtime||!o.federation.bundlerRuntime){var y=o.federation;for(var g in o.federation={},p)o.federation[g]=p[g];for(var g in y)o.federation[g]=y[g]}o.federation.instance||(o.federation.instance=o.federation.bundlerRuntime.init({webpackRequire:o}),o.federation.attachShareScopeMap&&o.federation.attachShareScopeMap(o),o.federation.installInitialConsumes&&o.federation.installInitialConsumes())},10(e,t,o){o.d(t,{UJ:()=>n});var r=o(904);const n={[r.Fj]:"Failed to get remoteEntry exports.",[r.MC]:'The remote entry interface does not contain "init"',[r.F0]:"Failed to get manifest.",[r.MR]:"Failed to locate remote.",[r.Fd]:"Invalid loadShareSync function call from bundler runtime",[r.yB]:"Invalid loadShareSync function call from runtime",[r.Tz]:"Failed to get remote snapshot.",[r.ML]:"Failed to load script resources.",[r.F9]:"Please call createInstance first.",[r.n3]:'The name option cannot be changed after initialization. If you want to create a new instance with a different name, please use "createInstance" api.',[r.uF]:"The remoteEntry URL is missing from the remote snapshot.",[r.Bh]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.',[r.u0]:"The manifest is not a valid Module Federation manifest.",[r.BC]:"The remote does not expose the requested module.",[r.uz]:"Remote container initialization failed."};r.Zs,r.fK,r.AI},904(e,t,o){o.d(t,{AI:()=>b,BC:()=>y,Bh:()=>f,F0:()=>i,F9:()=>u,Fd:()=>a,Fj:()=>r,MC:()=>n,ML:()=>h,MR:()=>s,Tz:()=>l,Zs:()=>E,fK:()=>S,n3:()=>d,u0:()=>p,uF:()=>m,uz:()=>g,yB:()=>c});const r="RUNTIME-001",n="RUNTIME-002",i="RUNTIME-003",s="RUNTIME-004",a="RUNTIME-005",c="RUNTIME-006",l="RUNTIME-007",h="RUNTIME-008",u="RUNTIME-009",d="RUNTIME-010",m="RUNTIME-011",f="RUNTIME-012",p="RUNTIME-013",y="RUNTIME-014",g="RUNTIME-015",E="TYPE-001",S="BUILD-001",b="BUILD-002"},843(){},655(e,t,o){o.d(t,{hS:()=>I,nV:()=>Qt,gP:()=>zt,vA:()=>d,Bf:()=>T,fE:()=>yt,pW:()=>gt,_$:()=>Yt,k0:()=>Ze,oe:()=>ot,RY:()=>D,rc:()=>O,C3:()=>A});var r=o(848);const n="[ Module Federation ]",i=console,s=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];var a=class{constructor(e,t=i){this.prefix=e,this.delegate=t??i}setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=e??i}emit(e,t){const o=this.delegate,n=(0,r.Bb)()?function(){try{const e=(new Error).stack;if(!e)return;const[,...t]=e.split("\n"),o=t.filter((e=>!s.some((t=>e.includes(t)))));if(!o.length)return;return`Stack trace:\n${o.slice(0,5).join("\n")}`}catch{return}}():void 0,a=n?[...t,n]:t,c=(()=>{switch(e){case"log":return["log","info"];case"info":return["info","log"];case"warn":return["warn","info","log"];case"error":return["error","warn","log"];default:return["debug","log"]}})();for(const e of c){const t=o[e];if("function"==typeof t)return void t.call(o,this.prefix,...a)}for(const e of c){const t=i[e];if("function"==typeof t)return void t.call(i,this.prefix,...a)}}log(...e){this.emit("log",e)}warn(...e){this.emit("warn",e)}error(...e){this.emit("error",e)}success(...e){this.emit("info",e)}info(...e){this.emit("info",e)}ready(...e){this.emit("info",e)}debug(...e){(0,r.Bb)()&&this.emit("debug",e)}};function c(e){return new a(e)}c(n),function(e){const t=new a(e);Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1})}(n);const l=(e,t,o,r)=>{const n=[`${[t[e]]} #${e}`];return o&&n.push(`args: ${JSON.stringify(o)}`),n.push((e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`)(e)),r&&n.push(`Original Error Message:\n ${r}`),n.join("\n")},h="[ Federation Runtime ]",u=c(h);function d(e,t,o,r,n){e||(void 0!==o?m(t,o,r,void 0):m(t))}function m(e,t,o,r,n){if(void 0!==t)return function(e,t,o,r,n){return(e=>{throw new Error(`${h}: ${e}`)})(l(e,t,o,n))}(e,t,o??{},0,r);const i=e;if(i instanceof Error)throw i.message.startsWith(h)||(i.message=`${h}: ${i.message}`),i;throw new Error(`${h}: ${i}`)}function f(e){e instanceof Error?(e.message.startsWith(h)||(e.message=`${h}: ${e.message}`),u.warn(e)):u.warn(e)}function p(e){return"version"in e&&e.version?`${e.name}:${e.version}`:"entry"in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`}function y(e){return void 0!==e.entry}function g(e){return!e.entry.includes(".json")}function E(e){return e&&"object"==typeof e}const S=Object.prototype.toString;function b(e){return Array.isArray(e)?e:[e]}function _(e){const t={url:"",type:"global",globalName:""};return r.Hq||(0,r.MC)()||!("ssrRemoteEntry"in e)?"remoteEntry"in e?{url:e.remoteEntry,type:e.remoteEntryType,globalName:e.globalName}:t:"ssrRemoteEntry"in e?{url:e.ssrRemoteEntry||t.url,type:e.ssrRemoteEntryType||t.type,globalName:e.globalName}:t}const I="object"==typeof globalThis?globalThis:window,w=(()=>{try{return document.defaultView}catch{return I}})(),v=w;function k(e,t,o){Object.defineProperty(e,t,{value:o,configurable:!1,writable:!0})}function R(e,t){return Object.hasOwnProperty.call(e,t)}R(I,"__GLOBAL_LOADING_REMOTE_ENTRY__")||k(I,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});const N=I.__GLOBAL_LOADING_REMOTE_ENTRY__;function $(e){R(e,"__VMOK__")&&!R(e,"__FEDERATION__")&&k(e,"__FEDERATION__",e.__VMOK__),R(e,"__FEDERATION__")||(k(e,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),k(e,"__VMOK__",e.__FEDERATION__)),e.__FEDERATION__.__GLOBAL_PLUGIN__??=[],e.__FEDERATION__.__INSTANCES__??=[],e.__FEDERATION__.moduleInfo??={},e.__FEDERATION__.__SHARE__??={},e.__FEDERATION__.__MANIFEST_LOADING__??={},e.__FEDERATION__.__PRELOADED_MAP__??=new Map}function A(e){I.__FEDERATION__.__INSTANCES__.push(e)}function T(){return I.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function O(e,t=(0,r.Bb)()){t&&(I.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,I.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="2.8.2")}function M(e,t){if("string"==typeof t){if(e[t])return{value:e[t],key:t};{const o=Object.keys(e);for(const r of o){const[o,n]=r.split(":"),i=`${o}:${t}`,s=e[i];if(s)return{value:s,key:i}}return{value:void 0,key:t}}}m(`getInfoWithoutType: "key" must be a string, got ${typeof t} (${JSON.stringify(t)}).`)}$(I),$(w);const x=()=>w.__FEDERATION__.moduleInfo,L=(e,t)=>{const o=M(t,p(e)).value;if(o&&!o.version&&"version"in e&&e.version&&(o.version=e.version),o)return o;if("version"in e&&e.version){const{version:t,...o}=e,r=p(o),n=M(w.__FEDERATION__.moduleInfo,r).value;if(n?.version===t)return n}},C=e=>L(e,w.__FEDERATION__.moduleInfo),P=(e,t)=>{const o=p(e);return w.__FEDERATION__.moduleInfo[o]=t,w.__FEDERATION__.moduleInfo},F=e=>(w.__FEDERATION__.moduleInfo={...w.__FEDERATION__.moduleInfo,...e},()=>{const t=Object.keys(e);for(const e of t)delete w.__FEDERATION__.moduleInfo[e]}),H=(e,t)=>{const o=t||`__FEDERATION_${e}:custom__`;return{remoteEntryKey:o,entryExports:I[o]}},D=e=>{const{__GLOBAL_PLUGIN__:t}=w.__FEDERATION__;e.forEach((e=>{-1===t.findIndex((t=>t.name===e.name))?t.push(e):f(`The plugin ${e.name} has been registered.`)}))},j=()=>w.__FEDERATION__.__GLOBAL_PLUGIN__,U=e=>I.__FEDERATION__.__PRELOADED_MAP__.get(e),G=e=>I.__FEDERATION__.__PRELOADED_MAP__.set(e,!0),q="default",B="global",V="[0-9A-Za-z-]+",W=`(?:\\+(${V}(?:\\.${V})*))`,K="0|[1-9]\\d*",J="[0-9]+",z="\\d*[a-zA-Z-][a-zA-Z0-9-]*",Y=`(?:${J}|${z})`,Q=`(?:${K}|${z})`,Z=`(?:-(${Q}(?:\\.${Q})*))`,X=`${K}|x|X|\\*`,ee=`[v=\\s]*(${X})(?:\\.(${X})(?:\\.(${X})(?:${Z})?${W}?)?)?`,te=`^\\s*(${ee})\\s+-\\s+(${ee})\\s*$`,oe="((?:<|>)?=?)",re=`(\\s*)${oe}\\s*([v=\\s]*(${J})\\.(${J})\\.(${J})(?:-?(${Y}(?:\\.${Y})*))?${W}?|${ee})`,ne="(?:~>?)",ie=`(\\s*)${ne}\\s+`,se="(?:\\^)",ae=`(\\s*)${se}\\s+`,ce=`^${se}${ee}$`,le=`^${ne}${ee}$`,he=`^${oe}\\s*${ee}$`,ue=`^${oe}\\s*(v?(${K})\\.(${K})\\.(${K})${Z}?${W}?)$|^$`;function de(e){return new RegExp(e)}function me(e){return!e||"x"===e.toLowerCase()||"*"===e}function fe(...e){return t=>e.reduce(((e,t)=>t(e)),t)}function pe(e){return e.match(de(ue))}function ye(e,t,o,r){const n=`${e}.${t}.${o}`;return r?`${n}-${r}`:n}function ge(e){return e.replace(de(te),((e,t,o,r,n,i,s,a,c,l,h,u)=>`${t=me(o)?"":me(r)?`>=${o}.0.0`:me(n)?`>=${o}.${r}.0`:`>=${t}`} ${a=me(c)?"":me(l)?`<${Number(c)+1}.0.0-0`:me(h)?`<${c}.${Number(l)+1}.0-0`:u?`<=${c}.${l}.${h}-${u}`:`<=${a}`}`.trim()))}function Ee(e){return e.replace(de(re),"$1$2$3")}function Se(e){return e.replace(de(ie),"$1~")}function be(e){return e.replace(de(ae),"$1^")}function _e(e){return e.trim().split(/\s+/).map((e=>e.replace(de(ce),((e,t,o,r,n)=>me(t)?"":me(o)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:me(r)?"0"===t?`>=${t}.${o}.0 <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.0 <${Number(t)+1}.0.0-0`:n?"0"===t?"0"===o?`>=${t}.${o}.${r}-${n} <${t}.${o}.${Number(r)+1}-0`:`>=${t}.${o}.${r}-${n} <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.${r}-${n} <${Number(t)+1}.0.0-0`:"0"===t?"0"===o?`>=${t}.${o}.${r} <${t}.${o}.${Number(r)+1}-0`:`>=${t}.${o}.${r} <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.${r} <${Number(t)+1}.0.0-0`)))).join(" ")}function Ie(e){return e.trim().split(/\s+/).map((e=>e.replace(de(le),((e,t,o,r,n)=>me(t)?"":me(o)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:me(r)?`>=${t}.${o}.0 <${t}.${Number(o)+1}.0-0`:n?`>=${t}.${o}.${r}-${n} <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.${r} <${t}.${Number(o)+1}.0-0`)))).join(" ")}function we(e){return e.split(/\s+/).map((e=>e.trim().replace(de(he),((e,t,o,r,n,i)=>{const s=me(o),a=s||me(r),c=a||me(n);return"="===t&&c&&(t=""),i="",s?">"===t||"<"===t?"<0.0.0-0":"*":t&&c?(a&&(r=0),n=0,">"===t?(t=">=",a?(o=Number(o)+1,r=0,n=0):(r=Number(r)+1,n=0)):"<="===t&&(t="<",a?o=Number(o)+1:r=Number(r)+1),"<"===t&&(i="-0"),`${t+o}.${r}.${n}${i}`):a?`>=${o}.0.0${i} <${Number(o)+1}.0.0-0`:c?`>=${o}.${r}.0${i} <${o}.${Number(r)+1}.0-0`:e})))).join(" ")}function ve(e){return e.trim().replace(de("(<|>)?=?\\s*\\*"),"")}function ke(e,t){return(e=Number(e)||e)>(t=Number(t)||t)?1:e===t?0:-1}function Re(e,t){return ke(e.major,t.major)||ke(e.minor,t.minor)||ke(e.patch,t.patch)||function(e,t){const{preRelease:o}=e,{preRelease:r}=t;if(void 0===o&&Boolean(r))return 1;if(Boolean(o)&&void 0===r)return-1;if(void 0===o&&void 0===r)return 0;for(let e=0,t=o.length;e<=t;e++){const t=o[e],n=r[e];if(t!==n)return void 0===t&&void 0===n?0:t?n?ke(t,n):-1:1}return 0}(e,t)}function Ne(e,t){return e.version===t.version}function $e(e,t){switch(e.operator){case"":case"=":return Ne(e,t);case">":return Re(e,t)<0;case">=":return Ne(e,t)||Re(e,t)<0;case"<":return Re(e,t)>0;case"<=":return Ne(e,t)||Re(e,t)>0;case void 0:return!0;default:return!1}}function Ae(e){return fe(_e,Ie,we,ve)(e)}function Te(e){return fe(ge,Ee,Se,be)(e.trim()).split(/\s+/).join(" ")}function Oe(e,t){if(!e)return!1;const o=pe(e);if(!o)return!1;const[,r,,n,i,s,a]=o,c={operator:r,version:ye(n,i,s,a),major:n,minor:i,patch:s,preRelease:a?.split(".")},l=t.split("||");for(const e of l){const t=e.trim();if(!t)return!0;if("*"===t||"x"===t)return!0;try{const e=Te(t);if(!e.trim())return!0;const o=e.split(" ").map((e=>Ae(e))).join(" ");if(!o.trim())return!0;const r=o.split(/\s+/).map((e=>e.trim().replace(de("^\\s*>=\\s*0.0.0\\s*$"),""))).filter(Boolean);if(0===r.length)continue;let n=!0;for(const e of r){const t=pe(e);if(!t){n=!1;break}const[,o,,r,i,s,a]=t;if(!$e({operator:o,version:ye(r,i,s,a),major:r,minor:i,patch:s,preRelease:a?.split(".")},c)){n=!1;break}}if(n)return!0}catch(e){console.error(`[semver] Error processing range part "${t}":`,e);continue}}return!1}var Me=o(151);function xe(e,t){const o=t.shared||{},r=t.name,n=Object.keys(o).reduce(((e,n)=>{const i=b(o[n]);return e[n]=e[n]||[],i.forEach((o=>{e[n].push(function(e,t,o,r){let n;return n="get"in e?e.get:"lib"in e?()=>Promise.resolve(e.lib):()=>Promise.resolve((()=>{m(`Cannot get shared "${o}" from "${t}": neither "get" nor "lib" is provided in the share config.`)})),e.shareConfig?.eager&&e.treeShaking?.mode&&m(`Invalid shared config for "${o}" from "${t}": cannot use both "eager: true" and "treeShaking.mode" simultaneously. Choose one strategy.`),{deps:[],useIn:[],from:t,loading:null,...e,shareConfig:{requiredVersion:`^${e.version}`,singleton:!1,eager:!1,strictVersion:!1,...e.shareConfig},get:n,loaded:!(!e?.loaded&&!("lib"in e))||void 0,version:e.version??"0",scope:Array.isArray(e.scope)?e.scope:[e.scope??"default"],strategy:(e.strategy??r)||"version-first",treeShaking:e.treeShaking?{...e.treeShaking,mode:e.treeShaking.mode??"server-calc",status:e.treeShaking.status??Me.gF.UNKNOWN,useIn:[]}:void 0}}(o,r,n,t.shareStrategy))})),e}),{}),i={...e.shared};return Object.keys(n).forEach((e=>{i[e]?n[e].forEach((t=>{i[e].find((e=>e.version===t.version))||i[e].push(t)})):i[e]=n[e]})),{allShareInfos:i,newShareInfos:n}}function Le(e,t){if(!e)return!1;const{status:o,mode:r}=e;return o!==Me.gF.NO_USE&&(o===Me.gF.CALCULATED||"runtime-infer"===r&&(!t||He(e,t)))}function Ce(e,t){const o=e=>{if(!Number.isNaN(Number(e))){const t=e.split(".");let o=e;for(let e=0;e<3-t.length;e++)o+=".0";return o}return e};return!!Oe(o(e),`<=${o(t)}`)}const Pe=(e,t)=>{const o=t||function(e,t){return Ce(e,t)};return Object.keys(e).reduce(((e,t)=>e?o(e,t)||"0"===e?t:e:t),0)},Fe=e=>Boolean(e.loaded)||"function"==typeof e.lib,He=(e,t)=>{if(!e||!t)return!1;const{usedExports:o}=e;return!!o&&!!t.every((e=>o.includes(e)))};function De(e,t,o,r){const n=e[t][o];let i="",s=Le(r);const a=function(e,t){return s?!n[e].treeShaking||!!n[t].treeShaking&&!Fe(n[e].treeShaking)&&Ce(e,t):!Fe(n[e])&&Ce(e,t)};if(s){if(i=Pe(e[t][o],a),i)return{version:i,useTreesShaking:s};s=!1}return{version:Pe(e[t][o],a),useTreesShaking:s}}const je=e=>Fe(e)||(e=>Boolean(e.loading))(e);function Ue(e,t,o,r){const n=e[t][o];let i="",s=Le(r);const a=function(e,t){if(s){if(!n[e].treeShaking)return!0;if(!n[t].treeShaking)return!1;if(je(n[t].treeShaking))return!je(n[e].treeShaking)||Boolean(Ce(e,t));if(je(n[e].treeShaking))return!1}return je(n[t])?!je(n[e])||Boolean(Ce(e,t)):!je(n[e])&&Ce(e,t)};if(s){if(i=Pe(e[t][o],a),i)return{version:i,useTreesShaking:s};s=!1}return{version:Pe(e[t][o],a),useTreesShaking:s}}function Ge(e){return"loaded-first"===e?Ue:De}function qe(e,t,o,r){if(!e)return;const{shareConfig:n,scope:i=q,strategy:s,treeShaking:a}=o,c=Array.isArray(i)?i:[i];for(const i of c)if(n&&e[i]&&e[i][t]){const{requiredVersion:c}=n,{version:l,useTreesShaking:h}=Ge(s)(e,i,t,a),u=()=>{const r=e[i][t][l];if(n.singleton){if("string"==typeof c&&!Oe(l,c)){const e=`Version ${l} from ${l&&r.from} of shared singleton module ${t} does not satisfy the requirement of ${o.from} which needs ${c})`;n.strictVersion?m(e):f(e)}return{shared:r,useTreesShaking:h}}{if(!1===c||"*"===c)return{shared:r,useTreesShaking:h};if(Oe(l,c))return{shared:r,useTreesShaking:h};const o=Le(a);if(o)for(const[r,n]of Object.entries(e[i][t]))if(Le(n.treeShaking,a?.usedExports)&&Oe(r,c))return{shared:n,useTreesShaking:o};for(const[o,r]of Object.entries(e[i][t]))if(Oe(o,c))return{shared:r,useTreesShaking:!1}}},d={shareScopeMap:e,scope:i,pkgName:t,version:l,GlobalFederation:v.__FEDERATION__,shareInfo:o,resolver:u};return(r.emit(d)||d).resolver()}}function Be(){return v.__FEDERATION__.__SHARE__}function Ve(e){const{pkgName:t,extraOptions:o,shareInfos:r}=e,n=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),i=(...e)=>{const t={};for(const o of e)if(o)for(const[e,r]of Object.entries(o)){const o=t[e];n(o)&&n(r)?t[e]=i(o,r):void 0!==r&&(t[e]=r)}return t};return i((o?.resolver??(e=>{if(!e)return;const t={};return e.forEach((e=>{t[e.version]=e})),t[Pe(t,(function(e,o){return!Fe(t[e])&&Ce(e,o)}))]}))(r[t]),o?.customShareInfo)}const We=(e,t)=>{var o,r;e.useIn||(e.useIn=[]),o=e.useIn,r=t,-1===o.findIndex((e=>e===r))&&o.push(r)};function Ke(e,t){return t&&e.treeShaking?e.treeShaking:e}var Je=o(378);async function ze(e,t){try{return await e()}catch(e){return void(!t&&(0,Je.R8)(e))}}function Ye(e,t){const o=/^(https?:)?\/\//i;return e.replace(o,"").replace(/\/$/,"")===t.replace(o,"").replace(/\/$/,"")}function Qe(e){let t,o=null,r=!0,n=2e4;const i=document.getElementsByTagName("script");for(let t=0;t<i.length;t++){const n=i[t],s=n.getAttribute("src");if(s&&Ye(s,e.url)){o=n,r=!1;break}}if(!o){const t=e.attrs;let r;o=document.createElement("script"),o.type="module"===t?.type?"module":"text/javascript",e.createScriptHook&&(r=e.createScriptHook(e.url,e.attrs),r instanceof HTMLScriptElement?o=r:"object"==typeof r&&("script"in r&&r.script&&(o=r.script),"timeout"in r&&r.timeout&&(n=r.timeout))),o.src||(o.src=e.url),t&&!r&&Object.keys(t).forEach((e=>{o&&("async"===e||"defer"===e?o[e]=t[e]:o.getAttribute(e)||o.setAttribute(e,t[e]))}))}let s=null;const a="undefined"!=typeof window?t=>{if(t.filename&&Ye(t.filename,e.url)){const o=new Error(`ScriptExecutionError: Script "${e.url}" loaded but threw a runtime error during execution: ${t.message} (${t.filename}:${t.lineno}:${t.colno})`);o.name="ScriptExecutionError",s=o}}:null;a&&window.addEventListener("error",a);const c=async(r,n)=>{clearTimeout(t),a&&window.removeEventListener("error",a);const i=()=>{if("error"===n?.type){const t=new Error(n?.isTimeout?`ScriptNetworkError: Script "${e.url}" timed out.`:`ScriptNetworkError: Failed to load script "${e.url}" - the script URL is unreachable or the server returned an error (network failure, 404, CORS, etc.)`);t.name="ScriptNetworkError",e?.onErrorCallback&&e?.onErrorCallback(t)}else s?e?.onErrorCallback&&e?.onErrorCallback(s):e?.cb&&e?.cb()};if(o&&(o.onerror=null,o.onload=null,ze((()=>{const{needDeleteScript:t=!0}=e;t&&o?.parentNode&&o.parentNode.removeChild(o)})),r&&"function"==typeof r)){const e=r(n);if(e instanceof Promise){const t=await e;return i(),t}return i(),e}i()};return o.onerror=c.bind(null,o.onerror),o.onload=c.bind(null,o.onload),t=setTimeout((()=>{c(null,{type:"error",isTimeout:!0})}),n),{script:o,needAttach:r}}function Ze(e,t){const{attrs:o={},createScriptHook:r}=t;return new Promise(((t,n)=>{const{script:i,needAttach:s}=Qe({url:e,cb:t,onErrorCallback:n,attrs:{fetchpriority:"high",...o},createScriptHook:r,needDeleteScript:!0});s&&document.head.appendChild(i)}))}const Xe=new Map;function et(e){if(!e)throw new Error("import specifier is required");if(Xe.has(e))return Xe.get(e);const t=new Function("name","return import(name)")(e).then((e=>e)).catch((t=>{throw console.error(`Error importing module ${e}:`,t),Xe.delete(e),t}));return Xe.set(e,t),t}const tt="undefined"==typeof ENV_TARGET||"web"!==ENV_TARGET?(e,t,o,r)=>{if(r?.createScriptHook){const t=r.createScriptHook(e);t&&"object"==typeof t&&"url"in t&&(e=t.url)}let n;try{n=new URL(e)}catch(e){return console.error("Error constructing URL:",e),void t(new Error(`Invalid URL: ${e}`))}(async()=>r?.fetch?(e,t)=>(async(e,t,o)=>{const r=await((e,t)=>o.lifecycle.fetch.emit(e,t))(e,t||{});return r&&r instanceof Response?r:fetch(e,t||{})})(e,t,r):fetch)().then((async e=>{if("esm"===o?.type||"module"===o?.type)return at(n.href,{fetch:e,vm:await et("vm")}).then((async e=>{await e.evaluate(),t(void 0,e.namespace)})).catch((e=>{t(e instanceof Error?e:new Error(`Script execution error: ${e}`))}));(async(e,r)=>{try{const n=await e(r.href),i=await n.text(),[s,a]=await Promise.all([et("path"),et("vm")]),c={exports:{},module:{exports:{}}},l=r.pathname.split("/").slice(0,-1).join("/"),h=s.basename(r.pathname),u=new a.Script(`(function(exports, module, require, __dirname, __filename) {${i}\n})`,{filename:h,importModuleDynamically:a.constants?.USE_MAIN_CONTEXT_DEFAULT_LOADER??et});let d;d=(await et("node:module")).createRequire("file:"===r.protocol||"node:"===r.protocol?r.href:s.join(process.cwd(),"__mf_require_base__.js")),u.runInThisContext()(c.exports,c.module,d,l,h);const m=c.module.exports||c.exports;if(o&&m&&o.globalName)return void t(void 0,m[o.globalName]||m);t(void 0,m)}catch(e){t(e instanceof Error?e:new Error(`Script execution error: ${e}`))}})(e,n)})).catch((e=>{t(e)}))}:(e,t,o,r)=>{t(new Error("createScriptNode is disabled in non-Node.js environment"))},ot="undefined"==typeof ENV_TARGET||"web"!==ENV_TARGET?(e,t)=>new Promise(((o,r)=>{tt(e,((e,n)=>{e?r(e):o(globalThis[t?.attrs?.globalName||`__FEDERATION_${t?.attrs?.name}:custom__`]=n)}),t.attrs,t.loaderHook)})):(e,t)=>{throw new Error("loadScriptNode is disabled in non-Node.js environment")},rt=new Map,nt=e=>e.startsWith("http:")||e.startsWith("https:"),it=e=>!(e.startsWith("./")||e.startsWith("../")||e.startsWith("/")||e.includes(":"));async function st(e,t,o){if(await async function(e){return!!e.startsWith("node:")||!!it(e)&&(await et("node:module")).builtinModules.includes(e)}(e))return async function(e,t){const o=`node-builtin:${e}`;return rt.has(o)?rt.get(o):async function(e,t,o){if("function"!=typeof o.SyntheticModule)throw new Error("vm.SyntheticModule is required to load Node.js built-in modules in ESM remote entries.");const r=function(e){const t=!e||"object"!=typeof e&&"function"!=typeof e?{default:e}:e,o={...t};return Object.prototype.hasOwnProperty.call(o,"default")||(o.default=t),o}(t),n=Object.keys(r),i=new o.SyntheticModule(n,(function(){for(const e of n)this.setExport(e,r[e])}),{identifier:e});return rt.set(e,i),await i.link((async()=>{throw new Error(`Node.js built-in module "${e}" should not request child modules.`)})),await i.evaluate(),i}(o,await et(e),t)}(e,o.vm);if(it(e))throw new Error(`Unsupported ESM module specifier "${e}". Only relative or absolute http(s) remote modules and Node.js built-in modules are supported.`);const r=new URL(e,t).href;if(!nt(r))throw new Error(`Unsupported ESM module specifier "${e}" resolved to "${r}". Only http(s) remote modules and Node.js built-in modules are supported.`);return at(r,o)}async function at(e,t){if(rt.has(e))return rt.get(e);const{fetch:o,vm:r}=t;if(!nt(e))throw new Error(`Unsupported ESM module URL "${e}". Only http(s) remote modules and Node.js built-in modules are supported.`);const n=await(await o(e)).text(),i=(await et("node:url")).pathToFileURL(process.cwd()).href,s=new r.SourceTextModule(n,{identifier:e,initializeImportMeta:t=>{t.url=function(e,t){const o=t.endsWith("/")?t:`${t}/`;return new URL(`__module_federation_remote__${function(e){const t=new URL(e),o=encodeURIComponent(t.protocol.slice(0,-1)),r=encodeURIComponent(t.host),n=t.pathname.split("/").map((e=>encodeURIComponent(e))).join("/"),i=encodeURIComponent(`${t.search}${t.hash}`);return`/${o}/${r}${n}${i?`/${i}`:""}`}(e)}`,o).href}(e,i)},importModuleDynamically:async o=>async function(e){if("linked"===e.status&&await e.evaluate(),"errored"===e.status)throw e.error;return e}(await st(o,e,t))});return rt.set(e,s),await s.link((async o=>st(o,e,t))),s}var ct=o(904),lt=o(10);const ht=".then(callbacks[0]).catch(callbacks[1])",ut=["Failed to fetch dynamically imported module","Importing a module script failed","error loading dynamically imported module"];function dt(e){return"esm"===e||"module"===e}function mt(e,t,o){const{remoteEntryKey:r,entryExports:n}=H(e,t);return n||m(ct.Fj,lt.UJ,{remoteName:e,remoteEntryUrl:o,remoteEntryKey:r}),n}async function ft({remoteInfo:e,remoteEntryExports:t,loaderHook:o,getEntryUrl:r,resourceContext:n}){const{entry:i,entryGlobalName:s,name:a,type:c}=e;return dt(c)?async function({entry:e,remoteEntryExports:t,name:o,getEntryUrl:r}){return new Promise(((n,i)=>{const s=e=>{if((t=e)instanceof TypeError&&ut.some((e=>t.message.includes(e)))){const t=e instanceof Error?e.message:String(e);try{m(ct.ML,lt.UJ,{remoteName:o,resourceUrl:a},t)}catch(e){return void i(e)}}var t;i(e)},a=r?r(e):e;try{t?n(t):"undefined"!=typeof FEDERATION_ALLOW_NEW_FUNCTION?new Function("callbacks",`import("${a}")${ht}`)([n,s]):import(a).then(n).catch(s)}catch(e){m(`Failed to load ESM entry from "${a}". ${e instanceof Error?e.message:String(e)}`)}}))}({entry:i,remoteEntryExports:t,name:a,getEntryUrl:r}):"system"===c?async function({entry:e,remoteEntryExports:t}){return new Promise(((o,r)=>{try{t?o(t):new Function("callbacks",`System.import("${e}")${ht}`)([o,r])}catch(t){m(`Failed to load SystemJS entry from "${e}". ${t instanceof Error?t.message:String(t)}`)}}))}({entry:i,remoteEntryExports:t}):async function({name:e,globalName:t,entry:o,remoteInfo:r,loaderHook:n,getEntryUrl:i,resourceContext:s}){const{entryExports:a}=H(e,t);if(a)return a;const c=i?i(o):o;return Ze(c,{attrs:{},createScriptHook:(e,t)=>{const o=n.lifecycle.createScript.emit({url:e,attrs:t,remoteInfo:r,resourceContext:s?{...s,url:e}:void 0});if(o)return o instanceof HTMLScriptElement||"script"in o||"timeout"in o?o:void 0}}).then((()=>mt(e,t,o)),(t=>{const o=t instanceof Error?t.message:String(t);m(ct.ML,lt.UJ,{remoteName:e,resourceUrl:c},o)}))}({entry:i,globalName:s,name:a,remoteInfo:e,loaderHook:o,getEntryUrl:r,resourceContext:n})}function pt(e){const{entry:t,name:o}=e;return(0,Je.lG)(o,t)}async function yt(e){const{origin:t,remoteEntryExports:o,remoteInfo:n,getEntryUrl:i,resourceContext:s,_inErrorHandling:a=!1}=e,c=pt(n);if(o)return o;if(!N[c]){const e=t.remoteHandler.hooks.lifecycle.loadEntry,l=t.loaderHook;N[c]=e.emit({origin:t,loaderHook:l,remoteInfo:n,remoteEntryExports:o}).then((e=>e||(("undefined"!=typeof ENV_TARGET?"web"===ENV_TARGET:r.Hq)?ft({remoteInfo:n,remoteEntryExports:o,loaderHook:l,getEntryUrl:i,resourceContext:s}):async function({remoteInfo:e,loaderHook:t,resourceContext:o}){const{entry:r,entryGlobalName:n,name:i,type:s}=e,{entryExports:a}=H(i,n);return a||ot(r,{attrs:{name:i,globalName:n,type:s},loaderHook:{createScriptHook:(r,n={})=>{const i=t.lifecycle.createScript.emit({url:r,attrs:n,remoteInfo:e,resourceContext:o?{...o,url:r}:void 0});if(i)return"url"in i?i:void 0}}}).then((()=>mt(i,n,r))).catch((e=>{m(`Failed to load Node.js entry for remote "${i}" from "${r}". ${e instanceof Error?e.message:String(e)}`)}))}({remoteInfo:n,loaderHook:l,resourceContext:s})))).then((async e=>(await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:n,remoteEntryExports:e}),e))).catch((async e=>{const r=pt(n),i=e instanceof Error&&e.message.includes("ScriptExecutionError");if(e instanceof Error&&e.message.includes(ct.ML)&&!i&&!a){const e=e=>yt({...e,_inErrorHandling:!0}),i=await t.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:e,origin:t,remoteInfo:n,remoteEntryExports:o,globalLoading:N,uniqueKey:r});if(i)return await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:n,remoteEntryExports:i,recovered:!0}),i}throw await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:n,error:e}),e}))}return N[c]}function gt(e){return{...e,entry:"entry"in e?e.entry:"",type:e.type||B,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||q}}function Et(e,t){return t&&"."!==t?`${e}/${t.replace(/^\.\//,"")}`:e}function St(e,t){for(const o of e){const e=t.startsWith(o.name);let r=t.replace(o.name,"");if(e){if(r.startsWith("/"))return r=`.${r}`,{pkgNameOrAlias:o.name,expose:r,remote:o};if(""===r)return{pkgNameOrAlias:o.name,expose:".",remote:o}}const n=o.alias&&t.startsWith(o.alias);let i=o.alias&&t.replace(o.alias,"");if(o.alias&&n){if(i&&i.startsWith("/"))return i=`.${i}`,{pkgNameOrAlias:o.alias,expose:i,remote:o};if(""===i)return{pkgNameOrAlias:o.alias,expose:".",remote:o}}}}function bt(e){return{resourceCategory:"sync",share:!0,depsRemote:!0,...e}}function _t(e){return e instanceof Error&&(e.message.includes("timed out")||e.name.includes("Timeout"))}function It(e,t,o,r){return{url:t,status:o,resourceType:e.resourceType,initiator:e.initiator,id:e.id,error:r}}function wt({host:e,remoteInfo:t,url:o,attrs:r,context:n,needDeleteLink:i}){return new Promise((s=>{const{link:a,needAttach:c}=function(e){let t,o=null,r=!0,n=2e4;const i=document.getElementsByTagName("link");for(let t=0;t<i.length;t++){const n=i[t],s=n.getAttribute("href"),a=n.getAttribute("rel");if(s&&Ye(s,e.url)&&a===e.attrs.rel){o=n,r=!1;break}}if(!o){let t;o=document.createElement("link"),o.setAttribute("href",e.url);let r=!0;const i=e.attrs;e.createLinkHook&&(t=e.createLinkHook(e.url,i),t instanceof HTMLLinkElement?(o=t,r=!1):"object"==typeof t&&("link"in t&&t.link&&(o=t.link,r=!1),"timeout"in t&&t.timeout&&(n=t.timeout))),i&&r&&Object.keys(i).forEach((e=>{o&&!o.getAttribute(e)&&o.setAttribute(e,i[e])}))}if(!r)return Promise.resolve().then((()=>{e?.cb&&e?.cb()})),{link:o,needAttach:r};const s=(r,n)=>{t&&clearTimeout(t);const i=()=>{if("error"===n?.type){const t=new Error(n?.isTimeout?`LinkNetworkError: Link "${e.url}" timed out.`:`LinkNetworkError: Failed to load link "${e.url}" - the URL is unreachable or the server returned an error.`);t.name="LinkNetworkError",e?.onErrorCallback&&e?.onErrorCallback(t)}else e?.cb&&e?.cb()};if(o&&(o.onerror=null,o.onload=null,ze((()=>{const{needDeleteLink:t=!0}=e;t&&o?.parentNode&&o.parentNode.removeChild(o)})),r)){const e=r(n);return i(),e}i()};return o.onerror=s.bind(null,o.onerror),o.onload=s.bind(null,o.onload),t=setTimeout((()=>{s(null,{type:"error",isTimeout:!0})}),n),{link:o,needAttach:r}}({url:o,cb:()=>{s(It(n,o,c?"success":"cached"))},onErrorCallback:e=>{s(It(n,o,_t(e)?"timeout":"error",e))},attrs:r,createLinkHook:(o,r)=>{const i=e.loaderHook.lifecycle.createLink.emit({url:o,attrs:r,remoteInfo:t,resourceContext:{...n,url:o}});return HTMLLinkElement,i},needDeleteLink:i});c&&document.head.appendChild(a)}))}function vt({host:e,remoteInfo:t,url:o,attrs:r,context:n}){return new Promise((i=>{const{script:s,needAttach:a}=Qe({url:o,cb:()=>{i(It(n,o,a?"success":"cached"))},onErrorCallback:e=>{i(It(n,o,_t(e)?"timeout":"error",e))},attrs:r,createScriptHook:(o,r)=>{const i=e.loaderHook.lifecycle.createScript.emit({url:o,attrs:r,remoteInfo:t,resourceContext:{...n,url:o}});return HTMLScriptElement,i},needDeleteScript:!0});a&&document.head.appendChild(s)}))}function kt(e,t){return{...e,resourceType:t}}function Rt(e,t,o,r=!0,n={initiator:"preloadRemote",id:e.name}){const{cssAssets:i,jsAssetsWithoutEntry:s,entryAssets:a}=o,c=[];if(t.options.inBrowser){if(a.forEach((e=>{const{moduleInfo:o}=e;c.push(async function(e,t,o,r){const n=e.moduleCache.get(o.name),i=o.entry;if(n?.remoteEntryExports)return It(r,i,"cached");try{if(!await yt({origin:e,remoteInfo:o,remoteEntryExports:n?.remoteEntryExports,resourceContext:{...r,url:i}}))throw new Error(`Failed to load remoteEntry "${i}".`);return It(r,i,"success")}catch(e){return It(r,i,_t(e)?"timeout":"error",e)}}(t,0,o,kt(n,"remoteEntry")))})),r){const o={rel:"preload",as:"style"};i.forEach((r=>{c.push(wt({host:t,remoteInfo:e,url:r,attrs:o,context:kt(n,"css")}))}))}else{const o={rel:"stylesheet",type:"text/css"};i.forEach((r=>{c.push(wt({host:t,remoteInfo:e,url:r,attrs:o,needDeleteLink:!1,context:kt(n,"css")}))}))}let o=vt,l={fetchpriority:"high",type:"text/javascript"};r?(o=wt,l={rel:"preload",as:"script"}):dt(e.type)&&(o=wt,l={rel:"modulepreload",fetchpriority:"high"}),s.forEach((r=>{c.push(o({host:t,remoteInfo:e,url:r,attrs:l,context:kt(n,"js")}))}))}return Promise.all(c)}var Nt={global:{Global:v,nativeGlobal:w,resetFederationGlobalInfo:function(){I.__FEDERATION__.__GLOBAL_PLUGIN__=[],I.__FEDERATION__.__INSTANCES__=[],I.__FEDERATION__.moduleInfo={},I.__FEDERATION__.__SHARE__={},I.__FEDERATION__.__MANIFEST_LOADING__={},Object.keys(N).forEach((e=>{delete N[e]}))},setGlobalFederationInstance:A,getGlobalFederationConstructor:T,setGlobalFederationConstructor:O,getInfoWithoutType:M,getGlobalSnapshot:x,getTargetSnapshotInfoByModuleInfo:L,getGlobalSnapshotInfoByModuleInfo:C,setGlobalSnapshotInfoByModuleInfo:P,addGlobalSnapshot:F,getRemoteEntryExports:H,registerGlobalPlugins:D,getGlobalHostPlugins:j,getPreloaded:U,setPreloaded:G},share:{getRegisteredShare:qe,getGlobalShareScope:Be},utils:{matchRemoteWithNameAndExpose:St,preloadAssets:Rt,getRemoteInfo:gt}};function $t(e){return{name:e.name,alias:e.alias,entry:"entry"in e?e.entry:void 0,version:"version"in e?e.version:void 0,type:e.type,entryGlobalName:e.entryGlobalName,shareScope:e.shareScope}}function At(e){const t={};for(const[o,r]of Object.entries(e.shared)){const e=r[0];e&&(t[o]={version:e.version,singleton:e.shareConfig?.singleton,requiredVersion:!1!==e.shareConfig?.requiredVersion&&e.shareConfig?.requiredVersion,eager:e.eager,strictVersion:e.shareConfig?.strictVersion})}return{project:{name:e.name,mfRole:e.remotes?.length>0?"host":"unknown"},mfConfig:{name:e.name,remotes:e.remotes?.map($t)??[],shared:t}}}function Tt(e){if(!e||!("modules"in e)||!Array.isArray(e.modules))return;const t=e.modules.map((e=>e.moduleName)).filter(Boolean);return t.length?t.join(","):void 0}var Ot=class{constructor({remoteInfo:e,host:t}){this.inited=!1,this.initing=!1,this.lib=void 0,this.remoteInfo=e,this.host=t}async getEntry(e){if(this.remoteEntryExports)return this.remoteEntryExports;const t=await yt({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports,resourceContext:{initiator:"loadRemote",id:Et(this.remoteInfo.name,e),resourceType:"remoteEntry"}});return d(t,`remoteEntryExports is undefined \n ${(0,Je.ML)(this.remoteInfo)}`),this.remoteEntryExports=t,this.remoteEntryExports}async init(e,t,o,r){const n=await this.getEntry(r);if(this.inited)return await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:n,cached:!0,origin:this.host}),n;if(this.initPromise){try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:n,cached:!0,origin:this.host})}catch(o){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:n,error:o,cached:!0,origin:this.host}),o}return n}this.initing=!0,this.initPromise=(async()=>{await this.host.loaderHook.lifecycle.beforeInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,origin:this.host});const{remoteEntryInitOptions:r,shareScope:i,initScope:s}=function(e,t,o){const r=t,n=Array.isArray(e.shareScope)?e.shareScope:[e.shareScope];n.length||n.push("default"),n.forEach((e=>{r[e]||(r[e]={})}));const i={version:e.version||"",shareScopeKeys:Array.isArray(e.shareScope)?n:e.shareScope||"default"};return Object.defineProperty(i,"shareScopeMap",{value:r,enumerable:!1}),{remoteEntryInitOptions:i,shareScope:r[n[0]],initScope:o??[]}}(this.remoteInfo,this.host.shareScopeMap,o),a=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:i,remoteEntryInitOptions:r,initScope:s,remoteInfo:this.remoteInfo,origin:this.host});void 0===n?.init&&m(ct.MC,lt.UJ,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName},void 0,At(this.host.options));try{await n.init(a.shareScope,a.initScope,a.remoteEntryInitOptions)}catch(e){m(ct.uz,lt.UJ,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName,shareScope:this.remoteInfo.shareScope},`${e}`,At(this.host.options))}await this.host.hooks.lifecycle.initContainer.emit({...a,id:e,remoteSnapshot:t,remoteEntryExports:n}),this.inited=!0})();try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:n,origin:this.host})}catch(o){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:n,error:o,origin:this.host}),o}finally{this.initing=!1,this.initPromise=void 0}return n}async get(e,t,o,r){const{loadFactory:n=!0}=o||{loadFactory:!0},i=await this.init(e,r,void 0,t);let s;this.lib=i,await this.host.loaderHook.lifecycle.beforeGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:i,origin:this.host});try{const o=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:i,expose:t,moduleInfo:this.remoteInfo});s="function"==typeof o?o:void 0,s||(s=await i.get(t)),s||m(ct.BC,lt.UJ,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,expose:t,requestId:e,availableExposes:Tt(r)},void 0,At(this.host.options)),await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:i,moduleFactory:s,origin:this.host})}catch(o){throw await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:i,error:o,origin:this.host}),o}const a=((e,t)=>{let o;return o=e.endsWith("/")?e.slice(0,-1):e,t.startsWith(".")&&(t=t.slice(1)),o+=t,o})(this.remoteInfo.name,t),c=this.wraperFactory(s,a);if(!n)return c;await this.host.loaderHook.lifecycle.beforeExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:n,origin:this.host});try{const o=await c();return await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:n,exposeModule:o,origin:this.host}),o}catch(o){throw await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:n,error:o,origin:this.host}),o}}wraperFactory(e,t){function o(e,t){e&&"object"==typeof e&&Object.isExtensible(e)&&!Object.getOwnPropertyDescriptor(e,Symbol.for("mf_module_id"))&&Object.defineProperty(e,Symbol.for("mf_module_id"),{value:t,enumerable:!1})}return()=>{const r=e();return r instanceof Promise?r.then((e=>(o(e,t),e))):(o(r,t),r)}}},Mt=class{constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}applyPlugin(e,t){var o;d((o=e,"[object Object]"===S.call(o)),"Plugin configuration is invalid.");const r=e.name;d(r,"A name must be provided by the plugin."),this.registerPlugins[r]||(this.registerPlugins[r]=e,e.apply?.(t),Object.keys(this.lifecycle).forEach((t=>{const o=e[t];o&&this.lifecycle[t].on(o)})))}removePlugin(e){d(e,"A name is required.");const t=this.registerPlugins[e];d(t,`The plugin "${e}" is not registered.`),Object.keys(t).forEach((e=>{"name"!==e&&this.lifecycle[e].remove(t[e])}))}},xt=class{constructor(e){this.type="",this.listeners=new Set,e&&(this.type=e)}on(e){"function"==typeof e&&this.listeners.add(e)}once(e){const t=this;this.on((function o(...r){return t.remove(o),e.apply(null,r)}))}emit(...e){let t;return this.listeners.size>0&&this.listeners.forEach((o=>{const r=o(...e);void 0!==r&&(t=r)})),t}remove(e){this.listeners.delete(e)}removeAll(){this.listeners.clear()}};function Lt(e,t){if(!E(t))return!1;if(e!==t)for(const o in e)if(!(o in t))return!1;return!0}var Ct=class extends xt{constructor(e){super(),this.onerror=m,this.type=e}emit(e){E(e)||m(`The data for the "${this.type}" hook should be an object.`);for(const t of this.listeners)try{const o=t(e);if(void 0===o)continue;if(!Lt(e,o)){this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}e=o}catch(e){f(e),this.onerror(e)}return e}},Pt=class extends xt{constructor(e){super(),this.onerror=m,this.type=e}emit(e){E(e)||m(`The response data for the "${this.type}" hook must be an object.`);const t=Array.from(this.listeners);if(t.length>0){let o=0;const r=t=>(f(t),this.onerror(t),e),n=i=>{if(void 0!==i&&Lt(e,i))e=i;else if(void 0!==i)return this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`),e;if(o<t.length)try{return Promise.resolve(t[o++](e)).then(n,r)}catch(e){return r(e)}return e};return Promise.resolve(n(e))}return Promise.resolve(e)}},Ft=class extends xt{emit(...e){let t;const o=Array.from(this.listeners);if(o.length>0){let r=0;const n=t=>!1!==t&&(r<o.length?Promise.resolve(o[r++].apply(null,e)).then((o=>void 0===o||1===e.length&&o===e[0]?n(t):n(o))):t);t=n()}return Promise.resolve(t)}};function Ht(e,t){const o=_(t);o.url||m(ct.uF,lt.UJ,{remoteName:e.name});let n=(0,Je.Al)(t,o.url);r.Hq||n.startsWith("http")||(n=`https:${n}`),e.type=o.type,e.entryGlobalName=o.globalName,e.entry=n,e.version=t.version,e.buildVersion=t.buildVersion}const Dt=(e,t)=>{if(!e)return t;const o=(e=>{if("."===e)return"";if(e.startsWith("./"))return e.replace("./","");if(e.startsWith("/")){const t=e.slice(1);return t.endsWith("/")?t.slice(0,-1):t}return e})(e);return o?o.endsWith("/")?`${o}${t}`:`${o}/${t}`:t};function jt(e){return!(!("remoteEntry"in e)||!e.remoteEntry.includes(Me.CQ))}function Ut(e){const t=e.split(":");return 1===t.length?{name:t[0],version:void 0}:2===t.length?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}}function Gt(e,t,o,r,n={},i){const{value:s}=M(e,p(t)),a=i||s;if(a&&!jt(a)&&(o(a,t,r),a.remotesInfo)){const t=Object.keys(a.remotesInfo);for(const r of t){if(n[r])continue;n[r]=!0;const t=Ut(r),i=a.remotesInfo[r];Gt(e,{name:t.name,version:i.matchedVersion},o,!1,n,void 0)}}}const qt=(e,t)=>document.querySelector(`${e}[${"link"===e?"href":"src"}="${t}"]`);function Bt(e,t,o,r,n){const i=[],s=[],a=[],c=new Set,l=new Set,{options:h}=e,{preloadConfig:u}=t,{depsRemote:d}=u;if(Gt(r,o,((t,o,r)=>{let n;if(r)n=u;else if(Array.isArray(d)){const e=d.find((e=>e.nameOrAlias===o.name||e.nameOrAlias===o.alias));if(!e)return;n=bt(e)}else{if(!0!==d)return;n=u}const c=(0,Je.Al)(t,_(t).url);c&&a.push({name:o.name,moduleInfo:{name:o.name,entry:c,type:"remoteEntryType"in t?t.remoteEntryType:"global",entryGlobalName:"globalName"in t?t.globalName:o.name,shareScope:"",version:"version"in t?t.version:void 0},url:c});let l="modules"in t?t.modules:[];const h=(m=n.exposes)?m.map((e=>"."===e?e:e.startsWith("./")?e.replace("./",""):e)):[];var m;function f(e){const o=e.map((e=>(0,Je.Al)(t,e)));return n.filter?o.filter(n.filter):o}if(h.length&&"modules"in t&&(l=t?.modules?.reduce(((e,t)=>(-1!==h?.indexOf(t.moduleName)&&e.push(t),e)),[])),l){const r=l.length;for(let a=0;a<r;a++){const r=l[a],c=`${o.name}/${r.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:"."===r.moduleName?o.name:c,name:o.name,remoteSnapshot:t,preloadConfig:n,remote:o,origin:e}),U(c)||("all"===n.resourceCategory?(i.push(...f(r.assets.css.async)),i.push(...f(r.assets.css.sync)),s.push(...f(r.assets.js.async)),s.push(...f(r.assets.js.sync))):"sync"===n.resourceCategory&&(i.push(...f(r.assets.css.sync)),s.push(...f(r.assets.js.sync))),G(c))}}}),!0,{},n),n.shared&&n.shared.length>0){const t=(t,o)=>{const{shared:r}=qe(e.shareScopeMap,o.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare)||{};r&&"function"==typeof r.lib&&(o.assets.js.sync.forEach((e=>{c.add(e)})),o.assets.css.sync.forEach((e=>{l.add(e)})))};n.shared.forEach((e=>{const o=h.shared?.[e.sharedName];if(!o)return;const r=e.version?o.find((t=>t.version===e.version)):o;r&&b(r).forEach((o=>{t(o,e)}))}))}const m=s.filter((e=>!c.has(e)&&!qt("script",e)));return{cssAssets:i.filter((e=>!l.has(e)&&!qt("link",e))),jsAssetsWithoutEntry:m,entryAssets:a.filter((e=>!qt("script",e.url)))}}function Vt(e,t){const o=C({name:t.name,version:t.options.version}),r=o&&"remotesInfo"in o&&o.remotesInfo&&M(o.remotesInfo,e.name).value;return r&&r.matchedVersion?{hostGlobalSnapshot:o,globalSnapshot:x(),remoteSnapshot:C({name:e.name,version:r.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:x(),remoteSnapshot:C({name:e.name,version:"version"in e?e.version:void 0})}}var Wt=class{constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new Mt({beforeLoadRemoteSnapshot:new Ft("beforeLoadRemoteSnapshot"),loadSnapshot:new Pt("loadGlobalSnapshot"),loadRemoteSnapshot:new Pt("loadRemoteSnapshot"),afterLoadSnapshot:new Pt("afterLoadSnapshot")}),this.manifestLoading=v.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}async loadRemoteSnapshotInfo({moduleInfo:e,id:t,initiator:o="loadRemote"}){const{options:n}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:n,moduleInfo:e,origin:this.HostInstance});let i=C({name:this.HostInstance.options.name,version:this.HostInstance.options.version});i||(i={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},F({[this.HostInstance.options.name]:i})),i&&"remotesInfo"in i&&!M(i.remotesInfo,e.name).value&&("version"in e||"entry"in e)&&(i.remotesInfo={...i?.remotesInfo,[e.name]:{matchedVersion:"version"in e?e.version:e.entry}});const{hostGlobalSnapshot:s,remoteSnapshot:a,globalSnapshot:c}=this.getGlobalRemoteInfo(e),{remoteSnapshot:l,globalSnapshot:h}=await this.hooks.lifecycle.loadSnapshot.emit({options:n,moduleInfo:e,hostGlobalSnapshot:s,remoteSnapshot:a,globalSnapshot:c});let u,d;if(l)if(jt(l)){const n=r.Hq?l.remoteEntry:l.ssrRemoteEntry||l.remoteEntry||"",i=await this.loadManifestSnapshot(n,e,{},{initiator:o,id:t||e.name});u=i,d=P({...e,entry:n},i)}else{const{remoteSnapshot:t}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:l,from:"global"});u=t,d=h}else if(y(e)){const r=await this.loadManifestSnapshot(e.entry,e,{},{initiator:o,id:t||e.name});u=r,d=P(e,r)}else m(ct.Tz,lt.UJ,{remoteName:e.name,remoteVersion:e.version,hostName:this.HostInstance.options.name,globalSnapshot:JSON.stringify(h)},void 0,At(this.HostInstance.options));return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:t,host:this.HostInstance,options:n,moduleInfo:e,remoteSnapshot:u}),{remoteSnapshot:u,globalSnapshot:d}}getGlobalRemoteInfo(e){return Vt(e,this.HostInstance)}async getManifestJson(e,t,o,r){return(async()=>{const o=gt(t);let n=this.manifestCache.get(e);if(n)return n;try{let t=await this.loaderHook.lifecycle.fetch.emit(e,{},o,r?{...r,url:e,resourceType:"manifest"}:void 0);t&&t instanceof Response||(t=await fetch(e,{})),n=await t.json()}catch(r){n=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:r,from:"runtime",lifecycle:"afterResolve",remote:o,origin:this.HostInstance}),n||(delete this.manifestLoading[e],m(ct.F0,lt.UJ,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${r}`,At(this.HostInstance.options)))}const i=[!n.metaData&&"metaData",!n.exposes&&"exposes",!n.shared&&"shared"].filter(Boolean);return i.length>0&&await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:new Error(`"${e}" is not a valid federation manifest for remote "${t.name}". Missing required fields: ${i.join(", ")}.`),from:"runtime",lifecycle:"afterResolve",remote:o,origin:this.HostInstance}),i.length>0&&m(ct.u0,lt.UJ,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name,missingFields:i.join(",")},void 0,At(this.HostInstance.options)),this.manifestCache.set(e,n),n})()}async loadManifestSnapshot(e,t,o,r){return this.manifestLoading[e]||(this.manifestLoading[e]=(async()=>{const n=await this.getManifestJson(e,t,o,r),i=function(e,t={}){const{remotes:o={},overrides:r={},version:n}=t;let i;const s=()=>"publicPath"in e.metaData?"auto"!==e.metaData.publicPath&&""!==e.metaData.publicPath||!n?e.metaData.publicPath:n.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"):e.metaData.getPublicPath,a=Object.keys(r);let c={};Object.keys(o).length||(c=e.remotes?.reduce(((e,t)=>{let o;const n=t.federationContainerName;return o=a.includes(n)?r[n]:"version"in t?t.version:t.entry,e[n]={matchedVersion:o},e}),{})||{}),Object.keys(o).forEach((e=>c[e]={matchedVersion:a.includes(e)?r[e]:o[e]}));const{remoteEntry:{path:l,name:h,type:u},types:d={path:"",name:"",zip:"",api:""},buildInfo:{buildVersion:m},globalName:f,ssrRemoteEntry:p}=e.metaData,{exposes:y}=e;let g={version:n||"",buildVersion:m,globalName:f,remoteEntry:Dt(l,h),remoteEntryType:u,remoteTypes:Dt(d.path,d.name),remoteTypesZip:d.zip||"",remoteTypesAPI:d.api||"",remotesInfo:c,shared:e?.shared.map((e=>({assets:e.assets,sharedName:e.name,version:e.version,usedExports:e.referenceExports||[]}))),modules:y?.map((e=>({moduleName:e.name,modulePath:e.path,assets:e.assets})))};if("publicPath"in e.metaData?(i={...g,publicPath:s()},"string"==typeof e.metaData.ssrPublicPath&&(i.ssrPublicPath=e.metaData.ssrPublicPath)):i={...g,getPublicPath:s()},p){const e=Dt(p.path,p.name);i.ssrRemoteEntry=e,i.ssrRemoteEntryType=p.type||"commonjs-module"}return i}(n,{version:e}),{remoteSnapshot:s}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:n,remoteSnapshot:i,manifestUrl:e,from:"manifest"});return s})().then((e=>e))),this.manifestLoading[e]}},Kt=class{constructor(e){this.hooks=new Mt({beforeRegisterShare:new Ct("beforeRegisterShare"),afterResolve:new Pt("afterResolve"),beforeLoadShare:new Pt("beforeLoadShare"),loadShare:new Ft,afterLoadShare:new xt("afterLoadShare"),errorLoadShare:new xt("errorLoadShare"),resolveShare:new Ct("resolveShare"),initContainerShareScopeMap:new Ct("initContainerShareScopeMap")}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}emitAfterLoadShare({lifecycle:e,pkgName:t,shareInfo:o,selectedShared:r}){try{this.hooks.lifecycle.afterLoadShare.emit({pkgName:t,shareInfo:o,selectedShared:r,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:e,origin:this.host})}catch(e){f(e)}}emitErrorLoadShare({lifecycle:e,pkgName:t,shareInfo:o,error:r,recovered:n}){try{this.hooks.lifecycle.errorLoadShare.emit({pkgName:t,shareInfo:o,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:e,origin:this.host,error:r,recovered:n})}catch(e){f(e)}}registerShared(e,t){const{newShareInfos:o,allShareInfos:r}=xe(e,t);return Object.keys(o).forEach((e=>{o[e].forEach((o=>{o.scope.forEach((r=>{this.hooks.lifecycle.beforeRegisterShare.emit({origin:this.host,pkgName:e,shared:o}),this.shareScopeMap[r]?.[e]||this.setShared({pkgName:e,lib:o.lib,get:o.get,loaded:o.loaded||Boolean(o.lib),shared:o,from:t.name})}))}))})),{newShareInfos:o,allShareInfos:r}}async loadShare(e,t){const{host:o}=this,r=Ve({pkgName:e,extraOptions:t,shareInfos:o.options.shared});let n=r;try{r?.scope&&await Promise.all(r.scope.map((async e=>{await Promise.all(this.initializeSharing(e,{strategy:r.strategy}))}))),n=(await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:r,shared:o.options.shared,origin:o})).shareInfo,d(n,`Cannot find shared "${e}" in host "${o.options.name}". Ensure the shared config for "${e}" is declared in the federation plugin options and the host has been initialized before loading shares.`);const i=n,{shared:s,useTreesShaking:a}=qe(this.shareScopeMap,e,n,this.hooks.lifecycle.resolveShare)||{};if(s){const t=Ke(s,a);if(t.lib)return We(t,o.options.name),this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:i,selectedShared:s}),t.lib;if(t.loading&&!t.loaded){const r=await t.loading;return t.loaded=!0,t.lib||(t.lib=r),We(t,o.options.name),this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:i,selectedShared:s}),r}{const r=async()=>{const e=await t.get();return We(t,o.options.name),t.loaded=!0,t.lib=e,e},n=r();this.setShared({pkgName:e,loaded:!1,shared:s,from:o.options.name,lib:null,loading:n,treeShaking:a?t:void 0});const c=await n;return this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:i,selectedShared:s}),c}}{if(t?.customShareInfo)return this.emitErrorLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:i,recovered:!0}),!1;const r=Le(i.treeShaking),n=Ke(i,r),s=async()=>{const t=await n.get();n.lib=t,n.loaded=!0,We(n,o.options.name);const{shared:r,useTreesShaking:s}=qe(this.shareScopeMap,e,i,this.hooks.lifecycle.resolveShare)||{};if(r){const e=Ke(r,s);e.lib=t,e.loaded=!0,r.from=i.from}return t},a=s();this.setShared({pkgName:e,loaded:!1,shared:i,from:o.options.name,lib:null,loading:a,treeShaking:r?n:void 0});const c=await a;return this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:i,selectedShared:i}),c}}catch(t){throw this.emitErrorLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:n,error:t}),t}}initializeSharing(e=q,t){const{host:o}=this,r=t?.from,n=t?.strategy;let i=t?.initScope;const s=[];if("build"!==r){const{initTokens:t}=this;i||(i=[]);let o=t[e];if(o||(o=t[e]={from:this.host.name}),i.indexOf(o)>=0)return s;i.push(o)}const a=this.shareScopeMap,c=o.options.name;a[e]||(a[e]={});const l=a[e];return Object.keys(o.options.shared).forEach((t=>{o.options.shared[t].forEach((o=>{o.scope.includes(e)&&((e,t)=>{const{version:o,eager:r}=t;l[e]=l[e]||{};const n=l[e],i=n[o]&&Ke(n[o]),s=Boolean(i&&("eager"in i&&i.eager||"shareConfig"in i&&i.shareConfig?.eager));(!i||"loaded-first"!==i.strategy&&!i.loaded&&(Boolean(!r)!==!s?r:c>n[o].from))&&(n[o]=t)})(t,o)}))})),"version-first"!==o.options.shareStrategy&&"version-first"!==n||o.options.remotes.forEach((t=>{t.shareScope===e&&s.push((async e=>{const{module:t}=await o.remoteHandler.getRemoteModuleAndOptions({id:e});let r;try{r=await t.getEntry()}catch(n){if(r=await o.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:n,from:"runtime",lifecycle:"beforeLoadShare",remote:t.remoteInfo,origin:o}),!r)return}finally{r?.init&&!t.initing&&(t.remoteEntryExports=r,await t.init(void 0,void 0,i))}})(t.name))})),s}loadShareSync(e,t){const{host:o}=this,r=Ve({pkgName:e,extraOptions:t,shareInfos:o.options.shared});try{r?.scope&&r.scope.forEach((e=>{this.initializeSharing(e,{strategy:r.strategy})}));const{shared:n}=qe(this.shareScopeMap,e,r,this.hooks.lifecycle.resolveShare)||{};if(n){if("function"==typeof n.lib)return We(n,o.options.name),n.loaded||(n.loaded=!0,n.from===o.options.name&&(r.loaded=!0)),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:r,selectedShared:n}),n.lib;if("function"==typeof n.get){const t=n.get();if(!(t instanceof Promise))return We(n,o.options.name),this.setShared({pkgName:e,loaded:!0,from:o.options.name,lib:t,shared:n}),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:r,selectedShared:n}),t}}if(r.lib)return r.loaded||(r.loaded=!0),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:r,selectedShared:r}),r.lib;if(r.get){const n=r.get();return n instanceof Promise&&m("build"===t?.from?ct.Fd:ct.yB,lt.UJ,{hostName:o.options.name,sharedPkgName:e},void 0,At(o.options)),r.lib=n,this.setShared({pkgName:e,loaded:!0,from:o.options.name,lib:r.lib,shared:r}),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:r,selectedShared:r}),r.lib}m(ct.yB,lt.UJ,{hostName:o.options.name,sharedPkgName:e},void 0,At(o.options))}catch(t){throw this.emitErrorLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:r,error:t}),t}}initShareScopeMap(e,t,o={}){const{host:r}=this;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:r.options,origin:r,scopeName:e,hostShareScopeMap:o.hostShareScopeMap})}setShared({pkgName:e,shared:t,from:o,lib:r,loading:n,loaded:i,get:s,treeShaking:a}){const{version:c,scope:l="default",...h}=t;(Array.isArray(l)?l:[l]).forEach((t=>{this.shareScopeMap[t]||(this.shareScopeMap[t]={}),this.shareScopeMap[t][e]||(this.shareScopeMap[t][e]={}),this.shareScopeMap[t][e][c]||(this.shareScopeMap[t][e][c]={version:c,scope:[t],...h,lib:r});const l=this.shareScopeMap[t][e][c];(e=>{const t=(e,t,o)=>{o&&!e[t]&&(e[t]=o)},o=a?e.treeShaking:e;t(o,"loaded",i),t(o,"loading",n),t(o,"get",s)})(l),o&&l.from!==o&&(l.from=o)}))}_setGlobalShareScopeMap(e){const t=Be(),o=e.id||e.name;o&&!t[o]&&(t[o]=this.shareScopeMap)}},Jt=class{constructor(e){this.hooks=new Mt({beforeRegisterRemote:new Ct("beforeRegisterRemote"),registerRemote:new Ct("registerRemote"),beforeRequest:new Pt("beforeRequest"),afterMatchRemote:new Ft("afterMatchRemote"),onLoad:new Ft("onLoad"),afterLoadRemote:new Ft("afterLoadRemote"),handlePreloadModule:new xt("handlePreloadModule"),errorLoadRemote:new Ft("errorLoadRemote"),beforePreloadRemote:new Ft("beforePreloadRemote"),generatePreloadAssets:new Ft("generatePreloadAssets"),afterPreloadRemote:new Ft("afterPreloadRemote"),loadEntry:new Ft}),this.host=e,this.idToRemoteMap={}}formatAndRegisterRemote(e,t){return(t.remotes||[]).reduce(((e,t)=>(this.registerRemote(t,e,{force:!1}),e)),e.remotes)}setIdToRemoteMap(e,t){const{remote:o,expose:r}=t,{name:n,alias:i}=o;if(this.idToRemoteMap[e]={name:o.name,expose:r},i&&e.startsWith(n)){const t=e.replace(n,i);this.idToRemoteMap[t]={name:o.name,expose:r}}else if(i&&e.startsWith(i)){const t=e.replace(i,n);this.idToRemoteMap[t]={name:o.name,expose:r}}}async loadRemote(e,t){const{host:o}=this,r=St(o.options.remotes,e);let n,i=e,s=r?.expose,a=r?gt(r.remote):void 0;try{const{loadFactory:r=!0}=t||{loadFactory:!0},{module:c,moduleOptions:l,remoteMatchInfo:h}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:u,remote:d,expose:m,id:f,remoteSnapshot:p}=h;i=f,s=m,a=gt(d);const y=await c.get(f,m,t,p),g=await this.hooks.lifecycle.onLoad.emit({id:f,pkgNameOrAlias:u,expose:m,exposeModule:r?y:void 0,exposeModuleFactory:r?void 0:y,remote:d,options:l,moduleInstance:c,origin:o});return this.setIdToRemoteMap(e,h),n={id:i,expose:s,remote:a,options:t,origin:o},"function"==typeof g?g:y}catch(r){const{from:c="runtime"}=t||{from:"runtime"};let l;try{l=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:r,from:c,lifecycle:"onLoad",expose:s,remote:a,origin:o})}catch(e){throw n={id:i,expose:s,remote:a,options:t,error:e,origin:o},e}if(!l)throw n={id:i,expose:s,remote:a,options:t,error:r,origin:o},r;return n={id:i,expose:s,remote:a,options:t,error:r,origin:o,recovered:!0},l}finally{n&&await this.hooks.lifecycle.afterLoadRemote.emit(n)}}async preloadRemote(e){const{host:t}=this,o=[];await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:t.options,origin:t});const r=(n=t.options.remotes,e.map((e=>{const t=function(e,t){for(const o of e){if(t===o.name)return o;if(o.alias&&t===o.alias)return o}}(n,e.nameOrAlias);return d(t,`Unable to preload ${e.nameOrAlias} as it is not included in ${!t&&(0,Je.ML)({remoteInfo:t,remotes:n})}`),{remote:t,preloadConfig:bt(e)}})));var n;let i;await Promise.all(r.flatMap((e=>{const{preloadConfig:t,remote:o}=e,r=t.exposes||[];return r.length?r.map((r=>({ops:{...e,preloadConfig:{...t,exposes:[r]}},id:Et(o.name,r)}))):[{ops:e,id:`${o.name}/*`}]})).map((async e=>{const{ops:r,id:n}=e,{remote:i,preloadConfig:s}=r,a=gt(i);try{const{globalSnapshot:e,remoteSnapshot:c}=await t.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:i,id:n,initiator:"preloadRemote"}),l=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:t,preloadOptions:r,remote:i,remoteInfo:a,globalSnapshot:e,remoteSnapshot:c});if(!l)return;const h=await Rt(a,t,l,!0,{initiator:"preloadRemote",id:n});o.push({remote:i,remoteInfo:a,preloadConfig:s,id:n,results:h})}catch(e){o.push({remote:i,remoteInfo:a,preloadConfig:s,id:n,results:[{url:a.entry,status:"error",resourceType:/\.json(?:$|[?#])/i.test(a.entry)?"manifest":"remoteEntry",initiator:"preloadRemote",id:n,error:e}]})}})));const s=o.flatMap((e=>e.results.filter((e=>"error"===e.status||"timeout"===e.status))));if(s.length>0&&(i=new Error(`preloadRemote failed to load ${s.length} resource(s).`),Object.assign(i,{results:o,failedResults:s})),await this.hooks.lifecycle.afterPreloadRemote.emit({preloadOps:e,options:t.options,origin:t,results:o,error:i}),i)throw i}registerRemotes(e,t){const{host:o}=this;e.forEach((e=>{this.registerRemote(e,o.options.remotes,{force:t?.force})}))}initRawContainer(e,t,o){const{host:r}=this,n=new Ot({host:r,remoteInfo:gt({name:e,entry:t})});return n.remoteEntryExports=o,r.moduleCache.set(e,n),n}async getRemoteModuleAndOptions(e){const{host:t}=this,{id:o}=e;let r;try{r=await this.hooks.lifecycle.beforeRequest.emit({id:o,options:t.options,origin:t})}catch(e){if(r=await this.hooks.lifecycle.errorLoadRemote.emit({id:o,options:t.options,origin:t,from:"runtime",error:e,lifecycle:"beforeRequest"}),!r)throw e}const{id:n}=r,i=St(t.options.remotes,n);if(!i)try{m(ct.MR,lt.UJ,{hostName:t.options.name,requestId:n},void 0,At(t.options))}catch(e){throw await this.hooks.lifecycle.afterMatchRemote.emit({id:n,options:t.options,error:e,origin:t}),e}const{remote:s}=i,a=gt(s);await this.hooks.lifecycle.afterMatchRemote.emit({id:n,...i,options:t.options,remoteInfo:a,origin:t});const c=await t.sharedHandler.hooks.lifecycle.afterResolve.emit({id:n,...i,options:t.options,origin:t,remoteInfo:a}),{remote:l,expose:h}=c;d(l&&h,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${n}.`);let u=t.moduleCache.get(l.name);const f={host:t,remoteInfo:a};return u||(u=new Ot(f),t.moduleCache.set(l.name,u)),{module:u,moduleOptions:f,remoteMatchInfo:c}}registerRemote(e,t,o){const{host:n}=this,i=()=>{if(e.alias){const o=t.find((t=>e.alias&&(t.name.startsWith(e.alias)||t.alias?.startsWith(e.alias))));d(!o,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${o&&o.name} name or alias`)}"entry"in e&&r.Hq&&"undefined"!=typeof window&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=q),e.type||(e.type=B)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:n});const s=t.find((t=>t.name===e.name));if(s){const r=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];o?.force&&(this.removeRemote(s),i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n}),(0,Je.R8)(r.join(" ")))}else i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n})}removeRemote(e){try{const{host:t}=this,{name:o}=e,r=t.options.remotes.findIndex((e=>e.name===o));-1!==r&&t.options.remotes.splice(r,1);const n=M(I.__FEDERATION__.moduleInfo,p(e)).key;delete I.__FEDERATION__.moduleInfo[n],"entry"in e&&(t.snapshotHandler.manifestCache.delete(e.entry),delete v.__FEDERATION__.__MANIFEST_LOADING__[e.entry]);const{hostGlobalSnapshot:i}=Vt(e,t);if(i){const t=i&&"remotesInfo"in i&&i.remotesInfo&&M(i.remotesInfo,e.name).key;t&&delete i.remotesInfo[t]}const s=t.moduleCache.get(e.name);if(s){const o=s.remoteInfo,r=o.entryGlobalName;I[r]&&(Object.getOwnPropertyDescriptor(I,r)?.configurable?delete I[r]:I[r]=void 0);const n=pt(s.remoteInfo);N[n]&&delete N[n];let i=o.buildVersion?(0,Je.lG)(o.name,o.buildVersion):o.name;const a=I.__FEDERATION__.__INSTANCES__.findIndex((e=>o.buildVersion?e.options.id===i:e.name===i));if(-1!==a){const e=I.__FEDERATION__.__INSTANCES__[a];i=e.options.id||i;const t=Be();let r=!0;const n=[];Object.keys(t).forEach((e=>{const i=t[e];i&&Object.keys(i).forEach((t=>{const s=i[t];s&&Object.keys(s).forEach((i=>{const a=s[i];a&&Object.keys(a).forEach((s=>{const c=a[s];c&&"object"==typeof c&&c.from===o.name&&(c.loaded||c.loading?(c.useIn=c.useIn.filter((e=>e!==o.name)),c.useIn.length?r=!1:n.push([e,t,i,s])):n.push([e,t,i,s]))}))}))}))})),r&&(e.shareScopeMap={},delete t[i]),n.forEach((([e,o,r,n])=>{delete t[e]?.[o]?.[r]?.[n]})),I.__FEDERATION__.__INSTANCES__.splice(a,1)}t.moduleCache.delete(e.name)}}catch(e){u.error(`removeRemote failed: ${e instanceof Error?e.message:String(e)}`)}}},zt=class{constructor(e){this.hooks=new Mt({beforeInit:new Ct("beforeInit"),init:new xt,beforeInitContainer:new Pt("beforeInitContainer"),initContainer:new Pt("initContainer")}),this.version="2.8.2",this.moduleCache=new Map,this.loaderHook=new Mt({getModuleInfo:new xt,createScript:new xt,createLink:new xt,fetch:new Ft,loadEntryError:new Ft,afterLoadEntry:new Ft("afterLoadEntry"),beforeInitRemote:new Ft("beforeInitRemote"),afterInitRemote:new Ft("afterInitRemote"),beforeGetExpose:new Ft("beforeGetExpose"),afterGetExpose:new Ft("afterGetExpose"),beforeExecuteFactory:new Ft("beforeExecuteFactory"),afterExecuteFactory:new Ft("afterExecuteFactory"),getModuleFactory:new Ft}),this.bridgeHook=new Mt({beforeBridgeRender:new xt,afterBridgeRender:new xt,beforeBridgeDestroy:new xt,afterBridgeDestroy:new xt});const t=[{name:"snapshot-plugin",async afterResolve(e){const{remote:t,pkgNameOrAlias:o,expose:r,origin:n,remoteInfo:i,id:s}=e;if(!y(t)||!g(t)){const{remoteSnapshot:a,globalSnapshot:c}=await n.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:Et(t.name,r)});Ht(i,a);const l={remote:t,preloadConfig:{nameOrAlias:o,exposes:[r],resourceCategory:"sync",share:!1,depsRemote:!1}},h=await n.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:n,preloadOptions:l,remoteInfo:i,remote:t,remoteSnapshot:a,globalSnapshot:c});return h&&Rt(i,n,h,!1,{initiator:"loadRemote",id:s}).catch((()=>{})),{...e,remoteSnapshot:a}}return e}},{name:"generate-preload-assets-plugin",async generatePreloadAssets(e){const{origin:t,preloadOptions:o,remoteInfo:n,remote:i,globalSnapshot:s,remoteSnapshot:a}=e;return r.Hq?y(i)&&g(i)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:i.name,url:i.entry,moduleInfo:{name:n.name,entry:i.entry,type:n.type||"global",entryGlobalName:"",shareScope:""}}]}:(Ht(n,a),Bt(t,o,n,s,a)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}],o={id:"Appshell:1.0.0-alpha.25",name:e.name,plugins:t,remotes:[],shared:{},inBrowser:r.Hq};this.name=e.name,this.options=o,this.snapshotHandler=new Wt(this),this.sharedHandler=new Kt(this),this.remoteHandler=new Jt(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...o.plugins,...e.plugins||[]]),this.options=this.formatOptions(o,e)}initOptions(e){e.name&&e.name!==this.options.name&&m(l(ct.n3,lt.UJ)),this.registerPlugins(e.plugins);const t=this.formatOptions(this.options,e);return this.options=t,t}async loadShare(e,t){return this.sharedHandler.loadShare(e,t)}loadShareSync(e,t){return this.sharedHandler.loadShareSync(e,t)}initializeSharing(e=q,t){return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,o){return this.remoteHandler.initRawContainer(e,t,o)}async loadRemote(e,t){return this.remoteHandler.loadRemote(e,t)}async preloadRemote(e){return this.remoteHandler.preloadRemote(e)}initShareScopeMap(e,t,o={}){this.sharedHandler.initShareScopeMap(e,t,o)}formatOptions(e,t){const o=xe(e,t).allShareInfos,{userOptions:r,options:n}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:o}),i=this.remoteHandler.formatAndRegisterRemote(n,r),{allShareInfos:s}=this.sharedHandler.registerShared(n,r),a=[...n.plugins];r.plugins&&r.plugins.forEach((e=>{a.includes(e)||a.push(e)}));const c={...e,...t,plugins:a,remotes:i,shared:s,id:r.id||e.id};return this.hooks.lifecycle.init.emit({origin:this,options:c}),c}registerPlugins(e){const t=function(e,t){const o=j(),r=[t.hooks,t.remoteHandler.hooks,t.sharedHandler.hooks,t.snapshotHandler.hooks,t.loaderHook,t.bridgeHook];return o.length>0&&o.forEach((t=>{e?.find((e=>e.name!==t.name))&&e.push(t)})),e&&e.length>0&&e.forEach((e=>{r.forEach((o=>{o.applyPlugin(e,t)}))})),e}(e,this);this.options.plugins=this.options.plugins.reduce(((e,t)=>t?(e&&!e.find((e=>e.name===t.name))&&e.push(t),e):e),t||[])}registerRemotes(e,t){return this.remoteHandler.registerRemotes(e,t)}registerShared(e){this.sharedHandler.registerShared(this.options,{...this.options,shared:e})}};Object.defineProperty;const Yt=Nt,Qt=Ot},650(e,t,o){o.r(t),o.d(t,{Module:()=>n.nV,ModuleFederation:()=>n.gP,createInstance:()=>a,getInstance:()=>y,getRemoteEntry:()=>n.fE,getRemoteInfo:()=>n.pW,init:()=>l,loadRemote:()=>h,loadScript:()=>n.k0,loadScriptNode:()=>n.oe,loadShare:()=>u,loadShareSync:()=>d,preloadRemote:()=>m,registerGlobalPlugins:()=>n.RY,registerPlugins:()=>p,registerRemotes:()=>f,registerShared:()=>g});var r=o(370),n=o(655),i=o(904),s=o(10);function a(e){const t=new((0,n.Bf)()||n.gP)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,n.C3)(t),t}let c=null;function l(e){const t=(0,r.u)(e.name,e.version),o={...e,id:e.id||""};return t?(t.initOptions(o),c||(c=t),t):(c=a(o),c)}function h(...e){return(0,n.vA)(c,i.F9,s.UJ),c.loadRemote.apply(c,e)}function u(...e){return(0,n.vA)(c,i.F9,s.UJ),c.loadShare.apply(c,e)}function d(...e){return(0,n.vA)(c,i.F9,s.UJ),c.loadShareSync.apply(c,e)}function m(...e){return(0,n.vA)(c,i.F9,s.UJ),c.preloadRemote.apply(c,e)}function f(...e){return(0,n.vA)(c,i.F9,s.UJ),c.registerRemotes.apply(c,e)}function p(...e){return(0,n.vA)(c,i.F9,s.UJ),c.registerPlugins.apply(c,e)}function y(e){return e?n.hS.__FEDERATION__.__INSTANCES__.find(e)||null:c}function g(...e){return(0,n.vA)(c,i.F9,s.UJ),c.registerShared.apply(c,e)}(0,n.rc)(n.gP)},370(e,t,o){o.d(t,{u:()=>n});var r=o(655);function n(e,t){return r.hS.__FEDERATION__.__INSTANCES__.find((o=>!("Appshell:1.0.0-alpha.25"!==o.options.id&&(o.options.name!==e||o.options.version||t)&&(o.options.name!==e||!t||o.options.version!==t))))}},151(e,t,o){o.d(t,{CQ:()=>r,Qm:()=>i,e0:()=>a,gF:()=>h,gR:()=>s,sC:()=>n,wv:()=>c,yq:()=>l});const r=".json",n="FEDERATION_DEBUG",i={AT:"@",HYPHEN:"-",SLASH:"/"},s={[i.AT]:"scope_",[i.HYPHEN]:"_",[i.SLASH]:"__"},a={[s[i.AT]]:i.AT,[s[i.HYPHEN]]:i.HYPHEN,[s[i.SLASH]]:i.SLASH},c=":",l="ENCODE_NAME_PREFIX";let h=function(e){return e[e.UNKNOWN=1]="UNKNOWN",e[e.CALCULATED=2]="CALCULATED",e[e.NO_USE=0]="NO_USE",e}({})},284(e,t,o){},848(e,t,o){o.d(t,{Bb:()=>a,Hq:()=>n,MC:()=>s,OL:()=>i});var r=o(151);const n="undefined"!=typeof ENV_TARGET?"web"===ENV_TARGET:"undefined"!=typeof window&&void 0!==window.document;function i(){return n}function s(){return"undefined"!=typeof navigator&&"ReactNative"===navigator?.product}function a(){return"undefined"!=typeof process&&process.env&&process.env.FEDERATION_DEBUG?Boolean(process.env.FEDERATION_DEBUG):!("undefined"==typeof FEDERATION_DEBUG||!Boolean(FEDERATION_DEBUG))||function(){try{if(i()&&window.localStorage)return Boolean(localStorage.getItem(r.sC))}catch(e){return!1}return!1}()}},55(){},112(e,t,o){},469(){Object.defineProperty},378(e,t,o){o.d(t,{Al:()=>a,ML:()=>l,R8:()=>c,e4:()=>s,lG:()=>i});var r=o(151),n=o(848);const i=function(...e){return e.length?e.reduce(((e,t)=>t?e?`${e}${r.wv}${t}`:t:e),""):""},s=function(e,t,o){try{let n=e;if(t){if(!n.startsWith(t))return n;n=n.replace(new RegExp(t,"g"),"")}return n=n.replace(new RegExp(`${r.gR[r.Qm.AT]}`,"g"),r.e0[r.gR[r.Qm.AT]]).replace(new RegExp(`${r.gR[r.Qm.SLASH]}`,"g"),r.e0[r.gR[r.Qm.SLASH]]).replace(new RegExp(`${r.gR[r.Qm.HYPHEN]}`,"g"),r.e0[r.gR[r.Qm.HYPHEN]]),o&&(n=n.replace(".js","")),n}catch(e){throw e}};function a(e,t){if("getPublicPath"in e){let o;return o=e.getPublicPath.startsWith("function")?new Function("return "+e.getPublicPath)()():new Function(e.getPublicPath)(),`${o}${t}`}return"publicPath"in e?(0,n.OL)()||(0,n.MC)()||!("ssrPublicPath"in e)||"string"!=typeof e.ssrPublicPath?`${e.publicPath}${t}`:`${e.ssrPublicPath}${t}`:(console.warn("Cannot get resource URL. If in debug mode, please ignore.",e,t),"")}const c=e=>{console.warn(`[ Federation Runtime ]: ${e}`)};function l(e){try{return JSON.stringify(e,null,2)}catch(e){return""}}},365(e,t,o){}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var o=i[e]={id:e,exports:{}},r={id:e,module:o,factory:n[e],require:s};return s.i.forEach((function(e){e(r)})),o=r.module,r.factory.call(o.exports,o,o.exports,r.require),o.exports}s.m=n,s.c=i,s.i=[],s.x=e=>{},s.federation||(s.federation={initOptions:{name:"Appshell",remotes:[],shareStrategy:"version-first"},chunkMatcher:function(e){return!/^(392|488)$/.test(e)},rootOutputDir:"",bundlerRuntimeOptions:{remotes:{remoteInfos:{},webpackRequire:s,idToRemoteMap:{},chunkMapping:{},idToExternalAndNameMapping:{}}}},s.consumesLoadingData={},s.remotesLoadingData={}),s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,o)=>(s.f[o](e,t),t)),[])),s.u=e=>e+".js",s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="appshell-react-shell:",s.l=(o,r,n,i)=>{if(e[o])e[o].push(r);else{var a,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),h=0;h<l.length;h++){var u=l[h];if(u.getAttribute("src")==o||u.getAttribute("data-webpack")==t+n){a=u;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",t+n),a.src=o),e[o]=[r];var d=(t,r)=>{a.onerror=a.onload=null,clearTimeout(m);var n=e[o];if(delete e[o],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach((e=>e(r))),t)return t(r)},m=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),c&&document.head.appendChild(a)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{s.S={};var e={},t={};s.I=(o,r)=>{r||(r=[]);var n=t[o];if(n||(n=t[o]={}),!(r.indexOf(n)>=0)){if(r.push(n),e[o])return e[o];s.o(s.S,o)||(s.S[o]={});var i=s.S[o],a="appshell-react-shell",c=(e,t,o,r)=>{var n=i[e]=i[e]||{},s=n[t];(!s||!s.loaded&&(!r!=!s.eager?r:a>s.from))&&(n[t]={get:o,from:a,eager:!!r})},l=[];return"default"===o&&(c("@appshell/react","1.0.0-alpha.25",(()=>Promise.all([s.e(488),s.e(392),s.e(58)]).then((()=>()=>s(58))))),c("@appshell/runtime","1.0.0-alpha.25",(()=>s.e(877).then((()=>()=>s(258))))),c("react-dom","18.2.0",(()=>Promise.all([s.e(144),s.e(488)]).then((()=>()=>s(144))))),c("react","18.2.0",(()=>s.e(41).then((()=>()=>s(41)))))),e[o]=l.length?Promise.all(l).then((()=>e[o]=1)):1}}})(),(()=>{s.federation.initOptions.shared={"@appshell/react":[{version:"1.0.0-alpha.25",get:()=>Promise.all([s.e(488),s.e(392),s.e(58)]).then((()=>()=>s(58))),scope:["default"],shareConfig:{eager:!1,singleton:!0,layer:null}}],"@appshell/runtime":[{version:"1.0.0-alpha.25",get:()=>s.e(877).then((()=>()=>s(258))),scope:["default"],shareConfig:{eager:!1,singleton:!0,layer:null}}],"react-dom":[{version:"18.2.0",get:()=>Promise.all([s.e(144),s.e(488)]).then((()=>()=>s(144))),scope:["default"],shareConfig:{eager:!1,requiredVersion:"18.2.0",singleton:!0,layer:null}}],react:[{version:"18.2.0",get:()=>s.e(41).then((()=>()=>s(41))),scope:["default"],shareConfig:{eager:!1,requiredVersion:"18.2.0",singleton:!0,layer:null}}]},s.S={};var e={},t={};s.I=(o,r)=>s.federation.bundlerRuntime.I({shareScopeName:o,webpackRequire:s,initPromises:e,initTokens:t,initScope:r})})(),(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var r=o.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=o[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})(),(()=>{var e={};s.consumesLoadingData.moduleIdToConsumeDataMapping={488:{fallback:()=>s.e(41).then((()=>()=>s(41))),shareScope:["default"],singleton:!0,requiredVersion:"18.2.0",strictVersion:!1,eager:!1,layer:void 0,shareKey:"react"},53:{fallback:()=>Promise.all([s.e(392),s.e(677)]).then((()=>()=>s(58))),shareScope:["default"],singleton:!0,requiredVersion:!1,strictVersion:!1,eager:!1,layer:void 0,shareKey:"@appshell/react"},536:{fallback:()=>s.e(144).then((()=>()=>s(144))),shareScope:["default"],singleton:!0,requiredVersion:"18.2.0",strictVersion:!1,eager:!1,layer:void 0,shareKey:"react-dom"},392:{fallback:()=>s.e(877).then((()=>()=>s(258))),shareScope:["default"],singleton:!0,requiredVersion:"^1.0.0-alpha.25",strictVersion:!1,eager:!1,layer:void 0,shareKey:"@appshell/runtime"}};var t={};s.consumesLoadingData.chunkMapping={392:[392],488:[488],630:[53,536]},s.f.consumes=(o,r)=>{s.federation.bundlerRuntime.consumes({chunkMapping:s.consumesLoadingData.chunkMapping,installedModules:e,chunkId:o,moduleToHandlerMapping:t,promises:r,webpackRequire:s})}})(),o=s.x,r=!1,s.x=()=>{if(r||(r=!0,s(996)),"function"==typeof o)return o();console.warn("[Module Federation] prevStartup is not a function, skipping startup execution")},(()=>{var e={792:0};s.f.j=(t,o)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else if(/^(392|488)$/.test(t))e[t]=0;else{var n=new Promise(((o,n)=>r=e[t]=[o,n]));o.push(r[2]=n);var i=s.p+s.u(t),a=new Error;s.l(i,(o=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var n=o&&("load"===o.type?"missing":o.type),i=o&&o.target&&o.target.src;a.message="Loading chunk "+t+" failed.\n("+n+": "+i+")",a.name="ChunkLoadError",a.type=n,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,o)=>{var r,n,[i,a,c]=o,l=0;if(i.some((t=>0!==e[t]))){for(r in a)s.o(a,r)&&(s.m[r]=a[r]);c&&c(s)}for(t&&t(o);l<i.length;l++)n=i[l],s.o(e,n)&&e[n]&&e[n][0](),e[n]=0},o=globalThis.webpackChunkappshell_react_shell=globalThis.webpackChunkappshell_react_shell||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),s.nc=void 0,s.x(),s(418)})();
|
package/dist/mf-manifest.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"name": "Appshell",
|
|
6
6
|
"type": "app",
|
|
7
7
|
"buildInfo": {
|
|
8
|
-
"buildVersion": "1.0.0-alpha.
|
|
8
|
+
"buildVersion": "1.0.0-alpha.25",
|
|
9
9
|
"buildName": "@appshell/react-shell"
|
|
10
10
|
},
|
|
11
11
|
"remoteEntry": {
|
|
@@ -24,12 +24,33 @@
|
|
|
24
24
|
"publicPath": "auto"
|
|
25
25
|
},
|
|
26
26
|
"shared": [
|
|
27
|
+
{
|
|
28
|
+
"id": "Appshell:@appshell/react",
|
|
29
|
+
"name": "@appshell/react",
|
|
30
|
+
"version": "1.0.0-alpha.25",
|
|
31
|
+
"singleton": true,
|
|
32
|
+
"requiredVersion": "^undefined",
|
|
33
|
+
"assets": {
|
|
34
|
+
"js": {
|
|
35
|
+
"async": [],
|
|
36
|
+
"sync": [
|
|
37
|
+
"58.js",
|
|
38
|
+
"677.js"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"css": {
|
|
42
|
+
"async": [],
|
|
43
|
+
"sync": []
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"fallback": ""
|
|
47
|
+
},
|
|
27
48
|
{
|
|
28
49
|
"id": "Appshell:@appshell/runtime",
|
|
29
50
|
"name": "@appshell/runtime",
|
|
30
|
-
"version": "1.0.0-alpha.
|
|
51
|
+
"version": "1.0.0-alpha.25",
|
|
31
52
|
"singleton": true,
|
|
32
|
-
"requiredVersion": "^1.0.0-alpha.
|
|
53
|
+
"requiredVersion": "^1.0.0-alpha.25",
|
|
33
54
|
"assets": {
|
|
34
55
|
"js": {
|
|
35
56
|
"async": [],
|
package/dist/mf-stats.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"name": "Appshell",
|
|
6
6
|
"type": "app",
|
|
7
7
|
"buildInfo": {
|
|
8
|
-
"buildVersion": "1.0.0-alpha.
|
|
8
|
+
"buildVersion": "1.0.0-alpha.25",
|
|
9
9
|
"buildName": "@appshell/react-shell"
|
|
10
10
|
},
|
|
11
11
|
"remoteEntry": {
|
|
@@ -26,10 +26,35 @@
|
|
|
26
26
|
"shared": [
|
|
27
27
|
{
|
|
28
28
|
"singleton": true,
|
|
29
|
-
"requiredVersion": "^
|
|
29
|
+
"requiredVersion": "^undefined",
|
|
30
|
+
"shareScope": "default",
|
|
31
|
+
"name": "@appshell/react",
|
|
32
|
+
"version": "1.0.0-alpha.25",
|
|
33
|
+
"eager": false,
|
|
34
|
+
"id": "Appshell:@appshell/react",
|
|
35
|
+
"assets": {
|
|
36
|
+
"js": {
|
|
37
|
+
"async": [],
|
|
38
|
+
"sync": [
|
|
39
|
+
"58.js",
|
|
40
|
+
"677.js"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"css": {
|
|
44
|
+
"async": [],
|
|
45
|
+
"sync": []
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"usedIn": [],
|
|
49
|
+
"usedExports": [],
|
|
50
|
+
"fallback": ""
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"singleton": true,
|
|
54
|
+
"requiredVersion": "^1.0.0-alpha.25",
|
|
30
55
|
"shareScope": "default",
|
|
31
56
|
"name": "@appshell/runtime",
|
|
32
|
-
"version": "1.0.0-alpha.
|
|
57
|
+
"version": "1.0.0-alpha.25",
|
|
33
58
|
"eager": false,
|
|
34
59
|
"id": "Appshell:@appshell/runtime",
|
|
35
60
|
"assets": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appshell/react-shell",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.25",
|
|
4
4
|
"description": "Appshell shell bundle for React",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"repository": {
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"appshell"
|
|
47
47
|
],
|
|
48
48
|
"license": "MIT",
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "7d90eb91be3cb50aae5aaa680063878dfcaafea2"
|
|
50
50
|
}
|
package/dist/510.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunkappshell_react_shell=globalThis.webpackChunkappshell_react_shell||[]).push([[510],{510(e,t,n){var r=n(202),o=n(650);let a=!1;const s=new Set,i=async(e,t,n,r="default")=>{console.debug(`loading Appshell component: { scope: ${e}, module: ${t}, shareScope: ${r} }`),a||(a=!0,(0,o.getInstance)()||(0,o.init)({name:"Appshell",remotes:[]})),s.has(e)||(s.add(e),(0,o.registerRemotes)([{name:e,entry:n}]));const i=t.replace(/^\.\//,""),c=await(0,o.loadRemote)(`${e}/${i}`);if(!c)throw new Error(`Failed to find module container ${e}`);return console.debug(`Appshell component loaded: { scope: ${e}, module: ${t}, shareScope: ${r} }`),c.default};(Object.getOwnPropertyDescriptor(i,"name")||{}).writable||Object.defineProperty(i,"name",{value:"default",configurable:!0});const c=(e={})=>{const t=e.composition??("undefined"==typeof window?void 0:window.__appshell_config__),n=e.resolver??((...e)=>async t=>{for(const n of e){const e=await n(t);if(e)return e}})((e=>async t=>{const n=e?.remotes[t];if(e&&n)return{remote:n,vars:e.vars[n.scope]??{}}})(t),((e,t="")=>async n=>{if(!e)return;const r=`${t}/v1/applications/${e.applicationId}/remotes/${n}`,o=await fetch(r,{credentials:"include"});if(!o.ok)return;const a=await o.json();return{remote:a,vars:e.vars[a.scope]??{}}})(t));return async e=>{const t=t=>new Error(`Failed to load component '${e}'. ${t?.toString()}`);let o;try{o=await n(e)}catch(e){throw t(e)}if(!o)throw new Error(`Remote resource not found in registry. Expected: ${e}`);const{remote:a,vars:s}=o;try{return(0,r.setVars)(a.scope,s),[await i(a.scope,a.module,a.remoteEntryUrl,a.shareScope),a]}catch(e){throw t(e)}}};(Object.getOwnPropertyDescriptor(c,"name")||{}).writable||Object.defineProperty(c,"name",{value:"default",configurable:!0});const l=c;var d=n(488),u=n.n(d);const p=(0,d.createContext)(void 0),m=({remote:e,children:t})=>u().createElement(p.Provider,{value:e},t);m.defaultProps={remote:void 0},p.Consumer;const f=({remote:e,reason:t})=>u().createElement("div",{style:{border:"3px solid red"}},u().createElement("h5",null,`Error loading Appshell component '${e}.'`),u().createElement("span",{style:{fontSize:"1rem"}},t)),h=({remote:e,fallback:t,...n})=>{const[r,o]=(0,d.useState)();return(0,d.useEffect)((()=>{let t=!1;const r=l();return o(void 0),async function(){try{const[a,s]=await r(e);if(t||!a)return;o(u().createElement(m,{remote:s},u().createElement(a,n)))}catch(n){t||o(u().createElement(f,{remote:e,reason:`${n}`}))}}(),()=>{t=!0}}),[e,...Object.values(n)]),console.debug(`rendering RemoteSlot[${e}], loading=${!r}`),u().createElement(u().Fragment,null,r||t)};h.defaultProps={fallback:void 0};const v=h,g=()=>(void 0).useContext(void 0);(Object.getOwnPropertyDescriptor(g,"name")||{}).writable||Object.defineProperty(g,"name",{value:"default",configurable:!0});var b=n(873);const y="appshell-overlay-badge",w=["position:fixed","bottom:12px","left:12px","z-index:2147483647","max-width:min(420px, calc(100vw - 24px))","padding:8px 12px","border-radius:6px","border:1px solid #f0b429","background:#3d3016","color:#f7e3a1","font:12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace","box-shadow:0 2px 8px rgba(0,0,0,.35)"].join(";"),x=e=>{const t=e?.overlay;if(!t||document.getElementById(y))return;const n=document.createElement("div");n.id=y,n.innerHTML=((e,t="prod")=>{const n=["dev"===t&&"development shell",e.length&&`${e.length} remote${1===e.length?"":"s"} redirected`].filter(Boolean),r=e.map((e=>{return`<li>${t=e,t.replace(/&/g,"&").replace(/</g,"<")}</li>`;var t})).join("");return[`<details style="${w}" open>`,`<summary style="cursor:pointer;font-weight:600;list-style:none">⚠ Development overlay — ${n.join(", ")}</summary>`,r?`<ul style="margin:6px 0 0;padding-left:16px">${r}</ul>`:"","</details>"].join("")})(t.remotes??[],t.shellFlavor),document.body.appendChild(n)};(Object.getOwnPropertyDescriptor(x,"name")||{}).writable||Object.defineProperty(x,"name",{value:"default",configurable:!0});var E=n(591),$=n.n(E),O=n(740),j=n.n(O),P=n(128),T=n.n(P),C=n(855),S=n.n(C),A=n(51),_=n.n(A),k=n(656),M=n.n(k),I=n(97),R={};R.styleTagTransform=M(),R.setAttributes=S(),R.insert=T().bind(null,"head"),R.domAPI=j(),R.insertStyleElement=_(),$()(I.A,R),I.A&&I.A.locals&&I.A.locals;const D=e=>e.parentNode?.removeChild(e),F=e=>{const t=document.getElementById("appshell-splash");if(!t)return()=>{};if(e.firstElementChild)return D(t),()=>{};const n=new MutationObserver((()=>{e.firstElementChild&&(n.disconnect(),D(t))}));n.observe(e,{childList:!0});const r=setTimeout((()=>{n.disconnect(),D(t)}),3e4);return()=>{n.disconnect(),clearTimeout(r)}};function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N.apply(null,arguments)}(Object.getOwnPropertyDescriptor(F,"name")||{}).writable||Object.defineProperty(F,"name",{value:"default",configurable:!0});const H=document.getElementById("root"),L=(0,b.H)(H),z=window.__appshell_config__;if(x(z),!z?.root)throw new Error("No root remote to mount. The registry supplies one in the composition.");const B=z.root,U=z.rootProps;F(H),L.render(u().createElement(u().StrictMode,null,u().createElement(v,N({remote:B},U))))},97(e,t,n){n.d(t,{A:()=>i});var r=n(758),o=n.n(r),a=n(935),s=n.n(a)()(o());s.push([e.id,"/*\n * The one reset on the page.\n *\n * Packages must not ship their own — several global resets (Tailwind's Preflight, for\n * one) fight each other and the shell. This is structural only: it holds no view on how\n * an application looks, which is the packages' and the theme's business, but it does own\n * the handful of browser defaults that must be settled exactly once.\n */\nhtml,\nbody {\n margin: 0;\n padding: 0;\n}\n\nbody {\n min-height: 100vh;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n#root {\n min-height: 100vh;\n}\n",""]);const i=s},935(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var i=0;i<this.length;i++){var c=this[i][0];null!=c&&(s[c]=!0)}for(var l=0;l<e.length;l++){var d=[].concat(e[l]);r&&s[d[0]]||(void 0!==a&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=a),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),t.push(d))}},t}},758(e){e.exports=function(e){return e[1]}},873(e,t,n){var r=n(536);t.H=r.createRoot,r.hydrateRoot},591(e){var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},s=[],i=0;i<e.length;i++){var c=e[i],l=r.base?c[0]+r.base:c[0],d=a[l]||0,u="".concat(l," ").concat(d);a[l]=d+1;var p=n(u),m={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)t[p].references++,t[p].updater(m);else{var f=o(m,r);r.byIndex=i,t.splice(i,0,{identifier:u,updater:f,references:1})}s.push(u)}return s}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var s=0;s<a.length;s++){var i=n(a[s]);t[i].references--}for(var c=r(e,o),l=0;l<a.length;l++){var d=n(a[l]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}a=c}}},128(e){var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},51(e){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},855(e,t,n){e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},740(e){e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},656(e){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}}]);
|