"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[834],{8481:function(t,e,n){var i=n(5887);(function(){var t,e,r,o="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},a=function(t){t=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof n.g&&n.g,t];for(var e=0;e<t.length;++e){var i=t[e];if(i&&i.Math==Math)return i}return globalThis}(this);function s(t){var e,n="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return n?n.call(t):{next:(e=0,function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}})}}!function(t,e){if(e){var n=a;t=t.split(".");for(var i=0;i<t.length-1;i++){var r=t[i];r in n||(n[r]={}),n=n[r]}(e=e(i=n[t=t[t.length-1]]))!=i&&null!=e&&o(n,t,{configurable:!0,writable:!0,value:e})}}("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(t){e.reject(t)}}function n(){this.a=null}function i(t){return t instanceof e?t:new e(function(e){e(t)})}if(t)return t;n.prototype.b=function(t){if(null==this.a){this.a=[];var e=this;this.c(function(){e.g()})}this.a.push(t)};var r=a.setTimeout;n.prototype.c=function(t){r(t,0)},n.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(t){this.f(t)}}}this.a=null},n.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(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(t){this.g(t);return}"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)o.b(this.a[t]);this.a=null}};var o=new n;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(t){n.reject(t)}},e.prototype.then=function(t,n){function i(t,e){return"function"==typeof t?function(e){try{r(t(e))}catch(t){o(t)}}: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?o.b(n):this.a.push(n)},e.resolve=i,e.reject=function(t){return new e(function(e,n){n(t)})},e.race=function(t){return new e(function(e,n){for(var r=s(t),o=r.next();!o.done;o=r.next())i(o.value).Ra(e,n)})},e.all=function(t){var n=s(t),r=n.next();return r.done?i([]):new e(function(t,e){var o=[],a=0;do o.push(void 0),a++,i(r.value).Ra(function(e){return function(n){o[e]=n,0==--a&&t(o)}}(o.length-1),e),r=n.next();while(!r.done)})},e});var u=u||{},c=this||self,h=/^[\w+/_-]+[=]{0,2}$/,l=null;function f(t){return(t=t.querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&h.test(t)?t:""}function d(){}function p(t){var e=typeof t;return"object"!=e?e:t?Array.isArray(t)?"array":e:"null"}function v(t){var e=p(t);return"array"==e||"object"==e&&"number"==typeof t.length}function m(t){return"function"==p(t)}function g(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}function b(t){return Object.prototype.hasOwnProperty.call(t,y)&&t[y]||(t[y]=++w)}var y="closure_uid_"+(1e9*Math.random()>>>0),w=0;function I(t,e,n){return t.call.apply(t.bind,arguments)}function T(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 E(t,e,n){return(E=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?I:T).apply(null,arguments)}function k(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 A=Date.now;function S(t,e){function n(){}n.prototype=e.prototype,t.bb=e.prototype,t.prototype=new n,t.prototype.constructor=t}function N(t){return t}function _(t,e,n){this.code=C+t,this.message=e||R[t]||"",this.a=n||null}function O(t){var e=t&&t.code;return e?new _(e.substring(C.length),t.message,t.serverResponse):null}S(_,Error),_.prototype.w=function(){var t={code:this.code,message:this.message};return this.a&&(t.serverResponse=this.a),t},_.prototype.toJSON=function(){return this.w()};var C="auth/",R={"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."},D={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 D)if(D[e].id===t)return{firebaseEndpoint:(t=D[e]).Ua,secureTokenEndpoint:t.$a,identityPlatformEndpoint:t.Xa};return null}function L(t){if(!t)return!1;try{return!!t.$goog_Thenable}catch(t){return!1}}function x(t){if(Error.captureStackTrace)Error.captureStackTrace(this,x);else{var e=Error().stack;e&&(this.stack=e)}t&&(this.message=String(t))}function M(t,e){t=t.split("%s");for(var n="",i=t.length-1,r=0;r<i;r++)n+=t[r]+(r<e.length?e[r]:"%s");x.call(this,n+t[i])}function j(t,e){throw new M("Failure"+(t?": "+t:""),Array.prototype.slice.call(arguments,1))}function U(t,e){this.c=t,this.f=e,this.b=0,this.a=null}function V(t,e){t.f(e),100>t.b&&(t.b++,e.next=t.a,t.a=e)}function F(){this.b=this.a=null}oB=P("__EID__")?"__EID__":void 0,S(x,Error),x.prototype.name="CustomError",S(M,x),M.prototype.name="AssertionError",U.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 q=new U(function(){return new H},function(t){t.reset()});function H(){this.next=this.b=this.a=null}F.prototype.add=function(t,e){var n=q.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},H.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},H.prototype.reset=function(){this.next=this.b=this.a=null};var K=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<=K(t,e)}function J(t,e){var n;return(n=0<=(e=K(t,e)))&&Array.prototype.splice.call(t,e,1),n}function Y(t,e){var n=0;!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(i,r){e.call(void 0,i,r,t)&&1==Array.prototype.splice.call(t,r,1).length&&n++})}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=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]},tt=/&/g,te=/</g,tn=/>/g,ti=/"/g,tr=/'/g,to=/\x00/g,ta=/[\x00&<>"']/;function ts(t,e){return -1!=t.indexOf(e)}function tu(t,e){return t<e?-1:t>e?1:0}t:{var tc=c.navigator;if(tc){var th=tc.userAgent;if(th){oW=th;break t}}oW=""}function tl(t){return ts(oW,t)}function tf(t,e){for(var n in t)e.call(void 0,t[n],n,t)}function td(t){for(var e in t)return!1;return!0}function tp(t){var e,n={};for(e in t)n[e]=t[e];return n}var tv="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function tm(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<tv.length;o++)n=tv[o],Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}}function tg(t,e){t:{try{var n=t&&t.ownerDocument,i=n&&(n.defaultView||n.parentWindow);if((i=i||c).Element&&i.Location){var r=i;break t}}catch(t){}r=null}if(r&&void 0!==r[e]&&(!t||!(t instanceof r[e])&&(t instanceof r.Location||t instanceof r.Element))){if(g(t))try{var o=t.constructor.displayName||t.constructor.name||Object.prototype.toString.call(t)}catch(t){o="<object could not be stringified>"}else o=void 0===t?"undefined":null===t?"null":typeof t;j("Argument is not a %s (or a non-Element, non-Location mock); got: %s",e,o)}}function tb(t,e){this.a=t===tI&&e||"",this.b=tw}function ty(t){return t instanceof tb&&t.constructor===tb&&t.b===tw?t.a:(j("expected object of type Const, got '"+t+"'"),"type_error:Const")}tb.prototype.ta=!0,tb.prototype.sa=function(){return this.a},tb.prototype.toString=function(){return"Const{"+this.a+"}"};var tw={},tI={};function tT(){if(void 0===oX){var t=null,e=c.trustedTypes;if(e&&e.createPolicy){try{t=e.createPolicy("goog#html",{createHTML:N,createScript:N,createScriptURL:N})}catch(t){c.console&&c.console.error(t.message)}oX=t}else oX=t}return oX}function tE(t,e){this.a=e===t_?t:""}function tk(t){return t instanceof tE&&t.constructor===tE?t.a:(j("expected object of type TrustedResourceUrl, got '"+t+"' of type "+p(t)),"type_error:TrustedResourceUrl")}function tA(t,e){var n,i,r=ty(t);if(!tN.test(r))throw Error("Invalid TrustedResourceUrl format: "+r);return n=t=r.replace(tS,function(t,n){if(!Object.prototype.hasOwnProperty.call(e,n))throw Error('Found marker, "'+n+'", in format string, "'+r+'", but no valid label mapping found in args: '+JSON.stringify(e));return(t=e[n])instanceof tb?ty(t):encodeURIComponent(String(t))}),n=(i=tT())?i.createScriptURL(n):n,new tE(n,t_)}tE.prototype.ta=!0,tE.prototype.sa=function(){return this.a.toString()},tE.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var tS=/%{(\w+)}/g,tN=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,t_={};function tO(t,e){this.a=e===tM?t:""}function tC(t){return t instanceof tO&&t.constructor===tO?t.a:(j("expected object of type SafeUrl, got '"+t+"' of type "+p(t)),"type_error:SafeUrl")}tO.prototype.ta=!0,tO.prototype.sa=function(){return this.a.toString()},tO.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var tR=/^(?: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,tD=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,tP=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function tL(t){if(t instanceof tO)return t;if(t="object"==typeof t&&t.ta?t.sa():String(t),tP.test(t))t=new tO(t,tM);else{var e=(t=(t=String(t)).replace(/(%0A|%0D)/g,"")).match(tD);t=e&&tR.test(e[1])?new tO(t,tM):null}return t}function tx(t){return t instanceof tO?t:(t="object"==typeof t&&t.ta?t.sa():String(t),tP.test(t)||(t="about:invalid#zClosurez"),new tO(t,tM))}var tM={},tj=new tO("about:invalid#zClosurez",tM);function tU(t,e,n){this.a=n===tV?t:""}tU.prototype.ta=!0,tU.prototype.sa=function(){return this.a.toString()},tU.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var tV={};function tF(t,e,n,i){return t=t instanceof tO?t:tx(t),e=e||c,n=n instanceof tb?ty(n):n||"",e.open(tC(t),n,i,void 0)}function tq(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 tH(t){return ta.test(t)&&(-1!=t.indexOf("&")&&(t=t.replace(tt,"&amp;")),-1!=t.indexOf("<")&&(t=t.replace(te,"&lt;")),-1!=t.indexOf(">")&&(t=t.replace(tn,"&gt;")),-1!=t.indexOf('"')&&(t=t.replace(ti,"&quot;")),-1!=t.indexOf("'")&&(t=t.replace(tr,"&#39;")),-1!=t.indexOf("\x00")&&(t=t.replace(to,"&#0;"))),t}function tK(t){return tK[" "](t),t}tK[" "]=d;var tG=tl("Opera"),tB=tl("Trident")||tl("MSIE"),tW=tl("Edge"),tX=tW||tB,tZ=tl("Gecko")&&!(ts(oW.toLowerCase(),"webkit")&&!tl("Edge"))&&!(tl("Trident")||tl("MSIE"))&&!tl("Edge"),tJ=ts(oW.toLowerCase(),"webkit")&&!tl("Edge");function tY(){var t=c.document;return t?t.documentMode:void 0}t:{var tz,t$="",tQ=(tz=oW,tZ?/rv:([^\);]+)(\)|;)/.exec(tz):tW?/Edge\/([\d\.]+)/.exec(tz):tB?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(tz):tJ?/WebKit\/(\S+)/.exec(tz):tG?/(?:Version)[ \/]?(\S+)/.exec(tz):void 0);if(tQ&&(t$=tQ?tQ[1]:""),tB){var t0=tY();if(null!=t0&&t0>parseFloat(t$)){oZ=String(t0);break t}}oZ=t$}var t1={};function t2(t){var e;return e=t1,Object.prototype.hasOwnProperty.call(e,t)?e[t]:e[t]=function(){for(var e=0,n=Q(String(oZ)).split("."),i=Q(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=tu(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||tu(0==a[2].length,0==s[2].length)||tu(a[2],s[2]),a=a[3],s=s[3]}while(0==e)}return 0<=e}(t)}var t3=c.document&&tB&&(tY()||parseInt(oZ,10))||void 0;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(t){}var t4=!tB||9<=Number(t3);function t6(t){var e=document;return"string"==typeof t?e.getElementById(t):t}function t5(t,e){tf(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:t8.hasOwnProperty(n)?t.setAttribute(t8[n],e):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?t.setAttribute(n,e):t[n]=e})}var t8={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 t7(t,e){return e=String(e),"application/xhtml+xml"===t.contentType&&(e=e.toLowerCase()),t.createElement(e)}function t9(t){c.setTimeout(function(){throw t},0)}function et(t,e){oz||function(){if(c.Promise&&c.Promise.resolve){var t=c.Promise.resolve(void 0);oz=function(){t.then(ei)}}else oz=function(){!m(c.setImmediate)||c.Window&&c.Window.prototype&&!tl("Edge")&&c.Window.prototype.setImmediate==c.setImmediate?(oY||(oY=function(){var t=c.MessageChannel;if(void 0===t&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!tl("Presto")&&(t=function(){var t=t7(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=E(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&&!tl("Trident")&&!tl("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){c.setTimeout(t,0)}}()),oY(ei)):c.setImmediate(ei)}}(),ee||(oz(),ee=!0),en.add(t,e)}var ee=!1,en=new F;function ei(){for(var t,e,n;e=null,(t=en).a&&(e=t.a,t.a=t.a.next,t.a||(t.b=null),e.next=null),n=e;){try{n.a.call(n.b)}catch(t){t9(t)}V(q,n)}ee=!1}function er(t,e){if(this.a=eo,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,t!=d)try{var n=this;t.call(e,function(t){eg(n,ea,t)},function(t){if(!(t instanceof ek))try{if(t instanceof Error)throw t;throw Error("Promise rejected.")}catch(t){}eg(n,es,t)})}catch(t){eg(this,es,t)}}var eo=0,ea=2,es=3;function eu(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}eu.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var ec=new U(function(){return new eu},function(t){t.reset()});function eh(t,e,n){var i=ec.get();return i.g=t,i.b=e,i.f=n,i}function el(t){if(t instanceof er)return t;var e=new er(d);return eg(e,ea,t),e}function ef(t){return new er(function(e,n){n(t)})}function ed(t,e,n){eb(t,e,n,null)||et(k(e,t))}function ep(t){return new er(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++)ed(t[o],k(r,o,!0),k(r,o,!1));else e(i)})}function ev(t,e){t.b||t.a!=ea&&t.a!=es||ey(t),t.f?t.f.next=e:t.b=e,t.f=e}function em(t,e,n,i){var r=eh(null,null,null);return r.a=new er(function(t,o){r.g=e?function(n){try{var r=e.call(i,n);t(r)}catch(t){o(t)}}:t,r.b=n?function(e){try{var r=n.call(i,e);void 0===r&&e instanceof ek?o(e):t(r)}catch(t){o(t)}}:o}),r.a.c=t,ev(t,r),r.a}function eg(t,e,n){var i,r;t.a==eo&&(t===n&&(e=es,n=TypeError("Promise cannot resolve to itself")),t.a=1,eb(n,t.$c,t.ad,t)||(t.i=n,t.a=e,t.c=null,ey(t),e!=es||n instanceof ek||(i=t,r=n,i.g=!0,et(function(){i.g&&eE.call(null,r)}))))}function eb(t,e,n,i){if(t instanceof er)return ev(t,eh(e||d,n||null,i)),!0;if(L(t))return t.then(e,n,i),!0;if(g(t))try{var r=t.then;if(m(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(t){o(t)}}(t,r,e,n,i),!0}catch(t){return n.call(i,t),!0}return!1}function ey(t){t.h||(t.h=!0,et(t.gc,t))}function ew(t){var e=null;return t.b&&(e=t.b,t.b=e.next,e.next=null),t.b||(t.f=null),e}function eI(t,e,n,i){if(n==es&&e.b&&!e.c)for(;t&&t.g;t=t.c)t.g=!1;if(e.a)e.a.c=null,eT(e,n,i);else try{e.c?e.g.call(e.f):eT(e,n,i)}catch(t){eE.call(null,t)}V(ec,e)}function eT(t,e,n){e==ea?t.g.call(t.f,n):t.b&&t.b.call(t.f,n)}er.prototype.then=function(t,e,n){return em(this,m(t)?t:null,m(e)?e:null,n)},er.prototype.$goog_Thenable=!0,(r=er.prototype).oa=function(t,e){return(t=eh(t,t,e)).c=!0,ev(this,t),this},r.o=function(t,e){return em(this,null,t,e)},r.cancel=function(t){if(this.a==eo){var e=new ek(t);et(function(){(function t(e,n){if(e.a==eo){if(e.c){var i=e.c;if(i.b){for(var r=0,o=null,a=null,s=i.b;s&&(s.c||(r++,s.a==e&&(o=s),!(o&&1<r)));s=s.next)o||(a=s);o&&(i.a==eo&&1==r?t(i,n):(a?((r=a).next==i.f&&(i.f=r),r.next=r.next.next):ew(i),eI(i,o,es,n)))}e.c=null}else eg(e,es,n)}})(this,e)},this)}},r.$c=function(t){this.a=eo,eg(this,ea,t)},r.ad=function(t){this.a=eo,eg(this,es,t)},r.gc=function(){for(var t;t=ew(this);)eI(this,t,this.a,this.i);this.h=!1};var eE=t9;function ek(t){x.call(this,t)}function eA(){0!=eS&&(eN[b(this)]=this),this.ya=this.ya,this.pa=this.pa}S(ek,x),ek.prototype.name="cancel";var eS=0,eN={};function e_(t){if(!t.ya&&(t.ya=!0,t.Da(),0!=eS)){var e=b(t);if(0!=eS&&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 eN[e]}}eA.prototype.ya=!1,eA.prototype.Da=function(){if(this.pa)for(;this.pa.length;)this.pa.shift()()};var eO=Object.freeze||function(t){return t},eC=!tB||9<=Number(t3),eR=tB&&!t2("9"),eD=function(){if(!c.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{c.addEventListener("test",d,e),c.removeEventListener("test",d,e)}catch(t){}return t}();function eP(t,e){this.type=t,this.b=this.target=e,this.defaultPrevented=!1}function eL(t,e){if(eP.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(tZ){t:{try{tK(e.nodeName);var r=!0;break t}catch(t){}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:ex[t.pointerType]||"",this.a=t,t.defaultPrevented&&this.preventDefault()}}eP.prototype.preventDefault=function(){this.defaultPrevented=!0},S(eL,eP);var ex=eO({2:"touch",3:"pen",4:"mouse"});eL.prototype.preventDefault=function(){eL.bb.preventDefault.call(this);var t=this.a;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,eR)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(t){}},eL.prototype.g=function(){return this.a};var eM="closure_listenable_"+(1e6*Math.random()|0),ej=0;function eU(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=++ej,this.wa=this.Qa=!1}function eV(t){t.wa=!0,t.listener=null,t.proxy=null,t.src=null,t.Wa=null}function eF(t){this.src=t,this.a={},this.b=0}function eq(t,e){var n=e.type;n in t.a&&J(t.a[n],e)&&(eV(e),0==t.a[n].length&&(delete t.a[n],t.b--))}function eH(t,e,n,i){for(var r=0;r<t.length;++r){var o=t[r];if(!o.wa&&o.listener==e&&!!n==o.capture&&o.Wa==i)return r}return -1}eF.prototype.add=function(t,e,n,i,r){var o=t.toString();(t=this.a[o])||(t=this.a[o]=[],this.b++);var a=eH(t,e,i,r);return -1<a?(e=t[a],n||(e.Qa=!1)):((e=new eU(e,this.src,o,!!i,r)).Qa=n,t.push(e)),e};var eK="closure_lm_"+(1e6*Math.random()|0),eG={},eB=0;function eW(t,e,n,i,r){if(i&&i.once)eZ(t,e,n,i,r);else if(Array.isArray(e))for(var o=0;o<e.length;o++)eW(t,e[o],n,i,r);else n=e3(n),t&&t[eM]?e6(t,e,n,g(i)?!!i.capture:!!i,r):eX(t,e,n,!1,i,r)}function eX(t,e,n,i,r,o){if(!e)throw Error("Invalid event type");var a,s=g(r)?!!r.capture:!!r,u=e1(t);if(u||(t[eK]=u=new eF(t)),!(n=u.add(e,n,i,s,o)).proxy){if(i=a=eC?function(t){return e0.call(a.src,a.listener,t)}:function(t){if(!(t=e0.call(a.src,a.listener,t)))return t},n.proxy=i,i.src=t,i.listener=n,t.addEventListener)eD||(r=s),void 0===r&&(r=!1),t.addEventListener(e.toString(),i,r);else if(t.attachEvent)t.attachEvent(ez(e.toString()),i);else if(t.addListener&&t.removeListener)t.addListener(i);else throw Error("addEventListener and attachEvent are unavailable.");eB++}}function eZ(t,e,n,i,r){if(Array.isArray(e))for(var o=0;o<e.length;o++)eZ(t,e[o],n,i,r);else n=e3(n),t&&t[eM]?e5(t,e,n,g(i)?!!i.capture:!!i,r):eX(t,e,n,!0,i,r)}function eJ(t,e,n,i,r){if(Array.isArray(e))for(var o=0;o<e.length;o++)eJ(t,e[o],n,i,r);else(i=g(i)?!!i.capture:!!i,n=e3(n),t&&t[eM])?(t=t.v,(e=String(e).toString())in t.a&&-1<(n=eH(o=t.a[e],n,i,r))&&(eV(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete t.a[e],t.b--))):t&&(t=e1(t))&&(e=t.a[e.toString()],t=-1,e&&(t=eH(e,n,i,r)),(n=-1<t?e[t]:null)&&eY(n))}function eY(t){if("number"!=typeof t&&t&&!t.wa){var e=t.src;if(e&&e[eM])eq(e.v,t);else{var n=t.type,i=t.proxy;e.removeEventListener?e.removeEventListener(n,i,t.capture):e.detachEvent?e.detachEvent(ez(n),i):e.addListener&&e.removeListener&&e.removeListener(i),eB--,(n=e1(e))?(eq(n,t),0==n.b&&(n.src=null,e[eK]=null)):eV(t)}}}function ez(t){return t in eG?eG[t]:eG[t]="on"+t}function e$(t,e,n,i){var r=!0;if((t=e1(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=eQ(o,i),r=r&&!1!==o)}return r}function eQ(t,e){var n=t.listener,i=t.Wa||t.src;return t.Qa&&eY(t),n.call(i,e)}function e0(t,e){if(t.wa)return!0;if(!eC){if(!e)t:{e=["window","event"];for(var n=c,i=0;i<e.length;i++)if(null==(n=n[e[i]])){e=null;break t}e=n}if(i=e,e=new eL(i,this),n=!0,!(0>i.keyCode||void 0!=i.returnValue)){t:{var r=!1;if(0==i.keyCode)try{i.keyCode=-1;break t}catch(t){r=!0}(r||void 0==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=e$(i[r],t,!0,e);n=n&&o}for(r=0;r<i.length;r++)e.b=i[r],o=e$(i[r],t,!1,e),n=n&&o}return n}return eQ(t,new eL(e,this))}function e1(t){return(t=t[eK])instanceof eF?t:null}var e2="__closure_events_fn_"+(1e9*Math.random()>>>0);function e3(t){return m(t)?t:(t[e2]||(t[e2]=function(e){return t.handleEvent(e)}),t[e2])}function e4(){eA.call(this),this.v=new eF(this),this.bc=this,this.hb=null}function e6(t,e,n,i,r){t.v.add(String(e),n,!1,i,r)}function e5(t,e,n,i,r){t.v.add(String(e),n,!0,i,r)}function e8(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&&eq(t.v,a),r=!1!==s.call(u,i)&&r}}return r&&!i.defaultPrevented}function e7(t,e,n){if(m(t))n&&(t=E(t,n));else if(t&&"function"==typeof t.handleEvent)t=E(t.handleEvent,t);else throw Error("Invalid listener argument");return 2147483647<Number(e)?-1:c.setTimeout(t,e||0)}function e9(t){var e=null;return new er(function(n,i){-1==(e=e7(function(){n(void 0)},t))&&i(Error("Failed to schedule timer."))}).o(function(t){throw c.clearTimeout(e),t})}function nt(t){if(t.X&&"function"==typeof t.X)return t.X();if("string"==typeof t)return t.split("");if(v(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 ne(t){if(t.Y&&"function"==typeof t.Y)return t.Y();if(!t.X||"function"!=typeof t.X){if(v(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 nn(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 nn)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 ni(t){if(t.c!=t.a.length){for(var e=0,n=0;e<t.a.length;){var i=t.a[e];nr(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;)nr(r,i=t.a[e])||(t.a[n++]=i,r[i]=1),e++;t.a.length=n}}function nr(t,e){return Object.prototype.hasOwnProperty.call(t,e)}S(e4,eA),e4.prototype[eM]=!0,e4.prototype.addEventListener=function(t,e,n,i){eW(this,t,e,n,i)},e4.prototype.removeEventListener=function(t,e,n,i){eJ(this,t,e,n,i)},e4.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 eP(t,n);else if(t instanceof eP)t.target=t.target||n;else{var r=t;tm(t=new eP(i,n),r)}if(r=!0,e)for(var o=e.length-1;0<=o;o--){var a=t.b=e[o];r=e8(a,i,!0,t)&&r}if(r=e8(a=t.b=n,i,!0,t)&&r,r=e8(a,i,!1,t)&&r,e)for(o=0;o<e.length;o++)r=e8(a=t.b=e[o],i,!1,t)&&r;return r},e4.prototype.Da=function(){if(e4.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++)eV(n[i]);delete e.a[t],e.b--}}this.hb=null},(r=nn.prototype).X=function(){ni(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},r.Y=function(){return ni(this),this.a.concat()},r.clear=function(){this.b={},this.c=this.a.length=0},r.get=function(t,e){return nr(this.b,t)?this.b[t]:e},r.set=function(t,e){nr(this.b,t)||(this.c++,this.a.push(t)),this.b[t]=e},r.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 no=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function na(t,e){var n;this.a=this.l=this.c="",this.g=null,this.h=this.f="",this.i=!1,t instanceof na?(this.i=void 0!==e?e:t.i,ns(this,t.c),this.l=t.l,this.a=t.a,nu(this,t.g),this.f=t.f,nc(this,n_(t.b)),this.h=t.h):t&&(n=String(t).match(no))?(this.i=!!e,ns(this,n[1]||"",!0),this.l=np(n[2]||""),this.a=np(n[3]||"",!0),nu(this,n[4]),this.f=np(n[5]||"",!0),nc(this,n[6]||"",!0),this.h=np(n[7]||"")):(this.i=!!e,this.b=new nT(null,this.i))}function ns(t,e,n){t.c=n?np(e,!0):e,t.c&&(t.c=t.c.replace(/:$/,""))}function nu(t,e){if(e){if(isNaN(e=Number(e))||0>e)throw Error("Bad port number "+e);t.g=e}else t.g=null}function nc(t,e,n){var i,r;e instanceof nT?(t.b=e,i=t.b,(r=t.i)&&!i.f&&(nE(i),i.c=null,i.a.forEach(function(t,e){var n=e.toLowerCase();e!=n&&(nA(this,e),nN(this,n,t))},i)),i.f=r):(n||(e=nv(e,nw)),t.b=new nT(e,t.i))}function nh(t,e,n){t.b.set(e,n)}function nl(t,e){return t.b.get(e)}function nf(t){return t instanceof na?new na(t):new na(t,void 0)}function nd(t,e,n,i){var r=new na(null,void 0);return t&&ns(r,t),e&&(r.a=e),n&&nu(r,n),i&&(r.f=i),r}function np(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function nv(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,nm),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function nm(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}na.prototype.toString=function(){var t=[],e=this.c;e&&t.push(nv(e,ng,!0),":");var n=this.a;return(n||"file"==e)&&(t.push("//"),(e=this.l)&&t.push(nv(e,ng,!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(nv(n,"/"==n.charAt(0)?ny:nb,!0))),(n=this.b.toString())&&t.push("?",n),(n=this.h)&&t.push("#",nv(n,nI)),t.join("")},na.prototype.resolve=function(t){var e=new na(this),n=!!t.c;n?ns(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)nu(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(ts(r,"./")||ts(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?nc(e,n_(t.b)):n=!!t.h,n&&(e.h=t.h),e};var ng=/[#\/\?@]/g,nb=/[#\?:]/g,ny=/[#\?]/g,nw=/[#\?@]/g,nI=/#/g;function nT(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function nE(t){t.a||(t.a=new nn,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 nk(t){var e=ne(t);if(void 0===e)throw Error("Keys are undefined");var n=new nT(null,void 0);t=nt(t);for(var i=0;i<e.length;i++){var r=e[i],o=t[i];Array.isArray(o)?nN(n,r,o):n.add(r,o)}return n}function nA(t,e){nE(t),e=nO(t,e),nr(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,nr((t=t.a).b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&ni(t)))}function nS(t,e){return nE(t),e=nO(t,e),nr(t.a.b,e)}function nN(t,e,n){nA(t,e),0<n.length&&(t.c=null,t.a.set(nO(t,e),$(n)),t.b+=n.length)}function n_(t){var e=new nT;return e.c=t.c,t.a&&(e.a=new nn(t.a),e.b=t.b),e}function nO(t,e){return e=String(e),t.f&&(e=e.toLowerCase()),e}function nC(t){var e=[];return function t(e,n,i){if(null==n)i.push("null");else{if("object"==typeof n){if(Array.isArray(n)){var r=n;n=r.length,i.push("[");for(var o="",a=0;a<n;a++)i.push(o),t(e,r[a],i),o=",";i.push("]");return}if(n instanceof String||n instanceof Number||n instanceof Boolean)n=n.valueOf();else{for(r in i.push("{"),o="",n)Object.prototype.hasOwnProperty.call(n,r)&&"function"!=typeof(a=n[r])&&(i.push(o),nL(r,i),i.push(":"),t(e,a,i),o=",");i.push("}");return}}switch(typeof n){case"string":nL(n,i);break;case"number":i.push(isFinite(n)&&!isNaN(n)?String(n):"null");break;case"boolean":i.push(String(n));break;case"function":i.push("null");break;default:throw Error("Unknown type: "+typeof n)}}}(new nR,t,e),e.join("")}function nR(){}(r=nT.prototype).add=function(t,e){nE(this),this.c=null,t=nO(this,t);var n=this.a.get(t);return n||this.a.set(t,n=[]),n.push(e),this.b+=1,this},r.clear=function(){this.a=this.c=null,this.b=0},r.forEach=function(t,e){nE(this),this.a.forEach(function(n,i){G(n,function(n){t.call(e,n,i,this)},this)},this)},r.Y=function(){nE(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},r.X=function(t){nE(this);var e=[];if("string"==typeof t)nS(this,t)&&(e=z(e,this.a.get(nO(this,t))));else{t=this.a.X();for(var n=0;n<t.length;n++)e=z(e,t[n])}return e},r.set=function(t,e){return nE(this),this.c=null,nS(this,t=nO(this,t))&&(this.b-=this.a.get(t).length),this.a.set(t,[e]),this.b+=1,this},r.get=function(t,e){return t&&0<(t=this.X(t)).length?String(t[0]):e},r.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 nD={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","	":"\\t","\v":"\\u000b"},nP=/\uffff/.test("￿")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function nL(t,e){e.push('"',t.replace(nP,function(t){var e=nD[t];return e||(e="\\u"+(65536|t.charCodeAt(0)).toString(16).substr(1),nD[t]=e),e}),'"')}function nx(){var t=n0();return tB&&!!t3&&11==t3||/Edge\/\d+/.test(t)}function nM(){return c.window&&c.window.location.href||self&&self.location&&self.location.href||""}function nj(t,e){e=e||c.window;var n="about:blank";t&&(n=tC(tL(t)||tj)),e.location.href=n}function nU(t){return!!((t=(t||n0()).toLowerCase()).match(/android/)||t.match(/webos/)||t.match(/iphone|ipad|ipod/)||t.match(/blackberry/)||t.match(/windows phone/)||t.match(/iemobile/))}function nV(t){t=t||c.window;try{t.close()}catch(t){}}function nF(t,e,n){var i,r=Math.floor(1e9*Math.random()).toString();e=e||500,n=n||600;var o=(window.screen.availHeight-n)/2,a=(window.screen.availWidth-e)/2;for(s in e={width:e,height:n,top:0<o?o:0,left:0<a?a:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},n=n0().toLowerCase(),r&&(e.target=r,ts(n,"crios/")&&(e.target="_blank")),nz(n0())==nJ&&(t=t||"http://localhost",e.scrollbars=!0),n=t||"",(t=e)||(t={}),r=window,e=n instanceof tO?n:tL(void 0!==n.href?n.href:String(n))||tj,n=t.target||n.target,o=[],t)switch(s){case"width":case"height":case"top":case"left":o.push(s+"="+t[s]);break;case"target":case"noopener":case"noreferrer":break;default:o.push(s+"="+(t[s]?1:0))}var s=o.join(",");if((tl("iPhone")&&!tl("iPod")&&!tl("iPad")||tl("iPad")||tl("iPod"))&&r.navigator&&r.navigator.standalone&&n&&"_self"!=n?(tg(s=t7(document,"A"),"HTMLAnchorElement"),e=e instanceof tO?e:tx(e),s.href=tC(e),s.setAttribute("target",n),t.noreferrer&&s.setAttribute("rel","noreferrer"),(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,r,1),s.dispatchEvent(t),s={}):t.noreferrer?(s=tF("",r,n,s),t=tC(e),s&&(tX&&ts(t,";")&&(t="'"+t.replace(/'/g,"%27")+"'"),s.opener=null,t='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+tH(t)+'">',t=(r=tT())?r.createHTML(t):t,t=new tU(t,null,tV),r=s.document)&&(r.write((i=t)instanceof tU&&i.constructor===tU?i.a:(j("expected object of type SafeHtml, got '"+i+"' of type "+p(i)),"type_error:SafeHtml")),r.close())):(s=tF(e,r,n,s))&&t.noopener&&(s.opener=null),s)try{s.focus()}catch(t){}return s}var nq=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,nH=/^[^@]+@[^@]+$/;function nK(){var t=null;return new er(function(e){"complete"==c.document.readyState?e():(t=function(){e()},eZ(window,"load",t))}).o(function(e){throw eJ(window,"load",t),e})}function nG(t){return t=t||n0(),!("file:"!==n6()&&"ionic:"!==n6()||!t.toLowerCase().match(/iphone|ipad|ipod|android/))}function nB(){var t=c.window;try{return!(!t||t==t.top)}catch(t){return!1}}function nW(){return void 0!==c.WorkerGlobalScope&&"function"==typeof c.importScripts}function nX(){return i.Z.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":i.Z.INTERNAL.hasOwnProperty("node")?"Node":nW()?"Worker":"Browser"}function nZ(){var t=nX();return"ReactNative"===t||"Node"===t}var nJ="Firefox",nY="Chrome";function nz(t){var e=t.toLowerCase();return ts(e,"opera/")||ts(e,"opr/")||ts(e,"opios/")?"Opera":ts(e,"iemobile")?"IEMobile":ts(e,"msie")||ts(e,"trident/")?"IE":ts(e,"edge/")?"Edge":ts(e,"firefox/")?nJ:ts(e,"silk/")?"Silk":ts(e,"blackberry")?"Blackberry":ts(e,"webos")?"Webos":!ts(e,"safari/")||ts(e,"chrome/")||ts(e,"crios/")||ts(e,"android")?!ts(e,"chrome/")&&!ts(e,"crios/")||ts(e,"edge/")?ts(e,"android")?"Android":(t=t.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==t.length?t[1]:"Other":nY:"Safari"}var n$={md:"FirebaseCore-web",od:"FirebaseUI-web"};function nQ(t,e){e=e||[];var n,i=[],r={};for(n in n$)r[n$[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=nX())?i=nz(r=n0()):"Worker"===i&&(i=nz(r=n0())+"-"+i),i+"/JsCore/"+t+"/"+e.join(",")}function n0(){return c.navigator&&c.navigator.userAgent||""}function n1(t,e){t=t.split("."),e=e||c;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 n2(){try{var t=c.localStorage,e=it();if(t)return t.setItem(e,"1"),t.removeItem(e),!nx()||!!c.indexedDB}catch(t){return nW()&&!!c.indexedDB}return!1}function n3(){return(n4()||"chrome-extension:"===n6()||nG())&&!nZ()&&n2()&&!nW()}function n4(){return"http:"===n6()||"https:"===n6()}function n6(){return c.location&&c.location.protocol||null}function n5(t){return!nU(t=t||n0())&&nz(t)!=nJ}function n8(t){return void 0===t?null:nC(t)}function n7(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&null!==t[e]&&void 0!==t[e]&&(n[e]=t[e]);return n}function n9(t){if(null!==t)return JSON.parse(t)}function it(t){return t||Math.floor(1e9*Math.random()).toString()}function ie(t){return!("Safari"==nz(t=t||n0())||t.toLowerCase().match(/iphone|ipad|ipod/))}function ii(){var t=c.___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 ir(t,e){if(t>e)throw Error("Short delay should be less than long delay!");this.a=t,this.c=e,t=n0(),e=nX(),this.b=nU(t)||"ReactNative"===e}function io(){var t=c.document;return!t||void 0===t.visibilityState||"visible"==t.visibilityState}function ia(t){try{var e=new Date(parseInt(t,10));if(!isNaN(e.getTime())&&!/[^0-9]/.test(t))return e.toUTCString()}catch(t){}return null}function is(){return!(!n1("fireauth.oauthhelper",c)&&!n1("fireauth.iframe",c))}ir.prototype.get=function(){var t=c.navigator;return(t&&"boolean"==typeof t.onLine&&(n4()||"chrome-extension:"===n6()||void 0!==t.connection)?t.onLine:1)?this.b?this.c:this.a:Math.min(5e3,this.a)};var iu={};function ic(t){iu[t]||(iu[t]=!0,"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(t))}try{var ih={};Object.defineProperty(ih,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(ih,"abcd",{configurable:!0,enumerable:!0,value:2}),o$=2==ih.abcd}catch(t){o$=!1}function il(t,e,n){o$?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}):t[e]=n}function id(t,e){if(e)for(var n in e)e.hasOwnProperty(n)&&il(t,n,e[n])}function ip(t){var e={};return id(e,t),e}function iv(t){var e=t;if("object"==typeof t&&null!=t)for(var n in e="length"in t?[]:{},t)il(e,n,iv(t[n]));return e}function im(t){var e=t&&(t[iI]?"phone":null);if(e&&t&&t[iw]){il(this,"uid",t[iw]),il(this,"displayName",t[ib]||null);var n=null;t[iy]&&(n=new Date(t[iy]).toUTCString()),il(this,"enrollmentTime",n),il(this,"factorId",e)}else throw new _("internal-error","Internal assert: invalid MultiFactorInfo object")}function ig(t){try{var e=new iT(t)}catch(t){e=null}return e}im.prototype.w=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var ib="displayName",iy="enrolledAt",iw="mfaEnrollmentId",iI="phoneInfo";function iT(t){im.call(this,t),il(this,"phoneNumber",t[iI])}function iE(t){var e={},n=t[iN],i=t[iO],r=t[iC];if(t=ig(t[i_]),!r||r!=iA&&r!=iS&&!n||r==iS&&!i||r==ik&&!t)throw Error("Invalid checkActionCode response!");r==iS?(e[iD]=n||null,e[iL]=n||null,e[iR]=i):(e[iD]=i||null,e[iL]=i||null,e[iR]=n||null),e[iP]=t||null,il(this,iM,r),il(this,ix,iv(e))}S(iT,im),iT.prototype.w=function(){var t=iT.bb.w.call(this);return t.phoneNumber=this.phoneNumber,t};var ik="REVERT_SECOND_FACTOR_ADDITION",iA="EMAIL_SIGNIN",iS="VERIFY_AND_CHANGE_EMAIL",iN="email",i_="mfaInfo",iO="newEmail",iC="requestType",iR="email",iD="fromEmail",iP="multiFactorInfo",iL="previousEmail",ix="data",iM="operation";function ij(t){var e=nl(t=nf(t),iU)||null,n=nl(t,iV)||null,i=nl(t,iH)||null;if(i=i&&iG[i]||null,!e||!n||!i)throw new _("argument-error",iU+", "+iV+"and "+iH+" are required in a valid action code URL.");id(this,{apiKey:e,operation:i,code:n,continueUrl:nl(t,iF)||null,languageCode:nl(t,iq)||null,tenantId:nl(t,iK)||null})}var iU="apiKey",iV="oobCode",iF="continueUrl",iq="languageCode",iH="mode",iK="tenantId",iG={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:ik,signIn:iA,verifyAndChangeEmail:iS,verifyEmail:"VERIFY_EMAIL"};function iB(t){try{return new ij(t)}catch(t){return null}}function iW(t){var e=t[iz];if(void 0===e)throw new _("missing-continue-uri");if("string"!=typeof e||"string"==typeof e&&!e.length)throw new _("invalid-continue-uri");this.h=e,this.b=this.a=null,this.g=!1;var n=t[iX];if(n&&"object"==typeof n){e=n[i0];var i=n[i$];if(n=n[iQ],"string"==typeof e&&e.length){if(this.a=e,void 0!==i&&"boolean"!=typeof i)throw new _("argument-error",i$+" property must be a boolean when specified.");if(this.g=!!i,void 0!==n&&("string"!=typeof n||"string"==typeof n&&!n.length))throw new _("argument-error",iQ+" property must be a non empty string when specified.");this.b=n||null}else{if(void 0!==e)throw new _("argument-error",i0+" property must be a non empty string when specified.");if(void 0!==i||void 0!==n)throw new _("missing-android-pkg-name")}}else if(void 0!==n)throw new _("argument-error",iX+" property must be a non null object when specified.");if(this.f=null,(e=t[iY])&&"object"==typeof e){if("string"==typeof(e=e[i1])&&e.length)this.f=e;else if(void 0!==e)throw new _("argument-error",i1+" property must be a non empty string when specified.")}else if(void 0!==e)throw new _("argument-error",iY+" property must be a non null object when specified.");if(void 0!==(e=t[iJ])&&"boolean"!=typeof e)throw new _("argument-error",iJ+" property must be a boolean when specified.");if(this.c=!!e,void 0!==(t=t[iZ])&&("string"!=typeof t||"string"==typeof t&&!t.length))throw new _("argument-error",iZ+" property must be a non empty string when specified.");this.i=t||null}var iX="android",iZ="dynamicLinkDomain",iJ="handleCodeInApp",iY="iOS",iz="url",i$="installApp",iQ="minimumVersion",i0="packageName",i1="bundleId";function i2(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 i3=null;function i4(t){var e=i5(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 i6(t){try{return new i4(t)}catch(t){return null}}function i5(t){if(!t||3!=(t=t.split(".")).length)return null;t=t[1];for(var e=(4-t.length%4)%4,n=0;n<e;n++)t+=".";try{var i,r,o=(i=t,r=[],function(t,e){function n(e){for(;i<t.length;){var n=t.charAt(i++),r=i3[n];if(null!=r)return r;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return e}(function(){if(!i3){i3={};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===i3[o]&&(i3[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))}}(i,function(t){r.push(t)}),r);for(t=[],n=e=0;e<o.length;){var a=o[e++];if(128>a)t[n++]=String.fromCharCode(a);else if(191<a&&224>a){var s=o[e++];t[n++]=String.fromCharCode((31&a)<<6|63&s)}else if(239<a&&365>a){s=o[e++];var u=o[e++],c=o[e++],h=((7&a)<<18|(63&s)<<12|(63&u)<<6|63&c)-65536;t[n++]=String.fromCharCode(55296+(h>>10)),t[n++]=String.fromCharCode(56320+(1023&h))}else s=o[e++],u=o[e++],t[n++]=String.fromCharCode((15&a)<<12|(63&s)<<6|63&u)}return JSON.parse(t.join(""))}catch(t){}return null}i4.prototype.T=function(){return this.f},i4.prototype.l=function(){return this.c},i4.prototype.toString=function(){return this.h};var i8="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),i7=["client_id","response_type","scope","redirect_uri","state"],i9={nd:{Ja:"locale",va:700,ua:600,fa:"facebook.com",Ya:i7},pd:{Ja:null,va:500,ua:750,fa:"github.com",Ya:i7},qd:{Ja:"hl",va:515,ua:680,fa:"google.com",Ya:i7},wd:{Ja:"lang",va:485,ua:705,fa:"twitter.com",Ya:i8},kd:{Ja:"locale",va:640,ua:600,fa:"apple.com",Ya:[]}};function rt(t){for(var e in i9)if(i9[e].fa==t)return i9[e];return null}function re(t){var e={};e["facebook.com"]=ra,e["google.com"]=ru,e["github.com"]=rs,e["twitter.com"]=rc;var n=t&&t[ri];try{if(n)return e[n]?new e[n](t):new ro(t);if(void 0!==t[rn])return new rr(t)}catch(t){}return null}var rn="idToken",ri="providerId";function rr(t){var e=t[ri];if(!e&&t[rn]){var n=i6(t[rn]);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),il(this,"providerId",e),il(this,"isNewUser",n)}function ro(t){rr.call(this,t),il(this,"profile",iv((t=n9(t.rawUserInfo||"{}"))||{}))}function ra(t){if(ro.call(this,t),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function rs(t){if(ro.call(this,t),"github.com"!=this.providerId)throw Error("Invalid provider ID!");il(this,"username",this.profile&&this.profile.login||null)}function ru(t){if(ro.call(this,t),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function rc(t){if(ro.call(this,t),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");il(this,"username",t.screenName||null)}function rh(t){var e=nf(t),n=nl(e,"link"),i=nl(nf(n),"link");return e=nl(e,"deep_link_id"),nl(nf(e),"link")||e||i||n||t}function rl(t,e){if(!t&&!e)throw new _("internal-error","Internal assert: no raw session string available");if(t&&e)throw new _("internal-error","Internal assert: unable to determine the session type");this.a=t||null,this.b=e||null,this.type=this.a?rf:rd}S(ro,rr),S(ra,ro),S(rs,ro),S(ru,ro),S(rc,ro);var rf="enroll",rd="signin";function rp(){}function rv(t,e){return t.then(function(t){if(t[o1]){var n=i6(t[o1]);if(!n||e!=n.i)throw new _("user-mismatch");return t}throw new _("user-mismatch")}).o(function(t){throw t&&t.code&&t.code==C+"user-not-found"?new _("user-mismatch"):t})}function rm(t,e){if(e)this.a=e;else throw new _("internal-error","failed to construct a credential");il(this,"providerId",t),il(this,"signInMethod",t)}function rg(t){return{pendingToken:t.a,requestUri:"http://localhost"}}function rb(t){if(t&&t.providerId&&t.signInMethod&&0==t.providerId.indexOf("saml.")&&t.pendingToken)try{return new rm(t.providerId,t.pendingToken)}catch(t){}return null}function ry(t,e,n){if(this.a=null,e.idToken||e.accessToken)e.idToken&&il(this,"idToken",e.idToken),e.accessToken&&il(this,"accessToken",e.accessToken),e.nonce&&!e.pendingToken&&il(this,"nonce",e.nonce),e.pendingToken&&(this.a=e.pendingToken);else if(e.oauthToken&&e.oauthTokenSecret)il(this,"accessToken",e.oauthToken),il(this,"secret",e.oauthTokenSecret);else throw new _("internal-error","failed to construct a credential");il(this,"providerId",t),il(this,"signInMethod",n)}function rw(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:nk(e).toString(),requestUri:"http://localhost"},t.a&&(delete e.postBody,e.pendingToken=t.a),e}function rI(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 ry(t.providerId,e,t.signInMethod)}catch(t){}}return null}function rT(t,e){this.Qc=e||[],id(this,{providerId:t,isOAuthProvider:!0}),this.Jb={},this.qb=(rt(t)||{}).Ja||null,this.pb=null}function rE(t){if("string"!=typeof t||0!=t.indexOf("saml."))throw new _("argument-error",'SAML provider IDs must be prefixed with "saml."');rT.call(this,t,[])}function rk(t){rT.call(this,t,i7),this.a=[]}function rA(){rk.call(this,"facebook.com")}function rS(t){if(!t)throw new _("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return g(t)&&(e=t.accessToken),(new rA).credential({accessToken:e})}function rN(){rk.call(this,"github.com")}function r_(t){if(!t)throw new _("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return g(t)&&(e=t.accessToken),(new rN).credential({accessToken:e})}function rO(){rk.call(this,"google.com"),this.Ca("profile")}function rC(t,e){var n=t;return g(t)&&(n=t.idToken,e=t.accessToken),(new rO).credential({idToken:n,accessToken:e})}function rR(){rT.call(this,"twitter.com",i8)}function rD(t,e){var n=t;if(g(n)||(n={oauthToken:t,oauthTokenSecret:e}),!n.oauthToken||!n.oauthTokenSecret)throw new _("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new ry("twitter.com",n,"twitter.com")}function rP(t,e,n){this.a=t,this.f=e,il(this,"providerId","password"),il(this,"signInMethod",n===rx.EMAIL_LINK_SIGN_IN_METHOD?rx.EMAIL_LINK_SIGN_IN_METHOD:rx.EMAIL_PASSWORD_SIGN_IN_METHOD)}function rL(t){return t&&t.email&&t.password?new rP(t.email,t.password,t.signInMethod):null}function rx(){id(this,{providerId:"password",isOAuthProvider:!1})}function rM(t,e){if(!(e=rj(e)))throw new _("argument-error","Invalid email link!");return new rP(t,e.code,rx.EMAIL_LINK_SIGN_IN_METHOD)}function rj(t){return(t=iB(t=rh(t)))&&t.operation===iA?t:null}function rU(t){if(!(t.fb&&t.eb||t.La&&t.ea))throw new _("internal-error");this.a=t,il(this,"providerId","phone"),this.fa="phone",il(this,"signInMethod","phone")}function rV(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 rU(e)}return null}function rF(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 rq(t){try{this.a=t||i.Z.auth()}catch(t){throw new _("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().")}id(this,{providerId:"phone",isOAuthProvider:!1})}function rH(t,e){if(!t)throw new _("missing-verification-id");if(!e)throw new _("missing-verification-code");return new rU({fb:t,eb:e})}function rK(t){if(t.temporaryProof&&t.phoneNumber)return new rU({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 rC(o,n);case"facebook.com":return rS(n);case"github.com":return r_(n);case"twitter.com":return rD(n,i);default:return n||i||o||a?a?0==e.indexOf("saml.")?new rm(e,a):new ry(e,{pendingToken:a,idToken:t.oauthIdToken,accessToken:t.oauthAccessToken},e):new rk(e).credential({idToken:o,accessToken:n,rawNonce:r}):null}}catch(t){return null}}function rG(t){if(!t.isOAuthProvider)throw new _("invalid-oauth-provider")}function rB(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){if(this.g&&this.a||this.g&&!this.f)throw new _("invalid-auth-event")}else throw new _("invalid-auth-event")}function rW(t){return(t=t||{}).type?new rB(t.type,t.eventId,t.urlResponse,t.sessionId,t.error&&O(t.error),t.postBody,t.tenantId):null}function rX(){this.b=null,this.a=[]}rl.prototype.Ha=function(){return this.a?el(this.a):el(this.b)},rl.prototype.w=function(){return this.type==rf?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},rp.prototype.ka=function(){},rp.prototype.b=function(){},rp.prototype.c=function(){},rp.prototype.w=function(){},rm.prototype.ka=function(t){return ad(t,rg(this))},rm.prototype.b=function(t,e){var n=rg(this);return n.idToken=e,ap(t,n)},rm.prototype.c=function(t,e){return rv(av(t,rg(this)),e)},rm.prototype.w=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},ry.prototype.ka=function(t){return ad(t,rw(this))},ry.prototype.b=function(t,e){var n=rw(this);return n.idToken=e,ap(t,n)},ry.prototype.c=function(t,e){return rv(av(t,rw(this)),e)},ry.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},rT.prototype.Ka=function(t){return this.Jb=tp(t),this},S(rE,rT),S(rk,rT),rk.prototype.Ca=function(t){return Z(this.a,t)||this.a.push(t),this},rk.prototype.Rb=function(){return $(this.a)},rk.prototype.credential=function(t,e){var n;if(!(n=g(t)?{idToken:t.idToken||null,accessToken:t.accessToken||null,nonce:t.rawNonce||null}:{idToken:t||null,accessToken:e||null}).idToken&&!n.accessToken)throw new _("argument-error","credential failed: must provide the ID token and/or the access token.");return new ry(this.providerId,n,this.providerId)},S(rA,rk),il(rA,"PROVIDER_ID","facebook.com"),il(rA,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),S(rN,rk),il(rN,"PROVIDER_ID","github.com"),il(rN,"GITHUB_SIGN_IN_METHOD","github.com"),S(rO,rk),il(rO,"PROVIDER_ID","google.com"),il(rO,"GOOGLE_SIGN_IN_METHOD","google.com"),S(rR,rT),il(rR,"PROVIDER_ID","twitter.com"),il(rR,"TWITTER_SIGN_IN_METHOD","twitter.com"),rP.prototype.ka=function(t){return this.signInMethod==rx.EMAIL_LINK_SIGN_IN_METHOD?aY(t,aE,{email:this.a,oobCode:this.f}):aY(t,aB,{email:this.a,password:this.f})},rP.prototype.b=function(t,e){return this.signInMethod==rx.EMAIL_LINK_SIGN_IN_METHOD?aY(t,ak,{idToken:e,email:this.a,oobCode:this.f}):aY(t,aj,{idToken:e,email:this.a,password:this.f})},rP.prototype.c=function(t,e){return rv(this.ka(t),e)},rP.prototype.w=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},id(rx,{PROVIDER_ID:"password"}),id(rx,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),id(rx,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),rU.prototype.ka=function(t){return t.gb(rF(this))},rU.prototype.b=function(t,e){var n=rF(this);return n.idToken=e,aY(t,aX,n)},rU.prototype.c=function(t,e){var n=rF(this);return n.operation="REAUTH",rv(t=aY(t,aZ,n),e)},rU.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},rq.prototype.gb=function(t,e){var n=this.a.a;return el(e.verify()).then(function(i){if("string"!=typeof i)throw new _("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");if("recaptcha"===e.type){var r=g(t)?t.session:null,o=g(t)?t.phoneNumber:t;return(r&&r.type==rf?r.Ha().then(function(t){return aY(n,aV,{idToken:t,phoneEnrollmentInfo:{phoneNumber:o,recaptchaToken:i}}).then(function(t){return t.phoneSessionInfo.sessionInfo})}):r&&r.type==rd?r.Ha().then(function(e){return aY(n,aF,{mfaPendingCredential:e,mfaEnrollmentId:t.multiFactorHint&&t.multiFactorHint.uid||t.multiFactorUid,phoneSignInInfo:{recaptchaToken:i}}).then(function(t){return t.phoneResponseInfo.sessionInfo})}):aY(n,ax,{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})}throw new _("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')})},id(rq,{PROVIDER_ID:"phone"}),id(rq,{PHONE_SIGN_IN_METHOD:"phone"}),rB.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("-")},rB.prototype.T=function(){return this.h},rB.prototype.w=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.w()}};var rZ=null;function rJ(t){var e="unauthorized-domain",n=void 0,i=nf(t);t=i.a,"chrome-extension"==(i=i.c)?n=tq("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=tq("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",_.call(this,e,n)}function rY(t,e,n){_.call(this,t,n),(t=e||{}).Kb&&il(this,"email",t.Kb),t.ea&&il(this,"phoneNumber",t.ea),t.credential&&il(this,"credential",t.credential),t.$b&&il(this,"tenantId",t.$b)}function rz(t){if(t.code){var e=t.code||"";0==e.indexOf(C)&&(e=e.substring(C.length));var n={credential:rK(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 _(e,t.message||void 0);return new rY(e,n,t.message)}return null}function r$(){}function rQ(t){return t.c||(t.c=t.b())}function r0(){}function r1(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(t){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return t.f}function r2(){}function r3(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=E(this.qc,this),this.a.onerror=E(this.Tb,this),this.a.onprogress=E(this.rc,this),this.a.ontimeout=E(this.vc,this)}function r4(t,e){t.readyState=e,t.onreadystatechange&&t.onreadystatechange()}function r6(t,e,n){this.reset(t,e,n,void 0,void 0)}S(rJ,_),S(rY,_),rY.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&&tm(t,e),t},rY.prototype.toJSON=function(){return this.w()},r$.prototype.c=null,S(r0,r$),r0.prototype.a=function(){var t=r1(this);return t?new ActiveXObject(t):new XMLHttpRequest},r0.prototype.b=function(){var t={};return r1(this)&&(t[0]=!0,t[1]=!0),t},oQ=new r0,S(r2,r$),r2.prototype.a=function(){var t=new XMLHttpRequest;if("withCredentials"in t)return t;if("undefined"!=typeof XDomainRequest)return new r3;throw Error("Unsupported browser")},r2.prototype.b=function(){return{}},(r=r3.prototype).open=function(t,e,n){if(null!=n&&!n)throw Error("Only async requests are supported.");this.a.open(t,e)},r.send=function(t){if(t){if("string"==typeof t)this.a.send(t);else throw Error("Only string data is supported")}else this.a.send()},r.abort=function(){this.a.abort()},r.setRequestHeader=function(){},r.getResponseHeader=function(t){return"content-type"==t.toLowerCase()?this.a.contentType:""},r.qc=function(){this.status=200,this.response=this.responseText=this.a.responseText,r4(this,4)},r.Tb=function(){this.status=500,this.response=this.responseText="",r4(this,4)},r.vc=function(){this.Tb()},r.rc=function(){this.status=200,r4(this,1)},r.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},r6.prototype.a=null;var r5=0;function r8(t){this.f=t,this.b=this.c=this.a=null}function r7(t,e){this.name=t,this.value=e}r6.prototype.reset=function(t,e,n,i,r){"number"==typeof r||r5++,i||A(),delete this.a},r7.prototype.toString=function(){return this.name};var r9=new r7("SEVERE",1e3),ot=new r7("WARNING",900),oe=new r7("CONFIG",700),on=new r7("FINE",500);r8.prototype.log=function(t,e,n){if(t.value>=function t(e){return e.c?e.c:e.a?t(e.a):(j("Root logger has no level set."),null)}(this).value)for(m(e)&&(e=e()),t=new r6(t,String(e),this.f),n&&(t.a=n),n=this;n;)n=n.a};var oi={},or=null;function oo(t){if(or||(or=new r8(""),oi[""]=or,or.c=oe),!(e=oi[t])){e=new r8(t);var e,n=t.lastIndexOf("."),i=t.substr(n+1);(n=oo(t.substr(0,n))).b||(n.b={}),n.b[i]=e,e.a=n,oi[t]=e}return e}function oa(t,e){t&&t.log(on,e,void 0)}function os(t){this.f=t}function ou(t){e4.call(this),this.u=t,this.h=void 0,this.readyState=oc,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=oo("goog.net.FetchXmlHttp"),this.m=this.c=this.g=null}S(os,r$),os.prototype.a=function(){return new ou(this.f)},os.prototype.b=(oG={},function(){return oG}),S(ou,e4);var oc=0;function oh(t){t.c.read().then(t.pc.bind(t)).catch(t.Va.bind(t))}function ol(t){t.readyState=4,t.g=null,t.c=null,t.m=null,of(t)}function of(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function od(t){e4.call(this),this.headers=new nn,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=op,this.u=this.S=!1}(r=ou.prototype).open=function(t,e){if(this.readyState!=oc)throw this.abort(),Error("Error reopening a connection");this.s=t,this.f=e,this.readyState=1,of(this)},r.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))},r.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,ol(this)),this.readyState=oc},r.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,of(this)),this.a&&(this.readyState=3,of(this),this.a&&("arraybuffer"===this.responseType?t.arrayBuffer().then(this.sc.bind(this),this.Va.bind(this)):void 0!==c.ReadableStream&&"body"in t?(this.response=this.responseText="",this.c=t.body.getReader(),this.m=new TextDecoder,oh(this)):t.text().then(this.tc.bind(this),this.Va.bind(this)))))},r.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?ol(this):of(this),3==this.readyState&&oh(this)}},r.tc=function(t){this.a&&(this.response=this.responseText=t,ol(this))},r.sc=function(t){this.a&&(this.response=t,ol(this))},r.Va=function(t){var e=this.i;e&&e.log(ot,"Failed to fetch url "+this.f,t instanceof Error?t:Error(t)),this.a&&ol(this)},r.setRequestHeader=function(t,e){this.l.append(t,e)},r.getResponseHeader=function(t){return this.b?this.b.get(t.toLowerCase())||"":((t=this.i)&&t.log(ot,"Attempting to get response header but no headers have been received for url: "+this.f,void 0),"")},r.getAllResponseHeaders=function(){if(!this.b){var t=this.i;return t&&t.log(ot,"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;)n=n.value,t.push(n[0]+": "+n[1]),n=e.next();return t.join("\r\n")},Object.defineProperty(ou.prototype,"withCredentials",{get:function(){return"include"===this.h},set:function(t){this.h=t?"include":"same-origin"}}),S(od,e4);var op="";od.prototype.b=oo("goog.net.XhrIo");var ov=/^https?$/i,om=["POST","PUT"];function og(t){return"content-type"==t.toLowerCase()}function ob(t,e){t.c=!1,t.a&&(t.f=!0,t.a.abort(),t.f=!1),t.h=e,oy(t),oI(t)}function oy(t){t.J||(t.J=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function ow(t){if(t.c&&void 0!==u){if(t.C[1]&&4==oE(t)&&2==ok(t))oa(t.b,oA(t,"Local request error detected and ignored"));else if(t.i&&4==oE(t))e7(t.Wb,0,t);else if(t.dispatchEvent("readystatechange"),4==oE(t)){oa(t.b,oA(t,"Request complete")),t.c=!1;try{var e,n,i=ok(t);t:switch(i){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break t;default:r=!1}if(!(e=r)){if(n=0===i){var o=String(t.l).match(no)[1]||null;if(!o&&c.self&&c.self.location){var a=c.self.location.protocol;o=a.substr(0,a.length-1)}n=!ov.test(o?o.toLowerCase():"")}e=n}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{try{var s=2<oE(t)?t.a.statusText:""}catch(e){oa(t.b,"Can not get status: "+e.message),s=""}t.h=s+" ["+ok(t)+"]",oy(t)}}finally{oI(t)}}}}function oI(t,e){if(t.a){oT(t);var n=t.a,i=t.C[0]?d:null;t.a=null,t.C=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=i}catch(e){(t=t.b)&&t.log(r9,"Problem encountered resetting onreadystatechange: "+e.message,void 0)}}}function oT(t){t.a&&t.u&&(t.a.ontimeout=null),t.s&&(c.clearTimeout(t.s),t.s=null)}function oE(t){return t.a?t.a.readyState:0}function ok(t){try{return 2<oE(t)?t.a.status:-1}catch(t){return -1}}function oA(t,e){return e+" ["+t.P+" "+t.l+" "+ok(t)+"]"}function oS(t){this.g=[],this.u=oj,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 oN(t,e,n){t.a=!0,t.c=n,t.f=!e,oR(t)}function o_(t){if(t.a){if(!t.v)throw new oD(t);t.v=!1}}function oO(t,e,n,i){t.g.push([e,n,i]),t.a&&oR(t)}function oC(t){return X(t.g,function(t){return m(t[1])})}function oR(t){if(t.h&&t.a&&oC(t)){var e=t.h,n=ox[e];n&&(c.clearTimeout(n.a),delete ox[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 s=o.call(r||t.s,e);void 0!==s&&(t.f=t.f&&(s==e||s instanceof Error),t.c=e=s),(L(e)||"function"==typeof c.Promise&&e instanceof c.Promise)&&(i=!0,t.i=!0)}catch(i){e=i,t.f=!0,oC(t)||(n=!0)}}t.c=e,i&&(s=E(t.m,t,!0),i=E(t.m,t,!1),e instanceof oS?(oO(e,s,i),e.C=!0):e.then(s,i)),n&&(ox[(e=new oL(e)).a]=e,t.h=e.a)}function oD(){x.call(this)}function oP(){x.call(this)}function oL(t){this.a=c.setTimeout(E(this.c,this),0),this.b=t}(r=od.prototype).Ma=function(){void 0!==u&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",oa(this.b,oA(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},r.abort=function(){this.a&&this.c&&(oa(this.b,oA(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),oI(this))},r.Da=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),oI(this,!0)),od.bb.Da.call(this)},r.Wb=function(){this.ya||(this.N||this.i||this.f?ow(this):this.Jc())},r.Jc=function(){ow(this)},r.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case op: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(r9,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(t){return oa(this.b,"Can not get response: "+t.message),null}},oS.prototype.cancel=function(t){if(this.a)this.c instanceof oS&&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 oP(this),o_(this),oN(this,!1,t))}},oS.prototype.m=function(t,e){this.i=!1,oN(this,t,e)},oS.prototype.then=function(t,e,n){var i,r,o=new er(function(t,e){i=t,r=e});return oO(this,i,function(t){t instanceof oP?o.cancel():r(t)}),o.then(t,e,n)},oS.prototype.$goog_Thenable=!0,S(oD,x),oD.prototype.message="Deferred has already fired",oD.prototype.name="AlreadyCalledError",S(oP,x),oP.prototype.message="Deferred was canceled",oP.prototype.name="CanceledError",oL.prototype.c=function(){throw delete ox[this.a],this.b};var ox={};function oM(t){var e,n,i,r={},o=r.document||document,a=tk(t).toString(),s=t7(document,"SCRIPT"),u={Xb:s,Ma:void 0},h=new oS(u),d=null,p=null!=r.timeout?r.timeout:5e3;return 0<p&&(d=window.setTimeout(function(){oU(s,!0);var t=new oq(oF,"Timeout reached for loading script "+a);o_(h),oN(h,!1,t)},p),u.Ma=d),s.onload=s.onreadystatechange=function(){s.readyState&&"loaded"!=s.readyState&&"complete"!=s.readyState||(oU(s,r.xd||!1,d),o_(h),oN(h,!0,null))},s.onerror=function(){oU(s,!0,d);var t=new oq(oV,"Error while loading script "+a);o_(h),oN(h,!1,t)},tm(u=r.attributes||{},{type:"text/javascript",charset:"UTF-8"}),t5(s,u),n=s,i=t,tg(n,"HTMLScriptElement"),n.src=tk(i),(i=n.ownerDocument&&n.ownerDocument.defaultView)&&i!=c?i=f(i.document):(null===l&&(l=f(c.document)),i=l),i&&n.setAttribute("nonce",i),((e=(o||document).getElementsByTagName("HEAD"))&&0!=e.length?e[0]:o.documentElement).appendChild(s),h}function oj(){if(this&&this.Xb){var t=this.Xb;t&&"SCRIPT"==t.tagName&&oU(t,!0,this.Ma)}}function oU(t,e,n){null!=n&&c.clearTimeout(n),t.onload=d,t.onerror=d,t.onreadystatechange=d,e&&window.setTimeout(function(){t&&t.parentNode&&t.parentNode.removeChild(t)},0)}var oV=0,oF=1;function oq(t,e){var n="Jsloader error (code #"+t+")";e&&(n+=": "+e),x.call(this,n),this.code=t}function oH(t){this.f=t}function oK(t,e,n){if(this.c=t,t=e||{},this.l=t.secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.m=t.secureTokenTimeout||o2,this.g=tp(t.secureTokenHeaders||o3),this.h=t.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.i=t.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/",this.v=t.firebaseTimeout||o4,this.a=tp(t.firebaseHeaders||o6),n&&(this.a["X-Client-Version"]=n,this.g["X-Client-Version"]=n),n="Node"==nX(),!(n=c.XMLHttpRequest||n&&i.Z.INTERNAL.node&&i.Z.INTERNAL.node.XMLHttpRequest)&&!nW())throw new _("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,nW()?this.f=new os(self):nZ()?this.f=new oH(n):this.f=new r2,this.b=null}S(oq,x),S(oH,r$),oH.prototype.a=function(){return new this.f},oH.prototype.b=function(){return{}};var oG,oB,oW,oX,oZ,oJ,oY,oz,o$,oQ,o0,o1="idToken",o2=new ir(3e4,6e4),o3={"Content-Type":"application/x-www-form-urlencoded"},o4=new ir(3e4,6e4),o6={"Content-Type":"application/json"};function o5(t,e){e?t.a["X-Firebase-Locale"]=e:delete t.a["X-Firebase-Locale"]}function o8(t,e){e&&(t.l=o7("https://securetoken.googleapis.com/v1/token",e),t.h=o7("https://www.googleapis.com/identitytoolkit/v3/relyingparty/",e),t.i=o7("https://identitytoolkit.googleapis.com/v2/",e))}function o7(t,e){return t=nf(t),e=nf(e.url),t.f=t.a+t.f,ns(t,e.c),t.a=e.a,nu(t,e.g),t.toString()}function o9(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 at(t,e,n,i,r,o,a){var s;!((!(s=nz(s=n0())!=nY?null:(s=s.match(/\sChrome\/(\d+)/i))&&2==s.length?parseInt(s[1],10):null)||!(30>s))&&(!tB||!t3||9<t3)||nW())?(o0||(o0=new er(function(t,e){var n,i;n=t,i=e,((window.gapi||{}).client||{}).request?n():(c[an]=function(){((window.gapi||{}).client||{}).request?n():i(Error("CORS_UNSUPPORTED"))},oO(oM(tA(ae,{onload:an})),null,function(){i(Error("CORS_UNSUPPORTED"))},void 0))})),t=E(t.s,t)):t=E(t.u,t),t(e,n,i,r,o,a)}oK.prototype.T=function(){return this.b},oK.prototype.u=function(t,e,n,i,r,o){if(nW()&&(void 0===c.fetch||void 0===c.Headers||void 0===c.Request))throw new _("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 od(this.f);if(o){a.g=Math.max(0,o);var s=setTimeout(function(){a.dispatchEvent("timeout")},o)}e6(a,"complete",function(){s&&clearTimeout(s);var t=null;try{t=JSON.parse(function(t){try{return t.a?t.a.responseText:""}catch(e){return oa(t.b,"Can not get responseText: "+e.message),""}}(this))||null}catch(e){t=null}e&&e(t)}),e5(a,"ready",function(){s&&clearTimeout(s),e_(this)}),e5(a,"timeout",function(){s&&clearTimeout(s),e_(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():oQ.a(),t.C=t.D?rQ(t.D):rQ(oQ),t.a.onreadystatechange=E(t.Wb,t);try{oa(t.b,oA(t,"Opening Xhr")),t.N=!0,t.a.open(n,String(e),!0),t.N=!1}catch(e){oa(t.b,oA(t,"Error opening Xhr: "+e.message)),ob(t,e);return}e=i||"";var o,a=new nn(t.headers);r&&function(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(v(t)||"string"==typeof t)G(t,e,void 0);else for(var n=ne(t),i=nt(t),r=i.length,o=0;o<r;o++)e.call(void 0,i[o],n&&n[o],t)}(r,function(t,e){a.set(e,t)}),r=function(t){t:{for(var e=og,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]}(a.Y()),i=c.FormData&&e instanceof c.FormData,!Z(om,n)||r||i||a.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),a.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{oT(t),0<t.g&&(t.u=(o=t.a,tB&&t2(9)&&"number"==typeof o.timeout&&void 0!==o.ontimeout),oa(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=E(t.Ma,t)):t.s=e7(t.Ma,t.g,t)),oa(t.b,oA(t,"Sending request")),t.i=!0,t.a.send(e),t.i=!1}catch(e){oa(t.b,oA(t,"Send error: "+e.message)),ob(t,e)}}(a,t,n,i,r)};var ae=new tb(tI,"https://apis.google.com/js/client.js?onload=%{onload}"),an="__fcb"+Math.floor(1e6*Math.random()).toString();function ai(t,e,n,i,r,o,a){var s=nf(e+n);nh(s,"key",t.c),a&&nh(s,"cb",Date.now().toString());var u="GET"==i;if(u)for(var c in r)r.hasOwnProperty(c)&&nh(s,c,r[c]);return new er(function(e,n){at(t,s.toString(),function(t){t?t.error?n(a$(t,o||{})):e(t):n(new _("network-request-failed"))},i,u?void 0:nC(n7(r)),t.a,t.v.get())})}function ar(t){if("string"!=typeof(t=t.email)||!nH.test(t))throw new _("invalid-email")}function ao(t){"email"in t&&ar(t)}function aa(t){if(!t[o1]){if(t.mfaPendingCredential)throw new _("multi-factor-auth-required",null,tp(t));throw new _("internal-error")}}function as(t){if(t.phoneNumber||t.temporaryProof){if(!t.phoneNumber||!t.temporaryProof)throw new _("internal-error")}else{if(!t.sessionInfo)throw new _("missing-verification-id");if(!t.code)throw new _("missing-verification-code")}}oK.prototype.s=function(t,e,n,i,r){var o=this;o0.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"}})})},oK.prototype.Ab=function(){return aY(this,aU,{})},oK.prototype.Cb=function(t,e){return aY(this,aM,{idToken:t,email:e})},oK.prototype.Db=function(t,e){return aY(this,aj,{idToken:t,password:e})};var au={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function ac(t){if(!t.phoneVerificationInfo)throw new _("internal-error");if(!t.phoneVerificationInfo.sessionInfo)throw new _("missing-verification-id");if(!t.phoneVerificationInfo.code)throw new _("missing-verification-code")}function ah(t){if(!t.requestUri||!t.sessionId&&!t.postBody&&!t.pendingToken)throw new _("internal-error")}function al(t,e){return e.oauthIdToken&&e.providerId&&0==e.providerId.indexOf("oidc.")&&!e.pendingToken&&(t.sessionId?e.nonce=t.sessionId:t.postBody&&nS(t=new nT(t.postBody),"nonce")&&(e.nonce=t.get("nonce"))),e}function af(t){var e=null;if(t.needConfirmation?(t.code="account-exists-with-different-credential",e=rz(t)):"FEDERATED_USER_ID_ALREADY_LINKED"==t.errorMessage?(t.code="credential-already-in-use",e=rz(t)):"EMAIL_EXISTS"==t.errorMessage?(t.code="email-already-in-use",e=rz(t)):t.errorMessage&&(e=az(t.errorMessage)),e)throw e;aa(t)}function ad(t,e){return e.returnIdpCredential=!0,aY(t,aq,e)}function ap(t,e){return e.returnIdpCredential=!0,aY(t,aK,e)}function av(t,e){return e.returnIdpCredential=!0,e.autoCreate=!1,aY(t,aH,e)}function am(t){if(!t.oobCode)throw new _("invalid-action-code")}(r=oK.prototype).Eb=function(t,e){var n={idToken:t},i=[];return tf(au,function(t,r){var o=e[r];null===o?i.push(t):r in e&&(n[r]=o)}),i.length&&(n.deleteAttribute=i),aY(this,aM,n)},r.wb=function(t,e){return tm(t={requestType:"PASSWORD_RESET",email:t},e),aY(this,aR,t)},r.xb=function(t,e){return tm(t={requestType:"EMAIL_SIGNIN",email:t},e),aY(this,a_,t)},r.vb=function(t,e){return tm(t={requestType:"VERIFY_EMAIL",idToken:t},e),aY(this,aO,t)},r.Fb=function(t,e,n){return tm(t={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:t,newEmail:e},n),aY(this,aC,t)},r.gb=function(t){return aY(this,aW,t)},r.ob=function(t,e){return aY(this,aL,{oobCode:t,newPassword:e})},r.Sa=function(t){return aY(this,ab,{oobCode:t})},r.kb=function(t){return aY(this,ag,{oobCode:t})};var ag={endpoint:"setAccountInfo",A:am,Z:"email",B:!0},ab={endpoint:"resetPassword",A:am,G:function(t){var e=t.requestType;if(!e||!t.email&&"EMAIL_SIGNIN"!=e&&"VERIFY_AND_CHANGE_EMAIL"!=e)throw new _("internal-error")},B:!0},ay={endpoint:"signupNewUser",A:function(t){if(ar(t),!t.password)throw new _("weak-password")},G:aa,V:!0,B:!0},aw={endpoint:"createAuthUri",B:!0},aI={endpoint:"deleteAccount",O:["idToken"]},aT={endpoint:"setAccountInfo",O:["idToken","deleteProvider"],A:function(t){if(!Array.isArray(t.deleteProvider))throw new _("internal-error")}},aE={endpoint:"emailLinkSignin",O:["email","oobCode"],A:ar,G:aa,V:!0,B:!0},ak={endpoint:"emailLinkSignin",O:["idToken","email","oobCode"],A:ar,G:aa,V:!0},aA={endpoint:"accounts/mfaEnrollment:finalize",O:["idToken","phoneVerificationInfo"],A:ac,G:aa,B:!0,Na:!0},aS={endpoint:"accounts/mfaSignIn:finalize",O:["mfaPendingCredential","phoneVerificationInfo"],A:ac,G:aa,B:!0,Na:!0},aN={endpoint:"getAccountInfo"},a_={endpoint:"getOobConfirmationCode",O:["requestType"],A:function(t){if("EMAIL_SIGNIN"!=t.requestType)throw new _("internal-error");ar(t)},Z:"email",B:!0},aO={endpoint:"getOobConfirmationCode",O:["idToken","requestType"],A:function(t){if("VERIFY_EMAIL"!=t.requestType)throw new _("internal-error")},Z:"email",B:!0},aC={endpoint:"getOobConfirmationCode",O:["idToken","newEmail","requestType"],A:function(t){if("VERIFY_AND_CHANGE_EMAIL"!=t.requestType)throw new _("internal-error")},Z:"email",B:!0},aR={endpoint:"getOobConfirmationCode",O:["requestType"],A:function(t){if("PASSWORD_RESET"!=t.requestType)throw new _("internal-error");ar(t)},Z:"email",B:!0},aD={mb:!0,endpoint:"getProjectConfig",Vb:"GET"},aP={mb:!0,endpoint:"getRecaptchaParam",Vb:"GET",G:function(t){if(!t.recaptchaSiteKey)throw new _("internal-error")}},aL={endpoint:"resetPassword",A:am,Z:"email",B:!0},ax={endpoint:"sendVerificationCode",O:["phoneNumber","recaptchaToken"],Z:"sessionInfo",B:!0},aM={endpoint:"setAccountInfo",O:["idToken"],A:ao,V:!0},aj={endpoint:"setAccountInfo",O:["idToken"],A:function(t){if(ao(t),!t.password)throw new _("weak-password")},G:aa,V:!0},aU={endpoint:"signupNewUser",G:aa,V:!0,B:!0},aV={endpoint:"accounts/mfaEnrollment:start",O:["idToken","phoneEnrollmentInfo"],A:function(t){if(!t.phoneEnrollmentInfo)throw new _("internal-error");if(!t.phoneEnrollmentInfo.phoneNumber)throw new _("missing-phone-number");if(!t.phoneEnrollmentInfo.recaptchaToken)throw new _("missing-app-credential")},G:function(t){if(!t.phoneSessionInfo||!t.phoneSessionInfo.sessionInfo)throw new _("internal-error")},B:!0,Na:!0},aF={endpoint:"accounts/mfaSignIn:start",O:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],A:function(t){if(!t.phoneSignInInfo||!t.phoneSignInInfo.recaptchaToken)throw new _("missing-app-credential")},G:function(t){if(!t.phoneResponseInfo||!t.phoneResponseInfo.sessionInfo)throw new _("internal-error")},B:!0,Na:!0},aq={endpoint:"verifyAssertion",A:ah,Za:al,G:af,V:!0,B:!0},aH={endpoint:"verifyAssertion",A:ah,Za:al,G:function(t){if(t.errorMessage&&"USER_NOT_FOUND"==t.errorMessage)throw new _("user-not-found");if(t.errorMessage)throw az(t.errorMessage);aa(t)},V:!0,B:!0},aK={endpoint:"verifyAssertion",A:function(t){if(ah(t),!t.idToken)throw new _("internal-error")},Za:al,G:af,V:!0},aG={endpoint:"verifyCustomToken",A:function(t){if(!t.token)throw new _("invalid-custom-token")},G:aa,V:!0,B:!0},aB={endpoint:"verifyPassword",A:function(t){if(ar(t),!t.password)throw new _("wrong-password")},G:aa,V:!0,B:!0},aW={endpoint:"verifyPhoneNumber",A:as,G:aa,B:!0},aX={endpoint:"verifyPhoneNumber",A:function(t){if(!t.idToken)throw new _("internal-error");as(t)},G:function(t){if(t.temporaryProof)throw t.code="credential-already-in-use",rz(t);aa(t)}},aZ={Ib:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",A:as,G:aa,B:!0},aJ={endpoint:"accounts/mfaEnrollment:withdraw",O:["idToken","mfaEnrollmentId"],G:function(t){if(!!t[o1]^!!t.refreshToken)throw new _("internal-error")},B:!0,Na:!0};function aY(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 ef(new _("internal-error"));var i,r=!!e.Na,o=e.Vb||"POST";return el(n).then(e.A).then(function(){return e.V&&(n.returnSecureToken=!0),e.B&&t.b&&void 0===n.tenantId&&(n.tenantId=t.b),r?ai(t,t.i,e.endpoint,o,n,e.Ib,e.mb||!1):ai(t,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 _("internal-error");return i[e.Z]})}function az(t){return a$({error:{errors:[{message:t}],code:400,message:t}})}function a$(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 _(i[n]):null)return n;for(var r in n=t.error&&t.error.message||"",tm(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 _(i[r],e);return!e&&t&&(e=n8(t)),new _("internal-error",e)}function aQ(t){var e;this.b=t,this.a=null,this.sb=(e=this,(a3||(a3=new er(function(t,e){function n(){ii(),n1("gapi.load")("gapi.iframes",{callback:t,ontimeout:function(){ii(),e(Error("Network Error"))},timeout:a1.get()})}if(n1("gapi.iframes.Iframe"))t();else if(n1("gapi.load"))n();else{var i="__iframefcb"+Math.floor(1e6*Math.random()).toString();c[i]=function(){n1("gapi.load")?n():e(Error("Network Error"))},el(oM(i=tA(a0,{onload:i}))).o(function(){e(Error("Network Error"))})}}).o(function(t){throw a3=null,t}))).then(function(){return new er(function(t,n){n1("gapi.iframes.getContext")().open({where:document.body,url:e.b,messageHandlersFilter:n1("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},function(i){function r(){clearTimeout(o),t()}e.a=i,e.a.restyle({setHideOnLeave:!1});var o=setTimeout(function(){n(Error("Network Error"))},a2.get());i.ping(r).then(r,function(){n(Error("Network Error"))})})})}))}var a0=new tb(tI,"https://apis.google.com/js/api.js?onload=%{onload}"),a1=new ir(3e4,6e4),a2=new ir(5e3,15e3),a3=null;function a4(t,e,n,i){this.l=t,this.h=e,this.i=n,this.g=i,this.f=null,t=this.g?nd((t=nf(this.g.url)).c,t.a,t.g,"/emulator/auth/iframe"):nd("https",this.l,null,"/__/auth/iframe"),this.a=t,nh(this.a,"apiKey",this.h),nh(this.a,"appName",this.i),this.b=null,this.c=[]}function a6(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 a5(t){try{return i.Z.app(t).auth().Ga()}catch(t){return[]}}function a8(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 a7(t){var e=nM();return aY(t,aD,{}).then(function(t){return t.authorizedDomains||[]}).then(function(t){t:{var n=nf(e),i=n.c;n=n.a;for(var r=0;r<t.length;r++){var o=t[r],a=n;if(a=0==o.indexOf("chrome-extension://")?nf(o).a==a&&"chrome-extension"==i:("http"==i||"https"==i)&&(nq.test(o)?a==o:RegExp("^(.+\\."+(o=o.split(".").join("\\."))+"|"+o+")$","i").test(a))){t=!0;break t}}t=!1}if(!t)throw new rJ(nM())})}function a9(t){return t.m||(t.m=nK().then(function(){if(!t.u){var e=t.c,n=t.i,i=a5(t.b),r=new a4(t.s,t.g,t.b,t.f);r.f=e,r.b=n,r.c=$(i||[]),t.u=r.toString()}t.v=new aQ(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,n1("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})}(t.v,function(e){var n={};if(e&&e.authEvent){var i=!1;for(n=0,e=rW(e.authEvent);n<t.h.length;n++)i=t.h[n](e)||i;return(n={}).status=i?"ACK":"ERROR",el(n)}return n.status="ERROR",el(n)})}(t)})),t.m}function st(t){return t.l||(t.C=t.c?nQ(t.c,a5(t.b)):null,t.l=new oK(t.g,P(t.i),t.C),t.f&&o8(t.l,t.f)),t.l}function se(t,e,n,i,r,o,a,s,u,c,h,l){return(t=new a6(t,e,n,i,r,l)).l=o,t.g=a,t.i=s,t.b=tp(u||null),t.f=c,t.zb(h).toString()}function sn(t){if(this.a=t||i.Z.INTERNAL.reactNative&&i.Z.INTERNAL.reactNative.AsyncStorage,!this.a)throw new _("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function si(t){this.b=t,this.a={},this.f=E(this.c,this)}a4.prototype.toString=function(){return this.f?nh(this.a,"v",this.f):nA(this.a.b,"v"),this.b?nh(this.a,"eid",this.b):nA(this.a.b,"eid"),this.c.length?nh(this.a,"fw",this.c.join(",")):nA(this.a.b,"fw"),this.a.toString()},a6.prototype.zb=function(t){return this.h=t,this},a6.prototype.toString=function(){if(this.v){var t=nf(this.v.url);t=nd(t.c,t.a,t.g,"/emulator/auth/handler")}else t=nd("https",this.u,null,"/__/auth/handler");if(nh(t,"apiKey",this.s),nh(t,"appName",this.c),nh(t,"authType",this.m),this.a.isOAuthProvider){var e=this.a;try{var n=i.Z.app(this.c).auth().la()}catch(t){n=null}for(var r in e.pb=n,nh(t,"providerId",this.a.providerId),e=n7((n=this.a).Jb))e[r]=e[r].toString();r=n.Qc,e=tp(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),td(e)||nh(t,"customParameters",n8(e))}if("function"==typeof this.a.Rb&&(n=this.a.Rb()).length&&nh(t,"scopes",n.join(",")),this.l?nh(t,"redirectUrl",this.l):nA(t.b,"redirectUrl"),this.g?nh(t,"eventId",this.g):nA(t.b,"eventId"),this.i?nh(t,"v",this.i):nA(t.b,"v"),this.b)for(var s in this.b)this.b.hasOwnProperty(s)&&!nl(t,s)&&nh(t,s,this.b[s]);return this.h?nh(t,"tid",this.h):nA(t.b,"tid"),this.f?nh(t,"eid",this.f):nA(t.b,"eid"),(s=a5(this.c)).length&&nh(t,"fw",s.join(",")),t.toString()},(r=a8.prototype).Pb=function(t,e,n){var i=new _("popup-closed-by-user"),r=new _("web-storage-unsupported"),o=this,a=!1;return this.ma().then(function(){var n;(n={type:"webStorageSupport"},a9(o).then(function(){var t;return(t=o.v).sb.then(function(){return new er(function(e){t.a.send(n.type,n,e,n1("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})})}).then(function(t){if(t&&t.length&&void 0!==t[0].webStorageSupport)return t[0].webStorageSupport;throw Error()})).then(function(n){n||(t&&nV(t),e(r),a=!0)})}).o(function(){}).then(function(){if(!a)return new er(function(e){return function n(){e9(2e3).then(function(){if(t&&!t.closed)return n();e()})}()})}).then(function(){if(!a)return e9(n).then(function(){e(i)})})},r.Yb=function(){var t=n0();return!n5(t)&&!ie(t)},r.Ub=function(){return!1},r.Nb=function(t,e,n,i,r,o,a,s){if(!t)return ef(new _("popup-blocked"));if(a&&!n5())return this.ma().o(function(e){nV(t),r(e)}),i(),el();this.a||(this.a=a7(st(this)));var u=this;return this.a.then(function(){var e=u.ma().o(function(e){throw nV(t),r(e),e});return i(),e}).then(function(){rG(n),a||nj(se(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})},r.Ob=function(t,e,n,i){this.a||(this.a=a7(st(this)));var r=this;return this.a.then(function(){rG(e),nj(se(r.s,r.g,r.b,t,e,nM(),n,r.c,void 0,r.i,i,r.f))}).o(function(t){throw"auth/network-request-failed"==t.code&&(r.a=null),t})},r.ma=function(){var t=this;return a9(this).then(function(){return t.v.sb}).o(function(){throw t.a=null,new _("network-request-failed")})},r.ac=function(){return!0},r.Ea=function(t){this.h.push(t)},r.Ta=function(t){Y(this.h,function(e){return e==t})},(r=sn.prototype).get=function(t){return el(this.a.getItem(t)).then(function(t){return t&&n9(t)})},r.set=function(t,e){return el(this.a.setItem(t,n8(e)))},r.U=function(t){return el(this.a.removeItem(t))},r.ca=function(){},r.ia=function(){};var sr=[];function so(t,e,n){td(t.a)&&t.b.addEventListener("message",t.f),void 0===t.a[e]&&(t.a[e]=[]),t.a[e].push(n)}function sa(t){this.a=t}function ss(t){this.c=t,this.b=!1,this.a=[]}function su(t,e,n,i){var r,o,a,s,u=n||{},c=null;if(t.b)return ef(Error("connection_unavailable"));var h=i?800:50,l="undefined"!=typeof MessageChannel?new MessageChannel:null;return new er(function(n,i){l?(r=Math.floor(1e20*Math.random()).toString(),l.port1.start(),a=setTimeout(function(){i(Error("unsupported_event"))},h),c={messageChannel:l,onMessage:o=function(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"))))}},t.a.push(c),l.port1.addEventListener("message",o),t.c.postMessage({eventType:e,eventId:r,data:u},[l.port2])):i(Error("connection_unavailable"))}).then(function(e){return sc(t,c),e}).o(function(e){throw sc(t,c),e})}function sc(t,e){if(e){var n=e.messageChannel,i=e.onMessage;n&&(n.port1.removeEventListener("message",i),n.port1.close()),Y(t.a,function(t){return t==e})}}function sh(){if(!sd())throw new _("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.m=c.indexedDB,this.type="indexedDB",this.g=this.v=this.f=this.l=null,this.s=!1,this.h=null;var t,e=this;nW()&&self?(this.v=function(){var t=nW()?self:null;if(G(sr,function(n){n.b==t&&(e=n)}),!e){var e=new si(t);sr.push(e)}return e}(),so(this.v,"keyChanged",function(t,n){return sb(e).then(function(t){return 0<t.length&&G(e.a,function(e){e(t)}),{keyProcessed:Z(t,n.key)}})}),so(this.v,"ping",function(){return el(["keyChanged"])})):((t=c.navigator)&&t.serviceWorker?el().then(function(){return t.serviceWorker.ready}).then(function(t){return t.active||null}).o(function(){return null}):el(null)).then(function(t){(e.h=t)&&(e.g=new ss(new sa(t)),su(e.g,"ping",null,!0).then(function(t){t[0].fulfilled&&Z(t[0].value,"keyChanged")&&(e.s=!0)}).o(function(){}))})}function sl(t){return t.i||(t.i=function t(e){return new er(function(n,i){var r=e.m.open("firebaseLocalStorageDb",1);r.onerror=function(t){try{t.preventDefault()}catch(t){}i(Error(t.target.error))},r.onupgradeneeded=function(t){t=t.target.result;try{t.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(t){i(t)}},r.onsuccess=function(r){(r=r.target.result).objectStoreNames.contains("firebaseLocalStorage")?n(r):new er(function(t,n){var i=e.m.deleteDatabase("firebaseLocalStorageDb");i.onsuccess=function(){t()},i.onerror=function(t){n(Error(t.target.error))}}).then(function(){return t(e)}).then(function(t){n(t)}).o(function(t){i(t)})}})}(t)),t.i}function sf(t,e){var n=0;return new er(function i(r,o){sl(t).then(e).then(r).o(function(e){if(!(3<++n))return sl(t).then(function(e){return e.close(),t.i=void 0,i(r,o)}).o(function(t){o(t)});o(e)})})}function sd(){try{return!!c.indexedDB}catch(t){return!1}}function sp(t){return t.objectStore("firebaseLocalStorage")}function sv(t,e){return t.transaction(["firebaseLocalStorage"],e?"readwrite":"readonly")}function sm(t){return new er(function(e,n){t.onsuccess=function(t){t&&t.target?e(t.target.result):e()},t.onerror=function(t){n(t.target.error)}})}function sg(t,e){var n;return t.g&&t.h&&((n=c.navigator)&&n.serviceWorker&&n.serviceWorker.controller||null)===t.h?su(t.g,"keyChanged",{key:e},t.s).then(function(){}).o(function(){}):el()}function sb(t){return sl(t).then(function(t){var e=sp(sv(t,!1));return e.getAll?sm(e.getAll()):new er(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=function t(e,n){var i,r=[];for(i in e)i in n?typeof e[i]!=typeof n[i]?r.push(i):"object"==typeof e[i]&&null!=e[i]&&null!=n[i]?0<t(e[i],n[i]).length&&r.push(i):e[i]!==n[i]&&r.push(i):r.push(i);for(i in n)i in e||r.push(i);return r}(t.c,n),t.c=n}return i})}function sy(t){t.l&&t.l.cancel("STOP_EVENT"),t.f&&(clearTimeout(t.f),t.f=null)}function sw(t){var e=this,n=null;this.a=[],this.type="indexedDB",this.c=t,this.b=el().then(function(){if(sd()){var t=it(),i="__sak"+t;return s_||(s_=new sh),(n=s_).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 sI(){this.a={},this.type="inMemory"}function sT(){if(!function(){var t="Node"==nX();if(!(t=sE()||t&&i.Z.INTERNAL.node&&i.Z.INTERNAL.node.localStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(t){return!1}}()){if("Node"==nX())throw new _("internal-error","The LocalStorage compatibility library was not found.");throw new _("web-storage-unsupported")}this.a=sE()||i.Z.INTERNAL.node.localStorage,this.type="localStorage"}function sE(){try{var t=c.localStorage,e=it();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(t){return null}}function sk(){this.type="nullStorage"}function sA(){if(!function(){var t="Node"==nX();if(!(t=sS()||t&&i.Z.INTERNAL.node&&i.Z.INTERNAL.node.sessionStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(t){return!1}}()){if("Node"==nX())throw new _("internal-error","The SessionStorage compatibility library was not found.");throw new _("web-storage-unsupported")}this.a=sS()||i.Z.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function sS(){try{var t=c.sessionStorage,e=it();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(t){return null}}function sN(){var t={};t.Browser=sC,t.Node=sR,t.ReactNative=sD,t.Worker=sP,this.a=t[nX()]}si.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(el().then(function(){return e(t.origin,t.data.data)}))}),ep(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})})}},sa.prototype.postMessage=function(t,e){this.a.postMessage(t,e)},ss.prototype.close=function(){for(;0<this.a.length;)sc(this,this.a[0]);this.b=!0},(r=sh.prototype).set=function(t,e){var n=this,i=!1;return sf(this,function(e){return sm((e=sp(sv(e,!0))).get(t))}).then(function(r){return sf(n,function(o){if(o=sp(sv(o,!0)),r)return r.value=e,sm(o.put(r));n.b++,i=!0;var a={};return a.fbase_key=t,a.value=e,sm(o.add(a))})}).then(function(){return n.c[t]=e,sg(n,t)}).oa(function(){i&&n.b--})},r.get=function(t){return sf(this,function(e){return sm(sp(sv(e,!1)).get(t))}).then(function(t){return t&&t.value})},r.U=function(t){var e=this,n=!1;return sf(this,function(i){return n=!0,e.b++,sm(sp(sv(i,!0)).delete(t))}).then(function(){return delete e.c[t],sg(e,t)}).oa(function(){n&&e.b--})},r.ca=function(t){var e;0==this.a.length&&(e=this,sy(e),function t(){e.f=setTimeout(function(){e.l=sb(e).then(function(t){0<t.length&&G(e.a,function(e){e(t)})}).then(function(){t()}).o(function(e){"STOP_EVENT"!=e.message&&t()})},800)}()),this.a.push(t)},r.ia=function(t){Y(this.a,function(e){return e==t}),0==this.a.length&&sy(this)},(r=sw.prototype).get=function(t){return this.b.then(function(e){return e.get(t)})},r.set=function(t,e){return this.b.then(function(n){return n.set(t,e)})},r.U=function(t){return this.b.then(function(e){return e.U(t)})},r.ca=function(t){this.a.push(t)},r.ia=function(t){Y(this.a,function(e){return e==t})},(r=sI.prototype).get=function(t){return el(this.a[t])},r.set=function(t,e){return this.a[t]=e,el()},r.U=function(t){return delete this.a[t],el()},r.ca=function(){},r.ia=function(){},(r=sT.prototype).get=function(t){var e=this;return el().then(function(){return n9(e.a.getItem(t))})},r.set=function(t,e){var n=this;return el().then(function(){var i=n8(e);null===i?n.U(t):n.a.setItem(t,i)})},r.U=function(t){var e=this;return el().then(function(){e.a.removeItem(t)})},r.ca=function(t){c.window&&eW(c.window,"storage",t)},r.ia=function(t){c.window&&eJ(c.window,"storage",t)},(r=sk.prototype).get=function(){return el(null)},r.set=function(){return el()},r.U=function(){return el()},r.ca=function(){},r.ia=function(){},(r=sA.prototype).get=function(t){var e=this;return el().then(function(){return n9(e.a.getItem(t))})},r.set=function(t,e){var n=this;return el().then(function(){var i=n8(e);null===i?n.U(t):n.a.setItem(t,i)})},r.U=function(t){var e=this;return el().then(function(){e.a.removeItem(t)})},r.ca=function(){},r.ia=function(){};var s_,sO,sC={F:sT,cb:sA},sR={F:sT,cb:sA},sD={F:sn,cb:sk},sP={F:sT,cb:sk},sL={rd:"local",NONE:"none",td:"session"};function sx(){var t=!!(!ie(n0())&&nB()),e=n5(),n=n2();this.m=t,this.h=e,this.l=n,this.a={},sO||(sO=new sN),t=sO;try{this.g=!nx()&&is()||!c.indexedDB?new t.a.F:new sw(nW()?new sI:new t.a.F)}catch(t){this.g=new sI,this.h=!0}try{this.i=new t.a.cb}catch(t){this.i=new sI}this.v=new sI,this.f=E(this.Zb,this),this.b={}}function sM(){return t||(t=new sx),t}function sj(t,e){switch(e){case"session":return t.i;case"none":return t.v;default:return t.g}}function sU(t,e){return"firebase:"+t.name+(e?":"+e:"")}function sV(t,e,n){return n=sU(e,n),"local"==e.F&&(t.b[n]=null),sj(t,e.F).U(n)}function sF(t){t.c&&(clearInterval(t.c),t.c=null)}function sq(t){this.a=t,this.b=sM()}(r=sx.prototype).get=function(t,e){return sj(this,t.F).get(sU(t,e))},r.set=function(t,e,n){var i=sU(t,n),r=this,o=sj(this,t.F);return o.set(i,e).then(function(){return o.get(i)}).then(function(e){"local"==t.F&&(r.b[i]=e)})},r.addListener=function(t,e,n){var i;t=sU(t,e),this.l&&(this.b[t]=c.localStorage.getItem(t)),td(this.a)&&(sj(this,"local").ca(this.f),this.h||(nx()||!is())&&c.indexedDB||!this.l||(i=this,sF(i),i.c=setInterval(function(){for(var t in i.a){var e=c.localStorage.getItem(t),n=i.b[t];e!=n&&(i.b[t]=e,e=new eL({type:"storage",key:t,target:window,oldValue:n,newValue:e,a:!0}),i.Zb(e))}},1e3))),this.a[t]||(this.a[t]=[]),this.a[t].push(n)},r.removeListener=function(t,e,n){t=sU(t,e),this.a[t]&&(Y(this.a[t],function(t){return t==n}),0==this.a[t].length&&delete this.a[t]),td(this.a)&&(sj(this,"local").ia(this.f),sF(this))},r.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=c.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?sj(this,"local").ia(this.f):sF(this),this.m){if(n=c.localStorage.getItem(e),(i=t.a.newValue)!==n)null!==i?c.localStorage.setItem(e,i):c.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]!==c.localStorage.getItem(e))&&(o.b[e]=c.localStorage.getItem(e),o.nb(e))},tB&&t3&&10==t3&&c.localStorage.getItem(e)!==t.a.newValue&&t.a.newValue!==t.a.oldValue?setTimeout(n,10):n()}}else G(t,E(this.nb,this))},r.nb=function(t){this.a[t]&&G(this.a[t],function(t){t()})};var sH={name:"authEvent",F:"local"};function sK(){this.a=sM()}function sG(t,n){this.b=sB,this.f=c.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=t,this.h=n,this.l=c.Int32Array?new Int32Array(64):Array(64),void 0===e&&(e=c.Int32Array?new Int32Array(s$):s$),this.reset()}S(sG,function(){this.b=-1});for(var sB=64,sW=sB-1,sX=[],sZ=0;sZ<sW;sZ++)sX[sZ]=0;var sJ=z(128,sX);function sY(t){for(var n=t.f,i=t.l,r=0,o=0;o<n.length;)i[r++]=n[o]<<24|n[o+1]<<16|n[o+2]<<8|n[o+3],o=4*r;for(n=16;64>n;n++){o=0|i[n-15],r=0|i[n-2];var a=(0|i[n-16])+((o>>>7|o<<25)^(o>>>18|o<<14)^o>>>3)|0,s=(0|i[n-7])+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)|0;i[n]=a+s|0}r=0|t.a[0],o=0|t.a[1];var u=0|t.a[2],c=0|t.a[3],h=0|t.a[4],l=0|t.a[5],f=0|t.a[6];for(n=0,a=0|t.a[7];64>n;n++){var d=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&o^r&u^o&u)|0;s=h&l^~h&f,s=(a=a+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))|0)+((s=s+(0|e[n])|0)+(0|i[n])|0)|0,a=f,f=l,l=h,h=c+s|0,c=u,u=o,o=r,r=s+d|0}t.a[0]=t.a[0]+r|0,t.a[1]=t.a[1]+o|0,t.a[2]=t.a[2]+u|0,t.a[3]=t.a[3]+c|0,t.a[4]=t.a[4]+h|0,t.a[5]=t.a[5]+l|0,t.a[6]=t.a[6]+f|0,t.a[7]=t.a[7]+a|0}function sz(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&&(sY(t),r=0);else if(v(e))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&&(sY(t),r=0)}else throw Error("message must be string or array");t.c=r,t.g+=n}sG.prototype.reset=function(){this.g=this.c=0,this.a=c.Int32Array?new Int32Array(this.h):$(this.h)};var s$=[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 sQ(){sG.call(this,8,s0)}S(sQ,sG);var s0=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function s1(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 sK,this.g=new sq(this.h),this.f=null,this.b=[],this.a=this.c=null}function s2(t){return new _("invalid-cordova-configuration",t)}function s3(t,e){for(var n=0;n<t.b.length;n++)try{t.b[n](e)}catch(t){}}function s4(t){return t.f||(t.f=t.ma().then(function(){return new er(function(e){t.Ea(function n(i){return e(i),t.Ta(n),!1}),function(t){function e(e){o=!0,a&&a.cancel(),s6(t).then(function(n){var i=r;if(n&&e&&e.url){var o=null;-1!=(i=rh(e.url)).indexOf("/__/auth/callback")&&(o=(o="object"==typeof(o=n9(nl(o=nf(i),"firebaseError")||null))?O(o):null)?new rB(n.c,n.b,null,null,o,null,n.T()):new rB(n.c,n.b,i,n.f,null,null,n.T())),i=o||r}s3(t,i)})}var n,i,r=new rB("unknown",null,null,null,new _("no-auth-event")),o=!1,a=e9(500).then(function(){return s6(t).then(function(){o||s3(t,r)})}),s=c.handleOpenURL;c.handleOpenURL=function(t){if(0==t.toLowerCase().indexOf(n1("BuildInfo.packageName",c).toLowerCase()+"://")&&e({url:t}),"function"==typeof s)try{s(t)}catch(t){console.error(t)}},rZ||(rZ=new rX),n=e,(i=rZ).a.push(n),i.b||(i.b=function(t){for(var e=0;e<i.a.length;e++)i.a[e](t)},"function"==typeof(n=n1("universalLinks.subscribe",c))&&n(null,i.b))}(t)})})),t.f}function s6(t){var e,n=null;return(e=t.g).b.get(sH,e.a).then(function(t){return rW(t)}).then(function(e){return n=e,sV((e=t.g).b,sH,e.a)}).then(function(){return n})}function s5(t){this.a=t,this.b=sM()}(r=s1.prototype).ma=function(){return this.Ia?this.Ia:this.Ia=(nG(void 0)?nK().then(function(){return new er(function(t,e){var n=c.document,i=setTimeout(function(){e(Error("Cordova framework is not ready."))},1e3);n.addEventListener("deviceready",function(){clearTimeout(i),t()},!1)})}):ef(Error("Cordova must run in an Android or iOS file scheme."))).then(function(){if("function"!=typeof n1("universalLinks.subscribe",c))throw s2("cordova-universal-links-plugin-fix is not installed");if(void 0===n1("BuildInfo.packageName",c))throw s2("cordova-plugin-buildinfo is not installed");if("function"!=typeof n1("cordova.plugins.browsertab.openUrl",c))throw s2("cordova-plugin-browsertab is not installed");if("function"!=typeof n1("cordova.InAppBrowser.open",c))throw s2("cordova-plugin-inappbrowser is not installed")},function(){throw new _("cordova-not-ready")})},r.Pb=function(t,e){return e(new _("operation-not-supported-in-this-environment")),el()},r.Nb=function(){return ef(new _("operation-not-supported-in-this-environment"))},r.ac=function(){return!1},r.Yb=function(){return!0},r.Ub=function(){return!0},r.Ob=function(t,e,n,i){if(this.c)return ef(new _("redirect-operation-pending"));var r=this,o=c.document,a=null,s=null,u=null,h=null;return this.c=el().then(function(){return rG(e),s4(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 rB(e,i,null,o,new _("no-auth-event"),null,r),s=n1("BuildInfo.packageName",c);if("string"!=typeof s)throw new _("invalid-cordova-configuration");var u=n1("BuildInfo.displayName",c),h={};if(n0().toLowerCase().match(/iphone|ipad|ipod/))h.ibi=s;else{if(!n0().toLowerCase().match(/android/))return ef(new _("operation-not-supported-in-this-environment"));h.apn=s}u&&(h.appDisplayName=u),o=function(t){var e=new sQ;sz(e,t),t=[];var n=8*e.g;56>e.c?sz(e,sJ,56-e.c):sz(e,sJ,e.b-(e.c-56));for(var i=63;56<=i;i--)e.f[i]=255&n,n/=256;for(sY(e),i=n=0;i<e.i;i++)for(var r=24;0<=r;r-=8)t[n++]=e.a[i]>>r&255;return W(t,function(t){return 1<(t=t.toString(16)).length?t:"0"+t}).join("")}(o),h.sessionId=o;var l=se(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(sH,a.w(),e)}).then(function(){var e=n1("cordova.plugins.browsertab.isAvailable",c);if("function"!=typeof e)throw new _("invalid-cordova-configuration");var n=null;e(function(e){if(e){if("function"!=typeof(n=n1("cordova.plugins.browsertab.openUrl",c)))throw new _("invalid-cordova-configuration");n(l)}else{if("function"!=typeof(n=n1("cordova.InAppBrowser.open",c)))throw new _("invalid-cordova-configuration");e=n0(),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 er(function(t,e){s=function(){var e=n1("cordova.plugins.browsertab.close",c);return t(),"function"==typeof e&&e(),r.a&&"function"==typeof r.a.close&&(r.a.close(),r.a=null),!1},r.Ea(s),u=function(){a||(a=e9(2e3).then(function(){e(new _("redirect-cancelled-by-user"))}))},h=function(){io()&&u()},o.addEventListener("resume",u,!1),n0().toLowerCase().match(/android/)||o.addEventListener("visibilitychange",h,!1)}).o(function(t){return s6(r).then(function(){throw t})})}).oa(function(){u&&o.removeEventListener("resume",u,!1),h&&o.removeEventListener("visibilitychange",h,!1),a&&a.cancel(),s&&r.Ta(s),r.c=null})},r.Ea=function(t){this.b.push(t),s4(this).o(function(e){"auth/invalid-cordova-configuration"===e.code&&t(e=new rB("unknown",null,null,null,new _("no-auth-event")))})},r.Ta=function(t){Y(this.b,function(e){return e==t})};var s8={name:"pendingRedirect",F:"session"};function s7(t){return sV(t.b,s8,t.a)}function s9(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=E(this.s,this),this.b=new up,this.C=new uy,this.g=new s5(uf(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=ut(this.D,this.v,this.m,oB,this.J)}function ut(t,e,n,r,o){var a=i.Z.SDK_VERSION||null;return nG()?new s1(t,e,n,a,r,o):new a8(t,e,n,a,r,o)}function ue(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 un(t){t.a.Yb()&&ue(t).o(function(e){var n=new rB("unknown",null,null,null,new _("operation-not-supported-in-this-environment"));uu(e)&&t.s(n)}),t.a.Ub()||uv(t.b)}function ui(t,e){var n;Z(t.h,e)||t.h.push(e),t.f||(n=t.g).b.get(s8,n.a).then(function(t){return"pending"==t}).then(function(e){e?s7(t.g).then(function(){ue(t).o(function(e){var n=new rB("unknown",null,null,null,new _("operation-not-supported-in-this-environment"));uu(e)&&t.s(n)})}):un(t)}).o(function(){un(t)})}function ur(t,e){Y(t.h,function(t){return t==e})}s9.prototype.reset=function(){this.f=!1,this.a.Ta(this.l),this.a=ut(this.D,this.v,this.m,null,this.J),this.i={}},s9.prototype.s=function(t){if(!t)throw new _("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 uv(this.b),e};var uo=new ir(2e3,1e4),ua=new ir(3e4,6e4);function us(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 uu(t){return!!t&&"auth/cordova-not-ready"==t.code}function uc(t,e,n,i,r){var o;return(o=t.g).b.set(s8,"pending",o.a).then(function(){return t.a.Ob(e,n,i,r).o(function(e){if(uu(e))throw new _("operation-not-supported-in-this-environment");return s7(t.g).then(function(){throw e})}).then(function(){return t.a.ac()?new er(function(){}):s7(t.g).then(function(){return t.ra()}).then(function(){}).o(function(){})})})}function uh(t,e,n,i,r){return t.a.Pb(i,function(t){e.na(n,null,t,r)},uo.get())}s9.prototype.ra=function(){return this.b.ra()};var ul={};function uf(t,e,n){return t=t+":"+e,n&&(t=t+":"+n.url),t}function ud(t,e,n,i){var r=uf(e,n,i);return ul[r]||(ul[r]=new s9(t,e,n,i)),ul[r]}function up(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function uv(t){t.g||(t.g=!0,ub(t,!1,null,null))}function um(t){t.g&&!t.i&&ub(t,!1,null,null)}function ug(t,e){if(t.b=function(){return el(e)},t.f.length)for(var n=0;n<t.f.length;n++)t.f[n](e)}function ub(t,e,n,i){e?i?function(t,e){if(t.b=function(){return ef(e)},t.c.length)for(var n=0;n<t.c.length;n++)t.c[n](e)}(t,i):ug(t,n):ug(t,{user:null}),t.f=[],t.c=[]}function uy(){}function uw(){this.jb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.jb},set:function(t){this.jb=t},enumerable:!1})}function uI(t,e){this.a=e,il(this,"verificationId",t)}function uT(t,e,n,i){return new rq(t).gb(e,n).then(function(t){return new uI(t,i)})}function uE(t){var e=i5(t);if(!(e&&e.exp&&e.auth_time&&e.iat))throw new _("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");id(this,{token:t,expirationTime:ia(1e3*e.exp),authTime:ia(1e3*e.auth_time),issuedAtTime:ia(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 uk(t,e,n){var i=e&&e[uS];if(!i)throw new _("argument-error","Internal assert: Invalid MultiFactorResolver");this.a=t,this.f=tp(e),this.g=n,this.c=new rl(null,i),this.b=[];var r=this;G(e[uA]||[],function(t){(t=ig(t))&&r.b.push(t)}),il(this,"auth",this.a),il(this,"session",this.c),il(this,"hints",this.b)}up.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},up.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?(ub(this,!0,null,t.a),el()):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){ub(t,s,e,null)}).o(function(e){ub(t,s,null,e)})}(this,t,e):ef(new _("invalid-auth-event")):(ub(this,!1,null,null),el())}else ef(new _("invalid-auth-event"))},up.prototype.ra=function(){var t=this;return new er(function(e,n){var i,r;t.b?t.b().then(e,n):(t.f.push(e),t.c.push(n),i=t,r=new _("timeout"),i.a&&i.a.cancel(),i.a=e9(ua.get()).then(function(){i.b||(i.g=!0,ub(i,!0,null,r))}))})},uy.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),el()):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):ef(new _("invalid-auth-event"))}else ef(new _("invalid-auth-event"))},uI.prototype.confirm=function(t){return t=rH(this.verificationId,t),this.a(t)};var uA="mfaInfo",uS="mfaPendingCredential";function uN(t,e,n,i){_.call(this,"multi-factor-auth-required",i,e),this.b=new uk(t,e,n),il(this,"resolver",this.b)}function u_(t,e,n){if(t&&g(t.serverResponse)&&"auth/multi-factor-auth-required"===t.code)try{return new uN(e,t.serverResponse,n,t.message)}catch(t){}return null}function uO(){}function uC(t){il(this,"factorId",t.fa),this.a=t}function uR(t){if(uC.call(this,t),this.a.fa!=rq.PROVIDER_ID)throw new _("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential")}function uD(t,e){for(var n in eP.call(this,t),e)this[n]=e[n]}function uP(t,e){this.a=t,this.b=[],this.c=E(this.yc,this),eW(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[iw]=t.uid),t.displayName&&(i[ib]=t.displayName),t.enrollmentTime&&(i[iy]=new Date(t.enrollmentTime).toISOString()),t.phoneNumber&&(i[iI]=t.phoneNumber);try{e=new iT(i)}catch(t){}t=e}else t=null;t&&n.push(t)}),uL(this,n)}function uL(t,e){t.b=e,il(t,"enrolledFactors",e)}function ux(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 uM(t){this.f=t,this.b=this.a=null,this.c=Date.now()}function uj(t,e){void 0===e&&(e=t.b?(e=t.b).a-e.g:0),t.c=Date.now()+1e3*e}function uU(t,e){t.b=i6(e[o1]||""),t.a=e.refreshToken,uj(t,void 0!==(e=e.expiresIn)?Number(e):void 0)}function uV(t,e){this.a=t||null,this.b=e||null,id(this,{lastSignInTime:ia(e||null),creationTime:ia(t||null)})}function uF(t,e,n,i,r,o){id(this,{uid:t,displayName:i||null,photoURL:r||null,email:n||null,phoneNumber:o||null,providerId:e})}function uq(t,e,n){this.N=[],this.l=t.apiKey,this.m=t.appName,this.s=t.authDomain||null;var r,o=i.Z.SDK_VERSION?nQ(i.Z.SDK_VERSION):null;this.a=new oK(this.l,P(oB),o),(this.u=t.emulatorConfig||null)&&o8(this.a,this.u),this.h=new uM(this.a),uY(this,e[o1]),uU(this.h,e),il(this,"refreshToken",this.h.a),uQ(this,n||{}),e4.call(this),this.P=!1,this.s&&n3()&&(this.b=ud(this.s,this.l,this.m,this.u)),this.W=[],this.i=null,this.D=(r=this,new ux(function(){return r.I(!0)},function(t){return!!t&&"auth/network-request-failed"==t.code},function(){var t=r.h.c-Date.now()-3e5;return 0<t?t:0})),this.ba=E(this.ib,this);var a=this;this.za=null,this.Pa=function(t){a.xa(t.h)},this.qa=null,this.Ba=function(t){uH(a,t.c)},this.$=null,this.aa=[],this.Oa=function(t){uB(a,t.f)},this.ja=null,this.S=new uP(this,n),il(this,"multiFactor",this.S)}function uH(t,e){t.u=e,o8(t.a,e),t.b&&(e=t.b,t.b=ud(t.s,t.l,t.m,t.u),t.P&&(ur(e,t),ui(t.b,t)))}function uK(t,e){t.qa&&eJ(t.qa,"languageCodeChanged",t.Pa),(t.qa=e)&&eW(e,"languageCodeChanged",t.Pa)}function uG(t,e){t.$&&eJ(t.$,"emulatorConfigChanged",t.Ba),(t.$=e)&&eW(e,"emulatorConfigChanged",t.Ba)}function uB(t,e){t.aa=e,o9(t.a,i.Z.SDK_VERSION?nQ(i.Z.SDK_VERSION,t.aa):null)}function uW(t,e){t.ja&&eJ(t.ja,"frameworkChanged",t.Oa),(t.ja=e)&&eW(e,"frameworkChanged",t.Oa)}function uX(t){try{return i.Z.app(t.m).auth()}catch(e){throw new _("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+t.m+"'!")}}function uZ(t){t.J||t.D.b||(t.D.start(),eJ(t,"tokenChanged",t.ba),eW(t,"tokenChanged",t.ba))}function uJ(t){eJ(t,"tokenChanged",t.ba),t.D.stop()}function uY(t,e){t.Aa=e,il(t,"_lat",e)}function uz(t){for(var e=[],n=0;n<t.W.length;n++)e.push(t.W[n](t));return ep(e).then(function(){return t})}function u$(t){t.b&&!t.P&&(t.P=!0,ui(t.b,t))}function uQ(t,e){id(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 uV(e.createdAt,e.lastLoginAt),providerData:[]}),t.a.b=t.tenantId}function u0(){}function u1(t){return el().then(function(){if(t.J)throw new _("app-deleted")})}function u2(t){return W(t.providerData,function(t){return t.providerId})}function u3(t,e){e&&(u4(t,e.providerId),t.providerData.push(e))}function u4(t,e){Y(t.providerData,function(t){return t.providerId==e})}function u6(t,e,n){("uid"!=e||n)&&t.hasOwnProperty(e)&&il(t,e,n)}function u5(t,e){var n,i,r;t!=e&&(id(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:[]}),e.metadata?il(t,"metadata",(n=e.metadata,new uV(n.a,n.b))):il(t,"metadata",new uV),G(e.providerData,function(e){u3(t,e)}),i=t.h,r=e.h,i.b=r.b,i.a=r.a,i.c=r.c,il(t,"refreshToken",t.h.a),uL(t.S,e.S.b))}function u8(t){return t.I().then(function(e){var n=t.isAnonymous;return aY(t.a,aN,{idToken:e}).then(E(t.Kc,t)).then(function(){return n||u6(t,"isAnonymous",!1),e})})}function u7(t,e){e[o1]&&t.Aa!=e[o1]&&(uU(t.h,e),t.dispatchEvent(new uD("tokenChanged")),uY(t,e[o1]),u6(t,"refreshToken",t.h.a))}function u9(t,e){return u8(t).then(function(){if(Z(u2(t),e))return uz(t).then(function(){throw new _("provider-already-linked")})})}function ct(t,e,n){return ip({user:t,credential:rK(e),additionalUserInfo:e=re(e),operationType:n})}function ce(t,e){return u7(t,e),t.reload().then(function(){return t})}function cn(t,e,n,r,o){if(!n3())return ef(new _("operation-not-supported-in-this-environment"));if(t.i&&!o)return ef(t.i);var a=rt(n.providerId),s=it(t.uid+":::"),u=null;(!n5()||nB())&&t.s&&n.isOAuthProvider&&(u=se(t.s,t.l,t.m,e,n,null,s,i.Z.SDK_VERSION||null,null,null,t.tenantId,t.u));var c=nF(u,a&&a.va,a&&a.ua);return r=r().then(function(){if(cr(t),!o)return t.I().then(function(){})}).then(function(){return us(t.b,c,e,n,s,!!u,t.tenantId)}).then(function(){return new er(function(n,i){t.na(e,null,new _("cancelled-popup-request"),t.g||null),t.f=n,t.C=i,t.g=s,t.c=uh(t.b,t,e,c,s)})}).then(function(t){return c&&nV(c),t?ip(t):null}).o(function(t){throw c&&nV(c),t}),co(t,r,o)}function ci(t,e,n,i,r){if(!n3())return ef(new _("operation-not-supported-in-this-environment"));if(t.i&&!r)return ef(t.i);var o=null,a=it(t.uid+":::");return i=i().then(function(){if(cr(t),!r)return t.I().then(function(){})}).then(function(){return t.ga=a,uz(t)}).then(function(e){return t.ha&&(e=(e=t.ha).b.set(cu,t.w(),e.a)),e}).then(function(){return uc(t.b,e,n,a,t.tenantId)}).o(function(e){if(o=e,t.ha)return cc(t.ha);throw o}).then(function(){if(o)throw o}),co(t,i,r)}function cr(t){if(!t.b||!t.P){if(t.b&&!t.P)throw new _("internal-error");throw new _("auth-domain-config-required")}}function co(t,e,n){var i,r=(i=t).i&&!n?(e.cancel(),ef(i.i)):e.o(function(t){throw t&&("auth/user-disabled"==t.code||"auth/user-token-expired"==t.code)&&(i.i||i.dispatchEvent(new uD("userInvalidated")),i.i=t),t});return t.N.push(r),r.oa(function(){J(t.N,r)}),r.o(function(e){var n=null;throw e&&"auth/multi-factor-auth-required"===e.code&&(n=u_(e.w(),uX(t),E(t.jc,t))),n||e})}function ca(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[o1]=t.stsTokenManager.accessToken,n.refreshToken=t.stsTokenManager.refreshToken||null;var i=t.stsTokenManager.expirationTime;i&&(n.expiresIn=(i-Date.now())/1e3);var r=new uq(e,n,t);return t.providerData&&G(t.providerData,function(t){t&&u3(r,ip(t))}),t.redirectEventId&&(r.ga=t.redirectEventId),r}function cs(t){this.a=t,this.b=sM()}uk.prototype.Rc=function(t){var e=this;return t.tb(this.a.a,this.c).then(function(t){var n=tp(e.f);return delete n[uA],delete n[uS],tm(n,t),e.g(n)})},S(uN,_),uO.prototype.tb=function(t,e,n){var i,r;return e.type==rf?(i=this,e.Ha().then(function(e){return e={idToken:e},void 0!==n&&(e.displayName=n),tm(e,{phoneVerificationInfo:rF(i.a)}),aY(t,aA,e)})):(r=this,e.Ha().then(function(e){return tm(e={mfaPendingCredential:e},{phoneVerificationInfo:rF(r.a)}),aY(t,aS,e)}))},S(uC,uO),S(uR,uC),S(uD,eP),(r=uP.prototype).yc=function(t){var e,n;uL(this,(e=t.hd,n=[],G(e.mfaInfo||[],function(t){(t=ig(t))&&n.push(t)}),n))},r.Sb=function(){return this.a.I().then(function(t){return new rl(t,null)})},r.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 u7(n.a,t),n.a.reload()})},r.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 aY(i,aJ,{idToken:t,mfaEnrollmentId:n})}).then(function(t){var i=B(e.b,function(t){return t.uid!=n});return uL(e,i),u7(e.a,t),e.a.reload().o(function(t){if("auth/user-token-expired"!=t.code)throw t})})},r.w=function(){return{multiFactor:{enrolledFactors:W(this.b,function(t){return t.w()})}}},ux.prototype.start=function(){this.a=this.c,function t(e,n){var i,r;e.stop(),e.b=e9((i=e,(r=n)?(i.a=i.c,i.g()):(r=i.a,i.a*=2,i.a>i.f&&(i.a=i.f),r))).then(function(){var t,e;return t=c.document,e=null,io()||!t?el():new er(function(n){e=function(){io()&&(t.removeEventListener("visibilitychange",e,!1),n())},t.addEventListener("visibilitychange",e,!1)}).o(function(n){throw t.removeEventListener("visibilitychange",e,!1),n})}).then(function(){return e.h()}).then(function(){t(e,!0)}).o(function(n){e.i(n)&&t(e,!1)})}(this,!0)},ux.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},uM.prototype.w=function(){return{apiKey:this.f.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:this.c}},uM.prototype.getToken=function(t){var e,n,i;return t=!!t,this.b&&!this.a?ef(new _("user-token-expired")):t||!this.b||Date.now()>this.c-3e4?this.a?(e=this,n={grant_type:"refresh_token",refresh_token:this.a},(i=e.f,new er(function(t,e){"refresh_token"==n.grant_type&&n.refresh_token||"authorization_code"==n.grant_type&&n.code?at(i,i.l+"?key="+encodeURIComponent(i.c),function(n){n?n.error?e(a$(n)):n.access_token&&n.refresh_token?t(n):e(new _("internal-error")):e(new _("network-request-failed"))},"POST",nk(n).toString(),i.g,i.m.get()):e(new _("internal-error"))})).then(function(t){return e.b=i6(t.access_token),e.a=t.refresh_token,uj(e,t.expires_in),{accessToken:e.b.toString(),refreshToken:e.a}}).o(function(t){throw"auth/user-token-expired"==t.code&&(e.a=null),t})):el(null):el({accessToken:this.b.toString(),refreshToken:this.a})},uV.prototype.w=function(){return{lastLoginAt:this.b,createdAt:this.a}},S(uq,e4),uq.prototype.xa=function(t){this.za=t,o5(this.a,t)},uq.prototype.la=function(){return this.za},uq.prototype.Ga=function(){return $(this.aa)},uq.prototype.ib=function(){this.D.b&&(this.D.stop(),this.D.start())},il(uq.prototype,"providerId","firebase"),(r=uq.prototype).reload=function(){var t=this;return co(this,u1(this).then(function(){return u8(t).then(function(){return uz(t)}).then(u0)}))},r.oc=function(t){return this.I(t).then(function(t){return new uE(t)})},r.I=function(t){var e=this;return co(this,u1(this).then(function(){return e.h.getToken(t)}).then(function(t){if(!t)throw new _("internal-error");return t.accessToken!=e.Aa&&(uY(e,t.accessToken),e.dispatchEvent(new uD("tokenChanged"))),u6(e,"refreshToken",t.refreshToken),t.accessToken}))},r.Kc=function(t){if(!(t=t.users)||!t.length)throw new _("internal-error");uQ(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,n=(e=(e=t).providerUserInfo)&&e.length?W(e,function(t){return new uF(t.rawId,t.providerId,t.email,t.displayName,t.photoUrl,t.phoneNumber)}):[],i=0;i<n.length;i++)u3(this,n[i]);u6(this,"isAnonymous",!(this.email&&t.passwordHash)&&!(this.providerData&&this.providerData.length)),this.dispatchEvent(new uD("userReloaded",{hd:t}))},r.Lc=function(t){return ic("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.ub(t)},r.ub=function(t){var e=this,n=null;return co(this,t.c(this.a,this.uid).then(function(t){return u7(e,t),n=ct(e,t,"reauthenticate"),e.i=null,e.reload()}).then(function(){return n}),!0)},r.Cc=function(t){return ic("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.rb(t)},r.rb=function(t){var e=this,n=null;return co(this,u9(this,t.providerId).then(function(){return e.I()}).then(function(n){return t.b(e.a,n)}).then(function(t){return n=ct(e,t,"link"),ce(e,t)}).then(function(){return n}))},r.Dc=function(t,e){var n=this;return co(this,u9(this,"phone").then(function(){return uT(uX(n),t,e,E(n.rb,n))}))},r.Mc=function(t,e){var n=this;return co(this,el().then(function(){return uT(uX(n),t,e,E(n.ub,n))}),!0)},r.Cb=function(t){var e=this;return co(this,this.I().then(function(n){return e.a.Cb(n,t)}).then(function(t){return u7(e,t),e.reload()}))},r.ed=function(t){var e=this;return co(this,this.I().then(function(n){return t.b(e.a,n)}).then(function(t){return u7(e,t),e.reload()}))},r.Db=function(t){var e=this;return co(this,this.I().then(function(n){return e.a.Db(n,t)}).then(function(t){return u7(e,t),e.reload()}))},r.Eb=function(t){if(void 0===t.displayName&&void 0===t.photoURL)return u1(this);var e=this;return co(this,this.I().then(function(n){return e.a.Eb(n,{displayName:t.displayName,photoUrl:t.photoURL})}).then(function(t){return u7(e,t),u6(e,"displayName",t.displayName||null),u6(e,"photoURL",t.photoUrl||null),G(e.providerData,function(t){"password"===t.providerId&&(il(t,"displayName",e.displayName),il(t,"photoURL",e.photoURL))}),uz(e)}).then(u0))},r.cd=function(t){var e=this;return co(this,u8(this).then(function(n){return Z(u2(e),t)?aY(e.a,aT,{idToken:n,deleteProvider:[t]}).then(function(t){var n={};return G(t.providerUserInfo||[],function(t){n[t.providerId]=!0}),G(u2(e),function(t){n[t]||u4(e,t)}),n[rq.PROVIDER_ID]||il(e,"phoneNumber",null),uz(e)}):uz(e).then(function(){throw new _("no-such-provider")})}))},r.delete=function(){var t=this;return co(this,this.I().then(function(e){return aY(t.a,aI,{idToken:e})}).then(function(){t.dispatchEvent(new uD("userDeleted"))})).then(function(){for(var e=0;e<t.N.length;e++)t.N[e].cancel("app-deleted");uK(t,null),uG(t,null),uW(t,null),t.N=[],t.J=!0,uJ(t),il(t,"refreshToken",null),t.b&&ur(t.b,t)})},r.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},r.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)},r.Fa=function(t,e){return"linkViaPopup"==t&&e==(this.g||null)?E(this.Lb,this):"reauthViaPopup"==t&&e==(this.g||null)?E(this.Mb,this):"linkViaRedirect"==t&&(this.ga||null)==e?E(this.Lb,this):"reauthViaRedirect"==t&&(this.ga||null)==e?E(this.Mb,this):null},r.Ec=function(t){var e=this;return cn(this,"linkViaPopup",t,function(){return u9(e,t.providerId).then(function(){return uz(e)})},!1)},r.Nc=function(t){return cn(this,"reauthViaPopup",t,function(){return el()},!0)},r.Fc=function(t){var e=this;return ci(this,"linkViaRedirect",t,function(){return u9(e,t.providerId)},!1)},r.Oc=function(t){return ci(this,"reauthViaRedirect",t,function(){return el()},!0)},r.Lb=function(t,e,n,i){var r=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return co(this,this.I().then(function(n){return ap(r.a,{requestUri:t,postBody:i,sessionId:e,idToken:n})}).then(function(t){return o=ct(r,t,"link"),ce(r,t)}).then(function(){return o}))},r.Mb=function(t,e,n,i){var r=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return co(this,el().then(function(){return rv(av(r.a,{requestUri:t,sessionId:e,postBody:i,tenantId:n}),r.uid)}).then(function(t){return o=ct(r,t,"reauthenticate"),u7(r,t),r.i=null,r.reload()}).then(function(){return o}),!0)},r.vb=function(t){var e=this,n=null;return co(this,this.I().then(function(e){return n=e,void 0===t||td(t)?{}:i2(new iW(t))}).then(function(t){return e.a.vb(n,t)}).then(function(t){if(e.email!=t)return e.reload()}).then(function(){}))},r.Fb=function(t,e){var n=this,i=null;return co(this,this.I().then(function(t){return i=t,void 0===e||td(e)?{}:i2(new iW(e))}).then(function(e){return n.a.Fb(i,t,e)}).then(function(t){if(n.email!=t)return n.reload()}).then(function(){}))},r.jc=function(t){var e=null,n=this;return co(this,t=rv(el(t),n.uid).then(function(t){return e=ct(n,t,"reauthenticate"),u7(n,t),n.i=null,n.reload()}).then(function(){return e}),!0)},r.toJSON=function(){return this.w()},r.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&&tm(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))}),tm(t,this.S.w()),t};var cu={name:"redirectUser",F:"session"};function cc(t){return sV(t.b,cu,t.a)}function ch(t){var e,n,i,r,o,a,s,u;this.a=t,this.b=sM(),this.c=null,this.f=(e=this,a=cd("local"),s=cd("session"),u=cd("none"),(n=e.b,r=sU(a,i=e.a),o=sj(n,a.F),n.get(a,i).then(function(t){var e=null;try{e=n9(c.localStorage.getItem(r))}catch(t){}if(e&&!t)return c.localStorage.removeItem(r),n.set(a,e,i);e&&t&&"localStorage"!=o.type&&c.localStorage.removeItem(r)})).then(function(){return e.b.get(s,e.a)}).then(function(t){return t?s:e.b.get(u,e.a).then(function(t){return t?u:e.b.get(a,e.a).then(function(t){return t?a:e.b.get(cf,e.a).then(function(t){return t?cd(t):a})})})}).then(function(t){return e.c=t,cl(e,t.F)}).o(function(){e.c||(e.c=a)})),this.b.addListener(cd("local"),this.a,E(this.g,this))}function cl(t,e){var n,i=[];for(n in sL)sL[n]!==e&&i.push(sV(t.b,cd(sL[n]),t.a));return i.push(sV(t.b,cf,t.a)),new er(function(t,e){var n=i.length,r=[];if(n)for(var o=function(e,i){n--,r[e]=i,0==n&&t(r)},a=function(t){e(t)},s=0;s<i.length;s++)ed(i[s],k(o,s),a);else t(r)})}ch.prototype.g=function(){var t=this,e=cd("local");cg(this,function(){return el().then(function(){return t.c&&"local"!=t.c.F?t.b.get(e,t.a):null}).then(function(n){if(n)return cl(t,"local").then(function(){t.c=e})})})};var cf={name:"persistence",F:"session"};function cd(t){return{name:"authUser",F:t}}function cp(t,e){return cg(t,function(){return t.b.set(t.c,e.w(),t.a)})}function cv(t){return cg(t,function(){return sV(t.b,t.c,t.a)})}function cm(t,e,n){return cg(t,function(){return t.b.get(t.c,t.a).then(function(t){return t&&e&&(t.authDomain=e),t&&n&&(t.emulatorConfig=n),ca(t||{})})})}function cg(t,e){return t.f=t.f.then(e,e),t.f}function cb(t){var e,n,r,o,a,s,u,c,h,l,f,d;if(this.l=!1,il(this,"settings",new uw),il(this,"app",t),cS(this).options&&cS(this).options.apiKey)t=i.Z.SDK_VERSION?nQ(i.Z.SDK_VERSION):null,this.a=new oK(cS(this).options&&cS(this).options.apiKey,P(oB),t);else throw new _("invalid-api-key");this.P=[],this.s=[],this.N=[],this.Pa=i.Z.INTERNAL.createSubscribe(E(this.zc,this)),this.W=void 0,this.ib=i.Z.INTERNAL.createSubscribe(E(this.Ac,this)),ck(this,null),this.i=new ch(cS(this).options.apiKey+":"+cS(this).name),this.D=new cs(cS(this).options.apiKey+":"+cS(this).name),this.$=cC(this,(e=this,s=cS(e).options.authDomain,u=(a=(r=(n=e).D,o=cS(n).options.authDomain,r.b.get(cu,r.a).then(function(t){return t&&o&&(t.authDomain=o),ca(t||{})})).then(function(t){return(n.m=t)&&(t.ha=n.D),cc(n.D)}),cC(n,a)).then(function(){return cm(e.i,s,e.R)}).then(function(t){return t?(t.ha=e.D,e.m&&(e.m.ga||null)==(t.ga||null)?t:t.reload().then(function(){return cp(e.i,t).then(function(){return t})}).o(function(n){return"auth/network-request-failed"==n.code?t:cv(e.i)})):null}).then(function(t){ck(e,t||null)}),cC(e,u))),this.h=cC(this,(c=this,c.$.then(function(){return cE(c)}).o(function(){}).then(function(){if(!c.l)return c.ja()}).o(function(){}).then(function(){if(!c.l){c.ba=!0;var t=c.i;t.b.addListener(cd("local"),t.a,c.ja)}}))),this.ba=!1,this.ja=E(this.Zc,this),this.Ba=E(this.da,this),this.qa=E(this.mc,this),this.za=E(this.wc,this),this.Aa=E(this.xc,this),this.b=null,h=this,l=cS(h).options.authDomain,f=cS(h).options.apiKey,l&&n3()&&(h.Oa=h.$.then(function(){if(!h.l){if(h.b=ud(l,f,cS(h).name,h.R),ui(h.b,h),cN(h)&&u$(cN(h)),h.m){u$(h.m);var t=h.m;t.xa(h.la()),uK(t,h),uB(t=h.m,h.J),uW(t,h),uH(t=h.m,h.R),uG(t,h),h.m=null}return h.b}})),this.INTERNAL={},this.INTERNAL.delete=E(this.delete,this),this.INTERNAL.logFramework=E(this.Gc,this),this.u=0,e4.call(this),d=this,Object.defineProperty(d,"lc",{get:function(){return this.la()},set:function(t){this.xa(t)},enumerable:!1}),d.aa=null,Object.defineProperty(d,"ti",{get:function(){return this.T()},set:function(t){this.zb(t)},enumerable:!1}),d.S=null,Object.defineProperty(d,"emulatorConfig",{get:function(){if(this.R){var t=nf(this.R.url);t=ip({protocol:t.c,host:t.a,port:t.g,options:ip({disableWarnings:this.R.ec})})}else t=null;return t},enumerable:!1}),this.J=[],this.R=null}function cy(t){eP.call(this,"languageCodeChanged"),this.h=t}function cw(t){eP.call(this,"emulatorConfigChanged"),this.c=t}function cI(t){eP.call(this,"frameworkChanged"),this.f=t}function cT(t){return t.Oa||ef(new _("auth-domain-config-required"))}function cE(t){if(!n3())return ef(new _("operation-not-supported-in-this-environment"));var e=cT(t).then(function(){return t.b.ra()}).then(function(t){return t?ip(t):null});return cC(t,e)}function ck(t,e){var n,i;cN(t)&&(n=cN(t),i=t.Ba,Y(n.W,function(t){return t==i}),eJ(cN(t),"tokenChanged",t.qa),eJ(cN(t),"userDeleted",t.za),eJ(cN(t),"userInvalidated",t.Aa),uJ(cN(t))),e&&(e.W.push(t.Ba),eW(e,"tokenChanged",t.qa),eW(e,"userDeleted",t.za),eW(e,"userInvalidated",t.Aa),0<t.u&&uZ(e)),il(t,"currentUser",e),e&&(e.xa(t.la()),uK(e,t),uB(e,t.J),uW(e,t),uH(e,t.R),uG(e,t))}function cA(t,e){var n=null,i=null;return cC(t,e.then(function(e){var r;return n=rK(e),i=re(e),(r={}).apiKey=cS(t).options.apiKey,r.authDomain=cS(t).options.authDomain,r.appName=cS(t).name,t.R&&(r.emulatorConfig=t.R),t.$.then(function(){var n,i,o;return n=t.D,i=t.Ga(),o=new uq(r,e),n&&(o.ha=n),i&&uB(o,i),o.reload().then(function(){return o})}).then(function(e){return cN(t)&&e.uid==cN(t).uid?(u5(cN(t),e),t.da(e)):(ck(t,e),u$(e),t.da(e))}).then(function(){cO(t)})},function(e){var n=null;throw e&&"auth/multi-factor-auth-required"===e.code&&(n=u_(e.w(),t,E(t.kc,t))),n||e}).then(function(){return ip({user:cN(t),credential:n,additionalUserInfo:i,operationType:"signIn"})}))}function cS(t){return t.app}function cN(t){return t.currentUser}function c_(t){return cN(t)&&cN(t)._lat||null}function cO(t){if(t.ba){for(var e=0;e<t.s.length;e++)t.s[e]&&t.s[e](c_(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](c_(t))}}function cC(t,e){return t.P.push(e),e.oa(function(){J(t.P,e)}),e}function cR(){}function cD(){this.a={},this.b=1e12}ch.prototype.yb=function(t){var e=null,n=this;return function(t){var e=new _("invalid-persistence-type"),n=new _("unsupported-persistence-type");t:{for(i in sL)if(sL[i]==t){var i=!0;break t}i=!1}if(!i||"string"!=typeof t)throw e;switch(nX()){case"ReactNative":if("session"===t)throw n;break;case"Node":if("none"!==t)throw n;break;case"Worker":if("session"===t||!sd()&&"none"!==t)throw n;break;default:if(!n2()&&"none"!==t)throw n}}(t),cg(this,function(){return t!=n.c.F?n.b.get(n.c,n.a).then(function(i){return e=i,cl(n,t)}).then(function(){if(n.c=cd(t),e)return n.b.set(n.c,e,n.a)}):el()})},S(cb,e4),S(cy,eP),S(cw,eP),S(cI,eP),(r=cb.prototype).yb=function(t){return cC(this,t=this.i.yb(t))},r.xa=function(t){this.aa===t||this.l||(this.aa=t,o5(this.a,this.aa),this.dispatchEvent(new cy(this.la())))},r.la=function(){return this.aa},r.fd=function(){var t=c.navigator;this.xa(t&&(t.languages&&t.languages[0]||t.language||t.userLanguage)||null)},r.gd=function(t,e){if(!this.R){var n;if(!/^https?:\/\//.test(t))throw new _("argument-error","Emulator URL must start with a valid scheme (http:// or https://).");n=e=!!e&&!!e.disableWarnings,"undefined"!=typeof console&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),c.document&&!n&&nK().then(function(){var t=c.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"),c.document.body.appendChild(t)}),this.R={url:t,ec:e},this.settings.jb=!0,o8(this.a,this.R),this.dispatchEvent(new cw(this.R))}},r.Gc=function(t){this.J.push(t),o9(this.a,i.Z.SDK_VERSION?nQ(i.Z.SDK_VERSION,this.J):null),this.dispatchEvent(new cI(this.J))},r.Ga=function(){return $(this.J)},r.zb=function(t){this.S===t||this.l||(this.S=t,this.a.b=this.S)},r.T=function(){return this.S},r.toJSON=function(){return{apiKey:cS(this).options.apiKey,authDomain:cS(this).options.authDomain,appName:cS(this).name,currentUser:cN(this)&&cN(this).w()}},r.Gb=function(t,e){switch(t){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.g==e&&!!this.f;default:return!1}},r.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)},r.Fa=function(t,e){return"signInViaRedirect"==t||"signInViaPopup"==t&&this.g==e&&this.f?E(this.ic,this):null},r.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 cA(r,ad(r.a,o))})},r.Xc=function(t){if(!n3())return ef(new _("operation-not-supported-in-this-environment"));var e=this,n=rt(t.providerId),r=it(),o=null;(!n5()||nB())&&cS(this).options.authDomain&&t.isOAuthProvider&&(o=se(cS(this).options.authDomain,cS(this).options.apiKey,cS(this).name,"signInViaPopup",t,null,r,i.Z.SDK_VERSION||null,null,null,this.T(),this.R));var a=nF(o,n&&n.va,n&&n.ua);return cC(this,n=cT(this).then(function(n){return us(n,a,"signInViaPopup",t,r,!!o,e.T())}).then(function(){return new er(function(t,n){e.na("signInViaPopup",null,new _("cancelled-popup-request"),e.g),e.f=t,e.C=n,e.g=r,e.c=uh(e.b,e,"signInViaPopup",a,r)})}).then(function(t){return a&&nV(a),t?ip(t):null}).o(function(t){throw a&&nV(a),t}))},r.Yc=function(t){if(!n3())return ef(new _("operation-not-supported-in-this-environment"));var e=this;return cC(this,cT(this).then(function(){var t;return cg(t=e.i,function(){return t.b.set(cf,t.c.F,t.a)})}).then(function(){return uc(e.b,"signInViaRedirect",t,void 0,e.T())}))},r.ra=function(){var t=this;return cE(this).then(function(e){return t.b&&um(t.b.b),e}).o(function(e){throw t.b&&um(t.b.b),e})},r.dd=function(t){if(!t)return ef(new _("null-user"));if(this.S!=t.tenantId)return ef(new _("tenant-id-mismatch"));var e,n,i,r,o,a=this,s={};s.apiKey=cS(this).options.apiKey,s.authDomain=cS(this).options.authDomain,s.appName=cS(this).name;var u=(e=s,n=a.D,i=a.Ga(),r=t.h,(o={})[o1]=r.b&&r.b.toString(),o.refreshToken=r.a,e=new uq(e||{apiKey:t.l,authDomain:t.s,appName:t.m},o),n&&(e.ha=n),i&&uB(e,i),u5(e,t),e);return cC(this,this.h.then(function(){if(cS(a).options.apiKey!=t.l)return u.reload()}).then(function(){return cN(a)&&t.uid==cN(a).uid?(u5(cN(a),t),a.da(t)):(ck(a,u),u$(u),a.da(u))}).then(function(){cO(a)}))},r.Bb=function(){var t=this;return cC(this,this.h.then(function(){return(t.b&&um(t.b.b),cN(t))?(ck(t,null),cv(t.i).then(function(){cO(t)})):el()}))},r.Zc=function(){var t=this;return cm(this.i,cS(this).options.authDomain).then(function(e){if(!t.l){var n;if(n=cN(t)&&e){n=cN(t).uid;var i=e.uid;n=null!=n&&""!==n&&null!=i&&""!==i&&n==i}if(n)return u5(cN(t),e),cN(t).I();(cN(t)||e)&&(ck(t,e),e&&(u$(e),e.ha=t.D),t.b&&ui(t.b,t),cO(t))}})},r.da=function(t){return cp(this.i,t)},r.mc=function(){cO(this),this.da(cN(this))},r.wc=function(){this.Bb()},r.xc=function(){this.Bb()},r.kc=function(t){var e=this;return this.h.then(function(){return cA(e,el(t))})},r.zc=function(t){var e=this;this.addAuthTokenListener(function(){t.next(cN(e))})},r.Ac=function(t){var e,n,i=this;e=this,n=function(){t.next(cN(i))},e.N.push(n),cC(e,e.h.then(function(){!e.l&&Z(e.N,n)&&e.W!==e.getUid()&&(e.W=e.getUid(),n(c_(e)))}))},r.Ic=function(t,e,n){var i=this;return this.ba&&Promise.resolve().then(function(){"function"==typeof t?t(cN(i)):"function"==typeof t.next&&t.next(cN(i))}),this.Pa(t,e,n)},r.Hc=function(t,e,n){var i=this;return this.ba&&Promise.resolve().then(function(){i.W=i.getUid(),"function"==typeof t?t(cN(i)):"function"==typeof t.next&&t.next(cN(i))}),this.ib(t,e,n)},r.nc=function(t){var e=this;return cC(this,this.h.then(function(){return cN(e)?cN(e).I(t).then(function(t){return{accessToken:t}}):null}))},r.Tc=function(t){var e=this;return this.h.then(function(){return cA(e,aY(e.a,aG,{token:t}))}).then(function(t){var n=t.user;return u6(n,"isAnonymous",!1),e.da(n),t})},r.Uc=function(t,e){var n=this;return this.h.then(function(){return cA(n,aY(n.a,aB,{email:t,password:e}))})},r.dc=function(t,e){var n=this;return this.h.then(function(){return cA(n,aY(n.a,ay,{email:t,password:e}))})},r.ab=function(t){var e=this;return this.h.then(function(){return cA(e,t.ka(e.a))})},r.Sc=function(t){return ic("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.ab(t)},r.Ab=function(){var t=this;return this.h.then(function(){var e=cN(t);if(e&&e.isAnonymous){var n=ip({providerId:null,isNewUser:!1});return ip({user:e,credential:null,additionalUserInfo:n,operationType:"signIn"})}return cA(t,t.a.Ab()).then(function(e){var n=e.user;return u6(n,"isAnonymous",!0),t.da(n),e})})},r.getUid=function(){return cN(this)&&cN(this).uid||null},r.cc=function(t){this.addAuthTokenListener(t),this.u++,0<this.u&&cN(this)&&uZ(cN(this))},r.Pc=function(t){var e=this;G(this.s,function(n){n==t&&e.u--}),0>this.u&&(this.u=0),0==this.u&&cN(this)&&uJ(cN(this)),this.removeAuthTokenListener(t)},r.addAuthTokenListener=function(t){var e=this;this.s.push(t),cC(this,this.h.then(function(){e.l||Z(e.s,t)&&t(c_(e))}))},r.removeAuthTokenListener=function(t){Y(this.s,function(e){return e==t})},r.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(cd("local"),t.a,this.ja),this.b&&(ur(this.b,this),um(this.b.b)),Promise.resolve()},r.hc=function(t){return cC(this,aY(this.a,aw,{identifier:t,continueUri:n4()?nM():"http://localhost"}).then(function(t){return t.signinMethods||[]}))},r.Bc=function(t){return!!rj(t)},r.xb=function(t,e){var n=this;return cC(this,el().then(function(){var t=new iW(e);if(!t.c)throw new _("argument-error",iJ+" must be true when sending sign in link to email");return i2(t)}).then(function(e){return n.a.xb(t,e)}).then(function(){}))},r.jd=function(t){return this.Sa(t).then(function(t){return t.data.email})},r.ob=function(t,e){return cC(this,this.a.ob(t,e).then(function(){}))},r.Sa=function(t){return cC(this,this.a.Sa(t).then(function(t){return new iE(t)}))},r.kb=function(t){return cC(this,this.a.kb(t).then(function(){}))},r.wb=function(t,e){var n=this;return cC(this,el().then(function(){return void 0===e||td(e)?{}:i2(new iW(e))}).then(function(e){return n.a.wb(t,e)}).then(function(){}))},r.Wc=function(t,e){return cC(this,uT(this,t,e,E(this.ab,this)))},r.Vc=function(t,e){var n=this;return cC(this,el().then(function(){var i=e||nM(),r=rM(t,i);if(!(i=rj(i)))throw new _("argument-error","Invalid email link!");if(i.tenantId!==n.T())throw new _("tenant-id-mismatch");return n.ab(r)}))},cR.prototype.render=function(){},cR.prototype.reset=function(){},cR.prototype.getResponse=function(){},cR.prototype.execute=function(){};var cP=null;function cL(t,e){return(e=cx(e))&&t.a[e]||null}function cx(t){return(t=void 0===t?1e12:t)?t.toString():null}function cM(t,e){this.g=!1,this.c=e,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=t6(t);var n=this;this.i=function(){n.execute()},this.h?this.execute():eW(this.f,"click",this.i)}function cj(t){if(t.g)throw Error("reCAPTCHA mock was already deleted!")}function cU(){}function cV(){}cD.prototype.render=function(t,e){return this.a[this.b.toString()]=new cM(t,e),this.b++},cD.prototype.reset=function(t){var e=cL(this,t);t=cx(t),e&&t&&(e.delete(),delete this.a[t])},cD.prototype.getResponse=function(t){return(t=cL(this,t))?t.getResponse():null},cD.prototype.execute=function(t){(t=cL(this,t))&&t.execute()},cM.prototype.getResponse=function(){return cj(this),this.b},cM.prototype.execute=function(){cj(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(t){}t.a=setTimeout(function(){if(t.a=null,t.b=null,n)try{n()}catch(t){}t.h&&t.execute()},6e4)},500))},cM.prototype.delete=function(){cj(this),this.g=!0,clearTimeout(this.a),this.a=null,eJ(this.f,"click",this.i)},il(cU,"FACTOR_ID","phone"),cV.prototype.g=function(){return cP||(cP=new cD),el(cP)},cV.prototype.c=function(){};var cF=null;function cq(){this.b=c.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var cH=new tb(tI,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),cK=new ir(3e4,6e4);cq.prototype.g=function(t){var e=this;return new er(function(n,i){var r=setTimeout(function(){i(new _("network-request-failed"))},cK.get());c.grecaptcha&&(t===e.f||e.b)?(clearTimeout(r),n(c.grecaptcha)):(c[e.a]=function(){if(c.grecaptcha){e.f=t;var o=c.grecaptcha.render;c.grecaptcha.render=function(t,n){return t=o(t,n),e.b++,t},clearTimeout(r),n(c.grecaptcha)}else clearTimeout(r),i(new _("internal-error"));delete c[e.a]},el(oM(tA(cH,{onload:e.a,hl:t||""}))).o(function(){clearTimeout(r),i(new _("internal-error","Unable to load external reCAPTCHA dependencies!"))}))})},cq.prototype.c=function(){this.b--};var cG=null;function cB(t,e,n,i,r,o,a){if(il(this,"type","recaptcha"),this.c=this.f=null,this.J=!1,this.v=e,this.g=null,a?(cF||(cF=new cV),a=cF):(cG||(cG=new cq),a=cG),this.m=a,this.a=n||{theme:"light",type:"image"},this.h=[],this.a[cZ])throw new _("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[cJ],!c.document)throw new _("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!t6(e)||!this.i&&t6(e).hasChildNodes())throw new _("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.s=new oK(t,o||null,r||null),this.u=i||function(){return null};var s=this;this.l=[];var u=this.a[cW];this.a[cW]=function(t){if(cY(s,t),"function"==typeof u)u(t);else if("string"==typeof u){var e=n1(u,c);"function"==typeof e&&e(t)}};var h=this.a[cX];this.a[cX]=function(){if(cY(s,null),"function"==typeof h)h();else if("string"==typeof h){var t=n1(h,c);"function"==typeof t&&t()}}}var cW="callback",cX="expired-callback",cZ="sitekey",cJ="size";function cY(t,e){for(var n=0;n<t.l.length;n++)try{t.l[n](e)}catch(t){}}function cz(t,e){return t.h.push(e),e.oa(function(){J(t.h,e)}),e}function c$(t){if(t.J)throw new _("internal-error","RecaptchaVerifier instance has been destroyed.")}function cQ(t,e,n){var r=!1;try{this.b=n||i.Z.app()}catch(t){throw new _("argument-error","No firebase.app.App instance is currently initialized.")}if(this.b.options&&this.b.options.apiKey)n=this.b.options.apiKey;else throw new _("invalid-api-key");var o=this,a=null;try{a=this.b.auth().Ga()}catch(t){}try{r=this.b.auth().settings.appVerificationDisabledForTesting}catch(t){}a=i.Z.SDK_VERSION?nQ(i.Z.SDK_VERSION,a):null,cB.call(this,n,t,e,function(){try{var t=o.b.auth().la()}catch(e){t=null}return t},a,P(oB),r)}function c0(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 _("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>=c1.length)throw new _("internal-error","Argument validator received an unsupported number of arguments.");n=c1[r],i=(i?"":n+" argument ")+(e.name?'"'+e.name+'" ':"")+"must be "+e.K+".";break t}i=null}}if(i)throw new _("argument-error",t+" failed: "+i)}(r=cB.prototype).Ia=function(){var t=this;return this.f?this.f:this.f=cz(this,el().then(function(){if(n4()&&!nW())return nK();throw new _("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,aY(t.s,aP,{})}).then(function(e){t.a[cZ]=e.recaptchaSiteKey}).o(function(e){throw t.f=null,e}))},r.render=function(){c$(this);var t=this;return cz(this,this.Ia().then(function(){if(null===t.c){var e=t.v;if(!t.i){var n=t6(e);e=function(t,e,n){var i=arguments,r=document,o=String(i[0]),a=i[1];if(!t4&&a&&(a.name||a.type)){if(o=["<",o],a.name&&o.push(' name="',tH(a.name),'"'),a.type){o.push(' type="',tH(a.type),'"');var s={};tm(s,a),delete s.type,a=s}o.push(">"),o=o.join("")}return o=t7(r,o),a&&("string"==typeof a?o.className=a:Array.isArray(a)?o.className=a.join(" "):t5(o,a)),2<i.length&&function(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(!v(o)||g(o)&&0<o.nodeType)i(o);else{t:{if(o&&"number"==typeof o.length){if(g(o)){var a="function"==typeof o.item||"string"==typeof o.item;break t}if(m(o)){a="function"==typeof o.item;break t}}a=!1}G(a?$(o):o,i)}}}(r,o,i),o}("DIV"),n.appendChild(e)}t.c=t.g.render(e,t.a)}return t.c}))},r.verify=function(){c$(this);var t=this;return cz(this,this.render().then(function(e){return new er(function(n){var i=t.g.getResponse(e);if(i)n(i);else{var r=function(e){e&&(Y(t.l,function(t){return t==r}),n(e))};t.l.push(r),t.i&&t.g.execute(t.c)}})}))},r.reset=function(){c$(this),null!==this.c&&this.g.reset(this.c)},r.clear=function(){c$(this),this.J=!0,this.m.c();for(var t,e=0;e<this.h.length;e++)this.h[e].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i)for(e=t6(this.v);t=e.firstChild;)e.removeChild(t)},S(cQ,cB);var c1="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function c2(t,e){return{name:t||"",K:"a valid string",optional:!!e,M:function(t){return"string"==typeof t}}}function c3(t,e){return{name:t||"",K:"a boolean",optional:!!e,M:function(t){return"boolean"==typeof t}}}function c4(t,e){return{name:t||"",K:"a valid object",optional:!!e,M:g}}function c6(t,e){return{name:t||"",K:"a function",optional:!!e,M:function(t){return"function"==typeof t}}}function c5(t,e){return{name:t||"",K:"null",optional:!!e,M:function(t){return null===t}}}function c8(t){return{name:t?t+"Credential":"credential",K:t?"a valid "+t+" credential":"a valid credential",optional:!1,M:function(e){if(!e)return!1;var n=!t||e.providerId===t;return!(!e.ka||!n)}}}function c7(){return{name:"multiFactorAssertion",K:"a valid multiFactorAssertion",optional:!1,M:function(t){return!!t&&!!t.tb}}}function c9(){return{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}}function ht(t,e){return g(t)&&"string"==typeof t.type&&t.type===e&&"function"==typeof t.Ha}function he(t){return g(t)&&"string"==typeof t.uid}function hn(){return{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(t){return!(!t||"string"!=typeof t.type||"function"!=typeof t.verify)}}}function hi(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 hr(t,e){for(var n in e){var i=e[n].name;t[i]=hs(i,t[n],e[n].j)}}function ho(t,e){for(var n in e){var i=e[n].name;i!==n&&Object.defineProperty(t,i,{get:k(function(t){return this[t]},n),set:k(function(t,e,n,i){c0(t,[n],[i],!0),this[e]=i},i,n,e[n].lb),enumerable:!0})}}function ha(t,e,n,i){t[e]=hs(e,n,i)}function hs(t,e,n){function i(){var t=Array.prototype.slice.call(arguments);return c0(a,n,t),e.apply(this,t)}if(!n)return e;var r,o,a=(r=(r=t).split("."))[r.length-1];for(o in e)i[o]=e[o];for(o in e.prototype)i.prototype[o]=e.prototype[o];return i}hr(cb.prototype,{kb:{name:"applyActionCode",j:[c2("code")]},Sa:{name:"checkActionCode",j:[c2("code")]},ob:{name:"confirmPasswordReset",j:[c2("code"),c2("newPassword")]},dc:{name:"createUserWithEmailAndPassword",j:[c2("email"),c2("password")]},hc:{name:"fetchSignInMethodsForEmail",j:[c2("email")]},ra:{name:"getRedirectResult",j:[]},Bc:{name:"isSignInWithEmailLink",j:[c2("emailLink")]},Hc:{name:"onAuthStateChanged",j:[hi(c4(),c6(),"nextOrObserver"),c6("opt_error",!0),c6("opt_completed",!0)]},Ic:{name:"onIdTokenChanged",j:[hi(c4(),c6(),"nextOrObserver"),c6("opt_error",!0),c6("opt_completed",!0)]},wb:{name:"sendPasswordResetEmail",j:[c2("email"),hi(c4("opt_actionCodeSettings",!0),c5(null,!0),"opt_actionCodeSettings",!0)]},xb:{name:"sendSignInLinkToEmail",j:[c2("email"),c4("actionCodeSettings")]},yb:{name:"setPersistence",j:[c2("persistence")]},Sc:{name:"signInAndRetrieveDataWithCredential",j:[c8()]},Ab:{name:"signInAnonymously",j:[]},ab:{name:"signInWithCredential",j:[c8()]},Tc:{name:"signInWithCustomToken",j:[c2("token")]},Uc:{name:"signInWithEmailAndPassword",j:[c2("email"),c2("password")]},Vc:{name:"signInWithEmailLink",j:[c2("email"),c2("emailLink",!0)]},Wc:{name:"signInWithPhoneNumber",j:[c2("phoneNumber"),hn()]},Xc:{name:"signInWithPopup",j:[c9()]},Yc:{name:"signInWithRedirect",j:[c9()]},dd:{name:"updateCurrentUser",j:[hi({name:"user",K:"an instance of Firebase User",optional:!1,M:function(t){return!!(t&&t instanceof uq)}},c5(),"user")]},Bb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[c2(null,!0)]},fd:{name:"useDeviceLanguage",j:[]},gd:{name:"useEmulator",j:[c2("url"),c4("options",!0)]},jd:{name:"verifyPasswordResetCode",j:[c2("code")]}}),ho(cb.prototype,{lc:{name:"languageCode",lb:hi(c2(),c5(),"languageCode")},ti:{name:"tenantId",lb:hi(c2(),c5(),"tenantId")}}),cb.Persistence=sL,cb.Persistence.LOCAL="local",cb.Persistence.SESSION="session",cb.Persistence.NONE="none",hr(uq.prototype,{delete:{name:"delete",j:[]},oc:{name:"getIdTokenResult",j:[c3("opt_forceRefresh",!0)]},I:{name:"getIdToken",j:[c3("opt_forceRefresh",!0)]},Cc:{name:"linkAndRetrieveDataWithCredential",j:[c8()]},rb:{name:"linkWithCredential",j:[c8()]},Dc:{name:"linkWithPhoneNumber",j:[c2("phoneNumber"),hn()]},Ec:{name:"linkWithPopup",j:[c9()]},Fc:{name:"linkWithRedirect",j:[c9()]},Lc:{name:"reauthenticateAndRetrieveDataWithCredential",j:[c8()]},ub:{name:"reauthenticateWithCredential",j:[c8()]},Mc:{name:"reauthenticateWithPhoneNumber",j:[c2("phoneNumber"),hn()]},Nc:{name:"reauthenticateWithPopup",j:[c9()]},Oc:{name:"reauthenticateWithRedirect",j:[c9()]},reload:{name:"reload",j:[]},vb:{name:"sendEmailVerification",j:[hi(c4("opt_actionCodeSettings",!0),c5(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[c2(null,!0)]},cd:{name:"unlink",j:[c2("provider")]},Cb:{name:"updateEmail",j:[c2("email")]},Db:{name:"updatePassword",j:[c2("password")]},ed:{name:"updatePhoneNumber",j:[c8("phone")]},Eb:{name:"updateProfile",j:[c4("profile")]},Fb:{name:"verifyBeforeUpdateEmail",j:[c2("email"),hi(c4("opt_actionCodeSettings",!0),c5(null,!0),"opt_actionCodeSettings",!0)]}}),hr(cD.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),hr(cR.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),hr(er.prototype,{oa:{name:"finally"},o:{name:"catch"},then:{name:"then"}}),ho(uw.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",lb:c3("appVerificationDisabledForTesting")}}),hr(uI.prototype,{confirm:{name:"confirm",j:[c2("verificationCode")]}}),ha(rp,"fromJSON",function(t){t="string"==typeof t?JSON.parse(t):t;for(var e,n=[rI,rL,rV,rb],i=0;i<n.length;i++)if(e=n[i](t))return e;return null},[hi(c2(),c4(),"json")]),ha(rx,"credential",function(t,e){return new rP(t,e)},[c2("email"),c2("password")]),hr(rP.prototype,{w:{name:"toJSON",j:[c2(null,!0)]}}),hr(rA.prototype,{Ca:{name:"addScope",j:[c2("scope")]},Ka:{name:"setCustomParameters",j:[c4("customOAuthParameters")]}}),ha(rA,"credential",rS,[hi(c2(),c4(),"token")]),ha(rx,"credentialWithLink",rM,[c2("email"),c2("emailLink")]),hr(rN.prototype,{Ca:{name:"addScope",j:[c2("scope")]},Ka:{name:"setCustomParameters",j:[c4("customOAuthParameters")]}}),ha(rN,"credential",r_,[hi(c2(),c4(),"token")]),hr(rO.prototype,{Ca:{name:"addScope",j:[c2("scope")]},Ka:{name:"setCustomParameters",j:[c4("customOAuthParameters")]}}),ha(rO,"credential",rC,[hi(c2(),hi(c4(),c5()),"idToken"),hi(c2(),c5(),"accessToken",!0)]),hr(rR.prototype,{Ka:{name:"setCustomParameters",j:[c4("customOAuthParameters")]}}),ha(rR,"credential",rD,[hi(c2(),c4(),"token"),c2("secret",!0)]),hr(rk.prototype,{Ca:{name:"addScope",j:[c2("scope")]},credential:{name:"credential",j:[hi(c2(),hi(c4(),c5()),"optionsOrIdToken"),hi(c2(),c5(),"accessToken",!0)]},Ka:{name:"setCustomParameters",j:[c4("customOAuthParameters")]}}),hr(ry.prototype,{w:{name:"toJSON",j:[c2(null,!0)]}}),hr(rm.prototype,{w:{name:"toJSON",j:[c2(null,!0)]}}),ha(rq,"credential",rH,[c2("verificationId"),c2("verificationCode")]),hr(rq.prototype,{gb:{name:"verifyPhoneNumber",j:[hi(c2(),{name:"phoneInfoOptions",K:"valid phone info options",optional:!1,M:function(t){return!!t&&(t.session&&t.phoneNumber?ht(t.session,rf)&&"string"==typeof t.phoneNumber:t.session&&t.multiFactorHint?ht(t.session,rd)&&he(t.multiFactorHint):t.session&&t.multiFactorUid?ht(t.session,rd)&&"string"==typeof t.multiFactorUid:!!t.phoneNumber&&"string"==typeof t.phoneNumber)}},"phoneInfoOptions"),hn()]}}),hr(rU.prototype,{w:{name:"toJSON",j:[c2(null,!0)]}}),hr(_.prototype,{toJSON:{name:"toJSON",j:[c2(null,!0)]}}),hr(rY.prototype,{toJSON:{name:"toJSON",j:[c2(null,!0)]}}),hr(rJ.prototype,{toJSON:{name:"toJSON",j:[c2(null,!0)]}}),hr(uN.prototype,{toJSON:{name:"toJSON",j:[c2(null,!0)]}}),hr(uk.prototype,{Rc:{name:"resolveSignIn",j:[c7()]}}),hr(uP.prototype,{Sb:{name:"getSession",j:[]},fc:{name:"enroll",j:[c7(),c2("displayName",!0)]},bd:{name:"unenroll",j:[hi({name:"multiFactorInfo",K:"a valid multiFactorInfo",optional:!1,M:he},c2(),"multiFactorInfoIdentifier")]}}),hr(cQ.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),ha(ij,"parseLink",iB,[c2("link")]),ha(cU,"assertion",function(t){return new uR(t)},[c8("phone")]),function(){if(void 0!==i.Z&&i.Z.INTERNAL&&i.Z.INTERNAL.registerComponent){var t={ActionCodeInfo:{Operation:{EMAIL_SIGNIN:iA,PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:ik,VERIFY_AND_CHANGE_EMAIL:iS,VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:cb,AuthCredential:rp,Error:_};ha(t,"EmailAuthProvider",rx,[]),ha(t,"FacebookAuthProvider",rA,[]),ha(t,"GithubAuthProvider",rN,[]),ha(t,"GoogleAuthProvider",rO,[]),ha(t,"TwitterAuthProvider",rR,[]),ha(t,"OAuthProvider",rk,[c2("providerId")]),ha(t,"SAMLAuthProvider",rE,[c2("providerId")]),ha(t,"PhoneAuthProvider",rq,[{name:"auth",K:"an instance of Firebase Auth",optional:!0,M:function(t){return!!(t&&t instanceof cb)}}]),ha(t,"RecaptchaVerifier",cQ,[hi(c2(),{name:"",K:"an HTML element",optional:!1,M:function(t){return!!(t&&t instanceof Element)}},"recaptchaContainer"),c4("recaptchaParameters",!0),{name:"app",K:"an instance of Firebase App",optional:!0,M:function(t){return!!(t&&t instanceof i.Z.app.App)}}]),ha(t,"ActionCodeURL",ij,[]),ha(t,"PhoneMultiFactorGenerator",cU,[]),i.Z.INTERNAL.registerComponent({name:"auth",instanceFactory:function(t){return t=t.getProvider("app").getImmediate(),new cb(t)},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:E((t=t.getProvider("auth").getImmediate()).getUid,t),getToken:E(t.nc,t),addAuthTokenListener:E(t.cc,t),removeAuthTokenListener:E(t.Pc,t)}},multipleInstances:!1,instantiationMode:"LAZY",type:"PRIVATE"}),i.Z.registerVersion("@firebase/auth","0.16.8"),i.Z.INTERNAL.extendNamespace({User:uq})}else throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.")}()}).apply(void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})}}]);