/*! For license information please see index.js.LICENSE.txt */ var fireapp;(()=>{var t={666:t=>{var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i=e&&e.prototype instanceof m?e:m,c=Object.create(i.prototype),u=new A(r||[]);return o(c,"_invoke",{value:L(t,n,u)}),c}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function m(){}function g(){}function b(){}var w={};s(w,c,(function(){return this}));var x=Object.getPrototypeOf,O=x&&x(x(R([])));O&&O!==n&&r.call(O,c)&&(w=O);var E=b.prototype=m.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,i,c,u){var a=l(t[o],t,i);if("throw"!==a.type){var s=a.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,u)}))}u(a.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function L(t,e,n){var r=h;return function(o,i){if(r===y)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=y;var a=l(t,e,n);if("normal"===a.type){if(r=n.done?d:p,a.arg===v)continue;return{value:a.arg,done:n.done}}"throw"===a.type&&(r=d,n.method="throw",n.arg=a.arg)}}}function P(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,P(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=l(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var c=i.arg;return c?c.done?(n[t.resultName]=c.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):c:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function _(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 k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function R(t){if(t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var a=r.call(c,"catchLoc"),s=r.call(c,"finallyLoc");if(a&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),v}},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;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:R(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.p="/fireapp/1.5.0/";var r={};(()=>{"use strict";function t(e){return t="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(e)}function e(t,e){if(t){if("string"==typeof t)return o(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)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nF}),function(){const t="undefined"!=typeof self,e="undefined"!=typeof document,n=t?self:global;let r;if(e){const t=document.querySelector("base[href]");t&&(r=t.href)}if(!r&&"undefined"!=typeof location){r=location.href.split("#")[0].split("?")[0];const t=r.lastIndexOf("/");-1!==t&&(r=r.slice(0,t+1))}const o=/\\/g;function i(t,e){if(-1!==t.indexOf("\\")&&(t=t.replace(o,"/")),"/"===t[0]&&"/"===t[1])return e.slice(0,e.indexOf(":")+1)+t;if("."===t[0]&&("/"===t[1]||"."===t[1]&&("/"===t[2]||2===t.length&&(t+="/"))||1===t.length&&(t+="/"))||"/"===t[0]){const n=e.slice(0,e.indexOf(":")+1);let r;if("/"===e[n.length+1]?"file:"!==n?(r=e.slice(n.length+2),r=r.slice(r.indexOf("/")+1)):r=e.slice(8):r=e.slice(n.length+("/"===e[n.length])),"/"===t[0])return e.slice(0,e.length-r.length-1)+t;const o=r.slice(0,r.lastIndexOf("/")+1)+t,i=[];let c=-1;for(let t=0;tn.length&&"/"!==r[r.length-1]))return r+t.slice(n.length);l(n,r,"should have a trailing '/'")}}function l(t,e,n){console.warn("Package target "+n+", resolving target '"+e+"' for "+t)}function h(t,e,n){let r=n&&s(n,t.scopes);for(;r;){const n=f(e,t.scopes[r]);if(n)return n;r=s(r.slice(0,r.lastIndexOf("/")),t.scopes)}return f(e,t.imports)||-1!==e.indexOf(":")&&e}const p="undefined"!=typeof Symbol,y=p&&Symbol.toStringTag,d=p?Symbol():"@";function v(){this[d]={}}const m=v.prototype;function g(t){return t.id}function b(t,e,n){if(t.onload(n,e.id,e.d&&e.d.map(g)),n)throw n}let w;function x(t,e,n){let r=t[d][e];if(r)return r;const o=[],i=Object.create(null);y&&Object.defineProperty(i,y,{value:"Module"});let c=Promise.resolve().then((function(){return t.instantiate(e,n)})).then((function(n){if(!n)throw Error("Module "+e+" did not instantiate");const c=n[1]((function(t,e){r.h=!0;let n=!1;if("object"!=typeof t)t in i&&i[t]===e||(i[t]=e,n=!0);else{for(let e in t){let r=t[e];e in i&&i[e]===r||(i[e]=r,n=!0)}t.__esModule&&(i.__esModule=t.__esModule)}if(n)for(let t=0;t=0;f--){var l=o[f];"."===l?v(o,f):".."===l?(v(o,f),s++):s&&(v(o,f),s--)}if(!u)for(;s--;s)o.unshift("..");!u||""===o[0]||o[0]&&d(o[0])||o.unshift("");var h=o.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};var g="Invariant failed";function b(t,e,n,r){var o;"string"==typeof t?(o=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t),o.state=e):(void 0===(o=y({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=m(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}var w=!("undefined"==typeof window||!window.document||!window.document.createElement);function x(t,e){e(window.confirm(t))}var O="popstate",E="hashchange";function S(){try{return window.history.state||{}}catch(t){return{}}}const j=function(t){void 0===t&&(t={}),w||function(t,e){throw new Error(g)}();var e,n,r=window.history,o=(-1===(e=window.navigator.userAgent).indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),c=t,u=c.forceRefresh,a=void 0!==u&&u,s=c.getUserConfirmation,f=void 0===s?x:s,l=c.keyLength,h=void 0===l?6:l,p=t.basename?function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}("/"===(n=t.basename).charAt(0)?n:"/"+n):"";function d(t){var e=t||{},n=e.key,r=e.state,o=window.location,i=o.pathname+o.search+o.hash;return p&&(i=function(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}(i,p)),b(i,r,n)}function v(){return Math.random().toString(36).substr(2,h)}var m,j,L=(m=null,j=[],{setPrompt:function(t){return m=t,function(){m===t&&(m=null)}},confirmTransitionTo:function(t,e,n,r){if(null!=m){var o="function"==typeof m?m(t,e):m;"string"==typeof o?"function"==typeof n?n(o,r):r(!0):r(!1!==o)}else r(!0)},appendListener:function(t){var e=!0;function n(){e&&t.apply(void 0,arguments)}return j.push(n),function(){e=!1,j=j.filter((function(t){return t!==n}))}},notifyListeners:function(){for(var t=arguments.length,e=new Array(t),n=0;n=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),a=n.call(i,"finallyLoc");if(u&&a){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),l}},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 new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:L(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},t}function T(t,e,n,r,o,i,c){try{var u=t[i](c),a=u.value}catch(t){return void n(t)}u.done?e(a):Promise.resolve(a).then(r,o)}function I(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function c(t){T(i,r,o,c,u,"next",t)}function u(t){T(i,r,o,c,u,"throw",t)}c(void 0)}))}}var N=function(){var t=I(R().mark((function t(e){var n,r,o,i;return R().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,System.import(e);case 2:return n=t.sent,r=n.default,o=n.mount,i=n.unmount,t.abrupt("return",{component:r,mount:o,unmount:i});case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),C=document.getElementById("app");C||((C=document.createElement("div")).id="app");const F=function(){var t=I(R().mark((function t(e){var r,o,i,c,u,a,s,f,l,h,y,d;return R().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=function(){return f=I(R().mark((function t(){var e,r,o,c,a,s,f;return R().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=u.findApp(j.location.pathname),r="/".concat(e.name,"/").concat(e.version),n.p="".concat(i.baseUrl).concat(r).concat(n.p),o="".concat(i.baseUrl).concat(r,"/index.js"),t.next=6,N(o);case 6:return c=t.sent,a=c.component,s=c.mount,f=c.unmount,t.abrupt("return",{component:a,mount:s,unmount:f});case 11:case"end":return t.stop()}}),t)}))),f.apply(this,arguments)},s=function(){return f.apply(this,arguments)},r=e.apps,o=e.navigations,i=e.config,c=e.features,k({navigations:o,config:i,features:c}),u=new p(r),a=window.location.pathname,t.next=8,s();case 8:l=t.sent,h=l.component,y=l.mount,d=l.unmount,y(h.default,C),j.listen(function(){var t=I(R().mark((function t(e){var n;return R().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.pathname===a){t.next=8;break}return a=e.pathname,d(),t.next=5,s();case 5:(n=t.sent).mount(n.component.default,C),d=n.unmount;case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})(),fireapp=r.default})();