google.maps.__gjsload__('overlay', function(_){var fs=function(a){this.g=a},Jka=function(){},gs=function(a){a.Do=a.Do||new Jka;return a.Do},Kka=function(a){this.ub=new _.Lh(function(){var b=a.Do;if(a.getPanes()){if(a.getProjection()){if(!b.Bn&&a.onAdd)a.onAdd();b.Bn=!0;a.draw()}}else{if(b.Bn)if(a.onRemove)a.onRemove();else a.remove();b.Bn=!1}},0)},Lka=function(a,b){function c(){return _.Mh(e.ub)}var d=gs(a),e=d.Bm;e||(e=d.Bm=new Kka(a));_.Ua(d.Ra||[],_.L.removeListener);var f=d.Fb=d.Fb||new _.Fq,g=b.__gm;f.bindTo("zoom",g);f.bindTo("offset",g); f.bindTo("center",g,"projectionCenterQ");f.bindTo("projection",b);f.bindTo("projectionTopLeft",g);f=d.hs=d.hs||new fs(f);f.bindTo("zoom",g);f.bindTo("offset",g);f.bindTo("projection",b);f.bindTo("projectionTopLeft",g);a.bindTo("projection",f,"outProjection");a.bindTo("panes",g);d.Ra=[_.L.addListener(a,"panes_changed",c),_.L.addListener(g,"zoom_changed",c),_.L.addListener(g,"offset_changed",c),_.L.addListener(b,"projection_changed",c),_.L.addListener(g,"projectioncenterq_changed",c)];c();b instanceof _.vf&&(_.O(b,"Ox"),_.Qk("Ox","-p",a))},Pka=function(a){if(a){var b=a.getMap();if(Mka(a)!==b&&b&&b instanceof _.vf){var c=b.__gm;c.overlayLayer?a.__gmop=new Nka(b,a,c.overlayLayer):c.i.then(function(d){d=d.Wc;var e=new hs(b,d);d.Ob(e);c.overlayLayer=e;Oka(a);Pka(a)})}}},Oka=function(a){if(a){var b=a.__gmop;b&&(a.__gmop=null,_.Rk("Ox","-p",b.g),b.g.unbindAll(),b.g.set("panes",null),b.g.set("projection",null),b.j.Bg(b),b.i&&(b.i=!1,b.g.onRemove?b.g.onRemove():b.g.remove()))}},Mka=function(a){return(a= a.__gmop)?a.map:null},Nka=function(a,b,c){this.map=a;this.g=b;this.j=c;this.i=!1;_.O(this.map,"Ox");_.Qk("Ox","-p",this.g);c.Mf(this)},Qka=function(a,b){a.g.get("projection")!=b&&(a.g.bindTo("panes",a.map.__gm),a.g.set("projection",b))},hs=function(a,b){this.o=a;this.j=b;this.g=null;this.i=[]};_.D(fs,_.M); fs.prototype.changed=function(a){"outProjection"!=a&&(a=!!(this.get("offset")&&this.get("projectionTopLeft")&&this.get("projection")&&_.ze(this.get("zoom"))),a==!this.get("outProjection")&&this.set("outProjection",a?this.g:null))};var is={};_.D(Kka,_.M);is.Mf=function(a){if(a){var b=a.getMap();(gs(a).Nr||null)!==b&&(b&&Lka(a,b),gs(a).Nr=b)}};is.Bg=function(a){var b=gs(a),c=b.Fb;c&&c.unbindAll();(c=b.hs)&&c.unbindAll();a.unbindAll();a.set("panes",null);a.set("projection",null);b.Ra&&_.Ua(b.Ra,_.L.removeListener);b.Ra=null;b.Bm&&(b.Bm.ub.Ce(),b.Bm=null);_.Rk("Ox","-p",a);delete gs(a).Nr};var js={};Nka.prototype.draw=function(){this.i||(this.i=!0,this.g.onAdd&&this.g.onAdd());this.g.draw&&this.g.draw()};hs.prototype.dispose=function(){};hs.prototype.Cd=function(a,b,c,d,e,f,g,h){var k=this.g=this.g||new _.Em(this.o,this.j,function(){});k.Cd(a,b,c,d,e,f,g,h);a=_.A(this.i);for(b=a.next();!b.done;b=a.next())b=b.value,Qka(b,k),b.draw()};hs.prototype.Mf=function(a){this.i.push(a);this.g&&Qka(a,this.g);this.j.refresh()};hs.prototype.Bg=function(a){_.$a(this.i,a)};js.Mf=Pka;js.Bg=Oka;_.gf("overlay",{$p:function(a){if(a){(0,is.Bg)(a);(0,js.Bg)(a);var b=a.getMap();b&&(b instanceof _.vf?(0,js.Mf)(a):(0,is.Mf)(a))}},preventMapHitsFrom:function(a){_.jn(a,{onClick:function(b){return _.Om(b.event)},Yd:function(b){return _.Lm(b)},ci:function(b){return _.Mm(b)},Pe:function(b){return _.Mm(b)},oe:function(b){return _.Nm(b)}}).Ui(!0)},preventMapHitsAndGesturesFrom:function(a){a.addEventListener("click",_.lf);a.addEventListener("contextmenu",_.lf);a.addEventListener("dblclick",_.lf);a.addEventListener("mousedown", _.lf);a.addEventListener("mousemove",_.lf);a.addEventListener("MSPointerDown",_.lf);a.addEventListener("pointerdown",_.lf);a.addEventListener("touchstart",_.lf);a.addEventListener("wheel",_.lf)}});});