/* JS */ gapi.loaded_1(function(_){var window=this; _.mf=function(a){if("function"==typeof a.qc)return a.qc();if(_.ka(a))return a.split("");if(_.Uc(a)){for(var b=[],c=a.length,d=0;d2*this.D&&tf(this),!0):!1}; var tf=function(a){if(a.D!=a.A.length){for(var b=0,c=0;b=d.A.length)throw _.qf;var e=d.A[b++];return a?e:d.B[e]};return e};_.vf=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)}; var xf,yf;_.sf.prototype.ph=_.M(7,function(a){for(var b=0;bc)return!1;!("undefined"!=typeof _.zf&&b instanceof _.zf)&&5=e&&(e+=32);65<=f&&90>=f&&(f+=32);if(e!=f)return!1}return!0};Dk=null; _.Ek=function(a){if(null===Dk){var b=_.E("client/headers/response");b||(b=_.E("googleapis/headers/response"));Dk=_.Bk(b)}if(null!=Dk){if(Dk.hasOwnProperty(a))return!0;for(var c in Dk)if(Dk.hasOwnProperty(c)&&_.Ck(c,a))return!0}return!1}; _.Fk=function(a){a=String(a||"").split("\x00").join("");for(var b=[],c=!0,d=0,e=a.length;d=g&&d+1=l&&(f+=k,g=65536+(g-55296<<10)+(l-56320),++d)}if(!(0<=g&&1114109>=g)||55296<=g&&57343>=g||64976<=g&&65007>=g||65534==(g&65534))g=65533,f=String.fromCharCode(g);k=!(32<=g&&126>=g)||" "==f||c&&":"==f||"\\"==f;!c||"/"!=f&&"?"!=f||(c=!1);"%"==f&&(d+2>=e?k=!0:(l=16*(0,window.parseInt)(a.charAt(d+ 1),16)+(0,window.parseInt)(a.charAt(d+2),16),0<=l&&255>=l?(g=l,f=0==g?"":"%"+(256+l).toString(16).toUpperCase().substr(1),d+=2):k=!0));k&&(f=(0,window.encodeURIComponent)(f),1>=f.length&&(0<=g&&127>=g?f="%"+(256+g).toString(16).toUpperCase().substr(1):(g=65533,f=(0,window.encodeURIComponent)(String.fromCharCode(g)))));b.push(f)}a=b.join("");a=a.split("#")[0];a=a.split("?");b=a[0].split("/");c=[];d=0;for(e=b.length;de)b[d++]=String.fromCharCode(e);else if(191e){var f=a[c++];b[d++]=String.fromCharCode((e&31)<<6|f&63)}else{var f=a[c++],g=a[c++];b[d++]=String.fromCharCode((e&15)<<12|(f&63)<<6|g&63)}}return b.join("")};_.pv=null;qv=null;rv=null;sv=null;_.tv=_.Nd||_.Od||_.Ld||"function"==typeof _.r.atob; _.vv=function(a,b){var c;if(_.tv&&!b)c=_.r.atob(a);else if(c=_.uv(a,b),8192>=c.length)c=String.fromCharCode.apply(null,c);else{for(var d="",e=0;e>4);64!=k&&(d.push(g<<4&240|k>>2),64!=l&&d.push(k<<6&192|l))}return d}; _.wv=function(){if(!_.pv){_.pv={};qv={};rv={};sv={};for(var a=0;65>a;a++)_.pv[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),qv[_.pv[a]]=a,rv[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a),sv[rv[a]]=a,62<=a&&(qv["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a)]=a,sv["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a)]=a)}}; _.xv=function(a){this.A=a};_.xv.prototype.toString=function(){return this.A};_.yv=function(){_.pe.call(this);this.F=1;this.C=[];this.D=0;this.A=[];this.B={}};_.u(_.yv,_.pe);_.h=_.yv.prototype;_.h.subscribe=_.q(34);_.h.sf=function(a){if(0!=this.D)return this.C.push(a),!1;var b=this.A[a];if(b){var c=this.B[b];c&&_.oe(c,a);delete this.A[a];delete this.A[a+1];delete this.A[a+2]}return!!b}; _.h.Yl=function(a,b){var c=this.B[a];if(c){this.D++;for(var d=Array(arguments.length-1),e=1,f=arguments.length;ea.od)a=e,b=d}});return{LD:a,mh:b}}; mw=function(a){a=a.split(":");return{xu:a[0].split("=")[1],nK:iw(a[1]),PU:iw(a[2]),hU:iw(a[3])}};nw=function(a){a=_.Rj(a);if(!a||a.ub&&!_.Dj)return null;var b=["G_AUTHUSER_",_.Dj&&a.ub?"S":"H",a.od].join(""),c=_.Lj[b];c||(c=new _.Ej(b,_.Tj(a)),_.Lj[b]=c);return c};ow=function(a){var b=jw(a);b?(a=hw(a.cookie_policy),b="0"==a[b]||"X"==a[b]):b=!1;return b}; pw=function(a){var b=_.E("oauth-flow/toast/position");"top"!==b&&(b="bottom");var c=window.document.createElement("div");$v=c;c.style.cssText="position:fixed;left:0px;z-index:1000;width:100%;";var d;_.Q(c,"visibility","hidden");_.Q(c,b,"-40px");_.Q(c,"height","128px");d=c;if("desktop"==_.E("deviceType")){d=window.document.createElement("div");d.style.cssText="float:left;position:relative;left:50%;";c.appendChild(d);var e=window.document.createElement("div");e.style.cssText="float:left;position:relative;left:-50%"; d.appendChild(e);d=e}e="top"==b?"-":"";bw=(0,window.parseInt)(e+88,10);$v.style.webkitTransform="translate3d(0px,"+e+88+"px,0px)";$v.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(g){}_.Um.Ne({url:":socialhost:/:session_prefix:_/widget/oauthflow/toast",queryParams:{clientId:a.client_id,idToken:a.id_token},where:d,onRestyle:function(){"top"===b?kw(!0):kw(!1)}})};qw=!1; rw=!1;_.sw=function(a){_.Db(a)&&_.Ib(a)};uw=function(a){var b=lw(),c=b.LD,b=b.mh,d=a&&_.Hj(a);if(null!==b){var e;_.Ej.iterate(function(a,b){var f=_.Ij(a);f&&f.wc&&(d&&f.yu!=d||f.ub==c.ub&&f.od==c.od&&(e=b))});if(e){var f=mw(e);a=f&&f.nK[Number(b)];f=f&&f.xu;if(a)return{mh:b,wV:a,xu:f}}}return null};vw=function(a){a=nw(a.g_user_cookie_policy);_.hb("googleapis.config/sessionIndex",null);a.clear()};ww=function(a){return"true"===String(a.immediate)}; xw=function(a,b){var c=null;if(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;var d=_.E("iframes/signin/iframeType");!qw&&b.error&&ww(a)&&(_.sw("gapi.signin.impression."+d+"."+c),qw=!0)}b&&(b.issued_at||(b.issued_at=String(_.tj())),d=(0,window.parseInt)(b.expires_in,10)||86400,b.error&&(d=_.E("oauth-flow/errorMaxAge")||86400),b.expires_in= String(d),b.expires_at||(b.expires_at=String(_.tj()+d)),a&&ww(a)||(b["g-oauth-window"]=(tw||{}).popup),b._aa||b.error||null!=uw(c)||!ww(a)||(b._aa="1"),c=b.status={},c.google_logged_in=!!b.session_state,d=c.signed_in=!!b.access_token,c.method=d?b["g-oauth-window"]?"PROMPT":"AUTO":null);return b};yw={}; _.zw=function(a,b){var c,d;"string"==typeof a?(c=b,d=a):(c=a,d="token");if(c){var e=_.Vj(c,!0);if(e){var f;if((f=c)&&f.session_state){var g=[],k=[],l=[],m=(0,window.parseInt)(f.authuser,10)||0;g[m]=f.session_state;k[m]=f.issued_at;l[m]=f.expires_at;f=["C="+f.client_id,"S="+g.join("|"),"I="+k.join("|"),"X="+l.join("|")].join(":")}else f=null;f&&e.Rd.write(f);"token"==d&&(e=nw(c.g_user_cookie_policy))&&(c.error?vw(c):c.session_state&&e.write(c.authuser||"0"))}}if(d="token"!==d?_.Uj(d):_.Vj(c))if(c){if(d.Rd.write(c), !_.Nj||d.fF&&"token"!==_.Nj)_.Nj=d.key}else d.Rd.clear(),_.Nj=null;_.Wj(void 0,void 0)};Aw=function(a,b){var c=b&&b.key||"token",d=a=xw(b&&b.params,a);!ow(d)&&0<=(" "+(d.scope||"")+" ").indexOf(" https://www.googleapis.com/auth/plus.login ")&&_.E("isLoggedIn")&&"1"===d._aa&&(d._aa="0",rw||(rw=!0,pw(d)));_.zw(c,a);a=_.Wj(c,void 0);if(b){c=b.popup;d=b.after_redirect;if(c&&"keep_open"!=d)try{c.close()}catch(e){}b.callback&&(b.callback(a),b.callback=null)}};Bw={};Cw=function(){return!!_.E("oauth-flow/usegapi")}; Dw=function(a){var b=_.Qv;return function(c){if(this.f==b&&this.t==_.K.qg(this.f)&&this.origin==_.K.Ef(this.f))return a.apply(this,arguments)}};Ew=null;Fw=[];Gw=function(a,b,c){Cw()?Ew.register(a,c,_.en):_.K.register(a+":"+b,Dw(c))};Hw={};Iw=0; Jw=function(a){a&&Fw.push(a);a=_.Qv;var b=window.document.getElementById(a),c=(new Date).getTime();if(b){if(Iw&&6E4>c-Iw)return;b.parentNode.removeChild(b);if(/Firefox/.test(window.navigator.userAgent))try{window.frames[a]=void 0}catch(d){}_.Rv();a=_.Qv}Iw=c;var e=String(2147483647*(0,_.jk)()|0),b=_.E("oauth-flow/proxyUrl")||_.E("oauth-flow/relayUrl");if(Cw())Ew=_.Um.Ne({where:_.I.Il(),url:b,id:a,attributes:{style:{width:"1px",height:"1px",position:"absolute",top:"-100px"}},dontclear:!0});else{var b= [b,"?parent=",(0,window.encodeURIComponent)(_.ej.Aa(window.location.href)),"#rpctoken=",e,"&forcesecure=1"].join(""),c=_.I.Il(),f=_.I.Fo({name:a,id:a});f.src=b;f.style.width="1px";f.style.height="1px";f.style.position="absolute";f.style.top="-100px";f.tabIndex="-1";c.appendChild(f);_.K.lk(a)}Gw("oauth2relayReady",e,function(){Cw()?Ew.unregister("oauth2relayReady"):_.K.unregister("oauth2relayReady:"+e);var a=Fw;if(null!==a){Fw=null;for(var b=0,c=a.length;bb.od)&&(b=f,c=a)});return c}; Sw=function(a){if(Cw()){var b=_.Um.Ne({where:_.I.Il(),url:a.uri,attributes:{style:{width:"1px",height:"1px",position:"absolute",top:"-100px"}},dontclear:!0});window.setTimeout(function(){b.close()},3E5)}else{var c=_.I.Il(),b=_.I.Fo();b.src=a.uri;b.style.width="1px";b.style.height="1px";b.style.position="absolute";b.style.top="-100px";window.setTimeout(function(){b.parentNode&&b.parentNode.removeChild(b)},3E5);c.appendChild(b)}}; Tw=function(a,b){if(tw){var c=tw.popup,d=tw.after_redirect;if(c&&"keep_open"!=d&&!ww(a))try{c.close()}catch(e){}}c=tw={};"key"in a&&(c.key=a.key,delete a.key);a=Nw(a);c.params=Mw(a);c.callback=function(c){ww(a)||!c||c.error||Pw(jw(c),!1,c.cookie_policy);ow(c)&&ww(a)&&(c=Kw(c));(b||function(){})(xw(a,c))};c.uri=Lw(a,c);return c}; Uw=function(a,b){_.Ow(function(){Cw()?Ew.send("check_session_state",{session_state:a.session_state,client_id:a.client_id},function(a){b.call(null,a[0])},_.en):_.K.call(_.Qv,"check_session_state",Dw(function(a){b.call(null,a)}),a.session_state,a.client_id)})};Vw=function(a){a=_.I.qb("#"+_.Qj(a));if(!ww(a))return null;var b=a.key||Rw(a.client_id);return(b=_.Wj(b,!0,!0))&&b.client_id===a.client_id&&Qw(a.scope,b.scope)&&Qw(a.response_type,b.response_type)?b:null}; Ww=function(a,b){var c=_.I.qb();a.hl=c.lang||c.hl||_.E("lang");var d=Tw(a,b);a.after_redirect&&(d.after_redirect=a.after_redirect);if(null!=a.scope&&null!=a.client_id){var e=function(){_.Ow(function(){if(d.popup)d.popup.focus();else if(ww(a))Sw(d);else{var b=Math.min(_.E("oauth-flow/authWindowWidth",650),window.screen.width-20),c=Math.min(_.E("oauth-flow/authWindowHeight",600),window.screen.height-30);tw.popup=window.open(d.uri,"_blank",["toolbar=no","location="+(window.opera?"no":"yes"),"directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no", "width="+b,"height="+c,"top="+(window.screen.height-c)/2,"left="+(window.screen.width-b)/2].join())}})},f=Vw(a);!_.E("oauth-flow/disableOpt")&&f?Uw(f,function(a){a?Aw(f,tw):e()}):e()}else Aw(null,tw),_.Sb("Unable to perform authorization: scope and/or client_idparameters missing.")}; Xw=function(a){a||(a=_.Wj(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||(_.$a.drw=null);_.zw(a);if(b=a.authuser)_.E("googleapis.config/sessionIndex"),_.hb("googleapis.config/sessionIndex",b);_.Sv.A.Yl(_.Tv.toString(),a);return a}; Yw=function(a,b){var c=a||{},d=b||function(){};if(_.E("oauth-flow/disableOpt")||_.E("isLoggedIn")||!ww(c))Ww(c,d);else{var e=_.Ka();e.client_id=c.client_id;e.session_state=null;Uw(e,function(a){a?(a=_.Ka(),a.error="immediate_failed_user_logged_out",d(xw(c,a))):(_.hb("isLoggedIn",!0),Ww(c,d))})}};Zw=function(a,b){var c=jw(a);c&&(vw(a),Pw(c,!0,b,function(){Xw&&Xw(Kw(a))}))}; _.$w=function(a,b){var c=new _.$f(function(b,c){var f=function(a){null==a||a.error?c(a):b(a)};try{Yw(a,f)}catch(g){c(g)}});b&&c.then(b,function(a){b(Xw(a))});return c};_.ax=function(a){_.Rb&&(_.Rb.error?_.Rb.error(a):_.Rb.log&&_.Rb.log(a))};bx=_.hk.Hl;cx=null; _.fx=function(a,b){if("force"!==a.approvalprompt){var c=_.dx(a);c.immediate=!0;delete c.redirect_uri;delete c.approval_prompt;var d;if(d=!b)cx?(c.client_id!==cx.client_id&&window.console&&window.console.log&&window.console.log("Ignoring mismatched page-level auth param client_id="+c.client_id),d=!0):(cx=c,d=!1);d||ex(c)}}; _.dx=function(a){var b=a.redirecturi||"postmessage",c=(0,_.ad)((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,_.ad)(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);"none"===a.cookiepolicy&&_.sw("gapi.signin.cpnone");"undefined"!=typeof a.includegrantedscopes&&(b.include_granted_scopes=a.includegrantedscopes);a.e&&(b.e=a.e);(a=a.authuser||_.E("googleapis.config/sessionIndex"))&&(b.authuser=a);(a=_.E("useoriginassocialhost"))&&(b.use_origin_as_socialhost=a);return b}; ex=function(a){_.fp("waaf0","signin","0");_.$w(a,function(a){_.fp("waaf1","signin","0");Xw(a)})};_.gx=function(a){a=_.dx(a);_.hb("oauth-flow/authWindowWidth",445);_.hb("oauth-flow/authWindowHeight",615);ex(a)};_.hx=function(a){_.Zv(_.Sv.A,_.Tv.toString(),a,void 0);_.Sv.subscribe(_.Tv,a)}; var ox,rx;_.jx=function(a){return a.cookiepolicy?!0:(_.ix("cookiepolicy is a required field. See https://developers.google.com/+/web/signin/#button_attr_cookiepolicy for more information."),!1)};_.ix=function(a){window.console&&(window.console.error?window.console.error(a):window.console.log&&window.console.log(a))};_.nx=function(a,b){var c=_.lo();_.Oa(a,c);c=Mw(c);if(_.jx(c)){var d=_.kx(c);_.lx(c);b?_.Ya(b,"click",function(){_.mx(c,d)}):_.mx(c,d)}}; _.kx=function(a){var b=new ox;_.hx(function(c){if(b.A&&c&&(c.access_token&&_.hb("isPlusUser",!0),c["g-oauth-window"]))if(b.A=!1,c.access_token&&"consent"==c.prompt){var d=c["g-oauth-window"];c=c.id_token;var e=a.apppackagename;if(e&&d){var f=!0;try{f=d.closed}catch(g){}f||(c=_.E("iframes/:socialhost:")+"/_/history/otaappinstall?clientId="+(0,window.encodeURIComponent)(a.clientid)+"&appId="+(0,window.encodeURIComponent)(e)+"&idToken="+(0,window.encodeURIComponent)(c),c=_.oj(c),d.location.href=c)}}else if(d= c["g-oauth-window"],a.apppackagename&&d)try{d.close()}catch(k){}});return b};ox=function(){this.A=!1};_.lx=function(a){a=_.px(a);_.qx(a.callback);_.Ow(function(){_.fx(a)})};_.px=function(a){rx(a);a.apppackagename&&(a.after_redirect="keep_open");a.redirecturi&&delete a.redirecturi;_.nj(function(b){return a[b]})||(a.authuser=0);a.apppackagename&&(a.apppackagename=a.apppackagename.replace(/^[\s\xa0]+|[\s\xa0]+$/g,""));return a};rx=function(a){/^\s*$/.test(a.scope||"")&&(a.scope="https://www.googleapis.com/auth/plus.login")}; _.qx=function(a){if("string"===typeof a)if(window[a])a=window[a];else{_.ix('Callback function named "'+a+'" not found');return}a&&_.hx(a)};_.mx=function(a,b){b.A=!0;var c;c=_.px(a);_.gx(c)}; _.D("gapi.auth.authorize",_.$w);_.D("gapi.auth.checkSessionState",Uw);_.D("gapi.auth.getAuthHeaderValueForFirstParty",bx);_.D("gapi.auth.getToken",function(a,b){return _.Wj(a,b)});_.D("gapi.auth.getVersionInfo",function(a,b){_.Ow(function(){var c=_.hk.Hl()||"",d=null,e=null;c&&(e=c.split(" "),2==e.length&&(d=e[1]));d?Cw()?Ew.send("get_versioninfo",{xapisidHash:d,sessionIndex:b},function(b){a(b[0])},_.en):_.K.call(_.Qv,"get_versioninfo",Dw(function(b){a(b)}),d,b):a()})});_.D("gapi.auth.init",_.Ow); _.D("gapi.auth.setToken",_.zw);_.D("gapi.auth.signIn",function(a){_.nx(a)});_.D("gapi.auth.signOut",function(){var a=_.Wj(void 0,void 0);a&&Zw(a,a.cookie_policy)});_.D("gapi.auth.unsafeUnpackIdToken",dw);_.D("gapi.auth._pimf",_.fx);_.D("gapi.auth._oart",pw);_.D("gapi.auth._guss",function(a){return cw(a).read()}); var sx=_.lo();sx.clientid&&sx.scope&&sx.cookiepolicy&&_.sw("gapi.auth.pageLevelConfig("+_.qb(sx).sort().join("-")+")");sx.clientid&&sx.scope&&sx.callback&&!_.E("disableRealtimeCallback")?_.lx(sx):_.Ow(); /* 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. */ _.pg=function(a,b){this.I=[];this.R=a;this.ca=b||null;this.D=this.B=!1;this.C=void 0;this.M=this.W=this.O=!1;this.G=0;this.A=null;this.F=0};_.pg.prototype.cancel=function(a){if(this.B)this.C instanceof _.pg&&this.C.cancel();else{if(this.A){var b=this.A;delete this.A;a?b.cancel(a):(b.F--,0>=b.F&&b.cancel())}this.R?this.R.call(this.ca,this):this.M=!0;this.B||this.zl(new _.qg)}};_.pg.prototype.N=function(a,b){this.O=!1;rg(this,a,b)}; var rg=function(a,b,c){a.B=!0;a.C=c;a.D=!b;sg(a)},ug=function(a){if(a.B){if(!a.M)throw new tg;a.M=!1}};_.h=_.pg.prototype;_.h.Mb=function(a){ug(this);rg(this,!0,a)};_.h.zl=function(a){ug(this);rg(this,!1,a)};_.h.Lb=function(a,b){return this.uf(a,null,b)};_.h.uf=function(a,b,c){this.I.push([a,b,c]);this.B&&sg(this);return this};_.h.then=function(a,b,c){var d,e,f=new _.$f(function(a,b){d=a;e=b});this.uf(d,function(a){a instanceof _.qg?f.cancel():e(a)});return f.then(a,b,c)};_.Xf(_.pg); _.pg.prototype.T=_.q(8); var vg=function(a){return(0,_.ld)(a.I,function(a){return _.Yc(a[1])})},sg=function(a){if(a.G&&a.B&&vg(a)){var b=a.G,c=wg[b];c&&(_.r.clearTimeout(c.ma),delete wg[b]);a.G=0}a.A&&(a.A.F--,delete a.A);for(var b=a.C,d=c=!1;a.I.length&&!a.O;){var e=a.I.shift(),f=e[0],g=e[1],e=e[2];if(f=a.D?g:f)try{var k=f.call(e||a.ca,b);_.ea(k)&&(a.D=a.D&&(k==b||k instanceof Error),a.C=b=k);if(_.Yf(b)||"function"===typeof _.r.Promise&&b instanceof _.r.Promise)d=!0,a.O=!0}catch(l){b=l,a.D=!0,vg(a)||(c=!0)}}a.C=b;d&&(k= (0,_.t)(a.N,a,!0),d=(0,_.t)(a.N,a,!1),b instanceof _.pg?(b.uf(k,d),b.W=!0):b.then(k,d));c&&(b=new xg(b),wg[b.ma]=b,a.G=b.ma)},tg=function(){_.Df.call(this)};_.u(tg,_.Df);tg.prototype.message="Deferred has already fired";tg.prototype.name="AlreadyCalledError";_.qg=function(){_.Df.call(this)};_.u(_.qg,_.Df);_.qg.prototype.message="Deferred was canceled";_.qg.prototype.name="CanceledError";var xg=function(a){this.ma=_.r.setTimeout((0,_.t)(this.B,this),0);this.A=a}; xg.prototype.B=function(){delete wg[this.ma];throw this.A;};var wg={}; var ru,tu,uu,Hu,Cu,Nu,Du,Fu,Eu,Ku,Gu,Ou;ru=/#|$/;_.su=function(a,b){var c=a.search(ru),d;a:{d=0;for(var e=b.length;0<=(d=a.indexOf(b,d))&&dd)return null;e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return(0,window.decodeURIComponent)(a.substr(d,e-d).replace(/\+/g," "))}; tu=function(a,b){if(a)for(var c=a.split("&"),d=0;db)throw Error("N`"+b);a.D=b}else a.D=null;return a};_.vu.prototype.getPath=function(){return this.O};_.vu.prototype.setPath=function(a,b){_.Iu(this);this.O=b?Hu(a,!0):a;return this};_.Au=function(a,b,c){_.Iu(a);b instanceof _.Bu?(a.A=b,Ju(a.A,a.F)):(c||(b=Cu(b,Ku)),a.A=new _.Bu(b,0,a.F));return a};_.vu.prototype.Ka=function(a,b){return _.Au(this,a,b)};_.vu.prototype.De=function(){return this.A.toString()}; _.Lu=function(a,b,c){_.Iu(a);a.A.set(b,c);return a};_.vu.prototype.td=function(a){return this.A.get(a)};_.vu.prototype.M=function(){return this.T};_.vu.prototype.G=function(a,b){_.Iu(this);this.T=b?Hu(a):a;return this};_.Iu=function(a){if(a.N)throw Error("O");};_.Mu=function(a){return a instanceof _.vu?a.clone():new _.vu(a,void 0)};Hu=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""}; Cu=function(a,b,c){return _.ka(a)?(a=(0,window.encodeURI)(a).replace(b,Nu),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};Nu=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};Du=/[#\/\?@]/g;Fu=/[\#\?:]/g;Eu=/[\#\?]/g;Ku=/[\#\?@]/g;Gu=/#/g;_.Bu=function(a,b,c){this.B=this.A=null;this.C=a||null;this.D=!!c};Ou=function(a){a.A||(a.A=new _.sf,a.B=0,a.C&&tu(a.C,function(b,c){a.add((0,window.decodeURIComponent)(b.replace(/\+/g," ")),c)}))};_.h=_.Bu.prototype; _.h.$a=function(){Ou(this);return this.B};_.h.add=function(a,b){Ou(this);this.C=null;a=Pu(this,a);var c=this.A.get(a);c||this.A.set(a,c=[]);c.push(b);this.B++;return this};_.h.remove=function(a){Ou(this);a=Pu(this,a);return _.vf(this.A.B,a)?(this.C=null,this.B-=this.A.get(a).length,this.A.remove(a)):!1};_.h.clear=function(){this.A=this.C=null;this.B=0};_.h.isEmpty=function(){Ou(this);return 0==this.B};var Qu=function(a,b){Ou(a);b=Pu(a,b);return _.vf(a.A.B,b)};_.h=_.Bu.prototype; _.h.ph=function(a){var b=this.qc();return _.nd(b,a)};_.h.Yc=function(){Ou(this);for(var a=this.A.qc(),b=this.A.Yc(),c=[],d=0;d=c?a:a=-1a?"-":0<=b.indexOf("+")?"+":0<=b.indexOf(" ")?" ":"";0<=a&&(d=f+d);if((0,window.isNaN)(c)||d.length>=c)return d;d=(0,window.isNaN)(e)?Math.abs(a).toString():Math.abs(a).toFixed(e);a=c-d.length-f.length;return d=0<=b.indexOf("-",0)?f+d+_.bd(" ",a): f+_.bd(0<=b.indexOf("0",0)?"0":" ",a)+d},d:function(a,b,c,d,e,f,g,k){return _.rM.f((0,window.parseInt)(a,10),b,c,d,0,f,g,k)}};_.rM.i=_.rM.d;_.rM.u=_.rM.d; var sM=function(a){a=_.Ff(a);_.Gd(a,function(b,c){_.Ek(c)&&(a[c]=b)});return a},tM=function(a,b){if(null==b)return b;var c=String(b);c.match(/^\/\/.*/)&&(c=("http:"==window.location.protocol?"http:":"https:")+c);c.match(/^\/([^\/].*)?$/)&&window.location.host&&String(window.location.protocol).match(/^https?:$/)&&(c=window.location.protocol+"//"+window.location.host+c);var d=c.match(/^(https?:)(\/\/)?(\/([^\/].*)?)?$/i);d&&window.location.host&&String(window.location.protocol).match(/^https?:$/)&& (c=d[1]+"//"+window.location.host+(d[3]||""));c=c.replace(/^(https?:\/\/[^\/?#@]*)\/$/i,"$1");c=c.replace(/^(http:\/\/[-_a-z0-9.]+):0*80([\/?#].*)?$/i,"$1$2");c=c.replace(/^(https:\/\/[-_a-z0-9.]+):0*443([\/?#].*)?$/i,"$1$2");c.match(/^https?:\/\/[-_a-z0-9.]*[-_a-z][-_a-z0-9.]*$/i)&&(c=c.toLowerCase());d=_.E("client/rewrite");_.Xc(d)&&Object.prototype.hasOwnProperty.call(d,c)?c=String(d[c]||c):(c=c.replace(/^(https?):\/\/www\.googleapis\.com$/,"$1://content.googleapis.com"),c=c.replace(/^(https?):\/\/www-(googleapis-[-_a-z0-9]+\.[-_a-z0-9]+\.google\.com)$/, "$1://content-$2"),c.match(/^https?:\/\/content(-[-_a-z0-9.]+)?\.googleapis\.com$/)||(c=c.replace(/^(https?):\/\/([-_a-z0-9]+(\.[-_a-z0-9]+)?\.googleapis\.com)$/,"$1://content-$2")));a&&(d=_.E("client/firstPartyRewrite"),_.Xc(d)&&Object.prototype.hasOwnProperty.call(d,c)?c=String(d[c]||c):(c=c.replace(/^(https?):\/\/content\.googleapis\.com$/,"$1://clients6.google.com"),c=c.replace(/^(https?):\/\/content-([-a-z0-9]+)\.([-a-z0-9]+)\.googleapis\.com$/,"$1://$2-googleapis.$3.google.com"),c=c.replace(/^(https?):\/\/content-([-a-z0-9]+)\.googleapis\.com$/, "$1://$2.clients6.google.com"),c=c.replace(/^(https?):\/\/([-a-z0-9]+)-www-googleapis\.([-a-z0-9]+).google.com$/,"$1://content-googleapis-$2.$3.google.com")));return c},uM={error:{code:-1,message:"A network error occurred and the request could not be completed."}},vM=function(a){return new _.$f(function(b,c){c(a)})},wM=function(a){a=_.Ff(a);_.mb(a,function(b,c){_.ja(b)&&(a[c]=b.join(", "))});return a},xM=function(a,b,c){c||((c=_.E("googleapis.config/proxy"))&&(c=String(c).replace(/\/static\/proxy\.html$/, "")||"/"),c=String(c||""));c||(c=_.E("googleapis.config/root"),b&&(c=_.E("googleapis.config/root-1p")||c),c=String(c||""));c=String(tM(b,c)||c);return a=_.Eh(c,a)},yM=function(a,b,c,d){_.Oh.call(this);this.Xa=a;this.rb=b;this.Fa=c;this.Ta=d;this.G=null};_.u(yM,_.Oh); yM.prototype.then=function(a){this.G||(this.G=(new _.$f(function(a,c){this.P("error",(0,_.t)(function(){c(zM(this))},this));this.P("success",(0,_.t)(function(){a(zM(this))},this));this.send(this.Xa,this.rb,this.Fa,this.Ta)},this)).then(function(a){a.headers=sM(a.headers);return a},function(a){return a.status?(a.headers=sM(a.headers),vM(a)):vM({result:uM,body:'{"error":{"code":-1,"message":"A network error occurred and the request could not be completed."}}',headers:null,status:null,statusText:null})})); return this.G.then.apply(this.G,arguments)}; var zM=function(a){var b,c=a.getStatus(),d=_.bi(a);204==c?b=!1:b=""==a.Kp()?(0,_.dc)(d):_.ci(a);for(var e={},f=a.getAllResponseHeaders().split("\r\n"),g=0;ge))if(d in DM)d=DM[d];else if(d in EM)d=DM[d]=EM[d];else{e=d;g=d.charCodeAt(0);if(31g)e=d;else{if(256>g){if(e="\\x",16>g||256g&&(e+="0");e+=g.toString(16).toUpperCase()}d= DM[d]=e}g=d}b[f]=g}b.push('"');return b.join("")}; var NM=function(a){this.A={};for(var b=0;b=b.length)this.I.push("|"+c);else for(var d=b.length,e=Math.ceil(d/3800),f=0,g=1;fa-qN?10:100)},pN),FN=function(){qN=(0,_.wa)();rN&&window.clearTimeout(rN);rN=window.setTimeout(EN,10)},zN=function(a,b){this.C=a;this.B=b;this.A=0};zN.prototype.send=function(a){this.A=++this.A%2;a=this.C+"#"+this.A+(0,window.encodeURIComponent)(a);try{_.Od?this.B.location.href=a:this.B.location.replace(a)}catch(b){}FN()}; var xN=function(a,b,c){this.D=a;this.B=b;this.C=c;this.A=this.B.location.href.split("#")[0]+"#INITIAL";DN.push(this);FN()};xN.prototype.Wm=function(){var a=this.B.location.href;if(a!=this.A){this.A=a;if(a=a.split("#")[1])a=a.substr(1),this.C((0,window.decodeURIComponent)(a));return!0}return!1}; var GN=function(a){this.C=a;this.D=!1;this.promise={then:(0,_.t)(function(a,c,d){this.D||(this.D=!0);this.B&&!this.A?this.C.resolve(this.B):this.A&&!this.B&&this.C.reject(this.A);return this.C.promise.then(a,c,d)},this)}};GN.prototype.resolve=function(a){this.D?this.C.resolve(a):this.B||this.A||(this.B=a)};GN.prototype.reject=function(a){this.D?this.C.reject(a):this.B||this.A||(this.A=a)}; var HN=function(a){KM.call(this,HN.prototype.F);if(!a||"object"!=typeof a&&"string"!=typeof a)throw new IM("Invalid request parameters");var b;_.ka(a)?b={path:a}:b=a;if(!b.path)throw new IM('Missing required parameter: "path"');this.A={path:b.path,method:b.method||"GET",params:b.params||{},headers:b.headers||{},body:b.body,root:b.root,responseType:b.responseType};this.B=b.authType||"auto"};_.u(HN,KM);HN.prototype.Jh=function(){return this.A}; HN.prototype.ek=function(){var a=this.A,b=a.headers||{},c=b,d=a.applicationName||null,e=a.clientName||null,f=a.clientVersion||null,f=f||"0.1",e=e||"google-api-javascript-client",g=[];d&&(g.push(d),g.push(" "));g.push(e);f&&(g.push("/"),g.push(f));c["X-JavaScript-User-Agent"]=g.join("");c=b["Content-Type"];a.body&&!c&&(c="application/json",b["Content-Type"]=c);"application/json"!=c||a.params.alt||(a.params.alt="json");(c=a.body||null)&&_.Xc(c)&&(a.body=(0,_.ac)(c));a.key=a.id;b=_.mk.Ok(b,void 0,this.B); c=_.dk(b);IN(b);(b=_.pk.key)&&!_.ea(a.params.key)&&(a.params.key=b);(b=String(a.path||"").match(/^(https?:\/\/[^\/?#]+)([\/?#].*)?$/i))&&!a.root&&(a.root=String(b[1]),a.path=String(b[2]||"/"),a.path.match(/^\/_ah\/api(\/.*)?$/)&&(a.root+="/_ah/api",a.path=a.path.substr(8)));b=a.params;d=_.Fk(a.path);e=String(_.E("googleapis.config/xd3")||"");18<=e.length&&"/static/proxy.html"==e.substring(e.length-18)&&(e=e.substring(0,e.length-18));e||(e="/");f=_.Fk(e);if(e!=f)throw Error("G");"/"!=e.charAt(e.length- 1)&&(e+="/");d=_.Eh(e,d);_.Id(d,"/")&&(d=d.substring(0,d.length-1));d=_.Bh(_.Dh([d],b));a.path=d;a.root=tM(c,a.root);a.url=xM(a.path,c,a.root)};var LN=function(a){a.ek();a=a.A;return{key:"gapiRequest",params:{id:a.id,key:a.key,url:a.url,path:a.path,httpMethod:a.method,body:a.body||"",headers:a.headers||{},urlParams:{},root:a.root,clientName:JN(),clientVersion:KN()}}}; HN.prototype.execute=function(a){this.A.headers.Authorization||_.Wj(void 0,void 0);var b=LN(this);JM(b,function(b,d){var e=b;b.gapiRequest&&(e=b.gapiRequest);e&&e.data&&(e=e.data);var e=e instanceof Array?e[0]:e,f;if(204!=e.status&&e.body)try{f=(0,_.dc)(e.body)}catch(g){}_.E("client/jsonpOverride")&&(f=e);a&&a(f,d)})};HN.prototype.F=function(){var a=LN(this);return _.E("client/cors")&&HM(a)?BM(a):GM(a)}; var MN=//,NN=/^application\/http(;.+$|$)/,ON=function(a,b){if(!a||!b||!_.La(a,b=b.toLowerCase()))throw new IM("Unable to retrieve header.");return a[b]},RN=function(a,b){for(var c="batch"+String(Math.round(2147483647*(0,_.jk)()))+String(Math.round(2147483647*(0,_.jk)())),d={path:"/batch",headers:{"Content-Type":"multipart/mixed; boundary="+c},method:"POST"},c="--"+c,e=[],f=0;f"},c);c.push("");c.push(d.method+" "+d.path);e(d.headers,c);c.push("");d.body&&c.push(d.body);return c.join("\r\n")},TN=function(a,b){var c=SN(a,b),d={};_.Gd(c,function(a,b){d[b]={result:a.result||a.body,rawResult:(0,_.ac)({id:b,result:a.result||a.body}),id:b}});return d},SN=function(a, b){a=(0,_.ad)(a);_.Id(a,"--")&&(a=a.substring(0,a.length-2));for(var c=a.split(b),d=_.Ka(),e=0;ethis.A.length||(_.lb(this.A,function(a){a.request.ek()}),a=YN(this,a),RN(this.A,this.B).execute(a))}; WN.prototype.F=function(){if(1>this.A.length)return new _.$f(function(a){a({})});_.lb(this.A,function(a){a.request.ek()});var a=RN(this.A,this.B),b=(0,_.t)(function(a){ZN(a);if(0!=ON(a.headers,"Content-Type").indexOf("multipart/mixed"))throw new IM("The response's Content-Type is not multipart/mixed.");var b=ON(a.headers,"Content-Type").split("boundary=")[1];if(!b)throw new IM("Boundary not indicated in response.");b=SN(a.body,"--"+b);a.result=b||{};for(var c=0;c=e.status){var g=ON(e.headers,"Content-Type").split("boundary=")[1];if(!g)throw new IM("Boundary not indicated in response.");g=TN(e.body,"--"+g);for(e=0;e