@empjs/share 3.9.2 → 3.9.3
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/output/sdk.js +1 -1
- package/output/sdk.js.map +1 -1
- package/package.json +3 -3
package/output/sdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function _array_like_to_array(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _array_with_holes(e){if(Array.isArray(e))return e}function _array_without_holes(e){if(Array.isArray(e))return _array_like_to_array(e)}function _assert_this_initialized(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function asyncGeneratorStep(e,t,n,r,o,a,i){try{var c=e[a](i);var s=c.value}catch(e){n(e);return}if(c.done){t(s)}else{Promise.resolve(s).then(r,o)}}function _async_to_generator(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){asyncGeneratorStep(a,r,o,i,c,"next",e)}function c(e){asyncGeneratorStep(a,r,o,i,c,"throw",e)}i(undefined)})}}function _call_super(e,t,n){t=_get_prototype_of(t);return _possible_constructor_return(e,_is_native_reflect_construct()?Reflect.construct(t,n||[],_get_prototype_of(e).constructor):t.apply(e,n))}function _class_call_check(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function _create_class(e,t,n){if(t)_defineProperties(e.prototype,t);if(n)_defineProperties(e,n);return e}function _define_property(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function _get_prototype_of(e){_get_prototype_of=Object.setPrototypeOf?Object.getPrototypeOf:function e(e){return e.__proto__||Object.getPrototypeOf(e)};return _get_prototype_of(e)}function _inherits(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)_set_prototype_of(e,t)}function _instanceof(e,t){if(t!=null&&typeof Symbol!=="undefined"&&t[Symbol.hasInstance]){return!!t[Symbol.hasInstance](e)}else{return e instanceof t}}function _iterable_to_array(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _iterable_to_array_limit(e,t){var n=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n==null)return;var r=[];var o=true;var a=false;var i,c;try{for(n=n.call(e);!(o=(i=n.next()).done);o=true){r.push(i.value);if(t&&r.length===t)break}}catch(e){a=true;c=e}finally{try{if(!o&&n["return"]!=null)n["return"]()}finally{if(a)throw c}}return r}function _non_iterable_rest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _non_iterable_spread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _possible_constructor_return(e,t){if(t&&(_type_of(t)==="object"||typeof t==="function")){return t}return _assert_this_initialized(e)}function _set_prototype_of(e,t){_set_prototype_of=Object.setPrototypeOf||function e(e,t){e.__proto__=t;return e};return _set_prototype_of(e,t)}function _sliced_to_array(e,t){return _array_with_holes(e)||_iterable_to_array_limit(e,t)||_unsupported_iterable_to_array(e,t)||_non_iterable_rest()}function _to_array(e){return _array_with_holes(e)||_iterable_to_array(e)||_unsupported_iterable_to_array(e)||_non_iterable_rest()}function _to_consumable_array(e){return _array_without_holes(e)||_iterable_to_array(e)||_unsupported_iterable_to_array(e)||_non_iterable_spread()}function _type_of(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function _unsupported_iterable_to_array(e,t){if(!e)return;if(typeof e==="string")return _array_like_to_array(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _array_like_to_array(e,t)}function _is_native_reflect_construct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_is_native_reflect_construct=function(){return!!e})()}function _ts_generator(e,t){var n,r,o,a={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return i.next=c(0),i["throw"]=c(1),i["return"]=c(2),typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(e){return function(t){return s([e,t])}}function s(c){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,c[0]&&(a=0)),a)try{if(n=1,r&&(o=c[0]&2?r["return"]:c[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;if(r=0,o)c=[c[0]&2,o.value];switch(c[0]){case 0:case 1:o=c;break;case 4:a.label++;return{value:c[1],done:false};case 5:a.label++;r=c[1];c=[0];continue;case 7:c=a.ops.pop();a.trys.pop();continue;default:if(!(o=a.trys,o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1];o=c;break}if(o&&a.label<o[2]){a.label=o[2];a.ops.push(c);break}if(o[2])a.ops.pop();a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e];r=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}}var EMP_SHARE_RUNTIME=function(){var M=function e(){return(typeof window==="undefined"?"undefined":_type_of(window))<"u"};var Q=function e(){return(typeof process==="undefined"?"undefined":_type_of(process))<"u"&&process.env&&process.env.FEDERATION_DEBUG?!!process.env.FEDERATION_DEBUG:(typeof FEDERATION_DEBUG==="undefined"?"undefined":_type_of(FEDERATION_DEBUG))<"u"&&!!FEDERATION_DEBUG};var br=function e(e){try{return JSON.stringify(e,null,2)}catch(e){return""}};var Sr=function e(){try{if((typeof window==="undefined"?"undefined":_type_of(window))<"u"&&window.localStorage)return localStorage.getItem(Ve)===Be}catch(e){return(typeof document==="undefined"?"undefined":_type_of(document))<"u"}return!1};var re=function e(e){try{return JSON.stringify(e,null,2)}catch(e){return""}};var Ge=function e(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")};var $e=function e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var n,r;var o=t.remotes,a=o===void 0?{}:o,c=t.overrides,s=c===void 0?{}:c,u=t.version,l,f=i(function(){return"publicPath"in e.metaData?e.metaData.publicPath==="auto"&&u?Ge(u):e.metaData.publicPath:e.metaData.getPublicPath},"getPublicPath"),h=Object.keys(s),d={};if(!Object.keys(a).length){var p;d=((p=e.remotes)==null?void 0:p.reduce(function(e,t){var n,r=t.federationContainerName;return h.includes(r)?n=s[r]:"version"in t?n=t.version:n=t.entry,e[r]={matchedVersion:n},e},{}))||{}}Object.keys(a).forEach(function(e){return d[e]={matchedVersion:h.includes(e)?s[e]:a[e]}});var m=e.metaData,v=m.remoteEntry,y=v.path,g=v.name,b=v.type,_=m.types,E=m.buildInfo,S=E.buildVersion,I=m.globalName,R=m.ssrRemoteEntry,w=e.exposes,k={version:u||"",buildVersion:S,globalName:I,remoteEntry:V(y,g),remoteEntryType:b,remoteTypes:V(_.path,_.name),remoteTypesZip:_.zip||"",remoteTypesAPI:_.api||"",remotesInfo:d,shared:e===null||e===void 0?void 0:e.shared.map(function(e){return{assets:e.assets,sharedName:e.name,version:e.version}}),modules:w===null||w===void 0?void 0:w.map(function(e){return{moduleName:e.name,modulePath:e.path,assets:e.assets}})};if((n=e.metaData)!=null&&n.prefetchInterface){var O=e.metaData.prefetchInterface;k=j({},k,{prefetchInterface:O})}if((r=e.metaData)!=null&&r.prefetchEntry){var N=e.metaData.prefetchEntry,A=N.path,T=N.name,P=N.type;k=j({},k,{prefetchEntry:V(A,T),prefetchEntryType:P})}if("publicPath"in e.metaData?l=j({},k,{publicPath:f()}):l=j({},k,{getPublicPath:f()}),R){var x=V(R.path,R.name);l.ssrRemoteEntry=x,l.ssrRemoteEntryType=R.type||"commonjs-module"}return l};var oe=function e(e){return!!("remoteEntry"in e&&e.remoteEntry.includes(Se))};var Ie=function e(e,t){return _async_to_generator(function(){var n;return _ts_generator(this,function(r){switch(r.label){case 0:r.trys.push([0,2,,3]);return[4,e()];case 1:return[2,r.sent()];case 2:n=r.sent();!t&&se(n);return[2];case 3:return[2]}})})()};var ve=function e(e,t){var n=/^(https?:)?\/\//i,r=e.replace(n,"").replace(/\/$/,""),o=t.replace(n,"").replace(/\/$/,"");return r===o};var ne=function e(e){var t=null,n=!0,r=2e4,o,a=document.getElementsByTagName("script");for(var c=0;c<a.length;c++){var s=a[c],u=s.getAttribute("src");if(u&&ve(u,e.url)){t=s,n=!1;break}}if(!t){var l=e.attrs;t=document.createElement("script"),t.type=(l===null||l===void 0?void 0:l.type)==="module"?"module":"text/javascript",t.src=e.url;var f;e.createScriptHook&&(f=e.createScriptHook(e.url,e.attrs),_instanceof(f,HTMLScriptElement)?t=f:(typeof f==="undefined"?"undefined":_type_of(f))=="object"&&("script"in f&&f.script&&(t=f.script),"timeout"in f&&f.timeout&&(r=f.timeout))),l&&!f&&Object.keys(l).forEach(function(e){t&&(e==="async"||e==="defer"?t[e]=l[e]:t.getAttribute(e)||t.setAttribute(e,l[e]))})}var h=i(function(n,r){return _async_to_generator(function(){var a,c,s,u,l;return _ts_generator(this,function(f){switch(f.label){case 0:if(!(clearTimeout(o),t&&(t.onerror=null,t.onload=null,Ie(function(){var n=e.needDeleteScript,r=n===void 0?!0:n;r&&(t===null||t===void 0?void 0:t.parentNode)&&t.parentNode.removeChild(t)}),n&&typeof n=="function")))return[3,3];s=n(r);if(!_instanceof(s,Promise))return[3,2];return[4,s];case 1:l=f.sent();return[2,(e==null||(u=e.cb)==null||u.call(e),l)];case 2:return[2,(e==null||(c=e.cb)==null||c.call(e),s)];case 3:e==null||(a=e.cb)==null||a.call(e);return[2]}})})()},"onScriptComplete");return t.onerror=h.bind(null,t.onerror),t.onload=h.bind(null,t.onload),o=setTimeout(function(){h(null,new Error('Remote script "'.concat(e.url,'" time-outed.')))},r),{script:t,needAttach:n}};var B=function e(e){var t=null,n=!0,r=document.getElementsByTagName("link");for(var o=0;o<r.length;o++){var a=r[o],c=a.getAttribute("href"),s=a.getAttribute("ref");if(c&&ve(c,e.url)&&s===e.attrs.ref){t=a,n=!1;break}}if(!t){t=document.createElement("link"),t.setAttribute("href",e.url);var u,l=e.attrs;e.createLinkHook&&(u=e.createLinkHook(e.url,l),_instanceof(u,HTMLLinkElement)&&(t=u)),l&&!u&&Object.keys(l).forEach(function(e){t&&!t.getAttribute(e)&&t.setAttribute(e,l[e])})}var f=i(function(n,r){if(t&&(t.onerror=null,t.onload=null,Ie(function(){var n=e.needDeleteLink,r=n===void 0?!0:n;r&&(t===null||t===void 0?void 0:t.parentNode)&&t.parentNode.removeChild(t)}),n)){var o=n(r);return e.cb(),o}e.cb()},"onLinkComplete");return t.onerror=f.bind(null,t.onerror),t.onload=f.bind(null,t.onload),{link:t,needAttach:n}};var W=function e(e,t){var n=t.attrs,r=n===void 0?{}:n,o=t.createScriptHook;return new Promise(function(t,n){var a=ne({url:e,cb:t,attrs:j({fetchpriority:"high"},r),createScriptHook:o,needDeleteScript:!0}),i=a.script,c=a.needAttach;c&&document.head.appendChild(i)})};var J=function e(e){if(!e)throw new Error("import specifier is required");return new Function("name","return import(name)")(e).then(function(e){return e}).catch(function(t){throw console.error("Error importing module ".concat(e,":"),t),t})};var Ue=function Ue(url,cb,attrs,createScriptHook){if(createScriptHook){var _$e=createScriptHook(url);_$e&&(typeof _$e==="undefined"?"undefined":_type_of(_$e))=="object"&&"url"in _$e&&(url=_$e.url)}var urlObj;try{urlObj=new URL(url)}catch(e){console.error("Error constructing URL:",e),cb(new Error("Invalid URL: ".concat(e)));return}var getFetch=i(function(){return _async_to_generator(function(){return _ts_generator(this,function(e){if((typeof __webpack_require__==="undefined"?"undefined":_type_of(__webpack_require__))<"u")try{if(__webpack_require__.federation.instance.loaderHook.lifecycle.fetch)return[2,vr]}catch(e){console.warn("federation.instance.loaderHook.lifecycle.fetch failed:",e)}return[2,(typeof fetch==="undefined"?"undefined":_type_of(fetch))>"u"?st():fetch]})})()},"getFetch"),handleScriptFetch=i(function(f,urlObj){return _async_to_generator(function(){var _vm_constants,res,data,_ref,path,vm,scriptContext,urlDirname,filename,_vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER,script,exportedInterface,_$e,e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,4,,5]);return[4,f(urlObj.href)];case 1:res=_state.sent();return[4,res.text()];case 2:data=_state.sent();return[4,Promise.all([J("path"),J("vm")])];case 3:_ref=_sliced_to_array.apply(void 0,[_state.sent(),2]),path=_ref[0],vm=_ref[1],scriptContext={exports:{},module:{exports:{}}},urlDirname=urlObj.pathname.split("/").slice(0,-1).join("/"),filename=path.basename(urlObj.pathname);script=new vm.Script("(function(exports, module, require, __dirname, __filename) {".concat(data,"\n})"),{filename:filename,importModuleDynamically:(_vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER=(_vm_constants=vm.constants)==null?void 0:_vm_constants.USE_MAIN_CONTEXT_DEFAULT_LOADER)!=null?_vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER:J});script.runInThisContext()(scriptContext.exports,scriptContext.module,eval("require"),urlDirname,filename);exportedInterface=scriptContext.module.exports||scriptContext.exports;if(attrs&&exportedInterface&&attrs.globalName){_$e=exportedInterface[attrs.globalName]||exportedInterface;cb(void 0,_$e);return[2]}cb(void 0,exportedInterface);return[3,5];case 4:e=_state.sent();cb(_instanceof(e,Error)?e:new Error("Script execution error: ".concat(e)));return[3,5];case 5:return[2]}})})()},"handleScriptFetch");getFetch().then(function(e){return _async_to_generator(function(){var t,n;return _ts_generator(this,function(r){switch(r.label){case 0:if(!((attrs===null||attrs===void 0?void 0:attrs.type)==="esm"||(attrs===null||attrs===void 0?void 0:attrs.type)==="module"))return[3,2];t=[urlObj.href];n={fetch:e};return[4,J("vm")];case 1:return[2,De.apply(void 0,t.concat([(n.vm=r.sent(),n)])).then(function(e){return _async_to_generator(function(){return _ts_generator(this,function(t){switch(t.label){case 0:return[4,e.evaluate()];case 1:t.sent(),cb(void 0,e.namespace);return[2]}})})()}).catch(function(e){cb(_instanceof(e,Error)?e:new Error("Script execution error: ".concat(e)))})];case 2:handleScriptFetch(e,urlObj);return[2]}})})()}).catch(function(e){cb(e)})};var q=function e(e,t){return new Promise(function(n,r){Ue(e,function(e,o){if(e)r(e);else{var a,i;var c=(t==null||(a=t.attrs)==null?void 0:a.globalName)||"__FEDERATION_".concat(t==null||(i=t.attrs)==null?void 0:i.name,":custom__"),s=globalThis[c]=o;n(s)}},t.attrs,t.createScriptHook)})};var it=function e(e,t,n){return function(r){if(r===!1)return!1;if((typeof r==="undefined"?"undefined":_type_of(r))>"u")return e?t:!1;if(r===!0)return t;if(r&&(typeof r==="undefined"?"undefined":_type_of(r))=="object")return j({},t,r);throw new Error("Unexpected type for `".concat(n,"`, expect boolean/undefined/object, got: ").concat(typeof r==="undefined"?"undefined":_type_of(r)))}};var or=function e(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n};var Ye=function e(){return(typeof FEDERATION_BUILD_IDENTIFIER==="undefined"?"undefined":_type_of(FEDERATION_BUILD_IDENTIFIER))<"u"?FEDERATION_BUILD_IDENTIFIER:""};var w=function e(e,t){e||F(t)};var F=function e(e){throw _instanceof(e,Error)?(e.message="".concat(Me,": ").concat(e.message),e):new Error("".concat(Me,": ").concat(e))};var ge=function e(e){_instanceof(e,Error)?(e.message="".concat(Me,": ").concat(e.message),console.warn(e)):console.warn("".concat(Me,": ").concat(e))};var qt=function e(e,t){return e.findIndex(function(e){return e===t})===-1&&e.push(t),e};var he=function e(e){return"version"in e&&e.version?"".concat(e.name,":").concat(e.version):"entry"in e&&e.entry?"".concat(e.name,":").concat(e.entry):"".concat(e.name)};var Xe=function e(e){return _type_of(e.entry)<"u"};var nr=function e(e){return!e.entry.includes(".json")&&e.entry.includes(".js")};var Je=function e(e){return e&&(typeof e==="undefined"?"undefined":_type_of(e))=="object"};var Ur=function e(e){return uo.call(e)==="[object Object]"};var ar=function e(e){return Array.isArray(e)?e:[e]};var sr=function e(e){var t={url:"",type:"global",globalName:""};return M()?"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};var Ne=function e(e,t,n){Object.defineProperty(e,t,{value:n,configurable:!1,writable:!0})};var Oe=function e(e,t){return Object.hasOwnProperty.call(e,t)};var wt=function e(e){var t,n,r,o,a,i;Oe(e,"__VMOK__")&&!Oe(e,"__FEDERATION__")&&Ne(e,"__FEDERATION__",e.__VMOK__),Oe(e,"__FEDERATION__")||(Ne(e,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),Ne(e,"__VMOK__",e.__FEDERATION__));var c;(c=(t=e.__FEDERATION__).__GLOBAL_PLUGIN__)!=null||(t.__GLOBAL_PLUGIN__=[]);var s;(s=(n=e.__FEDERATION__).__INSTANCES__)!=null||(n.__INSTANCES__=[]);var u;(u=(r=e.__FEDERATION__).moduleInfo)!=null||(r.moduleInfo={});var l;(l=(o=e.__FEDERATION__).__SHARE__)!=null||(o.__SHARE__={});var f;(f=(a=e.__FEDERATION__).__MANIFEST_LOADING__)!=null||(a.__MANIFEST_LOADING__={});var h;(h=(i=e.__FEDERATION__).__PRELOADED_MAP__)!=null||(i.__PRELOADED_MAP__=new Map)};var Vr=function e(e,t){var n=Ye();return globalThis.__FEDERATION__.__INSTANCES__.find(function(r){return!!(n&&r.options.id===Ye()||r.options.name===e&&!r.options.version&&!t||r.options.name===e&&t&&r.options.version===t)})};var Br=function e(e){globalThis.__FEDERATION__.__INSTANCES__.push(e)};var Wr=function e(){return globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__};var qr=function e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Q();t&&(globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="0.6.10")};var X=function e(e,t){if(typeof t=="string"){if(e[t])return{value:e[t],key:t};{var n=Object.keys(e);var r=true,o=false,a=undefined;try{for(var i=n[Symbol.iterator](),c;!(r=(c=i.next()).done);r=true){var s=c.value;var u=_sliced_to_array(s.split(":"),2),l=u[0],f=u[1],h="".concat(l,":").concat(t),d=e[h];if(d)return{value:d,key:h}}}catch(e){o=true;a=e}finally{try{if(!r&&i.return!=null){i.return()}}finally{if(o){throw a}}}return{value:void 0,key:t}}}else throw new Error("key must be string")};var L=function e(e){return new RegExp(e)};var k=function e(e){return!e||e.toLowerCase()==="x"||e==="*"};var ir=function e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return function(e){return t.reduce(function(e,t){return t(e)},e)}};var zt=function e(e){return e.match(L(vo))};var Kt=function e(e,t,n,r){var o="".concat(e,".").concat(t,".").concat(n);return r?"".concat(o,"-").concat(r):o};var zr=function e(e){return e.replace(L(yo),function(e,t,n,r,o,a,i,c,s,u,l,f){return k(n)?t="":k(r)?t=">=".concat(n,".0.0"):k(o)?t=">=".concat(n,".").concat(r,".0"):t=">=".concat(t),k(s)?c="":k(u)?c="<".concat(Number(s)+1,".0.0-0"):k(l)?c="<".concat(s,".").concat(Number(u)+1,".0-0"):f?c="<=".concat(s,".").concat(u,".").concat(l,"-").concat(f):c="<=".concat(c),"".concat(t," ").concat(c).trim()})};var Kr=function e(e){return e.replace(L(go),"$1$2$3")};var Yr=function e(e){return e.replace(L(_o),"$1~")};var Xr=function e(e){return e.replace(L(Eo),"$1^")};var Jr=function e(e){return e.trim().split(/\s+/).map(function(e){return e.replace(L(So),function(e,t,n,r,o){return k(t)?"":k(n)?">=".concat(t,".0.0 <").concat(Number(t)+1,".0.0-0"):k(r)?t==="0"?">=".concat(t,".").concat(n,".0 <").concat(t,".").concat(Number(n)+1,".0-0"):">=".concat(t,".").concat(n,".0 <").concat(Number(t)+1,".0.0-0"):o?t==="0"?n==="0"?">=".concat(t,".").concat(n,".").concat(r,"-").concat(o," <").concat(t,".").concat(n,".").concat(Number(r)+1,"-0"):">=".concat(t,".").concat(n,".").concat(r,"-").concat(o," <").concat(t,".").concat(Number(n)+1,".0-0"):">=".concat(t,".").concat(n,".").concat(r,"-").concat(o," <").concat(Number(t)+1,".0.0-0"):t==="0"?n==="0"?">=".concat(t,".").concat(n,".").concat(r," <").concat(t,".").concat(n,".").concat(Number(r)+1,"-0"):">=".concat(t,".").concat(n,".").concat(r," <").concat(t,".").concat(Number(n)+1,".0-0"):">=".concat(t,".").concat(n,".").concat(r," <").concat(Number(t)+1,".0.0-0")})}).join(" ")};var Zr=function e(e){return e.trim().split(/\s+/).map(function(e){return e.replace(L($o),function(e,t,n,r,o){return k(t)?"":k(n)?">=".concat(t,".0.0 <").concat(Number(t)+1,".0.0-0"):k(r)?">=".concat(t,".").concat(n,".0 <").concat(t,".").concat(Number(n)+1,".0-0"):o?">=".concat(t,".").concat(n,".").concat(r,"-").concat(o," <").concat(t,".").concat(Number(n)+1,".0-0"):">=".concat(t,".").concat(n,".").concat(r," <").concat(t,".").concat(Number(n)+1,".0-0")})}).join(" ")};var Qr=function e(e){return e.split(/\s+/).map(function(e){return e.trim().replace(L(Io),function(e,t,n,r,o,a){var i=k(n),c=i||k(r),s=c||k(o);return t==="="&&s&&(t=""),a="",i?t===">"||t==="<"?"<0.0.0-0":"*":t&&s?(c&&(r=0),o=0,t===">"?(t=">=",c?(n=Number(n)+1,r=0,o=0):(r=Number(r)+1,o=0)):t==="<="&&(t="<",c?n=Number(n)+1:r=Number(r)+1),t==="<"&&(a="-0"),"".concat(t+n,".").concat(r,".").concat(o).concat(a)):c?">=".concat(n,".0.0").concat(a," <").concat(Number(n)+1,".0.0-0"):s?">=".concat(n,".").concat(r,".0").concat(a," <").concat(n,".").concat(Number(r)+1,".0-0"):e})}).join(" ")};var eo=function e(e){return e.trim().replace(L(bo),"")};var to=function e(e){return e.trim().replace(L(Ro),"")};var Ae=function e(e,t){return e=Number(e)||e,t=Number(t)||t,e>t?1:e===t?0:-1};var ro=function e(e,t){var n=e.preRelease,r=t.preRelease;if(n===void 0&&r)return 1;if(n&&r===void 0)return-1;if(n===void 0&&r===void 0)return 0;for(var o=0,a=n.length;o<=a;o++){var i=n[o],c=r[o];if(i!==c)return i===void 0&&c===void 0?0:i?c?Ae(i,c):-1:1}return 0};var we=function e(e,t){return Ae(e.major,t.major)||Ae(e.minor,t.minor)||Ae(e.patch,t.patch)||ro(e,t)};var Ke=function e(e,t){return e.version===t.version};var oo=function e(e,t){switch(e.operator){case"":case"=":return Ke(e,t);case">":return we(e,t)<0;case">=":return Ke(e,t)||we(e,t)<0;case"<":return we(e,t)>0;case"<=":return Ke(e,t)||we(e,t)>0;case void 0:return!0;default:return!1}};var no=function e(e){return ir(Jr,Zr,Qr,eo)(e)};var ao=function e(e){return ir(zr,Kr,Yr,Xr)(e.trim()).split(/\s+/).join(" ")};var Te=function e(e,t){if(!e)return!1;var n=ao(t).split(" ").map(function(e){return no(e)}).join(" ").split(/\s+/).map(function(e){return to(e)}),r=zt(e);if(!r)return!1;var o=_sliced_to_array(r,7),a=o[1],i=o[3],c=o[4],s=o[5],u=o[6],l={operator:a,version:Kt(i,c,s,u),major:i,minor:c,patch:s,preRelease:u===null||u===void 0?void 0:u.split(".")};var f=true,h=false,d=undefined;try{for(var p=n[Symbol.iterator](),m;!(f=(m=p.next()).done);f=true){var v=m.value;var y=zt(v);if(!y)return!1;var g=_sliced_to_array(y,7),b=g[1],_=g[3],E=g[4],S=g[5],I=g[6],R={operator:b,version:Kt(_,E,S,I),major:_,minor:E,patch:S,preRelease:I===null||I===void 0?void 0:I.split(".")};if(!oo(R,l))return!1}}catch(e){h=true;d=e}finally{try{if(!f&&p.return!=null){p.return()}}finally{if(h){throw d}}}return!0};var so=function e(e,t,n,r){var o;"get"in e?o=e.get:"lib"in e?o=i(function(){return Promise.resolve(e.lib)},"get"):o=i(function(){return Promise.resolve(function(){throw new Error("Can not get shared '".concat(n,"'!"))})},"get"),e.strategy&&ge('"shared.strategy is deprecated, please set in initOptions.shareStrategy instead!"');var a,c,s;return T({deps:[],useIn:[],from:t,loading:null},e,{shareConfig:T({requiredVersion:"^".concat(e.version),singleton:!1,eager:!1,strictVersion:!1},e.shareConfig),get:o,loaded:(e===null||e===void 0?void 0:e.loaded)||"lib"in e?!0:void 0,version:(a=e.version)!=null?a:"0",scope:Array.isArray(e.scope)?e.scope:[(c=e.scope)!=null?c:"default"],strategy:((s=e.strategy)!=null?s:r)||"version-first"})};var Yt=function e(e,t){var n=t.shared||{},r=t.name,o=Object.keys(n).reduce(function(e,o){var a=ar(n[o]);return e[o]=e[o]||[],a.forEach(function(n){e[o].push(so(n,r,o,t.shareStrategy))}),e},{}),a=T({},e.shared);return Object.keys(o).forEach(function(e){a[e]?o[e].forEach(function(t){a[e].find(function(e){return e.version===t.version})||a[e].push(t)}):a[e]=o[e]}),{shared:a,shareInfos:o}};var _e=function e(e,t){var n=i(function(e){if(!Number.isNaN(Number(e))){var t=e.split("."),n=e;for(var r=0;r<3-t.length;r++)n+=".0";return n}return e},"transformInvalidVersion");return!!Te(n(e),"<=".concat(n(t)))};var io=function e(e,t,n){var r=e[t][n],o=i(function(e,t){return!ye(r[e])&&_e(e,t)},"callback");return Ze(e[t][n],o)};var lo=function e(e,t,n){var r=e[t][n],o=i(function(e,t){return ye(r[t])?ye(r[e])?!!_e(e,t):!0:ye(r[e])?!1:_e(e,t)},"callback");return Ze(e[t][n],o)};var co=function e(e){return e==="loaded-first"?lo:io};var Y=function e(e,t,n,r){if(!e)return;var o=n.shareConfig,a=n.scope,c=a===void 0?de:a,s=n.strategy,u=Array.isArray(c)?c:[c];var l=true,f=false,h=undefined;try{var d=function(){var a=m.value;if(o&&e[a]&&e[a][t]){var c=o.requiredVersion,u=co(s)(e,a,t),l=i(function(){if(o.singleton){if(typeof c=="string"&&!Te(u,c)){var r="Version ".concat(u," from ").concat(u&&e[a][t][u].from," of shared singleton module ").concat(t," does not satisfy the requirement of ").concat(n.from," which needs ").concat(c,")");o.strictVersion?F(r):ge(r)}return e[a][t][u]}else{if(c===!1||c==="*"||Te(u,c))return e[a][t][u];var s=true,l=false,f=undefined;try{for(var h=Object.entries(e[a][t])[Symbol.iterator](),d;!(s=(d=h.next()).done);s=true){var p=_sliced_to_array(d.value,2),m=p[0],v=p[1];if(Te(m,c))return v}}catch(e){l=true;f=e}finally{try{if(!s&&h.return!=null){h.return()}}finally{if(l){throw f}}}}},"defaultResolver"),f={shareScopeMap:e,scope:a,pkgName:t,version:u,GlobalFederation:pe.__FEDERATION__,resolver:l};return{v:(r.emit(f)||f).resolver()}}};for(var p=u[Symbol.iterator](),m;!(l=(m=p.next()).done);l=true){var v=d();if(_type_of(v)==="object")return v.v}}catch(e){f=true;h=e}finally{try{if(!l&&p.return!=null){p.return()}}finally{if(f){throw h}}}};var Xt=function e(){return pe.__FEDERATION__.__SHARE__};var Jt=function e(e){var t=e.pkgName,n=e.extraOptions,r=e.shareInfos,o=i(function(e){if(!e)return;var t={};e.forEach(function(e){t[e.version]=e});var n=Ze(t,i(function(e,n){return!ye(t[e])&&_e(e,n)},"callback"));return t[n]},"defaultResolver");var a;var c=(a=n===null||n===void 0?void 0:n.resolver)!=null?a:o;return Object.assign({},c(r[t]),n===null||n===void 0?void 0:n.customShareInfo)};var Pr=function e(e,t){var n=true,r=false,o=undefined;try{for(var a=e[Symbol.iterator](),i;!(n=(i=a.next()).done);n=true){var c=i.value;var s=t.startsWith(c.name),u=t.replace(c.name,"");if(s){if(u.startsWith("/")){var l=c.name;return u=".".concat(u),{pkgNameOrAlias:l,expose:u,remote:c}}else if(u==="")return{pkgNameOrAlias:c.name,expose:".",remote:c}}var f=c.alias&&t.startsWith(c.alias),h=c.alias&&t.replace(c.alias,"");if(c.alias&&f){if(h&&h.startsWith("/")){var d=c.alias;return h=".".concat(h),{pkgNameOrAlias:d,expose:h,remote:c}}else if(h==="")return{pkgNameOrAlias:c.alias,expose:".",remote:c}}}}catch(e){r=true;o=e}finally{try{if(!n&&a.return!=null){a.return()}}finally{if(r){throw o}}}};var wo=function e(e,t){var n=true,r=false,o=undefined;try{for(var a=e[Symbol.iterator](),i;!(n=(i=a.next()).done);n=true){var c=i.value;if(t===c.name||c.alias&&t===c.alias)return c}}catch(e){r=true;o=e}finally{try{if(!n&&a.return!=null){a.return()}}finally{if(r){throw o}}}};var Mr=function e(e,t){var n=mo();return n.length>0&&n.forEach(function(t){(e===null||e===void 0?void 0:e.find(function(e){return e.name!==t.name}))&&e.push(t)}),e&&e.length>0&&e.forEach(function(e){t.forEach(function(t){t.applyPlugin(e)})}),e};var No=function e(e){return _async_to_generator(function(e){var t,n;return _ts_generator(this,function(r){t=e.entry,n=e.remoteEntryExports;return[2,new Promise(function(e,r){try{n?e(n):new Function("callbacks",'import("'.concat(t,'").then(callbacks[0]).catch(callbacks[1])'))([e,r])}catch(e){r(e)}})]})}).apply(this,arguments)};var Oo=function e(e){return _async_to_generator(function(e){var t,n;return _ts_generator(this,function(r){t=e.entry,n=e.remoteEntryExports;return[2,new Promise(function(e,r){try{n?e(n):new Function("callbacks",'System.import("'.concat(t,'").then(callbacks[0]).catch(callbacks[1])'))([e,r])}catch(e){r(e)}})]})}).apply(this,arguments)};var Ao=function e(e){return _async_to_generator(function(e){var t,n,r,o,a,c;return _ts_generator(this,function(s){t=e.name,n=e.globalName,r=e.entry,o=e.createScriptHook;a=xe(t,n),c=a.entryExports;return[2,c||W(r,{attrs:{},createScriptHook:i(function(e,t){var n=o.emit({url:e,attrs:t});if(n&&(_instanceof(n,HTMLScriptElement)||"script"in n||"timeout"in n))return n},"createScriptHook")}).then(function(){var e=xe(t,n),o=e.remoteEntryKey,a=e.entryExports;return w(a,"\n Unable to use the ".concat(t,"'s '").concat(r,"' URL with ").concat(o,"'s globalName to get remoteEntry exports.\n Possible reasons could be:\n\n 1. '").concat(r,"' is not the correct URL, or the remoteEntry resource or name is incorrect.\n\n 2. ").concat(o," cannot be used to get remoteEntry exports in the window object.\n ")),a}).catch(function(e){throw e})]})}).apply(this,arguments)};var To=function e(e){return _async_to_generator(function(e){var t,n,r,o,a,i,c;return _ts_generator(this,function(s){t=e.remoteInfo,n=e.remoteEntryExports,r=e.createScriptHook;o=t.entry,a=t.entryGlobalName,i=t.name,c=t.type;switch(c){case"esm":case"module":return[2,No({entry:o,remoteEntryExports:n})];case"system":return[2,Oo({entry:o,remoteEntryExports:n})];default:return[2,Ao({entry:o,globalName:a,name:i,createScriptHook:r})]}return[2]})}).apply(this,arguments)};var ko=function e(e){return _async_to_generator(function(e){var t,n,r,o,a,c,s,u;return _ts_generator(this,function(l){t=e.remoteInfo,n=e.createScriptHook;r=t.entry,o=t.entryGlobalName,a=t.name,c=t.type,s=xe(a,o),u=s.entryExports;return[2,u||q(r,{attrs:{name:a,globalName:o,type:c},createScriptHook:i(function(e,t){var r=n.emit({url:e,attrs:t});if(r&&"url"in r)return r},"createScriptHook")}).then(function(){var e=xe(a,o),t=e.remoteEntryKey,n=e.entryExports;return w(n,"\n Unable to use the ".concat(a,"'s '").concat(r,"' URL with ").concat(t,"'s globalName to get remoteEntry exports.\n Possible reasons could be:\n\n 1. '").concat(r,"' is not the correct URL, or the remoteEntry resource or name is incorrect.\n\n 2. ").concat(t," cannot be used to get remoteEntry exports in the window object.\n ")),n}).catch(function(e){throw e})]})}).apply(this,arguments)};var er=function e(e){var t=e.entry,n=e.name;return ae(n,t)};var Le=function e(e){return _async_to_generator(function(e){var t,n,r,o,a,i;return _ts_generator(this,function(c){t=e.origin,n=e.remoteEntryExports,r=e.remoteInfo;o=er(r);if(n)return[2,n];if(!fe[o]){a=t.remoteHandler.hooks.lifecycle.loadEntry,i=t.loaderHook.lifecycle.createScript;fe[o]=a.emit({createScriptHook:i,remoteInfo:r,remoteEntryExports:n}).then(function(e){return e||(M()?To({remoteInfo:r,remoteEntryExports:n,createScriptHook:i}):ko({remoteInfo:r,createScriptHook:i}))})}return[2,fe[o]]})}).apply(this,arguments)};var me=function e(e){return T({},e,{entry:"entry"in e?e.entry:"",type:e.type||cr,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||de})};var xt=function e(e,t){if(!Je(t))return!1;if(e!==t){for(var n in e)if(!(n in t))return!1}return!0};var ur=function e(e){return T({resourceCategory:"sync",share:!0,depsRemote:!0,prefetchInterface:!1},e)};var xr=function e(e,t){return t.map(function(t){var n=wo(e,t.nameOrAlias);return w(n,"Unable to preload ".concat(t.nameOrAlias," as it is not included in ").concat(!n&&re({remoteInfo:n,remotes:e}))),{remote:n,preloadConfig:ur(t)}})};var Po=function e(e){return e?e.map(function(e){return e==="."?e:e.startsWith("./")?e.replace("./",""):e}):[]};var tr=function e(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;var o=n.cssAssets,a=n.jsAssetsWithoutEntry,c=n.entryAssets;if(t.options.inBrowser){if(c.forEach(function(n){var r=n.moduleInfo,o=t.moduleCache.get(e.name);Le(o?{origin:t,remoteInfo:r,remoteEntryExports:o.remoteEntryExports}:{origin:t,remoteInfo:r,remoteEntryExports:void 0})}),r){var s={rel:"preload",as:"style"};o.forEach(function(e){var n=B({url:e,cb:i(function(){},"cb"),attrs:s,createLinkHook:i(function(e,n){var r=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:n});if(_instanceof(r,HTMLLinkElement))return r},"createLinkHook")}),r=n.link,o=n.needAttach;o&&document.head.appendChild(r)})}else{var u={rel:"stylesheet",type:"text/css"};o.forEach(function(e){var n=B({url:e,cb:i(function(){},"cb"),attrs:u,createLinkHook:i(function(e,n){var r=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:n});if(_instanceof(r,HTMLLinkElement))return r},"createLinkHook"),needDeleteLink:!1}),r=n.link,o=n.needAttach;o&&document.head.appendChild(r)})}if(r){var l={rel:"preload",as:"script"};a.forEach(function(e){var n=B({url:e,cb:i(function(){},"cb"),attrs:l,createLinkHook:i(function(e,n){var r=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:n});if(_instanceof(r,HTMLLinkElement))return r},"createLinkHook")}),r=n.link,o=n.needAttach;o&&document.head.appendChild(r)})}else{var f={fetchpriority:"high",type:(e===null||e===void 0?void 0:e.type)==="module"?"module":"text/javascript"};a.forEach(function(e){var n=ne({url:e,cb:i(function(){},"cb"),attrs:f,createScriptHook:i(function(e,n){var r=t.loaderHook.lifecycle.createScript.emit({url:e,attrs:n});if(_instanceof(r,HTMLScriptElement))return r},"createScriptHook"),needDeleteScript:!0}),r=n.script,o=n.needAttach;o&&document.head.appendChild(r)})}}};var rr=function e(e,t){var n=sr(t);n.url||F("The attribute remoteEntry of ".concat(e.name," must not be undefined."));var r=z(t,n.url);!M()&&!r.startsWith("http")&&(r="https:".concat(r)),e.type=n.type,e.entryGlobalName=n.globalName,e.entry=r,e.version=t.version,e.buildVersion=t.buildVersion};var Lr=function e(){return{name:"snapshot-plugin",afterResolve:function e(e){return _async_to_generator(function(){var t,n,r,o,a,i,c,s,u,l;return _ts_generator(this,function(f){switch(f.label){case 0:t=e.remote,n=e.pkgNameOrAlias,r=e.expose,o=e.origin,a=e.remoteInfo;if(!(!Xe(t)||!nr(t)))return[3,3];return[4,o.snapshotHandler.loadRemoteSnapshotInfo(t)];case 1:i=f.sent(),c=i.remoteSnapshot,s=i.globalSnapshot;rr(a,c);u={remote:t,preloadConfig:{nameOrAlias:n,exposes:[r],resourceCategory:"sync",share:!1,depsRemote:!1}};return[4,o.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:o,preloadOptions:u,remoteInfo:a,remote:t,remoteSnapshot:c,globalSnapshot:s})];case 2:l=f.sent();return[2,(l&&tr(a,o,l,!1),T({},e,{remoteSnapshot:c}))];case 3:return[2,e]}})})()}}};var Mo=function e(e){var t=e.split(":");return t.length===1?{name:t[0],version:void 0}:t.length===2?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}};var Hr=function e(e,t,n,r,o){var a=[],c=[],s=[],u=new Set,l=new Set,f=e.options,h=t.preloadConfig,d=h.depsRemote;if(hr(r,n,function(t,n,r){var o=function e(e){var n=e.map(function(e){return z(t,e)});return u.filter?n.filter(u.filter):n};var u;if(r)u=h;else if(Array.isArray(d)){var l=d.find(function(e){return e.nameOrAlias===n.name||e.nameOrAlias===n.alias});if(!l)return;u=ur(l)}else if(d===!0)u=h;else return;var f=z(t,sr(t).url);f&&s.push({name:n.name,moduleInfo:{name:n.name,entry:f,type:"remoteEntryType"in t?t.remoteEntryType:"global",entryGlobalName:"globalName"in t?t.globalName:n.name,shareScope:"",version:"version"in t?t.version:void 0},url:f});var p="modules"in t?t.modules:[],m=Po(u.exposes);if(m.length&&"modules"in t){var v;p=t==null||(v=t.modules)==null?void 0:v.reduce(function(e,t){return(m===null||m===void 0?void 0:m.indexOf(t.moduleName))!==-1&&e.push(t),e},[])}if(i(o,"handleAssets"),p){var y=p.length;for(var g=0;g<y;g++){var b,_,E,S,I,R;var w=p[g],k="".concat(n.name,"/").concat(w.moduleName);e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:w.moduleName==="."?n.name:k,name:n.name,remoteSnapshot:t,preloadConfig:u,remote:n,origin:e}),!po(k)&&(u.resourceCategory==="all"?((b=a).push.apply(b,_to_consumable_array(o(w.assets.css.async))),(_=a).push.apply(_,_to_consumable_array(o(w.assets.css.sync))),(E=c).push.apply(E,_to_consumable_array(o(w.assets.js.async))),(S=c).push.apply(S,_to_consumable_array(o(w.assets.js.sync)))):(u.resourceCategory="sync")&&((I=a).push.apply(I,_to_consumable_array(o(w.assets.css.sync))),(R=c).push.apply(R,_to_consumable_array(o(w.assets.js.sync)))),fo(k))}}},!0,{},o),o.shared){var p=i(function(t,n){var r=Y(e.shareScopeMap,n.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare);r&&typeof r.lib=="function"&&(n.assets.js.sync.forEach(function(e){u.add(e)}),n.assets.css.sync.forEach(function(e){l.add(e)}))},"collectSharedAssets");o.shared.forEach(function(e){var t;var n=(t=f.shared)==null?void 0:t[e.sharedName];if(!n)return;var r=e.version?n.find(function(t){return t.version===e.version}):n;r&&ar(r).forEach(function(t){p(t,e)})})}var m=c.filter(function(e){return!u.has(e)});return{cssAssets:a.filter(function(e){return!l.has(e)}),jsAssetsWithoutEntry:m,entryAssets:s}};var Lt=function e(e,t){var n=ke({name:t.options.name,version:t.options.version}),r=n&&"remotesInfo"in n&&n.remotesInfo&&X(n.remotesInfo,e.name).value;return r&&r.matchedVersion?{hostGlobalSnapshot:n,globalSnapshot:Zt(),remoteSnapshot:ke({name:e.name,version:r.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:Zt(),remoteSnapshot:ke({name:e.name,version:"version"in e?e.version:void 0})}};var mr=function e(e){if(b)return b.registerRemotes(e.remotes),b;var t=Vr(e.name,e.version);if(t)return t.initOptions(e),b||(b=t),t;{var n=Wr()||He;return b=new n(e),Br(b),b}};var pr=function e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return w(b,"Please call init first"),b.loadRemote.apply(b,t)};var fr=function e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return w(b,"Please call init first"),b.loadShare.apply(b,t)};var dr=function e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return w(b,"Please call init first"),b.loadShareSync.apply(b,t)};var yr=function e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return w(b,"Please call init first"),b.preloadRemote.apply(b,t)};var gr=function e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return w(b,"Please call init first"),b.registerRemotes.apply(b,t)};var _r=function e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return w(b,"Please call init first"),b.registerPlugins.apply(b,t)};var Er=function e(){return b};var rt=Object.defineProperty;var Lo=Object.getOwnPropertyDescriptor;var Ho=Object.getOwnPropertyNames;var Do=Object.prototype.hasOwnProperty;var U=function(e){return(typeof require==="undefined"?"undefined":_type_of(require))<"u"?require:(typeof Proxy==="undefined"?"undefined":_type_of(Proxy))<"u"?new Proxy(e,{get:function(e,t){return((typeof require==="undefined"?"undefined":_type_of(require))<"u"?require:e)[t]}}):e}(function(e){if((typeof require==="undefined"?"undefined":_type_of(require))<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var ot=function(e,t){for(var n in t)rt(e,n,{get:t[n],enumerable:!0})},Fo=function(e,t,n,r){var o=true,a=false,i=undefined;if(t&&(typeof t==="undefined"?"undefined":_type_of(t))=="object"||typeof t=="function")try{var c=function(){var o=u.value;!Do.call(e,o)&&o!==n&&rt(e,o,{get:function(){return t[o]},enumerable:!(r=Lo(t,o))||r.enumerable})};for(var s=Ho(t)[Symbol.iterator](),u;!(o=(u=s.next()).done);o=true)c()}catch(e){a=true;i=e}finally{try{if(!o&&s.return!=null){s.return()}}finally{if(a){throw i}}}return e};var jo=function(e){return Fo(rt({},"__esModule",{value:!0}),e)};var zo={};ot(zo,{MFRuntime:function(){return Qe},MFSDK:function(){return et}});var Qe={};ot(Qe,{FederationHost:function(){return He},Module:function(){return Pe},getInstance:function(){return Er},getRemoteEntry:function(){return Le},getRemoteInfo:function(){return me},init:function(){return mr},loadRemote:function(){return pr},loadScript:function(){return W},loadScriptNode:function(){return q},loadShare:function(){return fr},loadShareSync:function(){return dr},preloadRemote:function(){return yr},registerGlobalPlugins:function(){return lr},registerPlugins:function(){return _r},registerRemotes:function(){return gr}});var Co=Object.create,ee=Object.defineProperty,Go=Object.getOwnPropertyDescriptor,Uo=Object.getOwnPropertyNames,Vo=Object.getPrototypeOf,Bo=Object.prototype.hasOwnProperty,Wo=function(e,t,n){return t in e?ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},i=function(e,t){return ee(e,"name",{value:t,configurable:!0})},Yo=function(e){return(typeof U==="undefined"?"undefined":_type_of(U))<"u"?U:(typeof Proxy==="undefined"?"undefined":_type_of(Proxy))<"u"?new Proxy(e,{get:function(e,t){return((typeof U==="undefined"?"undefined":_type_of(U))<"u"?U:e)[t]}}):e}(function(e){if((typeof U==="undefined"?"undefined":_type_of(U))<"u")return U.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),te=function(e,t){return function(){return e&&(t=e(e=0)),t}},Xo=function(e,t){return function(){return t||e((t={exports:{}}).exports,t),t.exports}},Jo=function(e,t){for(var n in t)ee(e,n,{get:t[n],enumerable:!0})},Ir=function(e,t,n,r){var o=true,a=false,i=undefined;if(t&&(typeof t==="undefined"?"undefined":_type_of(t))=="object"||typeof t=="function")try{var c=function(){var o=u.value;!Bo.call(e,o)&&o!==n&&ee(e,o,{get:function(){return t[o]},enumerable:!(r=Go(t,o))||r.enumerable})};for(var s=Uo(t)[Symbol.iterator](),u;!(o=(u=s.next()).done);o=true)c()}catch(e){a=true;i=e}finally{try{if(!o&&s.return!=null){s.return()}}finally{if(a){throw i}}}return e},Zo=function(e,t,n){return n=e!=null?Co(Vo(e)):{},Ir(t||!e||!e.__esModule?ee(n,"default",{value:e,enumerable:!0}):n,e)},Qo=function(e){return Ir(ee({},"__esModule",{value:!0}),e)},en=function(e,t,n){return Wo(e,(typeof t==="undefined"?"undefined":_type_of(t))!="symbol"?t+"":t,n)};function j(){return j=Object.assign||i(function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},"assign"),j.apply(this,arguments)}var qo=te(function(){"use strict";i(j,"_extends")});function De(e,t){return _async_to_generator(function(){var n,r,o,a;return _ts_generator(this,function(c){switch(c.label){case 0:n=t.fetch,r=t.vm;return[4,n(e)];case 1:return[4,c.sent().text()];case 2:o=c.sent(),a=new r.SourceTextModule(o,{importModuleDynamically:i(function(n,r){return _async_to_generator(function(){var r;return _ts_generator(this,function(o){r=new URL(n,e).href;return[2,De(r,t)]})})()},"importModuleDynamically")});return[4,a.link(function(n){return _async_to_generator(function(){var r;return _ts_generator(this,function(o){switch(o.label){case 0:r=new URL(n,e).href;return[4,De(r,t)];case 1:return[2,o.sent()]}})})()})];case 3:return[2,(c.sent(),a)]}})})()}var lt,Se,Ve,Be,R,P,Z,Ee,ct,ut,ht,mt,pt,ft,dt,yt,gt,_t,Et,Fe,$r,nt,je,at,bt,St,ae,be,$t,It,vt,z,Rt,Ce,se,V,st,vr,ie=te(function(){"use strict";var e,t;qo(),lt="federation-manifest.json",Se=".json",Ve="FEDERATION_DEBUG",Be="1",R={AT:"@",HYPHEN:"-",SLASH:"/"},P=(e={},_define_property(e,R.AT,"scope_"),_define_property(e,R.HYPHEN,"_"),_define_property(e,R.SLASH,"__"),e),Z=(t={},_define_property(t,P[R.AT],R.AT),_define_property(t,P[R.HYPHEN],R.HYPHEN),_define_property(t,P[R.SLASH],R.SLASH),t),Ee=":",ct="mf-manifest.json",ut="mf-stats.json",ht={NPM:"npm",APP:"app"},mt="__MF_DEVTOOLS_MODULE_INFO__",pt="ENCODE_NAME_PREFIX",ft=".federation",dt={identifier:"MFDataPrefetch",globalKey:"__PREFETCH__",library:"mf-data-prefetch",exportsKey:"__PREFETCH_EXPORTS__",fileName:"bootstrap.js"},yt=Object.freeze({__proto__:null}),gt=Object.freeze({__proto__:null}),_t=Object.freeze({__proto__:null}),Et=Object.freeze({__proto__:null}),i(M,"isBrowserEnv"),i(Q,"isDebugMode"),Fe=i(function(){return(typeof process==="undefined"?"undefined":_type_of(process))<"u"&&process.env?process.env:{}},"getProcessEnv"),$r="[ FEDERATION DEBUG ]",i(br,"safeToString$1"),i(Sr,"safeGetLocalStorageItem"),je=(nt=/*#__PURE__*/function(){function e(t){_class_call_check(this,e);this.enable=!1,this.identifier=t||$r,M()&&Sr()?this.enable=!0:Q()&&(this.enable=!0)}_create_class(e,[{key:"info",value:function e(e,t){if(this.enable){var n=br(t)||"";M()?console.info("%c ".concat(this.identifier,": ").concat(e," ").concat(n),"color:#3300CC"):console.info("\x1b[34m%s","".concat(this.identifier,": ").concat(e," ").concat(n?"\n".concat(n):""))}}},{key:"logOriginalInfo",value:function e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}var r,o;this.enable&&(M()?(console.info("%c ".concat(this.identifier,": OriginalInfo"),"color:#3300CC"),(r=console).log.apply(r,_to_consumable_array(t))):(console.info("%c ".concat(this.identifier,": OriginalInfo"),"color:#3300CC"),(o=console).log.apply(o,_to_consumable_array(t))))}}]);return e}(),i(nt,"Logger"),nt),at="[ Federation Runtime ]",bt=i(function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ee;var r=e.split(n),o=Fe().NODE_ENV==="development"&&t,a="*",c=i(function(e){return e.startsWith("http")||e.includes(Se)},"isEntry");if(r.length>=2){var s=_to_array(r),u=s[0],l=s.slice(1);e.startsWith(n)&&(l=[o||r.slice(-1)[0]],u=r.slice(0,-1).join(n));var f=o||l.join(n);return c(f)?{name:u,entry:f}:{name:u,version:f||a}}else if(r.length===1){var h=_sliced_to_array(r,1),d=h[0];return o&&c(o)?{name:d,entry:o}:{name:d,version:o||a}}else throw"Invalid entry value: ".concat(e)},"parseEntry"),St=new je,ae=i(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return t.length?t.reduce(function(e,t){return t?e?"".concat(e).concat(Ee).concat(t):t:e},""):""},"composeKeyWithSeparator"),be=i(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;try{var r=n?".js":"";return"".concat(t).concat(e.replace(new RegExp("".concat(R.AT),"g"),P[R.AT]).replace(new RegExp("".concat(R.HYPHEN),"g"),P[R.HYPHEN]).replace(new RegExp("".concat(R.SLASH),"g"),P[R.SLASH])).concat(r)}catch(e){throw e}},"encodeName"),$t=i(function(e,t,n){try{var r=e;if(t){if(!r.startsWith(t))return r;r=r.replace(new RegExp(t,"g"),"")}return r=r.replace(new RegExp("".concat(P[R.AT]),"g"),Z[P[R.AT]]).replace(new RegExp("".concat(P[R.SLASH]),"g"),Z[P[R.SLASH]]).replace(new RegExp("".concat(P[R.HYPHEN]),"g"),Z[P[R.HYPHEN]]),n&&(r=r.replace(".js","")),r}catch(e){throw e}},"decodeName"),It=i(function(e,t){if(!e)return"";var n=e;return n==="."&&(n="default_export"),n.startsWith("./")&&(n=n.replace("./","")),be(n,"__federation_expose_",t)},"generateExposeFilename"),vt=i(function(e,t){return e?be(e,"__federation_shared_",t):""},"generateShareFilename"),z=i(function(e,t){if("getPublicPath"in e){var n;return e.getPublicPath.startsWith("function")?n=new Function("return "+e.getPublicPath)()():n=new Function(e.getPublicPath)(),"".concat(n).concat(t)}else return"publicPath"in e?"".concat(e.publicPath).concat(t):(console.warn("Cannot get resource URL. If in debug mode, please ignore.",e,t),"")},"getResourceUrl"),Rt=i(function(e,t){e||Ce(t)},"assert"),Ce=i(function(e){throw new Error("".concat(at,": ").concat(e))},"error"),se=i(function(e){console.warn("".concat(at,": ").concat(e))},"warn"),i(re,"safeToString"),V=i(function(e,t){if(!e)return t;var n=i(function(e){if(e===".")return"";if(e.startsWith("./"))return e.replace("./","");if(e.startsWith("/")){var t=e.slice(1);return t.endsWith("/")?t.slice(0,-1):t}return e},"transformPath")(e);return n?n.endsWith("/")?"".concat(n).concat(t):"".concat(n,"/").concat(t):t},"simpleJoinRemoteEntry"),i(Ge,"inferAutoPublicPath"),i($e,"generateSnapshotFromManifest"),i(oe,"isManifestProvider"),i(Ie,"safeWrapper"),i(ve,"isStaticResourcesEqual"),i(ne,"createScript"),i(B,"createLink"),i(W,"loadScript"),i(J,"importNodeModule"),st=i(function(){return _async_to_generator(function(){var e;return _ts_generator(this,function(t){switch(t.label){case 0:return[4,J("node-fetch")];case 1:e=t.sent();return[2,e.default||e]}})})()},"loadNodeFetch"),vr=i(function(e,t){return _async_to_generator(function(){var n,r,o,a;return _ts_generator(this,function(c){switch(c.label){case 0:n=__webpack_require__.federation.instance.loaderHook;return[4,i(function(e,t){return n.lifecycle.fetch.emit(e,t)},"hook")(e,t||{})];case 1:r=c.sent();if(!(!r||!_instanceof(r,Response)))return[3,5];if(!((typeof fetch==="undefined"?"undefined":_type_of(fetch))>"u"))return[3,3];return[4,st()];case 2:a=c.sent();return[3,4];case 3:a=fetch;c.label=4;case 4:o=a(e,t||{});return[3,6];case 5:o=r;c.label=6;case 6:return[2,o]}})})()},"lazyLoaderHookFetch"),i(Ue,"createScriptNode"),i(q,"loadScriptNode"),i(De,"loadModule"),i(it,"normalizeOptions")});function T(){return T=Object.assign||i(function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},"assign"),T.apply(this,arguments)}var Gr=te(function(){"use strict";i(T,"_extends"),i(or,"_object_without_properties_loose")});var Me,uo,x,pe,fe,Zt,Rr,ke,Qt,ho,xe,lr,mo,po,fo,de,cr,Nt,We,le,Re,Ot,At,wr,Tt,kt,qe,K,yo,Nr,Or,ze,go,Pt,_o,Mt,Eo,bo,So,Ar,Tr,$o,Io,vo,Ro,Ze,ye,kr=te(function(){"use strict";Gr(),ie(),i(Ye,"getBuilderId"),Me="[ Federation Runtime ]",i(w,"assert"),i(F,"error"),i(ge,"warn"),i(qt,"addUniqueItem"),i(he,"getFMId"),i(Xe,"isRemoteInfoWithEntry"),i(nr,"isPureRemoteEntry"),i(Je,"isObject"),uo=Object.prototype.toString,i(Ur,"isPlainObject"),i(ar,"arrayOptions"),i(sr,"getRemoteEntryInfoFromSnapshot"),x=function(){try{return new Function("return this")()}catch(e){return globalThis}}(),pe=x,i(Ne,"definePropertyGlobalVal"),i(Oe,"includeOwnProperty"),Oe(globalThis,"__GLOBAL_LOADING_REMOTE_ENTRY__")||Ne(globalThis,"__GLOBAL_LOADING_REMOTE_ENTRY__",{}),fe=globalThis.__GLOBAL_LOADING_REMOTE_ENTRY__,i(wt,"setGlobalDefaultVal"),wt(globalThis),wt(x),i(Vr,"getGlobalFederationInstance"),i(Br,"setGlobalFederationInstance"),i(Wr,"getGlobalFederationConstructor"),i(qr,"setGlobalFederationConstructor"),i(X,"getInfoWithoutType"),Zt=i(function(){return x.__FEDERATION__.moduleInfo},"getGlobalSnapshot"),Rr=i(function(e,t){var n=he(e),r=X(t,n).value;if(r&&!r.version&&"version"in e&&e.version&&(r.version=e.version),r)return r;if("version"in e&&e.version){var o=e.version,a=or(e,["version"]),c=he(a),s=X(x.__FEDERATION__.moduleInfo,c).value;if((s===null||s===void 0?void 0:s.version)===o)return s}},"getTargetSnapshotInfoByModuleInfo"),ke=i(function(e){return Rr(e,x.__FEDERATION__.moduleInfo)},"getGlobalSnapshotInfoByModuleInfo"),Qt=i(function(e,t){var n=he(e);return x.__FEDERATION__.moduleInfo[n]=t,x.__FEDERATION__.moduleInfo},"setGlobalSnapshotInfoByModuleInfo"),ho=i(function(e){return x.__FEDERATION__.moduleInfo=T({},x.__FEDERATION__.moduleInfo,e),function(){var t=Object.keys(e);var n=true,r=false,o=undefined;try{for(var a=t[Symbol.iterator](),c;!(n=(c=a.next()).done);n=true){var s=c.value;delete x.__FEDERATION__.moduleInfo[s]}}catch(e){r=true;o=e}finally{try{if(!n&&a.return!=null){a.return()}}finally{if(r){throw o}}}}},"addGlobalSnapshot"),xe=i(function(e,t){var n=t||"__FEDERATION_".concat(e,":custom__"),r=globalThis[n];return{remoteEntryKey:n,entryExports:r}},"getRemoteEntryExports"),lr=i(function(e){var t=x.__FEDERATION__,n=t.__GLOBAL_PLUGIN__;e.forEach(function(e){n.findIndex(function(t){return t.name===e.name})===-1?n.push(e):ge("The plugin ".concat(e.name," has been registered."))})},"registerGlobalPlugins"),mo=i(function(){return x.__FEDERATION__.__GLOBAL_PLUGIN__},"getGlobalHostPlugins"),po=i(function(e){return globalThis.__FEDERATION__.__PRELOADED_MAP__.get(e)},"getPreloaded"),fo=i(function(e){return globalThis.__FEDERATION__.__PRELOADED_MAP__.set(e,!0)},"setPreloaded"),de="default",cr="global",Nt="[0-9A-Za-z-]+",We="(?:\\+(".concat(Nt,"(?:\\.").concat(Nt,")*))"),le="0|[1-9]\\d*",Re="[0-9]+",Ot="\\d*[a-zA-Z-][a-zA-Z0-9-]*",At="(?:".concat(Re,"|").concat(Ot,")"),wr="(?:-?(".concat(At,"(?:\\.").concat(At,")*))"),Tt="(?:".concat(le,"|").concat(Ot,")"),kt="(?:-(".concat(Tt,"(?:\\.").concat(Tt,")*))"),qe="".concat(le,"|x|X|\\*"),K="[v=\\s]*(".concat(qe,")(?:\\.(").concat(qe,")(?:\\.(").concat(qe,")(?:").concat(kt,")?").concat(We,"?)?)?"),yo="^\\s*(".concat(K,")\\s+-\\s+(").concat(K,")\\s*$"),Nr="(".concat(Re,")\\.(").concat(Re,")\\.(").concat(Re,")"),Or="[v=\\s]*".concat(Nr).concat(wr,"?").concat(We,"?"),ze="((?:<|>)?=?)",go="(\\s*)".concat(ze,"\\s*(").concat(Or,"|").concat(K,")"),Pt="(?:~>?)",_o="(\\s*)".concat(Pt,"\\s+"),Mt="(?:\\^)",Eo="(\\s*)".concat(Mt,"\\s+"),bo="(<|>)?=?\\s*\\*",So="^".concat(Mt).concat(K,"$"),Ar="(".concat(le,")\\.(").concat(le,")\\.(").concat(le,")"),Tr="v?".concat(Ar).concat(kt,"?").concat(We,"?"),$o="^".concat(Pt).concat(K,"$"),Io="^".concat(ze,"\\s*").concat(K,"$"),vo="^".concat(ze,"\\s*(").concat(Tr,")$|^$"),Ro="^\\s*>=\\s*0.0.0\\s*$",i(L,"parseRegex"),i(k,"isXVersion"),i(ir,"pipe"),i(zt,"extractComparator"),i(Kt,"combineVersion"),i(zr,"parseHyphen"),i(Kr,"parseComparatorTrim"),i(Yr,"parseTildeTrim"),i(Xr,"parseCaretTrim"),i(Jr,"parseCarets"),i(Zr,"parseTildes"),i(Qr,"parseXRanges"),i(eo,"parseStar"),i(to,"parseGTE0"),i(Ae,"compareAtom"),i(ro,"comparePreRelease"),i(we,"compareVersion"),i(Ke,"eq"),i(oo,"compare"),i(no,"parseComparatorString"),i(ao,"parseRange"),i(Te,"satisfy"),i(so,"formatShare"),i(Yt,"formatShareConfigs"),i(_e,"versionLt"),Ze=i(function(e,t){var n=t||function(e,t){return _e(e,t)};return Object.keys(e).reduce(function(e,t){return!e||n(e,t)||e==="0"?t:e},0)},"findVersion"),ye=i(function(e){return!!e.loaded||typeof e.lib=="function"},"isLoaded"),i(io,"findSingletonVersionOrderByVersion"),i(lo,"findSingletonVersionOrderByLoaded"),i(co,"getFindShareFunction"),i(Y,"getRegisteredShare"),i(Xt,"getGlobalShareScope"),i(Jt,"getTargetSharedOptions")});function hr(e,t,n,r){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},a=arguments.length>5?arguments[5]:void 0;var i=he(t),c=X(e,i),s=c.value,u=a||s;if(u&&!oe(u)&&(n(u,t,r),u.remotesInfo)){var l=Object.keys(u.remotesInfo);var f=true,h=false,d=undefined;try{for(var p=l[Symbol.iterator](),m;!(f=(m=p.next()).done);f=true){var v=m.value;if(o[v])continue;o[v]=!0;var y=Mo(v),g=u.remotesInfo[v];hr(e,{name:y.name,version:g.matchedVersion},n,!1,o,void 0)}}catch(e){h=true;d=e}finally{try{if(!f&&p.return!=null){p.return()}}finally{if(h){throw d}}}}}var Ht,Pe,Dt,C,Ft,D,jt,ce,Ct,G,Gt,ue,Dr,Ut,Fr,Vt,jr,Bt,Cr,Wt,He,b,xo=te(function(){"use strict";Gr(),ie(),ie(),kr(),kr(),i(Pr,"matchRemoteWithNameAndExpose"),i(wo,"matchRemote"),i(Mr,"registerPlugins$1"),i(No,"loadEsmEntry"),i(Oo,"loadSystemJsEntry"),i(Ao,"loadEntryScript"),i(To,"loadEntryDom"),i(ko,"loadEntryNode"),i(er,"getRemoteEntryUniqueKey"),i(Le,"getRemoteEntry"),i(me,"getRemoteInfo"),Pe=(Ht=/*#__PURE__*/function(){function e(t){var n=t.remoteInfo,r=t.host;_class_call_check(this,e);this.inited=!1,this.lib=void 0,this.remoteInfo=n,this.host=r}_create_class(e,[{key:"getEntry",value:function e(){return _async_to_generator(function(){var e;return _ts_generator(this,function(t){switch(t.label){case 0:if(this.remoteEntryExports)return[2,this.remoteEntryExports];return[4,Le({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports})];case 1:e=t.sent();return[2,(w(e,"remoteEntryExports is undefined \n ".concat(re(this.remoteInfo))),this.remoteEntryExports=e,this.remoteEntryExports)]}})}).call(this)}},{key:"get",value:function e(e,t,n,r){return _async_to_generator(function(){var o,a,c,s,u,l,f,h,d,p,m,v,y;return _ts_generator(this,function(g){switch(g.label){case 0:o=n||{loadFactory:!0},a=o.loadFactory,c=a===void 0?!0:a;return[4,this.getEntry()];case 1:s=g.sent();if(!!this.inited)return[3,5];u=this.host.shareScopeMap,l=this.remoteInfo.shareScope||"default";u[l]||(u[l]={});f=u[l],h=[],d={version:this.remoteInfo.version||""};Object.defineProperty(d,"shareScopeMap",{value:u,enumerable:!1});return[4,this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:f,remoteEntryInitOptions:d,initScope:h,remoteInfo:this.remoteInfo,origin:this.host})];case 2:p=g.sent();_type_of(s===null||s===void 0?void 0:s.init)>"u"&&console.error('The remote entry interface does not contain "init"',"\n","Ensure the name of this remote is not reserved or in use. Check if anything already exists on window[nameOfRemote]","\n","Ensure that window[nameOfRemote] is returning a {get,init} object.");return[4,s.init(p.shareScope,p.initScope,p.remoteEntryInitOptions)];case 3:g.sent();return[4,this.host.hooks.lifecycle.initContainer.emit(T({},p,{id:e,remoteSnapshot:r,remoteEntryExports:s}))];case 4:g.sent();g.label=5;case 5:this.lib=s,this.inited=!0;return[4,s.get(t)];case 6:m=g.sent();w(m,"".concat(he(this.remoteInfo)," remote don't export ").concat(t,"."));v=this.wraperFactory(m,e);if(!c)return[3,8];return[4,v()];case 7:y=g.sent();return[3,9];case 8:y=v;g.label=9;case 9:return[2,y]}})}).call(this)}},{key:"wraperFactory",value:function e(e,t){function n(e,t){e&&(typeof e==="undefined"?"undefined":_type_of(e))=="object"&&Object.isExtensible(e)&&!Object.getOwnPropertyDescriptor(e,Symbol.for("mf_module_id"))&&Object.defineProperty(e,Symbol.for("mf_module_id"),{value:t,enumerable:!1})}return i(n,"defineModuleId"),_instanceof(e,Promise)?function(){return _async_to_generator(function(){var r;return _ts_generator(this,function(o){switch(o.label){case 0:return[4,e()];case 1:r=o.sent();return[2,(n(r,t),r)]}})})()}:function(){var r=e();return n(r,t),r}}}]);return e}(),i(Ht,"Module"),Ht),C=(Dt=/*#__PURE__*/function(){function e(t){_class_call_check(this,e);this.type="",this.listeners=new Set,t&&(this.type=t)}_create_class(e,[{key:"on",value:function e(e){typeof e=="function"&&this.listeners.add(e)}},{key:"once",value:function e(e){var t=this;this.on(i(function n(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++){o[a]=arguments[a]}return t.remove(n),e.apply(null,o)},"wrapper"))}},{key:"emit",value:function e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}var r;return this.listeners.size>0&&this.listeners.forEach(function(e){r=e.apply(void 0,_to_consumable_array(t))}),r}},{key:"remove",value:function e(e){this.listeners.delete(e)}},{key:"removeAll",value:function e(){this.listeners.clear()}}]);return e}(),i(Dt,"SyncHook"),Dt),D=(Ft=/*#__PURE__*/function(e){_inherits(t,e);function t(){_class_call_check(this,t);return _call_super(this,t,arguments)}_create_class(t,[{key:"emit",value:function e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}var r,o=Array.from(this.listeners);if(o.length>0){var a=0,c=i(function(e){return e===!1?!1:a<o.length?Promise.resolve(o[a++].apply(null,t)).then(c):e},"call");r=c()}return Promise.resolve(r)}}]);return t}(C),i(Ft,"AsyncHook"),Ft),i(xt,"checkReturnData"),ce=(jt=/*#__PURE__*/function(e){_inherits(t,e);function t(e){_class_call_check(this,t);var n;n=_call_super(this,t),n.onerror=F,n.type=e;return n}_create_class(t,[{key:"emit",value:function e(e){Je(e)||F('The data for the "'.concat(this.type,'" hook should be an object.'));var t=true,n=false,r=undefined;try{for(var o=this.listeners[Symbol.iterator](),a;!(t=(a=o.next()).done);t=true){var c=a.value;try{var s=c(e);if(xt(e,s))e=s;else{this.onerror('A plugin returned an unacceptable value for the "'.concat(this.type,'" type.'));break}}catch(e){ge(e),this.onerror(e)}}}catch(e){n=true;r=e}finally{try{if(!t&&o.return!=null){o.return()}}finally{if(n){throw r}}}return e}}]);return t}(C),i(jt,"SyncWaterfallHook"),jt),G=(Ct=/*#__PURE__*/function(e){_inherits(t,e);function t(e){_class_call_check(this,t);var n;n=_call_super(this,t),n.onerror=F,n.type=e;return n}_create_class(t,[{key:"emit",value:function e(e){var t=this;Je(e)||F('The response data for the "'.concat(this.type,'" hook must be an object.'));var n=Array.from(this.listeners);if(n.length>0){var r=0,o=i(function(n){return ge(n),t.onerror(n),e},"processError"),a=i(function(c){if(xt(e,c)){if(e=c,r<n.length)try{return Promise.resolve(n[r++](e)).then(a,o)}catch(e){return o(e)}}else t.onerror('A plugin returned an incorrect value for the "'.concat(t.type,'" type.'));return e},"call");return Promise.resolve(a(e))}return Promise.resolve(e)}}]);return t}(C),i(Ct,"AsyncWaterfallHook"),Ct),ue=(Gt=/*#__PURE__*/function(){function e(t){_class_call_check(this,e);this.registerPlugins={},this.lifecycle=t,this.lifecycleKeys=Object.keys(t)}_create_class(e,[{key:"applyPlugin",value:function e(e){var t=this;w(Ur(e),"Plugin configuration is invalid.");var n=e.name;w(n,"A name must be provided by the plugin."),this.registerPlugins[n]||(this.registerPlugins[n]=e,Object.keys(this.lifecycle).forEach(function(n){var r=e[n];r&&t.lifecycle[n].on(r)}))}},{key:"removePlugin",value:function e(e){var t=this;w(e,"A name is required.");var n=this.registerPlugins[e];w(n,'The plugin "'.concat(e,'" is not registered.')),Object.keys(n).forEach(function(e){e!=="name"&&t.lifecycle[e].remove(n[e])})}},{key:"inherit",value:function e(e){var t=this;var n=e.lifecycle,r=e.registerPlugins;Object.keys(n).forEach(function(e){w(!t.lifecycle[e],'The hook "'.concat(e,'" has a conflict and cannot be inherited.')),t.lifecycle[e]=n[e]}),Object.keys(r).forEach(function(e){w(!t.registerPlugins[e],'The plugin "'.concat(e,'" has a conflict and cannot be inherited.')),t.applyPlugin(r[e])})}}]);return e}(),i(Gt,"PluginSystem"),Gt),i(ur,"defaultPreloadArgs"),i(xr,"formatPreloadArgs"),i(Po,"normalizePreloadExposes"),i(tr,"preloadAssets"),i(rr,"assignRemoteInfo"),i(Lr,"snapshotPlugin"),i(Mo,"splitId"),i(hr,"traverseModuleInfo"),i(Hr,"generatePreloadAssets"),Dr=i(function(){return{name:"generate-preload-assets-plugin",generatePreloadAssets:function e(e){return _async_to_generator(function(){var t,n,r,o,a,c;return _ts_generator(this,function(s){t=e.origin,n=e.preloadOptions,r=e.remoteInfo,o=e.remote,a=e.globalSnapshot,c=e.remoteSnapshot;return[2,Xe(o)&&nr(o)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:o.name,url:o.entry,moduleInfo:{name:r.name,entry:o.entry,type:r.type||"global",entryGlobalName:"",shareScope:""}}]}:(rr(r,c),Hr(t,n,r,a,c))]})})()}}},"generatePreloadAssetsPlugin"),i(Lt,"getGlobalRemoteInfo"),Fr=(Ut=/*#__PURE__*/function(){function e(t){_class_call_check(this,e);this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new ue({beforeLoadRemoteSnapshot:new D("beforeLoadRemoteSnapshot"),loadSnapshot:new G("loadGlobalSnapshot"),loadRemoteSnapshot:new G("loadRemoteSnapshot")}),this.manifestLoading=pe.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=t,this.loaderHook=t.loaderHook}_create_class(e,[{key:"loadSnapshot",value:function e(e){return _async_to_generator(function(){var t,n,r,o,a,c,s,u,l;return _ts_generator(this,function(f){switch(f.label){case 0:t=this.HostInstance,n=t.options,r=this.getGlobalRemoteInfo(e),o=r.hostGlobalSnapshot,a=r.remoteSnapshot,c=r.globalSnapshot;return[4,this.hooks.lifecycle.loadSnapshot.emit({options:n,moduleInfo:e,hostGlobalSnapshot:o,remoteSnapshot:a,globalSnapshot:c})];case 1:s=f.sent(),u=s.remoteSnapshot,l=s.globalSnapshot;return[2,{remoteSnapshot:u,globalSnapshot:l}]}})}).call(this)}},{key:"loadRemoteSnapshotInfo",value:function e(e){return _async_to_generator(function(){var t,n,r,o,a,c,s,u,l,f,h,d,p,m,v,y,g,_,E;return _ts_generator(this,function(S){switch(S.label){case 0:t=this.HostInstance,n=t.options;return[4,this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:n,moduleInfo:e})];case 1:S.sent();r=ke({name:this.HostInstance.options.name,version:this.HostInstance.options.version});r||(r={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},ho(_define_property({},this.HostInstance.options.name,r))),r&&"remotesInfo"in r&&!X(r.remotesInfo,e.name).value&&("version"in e||"entry"in e)&&(r.remotesInfo=T({},r===null||r===void 0?void 0:r.remotesInfo,_define_property({},e.name,{matchedVersion:"version"in e?e.version:e.entry})));o=this.getGlobalRemoteInfo(e),a=o.hostGlobalSnapshot,c=o.remoteSnapshot,s=o.globalSnapshot;return[4,this.hooks.lifecycle.loadSnapshot.emit({options:n,moduleInfo:e,hostGlobalSnapshot:a,remoteSnapshot:c,globalSnapshot:s})];case 2:u=S.sent(),l=u.remoteSnapshot,f=u.globalSnapshot;if(!l)return[3,7];if(!oe(l))return[3,4];h=M()?l.remoteEntry:l.ssrRemoteEntry||l.remoteEntry||"";return[4,this.getManifestJson(h,e,{})];case 3:d=S.sent(),p=Qt(T({},e,{entry:h}),d);return[2,{remoteSnapshot:d,globalSnapshot:p}];case 4:return[4,this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:l,from:"global"})];case 5:m=S.sent(),v=m.remoteSnapshot;return[2,{remoteSnapshot:v,globalSnapshot:f}];case 6:return[3,11];case 7:if(!Xe(e))return[3,10];return[4,this.getManifestJson(e.entry,e,{})];case 8:y=S.sent(),g=Qt(e,y);return[4,this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:y,from:"global"})];case 9:_=S.sent(),E=_.remoteSnapshot;return[2,{remoteSnapshot:E,globalSnapshot:g}];case 10:F("\n Cannot get remoteSnapshot with the name: '".concat(e.name,"', version: '").concat(e.version,"' from __FEDERATION__.moduleInfo. The following reasons may be causing the problem:\n\n 1. The Deploy platform did not deliver the correct data. You can use __FEDERATION__.moduleInfo to check the remoteInfo.\n\n 2. The remote '").concat(e.name,"' version '").concat(e.version,"' is not released.\n\n The transformed module info: ").concat(JSON.stringify(f),"\n "));S.label=11;case 11:return[2]}})}).call(this)}},{key:"getGlobalRemoteInfo",value:function e(e){return Lt(e,this.HostInstance)}},{key:"getManifestJson",value:function e(e,t,n){return _async_to_generator(function(){var n,r,o;return _ts_generator(this,function(a){n=this;r=i(function(){return _async_to_generator(function(){var n,r,o,a;return _ts_generator(this,function(c){switch(c.label){case 0:n=this.manifestCache.get(e);if(n)return[2,n];c.label=1;case 1:c.trys.push([1,6,,7]);return[4,this.loaderHook.lifecycle.fetch.emit(e,{})];case 2:r=c.sent();o=!r||!_instanceof(r,Response);if(!o)return[3,4];return[4,fetch(e,{})];case 3:o=r=c.sent();c.label=4;case 4:o;return[4,r.json()];case 5:return[2,(n=c.sent(),w(n.metaData&&n.exposes&&n.shared,"".concat(e," is not a federation manifest")),this.manifestCache.set(e,n),n)];case 6:a=c.sent();delete this.manifestLoading[e],F("Failed to get manifestJson for ".concat(t.name,". The manifest URL is ").concat(e,". Please ensure that the manifestUrl is accessible.\n \n Error message:\n \n ").concat(a));return[3,7];case 7:return[2]}})}).call(n)},"getManifest"),o=i(function(){return _async_to_generator(function(){var n,o,a,c;return _ts_generator(this,function(s){switch(s.label){case 0:return[4,r()];case 1:n=s.sent(),o=$e(n,{version:e});return[4,this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:n,remoteSnapshot:o,manifestUrl:e,from:"manifest"})];case 2:a=s.sent(),c=a.remoteSnapshot;return[2,c]}})}).call(n)},"asyncLoadProcess");return[2,(this.manifestLoading[e]||(this.manifestLoading[e]=o().then(function(e){return e})),this.manifestLoading[e])]})}).call(this)}}]);return e}(),i(Ut,"SnapshotHandler"),Ut),jr=(Vt=/*#__PURE__*/function(){function e(t){_class_call_check(this,e);this.hooks=new ue({afterResolve:new G("afterResolve"),beforeLoadShare:new G("beforeLoadShare"),loadShare:new D,resolveShare:new ce("resolveShare"),initContainerShareScopeMap:new ce("initContainerShareScopeMap")}),this.host=t,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(t.options)}_create_class(e,[{key:"registerShared",value:function e(e,t){var n=this;var r=Yt(e,t),o=r.shareInfos,a=r.shared;return Object.keys(o).forEach(function(e){o[e].forEach(function(r){!Y(n.shareScopeMap,e,r,n.hooks.lifecycle.resolveShare)&&r&&r.lib&&n.setShared({pkgName:e,lib:r.lib,get:r.get,loaded:!0,shared:r,from:t.name})})}),{shareInfos:o,shared:a}}},{key:"loadShare",value:function e(e,t){return _async_to_generator(function(){var n,r,o,a,c,s,u,l,f,h,d,p;return _ts_generator(this,function(m){switch(m.label){case 0:n=this;r=this,o=r.host,a=Jt({pkgName:e,extraOptions:t,shareInfos:o.options.shared});c=a===null||a===void 0?void 0:a.scope;if(!c)return[3,2];return[4,Promise.all(a.scope.map(function(e){return _async_to_generator(function(){return _ts_generator(this,function(t){switch(t.label){case 0:return[4,Promise.all(this.initializeSharing(e,{strategy:a.strategy}))];case 1:t.sent();return[2]}})}).call(n)}))];case 1:c=m.sent();m.label=2;case 2:c;return[4,this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:a,shared:o.options.shared,origin:o})];case 3:s=m.sent(),u=s.shareInfo;w(u,"Cannot find ".concat(e," Share in the ").concat(o.options.name,". Please ensure that the ").concat(e," Share parameters have been injected"));l=Y(this.shareScopeMap,e,u,this.hooks.lifecycle.resolveShare),f=i(function(e){e.useIn||(e.useIn=[]),qt(e.useIn,o.options.name)},"addUseIn");if(l&&l.lib)return[2,(f(l),l.lib)];if(!(l&&l.loading&&!l.loaded))return[3,5];return[4,l.loading];case 4:h=m.sent();return[2,(l.loaded=!0,l.lib||(l.lib=h),f(l),h)];case 5:if(l){d=i(function(){return _async_to_generator(function(){var t,n;return _ts_generator(this,function(r){switch(r.label){case 0:return[4,l.get()];case 1:t=r.sent();u.lib=t,u.loaded=!0,f(u);n=Y(this.shareScopeMap,e,u,this.hooks.lifecycle.resolveShare);return[2,(n&&(n.lib=t,n.loaded=!0),t)]}})}).call(n)},"asyncLoadProcess")();return[2,(this.setShared({pkgName:e,loaded:!1,shared:l,from:o.options.name,lib:null,loading:d}),d)]}else{if(t===null||t===void 0?void 0:t.customShareInfo)return[2,!1];p=i(function(){return _async_to_generator(function(){var t,n;return _ts_generator(this,function(r){switch(r.label){case 0:return[4,u.get()];case 1:t=r.sent();u.lib=t,u.loaded=!0,f(u);n=Y(this.shareScopeMap,e,u,this.hooks.lifecycle.resolveShare);return[2,(n&&(n.lib=t,n.loaded=!0),t)]}})}).call(n)},"asyncLoadProcess")();return[2,(this.setShared({pkgName:e,loaded:!1,shared:u,from:o.options.name,lib:null,loading:p}),p)]}m.label=6;case 6:return[2]}})}).call(this)}},{key:"initializeSharing",value:function e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:de,t=arguments.length>1?arguments[1]:void 0;var n=this,r=n.host,o=t===null||t===void 0?void 0:t.from,a=t===null||t===void 0?void 0:t.strategy,c=t===null||t===void 0?void 0:t.initScope,s=[];if(o!=="build"){var u=this,l=u.initTokens;c||(c=[]);var f=l[e];if(f||(f=l[e]={from:this.host.name}),c.indexOf(f)>=0)return s;c.push(f)}var h=this.shareScopeMap,d=r.options.name;h[e]||(h[e]={});var p=h[e],m=i(function(e,t){var n;var r=t.version,o=t.eager;p[e]=p[e]||{};var a=p[e],c=a[r],s=!!(c&&(c.eager||(n=c.shareConfig)!=null&&n.eager));(!c||c.strategy!=="loaded-first"&&!c.loaded&&(!o!=!s?o:d>c.from))&&(a[r]=t)},"register"),v=i(function(t){return t&&t.init&&t.init(h[e],c)},"initFn"),y=i(function(e){return _async_to_generator(function(){var t,n,o,a,c;return _ts_generator(this,function(s){switch(s.label){case 0:return[4,r.remoteHandler.getRemoteModuleAndOptions({id:e})];case 1:t=s.sent(),n=t.module;if(!n.getEntry)return[3,9];s.label=2;case 2:s.trys.push([2,4,,6]);return[4,n.getEntry()];case 3:o=s.sent();return[3,6];case 4:a=s.sent();return[4,r.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:a,from:"runtime",lifecycle:"beforeLoadShare",origin:r})];case 5:o=s.sent();return[3,6];case 6:c=n.inited;if(c)return[3,8];return[4,v(o)];case 7:c=(s.sent(),n.inited=!0);s.label=8;case 8:c;s.label=9;case 9:return[2]}})})()},"initRemoteModule");return Object.keys(r.options.shared).forEach(function(t){r.options.shared[t].forEach(function(n){n.scope.includes(e)&&m(t,n)})}),(r.options.shareStrategy==="version-first"||a==="version-first")&&r.options.remotes.forEach(function(t){t.shareScope===e&&s.push(y(t.name))}),s}},{key:"loadShareSync",value:function e(e,t){var n=this;var r=this,o=r.host,a=Jt({pkgName:e,extraOptions:t,shareInfos:o.options.shared});(a===null||a===void 0?void 0:a.scope)&&a.scope.forEach(function(e){n.initializeSharing(e,{strategy:a.strategy})});var c=Y(this.shareScopeMap,e,a,this.hooks.lifecycle.resolveShare),s=i(function(e){e.useIn||(e.useIn=[]),qt(e.useIn,o.options.name)},"addUseIn");if(c){if(typeof c.lib=="function")return s(c),c.loaded||(c.loaded=!0,c.from===o.options.name&&(a.loaded=!0)),c.lib;if(typeof c.get=="function"){var u=c.get();if(!_instanceof(u,Promise))return s(c),this.setShared({pkgName:e,loaded:!0,from:o.options.name,lib:u,shared:c}),u}}if(a.lib)return a.loaded||(a.loaded=!0),a.lib;if(a.get){var l=a.get();if(_instanceof(l,Promise))throw new Error("\n The loadShareSync function was unable to load ".concat(e,". The ").concat(e," could not be found in ").concat(o.options.name,".\n Possible reasons for failure: \n\n 1. The ").concat(e," share was registered with the 'get' attribute, but loadShare was not used beforehand.\n\n 2. The ").concat(e," share was not registered with the 'lib' attribute.\n\n "));return a.lib=l,this.setShared({pkgName:e,loaded:!0,from:o.options.name,lib:a.lib,shared:a}),a.lib}throw new Error("\n The loadShareSync function was unable to load ".concat(e,". The ").concat(e," could not be found in ").concat(o.options.name,".\n Possible reasons for failure: \n\n 1. The ").concat(e," share was registered with the 'get' attribute, but loadShare was not used beforehand.\n\n 2. The ").concat(e," share was not registered with the 'lib' attribute.\n\n "))}},{key:"initShareScopeMap",value:function e(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var r=this,o=r.host;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:o.options,origin:o,scopeName:e,hostShareScopeMap:n.hostShareScopeMap})}},{key:"setShared",value:function e(e){var t=this;var n=e.pkgName,r=e.shared,o=e.from,a=e.lib,c=e.loading,s=e.loaded,u=e.get;var l=r.version,f=r.scope,h=f===void 0?"default":f,d=or(r,["version","scope"]);(Array.isArray(h)?h:[h]).forEach(function(e){if(t.shareScopeMap[e]||(t.shareScopeMap[e]={}),t.shareScopeMap[e][n]||(t.shareScopeMap[e][n]={}),!t.shareScopeMap[e][n][l]){t.shareScopeMap[e][n][l]=T({version:l,scope:["default"]},d,{lib:a,loaded:s,loading:c}),u&&(t.shareScopeMap[e][n][l].get=u);return}var r=t.shareScopeMap[e][n][l];c&&!r.loading&&(r.loading=c)})}},{key:"_setGlobalShareScopeMap",value:function e(e){var t=Xt(),n=e.id||e.name;n&&!t[n]&&(t[n]=this.shareScopeMap)}}]);return e}(),i(Vt,"SharedHandler"),Vt),Cr=(Bt=/*#__PURE__*/function(){function e(t){_class_call_check(this,e);this.hooks=new ue({beforeRegisterRemote:new ce("beforeRegisterRemote"),registerRemote:new ce("registerRemote"),beforeRequest:new G("beforeRequest"),onLoad:new D("onLoad"),handlePreloadModule:new C("handlePreloadModule"),errorLoadRemote:new D("errorLoadRemote"),beforePreloadRemote:new D("beforePreloadRemote"),generatePreloadAssets:new D("generatePreloadAssets"),afterPreloadRemote:new D,loadEntry:new D}),this.host=t,this.idToRemoteMap={}}_create_class(e,[{key:"formatAndRegisterRemote",value:function e(e,t){var n=this;return(t.remotes||[]).reduce(function(e,t){return n.registerRemote(t,e,{force:!1}),e},e.remotes)}},{key:"setIdToRemoteMap",value:function e(e,t){var n=t.remote,r=t.expose,o=n.name,a=n.alias;if(this.idToRemoteMap[e]={name:n.name,expose:r},a&&e.startsWith(o)){var c=e.replace(o,a);this.idToRemoteMap[c]={name:n.name,expose:r};return}if(a&&e.startsWith(a)){var s=e.replace(a,o);this.idToRemoteMap[s]={name:n.name,expose:r}}}},{key:"loadRemote",value:function e(e,t){return _async_to_generator(function(){var n,r,o,a,c,s,u,l,f,h,d,p,m,v,y,g,_,E,S,I,R;return _ts_generator(this,function(k){switch(k.label){case 0:n=this,r=n.host;k.label=1;case 1:k.trys.push([1,5,,7]);o=t||{loadFactory:!0},a=o.loadFactory,c=a===void 0?!0:a;return[4,this.getRemoteModuleAndOptions({id:e})];case 2:s=k.sent(),u=s.module,l=s.moduleOptions,f=s.remoteMatchInfo,h=f.pkgNameOrAlias,d=f.remote,p=f.expose,m=f.id,v=f.remoteSnapshot;return[4,u.get(m,p,t,v)];case 3:y=k.sent();return[4,this.hooks.lifecycle.onLoad.emit({id:m,pkgNameOrAlias:h,expose:p,exposeModule:c?y:void 0,exposeModuleFactory:c?void 0:y,remote:d,options:l,moduleInstance:u,origin:r})];case 4:g=k.sent();return[2,(this.setIdToRemoteMap(e,f),typeof g=="function"?g:y)];case 5:_=k.sent();E=t||{from:"runtime"},S=E.from,I=S===void 0?"runtime":S;return[4,this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:_,from:I,lifecycle:"onLoad",origin:r})];case 6:R=k.sent();if(!R)throw _;return[2,R];case 7:return[2]}})}).call(this)}},{key:"preloadRemote",value:function e(e){return _async_to_generator(function(){var t,n,r,o;return _ts_generator(this,function(a){switch(a.label){case 0:t=this;n=this,r=n.host;return[4,this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:r.options,origin:r})];case 1:a.sent();o=xr(r.options.remotes,e);return[4,Promise.all(o.map(function(e){return _async_to_generator(function(){var t,n,o,a,c,s;return _ts_generator(this,function(u){switch(u.label){case 0:t=e.remote,n=me(t);return[4,r.snapshotHandler.loadRemoteSnapshotInfo(t)];case 1:o=u.sent(),a=o.globalSnapshot,c=o.remoteSnapshot;return[4,this.hooks.lifecycle.generatePreloadAssets.emit({origin:r,preloadOptions:e,remote:t,remoteInfo:n,globalSnapshot:a,remoteSnapshot:c})];case 2:s=u.sent();s&&tr(n,r,s);return[2]}})}).call(t)}))];case 2:a.sent();return[2]}})}).call(this)}},{key:"registerRemotes",value:function e(e,t){var n=this;var r=this,o=r.host;e.forEach(function(e){n.registerRemote(e,o.options.remotes,{force:t===null||t===void 0?void 0:t.force})})}},{key:"getRemoteModuleAndOptions",value:function e(e){return _async_to_generator(function(){var t,n,r,o,a,c,s,u,l,f,h,d,p,m;return _ts_generator(this,function(v){switch(v.label){case 0:t=this,n=t.host,r=e.id;v.label=1;case 1:v.trys.push([1,3,,5]);return[4,this.hooks.lifecycle.beforeRequest.emit({id:r,options:n.options,origin:n})];case 2:o=v.sent();return[3,5];case 3:a=v.sent();return[4,this.hooks.lifecycle.errorLoadRemote.emit({id:r,options:n.options,origin:n,from:"runtime",error:a,lifecycle:"beforeRequest"})];case 4:if(o=v.sent(),!o)throw a;return[3,5];case 5:c=o.id,s=Pr(n.options.remotes,c);w(s,"\n Unable to locate ".concat(c," in ").concat(n.options.name,". Potential reasons for failure include:\n\n 1. ").concat(c," was not included in the 'remotes' parameter of ").concat(n.options.name||"the host",".\n\n 2. ").concat(c," could not be found in the 'remotes' of ").concat(n.options.name," with either 'name' or 'alias' attributes.\n 3. ").concat(c," is not online, injected, or loaded.\n 4. ").concat(c," cannot be accessed on the expected.\n 5. The 'beforeRequest' hook was provided but did not return the correct 'remoteInfo' when attempting to load ").concat(c,".\n "));u=s.remote,l=me(u);return[4,n.sharedHandler.hooks.lifecycle.afterResolve.emit(T({id:c},s,{options:n.options,origin:n,remoteInfo:l}))];case 6:f=v.sent(),h=f.remote,d=f.expose;w(h&&d,"The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ".concat(c,"."));p=n.moduleCache.get(h.name),m={host:n,remoteInfo:l};return[2,(p||(p=new Pe(m),n.moduleCache.set(h.name,p)),{module:p,moduleOptions:m,remoteMatchInfo:f})]}})}).call(this)}},{key:"registerRemote",value:function e(e,t,n){var r=this,o=r.host,a=i(function(){if(e.alias){var n=t.find(function(t){var n;return e.alias&&(t.name.startsWith(e.alias)||((n=t.alias)==null?void 0:n.startsWith(e.alias)))});w(!n,"The alias ".concat(e.alias," of remote ").concat(e.name," is not allowed to be the prefix of ").concat(n&&n.name," name or alias"))}"entry"in e&&M()&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=de),e.type||(e.type=cr)},"normalizeRemote");this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:o});var c=t.find(function(t){return t.name===e.name});if(!c)a(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:o});else{var s=['The remote "'.concat(e.name,'" is already registered.'),(n===null||n===void 0?void 0:n.force)?"Hope you have known that OVERRIDE it may have some unexpected errors":'If you want to merge the remote, you can set "force: true".'];(n===null||n===void 0?void 0:n.force)&&(this.removeRemote(c),a(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:o})),se(s.join(" "))}}},{key:"removeRemote",value:function e(e){try{var t=this,n=t.host,r=e.name,o=n.options.remotes.findIndex(function(e){return e.name===r});o!==-1&&n.options.remotes.splice(o,1);var a=n.moduleCache.get(e.name);if(a){var c=a.remoteInfo,s=c.entryGlobalName;if(globalThis[s]){var u;(u=Object.getOwnPropertyDescriptor(globalThis,s))!=null&&u.configurable?delete globalThis[s]:globalThis[s]=void 0}var l=er(a.remoteInfo);fe[l]&&delete fe[l],n.snapshotHandler.manifestCache.delete(c.entry);var f=c.buildVersion?ae(c.name,c.buildVersion):c.name,h=globalThis.__FEDERATION__.__INSTANCES__.findIndex(function(e){return c.buildVersion?e.options.id===f:e.name===f});if(h!==-1){var d=globalThis.__FEDERATION__.__INSTANCES__[h];f=d.options.id||f;var p=Xt(),m=!0,v=[];Object.keys(p).forEach(function(e){var t=p[e];t&&Object.keys(t).forEach(function(n){var r=t[n];r&&Object.keys(r).forEach(function(t){var o=r[t];o&&Object.keys(o).forEach(function(r){var a=o[r];a&&(typeof a==="undefined"?"undefined":_type_of(a))=="object"&&a.from===c.name&&(a.loaded||a.loading?(a.useIn=a.useIn.filter(function(e){return e!==c.name}),a.useIn.length?m=!1:v.push([e,n,t,r])):v.push([e,n,t,r]))})})})}),m&&(d.shareScopeMap={},delete p[f]),v.forEach(function(e){var t=_sliced_to_array(e,4),n=t[0],r=t[1],o=t[2],a=t[3];var c,s,u;(u=p[n])==null||(s=u[r])==null||(c=s[o])==null||delete c[a]}),globalThis.__FEDERATION__.__INSTANCES__.splice(h,1)}var y=Lt(e,n),g=y.hostGlobalSnapshot;if(g){var _=g&&"remotesInfo"in g&&g.remotesInfo&&X(g.remotesInfo,e.name).key;_&&(delete g.remotesInfo[_],pe.__FEDERATION__.__MANIFEST_LOADING__[_]&&delete pe.__FEDERATION__.__MANIFEST_LOADING__[_])}n.moduleCache.delete(e.name)}}catch(e){console.log("removeRemote fail: ",e)}}}]);return e}(),i(Bt,"RemoteHandler"),Bt),He=(Wt=/*#__PURE__*/function(){function e(t){_class_call_check(this,e);this.hooks=new ue({beforeInit:new ce("beforeInit"),init:new C,beforeInitContainer:new G("beforeInitContainer"),initContainer:new G("initContainer")}),this.version="0.6.10",this.moduleCache=new Map,this.loaderHook=new ue({getModuleInfo:new C,createScript:new C,createLink:new C,fetch:new D});var n={id:Ye(),name:t.name,plugins:[Lr(),Dr()],remotes:[],shared:{},inBrowser:M()};this.name=t.name,this.options=n,this.snapshotHandler=new Fr(this),this.sharedHandler=new jr(this),this.remoteHandler=new Cr(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins(_to_consumable_array(n.plugins).concat(_to_consumable_array(t.plugins||[]))),this.options=this.formatOptions(n,t)}_create_class(e,[{key:"initOptions",value:function e(e){this.registerPlugins(e.plugins);var t=this.formatOptions(this.options,e);return this.options=t,t}},{key:"loadShare",value:function e(e,t){return _async_to_generator(function(){return _ts_generator(this,function(n){return[2,this.sharedHandler.loadShare(e,t)]})}).call(this)}},{key:"loadShareSync",value:function e(e,t){return this.sharedHandler.loadShareSync(e,t)}},{key:"initializeSharing",value:function e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:de,t=arguments.length>1?arguments[1]:void 0;return this.sharedHandler.initializeSharing(e,t)}},{key:"initRawContainer",value:function e(e,t,n){var r=me({name:e,entry:t}),o=new Pe({host:this,remoteInfo:r});return o.remoteEntryExports=n,this.moduleCache.set(e,o),o}},{key:"loadRemote",value:function e(e,t){return _async_to_generator(function(){return _ts_generator(this,function(n){return[2,this.remoteHandler.loadRemote(e,t)]})}).call(this)}},{key:"preloadRemote",value:function e(e){return _async_to_generator(function(){return _ts_generator(this,function(t){return[2,this.remoteHandler.preloadRemote(e)]})}).call(this)}},{key:"initShareScopeMap",value:function e(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.sharedHandler.initShareScopeMap(e,t,n)}},{key:"formatOptions",value:function e(e,t){var n=Yt(e,t),r=n.shared,o=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:r}),a=o.userOptions,c=o.options,s=this.remoteHandler.formatAndRegisterRemote(c,a),u=this.sharedHandler.registerShared(c,a),l=u.shared,f=_to_consumable_array(c.plugins);a.plugins&&a.plugins.forEach(function(e){f.includes(e)||f.push(e)});var h=T({},e,t,{plugins:f,remotes:s,shared:l});return this.hooks.lifecycle.init.emit({origin:this,options:h}),h}},{key:"registerPlugins",value:function e(e){var t=Mr(e,[this.hooks,this.remoteHandler.hooks,this.sharedHandler.hooks,this.snapshotHandler.hooks,this.loaderHook]);this.options.plugins=this.options.plugins.reduce(function(e,t){return t&&e&&!e.find(function(e){return e.name===t.name})&&e.push(t),e},t||[])}},{key:"registerRemotes",value:function e(e,t){return this.remoteHandler.registerRemotes(e,t)}}]);return e}(),i(Wt,"FederationHost"),Wt),b=null,i(mr,"init"),i(pr,"loadRemote"),i(fr,"loadShare"),i(dr,"loadShareSync"),i(yr,"preloadRemote"),i(gr,"registerRemotes"),i(_r,"registerPlugins"),i(Er,"getInstance"),qr(He)});xo();var et={};ot(et,{BROWSER_LOG_KEY:function(){return Ve},BROWSER_LOG_VALUE:function(){return Be},ENCODE_NAME_PREFIX:function(){return pt},EncodedNameTransformMap:function(){return Z},FederationModuleManifest:function(){return lt},Logger:function(){return je},MANIFEST_EXT:function(){return Se},MFModuleType:function(){return ht},MFPrefetchCommon:function(){return dt},MODULE_DEVTOOL_IDENTIFIER:function(){return mt},ManifestFileName:function(){return ct},NameTransformMap:function(){return P},NameTransformSymbol:function(){return R},SEPARATOR:function(){return Ee},StatsFileName:function(){return ut},TEMP_DIR:function(){return ft},assert:function(){return Rt},composeKeyWithSeparator:function(){return ae},containerPlugin:function(){return yt},containerReferencePlugin:function(){return gt},createLink:function(){return B},createScript:function(){return ne},createScriptNode:function(){return Ue},decodeName:function(){return $t},encodeName:function(){return be},error:function(){return Ce},generateExposeFilename:function(){return It},generateShareFilename:function(){return vt},generateSnapshotFromManifest:function(){return $e},getProcessEnv:function(){return Fe},getResourceUrl:function(){return z},inferAutoPublicPath:function(){return Ge},isBrowserEnv:function(){return M},isDebugMode:function(){return Q},isManifestProvider:function(){return oe},isStaticResourcesEqual:function(){return ve},loadScript:function(){return W},loadScriptNode:function(){return q},logger:function(){return St},moduleFederationPlugin:function(){return _t},normalizeOptions:function(){return it},parseEntry:function(){return bt},safeToString:function(){return re},safeWrapper:function(){return Ie},sharePlugin:function(){return Et},simpleJoinRemoteEntry:function(){return V},warn:function(){return se}});ie();return jo(zo)}();//# sourceMappingURL=sdk.js.map
|
|
1
|
+
"use strict";function _array_like_to_array(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _array_with_holes(e){if(Array.isArray(e))return e}function _array_without_holes(e){if(Array.isArray(e))return _array_like_to_array(e)}function _assert_this_initialized(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function asyncGeneratorStep(e,t,n,r,o,a,i){try{var c=e[a](i);var s=c.value}catch(e){n(e);return}if(c.done){t(s)}else{Promise.resolve(s).then(r,o)}}function _async_to_generator(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){asyncGeneratorStep(a,r,o,i,c,"next",e)}function c(e){asyncGeneratorStep(a,r,o,i,c,"throw",e)}i(undefined)})}}function _call_super(e,t,n){t=_get_prototype_of(t);return _possible_constructor_return(e,_is_native_reflect_construct()?Reflect.construct(t,n||[],_get_prototype_of(e).constructor):t.apply(e,n))}function _class_call_check(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function _create_class(e,t,n){if(t)_defineProperties(e.prototype,t);if(n)_defineProperties(e,n);return e}function _define_property(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function _get_prototype_of(e){_get_prototype_of=Object.setPrototypeOf?Object.getPrototypeOf:function e(e){return e.__proto__||Object.getPrototypeOf(e)};return _get_prototype_of(e)}function _inherits(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)_set_prototype_of(e,t)}function _instanceof(e,t){if(t!=null&&typeof Symbol!=="undefined"&&t[Symbol.hasInstance]){return!!t[Symbol.hasInstance](e)}else{return e instanceof t}}function _iterable_to_array(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _iterable_to_array_limit(e,t){var n=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n==null)return;var r=[];var o=true;var a=false;var i,c;try{for(n=n.call(e);!(o=(i=n.next()).done);o=true){r.push(i.value);if(t&&r.length===t)break}}catch(e){a=true;c=e}finally{try{if(!o&&n["return"]!=null)n["return"]()}finally{if(a)throw c}}return r}function _non_iterable_rest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _non_iterable_spread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _possible_constructor_return(e,t){if(t&&(_type_of(t)==="object"||typeof t==="function")){return t}return _assert_this_initialized(e)}function _set_prototype_of(e,t){_set_prototype_of=Object.setPrototypeOf||function e(e,t){e.__proto__=t;return e};return _set_prototype_of(e,t)}function _sliced_to_array(e,t){return _array_with_holes(e)||_iterable_to_array_limit(e,t)||_unsupported_iterable_to_array(e,t)||_non_iterable_rest()}function _to_array(e){return _array_with_holes(e)||_iterable_to_array(e)||_unsupported_iterable_to_array(e)||_non_iterable_rest()}function _to_consumable_array(e){return _array_without_holes(e)||_iterable_to_array(e)||_unsupported_iterable_to_array(e)||_non_iterable_spread()}function _type_of(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function _unsupported_iterable_to_array(e,t){if(!e)return;if(typeof e==="string")return _array_like_to_array(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _array_like_to_array(e,t)}function _is_native_reflect_construct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_is_native_reflect_construct=function(){return!!e})()}function _ts_generator(e,t){var n,r,o,a={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return i.next=c(0),i["throw"]=c(1),i["return"]=c(2),typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(e){return function(t){return s([e,t])}}function s(c){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,c[0]&&(a=0)),a)try{if(n=1,r&&(o=c[0]&2?r["return"]:c[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;if(r=0,o)c=[c[0]&2,o.value];switch(c[0]){case 0:case 1:o=c;break;case 4:a.label++;return{value:c[1],done:false};case 5:a.label++;r=c[1];c=[0];continue;case 7:c=a.ops.pop();a.trys.pop();continue;default:if(!(o=a.trys,o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1];o=c;break}if(o&&a.label<o[2]){a.label=o[2];a.ops.push(c);break}if(o[2])a.ops.pop();a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e];r=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}}var EMP_SHARE_RUNTIME=function(){var L=function e(){return(typeof window==="undefined"?"undefined":_type_of(window))<"u"};var Y=function e(){return(typeof process==="undefined"?"undefined":_type_of(process))<"u"&&process.env&&process.env.FEDERATION_DEBUG?!!process.env.FEDERATION_DEBUG:(typeof FEDERATION_DEBUG==="undefined"?"undefined":_type_of(FEDERATION_DEBUG))<"u"&&!!FEDERATION_DEBUG};var er=function e(e){try{return JSON.stringify(e,null,2)}catch(e){return""}};var tr=function e(){try{if((typeof window==="undefined"?"undefined":_type_of(window))<"u"&&window.localStorage)return localStorage.getItem(He)===Me}catch(e){return(typeof document==="undefined"?"undefined":_type_of(document))<"u"}return!1};var X=function e(e){try{return JSON.stringify(e,null,2)}catch(e){return""}};var Pe=function e(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")};var me=function e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var n,r;var o=t.remotes,a=o===void 0?{}:o,c=t.overrides,s=c===void 0?{}:c,u=t.version,l,f=i(function(){return"publicPath"in e.metaData?e.metaData.publicPath==="auto"&&u?Pe(u):e.metaData.publicPath:e.metaData.getPublicPath},"getPublicPath"),h=Object.keys(s),d={};if(!Object.keys(a).length){var p;d=((p=e.remotes)==null?void 0:p.reduce(function(e,t){var n,r=t.federationContainerName;return h.includes(r)?n=s[r]:"version"in t?n=t.version:n=t.entry,e[r]={matchedVersion:n},e},{}))||{}}Object.keys(a).forEach(function(e){return d[e]={matchedVersion:h.includes(e)?s[e]:a[e]}});var m=e.metaData,v=m.remoteEntry,y=v.path,g=v.name,_=v.type,b=m.types,E=m.buildInfo,S=E.buildVersion,I=m.globalName,R=m.ssrRemoteEntry,w=e.exposes,k={version:u||"",buildVersion:S,globalName:I,remoteEntry:U(y,g),remoteEntryType:_,remoteTypes:U(b.path,b.name),remoteTypesZip:b.zip||"",remoteTypesAPI:b.api||"",remotesInfo:d,shared:e===null||e===void 0?void 0:e.shared.map(function(e){return{assets:e.assets,sharedName:e.name,version:e.version}}),modules:w===null||w===void 0?void 0:w.map(function(e){return{moduleName:e.name,modulePath:e.path,assets:e.assets}})};if((n=e.metaData)!=null&&n.prefetchInterface){var O=e.metaData.prefetchInterface;k=F({},k,{prefetchInterface:O})}if((r=e.metaData)!=null&&r.prefetchEntry){var N=e.metaData.prefetchEntry,A=N.path,T=N.name,P=N.type;k=F({},k,{prefetchEntry:U(A,T),prefetchEntryType:P})}if("publicPath"in e.metaData?l=F({},k,{publicPath:f()}):l=F({},k,{getPublicPath:f()}),R){var D=U(R.path,R.name);l.ssrRemoteEntry=D,l.ssrRemoteEntryType=R.type||"commonjs-module"}return l};var Q=function e(e){return!!("remoteEntry"in e&&e.remoteEntry.includes(he))};var pe=function e(e,t){return _async_to_generator(function(){var n;return _ts_generator(this,function(r){switch(r.label){case 0:r.trys.push([0,2,,3]);return[4,e()];case 1:return[2,r.sent()];case 2:n=r.sent();!t&&oe(n);return[2];case 3:return[2]}})})()};var fe=function e(e,t){var n=/^(https?:)?\/\//i,r=e.replace(n,"").replace(/\/$/,""),o=t.replace(n,"").replace(/\/$/,"");return r===o};var Z=function e(e){var t=null,n=!0,r=2e4,o,a=document.getElementsByTagName("script");for(var c=0;c<a.length;c++){var s=a[c],u=s.getAttribute("src");if(u&&fe(u,e.url)){t=s,n=!1;break}}if(!t){var l=e.attrs;t=document.createElement("script"),t.type=(l===null||l===void 0?void 0:l.type)==="module"?"module":"text/javascript",t.src=e.url;var f;e.createScriptHook&&(f=e.createScriptHook(e.url,e.attrs),_instanceof(f,HTMLScriptElement)?t=f:(typeof f==="undefined"?"undefined":_type_of(f))=="object"&&("script"in f&&f.script&&(t=f.script),"timeout"in f&&f.timeout&&(r=f.timeout))),l&&!f&&Object.keys(l).forEach(function(e){t&&(e==="async"||e==="defer"?t[e]=l[e]:t.getAttribute(e)||t.setAttribute(e,l[e]))})}var h=i(function(n,r){return _async_to_generator(function(){var a,c,s,u,l;return _ts_generator(this,function(f){switch(f.label){case 0:if(!(clearTimeout(o),t&&(t.onerror=null,t.onload=null,pe(function(){var n=e.needDeleteScript,r=n===void 0?!0:n;r&&(t===null||t===void 0?void 0:t.parentNode)&&t.parentNode.removeChild(t)}),n&&typeof n=="function")))return[3,3];s=n(r);if(!_instanceof(s,Promise))return[3,2];return[4,s];case 1:l=f.sent();return[2,(e==null||(u=e.cb)==null||u.call(e),l)];case 2:return[2,(e==null||(c=e.cb)==null||c.call(e),s)];case 3:e==null||(a=e.cb)==null||a.call(e);return[2]}})})()},"onScriptComplete");return t.onerror=h.bind(null,t.onerror),t.onload=h.bind(null,t.onload),o=setTimeout(function(){h(null,new Error('Remote script "'.concat(e.url,'" time-outed.')))},r),{script:t,needAttach:n}};var V=function e(e){var t=null,n=!0,r=document.getElementsByTagName("link");for(var o=0;o<r.length;o++){var a=r[o],c=a.getAttribute("href"),s=a.getAttribute("ref");if(c&&fe(c,e.url)&&s===e.attrs.ref){t=a,n=!1;break}}if(!t){t=document.createElement("link"),t.setAttribute("href",e.url);var u,l=e.attrs;e.createLinkHook&&(u=e.createLinkHook(e.url,l),_instanceof(u,HTMLLinkElement)&&(t=u)),l&&!u&&Object.keys(l).forEach(function(e){t&&!t.getAttribute(e)&&t.setAttribute(e,l[e])})}var f=i(function(n,r){if(t&&(t.onerror=null,t.onload=null,pe(function(){var n=e.needDeleteLink,r=n===void 0?!0:n;r&&(t===null||t===void 0?void 0:t.parentNode)&&t.parentNode.removeChild(t)}),n)){var o=n(r);return e.cb(),o}e.cb()},"onLinkComplete");return t.onerror=f.bind(null,t.onerror),t.onload=f.bind(null,t.onload),{link:t,needAttach:n}};var ee=function e(e,t){var n=t.attrs,r=n===void 0?{}:n,o=t.createScriptHook;return new Promise(function(t,n){var a=Z({url:e,cb:t,attrs:F({fetchpriority:"high"},r),createScriptHook:o,needDeleteScript:!0}),i=a.script,c=a.needAttach;c&&document.head.appendChild(i)})};var K=function e(e){if(!e)throw new Error("import specifier is required");return new Function("name","return import(name)")(e).then(function(e){return e}).catch(function(t){throw console.error("Error importing module ".concat(e,":"),t),t})};var Le=function Le(url,cb,attrs,createScriptHook){if(createScriptHook){var _$e=createScriptHook(url);_$e&&(typeof _$e==="undefined"?"undefined":_type_of(_$e))=="object"&&"url"in _$e&&(url=_$e.url)}var urlObj;try{urlObj=new URL(url)}catch(e){console.error("Error constructing URL:",e),cb(new Error("Invalid URL: ".concat(e)));return}var getFetch=i(function(){return _async_to_generator(function(){return _ts_generator(this,function(e){if((typeof __webpack_require__==="undefined"?"undefined":_type_of(__webpack_require__))<"u")try{if(__webpack_require__.federation.instance.loaderHook.lifecycle.fetch)return[2,or]}catch(e){console.warn("federation.instance.loaderHook.lifecycle.fetch failed:",e)}return[2,(typeof fetch==="undefined"?"undefined":_type_of(fetch))>"u"?Ze():fetch]})})()},"getFetch"),handleScriptFetch=i(function(f,urlObj){return _async_to_generator(function(){var _vm_constants,res,data,_ref,path,vm,scriptContext,urlDirname,filename,_vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER,script,exportedInterface,_$e,e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,4,,5]);return[4,f(urlObj.href)];case 1:res=_state.sent();return[4,res.text()];case 2:data=_state.sent();return[4,Promise.all([K("path"),K("vm")])];case 3:_ref=_sliced_to_array.apply(void 0,[_state.sent(),2]),path=_ref[0],vm=_ref[1],scriptContext={exports:{},module:{exports:{}}},urlDirname=urlObj.pathname.split("/").slice(0,-1).join("/"),filename=path.basename(urlObj.pathname);script=new vm.Script("(function(exports, module, require, __dirname, __filename) {".concat(data,"\n})"),{filename:filename,importModuleDynamically:(_vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER=(_vm_constants=vm.constants)==null?void 0:_vm_constants.USE_MAIN_CONTEXT_DEFAULT_LOADER)!=null?_vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER:K});script.runInThisContext()(scriptContext.exports,scriptContext.module,eval("require"),urlDirname,filename);exportedInterface=scriptContext.module.exports||scriptContext.exports;if(attrs&&exportedInterface&&attrs.globalName){_$e=exportedInterface[attrs.globalName]||exportedInterface;cb(void 0,_$e);return[2]}cb(void 0,exportedInterface);return[3,5];case 4:e=_state.sent();cb(_instanceof(e,Error)?e:new Error("Script execution error: ".concat(e)));return[3,5];case 5:return[2]}})})()},"handleScriptFetch");getFetch().then(function(e){return _async_to_generator(function(){var t,n;return _ts_generator(this,function(r){switch(r.label){case 0:if(!((attrs===null||attrs===void 0?void 0:attrs.type)==="esm"||(attrs===null||attrs===void 0?void 0:attrs.type)==="module"))return[3,2];t=[urlObj.href];n={fetch:e};return[4,K("vm")];case 1:return[2,Oe.apply(void 0,t.concat([(n.vm=r.sent(),n)])).then(function(e){return _async_to_generator(function(){return _ts_generator(this,function(t){switch(t.label){case 0:return[4,e.evaluate()];case 1:t.sent(),cb(void 0,e.namespace);return[2]}})})()}).catch(function(e){cb(_instanceof(e,Error)?e:new Error("Script execution error: ".concat(e)))})];case 2:handleScriptFetch(e,urlObj);return[2]}})})()}).catch(function(e){cb(e)})};var te=function e(e,t){return new Promise(function(n,r){Le(e,function(e,o){if(e)r(e);else{var a,i;var c=(t==null||(a=t.attrs)==null?void 0:a.globalName)||"__FEDERATION_".concat(t==null||(i=t.attrs)==null?void 0:i.name,":custom__"),s=globalThis[c]=o;n(s)}},t.attrs,t.createScriptHook)})};var et=function e(e,t,n){return function(r){if(r===!1)return!1;if((typeof r==="undefined"?"undefined":_type_of(r))>"u")return e?t:!1;if(r===!0)return t;if(r&&(typeof r==="undefined"?"undefined":_type_of(r))=="object")return F({},t,r);throw new Error("Unexpected type for `".concat(n,"`, expect boolean/undefined/object, got: ").concat(typeof r==="undefined"?"undefined":_type_of(r)))}};var Ht=function e(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n};var je=function e(){return(typeof FEDERATION_BUILD_IDENTIFIER==="undefined"?"undefined":_type_of(FEDERATION_BUILD_IDENTIFIER))<"u"?FEDERATION_BUILD_IDENTIFIER:""};var w=function e(e,t){e||D(t)};var D=function e(e){throw _instanceof(e,Error)?(e.message="".concat(Ce,": ").concat(e.message),e):new Error("".concat(Ce,": ").concat(e))};var le=function e(e){_instanceof(e,Error)?(e.message="".concat(Ce,": ").concat(e.message),console.warn(e)):console.warn("".concat(Ce,": ").concat(e))};var Tt=function e(e,t){return e.findIndex(function(e){return e===t})===-1&&e.push(t),e};var ae=function e(e){return"version"in e&&e.version?"".concat(e.name,":").concat(e.version):"entry"in e&&e.entry?"".concat(e.name,":").concat(e.entry):"".concat(e.name)};var Ue=function e(e){return _type_of(e.entry)<"u"};var Mt=function e(e){return!e.entry.includes(".json")&&e.entry.includes(".js")};var Ve=function e(e){return e&&(typeof e==="undefined"?"undefined":_type_of(e))=="object"};var cr=function e(e){return uo.call(e)==="[object Object]"};var xt=function e(e){return Array.isArray(e)?e:[e]};var Dt=function e(e){var t={url:"",type:"global",globalName:""};return L()?"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};var ye=function e(e,t,n){Object.defineProperty(e,t,{value:n,configurable:!1,writable:!0})};var ge=function e(e,t){return Object.hasOwnProperty.call(e,t)};var Ft=function e(e){var t,n,r,o,a,i;ge(e,"__VMOK__")&&!ge(e,"__FEDERATION__")&&ye(e,"__FEDERATION__",e.__VMOK__),ge(e,"__FEDERATION__")||(ye(e,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),ye(e,"__VMOK__",e.__FEDERATION__));var c;(c=(t=e.__FEDERATION__).__GLOBAL_PLUGIN__)!=null||(t.__GLOBAL_PLUGIN__=[]);var s;(s=(n=e.__FEDERATION__).__INSTANCES__)!=null||(n.__INSTANCES__=[]);var u;(u=(r=e.__FEDERATION__).moduleInfo)!=null||(r.moduleInfo={});var l;(l=(o=e.__FEDERATION__).__SHARE__)!=null||(o.__SHARE__={});var f;(f=(a=e.__FEDERATION__).__MANIFEST_LOADING__)!=null||(a.__MANIFEST_LOADING__={});var h;(h=(i=e.__FEDERATION__).__PRELOADED_MAP__)!=null||(i.__PRELOADED_MAP__=new Map)};var ur=function e(e,t){var n=je();return globalThis.__FEDERATION__.__INSTANCES__.find(function(r){return!!(n&&r.options.id===je()||r.options.name===e&&!r.options.version&&!t||r.options.name===e&&t&&r.options.version===t)})};var hr=function e(e){globalThis.__FEDERATION__.__INSTANCES__.push(e)};var mr=function e(){return globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__};var pr=function e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Y();t&&(globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="0.6.10")};var q=function e(e,t){if(typeof t=="string"){if(e[t])return{value:e[t],key:t};{var n=Object.keys(e);var r=true,o=false,a=undefined;try{for(var i=n[Symbol.iterator](),c;!(r=(c=i.next()).done);r=true){var s=c.value;var u=_sliced_to_array(s.split(":"),2),l=u[0],f=u[1],h="".concat(l,":").concat(t),d=e[h];if(d)return{value:d,key:h}}}catch(e){o=true;a=e}finally{try{if(!r&&i.return!=null){i.return()}}finally{if(o){throw a}}}return{value:void 0,key:t}}}else throw new Error("key must be string")};var M=function e(e){return new RegExp(e)};var T=function e(e){return!e||e.toLowerCase()==="x"||e==="*"};var Gt=function e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return function(e){return t.reduce(function(e,t){return t(e)},e)}};var kt=function e(e){return e.match(M(ko))};var Pt=function e(e,t,n,r){var o="".concat(e,".").concat(t,".").concat(n);return r?"".concat(o,"-").concat(r):o};var Er=function e(e){return e.replace(M(Eo),function(e,t,n,r,o,a,i,c,s,u,l,f){return T(n)?t="":T(r)?t=">=".concat(n,".0.0"):T(o)?t=">=".concat(n,".").concat(r,".0"):t=">=".concat(t),T(s)?c="":T(u)?c="<".concat(Number(s)+1,".0.0-0"):T(l)?c="<".concat(s,".").concat(Number(u)+1,".0-0"):f?c="<=".concat(s,".").concat(u,".").concat(l,"-").concat(f):c="<=".concat(c),"".concat(t," ").concat(c).trim()})};var br=function e(e){return e.replace(M($o),"$1$2$3")};var Sr=function e(e){return e.replace(M(Io),"$1~")};var $r=function e(e){return e.replace(M(vo),"$1^")};var Ir=function e(e){return e.trim().split(/\s+/).map(function(e){return e.replace(M(wo),function(e,t,n,r,o){return T(t)?"":T(n)?">=".concat(t,".0.0 <").concat(Number(t)+1,".0.0-0"):T(r)?t==="0"?">=".concat(t,".").concat(n,".0 <").concat(t,".").concat(Number(n)+1,".0-0"):">=".concat(t,".").concat(n,".0 <").concat(Number(t)+1,".0.0-0"):o?t==="0"?n==="0"?">=".concat(t,".").concat(n,".").concat(r,"-").concat(o," <").concat(t,".").concat(n,".").concat(Number(r)+1,"-0"):">=".concat(t,".").concat(n,".").concat(r,"-").concat(o," <").concat(t,".").concat(Number(n)+1,".0-0"):">=".concat(t,".").concat(n,".").concat(r,"-").concat(o," <").concat(Number(t)+1,".0.0-0"):t==="0"?n==="0"?">=".concat(t,".").concat(n,".").concat(r," <").concat(t,".").concat(n,".").concat(Number(r)+1,"-0"):">=".concat(t,".").concat(n,".").concat(r," <").concat(t,".").concat(Number(n)+1,".0-0"):">=".concat(t,".").concat(n,".").concat(r," <").concat(Number(t)+1,".0.0-0")})}).join(" ")};var vr=function e(e){return e.trim().split(/\s+/).map(function(e){return e.replace(M(Ao),function(e,t,n,r,o){return T(t)?"":T(n)?">=".concat(t,".0.0 <").concat(Number(t)+1,".0.0-0"):T(r)?">=".concat(t,".").concat(n,".0 <").concat(t,".").concat(Number(n)+1,".0-0"):o?">=".concat(t,".").concat(n,".").concat(r,"-").concat(o," <").concat(t,".").concat(Number(n)+1,".0-0"):">=".concat(t,".").concat(n,".").concat(r," <").concat(t,".").concat(Number(n)+1,".0-0")})}).join(" ")};var Rr=function e(e){return e.split(/\s+/).map(function(e){return e.trim().replace(M(To),function(e,t,n,r,o,a){var i=T(n),c=i||T(r),s=c||T(o);return t==="="&&s&&(t=""),a="",i?t===">"||t==="<"?"<0.0.0-0":"*":t&&s?(c&&(r=0),o=0,t===">"?(t=">=",c?(n=Number(n)+1,r=0,o=0):(r=Number(r)+1,o=0)):t==="<="&&(t="<",c?n=Number(n)+1:r=Number(r)+1),t==="<"&&(a="-0"),"".concat(t+n,".").concat(r,".").concat(o).concat(a)):c?">=".concat(n,".0.0").concat(a," <").concat(Number(n)+1,".0.0-0"):s?">=".concat(n,".").concat(r,".0").concat(a," <").concat(n,".").concat(Number(r)+1,".0-0"):e})}).join(" ")};var wr=function e(e){return e.trim().replace(M(Ro),"")};var Nr=function e(e){return e.trim().replace(M(Po),"")};var be=function e(e,t){return e=Number(e)||e,t=Number(t)||t,e>t?1:e===t?0:-1};var Or=function e(e,t){var n=e.preRelease,r=t.preRelease;if(n===void 0&&r)return 1;if(n&&r===void 0)return-1;if(n===void 0&&r===void 0)return 0;for(var o=0,a=n.length;o<=a;o++){var i=n[o],c=r[o];if(i!==c)return i===void 0&&c===void 0?0:i?c?be(i,c):-1:1}return 0};var de=function e(e,t){return be(e.major,t.major)||be(e.minor,t.minor)||be(e.patch,t.patch)||Or(e,t)};var Fe=function e(e,t){return e.version===t.version};var Ar=function e(e,t){switch(e.operator){case"":case"=":return Fe(e,t);case">":return de(e,t)<0;case">=":return Fe(e,t)||de(e,t)<0;case"<":return de(e,t)>0;case"<=":return Fe(e,t)||de(e,t)>0;case void 0:return!0;default:return!1}};var Tr=function e(e){return Gt(Ir,vr,Rr,wr)(e)};var kr=function e(e){return Gt(Er,br,Sr,$r)(e.trim()).split(/\s+/).join(" ")};var Se=function e(e,t){if(!e)return!1;var n=kr(t).split(" ").map(function(e){return Tr(e)}).join(" ").split(/\s+/).map(function(e){return Nr(e)}),r=kt(e);if(!r)return!1;var o=_sliced_to_array(r,7),a=o[1],i=o[3],c=o[4],s=o[5],u=o[6],l={operator:a,version:Pt(i,c,s,u),major:i,minor:c,patch:s,preRelease:u===null||u===void 0?void 0:u.split(".")};var f=true,h=false,d=undefined;try{for(var p=n[Symbol.iterator](),m;!(f=(m=p.next()).done);f=true){var v=m.value;var y=kt(v);if(!y)return!1;var g=_sliced_to_array(y,7),_=g[1],b=g[3],E=g[4],S=g[5],I=g[6],R={operator:_,version:Pt(b,E,S,I),major:b,minor:E,patch:S,preRelease:I===null||I===void 0?void 0:I.split(".")};if(!Ar(R,l))return!1}}catch(e){h=true;d=e}finally{try{if(!f&&p.return!=null){p.return()}}finally{if(h){throw d}}}return!0};var Pr=function e(e,t,n,r){var o;"get"in e?o=e.get:"lib"in e?o=i(function(){return Promise.resolve(e.lib)},"get"):o=i(function(){return Promise.resolve(function(){throw new Error("Can not get shared '".concat(n,"'!"))})},"get"),e.strategy&&le('"shared.strategy is deprecated, please set in initOptions.shareStrategy instead!"');var a,c,s;return k({deps:[],useIn:[],from:t,loading:null},e,{shareConfig:k({requiredVersion:"^".concat(e.version),singleton:!1,eager:!1,strictVersion:!1},e.shareConfig),get:o,loaded:(e===null||e===void 0?void 0:e.loaded)||"lib"in e?!0:void 0,version:(a=e.version)!=null?a:"0",scope:Array.isArray(e.scope)?e.scope:[(c=e.scope)!=null?c:"default"],strategy:((s=e.strategy)!=null?s:r)||"version-first"})};var Ut=function e(e,t){var n=t.shared||{},r=t.name,o=Object.keys(n).reduce(function(e,o){var a=xt(n[o]);return e[o]=e[o]||[],a.forEach(function(n){e[o].push(Pr(n,r,o,t.shareStrategy))}),e},{}),a=k({},e.shared);return Object.keys(o).forEach(function(e){a[e]?o[e].forEach(function(t){a[e].find(function(e){return e.version===t.version})||a[e].push(t)}):a[e]=o[e]}),{shared:a,shareInfos:o}};var ie=function e(e,t){var n=i(function(e){if(!Number.isNaN(Number(e))){var t=e.split("."),n=e;for(var r=0;r<3-t.length;r++)n+=".0";return n}return e},"transformInvalidVersion");return!!Se(n(e),"<=".concat(n(t)))};var Lr=function e(e,t,n){var r=e[t][n],o=i(function(e,t){return!$e(r[e])&&ie(e,t)},"callback");return Vt(e[t][n],o)};var Hr=function e(e,t,n){var r=e[t][n],o=i(function(e,t){return $e(r[t])?$e(r[e])?!!ie(e,t):!0:$e(r[e])?!1:ie(e,t)},"callback");return Vt(e[t][n],o)};var Mr=function e(e){return e==="loaded-first"?Hr:Lr};var W=function e(e,t,n,r){if(!e)return;var o=n.shareConfig,a=n.scope,c=a===void 0?Ne:a,s=n.strategy,u=Array.isArray(c)?c:[c];var l=true,f=false,h=undefined;try{var d=function(){var a=m.value;if(o&&e[a]&&e[a][t]){var c=o.requiredVersion,u=Mr(s)(e,a,t),l=i(function(){if(o.singleton){if(typeof c=="string"&&!Se(u,c)){var r="Version ".concat(u," from ").concat(u&&e[a][t][u].from," of shared singleton module ").concat(t," does not satisfy the requirement of ").concat(n.from," which needs ").concat(c,")");o.strictVersion?D(r):le(r)}return e[a][t][u]}else{if(c===!1||c==="*"||Se(u,c))return e[a][t][u];var s=true,l=false,f=undefined;try{for(var h=Object.entries(e[a][t])[Symbol.iterator](),d;!(s=(d=h.next()).done);s=true){var p=_sliced_to_array(d.value,2),m=p[0],v=p[1];if(Se(m,c))return v}}catch(e){l=true;f=e}finally{try{if(!s&&h.return!=null){h.return()}}finally{if(l){throw f}}}}},"defaultResolver"),f={shareScopeMap:e,scope:a,pkgName:t,version:u,GlobalFederation:Ie.__FEDERATION__,resolver:l};return{v:(r.emit(f)||f).resolver()}}};for(var p=u[Symbol.iterator](),m;!(l=(m=p.next()).done);l=true){var v=d();if(_type_of(v)==="object")return v.v}}catch(e){f=true;h=e}finally{try{if(!l&&p.return!=null){p.return()}}finally{if(f){throw h}}}};var Bt=function e(){return Ie.__FEDERATION__.__SHARE__};var Lt=function e(e){var t=e.pkgName,n=e.extraOptions,r=e.shareInfos,o=i(function(e){if(!e)return;var t={};e.forEach(function(e){t[e.version]=e});var n=Vt(t,i(function(e,n){return!$e(t[e])&&ie(e,n)},"callback"));return t[n]},"defaultResolver");var a;var c=(a=n===null||n===void 0?void 0:n.resolver)!=null?a:o;return Object.assign({},c(r[t]),n===null||n===void 0?void 0:n.customShareInfo)};var xr=function e(e,t){var n=true,r=false,o=undefined;try{for(var a=e[Symbol.iterator](),i;!(n=(i=a.next()).done);n=true){var c=i.value;var s=t.startsWith(c.name),u=t.replace(c.name,"");if(s){if(u.startsWith("/")){var l=c.name;return u=".".concat(u),{pkgNameOrAlias:l,expose:u,remote:c}}else if(u==="")return{pkgNameOrAlias:c.name,expose:".",remote:c}}var f=c.alias&&t.startsWith(c.alias),h=c.alias&&t.replace(c.alias,"");if(c.alias&&f){if(h&&h.startsWith("/")){var d=c.alias;return h=".".concat(h),{pkgNameOrAlias:d,expose:h,remote:c}}else if(h==="")return{pkgNameOrAlias:c.alias,expose:".",remote:c}}}}catch(e){r=true;o=e}finally{try{if(!n&&a.return!=null){a.return()}}finally{if(r){throw o}}}};var Dr=function e(e,t){var n=true,r=false,o=undefined;try{for(var a=e[Symbol.iterator](),i;!(n=(i=a.next()).done);n=true){var c=i.value;if(t===c.name||c.alias&&t===c.alias)return c}}catch(e){r=true;o=e}finally{try{if(!n&&a.return!=null){a.return()}}finally{if(r){throw o}}}};var Fr=function e(e,t){var n=fo();return n.length>0&&n.forEach(function(t){(e===null||e===void 0?void 0:e.find(function(e){return e.name!==t.name}))&&e.push(t)}),e&&e.length>0&&e.forEach(function(e){t.forEach(function(t){t.applyPlugin(e)})}),e};var jr=function e(e){return _async_to_generator(function(e){var t,n;return _ts_generator(this,function(r){t=e.entry,n=e.remoteEntryExports;return[2,new Promise(function(e,r){try{n?e(n):new Function("callbacks",'import("'.concat(t,'").then(callbacks[0]).catch(callbacks[1])'))([e,r])}catch(e){r(e)}})]})}).apply(this,arguments)};var Cr=function e(e){return _async_to_generator(function(e){var t,n;return _ts_generator(this,function(r){t=e.entry,n=e.remoteEntryExports;return[2,new Promise(function(e,r){try{n?e(n):new Function("callbacks",'System.import("'.concat(t,'").then(callbacks[0]).catch(callbacks[1])'))([e,r])}catch(e){r(e)}})]})}).apply(this,arguments)};var Gr=function e(e){return _async_to_generator(function(e){var t,n,r,o,a,c;return _ts_generator(this,function(s){t=e.name,n=e.globalName,r=e.entry,o=e.createScriptHook;a=Ge(t,n),c=a.entryExports;return[2,c||ee(r,{attrs:{},createScriptHook:i(function(e,t){var n=o.emit({url:e,attrs:t});if(n&&(_instanceof(n,HTMLScriptElement)||"script"in n||"timeout"in n))return n},"createScriptHook")}).then(function(){var e=Ge(t,n),o=e.remoteEntryKey,a=e.entryExports;return w(a,"\n Unable to use the ".concat(t,"'s '").concat(r,"' URL with ").concat(o,"'s globalName to get remoteEntry exports.\n Possible reasons could be:\n\n 1. '").concat(r,"' is not the correct URL, or the remoteEntry resource or name is incorrect.\n\n 2. ").concat(o," cannot be used to get remoteEntry exports in the window object.\n ")),a}).catch(function(e){throw e})]})}).apply(this,arguments)};var Ur=function e(e){return _async_to_generator(function(e){var t,n,r,o,a,i,c;return _ts_generator(this,function(s){t=e.remoteInfo,n=e.remoteEntryExports,r=e.createScriptHook;o=t.entry,a=t.entryGlobalName,i=t.name,c=t.type;switch(c){case"esm":case"module":return[2,jr({entry:o,remoteEntryExports:n})];case"system":return[2,Cr({entry:o,remoteEntryExports:n})];default:return[2,Gr({entry:o,globalName:a,name:i,createScriptHook:r})]}return[2]})}).apply(this,arguments)};var Vr=function e(e){return _async_to_generator(function(e){var t,n,r,o,a,c,s,u;return _ts_generator(this,function(l){t=e.remoteInfo,n=e.createScriptHook;r=t.entry,o=t.entryGlobalName,a=t.name,c=t.type,s=Ge(a,o),u=s.entryExports;return[2,u||te(r,{attrs:{name:a,globalName:o,type:c},createScriptHook:i(function(e,t){var r=n.emit({url:e,attrs:t});if(r&&"url"in r)return r},"createScriptHook")}).then(function(){var e=Ge(a,o),t=e.remoteEntryKey,n=e.entryExports;return w(n,"\n Unable to use the ".concat(a,"'s '").concat(r,"' URL with ").concat(t,"'s globalName to get remoteEntry exports.\n Possible reasons could be:\n\n 1. '").concat(r,"' is not the correct URL, or the remoteEntry resource or name is incorrect.\n\n 2. ").concat(t," cannot be used to get remoteEntry exports in the window object.\n ")),n}).catch(function(e){throw e})]})}).apply(this,arguments)};var Wt=function e(e){var t=e.entry,n=e.name;return re(n,t)};var Be=function e(e){return _async_to_generator(function(e){var t,n,r,o,a,i;return _ts_generator(this,function(c){t=e.origin,n=e.remoteEntryExports,r=e.remoteInfo;o=Wt(r);if(n)return[2,n];if(!_e[o]){a=t.remoteHandler.hooks.lifecycle.loadEntry,i=t.loaderHook.lifecycle.createScript;_e[o]=a.emit({createScriptHook:i,remoteInfo:r,remoteEntryExports:n}).then(function(e){return e||(L()?Ur({remoteInfo:r,remoteEntryExports:n,createScriptHook:i}):Vr({remoteInfo:r,createScriptHook:i}))})}return[2,_e[o]]})}).apply(this,arguments)};var ve=function e(e){return k({},e,{entry:"entry"in e?e.entry:"",type:e.type||fr,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||Ne})};var zt=function e(e,t){if(!Ve(t))return!1;if(e!==t){for(var n in e)if(!(n in t))return!1}return!0};var Kt=function e(e){return k({resourceCategory:"sync",share:!0,depsRemote:!0,prefetchInterface:!1},e)};var Br=function e(e,t){return t.map(function(t){var n=Dr(e,t.nameOrAlias);return w(n,"Unable to preload ".concat(t.nameOrAlias," as it is not included in ").concat(!n&&X({remoteInfo:n,remotes:e}))),{remote:n,preloadConfig:Kt(t)}})};var Wr=function e(e){return e?e.map(function(e){return e==="."?e:e.startsWith("./")?e.replace("./",""):e}):[]};var Jt=function e(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;var o=n.cssAssets,a=n.jsAssetsWithoutEntry,c=n.entryAssets;if(t.options.inBrowser){if(c.forEach(function(n){var r=n.moduleInfo,o=t.moduleCache.get(e.name);Be(o?{origin:t,remoteInfo:r,remoteEntryExports:o.remoteEntryExports}:{origin:t,remoteInfo:r,remoteEntryExports:void 0})}),r){var s={rel:"preload",as:"style"};o.forEach(function(e){var n=V({url:e,cb:i(function(){},"cb"),attrs:s,createLinkHook:i(function(e,n){var r=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:n});if(_instanceof(r,HTMLLinkElement))return r},"createLinkHook")}),r=n.link,o=n.needAttach;o&&document.head.appendChild(r)})}else{var u={rel:"stylesheet",type:"text/css"};o.forEach(function(e){var n=V({url:e,cb:i(function(){},"cb"),attrs:u,createLinkHook:i(function(e,n){var r=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:n});if(_instanceof(r,HTMLLinkElement))return r},"createLinkHook"),needDeleteLink:!1}),r=n.link,o=n.needAttach;o&&document.head.appendChild(r)})}if(r){var l={rel:"preload",as:"script"};a.forEach(function(e){var n=V({url:e,cb:i(function(){},"cb"),attrs:l,createLinkHook:i(function(e,n){var r=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:n});if(_instanceof(r,HTMLLinkElement))return r},"createLinkHook")}),r=n.link,o=n.needAttach;o&&document.head.appendChild(r)})}else{var f={fetchpriority:"high",type:(e===null||e===void 0?void 0:e.type)==="module"?"module":"text/javascript"};a.forEach(function(e){var n=Z({url:e,cb:i(function(){},"cb"),attrs:f,createScriptHook:i(function(e,n){var r=t.loaderHook.lifecycle.createScript.emit({url:e,attrs:n});if(_instanceof(r,HTMLScriptElement))return r},"createScriptHook"),needDeleteScript:!0}),r=n.script,o=n.needAttach;o&&document.head.appendChild(r)})}}};var Yt=function e(e,t){var n=Dt(t);n.url||D("The attribute remoteEntry of ".concat(e.name," must not be undefined."));var r=B(t,n.url);!L()&&!r.startsWith("http")&&(r="https:".concat(r)),e.type=n.type,e.entryGlobalName=n.globalName,e.entry=r,e.version=t.version,e.buildVersion=t.buildVersion};var qr=function e(){return{name:"snapshot-plugin",afterResolve:function e(e){return _async_to_generator(function(){var t,n,r,o,a,i,c,s,u,l;return _ts_generator(this,function(f){switch(f.label){case 0:t=e.remote,n=e.pkgNameOrAlias,r=e.expose,o=e.origin,a=e.remoteInfo;if(!(!Ue(t)||!Mt(t)))return[3,3];return[4,o.snapshotHandler.loadRemoteSnapshotInfo(t)];case 1:i=f.sent(),c=i.remoteSnapshot,s=i.globalSnapshot;Yt(a,c);u={remote:t,preloadConfig:{nameOrAlias:n,exposes:[r],resourceCategory:"sync",share:!1,depsRemote:!1}};return[4,o.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:o,preloadOptions:u,remoteInfo:a,remote:t,remoteSnapshot:c,globalSnapshot:s})];case 2:l=f.sent();return[2,(l&&Jt(a,o,l,!1),k({},e,{remoteSnapshot:c}))];case 3:return[2,e]}})})()}}};var zr=function e(e){var t=e.split(":");return t.length===1?{name:t[0],version:void 0}:t.length===2?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}};var Kr=function e(e,t,n,r,o){var a=[],c=[],s=[],u=new Set,l=new Set,f=e.options,h=t.preloadConfig,d=h.depsRemote;if(Xt(r,n,function(t,n,r){var o=function e(e){var n=e.map(function(e){return B(t,e)});return u.filter?n.filter(u.filter):n};var u;if(r)u=h;else if(Array.isArray(d)){var l=d.find(function(e){return e.nameOrAlias===n.name||e.nameOrAlias===n.alias});if(!l)return;u=Kt(l)}else if(d===!0)u=h;else return;var f=B(t,Dt(t).url);f&&s.push({name:n.name,moduleInfo:{name:n.name,entry:f,type:"remoteEntryType"in t?t.remoteEntryType:"global",entryGlobalName:"globalName"in t?t.globalName:n.name,shareScope:"",version:"version"in t?t.version:void 0},url:f});var p="modules"in t?t.modules:[],m=Wr(u.exposes);if(m.length&&"modules"in t){var v;p=t==null||(v=t.modules)==null?void 0:v.reduce(function(e,t){return(m===null||m===void 0?void 0:m.indexOf(t.moduleName))!==-1&&e.push(t),e},[])}if(i(o,"handleAssets"),p){var y=p.length;for(var g=0;g<y;g++){var _,b,E,S,I,R;var w=p[g],k="".concat(n.name,"/").concat(w.moduleName);e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:w.moduleName==="."?n.name:k,name:n.name,remoteSnapshot:t,preloadConfig:u,remote:n,origin:e}),!yo(k)&&(u.resourceCategory==="all"?((_=a).push.apply(_,_to_consumable_array(o(w.assets.css.async))),(b=a).push.apply(b,_to_consumable_array(o(w.assets.css.sync))),(E=c).push.apply(E,_to_consumable_array(o(w.assets.js.async))),(S=c).push.apply(S,_to_consumable_array(o(w.assets.js.sync)))):(u.resourceCategory="sync")&&((I=a).push.apply(I,_to_consumable_array(o(w.assets.css.sync))),(R=c).push.apply(R,_to_consumable_array(o(w.assets.js.sync)))),go(k))}}},!0,{},o),o.shared){var p=i(function(t,n){var r=W(e.shareScopeMap,n.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare);r&&typeof r.lib=="function"&&(n.assets.js.sync.forEach(function(e){u.add(e)}),n.assets.css.sync.forEach(function(e){l.add(e)}))},"collectSharedAssets");o.shared.forEach(function(e){var t;var n=(t=f.shared)==null?void 0:t[e.sharedName];if(!n)return;var r=e.version?n.find(function(t){return t.version===e.version}):n;r&&xt(r).forEach(function(t){p(t,e)})})}var m=c.filter(function(e){return!u.has(e)});return{cssAssets:a.filter(function(e){return!l.has(e)}),jsAssetsWithoutEntry:m,entryAssets:s}};var Qt=function e(e,t){var n=xe({name:t.options.name,version:t.options.version}),r=n&&"remotesInfo"in n&&n.remotesInfo&&q(n.remotesInfo,e.name).value;return r&&r.matchedVersion?{hostGlobalSnapshot:n,globalSnapshot:nr(),remoteSnapshot:xe({name:e.name,version:r.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:nr(),remoteSnapshot:xe({name:e.name,version:"version"in e?e.version:void 0})}};var Jr=function e(e){if(b)return b.registerRemotes(e.remotes),b;var t=ur(e.name,e.version);if(t)return t.initOptions(e),b||(b=t),t;{var n=mr()||Zt;return b=new n(e),hr(b),b}};var Yr=function e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return w(b,"Please call init first"),b.loadRemote.apply(b,t)};var Xr=function e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return w(b,"Please call init first"),b.loadShare.apply(b,t)};var Qr=function e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return w(b,"Please call init first"),b.loadShareSync.apply(b,t)};var Zr=function e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return w(b,"Please call init first"),b.preloadRemote.apply(b,t)};var eo=function e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return w(b,"Please call init first"),b.registerRemotes.apply(b,t)};var to=function e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return w(b,"Please call init first"),b.registerPlugins.apply(b,t)};var ro=function e(){return b};var Ke=Object.defineProperty;var oo=Object.getOwnPropertyDescriptor;var no=Object.getOwnPropertyNames;var ao=Object.prototype.hasOwnProperty;var G=function(e){return(typeof require==="undefined"?"undefined":_type_of(require))<"u"?require:(typeof Proxy==="undefined"?"undefined":_type_of(Proxy))<"u"?new Proxy(e,{get:function(e,t){return((typeof require==="undefined"?"undefined":_type_of(require))<"u"?require:e)[t]}}):e}(function(e){if((typeof require==="undefined"?"undefined":_type_of(require))<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Je=function(e,t){for(var n in t)Ke(e,n,{get:t[n],enumerable:!0})},so=function(e,t,n,r){var o=true,a=false,i=undefined;if(t&&(typeof t==="undefined"?"undefined":_type_of(t))=="object"||typeof t=="function")try{var c=function(){var o=u.value;!ao.call(e,o)&&o!==n&&Ke(e,o,{get:function(){return t[o]},enumerable:!(r=oo(t,o))||r.enumerable})};for(var s=no(t)[Symbol.iterator](),u;!(o=(u=s.next()).done);o=true)c()}catch(e){a=true;i=e}finally{try{if(!o&&s.return!=null){s.return()}}finally{if(a){throw i}}}return e};var io=function(e){return so(Ke({},"__esModule",{value:!0}),e)};var Do={};Je(Do,{MFRuntime:function(){return We},MFSDK:function(){return qe}});var We={};Je(We,{FederationHost:function(){return Zt},Module:function(){return qt},getInstance:function(){return ro},getRemoteEntry:function(){return Be},getRemoteInfo:function(){return ve},init:function(){return Jr},loadRemote:function(){return Yr},loadScript:function(){return ee},loadScriptNode:function(){return te},loadShare:function(){return Xr},loadShareSync:function(){return Qr},preloadRemote:function(){return Zr},registerGlobalPlugins:function(){return po},registerPlugins:function(){return to},registerRemotes:function(){return eo}});var lo=Object.defineProperty;var i=function(e,t){return lo(e,"name",{value:t,configurable:!0})},jo=function(e){return(typeof G==="undefined"?"undefined":_type_of(G))<"u"?G:(typeof Proxy==="undefined"?"undefined":_type_of(Proxy))<"u"?new Proxy(e,{get:function(e,t){return((typeof G==="undefined"?"undefined":_type_of(G))<"u"?G:e)[t]}}):e}(function(e){if((typeof G==="undefined"?"undefined":_type_of(G))<"u")return G.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Ye=function(e,t){return function(){return e&&(t=e(e=0)),t}};function F(){return F=Object.assign||i(function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},"assign"),F.apply(this,arguments)}var co=Ye(function(){"use strict";i(F,"_extends")});function Oe(e,t){return _async_to_generator(function(){var n,r,o,a;return _ts_generator(this,function(c){switch(c.label){case 0:n=t.fetch,r=t.vm;return[4,n(e)];case 1:return[4,c.sent().text()];case 2:o=c.sent(),a=new r.SourceTextModule(o,{importModuleDynamically:i(function(n,r){return _async_to_generator(function(){var r;return _ts_generator(this,function(o){r=new URL(n,e).href;return[2,Oe(r,t)]})})()},"importModuleDynamically")});return[4,a.link(function(n){return _async_to_generator(function(){var r;return _ts_generator(this,function(o){switch(o.label){case 0:r=new URL(n,e).href;return[4,Oe(r,t)];case 1:return[2,o.sent()]}})})()})];case 3:return[2,(c.sent(),a)]}})})()}var tt,he,He,Me,R,P,J,ce,rt,ot,nt,at,st,it,lt,ct,ut,ht,mt,Ae,rr,Xe,Te,Qe,pt,ft,re,ue,dt,yt,gt,B,_t,ke,oe,U,Ze,or,ne=Ye(function(){"use strict";var e,t;co(),tt="federation-manifest.json",he=".json",He="FEDERATION_DEBUG",Me="1",R={AT:"@",HYPHEN:"-",SLASH:"/"},P=(e={},_define_property(e,R.AT,"scope_"),_define_property(e,R.HYPHEN,"_"),_define_property(e,R.SLASH,"__"),e),J=(t={},_define_property(t,P[R.AT],R.AT),_define_property(t,P[R.HYPHEN],R.HYPHEN),_define_property(t,P[R.SLASH],R.SLASH),t),ce=":",rt="mf-manifest.json",ot="mf-stats.json",nt={NPM:"npm",APP:"app"},at="__MF_DEVTOOLS_MODULE_INFO__",st="ENCODE_NAME_PREFIX",it=".federation",lt={identifier:"MFDataPrefetch",globalKey:"__PREFETCH__",library:"mf-data-prefetch",exportsKey:"__PREFETCH_EXPORTS__",fileName:"bootstrap.js"},ct=Object.freeze({__proto__:null}),ut=Object.freeze({__proto__:null}),ht=Object.freeze({__proto__:null}),mt=Object.freeze({__proto__:null}),i(L,"isBrowserEnv"),i(Y,"isDebugMode"),Ae=i(function(){return(typeof process==="undefined"?"undefined":_type_of(process))<"u"&&process.env?process.env:{}},"getProcessEnv"),rr="[ FEDERATION DEBUG ]",i(er,"safeToString$1"),i(tr,"safeGetLocalStorageItem"),Te=(Xe=/*#__PURE__*/function(){function e(t){_class_call_check(this,e);this.enable=!1,this.identifier=t||rr,L()&&tr()?this.enable=!0:Y()&&(this.enable=!0)}_create_class(e,[{key:"info",value:function e(e,t){if(this.enable){var n=er(t)||"";L()?console.info("%c ".concat(this.identifier,": ").concat(e," ").concat(n),"color:#3300CC"):console.info("\x1b[34m%s","".concat(this.identifier,": ").concat(e," ").concat(n?"\n".concat(n):""))}}},{key:"logOriginalInfo",value:function e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}var r,o;this.enable&&(L()?(console.info("%c ".concat(this.identifier,": OriginalInfo"),"color:#3300CC"),(r=console).log.apply(r,_to_consumable_array(t))):(console.info("%c ".concat(this.identifier,": OriginalInfo"),"color:#3300CC"),(o=console).log.apply(o,_to_consumable_array(t))))}}]);return e}(),i(Xe,"Logger"),Xe),Qe="[ Federation Runtime ]",pt=i(function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ce;var r=e.split(n),o=Ae().NODE_ENV==="development"&&t,a="*",c=i(function(e){return e.startsWith("http")||e.includes(he)},"isEntry");if(r.length>=2){var s=_to_array(r),u=s[0],l=s.slice(1);e.startsWith(n)&&(l=[o||r.slice(-1)[0]],u=r.slice(0,-1).join(n));var f=o||l.join(n);return c(f)?{name:u,entry:f}:{name:u,version:f||a}}else if(r.length===1){var h=_sliced_to_array(r,1),d=h[0];return o&&c(o)?{name:d,entry:o}:{name:d,version:o||a}}else throw"Invalid entry value: ".concat(e)},"parseEntry"),ft=new Te,re=i(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return t.length?t.reduce(function(e,t){return t?e?"".concat(e).concat(ce).concat(t):t:e},""):""},"composeKeyWithSeparator"),ue=i(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;try{var r=n?".js":"";return"".concat(t).concat(e.replace(new RegExp("".concat(R.AT),"g"),P[R.AT]).replace(new RegExp("".concat(R.HYPHEN),"g"),P[R.HYPHEN]).replace(new RegExp("".concat(R.SLASH),"g"),P[R.SLASH])).concat(r)}catch(e){throw e}},"encodeName"),dt=i(function(e,t,n){try{var r=e;if(t){if(!r.startsWith(t))return r;r=r.replace(new RegExp(t,"g"),"")}return r=r.replace(new RegExp("".concat(P[R.AT]),"g"),J[P[R.AT]]).replace(new RegExp("".concat(P[R.SLASH]),"g"),J[P[R.SLASH]]).replace(new RegExp("".concat(P[R.HYPHEN]),"g"),J[P[R.HYPHEN]]),n&&(r=r.replace(".js","")),r}catch(e){throw e}},"decodeName"),yt=i(function(e,t){if(!e)return"";var n=e;return n==="."&&(n="default_export"),n.startsWith("./")&&(n=n.replace("./","")),ue(n,"__federation_expose_",t)},"generateExposeFilename"),gt=i(function(e,t){return e?ue(e,"__federation_shared_",t):""},"generateShareFilename"),B=i(function(e,t){if("getPublicPath"in e){var n;return e.getPublicPath.startsWith("function")?n=new Function("return "+e.getPublicPath)()():n=new Function(e.getPublicPath)(),"".concat(n).concat(t)}else return"publicPath"in e?"".concat(e.publicPath).concat(t):(console.warn("Cannot get resource URL. If in debug mode, please ignore.",e,t),"")},"getResourceUrl"),_t=i(function(e,t){e||ke(t)},"assert"),ke=i(function(e){throw new Error("".concat(Qe,": ").concat(e))},"error"),oe=i(function(e){console.warn("".concat(Qe,": ").concat(e))},"warn"),i(X,"safeToString"),U=i(function(e,t){if(!e)return t;var n=i(function(e){if(e===".")return"";if(e.startsWith("./"))return e.replace("./","");if(e.startsWith("/")){var t=e.slice(1);return t.endsWith("/")?t.slice(0,-1):t}return e},"transformPath")(e);return n?n.endsWith("/")?"".concat(n).concat(t):"".concat(n,"/").concat(t):t},"simpleJoinRemoteEntry"),i(Pe,"inferAutoPublicPath"),i(me,"generateSnapshotFromManifest"),i(Q,"isManifestProvider"),i(pe,"safeWrapper"),i(fe,"isStaticResourcesEqual"),i(Z,"createScript"),i(V,"createLink"),i(ee,"loadScript"),i(K,"importNodeModule"),Ze=i(function(){return _async_to_generator(function(){var e;return _ts_generator(this,function(t){switch(t.label){case 0:return[4,K("node-fetch")];case 1:e=t.sent();return[2,e.default||e]}})})()},"loadNodeFetch"),or=i(function(e,t){return _async_to_generator(function(){var n,r,o,a;return _ts_generator(this,function(c){switch(c.label){case 0:n=__webpack_require__.federation.instance.loaderHook;return[4,i(function(e,t){return n.lifecycle.fetch.emit(e,t)},"hook")(e,t||{})];case 1:r=c.sent();if(!(!r||!_instanceof(r,Response)))return[3,5];if(!((typeof fetch==="undefined"?"undefined":_type_of(fetch))>"u"))return[3,3];return[4,Ze()];case 2:a=c.sent();return[3,4];case 3:a=fetch;c.label=4;case 4:o=a(e,t||{});return[3,6];case 5:o=r;c.label=6;case 6:return[2,o]}})})()},"lazyLoaderHookFetch"),i(Le,"createScriptNode"),i(te,"loadScriptNode"),i(Oe,"loadModule"),i(et,"normalizeOptions")});function k(){return k=Object.assign||i(function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},"assign"),k.apply(this,arguments)}i(k,"_extends");i(Ht,"_object_without_properties_loose");ne();ne();ne();i(je,"getBuilderId");var Ce="[ Federation Runtime ]";i(w,"assert");i(D,"error");i(le,"warn");i(Tt,"addUniqueItem");i(ae,"getFMId");i(Ue,"isRemoteInfoWithEntry");i(Mt,"isPureRemoteEntry");i(Ve,"isObject");var uo=Object.prototype.toString;i(cr,"isPlainObject");i(xt,"arrayOptions");i(Dt,"getRemoteEntryInfoFromSnapshot");var H=function(){try{return new Function("return this")()}catch(e){return globalThis}}(),Ie=H;i(ye,"definePropertyGlobalVal");i(ge,"includeOwnProperty");ge(globalThis,"__GLOBAL_LOADING_REMOTE_ENTRY__")||ye(globalThis,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});var _e=globalThis.__GLOBAL_LOADING_REMOTE_ENTRY__;i(Ft,"setGlobalDefaultVal");Ft(globalThis);Ft(H);i(ur,"getGlobalFederationInstance");i(hr,"setGlobalFederationInstance");i(mr,"getGlobalFederationConstructor");i(pr,"setGlobalFederationConstructor");i(q,"getInfoWithoutType");var nr=i(function(){return H.__FEDERATION__.moduleInfo},"getGlobalSnapshot"),ho=i(function(e,t){var n=ae(e),r=q(t,n).value;if(r&&!r.version&&"version"in e&&e.version&&(r.version=e.version),r)return r;if("version"in e&&e.version){var o=e.version,a=Ht(e,["version"]),i=ae(a),c=q(H.__FEDERATION__.moduleInfo,i).value;if((c===null||c===void 0?void 0:c.version)===o)return c}},"getTargetSnapshotInfoByModuleInfo"),xe=i(function(e){return ho(e,H.__FEDERATION__.moduleInfo)},"getGlobalSnapshotInfoByModuleInfo"),ar=i(function(e,t){var n=ae(e);return H.__FEDERATION__.moduleInfo[n]=t,H.__FEDERATION__.moduleInfo},"setGlobalSnapshotInfoByModuleInfo"),mo=i(function(e){return H.__FEDERATION__.moduleInfo=k({},H.__FEDERATION__.moduleInfo,e),function(){var t=Object.keys(e);var n=true,r=false,o=undefined;try{for(var a=t[Symbol.iterator](),i;!(n=(i=a.next()).done);n=true){var c=i.value;delete H.__FEDERATION__.moduleInfo[c]}}catch(e){r=true;o=e}finally{try{if(!n&&a.return!=null){a.return()}}finally{if(r){throw o}}}}},"addGlobalSnapshot"),Ge=i(function(e,t){var n=t||"__FEDERATION_".concat(e,":custom__"),r=globalThis[n];return{remoteEntryKey:n,entryExports:r}},"getRemoteEntryExports"),po=i(function(e){var t=H.__FEDERATION__,n=t.__GLOBAL_PLUGIN__;e.forEach(function(e){n.findIndex(function(t){return t.name===e.name})===-1?n.push(e):le("The plugin ".concat(e.name," has been registered."))})},"registerGlobalPlugins"),fo=i(function(){return H.__FEDERATION__.__GLOBAL_PLUGIN__},"getGlobalHostPlugins"),yo=i(function(e){return globalThis.__FEDERATION__.__PRELOADED_MAP__.get(e)},"getPreloaded"),go=i(function(e){return globalThis.__FEDERATION__.__PRELOADED_MAP__.set(e,!0)},"setPreloaded"),Ne="default",fr="global",sr="[0-9A-Za-z-]+",jt="(?:\\+(".concat(sr,"(?:\\.").concat(sr,")*))"),Ee="0|[1-9]\\d*",De="[0-9]+",dr="\\d*[a-zA-Z-][a-zA-Z0-9-]*",ir="(?:".concat(De,"|").concat(dr,")"),_o="(?:-?(".concat(ir,"(?:\\.").concat(ir,")*))"),lr="(?:".concat(Ee,"|").concat(dr,")"),yr="(?:-(".concat(lr,"(?:\\.").concat(lr,")*))"),Et="".concat(Ee,"|x|X|\\*"),se="[v=\\s]*(".concat(Et,")(?:\\.(").concat(Et,")(?:\\.(").concat(Et,")(?:").concat(yr,")?").concat(jt,"?)?)?"),Eo="^\\s*(".concat(se,")\\s+-\\s+(").concat(se,")\\s*$"),bo="(".concat(De,")\\.(").concat(De,")\\.(").concat(De,")"),So="[v=\\s]*".concat(bo).concat(_o,"?").concat(jt,"?"),Ct="((?:<|>)?=?)",$o="(\\s*)".concat(Ct,"\\s*(").concat(So,"|").concat(se,")"),gr="(?:~>?)",Io="(\\s*)".concat(gr,"\\s+"),_r="(?:\\^)",vo="(\\s*)".concat(_r,"\\s+"),Ro="(<|>)?=?\\s*\\*",wo="^".concat(_r).concat(se,"$"),No="(".concat(Ee,")\\.(").concat(Ee,")\\.(").concat(Ee,")"),Oo="v?".concat(No).concat(yr,"?").concat(jt,"?"),Ao="^".concat(gr).concat(se,"$"),To="^".concat(Ct,"\\s*").concat(se,"$"),ko="^".concat(Ct,"\\s*(").concat(Oo,")$|^$"),Po="^\\s*>=\\s*0.0.0\\s*$";i(M,"parseRegex");i(T,"isXVersion");i(Gt,"pipe");i(kt,"extractComparator");i(Pt,"combineVersion");i(Er,"parseHyphen");i(br,"parseComparatorTrim");i(Sr,"parseTildeTrim");i($r,"parseCaretTrim");i(Ir,"parseCarets");i(vr,"parseTildes");i(Rr,"parseXRanges");i(wr,"parseStar");i(Nr,"parseGTE0");i(be,"compareAtom");i(Or,"comparePreRelease");i(de,"compareVersion");i(Fe,"eq");i(Ar,"compare");i(Tr,"parseComparatorString");i(kr,"parseRange");i(Se,"satisfy");i(Pr,"formatShare");i(Ut,"formatShareConfigs");i(ie,"versionLt");var Vt=i(function(e,t){var n=t||function(e,t){return ie(e,t)};return Object.keys(e).reduce(function(e,t){return!e||n(e,t)||e==="0"?t:e},0)},"findVersion"),$e=i(function(e){return!!e.loaded||typeof e.lib=="function"},"isLoaded");i(Lr,"findSingletonVersionOrderByVersion");i(Hr,"findSingletonVersionOrderByLoaded");i(Mr,"getFindShareFunction");i(W,"getRegisteredShare");i(Bt,"getGlobalShareScope");i(Lt,"getTargetSharedOptions");i(xr,"matchRemoteWithNameAndExpose");i(Dr,"matchRemote");i(Fr,"registerPlugins$1");i(jr,"loadEsmEntry");i(Cr,"loadSystemJsEntry");i(Gr,"loadEntryScript");i(Ur,"loadEntryDom");i(Vr,"loadEntryNode");i(Wt,"getRemoteEntryUniqueKey");i(Be,"getRemoteEntry");i(ve,"getRemoteInfo");var bt,qt=(bt=/*#__PURE__*/function(){function e(t){var n=t.remoteInfo,r=t.host;_class_call_check(this,e);this.inited=!1,this.lib=void 0,this.remoteInfo=n,this.host=r}_create_class(e,[{key:"getEntry",value:function e(){return _async_to_generator(function(){var e;return _ts_generator(this,function(t){switch(t.label){case 0:if(this.remoteEntryExports)return[2,this.remoteEntryExports];return[4,Be({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports})];case 1:e=t.sent();return[2,(w(e,"remoteEntryExports is undefined \n ".concat(X(this.remoteInfo))),this.remoteEntryExports=e,this.remoteEntryExports)]}})}).call(this)}},{key:"get",value:function e(e,t,n,r){return _async_to_generator(function(){var o,a,c,s,u,l,f,h,d,p,m,v,y;return _ts_generator(this,function(g){switch(g.label){case 0:o=n||{loadFactory:!0},a=o.loadFactory,c=a===void 0?!0:a;return[4,this.getEntry()];case 1:s=g.sent();if(!!this.inited)return[3,5];u=this.host.shareScopeMap,l=this.remoteInfo.shareScope||"default";u[l]||(u[l]={});f=u[l],h=[],d={version:this.remoteInfo.version||""};Object.defineProperty(d,"shareScopeMap",{value:u,enumerable:!1});return[4,this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:f,remoteEntryInitOptions:d,initScope:h,remoteInfo:this.remoteInfo,origin:this.host})];case 2:p=g.sent();_type_of(s===null||s===void 0?void 0:s.init)>"u"&&console.error('The remote entry interface does not contain "init"',"\n","Ensure the name of this remote is not reserved or in use. Check if anything already exists on window[nameOfRemote]","\n","Ensure that window[nameOfRemote] is returning a {get,init} object.");return[4,s.init(p.shareScope,p.initScope,p.remoteEntryInitOptions)];case 3:g.sent();return[4,this.host.hooks.lifecycle.initContainer.emit(k({},p,{id:e,remoteSnapshot:r,remoteEntryExports:s}))];case 4:g.sent();g.label=5;case 5:this.lib=s,this.inited=!0;return[4,s.get(t)];case 6:m=g.sent();w(m,"".concat(ae(this.remoteInfo)," remote don't export ").concat(t,"."));v=this.wraperFactory(m,e);if(!c)return[3,8];return[4,v()];case 7:y=g.sent();return[3,9];case 8:y=v;g.label=9;case 9:return[2,y]}})}).call(this)}},{key:"wraperFactory",value:function e(e,t){function n(e,t){e&&(typeof e==="undefined"?"undefined":_type_of(e))=="object"&&Object.isExtensible(e)&&!Object.getOwnPropertyDescriptor(e,Symbol.for("mf_module_id"))&&Object.defineProperty(e,Symbol.for("mf_module_id"),{value:t,enumerable:!1})}return i(n,"defineModuleId"),_instanceof(e,Promise)?function(){return _async_to_generator(function(){var r;return _ts_generator(this,function(o){switch(o.label){case 0:return[4,e()];case 1:r=o.sent();return[2,(n(r,t),r)]}})})()}:function(){var r=e();return n(r,t),r}}}]);return e}(),i(bt,"Module"),bt),St,C=(St=/*#__PURE__*/function(){function e(t){_class_call_check(this,e);this.type="",this.listeners=new Set,t&&(this.type=t)}_create_class(e,[{key:"on",value:function e(e){typeof e=="function"&&this.listeners.add(e)}},{key:"once",value:function e(e){var t=this;this.on(i(function n(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++){o[a]=arguments[a]}return t.remove(n),e.apply(null,o)},"wrapper"))}},{key:"emit",value:function e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}var r;return this.listeners.size>0&&this.listeners.forEach(function(e){r=e.apply(void 0,_to_consumable_array(t))}),r}},{key:"remove",value:function e(e){this.listeners.delete(e)}},{key:"removeAll",value:function e(){this.listeners.clear()}}]);return e}(),i(St,"SyncHook"),St),$t,j=($t=/*#__PURE__*/function(e){_inherits(t,e);function t(){_class_call_check(this,t);return _call_super(this,t,arguments)}_create_class(t,[{key:"emit",value:function e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}var r,o=Array.from(this.listeners);if(o.length>0){var a=0,c=i(function(e){return e===!1?!1:a<o.length?Promise.resolve(o[a++].apply(null,t)).then(c):e},"call");r=c()}return Promise.resolve(r)}}]);return t}(C),i($t,"AsyncHook"),$t);i(zt,"checkReturnData");var It,Re=(It=/*#__PURE__*/function(e){_inherits(t,e);function t(e){_class_call_check(this,t);var n;n=_call_super(this,t),n.onerror=D,n.type=e;return n}_create_class(t,[{key:"emit",value:function e(e){Ve(e)||D('The data for the "'.concat(this.type,'" hook should be an object.'));var t=true,n=false,r=undefined;try{for(var o=this.listeners[Symbol.iterator](),a;!(t=(a=o.next()).done);t=true){var i=a.value;try{var c=i(e);if(zt(e,c))e=c;else{this.onerror('A plugin returned an unacceptable value for the "'.concat(this.type,'" type.'));break}}catch(e){le(e),this.onerror(e)}}}catch(e){n=true;r=e}finally{try{if(!t&&o.return!=null){o.return()}}finally{if(n){throw r}}}return e}}]);return t}(C),i(It,"SyncWaterfallHook"),It),vt,z=(vt=/*#__PURE__*/function(e){_inherits(t,e);function t(e){_class_call_check(this,t);var n;n=_call_super(this,t),n.onerror=D,n.type=e;return n}_create_class(t,[{key:"emit",value:function e(e){var t=this;Ve(e)||D('The response data for the "'.concat(this.type,'" hook must be an object.'));var n=Array.from(this.listeners);if(n.length>0){var r=0,o=i(function(n){return le(n),t.onerror(n),e},"processError"),a=i(function(c){if(zt(e,c)){if(e=c,r<n.length)try{return Promise.resolve(n[r++](e)).then(a,o)}catch(e){return o(e)}}else t.onerror('A plugin returned an incorrect value for the "'.concat(t.type,'" type.'));return e},"call");return Promise.resolve(a(e))}return Promise.resolve(e)}}]);return t}(C),i(vt,"AsyncWaterfallHook"),vt),Rt,we=(Rt=/*#__PURE__*/function(){function e(t){_class_call_check(this,e);this.registerPlugins={},this.lifecycle=t,this.lifecycleKeys=Object.keys(t)}_create_class(e,[{key:"applyPlugin",value:function e(e){var t=this;w(cr(e),"Plugin configuration is invalid.");var n=e.name;w(n,"A name must be provided by the plugin."),this.registerPlugins[n]||(this.registerPlugins[n]=e,Object.keys(this.lifecycle).forEach(function(n){var r=e[n];r&&t.lifecycle[n].on(r)}))}},{key:"removePlugin",value:function e(e){var t=this;w(e,"A name is required.");var n=this.registerPlugins[e];w(n,'The plugin "'.concat(e,'" is not registered.')),Object.keys(n).forEach(function(e){e!=="name"&&t.lifecycle[e].remove(n[e])})}},{key:"inherit",value:function e(e){var t=this;var n=e.lifecycle,r=e.registerPlugins;Object.keys(n).forEach(function(e){w(!t.lifecycle[e],'The hook "'.concat(e,'" has a conflict and cannot be inherited.')),t.lifecycle[e]=n[e]}),Object.keys(r).forEach(function(e){w(!t.registerPlugins[e],'The plugin "'.concat(e,'" has a conflict and cannot be inherited.')),t.applyPlugin(r[e])})}}]);return e}(),i(Rt,"PluginSystem"),Rt);i(Kt,"defaultPreloadArgs");i(Br,"formatPreloadArgs");i(Wr,"normalizePreloadExposes");i(Jt,"preloadAssets");i(Yt,"assignRemoteInfo");i(qr,"snapshotPlugin");i(zr,"splitId");function Xt(e,t,n,r){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},a=arguments.length>5?arguments[5]:void 0;var i=ae(t),c=q(e,i),s=c.value,u=a||s;if(u&&!Q(u)&&(n(u,t,r),u.remotesInfo)){var l=Object.keys(u.remotesInfo);var f=true,h=false,d=undefined;try{for(var p=l[Symbol.iterator](),m;!(f=(m=p.next()).done);f=true){var v=m.value;if(o[v])continue;o[v]=!0;var y=zr(v),g=u.remotesInfo[v];Xt(e,{name:y.name,version:g.matchedVersion},n,!1,o,void 0)}}catch(e){h=true;d=e}finally{try{if(!f&&p.return!=null){p.return()}}finally{if(h){throw d}}}}}i(Xt,"traverseModuleInfo");i(Kr,"generatePreloadAssets");var Lo=i(function(){return{name:"generate-preload-assets-plugin",generatePreloadAssets:function e(e){return _async_to_generator(function(){var t,n,r,o,a,i;return _ts_generator(this,function(c){t=e.origin,n=e.preloadOptions,r=e.remoteInfo,o=e.remote,a=e.globalSnapshot,i=e.remoteSnapshot;return[2,Ue(o)&&Mt(o)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:o.name,url:o.entry,moduleInfo:{name:r.name,entry:o.entry,type:r.type||"global",entryGlobalName:"",shareScope:""}}]}:(Yt(r,i),Kr(t,n,r,a,i))]})})()}}},"generatePreloadAssetsPlugin");i(Qt,"getGlobalRemoteInfo");var wt,Ho=(wt=/*#__PURE__*/function(){function e(t){_class_call_check(this,e);this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new we({beforeLoadRemoteSnapshot:new j("beforeLoadRemoteSnapshot"),loadSnapshot:new z("loadGlobalSnapshot"),loadRemoteSnapshot:new z("loadRemoteSnapshot")}),this.manifestLoading=Ie.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=t,this.loaderHook=t.loaderHook}_create_class(e,[{key:"loadSnapshot",value:function e(e){return _async_to_generator(function(){var t,n,r,o,a,c,s,u,l;return _ts_generator(this,function(f){switch(f.label){case 0:t=this.HostInstance,n=t.options,r=this.getGlobalRemoteInfo(e),o=r.hostGlobalSnapshot,a=r.remoteSnapshot,c=r.globalSnapshot;return[4,this.hooks.lifecycle.loadSnapshot.emit({options:n,moduleInfo:e,hostGlobalSnapshot:o,remoteSnapshot:a,globalSnapshot:c})];case 1:s=f.sent(),u=s.remoteSnapshot,l=s.globalSnapshot;return[2,{remoteSnapshot:u,globalSnapshot:l}]}})}).call(this)}},{key:"loadRemoteSnapshotInfo",value:function e(e){return _async_to_generator(function(){var t,n,r,o,a,c,s,u,l,f,h,d,p,m,v,y,g,_,b;return _ts_generator(this,function(E){switch(E.label){case 0:t=this.HostInstance,n=t.options;return[4,this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:n,moduleInfo:e})];case 1:E.sent();r=xe({name:this.HostInstance.options.name,version:this.HostInstance.options.version});r||(r={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},mo(_define_property({},this.HostInstance.options.name,r))),r&&"remotesInfo"in r&&!q(r.remotesInfo,e.name).value&&("version"in e||"entry"in e)&&(r.remotesInfo=k({},r===null||r===void 0?void 0:r.remotesInfo,_define_property({},e.name,{matchedVersion:"version"in e?e.version:e.entry})));o=this.getGlobalRemoteInfo(e),a=o.hostGlobalSnapshot,c=o.remoteSnapshot,s=o.globalSnapshot;return[4,this.hooks.lifecycle.loadSnapshot.emit({options:n,moduleInfo:e,hostGlobalSnapshot:a,remoteSnapshot:c,globalSnapshot:s})];case 2:u=E.sent(),l=u.remoteSnapshot,f=u.globalSnapshot;if(!l)return[3,7];if(!Q(l))return[3,4];h=L()?l.remoteEntry:l.ssrRemoteEntry||l.remoteEntry||"";return[4,this.getManifestJson(h,e,{})];case 3:d=E.sent(),p=ar(k({},e,{entry:h}),d);return[2,{remoteSnapshot:d,globalSnapshot:p}];case 4:return[4,this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:l,from:"global"})];case 5:m=E.sent(),v=m.remoteSnapshot;return[2,{remoteSnapshot:v,globalSnapshot:f}];case 6:return[3,11];case 7:if(!Ue(e))return[3,10];return[4,this.getManifestJson(e.entry,e,{})];case 8:y=E.sent(),g=ar(e,y);return[4,this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:y,from:"global"})];case 9:_=E.sent(),b=_.remoteSnapshot;return[2,{remoteSnapshot:b,globalSnapshot:g}];case 10:D("\n Cannot get remoteSnapshot with the name: '".concat(e.name,"', version: '").concat(e.version,"' from __FEDERATION__.moduleInfo. The following reasons may be causing the problem:\n\n 1. The Deploy platform did not deliver the correct data. You can use __FEDERATION__.moduleInfo to check the remoteInfo.\n\n 2. The remote '").concat(e.name,"' version '").concat(e.version,"' is not released.\n\n The transformed module info: ").concat(JSON.stringify(f),"\n "));E.label=11;case 11:return[2]}})}).call(this)}},{key:"getGlobalRemoteInfo",value:function e(e){return Qt(e,this.HostInstance)}},{key:"getManifestJson",value:function e(e,t,n){return _async_to_generator(function(){var n,r,o;return _ts_generator(this,function(a){n=this;r=i(function(){return _async_to_generator(function(){var n,r,o,a;return _ts_generator(this,function(c){switch(c.label){case 0:n=this.manifestCache.get(e);if(n)return[2,n];c.label=1;case 1:c.trys.push([1,6,,7]);return[4,this.loaderHook.lifecycle.fetch.emit(e,{})];case 2:r=c.sent();o=!r||!_instanceof(r,Response);if(!o)return[3,4];return[4,fetch(e,{})];case 3:o=r=c.sent();c.label=4;case 4:o;return[4,r.json()];case 5:return[2,(n=c.sent(),w(n.metaData&&n.exposes&&n.shared,"".concat(e," is not a federation manifest")),this.manifestCache.set(e,n),n)];case 6:a=c.sent();delete this.manifestLoading[e],D("Failed to get manifestJson for ".concat(t.name,". The manifest URL is ").concat(e,". Please ensure that the manifestUrl is accessible.\n \n Error message:\n \n ").concat(a));return[3,7];case 7:return[2]}})}).call(n)},"getManifest"),o=i(function(){return _async_to_generator(function(){var n,o,a,c;return _ts_generator(this,function(s){switch(s.label){case 0:return[4,r()];case 1:n=s.sent(),o=me(n,{version:e});return[4,this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:n,remoteSnapshot:o,manifestUrl:e,from:"manifest"})];case 2:a=s.sent(),c=a.remoteSnapshot;return[2,c]}})}).call(n)},"asyncLoadProcess");return[2,(this.manifestLoading[e]||(this.manifestLoading[e]=o().then(function(e){return e})),this.manifestLoading[e])]})}).call(this)}}]);return e}(),i(wt,"SnapshotHandler"),wt),Nt,Mo=(Nt=/*#__PURE__*/function(){function e(t){_class_call_check(this,e);this.hooks=new we({afterResolve:new z("afterResolve"),beforeLoadShare:new z("beforeLoadShare"),loadShare:new j,resolveShare:new Re("resolveShare"),initContainerShareScopeMap:new Re("initContainerShareScopeMap")}),this.host=t,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(t.options)}_create_class(e,[{key:"registerShared",value:function e(e,t){var n=this;var r=Ut(e,t),o=r.shareInfos,a=r.shared;return Object.keys(o).forEach(function(e){o[e].forEach(function(r){!W(n.shareScopeMap,e,r,n.hooks.lifecycle.resolveShare)&&r&&r.lib&&n.setShared({pkgName:e,lib:r.lib,get:r.get,loaded:!0,shared:r,from:t.name})})}),{shareInfos:o,shared:a}}},{key:"loadShare",value:function e(e,t){return _async_to_generator(function(){var n,r,o,a,c,s,u,l,f,h,d,p;return _ts_generator(this,function(m){switch(m.label){case 0:n=this;r=this,o=r.host,a=Lt({pkgName:e,extraOptions:t,shareInfos:o.options.shared});c=a===null||a===void 0?void 0:a.scope;if(!c)return[3,2];return[4,Promise.all(a.scope.map(function(e){return _async_to_generator(function(){return _ts_generator(this,function(t){switch(t.label){case 0:return[4,Promise.all(this.initializeSharing(e,{strategy:a.strategy}))];case 1:t.sent();return[2]}})}).call(n)}))];case 1:c=m.sent();m.label=2;case 2:c;return[4,this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:a,shared:o.options.shared,origin:o})];case 3:s=m.sent(),u=s.shareInfo;w(u,"Cannot find ".concat(e," Share in the ").concat(o.options.name,". Please ensure that the ").concat(e," Share parameters have been injected"));l=W(this.shareScopeMap,e,u,this.hooks.lifecycle.resolveShare),f=i(function(e){e.useIn||(e.useIn=[]),Tt(e.useIn,o.options.name)},"addUseIn");if(l&&l.lib)return[2,(f(l),l.lib)];if(!(l&&l.loading&&!l.loaded))return[3,5];return[4,l.loading];case 4:h=m.sent();return[2,(l.loaded=!0,l.lib||(l.lib=h),f(l),h)];case 5:if(l){d=i(function(){return _async_to_generator(function(){var t,n;return _ts_generator(this,function(r){switch(r.label){case 0:return[4,l.get()];case 1:t=r.sent();u.lib=t,u.loaded=!0,f(u);n=W(this.shareScopeMap,e,u,this.hooks.lifecycle.resolveShare);return[2,(n&&(n.lib=t,n.loaded=!0),t)]}})}).call(n)},"asyncLoadProcess")();return[2,(this.setShared({pkgName:e,loaded:!1,shared:l,from:o.options.name,lib:null,loading:d}),d)]}else{if(t===null||t===void 0?void 0:t.customShareInfo)return[2,!1];p=i(function(){return _async_to_generator(function(){var t,n;return _ts_generator(this,function(r){switch(r.label){case 0:return[4,u.get()];case 1:t=r.sent();u.lib=t,u.loaded=!0,f(u);n=W(this.shareScopeMap,e,u,this.hooks.lifecycle.resolveShare);return[2,(n&&(n.lib=t,n.loaded=!0),t)]}})}).call(n)},"asyncLoadProcess")();return[2,(this.setShared({pkgName:e,loaded:!1,shared:u,from:o.options.name,lib:null,loading:p}),p)]}m.label=6;case 6:return[2]}})}).call(this)}},{key:"initializeSharing",value:function e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ne,t=arguments.length>1?arguments[1]:void 0;var n=this,r=n.host,o=t===null||t===void 0?void 0:t.from,a=t===null||t===void 0?void 0:t.strategy,c=t===null||t===void 0?void 0:t.initScope,s=[];if(o!=="build"){var u=this,l=u.initTokens;c||(c=[]);var f=l[e];if(f||(f=l[e]={from:this.host.name}),c.indexOf(f)>=0)return s;c.push(f)}var h=this.shareScopeMap,d=r.options.name;h[e]||(h[e]={});var p=h[e],m=i(function(e,t){var n;var r=t.version,o=t.eager;p[e]=p[e]||{};var a=p[e],c=a[r],s=!!(c&&(c.eager||(n=c.shareConfig)!=null&&n.eager));(!c||c.strategy!=="loaded-first"&&!c.loaded&&(!o!=!s?o:d>c.from))&&(a[r]=t)},"register"),v=i(function(t){return t&&t.init&&t.init(h[e],c)},"initFn"),y=i(function(e){return _async_to_generator(function(){var t,n,o,a,c;return _ts_generator(this,function(s){switch(s.label){case 0:return[4,r.remoteHandler.getRemoteModuleAndOptions({id:e})];case 1:t=s.sent(),n=t.module;if(!n.getEntry)return[3,9];s.label=2;case 2:s.trys.push([2,4,,6]);return[4,n.getEntry()];case 3:o=s.sent();return[3,6];case 4:a=s.sent();return[4,r.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:a,from:"runtime",lifecycle:"beforeLoadShare",origin:r})];case 5:o=s.sent();return[3,6];case 6:c=n.inited;if(c)return[3,8];return[4,v(o)];case 7:c=(s.sent(),n.inited=!0);s.label=8;case 8:c;s.label=9;case 9:return[2]}})})()},"initRemoteModule");return Object.keys(r.options.shared).forEach(function(t){r.options.shared[t].forEach(function(n){n.scope.includes(e)&&m(t,n)})}),(r.options.shareStrategy==="version-first"||a==="version-first")&&r.options.remotes.forEach(function(t){t.shareScope===e&&s.push(y(t.name))}),s}},{key:"loadShareSync",value:function e(e,t){var n=this;var r=this,o=r.host,a=Lt({pkgName:e,extraOptions:t,shareInfos:o.options.shared});(a===null||a===void 0?void 0:a.scope)&&a.scope.forEach(function(e){n.initializeSharing(e,{strategy:a.strategy})});var c=W(this.shareScopeMap,e,a,this.hooks.lifecycle.resolveShare),s=i(function(e){e.useIn||(e.useIn=[]),Tt(e.useIn,o.options.name)},"addUseIn");if(c){if(typeof c.lib=="function")return s(c),c.loaded||(c.loaded=!0,c.from===o.options.name&&(a.loaded=!0)),c.lib;if(typeof c.get=="function"){var u=c.get();if(!_instanceof(u,Promise))return s(c),this.setShared({pkgName:e,loaded:!0,from:o.options.name,lib:u,shared:c}),u}}if(a.lib)return a.loaded||(a.loaded=!0),a.lib;if(a.get){var l=a.get();if(_instanceof(l,Promise))throw new Error("\n The loadShareSync function was unable to load ".concat(e,". The ").concat(e," could not be found in ").concat(o.options.name,".\n Possible reasons for failure: \n\n 1. The ").concat(e," share was registered with the 'get' attribute, but loadShare was not used beforehand.\n\n 2. The ").concat(e," share was not registered with the 'lib' attribute.\n\n "));return a.lib=l,this.setShared({pkgName:e,loaded:!0,from:o.options.name,lib:a.lib,shared:a}),a.lib}throw new Error("\n The loadShareSync function was unable to load ".concat(e,". The ").concat(e," could not be found in ").concat(o.options.name,".\n Possible reasons for failure: \n\n 1. The ").concat(e," share was registered with the 'get' attribute, but loadShare was not used beforehand.\n\n 2. The ").concat(e," share was not registered with the 'lib' attribute.\n\n "))}},{key:"initShareScopeMap",value:function e(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var r=this,o=r.host;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:o.options,origin:o,scopeName:e,hostShareScopeMap:n.hostShareScopeMap})}},{key:"setShared",value:function e(e){var t=this;var n=e.pkgName,r=e.shared,o=e.from,a=e.lib,c=e.loading,s=e.loaded,u=e.get;var l=r.version,f=r.scope,h=f===void 0?"default":f,d=Ht(r,["version","scope"]);(Array.isArray(h)?h:[h]).forEach(function(e){if(t.shareScopeMap[e]||(t.shareScopeMap[e]={}),t.shareScopeMap[e][n]||(t.shareScopeMap[e][n]={}),!t.shareScopeMap[e][n][l]){t.shareScopeMap[e][n][l]=k({version:l,scope:["default"]},d,{lib:a,loaded:s,loading:c}),u&&(t.shareScopeMap[e][n][l].get=u);return}var r=t.shareScopeMap[e][n][l];c&&!r.loading&&(r.loading=c)})}},{key:"_setGlobalShareScopeMap",value:function e(e){var t=Bt(),n=e.id||e.name;n&&!t[n]&&(t[n]=this.shareScopeMap)}}]);return e}(),i(Nt,"SharedHandler"),Nt),Ot,xo=(Ot=/*#__PURE__*/function(){function e(t){_class_call_check(this,e);this.hooks=new we({beforeRegisterRemote:new Re("beforeRegisterRemote"),registerRemote:new Re("registerRemote"),beforeRequest:new z("beforeRequest"),onLoad:new j("onLoad"),handlePreloadModule:new C("handlePreloadModule"),errorLoadRemote:new j("errorLoadRemote"),beforePreloadRemote:new j("beforePreloadRemote"),generatePreloadAssets:new j("generatePreloadAssets"),afterPreloadRemote:new j,loadEntry:new j}),this.host=t,this.idToRemoteMap={}}_create_class(e,[{key:"formatAndRegisterRemote",value:function e(e,t){var n=this;return(t.remotes||[]).reduce(function(e,t){return n.registerRemote(t,e,{force:!1}),e},e.remotes)}},{key:"setIdToRemoteMap",value:function e(e,t){var n=t.remote,r=t.expose,o=n.name,a=n.alias;if(this.idToRemoteMap[e]={name:n.name,expose:r},a&&e.startsWith(o)){var c=e.replace(o,a);this.idToRemoteMap[c]={name:n.name,expose:r};return}if(a&&e.startsWith(a)){var s=e.replace(a,o);this.idToRemoteMap[s]={name:n.name,expose:r}}}},{key:"loadRemote",value:function e(e,t){return _async_to_generator(function(){var n,r,o,a,c,s,u,l,f,h,d,p,m,v,y,g,_,b,E,S,I;return _ts_generator(this,function(R){switch(R.label){case 0:n=this,r=n.host;R.label=1;case 1:R.trys.push([1,5,,7]);o=t||{loadFactory:!0},a=o.loadFactory,c=a===void 0?!0:a;return[4,this.getRemoteModuleAndOptions({id:e})];case 2:s=R.sent(),u=s.module,l=s.moduleOptions,f=s.remoteMatchInfo,h=f.pkgNameOrAlias,d=f.remote,p=f.expose,m=f.id,v=f.remoteSnapshot;return[4,u.get(m,p,t,v)];case 3:y=R.sent();return[4,this.hooks.lifecycle.onLoad.emit({id:m,pkgNameOrAlias:h,expose:p,exposeModule:c?y:void 0,exposeModuleFactory:c?void 0:y,remote:d,options:l,moduleInstance:u,origin:r})];case 4:g=R.sent();return[2,(this.setIdToRemoteMap(e,f),typeof g=="function"?g:y)];case 5:_=R.sent();b=t||{from:"runtime"},E=b.from,S=E===void 0?"runtime":E;return[4,this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:_,from:S,lifecycle:"onLoad",origin:r})];case 6:I=R.sent();if(!I)throw _;return[2,I];case 7:return[2]}})}).call(this)}},{key:"preloadRemote",value:function e(e){return _async_to_generator(function(){var t,n,r,o;return _ts_generator(this,function(a){switch(a.label){case 0:t=this;n=this,r=n.host;return[4,this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:r.options,origin:r})];case 1:a.sent();o=Br(r.options.remotes,e);return[4,Promise.all(o.map(function(e){return _async_to_generator(function(){var t,n,o,a,c,s;return _ts_generator(this,function(u){switch(u.label){case 0:t=e.remote,n=ve(t);return[4,r.snapshotHandler.loadRemoteSnapshotInfo(t)];case 1:o=u.sent(),a=o.globalSnapshot,c=o.remoteSnapshot;return[4,this.hooks.lifecycle.generatePreloadAssets.emit({origin:r,preloadOptions:e,remote:t,remoteInfo:n,globalSnapshot:a,remoteSnapshot:c})];case 2:s=u.sent();s&&Jt(n,r,s);return[2]}})}).call(t)}))];case 2:a.sent();return[2]}})}).call(this)}},{key:"registerRemotes",value:function e(e,t){var n=this;var r=this,o=r.host;e.forEach(function(e){n.registerRemote(e,o.options.remotes,{force:t===null||t===void 0?void 0:t.force})})}},{key:"getRemoteModuleAndOptions",value:function e(e){return _async_to_generator(function(){var t,n,r,o,a,c,s,u,l,f,h,d,p,m;return _ts_generator(this,function(v){switch(v.label){case 0:t=this,n=t.host,r=e.id;v.label=1;case 1:v.trys.push([1,3,,5]);return[4,this.hooks.lifecycle.beforeRequest.emit({id:r,options:n.options,origin:n})];case 2:o=v.sent();return[3,5];case 3:a=v.sent();return[4,this.hooks.lifecycle.errorLoadRemote.emit({id:r,options:n.options,origin:n,from:"runtime",error:a,lifecycle:"beforeRequest"})];case 4:if(o=v.sent(),!o)throw a;return[3,5];case 5:c=o.id,s=xr(n.options.remotes,c);w(s,"\n Unable to locate ".concat(c," in ").concat(n.options.name,". Potential reasons for failure include:\n\n 1. ").concat(c," was not included in the 'remotes' parameter of ").concat(n.options.name||"the host",".\n\n 2. ").concat(c," could not be found in the 'remotes' of ").concat(n.options.name," with either 'name' or 'alias' attributes.\n 3. ").concat(c," is not online, injected, or loaded.\n 4. ").concat(c," cannot be accessed on the expected.\n 5. The 'beforeRequest' hook was provided but did not return the correct 'remoteInfo' when attempting to load ").concat(c,".\n "));u=s.remote,l=ve(u);return[4,n.sharedHandler.hooks.lifecycle.afterResolve.emit(k({id:c},s,{options:n.options,origin:n,remoteInfo:l}))];case 6:f=v.sent(),h=f.remote,d=f.expose;w(h&&d,"The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ".concat(c,"."));p=n.moduleCache.get(h.name),m={host:n,remoteInfo:l};return[2,(p||(p=new qt(m),n.moduleCache.set(h.name,p)),{module:p,moduleOptions:m,remoteMatchInfo:f})]}})}).call(this)}},{key:"registerRemote",value:function e(e,t,n){var r=this,o=r.host,a=i(function(){if(e.alias){var n=t.find(function(t){var n;return e.alias&&(t.name.startsWith(e.alias)||((n=t.alias)==null?void 0:n.startsWith(e.alias)))});w(!n,"The alias ".concat(e.alias," of remote ").concat(e.name," is not allowed to be the prefix of ").concat(n&&n.name," name or alias"))}"entry"in e&&L()&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=Ne),e.type||(e.type=fr)},"normalizeRemote");this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:o});var c=t.find(function(t){return t.name===e.name});if(!c)a(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:o});else{var s=['The remote "'.concat(e.name,'" is already registered.'),(n===null||n===void 0?void 0:n.force)?"Hope you have known that OVERRIDE it may have some unexpected errors":'If you want to merge the remote, you can set "force: true".'];(n===null||n===void 0?void 0:n.force)&&(this.removeRemote(c),a(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:o})),oe(s.join(" "))}}},{key:"removeRemote",value:function e(e){try{var t=this,n=t.host,r=e.name,o=n.options.remotes.findIndex(function(e){return e.name===r});o!==-1&&n.options.remotes.splice(o,1);var a=n.moduleCache.get(e.name);if(a){var c=a.remoteInfo,s=c.entryGlobalName;if(globalThis[s]){var u;(u=Object.getOwnPropertyDescriptor(globalThis,s))!=null&&u.configurable?delete globalThis[s]:globalThis[s]=void 0}var l=Wt(a.remoteInfo);_e[l]&&delete _e[l],n.snapshotHandler.manifestCache.delete(c.entry);var f=c.buildVersion?re(c.name,c.buildVersion):c.name,h=globalThis.__FEDERATION__.__INSTANCES__.findIndex(function(e){return c.buildVersion?e.options.id===f:e.name===f});if(h!==-1){var d=globalThis.__FEDERATION__.__INSTANCES__[h];f=d.options.id||f;var p=Bt(),m=!0,v=[];Object.keys(p).forEach(function(e){var t=p[e];t&&Object.keys(t).forEach(function(n){var r=t[n];r&&Object.keys(r).forEach(function(t){var o=r[t];o&&Object.keys(o).forEach(function(r){var a=o[r];a&&(typeof a==="undefined"?"undefined":_type_of(a))=="object"&&a.from===c.name&&(a.loaded||a.loading?(a.useIn=a.useIn.filter(function(e){return e!==c.name}),a.useIn.length?m=!1:v.push([e,n,t,r])):v.push([e,n,t,r]))})})})}),m&&(d.shareScopeMap={},delete p[f]),v.forEach(function(e){var t=_sliced_to_array(e,4),n=t[0],r=t[1],o=t[2],a=t[3];var c,s,u;(u=p[n])==null||(s=u[r])==null||(c=s[o])==null||delete c[a]}),globalThis.__FEDERATION__.__INSTANCES__.splice(h,1)}var y=Qt(e,n),g=y.hostGlobalSnapshot;if(g){var _=g&&"remotesInfo"in g&&g.remotesInfo&&q(g.remotesInfo,e.name).key;_&&(delete g.remotesInfo[_],Ie.__FEDERATION__.__MANIFEST_LOADING__[_]&&delete Ie.__FEDERATION__.__MANIFEST_LOADING__[_])}n.moduleCache.delete(e.name)}}catch(e){console.log("removeRemote fail: ",e)}}}]);return e}(),i(Ot,"RemoteHandler"),Ot),At,Zt=(At=/*#__PURE__*/function(){function e(t){_class_call_check(this,e);this.hooks=new we({beforeInit:new Re("beforeInit"),init:new C,beforeInitContainer:new z("beforeInitContainer"),initContainer:new z("initContainer")}),this.version="0.6.10",this.moduleCache=new Map,this.loaderHook=new we({getModuleInfo:new C,createScript:new C,createLink:new C,fetch:new j});var n={id:je(),name:t.name,plugins:[qr(),Lo()],remotes:[],shared:{},inBrowser:L()};this.name=t.name,this.options=n,this.snapshotHandler=new Ho(this),this.sharedHandler=new Mo(this),this.remoteHandler=new xo(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins(_to_consumable_array(n.plugins).concat(_to_consumable_array(t.plugins||[]))),this.options=this.formatOptions(n,t)}_create_class(e,[{key:"initOptions",value:function e(e){this.registerPlugins(e.plugins);var t=this.formatOptions(this.options,e);return this.options=t,t}},{key:"loadShare",value:function e(e,t){return _async_to_generator(function(){return _ts_generator(this,function(n){return[2,this.sharedHandler.loadShare(e,t)]})}).call(this)}},{key:"loadShareSync",value:function e(e,t){return this.sharedHandler.loadShareSync(e,t)}},{key:"initializeSharing",value:function e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ne,t=arguments.length>1?arguments[1]:void 0;return this.sharedHandler.initializeSharing(e,t)}},{key:"initRawContainer",value:function e(e,t,n){var r=ve({name:e,entry:t}),o=new qt({host:this,remoteInfo:r});return o.remoteEntryExports=n,this.moduleCache.set(e,o),o}},{key:"loadRemote",value:function e(e,t){return _async_to_generator(function(){return _ts_generator(this,function(n){return[2,this.remoteHandler.loadRemote(e,t)]})}).call(this)}},{key:"preloadRemote",value:function e(e){return _async_to_generator(function(){return _ts_generator(this,function(t){return[2,this.remoteHandler.preloadRemote(e)]})}).call(this)}},{key:"initShareScopeMap",value:function e(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.sharedHandler.initShareScopeMap(e,t,n)}},{key:"formatOptions",value:function e(e,t){var n=Ut(e,t),r=n.shared,o=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:r}),a=o.userOptions,i=o.options,c=this.remoteHandler.formatAndRegisterRemote(i,a),s=this.sharedHandler.registerShared(i,a),u=s.shared,l=_to_consumable_array(i.plugins);a.plugins&&a.plugins.forEach(function(e){l.includes(e)||l.push(e)});var f=k({},e,t,{plugins:l,remotes:c,shared:u});return this.hooks.lifecycle.init.emit({origin:this,options:f}),f}},{key:"registerPlugins",value:function e(e){var t=Fr(e,[this.hooks,this.remoteHandler.hooks,this.sharedHandler.hooks,this.snapshotHandler.hooks,this.loaderHook]);this.options.plugins=this.options.plugins.reduce(function(e,t){return t&&e&&!e.find(function(e){return e.name===t.name})&&e.push(t),e},t||[])}},{key:"registerRemotes",value:function e(e,t){return this.remoteHandler.registerRemotes(e,t)}}]);return e}(),i(At,"FederationHost"),At),b=null;i(Jr,"init");i(Yr,"loadRemote");i(Xr,"loadShare");i(Qr,"loadShareSync");i(Zr,"preloadRemote");i(eo,"registerRemotes");i(to,"registerPlugins");i(ro,"getInstance");pr(Zt);var qe={};Je(qe,{BROWSER_LOG_KEY:function(){return He},BROWSER_LOG_VALUE:function(){return Me},ENCODE_NAME_PREFIX:function(){return st},EncodedNameTransformMap:function(){return J},FederationModuleManifest:function(){return tt},Logger:function(){return Te},MANIFEST_EXT:function(){return he},MFModuleType:function(){return nt},MFPrefetchCommon:function(){return lt},MODULE_DEVTOOL_IDENTIFIER:function(){return at},ManifestFileName:function(){return rt},NameTransformMap:function(){return P},NameTransformSymbol:function(){return R},SEPARATOR:function(){return ce},StatsFileName:function(){return ot},TEMP_DIR:function(){return it},assert:function(){return _t},composeKeyWithSeparator:function(){return re},containerPlugin:function(){return ct},containerReferencePlugin:function(){return ut},createLink:function(){return V},createScript:function(){return Z},createScriptNode:function(){return Le},decodeName:function(){return dt},encodeName:function(){return ue},error:function(){return ke},generateExposeFilename:function(){return yt},generateShareFilename:function(){return gt},generateSnapshotFromManifest:function(){return me},getProcessEnv:function(){return Ae},getResourceUrl:function(){return B},inferAutoPublicPath:function(){return Pe},isBrowserEnv:function(){return L},isDebugMode:function(){return Y},isManifestProvider:function(){return Q},isStaticResourcesEqual:function(){return fe},loadScript:function(){return ee},loadScriptNode:function(){return te},logger:function(){return ft},moduleFederationPlugin:function(){return ht},normalizeOptions:function(){return et},parseEntry:function(){return pt},safeToString:function(){return X},safeWrapper:function(){return pe},sharePlugin:function(){return mt},simpleJoinRemoteEntry:function(){return U},warn:function(){return oe}});ne();return io(Do)}();//# sourceMappingURL=sdk.js.map
|