douxiaoyun.js/profiles/douyin-profile/Default/Cache/Cache_Data/f_0003bc
2026-07-17 22:23:39 +08:00

16 lines
130 KiB
Plaintext

function a7r51826g2d0u693s(r){var e=/[\t\n\f\r ]/g;var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var t="argus";var n=3;function decode(r){r=String(r).replace(e,"");var t=r,n=t.length;if(n%4===0){r=r.replace(/==?$/,"");n=r.length}if(n%4===1||/[^+a-zA-Z0-9/]/.test(r))throw new Error("Invalid character: the string to be decoded is not correctly encoded.");var c=0;var o,d;var g="";var i=-1;while(++i<n){d=a.indexOf(r.charAt(i));o=c%4?o*64+d:d;if(c++%4)g+=String.fromCharCode(255&o>>(-2*c&6))}return g}var c=r.replace(/\$/g,"V").replace(/\-/g,"Y").replace(/\*/g,"G").replace(/\%/g,"U");for(var o=0;o<n;o++)c=decode(c);c=c.slice(0,c.length-t.length);return c};
"use strict";(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["23634"],{308092:function(e,t,r){r.d(t,{LH:function(){return S}});var n=r("629686"),o=r("402748");r("656562"),r("992871"),r("490629"),r("968336"),r("414931"),r("112459"),r("759943"),r("683656"),r("559561"),r("76375"),r("679308"),r("228983"),r("706056");let i="@",a="-",s="/",l={[i]:"scope_",[a]:"_",[s]:"__"};l[i],l[a],l[s];var u=r(777296);let c="undefined"!=typeof ENV_TARGET?"web"===ENV_TARGET:"undefined"!=typeof window&&void 0!==window.document;function f(){return void 0!==u&&u.env&&u.env.FEDERATION_DEBUG?!!u.env.FEDERATION_DEBUG:!!("undefined"!=typeof FEDERATION_DEBUG&&FEDERATION_DEBUG)||function(){try{if(c&&window.localStorage)return!!localStorage.getItem("FEDERATION_DEBUG")}catch(e){}return!1}()}let h="[ Module Federation ]",d=console,m=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];var p=class{setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=null!=e?e:d}emit(e,t){let r=this.delegate,n=f()?function(){try{let e=Error().stack;if(!e)return;let[,...t]=e.split("\n"),r=t.filter(e=>!m.some(t=>e.includes(t)));if(!r.length)return;return`Stack trace:
${r.slice(0,5).join("\n")}`}catch(e){return}}():void 0,o=n?[...t,n]:t,i=(()=>{switch(e){case"log":return["log","info"];case"info":return["info","log"];case"warn":return["warn","info","log"];case"error":return["error","warn","log"];default:return["debug","log"]}})();for(let e of i){let t=r[e];if("function"==typeof t){t.call(r,this.prefix,...o);return}}for(let e of i){let t=d[e];if("function"==typeof t){t.call(d,this.prefix,...o);return}}}log(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("log",t)}warn(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("warn",t)}error(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("error",t)}success(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("info",t)}info(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("info",t)}ready(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("info",t)}debug(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];f()&&this.emit("debug",t)}constructor(e,t=d){this.prefix=e,this.delegate=null!=t?t:d}};function y(e){return new p(e)}new p(h),!function(e){let t=new p(e);Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1})}(h);let g="[ Module Federation RetryPlugin ]",_="The request failed and has now been abandoned",E=new p(g);function b(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{domains:n,addQuery:o,retryIndex:i=0,queryKey:a="retryCount"}=r,s=e;try{let t=new URL(e);t.searchParams.delete(a),s=t.toString()}catch(e){}let l=null!==(t=function(e,t){if(!t||0===t.length)return null;try{let r=new URL(e),n=r.hostname,o=r.port,i=`${n}${o?`:${o}`:""}`,a=t.map(e=>{try{let t=new URL(e.startsWith("http")?e:`https://${e}`);return{hostname:t.hostname,port:t.port,protocol:t.protocol}}catch(t){return{hostname:e,port:"",protocol:r.protocol}}}).filter(e=>!!e.hostname);if(0===a.length)return null;let s=-1;for(let e=a.length-1;e>=0;e--)if(`${a[e].hostname}${a[e].port?`:${a[e].port}`:""}`===i){s=e;break}let l=a.length;for(let e=1;e<=l;e++){let t=a[((s>=0?s:-1)+e)%l];if(`${t.hostname}${t.port?`:${t.port}`:""}`!==i)return r.hostname=t.hostname,void 0!==t.port&&null!==t.port&&""!==t.port?r.port=t.port:r.port="",r.protocol=t.protocol||r.protocol,r.toString()}return null}catch(e){return null}}(s,n))&&void 0!==t?t:s;if(i>0&&o)try{let t=new URL(l),r=new URL(e);r.searchParams.delete(a);let n=r.search.startsWith("?")?r.search.slice(1):r.search;if("function"==typeof o){let e=o({times:i,originalQuery:n});t.search=e?`?${e.replace(/^\?/,"")}`:"",l=t.toString()}else!0===o&&(t.searchParams.delete(a),t.searchParams.set(a,String(i)),l=t.toString())}catch(e){!0===o&&(l=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"retryCount";try{let n=new URL(e);return n.searchParams.delete(r),n.searchParams.set(r,String(t)),n.toString()}catch(t){return e}}(l,i,a))}return l}function v(e,t){try{let r=new URL(e),n=new URL(t);return r.pathname=n.pathname,r.search=n.search,r.toString()}catch(e){return t}}async function w(e,t,r){var i;let{url:a,fetchOptions:s={},retryTimes:l=3,retryDelay:u=1e3,domains:c,addQuery:f,onRetry:h,onSuccess:d,onError:m}=e;if(!a)throw Error(`${g}: url is required in fetchWithRetry`);let p=null!==(i=null!=r?r:e.retryTimes)&&void 0!==i?i:3,y=!t,S=a;!y&&t&&(S=v(t,a));let O=S;!y&&(O=b(S,{domains:c,addQuery:f,retryIndex:p-l,queryKey:"retryCount"}));try{!y&&u>0&&await new Promise(e=>setTimeout(e,u));let e=await fetch(O,s),t=e.clone();if(!e.ok)throw Error(`${g}: Request failed: ${e.status} ${e.statusText||""} | url: ${O}`);return await (function(e,t){try{let r=new URL(e);if(r.pathname.endsWith(".js")||r.pathname.endsWith(".cjs")||r.pathname.endsWith(".mjs"))return t.text();return t.json()}catch(e){return t.json()}})(O,t).catch(e=>{throw Error(`${g}: JSON parse failed: ${(null==e?void 0:e.message)||String(e)} | url: ${O}`)}),!y&&d&&O&&d({domains:c,url:O,tagName:"fetch"}),e}catch(t){if(l<=0){let e=p-l;throw!y&&e>0&&(m&&m({domains:c,url:O,tagName:"fetch"}),E.log(`${g}: retry failed, no retries left for url: ${O}`)),Error(`RUNTIME-008: ${g}: ${_} | url: ${O}`)}{let t=p-l+1,r=b(v(O,a),{domains:c,addQuery:f,retryIndex:t,queryKey:"retryCount"});return h&&h({times:t,domains:c,url:r,tagName:"fetch"}),E.log(`${g}: Trying again. Number of retries left: ${l-1}`),await w((0,o._)((0,n._)({},e),{retryTimes:l-1}),O,p)}}}let S=e=>{((null==e?void 0:e.fetch)||(null==e?void 0:e.script))&&E.warn(`${g}: params is ${e}, fetch or script config is deprecated, please use the new config style. See docs: https://module-federation.io/plugin/plugins/retry-plugin.html`);let{fetchOptions:t={},retryTimes:r=3,successTimes:i=0,retryDelay:a=1e3,domains:s=[],manifestDomains:l=[],addQuery:u,onRetry:c,onSuccess:f,onError:h}=e||{};return{name:"retry-plugin",fetch:async(e,o)=>w({url:e,fetchOptions:(0,n._)({},o,t),domains:l||s,addQuery:u,onRetry:c,onSuccess:f,onError:h,retryTimes:r,successTimes:i,retryDelay:a}),async loadEntryError(e){let{getRemoteEntry:t,origin:i,remoteInfo:l,remoteEntryExports:d,globalLoading:m,uniqueKey:p}=e;return await (function(e){let{retryOptions:t,retryFn:r,beforeExecuteRetry:i=()=>{}}=e;return async function(e){let a,s,l;let{retryTimes:u=3,retryDelay:c=1e3,domains:f,addQuery:h,onRetry:d,onSuccess:m,onError:p}=t||{},y=0;for(;y<u;)try{i(),c>0&&y>0&&await new Promise(e=>setTimeout(e,c));let t=y+1;a=await r((0,o._)((0,n._)({},e),{getEntryUrl:e=>{!l&&(l=e);let r=l;s&&(r=v(s,l));let n=b(r,{domains:f,addQuery:h,retryIndex:t,queryKey:"retryCount"});return d&&d({times:t,domains:f,url:n,tagName:"script"}),s=n,n}})),m&&s&&m({domains:f,url:s,tagName:"script"});break}catch(e){if(++y>=u)throw p&&s&&p({domains:f,url:s,tagName:"script"}),Error(`${g}: ${_} | url: ${s||"unknown"}`)}return a}})({retryOptions:{retryTimes:r,retryDelay:a,domains:s,addQuery:u,onRetry:c,onSuccess:f,onError:h},retryFn:t,beforeExecuteRetry:()=>{delete m[p]}})({origin:i,remoteInfo:l,remoteEntryExports:d})}}}},849023:function(e,t,r){r.r(t),r.d(t,{useLocalStore:function(){return T},observerBatching:function(){return l},Provider:function(){return eo},observer:function(){return et},isUsingStaticRendering:function(){return m},useAsObservableSource:function(){return N},useStaticRendering:function(){return I},enableStaticRendering:function(){return d},useLocalObservable:function(){return R},PropTypes:function(){return em},inject:function(){return ea},useObserver:function(){return $},disposeOnUnmount:function(){return function e(t,r){if(Array.isArray(r))return r.map(function(r){return e(t,r)});var n=Object.getPrototypeOf(t).constructor,o=Object.getPrototypeOf(t.constructor),a=Object.getPrototypeOf(Object.getPrototypeOf(t));if(!(n===i.Component||n===i.PureComponent||o===i.Component||o===i.PureComponent||a===i.Component||a===i.PureComponent))throw Error("[mobx-react] disposeOnUnmount only supports direct subclasses of React.Component or React.PureComponent.");if("string"!=typeof r&&"function"!=typeof r&&!Array.isArray(r))throw Error("[mobx-react] disposeOnUnmount only works if the parameter is either a property key or a function.");var s="string"==typeof r,l=!!t[es]||!!t[el];if((s?t[es]||(t[es]=[]):t[el]||(t[el]=[])).push(r),!l&&G(t,"componentWillUnmount",eu),"string"!=typeof r)return r}},MobXProviderContext:function(){return en},Observer:function(){return O}}),r("313036"),r("374954"),r("76375"),r("932651"),r("374285"),r("566071"),r("759943"),r("414931");var n,o=r("731343"),i=r("101199");if(!i.useState)throw Error("mobx-react-lite requires React with Hooks support");if(!o.makeObservable)throw Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var a=r("890710");function s(e){e()}function l(e){!e&&(e=s),(0,o.configure)({reactionScheduler:e})}function u(e){return(0,o.getDependencyTree)(e)}r("706056"),r("490629");var c=function(){function e(e){var t=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(e){void 0===e&&(e=1e4),clearTimeout(t.sweepTimeout),t.sweepTimeout=void 0;var r=Date.now();t.registrations.forEach(function(n,o){r-n.registeredAt>=e&&(t.finalize(n.value),t.registrations.delete(o))}),t.registrations.size>0&&t.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){t.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){this.registrations.set(r,{value:t,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){void 0===this.sweepTimeout&&(this.sweepTimeout=setTimeout(this.sweep,1e4))}}),e}(),f=new("undefined"!=typeof FinalizationRegistry?FinalizationRegistry:c)(function(e){var t;null===(t=e.reaction)||void 0===t||t.dispose(),e.reaction=null}),h=!1;function d(e){h=e}function m(){return h}var p=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function y(e){return"observer".concat(e)}var g=function(){};function _(){return new g}function E(e,t){if(void 0===t&&(t="observed"),h)return e();var r,n,a=p(i.useState(_),1)[0],s=p(i.useState(),2)[1],l=function(){return s([])},c=i.useRef(null);!c.current&&(c.current={reaction:null,mounted:!1,changedBeforeMount:!1});var d=c.current;if(!d.reaction&&(d.reaction=new o.Reaction(y(t),function(){d.mounted?l():d.changedBeforeMount=!0}),f.register(a,d,d)),i.useDebugValue(d.reaction,u),i.useEffect(function(){return f.unregister(d),d.mounted=!0,d.reaction?d.changedBeforeMount&&(d.changedBeforeMount=!1,l()):(d.reaction=new o.Reaction(y(t),function(){l()}),l()),function(){d.reaction.dispose(),d.reaction=null,d.mounted=!1,d.changedBeforeMount=!1}},[]),d.reaction.track(function(){try{r=e()}catch(e){n=e}}),n)throw n;return r}var b="function"==typeof Symbol&&Symbol.for,v=b?Symbol.for("react.forward_ref"):"function"==typeof i.forwardRef&&(0,i.forwardRef)(function(e){return null}).$$typeof,w=b?Symbol.for("react.memo"):"function"==typeof i.memo&&(0,i.memo)(function(e){return null}).$$typeof,S={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function O(e){var t=e.children,r=e.render,n=t||r;return"function"!=typeof n?null:E(n)}function R(e,t){return(0,i.useState)(function(){return(0,o.observable)(e(),t,{autoBind:!0})})[0]}O.displayName="Observer";var A=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function N(e){var t=A((0,i.useState)(function(){return(0,o.observable)(e,{},{deep:!1})}),1)[0];return(0,o.runInAction)(function(){Object.assign(t,e)}),t}function T(e,t){var r=t&&N(t);return(0,i.useState)(function(){return(0,o.observable)(e(r),void 0,{autoBind:!0})})[0]}function $(e,t){return void 0===t&&(t="observed"),E(e,t)}function I(e){h=e}l(a.unstable_batchedUpdates),n=f.finalizeAllImmediately;var k=0,P={};function D(e){return!P[e]&&(P[e]=function(e){if("function"==typeof Symbol)return Symbol(e);var t="__$mobx-react "+e+" ("+k+")";return k++,t}(e)),P[e]}function L(e,t){if(M(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o<r.length;o++)if(!Object.hasOwnProperty.call(t,r[o])||!M(e[r[o]],t[r[o]]))return!1;return!0}function M(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}var F={$$typeof:1,render:1,compare:1,type:1,childContextTypes:1,contextType:1,contextTypes:1,defaultProps:1,getDefaultProps:1,getDerivedStateFromError:1,getDerivedStateFromProps:1,mixins:1,displayName:1,propTypes:1};function j(e,t,r){Object.hasOwnProperty.call(e,t)?e[t]=r:Object.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:r})}var C=D("patchMixins"),x=D("patchedDefinition");function H(e,t){for(var r,n=this,o=arguments.length,i=Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];t.locks++;try{return null!=e&&(r=e.apply(this,i)),r}finally{t.locks--,0===t.locks&&t.methods.forEach(function(e){e.apply(n,i)})}}function U(e,t){return function(){for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];H.call.apply(H,[this,e,t].concat(n))}}function G(e,t,r){var n,o,i,a,s=(n=e,o=t,(a=(i=n[C]=n[C]||{})[o]=i[o]||{}).locks=a.locks||0,a.methods=a.methods||[],a);0>s.methods.indexOf(r)&&s.methods.push(r);var l=Object.getOwnPropertyDescriptor(e,t);if(!l||!l[x]){var u=e[t],c=function e(t,r,n,o,i){var a,s=U(i,o);return(a={})[x]=!0,a.get=function(){return s},a.set=function(i){if(this===t)s=U(i,o);else{var a=e(this,r,n,o,i);Object.defineProperty(this,r,a)}},a.configurable=!0,a.enumerable=n,a}(e,t,l?l.enumerable:void 0,s,u);Object.defineProperty(e,t,c)}}var W=o.$mobx||"$mobx",B=D("isMobXReactObserver"),V=D("isUnmounted"),q=D("skipRender"),z=D("isForcingUpdate");function K(e){return e.displayName||e.name||e.constructor&&(e.constructor.displayName||e.constructor.name)||"<component>"}function J(e){var t=this;if(!0===h)return e.call(this);j(this,q,!1),j(this,z,!1);var r=K(this),n=e.bind(this),a=!1,s=new o.Reaction(r+".render()",function(){if(!a&&(a=!0,!0!==t[V])){var e=!0;try{j(t,z,!0),!t[q]&&i.Component.prototype.forceUpdate.call(t),e=!1}finally{j(t,z,!1),e&&s.dispose()}}});function l(){a=!1;var e=void 0,t=void 0;if(s.track(function(){try{t=(0,o._allowStateChanges)(!1,n)}catch(t){e=t}}),e)throw e;return t}return s.reactComponent=this,l[W]=s,this.render=l,l.call(this)}function Z(e,t){return this.state!==t||!L(this.props,e)}function Y(e,t){var r=D("reactProp_"+t+"_valueHolder"),n=D("reactProp_"+t+"_atomHolder");function i(){return!this[n]&&j(this,n,(0,o.createAtom)("reactive "+t)),this[n]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var e=!1;return o._allowStateReadsStart&&o._allowStateReadsEnd&&(e=(0,o._allowStateReadsStart)(!0)),i.call(this).reportObserved(),o._allowStateReadsStart&&o._allowStateReadsEnd&&(0,o._allowStateReadsEnd)(e),this[r]},set:function(e){this[z]||L(this[r],e)?j(this,r,e):(j(this,r,e),j(this,q,!0),i.call(this).reportChanged(),j(this,q,!1))}})}var X="function"==typeof Symbol&&Symbol.for,Q=X?Symbol.for("react.forward_ref"):"function"==typeof i.forwardRef&&(0,i.forwardRef)(function(e){return null}).$$typeof,ee=X?Symbol.for("react.memo"):"function"==typeof i.memo&&(0,i.memo)(function(e){return null}).$$typeof;function et(e){if(e.isMobxInjector,ee&&e.$$typeof===ee)throw Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(Q&&e.$$typeof===Q){var t=e.render;if("function"!=typeof t)throw Error("render property of ForwardRef was not a function");return(0,i.forwardRef)(function(){var e=arguments;return(0,i.createElement)(O,null,function(){return t.apply(void 0,e)})})}return"function"!=typeof e||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(i.Component,e)?function(e){var t=e.prototype;if(e[B]?K(t):e[B]=!0,t.componentWillReact)throw Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==i.PureComponent){if(t.shouldComponentUpdate){if(t.shouldComponentUpdate!==Z)throw Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else t.shouldComponentUpdate=Z}Y(t,"props"),Y(t,"state");var r=t.render;if("function"!=typeof r)throw Error("[mobx-react] class component ("+K(t)+") is missing `render` method.\n`observer` requires `render` being a function defined on prototype.\n`render = () => {}` or `render = function() {}` is not supported.");return t.render=function(){return J.call(this,r)},G(t,"componentWillUnmount",function(){var e;!0!==h&&(null==(e=this.render[W])||e.dispose(),this[V]=!0,!this.render[W]&&K(this))}),e}(e):function(e,t){if(w&&e.$$typeof===w)throw Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if(h)return e;var r,n=(r=void 0,void 0!==r&&r),o=e,a=e.displayName||e.name;if(v&&e.$$typeof===v&&(n=!0,"function"!=typeof(o=e.render)))throw Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var s=function(e,t){return E(function(){return o(e,t)},a)};return""!==a&&(s.displayName=a),e.contextTypes&&(s.contextTypes=e.contextTypes),n&&(s=(0,i.forwardRef)(s)),function(e,t){Object.keys(e).forEach(function(r){!S[r]&&Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}(e,s=(0,i.memo)(s)),s}(e)}function er(){return(er=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var en=i.createContext({});function eo(e){var t=e.children,r=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}(e,["children"]),n=i.useContext(en),o=i.useRef(er({},n,r)).current;return i.createElement(en.Provider,{value:o},t)}function ei(e,t,r,n){var o=i.forwardRef(function(r,n){var o=er({},r);return Object.assign(o,e(i.useContext(en)||{},o)||{}),n&&(o.ref=n),i.createElement(t,o)});return n&&(o=et(o)),o.isMobxInjector=!0,!function(e,t){var r=Object.getOwnPropertyNames(Object.getPrototypeOf(e));Object.getOwnPropertyNames(e).forEach(function(n){!F[n]&&-1===r.indexOf(n)&&Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}(t,o),o.wrappedComponent=t,o.displayName=function(e,t){var r,n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return r=t?"inject-with-"+t+"("+n+")":"inject("+n+")"}(t,r),o}eo.displayName="MobXProvider";function ea(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if("function"!=typeof arguments[0])return function(e){var r;return ei((r=t,function(e,t){return r.forEach(function(r){if(!(r in t)){if(!(r in e))throw Error("MobX injector: Store '"+r+"' is not available! Make sure it is provided by some Provider");t[r]=e[r]}}),t}),e,t.join("-"),!1)};var n=arguments[0];return function(e){return ei(n,e,n.name,!0)}}var es=D("disposeOnUnmountProto"),el=D("disposeOnUnmountInst");function eu(){var e=this;[].concat(this[es]||[],this[el]||[]).forEach(function(t){var r="string"==typeof t?e[t]:t;null!=r&&(Array.isArray(r)?r.map(function(e){return e()}):r())})}function ec(e){function t(t,r,n,i,a,s){for(var l=arguments.length,u=Array(l>6?l-6:0),c=6;c<l;c++)u[c-6]=arguments[c];return(0,o.untracked)(function(){if(i=i||"<<anonymous>>",s=s||n,null!=r[n])return e.apply(void 0,[r,n,i,a,s].concat(u));if(t){var o=null===r[n]?"null":"undefined";return Error("The "+a+" `"+s+"` is marked as required in `"+i+"`, but its value is `"+o+"`.")}return null})}var r=t.bind(null,!1);return r.isRequired=t.bind(null,!0),r}function ef(e){var t,r,n=typeof e;if(Array.isArray(e))return"array";if(e instanceof RegExp)return"object";return(t=n,r=e,"symbol"===t||"Symbol"===r["@@toStringTag"]||"function"==typeof Symbol&&r instanceof Symbol)?"symbol":n}function eh(e,t){return ec(function(r,n,i,a,s){return(0,o.untracked)(function(){if(e&&ef(r[n])===t.toLowerCase())return null;switch(t){case"Array":a=o.isObservableArray;break;case"Object":a=o.isObservableObject;break;case"Map":a=o.isObservableMap;break;default:throw Error("Unexpected mobxType: "+t)}var a,l=r[n];if(!a(l)){var u=function(e){var t=ef(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}(l),c=e?" or javascript `"+t.toLowerCase()+"`":"";return Error("Invalid prop `"+s+"` of type `"+u+"` supplied to `"+i+"`, expected `mobx.Observable"+t+"`"+c+".")}return null})})}function ed(e,t){return ec(function(r,n,i,a,s){for(var l=arguments.length,u=Array(l>5?l-5:0),c=5;c<l;c++)u[c-5]=arguments[c];return(0,o.untracked)(function(){if("function"!=typeof t)return Error("Property `"+s+"` of component `"+i+"` has invalid PropType notation.");var o=eh(e,"Array")(r,n,i,a,s);if(o instanceof Error)return o;for(var l=r[n],c=0;c<l.length;c++)if((o=t.apply(void 0,[l,c,i,a,s+"["+c+"]"].concat(u)))instanceof Error)return o;return null})})}var em={observableArray:eh(!1,"Array"),observableArrayOf:ed.bind(null,!1),observableMap:eh(!1,"Map"),observableObject:eh(!1,"Object"),arrayOrObservableArray:eh(!0,"Array"),arrayOrObservableArrayOf:ed.bind(null,!0),objectOrObservableObject:eh(!0,"Object")};if(!i.Component)throw Error("mobx-react requires React to be available");if(!o.observable)throw Error("mobx-react requires mobx to be available")},834929:function(e,t,r){r.d(t,{d5:function(){return n}});let n={domain:"lf6-cdn-tos.bytescm.com/obj",region:"cn",isInner:!1};a7r51826g2d0u693s("$1c1c01*cFh$WFZpTTBwd$dWaEtib$JZ$FQwPQ"),a7r51826g2d0u693s("$1c1c01*cFh$WFZpTTBwd$dWaEtib$JZ$FQwPQ"),a7r51826g2d0u693s("$1c1c01*cFh$WFZpTTBwd$dWaEtib$JZ$FQwPQ"),a7r51826g2d0u693s("$1c1c01*cFh$WFZpTTBwd$dWaEtib$JZ$FQwPQ")},869815:function(e,t,r){r.d(t,{S1:function(){return rk}}),r("76375"),r("968336"),r("490629"),r("228983"),r("759943"),r("706056");let n=".json",o="@",i="-",a="/",s={[o]:"scope_",[i]:"_",[a]:"__"};s[o],s[i],s[a];let l=((h={})[h.UNKNOWN=1]="UNKNOWN",h[h.CALCULATED=2]="CALCULATED",h[h.NO_USE=0]="NO_USE",h);var u,c,f,h,d,m,p,y=r(777296);let g="undefined"!=typeof ENV_TARGET?"web"===ENV_TARGET:"undefined"!=typeof window&&void 0!==window.document;function _(){return g}function E(){var e;return"undefined"!=typeof navigator&&(null===(e=navigator)||void 0===e?void 0:e.product)==="ReactNative"}function b(){return void 0!==y&&y.env&&y.env.FEDERATION_DEBUG?!!y.env.FEDERATION_DEBUG:!!("undefined"!=typeof FEDERATION_DEBUG&&FEDERATION_DEBUG)||function(){try{if(g&&window.localStorage)return!!localStorage.getItem("FEDERATION_DEBUG")}catch(e){}return!1}()}let v="[ Module Federation ]",w=console,S=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];var O=class{setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=null!=e?e:w}emit(e,t){let r=this.delegate,n=b()?function(){try{let e=Error().stack;if(!e)return;let[,...t]=e.split("\n"),r=t.filter(e=>!S.some(t=>e.includes(t)));if(!r.length)return;return`Stack trace:
${r.slice(0,5).join("\n")}`}catch(e){return}}():void 0,o=n?[...t,n]:t,i=(()=>{switch(e){case"log":return["log","info"];case"info":return["info","log"];case"warn":return["warn","info","log"];case"error":return["error","warn","log"];default:return["debug","log"]}})();for(let e of i){let t=r[e];if("function"==typeof t){t.call(r,this.prefix,...o);return}}for(let e of i){let t=w[e];if("function"==typeof t){t.call(w,this.prefix,...o);return}}}log(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("log",t)}warn(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("warn",t)}error(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("error",t)}success(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("info",t)}info(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("info",t)}ready(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("info",t)}debug(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];b()&&this.emit("debug",t)}constructor(e,t=w){this.prefix=e,this.delegate=null!=t?t:w}};function R(e){return new O(e)}new O(v),!function(e){let t=new O(e);Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1})}(v);let A=e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`,N=(e,t,r,n)=>{let o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(A(e)),n&&o.push(`Original Error Message:
${n}`),o.join("\n")},T="[ Federation Runtime ]",$=new O(T);function I(e,t,r,n,o){!e&&(void 0!==r?k(t,r,n,void 0,o):k(t))}function k(e,t,r,n,o){if(void 0!==t){var i;return i=0,(e=>{throw Error(`${T}: ${e}`)})(N(e,t,null!=r?r:{},n))}if(e instanceof Error)throw!e.message.startsWith(T)&&(e.message=`${T}: ${e.message}`),e;throw Error(`${T}: ${e}`)}function P(e){e instanceof Error&&!e.message.startsWith(T)&&(e.message=`${T}: ${e.message}`),$.warn(e)}r("374954"),r("679308"),r("414931"),r("683656"),r("559561");function D(e){return"version"in e&&e.version?`${e.name}:${e.version}`:"entry"in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`}function L(e){return void 0!==e.entry}function M(e){return!e.entry.includes(".json")}function F(e){return e&&"object"==typeof e}let j=Object.prototype.toString;function C(e){return Array.isArray(e)?e:[e]}function x(e){let t={url:"",type:"global",globalName:""};return g||E()||!("ssrRemoteEntry"in e)?"remoteEntry"in e?{url:e.remoteEntry,type:e.remoteEntryType,globalName:e.globalName}:t:"ssrRemoteEntry"in e?{url:e.ssrRemoteEntry||t.url,type:e.ssrRemoteEntryType||t.type,globalName:e.globalName}:t}let H=(e,t)=>{let r;return r=e.endsWith("/")?e.slice(0,-1):e,t.startsWith(".")&&(t=t.slice(1)),r+=t};var U=r("629686"),G=r("811603");r("302356"),r("362051");let W="object"==typeof globalThis?globalThis:window,B=(()=>{try{return document.defaultView}catch(e){return W}})();function V(e,t,r){Object.defineProperty(e,t,{value:r,configurable:!1,writable:!0})}function q(e,t){return Object.hasOwnProperty.call(e,t)}!q(W,"__GLOBAL_LOADING_REMOTE_ENTRY__")&&V(W,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});let z=W.__GLOBAL_LOADING_REMOTE_ENTRY__;function K(e){var t,r,n,o,i,a,s,l,u,c,f,h;q(e,"__VMOK__")&&!q(e,"__FEDERATION__")&&V(e,"__FEDERATION__",e.__VMOK__),!q(e,"__FEDERATION__")&&(V(e,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),V(e,"__VMOK__",e.__FEDERATION__)),null!==(s=(t=e.__FEDERATION__).__GLOBAL_PLUGIN__)&&void 0!==s||(t.__GLOBAL_PLUGIN__=[]),null!==(l=(r=e.__FEDERATION__).__INSTANCES__)&&void 0!==l||(r.__INSTANCES__=[]),null!==(u=(n=e.__FEDERATION__).moduleInfo)&&void 0!==u||(n.moduleInfo={}),null!==(c=(o=e.__FEDERATION__).__SHARE__)&&void 0!==c||(o.__SHARE__={}),null!==(f=(i=e.__FEDERATION__).__MANIFEST_LOADING__)&&void 0!==f||(i.__MANIFEST_LOADING__={}),null!==(h=(a=e.__FEDERATION__).__PRELOADED_MAP__)&&void 0!==h||(a.__PRELOADED_MAP__=new Map)}K(W),K(B);function J(e){W.__FEDERATION__.__INSTANCES__.push(e)}function Z(){return W.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function Y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b();t&&(W.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,W.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="2.3.1")}function X(e,t){if("string"==typeof t){if(e[t])return{value:e[t],key:t};else{for(let r of Object.keys(e)){let[n,o]=r.split(":"),i=`${n}:${t}`,a=e[i];if(a)return{value:a,key:i}}return{value:void 0,key:t}}}k(`getInfoWithoutType: "key" must be a string, got ${typeof t} (${JSON.stringify(t)}).`)}let Q=()=>B.__FEDERATION__.moduleInfo,ee=(e,t)=>{let r=X(t,D(e)).value;if(r&&!r.version&&"version"in e&&e.version&&(r.version=e.version),r)return r;if("version"in e&&e.version){let{version:t}=e,r=D((0,G._)(e,["version"])),n=X(B.__FEDERATION__.moduleInfo,r).value;if((null==n?void 0:n.version)===t)return n}},et=e=>ee(e,B.__FEDERATION__.moduleInfo),er=(e,t)=>{let r=D(e);return B.__FEDERATION__.moduleInfo[r]=t,B.__FEDERATION__.moduleInfo},en=e=>(B.__FEDERATION__.moduleInfo=(0,U._)({},B.__FEDERATION__.moduleInfo,e),()=>{for(let t of Object.keys(e))delete B.__FEDERATION__.moduleInfo[t]}),eo=(e,t)=>{let r=t||`__FEDERATION_${e}:custom__`;return{remoteEntryKey:r,entryExports:W[r]}},ei=()=>B.__FEDERATION__.__GLOBAL_PLUGIN__,ea=e=>W.__FEDERATION__.__PRELOADED_MAP__.get(e),es=e=>W.__FEDERATION__.__PRELOADED_MAP__.set(e,!0);r("374285"),r("566071"),r("591964"),r("240148");let el="[0-9A-Za-z-]+",eu=`(?:\\+(${el}(?:\\.${el})*))`,ec="0|[1-9]\\d*",ef="[0-9]+",eh="\\d*[a-zA-Z-][a-zA-Z0-9-]*",ed=`(?:${ef}|${eh})`,em=`(?:-?(${ed}(?:\\.${ed})*))`,ep=`(?:${ec}|${eh})`,ey=`(?:-(${ep}(?:\\.${ep})*))`,eg=`${ec}|x|X|\\*`,e_=`[v=\\s]*(${eg})(?:\\.(${eg})(?:\\.(${eg})(?:${ey})?${eu}?)?)?`,eE=`^\\s*(${e_})\\s+-\\s+(${e_})\\s*$`,eb=`[v=\\s]*${`(${ef})\\.(${ef})\\.(${ef})`}${em}?${eu}?`,ev="((?:<|>)?=?)",ew=`(\\s*)${ev}\\s*(${eb}|${e_})`,eS="(?:~>?)",eO=`(\\s*)${eS}\\s+`,eR="(?:\\^)",eA=`(\\s*)${eR}\\s+`,eN=`^${eR}${e_}$`,eT=`v?${`(${ec})\\.(${ec})\\.(${ec})`}${ey}?${eu}?`,e$=`^${eS}${e_}$`,eI=`^${ev}\\s*${e_}$`,ek=`^${ev}\\s*(${eT})$|^$`;function eP(e){return new RegExp(e)}function eD(e){return!e||"x"===e.toLowerCase()||"*"===e}function eL(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>t.reduce((e,t)=>t(e),e)}function eM(e){return e.match(eP(ek))}function eF(e,t,r,n){let o=`${e}.${t}.${r}`;return n?`${o}-${n}`:o}function ej(e){return e.replace(eP(eE),(e,t,r,n,o,i,a,s,l,u,c,f)=>(t=eD(r)?"":eD(n)?`>=${r}.0.0`:eD(o)?`>=${r}.${n}.0`:`>=${t}`,s=eD(l)?"":eD(u)?`<${Number(l)+1}.0.0-0`:eD(c)?`<${l}.${Number(u)+1}.0-0`:f?`<=${l}.${u}.${c}-${f}`:`<=${s}`,`${t} ${s}`.trim()))}function eC(e){return e.replace(eP(ew),"$1$2$3")}function ex(e){return e.replace(eP(eO),"$1~")}function eH(e){return e.replace(eP(eA),"$1^")}function eU(e){return e.trim().split(/\s+/).map(e=>e.replace(eP(eN),(e,t,r,n,o)=>{if(eD(t))return"";if(eD(r))return`>=${t}.0.0 <${Number(t)+1}.0.0-0`;if(eD(n)){if("0"===t)return`>=${t}.${r}.0 <${t}.${Number(r)+1}.0-0`;else return`>=${t}.${r}.0 <${Number(t)+1}.0.0-0`}else if(o){if("0"!==t)return`>=${t}.${r}.${n}-${o} <${Number(t)+1}.0.0-0`;else if("0"===r)return`>=${t}.${r}.${n}-${o} <${t}.${r}.${Number(n)+1}-0`;else return`>=${t}.${r}.${n}-${o} <${t}.${Number(r)+1}.0-0`}else{if("0"===t){if("0"===r)return`>=${t}.${r}.${n} <${t}.${r}.${Number(n)+1}-0`;else return`>=${t}.${r}.${n} <${t}.${Number(r)+1}.0-0`}return`>=${t}.${r}.${n} <${Number(t)+1}.0.0-0`}})).join(" ")}function eG(e){return e.trim().split(/\s+/).map(e=>e.replace(eP(e$),(e,t,r,n,o)=>{if(eD(t))return"";if(eD(r))return`>=${t}.0.0 <${Number(t)+1}.0.0-0`;if(eD(n))return`>=${t}.${r}.0 <${t}.${Number(r)+1}.0-0`;else if(o)return`>=${t}.${r}.${n}-${o} <${t}.${Number(r)+1}.0-0`;return`>=${t}.${r}.${n} <${t}.${Number(r)+1}.0-0`})).join(" ")}function eW(e){return e.split(/\s+/).map(e=>e.trim().replace(eP(eI),(e,t,r,n,o,i)=>{let a=eD(r),s=a||eD(n),l=s||eD(o);if("="===t&&l&&(t=""),i="",a){if(">"===t||"<"===t)return"<0.0.0-0";else return"*"}if(t&&l)return s&&(n=0),o=0,">"===t?(t=">=",s?(r=Number(r)+1,n=0):n=Number(n)+1,o=0):"<="===t&&(t="<",s?r=Number(r)+1:n=Number(n)+1),"<"===t&&(i="-0"),`${t+r}.${n}.${o}${i}`;if(s)return`>=${r}.0.0${i} <${Number(r)+1}.0.0-0`;else if(l)return`>=${r}.${n}.0${i} <${r}.${Number(n)+1}.0-0`;return e})).join(" ")}function eB(e){return e.trim().replace(eP("(<|>)?=?\\s*\\*"),"")}function eV(e,t){return(e=Number(e)||e,e>(t=Number(t)||t))?1:e===t?0:-1}function eq(e,t){return eV(e.major,t.major)||eV(e.minor,t.minor)||eV(e.patch,t.patch)||function(e,t){let{preRelease:r}=e,{preRelease:n}=t;if(void 0===r&&n)return 1;if(r&&void 0===n)return -1;if(void 0===r&&void 0===n)return 0;for(let e=0,t=r.length;e<=t;e++){let t=r[e],o=n[e];if(t!==o){if(void 0===t&&void 0===o)return 0;if(!t)return 1;if(!o)return -1;return eV(t,o)}}return 0}(e,t)}function ez(e,t){return e.version===t.version}function eK(e,t){if(!e)return!1;let r=eM(e);if(!r)return!1;let[,n,,o,i,a,s]=r,l={operator:n,version:eF(o,i,a,s),major:o,minor:i,patch:a,preRelease:null==s?void 0:s.split(".")};for(let e of t.split("||")){let t=e.trim();if(!t||"*"===t||"x"===t)return!0;try{var u;let e=(u=t,eL(ej,eC,ex,eH)(u.trim()).split(/\s+/).join(" "));if(!e.trim())return!0;let r=e.split(" ").map(e=>{var t;return t=e,eL(eU,eG,eW,eB)(t)}).join(" ");if(!r.trim())return!0;let n=r.split(/\s+/).map(e=>e.trim().replace(eP("^\\s*>=\\s*0.0.0\\s*$"),"")).filter(Boolean);if(0===n.length)continue;let o=!0;for(let e of n){let t=eM(e);if(!t){o=!1;break}let[,r,,n,i,a,s]=t;if(!function(e,t){switch(e.operator){case"":case"=":return ez(e,t);case">":return 0>eq(e,t);case">=":return ez(e,t)||0>eq(e,t);case"<":return eq(e,t)>0;case"<=":return ez(e,t)||eq(e,t)>0;case void 0:return!0;default:return!1}}({operator:r,version:eF(n,i,a,s),major:n,minor:i,patch:a,preRelease:null==s?void 0:s.split(".")},l)){o=!1;break}}if(o)return!0}catch(e){continue}}return!1}var eJ=r("402748");let eZ="default",eY="global";function eX(e,t){let r=t.shared||{},n=t.name,o=Object.keys(r).reduce((e,o)=>{let i=C(r[o]);return e[o]=e[o]||[],i.forEach(r=>{var i,a,s,u,c,f,h,d,m,p,y;let g;e[o].push((i=r,a=n,s=o,u=t.shareStrategy,g="get"in i?i.get:"lib"in i?()=>Promise.resolve(i.lib):()=>Promise.resolve(()=>{k(`Cannot get shared "${s}" from "${a}": neither "get" nor "lib" is provided in the share config.`)}),(null===(c=i.shareConfig)||void 0===c?void 0:c.eager)&&(null===(f=i.treeShaking)||void 0===f?void 0:f.mode)&&k(`Invalid shared config for "${s}" from "${a}": cannot use both "eager: true" and "treeShaking.mode" simultaneously. Choose one strategy.`),(0,eJ._)((0,U._)({deps:[],useIn:[],from:a,loading:null},i),{shareConfig:(0,U._)({requiredVersion:`^${i.version}`,singleton:!1,eager:!1,strictVersion:!1},i.shareConfig),get:g,loaded:null!=i&&!!i.loaded||"lib"in i||void 0,version:null!==(h=i.version)&&void 0!==h?h:"0",scope:Array.isArray(i.scope)?i.scope:[null!==(d=i.scope)&&void 0!==d?d:"default"],strategy:(null!==(m=i.strategy)&&void 0!==m?m:u)||"version-first",treeShaking:i.treeShaking?(0,eJ._)((0,U._)({},i.treeShaking),{mode:null!==(p=i.treeShaking.mode)&&void 0!==p?p:"server-calc",status:null!==(y=i.treeShaking.status)&&void 0!==y?y:l.UNKNOWN,useIn:[]}):void 0})))}),e},{}),i=(0,U._)({},e.shared);return Object.keys(o).forEach(e=>{i[e]?o[e].forEach(t=>{!i[e].find(e=>e.version===t.version)&&i[e].push(t)}):i[e]=o[e]}),{allShareInfos:i,newShareInfos:o}}function eQ(e,t){if(!e)return!1;let{status:r,mode:n}=e;if(r===l.NO_USE)return!1;if(r===l.CALCULATED)return!0;if("runtime-infer"===n)return!t||e3(e,t);return!1}function e0(e,t){let r=e=>{if(!Number.isNaN(Number(e))){let t=e.split("."),r=e;for(let e=0;e<3-t.length;e++)r+=".0";return r}return e};return!!eK(r(e),`<=${r(t)}`)||!1}let e1=(e,t)=>{let r=t||function(e,t){return e0(e,t)};return Object.keys(e).reduce((e,t)=>!e||r(e,t)||"0"===e?t:e,0)},e2=e=>!!e.loaded||"function"==typeof e.lib,e6=e=>!!e.loading,e3=(e,t)=>{if(!e||!t)return!1;let{usedExports:r}=e;return!!r&&(!!t.every(e=>r.includes(e))||!1)};function e9(e,t,r,n){let o=e[t][r],i="",a=eQ(n),s=function(e,t){if(a)return!o[e].treeShaking||!!o[t].treeShaking&&!e2(o[e].treeShaking)&&e0(e,t);return!e2(o[e])&&e0(e,t)};if(a){if(i=e1(e[t][r],s))return{version:i,useTreesShaking:a};a=!1}return{version:e1(e[t][r],s),useTreesShaking:a}}let e5=e=>e2(e)||e6(e);function e7(e,t,r,n){let o=e[t][r],i="",a=eQ(n),s=function(e,t){if(a){if(!o[e].treeShaking)return!0;if(!o[t].treeShaking)return!1;if(e5(o[t].treeShaking)){if(e5(o[e].treeShaking))return!!e0(e,t);else return!0}if(e5(o[e].treeShaking))return!1}if(e5(o[t])){if(e5(o[e]))return!!e0(e,t);else return!0}return!e5(o[e])&&e0(e,t)};if(a){if(i=e1(e[t][r],s))return{version:i,useTreesShaking:a};a=!1}return{version:e1(e[t][r],s),useTreesShaking:a}}function e4(e,t,r,n){if(!e)return;let{shareConfig:o,scope:i=eZ,strategy:a,treeShaking:s}=r;for(let l of Array.isArray(i)?i:[i])if(o&&e[l]&&e[l][t]){let{requiredVersion:i}=o,{version:u,useTreesShaking:c}=("loaded-first"===a?e7:e9)(e,l,t,s),f=()=>{let n=e[l][t][u];if(o.singleton){if("string"==typeof i&&!eK(u,i)){let e=`Version ${u} from ${u&&n.from} of shared singleton module ${t} does not satisfy the requirement of ${r.from} which needs ${i})`;o.strictVersion?k(e):P(e)}return{shared:n,useTreesShaking:c}}{if(!1===i||"*"===i||eK(u,i))return{shared:n,useTreesShaking:c};let r=eQ(s);if(r){for(let[n,o]of Object.entries(e[l][t]))if(eQ(o.treeShaking,null==s?void 0:s.usedExports)&&eK(n,i))return{shared:o,useTreesShaking:r}}for(let[r,n]of Object.entries(e[l][t]))if(eK(r,i))return{shared:n,useTreesShaking:!1}}},h={shareScopeMap:e,scope:l,pkgName:t,version:u,GlobalFederation:B.__FEDERATION__,shareInfo:r,resolver:f};return(n.emit(h)||h).resolver()}}function e8(){return B.__FEDERATION__.__SHARE__}function te(e){var t;let{pkgName:r,extraOptions:n,shareInfos:o}=e,i=null!==(t=null==n?void 0:n.resolver)&&void 0!==t?t:e=>{if(!e)return;let t={};return e.forEach(e=>{t[e.version]=e}),t[e1(t,function(e,r){return!e2(t[e])&&e0(e,r)})]},a=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),s=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let n={};for(let e of t)if(e)for(let[t,r]of Object.entries(e)){let e=n[t];a(e)&&a(r)?n[t]=s(e,r):void 0!==r&&(n[t]=r)}return n};return s(i(o[r]),null==n?void 0:n.customShareInfo)}let tt=(e,t)=>{var r,n;!e.useIn&&(e.useIn=[]),r=e.useIn,n=t,-1===r.findIndex(e=>e===n)&&r.push(n)};function tr(e,t){return t&&e.treeShaking?e.treeShaking:e}function tn(e,t){for(let r of e){let e=t.startsWith(r.name),n=t.replace(r.name,"");if(e){if(n.startsWith("/")){let e=r.name;return{pkgNameOrAlias:e,expose:n=`.${n}`,remote:r}}if(""===n)return{pkgNameOrAlias:r.name,expose:".",remote:r}}let o=r.alias&&t.startsWith(r.alias),i=r.alias&&t.replace(r.alias,"");if(r.alias&&o){if(i&&i.startsWith("/")){let e=r.alias;return{pkgNameOrAlias:e,expose:i=`.${i}`,remote:r}}if(""===i)return{pkgNameOrAlias:r.alias,expose:".",remote:r}}}}r("14275");let to=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length?t.reduce((e,t)=>t?e?`${e}:${t}`:t:e,""):""},ti=(e,t)=>{if("getPublicPath"in e){let r;return r=e.getPublicPath.startsWith("function")?Function("return "+e.getPublicPath)()():Function(e.getPublicPath)(),`${r}${t}`}if(!("publicPath"in e))return"";return!g&&!E()&&"ssrPublicPath"in e&&"string"==typeof e.ssrPublicPath?`${e.ssrPublicPath}${t}`:`${e.publicPath}${t}`},ta=e=>{};function ts(e){try{return JSON.stringify(e,null,2)}catch(e){return""}}async function tl(e,t){try{return await e()}catch(e){t||ta(e);return}}function tu(e,t){let r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function tc(e){let t,r=null,n=!0,o=2e4,i=document.getElementsByTagName("script");for(let t=0;t<i.length;t++){let o=i[t],a=o.getAttribute("src");if(a&&tu(a,e.url)){r=o,n=!1;break}}if(!r){let t,n=e.attrs;(r=document.createElement("script")).type=(null==n?void 0:n.type)==="module"?"module":"text/javascript";e.createScriptHook&&((t=e.createScriptHook(e.url,e.attrs))instanceof HTMLScriptElement?r=t:"object"==typeof t&&("script"in t&&t.script&&(r=t.script),"timeout"in t&&t.timeout&&(o=t.timeout))),!r.src&&(r.src=e.url),n&&!t&&Object.keys(n).forEach(e=>{r&&("async"===e||"defer"===e?r[e]=n[e]:!r.getAttribute(e)&&r.setAttribute(e,n[e]))})}let a=null,s="undefined"!=typeof window?t=>{if(t.filename&&tu(t.filename,e.url)){let r=Error(`ScriptExecutionError: Script "${e.url}" loaded but threw a runtime error during execution: ${t.message} (${t.filename}:${t.lineno}:${t.colno})`);r.name="ScriptExecutionError",a=r}}:null;s&&window.addEventListener("error",s);let l=async(n,o)=>{clearTimeout(t),s&&window.removeEventListener("error",s);let i=()=>{if((null==o?void 0:o.type)==="error"){let t=Error((null==o?void 0:o.isTimeout)?`ScriptNetworkError: Script "${e.url}" timed out.`:`ScriptNetworkError: Failed to load script "${e.url}" - the script URL is unreachable or the server returned an error (network failure, 404, CORS, etc.)`);t.name="ScriptNetworkError",(null==e?void 0:e.onErrorCallback)&&(null==e||e.onErrorCallback(t))}else a?(null==e?void 0:e.onErrorCallback)&&(null==e||e.onErrorCallback(a)):(null==e?void 0:e.cb)&&(null==e||e.cb())};if(r&&(r.onerror=null,r.onload=null,tl(()=>{let{needDeleteScript:t=!0}=e;t&&(null==r?void 0:r.parentNode)&&r.parentNode.removeChild(r)}),n&&"function"==typeof n)){let e=n(o);if(e instanceof Promise){let t=await e;return i(),t}return i(),e}i()};return r.onerror=l.bind(null,r.onerror),r.onload=l.bind(null,r.onload),t=setTimeout(()=>{l(null,{type:"error",isTimeout:!0})},o),{script:r,needAttach:n}}function tf(e){let t=null,r=!0,n=document.getElementsByTagName("link");for(let o=0;o<n.length;o++){let i=n[o],a=i.getAttribute("href"),s=i.getAttribute("rel");if(a&&tu(a,e.url)&&s===e.attrs.rel){t=i,r=!1;break}}if(!t){let r;(t=document.createElement("link")).setAttribute("href",e.url);let n=e.attrs;e.createLinkHook&&(r=e.createLinkHook(e.url,n))instanceof HTMLLinkElement&&(t=r),n&&!r&&Object.keys(n).forEach(e=>{t&&!t.getAttribute(e)&&t.setAttribute(e,n[e])})}let o=(r,n)=>{let o=()=>{(null==n?void 0:n.type)==="error"?(null==e?void 0:e.onErrorCallback)&&(null==e||e.onErrorCallback(n)):(null==e?void 0:e.cb)&&(null==e||e.cb())};if(t&&(t.onerror=null,t.onload=null,tl(()=>{let{needDeleteLink:r=!0}=e;r&&(null==t?void 0:t.parentNode)&&t.parentNode.removeChild(t)}),r)){let e=r(n);return o(),e}o()};return t.onerror=o.bind(null,t.onerror),t.onload=o.bind(null,t.onload),{link:t,needAttach:r}}r("656562"),r("992871");var th=r(777296);let td=new Map;function tm(e){if(!e)throw Error("import specifier is required");if(td.has(e))return td.get(e);let t=Function("name","return import(name)")(e).then(e=>e).catch(t=>{throw td.delete(e),t});return td.set(e,t),t}let tp=async()=>{let e=await tm("node-fetch");return e.default||e},ty=async(e,t,r)=>{let n,o;let i=await (n=e,o=t||{},r.lifecycle.fetch.emit(n,o));return i&&i instanceof Response?i:("undefined"==typeof fetch?await tp():fetch)(e,t||{})},tg="undefined"==typeof ENV_TARGET||"web"!==ENV_TARGET?(e,t,r,n)=>{let o;if(null==n?void 0:n.createScriptHook){let t=n.createScriptHook(e);t&&"object"==typeof t&&"url"in t&&(e=t.url)}try{o=new URL(e)}catch(e){t(Error(`Invalid URL: ${e}`));return}let i=async(e,n)=>{try{var o,i;let a;let s=await e(n.href),l=await s.text(),[u,c]=await Promise.all([tm("path"),tm("vm")]),f={exports:{},module:{exports:{}}},h=n.pathname.split("/").slice(0,-1).join("/"),d=u.basename(n.pathname),m=new c.Script(`(function(exports, module, require, __dirname, __filename) {${l}
})`,{filename:d,importModuleDynamically:null!==(i=null===(o=c.constants)||void 0===o?void 0:o.USE_MAIN_CONTEXT_DEFAULT_LOADER)&&void 0!==i?i:tm});a=(await tm("node:module")).createRequire("file:"===n.protocol||"node:"===n.protocol?n.href:u.join(th.cwd(),"__mf_require_base__.js")),m.runInThisContext()(f.exports,f.module,a,h,d);let p=f.module.exports||f.exports;if(r&&p&&r.globalName){t(void 0,p[r.globalName]||p);return}t(void 0,p)}catch(e){t(e instanceof Error?e:Error(`Script execution error: ${e}`))}};(async()=>(null==n?void 0:n.fetch)?(e,t)=>ty(e,t,n):"undefined"==typeof fetch?tp():fetch)().then(async e=>{if((null==r?void 0:r.type)==="esm"||(null==r?void 0:r.type)==="module")return tb(o.href,{fetch:e,vm:await tm("vm")}).then(async e=>{await e.evaluate(),t(void 0,e.namespace)}).catch(e=>{t(e instanceof Error?e:Error(`Script execution error: ${e}`))});i(e,o)}).catch(e=>{t(e)})}:(e,t,r,n)=>{t(Error("createScriptNode is disabled in non-Node.js environment"))},t_="undefined"==typeof ENV_TARGET||"web"!==ENV_TARGET?(e,t)=>new Promise((r,n)=>{tg(e,(e,o)=>{if(e)n(e);else{var i,a;let e=(null==t?void 0:null===(i=t.attrs)||void 0===i?void 0:i.globalName)||`__FEDERATION_${null==t?void 0:null===(a=t.attrs)||void 0===a?void 0:a.name}:custom__`;r(globalThis[e]=o)}},t.attrs,t.loaderHook)}):(e,t)=>{throw Error("loadScriptNode is disabled in non-Node.js environment")},tE=new Map;async function tb(e,t){if(tE.has(e))return tE.get(e);let{fetch:r,vm:n}=t,o=await (await r(e)).text(),i=new n.SourceTextModule(o,{importModuleDynamically:async(r,n)=>tb(new URL(r,e).href,t)});return tE.set(e,i),await i.link(async r=>{let n=new URL(r,e).href;return await tb(n,t)}),i}let tv="RUNTIME-001",tw="RUNTIME-002",tS="RUNTIME-003",tO="RUNTIME-004",tR="RUNTIME-005",tA="RUNTIME-006",tN="RUNTIME-007",tT="RUNTIME-008",t$="RUNTIME-010",tI="RUNTIME-011",tk={[tv]:"Failed to get remoteEntry exports.",[tw]:'The remote entry interface does not contain "init"',[tS]:"Failed to get manifest.",[tO]:"Failed to locate remote.",[tR]:"Invalid loadShareSync function call from bundler runtime",[tA]:"Invalid loadShareSync function call from runtime",[tN]:"Failed to get remote snapshot.",[tT]:"Failed to load script resources.","RUNTIME-009":"Please call createInstance first.",[t$]:'The name option cannot be changed after initialization. If you want to create a new instance with a different name, please use "createInstance" api.',[tI]:"The remoteEntry URL is missing from the remote snapshot.","RUNTIME-012":'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'};({...tk,"TYPE-001":"Failed to generate type declaration. Execute the below cmd to reproduce and fix the error.","BUILD-001":"Failed to find expose module.","BUILD-002":"PublicPath is required in prod mode."});let tP=".then(callbacks[0]).catch(callbacks[1])";async function tD(e){let{entry:t,remoteEntryExports:r}=e;return new Promise((e,n)=>{try{r?e(r):"undefined"!=typeof FEDERATION_ALLOW_NEW_FUNCTION?Function("callbacks",`import("${t}")${tP}`)([e,n]):import(t).then(e).catch(n)}catch(e){k(`Failed to load ESM entry from "${t}". ${e instanceof Error?e.message:String(e)}`)}})}async function tL(e){let{entry:t,remoteEntryExports:r}=e;return new Promise((e,n)=>{try{if(r)e(r);else Function("callbacks",`System.import("${t}")${tP}`)([e,n])}catch(e){k(`Failed to load SystemJS entry from "${t}". ${e instanceof Error?e.message:String(e)}`)}})}function tM(e,t,r){let{remoteEntryKey:n,entryExports:o}=eo(e,t);return!o&&k(tv,tk,{remoteName:e,remoteEntryUrl:r,remoteEntryKey:n}),o}async function tF(e){let{name:t,globalName:r,entry:n,loaderHook:o,getEntryUrl:i}=e,{entryExports:a}=eo(t,r);if(a)return a;let s=i?i(n):n;return(function(e,t){let{attrs:r={},createScriptHook:n}=t;return new Promise((t,o)=>{let{script:i,needAttach:a}=tc({url:e,cb:t,onErrorCallback:o,attrs:(0,U._)({fetchpriority:"high"},r),createScriptHook:n,needDeleteScript:!0});a&&document.head.appendChild(i)})})(s,{attrs:{},createScriptHook:(e,t)=>{let r=o.lifecycle.createScript.emit({url:e,attrs:t});if(r&&(r instanceof HTMLScriptElement||"script"in r||"timeout"in r))return r}}).then(()=>tM(t,r,n),e=>{k(tT,tk,{remoteName:t,resourceUrl:s},e instanceof Error?e.message:String(e))})}async function tj(e){let{remoteInfo:t,remoteEntryExports:r,loaderHook:n,getEntryUrl:o}=e,{entry:i,entryGlobalName:a,name:s,type:l}=t;switch(l){case"esm":case"module":return tD({entry:i,remoteEntryExports:r});case"system":return tL({entry:i,remoteEntryExports:r});default:return tF({entry:i,globalName:a,name:s,loaderHook:n,getEntryUrl:o})}}async function tC(e){let{remoteInfo:t,loaderHook:r}=e,{entry:n,entryGlobalName:o,name:i,type:a}=t,{entryExports:s}=eo(i,o);return s?s:t_(n,{attrs:{name:i,globalName:o,type:a},loaderHook:{createScriptHook:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.lifecycle.createScript.emit({url:e,attrs:t});if(n&&"url"in n)return n}}}).then(()=>tM(i,o,n)).catch(e=>{k(`Failed to load Node.js entry for remote "${i}" from "${n}". ${e instanceof Error?e.message:String(e)}`)})}function tx(e){let{entry:t,name:r}=e;return to(r,t)}async function tH(e){let{origin:t,remoteEntryExports:r,remoteInfo:n,getEntryUrl:o,_inErrorHandling:i=!1}=e,a=tx(n);if(r)return r;if(!z[a]){let e=t.remoteHandler.hooks.lifecycle.loadEntry,s=t.loaderHook;z[a]=e.emit({loaderHook:s,remoteInfo:n,remoteEntryExports:r}).then(e=>e?e:("undefined"!=typeof ENV_TARGET?"web"===ENV_TARGET:g)?tj({remoteInfo:n,remoteEntryExports:r,loaderHook:s,getEntryUrl:o}):tC({remoteInfo:n,loaderHook:s})).catch(async e=>{let o=tx(n),a=e instanceof Error&&e.message.includes("ScriptExecutionError");if(e instanceof Error&&e.message.includes(tT)&&!a&&!i){let e=await t.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:e=>tH((0,eJ._)((0,U._)({},e),{_inErrorHandling:!0})),origin:t,remoteInfo:n,remoteEntryExports:r,globalLoading:z,uniqueKey:o});if(e)return e}throw e})}return z[a]}function tU(e){return(0,eJ._)((0,U._)({},e),{entry:"entry"in e?e.entry:"",type:e.type||eY,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||eZ})}function tG(e){return(0,U._)({resourceCategory:"sync",share:!0,depsRemote:!0,prefetchInterface:!1},e)}function tW(e,t,r){let n=!(arguments.length>3)||void 0===arguments[3]||arguments[3],{cssAssets:o,jsAssetsWithoutEntry:i,entryAssets:a}=r;if(t.options.inBrowser){if(a.forEach(r=>{let{moduleInfo:n}=r,o=t.moduleCache.get(e.name);o?tH({origin:t,remoteInfo:n,remoteEntryExports:o.remoteEntryExports}):tH({origin:t,remoteInfo:n,remoteEntryExports:void 0})}),n){let e={rel:"preload",as:"style"};o.forEach(r=>{let{link:n,needAttach:o}=tf({url:r,cb:()=>{},attrs:e,createLinkHook:(e,r)=>{let n=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:r});if(n instanceof HTMLLinkElement)return n}});o&&document.head.appendChild(n)})}else{let e={rel:"stylesheet",type:"text/css"};o.forEach(r=>{let{link:n,needAttach:o}=tf({url:r,cb:()=>{},attrs:e,createLinkHook:(e,r)=>{let n=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:r});if(n instanceof HTMLLinkElement)return n},needDeleteLink:!1});o&&document.head.appendChild(n)})}if(n){let e={rel:"preload",as:"script"};i.forEach(r=>{let{link:n,needAttach:o}=tf({url:r,cb:()=>{},attrs:e,createLinkHook:(e,r)=>{let n=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:r});if(n instanceof HTMLLinkElement)return n}});o&&document.head.appendChild(n)})}else{let r={fetchpriority:"high",type:(null==e?void 0:e.type)==="module"?"module":"text/javascript"};i.forEach(e=>{let{script:n,needAttach:o}=tc({url:e,cb:()=>{},attrs:r,createScriptHook:(e,r)=>{let n=t.loaderHook.lifecycle.createScript.emit({url:e,attrs:r});if(n instanceof HTMLScriptElement)return n},needDeleteScript:!0});o&&document.head.appendChild(n)})}}}function tB(e){return{name:e.name,alias:e.alias,entry:"entry"in e?e.entry:void 0,version:"version"in e?e.version:void 0,type:e.type,entryGlobalName:e.entryGlobalName,shareScope:e.shareScope}}function tV(e){var t,r,n,o,i,a,s;let l={};for(let[t,r]of Object.entries(e.shared)){let e=r[0];e&&(l[t]={version:e.version,singleton:null===(n=e.shareConfig)||void 0===n?void 0:n.singleton,requiredVersion:(null===(o=e.shareConfig)||void 0===o?void 0:o.requiredVersion)!==!1&&(null===(i=e.shareConfig)||void 0===i?void 0:i.requiredVersion),eager:e.eager,strictVersion:null===(a=e.shareConfig)||void 0===a?void 0:a.strictVersion})}return{project:{name:e.name,mfRole:(null===(t=e.remotes)||void 0===t?void 0:t.length)>0?"host":"unknown"},mfConfig:{name:e.name,remotes:null!==(s=null===(r=e.remotes)||void 0===r?void 0:r.map(tB))&&void 0!==s?s:[],shared:l}}}r("313036");var tq=class{async getEntry(){if(this.remoteEntryExports)return this.remoteEntryExports;let e=await tH({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports});return I(e,`remoteEntryExports is undefined
${ts(this.remoteInfo)}`),this.remoteEntryExports=e,this.remoteEntryExports}async init(e,t,r){let n=await this.getEntry();if(this.inited)return n;if(this.initPromise)return await this.initPromise,n;this.initing=!0,this.initPromise=(async()=>{let{remoteEntryInitOptions:o,shareScope:i,initScope:a}=function(e,t,r){let n=Array.isArray(e.shareScope)?e.shareScope:[e.shareScope];!n.length&&n.push("default"),n.forEach(e=>{!t[e]&&(t[e]={})});let o={version:e.version||"",shareScopeKeys:Array.isArray(e.shareScope)?n:e.shareScope||"default"};return Object.defineProperty(o,"shareScopeMap",{value:t,enumerable:!1}),{remoteEntryInitOptions:o,shareScope:t[n[0]],initScope:null!=r?r:[]}}(this.remoteInfo,this.host.shareScopeMap,r),s=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:i,remoteEntryInitOptions:o,initScope:a,remoteInfo:this.remoteInfo,origin:this.host});void 0===(null==n?void 0:n.init)&&k(tw,tk,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName},void 0,tV(this.host.options)),await n.init(s.shareScope,s.initScope,s.remoteEntryInitOptions),await this.host.hooks.lifecycle.initContainer.emit((0,eJ._)((0,U._)({},s),{id:e,remoteSnapshot:t,remoteEntryExports:n})),this.inited=!0})();try{await this.initPromise}finally{this.initing=!1,this.initPromise=void 0}return n}async get(e,t,r,n){let o;let{loadFactory:i=!0}=r||{loadFactory:!0},a=await this.init(e,n);this.lib=a,!(o=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:a,expose:t,moduleInfo:this.remoteInfo}))&&(o=await a.get(t)),I(o,`${D(this.remoteInfo)} remote don't export ${t}.`);let s=H(this.remoteInfo.name,t),l=this.wraperFactory(o,s);return i?await l():l}wraperFactory(e,t){function r(e,t){e&&"object"==typeof e&&Object.isExtensible(e)&&!Object.getOwnPropertyDescriptor(e,Symbol.for("mf_module_id"))&&Object.defineProperty(e,Symbol.for("mf_module_id"),{value:t,enumerable:!1})}return e instanceof Promise?async()=>{let n=await e();return r(n,t),n}:()=>{let n=e();return r(n,t),n}}constructor({remoteInfo:e,host:t}){this.inited=!1,this.initing=!1,this.lib=void 0,this.remoteInfo=e,this.host=t}},tz=class{on(e){"function"==typeof e&&this.listeners.add(e)}once(e){let t=this;this.on(function r(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return t.remove(r),e.apply(null,o)})}emit(){let e;for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.listeners.size>0&&this.listeners.forEach(t=>{e=t(...r)}),e}remove(e){this.listeners.delete(e)}removeAll(){this.listeners.clear()}constructor(e){this.type="",this.listeners=new Set,e&&(this.type=e)}},tK=class extends tz{emit(){let e;for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];let o=Array.from(this.listeners);if(o.length>0){let t=0,n=e=>!1!==e&&(t<o.length?Promise.resolve(o[t++].apply(null,r)).then(n):e);e=n()}return Promise.resolve(e)}};function tJ(e,t){if(!F(t))return!1;if(e!==t){for(let r in e)if(!(r in t))return!1}return!0}var tZ=class extends tz{emit(e){for(let t of(!F(e)&&k(`The data for the "${this.type}" hook should be an object.`),this.listeners))try{let r=t(e);if(tJ(e,r))e=r;else{this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}}catch(e){P(e),this.onerror(e)}return e}constructor(e){super(),this.onerror=k,this.type=e}},tY=class extends tz{emit(e){!F(e)&&k(`The response data for the "${this.type}" hook must be an object.`);let t=Array.from(this.listeners);if(t.length>0){let r=0,n=t=>(P(t),this.onerror(t),e),o=i=>{if(tJ(e,i)){if(e=i,r<t.length)try{return Promise.resolve(t[r++](e)).then(o,n)}catch(e){return n(e)}}else this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`);return e};return Promise.resolve(o(e))}return Promise.resolve(e)}constructor(e){super(),this.onerror=k,this.type=e}},tX=class{applyPlugin(e,t){var r,n;I((r=e,"[object Object]"===j.call(r)),"Plugin configuration is invalid.");let o=e.name;if(I(o,"A name must be provided by the plugin."),!this.registerPlugins[o]){;this.registerPlugins[o]=e,null===(n=e.apply)||void 0===n||n.call(e,t),Object.keys(this.lifecycle).forEach(t=>{let r=e[t];r&&this.lifecycle[t].on(r)})}}removePlugin(e){I(e,"A name is required.");let t=this.registerPlugins[e];I(t,`The plugin "${e}" is not registered.`),Object.keys(t).forEach(e=>{"name"!==e&&this.lifecycle[e].remove(t[e])})}constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}};function tQ(e,t){let r=x(t);!r.url&&k(tI,tk,{remoteName:e.name});let n=ti(t,r.url);!g&&!n.startsWith("http")&&(n=`https:${n}`),e.type=r.type,e.entryGlobalName=r.globalName,e.entry=n,e.version=t.version,e.buildVersion=t.buildVersion}let t0=(e,t)=>{if(!e)return t;let r=(e=>{if("."===e)return"";if(e.startsWith("./"))return e.replace("./","");if(e.startsWith("/")){let t=e.slice(1);return t.endsWith("/")?t.slice(0,-1):t}return e})(e);return r?r.endsWith("/")?`${r}${t}`:`${r}/${t}`:t};function t1(e){var t,r,n;let o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{remotes:a={},overrides:s={},version:l}=i,u=()=>{if(!("publicPath"in e.metaData))return e.metaData.getPublicPath;if(("auto"===e.metaData.publicPath||""===e.metaData.publicPath)&&l)return l.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/");return e.metaData.publicPath},c=Object.keys(s),f={};!Object.keys(a).length&&(f=(null===(t=e.remotes)||void 0===t?void 0:t.reduce((e,t)=>{let r;let n=t.federationContainerName;return r=c.includes(n)?s[n]:"version"in t?t.version:t.entry,e[n]={matchedVersion:r},e},{}))||{}),Object.keys(a).forEach(e=>f[e]={matchedVersion:c.includes(e)?s[e]:a[e]});let{remoteEntry:{path:h,name:d,type:m},types:p={path:"",name:"",zip:"",api:""},buildInfo:{buildVersion:y},globalName:g,ssrRemoteEntry:_}=e.metaData,{exposes:E}=e,b={version:l||"",buildVersion:y,globalName:g,remoteEntry:t0(h,d),remoteEntryType:m,remoteTypes:t0(p.path,p.name),remoteTypesZip:p.zip||"",remoteTypesAPI:p.api||"",remotesInfo:f,shared:null==e?void 0:e.shared.map(e=>({assets:e.assets,sharedName:e.name,version:e.version,usedExports:e.referenceExports||[]})),modules:null==E?void 0:E.map(e=>({moduleName:e.name,modulePath:e.path,assets:e.assets}))};if(null===(r=e.metaData)||void 0===r?void 0:r.prefetchInterface){let t=e.metaData.prefetchInterface;b=(0,eJ._)((0,U._)({},b),{prefetchInterface:t})}if(null===(n=e.metaData)||void 0===n?void 0:n.prefetchEntry){let{path:t,name:r,type:n}=e.metaData.prefetchEntry;b=(0,eJ._)((0,U._)({},b),{prefetchEntry:t0(t,r),prefetchEntryType:n})}if("publicPath"in e.metaData?(o=(0,eJ._)((0,U._)({},b),{publicPath:u()}),"string"==typeof e.metaData.ssrPublicPath&&(o.ssrPublicPath=e.metaData.ssrPublicPath)):o=(0,eJ._)((0,U._)({},b),{getPublicPath:u()}),_){let e=t0(_.path,_.name);o.ssrRemoteEntry=e,o.ssrRemoteEntryType=_.type||"commonjs-module"}return o}function t2(e){return!!("remoteEntry"in e&&e.remoteEntry.includes(n))||!1}let t6=(e,t)=>document.querySelector(`${e}[${"link"===e?"href":"src"}="${t}"]`);function t3(e,t){let r=et({name:t.name,version:t.options.version}),n=r&&"remotesInfo"in r&&r.remotesInfo&&X(r.remotesInfo,e.name).value;return n&&n.matchedVersion?{hostGlobalSnapshot:r,globalSnapshot:Q(),remoteSnapshot:et({name:e.name,version:n.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:Q(),remoteSnapshot:et({name:e.name,version:"version"in e?e.version:void 0})}}var t9=class{async loadRemoteSnapshotInfo(e){let t,r,{moduleInfo:n,id:o,expose:i}=e,{options:a}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:a,moduleInfo:n});let s=et({name:this.HostInstance.options.name,version:this.HostInstance.options.version});!s&&(s={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},en({[this.HostInstance.options.name]:s})),s&&"remotesInfo"in s&&!X(s.remotesInfo,n.name).value&&("version"in n||"entry"in n)&&(s.remotesInfo=(0,eJ._)((0,U._)({},null==s?void 0:s.remotesInfo),{[n.name]:{matchedVersion:"version"in n?n.version:n.entry}}));let{hostGlobalSnapshot:l,remoteSnapshot:u,globalSnapshot:c}=this.getGlobalRemoteInfo(n),{remoteSnapshot:f,globalSnapshot:h}=await this.hooks.lifecycle.loadSnapshot.emit({options:a,moduleInfo:n,hostGlobalSnapshot:l,remoteSnapshot:u,globalSnapshot:c});if(f){if(t2(f)){let e=g?f.remoteEntry:f.ssrRemoteEntry||f.remoteEntry||"",o=await this.getManifestJson(e,n,{}),i=er((0,eJ._)((0,U._)({},n),{entry:e}),o);t=o,r=i}else{let{remoteSnapshot:e}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:n,remoteSnapshot:f,from:"global"});t=e,r=h}}else if(L(n)){let e=await this.getManifestJson(n.entry,n,{}),o=er(n,e),{remoteSnapshot:i}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:n,remoteSnapshot:e,from:"global"});t=i,r=o}else k(tN,tk,{remoteName:n.name,remoteVersion:n.version,hostName:this.HostInstance.options.name,globalSnapshot:JSON.stringify(h)},void 0,tV(this.HostInstance.options));return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:o,host:this.HostInstance,options:a,moduleInfo:n,remoteSnapshot:t}),{remoteSnapshot:t,globalSnapshot:r}}getGlobalRemoteInfo(e){return t3(e,this.HostInstance)}async getManifestJson(e,t,r){let n=async()=>{let r=this.manifestCache.get(e);if(r)return r;try{let t=await this.loaderHook.lifecycle.fetch.emit(e,{});(!t||!(t instanceof Response))&&(t=await fetch(e,{})),r=await t.json()}catch(n){!(r=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:n,from:"runtime",lifecycle:"afterResolve",origin:this.HostInstance}))&&(delete this.manifestLoading[e],k(tS,tk,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${n}`,tV(this.HostInstance.options)))}return I(r.metaData&&r.exposes&&r.shared,`"${e}" is not a valid federation manifest for remote "${t.name}". Missing required fields: ${[!r.metaData&&"metaData",!r.exposes&&"exposes",!r.shared&&"shared"].filter(Boolean).join(", ")}.`),this.manifestCache.set(e,r),r},o=async()=>{let r=await n(),o=t1(r,{version:e}),{remoteSnapshot:i}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:r,remoteSnapshot:o,manifestUrl:e,from:"manifest"});return i};return!this.manifestLoading[e]&&(this.manifestLoading[e]=o().then(e=>e)),this.manifestLoading[e]}constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new tX({beforeLoadRemoteSnapshot:new tK("beforeLoadRemoteSnapshot"),loadSnapshot:new tY("loadGlobalSnapshot"),loadRemoteSnapshot:new tY("loadRemoteSnapshot"),afterLoadSnapshot:new tY("afterLoadSnapshot")}),this.manifestLoading=B.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}},t5=class{registerShared(e,t){let{newShareInfos:r,allShareInfos:n}=eX(e,t);return Object.keys(r).forEach(e=>{r[e].forEach(r=>{r.scope.forEach(n=>{var o;this.hooks.lifecycle.beforeRegisterShare.emit({origin:this.host,pkgName:e,shared:r}),!(null===(o=this.shareScopeMap[n])||void 0===o?void 0:o[e])&&this.setShared({pkgName:e,lib:r.lib,get:r.get,loaded:r.loaded||!!r.lib,shared:r,from:t.name})})})}),{newShareInfos:r,allShareInfos:n}}async loadShare(e,t){let{host:r}=this,n=te({pkgName:e,extraOptions:t,shareInfos:r.options.shared});(null==n?void 0:n.scope)&&await Promise.all(n.scope.map(async e=>{await Promise.all(this.initializeSharing(e,{strategy:n.strategy}))}));let{shareInfo:o}=await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:n,shared:r.options.shared,origin:r});I(o,`Cannot find shared "${e}" in host "${r.options.name}". Ensure the shared config for "${e}" is declared in the federation plugin options and the host has been initialized before loading shares.`);let{shared:i,useTreesShaking:a}=e4(this.shareScopeMap,e,o,this.hooks.lifecycle.resolveShare)||{};if(i){let t=tr(i,a);if(t.lib)return tt(t,r.options.name),t.lib;if(t.loading&&!t.loaded){let e=await t.loading;return t.loaded=!0,!t.lib&&(t.lib=e),tt(t,r.options.name),e}else{let n=(async()=>{let e=await t.get();return tt(t,r.options.name),t.loaded=!0,t.lib=e,e})();return this.setShared({pkgName:e,loaded:!1,shared:i,from:r.options.name,lib:null,loading:n,treeShaking:a?t:void 0}),n}}{if(null==t?void 0:t.customShareInfo)return!1;let n=eQ(o.treeShaking),i=tr(o,n),a=(async()=>{let t=await i.get();i.lib=t,i.loaded=!0,tt(i,r.options.name);let{shared:n,useTreesShaking:a}=e4(this.shareScopeMap,e,o,this.hooks.lifecycle.resolveShare)||{};if(n){let e=tr(n,a);e.lib=t,e.loaded=!0,n.from=o.from}return t})();return this.setShared({pkgName:e,loaded:!1,shared:o,from:r.options.name,lib:null,loading:a,treeShaking:n?i:void 0}),a}}initializeSharing(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eZ,t=arguments.length>1?arguments[1]:void 0,{host:r}=this,n=null==t?void 0:t.from,o=null==t?void 0:t.strategy,i=null==t?void 0:t.initScope,a=[];if("build"!==n){let{initTokens:t}=this;!i&&(i=[]);let r=t[e];if(!r&&(r=t[e]={from:this.host.name}),i.indexOf(r)>=0)return a;i.push(r)}let s=this.shareScopeMap,l=r.options.name;!s[e]&&(s[e]={});let u=s[e],c=(e,t)=>{var r;let{version:n,eager:o}=t;u[e]=u[e]||{};let i=u[e],a=i[n]&&tr(i[n]),s=!!(a&&("eager"in a&&a.eager||"shareConfig"in a&&(null===(r=a.shareConfig)||void 0===r?void 0:r.eager)));(!a||"loaded-first"!==a.strategy&&!a.loaded&&(!o!=!s?o:l>i[n].from))&&(i[n]=t)},f=async e=>{let t,{module:n}=await r.remoteHandler.getRemoteModuleAndOptions({id:e});try{t=await n.getEntry()}catch(n){if(!(t=await r.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:n,from:"runtime",lifecycle:"beforeLoadShare",origin:r})))return}finally{(null==t?void 0:t.init)&&!n.initing&&(n.remoteEntryExports=t,await n.init(void 0,void 0,i))}};return Object.keys(r.options.shared).forEach(t=>{r.options.shared[t].forEach(r=>{r.scope.includes(e)&&c(t,r)})}),("version-first"===r.options.shareStrategy||"version-first"===o)&&r.options.remotes.forEach(t=>{t.shareScope===e&&a.push(f(t.name))}),a}loadShareSync(e,t){let{host:r}=this,n=te({pkgName:e,extraOptions:t,shareInfos:r.options.shared});(null==n?void 0:n.scope)&&n.scope.forEach(e=>{this.initializeSharing(e,{strategy:n.strategy})});let{shared:o,useTreesShaking:i}=e4(this.shareScopeMap,e,n,this.hooks.lifecycle.resolveShare)||{};if(o){if("function"==typeof o.lib)return tt(o,r.options.name),!o.loaded&&(o.loaded=!0,o.from===r.options.name&&(n.loaded=!0)),o.lib;if("function"==typeof o.get){let t=o.get();if(!(t instanceof Promise))return tt(o,r.options.name),this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:t,shared:o}),t}}if(n.lib)return!n.loaded&&(n.loaded=!0),n.lib;if(n.get){let o=n.get();return o instanceof Promise&&k((null==t?void 0:t.from)==="build"?tR:tA,tk,{hostName:r.options.name,sharedPkgName:e},void 0,tV(r.options)),n.lib=o,this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:n.lib,shared:n}),n.lib}k(tA,tk,{hostName:r.options.name,sharedPkgName:e},void 0,tV(r.options))}initShareScopeMap(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{host:n}=this;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:n.options,origin:n,scopeName:e,hostShareScopeMap:r.hostShareScopeMap})}setShared(e){let{pkgName:t,shared:r,from:n,lib:o,loading:i,loaded:a,get:s,treeShaking:l}=e,{version:u,scope:c="default"}=r,f=(0,G._)(r,["version","scope"]),h=Array.isArray(c)?c:[c],d=e=>{let t=(e,t,r)=>{r&&!e[t]&&(e[t]=r)},r=l?e.treeShaking:e;t(r,"loaded",a),t(r,"loading",i),t(r,"get",s)};h.forEach(e=>{!this.shareScopeMap[e]&&(this.shareScopeMap[e]={}),!this.shareScopeMap[e][t]&&(this.shareScopeMap[e][t]={}),!this.shareScopeMap[e][t][u]&&(this.shareScopeMap[e][t][u]=(0,eJ._)((0,U._)({version:u,scope:[e]},f),{lib:o}));let r=this.shareScopeMap[e][t][u];d(r),n&&r.from!==n&&(r.from=n)})}_setGlobalShareScopeMap(e){let t=e8(),r=e.id||e.name;r&&!t[r]&&(t[r]=this.shareScopeMap)}constructor(e){this.hooks=new tX({beforeRegisterShare:new tZ("beforeRegisterShare"),afterResolve:new tY("afterResolve"),beforeLoadShare:new tY("beforeLoadShare"),loadShare:new tK,resolveShare:new tZ("resolveShare"),initContainerShareScopeMap:new tZ("initContainerShareScopeMap")}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}},t7=class{formatAndRegisterRemote(e,t){return(t.remotes||[]).reduce((e,t)=>(this.registerRemote(t,e,{force:!1}),e),e.remotes)}setIdToRemoteMap(e,t){let{remote:r,expose:n}=t,{name:o,alias:i}=r;if(this.idToRemoteMap[e]={name:r.name,expose:n},i&&e.startsWith(o)){let t=e.replace(o,i);this.idToRemoteMap[t]={name:r.name,expose:n};return}if(i&&e.startsWith(i)){let t=e.replace(i,o);this.idToRemoteMap[t]={name:r.name,expose:n}}}async loadRemote(e,t){let{host:r}=this;try{let{loadFactory:n=!0}=t||{loadFactory:!0},{module:o,moduleOptions:i,remoteMatchInfo:a}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:s,remote:l,expose:u,id:c,remoteSnapshot:f}=a,h=await o.get(c,u,t,f),d=await this.hooks.lifecycle.onLoad.emit({id:c,pkgNameOrAlias:s,expose:u,exposeModule:n?h:void 0,exposeModuleFactory:n?void 0:h,remote:l,options:i,moduleInstance:o,origin:r});if(this.setIdToRemoteMap(e,a),"function"==typeof d)return d;return h}catch(i){let{from:n="runtime"}=t||{from:"runtime"},o=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:i,from:n,lifecycle:"onLoad",origin:r});if(!o)throw i;return o}}async preloadRemote(e){var t;let{host:r}=this;await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:r.options,origin:r});let n=(t=r.options.remotes,e.map(e=>{let r=function(e,t){for(let r of e)if(t===r.name||r.alias&&t===r.alias)return r}(t,e.nameOrAlias);return I(r,`Unable to preload ${e.nameOrAlias} as it is not included in ${!r&&ts({remoteInfo:r,remotes:t})}`),{remote:r,preloadConfig:tG(e)}}));await Promise.all(n.map(async e=>{let{remote:t}=e,n=tU(t),{globalSnapshot:o,remoteSnapshot:i}=await r.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t}),a=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:r,preloadOptions:e,remote:t,remoteInfo:n,globalSnapshot:o,remoteSnapshot:i});a&&tW(n,r,a)}))}registerRemotes(e,t){let{host:r}=this;e.forEach(e=>{this.registerRemote(e,r.options.remotes,{force:null==t?void 0:t.force})})}async getRemoteModuleAndOptions(e){let t;let{host:r}=this,{id:n}=e;try{t=await this.hooks.lifecycle.beforeRequest.emit({id:n,options:r.options,origin:r})}catch(e){if(!(t=await this.hooks.lifecycle.errorLoadRemote.emit({id:n,options:r.options,origin:r,from:"runtime",error:e,lifecycle:"beforeRequest"})))throw e}let{id:o}=t,i=tn(r.options.remotes,o);!i&&k(tO,tk,{hostName:r.options.name,requestId:o},void 0,tV(r.options));let{remote:a}=i,s=tU(a),l=await r.sharedHandler.hooks.lifecycle.afterResolve.emit((0,eJ._)((0,U._)({id:o},i),{options:r.options,origin:r,remoteInfo:s})),{remote:u,expose:c}=l;I(u&&c,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${o}.`);let f=r.moduleCache.get(u.name),h={host:r,remoteInfo:s};return!f&&(f=new tq(h),r.moduleCache.set(u.name,f)),{module:f,moduleOptions:h,remoteMatchInfo:l}}registerRemote(e,t,r){let{host:n}=this,o=()=>{if(e.alias){let r=t.find(t=>{var r;return e.alias&&(t.name.startsWith(e.alias)||(null===(r=t.alias)||void 0===r?void 0:r.startsWith(e.alias)))});I(!r,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${r&&r.name} name or alias`)}"entry"in e&&g&&"undefined"!=typeof window&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),!e.shareScope&&(e.shareScope=eZ),!e.type&&(e.type=eY)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:n});let i=t.find(t=>t.name===e.name);if(i){let a=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];(null==r?void 0:r.force)&&(this.removeRemote(i),o(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n}),ta(a.join(" ")))}else o(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n})}removeRemote(e){try{let{host:r}=this,{name:n}=e,o=r.options.remotes.findIndex(e=>e.name===n);-1!==o&&r.options.remotes.splice(o,1);let i=r.moduleCache.get(e.name);if(i){var t;let n=i.remoteInfo,o=n.entryGlobalName;W[o]&&((null===(t=Object.getOwnPropertyDescriptor(W,o))||void 0===t?void 0:t.configurable)?delete W[o]:W[o]=void 0);let a=tx(i.remoteInfo);z[a]&&delete z[a],r.snapshotHandler.manifestCache.delete(n.entry);let s=n.buildVersion?to(n.name,n.buildVersion):n.name,l=W.__FEDERATION__.__INSTANCES__.findIndex(e=>n.buildVersion?e.options.id===s:e.name===s);if(-1!==l){let e=W.__FEDERATION__.__INSTANCES__[l];s=e.options.id||s;let t=e8(),r=!0,o=[];Object.keys(t).forEach(e=>{let i=t[e];i&&Object.keys(i).forEach(t=>{let a=i[t];a&&Object.keys(a).forEach(i=>{let s=a[i];s&&Object.keys(s).forEach(a=>{let l=s[a];l&&"object"==typeof l&&l.from===n.name&&(l.loaded||l.loading?(l.useIn=l.useIn.filter(e=>e!==n.name),l.useIn.length?r=!1:o.push([e,t,i,a])):o.push([e,t,i,a]))})})})}),r&&(e.shareScopeMap={},delete t[s]),o.forEach(e=>{var r,n,o;let[i,a,s,l]=e;null===(o=t[i])||void 0===o||null===(n=o[a])||void 0===n||null===(r=n[s])||void 0===r||delete r[l]}),W.__FEDERATION__.__INSTANCES__.splice(l,1)}let{hostGlobalSnapshot:u}=t3(e,r);if(u){let t=u&&"remotesInfo"in u&&u.remotesInfo&&X(u.remotesInfo,e.name).key;t&&(delete u.remotesInfo[t],B.__FEDERATION__.__MANIFEST_LOADING__[t]&&delete B.__FEDERATION__.__MANIFEST_LOADING__[t])}r.moduleCache.delete(e.name)}}catch(e){$.error(`removeRemote failed: ${e instanceof Error?e.message:String(e)}`)}}constructor(e){this.hooks=new tX({beforeRegisterRemote:new tZ("beforeRegisterRemote"),registerRemote:new tZ("registerRemote"),beforeRequest:new tY("beforeRequest"),onLoad:new tK("onLoad"),handlePreloadModule:new tz("handlePreloadModule"),errorLoadRemote:new tK("errorLoadRemote"),beforePreloadRemote:new tK("beforePreloadRemote"),generatePreloadAssets:new tK("generatePreloadAssets"),afterPreloadRemote:new tK,loadEntry:new tK}),this.host=e,this.idToRemoteMap={}}};let t4="boolean"!=typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN||!FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN;var t8=class{initOptions(e){e.name&&e.name!==this.options.name&&k(N(t$,tk)),this.registerPlugins(e.plugins);let t=this.formatOptions(this.options,e);return this.options=t,t}async loadShare(e,t){return this.sharedHandler.loadShare(e,t)}loadShareSync(e,t){return this.sharedHandler.loadShareSync(e,t)}initializeSharing(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eZ,t=arguments.length>1?arguments[1]:void 0;return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,r){let n=new tq({host:this,remoteInfo:tU({name:e,entry:t})});return n.remoteEntryExports=r,this.moduleCache.set(e,n),n}async loadRemote(e,t){return this.remoteHandler.loadRemote(e,t)}async preloadRemote(e){return this.remoteHandler.preloadRemote(e)}initShareScopeMap(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.sharedHandler.initShareScopeMap(e,t,r)}formatOptions(e,t){let{allShareInfos:r}=eX(e,t),{userOptions:n,options:o}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:r}),i=this.remoteHandler.formatAndRegisterRemote(o,n),{allShareInfos:a}=this.sharedHandler.registerShared(o,n),s=[...o.plugins];n.plugins&&n.plugins.forEach(e=>{!s.includes(e)&&s.push(e)});let l=(0,eJ._)((0,U._)({},e,t),{plugins:s,remotes:i,shared:a});return this.hooks.lifecycle.init.emit({origin:this,options:l}),l}registerPlugins(e){let t=function(e,t){let r=ei(),n=[t.hooks,t.remoteHandler.hooks,t.sharedHandler.hooks,t.snapshotHandler.hooks,t.loaderHook,t.bridgeHook];return r.length>0&&r.forEach(t=>{(null==e?void 0:e.find(e=>e.name!==t.name))&&e.push(t)}),e&&e.length>0&&e.forEach(e=>{n.forEach(r=>{r.applyPlugin(e,t)})}),e}(e,this);this.options.plugins=this.options.plugins.reduce((e,t)=>t?(e&&!e.find(e=>e.name===t.name)&&e.push(t),e):e,t||[])}registerRemotes(e,t){return this.remoteHandler.registerRemotes(e,t)}registerShared(e){this.sharedHandler.registerShared(this.options,(0,eJ._)((0,U._)({},this.options),{shared:e}))}constructor(e){this.hooks=new tX({beforeInit:new tZ("beforeInit"),init:new tz,beforeInitContainer:new tY("beforeInitContainer"),initContainer:new tY("initContainer")}),this.version="2.3.1",this.moduleCache=new Map,this.loaderHook=new tX({getModuleInfo:new tz,createScript:new tz,createLink:new tz,fetch:new tK,loadEntryError:new tK,getModuleFactory:new tK}),this.bridgeHook=new tX({beforeBridgeRender:new tz,afterBridgeRender:new tz,beforeBridgeDestroy:new tz,afterBridgeDestroy:new tz});let t=t4?[{name:"snapshot-plugin",async afterResolve(e){let{remote:t,pkgNameOrAlias:r,expose:n,origin:o,remoteInfo:i,id:a}=e;if(!L(t)||!M(t)){let{remoteSnapshot:s,globalSnapshot:l}=await o.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:a});tQ(i,s);let u=await o.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:o,preloadOptions:{remote:t,preloadConfig:{nameOrAlias:r,exposes:[n],resourceCategory:"sync",share:!1,depsRemote:!1}},remoteInfo:i,remote:t,remoteSnapshot:s,globalSnapshot:l});return u&&tW(i,o,u,!1),(0,eJ._)((0,U._)({},e),{remoteSnapshot:s})}return e}},{name:"generate-preload-assets-plugin",async generatePreloadAssets(e){let{origin:t,preloadOptions:r,remoteInfo:n,remote:o,globalSnapshot:i,remoteSnapshot:a}=e;return g?L(o)&&M(o)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:o.name,url:o.entry,moduleInfo:{name:n.name,entry:o.entry,type:n.type||"global",entryGlobalName:"",shareScope:""}}]}:(tQ(n,a),function(e,t,r,n,o){let i=[],a=[],s=[],l=new Set,u=new Set,{options:c}=e,{preloadConfig:f}=t,{depsRemote:h}=f;if(!function e(t,r,n,o){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5?arguments[5]:void 0,{value:s}=X(t,D(r)),l=a||s;if(l&&!t2(l)&&(n(l,r,o),l.remotesInfo))for(let r of Object.keys(l.remotesInfo)){if(i[r])continue;i[r]=!0;let o=function(e){let t=e.split(":");return 1===t.length?{name:t[0],version:void 0}:2===t.length?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}}(r),a=l.remotesInfo[r];e(t,{name:o.name,version:a.matchedVersion},n,!1,i,void 0)}}(n,r,(t,r,n)=>{var o,l;let u;if(n)u=f;else if(Array.isArray(h)){let e=h.find(e=>e.nameOrAlias===r.name||e.nameOrAlias===r.alias||!1);if(!e)return;u=tG(e)}else{if(!0!==h)return;u=f}let c=ti(t,x(t).url);c&&s.push({name:r.name,moduleInfo:{name:r.name,entry:c,type:"remoteEntryType"in t?t.remoteEntryType:"global",entryGlobalName:"globalName"in t?t.globalName:r.name,shareScope:"",version:"version"in t?t.version:void 0},url:c});let d="modules"in t?t.modules:[];let m=(l=u.exposes)?l.map(e=>"."===e?e:e.startsWith("./")?e.replace("./",""):e):[];function p(e){let r=e.map(e=>ti(t,e));return u.filter?r.filter(u.filter):r}if(m.length&&"modules"in t&&(d=null==t?void 0:null===(o=t.modules)||void 0===o?void 0:o.reduce((e,t)=>((null==m?void 0:m.indexOf(t.moduleName))!==-1&&e.push(t),e),[])),d){let n=d.length;for(let o=0;o<n;o++){let n=d[o],s=`${r.name}/${n.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:"."===n.moduleName?r.name:s,name:r.name,remoteSnapshot:t,preloadConfig:u,remote:r,origin:e}),!ea(s)&&("all"===u.resourceCategory?(i.push(...p(n.assets.css.async)),i.push(...p(n.assets.css.sync)),a.push(...p(n.assets.js.async)),a.push(...p(n.assets.js.sync))):"sync"===u.resourceCategory&&(i.push(...p(n.assets.css.sync)),a.push(...p(n.assets.js.sync))),es(s))}}},!0,{},o),o.shared&&o.shared.length>0){let t=(t,r)=>{let{shared:n}=e4(e.shareScopeMap,r.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare)||{};n&&"function"==typeof n.lib&&(r.assets.js.sync.forEach(e=>{l.add(e)}),r.assets.css.sync.forEach(e=>{u.add(e)}))};o.shared.forEach(e=>{var r;let n=null===(r=c.shared)||void 0===r?void 0:r[e.sharedName];if(!n)return;let o=e.version?n.find(t=>t.version===e.version):n;o&&C(o).forEach(r=>{t(r,e)})})}let d=a.filter(e=>!l.has(e)&&!t6("script",e));return{cssAssets:i.filter(e=>!u.has(e)&&!t6("link",e)),jsAssetsWithoutEntry:d,entryAssets:s.filter(e=>!t6("script",e.url))}}(t,r,n,i,a)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}]:[],r={id:"undefined"!=typeof FEDERATION_BUILD_IDENTIFIER?FEDERATION_BUILD_IDENTIFIER:"",name:e.name,plugins:t,remotes:[],shared:{},inBrowser:g};this.name=e.name,this.options=r,this.snapshotHandler=new t9(this),this.sharedHandler=new t5(this),this.remoteHandler=new t7(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...r.plugins,...e.plugins||[]]),this.options=this.formatOptions(r,e)}};let re={Global:B,nativeGlobal:B,resetFederationGlobalInfo:function(){W.__FEDERATION__.__GLOBAL_PLUGIN__=[],W.__FEDERATION__.__INSTANCES__=[],W.__FEDERATION__.moduleInfo={},W.__FEDERATION__.__SHARE__={},W.__FEDERATION__.__MANIFEST_LOADING__={},Object.keys(z).forEach(e=>{delete z[e]})},setGlobalFederationInstance:J,getGlobalFederationConstructor:Z,setGlobalFederationConstructor:Y,getInfoWithoutType:X,getGlobalSnapshot:Q,getTargetSnapshotInfoByModuleInfo:ee,getGlobalSnapshotInfoByModuleInfo:et,setGlobalSnapshotInfoByModuleInfo:er,addGlobalSnapshot:en,getRemoteEntryExports:eo,registerGlobalPlugins:e=>{let{__GLOBAL_PLUGIN__:t}=B.__FEDERATION__;e.forEach(e=>{-1===t.findIndex(t=>t.name===e.name)?t.push(e):P(`The plugin ${e.name} has been registered.`)})},getGlobalHostPlugins:ei,getPreloaded:ea,setPreloaded:es},rt={getRegisteredShare:e4,getGlobalShareScope:e8},rr={matchRemoteWithNameAndExpose:tn,preloadAssets:tW,getRemoteInfo:tU};function rn(e,t){let r="undefined"!=typeof FEDERATION_BUILD_IDENTIFIER?FEDERATION_BUILD_IDENTIFIER:"";return W.__FEDERATION__.__INSTANCES__.find(n=>!!r&&n.options.id===r||n.options.name===e&&!n.options.version&&!t||n.options.name===e&&!!t&&n.options.version===t||!1)}let ro=null;Y(t8);let ri={...re,getGlobalFederationInstance:rn},ra={global:ri,share:rt};r(777296),new O("[ Vmok Plugin ]");let rs=e=>e.startsWith("bnpm")||e.startsWith("app")?e.replace("bnpm:","").replace("app:",""):e,rl=e=>{let t=Object.keys(e),r={};for(let n of t)r[rs(n)]=e[n];return r},ru=e=>{let t=Object.keys(e),r={};for(let n of t){let t=e[n];t&&"remotesInfo"in t&&t.remotesInfo&&(t.remotesInfo=rl(t.remotesInfo)),r[rs(n)]=t}return r};var rc=Object.defineProperty,rf=Object.defineProperties,rh=Object.getOwnPropertyDescriptors,rd=Object.getOwnPropertySymbols,rm=Object.prototype.hasOwnProperty,rp=Object.prototype.propertyIsEnumerable,ry=(e,t,r)=>t in e?rc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rg=(e,t)=>{for(var r in t||(t={}))rm.call(t,r)&&ry(e,r,t[r]);if(rd)for(var r of rd(t))rp.call(t,r)&&ry(e,r,t[r]);return e},r_=(e,t)=>rf(e,rh(t)),rE=(e,t,r)=>new Promise((n,o)=>{var i=e=>{try{s(r.next(e))}catch(e){o(e)}},a=e=>{try{s(r.throw(e))}catch(e){o(e)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,a);s((r=r.apply(e,t)).next())});(u=d||(d={})).CN="cn",u.SG="sg",u.VA="va",u.GCP="gcp",u.OCI="oci",u.EU="eu",(c=m||(m={})).BNPM="bnpm",c.APP="app",m.APP,m.BNPM,(f=p||(p={})).EXTRANET="EXTRANET",f.INTRANET="INTRANET";let rb="__CDN_PREFIX__",rv=(e,t,r,n)=>{let o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),n&&o.push(`Original Error Message:
${n}`),o.push(`Search error code(#${e}) in vmok docs for more details.`),o.join("\n")},rw="VMOK-RUNTIME-001",rS={[rw]:"Failed to replace publicPath prefix with region."};Object.assign(Object.assign({},{"VMOK-BUILD-001":"Invalid publicPath.","VMOK-BUILD-002":"Unexpected build environment.","VMOK-BUILD-003":'Please set output.publicPath by manual if you are the region is "tiktok".'}),rS);Object.prototype.toString;var rO=ra.global.getInfoWithoutType;function rR(e,t){if("getPublicPath"in e){let r=Function(e.getPublicPath)();return`${r}${t}`}return"publicPath"in e?`${e.publicPath}${t}`:""}var rA="default",rN="__GARFISH_INSULATION_VARIABLE__",rT=["__FEDERATION__","__VMOK__","__GLOBAL_LOADING_REMOTE_ENTRY__"];function r$(e){return[...new Set(e)]}var rI={"compat-legacy-host":()=>({name:"compat-legacy-host-plugin",version:"1.22.1",initContainerShareScopeMap(e){let{origin:t,shareScope:r}=e;if(function(e){let t="version"in e&&"object"!=typeof e.version,r="region"in e;return!!t&&!r&&1===Object.keys(e).length||!!t&&!!r&&2===Object.keys(e).length||!t&&!r&&!!Object.keys(e).length||!1}(r)){let e=ra.global.nativeGlobal.__FEDERATION__.__SHARE__[rA];e&&(t.shareScopeMap[rA]=e)}return e}}),"compat-legacy-provider-container":()=>({name:"compat-legacy-provider-container-plugin",version:"1.22.1",beforeInitContainer(e){let{shareScope:t,remoteEntryInitOptions:r,origin:n}=e,{region:o}=n.options;return t.region=o,t.version=r.version,r.region=o,e},initContainer(e){let{origin:t}=e,{nativeGlobal:r}=ra.global;return t.shareScopeMap&&t.shareScopeMap.default&&(r.__VMOK__.__SHARE__.default=rg(rg({},t.shareScopeMap.default),r.__VMOK__.__SHARE__.default)),e}}),"correct-remotes-init-options":()=>({name:"correct-remotes-init-options",version:"1.22.1",beforeInit(e){if(!e.userOptions.remotes)return e;let t=(e,t)=>{delete e.entry,e.version=t};return e.userOptions.remotes.forEach(e=>{"entry"in e&&("undefined"===e.entry?t(e,"*"):!e.entry.includes(n)&&!e.entry.includes(".js")&&t(e,e.entry))}),e}}),"generate-manifest-from-manifest":()=>({name:"generate-manifest-from-manifest-plugin",version:"1.22.1",loadRemoteSnapshot(e){let{manifestJson:t,manifestUrl:r,options:n}=e;if(!t||!r)return e;let o=function(e,t={}){var r;let n;let{region:o=d.CN}=t,i="object"==typeof o?o.region:o,a=(r,n)=>{if(!n||!r)return n;let o=r[i]?n.replace(rb,r[i]):n;if(o.includes(rb)&&e.exposes.length)throw Error(rv(rw,rS,{publicPath:n,region:i,userRegion:t.region||"default region",expectRegions:Object.keys(r).join(",")}));return o},s=()=>"publicPath"in e.metaData?a(e.metaData.region,e.metaData.publicPath):e.metaData.getPublicPath;e.remotes&&e.remotes.forEach(e=>{e.federationContainerName=e.garfishModuleName});let l=t1(e,t);return n=Object.assign(Object.assign({},n="publicPath"in e.metaData?Object.assign(Object.assign({},l),{publicPath:s(),ssrPublicPath:a(e.metaData.region,e.metaData.ssrPublicPath)}):Object.assign(Object.assign({},l),{getPublicPath:s()})),{netType:null===(r=e.metaData)||void 0===r?void 0:r.netType})}(t,{region:n.region,version:r});return r_(rg({},e),{remoteSnapshot:o})}}),"generate-preload-assets":()=>({name:"generate-preload-assets-plugin",version:"1.22.1",generatePreloadAssets(e){return rE(this,null,function*(){let{origin:t,preloadOptions:r,remote:n,remoteSnapshot:o,globalSnapshot:i}=e;return function(e,t,r,n,o){let i=[],a=[],s=[],l=new Set,u=new Set,{options:c}=e,{preloadConfig:f}=t,{depsRemote:h}=f;if(!function e(t,r,n,o,i={},a){var s;let{value:l}=rO(t,"version"in(s=r)&&s.version?`${s.name}:${s.version}`:"entry"in s&&s.entry?`${s.name}:${s.entry}`:`${s.name}`),u=a||l;if(u&&!t2(u)&&(n(u,r,o),u.remotesInfo))for(let r of Object.keys(u.remotesInfo)){if(i[r])continue;i[r]=!0;let o=function(e){let t=e.split(":");if(1===t.length)return{name:t[0],version:void 0};if(2===t.length)return"bnpm"===t[0]||"app"===t[0]?{name:t[1],version:void 0}:{name:t[0],version:t[1]};return{name:t[1],version:t[2]}}(r),a=u.remotesInfo[r];e(t,{name:o.name,version:a.matchedVersion},n,!1,i,void 0)}}(n,r,(e,t,r)=>{var n,o;let l;if(r)l=f;else if(Array.isArray(h)){let e=h.find(e=>{if(e.nameOrAlias===t.name||e.nameOrAlias===t.alias)return!0});if(!e)return;l=rg({resourceCategory:"sync",share:!0,depsRemote:!0},e)}else{if(!0!==h)return;l=f}let u=rR(e,"remoteEntry"in e?e.remoteEntry:"");u&&s.push({name:t.name,moduleInfo:{name:t.name,entry:u,type:"remoteEntryType"in e?e.remoteEntryType:"global",entryGlobalName:"globalName"in e?e.globalName:t.name,shareScope:"",version:"version"in e?e.version:void 0},url:u});let c="modules"in e?e.modules:[];let d=(o=l.exposes)?o.map(e=>"."===e?e:e.startsWith("./")?e.replace("./",""):e):[];function m(t){let r=t.map(t=>rR(e,t));return l.filter?r.filter(l.filter):r}if(d.length&&"modules"in e&&(c=null==(n=null==e?void 0:e.modules)?void 0:n.reduce((e,t)=>((null==d?void 0:d.indexOf(t.moduleName))!==-1&&e.push(t),e),[])),c){let e=c.length;for(let r=0;r<e;r++){let e=c[r],n=`${t.name}/${e.moduleName}`;if(!ra.global.getPreloaded(n))"all"===l.resourceCategory?(i.push(...m(e.assets.css.async)),i.push(...m(e.assets.css.sync)),a.push(...m(e.assets.js.async)),a.push(...m(e.assets.js.sync))):"sync"===l.resourceCategory&&(i.push(...m(e.assets.css.sync)),a.push(...m(e.assets.js.sync))),ra.global.setPreloaded(n)}}},!0,{},o),o.shared){let t=(t,r)=>{let{shared:n}=ra.share.getRegisteredShare(e.shareScopeMap,r.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare)||{};n&&"function"==typeof n.shared.lib&&(r.assets.js.sync.forEach(e=>{l.add(e)}),r.assets.css.sync.forEach(e=>{u.add(e)}))};o.shared.forEach(e=>{var r;let n=null==(r=c.shared)?void 0:r[e.sharedName];if(!n)return;let o=e.version?n.find(t=>t.version===e.version):n;if(!!o)(Array.isArray(o)?o:[o]).forEach(r=>{t(r,e)})})}let d=a.filter(e=>!l.has(e));return{cssAssets:i.filter(e=>!u.has(e)),jsAssetsWithoutEntry:d,entryAssets:s}}(t,r,n,i,o)})}}),"server-snapshot-prod":function(){return{name:"server-snapshot-prod",version:"1.22.1",beforeInit:e=>(!function(){if(g){let e=[...document.querySelectorAll("script")].filter(e=>"garfishModuleInfo"===e.id),t={};null==e||e.forEach(e=>{let r=JSON.parse(e.innerHTML);!e.hasAttribute("data-merged")&&(t=rg(rg({},t),r),e.setAttribute("data-merged","true"))}),!function(e,t){let{nativeGlobal:r}=ra.global;if(!r.__INIT_VMOK_DEPLOY_GLOBAL_DATA__||!r.noOverride&&t){let t=ru(e);try{ra.global.addGlobalSnapshot(t),r.__INIT_VMOK_DEPLOY_GLOBAL_DATA__=!0}catch(e){}}}(t,!0)}}(),e)}},"garfish-plugin":()=>({name:"garfish-plugin",version:"1.22.1",beforeInit(e){if("undefined"!=typeof window){let e=r$([...globalThis[rN]||[],...rT]);globalThis.__GARFISH_INSULATION_VARIABLE__=e}return e},loadRemoteSnapshot(e){return rE(this,null,function*(){if("undefined"!=typeof window){let t=to(e.moduleInfo.name,e.remoteSnapshot.buildVersion),r=r$([...globalThis[rN]||[],t]);globalThis.__GARFISH_INSULATION_VARIABLE__=r}return e})}}),"share-strategy":()=>({name:"share-strategy-plugin",version:"1.22.1",beforeInit:e=>(!e.userOptions.shareStrategy&&(e.userOptions.shareStrategy="loaded-first"),e)}),"inject-dynamic-modules":function(){return{name:"inject-dynamic-modules",version:"1.22.1",beforeInit(e){let{options:t}=e,r=ra.global.getGlobalSnapshot();if(r&&Object.keys(r).length>0){let e=function(e){let t=[];return e.forEach(e=>{(null==e?void 0:e.entry)?t.push(Object.assign(Object.assign({name:e.name,entry:e.entry},e.alias&&{alias:e.alias}),{moduleSource:e.moduleSource})):t.push(Object.assign(Object.assign({name:e.name,version:e.version},e.alias&&{alias:e.alias}),{moduleSource:e.moduleSource}))}),t}(function(e,t){let r=new Set(t.map(e=>e.name));return e.filter(e=>!r.has(e.name))}(function(e,t,r){let n=ra.global.getGlobalSnapshot(),o=n[t?`${e}:${t}`:e]||n[e];if(!o)return[];let i=[];return o&&"remotesInfo"in o&&o.remotesInfo&&Object.keys(o.remotesInfo).length>0&&Object.keys(o.remotesInfo).forEach(e=>{let t=o.remotesInfo[e],r=e.replace(/^(app|bnpm):/,"");if("dynamic-module"===t.moduleSource){let e=Object.assign(Object.assign(Object.assign(Object.assign({},t),{name:r,version:t.matchedVersion}),t.alias&&{alias:t.alias}),{extra:Object.assign(Object.assign({name:t.name||""},t.route&&{path:t.route}),{version:o.buildVersion||""})});"entry"===t.consumeMode?i.push(Object.assign(Object.assign({},e),{entry:t.matchedVersion})):i.push(e)}}),i}(t.name,t.version),t.remotes));t.remotes=t.remotes.concat(e)}return e}}}},rk=e=>{if(!b()){!e.plugins&&(e.plugins=[]);let t=ra.global.getGlobalFederationInstance(e.name,e.version);Object.values(rI).forEach(r=>{var n;!(null==t?void 0:t.options.plugins.find(e=>e.name===r().name))&&(null==(n=e.plugins)||n.push(r()))})}return function(e){let t=rn(e.name,e.version);return t?(t.initOptions(e),!ro&&(ro=t),t):ro=function(e){let t=new(Z()||t8)(e);return J(t),t}(e)}(e)};!function(e,t=b()){t&&(globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="1.22.1")}(class extends t8{constructor(e){var t;let r=Object.values(rI).map(e=>r_(rg({},e()),{version:"debug"})),n=r.map(e=>e.name),o=(null==(t=e.plugins)?void 0:t.filter(e=>-1===n.indexOf(e.name)))||[];e.plugins=[...o,...r],super(e)}})},611949:function(e,t,r){r.d(t,{l:function(){return tB}});var n,o,i,a,s,l,u,c,f,h,d,m,p,y,g,_,E,b,v,w,S,O,R,A,N,T,$,I,k,P,D,L,M,F,j,C,x,H,U,G,W,B,V,q,z,K,J,Z,Y,X=r("629686"),Q=r("402748"),ee=r("811603");r("374954"),r("76375"),r("683656"),r("759943"),r("490629"),r("302356"),r("362051"),r("117232"),r("228983"),r("313036"),r("679308"),r("656562"),r("992871"),r("706056"),r("968336"),r("591964"),r("190932"),r("808483"),r("126159"),r("100832"),r("825666"),r("943281"),r("82726"),r("834923"),r("559352"),r("932651"),r("374285"),r("566071"),r("414931"),r("14275"),r("559561");var et=r(777296);let er="undefined"!=typeof ENV_TARGET?"web"===ENV_TARGET:"undefined"!=typeof window&&void 0!==window.document;function en(){return void 0!==et&&et.env&&et.env.FEDERATION_DEBUG?!!et.env.FEDERATION_DEBUG:!!("undefined"!=typeof FEDERATION_DEBUG&&FEDERATION_DEBUG)||function(){try{if(er&&window.localStorage)return!!localStorage.getItem("FEDERATION_DEBUG")}catch(e){}return!1}()}let eo=console,ei=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];var ea=class{setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=null!=e?e:eo}emit(e,t){let r=this.delegate,n=en()?function(){try{let e=Error().stack;if(!e)return;let[,...t]=e.split("\n"),r=t.filter(e=>!ei.some(t=>e.includes(t)));if(!r.length)return;return`Stack trace:
${r.slice(0,5).join("\n")}`}catch(e){return}}():void 0,o=n?[...t,n]:t,i=(()=>{switch(e){case"log":return["log","info"];case"info":return["info","log"];case"warn":return["warn","info","log"];case"error":return["error","warn","log"];default:return["debug","log"]}})();for(let e of i){let t=r[e];if("function"==typeof t){t.call(r,this.prefix,...o);return}}for(let e of i){let t=eo[e];if("function"==typeof t){t.call(eo,this.prefix,...o);return}}}log(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("log",t)}warn(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("warn",t)}error(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("error",t)}success(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("info",t)}info(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("info",t)}ready(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("info",t)}debug(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];en()&&this.emit("debug",t)}constructor(e,t=eo){this.prefix=e,this.delegate=null!=t?t:eo}};!function(e){let t=new ea(e);Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1})}("[ Module Federation ]");var es=r(777296),el=Object.defineProperty,eu=e=>{throw TypeError(e)},ec=(e,t,r)=>t in e?el(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ef=(e,t,r)=>ec(e,"symbol"!=typeof t?t+"":t,r),eh=(e,t,r)=>t.has(e)||eu("Cannot "+r),ed=(e,t,r)=>(eh(e,t,"read from private field"),r?r.call(e):t.get(e)),em=(e,t,r)=>t.has(e)?eu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ep=(e,t,r,n)=>(eh(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ey=(e,t,r)=>(eh(e,t,"access private method"),r),eg=(e,t,r,n)=>({set _(value){ep(e,t,value,r)},get _(){return ed(e,t,n)}});let e_=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length?t.reduce((e,t)=>t?e?`${e}:${t}`:t:e,""):""},eE=e=>{},eb="_mfSSRDowngrade",ev="_mfDataFetch",ew="_mfFSHref",eS={DATA_FETCH:1,LOAD_REMOTE:2,UNKNOWN:3},eO="wrap_dfip_identifier";var eR=((n=eR||{})[n.FETCH_SERVER=1]="FETCH_SERVER",n[n.FETCH_CLIENT=2]="FETCH_CLIENT",n);var eA=((o=eA||{})[o.LOADED=1]="LOADED",o[o.LOADING=2]="LOADING",o[o.AWAIT=0]="AWAIT",o[o.ERROR=3]="ERROR",o);let eN="data",eT=".client",e$="caught the following error during dataFetch: ",eI="caught the following error during loadRemote: ",ek=new ea("[ Module Federation React ]"),eP="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,eD=new Set,eL="object"==typeof es&&es?es:{},eM=(e,t,r,n)=>{"function"==typeof eL.emitWarning&&eL.emitWarning(e,t,r,n)},eF=globalThis.AbortController,ej=globalThis.AbortSignal;if(void 0===eF){ej=class{addEventListener(e,t){this._onabort.push(t)}constructor(){ef(this,"onabort"),ef(this,"_onabort",[]),ef(this,"reason"),ef(this,"aborted",!1)}},eF=class{abort(e){var t,r;if(!this.signal.aborted){for(let t of(this.signal.reason=e,this.signal.aborted=!0,this.signal._onabort))t(e);null==(r=(t=this.signal).onabort)||r.call(t,e)}}constructor(){ef(this,"signal",new ej),t()}};let e=(null==(i=eL.env)?void 0:i.LRU_CACHE_IGNORE_AC_WARNING)!=="1",t=()=>{e&&(e=!1,eM("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}let eC=e=>!eD.has(e),ex=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),eH=e=>ex(e)?e<=256?Uint8Array:e<=65536?Uint16Array:e<=4294967296?Uint32Array:e<=Number.MAX_SAFE_INTEGER?eU:null:null;class eU extends Array{constructor(e){super(e),this.fill(0)}}let eG=class e{static create(t){let r=eH(t);if(!r)return[];ep(e,a,!0);let n=new e(t,r);return ep(e,a,!1),n}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}constructor(t,r){if(ef(this,"heap"),ef(this,"length"),!ed(e,a))throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0}};em(eG,a=new WeakMap,!1);l=Symbol.iterator,s=Symbol.toStringTag,u=new WeakMap,c=new WeakMap,f=new WeakMap,h=new WeakMap,d=new WeakMap,m=new WeakMap,p=new WeakMap,y=new WeakMap,g=new WeakMap,_=new WeakMap,E=new WeakMap,b=new WeakMap,v=new WeakMap,w=new WeakMap,S=new WeakMap,O=new WeakMap,R=new WeakMap,A=new WeakMap,N=new WeakMap,T=new WeakMap,$=new WeakMap,I=new WeakMap,k=new WeakMap,P=new WeakSet,D=function(){var e=this;let t=new eU(ed(this,u)),r=new eU(ed(this,u));ep(this,T,t),ep(this,N,r),ep(this,F,function(n,o){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eP.now();if(r[n]=0!==o?i:0,t[n]=o,0!==o&&e.ttlAutopurge){let t=setTimeout(()=>{ed(e,j).call(e,n)&&ey(e,P,Z).call(e,ed(e,_)[n],"expire")},o+1);t.unref&&t.unref()}}),ep(this,L,e=>{r[e]=0!==t[e]?eP.now():0}),ep(this,M,(e,i)=>{if(t[i]){let a=t[i],s=r[i];if(!a||!s)return;e.ttl=a,e.start=s,e.now=n||o();let l=e.now-s;e.remainingTTL=a-l}});let n=0,o=()=>{let e=eP.now();if(this.ttlResolution>0){n=e;let t=setTimeout(()=>n=0,this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=e=>{let i=ed(this,g).get(e);if(void 0===i)return 0;let a=t[i],s=r[i];return a&&s?a-((n||o())-s):1/0},ep(this,j,e=>{let i=r[e],a=t[e];return!!a&&!!i&&(n||o())-i>a})},L=new WeakMap,M=new WeakMap,F=new WeakMap,j=new WeakMap,C=function(){let e=new eU(ed(this,u));ep(this,y,0),ep(this,A,e),ep(this,x,t=>{ep(this,y,ed(this,y)-e[t]),e[t]=0}),ep(this,U,(e,t,r,n)=>{if(ey(this,P,z).call(this,t))return 0;if(!ex(r)){if(n){if("function"!=typeof n)throw TypeError("sizeCalculation must be a function");if(!ex(r=n(t,e)))throw TypeError("sizeCalculation return invalid (expect positive integer)")}else throw TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.")}return r}),ep(this,H,(t,r,n)=>{if(e[t]=r,ed(this,c)){let r=ed(this,c)-e[t];for(;ed(this,y)>r;)ey(this,P,V).call(this,!0)}ep(this,y,ed(this,y)+e[t]),n&&(n.entrySize=r,n.totalCalculatedSize=ed(this,y))})},x=new WeakMap,H=new WeakMap,U=new WeakMap,G=function*(){let{allowStale:e=this.allowStale}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(ed(this,p))for(let t=ed(this,S);ey(this,P,B).call(this,t);){;if((e||!ed(this,j).call(this,t))&&(yield t),t===ed(this,w))break;t=ed(this,v)[t]}},W=function*(){let{allowStale:e=this.allowStale}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(ed(this,p))for(let t=ed(this,w);ey(this,P,B).call(this,t);){;if((e||!ed(this,j).call(this,t))&&(yield t),t===ed(this,S))break;t=ed(this,b)[t]}},B=function(e){return void 0!==e&&ed(this,g).get(ed(this,_)[e])===e},V=function(e){var t,r;let n=ed(this,w),o=ed(this,_)[n],i=ed(this,E)[n];return ed(this,I)&&ey(this,P,z).call(this,i)?i.__abortController.abort(Error("evicted")):(ed(this,$)||ed(this,k))&&(ed(this,$)&&(null==(t=ed(this,f))||t.call(this,i,o,"evict")),ed(this,k)&&(null==(r=ed(this,R))||r.push([i,o,"evict"]))),ed(this,x).call(this,n),e&&(ed(this,_)[n]=void 0,ed(this,E)[n]=void 0,ed(this,O).push(n)),1===ed(this,p)?(ep(this,w,ep(this,S,0)),ed(this,O).length=0):ep(this,w,ed(this,b)[n]),ed(this,g).delete(o),eg(this,p)._--,n},q=function(e,t,r,n){var o=this;let i=void 0===t?void 0:ed(this,E)[t];if(ey(this,P,z).call(this,i))return i;let a=new eF,{signal:s}=r;null==s||s.addEventListener("abort",()=>a.abort(s.reason),{signal:a.signal});let l={signal:a.signal,options:r,context:n},u=function(n){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{aborted:s}=a.signal,u=r.ignoreFetchAbort&&void 0!==n;return(r.status&&(s&&!i?(r.status.fetchAborted=!0,r.status.fetchError=a.signal.reason,u&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),!s||u||i)?(ed(o,E)[t]===f&&(void 0===n?f.__staleWhileFetching?ed(o,E)[t]=f.__staleWhileFetching:ey(o,P,Z).call(o,e,"fetch"):(r.status&&(r.status.fetchUpdated=!0),o.set(e,n,l.options))),n):c(a.signal.reason)},c=n=>{let{aborted:o}=a.signal,i=o&&r.allowStaleOnFetchAbort,s=i||r.allowStaleOnFetchRejection,l=s||r.noDeleteOnFetchRejection;if(ed(this,E)[t]===f&&(l&&void 0!==f.__staleWhileFetching?!i&&(ed(this,E)[t]=f.__staleWhileFetching):ey(this,P,Z).call(this,e,"fetch")),s)return r.status&&void 0!==f.__staleWhileFetching&&(r.status.returnedStale=!0),f.__staleWhileFetching;if(f.__returned===f)throw n};r.status&&(r.status.fetchDispatched=!0);let f=new Promise((t,n)=>{var o;let s=null==(o=ed(this,d))?void 0:o.call(this,e,i,l);s&&s instanceof Promise&&s.then(e=>t(void 0===e?void 0:e),n),a.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(t(void 0),r.allowStaleOnFetchAbort&&(t=e=>u(e,!0)))})}).then(u,e=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=e),c(e))),h=Object.assign(f,{__abortController:a,__staleWhileFetching:i,__returned:void 0});return void 0===t?(this.set(e,h,(0,Q._)((0,X._)({},l.options),{status:void 0})),t=ed(this,g).get(e)):ed(this,E)[t]=h,h},z=function(e){return!!ed(this,I)&&!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof eF},K=function(e,t){ed(this,v)[t]=e,ed(this,b)[e]=t},J=function(e){e!==ed(this,S)&&(e===ed(this,w)?ep(this,w,ed(this,b)[e]):ey(this,P,K).call(this,ed(this,v)[e],ed(this,b)[e]),ey(this,P,K).call(this,ed(this,S),e),ep(this,S,e))},Z=function(e,t){var r,n,o,i;let a=!1;if(0!==ed(this,p)){let o=ed(this,g).get(e);if(void 0!==o){if(a=!0,1===ed(this,p))ey(this,P,Y).call(this,t);else{ed(this,x).call(this,o);let i=ed(this,E)[o];if(ey(this,P,z).call(this,i)?i.__abortController.abort(Error("deleted")):(ed(this,$)||ed(this,k))&&(ed(this,$)&&(null==(r=ed(this,f))||r.call(this,i,e,t)),ed(this,k)&&(null==(n=ed(this,R))||n.push([i,e,t]))),ed(this,g).delete(e),ed(this,_)[o]=void 0,ed(this,E)[o]=void 0,o===ed(this,S))ep(this,S,ed(this,v)[o]);else if(o===ed(this,w))ep(this,w,ed(this,b)[o]);else{let e=ed(this,v)[o];ed(this,b)[e]=ed(this,b)[o];let t=ed(this,b)[o];ed(this,v)[t]=ed(this,v)[o]}eg(this,p)._--,ed(this,O).push(o)}}}if(ed(this,k)&&(null==(o=ed(this,R))?void 0:o.length)){let e;let t=ed(this,R);for(;e=null==t?void 0:t.shift();)null==(i=ed(this,h))||i.call(this,...e)}return a},Y=function(e){var t,r,n;for(let n of ey(this,P,W).call(this,{allowStale:!0})){let o=ed(this,E)[n];if(ey(this,P,z).call(this,o))o.__abortController.abort(Error("deleted"));else{let i=ed(this,_)[n];ed(this,$)&&(null==(t=ed(this,f))||t.call(this,o,i,e)),ed(this,k)&&(null==(r=ed(this,R))||r.push([o,i,e]))}}if(ed(this,g).clear(),ed(this,E).fill(void 0),ed(this,_).fill(void 0),ed(this,T)&&ed(this,N)&&(ed(this,T).fill(0),ed(this,N).fill(0)),ed(this,A)&&ed(this,A).fill(0),ep(this,w,0),ep(this,S,0),ed(this,O).length=0,ep(this,y,0),ep(this,p,0),ed(this,k)&&ed(this,R)){let e;let t=ed(this,R);for(;e=null==t?void 0:t.shift();)null==(n=ed(this,h))||n.call(this,...e)}};let eW=e=>{let{name:t,alias:r,id:n,remoteSnapshot:o}=e;if(!o||!("modules"in o))return;let i=RegExp(`^${t}(/[^/].*|)$`).test(n)?t:r||t,a=n.replace(i,""),s="",l="",u="";if(a.startsWith("/"))s=`${a.slice(1)}.${eN}`,l=`${n}.${eN}`,u=`${t}${a}.${eN}`;else{if(""!==a)return;s=eN,l=`${n}/${eN}`,u=`${t}/${eN}`}if(!!s&&!!l&&!!u&&!!o.modules.find(e=>e.moduleName===s))return{dataFetchName:s,dataFetchId:l,dataFetchKey:u}};function eB(){globalThis.__MF_DATA_FETCH_MAP__||(globalThis.__MF_DATA_FETCH_MAP__={})}function eV(e){var t;return null==(t=globalThis.__MF_DATA_FETCH_MAP__)?void 0:t[e]}function eq(){return globalThis.__MF_DATA_FETCH_MAP__}let ez=e=>`${eO}${e}${eO}`,eK=e=>{let t=e.indexOf(eO);if(-1===t)return;let r=e.indexOf(eO,t+eO.length);if(-1!==r)return e.substring(t+eO.length,r)};async function eJ(e,t,r){var n;let o=async()=>{let r=eV(e);if(!r)return;let[n,...o]=r,i=await n[2];if(!!i)return i((0,Q._)((0,X._)({},t),{_id:e}))};if(er){let i,a;let s=eV(e);if(!s)throw Error(`dataFetchItem not found, id: ${e}`);if(null==(n=s[1])?void 0:n[0])return s[1][0];if(e1())return ek.debug("==========csr only!"),o();if(r)return e0(e,t,r);let l=eX();if(l&&("boolean"==typeof l||l.includes(e)))return e0(e,(0,Q._)((0,X._)({},t),{isDowngrade:!0}));let u=new Promise((e,t)=>{i=e,a=t});return s[1]=[u,i,a],s[2]=eA.AWAIT,s[1][0]}return o()}function eZ(e,t){if(!e||!t)return;let{dataFetchKey:r}=e;return e_(r,t.name,t.version)}async function eY(e,t){return e.loadRemote(t).then(e=>{if(e&&"object"==typeof e&&"fetchData"in e&&"function"==typeof e.fetchData)return e.fetchData;throw Error(`fetchData not found in remote ${t}, ${JSON.stringify(e)}`)})}function eX(){return globalThis[eb]}function eQ(){let e=eq();if(!!e)Object.keys(e).forEach(e=>{e0(e)})}async function e0(e,t,r){let n=eq();if(!n)return;let o=n[e];if((null==o?void 0:o[2])===eA.AWAIT){let n,i,a;o[2]=eA.LOADING,o[1]?(n=o[1][0],i=o[1][1],a=o[1][2]):(n=new Promise((e,t)=>{i=e,a=t}),o[1]=[n,i,a]);let s=o[0][1];if(s===eR.FETCH_CLIENT)try{o[0][0]().then(async r=>r((0,Q._)((0,X._)({},t),{isDowngrade:!0,_id:e})).then(e=>{o[2]=eA.LOADED,i&&i(e)}))}catch(e){o[2]=eA.ERROR,a&&a(e)}else if(s===eR.FETCH_SERVER)try{let n=new URL(window.location.href);n.searchParams.set("x-mf-data-fetch",encodeURIComponent(e)),t&&n.searchParams.set("params",encodeURIComponent(JSON.stringify(t))),r&&n.searchParams.set("remoteInfo",encodeURIComponent(JSON.stringify(r)));let a=globalThis.FEDERATION_SERVER_QUERY;a&&"object"==typeof a&&Object.keys(a).forEach(e=>{n.searchParams.set(e,JSON.stringify(a[e]))});let s=n.toString(),l=await fetch(s).then(e=>e.json());o[2]=eA.LOADED,i&&i(l)}catch(e){o[2]=eA.ERROR,a&&a(e)}return n}}function e1(){return void 0===window._SSR_DATA}function e2(e,t){if(!t)return;let{name:r,expose:n}=t.remoteHandler.idToRemoteMap[e]||{};if(!r)return;let o=t.moduleCache.get(r);if(!o)return;let{remoteSnapshot:i}=t.snapshotHandler.getGlobalRemoteInfo(o.remoteInfo);return(0,Q._)((0,X._)({},o.remoteInfo),{snapshot:i,expose:n})}var e6=r(777296);async function e3(e,t){try{return await e()}catch(e){eE(e);return}}function e9(e,t){let r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function e5(e){let t,r=null,n=!0,o=2e4,i=document.getElementsByTagName("script");for(let t=0;t<i.length;t++){let o=i[t],a=o.getAttribute("src");if(a&&e9(a,e.url)){r=o,n=!1;break}}if(!r){let t,n=e.attrs;(r=document.createElement("script")).type=(null==n?void 0:n.type)==="module"?"module":"text/javascript";e.createScriptHook&&((t=e.createScriptHook(e.url,e.attrs))instanceof HTMLScriptElement?r=t:"object"==typeof t&&("script"in t&&t.script&&(r=t.script),"timeout"in t&&t.timeout&&(o=t.timeout))),!r.src&&(r.src=e.url),n&&!t&&Object.keys(n).forEach(e=>{r&&("async"===e||"defer"===e?r[e]=n[e]:!r.getAttribute(e)&&r.setAttribute(e,n[e]))})}let a=null,s="undefined"!=typeof window?t=>{if(t.filename&&e9(t.filename,e.url)){let r=Error(`ScriptExecutionError: Script "${e.url}" loaded but threw a runtime error during execution: ${t.message} (${t.filename}:${t.lineno}:${t.colno})`);r.name="ScriptExecutionError",a=r}}:null;s&&window.addEventListener("error",s);let l=async(n,o)=>{clearTimeout(t),s&&window.removeEventListener("error",s);let i=()=>{if((null==o?void 0:o.type)==="error"){let t=Error((null==o?void 0:o.isTimeout)?`ScriptNetworkError: Script "${e.url}" timed out.`:`ScriptNetworkError: Failed to load script "${e.url}" - the script URL is unreachable or the server returned an error (network failure, 404, CORS, etc.)`);t.name="ScriptNetworkError",(null==e?void 0:e.onErrorCallback)&&(null==e||e.onErrorCallback(t))}else a?(null==e?void 0:e.onErrorCallback)&&(null==e||e.onErrorCallback(a)):(null==e?void 0:e.cb)&&(null==e||e.cb())};if(r&&(r.onerror=null,r.onload=null,e3(()=>{let{needDeleteScript:t=!0}=e;t&&(null==r?void 0:r.parentNode)&&r.parentNode.removeChild(r)}),n&&"function"==typeof n)){let e=n(o);if(e instanceof Promise){let t=await e;return i(),t}return i(),e}i()};return r.onerror=l.bind(null,r.onerror),r.onload=l.bind(null,r.onload),t=setTimeout(()=>{l(null,{type:"error",isTimeout:!0})},o),{script:r,needAttach:n}}function e7(e){let t=null,r=!0,n=document.getElementsByTagName("link");for(let o=0;o<n.length;o++){let i=n[o],a=i.getAttribute("href"),s=i.getAttribute("rel");if(a&&e9(a,e.url)&&s===e.attrs.rel){t=i,r=!1;break}}if(!t){let r;(t=document.createElement("link")).setAttribute("href",e.url);let n=e.attrs;e.createLinkHook&&(r=e.createLinkHook(e.url,n))instanceof HTMLLinkElement&&(t=r),n&&!r&&Object.keys(n).forEach(e=>{t&&!t.getAttribute(e)&&t.setAttribute(e,n[e])})}let o=(r,n)=>{let o=()=>{(null==n?void 0:n.type)==="error"?(null==e?void 0:e.onErrorCallback)&&(null==e||e.onErrorCallback(n)):(null==e?void 0:e.cb)&&(null==e||e.cb())};if(t&&(t.onerror=null,t.onload=null,e3(()=>{let{needDeleteLink:r=!0}=e;r&&(null==t?void 0:t.parentNode)&&t.parentNode.removeChild(t)}),r)){let e=r(n);return o(),e}o()};return t.onerror=o.bind(null,t.onerror),t.onload=o.bind(null,t.onload),{link:t,needAttach:r}}let e4=new Map;function e8(e){if(!e)throw Error("import specifier is required");if(e4.has(e))return e4.get(e);let t=Function("name","return import(name)")(e).then(e=>e).catch(t=>{throw e4.delete(e),t});return e4.set(e,t),t}let te=async()=>{let e=await e8("node-fetch");return e.default||e},tt=async(e,t,r)=>{let n,o;let i=await (n=e,o=t||{},r.lifecycle.fetch.emit(n,o));return i&&i instanceof Response?i:("undefined"==typeof fetch?await te():fetch)(e,t||{})},tr="undefined"==typeof ENV_TARGET||"web"!==ENV_TARGET?(e,t,r,n)=>{let o;if(null==n?void 0:n.createScriptHook){let t=n.createScriptHook(e);t&&"object"==typeof t&&"url"in t&&(e=t.url)}try{o=new URL(e)}catch(e){t(Error(`Invalid URL: ${e}`));return}let i=async(e,n)=>{var o,i;try{let a;let s=await e(n.href),l=await s.text(),[u,c]=await Promise.all([e8("path"),e8("vm")]),f={exports:{},module:{exports:{}}},h=n.pathname.split("/").slice(0,-1).join("/"),d=u.basename(n.pathname),m=new c.Script(`(function(exports, module, require, __dirname, __filename) {${l}
})`,{filename:d,importModuleDynamically:null!==(i=null==(o=c.constants)?void 0:o.USE_MAIN_CONTEXT_DEFAULT_LOADER)&&void 0!==i?i:e8});a=(await e8("node:module")).createRequire("file:"===n.protocol||"node:"===n.protocol?n.href:u.join(e6.cwd(),"__mf_require_base__.js")),m.runInThisContext()(f.exports,f.module,a,h,d);let p=f.module.exports||f.exports;if(r&&p&&r.globalName){t(void 0,p[r.globalName]||p);return}t(void 0,p)}catch(e){t(e instanceof Error?e:Error(`Script execution error: ${e}`))}};(async()=>(null==n?void 0:n.fetch)?(e,t)=>tt(e,t,n):"undefined"==typeof fetch?te():fetch)().then(async e=>{if((null==r?void 0:r.type)==="esm"||(null==r?void 0:r.type)==="module")return ti(o.href,{fetch:e,vm:await e8("vm")}).then(async e=>{await e.evaluate(),t(void 0,e.namespace)}).catch(e=>{t(e instanceof Error?e:Error(`Script execution error: ${e}`))});i(e,o)}).catch(e=>{t(e)})}:(e,t,r,n)=>{t(Error("createScriptNode is disabled in non-Node.js environment"))},tn="undefined"==typeof ENV_TARGET||"web"!==ENV_TARGET?(e,t)=>new Promise((r,n)=>{tr(e,(e,o)=>{var i,a;if(e)n(e);else{let e=(null==(i=null==t?void 0:t.attrs)?void 0:i.globalName)||`__FEDERATION_${null==(a=null==t?void 0:t.attrs)?void 0:a.name}:custom__`;r(globalThis[e]=o)}},t.attrs,t.loaderHook)}):(e,t)=>{throw Error("loadScriptNode is disabled in non-Node.js environment")},to=new Map;async function ti(e,t){if(to.has(e))return to.get(e);let{fetch:r,vm:n}=t,o=await (await r(e)).text(),i=new n.SourceTextModule(o,{importModuleDynamically:async(r,n)=>ti(new URL(r,e).href,t)});return to.set(e,i),await i.link(async r=>{let n=new URL(r,e).href;return await ti(n,t)}),i}let ta=async function(e){var t,r;let[n,o,i]=e;if(ek.debug("==========call data fetch function!"),o){if(!n)throw Error("id is required!");!eq()&&eB();let e=eV(n);if(e){null==(r=null==(t=e[1])?void 0:t[1])||r.call(t,o),e[2]=eA.LOADED;return}if(!e){let e,t;let r=eq(),i=new Promise((r,n)=>{e=r,t=n});r[n]=[[async()=>async()=>"",eR.FETCH_SERVER],[i,e,t],eA.LOADED],e&&e(o);return}}if(i){let e=eX();e?Array.isArray(e)&&n&&!e.includes(n)&&e.push(n):globalThis[eb]=!n||[n]}let a=eX();if("boolean"==typeof a)return eQ();if(Array.isArray(a))return n?(!a.includes(n)&&a.push(n),e0(n)):(globalThis[eb]=!0,eQ())},ts=e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`,tl=(e,t,r,n)=>{let o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(ts(e)),n&&o.push(`Original Error Message:
${n}`),o.join("\n")},tu="[ Federation Runtime ]";function tc(e,t,r,n,o){if(void 0!==t){var i;return(e=>{throw Error(`${tu}: ${e}`)})(tl(e,t,null!=r?r:{},n))}if(e instanceof Error)throw!e.message.startsWith(tu)&&(e.message=`${tu}: ${e.message}`),e;throw Error(`${tu}: ${e}`)}let tf="object"==typeof globalThis?globalThis:window,th=(()=>{try{return document.defaultView}catch(e){return tf}})();function td(e,t,r){Object.defineProperty(e,t,{value:r,configurable:!1,writable:!0})}function tm(e,t){return Object.hasOwnProperty.call(e,t)}!tm(tf,"__GLOBAL_LOADING_REMOTE_ENTRY__")&&td(tf,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});let tp=tf.__GLOBAL_LOADING_REMOTE_ENTRY__;function ty(e){var t,r,n,o,i,a,s,l,u,c,f,h;tm(e,"__VMOK__")&&!tm(e,"__FEDERATION__")&&td(e,"__FEDERATION__",e.__VMOK__),!tm(e,"__FEDERATION__")&&(td(e,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),td(e,"__VMOK__",e.__FEDERATION__)),null!==(s=(t=e.__FEDERATION__).__GLOBAL_PLUGIN__)&&void 0!==s||(t.__GLOBAL_PLUGIN__=[]),null!==(l=(r=e.__FEDERATION__).__INSTANCES__)&&void 0!==l||(r.__INSTANCES__=[]),null!==(u=(n=e.__FEDERATION__).moduleInfo)&&void 0!==u||(n.moduleInfo={}),null!==(c=(o=e.__FEDERATION__).__SHARE__)&&void 0!==c||(o.__SHARE__={}),null!==(f=(i=e.__FEDERATION__).__MANIFEST_LOADING__)&&void 0!==f||(i.__MANIFEST_LOADING__={}),null!==(h=(a=e.__FEDERATION__).__PRELOADED_MAP__)&&void 0!==h||(a.__PRELOADED_MAP__=new Map)}ty(tf),ty(th);let tg=(e,t)=>{let r=t||`__FEDERATION_${e}:custom__`;return{remoteEntryKey:r,entryExports:tf[r]}},t_="RUNTIME-001",tE="RUNTIME-008",tb={[t_]:"Failed to get remoteEntry exports.","RUNTIME-002":'The remote entry interface does not contain "init"',"RUNTIME-003":"Failed to get manifest.","RUNTIME-004":"Failed to locate remote.","RUNTIME-005":"Invalid loadShareSync function call from bundler runtime","RUNTIME-006":"Invalid loadShareSync function call from runtime","RUNTIME-007":"Failed to get remote snapshot.",[tE]:"Failed to load script resources.","RUNTIME-009":"Please call createInstance first.","RUNTIME-010":'The name option cannot be changed after initialization. If you want to create a new instance with a different name, please use "createInstance" api.',"RUNTIME-011":"The remoteEntry URL is missing from the remote snapshot.","RUNTIME-012":'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'};(0,X._)({},tb);let tv=".then(callbacks[0]).catch(callbacks[1])";async function tw(e){let{entry:t,remoteEntryExports:r}=e;return new Promise((e,n)=>{try{r?e(r):"undefined"!=typeof FEDERATION_ALLOW_NEW_FUNCTION?Function("callbacks",`import("${t}")${tv}`)([e,n]):import(t).then(e).catch(n)}catch(e){tc(`Failed to load ESM entry from "${t}". ${e instanceof Error?e.message:String(e)}`)}})}async function tS(e){let{entry:t,remoteEntryExports:r}=e;return new Promise((e,n)=>{try{if(r)e(r);else Function("callbacks",`System.import("${t}")${tv}`)([e,n])}catch(e){tc(`Failed to load SystemJS entry from "${t}". ${e instanceof Error?e.message:String(e)}`)}})}function tO(e,t,r){let{remoteEntryKey:n,entryExports:o}=tg(e,t);return!o&&tc(t_,tb,{remoteName:e,remoteEntryUrl:r,remoteEntryKey:n}),o}async function tR(e){let{name:t,globalName:r,entry:n,loaderHook:o,getEntryUrl:i}=e,{entryExports:a}=tg(t,r);if(a)return a;let s=i?i(n):n;return(function(e,t){let{attrs:r={},createScriptHook:n}=t;return new Promise((t,o)=>{let{script:i,needAttach:a}=e5({url:e,cb:t,onErrorCallback:o,attrs:(0,X._)({fetchpriority:"high"},r),createScriptHook:n,needDeleteScript:!0});a&&document.head.appendChild(i)})})(s,{attrs:{},createScriptHook:(e,t)=>{let r=o.lifecycle.createScript.emit({url:e,attrs:t});if(r&&(r instanceof HTMLScriptElement||"script"in r||"timeout"in r))return r}}).then(()=>tO(t,r,n),e=>{tc(tE,tb,{remoteName:t,resourceUrl:s},e instanceof Error?e.message:String(e))})}async function tA(e){let{remoteInfo:t,remoteEntryExports:r,loaderHook:n,getEntryUrl:o}=e,{entry:i,entryGlobalName:a,name:s,type:l}=t;switch(l){case"esm":case"module":return tw({entry:i,remoteEntryExports:r});case"system":return tS({entry:i,remoteEntryExports:r});default:return tR({entry:i,globalName:a,name:s,loaderHook:n,getEntryUrl:o})}}async function tN(e){let{remoteInfo:t,loaderHook:r}=e,{entry:n,entryGlobalName:o,name:i,type:a}=t,{entryExports:s}=tg(i,o);return s?s:tn(n,{attrs:{name:i,globalName:o,type:a},loaderHook:{createScriptHook:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.lifecycle.createScript.emit({url:e,attrs:t});if(n&&"url"in n)return n}}}).then(()=>tO(i,o,n)).catch(e=>{tc(`Failed to load Node.js entry for remote "${i}" from "${n}". ${e instanceof Error?e.message:String(e)}`)})}function tT(e){let{entry:t,name:r}=e;return e_(r,t)}async function t$(e){let{origin:t,remoteEntryExports:r,remoteInfo:n,getEntryUrl:o,_inErrorHandling:i=!1}=e,a=tT(n);if(r)return r;if(!tp[a]){let e=t.remoteHandler.hooks.lifecycle.loadEntry,s=t.loaderHook;tp[a]=e.emit({loaderHook:s,remoteInfo:n,remoteEntryExports:r}).then(e=>e?e:("undefined"!=typeof ENV_TARGET?"web"===ENV_TARGET:er)?tA({remoteInfo:n,remoteEntryExports:r,loaderHook:s,getEntryUrl:o}):tN({remoteInfo:n,loaderHook:s})).catch(async e=>{let o=tT(n),a=e instanceof Error&&e.message.includes("ScriptExecutionError");if(e instanceof Error&&e.message.includes(tE)&&!a&&!i){let e=await t.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:e=>t$((0,Q._)((0,X._)({},e),{_inErrorHandling:!0})),origin:t,remoteInfo:n,remoteEntryExports:r,globalLoading:tp,uniqueKey:o});if(e)return e}throw e})}return tp[a]}"boolean"==typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN&&FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN;let tI={utils:{matchRemoteWithNameAndExpose:function(e,t){for(let r of e){let e=t.startsWith(r.name),n=t.replace(r.name,"");if(e){if(n.startsWith("/")){let e=r.name;return{pkgNameOrAlias:e,expose:n=`.${n}`,remote:r}}if(""===n)return{pkgNameOrAlias:r.name,expose:".",remote:r}}let o=r.alias&&t.startsWith(r.alias),i=r.alias&&t.replace(r.alias,"");if(r.alias&&o){if(i&&i.startsWith("/")){let e=r.alias;return{pkgNameOrAlias:e,expose:i=`.${i}`,remote:r}}if(""===i)return{pkgNameOrAlias:r.alias,expose:".",remote:r}}}},preloadAssets:function(e,t,r){let n=!(arguments.length>3)||void 0===arguments[3]||arguments[3],{cssAssets:o,jsAssetsWithoutEntry:i,entryAssets:a}=r;if(t.options.inBrowser){if(a.forEach(r=>{let{moduleInfo:n}=r,o=t.moduleCache.get(e.name);o?t$({origin:t,remoteInfo:n,remoteEntryExports:o.remoteEntryExports}):t$({origin:t,remoteInfo:n,remoteEntryExports:void 0})}),n){let e={rel:"preload",as:"style"};o.forEach(r=>{let{link:n,needAttach:o}=e7({url:r,cb:()=>{},attrs:e,createLinkHook:(e,r)=>{let n=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:r});if(n instanceof HTMLLinkElement)return n}});o&&document.head.appendChild(n)})}else{let e={rel:"stylesheet",type:"text/css"};o.forEach(r=>{let{link:n,needAttach:o}=e7({url:r,cb:()=>{},attrs:e,createLinkHook:(e,r)=>{let n=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:r});if(n instanceof HTMLLinkElement)return n},needDeleteLink:!1});o&&document.head.appendChild(n)})}if(n){let e={rel:"preload",as:"script"};i.forEach(r=>{let{link:n,needAttach:o}=e7({url:r,cb:()=>{},attrs:e,createLinkHook:(e,r)=>{let n=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:r});if(n instanceof HTMLLinkElement)return n}});o&&document.head.appendChild(n)})}else{let r={fetchpriority:"high",type:(null==e?void 0:e.type)==="module"?"module":"text/javascript"};i.forEach(e=>{let{script:n,needAttach:o}=e5({url:e,cb:()=>{},attrs:r,createScriptHook:(e,r)=>{let n=t.loaderHook.lifecycle.createScript.emit({url:e,attrs:r});if(n instanceof HTMLScriptElement)return n},needDeleteScript:!0});o&&document.head.appendChild(n)})}}},getRemoteInfo:function(e){return(0,Q._)((0,X._)({},e),{entry:"entry"in e?e.entry:"",type:e.type||"global",entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||"default"})}}};async function tk(e){let{instance:t,id:r,dataFetchParams:n,preloadComponentResource:o}=e;if(!r){ek.error("id is required for prefetch!");return}if(!t){ek.error("instance is required for prefetch!");return}let i=tI.utils.matchRemoteWithNameAndExpose(t.options.remotes,r);if(!i){ek.error(`Can not found '${r}' in instance.options.remotes!`);return}let{remote:a,expose:s}=i,{remoteSnapshot:l,globalSnapshot:u}=await t.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:a,id:r,expose:s});if(o){let e=tI.utils.getRemoteInfo(a);Promise.resolve(t.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:t,preloadOptions:{remote:a,preloadConfig:{nameOrAlias:a.name,exposes:[s]}},remote:a,remoteInfo:e,globalSnapshot:u,remoteSnapshot:l})).then(r=>{r&&tI.utils.preloadAssets(e,t,r)})}let c=eq();if(!c)return;let f=eZ(eW({name:a.name,alias:a.alias,id:r,remoteSnapshot:l}),{name:t.name,version:t.options.version});if(!f)return;let h=c[f];if(!h)return;let[d,m,p]=h[0],y=p;if(!p){if(!d)return;y=d()}y.then(e=>e((0,Q._)((0,X._)({},n),{_id:f,isDowngrade:!1})))}var tP=r("101199");let tD=()=>(eB(),!function(){globalThis[ev]||(globalThis[ev]=[]);let e=globalThis[ev];if(e.push!==ta&&"undefined"!=typeof window)globalThis[ew]=window.location.href,e.push=ta}(),{name:"auto-fetch-data-plugin",afterLoadSnapshot(e){var t;let{id:r,moduleInfo:n,remoteSnapshot:o,host:i}=e;if("string"==typeof r&&((t=r).endsWith(eN)||t.endsWith(eT))||!o||!r||!("modules"in o))return e;let{name:a,alias:s}=n,l=eW({name:a,alias:s,id:r,remoteSnapshot:o});if(!l)return e;let{dataFetchId:u,dataFetchName:c}=l,f=eZ(l,{name:i.name,version:i.options.version});if(ek.debug("======= auto fetch plugin dataFetchMapKey: ",f),!f||eV(f))return e;let h=eq(),d=!!o.ssrRemoteEntry,m=!!o.modules.find(e=>e.moduleName===`${c}${eT}`),p=m?eR.FETCH_CLIENT:d?eR.FETCH_SERVER:eR.FETCH_CLIENT,y=u;"undefined"!=typeof window&&(y=p===eR.FETCH_CLIENT&&m?`${u}${eT}`:u);let g=()=>eY(i,y),_=[g,p];return("undefined"==typeof window||e1())&&_.push(g()),h[f]=[_,void 0,eA.AWAIT],e}}),tL="<Await /> caught the following error during render: ",tM=e=>{let t=(e instanceof Error?e.message:e).replace(tL,""),r=eK(t);return 0===t.indexOf(e$)?{error:Error(t.replace(e$,"").replace(ez(r),"")),errorType:eS.DATA_FETCH,dataFetchMapKey:r}:0===t.indexOf(eI)?{error:Error(t.replace(eI,"").replace(ez(r),"")),errorType:eS.LOAD_REMOTE,dataFetchMapKey:r}:{error:Error(t.replace(ez(r),"")),errorType:eS.UNKNOWN,dataFetchMapKey:r}},tF=tP.createElement(tP.Fragment,null),tj=e=>tP.createElement("div",null,"Error");function tC(e){var t;let{resolve:r,loading:n=tF,errorElement:o=tj,children:i,params:a,delayLoading:s}=e,l=(0,tP.useRef)(),u=l.current||r;let c=(t=u)&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then?tG(u,l):()=>u;return tP.createElement(tH,{params:a,loading:n,errorElement:o,delayLoading:s,resolve:c},i)}let tx=e=>{let{delayLoading:t,children:r}=e,[n,o]=(0,tP.useState)(!1),i=(0,tP.useRef)(!1);return t?("undefined"!=typeof window&&!n&&!i.current&&(i.current=!0,setTimeout(()=>{o(!0)},t)),n?r:null):r};function tH(e){let{resolve:t,children:r,loading:n=tF,errorElement:o=tj,delayLoading:i}=e;return tP.createElement(tP.Suspense,{fallback:tP.createElement(tx,{delayLoading:i},n)},tP.createElement(tU,{resolve:t,errorElement:o},r))}function tU(e){let{children:t,resolve:r,errorElement:n,params:o}=e,i=r();if(ek.debug("resolve data: ",i),"string"==typeof i&&0===i.indexOf(tL)){let e=tM(i);return tP.createElement(tP.Fragment,null,"function"==typeof n?tP.createElement(tP.Fragment,null,globalThis.FEDERATION_SSR&&tP.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:String.raw`
globalThis['${ev}'] = globalThis['${ev}'] || []
globalThis['${ev}'].push([${e.dataFetchMapKey?`'${e.dataFetchMapKey}'`:""},${o?JSON.stringify(o):null},true]);`}}),n(e)):n)}let a="function"==typeof t?t(i):t;return tP.createElement(tP.Fragment,null,a)}let tG=(e,t)=>{let r;let n="pending",o=e.then(e=>{n="success",r=e,t.current=e}).catch(e=>{n="success",r=tL+e});return()=>{if("pending"===n)throw o;return r}};function tW(e){let{id:t,injectLink:r=!0,injectScript:n=!1}="string"==typeof e?{id:e}:e,o=[],i=[],a=e.instance;if(!a||!r&&!n)return[...i,...o];let s=function(e,t){if(!t)return;let r=e2(e,t);if(!r)return;let{snapshot:n}=r;if(!n)return;let o="publicPath"in n?n.publicPath:"getPublicPath"in n?Function(n.getPublicPath)():"";if(!o)return;let i=("modules"in n?n.modules:[]).find(e=>e.modulePath===r.expose);if(!i)return;let a="remoteEntry"in n?n.remoteEntry:"";if(!!a)return{module:i,publicPath:o,remoteEntry:a}}(t,a);if(!s)return[...i,...o];let{module:l,publicPath:u,remoteEntry:c}=s;return r&&[...l.assets.css.sync,...l.assets.css.async].sort().forEach((e,t)=>{o.push(tP.createElement("link",{key:`${e.split(".")[0]}_${t}`,href:`${u}${e}`,rel:"stylesheet",type:"text/css"}))}),n&&(i.push(tP.createElement("script",{async:!0,key:c.split(".")[0],src:`${u}${c}`,crossOrigin:"anonymous"})),[...l.assets.js.sync].sort().forEach((e,t)=>{i.push(tP.createElement("script",{key:`${e.split(".")[0]}_${t}`,async:!0,src:`${u}${e}`,crossOrigin:"anonymous"}))})),[...i,...o]}function tB(){return{name:"lazy-load-component-plugin",apply(e){e.registerPlugins([tD()]),e.createLazyComponent=t=>(function(e){let{instance:t,injectScript:r,injectLink:n}=e;if(!t)throw Error("instance is required for createLazyComponent!");let o=(null==e?void 0:e.export)||"default",i=async()=>{ek.debug("callLoader start",Date.now());let t=await e.loader();if(ek.debug("callLoader end",Date.now()),!t)throw Error("load remote failed");return t},a=async r=>{let n,o,a;try{let e=await i();if(!(o=e&&e[Symbol.for("mf_module_id")]))throw Error("moduleId is empty");if(!(n=e2(o,t)))throw Error(`can not find loaded remote('${o}') info!`)}catch(t){let e=`${eI}${t}`;throw ek.debug(t),Error(e)}try{if(a=eZ(eW({name:n.name,alias:n.alias,id:o,remoteSnapshot:n.snapshot}),{name:t.name,version:t.options.version}),ek.debug("getData dataFetchMapKey: ",a),!a)return;let i=await eJ(a,(0,Q._)((0,X._)({},e.dataFetchParams),{isDowngrade:!1}),function(e,t,r){var n;if(r||"undefined"!=typeof window&&window.location.href!==window[ew]){if(!(null==e?void 0:e.version))throw Error(`${null==e?void 0:e.name} version is empty`);let{snapshot:r}=e;if(!r)throw Error(`${null==e?void 0:e.name} snapshot is empty`);let o=eV(t),i=(null==(n=null==o?void 0:o[0])?void 0:n[1])===eR.FETCH_SERVER;if(i&&(!("ssrPublicPath"in r)||!r.ssrPublicPath))throw Error(`ssrPublicPath is required while fetching ${null==e?void 0:e.name} data in SSR project!`);if(i&&(!("ssrRemoteEntry"in r)||!r.ssrRemoteEntry))throw Error(`ssrRemoteEntry is required while loading ${null==e?void 0:e.name} data loader in SSR project!`);return{name:e.name,version:e.version,ssrPublicPath:"ssrPublicPath"in r&&r.ssrPublicPath||"",ssrRemoteEntry:"ssrRemoteEntry"in r&&r.ssrRemoteEntry||"",globalName:e.entryGlobalName}}}(n,a,r));return!function(e){let t=eV(e);if(!!t)t[2]=eA.LOADED}(a),ek.debug("get data res: \n",i),i}catch(t){let e=`${e$}${ez(a)}${t}`;throw ek.debug(e),Error(e)}},s=tP.lazy(async()=>{let e=await i(),a=e&&e[Symbol.for("mf_module_id")],s=e2(a,t);null==s||s.snapshot;let l=s?eZ(eW({name:s.name,alias:s.alias,id:a,remoteSnapshot:s.snapshot}),{name:t.name,version:null==t?void 0:t.options.version}):void 0;ek.debug("LazyComponent dataFetchMapKey: ",l);let u=tW({id:a,instance:t,injectLink:n,injectScript:r}),c=e[o];if(o in e&&"function"==typeof c)return{default:e=>tP.createElement(tP.Fragment,null,globalThis.FEDERATION_SSR&&l&&tP.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:String.raw`
globalThis['${ev}'] = globalThis['${ev}'] || [];
globalThis['${ev}'].push(['${l}',${JSON.stringify(e.mfData)}]);
`}}),globalThis.FEDERATION_SSR&&u,tP.createElement(c,(0,X._)({},e)))};throw Error(`Make sure that ${a} has the correct export when export is ${String(o)}`)});return t=>{let{key:r}=t,n=(0,ee._)(t,["key"]);if(!e.noSSR)return tP.createElement(tC,{resolve:a(e.noSSR),loading:e.loading,delayLoading:e.delayLoading,errorElement:e.fallback},e=>tP.createElement(s,(0,Q._)((0,X._)({},n),{mfData:e})));{let[t,r]=(0,tP.useState)(null),[o,i]=(0,tP.useState)(!0),[l,u]=(0,tP.useState)(null);return((0,tP.useEffect)(()=>{let t=!0;return(async()=>{try{i(!0);let n=await a(e.noSSR);t&&r(n)}catch(e){t&&u(tM(e))}finally{t&&i(!1)}})(),()=>{t=!1}},[]),o)?tP.createElement(tx,{delayLoading:e.delayLoading},e.loading):l?tP.createElement(tP.Fragment,null,"function"==typeof e.fallback?e.fallback(l):e.fallback):tP.createElement(s,(0,Q._)((0,X._)({},n),{mfData:t}))}}})((0,X._)({instance:e},t)),e.prefetch=t=>tk((0,X._)({instance:e},t)),e.collectSSRAssets=t=>tW((0,X._)({instance:e},t))}}}}}]);