gapi.loaded_1(function(_){var window=this; /* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ _.kh=function(a){for(var b=[],c=0,d=0;d>=8);b[c++]=e}return b}; var lh,mh,oh;lh={};mh=null;_.nh=_.sd||_.td&&!_.jh||_.od||!_.jh&&!_.pd&&"function"==typeof _.q.atob;_.ph=function(a,b){void 0===b&&(b=0);oh();b=lh[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e>2];g=b[(g&3)<<4|k>>4];k=b[(k&15)<<2|l>>6];l=b[l&63];c[f++]=m+g+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("")}; _.qh=function(a,b){function c(l){for(;d>4);64!=g&&(b(f<<4&240|g>>2),64!=k&&b(g<<6&192|k))}}; oh=function(){if(!mh){mh={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));lh[c]=d;for(var e=0;ek?"":0==k?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*k)).toUTCString())+(d?";secure":"")+(null!=e?";samesite="+e:"")}; _.h.get=function(a,b){for(var c=a+"=",d=(this.kb.cookie||"").split(";"),e=0,f;e>>0);_.Zi=function(a){if("function"===typeof a)return a;a[gj]||(a[gj]=function(b){return a.handleEvent(b)});return a[gj]};_.zi(function(a){dj=a(dj)}); _.hj=function(){_.Fi.call(this);this.Bi=new Ri(this);this.RP=this;this.NB=null};_.Xa(_.hj,_.Fi);_.hj.prototype[_.Mi]=!0;_.h=_.hj.prototype;_.h.nl=function(){return this.NB};_.h.tw=_.da(4);_.h.addEventListener=function(a,b,c,d){_.Yi(this,a,b,c,d)};_.h.removeEventListener=function(a,b,c,d){_.ej(this,a,b,c,d)}; _.h.dispatchEvent=function(a){var b,c=this.nl();if(c)for(b=[];c;c=c.nl())b.push(c);c=this.RP;var d=a.type||a;if("string"===typeof a)a=new _.Ii(a,c);else if(a instanceof _.Ii)a.target=a.target||c;else{var e=a;a=new _.Ii(d,c);_.nb(a,e)}e=!0;if(b)for(var f=b.length-1;!a.Yq&&0<=f;f--){var g=a.currentTarget=b[f];e=g.Ap(d,!0,a)&&e}a.Yq||(g=a.currentTarget=c,e=g.Ap(d,!0,a)&&e,a.Yq||(e=g.Ap(d,!1,a)&&e));if(b)for(f=0;!a.Yq&&f=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};_.Ps=function(a,b,c,d){return Array.prototype.splice.apply(a,Os(arguments,1))};_.$s=function(a,b,c){if(null!==a&&b in a)throw Error("g`"+b);a[b]=c};_.Xd.prototype.H=_.Za(1,function(a){return _.ui(this.kb,a)});_.at=function(a){a.GA=void 0;a.Oa=function(){return a.GA?a.GA:a.GA=new a}}; _.bt=function(a,b){var c=b||document;if(c.getElementsByClassName)a=c.getElementsByClassName(a)[0];else{c=document;var d=b||c;a=d.querySelectorAll&&d.querySelector&&a?d.querySelector(a?"."+a:""):_.$d(c,"*",a,b)[0]||null}return a||null};_.ct=function(a){var b;if(_.Vd&&!(_.pd&&_.Nd("9")&&!_.Nd("10")&&_.q.SVGElement&&a instanceof _.q.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return _.pe(b)?b:null};_.dt=function(a){_.Fi.call(this);this.Kd=a;this.Jb={}};_.Xa(_.dt,_.Fi);var et=[]; _.dt.prototype.W=function(a,b,c,d){return this.Cq(a,b,c,d)};_.dt.prototype.Cq=function(a,b,c,d,e){Array.isArray(b)||(b&&(et[0]=b.toString()),b=et);for(var f=0;fcv(this.Ob[a],b)&&this.Ob[a].push(b)}; lv.prototype.removeEventListener=function(a,b){if(!(0<=cv(this.WD,a)))throw"Unrecognized event type: "+a;ev(b)&&this.Ob[a]&&this.Ob[a].length&&(b=cv(this.Ob[a],b),0<=b&&this.Ob[a].splice(b,1))};lv.prototype.dispatchEvent=function(a){var b=a.type;if(!(b&&0<=cv(this.WD,b)))throw"Failed to dispatch unrecognized event type: "+b;if(this.Ob[b]&&this.Ob[b].length)for(var c=0,d=this.Ob[b].length;cr;r+=4)t[r/4]=p[r]<<24|p[r+1]<<16|p[r+2]<<8|p[r+3];for(r=16;80>r;r++)p=t[r-3]^t[r-8]^t[r-14]^t[r-16],t[r]=(p<<1|p>>>31)&4294967295;p=e[0];var v=e[1],u=e[2],x=e[3],y=e[4];for(r=0;80>r;r++){if(40>r)if(20>r){var A=x^v&(u^x);var G=1518500249}else A= v^u^x,G=1859775393;else 60>r?(A=v&u|x&(v|u),G=2400959708):(A=v^u^x,G=3395469782);A=((p<<5|p>>>27)&4294967295)+A+y+G+t[r]&4294967295;y=x;x=u;u=(v<<30|v>>>2)&4294967295;v=p;p=A}e[0]=e[0]+p&4294967295;e[1]=e[1]+v&4294967295;e[2]=e[2]+u&4294967295;e[3]=e[3]+x&4294967295;e[4]=e[4]+y&4294967295}function c(p,t){if("string"===typeof p){p=unescape(encodeURIComponent(p));for(var r=[],v=0,u=p.length;vm?c(k,56-m):c(k,64-(m-56));for(var r=63;56<=r;r--)f[r]=t&255,t>>>=8;b(f);for(r=t=0;5>r;r++)for(var v=24;0<=v;v-=8)p[t++]=e[r]>>v&255;return p}for(var e=[],f=[],g=[],k=[128],l=1;64>l;++l)k[l]=0;var m,n;a();return{reset:a,update:c,digest:d,zg:function(){for(var p=d(),t="",r=0;rcv(m.fk[k],l)&&m.fk[k].push(l));f()}else e.En={error:"Not a valid origin for the client: "+e.$c+ " has not been registered for client ID "+e.Nb+". Please go to https://console.developers.google.com/ and register this origin for your project's client ID."},e.Fl=!0,e.zv(e.En)}):(Uv(e.tb),f()))},this.vo)};dv(_.Yv,lv);_.h=_.Yv.prototype;_.h.setOptions=function(){};_.h.XK=function(){};_.h.zv=function(){};_.h.Qu=function(){return this.Tr};_.h.ll=function(){return this.En};Zv=function(a,b,c){return function(){b.apply(a,c)}}; _.$v=function(a,b,c){if(a.fJ)b.apply(a,c);else{if(a.Fl)throw a.En;a.kp.push(Zv(a,b,c))}};_.Yv.prototype.BF=_.da(13);_.Yv.prototype.bp=_.da(11); _.bw=function(a,b){_.Yv.call(this,a,b);this.GK=new tv;this.Ri=this.Rl=null;aw(this)};dv(_.bw,_.Yv);_.bw.prototype.setOptions=function(){}; var cw=function(a,b){a.Qd={crossSubDomains:!!b.crossSubDomains,id:b.sessionSelectorId,domain:a.$b};b.crossSubDomains&&(a.Qd.policy=b.policy)},dw=function(a,b){if(!b.authParameters)throw Error("ca");if(!b.authParameters.scope)throw Error("da");if(!b.authParameters.response_type)throw Error("ea");a.Ro=b.authParameters;a.Ro.redirect_uri||(a.Ro.redirect_uri=[location.protocol,"//",location.host,location.pathname].join(""));a.Oh=_.fv(b.rpcAuthParameters||a.Ro);if(!a.Oh.scope)throw Error("fa");if(!a.Oh.response_type)throw Error("ga"); a:{var c=a.Oh.response_type.split(" ");for(var d=0,e=c.length;db;b++)a[b]=Math.floor(256*Math.random())}return _.ph(a,3).substring(0,64)},nw=function(){var a=navigator.userAgent.toLowerCase();return 0>a.indexOf("edge/")&&(-1 a.indexOf("chrome/")&&0>a.indexOf("crios/")&&0>a.indexOf("safari/")},pw=function(a,b,c){if(!a.Rd)throw Error("ia");b?_.Pv(a.Wc,a.Qd,!0,void 0,c):_.Pv(a.Wc,a.Qd,!0,a.Nd,c)},qw=function(a){if(!a.Rd)throw Error("ia");return a.Wu},rw,sw,tw,uw,vw,ww,xw,yw,zw,Bw;_.jw.prototype.DJ=_.Za(18,function(a,b){var c=this.Wc,d=this.Nb,e=this.Qd,f=_.fv(this.Oh);delete f.response_type;_.Mv(c,"getOnlineCode",{clientId:d,loginHint:a,request:f,sessionSelector:e},b)}); _.hw.prototype.mL=_.Za(17,function(a){qw(this)&&qw(this).access_token&&(this.Wc.lr(this.Nb,qw(this).access_token,a),pw(this,!0))}); _.hw.prototype.Np=_.Za(16,function(){var a=this;return function(b){if(b&&b.authResult&&b.authResult.login_hint)if(a.Qu()&&a.vo&&(nw()||ow())){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.tb};a.Wu=b;a.dispatchEvent({type:_.gw.LE,idpId:a.tb,response:b})}else a.Ew(b.authResult.login_hint,a.Ag||b.authResult.login_hint!=a.Nd,!0,!0)}}); _.jw.prototype.Np=_.Za(15,function(a){var b=this;return function(c){c&&c.authResult&&c.authResult.login_hint?b.Gp(function(d){_.Pv(b.Wc,b.Qd,d&&d.disabled,c.authResult.login_hint,function(){_.kw(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"})}});_.bw.prototype.ZJ=_.Za(14,function(){this.Nb&&_.Mv(this.Wc,"startPolling",{clientId:this.Nb,origin:this.$c,id:this.Oi},void 0)}); _.Jv.prototype.lr=_.Za(10,function(a,b,c){_.Mv(this,"revoke",{clientId:a,token:b},c)});_.hw.prototype.lr=_.Za(9,function(a){_.$v(this,this.mL,[a])});rw=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}; sw=function(){var a=navigator.userAgent.toLowerCase();if(!(-1a.indexOf("chrome/")&&0>a.indexOf("crios/")&&0>a.indexOf("android")))return!1;var b=/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 12b.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("&")}; uw=function(a,b,c,d){if(!a.Nb)throw Error("ja");a.Oi=c||a.gQ||"auth"+Math.floor(1E6*Math.random()+1);b=b||{};b.extraQueryParams=b.extraQueryParams||{};if(!b.extraQueryParams.redirect_uri){var e=a.$c.split("//");c=b.extraQueryParams;var f=e[0],g=f.indexOf(":");0e)b[d++]=String.fromCharCode(e);else if(191e){var f=a[c++];b[d++]=String.fromCharCode((e&31)<<6|f&63)}else if(239e){f=a[c++];var g=a[c++],k=a[c++];e=((e&7)<<18|(f&63)<<12|(g&63)<<6|k&63)-65536;b[d++]=String.fromCharCode(55296+(e>>10));b[d++]=String.fromCharCode(56320+(e&1023))}else f=a[c++],g=a[c++],b[d++]=String.fromCharCode((e&15)<<12|(f&63)<<6|g&63)}return b.join("")}; Bw=function(a){var b=[];_.qh(a,function(c){b.push(c)});return b};_.Cw=function(a,b){_.Xh[b||"token"]=a};_.Dw=function(a){delete _.Xh[a||"token"]}; _.kv={parse:function(a){a=_.Cf("["+String(a)+"]");if(!1===a||1!==a.length)throw new SyntaxError("JSON parsing failed.");return a[0]},stringify:function(a){return _.Ff(a)}}; _.jw.prototype.Yy=function(a,b){_.$v(this,this.IR,[a,b])};_.jw.prototype.IR=function(a,b){this.Wc.Yy(this.Nb,a,this.Oh,this.Qd,b)}; _.Jv.prototype.Yy=function(a,b,c,d,e){c=_.fv(c);_.Mv(this,"gsi:fetchLoginHint",{clientId:a,loginHint:b,request:c,sessionSelector:d},e)}; var Ew,Fw=["client_id","cookie_policy","scope"],Gw="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 gsiwebsdk".split(" "),Hw=["authuser","after_redirect","access_type","hl"],Iw=["login_hint","prompt"],Jw={clientid:"client_id",cookiepolicy:"cookie_policy"},Kw=["approval_prompt","authuser","login_hint", "prompt","hd"],Lw=["login_hint","g-oauth-window","status"],Mw=Math.min(_.V("oauth-flow/authWindowWidth",599),screen.width-20),Nw=Math.min(_.V("oauth-flow/authWindowHeight",600),screen.height-30); var Ow=function(a){_.fb.call(this,a)};_.S(Ow,_.fb);Ow.prototype.name="gapi.auth2.ExternallyVisibleError"; var Pw=function(){};Pw.prototype.select=function(a,b){if(a.sessions&&1==a.sessions.length&&(a=a.sessions[0],a.login_hint)){b(a);return}b()};var Qw=function(){};Qw.prototype.select=function(a,b){if(a.sessions&&a.sessions.length)for(var c=0;cb.indexOf(c)&&delete a[c];return a},zx=function(a,b){if(!a)throw new Ow("Empty initial options.");for(var c=0;c");var g=_.Se.createElement(d.join(""));g&&(!c||g.tagName==c.tagName&&g.namespaceURI==c.namespaceURI)&&(c=g)}catch(l){}d=c;b=b||{};for(var k in b)b.hasOwnProperty(k)&&(d[k]=b[k]);return c};_.Se.dH=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};_.Se.n9=function(b){return a(b)}})(); _.Nh=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;n=m=0}function b(p){for(var t=g,r=0;64>r;r+=4)t[r/4]=p[r]<<24|p[r+1]<<16|p[r+2]<<8|p[r+3];for(r=16;80>r;r++)p=t[r-3]^t[r-8]^t[r-14]^t[r-16],t[r]=(p<<1|p>>>31)&4294967295;p=e[0];var v=e[1],u=e[2],x=e[3],y=e[4];for(r=0;80>r;r++){if(40>r)if(20>r){var A=x^v&(u^x);var G=1518500249}else A=v^u^x,G=1859775393;else 60>r?(A=v&u|x&(v|u),G=2400959708):(A=v^u^x,G=3395469782);A=((p<<5|p>>>27)&4294967295)+ A+y+G+t[r]&4294967295;y=x;x=u;u=(v<<30|v>>>2)&4294967295;v=p;p=A}e[0]=e[0]+p&4294967295;e[1]=e[1]+v&4294967295;e[2]=e[2]+u&4294967295;e[3]=e[3]+x&4294967295;e[4]=e[4]+y&4294967295}function c(p,t){if("string"===typeof p){p=unescape(encodeURIComponent(p));for(var r=[],v=0,u=p.length;vm?c(k,56-m):c(k,64-(m-56));for(var r=63;56<=r;r--)f[r]=t&255,t>>>=8;b(f);for(r=t=0;5>r;r++)for(var v=24;0<=v;v-=8)p[t++]=e[r]>>v&255;return p}for(var e=[],f=[],g=[],k=[128],l=1;64>l;++l)k[l]=0;var m,n;a();return{reset:a,update:c,digest:d,zg:function(){for(var p=d(),t="",r=0;riz;++iz); _.Zy="https:"===window.location.protocol;_.jz=_.Zy||"http:"===window.location.protocol?_.az:_.dz;_.Yy=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=_.Tr(c),l+=">"+_.Vc(c).toString()+"",d=c.Qj());(b=b&&b.dir)&&(d=/^(ltr|rtl|auto)$/i.test(b)?0:null);return _.Wc(l,d)};_.Vr=function(a){return _.fd('style[nonce],link[rel="stylesheet"][nonce]',a)}; _.Wr=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};Xr=function(a){return a.replace(/(^|[\s]+)([a-z])/g,function(b,c,d){return c+d.toUpperCase()})};_.Yr=function(a,b,c){return _.fe(document,arguments)}; _.Zr=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};_.h=_.Zr.prototype;_.h.tc=function(){return this.right-this.left};_.h.Gd=function(){return this.bottom-this.top};_.h.clone=function(){return new _.Zr(this.top,this.right,this.bottom,this.left)};_.h.contains=function(a){return this&&a?a instanceof _.Zr?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1}; _.h.expand=function(a,b,c,d){_.qb(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=Number(b),this.bottom+=Number(c),this.left-=Number(d));return this};_.h.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this}; _.h.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};_.h.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; _.h.translate=function(a,b){a instanceof _.vr?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(this.left+=a,this.right+=a,"number"===typeof b&&(this.top+=b,this.bottom+=b));return this};_.h.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this}; var bs,hs,fs,ks,ws,xs;_.as=function(a,b,c){if("string"===typeof b)(b=_.$r(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=_.$r(c,d);f&&(c.style[f]=e)}};bs={};_.$r=function(a,b){var c=bs[b];if(!c){var d=_.Wr(b);c=d;void 0===a.style[d]&&(d=(_.td?"Webkit":_.sd?"Moz":_.pd?"ms":_.od?"O":null)+Xr(d),void 0!==a.style[d]&&(c=d));bs[b]=c}return c}; _.cs=function(a,b){var c=_.Yd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};_.ds=function(a,b){return a.currentStyle?a.currentStyle[b]:null};_.es=function(a,b){return _.cs(a,b)||_.ds(a,b)||a.style&&a.style[b]};_.gs=function(a,b,c){if(b instanceof _.vr){var d=b.x;b=b.y}else d=b,b=c;a.style.left=fs(d,!1);a.style.top=fs(b,!1)}; hs=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}}; _.ls=function(a,b){b=b||_.Ar(document);var c=b||_.Ar(document);var d=_.is(a),e=_.is(c),f=_.js(c);if(c==_.Ar(document)){var g=d.x-c.scrollLeft;d=d.y-c.scrollTop;_.pd&&!_.Pd(10)&&(g+=f.left,d+=f.top)}else g=d.x-e.x-f.left,d=d.y-e.y-f.top;a=ks(a);f=c.clientHeight-a.height;e=c.scrollLeft;var k=c.scrollTop;e+=Math.min(g,Math.max(g-(c.clientWidth-a.width),0));k+=Math.min(d,Math.max(d-f,0));c=new _.vr(e,k);b.scrollLeft=c.x;b.scrollTop=c.y}; _.is=function(a){var b=_.Yd(a),c=new _.vr(0,0);var d=b?_.Yd(b):document;d=!_.pd||_.Pd(9)||_.xr(_.Zd(d).kb)?d.documentElement:d.body;if(a==d)return c;a=hs(a);b=_.Br(_.Zd(b).kb);c.x=a.left+b.x;c.y=a.top+b.y;return c};_.ns=function(a,b){var c=new _.vr(0,0),d=_.ce(_.Yd(a));if(!_.md(d,"parent"))return c;do{var e=d==b?_.is(a):_.ms(a);c.x+=e.x;c.y+=e.y}while(d&&d!=b&&d!=d.parent&&(a=d.frameElement)&&(d=d.parent));return c};_.ms=function(a){a=hs(a);return new _.vr(a.left,a.top)}; _.os=function(a,b,c){if(b instanceof _.wr)c=b.height,b=b.width;else if(void 0==c)throw Error("I");a.style.width=fs(b,!0);a.style.height=fs(c,!0)};fs=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};_.ps=function(a){var b=ks;if("none"!=_.es(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a}; ks=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=_.td&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=hs(a),new _.wr(a.right-a.left,a.bottom-a.top)):new _.wr(b,c)};_.qs=function(a,b){a.style.display=b?"":"none"}; _.ss=function(a){var b=_.Zd(void 0),c=b.lb();if(_.pd&&c.createStyleSheet)b=c.createStyleSheet(),_.rs(b,a);else{c=_.Cr(b,"HEAD")[0];if(!c){var d=_.Cr(b,"BODY")[0];c=b.ka("HEAD");d.parentNode.insertBefore(c,d)}d=b.ka("STYLE");var e=_.Vr();e&&d.setAttribute("nonce",e);_.rs(d,a);b.appendChild(c,d)}};_.rs=function(a,b){b=_.Or(b);_.pd&&void 0!==a.cssText?a.cssText=b:_.q.trustedTypes?_.re(a,b):a.innerHTML=b};_.ts=function(a){return"rtl"==_.es(a,"direction")}; _.us=_.sd?"MozUserSelect":_.td||_.qd?"WebkitUserSelect":null;_.vs=function(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;b=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return+b};ws={thin:2,medium:4,thick:6};xs=function(a,b){if("none"==_.ds(a,b+"Style"))return 0;b=_.ds(a,b+"Width");return b in ws?ws[b]:_.vs(a,b)}; _.js=function(a){if(_.pd&&!_.Pd(9)){var b=xs(a,"borderLeft"),c=xs(a,"borderRight"),d=xs(a,"borderTop");a=xs(a,"borderBottom");return new _.Zr(d,c,a,b)}b=_.cs(a,"borderLeftWidth");c=_.cs(a,"borderRightWidth");d=_.cs(a,"borderTopWidth");a=_.cs(a,"borderBottomWidth");return new _.Zr(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}; /* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ _.my=function(a,b,c){if("function"===typeof a)c&&(a=(0,_.U)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,_.U)(a.handleEvent,a);else throw Error("sa");return 2147483647a.ih)&&(a=c,b=d)});return{nQ:a,authuser:b}};eA=[".APPS.GOOGLEUSERCONTENT.COM","@DEVELOPER.GSERVICEACCOUNT.COM"];fA=function(a){a=a.toUpperCase();for(var b=0,c=eA.length;ba.expires_at?null:a};_.kA=function(a,b){if(b){var c=b;var d=a}else"string"===typeof a?d=a:c=a;c?_.Cw(c,d):_.Dw(d)}; lA=function(a){if(!a)return null;"single_host_origin"!==a&&(a=_.yg(a));var b=window.location.hostname,c=b,d=_.Zy;if("single_host_origin"!==a){c=a.split("://");if(2==c.length)d="https"===c.shift();else return _.Jf("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 _.Jf("Invalid cookie_policy domain: "+c),null;c=a;b=c.split(".").length-1}return{domain:c,ke:d,ih:b}}; mA=function(a){var b=lA(a);if(!b)return new _.dz("G_USERSTATE_");a=["G_USERSTATE_",_.Zy&&b.ke?"S":"H",b.ih].join("");var c=_.nz[a];c||(c={fB:63072E3},_.ze(_.qz(b),c),c=new _.az(a,c),_.nz[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};nA=function(a){var b=mA(a).read();a=_.xe();if(b){b=b.split(":");for(var c;c=b.shift();)c=c.split("="),a[c[0]]=c[1]}return a}; oA=function(a,b,c){var d=nA(b),e=d[a];d[a]="0";var f=[];_.hm(d,function(k,l){f.push(l+"="+k)});var g=f.join(":");b=mA(b);g?b.write(g):b.clear();d[a]!==e&&c&&c()};pA=function(a,b){b=nA(b);return"0"==b[a]||"X"==b[a]};qA=function(a){a=lA(a.g_user_cookie_policy);if(!a||a.ke&&!_.Zy)a=null;else{var b=["G_AUTHUSER_",_.Zy&&a.ke?"S":"H",a.ih].join(""),c=_.mz[b];c||(c=new _.jz(b,_.qz(a)),_.mz[b]=c);a=c}_.Qe("googleapis.config/sessionIndex",null);a.clear()};rA=function(a){return $z(function(b){return a[b]})}; sA=0;tA=!1;uA=[];vA={};wA={};xA=null;yA=function(a){var b=_.xz;return function(c){if(this.f==b&&this.t==_.Rf.dl(this.f)&&this.origin==_.Rf.ul(this.f))return a.apply(this,arguments)}};zA=function(a){"function"===typeof a.setAttribute?a.setAttribute("aria-hidden","true"):a["aria-hidden"]="true"};AA=function(a){if(a&&!decodeURIComponent(a).startsWith("m;/_/scs/"))throw Error("wa");}; BA=function(a){var b=_.Se.tf,c=b(a).jsh;if(null!=c)return AA(c),a;if(b=String(b().jsh||_.Ie.h||""))AA(b),c=(a+"#").indexOf("#"),a=a.substr(0,c)+(-1!==a.substr(0,c).indexOf("?")?"&":"?")+"jsh="+encodeURIComponent(b)+a.substr(c);return a};CA=function(){return!!_.V("oauth-flow/usegapi")};DA=function(a,b){CA()?xA.unregister(a):_.Rf.unregister(a+":"+b)};EA=function(a,b,c){CA()?xA.register(a,c,_.Fm):_.Rf.register(a+":"+b,yA(c))};FA=function(){bA.parentNode.removeChild(bA)}; GA=function(a){var b=bA;_.vz(b,[{Vv:"-webkit-transform",duration:1,timing:"ease",delay:0}]);_.vz(b,[{Vv:"transform",duration:1,timing:"ease",delay:0}]);_.my(function(){b.style.webkitTransform="translate3d(0px,"+a+"px,0px)";b.style.transform="translate3d(0px,"+a+"px,0px)"},0)};HA=function(){var a=cA+88;GA(a);cA=a};IA=function(){var a=cA-88;GA(a);cA=a}; JA=function(a){var b=a?HA:IA,c=a?IA:HA;a=a?"-":"";cA=parseInt(a+88,10);bA.style.webkitTransform="translate3d(0px,"+a+88+"px,0px)";bA.style.transform="translate3d(0px,"+a+88+"px,0px)";bA.style.display="";bA.style.visibility="visible";b();_.my(c,4E3);_.my(FA,5E3)}; KA=function(a){var b=_.V("oauth-flow/toast/position");"top"!==b&&(b="bottom");var c=document.createElement("div");bA=c;c.style.cssText="position:fixed;left:0px;z-index:1000;width:100%;";_.as(c,"visibility","hidden");_.as(c,b,"-40px");_.as(c,"height","128px");var d=c;if(!_.Sq()&&!_.Rq()){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?"-":"";cA=parseInt(e+88,10);bA.style.webkitTransform="translate3d(0px,"+e+88+"px,0px)";bA.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){}_.dm.openChild({url:":socialhost:/:session_prefix:_/widget/oauthflow/toast",queryParams:{clientId:a.client_id,idToken:a.id_token},where:d,onRestyle:function(){"top"===b?JA(!0):JA(!1)}})}; LA=function(a){var b=_.Qn(),c=b&&b.scope;b=a&&a.scope;b="string"===typeof b?b.split(" "):b||[];if(c){c=c.split(" ");for(var d=0;dc-sA)return;var d=_.Rf.dl(a);d&&(DA("oauth2relayReady",d),DA("oauth2callback",d));b.parentNode.removeChild(b);if(/Firefox/.test(navigator.userAgent))try{window.frames[a]=void 0}catch(f){}_.yz();a=_.xz}sA=c;var e=String(2147483647*(0,_.Bg)()|0);b=_.V("oauth-flow/proxyUrl")||_.V("oauth-flow/relayUrl");CA()?xA=_.dm.openChild({where:_.Se.dH(),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(_.wg.getOrigin(window.location.href)),"#rpctoken=",e,"&forcesecure=1"].join(""),c=_.Se.dH(),d=_.Se.TF({name:a,id:a}),d.src=BA(b),d.style.width="1px",d.style.height="1px",d.style.position="absolute",d.style.top="-100px",d.tabIndex=-1,zA(d),c.appendChild(d),_.Rf.Fr(a));EA("oauth2relayReady",e,function(){DA("oauth2relayReady",e);var f=uA;if(null!==f){uA=null;for(var g=0,k=f.length;g< k;++g)f[g]()}});EA("oauth2callback",e,function(f){var g=_.Se.tf;g=g(f);var k=g.state;f=k.replace(/\|.*$/,"");f={}.hasOwnProperty.call(wA,f)?wA[f]:null;g.state=f;if(null!=g.state){f=vA[k];delete vA[k];k=f&&f.key||"token";var l=g=MA(f&&f.params,g);var m=(m=OA(l))?pA(m,l.cookie_policy):!1;!m&&l&&0<=(" "+(l.scope||"")+" ").indexOf(" https://www.googleapis.com/auth/plus.login ")&&_.V("isLoggedIn")&&"1"===(l&&l._aa)&&(l._aa="0",tA||(tA=!0,KA(l)));_.kA(k,g);g=jA(k);if(f){k=f.popup;l=f.after_redirect;if(k&& "keep_open"!=l)try{k.close()}catch(n){}f.callback&&(f.callback(g),f.callback=null)}}})};_.QA=function(a){null!==uA?PA(a):a&&a()};SA=function(a,b){var c=RA,d=OA(a);d&&(qA(a),oA(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=MA(null,e);c(e)}}))}; RA=function(a){a||(a=jA(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||(_.Ie.drw=null);_.kA(a);if(b=a.authuser)_.V("googleapis.config/sessionIndex"),_.Qe("googleapis.config/sessionIndex",b);_.zz.Un(_.Az,a);return a};TA=["client_id","cookie_policy","response_type"];UA="client_id response_type login_hint authuser prompt include_granted_scopes after_redirect access_type hl state".split(" "); VA=function(a){var b=_.mj(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);_.Cw(b);return b}; WA=function(a){if(void 0===a.include_granted_scopes){var b=_.V("include_granted_scopes");a.include_granted_scopes=!!b}};XA=function(a){window.console&&("function"===typeof window.console.warn?window.console.warn(a):"function"===typeof window.console.log&&window.console.log(a))}; YA=function(a){var b=a||{},c={};_.Kb(UA,function(d){null!=b[d]&&(c[d]=b[d])});a=_.V("googleapis/overrideClientId");null!=a&&(c.client_id=a);WA(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{_.tx(c.cookie_policy)}catch(d){c.cookie_policy&& XA("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=_.Ih(),null!=a&&(c.authuser=a));a=b.redirect_uri||_.V("oauth-flow/redirectUri"); null!=a&&"postmessage"!=a&&(c.redirect_uri=a);c.gsiwebsdk="shim";return c}; _.ZA=function(a,b){var c=YA(a),d=new _.Mj(function(e,f){_.Yx(c,function(g){var k=g||{};_.Kb(TA,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)):(g=VA(k),null!=g.authuser&&_.Qe("googleapis.config/sessionIndex",g.authuser),e(g))})});b&&d.then(b,b);return d};$A=_.Wh.bH;aB=null; _.dB=function(a,b){if("force"!==a.approvalprompt){a=_.bB(a);a.prompt="none";delete a.redirect_uri;delete a.approval_prompt;delete a.immediate;if(b=!b)aB?(a.client_id!==aB.client_id&&window.console&&window.console.log&&window.console.log("Ignoring mismatched page-level auth param client_id="+a.client_id),b=!0):(aB=a,b=!1);b||cB(a)}}; _.bB=function(a){var b=a.redirecturi||"postmessage",c=(0,_.gc)((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,_.gc)(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||_.V("googleapis.config/sessionIndex"))&&(b.authuser=a);(a=_.V("useoriginassocialhost"))&&(b.use_origin_as_socialhost=a);return b};cB=function(a){_.Io("waaf0","signin","0");_.ZA(a,function(b){_.Io("waaf1","signin","0");RA(b)})}; _.eB=function(a){a=_.bB(a);_.Qe("oauth-flow/authWindowWidth",445);_.Qe("oauth-flow/authWindowHeight",615);cB(a)};_.fB=function(a){_.zz.unsubscribe(_.Az,a);_.zz.subscribe(_.Az,a)}; var mB,pB;_.hB=function(a){return a.cookiepolicy?!0:(_.gB("cookiepolicy is a required field. See https://developers.google.com/+/web/signin/#button_attr_cookiepolicy for more information."),!1)};_.gB=function(a){window.console&&(window.console.error?window.console.error(a):window.console.log&&window.console.log(a))};_.lB=function(a,b){var c=_.Qn();_.ze(a,c);c=LA(c);if(_.hB(c)){var d=_.iB();_.jB(c);b?_.He(b,"click",function(){_.kB(c,d)}):_.kB(c,d)}}; _.iB=function(){var a=new mB;_.fB(function(b){a.gB&&b&&(b.access_token&&_.Qe("isPlusUser",!0),b["g-oauth-window"]&&(a.gB=!1,_.Lf("OTA app install is no longer supported.")))});return a};mB=function(){this.gB=!1};_.jB=function(a){a=_.nB(a);_.oB(a.callback);_.QA(function(){_.dB(a)})};_.nB=function(a){pB(a);a.redirecturi&&delete a.redirecturi;aA(function(b){return a[b]})||(a.authuser=0);return a};pB=function(a){/^\s*$/.test(a.scope||"")&&(a.scope="https://www.googleapis.com/auth/plus.login")}; _.oB=function(a){if("string"===typeof a)if(window[a])a=window[a];else{_.gB('Callback function named "'+a+'" not found');return}a&&_.fB(a)};_.kB=function(a,b){b.gB=!0;a=_.nB(a);_.eB(a)}; _.B("gapi.auth.authorize",_.ZA);_.B("gapi.auth.checkSessionState",function(a,b){var c=_.xe();c.client_id=a.client_id;c.session_state=a.session_state;_.QA(function(){CA()?xA.send("check_session_state",c,function(d){b.call(null,d[0])},_.Fm):_.Rf.call(_.xz,"check_session_state",yA(function(d){b.call(null,d)}),c.session_state,c.client_id)})});_.B("gapi.auth.getAuthHeaderValueForFirstParty",$A);_.B("gapi.auth.getToken",jA); _.B("gapi.auth.getVersionInfo",function(a,b){_.QA(function(){var c=_.Uh()||"",d=null,e=null;c&&(e=c.split(" "),2==e.length&&(d=e[1]));d?CA()?xA.send("get_versioninfo",{xapisidHash:d,sessionIndex:b},function(f){a(f[0])},_.Fm):_.Rf.call(_.xz,"get_versioninfo",yA(function(f){a(f)}),d,b):a()})});_.B("gapi.auth.init",_.QA);_.B("gapi.auth.setToken",_.kA);_.B("gapi.auth.signIn",function(a){_.lB(a)});_.B("gapi.auth.signOut",function(){var a=jA();a&&SA(a,a.cookie_policy)}); _.B("gapi.auth.unsafeUnpackIdToken",NA);_.B("gapi.auth._pimf",_.dB);_.B("gapi.auth._oart",KA);_.B("gapi.auth._guss",function(a){return mA(a).read()}); var qB=_.Qn();qB.clientid&&qB.scope&&qB.callback&&!_.V("disableRealtimeCallback")&&_.jB(qB); }); // Google Inc.