/* JS */ gapi.loaded_3(function(_){var window=this; /* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ _.My=function(a,b){Array.isArray(b)||(b=[b]);b=(0,_.sb)(b,function(c){return"string"===typeof c?c:c.Tw+" "+c.duration+"s "+c.timing+" "+c.delay+"s"});_.mr(a,"transition",b.join(","))}; _.Ny=_.Kb(function(){if(_.nc)return _.Jc("10.0");var a=_.ce("DIV"),b=_.rc?"-webkit":_.qc?"-moz":_.nc?"-ms":_.mc?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b=_.ar("div",{style:c});_.Fd(a,b);a=a.firstChild;b=a.style[_.Jd("transition")];return""!=("undefined"!==typeof b?b:a.style[_.lr(a,"transition")]||"")}); /* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var BG=function(a,b,c,d,e){this.width=a;this.height=b;this.Zm=c;this.$m=d;this.opacity=e},CG=function(a,b,c,d){return new BG(void 0==b?a.width:b,void 0==c?a.height:c,a.Zm,a.$m,void 0==d?a.opacity:d)};BG.prototype.equals=function(a){return this.width==a.width&&this.height==a.height&&this.Zm==a.Zm&&this.$m==a.$m&&this.opacity==a.opacity}; BG.prototype.interpolate=function(a,b){var c=1-b;return new BG(Math.round(this.width*c+a.width*b),Math.round(this.height*c+a.height*b),Math.round(this.Zm*c+a.Zm*b),Math.round(this.$m*c+a.$m*b),this.opacity*c+a.opacity*b)}; _.DG=function(a){_.fs.call(this,a);this.wa=new _.$r(this)};_.B(_.DG,_.hs); _.DG.prototype.create=function(){var a=Number(this.xk(200,"widgetWidth","width")),b=Number(this.xk(100,"widgetHeight","height")),c=this.xk("auto","corner"),d=this.xk({},"menuCss"),e=this.xk(!0,"hideOnClick");this.lr=!!this.xk(!0,"hideOnLeave");this.yF=!!this.xk((0,_.Ny)(),"useCss3Transition");this.YS=!!this.xk(!0,"allowOffset");var f=document.createElement("div");this.Aa=f;var g=this.Gf();g.parentNode.appendChild(f);var k=document.createElement("div");this.Ym=k;f.appendChild(k);d.position="absolute"; d.width=a+"px";d.height="0";d.border=d.border||"1px solid #aaa";d.background=d.background||"#fff";d.zIndex=_.ls(this);d.overflow="hidden";d.boxShadow=d.MozBoxShadow=d.webkitBoxShadow=d.boxShadow||"0 2px 2px rgba(0,0,0,0.3)";_.mr(f,d);_.mr(k,{left:"-1000px",top:"-1000px",position:"absolute",width:a+"px",height:b+"px"});this.L3=f.offsetWidth-a;this.N3=f.offsetHeight;d="auto"==c?["top","start"]:c.split("-");g=_.Fr(g);this.St="bottom"==d[0];this.ix="right"==d[1]||"left"!=d[1]&&g;this.kh=EG(this,a,b,"auto"== c);this.ZE=_.q.setTimeout((0,_.I)(this.z2,this),500);this.wa.U(f,"mouseover",this.jD);this.wa.Er(f,"mouseout",this.iD,!1,this);e&&_.q.setTimeout((0,_.I)(function(){this.bq||this.wa.U(document,"click",this.UZ)},this),0)}; _.DG.prototype.open=function(){this.create();this.$.Uf(this.Aa);this.$.Wc("resize",(0,_.I)(this.resize,this));this.$.ye("showMenu",(0,_.I)(this.LO,this));var a=this.$.methods;a.setHideOnLeave=(0,_.I)(this.ws,this);a.displayStateCallback&&(this.GI=a.displayStateCallback,delete a.displayStateCallback);this.$.Of(this.Ym,{height:"100%"});_.FG(this,this.kh)};_.DG.prototype.open=_.DG.prototype.open; _.DG.prototype.Sc=function(a){this.bq||(a=a||{},this.Ym.style.left="0",this.Ym.style.top="0",this.Hj&&(_.he(this.Hj),this.Hj=null),this.ZE&&(_.q.clearTimeout(this.ZE),this.ZE=null),GG(this,parseInt(a.width,10)||parseInt(this.$.width,10)||this.kh.width,parseInt(a.height,10)||parseInt(this.$.height,10)||this.kh.height))};_.DG.prototype.onready=_.DG.prototype.Sc;_.DG.prototype.resize=function(a){this.bq||GG(this,isNaN(+a.width)?this.kh.width:+a.width,isNaN(+a.height)?this.kh.height:+a.height)}; _.DG.prototype.close=function(){this.XB?HG(this):(this.qz=!0,IG(this))};_.DG.prototype.close=_.DG.prototype.close;_.DG.prototype.xk=function(a,b){for(var c,d=1,e=arguments.length;d=f.left;a.ix=a.ix?!d||g:!d&&g;g=e.offsetTop;d=g+c=f.top;a.St=a.St?!d||g:!d&&g}d=a.Tq(a.ix,e.offsetLeft,e.offsetWidth,b,f.left,f.right);a=a.Tq(a.St,e.offsetTop,e.offsetHeight,c,f.top,f.bottom);return new BG(b,c,d,a,1)}; _.DG.prototype.Tq=function(a,b,c,d,e,f){return a?(a=b+c,Math.min(f-a,Math.max(e+d-a,0))):Math.max(e-b,Math.min(f-b-d,0))};var GG=function(a,b,c){a.$.Ka().style.width=b+"px";a.$.Ka().style.height=c+"px";a.Ym.style.width=b+"px";a.Ym.style.height=c+"px";b=a.YS?EG(a,b,c,!1):CG(a.OA,b,c);a.kh=b;a.Hk||JG(a,b)};_.h=_.DG.prototype;_.h.ws=function(a){this.lr=!!a};_.h.jD=function(){!this.Hk&&this.jm&&(_.q.clearTimeout(this.jm),this.jm=null)}; _.h.iD=function(a){if(!(this.Hk||this.jm||!this.lr||a.relatedTarget&&_.le(this.Aa,a.relatedTarget))){var b=_.Vr(this.Aa);a=a.clientY>b.top&&a.clientY=c?KG(this,b):(KG(this,a.interpolate(b,1-Math.pow(1-Math.min(1-(c-d)/350,1),3))),this.rn=_.q.setTimeout((0,_.I)(this.jM,this,a,b,c),20))}}; _.Kl["slide-menu"]=function(a){var b=new _.DG(_.rV(a)),c=new _.qs(b);b.open=function(){};b.create();a.attributes={height:"100%"};a.where=b.Ym;a.onClose=function(){b.close()};a.onRestyle=function(d){if(d){var e=!1;d.hasOwnProperty("showMenu")&&(b.LO(d.showMenu),e=!0);d.hasOwnProperty("setHideOnLeave")&&(b.ws(d.setHideOnLeave),e=!0);e||b.resize(d)}};a.onCreate=function(d){d.Qc=function(){return this.hv("openerIframe")};c.$=b.$=d;d.Uf(b.Aa);d.register("_ready",(0,_.I)(b.Sc,b),_.tl);b.GI=function(e,f){!d.Pb&& d.Ko([e,f])};_.FG(b,b.kh);c.open()}}; }); // Google Inc.