gapi.loaded_1(function(_){var window=this;
var bt=_.Wa.yc,ct={open:function(a){var b=_.on(a.qc());return a.Gg(b,{style:_.pn(b)})},attach:function(a,b){var c=_.on(a.qc()),d=b.id,e=b.getAttribute("data-postorigin")||b.src,f=/#(?:.*&)?rpctoken=(\d+)/.exec(e);f=f&&f[1];a.id=d;a.Kt=f;a.el=c;a.Ah=b;_.Wa.Vk[d]=a;b=_.oq(a.methods);b._ready=a.My;b._close=a.close;b._open=a.lQ;b._resizeMe=a.ZQ;b._renderstart=a.dQ;_.pq(b,d,"",a,!0);_.yf.Rz(a.id,a.Kt);_.yf.Si(a.id,e);c=_.Wa.Fm({style:_.pn(c)});for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&
("style"==h?a.Ah.style.cssText=c[h]:a.Ah.setAttribute(h,c[h]))}};ct.onready=_.qn;ct.onRenderStart=_.qn;ct.close=_.rn;bt("inline",ct);

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Wg=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8);b[c++]=e}return b};
var Xg,Yg,$g;Xg={};Yg=null;_.Zg=_.dd||_.ed||!_.Vg&&!_.ad&&"function"==typeof _.u.atob;_.ah=function(a,b){void 0===b&&(b=0);$g();b=Xg[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var h=a[e],k=a[e+1],l=a[e+2],m=b[h>>2];h=b[(h&3)<<4|k>>4];k=b[(k&15)<<2|l>>6];l=b[l&63];c[f++]=m+h+k+l}m=0;l=d;switch(a.length-e){case 2:m=a[e+1],l=b[(m&15)<<2]||d;case 1:a=a[e],c[f]=b[a>>2]+b[(a&3)<<4|m>>4]+l+d}return c.join("")};
_.bh=function(a,b){function c(l){for(;d<a.length;){var m=a.charAt(d++),n=Yg[m];if(null!=n)return n;if(!_.hc(m))throw Error("C`"+m);}return l}$g();for(var d=0;;){var e=c(-1),f=c(0),h=c(64),k=c(64);if(64===k&&-1===e)break;b(e<<2|f>>4);64!=h&&(b(f<<4&240|h>>2),64!=k&&b(h<<6&192|k))}};
$g=function(){if(!Yg){Yg={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Xg[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===Yg[f]&&(Yg[f]=e)}}}};

