@map-colonies/react-components 4.6.0 → 4.7.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.
@@ -1,63 +1,66 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('body[dir=rtl] .drpOpener .mdc-text-field{direction:ltr}body[dir=rtl] .drpContainer .MuiInputLabel-formControl{right:0px;left:unset}body[dir=rtl] .drpContainer .MuiInputBase-input{direction:ltr;text-align:end}.map{height:100%;width:100%}.ol-mouse-position{top:auto!important;right:auto!important;bottom:8px;left:8px;background-color:#fff;opacity:.7;font-size:12px;padding:2px;border-radius:2px}.ol-zoom{top:2.5em;right:.5em;left:unset}.trackerPosition{background-color:var(--mdc-theme-surface);z-index:2000;padding:2px;border-radius:2px;font-size:12px;height:24px;text-align:center;line-height:20px;white-space:nowrap}.scalePosition{background-color:var(--mdc-theme-surface);padding:1px;border-radius:2px;font-size:12px;width:110px}.scale-tracker-label{text-align:center}.scale-tracker-bar{background:var(--mdc-theme-on-surface);margin:0 auto;display:block;transition:all .5s ease-in-out}.zoomLevel{z-index:2000;background-color:var(--mdc-theme-surface);border-radius:2px;padding:2px;height:24px}.zoomLevelValue{margin:2px;font-size:14px;line-height:10px;text-align:center}.zoomLevelLabel{font-size:8px;line-height:8px}.mapViewIcon{fill:#fff;width:40px;height:40px;background:#303336;border:1px solid #444;border-radius:4px}.mapViewIcon:hover{background:#48b;border-color:#aef}.mapViewCurrent{fill:#aef;border:1px solid #aef;border-radius:4px}.mapSelector{width:260px;list-style:none;padding-left:0;display:flex;flex-wrap:wrap;grid-gap:4px;min-height:140px;margin-block-start:0px;padding-inline-start:0px}.mapContainerSelected{border:blueviolet 2px solid!important;border-radius:2px}.mapContainer:hover{border:tomato 2px solid;border-radius:2px}.mapContainerImg{width:100%;height:100%}.mapLabel{font-size:12px}.mapLabel:before{content:"\\a0"}.mapScenesContainer{display:flex;gap:8px}.settingsIconContainer,.mapLegendToggleContainer{fill:#fff;width:40px;height:40px;background:#303336;border:1px solid #444;border-radius:4px}.settingsIconContainer:hover,.mapLegendToggleContainer:hover{background:#48b;border-color:#aef}.baseMapsContainer{margin-top:12px;min-height:58%}.settingsDialogPortal{transform:translateZ(0);height:calc(100vh - 220px);max-height:460px;width:280px;position:absolute;top:40px;right:80px}.settingsDialogPortal .mdc-dialog__container{align-items:unset}.settingsDialogPortal .mdc-dialog .mdc-dialog__surface{max-height:unset}body[dir=rtl] .settingsDialogPortal{left:80px;right:unset}.sectionLabel{margin-block-end:.5em}.mapLegendSidebarContainer{width:340px;height:100%;position:relative;overflow-y:auto;overflow-x:hidden;font-size:16px}.mapLegendSidebarContainer.mdc-drawer--animate{transform:translate(0)!important;transition:none!important}.mapLegendSidebarContainer.mdc-drawer--dismissible{position:relative}div.MuiPaper-root{transition:none!important}.mapLegendCloseBtn{position:absolute;top:0;right:0;cursor:pointer;width:50px;height:50px;padding:20px;font-size:24px}body[dir=rtl] .mapLegendCloseBtn{right:unset;left:0}.mapLegendToggleContainer{display:flex;align-items:center;justify-content:center}.mapLegendIcon{width:2rem;height:2rem;transform:translate(8%,8%)}.sidebarHeaderContainer{text-align:center;margin-top:40px}.sidebarTitle{font-size:1.5rem;font-weight:700}.mapLegend{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px 14px}.layerNameContainer{width:90%;display:flex;justify-content:center;align-items:center}.layerName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legendImg{width:90%;height:150px;border:1px solid black;border-radius:5px;object-fit:cover;cursor:pointer}.legendActionsContainer{display:flex;flex-direction:row;align-self:center}.legendAction:not(:last-child):after{content:"|";margin:0 4px}.mapLegendsList{display:flex;flex-direction:column;padding:20px 0;width:100%;height:90%}.legendAction{text-decoration:underline;cursor:pointer;font-size:1.1rem;transition:all .1s ease-in-out;width:max-content}.legendAction:hover{filter:brightness(1.2)}.noLegendsContainer{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.noLegendsMsg{text-align:center}.cesium-widget-credits{display:none!important}.cesium-viewer-fullscreenContainer{bottom:8px;right:8px;left:unset}body[dir=rtl] .cesium-viewer-fullscreenContainer{left:8px;right:unset}body[dir=rtl] .cesium-viewer-toolbar{left:5px;right:unset}.cesium-button.cesium-fullscreenButton{border-radius:14%}.toolsContainer{color:var(--mdc-theme-on-surface);display:flex;gap:8px;z-index:2000;position:absolute;bottom:12px;right:40px;opacity:.7}body[dir=rtl] .toolsContainer{left:40px;right:unset}.sideToolsContainer{display:flex;flex-direction:row;gap:8px;z-index:2000;position:absolute;top:12px;right:40px}body[dir=rtl] .sideToolsContainer{left:40px;right:unset}.viewer{display:flex;flex-direction:row}.viewer .mdc-linear-progress__bar-inner{border-top-width:10px}.compass.rtl{right:unset;left:20px}.compass.ltr{left:unset;right:20px}.twipsy{display:block;position:absolute;visibility:visible;max-width:200px;min-width:100px;padding:5px;font-size:11px;z-index:1000;opacity:.8;-khtml-opacity:.8;-moz-opacity:.8;filter:alpha(opacity=80)}.twipsy.left .twipsy-arrow{top:50%;right:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000000}.twipsy.right .twipsy-arrow{top:50%;left:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid #000000}.twipsy-inner{padding:3px 8px;background-color:#000;color:#fff;text-align:center;max-width:200px;text-decoration:none;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.twipsy-arrow{position:absolute;width:0;height:0}.toolbar{margin:0;padding:0;background:white}.toolbar>.button{margin:5px;padding:5px;border:1px solid #eee;cursor:pointer}.toolbar>.button:hover{background:#eee}.infoWindow{position:absolute;min-width:100px;max-width:300px}.infoWindow #frame{padding:10px;border:1px solid black;background:white}.infoWindow #close{float:right;margin:5px 2px;font-size:small;color:gray;cursor:pointer}.infoWindow #arrow{position:absolute;bottom:-8px;left:50%;margin-left:-10px;border-right:10px solid transparent;border-left:10px solid transparent;border-top:10px solid white}.react-autocomplete-input{background-clip:padding-box;background-color:#fff;bottom:auto;box-shadow:0 6px 12px #0000002d;display:block;font-size:14px;list-style:none;padding:1px;position:absolute;z-index:20000;margin-block-start:unset;margin-block-end:unset}.react-autocomplete-input>li{cursor:pointer;padding:10px;min-width:100px}.react-autocomplete-input>li.active{background-color:#337ab7;color:#fff}body[dir=rtl] .chonky-fileListWrapper [class^=listContainer-]{direction:rtl!important}body[dir=rtl] .chonky-fileEntryClickableWrapper [class^=listFileEntryProperty-],body[dir=rtl] .chonky-navbarContainer{direction:ltr!important}body[dir=rtl] .chonky-chonkyRoot{text-align:right}body[dir=rtl] .chonky-infoText{margin-left:unset;margin-right:12px}body[dir=rtl] .chonky-contextMenuList .MuiListItemText-root,body[dir=rtl] .chonky-dropdownList .MuiListItemText-root{text-align:right}body[dir=rtl] .chonky-icon{margin-right:unset;margin-left:8px}.chonky-chonkyRoot div[class^=folderBackSide]{box-shadow:unset}.chonky-chonkyRoot div[class^=folderBackSide]:after{border-color:var(--fp-theme-background, #fff) var(--fp-theme-background, #fff) transparent transparent}.chonky-chonkyRoot div[class^=listFileEntryIcon-]{color:#d5d5d5}.chonky-chonkyRoot div[class*=previewFile-d]{background-color:#d5d5d5}.chonky-chonkyRoot div[class^=selectionIndicator-]{background:var(--fp-theme-selection-background, #455570)}.chonky-chonkyRoot{background-color:var(--fp-theme-background, #fff)!important}.chonky-contextMenuList{background-color:var(--fp-theme-surface, #fff)!important}button[class*=chonky-activeButton],.chonky-selectionSizeText{color:var(--fp-theme-primary, #24aee9)!important}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- var fn = Object.defineProperty;
3
- var yn = (e, n, t) => n in e ? fn(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
4
- var X = (e, n, t) => (yn(e, typeof n != "symbol" ? n + "" : n, t), t);
5
- import { jsx as l, jsxs as N, Fragment as te } from "react/jsx-runtime";
6
- import * as Vt from "react";
7
- import Ee, { useState as x, useEffect as D, useMemo as Re, forwardRef as vn, createContext as Le, useContext as _e, useRef as Se, useLayoutEffect as Gt, useCallback as me } from "react";
8
- import { isValid as Pe, isBefore as En, format as Et, endOfDay as Cn, isSameDay as Ct } from "date-fns";
9
- import { he as zt, enUS as $t } from "date-fns/locale";
10
- import { MuiPickersUtilsProvider as Wt, KeyboardDateTimePicker as it, KeyboardDatePicker as wn } from "@material-ui/pickers";
11
- import Ut from "@date-io/date-fns";
12
- import { createTheme as Tn, makeStyles as Ne, createStyles as je } from "@material-ui/core/styles";
13
- import { Box as bn, ThemeProvider as jt, Popover as Sn, Paper as rt, TableRow as ze, TableCell as xe, TableSortLabel as Ln, IconButton as _n, Collapse as Mn, TableContainer as Pn, Table as In, TableBody as Dn, Typography as xn, TablePagination as On } from "@material-ui/core";
14
- import { useTheme as Kt, ThemeProvider as An, Button as ke, TextField as $e, Tooltip as ot, Menu as kn, MenuItem as Xe, Icon as Oe, Dialog as Rn, DialogTitle as Nn, DialogContent as Bn, Drawer as Fn, DrawerHeader as Hn, DrawerTitle as Vn, DrawerContent as Gn, LinearProgress as zn } from "@map-colonies/react-core";
15
- import { default as za } from "@material-ui/core/useMediaQuery";
16
- import $n, { registerLocale as Wn } from "react-datepicker";
17
- import Un from "date-fns/locale/he";
18
- import Ie from "moment";
19
- import jn from "@turf/rewind";
20
- import { Map as Kn, View as qn } from "ol";
1
+ (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('body[dir=rtl] .drpOpener .mdc-text-field{direction:ltr}body[dir=rtl] .drpContainer .MuiInputLabel-formControl{right:0px;left:unset}body[dir=rtl] .drpContainer .MuiInputBase-input{direction:ltr;text-align:end}.map{height:100%;width:100%}.ol-mouse-position{top:auto!important;right:auto!important;bottom:8px;left:8px;background-color:#fff;opacity:.7;font-size:12px;padding:2px;border-radius:2px}.ol-zoom{top:2.5em;right:.5em;left:unset}.trackerPosition{background-color:var(--mdc-theme-surface);z-index:2000;padding:2px;border-radius:2px;font-size:12px;height:24px;text-align:center;line-height:20px;white-space:nowrap}.scalePosition{background-color:var(--mdc-theme-surface);padding:1px;border-radius:2px;font-size:12px;width:110px}.scale-tracker-label{text-align:center}.scale-tracker-bar{background:var(--mdc-theme-on-surface);margin:0 auto;display:block;transition:all .5s ease-in-out}.zoomLevel{z-index:2000;background-color:var(--mdc-theme-surface);border-radius:2px;padding:2px;height:24px}.zoomLevelValue{margin:2px;font-size:14px;line-height:10px;text-align:center}.zoomLevelLabel{font-size:8px;line-height:8px}.mapViewIcon{fill:#fff;width:40px;height:40px;background:#303336;border:1px solid #444;border-radius:4px}.mapViewIcon:hover{background:#48b;border-color:#aef}.mapViewCurrent{fill:#aef;border:1px solid #aef;border-radius:4px}.mapSelector{width:260px;list-style:none;padding-left:0;display:flex;flex-wrap:wrap;grid-gap:4px;min-height:140px;margin-block-start:0px;padding-inline-start:0px}.mapContainerSelected{border:blueviolet 2px solid!important;border-radius:2px}.mapContainer:hover{border:tomato 2px solid;border-radius:2px}.mapContainerImg{width:100%;height:100%}.mapLabel{font-size:12px}.mapLabel:before{content:"\\a0"}.mapScenesContainer{display:flex;gap:8px}.settingsIconContainer,.mapLegendToggleContainer{fill:#fff;width:40px;height:40px;background:#303336;border:1px solid #444;border-radius:4px}.settingsIconContainer:hover,.mapLegendToggleContainer:hover{background:#48b;border-color:#aef}.baseMapsContainer{margin-top:12px;min-height:58%}.settingsDialogPortal{transform:translateZ(0);height:calc(100vh - 220px);max-height:460px;width:280px;position:absolute;top:40px;right:80px}.settingsDialogPortal .mdc-dialog__container{align-items:unset}.settingsDialogPortal .mdc-dialog .mdc-dialog__surface{max-height:unset}body[dir=rtl] .settingsDialogPortal{left:80px;right:unset}.sectionLabel{margin-block-end:.5em}.zoom-buttons-container{display:flex;flex-direction:column;gap:2px;--full-screen-button-offset: 8px;--full-screen-button-size: 29px;--full-screen-button-bottom: 8px;position:absolute;bottom:calc(var(--full-screen-button-offset) + var(--full-screen-button-size) + var(--full-screen-button-bottom));right:var(--full-screen-button-offset);left:unset}body[dir=rtl] .zoom-buttons-container{left:var(--full-screen-button-offset);right:unset}.zoom-button{cursor:pointer;width:29px;height:29px;text-align:center;background:#303336;border:1px solid #444;border-radius:4px;box-sizing:border-box}.zoom-button:hover{background:#48b;border-color:#aef}.mapLegendSidebarContainer{width:340px;height:100%;position:relative;overflow-y:auto;overflow-x:hidden;font-size:16px}.mapLegendSidebarContainer.mdc-drawer--animate{transform:translate(0)!important;transition:none!important}.mapLegendSidebarContainer.mdc-drawer--dismissible{position:relative}div.MuiPaper-root{transition:none!important}.mapLegendCloseBtn{position:absolute;top:0;right:0;cursor:pointer;width:50px;height:50px;padding:20px;font-size:24px}body[dir=rtl] .mapLegendCloseBtn{right:unset;left:0}.mapLegendToggleContainer{display:flex;align-items:center;justify-content:center}.mapLegendIcon{width:2rem;height:2rem;transform:translate(8%,8%)}.sidebarHeaderContainer{text-align:center;margin-top:40px}.sidebarTitle{font-size:1.5rem;font-weight:700}.mapLegend{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px 14px}.layerNameContainer{width:90%;display:flex;justify-content:center;align-items:center}.layerName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legendImg{width:90%;height:150px;border:1px solid black;border-radius:5px;object-fit:cover;cursor:pointer}.legendActionsContainer{display:flex;flex-direction:row;align-self:center}.legendAction:not(:last-child):after{content:"|";margin:0 4px}.mapLegendsList{display:flex;flex-direction:column;padding:20px 0;width:100%;height:90%}.legendAction{text-decoration:underline;cursor:pointer;font-size:1.1rem;transition:all .1s ease-in-out;width:max-content}.legendAction:hover{filter:brightness(1.2)}.noLegendsContainer{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.noLegendsMsg{text-align:center}.cesium-widget-credits{display:none!important}.cesium-viewer-fullscreenContainer{bottom:8px;right:8px;left:unset}body[dir=rtl] .cesium-viewer-fullscreenContainer{left:8px;right:unset}body[dir=rtl] .cesium-viewer-toolbar{left:5px;right:unset}.cesium-button.cesium-fullscreenButton{border-radius:14%}.toolsContainer{color:var(--mdc-theme-on-surface);display:flex;gap:8px;z-index:2000;position:absolute;bottom:12px;right:40px;opacity:.7}body[dir=rtl] .toolsContainer{left:40px;right:unset}.sideToolsContainer{display:flex;flex-direction:row;gap:8px;z-index:2000;position:absolute;top:12px;right:40px}body[dir=rtl] .sideToolsContainer{left:40px;right:unset}.viewer{display:flex;flex-direction:row}.viewer .mdc-linear-progress__bar-inner{border-top-width:10px}.compass.rtl{right:unset;left:20px}.compass.ltr{left:unset;right:20px}.twipsy{display:block;position:absolute;visibility:visible;max-width:200px;min-width:100px;padding:5px;font-size:11px;z-index:1000;opacity:.8;-khtml-opacity:.8;-moz-opacity:.8;filter:alpha(opacity=80)}.twipsy.left .twipsy-arrow{top:50%;right:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000000}.twipsy.right .twipsy-arrow{top:50%;left:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid #000000}.twipsy-inner{padding:3px 8px;background-color:#000;color:#fff;text-align:center;max-width:200px;text-decoration:none;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.twipsy-arrow{position:absolute;width:0;height:0}.toolbar{margin:0;padding:0;background:white}.toolbar>.button{margin:5px;padding:5px;border:1px solid #eee;cursor:pointer}.toolbar>.button:hover{background:#eee}.infoWindow{position:absolute;min-width:100px;max-width:300px}.infoWindow #frame{padding:10px;border:1px solid black;background:white}.infoWindow #close{float:right;margin:5px 2px;font-size:small;color:gray;cursor:pointer}.infoWindow #arrow{position:absolute;bottom:-8px;left:50%;margin-left:-10px;border-right:10px solid transparent;border-left:10px solid transparent;border-top:10px solid white}.react-autocomplete-input{background-clip:padding-box;background-color:#fff;bottom:auto;box-shadow:0 6px 12px #0000002d;display:block;font-size:14px;list-style:none;padding:1px;position:absolute;z-index:20000;margin-block-start:unset;margin-block-end:unset}.react-autocomplete-input>li{cursor:pointer;padding:10px;min-width:100px}.react-autocomplete-input>li.active{background-color:#337ab7;color:#fff}body[dir=rtl] .chonky-fileListWrapper [class^=listContainer-]{direction:rtl!important}body[dir=rtl] .chonky-fileEntryClickableWrapper [class^=listFileEntryProperty-],body[dir=rtl] .chonky-navbarContainer{direction:ltr!important}body[dir=rtl] .chonky-chonkyRoot{text-align:right}body[dir=rtl] .chonky-infoText{margin-left:unset;margin-right:12px}body[dir=rtl] .chonky-contextMenuList .MuiListItemText-root,body[dir=rtl] .chonky-dropdownList .MuiListItemText-root{text-align:right}body[dir=rtl] .chonky-icon{margin-right:unset;margin-left:8px}.chonky-chonkyRoot div[class^=folderBackSide]{box-shadow:unset}.chonky-chonkyRoot div[class^=folderBackSide]:after{border-color:var(--fp-theme-background, #fff) var(--fp-theme-background, #fff) transparent transparent}.chonky-chonkyRoot div[class^=listFileEntryIcon-]{color:#d5d5d5}.chonky-chonkyRoot div[class*=previewFile-d]{background-color:#d5d5d5}.chonky-chonkyRoot div[class^=selectionIndicator-]{background:var(--fp-theme-selection-background, #455570)}.chonky-chonkyRoot{background-color:var(--fp-theme-background, #fff)!important}.chonky-contextMenuList{background-color:var(--fp-theme-surface, #fff)!important}button[class*=chonky-activeButton],.chonky-selectionSizeText{color:var(--fp-theme-primary, #24aee9)!important}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
+ var En = Object.defineProperty;
3
+ var Cn = (e, n, t) => n in e ? En(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
4
+ var X = (e, n, t) => (Cn(e, typeof n != "symbol" ? n + "" : n, t), t);
5
+ import { jsx as l, jsxs as N, Fragment as oe } from "react/jsx-runtime";
6
+ import * as $t from "react";
7
+ import Ee, { useState as D, useEffect as I, useMemo as Be, forwardRef as wn, createContext as Me, useContext as Pe, useRef as Se, useLayoutEffect as Wt, useCallback as pe } from "react";
8
+ import { isValid as Ie, isBefore as Tn, format as wt, endOfDay as bn, isSameDay as Tt } from "date-fns";
9
+ import { he as Ut, enUS as jt } from "date-fns/locale";
10
+ import { MuiPickersUtilsProvider as Kt, KeyboardDateTimePicker as rt, KeyboardDatePicker as Ln } from "@material-ui/pickers";
11
+ import qt from "@date-io/date-fns";
12
+ import { createTheme as Sn, makeStyles as Fe, createStyles as Ke } from "@material-ui/core/styles";
13
+ import { Box as _n, ThemeProvider as Yt, Popover as Mn, Paper as ot, TableRow as $e, TableCell as Ae, TableSortLabel as Pn, IconButton as xn, Collapse as In, TableContainer as Dn, Table as On, TableBody as An, Typography as kn, TablePagination as Rn } from "@material-ui/core";
14
+ import { useTheme as Xt, ThemeProvider as Nn, Button as Ne, TextField as We, Tooltip as st, Menu as Bn, MenuItem as Ze, Icon as _e, Dialog as Fn, DialogTitle as Hn, DialogContent as Gn, Drawer as Vn, DrawerHeader as zn, DrawerTitle as $n, DrawerContent as Wn, LinearProgress as Un } from "@map-colonies/react-core";
15
+ import { default as Za } from "@material-ui/core/useMediaQuery";
16
+ import jn, { registerLocale as Kn } from "react-datepicker";
17
+ import qn from "date-fns/locale/he";
18
+ import De from "moment";
19
+ import Yn from "@turf/rewind";
20
+ import { Map as Xn, View as Zn } from "ol";
21
21
  import "ol/ol.css";
22
- import { format as wt } from "ol/coordinate";
23
- import { defaults as Yn, FullScreen as Tt } from "ol/control";
24
- import Ze from "ol/control/MousePosition";
25
- import { transform as Xn, get as Zn } from "ol/proj";
26
- import { Tile as Jn, Vector as Qn } from "ol/layer";
27
- import { Vector as ei, OSM as ti, WMTS as ni } from "ol/source";
28
- import { GeoJSON as qt, MVT as ii } from "ol/format";
29
- import { Draw as ri } from "ol/interaction";
30
- import { createBox as oi } from "ol/interaction/Draw";
31
- import si from "ol/layer/VectorTile";
32
- import { Fill as ai, Stroke as li, Style as ci, Circle as di } from "ol/style";
33
- import ui from "ol/tilegrid/WMTS";
34
- import { getWidth as hi, getTopLeft as mi } from "ol/extent";
35
- import pi from "ol/source/TileWMS";
36
- import gi from "ol/source/XYZ";
37
- import fi from "ol/source/VectorTile";
38
- import yi from "@material-ui/core/TableHead";
39
- import { createSvgIcon as Yt } from "@material-ui/core/utils";
40
- import vi from "@material-ui/core/CssBaseline";
41
- import Ei from "@material-ui/core/ScopedCssBaseline";
42
- import { createPortal as Ci } from "react-dom";
43
- import { Viewer as wi, Cesium3DTileset as Ti, GeoJsonDataSource as bi, ImageryLayer as Si, Entity as Li, EntityDescription as Xt, PolygonGraphics as _i, RectangleGraphics as Mi, CustomDataSource as Pi, PolylineGraphics as Ii } from "resium";
44
- import * as p from "cesium";
45
- import { Math as ge, SceneMode as be, Cartesian2 as Ce, Cartographic as Be, PolylineDashMaterialProperty as Di, ConstantProperty as xi, ConstantPositionProperty as Oi, Cartesian3 as ve, BoundingSphere as Ai, Ellipsoid as Zt, GeographicTilingScheme as ki, Rectangle as De, Resource as Ri, EllipsoidTerrainProvider as Ni, CesiumTerrainProvider as Bi, VerticalOrigin as st, LabelStyle as Jt, ScreenSpaceEventType as Fi, WebMercatorProjection as Hi, EventHelper as Vi, EllipsoidGeodesic as Gi, UrlTemplateImageryProvider as ht, WebMapServiceImageryProvider as mt, WebMapTileServiceImageryProvider as pt, Event as zi, SingleTileImageryProvider as $i, Viewer as Wi, Matrix4 as Ui, OpenStreetMapImageryProvider as ji, Color as at, PolygonHierarchy as Ki, viewerCesiumInspectorMixin as qi, sampleTerrainMostDetailed as Yi } from "cesium";
46
- import { Math as Wa, sampleTerrainMostDetailed as Ua } from "cesium";
47
- import { get as Z, isNumber as We, isEmpty as lt, isArray as Xi, cloneDeep as Zi, find as bt } from "lodash";
48
- import Ji from "@turf/boolean-point-in-polygon";
22
+ import { format as bt } from "ol/coordinate";
23
+ import { defaults as Jn, FullScreen as Lt } from "ol/control";
24
+ import Je from "ol/control/MousePosition";
25
+ import { transform as Qn, get as ei } from "ol/proj";
26
+ import { Tile as ti, Vector as ni } from "ol/layer";
27
+ import { Vector as ii, OSM as ri, WMTS as oi } from "ol/source";
28
+ import { GeoJSON as Zt, MVT as si } from "ol/format";
29
+ import { Draw as ai } from "ol/interaction";
30
+ import { createBox as li } from "ol/interaction/Draw";
31
+ import ci from "ol/layer/VectorTile";
32
+ import { Fill as di, Stroke as ui, Style as hi, Circle as mi } from "ol/style";
33
+ import pi from "ol/tilegrid/WMTS";
34
+ import { getWidth as gi, getTopLeft as fi } from "ol/extent";
35
+ import yi from "ol/source/TileWMS";
36
+ import vi from "ol/source/XYZ";
37
+ import Ei from "ol/source/VectorTile";
38
+ import St from "ol-ext/legend/Legend";
39
+ import Ci from "ol-ext/control/Legend";
40
+ import "ol-ext/dist/ol-ext.css";
41
+ import wi from "@material-ui/core/TableHead";
42
+ import { createSvgIcon as Jt } from "@material-ui/core/utils";
43
+ import Ti from "@material-ui/core/CssBaseline";
44
+ import bi from "@material-ui/core/ScopedCssBaseline";
45
+ import { createPortal as Li } from "react-dom";
46
+ import { Viewer as Si, Cesium3DTileset as _i, GeoJsonDataSource as Mi, ImageryLayer as Pi, Entity as xi, EntityDescription as Qt, PolygonGraphics as Ii, RectangleGraphics as Di, CustomDataSource as Oi, PolylineGraphics as Ai } from "resium";
47
+ import * as g from "cesium";
48
+ import { Math as fe, SceneMode as Le, Cartesian2 as Ce, Cartographic as He, PolylineDashMaterialProperty as ki, ConstantProperty as Ri, ConstantPositionProperty as Ni, Cartesian3 as ve, BoundingSphere as Bi, Ellipsoid as en, GeographicTilingScheme as Fi, Rectangle as Oe, Resource as Hi, EllipsoidTerrainProvider as Gi, CesiumTerrainProvider as Vi, VerticalOrigin as at, LabelStyle as tn, ScreenSpaceEventType as zi, WebMercatorProjection as $i, EventHelper as Wi, EllipsoidGeodesic as Ui, UrlTemplateImageryProvider as mt, WebMapServiceImageryProvider as pt, WebMapTileServiceImageryProvider as gt, Event as ji, SingleTileImageryProvider as Ki, Viewer as qi, Matrix4 as Yi, OpenStreetMapImageryProvider as Xi, Color as lt, PolygonHierarchy as Zi, viewerCesiumInspectorMixin as Ji, sampleTerrainMostDetailed as Qi } from "cesium";
49
+ import { Math as Qa, sampleTerrainMostDetailed as el } from "cesium";
50
+ import { get as Z, isNumber as Ue, isEmpty as ct, isArray as er, cloneDeep as tr, find as _t } from "lodash";
51
+ import nr from "@turf/boolean-point-in-polygon";
49
52
  import "@map-colonies/react-core/dist/linear-progress/styles";
50
- import Qi from "@cmcleese/cesium-navigation";
53
+ import ir from "@cmcleese/cesium-navigation";
51
54
  import "@cmcleese/cesium-navigation/dist/index.css";
52
- import * as Qt from "@turf/helpers";
53
- import en from "@turf/bbox";
54
- import tn from "@turf/bbox-polygon";
55
- import er from "textarea-caret";
56
- import tr, { setCaretPosition as nr } from "get-input-selection";
57
- import { ChonkyActions as V, FileHelper as nn, setChonkyDefaults as ir, FullFileBrowser as rr } from "chonky";
58
- import { ChonkyIconFA as or } from "chonky-icon-fontawesome";
59
- import sr from "filesize";
60
- var ae = /* @__PURE__ */ ((e) => (e.BOX = "BOX", e.POLYGON = "POLYGON", e.UNKNOWN = "UNKNOWN", e))(ae || {}), ue = /* @__PURE__ */ ((e) => (e.HE = "he", e.EN = "en", e.RU = "ru", e))(ue || {}), ct = /* @__PURE__ */ ((e) => (e.TOP_RIGHT = "TOP_RIGHT", e.BOTTOM_LEFT = "BOTTOM_LEFT", e))(ct || {});
55
+ import * as nn from "@turf/helpers";
56
+ import rn from "@turf/bbox";
57
+ import on from "@turf/bbox-polygon";
58
+ import rr from "textarea-caret";
59
+ import or, { setCaretPosition as sr } from "get-input-selection";
60
+ import { ChonkyActions as F, FileHelper as sn, setChonkyDefaults as ar, FullFileBrowser as lr } from "chonky";
61
+ import { ChonkyIconFA as cr } from "chonky-icon-fontawesome";
62
+ import dr from "filesize";
63
+ var le = /* @__PURE__ */ ((e) => (e.BOX = "BOX", e.POLYGON = "POLYGON", e.UNKNOWN = "UNKNOWN", e))(le || {}), he = /* @__PURE__ */ ((e) => (e.HE = "he", e.EN = "en", e.RU = "ru", e))(he || {}), dt = /* @__PURE__ */ ((e) => (e.TOP_RIGHT = "TOP_RIGHT", e.BOTTOM_LEFT = "BOTTOM_LEFT", e))(dt || {});
61
64
  const J = {
62
65
  // eslint-disable-next-line @typescript-eslint/naming-convention
63
66
  DATE_PICKER: {
@@ -65,7 +68,7 @@ const J = {
65
68
  local: {
66
69
  setText: "set",
67
70
  placeHolderText: "Enter the Date",
68
- calendarLocale: ue.EN
71
+ calendarLocale: he.EN
69
72
  },
70
73
  disableFuture: !0,
71
74
  showTime: !1,
@@ -79,19 +82,19 @@ const J = {
79
82
  setText: "set",
80
83
  startPlaceHolderText: "Start of time",
81
84
  endPlaceHolderText: "End of time",
82
- calendarLocale: ue.EN
85
+ calendarLocale: he.EN
83
86
  },
84
87
  renderAsButton: !0,
85
88
  offset: 0,
86
89
  disableFuture: !0
87
90
  }
88
- }, ce = (e) => {
91
+ }, de = (e) => {
89
92
  const { children: n, ...t } = e;
90
- return /* @__PURE__ */ l(bn, { ...t, children: n });
91
- }, rn = (e) => {
93
+ return /* @__PURE__ */ l(_n, { ...t, children: n });
94
+ }, an = (e) => {
92
95
  const n = e.type === "dark";
93
- return Ee.useMemo(() => ar(e, n), [n, e]);
94
- }, ar = (e, n = !1) => Tn({
96
+ return Ee.useMemo(() => ur(e, n), [n, e]);
97
+ }, ur = (e, n = !1) => Sn({
95
98
  palette: {
96
99
  type: n ? "dark" : "light",
97
100
  primary: {
@@ -113,114 +116,114 @@ const J = {
113
116
  }
114
117
  }
115
118
  });
116
- const lr = 2, cr = 0.5, dr = Ne(
117
- (e) => je({
119
+ const hr = 2, mr = 0.5, pr = Fe(
120
+ (e) => Ke({
118
121
  container: {
119
- padding: e.spacing(lr),
122
+ padding: e.spacing(hr),
120
123
  alignItems: "center"
121
124
  },
122
125
  setButton: {
123
126
  marginTop: e.spacing(1)
124
127
  },
125
128
  margin: {
126
- marginLeft: e.spacing(cr)
129
+ marginLeft: e.spacing(mr)
127
130
  }
128
131
  })
129
- ), ur = (e) => {
130
- var K, O, $, A;
131
- const n = dr(), t = Kt(), i = rn(t), [o, r] = x(null), [c, u] = x(null), [m, g] = x(J.DATE_RANGE_PICKER.dateFormat), E = e.controlsLayout ?? J.DATE_RANGE_PICKER.controlsLayout, S = e.disableFuture ?? J.DATE_RANGE_PICKER.disableFuture, w = ((K = e.local) == null ? void 0 : K.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, P = ((O = e.local) == null ? void 0 : O.endPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.endPlaceHolderText, R = (($ = e.local) == null ? void 0 : $.setText) ?? J.DATE_RANGE_PICKER.local.setText, q = (((A = e.local) == null ? void 0 : A.calendarLocale) ?? J.DATE_RANGE_PICKER.local.calendarLocale) === ue.HE ? zt : $t;
132
- D(() => {
132
+ ), gr = (e) => {
133
+ var j, O, z, k;
134
+ const n = pr(), t = Xt(), i = an(t), [o, r] = D(null), [c, u] = D(null), [m, p] = D(J.DATE_RANGE_PICKER.dateFormat), E = e.controlsLayout ?? J.DATE_RANGE_PICKER.controlsLayout, L = e.disableFuture ?? J.DATE_RANGE_PICKER.disableFuture, w = ((j = e.local) == null ? void 0 : j.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, P = ((O = e.local) == null ? void 0 : O.endPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.endPlaceHolderText, A = ((z = e.local) == null ? void 0 : z.setText) ?? J.DATE_RANGE_PICKER.local.setText, Y = (((k = e.local) == null ? void 0 : k.calendarLocale) ?? J.DATE_RANGE_PICKER.local.calendarLocale) === he.HE ? Ut : jt;
135
+ I(() => {
133
136
  r(e.from ?? null);
134
- }, [e.from]), D(() => {
137
+ }, [e.from]), I(() => {
135
138
  u(e.to ?? null);
136
- }, [e.to]), D(() => {
137
- g(e.dateFormat ?? J.DATE_RANGE_PICKER.dateFormat);
139
+ }, [e.to]), I(() => {
140
+ p(e.dateFormat ?? J.DATE_RANGE_PICKER.dateFormat);
138
141
  }, [e.dateFormat]);
139
- const H = Boolean(
140
- Pe(o) && !c || Pe(c) && !o || o && c && Pe(o) && Pe(c) && En(o, c)
141
- ), j = () => {
142
+ const G = Boolean(
143
+ Ie(o) && !c || Ie(c) && !o || o && c && Ie(o) && Ie(c) && Tn(o, c)
144
+ ), U = () => {
142
145
  e.onChange({
143
- from: o && Pe(o) ? o : void 0,
144
- to: c && Pe(c) ? c : void 0
146
+ from: o && Ie(o) ? o : void 0,
147
+ to: c && Ie(c) ? c : void 0
145
148
  });
146
149
  };
147
- return /* @__PURE__ */ l(jt, { theme: i, children: /* @__PURE__ */ l(
148
- ce,
150
+ return /* @__PURE__ */ l(Yt, { theme: i, children: /* @__PURE__ */ l(
151
+ de,
149
152
  {
150
153
  className: `${n.container} drpContainer`,
151
154
  display: "flex",
152
155
  flexDirection: E,
153
156
  width: E === "column" ? e.contentWidth : "unset",
154
- children: /* @__PURE__ */ N(Wt, { utils: Ut, locale: q, children: [
157
+ children: /* @__PURE__ */ N(Kt, { utils: qt, locale: Y, children: [
155
158
  /* @__PURE__ */ l(
156
- it,
159
+ rt,
157
160
  {
158
161
  variant: "inline",
159
162
  placeholder: w,
160
- onChange: (W) => r(W),
163
+ onChange: ($) => r($),
161
164
  value: o,
162
- disableFuture: S,
165
+ disableFuture: L,
163
166
  format: m,
164
167
  maxDate: e.maxDate,
165
168
  minDate: e.minDate
166
169
  }
167
170
  ),
168
171
  /* @__PURE__ */ l(
169
- it,
172
+ rt,
170
173
  {
171
174
  variant: "inline",
172
175
  placeholder: P,
173
176
  className: n.margin,
174
- onChange: (W) => u(W),
177
+ onChange: ($) => u($),
175
178
  value: c,
176
- disableFuture: S,
179
+ disableFuture: L,
177
180
  format: m,
178
181
  maxDate: e.maxDate,
179
182
  minDate: e.minDate
180
183
  }
181
184
  ),
182
- /* @__PURE__ */ l(An, { options: t, children: /* @__PURE__ */ l(
183
- ke,
185
+ /* @__PURE__ */ l(Nn, { options: t, children: /* @__PURE__ */ l(
186
+ Ne,
184
187
  {
185
188
  className: `${n.setButton} ${n.margin}`,
186
189
  raised: !0,
187
- onClick: j,
188
- disabled: !H,
189
- children: R
190
+ onClick: U,
191
+ disabled: !G,
192
+ children: A
190
193
  }
191
194
  ) })
192
195
  ] })
193
196
  }
194
197
  ) });
195
- }, hr = (e) => {
198
+ }, fr = (e) => {
196
199
  const { children: n, ...t } = e;
197
- return /* @__PURE__ */ l(Sn, { ...t, children: n });
200
+ return /* @__PURE__ */ l(Mn, { ...t, children: n });
198
201
  };
199
- const Us = (e) => {
200
- var O, $;
201
- const [n, t] = x(null), [i, o] = x(null), [r, c] = x(J.DATE_RANGE_PICKER.dateFormat), [u, m] = Ee.useState(null), g = (A) => {
202
- m(A.currentTarget);
203
- }, E = (A) => {
204
- A.currentTarget.tagName === "I" ? m(A.currentTarget.previousElementSibling) : m(A.currentTarget);
205
- }, S = () => {
202
+ const Qs = (e) => {
203
+ var O, z;
204
+ const [n, t] = D(null), [i, o] = D(null), [r, c] = D(J.DATE_RANGE_PICKER.dateFormat), [u, m] = Ee.useState(null), p = (k) => {
205
+ m(k.currentTarget);
206
+ }, E = (k) => {
207
+ k.currentTarget.tagName === "I" ? m(k.currentTarget.previousElementSibling) : m(k.currentTarget);
208
+ }, L = () => {
206
209
  m(null);
207
210
  }, w = Boolean(u), P = e.controlsLayout ?? "column";
208
- D(() => {
211
+ I(() => {
209
212
  t(e.from ?? null);
210
- }, [e.from]), D(() => {
213
+ }, [e.from]), I(() => {
211
214
  o(e.to ?? null);
212
- }, [e.to]), D(() => {
215
+ }, [e.to]), I(() => {
213
216
  c(e.dateFormat ?? J.DATE_RANGE_PICKER.dateFormat);
214
217
  }, [e.dateFormat]);
215
- const R = ((O = e.local) == null ? void 0 : O.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, G = (($ = e.local) == null ? void 0 : $.endPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.endPlaceHolderText, q = e.renderAsButton === void 0 ? J.DATE_RANGE_PICKER.renderAsButton : e.renderAsButton, H = e.offset === void 0 ? J.DATE_RANGE_PICKER.offset : e.offset, j = e.disableFuture === void 0 ? J.DATE_RANGE_PICKER.disableFuture : e.disableFuture, K = Re(() => `${n ? Et(n, r) : R} - ${i ? Et(i, r) : G}`, [n, i, r, R, G]);
216
- return /* @__PURE__ */ N(te, { children: [
217
- q ? /* @__PURE__ */ l(ke, { style: { width: e.width }, raised: !0, onClick: g, className: "drpOpener", children: K }) : /* @__PURE__ */ l(
218
- $e,
218
+ const A = ((O = e.local) == null ? void 0 : O.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, H = ((z = e.local) == null ? void 0 : z.endPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.endPlaceHolderText, Y = e.renderAsButton === void 0 ? J.DATE_RANGE_PICKER.renderAsButton : e.renderAsButton, G = e.offset === void 0 ? J.DATE_RANGE_PICKER.offset : e.offset, U = e.disableFuture === void 0 ? J.DATE_RANGE_PICKER.disableFuture : e.disableFuture, j = Be(() => `${n ? wt(n, r) : A} - ${i ? wt(i, r) : H}`, [n, i, r, A, H]);
219
+ return /* @__PURE__ */ N(oe, { children: [
220
+ Y ? /* @__PURE__ */ l(Ne, { style: { width: e.width }, raised: !0, onClick: p, className: "drpOpener", children: j }) : /* @__PURE__ */ l(
221
+ We,
219
222
  {
220
223
  className: "drpOpener",
221
224
  readOnly: !0,
222
225
  style: { width: e.width },
223
- value: K,
226
+ value: j,
224
227
  onClick: E,
225
228
  trailingIcon: {
226
229
  icon: "date_range",
@@ -229,25 +232,25 @@ const Us = (e) => {
229
232
  }
230
233
  }
231
234
  ),
232
- /* @__PURE__ */ l(hr, { open: w, anchorEl: u, onClose: S, anchorOrigin: { vertical: "bottom", horizontal: "left" }, keepMounted: !0, children: /* @__PURE__ */ l(
233
- ur,
235
+ /* @__PURE__ */ l(fr, { open: w, anchorEl: u, onClose: L, anchorOrigin: { vertical: "bottom", horizontal: "left" }, keepMounted: !0, children: /* @__PURE__ */ l(
236
+ gr,
234
237
  {
235
238
  controlsLayout: P,
236
- contentWidth: ((u == null ? void 0 : u.clientWidth) ?? 0) - H,
239
+ contentWidth: ((u == null ? void 0 : u.clientWidth) ?? 0) - G,
237
240
  dateFormat: r,
238
- disableFuture: j,
241
+ disableFuture: U,
239
242
  minDate: e.minDate,
240
243
  maxDate: e.maxDate,
241
244
  local: e.local,
242
245
  from: n ?? void 0,
243
246
  to: i ?? void 0,
244
- onChange: ({ from: A, to: W }) => {
245
- t(A ?? null), o(W ?? null), e.onChange({ from: A, to: W }), S();
247
+ onChange: ({ from: k, to: $ }) => {
248
+ t(k ?? null), o($ ?? null), e.onChange({ from: k, to: $ }), L();
246
249
  }
247
250
  }
248
251
  ) })
249
252
  ] });
250
- }, Je = (e) => typeof e < "u" && e !== null && "startDate" in e && "endDate" in e, js = ({
253
+ }, Qe = (e) => typeof e < "u" && e !== null && "startDate" in e && "endDate" in e, ea = ({
251
254
  endDate: e,
252
255
  startDate: n,
253
256
  setEndDate: t = () => {
@@ -259,48 +262,48 @@ const Us = (e) => {
259
262
  endTimeWrapperClassName: c = "",
260
263
  timeRangeInputsWrapperClassName: u = "",
261
264
  startTimeInputClassName: m = "",
262
- startTimeLabel: g = "",
265
+ startTimeLabel: p = "",
263
266
  startTimeWrapperClassName: E = ""
264
267
  }) => /* @__PURE__ */ N("div", { className: `timeRangeWrapper ${u}`, children: [
265
268
  /* @__PURE__ */ l("div", { className: `startTimeWrapper ${E}`, children: /* @__PURE__ */ l(
266
- $e,
269
+ We,
267
270
  {
268
- label: g,
271
+ label: p,
269
272
  disabled: n === null,
270
273
  className: `timeRangeInput ${m}`,
271
274
  name: "start-time",
272
275
  type: "time",
273
- value: Ie(n).format("HH:mm"),
274
- onChange: (S) => {
275
- const w = Ie(n), P = Ie(S.currentTarget.value, "HH:mm"), R = w.set({
276
+ value: De(n).format("HH:mm"),
277
+ onChange: (L) => {
278
+ const w = De(n), P = De(L.currentTarget.value, "HH:mm"), A = w.set({
276
279
  hours: P.get("hours"),
277
280
  minutes: P.get("minutes")
278
281
  });
279
- i(R.toDate());
282
+ i(A.toDate());
280
283
  }
281
284
  }
282
285
  ) }),
283
286
  /* @__PURE__ */ l("div", { className: `endTimeWrapper ${c}`, children: /* @__PURE__ */ l(
284
- $e,
287
+ We,
285
288
  {
286
289
  label: r,
287
290
  disabled: e === null,
288
291
  className: `timeRangeInput ${o}`,
289
292
  name: "end-time",
290
293
  type: "time",
291
- value: Ie(e).format("HH:mm"),
292
- onChange: (S) => {
293
- const w = Ie(e), P = Ie(S.currentTarget.value, "HH:mm"), R = w.set({
294
+ value: De(e).format("HH:mm"),
295
+ onChange: (L) => {
296
+ const w = De(e), P = De(L.currentTarget.value, "HH:mm"), A = w.set({
294
297
  hours: P.get("hours"),
295
298
  minutes: P.get("minutes")
296
299
  });
297
- t(R.toDate());
300
+ t(A.toDate());
298
301
  }
299
302
  }
300
303
  ) })
301
- ] }), mr = vn(
304
+ ] }), yr = wn(
302
305
  ({ value: e, onClick: n, onInputClick: t, ...i }, o) => /* @__PURE__ */ l(
303
- $e,
306
+ We,
304
307
  {
305
308
  ...i,
306
309
  className: "dateRangeCustomInput",
@@ -312,37 +315,37 @@ const Us = (e) => {
312
315
  value: e
313
316
  }
314
317
  )
315
- ), pr = ({ setStartDate: e = () => {
318
+ ), vr = ({ setStartDate: e = () => {
316
319
  }, setEndDate: n = () => {
317
320
  }, shortcuts: t, dateRange: i, onShortcut: o }) => {
318
- const [r, c] = x(), u = Re(
321
+ const [r, c] = D(), u = Be(
319
322
  () => t.map((m) => m instanceof Function ? m() : m),
320
323
  [t]
321
324
  );
322
- return D(() => {
325
+ return I(() => {
323
326
  for (const m of u) {
324
- const g = i.startDate && i.endDate && Ct(m.startDate, i.startDate) && Ct(m.endDate, i.endDate);
325
- r ? m.id === r && (g || c(void 0)) : g && c(m.id);
327
+ const p = i.startDate && i.endDate && Tt(m.startDate, i.startDate) && Tt(m.endDate, i.endDate);
328
+ r ? m.id === r && (p || c(void 0)) : p && c(m.id);
326
329
  }
327
- }, [i, r, u]), /* @__PURE__ */ l("div", { className: "shortcutsContainer", children: u.map((m, g) => {
330
+ }, [i, r, u]), /* @__PURE__ */ l("div", { className: "shortcutsContainer", children: u.map((m, p) => {
328
331
  const E = () => {
329
332
  e(m.startDate), n(m.endDate);
330
333
  };
331
334
  return /* @__PURE__ */ l(
332
- ke,
335
+ Ne,
333
336
  {
334
337
  type: "button",
335
338
  className: `shortcut ${r === m.id ? "selected" : ""}`,
336
- onClick: (S) => {
339
+ onClick: (L) => {
337
340
  E(), o == null || o({ startDate: m.startDate, endDate: m.endDate });
338
341
  },
339
342
  outlined: !0,
340
343
  children: m.label
341
344
  },
342
- m.id + g
345
+ m.id + p
343
346
  );
344
347
  }) });
345
- }, Ks = Ee.forwardRef((e, n) => {
348
+ }, ta = Ee.forwardRef((e, n) => {
346
349
  const {
347
350
  // Time range input props
348
351
  // endTimeInputClassName,
@@ -361,148 +364,148 @@ const Us = (e) => {
361
364
  inputName: u,
362
365
  showMonthYearDropdown: m,
363
366
  // withTimeRange,
364
- withShortcuts: g,
367
+ withShortcuts: p,
365
368
  locale: E = "en"
366
- } = e, [S, w] = x(null), [P, R] = x(null), [G, q] = x(!1), H = r ? { startDate: S, endDate: P } : S;
367
- D(() => {
368
- E === "he" && Wn("he", Un);
369
- }, [E]), D(() => {
370
- var O, $;
371
- ((O = e.startDate) == null ? void 0 : O.toString()) !== (S == null ? void 0 : S.toString()) && w(e.startDate), (($ = e.endDate) == null ? void 0 : $.toString()) !== (P == null ? void 0 : P.toString()) && R(e.endDate);
372
- }, [e.startDate, e.endDate, S, P]);
373
- const j = Re(() => {
369
+ } = e, [L, w] = D(null), [P, A] = D(null), [H, Y] = D(!1), G = r ? { startDate: L, endDate: P } : L;
370
+ I(() => {
371
+ E === "he" && Kn("he", qn);
372
+ }, [E]), I(() => {
373
+ var O, z;
374
+ ((O = e.startDate) == null ? void 0 : O.toString()) !== (L == null ? void 0 : L.toString()) && w(e.startDate), ((z = e.endDate) == null ? void 0 : z.toString()) !== (P == null ? void 0 : P.toString()) && A(e.endDate);
375
+ }, [e.startDate, e.endDate, L, P]);
376
+ const U = Be(() => {
374
377
  let O = "pickerContainer" + (E === "he" ? " pickerContainer-rtl" : "");
375
- return g && r && (O += " pickerContainer-withShortcuts"), O;
376
- }, [E, g, r]), K = m ? {
378
+ return p && r && (O += " pickerContainer-withShortcuts"), O;
379
+ }, [E, p, r]), j = m ? {
377
380
  showMonthDropdown: !0,
378
381
  showYearDropdown: !0,
379
382
  dropdownMode: "select"
380
383
  } : {};
381
- return /* @__PURE__ */ l("div", { className: j, style: { direction: E === "he" ? "rtl" : "ltr" }, children: /* @__PURE__ */ l(
382
- $n,
384
+ return /* @__PURE__ */ l("div", { className: U, style: { direction: E === "he" ? "rtl" : "ltr" }, children: /* @__PURE__ */ l(
385
+ jn,
383
386
  {
384
387
  ...e,
385
388
  ref: n,
386
- onClickOutside: () => q(!1),
387
- open: G,
388
- startDate: Je(H) ? S : void 0,
389
- selected: S,
390
- endDate: Je(H) ? P : void 0,
389
+ onClickOutside: () => Y(!1),
390
+ open: H,
391
+ startDate: Qe(G) ? L : void 0,
392
+ selected: L,
393
+ endDate: Qe(G) ? P : void 0,
391
394
  monthsShown: e.monthsShown ?? 2,
392
395
  calendarClassName: `pickerCalendar ${t}`,
393
396
  weekDayClassName: (O) => `pickerWeek ${(i == null ? void 0 : i(O)) ?? ""}`,
394
397
  dayClassName: (O) => `pickerDay ${(i == null ? void 0 : i(O)) ?? ""}`,
395
398
  monthClassName: (O) => `pickerMonth ${(o == null ? void 0 : o(O)) ?? ""}`,
396
- onChange: (O, $) => {
399
+ onChange: (O, z) => {
397
400
  if (Array.isArray(O)) {
398
- const [A, W] = O;
399
- w(A), R(W), c == null || c({ startDate: A, endDate: W && Cn(W) }, $);
401
+ const [k, $] = O;
402
+ w(k), A($), c == null || c({ startDate: k, endDate: $ && bn($) }, z);
400
403
  } else
401
- w(O), c == null || c(O, $);
404
+ w(O), c == null || c(O, z);
402
405
  },
403
- customInput: /* @__PURE__ */ l(mr, { name: u, onInputClick: () => {
404
- q(!0);
406
+ customInput: /* @__PURE__ */ l(yr, { name: u, onInputClick: () => {
407
+ Y(!0);
405
408
  } }),
406
- showTimeInput: !!(g && r),
409
+ showTimeInput: !!(p && r),
407
410
  timeInputLabel: "",
408
- customTimeInput: g && Je(H) && /* @__PURE__ */ l(pr, { onShortcut: (O) => {
409
- c == null || c(O), q(!1);
410
- }, shortcuts: g, setEndDate: R, setStartDate: w, dateRange: H }),
411
+ customTimeInput: p && Qe(G) && /* @__PURE__ */ l(vr, { onShortcut: (O) => {
412
+ c == null || c(O), Y(!1);
413
+ }, shortcuts: p, setEndDate: A, setStartDate: w, dateRange: G }),
411
414
  showMonthYearDropdown: void 0,
412
- ...K
415
+ ...j
413
416
  }
414
417
  ) });
415
418
  });
416
- const qs = (e) => {
417
- const n = Kt(), t = rn(n), [i, o] = x(e.value), {
418
- format: r = J.DATE_PICKER.dateFormat,
419
- variant: c = J.DATE_PICKER.variant,
420
- disableFuture: u = J.DATE_PICKER.disableFuture,
421
- local: m,
422
- onChange: g,
423
- showTime: E = J.DATE_PICKER.showTime,
424
- value: S,
425
- ...w
426
- } = e, { placeHolderText: P = J.DATE_PICKER.local.placeHolderText, calendarLocale: R } = m ?? {
419
+ const na = (e) => {
420
+ const n = Xt(), t = an(n), {
421
+ format: i = J.DATE_PICKER.dateFormat,
422
+ variant: o = J.DATE_PICKER.variant,
423
+ disableFuture: r = J.DATE_PICKER.disableFuture,
424
+ local: c,
425
+ onChange: u,
426
+ showTime: m = J.DATE_PICKER.showTime,
427
+ value: p,
428
+ ...E
429
+ } = e, { placeHolderText: L = J.DATE_PICKER.local.placeHolderText, calendarLocale: w } = c ?? {
427
430
  placeHolderText: J.DATE_PICKER.local.placeHolderText,
428
- calendarLocale: ue.EN
429
- }, G = R === ue.HE ? zt : $t, q = (H) => {
430
- o(H), g(H);
431
+ calendarLocale: he.EN
432
+ }, P = w === he.HE ? Ut : jt, A = (H) => {
433
+ u(H);
431
434
  };
432
- return /* @__PURE__ */ l(jt, { theme: t, children: /* @__PURE__ */ N(Wt, { utils: Ut, locale: G, children: [
433
- E && /* @__PURE__ */ l(
434
- it,
435
+ return /* @__PURE__ */ l(Yt, { theme: t, children: /* @__PURE__ */ N(Kt, { utils: qt, locale: P, children: [
436
+ m && /* @__PURE__ */ l(
437
+ rt,
435
438
  {
436
- variant: c,
437
- placeholder: P,
438
- onChange: q,
439
- value: i,
440
- disableFuture: u,
441
- format: r,
442
- ...w
439
+ variant: o,
440
+ placeholder: L,
441
+ onChange: A,
442
+ value: p,
443
+ disableFuture: r,
444
+ format: i,
445
+ ...E
443
446
  }
444
447
  ),
445
- !E && /* @__PURE__ */ l(
446
- wn,
448
+ !m && /* @__PURE__ */ l(
449
+ Ln,
447
450
  {
448
- variant: c,
449
- placeholder: P,
450
- onChange: q,
451
- value: i,
452
- disableFuture: u,
453
- format: r,
454
- ...w
451
+ variant: o,
452
+ placeholder: L,
453
+ onChange: A,
454
+ value: p,
455
+ disableFuture: r,
456
+ format: i,
457
+ ...E
455
458
  }
456
459
  )
457
460
  ] }) });
458
- }, gr = 18, fr = Ne(
459
- (e) => je({
461
+ }, Er = 18, Cr = Fe(
462
+ (e) => Ke({
460
463
  drawingButton: {
461
- width: e.spacing(gr)
464
+ width: e.spacing(Er)
462
465
  },
463
466
  fullWidth: {
464
467
  width: "100%",
465
468
  marginTop: "36px"
466
469
  }
467
470
  })
468
- ), yr = (e) => {
469
- const n = fr(), [t, i] = Ee.useState(null), { isSelectionEnabled: o, onCancelDraw: r, onStartDraw: c, onReset: u } = e, m = (E) => {
471
+ ), wr = (e) => {
472
+ const n = Cr(), [t, i] = Ee.useState(null), { isSelectionEnabled: o, onCancelDraw: r, onStartDraw: c, onReset: u } = e, m = (E) => {
470
473
  i(E.currentTarget);
471
- }, g = () => {
474
+ }, p = () => {
472
475
  i(null);
473
476
  };
474
- return o ? /* @__PURE__ */ l(ot, { content: "Cancel the ongoing draw", align: "bottomLeft", children: /* @__PURE__ */ l(ke, { className: n.drawingButton, raised: !0, onClick: r, children: "Cancel Draw" }) }) : /* @__PURE__ */ N(ce, { position: "relative", children: [
475
- /* @__PURE__ */ l(ot, { content: "draw an Area of interest to limit the search", align: "bottomLeft", children: /* @__PURE__ */ l(ke, { className: n.drawingButton, raised: !0, onClick: m, children: "Draw AOI" }) }),
477
+ return o ? /* @__PURE__ */ l(st, { content: "Cancel the ongoing draw", align: "bottomLeft", children: /* @__PURE__ */ l(Ne, { className: n.drawingButton, raised: !0, onClick: r, children: "Cancel Draw" }) }) : /* @__PURE__ */ N(de, { position: "relative", children: [
478
+ /* @__PURE__ */ l(st, { content: "draw an Area of interest to limit the search", align: "bottomLeft", children: /* @__PURE__ */ l(Ne, { className: n.drawingButton, raised: !0, onClick: m, children: "Draw AOI" }) }),
476
479
  /* @__PURE__ */ N(
477
- kn,
480
+ Bn,
478
481
  {
479
482
  className: n.fullWidth,
480
483
  open: Boolean(t),
481
- onClose: g,
484
+ onClose: p,
482
485
  children: [
483
486
  /* @__PURE__ */ l(
484
- Xe,
487
+ Ze,
485
488
  {
486
489
  onClick: () => {
487
- c(ae.POLYGON), g();
490
+ c(le.POLYGON), p();
488
491
  },
489
492
  children: "Polygon"
490
493
  }
491
494
  ),
492
495
  /* @__PURE__ */ l(
493
- Xe,
496
+ Ze,
494
497
  {
495
498
  onClick: () => {
496
- c(ae.BOX), g();
499
+ c(le.BOX), p();
497
500
  },
498
501
  children: "Box"
499
502
  }
500
503
  ),
501
504
  /* @__PURE__ */ l(
502
- Xe,
505
+ Ze,
503
506
  {
504
507
  onClick: () => {
505
- u(), g();
508
+ u(), p();
506
509
  },
507
510
  children: "Clear"
508
511
  }
@@ -512,120 +515,120 @@ const qs = (e) => {
512
515
  )
513
516
  ] });
514
517
  };
515
- var pe = /* @__PURE__ */ ((e) => (e.WGS84 = "EPSG:4326", e.WEB_MERCATOR = "EPSG:3857", e))(pe || {});
516
- const dt = 5, ut = 2, on = Le(null), vr = on.Provider, St = 35, Lt = 32, Er = 10, Cr = (e) => e !== void 0 && e !== pe.WGS84 ? Xn([St, Lt], pe.WGS84, e) : [St, Lt], wr = (e) => {
518
+ var ge = /* @__PURE__ */ ((e) => (e.WGS84 = "EPSG:4326", e.WEB_MERCATOR = "EPSG:3857", e))(ge || {});
519
+ const ut = 5, ht = 2, ln = Me(null), Tr = ln.Provider, Mt = 35, Pt = 32, br = 10, Lr = (e) => e !== void 0 && e !== ge.WGS84 ? Qn([Mt, Pt], ge.WGS84, e) : [Mt, Pt], Sr = (e) => {
517
520
  switch (e) {
518
- case pe.WEB_MERCATOR:
519
- return (n) => wt(n, "Mercator: {y}m, {x}m", ut);
520
- case pe.WGS84:
521
- return (n) => wt(n, "WGS84: {y}°N {x}°E", dt);
521
+ case ge.WEB_MERCATOR:
522
+ return (n) => bt(n, "Mercator: {y}m, {x}m", ht);
523
+ case ge.WGS84:
524
+ return (n) => bt(n, "WGS84: {y}°N {x}°E", ut);
522
525
  default:
523
526
  return (n) => "";
524
527
  }
525
- }, Fe = () => {
526
- const e = _e(on);
528
+ }, ke = () => {
529
+ const e = Pe(ln);
527
530
  if (e === null)
528
531
  throw new Error("map context is null, please check the provider");
529
532
  return e;
530
- }, Tr = (e) => {
531
- const n = Se(null), { allowFullScreen: t, showMousePosition: i, projection: o } = e, [r] = x(
532
- new Kn({
533
- view: new qn({
534
- projection: o ?? pe.WGS84
533
+ }, _r = (e) => {
534
+ const n = Se(null), { allowFullScreen: t, showMousePosition: i, projection: o } = e, [r] = D(
535
+ new Xn({
536
+ view: new Zn({
537
+ projection: o ?? ge.WGS84
535
538
  }),
536
- controls: Yn()
539
+ controls: Jn()
537
540
  })
538
541
  );
539
- D(() => {
540
- r.getView().setCenter(e.center ?? Cr(e.projection));
541
- }, [r, e.center, e.projection]), D(() => {
542
- r.getView().setZoom(e.zoom ?? Er);
542
+ I(() => {
543
+ r.getView().setCenter(e.center ?? Lr(e.projection));
544
+ }, [r, e.center, e.projection]), I(() => {
545
+ r.getView().setZoom(e.zoom ?? br);
543
546
  }, [r, e.zoom, e.projection]);
544
547
  const c = (u, m) => {
545
548
  m.getControls().forEach((E) => {
546
549
  E instanceof u && m.removeControl(E);
547
550
  });
548
551
  };
549
- return D(() => {
550
- r.setTarget(n.current), t !== void 0 && t ? r.addControl(new Tt()) : c(Tt, r);
551
- }, [r, t]), D(() => {
552
- i !== void 0 && i ? (c(Ze, r), r.addControl(
553
- new Ze({
554
- coordinateFormat: wr(o ?? pe.WGS84),
555
- projection: o ?? pe.WGS84,
552
+ return I(() => {
553
+ r.setTarget(n.current), t !== void 0 && t ? r.addControl(new Lt()) : c(Lt, r);
554
+ }, [r, t]), I(() => {
555
+ i !== void 0 && i ? (c(Je, r), r.addControl(
556
+ new Je({
557
+ coordinateFormat: Sr(o ?? ge.WGS84),
558
+ projection: o ?? ge.WGS84,
556
559
  undefinedHTML: "&nbsp;"
557
560
  })
558
- )) : c(Ze, r);
559
- }, [r, i, o]), /* @__PURE__ */ N(vr, { value: r, children: [
561
+ )) : c(Je, r);
562
+ }, [r, i, o]), /* @__PURE__ */ N(Tr, { value: r, children: [
560
563
  /* @__PURE__ */ l("div", { className: "map", ref: n }),
561
564
  e.children
562
565
  ] });
563
- }, sn = Le(null), br = sn.Provider, Ke = () => {
564
- const e = _e(sn);
566
+ }, cn = Me(null), Mr = cn.Provider, qe = () => {
567
+ const e = Pe(cn);
565
568
  if (e === null)
566
569
  throw new Error("tile layer context is null, please check the provider");
567
570
  return e;
568
- }, Sr = ({ options: e, children: n }) => {
569
- const t = Fe(), [i] = x(new Jn(e));
570
- return D(() => (t.addLayer(i), () => {
571
+ }, Pr = ({ options: e, children: n }) => {
572
+ const t = ke(), [i] = D(new ti(e));
573
+ return I(() => (t.addLayer(i), () => {
571
574
  t.removeLayer(i);
572
- }), [t, i]), /* @__PURE__ */ l(br, { value: i, children: n });
573
- }, an = Le(null), Lr = an.Provider, _r = () => {
574
- const e = _e(an);
575
+ }), [t, i]), /* @__PURE__ */ l(Mr, { value: i, children: n });
576
+ }, dn = Me(null), xr = dn.Provider, Ir = () => {
577
+ const e = Pe(dn);
575
578
  if (e === null)
576
579
  throw new Error("vector layer context is null, please check the provider");
577
580
  return e;
578
- }, Mr = ({ children: e }) => {
579
- const n = Fe(), [t] = x(new Qn());
580
- return D(() => (n.addLayer(t), () => {
581
+ }, Dr = ({ children: e }) => {
582
+ const n = ke(), [t] = D(new ni());
583
+ return I(() => (n.addLayer(t), () => {
581
584
  n.removeLayer(t);
582
- }), [n, t]), /* @__PURE__ */ l(Lr, { value: t, children: e });
583
- }, ln = Le(null), Pr = ln.Provider, Ir = () => {
584
- const e = _e(ln);
585
+ }), [n, t]), /* @__PURE__ */ l(xr, { value: t, children: e });
586
+ }, un = Me(null), Or = un.Provider, Ar = () => {
587
+ const e = Pe(un);
585
588
  if (e === null)
586
589
  throw new Error("vector source context is null, please check the provider");
587
590
  return e;
588
- }, Dr = ({ children: e }) => {
589
- const n = _r(), [t] = x(new ei());
590
- return D(() => {
591
+ }, kr = ({ children: e }) => {
592
+ const n = Ir(), [t] = D(new ii());
593
+ return I(() => {
591
594
  n.setSource(t);
592
- }, [t, n]), /* @__PURE__ */ l(Pr, { value: t, children: e });
593
- }, xr = ({ geometry: e, fitOptions: n, fit: t }) => {
594
- const i = Ir(), o = Fe();
595
- return Gt(() => {
596
- const c = new qt().readFeature(e);
597
- return t && i.on("addfeature", function() {
598
- o.getView().fit(i.getExtent(), n);
599
- }), i.addFeature(c), () => {
600
- i.removeFeature(c);
595
+ }, [t, n]), /* @__PURE__ */ l(Or, { value: t, children: e });
596
+ }, Rr = ({ geometry: e, fitOptions: n, fit: t, featureStyle: i }) => {
597
+ const o = Ar(), r = ke();
598
+ return Wt(() => {
599
+ const u = new Zt().readFeature(e);
600
+ return t && o.on("addfeature", function() {
601
+ r.getView().fit(o.getExtent(), n);
602
+ }), i && u.setStyle(i), o.addFeature(u), () => {
603
+ o.removeFeature(u);
601
604
  };
602
- }, [e, i, t]), null;
603
- }, Or = (e) => {
604
- const n = Ke();
605
- return D(() => {
606
- n.setSource(new ti());
605
+ }, [e, o, t]), null;
606
+ }, Nr = (e) => {
607
+ const n = qe();
608
+ return I(() => {
609
+ n.setSource(new ri());
607
610
  }, [n]), null;
608
- }, Ar = ({ drawType: e, onPolygonSelected: n }) => {
609
- const t = Fe();
610
- return D(() => {
611
+ }, Br = ({ drawType: e, onPolygonSelected: n }) => {
612
+ const t = ke();
613
+ return I(() => {
611
614
  const i = {
612
615
  type: "Circle"
613
616
  /* CIRCLE */
614
617
  };
615
618
  switch (e) {
616
- case ae.BOX:
617
- i.geometryFunction = oi();
619
+ case le.BOX:
620
+ i.geometryFunction = li();
618
621
  break;
619
- case ae.POLYGON:
622
+ case le.POLYGON:
620
623
  i.type = "Polygon";
621
624
  break;
622
625
  default:
623
626
  return;
624
627
  }
625
- const o = new ri(i);
628
+ const o = new ai(i);
626
629
  t.addInteraction(o);
627
630
  const r = (c) => {
628
- const m = new qt().writeGeometryObject(c.feature.getGeometry());
631
+ const m = new Zt().writeGeometryObject(c.feature.getGeometry());
629
632
  n == null || n(m);
630
633
  };
631
634
  return o.on("drawend", r), () => {
@@ -633,19 +636,19 @@ const dt = 5, ut = 2, on = Le(null), vr = on.Provider, St = 35, Lt = 32, Er = 10
633
636
  };
634
637
  }, [n, e, t]), null;
635
638
  };
636
- const kr = (e) => {
639
+ const Fr = (e) => {
637
640
  const n = (t) => {
638
- const i = jn(t);
641
+ const i = Yn(t);
639
642
  e.onPolygonSelection(i);
640
643
  };
641
- return /* @__PURE__ */ N(Tr, { allowFullScreen: !0, showMousePosition: !0, children: [
642
- /* @__PURE__ */ l(Sr, { children: /* @__PURE__ */ l(Or, {}) }),
643
- e.selectionPolygon && /* @__PURE__ */ l(Mr, { children: /* @__PURE__ */ l(Dr, { children: /* @__PURE__ */ l(xr, { geometry: e.selectionPolygon }) }) }),
644
+ return /* @__PURE__ */ N(_r, { allowFullScreen: !0, showMousePosition: !0, children: [
645
+ /* @__PURE__ */ l(Pr, { children: /* @__PURE__ */ l(Nr, {}) }),
646
+ e.selectionPolygon && /* @__PURE__ */ l(Dr, { children: /* @__PURE__ */ l(kr, { children: /* @__PURE__ */ l(Rr, { geometry: e.selectionPolygon }) }) }),
644
647
  e.children,
645
- e.drawType !== void 0 && /* @__PURE__ */ l(Ar, { drawType: e.drawType, onPolygonSelected: n })
648
+ e.drawType !== void 0 && /* @__PURE__ */ l(Br, { drawType: e.drawType, onPolygonSelected: n })
646
649
  ] });
647
- }, Qe = 1.5, Rr = 80, Nr = Ne(
648
- (e) => je({
650
+ }, et = 1.5, Hr = 80, Gr = Fe(
651
+ (e) => Ke({
649
652
  map: {
650
653
  height: "100%",
651
654
  width: "100%",
@@ -654,12 +657,12 @@ const kr = (e) => {
654
657
  absolute: {
655
658
  position: "absolute",
656
659
  zIndex: 1e3,
657
- left: e.spacing(Qe),
658
- top: e.spacing(Qe)
660
+ left: e.spacing(et),
661
+ top: e.spacing(et)
659
662
  },
660
663
  contentContainer: {
661
- marginTop: e.spacing(Qe),
662
- width: e.spacing(Rr)
664
+ marginTop: e.spacing(et),
665
+ width: e.spacing(Hr)
663
666
  },
664
667
  filtersContainer: {
665
668
  display: "flex",
@@ -669,18 +672,18 @@ const kr = (e) => {
669
672
  marginLeft: e.spacing(1)
670
673
  }
671
674
  })
672
- ), Ys = (e) => {
675
+ ), ia = (e) => {
673
676
  var m;
674
- const [n, t] = x(), [i, o] = x(), r = Nr(), c = (g) => {
675
- o(g), t(void 0), e.handlePolygonSelected(g);
677
+ const [n, t] = D(), [i, o] = D(), r = Gr(), c = (p) => {
678
+ o(p), t(void 0), e.handlePolygonSelected(p);
676
679
  }, u = () => {
677
680
  o(void 0), e.handlePolygonReset();
678
681
  };
679
682
  return /* @__PURE__ */ N("div", { className: r.map, children: [
680
683
  /* @__PURE__ */ N("div", { className: `${r.absolute}`, children: [
681
- /* @__PURE__ */ N(rt, { className: r.filtersContainer, children: [
684
+ /* @__PURE__ */ N(ot, { className: r.filtersContainer, children: [
682
685
  /* @__PURE__ */ l(
683
- yr,
686
+ wr,
684
687
  {
685
688
  onCancelDraw: () => t(void 0),
686
689
  onReset: u,
@@ -688,48 +691,48 @@ const kr = (e) => {
688
691
  isSelectionEnabled: n !== void 0
689
692
  }
690
693
  ),
691
- (m = e.filters) == null ? void 0 : m.map((g, E) => /* @__PURE__ */ l("div", { className: r.filtersMargin, children: g }, E))
694
+ (m = e.filters) == null ? void 0 : m.map((p, E) => /* @__PURE__ */ l("div", { className: r.filtersMargin, children: p }, E))
692
695
  ] }),
693
- /* @__PURE__ */ l(rt, { color: "red", className: `${r.contentContainer}`, children: e.children })
696
+ /* @__PURE__ */ l(ot, { color: "red", className: `${r.contentContainer}`, children: e.children })
694
697
  ] }),
695
- /* @__PURE__ */ l(kr, { children: e.mapContent, onPolygonSelection: c, drawType: n, selectionPolygon: i })
698
+ /* @__PURE__ */ l(Fr, { children: e.mapContent, onPolygonSelection: c, drawType: n, selectionPolygon: i })
696
699
  ] });
697
- }, _t = new ai({
700
+ }, xt = new di({
698
701
  color: "rgba(255,255,255,0.4)"
699
- }), Mt = new li({
702
+ }), It = new ui({
700
703
  color: "#3399CC",
701
704
  width: 1.25
702
- }), Pt = [
703
- new ci({
704
- image: new di({
705
- fill: _t,
706
- stroke: Mt,
705
+ }), Dt = [
706
+ new hi({
707
+ image: new mi({
708
+ fill: xt,
709
+ stroke: It,
707
710
  radius: 5
708
711
  }),
709
- fill: _t,
710
- stroke: Mt
712
+ fill: xt,
713
+ stroke: It
711
714
  })
712
- ], cn = Le(null), Br = cn.Provider, Fr = () => {
713
- const e = _e(cn);
715
+ ], hn = Me(null), Vr = hn.Provider, zr = () => {
716
+ const e = Pe(hn);
714
717
  if (e === null)
715
718
  throw new Error("vector tile layer context is null, please check the provider");
716
719
  return e;
717
- }, Xs = ({ children: e, options: n, style: t }) => {
718
- const i = Fe(), [o] = x(
719
- new si({
720
+ }, ra = ({ children: e, options: n, style: t }) => {
721
+ const i = ke(), [o] = D(
722
+ new ci({
720
723
  ...n,
721
- style: t || Pt
724
+ style: t || Dt
722
725
  })
723
726
  );
724
- return D(() => (i.addLayer(o), () => {
727
+ return I(() => (i.addLayer(o), () => {
725
728
  i.removeLayer(o);
726
- }), [i, o]), D(() => {
727
- o.setStyle(t || Pt);
728
- }, [o, t]), /* @__PURE__ */ l(Br, { value: o, children: e });
729
- }, et = 20, Hr = 256, Vr = 2, Gr = 2, zr = "REST", Zs = (e) => {
730
- const n = Zn(e.projection), t = n.getExtent(), i = new Array(et), o = new Array(et), r = hi(t) / Hr, c = e.heightWidthRatio !== void 0 ? e.heightWidthRatio : Gr, u = e.requestEncoding !== void 0 ? e.requestEncoding : zr;
731
- for (let g = 0; g < et; ++g)
732
- i[g] = r / Math.pow(Vr, g) / c, o[g] = g.toString();
729
+ }), [i, o]), I(() => {
730
+ o.setStyle(t || Dt);
731
+ }, [o, t]), /* @__PURE__ */ l(Vr, { value: o, children: e });
732
+ }, tt = 20, $r = 256, Wr = 2, Ur = 2, jr = "REST", oa = (e) => {
733
+ const n = ei(e.projection), t = n.getExtent(), i = new Array(tt), o = new Array(tt), r = gi(t) / $r, c = e.heightWidthRatio !== void 0 ? e.heightWidthRatio : Ur, u = e.requestEncoding !== void 0 ? e.requestEncoding : jr;
734
+ for (let p = 0; p < tt; ++p)
735
+ i[p] = r / Math.pow(Wr, p) / c, o[p] = p.toString();
733
736
  return {
734
737
  attributions: e.attributions,
735
738
  url: e.url,
@@ -737,8 +740,8 @@ const kr = (e) => {
737
740
  matrixSet: e.matrixSet,
738
741
  format: e.format,
739
742
  projection: n,
740
- tileGrid: new ui({
741
- origin: mi(t),
743
+ tileGrid: new pi({
744
+ origin: fi(t),
742
745
  resolutions: i,
743
746
  matrixIds: o
744
747
  }),
@@ -746,12 +749,12 @@ const kr = (e) => {
746
749
  requestEncoding: u,
747
750
  wrapX: e.wrapX !== void 0 ? e.wrapX : !0
748
751
  };
749
- }, Js = (e) => {
750
- const n = Ke(), { options: t } = e;
751
- return D(() => {
752
- n.setSource(new ni(t));
752
+ }, sa = (e) => {
753
+ const n = qe(), { options: t } = e;
754
+ return I(() => {
755
+ n.setSource(new oi(t));
753
756
  }, [n, t]), null;
754
- }, Qs = (e) => {
757
+ }, aa = (e) => {
755
758
  const { attributions: n, url: t, params: i, serverType: o, transition: r } = e;
756
759
  return {
757
760
  attributions: n,
@@ -760,53 +763,76 @@ const kr = (e) => {
760
763
  serverType: o,
761
764
  transition: r
762
765
  };
763
- }, ea = (e) => {
764
- const n = Ke(), { options: t } = e;
765
- return D(() => {
766
- n.setSource(new pi(t));
766
+ }, la = (e) => {
767
+ const n = qe(), { options: t } = e;
768
+ return I(() => {
769
+ n.setSource(new yi(t));
767
770
  }, [n, t]), null;
768
- }, ta = (e) => {
771
+ }, ca = (e) => {
769
772
  const { attributions: n, url: t } = e;
770
773
  return {
771
774
  attributions: n,
772
775
  url: t
773
776
  };
774
- }, na = (e) => {
775
- const n = Ke(), { options: t } = e;
776
- return D(() => {
777
- n.setSource(new gi(t));
777
+ }, da = (e) => {
778
+ const n = qe(), { options: t } = e;
779
+ return I(() => {
780
+ n.setSource(new vi(t));
778
781
  }, [n, t]), null;
779
- }, $r = Le(null), ia = () => {
780
- const e = _e($r);
782
+ }, Kr = Me(null), ua = () => {
783
+ const e = Pe(Kr);
781
784
  if (e === null)
782
785
  throw new Error("vector tile source context is null, please check the provider");
783
786
  return e;
784
- }, ra = (e) => {
787
+ }, ha = (e) => {
785
788
  const { url: n } = e;
786
789
  return {
787
790
  url: n,
788
- format: new ii()
791
+ format: new si()
789
792
  };
790
- }, oa = ({ children: e, options: n }) => {
791
- const t = Fr();
792
- return D(() => {
793
- t.setSource(new fi(n));
793
+ }, ma = ({ children: e, options: n }) => {
794
+ const t = zr();
795
+ return I(() => {
796
+ t.setSource(new Ei(n));
794
797
  }, [n, t]), null;
798
+ }, pa = ({ legendItems: e, title: n, isCollapsed: t }) => {
799
+ const i = ke();
800
+ return I(() => {
801
+ const o = new St({
802
+ title: n ?? "",
803
+ margin: 5,
804
+ maxWidth: 300
805
+ }), r = new Ci({
806
+ legend: o,
807
+ collapsed: t === void 0 ? !0 : t
808
+ });
809
+ i.addControl(r);
810
+ const c = new St({ margin: 4 });
811
+ return e.forEach((u) => {
812
+ c.addItem({
813
+ title: u.title,
814
+ style: u.style,
815
+ typeGeom: "Polygon"
816
+ });
817
+ }), o.addItem(c), () => {
818
+ i.removeControl(r);
819
+ };
820
+ }, [i, e, n, t]), /* @__PURE__ */ l(oe, {});
795
821
  };
796
- function Wr(e) {
822
+ function qr(e) {
797
823
  const { headCells: n, order: t, orderBy: i, onRequestSort: o, isCollapseable: r } = e, c = (u) => (m) => {
798
824
  o(m, u);
799
825
  };
800
- return /* @__PURE__ */ l(yi, { children: /* @__PURE__ */ N(ze, { children: [
801
- r && /* @__PURE__ */ l(xe, {}),
826
+ return /* @__PURE__ */ l(wi, { children: /* @__PURE__ */ N($e, { children: [
827
+ r && /* @__PURE__ */ l(Ae, {}),
802
828
  n.map((u) => /* @__PURE__ */ l(
803
- xe,
829
+ Ae,
804
830
  {
805
831
  align: u.numeric ? "right" : "left",
806
832
  padding: u.disablePadding ? "none" : "default",
807
833
  sortDirection: i === u.id ? t : !1,
808
834
  children: /* @__PURE__ */ l(
809
- Ln,
835
+ Pn,
810
836
  {
811
837
  active: i === u.id,
812
838
  direction: i === u.id ? t : "asc",
@@ -819,36 +845,36 @@ function Wr(e) {
819
845
  ))
820
846
  ] }) });
821
847
  }
822
- const Ur = Yt(
823
- /* @__PURE__ */ Vt.createElement("path", {
848
+ const Yr = Jt(
849
+ /* @__PURE__ */ $t.createElement("path", {
824
850
  d: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"
825
851
  }),
826
852
  "KeyboardArrowDown"
827
- ), jr = Yt(
828
- /* @__PURE__ */ Vt.createElement("path", {
853
+ ), Xr = Jt(
854
+ /* @__PURE__ */ $t.createElement("path", {
829
855
  d: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"
830
856
  }),
831
857
  "KeyboardArrowUp"
832
858
  );
833
- function Kr(e) {
834
- const { cellsMetadata: n, isRowSelected: t, item: i, onRowSelected: o, rowIndex: r, isCollapseable: c, collapsedElement: u } = e, [m, g] = x(!1), E = n.length;
835
- return /* @__PURE__ */ N(te, { children: [
836
- /* @__PURE__ */ N(ze, { hover: !0, selected: t, onClick: () => {
859
+ function Zr(e) {
860
+ const { cellsMetadata: n, isRowSelected: t, item: i, onRowSelected: o, rowIndex: r, isCollapseable: c, collapsedElement: u } = e, [m, p] = D(!1), E = n.length;
861
+ return /* @__PURE__ */ N(oe, { children: [
862
+ /* @__PURE__ */ N($e, { hover: !0, selected: t, onClick: () => {
837
863
  o == null || o(r);
838
864
  }, children: [
839
- c && /* @__PURE__ */ l(xe, { padding: "checkbox", children: /* @__PURE__ */ l(
840
- _n,
865
+ c && /* @__PURE__ */ l(Ae, { padding: "checkbox", children: /* @__PURE__ */ l(
866
+ xn,
841
867
  {
842
868
  "aria-label": "expand row",
843
869
  size: "small",
844
870
  onClick: (w) => {
845
- w.stopPropagation(), g(!m);
871
+ w.stopPropagation(), p(!m);
846
872
  },
847
- children: m ? /* @__PURE__ */ l(jr, {}) : /* @__PURE__ */ l(Ur, {})
873
+ children: m ? /* @__PURE__ */ l(Xr, {}) : /* @__PURE__ */ l(Yr, {})
848
874
  }
849
875
  ) }),
850
876
  n.map((w) => /* @__PURE__ */ l(
851
- xe,
877
+ Ae,
852
878
  {
853
879
  align: w.numeric ? "right" : "left",
854
880
  padding: w.disablePadding ? "none" : "default",
@@ -857,169 +883,169 @@ function Kr(e) {
857
883
  w.id + r.toString()
858
884
  ))
859
885
  ] }),
860
- c && /* @__PURE__ */ l(ze, { children: /* @__PURE__ */ l(xe, { style: { paddingBottom: 0, paddingTop: 0 }, colSpan: E + 1, children: /* @__PURE__ */ l(Mn, { in: m, unmountOnExit: !0, timeout: "auto", children: u == null ? void 0 : u(i) }) }) })
886
+ c && /* @__PURE__ */ l($e, { children: /* @__PURE__ */ l(Ae, { style: { paddingBottom: 0, paddingTop: 0 }, colSpan: E + 1, children: /* @__PURE__ */ l(In, { in: m, unmountOnExit: !0, timeout: "auto", children: u == null ? void 0 : u(i) }) }) })
861
887
  ] });
862
888
  }
863
- function sa(e) {
864
- const [n, t] = x(""), [i, o] = x("asc"), {
889
+ function ga(e) {
890
+ const [n, t] = D(""), [i, o] = D("asc"), {
865
891
  cellsMetadata: r,
866
892
  items: c,
867
893
  onRequestSort: u,
868
894
  onRowSelected: m,
869
- isCollapseable: g,
895
+ isCollapseable: p,
870
896
  collapsedElement: E,
871
- isDense: S,
897
+ isDense: L,
872
898
  page: w,
873
899
  rowsPerPage: P,
874
- count: R,
875
- handleChangePage: G,
876
- handleChangeRowsPerPage: q
900
+ count: A,
901
+ handleChangePage: H,
902
+ handleChangeRowsPerPage: Y
877
903
  } = e;
878
- return /* @__PURE__ */ N(Pn, { component: rt, children: [
879
- /* @__PURE__ */ N(In, { size: S ? "small" : "medium", children: [
904
+ return /* @__PURE__ */ N(Dn, { component: ot, children: [
905
+ /* @__PURE__ */ N(On, { size: L ? "small" : "medium", children: [
880
906
  /* @__PURE__ */ l(
881
- Wr,
907
+ qr,
882
908
  {
883
909
  headCells: r,
884
- onRequestSort: (j, K) => {
885
- const O = n === K && i === "asc";
886
- o(O ? "desc" : "asc"), t(K), u(K, O ? "desc" : "asc");
910
+ onRequestSort: (U, j) => {
911
+ const O = n === j && i === "asc";
912
+ o(O ? "desc" : "asc"), t(j), u(j, O ? "desc" : "asc");
887
913
  },
888
914
  order: i,
889
915
  orderBy: n,
890
- isCollapseable: g
916
+ isCollapseable: p
891
917
  }
892
918
  ),
893
- /* @__PURE__ */ N(Dn, { children: [
894
- c.map((j, K) => /* @__PURE__ */ l(
895
- Kr,
919
+ /* @__PURE__ */ N(An, { children: [
920
+ c.map((U, j) => /* @__PURE__ */ l(
921
+ Zr,
896
922
  {
897
- item: j,
898
- rowIndex: K,
899
- isCollapseable: g,
923
+ item: U,
924
+ rowIndex: j,
925
+ isCollapseable: p,
900
926
  cellsMetadata: r,
901
927
  collapsedElement: E,
902
928
  isRowSelected: !1,
903
929
  onRowSelected: m
904
930
  },
905
- K
931
+ j
906
932
  )),
907
933
  (c.length === 0 || P > c.length) && /* @__PURE__ */ l(
908
- ze,
934
+ $e,
909
935
  {
910
936
  style: {
911
- height: (S ? 33 : 53) * (P - c.length)
937
+ height: (L ? 33 : 53) * (P - c.length)
912
938
  },
913
- children: /* @__PURE__ */ l(xe, { colSpan: g ? r.length + 1 : r.length, children: c.length === 0 && /* @__PURE__ */ l(xn, { align: "center", children: "No results :(" }) })
939
+ children: /* @__PURE__ */ l(Ae, { colSpan: p ? r.length + 1 : r.length, children: c.length === 0 && /* @__PURE__ */ l(kn, { align: "center", children: "No results :(" }) })
914
940
  }
915
941
  )
916
942
  ] })
917
943
  ] }),
918
944
  /* @__PURE__ */ l(
919
- On,
945
+ Rn,
920
946
  {
921
947
  rowsPerPage: P,
922
948
  rowsPerPageOptions: [5, 10],
923
949
  component: "div",
924
- count: R,
950
+ count: A,
925
951
  page: w,
926
- onPageChange: G,
927
- onRowsPerPageChange: q
952
+ onPageChange: H,
953
+ onRowsPerPageChange: Y
928
954
  }
929
955
  )
930
956
  ] });
931
957
  }
932
- const aa = (e) => {
958
+ const fa = (e) => {
933
959
  const { children: n, ...t } = e;
934
- return /* @__PURE__ */ l(vi, { ...t, children: n });
935
- }, la = (e) => {
960
+ return /* @__PURE__ */ l(Ti, { ...t, children: n });
961
+ }, ya = (e) => {
936
962
  const { children: n, ...t } = e;
937
- return /* @__PURE__ */ l(Ei, { ...t, children: n });
938
- }, It = (e) => e * Math.PI / 180, He = (e) => e * (180 / Math.PI), qr = (e) => 0.05 * (5916575505e-1 / Math.pow(2, e - 1) / 2) * (Math.cos(It(85.362 / 2)) / Math.sin(It(85.362 / 2)));
939
- const dn = (e, n, t) => {
963
+ return /* @__PURE__ */ l(bi, { ...t, children: n });
964
+ }, Ot = (e) => e * Math.PI / 180, Ge = (e) => e * (180 / Math.PI), Jr = (e) => 0.05 * (5916575505e-1 / Math.pow(2, e - 1) / 2) * (Math.cos(Ot(85.362 / 2)) / Math.sin(Ot(85.362 / 2)));
965
+ const mn = (e, n, t) => {
940
966
  let i;
941
- if (e.scene.mode !== be.SCENE2D)
967
+ if (e.scene.mode !== Le.SCENE2D)
942
968
  i = e.scene.pickPosition(new Ce(n, t));
943
969
  else {
944
970
  const o = e.scene.globe.ellipsoid;
945
971
  i = e.camera.pickEllipsoid(new Ce(n, t), o);
946
972
  }
947
- return Be.fromCartesian(i);
948
- }, Yr = (e, n, t) => {
949
- const i = dn(e, n, t);
973
+ return He.fromCartesian(i);
974
+ }, Qr = (e, n, t) => {
975
+ const i = mn(e, n, t);
950
976
  return {
951
977
  type: "Feature",
952
978
  properties: {},
953
979
  geometry: {
954
980
  type: "Point",
955
- coordinates: [ge.toDegrees(i.longitude), ge.toDegrees(i.latitude)]
981
+ coordinates: [fe.toDegrees(i.longitude), fe.toDegrees(i.latitude)]
956
982
  }
957
983
  };
958
- }, un = (e, n, t) => {
984
+ }, pn = (e, n, t) => {
959
985
  try {
960
- const i = dn(e, n, t);
986
+ const i = mn(e, n, t);
961
987
  return {
962
- longitude: ge.toDegrees(i.longitude),
963
- latitude: ge.toDegrees(i.latitude)
988
+ longitude: fe.toDegrees(i.longitude),
989
+ latitude: fe.toDegrees(i.latitude)
964
990
  };
965
991
  } catch {
966
992
  return;
967
993
  }
968
994
  };
969
- class ca extends Di {
995
+ class va extends ki {
970
996
  }
971
- class da extends xi {
997
+ class Ea extends Ri {
972
998
  }
973
- class ua extends Oi {
999
+ class Ca extends Ni {
974
1000
  }
975
- class ha extends Ce {
1001
+ class wa extends Ce {
976
1002
  }
977
- class ma extends ve {
1003
+ class Ta extends ve {
978
1004
  }
979
- class Xr extends Be {
1005
+ class eo extends He {
980
1006
  }
981
- class pa extends Ai {
1007
+ class ba extends Bi {
982
1008
  }
983
- class ga extends Zt {
1009
+ class La extends en {
984
1010
  }
985
- class fa extends ki {
1011
+ class Sa extends Fi {
986
1012
  }
987
- class ya extends De {
1013
+ class _a extends Oe {
988
1014
  }
989
- class va extends Ri {
1015
+ class Ma extends Hi {
990
1016
  }
991
- class Ea extends Ni {
1017
+ class Pa extends Gi {
992
1018
  }
993
- class Ca extends Bi {
1019
+ class xa extends Vi {
994
1020
  }
995
- const wa = st, Ta = Jt, Zr = (e) => {
996
- const n = le(), t = Se(null), [i, o] = x({ x: 0, y: 0 });
997
- return D(() => {
1021
+ const Ia = at, Da = tn, to = (e) => {
1022
+ const n = se(), t = Se(null), [i, o] = D({ x: 0, y: 0 });
1023
+ return I(() => {
998
1024
  n.screenSpaceEventHandler.setInputAction((r) => {
999
1025
  if (r != null && r.endPosition) {
1000
1026
  const c = { ...r.endPosition };
1001
1027
  c.x = Math.ceil(c.x), c.y = Math.ceil(c.y), o(c);
1002
1028
  }
1003
- }, Fi.MOUSE_MOVE);
1004
- }, [t, n]), D(() => {
1029
+ }, zi.MOUSE_MOVE);
1030
+ }, [t, n]), I(() => {
1005
1031
  const r = n.scene.globe.ellipsoid;
1006
1032
  if (i) {
1007
- const c = un(n, i.x, i.y);
1033
+ const c = pn(n, i.x, i.y);
1008
1034
  if (c) {
1009
- const u = new Xr(c.longitude, c.latitude);
1035
+ const u = new eo(c.longitude, c.latitude);
1010
1036
  if (t.current) {
1011
1037
  let m = "";
1012
1038
  switch (e.projection) {
1013
- case pe.WEB_MERCATOR: {
1014
- const E = new Hi(r).project(u);
1015
- m = `Mercator: ${E.y.toFixed(ut)}m, ${E.x.toFixed(
1016
- ut
1039
+ case ge.WEB_MERCATOR: {
1040
+ const E = new $i(r).project(u);
1041
+ m = `Mercator: ${E.y.toFixed(ht)}m, ${E.x.toFixed(
1042
+ ht
1017
1043
  )}m`, t.current.style.width = "220px";
1018
1044
  break;
1019
1045
  }
1020
- case pe.WGS84: {
1021
- const g = u.longitude.toFixed(dt);
1022
- m = `WGS84: ${u.latitude.toFixed(dt)}°N ${g}°E`, t.current.style.width = "200px";
1046
+ case ge.WGS84: {
1047
+ const p = u.longitude.toFixed(ut);
1048
+ m = `WGS84: ${u.latitude.toFixed(ut)}°N ${p}°E`, t.current.style.width = "200px";
1023
1049
  break;
1024
1050
  }
1025
1051
  }
@@ -1029,7 +1055,7 @@ const wa = st, Ta = Jt, Zr = (e) => {
1029
1055
  }
1030
1056
  }, [i, t, n, e.projection]), /* @__PURE__ */ l("div", { className: "trackerPosition", ref: t });
1031
1057
  };
1032
- const tt = [
1058
+ const nt = [
1033
1059
  1,
1034
1060
  2,
1035
1061
  3,
@@ -1062,39 +1088,39 @@ const tt = [
1062
1088
  2e7,
1063
1089
  3e7,
1064
1090
  5e7
1065
- ], Jr = (e, n, t, i) => {
1091
+ ], no = (e, n, t, i) => {
1066
1092
  const o = Z(i, "METERS_UNIT") ?? "m", r = Z(i, "KILOMETERS_UNIT") ?? "km", c = {
1067
1093
  barWidth: void 0,
1068
1094
  distanceLabel: void 0,
1069
1095
  lastLegendUpdate: n.lastLegendUpdate
1070
- }, u = new Gi(), m = new Date().getTime();
1096
+ }, u = new Ui(), m = new Date().getTime();
1071
1097
  if (m < c.lastLegendUpdate + 250)
1072
1098
  return;
1073
1099
  c.lastLegendUpdate = m;
1074
- const g = e.scene.canvas.clientWidth, E = e.scene.canvas.clientHeight, S = e.scene.camera.getPickRay(new Ce(g / 2 | 0, E - 1)), w = e.scene.camera.getPickRay(new Ce(1 + g / 2 | 0, E - 1)), P = e.scene.globe, R = P.pick(S, e.scene), G = P.pick(w, e.scene);
1075
- if (!R || !G)
1100
+ const p = e.scene.canvas.clientWidth, E = e.scene.canvas.clientHeight, L = e.scene.camera.getPickRay(new Ce(p / 2 | 0, E - 1)), w = e.scene.camera.getPickRay(new Ce(1 + p / 2 | 0, E - 1)), P = e.scene.globe, A = P.pick(L, e.scene), H = P.pick(w, e.scene);
1101
+ if (!A || !H)
1076
1102
  return;
1077
- const q = P.ellipsoid.cartesianToCartographic(R), H = P.ellipsoid.cartesianToCartographic(G);
1078
- u.setEndPoints(q, H);
1079
- const j = u.surfaceDistance, K = 100;
1103
+ const Y = P.ellipsoid.cartesianToCartographic(A), G = P.ellipsoid.cartesianToCartographic(H);
1104
+ u.setEndPoints(Y, G);
1105
+ const U = u.surfaceDistance, j = 100;
1080
1106
  let O;
1081
- for (let $ = tt.length - 1; !We(O) && $ >= 0; --$)
1082
- tt[$] / j < K && (O = tt[$]);
1083
- if (We(O)) {
1084
- let $ = "";
1085
- O >= 1e3 ? $ = `${(O / 1e3).toString()} ${r}` : $ = `${O.toString()} ${o}`, c.barWidth = O / j | 0, c.distanceLabel = $;
1107
+ for (let z = nt.length - 1; !Ue(O) && z >= 0; --z)
1108
+ nt[z] / U < j && (O = nt[z]);
1109
+ if (Ue(O)) {
1110
+ let z = "";
1111
+ O >= 1e3 ? z = `${(O / 1e3).toString()} ${r}` : z = `${O.toString()} ${o}`, c.barWidth = O / U | 0, c.distanceLabel = z;
1086
1112
  }
1087
1113
  t(c);
1088
- }, Qr = (e) => {
1089
- const n = le(), [t, i] = x({
1114
+ }, io = (e) => {
1115
+ const n = se(), [t, i] = D({
1090
1116
  barWidth: void 0,
1091
1117
  distanceLabel: void 0,
1092
1118
  lastLegendUpdate: -1
1093
1119
  });
1094
- D(() => {
1120
+ I(() => {
1095
1121
  const r = (m) => {
1096
- Jr(n, t, i, e.locale);
1097
- }, c = new Vi(), u = (m) => {
1122
+ no(n, t, i, e.locale);
1123
+ }, c = new Wi(), u = (m) => {
1098
1124
  n.scene.globe.tilesLoaded && (r(new MouseEvent("mouse")), c.removeAll());
1099
1125
  };
1100
1126
  return c.add(n.scene.globe.tileLoadProgressEvent, u), n.camera.moveEnd.addEventListener(r), () => {
@@ -1106,7 +1132,7 @@ const tt = [
1106
1132
  };
1107
1133
  }, [n, e.locale, t]);
1108
1134
  const o = (r) => 5 + (125 - r) / 2;
1109
- return /* @__PURE__ */ l("div", { className: "scalePosition", children: We(t.barWidth) && /* @__PURE__ */ N(te, { children: [
1135
+ return /* @__PURE__ */ l("div", { className: "scalePosition", children: Ue(t.barWidth) && /* @__PURE__ */ N(oe, { children: [
1110
1136
  /* @__PURE__ */ l("div", { className: "scale-tracker-label", children: /* @__PURE__ */ l("bdi", { children: t.distanceLabel }) }),
1111
1137
  /* @__PURE__ */ l(
1112
1138
  "div",
@@ -1120,30 +1146,30 @@ const tt = [
1120
1146
  }
1121
1147
  )
1122
1148
  ] }) });
1123
- }, oe = {
1124
- MORPHING: be.MORPHING,
1125
- COLUMBUS_VIEW: be.COLUMBUS_VIEW,
1126
- SCENE2D: be.SCENE2D,
1127
- SCENE3D: be.SCENE3D
1149
+ }, re = {
1150
+ MORPHING: Le.MORPHING,
1151
+ COLUMBUS_VIEW: Le.COLUMBUS_VIEW,
1152
+ SCENE2D: Le.SCENE2D,
1153
+ SCENE3D: Le.SCENE3D
1128
1154
  };
1129
- const Dt = (e, n) => {
1155
+ const At = (e, n) => {
1130
1156
  const i = Z(n.scene.globe, "_surface.tileProvider"), o = i._quadtree, r = n.canvas.height, c = Z(n.camera.frustum, "sseDenominator") ?? 1;
1131
1157
  for (let u = 0; u <= 19; u++)
1132
1158
  if (i.getLevelMaximumGeometricError(u) * r / (e * c) < o.maximumScreenSpaceError)
1133
1159
  return u;
1134
1160
  return null;
1135
- }, eo = (e, n) => {
1161
+ }, ro = (e, n) => {
1136
1162
  e = e || 10;
1137
1163
  const t = [];
1138
1164
  let i = 1e5, o = 0;
1139
1165
  for (let r = 1e8; r > i; r = r - i) {
1140
- const c = Dt(r, n);
1166
+ const c = At(r, n);
1141
1167
  if (c === null)
1142
1168
  break;
1143
1169
  if (c !== o) {
1144
1170
  let u = r, m = r + i;
1145
1171
  for (; m - u > e; )
1146
- r = u + (m - u) / 2, Dt(r, n) === c ? u = r : m = r;
1172
+ r = u + (m - u) / 2, At(r, n) === c ? u = r : m = r;
1147
1173
  t.push({
1148
1174
  level: c,
1149
1175
  height: Math.round(r)
@@ -1151,18 +1177,18 @@ const Dt = (e, n) => {
1151
1177
  }
1152
1178
  }
1153
1179
  return t;
1154
- }, to = ({ locale: e = void 0, valueBy: n = "RENDERED_TILES" }) => {
1155
- const t = le(), [i, o] = x(1), r = eo(1, t), c = me(() => {
1156
- const E = t.camera, S = 0.5;
1180
+ }, oo = ({ locale: e = void 0, valueBy: n = "RENDERED_TILES" }) => {
1181
+ const t = se(), [i, o] = D(1), r = ro(1, t), c = pe(() => {
1182
+ const E = t.camera, L = 0.5;
1157
1183
  let w = 0;
1158
1184
  switch (t.scene.mode) {
1159
- case oe.SCENE3D:
1185
+ case re.SCENE3D:
1160
1186
  w = t.scene.mapProjection.ellipsoid.cartesianToCartographic(E.positionWC).height;
1161
1187
  break;
1162
- case oe.SCENE2D:
1163
- w = (E.frustum.right - E.frustum.left) * S;
1188
+ case re.SCENE2D:
1189
+ w = (E.frustum.right - E.frustum.left) * L;
1164
1190
  break;
1165
- case oe.COLUMBUS_VIEW:
1191
+ case re.COLUMBUS_VIEW:
1166
1192
  w = E.position.z;
1167
1193
  break;
1168
1194
  default:
@@ -1170,149 +1196,149 @@ const Dt = (e, n) => {
1170
1196
  break;
1171
1197
  }
1172
1198
  if (r.length > 0) {
1173
- const P = r.reduce((R, G) => Math.abs(G.height - w) < Math.abs(R.height - w) ? G : R);
1199
+ const P = r.reduce((A, H) => Math.abs(H.height - w) < Math.abs(A.height - w) ? H : A);
1174
1200
  o(P.level);
1175
1201
  }
1176
- }, [t, r]), u = me(() => {
1202
+ }, [t, r]), u = pe(() => {
1177
1203
  let E = 0;
1178
- t.scene.globe._surface.forEachRenderedTile(function(S) {
1179
- E = Math.max(E, S.level);
1204
+ t.scene.globe._surface.forEachRenderedTile(function(L) {
1205
+ E = Math.max(E, L.level);
1180
1206
  }), o(E);
1181
- }, [t]), g = Re(() => ({
1207
+ }, [t]), p = Be(() => ({
1182
1208
  CALCULATION: c,
1183
1209
  RENDERED_TILES: u
1184
1210
  }), [c, u])[n];
1185
- return D(() => {
1211
+ return I(() => {
1186
1212
  const E = t.scene.globe.tileLoadProgressEvent.addEventListener(function() {
1187
- t.scene.globe.tilesLoaded && g();
1213
+ t.scene.globe.tilesLoaded && p();
1188
1214
  });
1189
- return t.camera.moveEnd.addEventListener(g), () => {
1215
+ return t.camera.moveEnd.addEventListener(p), () => {
1190
1216
  try {
1191
- typeof Z(t, "_cesiumWidget") < "u" && (t.camera.moveEnd.removeEventListener(g), E());
1192
- } catch (S) {
1193
- console.log('CESIUM camera "moveEnd"(from zoom tracker) remove listener failed', S);
1217
+ typeof Z(t, "_cesiumWidget") < "u" && (t.camera.moveEnd.removeEventListener(p), E());
1218
+ } catch (L) {
1219
+ console.log('CESIUM camera "moveEnd"(from zoom tracker) remove listener failed', L);
1194
1220
  }
1195
1221
  };
1196
- }, [t, g]), /* @__PURE__ */ N("div", { className: "zoomLevel", children: [
1222
+ }, [t, p]), /* @__PURE__ */ N("div", { className: "zoomLevel", children: [
1197
1223
  /* @__PURE__ */ l("div", { className: "zoomLevelValue", children: i }),
1198
1224
  /* @__PURE__ */ l("div", { className: "zoomLevelLabel", children: Z(e, "ZOOM_LABEL") ?? "zoom" })
1199
1225
  ] });
1200
1226
  };
1201
- const no = -1, io = (e) => {
1202
- const n = le(), [t, i] = x(), { sceneModes: o } = e, r = (c) => o.findIndex((u) => u === c) > no;
1203
- return D(() => {
1227
+ const so = -1, ao = (e) => {
1228
+ const n = se(), [t, i] = D(), { sceneModes: o } = e, r = (c) => o.findIndex((u) => u === c) > so;
1229
+ return I(() => {
1204
1230
  i(n.scene.mode);
1205
- }, []), /* @__PURE__ */ N(te, { children: [
1206
- r(oe.SCENE3D) && /* @__PURE__ */ l(
1207
- Oe,
1231
+ }, []), /* @__PURE__ */ N(oe, { children: [
1232
+ r(re.SCENE3D) && /* @__PURE__ */ l(
1233
+ _e,
1208
1234
  {
1209
- icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === oe.SCENE3D ? "mapViewCurrent" : ""}`, children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 64 64", children: /* @__PURE__ */ l("path", { d: "m 32.401392,4.9330437 c -7.087603,0 -14.096095,2.884602 -19.10793,7.8946843 -5.0118352,5.010083 -7.9296167,11.987468 -7.9296167,19.072999 0,7.085531 2.9177815,14.097848 7.9296167,19.107931 4.837653,4.835961 11.541408,7.631372 18.374354,7.82482 0.05712,0.01231 0.454119,0.139729 0.454119,0.139729 l 0.03493,-0.104797 c 0.08246,7.84e-4 0.162033,0.03493 0.244525,0.03493 0.08304,0 0.161515,-0.03414 0.244526,-0.03493 l 0.03493,0.104797 c 0,0 0.309474,-0.129487 0.349323,-0.139729 6.867765,-0.168094 13.582903,-2.965206 18.444218,-7.82482 2.558195,-2.5573 4.551081,-5.638134 5.903547,-8.977584 1.297191,-3.202966 2.02607,-6.661489 2.02607,-10.130347 0,-6.237309 -2.366261,-12.31219 -6.322734,-17.116794 -0.0034,-0.02316 0.0049,-0.04488 0,-0.06986 -0.01733,-0.08745 -0.104529,-0.278855 -0.104797,-0.279458 -5.31e-4,-0.0012 -0.522988,-0.628147 -0.523984,-0.62878 -3.47e-4,-2.2e-4 -0.133444,-0.03532 -0.244525,-0.06987 C 51.944299,13.447603 51.751076,13.104317 51.474391,12.827728 46.462556,7.8176457 39.488996,4.9330437 32.401392,4.9330437 z m -2.130866,3.5281554 0.104797,9.6762289 c -4.111695,-0.08361 -7.109829,-0.423664 -9.257041,-0.943171 1.198093,-2.269271 2.524531,-4.124404 3.91241,-5.414496 2.167498,-2.0147811 3.950145,-2.8540169 5.239834,-3.3185619 z m 2.794579,0 c 1.280302,0.4754953 3.022186,1.3285948 5.065173,3.2486979 1.424667,1.338973 2.788862,3.303645 3.982275,5.728886 -2.29082,0.403367 -5.381258,0.621049 -8.942651,0.698645 L 33.065105,8.4611991 z m 5.728886,0.2445256 c 4.004072,1.1230822 7.793098,3.1481363 10.724195,6.0782083 0.03468,0.03466 0.07033,0.06991 0.104797,0.104797 -0.45375,0.313891 -0.923054,0.663002 -1.956205,1.082899 -0.647388,0.263114 -1.906242,0.477396 -2.829511,0.733577 -1.382296,-2.988132 -3.027146,-5.368585 -4.785716,-7.0213781 -0.422866,-0.397432 -0.835818,-0.6453247 -1.25756,-0.9781032 z m -15.33525,0.7685092 c -0.106753,0.09503 -0.207753,0.145402 -0.31439,0.244526 -1.684973,1.5662541 -3.298068,3.8232211 -4.680919,6.5672591 -0.343797,-0.14942 -1.035052,-0.273198 -1.292493,-0.419186 -0.956528,-0.542427 -1.362964,-1.022024 -1.537018,-1.292493 -0.0241,-0.03745 -0.01868,-0.0401 -0.03493,-0.06986 2.250095,-2.163342 4.948824,-3.869984 7.859752,-5.0302421 z m -9.641296,7.0912431 c 0.464973,0.571618 0.937729,1.169056 1.956205,1.746612 0.349907,0.198425 1.107143,0.335404 1.537018,0.523983 -1.20166,3.172984 -1.998037,7.051901 -2.165798,11.772162 C 14.256557,30.361384 12.934823,30.161483 12.280427,29.90959 10.644437,29.279855 9.6888882,28.674891 9.1714586,28.267775 8.6540289,27.860658 8.6474751,27.778724 8.6474751,27.778724 l -0.069864,0.03493 C 9.3100294,23.691285 11.163248,19.798527 13.817445,16.565477 z m 37.552149,0.523984 c 2.548924,3.289983 4.265057,7.202594 4.890513,11.318043 -0.650428,0.410896 -1.756876,1.001936 -3.563088,1.606882 -1.171552,0.392383 -3.163859,0.759153 -4.960377,1.117832 -0.04367,-4.752703 -0.784809,-8.591423 -1.88634,-11.807094 0.917574,-0.263678 2.170552,-0.486495 2.864443,-0.76851 1.274693,-0.518066 2.003942,-1.001558 2.654849,-1.467153 z m -31.439008,2.619917 c 2.487341,0.672766 5.775813,1.137775 10.479669,1.222628 l 0.104797,10.689263 0,0.03493 0,0.733577 c -5.435005,-0.09059 -9.512219,-0.519044 -12.610536,-1.117831 0.106127,-4.776683 0.879334,-8.55791 2.02607,-11.562569 z m 23.264866,0.31439 c 1.073459,3.067541 1.833795,6.821314 1.816476,11.702298 -3.054474,0.423245 -7.062018,0.648559 -11.702298,0.698644 l 0,-0.838373 -0.104796,-10.654331 c 4.082416,-0.0864 7.404468,-0.403886 9.990618,-0.908238 z M 8.2632205,30.922625 c 0.7558676,0.510548 1.5529563,1.013339 3.0041715,1.57195 0.937518,0.360875 2.612202,0.647642 3.91241,0.978102 0.112814,3.85566 0.703989,7.107756 1.606883,9.920754 -1.147172,-0.324262 -2.644553,-0.640648 -3.423359,-0.978102 -1.516688,-0.657177 -2.386627,-1.287332 -2.864443,-1.71168 -0.477816,-0.424347 -0.489051,-0.489051 -0.489051,-0.489051 L 9.8002387,40.319395 C 8.791691,37.621767 8.1584238,34.769583 8.1584238,31.900727 c 0,-0.330153 0.090589,-0.648169 0.1047967,-0.978102 z m 48.2763445,0.419186 c 0.0047,0.188973 0.06986,0.36991 0.06986,0.558916 0,2.938869 -0.620228,5.873558 -1.676747,8.628261 -0.07435,0.07583 -0.06552,0.07411 -0.454119,0.349323 -0.606965,0.429857 -1.631665,1.042044 -3.318562,1.676747 -1.208528,0.454713 -3.204964,0.850894 -5.135038,1.25756 0.84593,-2.765726 1.41808,-6.005357 1.606883,-9.815957 2.232369,-0.413371 4.483758,-0.840201 5.938479,-1.327425 1.410632,-0.472457 2.153108,-0.89469 2.96924,-1.327425 z m -38.530252,2.864443 c 3.208141,0.56697 7.372279,0.898588 12.575603,0.978103 l 0.174662,9.885821 c -4.392517,-0.06139 -8.106722,-0.320566 -10.863925,-0.803441 -1.051954,-2.664695 -1.692909,-6.043794 -1.88634,-10.060483 z m 26.793022,0.31439 c -0.246298,3.923551 -0.877762,7.263679 -1.816476,9.885822 -2.561957,0.361954 -5.766249,0.560708 -9.431703,0.62878 l -0.174661,-9.815957 c 4.491734,-0.04969 8.334769,-0.293032 11.42284,-0.698645 z M 12.035901,44.860585 c 0.09977,0.04523 0.105535,0.09465 0.209594,0.139729 1.337656,0.579602 3.441099,1.058072 5.589157,1.537018 1.545042,3.399208 3.548524,5.969402 5.589157,7.789888 -3.034411,-1.215537 -5.871615,-3.007978 -8.174142,-5.309699 -1.245911,-1.245475 -2.271794,-2.662961 -3.213766,-4.156936 z m 40.69605,0 c -0.941972,1.493975 -1.967855,2.911461 -3.213765,4.156936 -2.74253,2.741571 -6.244106,4.696717 -9.955686,5.868615 0.261347,-0.241079 0.507495,-0.394491 0.768509,-0.663713 1.674841,-1.727516 3.320792,-4.181056 4.645987,-7.265904 2.962447,-0.503021 5.408965,-1.122293 7.161107,-1.781544 0.284034,-0.106865 0.337297,-0.207323 0.593848,-0.31439 z m -31.404076,2.305527 c 2.645807,0.376448 5.701178,0.649995 9.466635,0.698645 l 0.139729,7.789888 c -1.38739,-0.480844 -3.316218,-1.29837 -5.659022,-3.388427 -1.388822,-1.238993 -2.743668,-3.0113 -3.947342,-5.100106 z m 20.365491,0.104797 c -1.04872,2.041937 -2.174337,3.779068 -3.353494,4.995309 -1.853177,1.911459 -3.425515,2.82679 -4.611055,3.353494 l -0.139729,-7.789887 c 3.13091,-0.05714 5.728238,-0.278725 8.104278,-0.558916 z" }) }) }),
1235
+ icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === re.SCENE3D ? "mapViewCurrent" : ""}`, children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 64 64", children: /* @__PURE__ */ l("path", { d: "m 32.401392,4.9330437 c -7.087603,0 -14.096095,2.884602 -19.10793,7.8946843 -5.0118352,5.010083 -7.9296167,11.987468 -7.9296167,19.072999 0,7.085531 2.9177815,14.097848 7.9296167,19.107931 4.837653,4.835961 11.541408,7.631372 18.374354,7.82482 0.05712,0.01231 0.454119,0.139729 0.454119,0.139729 l 0.03493,-0.104797 c 0.08246,7.84e-4 0.162033,0.03493 0.244525,0.03493 0.08304,0 0.161515,-0.03414 0.244526,-0.03493 l 0.03493,0.104797 c 0,0 0.309474,-0.129487 0.349323,-0.139729 6.867765,-0.168094 13.582903,-2.965206 18.444218,-7.82482 2.558195,-2.5573 4.551081,-5.638134 5.903547,-8.977584 1.297191,-3.202966 2.02607,-6.661489 2.02607,-10.130347 0,-6.237309 -2.366261,-12.31219 -6.322734,-17.116794 -0.0034,-0.02316 0.0049,-0.04488 0,-0.06986 -0.01733,-0.08745 -0.104529,-0.278855 -0.104797,-0.279458 -5.31e-4,-0.0012 -0.522988,-0.628147 -0.523984,-0.62878 -3.47e-4,-2.2e-4 -0.133444,-0.03532 -0.244525,-0.06987 C 51.944299,13.447603 51.751076,13.104317 51.474391,12.827728 46.462556,7.8176457 39.488996,4.9330437 32.401392,4.9330437 z m -2.130866,3.5281554 0.104797,9.6762289 c -4.111695,-0.08361 -7.109829,-0.423664 -9.257041,-0.943171 1.198093,-2.269271 2.524531,-4.124404 3.91241,-5.414496 2.167498,-2.0147811 3.950145,-2.8540169 5.239834,-3.3185619 z m 2.794579,0 c 1.280302,0.4754953 3.022186,1.3285948 5.065173,3.2486979 1.424667,1.338973 2.788862,3.303645 3.982275,5.728886 -2.29082,0.403367 -5.381258,0.621049 -8.942651,0.698645 L 33.065105,8.4611991 z m 5.728886,0.2445256 c 4.004072,1.1230822 7.793098,3.1481363 10.724195,6.0782083 0.03468,0.03466 0.07033,0.06991 0.104797,0.104797 -0.45375,0.313891 -0.923054,0.663002 -1.956205,1.082899 -0.647388,0.263114 -1.906242,0.477396 -2.829511,0.733577 -1.382296,-2.988132 -3.027146,-5.368585 -4.785716,-7.0213781 -0.422866,-0.397432 -0.835818,-0.6453247 -1.25756,-0.9781032 z m -15.33525,0.7685092 c -0.106753,0.09503 -0.207753,0.145402 -0.31439,0.244526 -1.684973,1.5662541 -3.298068,3.8232211 -4.680919,6.5672591 -0.343797,-0.14942 -1.035052,-0.273198 -1.292493,-0.419186 -0.956528,-0.542427 -1.362964,-1.022024 -1.537018,-1.292493 -0.0241,-0.03745 -0.01868,-0.0401 -0.03493,-0.06986 2.250095,-2.163342 4.948824,-3.869984 7.859752,-5.0302421 z m -9.641296,7.0912431 c 0.464973,0.571618 0.937729,1.169056 1.956205,1.746612 0.349907,0.198425 1.107143,0.335404 1.537018,0.523983 -1.20166,3.172984 -1.998037,7.051901 -2.165798,11.772162 C 14.256557,30.361384 12.934823,30.161483 12.280427,29.90959 10.644437,29.279855 9.6888882,28.674891 9.1714586,28.267775 8.6540289,27.860658 8.6474751,27.778724 8.6474751,27.778724 l -0.069864,0.03493 C 9.3100294,23.691285 11.163248,19.798527 13.817445,16.565477 z m 37.552149,0.523984 c 2.548924,3.289983 4.265057,7.202594 4.890513,11.318043 -0.650428,0.410896 -1.756876,1.001936 -3.563088,1.606882 -1.171552,0.392383 -3.163859,0.759153 -4.960377,1.117832 -0.04367,-4.752703 -0.784809,-8.591423 -1.88634,-11.807094 0.917574,-0.263678 2.170552,-0.486495 2.864443,-0.76851 1.274693,-0.518066 2.003942,-1.001558 2.654849,-1.467153 z m -31.439008,2.619917 c 2.487341,0.672766 5.775813,1.137775 10.479669,1.222628 l 0.104797,10.689263 0,0.03493 0,0.733577 c -5.435005,-0.09059 -9.512219,-0.519044 -12.610536,-1.117831 0.106127,-4.776683 0.879334,-8.55791 2.02607,-11.562569 z m 23.264866,0.31439 c 1.073459,3.067541 1.833795,6.821314 1.816476,11.702298 -3.054474,0.423245 -7.062018,0.648559 -11.702298,0.698644 l 0,-0.838373 -0.104796,-10.654331 c 4.082416,-0.0864 7.404468,-0.403886 9.990618,-0.908238 z M 8.2632205,30.922625 c 0.7558676,0.510548 1.5529563,1.013339 3.0041715,1.57195 0.937518,0.360875 2.612202,0.647642 3.91241,0.978102 0.112814,3.85566 0.703989,7.107756 1.606883,9.920754 -1.147172,-0.324262 -2.644553,-0.640648 -3.423359,-0.978102 -1.516688,-0.657177 -2.386627,-1.287332 -2.864443,-1.71168 -0.477816,-0.424347 -0.489051,-0.489051 -0.489051,-0.489051 L 9.8002387,40.319395 C 8.791691,37.621767 8.1584238,34.769583 8.1584238,31.900727 c 0,-0.330153 0.090589,-0.648169 0.1047967,-0.978102 z m 48.2763445,0.419186 c 0.0047,0.188973 0.06986,0.36991 0.06986,0.558916 0,2.938869 -0.620228,5.873558 -1.676747,8.628261 -0.07435,0.07583 -0.06552,0.07411 -0.454119,0.349323 -0.606965,0.429857 -1.631665,1.042044 -3.318562,1.676747 -1.208528,0.454713 -3.204964,0.850894 -5.135038,1.25756 0.84593,-2.765726 1.41808,-6.005357 1.606883,-9.815957 2.232369,-0.413371 4.483758,-0.840201 5.938479,-1.327425 1.410632,-0.472457 2.153108,-0.89469 2.96924,-1.327425 z m -38.530252,2.864443 c 3.208141,0.56697 7.372279,0.898588 12.575603,0.978103 l 0.174662,9.885821 c -4.392517,-0.06139 -8.106722,-0.320566 -10.863925,-0.803441 -1.051954,-2.664695 -1.692909,-6.043794 -1.88634,-10.060483 z m 26.793022,0.31439 c -0.246298,3.923551 -0.877762,7.263679 -1.816476,9.885822 -2.561957,0.361954 -5.766249,0.560708 -9.431703,0.62878 l -0.174661,-9.815957 c 4.491734,-0.04969 8.334769,-0.293032 11.42284,-0.698645 z M 12.035901,44.860585 c 0.09977,0.04523 0.105535,0.09465 0.209594,0.139729 1.337656,0.579602 3.441099,1.058072 5.589157,1.537018 1.545042,3.399208 3.548524,5.969402 5.589157,7.789888 -3.034411,-1.215537 -5.871615,-3.007978 -8.174142,-5.309699 -1.245911,-1.245475 -2.271794,-2.662961 -3.213766,-4.156936 z m 40.69605,0 c -0.941972,1.493975 -1.967855,2.911461 -3.213765,4.156936 -2.74253,2.741571 -6.244106,4.696717 -9.955686,5.868615 0.261347,-0.241079 0.507495,-0.394491 0.768509,-0.663713 1.674841,-1.727516 3.320792,-4.181056 4.645987,-7.265904 2.962447,-0.503021 5.408965,-1.122293 7.161107,-1.781544 0.284034,-0.106865 0.337297,-0.207323 0.593848,-0.31439 z m -31.404076,2.305527 c 2.645807,0.376448 5.701178,0.649995 9.466635,0.698645 l 0.139729,7.789888 c -1.38739,-0.480844 -3.316218,-1.29837 -5.659022,-3.388427 -1.388822,-1.238993 -2.743668,-3.0113 -3.947342,-5.100106 z m 20.365491,0.104797 c -1.04872,2.041937 -2.174337,3.779068 -3.353494,4.995309 -1.853177,1.911459 -3.425515,2.82679 -4.611055,3.353494 l -0.139729,-7.789887 c 3.13091,-0.05714 5.728238,-0.278725 8.104278,-0.558916 z" }) }) }),
1210
1236
  onClick: () => {
1211
- n.scene.morphTo3D(), i(oe.SCENE3D);
1237
+ n.scene.morphTo3D(), i(re.SCENE3D);
1212
1238
  }
1213
1239
  }
1214
1240
  ),
1215
- r(oe.SCENE2D) && /* @__PURE__ */ l(
1216
- Oe,
1241
+ r(re.SCENE2D) && /* @__PURE__ */ l(
1242
+ _e,
1217
1243
  {
1218
- icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === oe.SCENE2D ? "mapViewCurrent" : ""}`, children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 64 64", children: /* @__PURE__ */ l("path", { d: "m 2.9825053,17.550598 0,1.368113 0,26.267766 0,1.368113 1.36811,0 54.9981397,0 1.36811,0 0,-1.368113 0,-26.267766 0,-1.368113 -1.36811,0 -54.9981397,0 -1.36811,0 z m 2.73623,2.736226 10.3292497,0 0,10.466063 -10.3292497,0 0,-10.466063 z m 13.0654697,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 10.32926,0 0,10.466063 -10.32926,0 0,-10.466063 z m -41.9326497,13.202288 10.3292497,0 0,10.329252 -10.3292497,0 0,-10.329252 z m 13.0654697,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 10.32926,0 0,10.329252 -10.32926,0 0,-10.329252 z" }) }) }),
1244
+ icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === re.SCENE2D ? "mapViewCurrent" : ""}`, children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 64 64", children: /* @__PURE__ */ l("path", { d: "m 2.9825053,17.550598 0,1.368113 0,26.267766 0,1.368113 1.36811,0 54.9981397,0 1.36811,0 0,-1.368113 0,-26.267766 0,-1.368113 -1.36811,0 -54.9981397,0 -1.36811,0 z m 2.73623,2.736226 10.3292497,0 0,10.466063 -10.3292497,0 0,-10.466063 z m 13.0654697,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 10.32926,0 0,10.466063 -10.32926,0 0,-10.466063 z m -41.9326497,13.202288 10.3292497,0 0,10.329252 -10.3292497,0 0,-10.329252 z m 13.0654697,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 10.32926,0 0,10.329252 -10.32926,0 0,-10.329252 z" }) }) }),
1219
1245
  onClick: () => {
1220
- n.scene.morphTo2D(), i(oe.SCENE2D);
1246
+ n.scene.morphTo2D(), i(re.SCENE2D);
1221
1247
  }
1222
1248
  }
1223
1249
  ),
1224
- r(oe.COLUMBUS_VIEW) && /* @__PURE__ */ l(
1225
- Oe,
1250
+ r(re.COLUMBUS_VIEW) && /* @__PURE__ */ l(
1251
+ _e,
1226
1252
  {
1227
- icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === oe.COLUMBUS_VIEW ? "mapViewCurrent" : ""}`, children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 64 64", children: /* @__PURE__ */ l("path", { d: "m 14.723969,17.675598 -0.340489,0.817175 -11.1680536,26.183638 -0.817175,1.872692 2.076986,0 54.7506996,0 2.07698,0 -0.81717,-1.872692 -11.16805,-26.183638 -0.34049,-0.817175 -0.91933,0 -32.414586,0 -0.919322,0 z m 1.838643,2.723916 6.196908,0 -2.928209,10.418977 -7.729111,0 4.460412,-10.418977 z m 9.02297,0 4.903049,0 0,10.418977 -7.831258,0 2.928209,-10.418977 z m 7.626964,0 5.584031,0 2.62176,10.418977 -8.205791,0 0,-10.418977 z m 8.410081,0 5.51593,0 4.46042,10.418977 -7.38863,0 -2.58772,-10.418977 z m -30.678091,13.142892 8.103649,0 -2.89416,10.282782 -9.6018026,0 4.3923136,-10.282782 z m 10.929711,0 8.614384,0 0,10.282782 -11.508544,0 2.89416,-10.282782 z m 11.338299,0 8.852721,0 2.58772,10.282782 -11.440441,0 0,-10.282782 z m 11.678781,0 7.86531,0 4.39231,10.282782 -9.6699,0 -2.58772,-10.282782 z" }) }) }),
1253
+ icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === re.COLUMBUS_VIEW ? "mapViewCurrent" : ""}`, children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 64 64", children: /* @__PURE__ */ l("path", { d: "m 14.723969,17.675598 -0.340489,0.817175 -11.1680536,26.183638 -0.817175,1.872692 2.076986,0 54.7506996,0 2.07698,0 -0.81717,-1.872692 -11.16805,-26.183638 -0.34049,-0.817175 -0.91933,0 -32.414586,0 -0.919322,0 z m 1.838643,2.723916 6.196908,0 -2.928209,10.418977 -7.729111,0 4.460412,-10.418977 z m 9.02297,0 4.903049,0 0,10.418977 -7.831258,0 2.928209,-10.418977 z m 7.626964,0 5.584031,0 2.62176,10.418977 -8.205791,0 0,-10.418977 z m 8.410081,0 5.51593,0 4.46042,10.418977 -7.38863,0 -2.58772,-10.418977 z m -30.678091,13.142892 8.103649,0 -2.89416,10.282782 -9.6018026,0 4.3923136,-10.282782 z m 10.929711,0 8.614384,0 0,10.282782 -11.508544,0 2.89416,-10.282782 z m 11.338299,0 8.852721,0 2.58772,10.282782 -11.440441,0 0,-10.282782 z m 11.678781,0 7.86531,0 4.39231,10.282782 -9.6699,0 -2.58772,-10.282782 z" }) }) }),
1228
1254
  onClick: () => {
1229
- n.scene.morphToColumbusView(), i(oe.COLUMBUS_VIEW);
1255
+ n.scene.morphToColumbusView(), i(re.COLUMBUS_VIEW);
1230
1256
  }
1231
1257
  }
1232
1258
  )
1233
1259
  ] });
1234
1260
  };
1235
- const ro = Ne(
1236
- (e) => je({
1261
+ const lo = Fe(
1262
+ (e) => Ke({
1237
1263
  mapContainer: {
1238
1264
  width: "60px",
1239
1265
  height: "60px",
1240
1266
  border: `${e.palette.background.paper} 2px solid`
1241
1267
  }
1242
1268
  })
1243
- ), oo = (e) => {
1244
- const n = le(), { baseMaps: t } = e, [i, o] = x(" "), [r, c] = x(), u = ro();
1245
- D(() => {
1246
- const g = t == null ? void 0 : t.maps.find((E) => E.isCurrent);
1247
- g && (c(g), o(g.title !== void 0 ? g.title : " "));
1269
+ ), co = (e) => {
1270
+ const n = se(), { baseMaps: t } = e, [i, o] = D(" "), [r, c] = D(), u = lo();
1271
+ I(() => {
1272
+ const p = t == null ? void 0 : t.maps.find((E) => E.isCurrent);
1273
+ p && (c(p), o(p.title !== void 0 ? p.title : " "));
1248
1274
  }, [t]);
1249
- const m = (g) => {
1250
- var E, S;
1275
+ const m = (p) => {
1276
+ var E, L;
1251
1277
  if (t) {
1252
1278
  (E = n.layersManager) == null || E.removeBaseMapLayers();
1253
- const w = t.maps.find((P) => P.id === g);
1254
- w && ((S = n.layersManager) == null || S.setBaseMapLayers(w), c(w), t.maps.forEach((P) => {
1279
+ const w = t.maps.find((P) => P.id === p);
1280
+ w && ((L = n.layersManager) == null || L.setBaseMapLayers(w), c(w), t.maps.forEach((P) => {
1255
1281
  P.isCurrent = w === P;
1256
1282
  }));
1257
1283
  }
1258
1284
  };
1259
- return /* @__PURE__ */ N(te, { children: [
1285
+ return /* @__PURE__ */ N(oe, { children: [
1260
1286
  /* @__PURE__ */ l("label", { className: "mapLabel", children: i }),
1261
- /* @__PURE__ */ l("ul", { className: "mapSelector", children: t == null ? void 0 : t.maps.map((g) => /* @__PURE__ */ l("li", { className: `mapContainer ${u.mapContainer} ${g === r ? "mapContainerSelected" : ""}`, children: /* @__PURE__ */ l(
1287
+ /* @__PURE__ */ l("ul", { className: "mapSelector", children: t == null ? void 0 : t.maps.map((p) => /* @__PURE__ */ l("li", { className: `mapContainer ${u.mapContainer} ${p === r ? "mapContainerSelected" : ""}`, children: /* @__PURE__ */ l(
1262
1288
  "img",
1263
1289
  {
1264
1290
  alt: "",
1265
1291
  className: "mapContainerImg",
1266
- src: g.thumbnail,
1292
+ src: p.thumbnail,
1267
1293
  onMouseOver: () => {
1268
- o(g.title);
1294
+ o(p.title);
1269
1295
  },
1270
1296
  onMouseOut: () => {
1271
1297
  o((r == null ? void 0 : r.title) !== void 0 ? r.title : " ");
1272
1298
  },
1273
1299
  onClick: () => {
1274
- m(g.id);
1300
+ m(p.id);
1275
1301
  }
1276
1302
  }
1277
- ) }, g.id)) })
1303
+ ) }, p.id)) })
1278
1304
  ] });
1279
1305
  };
1280
- const nt = "ic_settings_24px", so = (e) => {
1281
- const [n, t] = x(!1), { sceneModes: i, baseMaps: o, locale: r } = e, c = Se(null), u = Z(r, "MAP_SETTINGS_DIALOG_TITLE") ?? "Map Settings", m = Z(r, "MAP_SETTINGS_SCENE_MODE_TITLE") ?? "Scene Mode", g = Z(r, "MAP_SETTINGS_BASE_MAP_TITLE") ?? "Base Map";
1282
- return D(() => {
1283
- const E = (S) => {
1284
- var R;
1285
- const w = S.target, P = Z(c, "current");
1286
- P && !P.contains(w) && w.id !== nt && ((R = w.parentElement) == null ? void 0 : R.id) !== nt && (document.removeEventListener("click", E, !1), t(!1));
1306
+ const it = "ic_settings_24px", uo = (e) => {
1307
+ const [n, t] = D(!1), { sceneModes: i, baseMaps: o, locale: r } = e, c = Se(null), u = Z(r, "MAP_SETTINGS_DIALOG_TITLE") ?? "Map Settings", m = Z(r, "MAP_SETTINGS_SCENE_MODE_TITLE") ?? "Scene Mode", p = Z(r, "MAP_SETTINGS_BASE_MAP_TITLE") ?? "Base Map";
1308
+ return I(() => {
1309
+ const E = (L) => {
1310
+ var A;
1311
+ const w = L.target, P = Z(c, "current");
1312
+ P && !P.contains(w) && w.id !== it && ((A = w.parentElement) == null ? void 0 : A.id) !== it && (document.removeEventListener("click", E, !1), t(!1));
1287
1313
  };
1288
1314
  return document.addEventListener("click", E, !1), () => {
1289
1315
  document.removeEventListener("click", E, !1);
1290
1316
  };
1291
- }), /* @__PURE__ */ N(te, { children: [
1317
+ }), /* @__PURE__ */ N(oe, { children: [
1292
1318
  /* @__PURE__ */ l(
1293
- Oe,
1319
+ _e,
1294
1320
  {
1295
- icon: /* @__PURE__ */ l("div", { className: "settingsIconContainer", children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 24 24", id: nt, x: "288", y: "24", children: /* @__PURE__ */ l("path", { d: "M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.488.488 0 0 0 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z" }) }) }),
1321
+ icon: /* @__PURE__ */ l("div", { className: "settingsIconContainer", children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 24 24", id: it, x: "288", y: "24", children: /* @__PURE__ */ l("path", { d: "M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.488.488 0 0 0 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z" }) }) }),
1296
1322
  onClick: () => {
1297
1323
  t(!n);
1298
1324
  }
1299
1325
  }
1300
1326
  ),
1301
1327
  n && /* @__PURE__ */ l("div", { id: "dialog-portal-example", className: "settingsDialogPortal", ref: c, children: /* @__PURE__ */ N(
1302
- Rn,
1328
+ Fn,
1303
1329
  {
1304
1330
  open: n,
1305
1331
  onClosed: () => {
1306
1332
  t(!1);
1307
1333
  },
1308
1334
  children: [
1309
- /* @__PURE__ */ l(Nn, { children: u }),
1310
- /* @__PURE__ */ N(Bn, { children: [
1335
+ /* @__PURE__ */ l(Hn, { children: u }),
1336
+ /* @__PURE__ */ N(Gn, { children: [
1311
1337
  /* @__PURE__ */ l("h4", { className: "sectionLabel", children: m }),
1312
- /* @__PURE__ */ l(ce, { className: "mapScenesContainer", children: /* @__PURE__ */ l(io, { sceneModes: i }) }),
1313
- /* @__PURE__ */ l(ce, { className: "baseMapsContainer", children: o && /* @__PURE__ */ N(te, { children: [
1314
- /* @__PURE__ */ l("h4", { className: "sectionLabel", children: g }),
1315
- /* @__PURE__ */ l(oo, { baseMaps: o })
1338
+ /* @__PURE__ */ l(de, { className: "mapScenesContainer", children: /* @__PURE__ */ l(ao, { sceneModes: i }) }),
1339
+ /* @__PURE__ */ l(de, { className: "baseMapsContainer", children: o && /* @__PURE__ */ N(oe, { children: [
1340
+ /* @__PURE__ */ l("h4", { className: "sectionLabel", children: p }),
1341
+ /* @__PURE__ */ l(co, { baseMaps: o })
1316
1342
  ] }) })
1317
1343
  ] })
1318
1344
  ]
@@ -1320,140 +1346,166 @@ const nt = "ic_settings_24px", so = (e) => {
1320
1346
  ) })
1321
1347
  ] });
1322
1348
  };
1323
- const ao = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enableBackground: "new 0 0 24 24", height: "24", width: "24", viewBox: "0 0 612 612", children: /* @__PURE__ */ N("g", { xmlns: "http://www.w3.org/2000/svg", children: [
1349
+ const ho = () => {
1350
+ const e = se();
1351
+ return /* @__PURE__ */ l("div", { className: "zoom-buttons-container", children: [
1352
+ { onClick: () => e.camera.zoomIn(), iconPath: "M48 20h-18v-18h-10v18h-18v10h18v18h10v-18h18z" },
1353
+ { onClick: () => e.camera.zoomOut(), iconPath: "M2 20h46v10h-46z" }
1354
+ ].map((t) => /* @__PURE__ */ l(
1355
+ _e,
1356
+ {
1357
+ icon: /* @__PURE__ */ l("div", { className: "zoom-button", children: /* @__PURE__ */ l(
1358
+ "svg",
1359
+ {
1360
+ fill: "#fff",
1361
+ width: "10px",
1362
+ height: "10px",
1363
+ viewBox: "0 -20 50 50",
1364
+ version: "1.2",
1365
+ baseProfile: "tiny",
1366
+ xmlns: "http://www.w3.org/2000/svg",
1367
+ overflow: "inherit",
1368
+ children: /* @__PURE__ */ l("path", { d: t.iconPath })
1369
+ }
1370
+ ) }),
1371
+ onClick: t.onClick
1372
+ }
1373
+ )) });
1374
+ };
1375
+ const mo = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enableBackground: "new 0 0 24 24", height: "24", width: "24", viewBox: "0 0 612 612", children: /* @__PURE__ */ N("g", { xmlns: "http://www.w3.org/2000/svg", children: [
1324
1376
  /* @__PURE__ */ l("path", { d: "M322.4,173.9l-129,16.2l-4.6,21.4l25.3,4.7c16.5,3.9,19.8,9.9,16.2,26.4l-41.5,195.3c-10.9,50.5,5.9,74.3,45.5,74.3 c30.7,0,66.3-14.2,82.5-33.6l4.9-23.4c-11.3,9.9-27.7,13.9-38.6,13.9c-15.5,0-21.1-10.9-17.1-30L322.4,173.9z" }),
1325
1377
  /* @__PURE__ */ l("circle", { cx: "270.1", cy: "56.3", r: "56.3" })
1326
- ] }) }), lo = ({ onClick: e }) => /* @__PURE__ */ l(ce, { onClick: e, className: "mapLegendToggleContainer", children: /* @__PURE__ */ l(Oe, { icon: ao, className: "mapLegendIcon" }) }), co = ({ legend: { legendImg: e, legendDoc: n, layer: t }, docText: i, imgText: o }) => {
1327
- const r = me(() => {
1378
+ ] }) }), po = ({ onClick: e }) => /* @__PURE__ */ l(de, { onClick: e, className: "mapLegendToggleContainer", children: /* @__PURE__ */ l(_e, { icon: mo, className: "mapLegendIcon" }) }), go = ({ legend: { legendImg: e, legendDoc: n, layer: t }, docText: i, imgText: o }) => {
1379
+ const r = pe(() => {
1328
1380
  window.open(e, "_blank");
1329
1381
  }, [e]);
1330
- me(() => {
1382
+ pe(() => {
1331
1383
  window.open(n, "_blank");
1332
1384
  }, [n]);
1333
- const c = me(() => {
1334
- const g = /* @__PURE__ */ l(ce, { className: "layerNameContainer", children: /* @__PURE__ */ l("h3", { style: { maxWidth: `${15}ch` }, className: "layerName", children: t }) });
1335
- return (t ?? "").length > 15 ? /* @__PURE__ */ l(ot, { content: t, children: g }) : g;
1336
- }, [t]), u = me(() => [
1385
+ const c = pe(() => {
1386
+ const p = /* @__PURE__ */ l(de, { className: "layerNameContainer", children: /* @__PURE__ */ l("h3", { style: { maxWidth: `${15}ch` }, className: "layerName", children: t }) });
1387
+ return (t ?? "").length > 15 ? /* @__PURE__ */ l(st, { content: t, children: p }) : p;
1388
+ }, [t]), u = pe(() => [
1337
1389
  typeof e == "string" && /* @__PURE__ */ l("a", { className: "legendAction", href: e, target: "_blank", rel: "noreferrer", children: o }),
1338
1390
  typeof n == "string" && /* @__PURE__ */ l("a", { className: "legendAction", href: n, target: "_blank", rel: "noreferrer", children: i })
1339
1391
  ], [e, o, n, i]);
1340
- return /* @__PURE__ */ N(ce, { className: "mapLegend", children: [
1392
+ return /* @__PURE__ */ N(de, { className: "mapLegend", children: [
1341
1393
  c(),
1342
1394
  /* @__PURE__ */ l("img", { alt: "Map Legend", className: "legendImg", src: e, onClick: r }),
1343
- /* @__PURE__ */ l(ce, { className: "legendActionsContainer", children: u() })
1395
+ /* @__PURE__ */ l(de, { className: "legendActionsContainer", children: u() })
1344
1396
  ] });
1345
- }, uo = ({ legends: e, actionsTexts: { docText: n, imgText: t }, noLegendsText: i }) => {
1346
- const o = me(() => /* @__PURE__ */ l(ce, { className: "noLegendsContainer", children: /* @__PURE__ */ l("h2", { className: "noLegendsMsg", children: i }) }), [i]), r = me(() => e.length ? e.map((c, u) => /* @__PURE__ */ l(co, { legend: c, docText: n, imgText: t }, `${c.layer}_${u}`)) : o(), [e]);
1347
- return /* @__PURE__ */ l(ce, { className: "mapLegendsList", children: r() });
1348
- }, ho = ({
1397
+ }, fo = ({ legends: e, actionsTexts: { docText: n, imgText: t }, noLegendsText: i }) => {
1398
+ const o = pe(() => /* @__PURE__ */ l(de, { className: "noLegendsContainer", children: /* @__PURE__ */ l("h2", { className: "noLegendsMsg", children: i }) }), [i]), r = pe(() => e.length ? e.map((c, u) => /* @__PURE__ */ l(go, { legend: c, docText: n, imgText: t }, `${c.layer}_${u}`)) : o(), [e]);
1399
+ return /* @__PURE__ */ l(de, { className: "mapLegendsList", children: r() });
1400
+ }, yo = ({
1349
1401
  isOpen: e,
1350
1402
  toggleSidebar: n,
1351
1403
  title: t = "Map Legends",
1352
1404
  noLegendsText: i = "No legends to display...",
1353
1405
  actionsTexts: o = { docText: "Docs", imgText: "View Image" },
1354
1406
  legends: r = []
1355
- }) => e ? /* @__PURE__ */ N(Fn, { className: "mapLegendSidebarContainer", modal: !1, dismissible: !0, open: e, children: [
1356
- /* @__PURE__ */ l(Hn, { className: "sidebarHeaderContainer", children: /* @__PURE__ */ l(Vn, { className: "sidebarTitle", children: t }) }),
1357
- /* @__PURE__ */ N(Gn, { className: "sidebarContent", children: [
1358
- /* @__PURE__ */ l(Oe, { onClick: n, className: "mapLegendCloseBtn", icon: { icon: "close", size: "small" } }),
1359
- /* @__PURE__ */ l(uo, { noLegendsText: i, legends: r, actionsTexts: o })
1407
+ }) => e ? /* @__PURE__ */ N(Vn, { className: "mapLegendSidebarContainer", modal: !1, dismissible: !0, open: e, children: [
1408
+ /* @__PURE__ */ l(zn, { className: "sidebarHeaderContainer", children: /* @__PURE__ */ l($n, { className: "sidebarTitle", children: t }) }),
1409
+ /* @__PURE__ */ N(Wn, { className: "sidebarContent", children: [
1410
+ /* @__PURE__ */ l(_e, { onClick: n, className: "mapLegendCloseBtn", icon: { icon: "close", size: "small" } }),
1411
+ /* @__PURE__ */ l(fo, { noLegendsText: i, legends: r, actionsTexts: o })
1360
1412
  ] })
1361
- ] }) : null, he = document.createElement("canvas"), re = he.getContext("2d"), xt = (e) => {
1413
+ ] }) : null, me = document.createElement("canvas"), ie = me.getContext("2d"), kt = (e) => {
1362
1414
  const i = (e == null ? void 0 : e.data) ?? [];
1363
1415
  for (let o = 3; o < i.length; o += 4)
1364
1416
  if (i[o] < 255)
1365
1417
  return !0;
1366
1418
  return !1;
1367
- }, mo = async (e, n) => (n && n.tileTransparencyCheckedCounter++, new Promise((t, i) => {
1419
+ }, vo = async (e, n) => (n && n.tileTransparencyCheckedCounter++, new Promise((t, i) => {
1368
1420
  try {
1369
- re == null || re.clearRect(0, 0, he.width, he.height);
1421
+ ie == null || ie.clearRect(0, 0, me.width, me.height);
1370
1422
  let o;
1371
1423
  if (e instanceof HTMLImageElement)
1372
1424
  o = e;
1373
1425
  else if (e instanceof ImageBitmap) {
1374
- he.width = e.width, he.height = e.height, re == null || re.drawImage(e, 0, 0);
1375
- const r = re == null ? void 0 : re.getImageData(0, 0, he.width, he.height), c = xt(r);
1426
+ me.width = e.width, me.height = e.height, ie == null || ie.drawImage(e, 0, 0);
1427
+ const r = ie == null ? void 0 : ie.getImageData(0, 0, me.width, me.height), c = kt(r);
1376
1428
  c && n && (n.tileTransparencyCheckedCounter = n.maxTilesForTransparencyCheck), t(c);
1377
1429
  return;
1378
1430
  } else
1379
1431
  o = new Image(), o.crossOrigin = "anonymous", o.src = e;
1380
1432
  o.onload = () => {
1381
- he.width = o.width, he.height = o.height, re == null || re.drawImage(o, 0, 0);
1382
- const r = re == null ? void 0 : re.getImageData(0, 0, he.width, he.height);
1383
- xt(r) ? (n && (n.tileTransparencyCheckedCounter = n.maxTilesForTransparencyCheck), t(!0)) : t(!1);
1433
+ me.width = o.width, me.height = o.height, ie == null || ie.drawImage(o, 0, 0);
1434
+ const r = ie == null ? void 0 : ie.getImageData(0, 0, me.width, me.height);
1435
+ kt(r) ? (n && (n.tileTransparencyCheckedCounter = n.maxTilesForTransparencyCheck), t(!0)) : t(!1);
1384
1436
  };
1385
1437
  } catch (o) {
1386
1438
  console.error("Could not determine image transparency. Error => ", o), i(o);
1387
1439
  }
1388
1440
  })), Ve = (e, n) => {
1389
- const { west: t, east: i, north: o, south: r } = e, { west: c, east: u, north: m, south: g } = n;
1390
- return t >= c && i <= u && o <= m && r >= g;
1391
- }, qe = 3, Ue = "hasTransparency";
1392
- function gt(e, n, t, i, o) {
1441
+ const { west: t, east: i, north: o, south: r } = e, { west: c, east: u, north: m, south: p } = n;
1442
+ return t >= c && i <= u && o <= m && r >= p;
1443
+ }, Ye = 3, je = "hasTransparency";
1444
+ function ft(e, n, t, i, o) {
1393
1445
  return setTimeout(() => {
1394
1446
  var u;
1395
1447
  const r = (u = this.layerListInstance.find(
1396
1448
  /* eslint-disable */
1397
1449
  (m) => {
1398
- var g, E;
1399
- return ((g = m._imageryProvider._resource) == null ? void 0 : g._url) === ((E = this._resource) == null ? void 0 : E._url);
1450
+ var p, E;
1451
+ return ((p = m._imageryProvider._resource) == null ? void 0 : p._url) === ((E = this._resource) == null ? void 0 : E._url);
1400
1452
  }
1401
1453
  /* eslint-enable */
1402
- )) == null ? void 0 : u.meta, c = Z(r, Ue) === !0;
1403
- this.tileTransparencyCheckedCounter < qe && !c && mo(o == null ? void 0 : o.url, this).then((m) => {
1404
- var g;
1405
- (g = this.mapViewer.layersManager) == null || g.addMetaToLayer(
1406
- { [Ue]: m },
1454
+ )) == null ? void 0 : u.meta, c = Z(r, je) === !0;
1455
+ this.tileTransparencyCheckedCounter < Ye && !c && vo(o == null ? void 0 : o.url, this).then((m) => {
1456
+ var p;
1457
+ (p = this.mapViewer.layersManager) == null || p.addMetaToLayer(
1458
+ { [je]: m },
1407
1459
  /* eslint-disable */
1408
1460
  (E) => E._imageryProvider._resource._url === this._resource._url
1409
1461
  );
1410
1462
  });
1411
1463
  }, 0), e(n, t, i, o);
1412
1464
  }
1413
- class hn extends ht {
1465
+ class gn extends mt {
1414
1466
  constructor(t, i) {
1415
1467
  var o;
1416
1468
  super(t);
1417
1469
  X(this, "layerListInstance");
1418
1470
  X(this, "mapViewer");
1419
- X(this, "maxTilesForTransparencyCheck", qe);
1471
+ X(this, "maxTilesForTransparencyCheck", Ye);
1420
1472
  X(this, "tileTransparencyCheckedCounter", 0);
1421
1473
  this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
1422
1474
  }
1423
1475
  requestImage(t, i, o, r) {
1424
- return gt.call(this, super.requestImage.bind(this), t, i, o, r);
1476
+ return ft.call(this, super.requestImage.bind(this), t, i, o, r);
1425
1477
  }
1426
1478
  }
1427
- class mn extends mt {
1479
+ class fn extends pt {
1428
1480
  constructor(t, i) {
1429
1481
  var o;
1430
1482
  super(t);
1431
1483
  X(this, "layerListInstance");
1432
1484
  X(this, "mapViewer");
1433
- X(this, "maxTilesForTransparencyCheck", qe);
1485
+ X(this, "maxTilesForTransparencyCheck", Ye);
1434
1486
  X(this, "tileTransparencyCheckedCounter", 0);
1435
1487
  this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
1436
1488
  }
1437
1489
  requestImage(t, i, o, r) {
1438
- return gt.call(this, super.requestImage.bind(this), t, i, o, r);
1490
+ return ft.call(this, super.requestImage.bind(this), t, i, o, r);
1439
1491
  }
1440
1492
  }
1441
- class pn extends pt {
1493
+ class yn extends gt {
1442
1494
  constructor(t, i) {
1443
1495
  var o;
1444
1496
  super(t);
1445
1497
  X(this, "layerListInstance");
1446
1498
  X(this, "mapViewer");
1447
- X(this, "maxTilesForTransparencyCheck", qe);
1499
+ X(this, "maxTilesForTransparencyCheck", Ye);
1448
1500
  X(this, "tileTransparencyCheckedCounter", 0);
1449
1501
  this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
1450
1502
  }
1451
1503
  requestImage(t, i, o, r) {
1452
- return gt.call(this, super.requestImage.bind(this), t, i, o, r);
1504
+ return ft.call(this, super.requestImage.bind(this), t, i, o, r);
1453
1505
  }
1454
1506
  }
1455
- const po = 1, go = -1, Ot = "TRANSPARENT_BASE_LAYER";
1456
- class fo {
1507
+ const Eo = 1, Co = -1, Rt = "TRANSPARENT_BASE_LAYER";
1508
+ class wo {
1457
1509
  constructor(n, t, i, o) {
1458
1510
  X(this, "mapViewer");
1459
1511
  X(this, "legendsList");
@@ -1461,9 +1513,9 @@ class fo {
1461
1513
  X(this, "layers");
1462
1514
  X(this, "legendsExtractor");
1463
1515
  X(this, "layerManagerFootprintMetaFieldPath");
1464
- this.mapViewer = n, this.layers = this.mapViewer.imageryLayers._layers, this.legendsList = [], this.legendsExtractor = t, this.layerUpdated = new zi(), this.layerManagerFootprintMetaFieldPath = o, i && this.layerUpdated.addEventListener(i, this), this.mapViewer.shouldOptimizedTileRequests && (this.layerUpdated.addEventListener((r) => {
1516
+ this.mapViewer = n, this.layers = this.mapViewer.imageryLayers._layers, this.legendsList = [], this.legendsExtractor = t, this.layerUpdated = new ji(), this.layerManagerFootprintMetaFieldPath = o, i && this.layerUpdated.addEventListener(i, this), this.mapViewer.shouldOptimizedTileRequests && (this.layerUpdated.addEventListener((r) => {
1465
1517
  const c = Object.keys(r);
1466
- c.length === 1 && c[0] === Ue && (this.markRelevantLayersForExtent(), this.hideNonRelevantLayers());
1518
+ c.length === 1 && c[0] === je && (this.markRelevantLayersForExtent(), this.hideNonRelevantLayers());
1467
1519
  }), this.mapViewer.imageryLayers.layerRemoved.addEventListener(() => {
1468
1520
  this.setLegends(), this.markRelevantLayersForExtent(), this.hideNonRelevantLayers();
1469
1521
  }), this.mapViewer.imageryLayers.layerMoved.addEventListener(() => {
@@ -1488,23 +1540,23 @@ class fo {
1488
1540
  setBaseMapLayers(n) {
1489
1541
  n.baseRasteLayers.sort((i, o) => i.zIndex - o.zIndex).forEach((i, o) => {
1490
1542
  this.addRasterLayer(i, o, n.id);
1491
- }), this.mapViewer.shouldOptimizedTileRequests && (this.removeLayer(Ot), this.addTransparentImageryProvider());
1543
+ }), this.mapViewer.shouldOptimizedTileRequests && (this.removeLayer(Rt), this.addTransparentImageryProvider());
1492
1544
  }
1493
1545
  addRasterLayer(n, t, i) {
1494
1546
  let o;
1495
1547
  switch (n.type) {
1496
1548
  case "XYZ_LAYER": {
1497
- const r = n.options, c = this.mapViewer.shouldOptimizedTileRequests ? new hn(r, this.mapViewer) : new ht(r);
1549
+ const r = n.options, c = this.mapViewer.shouldOptimizedTileRequests ? new gn(r, this.mapViewer) : new mt(r);
1498
1550
  o = this.mapViewer.imageryLayers.addImageryProvider(c, t);
1499
1551
  break;
1500
1552
  }
1501
1553
  case "WMS_LAYER": {
1502
- const r = n.options, c = this.mapViewer.shouldOptimizedTileRequests ? new mn(r, this.mapViewer) : new mt(r);
1554
+ const r = n.options, c = this.mapViewer.shouldOptimizedTileRequests ? new fn(r, this.mapViewer) : new pt(r);
1503
1555
  o = this.mapViewer.imageryLayers.addImageryProvider(c, t);
1504
1556
  break;
1505
1557
  }
1506
1558
  case "WMTS_LAYER": {
1507
- const r = n.options, c = this.mapViewer.shouldOptimizedTileRequests ? new pn(r, this.mapViewer) : new pt(r);
1559
+ const r = n.options, c = this.mapViewer.shouldOptimizedTileRequests ? new yn(r, this.mapViewer) : new gt(r);
1508
1560
  o = this.mapViewer.imageryLayers.addImageryProvider(c, t);
1509
1561
  break;
1510
1562
  }
@@ -1576,33 +1628,33 @@ class fo {
1576
1628
  }
1577
1629
  findLayerByPOI(n, t, i = !0) {
1578
1630
  if (this.layerManagerFootprintMetaFieldPath) {
1579
- const o = Yr(this.mapViewer, n, t);
1631
+ const o = Qr(this.mapViewer, n, t);
1580
1632
  return this.layers.filter((u) => !Z(u.meta, "parentBasetMapId")).filter((u) => {
1581
1633
  const m = Z(u.meta, this.layerManagerFootprintMetaFieldPath);
1582
- return m !== void 0 ? Ji(o.geometry, {
1634
+ return m !== void 0 ? nr(o.geometry, {
1583
1635
  type: "Feature",
1584
1636
  properties: {},
1585
1637
  geometry: m
1586
1638
  }) && (i ? u.show : !0) : (console.warn("[LayerManager] [findLayerByPOI] CesiumImageryLayer has no defined footprint", u.meta), !1);
1587
1639
  }).sort((u, m) => {
1588
- var g, E;
1589
- return ((g = m.meta) == null ? void 0 : g.zIndex) - ((E = u.meta) == null ? void 0 : E.zIndex);
1640
+ var p, E;
1641
+ return ((p = m.meta) == null ? void 0 : p.zIndex) - ((E = u.meta) == null ? void 0 : E.zIndex);
1590
1642
  });
1591
1643
  } else
1592
1644
  return console.warn("[LayerManager] [findLayerByPOI]layerManagerFootprintMetaFieldPath is not defined"), [];
1593
1645
  }
1594
1646
  addTransparentImageryProvider() {
1595
1647
  const n = this.mapViewer.imageryLayers.addImageryProvider(
1596
- new $i({
1648
+ new Ki({
1597
1649
  url: "./assets/img/transparent-tile.png",
1598
1650
  /* eslint-disable @typescript-eslint/no-magic-numbers */
1599
- rectangle: new De(-3.141592653589793, -1.5707963267948966, 3.141592653589793, 1.5707963267948966)
1651
+ rectangle: new Oe(-3.141592653589793, -1.5707963267948966, 3.141592653589793, 1.5707963267948966)
1600
1652
  /* eslint-enable @typescript-eslint/no-magic-numbers */
1601
1653
  }),
1602
1654
  0
1603
1655
  );
1604
1656
  n.meta = {
1605
- id: Ot,
1657
+ id: Rt,
1606
1658
  skipRelevancyCheck: !0,
1607
1659
  parentBasetMapId: "TRANSPARENT_LAYER"
1608
1660
  };
@@ -1617,11 +1669,11 @@ class fo {
1617
1669
  return this.layers.find((t) => t.meta !== void 0 ? t.meta.id === n : !1);
1618
1670
  }
1619
1671
  updateLayersOrder(n, t, i) {
1620
- const o = t > i ? po : go, r = t < i ? t : i, c = t < i ? i : t;
1672
+ const o = t > i ? Eo : Co, r = t < i ? t : i, c = t < i ? i : t;
1621
1673
  this.layers.forEach((u) => {
1622
- var g;
1674
+ var p;
1623
1675
  if (!Z(u.meta, "parentBasetMapId")) {
1624
- const E = (g = u.meta) == null ? void 0 : g.zIndex;
1676
+ const E = (p = u.meta) == null ? void 0 : p.zIndex;
1625
1677
  u.meta.zIndex = E >= r && E <= c && E !== t ? E + o : E === t ? i : E;
1626
1678
  }
1627
1679
  });
@@ -1636,17 +1688,17 @@ class fo {
1636
1688
  try {
1637
1689
  const i = this.mapViewer.camera.computeViewRectangle();
1638
1690
  for (let o = this.layers.length - 1; o >= 0; o--) {
1639
- const r = this.layers[o], c = !lt(i) && !lt(r.rectangle) && De.intersection(i, r.rectangle);
1691
+ const r = this.layers[o], c = !ct(i) && !ct(r.rectangle) && Oe.intersection(i, r.rectangle);
1640
1692
  for (let u = this.layers.length - 1; u >= o; u--) {
1641
1693
  if (((n = r.meta) == null ? void 0 : n.skipRelevancyCheck) === !0) {
1642
1694
  r.meta = { ...r.meta, relevantToExtent: !0 };
1643
1695
  continue;
1644
1696
  }
1645
- const m = this.layers[u], g = ((t = m.meta) == null ? void 0 : t[Ue]) === !0;
1697
+ const m = this.layers[u], p = ((t = m.meta) == null ? void 0 : t[je]) === !0;
1646
1698
  if (r !== m)
1647
- if (c instanceof De) {
1699
+ if (c instanceof Oe) {
1648
1700
  if (Ve(i, r.rectangle))
1649
- if (Ve(i, m.rectangle) && !g) {
1701
+ if (Ve(i, m.rectangle) && !p) {
1650
1702
  r.meta = {
1651
1703
  ...r.meta ?? {},
1652
1704
  relevantToExtent: !1
@@ -1657,15 +1709,15 @@ class fo {
1657
1709
  ...r.meta ?? {},
1658
1710
  relevantToExtent: !0
1659
1711
  };
1660
- if (Ve(i, m.rectangle) && !g) {
1712
+ if (Ve(i, m.rectangle) && !p) {
1661
1713
  r.meta = { ...r.meta ?? {}, relevantToExtent: !1 };
1662
1714
  break;
1663
1715
  }
1664
1716
  if (Ve(r.rectangle, m.rectangle)) {
1665
1717
  if (r.meta = {
1666
1718
  ...r.meta ?? {},
1667
- relevantToExtent: g
1668
- }, !g)
1719
+ relevantToExtent: p
1720
+ }, !p)
1669
1721
  break;
1670
1722
  } else
1671
1723
  r.meta = { ...r.meta ?? {}, relevantToExtent: !0 };
@@ -1674,7 +1726,7 @@ class fo {
1674
1726
  else
1675
1727
  o === this.layers.length - 1 && (r.meta = {
1676
1728
  ...r.meta ?? {},
1677
- relevantToExtent: c instanceof De
1729
+ relevantToExtent: c instanceof Oe
1678
1730
  });
1679
1731
  }
1680
1732
  }
@@ -1683,11 +1735,11 @@ class fo {
1683
1735
  }
1684
1736
  }
1685
1737
  }
1686
- const yo = (e) => {
1687
- const n = le(), { enableCompass: t = !0, enableZoomControls: i = !1, lockCompassNavigation: o = !1, locale: r = { DIRECTION: "ltr" } } = e;
1688
- return D(() => {
1738
+ const To = (e) => {
1739
+ const n = se(), { enableCompass: t = !0, enableZoomControls: i = !1, lockCompassNavigation: o = !1, locale: r = { DIRECTION: "ltr" } } = e;
1740
+ return I(() => {
1689
1741
  if (typeof Z(n, "cesiumNavigation") > "u") {
1690
- n.extend(Qi, {
1742
+ n.extend(ir, {
1691
1743
  enableCompass: t,
1692
1744
  enableZoomControls: i,
1693
1745
  enableDistanceLegend: !1
@@ -1695,13 +1747,9 @@ const yo = (e) => {
1695
1747
  const c = document.querySelector(".compass");
1696
1748
  c && r.DIRECTION && c.classList.add(r.DIRECTION);
1697
1749
  }
1698
- return () => {
1699
- var c;
1700
- (c = n.cesiumNavigation) == null || c.destroy();
1701
- };
1702
1750
  }, [n, t, i, r.DIRECTION, o]), null;
1703
- }, At = 212, kt = 260, vo = 0;
1704
- class ba extends Wi {
1751
+ }, Nt = 212, Bt = 260, bo = 0;
1752
+ class Oa extends qi {
1705
1753
  constructor(t, i) {
1706
1754
  super(t, i);
1707
1755
  X(this, "layersManager");
@@ -1714,14 +1762,14 @@ class ba extends Wi {
1714
1762
  this.useOptimizedTileRequests = t;
1715
1763
  }
1716
1764
  }
1717
- const gn = Le(null), Eo = gn.Provider, le = () => {
1718
- const e = _e(gn);
1765
+ const vn = Me(null), Lo = vn.Provider, se = () => {
1766
+ const e = Pe(vn);
1719
1767
  if (e === null)
1720
1768
  throw new Error("map context is null, please check the provider");
1721
1769
  return e;
1722
- }, Sa = (e) => {
1723
- var Y, k, z, Q, ie, fe, de, se;
1724
- const n = Se(null), [t, i] = x(), [o, r] = x(), [c, u] = x(), [m, g] = x(), [E, S] = x(), [w, P] = x(), [R, G] = x(), [q, H] = x(!1), [j, K] = x(), O = Se(), [$, A] = x(), [W, ne] = x([]), [s, a] = x(), [v, d] = x(!1), y = Se(), [h, C] = x(void 0), [f, T] = x(!1), [_, L] = x(), b = {
1770
+ }, Aa = (e) => {
1771
+ var V, Q, ne, ye, ue, ae, ce, Re;
1772
+ const n = Se(null), [t, i] = D(), [o, r] = D(), [c, u] = D(), [m, p] = D(), [E, L] = D(), [w, P] = D(), [A, H] = D(), [Y, G] = D(!1), [U, j] = D(), O = Se(), [z, k] = D(), [$, te] = D([]), [s, a] = D(), [v, d] = D(!1), y = Se(), [h, C] = D(void 0), [f, T] = D(!1), [_, S] = D(), [b, M] = D(), x = {
1725
1773
  fullscreenButton: !0,
1726
1774
  timeline: !1,
1727
1775
  animation: !1,
@@ -1732,184 +1780,194 @@ const gn = Le(null), Eo = gn.Provider, le = () => {
1732
1780
  sceneModePicker: !1,
1733
1781
  imageryProvider: !1,
1734
1782
  ...e
1735
- }, M = (B, F, ee, we, Me) => {
1736
- const ye = t.container, Ae = ye.clientWidth, yt = ye.clientHeight, vt = we + Me;
1783
+ }, W = (K, B, ee, we, Te) => {
1784
+ const xe = t.container, vt = xe.clientWidth, Et = xe.clientHeight, Ct = we + Te;
1737
1785
  return {
1738
- left: `${Ae - B < ee ? B - (ee - (Ae - B)) : B}px`,
1739
- top: `${yt - F < vt ? F - (vt - (yt - F)) : F}px`
1786
+ left: `${vt - K < ee ? K - (ee - (vt - K)) : K}px`,
1787
+ top: `${Et - B < Ct ? B - (Ct - (Et - B)) : B}px`
1740
1788
  };
1741
- }, I = me((B) => {
1742
- if (n.current !== null) {
1743
- const F = n.current.cesiumElement, ee = { x: B.offsetX, y: B.offsetY };
1744
- d(!1), C(ee), L(un(F, ee.x, ee.y)), d(!0), y.current = B;
1745
- }
1746
- }, [n]);
1747
- D(() => {
1748
- var B;
1789
+ }, q = pe(
1790
+ (K) => {
1791
+ if (n.current !== null) {
1792
+ const B = n.current.cesiumElement, ee = { x: K.offsetX, y: K.offsetY };
1793
+ d(!1), C(ee), S(pn(B, ee.x, ee.y)), d(!0), y.current = K;
1794
+ }
1795
+ },
1796
+ [n]
1797
+ );
1798
+ I(() => {
1799
+ var K;
1749
1800
  if (n.current !== null) {
1750
- const F = n.current.cesiumElement;
1751
- e.imageryContextMenu && (F.scene.canvas.removeEventListener("contextmenu", I), F.scene.canvas.addEventListener("contextmenu", I));
1801
+ const B = n.current.cesiumElement;
1802
+ e.imageryContextMenu && (B.scene.canvas.removeEventListener("contextmenu", q), B.scene.canvas.addEventListener("contextmenu", q));
1752
1803
  }
1753
- i((B = n.current) == null ? void 0 : B.cesiumElement);
1754
- }, [n, e.imageryContextMenu]), D(() => {
1755
- var B;
1756
- t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1, t.layersManager = new fo(
1804
+ i((K = n.current) == null ? void 0 : K.cesiumElement);
1805
+ }, [n, e.imageryContextMenu]), I(() => {
1806
+ var K;
1807
+ t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1, t.layersManager = new wo(
1757
1808
  t,
1758
- (B = e.legends) == null ? void 0 : B.mapLegendsExtractor,
1809
+ (K = e.legends) == null ? void 0 : K.mapLegendsExtractor,
1759
1810
  () => {
1760
- var F;
1761
- ne((F = t.layersManager) == null ? void 0 : F.legendsList);
1811
+ var B;
1812
+ te((B = t.layersManager) == null ? void 0 : B.legendsList);
1762
1813
  },
1763
1814
  e.layerManagerFootprintMetaFieldPath
1764
1815
  ));
1765
- }, [t]), D(() => {
1816
+ }, [t]), I(() => {
1766
1817
  t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1);
1767
- }, [e.useOptimizedTileRequests, t]), D(() => {
1768
- A(e.sceneModes ?? [oe.SCENE2D, oe.SCENE3D, oe.COLUMBUS_VIEW]);
1769
- }, [e.sceneModes]), D(() => {
1770
- var F, ee;
1818
+ }, [e.useOptimizedTileRequests, t]), I(() => {
1819
+ k(e.sceneModes ?? [re.SCENE2D, re.SCENE3D, re.COLUMBUS_VIEW]);
1820
+ }, [e.sceneModes]), I(() => {
1821
+ var B, ee;
1771
1822
  a(e.baseMaps);
1772
- const B = (F = e.baseMaps) == null ? void 0 : F.maps.find((we) => we.isCurrent);
1773
- B && t && ((ee = t.layersManager) == null || ee.setBaseMapLayers(B));
1774
- }, [e.baseMaps, t]), D(() => {
1775
- r(e.projection ?? pe.WGS84);
1776
- }, [e.projection]), D(() => {
1777
- K(e.locale);
1778
- }, [e.locale]), D(() => {
1823
+ const K = (B = e.baseMaps) == null ? void 0 : B.maps.find((we) => we.isCurrent);
1824
+ K && t && ((ee = t.layersManager) == null || ee.setBaseMapLayers(K));
1825
+ }, [e.baseMaps, t]), I(() => {
1826
+ r(e.projection ?? ge.WGS84);
1827
+ }, [e.projection]), I(() => {
1828
+ j(e.locale);
1829
+ }, [e.locale]), I(() => {
1779
1830
  u(e.showMousePosition ?? !0);
1780
- }, [e.showMousePosition]), D(() => {
1781
- g(e.showZoomLevel ?? !0);
1782
- }, [e.showZoomLevel]), D(() => {
1783
- S(e.showScale ?? !0);
1784
- }, [e.showScale]), D(() => {
1831
+ }, [e.showMousePosition]), I(() => {
1832
+ p(e.showZoomLevel ?? !0);
1833
+ }, [e.showZoomLevel]), I(() => {
1834
+ L(e.showScale ?? !0);
1835
+ }, [e.showScale]), I(() => {
1785
1836
  P(e.showCompass ?? !0);
1786
- }, [e.showCompass]), D(() => {
1787
- G(e.showLoadingProgress ?? !0);
1788
- }, [e.showLoadingProgress]), D(() => {
1789
- const B = () => {
1837
+ }, [e.showCompass]), I(() => {
1838
+ H(e.showLoadingProgress ?? !0);
1839
+ }, [e.showLoadingProgress]), I(() => {
1840
+ const K = () => {
1790
1841
  if (t === void 0)
1791
1842
  return {
1792
1843
  longitude: 0,
1793
1844
  latitude: 0,
1794
1845
  height: 0
1795
1846
  };
1796
- const F = () => {
1847
+ const B = () => {
1797
1848
  const ee = t.camera.positionCartographic;
1798
1849
  return {
1799
- longitude: He(ee.longitude),
1800
- latitude: He(ee.latitude),
1850
+ longitude: Ge(ee.longitude),
1851
+ latitude: Ge(ee.latitude),
1801
1852
  height: ee.height
1802
1853
  };
1803
1854
  };
1804
- if (t.scene.mode === be.SCENE3D) {
1855
+ if (t.scene.mode === Le.SCENE3D) {
1805
1856
  const ee = new Ce(
1806
1857
  // eslint-disable-next-line @typescript-eslint/no-magic-numbers
1807
1858
  t.container.clientWidth / 2,
1808
1859
  // eslint-disable-next-line @typescript-eslint/no-magic-numbers
1809
1860
  t.container.clientHeight / 2
1810
- ), we = t.scene.camera.getPickRay(ee), Me = t.scene.globe.pick(we, t.scene);
1811
- if (!Me)
1861
+ ), we = t.scene.camera.getPickRay(ee), Te = t.scene.globe.pick(we, t.scene);
1862
+ if (!Te)
1812
1863
  return {
1813
1864
  longitude: 0,
1814
1865
  latitude: 0,
1815
1866
  height: 0
1816
1867
  };
1817
- const ye = t.scene.globe.ellipsoid.cartesianToCartographic(Me);
1818
- return ye !== void 0 ? {
1819
- longitude: He(ye.longitude),
1820
- latitude: He(ye.latitude),
1868
+ const xe = t.scene.globe.ellipsoid.cartesianToCartographic(Te);
1869
+ return xe !== void 0 ? {
1870
+ longitude: Ge(xe.longitude),
1871
+ latitude: Ge(xe.latitude),
1821
1872
  height: t.scene.camera.positionCartographic.height
1822
- } : F();
1873
+ } : B();
1823
1874
  } else
1824
- return F();
1875
+ return B();
1825
1876
  };
1826
1877
  t && (t.camera.moveEnd.addEventListener(() => {
1827
- if (t.scene.mode !== be.MORPHING) {
1828
- const F = t.camera, ee = {
1829
- position: B(),
1830
- direction: F.direction.clone(),
1831
- up: F.up.clone(),
1832
- right: F.right.clone(),
1833
- transform: F.transform.clone(),
1834
- frustum: F.frustum.clone()
1878
+ if (t.scene.mode !== Le.MORPHING) {
1879
+ const B = t.camera, ee = {
1880
+ position: K(),
1881
+ direction: B.direction.clone(),
1882
+ up: B.up.clone(),
1883
+ right: B.right.clone(),
1884
+ transform: B.transform.clone(),
1885
+ frustum: B.frustum.clone()
1835
1886
  };
1836
1887
  O.current = ee;
1837
1888
  }
1838
- }), R && t.scene.globe.tileLoadProgressEvent.addEventListener(function() {
1839
- t.scene.globe.tilesLoaded === !0 ? H(!1) : H(!0);
1889
+ }), A && t.scene.globe.tileLoadProgressEvent.addEventListener(function() {
1890
+ t.scene.globe.tilesLoaded === !0 ? G(!1) : G(!0);
1840
1891
  }));
1841
- }, [t]), D(() => {
1842
- const B = () => {
1892
+ }, [t]), I(() => {
1893
+ const K = () => {
1843
1894
  if (t && O.current) {
1844
- const F = O.current;
1895
+ const B = O.current;
1845
1896
  t.camera.flyTo({
1846
- destination: ve.fromDegrees(F.position.longitude, F.position.latitude, F.position.height),
1897
+ destination: ve.fromDegrees(B.position.longitude, B.position.latitude, B.position.height),
1847
1898
  duration: 0
1848
1899
  });
1849
1900
  }
1850
1901
  };
1851
- return t && t.scene.morphComplete.addEventListener(B), () => {
1902
+ return t && t.scene.morphComplete.addEventListener(K), () => {
1852
1903
  if (t)
1853
1904
  try {
1854
- t.scene.morphComplete.removeEventListener(B);
1905
+ t.scene.morphComplete.removeEventListener(K);
1855
1906
  } catch {
1856
1907
  console.error("morphCompleteHandler event not cleaned");
1857
1908
  }
1858
1909
  };
1859
- }, [t]), D(() => {
1860
- const B = e.zoom, F = e.center;
1861
- t && We(B) && Xi(F) && t.camera.flyTo({
1862
- destination: ve.fromDegrees(F[0], F[1], qr(B)),
1910
+ }, [t]), I(() => {
1911
+ const K = e.zoom, B = e.center;
1912
+ t && Ue(K) && er(B) && t.camera.flyTo({
1913
+ destination: ve.fromDegrees(B[0], B[1], Jr(K)),
1863
1914
  duration: 0
1864
1915
  });
1865
- }, [e.zoom, e.center, t]);
1866
- const U = me(() => t && Ci(
1867
- /* @__PURE__ */ N(te, { children: [
1868
- R === !0 ? q && /* @__PURE__ */ l(zn, { style: { position: "absolute", top: 0, height: "10px", zIndex: 4 } }) : /* @__PURE__ */ l(te, {}),
1869
- /* @__PURE__ */ N(ce, { className: "sideToolsContainer", children: [
1870
- /* @__PURE__ */ l(so, { sceneModes: $, baseMaps: s, locale: j }),
1871
- /* @__PURE__ */ l(lo, { onClick: () => T(!f) })
1916
+ }, [e.zoom, e.center, t]), I(() => {
1917
+ M(e.displayZoomButtons ?? !0);
1918
+ }, [e.displayZoomButtons]);
1919
+ const R = pe(() => t && Li(
1920
+ /* @__PURE__ */ N(oe, { children: [
1921
+ A && Y && /* @__PURE__ */ l(Un, { style: { position: "absolute", top: 0, height: "10px", zIndex: 4 } }),
1922
+ /* @__PURE__ */ N(de, { className: "sideToolsContainer", children: [
1923
+ /* @__PURE__ */ l(uo, { sceneModes: z, baseMaps: s, locale: U }),
1924
+ /* @__PURE__ */ l(po, { onClick: () => T(!f) })
1872
1925
  ] }),
1873
- /* @__PURE__ */ N(ce, { className: "toolsContainer", children: [
1874
- c === !0 ? /* @__PURE__ */ l(Zr, { projection: o }) : /* @__PURE__ */ l(te, {}),
1875
- m === !0 ? /* @__PURE__ */ l(to, { locale: j, valueBy: "RENDERED_TILES" }) : /* @__PURE__ */ l(te, {}),
1876
- E === !0 ? /* @__PURE__ */ l(Qr, { locale: j }) : /* @__PURE__ */ l(te, {}),
1877
- w === !0 ? /* @__PURE__ */ l(yo, { locale: j }) : /* @__PURE__ */ l(te, {})
1878
- ] })
1926
+ /* @__PURE__ */ N(de, { className: "toolsContainer", children: [
1927
+ c && /* @__PURE__ */ l(to, { projection: o }),
1928
+ m && /* @__PURE__ */ l(oo, { locale: U, valueBy: "RENDERED_TILES" }),
1929
+ E && /* @__PURE__ */ l(io, { locale: U }),
1930
+ w && /* @__PURE__ */ l(To, { locale: U })
1931
+ ] }),
1932
+ b && /* @__PURE__ */ l(ho, {})
1879
1933
  ] }),
1880
1934
  document.querySelector(".cesium-viewer")
1881
- ), [s, j, t, o, $, c, E, f, q]);
1882
- return /* @__PURE__ */ l(wi, { className: "viewer", full: !0, ref: n, ...b, children: /* @__PURE__ */ N(Eo, { value: t, children: [
1935
+ ), [s, U, t, o, z, c, E, f, Y]);
1936
+ return /* @__PURE__ */ l(Si, { className: "viewer", full: !0, ref: n, ...x, children: /* @__PURE__ */ N(Lo, { value: t, children: [
1883
1937
  /* @__PURE__ */ l(
1884
- ho,
1938
+ yo,
1885
1939
  {
1886
- title: (Y = e.legends) == null ? void 0 : Y.title,
1940
+ title: (V = e.legends) == null ? void 0 : V.title,
1887
1941
  isOpen: f,
1888
1942
  toggleSidebar: () => T(!f),
1889
- noLegendsText: (k = e.legends) == null ? void 0 : k.emptyText,
1890
- legends: ((z = e.legends) == null ? void 0 : z.legendsList) ?? W,
1891
- actionsTexts: (Q = e.legends) == null ? void 0 : Q.actionsTexts
1943
+ noLegendsText: (Q = e.legends) == null ? void 0 : Q.emptyText,
1944
+ legends: ((ne = e.legends) == null ? void 0 : ne.legendsList) ?? $,
1945
+ actionsTexts: (ye = e.legends) == null ? void 0 : ye.actionsTexts
1892
1946
  }
1893
1947
  ),
1894
1948
  e.children,
1895
- U(),
1949
+ R(),
1896
1950
  e.imageryContextMenu && v && h && _ && Ee.cloneElement(e.imageryContextMenu, {
1897
- data: (ie = t == null ? void 0 : t.layersManager) == null ? void 0 : ie.findLayerByPOI(h.x, h.y, !1),
1951
+ data: (ue = t == null ? void 0 : t.layersManager) == null ? void 0 : ue.findLayerByPOI(
1952
+ h.x,
1953
+ h.y,
1954
+ !1
1955
+ ),
1898
1956
  position: {
1899
1957
  x: h.x,
1900
1958
  y: h.y
1901
1959
  },
1902
1960
  coordinates: _,
1903
- style: M(
1961
+ style: W(
1904
1962
  h.x,
1905
1963
  h.y,
1906
- ((fe = e.imageryContextMenuSize) == null ? void 0 : fe.width) ?? kt,
1907
- ((de = e.imageryContextMenuSize) == null ? void 0 : de.height) ?? At,
1908
- ((se = e.imageryContextMenuSize) == null ? void 0 : se.dynamicHeightIncrement) ?? vo
1964
+ ((ae = e.imageryContextMenuSize) == null ? void 0 : ae.width) ?? Bt,
1965
+ ((ce = e.imageryContextMenuSize) == null ? void 0 : ce.height) ?? Nt,
1966
+ ((Re = e.imageryContextMenuSize) == null ? void 0 : Re.dynamicHeightIncrement) ?? bo
1909
1967
  ),
1910
1968
  size: e.imageryContextMenuSize ?? {
1911
- height: At,
1912
- width: kt
1969
+ height: Nt,
1970
+ width: Bt
1913
1971
  },
1914
1972
  handleClose: () => {
1915
1973
  d(!v);
@@ -1917,68 +1975,68 @@ const gn = Le(null), Eo = gn.Provider, le = () => {
1917
1975
  contextEvt: y.current
1918
1976
  })
1919
1977
  ] }) });
1920
- }, Co = 0, La = (e) => {
1921
- const n = le();
1978
+ }, So = 0, ka = (e) => {
1979
+ const n = se();
1922
1980
  return /* @__PURE__ */ l(
1923
- Ti,
1981
+ _i,
1924
1982
  {
1925
1983
  ...e,
1926
1984
  onReady: (t) => {
1927
1985
  e.isZoomTo === !0 && n.zoomTo(t);
1928
1986
  const i = n.scene;
1929
1987
  i.globe.depthTestAgainstTerrain = !0;
1930
- const o = Be.fromCartesian(t.boundingSphere.center), r = e.heightFromGround ?? Co;
1988
+ const o = He.fromCartesian(t.boundingSphere.center), r = e.heightFromGround ?? So;
1931
1989
  if (r) {
1932
1990
  const c = ve.fromRadians(o.longitude, o.latitude, o.height), u = ve.fromRadians(o.longitude, o.latitude, o.height + r), m = ve.subtract(u, c, new ve());
1933
- t.modelMatrix = Ui.fromTranslation(m);
1991
+ t.modelMatrix = Yi.fromTranslation(m);
1934
1992
  }
1935
1993
  }
1936
1994
  }
1937
1995
  );
1938
- }, Ge = 180, Rt = 1e-3, Nt = (e) => Math.abs(e) / e, Bt = (e) => {
1939
- Ge - Math.abs(e[0]) < Rt && (e[0] = Nt(e[0]) * (Ge - 1)), Ge / 2 - Math.abs(e[1]) < Rt && (e[1] = Nt(e[1]) * (Ge / 2 - 1));
1940
- }, Ft = (e) => {
1996
+ }, ze = 180, Ft = 1e-3, Ht = (e) => Math.abs(e) / e, Gt = (e) => {
1997
+ ze - Math.abs(e[0]) < Ft && (e[0] = Ht(e[0]) * (ze - 1)), ze / 2 - Math.abs(e[1]) < Ft && (e[1] = Ht(e[1]) * (ze / 2 - 1));
1998
+ }, Vt = (e) => {
1941
1999
  switch (e.type) {
1942
2000
  case "LineString":
1943
2001
  e.coordinates.forEach((n) => {
1944
- Bt(n);
2002
+ Gt(n);
1945
2003
  });
1946
2004
  break;
1947
2005
  case "Polygon":
1948
2006
  e.coordinates.forEach((n) => {
1949
2007
  n.forEach((t) => {
1950
- Bt(t);
2008
+ Gt(t);
1951
2009
  });
1952
2010
  });
1953
2011
  break;
1954
2012
  }
1955
- }, _a = (e) => {
1956
- const { data: n, ...t } = e, i = Zi(n);
2013
+ }, Ra = (e) => {
2014
+ const { data: n, ...t } = e, i = tr(n);
1957
2015
  return i && (typeof i.features < "u" ? i.features.forEach((o) => {
1958
- Ft(o.geometry);
1959
- }) : Ft(i)), /* @__PURE__ */ l(bi, { data: i, ...t });
1960
- }, Ye = (e) => {
1961
- const { meta: n, ...t } = e, i = le();
1962
- return Gt(() => {
2016
+ Vt(o.geometry);
2017
+ }) : Vt(i)), /* @__PURE__ */ l(Mi, { data: i, ...t });
2018
+ }, Xe = (e) => {
2019
+ const { meta: n, ...t } = e, i = se();
2020
+ return Wt(() => {
1963
2021
  var o;
1964
2022
  (o = i.layersManager) == null || o.addMetaToLayer(n, n.searchLayerPredicate);
1965
- }, [n, i]), /* @__PURE__ */ l(Si, { ...t });
1966
- }, Ma = (e) => {
1967
- const { options: n, ...t } = e, i = le(), o = i.shouldOptimizedTileRequests ? new mn(n, i) : new mt(n);
1968
- return /* @__PURE__ */ l(Ye, { ...t, imageryProvider: o });
1969
- }, Pa = (e) => {
1970
- const { options: n, ...t } = e, i = le(), o = i.shouldOptimizedTileRequests ? new pn(n, i) : new pt(n);
1971
- return /* @__PURE__ */ l(Ye, { ...t, imageryProvider: o });
1972
- }, Ia = (e) => {
1973
- const { options: n, ...t } = e, i = le(), o = i.shouldOptimizedTileRequests ? new hn(n, i) : new ht(n);
1974
- return /* @__PURE__ */ l(Ye, { ...t, imageryProvider: o });
1975
- }, Da = (e) => {
2023
+ }, [n, i]), /* @__PURE__ */ l(Pi, { ...t });
2024
+ }, Na = (e) => {
2025
+ const { options: n, ...t } = e, i = se(), o = i.shouldOptimizedTileRequests ? new fn(n, i) : new pt(n);
2026
+ return /* @__PURE__ */ l(Xe, { ...t, imageryProvider: o });
2027
+ }, Ba = (e) => {
2028
+ const { options: n, ...t } = e, i = se(), o = i.shouldOptimizedTileRequests ? new yn(n, i) : new gt(n);
2029
+ return /* @__PURE__ */ l(Xe, { ...t, imageryProvider: o });
2030
+ }, Fa = (e) => {
2031
+ const { options: n, ...t } = e, i = se(), o = i.shouldOptimizedTileRequests ? new gn(n, i) : new mt(n);
2032
+ return /* @__PURE__ */ l(Xe, { ...t, imageryProvider: o });
2033
+ }, Ha = (e) => {
1976
2034
  const { options: n, ...t } = e;
1977
- return /* @__PURE__ */ l(Ye, { ...t, imageryProvider: new ji(n) });
1978
- }, wo = (e) => /* @__PURE__ */ l(Li, { ...e }), xa = (e) => /* @__PURE__ */ l(Xt, { ...e }), To = (e) => /* @__PURE__ */ l(Xt, { ...e }), bo = (e) => /* @__PURE__ */ l(_i, { ...e }), So = (e) => /* @__PURE__ */ l(Mi, { ...e }), Lo = (e) => /* @__PURE__ */ l(Pi, { ...e }), _o = (e) => /* @__PURE__ */ l(Ii, { ...e });
1979
- var Te = function() {
1980
- var e = p.Ellipsoid.WGS84, n, t = p.Material.fromType(p.Material.ColorType);
1981
- function i(s, a = new p.Color(1, 1, 0, 0.5), v = new p.Color(1, 1, 1, 1)) {
2035
+ return /* @__PURE__ */ l(Xe, { ...t, imageryProvider: new Xi(n) });
2036
+ }, _o = (e) => /* @__PURE__ */ l(xi, { ...e }), Ga = (e) => /* @__PURE__ */ l(Qt, { ...e }), Mo = (e) => /* @__PURE__ */ l(Qt, { ...e }), Po = (e) => /* @__PURE__ */ l(Ii, { ...e }), xo = (e) => /* @__PURE__ */ l(Di, { ...e }), Io = (e) => /* @__PURE__ */ l(Oi, { ...e }), Do = (e) => /* @__PURE__ */ l(Ai, { ...e });
2037
+ var be = function() {
2038
+ var e = g.Ellipsoid.WGS84, n, t = g.Material.fromType(g.Material.ColorType);
2039
+ function i(s, a = new g.Color(1, 1, 0, 0.5), v = new g.Color(1, 1, 1, 1)) {
1982
2040
  this._scene = s.scene, t.uniforms.color = a, n = v, this._tooltip = {
1983
2041
  setVisible: () => {
1984
2042
  },
@@ -1987,7 +2045,7 @@ var Te = function() {
1987
2045
  }, this._surfaces = [], this.initialiseHandlers(), this.enhancePrimitives();
1988
2046
  }
1989
2047
  i.prototype.initialiseHandlers = function() {
1990
- var s = this._scene, a = this, v = new p.ScreenSpaceEventHandler(s.canvas);
2048
+ var s = this._scene, a = this, v = new g.ScreenSpaceEventHandler(s.canvas);
1991
2049
  function d(h, C) {
1992
2050
  if (a._handlersMuted != !0) {
1993
2051
  var f = s.pick(C);
@@ -1996,31 +2054,31 @@ var Te = function() {
1996
2054
  }
1997
2055
  v.setInputAction(function(h) {
1998
2056
  d("leftClick", h.position);
1999
- }, p.ScreenSpaceEventType.LEFT_CLICK), v.setInputAction(function(h) {
2057
+ }, g.ScreenSpaceEventType.LEFT_CLICK), v.setInputAction(function(h) {
2000
2058
  d("leftDoubleClick", h.position);
2001
- }, p.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
2059
+ }, g.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
2002
2060
  var y;
2003
2061
  v.setInputAction(function(h) {
2004
2062
  if (a._handlersMuted != !0) {
2005
2063
  var C = s.pick(h.endPosition);
2006
2064
  y && (!C || y != C.primitive) && (!(y.isDestroyed && y.isDestroyed()) && y.mouseOut(h.endPosition), y = null), C && C.primitive && (C = C.primitive, C.mouseOut && (y = C), C.mouseMove && C.mouseMove(h.endPosition));
2007
2065
  }
2008
- }, p.ScreenSpaceEventType.MOUSE_MOVE), v.setInputAction(function(h) {
2066
+ }, g.ScreenSpaceEventType.MOUSE_MOVE), v.setInputAction(function(h) {
2009
2067
  d("leftUp", h.position);
2010
- }, p.ScreenSpaceEventType.LEFT_UP), v.setInputAction(function(h) {
2068
+ }, g.ScreenSpaceEventType.LEFT_UP), v.setInputAction(function(h) {
2011
2069
  d("leftDown", h.position);
2012
- }, p.ScreenSpaceEventType.LEFT_DOWN);
2070
+ }, g.ScreenSpaceEventType.LEFT_DOWN);
2013
2071
  }, i.prototype.setListener = function(s, a, v) {
2014
2072
  s[a] = v;
2015
2073
  }, i.prototype.muteHandlers = function(s) {
2016
2074
  this._handlersMuted = s;
2017
2075
  }, i.prototype.registerEditableShape = function(s) {
2018
2076
  var a = this;
2019
- W(s, "mouseMove", function(v) {
2077
+ $(s, "mouseMove", function(v) {
2020
2078
  s.setHighlighted(!0), s._editMode || a._tooltip.showAt(v, "Click to edit this shape");
2021
- }), W(s, "mouseOut", function(v) {
2079
+ }), $(s, "mouseOut", function(v) {
2022
2080
  s.setHighlighted(!1), a._tooltip.setVisible(!1);
2023
- }), W(s, "leftClick", function(v) {
2081
+ }), $(s, "leftClick", function(v) {
2024
2082
  s.setEditMode(!0);
2025
2083
  });
2026
2084
  }, i.prototype.startDrawing = function(s) {
@@ -2037,65 +2095,65 @@ var Te = function() {
2037
2095
  this._editedSurface && !this._editedSurface.isDestroyed() && this._editedSurface.setEditMode(!1), this._editedSurface = s;
2038
2096
  };
2039
2097
  var o = {
2040
- ellipsoid: p.Ellipsoid.WGS84,
2098
+ ellipsoid: g.Ellipsoid.WGS84,
2041
2099
  textureRotationAngle: 0,
2042
2100
  height: 0,
2043
2101
  asynchronous: !0,
2044
2102
  show: !0,
2045
2103
  debugShowBoundingVolume: !1
2046
- }, r = A(o, {
2047
- appearance: new p.EllipsoidSurfaceAppearance({
2104
+ }, r = k(o, {
2105
+ appearance: new g.EllipsoidSurfaceAppearance({
2048
2106
  aboveGround: !1
2049
2107
  }),
2050
2108
  material: t,
2051
2109
  granularity: Math.PI / 180
2052
- }), c = A(o, {}), u = A(o, {}), m = A(o, {}), g = A(r, {
2110
+ }), c = k(o, {}), u = k(o, {}), m = k(o, {}), p = k(r, {
2053
2111
  rotation: 0
2054
- }), E = A(o, {
2112
+ }), E = k(o, {
2055
2113
  width: 5,
2056
2114
  geodesic: !0,
2057
2115
  granularity: 1e4,
2058
- appearance: new p.PolylineMaterialAppearance({
2116
+ appearance: new g.PolylineMaterialAppearance({
2059
2117
  aboveGround: !1
2060
2118
  }),
2061
2119
  material: t
2062
- }), S = function() {
2120
+ }), L = function() {
2063
2121
  function s() {
2064
2122
  }
2065
2123
  return s.prototype.initialiseOptions = function(a) {
2066
- $(this, a), this._ellipsoid = void 0, this._granularity = void 0, this._height = void 0, this._textureRotationAngle = void 0, this._id = void 0, this._createPrimitive = !0, this._primitive = void 0, this._outlinePolygon = void 0;
2124
+ z(this, a), this._ellipsoid = void 0, this._granularity = void 0, this._height = void 0, this._textureRotationAngle = void 0, this._id = void 0, this._createPrimitive = !0, this._primitive = void 0, this._outlinePolygon = void 0;
2067
2125
  }, s.prototype.setAttribute = function(a, v) {
2068
2126
  this[a] = v, this._createPrimitive = !0;
2069
2127
  }, s.prototype.getAttribute = function(a) {
2070
2128
  return this[a];
2071
2129
  }, s.prototype.update = function(a, v, d) {
2072
- if (!p.defined(this.ellipsoid))
2073
- throw new p.DeveloperError("this.ellipsoid must be defined.");
2074
- if (!p.defined(this.appearance))
2075
- throw new p.DeveloperError("this.material must be defined.");
2130
+ if (!g.defined(this.ellipsoid))
2131
+ throw new g.DeveloperError("this.ellipsoid must be defined.");
2132
+ if (!g.defined(this.appearance))
2133
+ throw new g.DeveloperError("this.material must be defined.");
2076
2134
  if (this.granularity < 0)
2077
- throw new p.DeveloperError("this.granularity and scene2D/scene3D overrides must be greater than zero.");
2078
- if (this.show && !(!this._createPrimitive && !p.defined(this._primitive))) {
2135
+ throw new g.DeveloperError("this.granularity and scene2D/scene3D overrides must be greater than zero.");
2136
+ if (this.show && !(!this._createPrimitive && !g.defined(this._primitive))) {
2079
2137
  if (this._createPrimitive || this._ellipsoid !== this.ellipsoid || this._granularity !== this.granularity || this._height !== this.height || this._textureRotationAngle !== this.textureRotationAngle || this._id !== this.id) {
2080
2138
  var y = this.getGeometry();
2081
2139
  if (!y)
2082
2140
  return;
2083
- this._createPrimitive = !1, this._ellipsoid = this.ellipsoid, this._granularity = this.granularity, this._height = this.height, this._textureRotationAngle = this.textureRotationAngle, this._id = this.id, this._primitive = this._primitive && this._primitive.destroy(), this._primitive = new p.Primitive({
2084
- geometryInstances: new p.GeometryInstance({
2141
+ this._createPrimitive = !1, this._ellipsoid = this.ellipsoid, this._granularity = this.granularity, this._height = this.height, this._textureRotationAngle = this.textureRotationAngle, this._id = this.id, this._primitive = this._primitive && this._primitive.destroy(), this._primitive = new g.Primitive({
2142
+ geometryInstances: new g.GeometryInstance({
2085
2143
  geometry: y,
2086
2144
  id: this.id,
2087
2145
  pickPrimitive: this
2088
2146
  }),
2089
2147
  appearance: this.appearance,
2090
2148
  asynchronous: this.asynchronous
2091
- }), this._outlinePolygon = this._outlinePolygon && this._outlinePolygon.destroy(), this.strokeColor && this.getOutlineGeometry && (this._outlinePolygon = new p.Primitive({
2092
- geometryInstances: new p.GeometryInstance({
2149
+ }), this._outlinePolygon = this._outlinePolygon && this._outlinePolygon.destroy(), this.strokeColor && this.getOutlineGeometry && (this._outlinePolygon = new g.Primitive({
2150
+ geometryInstances: new g.GeometryInstance({
2093
2151
  geometry: this.getOutlineGeometry(),
2094
2152
  attributes: {
2095
- color: p.ColorGeometryInstanceAttribute.fromColor(this.strokeColor)
2153
+ color: g.ColorGeometryInstanceAttribute.fromColor(this.strokeColor)
2096
2154
  }
2097
2155
  }),
2098
- appearance: new p.PerInstanceColorAppearance({
2156
+ appearance: new g.PerInstanceColorAppearance({
2099
2157
  flat: !0,
2100
2158
  renderState: {
2101
2159
  depthTest: {
@@ -2114,66 +2172,66 @@ var Te = function() {
2114
2172
  }, s.prototype.isDestroyed = function() {
2115
2173
  return !1;
2116
2174
  }, s.prototype.destroy = function() {
2117
- return this._primitive = this._primitive && this._primitive.destroy(), p.destroyObject(this);
2175
+ return this._primitive = this._primitive && this._primitive.destroy(), g.destroyObject(this);
2118
2176
  }, s.prototype.setStrokeStyle = function(a, v) {
2119
2177
  (!this.strokeColor || !this.strokeColor.equals(a) || this.strokeWidth != v) && (this._createPrimitive = !0, this.strokeColor = a, this.strokeWidth = v);
2120
2178
  }, s;
2121
2179
  }();
2122
2180
  i.ExtentPrimitive = function() {
2123
2181
  function s(a) {
2124
- if (!p.defined(a.extent))
2125
- throw new p.DeveloperError("Extent is required");
2126
- a = A(a, r), this.initialiseOptions(a), this.setExtent(a.extent);
2182
+ if (!g.defined(a.extent))
2183
+ throw new g.DeveloperError("Extent is required");
2184
+ a = k(a, r), this.initialiseOptions(a), this.setExtent(a.extent);
2127
2185
  }
2128
- return s.prototype = new S(), s.prototype.setExtent = function(a) {
2186
+ return s.prototype = new L(), s.prototype.setExtent = function(a) {
2129
2187
  this.setAttribute("extent", a);
2130
2188
  }, s.prototype.getExtent = function() {
2131
2189
  return this.getAttribute("extent");
2132
2190
  }, s.prototype.getGeometry = function() {
2133
- if (p.defined(this.extent))
2134
- return new p.RectangleGeometry({
2191
+ if (g.defined(this.extent))
2192
+ return new g.RectangleGeometry({
2135
2193
  rectangle: this.extent,
2136
2194
  height: this.height,
2137
- vertexFormat: p.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
2195
+ vertexFormat: g.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
2138
2196
  stRotation: this.textureRotationAngle,
2139
2197
  ellipsoid: this.ellipsoid,
2140
2198
  granularity: this.granularity
2141
2199
  });
2142
2200
  }, s.prototype.getOutlineGeometry = function() {
2143
- return new p.RectangleOutlineGeometry({
2201
+ return new g.RectangleOutlineGeometry({
2144
2202
  rectangle: this.extent
2145
2203
  });
2146
2204
  }, s;
2147
2205
  }(), i.PolygonPrimitive = function() {
2148
2206
  function s(a) {
2149
- a = A(a, r), this.initialiseOptions(a), this.isPolygon = !0;
2207
+ a = k(a, r), this.initialiseOptions(a), this.isPolygon = !0;
2150
2208
  }
2151
- return s.prototype = new S(), s.prototype.setPositions = function(a) {
2209
+ return s.prototype = new L(), s.prototype.setPositions = function(a) {
2152
2210
  this.setAttribute("positions", a);
2153
2211
  }, s.prototype.getPositions = function() {
2154
2212
  return this.getAttribute("positions");
2155
2213
  }, s.prototype.getGeometry = function() {
2156
- if (!(!p.defined(this.positions) || this.positions.length < 3))
2157
- return p.PolygonGeometry.fromPositions({
2214
+ if (!(!g.defined(this.positions) || this.positions.length < 3))
2215
+ return g.PolygonGeometry.fromPositions({
2158
2216
  positions: this.positions,
2159
2217
  height: this.height,
2160
- vertexFormat: p.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
2218
+ vertexFormat: g.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
2161
2219
  stRotation: this.textureRotationAngle,
2162
2220
  ellipsoid: this.ellipsoid,
2163
2221
  granularity: this.granularity
2164
2222
  });
2165
2223
  }, s.prototype.getOutlineGeometry = function() {
2166
- return p.PolygonOutlineGeometry.fromPositions({
2224
+ return g.PolygonOutlineGeometry.fromPositions({
2167
2225
  positions: this.getPositions()
2168
2226
  });
2169
2227
  }, s;
2170
2228
  }(), i.CirclePrimitive = function() {
2171
2229
  function s(a) {
2172
- if (!(p.defined(a.center) && p.defined(a.radius)))
2173
- throw new p.DeveloperError("Center and radius are required");
2174
- a = A(a, r), this.initialiseOptions(a), this.setRadius(a.radius);
2230
+ if (!(g.defined(a.center) && g.defined(a.radius)))
2231
+ throw new g.DeveloperError("Center and radius are required");
2232
+ a = k(a, r), this.initialiseOptions(a), this.setRadius(a.radius);
2175
2233
  }
2176
- return s.prototype = new S(), s.prototype.setCenter = function(a) {
2234
+ return s.prototype = new L(), s.prototype.setCenter = function(a) {
2177
2235
  this.setAttribute("center", a);
2178
2236
  }, s.prototype.setRadius = function(a) {
2179
2237
  this.setAttribute("radius", Math.max(0.1, a));
@@ -2182,29 +2240,29 @@ var Te = function() {
2182
2240
  }, s.prototype.getRadius = function() {
2183
2241
  return this.getAttribute("radius");
2184
2242
  }, s.prototype.getGeometry = function() {
2185
- if (p.defined(this.center) && p.defined(this.radius))
2186
- return new p.CircleGeometry({
2243
+ if (g.defined(this.center) && g.defined(this.radius))
2244
+ return new g.CircleGeometry({
2187
2245
  center: this.center,
2188
2246
  radius: this.radius,
2189
2247
  height: this.height,
2190
- vertexFormat: p.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
2248
+ vertexFormat: g.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
2191
2249
  stRotation: this.textureRotationAngle,
2192
2250
  ellipsoid: this.ellipsoid,
2193
2251
  granularity: this.granularity
2194
2252
  });
2195
2253
  }, s.prototype.getOutlineGeometry = function() {
2196
- return new p.CircleOutlineGeometry({
2254
+ return new g.CircleOutlineGeometry({
2197
2255
  center: this.getCenter(),
2198
2256
  radius: this.getRadius()
2199
2257
  });
2200
2258
  }, s;
2201
2259
  }(), i.EllipsePrimitive = function() {
2202
2260
  function s(a) {
2203
- if (!(p.defined(a.center) && p.defined(a.semiMajorAxis) && p.defined(a.semiMinorAxis)))
2204
- throw new p.DeveloperError("Center and semi major and semi minor axis are required");
2205
- a = A(a, g), this.initialiseOptions(a);
2261
+ if (!(g.defined(a.center) && g.defined(a.semiMajorAxis) && g.defined(a.semiMinorAxis)))
2262
+ throw new g.DeveloperError("Center and semi major and semi minor axis are required");
2263
+ a = k(a, p), this.initialiseOptions(a);
2206
2264
  }
2207
- return s.prototype = new S(), s.prototype.setCenter = function(a) {
2265
+ return s.prototype = new L(), s.prototype.setCenter = function(a) {
2208
2266
  this.setAttribute("center", a);
2209
2267
  }, s.prototype.setSemiMajorAxis = function(a) {
2210
2268
  a < this.getSemiMinorAxis() || this.setAttribute("semiMajorAxis", a);
@@ -2221,20 +2279,20 @@ var Te = function() {
2221
2279
  }, s.prototype.getRotation = function() {
2222
2280
  return this.getAttribute("rotation");
2223
2281
  }, s.prototype.getGeometry = function() {
2224
- if (p.defined(this.center) && p.defined(this.semiMajorAxis) && p.defined(this.semiMinorAxis))
2225
- return new p.EllipseGeometry({
2282
+ if (g.defined(this.center) && g.defined(this.semiMajorAxis) && g.defined(this.semiMinorAxis))
2283
+ return new g.EllipseGeometry({
2226
2284
  ellipsoid: this.ellipsoid,
2227
2285
  center: this.center,
2228
2286
  semiMajorAxis: this.semiMajorAxis,
2229
2287
  semiMinorAxis: this.semiMinorAxis,
2230
2288
  rotation: this.rotation,
2231
2289
  height: this.height,
2232
- vertexFormat: p.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
2290
+ vertexFormat: g.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
2233
2291
  stRotation: this.textureRotationAngle,
2234
2292
  granularity: this.granularity
2235
2293
  });
2236
2294
  }, s.prototype.getOutlineGeometry = function() {
2237
- return new p.EllipseOutlineGeometry({
2295
+ return new g.EllipseOutlineGeometry({
2238
2296
  center: this.getCenter(),
2239
2297
  semiMajorAxis: this.getSemiMajorAxis(),
2240
2298
  semiMinorAxis: this.getSemiMinorAxis(),
@@ -2243,9 +2301,9 @@ var Te = function() {
2243
2301
  }, s;
2244
2302
  }(), i.PolylinePrimitive = function() {
2245
2303
  function s(a) {
2246
- a = A(a, E), this.initialiseOptions(a);
2304
+ a = k(a, E), this.initialiseOptions(a);
2247
2305
  }
2248
- return s.prototype = new S(), s.prototype.setPositions = function(a) {
2306
+ return s.prototype = new L(), s.prototype.setPositions = function(a) {
2249
2307
  this.setAttribute("positions", a);
2250
2308
  }, s.prototype.setWidth = function(a) {
2251
2309
  this.setAttribute("width", a);
@@ -2258,12 +2316,12 @@ var Te = function() {
2258
2316
  }, s.prototype.getGeodesic = function(a) {
2259
2317
  return this.getAttribute("geodesic");
2260
2318
  }, s.prototype.getGeometry = function() {
2261
- if (!(!p.defined(this.positions) || this.positions.length < 2))
2262
- return new p.PolylineGeometry({
2319
+ if (!(!g.defined(this.positions) || this.positions.length < 2))
2320
+ return new g.PolylineGeometry({
2263
2321
  positions: this.positions,
2264
2322
  height: this.height,
2265
2323
  width: this.width < 1 ? 1 : this.width,
2266
- vertexFormat: p.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
2324
+ vertexFormat: g.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
2267
2325
  ellipsoid: this.ellipsoid
2268
2326
  });
2269
2327
  }, s;
@@ -2276,7 +2334,7 @@ var Te = function() {
2276
2334
  iconUrl: "./assets/img/dragIcon.png",
2277
2335
  shiftX: 0,
2278
2336
  shiftY: 0
2279
- }, R = {
2337
+ }, A = {
2280
2338
  iconUrl: "./assets/img/dragIconLight.png",
2281
2339
  shiftX: 0,
2282
2340
  shiftY: 0
@@ -2285,17 +2343,17 @@ var Te = function() {
2285
2343
  var d = new i.BillboardGroup(this, a);
2286
2344
  return d.addBillboards(s, v), d;
2287
2345
  }, i.BillboardGroup = function(s, a) {
2288
- this._drawHelper = s, this._scene = s._scene, this._options = A(a, w);
2289
- var v = new p.BillboardCollection();
2346
+ this._drawHelper = s, this._scene = s._scene, this._options = k(a, w);
2347
+ var v = new g.BillboardCollection();
2290
2348
  this._scene.primitives.add(v), this._billboards = v, this._orderedBillboards = [];
2291
2349
  }, i.BillboardGroup.prototype.createBillboard = function(s, a) {
2292
2350
  var v = this._billboards.add({
2293
2351
  show: !0,
2294
2352
  position: s,
2295
- pixelOffset: new p.Cartesian2(this._options.shiftX, this._options.shiftY),
2296
- eyeOffset: new p.Cartesian3(0, 0, 0),
2297
- horizontalOrigin: p.HorizontalOrigin.CENTER,
2298
- verticalOrigin: p.VerticalOrigin.CENTER,
2353
+ pixelOffset: new g.Cartesian2(this._options.shiftX, this._options.shiftY),
2354
+ eyeOffset: new g.Cartesian3(0, 0, 0),
2355
+ horizontalOrigin: g.HorizontalOrigin.CENTER,
2356
+ verticalOrigin: g.VerticalOrigin.CENTER,
2299
2357
  scale: 1,
2300
2358
  image: this._options.iconUrl,
2301
2359
  color: n
@@ -2311,32 +2369,32 @@ var Te = function() {
2311
2369
  var d = this, y = this._scene.screenSpaceCameraController;
2312
2370
  if (a.dragHandlers) {
2313
2371
  var d = this;
2314
- W(v, "leftDown", function(T) {
2372
+ $(v, "leftDown", function(T) {
2315
2373
  function _(M) {
2316
2374
  v.position = M;
2317
- for (var I = 0, U = d._orderedBillboards.length; I < U && d._orderedBillboards[I] != v; ++I)
2375
+ for (var x = 0, W = d._orderedBillboards.length; x < W && d._orderedBillboards[x] != v; ++x)
2318
2376
  ;
2319
2377
  a.dragHandlers.onDrag && a.dragHandlers.onDrag(C(), M);
2320
2378
  }
2321
- function L(M) {
2379
+ function S(M) {
2322
2380
  b.destroy(), h(!0), a.dragHandlers.onDragEnd && a.dragHandlers.onDragEnd(C(), M);
2323
2381
  }
2324
- var b = new p.ScreenSpaceEventHandler(d._scene.canvas);
2382
+ var b = new g.ScreenSpaceEventHandler(d._scene.canvas);
2325
2383
  b.setInputAction(function(M) {
2326
- var I = d._scene.camera.pickEllipsoid(M.endPosition, e);
2327
- I ? _(I) : L(I);
2328
- }, p.ScreenSpaceEventType.MOUSE_MOVE), b.setInputAction(function(M) {
2329
- L(d._scene.camera.pickEllipsoid(M.position, e));
2330
- }, p.ScreenSpaceEventType.LEFT_UP), h(!1), a.dragHandlers.onDragStart && a.dragHandlers.onDragStart(C(), d._scene.camera.pickEllipsoid(T, e));
2384
+ var x = d._scene.camera.pickEllipsoid(M.endPosition, e);
2385
+ x ? _(x) : S(x);
2386
+ }, g.ScreenSpaceEventType.MOUSE_MOVE), b.setInputAction(function(M) {
2387
+ S(d._scene.camera.pickEllipsoid(M.position, e));
2388
+ }, g.ScreenSpaceEventType.LEFT_UP), h(!1), a.dragHandlers.onDragStart && a.dragHandlers.onDragStart(C(), d._scene.camera.pickEllipsoid(T, e));
2331
2389
  });
2332
2390
  }
2333
- a.onDoubleClick && W(v, "leftDoubleClick", function(f) {
2391
+ a.onDoubleClick && $(v, "leftDoubleClick", function(f) {
2334
2392
  a.onDoubleClick(C());
2335
- }), a.onClick && W(v, "leftClick", function(f) {
2393
+ }), a.onClick && $(v, "leftClick", function(f) {
2336
2394
  a.onClick(C());
2337
- }), a.tooltip && (W(v, "mouseMove", function(f) {
2395
+ }), a.tooltip && ($(v, "mouseMove", function(f) {
2338
2396
  d._drawHelper._tooltip.showAt(f, a.tooltip());
2339
- }), W(v, "mouseOut", function(f) {
2397
+ }), $(v, "mouseOut", function(f) {
2340
2398
  d._drawHelper._tooltip.setVisible(!1);
2341
2399
  }));
2342
2400
  }
@@ -2362,95 +2420,95 @@ var Te = function() {
2362
2420
  }, i.BillboardGroup.prototype.setOnTop = function() {
2363
2421
  this._scene.primitives.raiseToTop(this._billboards);
2364
2422
  }, i.prototype.startDrawingMarker = function(a) {
2365
- var a = A(a, w);
2423
+ var a = k(a, w);
2366
2424
  this.startDrawing(function() {
2367
2425
  h.remove(), C.destroy(), y.setVisible(!1);
2368
2426
  });
2369
2427
  var v = this, d = this._scene;
2370
2428
  d.primitives;
2371
- var y = this._tooltip, h = new i.BillboardGroup(this, a), C = new p.ScreenSpaceEventHandler(d.canvas);
2429
+ var y = this._tooltip, h = new i.BillboardGroup(this, a), C = new g.ScreenSpaceEventHandler(d.canvas);
2372
2430
  C.setInputAction(function(f) {
2373
2431
  if (f.position != null) {
2374
2432
  var T = d.camera.pickEllipsoid(f.position, e);
2375
2433
  T && (h.addBillboard(T), v.stopDrawing(), a.callback(T));
2376
2434
  }
2377
- }, p.ScreenSpaceEventType.LEFT_CLICK), C.setInputAction(function(f) {
2435
+ }, g.ScreenSpaceEventType.LEFT_CLICK), C.setInputAction(function(f) {
2378
2436
  var T = f.endPosition;
2379
2437
  if (T != null) {
2380
2438
  var _ = d.camera.pickEllipsoid(T, e);
2381
2439
  _ ? y.showAt(
2382
2440
  T,
2383
- "<p>Click to add your marker. Position is: </p>" + K(e.cartesianToCartographic(_))
2441
+ "<p>Click to add your marker. Position is: </p>" + j(e.cartesianToCartographic(_))
2384
2442
  ) : y.showAt(T, "<p>Click on the globe to add your marker.</p>");
2385
2443
  }
2386
- }, p.ScreenSpaceEventType.MOUSE_MOVE);
2444
+ }, g.ScreenSpaceEventType.MOUSE_MOVE);
2387
2445
  }, i.prototype.startDrawingPolygon = function(a) {
2388
- var a = A(a, r);
2446
+ var a = k(a, r);
2389
2447
  this.startDrawingPolyshape(!0, a);
2390
2448
  }, i.prototype.startDrawingPolyline = function(a) {
2391
- var a = A(a, E);
2449
+ var a = k(a, E);
2392
2450
  this.startDrawingPolyshape(!1, a);
2393
2451
  }, i.prototype.startDrawingPolyshape = function(s, a) {
2394
2452
  this.startDrawing(function() {
2395
- y.remove(f), _.remove(), L.destroy(), h.setVisible(!1), H(d);
2453
+ y.remove(f), _.remove(), S.destroy(), h.setVisible(!1), G(d);
2396
2454
  });
2397
2455
  var v = this, d = this._scene, y = d.primitives, h = this._tooltip, C = s ? 3 : 2, f;
2398
- s ? f = new Te.PolygonPrimitive(a) : f = new Te.PolylinePrimitive(a), f.asynchronous = !1, y.add(f);
2399
- var T = [], _ = new i.BillboardGroup(this, w), L = new p.ScreenSpaceEventHandler(d.canvas);
2400
- q(d), L.setInputAction(function(b) {
2456
+ s ? f = new be.PolygonPrimitive(a) : f = new be.PolylinePrimitive(a), f.asynchronous = !1, y.add(f);
2457
+ var T = [], _ = new i.BillboardGroup(this, w), S = new g.ScreenSpaceEventHandler(d.canvas);
2458
+ Y(d), S.setInputAction(function(b) {
2401
2459
  if (b.position != null) {
2402
2460
  var M = d.camera.pickEllipsoid(b.position, e);
2403
2461
  M && (T.length == 0 && (T.push(M.clone()), _.addBillboard(T[0])), T.length >= C && (f.positions = T, f._createPrimitive = !0), T.push(M), _.addBillboard(M));
2404
2462
  }
2405
- }, p.ScreenSpaceEventType.LEFT_CLICK), L.setInputAction(function(b) {
2463
+ }, g.ScreenSpaceEventType.LEFT_CLICK), S.setInputAction(function(b) {
2406
2464
  var M = b.endPosition;
2407
2465
  if (M != null)
2408
2466
  if (T.length == 0)
2409
2467
  h.showAt(M, "<p>Click to add first point</p>");
2410
2468
  else {
2411
- var I = d.camera.pickEllipsoid(M, e);
2412
- I && (T.pop(), I.y += 1 + Math.random(), T.push(I), T.length >= C && (f.positions = T, f._createPrimitive = !0), _.getBillboard(T.length - 1).position = I, h.showAt(
2469
+ var x = d.camera.pickEllipsoid(M, e);
2470
+ x && (T.pop(), x.y += 1 + Math.random(), T.push(x), T.length >= C && (f.positions = T, f._createPrimitive = !0), _.getBillboard(T.length - 1).position = x, h.showAt(
2413
2471
  M,
2414
2472
  "<p>Click to add new point (" + T.length + ")</p>" + (T.length > C ? "<p>Double click to finish drawing</p>" : "")
2415
2473
  ));
2416
2474
  }
2417
- }, p.ScreenSpaceEventType.MOUSE_MOVE), L.setInputAction(function(b) {
2475
+ }, g.ScreenSpaceEventType.MOUSE_MOVE), S.setInputAction(function(b) {
2418
2476
  var M = b.position;
2419
2477
  if (M != null) {
2420
2478
  if (T.length < C + 2)
2421
2479
  return;
2422
- var I = d.camera.pickEllipsoid(M, e);
2423
- I && (H(d), v.stopDrawing(), typeof a.callback == "function" && (T.length - 1, a.callback(T)));
2480
+ var x = d.camera.pickEllipsoid(M, e);
2481
+ x && (G(d), v.stopDrawing(), typeof a.callback == "function" && (T.length - 1, a.callback(T)));
2424
2482
  }
2425
- }, p.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
2483
+ }, g.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
2426
2484
  };
2427
- function G(s) {
2485
+ function H(s) {
2428
2486
  return e.cartographicArrayToCartesianArray([
2429
- p.Rectangle.northwest(s),
2430
- p.Rectangle.northeast(s),
2431
- p.Rectangle.southeast(s),
2432
- p.Rectangle.southwest(s)
2487
+ g.Rectangle.northwest(s),
2488
+ g.Rectangle.northeast(s),
2489
+ g.Rectangle.southeast(s),
2490
+ g.Rectangle.southwest(s)
2433
2491
  ]);
2434
2492
  }
2435
- function q(s) {
2493
+ function Y(s) {
2436
2494
  s && (s.canvas.style.cursor = "crosshair");
2437
2495
  }
2438
- function H(s) {
2496
+ function G(s) {
2439
2497
  s && (s.canvas.style.cursor = "");
2440
2498
  }
2441
2499
  i.prototype.startDrawingExtent = function(a) {
2442
- var a = A(a, r);
2500
+ var a = k(a, r);
2443
2501
  this.startDrawing(function() {
2444
- f != null && y.remove(f), T != null && T.remove(), _.destroy(), h.setVisible(!1), H(d);
2502
+ f != null && y.remove(f), T != null && T.remove(), _.destroy(), h.setVisible(!1), G(d);
2445
2503
  });
2446
- var v = this, d = this._scene, y = this._scene.primitives, h = this._tooltip, C = null, f = null, T = null, _ = new p.ScreenSpaceEventHandler(d.canvas);
2447
- q(d);
2448
- function L(b) {
2449
- f == null && (f = new Te.ExtentPrimitive({
2504
+ var v = this, d = this._scene, y = this._scene.primitives, h = this._tooltip, C = null, f = null, T = null, _ = new g.ScreenSpaceEventHandler(d.canvas);
2505
+ Y(d);
2506
+ function S(b) {
2507
+ f == null && (f = new be.ExtentPrimitive({
2450
2508
  extent: b,
2451
2509
  material: a.material
2452
2510
  }), f.asynchronous = !1, y.add(f)), f.setExtent(b);
2453
- var M = G(b);
2511
+ var M = H(b);
2454
2512
  T == null ? (T = new i.BillboardGroup(v, w), T.addBillboards(M)) : T.updateBillboardsPositions(M);
2455
2513
  }
2456
2514
  _.setInputAction(function(b) {
@@ -2459,53 +2517,53 @@ var Te = function() {
2459
2517
  if (M)
2460
2518
  if (f == null) {
2461
2519
  C = e.cartesianToCartographic(M);
2462
- var I = j(C, C);
2463
- L(I);
2520
+ var x = U(C, C);
2521
+ S(x);
2464
2522
  } else
2465
- v.stopDrawing(), typeof a.callback == "function" && a.callback(j(C, e.cartesianToCartographic(M)));
2523
+ v.stopDrawing(), typeof a.callback == "function" && a.callback(U(C, e.cartesianToCartographic(M)));
2466
2524
  }
2467
- }, p.ScreenSpaceEventType.LEFT_DOWN), _.setInputAction(function(b) {
2525
+ }, g.ScreenSpaceEventType.LEFT_DOWN), _.setInputAction(function(b) {
2468
2526
  var M = b.endPosition;
2469
2527
  if (M != null)
2470
2528
  if (f == null)
2471
2529
  h.showAt(M, "<p>Click to start drawing rectangle</p>");
2472
2530
  else {
2473
- var I = d.camera.pickEllipsoid(M, e);
2474
- if (I) {
2475
- var U = j(C, e.cartesianToCartographic(I));
2476
- L(U), h.showAt(M, "<p>Drag to change rectangle extent</p><p>Click again to finish drawing</p>");
2531
+ var x = d.camera.pickEllipsoid(M, e);
2532
+ if (x) {
2533
+ var W = U(C, e.cartesianToCartographic(x));
2534
+ S(W), h.showAt(M, "<p>Drag to change rectangle extent</p><p>Click again to finish drawing</p>");
2477
2535
  }
2478
2536
  }
2479
- }, p.ScreenSpaceEventType.MOUSE_MOVE);
2537
+ }, g.ScreenSpaceEventType.MOUSE_MOVE);
2480
2538
  }, i.prototype.startDrawingCircle = function(a) {
2481
- var a = A(a, r);
2539
+ var a = k(a, r);
2482
2540
  this.startDrawing(function() {
2483
2541
  C != null && y.remove(C), f.remove(), T.destroy(), h.setVisible(!1);
2484
2542
  });
2485
- var v = this, d = this._scene, y = this._scene.primitives, h = this._tooltip, C = null, f = null, T = new p.ScreenSpaceEventHandler(d.canvas);
2543
+ var v = this, d = this._scene, y = this._scene.primitives, h = this._tooltip, C = null, f = null, T = new g.ScreenSpaceEventHandler(d.canvas);
2486
2544
  T.setInputAction(function(_) {
2487
2545
  if (_.position != null) {
2488
- var L = d.camera.pickEllipsoid(_.position, e);
2489
- L && (C == null ? (C = new i.CirclePrimitive({
2490
- center: L,
2546
+ var S = d.camera.pickEllipsoid(_.position, e);
2547
+ S && (C == null ? (C = new i.CirclePrimitive({
2548
+ center: S,
2491
2549
  radius: 0,
2492
2550
  asynchronous: !1,
2493
2551
  material: a.material
2494
- }), y.add(C), f = new i.BillboardGroup(v, w), f.addBillboards([L])) : (typeof a.callback == "function" && a.callback(C.getCenter(), C.getRadius()), v.stopDrawing()));
2552
+ }), y.add(C), f = new i.BillboardGroup(v, w), f.addBillboards([S])) : (typeof a.callback == "function" && a.callback(C.getCenter(), C.getRadius()), v.stopDrawing()));
2495
2553
  }
2496
- }, p.ScreenSpaceEventType.LEFT_DOWN), T.setInputAction(function(_) {
2497
- var L = _.endPosition;
2498
- if (L != null)
2554
+ }, g.ScreenSpaceEventType.LEFT_DOWN), T.setInputAction(function(_) {
2555
+ var S = _.endPosition;
2556
+ if (S != null)
2499
2557
  if (C == null)
2500
- h.showAt(L, "<p>Click to start drawing the circle</p>");
2558
+ h.showAt(S, "<p>Click to start drawing the circle</p>");
2501
2559
  else {
2502
- var b = d.camera.pickEllipsoid(L, e);
2503
- b && (C.setRadius(p.Cartesian3.distance(C.getCenter(), b)), f.updateBillboardsPositions(b), h.showAt(L, "<p>Move mouse to change circle radius</p><p>Click again to finish drawing</p>"));
2560
+ var b = d.camera.pickEllipsoid(S, e);
2561
+ b && (C.setRadius(g.Cartesian3.distance(C.getCenter(), b)), f.updateBillboardsPositions(b), h.showAt(S, "<p>Move mouse to change circle radius</p><p>Click again to finish drawing</p>"));
2504
2562
  }
2505
- }, p.ScreenSpaceEventType.MOUSE_MOVE);
2563
+ }, g.ScreenSpaceEventType.MOUSE_MOVE);
2506
2564
  }, i.prototype.enhancePrimitives = function() {
2507
2565
  var s = this;
2508
- p.Billboard.prototype.setEditable = function() {
2566
+ g.Billboard.prototype.setEditable = function() {
2509
2567
  if (this._editable)
2510
2568
  return;
2511
2569
  this._editable = !0;
@@ -2513,24 +2571,24 @@ var Te = function() {
2513
2571
  function h(C) {
2514
2572
  s._scene.screenSpaceCameraController.enableRotate = C;
2515
2573
  }
2516
- W(d, "leftDown", function(C) {
2517
- function f(L) {
2518
- d.position = L, y.executeListeners({ name: "drag", positions: L });
2574
+ $(d, "leftDown", function(C) {
2575
+ function f(S) {
2576
+ d.position = S, y.executeListeners({ name: "drag", positions: S });
2519
2577
  }
2520
- function T(L) {
2521
- _.destroy(), h(!0), y.executeListeners({ name: "dragEnd", positions: L });
2578
+ function T(S) {
2579
+ _.destroy(), h(!0), y.executeListeners({ name: "dragEnd", positions: S });
2522
2580
  }
2523
- var _ = new p.ScreenSpaceEventHandler(s._scene.canvas);
2524
- _.setInputAction(function(L) {
2525
- var b = s._scene.camera.pickEllipsoid(L.endPosition, e);
2581
+ var _ = new g.ScreenSpaceEventHandler(s._scene.canvas);
2582
+ _.setInputAction(function(S) {
2583
+ var b = s._scene.camera.pickEllipsoid(S.endPosition, e);
2526
2584
  b ? f(b) : T(b);
2527
- }, p.ScreenSpaceEventType.MOUSE_MOVE), _.setInputAction(function(L) {
2528
- T(s._scene.camera.pickEllipsoid(L.position, e));
2529
- }, p.ScreenSpaceEventType.LEFT_UP), h(!1);
2530
- }), ne(d);
2585
+ }, g.ScreenSpaceEventType.MOUSE_MOVE), _.setInputAction(function(S) {
2586
+ T(s._scene.camera.pickEllipsoid(S.position, e));
2587
+ }, g.ScreenSpaceEventType.LEFT_UP), h(!1);
2588
+ }), te(d);
2531
2589
  };
2532
2590
  function a(d) {
2533
- s._scene, !(this._highlighted && this._highlighted == d) && this._editMode !== !0 && (this._highlighted = d, d ? (s.setHighlighted(this), this._strokeColor = this.strokeColor, this.setStrokeStyle(p.Color.fromCssColorString("white"), this.strokeWidth)) : this._strokeColor ? this.setStrokeStyle(this._strokeColor, this.strokeWidth) : this.setStrokeStyle(void 0, void 0));
2591
+ s._scene, !(this._highlighted && this._highlighted == d) && this._editMode !== !0 && (this._highlighted = d, d ? (s.setHighlighted(this), this._strokeColor = this.strokeColor, this.setStrokeStyle(g.Color.fromCssColorString("white"), this.strokeWidth)) : this._strokeColor ? this.setStrokeStyle(this._strokeColor, this.strokeWidth) : this.setStrokeStyle(void 0, void 0));
2534
2592
  }
2535
2593
  function v(d) {
2536
2594
  if (this._editMode != d)
@@ -2538,34 +2596,34 @@ var Te = function() {
2538
2596
  s.setEdited(this);
2539
2597
  var y = s._scene, h = this;
2540
2598
  if (this._markers == null) {
2541
- let I = function(k, z) {
2542
- var Q = k - 1 < 0 ? z.length - 1 : k - 1;
2543
- Q < f.countBillboards() && (f.getBillboard(Q).position = Y(Q)), Q = k, Q < f.countBillboards() && (f.getBillboard(Q).position = Y(Q));
2544
- }, U = function() {
2599
+ let x = function(R, V) {
2600
+ var Q = R - 1 < 0 ? V.length - 1 : R - 1;
2601
+ Q < f.countBillboards() && (f.getBillboard(Q).position = q(Q)), Q = R, Q < f.countBillboards() && (f.getBillboard(Q).position = q(Q));
2602
+ }, W = function() {
2545
2603
  h.executeListeners({
2546
2604
  name: "onEdited",
2547
2605
  positions: h.positions
2548
2606
  });
2549
- }, Y = function(k) {
2550
- var z = h.positions;
2607
+ }, q = function(R) {
2608
+ var V = h.positions;
2551
2609
  return e.cartographicToCartesian(
2552
- new p.EllipsoidGeodesic(
2553
- e.cartesianToCartographic(z[k]),
2554
- e.cartesianToCartographic(z[k < z.length - 1 ? k + 1 : 0])
2610
+ new g.EllipsoidGeodesic(
2611
+ e.cartesianToCartographic(V[R]),
2612
+ e.cartesianToCartographic(V[R < V.length - 1 ? R + 1 : 0])
2555
2613
  ).interpolateUsingFraction(0.5)
2556
2614
  );
2557
2615
  };
2558
- var C = new i.BillboardGroup(s, P), f = new i.BillboardGroup(s, R), T = {
2616
+ var C = new i.BillboardGroup(s, P), f = new i.BillboardGroup(s, A), T = {
2559
2617
  dragHandlers: {
2560
- onDrag: function(k, z) {
2561
- h.positions[k] = z, I(k, h.positions), h._createPrimitive = !0;
2618
+ onDrag: function(R, V) {
2619
+ h.positions[R] = V, x(R, h.positions), h._createPrimitive = !0;
2562
2620
  },
2563
- onDragEnd: function(k, z) {
2564
- h._createPrimitive = !0, U();
2621
+ onDragEnd: function(R, V) {
2622
+ h._createPrimitive = !0, W();
2565
2623
  }
2566
2624
  },
2567
- onDoubleClick: function(k) {
2568
- h.positions.length < 4 || (h.positions.splice(k, 1), h._createPrimitive = !0, C.removeBillboard(k), f.removeBillboard(k), I(k, h.positions), U());
2625
+ onDoubleClick: function(R) {
2626
+ h.positions.length < 4 || (h.positions.splice(R, 1), h._createPrimitive = !0, C.removeBillboard(R), f.removeBillboard(R), x(R, h.positions), W());
2569
2627
  },
2570
2628
  tooltip: function() {
2571
2629
  if (h.positions.length > 3)
@@ -2573,34 +2631,34 @@ var Te = function() {
2573
2631
  }
2574
2632
  };
2575
2633
  C.addBillboards(h.positions, T), this._markers = C;
2576
- for (var _ = [], L = 0, b = h.positions.length + (this.isPolygon ? 0 : -1); L < b; L++)
2577
- _.push(Y(L));
2634
+ for (var _ = [], S = 0, b = h.positions.length + (this.isPolygon ? 0 : -1); S < b; S++)
2635
+ _.push(q(S));
2578
2636
  var M = {
2579
2637
  dragHandlers: {
2580
- onDragStart: function(k, z) {
2581
- this.index = k + 1, h.positions.splice(this.index, 0, z), h._createPrimitive = !0;
2638
+ onDragStart: function(R, V) {
2639
+ this.index = R + 1, h.positions.splice(this.index, 0, V), h._createPrimitive = !0;
2582
2640
  },
2583
- onDrag: function(k, z) {
2584
- h.positions[this.index] = z, h._createPrimitive = !0;
2641
+ onDrag: function(R, V) {
2642
+ h.positions[this.index] = V, h._createPrimitive = !0;
2585
2643
  },
2586
- onDragEnd: function(k, z) {
2587
- C.insertBillboard(this.index, z, T), f.getBillboard(this.index - 1).position = Y(this.index - 1), f.insertBillboard(this.index, Y(this.index), M), h._createPrimitive = !0, U();
2644
+ onDragEnd: function(R, V) {
2645
+ C.insertBillboard(this.index, V, T), f.getBillboard(this.index - 1).position = q(this.index - 1), f.insertBillboard(this.index, q(this.index), M), h._createPrimitive = !0, W();
2588
2646
  }
2589
2647
  },
2590
2648
  tooltip: function() {
2591
2649
  return "Drag to create a new point";
2592
2650
  }
2593
2651
  };
2594
- f.addBillboards(_, M), this._editMarkers = f, this._globeClickhandler = new p.ScreenSpaceEventHandler(y.canvas), this._globeClickhandler.setInputAction(function(k) {
2595
- var z = y.pick(k.position);
2596
- z && z.primitive || h.setEditMode(!1);
2597
- }, p.ScreenSpaceEventType.LEFT_CLICK), C.setOnTop(), f.setOnTop();
2652
+ f.addBillboards(_, M), this._editMarkers = f, this._globeClickhandler = new g.ScreenSpaceEventHandler(y.canvas), this._globeClickhandler.setInputAction(function(R) {
2653
+ var V = y.pick(R.position);
2654
+ V && V.primitive || h.setEditMode(!1);
2655
+ }, g.ScreenSpaceEventType.LEFT_CLICK), C.setOnTop(), f.setOnTop();
2598
2656
  }
2599
2657
  this._editMode = !0;
2600
2658
  } else
2601
2659
  this._markers != null && (this._markers.remove(), this._editMarkers.remove(), this._markers = null, this._editMarkers = null, this._globeClickhandler.destroy()), this._editMode = !1;
2602
2660
  }
2603
- Te.PolylinePrimitive.prototype.setEditable = function() {
2661
+ be.PolylinePrimitive.prototype.setEditable = function() {
2604
2662
  if (!this.setEditMode) {
2605
2663
  var d = this;
2606
2664
  d.isPolygon = !1, d.asynchronous = !1, s.registerEditableShape(d), d.setEditMode = v;
@@ -2608,13 +2666,13 @@ var Te = function() {
2608
2666
  d.setHighlighted = function(h) {
2609
2667
  this._editMode !== !0 && (h ? (s.setHighlighted(this), this.setWidth(y * 2)) : this.setWidth(y));
2610
2668
  }, d.getExtent = function() {
2611
- return p.Rectangle.fromCartographicArray(e.cartesianArrayToCartographicArray(this.positions));
2612
- }, ne(d), d.setEditMode(!1);
2669
+ return g.Rectangle.fromCartographicArray(e.cartesianArrayToCartographicArray(this.positions));
2670
+ }, te(d), d.setEditMode(!1);
2613
2671
  }
2614
- }, Te.PolygonPrimitive.prototype.setEditable = function() {
2672
+ }, be.PolygonPrimitive.prototype.setEditable = function() {
2615
2673
  var d = this;
2616
- d.asynchronous = !1, s._scene, s.registerEditableShape(d), d.setEditMode = v, d.setHighlighted = a, ne(d), d.setEditMode(!1);
2617
- }, Te.ExtentPrimitive.prototype.setEditable = function() {
2674
+ d.asynchronous = !1, s._scene, s.registerEditableShape(d), d.setEditMode = v, d.setHighlighted = a, te(d), d.setEditMode(!1);
2675
+ }, be.ExtentPrimitive.prototype.setEditable = function() {
2618
2676
  if (!this.setEditMode) {
2619
2677
  var d = this, y = s._scene;
2620
2678
  s.registerEditableShape(d), d.asynchronous = !1, d.setEditMode = function(h) {
@@ -2629,11 +2687,11 @@ var Te = function() {
2629
2687
  };
2630
2688
  var C = new i.BillboardGroup(s, P), f = {
2631
2689
  dragHandlers: {
2632
- onDrag: function(_, L) {
2690
+ onDrag: function(_, S) {
2633
2691
  var b = C.getBillboard((_ + 2) % 4).position;
2634
- d.setExtent(j(e.cartesianToCartographic(b), e.cartesianToCartographic(L))), C.updateBillboardsPositions(G(d.extent));
2692
+ d.setExtent(U(e.cartesianToCartographic(b), e.cartesianToCartographic(S))), C.updateBillboardsPositions(H(d.extent));
2635
2693
  },
2636
- onDragEnd: function(_, L) {
2694
+ onDragEnd: function(_, S) {
2637
2695
  T();
2638
2696
  }
2639
2697
  },
@@ -2641,15 +2699,15 @@ var Te = function() {
2641
2699
  return "Drag to change the corners of this extent";
2642
2700
  }
2643
2701
  };
2644
- C.addBillboards(G(d.extent), f), this._markers = C, this._globeClickhandler = new p.ScreenSpaceEventHandler(y.canvas), this._globeClickhandler.setInputAction(function(_) {
2645
- var L = y.pick(_.position);
2646
- L && !L.isDestroyed() && L.primitive || d.setEditMode(!1);
2647
- }, p.ScreenSpaceEventType.LEFT_CLICK), C.setOnTop();
2702
+ C.addBillboards(H(d.extent), f), this._markers = C, this._globeClickhandler = new g.ScreenSpaceEventHandler(y.canvas), this._globeClickhandler.setInputAction(function(_) {
2703
+ var S = y.pick(_.position);
2704
+ S && !S.isDestroyed() && S.primitive || d.setEditMode(!1);
2705
+ }, g.ScreenSpaceEventType.LEFT_CLICK), C.setOnTop();
2648
2706
  }
2649
2707
  this._editMode = !0;
2650
2708
  } else
2651
2709
  this._markers != null && (this._markers.remove(), this._markers = null, this._globeClickhandler.destroy()), this._editMode = !1;
2652
- }, d.setHighlighted = a, ne(d), d.setEditMode(!1);
2710
+ }, d.setHighlighted = a, te(d), d.setEditMode(!1);
2653
2711
  }
2654
2712
  }, i.EllipsePrimitive.prototype.setEditable = function() {
2655
2713
  if (!this.setEditMode) {
@@ -2661,7 +2719,7 @@ var Te = function() {
2661
2719
  var C = this;
2662
2720
  if (this._markers == null) {
2663
2721
  let _ = function() {
2664
- return p.EllipseOutlineGeometry(
2722
+ return g.EllipseOutlineGeometry(
2665
2723
  e,
2666
2724
  d.getCenter(),
2667
2725
  d.getSemiMajorAxis(),
@@ -2669,7 +2727,7 @@ var Te = function() {
2669
2727
  d.getRotation() + Math.PI / 2,
2670
2728
  Math.PI / 2
2671
2729
  ).splice(0, 4);
2672
- }, L = function() {
2730
+ }, S = function() {
2673
2731
  d.executeListeners({
2674
2732
  name: "onEdited",
2675
2733
  center: d.getCenter(),
@@ -2681,37 +2739,37 @@ var Te = function() {
2681
2739
  var f = new i.BillboardGroup(s, P), T = {
2682
2740
  dragHandlers: {
2683
2741
  onDrag: function(b, M) {
2684
- var I = p.Cartesian3.distance(d.getCenter(), M);
2685
- b % 2 == 0 ? d.setSemiMajorAxis(I) : d.setSemiMinorAxis(I), f.updateBillboardsPositions(_());
2742
+ var x = g.Cartesian3.distance(d.getCenter(), M);
2743
+ b % 2 == 0 ? d.setSemiMajorAxis(x) : d.setSemiMinorAxis(x), f.updateBillboardsPositions(_());
2686
2744
  },
2687
2745
  onDragEnd: function(b, M) {
2688
- L();
2746
+ S();
2689
2747
  }
2690
2748
  },
2691
2749
  tooltip: function() {
2692
2750
  return "Drag to change the excentricity and radius";
2693
2751
  }
2694
2752
  };
2695
- f.addBillboards(_(), T), this._markers = f, this._globeClickhandler = new p.ScreenSpaceEventHandler(y.canvas), this._globeClickhandler.setInputAction(function(b) {
2753
+ f.addBillboards(_(), T), this._markers = f, this._globeClickhandler = new g.ScreenSpaceEventHandler(y.canvas), this._globeClickhandler.setInputAction(function(b) {
2696
2754
  var M = y.pick(b.position);
2697
2755
  M && M.primitive || C.setEditMode(!1);
2698
- }, p.ScreenSpaceEventType.LEFT_CLICK), f.setOnTop();
2756
+ }, g.ScreenSpaceEventType.LEFT_CLICK), f.setOnTop();
2699
2757
  }
2700
2758
  this._editMode = !0;
2701
2759
  } else
2702
2760
  this._markers != null && (this._markers.remove(), this._markers = null, this._globeClickhandler.destroy()), this._editMode = !1;
2703
- }, d.setHighlighted = a, ne(d), d.setEditMode(!1);
2761
+ }, d.setHighlighted = a, te(d), d.setEditMode(!1);
2704
2762
  }
2705
2763
  }, i.CirclePrimitive.prototype.getCircleCartesianCoordinates = function(d) {
2706
- for (var y = p.CircleOutlineGeometry.createGeometry(
2707
- new p.CircleOutlineGeometry({
2764
+ for (var y = g.CircleOutlineGeometry.createGeometry(
2765
+ new g.CircleOutlineGeometry({
2708
2766
  ellipsoid: e,
2709
2767
  center: this.getCenter(),
2710
2768
  radius: this.getRadius(),
2711
2769
  granularity: d
2712
2770
  })
2713
2771
  ), h = 0, C, f = []; h < y.attributes.position.values.length; h += 3)
2714
- C = y.attributes.position.values, f.push(new p.Cartesian3(C[h], C[h + 1], C[h + 2]));
2772
+ C = y.attributes.position.values, f.push(new g.Cartesian3(C[h], C[h + 1], C[h + 2]));
2715
2773
  return f;
2716
2774
  }, i.CirclePrimitive.prototype.setEditable = function() {
2717
2775
  if (!this.setEditMode) {
@@ -2723,8 +2781,8 @@ var Te = function() {
2723
2781
  var C = this;
2724
2782
  if (this._markers == null) {
2725
2783
  let _ = function() {
2726
- return C.getCircleCartesianCoordinates(p.Math.PI_OVER_TWO);
2727
- }, L = function() {
2784
+ return C.getCircleCartesianCoordinates(g.Math.PI_OVER_TWO);
2785
+ }, S = function() {
2728
2786
  d.executeListeners({
2729
2787
  name: "onEdited",
2730
2788
  center: d.getCenter(),
@@ -2734,31 +2792,31 @@ var Te = function() {
2734
2792
  var f = new i.BillboardGroup(s, P), T = {
2735
2793
  dragHandlers: {
2736
2794
  onDrag: function(b, M) {
2737
- d.setRadius(p.Cartesian3.distance(d.getCenter(), M)), f.updateBillboardsPositions(_());
2795
+ d.setRadius(g.Cartesian3.distance(d.getCenter(), M)), f.updateBillboardsPositions(_());
2738
2796
  },
2739
2797
  onDragEnd: function(b, M) {
2740
- L();
2798
+ S();
2741
2799
  }
2742
2800
  },
2743
2801
  tooltip: function() {
2744
2802
  return "Drag to change the radius";
2745
2803
  }
2746
2804
  };
2747
- f.addBillboards(_(), T), this._markers = f, this._globeClickhandler = new p.ScreenSpaceEventHandler(y.canvas), this._globeClickhandler.setInputAction(function(b) {
2805
+ f.addBillboards(_(), T), this._markers = f, this._globeClickhandler = new g.ScreenSpaceEventHandler(y.canvas), this._globeClickhandler.setInputAction(function(b) {
2748
2806
  var M = y.pick(b.position);
2749
2807
  M && M.primitive || C.setEditMode(!1);
2750
- }, p.ScreenSpaceEventType.LEFT_CLICK), f.setOnTop();
2808
+ }, g.ScreenSpaceEventType.LEFT_CLICK), f.setOnTop();
2751
2809
  }
2752
2810
  this._editMode = !0;
2753
2811
  } else
2754
2812
  this._markers != null && (this._markers.remove(), this._markers = null, this._globeClickhandler.destroy()), this._editMode = !1;
2755
- }, d.setHighlighted = a, ne(d), d.setEditMode(!1);
2813
+ }, d.setHighlighted = a, te(d), d.setEditMode(!1);
2756
2814
  }
2757
2815
  };
2758
2816
  }, i.DrawHelperWidget = function() {
2759
2817
  function s(a, v) {
2760
- if (!p.defined(v.container))
2761
- throw new p.DeveloperError("Container is required");
2818
+ if (!g.defined(v.container))
2819
+ throw new g.DeveloperError("Container is required");
2762
2820
  var d = {
2763
2821
  markerIcon: "./assets/img/glyphicons_242_google_maps.png",
2764
2822
  polylineIcon: "./assets/img/glyphicons_097_vector_path_line.png",
@@ -2771,16 +2829,16 @@ var Te = function() {
2771
2829
  extentDrawingOptions: u,
2772
2830
  circleDrawingOptions: m
2773
2831
  };
2774
- $(v, d);
2832
+ z(v, d);
2775
2833
  var y = this, h = document.createElement("DIV");
2776
2834
  h.className = "toolbar", v.container.appendChild(h);
2777
- function C(_, L, b, M) {
2778
- var I = document.createElement("DIV");
2779
- I.className = "button", I.title = b, h.appendChild(I), I.onclick = M;
2780
- var U = document.createElement("SPAN");
2781
- I.appendChild(U);
2782
- var Y = document.createElement("IMG");
2783
- return Y.src = L, U.appendChild(Y), I;
2835
+ function C(_, S, b, M) {
2836
+ var x = document.createElement("DIV");
2837
+ x.className = "button", x.title = b, h.appendChild(x), x.onclick = M;
2838
+ var W = document.createElement("SPAN");
2839
+ x.appendChild(W);
2840
+ var q = document.createElement("IMG");
2841
+ return q.src = S, W.appendChild(q), x;
2784
2842
  }
2785
2843
  var f = a._scene;
2786
2844
  C("marker", v.markerIcon, "Click to start drawing a 2D marker", function() {
@@ -2818,11 +2876,11 @@ var Te = function() {
2818
2876
  });
2819
2877
  }), C("circle", v.circleIcon, "Click to start drawing a Circle", function() {
2820
2878
  a.startDrawingCircle({
2821
- callback: function(_, L) {
2879
+ callback: function(_, S) {
2822
2880
  y.executeListeners({
2823
2881
  name: "circleCreated",
2824
2882
  center: _,
2825
- radius: L
2883
+ radius: S
2826
2884
  });
2827
2885
  }
2828
2886
  });
@@ -2830,19 +2888,19 @@ var Te = function() {
2830
2888
  var T = document.createElement("DIV");
2831
2889
  T.className = "divider", h.appendChild(T), C("clear", v.clearIcon, "Remove all primitives", function() {
2832
2890
  f.primitives.removeAll();
2833
- }), ne(this);
2891
+ }), te(this);
2834
2892
  }
2835
2893
  return s;
2836
2894
  }(), i.prototype.addToolbar = function(s, a) {
2837
- return a = A(a, { container: s }), new i.DrawHelperWidget(this, a);
2895
+ return a = k(a, { container: s }), new i.DrawHelperWidget(this, a);
2838
2896
  };
2839
- function j(s, a) {
2840
- var v = new p.Rectangle();
2897
+ function U(s, a) {
2898
+ var v = new g.Rectangle();
2841
2899
  v.west = Math.min(s.longitude, a.longitude), v.east = Math.max(s.longitude, a.longitude), v.south = Math.min(s.latitude, a.latitude), v.north = Math.max(s.latitude, a.latitude);
2842
- var d = p.Math.EPSILON7;
2900
+ var d = g.Math.EPSILON7;
2843
2901
  return v.east - v.west < d && (v.east += d * 2), v.north - v.south < d && (v.north += d * 2), v;
2844
2902
  }
2845
- function K(s, a) {
2903
+ function j(s, a) {
2846
2904
  return s.longitude.toFixed(a || 3) + ", " + s.latitude.toFixed(a || 3);
2847
2905
  }
2848
2906
  function O(s, a) {
@@ -2855,22 +2913,22 @@ var Te = function() {
2855
2913
  a[v] = typeof a[v] > "u" ? O(s[v], null) : a[v];
2856
2914
  return a;
2857
2915
  }
2858
- function $(s, a) {
2916
+ function z(s, a) {
2859
2917
  s = s || {};
2860
2918
  var v;
2861
2919
  for (v in a)
2862
2920
  s[v] === void 0 && (s[v] = O(a[v]));
2863
2921
  }
2864
- function A(s, a) {
2922
+ function k(s, a) {
2865
2923
  var v = O(s), d;
2866
2924
  for (d in a)
2867
2925
  v[d] === void 0 && (v[d] = O(a[d]));
2868
2926
  return v;
2869
2927
  }
2870
- function W(s, a, v) {
2928
+ function $(s, a, v) {
2871
2929
  s[a] = v;
2872
2930
  }
2873
- function ne(s) {
2931
+ function te(s) {
2874
2932
  s._listeners = {}, s.addListener = function(a, v) {
2875
2933
  return this._listeners[a] = this._listeners[a] || [], this._listeners[a].push(v), this._listeners[a].length;
2876
2934
  }, s.executeListeners = function(a, v) {
@@ -2883,22 +2941,22 @@ var Te = function() {
2883
2941
  }
2884
2942
  return i;
2885
2943
  }();
2886
- const Mo = 2, Po = (e, n) => {
2944
+ const Oo = 2, Ao = (e, n) => {
2887
2945
  switch (e) {
2888
- case ae.BOX: {
2889
- if (n.features.length !== Mo)
2946
+ case le.BOX: {
2947
+ if (n.features.length !== Oo)
2890
2948
  throw new Error(`${e} must have 2 points`);
2891
- const t = bt(n.features, (o) => {
2949
+ const t = _t(n.features, (o) => {
2892
2950
  var r;
2893
- return ((r = o.properties) == null ? void 0 : r.type) === ct.BOTTOM_LEFT;
2894
- }), i = bt(n.features, (o) => {
2951
+ return ((r = o.properties) == null ? void 0 : r.type) === dt.BOTTOM_LEFT;
2952
+ }), i = _t(n.features, (o) => {
2895
2953
  var r;
2896
- return ((r = o.properties) == null ? void 0 : r.type) === ct.TOP_RIGHT;
2954
+ return ((r = o.properties) == null ? void 0 : r.type) === dt.TOP_RIGHT;
2897
2955
  });
2898
2956
  if (i && t) {
2899
2957
  if (t.geometry.coordinates[0] === i.geometry.coordinates[0] && t.geometry.coordinates[1] === i.geometry.coordinates[1])
2900
2958
  throw new Error(`${e} must define BOTTOM_LEFT and TOP_RIGHT different points`);
2901
- return De.fromDegrees(
2959
+ return Oe.fromDegrees(
2902
2960
  t.geometry.coordinates[0],
2903
2961
  t.geometry.coordinates[1],
2904
2962
  i.geometry.coordinates[0],
@@ -2910,10 +2968,10 @@ const Mo = 2, Po = (e, n) => {
2910
2968
  default:
2911
2969
  throw new Error(`${e} type geoJSON still not supported`);
2912
2970
  }
2913
- }, Io = (e) => {
2971
+ }, ko = (e) => {
2914
2972
  const n = e.map((t) => {
2915
- const i = Be.fromCartesian(t);
2916
- return [ge.toDegrees(i.longitude), ge.toDegrees(i.latitude)];
2973
+ const i = He.fromCartesian(t);
2974
+ return [fe.toDegrees(i.longitude), fe.toDegrees(i.latitude)];
2917
2975
  });
2918
2976
  return n.push(n[0]), {
2919
2977
  type: "Feature",
@@ -2923,51 +2981,51 @@ const Mo = 2, Po = (e, n) => {
2923
2981
  coordinates: [n]
2924
2982
  }
2925
2983
  };
2926
- }, Do = (e) => {
2927
- const n = Qt.lineString([
2928
- [ge.toDegrees(e.west), ge.toDegrees(e.south)],
2929
- [ge.toDegrees(e.east), ge.toDegrees(e.north)]
2984
+ }, Ro = (e) => {
2985
+ const n = nn.lineString([
2986
+ [fe.toDegrees(e.west), fe.toDegrees(e.south)],
2987
+ [fe.toDegrees(e.east), fe.toDegrees(e.north)]
2930
2988
  ]);
2931
- return tn(en(n));
2932
- }, xo = (e) => {
2933
- const n = Qt.lineString([
2989
+ return on(rn(n));
2990
+ }, No = (e) => {
2991
+ const n = nn.lineString([
2934
2992
  [e.west, e.south],
2935
2993
  [e.east, e.north]
2936
2994
  ]);
2937
- return tn(en(n)).geometry.coordinates[0].map((i) => ve.fromRadiansArray(i)[0]);
2995
+ return on(rn(n)).geometry.coordinates[0].map((i) => ve.fromRadiansArray(i)[0]);
2938
2996
  };
2939
- class Oa extends at {
2997
+ class Va extends lt {
2940
2998
  }
2941
- const Aa = (e) => {
2942
- const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: o, hollow: r, outlineWidth: c } = e, u = le(), [m, g] = x();
2943
- D(() => {
2944
- g(
2999
+ const za = (e) => {
3000
+ const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: o, hollow: r, outlineWidth: c } = e, u = se(), [m, p] = D();
3001
+ I(() => {
3002
+ p(
2945
3003
  // eslint-disable-next-line
2946
- new Te(u, t, i)
3004
+ new be(u, t, i)
2947
3005
  );
2948
- }, []), D(() => {
3006
+ }, []), I(() => {
2949
3007
  if (m) {
2950
- const S = m;
3008
+ const L = m;
2951
3009
  if (n.drawing)
2952
3010
  switch (n.type) {
2953
- case ae.POLYGON:
2954
- u.scene.globe.depthTestAgainstTerrain = !1, S.startDrawingPolygon({
3011
+ case le.POLYGON:
3012
+ u.scene.globe.depthTestAgainstTerrain = !1, L.startDrawingPolygon({
2955
3013
  callback: (w) => {
2956
3014
  n.handler({
2957
3015
  primitive: w,
2958
- type: ae.POLYGON,
2959
- geojson: Io(w)
3016
+ type: le.POLYGON,
3017
+ geojson: ko(w)
2960
3018
  });
2961
3019
  }
2962
3020
  });
2963
3021
  break;
2964
- case ae.BOX:
2965
- u.scene.globe.depthTestAgainstTerrain = !1, S.startDrawingExtent({
3022
+ case le.BOX:
3023
+ u.scene.globe.depthTestAgainstTerrain = !1, L.startDrawingExtent({
2966
3024
  callback: (w) => {
2967
3025
  n.handler({
2968
3026
  primitive: w,
2969
- type: ae.BOX,
2970
- geojson: Do(w)
3027
+ type: le.BOX,
3028
+ geojson: Ro(w)
2971
3029
  });
2972
3030
  }
2973
3031
  });
@@ -2976,60 +3034,60 @@ const Aa = (e) => {
2976
3034
  throw new Error(`[CESIUM DRAW]: ${n.type} unrecognized primitive to draw.`);
2977
3035
  }
2978
3036
  else
2979
- S.stopDrawing(), u.scene.globe.depthTestAgainstTerrain = !0;
3037
+ L.stopDrawing(), u.scene.globe.depthTestAgainstTerrain = !0;
2980
3038
  }
2981
3039
  }, [n, m]);
2982
- const E = (S) => {
3040
+ const E = (L) => {
2983
3041
  try {
2984
- let w = S.coordinates !== void 0 ? S.coordinates : Po(S.type, S.geojson);
3042
+ let w = L.coordinates !== void 0 ? L.coordinates : Ao(L.type, L.geojson);
2985
3043
  if (r !== !0)
2986
- switch (S.type) {
2987
- case ae.BOX:
2988
- return /* @__PURE__ */ l(So, { coordinates: w, material: o ?? t });
2989
- case ae.POLYGON:
2990
- return /* @__PURE__ */ l(bo, { hierarchy: new Ki(w), material: o ?? t });
3044
+ switch (L.type) {
3045
+ case le.BOX:
3046
+ return /* @__PURE__ */ l(xo, { coordinates: w, material: o ?? t });
3047
+ case le.POLYGON:
3048
+ return /* @__PURE__ */ l(Po, { hierarchy: new Zi(w), material: o ?? t });
2991
3049
  default:
2992
- return /* @__PURE__ */ l(te, {});
3050
+ return /* @__PURE__ */ l(oe, {});
2993
3051
  }
2994
3052
  else {
2995
- switch (S.type) {
2996
- case ae.BOX:
2997
- w = xo(w);
3053
+ switch (L.type) {
3054
+ case le.BOX:
3055
+ w = No(w);
2998
3056
  break;
2999
- case ae.POLYGON:
3057
+ case le.POLYGON:
3000
3058
  w = [...w, w[0]];
3001
3059
  break;
3002
3060
  default:
3003
- return /* @__PURE__ */ l(te, {});
3061
+ return /* @__PURE__ */ l(oe, {});
3004
3062
  }
3005
- return /* @__PURE__ */ l(_o, { clampToGround: !0, positions: w, width: c ?? 1, material: o ?? t });
3063
+ return /* @__PURE__ */ l(Do, { clampToGround: !0, positions: w, width: c ?? 1, material: o ?? t });
3006
3064
  }
3007
3065
  } catch (w) {
3008
- return console.error(w), /* @__PURE__ */ l(te, {});
3066
+ return console.error(w), /* @__PURE__ */ l(oe, {});
3009
3067
  }
3010
3068
  };
3011
- return /* @__PURE__ */ l(Lo, { ...e, children: e.drawings.map((S, w) => /* @__PURE__ */ N(wo, { name: S.name, children: [
3012
- /* @__PURE__ */ N(To, { children: [
3069
+ return /* @__PURE__ */ l(Io, { ...e, children: e.drawings.map((L, w) => /* @__PURE__ */ N(_o, { name: L.name, children: [
3070
+ /* @__PURE__ */ N(Mo, { children: [
3013
3071
  /* @__PURE__ */ N("h1", { children: [
3014
3072
  "Drawed Entity ",
3015
- S.name
3073
+ L.name
3016
3074
  ] }),
3017
3075
  /* @__PURE__ */ l("p", { children: "This is description of drawed entity" })
3018
3076
  ] }),
3019
- E(S)
3020
- ] }, S.id)) });
3021
- }, ka = (e) => {
3022
- const n = le();
3023
- return D(() => {
3024
- n.extend(qi);
3025
- }, [n]), /* @__PURE__ */ l(te, {});
3026
- }, Oo = -25, Ht = 2, Ra = (e) => {
3027
- const n = le(), t = (r, c = ",") => r.slice(r.indexOf(`
3077
+ E(L)
3078
+ ] }, L.id)) });
3079
+ }, $a = (e) => {
3080
+ const n = se();
3081
+ return I(() => {
3082
+ n.extend(Ji);
3083
+ }, [n]), /* @__PURE__ */ l(oe, {});
3084
+ }, Bo = -25, zt = 2, Wa = (e) => {
3085
+ const n = se(), t = (r, c = ",") => r.slice(r.indexOf(`
3028
3086
  `) + 1).split(`
3029
- `).map((g) => {
3030
- const E = g.split(c);
3087
+ `).map((p) => {
3088
+ const E = p.split(c);
3031
3089
  return {
3032
- cartographic: Be.fromDegrees(parseFloat(E[0]), parseFloat(E[1])),
3090
+ cartographic: He.fromDegrees(parseFloat(E[0]), parseFloat(E[1])),
3033
3091
  cartesian: new Ce(parseFloat(E[0]), parseFloat(E[1]))
3034
3092
  };
3035
3093
  }), i = (r) => {
@@ -3038,36 +3096,36 @@ const Aa = (e) => {
3038
3096
  const c = new FileReader();
3039
3097
  c.onload = (m) => {
3040
3098
  var w;
3041
- const g = (w = m.target) == null ? void 0 : w.result, E = t(g), S = Zt.WGS84;
3099
+ const p = (w = m.target) == null ? void 0 : w.result, E = t(p), L = en.WGS84;
3042
3100
  console.log(`Loaded CSV content:
3043
- `, g), Yi(
3101
+ `, p), Qi(
3044
3102
  n.terrainProvider,
3045
3103
  E.map((P) => P.cartographic)
3046
3104
  ).then(
3047
3105
  (P) => {
3048
- console.log(P), P = P.slice(0, P.length - 1), n.scene.globe.depthTestAgainstTerrain = !0, n.entities.suspendEvents(), n.entities.removeAll(), P.forEach((R, G) => {
3106
+ console.log(P), P = P.slice(0, P.length - 1), n.scene.globe.depthTestAgainstTerrain = !0, n.entities.suspendEvents(), n.entities.removeAll(), P.forEach((A, H) => {
3049
3107
  n.entities.add({
3050
- name: (G + Ht).toString(),
3051
- position: S.cartographicToCartesian(R),
3108
+ name: (H + zt).toString(),
3109
+ position: L.cartographicToCartesian(A),
3052
3110
  billboard: {
3053
- verticalOrigin: st.BOTTOM,
3111
+ verticalOrigin: at.BOTTOM,
3054
3112
  scale: 0.7,
3055
3113
  image: "assets/img/map-marker.gif"
3056
3114
  },
3057
3115
  label: {
3058
- text: (G + Ht).toString(),
3116
+ text: (H + zt).toString(),
3059
3117
  font: "14pt monospace",
3060
- fillColor: at.BLACK,
3061
- style: Jt.FILL_AND_OUTLINE,
3118
+ fillColor: lt.BLACK,
3119
+ style: tn.FILL_AND_OUTLINE,
3062
3120
  outlineWidth: 4,
3063
- outlineColor: at.BLACK,
3064
- verticalOrigin: st.BOTTOM,
3065
- pixelOffset: new Ce(0, Oo)
3121
+ outlineColor: lt.BLACK,
3122
+ verticalOrigin: at.BOTTOM,
3123
+ pixelOffset: new Ce(0, Bo)
3066
3124
  },
3067
3125
  description: `
3068
- Long: ${E[G].cartesian.x} </br>
3069
- Lat: ${E[G].cartesian.y} </br>
3070
- Height(m): <span style="font-weight: 500">${R.height}</span>
3126
+ Long: ${E[H].cartesian.x} </br>
3127
+ Lat: ${E[H].cartesian.y} </br>
3128
+ Height(m): <span style="font-weight: 500">${A.height}</span>
3071
3129
  `
3072
3130
  });
3073
3131
  }), n.entities.resumeEvents(), r.target.files !== null && (o(`terranian_heights_${r.target.files[0].name}`, E), r.target.value = ""), console.log("Pinned point count is ", n.entities.values.length);
@@ -3088,10 +3146,10 @@ const Aa = (e) => {
3088
3146
  c.forEach((w) => {
3089
3147
  m += u(w);
3090
3148
  });
3091
- const g = new Blob([m], { type: "text/csv;charset=utf-8;" }), E = document.createElement("a"), S = URL.createObjectURL(g);
3092
- E.setAttribute("href", S), E.setAttribute("download", r), E.style.visibility = "hidden", document.body.appendChild(E), E.click(), document.body.removeChild(E);
3149
+ const p = new Blob([m], { type: "text/csv;charset=utf-8;" }), E = document.createElement("a"), L = URL.createObjectURL(p);
3150
+ E.setAttribute("href", L), E.setAttribute("download", r), E.style.visibility = "hidden", document.body.appendChild(E), E.click(), document.body.removeChild(E);
3093
3151
  };
3094
- return /* @__PURE__ */ l(te, { children: /* @__PURE__ */ l(
3152
+ return /* @__PURE__ */ l(oe, { children: /* @__PURE__ */ l(
3095
3153
  "input",
3096
3154
  {
3097
3155
  type: "file",
@@ -3103,8 +3161,8 @@ const Aa = (e) => {
3103
3161
  }
3104
3162
  ) });
3105
3163
  };
3106
- const Ao = 38, ko = 40, Ro = 13, No = 14, Bo = 27, Fo = 9, Ho = 10, Vo = 100, Go = (e) => {
3107
- const [n, t] = x(e.defaultValue ?? ""), [i, o] = x(!1), [r, c] = x({
3164
+ const Fo = 38, Ho = 40, Go = 13, Vo = 14, zo = 27, $o = 9, Wo = 10, Uo = 100, jo = (e) => {
3165
+ const [n, t] = D(e.defaultValue ?? ""), [i, o] = D(!1), [r, c] = D({
3108
3166
  helperVisible: !1,
3109
3167
  left: 0,
3110
3168
  right: 0,
@@ -3118,92 +3176,92 @@ const Ao = 38, ko = 40, Ro = 13, No = 14, Bo = 27, Fo = 9, Ho = 10, Vo = 100, Go
3118
3176
  caret: 0,
3119
3177
  width: "unset"
3120
3178
  }), u = Se(null);
3121
- D(() => (window.addEventListener("resize", R), () => {
3179
+ I(() => (window.addEventListener("resize", A), () => {
3122
3180
  try {
3123
- window.removeEventListener("resize", R);
3181
+ window.removeEventListener("resize", A);
3124
3182
  } catch (y) {
3125
3183
  console.log('WINDOW "resize" remove listener failed', y);
3126
3184
  }
3127
- }), []), D(() => {
3185
+ }), []), I(() => {
3128
3186
  typeof e.value < "u" && t(e.value), typeof e.defaultValue < "u" && t(e.defaultValue);
3129
- }, [e.value, e.defaultValue]), D(() => {
3187
+ }, [e.value, e.defaultValue]), I(() => {
3130
3188
  const { options: y } = e, { caret: h } = r;
3131
- j(n, h, y);
3189
+ U(n, h, y);
3132
3190
  }, [e]);
3133
3191
  const m = (y, h, C) => {
3134
- const { trigger: f, matchAny: T, regex: _ } = e, L = new RegExp(_);
3192
+ const { trigger: f, matchAny: T, regex: _ } = e, S = new RegExp(_);
3135
3193
  let b = f;
3136
3194
  Array.isArray(b) || (b = new Array(f)), b.sort();
3137
3195
  const M = {};
3138
- Array.isArray(C) && b.forEach((Y) => {
3139
- M[Y] = C;
3196
+ Array.isArray(C) && b.forEach((q) => {
3197
+ M[q] = C;
3140
3198
  });
3141
- const I = g(b, L);
3142
- let U = {};
3143
- for (let Y = 0; Y < I.length; Y++) {
3144
- const { triggerStr: k, triggerMatch: z, triggerLength: Q } = I[Y];
3145
- for (let ie = h - 1; ie >= 0; --ie) {
3146
- const de = y.substring(ie, h).match(L);
3147
- let se = -1;
3199
+ const x = p(b, S);
3200
+ let W = {};
3201
+ for (let q = 0; q < x.length; q++) {
3202
+ const { triggerStr: R, triggerMatch: V, triggerLength: Q } = x[q];
3203
+ for (let ne = h - 1; ne >= 0; --ne) {
3204
+ const ue = y.substring(ne, h).match(S);
3205
+ let ae = -1;
3148
3206
  if (Q > 0) {
3149
- const B = z ? ie : ie - Q + 1;
3150
- if (B < 0 || (E(k, y, B) && (se = B + Q), !de && se < 0))
3207
+ const ce = V ? ne : ne - Q + 1;
3208
+ if (ce < 0 || (E(R, y, ce) && (ae = ce + Q), !ue && ae < 0))
3151
3209
  break;
3152
3210
  } else {
3153
- if (de && ie > 0)
3211
+ if (ue && ne > 0)
3154
3212
  continue;
3155
- if (se = ie === 0 && de ? 0 : ie + 1, h - se === 0)
3213
+ if (ae = ne === 0 && ue ? 0 : ne + 1, h - ae === 0)
3156
3214
  break;
3157
3215
  }
3158
- if (se >= 0) {
3159
- const B = M[k];
3160
- if (!Array.isArray(B))
3216
+ if (ae >= 0) {
3217
+ const ce = M[R];
3218
+ if (!Array.isArray(ce))
3161
3219
  continue;
3162
- const F = y.substring(se, h), ee = B.filter((ye) => {
3163
- const Ae = ye.toLowerCase().indexOf(F.toLowerCase());
3164
- return Ae !== -1 && (T || Ae === 0);
3165
- }), we = k, Me = F.length;
3166
- U = {
3167
- ...U,
3168
- trigger: we,
3169
- matchStart: se,
3170
- matchLength: Me,
3171
- options: ee
3220
+ const Re = y.substring(ae, h), K = ce.filter((we) => {
3221
+ const Te = we.toLowerCase().indexOf(Re.toLowerCase());
3222
+ return Te !== -1 && (T || Te === 0);
3223
+ }), B = R, ee = Re.length;
3224
+ W = {
3225
+ ...W,
3226
+ trigger: B,
3227
+ matchStart: ae,
3228
+ matchLength: ee,
3229
+ options: K
3172
3230
  };
3173
3231
  }
3174
3232
  }
3175
3233
  }
3176
- return U;
3177
- }, g = (y, h) => y.map((f) => ({
3234
+ return W;
3235
+ }, p = (y, h) => y.map((f) => ({
3178
3236
  triggerStr: f,
3179
3237
  triggerMatch: f.match(h),
3180
3238
  triggerLength: f.length
3181
- })), E = (y, h, C) => !y || !y.length || h.substr(C, y.length) === y, S = (y) => {
3182
- const { onChange: h, options: C, spaceRemovers: f, spacer: T, value: _ } = e, L = n, b = y.target.value, M = tr(w(y.target)).end;
3183
- if (b.length || H({
3239
+ })), E = (y, h, C) => !y || !y.length || h.substr(C, y.length) === y, L = (y) => {
3240
+ const { onChange: h, options: C, spaceRemovers: f, spacer: T, value: _ } = e, S = n, b = y.target.value, M = or(w(y.target)).end;
3241
+ if (b.length || G({
3184
3242
  ...r,
3185
3243
  helperVisible: !1
3186
- }), t(b), H({
3244
+ }), t(b), G({
3187
3245
  ...r,
3188
3246
  caret: M,
3189
3247
  value: y.target.value
3190
3248
  }), !b.length || !M)
3191
3249
  return h(y.target.value);
3192
3250
  if (i && f.length && b.length > 2 && T.length) {
3193
- for (let I = 0; I < Math.max(L.length, b.length); ++I)
3194
- if (L[I] !== b[I]) {
3195
- if (I >= 2 && b[I - 1] === T && f.indexOf(b[I - 2]) === -1 && f.indexOf(b[I]) !== -1 && !lt(m(b.substring(0, I - 2), M - 3, C))) {
3196
- const U = `${b.slice(0, I - 1)}${b.slice(I, I + 1)}${b.slice(I - 1, I)}${b.slice(I + 1)}`;
3197
- return q(I + 1), u.current !== null && (u.current.value = U), _ || H({
3251
+ for (let x = 0; x < Math.max(S.length, b.length); ++x)
3252
+ if (S[x] !== b[x]) {
3253
+ if (x >= 2 && b[x - 1] === T && f.indexOf(b[x - 2]) === -1 && f.indexOf(b[x]) !== -1 && !ct(m(b.substring(0, x - 2), M - 3, C))) {
3254
+ const W = `${b.slice(0, x - 1)}${b.slice(x, x + 1)}${b.slice(x - 1, x)}${b.slice(x + 1)}`;
3255
+ return Y(x + 1), u.current !== null && (u.current.value = W), _ || G({
3198
3256
  ...r,
3199
- value: U
3200
- }), h(U);
3257
+ value: W
3258
+ }), h(W);
3201
3259
  }
3202
3260
  break;
3203
3261
  }
3204
3262
  o(!1);
3205
3263
  }
3206
- return j(b, M, C), h(y.target.value);
3264
+ return U(b, M, C), h(y.target.value);
3207
3265
  }, w = (y) => {
3208
3266
  if (y !== void 0)
3209
3267
  if (y.children.length > 0) {
@@ -3219,27 +3277,27 @@ const Ao = 38, ko = 40, Ro = 13, No = 14, Bo = 27, Fo = 9, Ho = 10, Vo = 100, Go
3219
3277
  const { helperVisible: h, options: C, selection: f } = r, { onKeyDown: T, passThroughEnter: _ } = e;
3220
3278
  if (h)
3221
3279
  switch (y.keyCode) {
3222
- case Bo:
3223
- y.preventDefault(), K();
3280
+ case zo:
3281
+ y.preventDefault(), j();
3224
3282
  break;
3225
- case Ao:
3226
- y.preventDefault(), H({
3283
+ case Fo:
3284
+ y.preventDefault(), G({
3227
3285
  ...r,
3228
3286
  selection: (C.length + f - 1) % C.length
3229
3287
  });
3230
3288
  break;
3231
- case ko:
3232
- y.preventDefault(), H({
3289
+ case Ho:
3290
+ y.preventDefault(), G({
3233
3291
  ...r,
3234
3292
  selection: (f + 1) % C.length
3235
3293
  });
3236
3294
  break;
3237
- case No:
3238
- case Ro:
3239
- _ || y.preventDefault(), G(f);
3295
+ case Vo:
3296
+ case Go:
3297
+ _ || y.preventDefault(), H(f);
3240
3298
  break;
3241
- case Fo:
3242
- G(f);
3299
+ case $o:
3300
+ H(f);
3243
3301
  break;
3244
3302
  default:
3245
3303
  T(y);
@@ -3247,112 +3305,112 @@ const Ao = 38, ko = 40, Ro = 13, No = 14, Bo = 27, Fo = 9, Ho = 10, Vo = 100, Go
3247
3305
  }
3248
3306
  else
3249
3307
  T(y);
3250
- }, R = () => {
3251
- H({
3308
+ }, A = () => {
3309
+ G({
3252
3310
  ...r,
3253
3311
  helperVisible: !1
3254
3312
  });
3255
- }, G = (y) => {
3256
- const { spacer: h, onSelect: C, changeOnSelect: f } = e, { matchStart: T, matchLength: _, options: L, trigger: b } = r, M = L[y], I = n, U = I.substring(0, T - b.length), Y = I.substring(T + _), k = { target: u.current }, z = f(b, M);
3257
- k.target !== null && (k.target.value = `${U}${z}${h}${Y}`), S(k), k.target !== null && C(k.target.value), K(), q(U.length + z.length + 1), o(!0);
3258
- }, q = (y) => {
3259
- H({
3313
+ }, H = (y) => {
3314
+ const { spacer: h, onSelect: C, changeOnSelect: f } = e, { matchStart: T, matchLength: _, options: S, trigger: b } = r, M = S[y], x = n, W = x.substring(0, T - b.length), q = x.substring(T + _), R = { target: u.current }, V = f(b, M);
3315
+ R.target !== null && (R.target.value = `${W}${V}${h}${q}`), L(R), R.target !== null && C(R.target.value), j(), Y(W.length + V.length + 1), o(!0);
3316
+ }, Y = (y) => {
3317
+ G({
3260
3318
  ...r,
3261
3319
  caret: y
3262
3320
  });
3263
3321
  const h = w(u.current);
3264
- nr(h, y);
3265
- }, H = (y) => {
3322
+ sr(h, y);
3323
+ }, G = (y) => {
3266
3324
  setTimeout(() => {
3267
3325
  c({
3268
3326
  ...y
3269
3327
  });
3270
3328
  }, 0);
3271
- }, j = (y, h, C) => {
3329
+ }, U = (y, h, C) => {
3272
3330
  const f = u.current;
3273
3331
  if (u.current === null)
3274
3332
  return;
3275
3333
  const T = w(f);
3276
3334
  if (T === void 0)
3277
3335
  return;
3278
- const _ = f.getBoundingClientRect(), L = m(y, h, C);
3279
- if (Object.keys(L).length > 0 && T !== null) {
3280
- const b = er(T, h), M = T.getBoundingClientRect(), { minChars: I, onRequestOptions: U, requestOnlyIfNoOptions: Y, mode: k } = e;
3281
- let z, Q, ie, fe = "unset";
3282
- k === "assist" ? (z = f === T ? b.top + T.offsetTop : b.top + _.top, Q = Math.min(b.left + T.offsetLeft - Ho, T.offsetLeft + M.width - Vo)) : (z = _.top + f.offsetHeight, Q = f.offsetLeft, ie = f.offsetLeft - f.offsetWidth, fe = `${_.width}px`), L.matchLength >= I && (L.options.length > 1 || L.options.length === 1 && L.options[0].length !== L.matchLength) ? H({
3336
+ const _ = f.getBoundingClientRect(), S = m(y, h, C);
3337
+ if (Object.keys(S).length > 0 && T !== null) {
3338
+ const b = rr(T, h), M = T.getBoundingClientRect(), { minChars: x, onRequestOptions: W, requestOnlyIfNoOptions: q, mode: R } = e;
3339
+ let V, Q, ne, ye = "unset";
3340
+ R === "assist" ? (V = f === T ? b.top + T.offsetTop : b.top + _.top, Q = Math.min(b.left + T.offsetLeft - Wo, T.offsetLeft + M.width - Uo)) : (V = _.top + f.offsetHeight, Q = f.offsetLeft, ne = f.offsetLeft - f.offsetWidth, ye = `${_.width}px`), S.matchLength >= x && (S.options.length > 1 || S.options.length === 1 && S.options[0].length !== S.matchLength) ? G({
3283
3341
  ...r,
3284
3342
  value: y,
3285
3343
  helperVisible: !0,
3286
- top: z,
3344
+ top: V,
3287
3345
  left: Q,
3288
- right: ie,
3289
- width: fe,
3290
- ...L
3291
- }) : ((!Y || !L.options.length) && U(y.substr(L.matchStart, L.matchLength)), K());
3346
+ right: ne,
3347
+ width: ye,
3348
+ ...S
3349
+ }) : ((!q || !S.options.length) && W(y.substr(S.matchStart, S.matchLength)), j());
3292
3350
  } else
3293
- K();
3294
- }, K = () => {
3351
+ j();
3352
+ }, j = () => {
3295
3353
  setTimeout(() => {
3296
- H({
3354
+ G({
3297
3355
  ...r,
3298
3356
  helperVisible: !1,
3299
3357
  selection: 0
3300
3358
  });
3301
3359
  }, 100);
3302
3360
  }, O = () => {
3303
- const { helperVisible: y, left: h, right: C, matchStart: f, matchLength: T, options: _, selection: L, top: b, value: M, width: I } = r;
3361
+ const { helperVisible: y, left: h, right: C, matchStart: f, matchLength: T, options: _, selection: S, top: b, value: M, width: x } = r;
3304
3362
  if (!y)
3305
3363
  return null;
3306
- const { maxOptions: U, offsetX: Y, offsetY: k, direction: z } = e;
3364
+ const { maxOptions: W, offsetX: q, offsetY: R, direction: V } = e;
3307
3365
  if (_.length === 0)
3308
3366
  return null;
3309
- if (L >= _.length)
3310
- return H({
3367
+ if (S >= _.length)
3368
+ return G({
3311
3369
  ...r,
3312
3370
  selection: 0
3313
3371
  }), null;
3314
- const Q = U === 0 ? _.length : U, ie = _.slice(0, Q).map((de, se) => {
3315
- const B = de.toLowerCase().indexOf(M.substr(f, T).toLowerCase());
3372
+ const Q = W === 0 ? _.length : W, ne = _.slice(0, Q).map((ue, ae) => {
3373
+ const ce = ue.toLowerCase().indexOf(M.substr(f, T).toLowerCase());
3316
3374
  return /* @__PURE__ */ N(
3317
3375
  "li",
3318
3376
  {
3319
- className: se === L ? "active" : void 0,
3377
+ className: ae === S ? "active" : void 0,
3320
3378
  onClick: () => {
3321
- G(se);
3379
+ H(ae);
3322
3380
  },
3323
3381
  onMouseEnter: () => {
3324
- H({
3382
+ G({
3325
3383
  ...r,
3326
- selection: se
3384
+ selection: ae
3327
3385
  });
3328
3386
  },
3329
3387
  children: [
3330
- de.slice(0, B),
3331
- /* @__PURE__ */ l("strong", { children: de.substr(B, T) }),
3332
- de.slice(B + T)
3388
+ ue.slice(0, ce),
3389
+ /* @__PURE__ */ l("strong", { children: ue.substr(ce, T) }),
3390
+ ue.slice(ce + T)
3333
3391
  ]
3334
3392
  },
3335
- de
3393
+ ue
3336
3394
  );
3337
- }), fe = z === "ltr" ? { left: h + Y } : { right: C + Y };
3338
- return /* @__PURE__ */ l("ul", { className: "react-autocomplete-input", style: { ...fe, top: b + k, width: I }, children: ie });
3339
- }, { Component: $, ComponentProps: A, defaultValue: W, disabled: ne, onBlur: s, value: a, ...v } = e, d = Object.assign({}, v);
3395
+ }), ye = V === "ltr" ? { left: h + q } : { right: C + q };
3396
+ return /* @__PURE__ */ l("ul", { className: "react-autocomplete-input", style: { ...ye, top: b + R, width: x }, children: ne });
3397
+ }, { Component: z, ComponentProps: k, defaultValue: $, disabled: te, onBlur: s, value: a, ...v } = e, d = Object.assign({}, v);
3340
3398
  return Object.keys(e).forEach((y) => {
3341
3399
  delete d[y];
3342
- }), /* @__PURE__ */ N(te, { children: [
3343
- Ee.cloneElement($, {
3344
- disabled: ne,
3400
+ }), /* @__PURE__ */ N(oe, { children: [
3401
+ Ee.cloneElement(z, {
3402
+ disabled: te,
3345
3403
  onBlur: s,
3346
- onChange: S,
3404
+ onChange: L,
3347
3405
  onKeyDown: P,
3348
3406
  ref: u,
3349
3407
  value: n,
3350
3408
  ...d,
3351
- ...A
3409
+ ...k
3352
3410
  }),
3353
3411
  O()
3354
3412
  ] });
3355
- }, zo = {
3413
+ }, Ko = {
3356
3414
  Component: /* @__PURE__ */ l("textarea", {}),
3357
3415
  ComponentProps: {},
3358
3416
  defaultValue: void 0,
@@ -3383,9 +3441,9 @@ const Ao = 38, ko = 40, Ro = 13, No = 14, Bo = 27, Fo = 9, Ho = 10, Vo = 100, Go
3383
3441
  passThroughEnter: !1,
3384
3442
  mode: "assist",
3385
3443
  direction: "ltr"
3386
- }, Na = (e) => {
3444
+ }, Ua = (e) => {
3387
3445
  let n = {
3388
- ...zo,
3446
+ ...Ko,
3389
3447
  ...e
3390
3448
  };
3391
3449
  return e.mode === "autocomplete" && (n = {
@@ -3393,10 +3451,10 @@ const Ao = 38, ko = 40, Ro = 13, No = 14, Bo = 27, Fo = 9, Ho = 10, Vo = 100, Go
3393
3451
  trigger: "",
3394
3452
  regex: ".",
3395
3453
  spacer: ""
3396
- }), /* @__PURE__ */ l(Go, { ...n });
3397
- }, ft = {
3454
+ }), /* @__PURE__ */ l(jo, { ...n });
3455
+ }, yt = {
3398
3456
  formatFileModDate: (e, n) => {
3399
- const t = nn.getModDate(n);
3457
+ const t = sn.getModDate(n);
3400
3458
  return t ? e.formatDate(t, {
3401
3459
  dateStyle: "short",
3402
3460
  timeStyle: "short"
@@ -3405,18 +3463,18 @@ const Ao = 38, ko = 40, Ro = 13, No = 14, Bo = 27, Fo = 9, Ho = 10, Vo = 100, Go
3405
3463
  formatFileSize: (e, n) => {
3406
3464
  if (!n || typeof n.size != "number")
3407
3465
  return null;
3408
- const t = n.size, i = sr(t, {
3466
+ const t = n.size, i = dr(t, {
3409
3467
  bits: !1,
3410
3468
  output: "object"
3411
3469
  });
3412
3470
  return i.symbol === "B" ? `${Math.round(i.value / 10) / 100} KB` : i.symbol === "KB" ? `${Math.round(i.value)} ${i.symbol}` : `${i.value} ${i.symbol.toUpperCase()}`;
3413
3471
  }
3414
- }, $o = {
3415
- locale: ue.EN,
3416
- formatters: { ...ft }
3417
- }, Wo = {
3418
- locale: ue.RU,
3419
- formatters: { ...ft },
3472
+ }, qo = {
3473
+ locale: he.EN,
3474
+ formatters: { ...yt }
3475
+ }, Yo = {
3476
+ locale: he.RU,
3477
+ formatters: { ...yt },
3420
3478
  messages: {
3421
3479
  "chonky.toolbar.searchPlaceholder": "Поиск",
3422
3480
  "chonky.toolbar.visibleFileCount": `{fileCount, plural,
@@ -3439,24 +3497,24 @@ const Ao = 38, ko = 40, Ro = 13, No = 14, Bo = 27, Fo = 9, Ho = 10, Vo = 100, Go
3439
3497
  // Actions
3440
3498
  ["chonky.actionGroups.Actions"]: "Действия",
3441
3499
  ["chonky.actionGroups.Options"]: "Опции",
3442
- [`chonky.actions.${V.OpenParentFolder.id}.button.name`]: "Открыть родительскую папку",
3443
- [`chonky.actions.${V.CreateFolder.id}.button.name`]: "Новая папка",
3444
- [`chonky.actions.${V.CreateFolder.id}.button.tooltip`]: "Создать новую папку",
3445
- [`chonky.actions.${V.DeleteFiles.id}.button.name`]: "Удалить файлы",
3446
- [`chonky.actions.${V.OpenSelection.id}.button.name`]: "Открыть выделение",
3447
- [`chonky.actions.${V.SelectAllFiles.id}.button.name`]: "Выделить все",
3448
- [`chonky.actions.${V.ClearSelection.id}.button.name`]: "Сбросить выделение",
3449
- [`chonky.actions.${V.EnableListView.id}.button.name`]: "Показать список",
3450
- [`chonky.actions.${V.EnableGridView.id}.button.name`]: "Показать иконки",
3451
- [`chonky.actions.${V.SortFilesByName.id}.button.name`]: "Сорт. по имени",
3452
- [`chonky.actions.${V.SortFilesBySize.id}.button.name`]: "Сорт. по размеру",
3453
- [`chonky.actions.${V.SortFilesByDate.id}.button.name`]: "Сорт. по дате",
3454
- [`chonky.actions.${V.ToggleHiddenFiles.id}.button.name`]: "Скрытые файлы",
3455
- [`chonky.actions.${V.ToggleShowFoldersFirst.id}.button.name`]: "Папки в начале"
3500
+ [`chonky.actions.${F.OpenParentFolder.id}.button.name`]: "Открыть родительскую папку",
3501
+ [`chonky.actions.${F.CreateFolder.id}.button.name`]: "Новая папка",
3502
+ [`chonky.actions.${F.CreateFolder.id}.button.tooltip`]: "Создать новую папку",
3503
+ [`chonky.actions.${F.DeleteFiles.id}.button.name`]: "Удалить файлы",
3504
+ [`chonky.actions.${F.OpenSelection.id}.button.name`]: "Открыть выделение",
3505
+ [`chonky.actions.${F.SelectAllFiles.id}.button.name`]: "Выделить все",
3506
+ [`chonky.actions.${F.ClearSelection.id}.button.name`]: "Сбросить выделение",
3507
+ [`chonky.actions.${F.EnableListView.id}.button.name`]: "Показать список",
3508
+ [`chonky.actions.${F.EnableGridView.id}.button.name`]: "Показать иконки",
3509
+ [`chonky.actions.${F.SortFilesByName.id}.button.name`]: "Сорт. по имени",
3510
+ [`chonky.actions.${F.SortFilesBySize.id}.button.name`]: "Сорт. по размеру",
3511
+ [`chonky.actions.${F.SortFilesByDate.id}.button.name`]: "Сорт. по дате",
3512
+ [`chonky.actions.${F.ToggleHiddenFiles.id}.button.name`]: "Скрытые файлы",
3513
+ [`chonky.actions.${F.ToggleShowFoldersFirst.id}.button.name`]: "Папки в начале"
3456
3514
  }
3457
- }, Uo = {
3458
- locale: ue.HE,
3459
- formatters: { ...ft },
3515
+ }, Xo = {
3516
+ locale: he.HE,
3517
+ formatters: { ...yt },
3460
3518
  messages: {
3461
3519
  "chonky.toolbar.searchPlaceholder": "חיפוש",
3462
3520
  "chonky.toolbar.visibleFileCount": `{fileCount, plural,
@@ -3478,52 +3536,52 @@ const Ao = 38, ko = 40, Ro = 13, No = 14, Bo = 27, Fo = 9, Ho = 10, Vo = 100, Go
3478
3536
  // Actions
3479
3537
  ["chonky.actionGroups.Actions"]: "פעולות",
3480
3538
  ["chonky.actionGroups.Options"]: "אפשרויות",
3481
- [`chonky.actions.${V.OpenParentFolder.id}.button.name`]: "פתח סיפריית אב",
3482
- [`chonky.actions.${V.CreateFolder.id}.button.name`]: "סיפרייה חדשה",
3483
- [`chonky.actions.${V.CreateFolder.id}.button.tooltip`]: "צור סיפרייה חדשה",
3484
- [`chonky.actions.${V.DeleteFiles.id}.button.name`]: "מחק",
3485
- [`chonky.actions.${V.OpenSelection.id}.button.name`]: "פתח את הבחירה",
3486
- [`chonky.actions.${V.SelectAllFiles.id}.button.name`]: "בחר הכל",
3487
- [`chonky.actions.${V.ClearSelection.id}.button.name`]: "אפס את הבחירה",
3488
- [`chonky.actions.${V.EnableListView.id}.button.name`]: "תצוגת רשימה",
3489
- [`chonky.actions.${V.EnableGridView.id}.button.name`]: "תצוגת גריד",
3490
- [`chonky.actions.${V.SortFilesByName.id}.button.name`]: "מיון לפי שם",
3491
- [`chonky.actions.${V.SortFilesBySize.id}.button.name`]: "מיון לפי גודל",
3492
- [`chonky.actions.${V.SortFilesByDate.id}.button.name`]: "מיון לפי תאריך",
3493
- [`chonky.actions.${V.ToggleHiddenFiles.id}.button.name`]: "קבצים נסתרים",
3494
- [`chonky.actions.${V.ToggleShowFoldersFirst.id}.button.name`]: "הצגת תיקיות בראש הרשימה"
3539
+ [`chonky.actions.${F.OpenParentFolder.id}.button.name`]: "פתח סיפריית אב",
3540
+ [`chonky.actions.${F.CreateFolder.id}.button.name`]: "סיפרייה חדשה",
3541
+ [`chonky.actions.${F.CreateFolder.id}.button.tooltip`]: "צור סיפרייה חדשה",
3542
+ [`chonky.actions.${F.DeleteFiles.id}.button.name`]: "מחק",
3543
+ [`chonky.actions.${F.OpenSelection.id}.button.name`]: "פתח את הבחירה",
3544
+ [`chonky.actions.${F.SelectAllFiles.id}.button.name`]: "בחר הכל",
3545
+ [`chonky.actions.${F.ClearSelection.id}.button.name`]: "אפס את הבחירה",
3546
+ [`chonky.actions.${F.EnableListView.id}.button.name`]: "תצוגת רשימה",
3547
+ [`chonky.actions.${F.EnableGridView.id}.button.name`]: "תצוגת גריד",
3548
+ [`chonky.actions.${F.SortFilesByName.id}.button.name`]: "מיון לפי שם",
3549
+ [`chonky.actions.${F.SortFilesBySize.id}.button.name`]: "מיון לפי גודל",
3550
+ [`chonky.actions.${F.SortFilesByDate.id}.button.name`]: "מיון לפי תאריך",
3551
+ [`chonky.actions.${F.ToggleHiddenFiles.id}.button.name`]: "קבצים נסתרים",
3552
+ [`chonky.actions.${F.ToggleShowFoldersFirst.id}.button.name`]: "הצגת תיקיות בראש הרשימה"
3495
3553
  }
3496
- }, jo = {
3497
- [ue.EN]: $o,
3498
- [ue.RU]: Wo,
3499
- [ue.HE]: Uo
3554
+ }, Zo = {
3555
+ [he.EN]: qo,
3556
+ [he.RU]: Yo,
3557
+ [he.HE]: Xo
3500
3558
  };
3501
- class Ba extends nn {
3559
+ class ja extends sn {
3502
3560
  }
3503
- const Fa = V, Ko = {
3504
- listView: V.EnableListView.id,
3505
- gridView: V.EnableGridView.id
3561
+ const Ka = F, Jo = {
3562
+ listView: F.EnableListView.id,
3563
+ gridView: F.EnableGridView.id
3506
3564
  };
3507
- ir({ iconComponent: or });
3508
- const Ha = Ee.memo(
3565
+ ar({ iconComponent: cr });
3566
+ const qa = Ee.memo(
3509
3567
  Ee.forwardRef(
3510
3568
  ({
3511
3569
  theme: e,
3512
3570
  styles: n = { height: "100%", minWidth: "600px" },
3513
- defaultView: t = Ko.listView,
3571
+ defaultView: t = Jo.listView,
3514
3572
  readOnlyMode: i = !1,
3515
3573
  locale: o,
3516
3574
  files: r,
3517
3575
  folderChain: c,
3518
3576
  onFileAction: u,
3519
3577
  ...m
3520
- }, g) => {
3521
- const E = me(
3522
- (W) => null,
3578
+ }, p) => {
3579
+ const E = pe(
3580
+ ($) => null,
3523
3581
  // file.thumbnailUrl ? `https://chonky.io${file.thumbnailUrl}` : null,
3524
3582
  []
3525
3583
  );
3526
- Ne({
3584
+ Fe({
3527
3585
  "@global": {
3528
3586
  ".chonky-dropdownList": {
3529
3587
  backgroundColor: `${e == null ? void 0 : e.surface} !important`
@@ -3533,34 +3591,34 @@ const Ha = Ee.memo(
3533
3591
  }
3534
3592
  }
3535
3593
  })();
3536
- const S = (W) => W.replace(/([A-Z])/g, (ne) => "-" + ne.toLowerCase()), w = Re(() => e !== void 0 ? Object.keys(e).reduce((ne, s) => {
3594
+ const L = ($) => $.replace(/([A-Z])/g, (te) => "-" + te.toLowerCase()), w = Be(() => e !== void 0 ? Object.keys(e).reduce((te, s) => {
3537
3595
  const a = e[s];
3538
- return s = s.startsWith("--") ? s : `--fp-theme-${S(s)}`, ne[s] = a, ne;
3539
- }, {}) : {}, [e]), [P, R] = x(!1), [G, q] = x(), [H, j] = x(!1), [K, O] = x(), [$, A] = x();
3540
- return D(() => {
3541
- e && R(!0), q(t), i ? j(!0) : O([V.CreateFolder, V.DeleteFiles]), o !== void 0 && A(jo[o]);
3596
+ return s = s.startsWith("--") ? s : `--fp-theme-${L(s)}`, te[s] = a, te;
3597
+ }, {}) : {}, [e]), [P, A] = D(!1), [H, Y] = D(), [G, U] = D(!1), [j, O] = D(), [z, k] = D();
3598
+ return I(() => {
3599
+ e && A(!0), Y(t), i ? U(!0) : O([F.CreateFolder, F.DeleteFiles]), o !== void 0 && k(Zo[o]);
3542
3600
  }, [e, t, i, o]), /* @__PURE__ */ l(
3543
- ce,
3601
+ de,
3544
3602
  {
3545
3603
  style: {
3546
3604
  ...n,
3547
3605
  ...w
3548
3606
  },
3549
3607
  children: /* @__PURE__ */ l(
3550
- rr,
3608
+ lr,
3551
3609
  {
3552
- ref: g,
3610
+ ref: p,
3553
3611
  files: r ?? [],
3554
3612
  folderChain: c,
3555
- onFileAction: (W) => {
3556
- typeof u == "function" && u(W);
3613
+ onFileAction: ($) => {
3614
+ typeof u == "function" && u($);
3557
3615
  },
3558
3616
  thumbnailGenerator: E,
3559
- defaultFileViewActionId: G,
3560
- disableDragAndDrop: H,
3561
- fileActions: K,
3617
+ defaultFileViewActionId: H,
3618
+ disableDragAndDrop: G,
3619
+ fileActions: j,
3562
3620
  darkMode: P,
3563
- i18n: $,
3621
+ i18n: z,
3564
3622
  ...m
3565
3623
  }
3566
3624
  )
@@ -3570,98 +3628,99 @@ const Ha = Ee.memo(
3570
3628
  )
3571
3629
  );
3572
3630
  export {
3573
- Na as Autocomplete,
3574
- ct as BboxCorner,
3575
- ce as Box,
3576
- ut as COORDINATES_MERCATOR_FRACTION_DIGITS,
3577
- dt as COORDINATES_WGS_FRACTION_DIGITS,
3578
- La as Cesium3DTileset,
3579
- pa as CesiumBoundingSphere,
3580
- ha as CesiumCartesian2,
3581
- ma as CesiumCartesian3,
3582
- Xr as CesiumCartographic,
3583
- Ca as CesiumCesiumTerrainProvider,
3584
- Oa as CesiumColor,
3585
- ua as CesiumConstantPositionProperty,
3586
- da as CesiumConstantProperty,
3587
- Lo as CesiumCustomDataSource,
3588
- Aa as CesiumDrawingsDataSource,
3589
- ga as CesiumEllipsoid,
3590
- Ea as CesiumEllipsoidTerrainProvider,
3591
- wo as CesiumEntity,
3592
- xa as CesiumEntityDescription,
3593
- To as CesiumEntityStaticDescription,
3594
- fa as CesiumGeographicTilingScheme,
3595
- _a as CesiumGeojsonLayer,
3596
- Ye as CesiumImageryLayer,
3597
- Ta as CesiumLabelStyle,
3598
- Sa as CesiumMap,
3599
- Wa as CesiumMath,
3600
- Da as CesiumOSMLayer,
3601
- bo as CesiumPolygonGraphics,
3602
- ca as CesiumPolylineDashMaterialProperty,
3603
- ya as CesiumRectangle,
3604
- So as CesiumRectangleGraphics,
3605
- va as CesiumResource,
3606
- oe as CesiumSceneMode,
3607
- wa as CesiumVerticalOrigin,
3608
- ba as CesiumViewer,
3609
- Ma as CesiumWMSLayer,
3610
- Pa as CesiumWMTSLayer,
3611
- Ia as CesiumXYZLayer,
3612
- Zr as CoordinatesTrackerTool,
3613
- aa as CssBaseline,
3614
- Ks as DateRangePicker,
3615
- qs as DateTimePicker,
3616
- ur as DateTimeRangePicker,
3617
- Us as DateTimeRangePickerFormControl,
3618
- Te as DrawHelper,
3619
- Ar as DrawInteraction,
3620
- ae as DrawType,
3621
- Ba as FileHelper,
3622
- Ha as FilePicker,
3623
- Fa as FilePickerActions,
3624
- Ko as FilePickerViewObj,
3625
- xr as GeoJSONFeature,
3626
- ka as InspectorTool,
3627
- oa as MVTSource,
3628
- Tr as Map,
3629
- Ys as MapFilterContainer,
3630
- hr as Popover,
3631
- pe as Proj,
3632
- Qr as ScaleTrackerTool,
3633
- la as ScopedCssBaseline,
3634
- sa as SmartTable,
3635
- ue as SupportedLocales,
3636
- Ra as TerrainianHeightTool,
3637
- Sr as TileLayer,
3638
- Or as TileOsm,
3639
- ea as TileWMS,
3640
- Js as TileWMTS,
3641
- na as TileXYZ,
3642
- js as TimeRangeInput,
3643
- Mr as VectorLayer,
3644
- Dr as VectorSource,
3645
- Xs as VectorTileLayer,
3646
- to as ZoomLevelTrackerTool,
3647
- Ua as cesiumSampleTerrainMostDetailed,
3648
- ft as defaultFormatters,
3649
- ra as getMVTOptions,
3650
- Qs as getWMSOptions,
3651
- Zs as getWMTSOptions,
3652
- ta as getXYZOptions,
3653
- Je as isDateRange,
3654
- ar as mapMcToMuiTheme,
3655
- Io as polygonToGeoJSON,
3656
- Do as rectangleToGeoJSON,
3657
- xo as rectangleToPositions,
3658
- le as useCesiumMap,
3659
- Fe as useMap,
3660
- rn as useMappedMuiTheme,
3661
- za as useMediaQuery,
3662
- Ke as useTileLayer,
3663
- _r as useVectorLayer,
3664
- Ir as useVectorSource,
3665
- Fr as useVectorTileLayer,
3666
- ia as useVectorTileSource
3631
+ Ua as Autocomplete,
3632
+ dt as BboxCorner,
3633
+ de as Box,
3634
+ ht as COORDINATES_MERCATOR_FRACTION_DIGITS,
3635
+ ut as COORDINATES_WGS_FRACTION_DIGITS,
3636
+ ka as Cesium3DTileset,
3637
+ ba as CesiumBoundingSphere,
3638
+ wa as CesiumCartesian2,
3639
+ Ta as CesiumCartesian3,
3640
+ eo as CesiumCartographic,
3641
+ xa as CesiumCesiumTerrainProvider,
3642
+ Va as CesiumColor,
3643
+ Ca as CesiumConstantPositionProperty,
3644
+ Ea as CesiumConstantProperty,
3645
+ Io as CesiumCustomDataSource,
3646
+ za as CesiumDrawingsDataSource,
3647
+ La as CesiumEllipsoid,
3648
+ Pa as CesiumEllipsoidTerrainProvider,
3649
+ _o as CesiumEntity,
3650
+ Ga as CesiumEntityDescription,
3651
+ Mo as CesiumEntityStaticDescription,
3652
+ Sa as CesiumGeographicTilingScheme,
3653
+ Ra as CesiumGeojsonLayer,
3654
+ Xe as CesiumImageryLayer,
3655
+ Da as CesiumLabelStyle,
3656
+ Aa as CesiumMap,
3657
+ Qa as CesiumMath,
3658
+ Ha as CesiumOSMLayer,
3659
+ Po as CesiumPolygonGraphics,
3660
+ va as CesiumPolylineDashMaterialProperty,
3661
+ _a as CesiumRectangle,
3662
+ xo as CesiumRectangleGraphics,
3663
+ Ma as CesiumResource,
3664
+ re as CesiumSceneMode,
3665
+ Ia as CesiumVerticalOrigin,
3666
+ Oa as CesiumViewer,
3667
+ Na as CesiumWMSLayer,
3668
+ Ba as CesiumWMTSLayer,
3669
+ Fa as CesiumXYZLayer,
3670
+ to as CoordinatesTrackerTool,
3671
+ fa as CssBaseline,
3672
+ ta as DateRangePicker,
3673
+ na as DateTimePicker,
3674
+ gr as DateTimeRangePicker,
3675
+ Qs as DateTimeRangePickerFormControl,
3676
+ be as DrawHelper,
3677
+ Br as DrawInteraction,
3678
+ le as DrawType,
3679
+ ja as FileHelper,
3680
+ qa as FilePicker,
3681
+ Ka as FilePickerActions,
3682
+ Jo as FilePickerViewObj,
3683
+ Rr as GeoJSONFeature,
3684
+ $a as InspectorTool,
3685
+ pa as Legend,
3686
+ ma as MVTSource,
3687
+ _r as Map,
3688
+ ia as MapFilterContainer,
3689
+ fr as Popover,
3690
+ ge as Proj,
3691
+ io as ScaleTrackerTool,
3692
+ ya as ScopedCssBaseline,
3693
+ ga as SmartTable,
3694
+ he as SupportedLocales,
3695
+ Wa as TerrainianHeightTool,
3696
+ Pr as TileLayer,
3697
+ Nr as TileOsm,
3698
+ la as TileWMS,
3699
+ sa as TileWMTS,
3700
+ da as TileXYZ,
3701
+ ea as TimeRangeInput,
3702
+ Dr as VectorLayer,
3703
+ kr as VectorSource,
3704
+ ra as VectorTileLayer,
3705
+ oo as ZoomLevelTrackerTool,
3706
+ el as cesiumSampleTerrainMostDetailed,
3707
+ yt as defaultFormatters,
3708
+ ha as getMVTOptions,
3709
+ aa as getWMSOptions,
3710
+ oa as getWMTSOptions,
3711
+ ca as getXYZOptions,
3712
+ Qe as isDateRange,
3713
+ ur as mapMcToMuiTheme,
3714
+ ko as polygonToGeoJSON,
3715
+ Ro as rectangleToGeoJSON,
3716
+ No as rectangleToPositions,
3717
+ se as useCesiumMap,
3718
+ ke as useMap,
3719
+ an as useMappedMuiTheme,
3720
+ Za as useMediaQuery,
3721
+ qe as useTileLayer,
3722
+ Ir as useVectorLayer,
3723
+ Ar as useVectorSource,
3724
+ zr as useVectorTileLayer,
3725
+ ua as useVectorTileSource
3667
3726
  };