PageSourceSearch

https://tabmanager.io/ff239f9d-86d199990229c658a0a5.js

js tabmanager.io collected 2026-10-08 01:34:43 UTC 180,654 bytes, 2 lines download raw bytes

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

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.