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