google.maps.__gjsload__('infowindow', function(_){var DP=function(a){return!!a.infoWindow.get("logAsInternal")},kJa=function(a,b){if(a.Dg.size===1){const c=Array.from(a.Dg.values())[0];c.zv!==b.zv&&(c.set("map",null),a.Dg.delete(c))}a.Dg.add(b)},mJa=function(a,b){var c=a.__gm;a=c.get("panes");c=c.get("innerContainer");b={Al:a,jj:_.bE.jj(),Bx:c,shouldFocus:b};return new lJa(b)},EP=function(a,b){a.container.style.visibility=b?"":"hidden";b&&a.shouldFocus&&(a.focus(),a.shouldFocus=!1);b?nJa(a):a.Ng=!1},oJa=function(a){a.tj.setAttribute("aria-labelledby", a.Gg.id)},pJa=function(a){const b=!!a.get("open");var c=a.get("content");c=b?c:null;if(c==a.Ig)EP(a,b&&a.get("position"));else{if(a.Ig){const d=a.Ig.parentNode;d==a.Dg&&d.removeChild(a.Ig)}c&&(a.Mg=!1,a.Dg.appendChild(c));EP(a,b&&a.get("position"));a.Ig=c;FP(a)}},GP=function(a){var b=!!a.get("open"),c=a.get("headerContent");const d=!!a.get("ariaLabel"),e=!a.get("headerDisabled");b=b?c:null;a.tj.style.paddingTop=e?"0":"12px";b===a.Jg?a.Fg.style.display=e?"":"none":(a.Jg&&(c=a.Jg.parentNode,c===a.Gg&& c.removeChild(a.Jg)),b&&(a.Mg=!1,a.Gg.appendChild(b),e&&!d&&oJa(a)),a.Fg.style.display=e?"":"none",a.Jg=b,FP(a))},FP=function(a){var b=a.getSize();if(b){var c=b.rm;b=b.minWidth;a.tj.style.maxWidth=_.Bl(c.width);a.tj.style.maxHeight=_.Bl(c.height);a.tj.style.minWidth=_.Bl(b);a.Dg.style.maxHeight=_.oq.Dg?_.Bl(c.height-18):_.Bl(c.height-36);HP(a);a.Lg.start()}},qJa=function(a){const b=a.get("pixelOffset")||new _.Pn(0,0);var c=new _.Pn(a.tj.offsetWidth,a.tj.offsetHeight);a=-b.height+c.height+11+60;let d= b.height+60;const e=-b.width+c.width/2+60;c=b.width+c.width/2+60;b.height<0&&(d-=b.height);return{top:a,bottom:d,left:e,right:c}},nJa=function(a){!a.Ng&&a.get("open")&&a.get("visible")&&a.get("position")&&(_.Tm(a,"visible"),a.Ng=!0)},HP=function(a){var b=a.get("position");if(b&&a.get("pixelOffset")){var c=qJa(a);const d=b.x-c.left,e=b.y-c.top,f=b.x+c.right;c=b.y+c.bottom;_.Vy(a.anchor,b);b=a.get("zIndex");_.Xy(a.container,_.tl(b)?b:e+60);a.set("pixelBounds",_.Co(d,e,f,c))}},sJa=function(a,b,c){return b instanceof _.nn?new rJa(a,b,c):new rJa(a,b)},uJa=function(a){a.Dg&&a.zi.push(_.Qm(a.Dg,"pixelposition_changed",()=>{tJa(a)}))},tJa=function(a){const b=a.model.get("pixelPosition")||a.Dg&&a.Dg.get("pixelPosition");a.Gg.set("position",b)},wJa=function(a){a=a.__gm;a.get("IW_AUTO_CLOSER")||a.set("IW_AUTO_CLOSER",new vJa);return a.get("IW_AUTO_CLOSER")},vJa=class{constructor(){this.Dg=new Set}};var lJa=class extends _.Xm{constructor(a){super();this.Ig=this.Jg=this.Kg=null;this.Ng=this.Mg=!1;this.Bx=a.Bx;this.shouldFocus=a.shouldFocus;this.container=document.createElement("div");this.container.style.cursor="default";this.container.style.position="absolute";this.container.style.left=this.container.style.top="0";a.Al.floatPane.appendChild(this.container);this.anchor=document.createElement("div");this.container.appendChild(this.anchor);this.Hg=document.createElement("div");this.anchor.appendChild(this.Hg); this.tj=document.createElement("div");this.Hg.appendChild(this.tj);this.tj.setAttribute("role","dialog");this.tj.tabIndex=-1;this.Fg=document.createElement("div");this.tj.appendChild(this.Fg);this.Gg=document.createElement("div");this.Fg.appendChild(this.Gg);this.Pg=document.createElement("div");this.Hg.appendChild(this.Pg);this.Dg=document.createElement("div");this.tj.appendChild(this.Dg);_.Mza(this.container);_.Qy(this.tj,"gm-style-iw");_.Qy(this.anchor,"gm-style-iw-a");_.Qy(this.Hg,"gm-style-iw-t"); _.Qy(this.Pg,"gm-style-iw-tc");_.Qy(this.tj,"gm-style-iw-c");_.Qy(this.Fg,"gm-style-iw-chr");_.Qy(this.Gg,"gm-style-iw-ch");_.Qy(this.Dg,"gm-style-iw-d");this.Gg.setAttribute("id",_.mn());_.oq.Dg&&!_.oq.Kg&&(this.tj.style.paddingInlineEnd="0",this.tj.style.paddingBottom="0",this.Dg.style.overflow="scroll");EP(this,!1);_.Mm(this.container,"mousedown",_.Cm);_.Mm(this.container,"mouseup",_.Cm);_.Mm(this.container,"mousemove",_.Cm);_.Mm(this.container,"pointerdown",_.Cm);_.Mm(this.container,"pointerup", _.Cm);_.Mm(this.container,"pointermove",_.Cm);_.Mm(this.container,"dblclick",_.Cm);_.Mm(this.container,"click",_.Cm);_.Mm(this.container,"touchstart",_.Cm);_.Mm(this.container,"touchend",_.Cm);_.Mm(this.container,"touchmove",_.Cm);_.Dy(this.container,"contextmenu",this,this.Qg);_.Dy(this.container,"wheel",this,_.Cm);_.Dy(this.container,"mousewheel",this,_.zm);_.Dy(this.container,"MozMousePixelScroll",this,_.zm);this.Eg=new _.Xr({Dq:new _.Nn(12,12),Xr:new _.Pn(24,24),offset:new _.Nn(-6,-6),gC:!0,ownerElement:this.Fg}); this.Fg.appendChild(this.Eg.element);_.Mm(this.Eg.element,"click",b=>{_.Cm(b);_.Tm(this,"closeclick");this.set("open",!1)});this.Lg=new _.Wp(()=>{!this.Mg&&this.get("content")&&this.get("visible")&&(_.Tm(this,"domready"),this.Mg=!0)},0);this.Og=_.Mm(this.container,"keydown",b=>{b.key!=="Escape"&&b.key!=="Esc"||!this.tj.contains(document.activeElement)||(b.stopPropagation(),_.Tm(this,"closeclick"),this.set("open",!1))})}ariaLabel_changed(){const a=this.get("ariaLabel");a?this.tj.setAttribute("aria-label", a):(this.tj.removeAttribute("aria-label"),this.get("headerDisabled")||oJa(this))}open_changed(){pJa(this);GP(this)}headerContent_changed(){GP(this)}headerDisabled_changed(){GP(this)}content_changed(){pJa(this)}pendingFocus_changed(){this.get("pendingFocus")&&(this.get("open")&&this.get("visible")&&this.get("position")?_.xq(this.tj,!0):console.warn("Setting focus on InfoWindow was ignored. This is most likely due to InfoWindow not being visible yet."),this.set("pendingFocus",!1))}dispose(){setTimeout(()=> {document.activeElement&&document.activeElement!==document.body||(this.Kg&&this.Kg!==document.body?_.xq(this.Kg,!0)||_.xq(this.Bx,!0):_.xq(this.Bx,!0))});this.Og&&_.Gm(this.Og);this.container.parentNode.removeChild(this.container);this.Lg.stop();this.Lg.dispose()}getSize(){var a=this.get("layoutPixelBounds"),b=this.get("pixelOffset");const c=this.get("maxWidth")||648,d=this.get("minWidth")||0;if(!b)return null;a?(b=a.maxY-a.minY-(11+-b.height),a=a.maxX-a.minX-6,a>=240&&(a-=120),b>=240&&(b-=120)): (a=648,b=654);a=Math.min(a,c);a=Math.max(d,a);a=Math.max(0,a);b=Math.max(0,b);return{rm:new _.Pn(a,b),minWidth:d}}pixelOffset_changed(){const a=this.get("pixelOffset")||new _.Pn(0,0);this.Hg.style.right=_.Bl(-a.width);this.Hg.style.bottom=_.Bl(-a.height+11);FP(this)}layoutPixelBounds_changed(){FP(this)}position_changed(){this.get("position")?(HP(this),EP(this,!!this.get("open"))):EP(this,!1)}zIndex_changed(){HP(this)}visible_changed(){this.container.style.display=this.get("visible")?"":"none";this.Lg.start(); if(this.get("visible")){const a=this.Eg.element.style.display;this.Eg.element.style.display="none";this.Eg.element.getBoundingClientRect();this.Eg.element.style.display=a;nJa(this)}else this.Ng=!1}Qg(a){let b=!1;const c=this.get("content");let d=a.target;for(;!b&&d;)b=d==c,d=d.parentNode;b?_.zm(a):_.Bm(a)}focus(){this.Kg=document.activeElement;let a;_.oq.Lg&&(a=this.Dg.getBoundingClientRect());if(this.get("disableAutoPan"))_.xq(this.tj,!0);else{var b=_.az(this.Dg);if(b.length){b=b[0];a=a||this.Dg.getBoundingClientRect(); var c=b.getBoundingClientRect();_.xq(c.bottom<=a.bottom&&c.right<=a.right?b:this.tj,!0)}else _.xq(this.Eg.element,!0)}}};var rJa=class{constructor(a,b,c){this.model=a;this.isOpen=!0;this.Dg=this.Fg=this.Yg=null;this.zi=[];var d=a.get("shouldFocus");this.Gg=mJa(b,d);const e=b.__gm;(d=b instanceof _.nn)&&c?c.then(h=>{this.isOpen&&(this.Yg=h,this.Dg=new _.lN(l=>{this.Fg=new _.vD(b,h,l,()=>{});h.Ni(this.Fg);return this.Fg}),this.Dg.bindTo("latLngPosition",a,"position"),uJa(this))}):(this.Dg=new _.lN,this.Dg.bindTo("latLngPosition",a,"position"),this.Dg.bindTo("center",e,"projectionCenterQ"),this.Dg.bindTo("zoom",e),this.Dg.bindTo("offset", e),this.Dg.bindTo("projection",b),this.Dg.bindTo("focus",b,"position"),uJa(this));this.Hg=d?DP(a)?"Ia":"Id":null;this.Ig=d?DP(a)?148284:148285:null;const f=new _.$M(["scale"],"visible",h=>h==null||h>=.3);this.Dg&&f.bindTo("scale",this.Dg);const g=this.Gg;g.set("logAsInternal",DP(a));g.bindTo("ariaLabel",a);g.bindTo("zIndex",a);g.bindTo("layoutPixelBounds",e,"pixelBounds");g.bindTo("disableAutoPan",a);g.bindTo("pendingFocus",a);g.bindTo("maxWidth",a);g.bindTo("minWidth",a);g.bindTo("content",a);g.bindTo("headerContent", a);g.bindTo("headerDisabled",a);g.bindTo("pixelOffset",a);g.bindTo("visible",f);this.Eg=new _.Wp(()=>{if(b instanceof _.nn)if(this.Yg){var h=a.get("position");h&&(0,_.hla.JF)(b,this.Yg,new _.un(h),qJa(g))}else c.then(()=>{this.Eg.start()});else(h=g.get("pixelBounds"))?_.Tm(e,"pantobounds",h):this.Eg.start()},150);if(d){let h=null;this.zi.push(_.Qm(a,"position_changed",()=>{const l=a.get("position");!l||a.get("disableAutoPan")||l.equals(h)||(this.Eg.start(),h=l)}))}else a.get("disableAutoPan")||this.Eg.start(); g.set("open",!0);this.zi.push(_.Em(g,"domready",()=>{a.trigger("domready")}));this.zi.push(_.Em(g,"visible",()=>{a.trigger("visible")}));this.zi.push(_.Em(g,"closeclick",()=>{a.close();a.trigger("closeclick")}));this.zi.push(_.Qm(a,"pixelposition_changed",()=>{tJa(this)}));this.Hg&&_.Fn(b,this.Hg);this.Ig&&_.M(b,this.Ig)}close(){if(this.isOpen){this.isOpen=!1;this.model.trigger("close");for(var a of this.zi)_.Gm(a);this.zi.length=0;this.Eg.stop();this.Eg.dispose();this.Yg&&this.Fg&&this.Yg.Cl(this.Fg); a=this.Gg;a.unbindAll();a.set("open",!1);a.dispose();this.Dg&&this.Dg.unbindAll()}}};_.Uk("infowindow",{SH:function(a){let b=null;_.Qm(a,"map_changed",function d(){const e=a.get("map");b&&(b.xD.Dg.delete(a),b.RL.close(),b=null);if(e){const f=e.__gm;f.get("panes")?f.get("innerContainer")?(b={RL:sJa(a,e,e instanceof _.nn?f.Eg.then(({Yg:g})=>g):void 0),xD:wJa(e)},kJa(b.xD,a)):_.Pm(f,"innercontainer_changed",d):_.Pm(f,"panes_changed",d)}})}});});