@tracktor/map 0.5.5 → 0.5.6
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/useMarkerMap.d.ts +1 -1
- package/dist/main.js +232 -223
- package/dist/main.umd.cjs +10 -10
- package/dist/types/MarkerMapProps.d.ts +5 -1
- package/dist/utils/mapOptions.d.ts +9 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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:transparent;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:transparent}.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:transparent;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:content-box;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 transparent;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:transparent;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 transparent;transform:translateY(-28px) skewY(-20deg)}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:after{border-right:7.5px solid transparent;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
|
|
2
|
+
import de, { createContext as _r, useEffect as D, useMemo as Cr, forwardRef as xr, useRef as Z, useState as Ie } from "react";
|
|
3
3
|
import { LicenseInfo as Tr } from "@mui/x-license";
|
|
4
4
|
import Sr, { LngLatBounds as Pr, Marker as Or, Popup as wr, Map as jr } from "mapbox-gl";
|
|
5
|
-
import { Box as
|
|
5
|
+
import { Box as fe, Skeleton as Ar, useTheme as Fr, GlobalStyles as Lr } from "@tracktor/design-system";
|
|
6
6
|
import kr from "react-dom";
|
|
7
7
|
const ft = 2.333, dt = 46.8677;
|
|
8
|
-
var
|
|
8
|
+
var Q = { exports: {} }, z = {};
|
|
9
9
|
/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
@@ -17,19 +17,19 @@ var X = { exports: {} }, G = {};
|
|
|
17
17
|
*/
|
|
18
18
|
var Me;
|
|
19
19
|
function Dr() {
|
|
20
|
-
if (Me) return
|
|
20
|
+
if (Me) return z;
|
|
21
21
|
Me = 1;
|
|
22
|
-
var r =
|
|
23
|
-
function
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
for (
|
|
27
|
-
if (p && p.defaultProps) for (
|
|
22
|
+
var r = de, t = 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, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
23
|
+
function d(p, u, v) {
|
|
24
|
+
var f, b = {}, m = null, O = null;
|
|
25
|
+
v !== void 0 && (m = "" + v), u.key !== void 0 && (m = "" + u.key), u.ref !== void 0 && (O = u.ref);
|
|
26
|
+
for (f in u) o.call(u, f) && !l.hasOwnProperty(f) && (b[f] = u[f]);
|
|
27
|
+
if (p && p.defaultProps) for (f in u = p.defaultProps, u) b[f] === void 0 && (b[f] = u[f]);
|
|
28
28
|
return { $$typeof: t, type: p, key: m, ref: O, props: b, _owner: s.current };
|
|
29
29
|
}
|
|
30
|
-
return
|
|
30
|
+
return z.Fragment = a, z.jsx = d, z.jsxs = d, z;
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var G = {};
|
|
33
33
|
/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-jsx-runtime.development.js
|
|
@@ -42,11 +42,11 @@ var B = {};
|
|
|
42
42
|
var $e;
|
|
43
43
|
function Nr() {
|
|
44
44
|
return $e || ($e = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
-
var r =
|
|
46
|
-
function
|
|
45
|
+
var r = de, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), p = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), $ = Symbol.iterator, V = "@@iterator";
|
|
46
|
+
function q(e) {
|
|
47
47
|
if (e === null || typeof e != "object")
|
|
48
48
|
return null;
|
|
49
|
-
var n = $ && e[$] || e[
|
|
49
|
+
var n = $ && e[$] || e[V];
|
|
50
50
|
return typeof n == "function" ? n : null;
|
|
51
51
|
}
|
|
52
52
|
var j = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -54,10 +54,10 @@ function Nr() {
|
|
|
54
54
|
{
|
|
55
55
|
for (var n = arguments.length, i = new Array(n > 1 ? n - 1 : 0), c = 1; c < n; c++)
|
|
56
56
|
i[c - 1] = arguments[c];
|
|
57
|
-
|
|
57
|
+
W("error", e, i);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function W(e, n, i) {
|
|
61
61
|
{
|
|
62
62
|
var c = j.ReactDebugCurrentFrame, E = c.getStackAddendum();
|
|
63
63
|
E !== "" && (n += "%s", i = i.concat([E]));
|
|
@@ -67,14 +67,14 @@ function Nr() {
|
|
|
67
67
|
h.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, h);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
var ee = !1,
|
|
71
|
-
|
|
70
|
+
var ee = !1, re = !1, Y = !1, x = !1, te = !1, F;
|
|
71
|
+
F = Symbol.for("react.module.reference");
|
|
72
72
|
function qe(e) {
|
|
73
|
-
return !!(typeof e == "string" || typeof e == "function" || e === o || e === l ||
|
|
73
|
+
return !!(typeof e == "string" || typeof e == "function" || e === o || e === l || te || e === s || e === v || e === f || x || e === O || ee || re || Y || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof === b || e.$$typeof === d || e.$$typeof === p || e.$$typeof === u || // 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.
|
|
77
|
-
e.$$typeof ===
|
|
77
|
+
e.$$typeof === F || e.getModuleId !== void 0));
|
|
78
78
|
}
|
|
79
79
|
function Je(e, n, i) {
|
|
80
80
|
var c = e.displayName;
|
|
@@ -102,9 +102,9 @@ function Nr() {
|
|
|
102
102
|
return "Profiler";
|
|
103
103
|
case s:
|
|
104
104
|
return "StrictMode";
|
|
105
|
-
case
|
|
105
|
+
case v:
|
|
106
106
|
return "Suspense";
|
|
107
|
-
case
|
|
107
|
+
case f:
|
|
108
108
|
return "SuspenseList";
|
|
109
109
|
}
|
|
110
110
|
if (typeof e == "object")
|
|
@@ -112,7 +112,7 @@ function Nr() {
|
|
|
112
112
|
case p:
|
|
113
113
|
var n = e;
|
|
114
114
|
return pe(n) + ".Consumer";
|
|
115
|
-
case
|
|
115
|
+
case d:
|
|
116
116
|
var i = e;
|
|
117
117
|
return pe(i._context) + ".Provider";
|
|
118
118
|
case u:
|
|
@@ -131,13 +131,13 @@ function Nr() {
|
|
|
131
131
|
}
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
134
|
-
var
|
|
134
|
+
var L = Object.assign, U = 0, ve, ye, ge, be, Ee, he, me;
|
|
135
135
|
function Re() {
|
|
136
136
|
}
|
|
137
137
|
Re.__reactDisabledLog = !0;
|
|
138
138
|
function Ke() {
|
|
139
139
|
{
|
|
140
|
-
if (
|
|
140
|
+
if (U === 0) {
|
|
141
141
|
ve = console.log, ye = console.info, ge = console.warn, be = console.error, Ee = console.group, he = console.groupCollapsed, me = console.groupEnd;
|
|
142
142
|
var e = {
|
|
143
143
|
configurable: !0,
|
|
@@ -155,77 +155,77 @@ function Nr() {
|
|
|
155
155
|
groupEnd: e
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
|
|
158
|
+
U++;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
function Xe() {
|
|
162
162
|
{
|
|
163
|
-
if (
|
|
163
|
+
if (U--, U === 0) {
|
|
164
164
|
var e = {
|
|
165
165
|
configurable: !0,
|
|
166
166
|
enumerable: !0,
|
|
167
167
|
writable: !0
|
|
168
168
|
};
|
|
169
169
|
Object.defineProperties(console, {
|
|
170
|
-
log:
|
|
170
|
+
log: L({}, e, {
|
|
171
171
|
value: ve
|
|
172
172
|
}),
|
|
173
|
-
info:
|
|
173
|
+
info: L({}, e, {
|
|
174
174
|
value: ye
|
|
175
175
|
}),
|
|
176
|
-
warn:
|
|
176
|
+
warn: L({}, e, {
|
|
177
177
|
value: ge
|
|
178
178
|
}),
|
|
179
|
-
error:
|
|
179
|
+
error: L({}, e, {
|
|
180
180
|
value: be
|
|
181
181
|
}),
|
|
182
|
-
group:
|
|
182
|
+
group: L({}, e, {
|
|
183
183
|
value: Ee
|
|
184
184
|
}),
|
|
185
|
-
groupCollapsed:
|
|
185
|
+
groupCollapsed: L({}, e, {
|
|
186
186
|
value: he
|
|
187
187
|
}),
|
|
188
|
-
groupEnd:
|
|
188
|
+
groupEnd: L({}, e, {
|
|
189
189
|
value: me
|
|
190
190
|
})
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
U < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
var
|
|
197
|
-
function
|
|
196
|
+
var ne = j.ReactCurrentDispatcher, oe;
|
|
197
|
+
function J(e, n, i) {
|
|
198
198
|
{
|
|
199
|
-
if (
|
|
199
|
+
if (oe === void 0)
|
|
200
200
|
try {
|
|
201
201
|
throw Error();
|
|
202
202
|
} catch (E) {
|
|
203
203
|
var c = E.stack.trim().match(/\n( *(at )?)/);
|
|
204
|
-
|
|
204
|
+
oe = c && c[1] || "";
|
|
205
205
|
}
|
|
206
206
|
return `
|
|
207
|
-
` +
|
|
207
|
+
` + oe + e;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
var
|
|
210
|
+
var ie = !1, K;
|
|
211
211
|
{
|
|
212
212
|
var He = typeof WeakMap == "function" ? WeakMap : Map;
|
|
213
|
-
|
|
213
|
+
K = new He();
|
|
214
214
|
}
|
|
215
215
|
function _e(e, n) {
|
|
216
|
-
if (!e ||
|
|
216
|
+
if (!e || ie)
|
|
217
217
|
return "";
|
|
218
218
|
{
|
|
219
|
-
var i =
|
|
219
|
+
var i = K.get(e);
|
|
220
220
|
if (i !== void 0)
|
|
221
221
|
return i;
|
|
222
222
|
}
|
|
223
223
|
var c;
|
|
224
|
-
|
|
224
|
+
ie = !0;
|
|
225
225
|
var E = Error.prepareStackTrace;
|
|
226
226
|
Error.prepareStackTrace = void 0;
|
|
227
227
|
var h;
|
|
228
|
-
h =
|
|
228
|
+
h = ne.current, ne.current = null, Ke();
|
|
229
229
|
try {
|
|
230
230
|
if (n) {
|
|
231
231
|
var g = function() {
|
|
@@ -260,94 +260,94 @@ function Nr() {
|
|
|
260
260
|
}
|
|
261
261
|
} catch (S) {
|
|
262
262
|
if (S && c && typeof S.stack == "string") {
|
|
263
|
-
for (var
|
|
263
|
+
for (var y = S.stack.split(`
|
|
264
264
|
`), T = c.stack.split(`
|
|
265
|
-
`), R =
|
|
265
|
+
`), R = y.length - 1, _ = T.length - 1; R >= 1 && _ >= 0 && y[R] !== T[_]; )
|
|
266
266
|
_--;
|
|
267
267
|
for (; R >= 1 && _ >= 0; R--, _--)
|
|
268
|
-
if (
|
|
268
|
+
if (y[R] !== T[_]) {
|
|
269
269
|
if (R !== 1 || _ !== 1)
|
|
270
270
|
do
|
|
271
|
-
if (R--, _--, _ < 0 ||
|
|
271
|
+
if (R--, _--, _ < 0 || y[R] !== T[_]) {
|
|
272
272
|
var P = `
|
|
273
|
-
` +
|
|
274
|
-
return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
273
|
+
` + y[R].replace(" at new ", " at ");
|
|
274
|
+
return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && K.set(e, P), P;
|
|
275
275
|
}
|
|
276
276
|
while (R >= 1 && _ >= 0);
|
|
277
277
|
break;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
} finally {
|
|
281
|
-
|
|
281
|
+
ie = !1, ne.current = h, Xe(), Error.prepareStackTrace = E;
|
|
282
282
|
}
|
|
283
|
-
var I = e ? e.displayName || e.name : "",
|
|
284
|
-
return typeof e == "function" &&
|
|
283
|
+
var I = e ? e.displayName || e.name : "", k = I ? J(I) : "";
|
|
284
|
+
return typeof e == "function" && K.set(e, k), k;
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function Qe(e, n, i) {
|
|
287
287
|
return _e(e, !1);
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function Ze(e) {
|
|
290
290
|
var n = e.prototype;
|
|
291
291
|
return !!(n && n.isReactComponent);
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function X(e, n, i) {
|
|
294
294
|
if (e == null)
|
|
295
295
|
return "";
|
|
296
296
|
if (typeof e == "function")
|
|
297
|
-
return _e(e,
|
|
297
|
+
return _e(e, Ze(e));
|
|
298
298
|
if (typeof e == "string")
|
|
299
|
-
return
|
|
299
|
+
return J(e);
|
|
300
300
|
switch (e) {
|
|
301
|
-
case
|
|
302
|
-
return
|
|
303
|
-
case
|
|
304
|
-
return
|
|
301
|
+
case v:
|
|
302
|
+
return J("Suspense");
|
|
303
|
+
case f:
|
|
304
|
+
return J("SuspenseList");
|
|
305
305
|
}
|
|
306
306
|
if (typeof e == "object")
|
|
307
307
|
switch (e.$$typeof) {
|
|
308
308
|
case u:
|
|
309
|
-
return
|
|
309
|
+
return Qe(e.render);
|
|
310
310
|
case b:
|
|
311
|
-
return
|
|
311
|
+
return X(e.type, n, i);
|
|
312
312
|
case m: {
|
|
313
313
|
var c = e, E = c._payload, h = c._init;
|
|
314
314
|
try {
|
|
315
|
-
return
|
|
315
|
+
return X(h(E), n, i);
|
|
316
316
|
} catch {
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
return "";
|
|
321
321
|
}
|
|
322
|
-
var
|
|
323
|
-
function
|
|
322
|
+
var B = Object.prototype.hasOwnProperty, Ce = {}, xe = j.ReactDebugCurrentFrame;
|
|
323
|
+
function H(e) {
|
|
324
324
|
if (e) {
|
|
325
|
-
var n = e._owner, i =
|
|
325
|
+
var n = e._owner, i = X(e.type, e._source, n ? n.type : null);
|
|
326
326
|
xe.setExtraStackFrame(i);
|
|
327
327
|
} else
|
|
328
328
|
xe.setExtraStackFrame(null);
|
|
329
329
|
}
|
|
330
330
|
function er(e, n, i, c, E) {
|
|
331
331
|
{
|
|
332
|
-
var h = Function.call.bind(
|
|
332
|
+
var h = Function.call.bind(B);
|
|
333
333
|
for (var g in e)
|
|
334
334
|
if (h(e, g)) {
|
|
335
|
-
var
|
|
335
|
+
var y = void 0;
|
|
336
336
|
try {
|
|
337
337
|
if (typeof e[g] != "function") {
|
|
338
338
|
var T = Error((c || "React class") + ": " + i + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
339
339
|
throw T.name = "Invariant Violation", T;
|
|
340
340
|
}
|
|
341
|
-
|
|
341
|
+
y = e[g](n, g, c, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
342
|
} catch (R) {
|
|
343
|
-
|
|
343
|
+
y = R;
|
|
344
344
|
}
|
|
345
|
-
|
|
345
|
+
y && !(y instanceof Error) && (H(E), C("%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).", c || "React class", i, g, typeof y), H(null)), y instanceof Error && !(y.message in Ce) && (Ce[y.message] = !0, H(E), C("Failed %s type: %s", i, y.message), H(null));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
var rr = Array.isArray;
|
|
350
|
-
function
|
|
350
|
+
function ae(e) {
|
|
351
351
|
return rr(e);
|
|
352
352
|
}
|
|
353
353
|
function tr(e) {
|
|
@@ -377,7 +377,7 @@ function Nr() {
|
|
|
377
377
|
__source: !0
|
|
378
378
|
}, Oe, we;
|
|
379
379
|
function ir(e) {
|
|
380
|
-
if (
|
|
380
|
+
if (B.call(e, "ref")) {
|
|
381
381
|
var n = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
382
382
|
if (n && n.isReactWarning)
|
|
383
383
|
return !1;
|
|
@@ -385,7 +385,7 @@ function Nr() {
|
|
|
385
385
|
return e.ref !== void 0;
|
|
386
386
|
}
|
|
387
387
|
function ar(e) {
|
|
388
|
-
if (
|
|
388
|
+
if (B.call(e, "key")) {
|
|
389
389
|
var n = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
390
390
|
if (n && n.isReactWarning)
|
|
391
391
|
return !1;
|
|
@@ -418,7 +418,7 @@ function Nr() {
|
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
420
|
var lr = function(e, n, i, c, E, h, g) {
|
|
421
|
-
var
|
|
421
|
+
var y = {
|
|
422
422
|
// This tag allows us to uniquely identify this as a React Element
|
|
423
423
|
$$typeof: t,
|
|
424
424
|
// Built-in properties that belong on the element
|
|
@@ -429,58 +429,58 @@ function Nr() {
|
|
|
429
429
|
// Record the component responsible for creating this element.
|
|
430
430
|
_owner: h
|
|
431
431
|
};
|
|
432
|
-
return
|
|
432
|
+
return y._store = {}, Object.defineProperty(y._store, "validated", {
|
|
433
433
|
configurable: !1,
|
|
434
434
|
enumerable: !1,
|
|
435
435
|
writable: !0,
|
|
436
436
|
value: !1
|
|
437
|
-
}), Object.defineProperty(
|
|
437
|
+
}), Object.defineProperty(y, "_self", {
|
|
438
438
|
configurable: !1,
|
|
439
439
|
enumerable: !1,
|
|
440
440
|
writable: !1,
|
|
441
441
|
value: c
|
|
442
|
-
}), Object.defineProperty(
|
|
442
|
+
}), Object.defineProperty(y, "_source", {
|
|
443
443
|
configurable: !1,
|
|
444
444
|
enumerable: !1,
|
|
445
445
|
writable: !1,
|
|
446
446
|
value: E
|
|
447
|
-
}), Object.freeze && (Object.freeze(
|
|
447
|
+
}), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
|
|
448
448
|
};
|
|
449
449
|
function fr(e, n, i, c, E) {
|
|
450
450
|
{
|
|
451
|
-
var h, g = {},
|
|
452
|
-
i !== void 0 && (Se(i),
|
|
451
|
+
var h, g = {}, y = null, T = null;
|
|
452
|
+
i !== void 0 && (Se(i), y = "" + i), ar(n) && (Se(n.key), y = "" + n.key), ir(n) && (T = n.ref, sr(n, E));
|
|
453
453
|
for (h in n)
|
|
454
|
-
|
|
454
|
+
B.call(n, h) && !or.hasOwnProperty(h) && (g[h] = n[h]);
|
|
455
455
|
if (e && e.defaultProps) {
|
|
456
456
|
var R = e.defaultProps;
|
|
457
457
|
for (h in R)
|
|
458
458
|
g[h] === void 0 && (g[h] = R[h]);
|
|
459
459
|
}
|
|
460
|
-
if (
|
|
460
|
+
if (y || T) {
|
|
461
461
|
var _ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
462
|
-
|
|
462
|
+
y && ur(g, _), T && cr(g, _);
|
|
463
463
|
}
|
|
464
|
-
return lr(e,
|
|
464
|
+
return lr(e, y, T, E, c, Pe.current, g);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
var
|
|
467
|
+
var se = j.ReactCurrentOwner, je = j.ReactDebugCurrentFrame;
|
|
468
468
|
function N(e) {
|
|
469
469
|
if (e) {
|
|
470
|
-
var n = e._owner, i =
|
|
470
|
+
var n = e._owner, i = X(e.type, e._source, n ? n.type : null);
|
|
471
471
|
je.setExtraStackFrame(i);
|
|
472
472
|
} else
|
|
473
473
|
je.setExtraStackFrame(null);
|
|
474
474
|
}
|
|
475
|
-
var
|
|
476
|
-
|
|
477
|
-
function
|
|
475
|
+
var ue;
|
|
476
|
+
ue = !1;
|
|
477
|
+
function ce(e) {
|
|
478
478
|
return typeof e == "object" && e !== null && e.$$typeof === t;
|
|
479
479
|
}
|
|
480
480
|
function Ae() {
|
|
481
481
|
{
|
|
482
|
-
if (
|
|
483
|
-
var e = A(
|
|
482
|
+
if (se.current) {
|
|
483
|
+
var e = A(se.current.type);
|
|
484
484
|
if (e)
|
|
485
485
|
return `
|
|
486
486
|
|
|
@@ -515,25 +515,25 @@ Check the top-level render call using <` + i + ">.");
|
|
|
515
515
|
return;
|
|
516
516
|
Fe[i] = !0;
|
|
517
517
|
var c = "";
|
|
518
|
-
e && e._owner && e._owner !==
|
|
518
|
+
e && e._owner && e._owner !== se.current && (c = " It was passed a child from " + A(e._owner.type) + "."), N(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, c), N(null);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
function ke(e, n) {
|
|
522
522
|
{
|
|
523
523
|
if (typeof e != "object")
|
|
524
524
|
return;
|
|
525
|
-
if (
|
|
525
|
+
if (ae(e))
|
|
526
526
|
for (var i = 0; i < e.length; i++) {
|
|
527
527
|
var c = e[i];
|
|
528
|
-
|
|
528
|
+
ce(c) && Le(c, n);
|
|
529
529
|
}
|
|
530
|
-
else if (
|
|
530
|
+
else if (ce(e))
|
|
531
531
|
e._store && (e._store.validated = !0);
|
|
532
532
|
else if (e) {
|
|
533
|
-
var E =
|
|
533
|
+
var E = q(e);
|
|
534
534
|
if (typeof E == "function" && E !== e.entries)
|
|
535
535
|
for (var h = E.call(e), g; !(g = h.next()).done; )
|
|
536
|
-
|
|
536
|
+
ce(g.value) && Le(g.value, n);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
}
|
|
@@ -554,8 +554,8 @@ Check the top-level render call using <` + i + ">.");
|
|
|
554
554
|
if (i) {
|
|
555
555
|
var c = A(n);
|
|
556
556
|
er(i, e.props, "prop", c, e);
|
|
557
|
-
} else if (n.PropTypes !== void 0 && !
|
|
558
|
-
|
|
557
|
+
} else if (n.PropTypes !== void 0 && !ue) {
|
|
558
|
+
ue = !0;
|
|
559
559
|
var E = A(n);
|
|
560
560
|
C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
|
|
561
561
|
}
|
|
@@ -579,12 +579,12 @@ Check the top-level render call using <` + i + ">.");
|
|
|
579
579
|
{
|
|
580
580
|
var g = qe(e);
|
|
581
581
|
if (!g) {
|
|
582
|
-
var
|
|
583
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
582
|
+
var y = "";
|
|
583
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (y += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
584
584
|
var T = dr();
|
|
585
|
-
T ?
|
|
585
|
+
T ? y += T : y += Ae();
|
|
586
586
|
var R;
|
|
587
|
-
e === null ? R = "null" :
|
|
587
|
+
e === null ? R = "null" : ae(e) ? R = "array" : e !== void 0 && e.$$typeof === t ? (R = "<" + (A(e.type) || "Unknown") + " />", y = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, y);
|
|
588
588
|
}
|
|
589
589
|
var _ = fr(e, n, i, E, h);
|
|
590
590
|
if (_ == null)
|
|
@@ -593,7 +593,7 @@ Check the top-level render call using <` + i + ">.");
|
|
|
593
593
|
var P = n.children;
|
|
594
594
|
if (P !== void 0)
|
|
595
595
|
if (c)
|
|
596
|
-
if (
|
|
596
|
+
if (ae(P)) {
|
|
597
597
|
for (var I = 0; I < P.length; I++)
|
|
598
598
|
ke(P[I], e);
|
|
599
599
|
Object.freeze && Object.freeze(P);
|
|
@@ -602,18 +602,18 @@ Check the top-level render call using <` + i + ">.");
|
|
|
602
602
|
else
|
|
603
603
|
ke(P, e);
|
|
604
604
|
}
|
|
605
|
-
if (
|
|
606
|
-
var
|
|
605
|
+
if (B.call(n, "key")) {
|
|
606
|
+
var k = A(e), S = Object.keys(n).filter(function(Rr) {
|
|
607
607
|
return Rr !== "key";
|
|
608
|
-
}),
|
|
609
|
-
if (!De[
|
|
608
|
+
}), le = S.length > 0 ? "{key: someKey, " + S.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
609
|
+
if (!De[k + le]) {
|
|
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} />`,
|
|
616
|
+
<%s key={someKey} {...props} />`, le, k, mr, k), De[k + le] = !0;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
619
|
return e === o ? yr(_) : vr(_), _;
|
|
@@ -626,19 +626,19 @@ React keys must be passed directly to JSX without using spread:
|
|
|
626
626
|
return Ne(e, n, i, !1);
|
|
627
627
|
}
|
|
628
628
|
var Er = br, hr = gr;
|
|
629
|
-
|
|
630
|
-
}()),
|
|
629
|
+
G.Fragment = o, G.jsx = Er, G.jsxs = hr;
|
|
630
|
+
}()), G;
|
|
631
631
|
}
|
|
632
632
|
var We;
|
|
633
633
|
function Ir() {
|
|
634
|
-
return We || (We = 1, process.env.NODE_ENV === "production" ?
|
|
634
|
+
return We || (We = 1, process.env.NODE_ENV === "production" ? Q.exports = Dr() : Q.exports = Nr()), Q.exports;
|
|
635
635
|
}
|
|
636
636
|
var w = Ir();
|
|
637
637
|
const Mr = _r({
|
|
638
638
|
licenceMapbox: "",
|
|
639
639
|
licenseMuiX: ""
|
|
640
640
|
}), pt = ({ children: r, licenseMuiX: t, licenceMapbox: a }) => {
|
|
641
|
-
|
|
641
|
+
D(() => {
|
|
642
642
|
t && Tr.setLicenseKey(t);
|
|
643
643
|
}, [t]);
|
|
644
644
|
const o = Cr(
|
|
@@ -649,9 +649,9 @@ const Mr = _r({
|
|
|
649
649
|
[t, a]
|
|
650
650
|
);
|
|
651
651
|
return a && (Sr.accessToken = a), /* @__PURE__ */ w.jsx(Mr.Provider, { value: o, children: r });
|
|
652
|
-
}, $r = ({ containerStyle: r, square: t, error: a, loading: o = !1, height: s = 300, width: l = "100%" },
|
|
652
|
+
}, $r = ({ containerStyle: r, square: t, error: a, loading: o = !1, height: s = 300, width: l = "100%" }, d) => /* @__PURE__ */ w.jsxs(fe, { sx: { position: "relative" }, height: s, children: [
|
|
653
653
|
/* @__PURE__ */ w.jsx(
|
|
654
|
-
|
|
654
|
+
fe,
|
|
655
655
|
{
|
|
656
656
|
sx: {
|
|
657
657
|
alignItems: "center",
|
|
@@ -663,10 +663,10 @@ const Mr = _r({
|
|
|
663
663
|
zIndex: 1,
|
|
664
664
|
...r
|
|
665
665
|
},
|
|
666
|
-
ref:
|
|
666
|
+
ref: d,
|
|
667
667
|
width: l,
|
|
668
668
|
height: s,
|
|
669
|
-
children: a && /* @__PURE__ */ w.jsx(
|
|
669
|
+
children: a && /* @__PURE__ */ w.jsx(fe, { textAlign: "center", children: a })
|
|
670
670
|
}
|
|
671
671
|
),
|
|
672
672
|
o && /* @__PURE__ */ w.jsx(
|
|
@@ -691,30 +691,30 @@ const Mr = _r({
|
|
|
691
691
|
zoom: o,
|
|
692
692
|
fitBounds: s,
|
|
693
693
|
markers: l,
|
|
694
|
-
fitBoundDuration:
|
|
694
|
+
fitBoundDuration: d,
|
|
695
695
|
fitBoundsPadding: p
|
|
696
696
|
}) => {
|
|
697
|
-
const u =
|
|
698
|
-
|
|
697
|
+
const u = Z(!1);
|
|
698
|
+
D(() => {
|
|
699
699
|
if (!r.current || (!t && !u.current && (r.current.flyTo({
|
|
700
700
|
duration: a,
|
|
701
701
|
zoom: o
|
|
702
702
|
}), u.current = !0), !s || !(l != null && l.length) || l.length < 2)) return;
|
|
703
|
-
const
|
|
703
|
+
const v = new Pr(), f = l.filter((b) => {
|
|
704
704
|
const m = Number(b.lng), O = Number(b.lat);
|
|
705
705
|
return it(O, m);
|
|
706
706
|
});
|
|
707
|
-
if (!(
|
|
708
|
-
for (let b = 0; b <
|
|
709
|
-
const m = Number(
|
|
710
|
-
|
|
707
|
+
if (!(f.length < 2)) {
|
|
708
|
+
for (let b = 0; b < f.length; b += 1) {
|
|
709
|
+
const m = Number(f[b].lng), O = Number(f[b].lat);
|
|
710
|
+
v.extend([m, O]);
|
|
711
711
|
}
|
|
712
|
-
r.current.fitBounds(
|
|
713
|
-
duration:
|
|
712
|
+
r.current.fitBounds(v, {
|
|
713
|
+
duration: d,
|
|
714
714
|
padding: p
|
|
715
715
|
});
|
|
716
716
|
}
|
|
717
|
-
}, [l, s, p, a, o,
|
|
717
|
+
}, [l, s, p, a, o, d, t, r]);
|
|
718
718
|
};
|
|
719
719
|
var M = {}, Ye;
|
|
720
720
|
function Ur() {
|
|
@@ -743,8 +743,8 @@ function Ur() {
|
|
|
743
743
|
}
|
|
744
744
|
return M;
|
|
745
745
|
}
|
|
746
|
-
var
|
|
747
|
-
const
|
|
746
|
+
var Be = Ur();
|
|
747
|
+
const Br = ({ palette: r, type: t }) => {
|
|
748
748
|
const a = r.mode === "dark" ? "black" : "white", o = r.secondary.main, s = r.info.main;
|
|
749
749
|
switch (t) {
|
|
750
750
|
case "dropOff":
|
|
@@ -762,16 +762,16 @@ const Gr = ({ palette: r, type: t }) => {
|
|
|
762
762
|
"circle-stroke-width": 8
|
|
763
763
|
};
|
|
764
764
|
}
|
|
765
|
-
},
|
|
765
|
+
}, zr = (r, t, a, o) => {
|
|
766
766
|
const s = {
|
|
767
|
-
features: a.map((
|
|
767
|
+
features: a.map((d) => ({
|
|
768
768
|
geometry: {
|
|
769
|
-
coordinates:
|
|
769
|
+
coordinates: d.geometry.coordinates,
|
|
770
770
|
type: "Point"
|
|
771
771
|
},
|
|
772
772
|
properties: {
|
|
773
|
-
id:
|
|
774
|
-
...
|
|
773
|
+
id: d.properties.id,
|
|
774
|
+
...d.properties
|
|
775
775
|
},
|
|
776
776
|
type: "Feature"
|
|
777
777
|
})),
|
|
@@ -780,31 +780,31 @@ const Gr = ({ palette: r, type: t }) => {
|
|
|
780
780
|
l ? l.setData(s) : r.addSource(t, {
|
|
781
781
|
data: s,
|
|
782
782
|
type: "geojson"
|
|
783
|
-
}), s.features.forEach((
|
|
784
|
-
const { description: p, id: u } =
|
|
785
|
-
r.getLayer(
|
|
786
|
-
r.setPaintProperty(
|
|
783
|
+
}), s.features.forEach((d) => {
|
|
784
|
+
const { description: p, id: u } = d.properties || {}, v = Br({ palette: o, type: p }), f = `marker-${u}`;
|
|
785
|
+
r.getLayer(f) ? Object.entries(v || {}).forEach(([b, m]) => {
|
|
786
|
+
r.setPaintProperty(f, b, m);
|
|
787
787
|
}) : r.addLayer({
|
|
788
788
|
filter: ["==", "id", u],
|
|
789
|
-
id:
|
|
789
|
+
id: f,
|
|
790
790
|
layout: {
|
|
791
791
|
visibility: "visible"
|
|
792
792
|
},
|
|
793
|
-
paint:
|
|
793
|
+
paint: v,
|
|
794
794
|
source: t,
|
|
795
795
|
type: "circle"
|
|
796
796
|
});
|
|
797
797
|
});
|
|
798
|
-
},
|
|
798
|
+
}, Gr = (r, t) => {
|
|
799
799
|
document.querySelectorAll(".react-custom-marker").forEach((o) => o.remove()), t.forEach((o) => {
|
|
800
|
-
const { IconComponent: s, iconProps: l, onClick:
|
|
800
|
+
const { IconComponent: s, iconProps: l, onClick: d } = o.properties || {}, { coordinates: p } = o.geometry;
|
|
801
801
|
if (s && p.length >= 2) {
|
|
802
802
|
const u = document.createElement("div");
|
|
803
803
|
u.className = "react-custom-marker", u.style.position = "absolute";
|
|
804
|
-
const
|
|
805
|
-
s &&
|
|
804
|
+
const v = document.createElement("div"), f = Be.createRoot(v);
|
|
805
|
+
s && f.render(de.createElement(s, l || {})), u.appendChild(v);
|
|
806
806
|
const b = () => {
|
|
807
|
-
|
|
807
|
+
d == null || d(o);
|
|
808
808
|
};
|
|
809
809
|
u.addEventListener("click", b), new Or(u).setLngLat([p[0], p[1]]).addTo(r);
|
|
810
810
|
}
|
|
@@ -813,7 +813,7 @@ const Gr = ({ palette: r, type: t }) => {
|
|
|
813
813
|
features: (r == null ? void 0 : r.map((t, a) => ({
|
|
814
814
|
geometry: {
|
|
815
815
|
coordinates: [
|
|
816
|
-
Number.isFinite(Number(t.lng)) ? Number(t.lng) : Number(
|
|
816
|
+
Number.isFinite(Number(t.lng)) ? Number(t.lng) : Number(Ge),
|
|
817
817
|
Number.isFinite(Number(t.lat)) ? Number(t.lat) : Number(Ve)
|
|
818
818
|
],
|
|
819
819
|
type: "Point"
|
|
@@ -837,14 +837,14 @@ const Gr = ({ palette: r, type: t }) => {
|
|
|
837
837
|
var u;
|
|
838
838
|
return ((u = p.properties) == null ? void 0 : u.IconComponent) === void 0;
|
|
839
839
|
});
|
|
840
|
-
l.length &&
|
|
841
|
-
const
|
|
840
|
+
l.length && zr(r.current, "markerProps", l, a);
|
|
841
|
+
const d = s.features.filter((p) => {
|
|
842
842
|
var u;
|
|
843
843
|
return (u = p.properties) == null ? void 0 : u.IconComponent;
|
|
844
844
|
});
|
|
845
|
-
|
|
845
|
+
d.length && Gr(r.current, d);
|
|
846
846
|
}, Jr = ({ map: r, markers: t, markersAreInvalid: a, palette: o, setLoadingMapBox: s }) => {
|
|
847
|
-
|
|
847
|
+
D(() => {
|
|
848
848
|
if (!r.current || a) return;
|
|
849
849
|
const l = () => {
|
|
850
850
|
t && qr({ map: r, markers: t, palette: o, setLoadingMapBox: s });
|
|
@@ -852,11 +852,11 @@ const Gr = ({ palette: r, type: t }) => {
|
|
|
852
852
|
r.current.loaded() ? l() : r.current.once("load", l);
|
|
853
853
|
}, [r, t, a, o, s]);
|
|
854
854
|
}, Kr = ({ map: r, onMapClick: t }) => {
|
|
855
|
-
|
|
855
|
+
D(() => {
|
|
856
856
|
if (!r.current || !t) return;
|
|
857
857
|
const a = r.current.getCanvas(), o = (s) => {
|
|
858
|
-
const l = [s.clientX - a.getBoundingClientRect().left, s.clientY - a.getBoundingClientRect().top],
|
|
859
|
-
t(
|
|
858
|
+
const l = [s.clientX - a.getBoundingClientRect().left, s.clientY - a.getBoundingClientRect().top], d = r.current.unproject(l);
|
|
859
|
+
t(d.lng, d.lat);
|
|
860
860
|
};
|
|
861
861
|
a.addEventListener("click", o);
|
|
862
862
|
}, [r, t]);
|
|
@@ -870,98 +870,98 @@ const Gr = ({ palette: r, type: t }) => {
|
|
|
870
870
|
o.style.position = "relative", o.style.overflow = "hidden";
|
|
871
871
|
const s = document.createElement("div");
|
|
872
872
|
s.style.padding = "10px", o.style.zIndex = "1000";
|
|
873
|
-
const l =
|
|
873
|
+
const l = Be.createRoot(s);
|
|
874
874
|
l.render(t);
|
|
875
|
-
const
|
|
875
|
+
const d = new wr({
|
|
876
876
|
closeButton: !1
|
|
877
877
|
}).setLngLat(a).setDOMContent(o).addTo(r.current);
|
|
878
|
-
|
|
878
|
+
d.on("close", () => {
|
|
879
879
|
queueMicrotask(() => {
|
|
880
880
|
l.unmount();
|
|
881
881
|
});
|
|
882
882
|
});
|
|
883
|
-
const p = Xr(
|
|
884
|
-
return o.appendChild(p), o.appendChild(s),
|
|
885
|
-
},
|
|
883
|
+
const p = Xr(d);
|
|
884
|
+
return o.appendChild(p), o.appendChild(s), d;
|
|
885
|
+
}, ze = (r) => typeof r == "object" && r !== null && "type" in r && "coordinates" in r, Hr = (r) => {
|
|
886
886
|
if (typeof r != "object" || r === null || !("geometry" in r && "properties" in r))
|
|
887
887
|
return !1;
|
|
888
888
|
const { geometry: a } = r;
|
|
889
889
|
if (typeof a != "object" || a === null || !("coordinates" in a))
|
|
890
890
|
return !1;
|
|
891
891
|
const { coordinates: o } = a;
|
|
892
|
-
if (!Array.isArray(o) || o.length !== 2 || !
|
|
892
|
+
if (!Array.isArray(o) || o.length !== 2 || !ze(a))
|
|
893
893
|
return !1;
|
|
894
894
|
const { properties: s } = r;
|
|
895
895
|
return typeof s != "object" || s === null ? !1 : "id" in s && s.id !== void 0;
|
|
896
|
-
},
|
|
897
|
-
var s, l,
|
|
896
|
+
}, Qr = ({ map: r, point: t }) => {
|
|
897
|
+
var s, l, d, p, u;
|
|
898
898
|
if (!((s = r.current) != null && s.isStyleLoaded()))
|
|
899
899
|
return null;
|
|
900
|
-
const a = ((p = (
|
|
900
|
+
const a = ((p = (d = (l = r.current) == null ? void 0 : l.getStyle()) == null ? void 0 : d.layers) == null ? void 0 : p.filter((v) => v.id.startsWith("marker-")).map((v) => v.id)) || [], o = (u = r.current) == null ? void 0 : u.queryRenderedFeatures(t, { layers: a });
|
|
901
901
|
if (o && o.length > 0) {
|
|
902
|
-
const
|
|
903
|
-
if (!Hr(
|
|
902
|
+
const v = o[0];
|
|
903
|
+
if (!Hr(v) || !ze(v.geometry))
|
|
904
904
|
return null;
|
|
905
|
-
const { geometry:
|
|
906
|
-
return b.length !== 2 || typeof b[0] != "number" || typeof b[1] != "number" ? null :
|
|
905
|
+
const { geometry: f } = v, b = f.coordinates.slice();
|
|
906
|
+
return b.length !== 2 || typeof b[0] != "number" || typeof b[1] != "number" ? null : v;
|
|
907
907
|
}
|
|
908
|
-
},
|
|
909
|
-
const o =
|
|
910
|
-
|
|
908
|
+
}, Zr = ({ openPopup: r, map: t, markers: a }) => {
|
|
909
|
+
const o = Z(null);
|
|
910
|
+
D(() => {
|
|
911
911
|
if (!t.current || !a) return;
|
|
912
912
|
const l = t.current.getCanvas();
|
|
913
913
|
if (o.current && (o.current.remove(), o.current = null), r) {
|
|
914
914
|
const p = a.find((u) => u.id === r);
|
|
915
915
|
if (p) {
|
|
916
|
-
const u = [Number(p.lng) || 0, Number(p.lat) || 0],
|
|
916
|
+
const u = [Number(p.lng) || 0, Number(p.lat) || 0], v = Ue({
|
|
917
917
|
coordinates: u,
|
|
918
918
|
map: t,
|
|
919
919
|
tooltip: p.Tooltip
|
|
920
920
|
});
|
|
921
|
-
|
|
921
|
+
v && (o.current = v);
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
|
-
const
|
|
924
|
+
const d = (p) => {
|
|
925
925
|
const u = [
|
|
926
926
|
p.clientX - l.getBoundingClientRect().left,
|
|
927
927
|
p.clientY - l.getBoundingClientRect().top
|
|
928
|
-
],
|
|
929
|
-
if (
|
|
928
|
+
], v = Qr({ map: t, point: u });
|
|
929
|
+
if (v && v.properties && v.properties.id) {
|
|
930
930
|
o.current && (o.current.remove(), o.current = null);
|
|
931
|
-
const
|
|
932
|
-
if (
|
|
933
|
-
const b = [Number(
|
|
934
|
-
if (typeof
|
|
931
|
+
const f = a.find((b) => b.id === v.properties.id);
|
|
932
|
+
if (f) {
|
|
933
|
+
const b = [Number(f.lng) || 0, Number(f.lat) || 0];
|
|
934
|
+
if (typeof f.onClick == "function") {
|
|
935
935
|
const m = {
|
|
936
936
|
geometry: {
|
|
937
937
|
coordinates: b,
|
|
938
938
|
type: "Point"
|
|
939
939
|
},
|
|
940
940
|
properties: {
|
|
941
|
-
description:
|
|
942
|
-
id:
|
|
943
|
-
name:
|
|
944
|
-
onClick:
|
|
945
|
-
size:
|
|
946
|
-
zIndex:
|
|
941
|
+
description: f.name,
|
|
942
|
+
id: f.id,
|
|
943
|
+
name: f.name,
|
|
944
|
+
onClick: f.onClick,
|
|
945
|
+
size: f.size || 1,
|
|
946
|
+
zIndex: f.zIndex || 1
|
|
947
947
|
},
|
|
948
948
|
type: "Feature"
|
|
949
949
|
};
|
|
950
|
-
|
|
950
|
+
f.onClick(m);
|
|
951
951
|
}
|
|
952
952
|
requestAnimationFrame(() => {
|
|
953
953
|
const m = Ue({
|
|
954
954
|
coordinates: b,
|
|
955
955
|
map: t,
|
|
956
|
-
tooltip:
|
|
956
|
+
tooltip: f.Tooltip
|
|
957
957
|
});
|
|
958
958
|
m && (o.current = m);
|
|
959
959
|
});
|
|
960
960
|
}
|
|
961
961
|
}
|
|
962
962
|
};
|
|
963
|
-
return l.addEventListener("click",
|
|
964
|
-
l.removeEventListener("click",
|
|
963
|
+
return l.addEventListener("click", d), () => {
|
|
964
|
+
l.removeEventListener("click", d), o.current && (o.current.remove(), o.current = null);
|
|
965
965
|
};
|
|
966
966
|
}, [t, a, r]);
|
|
967
967
|
}, et = () => {
|
|
@@ -983,74 +983,83 @@ const Gr = ({ palette: r, type: t }) => {
|
|
|
983
983
|
default:
|
|
984
984
|
return "mapbox://styles/mapbox/streets-v11";
|
|
985
985
|
}
|
|
986
|
-
}, nt = ({
|
|
987
|
-
|
|
986
|
+
}, nt = ({
|
|
987
|
+
mapStyle: r,
|
|
988
|
+
mapContainer: t,
|
|
989
|
+
zoomFlyFrom: a,
|
|
990
|
+
markers: o,
|
|
991
|
+
center: s,
|
|
992
|
+
baseMapView: l,
|
|
993
|
+
doubleClickZoom: d,
|
|
994
|
+
cooperativeGestures: p
|
|
995
|
+
}) => {
|
|
996
|
+
var v, f;
|
|
988
997
|
return {
|
|
989
998
|
center: s ? rt(s) : {
|
|
990
|
-
lat: ((
|
|
991
|
-
lng: ((
|
|
999
|
+
lat: ((v = o == null ? void 0 : o[0]) == null ? void 0 : v.lat) !== void 0 ? Number(o[0].lat) : Ve,
|
|
1000
|
+
lng: ((f = o == null ? void 0 : o[0]) == null ? void 0 : f.lng) !== void 0 ? Number(o[0].lng) : Ge
|
|
992
1001
|
},
|
|
993
1002
|
container: (t == null ? void 0 : t.current) || "",
|
|
994
|
-
cooperativeGestures:
|
|
1003
|
+
cooperativeGestures: p,
|
|
1004
|
+
doubleClickZoom: d,
|
|
995
1005
|
failIfMajorPerformanceCaveat: !1,
|
|
996
1006
|
style: r || tt(l),
|
|
997
1007
|
zoom: a
|
|
998
1008
|
};
|
|
999
|
-
},
|
|
1009
|
+
}, Ge = 2.333, Ve = 46.8677, ot = ({
|
|
1000
1010
|
markers: r,
|
|
1001
1011
|
loading: t,
|
|
1002
1012
|
center: a,
|
|
1003
1013
|
openPopup: o,
|
|
1004
1014
|
onMapClick: s,
|
|
1005
1015
|
flyToDuration: l = 5e3,
|
|
1006
|
-
fitBoundDuration:
|
|
1016
|
+
fitBoundDuration: d = 1e3,
|
|
1007
1017
|
fitBounds: p = !0,
|
|
1008
1018
|
disableFlyTo: u = !1,
|
|
1009
|
-
fitBoundsPadding:
|
|
1010
|
-
projection:
|
|
1019
|
+
fitBoundsPadding: v = 50,
|
|
1020
|
+
projection: f,
|
|
1011
1021
|
mapStyle: b,
|
|
1012
1022
|
baseMapView: m = "default",
|
|
1013
1023
|
zoom: O = 6,
|
|
1014
1024
|
zoomFlyFrom: $ = 3,
|
|
1015
|
-
|
|
1025
|
+
cooperativeGestures: V = !0,
|
|
1026
|
+
doubleClickZoom: q = !0
|
|
1016
1027
|
}) => {
|
|
1017
|
-
const { palette:
|
|
1018
|
-
return
|
|
1028
|
+
const { palette: j } = Fr(), [C, W] = Ie(!0), [ee, re] = Ie(!0), Y = Z(null), x = Z(null), te = !r || r.some((F) => F.lat === void 0 || F.lng === void 0);
|
|
1029
|
+
return D(() => {
|
|
1019
1030
|
if (!et()) {
|
|
1020
|
-
|
|
1031
|
+
re(!1), W(!1);
|
|
1021
1032
|
return;
|
|
1022
1033
|
}
|
|
1023
|
-
if (x.current || !
|
|
1034
|
+
if (x.current || !Y.current || t)
|
|
1024
1035
|
return;
|
|
1025
|
-
const
|
|
1036
|
+
const F = nt({
|
|
1026
1037
|
baseMapView: m,
|
|
1027
1038
|
center: a,
|
|
1028
|
-
|
|
1039
|
+
cooperativeGestures: V,
|
|
1040
|
+
doubleClickZoom: q,
|
|
1041
|
+
mapContainer: Y,
|
|
1029
1042
|
mapStyle: b,
|
|
1030
1043
|
markers: r,
|
|
1031
1044
|
zoomFlyFrom: $
|
|
1032
1045
|
});
|
|
1033
|
-
return x.current = new jr({
|
|
1034
|
-
...D,
|
|
1035
|
-
cooperativeGestures: !!z,
|
|
1036
|
-
doubleClickZoom: !0
|
|
1037
|
-
}), x.current.resize(), C(!1), () => {
|
|
1046
|
+
return x.current = new jr(F), x.current.resize(), W(!1), () => {
|
|
1038
1047
|
x.current && (x.current.remove(), x.current = null);
|
|
1039
1048
|
};
|
|
1040
|
-
}, [
|
|
1049
|
+
}, [m, a, V, q, t, b, r, f, $]), Jr({ map: x, markers: r, markersAreInvalid: te, palette: j, setLoadingMapBox: W }), Zr({ map: x, markers: r, openPopup: o }), Kr({ map: x, onMapClick: s }), Yr({ disableFlyTo: u, fitBoundDuration: d, fitBounds: p, fitBoundsPadding: v, flyToDuration: l, map: x, markers: r, zoom: O }), D(
|
|
1041
1050
|
() => () => {
|
|
1042
1051
|
x.current && (x.current.remove(), x.current = null);
|
|
1043
1052
|
},
|
|
1044
1053
|
[]
|
|
1045
1054
|
), {
|
|
1046
|
-
loading:
|
|
1055
|
+
loading: C || t,
|
|
1047
1056
|
map: x,
|
|
1048
|
-
mapContainer:
|
|
1057
|
+
mapContainer: Y,
|
|
1049
1058
|
markers: r,
|
|
1050
|
-
webGLSupported:
|
|
1059
|
+
webGLSupported: ee
|
|
1051
1060
|
};
|
|
1052
1061
|
}, vt = ({ containerStyle: r, square: t, theme: a, height: o = 300, width: s = "100%", ...l }) => {
|
|
1053
|
-
const { loading:
|
|
1062
|
+
const { loading: d, mapContainer: p, webGLSupported: u } = ot(l);
|
|
1054
1063
|
return /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
|
|
1055
1064
|
/* @__PURE__ */ w.jsx(
|
|
1056
1065
|
Lr,
|
|
@@ -1070,7 +1079,7 @@ const Gr = ({ palette: r, type: t }) => {
|
|
|
1070
1079
|
Wr,
|
|
1071
1080
|
{
|
|
1072
1081
|
ref: p,
|
|
1073
|
-
loading:
|
|
1082
|
+
loading: d,
|
|
1074
1083
|
height: o,
|
|
1075
1084
|
width: s,
|
|
1076
1085
|
containerStyle: r,
|