_.yh={};
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var Ah;_.zh=function(a){this.ub=a||{cookie:""}};_.g=_.zh.prototype;_.g.isEnabled=function(){if(!_.u.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{ZE:60});if("1"!==this.get("TESTCOOKIESENABLED"))return!1;this.remove("TESTCOOKIESENABLED");return!0};
_.g.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.Zfa;d=c.secure||!1;var f=c.domain||void 0;var h=c.path||void 0;var k=c.ZE}if(/[;=\s]/.test(a))throw Error("F`"+a);if(/[;\r\n]/.test(b))throw Error("G`"+b);void 0===k&&(k=-1);this.ub.cookie=a+"="+b+(f?";domain="+f:"")+(h?";path="+h:"")+(0>k?"":0==k?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*k)).toUTCString())+(d?";secure":"")+(null!=e?";samesite="+e:"")};
_.g.get=function(a,b){for(var c=a+"=",d=(this.ub.cookie||"").split(";"),e=0,f;e<d.length;e++){f=(0,_.ic)(d[e]);if(0==f.lastIndexOf(c,0))return f.slice(c.length);if(f==a)return""}return b};_.g.remove=function(a,b,c){var d=this.Xh(a);this.set(a,"",{ZE:0,path:b,domain:c});return d};_.g.Tf=function(){return Ah(this).keys};_.g.Xc=function(){return Ah(this).values};_.g.isEmpty=function(){return!this.ub.cookie};_.g.Ib=function(){return this.ub.cookie?(this.ub.cookie||"").split(";").length:0};
_.g.Xh=function(a){return void 0!==this.get(a)};_.g.nj=function(a){for(var b=Ah(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};_.g.clear=function(){for(var a=Ah(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};Ah=function(a){a=(a.ub.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=(0,_.ic)(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};
_.Bh=new _.zh("undefined"==typeof document?null:document);

_.Mh={};_.Nh=function(a){return _.Mh[a||"token"]||null};

var pu,qu,ru,su,tu,vu,wu,xu,yu,Au;_.ou=!1;pu=function(a){try{_.ou&&window.console&&window.console.log&&window.console.log(a)}catch(b){}};qu=function(a){try{window.console&&window.console.warn&&window.console.warn(a)}catch(b){}};ru=function(a,b){if(!a)return-1;if(a.indexOf)return a.indexOf(b,void 0);for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1};
su=function(a,b){function c(){}if(!a)throw Error("T");if(!b)throw Error("U");c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a};tu=function(a){return"[object Function]"===Object.prototype.toString.call(a)};_.uu=function(a){var b={};if(a)for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b};vu=function(a){var b=location.hash;a=new RegExp("[&#]"+a+"=([^&]*)");b=decodeURIComponent(b);b=a.exec(b);return null==b?"":b[1].replace(/\+/g," ")};
wu=function(a,b,c){if(a.addEventListener)a.addEventListener(b,c,!1);else if(a.attachEvent)a.attachEvent("on"+b,c);else throw Error("V`"+b);};xu={token:1,id_token:1};yu=function(){var a=navigator.userAgent.toLowerCase();return-1!=a.indexOf("msie")&&8==parseInt(a.split("msie")[1],10)};_.zu=window.JSON;Au=function(a){this.qJ=a||[];this.Xb={}};
Au.prototype.addEventListener=function(a,b){if(!(0<=ru(this.qJ,a)))throw Error("X`"+a);if(!tu(b))throw Error("Y`"+a);this.Xb[a]||(this.Xb[a]=[]);0>ru(this.Xb[a],b)&&this.Xb[a].push(b)};Au.prototype.removeEventListener=function(a,b){if(!(0<=ru(this.qJ,a)))throw Error("X`"+a);tu(b)&&this.Xb[a]&&this.Xb[a].length&&(b=ru(this.Xb[a],b),0<=b&&this.Xb[a].splice(b,1))};
Au.prototype.dispatchEvent=function(a){var b=a.type;if(!(b&&0<=ru(this.qJ,b)))throw Error("Z`"+b);if(this.Xb[b]&&this.Xb[b].length)for(var c=0,d=this.Xb[b].length;c<d;c++)this.Xb[b][c](a)};
var Bu,Cu,Du,Hu,Iu,Zu,$u,bv,cv,ev,ov;Bu={};Cu={};Du={google:{authServerUrl:"https://accounts.google.com/o/oauth2/auth",idpIFrameUrl:"https://accounts.google.com/o/oauth2/iframe"}};_.Eu=function(a,b){if(a=Du[a])return a[b]};_.Fu=function(a,b){if(!a)throw Error("$");if(!b.authServerUrl)throw Error("aa");if(!b.idpIFrameUrl)throw Error("ba");Du[a]={authServerUrl:b.authServerUrl,idpIFrameUrl:b.idpIFrameUrl}};_.Gu=void 0;
Hu=function(a){a.style.position="absolute";a.style.width="1px";a.style.height="1px";a.style.left="-9999px";a.style.top="-9999px";a.style.right="-9999px";a.style.bottom="-9999px";a.style.display="none";a.setAttribute("aria-hidden","true")};Iu=function(){this.x6=window;this.Wv=this.km=this.Bt=this.Ih=null};
Iu.prototype.open=function(a,b,c,d){Ju(this);this.Bt?(this.km&&(this.km(),this.km=null),Ku(this)):this.Bt="authPopup"+Math.floor(1E6*Math.random()+1);a:{this.Ih=this.x6.open(a,this.Bt,b);try{this.Ih.focus();if(this.Ih.closed||"undefined"==typeof this.Ih.closed)throw Error("da");_.Gu=this.Ih}catch(e){d&&setTimeout(d,0);this.Ih=null;break a}c&&(this.km=c,Lu(this))}};
var Ju=function(a){try{if(null==a.Ih||a.Ih.closed)a.Ih=null,a.Bt=null,Ku(a),a.km&&(a.km(),a.km=null)}catch(b){a.Ih=null,a.Bt=null,Ku(a)}},Lu=function(a){a.Wv=window.setInterval(function(){Ju(a)},300)},Ku=function(a){a.Wv&&(window.clearInterval(a.Wv),a.Wv=null)};Cu=Cu||{};var Mu=function(a,b){this.Sb=a;this.zE=b;this.ld=null;this.Sm=!1};Mu.prototype.start=function(){if(!this.Sm&&!this.ld){var a=this;this.ld=window.setTimeout(function(){a.clear();a.Sm||(a.Sb(),a.Sm=!0)},Cu.wN(this.zE))}};
Mu.prototype.clear=function(){this.ld&&(window.clearTimeout(this.ld),this.ld=null)};var Nu=function(a,b){var c=Cu.Xq;this.T_=Cu.Rq;this.aT=c;this.Sb=a;this.zE=b;this.ld=null;this.Sm=!1;var d=this;this.bT=function(){document[d.T_]||(d.clear(),d.start())}};Nu.prototype.start=function(){if(!this.Sm&&!this.ld){wu(document,this.aT,this.bT);var a=this;this.ld=window.setTimeout(function(){a.clear();a.Sm||(a.Sb(),a.Sm=!0)},Cu.wN(this.zE))}};
Nu.prototype.clear=function(){var a=this.aT,b=this.bT,c=document;if(c.removeEventListener)c.removeEventListener(a,b,!1);else if(c.detachEvent)c.detachEvent("on"+a,b);else throw Error("W`"+a);this.ld&&(window.clearTimeout(this.ld),this.ld=null)};Cu.Rq=null;Cu.Xq=null;
Cu.p0=function(){var a=document;"undefined"!==typeof a.hidden?(Cu.Rq="hidden",Cu.Xq="visibilitychange"):"undefined"!==typeof a.msHidden?(Cu.Rq="msHidden",Cu.Xq="msvisibilitychange"):"undefined"!==typeof a.webkitHidden&&(Cu.Rq="webkitHidden",Cu.Xq="webkitvisibilitychange")};Cu.p0();Cu.ZW=function(a,b){return Cu.Rq&&Cu.Xq?new Nu(a,b):new Mu(a,b)};Cu.wN=function(a){return Math.max(1,a-(new Date).getTime())};
var Ou=function(a,b){document.cookie="G_ENABLED_IDPS="+a+";domain=."+b+";expires=Fri, 31 Dec 9999 12:00:00 GMT;path=/"},Pu=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;n=m=0}function b(q){for(var p=h,r=0;64>r;r+=4)p[r/4]=q[r]<<24|q[r+1]<<16|q[r+2]<<8|q[r+3];for(r=16;80>r;r++)q=p[r-3]^p[r-8]^p[r-14]^p[r-16],p[r]=(q<<1|q>>>31)&4294967295;q=e[0];var v=e[1],t=e[2],x=e[3],z=e[4];for(r=0;80>r;r++){if(40>r)if(20>r){var B=x^v&(t^x);var E=1518500249}else B=
v^t^x,E=1859775393;else 60>r?(B=v&t|x&(v|t),E=2400959708):(B=v^t^x,E=3395469782);B=((q<<5|q>>>27)&4294967295)+B+z+E+p[r]&4294967295;z=x;x=t;t=(v<<30|v>>>2)&4294967295;v=q;q=B}e[0]=e[0]+q&4294967295;e[1]=e[1]+v&4294967295;e[2]=e[2]+t&4294967295;e[3]=e[3]+x&4294967295;e[4]=e[4]+z&4294967295}function c(q,p){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var r=[],v=0,t=q.length;v<t;++v)r.push(q.charCodeAt(v));q=r}p||(p=q.length);r=0;if(0==m)for(;r+64<p;)b(q.slice(r,r+64)),r+=64,n+=64;for(;r<
p;)if(f[m++]=q[r++],n++,64==m)for(m=0,b(f);r+64<p;)b(q.slice(r,r+64)),r+=64,n+=64}function d(){var q=[],p=8*n;56>m?c(k,56-m):c(k,64-(m-56));for(var r=63;56<=r;r--)f[r]=p&255,p>>>=8;b(f);for(r=p=0;5>r;r++)for(var v=24;0<=v;v-=8)q[p++]=e[r]>>v&255;return q}for(var e=[],f=[],h=[],k=[128],l=1;64>l;++l)k[l]=0;var m,n;a();return{reset:a,update:c,digest:d,Zh:function(){for(var q=d(),p="",r=0;r<q.length;r++)p+="0123456789ABCDEF".charAt(Math.floor(q[r]/16))+"0123456789ABCDEF".charAt(q[r]%16);return p}}},Qu=
window.crypto,Ru=!1,Su=0,Tu=1,Uu=0,Vu="",Wu=function(a){a=a||window.event;var b=a.screenX+a.clientX<<16;b+=a.screenY+a.clientY;b*=(new Date).getTime()%1E6;Tu=Tu*b%Uu;if(3==++Su)if(a=window,b=Wu,a.removeEventListener)a.removeEventListener("mousemove",b,!1);else if(a.detachEvent)a.detachEvent("onmousemove",b);else throw Error("W`mousemove");},Xu=function(a){var b=Pu();b.update(a);return b.Zh()};Ru=!!Qu&&"function"==typeof Qu.getRandomValues;
Ru||(Uu=1E6*(screen.width*screen.width+screen.height),Vu=Xu(document.cookie+"|"+document.location+"|"+(new Date).getTime()+"|"+Math.random()),wu(window,"mousemove",Wu));Bu=Bu||{};Bu.ST="ssIFrame_";
_.Yu=function(a,b,c){c=void 0===c?!1:c;this.Cb=a;if(!this.Cb)throw Error("ea");a=_.Eu(a,"idpIFrameUrl");if(!a)throw Error("fa");this.oO=a;if(!b)throw Error("ga");this.Il=b;a=this.oO;b=document.createElement("a");b.setAttribute("href",a);a=[b.protocol,"//",b.hostname];"http:"==b.protocol&&""!=b.port&&"0"!=b.port&&"80"!=b.port?(a.push(":"),a.push(b.port)):"https:"==b.protocol&&""!=b.port&&"0"!=b.port&&"443"!=b.port&&(a.push(":"),a.push(b.port));this.jE=a.join("");this.W3=[location.protocol,"//",location.host].join("");
this.uu=this.iE=this.Vm=!1;this.kO=null;this.Ly=[];this.Vp=[];this.jj={};this.Wm=void 0;this.Fq=c};_.g=_.Yu.prototype;_.g.show=function(){var a=this.Wm;a.style.position="fixed";a.style.width="100%";a.style.height="100%";a.style.left="0px";a.style.top="0px";a.style.right="0px";a.style.bottom="0px";a.style.display="block";a.style.zIndex="9999999";a.style.overflow="hidden";a.setAttribute("aria-hidden","false")};_.g.Vb=function(){Hu(this.Wm)};
_.g.oy=function(a){if(this.Vm)a&&a(this);else{if(!this.Wm){var b=Bu.ST+this.Cb;var c=this.Cb;var d=location.hostname;var e,f=document.cookie.match("(^|;) ?G_ENABLED_IDPS=([^;]*)(;|$)");f&&2<f.length&&(e=f[2]);(f=e&&0<=ru(e.split("|"),c))?Ou(e,d):Ou(e?e+"|"+c:c,d);c=!f;var h=this.oO,k=this.W3;d=this.Il;e=this.Fq;e=void 0===e?!1:e;f=document.createElement("iframe");f.setAttribute("id",b);b="allow-scripts allow-same-origin";document.requestStorageAccess&&tu(document.requestStorageAccess)&&(b+=" allow-storage-access-by-user-activation");
f.setAttribute("sandbox",b);Hu(f);f.setAttribute("frame-border","0");b=[h,"#origin=",encodeURIComponent(k)];b.push("&rpcToken=");b.push(encodeURIComponent(d));c&&b.push("&clearCache=1");_.ou&&b.push("&debug=1");e&&b.push("&supportBlocked3PCookies=1");document.body.appendChild(f);f.setAttribute("src",b.join(""));this.Wm=f}a&&this.Ly.push(a)}};_.g.Yx=function(){return this.Vm&&this.uu};_.g.Gm=function(){return this.kO};Zu=function(a){for(var b=0;b<a.Ly.length;b++)a.Ly[b](a);a.Ly=[]};
_.av=function(a,b,c,d){if(a.Vm){if(a.Vm&&a.iE)throw a="Failed to communicate with IDP IFrame due to unitialization error: "+a.Gm(),pu(a),Error(a);$u(a,{method:b,params:c},d)}else a.Vp.push({Fn:{method:b,params:c},callback:d}),a.oy()};$u=function(a,b,c){if(c){for(var d=b.id;!d||a.jj[d];)d=(new Date).getMilliseconds()+"-"+(1E6*Math.random()+1);b.id=d;a.jj[d]=c}b.rpcToken=a.Il;a.Wm.contentWindow.postMessage(_.zu.stringify(b),a.jE)};bv=function(a){if(a&&0<=a.indexOf("::"))throw Error("ha");};
_.Yu.prototype.Gi=function(a,b,c,d,e,f,h,k,l){l=void 0===l?!1:l;bv(f);b=_.uu(b);_.av(this,"getTokenResponse",{clientId:a,loginHint:c,request:b,sessionSelector:d,forceRefresh:h,skipCache:k,id:f,userInteracted:l},e)};_.Yu.prototype.ny=function(a,b,c,d,e){b=_.uu(b);_.av(this,"listIdpSessions",{clientId:a,request:b,sessionSelector:c,forceRefresh:e},d)};cv=function(a,b,c){bv(b.identifier);_.av(a,"getSessionSelector",b,c)};
_.dv=function(a,b,c,d,e){bv(b.identifier);_.av(a,"setSessionSelector",{domain:b.domain,crossSubDomains:b.crossSubDomains,policy:b.policy,id:b.id,hint:d,disabled:!!c},e)};ev=function(a,b,c,d){b={clientId:b};c&&(b.pluginName=c);_.av(a,"monitorClient",b,d)};_.Yu.prototype.revoke=_.ca(9);_.Yu.prototype.qr=_.ca(11);Bu.Dx={};Bu.jD=function(a){return Bu.Dx[a]};
Bu.oy=function(a,b,c){c=void 0===c?!1:c;var d=Bu.jD(a);if(!d){d=String;if(Ru){var e=new window.Uint32Array(1);Qu.getRandomValues(e);e=Number("0."+e[0])}else e=Tu,e+=parseInt(Vu.substr(0,20),16),Vu=Xu(Vu),e/=Uu+Math.pow(16,20);d=new _.Yu(a,d(2147483647*e),c);Bu.Dx[a]=d}d.oy(b)};Bu.yY=function(a){for(var b in Bu.Dx){var c=Bu.jD(b);if(c&&c.Wm&&c.Wm.contentWindow==a.source&&c.jE==a.origin)return c}};Bu.eZ=function(a){for(var b in Bu.Dx){var c=Bu.jD(b);if(c&&c.jE==a)return c}};Bu=Bu||{};
var gv=function(){var a=[],b;for(b in fv)a.push(fv[b]);Au.call(this,a);this.Wk={};pu("EventBus is ready.")};su(gv,Au);var fv={lV:"sessionSelectorChanged",kB:"sessionStateChanged",VA:"authResult",ET:"displayIFrame"},iv=function(a,b){var c=hv;a&&b&&(c.Wk[a]||(c.Wk[a]=[]),0>ru(c.Wk[a],b)&&c.Wk[a].push(b))},jv=function(a){var b=hv;a&&(b.Wk[a]||(b.Wk[a]=[]))},kv=function(a,b,c){return b&&a.Wk[b]&&0<=ru(a.Wk[b],c)};_.g=gv.prototype;
_.g.Z2=function(a){var b,c=!!a.source&&(a.source===_.Gu||a.source.opener===window);if(b=c?Bu.eZ(a.origin):Bu.yY(a)){try{var d=_.zu.parse(a.data)}catch(e){pu("Bad event, an error happened when parsing data.");return}if(!c){if(!d||!d.rpcToken||d.rpcToken!=b.Il){pu("Bad event, no RPC token.");return}if(d.id&&!d.method){c=d;if(a=b.jj[c.id])delete b.jj[c.id],a(c.result,c.error);return}}"fireIdpEvent"!=d.method?pu("Bad IDP event, method unknown."):(a=d.params)&&a.type&&this.nO[a.type]?(d=this.nO[a.type],
c&&!d.XV?pu("Bad IDP event. Source window cannot be a popup."):d.Lq&&!d.Lq.call(this,b,a)?pu("Bad IDP event."):d.tf.call(this,b,a)):pu("Bad IDP event.")}else pu("Bad event, no corresponding Idp Stub.")};_.g.x4=function(a,b){return kv(this,a.Cb,b.clientId)};_.g.w4=function(a,b){b=b.clientId;return!b||kv(this,a.Cb,b)};_.g.hW=function(a,b){return kv(this,a.Cb,b.clientId)};_.g.f2=function(a,b){a.Vm=!0;a.uu=!!b.cookieDisabled;Zu(a);for(b=0;b<a.Vp.length;b++)$u(a,a.Vp[b].Fn,a.Vp[b].callback);a.Vp=[]};
_.g.e2=function(a,b){b={error:b.error};a.Vm=!0;a.iE=!0;a.kO=b;a.Vp=[];Zu(a)};_.g.oz=function(a,b){b.originIdp=a.Cb;this.dispatchEvent(b)};var hv=new gv,lv=hv,mv={};mv.idpReady={tf:lv.f2};mv.idpError={tf:lv.e2};mv.sessionStateChanged={tf:lv.oz,Lq:lv.x4};mv.sessionSelectorChanged={tf:lv.oz,Lq:lv.w4};mv.authResult={tf:lv.oz,Lq:lv.hW,XV:!0};mv.displayIFrame={tf:lv.oz};hv.nO=mv||{};wu(window,"message",function(a){hv.Z2.call(hv,a)});
_.nv=function(a,b){this.ze=!1;if(!a)throw Error("ia");var c=[],d;for(d in a)c.push(a[d]);Au.call(this,c);this.Cd=[location.protocol,"//",location.host].join("");this.fe=b.crossSubDomains?b.domain||this.Cd:this.Cd;if(!b)throw Error("ja");if(!b.idpId)throw Error("ka");if(!_.Eu(b.idpId,"authServerUrl")||!_.Eu(b.idpId,"idpIFrameUrl"))throw Error("la`"+b.idpId);this.Cb=b.idpId;this.Tb=void 0;this.gX=!!b.disableTokenRefresh;this.YX=!!b.forceTokenRefresh;this.x5=!!b.skipTokenCache;this.Fq=!!b.supportBlocked3PCookies;
b.pluginName&&(this.Q2=b.pluginName);this.setOptions(b);this.Br=[];this.uu=this.bl=this.RO=!1;this.Zk=void 0;this.MQ();this.yd=void 0;var e=this,f=function(){pu("Token Manager is ready.");if(e.Br.length)for(var h=0;h<e.Br.length;h++)e.Br[h].call(e);e.RO=!0;e.Br=[]};Bu.oy(this.Cb,function(h){e.yd=h;h.Vm&&h.iE?(e.bl=!0,e.Zk=h.Gm(),e.ot(e.Zk)):(e.uu=h.Yx(),e.Tb?ev(e.yd,e.Tb,e.Q2,function(k){var l=k,m=!1,n=!1;"object"==typeof k&&(l=k.validOrigin,m=k.blocked,n=k.suppressed);l?m?n?(qu("You have created a new client application that uses libraries for user authentication or authorization that will soon be deprecated. New clients must use the new libraries instead; existing clients must also migrate before these libraries are deprecated. See the [Migration Guide](https://developers.google.com/identity/gsi/web/guides/gis-migration) for more information."),
iv(e.Cb,e.Tb),f()):(e.Zk={error:"You have created a new client application that uses libraries for user authentication or authorization that will soon be deprecated. New clients must use the new libraries instead; existing clients must also migrate before these libraries are deprecated. See the [Migration Guide](https://developers.google.com/identity/gsi/web/guides/gis-migration) for more information."},e.bl=!0,e.ot(e.Zk)):(qu("Your client application uses libraries for user authentication or authorization that will soon be deprecated. See the [Migration Guide](https://developers.google.com/identity/gsi/web/guides/gis-migration) for more information."),
iv(e.Cb,e.Tb),f()):(e.Zk={error:"Not a valid origin for the client: "+e.Cd+" has not been registered for client ID "+e.Tb+". Please go to https://console.developers.google.com/ and register this origin for your project's client ID."},e.bl=!0,e.ot(e.Zk))}):(jv(e.Cb),f()))},this.Fq)};su(_.nv,Au);_.g=_.nv.prototype;_.g.setOptions=function(){};_.g.MQ=function(){};_.g.ot=function(){};_.g.Yx=function(){return this.uu};_.g.Gm=function(){return this.Zk};ov=function(a,b,c){return function(){b.apply(a,c)}};
_.pv=function(a,b,c){if(a.RO)b.apply(a,c);else{if(a.bl)throw a.Zk;a.Br.push(ov(a,b,c))}};_.nv.prototype.aL=_.ca(12);_.nv.prototype.qr=_.ca(10);
_.rv=function(a,b){_.nv.call(this,a,b);this.wQ=new Iu;this.Mj=this.wn=null;qv(this)};su(_.rv,_.nv);_.rv.prototype.setOptions=function(){};
var sv=function(a,b){a.we={crossSubDomains:!!b.crossSubDomains,id:b.sessionSelectorId,domain:a.fe};b.crossSubDomains&&(a.we.policy=b.policy)},tv=function(a,b){if(!b.authParameters)throw Error("ma");if(!b.authParameters.scope)throw Error("na");if(!b.authParameters.response_type)throw Error("oa");a.gr=b.authParameters;a.gr.redirect_uri||(a.gr.redirect_uri=[location.protocol,"//",location.host,location.pathname].join(""));a.Mi=_.uu(b.rpcAuthParameters||a.gr);if(!a.Mi.scope)throw Error("pa");if(!a.Mi.response_type)throw Error("qa");
a:{var c=a.Mi.response_type.split(" ");for(var d=0,e=c.length;d<e;d++)if(c[d]&&!xu[c[d]]){c=!0;break a}c=!1}if(c)throw Error("ra");b.enableSerialConsent&&(a.Mi.enable_serial_consent=!0);b.authResultIdentifier&&(a.iW=b.authResultIdentifier);b.spec_compliant&&(a.Mi.spec_compliant=b.spec_compliant)};
_.rv.prototype.MQ=function(){var a=this;hv.addEventListener(fv.lV,function(b){a.ze&&a.we&&b.originIdp==a.Cb&&!b.crossSubDomains==!a.we.crossSubDomains&&b.domain==a.we.domain&&b.id==a.we.id&&a.fQ(b)});hv.addEventListener(fv.kB,function(b){a.ze&&b.originIdp==a.Cb&&b.clientId==a.Tb&&a.gQ(b)});hv.addEventListener(fv.VA,function(b){_.Gu=void 0;a.ze&&b.originIdp==a.Cb&&b.clientId==a.Tb&&b.id==a.Jj&&(a.wn&&(window.clearTimeout(a.wn),a.wn=null),a.Jj=void 0,a.kt(b))});hv.addEventListener(fv.ET,function(b){a.ze&&
b.originIdp==a.Cb&&(b.Vb?a.yd.Vb():a.yd.show())})};_.rv.prototype.fQ=function(){};_.rv.prototype.gQ=function(){};_.rv.prototype.kt=function(){};var vv=function(a,b){uv(a);a.gX||(a.Mj=Cu.ZW(function(){a.Gi(!0)},b-3E5),navigator.onLine&&a.Mj.start())},uv=function(a){a.Mj&&(a.Mj.clear(),a.Mj=null)},qv=function(a){var b=window;yu()&&(b=document.body);wu(b,"online",function(){a.Mj&&a.Mj.start()});wu(b,"offline",function(){a.Mj&&a.Mj.clear()})};_.rv.prototype.Gi=function(){};_.rv.prototype.MP=_.ca(13);
_.rv.prototype.Y0=function(a,b){if(!this.Tb)throw Error("va");this.yd.ny(this.Tb,this.Mi,this.we,a,b)};_.rv.prototype.ny=function(a,b){_.pv(this,this.Y0,[a,b])};_.xv=function(a){this.re=void 0;this.hh=!1;this.jq=void 0;_.rv.call(this,_.wv,a)};su(_.xv,_.rv);_.wv={TJ:"noSessionBound",Wq:"userLoggedOut",lT:"activeSessionChanged",kB:"sessionStateChanged",gK:"tokenReady",FV:"tokenFailed",VA:"authResult",ERROR:"error"};
_.xv.prototype.setOptions=function(a){if(!a.clientId)throw Error("wa");this.Tb=a.clientId;this.Ca=a.id;sv(this,a);tv(this,a)};_.xv.prototype.ot=function(a){this.dispatchEvent({type:_.wv.ERROR,error:"idpiframe_initialization_failed",details:a.error,idpId:this.Cb})};var yv=function(a){uv(a);a.jq=void 0;a.jy=void 0};_.g=_.xv.prototype;
_.g.fQ=function(a){var b=a.newValue||{};if(this.re!=b.hint||this.hh!=!!b.disabled){a=this.re;var c=!this.re||this.hh;yv(this);this.re=b.hint;this.hh=!!b.disabled;(b=!this.re||this.hh)&&!c?this.dispatchEvent({type:_.wv.Wq,idpId:this.Cb}):b||(a!=this.re&&this.dispatchEvent({type:_.wv.lT,idpId:this.Cb}),this.re&&this.Gi())}};
_.g.gQ=function(a){this.hh||(this.re?a.user||this.jq?a.user==this.re&&(this.jq?a.sessionState?this.jq=a.sessionState:(yv(this),this.dispatchEvent({type:_.wv.Wq,idpId:this.Cb})):a.sessionState&&(this.jq=a.sessionState,this.Gi())):this.Gi():this.dispatchEvent({type:_.wv.kB,idpId:this.Cb}))};_.g.kt=function(a){this.dispatchEvent({type:_.wv.VA,authResult:a.authResult})};_.g.Yr=_.ca(15);_.g.Sr=function(a){_.pv(this,this.ZC,[a])};_.g.ZC=function(a){cv(this.yd,this.we,a)};
_.g.sA=function(a,b,c,d){d=void 0===d?!1:d;if(!a)throw Error("xa");yv(this);this.re=a;this.hh=!1;b&&_.dv(this.yd,this.we,!1,this.re);this.ze=!0;this.Gi(c,!0,d)};_.g.start=function(){_.pv(this,this.mu,[])};
_.g.mu=function(){var a=this.Tb==vu("client_id")?vu("login_hint"):void 0;var b=this.Tb==vu("client_id")?vu("state"):void 0;this.sF=b;if(a)window.history.replaceState?window.history.replaceState(null,document.title,window.location.href.split("#")[0]):window.location.href.hash="",this.sA(a,!0,!0,!0);else{var c=this;this.Sr(function(d){c.ze=!0;d&&d.hint?(yv(c),c.re=d.hint,c.hh=!!d.disabled,c.hh?c.dispatchEvent({type:_.wv.Wq,idpId:c.Cb}):c.sA(d.hint)):(yv(c),c.re=void 0,c.hh=!(!d||!d.disabled),c.dispatchEvent({type:_.wv.TJ,
autoOpenAuthUrl:!c.hh,idpId:c.Cb}))})}};_.g.VX=function(){var a=this;this.Sr(function(b){b&&b.hint?b.disabled?a.dispatchEvent({type:_.wv.Wq,idpId:a.Cb}):a.Gi(!0):a.dispatchEvent({type:_.wv.TJ,idpId:a.Cb})})};_.g.GM=function(){_.pv(this,this.VX,[])};
_.g.Gi=function(a,b,c){var d=this;this.yd.Gi(this.Tb,this.Mi,this.re,this.we,function(e,f){(f=f||e.error)?"user_logged_out"==f?(yv(d),d.dispatchEvent({type:_.wv.Wq,idpId:d.Cb})):(d.jy=null,d.dispatchEvent({type:_.wv.FV,idpId:d.Cb,error:f})):(d.jy=e,d.jq=e.session_state,vv(d,e.expires_at),e.idpId=d.Cb,b&&d.sF&&(e.state=d.sF,d.sF=void 0),d.dispatchEvent({type:_.wv.gK,idpId:d.Cb,response:e}))},this.Ca,a,!1,void 0===c?!1:c)};_.g.revoke=_.ca(8);_.g.cR=_.ca(16);
_.zv=function(a){this.Wl=null;_.rv.call(this,{},a);this.ze=!0};su(_.zv,_.rv);_.g=_.zv.prototype;_.g.setOptions=function(a){if(!a.clientId)throw Error("wa");this.Tb=a.clientId;this.Ca=a.id;sv(this,a);tv(this,a)};_.g.ot=function(a){this.Wl&&(this.Wl({authResult:{error:"idpiframe_initialization_failed",details:a.error}}),this.Wl=null)};_.g.kt=function(a){if(this.Wl){var b=this.Wl;this.Wl=null;b(a)}};_.g.Yr=_.ca(14);_.g.Sr=function(a){this.bl?a(this.Gm()):_.pv(this,this.ZC,[a])};
_.g.ZC=function(a){cv(this.yd,this.we,a)};_.Av=function(a,b,c){a.bl?c(a.Gm()):_.pv(a,a.z2,[b,c])};_.zv.prototype.z2=function(a,b){this.yd.Gi(this.Tb,this.Mi,a,this.we,function(c,d){d?b({error:d}):b(c)},this.Ca,this.YX,this.x5)};_.zv.prototype.oP=_.ca(17);

var Bv=function(a){return Array.prototype.concat.apply([],arguments)},Cv=function(){try{var a=Array.from((window.crypto||window.msCrypto).getRandomValues(new Uint8Array(64)))}catch(c){a=[];for(var b=0;64>b;b++)a[b]=Math.floor(256*Math.random())}return _.ah(a,3).substring(0,64)},Dv=function(){var a=navigator.userAgent.toLowerCase();return 0>a.indexOf("edge/")&&(-1<a.indexOf("chrome/")||-1<a.indexOf("crios/"))},Ev=function(){var a=navigator.userAgent.toLowerCase();return-1<a.indexOf("firefox/")&&0>
a.indexOf("chrome/")&&0>a.indexOf("crios/")&&0>a.indexOf("safari/")},Fv=function(a,b,c){if(!a.ze)throw Error("sa");b?_.dv(a.yd,a.we,!0,void 0,c):_.dv(a.yd,a.we,!0,a.re,c)},Gv=function(a){if(!a.ze)throw Error("sa");return a.jy},Hv,Iv,Jv,Kv,Lv,Mv,Nv,Ov,Pv,Rv;_.zv.prototype.oP=_.bb(17,function(a,b){var c=this.yd,d=this.Tb,e=this.we,f=_.uu(this.Mi);delete f.response_type;_.av(c,"getOnlineCode",{clientId:d,loginHint:a,request:f,sessionSelector:e},b)});
_.xv.prototype.cR=_.bb(16,function(a){Gv(this)&&Gv(this).access_token&&(this.yd.revoke(this.Tb,Gv(this).access_token,a),Fv(this,!0))});
_.xv.prototype.Yr=_.bb(15,function(){var a=this;return function(b){if(b&&b.authResult&&b.authResult.login_hint)if(a.Yx()&&a.Fq&&(Dv()||Ev())){b=b.authResult;var c=Date.now(),d=b.expires_in;b={access_token:b.access_token,token_type:b.token_type,login_hint:b.login_hint,expires_in:d,id_token:b.id_token,scope:b.scope,first_issued_at:c,expires_at:c+1E3*d,idpId:a.Cb};a.jy=b;a.dispatchEvent({type:_.wv.gK,idpId:a.Cb,response:b})}else a.sA(b.authResult.login_hint,a.hh||b.authResult.login_hint!=a.re,!0,!0)}});
_.zv.prototype.Yr=_.bb(14,function(a){var b=this;return function(c){c&&c.authResult&&c.authResult.login_hint?b.Sr(function(d){_.dv(b.yd,b.we,d&&d.disabled,c.authResult.login_hint,function(){_.Av(b,c.authResult.login_hint,a)})}):a(c&&c.authResult&&c.authResult.error?c.authResult:c&&c.authResult&&!c.authResult.login_hint?{error:"wrong_response_type"}:{error:"unknown_error"})}});_.rv.prototype.MP=_.bb(13,function(){this.Tb&&_.av(this.yd,"startPolling",{clientId:this.Tb,origin:this.Cd,id:this.Jj})});
_.Yu.prototype.revoke=_.bb(9,function(a,b,c){_.av(this,"revoke",{clientId:a,token:b},c)});_.xv.prototype.revoke=_.bb(8,function(a){_.pv(this,this.cR,[a])});Hv=function(){var a=navigator.userAgent,b;if(b=!!a&&-1!=a.indexOf("CriOS"))b=-1,(a=a.match(/CriOS\/(\d+)/))&&a[1]&&(b=parseInt(a[1],10)||-1),b=48>b;return b};
Iv=function(){var a=navigator.userAgent.toLowerCase();if(!(-1<a.indexOf("safari/")&&0>a.indexOf("chrome/")&&0>a.indexOf("crios/")&&0>a.indexOf("android")))return!1;var b=RegExp("version/(\\d+)\\.(\\d+)[\\.0-9]*").exec(navigator.userAgent.toLowerCase());if(!b||3>b.length)return!1;a=parseInt(b[1],10);b=parseInt(b[2],10);return 12<a||12==a&&1<=b};
Jv=function(a,b,c,d,e,f,h){var k=_.Eu(a,"authServerUrl");if(!k)throw Error("ca`"+a);a=_.uu(d);a.response_type=h||"permission";a.client_id=c;a.ss_domain=b;if(f&&f.extraQueryParams)for(var l in f.extraQueryParams)a[l]=f.extraQueryParams[l];(b=e)&&!(b=Iv())&&(b=navigator.userAgent.toLowerCase(),-1<b.indexOf("ipad;")||-1<b.indexOf("iphone;")?(b=RegExp("os (\\d+)_\\d+(_\\d+)? like mac os x").exec(navigator.userAgent.toLowerCase()),b=!b||2>b.length?!1:14<=parseInt(b[1],10)):b=!1);b&&!a.prompt&&(a.prompt=
"select_account");k+=0>k.indexOf("?")?"?":"&";b=[];for(var m in a)if(a.hasOwnProperty(m)){c=a[m];if(null===c||void 0===c)c="";b.push(encodeURIComponent(m)+"="+encodeURIComponent(c))}return k+b.join("&")};
Kv=function(a,b,c,d){if(!a.Tb)throw Error("ta");a.Jj=c||a.iW||"auth"+Math.floor(1E6*Math.random()+1);b=b||{};b.extraQueryParams=b.extraQueryParams||{};if(!b.extraQueryParams.redirect_uri){var e=a.Cd.split("//");c=b.extraQueryParams;var f=e[0],h=f.indexOf(":");0<h&&(f=f.substring(0,h));e=["storagerelay://",f,"/",e[1],"?"];e.push("id="+a.Jj);c.redirect_uri=e.join("")}return Jv(a.Cb,a.fe,a.Tb,a.gr,!0,b,d)};Lv=function(a,b,c){if(!a.Tb)throw Error("ta");return Jv(a.Cb,a.fe,a.Tb,a.gr,!1,b,c)};
Mv=function(a){if(!a)return"permission token";var b=a.split(" ");if(-1<b.indexOf("token")||-1<b.indexOf("code")||-1<b.indexOf("gsession"))return a;b.push("token");return b.join(" ")};Nv=function(a,b){a.wn&&window.clearTimeout(a.wn);a.wn=window.setTimeout(function(){a.Jj==b&&(_.Gu=void 0,a.wn=null,a.Jj=void 0,a.kt({authResult:{error:"popup_closed_by_user"}}))},1E3)};
Ov=function(a,b,c){if(!a.Tb)throw Error("ua");c=c||{};a.Yx()&&a.Fq&&(Dv()||Ev())&&(c.responseType=Mv(c.responseType));c=Kv(a,c.sessionMeta,c.oneTimeId,c.responseType);(Object.hasOwnProperty.call(window,"ActiveXObject")&&!window.ActiveXObject||Hv())&&_.pv(a,a.MP,[]);var d=a.Jj;a.wQ.open(c,b,function(){a.Jj==d&&Nv(a,d)},function(){a.Jj=void 0;a.kt({authResult:{error:"popup_blocked_by_browser"}})})};Pv=function(a,b,c){a.bl?c(a.Gm()):_.pv(a,a.oP,[b,c])};
_.Qv=function(a){for(var b=[],c=0,d=0;c<a.length;){var e=a[c++];if(128>e)b[d++]=String.fromCharCode(e);else if(191<e&&224>e){var f=a[c++];b[d++]=String.fromCharCode((e&31)<<6|f&63)}else if(239<e&&365>e){f=a[c++];var h=a[c++],k=a[c++];e=((e&7)<<18|(f&63)<<12|(h&63)<<6|k&63)-65536;b[d++]=String.fromCharCode(55296+(e>>10));b[d++]=String.fromCharCode(56320+(e&1023))}else f=a[c++],h=a[c++],b[d++]=String.fromCharCode((e&15)<<12|(f&63)<<6|h&63)}return b.join("")};
Rv=function(a){var b=[];_.bh(a,function(c){b.push(c)});return b};_.Sv=function(a,b){_.Mh[b||"token"]=a};_.Tv=function(a){delete _.Mh[a||"token"]};
_.zu={parse:function(a){a=_.of("["+String(a)+"]");if(!1===a||1!==a.length)throw new SyntaxError("JSON parsing failed.");return a[0]},stringify:function(a){return _.pf(a)}};
_.zv.prototype.OC=function(a,b){_.pv(this,this.KX,[a,b])};_.zv.prototype.KX=function(a,b){this.yd.OC(this.Tb,a,this.Mi,this.we,b)};
_.Yu.prototype.OC=function(a,b,c,d,e){c=_.uu(c);_.av(this,"gsi:fetchLoginHint",{clientId:a,loginHint:b,request:c,sessionSelector:d},e)};
var Uv,Vv=["client_id","cookie_policy","scope"],Wv="client_id cookie_policy fetch_basic_profile hosted_domain scope openid_realm disable_token_refresh login_hint ux_mode redirect_uri state prompt oidc_spec_compliant nonce enable_serial_consent include_granted_scopes response_type session_selection plugin_name gsiwebsdk".split(" "),Xv=["authuser","after_redirect","access_type","hl"],Yv=["login_hint","prompt"],Zv={clientid:"client_id",cookiepolicy:"cookie_policy"},$v=["approval_prompt","authuser","login_hint",
"prompt","hd"],aw=["login_hint","g-oauth-window","status"],bw=Math.min(_.Ae("oauth-flow/authWindowWidth",599),screen.width-20),cw=Math.min(_.Ae("oauth-flow/authWindowHeight",600),screen.height-30);
var dw=function(a){_.fb.call(this,a)};_.J(dw,_.fb);dw.prototype.name="gapi.auth2.ExternallyVisibleError";
var ew=function(){};ew.prototype.select=function(a,b){if(a.sessions&&1==a.sessions.length&&(a=a.sessions[0],a.login_hint)){b(a);return}b()};var fw=function(){};fw.prototype.select=function(a,b){if(a.sessions&&a.sessions.length)for(var c=0;c<a.sessions.length;c++){var d=a.sessions[c];if(d.login_hint){b(d);return}}b()};var gw=function(a){this.jW=a};
gw.prototype.select=function(a,b){if(a.sessions)for(var c=0;c<a.sessions.length;c++){var d=a.sessions[c];if(d.session_state&&d.session_state.extraQueryParams&&d.session_state.extraQueryParams.authuser==this.jW){d.login_hint?b(d):b();return}}b()};
var hw=function(a){this.Zd=a;this.Nz=[]};hw.prototype.select=function(a){var b=0,c=this,d=function(e){if(e)a(e);else{var f=c.Nz[b];f?(b++,c.Zd.ny(function(h){h?f.select(h,d):d()})):a()}};d()};var iw=function(a){a=new hw(a);a.Nz.push(new ew);return a},jw=function(a){a=new hw(a);a.Nz.push(new fw);return a},kw=function(a,b){void 0===b||null===b?b=iw(a):(a=new hw(a),a.Nz.push(new gw(b)),b=a);return b};
var lw=function(a){this.tf=a;this.Zc=!0};lw.prototype.remove=function(){this.Zc=!1};lw.prototype.trigger=function(){};var mw=function(a){this.remove=function(){a.remove()};this.trigger=function(){a.trigger()}},nw=function(){this.Xb=[]};nw.prototype.add=function(a){this.Xb.push(a)};nw.prototype.notify=function(a){for(var b=this.Xb,c=[],d=0;d<b.length;d++){var e=b[d];e.Zc&&(c.push(e),_.pj(ow(e.tf,a)))}this.Xb=c};var ow=function(a,b){return function(){a(b)}};
var qw=function(a){this.yb=null;this.r6=new pw(this);this.Xb=new nw;void 0!=a&&this.set(a)};qw.prototype.set=function(a){a!=this.yb&&(this.yb=a,this.r6.value=a,this.Xb.notify(this.yb))};qw.prototype.get=function(){return this.yb};qw.prototype.V=function(a){a=new rw(this,a);this.Xb.add(a);return a};qw.prototype.get=qw.prototype.get;var rw=function(a,b){lw.call(this,b);this.b1=a};_.J(rw,lw);rw.prototype.trigger=function(){var a=this.tf;a(this.b1.get())};var pw=function(a){this.value=null;this.V=function(b){return new mw(a.V(b))}};
var sw={Q8:"fetch_basic_profile",S9:"login_hint",raa:"prompt",yaa:"redirect_uri",Paa:"scope",ica:"ux_mode",Eba:"state"},tw=function(a){this.Ia={};if(a&&!_.pi(a))if("function"==typeof a.get)this.Ia=a.get();else for(var b in sw){var c=sw[b];c in a&&(this.Ia[c]=a[c])}};tw.prototype.get=function(){return this.Ia};tw.prototype.SR=function(a){this.Ia.scope=a;return this};tw.prototype.ss=function(){return this.Ia.scope};
var uw=function(a,b){var c=a.Ia.scope;b=Bv(b.split(" "),c?c.split(" "):[]);_.ej(b);a.Ia.scope=b.join(" ")};_.g=tw.prototype;_.g.a5=function(a){this.Ia.prompt=a;return this};_.g.gZ=function(){return this.Ia.prompt};_.g.A4=function(){_.tf.warn("Property app_package_name no longer supported and was not set");return this};_.g.fY=function(){_.tf.warn("Property app_package_name no longer supported")};_.g.Xe=function(a){this.Ia.state=a};_.g.getState=function(){return this.Ia.state};
var vw=function(){return["toolbar=no","location="+(window.opera?"no":"yes"),"directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no","width="+bw,"height="+cw,"top="+(screen.height-cw)/2,"left="+(screen.width-bw)/2].join()},ww=function(a){a=a&&a.id_token;if(!a||!a.split(".")[1])return null;a=(a.split(".")[1]+"...").replace(/^((....)+).?.?.?$/,"$1");return JSON.parse(_.Qv(Rv(a)))},xw=function(){Uv=_.Ae("auth2/idpValue","google");var a=_.Ae("oauth-flow/authUrl","https://accounts.google.com/o/oauth2/auth"),
b=_.Ae("oauth-flow/idpIframeUrl","https://accounts.google.com/o/oauth2/iframe");_.Fu(Uv,{authServerUrl:a,idpIFrameUrl:b})},yw=function(a,b,c){for(var d=0;d<b.length;d++){var e=b[d];if(d===b.length-1){a[e]=c;break}_.Cb(a[e])||(a[e]={});a=a[e]}},zw=function(){var a=window.location.origin;a||(a=window.location.protocol+"//"+window.location.host);return a},Bw=function(){var a=Aw();a.storage_path&&window.sessionStorage.setItem(a.storage_path,zw()+window.location.pathname);if("enforced"==a.status.toLowerCase())throw new dw("gapi.auth2 is disabled on this website, but it is still used on page "+
window.location.href);"informational"==a.status.toLowerCase()&&_.tf.warn("gapi.auth2 is disabled on this website, but it is still used on page "+window.location.href)};
var Cw=function(a){var b=a?(b=ww(a))?b.sub:null:null;this.Ca=b;this.Cc=a?_.gj(a):null};_.g=Cw.prototype;_.g.getId=function(){return this.Ca};_.g.gD=function(){var a=ww(this.Cc);return a?a.hd:null};_.g.Yf=function(){return!!this.Cc};_.g.Dk=function(a){if(a)return this.Cc;a=Dw;var b=_.gj(this.Cc);!a.Nx||a.dE||a.I_||(delete b.access_token,delete b.scope);return b};_.g.dG=function(){return Dw.dG()};_.g.Wj=function(){this.Cc=null};_.g.IY=function(){return this.Cc?this.Cc.scope:null};
_.g.update=function(a){this.Ca=a.Ca;this.Cc=a.Cc;this.Cc.id_token?this.tv=new Ew(this.Cc):this.tv&&(this.tv=null)};var Fw=function(a){return a.Cc&&"object"==typeof a.Cc.session_state?_.gj(a.Cc.session_state.extraQueryParams||{}):{}};_.g=Cw.prototype;_.g.Pr=function(){var a=Fw(this);return a&&void 0!==a.authuser&&null!==a.authuser?a.authuser:null};
_.g.Vj=function(a){var b=Dw,c=new tw(a);b.dE=c.ss()?!0:!1;Dw.Nx&&uw(c,"openid profile email");return new _.Aj(function(d,e){var f=Fw(this);f.login_hint=this.getId();f.scope=c.ss();Gw(b,d,e,f)},this)};_.g.us=function(a){return new _.Aj(function(b,c){var d=a||{},e=Dw;d.login_hint=this.getId();e.us(d).then(b,c)},this)};_.g.xZ=function(a){return this.Vj(a)};_.g.disconnect=function(){return Dw.disconnect()};_.g.iY=function(){return this.tv};
_.g.zx=function(a){if(!this.Yf())return!1;var b=this.Cc&&this.Cc.scope?this.Cc.scope.split(" "):"";return _.Qb(a?a.split(" "):[],function(c){return _.hb(b,c)})};var Ew=function(a){a=ww(a);this.dY=a.sub;this.Af=a.name;this.uZ=a.given_name;this.IX=a.family_name;this.tO=a.picture;this.fw=a.email};_.g=Ew.prototype;_.g.getId=function(){return this.dY};_.g.Bj=function(){return this.Af};_.g.GY=function(){return this.uZ};_.g.BY=function(){return this.IX};_.g.OY=function(){return this.tO};_.g.Zr=function(){return this.fw};
var Aw,Hw;Aw=function(){var a=_.Bh.get("G_AUTH2_MIGRATION");if(!a)return{status:"none"};a=/(enforced|informational)(?::(.*))?/i.exec(a);return a?{status:a[1].toLowerCase(),storage_path:a[2]}:(_.tf.warn("The G_AUTH2_MIGRATION cookie value is not valid."),{status:"none"})};Hw=function(a){var b=location;if(a&&"none"!=a)return"single_host_origin"==a?b.protocol+"//"+b.host:a};
_.Iw=function(a){if(!a)throw new dw("No cookiePolicy");var b=window.location.hostname;"single_host_origin"==a&&(a=window.location.protocol+"//"+b);if("none"==a)return null;var c=/^(https?:\/\/)([0-9.\-_A-Za-z]+)(?::(\d+))?$/.exec(a);if(!c)throw new dw("Invalid cookiePolicy");a=c[2];c=c[1];var d={};d.dotValue=a.split(".").length;d.isSecure=-1!=c.indexOf("https");d.domain=a;if(!_.ui(b,"."+a)&&!_.ui(b,a))throw new dw("Invalid cookiePolicy domain");return d};
var Kw=function(a){var b=a||{},c=Jw();_.Nb(Wv,function(d){"undefined"===typeof b[d]&&"undefined"!==typeof c[d]&&(b[d]=c[d])});return b},Jw=function(){for(var a={},b=document.getElementsByTagName("meta"),c=0;c<b.length;++c)if(b[c].name){var d=b[c].name;if(0==d.indexOf("google-signin-")){d=d.substring(14);var e=b[c].content;Zv[d]&&(d=Zv[d]);_.hb(Wv,d)&&e&&(a[d]="true"==e?!0:"false"==e?!1:e)}}return a},Lw=function(a){return String(a).replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},Mw=function(a){_.Nb(Wv,
function(b){var c=Lw(b);"undefined"!==typeof a[c]&&"undefined"===typeof a[b]&&(a[b]=a[c],delete a[c])})},Nw=function(a){a=Kw(a);Mw(a);a.cookie_policy||(a.cookie_policy="single_host_origin");var b=Wv+Xv,c;for(c in a)0>b.indexOf(c)&&delete a[c];return a},Ow=function(a,b){if(!a)throw new dw("Empty initial options.");for(var c=0;c<Vv.length;++c)if(!(b&&"scope"==Vv[c]||a[Vv[c]]))throw new dw("Missing required parameter '"+Vv[c]+"'");_.Iw(a.cookie_policy)},Qw=function(a){var b={authParameters:{redirect_uri:void 0,
response_type:"token id_token",scope:a.scope,"openid.realm":a.openid_realm,include_granted_scopes:!0},clientId:a.client_id,crossSubDomains:!0,domain:Hw(a.cookie_policy),disableTokenRefresh:!!a.disable_token_refresh,idpId:Uv};Pw(b,a);_.Nb(Yv,function(d){a[d]&&(b.authParameters[d]=a[d])});"boolean"==typeof a.enable_serial_consent&&(b.enableSerialConsent=a.enable_serial_consent);if(a.plugin_name)b.pluginName=a.plugin_name;else{var c=_.Ae("auth2/pluginName");c&&(b.pluginName=c)}return b},Pw=function(a,
b){var c=b.oidc_spec_compliant;b=b.nonce;c&&(a.spec_compliant=c,b=b||Cv());b&&(a.authParameters.nonce=b,a.forceTokenRefresh=!0,a.skipTokenCache=!0)},Vw=function(a){var b=a.client_id,c=a.cookie_policy,d=a.scope,e=a.openid_realm,f=a.hosted_domain,h=a.oidc_spec_compliant,k=a.nonce,l=Rw(a),m={authParameters:{response_type:l,scope:d,"openid.realm":e},rpcAuthParameters:{response_type:l,scope:d,"openid.realm":e},clientId:b,crossSubDomains:!0,domain:Hw(c),idpId:Uv};f&&(m.authParameters.hd=f,m.rpcAuthParameters.hd=
f);h&&(m.rpcAuthParameters.spec_compliant=h,k=k||Cv());k&&(m.authParameters.nonce=k,m.rpcAuthParameters.nonce=k,m.forceTokenRefresh=!0,m.skipTokenCache=!0);_.Nb(Yv.concat(Xv),function(n){a[n]&&(m.authParameters[n]=a[n])});void 0!==a.authuser&&null!==a.authuser&&(m.authParameters.authuser=a.authuser);"boolean"==typeof a.include_granted_scopes&&(b=new Sw(a.response_type||"token"),Tw(b)&&(m.authParameters.include_granted_scopes=a.include_granted_scopes),Uw(b)&&(m.rpcAuthParameters.include_granted_scopes=
a.include_granted_scopes,!1===a.include_granted_scopes&&(m.forceTokenRefresh=!0,m.skipTokenCache=!0)));"boolean"==typeof a.enable_serial_consent&&(m.enableSerialConsent=a.enable_serial_consent);a.plugin_name?m.pluginName=a.plugin_name:(b=_.Ae("auth2/pluginName"))&&(m.pluginName=b);return m},Rw=function(a){a=new Sw(a.response_type||"token");var b=[];Uw(a)&&b.push("token");Ww(a,"id_token")&&b.push("id_token");0==b.length&&(b=["token","id_token"]);return b.join(" ")},Xw=["permission","id_token"],Yw=
/(^|[^_])token/,Sw=function(a){this.Zp=[];this.vE(a)};Sw.prototype.vE=function(a){a?((0<=a.indexOf("permission")||a.match(Yw))&&this.Zp.push("permission"),0<=a.indexOf("id_token")&&this.Zp.push("id_token"),0<=a.indexOf("code")&&this.Zp.push("code")):this.Zp=Xw};var Tw=function(a){return Ww(a,"code")},Uw=function(a){return Ww(a,"permission")};Sw.prototype.toString=function(){return this.Zp.join(" ")};var Ww=function(a,b){var c=!1;_.Nb(a.Zp,function(d){d==b&&(c=!0)});return c};
var $w=function(a,b,c){this.qn=b;this.S1=a;for(var d in a)a.hasOwnProperty(d)&&Zw(this,d);if(c&&c.length)for(a=0;a<c.length;a++)this[c[a]]=this.qn[c[a]]},Zw=function(a,b){a[b]=function(){return a.S1[b].apply(a.qn,arguments)}};$w.prototype.then=function(a,b,c){var d=this;return _.Ej().then(function(){return ax(d.qn,a,b,c)})};_.jj($w);
var Dw,bx,dx;Dw=null;_.cx=function(){return Dw?bx():null};bx=function(){return new $w(dx.prototype,Dw,["currentUser","isSignedIn"])};dx=function(a){delete a.include_granted_scopes;this.Ia=Qw(a);this.XW=a.cookie_policy;this.I_=!!a.scope;(this.Nx=!1!==a.fetch_basic_profile)&&(this.Ia.authParameters.scope=ex(this,"openid profile email"));_.yh.GSI_SUPPORT_BLOCKED_3P_COOKIES&&(this.Fq=this.Ia.supportBlocked3PCookies=!0);this.Fs=a.hosted_domain;this.o6=a.ux_mode||"popup";this.g3=a.redirect_uri||null;this.sE()};
dx.prototype.sE=function(){this.currentUser=new qw(new Cw(null));this.isSignedIn=new qw(!1);this.Zd=new _.xv(this.Ia);this.Tx=this.xp=null;this.N0=new _.Aj(function(a,b){this.xp=a;this.Tx=b},this);this.Ky={};this.Ps=!0;fx(this);this.Zd.start()};
var fx=function(a){a.Zd.addEventListener("error",function(b){a.Ps&&a.xp&&(a.Ps=!1,a.Tx({error:b.error,details:b.details}),a.xp=null,a.Tx=null)});a.Zd.addEventListener("authResult",function(b){b&&b.authResult&&a.jf(b);a.Zd.Yr()(b)});a.Zd.addEventListener("tokenReady",function(b){var c=new Cw(b.response);if(a.Fs&&a.Fs!=c.gD())a.jf({type:"tokenFailed",reason:"Account domain does not match hosted_domain specified by gapi.auth2.init.",accountDomain:c.gD(),expectedDomain:a.Fs});else{a.currentUser.get().update(c);
var d=a.currentUser;d.Xb.notify(d.yb);a.isSignedIn.set(!0);c=c.Pr();(d=_.Iw(a.XW))&&c&&_.Bh.set(["G_AUTHUSER_","https:"===window.location.protocol&&d.Le?"S":"H",d.ei].join(""),c,{domain:d.domain,secure:d.isSecure});_.Sv(b.response);a.jf(b)}});a.Zd.addEventListener("noSessionBound",function(b){a.Ps&&b.autoOpenAuthUrl?(a.Ps=!1,iw(a.Zd).select(function(c){if(c&&c.login_hint){var d=a.Zd;_.pv(d,d.sA,[c.login_hint,!0])}else a.currentUser.set(new Cw(null)),a.isSignedIn.set(!1),_.Tv(),a.jf(b)})):(a.currentUser.set(new Cw(null)),
a.isSignedIn.set(!1),_.Tv(),a.jf(b))});a.Zd.addEventListener("tokenFailed",function(b){a.jf(b)});a.Zd.addEventListener("userLoggedOut",function(b){a.currentUser.get().Wj();var c=a.currentUser;c.Xb.notify(c.yb);a.isSignedIn.set(!1);_.Tv();a.jf(b)})},ax=function(a,b,c,d){return a.N0.then(function(e){if(b)return b(e.vZ)},c,d)};dx.prototype.jf=function(a){if(a){this.Ps=!1;var b=a.type||"";if(this.Ky[b])this.Ky[b](a);this.xp&&(this.xp({vZ:this}),this.Tx=this.xp=null)}};
var gx=function(a,b){_.lb(b,function(c,d){a.Ky[d]=function(e){a.Ky={};c(e)}})},Gw=function(a,b,c,d){d=_.gj(d);a.Fs&&(d.hd=a.Fs);var e=d.ux_mode||a.o6;delete d.ux_mode;delete d.app_package_name;var f={sessionMeta:{extraQueryParams:d},responseType:"permission id_token"};"redirect"==e?(d.redirect_uri||(d.redirect_uri=a.g3||zw()+window.location.pathname),hx(a,f)):(delete d.redirect_uri,ix(a,f),gx(a,{authResult:function(h){h.authResult&&h.authResult.error?c(h.authResult):gx(a,{tokenReady:function(){b(a.currentUser.get())},
tokenFailed:c})}}))};dx.prototype.Vj=function(a){return new _.Aj(function(b,c){var d=new tw(a);this.dE=d.ss()?!0:!1;this.Nx?(d.Ia.fetch_basic_profile=!0,uw(d,"email profile openid")):d.Ia.fetch_basic_profile=!1;var e=ex(this,d.ss());d.SR(e);Gw(this,b,c,d.get())},this)};
dx.prototype.us=function(a){var b=a||{};this.dE=!!b.scope;a=ex(this,b.scope);if(""==a)return _.Fj({error:"Missing required parameter: scope"});var c={scope:a,access_type:"offline",include_granted_scopes:!0};_.Nb($v,function(d){null!=b[d]&&(c[d]=b[d])});c.hasOwnProperty("prompt")||c.hasOwnProperty("approval_prompt")||(c.prompt="consent");return"postmessage"==b.redirect_uri||void 0==b.redirect_uri?jx(this,c):kx(this,c,b.redirect_uri)};
var kx=function(a,b,c){b.redirect_uri=c;hx(a,{sessionMeta:{extraQueryParams:b},responseType:"code id_token"});return _.Ej({message:"Redirecting to IDP."})},jx=function(a,b){b.origin=zw();delete b.redirect_uri;ix(a,{sessionMeta:{extraQueryParams:b},responseType:"code permission id_token"});return new _.Aj(function(c,d){gx(this,{authResult:function(e){(e=e&&e.authResult)&&e.code?c({code:e.code}):d(e&&e.error?e:{error:"unknown_error"})}})},a)},ix=function(a,b){yw(b,["sessionMeta","extraQueryParams",
"gsiwebsdk"],"2");Ov(a.Zd,vw(),b)},hx=function(a,b){yw(b,["sessionMeta","extraQueryParams","gsiwebsdk"],"2");b=b||{};window.location.assign(Lv(a.Zd,b.sessionMeta,b.responseType))};dx.prototype.Wj=function(a){var b=a||!1;return new _.Aj(function(c){Fv(this.Zd,b,function(){c()})},this)};dx.prototype.fN=function(){return this.Ia.authParameters.scope};var ex=function(a,b){a=a.fN();b=Bv(b?b.split(" "):[],a?a.split(" "):[]);_.ej(b);return b.join(" ")};
dx.prototype.dG=function(){var a=this;return new _.Aj(function(b,c){gx(a,{noSessionBound:c,tokenFailed:c,userLoggedOut:c,tokenReady:function(d){b(d.response)}});a.Zd.GM()})};dx.prototype.HK=function(a,b,c,d){if(a="string"===typeof a?document.getElementById(a):a){var e=this;_.Oi(a,"click",function(){var f=b;"function"==typeof b&&(f=b());e.Vj(f).then(function(h){c&&c(h)},function(h){d&&d(h)})})}else d&&d({error:"Could not attach click handler to the element. Reason: element not found."})};
dx.prototype.disconnect=function(){return new _.Aj(function(a){this.Zd.revoke(function(){a()})},this)};dx.prototype.attachClickHandler=dx.prototype.HK;
var lx;_.Aj.prototype["catch"]=_.Aj.prototype.tu;lx=null;_.mx=function(a){Bw();a=Nw(a);if(Dw){if(_.fj(a,lx||{}))return bx();throw new dw("gapi.auth2 has been initialized with different options. Consider calling gapi.auth2.getAuthInstance() instead of gapi.auth2.init().");}Ow(a,!1!==a.fetch_basic_profile);xw();lx=a;Dw=new dx(a);_.se.ga=1;return bx()};
var ox,qx,nx,sx,rx,tx;_.px=function(a,b){xw();a=Nw(a);Ow(a);var c=Vw(a),d=new _.zv(c);"none"==a.prompt?nx(d,a,function(e){e.status=e.error?{signed_in:!1,method:null,google_logged_in:!1}:{signed_in:!0,method:"AUTO",google_logged_in:!0};b(e)}):ox(d,a,function(e){if(e.error)e.status={signed_in:!1,method:null,google_logged_in:!1};else{var f=e.access_token||e.id_token;e.status={signed_in:!!f,method:"PROMPT",google_logged_in:!!f}}e["g-oauth-window"]=d.wQ.Ih;b(e)})};
ox=function(a,b,c){var d=new Sw(b.response_type);c=qx(a,d,c);var e={responseType:d.toString()};yw(e,["sessionMeta","extraQueryParams","gsiwebsdk"],b.gsiwebsdk||"2");Tw(d)&&yw(e,["sessionMeta","extraQueryParams","access_type"],b.access_type||"offline");b.redirect_uri&&yw(e,["sessionMeta","extraQueryParams","redirect_uri"],b.redirect_uri);b.state&&yw(e,["sessionMeta","extraQueryParams","state"],b.state);b=vw();a.bl?c({authResult:{error:"idpiframe_initialization_failed",details:a.Gm().error}}):(a.Wl=
c,Ov(a,b,e))};qx=function(a,b,c){if(Uw(b)){var d=rx(c);return function(e){e&&e.authResult&&!e.authResult.error?a.Yr(function(f){f&&!f.error?(f=_.gj(f),Tw(b)&&(f.code=e.authResult.code),d(f)):d(f?f:{error:"unknown_error"})})(e):d(e&&e.authResult?e.authResult:{error:"unknown_error"})}}return function(e){e&&e.authResult&&!e.authResult.error?c(_.gj(e.authResult)):c(e&&e.authResult?e.authResult:{error:"unknown_error"})}};
nx=function(a,b,c){if(Tw(new Sw(b.response_type))&&"offline"==b.access_type)c({error:"immediate_failed",error_subtype:"access_denied"});else{var d=rx(c);b.login_hint?a.OC(b.login_hint,function(e){e?sx(a,b,e,d):c({error:"immediate_failed",error_subtype:"access_denied"})}):void 0!==b.authuser&&null!==b.authuser?kw(a,b.authuser).select(function(e){e&&e.login_hint?sx(a,b,e.login_hint,d):d({error:"immediate_failed",error_subtype:"access_denied"})}):a.Sr(function(e){e&&e.hint?sx(a,b,e.hint,d):e&&e.disabled?
d({error:"immediate_failed",error_subtype:"no_user_bound"}):("first_valid"==b.session_selection?jw(a):iw(a)).select(function(f){f&&f.login_hint?sx(a,b,f.login_hint,d):d({error:"immediate_failed",error_subtype:"no_user_bound"})})})}};sx=function(a,b,c,d){b=new Sw(b.response_type);var e=0,f={},h=function(k){!k||k.error?d(k):(e--,_.ri(f,k),0==e&&d(f))};(Uw(b)||Ww(b,"id_token"))&&e++;Tw(b)&&e++;(Uw(b)||Ww(b,"id_token"))&&_.Av(a,c,h);Tw(b)&&Pv(a,c,h)};
rx=function(a){return function(b){if(!b||b.error)_.Tv(),b?a(b):a({error:"unknown_error"});else{if(b.access_token){var c=_.gj(b);tx(c);delete c.id_token;delete c.code;_.Sv(c)}a(b)}}};tx=function(a){_.Nb(aw,function(b){delete a[b]})};
_.D("gapi.auth2.init",_.mx);_.D("gapi.auth2.authorize",function(a,b){Bw();if(null!=Dw)throw new dw("gapi.auth2.authorize cannot be called after GoogleAuth has been initialized (i.e. with a call to gapi.auth2.init, or gapi.client.init when given a 'clientId' and a 'scope' parameters).");_.px(a,function(c){tx(c);b(c)})});_.D("gapi.auth2._gt",function(){return _.Nh()});_.D("gapi.auth2.enableDebugLogs",function(a){a=!1!==a;_.ou="0"!=a&&!!a});_.D("gapi.auth2.getAuthInstance",_.cx);
_.D("gapi.auth2.BasicProfile",Ew);_.D("gapi.auth2.BasicProfile.prototype.getId",Ew.prototype.getId);_.D("gapi.auth2.BasicProfile.prototype.getName",Ew.prototype.Bj);_.D("gapi.auth2.BasicProfile.prototype.getGivenName",Ew.prototype.GY);_.D("gapi.auth2.BasicProfile.prototype.getFamilyName",Ew.prototype.BY);_.D("gapi.auth2.BasicProfile.prototype.getImageUrl",Ew.prototype.OY);_.D("gapi.auth2.BasicProfile.prototype.getEmail",Ew.prototype.Zr);_.D("gapi.auth2.GoogleAuth",dx);
_.D("gapi.auth2.GoogleAuth.prototype.attachClickHandler",dx.prototype.HK);_.D("gapi.auth2.GoogleAuth.prototype.disconnect",dx.prototype.disconnect);_.D("gapi.auth2.GoogleAuth.prototype.grantOfflineAccess",dx.prototype.us);_.D("gapi.auth2.GoogleAuth.prototype.signIn",dx.prototype.Vj);_.D("gapi.auth2.GoogleAuth.prototype.signOut",dx.prototype.Wj);_.D("gapi.auth2.GoogleAuth.prototype.getInitialScopes",dx.prototype.fN);_.D("gapi.auth2.GoogleUser",Cw);_.D("gapi.auth2.GoogleUser.prototype.grant",Cw.prototype.xZ);
_.D("gapi.auth2.GoogleUser.prototype.getId",Cw.prototype.getId);_.D("gapi.auth2.GoogleUser.prototype.isSignedIn",Cw.prototype.Yf);_.D("gapi.auth2.GoogleUser.prototype.getAuthResponse",Cw.prototype.Dk);_.D("gapi.auth2.GoogleUser.prototype.getBasicProfile",Cw.prototype.iY);_.D("gapi.auth2.GoogleUser.prototype.getGrantedScopes",Cw.prototype.IY);_.D("gapi.auth2.GoogleUser.prototype.getHostedDomain",Cw.prototype.gD);_.D("gapi.auth2.GoogleUser.prototype.grantOfflineAccess",Cw.prototype.us);
_.D("gapi.auth2.GoogleUser.prototype.hasGrantedScopes",Cw.prototype.zx);_.D("gapi.auth2.GoogleUser.prototype.reloadAuthResponse",Cw.prototype.dG);_.D("gapi.auth2.LiveValue",qw);_.D("gapi.auth2.LiveValue.prototype.listen",qw.prototype.V);_.D("gapi.auth2.LiveValue.prototype.get",qw.prototype.get);_.D("gapi.auth2.SigninOptionsBuilder",tw);_.D("gapi.auth2.SigninOptionsBuilder.prototype.getAppPackageName",tw.prototype.fY);_.D("gapi.auth2.SigninOptionsBuilder.prototype.setAppPackageName",tw.prototype.A4);
_.D("gapi.auth2.SigninOptionsBuilder.prototype.getScope",tw.prototype.ss);_.D("gapi.auth2.SigninOptionsBuilder.prototype.setScope",tw.prototype.SR);_.D("gapi.auth2.SigninOptionsBuilder.prototype.getPrompt",tw.prototype.gZ);_.D("gapi.auth2.SigninOptionsBuilder.prototype.setPrompt",tw.prototype.a5);_.D("gapi.auth2.SigninOptionsBuilder.prototype.get",tw.prototype.get);

_.De=_.De||{};
(function(){function a(b){var c="";if(3==b.nodeType||4==b.nodeType)c=b.nodeValue;else if(b.innerText)c=b.innerText;else if(b.innerHTML)c=b.innerHTML;else if(b.firstChild){c=[];for(b=b.firstChild;b;b=b.nextSibling)c.push(a(b));c=c.join("")}return c}_.De.createElement=function(b){if(!document.body||document.body.namespaceURI)try{var c=document.createElementNS("http://www.w3.org/1999/xhtml",b)}catch(d){}return c||document.createElement(b)};_.De.sL=function(b){var c=_.De.createElement("iframe");try{var d=
["<","iframe"],e=b||{},f;for(f in e)e.hasOwnProperty(f)&&(d.push(" "),d.push(f),d.push('="'),d.push(_.De.zC(e[f])),d.push('"'));d.push("></");d.push("iframe");d.push(">");var h=_.De.createElement(d.join(""));h&&(!c||h.tagName==c.tagName&&h.namespaceURI==c.namespaceURI)&&(c=h)}catch(l){}d=c;b=b||{};for(var k in b)b.hasOwnProperty(k)&&(d[k]=b[k]);return c};_.De.NM=function(){if(document.body)return document.body;try{var b=document.getElementsByTagNameNS("http://www.w3.org/1999/xhtml","body");if(b&&
1==b.length)return b[0]}catch(c){}return document.documentElement||document};_.De.yea=function(b){return a(b)}})();

_.eg=window.gapi&&window.gapi.util||{};

_.eg=_.eg={};_.eg.getOrigin=function(a){return _.gg(a)};

_.py=function(a){if(0!==a.indexOf("GCSC"))return null;var b={Ei:!1};a=a.substr(4);if(!a)return b;var c=a.charAt(0);a=a.substr(1);var d=a.lastIndexOf("_");if(-1==d)return b;var e=_.ny(a.substr(d+1));if(null==e)return b;a=a.substring(0,d);if("_"!==a.charAt(0))return b;d="E"===c&&e.Le;return!d&&("U"!==c||e.Le)||d&&!_.oy?b:{Ei:!0,Le:d,NW:a.substr(1),domain:e.domain,ei:e.ei}};
_.qy=function(a,b){this.Af=a;a=b||{};this.v1=Number(a.maxAge)||0;this.fe=a.domain;this.zl=a.path;this.m4=!!a.secure};_.qy.prototype.read=function(){for(var a=this.Af+"=",b=document.cookie.split(/;\s*/),c=0;c<b.length;++c){var d=b[c];if(0==d.indexOf(a))return d.substr(a.length)}};
_.qy.prototype.write=function(a,b){if(!ry.test(this.Af))throw"Invalid cookie name";if(!sy.test(a))throw"Invalid cookie value";a=this.Af+"="+a;this.fe&&(a+=";domain="+this.fe);this.zl&&(a+=";path="+this.zl);b="number"===typeof b?b:this.v1;if(0<=b){var c=new Date;c.setSeconds(c.getSeconds()+b);a+=";expires="+c.toUTCString()}this.m4&&(a+=";secure");document.cookie=a;return!0};_.qy.prototype.clear=function(){this.write("",0)};var sy=/^[-+/_=.:|%&a-zA-Z0-9@]*$/,ry=/^[A-Z_][A-Z0-9_]{0,63}$/;
_.qy.iterate=function(a){for(var b=document.cookie.split(/;\s*/),c=0;c<b.length;++c){var d=b[c].split("="),e=d.shift();a(e,d.join("="))}};
_.ty=function(a){this.Fi=a};_.ty.prototype.read=function(){if(uy.hasOwnProperty(this.Fi))return uy[this.Fi]};_.ty.prototype.write=function(a){uy[this.Fi]=a;return!0};_.ty.prototype.clear=function(){delete uy[this.Fi]};var uy={};_.ty.iterate=function(a){for(var b in uy)uy.hasOwnProperty(b)&&a(b,uy[b])};
var vy=function(){this.yb=null;this.key=function(){return null};this.getItem=function(){return this.yb};this.setItem=function(a,b){this.yb=b;this.length=1};this.removeItem=function(){this.clear()};this.clear=function(){this.yb=null;this.length=0};this.length=0},wy=function(a){try{var b=a||window.sessionStorage;if(!b)return!1;b.setItem("gapi.sessionStorageTest","gapi.sessionStorageTest"+b.length);b.removeItem("gapi.sessionStorageTest");return!0}catch(c){return!1}},xy=function(a,b){this.Af=a;this.KI=
wy(b)?b||window.sessionStorage:new vy};xy.prototype.read=function(){return this.KI.getItem(this.Af)};xy.prototype.write=function(a){try{this.KI.setItem(this.Af,a)}catch(b){return!1}return!0};xy.prototype.clear=function(){this.KI.removeItem(this.Af)};xy.iterate=function(a){if(wy())for(var b=0,c=window.sessionStorage.length;b<c;++b){var d=window.sessionStorage.key(b);a(d,window.sessionStorage[d])}};
_.oy="https:"===window.location.protocol;_.yy=_.oy||"http:"===window.location.protocol?_.qy:_.ty;_.ny=function(a){var b=a.substr(1),c="",d=window.location.hostname;if(""!==b){c=parseInt(b,10);if(isNaN(c))return null;b=d.split(".");if(b.length<c-1)return null;b.length==c-1&&(d="."+d)}else d="";return{Le:"S"==a.charAt(0),domain:d,ei:c}};
var zy,Ay,Dy,Ey;zy=_.he();Ay=_.he();_.By=_.he();_.Cy=_.he();Dy="state code cookie_policy g_user_cookie_policy authuser prompt g-oauth-window status".split(" ");Ey=function(a){this.tQ=a;this.bF=null};
Ey.prototype.write=function(a){var b=_.he(),c=_.he(),d=window.decodeURIComponent?decodeURIComponent:unescape,e;for(e in a)if(_.ie(a,e)){var f=a[e];f=f.replace(/\+/g," ");c[e]=d(f);b[e]=a[e]}d=0;for(e=Dy.length;d<e;++d)delete c[Dy[d]];a=String(a.authuser||0);d=_.he();d[a]=c;c=_.pf(d);this.tQ.write(c);this.bF=b};Ey.prototype.read=function(){return this.bF};Ey.prototype.clear=function(){this.tQ.clear();this.bF=_.he()};_.Fy=function(a){return a?{domain:a.domain,path:"/",secure:a.Le}:null};
xy.iterate(function(a){var b=_.py(a);b&&b.Ei&&(zy[a]=new Ey(new xy(a)))});_.yy.iterate(function(a){zy[a]&&(Ay[a]=new _.yy(a,_.Fy(_.py(a))))});

_.Ch=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;n=m=0}function b(q){for(var p=h,r=0;64>r;r+=4)p[r/4]=q[r]<<24|q[r+1]<<16|q[r+2]<<8|q[r+3];for(r=16;80>r;r++)q=p[r-3]^p[r-8]^p[r-14]^p[r-16],p[r]=(q<<1|q>>>31)&4294967295;q=e[0];var v=e[1],t=e[2],x=e[3],z=e[4];for(r=0;80>r;r++){if(40>r)if(20>r){var B=x^v&(t^x);var E=1518500249}else B=v^t^x,E=1859775393;else 60>r?(B=v&t|x&(v|t),E=2400959708):(B=v^t^x,E=3395469782);B=((q<<5|q>>>27)&4294967295)+
B+z+E+p[r]&4294967295;z=x;x=t;t=(v<<30|v>>>2)&4294967295;v=q;q=B}e[0]=e[0]+q&4294967295;e[1]=e[1]+v&4294967295;e[2]=e[2]+t&4294967295;e[3]=e[3]+x&4294967295;e[4]=e[4]+z&4294967295}function c(q,p){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var r=[],v=0,t=q.length;v<t;++v)r.push(q.charCodeAt(v));q=r}p||(p=q.length);r=0;if(0==m)for(;r+64<p;)b(q.slice(r,r+64)),r+=64,n+=64;for(;r<p;)if(f[m++]=q[r++],n++,64==m)for(m=0,b(f);r+64<p;)b(q.slice(r,r+64)),r+=64,n+=64}function d(){var q=[],
p=8*n;56>m?c(k,56-m):c(k,64-(m-56));for(var r=63;56<=r;r--)f[r]=p&255,p>>>=8;b(f);for(r=p=0;5>r;r++)for(var v=24;0<=v;v-=8)q[p++]=e[r]>>v&255;return q}for(var e=[],f=[],h=[],k=[128],l=1;64>l;++l)k[l]=0;var m,n;a();return{reset:a,update:c,digest:d,Zh:function(){for(var q=d(),p="",r=0;r<q.length;r++)p+="0123456789ABCDEF".charAt(Math.floor(q[r]/16))+"0123456789ABCDEF".charAt(q[r]%16);return p}}};
var Eh=function(a,b,c){var d=String(_.u.location.href);return d&&a&&b?[b,Dh(_.gg(d),a,c||null)].join(" "):null},Dh=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],_.Nb(d,function(k){e.push(k)}),Fh(e.join(" "));var f=[],h=[];_.Nb(c,function(k){h.push(k.key);f.push(k.value)});c=Math.floor((new Date).getTime()/1E3);e=0==f.length?[c,b,a]:[f.join(":"),c,b,a];_.Nb(d,function(k){e.push(k)});a=Fh(e.join(" "));a=[c,a];0==h.length||a.push(h.join(""));return a.join("_")},Fh=function(a){var b=
_.Ch();b.update(a);return b.Zh().toLowerCase()};
var Ih;_.Gh=function(a){return!!_.yh.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};_.Hh=function(a){a=void 0===a?!1:a;var b=_.u.__SAPISID||_.u.__APISID||_.u.__3PSAPISID||_.u.__OVERRIDE_SID;_.Gh(a)&&(b=b||_.u.__1PSAPISID);if(b)return!0;var c=new _.zh(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");_.Gh(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};Ih=function(a,b,c,d){(a=_.u[a])||(a=(new _.zh(document)).get(b));return a?Eh(a,c,d):null};
_.Jh=function(a,b){b=void 0===b?!1:b;var c=_.gg(String(_.u.location.href)),d=[];if(_.Hh(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?_.u.__SAPISID:_.u.__APISID;e||(e=new _.zh(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?Eh(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&_.Gh(b)&&((b=Ih("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=Ih("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",
a))&&d.push(a))}return 0==d.length?null:d.join(" ")};

_.Kh=function(a,b){var c={SAPISIDHASH:!0,SAPISID3PHASH:!0,APISIDHASH:!0};_.Gh(void 0===b?!1:b)&&(c.SAPISID1PHASH=!0);return a&&(a.OriginToken||a.Authorization&&c[String(a.Authorization).split(" ")[0]])?!0:!1};_.Lh={VN:_.Kh,K0:_.Hh,kN:function(){var a=null;_.Hh()&&(a=window.__PVT,null==a&&(a=(new _.zh(document)).get("BEAT")));return a},LM:_.Jh};

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Eq=function(){return!_.Dq()&&(_.ob("iPod")||_.ob("iPhone")||_.ob("Android")||_.ob("IEMobile"))};_.Dq=function(){return _.ob("iPad")||_.ob("Android")&&!_.ob("Mobile")||_.ob("Silk")};

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Ex=function(a,b,c){if("function"===typeof a)c&&(a=(0,_.O)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,_.O)(a.handleEvent,a);else throw Error("Ba");return 2147483647<Number(b)?-1:_.u.setTimeout(a,b||0)};_.Fx=function(a){_.u.clearTimeout(a)};

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Gy=function(a){_.vi.call(this);this.Fi=1;this.dz=[];this.kz=0;this.Hf=[];this.Wi={};this.eW=!!a};_.Za(_.Gy,_.vi);_.g=_.Gy.prototype;_.g.subscribe=function(a,b,c){var d=this.Wi[a];d||(d=this.Wi[a]=[]);var e=this.Fi;this.Hf[e]=a;this.Hf[e+1]=b;this.Hf[e+2]=c;this.Fi=e+3;d.push(e);return e};_.g.qu=_.ca(19);_.g.unsubscribe=function(a,b,c){if(a=this.Wi[a]){var d=this.Hf;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.dk(a)}return!1};
_.g.dk=function(a){var b=this.Hf[a];if(b){var c=this.Wi[b];0!=this.kz?(this.dz.push(a),this.Hf[a+1]=function(){}):(c&&_.ni(c,a),delete this.Hf[a],delete this.Hf[a+1],delete this.Hf[a+2])}return!!b};
_.g.Bn=function(a,b){var c=this.Wi[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.eW)for(e=0;e<c.length;e++){var h=c[e];Hy(this.Hf[h+1],this.Hf[h+2],d)}else{this.kz++;try{for(e=0,f=c.length;e<f&&!this.isDisposed();e++)h=c[e],this.Hf[h+1].apply(this.Hf[h+2],d)}finally{if(this.kz--,0<this.dz.length&&0==this.kz)for(;c=this.dz.pop();)this.dk(c)}}return 0!=e}return!1};var Hy=function(a,b,c){_.xj(function(){a.apply(b,c)})};
_.Gy.prototype.clear=function(a){if(a){var b=this.Wi[a];b&&(b.forEach(this.dk,this),delete this.Wi[a])}else this.Hf.length=0,this.Wi={}};_.Gy.prototype.Ib=function(a){if(a){var b=this.Wi[a];return b?b.length:0}a=0;for(b in this.Wi)a+=this.Ib(b);return a};_.Gy.prototype.ta=function(){_.Gy.H.ta.call(this);this.clear();this.dz.length=0};

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Iy=function(a){this.W5=a};_.Iy.prototype.toString=function(){return this.W5};
_.Jy=function(a){_.vi.call(this);this.Vd=new _.Gy(a);_.xi(this,this.Vd)};_.Za(_.Jy,_.vi);_.g=_.Jy.prototype;_.g.subscribe=function(a,b,c){return this.Vd.subscribe(a.toString(),b,c)};_.g.qu=_.ca(18);_.g.unsubscribe=function(a,b,c){return this.Vd.unsubscribe(a.toString(),b,c)};_.g.dk=function(a){return this.Vd.dk(a)};_.g.Bn=function(a,b){return this.Vd.Bn(a.toString(),b)};_.g.clear=function(a){this.Vd.clear(void 0!==a?a.toString():void 0)};
_.g.Ib=function(a){return this.Vd.Ib(void 0!==a?a.toString():void 0)};

_.Ny=function(){_.My="oauth2relay"+String(2147483647*(0,_.mg)()|0)};_.Oy=new _.Jy;_.Py=new _.Iy("oauth");_.Ny();_.Ae("oauth-flow/client_id");var Qy=String(_.Ae("oauth-flow/redirectUri"));if(Qy)Qy.replace(/[#][\s\S]*/,"");else{var Ry=_.eg.getOrigin(window.location.href);_.Ae("oauth-flow/callbackUrl");encodeURIComponent(Ry)}_.eg.getOrigin(window.location.href);

var Ty,Uy,Vy,Wy,Xy,Yy,Zy,$y,az,bz,cz,ez,fz,gz,hz,iz,jz,kz,lz,mz,nz,oz,pz,qz,rz,sz,tz,uz,vz,wz,xz,yz,zz,Az,Bz,Cz,Dz,Ez,Fz,Gz,Hz,Kz,Jz,Lz,Mz,Nz,Oz,Pz,Qz,Rz,Sz,Tz,Vz;_.Sy=function(a,b){if(_.Zg&&!b)return _.u.atob(a);var c="";_.bh(a,function(d){c+=String.fromCharCode(d)});return c};Ty=function(a){var b=String(a("immediate")||"");a=String(a("prompt")||"");return"true"===b||"none"===a};Uy=function(a){return _.th("enableMultilogin")&&a("cookie_policy")&&!Ty(a)?!0:!1};
Xy=function(){var a,b=null;_.yy.iterate(function(c,d){0===c.indexOf("G_AUTHUSER_")&&(c=_.ny(c.substring(11)),!a||c.Le&&!a.Le||c.Le==a.Le&&c.ei>a.ei)&&(a=c,b=d)});return{pW:a,authuser:b}};Yy=[".APPS.GOOGLEUSERCONTENT.COM","@DEVELOPER.GSERVICEACCOUNT.COM"];Zy=function(a){a=a.toUpperCase();for(var b=0,c=Yy.length;b<c;++b){var d=a.split(Yy[b]);2==d.length&&""===d[1]&&(a=d[0])}a=a.replace(/-/g,"_").toUpperCase();40<a.length&&(b=new _.lg,b.Iu(a),a=b.Zh().toUpperCase());return a};
$y=function(a){if(!a)return[];a=a.split("=");return a[1]?a[1].split("|"):[]};az=function(a){a=a.split(":");return{clientId:a[0].split("=")[1],y4:$y(a[1]),ofa:$y(a[2]),jea:$y(a[3])}};bz=function(a){var b=Xy(),c=b.pW;b=b.authuser;var d=a&&Zy(a);if(null!==b){var e;_.yy.iterate(function(h,k){(h=_.py(h))&&h.Ei&&(d&&h.NW!=d||h.Le==c.Le&&h.ei==c.ei&&(e=k))});if(e){var f=az(e);a=f&&f.y4[Number(b)];f=f&&f.clientId;if(a)return{authuser:b,gga:a,clientId:f}}}return null};
cz=function(a,b){a=_.Nh(a);if(!a||!b&&a.error)return null;b=Math.floor((new Date).getTime()/1E3);return a.expires_at&&b>a.expires_at?null:a};_.dz=function(a,b){if(b){var c=b;var d=a}else"string"===typeof a?d=a:c=a;c?_.Sv(c,d):_.Tv(d)};
ez=function(a){if(!a)return null;"single_host_origin"!==a&&(a=_.gg(a));var b=window.location.hostname,c=b,d=_.oy;if("single_host_origin"!==a){c=a.split("://");if(2==c.length)d="https"===c.shift();else return _.tf.log("WARNING invalid cookie_policy: "+a),null;c=c[0]}if(-1!==c.indexOf(":"))c=b="";else{a="."+c;if(b.lastIndexOf(a)!==b.length-a.length)return _.tf.log("Invalid cookie_policy domain: "+c),null;c=a;b=c.split(".").length-1}return{domain:c,Le:d,ei:b}};
fz=function(a){var b=ez(a);if(!b)return new _.ty("G_USERSTATE_");a=["G_USERSTATE_",_.oy&&b.Le?"S":"H",b.ei].join("");var c=_.Cy[a];c||(c={ZE:63072E3},_.je(_.Fy(b),c),c=new _.qy(a,c),_.Cy[a]=c,b=c.read(),"undefined"!==typeof b&&null!==b&&(document.cookie=a+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/",c.write(b)));return c};gz=function(a){var b=fz(a).read();a=_.he();if(b){b=b.split(":");for(var c;c=b.shift();)c=c.split("="),a[c[0]]=c[1]}return a};
hz=function(a,b,c){var d=gz(b),e=d[a];d[a]="0";var f=[];_.Ql(d,function(k,l){f.push(l+"="+k)});var h=f.join(":");b=fz(b);h?b.write(h):b.clear();d[a]!==e&&c&&c()};iz=function(a){a=ez(a.g_user_cookie_policy);if(!a||a.Le&&!_.oy)a=null;else{var b=["G_AUTHUSER_",_.oy&&a.Le?"S":"H",a.ei].join(""),c=_.By[b];c||(c=new _.yy(b,_.Fy(a)),_.By[b]=c);a=c}_.Be("googleapis.config/sessionIndex",null);a.clear()};jz=function(a){return Ty(function(b){return a[b]})};kz=0;lz=!1;mz=[];nz={};oz={};pz=null;
qz=function(a){var b=_.My;return function(c){if(this.f==b&&this.t==_.yf.Bm(this.f)&&this.origin==_.yf.Nm(this.f))return a.apply(this,arguments)}};rz=function(a){"function"===typeof a.setAttribute?a.setAttribute("aria-hidden","true"):a["aria-hidden"]="true"};sz=function(a){if(a&&!decodeURIComponent(a).startsWith("m;/_/scs/"))throw Error("Ga");};
tz=function(a){var b=_.De.Bg,c=b(a).jsh;if(null!=c)return sz(c),a;if(b=String(b().jsh||_.se.h||""))sz(b),c=(a+"#").indexOf("#"),a=a.substr(0,c)+(-1!==a.substr(0,c).indexOf("?")?"&":"?")+"jsh="+encodeURIComponent(b)+a.substr(c);return a};uz=function(){return!!_.Ae("oauth-flow/usegapi")};vz=function(a,b){uz()?pz.unregister(a):_.yf.unregister(a+":"+b)};wz=function(a,b,c){uz()?pz.register(a,c,_.em):_.yf.register(a+":"+b,qz(c))};xz=function(){Vy.parentNode.removeChild(Vy)};
yz=function(a){var b=Vy;_.Ky(b,[{jz:"-webkit-transform",duration:1,timing:"ease",delay:0}]);_.Ky(b,[{jz:"transform",duration:1,timing:"ease",delay:0}]);_.Ex(function(){b.style.webkitTransform="translate3d(0px,"+a+"px,0px)";b.style.transform="translate3d(0px,"+a+"px,0px)"},0)};zz=function(){var a=Wy+88;yz(a);Wy=a};Az=function(){var a=Wy-88;yz(a);Wy=a};
Bz=function(a){var b=a?zz:Az,c=a?Az:zz;a=a?"-":"";Wy=parseInt(a+88,10);Vy.style.webkitTransform="translate3d(0px,"+a+88+"px,0px)";Vy.style.transform="translate3d(0px,"+a+88+"px,0px)";Vy.style.display="";Vy.style.visibility="visible";b();_.Ex(c,4E3);_.Ex(xz,5E3)};
Cz=function(a){var b=_.Ae("oauth-flow/toast/position");"top"!==b&&(b="bottom");var c=document.createElement("div");Vy=c;c.style.cssText="position:fixed;left:0px;z-index:1000;width:100%;";_.Gr(c,"visibility","hidden");_.Gr(c,b,"-40px");_.Gr(c,"height","128px");var d=c;if(!_.Eq()&&!_.Dq()){d=document.createElement("div");d.style.cssText="float:left;position:relative;left:50%;";c.appendChild(d);var e=document.createElement("div");e.style.cssText="float:left;position:relative;left:-50%";d.appendChild(e);
d=e}e="top"==b?"-":"";Wy=parseInt(e+88,10);Vy.style.webkitTransform="translate3d(0px,"+e+88+"px,0px)";Vy.style.transform="translate3d(0px,"+e+88+"px,0px)";e=window;try{for(;e.parent!=e&&e.parent.document;)e=e.parent}catch(f){}e=e.document.body;try{e.insertBefore(c,e.firstChild)}catch(f){}_.bm.openChild({url:":socialhost:/:session_prefix:_/widget/oauthflow/toast",queryParams:{clientId:a.client_id,idToken:a.id_token},where:d,onRestyle:function(){"top"===b?Bz(!0):Bz(!1)}})};
Dz=function(a){var b=_.En(),c=b&&b.scope;b=a&&a.scope;b="string"===typeof b?b.split(" "):b||[];if(c){c=c.split(" ");for(var d=0;d<c.length;++d){var e=c[d];-1==_.Ol.call(b,e)&&b.push(e)}0<b.length&&(a.scope=b.join(" "))}return a};
Ez=function(a,b){var c=null;a&&b&&(c=b.client_id=b.client_id||a.client_id,b.scope=b.scope||a.scope,b.g_user_cookie_policy=a.cookie_policy,b.cookie_policy=b.cookie_policy||a.cookie_policy,b.response_type=b.response_type||a.response_type);if(b){b.issued_at||(b.issued_at=String(Math.floor((new Date).getTime()/1E3)));var d=parseInt(b.expires_in,10)||86400;b.error&&(d=_.Ae("oauth-flow/errorMaxAge")||86400);b.expires_in=String(d);b.expires_at||(b.expires_at=String(Math.floor((new Date).getTime()/1E3)+d));
b._aa||b.error||null!=bz(c)||!jz(a)||(b._aa="1");a=b.status={};a.google_logged_in=!!b.session_state;c=a.signed_in=!!b.access_token;a.method=c?b["g-oauth-window"]?"PROMPT":"AUTO":null}return b};Fz=function(a){a=a&&a.id_token;if(!a||!a.split(".")[1])return null;a=(a.split(".")[1]+"...").replace(/^((....)+)\.?\.?\.?$/,"$1");a=_.of(_.Sy(a,!0));if(!1===a)throw Error("Ha");return a};Gz=function(a){return(a=Fz(a))?a.sub:null};
Hz=function(a){a&&mz.push(a);a=_.My;var b=document.getElementById(a),c=(new Date).getTime();if(b){if(kz&&6E4>c-kz)return;var d=_.yf.Bm(a);d&&(vz("oauth2relayReady",d),vz("oauth2callback",d));b.parentNode.removeChild(b);if(/Firefox/.test(navigator.userAgent))try{window.frames[a]=void 0}catch(f){}_.Ny();a=_.My}kz=c;var e=String(2147483647*(0,_.mg)()|0);b=_.Ae("oauth-flow/proxyUrl")||_.Ae("oauth-flow/relayUrl");uz()?pz=_.bm.openChild({where:_.De.NM(),url:b,id:a,attributes:{style:{width:"1px",height:"1px",
position:"absolute",top:"-100px",display:"none"},"aria-hidden":"true"},dontclear:!0}):(b=[b,"?parent=",encodeURIComponent(_.eg.getOrigin(window.location.href)),"#rpctoken=",e,"&forcesecure=1"].join(""),c=_.De.NM(),d=_.De.sL({name:a,id:a}),d.src=tz(b),d.style.width="1px",d.style.height="1px",d.style.position="absolute",d.style.top="-100px",d.tabIndex=-1,rz(d),c.appendChild(d),_.yf.du(a));wz("oauth2relayReady",e,function(){vz("oauth2relayReady",e);var f=mz;if(null!==f){mz=null;for(var h=0,k=f.length;h<
k;++h)f[h]()}});wz("oauth2callback",e,function(f){var h=_.De.Bg;h=h(f);var k=h.state;f=k.replace(/\|.*$/,"");f={}.hasOwnProperty.call(oz,f)?oz[f]:null;h.state=f;if(null!=h.state){f=nz[k];delete nz[k];k=f&&f.key||"token";var l=h=Ez(f&&f.params,h),m=Gz(l);if(m){var n=gz(l.cookie_policy);m="0"==n[m]||"X"==n[m]}else m=!1;!m&&l&&0<=(" "+(l.scope||"")+" ").indexOf(" https://www.googleapis.com/auth/plus.login ")&&_.Ae("isLoggedIn")&&"1"===(l&&l._aa)&&(l._aa="0",lz||(lz=!0,Cz(l)));_.dz(k,h);h=cz(k);if(f){k=
f.popup;l=f.after_redirect;if(k&&"keep_open"!=l)try{k.close()}catch(q){}f.callback&&(f.callback(h),f.callback=null)}}})};_.Iz=function(a){null!==mz?Hz(a):a&&a()};Kz=function(a,b){var c=Jz,d=Gz(a);d&&(iz(a),hz(d,b,function(){if(c){var e={error:"user_signed_out"};e.client_id=a.client_id;e.g_user_cookie_policy=a.g_user_cookie_policy;e.scope=a.scope;e.response_type=a.response_type;e.session_state=a.session_state;e=Ez(null,e);c(e)}}))};
Jz=function(a){a||(a=cz(void 0,!0));a&&"object"===typeof a||(a={error:"invalid_request",error_description:"no callback data"});var b=a.error_description;b&&window.console&&(window.console.error(a.error),window.console.error(b));a.error||(_.se.drw=null);_.dz(a);if(b=a.authuser)_.Ae("googleapis.config/sessionIndex"),_.Be("googleapis.config/sessionIndex",b);_.Oy.Bn(_.Py,a);return a};Lz=["client_id","cookie_policy","response_type"];Mz="client_id response_type login_hint authuser prompt include_granted_scopes after_redirect access_type hl state".split(" ");
Nz=function(a){var b=_.gj(a);b.session_state&&b.session_state.extraQueryParams&&(b.authuser=b.session_state.extraQueryParams.authuser);b.session_state=null;a.expires_at&&(b.expires_at=parseInt(a.expires_at/1E3).toString());a.expires_in&&(b.expires_in=a.expires_in.toString());a.first_issued_at&&(b.issued_at=parseInt(a.first_issued_at/1E3).toString(),delete b.first_issued_at);_.Sv(b);return b};
Oz=function(a){if(void 0===a.include_granted_scopes){var b=_.Ae("include_granted_scopes");a.include_granted_scopes=!!b}};Pz=function(a){window.console&&("function"===typeof window.console.warn?window.console.warn(a):"function"===typeof window.console.log&&window.console.log(a))};
Qz=function(a){var b=a||{},c={};_.Nb(Mz,function(d){null!=b[d]&&(c[d]=b[d])});a=_.Ae("googleapis/overrideClientId");null!=a&&(c.client_id=a);Oz(c);"string"===typeof b.scope?c.scope=b.scope:Array.isArray(b.scope)&&(c.scope=b.scope.join(" "));null!=b["openid.realm"]&&(c.openid_realm=b["openid.realm"]);null!=b.cookie_policy?c.cookie_policy=b.cookie_policy:null!=b.cookiepolicy&&(c.cookie_policy=b.cookiepolicy);null==c.login_hint&&null!=b.user_id&&(c.login_hint=b.user_id);try{_.Iw(c.cookie_policy)}catch(d){c.cookie_policy&&
Pz("The cookie_policy configuration: '"+c.cookie_policy+"' is illegal, and thus ignored."),delete c.cookie_policy}null!=b.hd&&(c.hosted_domain=b.hd);null==c.prompt&&(1==b.immediate||"true"==b.immediate?c.prompt="none":"force"==b.approval_prompt&&(c.prompt="consent"));"none"==c.prompt&&(c.session_selection="first_valid");"none"==c.prompt&&"offline"==c.access_type&&delete c.access_type;"undefined"===typeof c.authuser&&(a=_.xh(),null!=a&&(c.authuser=a));a=b.redirect_uri||_.Ae("oauth-flow/redirectUri");
null!=a&&"postmessage"!=a&&(c.redirect_uri=a);c.gsiwebsdk="shim";return c};
Rz=function(a,b){var c=Qz(a),d=new _.Aj(function(e,f){_.px(c,function(h){var k=h||{};_.Nb(Lz,function(l){null==k[l]&&(k[l]=c[l])});!c.include_granted_scopes&&a&&a.scope&&(k.scope=a.scope);a&&null!=a.state&&(k.state=a.state);k.error?("none"==c.prompt&&"user_logged_out"==k.error&&(k.error="immediate_failed_user_logged_out"),f(k)):(h=Nz(k),null!=h.authuser&&_.Be("googleapis.config/sessionIndex",h.authuser),e(h))})});b&&d.then(b,b);return d};Sz=_.Lh.LM;Tz=null;
_.Wz=function(a,b){if("force"!==a.approvalprompt){a=_.Uz(a);a.prompt="none";delete a.redirect_uri;delete a.approval_prompt;delete a.immediate;if(b=!b)Tz?(a.client_id!==Tz.client_id&&window.console&&window.console.log&&window.console.log("Ignoring mismatched page-level auth param client_id="+a.client_id),b=!0):(Tz=a,b=!1);b||Vz(a)}};
_.Uz=function(a){var b=a.redirecturi||"postmessage",c=(0,_.ic)((a.scope||"").replace(/[\s\xa0]+/g," "));b={client_id:a.clientid,redirect_uri:b,response_type:"code token id_token gsession",scope:c};a.approvalprompt&&(b.approval_prompt=a.approvalprompt);a.state&&(b.state=a.state);a.openidrealm&&(b["openid.realm"]=a.openidrealm);c="offline"==a.accesstype?!0:(c=a.redirecturi)&&"postmessage"!=c;c&&(b.access_type="offline");a.requestvisibleactions&&(b.request_visible_actions=(0,_.ic)(a.requestvisibleactions.replace(/[\s\xa0]+/g,
" ")));a.after_redirect&&(b.after_redirect=a.after_redirect);a.cookiepolicy&&"none"!==a.cookiepolicy&&(b.cookie_policy=a.cookiepolicy);"undefined"!=typeof a.includegrantedscopes&&(b.include_granted_scopes=a.includegrantedscopes);a.e&&(b.e=a.e);(a=a.authuser||_.Ae("googleapis.config/sessionIndex"))&&(b.authuser=a);(a=_.Ae("useoriginassocialhost"))&&(b.use_origin_as_socialhost=a);return b};Vz=function(a){_.uo("waaf0","signin","0");Rz(a,function(b){_.uo("waaf1","signin","0");Jz(b)})};
_.Xz=function(a){a=_.Uz(a);_.Be("oauth-flow/authWindowWidth",445);_.Be("oauth-flow/authWindowHeight",615);Vz(a)};_.Yz=function(a){_.Oy.unsubscribe(_.Py,a);_.Oy.subscribe(_.Py,a)};
var eA,hA;_.$z=function(a){return a.cookiepolicy?!0:(_.Zz("cookiepolicy is a required field.  See https://developers.google.com/+/web/signin/#button_attr_cookiepolicy for more information."),!1)};_.Zz=function(a){window.console&&(window.console.error?window.console.error(a):window.console.log&&window.console.log(a))};_.dA=function(a,b){var c=_.En();_.je(a,c);c=Dz(c);if(_.$z(c)){var d=_.aA();_.bA(c);b?_.qe(b,"click",function(){_.cA(c,d)}):_.cA(c,d)}};
_.aA=function(){var a=new eA;_.Yz(function(b){a.aF&&b&&(b.access_token&&_.Be("isPlusUser",!0),b["g-oauth-window"]&&(a.aF=!1,_.tf.warn("OTA app install is no longer supported.")))});return a};eA=function(){this.aF=!1};_.bA=function(a){a=_.fA(a);_.gA(a.callback);_.Iz(function(){_.Wz(a)})};_.fA=function(a){hA(a);a.redirecturi&&delete a.redirecturi;Uy(function(b){return a[b]})||(a.authuser=0);return a};hA=function(a){/^\s*$/.test(a.scope||"")&&(a.scope="https://www.googleapis.com/auth/plus.login")};
_.gA=function(a){if("string"===typeof a)if(window[a])a=window[a];else{_.Zz('Callback function named "'+a+'" not found');return}a&&_.Yz(a)};_.cA=function(a,b){b.aF=!0;a=_.fA(a);_.Xz(a)};
_.D("gapi.auth.authorize",Rz);_.D("gapi.auth.checkSessionState",function(a,b){var c=_.he();c.client_id=a.client_id;c.session_state=a.session_state;_.Iz(function(){uz()?pz.send("check_session_state",c,function(d){b.call(null,d[0])},_.em):_.yf.call(_.My,"check_session_state",qz(function(d){b.call(null,d)}),c.session_state,c.client_id)})});_.D("gapi.auth.getAuthHeaderValueForFirstParty",Sz);_.D("gapi.auth.getToken",cz);
_.D("gapi.auth.getVersionInfo",function(a,b){_.Iz(function(){var c=_.Jh()||"",d=null,e=null;c&&(e=c.split(" "),2==e.length&&(d=e[1]));d?uz()?pz.send("get_versioninfo",{xapisidHash:d,sessionIndex:b},function(f){a(f[0])},_.em):_.yf.call(_.My,"get_versioninfo",qz(function(f){a(f)}),d,b):a()})});_.D("gapi.auth.init",_.Iz);_.D("gapi.auth.setToken",_.dz);_.D("gapi.auth.signIn",function(a){_.dA(a)});_.D("gapi.auth.signOut",function(){var a=cz();a&&Kz(a,a.cookie_policy)});
_.D("gapi.auth.unsafeUnpackIdToken",Fz);_.D("gapi.auth._pimf",_.Wz);_.D("gapi.auth._oart",Cz);_.D("gapi.auth._guss",function(a){return fz(a).read()});

var iA=_.En();iA.clientid&&iA.scope&&iA.callback&&!_.Ae("disableRealtimeCallback")&&_.bA(iA);

});
// Google Inc.
