UNPKG

@ksconsole/qiankun-plus

Version:

A completed implementation of Micro Frontends

1 lines 128 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).qiankunPlus={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}var o=r((function(e){function t(e,t,n,r,o,a,i){try{var u=e[a](i),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(o,a){var i=e.apply(n,r);function u(e){t(i,o,a,u,c,"next",e)}function c(e){t(i,o,a,u,c,"throw",e)}u(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports})),a=n(o);var i=function(){},u=r((function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports})),c=r((function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o=u(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;a.length>r;r++)t.includes(n=a[r])||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},e.exports.__esModule=!0,e.exports.default=e.exports})),s=n(c),l=r((function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);t>n;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports})),f=r((function(e){e.exports=function(e){if(Array.isArray(e))return l(e)},e.exports.__esModule=!0,e.exports.default=e.exports})),p=r((function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports})),d=r((function(e){e.exports=function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports})),h=r((function(e){e.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.")},e.exports.__esModule=!0,e.exports.default=e.exports})),v=r((function(e){e.exports=function(e){return f(e)||p(e)||d(e)||h()},e.exports.__esModule=!0,e.exports.default=e.exports})),m=n(v),y=r((function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})),g=n(y),w=r((function(e){var t=y.default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports})),b=r((function(e){var t=y.default;e.exports=function(e){var n=w(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports})),E=r((function(e){e.exports=function(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports})),x=n(E),S=r((function(e){function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var n=1;arguments.length>n;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?t(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports})),_=n(S),O=r((function(e){var t=y.default;function n(){e.exports=n=function(){return o},e.exports.__esModule=!0,e.exports.default=e.exports;var r,o={},a=Object.prototype,i=a.hasOwnProperty,u=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function p(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(r){p=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=Object.create((t&&t.prototype instanceof b?t:b).prototype),a=new R(r||[]);return u(o,"_invoke",{value:L(e,n,a)}),o}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}o.wrap=d;var v="suspendedStart",m="suspendedYield",y="executing",g="completed",w={};function b(){}function E(){}function x(){}var S={};p(S,s,(function(){return this}));var _=Object.getPrototypeOf,O=_&&_(_(D([])));O&&O!==a&&i.call(O,s)&&(S=O);var P=x.prototype=b.prototype=Object.create(S);function T(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function M(e,n){function r(o,a,u,c){var s=h(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==t(f)&&i.call(f,"__await")?n.resolve(f.__await).then((function(e){r("next",e,u,c)}),(function(e){r("throw",e,u,c)})):n.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return r("throw",e,u,c)}))}c(s.arg)}var o;u(this,"_invoke",{value:function(e,t){function a(){return new n((function(n,o){r(e,t,n,o)}))}return o=o?o.then(a,a):a()}})}function L(e,t,n){var o=v;return function(a,i){if(o===y)throw Error("Generator is already running");if(o===g){if("throw"===a)throw i;return{value:r,done:!0}}for(n.method=a,n.arg=i;;){var u=n.delegate;if(u){var c=A(u,n);if(c){if(c===w)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=h(e,t,n);if("normal"===s.type){if(o=n.done?g:m,s.arg===w)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=g,n.method="throw",n.arg=s.arg)}}}function A(e,t){var n=t.method,o=e.iterator[n];if(o===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=r,A(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),w;var a=h(o,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,w;var i=a.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,w):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,w)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function D(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function t(){for(;++o<e.length;)if(i.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=r,t.done=!0,t};return a.next=a}}throw new TypeError(t(e)+" is not iterable")}return E.prototype=x,u(P,"constructor",{value:x,configurable:!0}),u(x,"constructor",{value:E,configurable:!0}),E.displayName=p(x,f,"GeneratorFunction"),o.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},o.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,p(e,f,"GeneratorFunction")),e.prototype=Object.create(P),e},o.awrap=function(e){return{__await:e}},T(M.prototype),p(M.prototype,l,(function(){return this})),o.AsyncIterator=M,o.async=function(e,t,n,r,a){void 0===a&&(a=Promise);var i=new M(d(e,t,n,r),a);return o.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(P),p(P,f,"Generator"),p(P,s,(function(){return this})),p(P,"toString",(function(){return"[object Generator]"})),o.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},o.values=D,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,o){return u.type="throw",u.arg=e,t.next=n,o&&(t.method="next",t.arg=r),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return n("end");if(this.prev>=a.tryLoc){var c=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(c&&s){if(a.catchLoc>this.prev)return n(a.catchLoc,!0);if(a.finallyLoc>this.prev)return n(a.finallyLoc)}else if(c){if(a.catchLoc>this.prev)return n(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(a.finallyLoc>this.prev)return n(a.finallyLoc)}}}},abrupt:function(e,t){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"===e||"continue"===e)&&t>=o.tryLoc&&o.finallyLoc>=t&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,w):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),w},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),w}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:D(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),w}},o}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})),P=O(),T=P;try{regeneratorRuntime=P}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=P:Function("r","regeneratorRuntime = r")(P)}var M=Object.freeze({__proto__:null,get start(){return lt},get ensureJQuerySupport(){return Ne},get setBootstrapMaxTime(){return we},get setMountMaxTime(){return be},get setUnmountMaxTime(){return Ee},get setUnloadMaxTime(){return xe},get registerApplication(){return $e},get unregisterApplication(){return Je},get getMountedApps(){return Ke},get getAppStatus(){return Ye},get unloadApplication(){return Ze},get checkActivityFunctions(){return Qe},get getAppNames(){return Xe},get pathToActiveWhen(){return nt},get navigateToUrl(){return Ae},get triggerAppChange(){return it},get addErrorHandler(){return k},get removeErrorHandler(){return G},get mountRootParcel(){return he},get NOT_LOADED(){return H},get LOADING_SOURCE_CODE(){return V},get NOT_BOOTSTRAPPED(){return B},get BOOTSTRAPPING(){return F},get NOT_MOUNTED(){return U},get MOUNTING(){return W},get UPDATING(){return z},get LOAD_ERROR(){return Y},get MOUNTED(){return q},get UNLOADING(){return X},get UNMOUNTING(){return K},get SKIP_BECAUSE_BROKEN(){return $}});function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).CustomEvent,C=function(){try{var e=new j("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?j:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=!!t.bubbles,n.cancelable=!!t.cancelable,n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n},R=[];function D(e,t,n){var r=N(e,t,n);R.length?R.forEach((function(e){return e(r)})):setTimeout((function(){throw r}))}function k(e){if("function"!=typeof e)throw Error(I(28,!1));R.push(e)}function G(e){if("function"!=typeof e)throw Error(I(29,!1));var t=!1;return R=R.filter((function(n){var r=n===e;return t=t||r,!r})),t}function I(e,t){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(e,": ").concat(t?t+" ":"","See https://single-spa.js.org/error/?code=").concat(e).concat(r.length?"&arg=".concat(r.join("&arg=")):"")}function N(e,t,n){var r,o="".concat(te(t)," '").concat(Z(t),"' died in status ").concat(t.status,": ");if(e instanceof Error){try{e.message=o+e.message}catch(e){}r=e}else{console.warn(I(30,!1,t.status,Z(t)));try{r=Error(o+JSON.stringify(e))}catch(t){r=e}}return r.appOrParcelName=Z(t),t.status=n,r}var H="NOT_LOADED",V="LOADING_SOURCE_CODE",B="NOT_BOOTSTRAPPED",F="BOOTSTRAPPING",U="NOT_MOUNTED",W="MOUNTING",q="MOUNTED",z="UPDATING",K="UNMOUNTING",X="UNLOADING",Y="LOAD_ERROR",$="SKIP_BECAUSE_BROKEN";function Q(e){return e.status===q}function J(e){try{return e.activeWhen(window.location)}catch(t){return D(t,e,$),!1}}function Z(e){return e.name}function ee(e){return!!e.unmountThisParcel}function te(e){return ee(e)?"parcel":"application"}function ne(){for(var e=arguments.length-1;e>0;e--)for(var t in arguments[e])"__proto__"!==t&&(arguments[e-1][t]=arguments[e][t]);return arguments[0]}function re(e,t){for(var n=0;e.length>n;n++)if(t(e[n]))return e[n];return null}function oe(e){return e&&("function"==typeof e||Array.isArray(t=e)&&!re(t,(function(e){return"function"!=typeof e})));var t}function ae(e,t){var n=e[t]||[];0===(n=Array.isArray(n)?n:[n]).length&&(n=[function(){return Promise.resolve()}]);var r=te(e),o=Z(e);return function(e){return n.reduce((function(n,a,i){return n.then((function(){var n=a(e);return ie(n)?n:Promise.reject(I(15,!1,r,o,t,i))}))}),Promise.resolve())}}function ie(e){return e&&"function"==typeof e.then&&"function"==typeof e.catch}function ue(e,t){return Promise.resolve().then((function(){return e.status!==B?e:(e.status=F,e.bootstrap?Se(e,"bootstrap").then(n).catch((function(n){if(t)throw N(n,e,$);return D(n,e,$),e})):Promise.resolve().then(n))}));function n(){return e.status=U,e}}function ce(e,t){return Promise.resolve().then((function(){if(e.status!==q)return e;e.status=K;var n=Object.keys(e.parcels).map((function(t){return e.parcels[t].unmountThisParcel()}));return Promise.all(n).then(r,(function(n){return r().then((function(){var r=Error(n.message);if(t)throw N(r,e,$);D(r,e,$)}))})).then((function(){return e}));function r(){return Se(e,"unmount").then((function(){e.status=U})).catch((function(n){if(t)throw N(n,e,$);D(n,e,$)}))}}))}var se=!1,le=!1;function fe(e,t){return Promise.resolve().then((function(){return e.status!==U?e:(se||(window.dispatchEvent(new C("single-spa:before-first-mount")),se=!0),Se(e,"mount").then((function(){return e.status=q,le||(window.dispatchEvent(new C("single-spa:first-mount")),le=!0),e})).catch((function(n){return e.status=q,ce(e,!0).then(r,r);function r(){if(t)throw N(n,e,$);return D(n,e,$),e}})))}))}var pe=0,de={parcels:{}};function he(){return ve.apply(de,arguments)}function ve(e,t){var n=this;if(!e||"object"!==L(e)&&"function"!=typeof e)throw Error(I(2,!1));if(e.name&&"string"!=typeof e.name)throw Error(I(3,!1,L(e.name)));if("object"!==L(t))throw Error(I(4,!1,name,L(t)));if(!t.domElement)throw Error(I(5,!1,name));var r,o=pe++,a="function"==typeof e,i=a?e:function(){return Promise.resolve(e)},u={id:o,parcels:{},status:a?V:B,customProps:t,parentName:Z(n),unmountThisParcel:function(){return p.then((function(){if(u.status!==q)throw Error(I(6,!1,name,u.status));return ce(u,!0)})).then((function(e){return u.parentName&&delete n.parcels[u.id],e})).then((function(e){return s(e),e})).catch((function(e){throw u.status=$,l(e),e}))}};n.parcels[o]=u;var c=i();if(!c||"function"!=typeof c.then)throw Error(I(7,!1));var s,l,f=(c=c.then((function(e){if(!e)throw Error(I(8,!1));var t=e.name||"parcel-".concat(o);if(Object.prototype.hasOwnProperty.call(e,"bootstrap")&&!oe(e.bootstrap))throw Error(I(9,!1,t));if(!oe(e.mount))throw Error(I(10,!1,t));if(!oe(e.unmount))throw Error(I(11,!1,t));if(e.update&&!oe(e.update))throw Error(I(12,!1,t));var n=ae(e,"bootstrap"),a=ae(e,"mount"),i=ae(e,"unmount");u.status=B,u.name=t,u.bootstrap=n,u.mount=a,u.unmount=i,u.timeouts=_e(e.timeouts),e.update&&(u.update=ae(e,"update"),r.update=function(e){return u.customProps=e,me(function(e){return Promise.resolve().then((function(){if(e.status!==q)throw Error(I(32,!1,Z(e)));return e.status=z,Se(e,"update").then((function(){return e.status=q,e})).catch((function(t){throw N(t,e,$)}))}))}(u))})}))).then((function(){return ue(u,!0)})),p=f.then((function(){return fe(u,!0)})),d=new Promise((function(e,t){s=e,l=t}));return r={mount:function(){return me(Promise.resolve().then((function(){if(u.status!==U)throw Error(I(13,!1,name,u.status));return n.parcels[o]=u,fe(u)})))},unmount:function(){return me(u.unmountThisParcel())},getStatus:function(){return u.status},loadPromise:me(c),bootstrapPromise:me(f),mountPromise:me(p),unmountPromise:me(d)}}function me(e){return e.then((function(){return null}))}function ye(e){var t=Z(e),n="function"==typeof e.customProps?e.customProps(t,window.location):e.customProps;("object"!==L(n)||null===n||Array.isArray(n))&&(n={},console.warn(I(40,!1),t,n));var r=ne({},n,{name:t,mountParcel:ve.bind(e),singleSpa:M});return ee(e)&&(r.unmountSelf=e.unmountThisParcel),r}var ge={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 we(e,t,n){if("number"!=typeof e||0>=e)throw Error(I(16,!1));ge.bootstrap={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function be(e,t,n){if("number"!=typeof e||0>=e)throw Error(I(17,!1));ge.mount={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function Ee(e,t,n){if("number"!=typeof e||0>=e)throw Error(I(18,!1));ge.unmount={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function xe(e,t,n){if("number"!=typeof e||0>=e)throw Error(I(19,!1));ge.unload={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function Se(e,t){var n=e.timeouts[t],r=n.warningMillis,o=te(e);return new Promise((function(a,i){var u=!1,c=!1;e[t](ye(e)).then((function(e){u=!0,a(e)})).catch((function(e){u=!0,i(e)})),setTimeout((function(){return l(1)}),r),setTimeout((function(){return l(!0)}),n.millis);var s=I(31,!1,t,o,Z(e),n.millis);function l(e){if(!u)if(!0===e)c=!0,n.dieOnTimeout?i(Error(s)):console.error(s);else if(!c){var t=e,o=t*r;console.warn(s),n.millis>o+r&&setTimeout((function(){return l(t+1)}),r)}}}))}function _e(e){var t={};for(var n in ge)t[n]=ne({},ge[n],e&&e[n]||{});return t}function Oe(e){return Promise.resolve().then((function(){return e.loadPromise?e.loadPromise:e.status!==H&&e.status!==Y?e:(e.status=V,e.loadPromise=Promise.resolve().then((function(){var r=e.loadApp(ye(e));if(!ie(r))throw n=!0,Error(I(33,!1,Z(e)));return r.then((function(n){var r;e.loadErrorTime=null,"object"!==L(t=n)&&(r=34),Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!oe(t.bootstrap)&&(r=35),oe(t.mount)||(r=36),oe(t.unmount)||(r=37);var o=te(t);if(r){var a;try{a=JSON.stringify(t)}catch(e){}return console.error(I(r,!1,o,Z(e),a),t),D(void 0,e,$),e}return t.devtools&&t.devtools.overlays&&(e.devtools.overlays=ne({},e.devtools.overlays,t.devtools.overlays)),e.status=B,e.bootstrap=ae(t,"bootstrap"),e.mount=ae(t,"mount"),e.unmount=ae(t,"unmount"),e.unload=ae(t,"unload"),e.timeouts=_e(t.timeouts),delete e.loadPromise,e}))})).catch((function(t){var r;return delete e.loadPromise,n?r=$:(r=Y,e.loadErrorTime=(new Date).getTime()),D(t,e,r),e})));var t,n}))}var Pe,Te="undefined"!=typeof window,Me={hashchange:[],popstate:[]},Le=["hashchange","popstate"];function Ae(e){var t;if("string"==typeof e)t=e;else if(this&&this.href)t=this.href;else{if(!(e&&e.currentTarget&&e.currentTarget.href&&e.preventDefault))throw Error(I(14,!1));t=e.currentTarget.href,e.preventDefault()}var n=Ge(window.location.href),r=Ge(t);0===t.indexOf("#")?window.location.hash=r.hash:n.host!==r.host&&r.host?window.location.href=t:r.pathname===n.pathname&&r.search===n.search?window.location.hash=r.hash:window.history.pushState(null,null,t)}function je(e){var t=this;if(e){var n=e[0].type;Le.indexOf(n)>=0&&Me[n].forEach((function(n){try{n.apply(t,e)}catch(e){setTimeout((function(){throw e}))}}))}}function Ce(){ut([],arguments)}function Re(e,t){return function(){var n=window.location.href,r=e.apply(this,arguments),o=window.location.href;return Pe&&n===o||(ft()?window.dispatchEvent(function(e,t){var n;try{n=new PopStateEvent("popstate",{state:e})}catch(t){(n=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,e)}return n.singleSpa=!0,n.singleSpaTrigger=t,n}(window.history.state,t)):ut([])),r}}if(Te){window.addEventListener("hashchange",Ce),window.addEventListener("popstate",Ce);var De=window.addEventListener,ke=window.removeEventListener;window.addEventListener=function(e,t){if("function"!=typeof t||0>Le.indexOf(e)||re(Me[e],(function(e){return e===t})))return De.apply(this,arguments);Me[e].push(t)},window.removeEventListener=function(e,t){if("function"!=typeof t||0>Le.indexOf(e))return ke.apply(this,arguments);Me[e]=Me[e].filter((function(e){return e!==t}))},window.history.pushState=Re(window.history.pushState,"pushState"),window.history.replaceState=Re(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(I(41,!1)):window.singleSpaNavigate=Ae}function Ge(e){var t=document.createElement("a");return t.href=e,t}var Ie=!1;function Ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(e||window.$&&window.$.fn&&window.$.fn.jquery&&(e=window.$),e&&!Ie){var t=e.fn.on,n=e.fn.off;e.fn.on=function(e,n){return He.call(this,t,window.addEventListener,e,n,arguments)},e.fn.off=function(e,t){return He.call(this,n,window.removeEventListener,e,t,arguments)},Ie=!0}}function He(e,t,n,r,o){return"string"!=typeof n?e.apply(this,o):(n.split(/\s+/).forEach((function(e){Le.indexOf(e)>=0&&(t(e,r),n=n.replace(e,""))})),""===n.trim()?this:e.apply(this,o))}var Ve={};function Be(e){return Promise.resolve().then((function(){var t=Ve[Z(e)];if(!t)return e;if(e.status===H)return Fe(e,t),e;if(e.status===X)return t.promise.then((function(){return e}));if(e.status!==U&&e.status!==Y)return e;var n=e.status===Y?Promise.resolve():Se(e,"unload");return e.status=X,n.then((function(){return Fe(e,t),e})).catch((function(n){return function(e,t,n){delete Ve[Z(e)],delete e.bootstrap,delete e.mount,delete e.unmount,delete e.unload,D(n,e,$),t.reject(n)}(e,t,n),e}))}))}function Fe(e,t){delete Ve[Z(e)],delete e.bootstrap,delete e.mount,delete e.unmount,delete e.unload,e.status=H,t.resolve()}function Ue(e,t,n,r){Ve[Z(e)]={app:e,resolve:n,reject:r},Object.defineProperty(Ve[Z(e)],"promise",{get:t})}function We(e){return Ve[e]}var qe=[];function ze(){var e=[],t=[],n=[],r=[],o=(new Date).getTime();return qe.forEach((function(a){var i=a.status!==$&&J(a);switch(a.status){case Y:i&&o-a.loadErrorTime>=200&&n.push(a);break;case H:case V:i&&n.push(a);break;case B:case U:!i&&We(Z(a))?e.push(a):i&&r.push(a);break;case q:i||t.push(a)}})),{appsToUnload:e,appsToUnmount:t,appsToLoad:n,appsToMount:r}}function Ke(){return qe.filter(Q).map(Z)}function Xe(){return qe.map(Z)}function Ye(e){var t=re(qe,(function(t){return Z(t)===e}));return t?t.status:null}function $e(e,t,n,r){var o=function(e,t,n,r){var o,a={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"===L(e)?(function(e){if(Array.isArray(e)||null===e)throw Error(I(39,!1));var t=["name","app","activeWhen","customProps"],n=Object.keys(e).reduce((function(e,n){return 0>t.indexOf(n)?e.concat(n):e}),[]);if(0!==n.length)throw Error(I(38,!1,t.join(", "),n.join(", ")));if("string"!=typeof e.name||0===e.name.length)throw Error(I(20,!1));if("object"!==L(e.app)&&"function"!=typeof e.app)throw Error(I(20,!1));var r=function(e){return"string"==typeof e||"function"==typeof e};if(!(r(e.activeWhen)||Array.isArray(e.activeWhen)&&e.activeWhen.every(r)))throw Error(I(24,!1));if(!tt(e.customProps))throw Error(I(22,!1))}(e),a.name=e.name,a.loadApp=e.app,a.activeWhen=e.activeWhen,a.customProps=e.customProps):(function(e,t,n,r){if("string"!=typeof e||0===e.length)throw Error(I(20,!1));if(!t)throw Error(I(23,!1));if("function"!=typeof n)throw Error(I(24,!1));if(!tt(r))throw Error(I(22,!1))}(e,t,n,r),a.name=e,a.loadApp=t,a.activeWhen=n,a.customProps=r),a.loadApp="function"!=typeof(o=a.loadApp)?function(){return Promise.resolve(o)}:o,a.customProps=function(e){return e||{}}(a.customProps),a.activeWhen=function(e){var t=Array.isArray(e)?e:[e];return t=t.map((function(e){return"function"==typeof e?e:nt(e)})),function(e){return t.some((function(t){return t(e)}))}}(a.activeWhen),a}(e,t,n,r);if(-1!==Xe().indexOf(o.name))throw Error(I(21,!1,o.name));qe.push(ne({loadErrorTime:null,status:H,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},o)),Te&&(Ne(),ut())}function Qe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location;return qe.filter((function(t){return t.activeWhen(e)})).map(Z)}function Je(e){if(0===qe.filter((function(t){return Z(t)===e})).length)throw Error(I(25,!1,e));return Ze(e).then((function(){var t=qe.map(Z).indexOf(e);qe.splice(t,1)}))}function Ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof e)throw Error(I(26,!1));var n=re(qe,(function(t){return Z(t)===e}));if(!n)throw Error(I(27,!1,e));var r,o=We(Z(n));if(t&&t.waitForUnmount){if(o)return o.promise;var a=new Promise((function(e,t){Ue(n,(function(){return a}),e,t)}));return a}return o?(r=o.promise,et(n,o.resolve,o.reject)):r=new Promise((function(e,t){Ue(n,(function(){return r}),e,t),et(n,e,t)})),r}function et(e,t,n){ce(e).then(Be).then((function(){t(),setTimeout((function(){ut()}))})).catch(n)}function tt(e){return!e||"function"==typeof e||"object"===L(e)&&null!==e&&!Array.isArray(e)}function nt(e,t){var n=function(e,t){var n=0,r=!1,o="^";"/"!==e[0]&&(e="/"+e);for(var a=0;e.length>a;a++){var i=e[a];(!r&&":"===i||r&&"/"===i)&&u(a)}return u(e.length),RegExp(o,"i");function u(a){var i=e.slice(n,a).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(o+=r?"[^/]+/?":i,a===e.length)if(r)t&&(o+="$");else{var u=t?"":".*";o="/"===o.charAt(o.length-1)?"".concat(o).concat(u,"$"):"".concat(o,"(/").concat(u,")?(#.*)?$")}r=!r,n=a}}(e,t);return function(e){var t=e.origin;t||(t="".concat(e.protocol,"//").concat(e.host));var r=e.href.replace(t,"").replace(e.search,"").split("?")[0];return n.test(r)}}var rt=!1,ot=[],at=Te&&window.location.href;function it(){return ut()}function ut(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(rt)return new Promise((function(e,n){ot.push({resolve:e,reject:n,eventArguments:t})}));var n,r=ze(),o=r.appsToUnload,a=r.appsToUnmount,i=r.appsToLoad,u=r.appsToMount,c=!1,s=at,l=at=window.location.href;return ft()?(rt=!0,n=o.concat(i,a,u),Promise.resolve().then((function(){if(window.dispatchEvent(new C(0===n.length?"single-spa:before-no-app-change":"single-spa:before-app-change",h(!0))),window.dispatchEvent(new C("single-spa:before-routing-event",h(!0,{cancelNavigation:f}))),c)return window.dispatchEvent(new C("single-spa:before-mount-routing-event",h(!0))),p(),void Ae(s);var t=o.map(Be),r=a.map(ce).map((function(e){return e.then(Be)})).concat(t),l=Promise.all(r);l.then((function(){window.dispatchEvent(new C("single-spa:before-mount-routing-event",h(!0)))}));var v=i.map((function(e){return Oe(e).then((function(e){return ct(e,l)}))})),m=u.filter((function(e){return 0>i.indexOf(e)})).map((function(e){return ct(e,l)}));return l.catch((function(e){throw d(),e})).then((function(){return d(),Promise.all(v.concat(m)).catch((function(t){throw e.forEach((function(e){return e.reject(t)})),t})).then(p)}))}))):(n=i,Promise.resolve().then((function(){var e=i.map(Oe);return Promise.all(e).then(d).then((function(){return[]})).catch((function(e){throw d(),e}))})));function f(){c=!0}function p(){var t=Ke();e.forEach((function(e){return e.resolve(t)}));try{window.dispatchEvent(new C(0===n.length?"single-spa:no-app-change":"single-spa:app-change",h())),window.dispatchEvent(new C("single-spa:routing-event",h()))}catch(e){setTimeout((function(){throw e}))}if(rt=!1,ot.length>0){var r=ot;ot=[],ut(r)}return t}function d(){e.forEach((function(e){je(e.eventArguments)})),je(t)}function h(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],f=arguments.length>1?arguments[1]:void 0,p={},d=(A(e={},q,[]),A(e,U,[]),A(e,H,[]),A(e,$,[]),e);r?(i.concat(u).forEach((function(e,t){v(e,q)})),o.forEach((function(e){v(e,H)})),a.forEach((function(e){v(e,U)}))):n.forEach((function(e){v(e)}));var h={detail:{newAppStatuses:p,appsByNewStatus:d,totalAppChanges:n.length,originalEvent:null==t?void 0:t[0],oldUrl:s,newUrl:l,navigationIsCanceled:c}};return f&&ne(h.detail,f),h;function v(e,t){var n=Z(e);t=t||Ye(n),p[n]=t,(d[t]=d[t]||[]).push(n)}}}function ct(e,t){return J(e)?ue(e).then((function(e){return t.then((function(){return J(e)?fe(e):e}))})):t.then((function(){return e}))}var st=!1;function lt(e){st=!0,e&&e.urlRerouteOnly&&(Pe=e.urlRerouteOnly),Te&&ut()}function ft(){return st}Te&&setTimeout((function(){st||console.warn(I(1,!1))}),5e3),Te&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods={getRawAppData:function(){return[].concat(qe)},reroute:ut,NOT_LOADED:H,toLoadPromise:Oe,toBootstrapPromise:ue,unregisterApplication:Je});var pt=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},dt="object"==typeof t&&t&&t.Object===Object&&t,ht="object"==typeof self&&self&&self.Object===Object&&self,vt=dt||ht||Function("return this")(),mt=vt.Symbol,yt=Object.prototype,gt=yt.hasOwnProperty,wt=yt.toString,bt=mt?mt.toStringTag:void 0;var Et=function(e){var t=gt.call(e,bt),n=e[bt];try{e[bt]=void 0;var r=!0}catch(e){}var o=wt.call(e);return r&&(t?e[bt]=n:delete e[bt]),o},xt=Object.prototype.toString;var St=function(e){return xt.call(e)},_t=mt?mt.toStringTag:void 0;var Ot=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":_t&&_t in Object(e)?Et(e):St(e)};var Pt=function(e){return null!=e&&"object"==typeof e};var Tt=function(e){return Pt(e)&&"[object Arguments]"==Ot(e)},Mt=Object.prototype,Lt=Mt.hasOwnProperty,At=Mt.propertyIsEnumerable,jt=Tt(function(){return arguments}())?Tt:function(e){return Pt(e)&&Lt.call(e,"callee")&&!At.call(e,"callee")},Ct=jt,Rt=Array.isArray,Dt=mt?mt.isConcatSpreadable:void 0;var kt=function(e){return Rt(e)||Ct(e)||!!(Dt&&e&&e[Dt])};var Gt=function e(t,n,r,o,a){var i=-1,u=t.length;for(r||(r=kt),a||(a=[]);++i<u;){var c=t[i];n>0&&r(c)?n>1?e(c,n-1,r,o,a):pt(a,c):o||(a[a.length]=c)}return a};var It=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var Nt=function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return pt(Rt(n)?It(n):[n],Gt(t,1))};var Ht=function(e,t){return e===t||e!=e&&t!=t};var Vt=function(e,t){for(var n=e.length;n--;)if(Ht(e[n][0],t))return n;return-1},Bt=Array.prototype.splice;var Ft=function(e){var t=this.__data__,n=Vt(t,e);return n>=0&&(n==t.length-1?t.pop():Bt.call(t,n,1),--this.size,!0)};var Ut=function(e){var t=this.__data__,n=Vt(t,e);return 0>n?void 0:t[n][1]};var Wt=function(e){return Vt(this.__data__,e)>-1};var qt=function(e,t){var n=this.__data__,r=Vt(n,e);return 0>r?(++this.size,n.push([e,t])):n[r][1]=t,this};function zt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}zt.prototype.clear=function(){this.__data__=[],this.size=0},zt.prototype.delete=Ft,zt.prototype.get=Ut,zt.prototype.has=Wt,zt.prototype.set=qt;var Kt=zt;var Xt=function(){this.__data__=new Kt,this.size=0};var Yt=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var $t=function(e){return this.__data__.get(e)};var Qt=function(e){return this.__data__.has(e)};var Jt=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var Zt,en=function(e){if(!Jt(e))return!1;var t=Ot(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},tn=vt["__core-js_shared__"],nn=(Zt=/[^.]+$/.exec(tn&&tn.keys&&tn.keys.IE_PROTO||""))?"Symbol(src)_1."+Zt:"";var rn=function(e){return!!nn&&nn in e},on=Function.prototype.toString;var an=function(e){if(null!=e){try{return on.call(e)}catch(e){}try{return e+""}catch(e){}}return""},un=/^\[object .+?Constructor\]$/,cn=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var sn=function(e){return!(!Jt(e)||rn(e))&&(en(e)?cn:un).test(an(e))};var ln=function(e,t){return null==e?void 0:e[t]};var fn=function(e,t){var n=ln(e,t);return sn(n)?n:void 0},pn=fn(vt,"Map"),dn=fn(Object,"create");var hn=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},vn=Object.prototype.hasOwnProperty;var mn=function(e){var t=this.__data__;if(dn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return vn.call(t,e)?t[e]:void 0},yn=Object.prototype.hasOwnProperty;var gn=function(e){var t=this.__data__;return dn?void 0!==t[e]:yn.call(t,e)};var wn=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=dn&&void 0===t?"__lodash_hash_undefined__":t,this};function bn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}bn.prototype.clear=function(){this.__data__=dn?dn(null):{},this.size=0},bn.prototype.delete=hn,bn.prototype.get=mn,bn.prototype.has=gn,bn.prototype.set=wn;var En=bn;var xn=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Sn=function(e,t){var n=e.__data__;return xn(t)?n["string"==typeof t?"string":"hash"]:n.map};var _n=function(e){var t=Sn(this,e).delete(e);return this.size-=t?1:0,t};var On=function(e){return Sn(this,e).get(e)};var Pn=function(e){return Sn(this,e).has(e)};var Tn=function(e,t){var n=Sn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Mn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Mn.prototype.clear=function(){this.size=0,this.__data__={hash:new En,map:new(pn||Kt),string:new En}},Mn.prototype.delete=_n,Mn.prototype.get=On,Mn.prototype.has=Pn,Mn.prototype.set=Tn;var Ln=Mn;var An=function(e,t){var n=this.__data__;if(n instanceof Kt){var r=n.__data__;if(!pn||199>r.length)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ln(r)}return n.set(e,t),this.size=n.size,this};function jn(e){var t=this.__data__=new Kt(e);this.size=t.size}jn.prototype.clear=Xt,jn.prototype.delete=Yt,jn.prototype.get=$t,jn.prototype.has=Qt,jn.prototype.set=An;var Cn=jn,Rn=function(){try{var e=fn(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var Dn=function(e,t,n){"__proto__"==t&&Rn?Rn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var kn=function(e,t,n){(void 0!==n&&!Ht(e[t],n)||void 0===n&&!(t in e))&&Dn(e,t,n)};var Gn=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),u=i.length;u--;){var c=i[e?u:++o];if(!1===n(a[c],c,a))break}return t}}(),In=r((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n?vt.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}})),Nn=vt.Uint8Array;var Hn=function(e){var t=new e.constructor(e.byteLength);return new Nn(t).set(new Nn(e)),t};var Vn=function(e,t){var n=t?Hn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},Bn=Object.create,Fn=function(){function e(){}return function(t){if(!Jt(t))return{};if(Bn)return Bn(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Un=function(e,t){return function(n){return e(t(n))}},Wn=Un(Object.getPrototypeOf,Object),qn=Object.prototype;var zn=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||qn)};var Kn=function(e){return"function"!=typeof e.constructor||zn(e)?{}:Fn(Wn(e))};var Xn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&9007199254740991>=e};var Yn=function(e){return null!=e&&Xn(e.length)&&!en(e)};var $n=function(e){return Pt(e)&&Yn(e)};var Qn=function(){return!1},Jn=r((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n?vt.Buffer:void 0;e.exports=(o?o.isBuffer:void 0)||Qn})),Zn=Function.prototype.toString,er=Object.prototype.hasOwnProperty,tr=Zn.call(Object);var nr=function(e){if(!Pt(e)||"[object Object]"!=Ot(e))return!1;var t=Wn(e);if(null===t)return!0;var n=er.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Zn.call(n)==tr},rr={};rr["[object Float32Array]"]=rr["[object Float64Array]"]=rr["[object Int8Array]"]=rr["[object Int16Array]"]=rr["[object Int32Array]"]=rr["[object Uint8Array]"]=rr["[object Uint8ClampedArray]"]=rr["[object Uint16Array]"]=rr["[object Uint32Array]"]=!0,rr["[object Arguments]"]=rr["[object Array]"]=rr["[object ArrayBuffer]"]=rr["[object Boolean]"]=rr["[object DataView]"]=rr["[object Date]"]=rr["[object Error]"]=rr["[object Function]"]=rr["[object Map]"]=rr["[object Number]"]=rr["[object Object]"]=rr["[object RegExp]"]=rr["[object Set]"]=rr["[object String]"]=rr["[object WeakMap]"]=!1;var or=function(e){return Pt(e)&&Xn(e.length)&&!!rr[Ot(e)]};var ar=function(e){return function(t){return e(t)}},ir=r((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n&&dt.process,a=function(){try{var e=r&&r.require&&r.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a})),ur=ir&&ir.isTypedArray,cr=ur?ar(ur):or;var sr=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},lr=Object.prototype.hasOwnProperty;var fr=function(e,t,n){var r=e[t];lr.call(e,t)&&Ht(r,n)&&(void 0!==n||t in e)||Dn(e,t,n)};var pr=function(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var u=t[a],c=r?r(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),o?Dn(n,u,c):fr(n,u,c)}return n};var dr=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},hr=/^(?:0|[1-9]\d*)$/;var vr=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&hr.test(e))&&e>-1&&e%1==0&&t>e},mr=Object.prototype.hasOwnProperty;var yr=function(e,t){var n=Rt(e),r=!n&&Ct(e),o=!n&&!r&&Jn(e),a=!n&&!r&&!o&&cr(e),i=n||r||o||a,u=i?dr(e.length,String):[],c=u.length;for(var s in e)!t&&!mr.call(e,s)||i&&("length"==s||o&&("offset"==s||"parent"==s)||a&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||vr(s,c))||u.push(s);return u};var gr=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},wr=Object.prototype.hasOwnProperty;var br=function(e){if(!Jt(e))return gr(e);var t=zn(e),n=[];for(var r in e)("constructor"!=r||!t&&wr.call(e,r))&&n.push(r);return n};var Er=function(e){return Yn(e)?yr(e,!0):br(e)};var xr=function(e){return pr(e,Er(e))};var Sr=function(e,t,n,r,o,a,i){var u=sr(e,n),c=sr(t,n),s=i.get(c);if(s)kn(e,n,s);else{var l=a?a(u,c,n+"",e,t,i):void 0,f=void 0===l;if(f){var p=Rt(c),d=!p&&Jn(c),h=!p&&!d&&cr(c);l=c,p||d||h?Rt(u)?l=u:$n(u)?l=It(u):d?(f=!1,l=In(c,!0)):h?(f=!1,l=Vn(c,!0)):l=[]:nr(c)||Ct(c)?(l=u,Ct(u)?l=xr(u):Jt(u)&&!en(u)||(l=Kn(c))):f=!1}f&&(i.set(c,l),o(l,c,r,a,i),i.delete(c)),kn(e,n,l)}};var _r=function e(t,n,r,o,a){t!==n&&Gn(n,(function(i,u){if(a||(a=new Cn),Jt(i))Sr(t,n,u,r,e,o,a);else{var c=o?o(sr(t,u),i,u+"",t,n,a):void 0;void 0===c&&(c=i),kn(t,u,c)}}),Er)};var Or=function(e){return e};var Pr=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Tr=Math.max;var Mr=function(e,t,n){return t=Tr(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=Tr(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var u=Array(t+1);++o<t;)u[o]=r[o];return u[t]=n(i),Pr(e,this,u)}};var Lr=function(e){return function(){return e}},Ar=Date.now;var jr=function(e){var t=0,n=0;return function(){var r=Ar(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Cr=jr(Rn?function(e,t){return Rn(e,"toString",{configurable:!0,enumerable:!1,value:Lr(t),writable:!0})}:Or);var Rr=function(e,t){return Cr(Mr(e,t,Or),e+"")};var Dr=function(e,t,n){if(!Jt(n))return!1;var r=typeof t;return!!("number"==r?Yn(n)&&vr(t,n.length):"string"==r&&t in n)&&Ht(n[t],e)};var kr=function(e){return Rr((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&Dr(n[0],n[1],i)&&(a=3>o?void 0:a,o=1),t=Object(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t}))}((function(e,t,n,r){_r(e,t,n,r)}));var Gr=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},Ir=Un(Object.keys,Object),Nr=Object.prototype.hasOwnProperty;var Hr=function(e){if(!zn(e))return Ir(e);var t=[];for(var n in Object(e))Nr.call(e,n)&&"constructor"!=n&&t.push(n);return t};var Vr=function(e){return Yn(e)?yr(e):Hr(e)};var Br=function(e,t){return function(n,r){if(null==n)return n;if(!Yn(n))return e(n,r);for(var o=n.length,a=t?o:-1,i=Object(n);(t?a--:++a<o)&&!1!==r(i[a],a,i););return n}}((function(e,t){return e&&Gn(e,t,Vr)}));var Fr=function(e){return"function"==typeof e?e:Or};var Ur=function(e,t){return(Rt(e)?Gr:Br)(e,Fr(t))};function Wr(e,t){return Promise.all(e.map((function(e,n){return e.then((function(e){return{status:"fulfilled",value:e}})).catch((function(e){if(t&&t(n))throw e;return{status:"rejected",reason:e}}))})))}var qr,zr,Kr,Xr=r((function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports})),Yr=r((function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,u=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}},e.exports.__esModule=!0,e.exports.default=e.exports})),$r=r((function(e){e.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.")},e.exports.__esModule=!0,e.exports.default=e.exports})),Qr=r((function(e){e.exports=function(e,t){return Xr(e)||Yr(e,t)||d(e,t)||$r()},e.exports.__esModule=!0,e.exports.default=e.exports})),Jr=n(Qr),Zr="undefined"!=typeof navigator&&-1!==navigator.userAgent.indexOf("Trident");function eo(e,t){if(!e.hasOwnProperty(t)||!isNaN(t)&&e.length>t)return!0;if(!Zr)return!1;try{return e[t]&&"undefined"!=typeof window&&e[t].parent===window}catch(e){return!0}}function to(e){var t=e.indexOf(">")+1,n=e.lastIndexOf("<");return e.substring(t,n)}function no(e){if("object"===g(e))return"/";try{var t=new URL(e,location.href),n=t.origin,r=t.pathname.split("/");return r.pop(),"".concat(n).concat(r.join("/"),"/")}catch(e){return console.warn(e),""}}var ro=window.requestIdleCallback||function(e){var t=Date.now();return setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)};function oo(e){return(new DOMParser).parseFromString('<script src="'.concat(e,'"><\/script>'),"text/html").scripts[0].src}var ao=/(<script[\s\S]*?>)[\s\S]*?<\/script>/gi,io=/<(script)\s+((?!type=('|")text\/ng-template\3)[^])*?>[^]*?<\/\1>/i,uo=/.*\ssrc=('|")?([^>'"\s]+)/,co=/.*\stype=('|")?([^>'"\s]+)/,so=/.*\sentry\s*.*/,lo=/.*\sasync\s*.*/,fo=/.*\scrossorigin=('|")?use-credentials\1/,po=/.*\snomodule\s*.*/,ho=/.*\stype=('|")?module('|")?\s*.*/,vo=/<(link)\s+[^]*?>/gi,mo=/\srel=('|")?(preload|prefetch)\1/,yo=/.*\shref=('|")?([^>'"\s]+)/,go=/.*\sas=('|")?font\1.*/,wo=/<style[^>]*>[\s\S]*?<\/style>/gi,bo=/\s+rel=('|")?stylesheet\1.*/,Eo=/.*\shref=('|")?([^>'"\s]+)/,xo=/<!--([\s\S]*?)-->/g,So=/<link(\s+|\s+[^]+\s+)ignore(\s*|\s+[^]*|=[^]*)>/i,_o=/<style(\s+|\s+[^]+\s+)ignore(\s*|\s+[^]*|=[^]*)>/i,Oo=/<script(\s+|\s+[^]+\s+)ignore(\s*|\s+[^]*|=[^]*)>/i;function Po(e){return e.startsWith("http://")||e.startsWith("https://")}function To(e,t){return""+new URL(e,t)}var Mo=function(e){return"\x3c!-- ".concat(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?"prefetch/preload":""," link ").concat(e," replaced by import-html-entry --\x3e")},Lo=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"\x3c!-- ".concat(arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"cors":""," ").concat(t?"async":""," script ").concat(e," replaced by import-html-entry --\x3e")},Ao=function(e){return"\x3c!-- ignore asset ".concat(e||"file"," replaced by import-html-entry --\x3e")},jo=function(e,t){return"\x3c!-- ".concat(t?"nomodule":"module"," script ").concat(e," ignored by import-html-entry --\x3e")};function Co(e,t,n){var r=[],o=[],a=null,i="noModule"in document.createElement("script"),u={template:e.replace(xo,"").replace(vo,(function(e){if(!!e.match(bo)){var n=e.match(Eo),r=e.match(So);if(n){var a=n&&n[2],i=a;return a&&!Po(a)&&(i=To(a,t)),r?Ao(i):(i=oo(i),o.push(i),Mo(i))}}if(e.match(mo)&&e.match(yo)&&!e.match(go)){var u=e.match(yo),c=Jr(u,3);return Mo(c[2],!0)}return e})).replace(wo,(function(e){return _o.test(e)?Ao("style file"):e})).replace(ao,(function(e,n){var o,u=n.match(Oo),c=i&&!!n.match(po)||!i&&!!n.match(ho),s=n.match(co);if((o=s&&s[2])&&-1===["text/javascript","module","application/javascript","text/ecmascript","application/ecmascript"].indexOf(o))return e;if(io.test(e)&&n.match(uo)){var l=n.match(so),f=n.match(uo),p=f&&f[2];if(a&&l)throw new SyntaxError("You should not set multiply entry script!");if(p&&(Po(p)||(p=To(p,t)),p=oo(p)),a=a||l&&p,u)return Ao(p||"js file");if(c)return jo(p||"js file",i);if(p){var d=!!n.match(lo),h=!!n.match(fo);return r.push(d||h?{async:d,src:p,crossOrigin:h}:p),Lo(p,d,h)}return e}return u?Ao("js file"):c?jo("js file",i):(to(e).split(/[\r\n]+/).every((function(e){return!e.trim()||e.trim().startsWith("//")}))||r.push(e),"\x3c!-- inline scripts replaced by import-html-entry --\x3e")})),scripts:r=r.filter((function(e){return!!e})),styles:o,entry:a||r[r.length-1]};return"function"==typeof n&&(u=n(u)),u}if(window.__styleCache={},window.__scriptCache={},window.__embedHTMLCache={},!window.fetch)throw Error('[import-html-entry] Here is no "fetch" on the window env, you need to polyfill it');var Ro=window.fetch.bind(window);function Do(e){return e}function ko(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).fetch,r=e;return Io(t,void 0===n?Ro:n).then((function(e){return r=e.reduce((function(e,t){var n,r,o,a=t.src,i=(n=t.value,o=(r=a).substring(0,r.lastIndexOf("/")+1),n.replace(/url\((['"]?)([^'")]+)\1\)/g,(function(e,t,n){if(/^(data:|https?:|\/)/i.test(n))return e;var r=new URL(n,o).href;return"url(".concat(r,")")})));return e=e.replace(Mo(a),Go(a)?"".concat(a):"<style>/* ".concat(a," */").concat(i,"</style>"))}),r)}))}var Go=function(e){return e.startsWith("<")};function Io(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ro;return Wr(e.map(function(){var e=a(T.mark((function e(n){return T.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Go(n)){e.next=4;break}return e.abrupt("return",to(n));case 4:return e.abrupt("return",t(n).then((function(e){if(e.status>=400)throw Error("".concat(n," load failed with status ").concat(e.status));return e.text()})).catch((function(e){try{-1===e.message.indexOf(n)&&(e.message="".concat(n," ").concat(e.message))}catch(e){}throw e})));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())).then((function(t){return t.map((function(t,n){return"fulfilled"===t.status&&(t.value={src:e[n],value:t.value}),t})).filter((function(e){return"rejected"===e.status&&Promise.reject(e.reason),"fulfilled"===e.status})).map((function(e){return e.value}))}))}function No(e){var t=arguments.length>