text: "use strict";(self.webpackChunkangularDataScience_app=self.webpackChunkangularDataScience_app||[]).push([["node_modules_firebase_auth_dist_index_esm_js"],{7169:function(t,e,n){n.r(e);var i=n(1601);(function(){var t,e="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},n=function(t){t=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,t];for(var e=0;e<t.length;++e){var n=t[e];if(n&&n.Math==Math)return n}return globalThis}(this);function r(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function o(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):{next:r(t)}}!function(t,i){if(i){var r=n;t=t.split(".");for(var o=0;o<t.length-1;o++){var a=t[o];a in r||(r[a]={}),r=r[a]}(i=i(o=r[t=t[t.length-1]]))!=o&&null!=i&&e(r,t,{configurable:!0,writable:!0,value:i})}}("Promise",function(t){function e(t){this.b=0,this.c=void 0,this.a=[];var e=this.f();try{t(e.resolve,e.reject)}catch(n){e.reject(n)}}function i(){this.a=null}function r(t){return t instanceof e?t:new e(function(e){e(t)})}if(t)return t;i.prototype.b=function(t){if(null==this.a){this.a=[];var e=this;this.c(function(){e.g()})}this.a.push(t)};var a=n.setTimeout;i.prototype.c=function(t){a(t,0)},i.prototype.g=function(){for(;this.a&&this.a.length;){var t=this.a;this.a=[];for(var e=0;e<t.length;++e){var n=t[e];t[e]=null;try{n()}catch(i){this.f(i)}}}this.a=null},i.prototype.f=function(t){this.c(function(){throw t})},e.prototype.f=function(){function t(t){return function(i){n||(n=!0,t.call(e,i))}}var e=this,n=!1;return{resolve:t(this.m),reject:t(this.g)}},e.prototype.m=function(t){if(t===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof e)this.s(t);else{t:switch(typeof t){case"object":var n=null!=t;break t;case"function":n=!0;break t;default:n=!1}n?this.v(t):this.h(t)}},e.prototype.v=function(t){var e=void 0;try{e=t.then}catch(n){return void this.g(n)}"function"==typeof e?this.u(e,t):this.h(t)},e.prototype.g=function(t){this.i(2,t)},e.prototype.h=function(t){this.i(1,t)},e.prototype.i=function(t,e){if(0!=this.b)throw Error("Cannot settle("+t+", "+e+"): Promise already settled in state"+this.b);this.b=t,this.c=e,this.l()},e.prototype.l=function(){if(null!=this.a){for(var t=0;t<this.a.length;++t)s.b(this.a[t]);this.a=null}};var s=new i;return e.prototype.s=function(t){var e=this.f();t.Ra(e.resolve,e.reject)},e.prototype.u=function(t,e){var n=this.f();try{t.call(e,n.resolve,n.reject)}catch(i){n.reject(i)}},e.prototype.then=function(t,n){function i(t,e){return"function"==typeof t?function(e){try{r(t(e))}catch(n){o(n)}}:e}var r,o,a=new e(function(t,e){r=t,o=e});return this.Ra(i(t,r),i(n,o)),a},e.prototype.catch=function(t){return this.then(void 0,t)},e.prototype.Ra=function(t,e){function n(){switch(i.b){case 1:t(i.c);break;case 2:e(i.c);break;default:throw Error("Unexpected state: "+i.b)}}var i=this;null==this.a?s.b(n):this.a.push(n)},e.resolve=r,e.reject=function(t){return new e(function(e,n){n(t)})},e.race=function(t){return new e(function(e,n){for(var i=o(t),a=i.next();!a.done;a=i.next())r(a.value).Ra(e,n)})},e.all=function(t){var n=o(t),i=n.next();return i.done?r([]):new e(function(t,e){function o(e){return function(n){a[e]=n,0==--s&&t(a)}}var a=[],s=0;do{a.push(void 0),s++,r(i.value).Ra(o(a.length-1),e),i=n.next()}while(!i.done)})},e});var a=a||{},s=this||self,u=/^[\w+/_-]+[=]{0,2}$/,c=null;function h(t){return(t=t.querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&u.test(t)?t:""}function l(){}function f(t){var e=typeof t;return"object"!=e?e:t?Array.isArray(t)?"array":e:"null"}function d(t){var e=f(t);return"array"==e||"object"==e&&"number"==typeof t.length}function p(t){return"function"==f(t)}function v(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}function m(t){return Object.prototype.hasOwnProperty.call(t,g)&&t[g]||(t[g]=++b)}var g="closure_uid_"+(1e9*Math.random()>>>0),b=0;function y(t,e,n){return t.call.apply(t.bind,arguments)}function w(t,e,n){if(!t)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),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function I(t,e,n){return(I=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?y:w).apply(null,arguments)}function T(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}var E=Date.now;function A(t,e){function n(){}n.prototype=e.prototype,t.bb=e.prototype,t.prototype=new n,t.prototype.constructor=t}function k(t){return t}function S(t,e,n){this.code=O+t,this.message=e||C[t]||"",this.a=n||null}function N(t){var e=t&&t.code;return e?new S(e.substring(O.length),t.message,t.serverResponse):null}A(S,Error),S.prototype.w=function(){var t={code:this.code,message:this.message};return this.a&&(t.serverResponse=this.a),t},S.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 always 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.","invalid-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."},R={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 P(t){for(var e in R)if(R[e].id===t)return{firebaseEndpoint:(t=R[e]).Ua,secureTokenEndpoint:t.$a,identityPlatformEndpoint:t.Xa};return null}function D(t){if(!t)return!1;try{return!!t.$goog_Thenable}catch(e){return!1}}function L(t){if(Error.captureStackTrace)Error.captureStackTrace(this,L);else{var e=Error().stack;e&&(this.stack=e)}t&&(this.message=String(t))}function x(t,e){for(var n="",i=(t=t.split("%s")).length-1,r=0;r<i;r++)n+=t[r]+(r<e.length?e[r]:"%s");L.call(this,n+t[i])}function M(t,e){throw new x("Failure"+(t?": "+t:""),Array.prototype.slice.call(arguments,1))}function j(t,e){this.c=t,this.f=e,this.b=0,this.a=null}function U(t,e){t.f(e),100>t.b&&(t.b++,e.next=t.a,t.a=e)}function V(){this.b=this.a=null}_=P("__EID__")?"__EID__":void 0,A(L,Error),L.prototype.name="CustomError",A(x,L),x.prototype.name="AssertionError",j.prototype.get=function(){if(0<this.b){this.b--;var t=this.a;this.a=t.next,t.next=null}else t=this.c();return t};var F=new j(function(){return new q},function(t){t.reset()});function K(){var t=be,e=null;return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.b=null),e.next=null),e}function q(){this.next=this.b=this.a=null}V.prototype.add=function(t,e){var n=F.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},q.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},q.prototype.reset=function(){this.next=this.b=this.a=null};var H=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if("string"==typeof t)return"string"!=typeof e||1!=e.length?-1:t.indexOf(e,0);for(var n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return-1},G=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var i=t.length,r="string"==typeof t?t.split(""):t,o=0;o<i;o++)o in r&&e.call(n,r[o],o,t)},B=Array.prototype.filter?function(t,e){return Array.prototype.filter.call(t,e,void 0)}:function(t,e){for(var n=t.length,i=[],r=0,o="string"==typeof t?t.split(""):t,a=0;a<n;a++)if(a in o){var s=o[a];e.call(void 0,s,a,t)&&(i[r++]=s)}return i},W=Array.prototype.map?function(t,e){return Array.prototype.map.call(t,e,void 0)}:function(t,e){for(var n=t.length,i=Array(n),r="string"==typeof t?t.split(""):t,o=0;o<n;o++)o in r&&(i[o]=e.call(void 0,r[o],o,t));return i},X=Array.prototype.some?function(t,e){return Array.prototype.some.call(t,e,void 0)}:function(t,e){for(var n=t.length,i="string"==typeof t?t.split(""):t,r=0;r<n;r++)if(r in i&&e.call(void 0,i[r],r,t))return!0;return!1};function Z(t,e){return 0<=H(t,e)}function J(t,e){var n;return(n=0<=(e=H(t,e)))&&Array.prototype.splice.call(t,e,1),n}function Y(t,e){!function(t,e){for(var n="string"==typeof t?t.split(""):t,i=t.length-1;0<=i;--i)i in n&&e.call(void 0,n[i],i,t)}(t,function(n,i){e.call(void 0,n,i,t)&&Array.prototype.splice.call(t,i,1)})}function z(t){return Array.prototype.concat.apply([],arguments)}function $(t){var e=t.length;if(0<e){for(var n=Array(e),i=0;i<e;i++)n[i]=t[i];return n}return[]}var Q,tt=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]},et=/&/g,nt=/</g,it=/>/g,rt=/"/g,ot=/'/g,at=/\x00/g,st=/[\x00&<>"']/;function ut(t,e){return-1!=t.indexOf(e)}function ct(t,e){return t<e?-1:t>e?1:0}t:{var ht=s.navigator;if(ht){var lt=ht.userAgent;if(lt){Q=lt;break t}}Q=""}function ft(t){return ut(Q,t)}function dt(t,e){for(var n in t)e.call(void 0,t[n],n,t)}function pt(t){for(var e in t)return!1;return!0}function vt(t){var e,n={};for(e in t)n[e]=t[e];return n}var mt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function gt(t,e){for(var n,i,r=1;r<arguments.length;r++){for(n in i=arguments[r])t[n]=i[n];for(var o=0;o<mt.length;o++)n=mt[o],Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}}function bt(t,e){t:{try{var n=t&&t.ownerDocument,i=n&&(n.defaultView||n.parentWindow);if((i=i||s).Element&&i.Location){var r=i;break t}}catch(a){}r=null}if(r&&void 0!==r[e]&&(!t||!(t instanceof r[e])&&(t instanceof r.Location||t instanceof r.Element))){if(v(t))try{var o=t.constructor.displayName||t.constructor.name||Object.prototype.toString.call(t)}catch(a){o="<object could not be stringified>"}else o=void 0===t?"undefined":null===t?"null":typeof t;M("Argument is not a %s (or a non-Element, non-Location mock); got: %s",e,o)}}function yt(t,e){this.a=t===Et&&e||"",this.b=Tt}function wt(t){return t instanceof yt&&t.constructor===yt&&t.b===Tt?t.a:(M("expected object of type Const, got '"+t+"'"),"type_error:Const")}yt.prototype.ta=!0,yt.prototype.sa=function(){return this.a},yt.prototype.toString=function(){return"Const{"+this.a+"}"};var It,Tt={},Et={};function At(){if(void 0===It){var t=null,e=s.trustedTypes;if(e&&e.createPolicy){try{t=e.createPolicy("goog#html",{createHTML:k,createScript:k,createScriptURL:k})}catch(n){s.console&&s.console.error(n.message)}It=t}else It=t}return It}function kt(t,e){this.a=e===Ct?t:""}function St(t){return t instanceof kt&&t.constructor===kt?t.a:(M("expected object of type TrustedResourceUrl, got '"+t+"' of type "+f(t)),"type_error:TrustedResourceUrl")}function Nt(t,e){var n=wt(t);if(!Ot.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return function(t){var e=At();return new kt(t=e?e.createScriptURL(t):t,Ct)}(t=n.replace(_t,function(t,i){if(!Object.prototype.hasOwnProperty.call(e,i))throw Error('Found marker, "'+i+'", in format string, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(e));return(t=e[i])instanceof yt?wt(t):encodeURIComponent(String(t))}))}kt.prototype.ta=!0,kt.prototype.sa=function(){return this.a.toString()},kt.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var _t=/%{(\w+)}/g,Ot=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,Ct={};function Rt(t,e){this.a=e===Ut?t:""}function Pt(t){return t instanceof Rt&&t.constructor===Rt?t.a:(M("expected object of type SafeUrl, got '"+t+"' of type "+f(t)),"type_error:SafeUrl")}Rt.prototype.ta=!0,Rt.prototype.sa=function(){return this.a.toString()},Rt.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Dt=/^(?: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,Lt=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,xt=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Mt(t){if(t instanceof Rt)return t;if(t="object"==typeof t&&t.ta?t.sa():String(t),xt.test(t))t=new Rt(t,Ut);else{var e=(t=(t=String(t)).replace(/(%0A|%0D)/g,"")).match(Lt);t=e&&Dt.test(e[1])?new Rt(t,Ut):null}return t}function jt(t){return t instanceof Rt?t:(t="object"==typeof t&&t.ta?t.sa():String(t),xt.test(t)||(t="about:invalid#zClosurez"),new Rt(t,Ut))}var Ut={},Vt=new Rt("about:invalid#zClosurez",Ut);function Ft(t,e,n){this.a=n===Kt?t:""}Ft.prototype.ta=!0,Ft.prototype.sa=function(){return this.a.toString()},Ft.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Kt={};function qt(t,e,n,i){return t=t instanceof Rt?t:jt(t),e=e||s,n=n instanceof yt?wt(n):n||"",e.open(Pt(t),n,i,void 0)}function Ht(t,e){for(var n=t.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 Gt(t){return st.test(t)&&(-1!=t.indexOf("&")&&(t=t.replace(et,"&amp;")),-1!=t.indexOf("<")&&(t=t.replace(nt,"&lt;")),-1!=t.indexOf(">")&&(t=t.replace(it,"&gt;")),-1!=t.indexOf('"')&&(t=t.replace(rt,"&quot;")),-1!=t.indexOf("'")&&(t=t.replace(ot,"&#39;")),-1!=t.indexOf("\0")&&(t=t.replace(at,"&#0;"))),t}function Bt(t){return Bt[" "](t),t}Bt[" "]=l;var Wt,Xt,Zt=ft("Opera"),Jt=ft("Trident")||ft("MSIE"),Yt=ft("Edge"),zt=Yt||Jt,$t=ft("Gecko")&&!(ut(Q.toLowerCase(),"webkit")&&!ft("Edge"))&&!(ft("Trident")||ft("MSIE"))&&!ft("Edge"),Qt=ut(Q.toLowerCase(),"webkit")&&!ft("Edge");function te(){var t=s.document;return t?t.documentMode:void 0}t:{var ee="",ne=(Xt=Q,$t?/rv:([^\);]+)(\)|;)/.exec(Xt):Yt?/Edge\/([\d\.]+)/.exec(Xt):Jt?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Xt):Qt?/WebKit\/(\S+)/.exec(Xt):Zt?/(?:Version)[ \/]?(\S+)/.exec(Xt):void 0);if(ne&&(ee=ne?ne[1]:""),Jt){var ie=te();if(null!=ie&&ie>parseFloat(ee)){Wt=String(ie);break t}}Wt=ee}var re={};function oe(t){return function(t,e){var n=re;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e()}(t,function(){for(var e=0,n=tt(String(Wt)).split("."),i=tt(String(t)).split("."),r=Math.max(n.length,i.length),o=0;0==e&&o<r;o++){var a=n[o]||"",s=i[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;e=ct(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||ct(0==a[2].length,0==s[2].length)||ct(a[2],s[2]),a=a[3],s=s[3]}while(0==e)}return 0<=e})}var ae=s.document&&Jt&&(te()||parseInt(Wt,10))||void 0;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(Xt){}var se=!Jt||9<=Number(ae);function ue(t){var e=document;return"string"==typeof t?e.getElementById(t):t}function ce(t,e){dt(e,function(e,n){e&&"object"==typeof e&&e.ta&&(e=e.sa()),"style"==n?t.style.cssText=e:"class"==n?t.className=e:"for"==n?t.htmlFor=e:fe.hasOwnProperty(n)?t.setAttribute(fe[n],e):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?t.setAttribute(n,e):t[n]=e})}var he,le,fe={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function de(t,e,n){function i(n){n&&e.appendChild("string"==typeof n?t.createTextNode(n):n)}for(var r=2;r<n.length;r++){var o=n[r];if(!d(o)||v(o)&&0<o.nodeType)i(o);else{t:{if(o&&"number"==typeof o.length){if(v(o)){var a="function"==typeof o.item||"string"==typeof o.item;break t}if(p(o)){a="function"==typeof o.item;break t}}a=!1}G(a?$(o):o,i)}}}function pe(t,e){return e=String(e),"application/xhtml+xml"===t.contentType&&(e=e.toLowerCase()),t.createElement(e)}function ve(t){s.setTimeout(function(){throw t},0)}function me(t,e){le||function(){if(s.Promise&&s.Promise.resolve){var t=s.Promise.resolve(void 0);le=function(){t.then(ye)}}else le=function(){var t=ye;!p(s.setImmediate)||s.Window&&s.Window.prototype&&!ft("Edge")&&s.Window.prototype.setImmediate==s.setImmediate?(he||(he=function(){var t=s.MessageChannel;if(void 0===t&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!ft("Presto")&&(t=function(){var t=pe(document,"IFRAME");t.style.display="none",document.documentElement.appendChild(t);var e=t.contentWindow;(t=e.document).open(),t.close();var n="callImmediate"+Math.random(),i="file:"==e.location.protocol?"*":e.location.protocol+"//"+e.location.host;t=I(function(t){("*"==i||t.origin==i)&&t.data==n&&this.port1.onmessage()},this),e.addEventListener("message",t,!1),this.port1={},this.port2={postMessage:function(){e.postMessage(n,i)}}}),void 0!==t&&!ft("Trident")&&!ft("MSIE")){var e=new t,n={},i=n;return e.port1.onmessage=function(){if(void 0!==n.next){var t=(n=n.next).Hb;n.Hb=null,t()}},function(t){i.next={Hb:t},i=i.next,e.port2.postMessage(0)}}return function(t){s.setTimeout(t,0)}}()),he(t)):s.setImmediate(t)}}(),ge||(le(),ge=!0),be.add(t,e)}var ge=!1,be=new V;function ye(){for(var t;t=K();){try{t.a.call(t.b)}catch(e){ve(e)}U(F,t)}ge=!1}function we(t,e){if(this.a=Ie,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,t!=l)try{var n=this;t.call(e,function(t){Le(n,Te,t)},function(t){if(!(t instanceof Ke))try{throw t instanceof Error?t:Error("Promise rejected.")}catch(e){}Le(n,Ee,t)})}catch(i){Le(this,Ee,i)}}var Ie=0,Te=2,Ee=3;function Ae(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}Ae.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var ke=new j(function(){return new Ae},function(t){t.reset()});function Se(t,e,n){var i=ke.get();return i.g=t,i.b=e,i.f=n,i}function Ne(t){if(t instanceof we)return t;var e=new we(l);return Le(e,Te,t),e}function _e(t){return new we(function(e,n){n(t)})}function Oe(t,e,n){xe(t,e,n,null)||me(T(e,t))}function Ce(t){return new we(function(e){var n=t.length,i=[];if(n)for(var r=function(t,r,o){n--,i[t]=r?{Qb:!0,value:o}:{Qb:!1,reason:o},0==n&&e(i)},o=0;o<t.length;o++)Oe(t[o],T(r,o,!0),T(r,o,!1));else e(i)})}function Re(t,e){if(t.a==Ie)if(t.c){var n=t.c;if(n.b){for(var i=0,r=null,o=null,a=n.b;a&&(a.c||(i++,a.a==t&&(r=a),!(r&&1<i)));a=a.next)r||(o=a);r&&(n.a==Ie&&1==i?Re(n,e):(o?((i=o).next==n.f&&(n.f=i),i.next=i.next.next):je(n),Ue(n,r,Ee,e)))}t.c=null}else Le(t,Ee,e)}function Pe(t,e){t.b||t.a!=Te&&t.a!=Ee||Me(t),t.f?t.f.next=e:t.b=e,t.f=e}function De(t,e,n,i){var r=Se(null,null,null);return r.a=new we(function(t,o){r.g=e?function(n){try{var r=e.call(i,n);t(r)}catch(a){o(a)}}:t,r.b=n?function(e){try{var r=n.call(i,e);void 0===r&&e instanceof Ke?o(e):t(r)}catch(a){o(a)}}:o}),r.a.c=t,Pe(t,r),r.a}function Le(t,e,n){t.a==Ie&&(t===n&&(e=Ee,n=new TypeError("Promise cannot resolve to itself")),t.a=1,xe(n,t.$c,t.ad,t)||(t.i=n,t.a=e,t.c=null,Me(t),e!=Ee||n instanceof Ke||function(t,e){t.g=!0,me(function(){t.g&&Fe.call(null,e)})}(t,n)))}function xe(t,e,n,i){if(t instanceof we)return Pe(t,Se(e||l,n||null,i)),!0;if(D(t))return t.then(e,n,i),!0;if(v(t))try{var r=t.then;if(p(r))return function(t,e,n,i,r){function o(t){a||(a=!0,i.call(r,t))}var a=!1;try{e.call(t,function(t){a||(a=!0,n.call(r,t))},o)}catch(s){o(s)}}(t,r,e,n,i),!0}catch(o){return n.call(i,o),!0}return!1}function Me(t){t.h||(t.h=!0,me(t.gc,t))}function je(t){var e=null;return t.b&&(t.b=(e=t.b).next,e.next=null),t.b||(t.f=null),e}function Ue(t,e,n,i){if(n==Ee&&e.b&&!e.c)for(;t&&t.g;t=t.c)t.g=!1;if(e.a)e.a.c=null,Ve(e,n,i);else try{e.c?e.g.call(e.f):Ve(e,n,i)}catch(r){Fe.call(null,r)}U(ke,e)}function Ve(t,e,n){e==Te?t.g.call(t.f,n):t.b&&t.b.call(t.f,n)}we.prototype.then=function(t,e,n){return De(this,p(t)?t:null,p(e)?e:null,n)},we.prototype.$goog_Thenable=!0,(t=we.prototype).oa=function(t,e){return(t=Se(t,t,e)).c=!0,Pe(this,t),this},t.o=function(t,e){return De(this,null,t,e)},t.cancel=function(t){if(this.a==Ie){var e=new Ke(t);me(function(){Re(this,e)},this)}},t.$c=function(t){this.a=Ie,Le(this,Te,t)},t.ad=function(t){this.a=Ie,Le(this,Ee,t)},t.gc=function(){for(var t;t=je(this);)Ue(this,t,this.a,this.i);this.h=!1};var Fe=ve;function Ke(t){L.call(this,t)}function qe(){0!=He&&(Ge[m(this)]=this),this.ya=this.ya,this.pa=this.pa}A(Ke,L),Ke.prototype.name="cancel";var He=0,Ge={};function Be(t){if(!t.ya&&(t.ya=!0,t.Da(),0!=He)){var e=m(t);if(0!=He&&t.pa&&0<t.pa.length)throw Error(t+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete Ge[e]}}qe.prototype.ya=!1,qe.prototype.Da=function(){if(this.pa)for(;this.pa.length;)this.pa.shift()()};var We=Object.freeze||function(t){return t},Xe=!Jt||9<=Number(ae),Ze=Jt&&!oe("9"),Je=function(){if(!s.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{s.addEventListener("test",l,e),s.removeEventListener("test",l,e)}catch(n){}return t}();function Ye(t,e){this.type=t,this.b=this.target=e,this.defaultPrevented=!1}function ze(t,e){if(Ye.call(this,t?t.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,t){var n=this.type=t.type,i=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.b=e,e=t.relatedTarget){if($t){t:{try{Bt(e.nodeName);var r=!0;break t}catch(o){}r=!1}r||(e=null)}}else"mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement);this.relatedTarget=e,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!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType="string"==typeof t.pointerType?t.pointerType:$e[t.pointerType]||"",this.a=t,t.defaultPrevented&&this.preventDefault()}}Ye.prototype.preventDefault=function(){this.defaultPrevented=!0},A(ze,Ye);var $e=We({2:"touch",3:"pen",4:"mouse"});ze.prototype.preventDefault=function(){ze.bb.preventDefault.call(this);var t=this.a;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,Ze)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(e){}},ze.prototype.g=function(){return this.a};var Qe="closure_listenable_"+(1e6*Math.random()|0),tn=0;function en(t,e,n,i,r){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!i,this.Wa=r,this.key=++tn,this.wa=this.Qa=!1}function nn(t){t.wa=!0,t.listener=null,t.proxy=null,t.src=null,t.Wa=null}function rn(t){this.src=t,this.a={},this.b=0}function on(t,e){var n=e.type;n in t.a&&J(t.a[n],e)&&(nn(e),0==t.a[n].length&&(delete t.a[n],t.b--))}function an(t,e,n,i){for(var r=0;r<t.length;++r){var o=t[r];if(!o.wa&&o.listener==e&&o.capture==!!n&&o.Wa==i)return r}return-1}rn.prototype.add=function(t,e,n,i,r){var o=t.toString();(t=this.a[o])||(t=this.a[o]=[],this.b++);var a=an(t,e,i,r);return-1<a?(e=t[a],n||(e.Qa=!1)):((e=new en(e,this.src,o,!!i,r)).Qa=n,t.push(e)),e};var sn="closure_lm_"+(1e6*Math.random()|0),un={};function cn(t,e,n,i,r){if(i&&i.once)ln(t,e,n,i,r);else if(Array.isArray(e))for(var o=0;o<e.length;o++)cn(t,e[o],n,i,r);else n=wn(n),t&&t[Qe]?Tn(t,e,n,v(i)?!!i.capture:!!i,r):hn(t,e,n,!1,i,r)}function hn(t,e,n,i,r,o){if(!e)throw Error("Invalid event type");var a=v(r)?!!r.capture:!!r,s=bn(t);if(s||(t[sn]=s=new rn(t)),!(n=s.add(e,n,i,a,o)).proxy)if(i=function(){var t=gn,e=Xe?function(n){return t.call(e.src,e.listener,n)}:function(n){if(!(n=t.call(e.src,e.listener,n)))return n};return e}(),n.proxy=i,i.src=t,i.listener=n,t.addEventListener)Je||(r=a),void 0===r&&(r=!1),t.addEventListener(e.toString(),i,r);else if(t.attachEvent)t.attachEvent(pn(e.toString()),i);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(i)}}function ln(t,e,n,i,r){if(Array.isArray(e))for(var o=0;o<e.length;o++)ln(t,e[o],n,i,r);else n=wn(n),t&&t[Qe]?En(t,e,n,v(i)?!!i.capture:!!i,r):hn(t,e,n,!0,i,r)}function fn(t,e,n,i,r){if(Array.isArray(e))for(var o=0;o<e.length;o++)fn(t,e[o],n,i,r);else i=v(i)?!!i.capture:!!i,n=wn(n),t&&t[Qe]?(t=t.v,(e=String(e).toString())in t.a&&-1<(n=an(o=t.a[e],n,i,r))&&(nn(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete t.a[e],t.b--))):t&&(t=bn(t))&&(e=t.a[e.toString()],t=-1,e&&(t=an(e,n,i,r)),(n=-1<t?e[t]:null)&&dn(n))}function dn(t){if("number"!=typeof t&&t&&!t.wa){var e=t.src;if(e&&e[Qe])on(e.v,t);else{var n=t.type,i=t.proxy;e.removeEventListener?e.removeEventListener(n,i,t.capture):e.detachEvent?e.detachEvent(pn(n),i):e.addListener&&e.removeListener&&e.removeListener(i),(n=bn(e))?(on(n,t),0==n.b&&(n.src=null,e[sn]=null)):nn(t)}}}function pn(t){return t in un?un[t]:un[t]="on"+t}function vn(t,e,n,i){var r=!0;if((t=bn(t))&&(e=t.a[e.toString()]))for(e=e.concat(),t=0;t<e.length;t++){var o=e[t];o&&o.capture==n&&!o.wa&&(o=mn(o,i),r=r&&!1!==o)}return r}function mn(t,e){var n=t.listener,i=t.Wa||t.src;return t.Qa&&dn(t),n.call(i,e)}function gn(t,e){if(t.wa)return!0;if(!Xe){if(!e)t:{e=["window","event"];for(var n=s,i=0;i<e.length;i++)if(null==(n=n[e[i]])){e=null;break t}e=n}if(e=new ze(i=e,this),n=!0,!(0>i.keyCode||null!=i.returnValue)){t:{var r=!1;if(0==i.keyCode)try{i.keyCode=-1;break t}catch(a){r=!0}(r||null==i.returnValue)&&(i.returnValue=!0)}for(i=[],r=e.b;r;r=r.parentNode)i.push(r);for(t=t.type,r=i.length-1;0<=r;r--){e.b=i[r];var o=vn(i[r],t,!0,e);n=n&&o}for(r=0;r<i.length;r++)e.b=i[r],o=vn(i[r],t,!1,e),n=n&&o}return n}return mn(t,new ze(e,this))}function bn(t){return(t=t[sn])instanceof rn?t:null}var yn="__closure_events_fn_"+(1e9*Math.random()>>>0);function wn(t){return p(t)?t:(t[yn]||(t[yn]=function(e){return t.handleEvent(e)}),t[yn])}function In(){qe.call(this),this.v=new rn(this),this.bc=this,this.hb=null}function Tn(t,e,n,i,r){t.v.add(String(e),n,!1,i,r)}function En(t,e,n,i,r){t.v.add(String(e),n,!0,i,r)}function An(t,e,n,i){if(!(e=t.v.a[String(e)]))return!0;e=e.concat();for(var r=!0,o=0;o<e.length;++o){var a=e[o];if(a&&!a.wa&&a.capture==n){var s=a.listener,u=a.Wa||a.src;a.Qa&&on(t.v,a),r=!1!==s.call(u,i)&&r}}return r&&!i.defaultPrevented}function kn(t,e,n){if(p(t))n&&(t=I(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=I(t.handleEvent,t)}return 2147483647<Number(e)?-1:s.setTimeout(t,e||0)}function Sn(t){var e=null;return new we(function(n,i){-1==(e=kn(function(){n(void 0)},t))&&i(Error("Failed to schedule timer."))}).o(function(t){throw s.clearTimeout(e),t})}function Nn(t){if(t.X&&"function"==typeof t.X)return t.X();if("string"==typeof t)return t.split("");if(d(t)){for(var e=[],n=t.length,i=0;i<n;i++)e.push(t[i]);return e}for(i in e=[],n=0,t)e[n++]=t[i];return e}function _n(t){if(t.Y&&"function"==typeof t.Y)return t.Y();if(!t.X||"function"!=typeof t.X){if(d(t)||"string"==typeof t){var e=[];t=t.length;for(var n=0;n<t;n++)e.push(n);return e}for(var i in e=[],n=0,t)e[n++]=i;return e}}function On(t,e){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(t)if(t instanceof On)for(n=t.Y(),i=0;i<n.length;i++)this.set(n[i],t.get(n[i]));else for(i in t)this.set(i,t[i])}function Cn(t){if(t.c!=t.a.length){for(var e=0,n=0;e<t.a.length;){var i=t.a[e];Rn(t.b,i)&&(t.a[n++]=i),e++}t.a.length=n}if(t.c!=t.a.length){var r={};for(n=e=0;e<t.a.length;)Rn(r,i=t.a[e])||(t.a[n++]=i,r[i]=1),e++;t.a.length=n}}function Rn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}A(In,qe),In.prototype[Qe]=!0,In.prototype.addEventListener=function(t,e,n,i){cn(this,t,e,n,i)},In.prototype.removeEventListener=function(t,e,n,i){fn(this,t,e,n,i)},In.prototype.dispatchEvent=function(t){var e,n=this.hb;if(n)for(e=[];n;n=n.hb)e.push(n);n=this.bc;var i=t.type||t;if("string"==typeof t)t=new Ye(t,n);else if(t instanceof Ye)t.target=t.target||n;else{var r=t;gt(t=new Ye(i,n),r)}if(r=!0,e)for(var o=e.length-1;0<=o;o--){var a=t.b=e[o];r=An(a,i,!0,t)&&r}if(r=An(a=t.b=n,i,!0,t)&&r,r=An(a,i,!1,t)&&r,e)for(o=0;o<e.length;o++)r=An(a=t.b=e[o],i,!1,t)&&r;return r},In.prototype.Da=function(){if(In.bb.Da.call(this),this.v){var t,e=this.v;for(t in e.a){for(var n=e.a[t],i=0;i<n.length;i++)nn(n[i]);delete e.a[t],e.b--}}this.hb=null},(t=On.prototype).X=function(){Cn(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},t.Y=function(){return Cn(this),this.a.concat()},t.clear=function(){this.b={},this.c=this.a.length=0},t.get=function(t,e){return Rn(this.b,t)?this.b[t]:e},t.set=function(t,e){Rn(this.b,t)||(this.c++,this.a.push(t)),this.b[t]=e},t.forEach=function(t,e){for(var n=this.Y(),i=0;i<n.length;i++){var r=n[i],o=this.get(r);t.call(e,o,r,this)}};var Pn=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Dn(t,e){var n;this.a=this.l=this.c="",this.g=null,this.h=this.f="",this.i=!1,t instanceof Dn?(this.i=void 0!==e?e:t.i,Ln(this,t.c),this.l=t.l,this.a=t.a,xn(this,t.g),this.f=t.f,Mn(this,ei(t.b)),this.h=t.h):t&&(n=String(t).match(Pn))?(this.i=!!e,Ln(this,n[1]||"",!0),this.l=Kn(n[2]||""),this.a=Kn(n[3]||"",!0),xn(this,n[4]),this.f=Kn(n[5]||"",!0),Mn(this,n[6]||"",!0),this.h=Kn(n[7]||"")):(this.i=!!e,this.b=new Jn(null,this.i))}function Ln(t,e,n){t.c=n?Kn(e,!0):e,t.c&&(t.c=t.c.replace(/:$/,""))}function xn(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.g=e}else t.g=null}function Mn(t,e,n){e instanceof Jn?(t.b=e,function(t,e){e&&!t.f&&(Yn(t),t.c=null,t.a.forEach(function(t,e){var n=e.toLowerCase();e!=n&&($n(this,e),ti(this,n,t))},t)),t.f=e}(t.b,t.i)):(n||(e=qn(e,Xn)),t.b=new Jn(e,t.i))}function jn(t,e,n){t.b.set(e,n)}function Un(t,e){return t.b.get(e)}function Vn(t){return t instanceof Dn?new Dn(t):new Dn(t,void 0)}function Fn(t,e,n,i){var r=new Dn(null,void 0);return t&&Ln(r,t),e&&(r.a=e),n&&xn(r,n),i&&(r.f=i),r}function Kn(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function qn(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,Hn),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Hn(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}Dn.prototype.toString=function(){var t=[],e=this.c;e&&t.push(qn(e,Gn,!0),":");var n=this.a;return(n||"file"==e)&&(t.push("//"),(e=this.l)&&t.push(qn(e,Gn,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.g)&&t.push(":",String(n))),(n=this.f)&&(this.a&&"/"!=n.charAt(0)&&t.push("/"),t.push(qn(n,"/"==n.charAt(0)?Wn:Bn,!0))),(n=this.b.toString())&&t.push("?",n),(n=this.h)&&t.push("#",qn(n,Zn)),t.join("")},Dn.prototype.resolve=function(t){var e=new Dn(this),n=!!t.c;n?Ln(e,t.c):n=!!t.l,n?e.l=t.l:n=!!t.a,n?e.a=t.a:n=null!=t.g;var i=t.f;if(n)xn(e,t.g);else if(n=!!t.f){if("/"!=i.charAt(0))if(this.a&&!this.f)i="/"+i;else{var r=e.f.lastIndexOf("/");-1!=r&&(i=e.f.substr(0,r+1)+i)}if(".."==(r=i)||"."==r)i="";else if(ut(r,"./")||ut(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?e.f=i:n=""!==t.b.toString(),n?Mn(e,ei(t.b)):n=!!t.h,n&&(e.h=t.h),e};var Gn=/[#\/\?@]/g,Bn=/[#\?:]/g,Wn=/[#\?]/g,Xn=/[#\?@]/g,Zn=/#/g;function Jn(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function Yn(t){t.a||(t.a=new On,t.b=0,t.c&&function(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var i=t[n].indexOf("="),r=null;if(0<=i){var o=t[n].substring(0,i);r=t[n].substring(i+1)}else o=t[n];e(o,r?decodeURIComponent(r.replace(/\+/g," ")):"")}}}(t.c,function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)}))}function zn(t){var e=_n(t);if(void 0===e)throw Error("Keys are undefined");var n=new Jn(null,void 0);t=Nn(t);for(var i=0;i<e.length;i++){var r=e[i],o=t[i];Array.isArray(o)?ti(n,r,o):n.add(r,o)}return n}function $n(t,e){Yn(t),e=ni(t,e),Rn(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,Rn((t=t.a).b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&Cn(t)))}function Qn(t,e){return Yn(t),e=ni(t,e),Rn(t.a.b,e)}function ti(t,e,n){$n(t,e),0<n.length&&(t.c=null,t.a.set(ni(t,e),$(n)),t.b+=n.length)}function ei(t){var e=new Jn;return e.c=t.c,t.a&&(e.a=new On(t.a),e.b=t.b),e}function ni(t,e){return e=String(e),t.f&&(e=e.toLowerCase()),e}function ii(t){var e=[];return oi(new ri,t,e),e.join("")}function ri(){}function oi(t,e,n){if(null==e)n.push("null");else{if("object"==typeof e){if(Array.isArray(e)){var i=e;e=i.length,n.push("[");for(var r="",o=0;o<e;o++)n.push(r),oi(t,i[o],n),r=",";return void n.push("]")}if(!(e instanceof String||e instanceof Number||e instanceof Boolean)){for(i in n.push("{"),r="",e)Object.prototype.hasOwnProperty.call(e,i)&&"function"!=typeof(o=e[i])&&(n.push(r),ui(i,n),n.push(":"),oi(t,o,n),r=",");return void n.push("}")}e=e.valueOf()}switch(typeof e){case"string":ui(e,n);break;case"number":n.push(isFinite(e)&&!isNaN(e)?String(e):"null");break;case"boolean":n.push(String(e));break;case"function":n.push("null");break;default:throw Error("Unknown type: "+typeof e)}}}(t=Jn.prototype).add=function(t,e){Yn(this),this.c=null,t=ni(this,t);var n=this.a.get(t);return n||this.a.set(t,n=[]),n.push(e),this.b+=1,this},t.clear=function(){this.a=this.c=null,this.b=0},t.forEach=function(t,e){Yn(this),this.a.forEach(function(n,i){G(n,function(n){t.call(e,n,i,this)},this)},this)},t.Y=function(){Yn(this);for(var t=this.a.X(),e=this.a.Y(),n=[],i=0;i<e.length;i++)for(var r=t[i],o=0;o<r.length;o++)n.push(e[i]);return n},t.X=function(t){Yn(this);var e=[];if("string"==typeof t)Qn(this,t)&&(e=z(e,this.a.get(ni(this,t))));else{t=this.a.X();for(var n=0;n<t.length;n++)e=z(e,t[n])}return e},t.set=function(t,e){return Yn(this),this.c=null,Qn(this,t=ni(this,t))&&(this.b-=this.a.get(t).length),this.a.set(t,[e]),this.b+=1,this},t.get=function(t,e){return t&&0<(t=this.X(t)).length?String(t[0]):e},t.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var t=[],e=this.a.Y(),n=0;n<e.length;n++){var i=e[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]))),t.push(a)}}return this.c=t.join("&")};var ai={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},si=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function ui(t,e){e.push('"',t.replace(si,function(t){var e=ai[t];return e||(e="\\u"+(65536|t.charCodeAt(0)).toString(16).substr(1),ai[t]=e),e}),'"')}function ci(){var t=_i();return Jt&&!!ae&&11==ae||/Edge\/\d+/.test(t)}function hi(){return s.window&&s.window.location.href||self&&self.location&&self.location.href||""}function li(t,e){e=e||s.window;var n="about:blank";t&&(n=Pt(Mt(t)||Vt)),e.location.href=n}function fi(t,e){var n,i=[];for(n in t)n in e?typeof t[n]!=typeof e[n]?i.push(n):"object"==typeof t[n]&&null!=t[n]&&null!=e[n]?0<fi(t[n],e[n]).length&&i.push(n):t[n]!==e[n]&&i.push(n):i.push(n);for(n in e)n in t||i.push(n);return i}function di(t){return!!((t=(t||_i()).toLowerCase()).match(/android/)||t.match(/webos/)||t.match(/iphone|ipad|ipod/)||t.match(/blackberry/)||t.match(/windows phone/)||t.match(/iemobile/))}function pi(t){t=t||s.window;try{t.close()}catch(e){}}function vi(t,e,n){var i=Math.floor(1e9*Math.random()).toString();e=e||500,n=n||600;var r=(window.screen.availHeight-n)/2,o=(window.screen.availWidth-e)/2;for(a in e={width:e,height:n,top:0<r?r:0,left:0<o?o:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},n=_i().toLowerCase(),i&&(e.target=i,ut(n,"crios/")&&(e.target="_blank")),ki(_i())==Ai&&(t=t||"http://localhost",e.scrollbars=!0),n=t||"",(t=e)||(t={}),i=window,e=n instanceof Rt?n:Mt(void 0!==n.href?n.href:String(n))||Vt,n=t.target||n.target,r=[],t)switch(a){case"width":case"height":case"top":case"left":r.push(a+"="+t[a]);break;case"target":case"noopener":case"noreferrer":break;default:r.push(a+"="+(t[a]?1:0))}var a=r.join(",");if((ft("iPhone")&&!ft("iPod")&&!ft("iPad")||ft("iPad")||ft("iPod"))&&i.navigator&&i.navigator.standalone&&n&&"_self"!=n?(bt(a=pe(document,"A"),"HTMLAnchorElement"),e=e instanceof Rt?e:jt(e),a.href=Pt(e),a.setAttribute("target",n),t.noreferrer&&a.setAttribute("rel","noreferrer"),(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,i,1),a.dispatchEvent(t),a={}):t.noreferrer?(a=qt("",i,n,a),t=Pt(e),a&&(zt&&ut(t,";")&&(t="'"+t.replace(/'/g,"%27")+"'"),a.opener=null,t='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Gt(t)+'">',t=new Ft(t=(i=At())?i.createHTML(t):t,null,Kt),i=a.document)&&(i.write(function(t){return t instanceof Ft&&t.constructor===Ft?t.a:(M("expected object of type SafeHtml, got '"+t+"' of type "+f(t)),"type_error:SafeHtml")}(t)),i.close())):(a=qt(e,i,n,a))&&t.noopener&&(a.opener=null),a)try{a.focus()}catch(s){}return a}var mi=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,gi=/^[^@]+@[^@]+$/;function bi(){var t=null;return new we(function(e){"complete"==s.document.readyState?e():(t=function(){e()},ln(window,"load",t))}).o(function(e){throw fn(window,"load",t),e})}function yi(t){return t=t||_i(),!("file:"!==Di()&&"ionic:"!==Di()||!t.toLowerCase().match(/iphone|ipad|ipod|android/))}function wi(){var t=s.window;try{return!(!t||t==t.top)}catch(e){return!1}}function Ii(){return void 0!==s.WorkerGlobalScope&&"function"==typeof s.importScripts}function Ti(){return i.Z.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":i.Z.INTERNAL.hasOwnProperty("node")?"Node":Ii()?"Worker":"Browser"}function Ei(){var t=Ti();return"ReactNative"===t||"Node"===t}var Ai="Firefox";function ki(t){var e=t.toLowerCase();return ut(e,"opera/")||ut(e,"opr/")||ut(e,"opios/")?"Opera":ut(e,"iemobile")?"IEMobile":ut(e,"msie")||ut(e,"trident/")?"IE":ut(e,"edge/")?"Edge":ut(e,"firefox/")?Ai:ut(e,"silk/")?"Silk":ut(e,"blackberry")?"Blackberry":ut(e,"webos")?"Webos":!ut(e,"safari/")||ut(e,"chrome/")||ut(e,"crios/")||ut(e,"android")?!ut(e,"chrome/")&&!ut(e,"crios/")||ut(e,"edge/")?ut(e,"android")?"Android":(t=t.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==t.length?t[1]:"Other":"Chrome":"Safari"}var Si={md:"FirebaseCore-web",od:"FirebaseUI-web"};function Ni(t,e){e=e||[];var n,i=[],r={};for(n in Si)r[Si[n]]=!0;for(n=0;n<e.length;n++)void 0!==r[e[n]]&&(delete r[e[n]],i.push(e[n]));return i.sort(),(e=i).length||(e=["FirebaseCore-web"]),"Browser"===(i=Ti())?i=ki(r=_i()):"Worker"===i&&(i=ki(r=_i())+"-"+i),i+"/JsCore/"+t+"/"+e.join(",")}function _i(){return s.navigator&&s.navigator.userAgent||""}function Oi(t,e){t=t.split("."),e=e||s;for(var n=0;n<t.length&&"object"==typeof e&&null!=e;n++)e=e[t[n]];return n!=t.length&&(e=void 0),e}function Ci(){try{var t=s.localStorage,e=Ui();if(t)return t.setItem(e,"1"),t.removeItem(e),!ci()||!!s.indexedDB}catch(n){return Ii()&&!!s.indexedDB}return!1}function Ri(){return(Pi()||"chrome-extension:"===Di()||yi())&&!Ei()&&Ci()&&!Ii()}function Pi(){return"http:"===Di()||"https:"===Di()}function Di(){return s.location&&s.location.protocol||null}function Li(t){return!(di(t=t||_i())||ki(t)==Ai)}function xi(t){return void 0===t?null:ii(t)}function Mi(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&null!=t[e]&&(n[e]=t[e]);return n}function ji(t){if(null!==t)return JSON.parse(t)}function Ui(t){return t||Math.floor(1e9*Math.random()).toString()}function Vi(t){return!("Safari"==ki(t=t||_i())||t.toLowerCase().match(/iphone|ipad|ipod/))}function Fi(){var t=s.___jsl;if(t&&t.H)for(var e in t.H)if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=t.H[e].L.concat(),t.CP)for(var n=0;n<t.CP.length;n++)t.CP[n]=null}function Ki(t,e){if(t>e)throw Error("Short delay should be less than long delay!");this.a=t,this.c=e,t=_i(),e=Ti(),this.b=di(t)||"ReactNative"===e}function qi(){var t=s.document;return!t||void 0===t.visibilityState||"visible"==t.visibilityState}function Hi(t){try{var e=new Date(parseInt(t,10));if(!isNaN(e.getTime())&&!/[^0-9]/.test(t))return e.toUTCString()}catch(n){}return null}function Gi(){return!(!Oi("fireauth.oauthhelper",s)&&!Oi("fireauth.iframe",s))}Ki.prototype.get=function(){var t=s.navigator;return!t||"boolean"!=typeof t.onLine||!Pi()&&"chrome-extension:"!==Di()&&void 0===t.connection||t.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var Bi,Wi={};function Xi(t){Wi[t]||(Wi[t]=!0,"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(t))}try{var Zi={};Object.defineProperty(Zi,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(Zi,"abcd",{configurable:!0,enumerable:!0,value:2}),Bi=2==Zi.abcd}catch(Xt){Bi=!1}function Ji(t,e,n){Bi?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}):t[e]=n}function Yi(t,e){if(e)for(var n in e)e.hasOwnProperty(n)&&Ji(t,n,e[n])}function zi(t){var e={};return Yi(e,t),e}function $i(t){var e=t;if("object"==typeof t&&null!=t)for(var n in e="length"in t?[]:{},t)Ji(e,n,$i(t[n]));return e}function Qi(t){var e=t&&(t[rr]?"phone":null);if(!(e&&t&&t[ir]))throw new S("internal-error","Internal assert: invalid MultiFactorInfo object");Ji(this,"uid",t[ir]),Ji(this,"displayName",t[er]||null);var n=null;t[nr]&&(n=new Date(t[nr]).toUTCString()),Ji(this,"enrollmentTime",n),Ji(this,"factorId",e)}function tr(t){try{var e=new or(t)}catch(n){e=null}return e}Qi.prototype.w=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var er="displayName",nr="enrolledAt",ir="mfaEnrollmentId",rr="phoneInfo";function or(t){Qi.call(this,t),Ji(this,"phoneNumber",t[rr])}function ar(t){var e={},n=t[hr],i=t[fr],r=t[dr];if(t=tr(t[lr]),!r||r!=ur&&r!=cr&&!n||r==cr&&!i||r==sr&&!t)throw Error("Invalid checkActionCode response!");r==cr?(e[vr]=n||null,e[gr]=n||null,e[pr]=i):(e[vr]=i||null,e[gr]=i||null,e[pr]=n||null),e[mr]=t||null,Ji(this,yr,r),Ji(this,br,$i(e))}A(or,Qi),or.prototype.w=function(){var t=or.bb.w.call(this);return t.phoneNumber=this.phoneNumber,t};var sr="REVERT_SECOND_FACTOR_ADDITION",ur="EMAIL_SIGNIN",cr="VERIFY_AND_CHANGE_EMAIL",hr="email",lr="mfaInfo",fr="newEmail",dr="requestType",pr="email",vr="fromEmail",mr="multiFactorInfo",gr="previousEmail",br="data",yr="operation";function wr(t){var e=Un(t=Vn(t),Ir)||null,n=Un(t,Tr)||null,i=Un(t,kr)||null;if(i=i&&Nr[i]||null,!e||!n||!i)throw new S("argument-error",Ir+", "+Tr+"and "+kr+" are required in a valid action code URL.");Yi(this,{apiKey:e,operation:i,code:n,continueUrl:Un(t,Er)||null,languageCode:Un(t,Ar)||null,tenantId:Un(t,Sr)||null})}var Ir="apiKey",Tr="oobCode",Er="continueUrl",Ar="languageCode",kr="mode",Sr="tenantId",Nr={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:sr,signIn:ur,verifyAndChangeEmail:cr,verifyEmail:"VERIFY_EMAIL"};function _r(t){try{return new wr(t)}catch(e){return null}}function Or(t){var e=t[Lr];if(void 0===e)throw new S("missing-continue-uri");if("string"!=typeof e||"string"==typeof e&&!e.length)throw new S("invalid-continue-uri");this.h=e,this.b=this.a=null,this.g=!1;var n=t[Cr];if(n&&"object"==typeof n){e=n[jr];var i=n[xr];if(n=n[Mr],"string"==typeof e&&e.length){if(this.a=e,void 0!==i&&"boolean"!=typeof i)throw new S("argument-error",xr+" property must be a boolean when specified.");if(this.g=!!i,void 0!==n&&("string"!=typeof n||"string"==typeof n&&!n.length))throw new S("argument-error",Mr+" property must be a non empty string when specified.");this.b=n||null}else{if(void 0!==e)throw new S("argument-error",jr+" property must be a non empty string when specified.");if(void 0!==i||void 0!==n)throw new S("missing-android-pkg-name")}}else if(void 0!==n)throw new S("argument-error",Cr+" property must be a non null object when specified.");if(this.f=null,(e=t[Dr])&&"object"==typeof e){if("string"==typeof(e=e[Ur])&&e.length)this.f=e;else if(void 0!==e)throw new S("argument-error",Ur+" property must be a non empty string when specified.")}else if(void 0!==e)throw new S("argument-error",Dr+" property must be a non null object when specified.");if(void 0!==(e=t[Pr])&&"boolean"!=typeof e)throw new S("argument-error",Pr+" property must be a boolean when specified.");if(this.c=!!e,void 0!==(t=t[Rr])&&("string"!=typeof t||"string"==typeof t&&!t.length))throw new S("argument-error",Rr+" property must be a non empty string when specified.");this.i=t||null}var Cr="android",Rr="dynamicLinkDomain",Pr="handleCodeInApp",Dr="iOS",Lr="url",xr="installApp",Mr="minimumVersion",jr="packageName",Ur="bundleId";function Vr(t){var e={};for(var n in e.continueUrl=t.h,e.canHandleCodeInApp=t.c,(e.androidPackageName=t.a)&&(e.androidMinimumVersion=t.b,e.androidInstallApp=t.g),e.iOSBundleId=t.f,e.dynamicLinkDomain=t.i,e)null===e[n]&&delete e[n];return e}var Fr=null;function Kr(t){var e=Hr(t);if(!(e&&e.sub&&e.iss&&e.aud&&e.exp))throw Error("Invalid JWT");this.h=t,this.a=e.exp,this.i=e.sub,t=Date.now()/1e3,this.g=e.iat||(t>this.a?this.a:t),this.b=e.provider_id||e.firebase&&e.firebase.sign_in_provider||null,this.f=e.firebase&&e.firebase.tenant||null,this.c=!!e.is_anonymous||"anonymous"==this.b}function qr(t){try{return new Kr(t)}catch(e){return null}}function Hr(t){if(!t||3!=(t=t.split(".")).length)return null;for(var e=(4-(t=t[1]).length%4)%4,n=0;n<e;n++)t+=".";try{var i=function(t){var e=[];return function(t,e){function n(e){for(;i<t.length;){var n=t.charAt(i++),r=Fr[n];if(null!=r)return r;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return e}!function(){if(!Fr){Fr={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++)for(var i=t.concat(e[n].split("")),r=0;r<i.length;r++){var o=i[r];void 0===Fr[o]&&(Fr[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;e(r<<2|o>>4),64!=a&&(e(o<<4&240|a>>2),64!=s&&e(a<<6&192|s))}}(t,function(t){e.push(t)}),e}(t);for(t=[],n=e=0;e<i.length;){var r=i[e++];if(128>r)t[n++]=String.fromCharCode(r);else if(191<r&&224>r){var o=i[e++];t[n++]=String.fromCharCode((31&r)<<6|63&o)}else if(239<r&&365>r){o=i[e++];var a=i[e++],s=((7&r)<<18|(63&o)<<12|(63&a)<<6|63&i[e++])-65536;t[n++]=String.fromCharCode(55296+(s>>10)),t[n++]=String.fromCharCode(56320+(1023&s))}else o=i[e++],a=i[e++],t[n++]=String.fromCharCode((15&r)<<12|(63&o)<<6|63&a)}return JSON.parse(t.join(""))}catch(u){}return null}Kr.prototype.T=function(){return this.f},Kr.prototype.l=function(){return this.c},Kr.prototype.toString=function(){return this.h};var Gr="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),Br=["client_id","response_type","scope","redirect_uri","state"],Wr={nd:{Ja:"locale",va:700,ua:600,fa:"facebook.com",Ya:Br},pd:{Ja:null,va:500,ua:750,fa:"github.com",Ya:Br},qd:{Ja:"hl",va:515,ua:680,fa:"google.com",Ya:Br},wd:{Ja:"lang",va:485,ua:705,fa:"twitter.com",Ya:Gr},kd:{Ja:"locale",va:640,ua:600,fa:"apple.com",Ya:[]}};function Xr(t){for(var e in Wr)if(Wr[e].fa==t)return Wr[e];return null}function Zr(t){var e={};e["facebook.com"]=Qr,e["google.com"]=eo,e["github.com"]=to,e["twitter.com"]=no;var n=t&&t[Yr];try{if(n)return e[n]?new e[n](t):new $r(t);if(void 0!==t[Jr])return new zr(t)}catch(i){}return null}var Jr="idToken",Yr="providerId";function zr(t){var e=t[Yr];if(!e&&t[Jr]){var n=qr(t[Jr]);n&&n.b&&(e=n.b)}if(!e)throw Error("Invalid additional user info!");("anonymous"==e||"custom"==e)&&(e=null),n=!1,void 0!==t.isNewUser?n=!!t.isNewUser:"identitytoolkit#SignupNewUserResponse"===t.kind&&(n=!0),Ji(this,"providerId",e),Ji(this,"isNewUser",n)}function $r(t){zr.call(this,t),Ji(this,"profile",$i((t=ji(t.rawUserInfo||"{}"))||{}))}function Qr(t){if($r.call(this,t),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function to(t){if($r.call(this,t),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Ji(this,"username",this.profile&&this.profile.login||null)}function eo(t){if($r.call(this,t),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function no(t){if($r.call(this,t),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Ji(this,"username",t.screenName||null)}function io(t){var e=Vn(t),n=Un(e,"link"),i=Un(Vn(n),"link");return e=Un(e,"deep_link_id"),Un(Vn(e),"link")||e||i||n||t}function ro(t,e){if(!t&&!e)throw new S("internal-error","Internal assert: no raw session string available");if(t&&e)throw new S("internal-error","Internal assert: unable to determine the session type");this.a=t||null,this.b=e||null,this.type=this.a?oo:ao}A($r,zr),A(Qr,$r),A(to,$r),A(eo,$r),A(no,$r);var oo="enroll",ao="signin";function so(){}function uo(t,e){return t.then(function(t){if(t[Ja]){var n=qr(t[Ja]);if(!n||e!=n.i)throw new S("user-mismatch");return t}throw new S("user-mismatch")}).o(function(t){throw t&&t.code&&t.code==O+"user-not-found"?new S("user-mismatch"):t})}function co(t,e){if(!e)throw new S("internal-error","failed to construct a credential");this.a=e,Ji(this,"providerId",t),Ji(this,"signInMethod",t)}function ho(t){return{pendingToken:t.a,requestUri:"http://localhost"}}function lo(t){if(t&&t.providerId&&t.signInMethod&&0==t.providerId.indexOf("saml.")&&t.pendingToken)try{return new co(t.providerId,t.pendingToken)}catch(e){}return null}function fo(t,e,n){if(this.a=null,e.idToken||e.accessToken)e.idToken&&Ji(this,"idToken",e.idToken),e.accessToken&&Ji(this,"accessToken",e.accessToken),e.nonce&&!e.pendingToken&&Ji(this,"nonce",e.nonce),e.pendingToken&&(this.a=e.pendingToken);else{if(!e.oauthToken||!e.oauthTokenSecret)throw new S("internal-error","failed to construct a credential");Ji(this,"accessToken",e.oauthToken),Ji(this,"secret",e.oauthTokenSecret)}Ji(this,"providerId",t),Ji(this,"signInMethod",n)}function po(t){var e={};return t.idToken&&(e.id_token=t.idToken),t.accessToken&&(e.access_token=t.accessToken),t.secret&&(e.oauth_token_secret=t.secret),e.providerId=t.providerId,t.nonce&&!t.a&&(e.nonce=t.nonce),e={postBody:zn(e).toString(),requestUri:"http://localhost"},t.a&&(delete e.postBody,e.pendingToken=t.a),e}function vo(t){if(t&&t.providerId&&t.signInMethod){var e={idToken:t.oauthIdToken,accessToken:t.oauthTokenSecret?null:t.oauthAccessToken,oauthTokenSecret:t.oauthTokenSecret,oauthToken:t.oauthTokenSecret&&t.oauthAccessToken,nonce:t.nonce,pendingToken:t.pendingToken};try{return new fo(t.providerId,e,t.signInMethod)}catch(n){}}return null}function mo(t,e){this.Qc=e||[],Yi(this,{providerId:t,isOAuthProvider:!0}),this.Jb={},this.qb=(Xr(t)||{}).Ja||null,this.pb=null}function go(t){if("string"!=typeof t||0!=t.indexOf("saml."))throw new S("argument-error",'SAML provider IDs must be prefixed with "saml."');mo.call(this,t,[])}function bo(t){mo.call(this,t,Br),this.a=[]}function yo(){bo.call(this,"facebook.com")}function wo(t){if(!t)throw new S("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return v(t)&&(e=t.accessToken),(new yo).credential({accessToken:e})}function Io(){bo.call(this,"github.com")}function To(t){if(!t)throw new S("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return v(t)&&(e=t.accessToken),(new Io).credential({accessToken:e})}function Eo(){bo.call(this,"google.com"),this.Ca("profile")}function Ao(t,e){var n=t;return v(t)&&(n=t.idToken,e=t.accessToken),(new Eo).credential({idToken:n,accessToken:e})}function ko(){mo.call(this,"twitter.com",Gr)}function So(t,e){var n=t;if(v(n)||(n={oauthToken:t,oauthTokenSecret:e}),!n.oauthToken||!n.oauthTokenSecret)throw new S("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new fo("twitter.com",n,"twitter.com")}function No(t,e,n){this.a=t,this.f=e,Ji(this,"providerId","password"),Ji(this,"signInMethod",n===Oo.EMAIL_LINK_SIGN_IN_METHOD?Oo.EMAIL_LINK_SIGN_IN_METHOD:Oo.EMAIL_PASSWORD_SIGN_IN_METHOD)}function _o(t){return t&&t.email&&t.password?new No(t.email,t.password,t.signInMethod):null}function Oo(){Yi(this,{providerId:"password",isOAuthProvider:!1})}function Co(t,e){if(!(e=Ro(e)))throw new S("argument-error","Invalid email link!");return new No(t,e.code,Oo.EMAIL_LINK_SIGN_IN_METHOD)}function Ro(t){return(t=_r(t=io(t)))&&t.operation===ur?t:null}function Po(t){if(!(t.fb&&t.eb||t.La&&t.ea))throw new S("internal-error");this.a=t,Ji(this,"providerId","phone"),this.fa="phone",Ji(this,"signInMethod","phone")}function Do(t){if(t&&"phone"===t.providerId&&(t.verificationId&&t.verificationCode||t.temporaryProof&&t.phoneNumber)){var e={};return G(["verificationId","verificationCode","temporaryProof","phoneNumber"],function(n){t[n]&&(e[n]=t[n])}),new Po(e)}return null}function Lo(t){return t.a.La&&t.a.ea?{temporaryProof:t.a.La,phoneNumber:t.a.ea}:{sessionInfo:t.a.fb,code:t.a.eb}}function xo(t){try{this.a=t||i.Z.auth()}catch(e){throw new S("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().")}Yi(this,{providerId:"phone",isOAuthProvider:!1})}function Mo(t,e){if(!t)throw new S("missing-verification-id");if(!e)throw new S("missing-verification-code");return new Po({fb:t,eb:e})}function jo(t){if(t.temporaryProof&&t.phoneNumber)return new Po({La:t.temporaryProof,ea:t.phoneNumber});var e=t&&t.providerId;if(!e||"password"===e)return null;var n=t&&t.oauthAccessToken,i=t&&t.oauthTokenSecret,r=t&&t.nonce,o=t&&t.oauthIdToken,a=t&&t.pendingToken;try{switch(e){case"google.com":return Ao(o,n);case"facebook.com":return wo(n);case"github.com":return To(n);case"twitter.com":return So(n,i);default:return n||i||o||a?a?0==e.indexOf("saml.")?new co(e,a):new fo(e,{pendingToken:a,idToken:t.oauthIdToken,accessToken:t.oauthAccessToken},e):new bo(e).credential({idToken:o,accessToken:n,rawNonce:r}):null}}catch(s){return null}}function Uo(t){if(!t.isOAuthProvider)throw new S("invalid-oauth-provider")}function Vo(t,e,n,i,r,o,a){if(this.c=t,this.b=e||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)throw new S("invalid-auth-event");if(this.g&&this.a)throw new S("invalid-auth-event");if(this.g&&!this.f)throw new S("invalid-auth-event")}function Fo(t){return(t=t||{}).type?new Vo(t.type,t.eventId,t.urlResponse,t.sessionId,t.error&&N(t.error),t.postBody,t.tenantId):null}function Ko(){this.b=null,this.a=[]}ro.prototype.Ha=function(){return Ne(this.a?this.a:this.b)},ro.prototype.w=function(){return this.type==oo?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},so.prototype.ka=function(){},so.prototype.b=function(){},so.prototype.c=function(){},so.prototype.w=function(){},co.prototype.ka=function(t){return ms(t,ho(this))},co.prototype.b=function(t,e){var n=ho(this);return n.idToken=e,gs(t,n)},co.prototype.c=function(t,e){return uo(bs(t,ho(this)),e)},co.prototype.w=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},fo.prototype.ka=function(t){return ms(t,po(this))},fo.prototype.b=function(t,e){var n=po(this);return n.idToken=e,gs(t,n)},fo.prototype.c=function(t,e){return uo(bs(t,po(this)),e)},fo.prototype.w=function(){var t={providerId:this.providerId,signInMethod:this.signInMethod};return this.idToken&&(t.oauthIdToken=this.idToken),this.accessToken&&(t.oauthAccessToken=this.accessToken),this.secret&&(t.oauthTokenSecret=this.secret),this.nonce&&(t.nonce=this.nonce),this.a&&(t.pendingToken=this.a),t},mo.prototype.Ka=function(t){return this.Jb=vt(t),this},A(go,mo),A(bo,mo),bo.prototype.Ca=function(t){return Z(this.a,t)||this.a.push(t),this},bo.prototype.Rb=function(){return $(this.a)},bo.prototype.credential=function(t,e){var n;if(!(n=v(t)?{idToken:t.idToken||null,accessToken:t.accessToken||null,nonce:t.rawNonce||null}:{idToken:t||null,accessToken:e||null}).idToken&&!n.accessToken)throw new S("argument-error","credential failed: must provide the ID token and/or the access token.");return new fo(this.providerId,n,this.providerId)},A(yo,bo),Ji(yo,"PROVIDER_ID","facebook.com"),Ji(yo,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),A(Io,bo),Ji(Io,"PROVIDER_ID","github.com"),Ji(Io,"GITHUB_SIGN_IN_METHOD","github.com"),A(Eo,bo),Ji(Eo,"PROVIDER_ID","google.com"),Ji(Eo,"GOOGLE_SIGN_IN_METHOD","google.com"),A(ko,mo),Ji(ko,"PROVIDER_ID","twitter.com"),Ji(ko,"TWITTER_SIGN_IN_METHOD","twitter.com"),No.prototype.ka=function(t){return this.signInMethod==Oo.EMAIL_LINK_SIGN_IN_METHOD?Qs(t,Ss,{email:this.a,oobCode:this.f}):Qs(t,Zs,{email:this.a,password:this.f})},No.prototype.b=function(t,e){return this.signInMethod==Oo.EMAIL_LINK_SIGN_IN_METHOD?Qs(t,Ns,{idToken:e,email:this.a,oobCode:this.f}):Qs(t,Fs,{idToken:e,email:this.a,password:this.f})},No.prototype.c=function(t,e){return uo(this.ka(t),e)},No.prototype.w=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},Yi(Oo,{PROVIDER_ID:"password"}),Yi(Oo,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),Yi(Oo,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),Po.prototype.ka=function(t){return t.gb(Lo(this))},Po.prototype.b=function(t,e){var n=Lo(this);return n.idToken=e,Qs(t,Ys,n)},Po.prototype.c=function(t,e){var n=Lo(this);return n.operation="REAUTH",uo(t=Qs(t,zs,n),e)},Po.prototype.w=function(){var t={providerId:"phone"};return this.a.fb&&(t.verificationId=this.a.fb),this.a.eb&&(t.verificationCode=this.a.eb),this.a.La&&(t.temporaryProof=this.a.La),this.a.ea&&(t.phoneNumber=this.a.ea),t},xo.prototype.gb=function(t,e){var n=this.a.a;return Ne(e.verify()).then(function(i){if("string"!=typeof i)throw new S("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(e.type){case"recaptcha":var r=v(t)?t.session:null,o=v(t)?t.phoneNumber:t;return(r&&r.type==oo?r.Ha().then(function(t){return function(t,e){return Qs(t,qs,e).then(function(t){return t.phoneSessionInfo.sessionInfo})}(n,{idToken:t,phoneEnrollmentInfo:{phoneNumber:o,recaptchaToken:i}})}):r&&r.type==ao?r.Ha().then(function(e){return function(t,e){return Qs(t,Hs,e).then(function(t){return t.phoneResponseInfo.sessionInfo})}(n,{mfaPendingCredential:e,mfaEnrollmentId:t.multiFactorHint&&t.multiFactorHint.uid||t.multiFactorUid,phoneSignInInfo:{recaptchaToken:i}})}):function(t,e){return Qs(t,Us,e)}(n,{phoneNumber:o,recaptchaToken:i})).then(function(t){return"function"==typeof e.reset&&e.reset(),t},function(t){throw"function"==typeof e.reset&&e.reset(),t});default:throw new S("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}})},Yi(xo,{PROVIDER_ID:"phone"}),Yi(xo,{PHONE_SIGN_IN_METHOD:"phone"}),Vo.prototype.getUid=function(){var t=[];return t.push(this.c),this.b&&t.push(this.b),this.f&&t.push(this.f),this.h&&t.push(this.h),t.join("-")},Vo.prototype.T=function(){return this.h},Vo.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 qo,Ho=null;function Go(t){var e="unauthorized-domain",n=void 0,i=Vn(t);t=i.a,"chrome-extension"==(i=i.c)?n=Ht("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.",t):"http"==i||"https"==i?n=Ht("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.",t):e="operation-not-supported-in-this-environment",S.call(this,e,n)}function Bo(t,e,n){S.call(this,t,n),(t=e||{}).Kb&&Ji(this,"email",t.Kb),t.ea&&Ji(this,"phoneNumber",t.ea),t.credential&&Ji(this,"credential",t.credential),t.$b&&Ji(this,"tenantId",t.$b)}function Wo(t){if(t.code){var e=t.code||"";0==e.indexOf(O)&&(e=e.substring(O.length));var n={credential:jo(t),$b:t.tenantId};if(t.email)n.Kb=t.email;else if(t.phoneNumber)n.ea=t.phoneNumber;else if(!n.credential)return new S(e,t.message||void 0);return new Bo(e,n,t.message)}return null}function Xo(){}function Zo(){}function Jo(t){if(!t.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var e=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n<e.length;n++){var i=e[n];try{return new ActiveXObject(i),t.f=i}catch(r){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return t.f}function Yo(){}function zo(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=I(this.qc,this),this.a.onerror=I(this.Tb,this),this.a.onprogress=I(this.rc,this),this.a.ontimeout=I(this.vc,this)}function $o(t,e){t.readyState=e,t.onreadystatechange&&t.onreadystatechange()}function Qo(t,e,n){this.reset(t,e,n,void 0,void 0)}function ta(t){this.f=t,this.b=this.c=this.a=null}function ea(t,e){this.name=t,this.value=e}A(Go,S),A(Bo,S),Bo.prototype.w=function(){var t={code:this.code,message:this.message};this.email&&(t.email=this.email),this.phoneNumber&&(t.phoneNumber=this.phoneNumber),this.tenantId&&(t.tenantId=this.tenantId);var e=this.credential&&this.credential.w();return e&&gt(t,e),t},Bo.prototype.toJSON=function(){return this.w()},Xo.prototype.c=null,A(Zo,Xo),Zo.prototype.a=function(){var t=Jo(this);return t?new ActiveXObject(t):new XMLHttpRequest},Zo.prototype.b=function(){var t={};return Jo(this)&&(t[0]=!0,t[1]=!0),t},qo=new Zo,A(Yo,Xo),Yo.prototype.a=function(){var t=new XMLHttpRequest;if("withCredentials"in t)return t;if("undefined"!=typeof XDomainRequest)return new zo;throw Error("Unsupported browser")},Yo.prototype.b=function(){return{}},(t=zo.prototype).open=function(t,e,n){if(null!=n&&!n)throw Error("Only async requests are supported.");this.a.open(t,e)},t.send=function(t){if(t){if("string"!=typeof t)throw Error("Only string data is supported");this.a.send(t)}else this.a.send()},t.abort=function(){this.a.abort()},t.setRequestHeader=function(){},t.getResponseHeader=function(t){return"content-type"==t.toLowerCase()?this.a.contentType:""},t.qc=function(){this.status=200,this.response=this.responseText=this.a.responseText,$o(this,4)},t.Tb=function(){this.status=500,this.response=this.responseText="",$o(this,4)},t.vc=function(){this.Tb()},t.rc=function(){this.status=200,$o(this,1)},t.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},Qo.prototype.a=null,Qo.prototype.reset=function(t,e,n,i,r){i||E(),delete this.a},ea.prototype.toString=function(){return this.name};var na=new ea("SEVERE",1e3),ia=new ea("WARNING",900),ra=new ea("CONFIG",700),oa=new ea("FINE",500);function aa(t){return t.c?t.c:t.a?aa(t.a):(M("Root logger has no level set."),null)}ta.prototype.log=function(t,e,n){if(t.value>=aa(this).value)for(p(e)&&(e=e()),t=new Qo(t,String(e),this.f),n&&(t.a=n),n=this;n;)n=n.a};var sa={},ua=null;function ca(t){var e;if(ua||(ua=new ta(""),sa[""]=ua,ua.c=ra),!(e=sa[t])){e=new ta(t);var n=t.lastIndexOf("."),i=t.substr(n+1);(n=ca(t.substr(0,n))).b||(n.b={}),n.b[i]=e,e.a=n,sa[t]=e}return e}function ha(t,e){t&&t.log(oa,e,void 0)}function la(t){this.f=t}function fa(t){In.call(this),this.u=t,this.h=void 0,this.readyState=da,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=ca("goog.net.FetchXmlHttp"),this.m=this.c=this.g=null}A(la,Xo),la.prototype.a=function(){return new fa(this.f)},la.prototype.b=function(t){return function(){return t}}({}),A(fa,In);var da=0;function pa(t){t.c.read().then(t.pc.bind(t)).catch(t.Va.bind(t))}function va(t){t.readyState=4,t.g=null,t.c=null,t.m=null,ma(t)}function ma(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function ga(t){In.call(this),this.headers=new On,this.D=t||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=ba,this.u=this.S=!1}(t=fa.prototype).open=function(t,e){if(this.readyState!=da)throw this.abort(),Error("Error reopening a connection");this.s=t,this.f=e,this.readyState=1,ma(this)},t.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var e={headers:this.l,method:this.s,credentials:this.h,cache:void 0};t&&(e.body=t),this.u.fetch(new Request(this.f,e)).then(this.uc.bind(this),this.Va.bind(this))},t.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,va(this)),this.readyState=da},t.uc=function(t){this.a&&(this.g=t,this.b||(this.status=this.g.status,this.statusText=this.g.statusText,this.b=t.headers,this.readyState=2,ma(this)),this.a&&(this.readyState=3,ma(this),this.a&&("arraybuffer"===this.responseType?t.arrayBuffer().then(this.sc.bind(this),this.Va.bind(this)):void 0!==s.ReadableStream&&"body"in t?(this.response=this.responseText="",this.c=t.body.getReader(),this.m=new TextDecoder,pa(this)):t.text().then(this.tc.bind(this),this.Va.bind(this)))))},t.pc=function(t){if(this.a){var e=this.m.decode(t.value?t.value:new Uint8Array(0),{stream:!t.done});e&&(this.response=this.responseText+=e),t.done?va(this):ma(this),3==this.readyState&&pa(this)}},t.tc=function(t){this.a&&(this.response=this.responseText=t,va(this))},t.sc=function(t){this.a&&(this.response=t,va(this))},t.Va=function(t){var e=this.i;e&&e.log(ia,"Failed to fetch url "+this.f,t instanceof Error?t:Error(t)),this.a&&va(this)},t.setRequestHeader=function(t,e){this.l.append(t,e)},t.getResponseHeader=function(t){return this.b?this.b.get(t.toLowerCase())||"":((t=this.i)&&t.log(ia,"Attempting to get response header but no headers have been received for url: "+this.f,void 0),"")},t.getAllResponseHeaders=function(){if(!this.b){var t=this.i;return t&&t.log(ia,"Attempting to get all response headers but no headers have been received for url: "+this.f,void 0),""}t=[];for(var e=this.b.entries(),n=e.next();!n.done;)t.push((n=n.value)[0]+": "+n[1]),n=e.next();return t.join("\r\n")},Object.defineProperty(fa.prototype,"withCredentials",{get:function(){return"include"===this.h},set:function(t){this.h=t?"include":"same-origin"}}),A(ga,In);var ba="";ga.prototype.b=ca("goog.net.XhrIo");var ya=/^https?$/i,wa=["POST","PUT"];function Ia(t){return"content-type"==t.toLowerCase()}function Ta(t,e){t.c=!1,t.a&&(t.f=!0,t.a.abort(),t.f=!1),t.h=e,Ea(t),ka(t)}function Ea(t){t.J||(t.J=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function Aa(t){if(t.c&&void 0!==a)if(t.C[1]&&4==Na(t)&&2==_a(t))ha(t.b,Oa(t,"Local request error detected and ignored"));else if(t.i&&4==Na(t))kn(t.Wb,0,t);else if(t.dispatchEvent("readystatechange"),4==Na(t)){ha(t.b,Oa(t,"Request complete")),t.c=!1;try{var e,n=_a(t);t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var i=!0;break t;default:i=!1}if(!(e=i)){var r;if(r=0===n){var o=String(t.l).match(Pn)[1]||null;if(!o&&s.self&&s.self.location){var u=s.self.location.protocol;o=u.substr(0,u.length-1)}r=!ya.test(o?o.toLowerCase():"")}e=r}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{try{var c=2<Na(t)?t.a.statusText:""}catch(h){ha(t.b,"Can not get status: "+h.message),c=""}t.h=c+" ["+_a(t)+"]",Ea(t)}}finally{ka(t)}}}function ka(t,e){if(t.a){Sa(t);var n=t.a,i=t.C[0]?l:null;t.a=null,t.C=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=i}catch(r){(t=t.b)&&t.log(na,"Problem encountered resetting onreadystatechange: "+r.message,void 0)}}}function Sa(t){t.a&&t.u&&(t.a.ontimeout=null),t.s&&(s.clearTimeout(t.s),t.s=null)}function Na(t){return t.a?t.a.readyState:0}function _a(t){try{return 2<Na(t)?t.a.status:-1}catch(e){return-1}}function Oa(t,e){return e+" ["+t.P+" "+t.l+" "+_a(t)+"]"}function Ca(t){var e=Ka;this.g=[],this.u=e,this.s=t||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 Ra(t,e,n){t.a=!0,t.c=n,t.f=!e,xa(t)}function Pa(t){if(t.a){if(!t.v)throw new Ma(t);t.v=!1}}function Da(t,e,n,i){t.g.push([e,n,i]),t.a&&xa(t)}function La(t){return X(t.g,function(t){return p(t[1])})}function xa(t){if(t.h&&t.a&&La(t)){var e=t.h,n=Va[e];n&&(s.clearTimeout(n.a),delete Va[e]),t.h=0}t.b&&(t.b.l--,delete t.b),e=t.c;for(var i=n=!1;t.g.length&&!t.i;){var r=t.g.shift(),o=r[0],a=r[1];if(r=r[2],o=t.f?a:o)try{var u=o.call(r||t.s,e);void 0!==u&&(t.f=t.f&&(u==e||u instanceof Error),t.c=e=u),(D(e)||"function"==typeof s.Promise&&e instanceof s.Promise)&&(i=!0,t.i=!0)}catch(c){e=c,t.f=!0,La(t)||(n=!0)}}t.c=e,i&&(u=I(t.m,t,!0),i=I(t.m,t,!1),e instanceof Ca?(Da(e,u,i),e.C=!0):e.then(u,i)),n&&(e=new Ua(e),Va[e.a]=e,t.h=e.a)}function Ma(){L.call(this)}function ja(){L.call(this)}function Ua(t){this.a=s.setTimeout(I(this.c,this),0),this.b=t}(t=ga.prototype).Ma=function(){void 0!==a&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",ha(this.b,Oa(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},t.abort=function(){this.a&&this.c&&(ha(this.b,Oa(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),ka(this))},t.Da=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),ka(this,!0)),ga.bb.Da.call(this)},t.Wb=function(){this.ya||(this.N||this.i||this.f?Aa(this):this.Jc())},t.Jc=function(){Aa(this)},t.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case ba:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var t=this.b;return t&&t.log(na,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(e){return ha(this.b,"Can not get response: "+e.message),null}},Ca.prototype.cancel=function(t){if(this.a)this.c instanceof Ca&&this.c.cancel();else{if(this.b){var e=this.b;delete this.b,t?e.cancel(t):(e.l--,0>=e.l&&e.cancel())}this.u?this.u.call(this.s,this):this.v=!0,this.a||(t=new ja(this),Pa(this),Ra(this,!1,t))}},Ca.prototype.m=function(t,e){this.i=!1,Ra(this,t,e)},Ca.prototype.then=function(t,e,n){var i,r,o=new we(function(t,e){i=t,r=e});return Da(this,i,function(t){t instanceof ja?o.cancel():r(t)}),o.then(t,e,n)},Ca.prototype.$goog_Thenable=!0,A(Ma,L),Ma.prototype.message="Deferred has already fired",Ma.prototype.name="AlreadyCalledError",A(ja,L),ja.prototype.message="Deferred was canceled",ja.prototype.name="CanceledError",Ua.prototype.c=function(){throw delete Va[this.a],this.b};var Va={};function Fa(t){var e={},n=e.document||document,i=St(t).toString(),r=pe(document,"SCRIPT"),o={Xb:r,Ma:void 0},a=new Ca(o),u=null,l=null!=e.timeout?e.timeout:5e3;return 0<l&&(u=window.setTimeout(function(){qa(r,!0);var t=new Ba(Ga,"Timeout reached for loading script "+i);Pa(a),Ra(a,!1,t)},l),o.Ma=u),r.onload=r.onreadystatechange=function(){r.readyState&&"loaded"!=r.readyState&&"complete"!=r.readyState||(qa(r,e.xd||!1,u),Pa(a),Ra(a,!0,null))},r.onerror=function(){qa(r,!0,u);var t=new Ba(Ha,"Error while loading script "+i);Pa(a),Ra(a,!1,t)},gt(o=e.attributes||{},{type:"text/javascript",charset:"UTF-8"}),ce(r,o),function(t,e){bt(t,"HTMLScriptElement"),t.src=St(e),(e=t.ownerDocument&&t.ownerDocument.defaultView)&&e!=s?e=h(e.document):(null===c&&(c=h(s.document)),e=c),e&&t.setAttribute("nonce",e)}(r,t),function(t){var e;return(e=(t||document).getElementsByTagName("HEAD"))&&0!=e.length?e[0]:t.documentElement}(n).appendChild(r),a}function Ka(){if(this&&this.Xb){var t=this.Xb;t&&"SCRIPT"==t.tagName&&qa(t,!0,this.Ma)}}function qa(t,e,n){null!=n&&s.clearTimeout(n),t.onload=l,t.onerror=l,t.onreadystatechange=l,e&&window.setTimeout(function(){t&&t.parentNode&&t.parentNode.removeChild(t)},0)}var Ha=0,Ga=1;function Ba(t,e){var n="Jsloader error (code #"+t+")";e&&(n+=": "+e),L.call(this,n),this.code=t}function Wa(t){this.f=t}function Xa(t,e,n){if(this.c=t,this.l=(t=e||{}).secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.m=t.secureTokenTimeout||Ya,this.g=vt(t.secureTokenHeaders||za),this.h=t.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.i=t.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/",this.v=t.firebaseTimeout||$a,this.a=vt(t.firebaseHeaders||Qa),n&&(this.a["X-Client-Version"]=n,this.g["X-Client-Version"]=n),n="Node"==Ti(),!(n=s.XMLHttpRequest||n&&i.Z.INTERNAL.node&&i.Z.INTERNAL.node.XMLHttpRequest)&&!Ii())throw new S("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,this.f=Ii()?new la(self):Ei()?new Wa(n):new Yo,this.b=null}A(Ba,L),A(Wa,Xo),Wa.prototype.a=function(){return new this.f},Wa.prototype.b=function(){return{}};var Za,Ja="idToken",Ya=new Ki(3e4,6e4),za={"Content-Type":"application/x-www-form-urlencoded"},$a=new Ki(3e4,6e4),Qa={"Content-Type":"application/json"};function ts(t,e){e?t.a["X-Firebase-Locale"]=e:delete t.a["X-Firebase-Locale"]}function es(t,e){e&&(t.l=ns("https://securetoken.googleapis.com/v1/token",e),t.h=ns("https://www.googleapis.com/identitytoolkit/v3/relyingparty/",e),t.i=ns("https://identitytoolkit.googleapis.com/v2/",e))}function ns(t,e){return t=Vn(t),e=Vn(e.url),t.f=t.a+t.f,Ln(t,e.c),t.a=e.a,xn(t,e.g),t.toString()}function is(t,e){e?(t.a["X-Client-Version"]=e,t.g["X-Client-Version"]=e):(delete t.a["X-Client-Version"],delete t.g["X-Client-Version"])}function rs(t,e,n,i,r,o,a){(function(){var t=_i();return!((t="Chrome"!=ki(t)?null:(t=t.match(/\sChrome\/(\d+)/i))&&2==t.length?parseInt(t[1],10):null)&&30>t||Jt&&ae&&!(9<ae))})()||Ii()?t=I(t.u,t):(Za||(Za=new we(function(t,e){!function(t,e){((window.gapi||{}).client||{}).request?t():(s[as]=function(){((window.gapi||{}).client||{}).request?t():e(Error("CORS_UNSUPPORTED"))},function(t,e){Da(t,null,e,void 0)}(Fa(Nt(os,{onload:as})),function(){e(Error("CORS_UNSUPPORTED"))}))}(t,e)})),t=I(t.s,t)),t(e,n,i,r,o,a)}Xa.prototype.T=function(){return this.b},Xa.prototype.u=function(t,e,n,i,r,o){if(Ii()&&(void 0===s.fetch||void 0===s.Headers||void 0===s.Request))throw new S("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 ga(this.f);if(o){a.g=Math.max(0,o);var u=setTimeout(function(){a.dispatchEvent("timeout")},o)}Tn(a,"complete",function(){u&&clearTimeout(u);var t=null;try{t=JSON.parse(function(t){try{return t.a?t.a.responseText:""}catch(e){return ha(t.b,"Can not get responseText: "+e.message),""}}(this))||null}catch(n){t=null}e&&e(t)}),En(a,"ready",function(){u&&clearTimeout(u),Be(this)}),En(a,"timeout",function(){u&&clearTimeout(u),Be(this),e&&e(null)}),function(t,e,n,i,r){if(t.a)throw Error("[goog.net.XhrIo] Object is active with another request="+t.l+"; newUri="+e);n=n?n.toUpperCase():"GET",t.l=e,t.h="",t.P=n,t.J=!1,t.c=!0,t.a=t.D?t.D.a():qo.a(),t.C=function(t){return t.c||(t.c=t.b())}(t.D?t.D:qo),t.a.onreadystatechange=I(t.Wb,t);try{ha(t.b,Oa(t,"Opening Xhr")),t.N=!0,t.a.open(n,String(e),!0),t.N=!1}catch(a){return ha(t.b,Oa(t,"Error opening Xhr: "+a.message)),void Ta(t,a)}e=i||"";var o=new On(t.headers);r&&function(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(d(t)||"string"==typeof t)G(t,e,void 0);else for(var n=_n(t),i=Nn(t),r=i.length,o=0;o<r;o++)e.call(void 0,i[o],n&&n[o],t)}(r,function(t,e){o.set(e,t)}),r=function(t){t:{for(var e=Ia,n=t.length,i="string"==typeof t?t.split(""):t,r=0;r<n;r++)if(r in i&&e.call(void 0,i[r],r,t)){e=r;break t}e=-1}return 0>e?null:"string"==typeof t?t.charAt(e):t[e]}(o.Y()),i=s.FormData&&e instanceof s.FormData,!Z(wa,n)||r||i||o.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),o.forEach(function(t,e){this.a.setRequestHeader(e,t)},t),t.m&&(t.a.responseType=t.m),"withCredentials"in t.a&&t.a.withCredentials!==t.S&&(t.a.withCredentials=t.S);try{Sa(t),0<t.g&&(t.u=function(t){return Jt&&oe(9)&&"number"==typeof t.timeout&&void 0!==t.ontimeout}(t.a),ha(t.b,Oa(t,"Will abort after "+t.g+"ms if incomplete, xhr2 "+t.u)),t.u?(t.a.timeout=t.g,t.a.ontimeout=I(t.Ma,t)):t.s=kn(t.Ma,t.g,t)),ha(t.b,Oa(t,"Sending request")),t.i=!0,t.a.send(e),t.i=!1}catch(a){ha(t.b,Oa(t,"Send error: "+a.message)),Ta(t,a)}}(a,t,n,i,r)};var os=new yt(Et,"https://apis.google.com/js/client.js?onload=%{onload}"),as="__fcb"+Math.floor(1e6*Math.random()).toString();function ss(t){if("string"!=typeof(t=t.email)||!gi.test(t))throw new S("invalid-email")}function us(t){"email"in t&&ss(t)}function cs(t){if(!t[Ja])throw t.mfaPendingCredential?new S("multi-factor-auth-required",null,vt(t)):new S("internal-error")}function hs(t){if(t.phoneNumber||t.temporaryProof){if(!t.phoneNumber||!t.temporaryProof)throw new S("internal-error")}else{if(!t.sessionInfo)throw new S("missing-verification-id");if(!t.code)throw new S("missing-verification-code")}}Xa.prototype.s=function(t,e,n,i,r){var o=this;Za.then(function(){window.gapi.client.setApiKey(o.c);var a=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:t,method:n,body:i,headers:r,authType:"none",callback:function(t){window.gapi.auth.setToken(a),e&&e(t)}})}).o(function(t){e&&e({error:{message:t&&t.message||"CORS_UNSUPPORTED"}})})},Xa.prototype.Ab=function(){return Qs(this,Ks,{})},Xa.prototype.Cb=function(t,e){return Qs(this,Vs,{idToken:t,email:e})},Xa.prototype.Db=function(t,e){return Qs(this,Fs,{idToken:t,password:e})};var ls={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function fs(t){if(!t.phoneVerificationInfo)throw new S("internal-error");if(!t.phoneVerificationInfo.sessionInfo)throw new S("missing-verification-id");if(!t.phoneVerificationInfo.code)throw new S("missing-verification-code")}function ds(t){if(!t.requestUri||!t.sessionId&&!t.postBody&&!t.pendingToken)throw new S("internal-error")}function ps(t,e){return e.oauthIdToken&&e.providerId&&0==e.providerId.indexOf("oidc.")&&!e.pendingToken&&(t.sessionId?e.nonce=t.sessionId:t.postBody&&Qn(t=new Jn(t.postBody),"nonce")&&(e.nonce=t.get("nonce"))),e}function vs(t){var e=null;if(t.needConfirmation?(t.code="account-exists-with-different-credential",e=Wo(t)):"FEDERATED_USER_ID_ALREADY_LINKED"==t.errorMessage?(t.code="credential-already-in-use",e=Wo(t)):"EMAIL_EXISTS"==t.errorMessage?(t.code="email-already-in-use",e=Wo(t)):t.errorMessage&&(e=tu(t.errorMessage)),e)throw e;cs(t)}function ms(t,e){return e.returnIdpCredential=!0,Qs(t,Gs,e)}function gs(t,e){return e.returnIdpCredential=!0,Qs(t,Ws,e)}function bs(t,e){return e.returnIdpCredential=!0,e.autoCreate=!1,Qs(t,Bs,e)}function ys(t){if(!t.oobCode)throw new S("invalid-action-code")}(t=Xa.prototype).Eb=function(t,e){var n={idToken:t},i=[];return dt(ls,function(t,r){var o=e[r];null===o?i.push(t):r in e&&(n[r]=o)}),i.length&&(n.deleteAttribute=i),Qs(this,Vs,n)},t.wb=function(t,e){return gt(t={requestType:"PASSWORD_RESET",email:t},e),Qs(this,Ls,t)},t.xb=function(t,e){return gt(t={requestType:"EMAIL_SIGNIN",email:t},e),Qs(this,Rs,t)},t.vb=function(t,e){return gt(t={requestType:"VERIFY_EMAIL",idToken:t},e),Qs(this,Ps,t)},t.Fb=function(t,e,n){return gt(t={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:t,newEmail:e},n),Qs(this,Ds,t)},t.gb=function(t){return Qs(this,Js,t)},t.ob=function(t,e){return Qs(this,js,{oobCode:t,newPassword:e})},t.Sa=function(t){return Qs(this,Is,{oobCode:t})},t.kb=function(t){return Qs(this,ws,{oobCode:t})};var ws={endpoint:"setAccountInfo",A:ys,Z:"email",B:!0},Is={endpoint:"resetPassword",A:ys,G:function(t){var e=t.requestType;if(!e||!t.email&&"EMAIL_SIGNIN"!=e&&"VERIFY_AND_CHANGE_EMAIL"!=e)throw new S("internal-error")},B:!0},Ts={endpoint:"signupNewUser",A:function(t){if(ss(t),!t.password)throw new S("weak-password")},G:cs,V:!0,B:!0},Es={endpoint:"createAuthUri",B:!0},As={endpoint:"deleteAccount",O:["idToken"]},ks={endpoint:"setAccountInfo",O:["idToken","deleteProvider"],A:function(t){if(!Array.isArray(t.deleteProvider))throw new S("internal-error")}},Ss={endpoint:"emailLinkSignin",O:["email","oobCode"],A:ss,G:cs,V:!0,B:!0},Ns={endpoint:"emailLinkSignin",O:["idToken","email","oobCode"],A:ss,G:cs,V:!0},_s={endpoint:"accounts/mfaEnrollment:finalize",O:["idToken","phoneVerificationInfo"],A:fs,G:cs,B:!0,Na:!0},Os={endpoint:"accounts/mfaSignIn:finalize",O:["mfaPendingCredential","phoneVerificationInfo"],A:fs,G:cs,B:!0,Na:!0},Cs={endpoint:"getAccountInfo"},Rs={endpoint:"getOobConfirmationCode",O:["requestType"],A:function(t){if("EMAIL_SIGNIN"!=t.requestType)throw new S("internal-error");ss(t)},Z:"email",B:!0},Ps={endpoint:"getOobConfirmationCode",O:["idToken","requestType"],A:function(t){if("VERIFY_EMAIL"!=t.requestType)throw new S("internal-error")},Z:"email",B:!0},Ds={endpoint:"getOobConfirmationCode",O:["idToken","newEmail","requestType"],A:function(t){if("VERIFY_AND_CHANGE_EMAIL"!=t.requestType)throw new S("internal-error")},Z:"email",B:!0},Ls={endpoint:"getOobConfirmationCode",O:["requestType"],A:function(t){if("PASSWORD_RESET"!=t.requestType)throw new S("internal-error");ss(t)},Z:"email",B:!0},xs={mb:!0,endpoint:"getProjectConfig",Vb:"GET"},Ms={mb:!0,endpoint:"getRecaptchaParam",Vb:"GET",G:function(t){if(!t.recaptchaSiteKey)throw new S("internal-error")}},js={endpoint:"resetPassword",A:ys,Z:"email",B:!0},Us={endpoint:"sendVerificationCode",O:["phoneNumber","recaptchaToken"],Z:"sessionInfo",B:!0},Vs={endpoint:"setAccountInfo",O:["idToken"],A:us,V:!0},Fs={endpoint:"setAccountInfo",O:["idToken"],A:function(t){if(us(t),!t.password)throw new S("weak-password")},G:cs,V:!0},Ks={endpoint:"signupNewUser",G:cs,V:!0,B:!0},qs={endpoint:"accounts/mfaEnrollment:start",O:["idToken","phoneEnrollmentInfo"],A:function(t){if(!t.phoneEnrollmentInfo)throw new S("internal-error");if(!t.phoneEnrollmentInfo.phoneNumber)throw new S("missing-phone-number");if(!t.phoneEnrollmentInfo.recaptchaToken)throw new S("missing-app-credential")},G:function(t){if(!t.phoneSessionInfo||!t.phoneSessionInfo.sessionInfo)throw new S("internal-error")},B:!0,Na:!0},Hs={endpoint:"accounts/mfaSignIn:start",O:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],A:function(t){if(!t.phoneSignInInfo||!t.phoneSignInInfo.recaptchaToken)throw new S("missing-app-credential")},G:function(t){if(!t.phoneResponseInfo||!t.phoneResponseInfo.sessionInfo)throw new S("internal-error")},B:!0,Na:!0},Gs={endpoint:"verifyAssertion",A:ds,Za:ps,G:vs,V:!0,B:!0},Bs={endpoint:"verifyAssertion",A:ds,Za:ps,G:function(t){if(t.errorMessage&&"USER_NOT_FOUND"==t.errorMessage)throw new S("user-not-found");if(t.errorMessage)throw tu(t.errorMessage);cs(t)},V:!0,B:!0},Ws={endpoint:"verifyAssertion",A:function(t){if(ds(t),!t.idToken)throw new S("internal-error")},Za:ps,G:vs,V:!0},Xs={endpoint:"verifyCustomToken",A:function(t){if(!t.token)throw new S("invalid-custom-token")},G:cs,V:!0,B:!0},Zs={endpoint:"verifyPassword",A:function(t){if(ss(t),!t.password)throw new S("wrong-password")},G:cs,V:!0,B:!0},Js={endpoint:"verifyPhoneNumber",A:hs,G:cs,B:!0},Ys={endpoint:"verifyPhoneNumber",A:function(t){if(!t.idToken)throw new S("internal-error");hs(t)},G:function(t){if(t.temporaryProof)throw t.code="credential-already-in-use",Wo(t);cs(t)}},zs={Ib:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",A:hs,G:cs,B:!0},$s={endpoint:"accounts/mfaEnrollment:withdraw",O:["idToken","mfaEnrollmentId"],G:function(t){if(!!t[Ja]^!!t.refreshToken)throw new S("internal-error")},B:!0,Na:!0};function Qs(t,e,n){if(!function(t,e){if(!e||!e.length)return!0;if(!t)return!1;for(var n=0;n<e.length;n++){var i=t[e[n]];if(null==i||""===i)return!1}return!0}(n,e.O))return _e(new S("internal-error"));var i,r=!!e.Na,o=e.Vb||"POST";return Ne(n).then(e.A).then(function(){return e.V&&(n.returnSecureToken=!0),e.B&&t.b&&void 0===n.tenantId&&(n.tenantId=t.b),function(t,e,n,i,r,o,a){var s=Vn(e+n);jn(s,"key",t.c),a&&jn(s,"cb",Date.now().toString());var u="GET"==i;if(u)for(var c in r)r.hasOwnProperty(c)&&jn(s,c,r[c]);return new we(function(e,n){rs(t,s.toString(),function(t){t?t.error?n(eu(t,o||{})):e(t):n(new S("network-request-failed"))},i,u?void 0:ii(Mi(r)),t.a,t.v.get())})}(t,r?t.i:t.h,e.endpoint,o,n,e.Ib,e.mb||!1)}).then(function(t){return i=t,e.Za?e.Za(n,i):i}).then(e.G).then(function(){if(!e.Z)return i;if(!(e.Z in i))throw new S("internal-error");return i[e.Z]})}function tu(t){return eu({error:{errors:[{message:t}],code:400,message:t}})}function eu(t,e){var n=(t.error&&t.error.errors&&t.error.errors[0]||{}).reason||"",i={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(n=i[n]?new S(i[n]):null)return n;for(var r in n=t.error&&t.error.message||"",gt(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_NONCE:"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"},e||{}),e=(e=n.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&1<e.length?e[1]:void 0,i)if(0===n.indexOf(r))return new S(i[r],e);return!e&&t&&(e=xi(t)),new S("internal-error",e)}function nu(t){this.b=t,this.a=null,this.sb=function(t){return(au||(au=new we(function(t,e){function n(){Fi(),Oi("gapi.load")("gapi.iframes",{callback:t,ontimeout:function(){Fi(),e(Error("Network Error"))},timeout:ru.get()})}if(Oi("gapi.iframes.Iframe"))t();else if(Oi("gapi.load"))n();else{var i="__iframefcb"+Math.floor(1e6*Math.random()).toString();s[i]=function(){Oi("gapi.load")?n():e(Error("Network Error"))},Ne(Fa(i=Nt(iu,{onload:i}))).o(function(){e(Error("Network Error"))})}}).o(function(t){throw au=null,t}))).then(function(){return new we(function(e,n){Oi("gapi.iframes.getContext")().open({where:document.body,url:t.b,messageHandlersFilter:Oi("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"))},ou.get());i.ping(r).then(r,function(){n(Error("Network Error"))})})})})}(this)}var iu=new yt(Et,"https://apis.google.com/js/api.js?onload=%{onload}"),ru=new Ki(3e4,6e4),ou=new Ki(5e3,15e3),au=null;function su(t,e,n,i){this.l=t,this.h=e,this.i=n,this.g=i,this.f=null,t=this.g?Fn((t=Vn(this.g.url)).c,t.a,t.g,"/emulator/auth/iframe"):Fn("https",this.l,null,"/__/auth/iframe"),this.a=t,jn(this.a,"apiKey",this.h),jn(this.a,"appName",this.i),this.b=null,this.c=[]}function uu(t,e,n,i,r,o){this.u=t,this.s=e,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 cu(t){try{return i.Z.app(t).auth().Ga()}catch(e){return[]}}function hu(t,e,n,i,r,o){this.s=t,this.g=e,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 lu(t){var e=hi();return function(t){return Qs(t,xs,{}).then(function(t){return t.authorizedDomains||[]})}(t).then(function(t){t:{var n=Vn(e),i=n.c;n=n.a;for(var r=0;r<t.length;r++){var o=t[r],a=n,s=i;if(0==o.indexOf("chrome-extension://")?a=Vn(o).a==a&&"chrome-extension"==s:"http"!=s&&"https"!=s?a=!1:mi.test(o)?a=a==o:(o=o.split(".").join("\\."),a=new RegExp("^(.+\\."+o+"|"+o+")$","i").test(a)),a){t=!0;break t}}t=!1}if(!t)throw new Go(hi())})}function fu(t){return t.m||(t.m=bi().then(function(){if(!t.u){var e=t.c,n=t.i,i=cu(t.b),r=new su(t.s,t.g,t.b,t.f);r.f=e,r.b=n,r.c=$(i||[]),t.u=r.toString()}t.v=new nu(t.u),function(t){if(!t.v)throw Error("IfcHandler must be initialized!");!function(t,e){t.sb.then(function(){t.a.register("authEvent",e,Oi("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})}(t.v,function(e){var n={};if(e&&e.authEvent){var i=!1;for(e=Fo(e.authEvent),n=0;n<t.h.length;n++)i=t.h[n](e)||i;return(n={}).status=i?"ACK":"ERROR",Ne(n)}return n.status="ERROR",Ne(n)})}(t)})),t.m}function du(t){return t.l||(t.C=t.c?Ni(t.c,cu(t.b)):null,t.l=new Xa(t.g,P(t.i),t.C),t.f&&es(t.l,t.f)),t.l}function pu(t,e,n,i,r,o,a,s,u,c,h,l){return(t=new uu(t,e,n,i,r,l)).l=o,t.g=a,t.i=s,t.b=vt(u||null),t.f=c,t.zb(h).toString()}function vu(t){if(this.a=t||i.Z.INTERNAL.reactNative&&i.Z.INTERNAL.reactNative.AsyncStorage,!this.a)throw new S("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function mu(t){this.b=t,this.a={},this.f=I(this.c,this)}su.prototype.toString=function(){return this.f?jn(this.a,"v",this.f):$n(this.a.b,"v"),this.b?jn(this.a,"eid",this.b):$n(this.a.b,"eid"),this.c.length?jn(this.a,"fw",this.c.join(",")):$n(this.a.b,"fw"),this.a.toString()},uu.prototype.zb=function(t){return this.h=t,this},uu.prototype.toString=function(){if(this.v){var t=Vn(this.v.url);t=Fn(t.c,t.a,t.g,"/emulator/auth/handler")}else t=Fn("https",this.u,null,"/__/auth/handler");if(jn(t,"apiKey",this.s),jn(t,"appName",this.c),jn(t,"authType",this.m),this.a.isOAuthProvider){var e=this.a;try{var n=i.Z.app(this.c).auth().la()}catch(u){n=null}for(var r in e.pb=n,jn(t,"providerId",this.a.providerId),e=Mi((n=this.a).Jb))e[r]=e[r].toString();r=n.Qc,e=vt(e);for(var o=0;o<r.length;o++){var a=r[o];a in e&&delete e[a]}n.qb&&n.pb&&!e[n.qb]&&(e[n.qb]=n.pb),pt(e)||jn(t,"customParameters",xi(e))}if("function"==typeof this.a.Rb&&(n=this.a.Rb()).length&&jn(t,"scopes",n.join(",")),this.l?jn(t,"redirectUrl",this.l):$n(t.b,"redirectUrl"),this.g?jn(t,"eventId",this.g):$n(t.b,"eventId"),this.i?jn(t,"v",this.i):$n(t.b,"v"),this.b)for(var s in this.b)this.b.hasOwnProperty(s)&&!Un(t,s)&&jn(t,s,this.b[s]);return this.h?jn(t,"tid",this.h):$n(t.b,"tid"),this.f?jn(t,"eid",this.f):$n(t.b,"eid"),(s=cu(this.c)).length&&jn(t,"fw",s.join(",")),t.toString()},(t=hu.prototype).Pb=function(t,e,n){var i=new S("popup-closed-by-user"),r=new S("web-storage-unsupported"),o=this,a=!1;return this.ma().then(function(){(function(t){var e={type:"webStorageSupport"};return fu(t).then(function(){return function(t,e){return t.sb.then(function(){return new we(function(n){t.a.send(e.type,e,n,Oi("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})})}(t.v,e)}).then(function(t){if(t&&t.length&&void 0!==t[0].webStorageSupport)return t[0].webStorageSupport;throw Error()})})(o).then(function(n){n||(t&&pi(t),e(r),a=!0)})}).o(function(){}).then(function(){if(!a)return function(t){return new we(function(e){return function n(){Sn(2e3).then(function(){if(t&&!t.closed)return n();e()})}()})}(t)}).then(function(){if(!a)return Sn(n).then(function(){e(i)})})},t.Yb=function(){var t=_i();return!Li(t)&&!Vi(t)},t.Ub=function(){return!1},t.Nb=function(t,e,n,i,r,o,a,s){if(!t)return _e(new S("popup-blocked"));if(a&&!Li())return this.ma().o(function(e){pi(t),r(e)}),i(),Ne();this.a||(this.a=lu(du(this)));var u=this;return this.a.then(function(){var e=u.ma().o(function(e){throw pi(t),r(e),e});return i(),e}).then(function(){Uo(n),a||li(pu(u.s,u.g,u.b,e,n,null,o,u.c,void 0,u.i,s,u.f),t)}).o(function(t){throw"auth/network-request-failed"==t.code&&(u.a=null),t})},t.Ob=function(t,e,n,i){this.a||(this.a=lu(du(this)));var r=this;return this.a.then(function(){Uo(e),li(pu(r.s,r.g,r.b,t,e,hi(),n,r.c,void 0,r.i,i,r.f))}).o(function(t){throw"auth/network-request-failed"==t.code&&(r.a=null),t})},t.ma=function(){var t=this;return fu(this).then(function(){return t.v.sb}).o(function(){throw t.a=null,new S("network-request-failed")})},t.ac=function(){return!0},t.Ea=function(t){this.h.push(t)},t.Ta=function(t){Y(this.h,function(e){return e==t})},(t=vu.prototype).get=function(t){return Ne(this.a.getItem(t)).then(function(t){return t&&ji(t)})},t.set=function(t,e){return Ne(this.a.setItem(t,xi(e)))},t.U=function(t){return Ne(this.a.removeItem(t))},t.ca=function(){},t.ia=function(){};var gu,bu=[];function yu(t,e,n){pt(t.a)&&t.b.addEventListener("message",t.f),void 0===t.a[e]&&(t.a[e]=[]),t.a[e].push(n)}function wu(t){this.a=t}function Iu(t){this.c=t,this.b=!1,this.a=[]}function Tu(t,e,n,i){var r,o,a,s,u=n||{},c=null;if(t.b)return _e(Error("connection_unavailable"));var h=i?800:50,l="undefined"!=typeof MessageChannel?new MessageChannel:null;return new we(function(n,i){l?(r=Math.floor(Math.random()*Math.pow(10,20)).toString(),l.port1.start(),a=setTimeout(function(){i(Error("unsupported_event"))},h),t.a.push(c={messageChannel:l,onMessage:o=function(t){t.data.eventId===r&&("ack"===t.data.status?(clearTimeout(a),s=setTimeout(function(){i(Error("timeout"))},3e3)):"done"===t.data.status?(clearTimeout(s),void 0!==t.data.response?n(t.data.response):i(Error("unknown_error"))):(clearTimeout(a),clearTimeout(s),i(Error("invalid_response"))))}}),l.port1.addEventListener("message",o),t.c.postMessage({eventType:e,eventId:r,data:u},[l.port2])):i(Error("connection_unavailable"))}).then(function(e){return Eu(t,c),e}).o(function(e){throw Eu(t,c),e})}function Eu(t,e){if(e){var n=e.messageChannel;n&&(n.port1.removeEventListener("message",e.onMessage),n.port1.close()),Y(t.a,function(t){return t==e})}}function Au(){if(!_u())throw new S("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.m=s.indexedDB,this.type="indexedDB",this.g=this.v=this.f=this.l=null,this.s=!1,this.h=null;var t=this;Ii()&&self?(this.v=function(){var t=Ii()?self:null;if(G(bu,function(n){n.b==t&&(e=n)}),!e){var e=new mu(t);bu.push(e)}return e}(),yu(this.v,"keyChanged",function(e,n){return Du(t).then(function(e){return 0<e.length&&G(t.a,function(t){t(e)}),{keyProcessed:Z(e,n.key)}})}),yu(this.v,"ping",function(){return Ne(["keyChanged"])})):function(){var t=s.navigator;return t&&t.serviceWorker?Ne().then(function(){return t.serviceWorker.ready}).then(function(t){return t.active||null}).o(function(){return null}):Ne(null)}().then(function(e){(t.h=e)&&(t.g=new Iu(new wu(e)),Tu(t.g,"ping",null,!0).then(function(e){e[0].fulfilled&&Z(e[0].value,"keyChanged")&&(t.s=!0)}).o(function(){}))})}function ku(t){return new we(function(e,n){var i=t.m.open("firebaseLocalStorageDb",1);i.onerror=function(t){try{t.preventDefault()}catch(e){}n(Error(t.target.error))},i.onupgradeneeded=function(t){t=t.target.result;try{t.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(e){n(e)}},i.onsuccess=function(i){(i=i.target.result).objectStoreNames.contains("firebaseLocalStorage")?e(i):function(t){return new we(function(e,n){var i=t.m.deleteDatabase("firebaseLocalStorageDb");i.onsuccess=function(){e()},i.onerror=function(t){n(Error(t.target.error))}})}(t).then(function(){return ku(t)}).then(function(t){e(t)}).o(function(t){n(t)})}})}function Su(t){return t.i||(t.i=ku(t)),t.i}function Nu(t,e){var n=0;return new we(function i(r,o){Su(t).then(e).then(r).o(function(e){if(!(3<++n))return Su(t).then(function(e){return e.close(),t.i=void 0,i(r,o)}).o(function(t){o(t)});o(e)})})}function _u(){try{return!!s.indexedDB}catch(Xt){return!1}}function Ou(t){return t.objectStore("firebaseLocalStorage")}function Cu(t,e){return t.transaction(["firebaseLocalStorage"],e?"readwrite":"readonly")}function Ru(t){return new we(function(e,n){t.onsuccess=function(t){t&&t.target?e(t.target.result):e()},t.onerror=function(t){n(t.target.error)}})}function Pu(t,e){return t.g&&t.h&&function(){var t=s.navigator;return t&&t.serviceWorker&&t.serviceWorker.controller||null}()===t.h?Tu(t.g,"keyChanged",{key:e},t.s).then(function(){}).o(function(){}):Ne()}function Du(t){return Su(t).then(function(t){var e=Ou(Cu(t,!1));return e.getAll?Ru(e.getAll()):new we(function(t,n){var i=[],r=e.openCursor();r.onsuccess=function(e){(e=e.target.result)?(i.push(e.value),e.continue()):t(i)},r.onerror=function(t){n(t.target.error)}})}).then(function(e){var n={},i=[];if(0==t.b){for(i=0;i<e.length;i++)n[e[i].fbase_key]=e[i].value;i=fi(t.c,n),t.c=n}return i})}function Lu(t){t.l&&t.l.cancel("STOP_EVENT"),t.f&&(clearTimeout(t.f),t.f=null)}function xu(t){var e=this,n=null;this.a=[],this.type="indexedDB",this.c=t,this.b=Ne().then(function(){if(_u()){var t=Ui(),i="__sak"+t;return gu||(gu=new Au),(n=gu).set(i,t).then(function(){return n.get(i)}).then(function(e){if(e!==t)throw Error("indexedDB not supported!");return n.U(i)}).then(function(){return n}).o(function(){return e.c})}return e.c}).then(function(t){return e.type=t.type,t.ca(function(t){G(e.a,function(e){e(t)})}),t})}function Mu(){this.a={},this.type="inMemory"}function ju(){if(!function(){var t="Node"==Ti();if(!(t=Uu()||t&&i.Z.INTERNAL.node&&i.Z.INTERNAL.node.localStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(e){return!1}}())throw"Node"==Ti()?new S("internal-error","The LocalStorage compatibility library was not found."):new S("web-storage-unsupported");this.a=Uu()||i.Z.INTERNAL.node.localStorage,this.type="localStorage"}function Uu(){try{var t=s.localStorage,e=Ui();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(n){return null}}function Vu(){this.type="nullStorage"}function Fu(){if(!function(){var t="Node"==Ti();if(!(t=Ku()||t&&i.Z.INTERNAL.node&&i.Z.INTERNAL.node.sessionStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(e){return!1}}())throw"Node"==Ti()?new S("internal-error","The SessionStorage compatibility library was not found."):new S("web-storage-unsupported");this.a=Ku()||i.Z.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function Ku(){try{var t=s.sessionStorage,e=Ui();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(n){return null}}function qu(){var t={};t.Browser=Bu,t.Node=Wu,t.ReactNative=Xu,t.Worker=Zu,this.a=t[Ti()]}mu.prototype.c=function(t){var e=t.data.eventType,n=t.data.eventId,i=this.a[e];if(i&&0<i.length){t.ports[0].postMessage({status:"ack",eventId:n,eventType:e,response:null});var r=[];G(i,function(e){r.push(Ne().then(function(){return e(t.origin,t.data.data)}))}),Ce(r).then(function(i){var r=[];G(i,function(t){r.push({fulfilled:t.Qb,value:t.value,reason:t.reason?t.reason.message:void 0})}),G(r,function(t){for(var e in t)void 0===t[e]&&delete t[e]}),t.ports[0].postMessage({status:"done",eventId:n,eventType:e,response:r})})}},wu.prototype.postMessage=function(t,e){this.a.postMessage(t,e)},Iu.prototype.close=function(){for(;0<this.a.length;)Eu(this,this.a[0]);this.b=!0},(t=Au.prototype).set=function(t,e){var n=this,i=!1;return Nu(this,function(e){return Ru((e=Ou(Cu(e,!0))).get(t))}).then(function(r){return Nu(n,function(o){if(o=Ou(Cu(o,!0)),r)return r.value=e,Ru(o.put(r));n.b++,i=!0;var a={};return a.fbase_key=t,a.value=e,Ru(o.add(a))})}).then(function(){return n.c[t]=e,Pu(n,t)}).oa(function(){i&&n.b--})},t.get=function(t){return Nu(this,function(e){return Ru(Ou(Cu(e,!1)).get(t))}).then(function(t){return t&&t.value})},t.U=function(t){var e=this,n=!1;return Nu(this,function(i){return n=!0,e.b++,Ru(Ou(Cu(i,!0)).delete(t))}).then(function(){return delete e.c[t],Pu(e,t)}).oa(function(){n&&e.b--})},t.ca=function(t){0==this.a.length&&function(t){Lu(t),function e(){t.f=setTimeout(function(){t.l=Du(t).then(function(e){0<e.length&&G(t.a,function(t){t(e)})}).then(function(){e()}).o(function(t){"STOP_EVENT"!=t.message&&e()})},800)}()}(this),this.a.push(t)},t.ia=function(t){Y(this.a,function(e){return e==t}),0==this.a.length&&Lu(this)},(t=xu.prototype).get=function(t){return this.b.then(function(e){return e.get(t)})},t.set=function(t,e){return this.b.then(function(n){return n.set(t,e)})},t.U=function(t){return this.b.then(function(e){return e.U(t)})},t.ca=function(t){this.a.push(t)},t.ia=function(t){Y(this.a,function(e){return e==t})},(t=Mu.prototype).get=function(t){return Ne(this.a[t])},t.set=function(t,e){return this.a[t]=e,Ne()},t.U=function(t){return delete this.a[t],Ne()},t.ca=function(){},t.ia=function(){},(t=ju.prototype).get=function(t){var e=this;return Ne().then(function(){return ji(e.a.getItem(t))})},t.set=function(t,e){var n=this;return Ne().then(function(){var i=xi(e);null===i?n.U(t):n.a.setItem(t,i)})},t.U=function(t){var e=this;return Ne().then(function(){e.a.removeItem(t)})},t.ca=function(t){s.window&&cn(s.window,"storage",t)},t.ia=function(t){s.window&&fn(s.window,"storage",t)},(t=Vu.prototype).get=function(){return Ne(null)},t.set=function(){return Ne()},t.U=function(){return Ne()},t.ca=function(){},t.ia=function(){},(t=Fu.prototype).get=function(t){var e=this;return Ne().then(function(){return ji(e.a.getItem(t))})},t.set=function(t,e){var n=this;return Ne().then(function(){var i=xi(e);null===i?n.U(t):n.a.setItem(t,i)})},t.U=function(t){var e=this;return Ne().then(function(){e.a.removeItem(t)})},t.ca=function(){},t.ia=function(){};var Hu,Gu,Bu={F:ju,cb:Fu},Wu={F:ju,cb:Fu},Xu={F:vu,cb:Vu},Zu={F:ju,cb:Vu},Ju={rd:"local",NONE:"none",td:"session"};function Yu(){var t=!(Vi(_i())||!wi()),e=Li(),n=Ci();this.m=t,this.h=e,this.l=n,this.a={},Hu||(Hu=new qu),t=Hu;try{this.g=!ci()&&Gi()||!s.indexedDB?new t.a.F:new xu(Ii()?new Mu:new t.a.F)}catch(i){this.g=new Mu,this.h=!0}try{this.i=new t.a.cb}catch(i){this.i=new Mu}this.v=new Mu,this.f=I(this.Zb,this),this.b={}}function zu(){return Gu||(Gu=new Yu),Gu}function $u(t,e){switch(e){case"session":return t.i;case"none":return t.v;default:return t.g}}function Qu(t,e){return"firebase:"+t.name+(e?":"+e:"")}function tc(t,e,n){return n=Qu(e,n),"local"==e.F&&(t.b[n]=null),$u(t,e.F).U(n)}function ec(t){t.c&&(clearInterval(t.c),t.c=null)}function nc(t){this.a=t,this.b=zu()}(t=Yu.prototype).get=function(t,e){return $u(this,t.F).get(Qu(t,e))},t.set=function(t,e,n){var i=Qu(t,n),r=this,o=$u(this,t.F);return o.set(i,e).then(function(){return o.get(i)}).then(function(e){"local"==t.F&&(r.b[i]=e)})},t.addListener=function(t,e,n){t=Qu(t,e),this.l&&(this.b[t]=s.localStorage.getItem(t)),pt(this.a)&&($u(this,"local").ca(this.f),this.h||(ci()||!Gi())&&s.indexedDB||!this.l||function(t){ec(t),t.c=setInterval(function(){for(var e in t.a){var n=s.localStorage.getItem(e),i=t.b[e];n!=i&&(t.b[e]=n,n=new ze({type:"storage",key:e,target:window,oldValue:i,newValue:n,a:!0}),t.Zb(n))}},1e3)}(this)),this.a[t]||(this.a[t]=[]),this.a[t].push(n)},t.removeListener=function(t,e,n){t=Qu(t,e),this.a[t]&&(Y(this.a[t],function(t){return t==n}),0==this.a[t].length&&delete this.a[t]),pt(this.a)&&($u(this,"local").ia(this.f),ec(this))},t.Zb=function(t){if(t&&t.g){var e=t.a.key;if(null==e)for(var n in this.a){var i=this.b[n];void 0===i&&(i=null);var r=s.localStorage.getItem(n);r!==i&&(this.b[n]=r,this.nb(n))}else if(0==e.indexOf("firebase:")&&this.a[e]){if(void 0!==t.a.a?$u(this,"local").ia(this.f):ec(this),this.m)if(n=s.localStorage.getItem(e),(i=t.a.newValue)!==n)null!==i?s.localStorage.setItem(e,i):s.localStorage.removeItem(e);else if(this.b[e]===i&&void 0===t.a.a)return;var o=this;n=function(){(void 0!==t.a.a||o.b[e]!==s.localStorage.getItem(e))&&(o.b[e]=s.localStorage.getItem(e),o.nb(e))},Jt&&ae&&10==ae&&s.localStorage.getItem(e)!==t.a.newValue&&t.a.newValue!==t.a.oldValue?setTimeout(n,10):n()}}else G(t,I(this.nb,this))},t.nb=function(t){this.a[t]&&G(this.a[t],function(t){t()})};var ic,rc={name:"authEvent",F:"local"};function oc(){this.a=zu()}function ac(t,e){this.b=sc,this.f=s.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=t,this.h=e,this.l=s.Int32Array?new Int32Array(64):Array(64),void 0===ic&&(ic=s.Int32Array?new Int32Array(pc):pc),this.reset()}A(ac,function(){this.b=-1});for(var sc=64,uc=sc-1,cc=[],hc=0;hc<uc;hc++)cc[hc]=0;var lc=z(128,cc);function fc(t){for(var e=t.f,n=t.l,i=0,r=0;r<e.length;)n[i++]=e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3],r=4*i;for(e=16;64>e;e++){var o=(0|n[e-16])+(((r=0|n[e-15])>>>7|r<<25)^(r>>>18|r<<14)^r>>>3)|0,a=(0|n[e-7])+(((i=0|n[e-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10)|0;n[e]=o+a|0}i=0|t.a[0],r=0|t.a[1];var s=0|t.a[2],u=0|t.a[3],c=0|t.a[4],h=0|t.a[5],l=0|t.a[6];for(o=0|t.a[7],e=0;64>e;e++){var f=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&r^i&s^r&s)|0;a=(o=o+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))|0)+((a=(a=c&h^~c&l)+(0|ic[e])|0)+(0|n[e])|0)|0,o=l,l=h,h=c,c=u+a|0,u=s,s=r,r=i,i=a+f|0}t.a[0]=t.a[0]+i|0,t.a[1]=t.a[1]+r|0,t.a[2]=t.a[2]+s|0,t.a[3]=t.a[3]+u|0,t.a[4]=t.a[4]+c|0,t.a[5]=t.a[5]+h|0,t.a[6]=t.a[6]+l|0,t.a[7]=t.a[7]+o|0}function dc(t,e,n){void 0===n&&(n=e.length);var i=0,r=t.c;if("string"==typeof e)for(;i<n;)t.f[r++]=e.charCodeAt(i++),r==t.b&&(fc(t),r=0);else{if(!d(e))throw Error("message must be string or array");for(;i<n;){var o=e[i++];if(!("number"==typeof o&&0<=o&&255>=o&&o==(0|o)))throw Error("message must be a byte array");t.f[r++]=o,r==t.b&&(fc(t),r=0)}}t.c=r,t.g+=n}ac.prototype.reset=function(){this.g=this.c=0,this.a=s.Int32Array?new Int32Array(this.h):$(this.h)};var pc=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function vc(){ac.call(this,8,mc)}A(vc,ac);var mc=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function gc(t,e,n,i,r,o){this.v=t,this.i=e,this.l=n,this.m=i||null,this.u=r||null,this.s=o,this.h=e+":"+n,this.C=new oc,this.g=new nc(this.h),this.f=null,this.b=[],this.a=this.c=null}function bc(t){return new S("invalid-cordova-configuration",t)}function yc(t,e){for(var n=0;n<t.b.length;n++)try{t.b[n](e)}catch(i){}}function wc(t){return t.f||(t.f=t.ma().then(function(){return new we(function(e){t.Ea(function n(i){return e(i),t.Ta(n),!1}),function(t){function e(e){i=!0,r&&r.cancel(),Ic(t).then(function(i){var r=n;if(i&&e&&e.url){var o=null;-1!=(r=io(e.url)).indexOf("/__/auth/callback")&&(o=(o="object"==typeof(o=ji(Un(o=Vn(r),"firebaseError")||null))?N(o):null)?new Vo(i.c,i.b,null,null,o,null,i.T()):new Vo(i.c,i.b,r,i.f,null,null,i.T())),r=o||n}yc(t,r)})}var n=new Vo("unknown",null,null,null,new S("no-auth-event")),i=!1,r=Sn(500).then(function(){return Ic(t).then(function(){i||yc(t,n)})}),o=s.handleOpenURL;s.handleOpenURL=function(t){if(0==t.toLowerCase().indexOf(Oi("BuildInfo.packageName",s).toLowerCase()+"://")&&e({url:t}),"function"==typeof o)try{o(t)}catch(n){console.error(n)}},Ho||(Ho=new Ko),function(t){var e=Ho;e.a.push(t),e.b||(e.b=function(t){for(var n=0;n<e.a.length;n++)e.a[n](t)},"function"==typeof(t=Oi("universalLinks.subscribe",s))&&t(null,e.b))}(e)}(t)})})),t.f}function Ic(t){var e=null;return function(t){return t.b.get(rc,t.a).then(function(t){return Fo(t)})}(t.g).then(function(n){return e=n,tc((n=t.g).b,rc,n.a)}).then(function(){return e})}function Tc(t){this.a=t,this.b=zu()}(t=gc.prototype).ma=function(){return this.Ia?this.Ia:this.Ia=(yi(void 0)?bi().then(function(){return new we(function(t,e){var n=s.document,i=setTimeout(function(){e(Error("Cordova framework is not ready."))},1e3);n.addEventListener("deviceready",function(){clearTimeout(i),t()},!1)})}):_e(Error("Cordova must run in an Android or iOS file scheme."))).then(function(){if("function"!=typeof Oi("universalLinks.subscribe",s))throw bc("cordova-universal-links-plugin-fix is not installed");if(void 0===Oi("BuildInfo.packageName",s))throw bc("cordova-plugin-buildinfo is not installed");if("function"!=typeof Oi("cordova.plugins.browsertab.openUrl",s))throw bc("cordova-plugin-browsertab is not installed");if("function"!=typeof Oi("cordova.InAppBrowser.open",s))throw bc("cordova-plugin-inappbrowser is not installed")},function(){throw new S("cordova-not-ready")})},t.Pb=function(t,e){return e(new S("operation-not-supported-in-this-environment")),Ne()},t.Nb=function(){return _e(new S("operation-not-supported-in-this-environment"))},t.ac=function(){return!1},t.Yb=function(){return!0},t.Ub=function(){return!0},t.Ob=function(t,e,n,i){if(this.c)return _e(new S("redirect-operation-pending"));var r=this,o=s.document,a=null,u=null,c=null,h=null;return this.c=Ne().then(function(){return Uo(e),wc(r)}).then(function(){return function(t,e,n,i,r){var o=function(){for(var t=20,e=[];0<t;)e.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return e.join("")}(),a=new Vo(e,i,null,o,new S("no-auth-event"),null,r),u=Oi("BuildInfo.packageName",s);if("string"!=typeof u)throw new S("invalid-cordova-configuration");var c=Oi("BuildInfo.displayName",s),h={};if(_i().toLowerCase().match(/iphone|ipad|ipod/))h.ibi=u;else{if(!_i().toLowerCase().match(/android/))return _e(new S("operation-not-supported-in-this-environment"));h.apn=u}c&&(h.appDisplayName=c),o=function(t){var e=new vc;dc(e,t),t=[];var n=8*e.g;dc(e,lc,56>e.c?56-e.c:e.b-(e.c-56));for(var i=63;56<=i;i--)e.f[i]=255&n,n/=256;for(fc(e),i=n=0;i<e.i;i++)for(var r=24;0<=r;r-=8)t[n++]=e.a[i]>>r&255;return function(t){return W(t,function(t){return 1<(t=t.toString(16)).length?t:"0"+t}).join("")}(t)}(o),h.sessionId=o;var l=pu(t.v,t.i,t.l,e,n,null,i,t.m,h,t.u,r,t.s);return t.ma().then(function(){var e=t.h;return t.C.a.set(rc,a.w(),e)}).then(function(){var e=Oi("cordova.plugins.browsertab.isAvailable",s);if("function"!=typeof e)throw new S("invalid-cordova-configuration");var n=null;e(function(e){if(e){if("function"!=typeof(n=Oi("cordova.plugins.browsertab.openUrl",s)))throw new S("invalid-cordova-configuration");n(l)}else{if("function"!=typeof(n=Oi("cordova.InAppBrowser.open",s)))throw new S("invalid-cordova-configuration");e=_i(),t.a=n(l,e.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||e.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}})})}(r,t,e,n,i)}).then(function(){return new we(function(t,e){u=function(){var e=Oi("cordova.plugins.browsertab.close",s);return t(),"function"==typeof e&&e(),r.a&&"function"==typeof r.a.close&&(r.a.close(),r.a=null),!1},r.Ea(u),h=function(){qi()&&c()},o.addEventListener("resume",c=function(){a||(a=Sn(2e3).then(function(){e(new S("redirect-cancelled-by-user"))}))},!1),_i().toLowerCase().match(/android/)||o.addEventListener("visibilitychange",h,!1)}).o(function(t){return Ic(r).then(function(){throw t})})}).oa(function(){c&&o.removeEventListener("resume",c,!1),h&&o.removeEventListener("visibilitychange",h,!1),a&&a.cancel(),u&&r.Ta(u),r.c=null})},t.Ea=function(t){this.b.push(t),wc(this).o(function(e){"auth/invalid-cordova-configuration"===e.code&&(e=new Vo("unknown",null,null,null,new S("no-auth-event")),t(e))})},t.Ta=function(t){Y(this.b,function(e){return e==t})};var Ec={name:"pendingRedirect",F:"session"};function Ac(t){return tc(t.b,Ec,t.a)}function kc(t,e,n,i){this.i={},this.u=0,this.D=t,this.v=e,this.m=n,this.J=i,this.h=[],this.f=!1,this.l=I(this.s,this),this.b=new Fc,this.C=new Bc,this.g=new Tc(Uc(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=Sc(this.D,this.v,this.m,_,this.J)}function Sc(t,e,n,r,o){var a=i.Z.SDK_VERSION||null;return yi()?new gc(t,e,n,a,r,o):new hu(t,e,n,a,r,o)}function Nc(t){t.f||(t.f=!0,t.a.Ea(t.l));var e=t.a;return t.a.ma().o(function(n){throw t.a==e&&t.reset(),n})}function _c(t){t.a.Yb()&&Nc(t).o(function(e){var n=new Vo("unknown",null,null,null,new S("operation-not-supported-in-this-environment"));Lc(e)&&t.s(n)}),t.a.Ub()||Kc(t.b)}function Oc(t,e){Z(t.h,e)||t.h.push(e),t.f||function(t){return t.b.get(Ec,t.a).then(function(t){return"pending"==t})}(t.g).then(function(e){e?Ac(t.g).then(function(){Nc(t).o(function(e){var n=new Vo("unknown",null,null,null,new S("operation-not-supported-in-this-environment"));Lc(e)&&t.s(n)})}):_c(t)}).o(function(){_c(t)})}function Cc(t,e){Y(t.h,function(t){return t==e})}kc.prototype.reset=function(){this.f=!1,this.a.Ta(this.l),this.a=Sc(this.D,this.v,this.m,null,this.J),this.i={}},kc.prototype.s=function(t){if(!t)throw new S("invalid-auth-event");if(6e5<=Date.now()-this.u&&(this.i={},this.u=0),t&&t.getUid()&&this.i.hasOwnProperty(t.getUid()))return!1;for(var e=!1,n=0;n<this.h.length;n++){var i=this.h[n];if(i.Gb(t.c,t.b)){(e=this.c[t.c])&&(e.h(t,i),t&&(t.f||t.b)&&(this.i[t.getUid()]=!0,this.u=Date.now())),e=!0;break}}return Kc(this.b),e};var Rc=new Ki(2e3,1e4),Pc=new Ki(3e4,6e4);function Dc(t,e,n,i,r,o,a){return t.a.Nb(e,n,i,function(){t.f||(t.f=!0,t.a.Ea(t.l))},function(){t.reset()},r,o,a)}function Lc(t){return!(!t||"auth/cordova-not-ready"!=t.code)}function xc(t,e,n,i,r){var o;return function(t){return t.b.set(Ec,"pending",t.a)}(t.g).then(function(){return t.a.Ob(e,n,i,r).o(function(e){if(Lc(e))throw new S("operation-not-supported-in-this-environment");return o=e,Ac(t.g).then(function(){throw o})}).then(function(){return t.a.ac()?new we(function(){}):Ac(t.g).then(function(){return t.ra()}).then(function(){}).o(function(){})})})}function Mc(t,e,n,i,r){return t.a.Pb(i,function(t){e.na(n,null,t,r)},Rc.get())}kc.prototype.ra=function(){return this.b.ra()};var jc={};function Uc(t,e,n){return t=t+":"+e,n&&(t=t+":"+n.url),t}function Vc(t,e,n,i){var r=Uc(e,n,i);return jc[r]||(jc[r]=new kc(t,e,n,i)),jc[r]}function Fc(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function Kc(t){t.g||(t.g=!0,Gc(t,!1,null,null))}function qc(t){t.g&&!t.i&&Gc(t,!1,null,null)}function Hc(t,e){if(t.b=function(){return Ne(e)},t.f.length)for(var n=0;n<t.f.length;n++)t.f[n](e)}function Gc(t,e,n,i){e?i?function(t,e){if(t.b=function(){return _e(e)},t.c.length)for(var n=0;n<t.c.length;n++)t.c[n](e)}(t,i):Hc(t,n):Hc(t,{user:null}),t.f=[],t.c=[]}function Bc(){}function Wc(){this.jb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.jb},set:function(t){this.jb=t},enumerable:!1})}function Xc(t,e){this.a=e,Ji(this,"verificationId",t)}function Zc(t,e,n,i){return new xo(t).gb(e,n).then(function(t){return new Xc(t,i)})}function Jc(t){var e=Hr(t);if(!(e&&e.exp&&e.auth_time&&e.iat))throw new S("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");Yi(this,{token:t,expirationTime:Hi(1e3*e.exp),authTime:Hi(1e3*e.auth_time),issuedAtTime:Hi(1e3*e.iat),signInProvider:e.firebase&&e.firebase.sign_in_provider?e.firebase.sign_in_provider:null,signInSecondFactor:e.firebase&&e.firebase.sign_in_second_factor?e.firebase.sign_in_second_factor:null,claims:e})}function Yc(t,e,n){var i=e&&e[$c];if(!i)throw new S("argument-error","Internal assert: Invalid MultiFactorResolver");this.a=t,this.f=vt(e),this.g=n,this.c=new ro(null,i),this.b=[];var r=this;G(e[zc]||[],function(t){(t=tr(t))&&r.b.push(t)}),Ji(this,"auth",this.a),Ji(this,"session",this.c),Ji(this,"hints",this.b)}Fc.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},Fc.prototype.h=function(t,e){if(t){this.reset(),this.g=!0;var n=t.c,i=t.b,r=t.a&&"auth/web-storage-unsupported"==t.a.code,o=t.a&&"auth/operation-not-supported-in-this-environment"==t.a.code;this.i=!(!r&&!o),"unknown"!=n||r||o?t.a?(Gc(this,!0,null,t.a),Ne()):e.Fa(n,i)?function(t,e,n){n=n.Fa(e.c,e.b);var i=e.g,r=e.f,o=e.i,a=e.T(),s=!!e.c.match(/Redirect$/);n(i,r,a,o).then(function(e){Gc(t,s,e,null)}).o(function(e){Gc(t,s,null,e)})}(this,t,e):_e(new S("invalid-auth-event")):(Gc(this,!1,null,null),Ne())}else _e(new S("invalid-auth-event"))},Fc.prototype.ra=function(){var t=this;return new we(function(e,n){t.b?t.b().then(e,n):(t.f.push(e),t.c.push(n),function(t){var e=new S("timeout");t.a&&t.a.cancel(),t.a=Sn(Pc.get()).then(function(){t.b||(t.g=!0,Gc(t,!0,null,e))})}(t))})},Bc.prototype.h=function(t,e){if(t){var n=t.c,i=t.b;t.a?(e.na(t.c,null,t.a,t.b),Ne()):e.Fa(n,i)?function(t,e){var n=t.b,i=t.c;e.Fa(i,n)(t.g,t.f,t.T(),t.i).then(function(t){e.na(i,t,null,n)}).o(function(t){e.na(i,null,t,n)})}(t,e):_e(new S("invalid-auth-event"))}else _e(new S("invalid-auth-event"))},Xc.prototype.confirm=function(t){return t=Mo(this.verificationId,t),this.a(t)};var zc="mfaInfo",$c="mfaPendingCredential";function Qc(t,e,n,i){S.call(this,"multi-factor-auth-required",i,e),this.b=new Yc(t,e,n),Ji(this,"resolver",this.b)}function th(t,e,n){if(t&&v(t.serverResponse)&&"auth/multi-factor-auth-required"===t.code)try{return new Qc(e,t.serverResponse,n,t.message)}catch(i){}return null}function eh(){}function nh(t){Ji(this,"factorId",t.fa),this.a=t}function ih(t){if(nh.call(this,t),this.a.fa!=xo.PROVIDER_ID)throw new S("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential")}function rh(t,e){for(var n in Ye.call(this,t),e)this[n]=e[n]}function oh(t,e){this.a=t,this.b=[],this.c=I(this.yc,this),cn(this.a,"userReloaded",this.c);var n=[];e&&e.multiFactor&&e.multiFactor.enrolledFactors&&G(e.multiFactor.enrolledFactors,function(t){var e=null,i={};if(t){t.uid&&(i[ir]=t.uid),t.displayName&&(i[er]=t.displayName),t.enrollmentTime&&(i[nr]=new Date(t.enrollmentTime).toISOString()),t.phoneNumber&&(i[rr]=t.phoneNumber);try{e=new or(i)}catch(r){}t=e}else t=null;t&&n.push(t)}),ah(this,n)}function ah(t,e){t.b=e,Ji(t,"enrolledFactors",e)}function sh(t,e,n){if(this.h=t,this.i=e,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 uh(t,e){t.stop(),t.b=Sn(function(t,e){return e?(t.a=t.c,t.g()):(e=t.a,t.a*=2,t.a>t.f&&(t.a=t.f),e)}(t,e)).then(function(){return function(){var t=s.document,e=null;return qi()||!t?Ne():new we(function(n){e=function(){qi()&&(t.removeEventListener("visibilitychange",e,!1),n())},t.addEventListener("visibilitychange",e,!1)}).o(function(n){throw t.removeEventListener("visibilitychange",e,!1),n})}()}).then(function(){return t.h()}).then(function(){uh(t,!0)}).o(function(e){t.i(e)&&uh(t,!1)})}function ch(t){this.f=t,this.b=this.a=null,this.c=Date.now()}function hh(t,e){void 0===e&&(e=t.b?(e=t.b).a-e.g:0),t.c=Date.now()+1e3*e}function lh(t,e){t.b=qr(e[Ja]||""),t.a=e.refreshToken,hh(t,void 0!==(e=e.expiresIn)?Number(e):void 0)}function fh(t,e){this.a=t||null,this.b=e||null,Yi(this,{lastSignInTime:Hi(e||null),creationTime:Hi(t||null)})}function dh(t,e,n,i,r,o){Yi(this,{uid:t,displayName:i||null,photoURL:r||null,email:n||null,phoneNumber:o||null,providerId:e})}function ph(t,e,n){this.N=[],this.l=t.apiKey,this.m=t.appName,this.s=t.authDomain||null;var r=i.Z.SDK_VERSION?Ni(i.Z.SDK_VERSION):null;this.a=new Xa(this.l,P(_),r),(this.u=t.emulatorConfig||null)&&es(this.a,this.u),this.h=new ch(this.a),Eh(this,e[Ja]),lh(this.h,e),Ji(this,"refreshToken",this.h.a),Sh(this,n||{}),In.call(this),this.P=!1,this.s&&Ri()&&(this.b=Vc(this.s,this.l,this.m,this.u)),this.W=[],this.i=null,this.D=function(t){return new sh(function(){return t.I(!0)},function(t){return!(!t||"auth/network-request-failed"!=t.code)},function(){var e=t.h.c-Date.now()-3e5;return 0<e?e:0})}(this),this.ba=I(this.ib,this);var o=this;this.za=null,this.Pa=function(t){o.xa(t.h)},this.qa=null,this.Ba=function(t){vh(o,t.c)},this.$=null,this.aa=[],this.Oa=function(t){bh(o,t.f)},this.ja=null,this.S=new oh(this,n),Ji(this,"multiFactor",this.S)}function vh(t,e){t.u=e,es(t.a,e),t.b&&(e=t.b,t.b=Vc(t.s,t.l,t.m,t.u),t.P&&(Cc(e,t),Oc(t.b,t)))}function mh(t,e){t.qa&&fn(t.qa,"languageCodeChanged",t.Pa),(t.qa=e)&&cn(e,"languageCodeChanged",t.Pa)}function gh(t,e){t.$&&fn(t.$,"emulatorConfigChanged",t.Ba),(t.$=e)&&cn(e,"emulatorConfigChanged",t.Ba)}function bh(t,e){t.aa=e,is(t.a,i.Z.SDK_VERSION?Ni(i.Z.SDK_VERSION,t.aa):null)}function yh(t,e){t.ja&&fn(t.ja,"frameworkChanged",t.Oa),(t.ja=e)&&cn(e,"frameworkChanged",t.Oa)}function wh(t){try{return i.Z.app(t.m).auth()}catch(e){throw new S("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+t.m+"'!")}}function Ih(t){t.J||t.D.b||(t.D.start(),fn(t,"tokenChanged",t.ba),cn(t,"tokenChanged",t.ba))}function Th(t){fn(t,"tokenChanged",t.ba),t.D.stop()}function Eh(t,e){t.Aa=e,Ji(t,"_lat",e)}function Ah(t){for(var e=[],n=0;n<t.W.length;n++)e.push(t.W[n](t));return Ce(e).then(function(){return t})}function kh(t){t.b&&!t.P&&(t.P=!0,Oc(t.b,t))}function Sh(t,e){Yi(t,{uid:e.uid,displayName:e.displayName||null,photoURL:e.photoURL||null,email:e.email||null,emailVerified:e.emailVerified||!1,phoneNumber:e.phoneNumber||null,isAnonymous:e.isAnonymous||!1,tenantId:e.tenantId||null,metadata:new fh(e.createdAt,e.lastLoginAt),providerData:[]}),t.a.b=t.tenantId}function Nh(){}function _h(t){return Ne().then(function(){if(t.J)throw new S("app-deleted")})}function Oh(t){return W(t.providerData,function(t){return t.providerId})}function Ch(t,e){e&&(Rh(t,e.providerId),t.providerData.push(e))}function Rh(t,e){Y(t.providerData,function(t){return t.providerId==e})}function Ph(t,e,n){("uid"!=e||n)&&t.hasOwnProperty(e)&&Ji(t,e,n)}function Dh(t,e){t!=e&&(Yi(t,{uid:e.uid,displayName:e.displayName,photoURL:e.photoURL,email:e.email,emailVerified:e.emailVerified,phoneNumber:e.phoneNumber,isAnonymous:e.isAnonymous,tenantId:e.tenantId,providerData:[]}),Ji(t,"metadata",e.metadata?function(t){return new fh(t.a,t.b)}(e.metadata):new fh),G(e.providerData,function(e){Ch(t,e)}),function(t,e){t.b=e.b,t.a=e.a,t.c=e.c}(t.h,e.h),Ji(t,"refreshToken",t.h.a),ah(t.S,e.S.b))}function Lh(t){return t.I().then(function(e){var n=t.isAnonymous;return function(t,e){return Qs(t.a,Cs,{idToken:e}).then(I(t.Kc,t))}(t,e).then(function(){return n||Ph(t,"isAnonymous",!1),e})})}function xh(t,e){e[Ja]&&t.Aa!=e[Ja]&&(lh(t.h,e),t.dispatchEvent(new rh("tokenChanged")),Eh(t,e[Ja]),Ph(t,"refreshToken",t.h.a))}function Mh(t,e){return Lh(t).then(function(){if(Z(Oh(t),e))return Ah(t).then(function(){throw new S("provider-already-linked")})})}function jh(t,e,n){return zi({user:t,credential:jo(e),additionalUserInfo:e=Zr(e),operationType:n})}function Uh(t,e){return xh(t,e),t.reload().then(function(){return t})}function Vh(t,e,n,r,o){if(!Ri())return _e(new S("operation-not-supported-in-this-environment"));if(t.i&&!o)return _e(t.i);var a=Xr(n.providerId),s=Ui(t.uid+":::"),u=null;(!Li()||wi())&&t.s&&n.isOAuthProvider&&(u=pu(t.s,t.l,t.m,e,n,null,s,i.Z.SDK_VERSION||null,null,null,t.tenantId,t.u));var c=vi(u,a&&a.va,a&&a.ua);return r=r().then(function(){if(Kh(t),!o)return t.I().then(function(){})}).then(function(){return Dc(t.b,c,e,n,s,!!u,t.tenantId)}).then(function(){return new we(function(n,i){t.na(e,null,new S("cancelled-popup-request"),t.g||null),t.f=n,t.C=i,t.g=s,t.c=Mc(t.b,t,e,c,s)})}).then(function(t){return c&&pi(c),t?zi(t):null}).o(function(t){throw c&&pi(c),t}),qh(t,r,o)}function Fh(t,e,n,i,r){if(!Ri())return _e(new S("operation-not-supported-in-this-environment"));if(t.i&&!r)return _e(t.i);var o=null,a=Ui(t.uid+":::");return i=i().then(function(){if(Kh(t),!r)return t.I().then(function(){})}).then(function(){return t.ga=a,Ah(t)}).then(function(e){return t.ha&&(e=(e=t.ha).b.set(Bh,t.w(),e.a)),e}).then(function(){return xc(t.b,e,n,a,t.tenantId)}).o(function(e){if(o=e,t.ha)return Wh(t.ha);throw o}).then(function(){if(o)throw o}),qh(t,i,r)}function Kh(t){if(!t.b||!t.P)throw new S(t.b&&!t.P?"internal-error":"auth-domain-config-required")}function qh(t,e,n){var i=function(t,e,n){return t.i&&!n?(e.cancel(),_e(t.i)):e.o(function(e){throw!e||"auth/user-disabled"!=e.code&&"auth/user-token-expired"!=e.code||(t.i||t.dispatchEvent(new rh("userInvalidated")),t.i=e),e})}(t,e,n);return t.N.push(i),i.oa(function(){J(t.N,i)}),i.o(function(e){var n=null;throw e&&"auth/multi-factor-auth-required"===e.code&&(n=th(e.w(),wh(t),I(t.jc,t))),n||e})}function Hh(t){if(!t.apiKey)return null;var e={apiKey:t.apiKey,authDomain:t.authDomain,appName:t.appName,emulatorConfig:t.emulatorConfig},n={};if(!t.stsTokenManager||!t.stsTokenManager.accessToken)return null;n[Ja]=t.stsTokenManager.accessToken,n.refreshToken=t.stsTokenManager.refreshToken||null;var i=t.stsTokenManager.expirationTime;i&&(n.expiresIn=(i-Date.now())/1e3);var r=new ph(e,n,t);return t.providerData&&G(t.providerData,function(t){t&&Ch(r,zi(t))}),t.redirectEventId&&(r.ga=t.redirectEventId),r}function Gh(t){this.a=t,this.b=zu()}Yc.prototype.Rc=function(t){var e=this;return t.tb(this.a.a,this.c).then(function(t){var n=vt(e.f);return delete n[zc],delete n[$c],gt(n,t),e.g(n)})},A(Qc,S),eh.prototype.tb=function(t,e,n){return e.type==oo?function(t,e,n,i){return n.Ha().then(function(n){return n={idToken:n},void 0!==i&&(n.displayName=i),gt(n,{phoneVerificationInfo:Lo(t.a)}),Qs(e,_s,n)})}(this,t,e,n):function(t,e,n){return n.Ha().then(function(n){return gt(n={mfaPendingCredential:n},{phoneVerificationInfo:Lo(t.a)}),Qs(e,Os,n)})}(this,t,e)},A(nh,eh),A(ih,nh),A(rh,Ye),(t=oh.prototype).yc=function(t){ah(this,function(t){var e=[];return G(t.mfaInfo||[],function(t){(t=tr(t))&&e.push(t)}),e}(t.hd))},t.Sb=function(){return this.a.I().then(function(t){return new ro(t,null)})},t.fc=function(t,e){var n=this,i=this.a.a;return this.Sb().then(function(n){return t.tb(i,n,e)}).then(function(t){return xh(n.a,t),n.a.reload()})},t.bd=function(t){var e=this,n="string"==typeof t?t:t.uid,i=this.a.a;return this.a.I().then(function(t){return Qs(i,$s,{idToken:t,mfaEnrollmentId:n})}).then(function(t){var i=B(e.b,function(t){return t.uid!=n});return ah(e,i),xh(e.a,t),e.a.reload().o(function(t){if("auth/user-token-expired"!=t.code)throw t})})},t.w=function(){return{multiFactor:{enrolledFactors:W(this.b,function(t){return t.w()})}}},sh.prototype.start=function(){this.a=this.c,uh(this,!0)},sh.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},ch.prototype.w=function(){return{apiKey:this.f.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:this.c}},ch.prototype.getToken=function(t){return t=!!t,this.b&&!this.a?_e(new S("user-token-expired")):t||!this.b||Date.now()>this.c-3e4?this.a?function(t,e){return function(t,e){return new we(function(n,i){"refresh_token"==e.grant_type&&e.refresh_token||"authorization_code"==e.grant_type&&e.code?rs(t,t.l+"?key="+encodeURIComponent(t.c),function(t){t?t.error?i(eu(t)):t.access_token&&t.refresh_token?n(t):i(new S("internal-error")):i(new S("network-request-failed"))},"POST",zn(e).toString(),t.g,t.m.get()):i(new S("internal-error"))})}(t.f,e).then(function(e){return t.b=qr(e.access_token),t.a=e.refresh_token,hh(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})}(this,{grant_type:"refresh_token",refresh_token:this.a}):Ne(null):Ne({accessToken:this.b.toString(),refreshToken:this.a})},fh.prototype.w=function(){return{lastLoginAt:this.b,createdAt:this.a}},A(ph,In),ph.prototype.xa=function(t){this.za=t,ts(this.a,t)},ph.prototype.la=function(){return this.za},ph.prototype.Ga=function(){return $(this.aa)},ph.prototype.ib=function(){this.D.b&&(this.D.stop(),this.D.start())},Ji(ph.prototype,"providerId","firebase"),(t=ph.prototype).reload=function(){var t=this;return qh(this,_h(this).then(function(){return Lh(t).then(function(){return Ah(t)}).then(Nh)}))},t.oc=function(t){return this.I(t).then(function(t){return new Jc(t)})},t.I=function(t){var e=this;return qh(this,_h(this).then(function(){return e.h.getToken(t)}).then(function(t){if(!t)throw new S("internal-error");return t.accessToken!=e.Aa&&(Eh(e,t.accessToken),e.dispatchEvent(new rh("tokenChanged"))),Ph(e,"refreshToken",t.refreshToken),t.accessToken}))},t.Kc=function(t){if(!(t=t.users)||!t.length)throw new S("internal-error");Sh(this,{uid:(t=t[0]).localId,displayName:t.displayName,photoURL:t.photoUrl,email:t.email,emailVerified:!!t.emailVerified,phoneNumber:t.phoneNumber,lastLoginAt:t.lastLoginAt,createdAt:t.createdAt,tenantId:t.tenantId});for(var e=function(t){return(t=t.providerUserInfo)&&t.length?W(t,function(t){return new dh(t.rawId,t.providerId,t.email,t.displayName,t.photoUrl,t.phoneNumber)}):[]}(t),n=0;n<e.length;n++)Ch(this,e[n]);Ph(this,"isAnonymous",!(this.email&&t.passwordHash||this.providerData&&this.providerData.length)),this.dispatchEvent(new rh("userReloaded",{hd:t}))},t.Lc=function(t){return Xi("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.ub(t)},t.ub=function(t){var e=this,n=null;return qh(this,t.c(this.a,this.uid).then(function(t){return xh(e,t),n=jh(e,t,"reauthenticate"),e.i=null,e.reload()}).then(function(){return n}),!0)},t.Cc=function(t){return Xi("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.rb(t)},t.rb=function(t){var e=this,n=null;return qh(this,Mh(this,t.providerId).then(function(){return e.I()}).then(function(n){return t.b(e.a,n)}).then(function(t){return n=jh(e,t,"link"),Uh(e,t)}).then(function(){return n}))},t.Dc=function(t,e){var n=this;return qh(this,Mh(this,"phone").then(function(){return Zc(wh(n),t,e,I(n.rb,n))}))},t.Mc=function(t,e){var n=this;return qh(this,Ne().then(function(){return Zc(wh(n),t,e,I(n.ub,n))}),!0)},t.Cb=function(t){var e=this;return qh(this,this.I().then(function(n){return e.a.Cb(n,t)}).then(function(t){return xh(e,t),e.reload()}))},t.ed=function(t){var e=this;return qh(this,this.I().then(function(n){return t.b(e.a,n)}).then(function(t){return xh(e,t),e.reload()}))},t.Db=function(t){var e=this;return qh(this,this.I().then(function(n){return e.a.Db(n,t)}).then(function(t){return xh(e,t),e.reload()}))},t.Eb=function(t){if(void 0===t.displayName&&void 0===t.photoURL)return _h(this);var e=this;return qh(this,this.I().then(function(n){return e.a.Eb(n,{displayName:t.displayName,photoUrl:t.photoURL})}).then(function(t){return xh(e,t),Ph(e,"displayName",t.displayName||null),Ph(e,"photoURL",t.photoUrl||null),G(e.providerData,function(t){"password"===t.providerId&&(Ji(t,"displayName",e.displayName),Ji(t,"photoURL",e.photoURL))}),Ah(e)}).then(Nh))},t.cd=function(t){var e=this;return qh(this,Lh(this).then(function(n){return Z(Oh(e),t)?function(t,e,n){return Qs(t,ks,{idToken:e,deleteProvider:n})}(e.a,n,[t]).then(function(t){var n={};return G(t.providerUserInfo||[],function(t){n[t.providerId]=!0}),G(Oh(e),function(t){n[t]||Rh(e,t)}),n[xo.PROVIDER_ID]||Ji(e,"phoneNumber",null),Ah(e)}):Ah(e).then(function(){throw new S("no-such-provider")})}))},t.delete=function(){var t=this;return qh(this,this.I().then(function(e){return Qs(t.a,As,{idToken:e})}).then(function(){t.dispatchEvent(new rh("userDeleted"))})).then(function(){for(var e=0;e<t.N.length;e++)t.N[e].cancel("app-deleted");mh(t,null),gh(t,null),yh(t,null),t.N=[],t.J=!0,Th(t),Ji(t,"refreshToken",null),t.b&&Cc(t.b,t)})},t.Gb=function(t,e){return!!("linkViaPopup"==t&&(this.g||null)==e&&this.f||"reauthViaPopup"==t&&(this.g||null)==e&&this.f||"linkViaRedirect"==t&&(this.ga||null)==e||"reauthViaRedirect"==t&&(this.ga||null)==e)},t.na=function(t,e,n,i){"linkViaPopup"!=t&&"reauthViaPopup"!=t||i!=(this.g||null)||(n&&this.C?this.C(n):e&&!n&&this.f&&this.f(e),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.C)},t.Fa=function(t,e){return"linkViaPopup"==t&&e==(this.g||null)?I(this.Lb,this):"reauthViaPopup"==t&&e==(this.g||null)?I(this.Mb,this):"linkViaRedirect"==t&&(this.ga||null)==e?I(this.Lb,this):"reauthViaRedirect"==t&&(this.ga||null)==e?I(this.Mb,this):null},t.Ec=function(t){var e=this;return Vh(this,"linkViaPopup",t,function(){return Mh(e,t.providerId).then(function(){return Ah(e)})},!1)},t.Nc=function(t){return Vh(this,"reauthViaPopup",t,function(){return Ne()},!0)},t.Fc=function(t){var e=this;return Fh(this,"linkViaRedirect",t,function(){return Mh(e,t.providerId)},!1)},t.Oc=function(t){return Fh(this,"reauthViaRedirect",t,function(){return Ne()},!0)},t.Lb=function(t,e,n,i){var r=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return qh(this,this.I().then(function(n){return gs(r.a,{requestUri:t,postBody:i,sessionId:e,idToken:n})}).then(function(t){return o=jh(r,t,"link"),Uh(r,t)}).then(function(){return o}))},t.Mb=function(t,e,n,i){var r=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return qh(this,Ne().then(function(){return uo(bs(r.a,{requestUri:t,sessionId:e,postBody:i,tenantId:n}),r.uid)}).then(function(t){return o=jh(r,t,"reauthenticate"),xh(r,t),r.i=null,r.reload()}).then(function(){return o}),!0)},t.vb=function(t){var e=this,n=null;return qh(this,this.I().then(function(e){return n=e,void 0===t||pt(t)?{}:Vr(new Or(t))}).then(function(t){return e.a.vb(n,t)}).then(function(t){if(e.email!=t)return e.reload()}).then(function(){}))},t.Fb=function(t,e){var n=this,i=null;return qh(this,this.I().then(function(t){return i=t,void 0===e||pt(e)?{}:Vr(new Or(e))}).then(function(e){return n.a.Fb(i,t,e)}).then(function(t){if(n.email!=t)return n.reload()}).then(function(){}))},t.jc=function(t){var e=null,n=this;return qh(this,t=uo(Ne(t),n.uid).then(function(t){return e=jh(n,t,"reauthenticate"),xh(n,t),n.i=null,n.reload()}).then(function(){return e}),!0)},t.toJSON=function(){return this.w()},t.w=function(){var t={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&&gt(t,this.metadata.w()),G(this.providerData,function(e){t.providerData.push(function(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}(e))}),gt(t,this.S.w()),t};var Bh={name:"redirectUser",F:"session"};function Wh(t){return tc(t.b,Bh,t.a)}function Xh(t){this.a=t,this.b=zu(),this.c=null,this.f=function(t){var e=Yh("local"),n=Yh("session"),i=Yh("none");return function(t,e,n){var i=Qu(e,n),r=$u(t,e.F);return t.get(e,n).then(function(o){var a=null;try{a=ji(s.localStorage.getItem(i))}catch(u){}if(a&&!o)return s.localStorage.removeItem(i),t.set(e,a,n);a&&o&&"localStorage"!=r.type&&s.localStorage.removeItem(i)})}(t.b,e,t.a).then(function(){return t.b.get(n,t.a)}).then(function(r){return r?n:t.b.get(i,t.a).then(function(n){return n?i:t.b.get(e,t.a).then(function(n){return n?e:t.b.get(Jh,t.a).then(function(t){return t?Yh(t):e})})})}).then(function(e){return t.c=e,Zh(t,e.F)}).o(function(){t.c||(t.c=e)})}(this),this.b.addListener(Yh("local"),this.a,I(this.g,this))}function Zh(t,e){var n,i=[];for(n in Ju)Ju[n]!==e&&i.push(tc(t.b,Yh(Ju[n]),t.a));return i.push(tc(t.b,Jh,t.a)),function(t){return new we(function(e,n){var i=t.length,r=[];if(i)for(var o=function(t,n){i--,r[t]=n,0==i&&e(r)},a=function(t){n(t)},s=0;s<t.length;s++)Oe(t[s],T(o,s),a);else e(r)})}(i)}Xh.prototype.g=function(){var t=this,e=Yh("local");tl(this,function(){return Ne().then(function(){return t.c&&"local"!=t.c.F?t.b.get(e,t.a):null}).then(function(n){if(n)return Zh(t,"local").then(function(){t.c=e})})})};var Jh={name:"persistence",F:"session"};function Yh(t){return{name:"authUser",F:t}}function zh(t,e){return tl(t,function(){return t.b.set(t.c,e.w(),t.a)})}function $h(t){return tl(t,function(){return tc(t.b,t.c,t.a)})}function Qh(t,e,n){return tl(t,function(){return t.b.get(t.c,t.a).then(function(t){return t&&e&&(t.authDomain=e),t&&n&&(t.emulatorConfig=n),Hh(t||{})})})}function tl(t,e){return t.f=t.f.then(e,e),t.f}function el(t){if(this.l=!1,Ji(this,"settings",new Wc),Ji(this,"app",t),!cl(this).options||!cl(this).options.apiKey)throw new S("invalid-api-key");t=i.Z.SDK_VERSION?Ni(i.Z.SDK_VERSION):null,this.a=new Xa(cl(this).options&&cl(this).options.apiKey,P(_),t),this.P=[],this.s=[],this.N=[],this.Pa=i.Z.INTERNAL.createSubscribe(I(this.zc,this)),this.W=void 0,this.ib=i.Z.INTERNAL.createSubscribe(I(this.Ac,this)),sl(this,null),this.i=new Xh(cl(this).options.apiKey+":"+cl(this).name),this.D=new Gh(cl(this).options.apiKey+":"+cl(this).name),this.$=dl(this,function(t){var e=cl(t).options.authDomain,n=function(t){var e=function(t,e){return t.b.get(Bh,t.a).then(function(t){return t&&e&&(t.authDomain=e),Hh(t||{})})}(t.D,cl(t).options.authDomain).then(function(e){return(t.m=e)&&(e.ha=t.D),Wh(t.D)});return dl(t,e)}(t).then(function(){return Qh(t.i,e,t.R)}).then(function(e){return e?(e.ha=t.D,t.m&&(t.m.ga||null)==(e.ga||null)?e:e.reload().then(function(){return zh(t.i,e).then(function(){return e})}).o(function(n){return"auth/network-request-failed"==n.code?e:$h(t.i)})):null}).then(function(e){sl(t,e||null)});return dl(t,n)}(this)),this.h=dl(this,function(t){return t.$.then(function(){return al(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(Yh("local"),e.a,t.ja)}})}(this)),this.ba=!1,this.ja=I(this.Zc,this),this.Ba=I(this.da,this),this.qa=I(this.mc,this),this.za=I(this.wc,this),this.Aa=I(this.xc,this),this.b=null,function(t){var e=cl(t).options.authDomain,n=cl(t).options.apiKey;e&&Ri()&&(t.Oa=t.$.then(function(){if(!t.l){if(t.b=Vc(e,n,cl(t).name,t.R),Oc(t.b,t),hl(t)&&kh(hl(t)),t.m){kh(t.m);var i=t.m;i.xa(t.la()),mh(i,t),bh(i=t.m,t.J),yh(i,t),vh(i=t.m,t.R),gh(i,t),t.m=null}return t.b}}))}(this),this.INTERNAL={},this.INTERNAL.delete=I(this.delete,this),this.INTERNAL.logFramework=I(this.Gc,this),this.u=0,In.call(this),function(t){Object.defineProperty(t,"lc",{get:function(){return this.la()},set:function(t){this.xa(t)},enumerable:!1}),t.aa=null,Object.defineProperty(t,"ti",{get:function(){return this.T()},set:function(t){this.zb(t)},enumerable:!1}),t.S=null,Object.defineProperty(t,"emulatorConfig",{get:function(){if(this.R){var t=Vn(this.R.url);t=zi({protocol:t.c,host:t.a,port:t.g,options:zi({disableWarnings:this.R.ec})})}else t=null;return t},enumerable:!1})}(this),this.J=[],this.R=null}function nl(t){Ye.call(this,"languageCodeChanged"),this.h=t}function il(t){Ye.call(this,"emulatorConfigChanged"),this.c=t}function rl(t){Ye.call(this,"frameworkChanged"),this.f=t}function ol(t){return t.Oa||_e(new S("auth-domain-config-required"))}function al(t){if(!Ri())return _e(new S("operation-not-supported-in-this-environment"));var e=ol(t).then(function(){return t.b.ra()}).then(function(t){return t?zi(t):null});return dl(t,e)}function sl(t,e){hl(t)&&(function(t,e){Y(t.W,function(t){return t==e})}(hl(t),t.Ba),fn(hl(t),"tokenChanged",t.qa),fn(hl(t),"userDeleted",t.za),fn(hl(t),"userInvalidated",t.Aa),Th(hl(t))),e&&(e.W.push(t.Ba),cn(e,"tokenChanged",t.qa),cn(e,"userDeleted",t.za),cn(e,"userInvalidated",t.Aa),0<t.u&&Ih(e)),Ji(t,"currentUser",e),e&&(e.xa(t.la()),mh(e,t),bh(e,t.J),yh(e,t),vh(e,t.R),gh(e,t))}function ul(t,e){var n=null,i=null;return dl(t,e.then(function(e){return n=jo(e),i=Zr(e),function(t,e){var n={};return n.apiKey=cl(t).options.apiKey,n.authDomain=cl(t).options.authDomain,n.appName=cl(t).name,t.R&&(n.emulatorConfig=t.R),t.$.then(function(){return function(t,e,n,i){var r=new ph(t,e);return n&&(r.ha=n),i&&bh(r,i),r.reload().then(function(){return r})}(n,e,t.D,t.Ga())}).then(function(e){return hl(t)&&e.uid==hl(t).uid?(Dh(hl(t),e),t.da(e)):(sl(t,e),kh(e),t.da(e))}).then(function(){fl(t)})}(t,e)},function(e){var n=null;throw e&&"auth/multi-factor-auth-required"===e.code&&(n=th(e.w(),t,I(t.kc,t))),n||e}).then(function(){return zi({user:hl(t),credential:n,additionalUserInfo:i,operationType:"signIn"})}))}function cl(t){return t.app}function hl(t){return t.currentUser}function ll(t){return hl(t)&&hl(t)._lat||null}function fl(t){if(t.ba){for(var e=0;e<t.s.length;e++)t.s[e]&&t.s[e](ll(t));if(t.W!==t.getUid()&&t.N.length)for(t.W=t.getUid(),e=0;e<t.N.length;e++)t.N[e]&&t.N[e](ll(t))}}function dl(t,e){return t.P.push(e),e.oa(function(){J(t.P,e)}),e}function pl(){}function vl(){this.a={},this.b=1e12}Xh.prototype.yb=function(t){var e=null,n=this;return function(t){var e=new S("invalid-persistence-type"),n=new S("unsupported-persistence-type");t:{for(i in Ju)if(Ju[i]==t){var i=!0;break t}i=!1}if(!i||"string"!=typeof t)throw e;switch(Ti()){case"ReactNative":if("session"===t)throw n;break;case"Node":if("none"!==t)throw n;break;case"Worker":if("session"===t||!_u()&&"none"!==t)throw n;break;default:if(!Ci()&&"none"!==t)throw n}}(t),tl(this,function(){return t!=n.c.F?n.b.get(n.c,n.a).then(function(i){return e=i,Zh(n,t)}).then(function(){if(n.c=Yh(t),e)return n.b.set(n.c,e,n.a)}):Ne()})},A(el,In),A(nl,Ye),A(il,Ye),A(rl,Ye),(t=el.prototype).yb=function(t){return dl(this,t=this.i.yb(t))},t.xa=function(t){this.aa===t||this.l||(this.aa=t,ts(this.a,this.aa),this.dispatchEvent(new nl(this.la())))},t.la=function(){return this.aa},t.fd=function(){var t=s.navigator;this.xa(t&&(t.languages&&t.languages[0]||t.language||t.userLanguage)||null)},t.gd=function(t,e){if(!this.R){if(!/^https?:\/\//.test(t))throw new S("argument-error","Emulator URL must start with a valid scheme (http:// or https://).");(function(t){"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."),s.document&&!t&&bi().then(function(){var t=s.document.createElement("div");t.innerText="Running in emulator mode. Do not use with production credentials.",t.style.position="fixed",t.style.width="100%",t.style.backgroundColor="#ffffff",t.style.border=".1em solid #000000",t.style.color="#b50000",t.style.bottom="0px",t.style.left="0px",t.style.margin="0px",t.style.zIndex=1e4,t.style.textAlign="center",t.classList.add("firebase-emulator-warning"),s.document.body.appendChild(t)})})(e=!!e&&!!e.disableWarnings),this.R={url:t,ec:e},this.settings.jb=!0,es(this.a,this.R),this.dispatchEvent(new il(this.R))}},t.Gc=function(t){this.J.push(t),is(this.a,i.Z.SDK_VERSION?Ni(i.Z.SDK_VERSION,this.J):null),this.dispatchEvent(new rl(this.J))},t.Ga=function(){return $(this.J)},t.zb=function(t){this.S===t||this.l||(this.S=t,this.a.b=this.S)},t.T=function(){return this.S},t.toJSON=function(){return{apiKey:cl(this).options.apiKey,authDomain:cl(this).options.authDomain,appName:cl(this).name,currentUser:hl(this)&&hl(this).w()}},t.Gb=function(t,e){switch(t){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.g==e&&!!this.f;default:return!1}},t.na=function(t,e,n,i){"signInViaPopup"==t&&this.g==i&&(n&&this.C?this.C(n):e&&!n&&this.f&&this.f(e),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.C)},t.Fa=function(t,e){return"signInViaRedirect"==t||"signInViaPopup"==t&&this.g==e&&this.f?I(this.ic,this):null},t.ic=function(t,e,n,i){var r=this,o={requestUri:t,postBody:i,sessionId:e,tenantId:n};return this.c&&(this.c.cancel(),this.c=null),r.$.then(function(){return ul(r,ms(r.a,o))})},t.Xc=function(t){if(!Ri())return _e(new S("operation-not-supported-in-this-environment"));var e=this,n=Xr(t.providerId),r=Ui(),o=null;(!Li()||wi())&&cl(this).options.authDomain&&t.isOAuthProvider&&(o=pu(cl(this).options.authDomain,cl(this).options.apiKey,cl(this).name,"signInViaPopup",t,null,r,i.Z.SDK_VERSION||null,null,null,this.T(),this.R));var a=vi(o,n&&n.va,n&&n.ua);return dl(this,n=ol(this).then(function(n){return Dc(n,a,"signInViaPopup",t,r,!!o,e.T())}).then(function(){return new we(function(t,n){e.na("signInViaPopup",null,new S("cancelled-popup-request"),e.g),e.f=t,e.C=n,e.g=r,e.c=Mc(e.b,e,"signInViaPopup",a,r)})}).then(function(t){return a&&pi(a),t?zi(t):null}).o(function(t){throw a&&pi(a),t}))},t.Yc=function(t){if(!Ri())return _e(new S("operation-not-supported-in-this-environment"));var e=this;return dl(this,ol(this).then(function(){return function(t){return tl(t,function(){return t.b.set(Jh,t.c.F,t.a)})}(e.i)}).then(function(){return xc(e.b,"signInViaRedirect",t,void 0,e.T())}))},t.ra=function(){var t=this;return al(this).then(function(e){return t.b&&qc(t.b.b),e}).o(function(e){throw t.b&&qc(t.b.b),e})},t.dd=function(t){if(!t)return _e(new S("null-user"));if(this.S!=t.tenantId)return _e(new S("tenant-id-mismatch"));var e=this,n={};n.apiKey=cl(this).options.apiKey,n.authDomain=cl(this).options.authDomain,n.appName=cl(this).name;var i=function(t,e,n,i){var r=t.h,o={};return o[Ja]=r.b&&r.b.toString(),o.refreshToken=r.a,e=new ph(e||{apiKey:t.l,authDomain:t.s,appName:t.m},o),n&&(e.ha=n),i&&bh(e,i),Dh(e,t),e}(t,n,e.D,e.Ga());return dl(this,this.h.then(function(){if(cl(e).options.apiKey!=t.l)return i.reload()}).then(function(){return hl(e)&&t.uid==hl(e).uid?(Dh(hl(e),t),e.da(t)):(sl(e,i),kh(i),e.da(i))}).then(function(){fl(e)}))},t.Bb=function(){var t=this;return dl(this,this.h.then(function(){return t.b&&qc(t.b.b),hl(t)?(sl(t,null),$h(t.i).then(function(){fl(t)})):Ne()}))},t.Zc=function(){var t=this;return Qh(this.i,cl(this).options.authDomain).then(function(e){if(!t.l){var n;if(n=hl(t)&&e){n=hl(t).uid;var i=e.uid;n=null!=n&&""!==n&&null!=i&&""!==i&&n==i}if(n)return Dh(hl(t),e),hl(t).I();(hl(t)||e)&&(sl(t,e),e&&(kh(e),e.ha=t.D),t.b&&Oc(t.b,t),fl(t))}})},t.da=function(t){return zh(this.i,t)},t.mc=function(){fl(this),this.da(hl(this))},t.wc=function(){this.Bb()},t.xc=function(){this.Bb()},t.kc=function(t){var e=this;return this.h.then(function(){return ul(e,Ne(t))})},t.zc=function(t){var e=this;this.addAuthTokenListener(function(){t.next(hl(e))})},t.Ac=function(t){var e=this;!function(t,e){t.N.push(e),dl(t,t.h.then(function(){!t.l&&Z(t.N,e)&&t.W!==t.getUid()&&(t.W=t.getUid(),e(ll(t)))}))}(this,function(){t.next(hl(e))})},t.Ic=function(t,e,n){var i=this;return this.ba&&Promise.resolve().then(function(){"function"==typeof t?t(hl(i)):"function"==typeof t.next&&t.next(hl(i))}),this.Pa(t,e,n)},t.Hc=function(t,e,n){var i=this;return this.ba&&Promise.resolve().then(function(){i.W=i.getUid(),"function"==typeof t?t(hl(i)):"function"==typeof t.next&&t.next(hl(i))}),this.ib(t,e,n)},t.nc=function(t){var e=this;return dl(this,this.h.then(function(){return hl(e)?hl(e).I(t).then(function(t){return{accessToken:t}}):null}))},t.Tc=function(t){var e=this;return this.h.then(function(){return ul(e,Qs(e.a,Xs,{token:t}))}).then(function(t){var n=t.user;return Ph(n,"isAnonymous",!1),e.da(n),t})},t.Uc=function(t,e){var n=this;return this.h.then(function(){return ul(n,Qs(n.a,Zs,{email:t,password:e}))})},t.dc=function(t,e){var n=this;return this.h.then(function(){return ul(n,Qs(n.a,Ts,{email:t,password:e}))})},t.ab=function(t){var e=this;return this.h.then(function(){return ul(e,t.ka(e.a))})},t.Sc=function(t){return Xi("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.ab(t)},t.Ab=function(){var t=this;return this.h.then(function(){var e=hl(t);if(e&&e.isAnonymous){var n=zi({providerId:null,isNewUser:!1});return zi({user:e,credential:null,additionalUserInfo:n,operationType:"signIn"})}return ul(t,t.a.Ab()).then(function(e){var n=e.user;return Ph(n,"isAnonymous",!0),t.da(n),e})})},t.getUid=function(){return hl(this)&&hl(this).uid||null},t.cc=function(t){this.addAuthTokenListener(t),this.u++,0<this.u&&hl(this)&&Ih(hl(this))},t.Pc=function(t){var e=this;G(this.s,function(n){n==t&&e.u--}),0>this.u&&(this.u=0),0==this.u&&hl(this)&&Th(hl(this)),this.removeAuthTokenListener(t)},t.addAuthTokenListener=function(t){var e=this;this.s.push(t),dl(this,this.h.then(function(){e.l||Z(e.s,t)&&t(ll(e))}))},t.removeAuthTokenListener=function(t){Y(this.s,function(e){return e==t})},t.delete=function(){this.l=!0;for(var t=0;t<this.P.length;t++)this.P[t].cancel("app-deleted");return this.P=[],this.i&&(t=this.i).b.removeListener(Yh("local"),t.a,this.ja),this.b&&(Cc(this.b,this),qc(this.b.b)),Promise.resolve()},t.hc=function(t){return dl(this,function(t,e){return Qs(t,Es,{identifier:e,continueUri:Pi()?hi():"http://localhost"}).then(function(t){return t.signinMethods||[]})}(this.a,t))},t.Bc=function(t){return!!Ro(t)},t.xb=function(t,e){var n=this;return dl(this,Ne().then(function(){var t=new Or(e);if(!t.c)throw new S("argument-error",Pr+" must be true when sending sign in link to email");return Vr(t)}).then(function(e){return n.a.xb(t,e)}).then(function(){}))},t.jd=function(t){return this.Sa(t).then(function(t){return t.data.email})},t.ob=function(t,e){return dl(this,this.a.ob(t,e).then(function(){}))},t.Sa=function(t){return dl(this,this.a.Sa(t).then(function(t){return new ar(t)}))},t.kb=function(t){return dl(this,this.a.kb(t).then(function(){}))},t.wb=function(t,e){var n=this;return dl(this,Ne().then(function(){return void 0===e||pt(e)?{}:Vr(new Or(e))}).then(function(e){return n.a.wb(t,e)}).then(function(){}))},t.Wc=function(t,e){return dl(this,Zc(this,t,e,I(this.ab,this)))},t.Vc=function(t,e){var n=this;return dl(this,Ne().then(function(){var i=e||hi(),r=Co(t,i);if(!(i=Ro(i)))throw new S("argument-error","Invalid email link!");if(i.tenantId!==n.T())throw new S("tenant-id-mismatch");return n.ab(r)}))},pl.prototype.render=function(){},pl.prototype.reset=function(){},pl.prototype.getResponse=function(){},pl.prototype.execute=function(){};var ml=null;function gl(t,e){return(e=bl(e))&&t.a[e]||null}function bl(t){return(t=void 0===t?1e12:t)?t.toString():null}function yl(t,e){this.g=!1,this.c=e,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=ue(t);var n=this;this.i=function(){n.execute()},this.h?this.execute():cn(this.f,"click",this.i)}function wl(t){if(t.g)throw Error("reCAPTCHA mock was already deleted!")}function Il(){}function Tl(){}vl.prototype.render=function(t,e){return this.a[this.b.toString()]=new yl(t,e),this.b++},vl.prototype.reset=function(t){var e=gl(this,t);t=bl(t),e&&t&&(e.delete(),delete this.a[t])},vl.prototype.getResponse=function(t){return(t=gl(this,t))?t.getResponse():null},vl.prototype.execute=function(t){(t=gl(this,t))&&t.execute()},yl.prototype.getResponse=function(){return wl(this),this.b},yl.prototype.execute=function(){wl(this);var t=this;this.a||(this.a=setTimeout(function(){t.b=function(){for(var t=50,e=[];0<t;)e.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return e.join("")}();var e=t.c.callback,n=t.c["expired-callback"];if(e)try{e(t.b)}catch(i){}t.a=setTimeout(function(){if(t.a=null,t.b=null,n)try{n()}catch(i){}t.h&&t.execute()},6e4)},500))},yl.prototype.delete=function(){wl(this),this.g=!0,clearTimeout(this.a),this.a=null,fn(this.f,"click",this.i)},Ji(Il,"FACTOR_ID","phone"),Tl.prototype.g=function(){return ml||(ml=new vl),Ne(ml)},Tl.prototype.c=function(){};var El=null;function Al(){this.b=s.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var kl=new yt(Et,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),Sl=new Ki(3e4,6e4);Al.prototype.g=function(t){var e=this;return new we(function(n,i){var r=setTimeout(function(){i(new S("network-request-failed"))},Sl.get());!s.grecaptcha||t!==e.f&&!e.b?(s[e.a]=function(){if(s.grecaptcha){e.f=t;var o=s.grecaptcha.render;s.grecaptcha.render=function(t,n){return t=o(t,n),e.b++,t},clearTimeout(r),n(s.grecaptcha)}else clearTimeout(r),i(new S("internal-error"));delete s[e.a]},Ne(Fa(Nt(kl,{onload:e.a,hl:t||""}))).o(function(){clearTimeout(r),i(new S("internal-error","Unable to load external reCAPTCHA dependencies!"))})):(clearTimeout(r),n(s.grecaptcha))})},Al.prototype.c=function(){this.b--};var Nl=null;function _l(t,e,n,i,r,o,a){if(Ji(this,"type","recaptcha"),this.c=this.f=null,this.J=!1,this.v=e,this.g=null,a?(El||(El=new Tl),a=El):(Nl||(Nl=new Al),a=Nl),this.m=a,this.a=n||{theme:"light",type:"image"},this.h=[],this.a[Rl])throw new S("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[Pl],!s.document)throw new S("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!ue(e)||!this.i&&ue(e).hasChildNodes())throw new S("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.s=new Xa(t,o||null,r||null),this.u=i||function(){return null};var u=this;this.l=[];var c=this.a[Ol];this.a[Ol]=function(t){if(Dl(u,t),"function"==typeof c)c(t);else if("string"==typeof c){var e=Oi(c,s);"function"==typeof e&&e(t)}};var h=this.a[Cl];this.a[Cl]=function(){if(Dl(u,null),"function"==typeof h)h();else if("string"==typeof h){var t=Oi(h,s);"function"==typeof t&&t()}}}var Ol="callback",Cl="expired-callback",Rl="sitekey",Pl="size";function Dl(t,e){for(var n=0;n<t.l.length;n++)try{t.l[n](e)}catch(i){}}function Ll(t,e){return t.h.push(e),e.oa(function(){J(t.h,e)}),e}function xl(t){if(t.J)throw new S("internal-error","RecaptchaVerifier instance has been destroyed.")}function Ml(t,e,n){var r=!1;try{this.b=n||i.Z.app()}catch(s){throw new S("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new S("invalid-api-key");n=this.b.options.apiKey;var o=this,a=null;try{a=this.b.auth().Ga()}catch(s){}try{r=this.b.auth().settings.appVerificationDisabledForTesting}catch(s){}a=i.Z.SDK_VERSION?Ni(i.Z.SDK_VERSION,a):null,_l.call(this,n,t,e,function(){try{var t=o.b.auth().la()}catch(e){t=null}return t},a,P(_),r)}function jl(t,e,n,i){t:{n=Array.prototype.slice.call(n);for(var r=0,o=!1,a=0;a<e.length;a++)if(e[a].optional)o=!0;else{if(o)throw new S("internal-error","Argument validator encountered a required argument after an optional argument.");r++}if(o=e.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=e[r].optional&&void 0===n[r],!e[r].M(n[r])&&!o){if(e=e[r],0>r||r>=Ul.length)throw new S("internal-error","Argument validator received an unsupported number of arguments.");n=Ul[r],i=(i?"":n+" argument ")+(e.name?'"'+e.name+'" ':"")+"must be "+e.K+".";break t}i=null}}if(i)throw new S("argument-error",t+" failed: "+i)}(t=_l.prototype).Ia=function(){var t=this;return this.f?this.f:this.f=Ll(this,Ne().then(function(){if(Pi()&&!Ii())return bi();throw new S("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")}).then(function(){return t.m.g(t.u())}).then(function(e){return t.g=e,Qs(t.s,Ms,{})}).then(function(e){t.a[Rl]=e.recaptchaSiteKey}).o(function(e){throw t.f=null,e}))},t.render=function(){xl(this);var t=this;return Ll(this,this.Ia().then(function(){if(null===t.c){var e=t.v;if(!t.i){var n=ue(e);e=function(t,e,n){var i=arguments,r=document,o=String(i[0]),a=i[1];if(!se&&a&&(a.name||a.type)){if(o=["<",o],a.name&&o.push(' name="',Gt(a.name),'"'),a.type){o.push(' type="',Gt(a.type),'"');var s={};gt(s,a),delete s.type,a=s}o.push(">"),o=o.join("")}return o=pe(r,o),a&&("string"==typeof a?o.className=a:Array.isArray(a)?o.className=a.join(" "):ce(o,a)),2<i.length&&de(r,o,i),o}("DIV"),n.appendChild(e)}t.c=t.g.render(e,t.a)}return t.c}))},t.verify=function(){xl(this);var t=this;return Ll(this,this.render().then(function(e){return new we(function(n){var i=t.g.getResponse(e);if(i)n(i);else{var r=function(e){e&&(function(t,e){Y(t.l,function(t){return t==e})}(t,r),n(e))};t.l.push(r),t.i&&t.g.execute(t.c)}})}))},t.reset=function(){xl(this),null!==this.c&&this.g.reset(this.c)},t.clear=function(){xl(this),this.J=!0,this.m.c();for(var t=0;t<this.h.length;t++)this.h[t].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){t=ue(this.v);for(var e;e=t.firstChild;)t.removeChild(e)}},A(Ml,_l);var Ul="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function Vl(t,e){return{name:t||"",K:"a valid string",optional:!!e,M:function(t){return"string"==typeof t}}}function Fl(t,e){return{name:t||"",K:"a boolean",optional:!!e,M:function(t){return"boolean"==typeof t}}}function Kl(t,e){return{name:t||"",K:"a valid object",optional:!!e,M:v}}function ql(t,e){return{name:t||"",K:"a function",optional:!!e,M:function(t){return"function"==typeof t}}}function Hl(t,e){return{name:t||"",K:"null",optional:!!e,M:function(t){return null===t}}}function Gl(t){return{name:t?t+"Credential":"credential",K:t?"a valid "+t+" credential":"a valid credential",optional:!1,M:function(e){return!!e&&!(!e.ka||t&&e.providerId!==t)}}}function Bl(t,e){return v(t)&&"string"==typeof t.type&&t.type===e&&"function"==typeof t.Ha}function Wl(t){return v(t)&&"string"==typeof t.uid}function Xl(t,e,n,i){return{name:n||"",K:t.K+" or "+e.K,optional:!!i,M:function(n){return t.M(n)||e.M(n)}}}function Zl(t,e){for(var n in e){var i=e[n].name;t[i]=zl(i,t[n],e[n].j)}}function Jl(t,e){for(var n in e){var i=e[n].name;i!==n&&Object.defineProperty(t,i,{get:T(function(t){return this[t]},n),set:T(function(t,e,n,i){jl(t,[n],[i],!0),this[e]=i},i,n,e[n].lb),enumerable:!0})}}function Yl(t,e,n,i){t[e]=zl(e,n,i)}function zl(t,e,n){function i(){var t=Array.prototype.slice.call(arguments);return jl(o,n,t),e.apply(this,t)}if(!n)return e;var r,o=function(t){return(t=t.split("."))[t.length-1]}(t);for(r in e)i[r]=e[r];for(r in e.prototype)i.prototype[r]=e.prototype[r];return i}Zl(el.prototype,{kb:{name:"applyActionCode",j:[Vl("code")]},Sa:{name:"checkActionCode",j:[Vl("code")]},ob:{name:"confirmPasswordReset",j:[Vl("code"),Vl("newPassword")]},dc:{name:"createUserWithEmailAndPassword",j:[Vl("email"),Vl("password")]},hc:{name:"fetchSignInMethodsForEmail",j:[Vl("email")]},ra:{name:"getRedirectResult",j:[]},Bc:{name:"isSignInWithEmailLink",j:[Vl("emailLink")]},Hc:{name:"onAuthStateChanged",j:[Xl(Kl(),ql(),"nextOrObserver"),ql("opt_error",!0),ql("opt_completed",!0)]},Ic:{name:"onIdTokenChanged",j:[Xl(Kl(),ql(),"nextOrObserver"),ql("opt_error",!0),ql("opt_completed",!0)]},wb:{name:"sendPasswordResetEmail",j:[Vl("email"),Xl(Kl("opt_actionCodeSettings",!0),Hl(null,!0),"opt_actionCodeSettings",!0)]},xb:{name:"sendSignInLinkToEmail",j:[Vl("email"),Kl("actionCodeSettings")]},yb:{name:"setPersistence",j:[Vl("persistence")]},Sc:{name:"signInAndRetrieveDataWithCredential",j:[Gl()]},Ab:{name:"signInAnonymously",j:[]},ab:{name:"signInWithCredential",j:[Gl()]},Tc:{name:"signInWithCustomToken",j:[Vl("token")]},Uc:{name:"signInWithEmailAndPassword",j:[Vl("email"),Vl("password")]},Vc:{name:"signInWithEmailLink",j:[Vl("email"),Vl("emailLink",!0)]},Wc:{name:"signInWithPhoneNumber",j:[Vl("phoneNumber"),{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(t){return!(!t||"string"!=typeof t.type||"function"!=typeof t.verify)}}]},Xc:{name:"signInWithPopup",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Yc:{name:"signInWithRedirect",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},dd:{name:"updateCurrentUser",j:[Xl({name:"user",K:"an instance of Firebase User",optional:!1,M:function(t){return!!(t&&t instanceof ph)}},Hl(),"user")]},Bb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[Vl(null,!0)]},fd:{name:"useDeviceLanguage",j:[]},gd:{name:"useEmulator",j:[Vl("url"),Kl("options",!0)]},jd:{name:"verifyPasswordResetCode",j:[Vl("code")]}}),Jl(el.prototype,{lc:{name:"languageCode",lb:Xl(Vl(),Hl(),"languageCode")},ti:{name:"tenantId",lb:Xl(Vl(),Hl(),"tenantId")}}),(el.Persistence=Ju).LOCAL="local",el.Persistence.SESSION="session",el.Persistence.NONE="none",Zl(ph.prototype,{delete:{name:"delete",j:[]},oc:{name:"getIdTokenResult",j:[Fl("opt_forceRefresh",!0)]},I:{name:"getIdToken",j:[Fl("opt_forceRefresh",!0)]},Cc:{name:"linkAndRetrieveDataWithCredential",j:[Gl()]},rb:{name:"linkWithCredential",j:[Gl()]},Dc:{name:"linkWithPhoneNumber",j:[Vl("phoneNumber"),{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(t){return!(!t||"string"!=typeof t.type||"function"!=typeof t.verify)}}]},Ec:{name:"linkWithPopup",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Fc:{name:"linkWithRedirect",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Lc:{name:"reauthenticateAndRetrieveDataWithCredential",j:[Gl()]},ub:{name:"reauthenticateWithCredential",j:[Gl()]},Mc:{name:"reauthenticateWithPhoneNumber",j:[Vl("phoneNumber"),{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(t){return!(!t||"string"!=typeof t.type||"function"!=typeof t.verify)}}]},Nc:{name:"reauthenticateWithPopup",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Oc:{name:"reauthenticateWithRedirect",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},reload:{name:"reload",j:[]},vb:{name:"sendEmailVerification",j:[Xl(Kl("opt_actionCodeSettings",!0),Hl(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[Vl(null,!0)]},cd:{name:"unlink",j:[Vl("provider")]},Cb:{name:"updateEmail",j:[Vl("email")]},Db:{name:"updatePassword",j:[Vl("password")]},ed:{name:"updatePhoneNumber",j:[Gl("phone")]},Eb:{name:"updateProfile",j:[Kl("profile")]},Fb:{name:"verifyBeforeUpdateEmail",j:[Vl("email"),Xl(Kl("opt_actionCodeSettings",!0),Hl(null,!0),"opt_actionCodeSettings",!0)]}}),Zl(vl.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Zl(pl.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Zl(we.prototype,{oa:{name:"finally"},o:{name:"catch"},then:{name:"then"}}),Jl(Wc.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",lb:Fl("appVerificationDisabledForTesting")}}),Zl(Xc.prototype,{confirm:{name:"confirm",j:[Vl("verificationCode")]}}),Yl(so,"fromJSON",function(t){t="string"==typeof t?JSON.parse(t):t;for(var e,n=[vo,_o,Do,lo],i=0;i<n.length;i++)if(e=n[i](t))return e;return null},[Xl(Vl(),Kl(),"json")]),Yl(Oo,"credential",function(t,e){return new No(t,e)},[Vl("email"),Vl("password")]),Zl(No.prototype,{w:{name:"toJSON",j:[Vl(null,!0)]}}),Zl(yo.prototype,{Ca:{name:"addScope",j:[Vl("scope")]},Ka:{name:"setCustomParameters",j:[Kl("customOAuthParameters")]}}),Yl(yo,"credential",wo,[Xl(Vl(),Kl(),"token")]),Yl(Oo,"credentialWithLink",Co,[Vl("email"),Vl("emailLink")]),Zl(Io.prototype,{Ca:{name:"addScope",j:[Vl("scope")]},Ka:{name:"setCustomParameters",j:[Kl("customOAuthParameters")]}}),Yl(Io,"credential",To,[Xl(Vl(),Kl(),"token")]),Zl(Eo.prototype,{Ca:{name:"addScope",j:[Vl("scope")]},Ka:{name:"setCustomParameters",j:[Kl("customOAuthParameters")]}}),Yl(Eo,"credential",Ao,[Xl(Vl(),Xl(Kl(),Hl()),"idToken"),Xl(Vl(),Hl(),"accessToken",!0)]),Zl(ko.prototype,{Ka:{name:"setCustomParameters",j:[Kl("customOAuthParameters")]}}),Yl(ko,"credential",So,[Xl(Vl(),Kl(),"token"),Vl("secret",!0)]),Zl(bo.prototype,{Ca:{name:"addScope",j:[Vl("scope")]},credential:{name:"credential",j:[Xl(Vl(),Xl(Kl(),Hl()),"optionsOrIdToken"),Xl(Vl(),Hl(),"accessToken",!0)]},Ka:{name:"setCustomParameters",j:[Kl("customOAuthParameters")]}}),Zl(fo.prototype,{w:{name:"toJSON",j:[Vl(null,!0)]}}),Zl(co.prototype,{w:{name:"toJSON",j:[Vl(null,!0)]}}),Yl(xo,"credential",Mo,[Vl("verificationId"),Vl("verificationCode")]),Zl(xo.prototype,{gb:{name:"verifyPhoneNumber",j:[Xl(Vl(),{name:"phoneInfoOptions",K:"valid phone info options",optional:!1,M:function(t){return!!t&&(t.session&&t.phoneNumber?Bl(t.session,oo)&&"string"==typeof t.phoneNumber:t.session&&t.multiFactorHint?Bl(t.session,ao)&&Wl(t.multiFactorHint):t.session&&t.multiFactorUid?Bl(t.session,ao)&&"string"==typeof t.multiFactorUid:!!t.phoneNumber&&"string"==typeof t.phoneNumber)}},"phoneInfoOptions"),{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(t){return!(!t||"string"!=typeof t.type||"function"!=typeof t.verify)}}]}}),Zl(Po.prototype,{w:{name:"toJSON",j:[Vl(null,!0)]}}),Zl(S.prototype,{toJSON:{name:"toJSON",j:[Vl(null,!0)]}}),Zl(Bo.prototype,{toJSON:{name:"toJSON",j:[Vl(null,!0)]}}),Zl(Go.prototype,{toJSON:{name:"toJSON",j:[Vl(null,!0)]}}),Zl(Qc.prototype,{toJSON:{name:"toJSON",j:[Vl(null,!0)]}}),Zl(Yc.prototype,{Rc:{name:"resolveSignIn",j:[{name:"multiFactorAssertion",K:"a valid multiFactorAssertion",optional:!1,M:function(t){return!!t&&!!t.tb}}]}}),Zl(oh.prototype,{Sb:{name:"getSession",j:[]},fc:{name:"enroll",j:[{name:"multiFactorAssertion",K:"a valid multiFactorAssertion",optional:!1,M:function(t){return!!t&&!!t.tb}},Vl("displayName",!0)]},bd:{name:"unenroll",j:[Xl({name:"multiFactorInfo",K:"a valid multiFactorInfo",optional:!1,M:Wl},Vl(),"multiFactorInfoIdentifier")]}}),Zl(Ml.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),Yl(wr,"parseLink",_r,[Vl("link")]),Yl(Il,"assertion",function(t){return new ih(t)},[Gl("phone")]),function(){if(void 0===i.Z||!i.Z.INTERNAL||!i.Z.INTERNAL.registerComponent)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var t={ActionCodeInfo:{Operation:{EMAIL_SIGNIN:ur,PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:sr,VERIFY_AND_CHANGE_EMAIL:cr,VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:el,AuthCredential:so,Error:S};Yl(t,"EmailAuthProvider",Oo,[]),Yl(t,"FacebookAuthProvider",yo,[]),Yl(t,"GithubAuthProvider",Io,[]),Yl(t,"GoogleAuthProvider",Eo,[]),Yl(t,"TwitterAuthProvider",ko,[]),Yl(t,"OAuthProvider",bo,[Vl("providerId")]),Yl(t,"SAMLAuthProvider",go,[Vl("providerId")]),Yl(t,"PhoneAuthProvider",xo,[{name:"auth",K:"an instance of Firebase Auth",optional:!0,M:function(t){return!!(t&&t instanceof el)}}]),Yl(t,"RecaptchaVerifier",Ml,[Xl(Vl(),{name:"",K:"an HTML element",optional:!1,M:function(t){return!!(t&&t instanceof Element)}},"recaptchaContainer"),Kl("recaptchaParameters",!0),{name:"app",K:"an instance of Firebase App",optional:!0,M:function(t){return!!(t&&t instanceof i.Z.app.App)}}]),Yl(t,"ActionCodeURL",wr,[]),Yl(t,"PhoneMultiFactorGenerator",Il,[]),i.Z.INTERNAL.registerComponent({name:"auth",instanceFactory:function(t){return new el(t=t.getProvider("app").getImmediate())},multipleInstances:!1,serviceProps:t,instantiationMode:"LAZY",type:"PUBLIC",onInstanceCreated:function(t){t.getProvider("auth-internal").initialize()}}),i.Z.INTERNAL.registerComponent({name:"auth-internal",instanceFactory:function(t){return{getUid:I((t=t.getProvider("auth").getImmediate()).getUid,t),getToken:I(t.nc,t),addAuthTokenListener:I(t.cc,t),removeAuthTokenListener:I(t.Pc,t)}},multipleInstances:!1,instantiationMode:"LAZY",type:"PRIVATE"}),i.Z.registerVersion("@firebase/auth","0.16.8"),i.Z.INTERNAL.extendNamespace({User:ph})}()}).apply("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})}}]);
  //# sourceMappingURL=node_modules_firebase_auth_dist_index_esm_js-es2015.658951435fa300c84503.js.map