@tracktor/map 0.5.8 → 0.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/MarkerMap/MarkerMap.d.ts +2 -57
- package/dist/main.js +153 -152
- package/dist/main.umd.cjs +8 -8
- package/dist/utils/loadMarkers.d.ts +1 -3
- package/package.json +1 -1
|
@@ -1,59 +1,4 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { MarkerMapProps } from '../../types/MarkerMapProps.ts';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* with customizable markers and behavior.
|
|
6
|
-
*
|
|
7
|
-
* It supports features like:
|
|
8
|
-
* - Auto-fitting bounds to markers
|
|
9
|
-
* - Custom marker icons and tooltips
|
|
10
|
-
* - Light/dark theming
|
|
11
|
-
* - Fly animations and zooming
|
|
12
|
-
* - Popup display (on click or hover)
|
|
13
|
-
* - Custom styling for the map container
|
|
14
|
-
* - Manual or automatic control of map centering and zoom
|
|
15
|
-
*
|
|
16
|
-
* @param {object} props - Props used to configure the map rendering.
|
|
17
|
-
* @param {boolean} [props.fitBounds] - If true, automatically adjusts the viewport to fit all markers.
|
|
18
|
-
* @param {number} [props.fitBoundsPadding] - Padding in pixels when fitting bounds to markers.
|
|
19
|
-
* @param {LngLatLike | number[]} [props.center] - Initial center of the map [lng, lat].
|
|
20
|
-
* @param {string} [props.mapStyle] - Mapbox style URL or identifier (e.g. "mapbox://styles/mapbox/streets-v11").
|
|
21
|
-
* @param {number} [props.zoom] - Initial zoom level of the map.
|
|
22
|
-
* @param {number} [props.zoomFlyFrom] - Zoom level to use before initiating a flyTo animation.
|
|
23
|
-
* @param {string} [props.popupMaxWidth] - Maximum width of popups (e.g., "200px").
|
|
24
|
-
* @param {number | string} [props.width="100%"] - Width of the map container.
|
|
25
|
-
* @param {number | string} [props.height=300] - Height of the map container.
|
|
26
|
-
* @param {boolean} [props.loading] - Optional flag indicating if the map is in loading state.
|
|
27
|
-
* @param {string} [props.markerImageURL] - URL of a custom image used for default marker icons.
|
|
28
|
-
* @param {SxProps} [props.containerStyle] - Style object (MUI `sx`) to customize the map container.
|
|
29
|
-
* @param {boolean} [props.disableFlyTo] - If true, disables flyTo animation when focusing on a marker.
|
|
30
|
-
* @param {number} [props.flyToDuration] - Duration of fly animation in milliseconds.
|
|
31
|
-
* @param {number} [props.fitBoundDuration] - Duration of fitBounds animation in milliseconds.
|
|
32
|
-
* @param {boolean} [props.square] - If true, forces the map container to be a square.
|
|
33
|
-
* @param {number | string} [props.openPopup] - ID of the marker whose popup should be open by default.
|
|
34
|
-
* @param {boolean} [props.openPopupOnHover] - If true, opens the popup on marker hover instead of click.
|
|
35
|
-
* @param {MarkerProps[]} [props.markers] - Array of marker objects to render on the map.
|
|
36
|
-
* @param {(lng: number, lat: number) => void} [props.onMapClick] - Callback triggered when the map is clicked.
|
|
37
|
-
* @param {"light" | "dark" | ThemeOptions} [props.theme] - Optional theme override for map rendering.
|
|
38
|
-
*
|
|
39
|
-
* @returns {ReactElement} The rendered map component with optional markers and behavior.
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* ```tsx
|
|
43
|
-
* <MarkerMap
|
|
44
|
-
* center={[2.3488, 48.8534]}
|
|
45
|
-
* zoom={13}
|
|
46
|
-
* fitBounds
|
|
47
|
-
* markers={[
|
|
48
|
-
* { id: 1, lat: 48.8534, lng: 2.3488, name: "Marker 1" },
|
|
49
|
-
* { id: 2, lat: 48.8566, lng: 2.3522, name: "Marker 2" },
|
|
50
|
-
* ]}
|
|
51
|
-
* openPopupOnHover
|
|
52
|
-
* popupMaxWidth="250px"
|
|
53
|
-
* mapStyle="mapbox://styles/mapbox/light-v10"
|
|
54
|
-
* theme="light"
|
|
55
|
-
* />
|
|
56
|
-
* ```
|
|
57
|
-
*/
|
|
58
|
-
declare const MarkerMap: ({ containerStyle, square, theme, height, width, ...props }: MarkerMapProps) => ReactElement;
|
|
59
|
-
export default MarkerMap;
|
|
3
|
+
declare const _default: import('react').MemoExoticComponent<({ containerStyle, square, theme, height, width, ...props }: MarkerMapProps) => ReactElement>;
|
|
4
|
+
export default _default;
|
package/dist/main.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(`.mapboxgl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.mapboxgl-canvas{left:0;position:absolute;top:0}.mapboxgl-map:-webkit-full-screen{height:100%;width:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:grab;-webkit-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:none}.mapboxgl-ctrl-bottom,.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-left,.mapboxgl-ctrl-right,.mapboxgl-ctrl-top,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.mapboxgl-ctrl-top-left{left:0;top:0}.mapboxgl-ctrl-top{left:50%;top:0;transform:translate(-50%)}.mapboxgl-ctrl-top-right{right:0;top:0}.mapboxgl-ctrl-right{right:0;top:50%;transform:translateY(-50%)}.mapboxgl-ctrl-bottom-right{bottom:0;right:0}.mapboxgl-ctrl-bottom{bottom:0;left:50%;transform:translate(-50%)}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-left{left:0;top:50%;transform:translateY(-50%)}.mapboxgl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{float:left;margin:10px 0 0 10px}.mapboxgl-ctrl-top .mapboxgl-ctrl{float:left;margin:10px 0}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{float:right;margin:10px 10px 0 0}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl,.mapboxgl-ctrl-right .mapboxgl-ctrl{float:right;margin:0 10px 10px 0}.mapboxgl-ctrl-bottom .mapboxgl-ctrl{float:left;margin:10px 0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl,.mapboxgl-ctrl-left .mapboxgl-ctrl{float:left;margin:0 0 10px 10px}.mapboxgl-ctrl-group{background:#fff;border-radius:4px}.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{background-color:initial;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;overflow:hidden;padding:0;width:29px}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:initial}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl-group button:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:only-child{border-radius:inherit}.mapboxgl-ctrl button:not(:disabled):hover{background-color:#0000000d}.mapboxgl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{animation:mapboxgl-spin 2s linear infinite}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23000'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}}@keyframes mapboxgl-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='0.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='0.9' fill='%23fff'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media (-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:initial;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='1' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='1' fill='%23fff'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='1' stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='1' fill='%23000'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{background-color:#ffffff80;margin:0;padding:0 5px}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{background-color:#fff;border-radius:12px;box-sizing:initial;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{background-color:#ffffff80;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:#0000000d}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{right:0;top:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{left:0;top:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}.mapboxgl-ctrl-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.mapboxgl-ctrl-attrib a{color:#000000bf;text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:#ffffffbf;border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px;white-space:nowrap}.mapboxgl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{flex-direction:column-reverse}.mapboxgl-popup-anchor-left{flex-direction:row}.mapboxgl-popup-anchor-right{flex-direction:row-reverse}.mapboxgl-popup-tip{border:10px solid #0000;height:0;width:0;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.mapboxgl-popup-close-button{background-color:initial;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.mapboxgl-popup-close-button:hover{background-color:#0000000d}.mapboxgl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px #0000001a;padding:10px 10px 15px;pointer-events:auto;position:relative}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{left:0;opacity:1;position:absolute;top:0;transition:opacity .2s;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.mapboxgl-user-location-dot:before{animation:mapboxgl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.mapboxgl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px #00000059;box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading{height:0;width:0}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:after,.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:before{border-bottom:7.5px solid #4aa1eb;content:"";position:absolute}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:before{border-left:7.5px solid #0000;transform:translateY(-28px) skewY(-20deg)}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:after{border-right:7.5px solid #0000;transform:translate(7.5px,-28px) skewY(20deg)}@keyframes mapboxgl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}@media print{.mapbox-improve-map{display:none}}.mapboxgl-scroll-zoom-blocker,.mapboxgl-touch-pan-blocker{align-items:center;background:#000000b3;color:#fff;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;height:100%;justify-content:center;left:0;opacity:0;pointer-events:none;position:absolute;text-align:center;top:0;transition:opacity .75s ease-in-out;transition-delay:1s;width:100%}.mapboxgl-scroll-zoom-blocker-show,.mapboxgl-touch-pan-blocker-show{opacity:1;transition:opacity .1s ease-in-out}.mapboxgl-canvas-container.mapboxgl-touch-pan-blocker-override.mapboxgl-scrollable-page,.mapboxgl-canvas-container.mapboxgl-touch-pan-blocker-override.mapboxgl-scrollable-page .mapboxgl-canvas{touch-action:pan-x pan-y}`)),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
import le, { createContext as _r, useEffect as
|
|
3
|
-
import { LicenseInfo as
|
|
4
|
-
import fe, { LngLatBounds as
|
|
5
|
-
import { useTheme as
|
|
2
|
+
import le, { createContext as _r, useEffect as I, useMemo as Cr, useRef as Z, useState as xr, memo as Tr } from "react";
|
|
3
|
+
import { LicenseInfo as Sr } from "@mui/x-license";
|
|
4
|
+
import fe, { LngLatBounds as Pr, Marker as Or, Popup as wr, Map as jr } from "mapbox-gl";
|
|
5
|
+
import { useTheme as Ar, Box as ce, GlobalStyles as kr, Skeleton as Fr } from "@tracktor/design-system";
|
|
6
6
|
import Ir from "react-dom";
|
|
7
|
-
const
|
|
7
|
+
const ct = 2.333, lt = 46.8677;
|
|
8
8
|
var Q = { exports: {} }, B = {};
|
|
9
9
|
/**
|
|
10
10
|
* @license React
|
|
@@ -16,15 +16,15 @@ var Q = { exports: {} }, B = {};
|
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
17
|
*/
|
|
18
18
|
var Ne;
|
|
19
|
-
function
|
|
19
|
+
function Lr() {
|
|
20
20
|
if (Ne) return B;
|
|
21
21
|
Ne = 1;
|
|
22
22
|
var r = le, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
23
|
-
function v(d,
|
|
24
|
-
var
|
|
25
|
-
p !== void 0 && (m = "" + p),
|
|
26
|
-
for (
|
|
27
|
-
if (d && d.defaultProps) for (
|
|
23
|
+
function v(d, c, p) {
|
|
24
|
+
var u, y = {}, m = null, x = null;
|
|
25
|
+
p !== void 0 && (m = "" + p), c.key !== void 0 && (m = "" + c.key), c.ref !== void 0 && (x = c.ref);
|
|
26
|
+
for (u in c) o.call(c, u) && !f.hasOwnProperty(u) && (y[u] = c[u]);
|
|
27
|
+
if (d && d.defaultProps) for (u in c = d.defaultProps, c) y[u] === void 0 && (y[u] = c[u]);
|
|
28
28
|
return { $$typeof: n, type: d, key: m, ref: x, props: y, _owner: s.current };
|
|
29
29
|
}
|
|
30
30
|
return B.Fragment = a, B.jsx = v, B.jsxs = v, B;
|
|
@@ -40,9 +40,9 @@ var V = {};
|
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
41
|
*/
|
|
42
42
|
var Me;
|
|
43
|
-
function
|
|
43
|
+
function Dr() {
|
|
44
44
|
return Me || (Me = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
-
var r = le, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), d = Symbol.for("react.context"),
|
|
45
|
+
var r = le, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), d = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), z = Symbol.iterator, q = "@@iterator";
|
|
46
46
|
function G(e) {
|
|
47
47
|
if (e === null || typeof e != "object")
|
|
48
48
|
return null;
|
|
@@ -70,7 +70,7 @@ function Lr() {
|
|
|
70
70
|
var L = !1, P = !1, ee = !1, w = !1, qe = !1, de;
|
|
71
71
|
de = Symbol.for("react.module.reference");
|
|
72
72
|
function Ge(e) {
|
|
73
|
-
return !!(typeof e == "string" || typeof e == "function" || e === o || e === f || qe || e === s || e === p || e ===
|
|
73
|
+
return !!(typeof e == "string" || typeof e == "function" || e === o || e === f || qe || e === s || e === p || e === u || w || e === x || L || P || ee || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof === y || e.$$typeof === v || e.$$typeof === d || e.$$typeof === c || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
76
76
|
// with.
|
|
@@ -104,7 +104,7 @@ function Lr() {
|
|
|
104
104
|
return "StrictMode";
|
|
105
105
|
case p:
|
|
106
106
|
return "Suspense";
|
|
107
|
-
case
|
|
107
|
+
case u:
|
|
108
108
|
return "SuspenseList";
|
|
109
109
|
}
|
|
110
110
|
if (typeof e == "object")
|
|
@@ -115,7 +115,7 @@ function Lr() {
|
|
|
115
115
|
case v:
|
|
116
116
|
var i = e;
|
|
117
117
|
return pe(i._context) + ".Provider";
|
|
118
|
-
case
|
|
118
|
+
case c:
|
|
119
119
|
return Je(e, e.render, "ForwardRef");
|
|
120
120
|
case y:
|
|
121
121
|
var l = e.displayName || null;
|
|
@@ -131,7 +131,7 @@ function Lr() {
|
|
|
131
131
|
}
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
134
|
-
var
|
|
134
|
+
var k = Object.assign, Y = 0, ve, ye, ge, be, Ee, he, me;
|
|
135
135
|
function Re() {
|
|
136
136
|
}
|
|
137
137
|
Re.__reactDisabledLog = !0;
|
|
@@ -167,25 +167,25 @@ function Lr() {
|
|
|
167
167
|
writable: !0
|
|
168
168
|
};
|
|
169
169
|
Object.defineProperties(console, {
|
|
170
|
-
log:
|
|
170
|
+
log: k({}, e, {
|
|
171
171
|
value: ve
|
|
172
172
|
}),
|
|
173
|
-
info:
|
|
173
|
+
info: k({}, e, {
|
|
174
174
|
value: ye
|
|
175
175
|
}),
|
|
176
|
-
warn:
|
|
176
|
+
warn: k({}, e, {
|
|
177
177
|
value: ge
|
|
178
178
|
}),
|
|
179
|
-
error:
|
|
179
|
+
error: k({}, e, {
|
|
180
180
|
value: be
|
|
181
181
|
}),
|
|
182
|
-
group:
|
|
182
|
+
group: k({}, e, {
|
|
183
183
|
value: Ee
|
|
184
184
|
}),
|
|
185
|
-
groupCollapsed:
|
|
185
|
+
groupCollapsed: k({}, e, {
|
|
186
186
|
value: he
|
|
187
187
|
}),
|
|
188
|
-
groupEnd:
|
|
188
|
+
groupEnd: k({}, e, {
|
|
189
189
|
value: me
|
|
190
190
|
})
|
|
191
191
|
});
|
|
@@ -280,8 +280,8 @@ function Lr() {
|
|
|
280
280
|
} finally {
|
|
281
281
|
ne = !1, re.current = h, He(), Error.prepareStackTrace = E;
|
|
282
282
|
}
|
|
283
|
-
var N = e ? e.displayName || e.name : "",
|
|
284
|
-
return typeof e == "function" && K.set(e,
|
|
283
|
+
var N = e ? e.displayName || e.name : "", F = N ? J(N) : "";
|
|
284
|
+
return typeof e == "function" && K.set(e, F), F;
|
|
285
285
|
}
|
|
286
286
|
function Qe(e, t, i) {
|
|
287
287
|
return _e(e, !1);
|
|
@@ -300,12 +300,12 @@ function Lr() {
|
|
|
300
300
|
switch (e) {
|
|
301
301
|
case p:
|
|
302
302
|
return J("Suspense");
|
|
303
|
-
case
|
|
303
|
+
case u:
|
|
304
304
|
return J("SuspenseList");
|
|
305
305
|
}
|
|
306
306
|
if (typeof e == "object")
|
|
307
307
|
switch (e.$$typeof) {
|
|
308
|
-
case
|
|
308
|
+
case c:
|
|
309
309
|
return Qe(e.render);
|
|
310
310
|
case y:
|
|
311
311
|
return H(e.type, t, i);
|
|
@@ -492,7 +492,7 @@ Check the render method of \`` + e + "`.";
|
|
|
492
492
|
function dr(e) {
|
|
493
493
|
return "";
|
|
494
494
|
}
|
|
495
|
-
var
|
|
495
|
+
var ke = {};
|
|
496
496
|
function pr(e) {
|
|
497
497
|
{
|
|
498
498
|
var t = Ae();
|
|
@@ -505,27 +505,27 @@ Check the top-level render call using <` + i + ">.");
|
|
|
505
505
|
return t;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function Fe(e, t) {
|
|
509
509
|
{
|
|
510
510
|
if (!e._store || e._store.validated || e.key != null)
|
|
511
511
|
return;
|
|
512
512
|
e._store.validated = !0;
|
|
513
513
|
var i = pr(t);
|
|
514
|
-
if (
|
|
514
|
+
if (ke[i])
|
|
515
515
|
return;
|
|
516
|
-
|
|
516
|
+
ke[i] = !0;
|
|
517
517
|
var l = "";
|
|
518
518
|
e && e._owner && e._owner !== ie.current && (l = " It was passed a child from " + A(e._owner.type) + "."), D(e), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, l), D(null);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function Ie(e, t) {
|
|
522
522
|
{
|
|
523
523
|
if (typeof e != "object")
|
|
524
524
|
return;
|
|
525
525
|
if (oe(e))
|
|
526
526
|
for (var i = 0; i < e.length; i++) {
|
|
527
527
|
var l = e[i];
|
|
528
|
-
se(l) &&
|
|
528
|
+
se(l) && Fe(l, t);
|
|
529
529
|
}
|
|
530
530
|
else if (se(e))
|
|
531
531
|
e._store && (e._store.validated = !0);
|
|
@@ -533,7 +533,7 @@ Check the top-level render call using <` + i + ">.");
|
|
|
533
533
|
var E = G(e);
|
|
534
534
|
if (typeof E == "function" && E !== e.entries)
|
|
535
535
|
for (var h = E.call(e), b; !(b = h.next()).done; )
|
|
536
|
-
se(b.value) &&
|
|
536
|
+
se(b.value) && Fe(b.value, t);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
}
|
|
@@ -545,7 +545,7 @@ Check the top-level render call using <` + i + ">.");
|
|
|
545
545
|
var i;
|
|
546
546
|
if (typeof t == "function")
|
|
547
547
|
i = t.propTypes;
|
|
548
|
-
else if (typeof t == "object" && (t.$$typeof ===
|
|
548
|
+
else if (typeof t == "object" && (t.$$typeof === c || // Note: Memo only checks outer props here.
|
|
549
549
|
// Inner props are checked in the reconciler.
|
|
550
550
|
t.$$typeof === y))
|
|
551
551
|
i = t.propTypes;
|
|
@@ -595,25 +595,25 @@ Check the top-level render call using <` + i + ">.");
|
|
|
595
595
|
if (l)
|
|
596
596
|
if (oe(O)) {
|
|
597
597
|
for (var N = 0; N < O.length; N++)
|
|
598
|
-
|
|
598
|
+
Ie(O[N], e);
|
|
599
599
|
Object.freeze && Object.freeze(O);
|
|
600
600
|
} else
|
|
601
601
|
C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
602
602
|
else
|
|
603
|
-
|
|
603
|
+
Ie(O, e);
|
|
604
604
|
}
|
|
605
605
|
if (U.call(t, "key")) {
|
|
606
|
-
var
|
|
606
|
+
var F = A(e), S = Object.keys(t).filter(function(Rr) {
|
|
607
607
|
return Rr !== "key";
|
|
608
608
|
}), ue = S.length > 0 ? "{key: someKey, " + S.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
609
|
-
if (!Le[
|
|
609
|
+
if (!Le[F + ue]) {
|
|
610
610
|
var mr = S.length > 0 ? "{" + S.join(": ..., ") + ": ...}" : "{}";
|
|
611
611
|
C(`A props object containing a "key" prop is being spread into JSX:
|
|
612
612
|
let props = %s;
|
|
613
613
|
<%s {...props} />
|
|
614
614
|
React keys must be passed directly to JSX without using spread:
|
|
615
615
|
let props = %s;
|
|
616
|
-
<%s key={someKey} {...props} />`, ue,
|
|
616
|
+
<%s key={someKey} {...props} />`, ue, F, mr, F), Le[F + ue] = !0;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
619
|
return e === o ? yr(_) : vr(_), _;
|
|
@@ -630,16 +630,16 @@ React keys must be passed directly to JSX without using spread:
|
|
|
630
630
|
}()), V;
|
|
631
631
|
}
|
|
632
632
|
var $e;
|
|
633
|
-
function
|
|
634
|
-
return $e || ($e = 1, process.env.NODE_ENV === "production" ? Q.exports =
|
|
633
|
+
function Nr() {
|
|
634
|
+
return $e || ($e = 1, process.env.NODE_ENV === "production" ? Q.exports = Lr() : Q.exports = Dr()), Q.exports;
|
|
635
635
|
}
|
|
636
|
-
var $ =
|
|
637
|
-
const
|
|
636
|
+
var $ = Nr();
|
|
637
|
+
const Mr = _r({
|
|
638
638
|
licenceMapbox: "",
|
|
639
639
|
licenseMuiX: ""
|
|
640
|
-
}),
|
|
641
|
-
|
|
642
|
-
n &&
|
|
640
|
+
}), ft = ({ children: r, licenseMuiX: n, licenceMapbox: a }) => {
|
|
641
|
+
I(() => {
|
|
642
|
+
n && Sr.setLicenseKey(n);
|
|
643
643
|
}, [n]);
|
|
644
644
|
const o = Cr(
|
|
645
645
|
() => ({
|
|
@@ -648,8 +648,8 @@ const Nr = _r({
|
|
|
648
648
|
}),
|
|
649
649
|
[n, a]
|
|
650
650
|
);
|
|
651
|
-
return a && (fe.accessToken = a), /* @__PURE__ */ $.jsx(
|
|
652
|
-
},
|
|
651
|
+
return a && (fe.accessToken = a), /* @__PURE__ */ $.jsx(Mr.Provider, { value: o, children: r });
|
|
652
|
+
}, $r = ({
|
|
653
653
|
map: r,
|
|
654
654
|
disableFlyTo: n,
|
|
655
655
|
flyToDuration: a,
|
|
@@ -659,19 +659,19 @@ const Nr = _r({
|
|
|
659
659
|
fitBoundDuration: v,
|
|
660
660
|
fitBoundsPadding: d
|
|
661
661
|
}) => {
|
|
662
|
-
const
|
|
663
|
-
|
|
664
|
-
if (!r.current || (!n && !
|
|
662
|
+
const c = Z(!1);
|
|
663
|
+
I(() => {
|
|
664
|
+
if (!r.current || (!n && !c.current && (r.current.flyTo({
|
|
665
665
|
duration: a,
|
|
666
666
|
zoom: o
|
|
667
|
-
}),
|
|
668
|
-
const p = new
|
|
667
|
+
}), c.current = !0), !s || !(f != null && f.length) || f.length < 2)) return;
|
|
668
|
+
const p = new Pr(), u = f.filter((y) => {
|
|
669
669
|
const m = Number(y.lng), x = Number(y.lat);
|
|
670
|
-
return
|
|
670
|
+
return nt(x, m);
|
|
671
671
|
});
|
|
672
|
-
if (!(
|
|
673
|
-
for (let y = 0; y <
|
|
674
|
-
const m = Number(
|
|
672
|
+
if (!(u.length < 2)) {
|
|
673
|
+
for (let y = 0; y < u.length; y += 1) {
|
|
674
|
+
const m = Number(u[y].lng), x = Number(u[y].lat);
|
|
675
675
|
p.extend([m, x]);
|
|
676
676
|
}
|
|
677
677
|
r.current.fitBounds(p, {
|
|
@@ -682,7 +682,7 @@ const Nr = _r({
|
|
|
682
682
|
}, [f, s, d, a, o, v, n, r]);
|
|
683
683
|
};
|
|
684
684
|
var M = {}, ze;
|
|
685
|
-
function
|
|
685
|
+
function zr() {
|
|
686
686
|
if (ze) return M;
|
|
687
687
|
ze = 1;
|
|
688
688
|
var r = Ir;
|
|
@@ -708,8 +708,8 @@ function $r() {
|
|
|
708
708
|
}
|
|
709
709
|
return M;
|
|
710
710
|
}
|
|
711
|
-
var Ye =
|
|
712
|
-
const
|
|
711
|
+
var Ye = zr();
|
|
712
|
+
const Wr = ({ palette: r, type: n }) => {
|
|
713
713
|
const a = r.mode === "dark" ? "black" : "white", o = r.secondary.main, s = r.info.main;
|
|
714
714
|
switch (n) {
|
|
715
715
|
case "dropOff":
|
|
@@ -727,16 +727,16 @@ const zr = ({ palette: r, type: n }) => {
|
|
|
727
727
|
"circle-stroke-width": 8
|
|
728
728
|
};
|
|
729
729
|
}
|
|
730
|
-
},
|
|
730
|
+
}, Yr = (r, n, a, o) => {
|
|
731
731
|
const s = {
|
|
732
|
-
features: a.map((
|
|
732
|
+
features: a.map((c) => ({
|
|
733
733
|
geometry: {
|
|
734
|
-
coordinates:
|
|
734
|
+
coordinates: c.geometry.coordinates,
|
|
735
735
|
type: "Point"
|
|
736
736
|
},
|
|
737
737
|
properties: {
|
|
738
|
-
id:
|
|
739
|
-
...
|
|
738
|
+
id: c.properties.id,
|
|
739
|
+
...c.properties
|
|
740
740
|
},
|
|
741
741
|
type: "Feature"
|
|
742
742
|
})),
|
|
@@ -746,17 +746,17 @@ const zr = ({ palette: r, type: n }) => {
|
|
|
746
746
|
data: s,
|
|
747
747
|
type: "geojson"
|
|
748
748
|
});
|
|
749
|
-
const v = [...s.features].sort((
|
|
749
|
+
const v = [...s.features].sort((c, p) => {
|
|
750
750
|
var m, x;
|
|
751
|
-
const
|
|
752
|
-
return
|
|
751
|
+
const u = ((m = c.properties) == null ? void 0 : m.zIndex) || 0, y = ((x = p.properties) == null ? void 0 : x.zIndex) || 0;
|
|
752
|
+
return u - y;
|
|
753
753
|
}), d = r.getStyle().layers;
|
|
754
|
-
d == null || d.forEach((
|
|
755
|
-
|
|
756
|
-
}), v.forEach((
|
|
757
|
-
const { description: p, id:
|
|
754
|
+
d == null || d.forEach((c) => {
|
|
755
|
+
c.id.startsWith("marker-") && r.getLayer(c.id) && r.removeLayer(c.id);
|
|
756
|
+
}), v.forEach((c) => {
|
|
757
|
+
const { description: p, id: u } = c.properties || {}, y = Wr({ palette: o, type: p }), m = `marker-${u}`;
|
|
758
758
|
r.addLayer({
|
|
759
|
-
filter: ["==", "id",
|
|
759
|
+
filter: ["==", "id", u],
|
|
760
760
|
id: m,
|
|
761
761
|
layout: {
|
|
762
762
|
visibility: "visible"
|
|
@@ -766,25 +766,25 @@ const zr = ({ palette: r, type: n }) => {
|
|
|
766
766
|
type: "circle"
|
|
767
767
|
});
|
|
768
768
|
});
|
|
769
|
-
},
|
|
769
|
+
}, Ur = (r, n) => {
|
|
770
770
|
document.querySelectorAll(".react-custom-marker").forEach((s) => s.remove()), [...n].sort((s, f) => {
|
|
771
|
-
var
|
|
772
|
-
const v = ((
|
|
771
|
+
var c, p;
|
|
772
|
+
const v = ((c = s.properties) == null ? void 0 : c.zIndex) || 0, d = ((p = f.properties) == null ? void 0 : p.zIndex) || 0;
|
|
773
773
|
return v - d;
|
|
774
774
|
}).forEach((s) => {
|
|
775
|
-
const { IconComponent: f, iconProps: v, onClick: d, zIndex:
|
|
775
|
+
const { IconComponent: f, iconProps: v, onClick: d, zIndex: c } = s.properties || {}, { coordinates: p } = s.geometry;
|
|
776
776
|
if (f && p.length >= 2) {
|
|
777
|
-
const
|
|
778
|
-
|
|
777
|
+
const u = document.createElement("div");
|
|
778
|
+
u.className = "react-custom-marker", u.style.position = "absolute", c !== void 0 && (u.style.zIndex = c.toString());
|
|
779
779
|
const y = document.createElement("div"), m = Ye.createRoot(y);
|
|
780
|
-
f && m.render(le.createElement(f, v || {})),
|
|
780
|
+
f && m.render(le.createElement(f, v || {})), u.appendChild(y);
|
|
781
781
|
const x = () => {
|
|
782
782
|
d == null || d(s);
|
|
783
783
|
};
|
|
784
|
-
|
|
784
|
+
u.addEventListener("click", x), new Or(u).setLngLat([p[0], p[1]]).addTo(r);
|
|
785
785
|
}
|
|
786
786
|
});
|
|
787
|
-
},
|
|
787
|
+
}, Br = (r) => ({
|
|
788
788
|
features: (r == null ? void 0 : r.map((n, a) => ({
|
|
789
789
|
geometry: {
|
|
790
790
|
coordinates: [
|
|
@@ -806,29 +806,30 @@ const zr = ({ palette: r, type: n }) => {
|
|
|
806
806
|
type: "Feature"
|
|
807
807
|
}))) || [],
|
|
808
808
|
type: "FeatureCollection"
|
|
809
|
-
}),
|
|
810
|
-
if (
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
809
|
+
}), Vr = ({ map: r, palette: n, markers: a }) => {
|
|
810
|
+
if (!r.current)
|
|
811
|
+
return;
|
|
812
|
+
const o = Br(a), s = o.features.filter((v) => {
|
|
813
|
+
var d;
|
|
814
|
+
return ((d = v.properties) == null ? void 0 : d.IconComponent) === void 0;
|
|
814
815
|
});
|
|
815
|
-
|
|
816
|
-
const
|
|
817
|
-
var
|
|
818
|
-
return (
|
|
816
|
+
s.length && Yr(r.current, "markerProps", s, n);
|
|
817
|
+
const f = o.features.filter((v) => {
|
|
818
|
+
var d;
|
|
819
|
+
return (d = v.properties) == null ? void 0 : d.IconComponent;
|
|
819
820
|
});
|
|
820
|
-
|
|
821
|
-
},
|
|
822
|
-
|
|
823
|
-
if (!r.current || a)
|
|
821
|
+
f.length && Ur(r.current, f);
|
|
822
|
+
}, qr = ({ map: r, markers: n, markersAreInvalid: a, palette: o, setLoadingMapBox: s }) => {
|
|
823
|
+
I(() => {
|
|
824
|
+
if (!r.current || a || !n)
|
|
824
825
|
return;
|
|
825
826
|
const f = () => {
|
|
826
|
-
|
|
827
|
+
Vr({ map: r, markers: n, palette: o }), s(!1);
|
|
827
828
|
};
|
|
828
829
|
r.current.loaded() ? f() : r.current.once("load", f);
|
|
829
830
|
}, [r, n, a, o, s]);
|
|
830
|
-
},
|
|
831
|
-
|
|
831
|
+
}, Gr = ({ map: r, onMapClick: n }) => {
|
|
832
|
+
I(() => {
|
|
832
833
|
if (!r.current || !n) return;
|
|
833
834
|
const a = r.current.getCanvas(), o = (s) => {
|
|
834
835
|
const f = [s.clientX - a.getBoundingClientRect().left, s.clientY - a.getBoundingClientRect().top], v = r.current.unproject(f);
|
|
@@ -836,7 +837,7 @@ const zr = ({ palette: r, type: n }) => {
|
|
|
836
837
|
};
|
|
837
838
|
a.addEventListener("click", o);
|
|
838
839
|
}, [r, n]);
|
|
839
|
-
},
|
|
840
|
+
}, Jr = (r) => {
|
|
840
841
|
const n = document.createElement("button");
|
|
841
842
|
return n.innerText = "×", n.style.position = "absolute", n.style.top = "5px", n.style.right = "5px", n.style.background = "transparent", n.style.border = "none", n.style.fontSize = "16px", n.style.padding = "0", n.style.margin = "10px", n.style.cursor = "pointer", n.type = "button", n.setAttribute("aria-label", "Close popup"), n.removeAttribute("aria-hidden"), n.onclick = () => r.remove(), n;
|
|
842
843
|
}, We = ({ map: r, tooltip: n, coordinates: a }) => {
|
|
@@ -848,7 +849,7 @@ const zr = ({ palette: r, type: n }) => {
|
|
|
848
849
|
s.style.padding = "10px", o.style.zIndex = "1000";
|
|
849
850
|
const f = Ye.createRoot(s);
|
|
850
851
|
f.render(n);
|
|
851
|
-
const v = new
|
|
852
|
+
const v = new wr({
|
|
852
853
|
closeButton: !1
|
|
853
854
|
}).setLngLat(a).setDOMContent(o).addTo(r.current);
|
|
854
855
|
v.on("close", () => {
|
|
@@ -856,9 +857,9 @@ const zr = ({ palette: r, type: n }) => {
|
|
|
856
857
|
f.unmount();
|
|
857
858
|
});
|
|
858
859
|
});
|
|
859
|
-
const d =
|
|
860
|
+
const d = Jr(v);
|
|
860
861
|
return o.appendChild(d), o.appendChild(s), v;
|
|
861
|
-
}, Ue = (r) => typeof r == "object" && r !== null && "type" in r && "coordinates" in r,
|
|
862
|
+
}, Ue = (r) => typeof r == "object" && r !== null && "type" in r && "coordinates" in r, Kr = (r) => {
|
|
862
863
|
if (typeof r != "object" || r === null || !("geometry" in r && "properties" in r))
|
|
863
864
|
return !1;
|
|
864
865
|
const { geometry: a } = r;
|
|
@@ -869,28 +870,28 @@ const zr = ({ palette: r, type: n }) => {
|
|
|
869
870
|
return !1;
|
|
870
871
|
const { properties: s } = r;
|
|
871
872
|
return typeof s != "object" || s === null ? !1 : "id" in s && s.id !== void 0;
|
|
872
|
-
},
|
|
873
|
-
var s, f, v, d,
|
|
873
|
+
}, Hr = ({ map: r, point: n }) => {
|
|
874
|
+
var s, f, v, d, c;
|
|
874
875
|
if (!((s = r.current) != null && s.isStyleLoaded()))
|
|
875
876
|
return null;
|
|
876
|
-
const a = ((d = (v = (f = r.current) == null ? void 0 : f.getStyle()) == null ? void 0 : v.layers) == null ? void 0 : d.filter((p) => p.id.startsWith("marker-")).map((p) => p.id)) || [], o = (
|
|
877
|
+
const a = ((d = (v = (f = r.current) == null ? void 0 : f.getStyle()) == null ? void 0 : v.layers) == null ? void 0 : d.filter((p) => p.id.startsWith("marker-")).map((p) => p.id)) || [], o = (c = r.current) == null ? void 0 : c.queryRenderedFeatures(n, { layers: a });
|
|
877
878
|
if (o && o.length > 0) {
|
|
878
879
|
const p = o[0];
|
|
879
|
-
if (!
|
|
880
|
+
if (!Kr(p) || !Ue(p.geometry))
|
|
880
881
|
return null;
|
|
881
|
-
const { geometry:
|
|
882
|
+
const { geometry: u } = p, y = u.coordinates.slice();
|
|
882
883
|
return y.length !== 2 || typeof y[0] != "number" || typeof y[1] != "number" ? null : p;
|
|
883
884
|
}
|
|
884
|
-
},
|
|
885
|
+
}, Xr = ({ openPopup: r, map: n, markers: a }) => {
|
|
885
886
|
const o = Z(null);
|
|
886
|
-
|
|
887
|
+
I(() => {
|
|
887
888
|
if (!n.current || !a) return;
|
|
888
889
|
const f = n.current.getCanvas();
|
|
889
890
|
if (o.current && (o.current.remove(), o.current = null), r) {
|
|
890
|
-
const d = a.find((
|
|
891
|
+
const d = a.find((c) => c.id === r);
|
|
891
892
|
if (d) {
|
|
892
|
-
const
|
|
893
|
-
coordinates:
|
|
893
|
+
const c = [Number(d.lng) || 0, Number(d.lat) || 0], p = We({
|
|
894
|
+
coordinates: c,
|
|
894
895
|
map: n,
|
|
895
896
|
tooltip: d.Tooltip
|
|
896
897
|
});
|
|
@@ -898,38 +899,38 @@ const zr = ({ palette: r, type: n }) => {
|
|
|
898
899
|
}
|
|
899
900
|
}
|
|
900
901
|
const v = (d) => {
|
|
901
|
-
const
|
|
902
|
+
const c = [
|
|
902
903
|
d.clientX - f.getBoundingClientRect().left,
|
|
903
904
|
d.clientY - f.getBoundingClientRect().top
|
|
904
|
-
], p =
|
|
905
|
+
], p = Hr({ map: n, point: c });
|
|
905
906
|
if (p && p.properties && p.properties.id) {
|
|
906
907
|
o.current && (o.current.remove(), o.current = null);
|
|
907
|
-
const
|
|
908
|
-
if (
|
|
909
|
-
const y = [Number(
|
|
910
|
-
if (typeof
|
|
908
|
+
const u = a.find((y) => y.id === p.properties.id);
|
|
909
|
+
if (u) {
|
|
910
|
+
const y = [Number(u.lng) || 0, Number(u.lat) || 0];
|
|
911
|
+
if (typeof u.onClick == "function") {
|
|
911
912
|
const m = {
|
|
912
913
|
geometry: {
|
|
913
914
|
coordinates: y,
|
|
914
915
|
type: "Point"
|
|
915
916
|
},
|
|
916
917
|
properties: {
|
|
917
|
-
description:
|
|
918
|
-
id:
|
|
919
|
-
name:
|
|
920
|
-
onClick:
|
|
921
|
-
size:
|
|
922
|
-
zIndex:
|
|
918
|
+
description: u.name,
|
|
919
|
+
id: u.id,
|
|
920
|
+
name: u.name,
|
|
921
|
+
onClick: u.onClick,
|
|
922
|
+
size: u.size || 1,
|
|
923
|
+
zIndex: u.zIndex || 1
|
|
923
924
|
},
|
|
924
925
|
type: "Feature"
|
|
925
926
|
};
|
|
926
|
-
|
|
927
|
+
u.onClick(m);
|
|
927
928
|
}
|
|
928
929
|
requestAnimationFrame(() => {
|
|
929
930
|
const m = We({
|
|
930
931
|
coordinates: y,
|
|
931
932
|
map: n,
|
|
932
|
-
tooltip:
|
|
933
|
+
tooltip: u.Tooltip
|
|
933
934
|
});
|
|
934
935
|
m && (o.current = m);
|
|
935
936
|
});
|
|
@@ -940,7 +941,7 @@ const zr = ({ palette: r, type: n }) => {
|
|
|
940
941
|
f.removeEventListener("click", v), o.current && (o.current.remove(), o.current = null);
|
|
941
942
|
};
|
|
942
943
|
}, [n, a, r]);
|
|
943
|
-
},
|
|
944
|
+
}, Qr = (r) => Array.isArray(r) ? r.length >= 2 ? [r[0], r[1]] : void 0 : r, Zr = (r) => {
|
|
944
945
|
switch (r) {
|
|
945
946
|
case "satellite":
|
|
946
947
|
return "mapbox://styles/mapbox/satellite-v9";
|
|
@@ -952,7 +953,7 @@ const zr = ({ palette: r, type: n }) => {
|
|
|
952
953
|
default:
|
|
953
954
|
return "mapbox://styles/mapbox/streets-v11";
|
|
954
955
|
}
|
|
955
|
-
},
|
|
956
|
+
}, et = ({
|
|
956
957
|
mapStyle: r,
|
|
957
958
|
mapContainer: n,
|
|
958
959
|
zoomFlyFrom: a,
|
|
@@ -962,20 +963,20 @@ const zr = ({ palette: r, type: n }) => {
|
|
|
962
963
|
doubleClickZoom: v,
|
|
963
964
|
cooperativeGestures: d
|
|
964
965
|
}) => {
|
|
965
|
-
var p,
|
|
966
|
+
var p, u;
|
|
966
967
|
return {
|
|
967
|
-
center: s ?
|
|
968
|
+
center: s ? Qr(s) : {
|
|
968
969
|
lat: ((p = o == null ? void 0 : o[0]) == null ? void 0 : p.lat) !== void 0 ? Number(o[0].lat) : Ve,
|
|
969
|
-
lng: ((
|
|
970
|
+
lng: ((u = o == null ? void 0 : o[0]) == null ? void 0 : u.lng) !== void 0 ? Number(o[0].lng) : Be
|
|
970
971
|
},
|
|
971
972
|
container: (n == null ? void 0 : n.current) || "",
|
|
972
973
|
cooperativeGestures: d,
|
|
973
974
|
doubleClickZoom: v,
|
|
974
975
|
failIfMajorPerformanceCaveat: !1,
|
|
975
|
-
style: r ||
|
|
976
|
+
style: r || Zr(f),
|
|
976
977
|
zoom: a
|
|
977
978
|
};
|
|
978
|
-
}, Be = 2.333, Ve = 46.8677,
|
|
979
|
+
}, Be = 2.333, Ve = 46.8677, rt = ({
|
|
979
980
|
markers: r,
|
|
980
981
|
loading: n,
|
|
981
982
|
center: a,
|
|
@@ -984,9 +985,9 @@ const zr = ({ palette: r, type: n }) => {
|
|
|
984
985
|
flyToDuration: f = 5e3,
|
|
985
986
|
fitBoundDuration: v = 1e3,
|
|
986
987
|
fitBounds: d = !0,
|
|
987
|
-
disableFlyTo:
|
|
988
|
+
disableFlyTo: c = !1,
|
|
988
989
|
fitBoundsPadding: p = 50,
|
|
989
|
-
projection:
|
|
990
|
+
projection: u,
|
|
990
991
|
mapStyle: y,
|
|
991
992
|
baseMapView: m = "default",
|
|
992
993
|
zoom: x = 6,
|
|
@@ -994,15 +995,15 @@ const zr = ({ palette: r, type: n }) => {
|
|
|
994
995
|
cooperativeGestures: q = !0,
|
|
995
996
|
doubleClickZoom: G = !0
|
|
996
997
|
}) => {
|
|
997
|
-
const { palette: j } =
|
|
998
|
-
return
|
|
998
|
+
const { palette: j } = Ar(), [C, W] = xr(!0), L = Z(null), P = Z(null), ee = !r || r.some((w) => w.lat === void 0 || w.lng === void 0);
|
|
999
|
+
return I(() => {
|
|
999
1000
|
if (!fe.supported()) {
|
|
1000
1001
|
W(!1);
|
|
1001
1002
|
return;
|
|
1002
1003
|
}
|
|
1003
1004
|
if (P.current || !L.current || n)
|
|
1004
1005
|
return;
|
|
1005
|
-
const w =
|
|
1006
|
+
const w = et({
|
|
1006
1007
|
baseMapView: m,
|
|
1007
1008
|
center: a,
|
|
1008
1009
|
cooperativeGestures: q,
|
|
@@ -1012,8 +1013,8 @@ const zr = ({ palette: r, type: n }) => {
|
|
|
1012
1013
|
markers: r,
|
|
1013
1014
|
zoomFlyFrom: z
|
|
1014
1015
|
});
|
|
1015
|
-
P.current = new
|
|
1016
|
-
}, [m, a, q, G, n, y, r,
|
|
1016
|
+
P.current = new jr(w), P.current.resize(), W(!1);
|
|
1017
|
+
}, [m, a, q, G, n, y, r, u, z]), qr({ map: P, markers: r, markersAreInvalid: ee, palette: j, setLoadingMapBox: W }), Xr({ map: P, markers: r, openPopup: o }), Gr({ map: P, onMapClick: s }), $r({ disableFlyTo: c, fitBoundDuration: v, fitBounds: d, fitBoundsPadding: p, flyToDuration: f, map: P, markers: r, zoom: x }), I(
|
|
1017
1018
|
() => () => {
|
|
1018
1019
|
if (P.current) {
|
|
1019
1020
|
const w = L.current;
|
|
@@ -1027,11 +1028,11 @@ const zr = ({ palette: r, type: n }) => {
|
|
|
1027
1028
|
mapContainer: L,
|
|
1028
1029
|
markers: r
|
|
1029
1030
|
};
|
|
1030
|
-
},
|
|
1031
|
-
const { loading: v, mapContainer: d } =
|
|
1031
|
+
}, tt = ({ containerStyle: r, square: n, theme: a, height: o = 300, width: s = "100%", ...f }) => {
|
|
1032
|
+
const { loading: v, mapContainer: d } = rt(f);
|
|
1032
1033
|
return /* @__PURE__ */ $.jsxs(ce, { sx: { height: o, position: "relative", width: s, ...r }, children: [
|
|
1033
1034
|
/* @__PURE__ */ $.jsx(
|
|
1034
|
-
|
|
1035
|
+
kr,
|
|
1035
1036
|
{
|
|
1036
1037
|
styles: {
|
|
1037
1038
|
".mapboxgl-popup-content": {
|
|
@@ -1087,12 +1088,12 @@ const zr = ({ palette: r, type: n }) => {
|
|
|
1087
1088
|
}
|
|
1088
1089
|
)
|
|
1089
1090
|
] });
|
|
1090
|
-
},
|
|
1091
|
+
}, dt = Tr(tt), nt = (r, n) => Number.isFinite(r) && Number.isFinite(n) && r >= -90 && r <= 90 && n >= -180 && n <= 180;
|
|
1091
1092
|
export {
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1093
|
+
lt as DEFAULT_CENTER_LAT,
|
|
1094
|
+
ct as DEFAULT_CENTER_LNG,
|
|
1095
|
+
ft as MapProvider,
|
|
1096
|
+
Mr as MapProviderContext,
|
|
1097
|
+
dt as MarkerMap,
|
|
1098
|
+
nt as isValidLatLng
|
|
1098
1099
|
};
|
package/dist/main.umd.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(`.mapboxgl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.mapboxgl-canvas{left:0;position:absolute;top:0}.mapboxgl-map:-webkit-full-screen{height:100%;width:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:grab;-webkit-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:none}.mapboxgl-ctrl-bottom,.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-left,.mapboxgl-ctrl-right,.mapboxgl-ctrl-top,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.mapboxgl-ctrl-top-left{left:0;top:0}.mapboxgl-ctrl-top{left:50%;top:0;transform:translate(-50%)}.mapboxgl-ctrl-top-right{right:0;top:0}.mapboxgl-ctrl-right{right:0;top:50%;transform:translateY(-50%)}.mapboxgl-ctrl-bottom-right{bottom:0;right:0}.mapboxgl-ctrl-bottom{bottom:0;left:50%;transform:translate(-50%)}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-left{left:0;top:50%;transform:translateY(-50%)}.mapboxgl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{float:left;margin:10px 0 0 10px}.mapboxgl-ctrl-top .mapboxgl-ctrl{float:left;margin:10px 0}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{float:right;margin:10px 10px 0 0}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl,.mapboxgl-ctrl-right .mapboxgl-ctrl{float:right;margin:0 10px 10px 0}.mapboxgl-ctrl-bottom .mapboxgl-ctrl{float:left;margin:10px 0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl,.mapboxgl-ctrl-left .mapboxgl-ctrl{float:left;margin:0 0 10px 10px}.mapboxgl-ctrl-group{background:#fff;border-radius:4px}.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{background-color:initial;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;overflow:hidden;padding:0;width:29px}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:initial}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl-group button:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:only-child{border-radius:inherit}.mapboxgl-ctrl button:not(:disabled):hover{background-color:#0000000d}.mapboxgl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{animation:mapboxgl-spin 2s linear infinite}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23000'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}}@keyframes mapboxgl-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='0.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='0.9' fill='%23fff'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media (-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:initial;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='1' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='1' fill='%23fff'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='1' stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='1' fill='%23000'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{background-color:#ffffff80;margin:0;padding:0 5px}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{background-color:#fff;border-radius:12px;box-sizing:initial;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{background-color:#ffffff80;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:#0000000d}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{right:0;top:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{left:0;top:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}.mapboxgl-ctrl-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.mapboxgl-ctrl-attrib a{color:#000000bf;text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:#ffffffbf;border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px;white-space:nowrap}.mapboxgl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{flex-direction:column-reverse}.mapboxgl-popup-anchor-left{flex-direction:row}.mapboxgl-popup-anchor-right{flex-direction:row-reverse}.mapboxgl-popup-tip{border:10px solid #0000;height:0;width:0;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.mapboxgl-popup-close-button{background-color:initial;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.mapboxgl-popup-close-button:hover{background-color:#0000000d}.mapboxgl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px #0000001a;padding:10px 10px 15px;pointer-events:auto;position:relative}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{left:0;opacity:1;position:absolute;top:0;transition:opacity .2s;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.mapboxgl-user-location-dot:before{animation:mapboxgl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.mapboxgl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px #00000059;box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading{height:0;width:0}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:after,.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:before{border-bottom:7.5px solid #4aa1eb;content:"";position:absolute}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:before{border-left:7.5px solid #0000;transform:translateY(-28px) skewY(-20deg)}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:after{border-right:7.5px solid #0000;transform:translate(7.5px,-28px) skewY(20deg)}@keyframes mapboxgl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}@media print{.mapbox-improve-map{display:none}}.mapboxgl-scroll-zoom-blocker,.mapboxgl-touch-pan-blocker{align-items:center;background:#000000b3;color:#fff;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;height:100%;justify-content:center;left:0;opacity:0;pointer-events:none;position:absolute;text-align:center;top:0;transition:opacity .75s ease-in-out;transition-delay:1s;width:100%}.mapboxgl-scroll-zoom-blocker-show,.mapboxgl-touch-pan-blocker-show{opacity:1;transition:opacity .1s ease-in-out}.mapboxgl-canvas-container.mapboxgl-touch-pan-blocker-override.mapboxgl-scrollable-page,.mapboxgl-canvas-container.mapboxgl-touch-pan-blocker-override.mapboxgl-scrollable-page .mapboxgl-canvas{touch-action:pan-x pan-y}`)),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
(function(x,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react"),require("@mui/x-license"),require("mapbox-gl"),require("@tracktor/design-system"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","@mui/x-license","mapbox-gl","@tracktor/design-system","react-dom"],m):(x=typeof globalThis<"u"?globalThis:x||self,m(x["@tracktor/map"]={},x.React,x.muiXLicense,x.mapboxgl,x.designSystem,x.ReactDOM))})(this,function(x,m,Ke,F,N,Xe){"use strict";var
|
|
2
|
+
(function(x,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react"),require("@mui/x-license"),require("mapbox-gl"),require("@tracktor/design-system"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","@mui/x-license","mapbox-gl","@tracktor/design-system","react-dom"],m):(x=typeof globalThis<"u"?globalThis:x||self,m(x["@tracktor/map"]={},x.React,x.muiXLicense,x.mapboxgl,x.designSystem,x.ReactDOM))})(this,function(x,m,Ke,F,N,Xe){"use strict";var H={exports:{}},B={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.min.js
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var fe;function
|
|
10
|
+
*/var fe;function He(){if(fe)return B;fe=1;var t=m,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function v(d,u,p){var c,y={},R=null,P=null;p!==void 0&&(R=""+p),u.key!==void 0&&(R=""+u.key),u.ref!==void 0&&(P=u.ref);for(c in u)o.call(u,c)&&!f.hasOwnProperty(c)&&(y[c]=u[c]);if(d&&d.defaultProps)for(c in u=d.defaultProps,u)y[c]===void 0&&(y[c]=u[c]);return{$$typeof:n,type:d,key:R,ref:P,props:y,_owner:s.current}}return B.Fragment=a,B.jsx=v,B.jsxs=v,B}var V={};/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react-jsx-runtime.development.js
|
|
13
13
|
*
|
|
@@ -15,17 +15,17 @@
|
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var de;function
|
|
19
|
-
`+oe+e}}var ie=!1,$;{var
|
|
18
|
+
*/var de;function qe(){return de||(de=1,process.env.NODE_ENV!=="production"&&function(){var t=m,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),d=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),G=Symbol.iterator,q="@@iterator";function Q(e){if(e===null||typeof e!="object")return null;var r=G&&e[G]||e[q];return typeof r=="function"?r:null}var L=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(e){{for(var r=arguments.length,i=new Array(r>1?r-1:0),l=1;l<r;l++)i[l-1]=arguments[l];J("error",e,i)}}function J(e,r,i){{var l=L.ReactDebugCurrentFrame,b=l.getStackAddendum();b!==""&&(r+="%s",i=i.concat([b]));var h=i.map(function(E){return String(E)});h.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,h)}}var W=!1,w=!1,re=!1,A=!1,bt=!1,_e;_e=Symbol.for("react.module.reference");function ht(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===f||bt||e===s||e===p||e===c||A||e===P||W||w||re||typeof e=="object"&&e!==null&&(e.$$typeof===R||e.$$typeof===y||e.$$typeof===v||e.$$typeof===d||e.$$typeof===u||e.$$typeof===_e||e.getModuleId!==void 0))}function Rt(e,r,i){var l=e.displayName;if(l)return l;var b=r.displayName||r.name||"";return b!==""?i+"("+b+")":i}function Ce(e){return e.displayName||"Context"}function k(e){if(e==null)return null;if(typeof e.tag=="number"&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case o:return"Fragment";case a:return"Portal";case f:return"Profiler";case s:return"StrictMode";case p:return"Suspense";case c:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case d:var r=e;return Ce(r)+".Consumer";case v:var i=e;return Ce(i._context)+".Provider";case u:return Rt(e,e.render,"ForwardRef");case y:var l=e.displayName||null;return l!==null?l:k(e.type)||"Memo";case R:{var b=e,h=b._payload,E=b._init;try{return k(E(h))}catch{return null}}}return null}var I=Object.assign,K=0,Te,xe,Pe,Se,Oe,we,je;function Ae(){}Ae.__reactDisabledLog=!0;function mt(){{if(K===0){Te=console.log,xe=console.info,Pe=console.warn,Se=console.error,Oe=console.group,we=console.groupCollapsed,je=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ae,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}K++}}function _t(){{if(K--,K===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:Te}),info:I({},e,{value:xe}),warn:I({},e,{value:Pe}),error:I({},e,{value:Se}),group:I({},e,{value:Oe}),groupCollapsed:I({},e,{value:we}),groupEnd:I({},e,{value:je})})}K<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ne=L.ReactCurrentDispatcher,oe;function Z(e,r,i){{if(oe===void 0)try{throw Error()}catch(b){var l=b.stack.trim().match(/\n( *(at )?)/);oe=l&&l[1]||""}return`
|
|
19
|
+
`+oe+e}}var ie=!1,$;{var Ct=typeof WeakMap=="function"?WeakMap:Map;$=new Ct}function Le(e,r){if(!e||ie)return"";{var i=$.get(e);if(i!==void 0)return i}var l;ie=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var h;h=ne.current,ne.current=null,mt();try{if(r){var E=function(){throw Error()};if(Object.defineProperty(E.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(E,[])}catch(O){l=O}Reflect.construct(e,[],E)}else{try{E.call()}catch(O){l=O}e.call(E.prototype)}}else{try{throw Error()}catch(O){l=O}e()}}catch(O){if(O&&l&&typeof O.stack=="string"){for(var g=O.stack.split(`
|
|
20
20
|
`),S=l.stack.split(`
|
|
21
21
|
`),_=g.length-1,C=S.length-1;_>=1&&C>=0&&g[_]!==S[C];)C--;for(;_>=1&&C>=0;_--,C--)if(g[_]!==S[C]){if(_!==1||C!==1)do if(_--,C--,C<0||g[_]!==S[C]){var j=`
|
|
22
|
-
`+g[_].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),typeof e=="function"&&$.set(e,j),j}while(_>=1&&C>=0);break}}}finally{ie=!1,ne.current=h,
|
|
22
|
+
`+g[_].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),typeof e=="function"&&$.set(e,j),j}while(_>=1&&C>=0);break}}}finally{ie=!1,ne.current=h,_t(),Error.prepareStackTrace=b}var Y=e?e.displayName||e.name:"",D=Y?Z(Y):"";return typeof e=="function"&&$.set(e,D),D}function Tt(e,r,i){return Le(e,!1)}function xt(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function ee(e,r,i){if(e==null)return"";if(typeof e=="function")return Le(e,xt(e));if(typeof e=="string")return Z(e);switch(e){case p:return Z("Suspense");case c:return Z("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return Tt(e.render);case y:return ee(e.type,r,i);case R:{var l=e,b=l._payload,h=l._init;try{return ee(h(b),r,i)}catch{}}}return""}var X=Object.prototype.hasOwnProperty,ke={},Fe=L.ReactDebugCurrentFrame;function te(e){if(e){var r=e._owner,i=ee(e.type,e._source,r?r.type:null);Fe.setExtraStackFrame(i)}else Fe.setExtraStackFrame(null)}function Pt(e,r,i,l,b){{var h=Function.call.bind(X);for(var E in e)if(h(e,E)){var g=void 0;try{if(typeof e[E]!="function"){var S=Error((l||"React class")+": "+i+" type `"+E+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[E]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw S.name="Invariant Violation",S}g=e[E](r,E,l,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_){g=_}g&&!(g instanceof Error)&&(te(b),T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",l||"React class",i,E,typeof g),te(null)),g instanceof Error&&!(g.message in ke)&&(ke[g.message]=!0,te(b),T("Failed %s type: %s",i,g.message),te(null))}}}var St=Array.isArray;function ae(e){return St(e)}function Ot(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,i=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function wt(e){try{return Ie(e),!1}catch{return!0}}function Ie(e){return""+e}function De(e){if(wt(e))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ot(e)),Ie(e)}var Ne=L.ReactCurrentOwner,jt={key:!0,ref:!0,__self:!0,__source:!0},Me,ze;function At(e){if(X.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Lt(e){if(X.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function kt(e,r){typeof e.ref=="string"&&Ne.current}function Ft(e,r){{var i=function(){Me||(Me=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}}function It(e,r){{var i=function(){ze||(ze=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}}var Dt=function(e,r,i,l,b,h,E){var g={$$typeof:n,type:e,key:r,ref:i,props:E,_owner:h};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:l}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function Nt(e,r,i,l,b){{var h,E={},g=null,S=null;i!==void 0&&(De(i),g=""+i),Lt(r)&&(De(r.key),g=""+r.key),At(r)&&(S=r.ref,kt(r,b));for(h in r)X.call(r,h)&&!jt.hasOwnProperty(h)&&(E[h]=r[h]);if(e&&e.defaultProps){var _=e.defaultProps;for(h in _)E[h]===void 0&&(E[h]=_[h])}if(g||S){var C=typeof e=="function"?e.displayName||e.name||"Unknown":e;g&&Ft(E,C),S&&It(E,C)}return Dt(e,g,S,b,l,Ne.current,E)}}var se=L.ReactCurrentOwner,We=L.ReactDebugCurrentFrame;function U(e){if(e){var r=e._owner,i=ee(e.type,e._source,r?r.type:null);We.setExtraStackFrame(i)}else We.setExtraStackFrame(null)}var ce;ce=!1;function ue(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Ue(){{if(se.current){var e=k(se.current.type);if(e)return`
|
|
23
23
|
|
|
24
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
24
|
+
Check the render method of \``+e+"`."}return""}}function Mt(e){return""}var Ye={};function zt(e){{var r=Ue();if(!r){var i=typeof e=="string"?e:e.displayName||e.name;i&&(r=`
|
|
25
25
|
|
|
26
|
-
Check the top-level render call using <`+i+">.")}return r}}function Be(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=
|
|
26
|
+
Check the top-level render call using <`+i+">.")}return r}}function Be(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=zt(r);if(Ye[i])return;Ye[i]=!0;var l="";e&&e._owner&&e._owner!==se.current&&(l=" It was passed a child from "+k(e._owner.type)+"."),U(e),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',i,l),U(null)}}function Ve(e,r){{if(typeof e!="object")return;if(ae(e))for(var i=0;i<e.length;i++){var l=e[i];ue(l)&&Be(l,r)}else if(ue(e))e._store&&(e._store.validated=!0);else if(e){var b=Q(e);if(typeof b=="function"&&b!==e.entries)for(var h=b.call(e),E;!(E=h.next()).done;)ue(E.value)&&Be(E.value,r)}}}function Wt(e){{var r=e.type;if(r==null||typeof r=="string")return;var i;if(typeof r=="function")i=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===u||r.$$typeof===y))i=r.propTypes;else return;if(i){var l=k(r);Pt(i,e.props,"prop",l,e)}else if(r.PropTypes!==void 0&&!ce){ce=!0;var b=k(r);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ut(e){{for(var r=Object.keys(e.props),i=0;i<r.length;i++){var l=r[i];if(l!=="children"&&l!=="key"){U(e),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",l),U(null);break}}e.ref!==null&&(U(e),T("Invalid attribute `ref` supplied to `React.Fragment`."),U(null))}}var Ge={};function Je(e,r,i,l,b,h){{var E=ht(e);if(!E){var g="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(g+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var S=Mt();S?g+=S:g+=Ue();var _;e===null?_="null":ae(e)?_="array":e!==void 0&&e.$$typeof===n?(_="<"+(k(e.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):_=typeof e,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_,g)}var C=Nt(e,r,i,b,h);if(C==null)return C;if(E){var j=r.children;if(j!==void 0)if(l)if(ae(j)){for(var Y=0;Y<j.length;Y++)Ve(j[Y],e);Object.freeze&&Object.freeze(j)}else T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ve(j,e)}if(X.call(r,"key")){var D=k(e),O=Object.keys(r).filter(function(Kt){return Kt!=="key"}),le=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!Ge[D+le]){var Jt=O.length>0?"{"+O.join(": ..., ")+": ...}":"{}";T(`A props object containing a "key" prop is being spread into JSX:
|
|
27
27
|
let props = %s;
|
|
28
28
|
<%s {...props} />
|
|
29
29
|
React keys must be passed directly to JSX without using spread:
|
|
30
30
|
let props = %s;
|
|
31
|
-
<%s key={someKey} {...props} />`,le,D,Gt,D),Ge[D+le]=!0}}return e===o?Wt(C):zt(C),C}}function Ut(e,r,i){return Je(e,r,i,!0)}function Yt(e,r,i){return Je(e,r,i,!1)}var Bt=Yt,Vt=Ut;V.Fragment=o,V.jsx=Bt,V.jsxs=Vt}()),V}var pe;function Qe(){return pe||(pe=1,process.env.NODE_ENV==="production"?q.exports=qe():q.exports=He()),q.exports}var M=Qe();const ve=m.createContext({licenceMapbox:"",licenseMuiX:""}),Ze=({children:t,licenseMuiX:n,licenceMapbox:a})=>{m.useEffect(()=>{n&&Ke.LicenseInfo.setLicenseKey(n)},[n]);const o=m.useMemo(()=>({licenceMapbox:a,licenseMuiX:n}),[n,a]);return a&&(F.accessToken=a),M.jsx(ve.Provider,{value:o,children:t})},$e=({map:t,disableFlyTo:n,flyToDuration:a,zoom:o,fitBounds:s,markers:f,fitBoundDuration:v,fitBoundsPadding:d})=>{const c=m.useRef(!1);m.useEffect(()=>{if(!t.current||(!n&&!c.current&&(t.current.flyTo({duration:a,zoom:o}),c.current=!0),!s||!(f!=null&&f.length)||f.length<2))return;const p=new F.LngLatBounds,u=f.filter(y=>{const R=Number(y.lng),P=Number(y.lat);return me(P,R)});if(!(u.length<2)){for(let y=0;y<u.length;y+=1){const R=Number(u[y].lng),P=Number(u[y].lat);p.extend([R,P])}t.current.fitBounds(p,{duration:v,padding:d})}},[f,s,d,a,o,v,n,t])};var z={},ye;function et(){if(ye)return z;ye=1;var t=Xe;if(process.env.NODE_ENV==="production")z.createRoot=t.createRoot,z.hydrateRoot=t.hydrateRoot;else{var n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;z.createRoot=function(a,o){n.usingClientEntryPoint=!0;try{return t.createRoot(a,o)}finally{n.usingClientEntryPoint=!1}},z.hydrateRoot=function(a,o,s){n.usingClientEntryPoint=!0;try{return t.hydrateRoot(a,o,s)}finally{n.usingClientEntryPoint=!1}}}return z}var ge=et();const tt=({palette:t,type:n})=>{const a=t.mode==="dark"?"black":"white",o=t.secondary.main,s=t.info.main;switch(n){case"dropOff":return{"circle-color":a,"circle-radius":5,"circle-stroke-color":s,"circle-stroke-width":6};default:return{"circle-color":a,"circle-radius":7,"circle-stroke-color":o,"circle-stroke-width":8}}},rt=(t,n,a,o)=>{const s={features:a.map(c=>({geometry:{coordinates:c.geometry.coordinates,type:"Point"},properties:{id:c.properties.id,...c.properties},type:"Feature"})),type:"FeatureCollection"},f=t.getSource(n);f?f.setData(s):t.addSource(n,{data:s,type:"geojson"});const v=[...s.features].sort((c,p)=>{var R,P;const u=((R=c.properties)==null?void 0:R.zIndex)||0,y=((P=p.properties)==null?void 0:P.zIndex)||0;return u-y}),d=t.getStyle().layers;d==null||d.forEach(c=>{c.id.startsWith("marker-")&&t.getLayer(c.id)&&t.removeLayer(c.id)}),v.forEach(c=>{const{description:p,id:u}=c.properties||{},y=tt({palette:o,type:p}),R=`marker-${u}`;t.addLayer({filter:["==","id",u],id:R,layout:{visibility:"visible"},paint:y,source:n,type:"circle"})})},nt=(t,n)=>{document.querySelectorAll(".react-custom-marker").forEach(s=>s.remove()),[...n].sort((s,f)=>{var c,p;const v=((c=s.properties)==null?void 0:c.zIndex)||0,d=((p=f.properties)==null?void 0:p.zIndex)||0;return v-d}).forEach(s=>{const{IconComponent:f,iconProps:v,onClick:d,zIndex:c}=s.properties||{},{coordinates:p}=s.geometry;if(f&&p.length>=2){const u=document.createElement("div");u.className="react-custom-marker",u.style.position="absolute",c!==void 0&&(u.style.zIndex=c.toString());const y=document.createElement("div"),R=ge.createRoot(y);f&&R.render(m.createElement(f,v||{})),u.appendChild(y);const P=()=>{d==null||d(s)};u.addEventListener("click",P),new F.Marker(u).setLngLat([p[0],p[1]]).addTo(t)}})},ot=t=>({features:(t==null?void 0:t.map((n,a)=>({geometry:{coordinates:[Number.isFinite(Number(n.lng))?Number(n.lng):Number(he),Number.isFinite(Number(n.lat))?Number(n.lat):Number(Re)],type:"Point"},properties:{description:n.type,IconComponent:n.IconComponent,iconProps:n.iconProps,id:n.id||`{marker-${a}}`,name:n.name,onClick:n.onClick,size:n.size||1,zIndex:n.zIndex||0},type:"Feature"})))||[],type:"FeatureCollection"}),it=({map:t,setLoadingMapBox:n,palette:a,markers:o})=>{if(n(!1),!t.current)return;const s=ot(o),f=s.features.filter(d=>{var c;return((c=d.properties)==null?void 0:c.IconComponent)===void 0});f.length&&rt(t.current,"markerProps",f,a);const v=s.features.filter(d=>{var c;return(c=d.properties)==null?void 0:c.IconComponent});v.length&&nt(t.current,v)},at=({map:t,markers:n,markersAreInvalid:a,palette:o,setLoadingMapBox:s})=>{m.useEffect(()=>{if(!t.current||a)return;const f=()=>{n&&it({map:t,markers:n,palette:o,setLoadingMapBox:s})};t.current.loaded()?f():t.current.once("load",f)},[t,n,a,o,s])},st=({map:t,onMapClick:n})=>{m.useEffect(()=>{if(!t.current||!n)return;const a=t.current.getCanvas(),o=s=>{const f=[s.clientX-a.getBoundingClientRect().left,s.clientY-a.getBoundingClientRect().top],v=t.current.unproject(f);n(v.lng,v.lat)};a.addEventListener("click",o)},[t,n])},ct=t=>{const n=document.createElement("button");return n.innerText="×",n.style.position="absolute",n.style.top="5px",n.style.right="5px",n.style.background="transparent",n.style.border="none",n.style.fontSize="16px",n.style.padding="0",n.style.margin="10px",n.style.cursor="pointer",n.type="button",n.setAttribute("aria-label","Close popup"),n.removeAttribute("aria-hidden"),n.onclick=()=>t.remove(),n},Ee=({map:t,tooltip:n,coordinates:a})=>{if(!a||!n||!t.current||!Array.isArray(a)||a.length!==2)return null;const o=document.createElement("div");o.style.position="relative",o.style.overflow="hidden";const s=document.createElement("div");s.style.padding="10px",o.style.zIndex="1000";const f=ge.createRoot(s);f.render(n);const v=new F.Popup({closeButton:!1}).setLngLat(a).setDOMContent(o).addTo(t.current);v.on("close",()=>{queueMicrotask(()=>{f.unmount()})});const d=ct(v);return o.appendChild(d),o.appendChild(s),v},be=t=>typeof t=="object"&&t!==null&&"type"in t&&"coordinates"in t,ut=t=>{if(typeof t!="object"||t===null||!("geometry"in t&&"properties"in t))return!1;const{geometry:a}=t;if(typeof a!="object"||a===null||!("coordinates"in a))return!1;const{coordinates:o}=a;if(!Array.isArray(o)||o.length!==2||!be(a))return!1;const{properties:s}=t;return typeof s!="object"||s===null?!1:"id"in s&&s.id!==void 0},lt=({map:t,point:n})=>{var s,f,v,d,c;if(!((s=t.current)!=null&&s.isStyleLoaded()))return null;const a=((d=(v=(f=t.current)==null?void 0:f.getStyle())==null?void 0:v.layers)==null?void 0:d.filter(p=>p.id.startsWith("marker-")).map(p=>p.id))||[],o=(c=t.current)==null?void 0:c.queryRenderedFeatures(n,{layers:a});if(o&&o.length>0){const p=o[0];if(!ut(p)||!be(p.geometry))return null;const{geometry:u}=p,y=u.coordinates.slice();return y.length!==2||typeof y[0]!="number"||typeof y[1]!="number"?null:p}},ft=({openPopup:t,map:n,markers:a})=>{const o=m.useRef(null);m.useEffect(()=>{if(!n.current||!a)return;const f=n.current.getCanvas();if(o.current&&(o.current.remove(),o.current=null),t){const d=a.find(c=>c.id===t);if(d){const c=[Number(d.lng)||0,Number(d.lat)||0],p=Ee({coordinates:c,map:n,tooltip:d.Tooltip});p&&(o.current=p)}}const v=d=>{const c=[d.clientX-f.getBoundingClientRect().left,d.clientY-f.getBoundingClientRect().top],p=lt({map:n,point:c});if(p&&p.properties&&p.properties.id){o.current&&(o.current.remove(),o.current=null);const u=a.find(y=>y.id===p.properties.id);if(u){const y=[Number(u.lng)||0,Number(u.lat)||0];if(typeof u.onClick=="function"){const R={geometry:{coordinates:y,type:"Point"},properties:{description:u.name,id:u.id,name:u.name,onClick:u.onClick,size:u.size||1,zIndex:u.zIndex||1},type:"Feature"};u.onClick(R)}requestAnimationFrame(()=>{const R=Ee({coordinates:y,map:n,tooltip:u.Tooltip});R&&(o.current=R)})}}};return f.addEventListener("click",v),()=>{f.removeEventListener("click",v),o.current&&(o.current.remove(),o.current=null)}},[n,a,t])},dt=t=>Array.isArray(t)?t.length>=2?[t[0],t[1]]:void 0:t,pt=t=>{switch(t){case"satellite":return"mapbox://styles/mapbox/satellite-v9";case"dark":return"mapbox://styles/mapbox/dark-v10";case"3d":return"mapbox://styles/mapbox/streets-v12?optimize=true";case"streets":default:return"mapbox://styles/mapbox/streets-v11"}},vt=({mapStyle:t,mapContainer:n,zoomFlyFrom:a,markers:o,center:s,baseMapView:f,doubleClickZoom:v,cooperativeGestures:d})=>{var p,u;return{center:s?dt(s):{lat:((p=o==null?void 0:o[0])==null?void 0:p.lat)!==void 0?Number(o[0].lat):Re,lng:((u=o==null?void 0:o[0])==null?void 0:u.lng)!==void 0?Number(o[0].lng):he},container:(n==null?void 0:n.current)||"",cooperativeGestures:d,doubleClickZoom:v,failIfMajorPerformanceCaveat:!1,style:t||pt(f),zoom:a}},he=2.333,Re=46.8677,yt=({markers:t,loading:n,center:a,openPopup:o,onMapClick:s,flyToDuration:f=5e3,fitBoundDuration:v=1e3,fitBounds:d=!0,disableFlyTo:c=!1,fitBoundsPadding:p=50,projection:u,mapStyle:y,baseMapView:R="default",zoom:P=6,zoomFlyFrom:G=3,cooperativeGestures:H=!0,doubleClickZoom:Q=!0})=>{const{palette:L}=N.useTheme(),[T,J]=m.useState(!0),W=m.useRef(null),w=m.useRef(null),re=!t||t.some(A=>A.lat===void 0||A.lng===void 0);return m.useEffect(()=>{if(!F.supported()){J(!1);return}if(w.current||!W.current||n)return;const A=vt({baseMapView:R,center:a,cooperativeGestures:H,doubleClickZoom:Q,mapContainer:W,mapStyle:y,markers:t,zoomFlyFrom:G});w.current=new F.Map(A),w.current.resize(),J(!1)},[R,a,H,Q,n,y,t,u,G]),at({map:w,markers:t,markersAreInvalid:re,palette:L,setLoadingMapBox:J}),ft({map:w,markers:t,openPopup:o}),st({map:w,onMapClick:s}),$e({disableFlyTo:c,fitBoundDuration:v,fitBounds:d,fitBoundsPadding:p,flyToDuration:f,map:w,markers:t,zoom:P}),m.useEffect(()=>()=>{if(w.current){const A=W.current;A&&(A.innerHTML=""),w.current.remove(),w.current=null}},[]),{loading:T||n,map:w,mapContainer:W,markers:t}},gt=({containerStyle:t,square:n,theme:a,height:o=300,width:s="100%",...f})=>{const{loading:v,mapContainer:d}=yt(f);return M.jsxs(N.Box,{sx:{height:o,position:"relative",width:s,...t},children:[M.jsx(N.GlobalStyles,{styles:{".mapboxgl-popup-content":{backgroundColor:"transparent!important",borderRadius:"0px !important",boxShadow:"none!important",padding:"0px 0px!important",width:"fit-content!important"}}}),F.supported()?M.jsx(N.Box,{sx:{alignItems:"center",borderRadius:n?0:1,height:o,justifyContent:"center",left:0,position:"absolute",top:0,width:s,zIndex:1},ref:d}):M.jsx(N.Box,{sx:{left:"50%",position:"absolute",textAlign:"center",top:"50%",transform:"translate(-50%, -50%)"},children:"WebGL is not enabled in your browser. This technology is required to display the interactive map."}),v&&M.jsx(N.Skeleton,{sx:{inset:0,position:"absolute",zIndex:0},width:s,height:o,variant:n?"rectangular":"rounded"})]})},me=(t,n)=>Number.isFinite(t)&&Number.isFinite(n)&&t>=-90&&t<=90&&n>=-180&&n<=180;x.DEFAULT_CENTER_LAT=46.8677,x.DEFAULT_CENTER_LNG=2.333,x.MapProvider=Ze,x.MapProviderContext=ve,x.MarkerMap=gt,x.isValidLatLng=me,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
|
|
31
|
+
<%s key={someKey} {...props} />`,le,D,Jt,D),Ge[D+le]=!0}}return e===o?Ut(C):Wt(C),C}}function Yt(e,r,i){return Je(e,r,i,!0)}function Bt(e,r,i){return Je(e,r,i,!1)}var Vt=Bt,Gt=Yt;V.Fragment=o,V.jsx=Vt,V.jsxs=Gt}()),V}var pe;function Qe(){return pe||(pe=1,process.env.NODE_ENV==="production"?H.exports=He():H.exports=qe()),H.exports}var M=Qe();const ve=m.createContext({licenceMapbox:"",licenseMuiX:""}),Ze=({children:t,licenseMuiX:n,licenceMapbox:a})=>{m.useEffect(()=>{n&&Ke.LicenseInfo.setLicenseKey(n)},[n]);const o=m.useMemo(()=>({licenceMapbox:a,licenseMuiX:n}),[n,a]);return a&&(F.accessToken=a),M.jsx(ve.Provider,{value:o,children:t})},$e=({map:t,disableFlyTo:n,flyToDuration:a,zoom:o,fitBounds:s,markers:f,fitBoundDuration:v,fitBoundsPadding:d})=>{const u=m.useRef(!1);m.useEffect(()=>{if(!t.current||(!n&&!u.current&&(t.current.flyTo({duration:a,zoom:o}),u.current=!0),!s||!(f!=null&&f.length)||f.length<2))return;const p=new F.LngLatBounds,c=f.filter(y=>{const R=Number(y.lng),P=Number(y.lat);return me(P,R)});if(!(c.length<2)){for(let y=0;y<c.length;y+=1){const R=Number(c[y].lng),P=Number(c[y].lat);p.extend([R,P])}t.current.fitBounds(p,{duration:v,padding:d})}},[f,s,d,a,o,v,n,t])};var z={},ye;function et(){if(ye)return z;ye=1;var t=Xe;if(process.env.NODE_ENV==="production")z.createRoot=t.createRoot,z.hydrateRoot=t.hydrateRoot;else{var n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;z.createRoot=function(a,o){n.usingClientEntryPoint=!0;try{return t.createRoot(a,o)}finally{n.usingClientEntryPoint=!1}},z.hydrateRoot=function(a,o,s){n.usingClientEntryPoint=!0;try{return t.hydrateRoot(a,o,s)}finally{n.usingClientEntryPoint=!1}}}return z}var ge=et();const tt=({palette:t,type:n})=>{const a=t.mode==="dark"?"black":"white",o=t.secondary.main,s=t.info.main;switch(n){case"dropOff":return{"circle-color":a,"circle-radius":5,"circle-stroke-color":s,"circle-stroke-width":6};default:return{"circle-color":a,"circle-radius":7,"circle-stroke-color":o,"circle-stroke-width":8}}},rt=(t,n,a,o)=>{const s={features:a.map(u=>({geometry:{coordinates:u.geometry.coordinates,type:"Point"},properties:{id:u.properties.id,...u.properties},type:"Feature"})),type:"FeatureCollection"},f=t.getSource(n);f?f.setData(s):t.addSource(n,{data:s,type:"geojson"});const v=[...s.features].sort((u,p)=>{var R,P;const c=((R=u.properties)==null?void 0:R.zIndex)||0,y=((P=p.properties)==null?void 0:P.zIndex)||0;return c-y}),d=t.getStyle().layers;d==null||d.forEach(u=>{u.id.startsWith("marker-")&&t.getLayer(u.id)&&t.removeLayer(u.id)}),v.forEach(u=>{const{description:p,id:c}=u.properties||{},y=tt({palette:o,type:p}),R=`marker-${c}`;t.addLayer({filter:["==","id",c],id:R,layout:{visibility:"visible"},paint:y,source:n,type:"circle"})})},nt=(t,n)=>{document.querySelectorAll(".react-custom-marker").forEach(s=>s.remove()),[...n].sort((s,f)=>{var u,p;const v=((u=s.properties)==null?void 0:u.zIndex)||0,d=((p=f.properties)==null?void 0:p.zIndex)||0;return v-d}).forEach(s=>{const{IconComponent:f,iconProps:v,onClick:d,zIndex:u}=s.properties||{},{coordinates:p}=s.geometry;if(f&&p.length>=2){const c=document.createElement("div");c.className="react-custom-marker",c.style.position="absolute",u!==void 0&&(c.style.zIndex=u.toString());const y=document.createElement("div"),R=ge.createRoot(y);f&&R.render(m.createElement(f,v||{})),c.appendChild(y);const P=()=>{d==null||d(s)};c.addEventListener("click",P),new F.Marker(c).setLngLat([p[0],p[1]]).addTo(t)}})},ot=t=>({features:(t==null?void 0:t.map((n,a)=>({geometry:{coordinates:[Number.isFinite(Number(n.lng))?Number(n.lng):Number(he),Number.isFinite(Number(n.lat))?Number(n.lat):Number(Re)],type:"Point"},properties:{description:n.type,IconComponent:n.IconComponent,iconProps:n.iconProps,id:n.id||`{marker-${a}}`,name:n.name,onClick:n.onClick,size:n.size||1,zIndex:n.zIndex||0},type:"Feature"})))||[],type:"FeatureCollection"}),it=({map:t,palette:n,markers:a})=>{if(!t.current)return;const o=ot(a),s=o.features.filter(v=>{var d;return((d=v.properties)==null?void 0:d.IconComponent)===void 0});s.length&&rt(t.current,"markerProps",s,n);const f=o.features.filter(v=>{var d;return(d=v.properties)==null?void 0:d.IconComponent});f.length&&nt(t.current,f)},at=({map:t,markers:n,markersAreInvalid:a,palette:o,setLoadingMapBox:s})=>{m.useEffect(()=>{if(!t.current||a||!n)return;const f=()=>{it({map:t,markers:n,palette:o}),s(!1)};t.current.loaded()?f():t.current.once("load",f)},[t,n,a,o,s])},st=({map:t,onMapClick:n})=>{m.useEffect(()=>{if(!t.current||!n)return;const a=t.current.getCanvas(),o=s=>{const f=[s.clientX-a.getBoundingClientRect().left,s.clientY-a.getBoundingClientRect().top],v=t.current.unproject(f);n(v.lng,v.lat)};a.addEventListener("click",o)},[t,n])},ct=t=>{const n=document.createElement("button");return n.innerText="×",n.style.position="absolute",n.style.top="5px",n.style.right="5px",n.style.background="transparent",n.style.border="none",n.style.fontSize="16px",n.style.padding="0",n.style.margin="10px",n.style.cursor="pointer",n.type="button",n.setAttribute("aria-label","Close popup"),n.removeAttribute("aria-hidden"),n.onclick=()=>t.remove(),n},Ee=({map:t,tooltip:n,coordinates:a})=>{if(!a||!n||!t.current||!Array.isArray(a)||a.length!==2)return null;const o=document.createElement("div");o.style.position="relative",o.style.overflow="hidden";const s=document.createElement("div");s.style.padding="10px",o.style.zIndex="1000";const f=ge.createRoot(s);f.render(n);const v=new F.Popup({closeButton:!1}).setLngLat(a).setDOMContent(o).addTo(t.current);v.on("close",()=>{queueMicrotask(()=>{f.unmount()})});const d=ct(v);return o.appendChild(d),o.appendChild(s),v},be=t=>typeof t=="object"&&t!==null&&"type"in t&&"coordinates"in t,ut=t=>{if(typeof t!="object"||t===null||!("geometry"in t&&"properties"in t))return!1;const{geometry:a}=t;if(typeof a!="object"||a===null||!("coordinates"in a))return!1;const{coordinates:o}=a;if(!Array.isArray(o)||o.length!==2||!be(a))return!1;const{properties:s}=t;return typeof s!="object"||s===null?!1:"id"in s&&s.id!==void 0},lt=({map:t,point:n})=>{var s,f,v,d,u;if(!((s=t.current)!=null&&s.isStyleLoaded()))return null;const a=((d=(v=(f=t.current)==null?void 0:f.getStyle())==null?void 0:v.layers)==null?void 0:d.filter(p=>p.id.startsWith("marker-")).map(p=>p.id))||[],o=(u=t.current)==null?void 0:u.queryRenderedFeatures(n,{layers:a});if(o&&o.length>0){const p=o[0];if(!ut(p)||!be(p.geometry))return null;const{geometry:c}=p,y=c.coordinates.slice();return y.length!==2||typeof y[0]!="number"||typeof y[1]!="number"?null:p}},ft=({openPopup:t,map:n,markers:a})=>{const o=m.useRef(null);m.useEffect(()=>{if(!n.current||!a)return;const f=n.current.getCanvas();if(o.current&&(o.current.remove(),o.current=null),t){const d=a.find(u=>u.id===t);if(d){const u=[Number(d.lng)||0,Number(d.lat)||0],p=Ee({coordinates:u,map:n,tooltip:d.Tooltip});p&&(o.current=p)}}const v=d=>{const u=[d.clientX-f.getBoundingClientRect().left,d.clientY-f.getBoundingClientRect().top],p=lt({map:n,point:u});if(p&&p.properties&&p.properties.id){o.current&&(o.current.remove(),o.current=null);const c=a.find(y=>y.id===p.properties.id);if(c){const y=[Number(c.lng)||0,Number(c.lat)||0];if(typeof c.onClick=="function"){const R={geometry:{coordinates:y,type:"Point"},properties:{description:c.name,id:c.id,name:c.name,onClick:c.onClick,size:c.size||1,zIndex:c.zIndex||1},type:"Feature"};c.onClick(R)}requestAnimationFrame(()=>{const R=Ee({coordinates:y,map:n,tooltip:c.Tooltip});R&&(o.current=R)})}}};return f.addEventListener("click",v),()=>{f.removeEventListener("click",v),o.current&&(o.current.remove(),o.current=null)}},[n,a,t])},dt=t=>Array.isArray(t)?t.length>=2?[t[0],t[1]]:void 0:t,pt=t=>{switch(t){case"satellite":return"mapbox://styles/mapbox/satellite-v9";case"dark":return"mapbox://styles/mapbox/dark-v10";case"3d":return"mapbox://styles/mapbox/streets-v12?optimize=true";case"streets":default:return"mapbox://styles/mapbox/streets-v11"}},vt=({mapStyle:t,mapContainer:n,zoomFlyFrom:a,markers:o,center:s,baseMapView:f,doubleClickZoom:v,cooperativeGestures:d})=>{var p,c;return{center:s?dt(s):{lat:((p=o==null?void 0:o[0])==null?void 0:p.lat)!==void 0?Number(o[0].lat):Re,lng:((c=o==null?void 0:o[0])==null?void 0:c.lng)!==void 0?Number(o[0].lng):he},container:(n==null?void 0:n.current)||"",cooperativeGestures:d,doubleClickZoom:v,failIfMajorPerformanceCaveat:!1,style:t||pt(f),zoom:a}},he=2.333,Re=46.8677,yt=({markers:t,loading:n,center:a,openPopup:o,onMapClick:s,flyToDuration:f=5e3,fitBoundDuration:v=1e3,fitBounds:d=!0,disableFlyTo:u=!1,fitBoundsPadding:p=50,projection:c,mapStyle:y,baseMapView:R="default",zoom:P=6,zoomFlyFrom:G=3,cooperativeGestures:q=!0,doubleClickZoom:Q=!0})=>{const{palette:L}=N.useTheme(),[T,J]=m.useState(!0),W=m.useRef(null),w=m.useRef(null),re=!t||t.some(A=>A.lat===void 0||A.lng===void 0);return m.useEffect(()=>{if(!F.supported()){J(!1);return}if(w.current||!W.current||n)return;const A=vt({baseMapView:R,center:a,cooperativeGestures:q,doubleClickZoom:Q,mapContainer:W,mapStyle:y,markers:t,zoomFlyFrom:G});w.current=new F.Map(A),w.current.resize(),J(!1)},[R,a,q,Q,n,y,t,c,G]),at({map:w,markers:t,markersAreInvalid:re,palette:L,setLoadingMapBox:J}),ft({map:w,markers:t,openPopup:o}),st({map:w,onMapClick:s}),$e({disableFlyTo:u,fitBoundDuration:v,fitBounds:d,fitBoundsPadding:p,flyToDuration:f,map:w,markers:t,zoom:P}),m.useEffect(()=>()=>{if(w.current){const A=W.current;A&&(A.innerHTML=""),w.current.remove(),w.current=null}},[]),{loading:T||n,map:w,mapContainer:W,markers:t}},gt=({containerStyle:t,square:n,theme:a,height:o=300,width:s="100%",...f})=>{const{loading:v,mapContainer:d}=yt(f);return M.jsxs(N.Box,{sx:{height:o,position:"relative",width:s,...t},children:[M.jsx(N.GlobalStyles,{styles:{".mapboxgl-popup-content":{backgroundColor:"transparent!important",borderRadius:"0px !important",boxShadow:"none!important",padding:"0px 0px!important",width:"fit-content!important"}}}),F.supported()?M.jsx(N.Box,{sx:{alignItems:"center",borderRadius:n?0:1,height:o,justifyContent:"center",left:0,position:"absolute",top:0,width:s,zIndex:1},ref:d}):M.jsx(N.Box,{sx:{left:"50%",position:"absolute",textAlign:"center",top:"50%",transform:"translate(-50%, -50%)"},children:"WebGL is not enabled in your browser. This technology is required to display the interactive map."}),v&&M.jsx(N.Skeleton,{sx:{inset:0,position:"absolute",zIndex:0},width:s,height:o,variant:n?"rectangular":"rounded"})]})},Et=m.memo(gt),me=(t,n)=>Number.isFinite(t)&&Number.isFinite(n)&&t>=-90&&t<=90&&n>=-180&&n<=180;x.DEFAULT_CENTER_LAT=46.8677,x.DEFAULT_CENTER_LNG=2.333,x.MapProvider=Ze,x.MapProviderContext=ve,x.MarkerMap=Et,x.isValidLatLng=me,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -26,7 +26,6 @@ interface GenerateMarkersProps {
|
|
|
26
26
|
interface LoadMarkersProps {
|
|
27
27
|
map: RefObject<Map | null>;
|
|
28
28
|
palette: Palette;
|
|
29
|
-
setLoadingMapBox: (loading: boolean) => void;
|
|
30
29
|
markers: MarkerProps[];
|
|
31
30
|
}
|
|
32
31
|
/**
|
|
@@ -66,9 +65,8 @@ export declare const generateMarkers: ({ palette, type }: GenerateMarkersProps)
|
|
|
66
65
|
*
|
|
67
66
|
* @param {Object} params - Configuration parameters
|
|
68
67
|
* @param {MutableRefObject<Map|null>} params.map - React ref to Mapbox GL instance
|
|
69
|
-
* @param {function} params.setLoadingMapBox - Loading state callback
|
|
70
68
|
* @param {Palette} params.palette - Design system color palette
|
|
71
69
|
* @param {MarkerProps[]} params.markers - Array of marker definitions
|
|
72
70
|
*/
|
|
73
|
-
export declare const loadMarkers: ({ map,
|
|
71
|
+
export declare const loadMarkers: ({ map, palette, markers }: LoadMarkersProps) => void;
|
|
74
72
|
export {};
|
package/package.json
CHANGED