google.maps.__gjsload__('overlay', function(_){var ju=_.oa("b"),ku=_.l(),lu=function(){var a=this.mg;if(this.getPanes()){if(this.getProjection()){if(!a.b&&this.onAdd)this.onAdd();a.b=!0;this.draw()}}else{if(a.b)if(this.onRemove)this.onRemove();else this.remove();a.b=!1}},mu=function(a){a.mg=a.mg||new ku;return a.mg},nu=function(a){_.of.call(this);this.qa=(0,_.u)(lu,a)},qu=function(a){if(a){var b=a.getMap(),c=a.__gmop;if(c){if(c.map==b)return;a.__gmop=null;c.vg()}if(b&&b instanceof _.Ad){var d=b.__gm;d.overlayLayer?a.__gmop=new ou(b,a,d.overlayLayer): d.b.then(function(c){c=c.ya;var e=new pu(b,c);c.sb(e);d.overlayLayer=e;qu(a)})}}},ou=function(a,b,c){this.map=a;this.pa=b;this.Qm=c;this.Vf=!1;_.em(this.map,"Ox");_.gm("Ox","-p",this.pa,!!this.map.ja);c.f.push(this);c.b&&ru(this,c.b);c.j.Fc()},ru=function(a,b){a.pa.get("projection")!=b&&(a.pa.bindTo("panes",a.map.__gm),a.pa.set("projection",b))},su=function(a,b){this.F=a;this.j=b;this.f=new _.Zb(0,0);this.l=new _.Zb(0,0);this.b=_.cc(0,0,0)},tu=function(a){var b=a.j.fd();return a.j.Cb({clientX:b.left, clientY:b.top})},uu=function(a,b,c){if(!c||!b)return null;b=_.El(b,a.F.getProjection());b=_.pi(a.j.f,b,a.l);a=_.xj(_.qi(a.b,_.hi(b,c)));return new _.H(a.X,a.$)},vu=function(a,b,c,d){return c&&a.b?_.Fl(_.gi(c,_.dc(a.b,{X:b.x,$:b.y})),a.F.getProjection(),d):null},pu=function(a,b){this.F=a;this.j=b;this.b=null;this.f=[]};_.z(ju,_.N); ju.prototype.changed=function(a){"outProjection"!=a&&(a=!!(this.get("offset")&&this.get("projectionTopLeft")&&this.get("projection")&&_.F(this.get("zoom"))),a==!this.get("outProjection")&&this.set("outProjection",a?this.b:null))};_.z(nu,_.of);ou.prototype.draw=function(){this.Vf||(this.Vf=!0,this.pa.onAdd&&this.pa.onAdd());this.pa.draw&&this.pa.draw()};ou.prototype.vg=function(){_.hm("Ox","-p",this.pa);this.pa.unbindAll();this.pa.set("panes",null);this.pa.set("projection",null);_.Va(this.Qm.f,this);this.pa.onRemove?this.pa.onRemove():this.pa.remove();this.Vf=!1};_.m=su.prototype;_.m.fromLatLngToContainerPixel=function(a){var b=tu(this);return uu(this,a,b)};_.m.fromLatLngToDivPixel=function(a){return uu(this,a,this.f)}; _.m.fromDivPixelToLatLng=function(a,b){return vu(this,a,this.f,b)};_.m.fromContainerPixelToLatLng=function(a){var b=tu(this);return vu(this,a,b)};_.m.getWorldWidth=function(){return this.b?_.qi(this.b,new _.Zb(256,256)).X:256*Math.pow(2,this.F.getZoom()||0)};pu.prototype.oa=_.l();pu.prototype.Ub=function(a,b,c,d){a=this.b=this.b||new su(this.F,this.j);a.b=c;a.f=b;a.l=d;b=_.Aa(this.f);for(c=b.next();!c.done;c=b.next())c=c.value,ru(c,a),c.draw()};_.Qd("overlay",{xk:function(a){if(a){var b=a.getMap();if(b&&b instanceof _.Ad||a.__gmop)qu(a);else{b=a.getMap();var c=mu(a),d=c.km;c.km=b;d&&(c=mu(a),(d=c.ea)&&d.unbindAll(),(d=c.ri)&&d.unbindAll(),a.unbindAll(),a.set("panes",null),a.set("projection",null),_.A(c.P,_.M.removeListener),c.P=null,c.ac&&(c.ac.qa(),c.ac=null),_.hm("Ox","-p",a));if(b){c=mu(a);d=c.ac;d||(d=c.ac=new nu(a));_.A(c.P||[],_.M.removeListener);var e=c.ea=c.ea||new _.ik,f=b.__gm;e.bindTo("zoom",f);e.bindTo("offset",f);e.bindTo("center", f,"projectionCenterQ");e.bindTo("projection",b);e.bindTo("projectionTopLeft",f);e=c.ri=c.ri||new ju(e);e.bindTo("zoom",f);e.bindTo("offset",f);e.bindTo("projection",b);e.bindTo("projectionTopLeft",f);a.bindTo("projection",e,"outProjection");a.bindTo("panes",f);e=(0,_.u)(d.U,d);c.P=[_.M.addListener(a,"panes_changed",e),_.M.addListener(f,"zoom_changed",e),_.M.addListener(f,"offset_changed",e),_.M.addListener(b,"projection_changed",e),_.M.addListener(f,"projectioncenterq_changed",e),_.M.forward(b,"forceredraw", d)];d.U();b instanceof _.Ad&&(_.em(b,"Ox"),_.gm("Ox","-p",a,!!b.ja))}}}},Ym:function(a){_.Wm(a,{mb:function(a){return _.om(a.event)},Ka:function(a){return _.lm(a)},jc:function(a){return _.mm(a)},Va:function(a){return _.mm(a)},La:function(a){return _.nm(a)}}).Kc(!0)},Xm:function(a){a.addEventListener("click",_.wc);a.addEventListener("contextmenu",_.wc);a.addEventListener("dblclick",_.wc);a.addEventListener("mousedown",_.wc);a.addEventListener("mousemove",_.wc);a.addEventListener("MSPointerDown",_.wc); a.addEventListener("pointerdown",_.wc);a.addEventListener("touchstart",_.wc);a.addEventListener("wheel",_.wc)}});});