-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0.f8251e3b.iframe.bundle.js
2 lines (2 loc) · 38.2 KB
/
0.f8251e3b.iframe.bundle.js
1
2
/*! For license information please see 0.f8251e3b.iframe.bundle.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{1077:function(module,__webpack_exports__,__webpack_require__){"use strict";var _a$1,_a,tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1078),_firebase_util__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1079),_firebase_component__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1082),_firebase_logger__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(1094),ERRORS=((_a$1={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",_a$1["bad-app-name"]="Illegal App name: '{$appName}",_a$1["duplicate-app"]="Firebase App named '{$appName}' already exists",_a$1["app-deleted"]="Firebase App named '{$appName}' already deleted",_a$1["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",_a$1["invalid-log-argument"]="First argument to `onLog` must be null or a function.",_a$1),ERROR_FACTORY=new _firebase_util__WEBPACK_IMPORTED_MODULE_1__.b("app","Firebase",ERRORS),PLATFORM_LOG_STRING=((_a={})["@firebase/app"]="fire-core",_a["@firebase/analytics"]="fire-analytics",_a["@firebase/app-check"]="fire-app-check",_a["@firebase/auth"]="fire-auth",_a["@firebase/database"]="fire-rtdb",_a["@firebase/functions"]="fire-fn",_a["@firebase/installations"]="fire-iid",_a["@firebase/messaging"]="fire-fcm",_a["@firebase/performance"]="fire-perf",_a["@firebase/remote-config"]="fire-rc",_a["@firebase/storage"]="fire-gcs",_a["@firebase/firestore"]="fire-fst",_a["fire-js"]="fire-js",_a["firebase-wrapper"]="fire-js-all",_a),logger=new _firebase_logger__WEBPACK_IMPORTED_MODULE_3__.a("@firebase/app"),FirebaseAppImpl=function(){function FirebaseAppImpl(options,config,firebase_){var _this=this;this.firebase_=firebase_,this.isDeleted_=!1,this.name_=config.name,this.automaticDataCollectionEnabled_=config.automaticDataCollectionEnabled||!1,this.options_=Object(_firebase_util__WEBPACK_IMPORTED_MODULE_1__.h)(options),this.container=new _firebase_component__WEBPACK_IMPORTED_MODULE_2__.b(config.name),this._addComponent(new _firebase_component__WEBPACK_IMPORTED_MODULE_2__.a("app",(function(){return _this}),"PUBLIC")),this.firebase_.INTERNAL.components.forEach((function(component){return _this._addComponent(component)}))}return Object.defineProperty(FirebaseAppImpl.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(val){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=val},enumerable:!1,configurable:!0}),Object.defineProperty(FirebaseAppImpl.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(FirebaseAppImpl.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),FirebaseAppImpl.prototype.delete=function(){var _this=this;return new Promise((function(resolve){_this.checkDestroyed_(),resolve()})).then((function(){return _this.firebase_.INTERNAL.removeApp(_this.name_),Promise.all(_this.container.getProviders().map((function(provider){return provider.delete()})))})).then((function(){_this.isDeleted_=!0}))},FirebaseAppImpl.prototype._getService=function(name,instanceIdentifier){var _a;void 0===instanceIdentifier&&(instanceIdentifier="[DEFAULT]"),this.checkDestroyed_();var provider=this.container.getProvider(name);return provider.isInitialized()||"EXPLICIT"!==(null===(_a=provider.getComponent())||void 0===_a?void 0:_a.instantiationMode)||provider.initialize(),provider.getImmediate({identifier:instanceIdentifier})},FirebaseAppImpl.prototype._removeServiceInstance=function(name,instanceIdentifier){void 0===instanceIdentifier&&(instanceIdentifier="[DEFAULT]"),this.container.getProvider(name).clearInstance(instanceIdentifier)},FirebaseAppImpl.prototype._addComponent=function(component){try{this.container.addComponent(component)}catch(e){logger.debug("Component "+component.name+" failed to register with FirebaseApp "+this.name,e)}},FirebaseAppImpl.prototype._addOrOverwriteComponent=function(component){this.container.addOrOverwriteComponent(component)},FirebaseAppImpl.prototype.toJSON=function(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}},FirebaseAppImpl.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw ERROR_FACTORY.create("app-deleted",{appName:this.name_})},FirebaseAppImpl}();FirebaseAppImpl.prototype.name&&FirebaseAppImpl.prototype.options||FirebaseAppImpl.prototype.delete||console.log("dc");var firebase$1=function createFirebaseNamespace(){var namespace=function createFirebaseNamespaceCore(firebaseAppImpl){var apps={},components=new Map,namespace={__esModule:!0,initializeApp:function initializeApp(options,rawConfig){void 0===rawConfig&&(rawConfig={}),"object"==typeof rawConfig&&null!==rawConfig||(rawConfig={name:rawConfig});var config=rawConfig;void 0===config.name&&(config.name="[DEFAULT]");var name=config.name;if("string"!=typeof name||!name)throw ERROR_FACTORY.create("bad-app-name",{appName:String(name)});if(Object(_firebase_util__WEBPACK_IMPORTED_MODULE_1__.f)(apps,name))throw ERROR_FACTORY.create("duplicate-app",{appName:name});var app=new firebaseAppImpl(options,config,namespace);return apps[name]=app,app},app:app,registerVersion:function registerVersion(libraryKeyOrName,version,variant){var _a,library=null!==(_a=PLATFORM_LOG_STRING[libraryKeyOrName])&&void 0!==_a?_a:libraryKeyOrName;variant&&(library+="-"+variant);var libraryMismatch=library.match(/\s|\//),versionMismatch=version.match(/\s|\//);if(libraryMismatch||versionMismatch){var warning=['Unable to register library "'+library+'" with version "'+version+'":'];return libraryMismatch&&warning.push('library name "'+library+'" contains illegal characters (whitespace or "/")'),libraryMismatch&&versionMismatch&&warning.push("and"),versionMismatch&&warning.push('version name "'+version+'" contains illegal characters (whitespace or "/")'),void logger.warn(warning.join(" "))}registerComponent(new _firebase_component__WEBPACK_IMPORTED_MODULE_2__.a(library+"-version",(function(){return{library:library,version:version}}),"VERSION"))},setLogLevel:_firebase_logger__WEBPACK_IMPORTED_MODULE_3__.b,onLog:function onLog(logCallback,options){if(null!==logCallback&&"function"!=typeof logCallback)throw ERROR_FACTORY.create("invalid-log-argument");Object(_firebase_logger__WEBPACK_IMPORTED_MODULE_3__.c)(logCallback,options)},apps:null,SDK_VERSION:"8.10.0",INTERNAL:{registerComponent:registerComponent,removeApp:function removeApp(name){delete apps[name]},components:components,useAsService:function useAsService(app,name){return"serverAuth"===name?null:name}}};function app(name){if(name=name||"[DEFAULT]",!Object(_firebase_util__WEBPACK_IMPORTED_MODULE_1__.f)(apps,name))throw ERROR_FACTORY.create("no-app",{appName:name});return apps[name]}function registerComponent(component){var componentName=component.name;if(components.has(componentName))return logger.debug("There were multiple attempts to register component "+componentName+"."),"PUBLIC"===component.type?namespace[componentName]:null;if(components.set(componentName,component),"PUBLIC"===component.type){var serviceNamespace=function(appArg){if(void 0===appArg&&(appArg=app()),"function"!=typeof appArg[componentName])throw ERROR_FACTORY.create("invalid-app-argument",{appName:componentName});return appArg[componentName]()};void 0!==component.serviceProps&&Object(_firebase_util__WEBPACK_IMPORTED_MODULE_1__.i)(serviceNamespace,component.serviceProps),namespace[componentName]=serviceNamespace,firebaseAppImpl.prototype[componentName]=function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];return this._getService.bind(this,componentName).apply(this,component.multipleInstances?args:[])}}for(var _i=0,_a=Object.keys(apps);_i<_a.length;_i++){var appName=_a[_i];apps[appName]._addComponent(component)}return"PUBLIC"===component.type?namespace[componentName]:null}return namespace.default=namespace,Object.defineProperty(namespace,"apps",{get:function getApps(){return Object.keys(apps).map((function(name){return apps[name]}))}}),app.App=firebaseAppImpl,namespace}(FirebaseAppImpl);return namespace.INTERNAL=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},namespace.INTERNAL),{createFirebaseNamespace:createFirebaseNamespace,extendNamespace:function extendNamespace(props){Object(_firebase_util__WEBPACK_IMPORTED_MODULE_1__.i)(namespace,props)},createSubscribe:_firebase_util__WEBPACK_IMPORTED_MODULE_1__.g,ErrorFactory:_firebase_util__WEBPACK_IMPORTED_MODULE_1__.b,deepExtend:_firebase_util__WEBPACK_IMPORTED_MODULE_1__.i}),namespace}(),PlatformLoggerService=function(){function PlatformLoggerService(container){this.container=container}return PlatformLoggerService.prototype.getPlatformInfoString=function(){return this.container.getProviders().map((function(provider){if(function isVersionServiceProvider(provider){var component=provider.getComponent();return"VERSION"===(null==component?void 0:component.type)}(provider)){var service=provider.getImmediate();return service.library+"/"+service.version}return null})).filter((function(logString){return logString})).join(" ")},PlatformLoggerService}();if(Object(_firebase_util__WEBPACK_IMPORTED_MODULE_1__.j)()&&void 0!==self.firebase){logger.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");var sdkVersion=self.firebase.SDK_VERSION;sdkVersion&&sdkVersion.indexOf("LITE")>=0&&logger.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}var initializeApp=firebase$1.initializeApp;firebase$1.initializeApp=function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];return Object(_firebase_util__WEBPACK_IMPORTED_MODULE_1__.m)()&&logger.warn('\n Warning: This is a browser-targeted Firebase bundle but it appears it is being\n run in a Node environment. If running in a Node environment, make sure you\n are using the bundle specified by the "main" field in package.json.\n \n If you are using Webpack, you can specify "main" as the first item in\n "resolve.mainFields":\n https://webpack.js.org/configuration/resolve/#resolvemainfields\n \n If using Rollup, use the @rollup/plugin-node-resolve plugin and specify "main"\n as the first item in "mainFields", e.g. [\'main\', \'module\'].\n https://github.com/rollup/@rollup/plugin-node-resolve\n '),initializeApp.apply(void 0,args)};var firebase=firebase$1;!function registerCoreComponents(firebase,variant){firebase.INTERNAL.registerComponent(new _firebase_component__WEBPACK_IMPORTED_MODULE_2__.a("platform-logger",(function(container){return new PlatformLoggerService(container)}),"PRIVATE")),firebase.registerVersion("@firebase/app","0.6.30",variant),firebase.registerVersion("fire-js","")}(firebase),__webpack_exports__.a=firebase},1078:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"c",(function(){return __extends})),__webpack_require__.d(__webpack_exports__,"a",(function(){return __assign})),__webpack_require__.d(__webpack_exports__,"b",(function(){return __awaiter})),__webpack_require__.d(__webpack_exports__,"d",(function(){return __generator})),__webpack_require__.d(__webpack_exports__,"g",(function(){return __values})),__webpack_require__.d(__webpack_exports__,"e",(function(){return __read})),__webpack_require__.d(__webpack_exports__,"f",(function(){return __spreadArray}));var extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(d[p]=b[p])})(d,b)};function __extends(d,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)}var __assign=function(){return(__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t}).apply(this,arguments)};function __awaiter(thisArg,_arguments,P,generator){return new(P||(P=Promise))((function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):function adopt(value){return value instanceof P?value:new P((function(resolve){resolve(value)}))}(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())}))}function __generator(thisArg,body){var f,y,t,g,_={label:0,sent:function(){if(1&t[0])throw t[1];return t[1]},trys:[],ops:[]};return g={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return function step(op){if(f)throw new TypeError("Generator is already executing.");for(;_;)try{if(f=1,y&&(t=2&op[0]?y.return:op[0]?y.throw||((t=y.return)&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;switch(y=0,t&&(op=[2&op[0],t.value]),op[0]){case 0:case 1:t=op;break;case 4:return _.label++,{value:op[1],done:!1};case 5:_.label++,y=op[1],op=[0];continue;case 7:op=_.ops.pop(),_.trys.pop();continue;default:if(!(t=_.trys,(t=t.length>0&&t[t.length-1])||6!==op[0]&&2!==op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]<t[3])){_.label=op[1];break}if(6===op[0]&&_.label<t[1]){_.label=t[1],t=op;break}if(t&&_.label<t[2]){_.label=t[2],_.ops.push(op);break}t[2]&&_.ops.pop(),_.trys.pop();continue}op=body.call(thisArg,_)}catch(e){op=[6,e],y=0}finally{f=t=0}if(5&op[0])throw op[1];return{value:op[0]?op[1]:void 0,done:!0}}([n,v])}}}Object.create;function __values(o){var s="function"==typeof Symbol&&Symbol.iterator,m=s&&o[s],i=0;if(m)return m.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(o,n){var m="function"==typeof Symbol&&o[Symbol.iterator];if(!m)return o;var r,e,i=m.call(o),ar=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)ar.push(r.value)}catch(error){e={error:error}}finally{try{r&&!r.done&&(m=i.return)&&m.call(i)}finally{if(e)throw e.error}}return ar}function __spreadArray(to,from,pack){if(pack||2===arguments.length)for(var ar,i=0,l=from.length;i<l;i++)!ar&&i in from||(ar||(ar=Array.prototype.slice.call(from,0,i)),ar[i]=from[i]);return to.concat(ar||Array.prototype.slice.call(from))}Object.create},1079:function(module,__webpack_exports__,__webpack_require__){"use strict";(function(global){__webpack_require__.d(__webpack_exports__,"a",(function(){return Deferred})),__webpack_require__.d(__webpack_exports__,"b",(function(){return ErrorFactory})),__webpack_require__.d(__webpack_exports__,"c",(function(){return FirebaseError})),__webpack_require__.d(__webpack_exports__,"d",(function(){return areCookiesEnabled})),__webpack_require__.d(__webpack_exports__,"e",(function(){return calculateBackoffMillis})),__webpack_require__.d(__webpack_exports__,"f",(function(){return contains})),__webpack_require__.d(__webpack_exports__,"g",(function(){return createSubscribe})),__webpack_require__.d(__webpack_exports__,"h",(function(){return deepCopy})),__webpack_require__.d(__webpack_exports__,"i",(function(){return deepExtend})),__webpack_require__.d(__webpack_exports__,"j",(function(){return isBrowser})),__webpack_require__.d(__webpack_exports__,"k",(function(){return isBrowserExtension})),__webpack_require__.d(__webpack_exports__,"l",(function(){return isIndexedDBAvailable})),__webpack_require__.d(__webpack_exports__,"m",(function(){return isNode})),__webpack_require__.d(__webpack_exports__,"n",(function(){return validateIndexedDBOpenable}));var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1078),stringToByteArray$1=function(str){for(var out=[],p=0,i=0;i<str.length;i++){var c=str.charCodeAt(i);c<128?out[p++]=c:c<2048?(out[p++]=c>>6|192,out[p++]=63&c|128):55296==(64512&c)&&i+1<str.length&&56320==(64512&str.charCodeAt(i+1))?(c=65536+((1023&c)<<10)+(1023&str.charCodeAt(++i)),out[p++]=c>>18|240,out[p++]=c>>12&63|128,out[p++]=c>>6&63|128,out[p++]=63&c|128):(out[p++]=c>>12|224,out[p++]=c>>6&63|128,out[p++]=63&c|128)}return out};function deepCopy(value){return deepExtend(void 0,value)}function deepExtend(target,source){if(!(source instanceof Object))return source;switch(source.constructor){case Date:return new Date(source.getTime());case Object:void 0===target&&(target={});break;case Array:target=[];break;default:return source}for(var prop in source)source.hasOwnProperty(prop)&&"__proto__"!==prop&&(target[prop]=deepExtend(target[prop],source[prop]));return target}var Deferred=function(){function Deferred(){var _this=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(resolve,reject){_this.resolve=resolve,_this.reject=reject}))}return Deferred.prototype.wrapCallback=function(callback){var _this=this;return function(error,value){error?_this.reject(error):_this.resolve(value),"function"==typeof callback&&(_this.promise.catch((function(){})),1===callback.length?callback(error):callback(error,value))}},Deferred}();function isNode(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(e){return!1}}function isBrowser(){return"object"==typeof self&&self.self===self}function isBrowserExtension(){var runtime="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof runtime&&void 0!==runtime.id}function isIndexedDBAvailable(){return"indexedDB"in self&&null!=indexedDB}function validateIndexedDBOpenable(){return new Promise((function(resolve,reject){try{var preExist_1=!0,DB_CHECK_NAME_1="validate-browser-context-for-indexeddb-analytics-module",request_1=self.indexedDB.open(DB_CHECK_NAME_1);request_1.onsuccess=function(){request_1.result.close(),preExist_1||self.indexedDB.deleteDatabase(DB_CHECK_NAME_1),resolve(!0)},request_1.onupgradeneeded=function(){preExist_1=!1},request_1.onerror=function(){var _a;reject((null===(_a=request_1.error)||void 0===_a?void 0:_a.message)||"")}}catch(error){reject(error)}}))}function areCookiesEnabled(){return!(!navigator||!navigator.cookieEnabled)}var FirebaseError=function(_super){function FirebaseError(code,message,customData){var _this=_super.call(this,message)||this;return _this.code=code,_this.customData=customData,_this.name="FirebaseError",Object.setPrototypeOf(_this,FirebaseError.prototype),Error.captureStackTrace&&Error.captureStackTrace(_this,ErrorFactory.prototype.create),_this}return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.c)(FirebaseError,_super),FirebaseError}(Error),ErrorFactory=function(){function ErrorFactory(service,serviceName,errors){this.service=service,this.serviceName=serviceName,this.errors=errors}return ErrorFactory.prototype.create=function(code){for(var data=[],_i=1;_i<arguments.length;_i++)data[_i-1]=arguments[_i];var customData=data[0]||{},fullCode=this.service+"/"+code,template=this.errors[code],message=template?replaceTemplate(template,customData):"Error",fullMessage=this.serviceName+": "+message+" ("+fullCode+").",error=new FirebaseError(fullCode,fullMessage,customData);return error},ErrorFactory}();function replaceTemplate(template,data){return template.replace(PATTERN,(function(_,key){var value=data[key];return null!=value?String(value):"<"+key+"?>"}))}var PATTERN=/\{\$([^}]+)}/g;function contains(obj,key){return Object.prototype.hasOwnProperty.call(obj,key)}!function(){function Sha1(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var i=1;i<this.blockSize;++i)this.pad_[i]=0;this.reset()}Sha1.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},Sha1.prototype.compress_=function(buf,offset){offset||(offset=0);var W=this.W_;if("string"==typeof buf)for(var i=0;i<16;i++)W[i]=buf.charCodeAt(offset)<<24|buf.charCodeAt(offset+1)<<16|buf.charCodeAt(offset+2)<<8|buf.charCodeAt(offset+3),offset+=4;else for(i=0;i<16;i++)W[i]=buf[offset]<<24|buf[offset+1]<<16|buf[offset+2]<<8|buf[offset+3],offset+=4;for(i=16;i<80;i++){var t=W[i-3]^W[i-8]^W[i-14]^W[i-16];W[i]=4294967295&(t<<1|t>>>31)}var f,k,a=this.chain_[0],b=this.chain_[1],c=this.chain_[2],d=this.chain_[3],e=this.chain_[4];for(i=0;i<80;i++){i<40?i<20?(f=d^b&(c^d),k=1518500249):(f=b^c^d,k=1859775393):i<60?(f=b&c|d&(b|c),k=2400959708):(f=b^c^d,k=3395469782);t=(a<<5|a>>>27)+f+e+k+W[i]&4294967295;e=d,d=c,c=4294967295&(b<<30|b>>>2),b=a,a=t}this.chain_[0]=this.chain_[0]+a&4294967295,this.chain_[1]=this.chain_[1]+b&4294967295,this.chain_[2]=this.chain_[2]+c&4294967295,this.chain_[3]=this.chain_[3]+d&4294967295,this.chain_[4]=this.chain_[4]+e&4294967295},Sha1.prototype.update=function(bytes,length){if(null!=bytes){void 0===length&&(length=bytes.length);for(var lengthMinusBlock=length-this.blockSize,n=0,buf=this.buf_,inbuf=this.inbuf_;n<length;){if(0===inbuf)for(;n<=lengthMinusBlock;)this.compress_(bytes,n),n+=this.blockSize;if("string"==typeof bytes){for(;n<length;)if(buf[inbuf]=bytes.charCodeAt(n),++n,++inbuf===this.blockSize){this.compress_(buf),inbuf=0;break}}else for(;n<length;)if(buf[inbuf]=bytes[n],++n,++inbuf===this.blockSize){this.compress_(buf),inbuf=0;break}}this.inbuf_=inbuf,this.total_+=length}},Sha1.prototype.digest=function(){var digest=[],totalBits=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var i=this.blockSize-1;i>=56;i--)this.buf_[i]=255&totalBits,totalBits/=256;this.compress_(this.buf_);var n=0;for(i=0;i<5;i++)for(var j=24;j>=0;j-=8)digest[n]=this.chain_[i]>>j&255,++n;return digest}}();function createSubscribe(executor,onNoObservers){var proxy=new ObserverProxy(executor,onNoObservers);return proxy.subscribe.bind(proxy)}var ObserverProxy=function(){function ObserverProxy(executor,onNoObservers){var _this=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=onNoObservers,this.task.then((function(){executor(_this)})).catch((function(e){_this.error(e)}))}return ObserverProxy.prototype.next=function(value){this.forEachObserver((function(observer){observer.next(value)}))},ObserverProxy.prototype.error=function(error){this.forEachObserver((function(observer){observer.error(error)})),this.close(error)},ObserverProxy.prototype.complete=function(){this.forEachObserver((function(observer){observer.complete()})),this.close()},ObserverProxy.prototype.subscribe=function(nextOrObserver,error,complete){var observer,_this=this;if(void 0===nextOrObserver&&void 0===error&&void 0===complete)throw new Error("Missing Observer.");void 0===(observer=function implementsAnyMethods(obj,methods){if("object"!=typeof obj||null===obj)return!1;for(var _i=0,methods_1=methods;_i<methods_1.length;_i++){var method=methods_1[_i];if(method in obj&&"function"==typeof obj[method])return!0}return!1}(nextOrObserver,["next","error","complete"])?nextOrObserver:{next:nextOrObserver,error:error,complete:complete}).next&&(observer.next=noop),void 0===observer.error&&(observer.error=noop),void 0===observer.complete&&(observer.complete=noop);var unsub=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{_this.finalError?observer.error(_this.finalError):observer.complete()}catch(e){}})),this.observers.push(observer),unsub},ObserverProxy.prototype.unsubscribeOne=function(i){void 0!==this.observers&&void 0!==this.observers[i]&&(delete this.observers[i],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},ObserverProxy.prototype.forEachObserver=function(fn){if(!this.finalized)for(var i=0;i<this.observers.length;i++)this.sendOne(i,fn)},ObserverProxy.prototype.sendOne=function(i,fn){var _this=this;this.task.then((function(){if(void 0!==_this.observers&&void 0!==_this.observers[i])try{fn(_this.observers[i])}catch(e){"undefined"!=typeof console&&console.error&&console.error(e)}}))},ObserverProxy.prototype.close=function(err){var _this=this;this.finalized||(this.finalized=!0,void 0!==err&&(this.finalError=err),this.task.then((function(){_this.observers=void 0,_this.onNoObservers=void 0})))},ObserverProxy}();function noop(){}function calculateBackoffMillis(backoffCount,intervalMillis,backoffFactor){void 0===intervalMillis&&(intervalMillis=1e3),void 0===backoffFactor&&(backoffFactor=2);var currBaseValue=intervalMillis*Math.pow(backoffFactor,backoffCount),randomWait=Math.round(.5*currBaseValue*(Math.random()-.5)*2);return Math.min(144e5,currBaseValue+randomWait)}}).call(this,__webpack_require__(43))},1082:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return Component})),__webpack_require__.d(__webpack_exports__,"b",(function(){return ComponentContainer}));var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1078),_firebase_util__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1079),Component=function(){function Component(name,instanceFactory,type){this.name=name,this.instanceFactory=instanceFactory,this.type=type,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}return Component.prototype.setInstantiationMode=function(mode){return this.instantiationMode=mode,this},Component.prototype.setMultipleInstances=function(multipleInstances){return this.multipleInstances=multipleInstances,this},Component.prototype.setServiceProps=function(props){return this.serviceProps=props,this},Component.prototype.setInstanceCreatedCallback=function(callback){return this.onInstanceCreated=callback,this},Component}(),Provider=function(){function Provider(name,container){this.name=name,this.container=container,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}return Provider.prototype.get=function(identifier){var normalizedIdentifier=this.normalizeInstanceIdentifier(identifier);if(!this.instancesDeferred.has(normalizedIdentifier)){var deferred=new _firebase_util__WEBPACK_IMPORTED_MODULE_1__.a;if(this.instancesDeferred.set(normalizedIdentifier,deferred),this.isInitialized(normalizedIdentifier)||this.shouldAutoInitialize())try{var instance=this.getOrInitializeService({instanceIdentifier:normalizedIdentifier});instance&&deferred.resolve(instance)}catch(e){}}return this.instancesDeferred.get(normalizedIdentifier).promise},Provider.prototype.getImmediate=function(options){var _a,normalizedIdentifier=this.normalizeInstanceIdentifier(null==options?void 0:options.identifier),optional=null!==(_a=null==options?void 0:options.optional)&&void 0!==_a&&_a;if(!this.isInitialized(normalizedIdentifier)&&!this.shouldAutoInitialize()){if(optional)return null;throw Error("Service "+this.name+" is not available")}try{return this.getOrInitializeService({instanceIdentifier:normalizedIdentifier})}catch(e){if(optional)return null;throw e}},Provider.prototype.getComponent=function(){return this.component},Provider.prototype.setComponent=function(component){var e_1,_a;if(component.name!==this.name)throw Error("Mismatching Component "+component.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=component,this.shouldAutoInitialize()){if(function isComponentEager(component){return"EAGER"===component.instantiationMode}(component))try{this.getOrInitializeService({instanceIdentifier:"[DEFAULT]"})}catch(e){}try{for(var _b=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.g)(this.instancesDeferred.entries()),_c=_b.next();!_c.done;_c=_b.next()){var _d=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.e)(_c.value,2),instanceIdentifier=_d[0],instanceDeferred=_d[1],normalizedIdentifier=this.normalizeInstanceIdentifier(instanceIdentifier);try{var instance=this.getOrInitializeService({instanceIdentifier:normalizedIdentifier});instanceDeferred.resolve(instance)}catch(e){}}}catch(e_1_1){e_1={error:e_1_1}}finally{try{_c&&!_c.done&&(_a=_b.return)&&_a.call(_b)}finally{if(e_1)throw e_1.error}}}},Provider.prototype.clearInstance=function(identifier){void 0===identifier&&(identifier="[DEFAULT]"),this.instancesDeferred.delete(identifier),this.instancesOptions.delete(identifier),this.instances.delete(identifier)},Provider.prototype.delete=function(){return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.b)(this,void 0,void 0,(function(){var services;return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.d)(this,(function(_a){switch(_a.label){case 0:return services=Array.from(this.instances.values()),[4,Promise.all(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.f)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.f)([],Object(tslib__WEBPACK_IMPORTED_MODULE_0__.e)(services.filter((function(service){return"INTERNAL"in service})).map((function(service){return service.INTERNAL.delete()})))),Object(tslib__WEBPACK_IMPORTED_MODULE_0__.e)(services.filter((function(service){return"_delete"in service})).map((function(service){return service._delete()})))))];case 1:return _a.sent(),[2]}}))}))},Provider.prototype.isComponentSet=function(){return null!=this.component},Provider.prototype.isInitialized=function(identifier){return void 0===identifier&&(identifier="[DEFAULT]"),this.instances.has(identifier)},Provider.prototype.getOptions=function(identifier){return void 0===identifier&&(identifier="[DEFAULT]"),this.instancesOptions.get(identifier)||{}},Provider.prototype.initialize=function(opts){var e_2,_a;void 0===opts&&(opts={});var _b=opts.options,options=void 0===_b?{}:_b,normalizedIdentifier=this.normalizeInstanceIdentifier(opts.instanceIdentifier);if(this.isInitialized(normalizedIdentifier))throw Error(this.name+"("+normalizedIdentifier+") has already been initialized");if(!this.isComponentSet())throw Error("Component "+this.name+" has not been registered yet");var instance=this.getOrInitializeService({instanceIdentifier:normalizedIdentifier,options:options});try{for(var _c=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.g)(this.instancesDeferred.entries()),_d=_c.next();!_d.done;_d=_c.next()){var _e=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.e)(_d.value,2),instanceIdentifier=_e[0],instanceDeferred=_e[1];normalizedIdentifier===this.normalizeInstanceIdentifier(instanceIdentifier)&&instanceDeferred.resolve(instance)}}catch(e_2_1){e_2={error:e_2_1}}finally{try{_d&&!_d.done&&(_a=_c.return)&&_a.call(_c)}finally{if(e_2)throw e_2.error}}return instance},Provider.prototype.onInit=function(callback,identifier){var _a,normalizedIdentifier=this.normalizeInstanceIdentifier(identifier),existingCallbacks=null!==(_a=this.onInitCallbacks.get(normalizedIdentifier))&&void 0!==_a?_a:new Set;existingCallbacks.add(callback),this.onInitCallbacks.set(normalizedIdentifier,existingCallbacks);var existingInstance=this.instances.get(normalizedIdentifier);return existingInstance&&callback(existingInstance,normalizedIdentifier),function(){existingCallbacks.delete(callback)}},Provider.prototype.invokeOnInitCallbacks=function(instance,identifier){var e_3,_a,callbacks=this.onInitCallbacks.get(identifier);if(callbacks)try{for(var callbacks_1=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.g)(callbacks),callbacks_1_1=callbacks_1.next();!callbacks_1_1.done;callbacks_1_1=callbacks_1.next()){var callback=callbacks_1_1.value;try{callback(instance,identifier)}catch(_b){}}}catch(e_3_1){e_3={error:e_3_1}}finally{try{callbacks_1_1&&!callbacks_1_1.done&&(_a=callbacks_1.return)&&_a.call(callbacks_1)}finally{if(e_3)throw e_3.error}}},Provider.prototype.getOrInitializeService=function(_a){var identifier,instanceIdentifier=_a.instanceIdentifier,_b=_a.options,options=void 0===_b?{}:_b,instance=this.instances.get(instanceIdentifier);if(!instance&&this.component&&(instance=this.component.instanceFactory(this.container,{instanceIdentifier:(identifier=instanceIdentifier,"[DEFAULT]"===identifier?void 0:identifier),options:options}),this.instances.set(instanceIdentifier,instance),this.instancesOptions.set(instanceIdentifier,options),this.invokeOnInitCallbacks(instance,instanceIdentifier),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,instanceIdentifier,instance)}catch(_c){}return instance||null},Provider.prototype.normalizeInstanceIdentifier=function(identifier){return void 0===identifier&&(identifier="[DEFAULT]"),this.component?this.component.multipleInstances?identifier:"[DEFAULT]":identifier},Provider.prototype.shouldAutoInitialize=function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode},Provider}();var ComponentContainer=function(){function ComponentContainer(name){this.name=name,this.providers=new Map}return ComponentContainer.prototype.addComponent=function(component){var provider=this.getProvider(component.name);if(provider.isComponentSet())throw new Error("Component "+component.name+" has already been registered with "+this.name);provider.setComponent(component)},ComponentContainer.prototype.addOrOverwriteComponent=function(component){this.getProvider(component.name).isComponentSet()&&this.providers.delete(component.name),this.addComponent(component)},ComponentContainer.prototype.getProvider=function(name){if(this.providers.has(name))return this.providers.get(name);var provider=new Provider(name,this);return this.providers.set(name,provider),provider},ComponentContainer.prototype.getProviders=function(){return Array.from(this.providers.values())},ComponentContainer}()},1094:function(module,__webpack_exports__,__webpack_require__){"use strict";function __spreadArrays(){for(var s=0,i=0,il=arguments.length;i<il;i++)s+=arguments[i].length;var r=Array(s),k=0;for(i=0;i<il;i++)for(var a=arguments[i],j=0,jl=a.length;j<jl;j++,k++)r[k]=a[j];return r}var _a;__webpack_require__.d(__webpack_exports__,"a",(function(){return Logger})),__webpack_require__.d(__webpack_exports__,"b",(function(){return setLogLevel})),__webpack_require__.d(__webpack_exports__,"c",(function(){return setUserLogHandler}));var LogLevel,instances=[];!function(LogLevel){LogLevel[LogLevel.DEBUG=0]="DEBUG",LogLevel[LogLevel.VERBOSE=1]="VERBOSE",LogLevel[LogLevel.INFO=2]="INFO",LogLevel[LogLevel.WARN=3]="WARN",LogLevel[LogLevel.ERROR=4]="ERROR",LogLevel[LogLevel.SILENT=5]="SILENT"}(LogLevel||(LogLevel={}));var levelStringToEnum={debug:LogLevel.DEBUG,verbose:LogLevel.VERBOSE,info:LogLevel.INFO,warn:LogLevel.WARN,error:LogLevel.ERROR,silent:LogLevel.SILENT},defaultLogLevel=LogLevel.INFO,ConsoleMethod=((_a={})[LogLevel.DEBUG]="log",_a[LogLevel.VERBOSE]="log",_a[LogLevel.INFO]="info",_a[LogLevel.WARN]="warn",_a[LogLevel.ERROR]="error",_a),defaultLogHandler=function(instance,logType){for(var args=[],_i=2;_i<arguments.length;_i++)args[_i-2]=arguments[_i];if(!(logType<instance.logLevel)){var now=(new Date).toISOString(),method=ConsoleMethod[logType];if(!method)throw new Error("Attempted to log a message with an invalid logType (value: "+logType+")");console[method].apply(console,__spreadArrays(["["+now+"] "+instance.name+":"],args))}},Logger=function(){function Logger(name){this.name=name,this._logLevel=defaultLogLevel,this._logHandler=defaultLogHandler,this._userLogHandler=null,instances.push(this)}return Object.defineProperty(Logger.prototype,"logLevel",{get:function(){return this._logLevel},set:function(val){if(!(val in LogLevel))throw new TypeError('Invalid value "'+val+'" assigned to `logLevel`');this._logLevel=val},enumerable:!1,configurable:!0}),Logger.prototype.setLogLevel=function(val){this._logLevel="string"==typeof val?levelStringToEnum[val]:val},Object.defineProperty(Logger.prototype,"logHandler",{get:function(){return this._logHandler},set:function(val){if("function"!=typeof val)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=val},enumerable:!1,configurable:!0}),Object.defineProperty(Logger.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(val){this._userLogHandler=val},enumerable:!1,configurable:!0}),Logger.prototype.debug=function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];this._userLogHandler&&this._userLogHandler.apply(this,__spreadArrays([this,LogLevel.DEBUG],args)),this._logHandler.apply(this,__spreadArrays([this,LogLevel.DEBUG],args))},Logger.prototype.log=function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];this._userLogHandler&&this._userLogHandler.apply(this,__spreadArrays([this,LogLevel.VERBOSE],args)),this._logHandler.apply(this,__spreadArrays([this,LogLevel.VERBOSE],args))},Logger.prototype.info=function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];this._userLogHandler&&this._userLogHandler.apply(this,__spreadArrays([this,LogLevel.INFO],args)),this._logHandler.apply(this,__spreadArrays([this,LogLevel.INFO],args))},Logger.prototype.warn=function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];this._userLogHandler&&this._userLogHandler.apply(this,__spreadArrays([this,LogLevel.WARN],args)),this._logHandler.apply(this,__spreadArrays([this,LogLevel.WARN],args))},Logger.prototype.error=function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];this._userLogHandler&&this._userLogHandler.apply(this,__spreadArrays([this,LogLevel.ERROR],args)),this._logHandler.apply(this,__spreadArrays([this,LogLevel.ERROR],args))},Logger}();function setLogLevel(level){instances.forEach((function(inst){inst.setLogLevel(level)}))}function setUserLogHandler(logCallback,options){for(var _loop_1=function(instance){var customLogLevel=null;options&&options.level&&(customLogLevel=levelStringToEnum[options.level]),instance.userLogHandler=null===logCallback?null:function(instance,level){for(var args=[],_i=2;_i<arguments.length;_i++)args[_i-2]=arguments[_i];var message=args.map((function(arg){if(null==arg)return null;if("string"==typeof arg)return arg;if("number"==typeof arg||"boolean"==typeof arg)return arg.toString();if(arg instanceof Error)return arg.message;try{return JSON.stringify(arg)}catch(ignored){return null}})).filter((function(arg){return arg})).join(" ");level>=(null!=customLogLevel?customLogLevel:instance.logLevel)&&logCallback({level:LogLevel[level].toLowerCase(),message:message,args:args,type:instance.name})}},_i=0,instances_1=instances;_i<instances_1.length;_i++){_loop_1(instances_1[_i])}}}}]);