2018-12-22 23:30:39 +01:00

3 lines
152 KiB
JavaScript

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