PageSourceSearch

https://www.falck.de/dist/fa-google-maps-Byz5hSMv.js

js falck.de collected 2026-09-26 06:50:36 UTC 158,333 bytes, 41 lines download raw bytes

1import{r as o,j as _,a as De,R as Pt}from"./index-ClpuwTcw.js";import{u as Qn}from"./detectClickOutside-B4FKaf5N.js";import{L as Yn}from"./fa-spinner-DQ2wk8ds.js";/*! *****************************************************************************
2Copyright (c) Microsoft Corporation.
3
4Permission to use, copy, modify, and/or distribute this software for any
5purpose with or without fee is hereby granted.
6
7THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13PERFORMANCE OF THIS SOFTWARE.
14***************************************************************************** */var Ke=function(t,e){return Ke=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},Ke(t,e)};function q(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ke(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var w=function(){return w=Object.assign||function(e){for(var n,i=1,s=arguments.length;i<s;i++){n=arguments[i];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w.apply(this,arguments)};function nt(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(t);s<i.length;s++)e.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(t,i[s])&&(n[i[s]]=t[i[s]]);return n}function Fn(t,e,n,i){function s(r){return r instanceof n?r:new n(function(a){a(r)})}return new(n||(n=Promise))(function(r,a){function u(p){try{c(i.next(p))}catch(d){a(d)}}function l(p){try{c(i.throw(p))}catch(d){a(d)}}function c(p){p.done?r(p.value):s(p.value).then(u,l)}c((i=i.apply(t,[])).next())})}function Hn(t,e){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,s,r,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(c){return function(p){return l([c,p])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,s&&(r=c[0]&2?s.return:c[0]?s.throw||((r=s.return)&&r.call(s),0):s.next)&&!(r=r.call(s,c[1])).done)return r;switch(s=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,s=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(r=n.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){n.label=c[1];break}if(c[0]===6&&n.label<r[1]){n.label=r[1],r=c;break}if(r&&n.label<r[2]){n.label=r[2],n.ops.push(c);break}r[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(p){c=[6,p],s=0}finally{i=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Nn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Jn=function(t,e,n,i,s,r,a,u){if(!t){var l;if(e===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,s,r,a,u],p=0;l=new Error(e.replace(/%s/g,function(){return c[p++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},Xn=Jn,he=Nn(Xn),Z=o.createContext(null);function $n(){he(!!o.useContext,"useGoogleMap is React hook and requires React version 16.8+");var t=o.useContext(Z);return he(!!t,"useGoogleMap needs a GoogleMap available up in the tree"),t}function _n(t,e,n){return Object.keys(t).reduce(function(s,r){return e(s,t[r],r)},n)}function Kn(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function qn(t,e,n,i){var s={},r=function(a,u){var l=n[u];l!==e[u]&&(s[u]=l,a(i,l))};return Kn(t,r),s}function ei(t,e,n){var i=_n(n,function(r,a,u){return typeof t[u]=="function"&&r.push(google.maps.event.addListener(e,a,t[u])),r},[]);return i}function ti(t){google.maps.event.removeListener(t)}function Y(t){t===void 0&&(t=[]),t.forEach(ti)}function W(t){var e=t.updaterMap,n=t.eventMap,i=t.prevProps,s=t.nextProps,r=t.instance,a=ei(s,r,n);return qn(e,i,s,r),a}var At={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseDown:"mousedown",onMouseUp:"mouseup",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},Ot={extraMapTypes:function(t,e){e.forEach(function(i,s){t.mapTypes.set(String(s),i)})},center:function(t,e){t.setCenter(e)},clickableIcons:function(t,e){t.setClickableIcons(e)},heading:function(t,e){t.setHeading(e)},mapTypeId:function(t,e){t.setMapTypeId(e)},options:function(t,e){t.setOptions(e)},streetView:function(t,e){t.setStreetView(e)},tilt:function(t,e){t.setTilt(e)},zoom:function(t,e){t.setZoom(e)}};
14function ni(t){var e=t.children,n=t.options,i=t.id,s=t.mapContainerStyle,r=t.mapContainerClassName,a=t.center,u=t.onClick,l=t.onDblClick,c=t.onDrag,p=t.onDragEnd,d=t.onDragStart,f=t.onMouseMove,g=t.onMouseOut,x=t.onMouseOver,h=t.onMouseDown,L=t.onMouseUp,b=t.onRightClick,S=t.onCenterChanged,v=t.onLoad,k=t.onUnmount,y=o.useState(null),m=y[0],E=y[1],C=o.useRef(null),P=o.useState(null),I=P[0],z=P[1],O=o.useState(null),G=O[0],T=O[1],U=o.useState(null),R=U[0],D=U[1],F=o.useState(null),X=F[0],H=F[1],B=o.useState(null),ne=B[0],K=B[1],$=o.useState(null),ie=$[0],M=$[1],ee=o.useState(null),re=ee[0],N=ee[1],ae=o.useState(null),de=ae[0],oe=ae[1],le=o.useState(null),ge=le[0],se=le[1],ue=o.useState(null),fe=ue[0],pe=ue[1],ce=o.useState(null),Q=ce[0],me=ce[1],V=o.useState(null),ve=V[0],j=V[1];return o.useEffect(function(){n&&m!==null&&m.setOptions(n)},[m,n]),o.useEffect(function(){m!==null&&typeof a<"u"&&m.setCenter(a)},[m,a]),o.useEffect(function(){m&&l&&(G!==null&&google.maps.event.removeListener(G),T(google.maps.event.addListener(m,"dblclick",l)))},[l]),o.useEffect(function(){m&&p&&(R!==null&&google.maps.event.removeListener(R),D(google.maps.event.addListener(m,"dragend",p)))},[p]),o.useEffect(function(){m&&d&&(X!==null&&google.maps.event.removeListener(X),H(google.maps.event.addListener(m,"dragstart",d)))},[d]),o.useEffect(function(){m&&h&&(ne!==null&&google.maps.event.removeListener(ne),K(google.maps.event.addListener(m,"mousedown",h)))},[h]),o.useEffect(function(){m&&f&&(ie!==null&&google.maps.event.removeListener(ie),M(google.maps.event.addListener(m,"mousemove",f)))},[f]),o.useEffect(function(){m&&g&&(re!==null&&google.maps.event.removeListener(re),N(google.maps.event.addListener(m,"mouseout",g)))},[g]),o.useEffect(function(){m&&x&&(de!==null&&google.maps.event.removeListener(de),oe(google.maps.event.addListener(m,"mouseover",x)))},[x]),o.useEffect(function(){m&&L&&(ge!==null&&google.maps.event.removeListener(ge),se(google.maps.event.addListener(m,"mouseup",L)))},[L]),o.useEffect(function(){m&&b&&(fe!==null&&google.maps.event.removeListener(fe),pe(google.maps.event.addListener(m,"rightclick",b)))},[b]),o.useEffect(function(){m&&u&&(Q!==null&&google.maps.event.removeListener(Q),me(google.maps.event.addListener(m,"click",u)))},[u]),o.useEffect(function(){m&&c&&(ve!==null&&google.maps.event.removeListener(ve),j(google.maps.event.addListener(m,"drag",c)))},[c]),o.useEffect(function(){m&&S&&(I!==null&&google.maps.event.removeListener(I),z(google.maps.event.addListener(m,"center_changed",S)))},[u]),o.useEffect(function(){var Le=C.current===null?null:new google.maps.Map(C.current,n);return E(Le),Le!==null&&v&&v(Le),function(){Le!==null&&k&&k(Le)}},[]),_.jsx("div",{id:i,ref:C,style:s,className:r,children:_.jsx(Z.Provider,{value:m,children:m!==null?e:null})})}o.memo(ni);var ii=(function(t){q(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={map:null},n.registeredEvents=[],n.mapRef=null,n.getInstance=function(){return n.mapRef===null?null:new google.maps.Map(n.mapRef,n.props.options)},n.panTo=function(i){var s=n.getInstance();s&&s.panTo(i)},n.setMapCallback=function(){n.state.map!==null&&n.props.onLoad&&n.props.onLoad(n.state.map)},n.getRef=function(i){n.mapRef=i},n}return e.prototype.componentDidMount=function(){var n=this.getInstance();this.registeredEvents=W({updaterMap:Ot,eventMap:At,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{map:n}},this.setMapCallback)},e.prototype.componentDidUpdate=function(n){this.state.map!==null&&(Y(this.registeredEvents),this.registeredEvents=W({updaterMap:Ot,eventMap:At,prevProps:n,nextProps:this.props,instance:this.state.map}))},e.prototype.componentWillUnmount=function(){this.state.map!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),Y(this.registeredEvents))},e.prototype.render=function(){return _.jsx("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName,children:_.jsx(Z.Provider,{value:this.state.map,children:this.state.map!==null?this.props.children:null})})},e}
14)(o.PureComponent),be=typeof document<"u";function jn(t){var e=t.url,n=t.id,i=t.nonce;return be?new Promise(function(r,a){var u=document.getElementById(n),l=window;if(u){var c=u.getAttribute("data-state");if(u.src===e&&c!=="error"){if(c==="ready")return r(n);var p=l.initMap,d=u.onerror;l.initMap=function(){p&&p(),r(n)},u.onerror=function(g){d&&d(g),a(g)};return}else u.remove()}var f=document.createElement("script");f.type="text/javascript",f.src=e,f.id=n,f.async=!0,f.nonce=i||"",f.onerror=function(x){f.setAttribute("data-state","error"),a(x)},l.initMap=function(){f.setAttribute("data-state","ready"),r(n)},document.head.appendChild(f)}).catch(function(s){throw console.error("injectScript error: ",s),s}):Promise.reject(new Error("document is undefined"))}function Ut(t){var e=t.href;return e&&(e.indexOf("https://fonts.googleapis.com/css?family=Roboto")===0||e.indexOf("https://fonts.googleapis.com/css?family=Google+Sans+Text")===0)?!0:t.tagName.toLowerCase()==="style"&&t.styleSheet&&t.styleSheet.cssText&&t.styleSheet.cssText.replace(`\r
15`,"").indexOf(".gm-style")===0?(t.styleSheet.cssText="",!0):t.tagName.toLowerCase()==="style"&&t.innerHTML&&t.innerHTML.replace(`\r
16`,"").indexOf(".gm-style")===0?(t.innerHTML="",!0):t.tagName.toLowerCase()==="style"&&!t.styleSheet&&!t.innerHTML}function zn(){var t=document.getElementsByTagName("head")[0];if(t){var e=t.insertBefore.bind(t);t.insertBefore=function(s,r){return Ut(s)||Reflect.apply(e,t,[s,r]),s};var n=t.appendChild.bind(t);t.appendChild=function(s){return Ut(s)||Reflect.apply(n,t,[s]),s}}}function Tn(t){var e=t.googleMapsApiKey,n=t.googleMapsClientId,i=t.version,s=i===void 0?"weekly":i,r=t.language,a=t.region,u=t.libraries,l=t.channel,c=t.mapIds,p=t.authReferrerPolicy,d=[];return he(e&&n||!(e&&n),"You need to specify either googleMapsApiKey or googleMapsClientId for @react-google-maps/api load script to work. You cannot use both at the same time."),e?d.push("key=".concat(e)):n&&d.push("client=".concat(n)),s&&d.push("v=".concat(s)),r&&d.push("language=".concat(r)),a&&d.push("region=".concat(a)),u&&u.length&&d.push("libraries=".concat(u.sort().join(","))),l&&d.push("channel=".concat(l)),c&&c.length&&d.push("map_ids=".concat(c.join(","))),p&&d.push("auth_referrer_policy=".concat(p)),d.push("callback=initMap"),"https://maps.googleapis.com/maps/api/js?".concat(d.join("&"))}var Ne=!1;function Pn(){return _.jsx("div",{children:"Loading..."})}var qe={id:"script-loader",version:"weekly"};(function(t){q(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.check=o.createRef(),n.state={loaded:!1},n.cleanupCallback=function(){delete window.google.maps,n.injectScript()},n.isCleaningUp=function(){return Fn(n,void 0,void 0,function(){function i(s){if(!Ne)s();else if(be)var r=window.setInterval(function(){Ne||(window.clearInterval(r),s())},1)}return Hn(this,function(s){return[2,new Promise(i)]})})},n.cleanup=function(){Ne=!0;var i=document.getElementById(n.props.id);i&&i.parentNode&&i.parentNode.removeChild(i),Array.prototype.slice.call(document.getElementsByTagName("script")).filter(function(r){return typeof r.src=="string"&&r.src.includes("maps.googleapis")}).forEach(function(r){r.parentNode&&r.parentNode.removeChild(r)}),Array.prototype.slice.call(document.getElementsByTagName("link")).filter(function(r){return r.href==="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans"}
16).forEach(function(r){r.parentNode&&r.parentNode.removeChild(r)}),Array.prototype.slice.call(document.getElementsByTagName("style")).filter(function(r){return r.innerText!==void 0&&r.innerText.length>0&&r.innerText.includes(".gm-")}).forEach(function(r){r.parentNode&&r.parentNode.removeChild(r)})},n.injectScript=function(){n.props.preventGoogleFontsLoading&&zn(),he(!!n.props.id,'LoadScript requires "id" prop to be a string: %s',n.props.id);var i={id:n.props.id,nonce:n.props.nonce,url:Tn(n.props)};jn(i).then(function(){n.props.onLoad&&n.props.onLoad(),n.setState(function(){return{loaded:!0}})}).catch(function(s){n.props.onError&&n.props.onError(s),console.error(`
17          There has been an Error with loading Google Maps API script, please check that you provided correct google API key (`.concat(n.props.googleMapsApiKey||"-",") or Client ID (").concat(n.props.googleMapsClientId||"-",`) to <LoadScript />
18          Otherwise it is a Network issue.
19        `))})},n}return e.prototype.componentDidMount=function(){if(be){if(window.google&&window.google.maps&&!Ne){console.error("google api is already presented");return}this.isCleaningUp().then(this.injectScript).catch(function(i){console.error("Error at injecting script after cleaning up: ",i)})}},e.prototype.componentDidUpdate=function(n){this.props.libraries!==n.libraries&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),be&&n.language!==this.props.language&&(this.cleanup(),this.setState(function(){return{loaded:!1}},this.cleanupCallback))},e.prototype.componentWillUnmount=function(){var n=this;if(be){this.cleanup();var i=function(){n.check.current||(delete window.google,Ne=!1)};window.setTimeout(i,1),this.props.onUnmount&&this.props.onUnmount()}},e.prototype.render=function(){return _.jsxs(_.Fragment,{children:[_.jsx("div",{ref:this.check}),this.state.loaded?this.props.children:this.props.loadingElement||_.jsx(Pn,{})]})},e.defaultProps=qe,e})(o.PureComponent);var Rt;function An(t){var e=t.id,n=e===void 0?qe.id:e,i=t.version,s=i===void 0?qe.version:i,r=t.nonce,a=t.googleMapsApiKey,u=t.googleMapsClientId,l=t.language,c=t.region,p=t.libraries,d=t.preventGoogleFontsLoading,f=t.channel,g=t.mapIds,x=t.authReferrerPolicy,h=o.useRef(!1),L=o.useState(!1),b=L[0],S=L[1],v=o.useState(void 0),k=v[0],y=v[1];o.useEffect(function(){return h.current=!0,function(){h.current=!1}},[]),o.useEffect(function(){be&&d&&zn()},[d]),o.useEffect(function(){b&&he(!!window.google,"useLoadScript was marked as loaded, but window.google is not present. Something went wrong.")},[b]);var m=Tn({version:s,googleMapsApiKey:a,googleMapsClientId:u,language:l,region:c,libraries:p,channel:f,mapIds:g,authReferrerPolicy:x});o.useEffect(function(){if(!be)return;function P(){h.current&&(S(!0),Rt=m)}if(window.google&&window.google.maps&&Rt===m){P();return}jn({id:n,url:m,nonce:r}).then(P).catch(function(z){h.current&&y(z),console.warn(`
20        There has been an Error with loading Google Maps API script, please check that you provided correct google API key (`.concat(a||"-",") or Client ID (").concat(u||"-",`)
21        Otherwise it is a Network issue.
22      `)),console.error(z)})},[n,m,r]);var E=o.useRef();return o.useEffect(function(){E.current&&p!==E.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),E.current=p},[p]),{isLoaded:b,loadError:k,url:m}}var oi=_.jsx(Pn,{});function si(t){var e=t.loadingElement,n=t.onLoad,i=t.onError,s=t.onUnmount,r=t.children,a=nt(t,["loadingElement","onLoad","onError","onUnmount","children"]),u=An(a),l=u.isLoaded,c=u.loadError;return o.useEffect(function(){l&&typeof n=="function"&&n()},[l,n]),o.useEffect(function(){c&&typeof i=="function"&&i(c)},[c,i]),o.useEffect(function(){return function(){s&&s()}},[s]),l?r:e||oi}o.memo(si);var Bt;(function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"})(Bt||(Bt={}));var Zt={},Vt={options:function(t,e){t.setOptions(e)}};function ri(t){var e=t.options,n=t.onLoad,i=t.onUnmount,s=o.useContext(Z),r=o.useState(null),a=r[0],u=r[1];return o.useEffect(function(){a!==null&&a.setMap(s)},[s]),o.useEffect(function(){e&&a!==null&&a.setOptions(e)},[a,e]),o.useEffect(function(){var l=new google.maps.TrafficLayer(w(w({},e||{}),{map:s}));return u(l),n&&n(l),function(){a!==null&&(i&&i(a),a.setMap(null))}},[]),null}o.memo(ri);(function(t){q(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={trafficLayer:null},n.setTrafficLayerCallback=function(){n.state.trafficLayer!==null&&n.props.onLoad&&n.props.onLoad(n.state.trafficLayer)},n.registeredEvents=[],n}return e.prototype.componentDidMount=function(){var n=new google.maps.TrafficLayer(w(w({},this.props.options||{}),{map:this.context}));this.registeredEvents=W({updaterMap:Vt,eventMap:Zt,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{trafficLayer:n}},this.setTrafficLayerCallback)},e.prototype.componentDidUpdate=function(n){this.state.trafficLayer!==null&&(Y(this.registeredEvents),this.registeredEvents=W({updaterMap:Vt,eventMap:Zt,prevProps:n,nextProps:this.props,instance:this.state.trafficLayer}))},e.prototype.componentWillUnmount=function(){this.state.trafficLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),Y(this.registeredEvents),this.state.trafficLayer.setMap(null))},e.prototype.render=function(){return null},e.contextType=Z,e}
22)(o.PureComponent);function ai(t){var e=t.onLoad,n=t.onUnmount,i=o.useContext(Z),s=o.useState(null),r=s[0],a=s[1];return o.useEffect(function(){r!==null&&r.setMap(i)},[i]),o.useEffect(function(){var u=new google.maps.BicyclingLayer;return a(u),u.setMap(i),e&&e(u),function(){u!==null&&(n&&n(u),u.setMap(null))}},[]),null}o.memo(ai);(function(t){q(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={bicyclingLayer:null},n.setBicyclingLayerCallback=function(){n.state.bicyclingLayer!==null&&(n.state.bicyclingLayer.setMap(n.context),n.props.onLoad&&n.props.onLoad(n.state.bicyclingLayer))},n}return e.prototype.componentDidMount=function(){var n=new google.maps.BicyclingLayer;this.setState(function(){return{bicyclingLayer:n}},this.setBicyclingLayerCallback)},e.prototype.componentWillUnmount=function(){this.state.bicyclingLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))},e.prototype.render=function(){return null},e.contextType=Z,e})(o.PureComponent);function li(t){var e=t.onLoad,n=t.onUnmount,i=o.useContext(Z),s=o.useState(null),r=s[0],a=s[1];return o.useEffect(function(){r!==null&&r.setMap(i)},[i]),o.useEffect(function(){var u=new google.maps.TransitLayer;return a(u),u.setMap(i),e&&e(u),function(){r!==null&&(n&&n(r),r.setMap(null))}},[]),null}o.memo(li);(function(t){q(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={transitLayer:null},n.setTransitLayerCallback=function(){n.state.transitLayer!==null&&(n.state.transitLayer.setMap(n.context),n.props.onLoad&&n.props.onLoad(n.state.transitLayer))},n}return e.prototype.componentDidMount=function(){var n=new google.maps.TransitLayer;this.setState(function(){return{transitLayer:n}},this.setTransitLayerCallback)},e.prototype.componentWillUnmount=function(){this.state.transitLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))},e.prototype.render=function(){return null},e.contextType=Z,e})(o.PureComponent);var Wt={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},Gt={drawingMode:function(t,e){t.setDrawingMode(e)},options:function(t,e){t.setOptions(e)}};function ui(t){var e=t.options,n=t.drawingMode,i=t.onCircleComplete,s=t.onMarkerComplete,r=t.onOverlayComplete,a=t.onPolygonComplete,u=t.onPolylineComplete,l=t.onRectangleComplete,c=t.onLoad,p=t.onUnmount,d=o.useContext(Z),f=o.useState(null),g=f[0],x=f[1],h=o.useState(null),L=h[0],b=h[1],S=o.useState(null),v=S[0],k=S[1],y=o.useState(null),m=y[0],E=y[1],C=o.useState(null),P=C[0],I=C[1],z=o.useState(null),O=z[0],G=z[1],T=o.useState(null),U=T[0],R=T[1];return o.useEffect(function(){g!==null&&g.setMap(d)},[d]),o.useEffect(function(){e&&g!==null&&g.setOptions(e)},[g,e]),o.useEffect(function(){g!==null&&g.setDrawingMode(n??null)},[g,n]),o.useEffect(function(){g&&i&&(L!==null&&google.maps.event.removeListener(L),b(google.maps.event.addListener(g,"circlecomplete",i)))},[g,i]),o.useEffect(function(){g&&s&&(v!==null&&google.maps.event.removeListener(v),k(google.maps.event.addListener(g,"markercomplete",s)))},[g,s]),o.useEffect(function(){g&&r&&(m!==null&&google.maps.event.removeListener(m),E(google.maps.event.addListener(g,"overlaycomplete",r)))},[g,r]),o.useEffect(function(){g&&a&&(P!==null&&google.maps.event.removeListener(P),I(google.maps.event.addListener(g,"polygoncomplete",a)))},[g,a]),o.useEffect(function(){g&&u&&(O!==null&&google.maps.event.removeListener(O),G(google.maps.event.addListener(g,"polylinecomplete",u)))},[g,u]),o.useEffect(function(){g&&l&&(U!==null&&google.maps.event.removeListener(U),R(google.maps.event.addListener(g,"rectanglecomplete",l)))},[g,l]),o.useEffect(function(){he(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing);var D=new google.maps.drawing.DrawingManager(w(w({},e||{}),{map:d}));return n&&D.setDrawingMode(n),i&&b(google.maps.event.addListener(
22D,"circlecomplete",i)),s&&k(google.maps.event.addListener(D,"markercomplete",s)),r&&E(google.maps.event.addListener(D,"overlaycomplete",r)),a&&I(google.maps.event.addListener(D,"polygoncomplete",a)),u&&G(google.maps.event.addListener(D,"polylinecomplete",u)),l&&R(google.maps.event.addListener(D,"rectanglecomplete",l)),x(D),c&&c(D),function(){g!==null&&(L&&google.maps.event.removeListener(L),v&&google.maps.event.removeListener(v),m&&google.maps.event.removeListener(m),P&&google.maps.event.removeListener(P),O&&google.maps.event.removeListener(O),U&&google.maps.event.removeListener(U),p&&p(g),g.setMap(null))}},[]),null}o.memo(ui);(function(t){q(e,t);function e(n){var i=t.call(this,n)||this;return i.registeredEvents=[],i.state={drawingManager:null},i.setDrawingManagerCallback=function(){i.state.drawingManager!==null&&i.props.onLoad&&i.props.onLoad(i.state.drawingManager)},he(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing),i}return e.prototype.componentDidMount=function(){var n=new google.maps.drawing.DrawingManager(w(w({},this.props.options||{}),{map:this.context}));this.registeredEvents=W({updaterMap:Gt,eventMap:Wt,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{drawingManager:n}},this.setDrawingManagerCallback)},e.prototype.componentDidUpdate=function(n){this.state.drawingManager!==null&&(Y(this.registeredEvents),this.registeredEvents=W({updaterMap:Gt,eventMap:Wt,prevProps:n,nextProps:this.props,instance:this.state.drawingManager}))},e.prototype.componentWillUnmount=function(){this.state.drawingManager!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),Y(this.registeredEvents),this.state.drawingManager.setMap(null))},e.prototype.render=function(){return null},e.contextType=Z,e})(o.PureComponent);var Qt={onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDraggableChanged:"draggable_changed",onDragStart:"dragstart",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPositionChanged:"position_changed",onRightClick:"rightclick",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},Yt={animation:function(t,e){t.setAnimation(e)},clickable:function(t,e){t.setClickable(e)},cursor:function(t,e){t.setCursor(e)},draggable:function(t,e){t.setDraggable(e)},icon:function(t,e){t.setIcon(e)},label:function(t,e){t.setLabel(e)},map:function(t,e){t.setMap(e)},opacity:function(t,e){t.setOpacity(e)},options:function(t,e){t.setOptions(e)},position:function(t,e){t.setPosition(e)},shape:function(t,e){t.setShape(e)},title:function(t,e){t.setTitle(e)},visible:function(t,e){t.setVisible(e)},zIndex:function(t,e){t.setZIndex(e)}},Je={};function ci(t){var e=t.position,n=t.options,i=t.clusterer,s=t.noClustererRedraw,r=t.children,a=t.draggable,u=t.visible,l=t.animation,c=t.clickable,p=t.cursor,d=t.icon,f=t.label,g=t.opacity,x=t.shape,h=t.title,L=t.zIndex,b=t.onClick,S=t.onDblClick,v=t.onDrag,k=t.onDragEnd,y=t.onDragStart,m=t.onMouseOut,E=t.onMouseOver,C=t.onMouseUp,P=t.onMouseDown,I=t.onRightClick,z=t.onClickableChanged,O=t.onCursorChanged,G=t.onAnimationChanged,T=t.onDraggableChanged,U=t.onFlatChanged,R=t.onIconChanged,D=t.onPositionChanged,F=t.onShapeChanged,X=t.onTitleChanged,H=t.onVisibleChanged,B=t.onZindexChanged,ne=t.onLoad,K=t.onUnmount,$=o.useContext(Z),ie=o.useState(null),M=ie[0],ee=ie[1],re=o.useState(null),N=re[0],ae=re[1],de=o.useState(null),oe=de[0],le=de[1],ge=o.useState(null),se=ge[0],ue=ge[1],fe=o.useState(null),pe=fe[0],ce=fe[1],Q=o.useState(null),me=Q[0],V=Q[1],ve=o.useState(null),j=ve[0],Le=ve[1],Se=o.useState(null),Ce=Se[0],we=Se[1],te=o.useState(null),Pe=te[0],st=te[1],rt=o.useState(null),Ae=rt[0],at=rt[1],lt=o.useState(null),ut=lt[0],ct=lt[1],pt=o.useState(null),Oe=pt[0],dt=pt[1],gt=o.useState(null),Ue=gt[0],ft
22=gt[1],ht=o.useState(null),Re=ht[0],mt=ht[1],vt=o.useState(null),Be=vt[0],Mt=vt[1],yt=o.useState(null),Ze=yt[0],Lt=yt[1],Ct=o.useState(null),Ve=Ct[0],It=Ct[1],Et=o.useState(null),We=Et[0],xt=Et[1],bt=o.useState(null),Dt=bt[0],St=bt[1],wt=o.useState(null),Ge=wt[0],kt=wt[1],Nt=o.useState(null),Qe=Nt[0],jt=Nt[1],zt=o.useState(null),Ye=zt[0],Tt=zt[1];o.useEffect(function(){M!==null&&M.setMap($)},[$]),o.useEffect(function(){typeof n<"u"&&M!==null&&M.setOptions(n)},[M,n]),o.useEffect(function(){typeof a<"u"&&M!==null&&M.setDraggable(a)},[M,a]),o.useEffect(function(){e&&M!==null&&M.setPosition(e)},[M,e]),o.useEffect(function(){typeof u<"u"&&M!==null&&M.setVisible(u)},[M,u]),o.useEffect(function(){M==null||M.setAnimation(l)},[M,l]),o.useEffect(function(){M&&c!==void 0&&M.setClickable(c)},[M,c]),o.useEffect(function(){M&&p!==void 0&&M.setCursor(p)},[M,p]),o.useEffect(function(){M&&d!==void 0&&M.setIcon(d)},[M,d]),o.useEffect(function(){M&&f!==void 0&&M.setLabel(f)},[M,f]),o.useEffect(function(){M&&g!==void 0&&M.setOpacity(g)},[M,g]),o.useEffect(function(){M&&x!==void 0&&M.setShape(x)},[M,x]),o.useEffect(function(){M&&h!==void 0&&M.setTitle(h)},[M,h]),o.useEffect(function(){M&&L!==void 0&&M.setZIndex(L)},[M,L]),o.useEffect(function(){M&&S&&(N!==null&&google.maps.event.removeListener(N),ae(google.maps.event.addListener(M,"dblclick",S)))},[S]),o.useEffect(function(){M&&k&&(oe!==null&&google.maps.event.removeListener(oe),le(google.maps.event.addListener(M,"dragend",k)))},[k]),o.useEffect(function(){M&&y&&(se!==null&&google.maps.event.removeListener(se),ue(google.maps.event.addListener(M,"dragstart",y)))},[y]),o.useEffect(function(){M&&P&&(pe!==null&&google.maps.event.removeListener(pe),ce(google.maps.event.addListener(M,"mousedown",P)))},[P]),o.useEffect(function(){M&&m&&(me!==null&&google.maps.event.removeListener(me),V(google.maps.event.addListener(M,"mouseout",m)))},[m]),o.useEffect(function(){M&&E&&(j!==null&&google.maps.event.removeListener(j),Le(google.maps.event.addListener(M,"mouseover",E)))},[E]),o.useEffect(function(){M&&C&&(Ce!==null&&google.maps.event.removeListener(Ce),we(google.maps.event.addListener(M,"mouseup",C)))},[C]),o.useEffect(function(){M&&I&&(Pe!==null&&google.maps.event.removeListener(Pe),st(google.maps.event.addListener(M,"rightclick",I)))},[I]),o.useEffect(function(){M&&b&&(Ae!==null&&google.maps.event.removeListener(Ae),at(google.maps.event.addListener(M,"click",b)))},[b]),o.useEffect(function(){M&&v&&(ut!==null&&google.maps.event.removeListener(ut),ct(google.maps.event.addListener(M,"drag",v)))},[v]),o.useEffect(function(){M&&z&&(Oe!==null&&google.maps.event.removeListener(Oe),dt(google.maps.event.addListener(M,"clickable_changed",z)))},[z]),o.useEffect(function(){M&&O&&(Ue!==null&&google.maps.event.removeListener(Ue),ft(google.maps.event.addListener(M,"cursor_changed",O)))},[O]),o.useEffect(function(){M&&G&&(Re!==null&&google.maps.event.removeListener(Re),mt(google.maps.event.addListener(M,"animation_changed",G)))},[G]),o.useEffect(function(){M&&T&&(Be!==null&&google.maps.event.removeListener(Be),Mt(google.maps.event.addListener(M,"draggable_changed",T)))},[T]),o.useEffect(function(){M&&U&&(Ze!==null&&google.maps.event.removeListener(Ze),Lt(google.maps.event.addListener(M,"flat_changed",U)))},[U]),o.useEffect(function(){M&&R&&(Ve!==null&&google.maps.event.removeListener(Ve),It(google.maps.event.addListener(M,"icon_changed",R)))},[R]),o.useEffect(function(){M&&D&&(We!==null&&google.maps.event.removeListener(We),xt(google.maps.event.addListener(M,"position_changed",D)))},[D]),o.useEffect(function(){M&&F&&(Dt!==null&&google.maps.event.removeListener(Dt),St(google.maps.event.addListener(M,"shape_changed",F)))},[F]),o.useEffect(function(){M&&X&&(Ge!==null&&google.maps.event.removeListener(Ge),kt(google.maps.event.addListener(M,"title_changed",X)))},[X]),o.useEffect(function(){M&&H&&(Qe!==null&&google.maps.event.removeListener(Qe),jt(google.maps.event.addListener(M,"visible_changed",H)))},[H]),o.useEffect(function(){M&&B&&(Ye!==null&&google.maps.event.removeListener(Ye),Tt(google.maps.event.addListener(M,"zindex_changed",B)))},[B]),o.useEffect(function(){var ke=w(w(w({},n||Je),i?Je:{map:$}),{position:e}),A=new google.maps.Marker(ke);return i?i.addMarker(A,!!s):A.setMap($),e&&A.setPosition(e),typeof u<"u"&&A.setVisible(u),typeof a<"u"&&A.setDraggable(a),typeof c<"u"&&A.setClickable(c),typeof p=="string"&&A.setCursor(p),d&&A.setIcon(d),typeof f<"u"&&A.setLabel(f),typeof g<"u"&&A.setOpacity(g),x&&A.setShape(x),typeof h=="string"&&A.setTitle(h),typeof L=="number"&&A.setZIndex(L),S&&ae(google.maps.event.addListener(A,"dblclick",S)),k&&le(google.maps.event.addListener(A,"dragend",k)),y&&ue(google.maps.event.addListener(A,"dragstart",y)),P&&ce(google.maps.event.addListener(A,"mousedown",P)),m&&V(google.maps.event.addListener(A,"mouseout",m)),E&&Le(google.maps.event.addListener(A,"mouseover",E)),C&&we(google.maps.event.addListener(A,"mouseup",C)),I&&st(google.maps.event.addListener(A,"rightclick",I)),b&&at(google.maps.event.addListener(A,"click",b)),v&&ct(google.maps.event.addListener(A,"drag",v)),z&&dt(google.maps.event.addListener(A,"clickable_changed",z)),O&&ft(google.maps.event.addListener(A,"cursor_changed",O)),G&&mt(google.maps.event.addListener(A,"animation_changed",G)),T&&Mt(google.maps.event.addListener(A,"draggable_changed",T)),U&&Lt(google.maps.event.addListener(A,"flat_changed",U)),R&&It(google.maps.event.addListener(A,"icon_changed",R)),D&&xt(google.maps.event.addListener(A,"position_changed",D)),F&&St(google.maps.event.addListener(A,"shape_changed",F)),X&&kt(google.maps.event.addListener(A,"title_changed",X)),H&&jt(google.maps.event.addListener(A,"visible_changed",H)),B&&Tt(google.maps.event.addListener(A,"zindex_changed",B)),ee(A),ne&&ne(A),function(){N!==null&&google.maps.event.removeListener(N),oe!==null&&google.maps.event.removeListener(oe),se!==null&&google.maps.event.removeListener(se),pe!==null&&google.maps.event.removeListener(pe),me!==null&&google.maps.event.removeListener(me),j!==null&&google.maps.event.removeListener(j),Ce!==null&&google.maps.event.removeListener(Ce),Pe!==null&&google.maps.event.removeListener(Pe),Ae!==null&&google.maps.event.removeListener(Ae),Oe!==null&&google.maps.event.removeListener(Oe),Ue!==null&&google.maps.event.removeListener(Ue),Re!==null&&google.maps.event.removeListener(Re),Be!==null&&google.maps.event.removeListener(Be),Ze!==null&&google.maps.event.removeListener(Ze),Ve!==null&&google.maps.event.removeListener(Ve),We!==null&&google.maps.event.removeListener(We),Ge!==null&&google.maps.event.removeListener(Ge),Qe!==null&&google.maps.event.removeListener(Qe),Ye!==null&&google.maps.event.removeListener(Ye),K&&K(A),i?i.removeMarker(A,!!s):A&&A.setMap(null)}},[]);var Gn=o.useMemo(function(){return r?o.Children.map(r,function(ke){if(!o.isValidElement(ke))return ke;var A=ke;return o.cloneElement(A,{anchor:M})}):null},[r,M]);return _.jsx(_.Fragment,{children:Gn})||null}o.memo(ci);var pi=(function(t){q(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n}return e.prototype.componentDidMount=function(){var n=w(w(w({},this.props.options||Je),this.props.clusterer?Je:{map:this.context}),{position:this.props.position});this.marker=new google.maps.Marker(n),this.props.clusterer?this.props.clusterer.addMarker(this.marker,!!this.props.noClustererRedraw):this.marker.setMap(this.context),this.registeredEvents=W({updaterMap:Yt,eventMap:Qt,prevProps:{},nextProps:this.props,instance:this.marker}),this.props.onLoad&&this.props.onLoad(this.marker)},e.prototype.componentDidUpdate=function(n){this.marker&&(Y(this.registeredEvents),this.registeredEvents=W({updaterMap:Yt,eventMap:Qt,prevProps:n,nextProps:this.props,instance:this.marker}))},e.prototype.componentWillUnmount=function(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),Y(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))},e.prototype.render=function(){var n=this,i=null;return this.props.children&&(i=o.Children.map(this.props.children,function(s){if(!o.isValidElement(s))return s;var r=s;return o.cloneElement(r,{anchor:n.marker})})),i||null},e.contextType=Z,e}
22)(o.PureComponent),di=(function(){function t(e,n){e.getClusterer().extend(t,google.maps.OverlayView),this.cluster=e,this.clusterClassName=this.cluster.getClusterer().getClusterClass(),this.className=this.clusterClassName,this.styles=n,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.cMouseDownInCluster=null,this.cDraggingMapByCluster=null,this.timeOut=null,this.setMap(e.getMap()),this.onBoundsChanged=this.onBoundsChanged.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onClick=this.onClick.bind(this),this.onMouseOver=this.onMouseOver.bind(this),this.onMouseOut=this.onMouseOut.bind(this),this.onAdd=this.onAdd.bind(this),this.onRemove=this.onRemove.bind(this),this.draw=this.draw.bind(this),this.hide=this.hide.bind(this),this.show=this.show.bind(this),this.useStyle=this.useStyle.bind(this),this.setCenter=this.setCenter.bind(this),this.getPosFromLatLng=this.getPosFromLatLng.bind(this)}return t.prototype.onBoundsChanged=function(){this.cDraggingMapByCluster=this.cMouseDownInCluster},t.prototype.onMouseDown=function(){this.cMouseDownInCluster=!0,this.cDraggingMapByCluster=!1},t.prototype.onClick=function(e){if(this.cMouseDownInCluster=!1,!this.cDraggingMapByCluster){var n=this.cluster.getClusterer();if(google.maps.event.trigger(n,"click",this.cluster),google.maps.event.trigger(n,"clusterclick",this.cluster),n.getZoomOnClick()){var i=n.getMaxZoom(),s=this.cluster.getBounds(),r=n.getMap();r!==null&&"fitBounds"in r&&r.fitBounds(s),this.timeOut=window.setTimeout(function(){var a=n.getMap();if(a!==null){"fitBounds"in a&&a.fitBounds(s);var u=a.getZoom()||0;i!==null&&u>i&&a.setZoom(i+1)}},100)}e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()}},t.prototype.onMouseOver=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseover",this.cluster)},t.prototype.onMouseOut=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseout",this.cluster)},t.prototype.onAdd=function(){var e;this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),(e=this.getPanes())===null||e===void 0||e.overlayMouseTarget.appendChild(this.div);var n=this.getMap();n!==null&&(this.boundsChangedListener=google.maps.event.addListener(n,"bounds_changed",this.onBoundsChanged),this.div.addEventListener("mousedown",this.onMouseDown),this.div.addEventListener("click",this.onClick),this.div.addEventListener("mouseover",this.onMouseOver),this.div.addEventListener("mouseout",this.onMouseOut))},t.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),this.boundsChangedListener!==null&&google.maps.event.removeListener(this.boundsChangedListener),this.div.removeEventListener("mousedown",this.onMouseDown),this.div.removeEventListener("click",this.onClick),this.div.removeEventListener("mouseover",this.onMouseOver),this.div.removeEventListener("mouseout",this.onMouseOut),this.div.parentNode.removeChild(this.div),this.timeOut!==null&&(window.clearTimeout(this.timeOut),this.timeOut=null),this.div=null)},t.prototype.draw=function(){if(this.visible&&this.div!==null&&this.center){var e=this.getPosFromLatLng(this.center);this.div.style.top=e!==null?"".concat(e.y,"px"):"0",this.div.style.left=e!==null?"".concat(e.x,"px"):"0"}},t.prototype.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},t.prototype.show=function(){var e,n,i,s,r,a;if(this.div&&this.center){var u=this.sums===null||typeof this.sums.title>"u"||this.sums.title===""?this.cluster.getClusterer().getTitle():this.sums.title,l=this.backgroundPosition.split(" "),c=parseInt(((e=l[0])===null||e===void 0?void 0:e.replace(/^\s+|\s+$/g,""))||"0",10),p=parseInt(((n=l[1])===null||n===void 0?void 0:n.replace(/^\s+|\s+$/g,""))||"0",10),d=this.getPosFromLatLng(this.center);this.div.className=this.className,this.div.setAttribute("style","cursor: pointer; position: absolute; top: ".concat(d!==null?"".concat(d.y,"px"):"0","; left: ").concat(d!==null?"".concat(d.x,"px"):"0","; width: ").concat(this.width,"px; height: ").concat(this.height,"px; "));var f=document.createElement("img");f.alt=u,f.src=this.url,f.width=this.width,f.height=this.height,f.setAttribute("style","position: absolute; top: ".concat(p,"px; left: ").concat(c,"px")),this.cluster.getClusterer().enableRetinaIcons||(f.style.clip="rect(-".concat(p,"px, -").concat(c+this.width,"px, -").concat(p+this.height,", -").concat(c,")"));var g=document.createElement("div");g.setAttribute("style","position: absolute; top: ".concat(this.anchorText[0],"px; left: ").concat(this.anchorText[1],"px; color: ").concat(this.textColor,"; font-size: ").concat(this.textSize,"px; font-family: ").concat(this.fontFamily,"; font-weight: ").concat(this.fontWeight,"; fontStyle: ").concat(this.fontStyle,"; text-decoration: ").concat(this.textDecoration,"; text-align: center; width: ").concat(this.width,"px; line-height: ").concat(this.height,"px")),!((i=this.sums)===null||i===void 0)&&i.text&&(g.innerText="".concat((s=this.sums)===null||s===void 0?void 0:s.text)),!((r=this.sums)===null||r===void 0)&&r.html&&(g.innerHTML="".concat((a=this.sums)===null||a===void 0?void 0:a.html)),this.div.innerHTML="",this.div.appendChild(f),this.div.appendChild(g),this.div.title=u,this.div.style.display=""}this.visible=!0},t.prototype.useStyle=function(e){this.sums=e;var n=this.cluster.getClusterer().getStyles(),i=n[Math.min(n.length-1,Math.max(0,e.index-1))];i&&(this.url=i.url,this.height=i.height,this.width=i.width,i.className&&(this.className="".concat(this.clusterClassName," ").concat(i.className)),this.anchorText=i.anch
22orText||[0,0],this.anchorIcon=i.anchorIcon||[this.height/2,this.width/2],this.textColor=i.textColor||"black",this.textSize=i.textSize||11,this.textDecoration=i.textDecoration||"none",this.fontWeight=i.fontWeight||"bold",this.fontStyle=i.fontStyle||"normal",this.fontFamily=i.fontFamily||"Arial,sans-serif",this.backgroundPosition=i.backgroundPosition||"0 0")},t.prototype.setCenter=function(e){this.center=e},t.prototype.getPosFromLatLng=function(e){var n=this.getProjection().fromLatLngToDivPixel(e);return n!==null&&(n.x-=this.anchorIcon[1],n.y-=this.anchorIcon[0]),n},t})(),gi=(function(){function t(e){this.markerClusterer=e,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new di(this,this.markerClusterer.getStyles()),this.getSize=this.getSize.bind(this),this.getMarkers=this.getMarkers.bind(this),this.getCenter=this.getCenter.bind(this),this.getMap=this.getMap.bind(this),this.getClusterer=this.getClusterer.bind(this),this.getBounds=this.getBounds.bind(this),this.remove=this.remove.bind(this),this.addMarker=this.addMarker.bind(this),this.isMarkerInClusterBounds=this.isMarkerInClusterBounds.bind(this),this.calculateBounds=this.calculateBounds.bind(this),this.updateIcon=this.updateIcon.bind(this),this.isMarkerAlreadyAdded=this.isMarkerAlreadyAdded.bind(this)}return t.prototype.getSize=function(){return this.markers.length},t.prototype.getMarkers=function(){return this.markers},t.prototype.getCenter=function(){return this.center},t.prototype.getMap=function(){return this.map},t.prototype.getClusterer=function(){return this.markerClusterer},t.prototype.getBounds=function(){for(var e=new google.maps.LatLngBounds(this.center,this.center),n=this.getMarkers(),i=0,s=n;i<s.length;i++){var r=s[i],a=r.getPosition();a&&e.extend(a)}return e},t.prototype.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},t.prototype.addMarker=function(e){var n;if(this.isMarkerAlreadyAdded(e))return!1;if(this.center){if(this.averageCenter){var i=e.getPosition();if(i){var s=this.markers.length+1;this.center=new google.maps.LatLng((this.center.lat()*(s-1)+i.lat())/s,(this.center.lng()*(s-1)+i.lng())/s),this.calculateBounds()}}}else{var i=e.getPosition();i&&(this.center=i,this.calculateBounds())}e.isAdded=!0,this.markers.push(e);var r=this.markers.length,a=this.markerClusterer.getMaxZoom(),u=(n=this.map)===null||n===void 0?void 0:n.getZoom();if(a!==null&&typeof u<"u"&&u>a)e.getMap()!==this.map&&e.setMap(this.map);else if(r<this.minClusterSize)e.getMap()!==this.map&&e.setMap(this.map);else if(r===this.minClusterSize)for(var l=0,c=this.markers;l<c.length;l++){var p=c[l];p.setMap(null)}else e.setMap(null);return!0},t.prototype.isMarkerInClusterBounds=function(e){if(this.bounds!==null){var n=e.getPosition();if(n)return this.bounds.contains(n)}return!1},t.prototype.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},t.prototype.updateIcon=function(){var e,n=this.markers.length,i=this.markerClusterer.getMaxZoom(),s=(e=this.map)===null||e===void 0?void 0:e.getZoom();if(i!==null&&typeof s<"u"&&s>i){this.clusterIcon.hide();return}if(n<this.minClusterSize){this.clusterIcon.hide();return}this.center&&this.clusterIcon.setCenter(this.center),this.clusterIcon.useStyle(this.markerClusterer.getCalculator()(this.markers,this.markerClusterer.getStyles().length)),this.clusterIcon.show()},t.prototype.isMarkerAlreadyAdded=function(e){if(this.markers.includes)return this.markers.includes(e);for(var n=0;n<this.markers.length;n++)if(e===this.markers[n])return!0;return!1},t})();function fi(t,e){var n=t.length,i=n.toString().length,s=Math.min(i,e);return{text:n.toString(),index:s,title:""}}var hi=2e3,mi=500,vi="https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",Mi="png",yi=[53,56,66,78,90],Li="cluster",On=(function(){function t(e,n,i){n===void 0&&(n=[]),i===void 0&&(i={}),this.getMinimumClusterSize=this.getMinimumClusterSize.bind(this),this.setMinimumClusterSize=this.setMinimumClusterSize.bind(this),this.getEnableRetinaIcons=this.getEnableRetinaIcons.bind(this),this.setEnableRetinaIcons=this.setEnableRetinaIcons.bind(this),this.addToClosestCluster=this.addToClosestCluster.bind(this),this.getImageExtension=this.getImageExtension.bind(this),this.setImageExtension=this.setImageExtension.bind(this),this.getExtendedBounds=this.getExtendedBounds.bind(this),this.getAverageCenter=this.getAverageCenter.bind(this),this.setAverageCenter=this.setAverageCenter.bind(this),this.getTotalClusters=this.getTotalClusters.bind(this),this.fitMapToMarkers=this.fitMapToMarkers.bind(this),this.getIgnoreHidden=this.getIgnoreHidden.bind(this),this.setIgnoreHidden=this.setIgnoreHidden.bind(this),this.getClusterClass=this.getClusterClass.bind(this),this.setClusterClass=this.setClusterClass.bind(this),this.getTotalMarkers=this.getTotalMarkers.bind(this),this.getZoomOnClick=this.getZoomOnClick.bind(this),this.setZoomOnClick=this.setZoomOnClick.bind(this),this.getBatchSizeIE=this.getBatchSizeIE.bind(this),this.setBatchSizeIE=this.setBatchSizeIE.bind(this),this.createCluster
22s=this.createClusters.bind(this),this.onZoomChanged=this.onZoomChanged.bind(this),this.getImageSizes=this.getImageSizes.bind(this),this.setImageSizes=this.setImageSizes.bind(this),this.getCalculator=this.getCalculator.bind(this),this.setCalculator=this.setCalculator.bind(this),this.removeMarkers=this.removeMarkers.bind(this),this.resetViewport=this.resetViewport.bind(this),this.getImagePath=this.getImagePath.bind(this),this.setImagePath=this.setImagePath.bind(this),this.pushMarkerTo=this.pushMarkerTo.bind(this),this.removeMarker=this.removeMarker.bind(this),this.clearMarkers=this.clearMarkers.bind(this),this.setupStyles=this.setupStyles.bind(this),this.getGridSize=this.getGridSize.bind(this),this.setGridSize=this.setGridSize.bind(this),this.getClusters=this.getClusters.bind(this),this.getMaxZoom=this.getMaxZoom.bind(this),this.setMaxZoom=this.setMaxZoom.bind(this),this.getMarkers=this.getMarkers.bind(this),this.addMarkers=this.addMarkers.bind(this),this.getStyles=this.getStyles.bind(this),this.setStyles=this.setStyles.bind(this),this.addMarker=this.addMarker.bind(this),this.onRemove=this.onRemove.bind(this),this.getTitle=this.getTitle.bind(this),this.setTitle=this.setTitle.bind(this),this.repaint=this.repaint.bind(this),this.onIdle=this.onIdle.bind(this),this.redraw=this.redraw.bind(this),this.onAdd=this.onAdd.bind(this),this.draw=this.draw.bind(this),this.extend=this.extend.bind(this),this.extend(t,google.maps.OverlayView),this.markers=[],this.clusters=[],this.listeners=[],this.activeMap=null,this.ready=!1,this.gridSize=i.gridSize||60,this.minClusterSize=i.minimumClusterSize||2,this.maxZoom=i.maxZoom||null,this.styles=i.styles||[],this.title=i.title||"",this.zoomOnClick=!0,i.zoomOnClick!==void 0&&(this.zoomOnClick=i.zoomOnClick),this.averageCenter=!1,i.averageCenter!==void 0&&(this.averageCenter=i.averageCenter),this.ignoreHidden=!1,i.ignoreHidden!==void 0&&(this.ignoreHidden=i.ignoreHidden),this.enableRetinaIcons=!1,i.enableRetinaIcons!==void 0&&(this.enableRetinaIcons=i.enableRetinaIcons),this.imagePath=i.imagePath||vi,this.imageExtension=i.imageExtension||Mi,this.imageSizes=i.imageSizes||yi,this.calculator=i.calculator||fi,this.batchSize=i.batchSize||hi,this.batchSizeIE=i.batchSizeIE||mi,this.clusterClass=i.clusterClass||Li,navigator.userAgent.toLowerCase().indexOf("msie")!==-1&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(n,!0),this.setMap(e)}return t.prototype.onZoomChanged=function(){var e,n;this.resetViewport(!1),(((e=this.getMap())===null||e===void 0?void 0:e.getZoom())===(this.get("minZoom")||0)||((n=this.getMap())===null||n===void 0?void 0:n.getZoom())===this.get("maxZoom"))&&google.maps.event.trigger(this,"idle")},t.prototype.onIdle=function(){this.redraw()},t.prototype.onAdd=function(){var e=this.getMap();this.activeMap=e,this.ready=!0,this.repaint(),e!==null&&(this.listeners=[google.maps.event.addListener(e,"zoom_changed",this.onZoomChanged),google.maps.event.addListener(e,"idle",this.onIdle)])},t.prototype.onRemove=function(){for(var e=0,n=this.markers;e<n.length;e++){var i=n[e];i.getMap()!==this.activeMap&&i.setMap(this.activeMap)}
22for(var s=0,r=this.clusters;s<r.length;s++){var a=r[s];a.remove()}this.clusters=[];for(var u=0,l=this.listeners;u<l.length;u++){var c=l[u];google.maps.event.removeListener(c)}this.listeners=[],this.activeMap=null,this.ready=!1},t.prototype.draw=function(){},t.prototype.getMap=function(){return null},t.prototype.getPanes=function(){return null},t.prototype.getProjection=function(){return{fromContainerPixelToLatLng:function(){return null},fromDivPixelToLatLng:function(){return null},fromLatLngToContainerPixel:function(){return null},fromLatLngToDivPixel:function(){return null},getVisibleRegion:function(){return null},getWorldWidth:function(){return 0}}},t.prototype.setMap=function(){},t.prototype.addListener=function(){return{remove:function(){}}},t.prototype.bindTo=function(){},t.prototype.get=function(){},t.prototype.notify=function(){},t.prototype.set=function(){},t.prototype.setValues=function(){},t.prototype.unbind=function(){},t.prototype.unbindAll=function(){},t.prototype.setupStyles=function(){if(!(this.styles.length>0))for(var e=0;e<this.imageSizes.length;e++)this.styles.push({url:"".concat(this.imagePath+(e+1),".").concat(this.imageExtension),height:this.imageSizes[e]||0,width:this.imageSizes[e]||0})},t.prototype.fitMapToMarkers=function(){for(var e=this.getMarkers(),n=new google.maps.LatLngBounds,i=0,s=e;i<s.length;i++){var r=s[i],a=r.getPosition();a&&n.extend(a)}var u=this.getMap();u!==null&&"fitBounds"in u&&u.fitBounds(n)},t.prototype.getGridSize=function(){return this.gridSize},t.prototype.setGridSize=function(e){this.gridSize=e},t.prototype.getMinimumClusterSize=function(){return this.minClusterSize},t.prototype.setMinimumClusterSize=function(e){this.minClusterSize=e},t.prototype.getMaxZoom=function(){return this.maxZoom},t.prototype.setMaxZoom=function(e){this.maxZoom=e},t.prototype.getStyles=function(){return this.styles},t.prototype.setStyles=function(e){this.styles=e},t.prototype.getTitle=function(){return this.title},t.prototype.setTitle=function(e){this.title=e},t.prototype.getZoomOnClick=function(){return this.zoomOnClick},t.prototype.setZoomOnClick=function(e){this.zoomOnClick=e},t.prototype.getAverageCenter=function(){return this.averageCenter},t.prototype.setAverageCenter=function(e){this.averageCenter=e},t.prototype.getIgnoreHidden=function(){return this.ignoreHidden},t.prototype.setIgnoreHidden=function(e){this.ignoreHidden=e},t.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons},t.prototype.setEnableRetinaIcons=function(e){this.enableRetinaIcons=e},t.prototype.getImageExtension=function(){return this.imageExtension},t.prototype.setImageExtension=function(e){this.imageExtension=e},t.prototype.getImagePath=function(){return this.imagePath},t.prototype.setImagePath=function(e){this.imagePath=e},t.prototype.getImageSizes=function(){return this.imageSizes},t.prototype.setImageSizes=function(e){this.imageSizes=e},t.prototype.getCalculator=function(){return this.calculator},t.prototype.setCalculator=function(e){this.calculator=e},t.prototype.getBatchSizeIE=function(){return this.batchSizeIE},t.prototype.setBatchSizeIE=function(e){this.batchSizeIE=e},t.prototype.getClusterClass=function(){return this.clusterClass},t.prototype.setClusterClass=function(e){this.clusterClass=e},t.prototype.getMarkers=function(){return this.markers},t.prototype.getTotalMarkers=function(){return this.markers.length},t.prototype.getClusters=function(){return this.clusters},t.prototype.getTotalClusters=function(){return this.clusters.length},t.prototype.addMarker=function(e,n){this.pushMarkerTo(e),n||this.redraw()},t.prototype.addMarkers=function(e,n){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=e[i];s&&this.pushMarkerTo(s)}n||this.redraw()},t.prototype.pushMarkerTo=function(e){var n=this;e.getDraggable()&&google.maps.event.addListener(e,"dragend",function(){n.ready&&(e.isAdded=!1,n.repaint())}),e.isAdded=!1,this.markers.push(e)},t.prototype.removeMarker_=function(e){var n=-1;if(this.markers.indexOf)n=this.markers.indexOf(e);else for(var i=0;i<this.markers.length;i++)if(e===this.markers[i]){n=i;break}return n===-1?!1:(e.setMap(null),this.markers.splice(n,1),!0)},t.prototype.removeMarker=function(e,n){var i=this.removeMarker_(e);return!n&&i&&this.repaint(),i},t.prototype.removeMarkers=function(e,n){for(var i=!1,s=0,r=e;s<r.length;s++){var a=r[s];i=i||this.removeMarker_(a)}return!n&&i&&this.repaint(),i},t.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers=[]}
22,t.prototype.repaint=function(){var e=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout(function(){for(var i=0,s=e;i<s.length;i++){var r=s[i];r.remove()}},0)},t.prototype.getExtendedBounds=function(e){var n=this.getProjection(),i=n.fromLatLngToDivPixel(new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()));i!==null&&(i.x+=this.gridSize,i.y-=this.gridSize);var s=n.fromLatLngToDivPixel(new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()));if(s!==null&&(s.x-=this.gridSize,s.y+=this.gridSize),i!==null){var r=n.fromDivPixelToLatLng(i);r!==null&&e.extend(r)}if(s!==null){var a=n.fromDivPixelToLatLng(s);a!==null&&e.extend(a)}return e},t.prototype.redraw=function(){this.createClusters(0)},t.prototype.resetViewport=function(e){for(var n=0,i=this.clusters;n<i.length;n++){var s=i[n];s.remove()}this.clusters=[];for(var r=0,a=this.markers;r<a.length;r++){var u=a[r];u.isAdded=!1,e&&u.setMap(null)}},t.prototype.distanceBetweenPoints=function(e,n){var i=6371,s=(n.lat()-e.lat())*Math.PI/180,r=(n.lng()-e.lng())*Math.PI/180,a=Math.sin(s/2)*Math.sin(s/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(n.lat()*Math.PI/180)*Math.sin(r/2)*Math.sin(r/2);return i*(2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a)))},t.prototype.isMarkerInBounds=function(e,n){var i=e.getPosition();return i?n.contains(i):!1},t.prototype.addToClosestCluster=function(e){for(var n,i=4e4,s=null,r=0,a=this.cluster
22s;r<a.length;r++){var u=a[r];n=u;var l=n.getCenter(),c=e.getPosition();if(l&&c){var p=this.distanceBetweenPoints(l,c);p<i&&(i=p,s=n)}}s&&s.isMarkerInClusterBounds(e)?s.addMarker(e):(n=new gi(this),n.addMarker(e),this.clusters.push(n))},t.prototype.createClusters=function(e){var n=this;if(this.ready){e===0&&(google.maps.event.trigger(this,"clusteringbegin",this),this.timerRefStatic!==null&&(window.clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var i=this.getMap(),s=i!==null&&("getBounds"in i)?i.getBounds():null,r=(i==null?void 0:i.getZoom())||0,a=r>3?new google.maps.LatLngBounds(s==null?void 0:s.getSouthWest(),s==null?void 0:s.getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),u=this.getExtendedBounds(a),l=Math.min(e+this.batchSize,this.markers.length),c=e;c<l;c++){var p=this.markers[c];p&&!p.isAdded&&this.isMarkerInBounds(p,u)&&(!this.ignoreHidden||this.ignoreHidden&&p.getVisible())&&this.addToClosestCluster(p)}if(l<this.markers.length)this.timerRefStatic=window.setTimeout(function(){n.createClusters(l)},0);else{this.timerRefStatic=null,google.maps.event.trigger(this,"clusteringend",this);
22for(var d=0,f=this.clusters;d<f.length;d++){var g=f[d];g.updateIcon()}}}},t.prototype.extend=function(e,n){return(function(s){for(var r in s.prototype){var a=r;this.prototype[a]=s.prototype[a]}return this}).apply(e,[n])},t})(),ye={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},J={averageCenter:function(t,e){t.setAverageCenter(e)},batchSizeIE:function(t,e){t.setBatchSizeIE(e)},calculator:function(t,e){t.setCalculator(e)},clusterClass:function(t,e){t.setClusterClass(e)},enableRetinaIcons:function(t,e){t.setEnableRetinaIcons(e)},gridSize:function(t,e){t.setGridSize(e)},ignoreHidden:function(t,e){t.setIgnoreHidden(e)},imageExtension:function(t,e){t.setImageExtension(e)},imagePath:function(t,e){t.setImagePath(e)},imageSizes:function(t,e){t.setImageSizes(e)},maxZoom:function(t,e){t.setMaxZoom(e)},minimumClusterSize:function(t,e){t.setMinimumClusterSize(e)},styles:function(t,e){t.setStyles(e)},title:function(t,e){t.setTitle(e)},zoomOnClick:function(t,e){t.setZoomOnClick(e)}},Ci={};function Ii(t){var e=t.children,n=t.options,i=t.averageCenter,s=t.batchSizeIE,r=t.calculator,a=t.clusterClass,u=t.enableRetinaIcons,l=t.gridSize,c=t.ignoreHidden,p=t.imageExtension,d=t.imagePath,f=t.imageSizes,g=t.maxZoom,x=t.minimumClusterSize,h=t.styles,L=t.title,b=t.zoomOnClick,S=t.onClick,v=t.onClusteringBegin,k=t.onClusteringEnd,y=t.onMouseOver,m=t.onMouseOut,E=t.onLoad,C=t.onUnmount,P=o.useState(null),I=P[0],z=P[1],O=o.useContext(Z),G=o.useState(null),T=G[0],U=G[1],R=o.useState(null),D=R[0],F=R[1],X=o.useState(null),H=X[0],B=X[1],ne=o.useState(null),K=ne[0],$=ne[1],ie=o.useState(null),M=ie[0],ee=ie[1];return o.useEffect(function(){I&&m&&(K!==null&&google.maps.event.removeListener(K),$(google.maps.event.addListener(I,ye.onMouseOut,m)))},[m]),o.useEffect(function(){I&&y&&(M!==null&&google.maps.event.removeListener(M),ee(google.maps.event.addListener(I,ye.onMouseOver,y)))},[y]),o.useEffect(function(){I&&S&&(T!==null&&google.maps.event.removeListener(T),U(google.maps.event.addListener(I,ye.onClick,S)))},[S]),o.useEffect(function(){I&&v&&(D!==null&&google.maps.event.removeListener(D),F(google.maps.event.addListener(I,ye.onClusteringBegin,v)))},[v]),o.useEffect(function(){I&&k&&(H!==null&&google.maps.event.removeListener(H),F(google.maps.event.addListener(I,ye.onClusteringEnd,k)))},[k]),o.useEffect(function(){typeof i<"u"&&I!==null&&J.averageCenter(I,i)},[I,i]),o.useEffect(function(){typeof s<"u"&&I!==null&&J.batchSizeIE(I,s)},[I,s]),o.useEffect(function(){typeof r<"u"&&I!==null&&J.calculator(I,r)},[I,r]),o.useEffect(function(){typeof a<"u"&&I!==null&&J.clusterClass(I,a)},[I,a]),o.useEffect(function(){typeof u<"u"&&I!==null&&J.enableRetinaIcons(I,u)},[I,u]),o.useEffect(function(){typeof l<"u"&&I!==null&&J.gridSize(I,l)},[I,l]),o.useEffect(function(){typeof c<"u"&&I!==null&&J.ignoreHidden(I,c)},[I,c]),o.useEffect(function(){typeof p<"u"&&I!==null&&J.imageExtension(I,p)},[I,p]),o.useEffect(function(){typeof d<"u"&&I!==null&&J.imagePath(I,d)},[I,d]),o.useEffect(function(){typeof f<"u"&&I!==null&&J.imageSizes(I,f)},[I,f]),o.useEffect(function(){typeof g<"u"&&I!==null&&J.maxZoom(I,g)},[I,g]),o.useEffect(function(){typeof x<"u"&&I!==null&&J.minimumClusterSize(I,x)},[I,x]),o.useEffect(function(){typeof h<"u"&&I!==null&&J.styles(I,h)},[I,h]),o.useEffect(function(){typeof L<"u"&&I!==null&&J.title(I,L)},[I,L]),o.useEffect(function(){typeof b<"u"&&I!==null&&J.zoomOnClick(I,b)},[I,b]),o.useEffect(function(){if(O){var re=w({},n||Ci),N=new On(O,[],re);return i&&J.averageCenter(N,i),s&&J.batchSizeIE(N,s),r&&J.calculator(N,r),a&&J.clusterClass(N,a),u&&J.enableRetinaIcons(N,u),l&&J.gridSize(N,l),
22c&&J.ignoreHidden(N,c),p&&J.imageExtension(N,p),d&&J.imagePath(N,d),f&&J.imageSizes(N,f),g&&J.maxZoom(N,g),x&&J.minimumClusterSize(N,x),h&&J.styles(N,h),L&&J.title(N,L),b&&J.zoomOnClick(N,b),m&&$(google.maps.event.addListener(N,ye.onMouseOut,m)),y&&ee(google.maps.event.addListener(N,ye.onMouseOver,y)),S&&U(google.maps.event.addListener(N,ye.onClick,S)),v&&F(google.maps.event.addListener(N,ye.onClusteringBegin,v)),k&&B(google.maps.event.addListener(N,ye.onClusteringEnd,k)),z(N),E&&E(N),function(){K!==null&&google.maps.event.removeListener(K),M!==null&&google.maps.event.removeListener(M),T!==null&&google.maps.event.removeListener(T),D!==null&&google.maps.event.removeListener(D),H!==null&&google.maps.event.removeListener(H),C&&C(N)}}},[]),I!==null&&e(I)||null}o.memo(Ii);(function(t){q(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={markerClusterer:null},n.setClustererCallback=function(){n.state.markerClusterer!==null&&n.props.onLoad&&n.props.onLoad(n.state.markerClusterer)},n}return e.prototype.componentDidMount=function(){if(this.context){var n=new On(this.context,[],this.props.options);this.registeredEvents=W({updaterMap:J,eventMap:ye,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{markerClusterer:n}},this.setClustererCallback)}},e.prototype.componentDidUpdate=function(n){this.state.markerClusterer&&(Y(this.registeredEvents),this.registeredEvents=W({updaterMap:J,eventMap:ye,prevProps:n,nextProps:this.props,instance:this.state.markerClusterer}))},e.prototype.componentWillUnmount=function(){this.state.markerClusterer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),Y(this.registeredEvents),this.state.markerClusterer.setMap(null))},e.prototype.render=function(){return this.state.markerClusterer!==null?this.props.children(this.state.markerClusterer):null},e.contextType=Z,e})(o.PureComponent);function Ft(t){t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation()}var Un=(function(){function t(e){e===void 0&&(e={}),this.getCloseClickHandler=this.getCloseClickHandler.bind(this),this.closeClickHandler=this.closeClickHandler.bind(this),this.createInfoBoxDiv=this.createInfoBoxDiv.bind(this),this.addClickHandler=this.addClickHandler.bind(this),this.getCloseBoxImg=this.getCloseBoxImg.bind(this),this.getBoxWidths=this.getBoxWidths.bind(this),this.setBoxStyle=this.setBoxStyle.bind(this),this.setPosition=this.setPosition.bind(this),this.getPosition=this.getPosition.bind(this),this.setOptions=this.setOptions.bind(this),this.setContent=this.setContent.bind(this),this.setVisible=this.setVisible.bind(this),this.getContent=this.getContent.bind(this),this.getVisible=this.getVisible.bind(this),this.setZIndex=this.setZIndex.bind(this),this.getZIndex=this.getZIndex.bind(this),this.onRemove=this.onRemove.bind(this),this.panBox=this.panBox.bind(this),this.extend=this.extend.bind(this),this.close=this.close.bind(this),this.draw=this.draw.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.open=this.open.bind(this),this.extend(t,google.maps.OverlayView),this.content=e.content||"",this.disableAutoPan=e.disableAutoPan||!1,this.maxWidth=e.maxWidth||0,this.pixelOffset=e.pixelOffset||new google.maps.Size(0,0),this.position=e.position||new google.maps.LatLng(0,0),this.zIndex=e.zIndex||null,this.boxClass=e.boxClass||"infoBox",this.boxStyle=e.boxStyle||{},this.closeBoxMargin=e.closeBoxMargin||"2px",this.closeBoxURL=e.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",e.closeBoxURL===""&&(this.closeBoxURL=""),this.infoBoxClearance=e.infoBoxClearance||new google.maps.Size(1,1),typeof e.visible>"u"&&(typeof e.isHidden>"u"?e.visible=!0:e.visible=!e.isHidden),this.isHidden=!e.visible,this.alignBottom=e.alignBottom||!1,this.pane=e.pane||"floatPane",this.enableEventPropagation=e.enableEventPropagation||!1,this.div=null,this.closeListener=null,this.moveListener=null,this.mapListener=null,this.contextListener=null,this.eventListeners=null,this.fixedWidthSet=null}return t.prototype.createInfoBoxDiv=function(){var e=this,n=function(c){c.returnValue=!1,c.preventDefault&&c.preventDefault(),e.enableEventPropagation||Ft(c)};if(!this.div){this.div=document.createElement("div"),this.setBoxStyle(),typeof this.content=="string"?this.div.innerHTML=this.getCloseBoxImg()+this.content:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(this.content));var i=this.getPanes();if(i!==null&&i[this.pane].appendChild(this.div),this.addClickHandler(),this.div.style.width)this.fixedWidthSet=!0;else if(this.maxWidth!==0&&this.div.offsetWidth>this.maxWidth)this.div.style.width=this.maxWidth+"px",this.fixedWidthSet=!0;else{var s=this.getBoxWidths();this.div.style.width=this.div.offsetWidth-s.left-s.right+"px",this.fixedWidthSet=!1}if(this.panBox(this.disableAutoPan),!this.enableEventPropagation){this.eventListeners=[];for(var r=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"],a=0,u=r;a<u.length;a++){var l=u[a];this.eventListeners.push(google.maps.event.addListener(this.div,l,Ft))}this.eventListeners.push(google.maps.event.addListener(this.div,"mouseover",function(){e.div&&(e.div.style.cursor="default")}))}this.contextListener=google.maps.event.addListener(this.div,"contextmenu",n),google.maps.event.trigger(this,"domready")}},t.prototype.getCloseBoxImg=function(){var e="";return this.closeBoxURL!==""&&(e='<img alt=""',e+=' aria-hidden="true"',e+=" src='"+this.closeBoxURL+"'",e+=" align=right",e+=" style='",e+=" position: relative;",e+=" cursor: pointer;",e+=" margin: "+this.closeBoxMargin+";",e+="'>"),e},t.prototype.addClickHandler=function(){this.closeListener=this.div&&this.div.firstChild&&this.closeBoxURL!==""?google.maps.event.addListener(this.div.firstChild,"click",this.getCloseClickHandler()):null},t.prototype.closeClickHandler=function(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation(),google.maps.event.trigger(this,"closeclick"),this.close()},t.prototype.getCloseClickHandler=function(){return this.closeClickHandler},t.prototype.panBox=function(e){if(this.div&&!e){var n=this.getMap();if(n instanceof google.maps.Map){var i=0,s=0,r=n.getBounds();r&&!r.contains(this.position)&&n.setCenter(this.position);var a=n.getDiv(),u=a.offsetWidth,l=a.offsetHeight,c=this.pixelOffset.width,p=this.pixelOffset.height,d=this.div.offsetWidth,f=this.div.offsetHeight,g=this.infoBoxClearance.width,x=this.infoBoxClearance.height,h=this.getProjection(),L=h.fromLatLngToContainerPixel(this.position);L!==null&&(L.x<-c+g?i=L.x+c-g:L.x+d+c+g>u&&(i=L.x+d+c+g-u),this.alignBottom?L.y<-p+x+f?s=L.y+p-x-f:L.y+p+x>l&&(s=L.y+p+x-l):L.y<-p+x?s=L.y+p-x:L.y+f+p+x>l&&(s=L.y+f+p+x-l)),i===0&&s===0||n.panBy(i,s)}}},t.prototype.setBoxStyle=function(){if(this.div){this.div.className=this.boxClass,this.div.style.cssText="";var e=this.boxStyle;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(this.div.style[n]=e[n]);if(this.div.style.webkitTransform="translateZ(0)",typeof this.div.style.opacity<"u"&&this.div.style.opacity!==""){var i=parseFloat(this.div.style.opacity||"");this.div.style.msFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+i*100+')"',this.div.style.filter="alpha(opacity="+i*100+")"}this.div.style.position="absolute",this.div.style.visibility="hidden",this.zIndex!==null&&(this.div.style.zIndex=this.zIndex+""),this.div.style.overflow||(this.div.style.overflow="auto")}},t.prototype.getBoxWidths=function(){var e={top:0,bottom:0,left:0,right:0};if(!this.div)return e;if(document.defaultView){var n=this.div.ownerDocument,i=n&&n.defaultView?n.defaultView.getComputedStyle(this.div,""):null;i&&(e.top=parseInt(i.borderTopWidth||"",10)||0,e.bottom=parseInt(i.borderBottomWidth||"",10)||0,e.left=parseInt(i.borderLeftWidth||"",10)||0,e.right=parseInt(i.borderRightWidth||"",10)||0)}else if(document.documentElement.currentStyle){var s=this.div.currentStyle;s&&(e.top=parseInt(s.borderTopWidth||"",10)||0,e.bottom=parseInt(s.borderBottomWidth||"",10)||0,e.left=parseInt(s.borderLeftWidth||"",10)||0,e.right=parseInt(s.borderRightWidth||"",10)||0)}return e},t.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.div.parentNode.removeChild(this.div),this.div=null)},t.prototype.draw=function(){if(this.createInfoBoxDiv(),this.div){var e=this.getProjection(),n=e.fromLatLngToDivPixel(this.position);n!==null&&(this.div.style.left=n.x+this.pixelOffset.width+"px",this.alignBottom?this.div.style.bottom=-(n.y+this.pixelOffset.height)+"px":this.div.style.top=n.y+this.pixelOffset.height+"px"),this.isHidden?this.div.style.visibility="hidden":this.div.style.visibility="visible"}},t.prototype.setOptions=function(e){e===void 0&&(e={}),typeof e.boxClass<"u"&&(this.boxClass=e.boxClass,this.setBoxStyle()),typeof e.boxStyle<"u"&&(this.boxStyle=e.boxStyle,this.setBoxStyle()),typeof e.content<"u"&&this.setContent(e.content),typeof e.disableAutoPan<"u"&&(this.disableAutoPan=e.disableAutoPan),typeof e.maxWidth<"u"&&(this.maxWidth=e.maxWidth),typeof e.pixelOffset<"u"&&(this.pixelOffset=e.pixelOffset),typeof e.alignBottom<"u"&&(this.alignBottom=e.alignBottom),typeof e.position<"u"&&this.setPosition(e.position),typeof e.zIndex<"u"&&this.setZIndex(e.zIndex),typeof e.closeBoxMargin<"u"&&(this.closeBoxMargin=e.closeBoxMargin),typeof e.closeBoxURL<"u"&&(this.closeBoxURL=e.closeBoxURL),typeof e.infoBoxClearance<"u"&&(this.infoBoxClearance=e.infoBoxClearance),typeof e.isHidden<"u"&&(this.isHidden=e.isHidden),typeof e.visible<"u"&&(this.isHidden=!e.visible),typeof e.enableEventPropagation<"u"&&(this.enableEventPropagation=e.enableEventPropagation),this.div&&this.draw()},t.prototype.setContent=function(e){this.content=e,this.div&&(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.fixedWidthSet||(this.div.style.width=""),typeof e=="string"?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e)),this.fixedWidthSet||(this.div.style.width=this.div.offsetWidth+"px",typeof e=="string"?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e))),this.addClickHandler()),google.maps.event.trigger(this,"content_changed")},t.prototype.setPosition=function(e){this.position=e,this.div&&this.draw(),google.maps.event.trigger(this,"position_changed")},t.prototype.setVisible=function(e){this.isHidden=!e,this.div&&(this.div.style.visibility=this.isHidden?"hidden":"visible")},t.prototype.setZIndex=function(e){this.zIndex=e,this.div&&(this.div.style.zIndex=e+""),google.maps.event.trigger(this,"zindex_changed")},t.prototype.getContent=function(){return this.content},t.prototype.getPosition=function(){return this.position},t.prototype.getZIndex=function(){return this.zIndex},t.prototype.getVisible=function(){var e=this.getMap();return typeof e>"u"||e===null?!1:!this.isHidden},t.prototype.show=function(){this.isHidden=!1,this.div&&(this.div.style.visibility="visible")},t.prototype.hide=function(){this.isHidden=!0,this.div&&(this.div.style.visibility="hidden")},t.prototype.open=function(e,n){var i=this;n&&(this.position=n.getPosition(),this.moveListener=google.maps.event.addListener(n,"position_changed",function(){var s=n.getPosition();i.setPosition(s)}),this.mapListener=google.maps.event.addListener(n,"map_changed",function(){i.setMap(n.map)})),this.setMap(e),this.div&&this.panBox()},t.prototype.close=function(){if(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.eventListeners){for(var e=0,n=this.eventListeners;e<n.length;e++){var i=n[e];google.maps.event.removeListener(i)}this.eventListeners=null}this.moveListener&&(google.maps.event.removeListener(this.moveListener),this.moveListener=null),this.mapListener&&(google.maps.event.removeListener(this.mapListener),this.mapListener=null),this.contextListener&&(google.maps.event.removeListener(this.contextListener),this.contextListener=null),this.setMap(null)},t.prototype.extend=function(e,n){return(function(s){for(var r in s.prototype)Object.prototype.hasOwnProperty.call(this,r)||(this.prototype[r]=s.prototype[r]);return this}).apply(e,[n])},t})(),Ht={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},Jt={options:function(t,e){t.setOptions(e)},position:function(t,e){e instanceof google.maps.LatLng?t.setPosition(e):t.setPosition(new google.maps.LatLng(e.lat,e.lng))},visible:function(t,e){t.setVisible(e)},zIndex:function(t,e){t.setZIndex(e)}},Ei={};function xi(t){var e=t.children,n=t.anchor,i=t.options,s=t.position,r=t.zIndex,a=t.onCloseClick,u=t.onDomReady,l=t.onContentChanged,c=t.onPositionChanged,p=t.onZindexChanged,d=t.onLoad,f=t.onUnmount,g=o.useContext(Z),x=o.useState(null),h=x[0],L=x[1],b=o.useState(null),S=b[0],v=b[1],k=o.use
22State(null),y=k[0],m=k[1],E=o.useState(null),C=E[0],P=E[1],I=o.useState(null),z=I[0],O=I[1],G=o.useState(null),T=G[0],U=G[1],R=o.useRef(null);return o.useEffect(function(){g&&h!==null&&(h.close(),n?h.open(g,n):h.getPosition()&&h.open(g))},[g,h,n]),o.useEffect(function(){i&&h!==null&&h.setOptions(i)},[h,i]),o.useEffect(function(){if(s&&h!==null){var D=s instanceof google.maps.LatLng?s:new google.maps.LatLng(s.lat,s.lng);h.setPosition(D)}},[s]),o.useEffect(function(){typeof r=="number"&&h!==null&&h.setZIndex(r)},[r]),o.useEffect(function(){h&&a&&(S!==null&&google.maps.event.removeListener(S),v(google.maps.event.addListener(h,"closeclick",a)))},[a]),o.useEffect(function(){h&&u&&(y!==null&&google.maps.event.removeListener(y),m(google.maps.event.addListener(h,"domready",u)))},[u]),o.useEffect(function(){h&&l&&(C!==null&&google.maps.event.removeListener(C),P(google.maps.event.addListener(h,"content_changed",l)))},[l]),o.useEffect(function(){h&&c&&(z!==null&&google.maps.event.removeListener(z),O(google.maps.event.addListener(h,"position_changed",c)))},[c]),o.useEffect(function(){h&&p&&(T!==null&&google.maps.event.removeListener(T),U(google.maps.event.addListener(h,"zindex_changed",p)))},[p]),o.useEffect(function(){if(g){var D=i||Ei,F=D.position,X=nt(D,["position"]),H=void 0;F&&!(F instanceof google.maps.LatLng)&&(H=new google.maps.LatLng(F.lat,F.lng));var B=new Un(w(w({},X),H?{position:H}:{}));R.current=document.createElement("div"),L(B),a&&v(google.maps.event.addListener(B,"closeclick",a)),u&&m(google.maps.event.addListener(B,"domready",u)),l&&P(google.maps.event.addListener(B,"content_changed",l)),c&&O(google.maps.event.addListener(B,"position_changed",c)),p&&U(google.maps.event.addListener(B,"zindex_changed",p)),B.setContent(R.current),n?B.open(g,n):B.getPosition()?B.open(g):he(!1,"You must provide either an anchor or a position prop for <InfoBox>."),d&&d(B)}return function(){h!==null&&(S&&google.maps.event.removeListener(S),C&&google.maps.event.removeListener(C),y&&google.maps.event.removeListener(y),z&&google.maps.event.removeListener(z),T&&google.maps.event.removeListener(T),f&&f(h),h.close())}},[]),R.current?De.createPortal(o.Children.only(e),R.current):null}o.memo(xi);(function(t){q(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.containerElement=null,n.state={infoBox:null},n.open=function(i,s){s?n.context!==null&&i.open(n.context,s):i.getPosition()?n.context!==null&&i.open(n.context):he(!1,"You must provide either an anchor or a position prop for <InfoBox>.")},n.setInfoBoxCallback=function(){n.state.infoBox!==null&&n.containerElement!==null&&(n.state.infoBox.setContent(n.containerElement),n.open(n.state.infoBox,n.props.anchor),n.props.onLoad&&n.props.onLoad(n.state.infoBox))},n}return e.prototype.componentDidMount=function(){var n=this.props.options||{},i=n.position,s=nt(n,["position"]),r;i&&!(i instanceof google.maps.LatLng)&&(r=new google.maps.LatLng(i.lat,i.lng));var a=new Un(w(w({},s),r?{position:r}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=W({updaterMap:Jt,eventMap:Ht,prevProps:{},nextProps:this.props,instance:a}),this.setState({infoBox:a},this.setInfoBoxCallback)},e.prototype.componentDidUpdate=function(n){var i=this.state.infoBox;i!==null&&(Y(this.registeredEvents),this.registeredEvents=W({updaterMap:Jt,eventMap:Ht,prevProps:n,nextProps:this.props,instance:i}))},e.prototype.componentWillUnmount=function(){var n=this.props.onUnmount,i=this.state.infoBox;i!==null&&(n&&n(i),Y(this.registeredEvents),i.close())},e.prototype.render=function(){return this.containerElement?De.createPortal(o.Children.only(this.props.children),this.containerElement):null},e.contextType=Z,e})(o.PureComponent);var bi=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var i,s,r;if(Array.isArray(e)){if(i=e.length,i!=n.length)return!1;for(s=i;s--!==0;)if(!t(e[s],n[s]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(r=Object.keys(e),i=r.length,i!==Object.keys(n).length)return!1;for(s=i;s--!==0;)if(!Object.prototype.hasOwnProperty.call(n,r[s]))return!1;for(s=i;s--!==0;){var a=r[s];if(!t(e[a],n[a]))return!1}return!0}return e!==e&&n!==n},Xt=Nn(bi);const $t=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array
22],Xe=1,je=8;class it{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[n,i]=new Uint8Array(e,0,2);if(n!==219)throw new Error("Data does not appear to be in a KDBush format.");const s=i>>4;if(s!==Xe)throw new Error(`Got v${s} data when expected v${Xe}.`);const r=$t[i&15];if(!r)throw new Error("Unrecognized array type.");const[a]=new Uint16Array(e,2,1),[u]=new Uint32Array(e,4,1);return new it(u,a,r,e)}constructor(e,n=64,i=Float64Array,s){if(isNaN(e)||e<0)throw new Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+n,2),65535),this.ArrayType=i,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const r=$t.indexOf(this.ArrayType),a=e*2*this.ArrayType.BYTES_PER_ELEMENT,u=e*this.IndexArrayType.BYTES_PER_ELEMENT,l=(8-u%8)%8;if(r<0)throw new Error(`Unexpected typed array class: ${i}.`);s&&s instanceof ArrayBuffer?(this.data=s,this.ids=new this.IndexArrayType(this.data,je,e),this.coords=new this.ArrayType(this.data,je+u+l,e*2),this._pos=e*2,this._finished=!0):(this.data=new ArrayBuffer(je+a+u+l),this.ids=new this.IndexArrayType(this.data,je,e),this.coords=new this.ArrayType(this.data,je+u+l,e*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(Xe<<4)+r]),new Uint16Array(this.data,2,1)[0]=n,new Uint32Array(this.data,4,1)[0]=e)}add(e,n){const i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=e,this.coords[this._pos++]=n,i}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return et(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,n,i,s){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:r,coords:a,nodeSize:u}=this,l=[0,r.length-1,0],c=[];for(;l.length;){const p=l.pop()||0,d=l.pop()||0,f=l.pop()||0;if(d-f<=u){for(let L=f;L<=d;L++){const b=a[2*L],S=a[2*L+1];b>=e&&b<=i&&S>=n&&S<=s&&c.push(r[L])}continue}const g=f+d>>1,x=a[2*g],h=a[2*g+1];x>=e&&x<=i&&h>=n&&h<=s&&c.push(r[g]),(p===0?e<=x:n<=h)&&(l.push(f),l.push(g-1),l.push(1-p)),(p===0?i>=x:s>=h)&&(l.push(g+1),l.push(d),l.push(1-p))}return c}within(e,n,i){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:s,coords:r,nodeSize:a}=this,u=[0,s.length-1,0],l=[],c=i*i;for(;u.length;){const p=u.pop()||0,d=u.pop()||0,f=u.pop()||0;if(d-f<=a){for(let L=f;L<=d;L++)_t(r[2*L],r[2*L+1],e,n)<=c&&l.push(s[L]);continue}const g=f+d>>1,x=r[2*g],h=r[2*g+1];_t(x,h,e,n)<=c&&l.push(s[g]),(p===0?e-i<=x:n-i<=h)&&(u.push(f),u.push(g-1),u.push(1-p)),(p===0?e+i>=x:n+i>=h)&&(u.push(g+1),u.push(d),u.push(1-p))}return l}}function et(t,e,n,i,s,r){if(s-i<=n)return;const a=i+s>>1;Rn(t,e,a,i,s,r),et(t,e,n,i,a-1,1-r),et(t,e,n,a+1,s,1-r)}function Rn(t,e,n,i,s,r){for(;s>i;){if(s-i>600){const c=s-i+1,p=n-i+1,d=Math.log(c),f=.5*Math.exp(2*d/3),g=.5*Math.sqrt(d*f*(c-f)/c)*(p-c/2<0?-1:1),x=Math.max(i,Math.floor(n-p*f/c+g)),h=Math.min(s,Math.floor(n+(c-p)*f/c+g));Rn(t,e,n,x,h,r)}const a=e[2*n+r];let u=i,l=s;for(ze(t,e,i,n),e[2*s+r]>a&&ze(t,e,i,s);u<l;){for(ze(t,e,u,l),u++,l--;e[2*u+r]<a;)u++;for(;e[2*l+r]>a;)l--}e[2*i+r]===a?ze(t,e,i,l):(l++,ze(t,e,l,s)),l<=n&&(i=l+1),n<=l&&(s=l-1)}}function ze(t,e,n,i){$e(t,n,i),$e(e,2*n,2*i),$e(e,2*n+1,2*i+1)}function $e(t,e,n){const i=t[e];t[e]=t[n],t[n]=i}function _t(t,e,n,i){const s=t-n,r=e-i;return s*s+r*r}const Di={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},Kt=Math.fround||(t=>(e=>(t[0]=+e,t[0])))(new Float32Array(1)),xe=2,Ee=3,_e=4,Ie=5,Bn=6;class Si{constructor(e){this.options=Object.assign(Object.create(Di),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){const{log:n,minZoom:i,maxZoom:s}=this.options;n&&console.time("total time");const r=`prepare ${e.length} points`;n&&console.time(r),this.points=e;const a=[];for(let l=0;l<e.length;l++){const c=e[l];if(!c.geometry)continue;const[p,d]=c.geometry.coordinates,f=Kt(Fe(p)),g=Kt(He(d));a.push(f,g,1/0,l,-1,1),this.options.reduce&&a.push(0)}let u=this.trees[s+1]=this._createTree(a);n&&console.timeEnd(r);for(let l=s;l>=i;l--){const c=+Date.now();u=this.trees[l]=this._createTree(this._cluster(u,l)),n&&console.log("z%d: %d clusters in %dms",l,u.numItems,+Date.now()-c)}return n&&console.timeEnd("total time"),this}getClusters(e,n){let i=((e[0]+180)%360+360)%360-180;const s=Math.max(-90,Math.min(90,e[1]));let r=e[2]===180?180:((e[2]+180)%360+360)%360-180;const a=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)i=-180,r=180;else if(i>r){const d=this.getClusters([i,s,180,a],n),f=this.getClusters([-180,s,r,a],n);return d.concat(f)}const u=this.trees[this._limitZoom(n)],l=u.range(Fe(i),He(a),Fe(r),He(s)),c=u.data,p=[];for(const d of l){const f=this.stride*d;p.push(c[f+Ie]>1?qt(c,f,this.clusterProps):this.points[c[f+Ee]])}return p}getChildren(e){const n=this._getOriginId(e),i=this._getOriginZoom(e),s="No cluster with the specified id.",r=this.trees[i];if(!r)throw new Error(s);const a=r.data;if(n*this.stride>=a.length)throw new Error(s);const u=this.options.radius/(this.options.extent*Math.pow(2,i-1)),l=a[n*this.stride],c=a[n*this.stride+1],p=r.within(l,c,u),d=[];for(const f of p){const g=f*this.stride;a[g+_e]===e&&d.push(a[g+Ie]>1?qt(a,g,this.clusterProps):this.points[a[g+Ee]])}if(d.length===0)throw new Error(s);return d}getLeaves(e,n,i){n=n||10,i=i||0;const s=[];return this._appendLeaves(s,e,n,i,0),s}getTile(e,n,i){const s=this.trees[this._limitZoom(e)],r=Math.pow(2,e),{extent:a,radius:u}=this.options,l=u/a,c=(i-l)/r,p=(i+1+l)/r,d={features:[]};return this._addTileFeatures(s.range((n-l)/r,c,(n+1+l)/r,p),s.data,n,i,r,d),n===0&&this._addTileFeatures(s.range(1-l/r,c,1,p),s.data,r,i,r,d),n===r-1&&this._addTileFeatures(s.range(0,c,l/r,p),s.data,-1,i,r,d),d.features.length?d:null}getClusterExpansionZoom(e){let n=this._getOriginZoom(e)-1;for(;n<=this.options.maxZoom;){const i=this.getChildren(e);if(n++,i.length!==1)break;e=i[0].properties.cluster_id}return n}_appendLeaves(e,n,i,s,r){const a=this.getChildren(n);for(const u of a){const l=u.properties;if(l&&l.cluster?r+l.point_count<=s?r+=l.point_count:r=this._appendLeaves(e,l.cluster_id,i,s,r):r<s?r++:e.push(u),e.length===i)break}return r}_createTree(e){const n=new it(e.length/this.stride|0,this.options.nodeSize,Float32Array);for(let i=0;i<e.length;i+=this.stride)n.add(e[i],e[i+1]);return n.finish(),n.data=e,n}_addTileFeatures(e,n,i,s,r,a){for(const u of e){const l=u*this.stride,c=n[l+Ie]>1;let p,d,f;if(c)p=Zn(n,l,this.clusterProps),d=n[l],f=n[l+1];else{const h=this.points[n[l+Ee]];p=h.properties;const[L,b]=h.geometry.coordinates;d=Fe(L),f=He(b)}const g={type:1,geometry:[[Math.round(this.options.extent*(d*r-i)),Math.round(this.options.extent*(f*r-s))]],tags:p};let x;c||this.options.generateId?x=n[l+Ee]:x=this.points[n[l+Ee]].id,x!==void 0&&(g.id=x),a.features.push(g)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,n){const{radius:i,extent:s,reduce:r,minPoints:a}=this.options,u=i/(s*Math.pow(2,n)),l=e.data,c=[],p=this.stride;for(let d=0;d<l.length;d+=p){if(l[d+xe]<=n)continue;l[d+xe]=n;const f=l[d],g=l[d+1],x=e.within(l[d],l[d+1],u),h=l[d+Ie];let L=h;for(const b of x){const S=b*p;l[S+xe]>n&&(L+=l[S+Ie])}if(L>h&&L>=a){let b=f*h,S=g*h,v,k=-1;const y=((d/p|0)<<5)+(n+1)+this.points.length;for(const m of x){const E=m*p;if(l[E+xe]<=n)continue;l[E+xe]=n;const C=l[E+Ie];b+=l[E]*C,S+=l[E+1]*C,l[E+_e]=y,r&&(v||(v=this._map(l,d,!0),k=this.clusterProps.length,this.clusterProps.push(v)),r(v,this._map(l,E)))}l[d+_e]=y,c.push(b/L,S/L,1/0,y,-1,L),r&&c.push(k)}else{for(let b=0;b<p;b++)c.push(l[d+b]);if(L>1)for(const b of x){const S=b*p;if(!(l[S+xe]<=n)){l[S+xe]=n;for(let v=0;v<p;v++)c.push(l[S+v])}}}}return c}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,n,i){if(e[n+Ie]>1){const a=this.clusterProps[e[n+Bn]];return i?Object.assign({},a):a}const s=this.points[e[n+Ee]].properties,r=this.options.map(s);return i&&r===s?Object.assign({},r):r}}function qt(t,e,n){return{type:"Feature",id:t[e+Ee],properties:Zn(t,e,n),geometry:{type:"Point",coordinates:[wi(t[e]),ki(t[e+1])]}}}function Zn(t,e,n){const i=t[e+Ie],s=i>=1e4?`${Math.round(i/1e3)}
22k`:i>=1e3?`${Math.round(i/100)/10}k`:i,r=t[e+Bn],a=r===-1?{}:Object.assign({},n[r]);return Object.assign(a,{cluster:!0,cluster_id:t[e+Ee],point_count:i,point_count_abbreviated:s})}function Fe(t){return t/360+.5}function He(t){const e=Math.sin(t*Math.PI/180),n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n<0?0:n>1?1:n}function wi(t){return(t-.5)*360}function ki(t){const e=(180-t*360)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}/*! *****************************************************************************
23Copyright (c) Microsoft Corporation.
24
25Permission to use, copy, modify, and/or distribute this software for any
26purpose with or without fee is hereby granted.
27
28THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
29REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
30AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
31INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
32LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
33OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
34PERFORMANCE OF THIS SOFTWARE.
35***************************************************************************** */function Ni(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(t);s<i.length;s++)e.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(t,i[s])&&(n[i[s]]=t[i[s]]);return n}class Me{static isAdvancedMarkerAvailable(e){return google.maps.marker&&e.getMapCapabilities().isAdvancedMarkersAvailable===!0}static isAdvancedMarker(e){return google.maps.marker&&e instanceof google.maps.marker.AdvancedMarkerElement}static setMap(e,n){this.isAdvancedMarker(e)?e.map=n:e.setMap(n)}static getPosition(e){if(this.isAdvancedMarker(e)){if(e.position){if(e.position instanceof google.maps.LatLng)return e.position;if(e.position.lat&&e.position.lng)return new google.maps.LatLng(e.position.lat,e.position.lng)}return new google.maps.LatLng(null)}return e.getPosition()}static getVisible(e){return this.isAdvancedMarker(e)?!0:e.getVisible()}}class tt{constructor({markers:e,position:n}){this.markers=e,n&&(n instanceof google.maps.LatLng?this._position=n:this._position=new google.maps.LatLng(n))}get bounds(){if(this.markers.length===0&&!this._position)return;const e=new google.maps.LatLngBounds(this._position,this._position);for(const n of this.markers)e.extend(Me.getPosition(n));return e}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(e=>Me.getVisible(e)).length}push(e){this.markers.push(e)}delete(){this.marker&&(Me.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}class ji{constructor({maxZoom:e=16}){this.maxZoom=e}noop({markers:e}){return zi(e)}}const zi=t=>t.map(n=>new tt({position:Me.getPosition(n),markers:[n]}));class Ti extends ji{constructor(e){var{maxZoom:n,radius:i=60}=e,s=Ni(e,["maxZoom","radius"]);super({maxZoom:n}),this.state={zoom:-1},this.superCluster=new Si(Object.assign({maxZoom:this.maxZoom,radius:i},s))}calculate(e){let n=!1;const i={zoom:e.map.getZoom()};if(!Xt(e.markers,this.markers)){n=!0,this.markers=[...e.markers];const s=this.markers.map(r=>{const a=Me.getPosition(r);return{type:"Feature",geometry:{type:"Point",coordinates:[a.lng(),a.lat()]},properties:{marker:r}}});this.superCluster.load(s)}return n||(this.state.zoom<=this.maxZoom||i.zoom<=this.maxZoom)&&(n=!Xt(this.state,i)),this.state=i,n&&(this.cluster
35s=this.cluster(e)),{clusters:this.clusters,changed:n}}cluster({map:e}){return this.superCluster.getClusters([-180,-90,180,90],Math.round(e.getZoom())).map(n=>this.transformCluster(n))}transformCluster({geometry:{coordinates:[e,n]},properties:i}){if(i.cluster)return new tt({markers:this.superCluster.getLeaves(i.cluster_id,1/0).map(r=>r.properties.marker),position:{lat:n,lng:e}});const s=i.marker;return new tt({markers:[s],position:Me.getPosition(s)})}}class Pi{constructor(e,n){this.markers={sum:e.length};const i=n.map(r=>r.count),s=i.reduce((r,a)=>r+a,0);this.clusters={count:n.length,markers:{mean:s/n.length,sum:s,min:Math.min(...i),max:Math.max(...i)}}}}class Ai{render({count:e,position:n},i,s){const a=`<svg fill="${e>Math.max(10,i.clusters.markers.mean)?"#ff0000":"#0000ff"}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">
36<circle cx="120" cy="120" opacity=".6" r="70" />
37<circle cx="120" cy="120" opacity=".3" r="90" />
38<circle cx="120" cy="120" opacity=".2" r="110" />
39<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">${e}</text>
40</svg>`,u=`Cluster of ${e} markers`,l=Number(google.maps.Marker.MAX_ZINDEX)+e;if(Me.isAdvancedMarkerAvailable(s)){const d=new DOMParser().parseFromString(a,"image/svg+xml").documentElement;d.setAttribute("transform","translate(0 25)");const f={map:s,position:n,zIndex:l,title:u,content:d};return new google.maps.marker.AdvancedMarkerElement(f)}const c={position:n,zIndex:l,title:u,icon:{url:`data:image/svg+xml;base64,${btoa(a)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(c)}}function Oi(t,e){for(let n in e.prototype)t.prototype[n]=e.prototype[n]}class ot{constructor(){Oi(ot,google.maps.OverlayView)}}var Te;(function(t){t.CLUSTERING_BEGIN="clusteringbegin",t.CLUSTERING_END="clusteringend",t.CLUSTER_CLICK="click"})(Te||(Te={}));const Ui=(t,e,n)=>{n.fitBounds(e.bounds)};class Ri extends ot{constructor({map:e,markers:n=[],algorithmOptions:i={},algorithm:s=new Ti(i),renderer:r=new Ai,onClusterClick:a=Ui}){super(),this.markers=[...n],this.clusters=[],this.algorithm=s,this.renderer=r,this.onClusterClick=a,e&&this.setMap(e)}addMarker(e,n){this.markers.includes(e)||(this.markers.push(e),n||this.render())}addMarkers(e,n){e.forEach(i=>{this.addMarker(i,!0)}),n||this.render()}removeMarker(e,n){const i=this.markers.indexOf(e);return i===-1?!1:(Me.setMap(e,null),this.markers.splice(i,1),n||this.render(),!0)}removeMarkers(e,n){let i=!1;return e.forEach(s=>{i=this.removeMarker(s,!0)||i}),i&&!n&&this.render(),i}clearMarkers(e){this.markers.length=0,e||this.render()}render(){const e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,Te.CLUSTERING_BEGIN,this);const{clusters:n,changed:i}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(i||i==null){const s=new Set;for(const a of n)a.markers.length==1&&s.add(a.markers[0]);const r=[];for(const a of this.clusters)a.marker!=null&&(a.markers.length==1?s.has(a.marker)||Me.setMap(a.marker,null):r.push(a.marker));this.clusters=n,this.renderClusters(),requestAnimationFrame(()=>r.forEach(a=>Me.setMap(a,null)))}google.maps.event.trigger(this,Te.CLUSTERING_END,this)}}onAdd(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}onRemove(){google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach(e=>Me.setMap(e,null)),this.clusters.forEach(e=>e.delete()),this.clusters=[]}renderClusters(){const e=new Pi(this.markers,this.clusters),n=this.getMap();this.clusters.forEach(i=>{i.markers.length===1?i.marker=i.markers[0]:(i.marker=this.renderer.render(i,e,n),i.markers.forEach(s=>Me.setMap(s,null)),this.onClusterClick&&i.marker.addListener("click",s=>{google.maps.event.trigger(this,Te.CLUSTER_CLICK,i),this.onClusterClick(s,i,n)})),Me.setMap(i.marker,n)})}}function Bi(t){var e=$n(),n=o.useState(null),i=n[0],s=n[1];return o.useEffect(function(){if(e&&i===null){var r=new Ri(w(w({},t),{map:e}));s(r)}},[e]),i}
40function Zi(t){var e=t.children,n=t.options,i=Bi(n);return i!==null?e(i):null}o.memo(Zi);var en={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},tn={options:function(t,e){t.setOptions(e)},position:function(t,e){t.setPosition(e)},zIndex:function(t,e){t.setZIndex(e)}};function Vi(t){var e=t.children,n=t.anchor,i=t.options,s=t.position,r=t.zIndex,a=t.onCloseClick,u=t.onDomReady,l=t.onContentChanged,c=t.onPositionChanged,p=t.onZindexChanged,d=t.onLoad,f=t.onUnmount,g=o.useContext(Z),x=o.useState(null),h=x[0],L=x[1],b=o.useState(null),S=b[0],v=b[1],k=o.useState(null),y=k[0],m=k[1],E=o.useState(null),C=E[0],P=E[1],I=o.useState(null),z=I[0],O=I[1],G=o.useState(null),T=G[0],U=G[1],R=o.useRef(null);return o.useEffect(function(){h!==null&&(h.close(),n?h.open(g,n):h.getPosition()&&h.open(g))},[g,h,n]),o.useEffect(function(){i&&h!==null&&h.setOptions(i)},[h,i]),o.useEffect(function(){s&&h!==null&&h.setPosition(s)},[s]),o.useEffect(function(){typeof r=="number"&&h!==null&&h.setZIndex(r)},[r]),o.useEffect(function(){h&&a&&(S!==null&&google.maps.event.removeListener(S),v(google.maps.event.addListener(h,"closeclick",a)))},[a]),o.useEffect(function(){h&&u&&(y!==null&&google.maps.event.removeListener(y),m(google.maps.event.addListener(h,"domready",u)))},[u]),o.useEffect(function(){h&&l&&(C!==null&&google.maps.event.removeListener(C),P(google.maps.event.addListener(h,"content_changed",l)))},[l]),o.useEffect(function(){h&&c&&(z!==null&&google.maps.event.removeListener(z),O(google.maps.event.addListener(h,"position_changed",c)))},[c]),o.useEffect(function(){h&&p&&(T!==null&&google.maps.event.removeListener(T),U(google.maps.event.addListener(h,"zindex_changed",p)))},[p]),o.useEffect(function(){var D=new google.maps.InfoWindow(w({},i||{}));return L(D),R.current=document.createElement("div"),a&&v(google.maps.event.addListener(D,"closeclick",a)),u&&m(google.maps.event.addListener(D,"domready",u)),l&&P(google.maps.event.addListener(D,"content_changed",l)),c&&O(google.maps.event.addListener(D,"position_changed",c)),p&&U(google.maps.event.addListener(D,"zindex_changed",p)),D.setContent(R.current),s&&D.setPosition(s),r&&D.setZIndex(r),n?D.open(g,n):D.getPosition()?D.open(g):he(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>."),d&&d(D),function(){S&&google.maps.event.removeListener(S),C&&google.maps.event.removeListener(C),y&&google.maps.event.removeListener(y),z&&google.maps.event.removeListener(z),T&&google.maps.event.removeListener(T),f&&f(D),D.close()}},[]),R.current?De.createPortal(o.Children.only(e),R.current):null}o.memo(Vi);var Wi=(function(t){q(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.containerElement=null,n.state={infoWindow:null},n.open=function(i,s){s?i.open(n.context,s):i.getPosition()?i.open(n.context):he(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.")},n.setInfoWindowCallback=function(){n.state.infoWindow!==null&&n.containerElement!==null&&(n.state.infoWindow.setContent(n.containerElement),n.open(n.state.infoWindow,n.props.anchor),n.props.onLoad&&n.props.onLoad(n.state.infoWindow))},n}return e.prototype.componentDidMount=function(){var n=new google.maps.InfoWindow(w({},this.props.options||{}));this.containerElement=document.createElement("div"),this.registeredEvents=W({updaterMap:tn,eventMap:en,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{infoWindow:n}},this.setInfoWindowCallback)},e.prototype.componentDidUpdate=function(n){this.state.infoWindow!==null&&(Y(this.registeredEvents),this.registeredEvents=W({updaterMap:tn,eventMap:en,prevProps:n,nextProps:this.props,instance:this.state.infoWindow}))},e.prototype.componentWillUnmount=function(){this.state.infoWindow!==null&&(Y(this.registeredEvents),this.props.onUnmount&&this.props.onUnmount(this.state.infoWindow),this.state.infoWindow.close())},e.prototype.render=function(){return this.containerElement?De.createPortal(o.Children.only(this.props.children),this.containerElement):null},e.contextType=Z,e}
40)(o.PureComponent),nn={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},on={draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},path:function(t,e){t.setPath(e)},visible:function(t,e){t.setVisible(e)}},Gi={};function Qi(t){var e=t.options,n=t.draggable,i=t.editable,s=t.visible,r=t.path,a=t.onDblClick,u=t.onDragEnd,l=t.onDragStart,c=t.onMouseDown,p=t.onMouseMove,d=t.onMouseOut,f=t.onMouseOver,g=t.onMouseUp,x=t.onRightClick,h=t.onClick,L=t.onDrag,b=t.onLoad,S=t.onUnmount,v=o.useContext(Z),k=o.useState(null),y=k[0],m=k[1],E=o.useState(null),C=E[0],P=E[1],I=o.useState(null),z=I[0],O=I[1],G=o.useState(null),T=G[0],U=G[1],R=o.useState(null),D=R[0],F=R[1],X=o.useState(null),H=X[0],B=X[1],ne=o.useState(null),K=ne[0],$=ne[1],ie=o.useState(null),M=ie[0],ee=ie[1],re=o.useState(null),N=re[0],ae=re[1],de=o.useState(null),oe=de[0],le=de[1],ge=o.useState(null),se=ge[0],ue=ge[1],fe=o.useState(null),pe=fe[0],ce=fe[1];return o.useEffect(function(){y!==null&&y.setMap(v)},[v]),o.useEffect(function(){typeof e<"u"&&y!==null&&y.setOptions(e)},[y,e]),o.useEffect(function(){typeof n<"u"&&y!==null&&y.setDraggable(n)},[y,n]),o.useEffect(function(){typeof i<"u"&&y!==null&&y.setEditable(i)},[y,i]),o.useEffect(function(){typeof s<"u"&&y!==null&&y.setVisible(s)},[y,s]),o.useEffect(function(){typeof r<"u"&&y!==null&&y.setPath(r)},[y,r]),o.useEffect(function(){y&&a&&(C!==null&&google.maps.event.removeListener(C),P(google.maps.event.addListener(y,"dblclick",a)))},[a]),o.useEffect(function(){y&&u&&(z!==null&&google.maps.event.removeListener(z),O(google.maps.event.addListener(y,"dragend",u)))},[u]),o.useEffect(function(){y&&l&&(T!==null&&google.maps.event.removeListener(T),U(google.maps.event.addListener(y,"dragstart",l)))},[l]),o.useEffect(function(){y&&c&&(D!==null&&google.maps.event.removeListener(D),F(google.maps.event.addListener(y,"mousedown",c)))},[c]),o.useEffect(function(){y&&p&&(H!==null&&google.maps.event.removeListener(H),B(google.maps.event.addListener(y,"mousemove",p)))},[p]),o.useEffect(function(){y&&d&&(K!==null&&google.maps.event.removeListener(K),$(google.maps.event.addListener(y,"mouseout",d)))},[d]),o.useEffect(function(){y&&f&&(M!==null&&google.maps.event.removeListener(M),ee(google.maps.event.addListener(y,"mouseover",f)))},[f]),o.useEffect(function(){y&&g&&(N!==null&&google.maps.event.removeListener(N),ae(google.maps.event.addListener(y,"mouseup",g)))},[g]),o.useEffect(function(){y&&x&&(oe!==null&&google.maps.event.removeListener(oe),le(google.maps.event.addListener(y,"rightclick",x)))},[x]),o.useEffect(function(){y&&h&&(se!==null&&google.maps.event.removeListener(se),ue(google.maps.event.addListener(y,"click",h)))},[h]),o.useEffect(function(){y&&L&&(pe!==null&&google.maps.event.removeListener(pe),ce(google.maps.event.addListener(y,"drag",L)))},[L]),o.useEffect(function(){var Q=new google.maps.Polyline(w(w({},e||Gi),{map:v}));return r&&Q.setPath(r),typeof s<"u"&&Q.setVisible(s),typeof i<"u"&&Q.setEditable(i),typeof n<"u"&&Q.setDraggable(n),a&&P(google.maps.event.addListener(Q,"dblclick",a)),u&&O(google.maps.event.addListener(Q,"dragend",u)),l&&U(google.maps.event.addListener(Q,"dragstart",l)),c&&F(google.maps.event.addListener(Q,"mousedown",c)),p&&B(google.maps.event.addListener(Q,"mousemove",p)),d&&$(google.maps.event.addListener(Q,"mouseout",d)),f&&ee(google.maps.event.addListener(Q,"mouseover",f)),g&&ae(google.maps.event.addListener(Q,"mouseup",g)),x&&le(google.maps.event.addListener(Q,"rightclick",x)),h&&ue(google.maps.event.addListener(Q,"click",h)),L&&ce(google.maps.event.addListener(Q,"drag",L)),m(Q),b&&b(Q),function(){C!==null&&google.maps.event.removeListener(C),z!==null&&google.maps.event.removeListener(z),T!==null&&google.maps.event.removeListener(T),D!==null&&google.maps.event.removeListener(D),H!==null&&google.maps.event.removeListener(H),K!==null&&google.maps.event.removeListener(K),M!==null&&google.maps.event.removeListener(M),N!==null&&google.maps.event.removeListener(N),oe!==null&&google.maps.event.removeListener(oe),se!==null&&google.maps.event.removeListener(se),S&&S(Q),Q.setMap(null)}},[]),null}o.memo(Qi);(function(t){q(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={polyline:null},n.setPolylineCallback=function(){n.state.polyline!==null&&n.props.onLoad&&n.props.onLoad(n.state.polyline)},n}return e.prototype.componentDidMount=function(){var n=new google.maps.Polyline(w(w({},this.props.options||{}),{map:this.context}));this.registeredEvents=W({updaterMap:on,eventMap:nn,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{polyline:n}},this.setPolylineCallback)},e.prototype.componentDidUpdate=function(n){this.state.polyline!==null&&(Y(this.registeredEvents),this.registeredEvents=W({updaterMap:on,eventMap:nn,prevProps:n,nextProps:this.props,instance:this.state.polyline}))},e.prototype.componentWillUnmount=function(){this.state.polyline!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),Y(this.registeredEvents),this.state.polyline.setMap(null))},e.prototype.render=function(){return null},e.contextType=Z,e}
40)(o.PureComponent);var sn={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},rn={draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},path:function(t,e){t.setPath(e)},paths:function(t,e){t.setPaths(e)},visible:function(t,e){t.setVisible(e)}};function Yi(t){var e=t.options,n=t.draggable,i=t.editable,s=t.visible,r=t.path,a=t.paths,u=t.onDblClick,l=t.onDragEnd,c=t.onDragStart,p=t.onMouseDown,d=t.onMouseMove,f=t.onMouseOut,g=t.onMouseOver,x=t.onMouseUp,h=t.onRightClick,L=t.onClick,b=t.onDrag,S=t.onLoad,v=t.onUnmount,k=t.onEdit,y=o.useContext(Z),m=o.useState(null),E=m[0],C=m[1],P=o.useState(null),I=P[0],z=P[1],O=o.useState(null),G=O[0],T=O[1],U=o.useState(null),R=U[0],D=U[1],F=o.useState(null),X=F[0],H=F[1],B=o.useState(null),ne=B[0],K=B[1],$=o.useState(null),ie=$[0],M=$[1],ee=o.useState(null),re=ee[0],N=ee[1],ae=o.useState(null),de=ae[0],oe=ae[1],le=o.useState(null),ge=le[0],se=le[1],ue=o.useState(null),fe=ue[0],pe=ue[1],ce=o.useState(null),Q=ce[0],me=ce[1];return o.useEffect(function(){E!==null&&E.setMap(y)},[y]),o.useEffect(function(){typeof e<"u"&&E!==null&&E.setOptions(e)},[E,e]),o.useEffect(function(){typeof n<"u"&&E!==null&&E.setDraggable(n)},[E,n]),o.useEffect(function(){typeof i<"u"&&E!==null&&E.setEditable(i)},[E,i]),o.useEffect(function(){typeof s<"u"&&E!==null&&E.setVisible(s)},[E,s]),o.useEffect(function(){typeof r<"u"&&E!==null&&E.setPath(r)},[E,r]),o.useEffect(function(){typeof a<"u"&&E!==null&&E.setPaths(a)},[E,a]),o.useEffect(function(){E&&u&&(I!==null&&google.maps.event.removeListener(I),z(google.maps.event.addListener(E,"dblclick",u)))},[u]),o.useEffect(function(){E&&(google.maps.event.addListener(E.getPath(),"insert_at",function(){k==null||k(E)}),google.maps.event.addListener(E.getPath(),"set_at",function(){k==null||k(E)}))},[E,k]),o.useEffect(function(){E&&l&&(G!==null&&google.maps.event.removeListener(G),T(google.maps.event.addListener(E,"dragend",l)))},[l]),o.useEffect(function(){E&&c&&(R!==null&&google.maps.event.removeListener(R),D(google.maps.event.addListener(E,"dragstart",c)))},[c]),o.useEffect(function(){E&&p&&(X!==null&&google.maps.event.removeListener(X),H(google.maps.event.addListener(E,"mousedown",p)))},[p]),o.useEffect(function(){E&&d&&(ne!==null&&google.maps.event.removeListener(ne),K(google.maps.event.addListener(E,"mousemove",d)))},[d]),o.useEffect(function(){E&&f&&(ie!==null&&google.maps.event.removeListener(ie),M(google.maps.event.addListener(E,"mouseout",f)))},[f]),o.useEffect(function(){E&&g&&(re!==null&&google.maps.event.removeListener(re),N(google.maps.event.addListener(E,"mouseover",g)))},[g]),o.useEffect(function(){E&&x&&(de!==null&&google.maps.event.removeListener(de),oe(google.maps.event.addListener(E,"mouseup",x)))},[x]),o.useEffect(function(){E&&h&&(ge!==null&&google.maps.event.removeListener(ge),se(google.maps.event.addListener(E,"rightclick",h)))},[h]),o.useEffect(function(){E&&L&&(fe!==null&&google.maps.event.removeListener(fe),pe(google.maps.event.addListener(E,"click",L)))},[L]),o.useEffect(function(){E&&b&&(Q!==null&&google.maps.event.removeListener(Q),me(google.maps.event.addListener(E,"drag",b)))},[b]),o.useEffect(function(){var V=new google.maps.Polygon(w(w({},e||{}),{map:y}));return r&&V.setPath(r),a&&V.setPaths(a),typeof s<"u"&&V.setVisible(s),typeof i<"u"&&V.setEditable(i),typeof n<"u"&&V.setDraggable(n),u&&z(google.maps.event.addListener(V,"dblclick",u)),l&&T(google.maps.event.addListener(V,"dragend",l)),c&&D(google.maps.event.addListener(V,"dragstart",c)),p&&H(google.maps.event.addListener(V,"mousedown",p)),d&&K(google.maps.event.addListener(V,"mousemove",d)),f&&M(google.maps.event.addListener(V,"mouseout",f)),g&&N(google.maps.event.addListener(V,"mouseover",g)),x&&oe(google.maps.event.addListener(V,"mouseup",x)),h&&se(google.maps.event.addListener(V,"rightclick",h)),L&&pe(google.maps.event.addListener(V,"click",L)),b&&me(google.maps.event.addListener(V,"drag",b)),C(V),S&&S(V),function(){I!==null&&google.maps.event.removeListener(I),G!==null&&google.maps.event.removeListener(G),R!==null&&google.maps.event.removeListener(R),X!==null&&google.maps.event.removeListener(X),ne!==null&&google.maps.event.removeListener(ne),ie!==null&&google.maps.event.removeListener(ie),re!==null&&google.maps.event.removeListener(re),de!==null&&google.maps.event.removeListener(de),ge!==null&&google.maps.event.removeListener(ge),fe!==null&&google.maps.event.removeListener(fe),v&&v(V),V.setMap(null)}},[]),null}o.memo(Yi);(function(t){q(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={polygon:null},n.setPolygonCallback=function(){n.state.polygon!==null&&n.props.onLoad&&n.props.onLoad(n.state.polygon)},n}return e.prototype.componentDidMount=function(){var n=new google.maps.Polygon(w(w({},this.props.options||{}),{map:this.context}));this.registeredEvents=W({updaterMap:rn,eventMap:sn,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{polygon:n}},this.setPolygonCallback)},e.prototype.componentDidUpdate=function(n){this.state.polygon!==null&&(Y(this.registeredEvents),this.registeredEvents=W({updaterMap:rn,eventMap:sn,prevProps:n,nextProps:this.props,instance:this.state.polygon}))},e.prototype.componentWillUnmount=function(){this.state.polygon!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.polygon),Y(this.registeredEvents),this.state.polygon&&this.state.polygon.setMap(null))},e.prototype.render=function(){return null},e.contextType=Z,e}
40)(o.PureComponent);var an={onBoundsChanged:"bounds_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},ln={bounds:function(t,e){t.setBounds(e)},draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},visible:function(t,e){t.setVisible(e)}};function Fi(t){var e=t.options,n=t.bounds,i=t.draggable,s=t.editable,r=t.visible,a=t.onDblClick,u=t.onDragEnd,l=t.onDragStart,c=t.onMouseDown,p=t.onMouseMove,d=t.onMouseOut,f=t.onMouseOver,g=t.onMouseUp,x=t.onRightClick,h=t.onClick,L=t.onDrag,b=t.onBoundsChanged,S=t.onLoad,v=t.onUnmount,k=o.useContext(Z),y=o.useState(null),m=y[0],E=y[1],C=o.useState(null),P=C[0],I=C[1],z=o.useState(null),O=z[0],G=z[1],T=o.useState(null),U=T[0],R=T[1],D=o.useState(null),F=D[0],X=D[1],H=o.useState(null),B=H[0],ne=H[1],K=o.useState(null),$=K[0],ie=K[1],M=o.useState(null),ee=M[0],re=M[1],N=o.useState(null),ae=N[0],de=N[1],oe=o.useState(null),le=oe[0],ge=oe[1],se=o.useState(null),ue=se[0],fe=se[1],pe=o.useState(null),ce=pe[0],Q=pe[1],me=o.useState(null),V=me[0],ve=me[1];return o.useEffect(function(){m!==null&&m.setMap(k)},[k]),o.useEffect(function(){typeof e<"u"&&m!==null&&m.setOptions(e)},[m,e]),o.useEffect(function(){typeof i<"u"&&m!==null&&m.setDraggable(i)},[m,i]),o.useEffect(function(){typeof s<"u"&&m!==null&&m.setEditable(s)},[m,s]),o.useEffect(function(){typeof r<"u"&&m!==null&&m.setVisible(r)},[m,r]),o.useEffect(function(){typeof n<"u"&&m!==null&&m.setBounds(n)},[m,n]),o.useEffect(function(){m&&a&&(P!==null&&google.maps.event.removeListener(P),I(google.maps.event.addListener(m,"dblclick",a)))},[a]),o.useEffect(function(){m&&u&&(O!==null&&google.maps.event.removeListener(O),G(google.maps.event.addListener(m,"dragend",u)))},[u]),o.useEffect(function(){m&&l&&(U!==null&&google.maps.event.removeListener(U),R(google.maps.event.addListener(m,"dragstart",l)))},[l]),o.useEffect(function(){m&&c&&(F!==null&&google.maps.event.removeListener(F),X(google.maps.event.addListener(m,"mousedown",c)))},[c]),o.useEffect(function(){m&&p&&(B!==null&&google.maps.event.removeListener(B),ne(google.maps.event.addListener(m,"mousemove",p)))},[p]),o.useEffect(function(){m&&d&&($!==null&&google.maps.event.removeListener($),ie(google.maps.event.addListener(m,"mouseout",d)))},[d]),o.useEffect(function(){m&&f&&(ee!==null&&google.maps.event.removeListener(ee),re(google.maps.event.addListener(m,"mouseover",f)))},[f]),o.useEffect(function(){m&&g&&(ae!==null&&google.maps.event.removeListener(ae),de(google.maps.event.addListener(m,"mouseup",g)))},[g]),o.useEffect(function(){m&&x&&(le!==null&&google.maps.event.removeListener(le),ge(google.maps.event.addListener(m,"rightclick",x)))},[x]),o.useEffect(function(){m&&h&&(ue!==null&&google.maps.event.removeListener(ue),fe(google.maps.event.addListener(m,"click",h)))},[h]),o.useEffect(function(){m&&L&&(ce!==null&&google.maps.event.removeListener(ce),Q(google.maps.event.addListener(m,"drag",L)))},[L]),o.useEffect(function(){m&&b&&(V!==null&&google.maps.event.removeListener(V),ve(google.maps.event.addListener(m,"bounds_changed",b)))},[b]),o.useEffect(function(){var j=new google.maps.Rectangle(w(w({},e||{}),{map:k}));return typeof r<"u"&&j.setVisible(r),typeof s<"u"&&j.setEditable(s),typeof i<"u"&&j.setDraggable(i),typeof n<"u"&&j.setBounds(n),a&&I(google.maps.event.addListener(j,"dblclick",a)),u&&G(google.maps.event.addListener(j,"dragend",u)),l&&R(google.maps.event.addListener(j,"dragstart",l)),c&&X(google.maps.event.addListener(j,"mousedown",c)),p&&ne(google.maps.event.addListener(j,"mousemove",p)),d&&ie(google.maps.event.addListener(j,"mouseout",d)),f&&re(google.maps.event.addListener(j,"mouseover",f)),g&&de(google.maps.event.addListener(j,"mouseup",g)),x&&ge(google.maps.event.addListener(j,"rightclick",x)),h&&fe(google.maps.event.addListener(j,"click",h)),L&&Q(google.maps.event.addListener(j,"drag",L)),b&&ve(google.maps.event.addListener(j,"bounds_changed",b)),E(j),S&&S(j),function(){P!==null&&google.maps.event.removeListener(P),O!==null&&google.maps.event.removeListener(O),U!==null&&google.maps.event.removeListener(U),F!==null&&google.maps.event.removeListener(F),B!==null&&google.maps.event.removeListener(B),$!==null&&google.maps.event.removeListener($),ee!==null&&google.maps.event.removeListener(ee),ae!==null&&google.maps.event.removeListener(ae),le!==null&&google.maps.event.removeListener(le),ue!==null&&google.maps.event.removeListener(ue),ce!==null&&google.maps.event.removeListener(ce),V!==null&&google.maps.event.removeListener(V),v&&v(j),j.setMap(null)}},[]),null}o.memo(Fi);(function(t){q(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={rectangle:null},n.setRectangleCallback=function(){n.state.rectangle!==null&&n.props.onLoad&&n.props.onLoad(n.state.rectangle)},n}return e.prototype.componentDidMount=function(){var n=new google.maps.Rectangle(w(w({},this.props.options||{}),{map:this.context}));this.registeredEvents=W({updaterMap:ln,eventMap:an,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{rectangle:n}},this.setRectangleCallback)},e.prototype.componentDidUpdate=function(n){this.state.rectangle!==null&&(Y(this.registeredEvents),this.registeredEvents=W({updaterMap:ln,eventMap:an,prevProps:n,nextProps:this.props,instance:this.state.rectangle}))},e.prototype.componentWillUnmount=function(){this.state.rectangle!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),Y(this.registeredEvents),this.state.rectangle.setMap(null))},e.prototype.render=function(){return null},e.contextType=Z,e}
40)(o.PureComponent);var un={onCenterChanged:"center_changed",onRadiusChanged:"radius_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},cn={center:function(t,e){t.setCenter(e)},draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},radius:function(t,e){t.setRadius(e)},visible:function(t,e){t.setVisible(e)}},Hi={};function Ji(t){var e=t.options,n=t.center,i=t.radius,s=t.draggable,r=t.editable,a=t.visible,u=t.onDblClick,l=t.onDragEnd,c=t.onDragStart,p=t.onMouseDown,d=t.onMouseMove,f=t.onMouseOut,g=t.onMouseOver,x=t.onMouseUp,h=t.onRightClick,L=t.onClick,b=t.onDrag,S=t.onCenterChanged,v=t.onRadiusChanged,k=t.onLoad,y=t.onUnmount,m=o.useContext(Z),E=o.useState(null),C=E[0],P=E[1],I=o.useState(null),z=I[0],O=I[1],G=o.useState(null),T=G[0],U=G[1],R=o.useState(null),D=R[0],F=R[1],X=o.useState(null),H=X[0],B=X[1],ne=o.useState(null),K=ne[0],$=ne[1],ie=o.useState(null),M=ie[0],ee=ie[1],re=o.useState(null),N=re[0],ae=re[1],de=o.useState(null),oe=de[0],le=de[1],ge=o.useState(null),se=ge[0],ue=ge[1],fe=o.useState(null),pe=fe[0],ce=fe[1],Q=o.useState(null),me=Q[0],V=Q[1],ve=o.useState(null),j=ve[0],Le=ve[1],Se=o.useState(null),Ce=Se[0],we=Se[1];return o.useEffect(function(){C!==null&&C.setMap(m)},[m]),o.useEffect(function(){typeof e<"u"&&C!==null&&C.setOptions(e)},[C,e]),o.useEffect(function(){typeof s<"u"&&C!==null&&C.setDraggable(s)},[C,s]),o.useEffect(function(){typeof r<"u"&&C!==null&&C.setEditable(r)},[C,r]),o.useEffect(function(){typeof a<"u"&&C!==null&&C.setVisible(a)},[C,a]),o.useEffect(function(){typeof i=="number"&&C!==null&&C.setRadius(i)},[C,i]),o.useEffect(function(){typeof n<"u"&&C!==null&&C.setCenter(n)},[C,n]),o.useEffect(function(){C&&u&&(z!==null&&google.maps.event.removeListener(z),O(google.maps.event.addListener(C,"dblclick",u)))},[u]),o.useEffect(function(){C&&l&&(T!==null&&google.maps.event.removeListener(T),U(google.maps.event.addListener(C,"dragend",l)))},[l]),o.useEffect(function(){C&&c&&(D!==null&&google.maps.event.removeListener(D),F(google.maps.event.addListener(C,"dragstart",c)))},[c]),o.useEffect(function(){C&&p&&(H!==null&&google.maps.event.removeListener(H),B(google.maps.event.addListener(C,"mousedown",p)))},[p]),o.useEffect(function(){C&&d&&(K!==null&&google.maps.event.removeListener(K),$(google.maps.event.addListener(C,"mousemove",d)))},[d]),o.useEffect(function(){C&&f&&(M!==null&&google.maps.event.removeListener(M),ee(google.maps.event.addListener(C,"mouseout",f)))},[f]),o.useEffect(function(){C&&g&&(N!==null&&google.maps.event.removeListener(N),ae(google.maps.event.addListener(C,"mouseover",g)))},[g]),o.useEffect(function(){C&&x&&(oe!==null&&google.maps.event.removeListener(oe),le(google.maps.event.addListener(C,"mouseup",x)))},[x]),o.useEffect(function(){C&&h&&(se!==null&&google.maps.event.removeListener(se),ue(google.maps.event.addListener(C,"rightclick",h)))},[h]),o.useEffect(function(){C&&L&&(pe!==null&&google.maps.event.removeListener(pe),ce(google.maps.event.addListener(C,"click",L)))},[L]),o.useEffect(function(){C&&b&&(me!==null&&google.maps.event.removeListener(me),V(google.maps.event.addListener(C,"drag",b)))},[b]),o.useEffect(function(){C&&S&&(j!==null&&google.maps.event.removeListener(j),Le(google.maps.event.addListener(C,"center_changed",S)))},[L]),o.useEffect(function(){C&&v&&(Ce!==null&&google.maps.event.removeListener(Ce),we(google.maps.event.addListener(C,"radius_changed",v)))},[v]),o.useEffect(function(){var te=new google.maps.Circle(w(w({},e||Hi),{map:m}));return typeof i=="number"&&te.setRadius(i),typeof n<"u"&&te.setCenter(n),typeof i=="number"&&te.setRadius(i),typeof a<"u"&&te.setVisible(a),typeof r<"u"&&te.setEditable(r),typeof s<"u"&&te.setDraggable(s),u&&O(google.maps.event.addListener(te,"dblclick",u)),l&&U(google.maps.event.addListener(te,"dragend",l)),c&&F(google.maps.event.addListener(te,"dragstart",c)),p&&B(google.maps.event.addListener(te,"mousedown",p)),d&&$(google.maps.event.addListener(te,"mousemove",d)),f&&ee(google.maps.event.addListener(te,"mouseout",f)),g&&ae(google.maps.event.addListener(te,"mouseover",g)),x&&le(google.maps.event.addListener(te,"mouseup",x)),h&&ue(google.maps.event.addListener(te,"rightclick",h)),L&&ce(google.maps.event.addListener(te,"click",L)),b&&V(google.maps.event.addListener(te,"drag",b)),S&&Le(google.maps.event.addListener(te,"center_changed",S)),v&&we(google.maps.event.addListener(te,"radius_changed",v)),P(te),k&&k(te),function(){z!==null&&google.maps.event.removeListener(z),T!==null&&google.maps.event.removeListener(T),D!==null&&google.maps.event.removeListener(
40D),H!==null&&google.maps.event.removeListener(H),K!==null&&google.maps.event.removeListener(K),M!==null&&google.maps.event.removeListener(M),N!==null&&google.maps.event.removeListener(N),oe!==null&&google.maps.event.removeListener(oe),se!==null&&google.maps.event.removeListener(se),pe!==null&&google.maps.event.removeListener(pe),j!==null&&google.maps.event.removeListener(j),Ce!==null&&google.maps.event.removeListener(Ce),y&&y(te),te.setMap(null)}},[]),null}o.memo(Ji);(function(t){q(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={circle:null},n.setCircleCallback=function(){n.state.circle!==null&&n.props.onLoad&&n.props.onLoad(n.state.circle)},n}return e.prototype.componentDidMount=function(){var n=new google.maps.Circle(w(w({},this.props.options||{}),{map:this.context}));this.registeredEvents=W({updaterMap:cn,eventMap:un,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{circle:n}},this.setCircleCallback)},e.prototype.componentDidUpdate=function(n){this.state.circle!==null&&(Y(this.registeredEvents),this.registeredEvents=W({updaterMap:cn,eventMap:un,prevProps:n,nextProps:this.props,instance:this.state.circle}))},e.prototype.componentWillUnmount=function(){var n;this.state.circle!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),Y(this.registeredEvents),(n=this.state.circle)===null||n===void 0||n.setMap(null))},e.prototype.render=function(){return null},e.contextType=Z,e})(o.PureComponent);var pn={onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onAddFeature:"addfeature",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},dn={add:function(t,e){t.add(e)},addgeojson:function(t,e,n){t.addGeoJson(e,n)},contains:function(t,e){t.contains(e)},foreach:function(t,e){t.forEach(e)},loadgeojson:function(t,e,n,i){t.loadGeoJson(e,n,i)},overridestyle:function(t,e,n){t.overrideStyle(e,n)},remove:function(t,e){t.remove(e)},revertstyle:function(t,e){t.revertStyle(e)},controlposition:function(t,e){t.setControlPosition(e)},controls:function(t,e){t.setControls(e)},drawingmode:function(t,e){t.setDrawingMode(e)},map:function(t,e){t.setMap(e)},style:function(t,e){t.setStyle(e)},togeojson:function(t,e){t.toGeoJson(e)}};function Xi(t){var e=t.options,n=t.onClick,i=t.onDblClick,s=t.onMouseDown,r=t.onMouseMove,a=t.onMouseOut,u=t.onMouseOver,l=t.onMouseUp,c=t.onRightClick,p=t.onAddFeature,d=t.onRemoveFeature,f=t.onRemoveProperty,g=t.onSetGeometry,x=t.onSetProperty,h=t.onLoad,L=t.onUnmount,b=o.useContext(Z),S=o.useState(null),v=S[0],k=S[1],y=o.useState(null),m=y[0],E=y[1],C=o.useState(null),P=C[0],I=C[1],z=o.useState(null),O=z[0],G=z[1],T=o.useState(null),U=T[0],R=T[1],D=o.useState(null),F=D[0],X=D[1],H=o.useState(null),B=H[0],ne=H[1],K=o.useState(null),$=K[0],ie=K[1],M=o.useState(null),ee=M[0],re=M[1],N=o.useState(null),ae=N[0],de=N[1],oe=o.useState(null),le=oe[0],ge=oe[1],se=o.useState(null),ue=se[0],fe=se[1],pe=o.useState(null),ce=pe[0],Q=pe[1],me=o.useState(null),V=me[0],ve=me[1];return o.useEffect(function(){v!==null&&v.setMap(b)},[b]),o.useEffect(function(){v&&i&&(m!==null&&google.maps.event.removeListener(m),E(google.maps.event.addListener(v,"dblclick",i)))},[i]),o.useEffect(function(){v&&s&&(P!==null&&google.maps.event.removeListener(P),I(google.maps.event.addListener(v,"mousedown",s)))},[s]),o.useEffect(function(){v&&r&&(O!==null&&google.maps.event.removeListener(O),G(google.maps.event.addListener(v,"mousemove",r)))},[r]),o.useEffect(function(){v&&a&&(U!==null&&google.maps.event.removeListener(U),R(google.maps.event.addListener(v,"mouseout",a)))},[a]),o.useEffect(function(){v&&u&&(F!==null&&google.maps.event.removeListener(F),X(google.maps.event.addListener(v,"mouseover",u)))},[u]),o.useEffect(function(){v&&l&&(B!==null&&google.maps.event.removeListener(B),ne(google.maps.event.addListener(v,"mouseup",l)))},[l]),o.useEffect(function(){v&&c&&($!==null&&google.maps.event.removeListener($),ie(google.maps.event.addListener(v,"rightclick",c)))},[c]),o.useEffect(function(){v&&n&&(ee!==null&&google.maps.event.removeListener(ee),re(google.maps.event.addListener(v,"click",n)))},[n]),o.useEffect(function(){v&&p&&(ae!==null&&google.maps.event.removeListener(ae),de(google.maps.event.addListener(v,"addfeature",p)))}
40,[p]),o.useEffect(function(){v&&d&&(le!==null&&google.maps.event.removeListener(le),ge(google.maps.event.addListener(v,"removefeature",d)))},[d]),o.useEffect(function(){v&&f&&(ue!==null&&google.maps.event.removeListener(ue),fe(google.maps.event.addListener(v,"removeproperty",f)))},[f]),o.useEffect(function(){v&&g&&(ce!==null&&google.maps.event.removeListener(ce),Q(google.maps.event.addListener(v,"setgeometry",g)))},[g]),o.useEffect(function(){v&&x&&(V!==null&&google.maps.event.removeListener(V),ve(google.maps.event.addListener(v,"setproperty",x)))},[x]),o.useEffect(function(){if(b!==null){var j=new google.maps.Data(w(w({},e||{}),{map:b}));i&&E(google.maps.event.addListener(j,"dblclick",i)),s&&I(google.maps.event.addListener(j,"mousedown",s)),r&&G(google.maps.event.addListener(j,"mousemove",r)),a&&R(google.maps.event.addListener(j,"mouseout",a)),u&&X(google.maps.event.addListener(j,"mouseover",u)),l&&ne(google.maps.event.addListener(j,"mouseup",l)),c&&ie(google.maps.event.addListener(j,"rightclick",c)),n&&re(google.maps.event.addListener(j,"click",n)),p&&de(google.maps.event.addListener(j,"addfeature",p)),d&&ge(google.maps.event.addListener(j,"removefeature",d)),f&&fe(google.maps.event.addListener(j,"removeproperty",f)),g&&Q(google.maps.event.addListener(j,"setgeometry",g)),x&&ve(google.maps.event.addListener(j,"setproperty",x)),k(j),h&&h(j)}return function(){v&&(m!==null&&google.maps.event.removeListener(m),P!==null&&google.maps.event.removeListener(P),O!==null&&google.maps.event.removeListener(O),U!==null&&google.maps.event.removeListener(U),F!==null&&google.maps.event.removeListener(F),B!==null&&google.maps.event.removeListener(B),$!==null&&google.maps.event.removeListener($),ee!==null&&google.maps.event.removeListener(ee),ae!==null&&google.maps.event.removeListener(ae),le!==null&&google.maps.event.removeListener(le),ue!==null&&google.maps.event.removeListener(ue),ce!==null&&google.maps.event.removeListener(ce),V!==null&&google.maps.event.removeListener(V),L&&L(v),v.setMap(null))}},[]),null}o.memo(Xi);(function(t){q(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={data:null},n.setDataCallback=function(){n.state.data!==null&&n.props.onLoad&&n.props.onLoad(n.state.data)},n}return e.prototype.componentDidMount=function(){if(this.context!==null){var n=new google.maps.Data(w(w({},this.props.options||{}),{map:this.context}));this.registeredEvents=W({updaterMap:dn,eventMap:pn,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{data:n}},this.setDataCallback)}},e.prototype.componentDidUpdate=function(n){this.state.data!==null&&(Y(this.registeredEvents),this.registeredEvents=W({updaterMap:dn,eventMap:pn,prevProps:n,nextProps:this.props,instance:this.state.data}))},e.prototype.componentWillUnmount=function(){this.state.data!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),Y(this.registeredEvents),this.state.data&&this.state.data.setMap(null))},e.prototype.render=function(){return null},e.contextType=Z,e})(o.PureComponent);var gn={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},fn={options:function(t,e){t.setOptions(e)},url:function(t,e){t.setUrl(e)},zIndex:function(t,e){t.setZIndex(e)}};(function(t){q(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={kmlLayer:null},n.setKmlLayerCallback=function(){n.state.kmlLayer!==null&&n.props.onLoad&&n.props.onLoad(n.state.kmlLayer)},n}return e.prototype.componentDidMount=function(){var n=new google.maps.KmlLayer(w(w({},this.props.options),{map:this.context}));this.registeredEvents=W({updaterMap:fn,eventMap:gn,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{kmlLayer:n}},this.setKmlLayerCallback)},e.prototype.componentDidUpdate=function(n){this.state.kmlLayer!==null&&(Y(this.registeredEvents),this.registeredEvents=W({updaterMap:fn,eventMap:gn,prevProps:n,nextProps:this.props,instance:this.state.kmlLayer}))},e.prototype.componentWillUnmount=function(){this.state.kmlLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),Y(this.registeredEvents),this.state.kmlLayer.setMap(null))},e.prototype.render=function(){return null},e.contextType=Z,e}
40)(o.PureComponent);function Vn(t,e){return typeof e=="function"?e(t.offsetWidth,t.offsetHeight):{x:0,y:0}}function $i(t,e){return new e(t.lat,t.lng)}function _i(t,e){return new e(new google.maps.LatLng(t.ne.lat,t.ne.lng),new google.maps.LatLng(t.sw.lat,t.sw.lng))}function Ki(t,e,n){return t instanceof e?t:n(t,e)}function qi(t,e,n){return t instanceof e?t:n(t,e)}function eo(t,e,n){var i=t&&t.fromLatLngToDivPixel(n.getNorthEast()),s=t&&t.fromLatLngToDivPixel(n.getSouthWest());return i&&s?{left:"".concat(s.x+e.x,"px"),top:"".concat(i.y+e.y,"px"),width:"".concat(i.x-s.x-e.x,"px"),height:"".concat(s.y-i.y-e.y,"px")}:{left:"-9999px",top:"-9999px"}}function to(t,e,n){var i=t&&t.fromLatLngToDivPixel(n);if(i){var s=i.x,r=i.y;return{left:"".concat(s+e.x,"px"),top:"".concat(r+e.y,"px")}}return{left:"-9999px",top:"-9999px"}}function Wn(t,e,n,i){return n!==void 0?eo(t,e,qi(n,google.maps.LatLngBounds,_i)):to(t,e,Ki(i,google.maps.LatLng,$i))}function no(t,e){return t.left===e.left&&t.top===e.top&&t.width===e.height&&t.height===e.height}function io(t,e,n,i,s){var r=(function(a){q(u,a);function u(l,c,p,d){var f=a.call(this)||this;return f.container=l,f.pane=c,f.position=p,f.bounds=d,f}return u.prototype.onAdd=function(){var l,c=(l=this.getPanes())===null||l===void 0?void 0:l[this.pane];c==null||c.appendChild(this.container)},u.prototype.draw=function(){for(var l=this.getProjection(),c=w({},this.container?Vn(this.container,s):{x:0,y:0}),p=Wn(l,c,this.bounds,this.position),d=0,f=Object.entries(p);d<f.length;d++){var g=f[d],x=g[0],h=g[1];this.container.style[x]=h}},u.prototype.onRemove=function(){this.container.parentNode!==null&&this.container.parentNode.removeChild(this.container)},u})(google.maps.OverlayView);return new r(t,e,n,i)}function hn(t){if(!t)return"";var e=t instanceof google.maps.LatLng?t:new google.maps.LatLng(t.lat,t.lng);return e+""}function mn(t){if(!t)return"";var e=t instanceof google.maps.LatLngBounds?t:new google.maps.LatLngBounds(new google.maps.LatLng(t.south,t.east),new google.maps.LatLng(t.north,t.west));return e+""}function oo(t){var e=t.position,n=t.bounds,i=t.mapPaneName,s=t.zIndex,r=t.onLoad,a=t.onUnmount,u=t.getPixelPositionOffset,l=t.children,c=o.useContext(Z),p=o.useMemo(function(){var f=document.createElement("div");return f.style.position="absolute",f},[]),d=o.useMemo(function(){return io(p,i,e,n,u)},[p,i,e,n]);return o.useEffect(function(){return r==null||r(d),d==null||d.setMap(c),function(){a==null||a(d),d==null||d.setMap(null)}},[c,d]),o.useEffect(function(){p.style.zIndex="".concat(s)},[s,p]),De.createPortal(l,p)}o.memo(oo);(function(t){q(e,t);function e(n){var i=t.call(this,n)||this;i.state={paneEl:null,containerStyle:{position:"absolute"}},i.updatePane=function(){var r=i.props.mapPaneName,a=i.overlayView.getPanes();he(!!r,"OverlayView requires props.mapPaneName but got %s",r),a?i.setState({paneEl:a[r]}):i.setState({paneEl:null})},i.onAdd=function(){var r,a;i.updatePane(),(a=(r=i.props).onLoad)===null||a===void 0||a.call(r,i.overlayView)},i.onPositionElement=function(){var r=i.overlayView.getProjection(),a=w({x:0,y:0},i.containerRef.current?Vn(i.containerRef.current,i.props.getPixelPositionOffset):{}),u=Wn(r,a,i.props.bounds,i.props.position),l=i.state.containerStyle,c=l.left,p=l.top;l.width;var d=l.height;no(u,{left:c,top:p,height:d})||i.setState({containerStyle:{top:u.top||0,left:u.left||0,width:u.width||0,height:u.height||0,position:"absolute"}})},i.draw=function(){i.onPositionElement()},i.onRemove=function(){var r,a;i.setState(function(){return{paneEl:null}}),(a=(r=i.props).onUnmount)===null||a===void 0||a.call(r,i.overlayView)},i.containerRef=o.createRef();var s=new google.maps.OverlayView;return s.onAdd=i.onAdd,s.draw=i.draw,s.onRemove=i.onRemove,i.overlayView=s,i}return e.prototype.componentDidMount=function(){this.overlayView.setMap(this.context)},e.prototype.componentDidUpdate=function(n){var i=hn(n.position),s=hn(this.props.position),r=mn(n.bounds),a=mn(this.props.bounds);(i!==s||r!==a)&&this.overlayView.draw(),n.mapPaneName!==this.props.mapPaneName&&this.updatePane()},e.prototype.componentWillUnmount=function(){this.overlayView.setMap(null)},e.prototype.render=function(){var n=this.state.paneEl;return n?De.createPortal(_.jsx("div",{ref:this.containerRef,style:this.state.containerStyle,children:o.Children.only(this.props.children)}),n):null},e.FLOAT_PANE="floatPane",e.MAP_PANE="mapPane",e.MARKER_LAYER="markerLayer",e.OVERLAY_LAYER="overlayLayer",e.OVERLAY_MOUSE_TARGET="overlayMouseTarget",e.contextType=Z,e}
40)(o.PureComponent);function so(){}var vn={onDblClick:"dblclick",onClick:"click"},Mn={opacity:function(t,e){t.setOpacity(e)}};function ro(t){var e=t.url,n=t.bounds,i=t.options,s=t.visible,r=o.useContext(Z),a=new google.maps.LatLngBounds(new google.maps.LatLng(n.south,n.west),new google.maps.LatLng(n.north,n.east)),u=o.useMemo(function(){var l=new google.maps.GroundOverlay(e,a,w({},i));return l},[]);return o.useEffect(function(){u!==null&&u.setMap(r)},[r]),o.useEffect(function(){typeof e<"u"&&u!==null&&(u.set("url",e),u.setMap(r))},[u,e]),o.useEffect(function(){typeof s<"u"&&u!==null&&u.setOpacity(s?1:0)},[u,s]),o.useEffect(function(){var l=new google.maps.LatLngBounds(new google.maps.LatLng(n.south,n.west),new google.maps.LatLng(n.north,n.east));typeof n<"u"&&u!==null&&(u.set("bounds",l),u.setMap(r))},[u,n]),null}o.memo(ro);(function(t){q(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={groundOverlay:null},n.setGroundOverlayCallback=function(){n.state.groundOverlay!==null&&n.props.onLoad&&n.props.onLoad(n.state.groundOverlay)},n}return e.prototype.componentDidMount=function(){he(!!this.props.url||!!this.props.bounds,"For GroundOverlay, url and bounds are passed in to constructor and are immutable after instantiated. This is the behavior of Google Maps JavaScript API v3 ( See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay) Hence, use the corresponding two props provided by `react-google-maps-api`, url and bounds. In some cases, you'll need the GroundOverlay component to reflect the changes of url and bounds. You can leverage the React's key property to remount the component. Typically, just `key={url}` would serve your need. See https://github.com/tomchentw/react-google-maps/issues/655");var n=new google.maps.GroundOverlay(this.props.url,this.props.bounds,w(w({},this.props.options),{map:this.context}));this.registeredEvents=W({updaterMap:Mn,eventMap:vn,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{groundOverlay:n}},this.setGroundOverlayCallback)},e.prototype.componentDidUpdate=function(n){this.state.groundOverlay!==null&&(Y(this.registeredEvents),this.registeredEvents=W({updaterMap:Mn,eventMap:vn,prevProps:n,nextProps:this.props,instance:this.state.groundOverlay}))},e.prototype.componentWillUnmount=function(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))},e.prototype.render=function(){return null},e.defaultProps={onLoad:so},e.contextType=Z,e})(o.PureComponent);var yn={},Ln={data:function(t,e){t.setData(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)}};function ao(t){var e=t.data,n=t.onLoad,i=t.onUnmount,s=t.options,r=o.useContext(Z),a=o.useState(null),u=a[0],l=a[1];return o.useEffect(function(){google.maps.visualization||he(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} in useJsApiScript? %s',google.maps.visualization)},[]),o.useEffect(function(){he(!!e,"data property is required in HeatmapLayer %s",e)},[e]),o.useEffect(function(){u!==null&&u.setMap(r)},[r]),o.useEffect(function(){s&&u!==null&&u.setOptions(s)},[u,s]),o.useEffect(function(){var c=new google.maps.visualization.HeatmapLayer(w(w({},s||{}),{data:e,map:r}));return l(c),n&&n(c),function(){u!==null&&(i&&i(u),u.setMap(null))}},[]),null}o.memo(ao);(function(t){q(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={heatmapLayer:null},n.setHeatmapLayerCallback=function(){n.state.heatmapLayer!==null&&n.props.onLoad&&n.props.onLoad(n.state.heatmapLayer)},n}return e.prototype.componentDidMount=function(){he(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} to <LoadScript />? %s',google.maps.visualization),he(!!this.props.data,"data property is required in HeatmapLayer %s",this.props.data);var n=new google.maps.visualization.HeatmapLayer(w(w({},this.props.options||{}),{data:this.props.data,map:this.context}));this.registeredEvents=W({updaterMap:Ln,eventMap:yn,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{heatmapLayer:n}},this.setHeatmapLayerCallback)},e.prototype.componentDidUpdate=function(n){Y(this.registeredEvents),this.registeredEvents=W({updaterMap:Ln,eventMap:yn,prevProps:n,nextProps:this.props,instance:this.state.heatmapLayer})},e.prototype.componentWillUnmount=function(){this.state.heatmapLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),Y(this.registeredEvents),this.state.heatmapLayer.setMap(null))},e.prototype.render=function(){return null},e.contextType=Z,e}
40)(o.PureComponent);var Cn={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},In={register:function(t,e,n){t.registerPanoProvider(e,n)},links:function(t,e){t.setLinks(e)},motionTracking:function(t,e){t.setMotionTracking(e)},options:function(t,e){t.setOptions(e)},pano:function(t,e){t.setPano(e)},position:function(t,e){t.setPosition(e)},pov:function(t,e){t.setPov(e)},visible:function(t,e){t.setVisible(e)},zoom:function(t,e){t.setZoom(e)}};(function(t){q(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={streetViewPanorama:null},n.setStreetViewPanoramaCallback=function(){n.state.streetViewPanorama!==null&&n.props.onLoad&&n.props.onLoad(n.state.streetViewPanorama)},n}return e.prototype.componentDidMount=function(){var n,i,s=(i=(n=this.context)===null||n===void 0?void 0:n.getStreetView())!==null&&i!==void 0?i:null;this.registeredEvents=W({updaterMap:In,eventMap:Cn,prevProps:{},nextProps:this.props,instance:s}),this.setState(function(){return{streetViewPanorama:s}},this.setStreetViewPanoramaCallback)},e.prototype.componentDidUpdate=function(n){this.state.streetViewPanorama!==null&&(Y(this.registeredEvents),this.registeredEvents=W({updaterMap:In,eventMap:Cn,prevProps:n,nextProps:this.props,instance:this.state.streetViewPanorama}))},e.prototype.componentWillUnmount=function(){this.state.streetViewPanorama!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),Y(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))},e.prototype.render=function(){return null},e.contextType=Z,e})(o.PureComponent);(function(t){q(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={streetViewService:null},n.setStreetViewServiceCallback=function(){n.state.streetViewService!==null&&n.props.onLoad&&n.props.onLoad(n.state.streetViewService)},n}return e.prototype.componentDidMount=function(){var n=new google.maps.StreetViewService;this.setState(function(){return{streetViewService:n}},this.setStreetViewServiceCallback)},e.prototype.componentWillUnmount=function(){this.state.streetViewService!==null&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)},e.prototype.render=function(){return null},e.contextType=Z,e})(o.PureComponent);(function(t){q(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={directionsService:null},n.setDirectionsServiceCallback=function(){n.state.directionsService!==null&&n.props.onLoad&&n.props.onLoad(n.state.directionsService)},n}return e.prototype.componentDidMount=function(){he(!!this.props.options,"DirectionsService expected options object as parameter, but got %s",this.props.options);var n=new google.maps.DirectionsService;this.setState(function(){return{directionsService:n}},this.setDirectionsServiceCallback)},e.prototype.componentDidUpdate=function(){this.state.directionsService!==null&&this.state.directionsService.route(this.props.options,this.props.callback)},e.prototype.componentWillUnmount=function(){this.state.directionsService!==null&&this.props.onUnmount&&this.props.onUnmount(this.state.directionsService)},e.prototype.render=function(){return null},e})(o.PureComponent);var En={onDirectionsChanged:"directions_changed"},xn={directions:function(t,e){t.setDirections(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},panel:function(t,e){t.setPanel(e)},routeIndex:function(t,e){t.setRouteIndex(e)}};(function(t){q(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={directionsRenderer:null},n.setDirectionsRendererCallback=function(){n.state.directionsRenderer!==null&&(n.state.directionsRenderer.setMap(n.context),n.props.onLoad&&n.props.onLoad(n.state.directionsRenderer))},n}return e.prototype.componentDidMount=function(){var n=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=W({updaterMap:xn,eventMap:En,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{directionsRenderer:n}},this.setDirectionsRendererCallback)},e.prototype.componentDidUpdate=function(n){this.state.directionsRenderer!==null&&(Y(this.registeredEvents),this.registeredEvents=W({updaterMap:xn,eventMap:En,prevProps:n,nextProps:this.props,instance:this.state.directionsRenderer}))},e.prototype.componentWillUnmount=function(){this.state.directionsRenderer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),Y(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))},e.prototype.render=function(){return _.jsx(_.Fragment,{})},e.contextType=Z,e}
40)(o.PureComponent);(function(t){q(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={distanceMatrixService:null},n.setDistanceMatrixServiceCallback=function(){n.state.distanceMatrixService!==null&&n.props.onLoad&&n.props.onLoad(n.state.distanceMatrixService)},n}return e.prototype.componentDidMount=function(){he(!!this.props.options,"DistanceMatrixService expected options object as parameter, but go %s",this.props.options);var n=new google.maps.DistanceMatrixService;this.setState(function(){return{distanceMatrixService:n}},this.setDistanceMatrixServiceCallback)},e.prototype.componentDidUpdate=function(){this.state.distanceMatrixService!==null&&this.state.distanceMatrixService.getDistanceMatrix(this.props.options,this.props.callback)},e.prototype.componentWillUnmount=function(){this.state.distanceMatrixService!==null&&this.props.onUnmount&&this.props.onUnmount(this.state.distanceMatrixService)},e.prototype.render=function(){return null},e})(o.PureComponent);var bn={onPlacesChanged:"places_changed"},Dn={bounds:function(t,e){t.setBounds(e)}};(function(t){q(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.containerElement=o.createRef(),n.state={searchBox:null},n.setSearchBoxCallback=function(){n.state.searchBox!==null&&n.props.onLoad&&n.props.onLoad(n.state.searchBox)},n}return e.prototype.componentDidMount=function(){if(he(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places),this.containerElement!==null&&this.containerElement.current!==null){var n=this.containerElement.current.querySelector("input");if(n!==null){var i=new google.maps.places.SearchBox(n,this.props.options);this.registeredEvents=W({updaterMap:Dn,eventMap:bn,prevProps:{},nextProps:this.props,instance:i}),this.setState(function(){return{searchBox:i}},this.setSearchBoxCallback)}}},e.prototype.componentDidUpdate=function(n){this.state.searchBox!==null&&(Y(this.registeredEvents),this.registeredEvents=W({updaterMap:Dn,eventMap:bn,prevProps:n,nextProps:this.props,instance:this.state.searchBox}))},e.prototype.componentWillUnmount=function(){this.state.searchBox!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),Y(this.registeredEvents))},e.prototype.render=function(){return _.jsx("div",{ref:this.containerElement,children:o.Children.only(this.props.children)})},e.contextType=Z,e})(o.PureComponent);var Sn={onPlaceChanged:"place_changed"},wn={bounds:function(t,e){t.setBounds(e)},restrictions:function(t,e){t.setComponentRestrictions(e)},fields:function(t,e){t.setFields(e)},options:function(t,e){t.setOptions(e)},types:function(t,e){t.setTypes(e)}};(function(t){q(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.containerElement=o.createRef(),n.state={autocomplete:null},n.setAutocompleteCallback=function(){n.state.autocomplete!==null&&n.props.onLoad&&n.props.onLoad(n.state.autocomplete)},n}return e.prototype.componentDidMount=function(){var n;he(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places);var i=(n=this.containerElement.current)===null||n===void 0?void 0:n.querySelector("input");if(i){var s=new google.maps.places.Autocomplete(i,this.props.options);this.registeredEvents=W({updaterMap:wn,eventMap:Sn,prevProps:{},nextProps:this.props,instance:s}),this.setState(function(){return{autocomplete:s}},this.setAutocompleteCallback)}},e.prototype.componentDidUpdate=function(n){Y(this.registeredEvents),this.registeredEvents=W({updaterMap:wn,eventMap:Sn,prevProps:n,nextProps:this.props,instance:this.state.autocomplete})},e.prototype.componentWillUnmount=function(){this.state.autocomplete!==null&&Y(this.registeredEvents)},e.prototype.render=function(){return _.jsx("div",{ref:this.containerElement,className:this.props.className,children:o.Children.only(this.props.children)})},e.defaultProps={className:""},e.contextType=Z,e})(o.PureComponent);const lo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjcnIGhlaWdodD0nNDMnIHZpZXdCb3g9JzAgMCAyNyA0MycgZmlsbD0nbm9uZScgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4NCjxnIGNsaXAtcGF0aD0ndXJsKCNjbGlwMF80MzlfODgwKSc+DQo8ZyBmaWx0ZXI9J3VybCgjZmlsdGVyMF9mXzQzOV84ODApJz4NCjxlbGxpcHNlIGN4PScxMy41JyBjeT0nMzkuNScgcng9JzQuNScgcnk9JzIuNScgZmlsbD0nYmxhY2snIGZpbGwtb3BhY2l0eT0nMC4xMicvPg0KPC9nPg0KPG1hc2sgaWQ9J3BhdGgtMi1vdXRzaWRlLTFfNDM5Xzg4MCcgbWFza1VuaXRzPSd1c2VyU3BhY2VPblVzZScgeD0nMCcgeT0nMCcgd2lkdGg9JzI3JyBoZWlnaHQ9JzQwJyBmaWxsPSdibGFjayc+DQo8cmVjdCBmaWxsPSd3aGl0ZScgd2lkdGg9JzI3JyBoZWlnaHQ9JzQwJy8+DQo8cGF0aCBmaWxsLXJ1bGU9J2V2ZW5vZGQnIGNsaXAtcnVsZT0nZXZlbm9kZCcgZD0nTTI2IDEzLjVDMjYgMTYuMzI1MyAyNS4wNjI3IDE4LjkzMTYgMjMuNDgyMSAyMS4wMjVDMjIuOTIwMyAyMS44MDY2IDIyLjE2MDkgMjIuNjM4NCAyMS4zMjAyIDIzLjU1OTFDMTguNDAwMSAyNi43NTcxIDE0LjUgMzEuMDI4NSAxNC41IDM4QzE0LjUgMzguNT
40UyMyAxNC4wNTIzIDM5IDEzLjUgMzlDMTIuOTQ3NyAzOSAxMi41IDM4LjU1MjMgMTIuNSAzOEMxMi41IDMxLjAyODUgOC41OTk4OSAyNi43NTcxIDUuNjc5ODQgMjMuNTU5MUM0LjgzOTE1IDIyLjYzODQgNC4wNzk2OSAyMS44MDY2IDMuNTE3OTMgMjEuMDI1QzEuOTM3MzEgMTguOTMxNiAxIDE2LjMyNTMgMSAxMy41QzEgNi41OTY0NCA2LjU5NjQ0IDEgMTMuNSAxQzIwLjQwMzYgMSAyNiA2LjU5NjQ0IDI2IDEzLjVaJy8+DQo8L21hc2s+DQo8cGF0aCBmaWxsLXJ1bGU9J2V2ZW5vZGQnIGNsaXAtcnVsZT0nZXZlbm9kZCcgZD0nTTI2IDEzLjVDMjYgMTYuMzI1MyAyNS4wNjI3IDE4LjkzMTYgMjMuNDgyMSAyMS4wMjVDMjIuOTIwMyAyMS44MDY2IDIyLjE2MDkgMjIuNjM4NCAyMS4zMjAyIDIzLjU1OTFDMTguNDAwMSAyNi43NTcxIDE0LjUgMzEuMDI4NSAxNC41IDM4QzE0LjUgMzguNTUyMyAxNC4wNTIzIDM5IDEzLjUgMzlDMTIuOTQ3NyAzOSAxMi41IDM4LjU1MjMgMTIuNSAzOEMxMi41IDMxLjAyODUgOC41OTk4OSAyNi43NTcxIDUuNjc5ODQgMjMuNTU5MUM0LjgzOTE1IDIyLjYzODQgNC4wNzk2OSAyMS44MDY2IDMuNTE3OTMgMjEuMDI1QzEuOTM3MzEgMTguOTMxNiAxIDE2LjMyNTMgMSAxMy41QzEgNi41OTY0NCA2LjU5NjQ0IDEgMTMuNSAxQzIwLjQwMzYgMSAyNiA2LjU5NjQ0IDI2IDEzLjVaJyBmaWxsPScjMDA0N0ZGJy8+DQo8cGF0aCBkPSdNMjMuNDgyMSAyMS4wMjVMMjIuNjg0IDIwLjQyMjRMMjIuNjc2OSAyMC40MzE4TDIyLjY3IDIwLjQ0MTRMMjMuNDgyMSAyMS4wMjVaTTIxLjMyMDIgMjMuNTU5MUwyMi4wNTg2IDI0LjIzMzRMMjEuMzIwMiAyMy41NTkxWk01LjY3OTg0IDIzLjU1OTFMNi40MTgzMSAyMi44ODQ4TDYuNDE4MzEgMjIuODg0OEw1LjY3OTg0IDIzLjU1OTFaTTMuNTE3OTMgMjEuMDI1TDQuMzI5OTUgMjAuNDQxNEw0LjMyMzA5IDIwLjQzMThMNC4zMTYgMjAuNDIyNUwzLjUxNzkzIDIxLjAyNVpNMjQuMjgwMSAyMS42Mjc2QzI1Ljk4NzMgMTkuMzY2NiAyNyAxNi41NTAxIDI3IDEzLjVIMjVDMjUgMTYuMTAwNCAyNC4xMzgxIDE4LjQ5NjYgMjIuNjg0IDIwLjQyMjRMMjQuMjgwMSAyMS42Mjc2Wk0yMi4wNTg2IDI0LjIzMzRDMjIuODg3MiAyMy4zMjYgMjMuNjkxMSAyMi40NDc3IDI0LjI5NDEgMjEuNjA4NkwyMi42NyAyMC40NDE0QzIyLjE0OTYgMjEuMTY1NiAyMS40MzQ1IDIxLjk1MDggMjAuNTgxNyAyMi44ODQ4TDIyLjA1ODYgMjQuMjMzNFpNMTUuNSAzOEMxNS41IDMxLjQ1MDYgMTkuMTM0NSAyNy40MzU5IDIyLjA1ODYgMjQuMjMzNEwyMC41ODE3IDIyLjg4NDhDMTcuNjY1OCAyNi4wNzgzIDEzLjUgMzAuNjA2NSAxMy41IDM4SDE1LjVaTTEzLjUgNDBDMTQuNjA0NiA0MCAxNS41IDM5LjEwNDYgMTUuNSAzOEgxMy41VjQwWk0xMS41IDM4QzExLjUgMzkuMTA0NiAxMi4zOTU0IDQwIDEzLjUgNDBWMzhIMTEuNVpNNC45NDEzNiAyNC4yMzM0QzcuODY1NTMgMjcuNDM1OSAxMS41IDMxLjQ1MDYgMTEuNSAzOEgxMy41QzEzLjUgMzAuNjA2NSA5LjMzNDI1IDI2LjA3ODMgNi40MTgzMSAyMi44ODQ4TDQuOTQxMzYgMjQuMjMzNFpNMi43MDU5MSAyMS42MDg3QzMuMzA4OTQgMjIuNDQ3NyA0LjExMjg0IDIzLjMyNiA0Ljk0MTM2IDI0LjIzMzRMNi40MTgzMSAyMi44ODQ4QzUuNTY1NDYgMjEuOTUwOCA0Ljg1MDQ1IDIxLjE2NTYgNC4zMjk5NSAyMC40NDE0TDIuNzA1OTEgMjEuNjA4N1pNMCAxMy41QzAgMTYuNTUwMSAxLjAxMjc0IDE5LjM2NjYgMi43MTk4NyAyMS42Mjc2TDQuMzE2IDIwLjQyMjVDMi44NjE4OCAxOC40OTY2IDIgMTYuMTAwNCAyIDEzLjVIMFpNMTMuNSAwQzYuMDQ0MTYgMCAwIDYuMDQ0MTYgMCAxMy41SDJDMiA3LjE0ODczIDcuMTQ4NzMgMiAxMy41IDJWMFpNMjcgMTMuNUMyNyA2LjA0NDE2IDIwLjk1NTggMCAxMy41IDBWMkMxOS44NTEzIDIgMjUgNy4xNDg3MyAyNSAxMy41SDI3WicgZmlsbD0ndXJsKCNwYWludDBfbGluZWFyXzQzOV84ODApJyBtYXNrPSd1cmwoI3BhdGgtMi1vdXRzaWRlLTFfNDM5Xzg4MCknLz4NCjxjaXJjbGUgY3g9JzEzLjUnIGN5PScxMy41JyByPSc0LjUnIGZpbGw9J2JsYWNrJyBmaWxsLW9wYWNpdHk9JzAuNScvPg0KPC9nPg0KPGRlZnM+DQo8ZmlsdGVyIGlkPSdmaWx0ZXIwX2ZfNDM5Xzg4MCcgeD0nNycgeT0nMzUnIHdpZHRoPScxMycgaGVpZ2h0PSc5JyBmaWx0ZXJVbml0cz0ndXNlclNwYWNlT25Vc2UnIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0nc1JHQic+DQo8ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PScwJyByZXN1bHQ9J0JhY2tncm91bmRJbWFnZUZpeCcvPg0KPGZlQmxlbmQgbW9kZT0nbm9ybWFsJyBpbj0nU291cmNlR3JhcGhpYycgaW4yPSdCYWNrZ3JvdW5kSW1hZ2VGaXgnIHJlc3VsdD0nc2hhcGUnLz4NCjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249JzEnIHJlc3VsdD0nZWZmZWN0MV9mb3JlZ3JvdW5kQmx1cl80MzlfODgwJy8+DQo8L2ZpbHRlcj4NCjxsaW5lYXJHcmFkaWVudCBpZD0ncGFpbnQwX2xpbmVhcl80MzlfODgwJyB4MT0nMTMuNScgeTE9JzEnIHgyPScxMy41JyB5Mj0nMzknIGdyYWRpZW50VW5pdHM9J3VzZXJTcGFjZU9uVXNlJz4NCjxzdG9wIHN0b3AtY29sb3I9J3doaXRlJy8+DQo8c3RvcCBvZmZzZXQ9JzEnIHN0b3AtY29sb3I9J3doaXRlJyBzdG9wLW9wYWNpdHk9JzAuNScvPg0KPC9saW5lYXJHcmFkaWVudD4NCjxjbGlwUGF0aCBpZD0nY2xpcDBfNDM5Xzg4MCc+DQo8cmVjdCB3aWR0aD0nMjcnIGhlaWdodD0nNDMnIGZpbGw9J3doaXRlJy8+DQo8L2NsaXBQYXRoPg0KPC9kZWZzPg0KPC9zdmc+",kn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iNDMiIHZpZXdCb3g9IjAgMCAyNyA0MyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzQzOV84NzMpIj4NCiAgPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZl80MzlfODczKSI+DQogIDxlbGxpcHNlIGN4PSIxMy41IiBjeT0iMzkuNSIgcng9IjQuNSIgcnk9IjIuNSIgZmlsbD0iYmxhY2siIGZpbGwtb3BhY2l0eT0iMC4xMiIvPg0KICA8L2c+DQogIDxtYXNrIGlkPSJwYXRoLTItb3V0c2lkZS0xXzQzOV84NzMiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjAiIHk9IjAiIHdpZHRoPSIyNyIgaGVpZ2h0PSI0MCIgZmlsbD0iYmxhY2siPg0KICA8cmVjdCBmaWxsPSJ3aGl0ZSIgd2lkdGg9IjI3IiBoZWlnaHQ9IjQwIi8+DQogIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMjYgMTMuNUMyNiAxNi4zMjUzIDI1LjA2MjcgMTguOTMxNiAyMy40ODIxIDIxLjAyNUMyMi45MjAzIDIxLjgwNjYgMjIuMTYwOSAyMi42Mzg0IDIxLjMyMDIgMjMuNTU5MUMxOC40MDAxIDI2Ljc1NzEgMTQuNSAzMS4wMjg1IDE0LjUgMzhDMTQuNSAzOC41NTIzIDE0LjA1MjMgMzkgMTMuNSAzOUMxMi45NDc3IDM5IDEyLjUgMzguNT
40UyMyAxMi41IDM4QzEyLjUgMzEuMDI4NSA4LjU5OTg5IDI2Ljc1NzEgNS42Nzk4NCAyMy41NTkxQzQuODM5MTUgMjIuNjM4NCA0LjA3OTY5IDIxLjgwNjYgMy41MTc5MyAyMS4wMjVDMS45MzczMSAxOC45MzE2IDEgMTYuMzI1MyAxIDEzLjVDMSA2LjU5NjQ0IDYuNTk2NDQgMSAxMy41IDFDMjAuNDAzNiAxIDI2IDYuNTk2NDQgMjYgMTMuNVoiLz4NCiAgPC9tYXNrPg0KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTI2IDEzLjVDMjYgMTYuMzI1MyAyNS4wNjI3IDE4LjkzMTYgMjMuNDgyMSAyMS4wMjVDMjIuOTIwMyAyMS44MDY2IDIyLjE2MDkgMjIuNjM4NCAyMS4zMjAyIDIzLjU1OTFDMTguNDAwMSAyNi43NTcxIDE0LjUgMzEuMDI4NSAxNC41IDM4QzE0LjUgMzguNTUyMyAxNC4wNTIzIDM5IDEzLjUgMzlDMTIuOTQ3NyAzOSAxMi41IDM4LjU1MjMgMTIuNSAzOEMxMi41IDMxLjAyODUgOC41OTk4OSAyNi43NTcxIDUuNjc5ODQgMjMuNTU5MUM0LjgzOTE1IDIyLjYzODQgNC4wNzk2OSAyMS44MDY2IDMuNTE3OTMgMjEuMDI1QzEuOTM3MzEgMTguOTMxNiAxIDE2LjMyNTMgMSAxMy41QzEgNi41OTY0NCA2LjU5NjQ0IDEgMTMuNSAxQzIwLjQwMzYgMSAyNiA2LjU5NjQ0IDI2IDEzLjVaIiBmaWxsPSIjRkYxRTJEIi8+DQogIDxwYXRoIGQ9Ik0yMy40ODIxIDIxLjAyNUwyMi42ODQgMjAuNDIyNEwyMi42NzY5IDIwLjQzMThMMjIuNjcgMjAuNDQxNEwyMy40ODIxIDIxLjAyNVpNMjEuMzIwMiAyMy41NTkxTDIyLjA1ODYgMjQuMjMzNEwyMS4zMjAyIDIzLjU1OTFaTTUuNjc5ODQgMjMuNTU5MUw2LjQxODMxIDIyLjg4NDhMNi40MTgzMSAyMi44ODQ4TDUuNjc5ODQgMjMuNTU5MVpNMy41MTc5MyAyMS4wMjVMNC4zMjk5NSAyMC40NDE0TDQuMzIzMDkgMjAuNDMxOEw0LjMxNiAyMC40MjI1TDMuNTE3OTMgMjEuMDI1Wk0yNC4yODAxIDIxLjYyNzZDMjUuOTg3MyAxOS4zNjY2IDI3IDE2LjU1MDEgMjcgMTMuNUgyNUMyNSAxNi4xMDA0IDI0LjEzODEgMTguNDk2NiAyMi42ODQgMjAuNDIyNEwyNC4yODAxIDIxLjYyNzZaTTIyLjA1ODYgMjQuMjMzNEMyMi44ODcyIDIzLjMyNiAyMy42OTExIDIyLjQ0NzcgMjQuMjk0MSAyMS42MDg2TDIyLjY3IDIwLjQ0MTRDMjIuMTQ5NiAyMS4xNjU2IDIxLjQzNDUgMjEuOTUwOCAyMC41ODE3IDIyLjg4NDhMMjIuMDU4NiAyNC4yMzM0Wk0xNS41IDM4QzE1LjUgMzEuNDUwNiAxOS4xMzQ1IDI3LjQzNTkgMjIuMDU4NiAyNC4yMzM0TDIwLjU4MTcgMjIuODg0OEMxNy42NjU4IDI2LjA3ODMgMTMuNSAzMC42MDY1IDEzLjUgMzhIMTUuNVpNMTMuNSA0MEMxNC42MDQ2IDQwIDE1LjUgMzkuMTA0NiAxNS41IDM4SDEzLjVWNDBaTTExLjUgMzhDMTEuNSAzOS4xMDQ2IDEyLjM5NTQgNDAgMTMuNSA0MFYzOEgxMS41Wk00Ljk0MTM2IDI0LjIzMzRDNy44NjU1MyAyNy40MzU5IDExLjUgMzEuNDUwNiAxMS41IDM4SDEzLjVDMTMuNSAzMC42MDY1IDkuMzM0MjUgMjYuMDc4MyA2LjQxODMxIDIyLjg4NDhMNC45NDEzNiAyNC4yMzM0Wk0yLjcwNTkxIDIxLjYwODdDMy4zMDg5NCAyMi40NDc3IDQuMTEyODQgMjMuMzI2IDQuOTQxMzYgMjQuMjMzNEw2LjQxODMxIDIyLjg4NDhDNS41NjU0NiAyMS45NTA4IDQuODUwNDUgMjEuMTY1NiA0LjMyOTk1IDIwLjQ0MTRMMi43MDU5MSAyMS42MDg3Wk0wIDEzLjVDMCAxNi41NTAxIDEuMDEyNzQgMTkuMzY2NiAyLjcxOTg3IDIxLjYyNzZMNC4zMTYgMjAuNDIyNUMyLjg2MTg4IDE4LjQ5NjYgMiAxNi4xMDA0IDIgMTMuNUgwWk0xMy41IDBDNi4wNDQxNiAwIDAgNi4wNDQxNiAwIDEzLjVIMkMyIDcuMTQ4NzMgNy4xNDg3MyAyIDEzLjUgMlYwWk0yNyAxMy41QzI3IDYuMDQ0MTYgMjAuOTU1OCAwIDEzLjUgMFYyQzE5Ljg1MTMgMiAyNSA3LjE0ODczIDI1IDEzLjVIMjdaIiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXJfNDM5Xzg3MykiIG1hc2s9InVybCgjcGF0aC0yLW91dHNpZGUtMV80MzlfODczKSIvPg0KICA8Y2lyY2xlIGN4PSIxMy41IiBjeT0iMTMuNSIgcj0iNC41IiBmaWxsPSJibGFjayIgZmlsbC1vcGFjaXR5PSIwLjUiLz4NCiAgPC9nPg0KICA8ZGVmcz4NCiAgPGZpbHRlciBpZD0iZmlsdGVyMF9mXzQzOV84NzMiIHg9IjciIHk9IjM1IiB3aWR0aD0iMTMiIGhlaWdodD0iOSIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiPg0KICA8ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPg0KICA8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJzaGFwZSIvPg0KICA8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxIiByZXN1bHQ9ImVmZmVjdDFfZm9yZWdyb3VuZEJsdXJfNDM5Xzg3MyIvPg0KICA8L2ZpbHRlcj4NCiAgPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzQzOV84NzMiIHgxPSIxMy41IiB5MT0iMSIgeDI9IjEzLjUiIHkyPSIzOSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPg0KICA8c3RvcCBzdG9wLWNvbG9yPSJ3aGl0ZSIvPg0KICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIiBzdG9wLW9wYWNpdHk9IjAuMzUiLz4NCiAgPC9saW5lYXJHcmFkaWVudD4NCiAgPGNsaXBQYXRoIGlkPSJjbGlwMF80MzlfODczIj4NCiAgPHJlY3Qgd2lkdGg9IjI3IiBoZWlnaHQ9IjQzIiBmaWxsPSJ3aGl0ZSIvPg0KICA8L2NsaXBQYXRoPg0KICA8L2RlZnM+DQogIDwvc3ZnPg0KICA=",fo=({offices:t,googleMapsApiKey:e,isLocationPage:n})=>{const{isLoaded:i}=An({googleMapsApiKey:e??""});return i?_.jsx(uo,{offices:t,isLocationPage:n}):_.jsx("article",{className:"fa-spinner__container",children:_.jsx(Yn,{})})},uo=({offices:t,isLocationPage:e})=>{const[n,i]=o.useState(null),[s,r]=o.useState(),a=o.useRef(null),u=t??[],c=document.querySelector(".fa-component--department-finder"),p=c?c.getAttribute("collaborator-office-label")??"":"",d=c?c.getAttribute("falck-office-label")??"":"",f=new google.maps.LatLngBounds,g=f.getCenter(),x={controlSize:25,maxZoom:15};Qn(a,()=>{i(null)}),o.useEffect(()=>{s&&h(s)},[t]);const h=v=>{v.setCenter(g),v.panToBounds(f),v.fitBounds(f)},L=()=>{const v=u.filter(y=>y.IsVisible);v.forEach(y=>f.extend(y.GeoLocation));const k=Pt.useCallback(function(m){r(m),h(m)},[]);return _.jsx(ii,{onLoad:k,options:x,mapContainerClassName:"fa-google-maps",onClick:()=>{i(null)},children:v.map((y,m)=>_.jsx(pi,{visible:y.IsVisible,icon:b(y),position:y.GeoLocation,onClick:()=>{i(y.Id)},children:S(y)},m))})},b=v=>
40{const k={url:kn,anchor:new google.maps.Point(15,30)};return k.url=v!=null&&v.IsPartner?lo:kn,k},S=v=>n===v.Id?_.jsx(Wi,{onCloseClick:()=>{i(null)},children:_.jsxs("article",{className:"fa-google-maps__info-window",ref:a,children:[_.jsx("h2",{className:"fa-google-maps__info-window-title fa-theme-color",children:v==null?void 0:v.OfficeName}),_.jsx("p",{className:"fa-rich-text fa-theme-color",children:v!=null&&v.IsPartner?p:d}),!e&&(v==null?void 0:v.Url)&&_.jsx("a",{href:v==null?void 0:v.Url,className:"fa-atom-button",children:v==null?void 0:v.ViewDetailsLabel}),e&&(v==null?void 0:v.GoogleMapsShareLink)&&_.jsx("a",{href:v==null?void 0:v.GoogleMapsShareLink,target:"_blank",className:"fa-atom-button",rel:"noreferrer",children:v==null?void 0:v.GetDirectionsLabel})]})}):null;return _.jsx(Pt.Fragment,{children:L()})};export{fo as GoogleMapComponent};
41//# sourceMappingURL=fa-google-maps-Byz5hSMv.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.