@zstackui/qiankun 2.6.3-beta-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +116 -0
- package/dist/index.umd.js +8681 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/index.umd.min.js +4 -0
- package/dist/index.umd.min.js.map +1 -0
- package/dist/src/__tests__/globalState.test.d.ts +5 -0
- package/dist/src/__tests__/utils.test.d.ts +1 -0
- package/dist/src/addons/engineFlag.d.ts +6 -0
- package/dist/src/addons/index.d.ts +6 -0
- package/dist/src/addons/runtimePublicPath.d.ts +6 -0
- package/dist/src/apis.d.ts +7 -0
- package/dist/src/effects.d.ts +3 -0
- package/dist/src/error.d.ts +3 -0
- package/dist/src/errorHandler.d.ts +7 -0
- package/dist/src/globalState.d.ts +7 -0
- package/dist/src/index.d.ts +11 -0
- package/dist/src/interfaces.d.ts +107 -0
- package/dist/src/loader.d.ts +8 -0
- package/dist/src/prefetch.d.ts +14 -0
- package/dist/src/sandbox/__tests__/common.test.d.ts +5 -0
- package/dist/src/sandbox/__tests__/proxySandbox.test.d.ts +10 -0
- package/dist/src/sandbox/common.d.ts +21 -0
- package/dist/src/sandbox/index.d.ts +40 -0
- package/dist/src/sandbox/legacy/__tests__/sandbox.test.d.ts +5 -0
- package/dist/src/sandbox/legacy/sandbox.d.ts +28 -0
- package/dist/src/sandbox/patchers/__tests__/css.test.d.ts +5 -0
- package/dist/src/sandbox/patchers/__tests__/interval.test.d.ts +5 -0
- package/dist/src/sandbox/patchers/css.d.ts +17 -0
- package/dist/src/sandbox/patchers/dynamicAppend/__tests__/common.test.d.ts +1 -0
- package/dist/src/sandbox/patchers/dynamicAppend/common.d.ts +22 -0
- package/dist/src/sandbox/patchers/dynamicAppend/forLooseSandbox.d.ts +17 -0
- package/dist/src/sandbox/patchers/dynamicAppend/forStrictSandbox.d.ts +12 -0
- package/dist/src/sandbox/patchers/dynamicAppend/index.d.ts +6 -0
- package/dist/src/sandbox/patchers/historyListener.d.ts +5 -0
- package/dist/src/sandbox/patchers/index.d.ts +9 -0
- package/dist/src/sandbox/patchers/interval.d.ts +5 -0
- package/dist/src/sandbox/patchers/windowListener.d.ts +5 -0
- package/dist/src/sandbox/proxySandbox.d.ts +23 -0
- package/dist/src/sandbox/snapshotSandbox.d.ts +20 -0
- package/dist/src/utils.d.ts +44 -0
- package/dist/src/version.d.ts +1 -0
- package/es/addons/engineFlag.d.ts +6 -0
- package/es/addons/engineFlag.js +50 -0
- package/es/addons/index.d.ts +6 -0
- package/es/addons/index.js +13 -0
- package/es/addons/runtimePublicPath.d.ts +6 -0
- package/es/addons/runtimePublicPath.js +57 -0
- package/es/apis.d.ts +7 -0
- package/es/apis.js +278 -0
- package/es/effects.d.ts +3 -0
- package/es/effects.js +33 -0
- package/es/error.d.ts +3 -0
- package/es/error.js +16 -0
- package/es/errorHandler.d.ts +7 -0
- package/es/errorHandler.js +13 -0
- package/es/globalState.d.ts +7 -0
- package/es/globalState.js +101 -0
- package/es/index.d.ts +11 -0
- package/es/index.js +11 -0
- package/es/interfaces.d.ts +107 -0
- package/es/interfaces.js +8 -0
- package/es/loader.d.ts +8 -0
- package/es/loader.js +600 -0
- package/es/prefetch.d.ts +14 -0
- package/es/prefetch.js +125 -0
- package/es/sandbox/common.d.ts +21 -0
- package/es/sandbox/common.js +157 -0
- package/es/sandbox/index.d.ts +40 -0
- package/es/sandbox/index.js +105 -0
- package/es/sandbox/legacy/sandbox.d.ts +28 -0
- package/es/sandbox/legacy/sandbox.js +142 -0
- package/es/sandbox/patchers/css.d.ts +17 -0
- package/es/sandbox/patchers/css.js +186 -0
- package/es/sandbox/patchers/dynamicAppend/common.d.ts +22 -0
- package/es/sandbox/patchers/dynamicAppend/common.js +306 -0
- package/es/sandbox/patchers/dynamicAppend/forLooseSandbox.d.ts +17 -0
- package/es/sandbox/patchers/dynamicAppend/forLooseSandbox.js +77 -0
- package/es/sandbox/patchers/dynamicAppend/forStrictSandbox.d.ts +12 -0
- package/es/sandbox/patchers/dynamicAppend/forStrictSandbox.js +103 -0
- package/es/sandbox/patchers/dynamicAppend/index.d.ts +6 -0
- package/es/sandbox/patchers/dynamicAppend/index.js +6 -0
- package/es/sandbox/patchers/historyListener.d.ts +5 -0
- package/es/sandbox/patchers/historyListener.js +54 -0
- package/es/sandbox/patchers/index.d.ts +9 -0
- package/es/sandbox/patchers/index.js +45 -0
- package/es/sandbox/patchers/interval.d.ts +5 -0
- package/es/sandbox/patchers/interval.js +34 -0
- package/es/sandbox/patchers/windowListener.d.ts +5 -0
- package/es/sandbox/patchers/windowListener.js +34 -0
- package/es/sandbox/proxySandbox.d.ts +23 -0
- package/es/sandbox/proxySandbox.js +315 -0
- package/es/sandbox/snapshotSandbox.d.ts +20 -0
- package/es/sandbox/snapshotSandbox.js +59 -0
- package/es/utils.d.ts +44 -0
- package/es/utils.js +215 -0
- package/es/version.d.ts +1 -0
- package/es/version.js +1 -0
- package/lib/addons/engineFlag.d.ts +6 -0
- package/lib/addons/engineFlag.js +55 -0
- package/lib/addons/index.d.ts +6 -0
- package/lib/addons/index.js +21 -0
- package/lib/addons/runtimePublicPath.d.ts +6 -0
- package/lib/addons/runtimePublicPath.js +63 -0
- package/lib/apis.d.ts +7 -0
- package/lib/apis.js +288 -0
- package/lib/effects.d.ts +3 -0
- package/lib/effects.js +42 -0
- package/lib/error.d.ts +3 -0
- package/lib/error.js +23 -0
- package/lib/errorHandler.d.ts +7 -0
- package/lib/errorHandler.js +33 -0
- package/lib/globalState.d.ts +7 -0
- package/lib/globalState.js +110 -0
- package/lib/index.d.ts +11 -0
- package/lib/index.js +89 -0
- package/lib/interfaces.d.ts +107 -0
- package/lib/interfaces.js +14 -0
- package/lib/loader.d.ts +8 -0
- package/lib/loader.js +606 -0
- package/lib/prefetch.d.ts +14 -0
- package/lib/prefetch.js +132 -0
- package/lib/sandbox/common.d.ts +21 -0
- package/lib/sandbox/common.js +169 -0
- package/lib/sandbox/index.d.ts +40 -0
- package/lib/sandbox/index.js +123 -0
- package/lib/sandbox/legacy/sandbox.d.ts +28 -0
- package/lib/sandbox/legacy/sandbox.js +148 -0
- package/lib/sandbox/patchers/css.d.ts +17 -0
- package/lib/sandbox/patchers/css.js +193 -0
- package/lib/sandbox/patchers/dynamicAppend/common.d.ts +22 -0
- package/lib/sandbox/patchers/dynamicAppend/common.js +322 -0
- package/lib/sandbox/patchers/dynamicAppend/forLooseSandbox.d.ts +17 -0
- package/lib/sandbox/patchers/dynamicAppend/forLooseSandbox.js +84 -0
- package/lib/sandbox/patchers/dynamicAppend/forStrictSandbox.d.ts +12 -0
- package/lib/sandbox/patchers/dynamicAppend/forStrictSandbox.js +110 -0
- package/lib/sandbox/patchers/dynamicAppend/index.d.ts +6 -0
- package/lib/sandbox/patchers/dynamicAppend/index.js +19 -0
- package/lib/sandbox/patchers/historyListener.d.ts +5 -0
- package/lib/sandbox/patchers/historyListener.js +62 -0
- package/lib/sandbox/patchers/index.d.ts +9 -0
- package/lib/sandbox/patchers/index.js +57 -0
- package/lib/sandbox/patchers/interval.d.ts +5 -0
- package/lib/sandbox/patchers/interval.js +42 -0
- package/lib/sandbox/patchers/windowListener.d.ts +5 -0
- package/lib/sandbox/patchers/windowListener.js +42 -0
- package/lib/sandbox/proxySandbox.d.ts +23 -0
- package/lib/sandbox/proxySandbox.js +321 -0
- package/lib/sandbox/snapshotSandbox.d.ts +20 -0
- package/lib/sandbox/snapshotSandbox.js +65 -0
- package/lib/utils.d.ts +44 -0
- package/lib/utils.js +240 -0
- package/lib/version.d.ts +1 -0
- package/lib/version.js +7 -0
- package/package.json +137 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).qiankun={})}(this,function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function r(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}var o=r(function(t){function e(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)}t.exports=function(t){return function(){var n=this,r=arguments;return new Promise(function(o,i){var u=t.apply(n,r);function a(t){e(u,o,i,a,c,"next",t)}function c(t){e(u,o,i,a,c,"throw",t)}a(void 0)})}},t.exports.__esModule=!0,t.exports.default=t.exports}),i=n(o);var u=function(){},a=r(function(t){t.exports=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n},t.exports.__esModule=!0,t.exports.default=t.exports}),c=r(function(t){t.exports=function(t,e){if(null==t)return{};var n,r,o=a(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;i.length>r;r++)-1===e.indexOf(n=i[r])&&{}.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o},t.exports.__esModule=!0,t.exports.default=t.exports}),s=n(c),f=r(function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);e>n;n++)r[n]=t[n];return r},t.exports.__esModule=!0,t.exports.default=t.exports}),l=r(function(t){t.exports=function(t){if(Array.isArray(t))return f(t)},t.exports.__esModule=!0,t.exports.default=t.exports}),p=r(function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports}),d=r(function(t){t.exports=function(t,e){if(t){if("string"==typeof t)return f(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}),v=r(function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}),h=r(function(t){t.exports=function(t){return l(t)||p(t)||d(t)||v()},t.exports.__esModule=!0,t.exports.default=t.exports}),y=n(h),m=r(function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}),w=n(m),b=r(function(t){var e=m.default;t.exports=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,n||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}),g=r(function(t){var e=m.default;t.exports=function(t){var n=b(t,"string");return"symbol"==e(n)?n:n+""},t.exports.__esModule=!0,t.exports.default=t.exports}),x=r(function(t){t.exports=function(t,e,n){return(e=g(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports}),_=n(x),O=r(function(t){function e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}t.exports=function(t){for(var n=1;arguments.length>n;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach(function(e){x(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t},t.exports.__esModule=!0,t.exports.default=t.exports}),E=n(O),j=Object.freeze({__proto__:null,get start(){return ae},get ensureJQuerySupport(){return Rt},get setBootstrapMaxTime(){return yt},get setMountMaxTime(){return mt},get setUnmountMaxTime(){return wt},get setUnloadMaxTime(){return bt},get registerApplication(){return Kt},get unregisterApplication(){return Vt},get getMountedApps(){return zt},get getAppStatus(){return qt},get unloadApplication(){return Zt},get checkActivityFunctions(){return Yt},get getAppNames(){return $t},get pathToActiveWhen(){return Xt},get navigateToUrl(){return St},get triggerAppChange(){return re},get addErrorHandler(){return N},get removeErrorHandler(){return I},get mountRootParcel(){return lt},get NOT_LOADED(){return L},get LOADING_SOURCE_CODE(){return G},get NOT_BOOTSTRAPPED(){return D},get BOOTSTRAPPING(){return U},get NOT_MOUNTED(){return B},get MOUNTING(){return F},get UPDATING(){return W},get LOAD_ERROR(){return q},get MOUNTED(){return H},get UNLOADING(){return $},get UNMOUNTING(){return z},get SKIP_BECAUSE_BROKEN(){return K}});function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function S(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var T=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).CustomEvent,A=function(){try{var t=new T("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?T:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(t,e){var n=document.createEvent("CustomEvent");return e?n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail):n.initCustomEvent(t,!1,!1,void 0),n}:function(t,e){var n=document.createEventObject();return n.type=t,e?(n.bubbles=!!e.bubbles,n.cancelable=!!e.cancelable,n.detail=e.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n},M=[];function k(t,e,n){var r=R(t,e,n);M.length?M.forEach(function(t){return t(r)}):setTimeout(function(){throw r})}function N(t){if("function"!=typeof t)throw Error(C(28,!1));M.push(t)}function I(t){if("function"!=typeof t)throw Error(C(29,!1));var e=!1;return M=M.filter(function(n){var r=n===t;return e=e||r,!r}),e}function C(t,e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;n>o;o++)r[o-2]=arguments[o];return"single-spa minified message #".concat(t,": ").concat(e?e+" ":"","See https://single-spa.js.org/error/?code=").concat(t).concat(r.length?"&arg=".concat(r.join("&arg=")):"")}function R(t,e,n){var r,o="".concat(J(e)," '").concat(Z(e),"' died in status ").concat(e.status,": ");if(t instanceof Error){try{t.message=o+t.message}catch(t){}r=t}else{console.warn(C(30,!1,e.status,Z(e)));try{r=Error(o+JSON.stringify(t))}catch(e){r=t}}return r.appOrParcelName=Z(e),e.status=n,r}var L="NOT_LOADED",G="LOADING_SOURCE_CODE",D="NOT_BOOTSTRAPPED",U="BOOTSTRAPPING",B="NOT_MOUNTED",F="MOUNTING",H="MOUNTED",W="UPDATING",z="UNMOUNTING",$="UNLOADING",q="LOAD_ERROR",K="SKIP_BECAUSE_BROKEN";function Y(t){return t.status===H}function V(t){try{return t.activeWhen(window.location)}catch(e){return k(e,t,K),!1}}function Z(t){return t.name}function Q(t){return!!t.unmountThisParcel}function J(t){return Q(t)?"parcel":"application"}function X(){for(var t=arguments.length-1;t>0;t--)for(var e in arguments[t])"__proto__"!==e&&(arguments[t-1][e]=arguments[t][e]);return arguments[0]}function tt(t,e){for(var n=0;t.length>n;n++)if(e(t[n]))return t[n];return null}function et(t){return t&&("function"==typeof t||Array.isArray(e=t)&&!tt(e,function(t){return"function"!=typeof t}));var e}function nt(t,e){var n=t[e]||[];0===(n=Array.isArray(n)?n:[n]).length&&(n=[function(){return Promise.resolve()}]);var r=J(t),o=Z(t);return function(t){return n.reduce(function(n,i,u){return n.then(function(){var n=i(t);return rt(n)?n:Promise.reject(C(15,!1,r,o,e,u))})},Promise.resolve())}}function rt(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch}function ot(t,e){return Promise.resolve().then(function(){return t.status!==D?t:(t.status=U,t.bootstrap?gt(t,"bootstrap").then(n).catch(function(n){if(e)throw R(n,t,K);return k(n,t,K),t}):Promise.resolve().then(n))});function n(){return t.status=B,t}}function it(t,e){return Promise.resolve().then(function(){if(t.status!==H)return t;t.status=z;var n=Object.keys(t.parcels).map(function(e){return t.parcels[e].unmountThisParcel()});return Promise.all(n).then(r,function(n){return r().then(function(){var r=Error(n.message);if(e)throw R(r,t,K);k(r,t,K)})}).then(function(){return t});function r(){return gt(t,"unmount").then(function(){t.status=B}).catch(function(n){if(e)throw R(n,t,K);k(n,t,K)})}})}var ut=!1,at=!1;function ct(t,e){return Promise.resolve().then(function(){return t.status!==B?t:(ut||(window.dispatchEvent(new A("single-spa:before-first-mount")),ut=!0),gt(t,"mount").then(function(){return t.status=H,at||(window.dispatchEvent(new A("single-spa:first-mount")),at=!0),t}).catch(function(n){return t.status=H,it(t,!0).then(r,r);function r(){if(e)throw R(n,t,K);return k(n,t,K),t}}))})}var st=0,ft={parcels:{}};function lt(){return pt.apply(ft,arguments)}function pt(t,e){var n=this;if(!t||"object"!==P(t)&&"function"!=typeof t)throw Error(C(2,!1));if(t.name&&"string"!=typeof t.name)throw Error(C(3,!1,P(t.name)));if("object"!==P(e))throw Error(C(4,!1,name,P(e)));if(!e.domElement)throw Error(C(5,!1,name));var r,o=st++,i="function"==typeof t,u=i?t:function(){return Promise.resolve(t)},a={id:o,parcels:{},status:i?G:D,customProps:e,parentName:Z(n),unmountThisParcel:function(){return p.then(function(){if(a.status!==H)throw Error(C(6,!1,name,a.status));return it(a,!0)}).then(function(t){return a.parentName&&delete n.parcels[a.id],t}).then(function(t){return s(t),t}).catch(function(t){throw a.status=K,f(t),t})}};n.parcels[o]=a;var c=u();if(!c||"function"!=typeof c.then)throw Error(C(7,!1));var s,f,l=(c=c.then(function(t){if(!t)throw Error(C(8,!1));var e=t.name||"parcel-".concat(o);if(Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!et(t.bootstrap))throw Error(C(9,!1,e));if(!et(t.mount))throw Error(C(10,!1,e));if(!et(t.unmount))throw Error(C(11,!1,e));if(t.update&&!et(t.update))throw Error(C(12,!1,e));var n=nt(t,"bootstrap"),i=nt(t,"mount"),u=nt(t,"unmount");a.status=D,a.name=e,a.bootstrap=n,a.mount=i,a.unmount=u,a.timeouts=xt(t.timeouts),t.update&&(a.update=nt(t,"update"),r.update=function(t){return a.customProps=t,dt(function(t){return Promise.resolve().then(function(){if(t.status!==H)throw Error(C(32,!1,Z(t)));return t.status=W,gt(t,"update").then(function(){return t.status=H,t}).catch(function(e){throw R(e,t,K)})})}(a))})})).then(function(){return ot(a,!0)}),p=l.then(function(){return ct(a,!0)}),d=new Promise(function(t,e){s=t,f=e});return r={mount:function(){return dt(Promise.resolve().then(function(){if(a.status!==B)throw Error(C(13,!1,name,a.status));return n.parcels[o]=a,ct(a)}))},unmount:function(){return dt(a.unmountThisParcel())},getStatus:function(){return a.status},loadPromise:dt(c),bootstrapPromise:dt(l),mountPromise:dt(p),unmountPromise:dt(d)}}function dt(t){return t.then(function(){return null})}function vt(t){var e=Z(t),n="function"==typeof t.customProps?t.customProps(e,window.location):t.customProps;("object"!==P(n)||null===n||Array.isArray(n))&&(n={},console.warn(C(40,!1),e,n));var r=X({},n,{name:e,mountParcel:pt.bind(t),singleSpa:j});return Q(t)&&(r.unmountSelf=t.unmountThisParcel),r}var ht={bootstrap:{millis:4e3,dieOnTimeout:!1,warningMillis:1e3},mount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unmount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unload:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},update:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3}};function yt(t,e,n){if("number"!=typeof t||0>=t)throw Error(C(16,!1));ht.bootstrap={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function mt(t,e,n){if("number"!=typeof t||0>=t)throw Error(C(17,!1));ht.mount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function wt(t,e,n){if("number"!=typeof t||0>=t)throw Error(C(18,!1));ht.unmount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function bt(t,e,n){if("number"!=typeof t||0>=t)throw Error(C(19,!1));ht.unload={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function gt(t,e){var n=t.timeouts[e],r=n.warningMillis,o=J(t);return new Promise(function(i,u){var a=!1,c=!1;t[e](vt(t)).then(function(t){a=!0,i(t)}).catch(function(t){a=!0,u(t)}),setTimeout(function(){return f(1)},r),setTimeout(function(){return f(!0)},n.millis);var s=C(31,!1,e,o,Z(t),n.millis);function f(t){if(!a)if(!0===t)c=!0,n.dieOnTimeout?u(Error(s)):console.error(s);else if(!c){var e=t,o=e*r;console.warn(s),n.millis>o+r&&setTimeout(function(){return f(e+1)},r)}}})}function xt(t){var e={};for(var n in ht)e[n]=X({},ht[n],t&&t[n]||{});return e}function _t(t){return Promise.resolve().then(function(){return t.loadPromise?t.loadPromise:t.status!==L&&t.status!==q?t:(t.status=G,t.loadPromise=Promise.resolve().then(function(){var r=t.loadApp(vt(t));if(!rt(r))throw n=!0,Error(C(33,!1,Z(t)));return r.then(function(n){var r;t.loadErrorTime=null,"object"!==P(e=n)&&(r=34),Object.prototype.hasOwnProperty.call(e,"bootstrap")&&!et(e.bootstrap)&&(r=35),et(e.mount)||(r=36),et(e.unmount)||(r=37);var o=J(e);if(r){var i;try{i=JSON.stringify(e)}catch(t){}return console.error(C(r,!1,o,Z(t),i),e),k(void 0,t,K),t}return e.devtools&&e.devtools.overlays&&(t.devtools.overlays=X({},t.devtools.overlays,e.devtools.overlays)),t.status=D,t.bootstrap=nt(e,"bootstrap"),t.mount=nt(e,"mount"),t.unmount=nt(e,"unmount"),t.unload=nt(e,"unload"),t.timeouts=xt(e.timeouts),delete t.loadPromise,t})}).catch(function(e){var r;return delete t.loadPromise,n?r=K:(r=q,t.loadErrorTime=(new Date).getTime()),k(e,t,r),t}));var e,n})}var Ot,Et="undefined"!=typeof window,jt={hashchange:[],popstate:[]},Pt=["hashchange","popstate"];function St(t){var e;if("string"==typeof t)e=t;else if(this&&this.href)e=this.href;else{if(!(t&&t.currentTarget&&t.currentTarget.href&&t.preventDefault))throw Error(C(14,!1));e=t.currentTarget.href,t.preventDefault()}var n=It(window.location.href),r=It(e);0===e.indexOf("#")?window.location.hash=r.hash:n.host!==r.host&&r.host?window.location.href=e:r.pathname===n.pathname&&r.search===n.search?window.location.hash=r.hash:window.history.pushState(null,null,e)}function Tt(t){var e=this;if(t){var n=t[0].type;Pt.indexOf(n)>=0&&jt[n].forEach(function(n){try{n.apply(e,t)}catch(t){setTimeout(function(){throw t})}})}}function At(){oe([],arguments)}function Mt(t,e){return function(){var n=window.location.href,r=t.apply(this,arguments),o=window.location.href;return Ot&&n===o||(ce()?window.dispatchEvent(function(t,e){var n;try{n=new PopStateEvent("popstate",{state:t})}catch(e){(n=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,t)}return n.singleSpa=!0,n.singleSpaTrigger=e,n}(window.history.state,e)):oe([])),r}}if(Et){window.addEventListener("hashchange",At),window.addEventListener("popstate",At);var kt=window.addEventListener,Nt=window.removeEventListener;window.addEventListener=function(t,e){if("function"!=typeof e||0>Pt.indexOf(t)||tt(jt[t],function(t){return t===e}))return kt.apply(this,arguments);jt[t].push(e)},window.removeEventListener=function(t,e){if("function"!=typeof e||0>Pt.indexOf(t))return Nt.apply(this,arguments);jt[t]=jt[t].filter(function(t){return t!==e})},window.history.pushState=Mt(window.history.pushState,"pushState"),window.history.replaceState=Mt(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(C(41,!1)):window.singleSpaNavigate=St}function It(t){var e=document.createElement("a");return e.href=t,e}var Ct=!1;function Rt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(t||window.$&&window.$.fn&&window.$.fn.jquery&&(t=window.$),t&&!Ct){var e=t.fn.on,n=t.fn.off;t.fn.on=function(t,n){return Lt.call(this,e,window.addEventListener,t,n,arguments)},t.fn.off=function(t,e){return Lt.call(this,n,window.removeEventListener,t,e,arguments)},Ct=!0}}function Lt(t,e,n,r,o){return"string"!=typeof n?t.apply(this,o):(n.split(/\s+/).forEach(function(t){Pt.indexOf(t)>=0&&(e(t,r),n=n.replace(t,""))}),""===n.trim()?this:t.apply(this,o))}var Gt={};function Dt(t){return Promise.resolve().then(function(){var e=Gt[Z(t)];if(!e)return t;if(t.status===L)return Ut(t,e),t;if(t.status===$)return e.promise.then(function(){return t});if(t.status!==B&&t.status!==q)return t;var n=t.status===q?Promise.resolve():gt(t,"unload");return t.status=$,n.then(function(){return Ut(t,e),t}).catch(function(n){return function(t,e,n){delete Gt[Z(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,k(n,t,K),e.reject(n)}(t,e,n),t})})}function Ut(t,e){delete Gt[Z(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,t.status=L,e.resolve()}function Bt(t,e,n,r){Gt[Z(t)]={app:t,resolve:n,reject:r},Object.defineProperty(Gt[Z(t)],"promise",{get:e})}function Ft(t){return Gt[t]}var Ht=[];function Wt(){var t=[],e=[],n=[],r=[],o=(new Date).getTime();return Ht.forEach(function(i){var u=i.status!==K&&V(i);switch(i.status){case q:u&&o-i.loadErrorTime>=200&&n.push(i);break;case L:case G:u&&n.push(i);break;case D:case B:!u&&Ft(Z(i))?t.push(i):u&&r.push(i);break;case H:u||e.push(i)}}),{appsToUnload:t,appsToUnmount:e,appsToLoad:n,appsToMount:r}}function zt(){return Ht.filter(Y).map(Z)}function $t(){return Ht.map(Z)}function qt(t){var e=tt(Ht,function(e){return Z(e)===t});return e?e.status:null}function Kt(t,e,n,r){var o=function(t,e,n,r){var o,i={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"===P(t)?(function(t){if(Array.isArray(t)||null===t)throw Error(C(39,!1));var e=["name","app","activeWhen","customProps"],n=Object.keys(t).reduce(function(t,n){return 0>e.indexOf(n)?t.concat(n):t},[]);if(0!==n.length)throw Error(C(38,!1,e.join(", "),n.join(", ")));if("string"!=typeof t.name||0===t.name.length)throw Error(C(20,!1));if("object"!==P(t.app)&&"function"!=typeof t.app)throw Error(C(20,!1));var r=function(t){return"string"==typeof t||"function"==typeof t};if(!(r(t.activeWhen)||Array.isArray(t.activeWhen)&&t.activeWhen.every(r)))throw Error(C(24,!1));if(!Jt(t.customProps))throw Error(C(22,!1))}(t),i.name=t.name,i.loadApp=t.app,i.activeWhen=t.activeWhen,i.customProps=t.customProps):(function(t,e,n,r){if("string"!=typeof t||0===t.length)throw Error(C(20,!1));if(!e)throw Error(C(23,!1));if("function"!=typeof n)throw Error(C(24,!1));if(!Jt(r))throw Error(C(22,!1))}(t,e,n,r),i.name=t,i.loadApp=e,i.activeWhen=n,i.customProps=r),i.loadApp="function"!=typeof(o=i.loadApp)?function(){return Promise.resolve(o)}:o,i.customProps=function(t){return t||{}}(i.customProps),i.activeWhen=function(t){var e=Array.isArray(t)?t:[t];return e=e.map(function(t){return"function"==typeof t?t:Xt(t)}),function(t){return e.some(function(e){return e(t)})}}(i.activeWhen),i}(t,e,n,r);if(-1!==$t().indexOf(o.name))throw Error(C(21,!1,o.name));Ht.push(X({loadErrorTime:null,status:L,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},o)),Et&&(Rt(),oe())}function Yt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location;return Ht.filter(function(e){return e.activeWhen(t)}).map(Z)}function Vt(t){if(0===Ht.filter(function(e){return Z(e)===t}).length)throw Error(C(25,!1,t));return Zt(t).then(function(){var e=Ht.map(Z).indexOf(t);Ht.splice(e,1)})}function Zt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof t)throw Error(C(26,!1));var n=tt(Ht,function(e){return Z(e)===t});if(!n)throw Error(C(27,!1,t));var r,o=Ft(Z(n));if(e&&e.waitForUnmount){if(o)return o.promise;var i=new Promise(function(t,e){Bt(n,function(){return i},t,e)});return i}return o?(r=o.promise,Qt(n,o.resolve,o.reject)):r=new Promise(function(t,e){Bt(n,function(){return r},t,e),Qt(n,t,e)}),r}function Qt(t,e,n){it(t).then(Dt).then(function(){e(),setTimeout(function(){oe()})}).catch(n)}function Jt(t){return!t||"function"==typeof t||"object"===P(t)&&null!==t&&!Array.isArray(t)}function Xt(t,e){var n=function(t,e){var n=0,r=!1,o="^";"/"!==t[0]&&(t="/"+t);for(var i=0;t.length>i;i++){var u=t[i];(!r&&":"===u||r&&"/"===u)&&a(i)}return a(t.length),RegExp(o,"i");function a(i){var u=t.slice(n,i).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(o+=r?"[^/]+/?":u,i===t.length)if(r)e&&(o+="$");else{var a=e?"":".*";o="/"===o.charAt(o.length-1)?"".concat(o).concat(a,"$"):"".concat(o,"(/").concat(a,")?(#.*)?$")}r=!r,n=i}}(t,e);return function(t){var e=t.origin;e||(e="".concat(t.protocol,"//").concat(t.host));var r=t.href.replace(e,"").replace(t.search,"").split("?")[0];return n.test(r)}}var te=!1,ee=[],ne=Et&&window.location.href;function re(){return oe()}function oe(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;if(te)return new Promise(function(t,n){ee.push({resolve:t,reject:n,eventArguments:e})});var n,r=Wt(),o=r.appsToUnload,i=r.appsToUnmount,u=r.appsToLoad,a=r.appsToMount,c=!1,s=ne,f=ne=window.location.href;return ce()?(te=!0,n=o.concat(u,i,a),Promise.resolve().then(function(){if(window.dispatchEvent(new A(0===n.length?"single-spa:before-no-app-change":"single-spa:before-app-change",v(!0))),window.dispatchEvent(new A("single-spa:before-routing-event",v(!0,{cancelNavigation:l}))),c)return window.dispatchEvent(new A("single-spa:before-mount-routing-event",v(!0))),p(),void St(s);var e=o.map(Dt),r=i.map(it).map(function(t){return t.then(Dt)}).concat(e),f=Promise.all(r);f.then(function(){window.dispatchEvent(new A("single-spa:before-mount-routing-event",v(!0)))});var h=u.map(function(t){return _t(t).then(function(t){return ie(t,f)})}),y=a.filter(function(t){return 0>u.indexOf(t)}).map(function(t){return ie(t,f)});return f.catch(function(t){throw d(),t}).then(function(){return d(),Promise.all(h.concat(y)).catch(function(e){throw t.forEach(function(t){return t.reject(e)}),e}).then(p)})})):(n=u,Promise.resolve().then(function(){var t=u.map(_t);return Promise.all(t).then(d).then(function(){return[]}).catch(function(t){throw d(),t})}));function l(){c=!0}function p(){var e=zt();t.forEach(function(t){return t.resolve(e)});try{window.dispatchEvent(new A(0===n.length?"single-spa:no-app-change":"single-spa:app-change",v())),window.dispatchEvent(new A("single-spa:routing-event",v()))}catch(t){setTimeout(function(){throw t})}if(te=!1,ee.length>0){var r=ee;ee=[],oe(r)}return e}function d(){t.forEach(function(t){Tt(t.eventArguments)}),Tt(e)}function v(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],l=arguments.length>1?arguments[1]:void 0,p={},d=(S(t={},H,[]),S(t,B,[]),S(t,L,[]),S(t,K,[]),t);r?(u.concat(a).forEach(function(t,e){h(t,H)}),o.forEach(function(t){h(t,L)}),i.forEach(function(t){h(t,B)})):n.forEach(function(t){h(t)});var v={detail:{newAppStatuses:p,appsByNewStatus:d,totalAppChanges:n.length,originalEvent:null==e?void 0:e[0],oldUrl:s,newUrl:f,navigationIsCanceled:c}};return l&&X(v.detail,l),v;function h(t,e){var n=Z(t);e=e||qt(n),p[n]=e,(d[e]=d[e]||[]).push(n)}}}function ie(t,e){return V(t)?ot(t).then(function(t){return e.then(function(){return V(t)?ct(t):t})}):e.then(function(){return t})}var ue=!1;function ae(t){ue=!0,t&&t.urlRerouteOnly&&(Ot=t.urlRerouteOnly),Et&&oe()}function ce(){return ue}Et&&setTimeout(function(){ue||console.warn(C(1,!1))},5e3),Et&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods={getRawAppData:function(){return[].concat(Ht)},reroute:oe,NOT_LOADED:L,toLoadPromise:_t,toBootstrapPromise:ot,unregisterApplication:Vt});var se=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t},fe="object"==typeof e&&e&&e.Object===Object&&e,le="object"==typeof self&&self&&self.Object===Object&&self,pe=fe||le||Function("return this")(),de=pe.Symbol,ve=Object.prototype,he=ve.hasOwnProperty,ye=ve.toString,me=de?de.toStringTag:void 0;var we=function(t){var e=he.call(t,me),n=t[me];try{t[me]=void 0;var r=!0}catch(t){}var o=ye.call(t);return r&&(e?t[me]=n:delete t[me]),o},be=Object.prototype.toString;var ge=function(t){return be.call(t)},xe=de?de.toStringTag:void 0;var _e=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":xe&&xe in Object(t)?we(t):ge(t)};var Oe=function(t){return null!=t&&"object"==typeof t};var Ee=function(t){return Oe(t)&&"[object Arguments]"==_e(t)},je=Object.prototype,Pe=je.hasOwnProperty,Se=je.propertyIsEnumerable,Te=Ee(function(){return arguments}())?Ee:function(t){return Oe(t)&&Pe.call(t,"callee")&&!Se.call(t,"callee")},Ae=Te,Me=Array.isArray,ke=de?de.isConcatSpreadable:void 0;var Ne=function(t){return Me(t)||Ae(t)||!!(ke&&t&&t[ke])};var Ie=function t(e,n,r,o,i){var u=-1,a=e.length;for(r||(r=Ne),i||(i=[]);++u<a;){var c=e[u];n>0&&r(c)?n>1?t(c,n-1,r,o,i):se(i,c):o||(i[i.length]=c)}return i};var Ce=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e};var Re=function(){var t=arguments.length;if(!t)return[];for(var e=Array(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return se(Me(n)?Ce(n):[n],Ie(e,1))};var Le=function(t,e){return t===e||t!=t&&e!=e};var Ge=function(t,e){for(var n=t.length;n--;)if(Le(t[n][0],e))return n;return-1},De=Array.prototype.splice;var Ue=function(t){var e=this.__data__,n=Ge(e,t);return n>=0&&(n==e.length-1?e.pop():De.call(e,n,1),--this.size,!0)};var Be=function(t){var e=this.__data__,n=Ge(e,t);return 0>n?void 0:e[n][1]};var Fe=function(t){return Ge(this.__data__,t)>-1};var He=function(t,e){var n=this.__data__,r=Ge(n,t);return 0>r?(++this.size,n.push([t,e])):n[r][1]=e,this};function We(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}We.prototype.clear=function(){this.__data__=[],this.size=0},We.prototype.delete=Ue,We.prototype.get=Be,We.prototype.has=Fe,We.prototype.set=He;var ze=We;var $e=function(){this.__data__=new ze,this.size=0};var qe=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};var Ke=function(t){return this.__data__.get(t)};var Ye=function(t){return this.__data__.has(t)};var Ve=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var Ze,Qe=function(t){if(!Ve(t))return!1;var e=_e(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Je=pe["__core-js_shared__"],Xe=(Ze=/[^.]+$/.exec(Je&&Je.keys&&Je.keys.IE_PROTO||""))?"Symbol(src)_1."+Ze:"";var tn=function(t){return!!Xe&&Xe in t},en=Function.prototype.toString;var nn=function(t){if(null!=t){try{return en.call(t)}catch(t){}try{return t+""}catch(t){}}return""},rn=/^\[object .+?Constructor\]$/,on=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var un=function(t){return!(!Ve(t)||tn(t))&&(Qe(t)?on:rn).test(nn(t))};var an=function(t,e){return null==t?void 0:t[e]};var cn=function(t,e){var n=an(t,e);return un(n)?n:void 0},sn=cn(pe,"Map"),fn=cn(Object,"create");var ln=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},pn=Object.prototype.hasOwnProperty;var dn=function(t){var e=this.__data__;if(fn){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return pn.call(e,t)?e[t]:void 0},vn=Object.prototype.hasOwnProperty;var hn=function(t){var e=this.__data__;return fn?void 0!==e[t]:vn.call(e,t)};var yn=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=fn&&void 0===e?"__lodash_hash_undefined__":e,this};function mn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}mn.prototype.clear=function(){this.__data__=fn?fn(null):{},this.size=0},mn.prototype.delete=ln,mn.prototype.get=dn,mn.prototype.has=hn,mn.prototype.set=yn;var wn=mn;var bn=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var gn=function(t,e){var n=t.__data__;return bn(e)?n["string"==typeof e?"string":"hash"]:n.map};var xn=function(t){var e=gn(this,t).delete(t);return this.size-=e?1:0,e};var _n=function(t){return gn(this,t).get(t)};var On=function(t){return gn(this,t).has(t)};var En=function(t,e){var n=gn(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function jn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}jn.prototype.clear=function(){this.size=0,this.__data__={hash:new wn,map:new(sn||ze),string:new wn}},jn.prototype.delete=xn,jn.prototype.get=_n,jn.prototype.has=On,jn.prototype.set=En;var Pn=jn;var Sn=function(t,e){var n=this.__data__;if(n instanceof ze){var r=n.__data__;if(!sn||199>r.length)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Pn(r)}return n.set(t,e),this.size=n.size,this};function Tn(t){var e=this.__data__=new ze(t);this.size=e.size}Tn.prototype.clear=$e,Tn.prototype.delete=qe,Tn.prototype.get=Ke,Tn.prototype.has=Ye,Tn.prototype.set=Sn;var An=Tn,Mn=function(){try{var t=cn(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();var kn=function(t,e,n){"__proto__"==e&&Mn?Mn(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var Nn=function(t,e,n){(void 0!==n&&!Le(t[e],n)||void 0===n&&!(e in t))&&kn(t,e,n)};var In=function(t){return function(e,n,r){for(var o=-1,i=Object(e),u=r(e),a=u.length;a--;){var c=u[t?a:++o];if(!1===n(i[c],c,i))break}return e}}(),Cn=r(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,o=r&&r.exports===n?pe.Buffer:void 0,i=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=i?i(n):new t.constructor(n);return t.copy(r),r}}),Rn=pe.Uint8Array;var Ln=function(t){var e=new t.constructor(t.byteLength);return new Rn(e).set(new Rn(t)),e};var Gn=function(t,e){var n=e?Ln(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)},Dn=Object.create,Un=function(){function t(){}return function(e){if(!Ve(e))return{};if(Dn)return Dn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();var Bn=function(t,e){return function(n){return t(e(n))}},Fn=Bn(Object.getPrototypeOf,Object),Hn=Object.prototype;var Wn=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Hn)};var zn=function(t){return"function"!=typeof t.constructor||Wn(t)?{}:Un(Fn(t))};var $n=function(t){return"number"==typeof t&&t>-1&&t%1==0&&9007199254740991>=t};var qn=function(t){return null!=t&&$n(t.length)&&!Qe(t)};var Kn=function(t){return Oe(t)&&qn(t)};var Yn=function(){return!1},Vn=r(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,o=r&&r.exports===n?pe.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||Yn}),Zn=Function.prototype.toString,Qn=Object.prototype.hasOwnProperty,Jn=Zn.call(Object);var Xn=function(t){if(!Oe(t)||"[object Object]"!=_e(t))return!1;var e=Fn(t);if(null===e)return!0;var n=Qn.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Zn.call(n)==Jn},tr={};tr["[object Float32Array]"]=tr["[object Float64Array]"]=tr["[object Int8Array]"]=tr["[object Int16Array]"]=tr["[object Int32Array]"]=tr["[object Uint8Array]"]=tr["[object Uint8ClampedArray]"]=tr["[object Uint16Array]"]=tr["[object Uint32Array]"]=!0,tr["[object Arguments]"]=tr["[object Array]"]=tr["[object ArrayBuffer]"]=tr["[object Boolean]"]=tr["[object DataView]"]=tr["[object Date]"]=tr["[object Error]"]=tr["[object Function]"]=tr["[object Map]"]=tr["[object Number]"]=tr["[object Object]"]=tr["[object RegExp]"]=tr["[object Set]"]=tr["[object String]"]=tr["[object WeakMap]"]=!1;var er=function(t){return Oe(t)&&$n(t.length)&&!!tr[_e(t)]};var nr=function(t){return function(e){return t(e)}},rr=r(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,o=r&&r.exports===n&&fe.process,i=function(){try{var t=r&&r.require&&r.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i}),or=rr&&rr.isTypedArray,ir=or?nr(or):er;var ur=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},ar=Object.prototype.hasOwnProperty;var cr=function(t,e,n){var r=t[e];ar.call(t,e)&&Le(r,n)&&(void 0!==n||e in t)||kn(t,e,n)};var sr=function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,u=e.length;++i<u;){var a=e[i],c=r?r(n[a],t[a],a,n,t):void 0;void 0===c&&(c=t[a]),o?kn(n,a,c):cr(n,a,c)}return n};var fr=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},lr=/^(?:0|[1-9]\d*)$/;var pr=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&lr.test(t))&&t>-1&&t%1==0&&e>t},dr=Object.prototype.hasOwnProperty;var vr=function(t,e){var n=Me(t),r=!n&&Ae(t),o=!n&&!r&&Vn(t),i=!n&&!r&&!o&&ir(t),u=n||r||o||i,a=u?fr(t.length,String):[],c=a.length;for(var s in t)!e&&!dr.call(t,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||pr(s,c))||a.push(s);return a};var hr=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e},yr=Object.prototype.hasOwnProperty;var mr=function(t){if(!Ve(t))return hr(t);var e=Wn(t),n=[];for(var r in t)("constructor"!=r||!e&&yr.call(t,r))&&n.push(r);return n};var wr=function(t){return qn(t)?vr(t,!0):mr(t)};var br=function(t){return sr(t,wr(t))};var gr=function(t,e,n,r,o,i,u){var a=ur(t,n),c=ur(e,n),s=u.get(c);if(s)Nn(t,n,s);else{var f=i?i(a,c,n+"",t,e,u):void 0,l=void 0===f;if(l){var p=Me(c),d=!p&&Vn(c),v=!p&&!d&&ir(c);f=c,p||d||v?Me(a)?f=a:Kn(a)?f=Ce(a):d?(l=!1,f=Cn(c,!0)):v?(l=!1,f=Gn(c,!0)):f=[]:Xn(c)||Ae(c)?(f=a,Ae(a)?f=br(a):Ve(a)&&!Qe(a)||(f=zn(c))):l=!1}l&&(u.set(c,f),o(f,c,r,i,u),u.delete(c)),Nn(t,n,f)}};var xr=function t(e,n,r,o,i){e!==n&&In(n,function(u,a){if(i||(i=new An),Ve(u))gr(e,n,a,r,t,o,i);else{var c=o?o(ur(e,a),u,a+"",e,n,i):void 0;void 0===c&&(c=u),Nn(e,a,c)}},wr)};var _r=function(t){return t};var Or=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},Er=Math.max;var jr=function(t,e,n){return e=Er(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=Er(r.length-e,0),u=Array(i);++o<i;)u[o]=r[e+o];o=-1;for(var a=Array(e+1);++o<e;)a[o]=r[o];return a[e]=n(u),Or(t,this,a)}};var Pr=function(t){return function(){return t}},Sr=Date.now;var Tr=function(t){var e=0,n=0;return function(){var r=Sr(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},Ar=Tr(Mn?function(t,e){return Mn(t,"toString",{configurable:!0,enumerable:!1,value:Pr(e),writable:!0})}:_r);var Mr=function(t,e){return Ar(jr(t,e,_r),t+"")};var kr=function(t,e,n){if(!Ve(n))return!1;var r=typeof e;return!!("number"==r?qn(n)&&pr(e,n.length):"string"==r&&e in n)&&Le(n[e],t)};var Nr=function(t){return Mr(function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,u=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&kr(n[0],n[1],u)&&(i=3>o?void 0:i,o=1),e=Object(e);++r<o;){var a=n[r];a&&t(e,a,r,i)}return e})}(function(t,e,n,r){xr(t,e,n,r)});var Ir=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t},Cr=Bn(Object.keys,Object),Rr=Object.prototype.hasOwnProperty;var Lr=function(t){if(!Wn(t))return Cr(t);var e=[];for(var n in Object(t))Rr.call(t,n)&&"constructor"!=n&&e.push(n);return e};var Gr=function(t){return qn(t)?vr(t):Lr(t)};var Dr=function(t,e){return function(n,r){if(null==n)return n;if(!qn(n))return t(n,r);for(var o=n.length,i=e?o:-1,u=Object(n);(e?i--:++i<o)&&!1!==r(u[i],i,u););return n}}(function(t,e){return t&&In(t,e,Gr)});var Ur=function(t){return"function"==typeof t?t:_r};var Br=function(t,e){return(Me(t)?Ir:Dr)(t,Ur(e))};function Fr(t){return Fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fr(t)}function Hr(t){var e=function(t,e){if("object"!=Fr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Fr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Fr(e)?e:e+""}function Wr(t,e,n){return(e=Hr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zr(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)}function $r(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function u(t){zr(i,r,o,u,a,"next",t)}function a(t){zr(i,r,o,u,a,"throw",t)}u(void 0)})}}var qr=r(function(t){t.exports=function(t,e){this.v=t,this.k=e},t.exports.__esModule=!0,t.exports.default=t.exports}),Kr=r(function(t){function e(n,r,o,i){var u=Object.defineProperty;try{u({},"",{})}catch(n){u=0}t.exports=e=function(t,n,r,o){function i(n,r){e(t,n,function(t){return this._invoke(n,r,t)})}n?u?u(t,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[n]=r:(i("next",0),i("throw",1),i("return",2))},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,r,o,i)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}),Yr=r(function(t){function e(){
|
|
2
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
3
|
+
var n,r,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.toStringTag||"@@toStringTag";function a(t,e,o,i){var u=Object.create((e&&e.prototype instanceof s?e:s).prototype);return Kr(u,"_invoke",function(t,e,o){var i,u,a,s=0,f=o||[],l=!1,p={p:0,n:0,v:n,a:d,f:d.bind(n,4),d:function(t,e){return i=t,u=0,a=n,p.n=e,c}};function d(t,e){for(u=t,a=e,r=0;!l&&s&&!o&&f.length>r;r++){var o,i=f[r],d=p.p,v=i[2];t>3?(o=v===e)&&(a=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=n):d>=i[0]&&((o=2>t&&i[1]>d)?(u=0,p.v=e,p.n=i[1]):v>d&&(o=3>t||i[0]>e||e>v)&&(i[4]=t,i[5]=e,p.n=v,u=0))}if(o||t>1)return c;throw l=!0,e}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&d(f,v),u=f,a=v;(r=2>u?n:a)||!l;){i||(u?3>u?(u>1&&(p.n=-1),d(u,a)):p.n=a:p.v=a);try{if(s=2,i){if(u||(o="next"),r=i[o]){if(!(r=r.call(i,a)))throw TypeError("iterator result is not an object");if(!r.done)return r;a=r.value,2>u&&(u=0)}else 1===u&&(r=i.return)&&r.call(i),2>u&&(a=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=n}else if((r=(l=0>p.n)?a:t.call(e,p))!==c)break}catch(t){i=n,u=1,a=t}finally{s=1}}return{value:r,done:l}}}(t,o,i),!0),u}var c={};function s(){}function f(){}function l(){}r=Object.getPrototypeOf;var p=[][i]?r(r([][i]())):(Kr(r={},i,function(){return this}),r),d=l.prototype=s.prototype=Object.create(p);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,Kr(t,u,"GeneratorFunction")),t.prototype=Object.create(d),t}return f.prototype=l,Kr(d,"constructor",l),Kr(l,"constructor",f),f.displayName="GeneratorFunction",Kr(l,u,"GeneratorFunction"),Kr(d),Kr(d,u,"Generator"),Kr(d,i,function(){return this}),Kr(d,"toString",function(){return"[object Generator]"}),(t.exports=e=function(){return{w:a,m:v}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}),Vr=r(function(t){t.exports=function t(e,n){function r(t,o,i,u){try{var a=e[t](o),c=a.value;return c instanceof qr?n.resolve(c.v).then(function(t){r("next",t,i,u)},function(t){r("throw",t,i,u)}):n.resolve(c).then(function(t){a.value=t,i(a)},function(t){return r("throw",t,i,u)})}catch(t){u(t)}}var o;this.next||(Kr(t.prototype),Kr(t.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Kr(this,"_invoke",function(t,e,i){function u(){return new n(function(e,n){r(t,i,e,n)})}return o=o?o.then(u,u):u()},!0)},t.exports.__esModule=!0,t.exports.default=t.exports}),Zr=r(function(t){t.exports=function(t,e,n,r,o){return new Vr(Yr().w(t,e,n,r),o||Promise)},t.exports.__esModule=!0,t.exports.default=t.exports}),Qr=r(function(t){t.exports=function(t,e,n,r,o){var i=Zr(t,e,n,r,o);return i.next().then(function(t){return t.done?t.value:i.next()})},t.exports.__esModule=!0,t.exports.default=t.exports}),Jr=r(function(t){t.exports=function(t){var e=Object(t),n=[];for(var r in e)n.unshift(r);return function t(){for(;n.length;)if((r=n.pop())in e)return t.value=r,t.done=!1,t;return t.done=!0,t}},t.exports.__esModule=!0,t.exports.default=t.exports}),Xr=r(function(t){var e=m.default;t.exports=function(t){if(null!=t){var n=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError(e(t)+" is not iterable")},t.exports.__esModule=!0,t.exports.default=t.exports}),to=r(function(t){function e(){var n=Yr(),r=n.m(e),o=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function i(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===o||"GeneratorFunction"===(e.displayName||e.name))}var u={throw:1,return:2,break:3,continue:3};function a(t){var e,n;return function(r){e||(e={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(t,e){return n(r.a,u[t],e)},delegateYield:function(t,o,i){return e.resultName=o,n(r.d,Xr(t),i)},finish:function(t){return n(r.f,t)}},n=function(t,n,o){r.p=e.prev,r.n=e.next;try{return t(n,o)}finally{e.next=r.n}}),e.resultName&&(e[e.resultName]=r.v,e.resultName=void 0),e.sent=r.v,e.next=r.n;try{return t.call(this,e)}finally{r.p=e.prev,r.n=e.next}}}return(t.exports=e=function(){return{wrap:function(t,e,r,o){return n.w(a(t),e,r,o&&o.reverse())},isGeneratorFunction:i,mark:n.m,awrap:function(t,e){return new qr(t,e)},AsyncIterator:Vr,async:function(t,e,n,r,o){return(i(e)?Zr:Qr)(a(t),e,n,r,o)},keys:Jr,values:Xr}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}),eo=to(),no=eo;try{regeneratorRuntime=eo}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=eo:Function("r","regeneratorRuntime = r")(eo)}function ro(t,e){return Promise.all(t.map(function(t,n){return t.then(function(t){return{status:"fulfilled",value:t}}).catch(function(t){if(null!=e&&e(n))throw t;return{status:"rejected",reason:t}})}))}function oo(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);e>n;n++)r[n]=t[n];return r}function io(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,u,a=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(s)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return oo(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oo(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var uo,ao,co,so="undefined"!=typeof navigator&&-1!==navigator.userAgent.indexOf("Trident");function fo(t,e){if(!t.hasOwnProperty(e)||!isNaN(e)&&t.length>e)return!0;if(!so)return!1;try{return t[e]&&"undefined"!=typeof window&&t[e].parent===window}catch(t){return!0}}function lo(t){var e=t.indexOf(">")+1,n=t.lastIndexOf("<");return t.substring(e,n)}function po(t){if("object"===Fr(t))return"/";try{var e=new URL(t,location.href),n=e.origin,r=e.pathname.split("/");return r.pop(),"".concat(n).concat(r.join("/"),"/")}catch(t){return console.warn(t),""}}var vo=window.requestIdleCallback||function(t){var e=Date.now();return setTimeout(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1)};var ho={};function yo(t){return(new DOMParser).parseFromString('<script src="'.concat(t,'"><\/script>'),"text/html").scripts[0].src}var mo=/(<script[\s\S]*?>)[\s\S]*?<\/script>/gi,wo=/<(script)\s+((?!type=('|")text\/ng\x2Dtemplate\3)[\s\S])*?>[\s\S]*?<\/\1>/i,bo=/.*\ssrc=('|")?([^>'"\s]+)/,go=/.*\stype=('|")?([^>'"\s]+)/,xo=/.*\sentry\s*.*/,_o=/.*\sasync\s*.*/,Oo=/.*\scrossorigin=('|")?use-credentials\1/,Eo=/.*\snomodule\s*.*/,jo=/.*\stype=('|")?module('|")?\s*.*/,Po=/<(link)\s+[\s\S]*?>/gi,So=/\srel=('|")?(preload|prefetch)\1/,To=/.*\shref=('|")?([^>'"\s]+)/,Ao=/.*\sas=('|")?font\1.*/,Mo=/<style[^>]*>[\s\S]*?<\/style>/gi,ko=/\s+rel=('|")?stylesheet\1.*/,No=/.*\shref=('|")?([^>'"\s]+)/,Io=/<!--([\s\S]*?)-->/g,Co=/<link(\s+|\s+[\s\S]+\s+)ignore(\s*|\s+[\s\S]*|=[\s\S]*)>/i,Ro=/<style(\s+|\s+[\s\S]+\s+)ignore(\s*|\s+[\s\S]*|=[\s\S]*)>/i,Lo=/<script(\s+|\s+[\s\S]+\s+)ignore(\s*|\s+[\s\S]*|=[\s\S]*)>/i;function Go(t){return t.startsWith("http://")||t.startsWith("https://")}function Do(t,e){return""+new URL(t,e)}var Uo=function(t){return"\x3c!-- ".concat(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?"prefetch/preload":""," link ").concat(t," replaced by import-html-entry --\x3e")},Bo=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"\x3c!-- ".concat(arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"cors":""," ").concat(e?"async":""," script ").concat(t," replaced by import-html-entry --\x3e")},Fo=function(t){return"\x3c!-- ignore asset ".concat(t||"file"," replaced by import-html-entry --\x3e")},Ho=function(t,e){return"\x3c!-- ".concat(e?"nomodule":"module"," script ").concat(t," ignored by import-html-entry --\x3e")};function Wo(t,e,n){var r=[],o=[],i=null,u="noModule"in document.createElement("script"),a={template:t.replace(Io,"").replace(Po,function(t){if(!!t.match(ko)){var n=t.match(No),r=t.match(Co);if(n){var i=n&&n[2],u=i;return i&&!Go(i)&&(u=Do(i,e)),r?Fo(u):(u=yo(u),o.push(u),Uo(u))}}if(t.match(So)&&t.match(To)&&!t.match(Ao)){var a=io(t.match(To),3);return Uo(a[2],!0)}return t}).replace(Mo,function(t){return Ro.test(t)?Fo("style file"):t}).replace(mo,function(t,n){var o,a=n.match(Lo),c=u&&!!n.match(Eo)||!u&&!!n.match(jo),s=n.match(go);if((o=s&&s[2])&&-1===["text/javascript","module","application/javascript","text/ecmascript","application/ecmascript"].indexOf(o))return t;if(wo.test(t)&&n.match(bo)){var f=n.match(xo),l=n.match(bo),p=l&&l[2];if(i&&f)throw new SyntaxError("You should not set multiply entry script!");if(p&&(Go(p)||(p=Do(p,e)),p=yo(p)),i=i||f&&p,a)return Fo(p||"js file");if(c)return Ho(p||"js file",u);if(p){var d=!!n.match(_o),v=!!n.match(Oo);return r.push(d||v?{async:d,src:p,crossOrigin:v}:p),Bo(p,d,v)}return t}return a?Fo("js file"):c?Ho("js file",u):(lo(t).split(/[\r\n]+/).every(function(t){return!t.trim()||t.trim().startsWith("//")})||r.push(t),"\x3c!-- inline scripts replaced by import-html-entry --\x3e")}),scripts:r=r.filter(function(t){return!!t}),styles:o,entry:i||r[r.length-1]};return"function"==typeof n&&(a=n(a)),a}function zo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function $o(t){for(var e=1;arguments.length>e;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zo(Object(n),!0).forEach(function(e){Wr(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var qo={},Ko={},Yo={};if(!window.fetch)throw Error('[import-html-entry] Here is no "fetch" on the window env, you need to polyfill it');var Vo=window.fetch.bind(window);function Zo(t){return t}function Qo(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).fetch,r=t;return Xo(e,void 0===n?Vo:n).then(function(t){return r=t.reduce(function(t,e){var n=e.src,r=e.value;return t=t.replace(Uo(n),Jo(n)?"".concat(n):"<style>/* ".concat(n," */").concat(r,"</style>"))},r)})}var Jo=function(t){return t.startsWith("<")};function Xo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vo;return ro(t.map(function(){var t=$r(no.mark(function t(n){return no.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!Jo(n)){t.next=4;break}return t.abrupt("return",lo(n));case 4:return t.abrupt("return",qo[n]||(qo[n]=e(n).then(function(t){if(t.status>=400)throw Error("".concat(n," load failed with status ").concat(t.status));return t.text()}).catch(function(t){try{-1===t.message.indexOf(n)&&(t.message="".concat(n," ").concat(t.message))}catch(t){}throw t})));case 5:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}())).then(function(e){return e.map(function(e,n){return"fulfilled"===e.status&&(e.value={src:t[n],value:e.value}),e}).filter(function(t){return"rejected"===t.status&&Promise.reject(t.reason),"fulfilled"===t.status}).map(function(t){return t.value})})}function ti(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vo,n=arguments.length>2?arguments[2]:void 0,r=function(t,n){return Ko[t]||(Ko[t]=e(t,n).then(function(e){if(e.status>=400)throw Error("".concat(t," load failed with status ").concat(e.status));return e.text()}).catch(function(e){try{-1===e.message.indexOf(t)&&(e.message="".concat(t," ").concat(e.message))}catch(t){}throw e}))};return ro(t.map(function(){var t=$r(no.mark(function t(e){var n,o;return no.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("string"!=typeof e){t.next=8;break}if(!Jo(e)){t.next=5;break}return t.abrupt("return",lo(e));case 5:return t.abrupt("return",r(e));case 6:t.next=13;break;case 8:if(n=e.src,o=e.crossOrigin?{credentials:"include"}:{},!e.async){t.next=12;break}return t.abrupt("return",{src:n,async:!0,content:new Promise(function(t,e){return vo(function(){return r(n,o).then(t,e)})})});case 12:return t.abrupt("return",r(n,o));case 13:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()),function(e){return t[e]===n}).then(function(e){return e.map(function(e,n){return"fulfilled"===e.status&&(e.value={src:t[n],value:e.value}),e}).filter(function(t){return"rejected"===t.status&&Promise.reject(t.reason),"fulfilled"===t.status}).map(function(t){return t.value})})}function ei(t,e){setTimeout(function(){throw console.error(e),t})}function ni(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.fetch,i=r.strictGlobal,u=void 0!==i&&i,a=r.success,c=r.error,s=void 0===c?function(){}:c,f=r.beforeExec,l=void 0===f?function(){}:f,p=r.afterExec,d=void 0===p?function(){}:p,v=r.scopedGlobalVariables,h=void 0===v?[]:v;return ti(e,void 0===o?Vo:o,t).then(function(e){var r=function(t,e){var r=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.proxy,o=n.strictGlobal,i=n.scopedGlobalVariables,u=void 0===i?[]:i,a=Jo(t)?"":"//# sourceURL=".concat(t,"\n"),c=u.length?"const {".concat(u.join(","),"}=this;"):"";return(0,eval)("window").proxy=r,o?c?";(function(){with(this){".concat(c).concat(e,"\n").concat(a,"}}).bind(window.proxy)();"):";(function(window, self, globalThis){with(window){;".concat(e,"\n").concat(a,"}}).bind(window.proxy)(window.proxy, window.proxy, window.proxy);"):";(function(window, self, globalThis){;".concat(e,"\n").concat(a,"}).bind(window.proxy)(window.proxy, window.proxy, window.proxy);")}(t,l(e,t)||e,{proxy:n,strictGlobal:u,scopedGlobalVariables:h});!function(t,e){var n=t;ho[n]||(ho[n]=(0,eval)("(function(){".concat(e,"})"))),ho[n].call(window)}(t,r),d(e,t)};function o(e,o,i){if(e===t){!function(t){for(var e in uo=ao=void 0,t)fo(t,e)||(uo?ao||(ao=e):uo=e,co=e)}(u?n:window);try{r(e,o);var a=n[function(t){var e,n=0,r=!1;for(var o in t)if(!fo(t,o)){for(var i=0;i<window.frames.length&&!r;i++)if(window.frames[i]===t[o]){r=!0;break}if(!r&&(0===n&&o!==uo||1===n&&o!==ao))return o;n++,e=o}if(e!==co)return e}(u?n:window)]||{};i(a)}catch(t){throw console.error("[import-html-entry]: error occurs while executing entry script ".concat(e)),t}}else if("string"==typeof o)try{r(null!=e&&e.src?e.src:e,o)}catch(t){ei(t,"[import-html-entry]: error occurs while executing normal script ".concat(e))}else o.async&&(null==o||o.content.then(function(t){return r(o.src,t)}).catch(function(t){ei(t,"[import-html-entry]: error occurs while executing async script ".concat(o.src))}))}function i(n,r){if(e.length>n){var u=e[n];o(u.src,u.value,r),t||n!==e.length-1?i(n+1,r):r()}}return new Promise(function(t){return i(0,a||t)})}).catch(function(t){throw s(),t})}function ri(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Vo,r=!1,o=po,i=Zo,u=e.postProcessTemplate;return"function"==typeof e?n=e:(e.fetch&&("function"==typeof e.fetch?n=e.fetch:(n=e.fetch.fn||Vo,r=!!e.fetch.autoDecodeResponse)),o=e.getPublicPath||e.getDomain||po,i=e.getTemplate||Zo),Yo[t]||(Yo[t]=n(t).then(function(t){return function(t,e){if(!e)return t.text();if(!t.headers)return t.text();var n=t.headers.get("Content-Type");if(!n)return t.text();var r="utf-8",o=n.split(";");if(2===o.length){var i=io(o[1].split("="),2)[1],u=i&&i.trim();u&&(r=u)}return"UTF-8"===r.toUpperCase()?t.text():t.blob().then(function(t){return new Promise(function(e,n){var o=new window.FileReader;o.onload=function(){e(o.result)},o.onerror=n,o.readAsText(t,r)})})}(t,r)}).then(function(e){var r=o(t),a=Wo(i(e),r,u),c=a.scripts,s=a.entry,f=a.styles;return Qo(a.template,f,{fetch:n}).then(function(t){return{template:t,assetPublicPath:r,getExternalScripts:function(){return ti(c,n)},getExternalStyleSheets:function(){return Xo(f,n)},execScripts:function(t,e){return c.length?ni(s,c,t,$o({fetch:n,strictGlobal:e},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})):Promise.resolve()}}})}))}function oi(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.fetch,o=void 0===r?Vo:r,i=n.getTemplate,u=void 0===i?Zo:i,a=n.postProcessTemplate,c=n.getPublicPath||n.getDomain||po;if(!t)throw new SyntaxError("entry should not be empty!");if("string"==typeof t)return ri(t,{fetch:o,getPublicPath:c,getTemplate:u,postProcessTemplate:a});if(Array.isArray(t.scripts)||Array.isArray(t.styles)){var s=t.scripts,f=void 0===s?[]:s,l=t.styles,p=void 0===l?[]:l,d=t.html;return Qo(u(function(t){return f.reduce(function(t,e){return"".concat(t).concat(Bo(e))},t)}((e=void 0===d?"":d,p.reduceRight(function(t,e){return"".concat(Uo(e)).concat(t)},e)))),p,{fetch:o}).then(function(e){return{template:e,assetPublicPath:c(t),getExternalScripts:function(){return ti(f,o)},getExternalStyleSheets:function(){return Xo(p,o)},execScripts:function(t,e){return f.length?ni(f[f.length-1],f,t,$o({fetch:o,strictGlobal:e},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})):Promise.resolve()}}})}throw new SyntaxError("entry scripts or styles should be array!")}function ii(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=Object.create((r&&r.prototype instanceof a?r:a).prototype);return ui(c,"_invoke",function(n,r,o){var i,a,c,s=0,f=o||[],l=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,a=0,c=t,p.n=n,u}};function d(n,r){for(a=n,c=r,e=0;!l&&s&&!o&&f.length>e;e++){var o,i=f[e],d=p.p,v=i[2];n>3?(o=v===r)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):d>=i[0]&&((o=2>n&&i[1]>d)?(a=0,p.v=r,p.n=i[1]):v>d&&(o=3>n||i[0]>r||r>v)&&(i[4]=n,i[5]=r,p.n=v,a=0))}if(o||n>1)return u;throw l=!0,r}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&d(f,v),a=f,c=v;(e=2>a?t:c)||!l;){i||(a?3>a?(a>1&&(p.n=-1),d(a,c)):p.n=c:p.v=c);try{if(s=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,2>a&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),2>a&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(l=0>p.n)?c:n.call(r,p))!==u)break}catch(e){i=t,a=1,c=e}finally{s=1}}return{value:e,done:l}}}(n,o,i),!0),c}var u={};function a(){}function c(){}function s(){}e=Object.getPrototypeOf;var f=[][r]?e(e([][r]())):(ui(e={},r,function(){return this}),e),l=s.prototype=a.prototype=Object.create(f);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,ui(t,o,"GeneratorFunction")),t.prototype=Object.create(l),t}return c.prototype=s,ui(l,"constructor",s),ui(s,"constructor",c),c.displayName="GeneratorFunction",ui(s,o,"GeneratorFunction"),ui(l),ui(l,o,"Generator"),ui(l,r,function(){return this}),ui(l,"toString",function(){return"[object Generator]"}),(ii=function(){return{w:i,m:p}})()}function ui(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}ui=function(t,e,n,r){function i(e,n){ui(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},ui(t,e,n,r)}var ai=window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__;function ci(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=Object.create((r&&r.prototype instanceof a?r:a).prototype);return si(c,"_invoke",function(n,r,o){var i,a,c,s=0,f=o||[],l=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,a=0,c=t,p.n=n,u}};function d(n,r){for(a=n,c=r,e=0;!l&&s&&!o&&f.length>e;e++){var o,i=f[e],d=p.p,v=i[2];n>3?(o=v===r)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):d>=i[0]&&((o=2>n&&i[1]>d)?(a=0,p.v=r,p.n=i[1]):v>d&&(o=3>n||i[0]>r||r>v)&&(i[4]=n,i[5]=r,p.n=v,a=0))}if(o||n>1)return u;throw l=!0,r}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&d(f,v),a=f,c=v;(e=2>a?t:c)||!l;){i||(a?3>a?(a>1&&(p.n=-1),d(a,c)):p.n=c:p.v=c);try{if(s=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,2>a&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),2>a&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(l=0>p.n)?c:n.call(r,p))!==u)break}catch(e){i=t,a=1,c=e}finally{s=1}}return{value:e,done:l}}}(n,o,i),!0),c}var u={};function a(){}function c(){}function s(){}e=Object.getPrototypeOf;var f=[][r]?e(e([][r]())):(si(e={},r,function(){return this}),e),l=s.prototype=a.prototype=Object.create(f);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,si(t,o,"GeneratorFunction")),t.prototype=Object.create(l),t}return c.prototype=s,si(l,"constructor",s),si(s,"constructor",c),c.displayName="GeneratorFunction",si(s,o,"GeneratorFunction"),si(l),si(l,o,"Generator"),si(l,r,function(){return this}),si(l,"toString",function(){return"[object Generator]"}),(ci=function(){return{w:i,m:p}})()}function si(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}si=function(t,e,n,r){function i(e,n){si(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},si(t,e,n,r)}function fi(t,e){return Nr({},function(t){return{beforeLoad:function(){return i(ci().m(function e(){return ci().w(function(e){for(;;)switch(e.n){case 0:t.__POWERED_BY_QIANKUN__=!0;case 1:return e.a(2)}},e)}))()},beforeMount:function(){return i(ci().m(function e(){return ci().w(function(e){for(;;)switch(e.n){case 0:t.__POWERED_BY_QIANKUN__=!0;case 1:return e.a(2)}},e)}))()},beforeUnmount:function(){return i(ci().m(function e(){return ci().w(function(e){for(;;)switch(e.n){case 0:delete t.__POWERED_BY_QIANKUN__;case 1:return e.a(2)}},e)}))()}}}(t),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",n=!1;return{beforeLoad:function(){return i(ii().m(function n(){return ii().w(function(n){for(;;)switch(n.n){case 0:t.__INJECTED_PUBLIC_PATH_BY_QIANKUN__=e;case 1:return n.a(2)}},n)}))()},beforeMount:function(){return i(ii().m(function r(){return ii().w(function(r){for(;;)switch(r.n){case 0:n&&(t.__INJECTED_PUBLIC_PATH_BY_QIANKUN__=e);case 1:return r.a(2)}},r)}))()},beforeUnmount:function(){return i(ii().m(function e(){return ii().w(function(e){for(;;)switch(e.n){case 0:void 0===ai?delete t.__INJECTED_PUBLIC_PATH_BY_QIANKUN__:t.__INJECTED_PUBLIC_PATH_BY_QIANKUN__=ai,n=!0;case 1:return e.a(2)}},e)}))()}}}(t,e),function(t,e){return Re(null!=t?t:[],null!=e?e:[])})}var li=r(function(t){function e(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,g(r.key),r)}}t.exports=function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}),pi=n(li),di=r(function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports}),vi=n(di),hi=r(function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}),yi=r(function(t){var e=m.default;t.exports=function(t,n){if(n&&("object"==e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return hi(t)},t.exports.__esModule=!0,t.exports.default=t.exports}),mi=n(yi),wi=r(function(t){function e(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(t.exports=e=function(){return!!n},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}),bi=n(wi),gi=r(function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}),xi=n(gi),_i=r(function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}),Oi=r(function(t){t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_i(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports}),Ei=n(Oi),ji=r(function(t){t.exports=function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}},t.exports.__esModule=!0,t.exports.default=t.exports}),Pi=r(function(t){t.exports=function(t,e,n){if(wi())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&_i(o,n.prototype),o},t.exports.__esModule=!0,t.exports.default=t.exports}),Si=r(function(t){function e(n){var r="function"==typeof Map?new Map:void 0;return t.exports=e=function(t){if(null===t||!ji(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,e)}function e(){return Pi(t,arguments,gi(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),_i(e,t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports});var Ti=function(t){function e(t){return vi(this,e),function(t,e,n){return e=xi(e),mi(t,bi()?Reflect.construct(e,n||[],xi(t).constructor):e.apply(t,n))}(this,e,["[qiankun]: ".concat(t)])}return Ei(e,t),pi(e)}(n(Si)(Error));var Ai=function(t,e){return t&&sr(e,Gr(e),t)};var Mi=function(t,e){return t&&sr(e,wr(e),t)};var ki=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var u=t[n];e(u,n,t)&&(i[o++]=u)}return i};var Ni=function(){return[]},Ii=Object.prototype.propertyIsEnumerable,Ci=Object.getOwnPropertySymbols,Ri=Ci?function(t){return null==t?[]:ki(Ci(t=Object(t)),function(e){return Ii.call(t,e)})}:Ni;var Li=function(t,e){return sr(t,Ri(t),e)},Gi=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)se(e,Ri(t)),t=Fn(t);return e}:Ni;var Di=function(t,e){return sr(t,Gi(t),e)};var Ui=function(t,e,n){var r=e(t);return Me(t)?r:se(r,n(t))};var Bi=function(t){return Ui(t,Gr,Ri)};var Fi=function(t){return Ui(t,wr,Gi)},Hi=cn(pe,"DataView"),Wi=cn(pe,"Promise"),zi=cn(pe,"Set"),$i=cn(pe,"WeakMap"),qi="[object Map]",Ki="[object Promise]",Yi="[object Set]",Vi="[object WeakMap]",Zi="[object DataView]",Qi=nn(Hi),Ji=nn(sn),Xi=nn(Wi),tu=nn(zi),eu=nn($i),nu=_e;(Hi&&nu(new Hi(new ArrayBuffer(1)))!=Zi||sn&&nu(new sn)!=qi||Wi&&nu(Wi.resolve())!=Ki||zi&&nu(new zi)!=Yi||$i&&nu(new $i)!=Vi)&&(nu=function(t){var e=_e(t),n="[object Object]"==e?t.constructor:void 0,r=n?nn(n):"";if(r)switch(r){case Qi:return Zi;case Ji:return qi;case Xi:return Ki;case tu:return Yi;case eu:return Vi}return e});var ru=nu,ou=Object.prototype.hasOwnProperty;var iu=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&ou.call(t,"index")&&(n.index=t.index,n.input=t.input),n};var uu=function(t,e){var n=e?Ln(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)},au=/\w*$/;var cu=function(t){var e=new t.constructor(t.source,au.exec(t));return e.lastIndex=t.lastIndex,e},su=de?de.prototype:void 0,fu=su?su.valueOf:void 0;var lu=function(t){return fu?Object(fu.call(t)):{}};var pu=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return Ln(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return uu(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Gn(t,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return cu(t);case"[object Symbol]":return lu(t)}};var du=function(t){return Oe(t)&&"[object Map]"==ru(t)},vu=rr&&rr.isMap,hu=vu?nr(vu):du;var yu=function(t){return Oe(t)&&"[object Set]"==ru(t)},mu=rr&&rr.isSet,wu=mu?nr(mu):yu,bu="[object Arguments]",gu="[object Function]",xu="[object Object]",_u={};_u[bu]=_u["[object Array]"]=_u["[object ArrayBuffer]"]=_u["[object DataView]"]=_u["[object Boolean]"]=_u["[object Date]"]=_u["[object Float32Array]"]=_u["[object Float64Array]"]=_u["[object Int8Array]"]=_u["[object Int16Array]"]=_u["[object Int32Array]"]=_u["[object Map]"]=_u["[object Number]"]=_u[xu]=_u["[object RegExp]"]=_u["[object Set]"]=_u["[object String]"]=_u["[object Symbol]"]=_u["[object Uint8Array]"]=_u["[object Uint8ClampedArray]"]=_u["[object Uint16Array]"]=_u["[object Uint32Array]"]=!0,_u["[object Error]"]=_u[gu]=_u["[object WeakMap]"]=!1;var Ou=function t(e,n,r,o,i,u){var a,c=1&n,s=2&n,f=4&n;if(r&&(a=i?r(e,o,i,u):r(e)),void 0!==a)return a;if(!Ve(e))return e;var l=Me(e);if(l){if(a=iu(e),!c)return Ce(e,a)}else{var p=ru(e),d=p==gu||"[object GeneratorFunction]"==p;if(Vn(e))return Cn(e,c);if(p==xu||p==bu||d&&!i){if(a=s||d?{}:zn(e),!c)return s?Di(e,Mi(a,e)):Li(e,Ai(a,e))}else{if(!_u[p])return i?e:{};a=pu(e,p,c)}}u||(u=new An);var v=u.get(e);if(v)return v;u.set(e,a),wu(e)?e.forEach(function(o){a.add(t(o,n,r,o,e,u))}):hu(e)&&e.forEach(function(o,i){a.set(i,t(o,n,r,i,e,u))});var h=l?void 0:(f?s?Fi:Bi:s?wr:Gr)(e);return Ir(h||e,function(o,i){h&&(o=e[i=o]),cr(a,i,t(o,n,r,i,e,u))}),a};var Eu,ju=function(t){return Ou(t,5)},Pu={},Su={};function Tu(t,e){Object.keys(Su).forEach(function(n){Su[n]instanceof Function&&Su[n](ju(t),ju(e))})}function Au(t,e){return{onGlobalStateChange:function(e,n){if(e instanceof Function){if(Su[t]&&console.warn("[qiankun] '".concat(t,"' global listener already exists before this, new listener will overwrite it.")),Su[t]=e,n){var r=ju(Pu);e(r,r)}}else console.error("[qiankun] callback must be function!")},setGlobalState:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t===Pu)return console.warn("[qiankun] state has not changed!"),!1;var n=[],r=ju(Pu);return Pu=ju(Object.keys(t).reduce(function(r,o){return e||r.hasOwnProperty(o)?(n.push(o),Object.assign(r,_({},o,t[o]))):(console.warn("[qiankun] '".concat(o,"' not declared when init state!")),r)},Pu)),0===n.length?(console.warn("[qiankun] state has not changed!"),!1):(Tu(Pu,r),!0)},offGlobalStateChange:function(){return delete Su[t],!0}}}(Eu=t.SandBoxType||(t.SandBoxType={})).Proxy="Proxy",Eu.Snapshot="Snapshot",Eu.LegacyProxy="LegacyProxy";var Mu=/\s/;var ku=function(t){for(var e=t.length;e--&&Mu.test(t.charAt(e)););return e},Nu=/^\s+/;var Iu=function(t){return t?t.slice(0,ku(t)+1).replace(Nu,""):t};var Cu=function(t){return"symbol"==typeof t||Oe(t)&&"[object Symbol]"==_e(t)},Ru=/^[-+]0x[0-9a-f]+$/i,Lu=/^0b[01]+$/i,Gu=/^0o[0-7]+$/i,Du=parseInt;var Uu=function(t){if("number"==typeof t)return t;if(Cu(t))return NaN;if(Ve(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ve(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Iu(t);var n=Lu.test(t);return n||Gu.test(t)?Du(t.slice(2),n?2:8):Ru.test(t)?NaN:+t},Bu=1/0;var Fu=function(t){return t?(t=Uu(t))===Bu||t===-1/0?17976931348623157e292*(0>t?-1:1):t==t?t:0:0===t?t:0};var Hu=function(t){var e=Fu(t),n=e%1;return e==e?n?e-n:e:0};var Wu=function(t,e){var n;if("function"!=typeof e)throw new TypeError("Expected a function");return t=Hu(t),function(){return--t>0&&(n=e.apply(this,arguments)),t>1||(e=void 0),n}};var zu=function(t){return Wu(2,t)};var $u=function(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n};var qu=function(t){return function(e){return null==t?void 0:t[e]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});var Ku=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o},Yu=de?de.prototype:void 0,Vu=Yu?Yu.toString:void 0;var Zu=function t(e){if("string"==typeof e)return e;if(Me(e))return Ku(e,t)+"";if(Cu(e))return Vu?Vu.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n};var Qu=function(t){return null==t?"":Zu(t)},Ju=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xu=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var ta=function(t){return(t=Qu(t))&&t.replace(Ju,qu).replace(Xu,"")},ea=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var na=function(t){return t.match(ea)||[]},ra=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var oa=function(t){return ra.test(t)},ia="\\ud800-\\udfff",ua="\\u2700-\\u27bf",aa="a-z\\xdf-\\xf6\\xf8-\\xff",ca="A-Z\\xc0-\\xd6\\xd8-\\xde",sa="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",fa="["+sa+"]",la="\\d+",pa="["+ua+"]",da="["+aa+"]",va="[^"+ia+sa+la+ua+aa+ca+"]",ha="(?:\\ud83c[\\udde6-\\uddff]){2}",ya="[\\ud800-\\udbff][\\udc00-\\udfff]",ma="["+ca+"]",wa="(?:"+da+"|"+va+")",ba="(?:"+ma+"|"+va+")",ga="(?:['’](?:d|ll|m|re|s|t|ve))?",xa="(?:['’](?:D|LL|M|RE|S|T|VE))?",_a="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Oa="[\\ufe0e\\ufe0f]?",Ea=Oa+_a+("(?:\\u200d(?:"+["[^"+ia+"]",ha,ya].join("|")+")"+Oa+_a+")*"),ja="(?:"+[pa,ha,ya].join("|")+")"+Ea,Pa=RegExp([ma+"?"+da+"+"+ga+"(?="+[fa,ma,"$"].join("|")+")",ba+"+"+xa+"(?="+[fa,ma+wa,"$"].join("|")+")",ma+"?"+wa+"+"+ga,ma+"+"+xa,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",la,ja].join("|"),"g");var Sa=function(t){return t.match(Pa)||[]};var Ta=function(t,e,n){return t=Qu(t),void 0===(e=n?void 0:e)?oa(t)?Sa(t):na(t):t.match(e)||[]},Aa=RegExp("['’]","g");var Ma=function(t){return function(e){return $u(Ta(ta(e).replace(Aa,"")),t,"")}}(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()});function ka(t){return Array.isArray(t)?t:[t]}var Na="function"==typeof window.Zone?setTimeout:function(t){return Promise.resolve().then(t)},Ia=!1;var Ca=new WeakMap;var Ra="function"==typeof document.all&&void 0===document.all,La=new WeakMap,Ga=new WeakMap;function Da(t){return function(e){return'<div id="'.concat(Ua(t),'" data-name="').concat(t,'" data-version="').concat(" 2.6.3-beta-5",'">').concat(e,"</div>")}}function Ua(t){return"__qiankun_microapp_wrapper_for_".concat(Ma(t),"__")}var Ba=Function("return this")(),Fa=zu(function(){return Ba.hasOwnProperty("__app_instance_name_map__")||Object.defineProperty(Ba,"__app_instance_name_map__",{enumerable:!1,configurable:!0,writable:!0,value:{}}),Ba.__app_instance_name_map__}),Ha=function(t){var e=Fa();return t in e?(e[t]++,"".concat(t,"_").concat(e[t])):(Ba.__app_instance_name_map__[t]=0,t)};function Wa(t){var e=null!=t?t:{},n=e.mount,r=e.unmount;return Qe(e.bootstrap)&&Qe(n)&&Qe(r)}var za=pi(function t(){var e=this;vi(this,t),this.promise=void 0,this.resolve=void 0,this.reject=void 0,this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})});function $a(t){return"object"===w(t)&&(!t.strictStyleIsolation&&!!t.experimentalStyleIsolation)}function qa(t){return"string"==typeof t?document.querySelector(t):t}var Ka=null;function Ya(){return Ka}function Va(t){Ka=t}var Za=new WeakMap;function Qa(t,e){if(function(t){if(La.has(t))return!0;var e=Ra?"function"==typeof t&&void 0!==t:"function"==typeof t;return e&&La.set(t,e),e}(e)&&!function(t){if(Ga.has(t))return Ga.get(t);var e=0===t.name.indexOf("bound ")&&!t.hasOwnProperty("prototype");return Ga.set(t,e),e}(e)&&!function(t){var e=t.prototype&&t.prototype.constructor===t&&Object.getOwnPropertyNames(t.prototype).length>1;if(e)return!0;if(Ca.has(t))return Ca.get(t);var n=e;if(!n){var r=""+t;n=/^function\b\s[A-Z].*/.test(r)||/^class\b/.test(r)}return Ca.set(t,n),n}(e)){var n=Za.get(e);if(n)return n;var r=Function.prototype.bind.call(e,t);for(var o in e)r[o]=e[o];if(e.hasOwnProperty("prototype")&&!r.hasOwnProperty("prototype")&&Object.defineProperty(r,"prototype",{value:e.prototype,enumerable:!1,writable:!0}),"function"==typeof e.toString){var i=e.hasOwnProperty("toString")&&!r.hasOwnProperty("toString");if(i||r.toString===Function.prototype.toString){var u=Object.getOwnPropertyDescriptor(i?e:Function.prototype,"toString");Object.defineProperty(r,"toString",E(E({},u),(null==u?void 0:u.get)?null:{value:function(){return""+e}}))}}return Za.set(e,r),r}return e}var Ja,Xa=function(){return pi(function e(n){var r=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;vi(this,e),this.addedPropsMapInSandbox=new Map,this.modifiedPropsOriginalValueMapInSandbox=new Map,this.currentUpdatedPropsValueMap=new Map,this.name=void 0,this.proxy=void 0,this.globalContext=void 0,this.type=void 0,this.sandboxRunning=!0,this.latestSetProp=null,this.name=n,this.globalContext=o,this.type=t.SandBoxType.LegacyProxy;var i=this.addedPropsMapInSandbox,u=this.modifiedPropsOriginalValueMapInSandbox,a=this.currentUpdatedPropsValueMap,c=o,s=function(t,e,n){var o=3>=arguments.length||void 0===arguments[3]||arguments[3];return!r.sandboxRunning||(c.hasOwnProperty(t)?u.has(t)||u.set(t,n):i.set(t,e),a.set(t,e),o&&(c[t]=e),r.latestSetProp=t,!0)},f=new Proxy(Object.create(null),{set:function(t,e,n){return s(e,n,c[e],!0)},get:function(t,e){return"top"===e||"parent"===e||"window"===e||"self"===e?f:Qa(c,c[e])},has:function(t,e){return e in c},getOwnPropertyDescriptor:function(t,e){var n=Object.getOwnPropertyDescriptor(c,e);return n&&!n.configurable&&(n.configurable=!0),n},defineProperty:function(t,e,n){var r=c[e],o=Reflect.defineProperty(c,e,n);return s(e,c[e],r,!1),o}});this.proxy=f},[{key:"setWindowProp",value:function(t,e,n){void 0===e&&n?delete this.globalContext[t]:function(t,e){var n=Object.getOwnPropertyDescriptor(t,e);return!n||n.configurable}(this.globalContext,t)&&"symbol"!==w(t)&&(Object.defineProperty(this.globalContext,t,{writable:!0,configurable:!0}),this.globalContext[t]=e)}},{key:"active",value:function(){var t=this;this.sandboxRunning||this.currentUpdatedPropsValueMap.forEach(function(e,n){return t.setWindowProp(n,e)}),this.sandboxRunning=!0}},{key:"inactive",value:function(){var t=this;this.modifiedPropsOriginalValueMapInSandbox.forEach(function(e,n){return t.setWindowProp(n,e)}),this.addedPropsMapInSandbox.forEach(function(e,n){return t.setWindowProp(n,void 0,!0)}),this.sandboxRunning=!1}}])}();!function(t){t[t.STYLE=1]="STYLE",t[t.MEDIA=4]="MEDIA",t[t.SUPPORTS=12]="SUPPORTS",t[t.IMPORT=3]="IMPORT",t[t.FONT_FACE=5]="FONT_FACE",t[t.PAGE=6]="PAGE",t[t.KEYFRAMES=7]="KEYFRAMES",t[t.KEYFRAME=8]="KEYFRAME"}(Ja||(Ja={}));var tc,ec=function(t){return[].slice.call(t,0)},nc=HTMLBodyElement.prototype.appendChild,rc=function(){function t(){vi(this,t),this.sheet=void 0,this.swapNode=void 0;var e=document.createElement("style");nc.call(document.body,e),this.swapNode=e,this.sheet=e.sheet,this.sheet.disabled=!0}return pi(t,[{key:"process",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(""!==e.textContent){var o,i=document.createTextNode(e.textContent||"");this.swapNode.appendChild(i);var u=this.swapNode.sheet,a=ec(null!==(o=null==u?void 0:u.cssRules)&&void 0!==o?o:[]),c=this.rewrite(a,r);return e.textContent=c,void this.swapNode.removeChild(i)}var s=new MutationObserver(function(o){for(var i=0;o.length>i;i+=1){if(t.ModifiedTag in e)return;if("childList"===o[i].type){var u,a=e.sheet,c=ec(null!==(u=null==a?void 0:a.cssRules)&&void 0!==u?u:[]),s=n.rewrite(c,r);e.textContent=s,e[t.ModifiedTag]=!0}}});s.observe(e,{childList:!0})}},{key:"rewrite",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r="";return t.forEach(function(t){switch(t.type){case Ja.STYLE:r+=e.ruleStyle(t,n);break;case Ja.MEDIA:r+=e.ruleMedia(t,n);break;case Ja.SUPPORTS:r+=e.ruleSupport(t,n);break;default:r+="".concat(t.cssText)}}),r}},{key:"ruleStyle",value:function(t,e){var n=/((?:[^\w\-.#]|^)(body|html|:root))/gm,r=/(html[^\w{[]+)/gm,o=t.selectorText.trim(),i=t.cssText;if("html"===o||"body"===o||":root"===o)return i.replace(n,e);if(r.test(t.selectorText)){/(html[^\w{]+)(\+|~)/gm.test(t.selectorText)||(i=i.replace(r,""))}return i=i.replace(/^[\s\S]+{/,function(t){return t.replace(/(^|,\n?)([^,]+)/g,function(t,r,o){return n.test(t)?t.replace(n,function(t){return t&&[",","("].includes(t[0])?"".concat(t[0]).concat(e):e}):"".concat(r).concat(e," ").concat(o.replace(/^ */,""))})}),i}},{key:"ruleMedia",value:function(t,e){var n=this.rewrite(ec(t.cssRules),e);return"@media ".concat(t.conditionText," {").concat(n,"}")}},{key:"ruleSupport",value:function(t,e){var n=this.rewrite(ec(t.cssRules),e);return"@supports ".concat(t.conditionText," {").concat(n,"}")}}])}();rc.ModifiedTag="Symbol(style-modified-qiankun)";var oc="data-qiankun",ic=function(t,e,n){tc||(tc=new rc),"LINK"===e.tagName&&console.warn("Feature: sandbox.experimentalStyleIsolation is not support for link element yet.");if(t){var r=(t.tagName||"").toLowerCase();if(r&&"STYLE"===e.tagName){var o="".concat(r,"[").concat(oc,'="').concat(n,'"]');tc.process(e,o)}}},uc=HTMLHeadElement.prototype.appendChild,ac=HTMLHeadElement.prototype.removeChild,cc=HTMLBodyElement.prototype.appendChild,sc=HTMLBodyElement.prototype.removeChild,fc=HTMLHeadElement.prototype.insertBefore,lc=HTMLElement.prototype.removeChild,pc="SCRIPT",dc="LINK",vc="STYLE";function hc(t){return(null==t?void 0:t.toUpperCase())===dc||(null==t?void 0:t.toUpperCase())===vc||(null==t?void 0:t.toUpperCase())===pc}function yc(t){var e,n;return!t.textContent&&((null===(e=t.sheet)||void 0===e?void 0:e.cssRules.length)||(null===(n=Ec(t))||void 0===n?void 0:n.length))}function mc(t,e){return Object.defineProperties(t,{srcElement:{get:e},target:{get:e}}),t}function wc(t){var e=mc(new CustomEvent("load"),function(){return t});Qe(t.onload)?t.onload(e):t.dispatchEvent(e)}function bc(t){var e=mc(new CustomEvent("error"),function(){return t});Qe(t.onerror)?t.onerror(e):t.dispatchEvent(e)}var gc=new WeakMap,xc=new WeakMap,_c=new WeakMap;function Oc(t){t.forEach(function(t){t instanceof HTMLStyleElement&&yc(t)&&t.sheet&&gc.set(t,t.sheet.cssRules)})}function Ec(t){return gc.get(t)}function jc(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=e,o=t.rawDOMAppendOrInsertBefore,i=t.isInvokedByMicroApp,u=t.containerConfigGetter;if(!hc(r.tagName)||!i(r))return o.call(this,r,n);if(r.tagName){var a=u(r),c=a.appName,s=a.appWrapperGetter,f=a.proxy,l=a.strictGlobal,p=a.dynamicStyleSheetElements,d=a.scopedCSS,v=a.excludeAssetFilter;switch(r.tagName){case dc:case vc:var h=e,y=h.href;if(v&&y&&v(y))return o.call(this,r,n);var m,w=s();if(d)if((null===(m=r.tagName)||void 0===m?void 0:m.toUpperCase())===dc&&"stylesheet"===r.rel&&r.href){var b,g="function"==typeof Is.fetch?Is.fetch:null===(b=Is.fetch)||void 0===b?void 0:b.fn;h=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fetch,r=document.createElement("style"),o=t.href;return r.dataset.qiankunHref=o,n(o).then(function(t){return t.text()}).then(function(n){r.appendChild(document.createTextNode(n)),e(r),wc(t)}).catch(function(){return bc(t)}),r}(r,function(t){return ic(w,t,c)},g),_c.set(r,h)}else ic(w,h,c);p.push(h);var x=w.contains(n)?n:null;return o.call(w,h,x);case pc:var _=r.src,O=r.text;if(v&&_&&v(_))return o.call(this,r,n);var E=s(),j=Is.fetch,P=E.contains(n)?n:null;if(_){ni(null,[_],f,{fetch:j,strictGlobal:l,beforeExec:function(){var t;(!(t=Object.getOwnPropertyDescriptor(document,"currentScript"))||t.configurable)&&Object.defineProperty(document,"currentScript",{get:function(){return r},configurable:!0})},success:function(){wc(r),r=null},error:function(){bc(r),r=null}});var S=document.createComment("dynamic script ".concat(_," replaced by qiankun"));return xc.set(r,S),o.call(E,S,P)}ni(null,["<script>".concat(O,"<\/script>")],f,{strictGlobal:l});var T=document.createComment("dynamic inline script replaced by qiankun");return xc.set(r,T),o.call(E,T,P)}}return o.call(this,r,n)}}function Pc(t,e){return function(n){var r=n.tagName;if(!hc(r))return t.call(this,n);try{var o;switch(r){case dc:o=_c.get(n)||n;break;case pc:o=xc.get(n)||n;break;default:o=n}var i=e(n)();if(i.contains(o))return lc.call(i,o)}catch(t){console.warn(t)}return t.call(this,n)}}function Sc(t,e){return HTMLHeadElement.prototype.appendChild===uc&&HTMLBodyElement.prototype.appendChild===cc&&HTMLHeadElement.prototype.insertBefore===fc&&(HTMLHeadElement.prototype.appendChild=jc({rawDOMAppendOrInsertBefore:uc,containerConfigGetter:e,isInvokedByMicroApp:t}),HTMLBodyElement.prototype.appendChild=jc({rawDOMAppendOrInsertBefore:cc,containerConfigGetter:e,isInvokedByMicroApp:t}),HTMLHeadElement.prototype.insertBefore=jc({rawDOMAppendOrInsertBefore:fc,containerConfigGetter:e,isInvokedByMicroApp:t})),HTMLHeadElement.prototype.removeChild===ac&&HTMLBodyElement.prototype.removeChild===sc&&(HTMLHeadElement.prototype.removeChild=Pc(ac,function(t){return e(t).appWrapperGetter}),HTMLBodyElement.prototype.removeChild=Pc(sc,function(t){return e(t).appWrapperGetter})),function(){HTMLHeadElement.prototype.appendChild=uc,HTMLHeadElement.prototype.removeChild=ac,HTMLBodyElement.prototype.appendChild=cc,HTMLBodyElement.prototype.removeChild=sc,HTMLHeadElement.prototype.insertBefore=fc}}function Tc(t,e){t.forEach(function(t){if(e(t)&&t instanceof HTMLStyleElement&&yc(t)){var n=Ec(t);if(n)for(var r=0;n.length>r;r++){var o=t.sheet;o.insertRule(n[r].cssText,o.cssRules.length)}}})}var Ac=0,Mc=0;function kc(t,e,n){var r=3>=arguments.length||void 0===arguments[3]||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5?arguments[5]:void 0,u=[],a=Sc(function(){return Yt(window.location).some(function(e){return e===t})},function(){return{appName:t,appWrapperGetter:e,proxy:n,strictGlobal:!1,scopedCSS:o,dynamicStyleSheetElements:u,excludeAssetFilter:i}});return r||Ac++,r&&Mc++,function(){return r||0===Ac||Ac--,r&&Mc--,0===Mc&&0===Ac&&a(),Oc(u),function(){Tc(u,function(t){var n=e();return!n.contains(t)&&(document.head.appendChild.call(n,t),!0)}),r&&(u=[])}}}Object.defineProperty(Ba,"__proxyAttachContainerConfigMap__",{enumerable:!1,writable:!0}),Ba.__proxyAttachContainerConfigMap__=Ba.__proxyAttachContainerConfigMap__||new WeakMap;var Nc=Ba.__proxyAttachContainerConfigMap__,Ic=new WeakMap,Cc=new WeakMap;var Rc=0,Lc=0;function Gc(t,e,n){var r=3>=arguments.length||void 0===arguments[3]||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5?arguments[5]:void 0,u=Nc.get(n);u||Nc.set(n,u={appName:t,proxy:n,appWrapperGetter:e,dynamicStyleSheetElements:[],strictGlobal:!0,excludeAssetFilter:i,scopedCSS:o});var a=u.dynamicStyleSheetElements,c=function(){var t=Cc.get(document.createElement);if(!t){var e=document.createElement;Document.prototype.createElement=function(t,n){var r=e.call(this,t,n);if(hc(t)){var o=(Ya()||{}).window;if(o){var i=Nc.get(o);i&&Ic.set(r,i)}}return r},document.hasOwnProperty("createElement")&&(document.createElement=Document.prototype.createElement),Cc.set(Document.prototype.createElement,e)}return function(){t&&(Document.prototype.createElement=t,document.createElement=t)}}(),s=Sc(function(t){return Ic.has(t)},function(t){return Ic.get(t)});return r||Rc++,r&&Lc++,function(){return r||0===Rc||Rc--,r&&Lc--,0===Lc&&0===Rc&&(s(),c()),Oc(a),function(){Tc(a,function(t){var n=e();return!n.contains(t)&&(uc.call(n,t),!0)})}}}var Dc=window.setInterval,Uc=window.clearInterval;var Bc=window.addEventListener,Fc=window.removeEventListener;function Hc(e,n,r,o,i){var a,c=[function(){return function(t){var e=[];return t.clearInterval=function(t){return e=e.filter(function(e){return e!==t}),Uc.call(window,t)},t.setInterval=function(t,n){for(var r=arguments.length,o=Array(r>2?r-2:0),i=2;r>i;i++)o[i-2]=arguments[i];var u=Dc.apply(void 0,[t,n].concat(o));return e=[].concat(y(e),[u]),u},function(){return e.forEach(function(e){return t.clearInterval(e)}),t.setInterval=Dc,t.clearInterval=Uc,u}}(r.proxy)},function(){return function(t){var e=new Map;return t.addEventListener=function(t,n,r){var o=e.get(t)||[];return e.set(t,[].concat(y(o),[n])),Bc.call(window,t,n,r)},t.removeEventListener=function(t,n,r){var o=e.get(t);return o&&o.length&&-1!==o.indexOf(n)&&o.splice(o.indexOf(n),1),Fc.call(window,t,n,r)},function(){return e.forEach(function(e,n){return y(e).forEach(function(e){return t.removeEventListener(n,e)})}),t.addEventListener=Bc,t.removeEventListener=Fc,u}}(r.proxy)},function(){return t=function(t){return u},e=[],n=[],window.g_history&&Qe(window.g_history.listen)&&(t=window.g_history.listen.bind(window.g_history),window.g_history.listen=function(r){e.push(r);var o=t(r);return n.push(o),function(){o(),n.splice(n.indexOf(o),1),e.splice(e.indexOf(r),1)}}),function(){var r=u;return e.length&&(r=function(){e.forEach(function(t){return window.g_history.listen(t)})}),n.forEach(function(t){return t()}),window.g_history&&Qe(window.g_history.listen)&&(window.g_history.listen=t),r};var t,e,n}];return null===(a=_(_(_({},t.SandBoxType.LegacyProxy,[].concat(c,[function(){return kc(e,n,r.proxy,!0,o,i)}])),t.SandBoxType.Proxy,[].concat(c,[function(){return Gc(e,n,r.proxy,!0,o,i)}])),t.SandBoxType.Snapshot,[].concat(c,[function(){return kc(e,n,r.proxy,!0,o,i)}]))[r.type])||void 0===a?void 0:a.map(function(t){return t()})}var Wc=Object.defineProperty,zc=window.__QIANKUN_DEVELOPMENT__?["__REACT_ERROR_OVERLAY_GLOBAL_HOOK__"]:[],$c=["System","__cjsWrapper"].concat(zc),qc={undefined:!0,Array:!0,Object:!0,String:!0,Boolean:!0,Math:!0,Number:!0,Symbol:!0,parseFloat:!0,Float32Array:!0,isNaN:!0,Infinity:!0,Reflect:!0,Float64Array:!0,Function:!0,Map:!0,NaN:!0,Promise:!0,Proxy:!0,Set:!0,parseInt:!0,requestAnimationFrame:!0},Kc=new Map([["fetch",!0],["mockDomAPIInBlackList",!1]]);var Yc=0,Vc=function(){return pi(function e(n){var r=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];vi(this,e),this.updatedValueSet=new Set,this.name=void 0,this.type=void 0,this.proxy=void 0,this.globalContext=void 0,this.sandboxRunning=!0,this.latestSetProp=null,this.name=n,this.globalContext=o,this.type=t.SandBoxType.Proxy;var u=this.updatedValueSet,a=function(t){var e=new Map,n={};return Object.getOwnPropertyNames(t).filter(function(e){var n=Object.getOwnPropertyDescriptor(t,e);return!(null==n?void 0:n.configurable)}).forEach(function(r){var o=Object.getOwnPropertyDescriptor(t,r);if(o){var i=Object.prototype.hasOwnProperty.call(o,"get");"top"!==r&&"parent"!==r&&"self"!==r&&"window"!==r||(o.configurable=!0,i||(o.writable=!0)),i&&e.set(r,!0),Wc(n,r,Object.freeze(o))}}),{fakeWindow:n,propertiesWithGetter:e}}(o),c=a.fakeWindow,s=a.propertiesWithGetter,f=new Map,l=function(t){return c.hasOwnProperty(t)||o.hasOwnProperty(t)},p=new Proxy(c,{set:function(t,e,i){if(r.sandboxRunning){if(r.registerRunningApp(n,p),!t.hasOwnProperty(e)&&o.hasOwnProperty(e)){var a=Object.getOwnPropertyDescriptor(o,e),c=a.writable;c&&Object.defineProperty(t,e,{configurable:a.configurable,enumerable:a.enumerable,writable:c,value:i})}else t[e]=i;return-1!==$c.indexOf(e)&&(o[e]=i),u.add(e),r.latestSetProp=e,!0}return!0},get:function(t,e){if(r.registerRunningApp(n,p),e===Symbol.unscopables)return qc;if("window"===e||"self"===e)return p;if("globalThis"===e)return p;if("top"===e||"parent"===e)return o===o.parent?p:o[e];if("hasOwnProperty"===e)return l;if("document"===e)return document;if("eval"===e)return eval;if(i&&"localStorage"===e)return function(t){var e=t.split("_")[0],n={getItem:function(t){return localStorage.getItem(e+t)},setItem:function(t,n){localStorage.setItem(e+t,n+"")},key:function(t){var n;return null===(n=localStorage.key(t))||void 0===n?void 0:n.slice(e.length)},removeItem:function(t){localStorage.removeItem(e+t)},clear:function(){for(var t=[],n=0;n<localStorage.length;n+=1){var r=localStorage.key(n);r&&r.startsWith(e)&&t.push(r)}t.forEach(function(t){localStorage.removeItem(t)})}},r=new Proxy({},{get:function(t,e){var r;return null!==(r=n[e])&&void 0!==r?r:localStorage[e]}});return r}(n);if(i&&"sessionStorage"===e)return function(t){var e=t.split("_")[0],n={getItem:function(t){return sessionStorage.getItem(e+t)},key:function(t){var n;return null===(n=sessionStorage.key(t))||void 0===n?void 0:n.slice(e.length)},setItem:function(t,n){sessionStorage.setItem(e+t,n+"")},removeItem:function(t){sessionStorage.removeItem(e+t)},clear:function(){for(var t=[],n=0;n<sessionStorage.length;n+=1){var r=sessionStorage.key(n);r&&r.startsWith(e)&&t.push(r)}t.forEach(function(t){sessionStorage.removeItem(t)})}},r=new Proxy({},{get:function(t,e){var r;return null!==(r=n[e])&&void 0!==r?r:sessionStorage[e]}});return r}(n);var u=s.has(e)?o[e]:e in t?t[e]:o[e];return Qa(Kc.get(e)?Ba:o,u)},has:function(t,e){return e in qc||e in t||e in o},getOwnPropertyDescriptor:function(t,e){if(t.hasOwnProperty(e)){var n=Object.getOwnPropertyDescriptor(t,e);return f.set(e,"target"),n}if(o.hasOwnProperty(e)){var r=Object.getOwnPropertyDescriptor(o,e);return f.set(e,"globalContext"),r&&!r.configurable&&(r.configurable=!0),r}},ownKeys:function(t){return Reflect.ownKeys(o).concat(Reflect.ownKeys(t)).filter(function(t){return!(t in this)&&(this[t]=!0)},Object.create(null))},defineProperty:function(t,e,n){return"globalContext"===f.get(e)?Reflect.defineProperty(o,e,n):Reflect.defineProperty(t,e,n)},deleteProperty:function(t,e){return r.registerRunningApp(n,p),!t.hasOwnProperty(e)||(delete t[e],u.delete(e),!0)},getPrototypeOf:function(){return Reflect.getPrototypeOf(o)}});this.proxy=p,Yc++},[{key:"registerRunningApp",value:function(t,e){if(this.sandboxRunning){var n=Ya();n&&n.name===t||Va({name:t,window:e}),r=function(){Va(null)},Ia||(Ia=!0,Na(function(){r(),Ia=!1}))}var r}},{key:"active",value:function(){this.sandboxRunning||Yc++,this.sandboxRunning=!0}},{key:"inactive",value:function(){var t=this;0===--Yc&&$c.forEach(function(e){t.proxy.hasOwnProperty(e)&&delete t.globalContext[e]}),this.sandboxRunning=!1}}])}();function Zc(t,e){for(var n in t)(t.hasOwnProperty(n)||"clearInterval"===n)&&e(n)}var Qc=function(){return pi(function e(n){vi(this,e),this.proxy=void 0,this.name=void 0,this.type=void 0,this.sandboxRunning=!0,this.windowSnapshot=void 0,this.modifyPropsMap={},this.name=n,this.proxy=window,this.type=t.SandBoxType.Snapshot},[{key:"active",value:function(){var t=this;this.windowSnapshot={},Zc(window,function(e){t.windowSnapshot[e]=window[e]}),Object.keys(this.modifyPropsMap).forEach(function(e){window[e]=t.modifyPropsMap[e]}),this.sandboxRunning=!0}},{key:"inactive",value:function(){var t=this;this.modifyPropsMap={},Zc(window,function(e){window[e]!==t.windowSnapshot[e]&&(t.modifyPropsMap[e]=window[e],window[e]=t.windowSnapshot[e])}),this.sandboxRunning=!1}}])}();function Jc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=Object.create((r&&r.prototype instanceof a?r:a).prototype);return Xc(c,"_invoke",function(n,r,o){var i,a,c,s=0,f=o||[],l=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,a=0,c=t,p.n=n,u}};function d(n,r){for(a=n,c=r,e=0;!l&&s&&!o&&f.length>e;e++){var o,i=f[e],d=p.p,v=i[2];n>3?(o=v===r)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):d>=i[0]&&((o=2>n&&i[1]>d)?(a=0,p.v=r,p.n=i[1]):v>d&&(o=3>n||i[0]>r||r>v)&&(i[4]=n,i[5]=r,p.n=v,a=0))}if(o||n>1)return u;throw l=!0,r}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&d(f,v),a=f,c=v;(e=2>a?t:c)||!l;){i||(a?3>a?(a>1&&(p.n=-1),d(a,c)):p.n=c:p.v=c);try{if(s=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,2>a&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),2>a&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(l=0>p.n)?c:n.call(r,p))!==u)break}catch(e){i=t,a=1,c=e}finally{s=1}}return{value:e,done:l}}}(n,o,i),!0),c}var u={};function a(){}function c(){}function s(){}e=Object.getPrototypeOf;var f=[][r]?e(e([][r]())):(Xc(e={},r,function(){return this}),e),l=s.prototype=a.prototype=Object.create(f);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,Xc(t,o,"GeneratorFunction")),t.prototype=Object.create(l),t}return c.prototype=s,Xc(l,"constructor",s),Xc(s,"constructor",c),c.displayName="GeneratorFunction",Xc(s,o,"GeneratorFunction"),Xc(l),Xc(l,o,"Generator"),Xc(l,r,function(){return this}),Xc(l,"toString",function(){return"[object Generator]"}),(Jc=function(){return{w:i,m:p}})()}function Xc(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}Xc=function(t,e,n,r){function i(e,n){Xc(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},Xc(t,e,n,r)}function ts(e,n,r,o,u,a,c){var s;s=window.Proxy?o?new Xa(e,a):new Vc(e,a,c):new Qc(e);var f=function(e,n,r,o,i){var u;return null===(u=_(_(_({},t.SandBoxType.LegacyProxy,[function(){return kc(e,n,r.proxy,!1,o,i)}]),t.SandBoxType.Proxy,[function(){return Gc(e,n,r.proxy,!1,o,i)}]),t.SandBoxType.Snapshot,[function(){return kc(e,n,r.proxy,!1,o,i)}])[r.type])||void 0===u?void 0:u.map(function(t){return t()})}(e,n,s,r,u),l=[],p=[];return{instance:s,mount:function(){return i(Jc().m(function t(){var o,i;return Jc().w(function(t){for(;;)switch(t.n){case 0:s.active(),o=p.slice(0,f.length),i=p.slice(f.length),o.length&&o.forEach(function(t){return t()}),l=Hc(e,n,s,r,u),i.length&&i.forEach(function(t){return t()}),p=[];case 1:return t.a(2)}},t)}))()},unmount:function(){return i(Jc().m(function t(){return Jc().w(function(t){for(;;)switch(t.n){case 0:p=[].concat(y(f),y(l)).map(function(t){return t()}),s.inactive();case 1:return t.a(2)}},t)}))()}}}var es=["singular","sandbox","excludeAssetFilter","globalContext","transformStorage"];function ns(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=Object.create((r&&r.prototype instanceof a?r:a).prototype);return rs(c,"_invoke",function(n,r,o){var i,a,c,s=0,f=o||[],l=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,a=0,c=t,p.n=n,u}};function d(n,r){for(a=n,c=r,e=0;!l&&s&&!o&&f.length>e;e++){var o,i=f[e],d=p.p,v=i[2];n>3?(o=v===r)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):d>=i[0]&&((o=2>n&&i[1]>d)?(a=0,p.v=r,p.n=i[1]):v>d&&(o=3>n||i[0]>r||r>v)&&(i[4]=n,i[5]=r,p.n=v,a=0))}if(o||n>1)return u;throw l=!0,r}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&d(f,v),a=f,c=v;(e=2>a?t:c)||!l;){i||(a?3>a?(a>1&&(p.n=-1),d(a,c)):p.n=c:p.v=c);try{if(s=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,2>a&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),2>a&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(l=0>p.n)?c:n.call(r,p))!==u)break}catch(e){i=t,a=1,c=e}finally{s=1}}return{value:e,done:l}}}(n,o,i),!0),c}var u={};function a(){}function c(){}function s(){}e=Object.getPrototypeOf;var f=[][r]?e(e([][r]())):(rs(e={},r,function(){return this}),e),l=s.prototype=a.prototype=Object.create(f);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,rs(t,o,"GeneratorFunction")),t.prototype=Object.create(l),t}return c.prototype=s,rs(l,"constructor",s),rs(s,"constructor",c),c.displayName="GeneratorFunction",rs(s,o,"GeneratorFunction"),rs(l),rs(l,o,"Generator"),rs(l,r,function(){return this}),rs(l,"toString",function(){return"[object Generator]"}),(ns=function(){return{w:i,m:p}})()}function rs(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}rs=function(t,e,n,r){function i(e,n){rs(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},rs(t,e,n,r)}function os(t,e){if(!t){if(e)throw new Ti(e);throw new Ti("element not existed!")}}function is(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;return t.length?t.reduce(function(t,r){return t.then(function(){return r(e,n)})},Promise.resolve()):Promise.resolve()}function us(t,e){return as.apply(this,arguments)}function as(){return(as=i(ns().m(function t(e,n){return ns().w(function(t){for(;;)if(0===t.n)return t.a(2,"function"==typeof e?e(n):!!e)},t)}))).apply(this,arguments)}var cs=document.head.attachShadow||document.head.createShadowRoot;function ss(t,e,n,r){var o=document.createElement("div");o.innerHTML=t;var i=o.firstChild;if(e)if(cs){var u=i.innerHTML;i.innerHTML="",(i.attachShadow?i.attachShadow({mode:"open"}):i.createShadowRoot()).innerHTML=u}else console.warn("[qiankun]: As current browser not support shadow dom, your strictStyleIsolation configuration will be ignored!");if(n){i.getAttribute(oc)||i.setAttribute(oc,r);var a=i.querySelectorAll("style")||[];Br(a,function(t){ic(i,t,r)})}return i}function fs(t,e,n,r,o){return function(){if(e){if(n)throw new Ti("strictStyleIsolation can not be used with legacy render!");if(r)throw new Ti("experimentalStyleIsolation can not be used with legacy render!");var i=document.getElementById(Ua(t));return os(i,"Wrapper element for ".concat(t," is not existed!")),i}var u=o();return os(u,"Wrapper element for ".concat(t," is not existed!")),n&&cs?u.shadowRoot:u}}var ls,ps=HTMLElement.prototype.appendChild,ds=HTMLElement.prototype.removeChild;function vs(t,e,n){return function(r,o){var i=r.element,u=r.container;if(n)return n({loading:r.loading,appContent:i?e:""});var a=qa(u);"unmounted"!==o&&os(a,function(){switch(o){case"loading":case"mounting":return"Target container with ".concat(u," not existed while ").concat(t," ").concat(o,"!");case"mounted":return"Target container with ".concat(u," not existed after ").concat(t," ").concat(o,"!");default:return"Target container with ".concat(u," not existed while ").concat(t," rendering!")}}());if(a&&!a.contains(i)){for(;a.firstChild;)ds.call(a,a.firstChild);i&&ps.call(a,i)}}}function hs(t,e,n,r){if(Wa(t))return t;if(r){var o=n[r];if(Wa(o))return o}var i=n[e];if(Wa(i))return i;throw new Ti("You need to export lifecycle functions in ".concat(e," entry"))}function ys(t){return ms.apply(this,arguments)}function ms(){return ms=i(ns().m(function t(e){var n,r,o,u,a,c,f,l,p,d,v,h,y,m,b,g,x,_,O,j,P,S,T,A,M,k,N,I,C,R,L,G,D,U,B,F,H,W,z,$,q,K,Y,V,Z,Q,J,X,tt,et,nt,rt,ot,it,ut,at,ct,st=arguments;return ns().w(function(t){for(;;)switch(t.n){case 0:return o=st.length>1&&void 0!==st[1]?st[1]:{},u=st.length>2?st[2]:void 0,a=e.entry,f=Ha(c=e.name),p=void 0!==(l=o.singular)&&l,v=void 0===(d=o.sandbox)||d,h=o.excludeAssetFilter,m=void 0===(y=o.globalContext)?window:y,g=void 0!==(b=o.transformStorage)&&b,x=s(o,es),t.n=1,oi(a,x);case 1:return O=(_=t.v).template,j=_.execScripts,P=_.assetPublicPath,S=_.getExternalScripts,t.n=2,ws(S,c);case 2:return t.n=3,us(p,e);case 3:if(!t.v){t.n=4;break}return t.n=4,ls&&ls.promise;case 4:return T=Da(f)(O),A="object"===w(v)&&!!v.strictStyleIsolation,M=$a(v),k=ss(T,A,M,f),N="container"in e?e.container:void 0,(C=vs(f,T,I="render"in e?e.render:void 0))({element:k,loading:!0,container:N},"loading"),R=fs(f,!!I,A,M,function(){return k}),L=m,G=function(){return Promise.resolve()},D=function(){return Promise.resolve()},U="object"===w(v)&&!!v.loose,v&&(B=ts(f,R,M,U,h,L,g),L=B.instance.proxy,G=B.mount,D=B.unmount),F=Nr({},fi(L,P),u,function(t,e){return Re(null!=t?t:[],null!=e?e:[])}),W=void 0===(H=F.beforeUnmount)?[]:H,$=void 0===(z=F.afterUnmount)?[]:z,K=void 0===(q=F.afterMount)?[]:q,V=void 0===(Y=F.beforeMount)?[]:Y,Q=void 0===(Z=F.beforeLoad)?[]:Z,t.n=5,is(ka(Q),e,L);case 5:return t.n=6,j(L,v&&!U);case 6:return J=hs(t.v,c,L,null===(n=B)||void 0===n||null===(r=n.instance)||void 0===r?void 0:r.latestSetProp),X=J.bootstrap,tt=J.mount,et=J.unmount,nt=J.update,rt=Au(f),ot=rt.onGlobalStateChange,it=rt.setGlobalState,ut=rt.offGlobalStateChange,at=function(t){return k=t},ct=function(){var t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N,o={name:f,bootstrap:X,mount:[i(ns().m(function t(){return ns().w(function(t){for(;;)switch(t.n){case 0:case 1:return t.a(2)}},t)})),i(ns().m(function t(){var n;return ns().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,us(p,e);case 1:if(!(n=t.v)){t.n=2;break}n=ls;case 2:if(!n){t.n=3;break}return t.a(2,ls.promise);case 3:return t.a(2,void 0)}},t)})),i(ns().m(function e(){return ns().w(function(e){for(;;)switch(e.n){case 0:t=k,n=fs(f,!!I,A,M,function(){return t});case 1:return e.a(2)}},e)})),i(ns().m(function e(){return ns().w(function(e){for(;;)switch(e.n){case 0:!(r!==N)&&t||(t=ss(T,A,M,f),at(t)),C({element:t,loading:!0,container:r},"mounting");case 1:return e.a(2)}},e)})),G,i(ns().m(function t(){return ns().w(function(t){for(;;)if(0===t.n)return t.a(2,is(ka(V),e,L))},t)})),function(){var t=i(ns().m(function t(e){return ns().w(function(t){for(;;)if(0===t.n)return t.a(2,tt(E(E({},e),{},{container:n(),setGlobalState:it,onGlobalStateChange:ot})))},t)}));return function(e){return t.apply(this,arguments)}}(),i(ns().m(function e(){return ns().w(function(e){for(;;)if(0===e.n)return e.a(2,C({element:t,loading:!1,container:r},"mounted"))},e)})),i(ns().m(function t(){return ns().w(function(t){for(;;)if(0===t.n)return t.a(2,is(ka(K),e,L))},t)})),i(ns().m(function t(){return ns().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,us(p,e);case 1:if(!t.v){t.n=2;break}ls=new za;case 2:return t.a(2)}},t)})),i(ns().m(function t(){return ns().w(function(t){for(;;)switch(t.n){case 0:case 1:return t.a(2)}},t)}))],unmount:[i(ns().m(function t(){return ns().w(function(t){for(;;)if(0===t.n)return t.a(2,is(ka(W),e,L))},t)})),function(){var t=i(ns().m(function t(e){return ns().w(function(t){for(;;)if(0===t.n)return t.a(2,et(E(E({},e),{},{container:n()})))},t)}));return function(e){return t.apply(this,arguments)}}(),D,i(ns().m(function t(){return ns().w(function(t){for(;;)if(0===t.n)return t.a(2,is(ka($),e,L))},t)})),i(ns().m(function e(){return ns().w(function(e){for(;;)switch(e.n){case 0:C({element:null,loading:!1,container:r},"unmounted"),ut(f),at(t=null);case 1:return e.a(2)}},e)})),i(ns().m(function t(){var n;return ns().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,us(p,e);case 1:if(!(n=t.v)){t.n=2;break}n=ls;case 2:if(!n){t.n=3;break}ls.resolve();case 3:return t.a(2)}},t)}))]};return"function"==typeof nt&&(o.update=nt),o},t.a(2,ct)}},t)})),ms.apply(this,arguments)}function ws(t,e){return bs.apply(this,arguments)}function bs(){return bs=i(ns().m(function t(e,n){var r,o,i,u,a,c,s,f;return ns().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,e();case 1:if((r=t.v)&&r.length){t.n=2;break}return t.a(2);case 2:if(o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=function(t,e){return[RegExp("export\\s+(?:async\\s+)?function\\s+".concat(e,"\\b")),RegExp("exports\\.".concat(e,"\\s*=")),RegExp("module\\.exports\\s*=\\s*\\{[\\s\\S]*?".concat(e,"\\b"),"m"),RegExp("".concat(e,"\\s*:\\s*(?:async\\s*)?function\\b")),RegExp("function\\s+".concat(e,"\\s*\\(")),RegExp("window\\[\\s*['\"]".concat(o,"['\"]\\s*\\]\\s*=\\s*\\{[\\s\\S]*?").concat(e,"\\b"),"m"),RegExp("window\\.".concat(o,"\\s*=\\s*\\{[\\s\\S]*?").concat(e,"\\b"),"m")].some(function(e){return e.test(t)})},u=r.map(function(t){var e;return null!==(e=t.value)&&void 0!==e?e:""}).join("\n"),a=i(u,"bootstrap"),c=i(u,"mount"),s=i(u,"unmount"),a&&c&&s){t.n=3;break}throw new Ti("You need to export lifecycle functions in ".concat(n," entry"));case 3:t.n=5;break;case 4:if(t.p=4,!((f=t.v)instanceof Ti)){t.n=5;break}throw f;case 5:return t.a(2)}},t,null,[[0,4]])})),bs.apply(this,arguments)}function gs(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=Object.create((r&&r.prototype instanceof a?r:a).prototype);return xs(c,"_invoke",function(n,r,o){var i,a,c,s=0,f=o||[],l=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,a=0,c=t,p.n=n,u}};function d(n,r){for(a=n,c=r,e=0;!l&&s&&!o&&f.length>e;e++){var o,i=f[e],d=p.p,v=i[2];n>3?(o=v===r)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):d>=i[0]&&((o=2>n&&i[1]>d)?(a=0,p.v=r,p.n=i[1]):v>d&&(o=3>n||i[0]>r||r>v)&&(i[4]=n,i[5]=r,p.n=v,a=0))}if(o||n>1)return u;throw l=!0,r}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&d(f,v),a=f,c=v;(e=2>a?t:c)||!l;){i||(a?3>a?(a>1&&(p.n=-1),d(a,c)):p.n=c:p.v=c);try{if(s=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,2>a&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),2>a&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(l=0>p.n)?c:n.call(r,p))!==u)break}catch(e){i=t,a=1,c=e}finally{s=1}}return{value:e,done:l}}}(n,o,i),!0),c}var u={};function a(){}function c(){}function s(){}e=Object.getPrototypeOf;var f=[][r]?e(e([][r]())):(xs(e={},r,function(){return this}),e),l=s.prototype=a.prototype=Object.create(f);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,xs(t,o,"GeneratorFunction")),t.prototype=Object.create(l),t}return c.prototype=s,xs(l,"constructor",s),xs(s,"constructor",c),c.displayName="GeneratorFunction",xs(s,o,"GeneratorFunction"),xs(l),xs(l,o,"Generator"),xs(l,r,function(){return this}),xs(l,"toString",function(){return"[object Generator]"}),(gs=function(){return{w:i,m:p}})()}function xs(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}xs=function(t,e,n,r){function i(e,n){xs(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},xs(t,e,n,r)}var _s=window.requestIdleCallback||function(t){var e=Date.now();return setTimeout(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1)},Os=!!navigator.connection&&(navigator.connection.saveData||"wifi"!==navigator.connection.type&&"ethernet"!==navigator.connection.type&&/([23])g/.test(navigator.connection.effectiveType));function Es(t,e){navigator.onLine&&!Os&&_s(i(gs().m(function n(){var r,o;return gs().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,oi(t,e);case 1:o=(r=n.v).getExternalScripts,_s(r.getExternalStyleSheets),_s(o);case 2:return n.a(2)}},n)})))}function js(t,e){window.addEventListener("single-spa:first-mount",function n(){t.filter(function(t){return qt(t.name)===L}).forEach(function(t){return Es(t.entry,e)}),window.removeEventListener("single-spa:first-mount",n)})}function Ps(t,e){t.forEach(function(t){return Es(t.entry,e)})}var Ss=["name","activeRule","loader","props"],Ts=["mount"],As=["prefetch","sandbox","singular","urlRerouteOnly"];function Ms(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=Object.create((r&&r.prototype instanceof a?r:a).prototype);return ks(c,"_invoke",function(n,r,o){var i,a,c,s=0,f=o||[],l=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,a=0,c=t,p.n=n,u}};function d(n,r){for(a=n,c=r,e=0;!l&&s&&!o&&f.length>e;e++){var o,i=f[e],d=p.p,v=i[2];n>3?(o=v===r)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):d>=i[0]&&((o=2>n&&i[1]>d)?(a=0,p.v=r,p.n=i[1]):v>d&&(o=3>n||i[0]>r||r>v)&&(i[4]=n,i[5]=r,p.n=v,a=0))}if(o||n>1)return u;throw l=!0,r}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&d(f,v),a=f,c=v;(e=2>a?t:c)||!l;){i||(a?3>a?(a>1&&(p.n=-1),d(a,c)):p.n=c:p.v=c);try{if(s=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,2>a&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),2>a&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(l=0>p.n)?c:n.call(r,p))!==u)break}catch(e){i=t,a=1,c=e}finally{s=1}}return{value:e,done:l}}}(n,o,i),!0),c}var u={};function a(){}function c(){}function s(){}e=Object.getPrototypeOf;var f=[][r]?e(e([][r]())):(ks(e={},r,function(){return this}),e),l=s.prototype=a.prototype=Object.create(f);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,ks(t,o,"GeneratorFunction")),t.prototype=Object.create(l),t}return c.prototype=s,ks(l,"constructor",s),ks(s,"constructor",c),c.displayName="GeneratorFunction",ks(s,o,"GeneratorFunction"),ks(l),ks(l,o,"Generator"),ks(l,r,function(){return this}),ks(l,"toString",function(){return"[object Generator]"}),(Ms=function(){return{w:i,m:p}})()}function ks(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}ks=function(t,e,n,r){function i(e,n){ks(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},ks(t,e,n,r)}var Ns=[],Is={},Cs=!1,Rs=!0,Ls=new za,Gs=function(t){var e=t.sandbox,n=t.singular;return e&&!window.Proxy?(console.warn("[qiankun] Miss window.Proxy, proxySandbox will degenerate into snapshotSandbox"),!1===n&&console.warn("[qiankun] Setting singular as false may cause unexpected behavior while your browser not support window.Proxy"),E(E({},t),{},{sandbox:"object"===w(e)?E(E({},e),{},{loose:!0}):{loose:!0}})):t};var Ds=new Map,Us=new Map;function Bs(t){window.addEventListener("single-spa:no-app-change",function e(){zt().length||St(t),window.removeEventListener("single-spa:no-app-change",e)})}t.__internalGetCurrentRunningApp=Ya,t.addErrorHandler=N,t.addGlobalUncaughtErrorHandler=function(t){window.addEventListener("error",t),window.addEventListener("unhandledrejection",t)},t.initGlobalState=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t===Pu)console.warn("[qiankun] state has not changed!");else{var e=ju(Pu);Tu(Pu=ju(t),e)}return Au("global-".concat(+new Date),!0)},t.loadMicroApp=function(t,e,n){var r,o,u=t.props,a=t.name,c="container"in t?t.container:void 0,s=function(t){if(t){var e=qa(t);if(e)return function(t,e){if(e.body.contains(t)){for(var n,r,o="",i=t;i!==e.documentElement;){for(n=0,r=i;r;)1===r.nodeType&&r.nodeName===i.nodeName&&(n+=1),r=r.previousSibling;o="*[name()='".concat(i.nodeName,"'][").concat(n,"]/").concat(o),i=i.parentNode}return(o="/*[name()='".concat(e.documentElement.nodeName,"']/").concat(o)).replace(/\/$/,"")}}(e,document)}}(c),f="".concat(a,"-").concat(s),l=function(t){var e=t;if(c&&s){var n=Us.get(f);if(null==n?void 0:n.length){var o=[i(Ms().m(function t(){var e,o;return Ms().w(function(t){for(;;)switch(t.n){case 0:return e=n.slice(0,n.indexOf(r)),o=e.filter(function(t){return"LOAD_ERROR"!==t.getStatus()&&"SKIP_BECAUSE_BROKEN"!==t.getStatus()}),t.n=1,Promise.all(o.map(function(t){return t.unmountPromise}));case 1:return t.a(2)}},t)}))].concat(y(ka(e.mount)));e=E(E({},t),{},{mount:o})}}return E(E({},e),{},{bootstrap:function(){return Promise.resolve()}})},p=function(){var r=i(Ms().m(function r(){var o,i,u,p,d,v,h;return Ms().w(function(r){for(;;)switch(r.n){case 0:if(o=Gs(null!=e?e:E(E({},Is),{},{singular:!1})),i=o.$$cacheLifecycleByAppName,!c){r.n=4;break}if(!i){r.n=2;break}if(!(u=Ds.get(a))){r.n=2;break}return v=l,r.n=1,u;case 1:return r.a(2,v((0,r.v)(c)));case 2:if(!s){r.n=4;break}if(!(p=Ds.get(f))){r.n=4;break}return h=l,r.n=3,p;case 3:return r.a(2,h((0,r.v)(c)));case 4:return d=ys(t,o,n),c&&(i?Ds.set(a,d):s&&Ds.set(f,d)),r.n=5,d;case 5:return r.a(2,(0,r.v)(c))}},r)}));return function(){return r.apply(this,arguments)}}();if(Cs||!1===(null==e?void 0:e.autoStart)||ae({urlRerouteOnly:null!==(o=Is.urlRerouteOnly)&&void 0!==o?o:Rs}),r=lt(p,E({domElement:document.createElement("div")},u)),c&&s){var d=Us.get(f)||[];d.push(r),Us.set(f,d);var v=function(){var t=d.indexOf(r);d.splice(t,1),r=null};r.unmountPromise.then(v).catch(v)}return r},t.prefetchApps=Ps,t.registerMicroApps=function(t,e){var n=t.filter(function(t){return!Ns.some(function(e){return e.name===t.name})});Ns=[].concat(y(Ns),y(n)),n.forEach(function(t){var n,r=t.name,o=t.activeRule,a=t.loader,c=void 0===a?u:a,f=t.props,l=s(t,Ss);Kt({name:r,app:(n=i(Ms().m(function t(){var n,o,u;return Ms().w(function(t){for(;;)switch(t.n){case 0:return c(!0),t.n=1,Ls.promise;case 1:return t.n=2,ys(E({name:r,props:f},l),Is,e);case 2:return n=(0,t.v)(),o=n.mount,u=s(n,Ts),t.a(2,E({mount:[i(Ms().m(function t(){return Ms().w(function(t){for(;;)if(0===t.n)return t.a(2,c(!0))},t)}))].concat(y(ka(o)),[i(Ms().m(function t(){return Ms().w(function(t){for(;;)if(0===t.n)return t.a(2,c(!1))},t)}))])},u))}},t)})),function(){return n.apply(this,arguments)}),activeWhen:o,customProps:f})})},t.removeErrorHandler=I,t.removeGlobalUncaughtErrorHandler=function(t){window.removeEventListener("error",t),window.removeEventListener("unhandledrejection",t)},t.runAfterFirstMounted=function(t){window.addEventListener("single-spa:first-mount",function e(){t(),window.removeEventListener("single-spa:first-mount",e)})},t.runDefaultMountEffects=function(t){console.warn("[qiankun] runDefaultMountEffects will be removed in next version, please use setDefaultMountApp instead"),Bs(t)},t.setDefaultMountApp=Bs,t.start=function(){Is=E({prefetch:!0,singular:!0,sandbox:!0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});var t=Is.prefetch,e=Is.urlRerouteOnly,n=void 0===e?Rs:e,r=s(Is,As);t&&function(t,e,n){var r=function(e){return t.filter(function(t){return e.includes(t.name)})};if(Array.isArray(e))js(r(e),n);else if(Qe(e))i(gs().m(function o(){var i,u,a,c;return gs().w(function(o){for(;;)switch(o.n){case 0:return o.n=1,e(t);case 1:c=void 0===(a=(i=o.v).minorAppsName)?[]:a,Ps(r(void 0===(u=i.criticalAppNames)?[]:u),n),js(r(c),n);case 2:return o.a(2)}},o)}))();else switch(e){case!0:js(t,n);break;case"all":Ps(t,n)}}(Ns,t,r),Is=Gs(Is),ae({urlRerouteOnly:n}),Cs=!0,Ls.resolve()},Object.defineProperty(t,"__esModule",{value:!0})});
|
|
4
|
+
//# sourceMappingURL=index.umd.min.js.map
|