/* JS */ gapi.loaded_2(function(_){var window=this;
/*
 Portions of this code are from MochiKit, received by
 The Closure Authors under the MIT license. All other code is Copyright
 2005-2009 The Closure Authors. All Rights Reserved.
*/
_.TQ=function(a,b){this.Kw=[];this.lL=a;this.sH=b||null;this.Kq=this.yn=!1;this.Mf=void 0;this.tE=this.iS=this.By=!1;this.px=0;this.$a=null;this.Dy=0};_.TQ.prototype.cancel=function(a){if(this.yn)this.Mf instanceof _.TQ&&this.Mf.cancel();else{if(this.$a){var b=this.$a;delete this.$a;a?b.cancel(a):(b.Dy--,0>=b.Dy&&b.cancel())}this.lL?this.lL.call(this.sH,this):this.tE=!0;this.yn||(a=new _.UQ(this),_.VQ(this),_.WQ(this,!1,a))}};_.TQ.prototype.kH=function(a,b){this.By=!1;_.WQ(this,a,b)};
_.WQ=function(a,b,c){a.yn=!0;a.Mf=c;a.Kq=!b;XQ(a)};_.VQ=function(a){if(a.yn){if(!a.tE)throw new YQ(a);a.tE=!1}};_.TQ.prototype.callback=function(a){_.VQ(this);_.WQ(this,!0,a)};_.TQ.prototype.Td=function(a,b){return this.Zm(a,null,b)};_.TQ.prototype.Zm=function(a,b,c){this.Kw.push([a,b,c]);this.yn&&XQ(this);return this};_.TQ.prototype.then=function(a,b,c){var d,e,f=new _.Oj(function(g,k){d=g;e=k});this.Zm(d,function(g){g instanceof _.UQ?f.cancel():e(g)});return f.then(a,b,c)};_.xj(_.TQ);
_.TQ.prototype.isError=function(a){return a instanceof Error};
var ZQ=function(a){return(0,_.tb)(a.Kw,function(b){return _.jb(b[1])})},XQ=function(a){if(a.px&&a.yn&&ZQ(a)){var b=a.px,c=$Q[b];c&&(_.q.clearTimeout(c.Da),delete $Q[b]);a.px=0}a.$a&&(a.$a.Dy--,delete a.$a);b=a.Mf;for(var d=c=!1;a.Kw.length&&!a.By;){var e=a.Kw.shift(),f=e[0],g=e[1];e=e[2];if(f=a.Kq?g:f)try{var k=f.call(e||a.sH,b);void 0!==k&&(a.Kq=a.Kq&&(k==b||a.isError(k)),a.Mf=b=k);if(_.yj(b)||"function"===typeof _.q.Promise&&b instanceof _.q.Promise)d=!0,a.By=!0}catch(l){b=l,a.Kq=!0,ZQ(a)||(c=!0)}}a.Mf=
b;d&&(k=(0,_.J)(a.kH,a,!0),d=(0,_.J)(a.kH,a,!1),b instanceof _.TQ?(b.Zm(k,d),b.iS=!0):b.then(k,d));c&&(b=new aR(b),$Q[b.Da]=b,a.px=b.Da)},YQ=function(){_.$c.call(this)};_.B(YQ,_.$c);YQ.prototype.message="Deferred has already fired";YQ.prototype.name="AlreadyCalledError";_.UQ=function(){_.$c.call(this)};_.B(_.UQ,_.$c);_.UQ.prototype.message="Deferred was canceled";_.UQ.prototype.name="CanceledError";var aR=function(a){this.Da=_.q.setTimeout((0,_.J)(this.J1,this),0);this.ju=a};
aR.prototype.J1=function(){delete $Q[this.Da];throw this.ju;};var $Q={};

var bR=function(a){(0,eval)(a)},cR=function(a){var b=_.q.onerror,c=!1;_.Ac&&!_.Sc("535.3")&&(c=!c);_.q.onerror=function(d,e,f,g,k){b&&b(d,e,f,g,k);a({message:d,fileName:e,line:f,lineNumber:f,Kaa:g,error:k});return c}},dR=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack},eR=function(a,b){b||(b={});b[dR(a)]=!0;var c=a.stack||"";(a=a.QG)&&!b[dR(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=eR(a,b));return c},
fR=function(a){var b=_.Bp("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(f){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||_.q.$googDebugFname||b}catch(f){e="Not available",c=!0}b=eR(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name))return c=a.message,
null==c&&(c=a.constructor&&a.constructor instanceof Function?'Unknown Error of type "'+(a.constructor.name?a.constructor.name:_.Zx(a.constructor))+'"':"Unknown Error of unknown type","function"===typeof a.toString&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())),{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"};a.stack=b;return a};
var gR=function(){_.Ep.call(this)};_.hj(gR,_.Ep);gR.prototype.init=function(){this.Bo=[]};
var jR=function(a){var b=hR;b.DD=a;iR(b)},lR=function(a,b){var c=hR;if(c.yca){a="Potentially sensitive message stripped for security reasons.";var d=Error("Ta");d.columnNumber=b.columnNumber;d.lineNumber=b.lineNumber;d.name=b.name;d.fileName=b.fileName;if(_.Lb()&&_.Sx(28)||_.Kb()&&_.Sx(14))d.stack=b.stack;b=d}c.Ob||b instanceof _.UQ||(c.DD?kR(c.DD,b,a):c.Bo&&10>c.Bo.length&&c.Bo.push([a,b]))},iR=function(a){a.Bo&&((0,_.qb)(a.Bo,function(b){kR(this.DD,b[1],b[0])},a),a.Bo=null)};gR.prototype.Db=null;
var hR=new gR;
var mR=function(){var a=window;if(!a.location)try{_.Cx(a)}catch(c){}var b=a.location&&a.location.ancestorOrigins;if(void 0!==b)return b&&b.length?b[b.length-1]==a.location.origin:!0;try{return void 0!==a.top.location.href}catch(c){return!1}};
var nR={},oR=function(){var a={};a.location=document.location.toString();if(mR())try{a["top.location"]=top.location.toString()}catch(c){a["top.location"]="[external]"}else a["top.location"]="[external]";for(var b in nR)try{a[b]=nR[b].call()}catch(c){a[b]="[error] "+c.message}return a};
var pR=function(a){this.dH=a;this.XJ={};this.Oq=[]},kR=function(a,b,c){var d=oR();c&&(d.message=c);a:{c=_.ay();d["call-stack"]=c;b=b instanceof Error?b:b||"";for(c=0;c<a.Oq.length;c++)if(!1===a.Oq[c](b,d))break a;c="";if(b){c=b.message||"unknown";for(var e=0,f=0;f<c.length;++f)e=31*e+c.charCodeAt(f)>>>0;c=e}e="";for(g in d)e=e+g+":"+d[g]+":";var g=c+"::"+e;c=a.XJ[g];c||(c={time:0,count:0},a.XJ[g]=c);1E4>(0,_.Xa)()-c.time?(c.count++,1==c.count&&(d=oR(),d.message="Throttling: "+g,a.dH.Ru(b,d))):(c.count&&
(d["dropped-instances"]=c.count),c.time=(0,_.Xa)(),c.count=0,a.dH.Ru(b,d))}};
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var qR=function(a){_.Ep.call(this);this.kT=a};_.B(qR,_.Ep);qR.prototype.wrap=function(a){return rR(this,a)};var sR=function(a,b){return(b?"__wrapper_":"__protected_")+_.Zc(a)+"__"},rR=function(a,b){var c=sR(a,!0);b[c]||((b[c]=tR(a,b))[sR(a,!1)]=b);return b[c]},tR=function(a,b){var c=function(){if(a.Ob)return b.apply(this,arguments);try{return b.apply(this,arguments)}catch(d){a.mg(d)}finally{}};c[sR(a,!1)]=b;return c};
qR.prototype.mg=function(a){if(!(a&&"object"===typeof a&&"string"===typeof a.message&&0==a.message.indexOf("Error in protected function: ")||"string"===typeof a&&0==a.indexOf("Error in protected function: ")))throw this.kT(a),new uR(a);};
var vR=function(a,b){var c=_.q.window,d=c[b];c[b]=function(e,f){"string"===typeof e&&(e=_.ij(bR,e));arguments[0]=e=rR(a,e);if(d.apply)return d.apply(this,arguments);var g=e;if(2<arguments.length){var k=Array.prototype.slice.call(arguments,2);g=function(){e.apply(this,k)}}return d(g,f)};c[b][sR(a,!1)]=d};qR.prototype.va=function(){var a=_.q.window;var b=a.setTimeout;b=b[sR(this,!1)]||b;a.setTimeout=b;b=a.setInterval;b=b[sR(this,!1)]||b;a.setInterval=b;qR.T.va.call(this)};
var uR=function(a){_.$c.call(this,"Error in protected function: "+(a&&a.message?String(a.message):String(a)));(a=(this.QG=a)&&a.stack)&&"string"===typeof a&&(this.stack=a)};_.B(uR,_.$c);
var xR=function(a,b,c){_.oq.call(this);this.jH=b||null;this.kG={};this.qO=wR;this.AW=a;if(!c)if(this.xn=null,_.vc&&!_.Sc("10"))cR((0,_.J)(this.Ru,this));else{this.xn=new qR((0,_.J)(this.Ru,this));vR(this.xn,"setTimeout");vR(this.xn,"setInterval");a=this.xn;b=_.q.window;c=["requestAnimationFrame","mozRequestAnimationFrame","webkitAnimationFrame","msRequestAnimationFrame"];for(var d=0;d<c.length;d++){var e=c[d];c[d]in b&&vR(a,e)}a=this.xn;_.mj=!0;b=(0,_.J)(a.wrap,a);for(c=0;c<_.kj.length;c++)_.kj[c](b);
_.lj.push(a)}};_.B(xR,_.oq);var yR=function(a,b){_.Ip.call(this,"a");this.error=a;this.context=b};_.B(yR,_.Ip);var wR=function(a,b,c,d){_.hy(a,null,b,c,d)},zR=function(a,b){a.qO=b};
xR.prototype.Ru=function(a,b){a=a.error||a;b=b?_.tj(b):{};a instanceof Error&&_.Hb(b,a.__closure__error__context__984382||{});a=fR(a);if(this.jH)try{this.jH(a,b)}catch(k){}var c=a.message.substring(0,1900),d=a.stack;try{var e=_.Vx(this.AW,"script",a.fileName,"error",c,"line",a.lineNumber);_.mq(this.kG)||(e=_.qh(e,this.kG));c={};c.trace=d;if(b)for(var f in b)c["context."+f]=b[f];var g=_.ph(c);this.qO(e,"POST",g,this.aba)}catch(k){}try{this.dispatchEvent(new yR(a,b))}catch(k){}};
xR.prototype.va=function(){_.Gp(this.xn);xR.T.va.call(this)};
var AR=function(){var a=_.O("debug/host"),b="withCredentials"in new XMLHttpRequest,c=!!window.XDomainRequest,d=document.location.origin;hR.init();var e=new xR("/_/jserror",void 0,!0);zR(e,function(f,g,k,l){a===d?_.hy(a+f,null,g,k,l):c?(l=new window.XDomainRequest,l.open(g,a+f),l.send(k)):b&&_.hy(a+f,null,g,k,l)});jR(new pR(e))},BR=!1;
(window.___jsl=window.___jsl||{}).hefn=function(a,b){BR||(AR(),BR=!0);var c=_.O("debug/reportExceptionRate");("number"===typeof c?c:0)>=Math.random()&&(b?lR(b,a):lR(null,a));if(_.O("debug/rethrowException"))throw a;};

});
// Google Inc.
