MeterSphere/framework/sdk-parent/frontend/public/js/prd/qiankun.umd.min.js

3 lines
108 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!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,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.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 a=t.apply(n,r);function u(t){e(a,o,i,u,c,"next",t)}function c(t){e(a,o,i,u,c,"throw",t)}u(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports})),i=n(o);var a=function(){},u=r((function(t){t.exports=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;i.length>r;r++)0>e.indexOf(n=i[r])&&(o[n]=t[n]);return o},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=u(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;i.length>r;r++)0>e.indexOf(n=i[r])&&Object.prototype.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=Object.prototype.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})),h=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})),v=n(r((function(t){t.exports=function(t){return l(t)||p(t)||d(t)||h()},t.exports.__esModule=!0,t.exports.default=t.exports}))),y=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})),m=n(y),w=r((function(t){var e=y.default;t.exports=function(t,n){if("object"!==e(t)||null===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=y.default;t.exports=function(t){var n=w(t,"string");return"symbol"===e(n)?n:n+""},t.exports.__esModule=!0,t.exports.default=t.exports})),b=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})),x=n(b),_=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){b(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})),O=n(_),E=r((function(t){var e=y.default;function n(){t.exports=n=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var r={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=Object.create((e&&e.prototype instanceof v?e:v).prototype),i=new A(r||[]);return a(o,"_invoke",{value:E(t,n,i)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=p;var h={};function v(){}function y(){}function m(){}var w={};l(w,c,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==o&&i.call(b,c)&&(w=b);var x=m.prototype=v.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,n){function r(o,a,u,c){var s=d(t[o],t,a);if("throw"!==s.type){var f=s.arg,l=f.value;return l&&"object"==e(l)&&i.call(l,"__await")?n.resolve(l.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):n.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,c)}))}c(s.arg)}var o;a(this,"_invoke",{value:function(t,e){function i(){return new n((function(n,o){r(t,e,n,o)}))}return o=o?o.then(i,i):i()}})}function E(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return M()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=P(a,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=d(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function P(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,P(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=d(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(i.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:M}}function M(){return{value:void 0,done:!0}}return y.prototype=m,a(x,"constructor",{value:m,configurable:!0}),a(m,"constructor",{value:y,configurable:!0}),y.displayName=l(m,f,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,f,"GeneratorFunction")),t.prototype=Object.create(x),t},r.awrap=function(t){return{__await:t}},_(O.prototype),l(O.prototype,s,(function(){return this})),r.AsyncIterator=O,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new O(p(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(x),l(x,f,"Generator"),l(x,c,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},r.values=T,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(this.prev>=o.tryLoc){var u=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(u&&c){if(o.catchLoc>this.prev)return n(o.catchLoc,!0);if(o.finallyLoc>this.prev)return n(o.finallyLoc)}else if(u){if(o.catchLoc>this.prev)return n(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(o.finallyLoc>this.prev)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(this.prev>=r.tryLoc&&i.call(r,"finallyLoc")&&r.finallyLoc>this.prev){var o=r;break}}o&&("break"===t||"continue"===t)&&e>=o.tryLoc&&o.finallyLoc>=e&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},r}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),P=E(),j=P;try{regeneratorRuntime=P}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=P:Function("r","regeneratorRuntime = r")(P)}var S=Object.freeze({__proto__:null,get start(){return ce},get ensureJQuerySupport(){return Rt},get setBootstrapMaxTime(){return mt},get setMountMaxTime(){return wt},get setUnmountMaxTime(){return gt},get setUnloadMaxTime(){return bt},get registerApplication(){return Vt},get unregisterApplication(){return Jt},get getMountedApps(){return qt},get getAppStatus(){return Kt},get unloadApplication(){return Zt},get checkActivityFunctions(){return Yt},get getAppNames(){return $t},get pathToActiveWhen(){return te},get navigateToUrl(){return At},get triggerAppChange(){return oe},get addErrorHandler(){return C},get removeErrorHandler(){return I},get mountRootParcel(){return pt},get NOT_LOADED(){return U},get LOADING_SOURCE_CODE(){return B},get NOT_BOOTSTRAPPED(){return G},get BOOTSTRAPPING(){return H},get NOT_MOUNTED(){return W},get MOUNTING(){return F},get UPDATING(){return q},get LOAD_ERROR(){return K},get MOUNTED(){return z},get UNMOUNTING(){return $},get SKIP_BECAUSE_BROKEN(){return V}});function A(t){return(A="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 T(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var M=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).CustomEvent,L=function(){try{var t=new M("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?M:"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},k=[];function N(t,e,n){var r=D(t,e,n);k.length?k.forEach((function(t){return t(r)})):setTimeout((function(){throw r}))}function C(t){if("function"!=typeof t)throw Error(R(28,!1));k.push(t)}function I(t){if("function"!=typeof t)throw Error(R(29,!1));var e=!1;return k=k.filter((function(n){var r=n===t;return e=e||r,!r})),e}function R(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 D(t,e,n){var r,o="".concat(X(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(R(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 U="NOT_LOADED",B="LOADING_SOURCE_CODE",G="NOT_BOOTSTRAPPED",H="BOOTSTRAPPING",W="NOT_MOUNTED",F="MOUNTING",z="MOUNTED",q="UPDATING",$="UNMOUNTING",K="LOAD_ERROR",V="SKIP_BECAUSE_BROKEN";function Y(t){return t.status===z}function J(t){try{return t.activeWhen(window.location)}catch(e){return N(e,t,V),!1}}function Z(t){return t.name}function Q(t){return!!t.unmountThisParcel}function X(t){return Q(t)?"parcel":"application"}function tt(){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 et(t,e){for(var n=0;t.length>n;n++)if(e(t[n]))return t[n];return null}function nt(t){return t&&("function"==typeof t||Array.isArray(e=t)&&!et(e,(function(t){return"function"!=typeof t})));var e}function rt(t,e){var n=t[e]||[];0===(n=Array.isArray(n)?n:[n]).length&&(n=[function(){return Promise.resolve()}]);var r=X(t),o=Z(t);return function(t){return n.reduce((function(n,i,a){return n.then((function(){var n=i(t);return ot(n)?n:Promise.reject(R(15,!1,r,o,e,a))}))}),Promise.resolve())}}function ot(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch}function it(t,e){return Promise.resolve().then((function(){return t.status!==G?t:(t.status=H,t.bootstrap?xt(t,"bootstrap").then(n).catch((function(n){if(e)throw D(n,t,V);return N(n,t,V),t})):Promise.resolve().then(n))}));function n(){return t.status=W,t}}function at(t,e){return Promise.resolve().then((function(){if(t.status!==z)return t;t.status=$;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 D(r,t,V);N(r,t,V)}))})).then((function(){return t}));function r(){return xt(t,"unmount").then((function(){t.status=W})).catch((function(n){if(e)throw D(n,t,V);N(n,t,V)}))}}))}var ut=!1,ct=!1;function st(t,e){return Promise.resolve().then((function(){return t.status!==W?t:(ut||(window.dispatchEvent(new L("single-spa:before-first-mount")),ut=!0),xt(t,"mount").then((function(){return t.status=z,ct||(window.dispatchEvent(new L("single-spa:first-mount")),ct=!0),t})).catch((function(n){return t.status=z,at(t,!0).then(r,r);function r(){if(e)throw D(n,t,V);return N(n,t,V),t}})))}))}var ft=0,lt={parcels:{}};function pt(){return dt.apply(lt,arguments)}function dt(t,e){var n=this;if(!t||"object"!==A(t)&&"function"!=typeof t)throw Error(R(2,!1));if(t.name&&"string"!=typeof t.name)throw Error(R(3,!1,A(t.name)));if("object"!==A(e))throw Error(R(4,!1,name,A(e)));if(!e.domElement)throw Error(R(5,!1,name));var r,o=ft++,i="function"==typeof t,a=i?t:function(){return Promise.resolve(t)},u={id:o,parcels:{},status:i?B:G,customProps:e,parentName:Z(n),unmountThisParcel:function(){return p.then((function(){if(u.status!==z)throw Error(R(6,!1,name,u.status));return at(u,!0)})).then((function(t){return u.parentName&&delete n.parcels[u.id],t})).then((function(t){return s(t),t})).catch((function(t){throw u.status=V,f(t),t}))}};n.parcels[o]=u;var c=a();if(!c||"function"!=typeof c.then)throw Error(R(7,!1));var s,f,l=(c=c.then((function(t){if(!t)throw Error(R(8,!1));var e=t.name||"parcel-".concat(o);if(Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!nt(t.bootstrap))throw Error(R(9,!1,e));if(!nt(t.mount))throw Error(R(10,!1,e));if(!nt(t.unmount))throw Error(R(11,!1,e));if(t.update&&!nt(t.update))throw Error(R(12,!1,e));var n=rt(t,"bootstrap"),i=rt(t,"mount"),a=rt(t,"unmount");u.status=G,u.name=e,u.bootstrap=n,u.mount=i,u.unmount=a,u.timeouts=_t(t.timeouts),t.update&&(u.update=rt(t,"update"),r.update=function(t){return u.customProps=t,ht(function(t){return Promise.resolve().then((function(){if(t.status!==z)throw Error(R(32,!1,Z(t)));return t.status=q,xt(t,"update").then((function(){return t.status=z,t})).catch((function(e){throw D(e,t,V)}))}))}(u))})}))).then((function(){return it(u,!0)})),p=l.then((function(){return st(u,!0)})),d=new Promise((function(t,e){s=t,f=e}));return r={mount:function(){return ht(Promise.resolve().then((function(){if(u.status!==W)throw Error(R(13,!1,name,u.status));return n.parcels[o]=u,st(u)})))},unmount:function(){return ht(u.unmountThisParcel())},getStatus:function(){return u.status},loadPromise:ht(c),bootstrapPromise:ht(l),mountPromise:ht(p),unmountPromise:ht(d)}}function ht(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"!==A(n)||null===n||Array.isArray(n))&&(n={},console.warn(R(40,!1),e,n));var r=tt({},n,{name:e,mountParcel:dt.bind(t),singleSpa:S});return Q(t)&&(r.unmountSelf=t.unmountThisParcel),r}var yt={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 mt(t,e,n){if("number"!=typeof t||0>=t)throw Error(R(16,!1));yt.bootstrap={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function wt(t,e,n){if("number"!=typeof t||0>=t)throw Error(R(17,!1));yt.mount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function gt(t,e,n){if("number"!=typeof t||0>=t)throw Error(R(18,!1));yt.unmount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function bt(t,e,n){if("number"!=typeof t||0>=t)throw Error(R(19,!1));yt.unload={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function xt(t,e){var n=t.timeouts[e],r=n.warningMillis,o=X(t);return new Promise((function(i,a){var u=!1,c=!1;t[e](vt(t)).then((function(t){u=!0,i(t)})).catch((function(t){u=!0,a(t)})),setTimeout((function(){return f(1)}),r),setTimeout((function(){return f(!0)}),n.millis);var s=R(31,!1,e,o,Z(t),n.millis);function f(t){if(!u)if(!0===t)c=!0,n.dieOnTimeout?a(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 _t(t){var e={};for(var n in yt)e[n]=tt({},yt[n],t&&t[n]||{});return e}function Ot(t){return Promise.resolve().then((function(){return t.loadPromise?t.loadPromise:t.status!==U&&t.status!==K?t:(t.status=B,t.loadPromise=Promise.resolve().then((function(){var r=t.loadApp(vt(t));if(!ot(r))throw n=!0,Error(R(33,!1,Z(t)));return r.then((function(n){var r;t.loadErrorTime=null,"object"!==A(e=n)&&(r=34),Object.prototype.hasOwnProperty.call(e,"bootstrap")&&!nt(e.bootstrap)&&(r=35),nt(e.mount)||(r=36),nt(e.unmount)||(r=37);var o=X(e);if(r){var i;try{i=JSON.stringify(e)}catch(t){}return console.error(R(r,!1,o,Z(t),i),e),N(void 0,t,V),t}return e.devtools&&e.devtools.overlays&&(t.devtools.overlays=tt({},t.devtools.overlays,e.devtools.overlays)),t.status=G,t.bootstrap=rt(e,"bootstrap"),t.mount=rt(e,"mount"),t.unmount=rt(e,"unmount"),t.unload=rt(e,"unload"),t.timeouts=_t(e.timeouts),delete t.loadPromise,t}))})).catch((function(e){var r;return delete t.loadPromise,n?r=V:(r=K,t.loadErrorTime=(new Date).getTime()),N(e,t,r),t})));var e,n}))}var Et,Pt="undefined"!=typeof window,jt={hashchange:[],popstate:[]},St=["hashchange","popstate"];function At(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(R(14,!1));e=t.currentTarget.href,t.preventDefault()}var n=Ct(window.location.href),r=Ct(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;St.indexOf(n)>=0&&jt[n].forEach((function(n){try{n.apply(e,t)}catch(t){setTimeout((function(){throw t}))}}))}}function Mt(){ie([],arguments)}function Lt(t,e){return function(){var n=window.location.href,r=t.apply(this,arguments),o=window.location.href;return Et&&n===o||(se()?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)):ie([])),r}}if(Pt){window.addEventListener("hashchange",Mt),window.addEventListener("popstate",Mt);var kt=window.addEventListener,Nt=window.removeEventListener;window.addEventListener=function(t,e){if("function"!=typeof e||0>St.indexOf(t)||et(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>St.indexOf(t))return Nt.apply(this,arguments);jt[t]=jt[t].filter((function(t){return t!==e}))},window.history.pushState=Lt(window.history.pushState,"pushState"),window.history.replaceState=Lt(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(R(41,!1)):window.singleSpaNavigate=At}function Ct(t){var e=document.createElement("a");return e.href=t,e}var It=!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&&!It){var e=t.fn.on,n=t.fn.off;t.fn.on=function(t,n){return Dt.call(this,e,window.addEventListener,t,n,arguments)},t.fn.off=function(t,e){return Dt.call(this,n,window.removeEventListener,t,e,arguments)},It=!0}}function Dt(t,e,n,r,o){return"string"!=typeof n?t.apply(this,o):(n.split(/\s+/).forEach((function(t){St.indexOf(t)>=0&&(e(t,r),n=n.replace(t,""))})),""===n.trim()?this:t.apply(this,o))}var Ut={};function Bt(t){return Promise.resolve().then((function(){var e=Ut[Z(t)];if(!e)return t;if(t.status===U)return Gt(t,e),t;if("UNLOADING"===t.status)return e.promise.then((function(){return t}));if(t.status!==W&&t.status!==K)return t;var n=t.status===K?Promise.resolve():xt(t,"unload");return t.status="UNLOADING",n.then((function(){return Gt(t,e),t})).catch((function(n){return function(t,e,n){delete Ut[Z(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,N(n,t,V),e.reject(n)}(t,e,n),t}))}))}function Gt(t,e){delete Ut[Z(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,t.status=U,e.resolve()}function Ht(t,e,n,r){Ut[Z(t)]={app:t,resolve:n,reject:r},Object.defineProperty(Ut[Z(t)],"promise",{get:e})}function Wt(t){return Ut[t]}var Ft=[];function zt(){var t=[],e=[],n=[],r=[],o=(new Date).getTime();return Ft.forEach((function(i){var a=i.status!==V&&J(i);switch(i.status){case K:a&&o-i.loadErrorTime>=200&&n.push(i);break;case U:case B:a&&n.push(i);break;case G:case W:!a&&Wt(Z(i))?t.push(i):a&&r.push(i);break;case z:a||e.push(i)}})),{appsToUnload:t,appsToUnmount:e,appsToLoad:n,appsToMount:r}}function qt(){return Ft.filter(Y).map(Z)}function $t(){return Ft.map(Z)}function Kt(t){var e=et(Ft,(function(e){return Z(e)===t}));return e?e.status:null}function Vt(t,e,n,r){var o=function(t,e,n,r){var o,i={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"===A(t)?(function(t){if(Array.isArray(t)||null===t)throw Error(R(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(R(38,!1,e.join(", "),n.join(", ")));if("string"!=typeof t.name||0===t.name.length)throw Error(R(20,!1));if("object"!==A(t.app)&&"function"!=typeof t.app)throw Error(R(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(R(24,!1));if(!Xt(t.customProps))throw Error(R(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(R(20,!1));if(!e)throw Error(R(23,!1));if("function"!=typeof n)throw Error(R(24,!1));if(!Xt(r))throw Error(R(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:te(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(R(21,!1,o.name));Ft.push(tt({loadErrorTime:null,status:U,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},o)),Pt&&(Rt(),ie())}function Yt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location;return Ft.filter((function(e){return e.activeWhen(t)})).map(Z)}function Jt(t){if(0===Ft.filter((function(e){return Z(e)===t})).length)throw Error(R(25,!1,t));return Zt(t).then((function(){var e=Ft.map(Z).indexOf(t);Ft.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(R(26,!1));var n=et(Ft,(function(e){return Z(e)===t}));if(!n)throw Error(R(27,!1,t));var r,o=Wt(Z(n));if(e&&e.waitForUnmount){if(o)return o.promise;var i=new Promise((function(t,e){Ht(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){Ht(n,(function(){return r}),t,e),Qt(n,t,e)})),r}function Qt(t,e,n){at(t).then(Bt).then((function(){e(),setTimeout((function(){ie()}))})).catch(n)}function Xt(t){return!t||"function"==typeof t||"object"===A(t)&&null!==t&&!Array.isArray(t)}function te(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 a=t[i];(!r&&":"===a||r&&"/"===a)&&u(i)}return u(t.length),RegExp(o,"i");function u(i){var a=t.slice(n,i).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(o+=r?"[^/]+/?":a,i===t.length)if(r)e&&(o+="$");else{var u=e?"":".*";o="/"===o.charAt(o.length-1)?"".concat(o).concat(u,"$"):"".concat(o,"(/").concat(u,")?(#.*)?$")}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 ee=!1,ne=[],re=Pt&&window.location.href;function oe(){return ie()}function ie(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;if(ee)return new Promise((function(t,n){ne.push({resolve:t,reject:n,eventArguments:e})}));var n,r=zt(),o=r.appsToUnload,i=r.appsToUnmount,a=r.appsToLoad,u=r.appsToMount,c=!1,s=re,f=re=window.location.href;return se()?(ee=!0,n=o.concat(a,i,u),Promise.resolve().then((function(){if(window.dispatchEvent(new L(0===n.length?"single-spa:before-no-app-change":"single-spa:before-app-change",h(!0))),window.dispatchEvent(new L("single-spa:before-routing-event",h(!0,{cancelNavigation:l}))),c)return window.dispatchEvent(new L("single-spa:before-mount-routing-event",h(!0))),p(),void At(s);var e=o.map(Bt),r=i.map(at).map((function(t){return t.then(Bt)})).concat(e),f=Promise.all(r);f.then((function(){window.dispatchEvent(new L("single-spa:before-mount-routing-event",h(!0)))}));var v=a.map((function(t){return Ot(t).then((function(t){return ae(t,f)}))})),y=u.filter((function(t){return 0>a.indexOf(t)})).map((function(t){return ae(t,f)}));return f.catch((function(t){throw d(),t})).then((function(){return d(),Promise.all(v.concat(y)).catch((function(e){throw t.forEach((function(t){return t.reject(e)})),e})).then(p)}))}))):(n=a,Promise.resolve().then((function(){var t=a.map(Ot);return Promise.all(t).then(d).then((function(){return[]})).catch((function(t){throw d(),t}))})));function l(){c=!0}function p(){var e=qt();t.forEach((function(t){return t.resolve(e)}));try{window.dispatchEvent(new L(0===n.length?"single-spa:no-app-change":"single-spa:app-change",h())),window.dispatchEvent(new L("single-spa:routing-event",h()))}catch(t){setTimeout((function(){throw t}))}if(ee=!1,ne.length>0){var r=ne;ne=[],ie(r)}return e}function d(){t.forEach((function(t){Tt(t.eventArguments)})),Tt(e)}function h(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],l=arguments.length>1?arguments[1]:void 0,p={},d=(T(t={},z,[]),T(t,W,[]),T(t,U,[]),T(t,V,[]),t);r?(a.concat(u).forEach((function(t,e){v(t,z)})),o.forEach((function(t){v(t,U)})),i.forEach((function(t){v(t,W)}))):n.forEach((function(t){v(t)}));var h={detail:{newAppStatuses:p,appsByNewStatus:d,totalAppChanges:n.length,originalEvent:null==e?void 0:e[0],oldUrl:s,newUrl:f,navigationIsCanceled:c}};return l&&tt(h.detail,l),h;function v(t,e){var n=Z(t);e=e||Kt(n),p[n]=e,(d[e]=d[e]||[]).push(n)}}}function ae(t,e){return J(t)?it(t).then((function(t){return e.then((function(){return J(t)?st(t):t}))})):e.then((function(){return t}))}var ue=!1;function ce(t){ue=!0,t&&t.urlRerouteOnly&&(Et=t.urlRerouteOnly),Pt&&ie()}function se(){return ue}Pt&&setTimeout((function(){ue||console.warn(R(1,!1))}),5e3),Pt&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods={getRawAppData:function(){return[].concat(Ft)},reroute:ie,NOT_LOADED:U,toLoadPromise:Ot,toBootstrapPromise:it,unregisterApplication:Jt});var fe=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t},le="object"==typeof e&&e&&e.Object===Object&&e,pe="object"==typeof self&&self&&self.Object===Object&&self,de=le||pe||Function("return this")(),he=de.Symbol,ve=Object.prototype,ye=ve.hasOwnProperty,me=ve.toString,we=he?he.toStringTag:void 0;var ge=function(t){var e=ye.call(t,we),n=t[we];try{t[we]=void 0;var r=!0}catch(t){}var o=me.call(t);return r&&(e?t[we]=n:delete t[we]),o},be=Object.prototype.toString;var xe=function(t){return be.call(t)},_e="[object Null]",Oe="[object Undefined]",Ee=he?he.toStringTag:void 0;var Pe=function(t){return null==t?void 0===t?Oe:_e:Ee&&Ee in Object(t)?ge(t):xe(t)};var je=function(t){return null!=t&&"object"==typeof t},Se="[object Arguments]";var Ae=function(t){return je(t)&&Pe(t)==Se},Te=Object.prototype,Me=Te.hasOwnProperty,Le=Te.propertyIsEnumerable,ke=Ae(function(){return arguments}())?Ae:function(t){return je(t)&&Me.call(t,"callee")&&!Le.call(t,"callee")},Ne=ke,Ce=Array.isArray,Ie=he?he.isConcatSpreadable:void 0;var Re=function(t){return Ce(t)||Ne(t)||!!(Ie&&t&&t[Ie])};var De=function t(e,n,r,o,i){var a=-1,u=e.length;for(r||(r=Re),i||(i=[]);++a<u;){var c=e[a];n>0&&r(c)?n>1?t(c,n-1,r,o,i):fe(i,c):o||(i[i.length]=c)}return i};var Ue=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e};var Be=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 fe(Ce(n)?Ue(n):[n],De(e,1))};var Ge=function(t,e){return t===e||t!=t&&e!=e};var He=function(t,e){for(var n=t.length;n--;)if(Ge(t[n][0],e))return n;return-1},We=Array.prototype.splice;var Fe=function(t){var e=this.__data__,n=He(e,t);return n>=0&&(n==e.length-1?e.pop():We.call(e,n,1),--this.size,!0)};var ze=function(t){var e=this.__data__,n=He(e,t);return 0>n?void 0:e[n][1]};var qe=function(t){return He(this.__data__,t)>-1};var $e=function(t,e){var n=this.__data__,r=He(n,t);return 0>r?(++this.size,n.push([t,e])):n[r][1]=e,this};function Ke(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])}}Ke.prototype.clear=function(){this.__data__=[],this.size=0},Ke.prototype.delete=Fe,Ke.prototype.get=ze,Ke.prototype.has=qe,Ke.prototype.set=$e;var Ve=Ke;var Ye=function(){this.__data__=new Ve,this.size=0};var Je=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};var Ze=function(t){return this.__data__.get(t)};var Qe=function(t){return this.__data__.has(t)};var Xe=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},tn="[object AsyncFunction]",en="[object Function]",nn="[object GeneratorFunction]",rn="[object Proxy]";var on,an=function(t){if(!Xe(t))return!1;var e=Pe(t);return e==en||e==nn||e==tn||e==rn},un=de["__core-js_shared__"],cn=(on=/[^.]+$/.exec(un&&un.keys&&un.keys.IE_PROTO||""))?"Symbol(src)_1."+on:"";var sn=function(t){return!!cn&&cn in t},fn=Function.prototype.toString;var ln=function(t){if(null!=t){try{return fn.call(t)}catch(t){}try{return t+""}catch(t){}}return""},pn=/^\[object .+?Constructor\]$/,dn=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var hn=function(t){return!(!Xe(t)||sn(t))&&(an(t)?dn:pn).test(ln(t))};var vn=function(t,e){return null==t?void 0:t[e]};var yn=function(t,e){var n=vn(t,e);return hn(n)?n:void 0},mn=yn(de,"Map"),wn=yn(Object,"create");var gn=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},bn="__lodash_hash_undefined__",xn=Object.prototype.hasOwnProperty;var _n=function(t){var e=this.__data__;if(wn){var n=e[t];return n===bn?void 0:n}return xn.call(e,t)?e[t]:void 0},On=Object.prototype.hasOwnProperty;var En=function(t){var e=this.__data__;return wn?void 0!==e[t]:On.call(e,t)},Pn="__lodash_hash_undefined__";var jn=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=wn&&void 0===e?Pn:e,this};function Sn(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])}}Sn.prototype.clear=function(){this.__data__=wn?wn(null):{},this.size=0},Sn.prototype.delete=gn,Sn.prototype.get=_n,Sn.prototype.has=En,Sn.prototype.set=jn;var An=Sn;var Tn=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Mn=function(t,e){var n=t.__data__;return Tn(e)?n["string"==typeof e?"string":"hash"]:n.map};var Ln=function(t){var e=Mn(this,t).delete(t);return this.size-=e?1:0,e};var kn=function(t){return Mn(this,t).get(t)};var Nn=function(t){return Mn(this,t).has(t)};var Cn=function(t,e){var n=Mn(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function In(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])}}In.prototype.clear=function(){this.size=0,this.__data__={hash:new An,map:new(mn||Ve),string:new An}},In.prototype.delete=Ln,In.prototype.get=kn,In.prototype.has=Nn,In.prototype.set=Cn;var Rn=In,Dn=200;var Un=function(t,e){var n=this.__data__;if(n instanceof Ve){var r=n.__data__;if(!mn||Dn-1>r.length)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Rn(r)}return n.set(t,e),this.size=n.size,this};function Bn(t){var e=this.__data__=new Ve(t);this.size=e.size}Bn.prototype.clear=Ye,Bn.prototype.delete=Je,Bn.prototype.get=Ze,Bn.prototype.has=Qe,Bn.prototype.set=Un;var Gn=Bn,Hn=function(){try{var t=yn(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();var Wn=function(t,e,n){"__proto__"==e&&Hn?Hn(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var Fn=function(t,e,n){(void 0!==n&&!Ge(t[e],n)||void 0===n&&!(e in t))&&Wn(t,e,n)};var zn=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),u=a.length;u--;){var c=a[t?u:++o];if(!1===n(i[c],c,i))break}return e}}(),qn=r((function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,o=r&&r.exports===n?de.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}})),$n=de.Uint8Array;var Kn=function(t){var e=new t.constructor(t.byteLength);return new $n(e).set(new $n(t)),e};var Vn=function(t,e){var n=e?Kn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)},Yn=Object.create,Jn=function(){function t(){}return function(e){if(!Xe(e))return{};if(Yn)return Yn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();var Zn=function(t,e){return function(n){return t(e(n))}},Qn=Zn(Object.getPrototypeOf,Object),Xn=Object.prototype;var tr=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Xn)};var er=function(t){return"function"!=typeof t.constructor||tr(t)?{}:Jn(Qn(t))},nr=9007199254740991;var rr=function(t){return"number"==typeof t&&t>-1&&t%1==0&&nr>=t};var or=function(t){return null!=t&&rr(t.length)&&!an(t)};var ir=function(t){return je(t)&&or(t)};var ar=function(){return!1},ur=r((function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,o=r&&r.exports===n?de.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||ar})),cr="[object Object]",sr=Function.prototype.toString,fr=Object.prototype.hasOwnProperty,lr=sr.call(Object);var pr=function(t){if(!je(t)||Pe(t)!=cr)return!1;var e=Qn(t);if(null===e)return!0;var n=fr.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&sr.call(n)==lr},dr={};dr["[object Float32Array]"]=dr["[object Float64Array]"]=dr["[object Int8Array]"]=dr["[object Int16Array]"]=dr["[object Int32Array]"]=dr["[object Uint8Array]"]=dr["[object Uint8ClampedArray]"]=dr["[object Uint16Array]"]=dr["[object Uint32Array]"]=!0,dr["[object Arguments]"]=dr["[object Array]"]=dr["[object ArrayBuffer]"]=dr["[object Boolean]"]=dr["[object DataView]"]=dr["[object Date]"]=dr["[object Error]"]=dr["[object Function]"]=dr["[object Map]"]=dr["[object Number]"]=dr["[object Object]"]=dr["[object RegExp]"]=dr["[object Set]"]=dr["[object String]"]=dr["[object WeakMap]"]=!1;var hr=function(t){return je(t)&&rr(t.length)&&!!dr[Pe(t)]};var vr=function(t){return function(e){return t(e)}},yr=r((function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,o=r&&r.exports===n&&le.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})),mr=yr&&yr.isTypedArray,wr=mr?vr(mr):hr;var gr=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},br=Object.prototype.hasOwnProperty;var xr=function(t,e,n){var r=t[e];br.call(t,e)&&Ge(r,n)&&(void 0!==n||e in t)||Wn(t,e,n)};var _r=function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,a=e.length;++i<a;){var u=e[i],c=r?r(n[u],t[u],u,n,t):void 0;void 0===c&&(c=t[u]),o?Wn(n,u,c):xr(n,u,c)}return n};var Or=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},Er=9007199254740991,Pr=/^(?:0|[1-9]\d*)$/;var jr=function(t,e){var n=typeof t;return!!(e=null==e?Er:e)&&("number"==n||"symbol"!=n&&Pr.test(t))&&t>-1&&t%1==0&&e>t},Sr=Object.prototype.hasOwnProperty;var Ar=function(t,e){var n=Ce(t),r=!n&&Ne(t),o=!n&&!r&&ur(t),i=!n&&!r&&!o&&wr(t),a=n||r||o||i,u=a?Or(t.length,String):[],c=u.length;for(var s in t)!e&&!Sr.call(t,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||jr(s,c))||u.push(s);return u};var Tr=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e},Mr=Object.prototype.hasOwnProperty;var Lr=function(t){if(!Xe(t))return Tr(t);var e=tr(t),n=[];for(var r in t)("constructor"!=r||!e&&Mr.call(t,r))&&n.push(r);return n};var kr=function(t){return or(t)?Ar(t,!0):Lr(t)};var Nr=function(t){return _r(t,kr(t))};var Cr=function(t,e,n,r,o,i,a){var u=gr(t,n),c=gr(e,n),s=a.get(c);if(s)Fn(t,n,s);else{var f=i?i(u,c,n+"",t,e,a):void 0,l=void 0===f;if(l){var p=Ce(c),d=!p&&ur(c),h=!p&&!d&&wr(c);f=c,p||d||h?Ce(u)?f=u:ir(u)?f=Ue(u):d?(l=!1,f=qn(c,!0)):h?(l=!1,f=Vn(c,!0)):f=[]:pr(c)||Ne(c)?(f=u,Ne(u)?f=Nr(u):Xe(u)&&!an(u)||(f=er(c))):l=!1}l&&(a.set(c,f),o(f,c,r,i,a),a.delete(c)),Fn(t,n,f)}};var Ir=function t(e,n,r,o,i){e!==n&&zn(n,(function(a,u){if(i||(i=new Gn),Xe(a))Cr(e,n,u,r,t,o,i);else{var c=o?o(gr(e,u),a,u+"",e,n,i):void 0;void 0===c&&(c=a),Fn(e,u,c)}}),kr)};var Rr=function(t){return t};var Dr=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)},Ur=Math.max;var Br=function(t,e,n){return e=Ur(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=Ur(r.length-e,0),a=Array(i);++o<i;)a[o]=r[e+o];o=-1;for(var u=Array(e+1);++o<e;)u[o]=r[o];return u[e]=n(a),Dr(t,this,u)}};var Gr=function(t){return function(){return t}},Hr=800,Wr=16,Fr=Date.now;var zr=function(t){var e=0,n=0;return function(){var r=Fr(),o=Wr-(r-n);if(n=r,o>0){if(++e>=Hr)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},qr=zr(Hn?function(t,e){return Hn(t,"toString",{configurable:!0,enumerable:!1,value:Gr(e),writable:!0})}:Rr);var $r=function(t,e){return qr(Br(t,e,Rr),t+"")};var Kr=function(t,e,n){if(!Xe(n))return!1;var r=typeof e;return!!("number"==r?or(n)&&jr(e,n.length):"string"==r&&e in n)&&Ge(n[e],t)};var Vr=function(t){return $r((function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,a&&Kr(n[0],n[1],a)&&(i=3>o?void 0:i,o=1),e=Object(e);++r<o;){var u=n[r];u&&t(e,u,r,i)}return e}))}((function(t,e,n,r){Ir(t,e,n,r)}));var Yr=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t},Jr=Zn(Object.keys,Object),Zr=Object.prototype.hasOwnProperty;var Qr=function(t){if(!tr(t))return Jr(t);var e=[];for(var n in Object(t))Zr.call(t,n)&&"constructor"!=n&&e.push(n);return e};var Xr=function(t){return or(t)?Ar(t):Qr(t)};var to=function(t,e){return function(n,r){if(null==n)return n;if(!or(n))return t(n,r);for(var o=n.length,i=e?o:-1,a=Object(n);(e?i--:++i<o)&&!1!==r(a[i],i,a););return n}}((function(t,e){return t&&zn(t,e,Xr)}));var eo=function(t){return"function"==typeof t?t:Rr};var no=function(t,e){return(Ce(t)?Yr:to)(t,eo(e))};function ro(t){return ro="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},ro(t)}function oo(t){var e=function(t,e){if("object"!==ro(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==ro(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ro(e)?e:e+""}function io(t,e,n){return(e=oo(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ao(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 uo(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,a,u=[],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)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ao(t,e);var n=Object.prototype.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)?ao(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 co,so,fo,lo="undefined"!=typeof navigator&&-1!==navigator.userAgent.indexOf("Trident");function po(t,e){if(!t.hasOwnProperty(e)||!isNaN(e)&&t.length>e)return!0;if(!lo)return!1;try{return t[e]&&"undefined"!=typeof window&&t[e].parent===window}catch(t){return!0}}function ho(t){var e=t.indexOf(">")+1,n=t.lastIndexOf("<");return t.substring(e,n)}function vo(t){if("object"===ro(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 yo=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 mo={};var wo=/(<script[\s\S]*?>)[\s\S]*?<\/script>/gi,go=/<(script)\s+((?!type=('|")text\/ng\x2Dtemplate\3)[\s\S])*?>[\s\S]*?<\/\1>/i,bo=/.*\ssrc=('|")?([^>'"\s]+)/,xo=/.*\stype=('|")?([^>'"\s]+)/,_o=/.*\sentry\s*.*/,Oo=/.*\sasync\s*.*/,Eo=/.*\snomodule\s*.*/,Po=/.*\stype=('|")?module('|")?\s*.*/,jo=/<(link)\s+[\s\S]*?>/gi,So=/\srel=('|")?(preload|prefetch)\1/,Ao=/.*\shref=('|")?([^>'"\s]+)/,To=/.*\sas=('|")?font\1.*/,Mo=/<style[^>]*>[\s\S]*?<\/style>/gi,Lo=/\s+rel=('|")?stylesheet\1.*/,ko=/.*\shref=('|")?([^>'"\s]+)/,No=/<!--([\s\S]*?)-->/g,Co=/<link(\s+|\s+[\s\S]+\s+)ignore(\s*|\s+[\s\S]*|=[\s\S]*)>/i,Io=/<style(\s+|\s+[\s\S]+\s+)ignore(\s*|\s+[\s\S]*|=[\s\S]*)>/i,Ro=/<script(\s+|\s+[\s\S]+\s+)ignore(\s*|\s+[\s\S]*|=[\s\S]*)>/i;function Do(t){return t.startsWith("//")||t.startsWith("http://")||t.startsWith("https://")}function Uo(t,e){return""+new URL(t,e)}var Bo=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")},Go=function(t){return"\x3c!-- ".concat(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?"async":""," script ").concat(t," replaced by import-html-entry --\x3e")},Ho="\x3c!-- inline scripts replaced by import-html-entry --\x3e",Wo=function(t){return"\x3c!-- ignore asset ".concat(t||"file"," replaced by import-html-entry --\x3e")},Fo=function(t,e){return"\x3c!-- ".concat(e?"nomodule":"module"," script ").concat(t," ignored by import-html-entry --\x3e")};function zo(t,e,n){var r=[],o=[],i=null,a="noModule"in document.createElement("script"),u={template:t.replace(No,"").replace(jo,(function(t){if(!!t.match(Lo)){var n=t.match(ko),r=t.match(Co);if(n){var i=n&&n[2],a=i;return i&&!Do(i)&&(a=Uo(i,e)),r?Wo(a):(o.push(a),Bo(a))}}if(t.match(So)&&t.match(Ao)&&!t.match(To)){var u=uo(t.match(Ao),3);return Bo(u[2],!0)}return t})).replace(Mo,(function(t){return Io.test(t)?Wo("style file"):t})).replace(wo,(function(t,n){var o,u=n.match(Ro),c=a&&!!n.match(Eo)||!a&&!!n.match(Po),s=n.match(xo);if((o=s&&s[2])&&-1===["text/javascript","module","application/javascript","text/ecmascript","application/ecmascript"].indexOf(o))return t;if(go.test(t)&&n.match(bo)){var f=n.match(_o),l=n.match(bo),p=l&&l[2];if(i&&f)throw new SyntaxError("You should not set multiply entry script!");if(p&&!Do(p)&&(p=Uo(p,e)),i=i||f&&p,u)return Wo(p||"js file");if(c)return Fo(p||"js file",a);if(p){var d=!!n.match(Oo);return r.push(d?{async:!0,src:p}:p),Go(p,d)}return t}return u?Wo("js file"):c?Fo("js file",a):(ho(t).split(/[\r\n]+/).every((function(t){return!t.trim()||t.trim().startsWith("//")}))||r.push(t),Ho)})),scripts:r=r.filter((function(t){return!!t})),styles:o,entry:i||r[r.length-1]};return"function"==typeof n&&(u=n(u)),u}function qo(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?qo(Object(n),!0).forEach((function(e){io(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Ko={},Vo={},Yo={};if(!window.fetch)throw Error('[import-html-entry] Here is no "fetch" on the window env, you need to polyfill it');var Jo=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 ti(e,void 0===n?Jo:n).then((function(t){return r=e.reduce((function(e,n,r){return e=e.replace(Bo(n),Xo(n)?"".concat(n):"<style>/* ".concat(n," */").concat(t[r],"</style>"))}),r),r}))}var Xo=function(t){return t.startsWith("<")};function ti(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jo;return Promise.all(t.map((function(t){return Xo(t)?ho(t):Ko[t]||(Ko[t]=e(t).then((function(t){return t.text()})))})))}function ei(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jo,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=function(t){return Vo[t]||(Vo[t]=e(t).then((function(e){if(e.status>=400)throw n(),Error("".concat(t," load failed with status ").concat(e.status));return e.text()})).catch((function(t){throw n(),t})))};return Promise.all(t.map((function(t){if("string"==typeof t)return Xo(t)?ho(t):r(t);var e=t.src;return t.async?{src:e,async:!0,content:new Promise((function(t,n){return yo((function(){return r(e).then(t,n)}))}))}:r(e)})))}function ni(t,e){setTimeout((function(){throw console.error(e),t}))}function ri(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,a=void 0!==i&&i,u=r.success,c=r.error,s=r.beforeExec,f=void 0===s?function(){}:s,l=r.afterExec,p=void 0===l?function(){}:l,d=r.scopedGlobalVariables,h=void 0===d?[]:d;return ei(e,void 0===o?Jo:o,void 0===c?function(){}:c).then((function(r){var o=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,a=void 0===i?[]:i,u=Xo(t)?"":"//# sourceURL=".concat(t,"\n"),c=a.length?a.join(","):"";return(0,eval)("window").proxy=r,o?c?";with(window.proxy){(function(".concat(c,"){;").concat(e,"\n").concat(u,"}).bind(window)(").concat(c,")};"):";(function(window, self, globalThis){with(window){;".concat(e,"\n").concat(u,"}}).bind(window.proxy)(window.proxy, window.proxy, window.proxy);"):";(function(window, self, globalThis){;".concat(e,"\n").concat(u,"}).bind(window.proxy)(window.proxy, window.proxy, window.proxy);")}(t,f(e,t)||e,{proxy:n,strictGlobal:a,scopedGlobalVariables:h});!function(t,e){var n=t;mo[n]||(mo[n]=(0,eval)("(function(){".concat(e,"})"))),mo[n].call(window)}(t,r),p(e,t)};function i(e,r,i){if(e===t){!function(t){for(var e in co=so=void 0,t)po(t,e)||(co?so||(so=e):co=e,fo=e)}(a?n:window);try{o(e,r);var u=n[function(t){var e,n=0,r=!1;for(var o in t)if(!po(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!==co||1===n&&o!==so))return o;n++,e=o}if(e!==fo)return e}(a?n:window)]||{};i(u)}catch(t){throw console.error("[import-html-entry]: error occurs while executing entry script ".concat(e)),t}}else if("string"==typeof r)try{o(e,r)}catch(t){ni(t,"[import-html-entry]: error occurs while executing normal script ".concat(e))}else r.async&&(null==r||r.content.then((function(t){return o(r.src,t)})).catch((function(t){ni(t,"[import-html-entry]: error occurs while executing async script ".concat(r.src))})))}function c(n,o){e.length>n&&(i(e[n],r[n],o),t||n!==e.length-1?c(n+1,o):o())}return new Promise((function(t){return c(0,u||t)}))}))}function oi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Jo,r=!1,o=vo,i=Zo,a=e.postProcessTemplate;return"function"==typeof e?n=e:(e.fetch&&("function"==typeof e.fetch?n=e.fetch:(n=e.fetch.fn||Jo,r=!!e.fetch.autoDecodeResponse)),o=e.getPublicPath||e.getDomain||vo,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=uo(o[1].split("="),2)[1],a=i&&i.trim();a&&(r=a)}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),u=zo(i(e),r,a),c=u.scripts,s=u.entry,f=u.styles;return Qo(u.template,f,{fetch:n}).then((function(t){return{template:t,assetPublicPath:r,getExternalScripts:function(){return ei(c,n)},getExternalStyleSheets:function(){return ti(f,n)},execScripts:function(t,e){return c.length?ri(s,c,t,$o({fetch:n,strictGlobal:e},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})):Promise.resolve()}}}))})))}function ii(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.fetch,o=void 0===r?Jo:r,i=n.getTemplate,a=void 0===i?Zo:i,u=n.postProcessTemplate,c=n.getPublicPath||n.getDomain||vo;if(!t)throw new SyntaxError("entry should not be empty!");if("string"==typeof t)return oi(t,{fetch:o,getPublicPath:c,getTemplate:a,postProcessTemplate:u});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(a(function(t){return f.reduce((function(t,e){return"".concat(t).concat(Go(e))}),t)}((e=void 0===d?"":d,p.reduceRight((function(t,e){return"".concat(Bo(e)).concat(t)}),e)))),p,{fetch:o}).then((function(e){return{template:e,assetPublicPath:c(t),getExternalScripts:function(){return ei(f,o)},getExternalStyleSheets:function(){return ti(p,o)},execScripts:function(t,e){return f.length?ri(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!")}var ai=window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__;function ui(t,e){return Vr({},function(t){return{beforeLoad:function(){return i(j.mark((function e(){return j.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.__POWERED_BY_QIANKUN__=!0;case 1:case"end":return e.stop()}}),e)})))()},beforeMount:function(){return i(j.mark((function e(){return j.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.__POWERED_BY_QIANKUN__=!0;case 1:case"end":return e.stop()}}),e)})))()},beforeUnmount:function(){return i(j.mark((function e(){return j.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:delete t.__POWERED_BY_QIANKUN__;case 1:case"end":return e.stop()}}),e)})))()}}}(t),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",n=!1;return{beforeLoad:function(){return i(j.mark((function n(){return j.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.__INJECTED_PUBLIC_PATH_BY_QIANKUN__=e;case 1:case"end":return n.stop()}}),n)})))()},beforeMount:function(){return i(j.mark((function r(){return j.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n&&(t.__INJECTED_PUBLIC_PATH_BY_QIANKUN__=e);case 1:case"end":return r.stop()}}),r)})))()},beforeUnmount:function(){return i(j.mark((function e(){return j.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:void 0===ai?delete t.__INJECTED_PUBLIC_PATH_BY_QIANKUN__:t.__INJECTED_PUBLIC_PATH_BY_QIANKUN__=ai,n=!0;case 2:case"end":return e.stop()}}),e)})))()}}}(t,e),(function(t,e){return Be(null!=t?t:[],null!=e?e:[])}))}var ci=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})),si=n(ci),fi=n(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}))),li=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})),pi=n(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&&li(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports}))),di=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})),hi=r((function(t){t.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}},t.exports.__esModule=!0,t.exports.default=t.exports})),vi=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=y.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 vi(t)},t.exports.__esModule=!0,t.exports.default=t.exports})),mi=r((function(t){t.exports=function(t){var e=hi();return function(){var n,r=di(t);if(e){var o=di(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yi(this,n)}},t.exports.__esModule=!0,t.exports.default=t.exports})),wi=n(mi),gi=r((function(t){t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")},t.exports.__esModule=!0,t.exports.default=t.exports})),bi=r((function(t){function e(n,r,o){return hi()?(t.exports=e=Reflect.construct.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=e=function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&li(o,n.prototype),o},t.exports.__esModule=!0,t.exports.default=t.exports),e.apply(null,arguments)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})),xi=r((function(t){function e(n){var r="function"==typeof Map?new Map:void 0;return t.exports=e=function(t){if(null===t||!gi(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 bi(t,arguments,di(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),li(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})),_i=function(t){pi(n,t);var e=wi(n);function n(t){return fi(this,n),e.call(this,"[qiankun]: ".concat(t))}return si(n)}(n(xi)(Error));var Oi=function(t,e){return t&&_r(e,Xr(e),t)};var Ei=function(t,e){return t&&_r(e,kr(e),t)};var Pi=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i};var ji=function(){return[]},Si=Object.prototype.propertyIsEnumerable,Ai=Object.getOwnPropertySymbols,Ti=Ai?function(t){return null==t?[]:Pi(Ai(t=Object(t)),(function(e){return Si.call(t,e)}))}:ji;var Mi=function(t,e){return _r(t,Ti(t),e)},Li=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)fe(e,Ti(t)),t=Qn(t);return e}:ji;var ki=function(t,e){return _r(t,Li(t),e)};var Ni=function(t,e,n){var r=e(t);return Ce(t)?r:fe(r,n(t))};var Ci=function(t){return Ni(t,Xr,Ti)};var Ii=function(t){return Ni(t,kr,Li)},Ri=yn(de,"DataView"),Di=yn(de,"Promise"),Ui=yn(de,"Set"),Bi=yn(de,"WeakMap"),Gi="[object Map]",Hi="[object Promise]",Wi="[object Set]",Fi="[object WeakMap]",zi="[object DataView]",qi=ln(Ri),$i=ln(mn),Ki=ln(Di),Vi=ln(Ui),Yi=ln(Bi),Ji=Pe;(Ri&&Ji(new Ri(new ArrayBuffer(1)))!=zi||mn&&Ji(new mn)!=Gi||Di&&Ji(Di.resolve())!=Hi||Ui&&Ji(new Ui)!=Wi||Bi&&Ji(new Bi)!=Fi)&&(Ji=function(t){var e=Pe(t),n="[object Object]"==e?t.constructor:void 0,r=n?ln(n):"";if(r)switch(r){case qi:return zi;case $i:return Gi;case Ki:return Hi;case Vi:return Wi;case Yi:return Fi}return e});var Zi=Ji,Qi=Object.prototype.hasOwnProperty;var Xi=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Qi.call(t,"index")&&(n.index=t.index,n.input=t.input),n};var ta=function(t,e){var n=e?Kn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)},ea=/\w*$/;var na=function(t){var e=new t.constructor(t.source,ea.exec(t));return e.lastIndex=t.lastIndex,e},ra=he?he.prototype:void 0,oa=ra?ra.valueOf:void 0;var ia=function(t){return oa?Object(oa.call(t)):{}},aa="[object Boolean]",ua="[object Date]",ca="[object Map]",sa="[object Number]",fa="[object RegExp]",la="[object Set]",pa="[object String]",da="[object Symbol]",ha="[object ArrayBuffer]",va="[object DataView]",ya="[object Float32Array]",ma="[object Float64Array]",wa="[object Int8Array]",ga="[object Int16Array]",ba="[object Int32Array]",xa="[object Uint8Array]",_a="[object Uint8ClampedArray]",Oa="[object Uint16Array]",Ea="[object Uint32Array]";var Pa=function(t,e,n){var r=t.constructor;switch(e){case ha:return Kn(t);case aa:case ua:return new r(+t);case va:return ta(t,n);case ya:case ma:case wa:case ga:case ba:case xa:case _a:case Oa:case Ea:return Vn(t,n);case ca:return new r;case sa:case pa:return new r(t);case fa:return na(t);case la:return new r;case da:return ia(t)}},ja="[object Map]";var Sa=function(t){return je(t)&&Zi(t)==ja},Aa=yr&&yr.isMap,Ta=Aa?vr(Aa):Sa,Ma="[object Set]";var La=function(t){return je(t)&&Zi(t)==Ma},ka=yr&&yr.isSet,Na=ka?vr(ka):La,Ca=1,Ia=2,Ra=4,Da="[object Arguments]",Ua="[object Function]",Ba="[object GeneratorFunction]",Ga="[object Object]",Ha={};Ha[Da]=Ha["[object Array]"]=Ha["[object ArrayBuffer]"]=Ha["[object DataView]"]=Ha["[object Boolean]"]=Ha["[object Date]"]=Ha["[object Float32Array]"]=Ha["[object Float64Array]"]=Ha["[object Int8Array]"]=Ha["[object Int16Array]"]=Ha["[object Int32Array]"]=Ha["[object Map]"]=Ha["[object Number]"]=Ha[Ga]=Ha["[object RegExp]"]=Ha["[object Set]"]=Ha["[object String]"]=Ha["[object Symbol]"]=Ha["[object Uint8Array]"]=Ha["[object Uint8ClampedArray]"]=Ha["[object Uint16Array]"]=Ha["[object Uint32Array]"]=!0,Ha["[object Error]"]=Ha[Ua]=Ha["[object WeakMap]"]=!1;var Wa=function t(e,n,r,o,i,a){var u,c=n&Ca,s=n&Ia,f=n&Ra;if(r&&(u=i?r(e,o,i,a):r(e)),void 0!==u)return u;if(!Xe(e))return e;var l=Ce(e);if(l){if(u=Xi(e),!c)return Ue(e,u)}else{var p=Zi(e),d=p==Ua||p==Ba;if(ur(e))return qn(e,c);if(p==Ga||p==Da||d&&!i){if(u=s||d?{}:er(e),!c)return s?ki(e,Ei(u,e)):Mi(e,Oi(u,e))}else{if(!Ha[p])return i?e:{};u=Pa(e,p,c)}}a||(a=new Gn);var h=a.get(e);if(h)return h;a.set(e,u),Na(e)?e.forEach((function(o){u.add(t(o,n,r,o,e,a))})):Ta(e)&&e.forEach((function(o,i){u.set(i,t(o,n,r,i,e,a))}));var v=l?void 0:(f?s?Ii:Ci:s?kr:Xr)(e);return Yr(v||e,(function(o,i){v&&(o=e[i=o]),xr(u,i,t(o,n,r,i,e,a))})),u},Fa=1,za=4;var qa,$a=function(t){return Wa(t,Fa|za)},Ka={},Va={};function Ya(t,e){Object.keys(Va).forEach((function(n){Va[n]instanceof Function&&Va[n]($a(t),$a(e))}))}function Ja(t,e){return{onGlobalStateChange:function(e,n){if(e instanceof Function){if(Va[t]&&console.warn("[qiankun] '".concat(t,"' global listener already exists before this, new listener will overwrite it.")),Va[t]=e,n){var r=$a(Ka);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===Ka)return console.warn("[qiankun] state has not changed"),!1;var n=[],r=$a(Ka);return Ka=$a(Object.keys(t).reduce((function(r,o){return e||r.hasOwnProperty(o)?(n.push(o),Object.assign(r,x({},o,t[o]))):(console.warn("[qiankun] '".concat(o,"' not declared when init state")),r)}),Ka)),0===n.length?(console.warn("[qiankun] state has not changed"),!1):(Ya(Ka,r),!0)},offGlobalStateChange:function(){return delete Va[t],!0}}}(qa=t.SandBoxType||(t.SandBoxType={})).Proxy="Proxy",qa.Snapshot="Snapshot",qa.LegacyProxy="LegacyProxy";var Za=/\s/;var Qa=function(t){for(var e=t.length;e--&&Za.test(t.charAt(e)););return e},Xa=/^\s+/;var tu=function(t){return t?t.slice(0,Qa(t)+1).replace(Xa,""):t},eu="[object Symbol]";var nu=function(t){return"symbol"==typeof t||je(t)&&Pe(t)==eu},ru=NaN,ou=/^[-+]0x[0-9a-f]+$/i,iu=/^0b[01]+$/i,au=/^0o[0-7]+$/i,uu=parseInt;var cu=function(t){if("number"==typeof t)return t;if(nu(t))return ru;if(Xe(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Xe(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=tu(t);var n=iu.test(t);return n||au.test(t)?uu(t.slice(2),n?2:8):ou.test(t)?ru:+t},su=1/0,fu=17976931348623157e292;var lu=function(t){return t?(t=cu(t))===su||t===-su?(0>t?-1:1)*fu:t==t?t:0:0===t?t:0};var pu=function(t){var e=lu(t),n=e%1;return e==e?n?e-n:e:0},du="Expected a function";var hu=function(t,e){var n;if("function"!=typeof e)throw new TypeError(du);return t=pu(t),function(){return--t>0&&(n=e.apply(this,arguments)),t>1||(e=void 0),n}};var vu=function(t){return hu(2,t)};var yu=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 mu=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 wu=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},gu=1/0,bu=he?he.prototype:void 0,xu=bu?bu.toString:void 0;var _u=function t(e){if("string"==typeof e)return e;if(Ce(e))return wu(e,t)+"";if(nu(e))return xu?xu.call(e):"";var n=e+"";return"0"==n&&1/e==-gu?"-0":n};var Ou=function(t){return null==t?"":_u(t)},Eu=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Pu=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var ju=function(t){return(t=Ou(t))&&t.replace(Eu,mu).replace(Pu,"")},Su=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Au=function(t){return t.match(Su)||[]},Tu=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Mu=function(t){return Tu.test(t)},Lu="\\ud800-\\udfff",ku="\\u2700-\\u27bf",Nu="a-z\\xdf-\\xf6\\xf8-\\xff",Cu="A-Z\\xc0-\\xd6\\xd8-\\xde",Iu="\\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",Ru="["+Iu+"]",Du="\\d+",Uu="["+ku+"]",Bu="["+Nu+"]",Gu="[^"+Lu+Iu+Du+ku+Nu+Cu+"]",Hu="(?:\\ud83c[\\udde6-\\uddff]){2}",Wu="[\\ud800-\\udbff][\\udc00-\\udfff]",Fu="["+Cu+"]",zu="(?:"+Bu+"|"+Gu+")",qu="(?:"+Fu+"|"+Gu+")",$u="(?:['](?:d|ll|m|re|s|t|ve))?",Ku="(?:['](?:D|LL|M|RE|S|T|VE))?",Vu="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Yu="[\\ufe0e\\ufe0f]?",Ju=Yu+Vu+("(?:\\u200d(?:"+["[^"+Lu+"]",Hu,Wu].join("|")+")"+Yu+Vu+")*"),Zu="(?:"+[Uu,Hu,Wu].join("|")+")"+Ju,Qu=RegExp([Fu+"?"+Bu+"+"+$u+"(?="+[Ru,Fu,"$"].join("|")+")",qu+"+"+Ku+"(?="+[Ru,Fu+zu,"$"].join("|")+")",Fu+"?"+zu+"+"+$u,Fu+"+"+Ku,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Du,Zu].join("|"),"g");var Xu=function(t){return t.match(Qu)||[]};var tc=function(t,e,n){return t=Ou(t),void 0===(e=n?void 0:e)?Mu(t)?Xu(t):Au(t):t.match(e)||[]},ec=RegExp("[']","g");var nc=function(t){return function(e){return yu(tc(ju(e).replace(ec,"")),t,"")}}((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),rc="2.9.3";function oc(t){return Array.isArray(t)?t:[t]}var ic="function"==typeof window.Zone?setTimeout:function(t){return Promise.resolve().then(t)},ac=!1;var uc=new WeakMap;var cc="function"==typeof document.all&&void 0===document.all,sc=new WeakMap;var fc=new WeakMap;var lc=new WeakMap;var pc="qiankun-head";function dc(t,e){return function(n){var r;return r=-1!==n.indexOf("<head>")?n.replace("<head>","<".concat(pc,">")).replace("</head>","</".concat(pc,">")):"<".concat(pc,"></").concat(pc,">").concat(n),'<div id="'.concat(hc(t),'" data-name="').concat(t,'" data-version="').concat(rc,'" data-sandbox-cfg=').concat(JSON.stringify(e),">").concat(r,"</div>")}}function hc(t){return"__qiankun_microapp_wrapper_for_".concat(nc(t),"__")}var vc=Function("return this")(),yc=vu((function(){return vc.hasOwnProperty("__app_instance_name_map__")||Object.defineProperty(vc,"__app_instance_name_map__",{enumerable:!1,configurable:!0,writable:!0,value:{}}),vc.__app_instance_name_map__})),mc=function(t){var e=yc();return t in e?(e[t]++,"".concat(t,"_").concat(e[t])):(vc.__app_instance_name_map__[t]=0,t)};function wc(t){var e=null!=t?t:{},n=e.mount,r=e.unmount;return an(e.bootstrap)&&an(n)&&an(r)}var gc=si((function t(){var e=this;fi(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 bc(t){return"object"===m(t)&&(!t.strictStyleIsolation&&!!t.experimentalStyleIsolation)}function xc(t){return"string"==typeof t?document.querySelector(t):t}var _c=null;function Oc(){return _c}function Ec(t){_c=t}var Pc=new WeakMap;function jc(t,e){if(function(t){if(sc.has(t))return!0;var e=cc?"function"==typeof t&&void 0!==t:"function"==typeof t;return e&&sc.set(t,e),e}(e)&&!function(t){if(lc.has(t))return lc.get(t);var e=0===t.name.indexOf("bound ")&&!t.hasOwnProperty("prototype");return lc.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(uc.has(t))return uc.get(t);var n=e;if(!n){var r=""+t;n=/^function\b\s[A-Z].*/.test(r)||/^class\b/.test(r)}return uc.set(t,n),n}(e)){var n=Pc.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 a=Object.getOwnPropertyDescriptor(i?e:Function.prototype,"toString");Object.defineProperty(r,"toString",O(O({},a),(null==a?void 0:a.get)?null:{value:function(){return""+e}}))}}return Pc.set(e,r),r}return e}var Sc,Ac=function(){function e(n){var r=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;fi(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,a=this.modifiedPropsOriginalValueMapInSandbox,u=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)?a.has(t)||a.set(t,n):i.set(t,e),u.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:jc(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}return si(e,[{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"!==m(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}}]),e}();!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"}(Sc||(Sc={}));var Tc,Mc=function(t){return[].slice.call(t,0)},Lc=HTMLBodyElement.prototype.appendChild,kc=function(){function t(){fi(this,t),this.sheet=void 0,this.swapNode=void 0;var e=document.createElement("style");Lc.call(document.body,e),this.swapNode=e,this.sheet=e.sheet,this.sheet.disabled=!0}return si(t,[{key:"process",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!(t.ModifiedTag in e)){if(""!==e.textContent){var o,i=document.createTextNode(e.textContent||"");this.swapNode.appendChild(i);var a=this.swapNode.sheet,u=Mc(null!==(o=null==a?void 0:a.cssRules)&&void 0!==o?o:[]),c=this.rewrite(u,r);return e.textContent=c,this.swapNode.removeChild(i),void(e[t.ModifiedTag]=!0)}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 a,u=e.sheet,c=Mc(null!==(a=null==u?void 0:u.cssRules)&&void 0!==a?a:[]),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 Sc.STYLE:r+=e.ruleStyle(t,n);break;case Sc.MEDIA:r+=e.ruleMedia(t,n);break;case Sc.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(Mc(t.cssRules),e);return"@media ".concat(t.conditionText||t.media.mediaText," {").concat(n,"}")}},{key:"ruleSupport",value:function(t,e){var n=this.rewrite(Mc(t.cssRules),e);return"@supports ".concat(t.conditionText||t.cssText.split("{")[0]," {").concat(n,"}")}}]),t}();kc.ModifiedTag="Symbol(style-modified-qiankun)";var Nc="data-qiankun",Cc=function(t,e,n){Tc||(Tc=new kc),"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(Nc,'="').concat(n,'"]');Tc.process(e,o)}}},Ic=r((function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports})),Rc=r((function(t){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],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)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}},t.exports.__esModule=!0,t.exports.default=t.exports})),Dc=r((function(t){t.exports=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.")},t.exports.__esModule=!0,t.exports.default=t.exports})),Uc=r((function(t){t.exports=function(t,e){return Ic(t)||Rc(t,e)||d(t,e)||Dc()},t.exports.__esModule=!0,t.exports.default=t.exports})),Bc=n(Uc),Gc="__lodash_hash_undefined__";var Hc=function(t){return this.__data__.has(t)};function Wc(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Rn;++e<n;)this.add(t[e])}Wc.prototype.add=Wc.prototype.push=function(t){return this.__data__.set(t,Gc),this},Wc.prototype.has=Hc;var Fc=Wc;var zc=function(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1};var qc=function(t){return t!=t};var $c=function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1};var Kc=function(t,e,n){return e==e?$c(t,e,n):zc(t,qc,n)};var Vc=function(t,e){return!!(null==t?0:t.length)&&Kc(t,e,0)>-1};var Yc=function(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1};var Jc=function(t,e){return t.has(e)},Zc=200;var Qc=function(t,e,n,r){var o=-1,i=Vc,a=!0,u=t.length,c=[],s=e.length;if(!u)return c;n&&(e=wu(e,vr(n))),r?(i=Yc,a=!1):Zc>e.length||(i=Jc,a=!1,e=new Fc(e));t:for(;++o<u;){var f=t[o],l=null==n?f:n(f);if(f=r||0!==f?f:0,a&&l==l){for(var p=s;p--;)if(e[p]===l)continue t;c.push(f)}else i(e,l,r)||c.push(f)}return c},Xc=$r((function(t,e){return ir(t)?Qc(t,e):[]})),ts=window.Proxy?["Array","ArrayBuffer","Boolean","constructor","DataView","Date","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","Error","escape","eval","EvalError","Float32Array","Float64Array","Function","hasOwnProperty","Infinity","Int16Array","Int32Array","Int8Array","isFinite","isNaN","isPrototypeOf","JSON","Map","Math","NaN","Number","Object","parseFloat","parseInt","Promise","propertyIsEnumerable","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","String","Symbol","SyntaxError","toLocaleString","toString","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","undefined","unescape","URIError","valueOf","WeakMap","WeakSet"].filter((function(t){return t in window})):[];var es=Object.defineProperty,ns=window.__QIANKUN_DEVELOPMENT__?["__REACT_ERROR_OVERLAY_GLOBAL_HOOK__"]:[],rs=["System","__cjsWrapper"].concat(ns),os=!1,is=["window","self","globalThis"].concat([]),as=Array.from(new Set(Xc.apply(void 0,[[].concat(v(ts),v(is),["requestAnimationFrame"])].concat(["document","top","parent","eval"])))),us=as.reduce((function(t,e){return O(O({},t),{},x({},e,!0))}),{}),cs=Xc.apply(void 0,[as].concat(v(is))).reduce((function(t,e){return O(O({},t),{},x({},e,!0))}),{}),ss=new Map([["fetch",!0],["mockDomAPIInBlackList",!1]]);var fs=0,ls=function(){function e(n){var r=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;fi(this,e),this.updatedValueSet=new Set,this.name=void 0,this.type=void 0,this.proxy=void 0,this.sandboxRunning=!0,this.latestSetProp=null,this.globalWhitelistPrevDescriptor={},this.globalContext=void 0,this.name=n,this.globalContext=o,this.type=t.SandBoxType.Proxy;var i=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||os)&&(o.configurable=!0,i||(o.writable=!0)),i&&e.set(r,!0),es(n,r,Object.freeze(o))}})),{fakeWindow:n,propertiesWithGetter:e}}(o),u=a.fakeWindow,c=a.propertiesWithGetter,s=new Map,f=function(t){return u.hasOwnProperty(t)||o.hasOwnProperty(t)},l=new Proxy(u,{set:function(t,e,a){if(r.sandboxRunning){if(r.registerRunningApp(n,l),!t.hasOwnProperty(e)&&o.hasOwnProperty(e)){var u=Object.getOwnPropertyDescriptor(o,e),c=u.set;(u.writable||c)&&Object.defineProperty(t,e,{configurable:u.configurable,enumerable:u.enumerable,writable:!0,value:a})}else t[e]=a;return"string"==typeof e&&-1!==rs.indexOf(e)&&(r.globalWhitelistPrevDescriptor[e]=Object.getOwnPropertyDescriptor(o,e),o[e]=a),i.add(e),r.latestSetProp=e,!0}return!0},get:function(t,e){if(r.registerRunningApp(n,l),e===Symbol.unscopables)return cs;if("window"===e||"self"===e)return l;if("globalThis"===e||os)return l;if("top"===e||"parent"===e||os)return o===o.parent?l:o[e];if("hasOwnProperty"===e)return f;if("document"===e)return document;if("eval"===e)return eval;var i=c.has(e)?o:e in t?t:o,a=i[e];return function(t,e){if(!t||!e)return!1;var n=fc.get(t)||{};if(n[e])return n[e];var r=Object.getOwnPropertyDescriptor(t,e),o=!(!r||!1!==r.configurable||!1!==r.writable&&(!r.get||r.set));return n[e]=o,fc.set(t,n),o}(i,e)?a:jc(ss.get(e)?vc:o,a)},has:function(t,e){return e in us||e in t||e in o},getOwnPropertyDescriptor:function(t,e){if(t.hasOwnProperty(e)){var n=Object.getOwnPropertyDescriptor(t,e);return s.set(e,"target"),n}if(o.hasOwnProperty(e)){var r=Object.getOwnPropertyDescriptor(o,e);return s.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"===s.get(e)?Reflect.defineProperty(o,e,n):Reflect.defineProperty(t,e,n)},deleteProperty:function(t,e){return r.registerRunningApp(n,l),!t.hasOwnProperty(e)||(delete t[e],i.delete(e),!0)},getPrototypeOf:function(){return Reflect.getPrototypeOf(o)}});this.proxy=l,fs++}return si(e,[{key:"active",value:function(){this.sandboxRunning||fs++,this.sandboxRunning=!0}},{key:"inactive",value:function(){var t=this;0==--fs&&Object.keys(this.globalWhitelistPrevDescriptor).forEach((function(e){var n=t.globalWhitelistPrevDescriptor[e];n?Object.defineProperty(t.globalContext,e,n):delete t.globalContext[e]})),this.sandboxRunning=!1}},{key:"registerRunningApp",value:function(t,e){if(this.sandboxRunning){var n=Oc();n&&n.name===t||Ec({name:t,window:e}),r=function(){Ec(null)},ac||(ac=!0,ic((function(){r(),ac=!1})))}var r}}]),e}(),ps=HTMLHeadElement.prototype.appendChild,ds=HTMLHeadElement.prototype.removeChild,hs=HTMLBodyElement.prototype.appendChild,vs=HTMLBodyElement.prototype.removeChild,ys=HTMLHeadElement.prototype.insertBefore,ms=HTMLElement.prototype.removeChild,ws="SCRIPT",gs="LINK",bs="STYLE",xs=Symbol("target"),_s=function(t){return t.querySelector(pc)};function Os(t){return(null==t?void 0:t.toUpperCase())===gs||(null==t?void 0:t.toUpperCase())===bs||(null==t?void 0:t.toUpperCase())===ws}function Es(t){var e,n;return!t.textContent&&((null===(e=t.sheet)||void 0===e?void 0:e.cssRules.length)||(null===(n=Is(t))||void 0===n?void 0:n.length))}var Ps=new Map;function js(t,e,n){var r=Ps.get(t)||{bootstrappingPatchCount:0,mountingPatchCount:0};switch(e){case"increase":r["".concat(n,"PatchCount")]+=1;break;case"decrease":r["".concat(n,"PatchCount")]>0&&(r["".concat(n,"PatchCount")]-=1)}Ps.set(t,r)}function Ss(){return Array.from(Ps.entries()).every((function(t){var e=Bc(t,2)[1];return 0===e.bootstrappingPatchCount&&0===e.mountingPatchCount}))}function As(t,e){return Object.defineProperties(t,{srcElement:{get:e},target:{get:e}}),t}function Ts(t){var e=As(new CustomEvent("load"),(function(){return t}));an(t.onload)?t.onload(e):t.dispatchEvent(e)}function Ms(t){var e=As(new CustomEvent("error"),(function(){return t}));an(t.onerror)?t.onerror(e):t.dispatchEvent(e)}var Ls=new WeakMap,ks=new WeakMap,Ns=new WeakMap;function Cs(t){t.forEach((function(t){t instanceof HTMLStyleElement&&Es(t)&&t.sheet&&Ls.set(t,t.sheet.cssRules)}))}function Is(t){return Ls.get(t)}function Rs(t){return function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=e,i=t.rawDOMAppendOrInsertBefore,a=t.isInvokedByMicroApp,u=t.containerConfigGetter,c=t.target,s=void 0===c?"body":c;if(!Os(o.tagName)||!a(o))return i.call(this,o,r);if(o.tagName){var f=u(o),l=f.appName,p=f.appWrapperGetter,d=f.proxy,h=f.strictGlobal,v=f.speedySandbox,y=f.dynamicStyleSheetElements,m=f.scopedCSS,w=f.excludeAssetFilter;switch(o.tagName){case gs:case bs:var g=e,b=g.href;if(w&&b&&w(b))return i.call(this,o,r);Object.defineProperty(g,xs,{value:s,writable:!0,configurable:!0});var x,_=p();if(m)if((null===(x=o.tagName)||void 0===x?void 0:x.toUpperCase())===gs&&"stylesheet"===o.rel&&o.href){var O,E="function"==typeof Ef.fetch?Ef.fetch:null===(O=Ef.fetch)||void 0===O?void 0:O.fn;g=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),Ts(t)})).catch((function(){return Ms(t)})),r}(o,(function(t){return Cc(_,t,l)}),E),Ns.set(o,g)}else Cc(_,g,l);var P="head"===s?_s(_):_;y.push(g);var j=P.contains(r)?r:null;return i.call(P,g,j);case ws:var S=o.src,A=o.text;if(w&&S&&w(S)||(n=o).type&&-1===["text/javascript","module","application/javascript","text/ecmascript","application/ecmascript"].indexOf(n.type))return i.call(this,o,r);var T=p(),M="head"===s?_s(T):T,L=Ef.fetch,k=M.contains(r)?r:null,N=v?as:[];if(S){var C=!1;ri(null,[S],d,{fetch:L,strictGlobal:h,scopedGlobalVariables:N,beforeExec:function(){var t;(!(t=Object.getOwnPropertyDescriptor(document,"currentScript"))||t.configurable)&&(Object.defineProperty(document,"currentScript",{get:function(){return o},configurable:!0}),C=!0)},success:function(){Ts(o),C&&delete document.currentScript,o=null},error:function(){Ms(o),C&&delete document.currentScript,o=null}});var I=document.createComment("dynamic script ".concat(S," replaced by qiankun"));return ks.set(o,I),i.call(M,I,k)}ri(null,["<script>".concat(A,"<\/script>")],d,{strictGlobal:h,scopedGlobalVariables:N});var R=document.createComment("dynamic inline script replaced by qiankun");return ks.set(o,R),i.call(M,R,k)}}return i.call(this,o,r)}}function Ds(t,e,n){return function(r){var o=r.tagName;if(!Os(o))return t.call(this,r);try{var i,a=e(r),u=a.appWrapperGetter,c=a.dynamicStyleSheetElements;switch(o){case bs:case gs:i=Ns.get(r)||r;var s=c.indexOf(i);-1!==s&&c.splice(s,1);break;case ws:i=ks.get(r)||r;break;default:i=r}var f=u();if(("head"===n?_s(f):f).contains(i))return ms.call(i.parentNode,i)}catch(t){console.warn(t)}return t.call(this,r)}}function Us(t,e){return HTMLHeadElement.prototype.appendChild===ps&&HTMLBodyElement.prototype.appendChild===hs&&HTMLHeadElement.prototype.insertBefore===ys&&(HTMLHeadElement.prototype.appendChild=Rs({rawDOMAppendOrInsertBefore:ps,containerConfigGetter:e,isInvokedByMicroApp:t,target:"head"}),HTMLBodyElement.prototype.appendChild=Rs({rawDOMAppendOrInsertBefore:hs,containerConfigGetter:e,isInvokedByMicroApp:t,target:"body"}),HTMLHeadElement.prototype.insertBefore=Rs({rawDOMAppendOrInsertBefore:ys,containerConfigGetter:e,isInvokedByMicroApp:t,target:"head"})),HTMLHeadElement.prototype.removeChild===ds&&HTMLBodyElement.prototype.removeChild===vs&&(HTMLHeadElement.prototype.removeChild=Ds(ds,e,"head"),HTMLBodyElement.prototype.removeChild=Ds(vs,e,"body")),function(){HTMLHeadElement.prototype.appendChild=ps,HTMLHeadElement.prototype.removeChild=ds,HTMLBodyElement.prototype.appendChild=hs,HTMLBodyElement.prototype.removeChild=vs,HTMLHeadElement.prototype.insertBefore=ys}}function Bs(t,e){t.forEach((function(t){if(e(t)&&t instanceof HTMLStyleElement&&Es(t)){var n=Is(t);if(n)for(var r=0;n.length>r;r++){var o=t.sheet;o.insertRule(n[r].cssText,o.cssRules.length)}}}))}function Gs(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,a=[],u=Us((function(){return Yt(window.location).some((function(e){return e===t}))}),(function(){return{appName:t,appWrapperGetter:e,proxy:n,strictGlobal:!1,speedySandbox:!1,scopedCSS:o,dynamicStyleSheetElements:a,excludeAssetFilter:i}}));return r||js(t,"increase","bootstrapping"),r&&js(t,"increase","mounting"),function(){return r||js(t,"decrease","bootstrapping"),r&&js(t,"decrease","mounting"),Ss()&&u(),Cs(a),function(){Bs(a,(function(t){var n=e();return!n.contains(t)&&(document.head.appendChild.call(n,t),!0)})),r&&(a=[])}}}Object.defineProperty(vc,"__proxyAttachContainerConfigMap__",{enumerable:!1,writable:!0}),vc.__proxyAttachContainerConfigMap__=vc.__proxyAttachContainerConfigMap__||new WeakMap;var Hs=vc.__proxyAttachContainerConfigMap__,Ws=new WeakMap,Fs=new WeakMap;function zs(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,a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=Hs.get(n);u||Hs.set(n,u={appName:t,proxy:n,appWrapperGetter:e,dynamicStyleSheetElements:[],strictGlobal:!0,speedySandbox:a,excludeAssetFilter:i,scopedCSS:o});var c=u.dynamicStyleSheetElements,s=function(){var t=Fs.get(document.createElement);if(!t){var e=document.createElement;Document.prototype.createElement=function(t,n){var r=e.call(this,t,n);if(Os(t)){var o=(Oc()||{}).window;if(o){var i=Hs.get(o);i&&Ws.set(r,i)}}return r},document.hasOwnProperty("createElement")&&(document.createElement=Document.prototype.createElement),Fs.set(Document.prototype.createElement,e)}return function(){t&&(Document.prototype.createElement=t,document.createElement=t)}}(),f=Us((function(t){return Ws.has(t)}),(function(t){return Ws.get(t)}));return r||js(t,"increase","bootstrapping"),r&&js(t,"increase","mounting"),function(){return r||js(t,"decrease","bootstrapping"),r&&js(t,"decrease","mounting"),Ss()&&(f(),s()),Cs(c),function(){Bs(c,(function(t){var n=e();if(!n.contains(t)){var r="head"===t[xs]?_s(n):n;return ps.call(r,t),!0}return!1}))}}}var qs=window.setInterval,$s=window.clearInterval;var Ks=window.addEventListener,Vs=window.removeEventListener;function Ys(e,n,r,o,i,u){var c,s,f=[function(){return function(t){var e=[];return t.clearInterval=function(t){return e=e.filter((function(e){return e!==t})),$s.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 a=qs.apply(void 0,[t,n].concat(o));return e=[].concat(v(e),[a]),a},function(){return e.forEach((function(e){return t.clearInterval(e)})),t.setInterval=qs,t.clearInterval=$s,a}}(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(v(o),[n])),Ks.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),Vs.call(window,t,n,r)},function(){return e.forEach((function(e,n){return v(e).forEach((function(e){return t.removeEventListener(n,e)}))})),t.addEventListener=Ks,t.removeEventListener=Vs,a}}(r.proxy)},function(){return t=function(t){return a},e=[],n=[],window.g_history&&an(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=a;return e.length&&(r=function(){e.forEach((function(t){return window.g_history.listen(t)}))}),n.forEach((function(t){return t()})),window.g_history&&an(window.g_history.listen)&&(window.g_history.listen=t),r};var t,e,n}];return null===(s=(x(c={},t.SandBoxType.LegacyProxy,[].concat(f,[function(){return Gs(e,n,r.proxy,!0,o,i)}])),x(c,t.SandBoxType.Proxy,[].concat(f,[function(){return zs(e,n,r.proxy,!0,o,i,u)}])),x(c,t.SandBoxType.Snapshot,[].concat(f,[function(){return Gs(e,n,r.proxy,!0,o,i)}])),c)[r.type])||void 0===s?void 0:s.map((function(t){return t()}))}function Js(t,e){for(var n in t)(t.hasOwnProperty(n)||"clearInterval"===n)&&e(n)}var Zs=function(){function e(n){fi(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}return si(e,[{key:"active",value:function(){var t=this;this.windowSnapshot={},Js(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={},Js(window,(function(e){window[e]!==t.windowSnapshot[e]&&(t.modifyPropsMap[e]=window[e],window[e]=t.windowSnapshot[e])})),this.sandboxRunning=!1}}]),e}();function Qs(e,n,r,o,a,u,c){var s;s=window.Proxy?o?new Ac(e,u):new ls(e,u):new Zs(e);var f=function(e,n,r,o,i,a){var u,c;return null===(c=(x(u={},t.SandBoxType.LegacyProxy,[function(){return Gs(e,n,r.proxy,!1,o,i)}]),x(u,t.SandBoxType.Proxy,[function(){return zs(e,n,r.proxy,!1,o,i,a)}]),x(u,t.SandBoxType.Snapshot,[function(){return Gs(e,n,r.proxy,!1,o,i)}]),u)[r.type])||void 0===c?void 0:c.map((function(t){return t()}))}(e,n,s,r,a,c),l=[],p=[];return{instance:s,mount:function(){return i(j.mark((function t(){var o,i;return j.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:s.active(),o=p.slice(0,f.length),i=p.slice(f.length),o.length&&o.forEach((function(t){return t()})),l=Ys(e,n,s,r,a,c),i.length&&i.forEach((function(t){return t()})),p=[];case 7:case"end":return t.stop()}}),t)})))()},unmount:function(){return i(j.mark((function t(){return j.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:p=[].concat(v(f),v(l)).map((function(t){return t()})),s.inactive();case 2:case"end":return t.stop()}}),t)})))()}}}var Xs=["singular","sandbox","excludeAssetFilter","globalContext"];function tf(t,e){if(!t){if(e)throw new _i(e);throw new _i("element not existed!")}}function ef(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 nf(t,e){return rf.apply(this,arguments)}function rf(){return(rf=i(j.mark((function t(e,n){return j.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return","function"==typeof e?e(n):!!e);case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var of=!!document.head.attachShadow||!!document.head.createShadowRoot;function af(t,e,n,r){var o=document.createElement("div");o.innerHTML=t;var i=o.firstChild;if(e)if(of){var a=i.innerHTML;i.innerHTML="",(i.attachShadow?i.attachShadow({mode:"open"}):i.createShadowRoot()).innerHTML=a}else console.warn("[qiankun]: As current browser not support shadow dom, your strictStyleIsolation configuration will be ignored!");if(n){i.getAttribute(Nc)||i.setAttribute(Nc,r);var u=i.querySelectorAll("style")||[];no(u,(function(t){Cc(i,t,r)}))}return i}function uf(t,e,n,r,o){return function(){if(e){if(n)throw new _i("strictStyleIsolation can not be used with legacy render!");if(r)throw new _i("experimentalStyleIsolation can not be used with legacy render!");var i=document.getElementById(hc(t));return tf(i,"Wrapper element for ".concat(t," is not existed!")),i}var a=o();return tf(a,"Wrapper element for ".concat(t," is not existed!")),n&&of?a.shadowRoot:a}}var cf,sf=HTMLElement.prototype.appendChild,ff=HTMLElement.prototype.removeChild;function lf(t,e,n){return function(r,o){var i=r.element,a=r.container;if(n)return n({loading:r.loading,appContent:i?e:""});var u=xc(a);"unmounted"!==o&&tf(u,function(){switch(o){case"loading":case"mounting":return"Target container with ".concat(a," not existed while ").concat(t," ").concat(o,"!");case"mounted":return"Target container with ".concat(a," not existed after ").concat(t," ").concat(o,"!");default:return"Target container with ".concat(a," not existed while ").concat(t," rendering!")}}());if(u&&!u.contains(i)){for(;u.firstChild;)ff.call(u,u.firstChild);i&&sf.call(u,i)}}}function pf(t,e,n,r){if(wc(t))return t;if(r){var o=n[r];if(wc(o))return o}var i=n[e];if(wc(i))return i;throw new _i("You need to export lifecycle functions in ".concat(e," entry"))}function df(t){return hf.apply(this,arguments)}function hf(){return hf=i(j.mark((function t(e){var n,r,o,a,u,c,f,l,p,d,h,v,y,w,g,b,x,_,E,P,S,A,T,M,L,k,N,C,I,R,D,U,B,G,H,W,F,z,q,$,K,V,Y,J,Z,Q,X,tt,et,nt,rt,ot,it,at,ut,ct,st=arguments;return j.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=st.length>1&&void 0!==st[1]?st[1]:{},a=st.length>2?st[2]:void 0,u=e.entry,f=mc(c=e.name),p=void 0!==(l=o.singular)&&l,h=void 0===(d=o.sandbox)||d,v=o.excludeAssetFilter,w=void 0===(y=o.globalContext)?window:y,g=s(o,Xs),t.next=9,ii(u,g);case 9:return x=(b=t.sent).template,_=b.execScripts,E=b.assetPublicPath,P=b.getExternalScripts,t.next=16,P();case 16:return t.next=18,nf(p,e);case 18:if(!t.sent){t.next=21;break}return t.next=21,cf&&cf.promise;case 21:return S=dc(f,h)(x),A="object"===m(h)&&!!h.strictStyleIsolation,T=bc(h),M=af(S,A,T,f),L="container"in e?e.container:void 0,(N=lf(f,S,k="render"in e?e.render:void 0))({element:M,loading:!0,container:L},"loading"),C=uf(f,!!k,A,T,(function(){return M})),I=w,R=function(){return Promise.resolve()},D=function(){return Promise.resolve()},U="object"===m(h)&&!!h.loose,B="object"!==m(h)||!1!==h.speedy,h&&(G=Qs(f,C,T,U,v,I,B),I=G.instance.proxy,R=G.mount,D=G.unmount),H=Vr({},ui(I,E),a,(function(t,e){return Be(null!=t?t:[],null!=e?e:[])})),F=void 0===(W=H.beforeUnmount)?[]:W,q=void 0===(z=H.afterUnmount)?[]:z,K=void 0===($=H.afterMount)?[]:$,Y=void 0===(V=H.beforeMount)?[]:V,Z=void 0===(J=H.beforeLoad)?[]:J,t.next=40,ef(oc(Z),e,I);case 40:return t.next=42,_(I,h&&!U,{scopedGlobalVariables:B?as:[]});case 42:return Q=pf(t.sent,c,I,null===(n=G)||void 0===n||null===(r=n.instance)||void 0===r?void 0:r.latestSetProp),X=Q.bootstrap,tt=Q.mount,et=Q.unmount,nt=Q.update,rt=Ja(f),ot=rt.onGlobalStateChange,it=rt.setGlobalState,at=rt.offGlobalStateChange,ut=function(t){return M=t},ct=function(){var t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,o={name:f,bootstrap:X,mount:[i(j.mark((function t(){return j.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case 1:case"end":return t.stop()}}),t)}))),i(j.mark((function t(){return j.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,nf(p,e);case 2:if(t.t0=t.sent,!t.t0){t.next=5;break}t.t0=cf;case 5:if(!t.t0){t.next=7;break}return t.abrupt("return",cf.promise);case 7:return t.abrupt("return",void 0);case 8:case"end":return t.stop()}}),t)}))),i(j.mark((function e(){return j.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=M,n=uf(f,!!k,A,T,(function(){return t}));case 2:case"end":return e.stop()}}),e)}))),i(j.mark((function e(){return j.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:!(r!==L)&&t||(t=af(S,A,T,f),ut(t)),N({element:t,loading:!0,container:r},"mounting");case 3:case"end":return e.stop()}}),e)}))),R,i(j.mark((function t(){return j.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",ef(oc(Y),e,I));case 1:case"end":return t.stop()}}),t)}))),function(){var t=i(j.mark((function t(e){return j.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",tt(O(O({},e),{},{container:n(),setGlobalState:it,onGlobalStateChange:ot})));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),i(j.mark((function e(){return j.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",N({element:t,loading:!1,container:r},"mounted"));case 1:case"end":return e.stop()}}),e)}))),i(j.mark((function t(){return j.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",ef(oc(K),e,I));case 1:case"end":return t.stop()}}),t)}))),i(j.mark((function t(){return j.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,nf(p,e);case 2:if(!t.sent){t.next=4;break}cf=new gc;case 4:case"end":return t.stop()}}),t)}))),i(j.mark((function t(){return j.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case 1:case"end":return t.stop()}}),t)})))],unmount:[i(j.mark((function t(){return j.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",ef(oc(F),e,I));case 1:case"end":return t.stop()}}),t)}))),function(){var t=i(j.mark((function t(e){return j.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",et(O(O({},e),{},{container:n()})));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),D,i(j.mark((function t(){return j.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",ef(oc(q),e,I));case 1:case"end":return t.stop()}}),t)}))),i(j.mark((function e(){return j.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:N({element:null,loading:!1,container:r},"unmounted"),at(f),ut(t=null);case 4:case"end":return e.stop()}}),e)}))),i(j.mark((function t(){return j.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,nf(p,e);case 2:if(t.t0=t.sent,!t.t0){t.next=5;break}t.t0=cf;case 5:if(!t.t0){t.next=7;break}cf.resolve();case 7:case"end":return t.stop()}}),t)})))]};return"function"==typeof nt&&(o.update=nt),o},t.abrupt("return",ct);case 48:case"end":return t.stop()}}),t)}))),hf.apply(this,arguments)}var vf=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)},yf=!!navigator.connection&&(navigator.connection.saveData||"wifi"!==navigator.connection.type&&"ethernet"!==navigator.connection.type&&/([23])g/.test(navigator.connection.effectiveType));function mf(t,e){navigator.onLine&&!yf&&vf(i(j.mark((function n(){var r,o;return j.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ii(t,e);case 2:o=(r=n.sent).getExternalScripts,vf(r.getExternalStyleSheets),vf(o);case 7:case"end":return n.stop()}}),n)}))))}function wf(t,e){window.addEventListener("single-spa:first-mount",(function n(){t.filter((function(t){return Kt(t.name)===U})).forEach((function(t){return mf(t.entry,e)})),window.removeEventListener("single-spa:first-mount",n)}))}function gf(t,e){t.forEach((function(t){return mf(t.entry,e)}))}var bf=["name","activeRule","loader","props"],xf=["mount"],_f=["prefetch","sandbox","singular","urlRerouteOnly"],Of=[],Ef={},Pf=!1,jf=!0,Sf=new gc,Af=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"),O(O({},t),{},{sandbox:"object"===m(e)?O(O({},e),{},{loose:!0}):{loose:!0}})):t};var Tf=new Map,Mf=new Map;function Lf(t){window.addEventListener("single-spa:no-app-change",(function e(){qt().length||At(t),window.removeEventListener("single-spa:no-app-change",e)}))}t.__internalGetCurrentRunningApp=Oc,t.addErrorHandler=C,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===Ka)console.warn("[qiankun] state has not changed");else{var e=$a(Ka);Ya(Ka=$a(t),e)}return Ja("global-".concat(+new Date),!0)},t.loadMicroApp=function(t,e,n){var r,o,a=t.props,u=t.name,c="container"in t?t.container:void 0,s=function(t){if(t){var e=xc(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(u,"-").concat(s),l=function(t){var e=t;if(c&&s){var n=Mf.get(f);if(null==n?void 0:n.length){var o=[i(j.mark((function t(){var e,o;return j.wrap((function(t){for(;;)switch(t.prev=t.next){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.next=4,Promise.all(o.map((function(t){return t.unmountPromise})));case 4:case"end":return t.stop()}}),t)})))].concat(v(oc(e.mount)));e=O(O({},t),{},{mount:o})}}return O(O({},e),{},{bootstrap:function(){return Promise.resolve()}})},p=function(){var r=i(j.mark((function r(){var o,i,a,p,d;return j.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=Af(null!=e?e:O(O({},Ef),{},{singular:!1})),i=o.$$cacheLifecycleByAppName,!c){r.next=21;break}if(!i){r.next=12;break}if(!(a=Tf.get(u))){r.next=12;break}return r.t0=l,r.next=9,a;case 9:return r.t1=r.sent,r.t2=(0,r.t1)(c),r.abrupt("return",(0,r.t0)(r.t2));case 12:if(!s){r.next=21;break}if(!(p=Tf.get(f))){r.next=21;break}return r.t3=l,r.next=18,p;case 18:return r.t4=r.sent,r.t5=(0,r.t4)(c),r.abrupt("return",(0,r.t3)(r.t5));case 21:return d=df(t,o,n),c&&(i?Tf.set(u,d):s&&Tf.set(f,d)),r.next=25,d;case 25:return r.t6=r.sent,r.abrupt("return",(0,r.t6)(c));case 27:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}();if(Pf||!1===(null==e?void 0:e.autoStart)||ce({urlRerouteOnly:null!==(o=Ef.urlRerouteOnly)&&void 0!==o?o:jf}),r=pt(p,O({domElement:document.createElement("div")},a)),c&&s){var d=Mf.get(f)||[];d.push(r),Mf.set(f,d);var h=function(){var t=d.indexOf(r);d.splice(t,1),r=null};r.unmountPromise.then(h).catch(h)}return r},t.prefetchApps=gf,t.registerMicroApps=function(t,e){var n=t.filter((function(t){return!Of.some((function(e){return e.name===t.name}))}));Of=[].concat(v(Of),v(n)),n.forEach((function(t){var n,r=t.name,o=t.activeRule,u=t.loader,c=void 0===u?a:u,f=t.props,l=s(t,bf);Vt({name:r,app:(n=i(j.mark((function t(){var n,o,a;return j.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c(!0),t.next=3,Sf.promise;case 3:return t.next=5,df(O({name:r,props:f},l),Ef,e);case 5:return t.t0=t.sent,n=(0,t.t0)(),o=n.mount,a=s(n,xf),t.abrupt("return",O({mount:[i(j.mark((function t(){return j.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",c(!0));case 1:case"end":return t.stop()}}),t)})))].concat(v(oc(o)),[i(j.mark((function t(){return j.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",c(!1));case 1:case"end":return t.stop()}}),t)})))])},a));case 10:case"end":return t.stop()}}),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"),Lf(t)},t.setDefaultMountApp=Lf,t.start=function(){Ef=O({prefetch:!0,singular:!0,sandbox:!0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});var t=Ef.prefetch,e=Ef.urlRerouteOnly,n=void 0===e?jf:e,r=s(Ef,_f);t&&function(t,e,n){var r=function(e){return t.filter((function(t){return e.includes(t.name)}))};if(Array.isArray(e))wf(r(e),n);else if(an(e))i(j.mark((function o(){var i,a,u,c;return j.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,e(t);case 2:c=void 0===(u=(i=o.sent).minorAppsName)?[]:u,gf(r(void 0===(a=i.criticalAppNames)?[]:a),n),wf(r(c),n);case 9:case"end":return o.stop()}}),o)})))();else switch(e){case!0:wf(t,n);break;case"all":gf(t,n)}}(Of,t,r),Ef=Af(Ef),ce({urlRerouteOnly:n}),Pf=!0,Sf.resolve()},Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=index.umd.min.js.map