@tracktor/map 1.2.6 → 1.3.0

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.js CHANGED
@@ -1,12 +1,12 @@
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-buildings-toggle .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg fill='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M3.3335 11.6666C3.3335 12.5871 4.07969 13.3333 5.00016 13.3333C5.92064 13.3333 6.66683 12.5871 6.66683 11.6666L6.66683 6.66659L11.6668 6.66659C12.5873 6.66659 13.3335 5.92039 13.3335 4.99992C13.3335 4.07944 12.5873 3.33325 11.6668 3.33325H3.3335V11.6666Z' fill='currentColor'/%3E%3Cpath d='M26.6668 11.6666C26.6668 12.5871 25.9206 13.3333 25.0002 13.3333C24.0797 13.3333 23.3335 12.5871 23.3335 11.6666L23.3335 6.66659L18.3335 6.66659C17.413 6.66659 16.6668 5.92039 16.6668 4.99992C16.6668 4.07944 17.413 3.33325 18.3335 3.33325H26.6668L26.6668 11.6666Z' fill='currentColor'/%3E%3Cpath d='M13.3335 24.9999C13.3335 25.9204 12.5873 26.6666 11.6668 26.6666H3.3335V18.3333C3.3335 17.4128 4.07969 16.6666 5.00016 16.6666C5.92064 16.6666 6.66683 17.4128 6.66683 18.3333V23.3333H11.6668C12.5873 23.3333 13.3335 24.0794 13.3335 24.9999Z' fill='currentColor'/%3E%3Cpath d='M18.3335 26.6666C17.413 26.6666 16.6668 25.9204 16.6668 24.9999C16.6668 24.0794 17.413 23.3333 18.3335 23.3333H23.3335V18.3333C23.3335 17.4128 24.0797 16.6666 25.0002 16.6666C25.9206 16.6666 26.6668 17.4128 26.6668 18.3333V26.6666H18.3335Z' fill='currentColor'/%3E%3C/svg%3E");background-size:26px 26px}.mapboxgl-ctrl button.mapboxgl-ctrl-buildings-toggle.mapboxgl-ctrl-level-button-selected .mapboxgl-ctrl-icon{filter:invert(1) brightness(1)}.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}.mapboxgl-ctrl-separator{background-color:#e0e0e0;height:1px}.mapboxgl-ctrl button.mapboxgl-ctrl-level-button{color:#333;font-size:18px;font-weight:700;height:50px;width:50px}.mapboxgl-ctrl button.mapboxgl-ctrl-level-button:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.mapboxgl-ctrl button.mapboxgl-ctrl-level-button:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.mapboxgl-ctrl button.mapboxgl-ctrl-level-button:hover{background-color:#f5f5f5}.mapboxgl-ctrl button.mapboxgl-ctrl-level-button-selected{background-color:#4a5568;color:#fff}.mapboxgl-ctrl button.mapboxgl-ctrl-level-button-selected:hover{background-color:#2d3748}`)),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- import ye, { createContext as _e, useEffect as H, useMemo as F, useRef as ue, useState as ae, memo as Ee } from "react";
2
+ import he, { createContext as Re, useEffect as F, useMemo as M, useRef as ae, useState as X, memo as de } from "react";
3
3
  import { LicenseInfo as xe } from "@mui/x-license";
4
4
  import fe from "mapbox-gl";
5
- import { useTheme as de, Box as Z, GlobalStyles as ve, Skeleton as ke } from "@tracktor/design-system";
6
- import he, { useMap as Re, Source as ee, Layer as te, Marker as Te, Popup as je } from "react-map-gl";
7
- import { isArray as ne, isString as pe, isNumber as re } from "@tracktor/react-utils";
8
- const He = 2.333, Xe = 46.8677;
9
- var q = { exports: {} }, W = {};
5
+ import { useTheme as pe, Box as H, GlobalStyles as Ee, Skeleton as _e } from "@tracktor/design-system";
6
+ import ke, { useMap as Te, Source as te, Layer as re, Marker as je, Popup as Se } from "react-map-gl";
7
+ import { isArray as se, isString as me, isNumber as oe } from "@tracktor/react-utils";
8
+ const tt = 2.333, rt = 46.8677;
9
+ var Z = { exports: {} }, G = {};
10
10
  /**
11
11
  * @license React
12
12
  * react-jsx-runtime.production.js
@@ -16,29 +16,29 @@ var q = { exports: {} }, W = {};
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
18
  */
