@tracktor/map 0.7.0 → 0.7.1
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/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(k,
|
|
2
|
+
(function(k,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("react"),require("@mui/x-license"),require("mapbox-gl"),require("@tracktor/design-system"),require("@tracktor/react-utils"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","@mui/x-license","mapbox-gl","@tracktor/design-system","@tracktor/react-utils","react-dom"],h):(k=typeof globalThis<"u"?globalThis:k||self,h(k["@tracktor/map"]={},k.React,k.muiXLicense,k.mapboxgl,k.designSystem,k.reactUtils,k.ReactDOM))})(this,function(k,h,Qe,D,U,qe,$e){"use strict";var $={exports:{}},J={};/**
|
|
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
|
|
10
|
+
*/var Ee;function er(){if(Ee)return J;Ee=1;var t=h,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v={key:!0,ref:!0,__self:!0,__source:!0};function g(f,c,d){var l,p={},b=null,x=null;d!==void 0&&(b=""+d),c.key!==void 0&&(b=""+c.key),c.ref!==void 0&&(x=c.ref);for(l in c)s.call(c,l)&&!v.hasOwnProperty(l)&&(p[l]=c[l]);if(f&&f.defaultProps)for(l in c=f.defaultProps,c)p[l]===void 0&&(p[l]=c[l]);return{$$typeof:n,type:f,key:b,ref:x,props:p,_owner:i.current}}return J.Fragment=a,J.jsx=g,J.jsxs=g,J}var K={};/**
|
|
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
|
|
19
|
-
`+
|
|
18
|
+
*/var be;function rr(){return be||(be=1,process.env.NODE_ENV!=="production"&&function(){var t=h,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),f=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),L=Symbol.iterator,ce="@@iterator";function ue(e){if(e===null||typeof e!="object")return null;var r=L&&e[L]||e[ce];return typeof r=="function"?r:null}var F=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(e){{for(var r=arguments.length,o=new Array(r>1?r-1:0),u=1;u<r;u++)o[u-1]=arguments[u];A("error",e,o)}}function A(e,r,o){{var u=F.ReactDebugCurrentFrame,E=u.getStackAddendum();E!==""&&(r+="%s",o=o.concat([E]));var R=o.map(function(m){return String(m)});R.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,R)}}var ee=!1,X=!1,H=!1,P=!1,z=!1,Z;Z=Symbol.for("react.module.reference");function B(e){return!!(typeof e=="string"||typeof e=="function"||e===s||e===v||z||e===i||e===d||e===l||P||e===x||ee||X||H||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===p||e.$$typeof===g||e.$$typeof===f||e.$$typeof===c||e.$$typeof===Z||e.getModuleId!==void 0))}function re(e,r,o){var u=e.displayName;if(u)return u;var E=r.displayName||r.name||"";return E!==""?o+"("+E+")":o}function w(e){return e.displayName||"Context"}function I(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 s:return"Fragment";case a:return"Portal";case v:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case l:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case f:var r=e;return w(r)+".Consumer";case g:var o=e;return w(o._context)+".Provider";case c:return re(e,e.render,"ForwardRef");case p:var u=e.displayName||null;return u!==null?u:I(e.type)||"Memo";case b:{var E=e,R=E._payload,m=E._init;try{return I(m(R))}catch{return null}}}return null}var M=Object.assign,Q=0,Se,Oe,we,je,Ae,Le,Fe;function Ie(){}Ie.__reactDisabledLog=!0;function _r(){{if(Q===0){Se=console.log,Oe=console.info,we=console.warn,je=console.error,Ae=console.group,Le=console.groupCollapsed,Fe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ie,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Q++}}function Cr(){{if(Q--,Q===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:Se}),info:M({},e,{value:Oe}),warn:M({},e,{value:we}),error:M({},e,{value:je}),group:M({},e,{value:Ae}),groupCollapsed:M({},e,{value:Le}),groupEnd:M({},e,{value:Fe})})}Q<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var le=F.ReactCurrentDispatcher,fe;function te(e,r,o){{if(fe===void 0)try{throw Error()}catch(E){var u=E.stack.trim().match(/\n( *(at )?)/);fe=u&&u[1]||""}return`
|
|
19
|
+
`+fe+e}}var de=!1,ne;{var xr=typeof WeakMap=="function"?WeakMap:Map;ne=new xr}function De(e,r){if(!e||de)return"";{var o=ne.get(e);if(o!==void 0)return o}var u;de=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var R;R=le.current,le.current=null,_r();try{if(r){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(O){u=O}Reflect.construct(e,[],m)}else{try{m.call()}catch(O){u=O}e.call(m.prototype)}}else{try{throw Error()}catch(O){u=O}e()}}catch(O){if(O&&u&&typeof O.stack=="string"){for(var y=O.stack.split(`
|
|
20
20
|
`),S=u.stack.split(`
|
|
21
21
|
`),_=y.length-1,C=S.length-1;_>=1&&C>=0&&y[_]!==S[C];)C--;for(;_>=1&&C>=0;_--,C--)if(y[_]!==S[C]){if(_!==1||C!==1)do if(_--,C--,C<0||y[_]!==S[C]){var j=`
|
|
22
|
-
`+y[_].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),typeof e=="function"&&ne.set(e,j),j}while(_>=1&&C>=0);break}}}finally{
|
|
22
|
+
`+y[_].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),typeof e=="function"&&ne.set(e,j),j}while(_>=1&&C>=0);break}}}finally{de=!1,le.current=R,Cr(),Error.prepareStackTrace=E}var G=e?e.displayName||e.name:"",N=G?te(G):"";return typeof e=="function"&&ne.set(e,N),N}function Tr(e,r,o){return De(e,!1)}function kr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function oe(e,r,o){if(e==null)return"";if(typeof e=="function")return De(e,kr(e));if(typeof e=="string")return te(e);switch(e){case d:return te("Suspense");case l:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return Tr(e.render);case p:return oe(e.type,r,o);case b:{var u=e,E=u._payload,R=u._init;try{return oe(R(E),r,o)}catch{}}}return""}var q=Object.prototype.hasOwnProperty,Me={},Ne=F.ReactDebugCurrentFrame;function ae(e){if(e){var r=e._owner,o=oe(e.type,e._source,r?r.type:null);Ne.setExtraStackFrame(o)}else Ne.setExtraStackFrame(null)}function Pr(e,r,o,u,E){{var R=Function.call.bind(q);for(var m in e)if(R(e,m)){var y=void 0;try{if(typeof e[m]!="function"){var S=Error((u||"React class")+": "+o+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw S.name="Invariant Violation",S}y=e[m](r,m,u,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_){y=_}y&&!(y instanceof Error)&&(ae(E),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).",u||"React class",o,m,typeof y),ae(null)),y instanceof Error&&!(y.message in Me)&&(Me[y.message]=!0,ae(E),T("Failed %s type: %s",o,y.message),ae(null))}}}var Sr=Array.isArray;function pe(e){return Sr(e)}function Or(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,o=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function wr(e){try{return Ue(e),!1}catch{return!0}}function Ue(e){return""+e}function We(e){if(wr(e))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Or(e)),Ue(e)}var Ye=F.ReactCurrentOwner,jr={key:!0,ref:!0,__self:!0,__source:!0},ze,Be;function Ar(e){if(q.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Lr(e){if(q.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Fr(e,r){typeof e.ref=="string"&&Ye.current}function Ir(e,r){{var o=function(){ze||(ze=!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))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function Dr(e,r){{var o=function(){Be||(Be=!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))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var Mr=function(e,r,o,u,E,R,m){var y={$$typeof:n,type:e,key:r,ref:o,props:m,_owner:R};return y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(y,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(y,"_source",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y};function Nr(e,r,o,u,E){{var R,m={},y=null,S=null;o!==void 0&&(We(o),y=""+o),Lr(r)&&(We(r.key),y=""+r.key),Ar(r)&&(S=r.ref,Fr(r,E));for(R in r)q.call(r,R)&&!jr.hasOwnProperty(R)&&(m[R]=r[R]);if(e&&e.defaultProps){var _=e.defaultProps;for(R in _)m[R]===void 0&&(m[R]=_[R])}if(y||S){var C=typeof e=="function"?e.displayName||e.name||"Unknown":e;y&&Ir(m,C),S&&Dr(m,C)}return Mr(e,y,S,E,u,Ye.current,m)}}var ve=F.ReactCurrentOwner,Ve=F.ReactDebugCurrentFrame;function V(e){if(e){var r=e._owner,o=oe(e.type,e._source,r?r.type:null);Ve.setExtraStackFrame(o)}else Ve.setExtraStackFrame(null)}var ye;ye=!1;function ge(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Ge(){{if(ve.current){var e=I(ve.current.type);if(e)return`
|
|
23
23
|
|
|
24
|
-
Check the render method of \``+e+"`."}return""}}function Ur(e){return""}var
|
|
24
|
+
Check the render method of \``+e+"`."}return""}}function Ur(e){return""}var Je={};function Wr(e){{var r=Ge();if(!r){var o=typeof e=="string"?e:e.displayName||e.name;o&&(r=`
|
|
25
25
|
|
|
26
|
-
Check the top-level render call using <`+o+">.")}return r}}function
|
|
26
|
+
Check the top-level render call using <`+o+">.")}return r}}function Ke(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Wr(r);if(Je[o])return;Je[o]=!0;var u="";e&&e._owner&&e._owner!==ve.current&&(u=" It was passed a child from "+I(e._owner.type)+"."),V(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.',o,u),V(null)}}function Xe(e,r){{if(typeof e!="object")return;if(pe(e))for(var o=0;o<e.length;o++){var u=e[o];ge(u)&&Ke(u,r)}else if(ge(e))e._store&&(e._store.validated=!0);else if(e){var E=ue(e);if(typeof E=="function"&&E!==e.entries)for(var R=E.call(e),m;!(m=R.next()).done;)ge(m.value)&&Ke(m.value,r)}}}function Yr(e){{var r=e.type;if(r==null||typeof r=="string")return;var o;if(typeof r=="function")o=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===c||r.$$typeof===p))o=r.propTypes;else return;if(o){var u=I(r);Pr(o,e.props,"prop",u,e)}else if(r.PropTypes!==void 0&&!ye){ye=!0;var E=I(r);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E||"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 zr(e){{for(var r=Object.keys(e.props),o=0;o<r.length;o++){var u=r[o];if(u!=="children"&&u!=="key"){V(e),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),V(null);break}}e.ref!==null&&(V(e),T("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}var He={};function Ze(e,r,o,u,E,R){{var m=B(e);if(!m){var y="";(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.");var S=Ur();S?y+=S:y+=Ge();var _;e===null?_="null":pe(e)?_="array":e!==void 0&&e.$$typeof===n?(_="<"+(I(e.type)||"Unknown")+" />",y=" 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",_,y)}var C=Nr(e,r,o,E,R);if(C==null)return C;if(m){var j=r.children;if(j!==void 0)if(u)if(pe(j)){for(var G=0;G<j.length;G++)Xe(j[G],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 Xe(j,e)}if(q.call(r,"key")){var N=I(e),O=Object.keys(r).filter(function(Xr){return Xr!=="key"}),me=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!He[N+me]){var Kr=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} />`,ye,M,Kr,M),Xe[M+ye]=!0}}return e===s?zr(C):Yr(C),C}}function Br(e,r,o){return He(e,r,o,!0)}function Vr(e,r,o){return He(e,r,o,!1)}var Gr=Vr,Jr=Br;J.Fragment=s,J.jsx=Gr,J.jsxs=Jr}()),J}var ge;function rr(){return ge||(ge=1,process.env.NODE_ENV==="production"?q.exports=$e():q.exports=er()),q.exports}var U=rr();const be=b.createContext({licenceMapbox:"",licenseMuiX:""}),tr=({children:n,licenseMuiX:t,licenceMapbox:a})=>{b.useEffect(()=>{t&&Ze.LicenseInfo.setLicenseKey(t)},[t]);const s=b.useMemo(()=>({licenceMapbox:a,licenseMuiX:t}),[t,a]);return a&&(I.accessToken=a),U.jsx(be.Provider,{value:s,children:n})},nr=({map:n,disableFlyTo:t,disableAnimation:a,flyToDuration:s,zoom:i,fitBounds:v,markers:m,fitBoundDuration:d,fitBoundsPadding:c,isMapInitialized:p})=>{const l=b.useRef(!1),f=Qe.useDebounce(m,150);b.useEffect(()=>{if(!n.current||!p||a||(!t&&!l.current&&(n.current.flyTo({duration:s,zoom:i}),l.current=!0),!v||!(f!=null&&f.length)||f.length<2))return;const R=new I.LngLatBounds;f.forEach(x=>{R.extend([Number(x.lng),Number(x.lat)])}),n.current.fitBounds(R,{duration:d,padding:c})},[f,v,c,s,i,d,t,n,p,a])};var W={},he;function or(){if(he)return W;he=1;var n=qe;if(process.env.NODE_ENV==="production")W.createRoot=n.createRoot,W.hydrateRoot=n.hydrateRoot;else{var t=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;W.createRoot=function(a,s){t.usingClientEntryPoint=!0;try{return n.createRoot(a,s)}finally{t.usingClientEntryPoint=!1}},W.hydrateRoot=function(a,s,i){t.usingClientEntryPoint=!0;try{return n.hydrateRoot(a,s,i)}finally{t.usingClientEntryPoint=!1}}}return W}var Re=or();const ar=({palette:n,type:t})=>{const a=n.mode==="dark"?"black":"white",s=n.secondary.main,i=n.info.main;switch(t){case"dropOff":return{"circle-color":a,"circle-radius":5,"circle-stroke-color":i,"circle-stroke-width":6};default:return{"circle-color":a,"circle-radius":7,"circle-stroke-color":s,"circle-stroke-width":8}}},ir=(n,t,a,s)=>{const i={features:a.map(c=>({geometry:{coordinates:c.geometry.coordinates,type:"Point"},properties:{id:c.properties.id,...c.properties},type:"Feature"})),type:"FeatureCollection"},v=n.getSource(t);v?v.setData(i):n.addSource(t,{data:i,type:"geojson"});const m=[...i.features].sort((c,p)=>{var R,x;const l=((R=c.properties)==null?void 0:R.zIndex)||0,f=((x=p.properties)==null?void 0:x.zIndex)||0;return l-f}),d=n.getStyle().layers;d==null||d.forEach(c=>{c.id.startsWith("marker-")&&n.getLayer(c.id)&&n.removeLayer(c.id)}),m.forEach(c=>{const{description:p,id:l}=c.properties||{},f=ar({palette:s,type:p}),R=`marker-${l}`;n.addLayer({filter:["==","id",l],id:R,layout:{visibility:"visible"},paint:f,source:t,type:"circle"})})},sr=(n,t)=>{document.querySelectorAll(".react-custom-marker").forEach(i=>i.remove()),[...t].sort((i,v)=>{var c,p;const m=((c=i.properties)==null?void 0:c.zIndex)||0,d=((p=v.properties)==null?void 0:p.zIndex)||0;return m-d}).forEach(i=>{const{IconComponent:v,iconProps:m,onClick:d,zIndex:c}=i.properties||{},{coordinates:p}=i.geometry;if(v&&p.length>=2){const l=document.createElement("div");l.className="react-custom-marker",l.style.position="absolute",c!==void 0&&(l.style.zIndex=c.toString());const f=document.createElement("div"),R=Re.createRoot(f);v&&R.render(b.createElement(v,m||{})),l.appendChild(f);const x=()=>{d==null||d(i)};l.addEventListener("click",x),new I.Marker(l).setLngLat([p[0],p[1]]).addTo(n)}})},cr=n=>({features:(n==null?void 0:n.map((t,a)=>({geometry:{coordinates:[Number.isFinite(Number(t.lng))?Number(t.lng):Number(Te),Number.isFinite(Number(t.lat))?Number(t.lat):Number(ke)],type:"Point"},properties:{description:t.type,IconComponent:t.IconComponent,iconProps:t.iconProps,id:t.id||`{marker-${a}}`,name:t.name,onClick:t.onClick,size:t.size||1,zIndex:t.zIndex||0},type:"Feature"})))||[],type:"FeatureCollection"}),ur=({map:n,palette:t,markers:a})=>{if(!n.current)return;const s=cr(a),i=s.features.filter(m=>{var d;return((d=m.properties)==null?void 0:d.IconComponent)===void 0});i.length&&ir(n.current,"markerProps",i,t);const v=s.features.filter(m=>{var d;return(d=m.properties)==null?void 0:d.IconComponent});v.length&&sr(n.current,v)},lr=({map:n,markers:t,palette:a,isMapInitialized:s})=>{b.useEffect(()=>{if(!n.current||!t||!s)return;const i=()=>{ur({map:n,markers:t,palette:a})};n.current.loaded()?i():n.current.once("load",i)},[n,t,a,s])},fr=({map:n,onMapClick:t,isMapInitialized:a})=>{b.useEffect(()=>{if(!n.current||!t||!a)return;const s=n.current.getCanvas(),i=v=>{const m=[v.clientX-s.getBoundingClientRect().left,v.clientY-s.getBoundingClientRect().top],d=n.current.unproject(m);t(d.lng,d.lat)};s.addEventListener("click",i)},[a,n,t])},dr=n=>{const t=document.createElement("button");return t.innerText="×",t.style.position="absolute",t.style.top="5px",t.style.right="5px",t.style.background="transparent",t.style.border="none",t.style.fontSize="16px",t.style.padding="0",t.style.margin="10px",t.style.cursor="pointer",t.type="button",t.setAttribute("aria-label","Close popup"),t.removeAttribute("aria-hidden"),t.onclick=()=>n.remove(),t},_e=({map:n,tooltip:t,coordinates:a})=>{if(!a||!t||!n.current||!Array.isArray(a)||a.length!==2)return null;const s=document.createElement("div"),i=document.createElement("div"),v=Re.createRoot(i);s.style.position="relative",s.style.overflow="hidden",s.style.zIndex="1000",v.render(t);const m=new I.Popup({closeButton:!1}).setLngLat(a).setDOMContent(s).addTo(n.current);m.on("close",()=>{queueMicrotask(()=>{v.unmount()})});const d=dr(m);return s.appendChild(d),s.appendChild(i),m},Ce=n=>typeof n=="object"&&n!==null&&"type"in n&&"coordinates"in n,pr=n=>{if(typeof n!="object"||n===null||!("geometry"in n&&"properties"in n))return!1;const{geometry:a}=n;if(typeof a!="object"||a===null||!("coordinates"in a))return!1;const{coordinates:s}=a;if(!Array.isArray(s)||s.length!==2||!Ce(a))return!1;const{properties:i}=n;return typeof i!="object"||i===null?!1:"id"in i&&i.id!==void 0},vr=({map:n,point:t})=>{var i,v,m,d,c;if(!((i=n.current)!=null&&i.isStyleLoaded()))return null;const a=((d=(m=(v=n.current)==null?void 0:v.getStyle())==null?void 0:m.layers)==null?void 0:d.filter(p=>p.id.startsWith("marker-")).map(p=>p.id))||[],s=(c=n.current)==null?void 0:c.queryRenderedFeatures(t,{layers:a});if(s&&s.length>0){const p=s[0];if(!pr(p)||!Ce(p.geometry))return null;const{geometry:l}=p,f=l.coordinates.slice();return f.length!==2||typeof f[0]!="number"||typeof f[1]!="number"?null:p}},yr=({openPopup:n,map:t,markers:a,isMapInitialized:s})=>{const i=b.useRef(null);b.useEffect(()=>{if(!t.current||!a||!s)return;const m=t.current.getCanvas();if(i.current&&(i.current.remove(),i.current=null),n){const c=a.find(p=>p.id===n);if(c){const p=[Number(c.lng)||0,Number(c.lat)||0],l=_e({coordinates:p,map:t,tooltip:c.Tooltip});l&&(i.current=l)}}const d=c=>{const p=[c.clientX-m.getBoundingClientRect().left,c.clientY-m.getBoundingClientRect().top],l=vr({map:t,point:p});if(l&&l.properties&&l.properties.id){i.current&&(i.current.remove(),i.current=null);const f=a.find(R=>R.id===l.properties.id);if(f){const R=[Number(f.lng)||0,Number(f.lat)||0];if(typeof f.onClick=="function"){const x={geometry:{coordinates:R,type:"Point"},properties:{description:f.name,id:f.id,name:f.name,onClick:f.onClick,size:f.size||1,zIndex:f.zIndex||1},type:"Feature"};f.onClick(x)}requestAnimationFrame(()=>{const x=_e({coordinates:R,map:t,tooltip:f.Tooltip});x&&(i.current=x)})}}};return m.addEventListener("click",d),()=>{m.removeEventListener("click",d),i.current&&(i.current.remove(),i.current=null)}},[s,t,a,n])},mr=n=>Array.isArray(n)?n.length>=2?[n[0],n[1]]:void 0:n,Er=(n,t)=>{const a=t==="dark";switch(n){case"satellite":return"mapbox://styles/mapbox/satellite-v9";case"3d":return a?"mapbox://styles/mapbox/dark-v10":"mapbox://styles/mapbox/streets-v12?optimize=true";case"streets":return a?"mapbox://styles/mapbox/dark-v10":"mapbox://styles/mapbox/streets-v11";case"default":default:return a?"mapbox://styles/mapbox/dark-v10":"mapbox://styles/mapbox/streets-v11"}},gr=({mapStyle:n,zoomFlyFrom:t,theme:a,baseMapView:s,doubleClickZoom:i,cooperativeGestures:v})=>({cooperativeGestures:v,doubleClickZoom:i,failIfMajorPerformanceCaveat:!1,style:n||Er(s,a),zoom:t}),xe=(n,t)=>Number.isFinite(n)&&Number.isFinite(t)&&n>=-90&&n<=90&&t>=-180&&t<=180,Te=2.333,ke=46.8677,br=({markers:n,loading:t,center:a,disableAnimation:s,openPopup:i,onMapClick:v,projection:m,theme:d,mapStyle:c,baseMapView:p="default",zoom:l=6,fitBoundsPadding:f=50,zoomFlyFrom:R=3,flyToDuration:x=5e3,fitBoundDuration:$=1e3,fitBounds:ie=!0,disableFlyTo:se=!1,cooperativeGestures:L=!0,doubleClickZoom:T=!0})=>{const[A,ee]=b.useState(!1),{palette:K}=N.useTheme(),X=b.useRef(""),P=b.useRef(null),Y=b.useMemo(()=>n?n.filter(w=>w.lat!==void 0&&w.lng!==void 0&&xe(Number(w.lat),Number(w.lng))):[],[n]),H=b.useMemo(()=>gr({baseMapView:p,cooperativeGestures:L,doubleClickZoom:T,mapStyle:c,theme:d||K.mode,zoomFlyFrom:R}),[p,L,T,c,K.mode,m,d,R]),z=b.useCallback(()=>{if(P.current){const w=X.current;w&&typeof w!="string"&&(w.innerHTML=""),P.current.remove(),P.current=null,ee(!1)}},[]),re=b.useCallback(()=>{!I.supported()||t||(z(),P.current=new I.Map({...H,container:X.current}),P.current.resize(),ee(!0))},[z,H,t]);return b.useEffect(()=>{re()},[re]),b.useEffect(()=>{if(!P.current||!A)return;const w=mr(a)||{lat:ke,lng:Te};P.current.setCenter(w)},[a,A]),b.useEffect(()=>{!P.current||!A||l===void 0||Math.abs(P.current.getZoom()-l)>.1&&P.current.setZoom(l)},[l,A]),lr({isMapInitialized:A,map:P,markers:Y,palette:K}),yr({isMapInitialized:A,map:P,markers:Y,openPopup:i}),fr({isMapInitialized:A,map:P,onMapClick:v}),nr({disableAnimation:s,disableFlyTo:se,fitBoundDuration:$,fitBounds:ie,fitBoundsPadding:f,flyToDuration:x,isMapInitialized:A,map:P,markers:Y,zoom:l}),b.useEffect(()=>z,[z]),{containerRef:X,isMapInitialized:A,loading:t,map:P,markers:Y}},hr=({containerStyle:n,square:t,height:a=300,width:s="100%",...i})=>{const{loading:v,containerRef:m}=br(i);return U.jsxs(N.Box,{sx:{height:a,position:"relative",width:s,...n},children:[U.jsx(N.GlobalStyles,{styles:{".mapboxgl-popup-content":{backgroundColor:"transparent!important",borderRadius:"0px !important",boxShadow:"none!important",padding:"0px 0px!important",width:"fit-content!important"}}}),I.supported()?U.jsx(N.Box,{ref:m,sx:{alignItems:"center",borderRadius:t?0:1,display:v?"none":"block",height:a,justifyContent:"center",left:0,overflow:"hidden",position:"absolute",top:0,width:s,zIndex:1}}):U.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&&U.jsx(N.Skeleton,{width:s,height:a,variant:t?"rectangular":"rounded",sx:{inset:0,position:"absolute",zIndex:2}})]})},Rr=b.memo(hr);k.DEFAULT_CENTER_LAT=46.8677,k.DEFAULT_CENTER_LNG=2.333,k.MapProvider=tr,k.MapProviderContext=be,k.MarkerMap=Rr,k.isValidLatLng=xe,Object.defineProperty(k,Symbol.toStringTag,{value:"Module"})});
|
|
31
|
+
<%s key={someKey} {...props} />`,me,N,Kr,N),He[N+me]=!0}}return e===s?zr(C):Yr(C),C}}function Br(e,r,o){return Ze(e,r,o,!0)}function Vr(e,r,o){return Ze(e,r,o,!1)}var Gr=Vr,Jr=Br;K.Fragment=s,K.jsx=Gr,K.jsxs=Jr}()),K}var he;function tr(){return he||(he=1,process.env.NODE_ENV==="production"?$.exports=er():$.exports=rr()),$.exports}var W=tr();const Re=h.createContext({licenceMapbox:"",licenseMuiX:""}),nr=({children:t,licenseMuiX:n,licenceMapbox:a})=>{h.useEffect(()=>{n&&Qe.LicenseInfo.setLicenseKey(n)},[n]);const s=h.useMemo(()=>({licenceMapbox:a,licenseMuiX:n}),[n,a]);return a&&(D.accessToken=a),W.jsx(Re.Provider,{value:s,children:t})},_e=t=>Array.isArray(t)?t.length>=2?[t[0],t[1]]:void 0:t,or=({map:t,disableFlyTo:n,disableAnimation:a,flyToDuration:s,zoom:i,fitBounds:v,markers:g,fitBoundDuration:f,fitBoundsPadding:c,isMapInitialized:d,center:l})=>{const p=h.useRef(!1),b=qe.useDebounce(g,150);h.useEffect(()=>{if(!t.current||!d||a)return;if(!n&&!p.current&&(t.current.flyTo({duration:s,zoom:i}),p.current=!0),!v||!(b!=null&&b.length)||b.length<2){const L=_e(l)||{lat:se,lng:ie};t.current.setCenter(L);return}const x=new D.LngLatBounds;b.forEach(L=>{x.extend([Number(L.lng),Number(L.lat)])}),t.current.fitBounds(x,{duration:f,padding:c})},[b,v,c,s,i,f,n,t,d,a,l])};var Y={},Ce;function ar(){if(Ce)return Y;Ce=1;var t=$e;if(process.env.NODE_ENV==="production")Y.createRoot=t.createRoot,Y.hydrateRoot=t.hydrateRoot;else{var n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Y.createRoot=function(a,s){n.usingClientEntryPoint=!0;try{return t.createRoot(a,s)}finally{n.usingClientEntryPoint=!1}},Y.hydrateRoot=function(a,s,i){n.usingClientEntryPoint=!0;try{return t.hydrateRoot(a,s,i)}finally{n.usingClientEntryPoint=!1}}}return Y}var xe=ar();const ir=({palette:t,type:n})=>{const a=t.mode==="dark"?"black":"white",s=t.secondary.main,i=t.info.main;switch(n){case"dropOff":return{"circle-color":a,"circle-radius":5,"circle-stroke-color":i,"circle-stroke-width":6};default:return{"circle-color":a,"circle-radius":7,"circle-stroke-color":s,"circle-stroke-width":8}}},sr=(t,n,a,s)=>{const i={features:a.map(c=>({geometry:{coordinates:c.geometry.coordinates,type:"Point"},properties:{id:c.properties.id,...c.properties},type:"Feature"})),type:"FeatureCollection"},v=t.getSource(n);v?v.setData(i):t.addSource(n,{data:i,type:"geojson"});const g=[...i.features].sort((c,d)=>{var b,x;const l=((b=c.properties)==null?void 0:b.zIndex)||0,p=((x=d.properties)==null?void 0:x.zIndex)||0;return l-p}),f=t.getStyle().layers;f==null||f.forEach(c=>{c.id.startsWith("marker-")&&t.getLayer(c.id)&&t.removeLayer(c.id)}),g.forEach(c=>{const{description:d,id:l}=c.properties||{},p=ir({palette:s,type:d}),b=`marker-${l}`;t.addLayer({filter:["==","id",l],id:b,layout:{visibility:"visible"},paint:p,source:n,type:"circle"})})},cr=(t,n)=>{document.querySelectorAll(".react-custom-marker").forEach(i=>i.remove()),[...n].sort((i,v)=>{var c,d;const g=((c=i.properties)==null?void 0:c.zIndex)||0,f=((d=v.properties)==null?void 0:d.zIndex)||0;return g-f}).forEach(i=>{const{IconComponent:v,iconProps:g,onClick:f,zIndex:c}=i.properties||{},{coordinates:d}=i.geometry;if(v&&d.length>=2){const l=document.createElement("div");l.className="react-custom-marker",l.style.position="absolute",c!==void 0&&(l.style.zIndex=c.toString());const p=document.createElement("div"),b=xe.createRoot(p);v&&b.render(h.createElement(v,g||{})),l.appendChild(p);const x=()=>{f==null||f(i)};l.addEventListener("click",x),new D.Marker(l).setLngLat([d[0],d[1]]).addTo(t)}})},ur=t=>({features:(t==null?void 0:t.map((n,a)=>({geometry:{coordinates:[Number.isFinite(Number(n.lng))?Number(n.lng):Number(ie),Number.isFinite(Number(n.lat))?Number(n.lat):Number(se)],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"}),lr=({map:t,palette:n,markers:a})=>{if(!t.current)return;const s=ur(a),i=s.features.filter(g=>{var f;return((f=g.properties)==null?void 0:f.IconComponent)===void 0});i.length&&sr(t.current,"markerProps",i,n);const v=s.features.filter(g=>{var f;return(f=g.properties)==null?void 0:f.IconComponent});v.length&&cr(t.current,v)},fr=({map:t,markers:n,palette:a,isMapInitialized:s})=>{h.useEffect(()=>{if(!t.current||!n||!s)return;const i=()=>{lr({map:t,markers:n,palette:a})};t.current.loaded()?i():t.current.once("load",i)},[t,n,a,s])},dr=({map:t,onMapClick:n,isMapInitialized:a})=>{h.useEffect(()=>{if(!t.current||!n||!a)return;const s=t.current.getCanvas(),i=v=>{const g=[v.clientX-s.getBoundingClientRect().left,v.clientY-s.getBoundingClientRect().top],f=t.current.unproject(g);n(f.lng,f.lat)};s.addEventListener("click",i)},[a,t,n])},pr=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},Te=({map:t,tooltip:n,coordinates:a})=>{if(!a||!n||!t.current||!Array.isArray(a)||a.length!==2)return null;const s=document.createElement("div"),i=document.createElement("div"),v=xe.createRoot(i);s.style.position="relative",s.style.overflow="hidden",s.style.zIndex="1000",v.render(n);const g=new D.Popup({closeButton:!1}).setLngLat(a).setDOMContent(s).addTo(t.current);g.on("close",()=>{queueMicrotask(()=>{v.unmount()})});const f=pr(g);return s.appendChild(f),s.appendChild(i),g},ke=t=>typeof t=="object"&&t!==null&&"type"in t&&"coordinates"in t,vr=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:s}=a;if(!Array.isArray(s)||s.length!==2||!ke(a))return!1;const{properties:i}=t;return typeof i!="object"||i===null?!1:"id"in i&&i.id!==void 0},yr=({map:t,point:n})=>{var i,v,g,f,c;if(!((i=t.current)!=null&&i.isStyleLoaded()))return null;const a=((f=(g=(v=t.current)==null?void 0:v.getStyle())==null?void 0:g.layers)==null?void 0:f.filter(d=>d.id.startsWith("marker-")).map(d=>d.id))||[],s=(c=t.current)==null?void 0:c.queryRenderedFeatures(n,{layers:a});if(s&&s.length>0){const d=s[0];if(!vr(d)||!ke(d.geometry))return null;const{geometry:l}=d,p=l.coordinates.slice();return p.length!==2||typeof p[0]!="number"||typeof p[1]!="number"?null:d}},gr=({openPopup:t,map:n,markers:a,isMapInitialized:s})=>{const i=h.useRef(null);h.useEffect(()=>{if(!n.current||!a||!s)return;const g=n.current.getCanvas();if(i.current&&(i.current.remove(),i.current=null),t){const c=a.find(d=>d.id===t);if(c){const d=[Number(c.lng)||0,Number(c.lat)||0],l=Te({coordinates:d,map:n,tooltip:c.Tooltip});l&&(i.current=l)}}const f=c=>{const d=[c.clientX-g.getBoundingClientRect().left,c.clientY-g.getBoundingClientRect().top],l=yr({map:n,point:d});if(l&&l.properties&&l.properties.id){i.current&&(i.current.remove(),i.current=null);const p=a.find(b=>b.id===l.properties.id);if(p){const b=[Number(p.lng)||0,Number(p.lat)||0];if(typeof p.onClick=="function"){const x={geometry:{coordinates:b,type:"Point"},properties:{description:p.name,id:p.id,name:p.name,onClick:p.onClick,size:p.size||1,zIndex:p.zIndex||1},type:"Feature"};p.onClick(x)}requestAnimationFrame(()=>{const x=Te({coordinates:b,map:n,tooltip:p.Tooltip});x&&(i.current=x)})}}};return g.addEventListener("click",f),()=>{g.removeEventListener("click",f),i.current&&(i.current.remove(),i.current=null)}},[s,n,a,t])},mr=(t,n)=>{const a=n==="dark";switch(t){case"satellite":return"mapbox://styles/mapbox/satellite-v9";case"3d":return a?"mapbox://styles/mapbox/dark-v10":"mapbox://styles/mapbox/streets-v12?optimize=true";case"streets":return a?"mapbox://styles/mapbox/dark-v10":"mapbox://styles/mapbox/streets-v11";case"default":default:return a?"mapbox://styles/mapbox/dark-v10":"mapbox://styles/mapbox/streets-v11"}},Er=({mapStyle:t,zoomFlyFrom:n,theme:a,baseMapView:s,doubleClickZoom:i,cooperativeGestures:v})=>({cooperativeGestures:v,doubleClickZoom:i,failIfMajorPerformanceCaveat:!1,style:t||mr(s,a),zoom:n}),Pe=(t,n)=>Number.isFinite(t)&&Number.isFinite(n)&&t>=-90&&t<=90&&n>=-180&&n<=180,ie=2.333,se=46.8677,br=({markers:t,loading:n,center:a,disableAnimation:s,openPopup:i,onMapClick:v,projection:g,theme:f,mapStyle:c,baseMapView:d="default",zoom:l=6,fitBoundsPadding:p=50,zoomFlyFrom:b=3,flyToDuration:x=5e3,fitBoundDuration:L=1e3,fitBounds:ce=!0,disableFlyTo:ue=!1,cooperativeGestures:F=!0,doubleClickZoom:T=!0})=>{const[A,ee]=h.useState(!1),{palette:X}=U.useTheme(),H=h.useRef(""),P=h.useRef(null),z=h.useMemo(()=>t?t.filter(w=>w.lat!==void 0&&w.lng!==void 0&&Pe(Number(w.lat),Number(w.lng))):[],[t]),Z=h.useMemo(()=>Er({baseMapView:d,cooperativeGestures:F,doubleClickZoom:T,mapStyle:c,theme:f||X.mode,zoomFlyFrom:b}),[d,F,T,c,X.mode,g,f,b]),B=h.useCallback(()=>{if(P.current){const w=H.current;w&&typeof w!="string"&&(w.innerHTML=""),P.current.remove(),P.current=null,ee(!1)}},[]),re=h.useCallback(()=>{!D.supported()||n||(B(),P.current=new D.Map({...Z,container:H.current}),P.current.resize(),ee(!0))},[B,Z,n]);return h.useEffect(()=>{re()},[re]),h.useEffect(()=>{if(!P.current||!A)return;const w=_e(a)||{lat:se,lng:ie};P.current.setCenter(w)},[a,A]),h.useEffect(()=>{!P.current||!A||l===void 0||Math.abs(P.current.getZoom()-l)>.1&&P.current.setZoom(l)},[l,A]),fr({isMapInitialized:A,map:P,markers:z,palette:X}),gr({isMapInitialized:A,map:P,markers:z,openPopup:i}),dr({isMapInitialized:A,map:P,onMapClick:v}),or({center:a,disableAnimation:s,disableFlyTo:ue,fitBoundDuration:L,fitBounds:ce,fitBoundsPadding:p,flyToDuration:x,isMapInitialized:A,map:P,markers:z,zoom:l}),h.useEffect(()=>B,[B]),{containerRef:H,isMapInitialized:A,loading:n,map:P,markers:z}},hr=({containerStyle:t,square:n,height:a=300,width:s="100%",...i})=>{const{loading:v,containerRef:g}=br(i);return W.jsxs(U.Box,{sx:{height:a,position:"relative",width:s,...t},children:[W.jsx(U.GlobalStyles,{styles:{".mapboxgl-popup-content":{backgroundColor:"transparent!important",borderRadius:"0px !important",boxShadow:"none!important",padding:"0px 0px!important",width:"fit-content!important"}}}),D.supported()?W.jsx(U.Box,{ref:g,sx:{alignItems:"center",borderRadius:n?0:1,display:v?"none":"block",height:a,justifyContent:"center",left:0,overflow:"hidden",position:"absolute",top:0,width:s,zIndex:1}}):W.jsx(U.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&&W.jsx(U.Skeleton,{width:s,height:a,variant:n?"rectangular":"rounded",sx:{inset:0,position:"absolute",zIndex:2}})]})},Rr=h.memo(hr);k.DEFAULT_CENTER_LAT=46.8677,k.DEFAULT_CENTER_LNG=2.333,k.MapProvider=nr,k.MapProviderContext=Re,k.MarkerMap=Rr,k.isValidLatLng=Pe,Object.defineProperty(k,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -27,7 +27,7 @@ export interface MarkerMapProps {
|
|
|
27
27
|
*/
|
|
28
28
|
zoomFlyFrom?: number;
|
|
29
29
|
/**
|
|
30
|
-
* Maximum width of popups in pixels or
|
|
30
|
+
* Maximum width of popups in pixels or another CSS unit.
|
|
31
31
|
*/
|
|
32
32
|
popupMaxWidth?: string;
|
|
33
33
|
/**
|
|
@@ -105,7 +105,7 @@ export interface MarkerMapProps {
|
|
|
105
105
|
*/
|
|
106
106
|
cooperativeGestures?: boolean;
|
|
107
107
|
/**
|
|
108
|
-
* Optional key to activate double
|
|
108
|
+
* Optional key to activate double-click zoom (default is true).
|
|
109
109
|
*/
|
|
110
110
|
doubleClickZoom?: boolean;
|
|
111
111
|
}
|
package/package.json
CHANGED