google.maps.__gjsload__('overlay', function(_){var As=function(a){this.g=a},Oka=function(){},Bs=function(a){a.In=a.In||new Oka;return a.In},Pka=function(a){this.Fa=new _.bi(function(){var b=a.In;if(a.getPanes()){if(a.getProjection()){if(!b.Mm&&a.onAdd)a.onAdd();b.Mm=!0;a.draw()}}else{if(b.Mm)if(a.onRemove)a.onRemove();else a.remove();b.Mm=!1}},0)},Qka=function(a,b){function c(){return _.ci(e.Fa)}var d=Bs(a),e=d.Tl;e||(e=d.Tl=new Pka(a));_.eb(d.Qa||[],_.L.removeListener);var f=d.Pa=d.Pa||new _.$q,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.er=d.er||new As(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.Qa=[_.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 _.Kf&&_.yg(b,"Ox")},Uka=function(a){if(a){var b=a.getMap();if(Rka(a)!==b&&b&&b instanceof _.Kf){var c=b.__gm;c.overlayLayer?a.__gmop=new Ska(b,a,c.overlayLayer):c.h.then(function(d){d=d.cc;var e=new Cs(b,d);d.Ya(e);c.overlayLayer=e;Tka(a);Uka(a)})}}},Tka=function(a){if(a){var b=a.__gmop;b&&(a.__gmop=null,b.g.unbindAll(),b.g.set("panes",null),b.g.set("projection",null),b.i.Ff(b),b.h&&(b.h=!1,b.g.onRemove?b.g.onRemove():b.g.remove()))}},Rka=function(a){return(a=a.__gmop)?a.map:null},Ska=function(a, b,c){this.map=a;this.g=b;this.i=c;this.h=!1;_.yg(this.map,"Ox");c.Pe(this)},Vka=function(a,b){a.g.get("projection")!=b&&(a.g.bindTo("panes",a.map.__gm),a.g.set("projection",b))},Cs=function(a,b){this.j=a;this.i=b;this.g=null;this.h=[]};_.D(As,_.M);As.prototype.changed=function(a){"outProjection"!=a&&(a=!!(this.get("offset")&&this.get("projectionTopLeft")&&this.get("projection")&&_.Ne(this.get("zoom"))),a==!this.get("outProjection")&&this.set("outProjection",a?this.g:null))};var Ds={};_.D(Pka,_.M);Ds.Pe=function(a){if(a){var b=a.getMap();(Bs(a).Mq||null)!==b&&(b&&Qka(a,b),Bs(a).Mq=b)}};Ds.Ff=function(a){var b=Bs(a),c=b.Pa;c&&c.unbindAll();(c=b.er)&&c.unbindAll();a.unbindAll();a.set("panes",null);a.set("projection",null);b.Qa&&_.eb(b.Qa,_.L.removeListener);b.Qa=null;b.Tl&&(b.Tl.Fa.zd(),b.Tl=null);delete Bs(a).Mq};var Es={};Ska.prototype.draw=function(){this.h||(this.h=!0,this.g.onAdd&&this.g.onAdd());this.g.draw&&this.g.draw()};Cs.prototype.dispose=function(){};Cs.prototype.vc=function(a,b,c,d,e,f,g,h){var k=this.g=this.g||new _.cn(this.j,this.i,function(){});k.vc(a,b,c,d,e,f,g,h);a=_.A(this.h);for(b=a.next();!b.done;b=a.next())b=b.value,Vka(b,k),b.draw()};Cs.prototype.Pe=function(a){this.h.push(a);this.g&&Vka(a,this.g);this.i.refresh()};Cs.prototype.Ff=function(a){_.rb(this.h,a)};Es.Pe=Uka;Es.Ff=Tka;_.wf("overlay",{Vo:function(a){if(a){(0,Ds.Ff)(a);(0,Es.Ff)(a);var b=a.getMap();b&&(b instanceof _.Kf?(0,Es.Pe)(a):(0,Ds.Pe)(a))}},preventMapHitsFrom:function(a){_.Nn(a,{onClick:function(b){return _.mn(b.event)},jd:function(b){return _.jn(b)},oh:function(b){return _.kn(b)},Ld:function(b){return _.kn(b)},rd:function(b){return _.ln(b)}}).mi(!0)},preventMapHitsAndGesturesFrom:function(a){a.addEventListener("click",_.Af);a.addEventListener("contextmenu",_.Af);a.addEventListener("dblclick",_.Af);a.addEventListener("mousedown", _.Af);a.addEventListener("mousemove",_.Af);a.addEventListener("MSPointerDown",_.Af);a.addEventListener("pointerdown",_.Af);a.addEventListener("touchstart",_.Af);a.addEventListener("wheel",_.Af)}});});