19
- var se;
20
- function Se() {
21
- if (se) return W;
22
- se = 1;
23
- var t = Symbol.for("react.transitional.element"), a = Symbol.for("react.fragment");
24
- function s(l, n, i) {
25
- var p = null;
26
- if (i !== void 0 && (p = "" + i), n.key !== void 0 && (p = "" + n.key), "key" in n) {
27
- i = {};
28
- for (var E in n)
29
- E !== "key" && (i[E] = n[E]);
30
- } else i = n;
31
- return n = i.ref, {
19
+ var le;
20
+ function we() {
21
+ if (le) return G;
22
+ le = 1;
23
+ var t = Symbol.for("react.transitional.element"), o = Symbol.for("react.fragment");
24
+ function n(a, r, c) {
25
+ var l = null;
26
+ if (c !== void 0 && (l = "" + c), r.key !== void 0 && (l = "" + r.key), "key" in r) {
27
+ c = {};
28
+ for (var i in r)
29
+ i !== "key" && (c[i] = r[i]);
30
+ } else c = r;
31
+ return r = c.ref, {
32
32
  $$typeof: t,
33
- type: l,
34
- key: p,
35
- ref: n !== void 0 ? n : null,
36
- props: i
33
+ type: a,
34
+ key: l,
35
+ ref: r !== void 0 ? r : null,
36
+ props: c
37
37
  };
38
38
  }
39
- return W.Fragment = a, W.jsx = s, W.jsxs = s, W;
39
+ return G.Fragment = o, G.jsx = n, G.jsxs = n, G;
40
40
  }
41
- var G = {};
41
+ var B = {};
42
42
  /**
43
43
  * @license React
44
44
  * react-jsx-runtime.development.js
@@ -48,126 +48,126 @@ var G = {};
48
48
  * This source code is licensed under the MIT license found in the
49
49
  * LICENSE file in the root directory of this source tree.
50
50
  */
51
- var le;
51
+ var ie;
52
52
  function Ce() {
53
- return le || (le = 1, process.env.NODE_ENV !== "production" && (function() {
53
+ return ie || (ie = 1, process.env.NODE_ENV !== "production" && (function() {
54
54
  function t(e) {
55
55
  if (e == null) return null;
56
56
  if (typeof e == "function")
57
- return e.$$typeof === w ? null : e.displayName || e.name || null;
57
+ return e.$$typeof === A ? null : e.displayName || e.name || null;
58
58
  if (typeof e == "string") return e;
59
59
  switch (e) {
60
- case h:
60
+ case _:
61
61
  return "Fragment";
62
- case T:
62
+ case $:
63
63
  return "Profiler";
64
64
  case N:
65
65
  return "StrictMode";
66
- case $:
66
+ case Y:
67
67
  return "Suspense";
68
- case C:
68
+ case w:
69
69
  return "SuspenseList";
70
- case Y:
70
+ case E:
71
71
  return "Activity";
72
72
  }
73
73
  if (typeof e == "object")
74
74
  switch (typeof e.tag == "number" && console.error(
75
75
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
76
76
  ), e.$$typeof) {
77
- case R:
77
+ case j:
78
78
  return "Portal";
79
- case L:
79
+ case I:
80
80
  return e.displayName || "Context";
81
- case j:
81
+ case L:
82
82
  return (e._context.displayName || "Context") + ".Consumer";
83
83
  case S:
84
- var r = e.render;
85
- return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
86
- case I:
87
- return r = e.displayName || null, r !== null ? r : t(e.type) || "Memo";
88
- case A:
89
- r = e._payload, e = e._init;
84
+ var s = e.render;
85
+ return e = e.displayName, e || (e = s.displayName || s.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
86
+ case D:
87
+ return s = e.displayName || null, s !== null ? s : t(e.type) || "Memo";
88
+ case C:
89
+ s = e._payload, e = e._init;
90
90
  try {
91
- return t(e(r));
91
+ return t(e(s));
92
92
  } catch {
93
93
  }
94
94
  }
95
95
  return null;
96
96
  }
97
- function a(e) {
97
+ function o(e) {
98
98
  return "" + e;
99
99
  }
100
- function s(e) {
100
+ function n(e) {
101
101
  try {
102
- a(e);
103
- var r = !1;
102
+ o(e);
103
+ var s = !1;
104
104
  } catch {
105
- r = !0;
105
+ s = !0;
106
106
  }
107
- if (r) {
108
- r = console;
109
- var o = r.error, u = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
110
- return o.call(
111
- r,
107
+ if (s) {
108
+ s = console;
109
+ var p = s.error, m = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
110
+ return p.call(
111
+ s,
112
112
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
113
- u
114
- ), a(e);
113
+ m
114
+ ), o(e);
115
115
  }
116
116
  }
117
- function l(e) {
118
- if (e === h) return "<>";
119
- if (typeof e == "object" && e !== null && e.$$typeof === A)
117
+ function a(e) {
118
+ if (e === _) return "<>";
119
+ if (typeof e == "object" && e !== null && e.$$typeof === C)
120
120
  return "<...>";
121
121
  try {
122
- var r = t(e);
123
- return r ? "<" + r + ">" : "<...>";
122
+ var s = t(e);
123
+ return s ? "<" + s + ">" : "<...>";
124
124
  } catch {
125
125
  return "<...>";
126
126
  }
127
127
  }
128
- function n() {
129
- var e = x.A;
128
+ function r() {
129
+ var e = W.A;
130
130
  return e === null ? null : e.getOwner();
131
131
  }
132
- function i() {
132
+ function c() {
133
133
  return Error("react-stack-top-frame");
134
134
  }
135
- function p(e) {
136
- if (g.call(e, "key")) {
137
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
138
- if (r && r.isReactWarning) return !1;
135
+ function l(e) {
136
+ if (O.call(e, "key")) {
137
+ var s = Object.getOwnPropertyDescriptor(e, "key").get;
138
+ if (s && s.isReactWarning) return !1;
139
139
  }
140
140
  return e.key !== void 0;
141
141
  }
142
- function E(e, r) {
143
- function o() {
144
- B || (B = !0, console.error(
142
+ function i(e, s) {
143
+ function p() {
144
+ z || (z = !0, console.error(
145
145
  "%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://react.dev/link/special-props)",
146
- r
146
+ s
147
147
  ));
148
148
  }
149
- o.isReactWarning = !0, Object.defineProperty(e, "key", {
150
- get: o,
149
+ p.isReactWarning = !0, Object.defineProperty(e, "key", {
150
+ get: p,
151
151
  configurable: !0
152
152
  });
153
153
  }
154
- function v() {
154
+ function d() {
155
155
  var e = t(this.type);
156
- return U[e] || (U[e] = !0, console.error(
156
+ return V[e] || (V[e] = !0, console.error(
157
157
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
158
158
  )), e = this.props.ref, e !== void 0 ? e : null;
159
159
  }
160
- function k(e, r, o, u, J, X) {
161
- var f = o.ref;
160
+ function y(e, s, p, m, T, g) {
161
+ var b = p.ref;
162
162
  return e = {
163
- $$typeof: _,
163
+ $$typeof: R,
164
164
  type: e,
165
- key: r,
166
- props: o,
167
- _owner: u
168
- }, (f !== void 0 ? f : null) !== null ? Object.defineProperty(e, "ref", {
165
+ key: s,
166
+ props: p,
167
+ _owner: m
168
+ }, (b !== void 0 ? b : null) !== null ? Object.defineProperty(e, "ref", {
169
169
  enumerable: !1,
170
- get: v
170
+ get: d
171
171
  }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
172
172
  configurable: !1,
173
173
  enumerable: !1,
@@ -182,124 +182,124 @@ function Ce() {
182
182
  configurable: !1,
183
183
  enumerable: !1,
184
184
  writable: !0,
185
- value: J
185
+ value: T
186
186
  }), Object.defineProperty(e, "_debugTask", {
187
187
  configurable: !1,
188
188
  enumerable: !1,
189
189
  writable: !0,
190
- value: X
190
+ value: g
191
191
  }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
192
192
  }
193
- function m(e, r, o, u, J, X) {
194
- var f = r.children;
195
- if (f !== void 0)
196
- if (u)
197
- if (P(f)) {
198
- for (u = 0; u < f.length; u++)
199
- y(f[u]);
200
- Object.freeze && Object.freeze(f);
193
+ function v(e, s, p, m, T, g) {
194
+ var b = s.children;
195
+ if (b !== void 0)
196
+ if (m)
197
+ if (Q(b)) {
198
+ for (m = 0; m < b.length; m++)
199
+ h(b[m]);
200
+ Object.freeze && Object.freeze(b);
201
201
  } else
202
202
  console.error(
203
203
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
204
204
  );
205
- else y(f);
206
- if (g.call(r, "key")) {
207
- f = t(e);
208
- var M = Object.keys(r).filter(function(be) {
209
- return be !== "key";
205
+ else h(b);
206
+ if (O.call(s, "key")) {
207
+ b = t(e);
208
+ var P = Object.keys(s).filter(function(ve) {
209
+ return ve !== "key";
210
210
  });
211
- u = 0 < M.length ? "{key: someKey, " + M.join(": ..., ") + ": ...}" : "{key: someKey}", V[f + u] || (M = 0 < M.length ? "{" + M.join(": ..., ") + ": ...}" : "{}", console.error(
211
+ m = 0 < P.length ? "{key: someKey, " + P.join(": ..., ") + ": ...}" : "{key: someKey}", q[b + m] || (P = 0 < P.length ? "{" + P.join(": ..., ") + ": ...}" : "{}", console.error(
212
212
  `A props object containing a "key" prop is being spread into JSX:
213
213
  let props = %s;
214
214
  <%s {...props} />
215
215
  React keys must be passed directly to JSX without using spread:
216
216
  let props = %s;
217
217
  <%s key={someKey} {...props} />`,
218
- u,
219
- f,
220
- M,
221
- f
222
- ), V[f + u] = !0);
218
+ m,
219
+ b,
220
+ P,
221
+ b
222
+ ), q[b + m] = !0);
223
223
  }
224
- if (f = null, o !== void 0 && (s(o), f = "" + o), p(r) && (s(r.key), f = "" + r.key), "key" in r) {
225
- o = {};
226
- for (var Q in r)
227
- Q !== "key" && (o[Q] = r[Q]);
228
- } else o = r;
229
- return f && E(
230
- o,
224
+ if (b = null, p !== void 0 && (n(p), b = "" + p), l(s) && (n(s.key), b = "" + s.key), "key" in s) {
225
+ p = {};
226
+ for (var K in s)
227
+ K !== "key" && (p[K] = s[K]);
228
+ } else p = s;
229
+ return b && i(
230
+ p,
231
231
  typeof e == "function" ? e.displayName || e.name || "Unknown" : e
232
- ), k(
232
+ ), y(
233
233
  e,
234
- f,
235
- o,
236
- n(),
237
- J,
238
- X
234
+ b,
235
+ p,
236
+ r(),
237
+ T,
238
+ g
239
239
  );
240
240
  }
241
- function y(e) {
242
- b(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === A && (e._payload.status === "fulfilled" ? b(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
241
+ function h(e) {
242
+ x(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === C && (e._payload.status === "fulfilled" ? x(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
243
243
  }
244
- function b(e) {
245
- return typeof e == "object" && e !== null && e.$$typeof === _;
244
+ function x(e) {
245
+ return typeof e == "object" && e !== null && e.$$typeof === R;
246
246
  }
247
- var d = ye, _ = Symbol.for("react.transitional.element"), R = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), N = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), j = Symbol.for("react.consumer"), L = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), $ = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), Y = Symbol.for("react.activity"), w = Symbol.for("react.client.reference"), x = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, g = Object.prototype.hasOwnProperty, P = Array.isArray, O = console.createTask ? console.createTask : function() {
247
+ var u = he, R = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), N = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), L = Symbol.for("react.consumer"), I = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), Y = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), D = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), E = Symbol.for("react.activity"), A = Symbol.for("react.client.reference"), W = u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, O = Object.prototype.hasOwnProperty, Q = Array.isArray, k = console.createTask ? console.createTask : function() {
248
248
  return null;
249
249
  };
250
- d = {
250
+ u = {
251
251
  react_stack_bottom_frame: function(e) {
252
252
  return e();
253
253
  }
254
254
  };
255
- var B, U = {}, D = d.react_stack_bottom_frame.bind(
256
- d,
257
- i
258
- )(), z = O(l(i)), V = {};
259
- G.Fragment = h, G.jsx = function(e, r, o) {
260
- var u = 1e4 > x.recentlyCreatedOwnerStacks++;
261
- return m(
255
+ var z, V = {}, U = u.react_stack_bottom_frame.bind(
256
+ u,
257
+ c
258
+ )(), J = k(a(c)), q = {};
259
+ B.Fragment = _, B.jsx = function(e, s, p) {
260
+ var m = 1e4 > W.recentlyCreatedOwnerStacks++;
261
+ return v(
262
262
  e,
263
- r,
264
- o,
263
+ s,
264
+ p,
265
265
  !1,
266
- u ? Error("react-stack-top-frame") : D,
267
- u ? O(l(e)) : z
266
+ m ? Error("react-stack-top-frame") : U,
267
+ m ? k(a(e)) : J
268
268
  );
269
- }, G.jsxs = function(e, r, o) {
270
- var u = 1e4 > x.recentlyCreatedOwnerStacks++;
271
- return m(
269
+ }, B.jsxs = function(e, s, p) {
270
+ var m = 1e4 > W.recentlyCreatedOwnerStacks++;
271
+ return v(
272
272
  e,
273
- r,
274
- o,
273
+ s,
274
+ p,
275
275
  !0,
276
- u ? Error("react-stack-top-frame") : D,
277
- u ? O(l(e)) : z
276
+ m ? Error("react-stack-top-frame") : U,
277
+ m ? k(a(e)) : J
278
278
  );
279
279
  };
280
- })()), G;
280
+ })()), B;
281
281
  }
282
- var ie;
282
+ var ce;
283
283
  function Ae() {
284
- return ie || (ie = 1, process.env.NODE_ENV === "production" ? q.exports = Se() : q.exports = Ce()), q.exports;
284
+ return ce || (ce = 1, process.env.NODE_ENV === "production" ? Z.exports = we() : Z.exports = Ce()), Z.exports;
285
285
  }
286
- var c = Ae();
287
- const we = _e({
286
+ var f = Ae();
287
+ const Oe = Re({
288
288
  licenceMapbox: "",
289
289
  licenseMuiX: ""
290
- }), Qe = ({ children: t, licenseMuiX: a, licenceMapbox: s }) => {
291
- H(() => {
292
- a && xe.setLicenseKey(a);
293
- }, [a]);
294
- const l = F(
290
+ }), ot = ({ children: t, licenseMuiX: o, licenceMapbox: n }) => {
291
+ F(() => {
292
+ o && xe.setLicenseKey(o);
293
+ }, [o]);
294
+ const a = M(
295
295
  () => ({
296
- licenceMapbox: s,
297
- licenseMuiX: a
296
+ licenceMapbox: n,
297
+ licenseMuiX: o
298
298
  }),
299
- [a, s]
299
+ [o, n]
300
300
  );
301
- return s && (fe.accessToken = s), /* @__PURE__ */ c.jsx(we.Provider, { value: l, children: t });
302
- }, Pe = (t) => ({
301
+ return n && (fe.accessToken = n), /* @__PURE__ */ f.jsx(Oe.Provider, { value: a, children: t });
302
+ }, Me = (t) => ({
303
303
  ".mapboxgl-popup-close-button": {
304
304
  color: t.palette.mode === "dark" ? "#fff !important" : "#000 !important",
305
305
  fontSize: "20px !important"
@@ -314,170 +314,213 @@ const we = _e({
314
314
  ".mapboxgl-popup-tip": {
315
315
  borderTopColor: `${t.palette.mode === "dark" ? "#1e1e1e" : "#ffffff"} !important`
316
316
  }
317
- }), me = (t) => Number.isFinite(t.lng) && Number.isFinite(t.lat), ce = (t) => pe(t) || re(t) ? String(t) : JSON.stringify(t), Fe = (t) => {
317
+ }), ge = (t) => Number.isFinite(t.lng) && Number.isFinite(t.lat), ue = (t) => me(t) || oe(t) ? String(t) : JSON.stringify(t), Pe = (t) => {
318
318
  if (!t)
319
319
  return [];
320
- const a = ne(t) ? t : t.type === "FeatureCollection" ? t.features : [t], s = [];
321
- for (const l of a) {
322
- const n = l.geometry;
323
- n.type === "Point" && s.push(n.coordinates), n.type === "LineString" && s.push(...n.coordinates), n.type === "Polygon" && s.push(...n.coordinates[0]);
320
+ const o = se(t) ? t : t.type === "FeatureCollection" ? t.features : [t], n = [];
321
+ for (const a of o) {
322
+ const r = a.geometry;
323
+ r.type === "Point" && n.push(r.coordinates), r.type === "LineString" && n.push(...r.coordinates), r.type === "Polygon" && n.push(...r.coordinates[0]);
324
324
  }
325
- return s;
326
- }, Oe = ({
325
+ return n;
326
+ }, Fe = ({
327
327
  markers: t = [],
328
- features: a,
329
- padding: s = 50,
330
- duration: l = 1e3,
331
- disableAnimation: n,
332
- fitBounds: i = !0,
333
- animationKey: p,
334
- openPopup: E
328
+ features: o,
329
+ padding: n = 50,
330
+ duration: a = 1e3,
331
+ disableAnimation: r,
332
+ fitBounds: c = !0,
333
+ animationKey: l,
334
+ openPopup: i
335
335
  }) => {
336
- const { current: v } = Re(), k = ue(""), m = F(() => t.filter(me), [t]), y = F(() => Fe(a), [a]), b = F(() => {
337
- const d = [...m.map((_) => [_.lng, _.lat]), ...y];
338
- return d.length === 0 ? null : d.reduce((_, [R, h]) => _.extend([R, h]), new fe.LngLatBounds());
339
- }, [m, y]);
340
- return H(() => {
341
- if (E) {
342
- p !== void 0 ? k.current = ce(p) : k.current = "__initial_skip__";
336
+ const { current: d } = Te(), y = ae(""), v = M(() => t.filter(ge), [t]), h = M(() => Pe(o), [o]), x = M(() => {
337
+ const u = [...v.map((R) => [R.lng, R.lat]), ...h];
338
+ return u.length === 0 ? null : u.reduce((R, [j, _]) => R.extend([j, _]), new fe.LngLatBounds());
339
+ }, [v, h]);
340
+ return F(() => {
341
+ if (i) {
342
+ l !== void 0 ? y.current = ue(l) : y.current = "__initial_skip__";
343
343
  return;
344
344
  }
345
- if (v && i && b) {
346
- if (p !== void 0) {
347
- const d = ce(p);
348
- if (k.current === d)
345
+ if (d && c && x) {
346
+ if (l !== void 0) {
347
+ const u = ue(l);
348
+ if (y.current === u)
349
349
  return;
350
- k.current = d;
351
- } else if (k.current === "__initial_skip__")
350
+ y.current = u;
351
+ } else if (y.current === "__initial_skip__")
352
352
  return;
353
- if (!b.isEmpty()) {
354
- if (m.length === 1 && y.length === 0) {
355
- const d = m[0];
356
- v.flyTo({
357
- center: [d.lng, d.lat],
358
- duration: n ? 0 : l,
353
+ if (!x.isEmpty()) {
354
+ if (v.length === 1 && h.length === 0) {
355
+ const u = v[0];
356
+ d.flyTo({
357
+ center: [u.lng, u.lat],
358
+ duration: r ? 0 : a,
359
359
  zoom: 14
360
360
  });
361
361
  return;
362
362
  }
363
- v.fitBounds([b.getSouthWest().toArray(), b.getNorthEast().toArray()], {
364
- duration: n ? 0 : l,
365
- padding: s
363
+ d.fitBounds([x.getSouthWest().toArray(), x.getNorthEast().toArray()], {
364
+ duration: r ? 0 : a,
365
+ padding: n
366
366
  });
367
367
  }
368
368
  }
369
- }, [v, b, s, l, n, p, i, m, y, E]), null;
370
- }, Me = async (t, a, s = "driving") => {
371
- const n = `https://api.mapbox.com/directions/v5/mapbox/${s}/${t.join(",")};${a.join(",")}?geometries=geojson&overview=full&access_token=undefined`, i = await fetch(n);
372
- return i.ok ? {
373
- geometry: (await i.json()).routes[0].geometry,
369
+ }, [d, x, n, a, r, l, c, v, h, i]), null;
370
+ }, Ne = async (t, o, n = "driving") => {
371
+ const r = `https://api.mapbox.com/directions/v5/mapbox/${n}/${t.join(",")};${o.join(",")}?geometries=geojson&overview=full&access_token=undefined`, c = await fetch(r);
372
+ return c.ok ? {
373
+ geometry: (await c.json()).routes[0].geometry,
374
374
  properties: {},
375
375
  type: "Feature"
376
376
  } : null;
377
- }, K = {
377
+ }, $e = async (t, o, n = "driving") => {
378
+ const c = `${`https://routing.openstreetmap.de/${{
379
+ cycling: "routed-bike",
380
+ driving: "routed-car",
381
+ walking: "routed-foot"
382
+ }[n]}`}/route/v1/driving/${t.join(",")};${o.join(",")}?overview=full&geometries=geojson`;
383
+ try {
384
+ const l = await fetch(c);
385
+ if (!l.ok)
386
+ return console.error("OSRM API error:", l.status, l.statusText), null;
387
+ const i = await l.json();
388
+ return !i.routes || i.routes.length === 0 ? (console.warn("No routes found in OSRM response."), null) : {
389
+ geometry: i.routes[0].geometry,
390
+ properties: {
391
+ distance: i.routes[0].distance,
392
+ duration: i.routes[0].duration
393
+ },
394
+ type: "Feature"
395
+ };
396
+ } catch (l) {
397
+ return console.error("Error fetching OSRM route:", l), null;
398
+ }
399
+ }, ye = ({ profile: t, routeService: o, to: n, from: a, itineraryLineStyle: r }) => {
400
+ const [c, l] = X(null);
401
+ return F(() => {
402
+ a && n && (async () => {
403
+ try {
404
+ const i = o === "OSRM" ? await $e(a, n, t) : await Ne(a, n, t);
405
+ i ? l(i) : (console.warn("No route found between the specified points."), l(null));
406
+ } catch (i) {
407
+ console.error("Error fetching route:", i), l(null);
408
+ }
409
+ })();
410
+ }, [a, n, t, o]), c ? /* @__PURE__ */ f.jsx(te, { type: "geojson", data: c, children: /* @__PURE__ */ f.jsx(
411
+ re,
412
+ {
413
+ type: "line",
414
+ paint: {
415
+ "line-color": r?.color ?? "#9c3333",
416
+ "line-opacity": r?.opacity ?? 0.8,
417
+ "line-width": r?.width ?? 4
418
+ },
419
+ layout: {
420
+ "line-cap": "round",
421
+ "line-join": "round"
422
+ }
423
+ }
424
+ ) }) : null;
425
+ }, ee = {
378
426
  satellite: "mapbox://styles/mapbox/satellite-streets-v12",
379
427
  street: {
380
428
  dark: "mapbox://styles/mapbox/dark-v11",
381
429
  light: "mapbox://styles/mapbox/streets-v12"
382
430
  }
383
- }, ge = (t, a) => {
384
- const s = a === "dark";
431
+ }, be = (t, o) => {
432
+ const n = o === "dark";
385
433
  switch (t) {
386
434
  case "satellite":
387
- return K.satellite;
435
+ return ee.satellite;
388
436
  default:
389
- return s ? K.street.dark : K.street.light;
437
+ return n ? ee.street.dark : ee.street.light;
390
438
  }
391
- }, Ne = ({
439
+ }, Le = ({
392
440
  mapStyle: t,
393
- theme: a,
394
- baseMapView: s,
395
- doubleClickZoom: l,
396
- cooperativeGestures: n
441
+ theme: o,
442
+ baseMapView: n,
443
+ doubleClickZoom: a,
444
+ cooperativeGestures: r
397
445
  }) => ({
398
- cooperativeGestures: n,
399
- doubleClickZoom: l,
446
+ cooperativeGestures: r,
447
+ doubleClickZoom: a,
400
448
  failIfMajorPerformanceCaveat: !1,
401
- style: t ?? ge(s, a)
402
- }), Le = ({
449
+ style: t ?? be(n, o)
450
+ }), Ie = ({
403
451
  center: t,
404
- zoom: a,
405
- openPopup: s,
406
- openPopupOnHover: l,
407
- markers: n,
408
- baseMapView: i,
409
- mapStyle: p,
410
- projection: E,
411
- cooperativeGestures: v,
412
- doubleClickZoom: k,
413
- theme: m,
414
- from: y,
415
- to: b,
416
- profile: d
452
+ zoom: o,
453
+ openPopup: n,
454
+ openPopupOnHover: a,
455
+ markers: r,
456
+ baseMapView: c,
457
+ mapStyle: l,
458
+ projection: i,
459
+ cooperativeGestures: d,
460
+ doubleClickZoom: y,
461
+ theme: v
417
462
  }) => {
418
- const _ = de(), R = ue(null), [h, N] = ae(null), [T, j] = ae(s ?? null), L = F(() => {
419
- if (ne(t))
463
+ const h = pe(), x = ae(null), [u, R] = X(n ?? null), [j, _] = X(!1), N = M(() => {
464
+ if (se(t))
420
465
  return {
421
466
  latitude: t[1],
422
467
  longitude: t[0],
423
- zoom: a
468
+ zoom: o
424
469
  };
425
- }, [t, a]), S = F(
426
- () => p || ge(i, m ?? _.palette.mode),
427
- [i, p, m, _.palette.mode]
470
+ }, [t, o]), $ = M(
471
+ () => l || be(c, v ?? h.palette.mode),
472
+ [c, l, v, h.palette.mode]
428
473
  ), {
429
- style: $,
430
- cooperativeGestures: C,
431
- doubleClickZoom: I
432
- } = Ne({
433
- baseMapView: i,
434
- cooperativeGestures: v,
435
- doubleClickZoom: k,
436
- mapStyle: S,
437
- theme: m ?? _.palette.mode
438
- }), A = () => {
439
- const g = R.current?.getMap?.();
440
- g && g.setStyle(S);
441
- }, Y = (g, P) => {
442
- !l && P && j(g);
443
- }, w = (g, P) => {
444
- l && j(P ? g : null);
445
- }, x = F(() => T ? n?.find((g) => g.id === T) ?? null : null, [T, n]);
446
- return H(() => {
447
- j(s ?? null);
448
- }, [s]), H(() => {
449
- y && b && Me(y, b, d).then((g) => {
450
- g && N(g);
474
+ style: L,
475
+ cooperativeGestures: I,
476
+ doubleClickZoom: S
477
+ } = Le({
478
+ baseMapView: c,
479
+ cooperativeGestures: d,
480
+ doubleClickZoom: y,
481
+ mapStyle: $,
482
+ theme: v ?? h.palette.mode
483
+ }), Y = () => {
484
+ const E = x.current?.getMap?.();
485
+ E && E.once("idle", () => {
486
+ _(!0);
451
487
  });
452
- }, [y, d, b]), {
453
- coopGestures: C,
454
- coreStyle: $,
455
- dblZoom: I,
456
- handleMapLoad: A,
457
- handleMarkerClick: Y,
458
- handleMarkerHover: w,
459
- initialCenter: L,
460
- mapRef: R,
461
- route: h,
462
- selected: T,
463
- selectedMarker: x,
464
- setSelected: j
488
+ }, w = (E, A) => {
489
+ !a && A && R(E);
490
+ }, D = (E, A) => {
491
+ a && R(A ? E : null);
492
+ }, C = M(() => u ? r?.find((E) => E.id === u) ?? null : null, [u, r]);
493
+ return F(() => {
494
+ R(n ?? null);
495
+ }, [n]), {
496
+ coopGestures: I,
497
+ coreStyle: L,
498
+ dblZoom: S,
499
+ handleMapLoad: Y,
500
+ handleMarkerClick: w,
501
+ handleMarkerHover: D,
502
+ initialCenter: N,
503
+ isMapReady: j,
504
+ mapRef: x,
505
+ selected: u,
506
+ selectedMarker: C,
507
+ setSelected: R
465
508
  };
466
- }, $e = "#000000", Ie = "#FFFFFF", oe = {
509
+ }, Ye = "#000000", De = "#FFFFFF", ne = {
467
510
  default: "#009ba6",
468
511
  primary: "#3F83F8",
469
512
  secondary: "#9C27B0",
470
513
  success: "#4CAF50",
471
514
  warning: "#FF9800"
472
- }, Ye = (t) => t in oe, De = ({ color: t, variant: a }) => {
473
- const { palette: s } = de(), l = s.mode === "dark" ? $e : Ie, n = a && Ye(a) && oe[a] || t || (pe(a) ? a : oe.default);
474
- return /* @__PURE__ */ c.jsx(
475
- Z,
515
+ }, We = (t) => t in ne, Ue = ({ color: t, variant: o }) => {
516
+ const { palette: n } = pe(), a = n.mode === "dark" ? Ye : De, r = o && We(o) && ne[o] || t || (me(o) ? o : ne.default);
517
+ return /* @__PURE__ */ f.jsx(
518
+ H,
476
519
  {
477
520
  component: "div",
478
521
  style: {
479
- backgroundColor: l,
480
- border: `7px solid ${n}`,
522
+ backgroundColor: a,
523
+ border: `7px solid ${r}`,
481
524
  borderRadius: "50%",
482
525
  boxShadow: "0 0 4px rgba(0,0,0,0.3)",
483
526
  height: 28,
@@ -485,14 +528,66 @@ const we = _e({
485
528
  }
486
529
  }
487
530
  );
488
- }, We = (t) => ne(t) ? { features: t, type: "FeatureCollection" } : t.type === "FeatureCollection" ? t : { features: [t], type: "FeatureCollection" }, Ge = ({ features: t }) => {
531
+ }, Ge = async (t, o, n = "driving", a) => {
532
+ const r = {
533
+ cycling: "routed-bike",
534
+ driving: "routed-car",
535
+ walking: "routed-foot"
536
+ }, c = [t, ...o.map((u) => u.coords)].map((u) => `${u[0]},${u[1]}`).join(";"), l = `https://routing.openstreetmap.de/${r[n]}/table/v1/driving/${c}?sources=0&annotations=distance`, i = await fetch(l);
537
+ if (!i.ok)
538
+ return console.error("Error OSRM Table:", i.status, i.statusText), null;
539
+ const d = await i.json();
540
+ if (!(d.distances && Array.isArray(d.distances)) || d.distances.length === 0)
541
+ return console.error("OSRM Table unexpected response:", d), null;
542
+ const y = d.distances[0];
543
+ if (!y || y.length === 0)
544
+ return console.error("OSRM Table first row empty:", d), null;
545
+ let v = -1, h = 1 / 0;
546
+ for (let u = 1; u < y.length; u++) {
547
+ const R = y[u];
548
+ R != null && R < h && (h = R, v = u);
549
+ }
550
+ if (v === -1)
551
+ return null;
552
+ const x = o[v - 1];
553
+ return a != null && h > a ? null : {
554
+ distance: h,
555
+ id: x.id,
556
+ point: x.coords
557
+ };
558
+ }, Be = ({ origin: t, maxDistanceMeters: o, destinations: n, onNearestFound: a }) => {
559
+ const [r, c] = X(null), l = ae(null);
560
+ return F(() => {
561
+ if (!t || t.length !== 2 || !n?.length)
562
+ return;
563
+ const i = n.map((d) => ({
564
+ coords: [d.lng, d.lat],
565
+ id: d.id
566
+ }));
567
+ (async () => {
568
+ const d = await Ge(t, i, "driving", o);
569
+ d && c((y) => !y || y.id !== d.id || y.distance !== d.distance ? d : y);
570
+ })();
571
+ }, [t, o, n]), F(() => {
572
+ if (!r) {
573
+ a?.(null, null, 0), l.current = null;
574
+ return;
575
+ }
576
+ if (o != null && r.distance > o) {
577
+ a?.(null, null, 0), l.current = null;
578
+ return;
579
+ }
580
+ const i = l.current;
581
+ (!i || i.id !== r.id || i.distance !== r.distance) && (a?.(r.id, r.point, r.distance), l.current = r);
582
+ }, [r, a, o]), r?.point ? /* @__PURE__ */ f.jsx(ye, { from: t, to: r.point, profile: "driving", routeService: "OSRM" }) : null;
583
+ }, ze = de(Be), Ve = (t) => se(t) ? { features: t, type: "FeatureCollection" } : t.type === "FeatureCollection" ? t : { features: [t], type: "FeatureCollection" }, Je = ({ features: t }) => {
489
584
  if (!t)
490
585
  return null;
491
- const a = We(t), s = a.features.filter((n) => n.geometry.type === "Polygon" || n.geometry.type === "MultiPolygon"), l = a.features.filter((n) => n.geometry.type === "LineString" || n.geometry.type === "MultiLineString");
492
- return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
493
- s.length > 0 && // biome-ignore lint/correctness/useUniqueElementIds: <id must be consistent for map layers>
494
- /* @__PURE__ */ c.jsx(ee, { id: "features-polygon", type: "geojson", data: { features: s, type: "FeatureCollection" }, children: /* @__PURE__ */ c.jsx(
495
- te,
586
+ const o = Ve(t), n = o.features.filter((r) => r.geometry.type === "Polygon" || r.geometry.type === "MultiPolygon"), a = o.features.filter((r) => r.geometry.type === "LineString" || r.geometry.type === "MultiLineString");
587
+ return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
588
+ n.length > 0 && // biome-ignore lint/correctness/useUniqueElementIds: <id must be consistent for map layers>
589
+ /* @__PURE__ */ f.jsx(te, { id: "features-polygon", type: "geojson", data: { features: n, type: "FeatureCollection" }, children: /* @__PURE__ */ f.jsx(
590
+ re,
496
591
  {
497
592
  id: "polygon-fill",
498
593
  type: "fill",
@@ -502,9 +597,9 @@ const we = _e({
502
597
  }
503
598
  }
504
599
  ) }),
505
- l.length > 0 && // biome-ignore lint/correctness/useUniqueElementIds: <id must be consistent for map layers>
506
- /* @__PURE__ */ c.jsx(ee, { id: "features-line", type: "geojson", data: { features: l, type: "FeatureCollection" }, children: /* @__PURE__ */ c.jsx(
507
- te,
600
+ a.length > 0 && // biome-ignore lint/correctness/useUniqueElementIds: <id must be consistent for map layers>
601
+ /* @__PURE__ */ f.jsx(te, { id: "features-line", type: "geojson", data: { features: a, type: "FeatureCollection" }, children: /* @__PURE__ */ f.jsx(
602
+ re,
508
603
  {
509
604
  id: "line-stroke",
510
605
  type: "line",
@@ -516,73 +611,73 @@ const we = _e({
516
611
  }
517
612
  ) })
518
613
  ] });
519
- }, Be = ({
614
+ }, qe = ({
520
615
  containerStyle: t,
521
- square: a,
522
- loading: s,
523
- height: l = 300,
524
- width: n = "100%",
525
- center: i = [2.3522, 48.8566],
526
- zoom: p = 5,
527
- popupMaxWidth: E,
528
- openPopup: v,
529
- openPopupOnHover: k,
530
- markers: m = [],
531
- fitBounds: y = !0,
532
- fitBoundsPadding: b,
533
- fitBoundDuration: d,
534
- fitBoundsAnimationKey: _,
535
- disableAnimation: R,
536
- mapStyle: h,
616
+ square: o,
617
+ loading: n,
618
+ height: a = 300,
619
+ width: r = "100%",
620
+ center: c = [2.3522, 48.8566],
621
+ zoom: l = 5,
622
+ popupMaxWidth: i,
623
+ openPopup: d,
624
+ openPopupOnHover: y,
625
+ markers: v = [],
626
+ fitBounds: h = !0,
627
+ fitBoundsPadding: x,
628
+ fitBoundDuration: u,
629
+ fitBoundsAnimationKey: R,
630
+ disableAnimation: j,
631
+ mapStyle: _,
537
632
  onMapClick: N,
538
- baseMapView: T,
539
- cooperativeGestures: j = !0,
540
- doubleClickZoom: L = !0,
633
+ baseMapView: $,
634
+ cooperativeGestures: L = !0,
635
+ doubleClickZoom: I = !0,
541
636
  projection: S,
542
- theme: $,
543
- features: C,
544
- from: I,
545
- to: A,
546
- profile: Y = "driving",
547
- itineraryLineStyle: w
637
+ theme: Y,
638
+ features: w,
639
+ from: D,
640
+ to: C,
641
+ profile: E = "driving",
642
+ itineraryLineStyle: A,
643
+ routeService: W = "OSRM",
644
+ findNearestMarker: O,
645
+ onNearestFound: Q
548
646
  }) => {
549
647
  const {
550
- selectedMarker: x,
551
- setSelected: g,
552
- handleMarkerClick: P,
553
- handleMarkerHover: O,
554
- handleMapLoad: B,
555
- mapRef: U,
556
- dblZoom: D,
557
- initialCenter: z,
558
- coreStyle: V,
559
- coopGestures: e,
560
- route: r
561
- } = Le({
562
- baseMapView: T,
563
- center: i,
564
- cooperativeGestures: j,
565
- doubleClickZoom: L,
566
- from: I,
567
- mapStyle: h,
568
- markers: m,
569
- openPopup: v,
570
- openPopupOnHover: k,
571
- profile: Y,
648
+ selectedMarker: k,
649
+ setSelected: z,
650
+ handleMarkerClick: V,
651
+ handleMarkerHover: U,
652
+ handleMapLoad: J,
653
+ mapRef: q,
654
+ dblZoom: e,
655
+ initialCenter: s,
656
+ coreStyle: p,
657
+ coopGestures: m,
658
+ isMapReady: T
659
+ } = Ie({
660
+ baseMapView: $,
661
+ center: c,
662
+ cooperativeGestures: L,
663
+ doubleClickZoom: I,
664
+ mapStyle: _,
665
+ markers: v,
666
+ openPopup: d,
667
+ openPopupOnHover: y,
572
668
  projection: S,
573
- theme: $,
574
- to: A,
575
- zoom: p
669
+ theme: Y,
670
+ zoom: l
576
671
  });
577
- return /* @__PURE__ */ c.jsxs(Z, { "data-testid": "mapbox-container", sx: { height: l, position: "relative", width: n, ...t }, children: [
578
- /* @__PURE__ */ c.jsx(ve, { styles: Pe }),
579
- s && /* @__PURE__ */ c.jsx(
580
- ke,
672
+ return /* @__PURE__ */ f.jsxs(H, { "data-testid": "mapbox-container", sx: { height: a, position: "relative", width: r, ...t }, children: [
673
+ /* @__PURE__ */ f.jsx(Ee, { styles: Me }),
674
+ n && /* @__PURE__ */ f.jsx(
675
+ _e,
581
676
  {
582
677
  "data-testid": "skeleton-loader",
583
- width: n,
584
- height: l,
585
- variant: a ? "rectangular" : "rounded",
678
+ width: r,
679
+ height: a,
680
+ variant: o ? "rectangular" : "rounded",
586
681
  sx: {
587
682
  inset: 0,
588
683
  position: "absolute",
@@ -590,96 +685,91 @@ const we = _e({
590
685
  }
591
686
  }
592
687
  ),
593
- !s && /* @__PURE__ */ c.jsxs(
594
- he,
688
+ !n && /* @__PURE__ */ f.jsxs(
689
+ ke,
595
690
  {
596
- ref: U,
597
- onLoad: B,
598
- cooperativeGestures: e,
599
- doubleClickZoom: D,
600
- mapStyle: V,
691
+ ref: q,
692
+ onLoad: J,
693
+ cooperativeGestures: m,
694
+ doubleClickZoom: e,
695
+ mapStyle: p,
601
696
  projection: S,
602
- initialViewState: z,
697
+ initialViewState: s,
603
698
  style: { height: "100%", width: "100%" },
604
699
  mapboxAccessToken: void 0,
605
- onClick: (o) => {
606
- N?.(o.lngLat.lng, o.lngLat.lat);
700
+ onClick: (g) => {
701
+ N?.(g.lngLat.lng, g.lngLat.lat);
607
702
  },
608
703
  children: [
609
- m.filter(me).map((o) => /* @__PURE__ */ c.jsx(
610
- Te,
704
+ T && v.filter(ge).map((g) => /* @__PURE__ */ f.jsx(
705
+ je,
611
706
  {
612
- longitude: o.lng,
613
- latitude: o.lat,
707
+ longitude: g.lng,
708
+ latitude: g.lat,
614
709
  anchor: "bottom",
615
- onClick: (u) => {
616
- u.originalEvent.stopPropagation(), o.id && P(o.id, !!o.Tooltip);
710
+ onClick: (b) => {
711
+ b.originalEvent.stopPropagation(), g.id && V(g.id, !!g.Tooltip);
617
712
  },
618
- children: /* @__PURE__ */ c.jsx(
619
- Z,
713
+ children: /* @__PURE__ */ f.jsx(
714
+ H,
620
715
  {
621
716
  component: "div",
622
717
  onMouseEnter: () => {
623
- o.id && O(o.id, !!o.Tooltip);
718
+ g.id && U(g.id, !!g.Tooltip);
624
719
  },
625
- onMouseLeave: () => O(null),
626
- style: { cursor: o.Tooltip ? "pointer" : "default" },
627
- children: o.IconComponent ? /* @__PURE__ */ c.jsx(o.IconComponent, { ...o.iconProps }) : /* @__PURE__ */ c.jsx(De, { color: o.color, variant: o.variant })
720
+ onMouseLeave: () => U(null),
721
+ style: { cursor: g.Tooltip ? "pointer" : "default" },
722
+ children: g.IconComponent ? /* @__PURE__ */ f.jsx(g.IconComponent, { ...g.iconProps }) : /* @__PURE__ */ f.jsx(Ue, { color: g.color, variant: g.variant })
628
723
  }
629
724
  )
630
725
  },
631
- o.id
726
+ g.id
632
727
  )),
633
- x?.Tooltip && /* @__PURE__ */ c.jsx(
634
- je,
728
+ T && k?.Tooltip && /* @__PURE__ */ f.jsx(
729
+ Se,
635
730
  {
636
- longitude: re(x.lng) ? x.lng : 0,
637
- latitude: re(x.lat) ? x.lat : 0,
731
+ longitude: oe(k.lng) ? k.lng : 0,
732
+ latitude: oe(k.lat) ? k.lat : 0,
638
733
  anchor: "top",
639
- onClose: () => g(null),
640
- maxWidth: E,
734
+ onClose: () => z(null),
735
+ maxWidth: i,
641
736
  closeOnClick: !0,
642
737
  closeOnMove: !1,
643
- children: /* @__PURE__ */ c.jsx(Z, { component: "div", sx: { minHeight: 60, minWidth: 240 }, children: x.Tooltip })
738
+ children: /* @__PURE__ */ f.jsx(H, { component: "div", sx: { minHeight: 60, minWidth: 240 }, children: k.Tooltip })
644
739
  }
645
740
  ),
646
- r && /* @__PURE__ */ c.jsx(ee, { type: "geojson", data: r, children: /* @__PURE__ */ c.jsx(
647
- te,
741
+ T && /* @__PURE__ */ f.jsx(ye, { from: D, to: C, profile: E, routeService: W, itineraryLineStyle: A }),
742
+ T && /* @__PURE__ */ f.jsx(
743
+ ze,
648
744
  {
649
- type: "line",
650
- paint: {
651
- "line-color": w?.color ?? "#9c3333",
652
- "line-opacity": w?.opacity ?? 0.8,
653
- "line-width": w?.width ?? 4
654
- },
655
- layout: {
656
- "line-cap": "round",
657
- "line-join": "round"
658
- }
745
+ origin: O?.origin,
746
+ destinations: O?.destinations,
747
+ onNearestFound: Q,
748
+ maxDistanceMeters: O?.maxDistanceMeters
659
749
  }
660
- ) }),
661
- C && /* @__PURE__ */ c.jsx(Ge, { features: C }),
662
- y && /* @__PURE__ */ c.jsx(
663
- Oe,
750
+ ),
751
+ w && /* @__PURE__ */ f.jsx(Je, { features: w }),
752
+ h && /* @__PURE__ */ f.jsx(
753
+ Fe,
664
754
  {
665
- markers: m,
666
- features: C,
667
- padding: b,
668
- duration: R ? 0 : d,
669
- animationKey: _,
670
- openPopup: !!v
755
+ markers: v,
756
+ features: w,
757
+ padding: x,
758
+ duration: j ? 0 : u,
759
+ animationKey: R,
760
+ openPopup: !!d
671
761
  }
672
762
  )
673
763
  ]
674
764
  },
675
- `${e}-${D}-${S}-${h}`
765
+ `${m}-${e}-${S}-${_}-${O?.maxDistanceMeters}`
676
766
  )
677
767
  ] });
678
- }, Ke = Ee(Be), et = (t, a) => Number.isFinite(t) && Number.isFinite(a) && t >= -90 && t <= 90 && a >= -180 && a <= 180;
768
+ }, nt = de(qe), at = (t, o) => Number.isFinite(t) && Number.isFinite(o) && t >= -90 && t <= 90 && o >= -180 && o <= 180;
679
769
  export {
680
- Xe as DEFAULT_CENTER_LAT,
681
- He as DEFAULT_CENTER_LNG,
682
- Qe as MapProvider,
683
- Ke as MarkerMap,
684
- et as isValidLatLng
770
+ rt as DEFAULT_CENTER_LAT,
771
+ tt as DEFAULT_CENTER_LNG,
772
+ ot as MapProvider,
773
+ nt as MarkerMap,
774
+ at as isValidLatLng
685
775
  };