PageSourceSearch

https://on-track.com.au/315.3b705bf7bc09a94c.js

js on-track.com.au collected 2026-10-04 17:57:16 UTC 178,021 bytes, 1 lines download raw bytes

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

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.