1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,61334,(e,t,n)=>{e.e,function(e){"use strict";function t(e){return new Promise(function(t,n){e.onsuccess=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function n(e,n,i){var r,o=new Promise(function(o,a){t(r=e[n].apply(e,i)).then(o,a)});return o.request=r,o}function i(e,t,n){n.forEach(function(n){Object.defineProperty(e.prototype,n,{get:function(){return this[t][n]},set:function(e){this[t][n]=e}})})}function r(e,t,i,r){r.forEach(function(r){r in i.prototype&&(e.prototype[r]=function(){return n(this[t],r,arguments)})})}function o(e,t,n,i){i.forEach(function(i){i in n.prototype&&(e.prototype[i]=function(){return this[t][i].apply(this[t],arguments)})})}function a(e,t,i,r){r.forEach(function(r){r in i.prototype&&(e.prototype[r]=function(){var e,i,o;return e=this[t],i=arguments,(o=n(e,r,i)).then(function(e){if(e)return new u(e,o.request)})})})}function s(e){this._index=e}function u(e,t){this._cursor=e,this._request=t}function c(e){this._store=e}function h(e){this._tx=e,this.complete=new Promise(function(t,n){e.oncomplete=function(){t()},e.onerror=function(){n(e.error)},e.onabort=function(){n(e.error)}})}function l(e,t,n){this._db=e,this.oldVersion=t,this.transaction=new h(n)}function f(e){this._db=e}i(s,"_index",["name","keyPath","multiEntry","unique"]),r(s,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),a(s,"_index",IDBIndex,["openCursor","o
1penKeyCursor"]),i(u,"_cursor",["direction","key","primaryKey","value"]),r(u,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach(function(e){e in IDBCursor.prototype&&(u.prototype[e]=function(){var n=this,i=arguments;return Promise.resolve().then(function(){return n._cursor[e].apply(n._cursor,i),t(n._request).then(function(e){if(e)return new u(e,n._request)})})})}),c.prototype.createIndex=function(){return new s(this._store.createIndex.apply(this._store,arguments))},c.prototype.index=function(){return new s(this._store.index.apply(this._store,arguments))},i(c,"_store",["name","keyPath","indexNames","autoIncrement"]),r(c,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),a(c,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),o(c,"_store",IDBObjectStore,["deleteIndex"]),h.prototype.objectStore=function(){return new c(this._tx.objectStore.apply(this._tx,arguments))},i(h,"_tx",["objectStoreNames","mode"]),o(h,"_tx",IDBTransaction,["abort"]),l.prototype.createObjectStore=function(){return new c(this._db.createObjectStore.apply(this._db,arguments))},i(l,"_db",["name","version","objectStoreNames"]),o(l,"_db",IDBDatabase,["deleteObjectStore","close"]),f.prototype.transaction=function(){return new h(this._db.transaction.apply(this._db,arguments))},i(f,"_db",["name","version","objectStoreNames"]),o(f,"_db",IDBDatabase,["close"]),["openCursor","o
1penKeyCursor"].forEach(function(e){[c,s].forEach(function(t){e in t.prototype&&(t.prototype[e.replace("open","iterate")]=function(){var t,n=(t=arguments,Array.prototype.slice.call(t)),i=n[n.length-1],r=this._store||this._index,o=r[e].apply(r,n.slice(0,-1));o.onsuccess=function(){i(o.result)}})})}),[s,c].forEach(function(e){e.prototype.getAll||(e.prototype.getAll=function(e,t){var n=this,i=[];return new Promise(function(r){n.iterateCursor(e,function(e){e?(i.push(e.value),void 0!==t&&i.length==t)?r(i):e.continue():r(i)})})})}),e.openDb=function(e,t,i){var r=n(indexedDB,"open",[e,t]),o=r.request;return o&&(o.onupgradeneeded=function(e){i&&i(new l(o.result,e.oldVersion,o.transaction))}),r.then(function(e){return new f(e)})},e.deleteDb=function(e){return n(indexedDB,"deleteDatabase",[e])},Object.defineProperty(e,"__esModule",{value:!0})}(n)},19564,e=>{"use strict";var t,n,i,r,o,a,s,u,c,h,l=e.i(91398),f=e.i(90192),d=e.i(52158),p=e.i(84998);let g=["/","/membership","/courses","/courses/[courseId]","/sessions","/sessions/[sessionId]"];var v=e.i(33924),m=e.i(85192),b=e.i(82209),y=e.i(29895),w=e.i(89280);function I(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var n in t)t.hasOwnProperty(n)&&"__proto__"!==n&&(e[n]=I(e[n],t[n]));return e}var _=function(){function e(){var e=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return e.prototype.wrapCallback=function(e){var t=this;return function(n,i){n?t.reject(n):t.resolve(i),"function"==typeof e&&(t.promise.catch(function(){}),1===e.length?e(n):e(n,i))}},e}(),T=function(e){function t(n,i,r){var o=e.call(this,i)||this;return o.code=n,o.customData=r,o.name="FirebaseError",Object.setPrototypeOf(o,t.prototype),Error.captureStackTrace&&Error.captureStackTrace(o,k.prototype.create),o}return(0,w.__extends)(t,e),t}(Error),k=function(){function e(e,t,n){this.service=e,this.serviceName=t,this.errors=n}return e.prototype.create=function(e){for(var t,n,i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];var o=i[0]||{},a=this.service+"/"+e,s=this.errors[e],u=s?(t=s,n=o,t.replace(S,function(e,t){var i=n[t];return null!=i?String(i):"<"+t+"?>"})):"Error",c=this.serviceName+": "+u+" ("+a+").";return new T(a,c,o)},e}(),S=/\{\$([^}]+)}/g;function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function A(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var e=1;e<this.blockSize;++e)this.pad_[e]=0;this.reset()}function N(e,t){var n=new O(e,t);return n.subscribe.bind(n)}A.prototype.reset=function(){this.chain_[0]=0x67452301,this.chain_[1]=0xefcdab89,this.chain_[2]=0x98badcfe,this.chain_[3]=0x10325476,this.chain_[4]=0xc3d2e1f0,this.inbuf_=0,this.total_=0},A.prototype.compress_=function(e,t){t||(t=0);var n,i,r=this.W_;if("string"==typeof e)for(var o=0;o<16;o++)r[o]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(var o=0;o<16;o++)r[o]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(var o=16;o<80;o++){var a=r[o-3]^r[o-8]^r[o-14]^r[o-16];r[o]=(a<<1|a>>>31)&0xffffffff}for(var s=this.chain_[0],u=this.chain_[1],c=this.chain_[2],h=this.chain_[3],l=this.chain_[4],o=0;o<80;o++){o<40?o<20?(n=h^u&(c^h),i=0x5a827999):(n=u^c^h,i=0x6ed9eba1):o<60?(n=u&c|h&(u|c),i=0x8f1bbcdc):(n=u^c^h,i=0xca62c1d6);var a=(s<<5|s>>>27)+n+l+i+r[o]|0;l=h,h=c,c=(u<<30|u>>>2)&0xffffffff,u=s,s=a}this.chain_[0]=this.chain_[0]+s|0,this.chain_[1]=this.chain_[1]+u|0,this.chain_[2]=this.chain_[2]+c|0,this.chain_[3]=this.chain_[3]+h|0,this.chain_[4]=this.chain_[4]+l|0},A.prototype.update=function(e,t){if(null!=e){void 0===t&&(t=e.length);for(var n=t-this.blockSize,i=0,r=this.buf_,o=this.inbuf_;i<t;){if(0===o)for(;i<=n;)this.compress_(e,i),i+=this.blockSize;if("string"==typeof e){for(;i<t;)if(r[o]=e.charCodeAt(i),++o,++i,o===this.blockSize){this.compress_(r),o=0;break}}else for(;i<t;)if(r[o]=e[i],++o,++i,o===this.blockSize){this.compress_(r),o=0;break}}this.inbuf_=o,this.total_+=t}},A.prototype.digest=function(){var e=[],t=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=255&t,t/=256;this.compress_(this.buf_);for(var i=0,n=0;n<5;n++)for(var r=24;r>=0;r-=8)e[i]=this.chain_[n]>>r&255,++i;return e};var O=function(){function e(e,t){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Prom
1ise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(function(){e(n)}).catch(function(e){n.error(e)})}return e.prototype.next=function(e){this.forEachObserver(function(t){t.next(e)})},e.prototype.error=function(e){this.forEachObserver(function(t){t.error(e)}),this.close(e)},e.prototype.complete=function(){this.forEachObserver(function(e){e.complete()}),this.close()},e.prototype.subscribe=function(e,t,n){var i,r=this;if(void 0===e&&void 0===t&&void 0===n)throw Error("Missing Observer.");void 0===(i=!function(e,t){if("object"!=typeof e||null===e)return!1;for(var n=0;n<t.length;n++){var i=t[n];if(i in e&&"function"==typeof e[i])return!0}return!1}(e,["next","error","complete"])?{next:e,error:t,complete:n}:e).next&&(i.next=C),void 0===i.error&&(i.error=C),void 0===i.complete&&(i.complete=C);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{r.finalError?i.error(r.finalError):i.complete()}catch(e){}}),this.observers.push(i),o},e.prototype.unsubscribeOne=function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},e.prototype.forEachObserver=function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)},e.prototype.sendOne=function(e,t){var n=this;this.task.then(function(){if(void 0!==n.observers&&void 0!==n.observers[e])try{t(n.observers[e])}catch(e){"undefined"!=typeof console&&console.error&&console.error(e)}})},e.prototype.close=function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(function(){t.observers=void 0,t.onNoObservers=void 0}))},e}();function C(){}var x=function(){function e(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}return e.prototype.setInstantiationMode=function(e){return this.instantiationMode=e,this},e.prototype.setMultipleInstances=function(e){return this.multipleInstances=e,this},e.prototype.setServiceProps=function(e){return this.serviceProps=e,this},e.prototype.setInstanceCreatedCallback=function(e){return this.onInstanceCreated=e,this},e}(),R="[DEFAULT]",D=function(){function e(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}return e.prototype.get=function(e){var t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){var n=new _;if(this.instancesDeferred.set(t,n),this.isInitialized(t)||this.shouldAutoInitialize())try{var i=this.getOrInitializeService({instanceIdentifier:t});i&&n.resolve(i)}catch(e){}}return this.instancesDeferred.get(t).promise},e.prototype.getImmediate=function(e){var t,n=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),i=null!=(t=null==e?void 0:e.optional)&&t;if(this.isInitialized(n)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:n})}catch(e){if(i)return null;throw e}if(i)return null;throw Error("Service "+this.name+" is not available")},e.prototype.getComponent=function(){return this.component},e.prototype.setComponent=function(e){var t,n;if(e.name!==this.name)throw Error("Mismatching Component "+e.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=e,this.shouldAutoInitialize()){if("EAGER"===e.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:R})}catch(e){}try{for(var i=(0,w.__values)(this.instancesDeferred.entries()),r=i.next();!r.done;r=i.next()){var o=(0,w.__read)(r.value,2),a=o[0],s=o[1],u=this.normalizeInstanceIdentifier(a);try{var c=this.getOrInitializeService({instanceIdentifier:u});s.resolve(c)}catch(e){}}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}},e.prototype.clearInstance=function(e){void 0===e&&(e=R),this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)},e.prototype.delete=function(){return(0,w.__awaiter)(this,void 0,void 0,function(){var e;return(0,w.__generator)(this,function(t){switch(t.label){case 0:return e=Array.from(this.instances.values()),[4,Promise.all((0,w.__spreadArray)((0,w.__spreadArray)([],(0,w.__read)(e.filter(function(e){return"INTERNAL"in e}).map(function(e){return e.INTERNAL.delete()}))),(0,w.__read)(e.filter(function(e){return"_delete"in e}).map(function(e){return e._delete()}))))];case 1:return t.sent(),[2]}})})},e.prototype.isComponentSet=function(){return null!=this.component},e.prototype.isInitialized=function(e){return void 0===e&&(e=R),this.instances.has(e)},e.prototype.getOptions=function(e){return void 0===e&&(e=R),this.instancesOptions.get(e)||{}},e.prototype.initialize=function(e){void 0===e&&(e={});var t,n,i=e.options,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(this.name+"("+r+") has already been initialized");if(!this.isComponentSet())throw Error("Component "+this.name+" has not been registered yet");var o=this.getOrInitializeService({instanceIdentifier:r,options:void 0===i?{}:i});try{for(var a=(0,w.__values)(this.instancesDeferred.entries()),s=a.next();!s.done;s=a.next()){var u=(0,w.__read)(s.value,2),c=u[0],h=u[1],l=this.normalizeInstanceIdentifier(c);r===l&&h.resolve(o)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o},e.prototype.onInit=function(e,t){var n,i=this.normalizeInstanceIdentifier(t),r=null!=(n=this.onInitCallbacks.get(i))?n:new Set;r.add(e),this.onInitCallbacks.set(i,r);var o=this.instances.get(i);return o&&e(o,i),function(){r.delete(e)}},e.prototype.invokeOnInitCallbacks=function(e,t){var n,i,r=this.onInitCallbacks.get(t);if(r)try{for(var o=(0,w.__values)(r),a=o.next();!a.done;a=o.next()){var s=a.value;try{s(e,t)}catch(e){}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},e.prototype.getOrInitializeService=function(e){var t,n=e.instanceIdentifier,i=e.options,r=void 0===i?{}:i,o=this.instances.get(n);if(!o&&this.component&&(o=this.component.instanceFactory(this.container,{instanceIdentifier:(t=n)===R?void 0:t,options:r}),this.instances.set(n,o),this.instancesOptions.set(n,r),this.invokeOnInitCallbacks(o,n),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,n,o)}catch(e){}return o||null},e.prototype.normalizeInstanceIdentifier=function(e){return(void 0===e&&(e=R),this.component)?this.component.multipleInstances?e:R:e},e.prototype.shouldAutoInitialize=function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode},e}(),P=function(){function e(e){this.name=e,this.providers=new Map}return e.prototype.addComponent=function(e){var t=this.getProvider(e.name);if(t.isComponentSet())throw Error("Component "+e.name+" has already been registered with "+this.name);t.setComponent(e)},e.prototype.addOrOverwriteComponent=function(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)},e.prototype.getProvider=function(e){if(this.providers.has(e))return this.providers.get(e);var t=new D(e,this);return this.providers.set(e,t),t},e.prototype.getProviders=function(){return Array.from(this.providers.values())},e}();function L(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var i=Array(e),r=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}var j=[];
1(t=o||(o={}))[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT";var M={debug:o.DEBUG,verbose:o.VERBOSE,info:o.INFO,warn:o.WARN,error:o.ERROR,silent:o.SILENT},U=o.INFO,F=((r={})[o.DEBUG]="log",r[o.VERBOSE]="log",r[o.INFO]="info",r[o.WARN]="warn",r[o.ERROR]="error",r),V=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(!(t<e.logLevel)){var r=new Date().toISOString(),o=F[t];if(o)console[o].apply(console,L(["["+r+"] "+e.name+":"],n));else throw Error("Attempted to log a message with an invalid logType (value: "+t+")")}},B=function(){function e(e){this.name=e,this._logLevel=U,this._logHandler=V,this._userLogHandler=null,j.push(this)}return Object.defineProperty(e.prototype,"logLevel",{get:function(){return this._logLevel},set:function(e){if(!(e in o))throw TypeError('Invalid value "'+e+'" assigned to `logLevel`');this._logLevel=e},enumerable:!1,configurable:!0}),e.prototype.setLogLevel=function(e){this._logLevel="string"==typeof e?M[e]:e},Object.defineProperty(e.prototype,"logHandler",{get:function(){return this._logHandler},set:function(e){if("function"!=typeof e)throw TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(e){this._userLogHandler=e},enumerable:!1,configurable:!0}),e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,L([this,o.DEBUG],e)),this._logHandler.apply(this,L([this,o.DEBUG],e))},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,L([this,o.VERBOSE],e)),this._logHandler.apply(this,L([this,o.VERBOSE],e))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,L([this,o.INFO],e)),this._logHandler.apply(this,L([this,o.INFO],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,L([this,o.WARN],e)),this._logHandler.apply(this,L([this,o.WARN],e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,L([this,o.ERROR],e)),this._logHandler.apply(this,L([this,o.ERROR],e))},e}();function K(e){j.forEach(function(t){t.setLogLevel(e)})}var H=new k("app","Firebase",((a={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",a["bad-app-name"]="Illegal App name: '{$appName}",a["duplicate-app"]="Firebase App named '{$appName}' already exists",a["app-deleted"]="Firebase App named '{$appName}' already deleted",a["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",a["invalid-log-argument"]="First argument to `onLog` must be null or a function.",a)),q="@firebase/app",W="[DEFAULT]",G=((s={})[q]="fire-core",s["@firebase/analytics"]="fire-analytics",s["@firebase/app-check"]="fire-app-check",s["@firebase/auth"]="fire-auth",s["@firebase/database"]="fire-rtdb",s["@firebase/functions"]="fire-fn",s["@firebase/installations"]="fire-iid",s["@firebase/messaging"]="fire-fcm",s["@firebase/performance"]="fire-perf",s["@firebase/remote-config"]="fire-rc",s["@firebase/storage"]="fire-gcs",s["@firebase/firestore"]="fire-fst",s["fire-js"]="fire-js",s["firebase-wrapper"]="fire-js-all",s),z=new B("@firebase/app"),Y=function(){function e(e,t,n){var i=this;this.firebase_=n,this.isDeleted_=!1,this.name_=t.name,this.automaticDataCollectionEnabled_=t.automaticDataCollectionEnabled||!1,this.options_=I(void 0,e),this.container=new P(t.name),this._addComponent(new x("app",function(){return i},"PUBLIC")),this.firebase_.INTERNAL.components.forEach(function(e){return i._addComponent(e)})}return Object.defineProperty(e.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(e){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=e}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),e.prototype.delete=function(){var e=this;return new Promise(function(t){e.checkDestroyed_(),t()}).then(function(){return e.firebase_.INTERNAL.removeApp(e.name_),Promise.all(e.container.getProviders().map(function(e){return e.delete()}))}).then(function(){e.isDeleted_=!0})},e.prototype._getService=function(e,t){void 0===t&&(t=W),this.checkDestroyed_();var n,i=this.container.getProvider(e);return i.isInitialized()||(null==(n=i.getComponent())?void 0:n.instantiationMode)!=="EXPLICIT"||i.initialize(),i.getImmediate({identifier:t})},e.prototype._removeServiceInstance=function(e,t){void 0===t&&(t=W),this.container.getProvider(e).clearInstance(t)},e.prototype._addComponent=function(e){try{this.container.addComponent(e)}catch(t){z.debug("Component "+e.name+" failed to register with FirebaseApp "+this.name,t)}},e.prototype._addOrOverwriteComponent=function(e){this.container.addOrOverwriteComponent(e)},e.prototype.toJSON=function(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}},e.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw H.create("app-deleted",{appName:this.name_})},e}();Y.prototype.name&&Y.prototype.options||Y.prototype.delete||console.log("dc");var X=function e(){var t=function(e){var t={},n=new Map,i={__esModule:!0,initializeApp:function(n,r){void 0===r&&(r={}),("object"!=typeof r||null===r)&&(r={name:r});var o=r;void 0===o.name&&(o.name=W);var a=o.name;if("string"!=typeof a||!a)throw H.create("bad-app-name",{appName:String(a)});if(E(t,a))throw H.create("duplicate-app",{appName:a});var s=new e(n,o,i);return t[a]=s,s},app:r,registerVersion:function(e,t,n){var i,r=null!=(i=G[e])?i:e;n&&(r+="-"+n);var o=r.match(/\s|\//),s=t.match(/\s|\//);if(o||s){var u=['Unable to register library "'+r+'" with version "'+t+'":'];o&&u.push('library name "'+r+'" contains illegal characters (whitespace or "/")'),o&&s&&u.push("and"),s&&u.push('version name "'+t+'" contains illegal characters (whitespace or "/")'),z.warn(u.join(" "));return}a(new x(r+"-version",function(){return{library:r,version:t}},"VERSION"))},setLogLevel:K,onLog:function(e,t){if(null!==e&&"function"!=typeof e)throw H.create("invalid-log-argument");for(var n=0;n<j.length;n++)!function(n){var i=null;t&&t.level&&(i=M[t.level]),null===e?n.userLogHandler=null:n.userLogHandler=function(t,n){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];var s=r.map(function(e){if(null==e)return null;if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(e){return null}}).filter(function(e){return e}).join(" ");n>=(null!=i?i:t.logLevel)&&e({level:o[n].toLowerCase(),message:s,args:r,type:t.name})}}(j[n])},apps:null,SDK_VERSION:"8.10.0",INTERNAL:{registerComponent:a,removeApp:function(e){delete t[e]},components:n,useAsService:function(e,t){return"serverAuth"===t?null:t}}};function r(e){if(!E(t,e=e||W))throw H.create("no-app",{appName:e});return t[e]}function a(o){var a=o.name;if(n.has(a))return z.debug("There were multiple attempts to register component "+a+"."),"PUBLIC"===o.type?i[a]:null;if(n.set(a,o),"PUBLIC"===o.type){var s=function(e){if(void 0===e&&(e=r()),"function"!=typeof e[a])throw H.create("invalid-app-argument",{appName:a});return e[a]()};void 0!==o.serviceProps&&I(s,o.serviceProps),i[a]=s,e.prototype[a]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this._getService.bind(this,a).apply(this,o.multipleInstances?e:[])}}for(var u=0,c=Object.keys(t);u<c.length;u++)t[c[u]]._addComponent(o);return"PUBLIC"===o.type?i[a]:null}return i.default=i,Object.defineProperty(i,"apps",{get:function(){return Object.keys(t).map(function(e){return t[e]})}}),r.App=e,i}(Y);return t.INTERNAL=(0,w.__assign)((0,w.__assign)({},t.INTERNAL),{createFirebaseNamespace:e,extendNamespace:function(e){I(t,e)},createSubscribe:N,ErrorFactory:k,deepExtend:I}),t}(),J=function(){function e(e){this.container=e}return e.prototype.getPlatformInfoString=function(){return this.container.getProviders().map(function(e){if((null==(t=e.getComponent())?void 0:t.type)!=="VERSION")return null;var t,n=e.getImmediate();return n.library+"/"+n.version}).filter(function(e){return e}).join(" ")},e}();if("object"==typeof self&&self.self===self&&void 0!==self.firebase){z.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");var $=self.firebase.SDK_VERSION;$&&$.indexOf("LITE")>=0&&z.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 Z=X.initializeApp;X.initializeApp=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return function(){try{return"[object process]"===Object.prototype.toString.call(e.g.process)}catch(e){return!1}}()&&z.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 '),Z.apply(void 0,t)},X.INTERNAL.registerComponent(new x("platform-logger",function(e){return new J
1(e)},"PRIVATE")),X.registerVersion(q,"0.6.30",void 0),X.registerVersion("fire-js","");var Q="8.10.0";X.registerVersion("firebase",Q,"app"),X.SDK_VERSION=Q,(function(){var t,n,i,r="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)},o=function(t){t=["object"==typeof window&&window,"object"==typeof self&&self,e.g,t];for(var n=0;n<t.length;++n){var i=t[n];if(i&&i.Math==Math)return i}return globalThis}(this);function a(e){var t,n="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return n?n.call(e):{next:(t=0,function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}})}}!function(e,t){if(t){var n=o;e=e.split(".");for(var i=0;i<e.length-1;i++){var a=e[i];a in n||(n[a]={}),n=n[a]}(t=t(i=n[e=e[e.length-1]]))!=i&&null!=t&&r(n,e,{configurable:!0,writable:!0,value:t})}}("Promise",function(e){function t(e){this.b=0,this.c=void 0,this.a=[];var t=this.f();try{e(t.resolve,t.reject)}catch(e){t.reject(e)}}function n(){this.a=null}function i(e){return e instanceof t?e:new t(function(t){t(e)})}if(e)return e;n.prototype.b=function(e){if(null==this.a){this.a=[];var t=this;this.c(function(){t.g()})}this.a.push(e)};var r=o.setTimeout;n.prototype.c=function(e){r(e,0)},n.prototype.g=function(){for(;this.a&&this.a.length;){var e=this.a;this.a=[];for(var t=0;t<e.length;++t){var n=e[t];e[t]=null;try{n()}catch(e){this.f(e)}}}this.a=null},n.prototype.f=function(e){this.c(function(){throw e})},t.prototype.f=function(){function e(e){return function(i){n||(n=!0,e.call(t,i))}}var t=this,n=!1;return{resolve:e(this.m),reject:e(this.g)}},t.prototype.m=function(e){if(e===this)this.g(TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.s(e);else{switch(typeof e){case"object":var n=null!=e;break;case"function":n=!0;break;default:n=!1}n?this.v(e):this.h(e)}},t.prototype.v=function(e){var t=void 0;try{t=e.then}catch(e){this.g(e);return}"function"==typeof t?this.u(t,e):this.h(e)},t.prototype.g=function(e){this.i(2,e)},t.prototype.h=function(e){this.i(1,e)},t.prototype.i=function(e,t){if(0!=this.b)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.b);this.b=e,this.c=t,this.l()},t.prototype.l=function(){if(null!=this.a){for(var e=0;e<this.a.length;++e)s.b(this.a[e]);this.a=null}};var s=new n;return t.prototype.s=function(e){var t=this.f();e.Ra(t.resolve,t.reject)},t.prototype.u=function(e,t){var n=this.f();try{e.call(t,n.resolve,n.reject)}catch(e){n.reject(e)}},t.prototype.then=function(e,n){function i(e,t){return"function"==typeof e?function(t){try{r(e(t))}catch(e){o(e)}}:t}var r,o,a=new t(function(e,t){r=e,o=t});return this.Ra(i(e,r),i(n,o)),a},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.Ra=function(e,t){function n(){switch(i.b){case 1:e(i.c);break;case 2:t(i.c);break;default:throw Error("Unexpected state: "+i.b)}}var i=this;null==this.a?s.b(n):this.a.push(n)},t.resolve=i,t.reject=function(e){return new t(function(t,n){n(e)})},t.race=function(e){return new t(function(t,n){for(var r=a(e),o=r.next();!o.done;o=r.next())i(o.value).Ra(t,n)})},t.all=function(e){var n=a(e),r=n.next();return r.done?i([]):new t(function(e,t){var o=[],a=0;do o.push(void 0),a++,i(r.value).Ra(function(t){return function(n){o[t]=n,0==--a&&e(o)}}(o.length-1),t),r=n.next();while(!r.done)})},t});var s=s||{},u=this||self,c=/^[\w+/_-]+[=]{0,2}$/,h=null;function l(e){return(e=e.querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&c.test(e)?e:""}function f(){}function d(e){var t=typeof e;return"object"!=t?t:e?Array.isArray(e)?"array":t:"null"}function p(e){var t=d(e);return"array"==t||"object"==t&&"number"==typeof e.length}function g(e){return"function"==d(e)}function v(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function m(e){return Object.prototype.hasOwnProperty.call(e,b)&&e[b]||(e[b]=++y)}var b="closure_uid_"+(1e9*Math.random()>>>0),y=0;function w(e,t,n){return e.call.apply(e.bind,arguments)}function I(e,t,n){if(!e)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,i),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function _(e,t,n){return(_=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?w:I).apply(null,arguments)}
1function T(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}var k=Date.now;function S(e,t){function n(){}n.prototype=t.prototype,e.bb=t.prototype,e.prototype=new n,e.prototype.constructor=e}function E(e){return e}function A(e,t,n){this.code=O+e,this.message=t||C[e]||"",this.a=n||null}function N(e){var t=e&&e.code;return t?new A(t.substring(O.length),e.message,e.serverResponse):null}S(A,Error),A.prototype.w=function(){var e={code:this.code,message:this.message};return this.a&&(e.serverResponse=this.a),e},A.prototype.toJSON=function(){return this.w()};var O="auth/",C={"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must al
1ways have a verified email.","email-already-in-use":"The email address is already in use by another account.","expired-action-code":"The action code has expired. ","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal error has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal error has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure to use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invali
1d-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted. Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled."},x={ld:{Ua:"https://staging-identitytoolkit.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",$a:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Xa:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"b"},sd:{Ua:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",$a:"https://securetoken.googleapis.com/v1/token",Xa:"https://identitytoolkit.googleapis.com/v2/",id:"p"},ud:{Ua:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",$a:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Xa:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"s"},vd:{Ua:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",$a:"https://test-securetoken.sandbox.googleapis.com/v1/token",Xa:"https://test-identitytoolkit.sandbox.googleapis.com/v2/",id:"t"}};function R(e){for(var t in x)if(x[t].id===e)return{firebaseEndpoint:(e=x[t]).Ua,secureTokenEndpoint:e.$a,identityPlatformEndpoint:e.Xa};return null}function D(e){if(!e)return!1;
1try{return!!e.$goog_Thenable}catch(e){return!1}}function P(e){if(Error.captureStackTrace)Error.captureStackTrace(this,P);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e))}function L(e,t){e=e.split("%s");for(var n="",i=e.length-1,r=0;r<i;r++)n+=e[r]+(r<t.length?t[r]:"%s");P.call(this,n+e[i])}function j(e,t){throw new L("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1))}function M(e,t){this.c=e,this.f=t,this.b=0,this.a=null}function U(e,t){e.f(t),100>e.b&&(e.b++,t.next=e.a,e.a=t)}function F(){this.b=this.a=null}oq=R("__EID__")?"__EID__":void 0,S(P,Error),P.prototype.name="CustomError",S(L,P),L.prototype.name="AssertionError",M.prototype.get=function(){if(0<this.b){this.b--;var e=this.a;this.a=e.next,e.next=null}else e=this.c();return e};var V=new M(function(){return new B},function(e){e.reset()});function B(){this.next=this.b=this.a=null}F.prototype.add=function(e,t){var n=V.get();n.set(e,t),this.b?this.b.next=n:this.a=n,this.b=n},B.prototype.set=function(e,t){this.a=e,this.b=t,this.next=null},B.prototype.reset=function(){this.next=this.b=this.a=null};var K=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.indexOf(t,0);for(var n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return -1},H=Array.prototype.forEach?function(e,t,n){Array.prototype.forEach.call(e,t,n)}:function(e,t,n){for(var i=e.length,r="string"==typeof e?e.split(""):e,o=0;o<i;o++)o in r&&t.call(n,r[o],o,e)},q=Array.prototype.filter?function(e,t){return Array.prototype.filter.call(e,t,void 0)}:function(e,t){for(var n=e.length,i=[],r=0,o="string"==typeof e?e.split(""):e,a=0;a<n;a++)if(a in o){var s=o[a];t.call(void 0,s,a,e)&&(i[r++]=s)}return i},W=Array.prototype.map?function(e,t){return Array.prototype.map.call(e,t,void 0)}:function(e,t){for(var n=e.length,i=Array(n),r="string"==typeof e?e.split(""):e,o=0;o<n;o++)o in r&&(i[o]=t.call(void 0,r[o],o,e));return i},G=Array.prototype.some?function(e,t){return Array.prototype.some.call(e,t,void 0)}:function(e,t){for(var n=e.length,i="string"==typeof e?e.split(""):e,r=0;r<n;r++)if(r in i&&t.call(void 0,i[r],r,e))return!0;return!1};function z(e,t){return 0<=K(e,t)}function Y(e,t){var n;return(n=0<=(t=K(e,t)))&&Array.prototype.splice.call(e,t,1),n}function J(e,t){for(var n=0,i=function(i,r){t.call(void 0,i,r,e)&&1==Array.prototype.splice.call(e,r,1).length&&n++},r="string"==typeof e?e.split(""):e,o=e.length-1;0<=o;--o)o in r&&i.call(void 0,r[o],o,e)}function $(e){return Array.prototype.concat.apply([],arguments)}function Z(e){var t=e.length;if(0<t){for(var n=Array(t),i=0;i<t;i++)n[i]=e[i];return n}return[]}var Q=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},ee=/&/g,et=/</g,en=/>/g,ei=/"/g,er=/'/g,eo=/\x00/g,ea=/[\x00&<>"']/;function es(e,t){return -1!=e.indexOf(t)}e:{var eu=u.navigator;if(eu){var ec=eu.userAgent;if(ec){oW=ec;break e}}oW=""}function eh(e){return es(oW,e)}function el(e,t){for(var n in e)t.call(void 0,e[n],n,e)}function ef(e){for(var t in e)return!1;return!0}function ed(e){var t,n={};for(t in e)n[t]=e[t];return n}var ep="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function eg(e,t){for(var n,i,r=1;r<arguments.length;r++){for(n in i=arguments[r])e[n]=i[n];for(var o=0;o<ep.length;o++)n=ep[o],Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}}function ev(e,t){e:{try{var n=e&&e.ownerDocument,i=n&&(n.defaultView||n.parentWindow);if((i=i||u).Element&&i.Location){var r=i;break e}}catch(e){}r=null}if(r&&void 0!==r[t]&&(!e||!(e instanceof r[t])&&(e instanceof r.Location||e instanceof r.Element))){if(v(e))try{var o=e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e)}catch(e){o="<object could not be stringified>"}else o=void 0===e?"undefined":null===e?"null":typeof e;j("Argument is not a %s (or a non-Element, non-Location mock); got: %s",t,o)}}function em(e,t){this.a=e===ew&&t||"",this.b=ey}function eb(e){return e instanceof em&&e.constructor===em&&e.b===ey?e.a:(j("expected object of type Const, got '"+e+"'"),"type_error:Const")}em.prototype.ta=!0,em.prototype.sa=function(){return this.a},em.prototype.toString=function(){return"Const{"+this.a+"}"};var ey={},ew={};function eI(){if(void 0===oG){var e=null,t=u.trustedTypes;if(t&&t.createPolicy){try{e=t.createPolicy("goog#html",{createHTML:E,createScript:E,createScriptURL:E})}catch(e){u.console&&u.console.error(e.message)}oG=e}else oG=e}return oG}function e_(e,t){this.a=t===eA?e:""}function eT(e){return e instanceof e_&&e.constructor===e_?e.a:(j("expected object of type TrustedResourceUrl, got '"+e+"' of type "+d(e)),"type_error:TrustedResourceUrl")}function ek(e,t){var n,i,r=eb(e);if(!eE.test(r))throw Error("Invalid TrustedResourceUrl format: "+r);return n=e=r.replace(eS,function(e,n){if(!Object.prototype.hasOwnProperty.call(t,n))throw Error('Found marker, "'+n+'", in format str
1ing, "'+r+'", but no valid label mapping found in args: '+JSON.stringify(t));return(e=t[n])instanceof em?eb(e):encodeURIComponent(String(e))}),new e_(n=(i=eI())?i.createScriptURL(n):n,eA)}e_.prototype.ta=!0,e_.prototype.sa=function(){return this.a.toString()},e_.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var eS=/%{(\w+)}/g,eE=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,eA={};function eN(e,t){this.a=t===eL?e:""}function eO(e){return e instanceof eN&&e.constructor===eN?e.a:(j("expected object of type SafeUrl, got '"+e+"' of type "+d(e)),"type_error:SafeUrl")}eN.prototype.ta=!0,eN.prototype.sa=function(){return this.a.toString()},eN.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var eC=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font\/\w+|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,ex=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,eR=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function eD(e){if(e instanceof eN)return e;if(e="object"==typeof e&&e.ta?e.sa():String(e),eR.test(e))e=new eN(e,eL);else{var t=(e=(e=String(e)).replace(/(%0A|%0D)/g,"")).match(ex);e=t&&eC.test(t[1])?new eN(e,eL):null}return e}function eP(e){return e instanceof eN?e:(e="object"==typeof e&&e.ta?e.sa():String(e),eR.test(e)||(e="about:invalid#zClosurez"),new eN(e,eL))}var eL={},ej=new eN("about:invalid#zClosurez",eL);function eM(e,t,n){this.a=n===eU?e:""}eM.prototype.ta=!0,eM.prototype.sa=function(){return this.a.toString()},eM.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var eU={};function eF(e,t,n,i){return e=e instanceof eN?e:eP(e),t=t||u,n=n instanceof em?eb(n):n||"",t.open(eO(e),n,i,void 0)}function eV(e,t){for(var n=e.split("%s"),i="",r=Array.prototype.slice.call(arguments,1);r.length&&1<n.length;)i+=n.shift()+r.shift();return i+n.join("%s")}function eB(e){return ea.test(e)&&(-1!=e.indexOf("&")&&(e=e.replace(ee,"&")),-1!=e.indexOf("<")&&(e=e.replace(et,"<")),-1!=e.indexOf(">")&&(e=e.replace(en,">")),-1!=e.indexOf('"')&&(e=e.replace(ei,""")),-1!=e.indexOf("'")&&(e=e.replace(er,"'")),-1!=e.indexOf("\0")&&(e=e.replace(eo,"�"))),e}function eK(e){return eK[" "](e),e}eK[" "]=f;var eH=eh("Opera"),eq=eh("Trident")||eh("MSIE"),eW=eh("Edge"),eG=eW||eq,ez=eh("Gecko")&&!(es(oW.toLowerCase(),"webkit")&&!eh("Edge"))&&!(eh("Trident")||eh("MSIE"))&&!eh("Edge"),eY=es(oW.toLowerCase(),"webkit")&&!eh("Edge");function eX(){var e=u.document;return e?e.documentMode:void 0}e:{var eJ,e$="",eZ=(eJ=oW,ez?/rv:([^\);]+)(\)|;)/.exec(eJ):eW?/Edge\/([\d\.]+)/.exec(eJ):eq?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(eJ):eY?/WebKit\/(\S+)/.exec(eJ):eH?/(?:Version)[ \/]?(\S+)/.exec(eJ):void 0);if(eZ&&(e$=eZ?eZ[1]:""),eq){var eQ=eX();if(null!=eQ&&eQ>parseFloat(e$)){oz=String(eQ);break e}}oz=e$}var e0={};function e1(e){var t;return t=function(){for(var t=0,n=Q(String(oz)).split("."),i=Q(String(e)).split("."),r=Math.max(n.length,i.length),o=0;0==t&&o<r;o++){var a,s,u,c,h,l,f=n[o]||"",d=i[o]||"";do{if(f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""],d=/(\d*)(\D*)(.*)/.exec(d)||["","","",""],0==f[0].length&&0==d[0].length)break;t=(a=0==f[1].length?0:parseInt(f[1],10),(a<(s=0==d[1].length?0:parseInt(d[1],10))?-1:+(a>s))||(u=0==f[2].length,u<(c=0==d[2].length)?-1:+(u>c))||(h=f[2],h<(l=d[2])?-1:+(h>l))),f=f[3],d=d[3]}while(0==t)}return 0<=t},Object.prototype.hasOwnProperty.call(e0,e)?e0[e]:e0[e]=t(e)}var e2=oY=u.document&&eq&&(eX()||parseInt(oz,10))||void 0;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(e){}var e4=!eq||9<=Number(e2);function e3(e){var t=document;return"string"==typeof e?t.getElementById(e):e}function e6(e,t){el(t,function(t,n){t&&"object"==typeof t&&t.ta&&(t=t.sa()),"style"==n?e.style.cssText=t:"class"==n?e.className=t:"for"==n?e.htmlFor=t:e5.hasOwnProperty(n)?e.setAttribute(e5[n],t):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?e.setAttribute(n,t):e[n]=t})}var e5={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",
1nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function e8(e,t){return t=String(t),"application/xhtml+xml"===e.contentType&&(t=t.toLowerCase()),e.createElement(t)}function e9(e){u.setTimeout(function(){throw e},0)}function e7(e,t){oJ||function(){if(u.Promise&&u.Promise.resolve){var e=u.Promise.resolve(void 0);oJ=function(){e.then(tn)}}else oJ=function(){!g(u.setImmediate)||u.Window&&u.Window.prototype&&!eh("Edge")&&u.Window.prototype.setImmediate==u.setImmediate?(oX||(oX=function(){var e=u.MessageChannel;if(void 0===e&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!eh("Presto")&&(e=function(){var e=e8(document,"IFRAME");e.style.display="none",document.documentElement.appendChild(e);var t=e.contentWindow;(e=t.document).open(),e.close();var n="callImmediate"+Math.random(),i="file:"==t.location.protocol?"*":t.location.protocol+"//"+t.location.host;e=_(function(e){("*"==i||e.origin==i)&&e.data==n&&this.port1.onmessage()},this),t.addEventListener("message",e,!1),this.port1={},this.port2={postMessage:function(){t.postMessage(n,i)}}}),void 0!==e&&!eh("Trident")&&!eh("MSIE")){var t=new e,n={},i=n;return t.port1.onmessage=function(){if(void 0!==n.next){var e=(n=n.next).Hb;n.Hb=null,e()}},function(e){i.next={Hb:e},i=i.next,t.port2.postMessage(0)}}return function(e){u.setTimeout(e,0)}}()),oX(tn)):u.setImmediate(tn)}}(),te||(oJ(),te=!0),tt.add(e,t)}var te=!1,tt=new F;function tn(){for(var e,t;e=null,tt.a&&(e=tt.a,tt.a=tt.a.next,tt.a||(tt.b=null),e.next=null),t=e;){try{t.a.call(t.b)}catch(e){e9(e)}U(V,t)}te=!1}function ti(e,t){if(this.a=tr,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,e!=f)try{var n=this;e.call(t,function(e){tv(n,to,e)},function(e){if(!(e instanceof tT))try{if(e instanceof Error)throw e;throw Error("Promise rejected.")}catch(e){}tv(n,ta,e)})}catch(e){tv(this,ta,e)}}var tr=0,to=2,ta=3;function ts(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}ts.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var tu=new M(function(){return new ts},function(e){e.reset()});function tc(e,t,n){var i=tu.get();return i.g=e,i.b=t,i.f=n,i}function th(e){if(e instanceof ti)return e;var t=new ti(f);return tv(t,to,e),t}function tl(e){return new ti(function(t,n){n(e)})}function tf(e,t,n){tm(e,t,n,null)||e7(T(t,e))}function td(e){return new ti(function(t){var n=e.length,i=[];if(n)for(var r=function(e,r,o){n--,i[e]=r?{Qb:!0,value:o}:{Qb:!1,reason:o},0==n&&t(i)},o=0;o<e.length;o++)tf(e[o],T(r,o,!0),T(r,o,!1));else t(i)})}function tp(e,t){e.b||e.a!=to&&e.a!=ta||tb(e),e.f?e.f.next=t:e.b=t,e.f=t}function tg(e,t,n,i){var r=tc(null,null,null);return r.a=new ti(function(e,o){r.g=t?function(n){try{var r=t.call(i,n);e(r)}catch(e){o(e)}}:e,r.b=n?function(t){try{var r=n.call(i,t);void 0===r&&t instanceof tT?o(t):e(r)}catch(e){o(e)}}:o}),r.a.c=e,tp(e,r),r.a}function tv(e,t,n){var i,r;e.a==tr&&(e===n&&(t=ta,n=TypeError("Promise cannot resolve to itself")),e.a=1,tm(n,e.$c,e.ad,e)||(e.i=n,e.a=t,e.c=null,tb(e),t!=ta||n instanceof tT||(i=e,r=n,i.g=!0,e7(function(){i.g&&t_.call(null,r)}))))}function tm(e,t,n,i){if(e instanceof ti)return tp(e,tc(t||f,n||null,i)),!0;if(D(e))return e.then(t,n,i),!0;if(v(e))try{var r=e.then;if(g(r))return function(e,t,n,i,r){function o(e){a||(a=!0,i.call(r,e))}var a=!1;try{t.call(e,function(e){a||(a=!0,n.call(r,e))},o)}catch(e){o(e)}}(e,r,t,n,i),!0}catch(e){return n.call(i,e),!0}return!1}function tb(e){e.h||(e.h=!0,e7(e.gc,e))}function ty(e){var t=null;return e.b&&(t=e.b,e.b=t.next,t.next=null),e.b||(e.f=null),t}function tw(e,t,n,i){if(n==ta&&t.b&&!t.c)for(;e&&e.g;e=e.c)e.g=!1;if(t.a)t.a.c=null,tI(t,n,i);else try{t.c?t.g.call(t.f):tI(t,n,i)}catch(e){t_.call(null,e)}U(tu,t)}function tI(e,t,n){t==to?e.g.call(e.f,n):e.b&&e.b.call(e.f,n)}ti.prototype.then=function(e,t,n){return tg(this,g(e)?e:null,g(t)?t:null,n)},ti.prototype.$goog_Thenable=!0,(i=ti.prototype).oa=function(e,t){return(e=tc(e,e,t)).c=!0,tp(this,e),this},i.o=function(e,t){return tg(this,null,e,t)},i.cancel=function(e){if(this.a==tr){var t=new tT(e);e7(function(){!function e(t,n){if(t.a==tr)if(t.c){var i=t.c;if(i.b){for(var r=0,o=null,a=null,s=i.b;s&&(s.c||(r++,s.a==t&&(o=s),!(o&&1<r)));s=s.next)o||(a=s);o&&(i.a==tr&&1==r?e(i,n):(a?((r=a).next==i.f&&(i.f=r),r.next=r.next.next):ty(i),tw(i,o,ta,n)))}t.c=null}else tv(t,ta,n)}(this,t)},this)}},i.$c=function(e){this.a=tr,tv(this,to,e)},i.ad=function(e){this.a=tr,tv(this,ta,e)},i.gc=function(){for(var e;e=ty(this);)tw(this,e,this.a,this.i);this.h=!1};var t_=e9;function tT(e){P.call(this,e)}function tk(){0!=tS&&(tE[m(this)]=this),this.ya=this.ya,this.pa=this.pa}S(tT,P),tT.prototype.name="cancel";var tS=0,tE={};
1function tA(e){if(!e.ya&&(e.ya=!0,e.Da(),0!=tS)){var t=m(e);0!=tS&&e.pa&&e.pa.length,delete tE[t]}}tk.prototype.ya=!1,tk.prototype.Da=function(){if(this.pa)for(;this.pa.length;)this.pa.shift()()};var tN=Object.freeze||function(e){return e},tO=!eq||9<=Number(e2),tC=eq&&!e1("9"),tx=function(){if(!u.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{u.addEventListener("test",f,t),u.removeEventListener("test",f,t)}catch(e){}return e}();function tR(e,t){this.type=e,this.b=this.target=t,this.defaultPrevented=!1}function tD(e,t){if(tR.call(this,e?e.type:""),this.relatedTarget=this.b=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.a=null,e){var n=this.type=e.type,i=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.b=t,t=e.relatedTarget){if(ez){e:{try{eK(t.nodeName);var r=!0;break e}catch(e){}r=!1}r||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,i?(this.clientX=void 0!==i.clientX?i.clientX:i.pageX,this.clientY=void 0!==i.clientY?i.clientY:i.pageY,this.screenX=i.screenX||0,this.screenY=i.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"==typeof e.pointerType?e.pointerType:tP[e.pointerType]||"",this.a=e,e.defaultPrevented&&this.preventDefault()}}tR.prototype.preventDefault=function(){this.defaultPrevented=!0},S(tD,tR);var tP=tN({2:"touch",3:"pen",4:"mouse"});tD.prototype.preventDefault=function(){tD.bb.preventDefault.call(this);var e=this.a;if(e.preventDefault)e.preventDefault();else if(e.returnValue=!1,tC)try{(e.ctrlKey||112<=e.keyCode&&123>=e.keyCode)&&(e.keyCode=-1)}catch(e){}},tD.prototype.g=function(){return this.a};var tL="closure_listenable_"+(1e6*Math.random()|0),tj=0;function tM(e,t,n,i,r){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!i,this.Wa=r,this.key=++tj,this.wa=this.Qa=!1}function tU(e){e.wa=!0,e.listener=null,e.proxy=null,e.src=null,e.Wa=null}function tF(e){this.src=e,this.a={},this.b=0}function tV(e,t){var n=t.type;n in e.a&&Y(e.a[n],t)&&(tU(t),0==e.a[n].length&&(delete e.a[n],e.b--))}function tB(e,t,n,i){for(var r=0;r<e.length;++r){var o=e[r];if(!o.wa&&o.listener==t&&!!n==o.capture&&o.Wa==i)return r}return -1}tF.prototype.add=function(e,t,n,i,r){var o=e.toString();(e=this.a[o])||(e=this.a[o]=[],this.b++);var a=tB(e,t,i,r);return -1<a?(t=e[a],n||(t.Qa=!1)):((t=new tM(t,this.src,o,!!i,r)).Qa=n,e.push(t)),t};var tK="closure_lm_"+(1e6*Math.random()|0),tH={},tq=0;function tW(e,t,n,i,r){if(i&&i.once)tz(e,t,n,i,r);else if(Array.isArray(t))for(var o=0;o<t.length;o++)tW(e,t[o],n,i,r);else n=t2(n),e&&e[tL]?t3(e,t,n,v(i)?!!i.capture:!!i,r):tG(e,t,n,!1,i,r)}function tG(e,t,n,i,r,o){if(!t)throw Error("Invalid event type");var a,s=v(r)?!!r.capture:!!r,u=t0(e);if(u||(e[tK]=u=new tF(e)),!(n=u.add(t,n,i,s,o)).proxy){if(i=a=tO?function(e){return tQ.call(a.src,a.listener,e)}:function(e){if(!(e=tQ.call(a.src,a.listener,e)))return e},n.proxy=i,i.src=e,i.listener=n,e.addEventListener)tx||(r=s),void 0===r&&(r=!1),e.addEventListener(t.toString(),i,r);else if(e.attachEvent)e.attachEvent(tJ(t.toString()),i);else if(e.addListener&&e.removeListener)e.addListener(i);else throw Error("addEventListener and attachEvent are unavailable.");tq++}}function tz(e,t,n,i,r){if(Array.isArray(t))for(var o=0;o<t.length;o++)tz(e,t[o],n,i,r);else n=t2(n),e&&e[tL]?t6(e,t,n,v(i)?!!i.capture:!!i,r):tG(e,t,n,!0,i,r)}function tY(e,t,n,i,r){if(Array.isArray(t))for(var o=0;o<t.length;o++)tY(e,t[o],n,i,r);else(i=v(i)?!!i.capture:!!i,n=t2(n),e&&e[tL])?(e=e.v,(t=String(t).toString())in e.a&&-1<(n=tB(o=e.a[t],n,i,r))&&(tU(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete e.a[t],e.b--))):e&&(e=t0(e))&&(t=e.a[t.toString()],e=-1,t&&(e=tB(t,n,i,r)),(n=-1<e?t[e]:null)&&tX(n))}function tX(e){if("number"!=typeof e&&e&&!e.wa){var t=e.src;if(t&&t[tL])tV(t.v,e);else{var n=e.type,i=e.proxy;t.removeEventListener?t.removeEventListener(n,i,e.capture):t.detachEvent?t.detachEvent(tJ(n),i):t.addListener&&t.removeListener&&t.removeListener(i),tq--,(n=t0(t))?(tV(n,e),0==n.b&&(n.src=null,t[tK]=null)):tU(e)}}}function tJ(e){return e in tH?tH[e]:tH[e]="on"+e}function t$(e,t,n,i){var r=!0;if((e=t0(e))&&(t=e.a[t.toString()]))for(t=t.concat(),e=0;e<t.length;e++){var o=t[e];o&&o.capture==n&&!o.wa&&(o=tZ(o,i),r=r&&!1!==o)}return r}function tZ(e,t){var n=e.listener,i=e.Wa||e.src;return e.Qa&&tX(e),n.call(i,t)}function tQ(e,t){if(e.wa)return!0;
1if(!tO){if(!t)e:{t=["window","event"];for(var n=u,i=0;i<t.length;i++)if(null==(n=n[t[i]])){t=null;break e}t=n}if(t=new tD(i=t,this),n=!0,!(0>i.keyCode||void 0!=i.returnValue)){e:{var r=!1;if(0==i.keyCode)try{i.keyCode=-1;break e}catch(e){r=!0}(r||void 0==i.returnValue)&&(i.returnValue=!0)}for(i=[],r=t.b;r;r=r.parentNode)i.push(r);for(e=e.type,r=i.length-1;0<=r;r--){t.b=i[r];var o=t$(i[r],e,!0,t);n=n&&o}for(r=0;r<i.length;r++)t.b=i[r],o=t$(i[r],e,!1,t),n=n&&o}return n}return tZ(e,new tD(t,this))}function t0(e){return(e=e[tK])instanceof tF?e:null}var t1="__closure_events_fn_"+(1e9*Math.random()>>>0);function t2(e){return g(e)?e:(e[t1]||(e[t1]=function(t){return e.handleEvent(t)}),e[t1])}function t4(){tk.call(this),this.v=new tF(this),this.bc=this,this.hb=null}function t3(e,t,n,i,r){e.v.add(String(t),n,!1,i,r)}function t6(e,t,n,i,r){e.v.add(String(t),n,!0,i,r)}function t5(e,t,n,i){if(!(t=e.v.a[String(t)]))return!0;t=t.concat();for(var r=!0,o=0;o<t.length;++o){var a=t[o];if(a&&!a.wa&&a.capture==n){var s=a.listener,u=a.Wa||a.src;a.Qa&&tV(e.v,a),r=!1!==s.call(u,i)&&r}}return r&&!i.defaultPrevented}function t8(e,t,n){if(g(e))n&&(e=_(e,n));else if(e&&"function"==typeof e.handleEvent)e=_(e.handleEvent,e);else throw Error("Invalid listener argument");return 0x7fffffff<Number(t)?-1:u.setTimeout(e,t||0)}function t9(e){var t=null;return new ti(function(n,i){-1==(t=t8(function(){n(void 0)},e))&&i(Error("Failed to schedule timer."))}).o(function(e){throw u.clearTimeout(t),e})}function t7(e){if(e.X&&"function"==typeof e.X)return e.X();if("string"==typeof e)return e.split("");if(p(e)){for(var t=[],n=e.length,i=0;i<n;i++)t.push(e[i]);return t}for(i in t=[],n=0,e)t[n++]=e[i];return t}function ne(e){if(e.Y&&"function"==typeof e.Y)return e.Y();if(!e.X||"function"!=typeof e.X){if(p(e)||"string"==typeof e){var t=[];e=e.length;for(var n=0;n<e;n++)t.push(n);return t}for(var i in t=[],n=0,e)t[n++]=i;return t}}function nt(e,t){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var i=0;i<n;i+=2)this.set(arguments[i],arguments[i+1])}else if(e)if(e instanceof nt)for(n=e.Y(),i=0;i<n.length;i++)this.set(n[i],e.get(n[i]));else for(i in e)this.set(i,e[i])}function nn(e){if(e.c!=e.a.length){for(var t=0,n=0;t<e.a.length;){var i=e.a[t];ni(e.b,i)&&(e.a[n++]=i),t++}e.a.length=n}if(e.c!=e.a.length){var r={};for(n=t=0;t<e.a.length;)ni(r,i=e.a[t])||(e.a[n++]=i,r[i]=1),t++;e.a.length=n}}function ni(e,t){return Object.prototype.hasOwnProperty.call(e,t)}S(t4,tk),t4.prototype[tL]=!0,t4.prototype.addEventListener=function(e,t,n,i){tW(this,e,t,n,i)},t4.prototype.removeEventListener=function(e,t,n,i){tY(this,e,t,n,i)},t4.prototype.dispatchEvent=function(e){var t,n=this.hb;if(n)for(t=[];n;n=n.hb)t.push(n);n=this.bc;var i=e.type||e;if("string"==typeof e)e=new tR(e,n);else if(e instanceof tR)e.target=e.target||n;else{var r=e;eg(e=new tR(i,n),r)}if(r=!0,t)for(var o=t.length-1;0<=o;o--){var a=e.b=t[o];r=t5(a,i,!0,e)&&r}if(r=t5(a=e.b=n,i,!0,e)&&r,r=t5(a,i,!1,e)&&r,t)for(o=0;o<t.length;o++)r=t5(a=e.b=t[o],i,!1,e)&&r;return r},t4.prototype.Da=function(){if(t4.bb.Da.call(this),this.v){var e,t=this.v;for(e in t.a){for(var n=t.a[e],i=0;i<n.length;i++)tU(n[i]);delete t.a[e],t.b--}}this.hb=null},(i=nt.prototype).X=function(){nn(this);for(var e=[],t=0;t<this.a.length;t++)e.push(this.b[this.a[t]]);return e},i.Y=function(){return nn(this),this.a.concat()},i.clear=function(){this.b={},this.c=this.a.length=0},i.get=function(e,t){return ni(this.b,e)?this.b[e]:t},i.set=function(e,t){ni(this.b,e)||(this.c++,this.a.push(e)),this.b[e]=t},i.forEach=function(e,t){for(var n=this.Y(),i=0;i<n.length;i++){var r=n[i],o=this.get(r);e.call(t,o,r,this)}};var nr=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function no(e,t){var n;this.a=this.l=this.c="",this.g=null,this.h=this.f="",this.i=!1,e instanceof no?(this.i=void 0!==t?t:e.i,na(this,e.c),this.l=e.l,this.a=e.a,ns(this,e.g),this.f=e.f,nu(this,nA(e.b)),this.h=e.h):e&&(n=String(e).match(nr))?(this.i=!!t,na(this,n[1]||"",!0),this.l=nd(n[2]||""),this.a=nd(n[3]||"",!0),ns(this,n[4]),this.f=nd(n[5]||"",!0),nu(this,n[6]||"",!0),this.h=nd(n[7]||"")):(this.i=!!t,this.b=new nI(null,this.i))}function na(e,t,n){e.c=n?nd(t,!0):t,e.c&&(e.c=e.c.replace(/:$/,""))}function ns(e,t){if(t){if(isNaN(t=Number(t))||0>t)throw Error("Bad port number "+t);e.g=t}else e.g=null}function nu(e,t,n){var i,r;t instanceof nI?(e.b=t,i=e.b,(r=e.i)&&!i.f&&(n_(i),i.c=null,i.a.forEach(function(e,t){var n=t.toLowerCase();t!=n&&(nk(this,t),nE(this,n,e))},i)),i.f=r):(n||(t=np(t,ny)),e.b=new nI(t,e.i))}function nc(e,t,n){e.b.set(t,n)}function nh(e,t){return e.b.get(t)}function nl(e){return e instanceof no?new no(e):new no(e,void 0)}function nf(e,t,n,i){var r=new no(null,void 0);return e&&na(r,e),t&&(r.a=t),n&&ns(r,n),i&&(r.f=i),r}
1function nd(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function np(e,t,n){return"string"==typeof e?(e=encodeURI(e).replace(t,ng),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function ng(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}no.prototype.toString=function(){var e=[],t=this.c;t&&e.push(np(t,nv,!0),":");var n=this.a;return(n||"file"==t)&&(e.push("//"),(t=this.l)&&e.push(np(t,nv,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.g)&&e.push(":",String(n))),(n=this.f)&&(this.a&&"/"!=n.charAt(0)&&e.push("/"),e.push(np(n,"/"==n.charAt(0)?nb:nm,!0))),(n=this.b.toString())&&e.push("?",n),(n=this.h)&&e.push("#",np(n,nw)),e.join("")},no.prototype.resolve=function(e){var t=new no(this),n=!!e.c;n?na(t,e.c):n=!!e.l,n?t.l=e.l:n=!!e.a,n?t.a=e.a:n=null!=e.g;var i=e.f;if(n)ns(t,e.g);else if(n=!!e.f){if("/"!=i.charAt(0))if(this.a&&!this.f)i="/"+i;else{var r=t.f.lastIndexOf("/");-1!=r&&(i=t.f.substr(0,r+1)+i)}if(".."==(r=i)||"."==r)i="";else if(es(r,"./")||es(r,"/.")){i=0==r.lastIndexOf("/",0),r=r.split("/");for(var o=[],a=0;a<r.length;){var s=r[a++];"."==s?i&&a==r.length&&o.push(""):".."==s?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),i&&a==r.length&&o.push("")):(o.push(s),i=!0)}i=o.join("/")}else i=r}return n?t.f=i:n=""!==e.b.toString(),n?nu(t,nA(e.b)):n=!!e.h,n&&(t.h=e.h),t};var nv=/[#\/\?@]/g,nm=/[#\?:]/g,nb=/[#\?]/g,ny=/[#\?@]/g,nw=/#/g;function nI(e,t){this.b=this.a=null,this.c=e||null,this.f=!!t}function n_(e){e.a||(e.a=new nt,e.b=0,e.c&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var i=e[n].indexOf("="),r=null;if(0<=i){var o=e[n].substring(0,i);r=e[n].substring(i+1)}else o=e[n];t(o,r?decodeURIComponent(r.replace(/\+/g," ")):"")}}}(e.c,function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)}))}function nT(e){var t=ne(e);if(void 0===t)throw Error("Keys are undefined");var n=new nI(null,void 0);e=t7(e);for(var i=0;i<t.length;i++){var r=t[i],o=e[i];Array.isArray(o)?nE(n,r,o):n.add(r,o)}return n}function nk(e,t){n_(e),t=nN(e,t),ni(e.a.b,t)&&(e.c=null,e.b-=e.a.get(t).length,ni((e=e.a).b,t)&&(delete e.b[t],e.c--,e.a.length>2*e.c&&nn(e)))}function nS(e,t){return n_(e),t=nN(e,t),ni(e.a.b,t)}function nE(e,t,n){nk(e,t),0<n.length&&(e.c=null,e.a.set(nN(e,t),Z(n)),e.b+=n.length)}function nA(e){var t=new nI;return t.c=e.c,e.a&&(t.a=new nt(e.a),t.b=e.b),t}function nN(e,t){return t=String(t),e.f&&(t=t.toLowerCase()),t}function nO(e){var t=[];return function e(t,n,i){if(null==n)i.push("null");else{if("object"==typeof n){if(Array.isArray(n)){var r=n;n=r.length,i.push("[");for(var o="",a=0;a<n;a++)i.push(o),e(t,r[a],i),o=",";i.push("]");return}if(n instanceof String||n instanceof Number||n instanceof Boolean)n=n.valueOf();else{for(r in i.push("{"),o="",n)Object.prototype.hasOwnProperty.call(n,r)&&"function"!=typeof(a=n[r])&&(i.push(o),nD(r,i),i.push(":"),e(t,a,i),o=",");i.push("}");return}}switch(typeof n){case"string":nD(n,i);break;case"number":i.push(isFinite(n)&&!isNaN(n)?String(n):"null");break;case"boolean":i.push(String(n));break;case"function":i.push("null");break;default:throw Error("Unknown type: "+typeof n)}}}(new nC,e,t),t.join("")}function nC(){}(i=nI.prototype).add=function(e,t){n_(this),this.c=null,e=nN(this,e);var n=this.a.get(e);return n||this.a.set(e,n=[]),n.push(t),this.b+=1,this},i.clear=function(){this.a=this.c=null,this.b=0}
1,i.forEach=function(e,t){n_(this),this.a.forEach(function(n,i){H(n,function(n){e.call(t,n,i,this)},this)},this)},i.Y=function(){n_(this);for(var e=this.a.X(),t=this.a.Y(),n=[],i=0;i<t.length;i++)for(var r=e[i],o=0;o<r.length;o++)n.push(t[i]);return n},i.X=function(e){n_(this);var t=[];if("string"==typeof e)nS(this,e)&&(t=$(t,this.a.get(nN(this,e))));else{e=this.a.X();for(var n=0;n<e.length;n++)t=$(t,e[n])}return t},i.set=function(e,t){return n_(this),this.c=null,nS(this,e=nN(this,e))&&(this.b-=this.a.get(e).length),this.a.set(e,[t]),this.b+=1,this},i.get=function(e,t){return e&&0<(e=this.X(e)).length?String(e[0]):t},i.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var e=[],t=this.a.Y(),n=0;n<t.length;n++){var i=t[n],r=encodeURIComponent(String(i));i=this.X(i);for(var o=0;o<i.length;o++){var a=r;""!==i[o]&&(a+="="+encodeURIComponent(String(i[o]))),e.push(a)}}return this.c=e.join("&")};var nx={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\u000b"},nR=/\uffff/.test("ï¿¿")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function nD(e,t){t.push('"',e.replace(nR,function(e){var t=nx[e];return t||(t="\\u"+(65536|e.charCodeAt(0)).toString(16).substr(1),nx[e]=t),t}),'"')}function nP(){var e=nQ();return eq&&!!e2&&11==e2||/Edge\/\d+/.test(e)}function nL(){return u.window&&u.window.location.href||self&&self.location&&self.location.href||""}function nj(e,t){t=t||u.window;var n="about:blank";e&&(n=eO(eD(e)||ej)),t.location.href=n}function nM(e){return!!((e=(e||nQ()).toLowerCase()).match(/android/)||e.match(/webos/)||e.match(/iphone|ipad|ipod/)||e.match(/blackberry/)||e.match(/windows phone/)||e.match(/iemobile/))}function nU(e){e=e||u.window;try{e.close()}catch(e){}}function nF(e,t,n){var i,r=Math.floor(1e9*Math.random()).toString();t=t||500,n=n||600;var o=(window.screen.availHeight-n)/2,a=(window.screen.availWidth-t)/2;for(s in t={width:t,height:n,top:0<o?o:0,left:0<a?a:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},n=nQ().toLowerCase(),r&&(t.target=r,es(n,"crios/")&&(t.target="_blank")),nJ(nQ())==nY&&(e=e||"http://localhost",t.scrollbars=!0),n=e||"",(e=t)||(e={}),r=window,t=n instanceof eN?n:eD(void 0!==n.href?n.href:String(n))||ej,n=e.target||n.target,o=[],e)switch(s){case"width":case"height":case"top":case"left":o.push(s+"="+e[s]);break;case"target":case"noopener":case"noreferrer":break;default:o.push(s+"="+ +!!e[s])}var s=o.join(",");if((eh("iPhone")&&!eh("iPod")&&!eh("iPad")||eh("iPad")||eh("iPod"))&&r.navigator&&r.navigator.standalone&&n&&"_self"!=n?(ev(s=e8(document,"A"),"HTMLAnchorElement"),t=t instanceof eN?t:eP(t),s.href=eO(t),s.setAttribute("target",n),e.noreferrer&&s.setAttribute("rel","noreferrer"),(e=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,r,1),s.dispatchEvent(e),s={}):e.noreferrer?(s=eF("",r,n,s),e=eO(t),s&&(eG&&es(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),s.opener=null,e='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+eB(e)+'">',e=new eM(e=(r=eI())?r.createHTML(e):e,null,eU),r=s.document)&&(r.write((i=e)instanceof eM&&i.constructor===eM?i.a:(j("expected object of type SafeHtml, got '"+i+"' of type "+d(i)),"type_error:SafeHtml")),r.close())):(s=eF(t,r,n,s))&&e.noopener&&(s.opener=null),s)try{s.focus()}catch(e){}return s}var nV=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,nB=/^[^@]+@[^@]+$/;function nK(){var e=null;return new ti(function(t){"complete"==u.document.readyState?t():tz(window,"load",e=function(){t()})}).o(function(t){throw tY(window,"load",e),t})}function nH(e){return e=e||nQ(),!("file:"!==n3()&&"ionic:"!==n3()||!e.toLowerCase().match(/iphone|ipad|ipod|android/))}function nq(){var e=u.window;try{return!(!e||e==e.top)}catch(e){return!1}}function nW(){return void 0!==u.WorkerGlobalScope&&"function"==typeof u.importScripts}function nG(){return X.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":X.INTERNAL.hasOwnProperty("node")?"Node":nW()?"Worker":"Browser"}function nz(){var e=nG();return"ReactNative"===e||"Node"===e}var nY="Firefox",nX="Chrome";function nJ(e){var t=e.toLowerCase();return es(t,"opera/")||es(t,"opr/")||es(t,"opios/")?"Opera":es(t,"iemobile")?"IEMobile":es(t,"msie")||es(t,"trident/")?"IE":es(t,"edge/")?"Edge":es(t,"firefox/")?nY:es(t,"silk/")?"Silk":es(t,"blackberry")?"Blackberry":es(t,"webos")?"Webos":!es(t,"safari/")||es(t,"chrome/")||es(t,"crios/")||es(t,"android")?!es(t,"chrome/")&&!es(t,"crios/")||es(t,"edge/")?es(t,"android")?"Android":(e=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==e.length?e[1]:"Other":nX:"Safari"}var n$={md:"FirebaseCore-web",od:"FirebaseUI-web"};
1function nZ(e,t){t=t||[];var n,i=[],r={};for(n in n$)r[n$[n]]=!0;for(n=0;n<t.length;n++)void 0!==r[t[n]]&&(delete r[t[n]],i.push(t[n]));return i.sort(),(t=i).length||(t=["FirebaseCore-web"]),"Browser"===(i=nG())?i=nJ(r=nQ()):"Worker"===i&&(i=nJ(r=nQ())+"-"+i),i+"/JsCore/"+e+"/"+t.join(",")}function nQ(){return u.navigator&&u.navigator.userAgent||""}function n0(e,t){e=e.split("."),t=t||u;for(var n=0;n<e.length&&"object"==typeof t&&null!=t;n++)t=t[e[n]];return n!=e.length&&(t=void 0),t}function n1(){try{var e=u.localStorage,t=n7();if(e)return e.setItem(t,"1"),e.removeItem(t),!nP()||!!u.indexedDB}catch(e){return nW()&&!!u.indexedDB}return!1}function n2(){return(n4()||"chrome-extension:"===n3()||nH())&&!nz()&&n1()&&!nW()}function n4(){return"http:"===n3()||"https:"===n3()}function n3(){return u.location&&u.location.protocol||null}function n6(e){return!nM(e=e||nQ())&&nJ(e)!=nY}function n5(e){return void 0===e?null:nO(e)}function n8(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&null!==e[t]&&void 0!==e[t]&&(n[t]=e[t]);return n}function n9(e){if(null!==e)return JSON.parse(e)}function n7(e){return e||Math.floor(1e9*Math.random()).toString()}function ie(e){return!("Safari"==nJ(e=e||nQ())||e.toLowerCase().match(/iphone|ipad|ipod/))}function it(){var e=u.___jsl;if(e&&e.H){for(var t in e.H)if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=e.H[t].L.concat(),e.CP)for(var n=0;n<e.CP.length;n++)e.CP[n]=null}}function ii(e,t){if(e>t)throw Error("Short delay should be less than long delay!");this.a=e,this.c=t,e=nQ(),t=nG(),this.b=nM(e)||"ReactNative"===t}function ir(){var e=u.document;return!e||void 0===e.visibilityState||"visible"==e.visibilityState}function io(e){try{var t=new Date(parseInt(e,10));if(!isNaN(t.getTime())&&!/[^0-9]/.test(e))return t.toUTCString()}catch(e){}return null}function ia(){return!(!n0("fireauth.oauthhelper",u)&&!n0("fireauth.iframe",u))}ii.prototype.get=function(){var e=u.navigator;return(e&&"boolean"==typeof e.onLine&&(n4()||"chrome-extension:"===n3()||void 0!==e.connection)?e.onLine:1)?this.b?this.c:this.a:Math.min(5e3,this.a)};var is={};function iu(e){is[e]||(is[e]=!0,"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(e))}try{var ic={};Object.defineProperty(ic,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(ic,"abcd",{configurable:!0,enumerable:!0,value:2}),o$=2==ic.abcd}catch(e){o$=!1}function ih(e,t,n){o$?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n}):e[t]=n}function il(e,t){if(t)for(var n in t)t.hasOwnProperty(n)&&ih(e,n,t[n])}function id(e){var t={};return il(t,e),t}function ip(e){var t=e;if("object"==typeof e&&null!=e)for(var n in t="length"in e?[]:{},e)ih(t,n,ip(e[n]));return t}function ig(e){var t=e&&(e[iw]?"phone":null);if(t&&e&&e[iy]){ih(this,"uid",e[iy]),ih(this,"displayName",e[im]||null);var n=null;e[ib]&&(n=new Date(e[ib]).toUTCString()),ih(this,"enrollmentTime",n),ih(this,"factorId",t)}else throw new A("internal-error","Internal assert: invalid MultiFactorInfo object")}function iv(e){try{var t=new iI(e)}catch(e){t=null}return t}ig.prototype.w=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var im="displayName",ib="enrolledAt",iy="mfaEnrollmentId",iw="phoneInfo";function iI(e){ig.call(this,e),ih(this,"phoneNumber",e[iw])}function i_(e){var t={},n=e[iE],i=e[iN],r=e[iO];if(e=iv(e[iA]),!r||r!=ik&&r!=iS&&!n||r==iS&&!i||r==iT&&!e)throw Error("Invalid checkActionCode response!");r==iS?(t[ix]=n||null,t[iD]=n||null,t[iC]=i):(t[ix]=i||null,t[iD]=i||null,t[iC]=n||null),t[iR]=e||null,ih(this,iL,r),ih(this,iP,ip(t))}S(iI,ig),iI.prototype.w=function(){var e=iI.bb.w.call(this);return e.phoneNumber=this.phoneNumber,e};var iT="REVERT_SECOND_FACTOR_ADDITION",ik="EMAIL_SIGNIN",iS="VERIFY_AND_CHANGE_EMAIL",iE="email",iA="mfaInfo",iN="newEmail",iO="requestType",iC="email",ix="fromEmail",iR="multiFactorInfo",iD="previousEmail",iP="data",iL="operation";function ij(e){var t=nh(e=nl(e),iM)||null,n=nh(e,iU)||null,i=nh(e,iB)||null;if(i=i&&iH[i]||null,!t||!n||!i)throw new A("argument-error",iM+", "+iU+"and "+iB+" are required in a valid action code URL.");il(this,{apiKey:t,operation:i,code:n,continueUrl:nh(e,iF)||null,languageCode:nh(e,iV)||null,tenantId:nh(e,iK)||null})}var iM="apiKey",iU="oobCode",iF="continueUrl",iV="languageCode",iB="mode",iK="tenantId",iH={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:iT,signIn:ik,verifyAndChangeEmail:iS,verifyEmail:"VERIFY_EMAIL"};function iq(e){try{return new ij(e)}catch(e){return null}}function iW(e){var t=e[iJ];if(void 0===t)throw new A("missing-continue-uri");if("string"!=typeof t||"string"==typeof t&&!t.length)throw new A("invalid-continue-uri");this.h=t,this.b=this.a=null,this.g=!1;var n=e[iG];if(n&&"object"==typeof n){t=n[iQ];var i=n[i$];if(n=n[iZ],"string"==typeof t&&t.length){if(this.a=t,void 0!==i&&"boolean"!=typeof i)throw new A("argument-error",i$+" property must be a boolean when specified.");if(this.g=!!i,void 0!==n&&("string"!=typeof n||"string"==typeof n&&!n.length))throw new A("argument-error",iZ+" property must be a non empty string when specified.");this.b=n||null}else{if(void 0!==t)throw new A("argument-error",iQ+" property must be a non empty string when specified.");if(void 0!==i||void 0!==n)throw new A("missing-android-pkg-name")}}else if(void 0!==n)throw new A("argument-error",iG+" property must be a non null object when specified.");if(this.f=null,(t=e[iX])&&"object"==typeof t){if("string"==typeof(t=t[i0])&&t.length)this.f=t;else if(void 0!==t)throw new A("argument-error",i0+" property must be a non empty string when specified.")}else if(void 0!==t)throw new A("argument-error",iX+" property must be a non null object when specified.");if(void 0!==(t=e[iY])&&"boolean"!=typeof t)throw new A("argument-error",iY+" property must be a boolean when specified.");if(this.c=!!t,void 0!==(e=e[iz])&&("string"!=typeof e||"string"==typeof e&&!e.length))throw new A("argument-error",iz+" property must be a non empty string when specified.");this.i=e||null}var iG="android",iz="dynamicLinkDomain",iY="handleCodeInApp",iX="iOS",iJ="url",i$="installApp",iZ="minimumVersion",iQ="packageName",i0="bundleId";function i1(e){var t={};for(var n in t.continueUrl=e.h,t.canHandleCodeInApp=e.c,(t.androidPackageName=e.a)&&(t.androidMinimumVersion=e.b,t.androidInstallApp=e.g),t.iOSBundleId=e.f,t.dynamicLinkDomain=e.i,t)null===t[n]&&delete t[n];return t}var i2=null;function i4(e){var t=i6(e);if(!(t&&t.sub&&t.iss&&t.aud&&t.exp))throw Error("Invalid JWT");this.h=e,this.a=t.exp,this.i=t.sub,e=Date.now()/1e3,this.g=t.iat||(e>this.a?this.a:e),this.b=t.provider_id||t.firebase&&t.firebase.sign_in_provider||null,this.f=t.firebase&&t.firebase.tenant||null,this.c=!!t.is_anonymous||"anonymous"==this.b}function i3(e){try{return new i4(e)}catch(e){return null}}function i6(e){if(!e||3!=(e=e.split(".")).length)return null;e=e[1];for(var t=(4-e.length%4)%4,n=0;n<t;n++)e+=".";try{var i,r,o=(i=e,r=[],function(e,t){function n(t){for(;i<e.length;){var n=e.charAt(i++),r=i2[n];if(null!=r)return r;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return t}!function(){if(!i2){i2={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++)for(var i=e.concat(t[n].split("")),r=0;r<i.length;r++){var o=i[r];void 0===i2[o]&&(i2[o]=r)}}}();for(var i=0;;){var r=n(-1),o=n(0),a=n(64),s=n(64);if(64===s&&-1===r)break;t(r<<2|o>>4),64!=a&&(t(o<<4&240|a>>2),64!=s&&t(a<<6&192|s))}}(i,function(e){r.push(e)}),r);for(e=[],n=t=0;t<o.length;){var a=o[t++];if(128>
1a)e[n++]=String.fromCharCode(a);else if(191<a&&224>a){var s=o[t++];e[n++]=String.fromCharCode((31&a)<<6|63&s)}else if(239<a&&365>a){s=o[t++];var u=o[t++],c=o[t++],h=((7&a)<<18|(63&s)<<12|(63&u)<<6|63&c)-65536;e[n++]=String.fromCharCode(55296+(h>>10)),e[n++]=String.fromCharCode(56320+(1023&h))}else s=o[t++],u=o[t++],e[n++]=String.fromCharCode((15&a)<<12|(63&s)<<6|63&u)}return JSON.parse(e.join(""))}catch(e){}return null}i4.prototype.T=function(){return this.f},i4.prototype.l=function(){return this.c},i4.prototype.toString=function(){return this.h};var i5="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),i8=["client_id","response_type","scope","redirect_uri","state"],i9={nd:{Ja:"locale",va:700,ua:600,fa:"facebook.com",Ya:i8},pd:{Ja:null,va:500,ua:750,fa:"github.com",Ya:i8},qd:{Ja:"hl",va:515,ua:680,fa:"google.com",Ya:i8},wd:{Ja:"lang",va:485,ua:705,fa:"twitter.com",Ya:i5},kd:{Ja:"locale",va:640,ua:600,fa:"apple.com",Ya:[]}};function i7(e){for(var t in i9)if(i9[t].fa==e)return i9[t];return null}function re(e){var t={};t["facebook.com"]=ro,t["google.com"]=rs,t["github.com"]=ra,t["twitter.com"]=ru;var n=e&&e[rn];try{if(n)return t[n]?new t[n](e):new rr(e);if(void 0!==e[rt])return new ri(e)}catch(e){}return null}var rt="idToken",rn="providerId";function ri(e){var t=e[rn];if(!t&&e[rt]){var n=i3(e[rt]);n&&n.b&&(t=n.b)}if(!t)throw Error("Invalid additional user info!");("anonymous"==t||"custom"==t)&&(t=null),n=!1,void 0!==e.isNewUser?n=!!e.isNewUser:"identitytoolkit#SignupNewUserResponse"===e.kind&&(n=!0),ih(this,"providerId",t),ih(this,"isNewUser",n)}function rr(e){ri.call(this,e),ih(this,"profile",ip((e=n9(e.rawUserInfo||"{}"))||{}))}function ro(e){if(rr.call(this,e),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function ra(e){if(rr.call(this,e),"github.com"!=this.providerId)throw Error("Invalid provider ID!");ih(this,"username",this.profile&&this.profile.login||null)}function rs(e){if(rr.call(this,e),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function ru(e){if(rr.call(this,e),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");ih(this,"username",e.screenName||null)}function rc(e){var t=nl(e),n=nh(t,"link"),i=nh(nl(n),"link");return t=nh(t,"deep_link_id"),nh(nl(t),"link")||t||i||n||e}function rh(e,t){if(!e&&!t)throw new A("internal-error","Internal assert: no raw session string available");if(e&&t)throw new A("internal-error","Internal assert: unable to determine the session type");this.a=e||null,this.b=t||null,this.type=this.a?rl:rf}S(rr,ri),S(ro,rr),S(ra,rr),S(rs,rr),S(ru,rr);var rl="enroll",rf="signin";function rd(){}function rp(e,t){return e.then(function(e){if(e[o0]){var n=i3(e[o0]);if(!n||t!=n.i)throw new A("user-mismatch");return e}throw new A("user-mismatch")}).o(function(e){throw e&&e.code&&e.code==O+"user-not-found"?new A("user-mismatch"):e})}function rg(e,t){if(t)this.a=t;else throw new A("internal-error","failed to construct a credential");ih(this,"providerId",e),ih(this,"signInMethod",e)}function rv(e){return{pendingToken:e.a,requestUri:"http://localhost"}}function rm(e){if(e&&e.providerId&&e.signInMethod&&0==e.providerId.indexOf("saml.")&&e.pendingToken)try{return new rg(e.providerId,e.pendingToken)}catch(e){}return null}function rb(e,t,n){if(this.a=null,t.idToken||t.accessToken)t.idToken&&ih(this,"idToken",t.idToken),t.accessToken&&ih(this,"accessToken",t.accessToken),t.nonce&&!t.pendingToken&&ih(this,"nonce",t.nonce),t.pendingToken&&(this.a=t.pendingToken);else if(t.oauthToken&&t.oauthTokenSecret)ih(this,"accessToken",t.oauthToken),ih(this,"secret",t.oauthTokenSecret);else throw new A("internal-error","failed to construct a credential");ih(this,"providerId",e),ih(this,"signInMethod",n)}function ry(e){var t={};return e.idToken&&(t.id_token=e.idToken),e.accessToken&&(t.access_token=e.accessToken),e.secret&&(t.oauth_token_secret=e.secret),t.providerId=e.providerId,e.nonce&&!e.a&&(t.nonce=e.nonce),t={postBody:nT(t).toString(),requestUri:"http://localhost"},e.a&&(delete t.postBody,t.pendingToken=e.a),t}function rw(e){if(e&&e.providerId&&e.signInMethod){var t={idToken:e.oauthIdToken,accessToken:e.oauthTokenSecret?null:e.oauthAccessToken,oauthTokenSecret:e.oauthTokenSecret,oauthToken:e.oauthTokenSecret&&e.oauthAccessToken,nonce:e.nonce,pendingToken:e.pendingToken};try{return new rb(e.providerId,t,e.signInMethod)}catch(e){}}return null}function rI(e,t){this.Qc=t||[],il(this,{providerId:e,isOAuthProvider:!0}),this.Jb={},this.qb=(i7(e)||{}).Ja||null,this.pb=null}function r_(e){if("string"!=typeof e||0!=e.indexOf("saml."))throw new A("argument-error",'SAML provider IDs must be prefixed with "saml."');rI.call(this,e,[])}function rT(e){rI.call(this,e,i8),this.a=[]}function rk(){rT.call(this,"facebook.com")}function rS(e){if(!e)throw new A("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return v(e)&&(t=e.accessToken),(new rk).credential({accessToken:t})}function rE(){rT.call(this,"github.com")}function rA(e){if(!e)throw new A("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return v(e)&&(t=e.accessToken),(new rE).credential({accessToken:t})}function rN(){rT.call(this,"google.com"),this.Ca("profile")}function rO(e,t){var n=e;return v(e)&&(n=e.idToken,t=e.accessToken),(new rN).credential({idToken:n,accessToken:t})}function rC(){rI.call(this,"twitter.com",i5)}function rx(e,t){var n=e;if(v(n)||(n={oauthToken:e,oauthTokenSecret:t}),!n.oauthToken||!n.oauthTokenSecret)throw new A("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new rb("twitter.com",n,"twitter.com")}function rR(e,t,n){this.a=e,this.f=t,ih(this,"providerId","password"),ih(this,"signInMethod",n===rP.EMAIL_LINK_SIGN_IN_METHOD?rP.EMAIL_LINK_SIGN_IN_METHOD:rP.EMAIL_PASSWORD_SIGN_IN_METHOD)}function rD(e){return e&&e.email&&e.password?new rR(e.email,e.password,e.signInMethod):null}function rP(){il(this,{providerId:"password",isOAuthProvider:!1})}function rL(e,t){if(!(t=rj(t)))throw new A("argument-error","Invalid email link!");return new rR(e,t.code,rP.EMAIL_LINK_SIGN_IN_METHOD)}function rj(e){return(e=iq(e=rc(e)))&&e.operation===ik?e:null}function rM(e){if(!(e.fb&&e.eb||e.La&&e.ea))throw new A("internal-error");this.a=e,ih(this,"providerId","phone"),this.fa="phone",ih(this,"signInMethod","phone")}function rU(e){if(e&&"phone"===e.providerId&&(e.verificationId&&e.verificationCode||e.temporaryProof&&e.phoneNumber)){var t={};return H(["verificationId","verificationCode","temporaryProof","phoneNumber"],function(n){e[n]&&(t[n]=e[n])}),new rM(t)}return null}function rF(e){return e.a.La&&e.a.ea?{temporaryProof:e.a.La,phoneNumber:e.a.ea}:{sessionInfo:e.a.fb,code:e.a.eb}}function rV(e){try{this.a=e||X.auth()}catch(e){throw new A("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}il(this,{providerId:"phone",isOAuthProvider:!1})}function rB(e,t){if(!e)throw new A("missing-verification-id");if(!t)throw new A("missing-verification-code");return new rM({fb:e,eb:t})}function rK(e){if(e.temporaryProof&&e.phoneNumber)return new rM({La:e.temporaryProof,ea:e.phoneNumber});var t=e&&e.providerId;if(!t||"password"===t)return null;var n=e&&e.oauthAccessToken,i=e&&e.oauthTokenSecret,r=e&&e.nonce,o=e&&e.oauthIdToken,a=e&&e.pendingToken;try{switch(t){case"google.com":return rO(o,n);case"facebook.com":return rS(n);case"github.com":return rA(n);case"twitter.com":return rx(n,i);default:return n||i||o||a?a?0==t.indexOf("saml.")?new rg(t,a):new rb(t,{pendingToken:a,idToken:e.oauthIdToken,accessToken:e.oauthAccessToken},t):new rT(t).credential({idToken:o,accessToken:n,rawNonce:r}):null}}catch(e){return null}}function rH(e){if(!e.isOAuthProvider)throw new A("invalid-oauth-provider")}function rq(e,t,n,i,r,o,a){if(this.c=e,this.b=t||null,this.g=n||null,this.f=i||null,this.i=o||null,this.h=a||null,this.a=r||null,this.g||this.a){if(this.g&&this.a||this.g&&!this.f)throw new A("invalid-auth-event")}else throw new A("invalid-auth-event")}function rW(e){return(e=e||{}).type?new rq(e.type,e.eventId,e.urlResponse,e.sessionId,e.error&&N(e.error),e.postBody,e.tenantId):null}function rG(){this.b=null,this.a=[]}rh.prototype.Ha=function(){return this.a?th(this.a):th(this.b)},rh.prototype.w=function(){return this.type==rl?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},rd.prototype.ka=function(){},rd.prototype.b=function(){},rd.prototype.c=function(){},rd.prototype.w=function(){},rg.prototype.ka=function(e){return af(e,rv(this))},rg.prototype.b=function(e,t){var n=rv(this);return n.idToken=t,ad(e,n)},rg.prototype.c=function(e,t){return rp(ap(e,rv(this)),t)},rg.prototype.w=function(){return{providerId:this.providerId,sign
1InMethod:this.signInMethod,pendingToken:this.a}},rb.prototype.ka=function(e){return af(e,ry(this))},rb.prototype.b=function(e,t){var n=ry(this);return n.idToken=t,ad(e,n)},rb.prototype.c=function(e,t){return rp(ap(e,ry(this)),t)},rb.prototype.w=function(){var e={providerId:this.providerId,signInMethod:this.signInMethod};return this.idToken&&(e.oauthIdToken=this.idToken),this.accessToken&&(e.oauthAccessToken=this.accessToken),this.secret&&(e.oauthTokenSecret=this.secret),this.nonce&&(e.nonce=this.nonce),this.a&&(e.pendingToken=this.a),e},rI.prototype.Ka=function(e){return this.Jb=ed(e),this},S(r_,rI),S(rT,rI),rT.prototype.Ca=function(e){return z(this.a,e)||this.a.push(e),this},rT.prototype.Rb=function(){return Z(this.a)},rT.prototype.credential=function(e,t){var n;if(!(n=v(e)?{idToken:e.idToken||null,accessToken:e.accessToken||null,nonce:e.rawNonce||null}:{idToken:e||null,accessToken:t||null}).idToken&&!n.accessToken)throw new A("argument-error","credential failed: must provide the ID token and/or the access token.");return new rb(this.providerId,n,this.providerId)},S(rk,rT),ih(rk,"PROVIDER_ID","facebook.com"),ih(rk,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),S(rE,rT),ih(rE,"PROVIDER_ID","github.com"),ih(rE,"GITHUB_SIGN_IN_METHOD","github.com"),S(rN,rT),ih(rN,"PROVIDER_ID","google.com"),ih(rN,"GOOGLE_SIGN_IN_METHOD","google.com"),S(rC,rI),ih(rC,"PROVIDER_ID","twitter.com"),ih(rC,"TWITTER_SIGN_IN_METHOD","twitter.com"),rR.prototype.ka=function(e){return this.signInMethod==rP.EMAIL_LINK_SIGN_IN_METHOD?aX(e,a_,{email:this.a,oobCode:this.f}):aX(e,aq,{email:this.a,password:this.f})},rR.prototype.b=function(e,t){return this.signInMethod==rP.EMAIL_LINK_SIGN_IN_METHOD?aX(e,aT,{idToken:t,email:this.a,oobCode:this.f}):aX(e,aj,{idToken:t,email:this.a,password:this.f})},rR.prototype.c=function(e,t){return rp(this.ka(e),t)},rR.prototype.w=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},il(rP,{PROVIDER_ID:"password"}),il(rP,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),il(rP,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),rM.prototype.ka=function(e){return e.gb(rF(this))},rM.prototype.b=function(e,t){var n=rF(this);return n.idToken=t,aX(e,aG,n)},rM.prototype.c=function(e,t){var n=rF(this);return n.operation="REAUTH",rp(e=aX(e,az,n),t)},rM.prototype.w=function(){var e={providerId:"phone"};return this.a.fb&&(e.verificationId=this.a.fb),this.a.eb&&(e.verificationCode=this.a.eb),this.a.La&&(e.temporaryProof=this.a.La),this.a.ea&&(e.phoneNumber=this.a.ea),e},rV.prototype.gb=function(e,t){var n=this.a.a;return th(t.verify()).then(function(i){if("string"!=typeof i)throw new A("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");if("recaptcha"===t.type){var r=v(e)?e.session:null,o=v(e)?e.phoneNumber:e;return(r&&r.type==rl?r.Ha().then(function(e){return aX(n,aU,{idToken:e,phoneEnrollmentInfo:{phoneNumber:o,recaptchaToken:i}}).then(function(e){return e.phoneSessionInfo.sessionInfo})}):r&&r.type==rf?r.Ha().then(function(t){return aX(n,aF,{mfaPendingCredential:t,mfaEnrollmentId:e.multiFactorHint&&e.multiFactorHint.uid||e.multiFactorUid,phoneSignInInfo:{recaptchaToken:i}}).then(function(e){return e.phoneResponseInfo.sessionInfo})}):aX(n,aP,{phoneNumber:o,recaptchaToken:i})).then(function(e){return"function"==typeof t.reset&&t.reset(),e},function(e){throw"function"==typeof t.reset&&t.reset(),e})}throw new A("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')})},il(rV,{PROVIDER_ID:"phone"}),il(rV,{PHONE_SIGN_IN_METHOD:"phone"}),rq.prototype.getUid=function(){var e=[];return e.push(this.c),this.b&&e.push(this.b),this.f&&e.push(this.f),this.h&&e.push(this.h),e.join("-")},rq.prototype.T=function(){return this.h},rq.prototype.w=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.w()}};var rz=null;function rY(e){var t="unauthorized-domain",n=void 0,i=nl(e);e=i.a,"chrome-extension"==(i=i.c)?n=eV("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):"http"==i||"https"==i?n=eV("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):t="operation-not-supported-in-this-environment",A.call(this,t,n)}
1function rX(e,t,n){A.call(this,e,n),(e=t||{}).Kb&&ih(this,"email",e.Kb),e.ea&&ih(this,"phoneNumber",e.ea),e.credential&&ih(this,"credential",e.credential),e.$b&&ih(this,"tenantId",e.$b)}function rJ(e){if(e.code){var t=e.code||"";0==t.indexOf(O)&&(t=t.substring(O.length));var n={credential:rK(e),$b:e.tenantId};if(e.email)n.Kb=e.email;else if(e.phoneNumber)n.ea=e.phoneNumber;else if(!n.credential)return new A(t,e.message||void 0);return new rX(t,n,e.message)}return null}function r$(){}function rZ(e){return e.c||(e.c=e.b())}function rQ(){}function r0(e){if(!e.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var t=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n<t.length;n++){var i=t[n];try{return new ActiveXObject(i),e.f=i}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return e.f}function r1(){}function r2(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=_(this.qc,this),this.a.onerror=_(this.Tb,this),this.a.onprogress=_(this.rc,this),this.a.ontimeout=_(this.vc,this)}function r4(e,t){e.readyState=t,e.onreadystatechange&&e.onreadystatechange()}function r3(e,t,n){this.reset(e,t,n,void 0,void 0)}S(rY,A),S(rX,A),rX.prototype.w=function(){var e={code:this.code,message:this.message};this.email&&(e.email=this.email),this.phoneNumber&&(e.phoneNumber=this.phoneNumber),this.tenantId&&(e.tenantId=this.tenantId);var t=this.credential&&this.credential.w();return t&&eg(e,t),e},rX.prototype.toJSON=function(){return this.w()},r$.prototype.c=null,S(rQ,r$),rQ.prototype.a=function(){var e=r0(this);return e?new ActiveXObject(e):new XMLHttpRequest},rQ.prototype.b=function(){var e={};return r0(this)&&(e[0]=!0,e[1]=!0),e},oZ=new rQ,S(r1,r$),r1.prototype.a=function(){var e=new XMLHttpRequest;if("withCredentials"in e)return e;if("undefined"!=typeof XDomainRequest)return new r2;throw Error("Unsupported browser")},r1.prototype.b=function(){return{}},(i=r2.prototype).open=function(e,t,n){if(null!=n&&!n)throw Error("Only async requests are supported.");this.a.open(e,t)},i.send=function(e){if(e)if("string"==typeof e)this.a.send(e);else throw Error("Only string data is supported");else this.a.send()},i.abort=function(){this.a.abort()},i.setRequestHeader=function(){},i.getResponseHeader=function(e){return"content-type"==e.toLowerCase()?this.a.contentType:""},i.qc=function(){this.status=200,this.response=this.responseText=this.a.responseText,r4(this,4)},i.Tb=function(){this.status=500,this.response=this.responseText="",r4(this,4)},i.vc=function(){this.Tb()},i.rc=function(){this.status=200,r4(this,1)},i.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},r3.prototype.a=null;var r6=0;function r5(e){this.f=e,this.b=this.c=this.a=null}function r8(e,t){this.name=e,this.value=t}r3.prototype.reset=function(e,t,n,i,r){"number"==typeof r||r6++,i||k(),delete this.a},r8.prototype.toString=function(){return this.name};var r9=new r8("SEVERE",1e3),r7=new r8("WARNING",900),oe=new r8("CONFIG",700),ot=new r8("FINE",500);r5.prototype.log=function(e,t,n){if(e.value>=function e(t){return t.c?t.c:t.a?e(t.a):(j("Root logger has no level set."),null)}(this).value)for(g(t)&&(t=t()),e=new r3(e,String(t),this.f),n&&(e.a=n),n=this;n;)n=n.a};var on={},oi=null;function or(e){if(oi||(oi=new r5(""),on[""]=oi,oi.c=oe),!(t=on[e])){var t=new r5(e),n=e.lastIndexOf("."),i=e.substr(n+1);(n=or(e.substr(0,n))).b||(n.b={}),n.b[i]=t,t.a=n,on[e]=t}return t}function oo(e,t){e&&e.log(ot,t,void 0)}function oa(e){this.f=e}function os(e){t4.call(this),this.u=e,this.h=void 0,this.readyState=ou,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.l=new Headers,this.b=null,this.s="GET",this.f="",this.a=!1,this.i=or("goog.net.FetchXmlHttp"),this.m=this.c=this.g=null}S(oa,r$),oa.prototype.a=function(){return new os(this.f)},oa.prototype.b=(oH={},function(){return oH}),S(os,t4);var ou=0;function oc(e){e.c.read().then(e.pc.bind(e)).catch(e.Va.bind(e))}function oh(e){e.readyState=4,e.g=null,e.c=null,e.m=null,ol(e)}function ol(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function of(e){t4.call(this),this.headers=new nt,this.D=e||null,this.c=!1,this.C=this.a=null,this.h=this.P=this.l="",this.f=this.N=this.i=this.J=!1,this.g=0,this.s=null,this.m=od,this.u=this.S=!1}(i=os.prototype).open=function(e,t){if(this.readyState!=ou)throw this.abort(),Error("Error reopening a connection");this.s=e,this.f=t,this.readyState=1,ol(this)},i.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var t={headers:this.l,method:this.s,credentials:this.h,cache:void 0};
1e&&(t.body=e),this.u.fetch(new Request(this.f,t)).then(this.uc.bind(this),this.Va.bind(this))},i.abort=function(){this.response=this.responseText="",this.l=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,oh(this)),this.readyState=ou},i.uc=function(e){this.a&&(this.g=e,this.b||(this.status=this.g.status,this.statusText=this.g.statusText,this.b=e.headers,this.readyState=2,ol(this)),this.a&&(this.readyState=3,ol(this),this.a&&("arraybuffer"===this.responseType?e.arrayBuffer().then(this.sc.bind(this),this.Va.bind(this)):void 0!==u.ReadableStream&&"body"in e?(this.response=this.responseText="",this.c=e.body.getReader(),this.m=new TextDecoder,oc(this)):e.text().then(this.tc.bind(this),this.Va.bind(this)))))},i.pc=function(e){if(this.a){var t=this.m.decode(e.value?e.value:new Uint8Array(0),{stream:!e.done});t&&(this.response=this.responseText+=t),e.done?oh(this):ol(this),3==this.readyState&&oc(this)}},i.tc=function(e){this.a&&(this.response=this.responseText=e,oh(this))},i.sc=function(e){this.a&&(this.response=e,oh(this))},i.Va=function(e){var t=this.i;t&&t.log(r7,"Failed to fetch url "+this.f,e instanceof Error?e:Error(e)),this.a&&oh(this)},i.setRequestHeader=function(e,t){this.l.append(e,t)},i.getResponseHeader=function(e){return this.b?this.b.get(e.toLowerCase())||"":((e=this.i)&&e.log(r7,"Attempting to get response header but no headers have been received for url: "+this.f,void 0),"")},i.getAllResponseHeaders=function(){if(!this.b){var e=this.i;return e&&e.log(r7,"Attempting to get all response headers but no headers have been received for url: "+this.f,void 0),""}e=[];for(var t=this.b.entries(),n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},Object.defineProperty(os.prototype,"withCredentials",{get:function(){return"include"===this.h},set:function(e){this.h=e?"include":"same-origin"}}),S(of,t4);var od="";of.prototype.b=or("goog.net.XhrIo");var op=/^https?$/i,og=["POST","PUT"];function ov(e){return"content-type"==e.toLowerCase()}function om(e,t){e.c=!1,e.a&&(e.f=!0,e.a.abort(),e.f=!1),e.h=t,ob(e),ow(e)}function ob(e){e.J||(e.J=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))}function oy(e){if(e.c&&void 0!==s){if(e.C[1]&&4==o_(e)&&2==oT(e))oo(e.b,ok(e,"Local request error detected and ignored"));else if(e.i&&4==o_(e))t8(e.Wb,0,e);else if(e.dispatchEvent("readystatechange"),4==o_(e)){oo(e.b,ok(e,"Request complete")),e.c=!1;try{var t,n,i=oT(e);switch(i){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break;default:r=!1}if(!(t=r)){if(n=0===i){var o=String(e.l).match(nr)[1]||null;if(!o&&u.self&&u.self.location){var a=u.self.location.protocol;o=a.substr(0,a.length-1)}n=!op.test(o?o.toLowerCase():"")}t=n}if(t)e.dispatchEvent("complete"),e.dispatchEvent("success");else{try{var c=2<o_(e)?e.a.statusText:""}catch(t){oo(e.b,"Can not get status: "+t.message),c=""}e.h=c+" ["+oT(e)+"]",ob(e)}}finally{ow(e)}}}}function ow(e,t){if(e.a){oI(e);var n=e.a,i=e.C[0]?f:null;e.a=null,e.C=null,t||e.dispatchEvent("ready");try{n.onreadystatechange=i}catch(t){(e=e.b)&&e.log(r9,"Problem encountered resetting onreadystatechange: "+t.message,void 0)}}}function oI(e){e.a&&e.u&&(e.a.ontimeout=null),e.s&&(u.clearTimeout(e.s),e.s=null)}function o_(e){return e.a?e.a.readyState:0}function oT(e){try{return 2<o_(e)?e.a.status:-1}catch(e){return -1}}function ok(e,t){return t+" ["+e.P+" "+e.l+" "+oT(e)+"]"}function oS(e){this.g=[],this.u=oj,this.s=e||null,this.f=this.a=!1,this.c=void 0,this.v=this.C=this.i=!1,this.h=0,this.b=null,this.l=0}function oE(e,t,n){e.a=!0,e.c=n,e.f=!t,oC(e)}function oA(e){if(e.a){if(!e.v)throw new ox(e);e.v=!1}}function oN(e,t,n,i){e.g.push([t,n,i]),e.a&&oC(e)}function oO(e){return G(e.g,function(e){return g(e[1])})}function oC(e){if(e.h&&e.a&&oO(e)){var t=e.h,n=oP[t];n&&(u.clearTimeout(n.a),delete oP[t]),e.h=0}e.b&&(e.b.l--,delete e.b),t=e.c;for(var i=n=!1;e.g.length&&!e.i;){var r=e.g.shift(),o=r[0],a=r[1];if(r=r[2],o=e.f?a:o)try{var s=o.call(r||e.s,t);void 0!==s&&(e.f=e.f&&(s==t||s instanceof Error),e.c=t=s),(D(t)||"function"==typeof u.Promise&&t instanceof u.Promise)&&(i=!0,e.i=!0)}catch(i){t=i,e.f=!0,oO(e)||(n=!0)}}e.c=t,i&&(s=_(e.m,e,!0),i=_(e.m,e,!1),t instanceof oS?(oN(t,s,i),t.C=!0):t.then(s,i)),n&&(oP[(t=ne
1w oD(t)).a]=t,e.h=t.a)}function ox(){P.call(this)}function oR(){P.call(this)}function oD(e){this.a=u.setTimeout(_(this.c,this),0),this.b=e}(i=of.prototype).Ma=function(){void 0!==s&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",oo(this.b,ok(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},i.abort=function(){this.a&&this.c&&(oo(this.b,ok(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),ow(this))},i.Da=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),ow(this,!0)),of.bb.Da.call(this)},i.Wb=function(){this.ya||(this.N||this.i||this.f?oy(this):this.Jc())},i.Jc=function(){oy(this)},i.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case od:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var e=this.b;return e&&e.log(r9,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(e){return oo(this.b,"Can not get response: "+e.message),null}},oS.prototype.cancel=function(e){if(this.a)this.c instanceof oS&&this.c.cancel();else{if(this.b){var t=this.b;delete this.b,e?t.cancel(e):(t.l--,0>=t.l&&t.cancel())}this.u?this.u.call(this.s,this):this.v=!0,this.a||(e=new oR(this),oA(this),oE(this,!1,e))}},oS.prototype.m=function(e,t){this.i=!1,oE(this,e,t)},oS.prototype.then=function(e,t,n){var i,r,o=new ti(function(e,t){i=e,r=t});return oN(this,i,function(e){e instanceof oR?o.cancel():r(e)}),o.then(e,t,n)},oS.prototype.$goog_Thenable=!0,S(ox,P),ox.prototype.message="Deferred has already fired",ox.prototype.name="AlreadyCalledError",S(oR,P),oR.prototype.message="Deferred was canceled",oR.prototype.name="CanceledError",oD.prototype.c=function(){throw delete oP[this.a],this.b};var oP={};function oL(e){var t,n,i,r={},o=r.document||document,a=eT(e).toString(),s=e8(document,"SCRIPT"),c={Xb:s,Ma:void 0},f=new oS(c),d=null,p=null!=r.timeout?r.timeout:5e3;return 0<p&&(d=window.setTimeout(function(){oM(s,!0);var e=new oV(oF,"Timeout reached for loading script "+a);oA(f),oE(f,!1,e)},p),c.Ma=d),s.onload=s.onreadystatechange=function(){s.readyState&&"loaded"!=s.readyState&&"complete"!=s.readyState||(oM(s,r.xd||!1,d),oA(f),oE(f,!0,null))},s.onerror=function(){oM(s,!0,d);var e=new oV(oU,"Error while loading script "+a);oA(f),oE(f,!1,e)},eg(c=r.attributes||{},{type:"text/javascript",charset:"UTF-8"}),e6(s,c),i=e,ev(s,"HTMLScriptElement"),s.src=eT(i),(i=s.ownerDocument&&s.ownerDocument.defaultView)&&i!=u?i=l(i.document):(null===h&&
1(h=l(u.document)),i=h),i&&s.setAttribute("nonce",i),((n=((t=o)||document).getElementsByTagName("HEAD"))&&0!=n.length?n[0]:t.documentElement).appendChild(s),f}function oj(){if(this&&this.Xb){var e=this.Xb;e&&"SCRIPT"==e.tagName&&oM(e,!0,this.Ma)}}function oM(e,t,n){null!=n&&u.clearTimeout(n),e.onload=f,e.onerror=f,e.onreadystatechange=f,t&&window.setTimeout(function(){e&&e.parentNode&&e.parentNode.removeChild(e)},0)}var oU=0,oF=1;function oV(e,t){var n="Jsloader error (code #"+e+")";t&&(n+=": "+t),P.call(this,n),this.code=e}function oB(e){this.f=e}function oK(e,t,n){if(this.c=e,e=t||{},this.l=e.secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.m=e.secureTokenTimeout||o1,this.g=ed(e.secureTokenHeaders||o2),this.h=e.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.i=e.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/",this.v=e.firebaseTimeout||o4,this.a=ed(e.firebaseHeaders||o3),n&&(this.a["X-Client-Version"]=n,this.g["X-Client-Version"]=n),n="Node"==nG(),!(n=u.XMLHttpRequest||n&&X.INTERNAL.node&&X.INTERNAL.node.XMLHttpRequest)&&!nW())throw new A("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,nW()?this.f=new oa(self):nz()?this.f=new oB(n):this.f=new r1,this.b=null}S(oV,P),S(oB,r$),oB.prototype.a=function(){return new this.f},oB.prototype.b=function(){return{}};var oH,oq,oW,oG,oz,oY,oX,oJ,o$,oZ,oQ,o0="idToken",o1=new ii(3e4,6e4),o2={"Content-Type":"application/x-www-form-urlencoded"},o4=new ii(3e4,6e4),o3={"Content-Type":"application/json"};function o6(e,t){t?e.a["X-Firebase-Locale"]=t:delete e.a["X-Firebase-Locale"]}function o5(e,t){t&&(e.l=o8("https://securetoken.googleapis.com/v1/token",t),e.h=o8("https://www.googleapis.com/identitytoolkit/v3/relyingparty/",t),e.i=o8("https://identitytoolkit.googleapis.com/v2/",t))}function o8(e,t){return e=nl(e),t=nl(t.url),e.f=e.a+e.f,na(e,t.c),e.a=t.a,ns(e,t.g),e.toString()}function o9(e,t){t?(e.a["X-Client-Version"]=t,e.g["X-Client-Version"]=t):(delete e.a["X-Client-Version"],delete e.g["X-Client-Version"])}function o7(e,t,n,i,r,o,a){var s;(!(s=nJ(s=nQ())!=nX?null:(s=s.match(/\sChrome\/(\d+)/i))&&2==s.length?parseInt(s[1],10):null)||!(30>s))&&(!eq||!e2||9<e2)||nW()?e=_(e.u,e):(oQ||(oQ=new ti(function(e,t){var n=e,i=t;if(((window.gapi||{}).client||{}).request)n();else u[at]=function(){((window.gapi||{}).client||{}).request?n():i(Error("CORS_UNSUPPORTED"))},oN(oL(ek(ae,{onload:at})),null,function(){i(Error("CORS_UNSUPPORTED"))},void 0)})),e=_(e.s,e)),e(t,n,i,r,o,a)}oK.prototype.T=function(){return this.b},oK.prototype.u=function(e,t,n,i,r,o){if(nW()&&(void 0===u.fetch||void 0===u.Headers||void 0===u.Request))throw new A("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to support HTTP requests from a Worker environment.");var a=new of(this.f);if(o){a.g=Math.max(0,o);var s=setTimeout(function(){a.dispatchEvent("timeout")},o)}t3(a,"complete",function(){s&&clearTimeout(s);var e=null;try{e=JSON.parse(function(e){try{return e.a?e.a.responseText:""}catch(t){return oo(e.b,"Can not get responseText: "+t.message),""}}(this))||null}catch(t){e=null}t&&t(e)}),t6(a,"ready",function(){s&&clearTimeout(s),tA(this)}),t6(a,"timeout",function(){s&&clearTimeout(s),tA(this),t&&t(null)}),function(e,t,n,i,r){if(e.a)throw Error("[goog.net.XhrIo] Object is active with another request="+e.l+"; newUri="+t);n=n?n.toUpperCase():"GET",e.l=t,e.h="",e.P=n,e.J=!1,e.c=!0,e.a=e.D?e.D.a():oZ.a(),e.C=e.D?rZ(e.D):rZ(oZ),e.a.onreadystatechange=_(e.Wb,e);try{oo(e.b,ok(e,"Opening Xhr")),e.N=!0,e.a.open(n,String(t),!0),e.N=!1}catch(t){oo(e.b,ok(e,"Error opening Xhr: "+t.message)),om(e,t);return}t=i||"";var o,a=new nt(e.headers);r&&function(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(p(e)||"string"==typeof e)H(e,t,void 0);else for(var n=ne(e),i=t7(e),r=i.length,o=0;o<r;o++)t.call(void 0,i[o],n&&n[o],e)}(r,function(e,t){a.set(t,e)}),r=function(e){e:{for(var t=ov,n=e.length,i="string"==typeof e?e.split(""):e,r=0;r<n;r++)if(r in i&&t.call(void 0,i[r],r,e)){t=r;break e}t=-1}return 0>t?null:"string"==typeof e?e.charAt(t):e[t]}(a.Y()),i=u.FormData&&t instanceof u.FormData,!z(og,n)||r||i||a.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),a.forEach(function(e,t){this.a.setRequestHeader(t,e)},e),e.m&&(e.a.responseType=e.m),"withCredentials"in e.a&&e.a.withCredentials!==e.S&&(e.a.withCredentials=e.S);try{oI(e),0<e.g&&(o=e.a,e.u=eq&&e1(9)&&"number"==typeof o.timeout&&void 0!==o.ontimeout,oo(e.b,ok(e,"Will abort after "+e.g+"ms if incomplete, xhr2 "+e.u)),e.u?(e.a.timeout=e.g,e.a.ontimeout=_(e.Ma,e)):e.s=t8(e.Ma,e.g,e)),oo(e.b,ok(e,"Sending request")),e.i=!0,e.a.send(t),e.i=!1}catch(t){oo(e.b,ok(e,"Send error: "+t.message)),om(e,t)}}(a,e,n,i,r)};var ae=new em(ew,"https://apis.google.com/js/client.js?onload=%{onload}"),at="__fcb"+Math.floor(1e6*Math.random()).toString();function an(e,t,n,i,r,o,a){var s=nl(t+n);nc(s,"key",e.c),a&&nc(s,"cb",Date.now().toString());var u="GET"==i;if(u)for(var c in r)r.hasOwnProperty(c)&&nc(s,c,r[c]);return new ti(function(t,n){o7(e,s.toString(),function(e){e?e.error?n(a$(e,o||{})):t(e):n(new A("network-request-failed"))},i,u?void 0:nO(n8(r)),e.a,e.v.get())})}function ai(e){if("string"!=typeof(e=e.email)||!nB.test(e))throw new A("invalid-email")}function ar(e){"email"in e&&ai(e)}function ao(e){if(!e[o0]){if(e.mfaPendingCredential)throw new A("multi-factor-auth-required",null,ed(e));throw new A("internal-error")}}function aa(e){if(e.phoneNumber||e.temporaryProof){if(!e.phoneNumber||!e.temporaryProof)throw new A("internal-error")}else{if(!e.sessionInfo)throw new A("missing-verification-id");if(!e.code)throw new A("missing-verification-code")}}oK.prototype.s=function(e,t,n,i,r){var o=this;oQ.then(function(){window.gapi.client.setApiKey(o.c);var a=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:e,method:n,body:i,headers:r,authType:"none",callback:function(e){window.gapi.auth.setToken(a),t&&t(e)}})}).o(function(e){t&&t({error:{message:e&&e.message||"CORS_UNSUPPORTED"}})})},oK.prototype.Ab=function(){return aX(this,aM,{})},oK.prototype.Cb=function(e,t){return aX(this,aL,{idToken:e,email:t})},oK.prototype.Db=function(e,t){return aX(this,aj,{idToken:e,password:t})};var as={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function au(e){if(!e.phoneVerificationInfo)throw new A("internal-error");
1if(!e.phoneVerificationInfo.sessionInfo)throw new A("missing-verification-id");if(!e.phoneVerificationInfo.code)throw new A("missing-verification-code")}function ac(e){if(!e.requestUri||!e.sessionId&&!e.postBody&&!e.pendingToken)throw new A("internal-error")}function ah(e,t){return t.oauthIdToken&&t.providerId&&0==t.providerId.indexOf("oidc.")&&!t.pendingToken&&(e.sessionId?t.nonce=e.sessionId:e.postBody&&nS(e=new nI(e.postBody),"nonce")&&(t.nonce=e.get("nonce"))),t}function al(e){var t=null;if(e.needConfirmation?(e.code="account-exists-with-different-credential",t=rJ(e)):"FEDERATED_USER_ID_ALREADY_LINKED"==e.errorMessage?(e.code="credential-already-in-use",t=rJ(e)):"EMAIL_EXISTS"==e.errorMessage?(e.code="email-already-in-use",t=rJ(e)):e.errorMessage&&(t=aJ(e.errorMessage)),t)throw t;ao(e)}function af(e,t){return t.returnIdpCredential=!0,aX(e,aV,t)}function ad(e,t){return t.returnIdpCredential=!0,aX(e,aK,t)}function ap(e,t){return t.returnIdpCredential=!0,t.autoCreate=!1,aX(e,aB,t)}function ag(e){if(!e.oobCode)throw new A("invalid-action-code")}(i=oK.prototype).Eb=function(e,t){var n={idToken:e},i=[];return el(as,function(e,r){var o=t[r];null===o?i.push(e):r in t&&(n[r]=o)}),i.length&&(n.deleteAttribute=i),aX(this,aL,n)},i.wb=function(e,t){return eg(e={requestType:"PASSWORD_RESET",email:e},t),aX(this,aC,e)},i.xb=function(e,t){return eg(e={requestType:"EMAIL_SIGNIN",email:e},t),aX(this,aA,e)},i.vb=function(e,t){return eg(e={requestType:"VERIFY_EMAIL",idToken:e},t),aX(this,aN,e)},i.Fb=function(e,t,n){return eg(e={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:e,newEmail:t},n),aX(this,aO,e)},i.gb=function(e){return aX(this,aW,e)},i.ob=function(e,t){return aX(this,aD,{oobCode:e,newPassword:t})},i.Sa=function(e){return aX(this,am,{oobCode:e})},i.kb=function(e){return aX(this,av,{oobCode:e})};var av={endpoint:"setAccountInfo",A:ag,Z:"email",B:!0},am={endpoint:"resetPassword",A:ag,G:function(e){var t=e.requestType;if(!t||!e.email&&"EMAIL_SIGNIN"!=t&&"VERIFY_AND_CHANGE_EMAIL"!=t)throw new A("internal-error")},B:!0},ab={endpoint:"signupNewUser",A:function(e){if(ai(e),!e.password)throw new A("weak-password")},G:ao,V:!0,B:!0},ay={endpoint:"createAuthUri",B:!0},aw={endpoint:"deleteAccount",O:["idToken"]},aI={endpoint:"setAccountInfo",O:["idToken","deleteProvider"],A:function(e){if(!Array.isArray(e.deleteProvider))throw new A("internal-error")}},a_={endpoint:"emailLinkSignin",O:["email","oobCode"],A:ai,G:ao,V:!0,B:!0},aT={endpoint:"emailLinkSignin",O:["idToken","email","oobCode"],A:ai,G:ao,V:!0},ak={endpoint:"accounts/mfaEnrollment:finalize",O:["idToken","phoneVerificationInfo"],A:au,G:ao,B:!0,Na:!0},aS={endpoint:"accounts/mfaSignIn:finalize",O:["mfaPendingCredential","phoneVerificationInfo"],A:au,G:ao,B:!0,Na:!0},aE={endpoint:"getAccountInfo"},aA={endpoint:"getOobConfirmationCode",O:["requestType"],A:function(e){if("EMAIL_SIGNIN"!=e.requestType)throw new A("internal-error");ai(e)},Z:"email",B:!0},aN={endpoint:"getOobConfirmationCode",O:["idToken","requestType"],A:function(e){if("VERIFY_EMAIL"!=e.requestType)throw new A("internal-error")},Z:"email",B:!0},aO={endpoint:"getOobConfirmationCode",O:["idToken","newEmail","requestType"],A:function(e){if("VERIFY_AND_CHANGE_EMAIL"!=e.requestType)throw new A("internal-error")},Z:"email",B:!0},aC={endpoint:"getOobConfirmationCode",O:["requestType"],A:function(e){if("PASSWORD_RESET"!=e.requestType)throw new A("internal-error");ai(e)},Z:"email",B:!0},ax={mb:!0,endpoint:"getProjectConfig",Vb:"GET"},aR={mb:!0,endpoint:"getRecaptchaParam",Vb:"GET",G:function(e){if(!e.recaptchaSiteKey)throw new A("internal-error")}},aD={endpoint:"resetPassword",A:ag,Z:"email",B:!0},aP={endpoint:"sendVerificationCode",O:["phoneNumber","recaptchaToken"],Z:"sessionInfo",B:!0},aL={endpoint:"setAccountInfo",O:["idToken"],A:ar,V:!0},aj={endpoint:"setAccountInfo",O:["idToken"],A:function(e){if(ar(e),!e.password)throw new A("weak-password")},G:ao,V:!0},aM={endpoint:"signupNewUser",G:ao,V:!0,B:!0},aU={endpoint:"accounts/mfaEnrollment:start",O:["idToken","phoneEnrollmentInfo"],A:function(e){if(!e.phoneEnrollmentInfo)throw new A("internal-error");
1if(!e.phoneEnrollmentInfo.phoneNumber)throw new A("missing-phone-number");if(!e.phoneEnrollmentInfo.recaptchaToken)throw new A("missing-app-credential")},G:function(e){if(!e.phoneSessionInfo||!e.phoneSessionInfo.sessionInfo)throw new A("internal-error")},B:!0,Na:!0},aF={endpoint:"accounts/mfaSignIn:start",O:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],A:function(e){if(!e.phoneSignInInfo||!e.phoneSignInInfo.recaptchaToken)throw new A("missing-app-credential")},G:function(e){if(!e.phoneResponseInfo||!e.phoneResponseInfo.sessionInfo)throw new A("internal-error")},B:!0,Na:!0},aV={endpoint:"verifyAssertion",A:ac,Za:ah,G:al,V:!0,B:!0},aB={endpoint:"verifyAssertion",A:ac,Za:ah,G:function(e){if(e.errorMessage&&"USER_NOT_FOUND"==e.errorMessage)throw new A("user-not-found");if(e.errorMessage)throw aJ(e.errorMessage);ao(e)},V:!0,B:!0},aK={endpoint:"verifyAssertion",A:function(e){if(ac(e),!e.idToken)throw new A("internal-error")},Za:ah,G:al,V:!0},aH={endpoint:"verifyCustomToken",A:function(e){if(!e.token)throw new A("invalid-custom-token")},G:ao,V:!0,B:!0},aq={endpoint:"verifyPassword",A:function(e){if(ai(e),!e.password)throw new A("wrong-password")},G:ao,V:!0,B:!0},aW={endpoint:"verifyPhoneNumber",A:aa,G:ao,B:!0},aG={endpoint:"verifyPhoneNumber",A:function(e){if(!e.idToken)throw new A("internal-error");aa(e)},G:function(e){if(e.temporaryProof)throw e.code="credential-already-in-use",rJ(e);ao(e)}},az={Ib:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",A:aa,G:ao,B:!0},aY={endpoint:"accounts/mfaEnrollment:withdraw",O:["idToken","mfaEnrollmentId"],G:function(e){if(!!e[o0]^!!e.refreshToken)throw new A("internal-error")},B:!0,Na:!0};function aX(e,t,n){if(!function(e,t){if(!t||!t.length)return!0;if(!e)return!1;for(var n=0;n<t.length;n++){var i=e[t[n]];if(null==i||""===i)return!1}return!0}(n,t.O))return tl(new A("internal-error"));var i,r=!!t.Na,o=t.Vb||"POST";return th(n).then(t.A).then(function(){return t.V&&(n.returnSecureToken=!0),t.B&&e.b&&void 0===n.tenantId&&(n.tenantId=e.b),r?an(e,e.i,t.endpoint,o,n,t.Ib,t.mb||!1):an(e,e.h,t.endpoint,o,n,t.Ib,t.mb||!1)}).then(function(e){return i=e,t.Za?t.Za(n,i):i}).then(t.G).then(function(){if(!t.Z)return i;if(!(t.Z in i))throw new A("internal-error");return i[t.Z]})}function aJ(e){return a$({error:{errors:[{message:e}],code:400,message:e}})}function a$(e,t){var n=(e.error&&e.error.errors&&e.error.errors[0]||{}).reason||"",i={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(n=i[n]?new A(i[n]):null)return n;for(var r in n=e.error&&e.error.message||"",eg(i={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password",USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_OR_INVALID_
1NONCE:"missing-or-invalid-nonce",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",INVALID_PROVIDER_ID:"invalid-provider-id",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",WEAK_PASSWORD:"weak-password",OPERATION_NOT_ALLOWED:"operation-not-allowed",USER_CANCELLED:"user-cancelled",CAPTCHA_CHECK_FAILED:"captcha-check-failed",INVALID_APP_CREDENTIAL:"invalid-app-credential",INVALID_CODE:"invalid-verification-code",INVALID_PHONE_NUMBER:"invalid-phone-number",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_APP_CREDENTIAL:"missing-app-credential",MISSING_CODE:"missing-verification-code",MISSING_PHONE_NUMBER:"missing-phone-number",MISSING_SESSION_INFO:"missing-verification-id",QUOTA_EXCEEDED:"quota-exceeded",SESSION_EXPIRED:"code-expired",REJECTED_CREDENTIAL:"rejected-credential",INVALID_CONTINUE_URI:"invalid-continue-uri",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",MISSING_IOS_BUNDLE_ID:"missing-ios-bundle-id",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_DYNAMIC_LINK_DOMAIN:"invalid-dynamic-link-domain",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",INVALID_CERT_HASH:"invalid-cert-hash",UNSUPPORTED_TENANT_OPERATION:"unsupported-tenant-operation",INVALID_TENANT_ID:"invalid-tenant-id",TENANT_ID_MISMATCH:"tenant-id-mismatch",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",EMAIL_CHANGE_NEEDS_VERIFICATION:"email-change-needs-verification",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",UNSUPPORTED_FIRST_FACTOR:"unsupported-first-factor",UNVERIFIED_EMAIL:"unverified-email"},t||{}),t=(t=n.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&1<t.length?t[1]:void 0,i)if(0===n.indexOf(r))return new A(i[r],t);return!t&&e&&(t=n5(e)),new A("internal-error",t)}function aZ(e){var t;this.b=e,this.a=null,this.sb=(t=this,(a2||(a2=new ti(function(e,t){function n(){it(),n0("gapi.load")("gapi.iframes",{callback:e,ontimeout:function(){it(),t(Error("Network Error"))},timeout:a0.get()})}if(n0("gapi.iframes.Iframe"))e();else if(n0("gapi.load"))n();else{var i="__iframefcb"+Math.floor(1e6*Math.random()).toString();u[i]=function(){n0("gapi.load")?n():t(Error("Network Error"))},th(oL(i=ek(aQ,{onload:i}))).o(function(){t(Error("Network Error"))})}}).o(function(e){throw a2=null,e}
1))).then(function(){return new ti(function(e,n){n0("gapi.iframes.getContext")().open({where:document.body,url:t.b,messageHandlersFilter:n0("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},function(i){function r(){clearTimeout(o),e()}t.a=i,t.a.restyle({setHideOnLeave:!1});var o=setTimeout(function(){n(Error("Network Error"))},a1.get());i.ping(r).then(r,function(){n(Error("Network Error"))})})})}))}var aQ=new em(ew,"https://apis.google.com/js/api.js?onload=%{onload}"),a0=new ii(3e4,6e4),a1=new ii(5e3,15e3),a2=null;function a4(e,t,n,i){this.l=e,this.h=t,this.i=n,this.g=i,this.f=null,e=this.g?nf((e=nl(this.g.url)).c,e.a,e.g,"/emulator/auth/iframe"):nf("https",this.l,null,"/__/auth/iframe"),this.a=e,nc(this.a,"apiKey",this.h),nc(this.a,"appName",this.i),this.b=null,this.c=[]}function a3(e,t,n,i,r,o){this.u=e,this.s=t,this.c=n,this.m=i,this.v=o,this.i=this.g=this.l=null,this.a=r,this.h=this.f=null}function a6(e){try{return X.app(e).auth().Ga()}catch(e){return[]}}function a5(e,t,n,i,r,o){this.s=e,this.g=t,this.b=n,this.f=o,this.c=i||null,this.i=r||null,this.l=this.u=this.C=null,this.h=[],this.m=this.a=null}function a8(e){var t=nL();return aX(e,ax,{}).then(function(e){return e.authorizedDomains||[]}).then(function(e){e:{var n=nl(t),i=n.c;n=n.a;for(var r=0;r<e.length;r++){var o=e[r],a=n;if(a=0==o.indexOf("chrome-extension://")?nl(o).a==a&&"chrome-extension"==i:("http"==i||"https"==i)&&(nV.test(o)?a==o:RegExp("^(.+\\."+(o=o.split(".").join("\\."))+"|"+o+")$","i").test(a))){e=!0;break e}}e=!1}if(!e)throw new rY(nL())})}function a9(e){return e.m||(e.m=nK().then(function(){if(!e.u){var t=e.c,n=e.i,i=a6(e.b),r=new a4(e.s,e.g,e.b,e.f);r.f=t,r.b=n,r.c=Z(i||[]),e.u=r.toString()}e.v=new aZ(e.u),function(e){var t,n;if(!e.v)throw Error("IfcHandler must be initialized!");t=e.v,n=function(t){var n={};if(t&&t.authEvent){var i=!1;for(n=0,t=rW(t.authEvent);n<e.h.length;n++)i=e.h[n](t)||i;return(n={}).status=i?"ACK":"ERROR",th(n)}return n.status="ERROR",th(n)},t.sb.then(function(){t.a.register("authEvent",n,n0("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})}(e)})),e.m}function a7(e){return e.l||(e.C=e.c?nZ(e.c,a6(e.b)):null,e.l=new oK(e.g,R(e.i),e.C),e.f&&o5(e.l,e.f)),e.l}function se(e,t,n,i,r,o,a,s,u,c,h,l){return(e=new a3(e,t,n,i,r,l)).l=o,e.g=a,e.i=s,e.b=ed(u||null),e.f=c,e.zb(h).toString()}function st(e){if(this.a=e||X.INTERNAL.reactNative&&X.INTERNAL.reactNative.AsyncStorage,!this.a)throw new A("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function sn(e){this.b=e,this.a={},this.f=_(this.c,this)}a4.prototype.toString=function(){return this.f?nc(this.a,"v",this.f):nk(this.a.b,"v"),this.b?nc(this.a,"eid",this.b):nk(this.a.b,"eid"),this.c.length?nc(this.a,"fw",this.c.join(",")):nk(this.a.b,"fw"),this.a.toString()},a3.prototype.zb=function(e){return this.h=e,this},a3.prototype.toString=function(){if(this.v){var e=nl(this.v.url);e=nf(e.c,e.a,e.g,"/emulator/auth/handler")}else e=nf("https",this.u,null,"/__/auth/handler");if(nc(e,"apiKey",this.s),nc(e,"appName",this.c),nc(e,"authType",this.m),this.a.isOAuthProvider){var t=this.a;try{var n=X.app(this.c).auth().la()}catch(e){n=null}for(var i in t.pb=n,nc(e,"providerId",this.a.providerId),t=n8((n=this.a).Jb))t[i]=t[i].toString();i=n.Qc,t=ed(t);for(var r=0;r<i.length;r++){var o=i[r];o in t&&delete t[o]}n.qb&&n.pb&&!t[n.qb]&&(t[n.qb]=n.pb),ef(t)||nc(e,"customParameters",n5(t))}if("function"==typeof this.a.Rb&&(n=this.a.Rb()).length&&nc(e,"scopes",n.join(",")),this.l?nc(e,"redirectUrl",this.l):nk(e.b,"redirectUrl"),this.g?nc(e,"eventId",this.g):nk(e.b,"eventId"),this.i?nc(e,"v",this.i):nk(e.b,"v"),this.b)for(var a in this.b)this.b.hasOwnProperty(a)&&!nh(e,a)&&nc(e,a,this.b[a]);return this.h?nc(e,"tid",this.h):nk(e.b,"tid"),this.f?nc(e,"eid",this.f):nk(e.b,"eid"),(a=a6(this.c)).length&&nc(e,"fw",a.join(",")),e.toString()},(i=a5.prototype).Pb=function(e,t,n){var i=new A("popup-closed-by-user"),r=new A("web-storage-unsupported"),o=this,a=!1;return this.ma().then(function(){var n,i;(i={type:"webStorageSupport"},a9(n=o).then(function(){var e;return e=n.v,e.sb.then(function(){return new ti(function(t){e.a.send(i.type,i,t,n0("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})})}).then(function(e){if(e&&e.length&&void 0!==e[0].webStorageSupport)return e[0].webStorageSupport;throw Error()})).then(function(n){n||(e&&nU(e),t(r),a=!0)})}).o(function(){}).then(function(){if(!a)return new ti(function(t){return function n(){t9(2e3).then(function(){if(e&&!e.closed)return n();t()})}()})}).then(function(){if(!a)return t9(n).then(function(){t(i)})})},i.Yb=function(){var e=nQ();return!n6(e)&&!ie(e)},i.Ub=function(){return!1}
1,i.Nb=function(e,t,n,i,r,o,a,s){if(!e)return tl(new A("popup-blocked"));if(a&&!n6())return this.ma().o(function(t){nU(e),r(t)}),i(),th();this.a||(this.a=a8(a7(this)));var u=this;return this.a.then(function(){var t=u.ma().o(function(t){throw nU(e),r(t),t});return i(),t}).then(function(){rH(n),a||nj(se(u.s,u.g,u.b,t,n,null,o,u.c,void 0,u.i,s,u.f),e)}).o(function(e){throw"auth/network-request-failed"==e.code&&(u.a=null),e})},i.Ob=function(e,t,n,i){this.a||(this.a=a8(a7(this)));var r=this;return this.a.then(function(){rH(t),nj(se(r.s,r.g,r.b,e,t,nL(),n,r.c,void 0,r.i,i,r.f))}).o(function(e){throw"auth/network-request-failed"==e.code&&(r.a=null),e})},i.ma=function(){var e=this;return a9(this).then(function(){return e.v.sb}).o(function(){throw e.a=null,new A("network-request-failed")})},i.ac=function(){return!0},i.Ea=function(e){this.h.push(e)},i.Ta=function(e){J(this.h,function(t){return t==e})},(i=st.prototype).get=function(e){return th(this.a.getItem(e)).then(function(e){return e&&n9(e)})},i.set=function(e,t){return th(this.a.setItem(e,n5(t)))},i.U=function(e){return th(this.a.removeItem(e))},i.ca=function(){},i.ia=function(){};var si=[];function sr(e,t,n){ef(e.a)&&e.b.addEventListener("message",e.f),void 0===e.a[t]&&(e.a[t]=[]),e.a[t].push(n)}function so(e){this.a=e}function sa(e){this.c=e,this.b=!1,this.a=[]}function ss(e,t,n,i){var r,o,a,s,u=n||{},c=null;if(e.b)return tl(Error("connection_unavailable"));var h=i?800:50,l="undefined"!=typeof MessageChannel?new MessageChannel:null;return new ti(function(n,i){l?(r=Math.floor(1e20*Math.random()).toString(),l.port1.start(),a=setTimeout(function(){i(Error("unsupported_event"))},h),c={messageChannel:l,onMessage:o=function(e){e.data.eventId===r&&("ack"===e.data.status?(clearTimeout(a),s=setTimeout(function(){i(Error("timeout"))},3e3)):"done"===e.data.status?(clearTimeout(s),void 0!==e.data.response?n(e.data.response):i(Error("unknown_error"))):(clearTimeout(a),clearTimeout(s),i(Error("invalid_response"))))}},e.a.push(c),l.port1.addEventListener("message",o),e.c.postMessage({eventType:t,eventId:r,data:u},[l.port2])):i(Error("connection_unavailable"))}).then(function(t){return su(e,c),t}).o(function(t){throw su(e,c),t})}function su(e,t){if(t){var n=t.messageChannel,i=t.onMessage;n&&(n.port1.removeEventListener("message",i),n.port1.close()),J(e.a,function(e){return e==t})}}function sc(){if(!sf())throw new A("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.m=u.indexedDB,this.type="indexedDB",this.g=this.v=this.f=this.l=null,this.s=!1,this.h=null;var e,t=this;nW()&&self?(this.v=function(){var e=nW()?self:null;if(H(si,function(n){n.b==e&&(t=n)}),!t){var t=new sn(e);si.push(t)}return t}(),sr(this.v,"keyChanged",function(e,n){return sm(t).then(function(e){return 0<e.length&&H(t.a,function(t){t(e)}),{keyProcessed:z(e,n.key)}})}),sr(this.v,"ping",function(){return th(["keyChanged"])})):((e=u.navigator)&&e.serviceWorker?th().then(function(){return e.serviceWorker.ready}).then(function(e){return e.active||null}).o(function(){return null}):th(null)).then(function(e){(t.h=e)&&(t.g=new sa(new so(e)),ss(t.g,"ping",null,!0).then(function(e){e[0].fulfilled&&z(e[0].value,"keyChanged")&&(t.s=!0)}).o(function(){}))})}function sh(e){return e.i||(e.i=function e(t){return new ti(function(n,i){var r=t.m.open("firebaseLocalStorageDb",1);r.onerror=function(e){try{e.preventDefault()}catch(e){}i(Error(e.target.error))},r.onupgradeneeded=function(e){e=e.target.result;try{e.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(e){i(e)}},r.onsuccess=function(r){(r=r.target.result).objectStoreNames.contains("firebaseLocalStorage")?n(r):new ti(function(e,n){var i=t.m.deleteDatabase("firebaseLocalStorageDb");i.onsuccess=function(){e()},i.onerror=function(e){n(Error(e.target.error))}}).then(function(){return e(t)}).then(function(e){n(e)}).o(function(e){i(e)})}})}(e)),e.i}function sl(e,t){var n=0;return new ti(function i(r,o){sh(e).then(t).then(r).o(function(t){if(!(3<++n))return sh(e).then(function(t){return t.close(),e.i=void 0,i(r,o)}).o(function(e){o(e)});o(t)})})}function sf(){try{return!!u.indexedDB}catch(e){return!1}}function sd(e){return e.objectStore("firebaseLocalStorage")}function sp(e,t){return e.transaction(["firebaseLocalStorage"],t?"readwrite":"readonly")}function sg(e){return new ti(function(t,n){e.onsuccess=function(e){e&&e.target?t(e.target.result):t()},e.onerror=function(e){n(e.target.error)}})}function sv(e,t){var n;return e.g&&e.h&&((n=u.navigator)&&n.serviceWorker&&n.serviceWorker.controller||null)===e.h?ss(e.g,"keyChanged",{key:t},e.s).then(function(){}).o(function(){}):th()}function sm(e){return sh(e).then(function(e){var t=sd(sp(e,!1));return t.getAll?sg(t.getAll()):new ti(function(e,n){var i=[],r=t.openCursor();r.onsuccess=function(t){(t=t.target.result)?(i.push(t.value),t.continue()):e(i)},r.onerror=function(e){n(e.target.error)}})}).then(function(t){var n={},i=[];if(0==e.b){for(i=0;i<t.length;i++)n[t[i].fbase_key]=t[i].value;i=function e(t,n){var i,r=[];for(i in t)i in n?typeof t[i]!=typeof n[i]?r.push(i):"object"==typeof t[i]&&null!=t[i]&&null!=n[i]?0<e(t[i],n[i]).length&&r.push(i):t[i]!==n[i]&&r.push(i):r.push(i);for(i in n)i in t||r.push(i);return r}(e.c,n),e.c=n}return i})}
1function sb(e){e.l&&e.l.cancel("STOP_EVENT"),e.f&&(clearTimeout(e.f),e.f=null)}function sy(e){var t=this,n=null;this.a=[],this.type="indexedDB",this.c=e,this.b=th().then(function(){if(sf()){var e=n7(),i="__sak"+e;return sA||(sA=new sc),(n=sA).set(i,e).then(function(){return n.get(i)}).then(function(t){if(t!==e)throw Error("indexedDB not supported!");return n.U(i)}).then(function(){return n}).o(function(){return t.c})}return t.c}).then(function(e){return t.type=e.type,e.ca(function(e){H(t.a,function(t){t(e)})}),e})}function sw(){this.a={},this.type="inMemory"}function sI(){if(!function(){var e="Node"==nG();if(!(e=s_()||e&&X.INTERNAL.node&&X.INTERNAL.node.localStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(e){return!1}}()){if("Node"==nG())throw new A("internal-error","The LocalStorage compatibility library was not found.");throw new A("web-storage-unsupported")}this.a=s_()||X.INTERNAL.node.localStorage,this.type="localStorage"}function s_(){try{var e=u.localStorage,t=n7();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(e){return null}}function sT(){this.type="nullStorage"}function sk(){if(!function(){var e="Node"==nG();if(!(e=sS()||e&&X.INTERNAL.node&&X.INTERNAL.node.sessionStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(e){return!1}}()){if("Node"==nG())throw new A("internal-error","The SessionStorage compatibility library was not found.");throw new A("web-storage-unsupported")}this.a=sS()||X.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function sS(){try{var e=u.sessionStorage,t=n7();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(e){return null}}function sE(){var e={};e.Browser=sO,e.Node=sC,e.ReactNative=sx,e.Worker=sR,this.a=e[nG()]}sn.prototype.c=function(e){var t=e.data.eventType,n=e.data.eventId,i=this.a[t];if(i&&0<i.length){e.ports[0].postMessage({status:"ack",eventId:n,eventType:t,response:null});var r=[];H(i,function(t){r.push(th().then(function(){return t(e.origin,e.data.data)}))}),td(r).then(function(i){var r=[];H(i,function(e){r.push({fulfilled:e.Qb,value:e.value,reason:e.reason?e.reason.message:void 0})}),H(r,function(e){for(var t in e)void 0===e[t]&&delete e[t]}),e.ports[0].postMessage({status:"done",eventId:n,eventType:t,response:r})})}},so.prototype.postMessage=function(e,t){this.a.postMessage(e,t)},sa.prototype.close=function(){for(;0<this.a.length;)su(this,this.a[0]);this.b=!0},(i=sc.prototype).set=function(e,t){var n=this,i=!1;return sl(this,function(t){return sg((t=sd(sp(t,!0))).get(e))}).then(function(r){return sl(n,function(o){if(o=sd(sp(o,!0)),r)return r.value=t,sg(o.put(r));n.b++,i=!0;var a={};return a.fbase_key=e,a.value=t,sg(o.add(a))})}).then(function(){return n.c[e]=t,sv(n,e)}).oa(function(){i&&n.b--})},i.get=function(e){return sl(this,function(t){return sg(sd(sp(t,!1)).get(e))}).then(function(e){return e&&e.value})},i.U=function(e){var t=this,n=!1;return sl(this,function(i){return n=!0,t.b++,sg(sd(sp(i,!0)).delete(e))}).then(function(){return delete t.c[e],sv(t,e)}).oa(function(){n&&t.b--})},i.ca=function(e){var t;0==this.a.length&&(t=this,sb(t),function e(){t.f=setTimeout(function(){t.l=sm(t).then(function(e){0<e.length&&H(t.a,function(t){t(e)})}).then(function(){e()}).o(function(t){"STOP_EVENT"!=t.message&&e()})},800)}()),this.a.push(e)},i.ia=function(e){J(this.a,function(t){return t==e}),0==this.a.length&&sb(this)},(i=sy.prototype).get=function(e){return this.b.then(function(t){return t.get(e)})},i.set=function(e,t){return this.b.then(function(n){return n.set(e,t)})},i.U=function(e){return this.b.then(function(t){return t.U(e)})},i.ca=function(e){this.a.push(e)},i.ia=function(e){J(this.a,function(t){return t==e})},(i=sw.prototype).get=function(e){return th(this.a[e])},i.set=function(e,t){return this.a[e]=t,th()},i.U=function(e){return delete this.a[e],th()},i.ca=function(){},i.ia=function(){},(i=sI.prototype).get=function(e){var t=this;return th().then(function(){return n9(t.a.getItem(e))})},i.set=function(e,t){var n=this;return th().then(function(){var i=n5(t);null===i?n.U(e):n.a.setItem(e,i)})},i.U=function(e){var t=this;return th().then(function(){t.a.removeItem(e)})},i.ca=function(e){u.window&&tW(u.window,"storage",e)},i.ia=function(e){u.window&&tY(u.window,"storage",e)},(i=sT.prototype).get=function(){return th(null)},i.set=function(){return th()},i.U=function(){return th()},i.ca=function(){},i.ia=function(){},(i=sk.prototype).get=function(e){var t=this;return th().then(function(){return n9(t.a.getItem(e))})},i.set=function(e,t){var n=this;return th().then(function(){var i=n5(t);null===i?n.U(e):n.a.setItem(e,i)})},i.U=function(e){var t=this;return th().then(function(){t.a.removeItem(e)})},i.ca=function(){},i.ia=function(){};var sA,sN,sO={F:sI,cb:sk},sC={F:sI,cb:sk},sx={F:st,cb:sT},sR={F:sI,cb:sT}
1,sD={rd:"local",NONE:"none",td:"session"};function sP(){var e=!!(!ie(nQ())&&nq()),t=n6(),n=n1();this.m=e,this.h=t,this.l=n,this.a={},sN||(sN=new sE),e=sN;try{this.g=!nP()&&ia()||!u.indexedDB?new e.a.F:new sy(nW()?new sw:new e.a.F)}catch(e){this.g=new sw,this.h=!0}try{this.i=new e.a.cb}catch(e){this.i=new sw}this.v=new sw,this.f=_(this.Zb,this),this.b={}}function sL(){return t||(t=new sP),t}function sj(e,t){switch(t){case"session":return e.i;case"none":return e.v;default:return e.g}}function sM(e,t){return"firebase:"+e.name+(t?":"+t:"")}function sU(e,t,n){return n=sM(t,n),"local"==t.F&&(e.b[n]=null),sj(e,t.F).U(n)}function sF(e){e.c&&(clearInterval(e.c),e.c=null)}function sV(e){this.a=e,this.b=sL()}(i=sP.prototype).get=function(e,t){return sj(this,e.F).get(sM(e,t))},i.set=function(e,t,n){var i=sM(e,n),r=this,o=sj(this,e.F);return o.set(i,t).then(function(){return o.get(i)}).then(function(t){"local"==e.F&&(r.b[i]=t)})},i.addListener=function(e,t,n){var i;e=sM(e,t),this.l&&(this.b[e]=u.localStorage.getItem(e)),ef(this.a)&&(sj(this,"local").ca(this.f),this.h||(nP()||!ia())&&u.indexedDB||!this.l||(i=this,sF(i),i.c=setInterval(function(){for(var e in i.a){var t=u.localStorage.getItem(e),n=i.b[e];t!=n&&(i.b[e]=t,t=new tD({type:"storage",key:e,target:window,oldValue:n,newValue:t,a:!0}),i.Zb(t))}},1e3))),this.a[e]||(this.a[e]=[]),this.a[e].push(n)},i.removeListener=function(e,t,n){e=sM(e,t),this.a[e]&&(J(this.a[e],function(e){return e==n}),0==this.a[e].length&&delete this.a[e]),ef(this.a)&&(sj(this,"local").ia(this.f),sF(this))},i.Zb=function(e){if(e&&e.g){var t=e.a.key;if(null==t)for(var n in this.a){var i=this.b[n];void 0===i&&(i=null);var r=u.localStorage.getItem(n);r!==i&&(this.b[n]=r,this.nb(n))}else if(0==t.indexOf("firebase:")&&this.a[t]){if(void 0!==e.a.a?sj(this,"local").ia(this.f):sF(this),this.m){if(n=u.localStorage.getItem(t),(i=e.a.newValue)!==n)null!==i?u.localStorage.setItem(t,i):u.localStorage.removeItem(t);else if(this.b[t]===i&&void 0===e.a.a)return}var o=this;n=function(){(void 0!==e.a.a||o.b[t]!==u.localStorage.getItem(t))&&(o.b[t]=u.localStorage.getItem(t),o.nb(t))},eq&&e2&&10==e2&&u.localStorage.getItem(t)!==e.a.newValue&&e.a.newValue!==e.a.oldValue?setTimeout(n,10):n()}}else H(e,_(this.nb,this))},i.nb=function(e){this.a[e]&&H(this.a[e],function(e){e()})};var sB={name:"authEvent",F:"local"};function sK(){this.a=sL()}function sH(e,t){this.b=sq,this.f=u.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=e,this.h=t,this.l=u.Int32Array?new Int32Array(64):Array(64),void 0===n&&(n=u.Int32Array?new Int32Array(s$):s$),this.reset()}S(sH,function(){this.b=-1});for(var sq=64,sW=sq-1,sG=[],sz=0;sz<sW;sz++)sG[sz]=0;var sY=$(128,sG);function sX(e){for(var t=e.f,i=e.l,r=0,o=0;o<t.length;)i[r++]=t[o]<<24|t[o+1]<<16|t[o+2]<<8|t[o+3],o=4*r;for(t=16;64>t;t++){o=0|i[t-15],r=0|i[t-2];var a=(0|i[t-16])+((o>>>7|o<<25)^(o>>>18|o<<14)^o>>>3)|0,s=(0|i[t-7])+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)|0;i[t]=a+s|0}r=0|e.a[0],o=0|e.a[1];var u=0|e.a[2],c=0|e.a[3],h=0|e.a[4],l=0|e.a[5],f=0|e.a[6];for(t=0,a=0|e.a[7];64>t;t++){var d=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&o^r&u^o&u)|0;s=h&l^~h&f,s=(a=a+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))|0)+((s=s+(0|n[t])|0)+(0|i[t])|0)|0,a=f,f=l,l=h,h=c+s|0,c=u,u=o,o=r,r=s+d|0}e.a[0]=e.a[0]+r|0,e.a[1]=e.a[1]+o|0,e.a[2]=e.a[2]+u|0,e.a[3]=e.a[3]+c|0,e.a[4]=e.a[4]+h|0,e.a[5]=e.a[5]+l|0,e.a[6]=e.a[6]+f|0,e.a[7]=e.a[7]+a|0}function sJ(e,t,n){void 0===n&&(n=t.length);var i=0,r=e.c;if("string"==typeof t)for(;i<n;)e.f[r++]=t.charCodeAt(i++),r==e.b&&(sX(e),r=0);else if(p(t))for(;i<n;){var o=t[i++];if(!("number"==typeof o&&0<=o&&255>=o&&o==(0|o)))throw Error("message must be a byte array");e.f[r++]=o,r==e.b&&(sX(e),r=0)}else throw Error("message must be string or array");e.c=r,e.g+=n}sH.prototype.reset=function(){this.g=this.c=0,this.a=u.Int32Array?new Int32Array(this.h):Z(this.h)};var s$=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc
176c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2];function sZ(){sH.call(this,8,sQ)}S(sZ,sH);var sQ=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19];function s0(e,t,n,i,r,o){this.v=e,this.i=t,this.l=n,this.m=i||null,this.u=r||null,this.s=o,this.h=t+":"+n,this.C=new sK,this.g=new sV(this.h),this.f=null,this.b=[],this.a=this.c=null}function s1(e){return new A("invalid-cordova-configuration",e)}function s2(e,t){for(var n=0;n<e.b.length;n++)try{e.b[n](t)}catch(e){}}function s4(e){return e.f||(e.f=e.ma().then(function(){return new ti(function(t){e.Ea(function n(i){return t(i),e.Ta(n),!1}),function(e){function t(t){o=!0,a&&a.cancel(),s3(e).then(function(n){var i=r;if(n&&t&&t.url){var o=null;-1!=(i=rc(t.url)).indexOf("/__/auth/callback")&&(o=(o="object"==typeof(o=n9(nh(o=nl(i),"firebaseError")||null))?N(o):null)?new rq(n.c,n.b,null,null,o,null,n.T()):new rq(n.c,n.b,i,n.f,null,null,n.T())),i=o||r}s2(e,i)})}var n,i,r=new rq("unknown",null,null,null,new A("no-auth-event")),o=!1,a=t9(500).then(function(){return s3(e).then(function(){o||s2(e,r)})}),s=u.handleOpenURL;u.handleOpenURL=function(e){if(0==e.toLowerCase().indexOf(n0("BuildInfo.packageName",u).toLowerCase()+"://")&&t({url:e}),"function"==typeof s)try{s(e)}catch(e){console.error(e)}},rz||(rz=new rG),n=t,(i=rz).a.push(n),i.b||(i.b=function(e){for(var t=0;t<i.a.length;t++)i.a[t](e)},"function"==typeof(n=n0("universalLinks.subscribe",u))&&n(null,i.b))}(e)})})),e.f}function s3(e){var t,n=null;return(t=e.g).b.get(sB,t.a).then(function(e){return rW(e)}).then(function(t){return n=t,sU((t=e.g).b,sB,t.a)}).then(function(){return n})}function s6(e){this.a=e,this.b=sL()}(i=s0.prototype).ma=function(){return this.Ia?this.Ia:this.Ia=(nH(void 0)?nK().then(function(){return new ti(function(e,t){var n=u.document,i=setTimeout(function(){t(Error("Cordova framework is not ready."))},1e3);n.addEventListener("deviceready",function(){clearTimeout(i),e()},!1)})}):tl(Error("Cordova must run in an Android or iOS file scheme."))).then(function(){if("function"!=typeof n0("universalLinks.subscribe",u))throw s1("cordova-universal-links-plugin-fix is not installed");if(void 0===n0("BuildInfo.packageName",u))throw s1("cordova-plugin-buildinfo is not installed");if("function"!=typeof n0("cordova.plugins.browsertab.openUrl",u))throw s1("cordova-plugin-browsertab is not installed");if("function"!=typeof n0("cordova.InAppBrowser.open",u))throw s1("cordova-plugin-inappbrowser is not installed")},function(){throw new A("cordova-not-ready")})},i.Pb=function(e,t){return t(new A("operation-not-supported-in-this-environment")),th()},i.Nb=function(){return tl(new A("operation-not-supported-in-this-environment"))},i.ac=function(){return!1},i.Yb=function(){return!0},i.Ub=function(){return!0},i.Ob=function(e,t,n,i){if(this.c)return tl(new A("redirect-operation-pending"));var r=this,o=u.document,a=null,s=null,c=null,h=null;return this.c=th().then(function(){return rH(t),s4(r)}).then(function(){return function(e,t,n,i,r){var o=function(){for(var e=20,t=[];0<e;)t.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return t.join("")}(),a=new rq(t,i,null,o,new A("no-auth-event"),null,r),s=n0("BuildInfo.packageName",u);if("string"!=typeof s)throw new A("invalid-cordova-configuration");var c=n0("BuildInfo.displayName",u),h={};if(nQ().toLowerCase().match(/iphone|ipad|ipod/))h.ibi=s;else{if(!nQ().toLowerCase().match(/android/))return tl(new A("operation-not-supported-in-this-environment"));h.apn=s}c&&(h.appDisplayName=c),h.sessionId=o=function(e){var t=new sZ;sJ(t,e),e=[];var n=8*t.g;56>t.c?sJ(t,sY,56-t.c):sJ(t,sY,t.b-(t.c-56));for(var i=63;56<=i;i--)t.f[i]=255&n,n/=256;for(sX(t),i=n=0;i<t.i;i++)for(var r=24;0<=r;r-=8)e[n++]=t.a[i]>>r&255;return W(e,function(e){return 1<(e=e.toString(16)).length?e:"0"+e}).join("")}(o);var l=se(e.v,e.i,e.l,t,n,null,i,e.m,h,e.u,r,e.s);return e.ma().then(function(){var t=e.h;return e.C.a.set(sB,a.w(),t)}).then(function(){var t=n0("cordova.plugins.browsertab.isAvailable",u);if("function"!=typeof t)throw new A("invalid-cordova-configuration");var n=null;t(function(t){if(t){if("function"!=typeof(n=n0("cordova.plugins.browsertab.openUrl",u)))throw new A("invalid-cordova-configuration");n(l)}else{if("function"!=typeof(n=n0("cordova.InAppBrowser.open",u)))throw new A("invalid-cordova-configuration");t=nQ(),e.a=n(l,t.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||t.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}})})}(r,e,t,n,i)}).then(function(){return new ti(function(e,t){s=function(){var t=n0("cordova.plugins.browsertab.close",u);return e(),"function"==typeof t&&t(),r.a&&"function"==typeof r.a.close&&(r.a.close(),r.a=null),!1},r.Ea(s),c=function(){a||(a=t9(2e3).then(function(){t(new A("redirect-cancelled-by-user"))}))},h=function(){ir()&&c()},o.addEventListener("resume",c,!1),nQ().toLowerCase().match(/android/)||o.addEventListener("visibilitychange",h,!1)}).o(function(e){return s3(r).then(function(){throw e})})}).oa(function(){c&&o.removeEventListener("resume",c,!1),h&&o.removeEventListener("visibilitychange",h,!1),a&&a.cancel(),s&&r.Ta(s),r.c=null})},i.Ea=function(e){this.b.push(e),s4(this).o(function(t){"auth/invalid-cordova-configuration"===t.code&&e(t=new rq("unknown",null,null,null,new A("no-auth-event")))})},i.Ta=function(e){J(this.b,function(t){return t==e})};
1var s5={name:"pendingRedirect",F:"session"};function s8(e){return sU(e.b,s5,e.a)}function s9(e,t,n,i){this.i={},this.u=0,this.D=e,this.v=t,this.m=n,this.J=i,this.h=[],this.f=!1,this.l=_(this.s,this),this.b=new ud,this.C=new ub,this.g=new s6(ul(this.v,this.m)),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.C,this.c.linkViaPopup=this.C,this.c.reauthViaPopup=this.C,this.a=s7(this.D,this.v,this.m,oq,this.J)}function s7(e,t,n,i,r){var o=X.SDK_VERSION||null;return nH()?new s0(e,t,n,o,i,r):new a5(e,t,n,o,i,r)}function ue(e){e.f||(e.f=!0,e.a.Ea(e.l));var t=e.a;return e.a.ma().o(function(n){throw e.a==t&&e.reset(),n})}function ut(e){e.a.Yb()&&ue(e).o(function(t){var n=new rq("unknown",null,null,null,new A("operation-not-supported-in-this-environment"));us(t)&&e.s(n)}),e.a.Ub()||up(e.b)}function un(e,t){var n;z(e.h,t)||e.h.push(t),e.f||(n=e.g).b.get(s5,n.a).then(function(e){return"pending"==e}).then(function(t){t?s8(e.g).then(function(){ue(e).o(function(t){var n=new rq("unknown",null,null,null,new A("operation-not-supported-in-this-environment"));us(t)&&e.s(n)})}):ut(e)}).o(function(){ut(e)})}function ui(e,t){J(e.h,function(e){return e==t})}s9.prototype.reset=function(){this.f=!1,this.a.Ta(this.l),this.a=s7(this.D,this.v,this.m,null,this.J),this.i={}},s9.prototype.s=function(e){if(!e)throw new A("invalid-auth-event");if(6e5<=Date.now()-this.u&&(this.i={},this.u=0),e&&e.getUid()&&this.i.hasOwnProperty(e.getUid()))return!1;for(var t=!1,n=0;n<this.h.length;n++){var i=this.h[n];if(i.Gb(e.c,e.b)){(t=this.c[e.c])&&(t.h(e,i),e&&(e.f||e.b)&&(this.i[e.getUid()]=!0,this.u=Date.now())),t=!0;break}}return up(this.b),t};var ur=new ii(2e3,1e4),uo=new ii(3e4,6e4);function ua(e,t,n,i,r,o,a){return e.a.Nb(t,n,i,function(){e.f||(e.f=!0,e.a.Ea(e.l))},function(){e.reset()},r,o,a)}function us(e){return!!e&&"auth/cordova-not-ready"==e.code}function uu(e,t,n,i,r){var o,a;return(a=e.g).b.set(s5,"pending",a.a).then(function(){return e.a.Ob(t,n,i,r).o(function(t){if(us(t))throw new A("operation-not-supported-in-this-environment");return o=t,s8(e.g).then(function(){throw o})}).then(function(){return e.a.ac()?new ti(function(){}):s8(e.g).then(function(){return e.ra()}).then(function(){}).o(function(){})})})}function uc(e,t,n,i,r){return e.a.Pb(i,function(e){t.na(n,null,e,r)},ur.get())}s9.prototype.ra=function(){return this.b.ra()};var uh={};function ul(e,t,n){return e=e+":"+t,n&&(e=e+":"+n.url),e}function uf(e,t,n,i){var r=ul(t,n,i);return uh[r]||(uh[r]=new s9(e,t,n,i)),uh[r]}function ud(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function up(e){e.g||(e.g=!0,um(e,!1,null,null))}function ug(e){e.g&&!e.i&&um(e,!1,null,null)}function uv(e,t){if(e.b=function(){return th(t)},e.f.length)for(var n=0;n<e.f.length;n++)e.f[n](t)}function um(e,t,n,i){t?i?function(e,t){if(e.b=function(){return tl(t)},e.c.length)for(var n=0;n<e.c.length;n++)e.c[n](t)}(e,i):uv(e,n):uv(e,{user:null}),e.f=[],e.c=[]}function ub(){}function uy(){this.jb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.jb},set:function(e){this.jb=e},enumerable:!1})}function uw(e,t){this.a=t,ih(this,"verificationId",e)}function uI(e,t,n,i){return new rV(e).gb(t,n).then(function(e){return new uw(e,i)})}function u_(e){var t=i6(e);if(!(t&&t.exp&&t.auth_time&&t.iat))throw new A("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");il(this,{token:e,expirationTime:io(1e3*t.exp),authTime:io(1e3*t.auth_time),issuedAtTime:io(1e3*t.iat),signInProvider:t.firebase&&t.firebase.sign_in_provider?t.firebase.sign_in_provider:null,signInSecondFactor:t.firebase&&t.firebase.sign_in_second_factor?t.firebase.sign_in_second_factor:null,claims:t})}function uT(e,t,n){var i=t&&t[uS];if(!i)throw new A("argument-error","Internal assert: Invalid MultiFactorResolver");this.a=e,this.f=ed(t),this.g=n,this.c=new rh(null,i),this.b=[];var r=this;H(t[uk]||[],function(e){(e=iv(e))&&r.b.push(e)}),ih(this,"auth",this.a),ih(this,"session",this.c),ih(this,"hints",this.b)}ud.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},ud.prototype.h=function(e,t){if(e){this.reset(),this.g=!0;var n,i,r,o,a,s,u,c,h=e.c,l=e.b,f=e.a&&"auth/web-storage-unsupported"==e.a.code,d=e.a&&"auth/operation-not-supported-in-this-environment"==e.a.code;this.i=!(!f&&!d),"unknown"!=h||f||d?e.a?(um(this,!0,null,e.a),th()):t.Fa(h,l)?(n=this,i=e,r=(r=t).Fa(i.c,i.b),o=i.g,a=i.f,s=i.i,u=i.T(),c=!!i.c.match(/Redirect$/),r(o,a,u,s).then(function(e){um(n,c,e,null)}).o(function(e){um(n,c,null,e)})):tl(new A("invalid-auth-event")):(um(this,!1,null,null),th())}else tl(new A("invalid-auth-event"))},ud.prototype.ra=function(){var e=this;return new ti(function(t,n){var i,r;e.b?e.b().then(t,n):(e.f.push(t),e.c.push(n),i=e,r=new A("timeout"),i.a&&i.a.cancel(),i.a=t9(uo.get()).then(function(){i.b||(i.g=!0,um(i,!0,null,r))}))})},ub.prototype.h=function(e,t){if(e){var n,i,r,o,a=e.c,s=e.b;e.a?(t.na(e.c,null,e.a,e.b),th()):t.Fa(a,s)?(n=e,i=t,r=n.b,o=n.c,i.Fa(o,r)(n.g,n.f,n.T(),n.i).then(function(e){i.na(o,e,null,r)}).o(function(e){i.na(o,null,e,r)})):tl(new A("invalid-auth-event"))}else tl(new A("invalid-auth-event"))},uw.prototype.confirm=function(e){return e=rB(this.verificationId,e),this.a(e)};var uk="mfaInfo",uS="mfaPendingCredential";function uE(e,t,n,i){A.call(this,"multi-factor-auth-required",i,t),this.b=new uT(e,t,n),ih(this,"resolver",this.b)}function uA(e,t,n){if(e&&v(e.serverResponse)&&"auth/multi-factor-auth-required"===e.code)try{return new uE(t,e.serverResponse,n,e.message)}catch(e){}return null}function uN(){}function uO(e){ih(this,"factorId",e.fa),this.a=e}function uC(e){if(uO.call(this,e),this.a.fa!=rV.PROVIDER_ID)throw new A("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential")}function ux(e,t){for(var n in tR.call(this,e),t)this[n]=t[n]}function uR(e,t){this.a=e,this.b=[],this.c=_(this.yc,this),tW(this.a,"userReloaded",this.c);var n=[];t&&t.multiFactor&&t.multiFactor.enrolledFactors&&H(t.multiFactor.enrolledFactors,function(e){var t=null,i={};if(e){e.uid&&(i[iy]=e.uid),e.displayName&&(i[im]=e.displayName),e.enrollmentTime&&(i[ib]=new Date(e.enrollmentTime).toISOString()),e.phoneNumber&&(i[iw]=e.phoneNumber);try{t=new iI(i)}catch(e){}e=t}else e=null;e&&n.push(e)}),uD(this,n)}function uD(e,t){e.b=t,ih(e,"enrolledFactors",t)}function uP(e,t,n){if(this.h=e,this.i=t,this.g=n,this.c=3e4,this.f=96e4,this.b=null,this.a=this.c,this.f<this.c)throw Error("Proactive refresh lower bound greater than upper bound!")}function uL(e){this.f=e,this.b=this.a=null,this.c=Date.now()}function uj(e,t){void 0===t&&(t=e.b?(t=e.b).a-t.g:0),e.c=Date.now()+1e3*t}function uM(e,t){e.b=i3(t[o0]||""),e.a=t.refreshToken,uj(e,void 0!==(t=t.expires
1In)?Number(t):void 0)}function uU(e,t){this.a=e||null,this.b=t||null,il(this,{lastSignInTime:io(t||null),creationTime:io(e||null)})}function uF(e,t,n,i,r,o){il(this,{uid:e,displayName:i||null,photoURL:r||null,email:n||null,phoneNumber:o||null,providerId:t})}function uV(e,t,n){this.N=[],this.l=e.apiKey,this.m=e.appName,this.s=e.authDomain||null;var i,r=X.SDK_VERSION?nZ(X.SDK_VERSION):null;this.a=new oK(this.l,R(oq),r),(this.u=e.emulatorConfig||null)&&o5(this.a,this.u),this.h=new uL(this.a),uX(this,t[o0]),uM(this.h,t),ih(this,"refreshToken",this.h.a),uZ(this,n||{}),t4.call(this),this.P=!1,this.s&&n2()&&(this.b=uf(this.s,this.l,this.m,this.u)),this.W=[],this.i=null,this.D=(i=this,new uP(function(){return i.I(!0)},function(e){return!!e&&"auth/network-request-failed"==e.code},function(){var e=i.h.c-Date.now()-3e5;return 0<e?e:0})),this.ba=_(this.ib,this);var o=this;this.za=null,this.Pa=function(e){o.xa(e.h)},this.qa=null,this.Ba=function(e){uB(o,e.c)},this.$=null,this.aa=[],this.Oa=function(e){uq(o,e.f)},this.ja=null,this.S=new uR(this,n),ih(this,"multiFactor",this.S)}function uB(e,t){e.u=t,o5(e.a,t),e.b&&(t=e.b,e.b=uf(e.s,e.l,e.m,e.u),e.P&&(ui(t,e),un(e.b,e)))}function uK(e,t){e.qa&&tY(e.qa,"languageCodeChanged",e.Pa),(e.qa=t)&&tW(t,"languageCodeChanged",e.Pa)}function uH(e,t){e.$&&tY(e.$,"emulatorConfigChanged",e.Ba),(e.$=t)&&tW(t,"emulatorConfigChanged",e.Ba)}function uq(e,t){e.aa=t,o9(e.a,X.SDK_VERSION?nZ(X.SDK_VERSION,e.aa):null)}function uW(e,t){e.ja&&tY(e.ja,"frameworkChanged",e.Oa),(e.ja=t)&&tW(t,"frameworkChanged",e.Oa)}function uG(e){try{return X.app(e.m).auth()}catch(t){throw new A("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+e.m+"'!")}}function uz(e){e.J||e.D.b||(e.D.start(),tY(e,"tokenChanged",e.ba),tW(e,"tokenChanged",e.ba))}function uY(e){tY(e,"tokenChanged",e.ba),e.D.stop()}function uX(e,t){e.Aa=t,ih(e,"_lat",t)}function uJ(e){for(var t=[],n=0;n<e.W.length;n++)t.push(e.W[n](e));return td(t).then(function(){return e})}function u$(e){e.b&&!e.P&&(e.P=!0,un(e.b,e))}function uZ(e,t){il(e,{uid:t.uid,displayName:t.displayName||null,photoURL:t.photoURL||null,email:t.email||null,emailVerified:t.emailVerified||!1,phoneNumber:t.phoneNumber||null,isAnonymous:t.isAnonymous||!1,tenantId:t.tenantId||null,metadata:new uU(t.createdAt,t.lastLoginAt),providerData:[]}),e.a.b=e.tenantId}function uQ(){}function u0(e){return th().then(function(){if(e.J)throw new A("app-deleted")})}function u1(e){return W(e.providerData,function(e){return e.providerId})}function u2(e,t){t&&(u4(e,t.providerId),e.providerData.push(t))}function u4(e,t){J(e.providerData,function(e){return e.providerId==t})}function u3(e,t,n){("uid"!=t||n)&&e.hasOwnProperty(t)&&ih(e,t,n)}function u6(e,t){var n,i,r;e!=t&&(il(e,{uid:t.uid,displayName:t.displayName,photoURL:t.photoURL,email:t.email,emailVerified:t.emailVerified,phoneNumber:t.phoneNumber,isAnonymous:t.isAnonymous,tenantId:t.tenantId,providerData:[]}),t.metadata?ih(e,"metadata",new uU((n=t.metadata).a,n.b)):ih(e,"metadata",new uU),H(t.providerData,function(t){u2(e,t)}),(i=e.h).b=(r=t.h).b,i.a=r.a,i.c=r.c,ih(e,"refreshToken",e.h.a),uD(e.S,t.S.b))}function u5(e){return e.I().then(function(t){var n,i,r=e.isAnonymous;return(n=e,i=t,aX(n.a,aE,{idToken:i}).then(_(n.Kc,n))).then(function(){return r||u3(e,"isAnonymous",!1),t})})}function u8(e,t){t[o0]&&e.Aa!=t[o0]&&(uM(e.h,t),e.dispatchEvent(new ux("tokenChanged")),uX(e,t[o0]),u3(e,"refreshToken",e.h.a))}function u9(e,t){return u5(e).then(function(){if(z(u1(e),t))return uJ(e).then(function(){throw new A("provider-already-linked")})})}function u7(e,t,n){return id({user:e,credential:rK(t),additionalUserInfo:t=re(t),operationType:n})}function ce(e,t){return u8(e,t),e.reload().then(function(){return e})}function ct(e,t,n,i,r){if(!n2())return tl(new A("operation-not-supported-in-this-environment"));if(e.i&&!r)return tl(e.i);var o=i7(n.providerId),a=n7(e.uid+":::"),s=null;(!n6()||nq())&&e.s&&n.isOAuthProvider&&(s=se(e.s,e.l,e.m,t,n,null,a,X.SDK_VERSION||null,null,null,e.tenantId,e.u));var u=nF(s,o&&o.va,o&&o.ua);return i=i().then(function(){if(ci(e),!r)return e.I().then(function(){})}).then(function(){return ua(e.b,u,t,n,a,!!s,e.tenantId)}
1).then(function(){return new ti(function(n,i){e.na(t,null,new A("cancelled-popup-request"),e.g||null),e.f=n,e.C=i,e.g=a,e.c=uc(e.b,e,t,u,a)})}).then(function(e){return u&&nU(u),e?id(e):null}).o(function(e){throw u&&nU(u),e}),cr(e,i,r)}function cn(e,t,n,i,r){if(!n2())return tl(new A("operation-not-supported-in-this-environment"));if(e.i&&!r)return tl(e.i);var o=null,a=n7(e.uid+":::");return i=i().then(function(){if(ci(e),!r)return e.I().then(function(){})}).then(function(){return e.ga=a,uJ(e)}).then(function(t){return e.ha&&(t=(t=e.ha).b.set(cs,e.w(),t.a)),t}).then(function(){return uu(e.b,t,n,a,e.tenantId)}).o(function(t){if(o=t,e.ha)return cu(e.ha);throw o}).then(function(){if(o)throw o}),cr(e,i,r)}function ci(e){if(!e.b||!e.P){if(e.b&&!e.P)throw new A("internal-error");throw new A("auth-domain-config-required")}}function cr(e,t,n){var i,r,o,a=(i=e,r=t,o=n,i.i&&!o?(r.cancel(),tl(i.i)):r.o(function(e){throw e&&("auth/user-disabled"==e.code||"auth/user-token-expired"==e.code)&&(i.i||i.dispatchEvent(new ux("userInvalidated")),i.i=e),e}));return e.N.push(a),a.oa(function(){Y(e.N,a)}),a.o(function(t){var n=null;throw t&&"auth/multi-factor-auth-required"===t.code&&(n=uA(t.w(),uG(e),_(e.jc,e))),n||t})}function co(e){if(!e.apiKey)return null;var t={apiKey:e.apiKey,authDomain:e.authDomain,appName:e.appName,emulatorConfig:e.emulatorConfig},n={};if(!e.stsTokenManager||!e.stsTokenManager.accessToken)return null;n[o0]=e.stsTokenManager.accessToken,n.refreshToken=e.stsTokenManager.refreshToken||null;var i=e.stsTokenManager.expirationTime;i&&(n.expiresIn=(i-Date.now())/1e3);var r=new uV(t,n,e);return e.providerData&&H(e.providerData,function(e){e&&u2(r,id(e))}),e.redirectEventId&&(r.ga=e.redirectEventId),r}function ca(e){this.a=e,this.b=sL()}uT.prototype.Rc=function(e){var t=this;return e.tb(this.a.a,this.c).then(function(e){var n=ed(t.f);return delete n[uk],delete n[uS],eg(n,e),t.g(n)})},S(uE,A),uN.prototype.tb=function(e,t,n){var i,r,o,a,s,u;return t.type==rl?(i=this,r=e,o=t,a=n,o.Ha().then(function(e){return e={idToken:e},void 0!==a&&(e.displayName=a),eg(e,{phoneVerificationInfo:rF(i.a)}),aX(r,ak,e)})):(s=this,u=e,t.Ha().then(function(e){return eg(e={mfaPendingCredential:e},{phoneVerificationInfo:rF(s.a)}),aX(u,aS,e)}))},S(uO,uN),S(uC,uO),S(ux,tR),(i=uR.prototype).yc=function(e){var t,n;uD(this,(t=e.hd,n=[],H(t.mfaInfo||[],function(e){(e=iv(e))&&n.push(e)}),n))},i.Sb=function(){return this.a.I().then(function(e){return new rh(e,null)})},i.fc=function(e,t){var n=this,i=this.a.a;return this.Sb().then(function(n){return e.tb(i,n,t)}).then(function(e){return u8(n.a,e),n.a.reload()})},i.bd=function(e){var t=this,n="string"==typeof e?e:e.uid,i=this.a.a;return this.a.I().then(function(e){return aX(i,aY,{idToken:e,mfaEnrollmentId:n})}).then(function(e){var i=q(t.b,function(e){return e.uid!=n});return uD(t,i),u8(t.a,e),t.a.reload().o(function(e){if("auth/user-token-expired"!=e.code)throw e})})},i.w=function(){return{multiFactor:{enrolledFactors:W(this.b,function(e){return e.w()})}}},uP.prototype.start=function(){this.a=this.c,function e(t,n){var i;t.stop(),t.b=t9((i=n)?(t.a=t.c,t.g()):(i=t.a,t.a*=2,t.a>t.f&&(t.a=t.f),i)).then(function(){var e,t;return e=u.document,t=null,ir()||!e?th():new ti(function(n){t=function(){ir()&&(e.removeEventListener("visibilitychange",t,!1),n())},e.addEventListener("visibilitychange",t,!1)}).o(function(n){throw e.removeEventListener("visibilitychange",t,!1),n})}).then(function(){return t.h()}).then(function(){e(t,!0)}).o(function(n){t.i(n)&&e(t,!1)})}(this,!0)},uP.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},uL.prototype.w=function(){return{apiKey:this.f.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:this.c}},uL.prototype.getToken=function(e){var t,n,i;return e=!!e,this.b&&!this.a?tl(new A("user-token-expired")):e||!this.b||Date.now()>this.c-3e4?this.a?(t=this,n={grant_type:"refresh_token",refresh_token:this.a},(i=t.f,new ti(function(e,t){"refresh_token"==n.grant_type&&n.refresh_token||"authorization_code"==n.grant_type&&n.code?o7(i,i.l+"?key="+encodeURIComponent(i.c),function(n){n?n.error?t(a$(n)):n.access_token&&n.refresh_token?e(n):t(new A("internal-error")):t(new A("network-request-failed"))},"POST",nT(n).toString(),i.g,i.m.get()):t(new A("internal-error"))})).then(function(e){return t.b=i3(e.access_token),t.a=e.refresh_token,uj(t,e.expires_in),{accessToken:t.b.toString(),refreshToken:t.a}}).o(function(e){throw"auth/user-token-expired"==e.code&&(t.a=null),e})):th(null):th({accessToken:this.b.toString(),refreshToken:this.a})},uU.prototype.w=function(){return{lastLoginAt:this.b,createdAt:this.a}},S(uV,t4),uV.prototype.xa=function(e){this.za=e,o6(this.a,e)},uV.prototype.la=function(){return this.za},uV.prototype.Ga=function(){return Z(this.aa)},uV.prototype.ib=function(){this.D.b&&(this.D.stop(),this.D.start())},ih(uV.prototype,"providerId","firebase"),(i=uV.prototype).reload=function(){var e=this;return cr(this,u0(this).then(function(){return u5(e).then(function(){return uJ(e)}).then(uQ)}))},i.oc=function(e){return this.I(e).then(function(e){return new u_(e)})},i.I=function(e){var t=this;return cr(this,u0(this).then(function(){return t.h.getToken(e)}).then(function(e){if(!e)throw new A("internal-error");
1return e.accessToken!=t.Aa&&(uX(t,e.accessToken),t.dispatchEvent(new ux("tokenChanged"))),u3(t,"refreshToken",e.refreshToken),e.accessToken}))},i.Kc=function(e){if(!(e=e.users)||!e.length)throw new A("internal-error");uZ(this,{uid:(e=e[0]).localId,displayName:e.displayName,photoURL:e.photoUrl,email:e.email,emailVerified:!!e.emailVerified,phoneNumber:e.phoneNumber,lastLoginAt:e.lastLoginAt,createdAt:e.createdAt,tenantId:e.tenantId});for(var t,n=(t=(t=e).providerUserInfo)&&t.length?W(t,function(e){return new uF(e.rawId,e.providerId,e.email,e.displayName,e.photoUrl,e.phoneNumber)}):[],i=0;i<n.length;i++)u2(this,n[i]);u3(this,"isAnonymous",!(this.email&&e.passwordHash)&&!(this.providerData&&this.providerData.length)),this.dispatchEvent(new ux("userReloaded",{hd:e}))},i.Lc=function(e){return iu("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.ub(e)},i.ub=function(e){var t=this,n=null;return cr(this,e.c(this.a,this.uid).then(function(e){return u8(t,e),n=u7(t,e,"reauthenticate"),t.i=null,t.reload()}).then(function(){return n}),!0)},i.Cc=function(e){return iu("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.rb(e)},i.rb=function(e){var t=this,n=null;return cr(this,u9(this,e.providerId).then(function(){return t.I()}).then(function(n){return e.b(t.a,n)}).then(function(e){return n=u7(t,e,"link"),ce(t,e)}).then(function(){return n}))},i.Dc=function(e,t){var n=this;return cr(this,u9(this,"phone").then(function(){return uI(uG(n),e,t,_(n.rb,n))}))},i.Mc=function(e,t){var n=this;return cr(this,th().then(function(){return uI(uG(n),e,t,_(n.ub,n))}),!0)},i.Cb=function(e){var t=this;return cr(this,this.I().then(function(n){return t.a.Cb(n,e)}).then(function(e){return u8(t,e),t.reload()}))},i.ed=function(e){var t=this;return cr(this,this.I().then(function(n){return e.b(t.a,n)}).then(function(e){return u8(t,e),t.reload()}))},i.Db=function(e){var t=this;return cr(this,this.I().then(function(n){return t.a.Db(n,e)}).then(function(e){return u8(t,e),t.reload()}))},i.Eb=function(e){if(void 0===e.displayName&&void 0===e.photoURL)return u0(this);var t=this;return cr(this,this.I().then(function(n){return t.a.Eb(n,{displayName:e.displayName,photoUrl:e.photoURL})}).then(function(e){return u8(t,e),u3(t,"displayName",e.displayName||null),u3(t,"photoURL",e.photoUrl||null),H(t.providerData,function(e){"password"===e.providerId&&(ih(e,"displayName",t.displayName),ih(e,"photoURL",t.photoURL))}),uJ(t)}).then(uQ))},i.cd=function(e){var t=this;return cr(this,u5(this).then(function(n){return z(u1(t),e)?aX(t.a,aI,{idToken:n,deleteProvider:[e]}).then(function(e){var n={};return H(e.providerUserInfo||[],function(e){n[e.providerId]=!0}),H(u1(t),function(e){n[e]||u4(t,e)}),n[rV.PROVIDER_ID]||ih(t,"phoneNumber",null),uJ(t)}):uJ(t).then(function(){throw new A("no-such-provider")})}))},i.delete=function(){var e=this;return cr(this,this.I().then(function(t){return aX(e.a,aw,{idToken:t})}).then(function(){e.dispatchEvent(new ux("userDeleted"))})).then(function(){for(var t=0;t<e.N.length;t++)e.N[t].cancel("app-deleted");uK(e,null),uH(e,null),uW(e,null),e.N=[],e.J=!0,uY(e),ih(e,"refreshToken",null),e.b&&ui(e.b,e)})},i.Gb=function(e,t){return"linkViaPopup"==e&&(this.g||null)==t&&!!this.f||"reauthViaPopup"==e&&(this.g||null)==t&&!!this.f||"linkViaRedirect"==e&&(this.ga||null)==t||"reauthViaRedirect"==e&&(this.ga||null)==t},i.na=function(e,t,n,i){"linkViaPopup"!=e&&"reauthViaPopup"!=e||i!=(this.g||null)||(n&&this.C?this.C(n):t&&!n&&this.f&&this.f(t),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.C)},i.Fa=function(e,t){return"linkViaPopup"==e&&t==(this.g||null)?_(this.Lb,this):"reauthViaPopup"==e&&t==(this.g||null)?_(this.Mb,this):"linkViaRedirect"==e&&(this.ga||null)==t?_(this.Lb,this):"reauthViaRedirect"==e&&(this.ga||null)==t?_(this.Mb,this):null},i.Ec=function(e){var t=this;return ct(this,"linkViaPopup",e,function(){return u9(t,e.providerId).then(function(){return uJ(t)})},!1)},i.Nc=function(e){return ct(this,"reauthViaPopup",e,function(){return th()},!0)},i.Fc=function(e){var t=this;return cn(this,"linkViaRedirect",e,function(){return u9(t,e.providerId)},!1)},i.Oc=function(e){return cn(this,"reauthViaRedirect",e,function(){return th()},!0)},i.Lb=function(e,t,n,i){var r=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return cr(this,this.I().then(function(n){return ad(r.a,{requestUri:e,postBody:i,sessionId:t,idToken:n})}).then(function(e){return o=u7(r,e,"link"),ce(r,e)}).then(function(){return o}
1))},i.Mb=function(e,t,n,i){var r=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return cr(this,th().then(function(){return rp(ap(r.a,{requestUri:e,sessionId:t,postBody:i,tenantId:n}),r.uid)}).then(function(e){return o=u7(r,e,"reauthenticate"),u8(r,e),r.i=null,r.reload()}).then(function(){return o}),!0)},i.vb=function(e){var t=this,n=null;return cr(this,this.I().then(function(t){return n=t,void 0===e||ef(e)?{}:i1(new iW(e))}).then(function(e){return t.a.vb(n,e)}).then(function(e){if(t.email!=e)return t.reload()}).then(function(){}))},i.Fb=function(e,t){var n=this,i=null;return cr(this,this.I().then(function(e){return i=e,void 0===t||ef(t)?{}:i1(new iW(t))}).then(function(t){return n.a.Fb(i,e,t)}).then(function(e){if(n.email!=e)return n.reload()}).then(function(){}))},i.jc=function(e){var t=null,n=this;return cr(this,e=rp(th(e),n.uid).then(function(e){return t=u7(n,e,"reauthenticate"),u8(n,e),n.i=null,n.reload()}).then(function(){return t}),!0)},i.toJSON=function(){return this.w()},i.w=function(){var e={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,tenantId:this.tenantId,providerData:[],apiKey:this.l,appName:this.m,authDomain:this.s,stsTokenManager:this.h.w(),redirectEventId:this.ga||null};return this.metadata&&eg(e,this.metadata.w()),H(this.providerData,function(t){e.providerData.push(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}(t))}),eg(e,this.S.w()),e};var cs={name:"redirectUser",F:"session"};function cu(e){return sU(e.b,cs,e.a)}function cc(e){this.a=e,this.b=sL(),this.c=null,this.f=function(e){var t,n,i,r,o=cf("local"),a=cf("session"),s=cf("none");return(t=e.b,i=sM(o,n=e.a),r=sj(t,o.F),t.get(o,n).then(function(e){var a=null;try{a=n9(u.localStorage.getItem(i))}catch(e){}if(a&&!e)return u.localStorage.removeItem(i),t.set(o,a,n);a&&e&&"localStorage"!=r.type&&u.localStorage.removeItem(i)})).then(function(){return e.b.get(a,e.a)}).then(function(t){return t?a:e.b.get(s,e.a).then(function(t){return t?s:e.b.get(o,e.a).then(function(t){return t?o:e.b.get(cl,e.a).then(function(e){return e?cf(e):o})})})}).then(function(t){return e.c=t,ch(e,t.F)}).o(function(){e.c||(e.c=o)})}(this),this.b.addListener(cf("local"),this.a,_(this.g,this))}function ch(e,t){var n,i=[];for(n in sD)sD[n]!==t&&i.push(sU(e.b,cf(sD[n]),e.a));return i.push(sU(e.b,cl,e.a)),new ti(function(e,t){var n=i.length,r=[];if(n)for(var o=function(t,i){n--,r[t]=i,0==n&&e(r)},a=function(e){t(e)},s=0;s<i.length;s++)tf(i[s],T(o,s),a);else e(r)})}cc.prototype.g=function(){var e=this,t=cf("local");cv(this,function(){return th().then(function(){return e.c&&"local"!=e.c.F?e.b.get(t,e.a):null}).then(function(n){if(n)return ch(e,"local").then(function(){e.c=t})})})};var cl={name:"persistence",F:"session"};function cf(e){return{name:"authUser",F:e}}function cd(e,t){return cv(e,function(){return e.b.set(e.c,t.w(),e.a)})}function cp(e){return cv(e,function(){return sU(e.b,e.c,e.a)})}function cg(e,t,n){return cv(e,function(){return e.b.get(e.c,e.a).then(function(e){return e&&t&&(e.authDomain=t),e&&n&&(e.emulatorConfig=n),co(e||{})})})}function cv(e,t){return e.f=e.f.then(t,t),e.f}function cm(e){var t,n,i,r,o;
1if(this.l=!1,ih(this,"settings",new uy),ih(this,"app",e),cS(this).options&&cS(this).options.apiKey)e=X.SDK_VERSION?nZ(X.SDK_VERSION):null,this.a=new oK(cS(this).options&&cS(this).options.apiKey,R(oq),e);else throw new A("invalid-api-key");this.P=[],this.s=[],this.N=[],this.Pa=X.INTERNAL.createSubscribe(_(this.zc,this)),this.W=void 0,this.ib=X.INTERNAL.createSubscribe(_(this.Ac,this)),cT(this,null),this.i=new cc(cS(this).options.apiKey+":"+cS(this).name),this.D=new ca(cS(this).options.apiKey+":"+cS(this).name),this.$=cO(this,function(e){var t,n,i,r=cS(e).options.authDomain,o=(i=(t=e.D,n=cS(e).options.authDomain,t.b.get(cs,t.a).then(function(e){return e&&n&&(e.authDomain=n),co(e||{})})).then(function(t){return(e.m=t)&&(t.ha=e.D),cu(e.D)}),cO(e,i)).then(function(){return cg(e.i,r,e.R)}).then(function(t){return t?(t.ha=e.D,e.m&&(e.m.ga||null)==(t.ga||null)?t:t.reload().then(function(){return cd(e.i,t).then(function(){return t})}).o(function(n){return"auth/network-request-failed"==n.code?t:cp(e.i)})):null}).then(function(t){cT(e,t||null)});return cO(e,o)}(this)),this.h=cO(this,(t=this,t.$.then(function(){return c_(t)}).o(function(){}).then(function(){if(!t.l)return t.ja()}).o(function(){}).then(function(){if(!t.l){t.ba=!0;var e=t.i;e.b.addListener(cf("local"),e.a,t.ja)}}))),this.ba=!1,this.ja=_(this.Zc,this),this.Ba=_(this.da,this),this.qa=_(this.mc,this),this.za=_(this.wc,this),this.Aa=_(this.xc,this),this.b=null,n=this,i=cS(n).options.authDomain,r=cS(n).options.apiKey,i&&n2()&&(n.Oa=n.$.then(function(){if(!n.l){if(n.b=uf(i,r,cS(n).name,n.R),un(n.b,n),cE(n)&&u$(cE(n)),n.m){u$(n.m);var e=n.m;e.xa(n.la()),uK(e,n),uq(e=n.m,n.J),uW(e,n),uB(e=n.m,n.R),uH(e,n),n.m=null}return n.b}})),this.INTERNAL={},this.INTERNAL.delete=_(this.delete,this),this.INTERNAL.logFramework=_(this.Gc,this),this.u=0,t4.call(this),o=this,Object.defineProperty(o,"lc",{get:function(){return this.la()},set:function(e){this.xa(e)},enumerable:!1}),o.aa=null,Object.defineProperty(o,"ti",{get:function(){return this.T()},set:function(e){this.zb(e)},enumerable:!1}),o.S=null,Object.defineProperty(o,"emulatorConfig",{get:function(){if(this.R){var e=nl(this.R.url);e=id({protocol:e.c,host:e.a,port:e.g,options:id({disableWarnings:this.R.ec})})}else e=null;return e},enumerable:!1}),this.J=[],this.R=null}function cb(e){tR.call(this,"languageCodeChanged"),this.h=e}function cy(e){tR.call(this,"emulatorConfigChanged"),this.c=e}function cw(e){tR.call(this,"frameworkChanged"),this.f=e}function cI(e){return e.Oa||tl(new A("auth-domain-config-required"))}function c_(e){if(!n2())return tl(new A("operation-not-supported-in-this-environment"));var t=cI(e).then(function(){return e.b.ra()}).then(function(e){return e?id(e):null});return cO(e,t)}function cT(e,t){var n,i;cE(e)&&(n=cE(e),i=e.Ba,J(n.W,function(e){return e==i}),tY(cE(e),"tokenChanged",e.qa),tY(cE(e),"userDeleted",e.za),tY(cE(e),"userInvalidated",e.Aa),uY(cE(e))),t&&(t.W.push(e.Ba),tW(t,"tokenChanged",e.qa),tW(t,"userDeleted",e.za),tW(t,"userInvalidated",e.Aa),0<e.u&&uz(t)),ih(e,"currentUser",t),t&&(t.xa(e.la()),uK(t,e),uq(t,e.J),uW(t,e),uB(t,e.R),uH(t,e))}function ck(e,t){var n=null,i=null;return cO(e,t.then(function(t){var r;return n=rK(t),i=re(t),(r={}).apiKey=cS(e).options.apiKey,r.authDomain=cS(e).options.authDomain,r.appName=cS(e).name,e.R&&(r.emulatorConfig=e.R),e.$.then(function(){var n,i,o;return n=e.D,i=e.Ga(),o=new uV(r,t),n&&(o.ha=n),i&&uq(o,i),o.reload().then(function(){return o})}).then(function(t){return cE(e)&&t.uid==cE(e).uid?u6(cE(e),t):(cT(e,t),u$(t)),e.da(t)}).then(function(){cN(e)})},function(t){var n=null;throw t&&"auth/multi-factor-auth-required"===t.code&&(n=uA(t.w(),e,_(e.kc,e))),n||t}).then(function(){return id({user:cE(e),credential:n,additionalUserInfo:i,operationType:"signIn"})}))}function cS(e){return e.app}function cE(e){return e.currentUser}function cA(e){return cE(e)&&cE(e)._lat||null}function cN(e){if(e.ba){for(var t=0;t<e.s.length;t++)e.s[t]&&e.s[t](cA(e));if(e.W!==e.getUid()&&e.N.length)for(e.W=e.getUid(),t=0;t<e.N.length;t++)e.N[t]&&e.N[t](cA(e))}}function cO(e,t){return e.P.push(t),t.oa(function(){Y(e.P,t)}),t}function cC(){}function cx(){this.a={},this.b=1e12}cc.prototype.yb=function(e){var t=null,n=this,i=new A("invalid-persistence-type"),r=new A("unsupported-persistence-type");e:{for(o in sD)if(sD[o]==e){var o=!0;break e}o=!1}if(!o||"string"!=typeof e)throw i;switch(nG()){case"ReactNative":if("session"===e)throw r;break;case"Node":if("none"!==e)throw r;break;case"Worker":if("session"===e||!sf()&&"none"!==e)throw r;break;default:if(!n1()&&"none"!==e)throw r}
1return cv(this,function(){return e!=n.c.F?n.b.get(n.c,n.a).then(function(i){return t=i,ch(n,e)}).then(function(){if(n.c=cf(e),t)return n.b.set(n.c,t,n.a)}):th()})},S(cm,t4),S(cb,tR),S(cy,tR),S(cw,tR),(i=cm.prototype).yb=function(e){return cO(this,e=this.i.yb(e))},i.xa=function(e){this.aa===e||this.l||(this.aa=e,o6(this.a,this.aa),this.dispatchEvent(new cb(this.la())))},i.la=function(){return this.aa},i.fd=function(){var e=u.navigator;this.xa(e&&(e.languages&&e.languages[0]||e.language||e.userLanguage)||null)},i.gd=function(e,t){if(!this.R){var n;if(!/^https?:\/\//.test(e))throw new A("argument-error","Emulator URL must start with a valid scheme (http:// or https://).");n=t=!!t&&!!t.disableWarnings,"undefined"!=typeof console&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),u.document&&!n&&nK().then(function(){var e=u.document.createElement("div");e.innerText="Running in emulator mode. Do not use with production credentials.",e.style.position="fixed",e.style.width="100%",e.style.backgroundColor="#ffffff",e.style.border=".1em solid #000000",e.style.color="#b50000",e.style.bottom="0px",e.style.left="0px",e.style.margin="0px",e.style.zIndex=1e4,e.style.textAlign="center",e.classList.add("firebase-emulator-warning"),u.document.body.appendChild(e)}),this.R={url:e,ec:t},this.settings.jb=!0,o5(this.a,this.R),this.dispatchEvent(new cy(this.R))}},i.Gc=function(e){this.J.push(e),o9(this.a,X.SDK_VERSION?nZ(X.SDK_VERSION,this.J):null),this.dispatchEvent(new cw(this.J))},i.Ga=function(){return Z(this.J)},i.zb=function(e){this.S===e||this.l||(this.S=e,this.a.b=this.S)},i.T=function(){return this.S},i.toJSON=function(){return{apiKey:cS(this).options.apiKey,authDomain:cS(this).options.authDomain,appName:cS(this).name,currentUser:cE(this)&&cE(this).w()}},i.Gb=function(e,t){switch(e){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.g==t&&!!this.f;default:return!1}},i.na=function(e,t,n,i){"signInViaPopup"==e&&this.g==i&&(n&&this.C?this.C(n):t&&!n&&this.f&&this.f(t),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.C)},i.Fa=function(e,t){return"signInViaRedirect"==e||"signInViaPopup"==e&&this.g==t&&this.f?_(this.ic,this):null},i.ic=function(e,t,n,i){var r=this,o={requestUri:e,postBody:i,sessionId:t,tenantId:n};return this.c&&(this.c.cancel(),this.c=null),r.$.then(function(){return ck(r,af(r.a,o))})},i.Xc=function(e){if(!n2())return tl(new A("operation-not-supported-in-this-environment"));var t=this,n=i7(e.providerId),i=n7(),r=null;(!n6()||nq())&&cS(this).options.authDomain&&e.isOAuthProvider&&(r=se(cS(this).options.authDomain,cS(this).options.apiKey,cS(this).name,"signInViaPopup",e,null,i,X.SDK_VERSION||null,null,null,this.T(),this.R));var o=nF(r,n&&n.va,n&&n.ua);return cO(this,n=cI(this).then(function(n){return ua(n,o,"signInViaPopup",e,i,!!r,t.T())}).then(function(){return new ti(function(e,n){t.na("signInViaPopup",null,new A("cancelled-popup-request"),t.g),t.f=e,t.C=n,t.g=i,t.c=uc(t.b,t,"signInViaPopup",o,i)})}).then(function(e){return o&&nU(o),e?id(e):null}).o(function(e){throw o&&nU(o),e}))},i.Yc=function(e){if(!n2())return tl(new A("operation-not-supported-in-this-environment"));var t=this;return cO(this,cI(this).then(function(){var e;return cv(e=t.i,function(){return e.b.set(cl,e.c.F,e.a)})}).then(function(){return uu(t.b,"signInViaRedirect",e,void 0,t.T())}))},i.ra=function(){var e=this;return c_(this).then(function(t){return e.b&&ug(e.b.b),t}).o(function(t){throw e.b&&ug(e.b.b),t})},i.dd=function(e){if(!e)return tl(new A("null-user"));if(this.S!=e.tenantId)return tl(new A("tenant-id-mismatch"));var t,n,i,r,o,a=this,s={};s.apiKey=cS(this).options.apiKey,s.authDomain=cS(this).options.authDomain,s.appName=cS(this).name;var u=(t=s,n=a.D,i=a.Ga(),r=e.h,(o={})[o0]=r.b&&r.b.toString(),o.refreshToken=r.a,t=new uV(t||{apiKey:e.l,authDomain:e.s,appName:e.m},o),n&&(t.ha=n),i&&uq(t,i),u6(t,e),t);return cO(this,this.h.then(function(){if(cS(a).options.apiKey!=e.l)return u.reload()}).then(function(){return cE(a)&&e.uid==cE(a).uid?(u6(cE(a),e),a.da(e)):(cT(a,u),u$(u),a.da(u))}).then(function(){cN(a)}))},i.Bb=function(){var e=this;return cO(this,this.h.then(function(){return(e.b&&ug(e.b.b),cE(e))?(cT(e,null),cp(e.i).then(function(){cN(e)})):th()}))},i.Zc=function(){var e=this;return cg(this.i,cS(this).options.authDomain).then(function(t){if(!e.l){var n;if(n=cE(e)&&t){n=cE(e).uid;var i=t.uid;n=null!=n&&""!==n&&null!=i&&""!==i&&n==i}if(n)return u6(cE(e),t),cE(e).I();(cE(e)||t)&&(cT(e,t),t&&(u$(t),t.ha=e.D),e.b&&un(e.b,e),cN(e))}})},i.da=function(e){return cd(this.i,e)},i.mc=function(){cN(this),this.da(cE(this))},i.wc=function(){this.Bb()},i.xc=function(){this.Bb()},i.kc=function(e){var t=this;return this.h.then(function(){return ck(t,th(e))})},i.zc=function(e){var t=this;this.addAuthTokenListener(function(){e.next(cE(t))})},i.Ac=function(e){var t,n,i=this;t=this,n=function(){e.next(cE(i))},t.N.push(n),cO(t,t.h.then(function(){!t.l&&z(t.N,n)&&t.W!==t.getUid()&&(t.W
1=t.getUid(),n(cA(t)))}))},i.Ic=function(e,t,n){var i=this;return this.ba&&Promise.resolve().then(function(){"function"==typeof e?e(cE(i)):"function"==typeof e.next&&e.next(cE(i))}),this.Pa(e,t,n)},i.Hc=function(e,t,n){var i=this;return this.ba&&Promise.resolve().then(function(){i.W=i.getUid(),"function"==typeof e?e(cE(i)):"function"==typeof e.next&&e.next(cE(i))}),this.ib(e,t,n)},i.nc=function(e){var t=this;return cO(this,this.h.then(function(){return cE(t)?cE(t).I(e).then(function(e){return{accessToken:e}}):null}))},i.Tc=function(e){var t=this;return this.h.then(function(){return ck(t,aX(t.a,aH,{token:e}))}).then(function(e){var n=e.user;return u3(n,"isAnonymous",!1),t.da(n),e})},i.Uc=function(e,t){var n=this;return this.h.then(function(){return ck(n,aX(n.a,aq,{email:e,password:t}))})},i.dc=function(e,t){var n=this;return this.h.then(function(){return ck(n,aX(n.a,ab,{email:e,password:t}))})},i.ab=function(e){var t=this;return this.h.then(function(){return ck(t,e.ka(t.a))})},i.Sc=function(e){return iu("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.ab(e)},i.Ab=function(){var e=this;return this.h.then(function(){var t=cE(e);if(t&&t.isAnonymous){var n=id({providerId:null,isNewUser:!1});return id({user:t,credential:null,additionalUserInfo:n,operationType:"signIn"})}return ck(e,e.a.Ab()).then(function(t){var n=t.user;return u3(n,"isAnonymous",!0),e.da(n),t})})},i.getUid=function(){return cE(this)&&cE(this).uid||null},i.cc=function(e){this.addAuthTokenListener(e),this.u++,0<this.u&&cE(this)&&uz(cE(this))},i.Pc=function(e){var t=this;H(this.s,function(n){n==e&&t.u--}),0>this.u&&(this.u=0),0==this.u&&cE(this)&&uY(cE(this)),this.removeAuthTokenListener(e)},i.addAuthTokenListener=function(e){var t=this;this.s.push(e),cO(this,this.h.then(function(){t.l||z(t.s,e)&&e(cA(t))}))},i.removeAuthTokenListener=function(e){J(this.s,function(t){return t==e})},i.delete=function(){this.l=!0;for(var e=0;e<this.P.length;e++)this.P[e].cancel("app-deleted");return this.P=[],this.i&&(e=this.i).b.removeListener(cf("local"),e.a,this.ja),this.b&&(ui(this.b,this),ug(this.b.b)),Promise.resolve()},i.hc=function(e){return cO(this,aX(this.a,ay,{identifier:e,continueUri:n4()?nL():"http://localhost"}).then(function(e){return e.signinMethods||[]}))},i.Bc=function(e){return!!rj(e)},i.xb=function(e,t){var n=this;return cO(this,th().then(function(){var e=new iW(t);if(!e.c)throw new A("argument-error",iY+" must be true when sending sign in link to email");return i1(e)}).then(function(t){return n.a.xb(e,t)}).then(function(){}))},i.jd=function(e){return this.Sa(e).then(function(e){return e.data.email})},i.ob=function(e,t){return cO(this,this.a.ob(e,t).then(function(){}))},i.Sa=function(e){return cO(this,this.a.Sa(e).then(function(e){return new i_(e)}))},i.kb=function(e){return cO(this,this.a.kb(e).then(function(){}))},i.wb=function(e,t){var n=this;return cO(this,th().then(function(){return void 0===t||ef(t)?{}:i1(new iW(t))}).then(function(t){return n.a.wb(e,t)}).then(function(){}))},i.Wc=function(e,t){return cO(this,uI(this,e,t,_(this.ab,this)))},i.Vc=function(e,t){var n=this;return cO(this,th().then(function(){var i=t||nL(),r=rL(e,i);if(!(i=rj(i)))throw new A("argument-error","Invalid email link!");if(i.tenantId!==n.T())throw new A("tenant-id-mismatch");return n.ab(r)}))},cC.prototype.render=function(){},cC.prototype.reset=function(){},cC.prototype.getResponse=function(){},cC.prototype.execute=function(){};var cR=null;function cD(e,t){return(t=cP(t))&&e.a[t]||null}function cP(e){return(e=void 0===e?1e12:e)?e.toString():null}function cL(e,t){this.g=!1,this.c=t,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=e3(e);var n=this;this.i=function(){n.execute()},this.h?this.execute():tW(this.f,"click",this.i)}function cj(e){if(e.g)throw Error("reCAPTCHA mock was already deleted!")}function cM(){}function cU(){}cx.prototype.render=function(e,t){return this.a[this.b.toString()]=new cL(e,t),this.b++},cx.prototype.reset=function(e){var t=cD(this,e);e=cP(e),t&&e&&(t.delete(),delete this.a[e])},cx.prototype.getResponse=function(e){return(e=cD(this,e))?e.getResponse():null},cx.prototype.execute=function(e){(e=cD(this,e))&&e.execute()},cL.prototype.getResponse=function(){return cj(this),this.b},cL.prototype.execute=function(){cj(this);var e=this;this.a||(this.a=setTimeout(function(){e.b=function(){for(var e=50,t=[];0<e;)t.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return t.join("")}();var t=e.c.callback,n=e.c["expired-callback"];if(t)try{t(e.b)}catch(e){}e.a=setTimeout(function(){if(e.a=null,e.b=null,n)try{n()}catch(e){}e.h&&e.execute()},6e4)},500))},cL.prototype.delete=function(){cj(this),this.g=!0,clearTimeout(this.a),this.a=null,tY(this.f,"click",this.i)},ih(cM,"FACTOR_ID","phone"),cU.prototype.g=function(){return cR||(cR=new cx),th(cR)},cU.prototype.c=function(){};var cF=null;function cV(){this.b=u.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var cB=new em(ew,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),cK=new ii(3e4,6e4);cV.prototype.g=function(e){var t=this;return new ti(function(n,i){var r=setTimeout(function(){i(new A("network-request-failed"))},cK.get());u.grecaptcha&&(e===t.f||t.b)?(clearTimeout(r),n(u.grecaptcha)):(u[t.a]=function(){if(u.grecaptcha){t.f=e;var o=u.grecaptcha.render;u.grecaptcha.render=function(e,n){return e=o(e,n),t.b++,e},clearTimeout(r),n(u.grecaptcha)}else clearTimeout(r),i(new A("internal-error"));delete u[t.a]},th(oL(ek(cB,{onload:t.a,hl:e||""}))).o(function(){clearTimeout(r),i(new A("internal-error","Unable to load external reCAPTCHA dependencies!"))}))})},cV.prototype.c=function(){this.b--};var cH=null;function cq(e,t,n,i,r,o,a){if(ih(this,"type","recaptcha"),this.c=this.f=null,this.J=!1,this.v=t,this.g=null,a?(cF||(cF=new cU),a=cF):(cH||
1(cH=new cV),a=cH),this.m=a,this.a=n||{theme:"light",type:"image"},this.h=[],this.a[cz])throw new A("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[cY],!u.document)throw new A("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!e3(t)||!this.i&&e3(t).hasChildNodes())throw new A("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.s=new oK(e,o||null,r||null),this.u=i||function(){return null};var s=this;this.l=[];var c=this.a[cW];this.a[cW]=function(e){if(cX(s,e),"function"==typeof c)c(e);else if("string"==typeof c){var t=n0(c,u);"function"==typeof t&&t(e)}};var h=this.a[cG];this.a[cG]=function(){if(cX(s,null),"function"==typeof h)h();else if("string"==typeof h){var e=n0(h,u);"function"==typeof e&&e()}}}var cW="callback",cG="expired-callback",cz="sitekey",cY="size";function cX(e,t){for(var n=0;n<e.l.length;n++)try{e.l[n](t)}catch(e){}}function cJ(e,t){return e.h.push(t),t.oa(function(){Y(e.h,t)}),t}function c$(e){if(e.J)throw new A("internal-error","RecaptchaVerifier instance has been destroyed.")}function cZ(e,t,n){var i=!1;try{this.b=n||X.app()}catch(e){throw new A("argument-error","No firebase.app.App instance is currently initialized.")}if(this.b.options&&this.b.options.apiKey)n=this.b.options.apiKey;else throw new A("invalid-api-key");var r=this,o=null;try{o=this.b.auth().Ga()}catch(e){}try{i=this.b.auth().settings.appVerificationDisabledForTesting}catch(e){}o=X.SDK_VERSION?nZ(X.SDK_VERSION,o):null,cq.call(this,n,e,t,function(){try{var e=r.b.auth().la()}catch(t){e=null}return e},o,R(oq),i)}function cQ(e,t,n,i){e:{n=Array.prototype.slice.call(n);for(var r=0,o=!1,a=0;a<t.length;a++)if(t[a].optional)o=!0;else{if(o)throw new A("internal-error","Argument validator encountered a required argument after an optional argument.");r++}if(o=t.length,n.length<r||o<n.length)i="Expected "+(r==o?1==r?"1 argument":r+" arguments":r+"-"+o+" arguments")+" but got "+n.length+".";else{for(r=0;r<n.length;r++)if(o=t[r].optional&&void 0===n[r],!t[r].M(n[r])&&!o){if(t=t[r],0>r||r>=c0.length)throw new A("internal-error","Argument validator received an unsupported number of arguments.");n=c0[r],i=(i?"":n+" argument ")+(t.name?'"'+t.name+'" ':"")+"must be "+t.K+".";break e}i=null}}if(i)throw new A("argument-error",e+" failed: "+i)}(i=cq.prototype).Ia=function(){var e=this;return this.f?this.f:this.f=cJ(this,th().then(function(){if(n4()&&!nW())return nK();throw new A("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")}).then(function(){return e.m.g(e.u())}).then(function(t){return e.g=t,aX(e.s,aR,{})}).then(function(t){e.a[cz]=t.recaptchaSiteKey}).o(function(t){throw e.f=null,t}))},i.render=function(){c$(this);var e=this;return cJ(this,this.Ia().then(function(){if(null===e.c){var t=e.v;if(!e.i){var n=e3(t);t=function(e,t,n){var i=arguments,r=document,o=String(i[0]),a=i[1];if(!e4&&a&&(a.name||a.type)){if(o=["<",o],a.name&&o.push(' name="',eB(a.name),'"'),a.type){o.push(' type="',eB(a.type),'"');var s={};eg(s,a),delete s.type,a=s}o.push(">"),o=o.join("")}return o=e8(r,o),a&&("string"==typeof a?o.className=a:Array.isArray(a)?o.className=a.join(" "):e6(o,a)),2<i.length&&function(e,t,n){function i(n){n&&t.appendChild("string"==typeof n?e.createTextNode(n):n)}for(var r=2;r<n.length;r++){var o=n[r];if(!p(o)||v(o)&&0<o.nodeType)i(o);else{e:{if(o&&"number"==typeof o.length){if(v(o)){var a="function"==typeof o.item||"string"==typeof o.item;break e}if(g(o)){a="function"==typeof o.item;break e}}a=!1}H(a?Z(o):o,i)}}}(r,o,i),o}("DIV"),n.appendChild(t)}e.c=e.g.render(t,e.a)}return e.c}))},i.verify=function(){c$(this);var e=this;return cJ(this,this.render().then(function(t){return new ti(function(n){var i=e.g.getResponse(t);if(i)n(i);else{var r=function(t){t&&(J(e.l,function(e){return e==r}),n(t))};e.l.push(r),e.i&&e.g.execute(e.c)}})}))},i.reset=function(){c$(this),null!==this.c&&this.g.reset(this.c)},i.clear=function(){c$(this),this.J=!0,this.m.c();for(var e,t=0;t<this.h.length;t++)this.h[t].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i)for(t=e3(this.v);e=t.firstChild;)t.removeChild(e)},S(cZ,cq);var c0="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function c1(e,t){return{name:e||"",K:"a valid string",optional:!!t,M:function(e){return"string"==typeof e}}}function c2(e,t){return{name:e||"",K:"a boolean",optional:!!t,M:function(e){return"boolean"==typeof e}}}function c4(e,t){return{name:e||"",K:"a valid object",optional:!!t,M:v}}function c3(e,t){return{name:e||"",K:"a function",optional:!!t,M:function(e){return"function"==typeof e}}}function c6(e,t){return{name:e||"",K:"null",optional:!!t,M:function(e){return null===e}}}function c5(e){return{name:e?e+"Credential":"credential",K:e?"a valid "+e+" credential":"a valid credential",optional:!1,M:function(t){if(!t)return!1;var n=!e||t.providerId===e;return!(!t.ka||!n)}}}function c8(){return{name:"multiFactorAssertion",K:"a valid multiFactorAssertion",optional:!1,M:function(e){return!!e&&!!e.tb}}}function c9(){return{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}}function c7(e,t){return v(e)&&"string"==typeof e.type&&e.type===t&&"function"==typeof e.Ha}function he(e){return v(e)&&"string"==typeof e.uid}function ht(){return{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(e){return!(!e||"string"!=typeof e.type||"function"!=typeof e.verify)}}}function hn(e,t,n,i){return{name:n||"",K:e.K+" or "+t.K,optional:!!i,M:function(n){return e.M(n)||t.M(n)}}}function hi(e,t){for(var n in t){var i=t[n].name;e[i]=ha(i,e[n],t[n].j)}}function hr(e,t){for(var n in t){var i=t[n].name;i!==n&&Object.defineProperty(e,i,{get:T(function(e){return this[e]}
1,n),set:T(function(e,t,n,i){cQ(e,[n],[i],!0),this[t]=i},i,n,t[n].lb),enumerable:!0})}}function ho(e,t,n,i){e[t]=ha(t,n,i)}function ha(e,t,n){function i(){var e=Array.prototype.slice.call(arguments);return cQ(a,n,e),t.apply(this,e)}if(!n)return t;var r,o,a=(r=(r=e).split("."))[r.length-1];for(o in t)i[o]=t[o];for(o in t.prototype)i.prototype[o]=t.prototype[o];return i}if(hi(cm.prototype,{kb:{name:"applyActionCode",j:[c1("code")]},Sa:{name:"checkActionCode",j:[c1("code")]},ob:{name:"confirmPasswordReset",j:[c1("code"),c1("newPassword")]},dc:{name:"createUserWithEmailAndPassword",j:[c1("email"),c1("password")]},hc:{name:"fetchSignInMethodsForEmail",j:[c1("email")]},ra:{name:"getRedirectResult",j:[]},Bc:{name:"isSignInWithEmailLink",j:[c1("emailLink")]},Hc:{name:"onAuthStateChanged",j:[hn(c4(),c3(),"nextOrObserver"),c3("opt_error",!0),c3("opt_completed",!0)]},Ic:{name:"onIdTokenChanged",j:[hn(c4(),c3(),"nextOrObserver"),c3("opt_error",!0),c3("opt_completed",!0)]},wb:{name:"sendPasswordResetEmail",j:[c1("email"),hn(c4("opt_actionCodeSettings",!0),c6(null,!0),"opt_actionCodeSettings",!0)]},xb:{name:"sendSignInLinkToEmail",j:[c1("email"),c4("actionCodeSettings")]},yb:{name:"setPersistence",j:[c1("persistence")]},Sc:{name:"signInAndRetrieveDataWithCredential",j:[c5()]},Ab:{name:"signInAnonymously",j:[]},ab:{name:"signInWithCredential",j:[c5()]},Tc:{name:"signInWithCustomToken",j:[c1("token")]},Uc:{name:"signInWithEmailAndPassword",j:[c1("email"),c1("password")]},Vc:{name:"signInWithEmailLink",j:[c1("email"),c1("emailLink",!0)]},Wc:{name:"signInWithPhoneNumber",j:[c1("phoneNumber"),ht()]},Xc:{name:"signInWithPopup",j:[c9()]},Yc:{name:"signInWithRedirect",j:[c9()]},dd:{name:"updateCurrentUser",j:[hn({name:"user",K:"an instance of Firebase User",optional:!1,M:function(e){return!!(e&&e instanceof uV)}},c6(),"user")]},Bb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[c1(null,!0)]},fd:{name:"useDeviceLanguage",j:[]},gd:{name:"useEmulator",j:[c1("url"),c4("options",!0)]},jd:{name:"verifyPasswordResetCode",j:[c1("code")]}}),hr(cm.prototype,{lc:{name:"languageCode",lb:hn(c1(),c6(),"languageCode")},ti:{name:"tenantId",lb:hn(c1(),c6(),"tenantId")}}),cm.Persistence=sD,cm.Persistence.LOCAL="local",cm.Persistence.SESSION="session",cm.Persistence.NONE="none",hi(uV.prototype,{delete:{name:"delete",j:[]},oc:{name:"getIdTokenResult",j:[c2("opt_forceRefresh",!0)]},I:{name:"getIdToken",j:[c2("opt_forceRefresh",!0)]},Cc:{name:"linkAndRetrieveDataWithCredential",j:[c5()]},rb:{name:"linkWithCredential",j:[c5()]},Dc:{name:"linkWithPhoneNumber",j:[c1("phoneNumber"),ht()]},Ec:{name:"linkWithPopup",j:[c9()]},Fc:{name:"linkWithRedirect",j:[c9()]},Lc:{name:"reauthenticateAndRetrieveDataWithCredential",j:[c5()]},ub:{name:"reauthenticateWithCredential",j:[c5()]},Mc:{name:"reauthenticateWithPhoneNumber",j:[c1("phoneNumber"),ht()]},Nc:{name:"reauthenticateWithPopup",j:[c9()]},Oc:{name:"reauthenticateWithRedirect",j:[c9()]},reload:{name:"reload",j:[]},vb:{name:"sendEmailVerification",j:[hn(c4("opt_actionCodeSettings",!0),c6(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[c1(null,!0)]},cd:{name:"unlink",j:[c1("provider")]},Cb:{name:"updateEmail",j:[c1("email")]},Db:{name:"updatePassword",j:[c1("password")]},ed:{name:"updatePhoneNumber",j:[c5("phone")]},Eb:{name:"updateProfile",j:[c4("profile")]},Fb:{name:"verifyBeforeUpdateEmail",j:[c1("email"),hn(c4("opt_actionCodeSettings",!0),c6(null,!0),"opt_actionCodeSettings",!0)]}}),hi(cx.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),hi(cC.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),hi(ti.prototype,{oa:{name:"finally"},o:{name:"catch"},then:{name:"then"}}),hr(uy.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",lb:c2("appVerificationDisabledForTesting")}}),hi(uw.prototype,{confirm:{name:"confirm",j:[c1("verificationCode")]}}),ho(rd,"fromJSON",function(e){e="string"==typeof e?JSON.parse(e):e;for(var t,n=[rw,rD,rU,rm],i=0;i<n.length;i++)if(t=n[i](e))return t;return null},[hn(c1(),c4(),"json")]),ho(rP,"credential",function(e,t){return new rR(e,t)},[c1("email"),c1("password")]),hi(rR.prototype,{w:{name:"toJSON",j:[c1(null,!0)]}}),hi(rk.prototype,{Ca:{name:"addScope",j:[c1("scope")]},Ka:{name:"setCustomParameters",j:[c4("customOAuthParameters")]}}),ho(rk,"credential",rS,[hn(c1(),c4(),"token")]),ho(rP,"credentialWithLink",rL,[c1("email"),c1("emailLink")]),hi(rE.prototype,{Ca:{name:"addScope",j:[c1("scope")]},Ka:{name:"setCustomParameters",j:[c4("customOAuthParameters")]}}),ho(rE,"credential",rA,[hn(c1(),c4(),"token")]),hi(rN.prototype,{Ca:{name:"addScope",j:[c1("scope")]},Ka:{name:"setCustomParameters",j:[c4("customOAuthParameters")]}}),ho(rN,"credential",rO,[hn(c1(),hn(c4(),c6()),"idToken"),hn(c1(),c6(),"accessToken",!0)]),hi(rC.prototype,{Ka:{name:"setCustomParameters",j:[c4("customOAuthParameters")]}}),ho(rC,"credential",rx,[hn(c1(),c4(),"token"),c1("secret",!0)]),hi(rT.prototype,{Ca:{name:"addScope",j:[c1("scope")]},credential:{name:"credential",j:[hn(c1(),hn(c4(),c6()),"optionsOrIdToken"),hn(c1(),c6(),"accessToken",!0)]},Ka:{name:"setCustomParameters",j:[c4("customOAuthParameters")]}}),hi(rb.prototype,{w:{name:"toJSON",j:[c1(null,!0)]}}),hi(rg.prototype,{w:{name:"toJSON",j:[c1(null,!0)]}}),ho(rV,"credential",rB,[c1("verificationId"),c1("verificationCode")]),hi(rV.prototype,{gb:{name:"verifyPhoneNumber",j:[hn(c1(),{name:"phoneInfoOptions",K:"valid phone info o
1ptions",optional:!1,M:function(e){return!!e&&(e.session&&e.phoneNumber?c7(e.session,rl)&&"string"==typeof e.phoneNumber:e.session&&e.multiFactorHint?c7(e.session,rf)&&he(e.multiFactorHint):e.session&&e.multiFactorUid?c7(e.session,rf)&&"string"==typeof e.multiFactorUid:!!e.phoneNumber&&"string"==typeof e.phoneNumber)}},"phoneInfoOptions"),ht()]}}),hi(rM.prototype,{w:{name:"toJSON",j:[c1(null,!0)]}}),hi(A.prototype,{toJSON:{name:"toJSON",j:[c1(null,!0)]}}),hi(rX.prototype,{toJSON:{name:"toJSON",j:[c1(null,!0)]}}),hi(rY.prototype,{toJSON:{name:"toJSON",j:[c1(null,!0)]}}),hi(uE.prototype,{toJSON:{name:"toJSON",j:[c1(null,!0)]}}),hi(uT.prototype,{Rc:{name:"resolveSignIn",j:[c8()]}}),hi(uR.prototype,{Sb:{name:"getSession",j:[]},fc:{name:"enroll",j:[c8(),c1("displayName",!0)]},bd:{name:"unenroll",j:[hn({name:"multiFactorInfo",K:"a valid multiFactorInfo",optional:!1,M:he},c1(),"multiFactorInfoIdentifier")]}}),hi(cZ.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),ho(ij,"parseLink",iq,[c1("link")]),ho(cM,"assertion",function(e){return new uC(e)},[c5("phone")]),void 0!==X&&X.INTERNAL&&X.INTERNAL.registerComponent){var hs={ActionCodeInfo:{Operation:{EMAIL_SIGNIN:ik,PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:iT,VERIFY_AND_CHANGE_EMAIL:iS,VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:cm,AuthCredential:rd,Error:A};ho(hs,"EmailAuthProvider",rP,[]),ho(hs,"FacebookAuthProvider",rk,[]),ho(hs,"GithubAuthProvider",rE,[]),ho(hs,"GoogleAuthProvider",rN,[]),ho(hs,"TwitterAuthProvider",rC,[]),ho(hs,"OAuthProvider",rT,[c1("providerId")]),ho(hs,"SAMLAuthProvider",r_,[c1("providerId")]),ho(hs,"PhoneAuthProvider",rV,[{name:"auth",K:"an instance of Firebase Auth",optional:!0,M:function(e){return!!(e&&e instanceof cm)}}]),ho(hs,"RecaptchaVerifier",cZ,[hn(c1(),{name:"",K:"an HTML element",optional:!1,M:function(e){return!!(e&&e instanceof Element)}},"recaptchaContainer"),c4("recaptchaParameters",!0),{name:"app",K:"an instance of Firebase App",optional:!0,M:function(e){return!!(e&&e instanceof X.app.App)}}]),ho(hs,"ActionCodeURL",ij,[]),ho(hs,"PhoneMultiFactorGenerator",cM,[]),X.INTERNAL.registerComponent({name:"auth",instanceFactory:function(e){return new cm(e=e.getProvider("app").getImmediate())},multipleInstances:!1,serviceProps:hs,instantiationMode:"LAZY",type:"PUBLIC",onInstanceCreated:function(e){e.getProvider("auth-internal").initialize()}}),X.INTERNAL.registerComponent({name:"auth-internal",instanceFactory:function(e){return e=e.getProvider("auth").getImmediate(),{getUid:_(e.getUid,e),getToken:_(e.nc,e),addAuthTokenListener:_(e.cc,e),removeAuthTokenListener:_(e.Pc,e)}},multipleInstances:!1,instantiationMode:"LAZY",type:"PRIVATE"}),X.registerVersion("@firebase/auth","0.16.8"),X.INTERNAL.extendNamespace({User:uV})}else throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.")}).apply(e.g);var ee=e.i(61334),et="0.4.32",en="w:"+et,ei="FIS_v2",er=new k("installations","Installations",((u={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',u["not-registered"]="Firebase Installation is not registered.",u["installation-not-found"]="Firebase Installation not found.",u["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',u["app-offline"]="Could not process request. Application offline.",u["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",u));function eo(e){return e instanceof T&&e.code.includes("request-failed")}function ea(e){return"https://firebaseinstallations.googleapis.com/v1/projects/"+e.projectId+"/installations"}function es(e){return{token:e.token,requestStatus:2,expiresIn:Number(e.expiresIn.replace("s","000")),creationTime:Date.now()}}function eu(e,t){return(0,w.__awaiter)(this,void 0,void 0,function(){var n;return(0,w.__generator)(this,function(i){switch(i.label){case 0:return[4,t.json()];case 1:return n=i.sent().error,[2,er.create("request-failed",{requestName:e,serverCode:n.code,serverMessage:n.message,serverStatus:n.status})]}})})}function ec(e){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey})}function eh(e,t){var n=t.refreshToken,i=ec(e);return i.append("Authorization",ei+" "+n),i}function el(e){return(0,w.__awaiter)(this,void 0,void 0,function(){var t;return(0,w.__generator)(this,function(n){switch(n.label){case 0:return[4,e()];case 1:if((t=n.sent()).status>=500&&t.status<600)return[2,e()];return[2,t]}})})}function ef(e){return new Promise(function(t){setTimeout(t,e)})}var ed=/^[cdef][\w-]{21}$/;function ep(e){return e.appName+"!"+e.appId}var eg=new Map;function ev(e,t){var n,i,r,o=ep(e);em(o,t),n=o,i=t,(r=ey())&&r.postMessage({key:n,fid:i}),ew()}function em(e,t){var n,i,r=eg.get(e);if(r)try{for(var o=(0,w.__values)(r),a=o.next();!a.done;a=o.next())(0,a.value)(t)}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}}var eb=null;function ey(){return!eb&&"BroadcastChannel"in self&&((eb=new BroadcastChannel("[Firebase] FID Change")).onmessage=function(e){em(e.data.key,e.data.fid)}),eb}function ew(){0===eg.size&&eb&&(eb.close(),eb=null)}var eI="firebase-installations-store",e_=null;function eT(){return e_||(e_=(0,ee.openDb)("firebase-installations-database",1,function(e){0===e.oldVersion&&e.createObjectStore(eI)})),e_}function ek(e,t){return(0,w.__awaiter)(this,void 0,void 0,function(){var n,i,r,o;return(0,w.__generator)(this,function(a){switch(a.label){case 0:return n=ep(e),[4,eT()];case 1:return[4,(r=(i=a.sent().transaction(eI,"readwrite")).objectStore(eI)).get(n)];case 2:return o=a.sent(),[4,r.put(t,n)];case 3:return a.sent(),[4,i.complete];case 4:return a.sent(),o&&o.fid===t.fid||ev(e,t.fid),[2,t]}})})}function eS(e){return(0,w.__awaiter)(this,void 0,void 0,function(){var t,n;return(0,w.__generator)(this,function(i){switch(i.label){case 0:return t=ep(e),[4,eT()];case 1:return[4,(n=i.sent().transaction(eI,"readwrite")).objectStore(eI).delete(t)];case 2:return i.sent(),[4,n.complete];case 3:return i.sent(),[2]}})})}function eE(e,t){return(0,w.__awaiter)(this,void 0,void 0,function(){var n,i,r,o,a;return(0,w.__generator)(this,function(s){switch(s.label){case 0:return n=ep(e),[4,eT()];case 1:return[4,(r=(i=s.sent().transaction(eI,"readwrite")).objectStore(eI)).get(n)];case 2:if(void 0!==(a=t(o=s.sent())))return[3,4];return[4,r.delete(n)];case 3:return s.sent(),[3,6];case 4:return[4,r.put(a,n)];case 5:s.sent(),s.label=6;case 6:return[4,i.complete];case 7:return s.sent(),a&&(!o||o.fid!==a.fid)&&ev(e,a.fid),[2,a]}})})}function eA(e){return(0,w.__awaiter)(this,void 0,void 0,function(){var t,n,i;return(0,w.__generator)(this,function(r){switch(r.label){case 0:return[4,eE(e,function(n){var i=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(er.create("app-offline"))};var n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},i=function(e,t){return(0,w.__awaiter)(this,void 0,void 0,function(){var n;return(0,w.__generator)(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,7]),[4,function(e,t){var n=t.fid;return(0,w.__awaiter)(this,void 0,void 0,function(){var t,i,r,o;return(0,w.__generator)(this,function(a){switch(a.label){case 0:return t=ea(e),i={method:"POST",headers:ec(e),body:JSON.stringify({fid:n,authVersion:ei,appId:e.appId,sdkVersion:en})},[4,el(function(){return fetch(t,i)})];case 1:if(!(r=a.sent()).ok)return[3,3];return[4,r.json()];case 2:return[2,{fid:(o=a.sent()).fid||n,registrationStatus:2,refreshToken:o.refreshToken,authToken:es(o.authToken)}];case 3:return[4,eu("Create Installation",r)];case 4:throw a.sent()}})})}(e,t)];case 1:return[2,ek(e,i.sent())];case 2:if(!(eo(n=i.sent())&&409===n.customData.serverCode))return[3,4];return[4,eS(e)];case 3:return i.sent(),[3,6];case 4:return[4,ek(e,{fid:t.fid,registrationStatus:0})];case 5:i.sent(),i.label=6;case 6:throw n;case 7:return[2]}})})}
1(e,n);return{installationEntry:n,registrationPromise:i}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:function(e){return(0,w.__awaiter)(this,void 0,void 0,function(){var t,n,i,r;return(0,w.__generator)(this,function(o){switch(o.label){case 0:return[4,eN(e)];case 1:t=o.sent(),o.label=2;case 2:if(1!==t.registrationStatus)return[3,5];return[4,ef(100)];case 3:return o.sent(),[4,eN(e)];case 4:return t=o.sent(),[3,2];case 5:if(0!==t.registrationStatus)return[3,7];return[4,eA(e)];case 6:if(i=(n=o.sent()).installationEntry,r=n.registrationPromise)return[2,r];return[2,i];case 7:return[2,t]}})})}(e)}:{installationEntry:t}}(e,eO(n||{fid:function(){try{var e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;var t=function(e){return btoa(String.fromCharCode.apply(String,(0,w.__spreadArray)([],(0,w.__read)(e)))).replace(/\+/g,"-").replace(/\//g,"_").substr(0,22)}(e);return ed.test(t)?t:""}catch(e){return""}}(),registrationStatus:0}));return t=i.registrationPromise,i.installationEntry})];case 1:if(""!==(n=r.sent()).fid)return[3,3];return i={},[4,t];case 2:return[2,(i.installationEntry=r.sent(),i)];case 3:return[2,{installationEntry:n,registrationPromise:t}]}})})}function eN(e){return eE(e,function(e){if(!e)throw er.create("installation-not-found");return eO(e)})}function eO(e){var t;return 1===(t=e).registrationStatus&&t.registrationTime+1e4<Date.now()?{fid:e.fid,registrationStatus:0}:e}function eC(e,t){return void 0===t&&(t=!1),(0,w.__awaiter)(this,void 0,void 0,function(){var n,i,r;return(0,w.__generator)(this,function(o){switch(o.label){case 0:return[4,eE(e.appConfig,function(i){if(!eR(i))throw er.create("not-registered");var r,o,a,s,u,c=i.authToken;if(!t&&2===(r=c).requestStatus&&(o=r,!((a=Date.now())<o.creationTime)&&!(o.creationTime+o.expiresIn<a+36e5)))return i;if(1===c.requestStatus)return n=function(e,t){return(0,w.__awaiter)(this,void 0,void 0,function(){var n,i;return(0,w.__generator)(this,function(r){switch(r.label){case 0:return[4,ex(e.appConfig)];case 1:n=r.sent(),r.label=2;case 2:if(1!==n.authToken.requestStatus)return[3,5];return[4,ef(100)];case 3:return r.sent(),[4,ex(e.appConfig)];case 4:return n=r.sent(),[3,2];case 5:if(0===(i=n.authToken).requestStatus)return[2,eC(e,t)];return[2,i]}})})}(e,t),i;if(!navigator.onLine)throw er.create("app-offline");var h=(s=i,u={requestStatus:1,requestTime:Date.now()},(0,w.__assign)((0,w.__assign)({},s),{authToken:u}));return n=function(e,t){return(0,w.__awaiter)(this,void 0,void 0,function(){var n,i,r;return(0,w.__generator)(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,8]),[4,function(e,t){var n=e.appConfig,i=e.platformLoggerProvider;return(0,w.__awaiter)(this,void 0,void 0,function(){var e,r,o,a,s;return(0,w.__generator)(this,function(u){switch(u.label){case 0:var c,h;return c=n,h=t.fid,e=ea(c)+"/"+h+"/authTokens:generate",r=eh(n,t),(o=i.getImmediate({optional:!0}))&&r.append("x-firebase-client",o.getPlatformInfoString()),a={method:"POST",headers:r,body:JSON.stringify({installation:{sdkVersion:en}})},[4,el(function(){return fetch(e,a)})];case 1:if(!(s=u.sent()).ok)return[3,3];return[4,s.json()];case 2:return[2,es(u.sent())];case 3:return[4,eu("Generate Auth Token",s)];case 4:throw u.sent()}})})}(e,t)];case 1:return n=o.sent(),i=(0,w.__assign)((0,w.__assign)({},t),{authToken:n}),[4,ek(e.appConfig,i)];case 2:return o.sent(),[2,n];case 3:if(!(eo(r=o.sent())&&(401===r.customData.serverCode||404===r.customData.serverCode)))return[3,5];return[4,eS(e.appConfig)];case 4:return o.sent(),[3,7];case 5:return i=(0,w.__assign)((0,w.__assign)({},t),{authToken:{requestStatus:0}}),[4,ek(e.appConfig,i)];case 6:o.sent(),o.label=7;case 7:throw r;case 8:return[2]}})})}(e,h),h})];case 1:if(i=o.sent(),!n)return[3,3];return[4,n];case 2:return r=o.sent(),[3,4];case 3:r=i.authToken,o.label=4;case 4:return[2,r]}})})}function ex(e){return eE(e,function(e){var t;if(!eR(e))throw er.create("not-registered");return 1===(t=e.authToken).requestStatus&&t.requestTime+1e4<Date.now()?(0,w.__assign)((0,w.__assign)({},e),{authToken:{requestStatus:0}}):e})}function eR(e){return void 0!==e&&2===e.registrationStatus}function eD(e){return er.create("missing-app-config-values",{valueName:e})}X.INTERNAL.registerComponent(new x("installations",function(e){var t=e.getProvider("app").getImmediate(),n={appConfig:function(e){if(!e||!e.options)throw eD("App Configuration");if(!e.name)throw eD("App Name");try{for(var t,n,i=(0,w.__values)(["projectId","apiKey","appId"]),r=i.next();!r.done;r=i.next()){var o=r.value;if(!e.options[o])throw eD(o)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}
1return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t),platformLoggerProvider:e.getProvider("platform-logger")};return{app:t,getId:function(){return function(e){return(0,w.__awaiter)(this,void 0,void 0,function(){var t,n,i;return(0,w.__generator)(this,function(r){switch(r.label){case 0:return[4,eA(e.appConfig)];case 1:return n=(t=r.sent()).installationEntry,(i=t.registrationPromise)?i.catch(console.error):eC(e).catch(console.error),[2,n.fid]}})})}(n)},getToken:function(e){return function(e,t){return void 0===t&&(t=!1),(0,w.__awaiter)(this,void 0,void 0,function(){return(0,w.__generator)(this,function(n){switch(n.label){case 0:return[4,function(e){return(0,w.__awaiter)(this,void 0,void 0,function(){var t;return(0,w.__generator)(this,function(n){switch(n.label){case 0:return[4,eA(e)];case 1:if(!(t=n.sent().registrationPromise))return[3,3];return[4,t];case 2:n.sent(),n.label=3;case 3:return[2]}})})}(e.appConfig)];case 1:return n.sent(),[4,eC(e,t)];case 2:return[2,n.sent().token]}})})}(n,e)},delete:function(){return function(e){return(0,w.__awaiter)(this,void 0,void 0,function(){var t,n;return(0,w.__generator)(this,function(i){switch(i.label){case 0:return[4,eE(t=e.appConfig,function(e){if(!e||0!==e.registrationStatus)return e})];case 1:if(!(n=i.sent()))return[3,6];if(1!==n.registrationStatus)return[3,2];throw er.create("delete-pending-registration");case 2:if(2!==n.registrationStatus)return[3,6];if(navigator.onLine)return[3,3];throw er.create("app-offline");case 3:return[4,function(e,t){return(0,w.__awaiter)(this,void 0,void 0,function(){var n,i,r;return(0,w.__generator)(this,function(o){switch(o.label){case 0:var a,s;return a=e,s=t.fid,n=ea(a)+"/"+s,i={method:"DELETE",headers:eh(e,t)},[4,el(function(){return fetch(n,i)})];case 1:if((r=o.sent()).ok)return[3,3];return[4,eu("Delete Installation",r)];case 2:throw o.sent();case 3:return[2]}})})}(t,n)];case 4:return i.sent(),[4,eS(t)];case 5:i.sent(),i.label=6;case 6:return[2]}})})}(n)},onIdChange:function(e){var t,i,r,o;return i=t=n.appConfig,ey(),r=ep(i),(o=eg.get(r))||(o=new Set,eg.set(r,o)),o.add(e),function(){var n,i;n=ep(t),(i=eg.get(n))&&(i.delete(e),0===i.size&&eg.delete(n),ew())}}}},"PUBLIC")),X.registerVersion("@firebase/installations",et);var eP=new k("messaging","Messaging",((c={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',c["only-available-in-window"]="This method is available in a Window context.",c["only-available-in-sw"]="This method is available in a service worker context.",c["permission-default"]="The notification permission was not granted and dismissed instead.",c["permission-blocked"]="The notification permission was not granted and blocked instead.",c["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",c["failed-service-worker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",c["token-subscribe-failed"]="A problem occurred while subscribing the user to FCM: {$errorInfo}",c["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",c["token-unsubscribe-failed"]="A problem occurred while unsubscribing the user from FCM: {$errorInfo}",c["token-update-failed"]="A problem occurred while updating the user from FCM: {$errorInfo}",c["token-update-no-token"]="FCM returned no token when updating the user to push.",c["use-sw-after-get-token"]="The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",c["invalid-sw-registration"]="The input to useServiceWorker() must be a ServiceWorkerRegistration.",c["invalid-bg-handler"]="The input to setBackgroundMessageHandler() must be a function.",c["invalid-vapid-key"]="The public VAPID key must be a string.",c["use-vapid-key-after-get-token"]="The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used.",c)),eL="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",ej="FCM_MSG",eM="google.c.a.c_id";function eU(e){var t=new Uint8Array(e);return btoa(String.fromCharCode.apply(String,(0,w.__spreadArray)([],(0,w.__read)(t)))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}(n=h||(h={})).PUSH_RECEIVED="push-received",n.NOTIFICATION_CLICKED="notification-clicked";var eF="fcm_token_details_db",eV="fcm_token_object_Store",eB="firebase-messaging-store",eK=null;function eH(){return eK||(eK=(0,ee.openDb)("firebase-messaging-database",1,function(e){0===e.oldVersion&&e.createObjectStore(eB)})),eK}function eq(e){return(0,w.__awaiter)(this,void 0,void 0,function(){var t,n,i;return(0,w.__generator)(this,function(r){switch(r.label){case 0:return t=eG(e),[4,eH()];case 1:return[4,r.sent().transaction(eB).objectStore(eB).get(t)];case 2:if(!(n=r.sent()))return[3,3];return[2,n];case 3:return[4,function(e){return(0,w.__awaiter)(this,void 0,void 0,function(){var t,n=this;return(0,w.__generator)(this,function(i){switch(i.label){case 0:if(!("databases"in indexedDB))return[3,2];return[4,indexedDB.databases()];case 1:if(!i.sent().map(function(e){return e.name}).includes(eF))return[2,null];i.label=2;case 2:return t=null,[4,(0,ee.openDb)(eF,5,function(i){return(0,w.__awaiter)(n,void 0,void 0,function(){var n,r,o,a;return(0,w.__generator)(this,function(s){switch(s.label){case 0:if(i.oldVersion<2||!i.objectStoreNames.contains(eV))return[2];return[4,(n=i.transaction.objectStore(eV)).index("fcmSenderId").get(e)];case 1:return r=s.sent(),[4,n.clear()];case 2:if(s.sent(),!r)return[2];if(2===i.oldVersion){if(!(o=r).auth||!o.p256dh||!o.endpoint)return[2];t={token:o.fcmToken,createTime:null!=(a=o.createTime)?a:Date.now(),subscriptionOptions:{auth:o.auth,p256dh:o.p256dh,endpoint:o.endpoint,swScope:o.swScope,vapidKey:"string"==typeof o.vapidKey?o.vapidKey:eU(o.vapidKey)}}}else 3===i.oldVersion?t={token:(o=r).fcmToken,createTime:o.createTime,subscriptionOptions:{auth:eU(o.auth),p256dh:eU(o.p256dh),endpoint:o.endpoint,swScope:o.swScope,vapidKey:eU(o.vapidKey)}}:4===i.oldVersion&&(t={token:(o=r).fcmToken,createTime:o.createTime,subscriptionOptions:{auth:eU(o.auth),p256dh:eU(o.p256dh),endpoint:o.endpoint,swScope:o.swScope,vapidKey:eU(o.vapidKey)}});return[2]}})})})];case 3:return i.sent().close(),[4,(0,ee.deleteDb)(eF)];case 4:return i.sent(),[4,(0,ee.deleteDb)("fcm_vapid_details_db")];case 5:return i.sent(),[4,(0,ee.deleteDb)("undefined")];case 6:return i.sent(),[2,!function(e){if(!e||!e.subscriptionOptions)return!1;var t=e.subscriptionOptions;return"number"==typeof e.createTime&&e.createTime>0&&"string"==typeof e.token&&e.token.length>0&&"string"==typeof t.auth&&t.auth.length>0&&"string"==typeof t.p256dh&&t.p256dh.length>0&&"string"==typeof t.endpoint&&t.endpoint.length>0&&"string"==typeof t.swScope&&t.swScope.length>0&&"string"==typeof t.vapidKey&&t.vapidKey.length>0}(t)?null:t]}})})}(e.appConfig.senderId)];case 4:if(!(i=r.sent()))return[3,6];return[4,eW(e,i)];case 5:return r.sent(),[2,i];case 6:return[2]}})})}function eW(e,t){return(0,w.__awaiter)(this,void 0,void 0,function(){var n,i;return(0,w.__generator)(this,function(r){switch(r.label){case 0:return n=eG(e),[4,eH()];case 1:return[4,(i=r.sent().transaction(eB,"readwrite")).objectStore(eB).put(t,n)];case 2:return r.sent(),[4,i.complete];case 3:return r.sent(),[2,t]}})})}function eG(e){return e.appConfig.appId}function ez(e,t){return(0,w.__awaiter)(this,void 0,void 0,function(){var n,i,r,o;return(0,w.__generator)(this,function(a){switch(a.label){case 0:return[4,eX(e)];case 1:n={method:"DELETE",headers:a.sent()},a.label=2;case 2:return a.trys.push([2,5,,6]),[4,fetch(eY(e.appConfig)+"/"+t,n)];case 3:return[4,a.sent().json()];case 4:if((i=a.sent()).error)throw r=i.error.message,eP.create("token-unsubscribe-failed",{errorInfo:r});return[3,6];case 5:throw o=a.sent(),eP.create("token-unsubscribe-failed",{errorInfo:o});case 6:return[2]}})})}function eY(e){return"https://fcmregistrations.googleapis.com/v1/projects/"+e.projectId+"/registrations"}function eX(e){var t=e.appConfig,n=e.installations;return(0,w.__awaiter)(this,void 0,void 0,function(){var e;return(0,w.__generator)(this,function(i){switch(i.label){case 0:return[4,n.getToken()];case 1:return e=i.sent(),[2,new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t.apiKey,"x-goog-firebase-installations-auth":"FIS "+e})]}})})}function eJ(e){var t=e.p256dh,n=e.auth,i=e.endpoint,r=e.vapidKey,o={web:{endpoint:i,auth:n,p256dh:t}};return r!==eL&&(o.web.applicationPubKey=r),o}function e$(e,t,n){return(0,w.__awaiter)(this,void 0,void 0,function(){var i,r,o;return(0,w.__generator)(this,function(a){switch(a.label){case 0:if("granted"!==Notification.permission)throw eP.create("permission-blocked");return[4,function(e,t){return(0,w.__awaiter)(this,void 0,void 0,function(){var n;return(0,w.__generator)(this,function(i){switch(i.label){case 0:return[4,e.pushManager.getSubscription()];case 1:if(n=i.sent())return[2,n];return[2,e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:function(e){for(var t="=".repeat((4-e.length%4)%4),n=atob((e+t).replace(/\-/g,"+").replace(/_/g,"/")),i=new Uint8Array(n.length),r=0;r<n.length;++r)i[r]=n.charCodeAt(r);return i}(t)})]}})})}(t,n)];
1case 1:return i=a.sent(),[4,eq(e)];case 2:if(r=a.sent(),o={vapidKey:n,swScope:t.scope,endpoint:i.endpoint,auth:eU(i.getKey("auth")),p256dh:eU(i.getKey("p256dh"))},r)return[3,3];return[2,eQ(e,o)];case 3:var s,u,c,h,l,f;if(s=r.subscriptionOptions,c=(u=o).vapidKey===s.vapidKey,h=u.endpoint===s.endpoint,l=u.auth===s.auth,f=u.p256dh===s.p256dh,c&&h&&l&&f)return[3,8];a.label=4;case 4:return a.trys.push([4,6,,7]),[4,ez(e,r.token)];case 5:return a.sent(),[3,7];case 6:return console.warn(a.sent()),[3,7];case 7:return[2,eQ(e,o)];case 8:if(Date.now()>=r.createTime+6048e5)return[2,function(e,t,n){return(0,w.__awaiter)(this,void 0,void 0,function(){var i,r;return(0,w.__generator)(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,5]),[4,function(e,t){return(0,w.__awaiter)(this,void 0,void 0,function(){var n,i,r,o;return(0,w.__generator)(this,function(a){switch(a.label){case 0:return[4,eX(e)];case 1:n={method:"PATCH",headers:a.sent(),body:JSON.stringify(eJ(t.subscriptionOptions))},a.label=2;case 2:return a.trys.push([2,5,,6]),[4,fetch(eY(e.appConfig)+"/"+t.token,n)];case 3:return[4,a.sent().json()];case 4:return i=a.sent(),[3,6];case 5:throw r=a.sent(),eP.create("token-update-failed",{errorInfo:r});case 6:if(i.error)throw o=i.error.message,eP.create("token-update-failed",{errorInfo:o});if(!i.token)throw eP.create("token-update-no-token");return[2,i.token]}})})}(t,e)];case 1:return i=o.sent(),[4,eW(t,(0,w.__assign)((0,w.__assign)({},e),{token:i,createTime:Date.now()}))];case 2:return o.sent(),[2,i];case 3:return r=o.sent(),[4,eZ(t,n)];case 4:throw o.sent(),r;case 5:return[2]}})})}({token:r.token,createTime:Date.now(),subscriptionOptions:o},e,t)];return[2,r.token];case 9:return[2]}})})}function eZ(e,t){return(0,w.__awaiter)(this,void 0,void 0,function(){var n,i;return(0,w.__generator)(this,function(r){switch(r.label){case 0:return[4,eq(e)];case 1:if(!(n=r.sent()))return[3,4];return[4,ez(e,n.token)];case 2:return r.sent(),[4,function(e){return(0,w.__awaiter)(this,void 0,void 0,function(){var t,n;return(0,w.__generator)(this,function(i){switch(i.label){case 0:return t=eG(e),[4,eH()];case 1:return[4,(n=i.sent().transaction(eB,"readwrite")).objectStore(eB).delete(t)];case 2:return i.sent(),[4,n.complete];case 3:return i.sent(),[2]}})})}(e)];case 3:r.sent(),r.label=4;case 4:return[4,t.pushManager.getSubscription()];case 5:if(i=r.sent())return[2,i.unsubscribe()];return[2,!0]}})})}function eQ(e,t){return(0,w.__awaiter)(this,void 0,void 0,function(){var n;return(0,w.__generator)(this,function(i){switch(i.label){case 0:return[4,function(e,t){return(0,w.__awaiter)(this,void 0,void 0,function(){var n,i,r,o;return(0,w.__generator)(this,function(a){switch(a.label){case 0:return[4,eX(e)];case 1:n={method:"POST",headers:a.sent(),body:JSON.stringify(eJ(t))},a.label=2;case 2:return a.trys.push([2,5,,6]),[4,fetch(eY(e.appConfig),n)];case 3:return[4,a.sent().json()];case 4:return i=a.sent(),[3,6];case 5:throw r=a.sent(),eP.create("token-subscribe-failed",{errorInfo:r});case 6:if(i.error)throw o=i.error.message,eP.create("token-subscribe-failed",{errorInfo:o});if(!i.token)throw eP.create("token-subscribe-no-token");return[2,i.token]}})})}(e,t)];case 1:return[4,eW(e,n={token:i.sent(),createTime:Date.now(),subscriptionOptions:t})];case 2:return i.sent(),[2,n.token]}})})}function e0(e){return"object"==typeof e&&!!e&&eM in e}function e1(e){return new Promise(function(t){setTimeout(t,e)})}var e2=function(){function e(e){var t=this;this.firebaseDependencies=e,this.isOnBackgroundMessageUsed=null,this.vapidKey=null,this.bgMessageHandler=null,self.addEventListener("push",function(e){e.waitUntil(t.onPush(e))}),self.addEventListener("pushsubscriptionchange",function(e){e.waitUntil(t.onSubChange(e))}),self.addEventListener("notificationclick",function(e){e.waitUntil(t.onNotificationClick(e))})}return Object.defineProperty(e.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),e.prototype.setBackgroundMessageHandler=function(e){if(this.isOnBackgroundMessageUsed=!1,!e||"function"!=typeof e)throw eP.create("invalid-bg-handler");this.bgMessageHandler=e}
1,e.prototype.onBackgroundMessage=function(e){var t=this;return this.isOnBackgroundMessageUsed=!0,this.bgMessageHandler=e,function(){t.bgMessageHandler=null}},e.prototype.getToken=function(){var e,t;return(0,w.__awaiter)(this,void 0,void 0,function(){var n;return(0,w.__generator)(this,function(i){switch(i.label){case 0:if(this.vapidKey)return[3,2];return[4,eq(this.firebaseDependencies)];case 1:n=i.sent(),this.vapidKey=null!=(t=null==(e=null==n?void 0:n.subscriptionOptions)?void 0:e.vapidKey)?t:eL,i.label=2;case 2:return[2,e$(this.firebaseDependencies,self.registration,this.vapidKey)]}})})},e.prototype.deleteToken=function(){return eZ(this.firebaseDependencies,self.registration)},e.prototype.requestPermission=function(){throw eP.create("only-available-in-window")},e.prototype.usePublicVapidKey=function(e){if(null!==this.vapidKey)throw eP.create("use-vapid-key-after-get-token");if("string"!=typeof e||0===e.length)throw eP.create("invalid-vapid-key");this.vapidKey=e},e.prototype.useServiceWorker=function(){throw eP.create("only-available-in-window")},e.prototype.onMessage=function(){throw eP.create("only-available-in-window")},e.prototype.onTokenRefresh=function(){throw eP.create("only-available-in-window")},e.prototype.onPush=function(e){return(0,w.__awaiter)(this,void 0,void 0,function(){var t,n,i,r;return(0,w.__generator)(this,function(o){var a,s,u,c,l,f,d,p,g,v,m;switch(o.label){case 0:if(!(t=function(e){var t=e.data;if(!t)return null;try{return t.json()}catch(e){return null}}(e)))return console.debug("FirebaseMessaging: failed to get parsed MessagePayload from the PushEvent. Skip handling the push."),[2];return[4,e4()];case 1:if((n=o.sent()).some(function(e){return"visible"===e.visibilityState&&!e.url.startsWith("chrome-extension://")}))return[2,function(e,t){var n,i;t.isFirebaseMessaging=!0,t.messageType=h.PUSH_RECEIVED;try{for(var r=(0,w.__values)(e),o=r.next();!o.done;o=r.next())o.value.postMessage(t)}catch(e){n={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}}(n,t)];if(i=!1,!t.notification)return[3,3];return[4,(f=(c=(a=t,u=(0,w.__assign)({},a.notification),(s={})[ej]=a,u.data=s,u)).actions,d=Notification.maxActions,f&&d&&f.length>d&&console.warn("This browser only supports "+d+" actions. The remaining actions will not be displayed."),self.registration.showNotification(null!=(l=c.title)?l:"",c))];case 2:o.sent(),i=!0,o.label=3;case 3:if(!0===i&&!1===this.isOnBackgroundMessageUsed)return[2];if(this.bgMessageHandler){(function(e,t){if(t.notification){e.notification={};var n=t.notification.title;n&&(e.notification.title=n);var i=t.notification.body;i&&(e.notification.body=i);var r=t.notification.image;r&&(e.notification.image=r)}})(g={from:(p=t).from,collapseKey:p.collapse_key,messageId:p.fcm_message_id},p),v=g,(m=p).data&&(v.data=m.data),function(e,t){if(t.fcmOptions){e.fcmOptions={};var n=t.fcmOptions.link;n&&(e.fcmOptions.link=n);var i=t.fcmOptions.analytics_label;i&&(e.fcmOptions.analyticsLabel=i)}}(g,p),r=g,"function"==typeof this.bgMessageHandler?this.bgMessageHandler(r):this.bgMessageHandler.next(r)}return[4,e1(1e3)];case 4:return o.sent(),[2]}})})},e.prototype.onSubChange=function(e){var t,n;return(0,w.__awaiter)(this,void 0,void 0,function(){var i;return(0,w.__generator)(this,function(r){switch(r.label){case 0:if(e.newSubscription)return[3,2];return[4,eZ(this.firebaseDependencies,self.registration)];case 1:case 5:return r.sent(),[2];case 2:return[4,eq(this.firebaseDependencies)];case 3:return i=r.sent(),[4,eZ(this.firebaseDependencies,self.registration)];case 4:return r.sent(),[4,e$(this.firebaseDependencies,self.registration,null!=(n=null==(t=null==i?void 0:i.subscriptionOptions)?void 0:t.vapidKey)?n:eL)]}})})},e.prototype.onNotificationClick=function(e){var t,n;return(0,w.__awaiter)(this,void 0,void 0,function(){var i,r,o,a,s;return(0,w.__generator)(this,function(u){switch(u.label){case 0:var c,l,f,d,p;if(!(i=null==(n=null==(t=e.notification)?void 0:t.data)?void 0:n[ej])||e.action)return[2];if(e.stopImmediatePropagation(),e.notification.close(),!(r=(p=null!=(f=null==(l=(c=i).fcmOptions)?void 0:l.link)?f:null==(d=c.notification)?void 0:d.click_action)||(e0(c.data)?self.location.origin:null))||(o=new URL(r,self.location.href),a=new URL(self.location.origin),o.host!==a.host))return[2];return[4,function(e){return(0,w.__awaiter)(this,void 0,void 0,function(){var t,n,i,r,o,a,s;return(0,w.__generator)(this,function(u){switch(u.label){case 0:return[4,e4()];case 1:t=u.sent();try{for(i=(n=(0,w.__values)(t)).next();!i.done;i=n.next())if(r=i.value,o=new URL(r.url,self.location.href),e.host===o.host)return[2,r]}catch(e){a={error:e}}finally{try{i&&!i.done&&(s=n.return)&&s.call(n)}finally{if(a)throw a.error}}return[2,null]}})})}(o)];case 1:if(s=u.sent())return[3,4];return[4,self.clients.openWindow(r)];case 2:return s=u.sent(),[4,e1(3e3)];case 3:return u.sent(),[3,6];case 4:return[4,s.focus()];case 5:s=u.sent(),u.label=6;case 6:if(!s)return[2];return i.messageType=h.NOTIFICATION_CLICKED,i.isFirebaseMessaging=!0,[2,s.postMessage(i)]}})})},e}();function e4(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}var e3=function(){function e(e){var t=this;this.firebaseDependencies=e,this.vapidKey=null,this.onMessageCallback=null,navigator.serviceWorker.addEventListener("message",function(e){return t.messageEventListener(e)})}return Object.defineProperty(e.prototype,"app",{get:function(){return this.firebaseDependencies.app}
1,enumerable:!1,configurable:!0}),e.prototype.messageEventListener=function(e){return(0,w.__awaiter)(this,void 0,void 0,function(){var t,n;return(0,w.__generator)(this,function(i){switch(i.label){case 0:var r;if(!(t=e.data).isFirebaseMessaging)return[2];if(this.onMessageCallback&&t.messageType===h.PUSH_RECEIVED&&("function"==typeof this.onMessageCallback?this.onMessageCallback((r=Object.assign({},t),delete r.messageType,delete r.isFirebaseMessaging,r)):this.onMessageCallback.next(Object.assign({},t))),!(e0(n=t.data)&&"1"===n["google.c.a.e"]))return[3,2];return[4,this.logEvent(t.messageType,n)];case 1:i.sent(),i.label=2;case 2:return[2]}})})},e.prototype.getVapidKey=function(){return this.vapidKey},e.prototype.getSwReg=function(){return this.swRegistration},e.prototype.getToken=function(e){return(0,w.__awaiter)(this,void 0,void 0,function(){return(0,w.__generator)(this,function(t){switch(t.label){case 0:if("default"!==Notification.permission)return[3,2];return[4,Notification.requestPermission()];case 1:t.sent(),t.label=2;case 2:if("granted"!==Notification.permission)throw eP.create("permission-blocked");return[4,this.updateVapidKey(null==e?void 0:e.vapidKey)];case 3:return t.sent(),[4,this.updateSwReg(null==e?void 0:e.serviceWorkerRegistration)];case 4:return t.sent(),[2,e$(this.firebaseDependencies,this.swRegistration,this.vapidKey)]}})})},e.prototype.updateVapidKey=function(e){return(0,w.__awaiter)(this,void 0,void 0,function(){return(0,w.__generator)(this,function(t){return e?this.vapidKey=e:this.vapidKey||(this.vapidKey=eL),[2]})})},e.prototype.updateSwReg=function(e){return(0,w.__awaiter)(this,void 0,void 0,function(){return(0,w.__generator)(this,function(t){switch(t.label){case 0:if(!(!e&&!this.swRegistration))return[3,2];return[4,this.registerDefaultSw()];case 1:t.sent(),t.label=2;case 2:if(!e&&this.swRegistration)return[2];if(!(e instanceof ServiceWorkerRegistration))throw eP.create("invalid-sw-registration");return this.swRegistration=e,[2]}})})},e.prototype.registerDefaultSw=function(){return(0,w.__awaiter)(this,void 0,void 0,function(){var e,t;return(0,w.__generator)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),e=this,[4,navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"})];case 1:return e.swRegistration=n.sent(),this.swRegistration.update().catch(function(){}),[3,3];case 2:throw t=n.sent(),eP.create("failed-service-worker-registration",{browserErrorMessage:t.message});case 3:return[2]}})})},e.prototype.deleteToken=function(){return(0,w.__awaiter)(this,void 0,void 0,function(){return(0,w.__generator)(this,function(e){switch(e.label){case 0:if(this.swRegistration)return[3,2];return[4,this.registerDefaultSw()];case 1:e.sent(),e.label=2;case 2:return[2,eZ(this.firebaseDependencies,this.swRegistration)]}})})},e.prototype.requestPermission=function(){return(0,w.__awaiter)(this,void 0,void 0,function(){var e;return(0,w.__generator)(this,function(t){switch(t.label){case 0:if("granted"===Notification.permission)return[2];return[4,Notification.requestPermission()];case 1:if("granted"===(e=t.sent()))return[2];if("denied"===e)throw eP.create("permission-blocked");throw eP.create("permission-default")}})})},e.prototype.usePublicVapidKey=function(e){if(null!==this.vapidKey)throw eP.create("use-vapid-key-after-get-token");if("string"!=typeof e||0===e.length)throw eP.create("invalid-vapid-key");this.vapidKey=e},e.prototype.useServiceWorker=function(e){if(!(e instanceof ServiceWorkerRegistration))throw eP.create("invalid-sw-registration");if(this.swRegistration)throw eP.create("use-sw-after-get-token");this.swRegistration=e},e.prototype.onMessage=function(e){var t=this;return this.onMessageCallback=e,function(){t.onMessageCallback=null}},e.prototype.setBackgroundMessageHandler=function(){throw eP.create("only-available-in-sw")},e.prototype.onBackgroundMessage=function(){throw eP.create("only-available-in-sw")},e.prototype.onTokenRefresh=function(){return function(){}},e.prototype.logEvent=function(e,t){return(0,w.__awaiter)(this,void 0,void 0,function(){var n;return(0,w.__generator)(this,function(i){switch(i.label){case 0:return n=function(e){switch(e){case h.NOTIFICATION_CLICKED:return"notification_open";case h.PUSH_RECEIVED:return"notification_foreground";default:throw Error()}}(e),[4,this.firebaseDependencies.analyticsProvider.get()];case 1:return i.sent().logEvent(n,{message_id:t[eM],message_name:t["google.c.a.c_l"],message_time:t["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)}),[2]}})})},e}();function e6(e){return eP.create("missing-app-config-values",{valueName:e})}function e5(){return self&&"ServiceWorkerGlobalScope"in self?"indexedDB"in self&&null!==indexedDB&&"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSub
1scription.prototype.hasOwnProperty("getKey"):"indexedDB"in window&&null!==indexedDB&&navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}X.INTERNAL.registerComponent(new x("messaging",function(e){var t=e.getProvider("app").getImmediate(),n=function(e){if(!e||!e.options)throw e6("App Configuration Object");if(!e.name)throw e6("App Name");var t,n,i=e.options;try{for(var r=(0,w.__values)(["projectId","apiKey","appId","messagingSenderId"]),o=r.next();!o.done;o=r.next()){var a=o.value;if(!i[a])throw e6(a)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return{appName:e.name,projectId:i.projectId,apiKey:i.apiKey,appId:i.appId,senderId:i.messagingSenderId}}(t),i={app:t,appConfig:n,installations:e.getProvider("installations").getImmediate(),analyticsProvider:e.getProvider("analytics-internal")};if(!e5())throw eP.create("unsupported-browser");return self&&"ServiceWorkerGlobalScope"in self?new e2(i):new e3(i)},"PUBLIC").setServiceProps({isSupported:e5}));var e8=e.i(56064);let e9=async({org:e,userId:t})=>{async function n(){try{await e7.init({options:e.appSettings.fmcWebConfig},e.appSettings.fmcWebPublicKey,t)&&"serviceWorker"in navigator&&navigator.serviceWorker.register("/firebase-messaging-sw.js").then(function(t){X.messaging().onMessage(async t=>{"granted"===Notification.permission?navigator.serviceWorker&&navigator.serviceWorker.getRegistration().then(async function(n){if(n){let i=t.data.title,r={body:t.data.message,icon:`${(0,b.getCDNURL)()}logos/${e._id}.png?v=${e.logoVersion}`,actions:[{action:"open_url",title:"Open"}]};t.data.customIcon&&(r.icon=t.data.customIcon),t.data.customImage&&(r.image=t.data.customImage),r.data={url:t.data.link},await n.showNotification(i,r)}}):await Notification.requestPermission()}),console.log("service worker registered")},function(e){console.log("Service Worker registration failed: ",e)})}catch(e){console.log(e)}}y.isBrowser&&"localhost"===window.location.hostname||("serviceWorker"in navigator&&void 0!==window.workbox&&navigator.serviceWorker.ready.then(async e=>{await Notification.requestPermission()}),y.isBrowser&&t&&(window.userId=t),await n())},e7={init:async function({options:e},t,n){X.apps.length||X.initializeApp(e);try{let e,i=X.messaging();n&&X.auth().onIdTokenChanged(async function(){let e=await i.getToken();if(e)return tn(!1),te(e),tn(!0),n&&ti(n),e});try{if((e=await Notification.requestPermission())&&"granted"===e){let e=await i.getToken({vapidKey:t});if(e&&!sessionStorage.getItem("initialedFCM"))return sessionStorage.setItem("initialedFCM","1"),te(e),tn(!0),n&&ti(n),y.isBrowser&&(window.userId=n),e}}catch(e){console.log("error permission",e)}}catch(e){return console.error(e),null}}},te=async e=>{tt()||await e8.api.firebase.getFirebaseToken(e)},tt=()=>{let e;if(!y.isBrowser)return!1;return"1"===window.localStorage.getItem("sentToServer")&&(e=window.userId,!!y.isBrowser&&window.localStorage.getItem("sentToServer-user")==e)},tn=e=>{y.isBrowser&&window.localStorage.setItem("sentToServer",e?"1":"0")},ti=e=>{y.isBrowser&&window.localStorage.setItem("sentToServer-user",e)};var tr=e.i(43418),to=e.i(9135),ta=e.i(94155),ts=e.i(15810),tu=e.i(72043),tc=e.i(68489),th=e.i(3828),tl=e.i(91788),tf=e.i(75359),td=e.i(7245),tp=e.i(11425);e.i(64157);var tg=e.i(71179),tv=e.i(41158),tm=e.i(30360),tb=e.i(72331),ty=e.i(23113),tw=e.i(50261),tI=e.i(89008),t_=e.i(31171);let tT=()=>{let{t:e}=(0,tg.useTranslation)(["LAYOUT"]),[t]=(0,f.useCurrentOrg)(),[n,i]=(0,tl.useState)({brand:""}),r=t?.showPoweredBy,o=(0,th.useRouter)(),a="/products"===o.route,{query:s}=o,{disableNavLink:u,isThemePreview:c}=s,h=[{Icon:(0,l.jsx)(t_.Youtube,{}),link:"https://www.youtube.com/c/GraphyUniversity",id:"2"},{Icon:(0,l.jsx)(ty.Instagram,{}),link:"https://www.instagram.com/graphyapp/",id:"4"},{Icon:(0,l.jsx)(tI.Twitter,{}),link:"https://twitter.com/graphyapp",id:"3"},{Icon:(0,l.jsx)(tw.Linkedin,{}),link:"https://www.linkedin.com/company/graphyapp",id:"5"},{Icon:(0,l.jsx)(tb.Facebook,{className:""}),link:"https://www.facebook.com/creatorsongraphy/",id:"1"}],d=(0,tl.useMemo)(()=>[{Icon:(0,l.jsx)(t_.Youtube,{}),link:n?.socialMediaLink?.yPage||t?.footerOptions?.yPage,id:"2"},{Icon:(0,l.jsx)(ty.Instagram,{}),link:n?.socialMediaLink?.instaPage||t?.footerOptions?.instaPage,id:"4"},{Icon:(0,l.jsx)(tI.Twitter,{}),link:n?.socialMediaLink?.twitterPage||t?.footerOptions?.twitterPage,id:"3"},{Icon:(0,l.jsx)(tw.Linkedin,{}),link:n?.socialMediaLink?.linkedinPage||t?.footerOptions?.linkedinPage,id:"5"},{Icon:(0,l.jsx)(tb.Facebook,{className:""}),link:n?.socialMediaLink?.fbPage||t?.footerOptions?.fbPage,id:"1"}],[n,t]),p=(0,tl.useMemo)(()=>-1!==d.findIndex(e=>!!e.link),[d])?d:h,g=(0,tl.useCallback)(e=>{i(e.data)},[]);(0,tl.useEffect)(()=>(window.addEventListener("message",g),()=>{window.removeEventListener("message",g)}),[g]);let v=p.every(e=>!e.link);return(0,l.jsx)("div",{className:(0,tu.default)("mt-auto bg-secondaryColor","true"===c&&"pointer-events-none"),children:(0,l.jsxs)("footer",{className:"mx-auto flex w-full max-w-[1136px] flex-col items-center justify-center py-12",children:[(0,l.jsx)("div",{className:"order-3 mt-8 flex flex-col items-center justify-center sm:order-1",children:(()=>
1{if(r)return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(td.Button,{compLib:!1,className:"z-1 mb-4 flex w-full max-w-[186px] !bg-primaryColor px-4 sm:mb-2",IconStart:(0,l.jsx)(tm.GraphyIcon,{}),as:tv.default,href:`https://graphy.com/products/create-and-sell-course-online/?utm_campaign=${t?.alias}&utm_source=gc&utm_device=website&gref=${t?.alias}`,target:"_blank",rel:t?.includeInSEO?"":"nofollow",onClick:e=>{"true"===u&&e.preventDefault()},children:(0,l.jsx)(tp.Typography,{as:"p",size:"BODY",fontWeight:"font-normal",colorClass:"text-white",className:"whitespace-nowrap",children:e("LAYOUT:FOOTER.LAUNCH_YOUR_GRAPHY")})}),(0,l.jsxs)(tp.Typography,{size:"CAPTION",fontWeight:"font-normal",colorClass:"text-neutralBlack",as:"p",className:"mb-8 mt-2 px-10",align:"text-center",children:[e("LAYOUT:FOOTER.CREATOR_TRUST"),(0,l.jsx)("a",{href:"https://graphy.com",className:"underline",target:"_blank",rel:t?.includeInSEO?"noreferrer":"noreferrer nofollow",children:e("LAYOUT:FOOTER.GRAPHY")})," ",e("LAYOUT:FOOTER.COURSE_LAUNCH_WEBINARS")]})]})})()}),(0,l.jsxs)("div",{className:"order-1 mb-8 flex flex-col items-center justify-center sm:order-2 sm:mb-0",children:[!v&&(0,l.jsx)("div",{className:"mb-4 flex h-6 gap-3 text-center",children:p.map((e,t)=>e.link?(0,l.jsx)("a",{href:e.link,target:"_blank",rel:"noreferrer",children:(0,l.jsx)("div",{className:"",children:e.Icon})},e.id):(0,l.jsx)(tl.Fragment,{},e.id))}),(0,l.jsxs)(tp.Typography,{as:"p",colorClass:"text-neutralBlack",size:"BODY",fontWeight:"font-normal",children:[(0,l.jsxs)("span",{className:"mb-4 block text-center sm:mb-0 sm:inline",children:[t?.name," © ",new Date().getFullYear()]})," ",(0,l.jsx)("span",{className:"ml-1 mr-2 hidden sm:inline",children:"â¢"}),(0,l.jsx)(tp.Typography,{size:"BODY",as:a?"a":tv.default,href:"/privacypolicy",className:"underline",onClick:e=>{"true"===u&&e.preventDefault()},children:e("LAYOUT:FOOTER.PRIVACY_POLICY")}),(0,l.jsx)("span",{className:"mx-2",children:"â¢"}),(0,l.jsx)(tp.Typography,{size:"BODY",as:a?"a":tv.default,href:"/termsofuse",className:"underline",onClick:e=>{"true"===u&&e.preventDefault()},children:e("LAYOUT:FOOTER.TERMS_OF_USE")}),(0,l.jsx)("span",{className:"mx-2",children:"â¢"}),(0,l.jsx)(tp.Typography,{size:"BODY",as:a?"a":tv.default,href:"/refundpolicy",className:"underline",onClick:e=>{"true"===u&&e.preventDefault()},children:e("LAYOUT:FOOTER.REFUND_POLICY")})]})]}),(0,l.jsx)("hr",{className:"order-2 w-full text-slateStroke sm:hidden"})]})})};var tk=e.i(53862),tS=((i={}).PRODUCTS="digip",i.MEMBERSHIP="memberships",i.WEBINAR="webinars",i.COURSES="courses",i.TELEGRAM="telegram",i),tE=e.i(83497);let tA="navbar_link_tapped_user_landing_page",tN={CUSTOM_DOMAIN:"custom_domain",BUTTON:"button"},tO="livesessions_tapped",tC={SOURCE:"source"},tx="membership_tapped",tR={MEMBERSHIP_ID:"membership_id",SOURCE:"source"},tD=({button:e,customDomain:t})=>{new tE.default().sendEvent({type:tA,properties:{[tN.BUTTON]:e,[tN.CUSTOM_DOMAIN]:t}})};var tP=e.i(13144),tL=e.i(26019);let tj=()=>{let{t:e}=(0,tg.useTranslation)(["LAYOUT"]),[t]=(0,f.useCurrentOrg)(),{data:n}=(0,d.useCurrentOrganization)(["Org"],{staleTime:1/0,cacheTime:1/0}),i=n||t;return(0,l.jsx)(tL.default,{src:i?.logoVersion?`${(0,b.getCDNURL)()}logos/${i?._id}.png?v=${i.logoVersion}`:`${(0,b.getCDNURL)()}resources/images/yourlogohere.jpg`,className:"h-[42px] w-[90px] object-contain",height:42,width:90,alt:e("LAYOUT:NAVBAR.ALT_CREATOR_LOGO")})};var tM=e.i(46778);let tU=()=>{let[e,t]=tl.default.useState(!1),[n]=(0,f.useCurrentOrg)(),[i]=(0,f.useCurrentUser)(),{t:r}=(0,tg.useTranslation)(["LAYOUT"]),{closeModal:o,isVisible:a,openModal:s}=(0,ts.useModal)(m.MODAL_IDS.LOGIN_SIGNUP_STEP_MODAL),{setRegistrationCurrentFlow:u,setRegistrationInitStep:c}=(0,ta.useLearnersOtpStore)(e=>({setRegistrationCurrentFlow:e.setRegistrationCurrentFlow,setRegistrationInitStep:e.setRegistrationInitStep}),tf.default),h=()=>{R()||t(!e)},d=()=>{R()||(t(!1),u(v.loginFlow),c(v.loginFlow),s())};(0,tl.useEffect)(()=>{u(v.loginFlow),c(v.loginFlow)},[u,c]),(0,tl.useEffect)(()=>{document.body.style.overflow=e?"hidden":"auto"},[e]);let p="text-left px-4 py-4 hover:bg-selection02",g=(0,th.useRouter)(),{query:b}=g,{disableNavLink:y,productType:w,isThemePreview:I}=b;g.route,g.route;let _="/products/[digitalProductId]"===g.route||"/telegram/[telegramCommunityId]"===g.route,T=n?.livesessionCreated,k=n?.membershipSupport&&n.membershipCreated&&n.membershipEnabled&&"all_subscription_paused"!==n.membershipSubscriptionStatus&&"new_subscription_paused"!==n.membershipSubscriptionStatus,S=n?.blogCreated,{isUserFetched:E}=(0,to.useGlobalStore)(e=>({isUserFetched:e.isUserFetched}),tf.default),A=e=>{R()?e.preventDefault():tD({button:"profile_logo",customDomain:n.domainName?.[0]})},N=e=>{R()?e.preventDefault():tD({button:"store",customDomain:n.domainName?.[0]})},O=e=>{R()?e.preventDefault():(({source:e})=>{new tE.default().sendEvent({type:tO,properties:{[tC.SOURCE]:e}})})({source:"nav_bar"})},C=e=>{R()?e.preventDefault():(({source:e,membershipId:t})=>{new tE.default().sendEvent({type:tx,properties:{[tR.SOURCE]:e,[tR.MEMBERSHIP_ID]:t}})})({source:"nav_bar",membershipId:""})},x=(0,tu.default)("mx-auto w-full px-6",_?"max-w-[1167px]":"max-w-[1136px]"),R=()=>"true"===y;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(tk.default,{isVisible:a,onClose:o}),(0,l.jsx)("div",{className:(0,tu.default)("navbar top-0 z-[3] hidden border-b border-slateStroke bg-white lg:block","true"===I&&"pointer-events-none"),children:(0,l.jsx)("div",{className:x,children:(0,l.jsx)("nav",{children:(0,l.jsxs)("ul",{className:"flex items-center",children:[_?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("a",{href:"/",onClick:A,className:`my-[6px] mr-auto h-[42px] w-[90px] ${R()&&"pointer-events-none"}`,children:(0,l.jsx)(tj,{})})}):(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(tv.default,{href:"/",onClick:A,className:"my-[6px] mr-auto h-[42px] w-[90px]",children:(0,l.jsx)(tj,{})})}),!_&&(0,l.jsxs)("div",{className:"flex items-center gap-10",children:[(0,l.jsx)("li",{children:(0,l.jsx)(tv.default,{href:"/",onClick:e=>{R()&&e.preventDefault()},children:r("LAYOUT:NAVBAR.ABOUT")})}),(0,l.jsx)("li",{children:(0,l.jsx)(tv.default,{onClick:N,href:"/courses",children:r("LAYOUT:NAVBAR.COURSES")})}),(w===tS.WEBINAR||T)&&(0,l.jsx)("li",{children:(0,l.jsx)(tv.default,{onClick:O,href:"/sessions",children:r("LAYOUT:NAVBAR.WEBINARS")})}),(w===tS.PRODUCTS||n?.digitalProductPublished)&&(0,l.jsx)("li",{children:(0,l.jsx)(tv.default,{onClick:O,href:"/products",children:r("LAYOUT:NAVBAR.DIGITAL_PRODUCTS")})}),(w===tS.MEMBERSHIP||k)&&(0,l.jsx)("li",{children:(0,l.jsx)(tv.default,{onClick:C,href:"/membership",children:r("LAYOUT:NAVBAR.MEMBERSHIP")})}),S&&(0,l.jsx)("li",{children:(0,l.jsx)(tv.default,{href:"/blog",children:r("LAYOUT:NAVBAR.BLOG")})})]}),(0,l.jsx)("li",{className:"ml-auto flex items-center",children:E&&(i?_?(0,l.jsxs)("button",{className:`flex ${R()?"pointer-events-none":""}`,onClick:()=>{window.parent.location.href="/s/logout"},children:[(0,l.jsx)(tp.Typography,{fontWeight:"font-normal",size:"BODY",colorClass:"text-darkSlate01",children:r("LAYOUT:NAVBAR.LOGOUT")}),(0,l.jsx)(tm.LogoutIcon,{className:"ml-2"})]}):(0,l.jsx)(tM.default,{}):(0,l.jsx)("button",{onClick:d,children:r("LAYOUT:NAVBAR.LOGIN")}))})]})})})}),(0,l.jsx)("div",{className:(0,tu.default)("navbar-mobile block lg:hidden","true"===I&&"pointer-events-none"),children:(0,l.jsxs)("div",{className:"flex items-center justify-between border-b border-slateStroke px-4 py-5",children:[_?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("a",{href:"/",onClick:A,className:"my-[6px] mr-auto h-[42px] w-[90px]",children:(0,l.jsx)(tj,{})})}):(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(tv.default,{href:"/",onClick:A,className:"my-[6px] mr-auto h-[42px] w-[90px]",children:(0,l.jsx)(tj,{})})}),_?null:e?(0,l.jsx)(tm.CloseButton,{className:`${!R()&&"cursor-pointer"}`,onClick:h}):(0,l.jsx)(tm.Hamburger,{className:`${!R()&&"cursor-pointer"}`,onClick:h}),_?i?(0,l.jsxs)("button",{className:`flex ${!R()&&"cursor-pointer"}`,onClick:()=>{window.parent.location.href="/s/logout"},children:[(0,l.jsx)(tp.Typography,{fontWeight:"font-normal",size:"BODY",colorClass:"text-darkSlate01",children:r("LAYOUT:NAVBAR.LOGOUT")}),(0,l.jsx)(tm.LogoutIcon,{className:"ml-2"})]}):(0,l.jsx)("button",{onClick:d,children:r("LAYOUT:NAVBAR.LOGIN")}):null,e&&(0,l.jsx)("div",{className:"absolute left-0 right-0 bottom-0 top-[84px] z-10 bg-white",children:(0,l.jsxs)("ul",{className:"flex h-full flex-col",children:[!_&&(0,l.jsxs)(l.Fragment,{children:[" ",(0,l.jsx)(tv.default,{href:"/",className:p,children:(0,l.jsx)("li",{className:" hover:bg-selection02",children:r("LAYOUT:NAVBAR.ABOUT")})}),(0,l.jsx)(tv.default,{href:"/courses",onClick:N,className:p,children:(0,l.jsx)("li",{className:" hover:bg-selection02",children:r("LAYOUT:NAVBAR.COURSES")})}),T&&(0,l.jsx)(tv.default,{onClick:O,href:"/sessions",className:p,children:(0,l.jsx)("li",{className:" hover:bg-selection02",children:r("LAYOUT:NAVBAR.WEBINARS")})}),n?.digitalProductCreated&&(0,l.jsx)(tv.default,{href:"/products",className:p,children:(0,l.jsx)("li",{className:" hover:bg-selection02",children:r("LAYOUT:NAVBAR.DIGITAL_PRODUCTS")})}),k&&(0,l.jsx)(tv.default,{onClick:C,href:"/membership",className:p,children:(0,l.jsx)("li",{className:" hover:bg-selection02",children:r("LAYOUT:NAVBAR.MEMBERSHIP")})}),S&&(0,l.jsx)(tv.default,{href:"/blog",className:p,children:(0,l.jsx)("li",{className:" hover:bg-selection02",children:r("LAYOUT:NAVBAR.BLOG")})}),i&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("a",{href:(0,tP.getProfileLink)(i),className:p,onClick:e=>{R()&&e.preventDefault()},children:(0,l.jsx)("li",{className:" hover:bg-selection02",children:r("LAYOUT:NAVBAR.MY_PROFILE")})}),(0,l.jsx)("a",{href:(0,tP.getDashboardLink)(i),className:p,onClick:e=>{R()&&e.preventDefault()},children:(0,l.jsx)("li",{className:" hover:bg-selection02",children:r("LAYOUT:NAVBAR.DASHBOARD")})})]})]}),(0,l.jsx)("li",{className:"mt-auto border-t border-slateStroke p-4",children:i?(0,l.jsx)(td.Button,{as:"button",onClick:e=>{R()?e.preventDefault():((0,tE.clearAmplitude)(),window.parent.location.href="/s/logout")}
1,compLib:!1,className:"block w-full border border-sapphire02 !bg-transparent text-center text-white",children:(0,l.jsx)(tp.Typography,{colorClass:"text-sapphire02",size:"BODY",fontWeight:"font-semibold",className:"",children:r("LAYOUT:NAVBAR.LOGOUT")})}):(0,l.jsx)(td.Button,{onClick:d,compLib:!1,className:"!bg-primaryColor text-white",children:(0,l.jsx)(tp.Typography,{colorClass:"text-white",size:"BODY",fontWeight:"font-semibold",className:"",children:r("LAYOUT:NAVBAR.LOGIN")})})})]})})]})})]})},tF=(0,tc.default)(()=>e.A(84711),{loadableGenerated:{modules:[98884]}}),tV=(0,tc.default)(()=>e.A(71601),{loadableGenerated:{modules:[12257]}}),tB=(0,tc.default)(()=>e.A(93324),{loadableGenerated:{modules:[93902]},ssr:!1}),tK=(0,tc.default)(()=>e.A(56382),{loadableGenerated:{modules:[31192]},ssr:!1}),tH=(0,tc.default)(()=>e.A(89994),{loadableGenerated:{modules:[69609]}}),tq=e=>{let{children:t,shouldRenderFooter:n=!0,shouldRenderHeader:i=!0,resetContainerCSS:r=!1}=e,o=(0,th.useRouter)(),[,a]=(0,f.useCurrentOrg)(),[,s]=(0,f.useCurrentUser)(),[u,c]=(0,tl.useState)(!1),[h,w]=(0,tl.useState)({brand:""}),{query:{isThemePreview:I,primaryColor:_,secondaryColor:T}}=o,k=!!_&&"string"==typeof _&&_,S=!!T&&"string"==typeof T&&T,{closeModal:E,isVisible:A,openModal:N}=(0,ts.useModal)(m.MODAL_IDS.LOGIN_SIGNUP_STEP_MODAL),{setRegistrationCurrentFlow:O,setRegistrationInitStep:C}=(0,ta.useLearnersOtpStore)(e=>({setRegistrationCurrentFlow:e.setRegistrationCurrentFlow,setRegistrationInitStep:e.setRegistrationInitStep}),tf.default),[x,R]=(0,tl.useState)(!1),{data:D,isError:P,isSuccess:L}=(0,d.useCurrentOrganization)(["Org"],{staleTime:1/0,cacheTime:1/0});(0,tl.useEffect)(()=>{if(D&&R(D?.cookieConsentEnabled),"true"===I&&k&&S)document.documentElement.style.setProperty("--primaryColor","#"+k),document.documentElement.style.setProperty("--secondaryColor","#"+S);else{let e=D?.websiteV2Theme?.primaryColor,t=D?.websiteV2Theme?.secondaryColor;"string"==typeof e&&e.startsWith("#")&&"string"==typeof t&&t.startsWith("#")&&(document.documentElement.style.setProperty("--primaryColor",e),document.documentElement.style.setProperty("--secondaryColor",t))}},[D]);let{data:j,error:M,refetch:U,isError:F,isSuccess:V,isFetched:B}=(0,d.useCurrentLoggedUser)(["User"],{staleTime:1/0,cacheTime:1/0,onError:e=>{e?.response?.status===401&&localStorage.removeItem("microserviceAuthToken")}}),{setReferrer:K,referrer:H,setIsUserFetched:q}=(0,to.useGlobalStore)(e=>({setReferrer:e.setReferrer,referrer:e.referrer,setIsUserFetched:e.setIsUserFetched}),tf.default);(0,tl.useEffect)(()=>{q(B)},[B,q]);let{data:W}=(0,d.useCurrentLoggedUserRefreshToken)(["RefreshToken"],{staleTime:1/0,cacheTime:1/0,enabled:M?.response?.status===401,onSuccess:e=>{e.token&&(localStorage.setItem("microserviceAuthToken",e.token),setTimeout(()=>U(),100))}}),[G,z]=(0,tl.useState)(!1),{data:Y,refetch:X,error:J}=(0,d.useIPInfo)(["ipInfo"],{enabled:G,onSuccess:e=>{e&&(localStorage.setItem("ipInfo",JSON.stringify(e)),e?.country&&localStorage.setItem("country",e?.country))},onError:e=>{z(!1)},onSettled:()=>{z(!1)}});(0,tl.useEffect)(()=>{D&&a(D),j&&s(j);let e=localStorage.getItem("ipInfo"),t=new URLSearchParams((0,b.getParentWindow)().location.search),n=t.get("uref"),i=t.get("utm_source")||t.get("utmSource"),r=t.get("utm_campaign")||t.get("utmCampaign"),o=t.get("utm_medium")||t.get("utmMedium"),u=t.get("utm_content")||t.get("utmContent"),c=t.get("utm_term")||t.get("utmTerm");if(n&&localStorage.setItem("uref",n),i&&localStorage.setItem("utmSource",i),r&&localStorage.setItem("utmCampaign",r),o&&localStorage.setItem("utmMedium",o),u&&localStorage.setItem("utmContent",u),c&&localStorage.setItem("utmTerm",c),!(0,b.getCookie)("id")){let e=(0,tr.getSpayeeUuid)();document.cookie="id="+e+"; Max-Age=2147483647; Path=/; HttpOnly"}try{e&&(e=JSON.parse(e))}catch(e){}e||J||z(!0)},[J,D,a,s,j]),(0,tl.useEffect)(()=>{H||K(document.referrer)},[H]),(0,tl.useEffect)(()=>{g.includes(o.pathname)&&y.isBrowser?c(!0):c(!1)},[o.pathname]),(0,tl.useEffect)(()=>{if(D&&y.isBrowser)return D?.appSettings?.allowWebNotification&&D?.uiconfig?.websiteV2&&(j?e9({org:D,userId:j.userId}):e9({org:D})),()=>{sessionStorage.removeItem("initialedFCM")}},[j,D]),(0,tl.useEffect)(()=>{let e=new URLSearchParams(window.location.search);e.has("newKakaoUser")&&"true"===e.get("newKakaoUser")&&(C(v.kakaoNewUserFlow),O(v.kakaoNewUserFlow),N())},[]),(0,tl.useEffect)(()=>{let e=new URLSearchParams(window.location.search);localStorage.getItem("dgps_u_st")||localStorage.getItem("dgps_uid")||localStorage.getItem("dgps_t")||localStorage.getItem("dgps_s")||localStorage.getItem("dgps_u")||["dgps_u_st","dgps_uid","dgps_t","dgps_s","dgps_u"].forEach(t=>{e.has(t)&&""!==e.get(t)&&localStorage.setItem(t,e.get(t)||"")})},[]);let $=(0,tl.useCallback)(e=>{w(e.data)},[]);return(0,tl.useEffect)(()=>(window.addEventListener("message",$),()=>{window.removeEventListener("message",$)}),[]),(0,l.jsxs)("div",{className:(0,tu.default)(!r&&"flex min-h-[100vh] flex-col pb-16 sm:pb-0"),children:[D?.pirschICode&&(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:`<script defer type="text/javascript" src="https://api.pirsch.io/pirsch-extended.js" 2 id="pirschextendedjs" 3 data-code="${D.pirschICode}"></script>`}}),D?.whatsappMobileNumber&&p.whatsAppWidgetRoutes.find(e=>"/"===e?e===o.pathname:0===o.pathname.indexOf(e))&&(0,l.jsx)(tB,{}),D?.kakaoChannelId&&D?.orgCountryCode=="kr"&&p.whatsAppWidgetRoutes.find(e=>"/"===e?e===o.pathname:0===o.pathname.indexOf(e))&&(0,l.jsx)(tK,{}),D?.fomoCode&&o.query.mobile&&(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:D?.fomoCode}}),D?.customScripts?(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:D?.customScripts}}):null,i&&(0,l.jsx)(tU,{}),t,n&&(0,l.jsx)(tT,{}),u&&x&&(0,l.jsx)(tF,{}),u&&(0,l.jsx)(tV,{}),u&&(0,l.jsx)(tH,{})]})};e.s(["Layout",0,tq,"default",0,tq],19564)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.