gapi.loaded_1(function(_){var window=this;
var tt=_.Ua.xc,ut={open:function(a){var b=_.Gn(a.lc());return a.Jg(b,{style:_.Hn(b)})},attach:function(a,b){var c=_.Gn(a.lc()),d=b.id,e=b.getAttribute("data-postorigin")||b.src,f=/#(?:.*&)?rpctoken=(\d+)/.exec(e);f=f&&f[1];a.id=d;a.Ft=f;a.el=c;a.zh=b;_.Ua.Yk[d]=a;b=_.uq(a.methods);b._ready=a.Jy;b._close=a.close;b._open=a.qQ;b._resizeMe=a.eR;b._renderstart=a.iQ;_.vq(b,d,"",a,!0);_.Mf.Pz(a.id,a.Ft);_.Mf.Vi(a.id,e);c=_.Ua.Cm({style:_.Hn(c)});for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&
("style"==h?a.zh.style.cssText=c[h]:a.zh.setAttribute(h,c[h]))}};ut.onready=_.In;ut.onRenderStart=_.In;ut.close=_.Jn;tt("inline",ut);
_.ih=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(_.Hb(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}};_.jh=function(a,b){b=b||a;for(var c=0,d=0,e={};d<a.length;){var f=a[d++],h=_.Fb(f)?"o"+_.Jb(f):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(e,h)||(e[h]=!0,b[c++]=f)}b.length=c};
_.kh=function(a,b){a.src=_.dc(b);var c,d;(c=(b=null==(d=(c=(a.ownerDocument&&a.ownerDocument.defaultView||window).document).querySelector)?void 0:d.call(c,"script[nonce]"))?b.nonce||b.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",c)};_.lh=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 mh,nh,sh;mh={};nh=null;_.rh=_.rd||_.sd||!_.hh&&!_.od&&"function"==typeof _.Ya.atob;_.th=function(a,b){void 0===b&&(b=0);sh();b=mh[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("")};
_.uh=function(a,b){function c(l){for(;d<a.length;){var m=a.charAt(d++),n=nh[m];if(null!=n)return n;if(!_.kc(m))throw Error("F`"+m);}return l}sh();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))}};
sh=function(){if(!nh){nh={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));mh[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===nh[f]&&(nh[f]=e)}}}};
_.Oh={};var Qh;_.Ph=function(a){this.ub=a||{cookie:""}};_.g=_.Ph.prototype;_.g.isEnabled=function(){if(!_.Ya.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{bF: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.Tfa;d=c.secure||!1;var f=c.domain||void 0;var h=c.path||void 0;var k=c.bF}if(/[;=\s]/.test(a))throw Error("I`"+a);if(/[;\r\n]/.test(b))throw Error("J`"+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,_.lc)(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.Yh(a);this.set(a,"",{bF:0,path:b,domain:c});return d};_.g.Uf=function(){return Qh(this).keys};_.g.Wc=function(){return Qh(this).values};_.g.isEmpty=function(){return!this.ub.cookie};_.g.Ib=function(){return this.ub.cookie?(this.ub.cookie||"").split(";").length:0};
_.g.Yh=function(a){return void 0!==this.get(a)};_.g.qj=function(a){for(var b=Qh(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};_.g.clear=function(){for(var a=Qh(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};Qh=function(a){a=(a.ub.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=(0,_.lc)(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}};
_.Rh=new _.Ph("undefined"==typeof document?null:document);
_.bi={};_.ci=function(a){return _.bi[a||"token"]||null};
var Fu,Gu,Hu,Iu,Ju,Lu,Mu,Nu,Ou,Qu;_.Eu=!1;Fu=function(a){try{_.Eu&&window.console&&window.console.log&&window.console.log(a)}catch(b){}};Gu=function(a){try{window.console&&window.console.warn&&window.console.warn(a)}catch(b){}};Hu=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};
Iu=function(a,b){function c(){}if(!a)throw Error("W");if(!b)throw Error("X");c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a};Ju=function(a){return"[object Function]"===Object.prototype.toString.call(a)};_.Ku=function(a){var b={};if(a)for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b};Lu=function(a){var b=location.hash;a=new RegExp("[&#]"+a+"=([^&]*)");b=decodeURIComponent(b);b=a.exec(b);return null==b?"":b[1].replace(/\+/g," ")};
Mu=function(a,b,c){if(a.addEventListener)a.addEventListener(b,c,!1);else if(a.attachEvent)a.attachEvent("on"+b,c);else throw Error("Y`"+b);};Nu={token:1,id_token:1};Ou=function(){var a=navigator.userAgent.toLowerCase();return-1!=a.indexOf("msie")&&8==parseInt(a.split("msie")[1],10)};_.Pu=window.JSON;Qu=function(a){this.sJ=a||[];this.Xb={}};
Qu.prototype.addEventListener=function(a,b){if(!(0<=Hu(this.sJ,a)))throw Error("$`"+a);if(!Ju(b))throw Error("aa`"+a);this.Xb[a]||(this.Xb[a]=[]);0>Hu(this.Xb[a],b)&&this.Xb[a].push(b)};Qu.prototype.removeEventListener=function(a,b){if(!(0<=Hu(this.sJ,a)))throw Error("$`"+a);Ju(b)&&this.Xb[a]&&this.Xb[a].length&&(b=Hu(this.Xb[a],b),0<=b&&this.Xb[a].splice(b,1))};
Qu.prototype.dispatchEvent=function(a){var b=a.type;if(!(b&&0<=Hu(this.sJ,b)))throw Error("ba`"+b);if(this.Xb[b]&&this.Xb[b].length)for(var c=this.Xb[b].length,d=0;d<c;d++)this.Xb[b][d](a)};var Ru,Su,Tu,Xu,Yu,ov,pv,rv,sv,uv,Ev;Ru={};Su={};Tu={google:{authServerUrl:"https://accounts.google.com/o/oauth2/auth",idpIFrameUrl:"https://accounts.google.com/o/oauth2/iframe"}};_.Uu=function(a,b){if(a=Tu[a])return a[b]};_.Vu=function(a,b){if(!a)throw Error("ca");if(!b.authServerUrl)throw Error("da");if(!b.idpIFrameUrl)throw Error("ea");Tu[a]={authServerUrl:b.authServerUrl,idpIFrameUrl:b.idpIFrameUrl}};_.Wu=void 0;
Xu=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")};Yu=function(){this.A6=window;this.Uv=this.em=this.wt=this.Ih=null};
Yu.prototype.open=function(a,b,c,d){Zu(this);this.wt?(this.em&&(this.em(),this.em=null),$u(this)):this.wt="authPopup"+Math.floor(1E6*Math.random()+1);a:{this.Ih=this.A6.open(a,this.wt,b);try{this.Ih.focus();if(this.Ih.closed||"undefined"==typeof this.Ih.closed)throw Error("ga");_.Wu=this.Ih}catch(e){d&&setTimeout(d,0);this.Ih=null;break a}c&&(this.em=c,av(this))}};
var Zu=function(a){try{if(null==a.Ih||a.Ih.closed)a.Ih=null,a.wt=null,$u(a),a.em&&(a.em(),a.em=null)}catch(b){a.Ih=null,a.wt=null,$u(a)}},av=function(a){a.Uv=window.setInterval(function(){Zu(a)},300)},$u=function(a){a.Uv&&(window.clearInterval(a.Uv),a.Uv=null)};Su=Su||{};var bv=function(a,b){this.Sb=a;this.BE=b;this.ld=null;this.Pm=!1};bv.prototype.start=function(){if(!this.Pm&&!this.ld){var a=this;this.ld=window.setTimeout(function(){a.clear();a.Pm||(a.Sb(),a.Pm=!0)},Su.CN(this.BE))}};
bv.prototype.clear=function(){this.ld&&(window.clearTimeout(this.ld),this.ld=null)};var cv=function(a,b){var c=Su.Vq;this.b0=Su.Pq;this.hT=c;this.Sb=a;this.BE=b;this.ld=null;this.Pm=!1;var d=this;this.iT=function(){document[d.b0]||(d.clear(),d.start())}};cv.prototype.start=function(){if(!this.Pm&&!this.ld){Mu(document,this.hT,this.iT);var a=this;this.ld=window.setTimeout(function(){a.clear();a.Pm||(a.Sb(),a.Pm=!0)},Su.CN(this.BE))}};
cv.prototype.clear=function(){var a=this.hT,b=this.iT,c=document;if(c.removeEventListener)c.removeEventListener(a,b,!1);else if(c.detachEvent)c.detachEvent("on"+a,b);else throw Error("Z`"+a);this.ld&&(window.clearTimeout(this.ld),this.ld=null)};Su.Pq=null;Su.Vq=null;
Su.x0=function(){var a=document;"undefined"!==typeof a.hidden?(Su.Pq="hidden",Su.Vq="visibilitychange"):"undefined"!==typeof a.msHidden?(Su.Pq="msHidden",Su.Vq="msvisibilitychange"):"undefined"!==typeof a.webkitHidden&&(Su.Pq="webkitHidden",Su.Vq="webkitvisibilitychange")};Su.x0();Su.iX=function(a,b){return Su.Pq&&Su.Vq?new cv(a,b):new bv(a,b)};Su.CN=function(a){return Math.max(1,a-(new Date).getTime())};
var dv=function(a,b){document.cookie="G_ENABLED_IDPS="+a+";domain=."+b+";expires=Fri, 31 Dec 9999 12:00:00 GMT;path=/"},ev=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;n=m=0}function b(r){for(var p=h,t=0;64>t;t+=4)p[t/4]=r[t]<<24|r[t+1]<<16|r[t+2]<<8|r[t+3];for(t=16;80>t;t++)r=p[t-3]^p[t-8]^p[t-14]^p[t-16],p[t]=(r<<1|r>>>31)&4294967295;r=e[0];var v=e[1],q=e[2],w=e[3],z=e[4];for(t=0;80>t;t++){if(40>t)if(20>t){var A=w^v&(q^w);var F=1518500249}else A=
v^q^w,F=1859775393;else 60>t?(A=v&q|w&(v|q),F=2400959708):(A=v^q^w,F=3395469782);A=((r<<5|r>>>27)&4294967295)+A+z+F+p[t]&4294967295;z=w;w=q;q=(v<<30|v>>>2)&4294967295;v=r;r=A}e[0]=e[0]+r&4294967295;e[1]=e[1]+v&4294967295;e[2]=e[2]+q&4294967295;e[3]=e[3]+w&4294967295;e[4]=e[4]+z&4294967295}function c(r,p){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var t=[],v=0,q=r.length;v<q;++v)t.push(r.charCodeAt(v));r=t}p||(p=r.length);t=0;if(0==m)for(;t+64<p;)b(r.slice(t,t+64)),t+=64,n+=64;for(;t<
p;)if(f[m++]=r[t++],n++,64==m)for(m=0,b(f);t+64<p;)b(r.slice(t,t+64)),t+=64,n+=64}function d(){var r=[],p=8*n;56>m?c(k,56-m):c(k,64-(m-56));for(var t=63;56<=t;t--)f[t]=p&255,p>>>=8;b(f);for(t=p=0;5>t;t++)for(var v=24;0<=v;v-=8)r[p++]=e[t]>>v&255;return r}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 r=d(),p="",t=0;t<r.length;t++)p+="0123456789ABCDEF".charAt(Math.floor(r[t]/16))+"0123456789ABCDEF".charAt(r[t]%16);return p}}},fv=
window.crypto,gv=!1,hv=0,iv=1,jv=0,kv="",lv=function(a){a=a||window.event;var b=a.screenX+a.clientX<<16;b+=a.screenY+a.clientY;b*=(new Date).getTime()%1E6;iv=iv*b%jv;if(3==++hv)if(a=window,b=lv,a.removeEventListener)a.removeEventListener("mousemove",b,!1);else if(a.detachEvent)a.detachEvent("onmousemove",b);else throw Error("Z`mousemove");},mv=function(a){var b=ev();b.update(a);return b.Zh()};gv=!!fv&&"function"==typeof fv.getRandomValues;
gv||(jv=1E6*(screen.width*screen.width+screen.height),kv=mv(document.cookie+"|"+document.location+"|"+(new Date).getTime()+"|"+Math.random()),Mu(window,"mousemove",lv));Ru=Ru||{};Ru.aU="ssIFrame_";
_.nv=function(a,b,c){c=void 0===c?!1:c;this.Ab=a;if(!this.Ab)throw Error("ha");a=_.Uu(a,"idpIFrameUrl");if(!a)throw Error("ia");this.tO=a;if(!b)throw Error("ja");this.Fl=b;a=this.tO;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.c4=[location.protocol,"//",location.host].join("");
this.pu=this.iE=this.Tm=!1;this.pO=null;this.Iy=[];this.Vp=[];this.lj={};this.Um=void 0;this.Fq=c};_.g=_.nv.prototype;_.g.show=function(){var a=this.Um;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.Ub=function(){Xu(this.Um)};
_.g.ly=function(a){if(this.Tm)a&&a(this);else{if(!this.Um){var b=Ru.aU+this.Ab;var c=this.Ab;var d=location.hostname;var e,f=document.cookie.match("(^|;) ?G_ENABLED_IDPS=([^;]*)(;|$)");f&&2<f.length&&(e=f[2]);(f=e&&0<=Hu(e.split("|"),c))?dv(e,d):dv(e?e+"|"+c:c,d);c=!f;var h=this.tO,k=this.c4;d=this.Fl;e=this.Fq;e=void 0===e?!1:e;f=document.createElement("iframe");f.setAttribute("id",b);b=f.setAttribute;var l="allow-scripts allow-same-origin";document.requestStorageAccess&&Ju(document.requestStorageAccess)&&
(l+=" allow-storage-access-by-user-activation");b.call(f,"sandbox",l);Xu(f);f.setAttribute("frame-border","0");b=[h,"#origin=",encodeURIComponent(k)];b.push("&rpcToken=");b.push(encodeURIComponent(d));c&&b.push("&clearCache=1");_.Eu&&b.push("&debug=1");e&&b.push("&supportBlocked3PCookies=1");document.body.appendChild(f);f.setAttribute("src",b.join(""));this.Um=f}a&&this.Iy.push(a)}};_.g.Vx=function(){return this.Tm&&this.pu};_.g.Dm=function(){return this.pO};
ov=function(a){for(var b=0;b<a.Iy.length;b++)a.Iy[b](a);a.Iy=[]};_.qv=function(a,b,c,d){if(a.Tm){if(a.Tm&&a.iE)throw a="Failed to communicate with IDP IFrame due to unitialization error: "+a.Dm(),Fu(a),Error(a);pv(a,{method:b,params:c},d)}else a.Vp.push({Cn:{method:b,params:c},callback:d}),a.ly()};pv=function(a,b,c){if(c){for(var d=b.id;!d||a.lj[d];)d=(new Date).getMilliseconds()+"-"+(1E6*Math.random()+1);b.id=d;a.lj[d]=c}b.rpcToken=a.Fl;a.Um.contentWindow.postMessage(_.Pu.stringify(b),a.jE)};
rv=function(a){if(a&&0<=a.indexOf("::"))throw Error("ka");};_.nv.prototype.Ki=function(a,b,c,d,e,f,h,k,l){l=void 0===l?!1:l;rv(f);b=_.Ku(b);_.qv(this,"getTokenResponse",{clientId:a,loginHint:c,request:b,sessionSelector:d,forceRefresh:h,skipCache:k,id:f,userInteracted:l},e)};_.nv.prototype.ky=function(a,b,c,d,e){b=_.Ku(b);_.qv(this,"listIdpSessions",{clientId:a,request:b,sessionSelector:c,forceRefresh:e},d)};sv=function(a,b,c){rv(b.identifier);_.qv(a,"getSessionSelector",b,c)};
_.tv=function(a,b,c,d,e){rv(b.identifier);_.qv(a,"setSessionSelector",{domain:b.domain,crossSubDomains:b.crossSubDomains,policy:b.policy,id:b.id,hint:d,disabled:!!c},e)};uv=function(a,b,c,d,e){b={clientId:b};c&&(b.pluginName=c);d&&(b.ackExtensionDate=d);_.qv(a,"monitorClient",b,e)};_.nv.prototype.revoke=_.ba(9);_.nv.prototype.nr=_.ba(11);Ru.Ax={};Ru.iD=function(a){return Ru.Ax[a]};
Ru.ly=function(a,b,c){c=void 0===c?!1:c;var d=Ru.iD(a);if(!d){d=String;if(gv){var e=new window.Uint32Array(1);fv.getRandomValues(e);e=Number("0."+e[0])}else e=iv,e+=parseInt(kv.substr(0,20),16),kv=mv(kv),e/=jv+Math.pow(16,20);d=new _.nv(a,d(2147483647*e),c);Ru.Ax[a]=d}d.ly(b)};Ru.GY=function(a){for(var b in Ru.Ax){var c=Ru.iD(b);if(c&&c.Um&&c.Um.contentWindow==a.source&&c.jE==a.origin)return c}};Ru.lZ=function(a){for(var b in Ru.Ax){var c=Ru.iD(b);if(c&&c.jE==a)return c}};Ru=Ru||{};
var wv=function(){var a=[],b;for(b in vv)a.push(vv[b]);Qu.call(this,a);this.Zk={};Fu("EventBus is ready.")};Iu(wv,Qu);var vv={sV:"sessionSelectorChanged",kB:"sessionStateChanged",VA:"authResult",LT:"displayIFrame"},yv=function(a,b){var c=xv;a&&b&&(c.Zk[a]||(c.Zk[a]=[]),0>Hu(c.Zk[a],b)&&c.Zk[a].push(b))},zv=function(a){var b=xv;a&&(b.Zk[a]||(b.Zk[a]=[]))},Av=function(a,b,c){return b&&a.Zk[b]&&0<=Hu(a.Zk[b],c)};_.g=wv.prototype;
_.g.g3=function(a){var b,c=!!a.source&&(a.source===_.Wu||a.source.opener===window);if(b=c?Ru.lZ(a.origin):Ru.GY(a)){try{var d=_.Pu.parse(a.data)}catch(e){Fu("Bad event, an error happened when parsing data.");return}if(!c){if(!d||!d.rpcToken||d.rpcToken!=b.Fl){Fu("Bad event, no RPC token.");return}if(d.id&&!d.method){c=d;if(a=b.lj[c.id])delete b.lj[c.id],a(c.result,c.error);return}}"fireIdpEvent"!=d.method?Fu("Bad IDP event, method unknown."):(a=d.params)&&a.type&&this.sO[a.type]?(d=this.sO[a.type],
c&&!d.eW?Fu("Bad IDP event. Source window cannot be a popup."):d.Kq&&!d.Kq.call(this,b,a)?Fu("Bad IDP event."):d.sf.call(this,b,a)):Fu("Bad IDP event.")}else Fu("Bad event, no corresponding Idp Stub.")};_.g.C4=function(a,b){return Av(this,a.Ab,b.clientId)};_.g.B4=function(a,b){b=b.clientId;return!b||Av(this,a.Ab,b)};_.g.rW=function(a,b){return Av(this,a.Ab,b.clientId)};_.g.n2=function(a,b){a.Tm=!0;a.pu=!!b.cookieDisabled;ov(a);for(b=0;b<a.Vp.length;b++)pv(a,a.Vp[b].Cn,a.Vp[b].callback);a.Vp=[]};
_.g.m2=function(a,b){b={error:b.error};a.Tm=!0;a.iE=!0;a.pO=b;a.Vp=[];ov(a)};_.g.lz=function(a,b){b.originIdp=a.Ab;this.dispatchEvent(b)};var xv=new wv,Bv=xv,Cv={};Cv.idpReady={sf:Bv.n2};Cv.idpError={sf:Bv.m2};Cv.sessionStateChanged={sf:Bv.lz,Kq:Bv.C4};Cv.sessionSelectorChanged={sf:Bv.lz,Kq:Bv.B4};Cv.authResult={sf:Bv.lz,Kq:Bv.rW,eW:!0};Cv.displayIFrame={sf:Bv.lz};xv.sO=Cv||{};Mu(window,"message",function(a){xv.g3.call(xv,a)});
_.Dv=function(a,b){this.ye=!1;if(!a)throw Error("la");var c=[],d;for(d in a)c.push(a[d]);Qu.call(this,c);this.Zc=[location.protocol,"//",location.host].join("");this.Zd=b.crossSubDomains?b.domain||this.Zc:this.Zc;if(!b)throw Error("ma");if(!b.idpId)throw Error("na");if(!_.Uu(b.idpId,"authServerUrl")||!_.Uu(b.idpId,"idpIFrameUrl"))throw Error("oa`"+b.idpId);this.Ab=b.idpId;this.Tb=void 0;this.pX=!!b.disableTokenRefresh;this.fY=!!b.forceTokenRefresh;this.B5=!!b.skipTokenCache;this.Fq=!!b.supportBlocked3PCookies;
b.pluginName&&(this.X2=b.pluginName);b.ackExtensionDate&&(this.XV=b.ackExtensionDate);this.setOptions(b);this.zr=[];this.pu=this.Ej=this.XO=!1;this.Ci=void 0;this.RQ();this.yd=void 0;var e=this,f=function(){Fu("Token Manager is ready.");if(e.zr.length)for(var h=0;h<e.zr.length;h++)e.zr[h].call(e);e.XO=!0;e.zr=[]};Ru.ly(this.Ab,function(h){e.yd=h;h.Tm&&h.iE?(e.Ej=!0,e.Ci=h.Dm(),e.Mp(e.Ci)):(e.pu=h.Vx(),e.Tb?uv(e.yd,e.Tb,e.X2,e.XV,function(k){var l=!!k.validOrigin,m=!!k.blocked,n=!!k.suppressed;k.invalidExtension?
(e.Ci={error:"Invalid value for ack_extension_date. Please refer to [Migration Guide](https://developers.google.com/identity/gsi/web/guides/gis-migration) for more information."},e.Ej=!0,e.Mp(e.Ci)):l?m?n?(Gu("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."),
yv(e.Ab,e.Tb),f()):(e.Ci={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.Ej=!0,e.Mp(e.Ci)):(Gu("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."),
yv(e.Ab,e.Tb),f()):(e.Ci={error:"Not a valid origin for the client: "+e.Zc+" 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.Ej=!0,e.Mp(e.Ci))}):(zv(e.Ab),f()))},this.Fq)};Iu(_.Dv,Qu);_.g=_.Dv.prototype;_.g.setOptions=function(){};_.g.RQ=function(){};_.g.Mp=function(){};_.g.Vx=function(){return this.pu};_.g.Dm=function(){return this.Ci};Ev=function(a,b,c){return function(){b.apply(a,c)}};
_.Fv=function(a,b,c){if(a.XO)b.apply(a,c);else{if(a.Ej)throw a.Ci;a.zr.push(Ev(a,b,c))}};_.Dv.prototype.cL=_.ba(12);_.Dv.prototype.nr=_.ba(10);_.Hv=function(a,b){_.Dv.call(this,a,b);this.BQ=new Yu;this.Pj=this.tn=null;Gv(this)};Iu(_.Hv,_.Dv);_.Hv.prototype.setOptions=function(){};
var Iv=function(a,b){a.ve={crossSubDomains:!!b.crossSubDomains,id:b.sessionSelectorId,domain:a.Zd};b.crossSubDomains&&(a.ve.policy=b.policy)},Jv=function(a,b){if(!b.authParameters)throw Error("pa");if(!b.authParameters.scope)throw Error("qa");if(!b.authParameters.response_type)throw Error("ra");a.er=b.authParameters;a.er.redirect_uri||(a.er.redirect_uri=[location.protocol,"//",location.host,location.pathname].join(""));a.Pi=_.Ku(b.rpcAuthParameters||a.er);if(!a.Pi.scope)throw Error("sa");if(!a.Pi.response_type)throw Error("ta");
a:{var c=a.Pi.response_type.split(" ");for(var d=0,e=c.length;d<e;d++)if(c[d]&&!Nu[c[d]]){c=!0;break a}c=!1}if(c)throw Error("ua");b.enableSerialConsent&&(a.Pi.enable_serial_consent=!0);b.authResultIdentifier&&(a.sW=b.authResultIdentifier);b.spec_compliant&&(a.Pi.spec_compliant=b.spec_compliant)};
_.Hv.prototype.RQ=function(){var a=this;xv.addEventListener(vv.sV,function(b){a.ye&&a.ve&&b.originIdp==a.Ab&&!b.crossSubDomains==!a.ve.crossSubDomains&&b.domain==a.ve.domain&&b.id==a.ve.id&&a.kQ(b)});xv.addEventListener(vv.kB,function(b){a.ye&&b.originIdp==a.Ab&&b.clientId==a.Tb&&a.lQ(b)});xv.addEventListener(vv.VA,function(b){_.Wu=void 0;a.ye&&b.originIdp==a.Ab&&b.clientId==a.Tb&&b.id==a.Lj&&(a.tn&&(window.clearTimeout(a.tn),a.tn=null),a.Lj=void 0,a.ht(b))});xv.addEventListener(vv.LT,function(b){a.ye&&
b.originIdp==a.Ab&&(b.Ub?a.yd.Ub():a.yd.show())})};_.Hv.prototype.kQ=function(){};_.Hv.prototype.lQ=function(){};_.Hv.prototype.ht=function(){};var Lv=function(a,b){Kv(a);a.pX||(a.Pj=Su.iX(function(){a.Ki(!0)},b-3E5),navigator.onLine&&a.Pj.start())},Kv=function(a){a.Pj&&(a.Pj.clear(),a.Pj=null)},Gv=function(a){var b=window;Ou()&&(b=document.body);Mu(b,"online",function(){a.Pj&&a.Pj.start()});Mu(b,"offline",function(){a.Pj&&a.Pj.clear()})};_.Hv.prototype.Ki=function(){};_.Hv.prototype.RP=_.ba(13);
_.Hv.prototype.g1=function(a,b){if(!this.Tb)throw Error("ya");this.yd.ky(this.Tb,this.Pi,this.ve,a,b)};_.Hv.prototype.ky=function(a,b){_.Fv(this,this.g1,[a,b])};_.Nv=function(a){this.le=void 0;this.ih=!1;this.jq=void 0;_.Hv.call(this,_.Mv,a)};Iu(_.Nv,_.Hv);_.Mv={VJ:"noSessionBound",Uq:"userLoggedOut",sT:"activeSessionChanged",kB:"sessionStateChanged",iK:"tokenReady",MV:"tokenFailed",VA:"authResult",ERROR:"error"};
_.Nv.prototype.setOptions=function(a){if(!a.clientId)throw Error("za");this.Tb=a.clientId;this.Ca=a.id;Iv(this,a);Jv(this,a)};_.Nv.prototype.Mp=function(a){this.dispatchEvent({type:_.Mv.ERROR,error:"idpiframe_initialization_failed",details:a.error,idpId:this.Ab})};var Ov=function(a){Kv(a);a.jq=void 0;a.gy=void 0};_.g=_.Nv.prototype;
_.g.kQ=function(a){var b=a.newValue||{};if(this.le!=b.hint||this.ih!=!!b.disabled){a=this.le;var c=!this.le||this.ih;Ov(this);this.le=b.hint;this.ih=!!b.disabled;(b=!this.le||this.ih)&&!c?this.dispatchEvent({type:_.Mv.Uq,idpId:this.Ab}):b||(a!=this.le&&this.dispatchEvent({type:_.Mv.sT,idpId:this.Ab}),this.le&&this.Ki())}};
_.g.lQ=function(a){this.ih||(this.le?a.user||this.jq?a.user==this.le&&(this.jq?a.sessionState?this.jq=a.sessionState:(Ov(this),this.dispatchEvent({type:_.Mv.Uq,idpId:this.Ab})):a.sessionState&&(this.jq=a.sessionState,this.Ki())):this.Ki():this.dispatchEvent({type:_.Mv.kB,idpId:this.Ab}))};_.g.ht=function(a){this.dispatchEvent({type:_.Mv.VA,authResult:a.authResult})};_.g.Xr=_.ba(15);_.g.Rr=function(a){_.Fv(this,this.YC,[a])};_.g.YC=function(a){sv(this.yd,this.ve,a)};
_.g.sA=function(a,b,c,d){d=void 0===d?!1:d;if(!a)throw Error("Aa");Ov(this);this.le=a;this.ih=!1;b&&_.tv(this.yd,this.ve,!1,this.le);this.ye=!0;this.Ki(c,!0,d)};_.g.start=function(){_.Fv(this,this.hu,[])};
_.g.hu=function(){var a=this.Tb==Lu("client_id")?Lu("login_hint"):void 0;var b=this.Tb==Lu("client_id")?Lu("state"):void 0;this.uF=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.Rr(function(d){c.ye=!0;d&&d.hint?(Ov(c),c.le=d.hint,c.ih=!!d.disabled,c.ih?c.dispatchEvent({type:_.Mv.Uq,idpId:c.Ab}):c.sA(d.hint)):(Ov(c),c.le=void 0,c.ih=!(!d||!d.disabled),c.dispatchEvent({type:_.Mv.VJ,
autoOpenAuthUrl:!c.ih,idpId:c.Ab}))})}};_.g.cY=function(){var a=this;this.Rr(function(b){b&&b.hint?b.disabled?a.dispatchEvent({type:_.Mv.Uq,idpId:a.Ab}):a.Ki(!0):a.dispatchEvent({type:_.Mv.VJ,idpId:a.Ab})})};_.g.KM=function(){_.Fv(this,this.cY,[])};
_.g.Ki=function(a,b,c){var d=this;this.yd.Ki(this.Tb,this.Pi,this.le,this.ve,function(e,f){(f=f||e.error)?"user_logged_out"==f?(Ov(d),d.dispatchEvent({type:_.Mv.Uq,idpId:d.Ab})):(d.gy=null,d.dispatchEvent({type:_.Mv.MV,idpId:d.Ab,error:f})):(d.gy=e,d.jq=e.session_state,Lv(d,e.expires_at),e.idpId=d.Ab,b&&d.uF&&(e.state=d.uF,d.uF=void 0),d.dispatchEvent({type:_.Mv.iK,idpId:d.Ab,response:e}))},this.Ca,a,!1,void 0===c?!1:c)};_.g.revoke=_.ba(8);_.g.hR=_.ba(16);
_.Pv=function(a){this.Ul=null;_.Hv.call(this,{},a);this.ye=!0};Iu(_.Pv,_.Hv);_.g=_.Pv.prototype;_.g.setOptions=function(a){if(!a.clientId)throw Error("za");this.Tb=a.clientId;this.Ca=a.id;Iv(this,a);Jv(this,a)};_.g.Mp=function(a){this.Ul&&(this.Ul({authResult:{error:"idpiframe_initialization_failed",details:a.error}}),this.Ul=null)};_.g.ht=function(a){if(this.Ul){var b=this.Ul;this.Ul=null;b(a)}};_.g.Xr=_.ba(14);_.g.Rr=function(a){this.Ej?a(this.Dm()):_.Fv(this,this.YC,[a])};
_.g.YC=function(a){sv(this.yd,this.ve,a)};_.Qv=function(a,b,c){a.Ej?c(a.Dm()):_.Fv(a,a.G2,[b,c])};_.Pv.prototype.G2=function(a,b){this.yd.Ki(this.Tb,this.Pi,a,this.ve,function(c,d){d?b({error:d}):b(c)},this.Ca,this.fY,this.B5)};_.Pv.prototype.uP=_.ba(17);
var Rv=function(a){return Array.prototype.concat.apply([],arguments)},Sv=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 _.th(a,3).substring(0,64)},Tv=function(){var a=navigator.userAgent.toLowerCase();return 0>a.indexOf("edge/")&&(-1<a.indexOf("chrome/")||-1<a.indexOf("crios/"))},Uv=function(){var a=navigator.userAgent.toLowerCase();return-1<a.indexOf("firefox/")&&0>
a.indexOf("chrome/")&&0>a.indexOf("crios/")&&0>a.indexOf("safari/")},Vv=function(a,b,c){if(!a.ye)throw Error("va");b?_.tv(a.yd,a.ve,!0,void 0,c):_.tv(a.yd,a.ve,!0,a.le,c)},Wv=function(a){if(!a.ye)throw Error("va");return a.gy},Xv,Yv,Zv,$v,aw,bw,cw,dw,ew,gw;_.Pv.prototype.uP=_.fb(17,function(a,b){var c=this.yd,d=this.Tb,e=this.ve,f=_.Ku(this.Pi);delete f.response_type;_.qv(c,"getOnlineCode",{clientId:d,loginHint:a,request:f,sessionSelector:e},b)});
_.Nv.prototype.hR=_.fb(16,function(a){Wv(this)&&Wv(this).access_token&&(this.yd.revoke(this.Tb,Wv(this).access_token,a),Vv(this,!0))});
_.Nv.prototype.Xr=_.fb(15,function(){var a=this;return function(b){if(b&&b.authResult&&b.authResult.login_hint)if(a.Vx()&&a.Fq&&(Tv()||Uv())){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.Ab};a.gy=b;a.dispatchEvent({type:_.Mv.iK,idpId:a.Ab,response:b})}else a.sA(b.authResult.login_hint,a.ih||b.authResult.login_hint!=a.le,!0,!0)}});
_.Pv.prototype.Xr=_.fb(14,function(a){var b=this;return function(c){c&&c.authResult&&c.authResult.login_hint?b.Rr(function(d){_.tv(b.yd,b.ve,d&&d.disabled,c.authResult.login_hint,function(){_.Qv(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"})}});_.Hv.prototype.RP=_.fb(13,function(){this.Tb&&_.qv(this.yd,"startPolling",{clientId:this.Tb,origin:this.Zc,id:this.Lj})});
_.nv.prototype.revoke=_.fb(9,function(a,b,c){_.qv(this,"revoke",{clientId:a,token:b},c)});_.Nv.prototype.revoke=_.fb(8,function(a){_.Fv(this,this.hR,[a])});Xv=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};
Yv=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};
Zv=function(a,b,c,d,e,f,h){var k=_.Uu(a,"authServerUrl");if(!k)throw Error("fa`"+a);a=_.Ku(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=Yv())&&(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("&")};
$v=function(a,b,c,d){if(!a.Tb)throw Error("wa");a.Lj=c||a.sW||"auth"+Math.floor(1E6*Math.random()+1);b=b||{};b.extraQueryParams=b.extraQueryParams||{};if(!b.extraQueryParams.redirect_uri){var e=a.Zc.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.Lj);c.redirect_uri=e.join("")}return Zv(a.Ab,a.Zd,a.Tb,a.er,!0,b,d)};aw=function(a,b,c){if(!a.Tb)throw Error("wa");return Zv(a.Ab,a.Zd,a.Tb,a.er,!1,b,c)};
bw=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(" ")};cw=function(a,b){a.tn&&window.clearTimeout(a.tn);a.tn=window.setTimeout(function(){a.Lj==b&&(_.Wu=void 0,a.tn=null,a.Lj=void 0,a.ht({authResult:{error:"popup_closed_by_user"}}))},1E3)};
dw=function(a,b,c){if(!a.Tb)throw Error("xa");c=c||{};a.Vx()&&a.Fq&&(Tv()||Uv())&&(c.responseType=bw(c.responseType));c=$v(a,c.sessionMeta,c.oneTimeId,c.responseType);(Object.hasOwnProperty.call(window,"ActiveXObject")&&!window.ActiveXObject||Xv())&&_.Fv(a,a.RP,[]);var d=a.Lj;a.BQ.open(c,b,function(){a.Lj==d&&cw(a,d)},function(){a.Lj=void 0;a.ht({authResult:{error:"popup_blocked_by_browser"}})})};ew=function(a,b,c){a.Ej?c(a.Dm()):_.Fv(a,a.uP,[b,c])};
_.fw=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("")};
gw=function(a){var b=[];_.uh(a,function(c){b.push(c)});return b};_.hw=function(a,b){_.bi[b||"token"]=a};_.iw=function(a){delete _.bi[a||"token"]};_.Pu={parse:function(a){a=_.Bf("["+String(a)+"]");if(!1===a||1!==a.length)throw new SyntaxError("JSON parsing failed.");return a[0]},stringify:function(a){return _.Cf(a)}};_.Pv.prototype.OC=function(a,b){_.Fv(this,this.TX,[a,b])};_.Pv.prototype.TX=function(a,b){this.yd.OC(this.Tb,a,this.Pi,this.ve,b)};_.nv.prototype.OC=function(a,b,c,d,e){c=_.Ku(c);_.qv(this,"gsi:fetchLoginHint",{clientId:a,loginHint:b,request:c,sessionSelector:d},e)};var jw,kw=["client_id","cookie_policy","scope"],lw="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 ack_extension_date gsiwebsdk".split(" "),mw=["authuser","after_redirect","access_type","hl"],nw=["login_hint","prompt"],ow={clientid:"client_id",cookiepolicy:"cookie_policy"},pw=["approval_prompt",
"authuser","login_hint","prompt","hd"],qw=["login_hint","g-oauth-window","status"],rw=Math.min(_.Oe("oauth-flow/authWindowWidth",599),screen.width-20),sw=Math.min(_.Oe("oauth-flow/authWindowHeight",600),screen.height-30);var tw=function(a){_.gb.call(this,a)};_.D(tw,_.gb);tw.prototype.name="gapi.auth2.ExternallyVisibleError";var uw=function(){};uw.prototype.select=function(a,b){if(a.sessions&&1==a.sessions.length&&(a=a.sessions[0],a.login_hint)){b(a);return}b()};var vw=function(){};vw.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 ww=function(a){this.tW=a};
ww.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.tW){d.login_hint?b(d):b();return}}b()};var xw=function(a){this.Vd=a;this.Lz=[]};xw.prototype.select=function(a){var b=0,c=this,d=function(e){if(e)a(e);else{var f=c.Lz[b];f?(b++,c.Vd.ky(function(h){h?f.select(h,d):d()})):a()}};d()};var yw=function(a){a=new xw(a);a.Lz.push(new uw);return a},zw=function(a){a=new xw(a);a.Lz.push(new vw);return a},Aw=function(a,b){void 0===b||null===b?b=yw(a):(a=new xw(a),a.Lz.push(new ww(b)),b=a);return b};var Bw=function(a){this.sf=a;this.isActive=!0};Bw.prototype.remove=function(){this.isActive=!1};Bw.prototype.trigger=function(){};var Cw=function(a){this.remove=function(){a.remove()};this.trigger=function(){a.trigger()}},Dw=function(){this.Xb=[]};Dw.prototype.add=function(a){this.Xb.push(a)};Dw.prototype.notify=function(a){for(var b=this.Xb,c=[],d=0;d<b.length;d++){var e=b[d];e.isActive&&(c.push(e),_.Hj(Ew(e.sf,a)))}this.Xb=c};var Ew=function(a,b){return function(){a(b)}};var Gw=function(a){this.Oa=null;this.u6=new Fw(this);this.Xb=new Dw;void 0!=a&&this.set(a)};Gw.prototype.set=function(a){a!=this.Oa&&(this.Oa=a,this.u6.value=a,this.Xb.notify(this.Oa))};Gw.prototype.get=function(){return this.Oa};Gw.prototype.V=function(a){a=new Hw(this,a);this.Xb.add(a);return a};Gw.prototype.get=Gw.prototype.get;var Hw=function(a,b){Bw.call(this,b);this.j1=a};_.D(Hw,Bw);Hw.prototype.trigger=function(){var a=this.sf;a(this.j1.get())};var Fw=function(a){this.value=null;this.V=function(b){return new Cw(a.V(b))}};var Iw={L8:"fetch_basic_profile",N9:"login_hint",kaa:"prompt",saa:"redirect_uri",Jaa:"scope",Yba:"ux_mode",uba:"state"},Jw=function(a){this.Ia={};if(a&&!_.Gi(a))if("function"==typeof a.get)this.Ia=a.get();else for(var b in Iw){var c=Iw[b];c in a&&(this.Ia[c]=a[c])}};Jw.prototype.get=function(){return this.Ia};Jw.prototype.YR=function(a){this.Ia.scope=a;return this};Jw.prototype.ss=function(){return this.Ia.scope};
var Kw=function(a,b){var c=a.Ia.scope;b=Rv(b.split(" "),c?c.split(" "):[]);_.jh(b);a.Ia.scope=b.join(" ")};_.g=Jw.prototype;_.g.f5=function(a){this.Ia.prompt=a;return this};_.g.nZ=function(){return this.Ia.prompt};_.g.G4=function(){_.Gf.warn("Property app_package_name no longer supported and was not set");return this};_.g.nY=function(){_.Gf.warn("Property app_package_name no longer supported")};_.g.We=function(a){this.Ia.state=a};_.g.getState=function(){return this.Ia.state};var Lw=function(){return["toolbar=no","location="+(window.opera?"no":"yes"),"directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no","width="+rw,"height="+sw,"top="+(screen.height-sw)/2,"left="+(screen.width-rw)/2].join()},Mw=function(a){a=a&&a.id_token;if(!a||!a.split(".")[1])return null;a=(a.split(".")[1]+"...").replace(/^((....)+).?.?.?$/,"$1");return JSON.parse(_.fw(gw(a)))},Nw=function(){jw=_.Oe("auth2/idpValue","google");var a=_.Oe("oauth-flow/authUrl","https://accounts.google.com/o/oauth2/auth"),
b=_.Oe("oauth-flow/idpIframeUrl","https://accounts.google.com/o/oauth2/iframe");_.Vu(jw,{authServerUrl:a,idpIFrameUrl:b})},Ow=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}_.Fb(a[e])||(a[e]={});a=a[e]}},Pw=function(){var a=window.location.origin;a||(a=window.location.protocol+"//"+window.location.host);return a},Rw=function(){var a=Qw();a.storage_path&&window.sessionStorage.setItem(a.storage_path,Pw()+window.location.pathname);if("enforced"==a.status.toLowerCase())throw new tw("gapi.auth2 is disabled on this website, but it is still used on page "+
window.location.href);"informational"==a.status.toLowerCase()&&_.Gf.warn("gapi.auth2 is disabled on this website, but it is still used on page "+window.location.href)};var Sw=function(a){var b=a?(b=Mw(a))?b.sub:null:null;this.Ca=b;this.Bc=a?_.yj(a):null};_.g=Sw.prototype;_.g.getId=function(){return this.Ca};_.g.fD=function(){var a=Mw(this.Bc);return a?a.hd:null};_.g.Xf=function(){return!!this.Bc};_.g.Gk=function(a){if(a)return this.Bc;a=Tw;var b=_.yj(this.Bc);!a.Kx||a.dE||a.Q_||(delete b.access_token,delete b.scope);return b};_.g.fG=function(){return Tw.fG()};_.g.Zj=function(){this.Bc=null};_.g.QY=function(){return this.Bc?this.Bc.scope:null};
_.g.update=function(a){this.Ca=a.Ca;this.Bc=a.Bc;this.Bc.id_token?this.qv=new Uw(this.Bc):this.qv&&(this.qv=null)};var Vw=function(a){return a.Bc&&"object"==typeof a.Bc.session_state?_.yj(a.Bc.session_state.extraQueryParams||{}):{}};_.g=Sw.prototype;_.g.Or=function(){var a=Vw(this);return a&&void 0!==a.authuser&&null!==a.authuser?a.authuser:null};
_.g.Yj=function(a){var b=Tw,c=new Jw(a);b.dE=c.ss()?!0:!1;Tw.Kx&&Kw(c,"openid profile email");return new _.Xj(function(d,e){var f=Vw(this);f.login_hint=this.getId();f.scope=c.ss();Ww(b,d,e,f)},this)};_.g.us=function(a){return new _.Xj(function(b,c){var d=a||{},e=Tw;d.login_hint=this.getId();e.us(d).then(b,c)},this)};_.g.FZ=function(a){return this.Yj(a)};_.g.disconnect=function(){return Tw.disconnect()};_.g.qY=function(){return this.qv};
_.g.wx=function(a){if(!this.Xf())return!1;var b=this.Bc&&this.Bc.scope?this.Bc.scope.split(" "):"";return _.Tb(a?a.split(" "):[],function(c){return _.ib(b,c)})};var Uw=function(a){a=Mw(a);this.kY=a.sub;this.zf=a.name;this.BZ=a.given_name;this.RX=a.family_name;this.yO=a.picture;this.dw=a.email};_.g=Uw.prototype;_.g.getId=function(){return this.kY};_.g.zg=function(){return this.zf};_.g.OY=function(){return this.BZ};_.g.JY=function(){return this.RX};_.g.WY=function(){return this.yO};_.g.Yr=function(){return this.dw};var Qw,Xw;Qw=function(){var a=_.Rh.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]}:(_.Gf.warn("The G_AUTH2_MIGRATION cookie value is not valid."),{status:"none"})};Xw=function(a){var b=location;if(a&&"none"!=a)return"single_host_origin"==a?b.protocol+"//"+b.host:a};
_.Yw=function(a){if(!a)throw new tw("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 tw("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(!_.Li(b,"."+a)&&!_.Li(b,a))throw new tw("Invalid cookiePolicy domain");return d};var $w=function(a){var b=a||{},c=Zw();_.Qb(lw,function(d){"undefined"===typeof b[d]&&"undefined"!==typeof c[d]&&(b[d]=c[d])});return b},Zw=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;ow[d]&&(d=ow[d]);_.ib(lw,d)&&e&&(a[d]="true"==e?!0:"false"==e?!1:e)}}return a},ax=function(a){return String(a).replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},bx=function(a){_.Qb(lw,
function(b){var c=ax(b);"undefined"!==typeof a[c]&&"undefined"===typeof a[b]&&(a[b]=a[c],delete a[c])})},cx=function(a){a=$w(a);bx(a);a.cookie_policy||(a.cookie_policy="single_host_origin");var b=lw+mw,c;for(c in a)0>b.indexOf(c)&&delete a[c];return a},dx=function(a,b){if(!a)throw new tw("Empty initial options.");for(var c=0;c<kw.length;++c)if(!(b&&"scope"==kw[c]||a[kw[c]]))throw new tw("Missing required parameter '"+kw[c]+"'");_.Yw(a.cookie_policy)},fx=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:Xw(a.cookie_policy),disableTokenRefresh:!!a.disable_token_refresh,idpId:jw};ex(b,a);_.Qb(nw,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=_.Oe("auth2/pluginName");c&&(b.pluginName=c)}a.ack_extension_date&&
(b.authParameters.ack_extension_date=a.ack_extension_date,b.ackExtensionDate=a.ack_extension_date);return b},ex=function(a,b){var c=b.oidc_spec_compliant;b=b.nonce;c&&(a.spec_compliant=c,b=b||Sv());b&&(a.authParameters.nonce=b,a.forceTokenRefresh=!0,a.skipTokenCache=!0)},kx=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=gx(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:Xw(c),idpId:jw};f&&(m.authParameters.hd=f,m.rpcAuthParameters.hd=f);h&&(m.rpcAuthParameters.spec_compliant=h,k=k||Sv());k&&(m.authParameters.nonce=k,m.rpcAuthParameters.nonce=k,m.forceTokenRefresh=!0,m.skipTokenCache=!0);_.Qb(nw.concat(mw),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 hx(a.response_type||"token"),
ix(b)&&(m.authParameters.include_granted_scopes=a.include_granted_scopes),jx(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=_.Oe("auth2/pluginName"))&&(m.pluginName=b);a.ack_extension_date&&(m.authParameters.ack_extension_date=a.ack_extension_date,m.rpcAuthParameters.ack_extension_date=
a.ack_extension_date,m.ackExtensionDate=a.ack_extension_date);return m},gx=function(a){a=new hx(a.response_type||"token");var b=[];jx(a)&&b.push("token");lx(a,"id_token")&&b.push("id_token");0==b.length&&(b=["token","id_token"]);return b.join(" ")},mx=["permission","id_token"],nx=/(^|[^_])token/,hx=function(a){this.Zp=[];this.xE(a)};
hx.prototype.xE=function(a){a?((0<=a.indexOf("permission")||a.match(nx))&&this.Zp.push("permission"),0<=a.indexOf("id_token")&&this.Zp.push("id_token"),0<=a.indexOf("code")&&this.Zp.push("code")):this.Zp=mx};var ix=function(a){return lx(a,"code")},jx=function(a){return lx(a,"permission")};hx.prototype.toString=function(){return this.Zp.join(" ")};var lx=function(a,b){var c=!1;_.Qb(a.Zp,function(d){d==b&&(c=!0)});return c};var px=function(a,b,c){this.ln=b;this.Z1=a;for(var d in a)a.hasOwnProperty(d)&&ox(this,d);if(c&&c.length)for(a=0;a<c.length;a++)this[c[a]]=this.ln[c[a]]},ox=function(a,b){a[b]=function(){return a.Z1[b].apply(a.ln,arguments)}};px.prototype.then=function(a,b,c){var d=this;return _.bk().then(function(){return qx(d.ln,a,b,c)})};_.Bj(px);var Tw,rx,tx;Tw=null;_.sx=function(){return Tw?rx():null};rx=function(){return new px(tx.prototype,Tw,["currentUser","isSignedIn"])};tx=function(a){delete a.include_granted_scopes;this.Ia=fx(a);this.gX=a.cookie_policy;this.Q_=!!a.scope;(this.Kx=!1!==a.fetch_basic_profile)&&(this.Ia.authParameters.scope=ux(this,"openid profile email"));_.Oh.GSI_SUPPORT_BLOCKED_3P_COOKIES&&(this.Fq=this.Ia.supportBlocked3PCookies=!0);this.Fs=a.hosted_domain;this.r6=a.ux_mode||"popup";this.o3=a.redirect_uri||null;this.uE()};
tx.prototype.uE=function(){this.currentUser=new Gw(new Sw(null));this.isSignedIn=new Gw(!1);this.Vd=new _.Nv(this.Ia);this.Qx=this.vp=null;this.V0=new _.Xj(function(a,b){this.vp=a;this.Qx=b},this);this.Hy={};this.Os=!0;vx(this);this.Vd.start()};
var vx=function(a){a.Vd.addEventListener("error",function(b){a.Os&&a.vp&&(a.Os=!1,a.Qx({error:b.error,details:b.details}),a.vp=null,a.Qx=null)});a.Vd.addEventListener("authResult",function(b){b&&b.authResult&&a.ff(b);a.Vd.Xr()(b)});a.Vd.addEventListener("tokenReady",function(b){var c=new Sw(b.response);if(a.Fs&&a.Fs!=c.fD())a.ff({type:"tokenFailed",reason:"Account domain does not match hosted_domain specified by gapi.auth2.init.",accountDomain:c.fD(),expectedDomain:a.Fs});else{a.currentUser.get().update(c);
var d=a.currentUser;d.Xb.notify(d.Oa);a.isSignedIn.set(!0);c=c.Or();(d=_.Yw(a.gX))&&c&&_.Rh.set(["G_AUTHUSER_","https:"===window.location.protocol&&d.Ke?"S":"H",d.ei].join(""),c,{domain:d.domain,secure:d.isSecure});_.hw(b.response);a.ff(b)}});a.Vd.addEventListener("noSessionBound",function(b){a.Os&&b.autoOpenAuthUrl?(a.Os=!1,yw(a.Vd).select(function(c){if(c&&c.login_hint){var d=a.Vd;_.Fv(d,d.sA,[c.login_hint,!0])}else a.currentUser.set(new Sw(null)),a.isSignedIn.set(!1),_.iw(),a.ff(b)})):(a.currentUser.set(new Sw(null)),
a.isSignedIn.set(!1),_.iw(),a.ff(b))});a.Vd.addEventListener("tokenFailed",function(b){a.ff(b)});a.Vd.addEventListener("userLoggedOut",function(b){a.currentUser.get().Zj();var c=a.currentUser;c.Xb.notify(c.Oa);a.isSignedIn.set(!1);_.iw();a.ff(b)})},qx=function(a,b,c,d){return a.V0.then(function(e){if(b)return b(e.DZ)},c,d)};tx.prototype.ff=function(a){if(a){this.Os=!1;var b=a.type||"";if(this.Hy[b])this.Hy[b](a);this.vp&&(this.vp({DZ:this}),this.Qx=this.vp=null)}};
var wx=function(a,b){_.mb(b,function(c,d){a.Hy[d]=function(e){a.Hy={};c(e)}})},Ww=function(a,b,c,d){d=_.yj(d);a.Fs&&(d.hd=a.Fs);var e=d.ux_mode||a.r6;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.o3||Pw()+window.location.pathname),xx(a,f)):(delete d.redirect_uri,yx(a,f),wx(a,{authResult:function(h){h.authResult&&h.authResult.error?c(h.authResult):wx(a,{tokenReady:function(){b(a.currentUser.get())},
tokenFailed:c})}}))};tx.prototype.Yj=function(a){return new _.Xj(function(b,c){var d=new Jw(a);this.dE=d.ss()?!0:!1;this.Kx?(d.Ia.fetch_basic_profile=!0,Kw(d,"email profile openid")):d.Ia.fetch_basic_profile=!1;var e=ux(this,d.ss());d.YR(e);Ww(this,b,c,d.get())},this)};
tx.prototype.us=function(a){var b=a||{};this.dE=!!b.scope;a=ux(this,b.scope);if(""==a)return _.ck({error:"Missing required parameter: scope"});var c={scope:a,access_type:"offline",include_granted_scopes:!0};_.Qb(pw,function(d){null!=b[d]&&(c[d]=b[d])});c.hasOwnProperty("prompt")||c.hasOwnProperty("approval_prompt")||(c.prompt="consent");"postmessage"==b.redirect_uri||void 0==b.redirect_uri?a=zx(this,c):(c.redirect_uri=b.redirect_uri,xx(this,{sessionMeta:{extraQueryParams:c},responseType:"code id_token"}),
a=_.bk({message:"Redirecting to IDP."}));return a};
var zx=function(a,b){b.origin=Pw();delete b.redirect_uri;yx(a,{sessionMeta:{extraQueryParams:b},responseType:"code permission id_token"});return new _.Xj(function(c,d){wx(this,{authResult:function(e){(e=e&&e.authResult)&&e.code?c({code:e.code}):d(e&&e.error?e:{error:"unknown_error"})}})},a)},yx=function(a,b){Ow(b,["sessionMeta","extraQueryParams","gsiwebsdk"],"2");dw(a.Vd,Lw(),b)},xx=function(a,b){Ow(b,["sessionMeta","extraQueryParams","gsiwebsdk"],"2");b=b||{};window.location.assign(aw(a.Vd,b.sessionMeta,
b.responseType))};tx.prototype.Zj=function(a){var b=a||!1;return new _.Xj(function(c){Vv(this.Vd,b,function(){c()})},this)};tx.prototype.iN=function(){return this.Ia.authParameters.scope};var ux=function(a,b){a=a.iN();b=Rv(b?b.split(" "):[],a?a.split(" "):[]);_.jh(b);return b.join(" ")};tx.prototype.fG=function(){var a=this;return new _.Xj(function(b,c){wx(a,{noSessionBound:c,tokenFailed:c,userLoggedOut:c,tokenReady:function(d){b(d.response)}});a.Vd.KM()})};
tx.prototype.JK=function(a,b,c,d){if(a="string"===typeof a?document.getElementById(a):a){var e=this;_.fj(a,"click",function(){var f=b;"function"==typeof b&&(f=b());e.Yj(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."})};tx.prototype.disconnect=function(){return new _.Xj(function(a){this.Vd.revoke(function(){a()})},this)};tx.prototype.attachClickHandler=tx.prototype.JK;var Ax;_.Xj.prototype["catch"]=_.Xj.prototype.ou;Ax=null;_.Bx=function(a){Rw();a=cx(a);if(Tw){if(_.xj(a,Ax||{}))return rx();throw new tw("gapi.auth2 has been initialized with different options. Consider calling gapi.auth2.getAuthInstance() instead of gapi.auth2.init().");}dx(a,!1!==a.fetch_basic_profile);Nw();Ax=a;Tw=new tx(a);_.Fe.ga=1;return rx()};var Dx,Fx,Cx,Hx,Gx,Ix;_.Ex=function(a,b){Nw();a=cx(a);dx(a);var c=kx(a),d=new _.Pv(c);"none"==a.prompt?Cx(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)}):Dx(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.BQ.Ih;b(e)})};
Dx=function(a,b,c){var d=new hx(b.response_type);c=Fx(a,d,c);var e={responseType:d.toString()};Ow(e,["sessionMeta","extraQueryParams","gsiwebsdk"],b.gsiwebsdk||"2");ix(d)&&Ow(e,["sessionMeta","extraQueryParams","access_type"],b.access_type||"offline");b.redirect_uri&&Ow(e,["sessionMeta","extraQueryParams","redirect_uri"],b.redirect_uri);b.state&&Ow(e,["sessionMeta","extraQueryParams","state"],b.state);b=Lw();a.Ej?c({authResult:{error:"idpiframe_initialization_failed",details:a.Dm().error}}):(a.Ul=
c,dw(a,b,e))};Fx=function(a,b,c){if(jx(b)){var d=Gx(c);return function(e){e&&e.authResult&&!e.authResult.error?a.Xr(function(f){f&&!f.error?(f=_.yj(f),ix(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(_.yj(e.authResult)):c(e&&e.authResult?e.authResult:{error:"unknown_error"})}};
Cx=function(a,b,c){if(ix(new hx(b.response_type))&&"offline"==b.access_type)c({error:"immediate_failed",error_subtype:"access_denied"});else{var d=Gx(c);b.login_hint?a.OC(b.login_hint,function(e){e?Hx(a,b,e,d):c({error:"immediate_failed",error_subtype:"access_denied"})}):void 0!==b.authuser&&null!==b.authuser?Aw(a,b.authuser).select(function(e){e&&e.login_hint?Hx(a,b,e.login_hint,d):d({error:"immediate_failed",error_subtype:"access_denied"})}):a.Rr(function(e){e&&e.hint?Hx(a,b,e.hint,d):e&&e.disabled?
d({error:"immediate_failed",error_subtype:"no_user_bound"}):("first_valid"==b.session_selection?zw(a):yw(a)).select(function(f){f&&f.login_hint?Hx(a,b,f.login_hint,d):d({error:"immediate_failed",error_subtype:"no_user_bound"})})})}};Hx=function(a,b,c,d){b=new hx(b.response_type);var e=0,f={},h=function(k){!k||k.error?d(k):(e--,_.Ii(f,k),0==e&&d(f))};(jx(b)||lx(b,"id_token"))&&e++;ix(b)&&e++;(jx(b)||lx(b,"id_token"))&&_.Qv(a,c,h);ix(b)&&ew(a,c,h)};
Gx=function(a){return function(b){if(!b||b.error)_.iw(),b?a(b):a({error:"unknown_error"});else{if(b.access_token){var c=_.yj(b);Ix(c);delete c.id_token;delete c.code;_.hw(c)}a(b)}}};Ix=function(a){_.Qb(qw,function(b){delete a[b]})};_.u("gapi.auth2.init",_.Bx);_.u("gapi.auth2.authorize",function(a,b){Rw();if(null!=Tw)throw new tw("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).");_.Ex(a,function(c){Ix(c);b(c)})});_.u("gapi.auth2._gt",function(){return _.ci()});_.u("gapi.auth2.enableDebugLogs",function(a){a=!1!==a;_.Eu="0"!=a&&!!a});_.u("gapi.auth2.getAuthInstance",_.sx);
_.u("gapi.auth2.BasicProfile",Uw);_.u("gapi.auth2.BasicProfile.prototype.getId",Uw.prototype.getId);_.u("gapi.auth2.BasicProfile.prototype.getName",Uw.prototype.zg);_.u("gapi.auth2.BasicProfile.prototype.getGivenName",Uw.prototype.OY);_.u("gapi.auth2.BasicProfile.prototype.getFamilyName",Uw.prototype.JY);_.u("gapi.auth2.BasicProfile.prototype.getImageUrl",Uw.prototype.WY);_.u("gapi.auth2.BasicProfile.prototype.getEmail",Uw.prototype.Yr);_.u("gapi.auth2.GoogleAuth",tx);
_.u("gapi.auth2.GoogleAuth.prototype.attachClickHandler",tx.prototype.JK);_.u("gapi.auth2.GoogleAuth.prototype.disconnect",tx.prototype.disconnect);_.u("gapi.auth2.GoogleAuth.prototype.grantOfflineAccess",tx.prototype.us);_.u("gapi.auth2.GoogleAuth.prototype.signIn",tx.prototype.Yj);_.u("gapi.auth2.GoogleAuth.prototype.signOut",tx.prototype.Zj);_.u("gapi.auth2.GoogleAuth.prototype.getInitialScopes",tx.prototype.iN);_.u("gapi.auth2.GoogleUser",Sw);_.u("gapi.auth2.GoogleUser.prototype.grant",Sw.prototype.FZ);
_.u("gapi.auth2.GoogleUser.prototype.getId",Sw.prototype.getId);_.u("gapi.auth2.GoogleUser.prototype.isSignedIn",Sw.prototype.Xf);_.u("gapi.auth2.GoogleUser.prototype.getAuthResponse",Sw.prototype.Gk);_.u("gapi.auth2.GoogleUser.prototype.getBasicProfile",Sw.prototype.qY);_.u("gapi.auth2.GoogleUser.prototype.getGrantedScopes",Sw.prototype.QY);_.u("gapi.auth2.GoogleUser.prototype.getHostedDomain",Sw.prototype.fD);_.u("gapi.auth2.GoogleUser.prototype.grantOfflineAccess",Sw.prototype.us);
_.u("gapi.auth2.GoogleUser.prototype.hasGrantedScopes",Sw.prototype.wx);_.u("gapi.auth2.GoogleUser.prototype.reloadAuthResponse",Sw.prototype.fG);_.u("gapi.auth2.LiveValue",Gw);_.u("gapi.auth2.LiveValue.prototype.listen",Gw.prototype.V);_.u("gapi.auth2.LiveValue.prototype.get",Gw.prototype.get);_.u("gapi.auth2.SigninOptionsBuilder",Jw);_.u("gapi.auth2.SigninOptionsBuilder.prototype.getAppPackageName",Jw.prototype.nY);_.u("gapi.auth2.SigninOptionsBuilder.prototype.setAppPackageName",Jw.prototype.G4);
_.u("gapi.auth2.SigninOptionsBuilder.prototype.getScope",Jw.prototype.ss);_.u("gapi.auth2.SigninOptionsBuilder.prototype.setScope",Jw.prototype.YR);_.u("gapi.auth2.SigninOptionsBuilder.prototype.getPrompt",Jw.prototype.nZ);_.u("gapi.auth2.SigninOptionsBuilder.prototype.setPrompt",Jw.prototype.f5);_.u("gapi.auth2.SigninOptionsBuilder.prototype.get",Jw.prototype.get);
_.Re=_.Re||{};
(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}_.Re.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)};_.Re.uL=function(b){var c=_.Re.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(_.Re.zC(e[f])),d.push('"'));d.push("></");d.push("iframe");d.push(">");var h=_.Re.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};_.Re.RM=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};_.Re.nea=function(b){return a(b)}})();
_.rg=window.gapi&&window.gapi.util||{};
_.rg=_.rg={};_.rg.getOrigin=function(a){return _.tg(a)};
_.ty=function(a){if(0!==a.indexOf("GCSC"))return null;var b={Ii:!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=_.ry(a.substr(d+1));if(null==e)return b;a=a.substring(0,d);if("_"!==a.charAt(0))return b;d="E"===c&&e.Ke;return!d&&("U"!==c||e.Ke)||d&&!_.sy?b:{Ii:!0,Ke:d,WW:a.substr(1),domain:e.domain,ei:e.ei}};_.uy=function(a,b){this.zf=a;a=b||{};this.E1=Number(a.maxAge)||0;this.Zd=a.domain;this.wl=a.path;this.r4=!!a.secure};_.uy.prototype.read=function(){for(var a=this.zf+"=",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)}};
_.uy.prototype.write=function(a,b){if(!vy.test(this.zf))throw"Invalid cookie name";if(!wy.test(a))throw"Invalid cookie value";a=this.zf+"="+a;this.Zd&&(a+=";domain="+this.Zd);this.wl&&(a+=";path="+this.wl);b="number"===typeof b?b:this.E1;if(0<=b){var c=new Date;c.setSeconds(c.getSeconds()+b);a+=";expires="+c.toUTCString()}this.r4&&(a+=";secure");document.cookie=a;return!0};_.uy.prototype.clear=function(){this.write("",0)};var wy=/^[-+/_=.:|%&a-zA-Z0-9@]*$/,vy=/^[A-Z_][A-Z0-9_]{0,63}$/;
_.uy.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("="))}};_.xy=function(a){this.Ji=a};_.xy.prototype.read=function(){if(yy.hasOwnProperty(this.Ji))return yy[this.Ji]};_.xy.prototype.write=function(a){yy[this.Ji]=a;return!0};_.xy.prototype.clear=function(){delete yy[this.Ji]};var yy={};_.xy.iterate=function(a){for(var b in yy)yy.hasOwnProperty(b)&&a(b,yy[b])};var zy=function(){this.Oa=null;this.key=function(){return null};this.getItem=function(){return this.Oa};this.setItem=function(a,b){this.Oa=b;this.length=1};this.removeItem=function(){this.clear()};this.clear=function(){this.Oa=null;this.length=0};this.length=0},Ay=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}},By=function(a,b){this.zf=a;this.OI=
Ay(b)?b||window.sessionStorage:new zy};By.prototype.read=function(){return this.OI.getItem(this.zf)};By.prototype.write=function(a){try{this.OI.setItem(this.zf,a)}catch(b){return!1}return!0};By.prototype.clear=function(){this.OI.removeItem(this.zf)};By.iterate=function(a){if(Ay())for(var b=0,c=window.sessionStorage.length;b<c;++b){var d=window.sessionStorage.key(b);a(d,window.sessionStorage[d])}};_.sy="https:"===window.location.protocol;_.Cy=_.sy||"http:"===window.location.protocol?_.uy:_.xy;_.ry=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{Ke:"S"==a.charAt(0),domain:d,ei:c}};var Dy,Ey,Hy,Iy;Dy=_.ve();Ey=_.ve();_.Fy=_.ve();_.Gy=_.ve();Hy="state code cookie_policy g_user_cookie_policy authuser prompt g-oauth-window status".split(" ");Iy=function(a){this.yQ=a;this.dF=null};
Iy.prototype.write=function(a){var b=_.ve(),c=_.ve(),d=window.decodeURIComponent?decodeURIComponent:unescape,e;for(e in a)if(_.we(a,e)){var f=a[e];f=f.replace(/\+/g," ");c[e]=d(f);b[e]=a[e]}d=Hy.length;for(e=0;e<d;++e)delete c[Hy[e]];a=String(a.authuser||0);d=_.ve();d[a]=c;c=_.Cf(d);this.yQ.write(c);this.dF=b};Iy.prototype.read=function(){return this.dF};Iy.prototype.clear=function(){this.yQ.clear();this.dF=_.ve()};_.Jy=function(a){return a?{domain:a.domain,path:"/",secure:a.Ke}:null};
By.iterate(function(a){var b=_.ty(a);b&&b.Ii&&(Dy[a]=new Iy(new By(a)))});_.Cy.iterate(function(a){Dy[a]&&(Ey[a]=new _.Cy(a,_.Jy(_.ty(a))))});
_.Sh=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;n=m=0}function b(r){for(var p=h,t=0;64>t;t+=4)p[t/4]=r[t]<<24|r[t+1]<<16|r[t+2]<<8|r[t+3];for(t=16;80>t;t++)r=p[t-3]^p[t-8]^p[t-14]^p[t-16],p[t]=(r<<1|r>>>31)&4294967295;r=e[0];var v=e[1],q=e[2],w=e[3],z=e[4];for(t=0;80>t;t++){if(40>t)if(20>t){var A=w^v&(q^w);var F=1518500249}else A=v^q^w,F=1859775393;else 60>t?(A=v&q|w&(v|q),F=2400959708):(A=v^q^w,F=3395469782);A=((r<<5|r>>>27)&4294967295)+
A+z+F+p[t]&4294967295;z=w;w=q;q=(v<<30|v>>>2)&4294967295;v=r;r=A}e[0]=e[0]+r&4294967295;e[1]=e[1]+v&4294967295;e[2]=e[2]+q&4294967295;e[3]=e[3]+w&4294967295;e[4]=e[4]+z&4294967295}function c(r,p){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var t=[],v=0,q=r.length;v<q;++v)t.push(r.charCodeAt(v));r=t}p||(p=r.length);t=0;if(0==m)for(;t+64<p;)b(r.slice(t,t+64)),t+=64,n+=64;for(;t<p;)if(f[m++]=r[t++],n++,64==m)for(m=0,b(f);t+64<p;)b(r.slice(t,t+64)),t+=64,n+=64}function d(){var r=[],
p=8*n;56>m?c(k,56-m):c(k,64-(m-56));for(var t=63;56<=t;t--)f[t]=p&255,p>>>=8;b(f);for(t=p=0;5>t;t++)for(var v=24;0<=v;v-=8)r[p++]=e[t]>>v&255;return r}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 r=d(),p="",t=0;t<r.length;t++)p+="0123456789ABCDEF".charAt(Math.floor(r[t]/16))+"0123456789ABCDEF".charAt(r[t]%16);return p}}};var Uh=function(a,b,c){var d=String(_.Ya.location.href);return d&&a&&b?[b,Th(_.tg(d),a,c||null)].join(" "):null},Th=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],_.Qb(d,function(k){e.push(k)}),Vh(e.join(" "));var f=[],h=[];_.Qb(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];_.Qb(d,function(k){e.push(k)});a=Vh(e.join(" "));a=[c,a];0==h.length||a.push(h.join(""));return a.join("_")},Vh=function(a){var b=
_.Sh();b.update(a);return b.Zh().toLowerCase()};var Yh;_.Wh=function(a){return!!_.Oh.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};_.Xh=function(a){a=void 0===a?!1:a;var b=_.Ya.__SAPISID||_.Ya.__APISID||_.Ya.__3PSAPISID||_.Ya.__OVERRIDE_SID;_.Wh(a)&&(b=b||_.Ya.__1PSAPISID);if(b)return!0;var c=new _.Ph(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");_.Wh(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};Yh=function(a,b,c,d){(a=_.Ya[a])||(a=(new _.Ph(document)).get(b));return a?Uh(a,c,d):null};
_.Zh=function(a,b){b=void 0===b?!1:b;var c=_.tg(String(_.Ya.location.href)),d=[];if(_.Xh(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?_.Ya.__SAPISID:_.Ya.__APISID;e||(e=new _.Ph(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?Uh(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&_.Wh(b)&&((b=Yh("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=Yh("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",
a))&&d.push(a))}return 0==d.length?null:d.join(" ")};
_.$h=function(a,b){var c={SAPISIDHASH:!0,SAPISID3PHASH:!0,APISIDHASH:!0};_.Wh(void 0===b?!1:b)&&(c.SAPISID1PHASH=!0);return a&&(a.OriginToken||a.Authorization&&c[String(a.Authorization).split(" ")[0]])?!0:!1};_.ai={aO:_.$h,S0:_.Xh,oN:function(){var a=null;_.Xh()&&(a=window.__PVT,null==a&&(a=(new _.Ph(document)).get("BEAT")));return a},PM:_.Zh};
_.Kq=function(){return!_.Jq()&&(_.qb("iPod")||_.qb("iPhone")||_.qb("Android")||_.qb("IEMobile"))};_.Jq=function(){return _.qb("iPad")||_.qb("Android")&&!_.qb("Mobile")||_.qb("Silk")};
var Qx;_.Nx=function(a){for(var b=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g"),c=[],d;d=b.exec(a);)c.push([d[1],d[2],d[3]||void 0]);return c};_.Ox=function(a){var b={};a.forEach(function(c){b[c[0]]=c[1]});return function(c){return b[c.find(function(d){return d in b})]||""}};
_.Px=function(a){var b=/rv: *([\d\.]*)/.exec(a);if(b&&b[1])return b[1];b="";var c=/MSIE +([\d\.]+)/.exec(a);if(c&&c[1])if(a=/Trident\/(\d.\d)/.exec(a),"7.0"==c[1])if(a&&a[1])switch(a[1]){case "4.0":b="8.0";break;case "5.0":b="9.0";break;case "6.0":b="10.0";break;case "7.0":b="11.0"}else b="7.0";else b=c[1];return b};
Qx=function(a){var b=_.ob();if("Internet Explorer"===a)return _.sb()?_.Px(b):"";b=_.Nx(b);var c=_.Ox(b);switch(a){case "Opera":if(_.rb())return c(["Version","Opera"]);if(_.qb("OPR"))return c(["OPR"]);break;case "Microsoft Edge":if(_.qb("Edge"))return c(["Edge"]);if(_.qb("Edg/"))return c(["Edg"]);break;case "Chromium":if(_.ub())return c(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&_.tb()||"Safari"===a&&_.vb()||"Android Browser"===a&&_.wb()||"Silk"===a&&_.qb("Silk")?(a=b[2])&&a[1]||"":
""};_.Rx=function(a){a=Qx(a);if(""===a)return NaN;a=a.split(".");return 0===a.length?NaN:Number(a[0])};_.Sx=function(a,b,c){if("function"===typeof a)c&&(a=(0,_.K)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,_.K)(a.handleEvent,a);else throw Error("Da");return 2147483647<Number(b)?-1:_.Ya.setTimeout(a,b||0)};_.Tx=function(a){_.Ya.clearTimeout(a)};
_.Ky=function(a){_.Ni.call(this);this.Ji=1;this.Zy=[];this.hz=0;this.Hf=[];this.Yi={};this.nW=!!a};_.ab(_.Ky,_.Ni);_.g=_.Ky.prototype;_.g.subscribe=function(a,b,c){var d=this.Yi[a];d||(d=this.Yi[a]=[]);var e=this.Ji;this.Hf[e]=a;this.Hf[e+1]=b;this.Hf[e+2]=c;this.Ji=e+3;d.push(e);return e};_.g.ku=_.ba(19);_.g.unsubscribe=function(a,b,c){if(a=this.Yi[a]){var d=this.Hf;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.hk(a)}return!1};
_.g.hk=function(a){var b=this.Hf[a];if(b){var c=this.Yi[b];0!=this.hz?(this.Zy.push(a),this.Hf[a+1]=function(){}):(c&&_.Ei(c,a),delete this.Hf[a],delete this.Hf[a+1],delete this.Hf[a+2])}return!!b};
_.g.yn=function(a,b){var c=this.Yi[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.nW)for(e=0;e<c.length;e++){var h=c[e];Ly(this.Hf[h+1],this.Hf[h+2],d)}else{this.hz++;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.hz--,0<this.Zy.length&&0==this.hz)for(;c=this.Zy.pop();)this.hk(c)}}return 0!=e}return!1};var Ly=function(a,b,c){_.Uj(function(){a.apply(b,c)})};
_.Ky.prototype.clear=function(a){if(a){var b=this.Yi[a];b&&(b.forEach(this.hk,this),delete this.Yi[a])}else this.Hf.length=0,this.Yi={}};_.Ky.prototype.Ib=function(a){if(a){var b=this.Yi[a];return b?b.length:0}a=0;for(b in this.Yi)a+=this.Ib(b);return a};_.Ky.prototype.ta=function(){_.Ky.H.ta.call(this);this.clear();this.Zy.length=0};
_.My=function(a){this.a6=a};_.My.prototype.toString=function(){return this.a6};_.Ny=function(a){_.Ni.call(this);this.Rd=new _.Ky(a);_.Pi(this,this.Rd)};_.ab(_.Ny,_.Ni);_.g=_.Ny.prototype;_.g.subscribe=function(a,b,c){return this.Rd.subscribe(a.toString(),b,c)};_.g.ku=_.ba(18);_.g.unsubscribe=function(a,b,c){return this.Rd.unsubscribe(a.toString(),b,c)};_.g.hk=function(a){return this.Rd.hk(a)};_.g.yn=function(a,b){return this.Rd.yn(a.toString(),b)};_.g.clear=function(a){this.Rd.clear(void 0!==a?a.toString():void 0)};
_.g.Ib=function(a){return this.Rd.Ib(void 0!==a?a.toString():void 0)};
_.Ry=function(){_.Qy="oauth2relay"+String(2147483647*(0,_.Ag)()|0)};_.Sy=new _.Ny;_.Ty=new _.My("oauth");_.Ry();_.Oe("oauth-flow/client_id");var Uy=String(_.Oe("oauth-flow/redirectUri"));if(Uy)Uy.replace(/[#][\s\S]*/,"");else{var Vy=_.rg.getOrigin(window.location.href);_.Oe("oauth-flow/callbackUrl");encodeURIComponent(Vy)}_.rg.getOrigin(window.location.href);
var Xy,Yy,Zy,$y,az,bz,cz,dz,ez,fz,gz,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,Iz,Jz,Kz,Nz,Mz,Oz,Pz,Qz,Rz,Sz,Tz,Uz,Vz,Wz,Yz;_.Wy=function(a,b){if(_.rh&&!b)return _.Ya.atob(a);var c="";_.uh(a,function(d){c+=String.fromCharCode(d)});return c};Xy=function(a){var b=String(a("immediate")||"");a=String(a("prompt")||"");return"true"===b||"none"===a};Yy=function(a){return _.Lh("enableMultilogin")&&a("cookie_policy")&&!Xy(a)?!0:!1};
az=function(){var a,b=null;_.Cy.iterate(function(c,d){0===c.indexOf("G_AUTHUSER_")&&(c=_.ry(c.substring(11)),!a||c.Ke&&!a.Ke||c.Ke==a.Ke&&c.ei>a.ei)&&(a=c,b=d)});return{zW:a,authuser:b}};bz=[".APPS.GOOGLEUSERCONTENT.COM","@DEVELOPER.GSERVICEACCOUNT.COM"];cz=function(a){a=a.toUpperCase();for(var b=0,c=bz.length;b<c;++b){var d=a.split(bz[b]);2==d.length&&""===d[1]&&(a=d[0])}a=a.replace(/-/g,"_").toUpperCase();40<a.length&&(b=new _.zg,b.Eu(a),a=b.Zh().toUpperCase());return a};
dz=function(a){if(!a)return[];a=a.split("=");return a[1]?a[1].split("|"):[]};ez=function(a){a=a.split(":");return{clientId:a[0].split("=")[1],D4:dz(a[1]),ffa:dz(a[2]),Wda:dz(a[3])}};fz=function(a){var b=az(),c=b.zW;b=b.authuser;var d=a&&cz(a);if(null!==b){var e;_.Cy.iterate(function(h,k){(h=_.ty(h))&&h.Ii&&(d&&h.WW!=d||h.Ke==c.Ke&&h.ei==c.ei&&(e=k))});if(e){var f=ez(e);a=f&&f.D4[Number(b)];f=f&&f.clientId;if(a)return{authuser:b,aga:a,clientId:f}}}return null};
gz=function(a,b){a=_.ci(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};_.hz=function(a,b){if(b){var c=b;var d=a}else"string"===typeof a?d=a:c=a;c?_.hw(c,d):_.iw(d)};
iz=function(a){if(!a)return null;"single_host_origin"!==a&&(a=_.tg(a));var b=window.location.hostname,c=b,d=_.sy;if("single_host_origin"!==a){c=a.split("://");if(2==c.length)d="https"===c.shift();else return _.Gf.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 _.Gf.log("Invalid cookie_policy domain: "+c),null;c=a;b=c.split(".").length-1}return{domain:c,Ke:d,ei:b}};
jz=function(a){var b=iz(a);if(!b)return new _.xy("G_USERSTATE_");a=["G_USERSTATE_",_.sy&&b.Ke?"S":"H",b.ei].join("");var c=_.Gy[a];c||(c={bF:63072E3},_.xe(_.Jy(b),c),c=new _.uy(a,c),_.Gy[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};kz=function(a){var b=jz(a).read();a=_.ve();if(b){b=b.split(":");for(var c;c=b.shift();)c=c.split("="),a[c[0]]=c[1]}return a};
lz=function(a,b,c){var d=kz(b),e=d[a];d[a]="0";var f=[];_.hm(d,function(k,l){f.push(l+"="+k)});var h=f.join(":");b=jz(b);h?b.write(h):b.clear();d[a]!==e&&c&&c()};mz=function(a){a=iz(a.g_user_cookie_policy);if(!a||a.Ke&&!_.sy)a=null;else{var b=["G_AUTHUSER_",_.sy&&a.Ke?"S":"H",a.ei].join(""),c=_.Fy[b];c||(c=new _.Cy(b,_.Jy(a)),_.Fy[b]=c);a=c}_.Pe("googleapis.config/sessionIndex",null);a.clear()};nz=function(a){return Xy(function(b){return a[b]})};oz=0;pz=!1;qz=[];rz={};sz={};tz=null;
uz=function(a){var b=_.Qy;return function(c){if(this.f==b&&this.t==_.Mf.ym(this.f)&&this.origin==_.Mf.Km(this.f))return a.apply(this,arguments)}};vz=function(a){if(a&&!decodeURIComponent(a).startsWith("m;/_/scs/"))throw Error("Ia");};wz=function(a){var b=_.Re.Dg,c=b(a).jsh;if(null!=c)return vz(c),a;if(b=String(b().jsh||_.Fe.h||""))vz(b),c=(a+"#").indexOf("#"),a=a.substr(0,c)+(-1!==a.substr(0,c).indexOf("?")?"&":"?")+"jsh="+encodeURIComponent(b)+a.substr(c);return a};xz=function(){return!!_.Oe("oauth-flow/usegapi")};
yz=function(a,b){xz()?tz.unregister(a):_.Mf.unregister(a+":"+b)};zz=function(a,b,c){xz()?tz.register(a,c,_.zm):_.Mf.register(a+":"+b,uz(c))};Az=function(){Zy.parentNode.removeChild(Zy)};Bz=function(a){var b=Zy;_.Oy(b,[{gz:"-webkit-transform",duration:1,timing:"ease",delay:0}]);_.Oy(b,[{gz:"transform",duration:1,timing:"ease",delay:0}]);_.Sx(function(){b.style.webkitTransform="translate3d(0px,"+a+"px,0px)";b.style.transform="translate3d(0px,"+a+"px,0px)"},0)};Cz=function(){var a=$y+88;Bz(a);$y=a};
Dz=function(){var a=$y-88;Bz(a);$y=a};Ez=function(a){var b=a?Cz:Dz,c=a?Dz:Cz;a=a?"-":"";$y=parseInt(a+88,10);Zy.style.webkitTransform="translate3d(0px,"+a+88+"px,0px)";Zy.style.transform="translate3d(0px,"+a+88+"px,0px)";Zy.style.display="";Zy.style.visibility="visible";b();_.Sx(c,4E3);_.Sx(Az,5E3)};
Fz=function(a){var b=_.Oe("oauth-flow/toast/position");"top"!==b&&(b="bottom");var c=document.createElement("div");Zy=c;c.style.cssText="position:fixed;left:0px;z-index:1000;width:100%;";_.Lr(c,"visibility","hidden");_.Lr(c,b,"-40px");_.Lr(c,"height","128px");var d=c;if(!_.Kq()&&!_.Jq()){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?"-":"";$y=parseInt(e+88,10);Zy.style.webkitTransform="translate3d(0px,"+e+88+"px,0px)";Zy.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){}_.wm.openChild({url:":socialhost:/:session_prefix:_/widget/oauthflow/toast",queryParams:{clientId:a.client_id,idToken:a.id_token},where:d,onRestyle:function(){"top"===b?Ez(!0):Ez(!1)}})};
Gz=function(a){var b=_.Un(),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==_.fm.call(b,e)&&b.push(e)}0<b.length&&(a.scope=b.join(" "))}return a};
Hz=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=_.Oe("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!=fz(c)||!nz(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};Iz=function(a){a=a&&a.id_token;if(!a||!a.split(".")[1])return null;a=(a.split(".")[1]+"...").replace(/^((....)+)\.?\.?\.?$/,"$1");a=_.Bf(_.Wy(a,!0));if(!1===a)throw Error("Ja");return a};Jz=function(a){return(a=Iz(a))?a.sub:null};
Kz=function(a){a&&qz.push(a);a=_.Qy;var b=document.getElementById(a),c=(new Date).getTime();if(b){if(oz&&6E4>c-oz)return;var d=_.Mf.ym(a);d&&(yz("oauth2relayReady",d),yz("oauth2callback",d));b.parentNode.removeChild(b);if(/Firefox/.test(navigator.userAgent))try{window.frames[a]=void 0}catch(f){}_.Ry();a=_.Qy}oz=c;var e=String(2147483647*(0,_.Ag)()|0);b=_.Oe("oauth-flow/proxyUrl")||_.Oe("oauth-flow/relayUrl");xz()?tz=_.wm.openChild({where:_.Re.RM(),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(_.rg.getOrigin(window.location.href)),"#rpctoken=",e,"&forcesecure=1"].join(""),c=_.Re.RM(),d=_.Re.uL({name:a,id:a}),d.src=wz(b),d.style.width="1px",d.style.height="1px",d.style.position="absolute",d.style.top="-100px",d.tabIndex=-1,"function"===typeof d.setAttribute?d.setAttribute("aria-hidden","true"):d["aria-hidden"]="true",c.appendChild(d),_.Mf.Xt(a));zz("oauth2relayReady",
e,function(){yz("oauth2relayReady",e);var f=qz;if(null!==f){qz=null;for(var h=f.length,k=0;k<h;++k)f[k]()}});zz("oauth2callback",e,function(f){var h=_.Re.Dg;h=h(f);var k=h.state;f=k.replace(/\|.*$/,"");f={}.hasOwnProperty.call(sz,f)?sz[f]:null;h.state=f;if(null!=h.state){f=rz[k];delete rz[k];k=f&&f.key||"token";var l=h=Hz(f&&f.params,h),m=Jz(l);if(m){var n=kz(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 ")&&
_.Oe("isLoggedIn")&&"1"===(l&&l._aa)&&(l._aa="0",pz||(pz=!0,Fz(l)));_.hz(k,h);h=gz(k);if(f){k=f.popup;l=f.after_redirect;if(k&&"keep_open"!=l)try{k.close()}catch(r){}f.callback&&(f.callback(h),f.callback=null)}}})};_.Lz=function(a){null!==qz?Kz(a):a&&a()};
Nz=function(a,b){var c=Mz,d=Jz(a);d&&(mz(a),lz(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=Hz(null,e);c(e)}}))};
Mz=function(a){a||(a=gz(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||(_.Fe.drw=null);_.hz(a);if(b=a.authuser)_.Oe("googleapis.config/sessionIndex"),_.Pe("googleapis.config/sessionIndex",b);_.Sy.yn(_.Ty,a);return a};Oz=["client_id","cookie_policy","response_type"];Pz="client_id response_type login_hint authuser prompt include_granted_scopes after_redirect access_type hl state".split(" ");
Qz=function(a){var b=_.yj(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);_.hw(b);return b};
Rz=function(a){if(void 0===a.include_granted_scopes){var b=_.Oe("include_granted_scopes");a.include_granted_scopes=!!b}};Sz=function(a){window.console&&("function"===typeof window.console.warn?window.console.warn(a):"function"===typeof window.console.log&&window.console.log(a))};
Tz=function(a){var b=a||{},c={};_.Qb(Pz,function(d){null!=b[d]&&(c[d]=b[d])});a=_.Oe("googleapis/overrideClientId");null!=a&&(c.client_id=a);Rz(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{_.Yw(c.cookie_policy)}catch(d){c.cookie_policy&&
Sz("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=_.Nh(),null!=a&&(c.authuser=a));a=b.redirect_uri||_.Oe("oauth-flow/redirectUri");
null!=a&&"postmessage"!=a&&(c.redirect_uri=a);c.gsiwebsdk="shim";return c};
Uz=function(a,b){var c=Tz(a),d=new _.Xj(function(e,f){_.Ex(c,function(h){var k=h||{};_.Qb(Oz,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=Qz(k),null!=h.authuser&&_.Pe("googleapis.config/sessionIndex",h.authuser),e(h))})});b&&d.then(b,b);return d};Vz=_.ai.PM;Wz=null;
_.Zz=function(a,b){if("force"!==a.approvalprompt){a=_.Xz(a);a.prompt="none";delete a.redirect_uri;delete a.approval_prompt;delete a.immediate;if(b=!b)Wz?(a.client_id!==Wz.client_id&&window.console&&window.console.log&&window.console.log("Ignoring mismatched page-level auth param client_id="+a.client_id),b=!0):(Wz=a,b=!1);b||Yz(a)}};
_.Xz=function(a){var b=a.redirecturi||"postmessage",c=(0,_.lc)((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,_.lc)(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||_.Oe("googleapis.config/sessionIndex"))&&(b.authuser=a);(a=_.Oe("useoriginassocialhost"))&&(b.use_origin_as_socialhost=a);return b};Yz=function(a){_.Eo("waaf0","signin","0");Uz(a,function(b){_.Eo("waaf1","signin","0");Mz(b)})};
_.$z=function(a){a=_.Xz(a);_.Pe("oauth-flow/authWindowWidth",445);_.Pe("oauth-flow/authWindowHeight",615);Yz(a)};_.aA=function(a){_.Sy.unsubscribe(_.Ty,a);_.Sy.subscribe(_.Ty,a)};var hA,kA;_.cA=function(a){return a.cookiepolicy?!0:(_.bA("cookiepolicy is a required field.  See https://developers.google.com/+/web/signin/#button_attr_cookiepolicy for more information."),!1)};_.bA=function(a){window.console&&(window.console.error?window.console.error(a):window.console.log&&window.console.log(a))};_.gA=function(a,b){var c=_.Un();_.xe(a,c);c=Gz(c);if(_.cA(c)){var d=_.dA();_.eA(c);b?_.Ee(b,"click",function(){_.fA(c,d)}):_.fA(c,d)}};
_.dA=function(){var a=new hA;_.aA(function(b){a.cF&&b&&(b.access_token&&_.Pe("isPlusUser",!0),b["g-oauth-window"]&&(a.cF=!1,_.Gf.warn("OTA app install is no longer supported.")))});return a};hA=function(){this.cF=!1};_.eA=function(a){a=_.iA(a);_.jA(a.callback);_.Lz(function(){_.Zz(a)})};_.iA=function(a){kA(a);a.redirecturi&&delete a.redirecturi;Yy(function(b){return a[b]})||(a.authuser=0);return a};kA=function(a){/^\s*$/.test(a.scope||"")&&(a.scope="https://www.googleapis.com/auth/plus.login")};
_.jA=function(a){if("string"===typeof a)if(window[a])a=window[a];else{_.bA('Callback function named "'+a+'" not found');return}a&&_.aA(a)};_.fA=function(a,b){b.cF=!0;a=_.iA(a);_.$z(a)};_.u("gapi.auth.authorize",Uz);_.u("gapi.auth.checkSessionState",function(a,b){var c=_.ve();c.client_id=a.client_id;c.session_state=a.session_state;_.Lz(function(){xz()?tz.send("check_session_state",c,function(d){b.call(null,d[0])},_.zm):_.Mf.call(_.Qy,"check_session_state",uz(function(d){b.call(null,d)}),c.session_state,c.client_id)})});_.u("gapi.auth.getAuthHeaderValueForFirstParty",Vz);_.u("gapi.auth.getToken",gz);
_.u("gapi.auth.getVersionInfo",function(a,b){_.Lz(function(){var c=_.Zh()||"",d=null,e=null;c&&(e=c.split(" "),2==e.length&&(d=e[1]));d?xz()?tz.send("get_versioninfo",{xapisidHash:d,sessionIndex:b},function(f){a(f[0])},_.zm):_.Mf.call(_.Qy,"get_versioninfo",uz(function(f){a(f)}),d,b):a()})});_.u("gapi.auth.init",_.Lz);_.u("gapi.auth.setToken",_.hz);_.u("gapi.auth.signIn",function(a){_.gA(a)});_.u("gapi.auth.signOut",function(){var a=gz();a&&Nz(a,a.cookie_policy)});
_.u("gapi.auth.unsafeUnpackIdToken",Iz);_.u("gapi.auth._pimf",_.Zz);_.u("gapi.auth._oart",Fz);_.u("gapi.auth._guss",function(a){return jz(a).read()});
var lA=_.Un();lA.clientid&&lA.scope&&lA.callback&&!_.Oe("disableRealtimeCallback")&&_.eA(lA);
});
// Google Inc.
