/*! @license Firebase v3.7.5 Build: 3.7.5-rc.1 Terms: https://firebase.google.com/terms/ */ var firebase = null; (function() { var aa=function(a){var b=0;return function(){return b>>0)+"_",d=0,e=function(g){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(g||"")+"_"+d++,g)};return e}); var p=function(a){var b=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if(typeof a.length=="number")return{next:aa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");},q=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c},da=function(){for(var a=Number(this),b=[],c=a;c0){this.G--;var a=this.F;this.F=a.next;a.next=null}else a=this.X();return a};C.prototype.put=function(a){this.da(a);this.G1)));k=k.next)e||(g=k);e&&(c.g==0&&d==1?va(c,b):(g?(d=g,A(c.i),A(d!=null),d.next==c.u&&(c.u=d),d.next=d.next.next):wa(c),xa(c,e,3,b)))}a.m=null}else M(a,3,b)},ta=function(a,b){a.i||a.g!=2&&a.g!=3||ya(a);A(b.l!=null);a.u?a.u.next=b:a.i=b;a.u=b},sa=function(a,b,c,d){b&&(b=H(b,"goog.Promise.then"));c&&(c=H(c,"goog.Promise.then"));var e=pa(null,null,null);e.child=new O(function(g, k){e.l=b?function(f){try{var h=b.call(d,f);g(h)}catch(m){k(m)}}:g;e.v=c?function(f){try{var h=c.call(d,f);h===void 0&&f instanceof N?k(f):g(h)}catch(m){k(m)}}:k});e.child.m=a;ta(a,e);return e.child};O.prototype.fa=function(a){A(this.g==1);this.g=0;M(this,2,a)};O.prototype.ga=function(a){A(this.g==1);this.g=0;M(this,3,a)}; var M=function(a,b,c){a.g==0&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.g=1,qa(c,a.fa,a.ga,a)||(a.U=c,a.g=b,a.m=null,ya(a),b!=3||c instanceof N||za(a,c)))},qa=function(a,b,c,d){if(a instanceof O)return ua(a,b,c,d),!0;if(a)try{var e=!!a.$goog_Thenable}catch(k){e=!1}else e=!1;if(e)return a.then(b,c,d),!0;e=typeof a;if(e=="object"&&a!=null||e=="function")try{var g=a.then;if(typeof g==="function")return Aa(a,g,b,c,d),!0}catch(k){return c.call(d,k),!0}return!1},Aa=function(a, b,c,d,e){var g=!1,k=function(h){g||(g=!0,c.call(e,h))},f=function(h){g||(g=!0,d.call(e,h))};try{b.call(a,k,f)}catch(h){f(h)}},ya=function(a){a.I||(a.I=!0,K(a.Y,a))},wa=function(a){var b=null;a.i&&(b=a.i,a.i=b.next,b.next=null);a.i||(a.u=null);b!=null&&A(b.l!=null);return b};O.prototype.Y=function(){for(var a;a=wa(this);)xa(this,a,this.g,this.U);this.I=!1}; var xa=function(a,b,c,d){if(c==3&&b.v&&!b.A)for(;a&&a.D;a=a.m)a.D=!1;if(b.child)b.child.m=null,Ba(b,c,d);else try{b.A?b.l.call(b.context):Ba(b,c,d)}catch(e){Ca.call(null,e)}oa.put(b)},Ba=function(a,b,c){b==2?a.l.call(a.context,c):a.v&&a.v.call(a.context,c)},za=function(a,b){a.D=!0;K(function(){a.D&&Ca.call(null,b)})},Ca=ha,N=function(a){w.call(this,a)};u(N,w);N.prototype.name="cancel";O.all=function(a){return new O(function(b,c){var d=a.length,e=[];if(d)for(var g=function(m,t){d--;e[m]=t;d==0&&b(e)},k=function(m){c(m)},f,h=0;h"});c=this.ea+": "+c+" ("+a+").";c=new S(a,c);for(var d in b)b.hasOwnProperty(d)&&d.slice(-1)!=="_"&&(c[d]=b[d]);return c};var Ea=P;function Fa(a,b){a=new T(a,b);return a.subscribe.bind(a)}var T=function(a,b){var c=this;this.h=[];this.T=0;this.task=Ea.resolve();this.B=!1;this.K=b;this.task.then(function(){a(c)}).catch(function(d){c.error(d)})};T.prototype.next=function(a){U(this,function(b){b.next(a)})};T.prototype.error=function(a){U(this,function(b){b.error(a)});this.close(a)};T.prototype.complete=function(){U(this,function(a){a.complete()});this.close()}; T.prototype.subscribe=function(a,b,c){var d=this;if(a===void 0&&b===void 0&&c===void 0)throw Error("Missing Observer.");var e=Ga(a)?a:{next:a,error:b,complete:c};e.next===void 0&&(e.next=V);e.error===void 0&&(e.error=V);e.complete===void 0&&(e.complete=V);a=this.ha.bind(this,this.h.length);this.B&&this.task.then(function(){try{d.P?e.error(d.P):e.complete()}catch(g){}});this.h.push(e);return a}; T.prototype.ha=function(a){this.h!==void 0&&this.h[a]!==void 0&&(delete this.h[a],--this.T,this.T===0&&this.K!==void 0&&this.K(this))};var U=function(a,b){if(!a.B)for(var c=0;c>>0)+"_",d=0,e=function(f){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(f||"")+"_"+d++,f)};return e}); p("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}},w=function(a,b,c){w=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?za:Aa;return w.apply(null,arguments)},Ba=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments); return a.apply(this,d)}},x=function(a,b){function c(){}c.prototype=b.prototype;a.Gc=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.kl=function(d,e,f){for(var g=Array(arguments.length-2),h=2;h1?b:"0"+b}).join("")};var Na=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Oa=/&/g,Pa=//g,Ra=/"/g,Sa=/'/g,Ta=/\x00/g,Ua=/[\x00&<>"']/;function A(a,b){return a.indexOf(b)!=-1};var Va=wa(610401301),Wa=wa(1331761403);function Xa(){var a=u.navigator;return a&&(a=a.userAgent)?a:""}var Ya,Za=u.navigator;Ya=Za?Za.userAgentData||null:null;function B(a){return A(Xa(),a)};var $a=Array.prototype.indexOf?function(a,b){z(a.length!=null);return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(typeof a==="string")return typeof b!=="string"||b.length!=1?-1:a.indexOf(b,0);for(var c=0;c=0;--d)d in c&&b.call(void 0,c[d],d,a)} var bb=Array.prototype.filter?function(a,b){z(a.length!=null);return Array.prototype.filter.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=[],e=0,f=typeof a==="string"?a.split(""):a,g=0;g=0}function fb(a,b){b=$a(a,b);var c;(c=b>=0)&&gb(a,b);return c}function gb(a,b){z(a.length!=null);return Array.prototype.splice.call(a,b,1).length==1}function hb(a,b){var c=0;ab(a,function(d,e){b.call(void 0,d,e,a)&&gb(a,e)&&c++})} function jb(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;d0?!1:B("Opera"),lb=Va&&Ya&&Ya.brands.length>0?!1:B("Trident")||B("MSIE"),mb=B("Edge"),nb=B("Gecko")&&!(A(Xa().toLowerCase(),"webkit")&&!B("Edge"))&&!(B("Trident")||B("MSIE"))&&!B("Edge"),ob=A(Xa().toLowerCase(),"webkit")&&!B("Edge"),pb=function(){var a=u.document;return a?a.documentMode:void 0},qb; a:{var rb="",sb=function(){var a=Xa();if(nb)return/rv:([^\);]+)(\)|;)/.exec(a);if(mb)return/Edge\/([\d\.]+)/.exec(a);if(lb)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(ob)return/WebKit\/(\S+)/.exec(a);if(kb)return/(?:Version)[ \/]?(\S+)/.exec(a)}();sb&&(rb=sb?sb[1]:"");if(lb){var tb=pb();if(tb!=null&&tb>parseFloat(rb)){qb=String(tb);break a}}qb=rb}var ub=qb,vb;if(u.document&&lb){var wb=pb();vb=wb?wb:parseInt(ub,10)||void 0}else vb=void 0;var xb=vb;var yb=null,Ab=function(a){var b=[];zb(a,function(c){b.push(c)});return b},zb=function(a,b){function c(k){for(;d>4);g!=64&&(b(f<<4&240|g>>2),h!=64&&b(g<<6&192|h))}},Bb=function(){if(!yb){yb={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""), b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++)for(var d=a.concat(b[c].split("")),e=0;e>13&1023||536870912,a!== 536870912&&d.push("pivot: "+a));return d.join(",")};var Hb=typeof Symbol!="undefined"&&typeof Symbol.hasInstance!="undefined";Object.freeze({});var Ib=function(){throw Error("please construct maps as mutable then call toImmutable");};if(Hb){var Jb=function(){throw Error("Cannot perform instanceof checks on ImmutableMap: please use isImmutableMap or isMutableMap to assert on the mutability of a map. See go/jspb-api-gotchas#immutable-classes for more information");},Kb={};Object.defineProperties(Ib,(Kb[Symbol.hasInstance]={value:Jb,configurable:!1,writable:!1,enumerable:!1},Kb));z(Ib[Symbol.hasInstance]===Jb,"defineProperties did not work: was it monkey-patched?")};if(typeof Proxy!=="undefined"){var Mb=Lb;new Proxy({},{getPrototypeOf:Mb,setPrototypeOf:Mb,isExtensible:Mb,preventExtensions:Mb,getOwnPropertyDescriptor:Mb,defineProperty:Mb,has:Mb,get:Mb,set:Mb,deleteProperty:Mb,apply:Mb,construct:Mb})}function Lb(){throw Error("this array or object is owned by JSPB and should not be reused, did you mean to copy it with copyJspbArray? See go/jspb-api-gotchas#construct_from_array");};z(!0);/* SPDX-License-Identifier: Apache-2.0 */ (function(){}).prototype=Object.create(null);/* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ var Nb={};function Ob(){if(Nb!==Nb)throw Error("Bad secret");};var Pb=globalThis.trustedTypes,Qb;function Rb(){var a=null;if(!Pb)return a;try{var b=function(c){return c};a=Pb.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){throw c;}return a}function Sb(){Qb===void 0&&(Qb=Rb());return Qb};var Tb=function(a){Ob();this.Rh=a};Tb.prototype.toString=function(){return this.Rh+""};function Ub(a){var b=Sb();a=b?b.createScriptURL(a):a;return new Tb(a)}function Vb(a){if(a instanceof Tb)return a.Rh;throw Error("Unexpected type when unwrapping TrustedResourceUrl");};var Wb=qa([""]),Xb=pa(["\x00"],["\\0"]),Yb=pa(["\n"],["\\n"]),Zb=pa(["\x00"],["\\u0000"]),$b=qa([""]),ac=pa(["\x00"],["\\0"]),bc=pa(["\n"],["\\n"]),cc=pa(["\x00"],["\\u0000"]); function dc(a,b){if(!Array.isArray(a)||!Array.isArray(a.raw)||a.length!==a.raw.length||!ec&&a===a.raw||!(ec&&!fc||hc(a))||b+1!==a.length)throw new TypeError("\n ############################## ERROR ##############################\n\n It looks like you are trying to call a template tag function (fn`...`)\n using the normal function syntax (fn(...)), which is not supported.\n\n The functions in the safevalues library are not designed to be called\n like normal functions, and doing so invalidates the security guarantees\n that safevalues provides.\n\n If you are stuck and not sure how to proceed, please reach out to us\n instead through:\n - go/ise-hardening-yaqs (preferred) // LINE-INTERNAL\n - g/ise-hardening // LINE-INTERNAL\n - https://github.com/google/safevalues/issues\n\n ############################## ERROR ##############################");} function hc(a){return Object.isFrozen(a)&&Object.isFrozen(a.raw)}function ic(a){return a.toString().indexOf("`")===-1}var ec=ic(function(a){return a(Wb)})||ic(function(a){return a(Xb)})||ic(function(a){return a(Yb)})||ic(function(a){return a(Zb)}),fc=hc($b)&&hc(ac)&&hc(bc)&&hc(cc);var jc=function(a){Ob();this.Th=a};jc.prototype.toString=function(){return this.Th};new jc("about:blank");var kc=new jc("about:invalid#zClosurez");function lc(a){if(a instanceof jc)return a.Th;throw Error("Unexpected type when unwrapping SafeUrl, got '"+a+"' of type '"+typeof a+"'");};var mc=function(a){this.Ej=a};function nc(a){return new mc(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})}var oc=[nc("data"),nc("http"),nc("https"),nc("mailto"),nc("ftp"),new mc(function(a){return/^[^:]*([/?#]|$)/.test(a)})];function pc(a){var b=b===void 0?oc:b;a:if(b=b===void 0?oc:b,a instanceof jc)b=a;else{for(var c=0;c=e.value}if(d){b=b||Ec;d=Rc(Sc(),a.getName());typeof c==="function"&&(c=c());Kc||(Kc=new Jc);e=Kc;a=a.getName();if(e.Rd>0){var f=(e.Rg+1)%e.Rd;e.Rg=f;e.uh?(e=e.Gg[f],e.reset(b,c,a),a=e):(e.uh=f==e.Rd-1,a=e.Gg[f]=new Lc(b,c,a))}else a=new Lc(b,c,a);Oc(d,a)}},Uc=function(a,b){a&&Tc(a,Ic,b)};function Vc(a){if(typeof a!=="string"||a.trim()==="")throw Error("Calls to uncheckedconversion functions must go through security review. A justification must be provided to capture what security assumptions are being made. See go/unchecked-conversions");};var Wc=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&c.length>1;)d+=c.shift()+e.shift();return d+c.join("%s")};var Xc="src srcdoc codebase data href rel action formaction sandbox icon".split(" ");function Yc(a){if(a instanceof vc)return a;a=String(a).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return wc(a)};function Zc(a){var b=sa.apply(1,arguments);dc(a,b.length);if(b.length===0)return Ub(a[0]);var c=a[0].toLowerCase();if(/^data:/.test(c))throw Error("Data URLs cannot have expressions in the template literal input.");if(/^https:\/\//.test(c)||/^\/\//.test(c)){var d=c.indexOf("//")+2;var e=c.indexOf("/",d);if(e<=d)throw Error("Can't interpolate data in a url's origin, Please make sure to fully specify the origin, terminated with '/'.");d=c.substring(d,e);if(!/^[0-9a-z.:-]+$/i.test(d))throw Error("The origin contains unsupported characters."); if(!/^[^:]*(:[0-9]+)?$/i.test(d))throw Error("Invalid port number.");if(!/(^|\.)[a-z][^.]*$/i.test(d))throw Error("The top-level domain must start with a letter.");d=!0}else d=!1;if(!d)if(/^\//.test(c))if(c==="/"||c.length>1&&c[1]!=="/"&&c[1]!=="\\")d=!0;else throw Error("The path start in the url is invalid.");else d=!1;if(!(d=d||RegExp("^[^:\\s\\\\/]+/").test(c)))if(/^about:blank/.test(c)){if(c!=="about:blank"&&!/^about:blank#/.test(c))throw Error("The about url is invalid.");d=!0}else d=!1;if(!d)throw Error("Trying to interpolate expressions in an unsupported url format."); c=a[0];for(d=0;d=0){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?decodeURIComponent(e.replace(/\+/g," ")):"")}}};var kd=function(a){this.ha=this.Xb=this.ua="";this.Sa=null;this.kc=this.eb="";this.Ba=this.Cj=!1;if(a instanceof kd){this.Ba=a.Ba;ld(this,a.ua);var b=a.Xb;md(this);this.Xb=b;nd(this,a.ha);od(this,a.Sa);pd(this,a.eb);qd(this,a.ya.clone());rd(this,a.kc)}else a&&(b=String(a).match(id))?(this.Ba=!1,ld(this,b[1]||"",!0),a=b[2]||"",md(this),this.Xb=sd(a),nd(this,b[3]||"",!0),od(this,b[4]),pd(this,b[5]||"",!0),qd(this,b[6]||"",!0),rd(this,b[7]||"",!0)):(this.Ba=!1,this.ya=new td(null,this.Ba))}; kd.prototype.toString=function(){var a=[],b=this.ua;b&&a.push(ud(b,vd,!0),":");var c=this.ha;if(c||b=="file")a.push("//"),(b=this.Xb)&&a.push(ud(b,vd,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.Sa,c!=null&&a.push(":",String(c));if(c=this.eb)this.ha&&c.charAt(0)!="/"&&a.push("/"),a.push(ud(c,c.charAt(0)=="/"?wd:xd,!0));(c=this.ya.toString())&&a.push("?",c);(c=this.kc)&&a.push("#",ud(c,yd));return a.join("")}; kd.prototype.resolve=function(a){var b=this.clone(),c=!!a.ua;c?ld(b,a.ua):c=!!a.Xb;if(c){var d=a.Xb;md(b);b.Xb=d}else c=!!a.ha;c?nd(b,a.ha):c=a.Sa!=null;d=a.eb;if(c)od(b,a.Sa);else if(c=!!a.eb){if(d.charAt(0)!="/")if(this.ha&&!this.eb)d="/"+d;else{var e=b.eb.lastIndexOf("/");e!=-1&&(d=b.eb.slice(0,e+1)+d)}e=d;if(e==".."||e==".")d="";else if(A(e,"./")||A(e,"/.")){d=e.lastIndexOf("/",0)==0;e=e.split("/");for(var f=[],g=0;g 1||f.length==1&&f[0]!="")&&f.pop(),d&&g==e.length&&f.push("")):(f.push(h),d=!0)}d=f.join("/")}else d=e}c?pd(b,d):c=a.ya.toString()!=="";c?qd(b,a.ya.clone()):c=!!a.kc;c&&rd(b,a.kc);return b};kd.prototype.clone=function(){return new kd(this)}; var ld=function(a,b,c){md(a);a.ua=c?sd(b,!0):b;a.ua&&(a.ua=a.ua.replace(/:$/,""))},nd=function(a,b,c){md(a);a.ha=c?sd(b,!0):b},od=function(a,b){md(a);if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("Bad port number "+b);a.Sa=b}else a.Sa=null},pd=function(a,b,c){md(a);a.eb=c?sd(b,!0):b;return a},qd=function(a,b,c){md(a);b instanceof td?(a.ya=b,a.ya.qg(a.Ba)):(c||(b=ud(b,zd)),a.ya=new td(b,a.Ba));return a},Ad=function(a){return qd(a,"")};kd.prototype.getQuery=function(){return this.ya.toString()}; var D=function(a,b,c){md(a);a.ya.set(b,c)},E=function(a,b){return a.ya.get(b)},rd=function(a,b,c){md(a);a.kc=c?sd(b):b;return a};kd.prototype.removeParameter=function(a){md(this);this.ya.remove(a);return this};var md=function(a){if(a.Cj)throw Error("Tried to modify a read-only Uri");};kd.prototype.qg=function(a){this.Ba=a;this.ya&&this.ya.qg(a)}; var F=function(a){return a instanceof kd?a.clone():new kd(a)},Bd=function(a,b,c,d,e,f){var g=new kd(null);a&&ld(g,a);b&&nd(g,b);c&&od(g,c);d&&pd(g,d);e&&qd(g,e);f&&rd(g,f);return g},sd=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},ud=function(a,b,c){return typeof a==="string"?(a=encodeURI(a).replace(b,Cd),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Cd=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},vd=/[#\/\?@]/g, xd=/[#\?:]/g,wd=/[#\?]/g,zd=/[#\?@]/g,yd=/#/g,td=function(a,b){this.ga=this.N=null;this.va=a||null;this.Ba=!!b},Dd=function(a){a.N||(a.N=new Map,a.ga=0,a.va&&jd(a.va,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))},Fd=function(a){var b=gd(a);if(typeof b=="undefined")throw Error("Keys are undefined");var c=new td(null);a=fd(a);for(var d=0;d0?String(a[0]):b};var Ed=function(a,b,c){a.remove(b);c.length>0&&(a.va=null,a.N.set(a.wa(b),jb(c)),a.ga=Ia(a.ga)+c.length)};l=td.prototype; l.toString=function(){if(this.va)return this.va;if(!this.N)return"";for(var a=[],b=Array.from(this.N.keys()),c=0;c":f.push(n);c.push(b(f.join(""), g));e=0;f=[];h=g=null;break;default:f.push(n)}break;default:throw Error();}e===1&&k>=d&&(k=h+1,c.push("<"),e=0,f=[],h=g=null)}return c.join("")} var G=function(a){Kd(a)?(a=Sd(a.content),a=String(a).replace(Vd,Nd)):a=String(a).replace(Md,Nd);return a},Wd=function(a,b,c,d){a||(a=c instanceof Function?c.displayName||c.name||"unknown type name":c instanceof Object?c.constructor.displayName||c.constructor.name||Object.prototype.toString.call(c):c===null?"null":typeof c,Ha("expected @param "+b+" of type "+d+", but got "+a+"."),Ha("parameter type error. Enable DEBUG to see details."));return c},Xd={},Yd=function(){z(Xd===Xd,"found an incorrect call marker, was an internal function called from the top level?")}, Kd=function(a){var b=a!=null&&a.Ng===Gd;b&&Id&&z(a instanceof Id);return b},Zd={"\x00":"�","\t":" ","\n":" ","\v":" ","\f":" ","\r":" "," ":" ",'"':""","&":"&","'":"'","-":"-","/":"/","<":"<","=":"=",">":">","`":"`","\u0085":"…","\u00a0":" ","\u2028":"
","\u2029":"
"},Nd=function(a){return Zd[a]},Md=/[\x00\x22\x26\x27\x3c\x3e]/g,Vd=/[\x00\x22\x27\x3c\x3e]/g,Rd=/2&&ke(a,d,b,2);return d},ke=function(a,b,c,d){function e(h){h&&b.appendChild(typeof h==="string"?a.createTextNode(h):h)}for(;d0)e(f);else{a:{if(f&&typeof f.length=="number"){if(v(f)){var g=typeof f.item== "function"||typeof f.item=="string";break a}if(typeof f==="function"){g=typeof f.item=="function";break a}}g=!1}C(g?jb(f):f,e)}}},je=function(a,b){b=String(b);a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)},le=function(a,b){z(a!=null&&b!=null,"goog.dom.appendChild expects non-null arguments");a.appendChild(b)},me=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},ne=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},oe=function(){var a= document.body;if(a.lastElementChild!==void 0)a=a.lastElementChild;else for(a=a.lastChild;a&&a.nodeType!=1;)a=a.previousSibling;return a},pe=function(a){z(a,"Node cannot be null or undefined.");return a.nodeType==9?a:a.ownerDocument||a.document},qe=function(a,b){z(a!=null,"goog.dom.setTextContent expects a non-null value for node");if("textContent"in a)a.textContent=b;else if(a.nodeType==3)a.data=String(b);else if(a.firstChild&&a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(z(a.lastChild)); a.firstChild.data=String(b)}else{me(a);var c=pe(a);a.appendChild(c.createTextNode(String(b)))}},re={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},se={IMG:" ",BR:"\n"},ve=function(a){var b=[];ue(a,b,!0);a=b.join("");a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");a=a.replace(/ +/g," ");a!=" "&&(a=a.replace(/^\s*/,""));return a},ue=function(a,b,c){if(!(a.nodeName in re))if(a.nodeType==3)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in se)b.push(se[a.nodeName]);else for(a=a.firstChild;a;)ue(a,b,c),a=a.nextSibling},we=function(a){this.ab=a||u.document||document};we.prototype.getElementsByTagName=function(a,b){return(b||this.ab).getElementsByTagName(String(a))};var xe=function(a,b){a=a.ab;return(b=b&&b!="*"?String(b).toUpperCase():"")?a.querySelectorAll(b+""):a.getElementsByTagName("*")};l=we.prototype;l.Pg=function(a,b,c){return he(this.ab,arguments)};l.createElement=function(a){return je(this.ab,a)};l.createTextNode=function(a){return this.ab.createTextNode(String(a))}; l.getWindow=function(){return this.ab.defaultView};l.appendChild=le;l.append=function(a,b){ke(pe(a),a,arguments,1)};l.canHaveChildren=function(a){if(a.nodeType!=1)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; l.removeNode=ne;l.contains=function(a,b){if(!a||!b)return!1;if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var ye=/^<(body|caption|col|colgroup|head|html|tr|td|th|tbody|thead|tfoot)>/i,ze={};Rc(Sc(),"api_idom");var Ae=function(a,b){return Pd["fireauth.oauthhelper.ui.soy.pendingScreen"]?Pd["fireauth.oauthhelper.ui.soy.pendingScreen"](a,b):Ld('
')},Be=function(a,b){a=a||{};a=a.appName;Yd();Pd["fireauth.oauthhelper.ui.soy.continueScreen"]?b=Pd["fireauth.oauthhelper.ui.soy.continueScreen"]({appName:a},b):(a=Wd(a==null||typeof a=== "string","appName",a,"null|string|undefined"),b='
"));return b},Ce=function(a,b){a=a.errorMessage;Yd();Pd["fireauth.oauthhelper.ui.soy.errorScreen"]?b=Pd["fireauth.oauthhelper.ui.soy.errorScreen"]({errorMessage:a}, b):(b=Wd(typeof a==="string","errorMessage",a,"string"),b=Ld('
'+Od(b)+"
"));return b},De=function(a,b){if(Pd["fireauth.oauthhelper.ui.soy.appVerificationScreen"])return Pd["fireauth.oauthhelper.ui.soy.appVerificationScreen"](a,b);a='

Verifying you\'re not a robot...

')};function Ee(){this.blockSize=-1};function Fe(a,b){this.blockSize=-1;this.blockSize=64;this.Td=u.Uint8Array?new Uint8Array(this.blockSize):Array(this.blockSize);this.Te=this.qc=0;this.G=[];this.Mj=a;this.qh=b;this.Gk=u.Int32Array?new Int32Array(64):Array(64);Ge===void 0&&(Ge=u.Int32Array?new Int32Array(He):He);this.reset()}x(Fe,Ee);for(var Ie=[],Je=0;Je<63;Je++)Ie[Je]=0;var Ke=[].concat(128,Ie);Fe.prototype.reset=function(){this.Te=this.qc=0;this.G=u.Int32Array?new Int32Array(this.qh):jb(this.qh)}; var Le=function(a){var b=a.Td;z(b.length==a.blockSize);for(var c=a.Gk,d=0,e=0;e>>7|d<<25)^(d>>>18|d<<14)^d>>>3)|0)+((c[b-7]|0)+((e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)|0)|0;b=a.G[0]|0;d=a.G[1]|0;e=a.G[2]|0;for(var f=a.G[3]|0,g=a.G[4]|0,h=a.G[5]|0,k=a.G[6]|0,n=a.G[7]|0,m=0;m<64;m++){var r=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&d^b&e^d&e)|0,t=(n+((g>>>6|g<<26)^(g>>>11| g<<21)^(g>>>25|g<<7))|0)+(((g&h^~g&k)+(Ge[m]|0)|0)+(c[m]|0)|0)|0;n=k;k=h;h=g;g=f+t|0;f=e;e=d;d=b;b=t+r|0}a.G[0]=a.G[0]+b|0;a.G[1]=a.G[1]+d|0;a.G[2]=a.G[2]+e|0;a.G[3]=a.G[3]+f|0;a.G[4]=a.G[4]+g|0;a.G[5]=a.G[5]+h|0;a.G[6]=a.G[6]+k|0;a.G[7]=a.G[7]+n|0}; Fe.prototype.update=function(a,b){b===void 0&&(b=a.length);var c=0,d=this.qc;if(typeof a==="string")for(;c=e&&e==(e|0)))throw Error("message must be a byte array");this.Td[d++]=e;d==this.blockSize&&(Le(this),d=0)}else throw Error("message must be string or array");this.qc=d;this.Te+=b}; Fe.prototype.digest=function(){var a=[],b=this.Te*8;this.qc<56?this.update(Ke,56-this.qc):this.update(Ke,this.blockSize-(this.qc-56));for(var c=63;c>=56;c--)this.Td[c]=b&255,b/=256;Le(this);for(c=b=0;c=0;d-=8)a[b++]=this.G[c]>>d&255;return a}; var He=[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],Ge;function Me(){Fe.call(this,8,Ne)}x(Me,Fe);var Ne=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];var Oe=function(){this.Wc=this.Wc;this.xe=this.xe};Oe.prototype.Wc=!1;Oe.prototype.isDisposed=function(){return this.Wc};Oe.prototype.dispose=function(){this.Wc||(this.Wc=!0,this.Vc())};Oe.prototype[Symbol.dispose]=function(){this.dispose()};Oe.prototype.Vc=function(){if(this.xe)for(;this.xe.length;)this.xe.shift()()};var H=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.qd=!1};H.prototype.stopPropagation=function(){this.qd=!0};H.prototype.preventDefault=function(){this.defaultPrevented=!0};var Pe=function(){if(!u.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{var c=function(){};u.addEventListener("test",c,b);u.removeEventListener("test",c,b)}catch(d){}return a}();var Qe=function(a,b){H.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.qa=null;a&&this.init(a,b)};x(Qe,H); Qe.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;b=a.relatedTarget;b||(c=="mouseover"?b=a.fromElement:c=="mouseout"&&(b=a.toElement));this.relatedTarget=b;d?(this.clientX=d.clientX!==void 0?d.clientX:d.pageX,this.clientY=d.clientY!==void 0?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.offsetX=ob||a.offsetX!==void 0?a.offsetX:a.layerX,this.offsetY= ob||a.offsetY!==void 0?a.offsetY:a.layerY,this.clientX=a.clientX!==void 0?a.clientX:a.pageX,this.clientY=a.clientY!==void 0?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType=a.pointerType;this.state=a.state;this.timeStamp= a.timeStamp;this.qa=a;a.defaultPrevented&&Qe.Gc.preventDefault.call(this)};Qe.prototype.stopPropagation=function(){Qe.Gc.stopPropagation.call(this);this.qa.stopPropagation?this.qa.stopPropagation():this.qa.cancelBubble=!0};Qe.prototype.preventDefault=function(){Qe.Gc.preventDefault.call(this);var a=this.qa;a.preventDefault?a.preventDefault():a.returnValue=!1};Qe.prototype.dj=function(){return this.qa};var Re="closure_listenable_"+(Math.random()*1E6|0);var Se=0;var Te=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.fe=e;this.key=++Se;this.vd=this.Pd=!1},Ue=function(a){a.vd=!0;a.listener=null;a.proxy=null;a.src=null;a.fe=null};function Ve(a){this.src=a;this.ia={};this.Dd=0}Ve.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.ia[f];a||(a=this.ia[f]=[],this.Dd++);var g=We(a,b,d,e);g>-1?(b=a[g],c||(b.Pd=!1)):(b=new Te(b,this.src,f,!!d,e),b.Pd=c,a.push(b));return b};Ve.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.ia))return!1;var e=this.ia[a];b=We(e,b,c,d);return b>-1?(Ue(e[b]),gb(e,b),e.length==0&&(delete this.ia[a],this.Dd--),!0):!1}; var Xe=function(a,b){var c=b.type;c in a.ia&&fb(a.ia[c],b)&&(Ue(b),a.ia[c].length==0&&(delete a.ia[c],a.Dd--))};Ve.prototype.Ef=function(a,b,c,d){a=this.ia[a.toString()];var e=-1;a&&(e=We(a,b,c,d));return e>-1?a[e]:null};Ve.prototype.hasListener=function(a,b){var c=a!==void 0,d=c?a.toString():"",e=b!==void 0;return ad(this.ia,function(f){for(var g=0;g>>0),cf=function(a){z(a,"Listener can not be null.");if(typeof a==="function")return a;z(a.handleEvent,"An object listener must have handleEvent method.");a[mf]||(a[mf]= function(b){return a.handleEvent(b)});return a[mf]};var nf=function(){Oe.call(this);this.Da=new Ve(this);this.Ki=this;this.Yf=null};x(nf,Oe);nf.prototype[Re]=!0;l=nf.prototype;l.addEventListener=function(a,b,c,d){bf(this,a,b,c,d)};l.removeEventListener=function(a,b,c,d){kf(this,a,b,c,d)}; l.dispatchEvent=function(a){of(this);var b=this.Yf;if(b){var c=[];for(var d=1;b;b=b.Yf)c.push(b),z(++d<1E3,"infinite loop")}b=this.Ki;d=a.type||a;if(typeof a==="string")a=new H(a,b);else if(a instanceof H)a.target=a.target||b;else{var e=a;a=new H(d,b);ed(a,e)}e=!0;var f;if(c)for(f=c.length-1;!a.qd&&f>=0;f--){var g=a.currentTarget=c[f];e=pf(g,d,!0,a)&&e}a.qd||(g=a.currentTarget=b,e=pf(g,d,!0,a)&&e,a.qd||(e=pf(g,d,!1,a)&&e));if(c)for(f=0;!a.qd&&f=1&&this.Qa&&this.readyState!=4&&(this.Qa=!1,Bf(this));this.readyState=0}; zf.prototype.nj=function(a){if(this.Qa&&(this.Yd=a,this.Ec||(this.status=this.Yd.status,this.statusText=this.Yd.statusText,this.Ec=a.headers,this.readyState=2,Af(this)),this.Qa&&(this.readyState=3,Af(this),this.Qa)))if(this.responseType==="arraybuffer")a.arrayBuffer().then(this.lj.bind(this),this.ee.bind(this));else if(typeof u.ReadableStream!=="undefined"&&"body"in a){this.Sc=a.body.getReader();if(this.Ad){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); this.response=[]}else this.response=this.responseText="",this.wg=new TextDecoder;Cf(this)}else a.text().then(this.mj.bind(this),this.ee.bind(this))};var Cf=function(a){a.Sc.read().then(a.hj.bind(a)).catch(a.ee.bind(a))};zf.prototype.hj=function(a){if(this.Qa){if(this.Ad&&a.value)this.response.push(a.value);else if(!this.Ad){var b=a.value?a.value:new Uint8Array(0);if(b=this.wg.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?Bf(this):Af(this);this.readyState==3&&Cf(this)}}; zf.prototype.mj=function(a){this.Qa&&(this.response=this.responseText=a,Bf(this))};zf.prototype.lj=function(a){this.Qa&&(this.response=a,Bf(this))};zf.prototype.ee=function(){var a=this.R;a&&Tc(a,Gc,"Failed to fetch url "+this.Wb);this.Qa&&Bf(this)};var Bf=function(a){a.readyState=4;a.Yd=null;a.Sc=null;a.wg=null;Af(a)};l=zf.prototype;l.setRequestHeader=function(a,b){this.kg.append(a,b)}; l.getResponseHeader=function(a){return this.Ec?this.Ec.get(a.toLowerCase())||"":((a=this.R)&&Tc(a,Gc,"Attempting to get response header but no headers have been received for url: "+this.Wb),"")};l.getAllResponseHeaders=function(){if(!this.Ec){var a=this.R;a&&Tc(a,Gc,"Attempting to get all response headers but no headers have been received for url: "+this.Wb);return""}a=[];for(var b=this.Ec.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")}; l.og=function(a){this.Eb=a};l.ei=function(a){this.cc=a};var Af=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};Object.defineProperty(zf.prototype,"withCredentials",{get:function(){return this.Eb==="include"},set:function(a){this.og(a?"include":"same-origin")}});var Df=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(a){return a&&AsyncContext.Snapshot.wrap(a)}:function(a){return a};var Ef=function(a,b){this.Hj=100;this.Ti=a;this.ak=b;this.ve=0;this.ge=null};Ef.prototype.get=function(){if(this.ve>0){this.ve--;var a=this.ge;this.ge=a.next;a.next=null}else a=this.Ti();return a};Ef.prototype.put=function(a){this.ak(a);this.ve1)));g=g.next)e||(f=g);e&&(c.S==0&&d==1?fg(c,b):(f?(d=f,z(c.Ya),z(d!=null),d.next==c.dc&&(c.dc=d),d.next=d.next.next):gg(c),hg(c,e,3,b)))}a.sa=null}else Tf(a,3,b)},dg=function(a,b){a.Ya||a.S!=2&&a.S!=3||ig(a);z(b.Pb!=null);a.dc?a.dc.next=b:a.Ya=b;a.dc=b},cg=function(a,b,c,d){b&&(b=Kf(b,"goog.Promise.then"));c&&(c=Kf(c,"goog.Promise.then"));var e=Xf(null,null,null);e.child= new I(function(f,g){e.Pb=b?function(h){try{var k=b.call(d,h);f(k)}catch(n){g(n)}}:f;e.tc=c?function(h){try{var k=c.call(d,h);k===void 0&&h instanceof Uf?g(h):f(k)}catch(n){g(n)}}:g});e.child.sa=a;dg(a,e);return e.child};I.prototype.Bk=function(a){z(this.S==1);this.S=0;Tf(this,2,a)};I.prototype.Ck=function(a){z(this.S==1);this.S=0;Tf(this,3,a)}; var Tf=function(a,b,c){a.S==0&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.S=1,Yf(c,a.Bk,a.Ck,a)||(a.ma=c,a.S=b,a.sa=null,ig(a),b!=3||c instanceof Uf||jg(a,c)))},Yf=function(a,b,c,d){if(a instanceof I)return eg(a,b,c,d),!0;if(Sf(a))return a.then(b,c,d),!0;if(v(a))try{var e=a.then;if(typeof e==="function")return kg(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1},kg=function(a,b,c,d,e){var f=!1,g=function(k){f||(f=!0,c.call(e,k))},h=function(k){f||(f=!0,d.call(e,k))}; try{b.call(a,g,h)}catch(k){h(k)}},ig=function(a){a.zf||(a.zf=!0,Qf(a.Zi,a))},gg=function(a){var b=null;a.Ya&&(b=a.Ya,a.Ya=b.next,b.next=null);a.Ya||(a.dc=null);b!=null&&z(b.Pb!=null);return b};I.prototype.Zi=function(){for(var a;a=gg(this);)hg(this,a,this.S,this.ma);this.zf=!1}; var hg=function(a,b,c,d){if(c==3&&b.tc&&!b.Nc)for(;a&&a.ce;a=a.sa)a.ce=!1;if(b.child)b.child.sa=null,lg(b,c,d);else try{b.Nc?b.Pb.call(b.context):lg(b,c,d)}catch(e){mg.call(null,e)}Wf.put(b)},lg=function(a,b,c){b==2?a.Pb.call(a.context,c):a.tc&&a.tc.call(a.context,c)},jg=function(a,b){a.ce=!0;Qf(function(){a.ce&&mg.call(null,b)})},mg=La,Uf=function(a){Ca.call(this,a)};x(Uf,Ca);Uf.prototype.name="cancel";/* Copyright 2005, 2007 Bob Ippolito. All Rights Reserved. Copyright The Closure Library Authors. SPDX-License-Identifier: MIT */ var ng=function(a,b){this.Me=[];this.Hh=a;this.Vg=b||null;this.cd=this.jc=!1;this.ma=void 0;this.tg=this.Fg=this.hf=!1;this.Ue=0;this.sa=null;this.jf=0};ng.prototype.cancel=function(a){if(this.jc)this.ma instanceof ng&&this.ma.cancel();else{if(this.sa){var b=this.sa;delete this.sa;a?b.cancel(a):(b.jf--,b.jf<=0&&b.cancel())}this.Hh?this.Hh.call(this.Vg,this):this.tg=!0;this.jc||og(this,new pg(this))}};ng.prototype.Og=function(a,b){this.hf=!1;qg(this,a,b)}; var qg=function(a,b,c){a.jc=!0;a.ma=c;a.cd=!b;rg(a)},tg=function(a){if(a.jc){if(!a.tg)throw new sg(a);a.tg=!1}};ng.prototype.callback=function(a){tg(this);ug(a);qg(this,!0,a)};var og=function(a,b){tg(a);ug(b);qg(a,!1,b)},ug=function(a){z(!(a instanceof ng),"An execution sequence may not be initiated with a blocking Deferred.")};ng.prototype.addCallback=function(a,b){return vg(this,a,null,b)};var wg=function(a,b){vg(a,null,b)}; ng.prototype.finally=function(a){var b=this;return xg(new Promise(function(c,d){vg(b,function(e){a();c(e)},function(e){a();d(e)})}))};var vg=function(a,b,c,d){z(!a.Fg,"Blocking Deferreds can not be re-used");var e=a.jc;e||(b===c?b=c=Df(b):(b=Df(b),c=Df(c)));a.Me.push([b,c,d]);e&&rg(a);return a};ng.prototype.then=function(a,b,c){var d,e,f=new I(function(g,h){e=g;d=h});vg(this,e,function(g){g instanceof pg?f.cancel():d(g);return yg},this);return f.then(a,b,c)};ng.prototype.$goog_Thenable=!0; var zg=function(a){return db(a.Me,function(b){return typeof b[1]==="function"})},yg={},rg=function(a){if(a.Ue&&a.jc&&zg(a)){var b=a.Ue,c=Ag[b];c&&(u.clearTimeout(c.Ea),delete Ag[b]);a.Ue=0}a.sa&&(a.sa.jf--,delete a.sa);b=a.ma;for(var d=c=!1;a.Me.length&&!a.hf;){var e=a.Me.shift(),f=e[0],g=e[1];e=e[2];if(f=a.cd?g:f)try{var h=f.call(e||a.Vg,b);h===yg&&(h=void 0);h!==void 0&&(a.cd=a.cd&&(h==b||h instanceof Error),a.ma=b=h);if(Sf(b)||typeof u.Promise==="function"&&b instanceof u.Promise)d=!0,a.hf=!0}catch(k){b= k,a.cd=!0,zg(a)||(c=!0)}}a.ma=b;d&&(h=w(a.Og,a,!0),d=w(a.Og,a,!1),b instanceof ng?(vg(b,h,d),b.Fg=!0):b.then(h,d));c&&(b=new Bg(b),Ag[b.Ea]=b,a.Ue=b.Ea)},xg=function(a){var b=new ng;a.then(function(c){b.callback(c)},function(c){og(b,c)});return b},sg=function(){Ca.call(this)};x(sg,Ca);sg.prototype.message="Deferred has already fired";sg.prototype.name="AlreadyCalledError";var pg=function(){Ca.call(this)};x(pg,Ca);pg.prototype.message="Deferred was canceled";pg.prototype.name="CanceledError"; var Bg=function(a){this.Ea=u.setTimeout(w(this.Ak,this),0);this.Y=a};Bg.prototype.Ak=function(){z(Ag[this.Ea],"Cannot throw an error that is not scheduled.");delete Ag[this.Ea];throw this.Y;};var Ag={};var Gg=function(a){var b={},c=b.document||document,d=Vb(a).toString(),e=(new we(c)).createElement("SCRIPT"),f={Zh:e,Re:void 0},g=new ng(Cg,f),h=null,k=b.timeout!=null?b.timeout:5E3;k>0&&(h=window.setTimeout(function(){Dg(e,!0);og(g,new Eg(1,"Timeout reached for loading script "+d))},k),f.Re=h);e.onload=e.onreadystatechange=function(){e.readyState&&e.readyState!="loaded"&&e.readyState!="complete"||(Dg(e,b.ll||!1,h),g.callback(null))};e.onerror=function(){Dg(e,!0,h);og(g,new Eg(0,"Error while loading script "+ d))};f=b.attributes||{};ed(f,{type:"text/javascript",charset:"UTF-8"});ge(e,f);Ac(e,a);Fg(c).appendChild(e);return g},Fg=function(a){var b=(a||document).getElementsByTagName("HEAD");return b&&b.length!==0?b[0]:a.documentElement},Cg=function(){if(this&&this.Zh){var a=this.Zh;a&&a.tagName=="SCRIPT"&&Dg(a,!0,this.Re)}},Dg=function(a,b,c){c!=null&&u.clearTimeout(c);a.onload=function(){};a.onerror=function(){};a.onreadystatechange=function(){};b&&window.setTimeout(function(){ne(a)},0)},Eg=function(a,b){var c= "Jsloader error (code #"+a+")";b&&(c+=": "+b);Ca.call(this,c);this.code=a};x(Eg,Ca);var L=function(a){nf.call(this);this.headers=new Map;this.Fi=a||null;this.jb=!1;this.l=null;this.hd=this.Ah=this.pe="";this.Lb=this.Kf=this.le=this.xf=!1;this.Hc=0;this.Vb=null;this.Ge="";this.Vj=this.Ei=!1;this.df=this.xg=null};x(L,nf);L.prototype.R=Rc(Sc(),"goog.net.XhrIo").Ch;var Hg=/^https?$/i,Ig=["POST","PUT"];l=L.prototype;l.setTrustToken=function(a){this.xg=a};l.setAttributionReporting=function(a){this.df=a}; l.send=function(a,b,c,d){if(this.l)throw Error("[goog.net.XhrIo] Object is active with another request="+this.pe+"; newUri="+a);b=b?b.toUpperCase():"GET";this.pe=a;this.hd="";this.Ah=b;this.xf=!1;this.jb=!0;this.l=this.Fi?this.Fi.Rc():rf.Rc();this.l.onreadystatechange=Df(w(this.Oh,this));this.Vj&&"onprogress"in this.l&&(this.l.onprogress=Df(w(function(g){this.Nh(g,!0)},this)),this.l.upload&&(this.l.upload.onprogress=Df(w(this.Nh,this))));try{Uc(this.R,Jg(this,"Opening Xhr")),this.Kf=!0,this.l.open(b, String(a),!0),this.Kf=!1}catch(g){Uc(this.R,Jg(this,"Error opening Xhr: "+g.message));this.Y(5,g);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===Object.prototype)for(var e in d)c.set(e,d[e]);else if(typeof d.keys==="function"&&typeof d.get==="function"){e=na(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Unknown input type for opt_headers: "+String(d));d=Array.from(c.keys()).find(function(g){return"content-type"==g.toLowerCase()}); e=u.FormData&&a instanceof u.FormData;!eb(Ig,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=na(c);for(d=b.next();!d.done;d=b.next())c=na(d.value),d=c.next().value,c=c.next().value,this.l.setRequestHeader(d,c);this.Ge&&(this.l.responseType=this.Ge);"withCredentials"in this.l&&this.l.withCredentials!==this.Ei&&(this.l.withCredentials=this.Ei);if("setTrustToken"in this.l&&this.xg)try{this.l.setTrustToken(this.xg)}catch(g){Uc(this.R,Jg(this,"Error SetTrustToken: "+ g.message))}if("setAttributionReporting"in this.l&&this.df)try{this.l.setAttributionReporting(this.df)}catch(g){Uc(this.R,Jg(this,"Error SetAttributionReporting: "+g.message))}try{this.Vb&&(clearTimeout(this.Vb),this.Vb=null),this.Hc>0&&(Uc(this.R,Jg(this,"Will abort after "+this.Hc+"ms if incomplete")),this.Vb=setTimeout(this.Re.bind(this),this.Hc)),Uc(this.R,Jg(this,"Sending request")),this.le=!0,this.l.send(a),this.le=!1}catch(g){Uc(this.R,Jg(this,"Send error: "+g.message)),this.Y(5,g)}}; l.Re=function(){typeof va!="undefined"&&this.l&&(this.hd="Timed out after "+this.Hc+"ms, aborting",Uc(this.R,Jg(this,this.hd)),this.dispatchEvent("timeout"),this.abort(8))};l.Y=function(a,b){this.jb=!1;this.l&&(this.Lb=!0,this.l.abort(),this.Lb=!1);this.hd=b;Kg(this);Lg(this)};var Kg=function(a){a.xf||(a.xf=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))}; L.prototype.abort=function(){this.l&&this.jb&&(Uc(this.R,Jg(this,"Aborting")),this.jb=!1,this.Lb=!0,this.l.abort(),this.Lb=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Lg(this))};L.prototype.Vc=function(){this.l&&(this.jb&&(this.jb=!1,this.Lb=!0,this.l.abort(),this.Lb=!1),Lg(this,!0));L.Gc.Vc.call(this)};L.prototype.Oh=function(){this.isDisposed()||(this.Kf||this.le||this.Lb?Mg(this):this.Pj())};L.prototype.Pj=function(){Mg(this)}; var Mg=function(a){if(a.jb&&typeof va!="undefined")if(a.le&&Ng(a)==4)setTimeout(a.Oh.bind(a),0);else if(a.dispatchEvent("readystatechange"),Ng(a)==4){Uc(a.R,Jg(a,"Request complete"));a.jb=!1;try{var b=Og(a);a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}var d;if(!(d=c)){var e;if(e=b===0){var f=String(a.pe).match(id)[1]||null;!f&&u.self&&u.self.location&&(f=u.self.location.protocol.slice(0,-1));e=!Hg.test(f?f.toLowerCase():"")}d=e}if(d)a.dispatchEvent("complete"), a.dispatchEvent("success");else{try{var g=Ng(a)>2?a.l.statusText:""}catch(h){Uc(a.R,"Can not get status: "+h.message),g=""}a.hd=g+" ["+Og(a)+"]";Kg(a)}}finally{Lg(a)}}};L.prototype.Nh=function(a,b){z(a.type==="progress","goog.net.EventType.PROGRESS is of the same type as raw XHR progress.");this.dispatchEvent(Pg(a,"progress"));this.dispatchEvent(Pg(a,b?"downloadprogress":"uploadprogress"))}; var Pg=function(a,b){return{type:b,lengthComputable:a.lengthComputable,loaded:a.loaded,total:a.total}},Lg=function(a,b){if(a.l){a.Vb&&(clearTimeout(a.Vb),a.Vb=null);var c=a.l;a.l=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=null}catch(d){(a=a.R)&&Tc(a,Fc,"Problem encountered resetting onreadystatechange: "+d.message)}}};L.prototype.isActive=function(){return!!this.l}; var Ng=function(a){return a.l?a.l.readyState:0},Og=function(a){try{return Ng(a)>2?a.l.status:-1}catch(b){return-1}},Qg=function(a){try{return a.l?a.l.responseText:""}catch(b){return Uc(a.R,"Can not get responseText: "+b.message),""}}; L.prototype.getResponse=function(){try{if(!this.l)return null;if("response"in this.l)return this.l.response;switch(this.Ge){case "":case "text":return this.l.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.l)return this.l.mozResponseArrayBuffer}var a=this.R;a&&Tc(a,Fc,"Response type "+this.Ge+" is not supported on this browser");return null}catch(b){return Uc(this.R,"Can not get response: "+b.message),null}}; L.prototype.getResponseHeader=function(a){if(this.l&&Ng(this)==4)return a=this.l.getResponseHeader(a),a===null?void 0:a};L.prototype.getAllResponseHeaders=function(){return this.l&&Ng(this)>=2?this.l.getAllResponseHeaders()||"":""};var Jg=function(a,b){return b+" ["+a.Ah+" "+a.pe+" "+Og(a)+"]"};var Rg=function(a,b){if(typeof a!=="function")if(a&&typeof a.handleEvent=="function")a=w(a.handleEvent,a);else throw Error("Invalid listener argument");return Number(b)>2147483647?-1:u.setTimeout(a,b||0)},Sg=function(a){var b=null;return(new I(function(c,d){b=Rg(function(){c(void 0)},a);b==-1&&d(Error("Failed to schedule timer."))})).h(function(c){u.clearTimeout(b);throw c;})};var Tg=function(a){var b=Error();b.name="SecurityError";a="Failed to read a named property '"+a+"' from 'Window': ";if("location"in window)try{a+='Blocked a frame with origin "'+window.location.href+'" from accessing a cross-origin frame.'}catch(c){a+="An attempt was made to break through the security policy of the user agent."}b.message=a;throw b;},Ug=function(){return{get opener(){return null},get closed(){return!0},get location(){Tg("location")},get document(){Tg("document")},postMessage:function(){}, close:function(){},focus:function(){}}};var Vg=function(){this.Qi="/__/firebase/init.json";this.Si=new tf}; Vg.prototype.Ke=function(a,b,c,d,e,f){return new I(function(g,h){try{if(f){a.Hc=Math.max(0,f);var k=setTimeout(function(){a.dispatchEvent("timeout")},f)}a.listen("complete",function(){k&&clearTimeout(k);var n=null,m=Qg(a);if(Og(a)===200)try{n=JSON.parse(m)||null,g(n||null)}catch(r){h(Error(m))}else Og(a)===404?h(Error("resource-not-found")):h(Error(m))});jf(a,"ready",function(){k&&clearTimeout(k);a.dispose()});jf(a,"timeout",function(){k&&clearTimeout(k);a.dispose();h(Error("Request timed out"))}); a.send(b,c,d,e)}catch(n){h(n)}})};var Wg={Lk:{Zd:"https://staging-identitytoolkit.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Ie:"https://staging-securetoken.sandbox.googleapis.com/v1/token",ie:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"b"},dl:{Zd:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",Ie:"https://securetoken.googleapis.com/v1/token",ie:"https://identitytoolkit.googleapis.com/v2/",id:"p"},fl:{Zd:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/", Ie:"https://staging-securetoken.sandbox.googleapis.com/v1/token",ie:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"s"},hl:{Zd:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",Ie:"https://test-securetoken.sandbox.googleapis.com/v1/token",ie:"https://test-identitytoolkit.sandbox.googleapis.com/v2/",id:"t"}}; function Xg(a){for(var b in Wg)if(Wg[b].id===a)return a=Wg[b],{firebaseEndpoint:a.Zd,secureTokenEndpoint:a.Ie,identityPlatformEndpoint:a.ie};return null}var Yg;Yg=Xg("__EID__")?"__EID__":void 0;var Zg=function(){var a=M();return lb&&!!xb&&xb==11||/Edge\/\d+/.test(a)},$g=function(){return u.window&&u.window.location.href||self&&self.location&&self.location.href||""},ah=function(a,b){b=b||u.window;var c="about:blank";a&&(c=lc(pc(a)));b.location.href=c},bh=function(a,b,c){b=b||u.window;c?b.location.replace(a):b.location.replace(lc(pc(a)))},ch=function(a,b){var c=[],d;for(d in a)d in b?typeof a[d]!=typeof b[d]?c.push(d):typeof a[d]=="object"&&a[d]!=null&&b[d]!=null?ch(a[d],b[d]).length>0&&c.push(d): a[d]!==b[d]&&c.push(d):c.push(d);for(var e in b)e in a||c.push(e);return c},eh=function(){var a=M();a=dh(a)!="Chrome"?null:(a=a.match(/\sChrome\/(\d+)/i))&&a.length==2?parseInt(a[1],10):null;return a&&a<30?!1:!lb||!xb||xb>9},fh=function(a){a=(a||M()).toLowerCase();return a.match(/android/)||a.match(/webos/)||a.match(/iphone|ipad|ipod/)||a.match(/blackberry/)||a.match(/windows phone/)||a.match(/iemobile/)?!0:!1},gh=function(a){a=a||u.window;try{a.close()}catch(b){}},hh=function(a,b,c){var d=Math.floor(Math.random()* 1E9).toString();b=b||500;c=c||600;var e=(window.screen.availHeight-c)/2,f=(window.screen.availWidth-b)/2;b={width:b,height:c,top:e>0?e:0,left:f>0?f:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1};c=M().toLowerCase();d&&(b.target=d,A(c,"crios/")&&(b.target="_blank"));dh(M())=="Firefox"&&(a=a||"http://localhost",b.scrollbars=!0);f=a||"";(d=b)||(d={});a=window;b=f instanceof jc?f:pc(typeof f.href!="undefined"?f.href:String(f));e=self.crossOriginIsolated!==void 0;c="strict-origin-when-cross-origin"; window.Request&&(c=(new Request("/")).referrerPolicy);var g=d.noreferrer;if(e&&g&&c==="unsafe-url")throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");c=g&&!e;f=d.target||f.target;g=[];var h=[],k=!1;for(m in d){var n=d[m];switch(m){case "width":case "height":case "top":case "left":g.push(m+"="+n);break;case "target":break;case "noopener":case "noreferrer":n?h.push(m):(k=!0,h.push(m+"=false"));break;case "attributionsrc":g.push(m+ (n?"="+n:""));break;default:g.push(m+"="+(n?1:0))}}var m=f!==void 0&&!["_blank","_self","_top","_parent",""].includes(f);m=(B("Firefox")||B("FxiOS"))&&m;Wa&&e&&g.length===0&&h.length>0&&!m&&!k?(h.length===2&&(h=["noreferrer"]),yc(a,b,f,h[0]),m=Ug()):(m=g.join(","),(B("iPhone")&&!B("iPod")&&!B("iPad")||B("iPad")||B("iPod"))&&a.navigator&&a.navigator.standalone&&f&&f!="_self"?(m=je(document,"A"),b=sc(b),b!==void 0&&(m.href=b),m.target=f,c&&(m.rel="noreferrer"),((d=d.attributionsrc)||d==="")&&m.setAttribute("attributionsrc", d),d=document.createEvent("MouseEvent"),d.initMouseEvent("click",!0,!0,a,1),m.dispatchEvent(d),m=Ug()):c?(m=yc(a,"",f,m),a=lc(b),m&&(m.opener=null,a===""&&(a="javascript:''"),Ua.test(a)&&(a.indexOf("&")!=-1&&(a=a.replace(Oa,"&")),a.indexOf("<")!=-1&&(a=a.replace(Pa,"<")),a.indexOf(">")!=-1&&(a=a.replace(Qa,">")),a.indexOf('"')!=-1&&(a=a.replace(Ra,""")),a.indexOf("'")!=-1&&(a=a.replace(Sa,"'")),a.indexOf("\x00")!=-1&&(a=a.replace(Ta,"�"))),a='',Vc("b/12014412, meta tag with sanitized URL"),a=wc(a),(d=m.document)&&d.write&&(d.write(xc(a)),d.close()))):((m=yc(a,b,f,m))&&d.noopener&&(m.opener=null),m&&d.noreferrer&&(m.opener=null)));if(m)try{m.focus()}catch(r){}return m},ih=function(){var a=M().match(/OS (\d+)_.*CriOS\/(\d+)\./i);return a&&a.length>2?parseInt(a[1],10)>=10&&parseInt(a[2],10)>=55:!1},jh=function(a){return new I(function(b){var c=function(){Sg(2E3).then(function(){if(!a||a.closed)b();else return c()})};return c()})},lh= function(a,b){var c=F(b);b=c.ua;c=c.ha;for(var d=0;d0;)b.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(Math.random()* 62))),a--;return b.join("")},dh=function(a){var b=a.toLowerCase();if(A(b,"opera/")||A(b,"opr/")||A(b,"opios/"))return"Opera";if(A(b,"iemobile"))return"IEMobile";if(A(b,"msie")||A(b,"trident/"))return"IE";if(A(b,"edge/"))return"Edge";if(A(b,"firefox/"))return"Firefox";if(A(b,"silk/"))return"Silk";if(A(b,"blackberry"))return"Blackberry";if(A(b,"webos"))return"Webos";if(!A(b,"safari/")||A(b,"chrome/")||A(b,"crios/")||A(b,"android"))if(!A(b,"chrome/")&&!A(b,"crios/")||A(b,"edge/")){if(A(b,"android"))return"Android"; if((a=a.match(RegExp("([a-zA-Z\\d\\.]+)/[a-zA-Z\\d\\.]*$")))&&a.length==2)return a[1]}else return"Chrome";else return"Safari";return"Other"},zh={Nk:"FirebaseCore-web",Pk:"FirebaseUI-web",Wk:"gcip-iap"},Ah=function(a,b,c){c=c||[];var d=[],e={},f;for(f in zh)e[zh[f]]=!0;for(f=0;fb)throw Error("Short delay should be less than long delay!");this.ki=a;this.Kj=b;a=M();b=uh();this.Aj=fh(a)||b==="ReactNative"}; Mh.prototype.get=function(){var a=u.navigator;return(a&&typeof a.onLine==="boolean"&&(Dh()||qh()==="chrome-extension:"||typeof a.connection!=="undefined")?a.onLine:1)?this.Aj?this.Kj:this.ki:Math.min(5E3,this.ki)}; var Nh=function(){var a=u.document;return a&&typeof a.visibilityState!=="undefined"?a.visibilityState=="visible":!0},Oh=function(){var a=u.document,b=null;return Nh()||!a?J():(new I(function(c){b=function(){Nh()&&(a.removeEventListener("visibilitychange",b,!1),c())};a.addEventListener("visibilitychange",b,!1)})).h(function(c){a.removeEventListener("visibilitychange",b,!1);throw c;})},Ph=function(a){typeof console!=="undefined"&&typeof console.error==="function"&&console.error(a)},Qh=function(a){try{var b= new Date(parseInt(a,10));if(!isNaN(b.getTime())&&!/[^0-9]/.test(a))return b.toUTCString()}catch(c){}return null},Rh=function(){return!(!N("fireauth.oauthhelper",u)&&!N("fireauth.iframe",u))},Sh=function(){if(u.document)try{var a=ie("META",{name:"referrer",content:"no-referrer"}),b=document.getElementsByTagName("HEAD");b.length&&b[0].appendChild(a)}catch(c){}},Th=function(){var a=u.navigator;return a&&a.serviceWorker&&a.serviceWorker.controller||null},Uh=function(){var a=u.navigator;return a&&a.serviceWorker? J().then(function(){return a.serviceWorker.ready}).then(function(b){return b.active||null}).h(function(){return null}):J(null)},Vh=function(a){var b={};a.split("&").forEach(function(c){c=c.split("=");c.length>1&&(b[decodeURIComponent(c[0])]=decodeURIComponent(c[1]))});return b};var Wh={};function Xh(a){Wh[a]||(Wh[a]=!0,typeof console!=="undefined"&&typeof console.warn==="function"&&console.warn(a))};var Yh;try{var Zh={};Object.defineProperty(Zh,"abcd",{configurable:!0,enumerable:!0,value:1});Object.defineProperty(Zh,"abcd",{configurable:!0,enumerable:!0,value:2});Yh=Zh.abcd==2}catch(a){Yh=!1} var O=function(a,b,c){Yh?Object.defineProperty(a,b,{configurable:!0,enumerable:!0,value:c}):a[b]=c},$h=function(a,b){if(b)for(var c in b)b.hasOwnProperty(c)&&O(a,c,b[c])},ai=function(a){var b={};$h(b,a);return b},bi=function(a,b){if(!b||!b.length)return!0;if(!a)return!1;for(var c=0;c Auth section -> Sign in method tab.",a):d=="http"||d=="https"?c=Wc("This domain (%s) is not authorized to run this operation. If you are the app developer, add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.", a):b="operation-not-supported-in-this-environment";P.call(this,b,c)};q(Bi,P);var Di=function(a){var b=Ci(a);if(!(b&&b.sub&&b.iss&&b.aud&&b.exp))throw Error("Invalid JWT");this.Gj=a;this.Af=b.exp;this.Ij=b.sub;a=Date.now()/1E3;this.tj=b.iat||(a>this.Af?this.Af:a);this.Fb=b.email||null;this.zc=b.provider_id||b.firebase&&b.firebase.sign_in_provider||null;this.D=b.firebase&&b.firebase.tenant||null;this.Mi=!!b.is_anonymous||this.zc=="anonymous";this.uf=b.display_name||null};Di.prototype.getEmail=function(){return this.Fb};Di.prototype.isAnonymous=function(){return this.Mi}; Di.prototype.toString=function(){return this.Gj}; var Ei=function(a){try{return new Di(a)}catch(b){return null}},Ci=function(a){if(!a)return null;a=a.split(".");if(a.length!=3)return null;a=a[1];for(var b=(4-a.length%4)%4,c=0;c191&&e<224){var f=d[b++];a[c++]=String.fromCharCode((e&31)<<6|f&63)}else if(e>239&&e<365){var g=d[b++],h=d[b++],k=d[b++],n=((e&7)<<18|(g&63)<<12|(h&63)<<6|k&63)-65536;a[c++]=String.fromCharCode(55296+(n>> 10));a[c++]=String.fromCharCode(56320+(n&1023))}else{var m=d[b++],r=d[b++];a[c++]=String.fromCharCode((e&15)<<12|(m&63)<<6|r&63)}}return JSON.parse(a.join(""))}catch(t){}return null};var Fi=function(a){var b=Ci(a);if(!(b&&b.exp&&b.auth_time&&b.iat))throw new P("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");$h(this,{token:a,expirationTime:Qh(b.exp*1E3),authTime:Qh(b.auth_time*1E3),issuedAtTime:Qh(b.iat*1E3),signInProvider:b.firebase&&b.firebase.sign_in_provider?b.firebase.sign_in_provider:null,signInSecondFactor:b.firebase&&b.firebase.sign_in_second_factor?b.firebase.sign_in_second_factor:null, claims:b})};var Gi=function(a,b){if(!a&&!b)throw new P("internal-error","Internal assert: no raw session string available");if(a&&b)throw new P("internal-error","Internal assert: unable to determine the session type");this.he=a||null;this.Fh=b||null;this.type=this.he?"enroll":"signin"};Gi.prototype.ad=function(){return this.he?J(this.he):J(this.Fh)};Gi.prototype.m=function(){return this.type=="enroll"?{multiFactorSession:{idToken:this.he}}:{multiFactorSession:{pendingCredential:this.Fh}}};var Hi=function(){};Hi.prototype.Kb=function(){};Hi.prototype.sc=function(){};Hi.prototype.jd=function(){};Hi.prototype.m=function(){}; var Ii=function(a,b){return a.then(function(c){if(c.idToken){var d=Ei(c.idToken);if(!d||b!=d.Ij)throw new P("user-mismatch");return c}throw new P("user-mismatch");}).h(function(c){throw c&&c.code&&c.code=="auth/user-not-found"?new P("user-mismatch"):c;})},Ji=function(a,b){if(b)this.fb=b;else throw new P("internal-error","failed to construct a credential");O(this,"providerId",a);O(this,"signInMethod",a)};l=Ji.prototype;l.Kb=function(a){return Ki(a,this.Nb())}; l.sc=function(a,b){var c=this.Nb();c.idToken=b;return Li(a,c)};l.jd=function(a,b){var c=this.Nb();return Ii(Mi(a,c),b)};l.Nb=function(){return{pendingToken:this.fb,requestUri:"http://localhost"}};l.m=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.fb}}; var Ni=function(a){if(a&&a.providerId&&a.signInMethod&&a.providerId.indexOf("saml.")==0&&a.pendingToken)try{return new Ji(a.providerId,a.pendingToken)}catch(b){}return null},Oi=function(a,b,c){this.fb=null;if(b.idToken||b.accessToken)b.idToken&&O(this,"idToken",b.idToken),b.accessToken&&O(this,"accessToken",b.accessToken),b.nonce&&!b.pendingToken&&O(this,"nonce",b.nonce),b.pendingToken&&(this.fb=b.pendingToken);else if(b.oauthToken&&b.oauthTokenSecret)O(this,"accessToken",b.oauthToken),O(this,"secret", b.oauthTokenSecret);else throw new P("internal-error","failed to construct a credential");O(this,"providerId",a);O(this,"signInMethod",c)};l=Oi.prototype;l.Kb=function(a){return Ki(a,this.Nb())};l.sc=function(a,b){var c=this.Nb();c.idToken=b;return Li(a,c)};l.jd=function(a,b){var c=this.Nb();return Ii(Mi(a,c),b)}; l.Nb=function(){var a={};this.idToken&&(a.id_token=this.idToken);this.accessToken&&(a.access_token=this.accessToken);this.secret&&(a.oauth_token_secret=this.secret);a.providerId=this.providerId;this.nonce&&!this.fb&&(a.nonce=this.nonce);a={postBody:Fd(a).toString(),requestUri:"http://localhost"};this.fb&&(delete a.postBody,a.pendingToken=this.fb);return a}; l.m=function(){var a={providerId:this.providerId,signInMethod:this.signInMethod};this.idToken&&(a.oauthIdToken=this.idToken);this.accessToken&&(a.oauthAccessToken=this.accessToken);this.secret&&(a.oauthTokenSecret=this.secret);this.nonce&&(a.nonce=this.nonce);this.fb&&(a.pendingToken=this.fb);return a}; var Pi=function(a){if(a&&a.providerId&&a.signInMethod){var b={idToken:a.oauthIdToken,accessToken:a.oauthTokenSecret?null:a.oauthAccessToken,oauthTokenSecret:a.oauthTokenSecret,oauthToken:a.oauthTokenSecret&&a.oauthAccessToken,nonce:a.nonce,pendingToken:a.pendingToken};try{return new Oi(a.providerId,b,a.signInMethod)}catch(c){}}return null},Qi=function(a,b){this.Zj=b||[];$h(this,{providerId:a,isOAuthProvider:!0});this.Tg={};this.Of=(gi(a)||{}).gd||null;this.tf=null}; Qi.prototype.setCustomParameters=function(a){this.Tg=cd(a);return this};var Ri=function(a){if(!ii(a))throw new P("argument-error",'SAML provider IDs must be prefixed with "saml."');Qi.call(this,a,[])};x(Ri,Qi);var Si=function(a){Qi.call(this,a,ei);this.lg=[]};x(Si,Qi);Si.prototype.addScope=function(a){eb(this.lg,a)||this.lg.push(a);return this};Si.prototype.ih=function(){return jb(this.lg)}; Si.prototype.credential=function(a,b){a=v(a)?{idToken:a.idToken||null,accessToken:a.accessToken||null,nonce:a.rawNonce||null}:{idToken:a||null,accessToken:b||null};if(!a.idToken&&!a.accessToken)throw new P("argument-error","credential failed: must provide the ID token and/or the access token.");return new Oi(this.providerId,a,this.providerId)};var Ti=function(){Si.call(this,"facebook.com")};x(Ti,Si);O(Ti,"PROVIDER_ID","facebook.com");O(Ti,"FACEBOOK_SIGN_IN_METHOD","facebook.com"); var Ui=function(a){if(!a)throw new P("argument-error","credential failed: expected 1 argument (the OAuth access token).");var b=a;v(a)&&(b=a.accessToken);return(new Ti).credential({accessToken:b})},Vi=function(){Si.call(this,"github.com")};x(Vi,Si);O(Vi,"PROVIDER_ID","github.com");O(Vi,"GITHUB_SIGN_IN_METHOD","github.com"); var Wi=function(a){if(!a)throw new P("argument-error","credential failed: expected 1 argument (the OAuth access token).");var b=a;v(a)&&(b=a.accessToken);return(new Vi).credential({accessToken:b})},Xi=function(){Si.call(this,"google.com");this.addScope("profile")};x(Xi,Si);O(Xi,"PROVIDER_ID","google.com");O(Xi,"GOOGLE_SIGN_IN_METHOD","google.com"); var Yi=function(a,b){var c=a;v(a)&&(c=a.idToken,b=a.accessToken);return(new Xi).credential({idToken:c,accessToken:b})},Zi=function(){Qi.call(this,"twitter.com",di)};x(Zi,Qi);O(Zi,"PROVIDER_ID","twitter.com");O(Zi,"TWITTER_SIGN_IN_METHOD","twitter.com"); var $i=function(a,b){var c=a;v(c)||(c={oauthToken:a,oauthTokenSecret:b});if(!c.oauthToken||!c.oauthTokenSecret)throw new P("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new Oi("twitter.com",c,"twitter.com")},bj=function(a,b,c){this.Fb=a;this.kd=b;O(this,"providerId","password");O(this,"signInMethod",c===aj.EMAIL_LINK_SIGN_IN_METHOD?aj.EMAIL_LINK_SIGN_IN_METHOD:aj.EMAIL_PASSWORD_SIGN_IN_METHOD)}; bj.prototype.Kb=function(a){return this.signInMethod==aj.EMAIL_LINK_SIGN_IN_METHOD?Q(a,cj,{email:this.Fb,oobCode:this.kd}):Q(a,dj,{email:this.Fb,password:this.kd})};bj.prototype.sc=function(a,b){return this.signInMethod==aj.EMAIL_LINK_SIGN_IN_METHOD?Q(a,ej,{idToken:b,email:this.Fb,oobCode:this.kd}):Q(a,fj,{idToken:b,email:this.Fb,password:this.kd})};bj.prototype.jd=function(a,b){return Ii(this.Kb(a),b)};bj.prototype.m=function(){return{email:this.Fb,password:this.kd,signInMethod:this.signInMethod}}; var gj=function(a){return a&&a.email&&a.password?new bj(a.email,a.password,a.signInMethod):null},aj=function(){$h(this,{providerId:"password",isOAuthProvider:!1})},ij=function(a,b){b=hj(b);if(!b)throw new P("argument-error","Invalid email link!");return new bj(a,b.code,aj.EMAIL_LINK_SIGN_IN_METHOD)},hj=function(a){a=zi(a);return(a=vi(a))&&a.operation==="EMAIL_SIGNIN"?a:null};$h(aj,{PROVIDER_ID:"password"});$h(aj,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"});$h(aj,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}); var jj=function(a){if(!(a.verificationId&&a.Ve||a.Cd&&a.phoneNumber))throw new P("internal-error");this.V=a;O(this,"providerId","phone");this.providerId="phone";O(this,"signInMethod","phone")};jj.prototype.Kb=function(a){return a.verifyPhoneNumber(kj(this))};jj.prototype.sc=function(a,b){var c=kj(this);c.idToken=b;return Q(a,lj,c)};jj.prototype.jd=function(a,b){var c=kj(this);c.operation="REAUTH";a=Q(a,mj,c);return Ii(a,b)}; jj.prototype.m=function(){var a={providerId:"phone"};this.V.verificationId&&(a.verificationId=this.V.verificationId);this.V.Ve&&(a.verificationCode=this.V.Ve);this.V.Cd&&(a.temporaryProof=this.V.Cd);this.V.phoneNumber&&(a.phoneNumber=this.V.phoneNumber);return a}; var nj=function(a){if(a&&a.providerId==="phone"&&(a.verificationId&&a.verificationCode||a.temporaryProof&&a.phoneNumber)){var b={};C(["verificationId","verificationCode","temporaryProof","phoneNumber"],function(c){a[c]&&(b[c]=a[c])});return new jj(b)}return null},kj=function(a){return a.V.Cd&&a.V.phoneNumber?{temporaryProof:a.V.Cd,phoneNumber:a.V.phoneNumber}:{sessionInfo:a.V.verificationId,code:a.V.Ve}},oj=function(a){try{this.Md=a||firebase.auth()}catch(b){throw new P("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp()."); }$h(this,{providerId:"phone",isOAuthProvider:!1})}; oj.prototype.verifyPhoneNumber=function(a,b){var c=this.Md.i;return J(b.verify()).then(function(d){if(typeof d!=="string")throw new P("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(b.type){case "recaptcha":var e=v(a)?a.session:null,f=v(a)?a.phoneNumber:a;return(e&&e.type=="enroll"?e.ad().then(function(g){return pj(c,{idToken:g,phoneEnrollmentInfo:{phoneNumber:f,recaptchaToken:d}})}):e&& e.type=="signin"?e.ad().then(function(g){return qj(c,{mfaPendingCredential:g,mfaEnrollmentId:a.multiFactorHint&&a.multiFactorHint.uid||a.multiFactorUid,phoneSignInInfo:{recaptchaToken:d}})}):rj(c,{phoneNumber:f,recaptchaToken:d})).then(function(g){typeof b.reset==="function"&&b.reset();return g},function(g){typeof b.reset==="function"&&b.reset();throw g;});default:throw new P("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.');}})}; var sj=function(a,b){if(!a)throw new P("missing-verification-id");if(!b)throw new P("missing-verification-code");return new jj({verificationId:a,Ve:b})};$h(oj,{PROVIDER_ID:"phone"});$h(oj,{PHONE_SIGN_IN_METHOD:"phone"}); var tj=function(a){if(a.temporaryProof&&a.phoneNumber)return new jj({Cd:a.temporaryProof,phoneNumber:a.phoneNumber});var b=a&&a.providerId;if(!b||b==="password")return null;var c=a&&a.oauthAccessToken,d=a&&a.oauthTokenSecret,e=a&&a.nonce,f=a&&a.oauthIdToken,g=a&&a.pendingToken;try{switch(b){case "google.com":return Yi(f,c);case "facebook.com":return Ui(c);case "github.com":return Wi(c);case "twitter.com":return $i(c,d);default:return c||d||f||g?g?b.indexOf("saml.")==0?new Ji(b,g):new Oi(b,{pendingToken:g, idToken:a.oauthIdToken,accessToken:a.oauthAccessToken},b):(new Si(b)).credential({idToken:f,accessToken:c,rawNonce:e}):null}}catch(h){return null}},uj=function(a){if(!a.isOAuthProvider)throw new P("invalid-oauth-provider");};var vj=function(a,b,c){P.call(this,a,c);a=b||{};a.email&&O(this,"email",a.email);a.phoneNumber&&O(this,"phoneNumber",a.phoneNumber);a.credential&&O(this,"credential",a.credential);a.tenantId&&O(this,"tenantId",a.tenantId)};q(vj,P);vj.prototype.m=function(){var a={code:this.code,message:this.message};this.email&&(a.email=this.email);this.phoneNumber&&(a.phoneNumber=this.phoneNumber);this.tenantId&&(a.tenantId=this.tenantId);var b=this.credential&&this.credential.m();b&&ed(a,b);return a}; vj.prototype.toJSON=function(){return this.m()};var wj=function(a){if(a.code){var b=a.code||"";b.indexOf("auth/")==0&&(b=b.substring(5));var c={credential:tj(a),tenantId:a.tenantId};if(a.email)c.email=a.email;else if(a.phoneNumber)c.phoneNumber=a.phoneNumber;else if(!c.credential)return new P(b,a.message||void 0);return new vj(b,c,a.message)}return null};var xj=qa(["https://apis.google.com/js/client.js?onload=",""]),yj=function(a){this.Jk=a};q(yj,qf);yj.prototype.Rc=function(){return new this.Jk}; var Dj=function(a,b,c,d){this.B=a;b=b||{};this.ai=b.secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token";this.lk=b.secureTokenTimeout||zj;this.Je=cd(b.secureTokenHeaders||Aj);this.dh=b.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/";this.oh=b.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/";this.cj=b.firebaseTimeout||Bj;this.Ib=cd(b.firebaseHeaders||Cj);c&&(this.Ib["X-Client-Version"]=c,this.Je["X-Client-Version"]=c);d&&(this.Ib["X-Firebase-AppCheck"]= d);a=uh()=="Node";a=u.XMLHttpRequest||a&&firebase.INTERNAL.node&&firebase.INTERNAL.node.XMLHttpRequest;if(!a&&!th())throw new P("internal-error","The XMLHttpRequest compatibility library was not found.");this.He=void 0;th()?this.He=new yf({Ik:self}):vh()?this.He=new yj(a):this.He=new tf;this.D=null},Ej,Fj=function(a,b){b?a.Ib["X-Firebase-Locale"]=b:delete a.Ib["X-Firebase-Locale"]},Hj=function(a,b){b&&(a.ai=Gj("https://securetoken.googleapis.com/v1/token",b),a.dh=Gj("https://www.googleapis.com/identitytoolkit/v3/relyingparty/", b),a.oh=Gj("https://identitytoolkit.googleapis.com/v2/",b))},Gj=function(a,b){a=F(a);b=F(b.url);pd(a,a.ha+a.eb);ld(a,b.ua);nd(a,b.ha);od(a,b.Sa);return a.toString()},Ij=function(a,b){b?(a.Ib["X-Client-Version"]=b,a.Je["X-Client-Version"]=b):(delete a.Ib["X-Client-Version"],delete a.Je["X-Client-Version"])};Dj.prototype.Ke=function(a,b,c,d,e,f){if(eh()||th())var g=w(this.nk,this);else Ej||(Ej=new I(function(h,k){Jj(h,k)})),g=w(this.mk,this);g(a,b,c,d,e,f)}; Dj.prototype.nk=function(a,b,c,d,e,f){if(th()&&(typeof u.fetch==="undefined"||typeof u.Headers==="undefined"||typeof u.Request==="undefined"))throw new P("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 g=new L(this.He);if(f){g.Hc=Math.max(0,f);var h=setTimeout(function(){g.dispatchEvent("timeout")},f)}g.listen("complete",function(){h&&clearTimeout(h);var k=null; try{k=JSON.parse(Qg(this))||null}catch(n){k=null}b&&b(k)});jf(g,"ready",function(){h&&clearTimeout(h);this.dispose()});jf(g,"timeout",function(){h&&clearTimeout(h);this.dispose();b&&b(null)});g.send(a,c,d,e)};var Jj=function(a,b){if(((window.gapi||{}).client||{}).request)a();else{u[Kj]=function(){((window.gapi||{}).client||{}).request?a():b(Error("CORS_UNSUPPORTED"))};var c=Zc(xj,Kj);wg(Gg(c),function(){b(Error("CORS_UNSUPPORTED"))})}}; Dj.prototype.mk=function(a,b,c,d,e){var f=this;Ej.then(function(){window.gapi.client.setApiKey(f.B);var g=window.gapi.auth.getToken();window.gapi.auth.setToken(null);window.gapi.client.request({path:a,method:c,body:d,headers:e,authType:"none",callback:function(h){window.gapi.auth.setToken(g);b&&b(h)}})}).h(function(g){b&&b({error:{message:g&&g.message||"CORS_UNSUPPORTED"}})})}; var Mj=function(a,b){return new I(function(c,d){b.grant_type=="refresh_token"&&b.refresh_token||b.grant_type=="authorization_code"&&b.code?a.Ke(a.ai+"?key="+encodeURIComponent(a.B),function(e){e?e.error?d(Lj(e)):e.access_token&&e.refresh_token?c(e):d(new P("internal-error")):d(new P("network-request-failed"))},"POST",Fd(b).toString(),a.Je,a.lk.get()):d(new P("internal-error"))})},Nj=function(a,b,c,d,e,f,g){var h=F(b+c);D(h,"key",a.B);g&&D(h,"cb",Date.now().toString());var k=d=="GET";if(k)for(var n in e)e.hasOwnProperty(n)&& D(h,n,e[n]);return new I(function(m,r){a.Ke(h.toString(),function(t){t?t.error?r(Lj(t,f||{})):m(t):r(new P("network-request-failed"))},d,k?void 0:JSON.stringify(Hh(e)),a.Ib,a.cj.get())})},Oj=function(a){a=a.email;if(typeof a!=="string"||!mh.test(a))throw new P("invalid-email");},Pj=function(a){"email"in a&&Oj(a)},Rj=function(a,b,c,d,e,f){var g=ii(b);var h={};e&&e.length?(h[b]=e.join(","),e=JSON.stringify(h)):e=null;c={identifier:null,providerId:b,continueUri:c,customParameter:d||{},oauthScope:e,sessionId:f}; g&&(delete c.customParameter,delete c.oauthScope);f&&b=="google.com"&&(c.authFlowType="CODE_FLOW");return Q(a,Qj,c)},Tj=function(a,b){return Q(a,Sj,{identifier:b,continueUri:Dh()?$g():"http://localhost"}).then(function(c){return c.signinMethods||[]})},Vj=function(a){return Q(a,Uj,{}).then(function(b){return b.authorizedDomains||[]})},Wj=function(a){return Q(a,Uj,{}).then(function(b){return b.projectId||""})},Xj=function(a,b){return Q(a,Uj,{iosBundleId:b}).then(function(){})},Yj=function(a,b,c){b= {androidPackageName:b};c&&(b.sha1Cert=c);return Q(a,Uj,b).then(function(){})},Zj=function(a,b){return Q(a,Uj,{clientId:b}).then(function(){})},ak=function(a,b){return Q(a,Uj,{firebaseAppId:b}).then(function(){})},bk=function(a){if(!a.idToken){if(a.mfaPendingCredential)throw new P("multi-factor-auth-required",null,cd(a));throw new P("internal-error");}},ck=function(a){if(a.phoneNumber||a.temporaryProof){if(!a.phoneNumber||!a.temporaryProof)throw new P("internal-error");}else{if(!a.sessionInfo)throw new P("missing-verification-id"); if(!a.code)throw new P("missing-verification-code");}};l=Dj.prototype;l.signInAnonymously=function(){return Q(this,dk,{})};l.updateEmail=function(a,b){return Q(this,ek,{idToken:a,email:b})};l.updatePassword=function(a,b){return Q(this,fj,{idToken:a,password:b})};l.updateProfile=function(a,b){var c={idToken:a},d=[];$c(fk,function(e,f){var g=b[f];g===null?d.push(e):f in b&&(c[f]=g)});d.length&&(c.deleteAttribute=d);return Q(this,ek,c)}; l.sendPasswordResetEmail=function(a,b){a={requestType:"PASSWORD_RESET",email:a};ed(a,b);return Q(this,gk,a)};l.sendSignInLinkToEmail=function(a,b){a={requestType:"EMAIL_SIGNIN",email:a};ed(a,b);return Q(this,hk,a)};l.sendEmailVerification=function(a,b){a={requestType:"VERIFY_EMAIL",idToken:a};ed(a,b);return Q(this,ik,a)};l.verifyBeforeUpdateEmail=function(a,b,c){a={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:a,newEmail:b};ed(a,c);return Q(this,jk,a)};var rj=function(a,b){return Q(a,kk,b)}; Dj.prototype.verifyPhoneNumber=function(a){return Q(this,lk,a)}; var pj=function(a,b){return Q(a,mk,b).then(function(c){return c.phoneSessionInfo.sessionInfo})},nk=function(a){if(!a.phoneVerificationInfo)throw new P("internal-error");if(!a.phoneVerificationInfo.sessionInfo)throw new P("missing-verification-id");if(!a.phoneVerificationInfo.code)throw new P("missing-verification-code");},qj=function(a,b){return Q(a,ok,b).then(function(c){return c.phoneResponseInfo.sessionInfo})},qk=function(a,b,c){return Q(a,pk,{idToken:b,deleteProvider:c})},rk=function(a){if(!a.requestUri|| !a.sessionId&&!a.postBody&&!a.pendingToken)throw new P("internal-error");},sk=function(a,b){b.oauthIdToken&&b.providerId&&b.providerId.indexOf("oidc.")==0&&!b.pendingToken&&(a.sessionId?b.nonce=a.sessionId:a.postBody&&(a=new td(a.postBody),a.Qc("nonce")&&(b.nonce=a.get("nonce"))));return b},uk=function(a){var b=null;a.needConfirmation?(a.code="account-exists-with-different-credential",b=wj(a)):a.errorMessage=="FEDERATED_USER_ID_ALREADY_LINKED"?(a.code="credential-already-in-use",b=wj(a)):a.errorMessage== "EMAIL_EXISTS"?(a.code="email-already-in-use",b=wj(a)):a.errorMessage&&(b=tk(a.errorMessage));if(b)throw b;bk(a)},Ki=function(a,b){b.returnIdpCredential=!0;return Q(a,vk,b)},Li=function(a,b){b.returnIdpCredential=!0;return Q(a,wk,b)},Mi=function(a,b){b.returnIdpCredential=!0;b.autoCreate=!1;return Q(a,xk,b)},yk=function(a){if(!a.oobCode)throw new P("invalid-action-code");};Dj.prototype.confirmPasswordReset=function(a,b){return Q(this,zk,{oobCode:a,newPassword:b})}; Dj.prototype.checkActionCode=function(a){return Q(this,Ak,{oobCode:a})};Dj.prototype.applyActionCode=function(a){return Q(this,Bk,{oobCode:a})}; var Q=function(a,b,c){if(!bi(c,b.ea))return K(new P("internal-error"));var d=!!b.Ed,e=b.httpMethod||"POST",f;return J(c).then(b.I).then(function(){b.Ja&&(c.returnSecureToken=!0);b.J&&a.D&&typeof c.tenantId==="undefined"&&(c.tenantId=a.D);return d?Nj(a,a.oh,b.endpoint,e,c,b.Sg,b.Od||!1):Nj(a,a.dh,b.endpoint,e,c,b.Sg,b.Od||!1)}).then(function(g){f=g;return b.Ee?b.Ee(c,f):f}).then(b.P).then(function(){if(!b.Ta)return f;if(!(b.Ta in f))throw new P("internal-error");return f[b.Ta]})},tk=function(a){return Lj({error:{errors:[{message:a}], code:400,reason:a}})},Lj=function(a,b){var c=(a.error&&a.error.errors&&a.error.errors[0]||{}).reason||"";var d={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(c=d[c]?new P(d[c]):null)return c;c=a.error&&(a.error.reason||a.error.message)||"";d={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password", USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_OR_INVALID_NONCE:"missing-or-invalid-nonce",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",EMAIL_NOT_FOUND:"user-not-found", RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",INVALID_PROVIDER_ID:"invalid-provider-id",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests", WEAK_PASSWORD:"weak-password",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",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",INVALID_TENANT_ID:"invalid-tenant-id",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",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",API_KEY_SERVICE_BLOCKED:"api-key-service-blocked"};b=b||{};ed(d,b);b=(b=c.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&b.length>1?b[1]:void 0;for(var e in d)if(c.indexOf(e)===0)return new P(d[e],b);!b&&a&&(b=Gh(a));return new P("internal-error",b)},zj=new Mh(3E4,6E4),Aj={"Content-Type":"application/x-www-form-urlencoded"},Bj=new Mh(3E4,6E4),Cj={"Content-Type":"application/json"}, Kj="__fcb"+Math.floor(Math.random()*1E6).toString(),fk={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"},Bk={endpoint:"setAccountInfo",I:yk,Ta:"email",J:!0},Ak={endpoint:"resetPassword",I:yk,P:function(a){var b=a.requestType;if(!b||!a.email&&b!="EMAIL_SIGNIN"&&b!="VERIFY_AND_CHANGE_EMAIL")throw new P("internal-error");},J:!0},Ck={endpoint:"signupNewUser",I:function(a){Oj(a);if(!a.password)throw new P("weak-password");},P:bk,Ja:!0,J:!0},Sj={endpoint:"createAuthUri",J:!0},Dk={endpoint:"deleteAccount", ea:["idToken"]},pk={endpoint:"setAccountInfo",ea:["idToken","deleteProvider"],I:function(a){if(!Array.isArray(a.deleteProvider))throw new P("internal-error");}},cj={endpoint:"emailLinkSignin",ea:["email","oobCode"],I:Oj,P:bk,Ja:!0,J:!0},ej={endpoint:"emailLinkSignin",ea:["idToken","email","oobCode"],I:Oj,P:bk,Ja:!0},Ek={endpoint:"accounts/mfaEnrollment:finalize",ea:["idToken","phoneVerificationInfo"],I:nk,P:bk,J:!0,Ed:!0},Fk={endpoint:"accounts/mfaSignIn:finalize",ea:["mfaPendingCredential","phoneVerificationInfo"], I:nk,P:bk,J:!0,Ed:!0},Gk={endpoint:"getAccountInfo"},Qj={endpoint:"createAuthUri",I:function(a){if(!a.continueUri)throw new P("missing-continue-uri");if(!a.providerId)throw new P("internal-error","A provider ID must be provided in the request.");},P:function(a){if(!a.authUri)throw new P("internal-error","Unable to determine the authorization endpoint for the specified provider. This may be an issue in the provider configuration.");if(!a.sessionId)throw new P("internal-error");},J:!0},hk={endpoint:"getOobConfirmationCode", ea:["requestType"],I:function(a){if(a.requestType!="EMAIL_SIGNIN")throw new P("internal-error");Oj(a)},Ta:"email",J:!0},ik={endpoint:"getOobConfirmationCode",ea:["idToken","requestType"],I:function(a){if(a.requestType!="VERIFY_EMAIL")throw new P("internal-error");},Ta:"email",J:!0},jk={endpoint:"getOobConfirmationCode",ea:["idToken","newEmail","requestType"],I:function(a){if(a.requestType!="VERIFY_AND_CHANGE_EMAIL")throw new P("internal-error");},Ta:"email",J:!0},gk={endpoint:"getOobConfirmationCode", ea:["requestType"],I:function(a){if(a.requestType!="PASSWORD_RESET")throw new P("internal-error");Oj(a)},Ta:"email",J:!0},Uj={Od:!0,endpoint:"getProjectConfig",httpMethod:"GET"},Hk={Od:!0,endpoint:"getRecaptchaParam",httpMethod:"GET",P:function(a){if(!a.recaptchaSiteKey)throw new P("internal-error");}},zk={endpoint:"resetPassword",I:yk,Ta:"email",J:!0},Ik={Od:!0,endpoint:"getProjectConfig",httpMethod:"GET",Ta:"dynamicLinksDomain"},kk={endpoint:"sendVerificationCode",ea:["phoneNumber","recaptchaToken"], Ta:"sessionInfo",J:!0},ek={endpoint:"setAccountInfo",ea:["idToken"],I:Pj,Ja:!0},fj={endpoint:"setAccountInfo",ea:["idToken"],I:function(a){Pj(a);if(!a.password)throw new P("weak-password");},P:bk,Ja:!0},dk={endpoint:"signupNewUser",P:bk,Ja:!0,J:!0},mk={endpoint:"accounts/mfaEnrollment:start",ea:["idToken","phoneEnrollmentInfo"],I:function(a){if(!a.phoneEnrollmentInfo)throw new P("internal-error");if(!a.phoneEnrollmentInfo.phoneNumber)throw new P("missing-phone-number");if(!a.phoneEnrollmentInfo.recaptchaToken)throw new P("missing-app-credential"); },P:function(a){if(!a.phoneSessionInfo||!a.phoneSessionInfo.sessionInfo)throw new P("internal-error");},J:!0,Ed:!0},ok={endpoint:"accounts/mfaSignIn:start",ea:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],I:function(a){if(!a.phoneSignInInfo||!a.phoneSignInInfo.recaptchaToken)throw new P("missing-app-credential");},P:function(a){if(!a.phoneResponseInfo||!a.phoneResponseInfo.sessionInfo)throw new P("internal-error");},J:!0,Ed:!0},vk={endpoint:"verifyAssertion",I:rk,Ee:sk,P:uk,Ja:!0,J:!0}, xk={endpoint:"verifyAssertion",I:rk,Ee:sk,P:function(a){if(a.errorMessage&&a.errorMessage=="USER_NOT_FOUND")throw new P("user-not-found");if(a.errorMessage)throw tk(a.errorMessage);bk(a)},Ja:!0,J:!0},wk={endpoint:"verifyAssertion",I:function(a){rk(a);if(!a.idToken)throw new P("internal-error");},Ee:sk,P:uk,Ja:!0},Jk={endpoint:"verifyCustomToken",I:function(a){if(!a.token)throw new P("invalid-custom-token");},P:bk,Ja:!0,J:!0},dj={endpoint:"verifyPassword",I:function(a){Oj(a);if(!a.password)throw new P("wrong-password"); },P:bk,Ja:!0,J:!0},lk={endpoint:"verifyPhoneNumber",I:ck,P:bk,J:!0},lj={endpoint:"verifyPhoneNumber",I:function(a){if(!a.idToken)throw new P("internal-error");ck(a)},P:function(a){if(a.temporaryProof)throw a.code="credential-already-in-use",wj(a);bk(a)}},mj={Sg:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",I:ck,P:bk,J:!0},Kk={endpoint:"accounts/mfaEnrollment:withdraw",ea:["idToken","mfaEnrollmentId"],P:function(a){if(!!a.idToken^!!a.refreshToken)throw new P("internal-error");},J:!0, Ed:!0};var Lk=qa(["https://apis.google.com/js/api.js?onload=",""]),Nk=function(a){this.Wb=a;this.ke=null;this.Wf=Mk(this)},Mk=function(a){return Ok().then(function(){return new I(function(b,c){N("gapi.iframes.getContext")().open({where:document.body,url:a.Wb,messageHandlersFilter:N("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},function(d){a.ke=d;a.ke.restyle({setHideOnLeave:!1});var e=setTimeout(function(){c(Error("Network Error"))}, Pk.get()),f=function(){clearTimeout(e);b()};d.ping(f).then(f,function(){c(Error("Network Error"))})})})})};Nk.prototype.sendMessage=function(a){var b=this;return this.Wf.then(function(){return new I(function(c){b.ke.send(a.type,a,c,N("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})})}; var Qk=function(a,b){a.Wf.then(function(){a.ke.register("authEvent",b,N("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})},Ok=function(){return Rk?Rk:Rk=(new I(function(a,b){var c=function(){Lh();N("gapi.load")("gapi.iframes",{callback:a,ontimeout:function(){Lh();b(Error("Network Error"))},timeout:Sk.get()})};if(N("gapi.iframes.Iframe"))a();else if(N("gapi.load"))c();else{var d="__iframefcb"+Math.floor(Math.random()*1E6).toString();u[d]=function(){N("gapi.load")?c():b(Error("Network Error"))};d=Zc(Lk, d);J(Gg(d)).h(function(){b(Error("Network Error"))})}})).h(function(a){Rk=null;throw a;})},Sk=new Mh(3E4,6E4),Pk=new Mh(5E3,15E3),Rk=null;var Tk=function(a,b,c,d){this.K=a;this.B=b;this.C=c;this.u=d;this.Yb=null;this.u?(a=F(this.u.url),a=Bd(a.ua,a.ha,a.Sa,"/emulator/auth/iframe",null,null)):a=Bd("https",this.K,null,"/__/auth/iframe",null,null);this.hb=a;D(this.hb,"apiKey",this.B);D(this.hb,"appName",this.C);this.pa=null;this.Z=[]};Tk.prototype.sg=function(a){this.Yb=a;return this};Tk.prototype.pg=function(a){this.pa=a;return this}; Tk.prototype.toString=function(){this.Yb?D(this.hb,"v",this.Yb):this.hb.removeParameter("v");this.pa?D(this.hb,"eid",this.pa):this.hb.removeParameter("eid");this.Z.length?D(this.hb,"fw",this.Z.join(",")):this.hb.removeParameter("fw");return this.hb.toString()};var Uk=function(a,b,c,d,e,f){this.K=a;this.B=b;this.C=c;this.Oi=d;this.u=f;this.Yb=this.U=this.Cc=null;this.Ac=e;this.D=this.pa=null};Uk.prototype.rg=function(a){this.D=a;return this};Uk.prototype.sg=function(a){this.Yb=a;return this}; Uk.prototype.pg=function(a){this.pa=a;return this}; Uk.prototype.toString=function(){if(this.u){var a=F(this.u.url);a=Bd(a.ua,a.ha,a.Sa,"/emulator/auth/handler",null,null)}else a=Bd("https",this.K,null,"/__/auth/handler",null,null);D(a,"apiKey",this.B);D(a,"appName",this.C);D(a,"authType",this.Oi);if(this.Ac.isOAuthProvider){var b=this.Ac;try{var c=firebase.app(this.C).auth().Fa}catch(f){c=null}b.tf=c;D(a,"providerId",this.Ac.providerId);c=this.Ac;b=Hh(c.Tg);for(var d in b)b[d]=b[d].toString();d=Ih(b,c.Zj);c.Of&&c.tf&&!d[c.Of]&&(d[c.Of]=c.tf);bd(d)|| D(a,"customParameters",Gh(d))}typeof this.Ac.ih==="function"&&(d=this.Ac.ih(),d.length&&D(a,"scopes",d.join(",")));this.Cc?D(a,"redirectUrl",this.Cc):a.removeParameter("redirectUrl");this.U?D(a,"eventId",this.U):a.removeParameter("eventId");this.Yb?D(a,"v",this.Yb):a.removeParameter("v");if(this.Hd)for(var e in this.Hd)this.Hd.hasOwnProperty(e)&&!E(a,e)&&D(a,e,this.Hd[e]);this.D?D(a,"tid",this.D):a.removeParameter("tid");this.pa?D(a,"eid",this.pa):a.removeParameter("eid");e=Vk(this.C);e.length&&D(a, "fw",e.join(","));return a.toString()};var Vk=function(a){try{return Wk(firebase.app(a).auth())}catch(b){return[]}},Xk=function(a,b,c,d,e,f){this.K=a;this.B=b;this.C=c;this.u=f;this.Pa=d||null;this.pa=e||null;this.i=this.Jf=this.gh=null;this.Xa=[];this.me=this.cb=null},Yk=function(a){var b=b||$g();return Vj(a).then(function(c){if(!lh(c,b))throw new Bi($g());})};l=Xk.prototype; l.initialize=function(){if(this.me)return this.me;var a=this;return this.me=nh().then(function(){if(!a.Jf){var b=a.K,c=a.B,d=a.C,e=a.Pa,f=a.pa,g=Vk(a.C);b=(new Tk(b,c,d,a.u)).sg(e).pg(f);b.Z=jb(g||[]);a.Jf=b.toString()}a.je=new Nk(a.Jf);Zk(a)})};l.zd=function(a,b,c){var d=new P("popup-closed-by-user"),e=new P("web-storage-unsupported"),f=this,g=!1;return this.Mb().then(function(){$k(f).then(function(h){h||(a&&gh(a),b(e),g=!0)})}).h(function(){}).then(function(){if(!g)return jh(a)}).then(function(){if(!g)return Sg(c).then(function(){b(d)})})}; l.li=function(){var a=M();return!Fh(a)&&!Kh(a)};l.kh=function(){return!1}; l.od=function(a,b,c,d,e,f,g,h){if(!a)return K(new P("popup-blocked"));if(g&&!Fh())return this.Mb().h(function(n){gh(a);e(n)}),d(),J();this.cb||(this.cb=Yk(al(this)));var k=this;return this.cb.then(function(){var n=k.Mb().h(function(m){gh(a);e(m);throw m;});d();return n}).then(function(){uj(c);if(!g){var n=bl(k.K,k.B,k.C,b,c,null,f,k.Pa,void 0,k.pa,h,k.u);ah(n,a)}}).h(function(n){n.code=="auth/network-request-failed"&&(k.cb=null);throw n;})}; var al=function(a){a.i||(a.gh=a.Pa?Ah("JsCore",a.Pa,Vk(a.C)):null,a.i=new Dj(a.B,Xg(a.pa),a.gh),a.u&&Hj(a.i,a.u));return a.i};Xk.prototype.pd=function(a,b,c,d){this.cb||(this.cb=Yk(al(this)));var e=this;return this.cb.then(function(){uj(b);var f=bl(e.K,e.B,e.C,a,b,$g(),c,e.Pa,void 0,e.pa,d,e.u);ah(f)}).h(function(f){f.code=="auth/network-request-failed"&&(e.cb=null);throw f;})}; Xk.prototype.Mb=function(){var a=this;return this.initialize().then(function(){return a.je.Wf}).h(function(){a.cb=null;throw new P("network-request-failed");})};Xk.prototype.si=function(){return!0}; var bl=function(a,b,c,d,e,f,g,h,k,n,m,r){a=new Uk(a,b,c,d,e,r);a.Cc=f;a.U=g;f=a.sg(h);f.Hd=cd(k||null);return f.pg(n).rg(m).toString()},Zk=function(a){if(!a.je)throw Error("IfcHandler must be initialized!");Qk(a.je,function(b){var c={};if(b&&b.authEvent){var d=!1;b=mi(b.authEvent);for(c=0;cd)throw f;return wl(a,b,c,d-g)})}; vl.prototype.send=function(a,b,c){b=b===void 0?null:b;c=c===void 0?!1:c;var d=this,e;b=b||{};var f,g,h,k=null;if(this.Kg)return K(Error("connection_unavailable"));var n=c?800:50,m=typeof MessageChannel!=="undefined"?new MessageChannel:null;return(new I(function(r,t){m?(e=""+Math.floor(Math.random()*1E20).toString(),m.port1.start(),g=setTimeout(function(){t(Error("unsupported_event"))},n),f=function(y){y.data.eventId===e&&(y.data.status==="ack"?(clearTimeout(g),h=setTimeout(function(){t(Error("timeout"))}, 3E3)):y.data.status==="done"?(clearTimeout(h),typeof y.data.response!=="undefined"?r(y.data.response):t(Error("unknown_error"))):(clearTimeout(g),clearTimeout(h),t(Error("invalid_response"))))},k={messageChannel:m,onMessage:f},d.se.push(k),m.port1.addEventListener("message",f),d.Tj.postMessage({eventType:a,eventId:e,data:b},[m.port2])):t(Error("connection_unavailable"))})).then(function(r){xl(d,k);return r}).h(function(r){xl(d,k);throw r;})}; var xl=function(a,b){if(b){var c=b.messageChannel,d=b.onMessage;c&&(c.port1.removeEventListener("message",d),c.port1.close());hb(a.se,function(e){return e==b})}};vl.prototype.close=function(){for(;this.se.length>0;)xl(this,this.se[0]);this.Kg=!0};var yl=function(a){this.yf=a;this.Ca={};this.Dh=w(this.ij,this)},Al=function(){var a=th()?self:null;C(zl,function(c){c.yf==a&&(b=c)});if(!b){var b=new yl(a);zl.push(b)}return b}; yl.prototype.ij=function(a){var b=a.data.eventType,c=a.data.eventId,d=this.Ca[b];if(d&&d.length>0){a.ports[0].postMessage({status:"ack",eventId:c,eventType:b,response:null});var e=[];C(d,function(f){e.push(J().then(function(){return f(a.origin,a.data.data)}))});ag(e).then(function(f){var g=[];C(f,function(h){g.push({fulfilled:h.fh,value:h.value,reason:h.reason?h.reason.message:void 0})});C(g,function(h){for(var k in h)typeof h[k]==="undefined"&&delete h[k]});a.ports[0].postMessage({status:"done", eventId:c,eventType:b,response:g})})}};yl.prototype.subscribe=function(a,b){bd(this.Ca)&&this.yf.addEventListener("message",this.Dh);typeof this.Ca[a]==="undefined"&&(this.Ca[a]=[]);this.Ca[a].push(b)};yl.prototype.unsubscribe=function(a,b){typeof this.Ca[a]!=="undefined"&&b?(hb(this.Ca[a],function(c){return c==b}),this.Ca[a].length==0&&delete this.Ca[a]):b||delete this.Ca[a];bd(this.Ca)&&this.yf.removeEventListener("message",this.Dh)};var zl=[];var Bl=function(a){this.za=a||firebase.INTERNAL.reactNative&&firebase.INTERNAL.reactNative.AsyncStorage;if(!this.za)throw new P("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"};l=Bl.prototype;l.get=function(a){return J(this.za.getItem(a)).then(function(b){return b&&Jh(b)})};l.set=function(a,b){return J(this.za.setItem(a,Gh(b)))};l.remove=function(a){return J(this.za.removeItem(a))};l.kb=function(){};l.xb=function(){};function Cl(){this.storage={};this.type="inMemory"}l=Cl.prototype;l.get=function(a){return J(this.storage[a])};l.set=function(a,b){this.storage[a]=b;return J()};l.remove=function(a){delete this.storage[a];return J()};l.kb=function(){};l.xb=function(){};var Fl=function(){if(!Dl()){if(uh()=="Node")throw new P("internal-error","The LocalStorage compatibility library was not found.");throw new P("web-storage-unsupported");}this.za=El()||firebase.INTERNAL.node.localStorage;this.type="localStorage"},El=function(){try{var a=u.localStorage,b=Bh();a&&(a.setItem(b,"1"),a.removeItem(b));return a}catch(c){return null}},Dl=function(){var a=uh()=="Node";a=El()||a&&firebase.INTERNAL.node&&firebase.INTERNAL.node.localStorage;if(!a)return!1;try{return a.setItem("__sak", "1"),a.removeItem("__sak"),!0}catch(b){return!1}};l=Fl.prototype;l.get=function(a){var b=this;return J().then(function(){var c=b.za.getItem(a);return Jh(c)})};l.set=function(a,b){var c=this;return J().then(function(){var d=Gh(b);d===null?c.remove(a):c.za.setItem(a,d)})};l.remove=function(a){var b=this;return J().then(function(){b.za.removeItem(a)})};l.kb=function(a){u.window&&bf(u.window,"storage",a)};l.xb=function(a){u.window&&kf(u.window,"storage",a)};var Gl=function(){this.za={};this.type="nullStorage"};l=Gl.prototype;l.get=function(){return J(null)};l.set=function(){return J()};l.remove=function(){return J()};l.kb=function(){};l.xb=function(){};var Jl=function(){if(!Hl()){if(uh()=="Node")throw new P("internal-error","The SessionStorage compatibility library was not found.");throw new P("web-storage-unsupported");}this.za=Il()||firebase.INTERNAL.node.sessionStorage;this.type="sessionStorage"},Il=function(){try{var a=u.sessionStorage,b=Bh();a&&(a.setItem(b,"1"),a.removeItem(b));return a}catch(c){return null}},Hl=function(){var a=uh()=="Node";a=Il()||a&&firebase.INTERNAL.node&&firebase.INTERNAL.node.sessionStorage;if(!a)return!1;try{return a.setItem("__sak", "1"),a.removeItem("__sak"),!0}catch(b){return!1}};l=Jl.prototype;l.get=function(a){var b=this;return J().then(function(){var c=b.za.getItem(a);return Jh(c)})};l.set=function(a,b){var c=this;return J().then(function(){var d=Gh(b);d===null?c.remove(a):c.za.setItem(a,d)})};l.remove=function(a){var b=this;return J().then(function(){b.za.removeItem(a)})};l.kb=function(){};l.xb=function(){};var Ml=function(){if(!Kl())throw new P("web-storage-unsupported");this.Ug="firebaseLocalStorageDb";this.ue="firebaseLocalStorage";this.sf="fbase_key";this.Ci="value";this.Fk=1;this.ka={};this.Va=[];this.ld=0;this.ph=u.indexedDB;this.type="indexedDB";this.Le=this.ig=this.Be=this.ag=null;this.ci=!1;this.Ze=null;var a=this;th()&&self?(this.ig=Al(),this.ig.subscribe("keyChanged",function(b,c){return Ll(a).then(function(d){d.length>0&&C(a.Va,function(e){e(d)});return{keyProcessed:eb(d,c.key)}})}),this.ig.subscribe("ping", function(){return J(["keyChanged"])})):Uh().then(function(b){if(a.Ze=b)a.Le=new vl(new ul(b)),a.Le.send("ping",null,!0).then(function(c){c[0].fulfilled&&eb(c[0].value,"keyChanged")&&(a.ci=!0)}).h(function(){})})},Nl,Ol=function(a){return new I(function(b,c){var d=a.ph.deleteDatabase(a.Ug);d.onsuccess=function(){b()};d.onerror=function(e){c(Error(e.target.error))}})},Pl=function(a){return new I(function(b,c){var d=a.ph.open(a.Ug,a.Fk);d.onerror=function(e){try{e.preventDefault()}catch(f){}c(Error(e.target.error))}; d.onupgradeneeded=function(e){e=e.target.result;try{e.createObjectStore(a.ue,{keyPath:a.sf})}catch(f){c(f)}};d.onsuccess=function(e){e=e.target.result;e.objectStoreNames.contains(a.ue)?b(e):Ol(a).then(function(){return Pl(a)}).then(function(f){b(f)}).h(function(f){c(f)})}})},Ql=function(a){a.Lf||(a.Lf=Pl(a));return a.Lf},Rl=function(a,b){var c=0,d=function(e,f){Ql(a).then(b).then(e).h(function(g){if(++c>3)f(g);else return Ql(a).then(function(h){h.close();a.Lf=void 0;return d(e,f)}).h(function(h){f(h)})})}; return new I(d)},Kl=function(){try{return!!u.indexedDB}catch(a){return!1}},Sl=function(a,b){return b.objectStore(a.ue)},Tl=function(a,b,c){return b.transaction([a.ue],c?"readwrite":"readonly")},Ul=function(a){return new I(function(b,c){a.onsuccess=function(d){d&&d.target?b(d.target.result):b()};a.onerror=function(d){c(d.target.error)}})}; Ml.prototype.set=function(a,b){var c=this,d=!1;return Rl(this,function(e){e=Sl(c,Tl(c,e,!0));return Ul(e.get(a))}).then(function(e){return Rl(c,function(f){f=Sl(c,Tl(c,f,!0));if(e)return e.value=b,Ul(f.put(e));c.ld++;d=!0;var g={};g[c.sf]=a;g[c.Ci]=b;return Ul(f.add(g))})}).then(function(){c.ka[a]=b;return Vl(c,a)}).zb(function(){d&&c.ld--})};var Vl=function(a,b){return a.Le&&a.Ze&&Th()===a.Ze?a.Le.send("keyChanged",{key:b},a.ci).then(function(){}).h(function(){}):J()}; Ml.prototype.get=function(a){var b=this;return Rl(this,function(c){return Ul(Sl(b,Tl(b,c,!1)).get(a))}).then(function(c){return c&&c.value})};Ml.prototype.remove=function(a){var b=!1,c=this;return Rl(this,function(d){b=!0;c.ld++;return Ul(Sl(c,Tl(c,d,!0))["delete"](a))}).then(function(){delete c.ka[a];return Vl(c,a)}).zb(function(){b&&c.ld--})}; var Ll=function(a){return Ql(a).then(function(b){var c=Sl(a,Tl(a,b,!1));return c.getAll?Ul(c.getAll()):new I(function(d,e){var f=[],g=c.openCursor();g.onsuccess=function(h){(h=h.target.result)?(f.push(h.value),h["continue"]()):d(f)};g.onerror=function(h){e(h.target.error)}})}).then(function(b){var c={},d=[];if(a.ld==0){for(d=0;d0&&C(a.Va,function(d){d(c)})}).then(function(){b()}).h(function(c){c.message!="STOP_EVENT"&&b()})},800)};b()};Ml.prototype.Oe=function(){this.ag&&this.ag.cancel("STOP_EVENT");this.Be&&(clearTimeout(this.Be),this.Be=null)};function Wl(a){var b=this,c=null;this.Va=[];this.type="indexedDB";this.Yg=a;this.yg=J().then(function(){if(Kl()){var d=Bh(),e="__sak"+d;Nl||(Nl=new Ml);c=Nl;return c.set(e,d).then(function(){return c.get(e)}).then(function(f){if(f!==d)throw Error("indexedDB not supported!");return c.remove(e)}).then(function(){return c}).h(function(){return b.Yg})}return b.Yg}).then(function(d){b.type=d.type;d.kb(function(e){C(b.Va,function(f){f(e)})});return d})}l=Wl.prototype;l.get=function(a){return this.yg.then(function(b){return b.get(a)})}; l.set=function(a,b){return this.yg.then(function(c){return c.set(a,b)})};l.remove=function(a){return this.yg.then(function(b){return b.remove(a)})};l.kb=function(a){this.Va.push(a)};l.xb=function(a){hb(this.Va,function(b){return b==a})};var am=function(){this.wf={Browser:Xl,Node:Yl,ReactNative:Zl,Worker:$l}[uh()]},bm,Xl={O:Fl,Pe:Jl},Yl={O:Fl,Pe:Jl},Zl={O:Bl,Pe:Gl},$l={O:Fl,Pe:Gl};var cm=function(){this.bf=!1;Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.bf},set:function(a){this.bf=a},enumerable:!1})};var dm=function(a){this.bb(a)}; dm.prototype.bb=function(a){var b=a.url;if(typeof b==="undefined")throw new P("missing-continue-uri");if(typeof b!=="string"||typeof b==="string"&&!b.length)throw new P("invalid-continue-uri");this.Ri=b;this.Bg=this.bc=null;this.rh=!1;var c=a.android;if(c&&typeof c==="object"){b=c.packageName;var d=c.installApp;c=c.minimumVersion;if(typeof b==="string"&&b.length){this.bc=b;if(typeof d!=="undefined"&&typeof d!=="boolean")throw new P("argument-error","installApp property must be a boolean when specified.");this.rh= !!d;if(typeof c!=="undefined"&&(typeof c!=="string"||typeof c==="string"&&!c.length))throw new P("argument-error","minimumVersion property must be a non empty string when specified.");this.Bg=c||null}else{if(typeof b!=="undefined")throw new P("argument-error","packageName property must be a non empty string when specified.");if(typeof d!=="undefined"||typeof c!=="undefined")throw new P("missing-android-pkg-name");}}else if(typeof c!=="undefined")throw new P("argument-error","android property must be a non null object when specified."); this.dd=null;if((b=a.iOS)&&typeof b==="object")if(b=b.bundleId,typeof b==="string"&&b.length)this.dd=b;else{if(typeof b!=="undefined")throw new P("argument-error","bundleId property must be a non empty string when specified.");}else if(typeof b!=="undefined")throw new P("argument-error","iOS property must be a non null object when specified.");b=a.handleCodeInApp;if(typeof b!=="undefined"&&typeof b!=="boolean")throw new P("argument-error","handleCodeInApp property must be a boolean when specified."); this.Ig=!!b;a=a.dynamicLinkDomain;if(typeof a!=="undefined"&&(typeof a!=="string"||typeof a==="string"&&!a.length))throw new P("argument-error","dynamicLinkDomain property must be a non empty string when specified.");this.Vi=a||null};var em=function(a){var b={};b.continueUrl=a.Ri;b.canHandleCodeInApp=a.Ig;if(b.androidPackageName=a.bc)b.androidMinimumVersion=a.Bg,b.androidInstallApp=a.rh;b.iOSBundleId=a.dd;b.dynamicLinkDomain=a.Vi;for(var c in b)b[c]===null&&delete b[c];return b};var fm=function(a,b){this.Ui=b;O(this,"verificationId",a)};fm.prototype.confirm=function(a){a=sj(this.verificationId,a);return this.Ui(a)};var gm=function(a,b,c,d){return(new oj(a)).verifyPhoneNumber(b,c).then(function(e){return new fm(e,d)})};var hm=function(a,b,c){this.Rj=a;this.ek=b;this.gj=c;this.re=3E4;this.Ag=96E4;this.fk=!1;this.vc=null;this.Ob=this.re;if(this.Aga.Ag&&(a.Ob=a.Ag);return b},im=function(a,b){a.stop();a.vc=Sg(jm(a,b)).then(function(){return a.fk?J():Oh()}).then(function(){return a.Rj()}).then(function(){im(a,!0)}).h(function(c){a.ek(c)&&im(a,!1)})};hm.prototype.stop=function(){this.vc&&(this.vc.cancel(),this.vc=null)};var qm=function(a){var b={};b["facebook.com"]=km;b["google.com"]=lm;b["github.com"]=mm;b["twitter.com"]=nm;var c=a&&a.providerId;try{if(c)return b[c]?new b[c](a):new om(a);if(typeof a.idToken!=="undefined")return new pm(a)}catch(d){}return null},pm=function(a){var b=a.providerId;if(!b&&a.idToken){var c=Ei(a.idToken);c&&c.zc&&(b=c.zc)}if(!b)throw Error("Invalid additional user info!");if(b=="anonymous"||b=="custom")b=null;c=!1;typeof a.isNewUser!=="undefined"?c=!!a.isNewUser:a.kind==="identitytoolkit#SignupNewUserResponse"&& (c=!0);O(this,"providerId",b);O(this,"isNewUser",c)},om=function(a){pm.call(this,a);a=Jh(a.rawUserInfo||"{}");O(this,"profile",ci(a||{}))};q(om,pm);var km=function(a){om.call(this,a);if(this.providerId!="facebook.com")throw Error("Invalid provider ID!");};q(km,om);var mm=function(a){om.call(this,a);if(this.providerId!="github.com")throw Error("Invalid provider ID!");O(this,"username",this.profile&&this.profile.login||null)};q(mm,om); var lm=function(a){om.call(this,a);if(this.providerId!="google.com")throw Error("Invalid provider ID!");};q(lm,om);var nm=function(a){om.call(this,a);if(this.providerId!="twitter.com")throw Error("Invalid provider ID!");O(this,"username",a.screenName||null)};q(nm,om);var rm={LOCAL:"local",NONE:"none",SESSION:"session"};function sm(a){var b=new P("invalid-persistence-type"),c=new P("unsupported-persistence-type");a:{for(d in rm)if(rm[d]==a){var d=!0;break a}d=!1}if(!d||typeof a!=="string")throw b;switch(uh()){case "ReactNative":if(a==="session")throw c;break;case "Node":if(a!=="none")throw c;break;case "Worker":if(a==="session"||!Kl()&&a!=="none")throw c;break;default:if(!Ch()&&a!=="none")throw c;}} var tm=function(){var a=!Kh(M())&&rh()?!0:!1,b=Fh(),c=Ch();this.Gh="firebase";this.mg=":";this.gk=a;this.Yh=b;this.Di=c;this.ra={};bm||(bm=new am);a=bm;try{this.Ph=!Zg()&&Rh()||!u.indexedDB?new a.wf.O:new Wl(th()?new Cl:new a.wf.O)}catch(d){this.Ph=new Cl,this.Yh=!0}try{this.pi=new a.wf.Pe}catch(d){this.pi=new Cl}this.uj=new Cl;this.vg=w(this.mi,this);this.ka={}},um,vm=function(){um||(um=new tm);return um},wm=function(a,b){switch(b){case "session":return a.pi;case "none":return a.uj;default:return a.Ph}}; tm.prototype.wa=function(a,b){return this.Gh+this.mg+a.name+(b?this.mg+b:"")};var xm=function(a,b,c){var d=a.wa(b,c),e=wm(a,b.O);return a.get(b,c).then(function(f){var g=null;try{g=Jh(u.localStorage.getItem(d))}catch(h){}if(g&&!f)return u.localStorage.removeItem(d),a.set(b,g,c);g&&f&&e.type!="localStorage"&&u.localStorage.removeItem(d)})};l=tm.prototype;l.get=function(a,b){return wm(this,a.O).get(this.wa(a,b))};l.remove=function(a,b){b=this.wa(a,b);a.O=="local"&&(this.ka[b]=null);return wm(this,a.O).remove(b)}; l.set=function(a,b,c){var d=this.wa(a,c),e=this,f=wm(this,a.O);return f.set(d,b).then(function(){return f.get(d)}).then(function(g){a.O=="local"&&(e.ka[d]=g)})};l.addListener=function(a,b,c){a=this.wa(a,b);this.Di&&(this.ka[a]=u.localStorage.getItem(a));bd(this.ra)&&this.ug();this.ra[a]||(this.ra[a]=[]);this.ra[a].push(c)};l.removeListener=function(a,b,c){a=this.wa(a,b);this.ra[a]&&(hb(this.ra[a],function(d){return d==c}),this.ra[a].length==0&&delete this.ra[a]);bd(this.ra)&&this.Oe()}; l.ug=function(){wm(this,"local").kb(this.vg);this.Yh||(Zg()||!Rh())&&u.indexedDB||!this.Di||ym(this)};var ym=function(a){zm(a);a.Qf=setInterval(function(){for(var b in a.ra){var c=u.localStorage.getItem(b),d=a.ka[b];c!=d&&(a.ka[b]=c,c=new Qe({type:"storage",key:b,target:window,oldValue:d,newValue:c,Zf:!0}),a.mi(c))}},1E3)},zm=function(a){a.Qf&&(clearInterval(a.Qf),a.Qf=null)};tm.prototype.Oe=function(){wm(this,"local").xb(this.vg);zm(this)}; tm.prototype.mi=function(a){if(a&&a.dj){var b=a.qa.key;if(b==null)for(var c in this.ra){var d=this.ka[c];typeof d==="undefined"&&(d=null);var e=u.localStorage.getItem(c);e!==d&&(this.ka[c]=e,this.lf(c))}else if(b.indexOf(this.Gh+this.mg)==0&&this.ra[b]){typeof a.qa.Zf!=="undefined"?wm(this,"local").xb(this.vg):zm(this);if(this.gk)if(c=u.localStorage.getItem(b),d=a.qa.newValue,d!==c)d!==null?u.localStorage.setItem(b,d):u.localStorage.removeItem(b);else if(this.ka[b]===d&&typeof a.qa.Zf==="undefined")return; var f=this;c=function(){if(typeof a.qa.Zf!=="undefined"||f.ka[b]!==u.localStorage.getItem(b))f.ka[b]=u.localStorage.getItem(b),f.lf(b)};lb&&xb&&xb==10&&u.localStorage.getItem(b)!==a.qa.newValue&&a.qa.newValue!==a.qa.oldValue?setTimeout(c,10):c()}}else C(a,w(this.lf,this))};tm.prototype.lf=function(a){this.ra[a]&&C(this.ra[a],function(b){b()})};var Am=function(a){this.F=a;this.o=vm()},Cm=function(a){return a.o.get(Bm,a.F).then(function(b){return mi(b)})};Am.prototype.ac=function(a){this.o.addListener(Bm,this.F,a)};Am.prototype.ud=function(a){this.o.removeListener(Bm,this.F,a)};var Bm={name:"authEvent",O:"local"},Dm={name:"redirectEvent",O:"session"};var Em=function(){this.o=vm()};Em.prototype.mc=function(a){return this.o.get(Fm,a)};var Hm=function(a){return a.o.get(Gm).then(function(b){b=b||{};return b.type&&b.apiKey?new ni(b.apiKey,b.appName||"",b.type,b.eventId,b.redirectUrl,b.clientVersion,b.displayName,b.apn,b.ibi,b.eid,b.fw,b.clientId,b.sha1Cert,b.tenantId,b.providerId,b.appId,b.publicKey):null})},Im=function(a,b,c){return a.o.set(Bm,c.m(),b)},Gm={name:"oauthHelperState",O:"session"},Fm={name:"sessionId",O:"session"};var Jm=function(){this.Sf=null;this.Sd=[]};Jm.prototype.subscribe=function(a){var b=this;this.Sd.push(a);this.Sf||(this.Sf=function(c){for(var d=0;d0;)b.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(Math.random()*62))),a--;return b.join("")},Om=function(a){var b=new Me;b.update(a);return Ma(b.digest())};l=Lm.prototype;l.zd=function(a,b){b(new P("operation-not-supported-in-this-environment"));return J()};l.od=function(){return K(new P("operation-not-supported-in-this-environment"))};l.si=function(){return!1};l.li=function(){return!0}; l.kh=function(){return!0}; l.pd=function(a,b,c,d){if(this.ze)return K(new P("redirect-operation-pending"));var e=this,f=u.document,g=null,h=null,k=null,n=null;return this.ze=J().then(function(){uj(b);return Pm(e)}).then(function(){return Qm(e,a,b,c,d)}).then(function(){return(new I(function(m,r){h=function(){var t=N("cordova.plugins.browsertab.close",u);m();typeof t==="function"&&t();e.ed&&typeof e.ed.close==="function"&&(e.ed.close(),e.ed=null);return!1};e.ac(h);k=function(){g||(g=Sg(e.Wj).then(function(){r(new P("redirect-cancelled-by-user"))}))};n= function(){Nh()&&k()};f.addEventListener("resume",k,!1);M().toLowerCase().match(/android/)||f.addEventListener("visibilitychange",n,!1)})).h(function(m){return Rm(e).then(function(){throw m;})})}).zb(function(){k&&f.removeEventListener("resume",k,!1);n&&f.removeEventListener("visibilitychange",n,!1);g&&g.cancel();h&&e.ud(h);e.ze=null})}; var Qm=function(a,b,c,d,e){var f=Nm(),g=new li(b,d,null,f,new P("no-auth-event"),null,e),h=N("BuildInfo.packageName",u);if(typeof h!=="string")throw new P("invalid-cordova-configuration");var k=N("BuildInfo.displayName",u),n={};if(M().toLowerCase().match(/iphone|ipad|ipod/))n.ibi=h;else if(M().toLowerCase().match(/android/))n.apn=h;else return K(new P("operation-not-supported-in-this-environment"));k&&(n.appDisplayName=k);f=Om(f);n.sessionId=f;var m=bl(a.K,a.B,a.C,b,c,null,d,a.Pa,n,a.pa,e,a.u);return a.Mb().then(function(){return Im(a.hk, a.ni,g)}).then(function(){var r=N("cordova.plugins.browsertab.isAvailable",u);if(typeof r!=="function")throw new P("invalid-cordova-configuration");var t=null;r(function(y){if(y){t=N("cordova.plugins.browsertab.openUrl",u);if(typeof t!=="function")throw new P("invalid-cordova-configuration");t(m)}else{t=N("cordova.InAppBrowser.open",u);if(typeof t!=="function")throw new P("invalid-cordova-configuration");y=t;var ba=M();ba=!(!ba.match(/(iPad|iPhone|iPod).*OS 7_\d/i)&&!ba.match(/(iPad|iPhone|iPod).*OS 8_\d/i)); a.ed=y(m,ba?"_blank":"_system","location=yes")}})})};Lm.prototype.Uc=function(a){for(var b=0;b=6E5&&(this.De={},this.Pf=0);if(a&&a.getUid()&&this.De.hasOwnProperty(a.getUid()))return!1;for(var b=!1,c=0;cthis.hc-3E4?this.la?En(this,{grant_type:"refresh_token",refresh_token:this.la}):J(null):J({accessToken:this.na.toString(),refreshToken:this.la})};var Fn=function(a,b){this.Qg=a||null;this.zh=b||null;$h(this,{lastSignInTime:Qh(b||null),creationTime:Qh(a||null)})};Fn.prototype.clone=function(){return new Fn(this.Qg,this.zh)};Fn.prototype.m=function(){return{lastLoginAt:this.zh,createdAt:this.Qg}}; var Gn=function(a,b,c,d,e,f){$h(this,{uid:a,displayName:d||null,photoURL:e||null,email:c||null,phoneNumber:f||null,providerId:b})},R=function(a,b,c){nf.call(this);this.aa=[];this.B=a.apiKey;this.C=a.appName;this.K=a.authDomain||null;var d=firebase.SDK_VERSION?Ah("JsCore",firebase.SDK_VERSION):null;this.i=new Dj(this.B,Xg(Yg),d);(this.u=a.emulatorConfig||null)&&Hj(this.i,this.u);this.Ka=new Bn(this.i);Hn(this,b.idToken);Dn(this.Ka,b);O(this,"refreshToken",this.Ka.la);In(this,c||{});this.nd=!1;this.K&& Eh()&&(this.A=hn(this.K,this.B,this.C,this.u));this.Ne=[];this.La=null;this.yc=Jn(this);this.Lc=w(this.If,this);var e=this;this.Fa=null;this.Lh=function(f){e.Fc(f.languageCode)};this.Nf=null;this.Jh=function(f){Kn(e,f.emulatorConfig)};this.vf=null;this.Z=[];this.Kh=function(f){Ln(e,f.Xc)};this.Df=null;this.te=new yn(this,c);O(this,"multiFactor",this.te)};q(R,nf);R.prototype.Fc=function(a){this.Fa=a;Fj(this.i,a)}; var Kn=function(a,b){a.u=b;Hj(a.i,b);a.A&&(b=a.A,a.A=hn(a.K,a.B,a.C,a.u),a.nd&&(b.unsubscribe(a),a.A.subscribe(a)))},Mn=function(a,b){a.Nf&&kf(a.Nf,"languageCodeChanged",a.Lh);(a.Nf=b)&&bf(b,"languageCodeChanged",a.Lh)},Nn=function(a,b){a.vf&&kf(a.vf,"emulatorConfigChanged",a.Jh);(a.vf=b)&&bf(b,"emulatorConfigChanged",a.Jh)},Ln=function(a,b){a.Z=b;Ij(a.i,firebase.SDK_VERSION?Ah("JsCore",firebase.SDK_VERSION,a.Z):null)},Wk=function(a){return jb(a.Z)},On=function(a,b){a.Df&&kf(a.Df,"frameworkChanged", a.Kh);(a.Df=b)&&bf(b,"frameworkChanged",a.Kh)};R.prototype.If=function(){this.yc.vc&&(this.yc.stop(),this.yc.start())}; var Pn=function(a){try{return firebase.app(a.C).auth()}catch(b){throw new P("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+a.C+"'!");}},Jn=function(a){return new hm(function(){return a.getIdToken(!0)},function(b){return b&&b.code=="auth/network-request-failed"?!0:!1},function(){var b=a.Ka.hc-Date.now()-3E5;return b>0?b:0})},Qn=function(a){a.Tc||a.yc.vc||(a.yc.start(),kf(a,"tokenChanged",a.Lc),bf(a,"tokenChanged",a.Lc))},Rn=function(a){kf(a,"tokenChanged",a.Lc); a.yc.stop()},Hn=function(a,b){a.yh=b;O(a,"_lat",b)},Sn=function(a,b){hb(a.Ne,function(c){return c==b})},Tn=function(a){for(var b=[],c=0;c0&&Qn(b));O(a,"currentUser",b);b&&(b.Fc(a.Fa),Mn(b,a),Ln(b,a.Z),On(b,a),Kn(b,a.u),Nn(b,a))};S.prototype.signOut=function(){var a=this,b=this.Ia.then(function(){a.A&&a.A.ec();if(!T(a))return J();Ao(a,null);return yo(a.Ma).then(function(){a.rb()})});return this.j(b)}; var No=function(a){var b=a.v().options.authDomain;b=qo(a.Sb,b).then(function(c){if(a.wb=c)c.ub=a.Sb;return ko(a.Sb)});return a.j(b)},Bo=function(a){var b=a.v().options.authDomain,c=No(a).then(function(){return zo(a.Ma,b,a.u)}).then(function(d){return d?(d.ub=a.Sb,a.wb&&(a.wb.tb||null)==(d.tb||null)?d:d.reload().then(function(){return xo(a.Ma,d).then(function(){return d})}).h(function(e){return e.code=="auth/network-request-failed"?d:yo(a.Ma)})):null}).then(function(d){Ao(a,d||null)});return a.j(c)}, Co=function(a){return a.Ld.then(function(){return Lo(a)}).h(function(){}).then(function(){if(!a.Aa)return a.Ff()}).h(function(){}).then(function(){if(!a.Aa){a.oe=!0;var b=a.Ma;b.o.addListener(ro("local"),b.F,a.Ff)}})};l=S.prototype; l.wk=function(){var a=this,b=this.v().options.authDomain;return zo(this.Ma,b).then(function(c){if(!a.Aa){var d;if(d=T(a)&&c){d=T(a).uid;var e=c.uid;d=d===void 0||d===null||d===""||e===void 0||e===null||e===""?!1:d==e}if(d)return T(a).copy(c),T(a).getIdToken();if(T(a)||c)Ao(a,c),c&&(Un(c),c.ub=a.Sb),a.A&&a.A.subscribe(a),a.rb()}})};l.pb=function(a){return xo(this.Ma,a)};l.If=function(){this.rb();this.pb(T(this))};l.pj=function(){this.signOut()};l.qj=function(){this.signOut()}; var Ko=function(a,b){var c=null,d=null;return a.j(b.then(function(e){c=tj(e);d=qm(e);return Mo(a,e)},function(e){var f=null;e&&e.code==="auth/multi-factor-auth-required"&&(f=qn(e.m(),a,w(a.Hf,a)));throw f||e;}).then(function(){return ai({user:T(a),credential:c,additionalUserInfo:d,operationType:"signIn"})}))};l=S.prototype;l.Hf=function(a){var b=this;return this.Ia.then(function(){return Ko(b,J(a))})};l.vj=function(a){var b=this;this.addAuthTokenListener(function(){a.next(T(b))})}; l.wj=function(a){var b=this;Oo(this,function(){a.next(T(b))})};l.onIdTokenChanged=function(a,b,c){var d=this;this.oe&&firebase.Promise.resolve().then(function(){typeof a==="function"?a(T(d)):typeof a.next==="function"&&a.next(T(d))});return this.Nj(a,b,c)};l.onAuthStateChanged=function(a,b,c){var d=this;this.oe&&firebase.Promise.resolve().then(function(){d.Fd=d.getUid();typeof a==="function"?a(T(d)):typeof a.next==="function"&&a.next(T(d))});return this.Qj(a,b,c)}; l.ej=function(a){var b=this,c=this.Ia.then(function(){return T(b)?T(b).getIdToken(a).then(function(d){return{accessToken:d}}):null});return this.j(c)};l.signInWithCustomToken=function(a){var b=this;return this.Ia.then(function(){return Ko(b,Q(b.i,Jk,{token:a}))}).then(function(c){var d=c.user;$n(d,"isAnonymous",!1);b.pb(d);return c})};l.signInWithEmailAndPassword=function(a,b){var c=this;return this.Ia.then(function(){return Ko(c,Q(c.i,dj,{email:a,password:b}))})}; l.createUserWithEmailAndPassword=function(a,b){var c=this;return this.Ia.then(function(){return Ko(c,Q(c.i,Ck,{email:a,password:b}))})};l.signInWithCredential=function(a){var b=this;return this.Ia.then(function(){return Ko(b,a.Kb(b.i))})};l.signInAndRetrieveDataWithCredential=function(a){Xh("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead.");return this.signInWithCredential(a)}; l.signInAnonymously=function(){var a=this;return this.Ia.then(function(){var b=T(a);if(b&&b.isAnonymous){var c=ai({providerId:null,isNewUser:!1});return ai({user:b,credential:null,additionalUserInfo:c,operationType:"signIn"})}return Ko(a,a.i.signInAnonymously()).then(function(d){var e=d.user;$n(e,"isAnonymous",!0);a.pb(e);return d})})};l.nc=function(){var a=this.v().options.apiKey,b=this.v().name;return a+":"+b};l.v=function(){return this.app};var T=function(a){return a.currentUser}; S.prototype.getUid=function(){return T(this)&&T(this).uid||null};var Po=function(a){return T(a)&&T(a)._lat||null};l=S.prototype;l.rb=function(){if(this.oe){for(var a=0;a0&&T(this)&&Qn(T(this))}; l.Xj=function(a){var b=this;C(this.Cb,function(c){c==a&&b.Jb--});this.Jb<0&&(this.Jb=0);this.Jb==0&&T(this)&&Rn(T(this));this.removeAuthTokenListener(a)};l.addAuthTokenListener=function(a){var b=this;this.Cb.push(a);this.j(this.Ia.then(function(){b.Aa||eb(b.Cb,a)&&a(Po(b))}))};l.removeAuthTokenListener=function(a){hb(this.Cb,function(b){return b==a})};var Oo=function(a,b){a.Kc.push(b);a.j(a.Ia.then(function(){!a.Aa&&eb(a.Kc,b)&&a.Fd!==a.getUid()&&(a.Fd=a.getUid(),b(Po(a)))}))};l=S.prototype; l.delete=function(){this.Aa=!0;for(var a=0;a=Qo.length)throw new P("internal-error", "Argument validator received an unsupported number of arguments.");c=Qo[c];d=(d?"":c+" argument ")+(b.name?'"'+b.name+'" ':"")+"must be "+b.W+".";break a}d=null}}if(d)throw new P("argument-error",a+" failed: "+d);},Qo="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" "),U=function(a,b){return{name:a||"",W:"a valid string",optional:!!b,X:function(c){return typeof c==="string"}}},So=function(a,b){return{name:a||"",W:"a boolean",optional:!!b,X:function(c){return typeof c==="boolean"}}}, V=function(a,b){return{name:a||"",W:"a valid object",optional:!!b,X:v}},To=function(a,b){return{name:a||"",W:"a function",optional:!!b,X:xf}},Uo=function(a,b){return{name:a||"",W:"null",optional:!!b,X:function(c){return c===null}}},Vo=function(){return{name:"",W:"an HTML element",optional:!1,X:function(a){return!!(a&&a instanceof Element)}}},Wo=function(){return{name:"auth",W:"an instance of Firebase Auth",optional:!0,X:function(a){return!!(a&&a instanceof S)}}},Xo=function(){return{name:"app",W:"an instance of Firebase App", optional:!0,X:function(a){return!!(a&&a instanceof firebase.app.App)}}},Yo=function(a){return{name:a?a+"Credential":"credential",W:a?"a valid "+a+" credential":"a valid credential",optional:!1,X:function(b){if(!b)return!1;var c=!a||b.providerId===a;return!(!b.Kb||!c)}}},Zo=function(){return{name:"multiFactorAssertion",W:"a valid multiFactorAssertion",optional:!1,X:function(a){return a?!!a.process:!1}}},$o=function(){return{name:"authProvider",W:"a valid Auth provider",optional:!1,X:function(a){return!!(a&& a.providerId&&a.hasOwnProperty&&a.hasOwnProperty("isOAuthProvider"))}}},ap=function(a,b){return v(a)&&typeof a.type==="string"&&a.type===b&&typeof a.ad==="function"},bp=function(a){return v(a)&&typeof a.uid==="string"},cp=function(){return{name:"applicationVerifier",W:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,X:function(a){return!(!a||typeof a.type!=="string"||typeof a.verify!=="function")}}},W=function(a,b,c,d){return{name:c||"",W:a.W+" or "+b.W,optional:!!d,X:function(e){return a.X(e)|| b.X(e)}}};var X=function(a,b){for(var c in b){var d=b[c].name;a[d]=dp(d,a[c],b[c].g)}},ep=function(a,b){for(var c in b){var d=b[c].name;d!==c&&Object.defineProperty(a,d,{get:Ba(function(e){return this[e]},c),set:Ba(function(e,f,g,h){Ro(e,[g],[h],!0);this[f]=h},d,c,b[c].cf),enumerable:!0})}},Y=function(a,b,c,d){a[b]=dp(b,c,d)},dp=function(a,b,c){if(!c)return b;var d=fp(a);a=function(){var g=Array.prototype.slice.call(arguments);Ro(d,c,g);return b.apply(this,g)};for(var e in b)a[e]=b[e];for(var f in b.prototype)a.prototype[f]= b.prototype[f];return a},fp=function(a){a=a.split(".");return a[a.length-1]};function gp(){}O(gp,"FACTOR_ID","phone");X(S.prototype,{applyActionCode:{name:"applyActionCode",g:[U("code")]},checkActionCode:{name:"checkActionCode",g:[U("code")]},confirmPasswordReset:{name:"confirmPasswordReset",g:[U("code"),U("newPassword")]},createUserWithEmailAndPassword:{name:"createUserWithEmailAndPassword",g:[U("email"),U("password")]},fetchSignInMethodsForEmail:{name:"fetchSignInMethodsForEmail",g:[U("email")]},getRedirectResult:{name:"getRedirectResult",g:[]},isSignInWithEmailLink:{name:"isSignInWithEmailLink",g:[U("emailLink")]}, onAuthStateChanged:{name:"onAuthStateChanged",g:[W(V(),To(),"nextOrObserver"),To("opt_error",!0),To("opt_completed",!0)]},onIdTokenChanged:{name:"onIdTokenChanged",g:[W(V(),To(),"nextOrObserver"),To("opt_error",!0),To("opt_completed",!0)]},sendPasswordResetEmail:{name:"sendPasswordResetEmail",g:[U("email"),W(V("opt_actionCodeSettings",!0),Uo(null,!0),"opt_actionCodeSettings",!0)]},sendSignInLinkToEmail:{name:"sendSignInLinkToEmail",g:[U("email"),V("actionCodeSettings")]},setPersistence:{name:"setPersistence", g:[U("persistence")]},signInAndRetrieveDataWithCredential:{name:"signInAndRetrieveDataWithCredential",g:[Yo()]},signInAnonymously:{name:"signInAnonymously",g:[]},signInWithCredential:{name:"signInWithCredential",g:[Yo()]},signInWithCustomToken:{name:"signInWithCustomToken",g:[U("token")]},signInWithEmailAndPassword:{name:"signInWithEmailAndPassword",g:[U("email"),U("password")]},signInWithEmailLink:{name:"signInWithEmailLink",g:[U("email"),U("emailLink",!0)]},signInWithPhoneNumber:{name:"signInWithPhoneNumber", g:[U("phoneNumber"),cp()]},signInWithPopup:{name:"signInWithPopup",g:[$o()]},signInWithRedirect:{name:"signInWithRedirect",g:[$o()]},updateCurrentUser:{name:"updateCurrentUser",g:[W(function(a){return{name:"user",W:"an instance of Firebase User",optional:!!a,X:function(b){return!!(b&&b instanceof R)}}}(),Uo(),"user")]},signOut:{name:"signOut",g:[]},toJSON:{name:"toJSON",g:[U(null,!0)]},useDeviceLanguage:{name:"useDeviceLanguage",g:[]},useEmulator:{name:"useEmulator",g:[U("url"),V("options",!0)]}, verifyPasswordResetCode:{name:"verifyPasswordResetCode",g:[U("code")]}});ep(S.prototype,{lc:{name:"languageCode",cf:W(U(),Uo(),"languageCode")},ti:{name:"tenantId",cf:W(U(),Uo(),"tenantId")}});S.Persistence=rm;S.Persistence.LOCAL="local";S.Persistence.SESSION="session";S.Persistence.NONE="none"; X(R.prototype,{"delete":{name:"delete",g:[]},getIdTokenResult:{name:"getIdTokenResult",g:[So("opt_forceRefresh",!0)]},getIdToken:{name:"getIdToken",g:[So("opt_forceRefresh",!0)]},linkAndRetrieveDataWithCredential:{name:"linkAndRetrieveDataWithCredential",g:[Yo()]},linkWithCredential:{name:"linkWithCredential",g:[Yo()]},linkWithPhoneNumber:{name:"linkWithPhoneNumber",g:[U("phoneNumber"),cp()]},linkWithPopup:{name:"linkWithPopup",g:[$o()]},linkWithRedirect:{name:"linkWithRedirect",g:[$o()]},reauthenticateAndRetrieveDataWithCredential:{name:"reauthenticateAndRetrieveDataWithCredential", g:[Yo()]},reauthenticateWithCredential:{name:"reauthenticateWithCredential",g:[Yo()]},reauthenticateWithPhoneNumber:{name:"reauthenticateWithPhoneNumber",g:[U("phoneNumber"),cp()]},reauthenticateWithPopup:{name:"reauthenticateWithPopup",g:[$o()]},reauthenticateWithRedirect:{name:"reauthenticateWithRedirect",g:[$o()]},reload:{name:"reload",g:[]},sendEmailVerification:{name:"sendEmailVerification",g:[W(V("opt_actionCodeSettings",!0),Uo(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",g:[U(null, !0)]},unlink:{name:"unlink",g:[U("provider")]},updateEmail:{name:"updateEmail",g:[U("email")]},updatePassword:{name:"updatePassword",g:[U("password")]},updatePhoneNumber:{name:"updatePhoneNumber",g:[Yo("phone")]},updateProfile:{name:"updateProfile",g:[V("profile")]},verifyBeforeUpdateEmail:{name:"verifyBeforeUpdateEmail",g:[U("email"),W(V("opt_actionCodeSettings",!0),Uo(null,!0),"opt_actionCodeSettings",!0)]}});X(hl.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}); X(cl.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}});X(I.prototype,{zb:{name:"finally"},h:{name:"catch"},then:{name:"then"}});ep(cm.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",cf:So("appVerificationDisabledForTesting")}});X(fm.prototype,{confirm:{name:"confirm",g:[U("verificationCode")]}}); Y(Hi,"fromJSON",function(a){a=typeof a==="string"?JSON.parse(a):a;for(var b,c=[Pi,gj,nj,Ni],d=0;d=0;b--)this.remove(a[b])}; l.ng=function(a){this.ab.cookie=a};l.Zc=function(){return this.ab.cookie};var ip=function(a){a=(a.Zc()||"").split(";");for(var b=[],c=[],d,e,f=0;f1&&(this.M[c].stagingRollout=1));typeof this.M[c].rollout!=="undefined"&&(this.M[c].rollout<0&&(this.M[c].rollout=0),this.M[c].rollout>1&&(this.M[c].rollout=1))}}; lp.prototype.isEnabled=function(a){var b=a.id;a=a.id.toString();if(typeof this.M[a]!=="undefined"){var c=c===void 0?u.window:c;if(!(c&&c.navigator&&c.navigator.cookieEnabled)||this.M[a].expiration&&this.M[a].expiration.getTime()<=Date.now())return!!this.M[a].defaultValue;var d;c=this.Zc("e_gcip_"+b);c===null&&(c=parseInt(Math.random()*1E4,10)/1E4,this.M[b.toString()].expiration&&(d=parseInt((this.M[b.toString()].expiration.getTime()-Date.now())/1E3,10)),this.ng("e_gcip_"+b,c.toString(),d));b=parseFloat(c); var e;return(e=e===void 0?u.window:e)&&e.location&&e.location.hostname&&kp.test(e.location.hostname)&&typeof this.M[a].stagingRollout!=="undefined"?(console.log("Evaluating experiment for staging domain"),this.M[a].stagingRollout===1?!0:b===0?!1:b<=this.M[a].stagingRollout):typeof this.M[a].rollout!=="undefined"?b===0?!1:b<=this.M[a].rollout:!!this.M[a].defaultValue}return!1};lp.prototype.ng=function(a,b,c){jp.set(a,b,{Tf:c?c:2592E3,path:"/__/auth/",domain:u.window.location.hostname,kk:!0})}; lp.prototype.Zc=function(a){return jp.get(a)||null};var mp=function(){this.Xd=new lp};mp.prototype.zj=function(){var a=(u.EXPERIMENTS||{}).DISPLAY_CONTINUE_BUTTON_IF_NOT_REDIRECT;return typeof a==="undefined"?!1:this.Xd.isEnabled(a)};mp.prototype.Bj=function(){var a=(u.EXPERIMENTS||{}).POPUP_POST_MESSAGE_TO_IFRAME;return typeof a==="undefined"?!1:this.Xd.isEnabled(a)};mp.prototype.yj=function(){var a=(u.EXPERIMENTS||{}).CHECK_OAUTH_STATE_STORED_BEFORE_REDIRECT;return typeof a==="undefined"?!1:this.Xd.isEnabled(a)}; mp.prototype.Dj=function(){var a=(u.EXPERIMENTS||{}).CHECK_REDIRECT_URL_IS_AUTHORIZED;return typeof a==="undefined"?!1:this.Xd.isEnabled(a)};var np=new mp,op=np.zj.bind(np),pp=np.Bj.bind(np),qp=np.yj.bind(np),rp=np.Dj.bind(np);var sp=function(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""},tp=function(a,b){if(a.classList)a.classList.add(b);else if(a.classList?!a.classList.contains(b):!eb(a.classList?a.classList:sp(a).match(/\S+/g)||[],b)){var c=sp(a);b=c+(c.length>0?" "+b:b);typeof a.className=="string"?a.className=b:a.setAttribute&&a.setAttribute("class",b)}};/* Copyright 2015 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ var Z={wi:function(){},xi:function(){},yi:function(){},zg:function(){},Xh:function(){},register:function(){},Wg:function(){}}; Z=function(){function a(m,r){for(var t=0;t0&&g(y.children))}function h(m){if(m){n.splice(n.indexOf(m),1);var r=m.T.getAttribute("data-upgraded").split(",");r.splice(r.indexOf(m.mdlComponentConfigInternal_.qf),1);m.T.setAttribute("data-upgraded",r.join(","));r=d("mdl-componentdowngraded",!0,!1);m.T.dispatchEvent(r)}}var k=[],n=[];return{wi:e,xi:f,yi:g,zg:function(){for(var m=0;m, as required by soy internals. Consider using goog.soy.renderElement instead.\nTemplate output: %s",e&& e[0],d);c.innerHTML=xc(b)}c.childNodes.length==1&&(b=c.firstChild,b.nodeType==1&&(c=b));this.T=c;le(a,this.T);this.Id()};yp.prototype.Id=function(){};yp.prototype.Nd=function(){};yp.prototype.dispose=function(){this.T&&(this.Nd(),ne(this.T),this.T=null)};var zp=function(){yp.call(this,Ae)};q(zp,yp);zp.prototype.Id=function(){var a=ee("progressBar");window.componentHandler&&window.componentHandler.upgradeElement&&window.componentHandler.upgradeElement(a)}; zp.prototype.Nd=function(){var a=ee("progressBar");window.componentHandler&&window.componentHandler.downgradeElements&&window.componentHandler.downgradeElements(a)};var Ap=function(a,b){yp.call(this,Be,{appName:a});this.we=b;this.Za=null};q(Ap,yp);Ap.prototype.Id=function(){var a=ee("continue"),b=this;this.Za=bf(a,"click",function(){b.we()})};Ap.prototype.Nd=function(){this.Za&&(lf(this.Za),this.Za=null)};var Bp=function(a){yp.call(this,Ce,{errorMessage:a})};q(Bp,yp); var Cp=function(a,b){yp.call(this,De,{});this.we=a||null;this.oc=b||null;this.Za=null};q(Cp,yp);Cp.prototype.Id=function(){var a=ee("verify"),b=this;this.we&&(this.Za=bf(a,"click",function(){b.we()}));a=ee("app-verification-progress-bar");window.componentHandler&&window.componentHandler.upgradeElement&&window.componentHandler.upgradeElement(a);if((a=ee("status-container-label"))&&this.oc){var c=xp(ve(a),this.oc);qe(a,c);eb(wp,this.oc.replace("-","_").toLowerCase())&&tp(a,"firebase-rtl")}}; var Dp=function(){var a=ee("status-container");tp(a,"firebase-hidden")};Cp.prototype.Nd=function(){this.Za&&(lf(this.Za),this.Za=null);var a=ee("app-verification-progress-bar");window.componentHandler&&window.componentHandler.downgradeElements&&window.componentHandler.downgradeElements(a)};var Ep=function(a){this.gg=ie("DIV",{id:"progressBarContainer"});var b=this;this.yb=new Em;this.uri=F(a);this.apiKey=E(this.uri,"apiKey")||null;this.appName=E(this.uri,"appName")||"";this.authType=E(this.uri,"authType")||null;this.Gb=E(this.uri,"eventId")||null;this.ta=E(this.uri,"redirectUrl")||null;this.ye=E(this.uri,"v")||null;this.jk=(a=E(this.uri,"scopes"))?a.split(","):[];this.Ud={};this.sessionId=E(this.uri,"sessionId")||null;this.af=E(this.uri,"appDisplayName")||null;this.Oa=E(this.uri,"apn")|| null;this.qb=E(this.uri,"ibi")||null;this.Vd=E(this.uri,"eid")||null;this.clientId=E(this.uri,"clientId")||null;this.nb=E(this.uri,"appId")||null;(this.Cg=(new td(this.uri.kc)).get("fac")||null)&&console.log("App Check token found.");this.nh=E(this.uri,"hl")||null;this.Ub=E(this.uri,"sha1Cert")||null;this.publicKey=E(this.uri,"publicKey")||null;this.Qe=E(this.uri,"tid")||null;a=Jh(E(this.uri,"customParameters")||"{}");this.Ud=typeof a=="object"?a||{}:{};this.providerId=E(this.uri,"providerId")||null; this.Ce=typeof u.POST_BODY==="string"&&u.POST_BODY!="{{POST_BODY}}"&&u.POST_BODY.length!=0?u.POST_BODY:null;this.providerId&&(this.Ud=Ih(this.Ud,hi(this.providerId)));this.Xc=(a=E(this.uri,"fw"))?a.split(","):[];this.mode="oauth";this.Rb=null;this.Mh=this.Vf=nh().then(function(){document.body.appendChild(b.gg);b.Rb=new zp;b.Rb.render(b.gg)});this.Ua=null},Fp={},Gp={gf:["facebook.com"]},Hp={},Ip={gf:["facebook.com","apple.com"]},Jp={},Kp=function(a){if(a.ta)try{return Ad(rd(pd(F(a.ta),""),"")).toString()}catch(b){}else{if(a.Oa)return"file://asset/www/index.html?apn="+ encodeURIComponent(a.Oa);if(a.qb)return"file://asset/www/index.html?ibi="+encodeURIComponent(a.qb)}return null},Lp=function(a,b){return E(a,b)},Mp=function(a){if(!a.apiKey)throw Ph("No API key available"),new P("bad-request");a.Ua=new Dj(a.apiKey,Xg(a.Vd),Ah("Handler","2.20.7",a.Xc),a.Cg);a.Ua.D=a.Qe},Op=function(a){Np(a);a.Vf.then(function(){a.Rb=new zp;a.Rb.render(a.gg)})},Np=function(a){a.Mh&&a.Mh.cancel();a.Rb&&(a.Rb.dispose(),a.Rb=null)}; Ep.prototype.nc=function(){return this.apiKey?this.apiKey+":"+(this.appName||""):null};Ep.prototype.handleError=function(a){var b=this;if(a instanceof P&&(a.code==="auth/unauthorized-domain"||a.code==="auth/bad-request"))return nh().then(function(){Np(b);(new Bp(a.message)).render(document.body)});var c=new li(this.authType||"unknown",this.Gb,null,null,a);return Pp(this,c)}; var Qp=function(a,b,c,d){b=new li(a.authType,a.Gb,b,c,null,d,a.Qe);return Pp(a,b)},Pp=function(a,b){var c=a.nc(),d=!1,e=J();ih()&&!a.ta&&(e=Sg(500));return e.then(function(){if((a.Oa||a.qb)&&a.Ua)return d=!0,Rp(a.Ua,b,a.Oa,a.qb,a.clientId,a.Ub,a.af,a.Gb,a.nb,a.publicKey);if(a.authType==="verifyApp"&&b.Y)return d=!0,Sp(b.getError());if(c){var f=a.yb;return b.getType().match(/Redirect$/)?f.o.set(Dm,b.m(),c):Up(f,c,b)}}).then(function(){return a.yb.o.remove(Gm)}).then(function(){if(c)return a.yb.o.remove(Fm, c)}).zb(function(){d?Np(a):/redirect/i.test(a.authType||"")?(Np(a),Sh(),bh(a.ta)):a.ye&&Fh()&&!sh()?a.apiKey?setTimeout(function(){Np(a);gh()},15E3):(Np(a),gh()):(Np(a),gh())})},Rp=function(a,b,c,d,e,f,g,h,k,n){return J().then(function(){if(b.getType()==="verifyApp"&&d){if(!e&&!k)throw new P("invalid-app-id");Vp(null,b,c,d,e,f,g,h,k,n)}else return b.getType()==="verifyApp"&&c?Vp(null,b,c,d,e,f,g,h,k,n):c?Yj(a,c,f).then(function(){var m=null;m=f?J("playservices.app.goo.gl"):Q(a,Ik,{returnDynamicLink:!0}); return m.then(function(r){Vp(r,b,c,d,e,f,g,h,k,n)})}):(e?Zj(a,e):k?ak(a,k):Xj(a,d)).then(function(){Vp(null,b,c,d,e,f,g,h,k,n)})}).h(function(m){return Sp(m)})},Sp=function(a){var b=!a||a.code!="auth/dynamic-link-not-activated"&&a.code!="auth/invalid-app-id"&&a.code!="auth/invalid-oauth-client-id"&&a.code!="auth/invalid-api-key"&&a.code!="auth/internal-error"&&a.code!="auth/invalid-cert-hash"?(Pd["fireauth.oauthhelper.ui.soy.temporaryErrorMessage"]?Pd["fireauth.oauthhelper.ui.soy.temporaryErrorMessage"](void 0, void 0):"An error occurred. Please try again later.").toString():a.message;return nh().then(function(){(new Bp(b)).render(document.body)})},Vp=function(a,b,c,d,e,f,g,h,k,n){n=n?"android_non_gmscore":c?"android":"ios";var m=c?c:d,r=null;f?(r=Wp(b,c,h,n),m="com.google.android.gms"):(e||k)&&d&&b.getType()!=="verifyApp"&&!b.Y?(r=window.location.protocol+"//"+window.location.host+"/__/auth/callback?authType="+encodeURIComponent(b.getType())+"&link="+encodeURIComponent(b.Wa),h&&(r+="&eventId="+h)):b.Y? (r=window.location.protocol+"//"+window.location.host+"/__/auth/callback?firebaseError="+encodeURIComponent(Gh(b.getError().m()))+"&authType="+encodeURIComponent(b.getType()),h&&(r+="&eventId="+h)):r=b.Wa.replace("/handler","/callback");a=new wi(a,n,m,window.location.host,r,e,k);n=="android"?(xi(a,g),bh(a.toString(!f))):bh(a.toString(),void 0,!0);setTimeout(function(){ah(null)},4E3)},Wp=function(a,b,c,d){if(d==="android_non_gmscore"){d=a.Wa;var e=window.location.protocol+"//"+window.location.host+ "/__/auth/handler";b="intent://firebase.auth/#Intent;scheme="+(a.getType()==="verifyApp"?"recaptcha":"genericidp")+";package="+b+";S.authType="+a.getType()+";";c&&(b+="S.eventId="+c+";");a.Y?b+="S.firebaseError="+encodeURIComponent(Gh(a.getError().m()))+";":(b+="S.link="+encodeURIComponent(d)+";",b+="B.encryptionEnabled=false;");b+="S.browser_fallback_url="+encodeURIComponent(e)+";";a=b+"end;"}else d=Bd("https","fir-auth-gms.firebaseapp.com",null,"/",null,null),D(d,"authType",a.getType()),D(d,"cpn", b),c&&D(d,"eventId",c),a.Y?D(d,"firebaseError",Gh(a.getError().m())):D(d,"link",a.Wa),a=d.toString();return a},Up=function(a,b,c){var d=u.window&&u.window.opener||null;if(pp()&&d&&/popup/i.test(c.getType()||"")){for(var e=[],f=b.split(":"),g=0;g=10?(Ph("Unable to save initial state."),d(new P("bad-request","Unable to save initial state. This may happen if browser sessionStorage is inaccessible."))):Hm(a.yb).then(function(f){f?c():setTimeout(e,1)})};e()})};var cq=function(a){Ep.call(this,a)};q(cq,Ep);cq.prototype.start=function(){var a=this;return this.bb().then(function(){return dq(a)}).h(function(b){return b instanceof P?a.handleError(b):a.handleError(new P("internal-error"))})}; cq.prototype.bb=function(){var a=this;return Hm(this.yb).then(function(b){if(!b)throw Ph("Unable to process request due to missing initial state."),new P("bad-request","Unable to process request due to missing initial state. This may happen if browser sessionStorage is inaccessible or accidentally cleared. Some specific scenarios are - 1) Using IDP-Initiated SAML SSO. 2) Using signInWithRedirect in a storage-partitioned browser environment.");var c=b&&b.B,d=b&&b.getType();if(!c)throw new P("invalid-api-key"); if(!d)throw new P("internal-error");a.apiKey=b.B;a.Vd=b.Xg;a.Xc=b.Z;Mp(a);a.appName=b.C;a.authType=b.getType();a.Gb=b.U;a.ta=b.Cc;a.ye=b.Pa;a.af=b.uf;a.Oa=b.bc;a.qb=b.dd;a.clientId=b.Db;a.Ub=b.ji;a.Qe=b.D;a.providerId=b.zc;a.nb=b.Hb;a.publicKey=b.Vh})}; var eq=function(a,b){if(a.Ce&&a.providerId==="apple.com"){b=F(b);var c=Vh(a.Ce);a.Ce=null;for(var d in c)c.hasOwnProperty(d)&&D(b,d,c[d]);return b.toString()}return b},dq=function(a){var b=eq(a,a.uri.toString()),c=a.nc();return a.yb.mc(c).then(function(d){if(!d)throw new P("internal-error");return Qp(a,b,d,a.Ce)})};var fq=null;function gq(a){hq();nh().then(function(){var b=new Ap(a.appName,function(){b.dispose();bh(a.toString());setTimeout(function(){ah(null)},4E3)});b.render(document.body)})}function iq(a){var b=a;try{var c=ki(Jh(a));c&&c.message&&(b=c.message)}catch(d){}hq();nh().then(function(){(new Bp(b)).render(document.body)})} function hq(){var a=new de(be,'.mdl-card{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;font-size:16px;font-weight:400;min-height:200px;overflow:hidden;width:330px;z-index:1;position:relative;background:#fff;border-radius:2px;-moz-box-sizing:border-box;box-sizing:border-box}.mdl-card__media{background-color:#ff4081;background-repeat:repeat;background-position:50% 50%;background-size:cover;background-origin:padding-box;background-attachment:scroll;-moz-box-sizing:border-box;box-sizing:border-box}.mdl-card__title{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;color:#000;display:block;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:stretch;-webkit-justify-content:stretch;-moz-box-pack:stretch;-ms-flex-pack:stretch;justify-content:stretch;line-height:normal;padding:16px 16px;-webkit-perspective-origin:165px 56px;perspective-origin:165px 56px;-webkit-transform-origin:165px 56px;transform-origin:165px 56px;-moz-box-sizing:border-box;box-sizing:border-box}.mdl-card__title.mdl-card--border{border-bottom:1px solid rgba(0,0,0,.1)}.mdl-card__title-text{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;color:inherit;display:block;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;font-size:24px;font-weight:300;line-height:normal;overflow:hidden;-webkit-transform-origin:149px 48px;transform-origin:149px 48px;margin:0}.mdl-card__subtitle-text{font-size:14px;color:rgba(0,0,0,.54);margin:0}.mdl-card__supporting-text{color:rgba(0,0,0,.54);font-size:1rem;line-height:18px;overflow:hidden;padding:16px 16px;width:90%}.mdl-card__supporting-text.mdl-card--border{border-bottom:1px solid rgba(0,0,0,.1)}.mdl-card__actions{font-size:16px;line-height:normal;width:100%;background-color:transparent;padding:8px;-moz-box-sizing:border-box;box-sizing:border-box}.mdl-card__actions.mdl-card--border{border-top:1px solid rgba(0,0,0,.1)}.mdl-card--expand{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}.mdl-card__menu{position:absolute;right:16px;top:16px}.mdl-button{background:transparent;border:none;border-radius:2px;color:#000;position:relative;height:36px;margin:0;min-width:64px;padding:0 16px;display:inline-block;font-family:Roboto,Helvetica,Arial,sans-serif;font-size:14px;font-weight:500;text-transform:uppercase;line-height:1;letter-spacing:0;overflow:hidden;will-change:box-shadow;-webkit-transition:box-shadow .2s cubic-bezier(.4,0,1,1),background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1);transition:box-shadow .2s cubic-bezier(.4,0,1,1),background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1);outline:none;cursor:pointer;text-decoration:none;text-align:center;line-height:36px;vertical-align:middle}.mdl-button::-moz-focus-inner{border:0}.mdl-button:hover{background-color:hsla(0,0%,62%,.2)}.mdl-button:focus:not(:active){background-color:rgba(0,0,0,.12)}.mdl-button:active{background-color:hsla(0,0%,62%,.4)}.mdl-button.mdl-button--colored{color:#3f51b5}.mdl-button.mdl-button--colored:focus:not(:active){background-color:rgba(0,0,0,.12)}input.mdl-button[type=submit]{-webkit-appearance:none}.mdl-button--raised{background:hsla(0,0%,62%,.2);box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12)}.mdl-button--raised:active{box-shadow:0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12),0 2px 4px -1px rgba(0,0,0,.2);background-color:hsla(0,0%,62%,.4)}.mdl-button--raised:focus:not(:active){box-shadow:0 0 8px rgba(0,0,0,.18),0 8px 16px rgba(0,0,0,.36);background-color:hsla(0,0%,62%,.4)}.mdl-button--raised.mdl-button--colored{background:#3f51b5;color:#fff}.mdl-button--raised.mdl-button--colored:hover{background-color:#3f51b5}.mdl-button--raised.mdl-button--colored:active{background-color:#3f51b5}.mdl-button--raised.mdl-button--colored:focus:not(:active){background-color:#3f51b5}.mdl-button--raised.mdl-button--colored .mdl-ripple{background:#fff}.mdl-button--fab{border-radius:50%;font-size:24px;height:56px;margin:auto;min-width:56px;width:56px;padding:0;overflow:hidden;background:hsla(0,0%,62%,.2);box-shadow:0 1px 1.5px 0 rgba(0,0,0,.12),0 1px 1px 0 rgba(0,0,0,.24);position:relative;line-height:normal}.mdl-button--fab .material-icons{position:absolute;top:50%;left:50%;-webkit-transform:translate(-12px,-12px);transform:translate(-12px,-12px);line-height:24px;width:24px}.mdl-button--fab.mdl-button--mini-fab{height:40px;min-width:40px;width:40px}.mdl-button--fab .mdl-button__ripple-container{border-radius:50%;-webkit-mask-image:-webkit-radial-gradient(circle,#fff,#000)}.mdl-button--fab:active{box-shadow:0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12),0 2px 4px -1px rgba(0,0,0,.2);background-color:hsla(0,0%,62%,.4)}.mdl-button--fab:focus:not(:active){box-shadow:0 0 8px rgba(0,0,0,.18),0 8px 16px rgba(0,0,0,.36);background-color:hsla(0,0%,62%,.4)}.mdl-button--fab.mdl-button--colored{background:#ff4081;color:#fff}.mdl-button--fab.mdl-button--colored:hover{background-color:#ff4081}.mdl-button--fab.mdl-button--colored:focus:not(:active){background-color:#ff4081}.mdl-button--fab.mdl-button--colored:active{background-color:#ff4081}.mdl-button--fab.mdl-button--colored .mdl-ripple{background:#fff}.mdl-button--icon{border-radius:50%;font-size:24px;height:32px;margin-left:0;margin-right:0;min-width:32px;width:32px;padding:0;overflow:hidden;color:inherit;line-height:normal}.mdl-button--icon .material-icons{position:absolute;top:50%;left:50%;-webkit-transform:translate(-12px,-12px);transform:translate(-12px,-12px);line-height:24px;width:24px}.mdl-button--icon.mdl-button--mini-icon{height:24px;min-width:24px;width:24px}.mdl-button--icon.mdl-button--mini-icon .material-icons{top:0;left:0}.mdl-button--icon .mdl-button__ripple-container{border-radius:50%;-webkit-mask-image:-webkit-radial-gradient(circle,#fff,#000)}.mdl-button__ripple-container{display:block;height:100%;left:0;position:absolute;top:0;width:100%;z-index:0;overflow:hidden}.mdl-button.mdl-button--disabled .mdl-button__ripple-container .mdl-ripple,.mdl-button[disabled] .mdl-button__ripple-container .mdl-ripple{background-color:transparent}.mdl-button--primary.mdl-button--primary{color:#3f51b5}.mdl-button--primary.mdl-button--primary .mdl-ripple{background:#fff}.mdl-button--primary.mdl-button--primary.mdl-button--fab,.mdl-button--primary.mdl-button--primary.mdl-button--raised{color:#fff;background-color:#3f51b5}.mdl-button--accent.mdl-button--accent{color:#ff4081}.mdl-button--accent.mdl-button--accent .mdl-ripple{background:#fff}.mdl-button--accent.mdl-button--accent.mdl-button--fab,.mdl-button--accent.mdl-button--accent.mdl-button--raised{color:#fff;background-color:#ff4081}.mdl-button.mdl-button--disabled.mdl-button--disabled,.mdl-button[disabled][disabled]{color:rgba(0,0,0,.26);cursor:default;background-color:transparent}.mdl-button--fab.mdl-button--disabled.mdl-button--disabled,.mdl-button--fab[disabled][disabled]{background-color:rgba(0,0,0,.12);color:rgba(0,0,0,.26)}.mdl-button--raised.mdl-button--disabled.mdl-button--disabled,.mdl-button--raised[disabled][disabled]{background-color:rgba(0,0,0,.12);color:rgba(0,0,0,.26);box-shadow:none}.mdl-button--colored.mdl-button--disabled.mdl-button--disabled,.mdl-button--colored[disabled][disabled]{color:rgba(0,0,0,.26)}.mdl-button .material-icons{vertical-align:middle}.mdl-progress{display:block;position:relative;height:4px;width:500px;max-width:100%}.mdl-progress>.bar{display:block;position:absolute;top:0;bottom:0;width:0;-webkit-transition:width .2s cubic-bezier(.4,0,.2,1);transition:width .2s cubic-bezier(.4,0,.2,1)}.mdl-progress>.progressbar{background-color:#3f51b5;z-index:1;left:0}.mdl-progress>.bufferbar{background-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,.7)),to(hsla(0,0%,100%,.7))),-webkit-gradient(linear,left top,right top,from(#3f51b5),to(#3f51b5));background-image:-webkit-linear-gradient(left,hsla(0,0%,100%,.7),hsla(0,0%,100%,.7)),-webkit-linear-gradient(left,#3f51b5,#3f51b5);background-image:linear-gradient(90deg,hsla(0,0%,100%,.7),hsla(0,0%,100%,.7)),linear-gradient(90deg,#3f51b5,#3f51b5);z-index:0;left:0}.mdl-progress>.auxbar{right:0}@supports (-webkit-appearance:none){.mdl-progress:not(.mdl-progress--indeterminate):not(.mdl-progress--indeterminate)>.auxbar,.mdl-progress:not(.mdl-progress__indeterminate):not(.mdl-progress__indeterminate)>.auxbar{background-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,.7)),to(hsla(0,0%,100%,.7))),-webkit-gradient(linear,left top,right top,from(#3f51b5),to(#3f51b5));background-image:-webkit-linear-gradient(left,hsla(0,0%,100%,.7),hsla(0,0%,100%,.7)),-webkit-linear-gradient(left,#3f51b5,#3f51b5);background-image:linear-gradient(90deg,hsla(0,0%,100%,.7),hsla(0,0%,100%,.7)),linear-gradient(90deg,#3f51b5,#3f51b5);-webkit-mask:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+Cjxzdmcgd2lkdGg9IjEyIiBoZWlnaHQ9IjQiIHZpZXdQb3J0PSIwIDAgMTIgNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxlbGxpcHNlIGN4PSIyIiBjeT0iMiIgcng9IjIiIHJ5PSIyIj4KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImN4IiBmcm9tPSIyIiB0bz0iLTEwIiBkdXI9IjAuNnMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiAvPgogIDwvZWxsaXBzZT4KICA8ZWxsaXBzZSBjeD0iMTQiIGN5PSIyIiByeD0iMiIgcnk9IjIiIGNsYXNzPSJsb2FkZXIiPgogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iY3giIGZyb209IjE0IiB0bz0iMiIgZHVyPSIwLjZzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgLz4KICA8L2VsbGlwc2U+Cjwvc3ZnPgo=");mask:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+Cjxzdmcgd2lkdGg9IjEyIiBoZWlnaHQ9IjQiIHZpZXdQb3J0PSIwIDAgMTIgNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxlbGxpcHNlIGN4PSIyIiBjeT0iMiIgcng9IjIiIHJ5PSIyIj4KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImN4IiBmcm9tPSIyIiB0bz0iLTEwIiBkdXI9IjAuNnMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiAvPgogIDwvZWxsaXBzZT4KICA8ZWxsaXBzZSBjeD0iMTQiIGN5PSIyIiByeD0iMiIgcnk9IjIiIGNsYXNzPSJsb2FkZXIiPgogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iY3giIGZyb209IjE0IiB0bz0iMiIgZHVyPSIwLjZzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgLz4KICA8L2VsbGlwc2U+Cjwvc3ZnPgo=")}}.mdl-progress:not(.mdl-progress--indeterminate)>.auxbar,.mdl-progress:not(.mdl-progress__indeterminate)>.auxbar{background-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,.9)),to(hsla(0,0%,100%,.9))),-webkit-gradient(linear,left top,right top,from(#3f51b5),to(#3f51b5));background-image:-webkit-linear-gradient(left,hsla(0,0%,100%,.9),hsla(0,0%,100%,.9)),-webkit-linear-gradient(left,#3f51b5,#3f51b5);background-image:linear-gradient(90deg,hsla(0,0%,100%,.9),hsla(0,0%,100%,.9)),linear-gradient(90deg,#3f51b5,#3f51b5)}.mdl-progress.mdl-progress--indeterminate>.bar1,.mdl-progress.mdl-progress__indeterminate>.bar1{background-color:#3f51b5;-webkit-animation-name:indeterminate1;animation-name:indeterminate1;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.mdl-progress.mdl-progress--indeterminate>.bar3,.mdl-progress.mdl-progress__indeterminate>.bar3{background-image:none;background-color:#3f51b5;-webkit-animation-name:indeterminate2;animation-name:indeterminate2;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes indeterminate1{0%{left:0;width:0}50%{left:25%;width:75%}75%{left:100%;width:0}}@keyframes indeterminate1{0%{left:0;width:0}50%{left:25%;width:75%}75%{left:100%;width:0}}@-webkit-keyframes indeterminate2{0%{left:0;width:0}50%{left:0;width:0}75%{left:0;width:25%}to{left:100%;width:0}}@keyframes indeterminate2{0%{left:0;width:0}50%{left:0;width:0}75%{left:0;width:25%}to{left:100%;width:0}}body{margin:0}.firebase-container{background-color:#fff;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;color:rgba(0,0,0,.87);direction:ltr;font:16px Roboto,arial,sans-serif;margin:0 auto;max-width:360px;overflow:hidden;padding-top:8px;position:relative;width:100%}.firebase-progress-bar{height:5px;left:0;position:absolute;top:0;width:100%}.firebase-hidden-button{height:1px;visibility:hidden;width:1px}.firebase-container#app-verification-screen{top:100px}.firebase-title{color:rgba(0,0,0,.87);direction:ltr;font-size:24px;font-weight:500;line-height:24px;margin:0;padding:0;text-align:center}.firebase-middle-progress-bar{height:5px;margin-left:auto;margin-right:auto;top:20px;width:250px}.firebase-hidden{display:none}.firebase-rtl{direction:rtl;text-align:right}@media (max-width:520px){.firebase-container{box-shadow:none;max-width:none;width:100%}}');a instanceof de&&a.constructor===de&&a.Ji===ce?a=a.oi:(Ha("expected object of type Const, got '"+a+"'"),a="type_error:Const");z(!A(a,"<"),"Forbidden '<' character in style sheet string: "+a);Vc("Deprecated, but safe closure/html builder");var b=new Cc(a);a=Da||(Da=new we);var c=xe(a,"HEAD")[0];if(!c){var d=xe(a,"BODY")[0];c=a.Pg("HEAD");d.parentNode.insertBefore(c,d)}d=a.Pg("STYLE");var e=zc("style",document);e&&d.setAttribute("nonce",e);if(b instanceof Cc)b=b.Sh;else throw Error("Unexpected type when unwrapping SafeStyleSheet, got '"+ b+"' of type '"+typeof b+"'");u.trustedTypes?qe(d,b):d.innerHTML=b;a.appendChild(c,d)};for(var jq=function(){var a=$g();switch(E(F(a),"blank")?"blank":Lp(F(a),"authType")==="verifyApp"?"verifyApp":yi(a)?"dynamicLink":E(F(a),"firebaseError")?"error":Lp(F(a),"apiKey")?"starter":"finisher"){case "blank":ah(null);return;case "dynamicLink":a=yi(a);gq(a);return;case "error":a=E(F(a),"firebaseError")||null;iq(a);return;case "starter":fq=new Zp(a);break;case "finisher":fq=new cq(a);break;case "verifyApp":fq=new Xp(a)}hq();fq.start()},kq=["fireauth","oauthhelper","widget","initialize"],lq=u, mq;kq.length&&(mq=kq.shift());)kq.length||jq===void 0?lq=lq[mq]&&lq[mq]!==Object.prototype[mq]?lq[mq]:lq[mq]={}:lq[mq]=jq;}).call(this);