google.maps.__gjsload__('overlay', function(_){'use strict';var bz=_.na("b"),cz=_.k(),dz=function(){var a=this.ag;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}},ez=function(a){a.ag=a.ag||new cz;return a.ag},fz=function(a){_.Lf.call(this);this.Z=(0,_.v)(dz,a)};_.w(bz,_.G);
bz.prototype.changed=function(a){"outProjection"!=a&&(a=!!(this.get("offset")&&this.get("projectionTopLeft")&&this.get("projection")&&_.C(this.get("zoom"))),a==!this.get("outProjection")&&this.set("outProjection",a?this.b:null))};_.w(fz,_.Lf);_.mc("overlay",{Mk:function(a){var b=a.getMap(),c=ez(a),d=c.Um;c.Um=b;d&&(c=ez(a),(d=c.da)&&d.unbindAll(),(d=c.hi)&&d.unbindAll(),a.unbindAll(),a.set("panes",null),a.set("projection",null),_.y(c.R,_.E.removeListener),c.R=null,c.Sa&&(c.Sa.Z(),c.Sa=null),_.dn("Ox","-p",a));if(b){c=ez(a);d=c.Sa;d||(d=c.Sa=new fz(a));_.y(c.R||[],_.E.removeListener);var e=c.da=c.da||new _.um,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.hi=c.hi||new bz(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,_.v)(d.M,d);c.R=[_.E.addListener(a,"panes_changed",e),_.E.addListener(f,"zoom_changed",e),_.E.addListener(f,"offset_changed",e),_.E.addListener(b,"projection_changed",e),_.E.addListener(f,"projectioncenterq_changed",e),_.E.forward(b,"forceredraw",d)];d.M();b instanceof _.Vd&&(_.an(b,"Ox"),_.cn("Ox","-p",a,!!b.b))}}});});
