@giro3d/piero 1.0.0-beta.4 → 1.0.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -10
- package/dist/assets/piero.css +2 -2
- package/dist/index.cjs.js +6 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +3090 -6878
- package/dist/index.es.js.map +1 -1
- package/dist/modules.cjs.js +1 -1
- package/dist/modules.cjs.js.map +1 -1
- package/dist/modules.d.ts +1 -1
- package/dist/modules.es.js +1598 -893
- package/dist/modules.es.js.map +1 -1
- package/dist/{src → packages/piero/src}/App.vue.d.ts +1 -0
- package/dist/packages/piero/src/App.vue.d.ts.map +1 -0
- package/dist/packages/piero/src/PieroApplication.d.ts +5 -0
- package/dist/packages/piero/src/PieroApplication.d.ts.map +1 -0
- package/dist/{src/api/AnalysisApi.d.ts → packages/piero/src/api/analysis.d.ts} +5 -3
- package/dist/packages/piero/src/api/analysis.d.ts.map +1 -0
- package/dist/packages/piero/src/api/bookmarks.d.ts +16 -0
- package/dist/packages/piero/src/api/bookmarks.d.ts.map +1 -0
- package/dist/{src/api/DatasetApi.d.ts → packages/piero/src/api/dataset.d.ts} +55 -19
- package/dist/packages/piero/src/api/dataset.d.ts.map +1 -0
- package/dist/packages/piero/src/api/http.d.ts +32 -0
- package/dist/packages/piero/src/api/http.d.ts.map +1 -0
- package/dist/packages/piero/src/api/index.d.ts +9 -0
- package/dist/packages/piero/src/api/index.d.ts.map +1 -0
- package/dist/packages/piero/src/api/notifications.d.ts +52 -0
- package/dist/packages/piero/src/api/notifications.d.ts.map +1 -0
- package/dist/{src/api/SearchApi.d.ts → packages/piero/src/api/search.d.ts} +2 -0
- package/dist/packages/piero/src/api/search.d.ts.map +1 -0
- package/dist/packages/piero/src/api/view.d.ts +31 -0
- package/dist/packages/piero/src/api/view.d.ts.map +1 -0
- package/dist/{src/api/WidgetApi.d.ts → packages/piero/src/api/widgets.d.ts} +9 -6
- package/dist/packages/piero/src/api/widgets.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/AlertToast.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/AlertToast.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/AttributeGroup.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/AttributeGroup.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/AttributeItem.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/AttributeItem.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/AttributePanel.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/AttributePanel.vue.d.ts.map +1 -0
- package/dist/packages/piero/src/components/CheckboxToggle.vue.d.ts +26 -0
- package/dist/packages/piero/src/components/CheckboxToggle.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/ColorFragment.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/ColorFragment.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/Configuration.d.ts +2 -1
- package/dist/packages/piero/src/components/Configuration.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/CoordinateFragment.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/CoordinateFragment.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/CoordinateInput.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/CoordinateInput.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/DropdownView.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/DropdownView.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/LinkFragment.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/LinkFragment.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/LoadingScreen.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/LoadingScreen.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/MainView.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/MainView.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/ModalOverlay.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/ModalOverlay.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/NavigationButtons.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/NavigationButtons.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/PanelContainer.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/PanelContainer.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/ProgressBar.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/ProgressBar.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/SearchOverlay.vue.d.ts +2 -1
- package/dist/packages/piero/src/components/SearchOverlay.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/SpinnerControl.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/SpinnerControl.vue.d.ts.map +1 -0
- package/dist/{src/components/atoms/ListLabel.vue.d.ts → packages/piero/src/components/StatusBar.vue.d.ts} +5 -1
- package/dist/packages/piero/src/components/StatusBar.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/SwitchToggle.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/SwitchToggle.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/VisibilityControl.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/VisibilityControl.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/atoms/ButtonArea.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/atoms/ButtonArea.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/atoms/ButtonWithIcon.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/atoms/ButtonWithIcon.vue.d.ts.map +1 -0
- package/dist/{src/components/atoms/SectionCollapsible.vue.d.ts → packages/piero/src/components/atoms/CompactList.vue.d.ts} +5 -14
- package/dist/packages/piero/src/components/atoms/CompactList.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/atoms/Icon.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/atoms/Icon.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/atoms/IconList.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/atoms/IconList.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/atoms/IconListButton.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/atoms/IconListButton.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/atoms/ImportButton.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/atoms/ImportButton.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/atoms/ListLabelButton.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/atoms/ListLabelButton.vue.d.ts.map +1 -0
- package/dist/packages/piero/src/components/atoms/Slider.vue.d.ts +15 -0
- package/dist/packages/piero/src/components/atoms/Slider.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/panels/AboutPanel.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/panels/AboutPanel.vue.d.ts.map +1 -0
- package/dist/packages/piero/src/components/panels/AnalysisPanel.vue.d.ts +3 -0
- package/dist/packages/piero/src/components/panels/AnalysisPanel.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/panels/AnnotationItem.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/panels/AnnotationItem.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/panels/AnnotationPanel.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/panels/AnnotationPanel.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/panels/BookmarkItem.vue.d.ts +3 -2
- package/dist/packages/piero/src/components/panels/BookmarkItem.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/panels/BookmarkPanel.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/panels/BookmarkPanel.vue.d.ts.map +1 -0
- package/dist/packages/piero/src/components/panels/DatagroupItem.vue.d.ts +15 -0
- package/dist/packages/piero/src/components/panels/DatagroupItem.vue.d.ts.map +1 -0
- package/dist/packages/piero/src/components/panels/DatasetItem.vue.d.ts +15 -0
- package/dist/packages/piero/src/components/panels/DatasetItem.vue.d.ts.map +1 -0
- package/dist/packages/piero/src/components/panels/DatasetOrGroupItem.vue.d.ts +15 -0
- package/dist/packages/piero/src/components/panels/DatasetOrGroupItem.vue.d.ts.map +1 -0
- package/dist/{src/components/panels/AnalysisPanel.vue.d.ts → packages/piero/src/components/panels/DatasetPanel.vue.d.ts} +1 -0
- package/dist/packages/piero/src/components/panels/DatasetPanel.vue.d.ts.map +1 -0
- package/dist/{src/components/OpacitySlider.vue.d.ts → packages/piero/src/components/panels/DatasetParameters.vue.d.ts} +6 -5
- package/dist/packages/piero/src/components/panels/DatasetParameters.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/panels/EmptyIndicator.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/panels/EmptyIndicator.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/panels/MeasurementItem.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/panels/MeasurementItem.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/panels/MeasurementPanel.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/panels/MeasurementPanel.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/panels/ShareBookmarkModal.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/panels/ShareBookmarkModal.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/panels/analysis/ToolWrapper.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/panels/analysis/ToolWrapper.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/toolbar/ToolBar.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/toolbar/ToolBar.vue.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/components/toolbar/ToolbarButton.vue.d.ts +1 -0
- package/dist/packages/piero/src/components/toolbar/ToolbarButton.vue.d.ts.map +1 -0
- package/dist/packages/piero/src/configuration/ImageFormat.d.ts +4 -0
- package/dist/packages/piero/src/configuration/ImageFormat.d.ts.map +1 -0
- package/dist/packages/piero/src/configuration/annotation.d.ts +25 -0
- package/dist/packages/piero/src/configuration/annotation.d.ts.map +1 -0
- package/dist/packages/piero/src/configuration/basemap.d.ts +7 -0
- package/dist/packages/piero/src/configuration/basemap.d.ts.map +1 -0
- package/dist/packages/piero/src/configuration/bookmark.d.ts +10 -0
- package/dist/packages/piero/src/configuration/bookmark.d.ts.map +1 -0
- package/dist/packages/piero/src/configuration/colormap.d.ts +10 -0
- package/dist/packages/piero/src/configuration/colormap.d.ts.map +1 -0
- package/dist/packages/piero/src/configuration/configuration.d.ts +32 -0
- package/dist/packages/piero/src/configuration/configuration.d.ts.map +1 -0
- package/dist/packages/piero/src/configuration/configuration.test.d.ts +2 -0
- package/dist/packages/piero/src/configuration/configuration.test.d.ts.map +1 -0
- package/dist/packages/piero/src/configuration/coordinate.d.ts +23 -0
- package/dist/packages/piero/src/configuration/coordinate.d.ts.map +1 -0
- package/dist/packages/piero/src/configuration/crs.d.ts +11 -0
- package/dist/packages/piero/src/configuration/crs.d.ts.map +1 -0
- package/dist/packages/piero/src/configuration/dataset.d.ts +56 -0
- package/dist/packages/piero/src/configuration/dataset.d.ts.map +1 -0
- package/dist/packages/piero/src/configuration/defaultConfig.d.ts +8 -0
- package/dist/packages/piero/src/configuration/defaultConfig.d.ts.map +1 -0
- package/dist/packages/piero/src/configuration/extent.d.ts +15 -0
- package/dist/packages/piero/src/configuration/extent.d.ts.map +1 -0
- package/dist/packages/piero/src/configuration/index.d.ts +18 -0
- package/dist/packages/piero/src/configuration/index.d.ts.map +1 -0
- package/dist/packages/piero/src/configuration/layer.d.ts +27 -0
- package/dist/packages/piero/src/configuration/layer.d.ts.map +1 -0
- package/dist/packages/piero/src/configuration/lookAt.d.ts +13 -0
- package/dist/packages/piero/src/configuration/lookAt.d.ts.map +1 -0
- package/dist/packages/piero/src/configuration/module.d.ts +6 -0
- package/dist/packages/piero/src/configuration/module.d.ts.map +1 -0
- package/dist/packages/piero/src/configuration/orientation.d.ts +4 -0
- package/dist/packages/piero/src/configuration/orientation.d.ts.map +1 -0
- package/dist/packages/piero/src/configuration/scene.d.ts +12 -0
- package/dist/packages/piero/src/configuration/scene.d.ts.map +1 -0
- package/dist/packages/piero/src/configuration/style.d.ts +7 -0
- package/dist/packages/piero/src/configuration/style.d.ts.map +1 -0
- package/dist/packages/piero/src/configuration/units.d.ts +6 -0
- package/dist/packages/piero/src/configuration/units.d.ts.map +1 -0
- package/dist/packages/piero/src/configuration/url.d.ts +4 -0
- package/dist/packages/piero/src/configuration/url.d.ts.map +1 -0
- package/dist/packages/piero/src/configurationLoader.d.ts +7 -0
- package/dist/packages/piero/src/configurationLoader.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/constants.d.ts +1 -0
- package/dist/packages/piero/src/constants.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/context.d.ts +27 -18
- package/dist/packages/piero/src/context.d.ts.map +1 -0
- package/dist/packages/piero/src/createPieroApp.d.ts +30 -0
- package/dist/packages/piero/src/createPieroApp.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/events.d.ts +3 -1
- package/dist/packages/piero/src/events.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/giro3d/CameraControlsInspector.d.ts +1 -0
- package/dist/packages/piero/src/giro3d/CameraControlsInspector.d.ts.map +1 -0
- package/dist/packages/piero/src/giro3d/DatasetBuilder.d.ts +17 -0
- package/dist/packages/piero/src/giro3d/DatasetBuilder.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/giro3d/Measure3D.d.ts +1 -0
- package/dist/packages/piero/src/giro3d/Measure3D.d.ts.map +1 -0
- package/dist/packages/piero/src/index.d.ts +15 -0
- package/dist/packages/piero/src/index.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/loaders/loader.d.ts +3 -9
- package/dist/packages/piero/src/loaders/loader.d.ts.map +1 -0
- package/dist/packages/piero/src/loaders/loader.test.d.ts +2 -0
- package/dist/packages/piero/src/loaders/loader.test.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/loaders/userData.d.ts +1 -0
- package/dist/packages/piero/src/loaders/userData.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/module.d.ts +6 -1
- package/dist/packages/piero/src/module.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/analysis/ClippingBox.d.ts +19 -0
- package/dist/packages/piero/src/modules/analysis/ClippingBox.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/analysis/CrossSection.d.ts +12 -0
- package/dist/packages/piero/src/modules/analysis/CrossSection.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/analysis/FloodingPlane.d.ts +12 -0
- package/dist/packages/piero/src/modules/analysis/FloodingPlane.d.ts.map +1 -0
- package/dist/{src/modules/clippingBoxAnalysis → packages/piero/src/modules/analysis/clippingBox}/ClippingBox.vue.d.ts +1 -0
- package/dist/packages/piero/src/modules/analysis/clippingBox/ClippingBox.vue.d.ts.map +1 -0
- package/dist/{src/modules/clippingBoxAnalysis → packages/piero/src/modules/analysis/clippingBox}/ClippingBoxManager.d.ts +4 -3
- package/dist/packages/piero/src/modules/analysis/clippingBox/ClippingBoxManager.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/analysis/clippingBox/store.d.ts +2269 -0
- package/dist/packages/piero/src/modules/analysis/clippingBox/store.d.ts.map +1 -0
- package/dist/{src/modules/crossSectionAnalysis → packages/piero/src/modules/analysis/crossSection}/CrossSection.vue.d.ts +1 -0
- package/dist/packages/piero/src/modules/analysis/crossSection/CrossSection.vue.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/analysis/crossSection/CrossSectionHelper.d.ts +5 -0
- package/dist/packages/piero/src/modules/analysis/crossSection/CrossSectionHelper.d.ts.map +1 -0
- package/dist/{src/modules/crossSectionAnalysis → packages/piero/src/modules/analysis/crossSection}/CrossSectionManager.d.ts +2 -1
- package/dist/packages/piero/src/modules/analysis/crossSection/CrossSectionManager.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/analysis/crossSection/store.d.ts +543 -0
- package/dist/packages/piero/src/modules/analysis/crossSection/store.d.ts.map +1 -0
- package/dist/{src/modules/floodingPlaneAnalysis → packages/piero/src/modules/analysis/floodingPlane}/FloodingPlane.vue.d.ts +1 -0
- package/dist/packages/piero/src/modules/analysis/floodingPlane/FloodingPlane.vue.d.ts.map +1 -0
- package/dist/{src/modules/floodingPlaneAnalysis → packages/piero/src/modules/analysis/floodingPlane}/FloodingPlaneManager.d.ts +2 -1
- package/dist/packages/piero/src/modules/analysis/floodingPlane/FloodingPlaneManager.d.ts.map +1 -0
- package/dist/{src/modules/floodingPlaneAnalysis → packages/piero/src/modules/analysis/floodingPlane}/FloodingPlaneObject.d.ts +2 -1
- package/dist/packages/piero/src/modules/analysis/floodingPlane/FloodingPlaneObject.d.ts.map +1 -0
- package/dist/{src/modules/floodingPlaneAnalysis → packages/piero/src/modules/analysis/floodingPlane}/store.d.ts +1 -0
- package/dist/packages/piero/src/modules/analysis/floodingPlane/store.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/analysis/index.d.ts +9 -0
- package/dist/packages/piero/src/modules/analysis/index.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/index.d.ts +17 -0
- package/dist/packages/piero/src/modules/index.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/loaders/BDTopoLoader.d.ts +11 -0
- package/dist/packages/piero/src/modules/loaders/BDTopoLoader.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/loaders/GPXLoader.d.ts +28 -0
- package/dist/packages/piero/src/modules/loaders/GPXLoader.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/loaders/GeoJSONLoader.d.ts +28 -0
- package/dist/packages/piero/src/modules/loaders/GeoJSONLoader.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/loaders/GeoTIFFLoader.d.ts +11 -0
- package/dist/packages/piero/src/modules/loaders/GeoTIFFLoader.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/loaders/IFCLoader.d.ts +11 -0
- package/dist/packages/piero/src/modules/loaders/IFCLoader.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/loaders/KMLLoader.d.ts +28 -0
- package/dist/packages/piero/src/modules/loaders/KMLLoader.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/loaders/LASLoader.d.ts +29 -0
- package/dist/packages/piero/src/modules/loaders/LASLoader.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/loaders/MapboxLoader.d.ts +11 -0
- package/dist/packages/piero/src/modules/loaders/MapboxLoader.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/loaders/OSMLoader.d.ts +11 -0
- package/dist/packages/piero/src/modules/loaders/OSMLoader.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/loaders/PotreeLoader.d.ts +11 -0
- package/dist/packages/piero/src/modules/loaders/PotreeLoader.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/loaders/TMSLoader.d.ts +27 -0
- package/dist/packages/piero/src/modules/loaders/TMSLoader.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/loaders/Tiles3DLoader.d.ts +11 -0
- package/dist/packages/piero/src/modules/loaders/Tiles3DLoader.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/loaders/WMSLoader.d.ts +29 -0
- package/dist/packages/piero/src/modules/loaders/WMSLoader.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/loaders/WMTSLoader.d.ts +29 -0
- package/dist/packages/piero/src/modules/loaders/WMTSLoader.d.ts.map +1 -0
- package/dist/{src/giro3d/entities/FeatureCollectionEntity.d.ts → packages/piero/src/modules/loaders/bdtopo/BDTopoEntity.d.ts} +7 -9
- package/dist/packages/piero/src/modules/loaders/bdtopo/BDTopoEntity.d.ts.map +1 -0
- package/dist/{src/modules → packages/piero/src/modules/loaders}/ifc/IfcEntity.d.ts +6 -3
- package/dist/packages/piero/src/modules/loaders/ifc/IfcEntity.d.ts.map +1 -0
- package/dist/{src/modules → packages/piero/src/modules/loaders}/ifc/IfcEntityInspector.d.ts +1 -0
- package/dist/packages/piero/src/modules/loaders/ifc/IfcEntityInspector.d.ts.map +1 -0
- package/dist/{src/modules → packages/piero/src/modules/loaders}/ifc/IfcPropertyView.vue.d.ts +2 -1
- package/dist/packages/piero/src/modules/loaders/ifc/IfcPropertyView.vue.d.ts.map +1 -0
- package/dist/{src/modules → packages/piero/src/modules/loaders}/ifc/IfcSubtree.vue.d.ts +1 -0
- package/dist/packages/piero/src/modules/loaders/ifc/IfcSubtree.vue.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/loaders/index.d.ts +20 -0
- package/dist/packages/piero/src/modules/loaders/index.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/misc/Attribution.d.ts +8 -0
- package/dist/packages/piero/src/modules/misc/Attribution.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/misc/AttributionWidget.vue.d.ts +4 -0
- package/dist/packages/piero/src/modules/misc/AttributionWidget.vue.d.ts.map +1 -0
- package/dist/{src/modules → packages/piero/src/modules/misc}/DownloadDataset.d.ts +3 -2
- package/dist/packages/piero/src/modules/misc/DownloadDataset.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/misc/Graticule.d.ts +8 -0
- package/dist/packages/piero/src/modules/misc/Graticule.d.ts.map +1 -0
- package/dist/{src/modules → packages/piero/src/modules/misc}/OpenLayersMinimap.d.ts +3 -2
- package/dist/packages/piero/src/modules/misc/OpenLayersMinimap.d.ts.map +1 -0
- package/dist/{src/modules/minimap → packages/piero/src/modules/misc}/OpenLayersMinimapComponent.vue.d.ts +1 -0
- package/dist/packages/piero/src/modules/misc/OpenLayersMinimapComponent.vue.d.ts.map +1 -0
- package/dist/{src/modules → packages/piero/src/modules/misc}/PostProcessEntities.d.ts +3 -2
- package/dist/packages/piero/src/modules/misc/PostProcessEntities.d.ts.map +1 -0
- package/dist/{src/modules → packages/piero/src/modules/misc}/Tour.d.ts +4 -3
- package/dist/packages/piero/src/modules/misc/Tour.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/misc/index.d.ts +12 -0
- package/dist/packages/piero/src/modules/misc/index.d.ts.map +1 -0
- package/dist/{src/modules/geocoding → packages/piero/src/modules/search}/CoordinatesSearch.d.ts +2 -1
- package/dist/packages/piero/src/modules/search/CoordinatesSearch.d.ts.map +1 -0
- package/dist/{src/modules/geocoding → packages/piero/src/modules/search}/FrenchBanGeocoder.d.ts +2 -1
- package/dist/packages/piero/src/modules/search/FrenchBanGeocoder.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/search/PhotonGeocoder.d.ts +11 -0
- package/dist/packages/piero/src/modules/search/PhotonGeocoder.d.ts.map +1 -0
- package/dist/packages/piero/src/modules/search/index.d.ts +9 -0
- package/dist/packages/piero/src/modules/search/index.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/providers/Alticoding.d.ts +1 -0
- package/dist/packages/piero/src/providers/Alticoding.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/providers/IgnProvider.d.ts +1 -0
- package/dist/packages/piero/src/providers/IgnProvider.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/services/AnnotationManager.d.ts +9 -2
- package/dist/packages/piero/src/services/AnnotationManager.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/services/CameraController.d.ts +2 -1
- package/dist/packages/piero/src/services/CameraController.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/services/DatasetManager.d.ts +4 -3
- package/dist/packages/piero/src/services/DatasetManager.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/services/Giro3DManager.d.ts +2 -1
- package/dist/packages/piero/src/services/Giro3DManager.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/services/Highlighter.d.ts +1 -0
- package/dist/packages/piero/src/services/Highlighter.d.ts.map +1 -0
- package/dist/packages/piero/src/services/LayerManager.d.ts +24 -0
- package/dist/packages/piero/src/services/LayerManager.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/services/MeasureTool.d.ts +2 -1
- package/dist/packages/piero/src/services/MeasureTool.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/services/MeasurementManager.d.ts +2 -1
- package/dist/packages/piero/src/services/MeasurementManager.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/services/SceneCursorManager.d.ts +1 -0
- package/dist/packages/piero/src/services/SceneCursorManager.d.ts.map +1 -0
- package/dist/{src/services/Picker.d.ts → packages/piero/src/services/picking.d.ts} +1 -0
- package/dist/packages/piero/src/services/picking.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/stores/analysis.d.ts +2 -1
- package/dist/packages/piero/src/stores/analysis.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/stores/annotations.d.ts +1 -0
- package/dist/packages/piero/src/stores/annotations.d.ts.map +1 -0
- package/dist/packages/piero/src/stores/basemap.d.ts +18 -0
- package/dist/packages/piero/src/stores/basemap.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/stores/bookmarks.d.ts +2 -1
- package/dist/packages/piero/src/stores/bookmarks.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/stores/camera.d.ts +1 -0
- package/dist/packages/piero/src/stores/camera.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/stores/datasets.d.ts +27 -16
- package/dist/packages/piero/src/stores/datasets.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/stores/giro3d.d.ts +7 -5
- package/dist/packages/piero/src/stores/giro3d.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/stores/measurement.d.ts +1 -0
- package/dist/packages/piero/src/stores/measurement.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/stores/modules.d.ts +1 -0
- package/dist/packages/piero/src/stores/modules.d.ts.map +1 -0
- package/dist/packages/piero/src/stores/modules.test.d.ts +2 -0
- package/dist/packages/piero/src/stores/modules.test.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/stores/notifications.d.ts +2 -1
- package/dist/packages/piero/src/stores/notifications.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/stores/search.d.ts +6 -2
- package/dist/packages/piero/src/stores/search.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/stores/widgets.d.ts +2 -1
- package/dist/packages/piero/src/stores/widgets.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/types/Annotation.d.ts +5 -2
- package/dist/packages/piero/src/types/Annotation.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/types/AnnotationMode.d.ts +1 -0
- package/dist/packages/piero/src/types/AnnotationMode.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/types/Bookmark.d.ts +1 -0
- package/dist/packages/piero/src/types/Bookmark.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/types/CameraPosition.d.ts +4 -0
- package/dist/packages/piero/src/types/CameraPosition.d.ts.map +1 -0
- package/dist/packages/piero/src/types/Dataset.d.ts +81 -0
- package/dist/packages/piero/src/types/Dataset.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/types/Feature.d.ts +1 -0
- package/dist/packages/piero/src/types/Feature.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/types/Measure.d.ts +1 -0
- package/dist/packages/piero/src/types/Measure.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/types/MeasurementMode.d.ts +1 -0
- package/dist/packages/piero/src/types/MeasurementMode.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/types/Named.d.ts +1 -0
- package/dist/packages/piero/src/types/Named.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/types/NavigationMode.d.ts +1 -0
- package/dist/packages/piero/src/types/NavigationMode.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/types/OLGeometry.d.ts +1 -0
- package/dist/packages/piero/src/types/OLGeometry.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/types/Viewbox.d.ts +1 -0
- package/dist/packages/piero/src/types/Viewbox.d.ts.map +1 -0
- package/dist/packages/piero/src/types/index.d.ts +1 -0
- package/dist/packages/piero/src/types/index.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/types/utilities.d.ts +1 -0
- package/dist/packages/piero/src/types/utilities.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/utils/Components.d.ts +1 -0
- package/dist/packages/piero/src/utils/Components.d.ts.map +1 -0
- package/dist/packages/piero/src/utils/Configuration.d.ts +12 -0
- package/dist/packages/piero/src/utils/Configuration.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/utils/Download.d.ts +2 -1
- package/dist/packages/piero/src/utils/Download.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/utils/Fetcher.d.ts +2 -20
- package/dist/packages/piero/src/utils/Fetcher.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/utils/Measure.d.ts +1 -0
- package/dist/packages/piero/src/utils/Measure.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/utils/Projections.d.ts +3 -2
- package/dist/packages/piero/src/utils/Projections.d.ts.map +1 -0
- package/dist/{src → packages/piero/src}/utils/Types.d.ts +1 -0
- package/dist/packages/piero/src/utils/Types.d.ts.map +1 -0
- package/dist/{src/utils/OLFeatures.d.ts → packages/piero/src/utils/features.d.ts} +1 -0
- package/dist/packages/piero/src/utils/features.d.ts.map +1 -0
- package/dist/packages/piero/src/utils/style.d.ts +4 -0
- package/dist/packages/piero/src/utils/style.d.ts.map +1 -0
- package/dist/userData.cjs.js +6 -0
- package/dist/userData.cjs.js.map +1 -0
- package/dist/{Components.es.js → userData.es.js} +2283 -3131
- package/dist/userData.es.js.map +1 -0
- package/package.json +9 -5
- package/dist/Components.cjs.js +0 -7
- package/dist/Components.cjs.js.map +0 -1
- package/dist/Components.es.js.map +0 -1
- package/dist/src/api/BookmarkApi.d.ts +0 -6
- package/dist/src/api/NotificationApi.d.ts +0 -10
- package/dist/src/api/ViewApi.d.ts +0 -10
- package/dist/src/api/index.d.ts +0 -5
- package/dist/src/components/StatusBar.vue.d.ts +0 -10
- package/dist/src/components/atoms/CompactList.vue.d.ts +0 -17
- package/dist/src/components/panels/BasemapItem.vue.d.ts +0 -17
- package/dist/src/components/panels/DatagroupItem.vue.d.ts +0 -18
- package/dist/src/components/panels/DatasetItem.vue.d.ts +0 -18
- package/dist/src/components/panels/DatasetOrGroupItem.vue.d.ts +0 -16
- package/dist/src/components/panels/DatasetPanel.vue.d.ts +0 -2
- package/dist/src/components/panels/OverlayItem.vue.d.ts +0 -19
- package/dist/src/config-loader.d.ts +0 -7
- package/dist/src/createPieroApp.d.ts +0 -31
- package/dist/src/giro3d/EntityBuilder.d.ts +0 -21
- package/dist/src/giro3d/Graticule.d.ts +0 -20
- package/dist/src/giro3d/Grid.d.ts +0 -11
- package/dist/src/giro3d/LayerBuilder.d.ts +0 -46
- package/dist/src/giro3d/Plane.d.ts +0 -11
- package/dist/src/giro3d/Skybox.d.ts +0 -6
- package/dist/src/giro3d/entities/PointCloudEntity.d.ts +0 -45
- package/dist/src/giro3d/entities/TiledPointCloudEntity.d.ts +0 -13
- package/dist/src/giro3d/entities/Tiles3dEntity.d.ts +0 -11
- package/dist/src/giro3d/entities/VectorLabelsEntity.d.ts +0 -48
- package/dist/src/giro3d/entities/VectorMeshEntity.d.ts +0 -97
- package/dist/src/giro3d/entities/VectorShapeEntity.d.ts +0 -8
- package/dist/src/giro3d/entities/flatPointCloud.d.ts +0 -2
- package/dist/src/giro3d/entities/tiledIfc.d.ts +0 -2
- package/dist/src/giro3d/entities/vector.d.ts +0 -2
- package/dist/src/giro3d/sources/GeopackageSource.d.ts +0 -20
- package/dist/src/giro3d/sources/ShapefileSource.d.ts +0 -20
- package/dist/src/giro3d/sources/mixins.d.ts +0 -60
- package/dist/src/index.d.ts +0 -18
- package/dist/src/loaders/csv.d.ts +0 -3
- package/dist/src/loaders/las.d.ts +0 -3
- package/dist/src/loaders/loader.test.d.ts +0 -1
- package/dist/src/loaders/vector.d.ts +0 -4
- package/dist/src/modules/ClippingBoxAnalysis.d.ts +0 -18
- package/dist/src/modules/CrossSectionAnalysis.d.ts +0 -11
- package/dist/src/modules/FloodingPlaneAnalysis.d.ts +0 -11
- package/dist/src/modules/IFCLoader.d.ts +0 -10
- package/dist/src/modules/PLYLoader.d.ts +0 -10
- package/dist/src/modules/PotreeLoader.d.ts +0 -10
- package/dist/src/modules/clippingBoxAnalysis/store.d.ts +0 -2268
- package/dist/src/modules/crossSectionAnalysis/CrossSectionHelper.d.ts +0 -4
- package/dist/src/modules/crossSectionAnalysis/store.d.ts +0 -542
- package/dist/src/modules/index.d.ts +0 -13
- package/dist/src/modules/ply/PlyEntity.d.ts +0 -33
- package/dist/src/services/LayerManager.d.ts +0 -37
- package/dist/src/stores/layers.d.ts +0 -40
- package/dist/src/stores/modules.test.d.ts +0 -1
- package/dist/src/types/BaseLayer.d.ts +0 -30
- package/dist/src/types/Configuration.d.ts +0 -106
- package/dist/src/types/Dataset.d.ts +0 -78
- package/dist/src/types/IFCTypes.d.ts +0 -5
- package/dist/src/types/LayerObject.d.ts +0 -20
- package/dist/src/types/Notification.d.ts +0 -8
- package/dist/src/types/Overlay.d.ts +0 -24
- package/dist/src/types/VectorStyle.d.ts +0 -31
- package/dist/src/types/configuration/analysis.d.ts +0 -26
- package/dist/src/types/configuration/bookmark.d.ts +0 -16
- package/dist/src/types/configuration/camera.d.ts +0 -19
- package/dist/src/types/configuration/color.d.ts +0 -18
- package/dist/src/types/configuration/datasets/cityjson.d.ts +0 -9
- package/dist/src/types/configuration/datasets/core.d.ts +0 -49
- package/dist/src/types/configuration/datasets/featureCollection.d.ts +0 -6
- package/dist/src/types/configuration/datasets/ifc.d.ts +0 -10
- package/dist/src/types/configuration/datasets/index.d.ts +0 -27
- package/dist/src/types/configuration/datasets/layer.d.ts +0 -43
- package/dist/src/types/configuration/datasets/ply.d.ts +0 -10
- package/dist/src/types/configuration/datasets/pointCloud.d.ts +0 -12
- package/dist/src/types/configuration/datasets/potreePointCloud.d.ts +0 -10
- package/dist/src/types/configuration/datasets/tiledIfc.d.ts +0 -9
- package/dist/src/types/configuration/datasets/tiledPointCloud.d.ts +0 -9
- package/dist/src/types/configuration/datasets/vector.d.ts +0 -34
- package/dist/src/types/configuration/features.d.ts +0 -2
- package/dist/src/types/configuration/geographic.d.ts +0 -51
- package/dist/src/types/configuration/layers/core.d.ts +0 -50
- package/dist/src/types/configuration/layers/index.d.ts +0 -51
- package/dist/src/types/configuration/sources/bingMaps.d.ts +0 -5
- package/dist/src/types/configuration/sources/core/baseConfig.d.ts +0 -70
- package/dist/src/types/configuration/sources/core/tiled.d.ts +0 -19
- package/dist/src/types/configuration/sources/core/vector.d.ts +0 -13
- package/dist/src/types/configuration/sources/core/vectorTile.d.ts +0 -8
- package/dist/src/types/configuration/sources/customVector.d.ts +0 -7
- package/dist/src/types/configuration/sources/customVectorTile.d.ts +0 -8
- package/dist/src/types/configuration/sources/geojson.d.ts +0 -5
- package/dist/src/types/configuration/sources/geotiff.d.ts +0 -8
- package/dist/src/types/configuration/sources/gpx.d.ts +0 -5
- package/dist/src/types/configuration/sources/kml.d.ts +0 -5
- package/dist/src/types/configuration/sources/mvt.d.ts +0 -10
- package/dist/src/types/configuration/sources/osm.d.ts +0 -5
- package/dist/src/types/configuration/sources/stadiaMaps.d.ts +0 -5
- package/dist/src/types/configuration/sources/wms.d.ts +0 -15
- package/dist/src/types/configuration/sources/wmts.d.ts +0 -15
- package/dist/src/types/configuration/sources/xyz.d.ts +0 -9
- package/dist/src/utils/Configuration.d.ts +0 -15
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Types.d.ts","sourceRoot":"","sources":["../../../../../src/utils/Types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,OAAO,EAAE,MAAM,OAAO,CAAC;AAEjD,KAAK,IAAI,GAAG;IACR,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAAgB,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,CAAC,CAMvD;AAED,eAAO,MAAM,QAAQ,GAAI,KAAK,OAAO,KAAG,GAAG,IAAI,MAAgD,CAAC;AAEhG,eAAO,MAAM,MAAM,GAAI,KAAK,OAAO,KAAG,GAAG,IAAI,IAAsC,CAAC;AACpF,eAAO,MAAM,OAAO,GAAI,KAAK,OAAO,KAAG,GAAG,IAAI,KAAgD,CAAC;AAC/F,eAAO,MAAM,SAAS,GAAI,KAAK,OAAO,KAAG,GAAG,IAAI,OACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../../../../../src/utils/features.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,aAAa,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAI1C,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,KAAK,EACV,KAAK,OAAO,EACf,MAAM,SAAS,CAAC;AACjB,OAAO,EAAS,KAAK,EAAE,MAAM,OAAO,CAAC;AAErC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAIxD,iBAAe,iBAAiB,CAC5B,QAAQ,EAAE,aAAa,EAAE,EACzB,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,GACpB,OAAO,CAAC,IAAI,CAAC,CAwGf;AAED,iBAAS,gBAAgB,CAAC,QAAQ,EAAE,aAAa,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI,CA6DhG;AAED;;;;;;;;GAQG;AACH,iBAAe,YAAY,CACvB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,aAAa,EACrB,cAAc,EAAE,MAAM,GAAG,SAAS,EAClC,iBAAiB,EAAE,MAAM,GAC1B,OAAO,CAAC,WAAW,EAAE,CAAC,CAOxB;AAED;;;;;;;;GAQG;AACH,iBAAS,kBAAkB,CACvB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,aAAa,EACrB,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,GAC1B,aAAa,EAAE,CAOjB;AAED;;;;;;;GAOG;AACH,iBAAS,QAAQ,CAAC,UAAU,EAAE,aAAa,EAAE,EAAE,cAAc,CAAC,EAAE,cAAc,GAAG,KAAK,CAsDrF;AAED;;;;;;GAMG;AACH,iBAAS,gBAAgB,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,aAAa,EAAE,CAuBlE;AAED,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAEpD,MAAM,MAAM,cAAc,GACpB,UAAU,GACV,eAAe,GACf,UAAU,GACV,YAAY,GACZ,KAAK,GACL,OAAO,CAAC;AAEd,MAAM,MAAM,kBAAkB,GACxB,YAAY,GACZ,iBAAiB,GACjB,YAAY,GACZ,cAAc,GACd,OAAO,GACP,SAAS,CAAC;;;;;;;;;AAEhB,wBAOE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../src/utils/style.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAIhD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAErE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,uBAAuB,GAAG,SAAS,CAW3E"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";var ir=Object.defineProperty;var sr=(a,t,e)=>t in a?ir(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var R=(a,t,e)=>sr(a,typeof t!="symbol"?t+"":t,e);const nr=require("@giro3d/giro3d/core/picking/PickPointsAt"),rr=require("@giro3d/giro3d/core/picking/PickTilesAt"),or=require("@giro3d/giro3d/entities/Map"),ti=require("@giro3d/giro3d/entities/Shape"),S=require("vue"),ai=require("pinia"),ar=require("@giro3d/giro3d/core/Instance"),M=require("zod"),hr=require("@giro3d/giro3d/utils/Fetcher"),lr=require("@loaders.gl/core"),cr=require("@giro3d/giro3d/core/ColorMap"),Ee=require("@giro3d/giro3d/core/geographic/Coordinates"),Cs=require("@giro3d/giro3d/core/geographic/Extent"),vs=require("chroma-js"),ur=require("ol/style/Fill"),dr=require("ol/style/Stroke"),pr=require("ol/style/Style");/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2010-2024 Three.js Authors
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/const wn="170",Ui=0,mr=1,Mn=2,Es=1,Fs=100,Bs=204,ks=205,Ps=3,fr=0,_n=300,Ts=1e3,Fe=1001,Is=1002,yr=1006,xr=1008,gr=1009,br=1015,wr=1023,Sn="",ft="srgb",zn="srgb-linear",An="linear",Hi="srgb",Jt=7680,Ds=519,Rs=35044,Ut=2e3,qi=2001;class Yt{addEventListener(t,e){this._listeners===void 0&&(this._listeners={});const i=this._listeners;i[t]===void 0&&(i[t]=[]),i[t].indexOf(e)===-1&&i[t].push(e)}hasEventListener(t,e){if(this._listeners===void 0)return!1;const i=this._listeners;return i[t]!==void 0&&i[t].indexOf(e)!==-1}removeEventListener(t,e){if(this._listeners===void 0)return;const s=this._listeners[t];if(s!==void 0){const n=s.indexOf(e);n!==-1&&s.splice(n,1)}}dispatchEvent(t){if(this._listeners===void 0)return;const i=this._listeners[t.type];if(i!==void 0){t.target=this;const s=i.slice(0);for(let n=0,r=s.length;n<r;n++)s[n].call(this,t);t.target=null}}}const K=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];let Os=1234567;const Cn=Math.PI/180,vn=180/Math.PI;function de(){const a=Math.random()*4294967295|0,t=Math.random()*4294967295|0,e=Math.random()*4294967295|0,i=Math.random()*4294967295|0;return(K[a&255]+K[a>>8&255]+K[a>>16&255]+K[a>>24&255]+"-"+K[t&255]+K[t>>8&255]+"-"+K[t>>16&15|64]+K[t>>24&255]+"-"+K[e&63|128]+K[e>>8&255]+"-"+K[e>>16&255]+K[e>>24&255]+K[i&255]+K[i>>8&255]+K[i>>16&255]+K[i>>24&255]).toLowerCase()}function st(a,t,e){return Math.max(t,Math.min(e,a))}function Gi(a,t){return(a%t+t)%t}function Mr(a,t,e,i,s){return i+(a-t)*(s-i)/(e-t)}function _r(a,t,e){return a!==t?(e-a)/(t-a):0}function ze(a,t,e){return(1-e)*a+e*t}function Sr(a,t,e,i){return ze(a,t,1-Math.exp(-e*i))}function zr(a,t=1){return t-Math.abs(Gi(a,t*2)-t)}function Ar(a,t,e){return a<=t?0:a>=e?1:(a=(a-t)/(e-t),a*a*(3-2*a))}function Cr(a,t,e){return a<=t?0:a>=e?1:(a=(a-t)/(e-t),a*a*a*(a*(a*6-15)+10))}function vr(a,t){return a+Math.floor(Math.random()*(t-a+1))}function Er(a,t){return a+Math.random()*(t-a)}function Fr(a){return a*(.5-Math.random())}function Br(a){a!==void 0&&(Os=a);let t=Os+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}function kr(a){return a*Cn}function Pr(a){return a*vn}function Tr(a){return(a&a-1)===0&&a!==0}function Ir(a){return Math.pow(2,Math.ceil(Math.log(a)/Math.LN2))}function Dr(a){return Math.pow(2,Math.floor(Math.log(a)/Math.LN2))}function Rr(a,t,e,i,s){const n=Math.cos,r=Math.sin,o=n(e/2),h=r(e/2),l=n((t+i)/2),c=r((t+i)/2),u=n((t-i)/2),d=r((t-i)/2),p=n((i-t)/2),m=r((i-t)/2);switch(s){case"XYX":a.set(o*c,h*u,h*d,o*l);break;case"YZY":a.set(h*d,o*c,h*u,o*l);break;case"ZXZ":a.set(h*u,h*d,o*c,o*l);break;case"XZX":a.set(o*c,h*m,h*p,o*l);break;case"YXY":a.set(h*p,o*c,h*m,o*l);break;case"ZYZ":a.set(h*m,h*p,o*c,o*l);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+s)}}function le(a,t){switch(t.constructor){case Float32Array:return a;case Uint32Array:return a/4294967295;case Uint16Array:return a/65535;case Uint8Array:return a/255;case Int32Array:return Math.max(a/2147483647,-1);case Int16Array:return Math.max(a/32767,-1);case Int8Array:return Math.max(a/127,-1);default:throw new Error("Invalid component type.")}}function nt(a,t){switch(t.constructor){case Float32Array:return a;case Uint32Array:return Math.round(a*4294967295);case Uint16Array:return Math.round(a*65535);case Uint8Array:return Math.round(a*255);case Int32Array:return Math.round(a*2147483647);case Int16Array:return Math.round(a*32767);case Int8Array:return Math.round(a*127);default:throw new Error("Invalid component type.")}}const ei={DEG2RAD:Cn,RAD2DEG:vn,generateUUID:de,clamp:st,euclideanModulo:Gi,mapLinear:Mr,inverseLerp:_r,lerp:ze,damp:Sr,pingpong:zr,smoothstep:Ar,smootherstep:Cr,randInt:vr,randFloat:Er,randFloatSpread:Fr,seededRandom:Br,degToRad:kr,radToDeg:Pr,isPowerOfTwo:Tr,ceilPowerOfTwo:Ir,floorPowerOfTwo:Dr,setQuaternionFromProperEuler:Rr,normalize:nt,denormalize:le};class ${constructor(t=0,e=0){$.prototype.isVector2=!0,this.x=t,this.y=e}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,e){return this.x=t,this.y=e,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}applyMatrix3(t){const e=this.x,i=this.y,s=t.elements;return this.x=s[0]*e+s[3]*i+s[6],this.y=s[1]*e+s[4]*i+s[7],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this}clampLength(t,e){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-this.y*t.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(e===0)return Math.PI/2;const i=this.dot(t)/e;return Math.acos(st(i,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,i=this.y-t.y;return e*e+i*i}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this}lerpVectors(t,e,i){return this.x=t.x+(e.x-t.x)*i,this.y=t.y+(e.y-t.y)*i,this}equals(t){return t.x===this.x&&t.y===this.y}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this}rotateAround(t,e){const i=Math.cos(e),s=Math.sin(e),n=this.x-t.x,r=this.y-t.y;return this.x=n*i-r*s+t.x,this.y=n*s+r*i+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Ct{constructor(t,e,i,s,n,r,o,h,l){Ct.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],t!==void 0&&this.set(t,e,i,s,n,r,o,h,l)}set(t,e,i,s,n,r,o,h,l){const c=this.elements;return c[0]=t,c[1]=s,c[2]=o,c[3]=e,c[4]=n,c[5]=h,c[6]=i,c[7]=r,c[8]=l,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(t){const e=this.elements,i=t.elements;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],this}extractBasis(t,e,i){return t.setFromMatrix3Column(this,0),e.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}setFromMatrix4(t){const e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const i=t.elements,s=e.elements,n=this.elements,r=i[0],o=i[3],h=i[6],l=i[1],c=i[4],u=i[7],d=i[2],p=i[5],m=i[8],y=s[0],b=s[3],_=s[6],g=s[1],f=s[4],w=s[7],A=s[2],C=s[5],E=s[8];return n[0]=r*y+o*g+h*A,n[3]=r*b+o*f+h*C,n[6]=r*_+o*w+h*E,n[1]=l*y+c*g+u*A,n[4]=l*b+c*f+u*C,n[7]=l*_+c*w+u*E,n[2]=d*y+p*g+m*A,n[5]=d*b+p*f+m*C,n[8]=d*_+p*w+m*E,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this}determinant(){const t=this.elements,e=t[0],i=t[1],s=t[2],n=t[3],r=t[4],o=t[5],h=t[6],l=t[7],c=t[8];return e*r*c-e*o*l-i*n*c+i*o*h+s*n*l-s*r*h}invert(){const t=this.elements,e=t[0],i=t[1],s=t[2],n=t[3],r=t[4],o=t[5],h=t[6],l=t[7],c=t[8],u=c*r-o*l,d=o*h-c*n,p=l*n-r*h,m=e*u+i*d+s*p;if(m===0)return this.set(0,0,0,0,0,0,0,0,0);const y=1/m;return t[0]=u*y,t[1]=(s*l-c*i)*y,t[2]=(o*i-s*r)*y,t[3]=d*y,t[4]=(c*e-s*h)*y,t[5]=(s*n-o*e)*y,t[6]=p*y,t[7]=(i*h-l*e)*y,t[8]=(r*e-i*n)*y,this}transpose(){let t;const e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).invert().transpose()}transposeIntoArray(t){const e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this}setUvTransform(t,e,i,s,n,r,o){const h=Math.cos(n),l=Math.sin(n);return this.set(i*h,i*l,-i*(h*r+l*o)+r+t,-s*l,s*h,-s*(-l*r+h*o)+o+e,0,0,1),this}scale(t,e){return this.premultiply(gi.makeScale(t,e)),this}rotate(t){return this.premultiply(gi.makeRotation(-t)),this}translate(t,e){return this.premultiply(gi.makeTranslation(t,e)),this}makeTranslation(t,e){return t.isVector2?this.set(1,0,t.x,0,1,t.y,0,0,1):this.set(1,0,t,0,1,e,0,0,1),this}makeRotation(t){const e=Math.cos(t),i=Math.sin(t);return this.set(e,-i,0,i,e,0,0,0,1),this}makeScale(t,e){return this.set(t,0,0,0,e,0,0,0,1),this}equals(t){const e=this.elements,i=t.elements;for(let s=0;s<9;s++)if(e[s]!==i[s])return!1;return!0}fromArray(t,e=0){for(let i=0;i<9;i++)this.elements[i]=t[i+e];return this}toArray(t=[],e=0){const i=this.elements;return t[e]=i[0],t[e+1]=i[1],t[e+2]=i[2],t[e+3]=i[3],t[e+4]=i[4],t[e+5]=i[5],t[e+6]=i[6],t[e+7]=i[7],t[e+8]=i[8],t}clone(){return new this.constructor().fromArray(this.elements)}}const gi=new Ct;function Or(a){for(let t=a.length-1;t>=0;--t)if(a[t]>=65535)return!0;return!1}function Ns(a){return document.createElementNS("http://www.w3.org/1999/xhtml",a)}const ct={enabled:!0,workingColorSpace:zn,spaces:{},convert:function(a,t,e){return this.enabled===!1||t===e||!t||!e||(this.spaces[t].transfer===Hi&&(a.r=At(a.r),a.g=At(a.g),a.b=At(a.b)),this.spaces[t].primaries!==this.spaces[e].primaries&&(a.applyMatrix3(this.spaces[t].toXYZ),a.applyMatrix3(this.spaces[e].fromXYZ)),this.spaces[e].transfer===Hi&&(a.r=ue(a.r),a.g=ue(a.g),a.b=ue(a.b))),a},fromWorkingColorSpace:function(a,t){return this.convert(a,this.workingColorSpace,t)},toWorkingColorSpace:function(a,t){return this.convert(a,t,this.workingColorSpace)},getPrimaries:function(a){return this.spaces[a].primaries},getTransfer:function(a){return a===Sn?An:this.spaces[a].transfer},getLuminanceCoefficients:function(a,t=this.workingColorSpace){return a.fromArray(this.spaces[t].luminanceCoefficients)},define:function(a){Object.assign(this.spaces,a)},_getMatrix:function(a,t,e){return a.copy(this.spaces[t].toXYZ).multiply(this.spaces[e].fromXYZ)},_getDrawingBufferColorSpace:function(a){return this.spaces[a].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(a=this.workingColorSpace){return this.spaces[a].workingColorSpaceConfig.unpackColorSpace}};function At(a){return a<.04045?a*.0773993808:Math.pow(a*.9478672986+.0521327014,2.4)}function ue(a){return a<.0031308?a*12.92:1.055*Math.pow(a,.41666)-.055}const Ls=[.64,.33,.3,.6,.15,.06],Vs=[.2126,.7152,.0722],Ws=[.3127,.329],js=new Ct().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),Us=new Ct().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);ct.define({[zn]:{primaries:Ls,whitePoint:Ws,transfer:An,toXYZ:js,fromXYZ:Us,luminanceCoefficients:Vs,workingColorSpaceConfig:{unpackColorSpace:ft},outputColorSpaceConfig:{drawingBufferColorSpace:ft}},[ft]:{primaries:Ls,whitePoint:Ws,transfer:Hi,toXYZ:js,fromXYZ:Us,luminanceCoefficients:Vs,outputColorSpaceConfig:{drawingBufferColorSpace:ft}}});let Kt;class Nr{static getDataURL(t){if(/^data:/i.test(t.src)||typeof HTMLCanvasElement>"u")return t.src;let e;if(t instanceof HTMLCanvasElement)e=t;else{Kt===void 0&&(Kt=Ns("canvas")),Kt.width=t.width,Kt.height=t.height;const i=Kt.getContext("2d");t instanceof ImageData?i.putImageData(t,0,0):i.drawImage(t,0,0,t.width,t.height),e=Kt}return e.width>2048||e.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",t),e.toDataURL("image/jpeg",.6)):e.toDataURL("image/png")}static sRGBToLinear(t){if(typeof HTMLImageElement<"u"&&t instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&t instanceof ImageBitmap){const e=Ns("canvas");e.width=t.width,e.height=t.height;const i=e.getContext("2d");i.drawImage(t,0,0,t.width,t.height);const s=i.getImageData(0,0,t.width,t.height),n=s.data;for(let r=0;r<n.length;r++)n[r]=At(n[r]/255)*255;return i.putImageData(s,0,0),e}else if(t.data){const e=t.data.slice(0);for(let i=0;i<e.length;i++)e instanceof Uint8Array||e instanceof Uint8ClampedArray?e[i]=Math.floor(At(e[i]/255)*255):e[i]=At(e[i]);return{data:e,width:t.width,height:t.height}}else return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),t}}let Lr=0;class Vr{constructor(t=null){this.isSource=!0,Object.defineProperty(this,"id",{value:Lr++}),this.uuid=de(),this.data=t,this.dataReady=!0,this.version=0}set needsUpdate(t){t===!0&&this.version++}toJSON(t){const e=t===void 0||typeof t=="string";if(!e&&t.images[this.uuid]!==void 0)return t.images[this.uuid];const i={uuid:this.uuid,url:""},s=this.data;if(s!==null){let n;if(Array.isArray(s)){n=[];for(let r=0,o=s.length;r<o;r++)s[r].isDataTexture?n.push(bi(s[r].image)):n.push(bi(s[r]))}else n=bi(s);i.url=n}return e||(t.images[this.uuid]=i),i}}function bi(a){return typeof HTMLImageElement<"u"&&a instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&a instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&a instanceof ImageBitmap?Nr.getDataURL(a):a.data?{data:Array.from(a.data),width:a.width,height:a.height,type:a.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}let Wr=0;class Ht extends Yt{constructor(t=Ht.DEFAULT_IMAGE,e=Ht.DEFAULT_MAPPING,i=Fe,s=Fe,n=yr,r=xr,o=wr,h=gr,l=Ht.DEFAULT_ANISOTROPY,c=Sn){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:Wr++}),this.uuid=de(),this.name="",this.source=new Vr(t),this.mipmaps=[],this.mapping=e,this.channel=0,this.wrapS=i,this.wrapT=s,this.magFilter=n,this.minFilter=r,this.anisotropy=l,this.format=o,this.internalFormat=null,this.type=h,this.offset=new $(0,0),this.repeat=new $(1,1),this.center=new $(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new Ct,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.colorSpace=c,this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,this.pmremVersion=0}get image(){return this.source.data}set image(t=null){this.source.data=t}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return new this.constructor().copy(this)}copy(t){return this.name=t.name,this.source=t.source,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.channel=t.channel,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.internalFormat=t.internalFormat,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.colorSpace=t.colorSpace,this.userData=JSON.parse(JSON.stringify(t.userData)),this.needsUpdate=!0,this}toJSON(t){const e=t===void 0||typeof t=="string";if(!e&&t.textures[this.uuid]!==void 0)return t.textures[this.uuid];const i={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(t).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(i.userData=this.userData),e||(t.textures[this.uuid]=i),i}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(t){if(this.mapping!==_n)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case Ts:t.x=t.x-Math.floor(t.x);break;case Fe:t.x=t.x<0?0:1;break;case Is:Math.abs(Math.floor(t.x)%2)===1?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x);break}if(t.y<0||t.y>1)switch(this.wrapT){case Ts:t.y=t.y-Math.floor(t.y);break;case Fe:t.y=t.y<0?0:1;break;case Is:Math.abs(Math.floor(t.y)%2)===1?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y);break}return this.flipY&&(t.y=1-t.y),t}set needsUpdate(t){t===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(t){t===!0&&this.pmremVersion++}}Ht.DEFAULT_IMAGE=null;Ht.DEFAULT_MAPPING=_n;Ht.DEFAULT_ANISOTROPY=1;class Zt{constructor(t=0,e=0,i=0,s=1){Zt.prototype.isVector4=!0,this.x=t,this.y=e,this.z=i,this.w=s}get width(){return this.z}set width(t){this.z=t}get height(){return this.w}set height(t){this.w=t}set(t,e,i,s){return this.x=t,this.y=e,this.z=i,this.w=s,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this.w=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setW(t){return this.w=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w!==void 0?t.w:1,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this.w*=t.w,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this}applyMatrix4(t){const e=this.x,i=this.y,s=this.z,n=this.w,r=t.elements;return this.x=r[0]*e+r[4]*i+r[8]*s+r[12]*n,this.y=r[1]*e+r[5]*i+r[9]*s+r[13]*n,this.z=r[2]*e+r[6]*i+r[10]*s+r[14]*n,this.w=r[3]*e+r[7]*i+r[11]*s+r[15]*n,this}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this.w/=t.w,this}divideScalar(t){return this.multiplyScalar(1/t)}setAxisAngleFromQuaternion(t){this.w=2*Math.acos(t.w);const e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this}setAxisAngleFromRotationMatrix(t){let e,i,s,n;const h=t.elements,l=h[0],c=h[4],u=h[8],d=h[1],p=h[5],m=h[9],y=h[2],b=h[6],_=h[10];if(Math.abs(c-d)<.01&&Math.abs(u-y)<.01&&Math.abs(m-b)<.01){if(Math.abs(c+d)<.1&&Math.abs(u+y)<.1&&Math.abs(m+b)<.1&&Math.abs(l+p+_-3)<.1)return this.set(1,0,0,0),this;e=Math.PI;const f=(l+1)/2,w=(p+1)/2,A=(_+1)/2,C=(c+d)/4,E=(u+y)/4,z=(m+b)/4;return f>w&&f>A?f<.01?(i=0,s=.707106781,n=.707106781):(i=Math.sqrt(f),s=C/i,n=E/i):w>A?w<.01?(i=.707106781,s=0,n=.707106781):(s=Math.sqrt(w),i=C/s,n=z/s):A<.01?(i=.707106781,s=.707106781,n=0):(n=Math.sqrt(A),i=E/n,s=z/n),this.set(i,s,n,e),this}let g=Math.sqrt((b-m)*(b-m)+(u-y)*(u-y)+(d-c)*(d-c));return Math.abs(g)<.001&&(g=1),this.x=(b-m)/g,this.y=(u-y)/g,this.z=(d-c)/g,this.w=Math.acos((l+p+_-1)/2),this}setFromMatrixPosition(t){const e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this.w=e[15],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this.w=Math.max(t.w,Math.min(e.w,this.w)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this.w=Math.max(t,Math.min(e,this.w)),this}clampLength(t,e){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this.w+=(t.w-this.w)*e,this}lerpVectors(t,e,i){return this.x=t.x+(e.x-t.x)*i,this.y=t.y+(e.y-t.y)*i,this.z=t.z+(e.z-t.z)*i,this.w=t.w+(e.w-t.w)*i,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class it{constructor(t=0,e=0,i=0,s=1){this.isQuaternion=!0,this._x=t,this._y=e,this._z=i,this._w=s}static slerpFlat(t,e,i,s,n,r,o){let h=i[s+0],l=i[s+1],c=i[s+2],u=i[s+3];const d=n[r+0],p=n[r+1],m=n[r+2],y=n[r+3];if(o===0){t[e+0]=h,t[e+1]=l,t[e+2]=c,t[e+3]=u;return}if(o===1){t[e+0]=d,t[e+1]=p,t[e+2]=m,t[e+3]=y;return}if(u!==y||h!==d||l!==p||c!==m){let b=1-o;const _=h*d+l*p+c*m+u*y,g=_>=0?1:-1,f=1-_*_;if(f>Number.EPSILON){const A=Math.sqrt(f),C=Math.atan2(A,_*g);b=Math.sin(b*C)/A,o=Math.sin(o*C)/A}const w=o*g;if(h=h*b+d*w,l=l*b+p*w,c=c*b+m*w,u=u*b+y*w,b===1-o){const A=1/Math.sqrt(h*h+l*l+c*c+u*u);h*=A,l*=A,c*=A,u*=A}}t[e]=h,t[e+1]=l,t[e+2]=c,t[e+3]=u}static multiplyQuaternionsFlat(t,e,i,s,n,r){const o=i[s],h=i[s+1],l=i[s+2],c=i[s+3],u=n[r],d=n[r+1],p=n[r+2],m=n[r+3];return t[e]=o*m+c*u+h*p-l*d,t[e+1]=h*m+c*d+l*u-o*p,t[e+2]=l*m+c*p+o*d-h*u,t[e+3]=c*m-o*u-h*d-l*p,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,e,i,s){return this._x=t,this._y=e,this._z=i,this._w=s,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,e=!0){const i=t._x,s=t._y,n=t._z,r=t._order,o=Math.cos,h=Math.sin,l=o(i/2),c=o(s/2),u=o(n/2),d=h(i/2),p=h(s/2),m=h(n/2);switch(r){case"XYZ":this._x=d*c*u+l*p*m,this._y=l*p*u-d*c*m,this._z=l*c*m+d*p*u,this._w=l*c*u-d*p*m;break;case"YXZ":this._x=d*c*u+l*p*m,this._y=l*p*u-d*c*m,this._z=l*c*m-d*p*u,this._w=l*c*u+d*p*m;break;case"ZXY":this._x=d*c*u-l*p*m,this._y=l*p*u+d*c*m,this._z=l*c*m+d*p*u,this._w=l*c*u-d*p*m;break;case"ZYX":this._x=d*c*u-l*p*m,this._y=l*p*u+d*c*m,this._z=l*c*m-d*p*u,this._w=l*c*u+d*p*m;break;case"YZX":this._x=d*c*u+l*p*m,this._y=l*p*u+d*c*m,this._z=l*c*m-d*p*u,this._w=l*c*u-d*p*m;break;case"XZY":this._x=d*c*u-l*p*m,this._y=l*p*u-d*c*m,this._z=l*c*m+d*p*u,this._w=l*c*u+d*p*m;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+r)}return e===!0&&this._onChangeCallback(),this}setFromAxisAngle(t,e){const i=e/2,s=Math.sin(i);return this._x=t.x*s,this._y=t.y*s,this._z=t.z*s,this._w=Math.cos(i),this._onChangeCallback(),this}setFromRotationMatrix(t){const e=t.elements,i=e[0],s=e[4],n=e[8],r=e[1],o=e[5],h=e[9],l=e[2],c=e[6],u=e[10],d=i+o+u;if(d>0){const p=.5/Math.sqrt(d+1);this._w=.25/p,this._x=(c-h)*p,this._y=(n-l)*p,this._z=(r-s)*p}else if(i>o&&i>u){const p=2*Math.sqrt(1+i-o-u);this._w=(c-h)/p,this._x=.25*p,this._y=(s+r)/p,this._z=(n+l)/p}else if(o>u){const p=2*Math.sqrt(1+o-i-u);this._w=(n-l)/p,this._x=(s+r)/p,this._y=.25*p,this._z=(h+c)/p}else{const p=2*Math.sqrt(1+u-i-o);this._w=(r-s)/p,this._x=(n+l)/p,this._y=(h+c)/p,this._z=.25*p}return this._onChangeCallback(),this}setFromUnitVectors(t,e){let i=t.dot(e)+1;return i<Number.EPSILON?(i=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=i):(this._x=0,this._y=-t.z,this._z=t.y,this._w=i)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=i),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(st(this.dot(t),-1,1)))}rotateTowards(t,e){const i=this.angleTo(t);if(i===0)return this;const s=Math.min(1,e/i);return this.slerp(t,s),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return t===0?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t){return this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,e){const i=t._x,s=t._y,n=t._z,r=t._w,o=e._x,h=e._y,l=e._z,c=e._w;return this._x=i*c+r*o+s*l-n*h,this._y=s*c+r*h+n*o-i*l,this._z=n*c+r*l+i*h-s*o,this._w=r*c-i*o-s*h-n*l,this._onChangeCallback(),this}slerp(t,e){if(e===0)return this;if(e===1)return this.copy(t);const i=this._x,s=this._y,n=this._z,r=this._w;let o=r*t._w+i*t._x+s*t._y+n*t._z;if(o<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,o=-o):this.copy(t),o>=1)return this._w=r,this._x=i,this._y=s,this._z=n,this;const h=1-o*o;if(h<=Number.EPSILON){const p=1-e;return this._w=p*r+e*this._w,this._x=p*i+e*this._x,this._y=p*s+e*this._y,this._z=p*n+e*this._z,this.normalize(),this}const l=Math.sqrt(h),c=Math.atan2(l,o),u=Math.sin((1-e)*c)/l,d=Math.sin(e*c)/l;return this._w=r*u+this._w*d,this._x=i*u+this._x*d,this._y=s*u+this._y*d,this._z=n*u+this._z*d,this._onChangeCallback(),this}slerpQuaternions(t,e,i){return this.copy(t).slerp(e,i)}random(){const t=2*Math.PI*Math.random(),e=2*Math.PI*Math.random(),i=Math.random(),s=Math.sqrt(1-i),n=Math.sqrt(i);return this.set(s*Math.sin(t),s*Math.cos(t),n*Math.sin(e),n*Math.cos(e))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,e=0){return this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t}fromBufferAttribute(t,e){return this._x=t.getX(e),this._y=t.getY(e),this._z=t.getZ(e),this._w=t.getW(e),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class x{constructor(t=0,e=0,i=0){x.prototype.isVector3=!0,this.x=t,this.y=e,this.z=i}set(t,e,i){return i===void 0&&(i=this.z),this.x=t,this.y=e,this.z=i,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this}applyEuler(t){return this.applyQuaternion(Hs.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion(Hs.setFromAxisAngle(t,e))}applyMatrix3(t){const e=this.x,i=this.y,s=this.z,n=t.elements;return this.x=n[0]*e+n[3]*i+n[6]*s,this.y=n[1]*e+n[4]*i+n[7]*s,this.z=n[2]*e+n[5]*i+n[8]*s,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const e=this.x,i=this.y,s=this.z,n=t.elements,r=1/(n[3]*e+n[7]*i+n[11]*s+n[15]);return this.x=(n[0]*e+n[4]*i+n[8]*s+n[12])*r,this.y=(n[1]*e+n[5]*i+n[9]*s+n[13])*r,this.z=(n[2]*e+n[6]*i+n[10]*s+n[14])*r,this}applyQuaternion(t){const e=this.x,i=this.y,s=this.z,n=t.x,r=t.y,o=t.z,h=t.w,l=2*(r*s-o*i),c=2*(o*e-n*s),u=2*(n*i-r*e);return this.x=e+h*l+r*u-o*c,this.y=i+h*c+o*l-n*u,this.z=s+h*u+n*c-r*l,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){const e=this.x,i=this.y,s=this.z,n=t.elements;return this.x=n[0]*e+n[4]*i+n[8]*s,this.y=n[1]*e+n[5]*i+n[9]*s,this.z=n[2]*e+n[6]*i+n[10]*s,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this}clampLength(t,e){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this}lerpVectors(t,e,i){return this.x=t.x+(e.x-t.x)*i,this.y=t.y+(e.y-t.y)*i,this.z=t.z+(e.z-t.z)*i,this}cross(t){return this.crossVectors(this,t)}crossVectors(t,e){const i=t.x,s=t.y,n=t.z,r=e.x,o=e.y,h=e.z;return this.x=s*h-n*o,this.y=n*r-i*h,this.z=i*o-s*r,this}projectOnVector(t){const e=t.lengthSq();if(e===0)return this.set(0,0,0);const i=t.dot(this)/e;return this.copy(t).multiplyScalar(i)}projectOnPlane(t){return wi.copy(this).projectOnVector(t),this.sub(wi)}reflect(t){return this.sub(wi.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(e===0)return Math.PI/2;const i=this.dot(t)/e;return Math.acos(st(i,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,i=this.y-t.y,s=this.z-t.z;return e*e+i*i+s*s}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,e,i){const s=Math.sin(e)*t;return this.x=s*Math.sin(i),this.y=Math.cos(e)*t,this.z=s*Math.cos(i),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,e,i){return this.x=t*Math.sin(e),this.y=i,this.z=t*Math.cos(e),this}setFromMatrixPosition(t){const e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this}setFromMatrixScale(t){const e=this.setFromMatrixColumn(t,0).length(),i=this.setFromMatrixColumn(t,1).length(),s=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=i,this.z=s,this}setFromMatrixColumn(t,e){return this.fromArray(t.elements,e*4)}setFromMatrix3Column(t,e){return this.fromArray(t.elements,e*3)}setFromEuler(t){return this.x=t._x,this.y=t._y,this.z=t._z,this}setFromColor(t){return this.x=t.r,this.y=t.g,this.z=t.b,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const t=Math.random()*Math.PI*2,e=Math.random()*2-1,i=Math.sqrt(1-e*e);return this.x=i*Math.cos(t),this.y=e,this.z=i*Math.sin(t),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const wi=new x,Hs=new it;class xt{constructor(t=new x(1/0,1/0,1/0),e=new x(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=t,this.max=e}set(t,e){return this.min.copy(t),this.max.copy(e),this}setFromArray(t){this.makeEmpty();for(let e=0,i=t.length;e<i;e+=3)this.expandByPoint(dt.fromArray(t,e));return this}setFromBufferAttribute(t){this.makeEmpty();for(let e=0,i=t.count;e<i;e++)this.expandByPoint(dt.fromBufferAttribute(t,e));return this}setFromPoints(t){this.makeEmpty();for(let e=0,i=t.length;e<i;e++)this.expandByPoint(t[e]);return this}setFromCenterAndSize(t,e){const i=dt.copy(e).multiplyScalar(.5);return this.min.copy(t).sub(i),this.max.copy(t).add(i),this}setFromObject(t,e=!1){return this.makeEmpty(),this.expandByObject(t,e)}clone(){return new this.constructor().copy(this)}copy(t){return this.min.copy(t.min),this.max.copy(t.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(t){return this.isEmpty()?t.set(0,0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(t){return this.isEmpty()?t.set(0,0,0):t.subVectors(this.max,this.min)}expandByPoint(t){return this.min.min(t),this.max.max(t),this}expandByVector(t){return this.min.sub(t),this.max.add(t),this}expandByScalar(t){return this.min.addScalar(-t),this.max.addScalar(t),this}expandByObject(t,e=!1){t.updateWorldMatrix(!1,!1);const i=t.geometry;if(i!==void 0){const n=i.getAttribute("position");if(e===!0&&n!==void 0&&t.isInstancedMesh!==!0)for(let r=0,o=n.count;r<o;r++)t.isMesh===!0?t.getVertexPosition(r,dt):dt.fromBufferAttribute(n,r),dt.applyMatrix4(t.matrixWorld),this.expandByPoint(dt);else t.boundingBox!==void 0?(t.boundingBox===null&&t.computeBoundingBox(),Be.copy(t.boundingBox)):(i.boundingBox===null&&i.computeBoundingBox(),Be.copy(i.boundingBox)),Be.applyMatrix4(t.matrixWorld),this.union(Be)}const s=t.children;for(let n=0,r=s.length;n<r;n++)this.expandByObject(s[n],e);return this}containsPoint(t){return t.x>=this.min.x&&t.x<=this.max.x&&t.y>=this.min.y&&t.y<=this.max.y&&t.z>=this.min.z&&t.z<=this.max.z}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z}getParameter(t,e){return e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(t){return t.max.x>=this.min.x&&t.min.x<=this.max.x&&t.max.y>=this.min.y&&t.min.y<=this.max.y&&t.max.z>=this.min.z&&t.min.z<=this.max.z}intersectsSphere(t){return this.clampPoint(t.center,dt),dt.distanceToSquared(t.center)<=t.radius*t.radius}intersectsPlane(t){let e,i;return t.normal.x>0?(e=t.normal.x*this.min.x,i=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,i=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,i+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,i+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,i+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,i+=t.normal.z*this.min.z),e<=-t.constant&&i>=-t.constant}intersectsTriangle(t){if(this.isEmpty())return!1;this.getCenter(fe),ke.subVectors(this.max,fe),te.subVectors(t.a,fe),ee.subVectors(t.b,fe),ie.subVectors(t.c,fe),Et.subVectors(ee,te),Ft.subVectors(ie,ee),Rt.subVectors(te,ie);let e=[0,-Et.z,Et.y,0,-Ft.z,Ft.y,0,-Rt.z,Rt.y,Et.z,0,-Et.x,Ft.z,0,-Ft.x,Rt.z,0,-Rt.x,-Et.y,Et.x,0,-Ft.y,Ft.x,0,-Rt.y,Rt.x,0];return!Mi(e,te,ee,ie,ke)||(e=[1,0,0,0,1,0,0,0,1],!Mi(e,te,ee,ie,ke))?!1:(Pe.crossVectors(Et,Ft),e=[Pe.x,Pe.y,Pe.z],Mi(e,te,ee,ie,ke))}clampPoint(t,e){return e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return this.clampPoint(t,dt).distanceTo(t)}getBoundingSphere(t){return this.isEmpty()?t.makeEmpty():(this.getCenter(t.center),t.radius=this.getSize(dt).length()*.5),t}intersect(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}applyMatrix4(t){return this.isEmpty()?this:(wt[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),wt[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),wt[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),wt[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),wt[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),wt[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),wt[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),wt[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(wt),this)}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}const wt=[new x,new x,new x,new x,new x,new x,new x,new x],dt=new x,Be=new xt,te=new x,ee=new x,ie=new x,Et=new x,Ft=new x,Rt=new x,fe=new x,ke=new x,Pe=new x,Ot=new x;function Mi(a,t,e,i,s){for(let n=0,r=a.length-3;n<=r;n+=3){Ot.fromArray(a,n);const o=s.x*Math.abs(Ot.x)+s.y*Math.abs(Ot.y)+s.z*Math.abs(Ot.z),h=t.dot(Ot),l=e.dot(Ot),c=i.dot(Ot);if(Math.max(-Math.max(h,l,c),Math.min(h,l,c))>o)return!1}return!0}const jr=new xt,ye=new x,_i=new x;class Ae{constructor(t=new x,e=-1){this.isSphere=!0,this.center=t,this.radius=e}set(t,e){return this.center.copy(t),this.radius=e,this}setFromPoints(t,e){const i=this.center;e!==void 0?i.copy(e):jr.setFromPoints(t).getCenter(i);let s=0;for(let n=0,r=t.length;n<r;n++)s=Math.max(s,i.distanceToSquared(t[n]));return this.radius=Math.sqrt(s),this}copy(t){return this.center.copy(t.center),this.radius=t.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(t){return t.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(t){return t.distanceTo(this.center)-this.radius}intersectsSphere(t){const e=this.radius+t.radius;return t.center.distanceToSquared(this.center)<=e*e}intersectsBox(t){return t.intersectsSphere(this)}intersectsPlane(t){return Math.abs(t.distanceToPoint(this.center))<=this.radius}clampPoint(t,e){const i=this.center.distanceToSquared(t);return e.copy(t),i>this.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e}getBoundingBox(t){return this.isEmpty()?(t.makeEmpty(),t):(t.set(this.center,this.center),t.expandByScalar(this.radius),t)}applyMatrix4(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this}translate(t){return this.center.add(t),this}expandByPoint(t){if(this.isEmpty())return this.center.copy(t),this.radius=0,this;ye.subVectors(t,this.center);const e=ye.lengthSq();if(e>this.radius*this.radius){const i=Math.sqrt(e),s=(i-this.radius)*.5;this.center.addScaledVector(ye,s/i),this.radius+=s}return this}union(t){return t.isEmpty()?this:this.isEmpty()?(this.copy(t),this):(this.center.equals(t.center)===!0?this.radius=Math.max(this.radius,t.radius):(_i.subVectors(t.center,this.center).setLength(t.radius),this.expandByPoint(ye.copy(t.center).add(_i)),this.expandByPoint(ye.copy(t.center).sub(_i))),this)}equals(t){return t.center.equals(this.center)&&t.radius===this.radius}clone(){return new this.constructor().copy(this)}}const Mt=new x,Si=new x,Te=new x,Bt=new x,zi=new x,Ie=new x,Ai=new x;class $i{constructor(t=new x,e=new x(0,0,-1)){this.origin=t,this.direction=e}set(t,e){return this.origin.copy(t),this.direction.copy(e),this}copy(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this}at(t,e){return e.copy(this.origin).addScaledVector(this.direction,t)}lookAt(t){return this.direction.copy(t).sub(this.origin).normalize(),this}recast(t){return this.origin.copy(this.at(t,Mt)),this}closestPointToPoint(t,e){e.subVectors(t,this.origin);const i=e.dot(this.direction);return i<0?e.copy(this.origin):e.copy(this.origin).addScaledVector(this.direction,i)}distanceToPoint(t){return Math.sqrt(this.distanceSqToPoint(t))}distanceSqToPoint(t){const e=Mt.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(Mt.copy(this.origin).addScaledVector(this.direction,e),Mt.distanceToSquared(t))}distanceSqToSegment(t,e,i,s){Si.copy(t).add(e).multiplyScalar(.5),Te.copy(e).sub(t).normalize(),Bt.copy(this.origin).sub(Si);const n=t.distanceTo(e)*.5,r=-this.direction.dot(Te),o=Bt.dot(this.direction),h=-Bt.dot(Te),l=Bt.lengthSq(),c=Math.abs(1-r*r);let u,d,p,m;if(c>0)if(u=r*h-o,d=r*o-h,m=n*c,u>=0)if(d>=-m)if(d<=m){const y=1/c;u*=y,d*=y,p=u*(u+r*d+2*o)+d*(r*u+d+2*h)+l}else d=n,u=Math.max(0,-(r*d+o)),p=-u*u+d*(d+2*h)+l;else d=-n,u=Math.max(0,-(r*d+o)),p=-u*u+d*(d+2*h)+l;else d<=-m?(u=Math.max(0,-(-r*n+o)),d=u>0?-n:Math.min(Math.max(-n,-h),n),p=-u*u+d*(d+2*h)+l):d<=m?(u=0,d=Math.min(Math.max(-n,-h),n),p=d*(d+2*h)+l):(u=Math.max(0,-(r*n+o)),d=u>0?n:Math.min(Math.max(-n,-h),n),p=-u*u+d*(d+2*h)+l);else d=r>0?-n:n,u=Math.max(0,-(r*d+o)),p=-u*u+d*(d+2*h)+l;return i&&i.copy(this.origin).addScaledVector(this.direction,u),s&&s.copy(Si).addScaledVector(Te,d),p}intersectSphere(t,e){Mt.subVectors(t.center,this.origin);const i=Mt.dot(this.direction),s=Mt.dot(Mt)-i*i,n=t.radius*t.radius;if(s>n)return null;const r=Math.sqrt(n-s),o=i-r,h=i+r;return h<0?null:o<0?this.at(h,e):this.at(o,e)}intersectsSphere(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius}distanceToPlane(t){const e=t.normal.dot(this.direction);if(e===0)return t.distanceToPoint(this.origin)===0?0:null;const i=-(this.origin.dot(t.normal)+t.constant)/e;return i>=0?i:null}intersectPlane(t,e){const i=this.distanceToPlane(t);return i===null?null:this.at(i,e)}intersectsPlane(t){const e=t.distanceToPoint(this.origin);return e===0||t.normal.dot(this.direction)*e<0}intersectBox(t,e){let i,s,n,r,o,h;const l=1/this.direction.x,c=1/this.direction.y,u=1/this.direction.z,d=this.origin;return l>=0?(i=(t.min.x-d.x)*l,s=(t.max.x-d.x)*l):(i=(t.max.x-d.x)*l,s=(t.min.x-d.x)*l),c>=0?(n=(t.min.y-d.y)*c,r=(t.max.y-d.y)*c):(n=(t.max.y-d.y)*c,r=(t.min.y-d.y)*c),i>r||n>s||((n>i||isNaN(i))&&(i=n),(r<s||isNaN(s))&&(s=r),u>=0?(o=(t.min.z-d.z)*u,h=(t.max.z-d.z)*u):(o=(t.max.z-d.z)*u,h=(t.min.z-d.z)*u),i>h||o>s)||((o>i||i!==i)&&(i=o),(h<s||s!==s)&&(s=h),s<0)?null:this.at(i>=0?i:s,e)}intersectsBox(t){return this.intersectBox(t,Mt)!==null}intersectTriangle(t,e,i,s,n){zi.subVectors(e,t),Ie.subVectors(i,t),Ai.crossVectors(zi,Ie);let r=this.direction.dot(Ai),o;if(r>0){if(s)return null;o=1}else if(r<0)o=-1,r=-r;else return null;Bt.subVectors(this.origin,t);const h=o*this.direction.dot(Ie.crossVectors(Bt,Ie));if(h<0)return null;const l=o*this.direction.dot(zi.cross(Bt));if(l<0||h+l>r)return null;const c=-o*Bt.dot(Ai);return c<0?null:this.at(c/r,n)}applyMatrix4(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this}equals(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class U{constructor(t,e,i,s,n,r,o,h,l,c,u,d,p,m,y,b){U.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],t!==void 0&&this.set(t,e,i,s,n,r,o,h,l,c,u,d,p,m,y,b)}set(t,e,i,s,n,r,o,h,l,c,u,d,p,m,y,b){const _=this.elements;return _[0]=t,_[4]=e,_[8]=i,_[12]=s,_[1]=n,_[5]=r,_[9]=o,_[13]=h,_[2]=l,_[6]=c,_[10]=u,_[14]=d,_[3]=p,_[7]=m,_[11]=y,_[15]=b,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new U().fromArray(this.elements)}copy(t){const e=this.elements,i=t.elements;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],e[9]=i[9],e[10]=i[10],e[11]=i[11],e[12]=i[12],e[13]=i[13],e[14]=i[14],e[15]=i[15],this}copyPosition(t){const e=this.elements,i=t.elements;return e[12]=i[12],e[13]=i[13],e[14]=i[14],this}setFromMatrix3(t){const e=t.elements;return this.set(e[0],e[3],e[6],0,e[1],e[4],e[7],0,e[2],e[5],e[8],0,0,0,0,1),this}extractBasis(t,e,i){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}makeBasis(t,e,i){return this.set(t.x,e.x,i.x,0,t.y,e.y,i.y,0,t.z,e.z,i.z,0,0,0,0,1),this}extractRotation(t){const e=this.elements,i=t.elements,s=1/se.setFromMatrixColumn(t,0).length(),n=1/se.setFromMatrixColumn(t,1).length(),r=1/se.setFromMatrixColumn(t,2).length();return e[0]=i[0]*s,e[1]=i[1]*s,e[2]=i[2]*s,e[3]=0,e[4]=i[4]*n,e[5]=i[5]*n,e[6]=i[6]*n,e[7]=0,e[8]=i[8]*r,e[9]=i[9]*r,e[10]=i[10]*r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromEuler(t){const e=this.elements,i=t.x,s=t.y,n=t.z,r=Math.cos(i),o=Math.sin(i),h=Math.cos(s),l=Math.sin(s),c=Math.cos(n),u=Math.sin(n);if(t.order==="XYZ"){const d=r*c,p=r*u,m=o*c,y=o*u;e[0]=h*c,e[4]=-h*u,e[8]=l,e[1]=p+m*l,e[5]=d-y*l,e[9]=-o*h,e[2]=y-d*l,e[6]=m+p*l,e[10]=r*h}else if(t.order==="YXZ"){const d=h*c,p=h*u,m=l*c,y=l*u;e[0]=d+y*o,e[4]=m*o-p,e[8]=r*l,e[1]=r*u,e[5]=r*c,e[9]=-o,e[2]=p*o-m,e[6]=y+d*o,e[10]=r*h}else if(t.order==="ZXY"){const d=h*c,p=h*u,m=l*c,y=l*u;e[0]=d-y*o,e[4]=-r*u,e[8]=m+p*o,e[1]=p+m*o,e[5]=r*c,e[9]=y-d*o,e[2]=-r*l,e[6]=o,e[10]=r*h}else if(t.order==="ZYX"){const d=r*c,p=r*u,m=o*c,y=o*u;e[0]=h*c,e[4]=m*l-p,e[8]=d*l+y,e[1]=h*u,e[5]=y*l+d,e[9]=p*l-m,e[2]=-l,e[6]=o*h,e[10]=r*h}else if(t.order==="YZX"){const d=r*h,p=r*l,m=o*h,y=o*l;e[0]=h*c,e[4]=y-d*u,e[8]=m*u+p,e[1]=u,e[5]=r*c,e[9]=-o*c,e[2]=-l*c,e[6]=p*u+m,e[10]=d-y*u}else if(t.order==="XZY"){const d=r*h,p=r*l,m=o*h,y=o*l;e[0]=h*c,e[4]=-u,e[8]=l*c,e[1]=d*u+y,e[5]=r*c,e[9]=p*u-m,e[2]=m*u-p,e[6]=o*c,e[10]=y*u+d}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromQuaternion(t){return this.compose(Ur,t,Hr)}lookAt(t,e,i){const s=this.elements;return ot.subVectors(t,e),ot.lengthSq()===0&&(ot.z=1),ot.normalize(),kt.crossVectors(i,ot),kt.lengthSq()===0&&(Math.abs(i.z)===1?ot.x+=1e-4:ot.z+=1e-4,ot.normalize(),kt.crossVectors(i,ot)),kt.normalize(),De.crossVectors(ot,kt),s[0]=kt.x,s[4]=De.x,s[8]=ot.x,s[1]=kt.y,s[5]=De.y,s[9]=ot.y,s[2]=kt.z,s[6]=De.z,s[10]=ot.z,this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const i=t.elements,s=e.elements,n=this.elements,r=i[0],o=i[4],h=i[8],l=i[12],c=i[1],u=i[5],d=i[9],p=i[13],m=i[2],y=i[6],b=i[10],_=i[14],g=i[3],f=i[7],w=i[11],A=i[15],C=s[0],E=s[4],z=s[8],v=s[12],B=s[1],k=s[5],P=s[9],D=s[13],T=s[2],I=s[6],W=s[10],H=s[14],Q=s[3],O=s[7],j=s[11],Y=s[15];return n[0]=r*C+o*B+h*T+l*Q,n[4]=r*E+o*k+h*I+l*O,n[8]=r*z+o*P+h*W+l*j,n[12]=r*v+o*D+h*H+l*Y,n[1]=c*C+u*B+d*T+p*Q,n[5]=c*E+u*k+d*I+p*O,n[9]=c*z+u*P+d*W+p*j,n[13]=c*v+u*D+d*H+p*Y,n[2]=m*C+y*B+b*T+_*Q,n[6]=m*E+y*k+b*I+_*O,n[10]=m*z+y*P+b*W+_*j,n[14]=m*v+y*D+b*H+_*Y,n[3]=g*C+f*B+w*T+A*Q,n[7]=g*E+f*k+w*I+A*O,n[11]=g*z+f*P+w*W+A*j,n[15]=g*v+f*D+w*H+A*Y,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this}determinant(){const t=this.elements,e=t[0],i=t[4],s=t[8],n=t[12],r=t[1],o=t[5],h=t[9],l=t[13],c=t[2],u=t[6],d=t[10],p=t[14],m=t[3],y=t[7],b=t[11],_=t[15];return m*(+n*h*u-s*l*u-n*o*d+i*l*d+s*o*p-i*h*p)+y*(+e*h*p-e*l*d+n*r*d-s*r*p+s*l*c-n*h*c)+b*(+e*l*u-e*o*p-n*r*u+i*r*p+n*o*c-i*l*c)+_*(-s*o*c-e*h*u+e*o*d+s*r*u-i*r*d+i*h*c)}transpose(){const t=this.elements;let e;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}setPosition(t,e,i){const s=this.elements;return t.isVector3?(s[12]=t.x,s[13]=t.y,s[14]=t.z):(s[12]=t,s[13]=e,s[14]=i),this}invert(){const t=this.elements,e=t[0],i=t[1],s=t[2],n=t[3],r=t[4],o=t[5],h=t[6],l=t[7],c=t[8],u=t[9],d=t[10],p=t[11],m=t[12],y=t[13],b=t[14],_=t[15],g=u*b*l-y*d*l+y*h*p-o*b*p-u*h*_+o*d*_,f=m*d*l-c*b*l-m*h*p+r*b*p+c*h*_-r*d*_,w=c*y*l-m*u*l+m*o*p-r*y*p-c*o*_+r*u*_,A=m*u*h-c*y*h-m*o*d+r*y*d+c*o*b-r*u*b,C=e*g+i*f+s*w+n*A;if(C===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const E=1/C;return t[0]=g*E,t[1]=(y*d*n-u*b*n-y*s*p+i*b*p+u*s*_-i*d*_)*E,t[2]=(o*b*n-y*h*n+y*s*l-i*b*l-o*s*_+i*h*_)*E,t[3]=(u*h*n-o*d*n-u*s*l+i*d*l+o*s*p-i*h*p)*E,t[4]=f*E,t[5]=(c*b*n-m*d*n+m*s*p-e*b*p-c*s*_+e*d*_)*E,t[6]=(m*h*n-r*b*n-m*s*l+e*b*l+r*s*_-e*h*_)*E,t[7]=(r*d*n-c*h*n+c*s*l-e*d*l-r*s*p+e*h*p)*E,t[8]=w*E,t[9]=(m*u*n-c*y*n-m*i*p+e*y*p+c*i*_-e*u*_)*E,t[10]=(r*y*n-m*o*n+m*i*l-e*y*l-r*i*_+e*o*_)*E,t[11]=(c*o*n-r*u*n-c*i*l+e*u*l+r*i*p-e*o*p)*E,t[12]=A*E,t[13]=(c*y*s-m*u*s+m*i*d-e*y*d-c*i*b+e*u*b)*E,t[14]=(m*o*s-r*y*s-m*i*h+e*y*h+r*i*b-e*o*b)*E,t[15]=(r*u*s-c*o*s+c*i*h-e*u*h-r*i*d+e*o*d)*E,this}scale(t){const e=this.elements,i=t.x,s=t.y,n=t.z;return e[0]*=i,e[4]*=s,e[8]*=n,e[1]*=i,e[5]*=s,e[9]*=n,e[2]*=i,e[6]*=s,e[10]*=n,e[3]*=i,e[7]*=s,e[11]*=n,this}getMaxScaleOnAxis(){const t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],i=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],s=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,i,s))}makeTranslation(t,e,i){return t.isVector3?this.set(1,0,0,t.x,0,1,0,t.y,0,0,1,t.z,0,0,0,1):this.set(1,0,0,t,0,1,0,e,0,0,1,i,0,0,0,1),this}makeRotationX(t){const e=Math.cos(t),i=Math.sin(t);return this.set(1,0,0,0,0,e,-i,0,0,i,e,0,0,0,0,1),this}makeRotationY(t){const e=Math.cos(t),i=Math.sin(t);return this.set(e,0,i,0,0,1,0,0,-i,0,e,0,0,0,0,1),this}makeRotationZ(t){const e=Math.cos(t),i=Math.sin(t);return this.set(e,-i,0,0,i,e,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,e){const i=Math.cos(e),s=Math.sin(e),n=1-i,r=t.x,o=t.y,h=t.z,l=n*r,c=n*o;return this.set(l*r+i,l*o-s*h,l*h+s*o,0,l*o+s*h,c*o+i,c*h-s*r,0,l*h-s*o,c*h+s*r,n*h*h+i,0,0,0,0,1),this}makeScale(t,e,i){return this.set(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1),this}makeShear(t,e,i,s,n,r){return this.set(1,i,n,0,t,1,r,0,e,s,1,0,0,0,0,1),this}compose(t,e,i){const s=this.elements,n=e._x,r=e._y,o=e._z,h=e._w,l=n+n,c=r+r,u=o+o,d=n*l,p=n*c,m=n*u,y=r*c,b=r*u,_=o*u,g=h*l,f=h*c,w=h*u,A=i.x,C=i.y,E=i.z;return s[0]=(1-(y+_))*A,s[1]=(p+w)*A,s[2]=(m-f)*A,s[3]=0,s[4]=(p-w)*C,s[5]=(1-(d+_))*C,s[6]=(b+g)*C,s[7]=0,s[8]=(m+f)*E,s[9]=(b-g)*E,s[10]=(1-(d+y))*E,s[11]=0,s[12]=t.x,s[13]=t.y,s[14]=t.z,s[15]=1,this}decompose(t,e,i){const s=this.elements;let n=se.set(s[0],s[1],s[2]).length();const r=se.set(s[4],s[5],s[6]).length(),o=se.set(s[8],s[9],s[10]).length();this.determinant()<0&&(n=-n),t.x=s[12],t.y=s[13],t.z=s[14],pt.copy(this);const l=1/n,c=1/r,u=1/o;return pt.elements[0]*=l,pt.elements[1]*=l,pt.elements[2]*=l,pt.elements[4]*=c,pt.elements[5]*=c,pt.elements[6]*=c,pt.elements[8]*=u,pt.elements[9]*=u,pt.elements[10]*=u,e.setFromRotationMatrix(pt),i.x=n,i.y=r,i.z=o,this}makePerspective(t,e,i,s,n,r,o=Ut){const h=this.elements,l=2*n/(e-t),c=2*n/(i-s),u=(e+t)/(e-t),d=(i+s)/(i-s);let p,m;if(o===Ut)p=-(r+n)/(r-n),m=-2*r*n/(r-n);else if(o===qi)p=-r/(r-n),m=-r*n/(r-n);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+o);return h[0]=l,h[4]=0,h[8]=u,h[12]=0,h[1]=0,h[5]=c,h[9]=d,h[13]=0,h[2]=0,h[6]=0,h[10]=p,h[14]=m,h[3]=0,h[7]=0,h[11]=-1,h[15]=0,this}makeOrthographic(t,e,i,s,n,r,o=Ut){const h=this.elements,l=1/(e-t),c=1/(i-s),u=1/(r-n),d=(e+t)*l,p=(i+s)*c;let m,y;if(o===Ut)m=(r+n)*u,y=-2*u;else if(o===qi)m=n*u,y=-1*u;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+o);return h[0]=2*l,h[4]=0,h[8]=0,h[12]=-d,h[1]=0,h[5]=2*c,h[9]=0,h[13]=-p,h[2]=0,h[6]=0,h[10]=y,h[14]=-m,h[3]=0,h[7]=0,h[11]=0,h[15]=1,this}equals(t){const e=this.elements,i=t.elements;for(let s=0;s<16;s++)if(e[s]!==i[s])return!1;return!0}fromArray(t,e=0){for(let i=0;i<16;i++)this.elements[i]=t[i+e];return this}toArray(t=[],e=0){const i=this.elements;return t[e]=i[0],t[e+1]=i[1],t[e+2]=i[2],t[e+3]=i[3],t[e+4]=i[4],t[e+5]=i[5],t[e+6]=i[6],t[e+7]=i[7],t[e+8]=i[8],t[e+9]=i[9],t[e+10]=i[10],t[e+11]=i[11],t[e+12]=i[12],t[e+13]=i[13],t[e+14]=i[14],t[e+15]=i[15],t}}const se=new x,pt=new U,Ur=new x(0,0,0),Hr=new x(1,1,1),kt=new x,De=new x,ot=new x,qs=new U,Xs=new it;class Gt{constructor(t=0,e=0,i=0,s=Gt.DEFAULT_ORDER){this.isEuler=!0,this._x=t,this._y=e,this._z=i,this._order=s}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get order(){return this._order}set order(t){this._order=t,this._onChangeCallback()}set(t,e,i,s=this._order){return this._x=t,this._y=e,this._z=i,this._order=s,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}setFromRotationMatrix(t,e=this._order,i=!0){const s=t.elements,n=s[0],r=s[4],o=s[8],h=s[1],l=s[5],c=s[9],u=s[2],d=s[6],p=s[10];switch(e){case"XYZ":this._y=Math.asin(st(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-c,p),this._z=Math.atan2(-r,n)):(this._x=Math.atan2(d,l),this._z=0);break;case"YXZ":this._x=Math.asin(-st(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(o,p),this._z=Math.atan2(h,l)):(this._y=Math.atan2(-u,n),this._z=0);break;case"ZXY":this._x=Math.asin(st(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-u,p),this._z=Math.atan2(-r,l)):(this._y=0,this._z=Math.atan2(h,n));break;case"ZYX":this._y=Math.asin(-st(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(d,p),this._z=Math.atan2(h,n)):(this._x=0,this._z=Math.atan2(-r,l));break;case"YZX":this._z=Math.asin(st(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(-c,l),this._y=Math.atan2(-u,n)):(this._x=0,this._y=Math.atan2(o,p));break;case"XZY":this._z=Math.asin(-st(r,-1,1)),Math.abs(r)<.9999999?(this._x=Math.atan2(d,l),this._y=Math.atan2(o,n)):(this._x=Math.atan2(-c,p),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+e)}return this._order=e,i===!0&&this._onChangeCallback(),this}setFromQuaternion(t,e,i){return qs.makeRotationFromQuaternion(t),this.setFromRotationMatrix(qs,e,i)}setFromVector3(t,e=this._order){return this.set(t.x,t.y,t.z,e)}reorder(t){return Xs.setFromEuler(this),this.setFromQuaternion(Xs,t)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}fromArray(t){return this._x=t[0],this._y=t[1],this._z=t[2],t[3]!==void 0&&(this._order=t[3]),this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}Gt.DEFAULT_ORDER="XYZ";class En{constructor(){this.mask=1}set(t){this.mask=(1<<t|0)>>>0}enable(t){this.mask|=1<<t|0}enableAll(){this.mask=-1}toggle(t){this.mask^=1<<t|0}disable(t){this.mask&=~(1<<t|0)}disableAll(){this.mask=0}test(t){return(this.mask&t.mask)!==0}isEnabled(t){return(this.mask&(1<<t|0))!==0}}let qr=0;const Ys=new x,ne=new it,_t=new U,Re=new x,xe=new x,Xr=new x,Yr=new it,Zs=new x(1,0,0),Gs=new x(0,1,0),$s=new x(0,0,1),Qs={type:"added"},Zr={type:"removed"},re={type:"childadded",child:null},Ci={type:"childremoved",child:null};class X extends Yt{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:qr++}),this.uuid=de(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=X.DEFAULT_UP.clone();const t=new x,e=new Gt,i=new it,s=new x(1,1,1);function n(){i.setFromEuler(e,!1)}function r(){e.setFromQuaternion(i,void 0,!1)}e._onChange(n),i._onChange(r),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:e},quaternion:{configurable:!0,enumerable:!0,value:i},scale:{configurable:!0,enumerable:!0,value:s},modelViewMatrix:{value:new U},normalMatrix:{value:new Ct}}),this.matrix=new U,this.matrixWorld=new U,this.matrixAutoUpdate=X.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=X.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new En,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(t){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(t),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(t){return this.quaternion.premultiply(t),this}setRotationFromAxisAngle(t,e){this.quaternion.setFromAxisAngle(t,e)}setRotationFromEuler(t){this.quaternion.setFromEuler(t,!0)}setRotationFromMatrix(t){this.quaternion.setFromRotationMatrix(t)}setRotationFromQuaternion(t){this.quaternion.copy(t)}rotateOnAxis(t,e){return ne.setFromAxisAngle(t,e),this.quaternion.multiply(ne),this}rotateOnWorldAxis(t,e){return ne.setFromAxisAngle(t,e),this.quaternion.premultiply(ne),this}rotateX(t){return this.rotateOnAxis(Zs,t)}rotateY(t){return this.rotateOnAxis(Gs,t)}rotateZ(t){return this.rotateOnAxis($s,t)}translateOnAxis(t,e){return Ys.copy(t).applyQuaternion(this.quaternion),this.position.add(Ys.multiplyScalar(e)),this}translateX(t){return this.translateOnAxis(Zs,t)}translateY(t){return this.translateOnAxis(Gs,t)}translateZ(t){return this.translateOnAxis($s,t)}localToWorld(t){return this.updateWorldMatrix(!0,!1),t.applyMatrix4(this.matrixWorld)}worldToLocal(t){return this.updateWorldMatrix(!0,!1),t.applyMatrix4(_t.copy(this.matrixWorld).invert())}lookAt(t,e,i){t.isVector3?Re.copy(t):Re.set(t,e,i);const s=this.parent;this.updateWorldMatrix(!0,!1),xe.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?_t.lookAt(xe,Re,this.up):_t.lookAt(Re,xe,this.up),this.quaternion.setFromRotationMatrix(_t),s&&(_t.extractRotation(s.matrixWorld),ne.setFromRotationMatrix(_t),this.quaternion.premultiply(ne.invert()))}add(t){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return t===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",t),this):(t&&t.isObject3D?(t.removeFromParent(),t.parent=this,this.children.push(t),t.dispatchEvent(Qs),re.child=t,this.dispatchEvent(re),re.child=null):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",t),this)}remove(t){if(arguments.length>1){for(let i=0;i<arguments.length;i++)this.remove(arguments[i]);return this}const e=this.children.indexOf(t);return e!==-1&&(t.parent=null,this.children.splice(e,1),t.dispatchEvent(Zr),Ci.child=t,this.dispatchEvent(Ci),Ci.child=null),this}removeFromParent(){const t=this.parent;return t!==null&&t.remove(this),this}clear(){return this.remove(...this.children)}attach(t){return this.updateWorldMatrix(!0,!1),_t.copy(this.matrixWorld).invert(),t.parent!==null&&(t.parent.updateWorldMatrix(!0,!1),_t.multiply(t.parent.matrixWorld)),t.applyMatrix4(_t),t.removeFromParent(),t.parent=this,this.children.push(t),t.updateWorldMatrix(!1,!0),t.dispatchEvent(Qs),re.child=t,this.dispatchEvent(re),re.child=null,this}getObjectById(t){return this.getObjectByProperty("id",t)}getObjectByName(t){return this.getObjectByProperty("name",t)}getObjectByProperty(t,e){if(this[t]===e)return this;for(let i=0,s=this.children.length;i<s;i++){const r=this.children[i].getObjectByProperty(t,e);if(r!==void 0)return r}}getObjectsByProperty(t,e,i=[]){this[t]===e&&i.push(this);const s=this.children;for(let n=0,r=s.length;n<r;n++)s[n].getObjectsByProperty(t,e,i);return i}getWorldPosition(t){return this.updateWorldMatrix(!0,!1),t.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(xe,t,Xr),t}getWorldScale(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(xe,Yr,t),t}getWorldDirection(t){this.updateWorldMatrix(!0,!1);const e=this.matrixWorld.elements;return t.set(e[8],e[9],e[10]).normalize()}raycast(){}traverse(t){t(this);const e=this.children;for(let i=0,s=e.length;i<s;i++)e[i].traverse(t)}traverseVisible(t){if(this.visible===!1)return;t(this);const e=this.children;for(let i=0,s=e.length;i<s;i++)e[i].traverseVisible(t)}traverseAncestors(t){const e=this.parent;e!==null&&(t(e),e.traverseAncestors(t))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(this.matrixWorldAutoUpdate===!0&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),this.matrixWorldNeedsUpdate=!1,t=!0);const e=this.children;for(let i=0,s=e.length;i<s;i++)e[i].updateMatrixWorld(t)}updateWorldMatrix(t,e){const i=this.parent;if(t===!0&&i!==null&&i.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.matrixWorldAutoUpdate===!0&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),e===!0){const s=this.children;for(let n=0,r=s.length;n<r;n++)s[n].updateWorldMatrix(!1,!0)}}toJSON(t){const e=t===void 0||typeof t=="string",i={};e&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},i.metadata={version:4.6,type:"Object",generator:"Object3D.toJSON"});const s={};s.uuid=this.uuid,s.type=this.type,this.name!==""&&(s.name=this.name),this.castShadow===!0&&(s.castShadow=!0),this.receiveShadow===!0&&(s.receiveShadow=!0),this.visible===!1&&(s.visible=!1),this.frustumCulled===!1&&(s.frustumCulled=!1),this.renderOrder!==0&&(s.renderOrder=this.renderOrder),Object.keys(this.userData).length>0&&(s.userData=this.userData),s.layers=this.layers.mask,s.matrix=this.matrix.toArray(),s.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(s.matrixAutoUpdate=!1),this.isInstancedMesh&&(s.type="InstancedMesh",s.count=this.count,s.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(s.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(s.type="BatchedMesh",s.perObjectFrustumCulled=this.perObjectFrustumCulled,s.sortObjects=this.sortObjects,s.drawRanges=this._drawRanges,s.reservedRanges=this._reservedRanges,s.visibility=this._visibility,s.active=this._active,s.bounds=this._bounds.map(o=>({boxInitialized:o.boxInitialized,boxMin:o.box.min.toArray(),boxMax:o.box.max.toArray(),sphereInitialized:o.sphereInitialized,sphereRadius:o.sphere.radius,sphereCenter:o.sphere.center.toArray()})),s.maxInstanceCount=this._maxInstanceCount,s.maxVertexCount=this._maxVertexCount,s.maxIndexCount=this._maxIndexCount,s.geometryInitialized=this._geometryInitialized,s.geometryCount=this._geometryCount,s.matricesTexture=this._matricesTexture.toJSON(t),this._colorsTexture!==null&&(s.colorsTexture=this._colorsTexture.toJSON(t)),this.boundingSphere!==null&&(s.boundingSphere={center:s.boundingSphere.center.toArray(),radius:s.boundingSphere.radius}),this.boundingBox!==null&&(s.boundingBox={min:s.boundingBox.min.toArray(),max:s.boundingBox.max.toArray()}));function n(o,h){return o[h.uuid]===void 0&&(o[h.uuid]=h.toJSON(t)),h.uuid}if(this.isScene)this.background&&(this.background.isColor?s.background=this.background.toJSON():this.background.isTexture&&(s.background=this.background.toJSON(t).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(s.environment=this.environment.toJSON(t).uuid);else if(this.isMesh||this.isLine||this.isPoints){s.geometry=n(t.geometries,this.geometry);const o=this.geometry.parameters;if(o!==void 0&&o.shapes!==void 0){const h=o.shapes;if(Array.isArray(h))for(let l=0,c=h.length;l<c;l++){const u=h[l];n(t.shapes,u)}else n(t.shapes,h)}}if(this.isSkinnedMesh&&(s.bindMode=this.bindMode,s.bindMatrix=this.bindMatrix.toArray(),this.skeleton!==void 0&&(n(t.skeletons,this.skeleton),s.skeleton=this.skeleton.uuid)),this.material!==void 0)if(Array.isArray(this.material)){const o=[];for(let h=0,l=this.material.length;h<l;h++)o.push(n(t.materials,this.material[h]));s.material=o}else s.material=n(t.materials,this.material);if(this.children.length>0){s.children=[];for(let o=0;o<this.children.length;o++)s.children.push(this.children[o].toJSON(t).object)}if(this.animations.length>0){s.animations=[];for(let o=0;o<this.animations.length;o++){const h=this.animations[o];s.animations.push(n(t.animations,h))}}if(e){const o=r(t.geometries),h=r(t.materials),l=r(t.textures),c=r(t.images),u=r(t.shapes),d=r(t.skeletons),p=r(t.animations),m=r(t.nodes);o.length>0&&(i.geometries=o),h.length>0&&(i.materials=h),l.length>0&&(i.textures=l),c.length>0&&(i.images=c),u.length>0&&(i.shapes=u),d.length>0&&(i.skeletons=d),p.length>0&&(i.animations=p),m.length>0&&(i.nodes=m)}return i.object=s,i;function r(o){const h=[];for(const l in o){const c=o[l];delete c.metadata,h.push(c)}return h}}clone(t){return new this.constructor().copy(this,t)}copy(t,e=!0){if(this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldAutoUpdate=t.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.animations=t.animations.slice(),this.userData=JSON.parse(JSON.stringify(t.userData)),e===!0)for(let i=0;i<t.children.length;i++){const s=t.children[i];this.add(s.clone())}return this}}X.DEFAULT_UP=new x(0,1,0);X.DEFAULT_MATRIX_AUTO_UPDATE=!0;X.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;const mt=new x,St=new x,vi=new x,zt=new x,oe=new x,ae=new x,Js=new x,Ei=new x,Fi=new x,Bi=new x,ki=new Zt,Pi=new Zt,Ti=new Zt;class yt{constructor(t=new x,e=new x,i=new x){this.a=t,this.b=e,this.c=i}static getNormal(t,e,i,s){s.subVectors(i,e),mt.subVectors(t,e),s.cross(mt);const n=s.lengthSq();return n>0?s.multiplyScalar(1/Math.sqrt(n)):s.set(0,0,0)}static getBarycoord(t,e,i,s,n){mt.subVectors(s,e),St.subVectors(i,e),vi.subVectors(t,e);const r=mt.dot(mt),o=mt.dot(St),h=mt.dot(vi),l=St.dot(St),c=St.dot(vi),u=r*l-o*o;if(u===0)return n.set(0,0,0),null;const d=1/u,p=(l*h-o*c)*d,m=(r*c-o*h)*d;return n.set(1-p-m,m,p)}static containsPoint(t,e,i,s){return this.getBarycoord(t,e,i,s,zt)===null?!1:zt.x>=0&&zt.y>=0&&zt.x+zt.y<=1}static getInterpolation(t,e,i,s,n,r,o,h){return this.getBarycoord(t,e,i,s,zt)===null?(h.x=0,h.y=0,"z"in h&&(h.z=0),"w"in h&&(h.w=0),null):(h.setScalar(0),h.addScaledVector(n,zt.x),h.addScaledVector(r,zt.y),h.addScaledVector(o,zt.z),h)}static getInterpolatedAttribute(t,e,i,s,n,r){return ki.setScalar(0),Pi.setScalar(0),Ti.setScalar(0),ki.fromBufferAttribute(t,e),Pi.fromBufferAttribute(t,i),Ti.fromBufferAttribute(t,s),r.setScalar(0),r.addScaledVector(ki,n.x),r.addScaledVector(Pi,n.y),r.addScaledVector(Ti,n.z),r}static isFrontFacing(t,e,i,s){return mt.subVectors(i,e),St.subVectors(t,e),mt.cross(St).dot(s)<0}set(t,e,i){return this.a.copy(t),this.b.copy(e),this.c.copy(i),this}setFromPointsAndIndices(t,e,i,s){return this.a.copy(t[e]),this.b.copy(t[i]),this.c.copy(t[s]),this}setFromAttributeAndIndices(t,e,i,s){return this.a.fromBufferAttribute(t,e),this.b.fromBufferAttribute(t,i),this.c.fromBufferAttribute(t,s),this}clone(){return new this.constructor().copy(this)}copy(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this}getArea(){return mt.subVectors(this.c,this.b),St.subVectors(this.a,this.b),mt.cross(St).length()*.5}getMidpoint(t){return t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return yt.getNormal(this.a,this.b,this.c,t)}getPlane(t){return t.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,e){return yt.getBarycoord(t,this.a,this.b,this.c,e)}getInterpolation(t,e,i,s,n){return yt.getInterpolation(t,this.a,this.b,this.c,e,i,s,n)}containsPoint(t){return yt.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return yt.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(t){return t.intersectsTriangle(this)}closestPointToPoint(t,e){const i=this.a,s=this.b,n=this.c;let r,o;oe.subVectors(s,i),ae.subVectors(n,i),Ei.subVectors(t,i);const h=oe.dot(Ei),l=ae.dot(Ei);if(h<=0&&l<=0)return e.copy(i);Fi.subVectors(t,s);const c=oe.dot(Fi),u=ae.dot(Fi);if(c>=0&&u<=c)return e.copy(s);const d=h*u-c*l;if(d<=0&&h>=0&&c<=0)return r=h/(h-c),e.copy(i).addScaledVector(oe,r);Bi.subVectors(t,n);const p=oe.dot(Bi),m=ae.dot(Bi);if(m>=0&&p<=m)return e.copy(n);const y=p*l-h*m;if(y<=0&&l>=0&&m<=0)return o=l/(l-m),e.copy(i).addScaledVector(ae,o);const b=c*m-p*u;if(b<=0&&u-c>=0&&p-m>=0)return Js.subVectors(n,s),o=(u-c)/(u-c+(p-m)),e.copy(s).addScaledVector(Js,o);const _=1/(b+y+d);return r=y*_,o=d*_,e.copy(i).addScaledVector(oe,r).addScaledVector(ae,o)}equals(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}const Fn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Pt={h:0,s:0,l:0},Oe={h:0,s:0,l:0};function Ii(a,t,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?a+(t-a)*6*e:e<1/2?t:e<2/3?a+(t-a)*6*(2/3-e):a}class vt{constructor(t,e,i){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(t,e,i)}set(t,e,i){if(e===void 0&&i===void 0){const s=t;s&&s.isColor?this.copy(s):typeof s=="number"?this.setHex(s):typeof s=="string"&&this.setStyle(s)}else this.setRGB(t,e,i);return this}setScalar(t){return this.r=t,this.g=t,this.b=t,this}setHex(t,e=ft){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(t&255)/255,ct.toWorkingColorSpace(this,e),this}setRGB(t,e,i,s=ct.workingColorSpace){return this.r=t,this.g=e,this.b=i,ct.toWorkingColorSpace(this,s),this}setHSL(t,e,i,s=ct.workingColorSpace){if(t=Gi(t,1),e=st(e,0,1),i=st(i,0,1),e===0)this.r=this.g=this.b=i;else{const n=i<=.5?i*(1+e):i+e-i*e,r=2*i-n;this.r=Ii(r,n,t+1/3),this.g=Ii(r,n,t),this.b=Ii(r,n,t-1/3)}return ct.toWorkingColorSpace(this,s),this}setStyle(t,e=ft){function i(n){n!==void 0&&parseFloat(n)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}let s;if(s=/^(\w+)\(([^\)]*)\)/.exec(t)){let n;const r=s[1],o=s[2];switch(r){case"rgb":case"rgba":if(n=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return i(n[4]),this.setRGB(Math.min(255,parseInt(n[1],10))/255,Math.min(255,parseInt(n[2],10))/255,Math.min(255,parseInt(n[3],10))/255,e);if(n=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return i(n[4]),this.setRGB(Math.min(100,parseInt(n[1],10))/100,Math.min(100,parseInt(n[2],10))/100,Math.min(100,parseInt(n[3],10))/100,e);break;case"hsl":case"hsla":if(n=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return i(n[4]),this.setHSL(parseFloat(n[1])/360,parseFloat(n[2])/100,parseFloat(n[3])/100,e);break;default:console.warn("THREE.Color: Unknown color model "+t)}}else if(s=/^\#([A-Fa-f\d]+)$/.exec(t)){const n=s[1],r=n.length;if(r===3)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,e);if(r===6)return this.setHex(parseInt(n,16),e);console.warn("THREE.Color: Invalid hex color "+t)}else if(t&&t.length>0)return this.setColorName(t,e);return this}setColorName(t,e=ft){const i=Fn[t.toLowerCase()];return i!==void 0?this.setHex(i,e):console.warn("THREE.Color: Unknown color "+t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copySRGBToLinear(t){return this.r=At(t.r),this.g=At(t.g),this.b=At(t.b),this}copyLinearToSRGB(t){return this.r=ue(t.r),this.g=ue(t.g),this.b=ue(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(t=ft){return ct.fromWorkingColorSpace(tt.copy(this),t),Math.round(st(tt.r*255,0,255))*65536+Math.round(st(tt.g*255,0,255))*256+Math.round(st(tt.b*255,0,255))}getHexString(t=ft){return("000000"+this.getHex(t).toString(16)).slice(-6)}getHSL(t,e=ct.workingColorSpace){ct.fromWorkingColorSpace(tt.copy(this),e);const i=tt.r,s=tt.g,n=tt.b,r=Math.max(i,s,n),o=Math.min(i,s,n);let h,l;const c=(o+r)/2;if(o===r)h=0,l=0;else{const u=r-o;switch(l=c<=.5?u/(r+o):u/(2-r-o),r){case i:h=(s-n)/u+(s<n?6:0);break;case s:h=(n-i)/u+2;break;case n:h=(i-s)/u+4;break}h/=6}return t.h=h,t.s=l,t.l=c,t}getRGB(t,e=ct.workingColorSpace){return ct.fromWorkingColorSpace(tt.copy(this),e),t.r=tt.r,t.g=tt.g,t.b=tt.b,t}getStyle(t=ft){ct.fromWorkingColorSpace(tt.copy(this),t);const e=tt.r,i=tt.g,s=tt.b;return t!==ft?`color(${t} ${e.toFixed(3)} ${i.toFixed(3)} ${s.toFixed(3)})`:`rgb(${Math.round(e*255)},${Math.round(i*255)},${Math.round(s*255)})`}offsetHSL(t,e,i){return this.getHSL(Pt),this.setHSL(Pt.h+t,Pt.s+e,Pt.l+i)}add(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this}addColors(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this}addScalar(t){return this.r+=t,this.g+=t,this.b+=t,this}sub(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this}multiply(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this}multiplyScalar(t){return this.r*=t,this.g*=t,this.b*=t,this}lerp(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this}lerpColors(t,e,i){return this.r=t.r+(e.r-t.r)*i,this.g=t.g+(e.g-t.g)*i,this.b=t.b+(e.b-t.b)*i,this}lerpHSL(t,e){this.getHSL(Pt),t.getHSL(Oe);const i=ze(Pt.h,Oe.h,e),s=ze(Pt.s,Oe.s,e),n=ze(Pt.l,Oe.l,e);return this.setHSL(i,s,n),this}setFromVector3(t){return this.r=t.x,this.g=t.y,this.b=t.z,this}applyMatrix3(t){const e=this.r,i=this.g,s=this.b,n=t.elements;return this.r=n[0]*e+n[3]*i+n[6]*s,this.g=n[1]*e+n[4]*i+n[7]*s,this.b=n[2]*e+n[5]*i+n[8]*s,this}equals(t){return t.r===this.r&&t.g===this.g&&t.b===this.b}fromArray(t,e=0){return this.r=t[e],this.g=t[e+1],this.b=t[e+2],this}toArray(t=[],e=0){return t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t}fromBufferAttribute(t,e){return this.r=t.getX(e),this.g=t.getY(e),this.b=t.getZ(e),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const tt=new vt;vt.NAMES=Fn;let Gr=0;class Bn extends Yt{static get type(){return"Material"}get type(){return this.constructor.type}set type(t){}constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:Gr++}),this.uuid=de(),this.name="",this.blending=Es,this.side=Ui,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=Bs,this.blendDst=ks,this.blendEquation=Fs,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new vt(0,0,0),this.blendAlpha=0,this.depthFunc=Ps,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=Ds,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=Jt,this.stencilZFail=Jt,this.stencilZPass=Jt,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(t){this._alphaTest>0!=t>0&&this.version++,this._alphaTest=t}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(t){if(t!==void 0)for(const e in t){const i=t[e];if(i===void 0){console.warn(`THREE.Material: parameter '${e}' has value of undefined.`);continue}const s=this[e];if(s===void 0){console.warn(`THREE.Material: '${e}' is not a property of THREE.${this.type}.`);continue}s&&s.isColor?s.set(i):s&&s.isVector3&&i&&i.isVector3?s.copy(i):this[e]=i}}toJSON(t){const e=t===void 0||typeof t=="string";e&&(t={textures:{},images:{}});const i={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};i.uuid=this.uuid,i.type=this.type,this.name!==""&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),this.roughness!==void 0&&(i.roughness=this.roughness),this.metalness!==void 0&&(i.metalness=this.metalness),this.sheen!==void 0&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(i.shininess=this.shininess),this.clearcoat!==void 0&&(i.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(t).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(t).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.dispersion!==void 0&&(i.dispersion=this.dispersion),this.iridescence!==void 0&&(i.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(i.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(t).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(t).uuid),this.anisotropy!==void 0&&(i.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(i.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(i.anisotropyMap=this.anisotropyMap.toJSON(t).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(t).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(t).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(t).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(t).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(t).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(t).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(t).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(t).uuid,this.combine!==void 0&&(i.combine=this.combine)),this.envMapRotation!==void 0&&(i.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(i.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(i.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(t).uuid),this.transmission!==void 0&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(t).uuid),this.thickness!==void 0&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(t).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(i.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(i.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(i.size=this.size),this.shadowSide!==null&&(i.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==Es&&(i.blending=this.blending),this.side!==Ui&&(i.side=this.side),this.vertexColors===!0&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),this.transparent===!0&&(i.transparent=!0),this.blendSrc!==Bs&&(i.blendSrc=this.blendSrc),this.blendDst!==ks&&(i.blendDst=this.blendDst),this.blendEquation!==Fs&&(i.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(i.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(i.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(i.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(i.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(i.blendAlpha=this.blendAlpha),this.depthFunc!==Ps&&(i.depthFunc=this.depthFunc),this.depthTest===!1&&(i.depthTest=this.depthTest),this.depthWrite===!1&&(i.depthWrite=this.depthWrite),this.colorWrite===!1&&(i.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(i.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==Ds&&(i.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(i.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(i.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==Jt&&(i.stencilFail=this.stencilFail),this.stencilZFail!==Jt&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==Jt&&(i.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(i.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(i.rotation=this.rotation),this.polygonOffset===!0&&(i.polygonOffset=!0),this.polygonOffsetFactor!==0&&(i.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(i.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(i.linewidth=this.linewidth),this.dashSize!==void 0&&(i.dashSize=this.dashSize),this.gapSize!==void 0&&(i.gapSize=this.gapSize),this.scale!==void 0&&(i.scale=this.scale),this.dithering===!0&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),this.alphaHash===!0&&(i.alphaHash=!0),this.alphaToCoverage===!0&&(i.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(i.premultipliedAlpha=!0),this.forceSinglePass===!0&&(i.forceSinglePass=!0),this.wireframe===!0&&(i.wireframe=!0),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(i.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(i.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(i.flatShading=!0),this.visible===!1&&(i.visible=!1),this.toneMapped===!1&&(i.toneMapped=!1),this.fog===!1&&(i.fog=!1),Object.keys(this.userData).length>0&&(i.userData=this.userData);function s(n){const r=[];for(const o in n){const h=n[o];delete h.metadata,r.push(h)}return r}if(e){const n=s(t.textures),r=s(t.images);n.length>0&&(i.textures=n),r.length>0&&(i.images=r)}return i}clone(){return new this.constructor().copy(this)}copy(t){this.name=t.name,this.blending=t.blending,this.side=t.side,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.blendColor.copy(t.blendColor),this.blendAlpha=t.blendAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;const e=t.clippingPlanes;let i=null;if(e!==null){const s=e.length;i=new Array(s);for(let n=0;n!==s;++n)i[n]=e[n].clone()}return this.clippingPlanes=i,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.alphaHash=t.alphaHash,this.alphaToCoverage=t.alphaToCoverage,this.premultipliedAlpha=t.premultipliedAlpha,this.forceSinglePass=t.forceSinglePass,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(t){t===!0&&this.version++}onBuild(){console.warn("Material: onBuild() has been removed.")}}class pe extends Bn{static get type(){return"MeshBasicMaterial"}constructor(t){super(),this.isMeshBasicMaterial=!0,this.color=new vt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Gt,this.combine=fr,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapRotation.copy(t.envMapRotation),this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.fog=t.fog,this}}const q=new x,Ne=new $;class qt{constructor(t,e,i=!1){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=t,this.itemSize=e,this.count=t!==void 0?t.length/e:0,this.normalized=i,this.usage=Rs,this.updateRanges=[],this.gpuType=br,this.version=0}onUploadCallback(){}set needsUpdate(t){t===!0&&this.version++}setUsage(t){return this.usage=t,this}addUpdateRange(t,e){this.updateRanges.push({start:t,count:e})}clearUpdateRanges(){this.updateRanges.length=0}copy(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.usage=t.usage,this.gpuType=t.gpuType,this}copyAt(t,e,i){t*=this.itemSize,i*=e.itemSize;for(let s=0,n=this.itemSize;s<n;s++)this.array[t+s]=e.array[i+s];return this}copyArray(t){return this.array.set(t),this}applyMatrix3(t){if(this.itemSize===2)for(let e=0,i=this.count;e<i;e++)Ne.fromBufferAttribute(this,e),Ne.applyMatrix3(t),this.setXY(e,Ne.x,Ne.y);else if(this.itemSize===3)for(let e=0,i=this.count;e<i;e++)q.fromBufferAttribute(this,e),q.applyMatrix3(t),this.setXYZ(e,q.x,q.y,q.z);return this}applyMatrix4(t){for(let e=0,i=this.count;e<i;e++)q.fromBufferAttribute(this,e),q.applyMatrix4(t),this.setXYZ(e,q.x,q.y,q.z);return this}applyNormalMatrix(t){for(let e=0,i=this.count;e<i;e++)q.fromBufferAttribute(this,e),q.applyNormalMatrix(t),this.setXYZ(e,q.x,q.y,q.z);return this}transformDirection(t){for(let e=0,i=this.count;e<i;e++)q.fromBufferAttribute(this,e),q.transformDirection(t),this.setXYZ(e,q.x,q.y,q.z);return this}set(t,e=0){return this.array.set(t,e),this}getComponent(t,e){let i=this.array[t*this.itemSize+e];return this.normalized&&(i=le(i,this.array)),i}setComponent(t,e,i){return this.normalized&&(i=nt(i,this.array)),this.array[t*this.itemSize+e]=i,this}getX(t){let e=this.array[t*this.itemSize];return this.normalized&&(e=le(e,this.array)),e}setX(t,e){return this.normalized&&(e=nt(e,this.array)),this.array[t*this.itemSize]=e,this}getY(t){let e=this.array[t*this.itemSize+1];return this.normalized&&(e=le(e,this.array)),e}setY(t,e){return this.normalized&&(e=nt(e,this.array)),this.array[t*this.itemSize+1]=e,this}getZ(t){let e=this.array[t*this.itemSize+2];return this.normalized&&(e=le(e,this.array)),e}setZ(t,e){return this.normalized&&(e=nt(e,this.array)),this.array[t*this.itemSize+2]=e,this}getW(t){let e=this.array[t*this.itemSize+3];return this.normalized&&(e=le(e,this.array)),e}setW(t,e){return this.normalized&&(e=nt(e,this.array)),this.array[t*this.itemSize+3]=e,this}setXY(t,e,i){return t*=this.itemSize,this.normalized&&(e=nt(e,this.array),i=nt(i,this.array)),this.array[t+0]=e,this.array[t+1]=i,this}setXYZ(t,e,i,s){return t*=this.itemSize,this.normalized&&(e=nt(e,this.array),i=nt(i,this.array),s=nt(s,this.array)),this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=s,this}setXYZW(t,e,i,s,n){return t*=this.itemSize,this.normalized&&(e=nt(e,this.array),i=nt(i,this.array),s=nt(s,this.array),n=nt(n,this.array)),this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=s,this.array[t+3]=n,this}onUpload(t){return this.onUploadCallback=t,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const t={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return this.name!==""&&(t.name=this.name),this.usage!==Rs&&(t.usage=this.usage),t}}class $r extends qt{constructor(t,e,i){super(new Uint16Array(t),e,i)}}class Qr extends qt{constructor(t,e,i){super(new Uint32Array(t),e,i)}}class L extends qt{constructor(t,e,i){super(new Float32Array(t),e,i)}}let Jr=0;const lt=new U,Di=new X,he=new x,at=new xt,ge=new xt,Z=new x;class rt extends Yt{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:Jr++}),this.uuid=de(),this.name="",this.type="BufferGeometry",this.index=null,this.indirect=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(t){return Array.isArray(t)?this.index=new(Or(t)?Qr:$r)(t,1):this.index=t,this}setIndirect(t){return this.indirect=t,this}getIndirect(){return this.indirect}getAttribute(t){return this.attributes[t]}setAttribute(t,e){return this.attributes[t]=e,this}deleteAttribute(t){return delete this.attributes[t],this}hasAttribute(t){return this.attributes[t]!==void 0}addGroup(t,e,i=0){this.groups.push({start:t,count:e,materialIndex:i})}clearGroups(){this.groups=[]}setDrawRange(t,e){this.drawRange.start=t,this.drawRange.count=e}applyMatrix4(t){const e=this.attributes.position;e!==void 0&&(e.applyMatrix4(t),e.needsUpdate=!0);const i=this.attributes.normal;if(i!==void 0){const n=new Ct().getNormalMatrix(t);i.applyNormalMatrix(n),i.needsUpdate=!0}const s=this.attributes.tangent;return s!==void 0&&(s.transformDirection(t),s.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}applyQuaternion(t){return lt.makeRotationFromQuaternion(t),this.applyMatrix4(lt),this}rotateX(t){return lt.makeRotationX(t),this.applyMatrix4(lt),this}rotateY(t){return lt.makeRotationY(t),this.applyMatrix4(lt),this}rotateZ(t){return lt.makeRotationZ(t),this.applyMatrix4(lt),this}translate(t,e,i){return lt.makeTranslation(t,e,i),this.applyMatrix4(lt),this}scale(t,e,i){return lt.makeScale(t,e,i),this.applyMatrix4(lt),this}lookAt(t){return Di.lookAt(t),Di.updateMatrix(),this.applyMatrix4(Di.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(he).negate(),this.translate(he.x,he.y,he.z),this}setFromPoints(t){const e=this.getAttribute("position");if(e===void 0){const i=[];for(let s=0,n=t.length;s<n;s++){const r=t[s];i.push(r.x,r.y,r.z||0)}this.setAttribute("position",new L(i,3))}else{for(let i=0,s=e.count;i<s;i++){const n=t[i];e.setXYZ(i,n.x,n.y,n.z||0)}t.length>e.count&&console.warn("THREE.BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry."),e.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new xt);const t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute){console.error("THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.",this),this.boundingBox.set(new x(-1/0,-1/0,-1/0),new x(1/0,1/0,1/0));return}if(t!==void 0){if(this.boundingBox.setFromBufferAttribute(t),e)for(let i=0,s=e.length;i<s;i++){const n=e[i];at.setFromBufferAttribute(n),this.morphTargetsRelative?(Z.addVectors(this.boundingBox.min,at.min),this.boundingBox.expandByPoint(Z),Z.addVectors(this.boundingBox.max,at.max),this.boundingBox.expandByPoint(Z)):(this.boundingBox.expandByPoint(at.min),this.boundingBox.expandByPoint(at.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new Ae);const t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute){console.error("THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.",this),this.boundingSphere.set(new x,1/0);return}if(t){const i=this.boundingSphere.center;if(at.setFromBufferAttribute(t),e)for(let n=0,r=e.length;n<r;n++){const o=e[n];ge.setFromBufferAttribute(o),this.morphTargetsRelative?(Z.addVectors(at.min,ge.min),at.expandByPoint(Z),Z.addVectors(at.max,ge.max),at.expandByPoint(Z)):(at.expandByPoint(ge.min),at.expandByPoint(ge.max))}at.getCenter(i);let s=0;for(let n=0,r=t.count;n<r;n++)Z.fromBufferAttribute(t,n),s=Math.max(s,i.distanceToSquared(Z));if(e)for(let n=0,r=e.length;n<r;n++){const o=e[n],h=this.morphTargetsRelative;for(let l=0,c=o.count;l<c;l++)Z.fromBufferAttribute(o,l),h&&(he.fromBufferAttribute(t,l),Z.add(he)),s=Math.max(s,i.distanceToSquared(Z))}this.boundingSphere.radius=Math.sqrt(s),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}computeTangents(){const t=this.index,e=this.attributes;if(t===null||e.position===void 0||e.normal===void 0||e.uv===void 0){console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");return}const i=e.position,s=e.normal,n=e.uv;this.hasAttribute("tangent")===!1&&this.setAttribute("tangent",new qt(new Float32Array(4*i.count),4));const r=this.getAttribute("tangent"),o=[],h=[];for(let z=0;z<i.count;z++)o[z]=new x,h[z]=new x;const l=new x,c=new x,u=new x,d=new $,p=new $,m=new $,y=new x,b=new x;function _(z,v,B){l.fromBufferAttribute(i,z),c.fromBufferAttribute(i,v),u.fromBufferAttribute(i,B),d.fromBufferAttribute(n,z),p.fromBufferAttribute(n,v),m.fromBufferAttribute(n,B),c.sub(l),u.sub(l),p.sub(d),m.sub(d);const k=1/(p.x*m.y-m.x*p.y);isFinite(k)&&(y.copy(c).multiplyScalar(m.y).addScaledVector(u,-p.y).multiplyScalar(k),b.copy(u).multiplyScalar(p.x).addScaledVector(c,-m.x).multiplyScalar(k),o[z].add(y),o[v].add(y),o[B].add(y),h[z].add(b),h[v].add(b),h[B].add(b))}let g=this.groups;g.length===0&&(g=[{start:0,count:t.count}]);for(let z=0,v=g.length;z<v;++z){const B=g[z],k=B.start,P=B.count;for(let D=k,T=k+P;D<T;D+=3)_(t.getX(D+0),t.getX(D+1),t.getX(D+2))}const f=new x,w=new x,A=new x,C=new x;function E(z){A.fromBufferAttribute(s,z),C.copy(A);const v=o[z];f.copy(v),f.sub(A.multiplyScalar(A.dot(v))).normalize(),w.crossVectors(C,v);const k=w.dot(h[z])<0?-1:1;r.setXYZW(z,f.x,f.y,f.z,k)}for(let z=0,v=g.length;z<v;++z){const B=g[z],k=B.start,P=B.count;for(let D=k,T=k+P;D<T;D+=3)E(t.getX(D+0)),E(t.getX(D+1)),E(t.getX(D+2))}}computeVertexNormals(){const t=this.index,e=this.getAttribute("position");if(e!==void 0){let i=this.getAttribute("normal");if(i===void 0)i=new qt(new Float32Array(e.count*3),3),this.setAttribute("normal",i);else for(let d=0,p=i.count;d<p;d++)i.setXYZ(d,0,0,0);const s=new x,n=new x,r=new x,o=new x,h=new x,l=new x,c=new x,u=new x;if(t)for(let d=0,p=t.count;d<p;d+=3){const m=t.getX(d+0),y=t.getX(d+1),b=t.getX(d+2);s.fromBufferAttribute(e,m),n.fromBufferAttribute(e,y),r.fromBufferAttribute(e,b),c.subVectors(r,n),u.subVectors(s,n),c.cross(u),o.fromBufferAttribute(i,m),h.fromBufferAttribute(i,y),l.fromBufferAttribute(i,b),o.add(c),h.add(c),l.add(c),i.setXYZ(m,o.x,o.y,o.z),i.setXYZ(y,h.x,h.y,h.z),i.setXYZ(b,l.x,l.y,l.z)}else for(let d=0,p=e.count;d<p;d+=3)s.fromBufferAttribute(e,d+0),n.fromBufferAttribute(e,d+1),r.fromBufferAttribute(e,d+2),c.subVectors(r,n),u.subVectors(s,n),c.cross(u),i.setXYZ(d+0,c.x,c.y,c.z),i.setXYZ(d+1,c.x,c.y,c.z),i.setXYZ(d+2,c.x,c.y,c.z);this.normalizeNormals(),i.needsUpdate=!0}}normalizeNormals(){const t=this.attributes.normal;for(let e=0,i=t.count;e<i;e++)Z.fromBufferAttribute(t,e),Z.normalize(),t.setXYZ(e,Z.x,Z.y,Z.z)}toNonIndexed(){function t(o,h){const l=o.array,c=o.itemSize,u=o.normalized,d=new l.constructor(h.length*c);let p=0,m=0;for(let y=0,b=h.length;y<b;y++){o.isInterleavedBufferAttribute?p=h[y]*o.data.stride+o.offset:p=h[y]*c;for(let _=0;_<c;_++)d[m++]=l[p++]}return new qt(d,c,u)}if(this.index===null)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const e=new rt,i=this.index.array,s=this.attributes;for(const o in s){const h=s[o],l=t(h,i);e.setAttribute(o,l)}const n=this.morphAttributes;for(const o in n){const h=[],l=n[o];for(let c=0,u=l.length;c<u;c++){const d=l[c],p=t(d,i);h.push(p)}e.morphAttributes[o]=h}e.morphTargetsRelative=this.morphTargetsRelative;const r=this.groups;for(let o=0,h=r.length;o<h;o++){const l=r[o];e.addGroup(l.start,l.count,l.materialIndex)}return e}toJSON(){const t={metadata:{version:4.6,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,this.name!==""&&(t.name=this.name),Object.keys(this.userData).length>0&&(t.userData=this.userData),this.parameters!==void 0){const h=this.parameters;for(const l in h)h[l]!==void 0&&(t[l]=h[l]);return t}t.data={attributes:{}};const e=this.index;e!==null&&(t.data.index={type:e.array.constructor.name,array:Array.prototype.slice.call(e.array)});const i=this.attributes;for(const h in i){const l=i[h];t.data.attributes[h]=l.toJSON(t.data)}const s={};let n=!1;for(const h in this.morphAttributes){const l=this.morphAttributes[h],c=[];for(let u=0,d=l.length;u<d;u++){const p=l[u];c.push(p.toJSON(t.data))}c.length>0&&(s[h]=c,n=!0)}n&&(t.data.morphAttributes=s,t.data.morphTargetsRelative=this.morphTargetsRelative);const r=this.groups;r.length>0&&(t.data.groups=JSON.parse(JSON.stringify(r)));const o=this.boundingSphere;return o!==null&&(t.data.boundingSphere={center:o.center.toArray(),radius:o.radius}),t}clone(){return new this.constructor().copy(this)}copy(t){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const e={};this.name=t.name;const i=t.index;i!==null&&this.setIndex(i.clone(e));const s=t.attributes;for(const l in s){const c=s[l];this.setAttribute(l,c.clone(e))}const n=t.morphAttributes;for(const l in n){const c=[],u=n[l];for(let d=0,p=u.length;d<p;d++)c.push(u[d].clone(e));this.morphAttributes[l]=c}this.morphTargetsRelative=t.morphTargetsRelative;const r=t.groups;for(let l=0,c=r.length;l<c;l++){const u=r[l];this.addGroup(u.start,u.count,u.materialIndex)}const o=t.boundingBox;o!==null&&(this.boundingBox=o.clone());const h=t.boundingSphere;return h!==null&&(this.boundingSphere=h.clone()),this.drawRange.start=t.drawRange.start,this.drawRange.count=t.drawRange.count,this.userData=t.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}}const Ks=new U,Nt=new $i,Le=new Ae,tn=new x,Ve=new x,We=new x,je=new x,Ri=new x,Ue=new x,en=new x,He=new x;class F extends X{constructor(t=new rt,e=new pe){super(),this.isMesh=!0,this.type="Mesh",this.geometry=t,this.material=e,this.updateMorphTargets()}copy(t,e){return super.copy(t,e),t.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=t.morphTargetInfluences.slice()),t.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},t.morphTargetDictionary)),this.material=Array.isArray(t.material)?t.material.slice():t.material,this.geometry=t.geometry,this}updateMorphTargets(){const e=this.geometry.morphAttributes,i=Object.keys(e);if(i.length>0){const s=e[i[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let n=0,r=s.length;n<r;n++){const o=s[n].name||String(n);this.morphTargetInfluences.push(0),this.morphTargetDictionary[o]=n}}}}getVertexPosition(t,e){const i=this.geometry,s=i.attributes.position,n=i.morphAttributes.position,r=i.morphTargetsRelative;e.fromBufferAttribute(s,t);const o=this.morphTargetInfluences;if(n&&o){Ue.set(0,0,0);for(let h=0,l=n.length;h<l;h++){const c=o[h],u=n[h];c!==0&&(Ri.fromBufferAttribute(u,t),r?Ue.addScaledVector(Ri,c):Ue.addScaledVector(Ri.sub(e),c))}e.add(Ue)}return e}raycast(t,e){const i=this.geometry,s=this.material,n=this.matrixWorld;s!==void 0&&(i.boundingSphere===null&&i.computeBoundingSphere(),Le.copy(i.boundingSphere),Le.applyMatrix4(n),Nt.copy(t.ray).recast(t.near),!(Le.containsPoint(Nt.origin)===!1&&(Nt.intersectSphere(Le,tn)===null||Nt.origin.distanceToSquared(tn)>(t.far-t.near)**2))&&(Ks.copy(n).invert(),Nt.copy(t.ray).applyMatrix4(Ks),!(i.boundingBox!==null&&Nt.intersectsBox(i.boundingBox)===!1)&&this._computeIntersections(t,e,Nt)))}_computeIntersections(t,e,i){let s;const n=this.geometry,r=this.material,o=n.index,h=n.attributes.position,l=n.attributes.uv,c=n.attributes.uv1,u=n.attributes.normal,d=n.groups,p=n.drawRange;if(o!==null)if(Array.isArray(r))for(let m=0,y=d.length;m<y;m++){const b=d[m],_=r[b.materialIndex],g=Math.max(b.start,p.start),f=Math.min(o.count,Math.min(b.start+b.count,p.start+p.count));for(let w=g,A=f;w<A;w+=3){const C=o.getX(w),E=o.getX(w+1),z=o.getX(w+2);s=qe(this,_,t,i,l,c,u,C,E,z),s&&(s.faceIndex=Math.floor(w/3),s.face.materialIndex=b.materialIndex,e.push(s))}}else{const m=Math.max(0,p.start),y=Math.min(o.count,p.start+p.count);for(let b=m,_=y;b<_;b+=3){const g=o.getX(b),f=o.getX(b+1),w=o.getX(b+2);s=qe(this,r,t,i,l,c,u,g,f,w),s&&(s.faceIndex=Math.floor(b/3),e.push(s))}}else if(h!==void 0)if(Array.isArray(r))for(let m=0,y=d.length;m<y;m++){const b=d[m],_=r[b.materialIndex],g=Math.max(b.start,p.start),f=Math.min(h.count,Math.min(b.start+b.count,p.start+p.count));for(let w=g,A=f;w<A;w+=3){const C=w,E=w+1,z=w+2;s=qe(this,_,t,i,l,c,u,C,E,z),s&&(s.faceIndex=Math.floor(w/3),s.face.materialIndex=b.materialIndex,e.push(s))}}else{const m=Math.max(0,p.start),y=Math.min(h.count,p.start+p.count);for(let b=m,_=y;b<_;b+=3){const g=b,f=b+1,w=b+2;s=qe(this,r,t,i,l,c,u,g,f,w),s&&(s.faceIndex=Math.floor(b/3),e.push(s))}}}}function Kr(a,t,e,i,s,n,r,o){let h;if(t.side===mr?h=i.intersectTriangle(r,n,s,!0,o):h=i.intersectTriangle(s,n,r,t.side===Ui,o),h===null)return null;He.copy(o),He.applyMatrix4(a.matrixWorld);const l=e.ray.origin.distanceTo(He);return l<e.near||l>e.far?null:{distance:l,point:He.clone(),object:a}}function qe(a,t,e,i,s,n,r,o,h,l){a.getVertexPosition(o,Ve),a.getVertexPosition(h,We),a.getVertexPosition(l,je);const c=Kr(a,t,e,i,Ve,We,je,en);if(c){const u=new x;yt.getBarycoord(en,Ve,We,je,u),s&&(c.uv=yt.getInterpolatedAttribute(s,o,h,l,u,new $)),n&&(c.uv1=yt.getInterpolatedAttribute(n,o,h,l,u,new $)),r&&(c.normal=yt.getInterpolatedAttribute(r,o,h,l,u,new x),c.normal.dot(i.direction)>0&&c.normal.multiplyScalar(-1));const d={a:o,b:h,c:l,normal:new x,materialIndex:0};yt.getNormal(Ve,We,je,d.normal),c.face=d,c.barycoord=u}return c}class G extends rt{constructor(t=1,e=1,i=1,s=1,n=1,r=1){super(),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:i,widthSegments:s,heightSegments:n,depthSegments:r};const o=this;s=Math.floor(s),n=Math.floor(n),r=Math.floor(r);const h=[],l=[],c=[],u=[];let d=0,p=0;m("z","y","x",-1,-1,i,e,t,r,n,0),m("z","y","x",1,-1,i,e,-t,r,n,1),m("x","z","y",1,1,t,i,e,s,r,2),m("x","z","y",1,-1,t,i,-e,s,r,3),m("x","y","z",1,-1,t,e,i,s,n,4),m("x","y","z",-1,-1,t,e,-i,s,n,5),this.setIndex(h),this.setAttribute("position",new L(l,3)),this.setAttribute("normal",new L(c,3)),this.setAttribute("uv",new L(u,2));function m(y,b,_,g,f,w,A,C,E,z,v){const B=w/E,k=A/z,P=w/2,D=A/2,T=C/2,I=E+1,W=z+1;let H=0,Q=0;const O=new x;for(let j=0;j<W;j++){const Y=j*k-D;for(let ut=0;ut<I;ut++){const Qt=ut*B-P;O[y]=Qt*g,O[b]=Y*f,O[_]=T,l.push(O.x,O.y,O.z),O[y]=0,O[b]=0,O[_]=C>0?1:-1,c.push(O.x,O.y,O.z),u.push(ut/E),u.push(1-j/z),H+=1}}for(let j=0;j<z;j++)for(let Y=0;Y<E;Y++){const ut=d+Y+I*j,Qt=d+Y+I*(j+1),ve=d+(Y+1)+I*(j+1),As=d+(Y+1)+I*j;h.push(ut,Qt,As),h.push(Qt,ve,As),Q+=6}o.addGroup(p,Q,v),p+=Q,d+=H}}copy(t){return super.copy(t),this.parameters=Object.assign({},t.parameters),this}static fromJSON(t){return new G(t.width,t.height,t.depth,t.widthSegments,t.heightSegments,t.depthSegments)}}class to extends X{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new U,this.projectionMatrix=new U,this.projectionMatrixInverse=new U,this.coordinateSystem=Ut}copy(t,e){return super.copy(t,e),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this.projectionMatrixInverse.copy(t.projectionMatrixInverse),this.coordinateSystem=t.coordinateSystem,this}getWorldDirection(t){return super.getWorldDirection(t).negate()}updateMatrixWorld(t){super.updateMatrixWorld(t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(t,e){super.updateWorldMatrix(t,e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}const Oi=new x,eo=new x,io=new Ct;class ht{constructor(t=new x(1,0,0),e=0){this.isPlane=!0,this.normal=t,this.constant=e}set(t,e){return this.normal.copy(t),this.constant=e,this}setComponents(t,e,i,s){return this.normal.set(t,e,i),this.constant=s,this}setFromNormalAndCoplanarPoint(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this}setFromCoplanarPoints(t,e,i){const s=Oi.subVectors(i,e).cross(eo.subVectors(t,e)).normalize();return this.setFromNormalAndCoplanarPoint(s,t),this}copy(t){return this.normal.copy(t.normal),this.constant=t.constant,this}normalize(){const t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(t){return this.normal.dot(t)+this.constant}distanceToSphere(t){return this.distanceToPoint(t.center)-t.radius}projectPoint(t,e){return e.copy(t).addScaledVector(this.normal,-this.distanceToPoint(t))}intersectLine(t,e){const i=t.delta(Oi),s=this.normal.dot(i);if(s===0)return this.distanceToPoint(t.start)===0?e.copy(t.start):null;const n=-(t.start.dot(this.normal)+this.constant)/s;return n<0||n>1?null:e.copy(t.start).addScaledVector(i,n)}intersectsLine(t){const e=this.distanceToPoint(t.start),i=this.distanceToPoint(t.end);return e<0&&i>0||i<0&&e>0}intersectsBox(t){return t.intersectsPlane(this)}intersectsSphere(t){return t.intersectsPlane(this)}coplanarPoint(t){return t.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(t,e){const i=e||io.getNormalMatrix(t),s=this.coplanarPoint(Oi).applyMatrix4(t),n=this.normal.applyMatrix3(i).normalize();return this.constant=-s.dot(n),this}translate(t){return this.constant-=t.dot(this.normal),this}equals(t){return t.normal.equals(this.normal)&&t.constant===this.constant}clone(){return new this.constructor().copy(this)}}const Lt=new Ae,Xe=new x;class so{constructor(t=new ht,e=new ht,i=new ht,s=new ht,n=new ht,r=new ht){this.planes=[t,e,i,s,n,r]}set(t,e,i,s,n,r){const o=this.planes;return o[0].copy(t),o[1].copy(e),o[2].copy(i),o[3].copy(s),o[4].copy(n),o[5].copy(r),this}copy(t){const e=this.planes;for(let i=0;i<6;i++)e[i].copy(t.planes[i]);return this}setFromProjectionMatrix(t,e=Ut){const i=this.planes,s=t.elements,n=s[0],r=s[1],o=s[2],h=s[3],l=s[4],c=s[5],u=s[6],d=s[7],p=s[8],m=s[9],y=s[10],b=s[11],_=s[12],g=s[13],f=s[14],w=s[15];if(i[0].setComponents(h-n,d-l,b-p,w-_).normalize(),i[1].setComponents(h+n,d+l,b+p,w+_).normalize(),i[2].setComponents(h+r,d+c,b+m,w+g).normalize(),i[3].setComponents(h-r,d-c,b-m,w-g).normalize(),i[4].setComponents(h-o,d-u,b-y,w-f).normalize(),e===Ut)i[5].setComponents(h+o,d+u,b+y,w+f).normalize();else if(e===qi)i[5].setComponents(o,u,y,f).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+e);return this}intersectsObject(t){if(t.boundingSphere!==void 0)t.boundingSphere===null&&t.computeBoundingSphere(),Lt.copy(t.boundingSphere).applyMatrix4(t.matrixWorld);else{const e=t.geometry;e.boundingSphere===null&&e.computeBoundingSphere(),Lt.copy(e.boundingSphere).applyMatrix4(t.matrixWorld)}return this.intersectsSphere(Lt)}intersectsSprite(t){return Lt.center.set(0,0,0),Lt.radius=.7071067811865476,Lt.applyMatrix4(t.matrixWorld),this.intersectsSphere(Lt)}intersectsSphere(t){const e=this.planes,i=t.center,s=-t.radius;for(let n=0;n<6;n++)if(e[n].distanceToPoint(i)<s)return!1;return!0}intersectsBox(t){const e=this.planes;for(let i=0;i<6;i++){const s=e[i];if(Xe.x=s.normal.x>0?t.max.x:t.min.x,Xe.y=s.normal.y>0?t.max.y:t.min.y,Xe.z=s.normal.z>0?t.max.z:t.min.z,s.distanceToPoint(Xe)<0)return!1}return!0}containsPoint(t){const e=this.planes;for(let i=0;i<6;i++)if(e[i].distanceToPoint(t)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}class hi extends rt{constructor(t=1,e=1,i=1,s=1){super(),this.type="PlaneGeometry",this.parameters={width:t,height:e,widthSegments:i,heightSegments:s};const n=t/2,r=e/2,o=Math.floor(i),h=Math.floor(s),l=o+1,c=h+1,u=t/o,d=e/h,p=[],m=[],y=[],b=[];for(let _=0;_<c;_++){const g=_*d-r;for(let f=0;f<l;f++){const w=f*u-n;m.push(w,-g,0),y.push(0,0,1),b.push(f/o),b.push(1-_/h)}}for(let _=0;_<h;_++)for(let g=0;g<o;g++){const f=g+l*_,w=g+l*(_+1),A=g+1+l*(_+1),C=g+1+l*_;p.push(f,w,C),p.push(w,A,C)}this.setIndex(p),this.setAttribute("position",new L(m,3)),this.setAttribute("normal",new L(y,3)),this.setAttribute("uv",new L(b,2))}copy(t){return super.copy(t),this.parameters=Object.assign({},t.parameters),this}static fromJSON(t){return new hi(t.width,t.height,t.widthSegments,t.heightSegments)}}class no extends to{constructor(t=-1,e=1,i=1,s=-1,n=.1,r=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=t,this.right=e,this.top=i,this.bottom=s,this.near=n,this.far=r,this.updateProjectionMatrix()}copy(t,e){return super.copy(t,e),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.near=t.near,this.far=t.far,this.zoom=t.zoom,this.view=t.view===null?null:Object.assign({},t.view),this}setViewOffset(t,e,i,s,n,r){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=i,this.view.offsetY=s,this.view.width=n,this.view.height=r,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const t=(this.right-this.left)/(2*this.zoom),e=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,s=(this.top+this.bottom)/2;let n=i-t,r=i+t,o=s+e,h=s-e;if(this.view!==null&&this.view.enabled){const l=(this.right-this.left)/this.view.fullWidth/this.zoom,c=(this.top-this.bottom)/this.view.fullHeight/this.zoom;n+=l*this.view.offsetX,r=n+l*this.view.width,o-=c*this.view.offsetY,h=o-c*this.view.height}this.projectionMatrix.makeOrthographic(n,r,o,h,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){const e=super.toJSON(t);return e.object.zoom=this.zoom,e.object.left=this.left,e.object.right=this.right,e.object.top=this.top,e.object.bottom=this.bottom,e.object.near=this.near,e.object.far=this.far,this.view!==null&&(e.object.view=Object.assign({},this.view)),e}}class kn extends X{constructor(){super(),this.isGroup=!0,this.type="Group"}}class li extends Bn{static get type(){return"LineBasicMaterial"}constructor(t){super(),this.isLineBasicMaterial=!0,this.color=new vt(16777215),this.map=null,this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.linewidth=t.linewidth,this.linecap=t.linecap,this.linejoin=t.linejoin,this.fog=t.fog,this}}const ii=new x,si=new x,sn=new U,be=new $i,Ye=new Ae,Ni=new x,nn=new x;class bt extends X{constructor(t=new rt,e=new li){super(),this.isLine=!0,this.type="Line",this.geometry=t,this.material=e,this.updateMorphTargets()}copy(t,e){return super.copy(t,e),this.material=Array.isArray(t.material)?t.material.slice():t.material,this.geometry=t.geometry,this}computeLineDistances(){const t=this.geometry;if(t.index===null){const e=t.attributes.position,i=[0];for(let s=1,n=e.count;s<n;s++)ii.fromBufferAttribute(e,s-1),si.fromBufferAttribute(e,s),i[s]=i[s-1],i[s]+=ii.distanceTo(si);t.setAttribute("lineDistance",new L(i,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}raycast(t,e){const i=this.geometry,s=this.matrixWorld,n=t.params.Line.threshold,r=i.drawRange;if(i.boundingSphere===null&&i.computeBoundingSphere(),Ye.copy(i.boundingSphere),Ye.applyMatrix4(s),Ye.radius+=n,t.ray.intersectsSphere(Ye)===!1)return;sn.copy(s).invert(),be.copy(t.ray).applyMatrix4(sn);const o=n/((this.scale.x+this.scale.y+this.scale.z)/3),h=o*o,l=this.isLineSegments?2:1,c=i.index,d=i.attributes.position;if(c!==null){const p=Math.max(0,r.start),m=Math.min(c.count,r.start+r.count);for(let y=p,b=m-1;y<b;y+=l){const _=c.getX(y),g=c.getX(y+1),f=Ze(this,t,be,h,_,g);f&&e.push(f)}if(this.isLineLoop){const y=c.getX(m-1),b=c.getX(p),_=Ze(this,t,be,h,y,b);_&&e.push(_)}}else{const p=Math.max(0,r.start),m=Math.min(d.count,r.start+r.count);for(let y=p,b=m-1;y<b;y+=l){const _=Ze(this,t,be,h,y,y+1);_&&e.push(_)}if(this.isLineLoop){const y=Ze(this,t,be,h,m-1,p);y&&e.push(y)}}}updateMorphTargets(){const e=this.geometry.morphAttributes,i=Object.keys(e);if(i.length>0){const s=e[i[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let n=0,r=s.length;n<r;n++){const o=s[n].name||String(n);this.morphTargetInfluences.push(0),this.morphTargetDictionary[o]=n}}}}}function Ze(a,t,e,i,s,n){const r=a.geometry.attributes.position;if(ii.fromBufferAttribute(r,s),si.fromBufferAttribute(r,n),e.distanceSqToSegment(ii,si,Ni,nn)>i)return;Ni.applyMatrix4(a.matrixWorld);const h=t.ray.origin.distanceTo(Ni);if(!(h<t.near||h>t.far))return{distance:h,point:nn.clone().applyMatrix4(a.matrixWorld),index:s,face:null,faceIndex:null,barycoord:null,object:a}}const rn=new x,on=new x;class ro extends bt{constructor(t,e){super(t,e),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){const t=this.geometry;if(t.index===null){const e=t.attributes.position,i=[];for(let s=0,n=e.count;s<n;s+=2)rn.fromBufferAttribute(e,s),on.fromBufferAttribute(e,s+1),i[s]=s===0?0:i[s-1],i[s+1]=i[s]+rn.distanceTo(on);t.setAttribute("lineDistance",new L(i,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}}class J extends rt{constructor(t=1,e=1,i=1,s=32,n=1,r=!1,o=0,h=Math.PI*2){super(),this.type="CylinderGeometry",this.parameters={radiusTop:t,radiusBottom:e,height:i,radialSegments:s,heightSegments:n,openEnded:r,thetaStart:o,thetaLength:h};const l=this;s=Math.floor(s),n=Math.floor(n);const c=[],u=[],d=[],p=[];let m=0;const y=[],b=i/2;let _=0;g(),r===!1&&(t>0&&f(!0),e>0&&f(!1)),this.setIndex(c),this.setAttribute("position",new L(u,3)),this.setAttribute("normal",new L(d,3)),this.setAttribute("uv",new L(p,2));function g(){const w=new x,A=new x;let C=0;const E=(e-t)/i;for(let z=0;z<=n;z++){const v=[],B=z/n,k=B*(e-t)+t;for(let P=0;P<=s;P++){const D=P/s,T=D*h+o,I=Math.sin(T),W=Math.cos(T);A.x=k*I,A.y=-B*i+b,A.z=k*W,u.push(A.x,A.y,A.z),w.set(I,E,W).normalize(),d.push(w.x,w.y,w.z),p.push(D,1-B),v.push(m++)}y.push(v)}for(let z=0;z<s;z++)for(let v=0;v<n;v++){const B=y[v][z],k=y[v+1][z],P=y[v+1][z+1],D=y[v][z+1];(t>0||v!==0)&&(c.push(B,k,D),C+=3),(e>0||v!==n-1)&&(c.push(k,P,D),C+=3)}l.addGroup(_,C,0),_+=C}function f(w){const A=m,C=new $,E=new x;let z=0;const v=w===!0?t:e,B=w===!0?1:-1;for(let P=1;P<=s;P++)u.push(0,b*B,0),d.push(0,B,0),p.push(.5,.5),m++;const k=m;for(let P=0;P<=s;P++){const T=P/s*h+o,I=Math.cos(T),W=Math.sin(T);E.x=v*W,E.y=b*B,E.z=v*I,u.push(E.x,E.y,E.z),d.push(0,B,0),C.x=I*.5+.5,C.y=W*.5*B+.5,p.push(C.x,C.y),m++}for(let P=0;P<s;P++){const D=A+P,T=k+P;w===!0?c.push(T,T+1,D):c.push(T+1,T,D),z+=3}l.addGroup(_,z,w===!0?1:2),_+=z}}copy(t){return super.copy(t),this.parameters=Object.assign({},t.parameters),this}static fromJSON(t){return new J(t.radiusTop,t.radiusBottom,t.height,t.radialSegments,t.heightSegments,t.openEnded,t.thetaStart,t.thetaLength)}}class Qi extends rt{constructor(t=[],e=[],i=1,s=0){super(),this.type="PolyhedronGeometry",this.parameters={vertices:t,indices:e,radius:i,detail:s};const n=[],r=[];o(s),l(i),c(),this.setAttribute("position",new L(n,3)),this.setAttribute("normal",new L(n.slice(),3)),this.setAttribute("uv",new L(r,2)),s===0?this.computeVertexNormals():this.normalizeNormals();function o(g){const f=new x,w=new x,A=new x;for(let C=0;C<e.length;C+=3)p(e[C+0],f),p(e[C+1],w),p(e[C+2],A),h(f,w,A,g)}function h(g,f,w,A){const C=A+1,E=[];for(let z=0;z<=C;z++){E[z]=[];const v=g.clone().lerp(w,z/C),B=f.clone().lerp(w,z/C),k=C-z;for(let P=0;P<=k;P++)P===0&&z===C?E[z][P]=v:E[z][P]=v.clone().lerp(B,P/k)}for(let z=0;z<C;z++)for(let v=0;v<2*(C-z)-1;v++){const B=Math.floor(v/2);v%2===0?(d(E[z][B+1]),d(E[z+1][B]),d(E[z][B])):(d(E[z][B+1]),d(E[z+1][B+1]),d(E[z+1][B]))}}function l(g){const f=new x;for(let w=0;w<n.length;w+=3)f.x=n[w+0],f.y=n[w+1],f.z=n[w+2],f.normalize().multiplyScalar(g),n[w+0]=f.x,n[w+1]=f.y,n[w+2]=f.z}function c(){const g=new x;for(let f=0;f<n.length;f+=3){g.x=n[f+0],g.y=n[f+1],g.z=n[f+2];const w=b(g)/2/Math.PI+.5,A=_(g)/Math.PI+.5;r.push(w,1-A)}m(),u()}function u(){for(let g=0;g<r.length;g+=6){const f=r[g+0],w=r[g+2],A=r[g+4],C=Math.max(f,w,A),E=Math.min(f,w,A);C>.9&&E<.1&&(f<.2&&(r[g+0]+=1),w<.2&&(r[g+2]+=1),A<.2&&(r[g+4]+=1))}}function d(g){n.push(g.x,g.y,g.z)}function p(g,f){const w=g*3;f.x=t[w+0],f.y=t[w+1],f.z=t[w+2]}function m(){const g=new x,f=new x,w=new x,A=new x,C=new $,E=new $,z=new $;for(let v=0,B=0;v<n.length;v+=9,B+=6){g.set(n[v+0],n[v+1],n[v+2]),f.set(n[v+3],n[v+4],n[v+5]),w.set(n[v+6],n[v+7],n[v+8]),C.set(r[B+0],r[B+1]),E.set(r[B+2],r[B+3]),z.set(r[B+4],r[B+5]),A.copy(g).add(f).add(w).divideScalar(3);const k=b(A);y(C,B+0,g,k),y(E,B+2,f,k),y(z,B+4,w,k)}}function y(g,f,w,A){A<0&&g.x===1&&(r[f]=g.x-1),w.x===0&&w.z===0&&(r[f]=A/2/Math.PI+.5)}function b(g){return Math.atan2(g.z,-g.x)}function _(g){return Math.atan2(-g.y,Math.sqrt(g.x*g.x+g.z*g.z))}}copy(t){return super.copy(t),this.parameters=Object.assign({},t.parameters),this}static fromJSON(t){return new Qi(t.vertices,t.indices,t.radius,t.details)}}class ce extends Qi{constructor(t=1,e=0){const i=[1,0,0,-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],s=[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2];super(i,s,t,e),this.type="OctahedronGeometry",this.parameters={radius:t,detail:e}}static fromJSON(t){return new ce(t.radius,t.detail)}}class Ji extends rt{constructor(t=1,e=32,i=16,s=0,n=Math.PI*2,r=0,o=Math.PI){super(),this.type="SphereGeometry",this.parameters={radius:t,widthSegments:e,heightSegments:i,phiStart:s,phiLength:n,thetaStart:r,thetaLength:o},e=Math.max(3,Math.floor(e)),i=Math.max(2,Math.floor(i));const h=Math.min(r+o,Math.PI);let l=0;const c=[],u=new x,d=new x,p=[],m=[],y=[],b=[];for(let _=0;_<=i;_++){const g=[],f=_/i;let w=0;_===0&&r===0?w=.5/e:_===i&&h===Math.PI&&(w=-.5/e);for(let A=0;A<=e;A++){const C=A/e;u.x=-t*Math.cos(s+C*n)*Math.sin(r+f*o),u.y=t*Math.cos(r+f*o),u.z=t*Math.sin(s+C*n)*Math.sin(r+f*o),m.push(u.x,u.y,u.z),d.copy(u).normalize(),y.push(d.x,d.y,d.z),b.push(C+w,1-f),g.push(l++)}c.push(g)}for(let _=0;_<i;_++)for(let g=0;g<e;g++){const f=c[_][g+1],w=c[_][g],A=c[_+1][g],C=c[_+1][g+1];(_!==0||r>0)&&p.push(f,w,C),(_!==i-1||h<Math.PI)&&p.push(w,A,C)}this.setIndex(p),this.setAttribute("position",new L(m,3)),this.setAttribute("normal",new L(y,3)),this.setAttribute("uv",new L(b,2))}copy(t){return super.copy(t),this.parameters=Object.assign({},t.parameters),this}static fromJSON(t){return new Ji(t.radius,t.widthSegments,t.heightSegments,t.phiStart,t.phiLength,t.thetaStart,t.thetaLength)}}class jt extends rt{constructor(t=1,e=.4,i=12,s=48,n=Math.PI*2){super(),this.type="TorusGeometry",this.parameters={radius:t,tube:e,radialSegments:i,tubularSegments:s,arc:n},i=Math.floor(i),s=Math.floor(s);const r=[],o=[],h=[],l=[],c=new x,u=new x,d=new x;for(let p=0;p<=i;p++)for(let m=0;m<=s;m++){const y=m/s*n,b=p/i*Math.PI*2;u.x=(t+e*Math.cos(b))*Math.cos(y),u.y=(t+e*Math.cos(b))*Math.sin(y),u.z=e*Math.sin(b),o.push(u.x,u.y,u.z),c.x=t*Math.cos(y),c.y=t*Math.sin(y),d.subVectors(u,c).normalize(),h.push(d.x,d.y,d.z),l.push(m/s),l.push(p/i)}for(let p=1;p<=i;p++)for(let m=1;m<=s;m++){const y=(s+1)*p+m-1,b=(s+1)*(p-1)+m-1,_=(s+1)*(p-1)+m,g=(s+1)*p+m;r.push(y,b,g),r.push(b,_,g)}this.setIndex(r),this.setAttribute("position",new L(o,3)),this.setAttribute("normal",new L(h,3)),this.setAttribute("uv",new L(l,2))}copy(t){return super.copy(t),this.parameters=Object.assign({},t.parameters),this}static fromJSON(t){return new jt(t.radius,t.tube,t.radialSegments,t.tubularSegments,t.arc)}}class Pn extends X{constructor(t,e=1){super(),this.isLight=!0,this.type="Light",this.color=new vt(t),this.intensity=e}dispose(){}copy(t,e){return super.copy(t,e),this.color.copy(t.color),this.intensity=t.intensity,this}toJSON(t){const e=super.toJSON(t);return e.object.color=this.color.getHex(),e.object.intensity=this.intensity,this.groundColor!==void 0&&(e.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(e.object.distance=this.distance),this.angle!==void 0&&(e.object.angle=this.angle),this.decay!==void 0&&(e.object.decay=this.decay),this.penumbra!==void 0&&(e.object.penumbra=this.penumbra),this.shadow!==void 0&&(e.object.shadow=this.shadow.toJSON()),this.target!==void 0&&(e.object.target=this.target.uuid),e}}const Li=new U,an=new x,hn=new x;class oo{constructor(t){this.camera=t,this.intensity=1,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new $(512,512),this.map=null,this.mapPass=null,this.matrix=new U,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new so,this._frameExtents=new $(1,1),this._viewportCount=1,this._viewports=[new Zt(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(t){const e=this.camera,i=this.matrix;an.setFromMatrixPosition(t.matrixWorld),e.position.copy(an),hn.setFromMatrixPosition(t.target.matrixWorld),e.lookAt(hn),e.updateMatrixWorld(),Li.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Li),i.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),i.multiply(Li)}getViewport(t){return this._viewports[t]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(t){return this.camera=t.camera.clone(),this.intensity=t.intensity,this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this}clone(){return new this.constructor().copy(this)}toJSON(){const t={};return this.intensity!==1&&(t.intensity=this.intensity),this.bias!==0&&(t.bias=this.bias),this.normalBias!==0&&(t.normalBias=this.normalBias),this.radius!==1&&(t.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}class ao extends oo{constructor(){super(new no(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class ho extends Pn{constructor(t,e){super(t,e),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(X.DEFAULT_UP),this.updateMatrix(),this.target=new X,this.shadow=new ao}dispose(){this.shadow.dispose()}copy(t){return super.copy(t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}class lo extends Pn{constructor(t,e){super(t,e),this.isAmbientLight=!0,this.type="AmbientLight"}}class co{constructor(t=!0){this.autoStart=t,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=ln(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const e=ln();t=(e-this.oldTime)/1e3,this.oldTime=e,this.elapsedTime+=t}return t}}function ln(){return performance.now()}const cn=new U;class Tn{constructor(t,e,i=0,s=1/0){this.ray=new $i(t,e),this.near=i,this.far=s,this.camera=null,this.layers=new En,this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}}}set(t,e){this.ray.set(t,e)}setFromCamera(t,e){e.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(e.matrixWorld),this.ray.direction.set(t.x,t.y,.5).unproject(e).sub(this.ray.origin).normalize(),this.camera=e):e.isOrthographicCamera?(this.ray.origin.set(t.x,t.y,(e.near+e.far)/(e.near-e.far)).unproject(e),this.ray.direction.set(0,0,-1).transformDirection(e.matrixWorld),this.camera=e):console.error("THREE.Raycaster: Unsupported camera type: "+e.type)}setFromXRController(t){return cn.identity().extractRotation(t.matrixWorld),this.ray.origin.setFromMatrixPosition(t.matrixWorld),this.ray.direction.set(0,0,-1).applyMatrix4(cn),this}intersectObject(t,e=!0,i=[]){return Xi(t,this,i,e),i.sort(un),i}intersectObjects(t,e=!0,i=[]){for(let s=0,n=t.length;s<n;s++)Xi(t[s],this,i,e);return i.sort(un),i}}function un(a,t){return a.distance-t.distance}function Xi(a,t,e,i){let s=!0;if(a.layers.test(t.layers)&&a.raycast(t,e)===!1&&(s=!1),s===!0&&i===!0){const n=a.children;for(let r=0,o=n.length;r<o;r++)Xi(n[r],t,e,!0)}}class uo{constructor(t=1,e=0,i=0){return this.radius=t,this.phi=e,this.theta=i,this}set(t,e,i){return this.radius=t,this.phi=e,this.theta=i,this}copy(t){return this.radius=t.radius,this.phi=t.phi,this.theta=t.theta,this}makeSafe(){return this.phi=Math.max(1e-6,Math.min(Math.PI-1e-6,this.phi)),this}setFromVector3(t){return this.setFromCartesianCoords(t.x,t.y,t.z)}setFromCartesianCoords(t,e,i){return this.radius=Math.sqrt(t*t+e*e+i*i),this.radius===0?(this.theta=0,this.phi=0):(this.theta=Math.atan2(t,i),this.phi=Math.acos(st(e/this.radius,-1,1))),this}clone(){return new this.constructor().copy(this)}}class po extends ro{constructor(t,e=16776960){const i=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),s=[1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1],n=new rt;n.setIndex(new qt(i,1)),n.setAttribute("position",new L(s,3)),super(n,new li({color:e,toneMapped:!1})),this.box=t,this.type="Box3Helper",this.geometry.computeBoundingSphere()}updateMatrixWorld(t){const e=this.box;e.isEmpty()||(e.getCenter(this.position),e.getSize(this.scale),this.scale.multiplyScalar(.5),super.updateMatrixWorld(t))}dispose(){this.geometry.dispose(),this.material.dispose()}}const dn=new x;let Ge,Vi;class mo extends X{constructor(t=new x(0,0,1),e=new x(0,0,0),i=1,s=16776960,n=i*.2,r=n*.2){super(),this.type="ArrowHelper",Ge===void 0&&(Ge=new rt,Ge.setAttribute("position",new L([0,0,0,0,1,0],3)),Vi=new J(0,.5,1,5,1),Vi.translate(0,-.5,0)),this.position.copy(e),this.line=new bt(Ge,new li({color:s,toneMapped:!1})),this.line.matrixAutoUpdate=!1,this.add(this.line),this.cone=new F(Vi,new pe({color:s,toneMapped:!1})),this.cone.matrixAutoUpdate=!1,this.add(this.cone),this.setDirection(t),this.setLength(i,n,r)}setDirection(t){if(t.y>.99999)this.quaternion.set(0,0,0,1);else if(t.y<-.99999)this.quaternion.set(1,0,0,0);else{dn.set(t.z,0,-t.x).normalize();const e=Math.acos(t.y);this.quaternion.setFromAxisAngle(dn,e)}}setLength(t,e=t*.2,i=e*.2){this.line.scale.set(1,Math.max(1e-4,t-e),1),this.line.updateMatrix(),this.cone.scale.set(i,e,i),this.cone.position.y=t,this.cone.updateMatrix()}setColor(t){this.line.material.color.set(t),this.cone.material.color.set(t)}copy(t){return super.copy(t,!1),this.line.copy(t.line),this.cone.copy(t.cone),this}dispose(){this.line.geometry.dispose(),this.line.material.dispose(),this.cone.geometry.dispose(),this.cone.material.dispose()}}class fo extends Yt{constructor(t,e=null){super(),this.object=t,this.domElement=e,this.enabled=!0,this.state=-1,this.keys={},this.mouseButtons={LEFT:null,MIDDLE:null,RIGHT:null},this.touches={ONE:null,TWO:null}}connect(){}disconnect(){}dispose(){}update(){}}typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:wn}}));typeof window<"u"&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=wn);const Ce=M.object({name:M.string().nonempty(),opacity:M.number().min(0).max(1).default(1).optional(),type:M.string().nonempty(),visible:M.boolean().default(!1).optional(),attribution:M.string().optional()}).loose();M.globalRegistry.add(Ce,{id:"Dataset"});const Ki=M.lazy(()=>M.object({children:M.array(ci),name:M.string().nonempty(),type:M.literal("group"),visible:M.boolean().default(!1).optional()}));M.globalRegistry.add(Ki,{id:"Datagroup"});const ci=M.union([Ki,Ce]);M.globalRegistry.add(ci,{id:"DatasetOrGroup"});function In(a){return a.type==="group"}const yo=Object.freeze(Object.defineProperty({__proto__:null,Datagroup:Ki,Dataset:Ce,DatasetOrGroup:ci,isDatagroupConfig:In},Symbol.toStringTag,{value:"Module"}));function xo(a){if(a==null)throw new Error("non null assertion failed");return a}const me=a=>a!=null&&typeof a=="object",go=a=>me(a)&&"href"in a,bo=a=>me(a)&&a.isColor,wo=a=>me(a)&&a.isVector3;var Dn=(a=>(a[a.Unloaded=0]="Unloaded",a[a.Loading=1]="Loading",a[a.Loaded=2]="Loaded",a[a.Failed=3]="Failed",a))(Dn||{});class Rn extends Yt{constructor(e){super();R(this,"config");R(this,"name");R(this,"type");R(this,"uuid");R(this,"_opacity");R(this,"_parent");R(this,"_visibleSelf");R(this,"_state",0);R(this,"_zOrder",0);this.type=e.type,this.uuid=ei.generateUUID(),this.name=e.name,this._parent=null,this._visibleSelf=e.visible??!1,this._opacity=1,this.config=e}get depth(){return this._parent?this._parent.depth+1:0}get opacity(){return this._opacity}set opacity(e){this._opacity=e,this.dispatchEvent({type:"opacity"})}get parent(){return this._parent}set parent(e){this._parent=e}get state(){return this._state}set state(e){if(this._state!==e){const i=this._state;this._state=e,this.dispatchEvent({newState:e,oldState:i,type:"state"})}}get visible(){var e;return this._visibleSelf&&(((e=this.parent)==null?void 0:e.visible)??!0)}get visibleSelf(){return this._visibleSelf}set visibleSelf(e){this._visibleSelf!==e&&(this._visibleSelf=e,this.parent&&e&&(this.parent.visibleSelf=!0),this.visible&&this.dispatchEvent({type:"visible"}),this.updateVisibility())}get zOrder(){return this._zOrder}set zOrder(e){this._zOrder!==e&&(this._zOrder=e,this.dispatchEvent({type:"zOrder"}))}delete(){this.dispatchEvent({type:"delete"})}updateVisibility(){}}const ri=class ri extends Rn{constructor(e){super(e);R(this,"_children");this._children=Nn(e.children,this),this.state=2}get children(){return this._children}set children(e){this._children.forEach(i=>i.parent=null),this._children=e,this._children.forEach(i=>{i.parent=this})}leafs(){return this._children.map(e=>e.leafs()).flat()}traverse(e){var i;e(this),(i=this._children)==null||i.forEach(s=>s.traverse(e))}traverseBreadthFirst(e){const i=[this];for(;i.length>0;){const s=i.shift();s&&e(s),ri.isGroup(s)&&s.children.length>0&&i.push(...s.children)}}updateVisibility(){this.traverse(e=>{e!==this&&e.updateVisibility()})}};R(ri,"isGroup",e=>me(e)&&e.type==="group");let Xt=ri;class On extends Rn{constructor(t){super(t),this._opacity=t.opacity??1}leafs(){return[this]}traverse(t){t(this)}updateVisibility(){this.dispatchEvent({type:"visible"})}}function Nn(a,t){return a.map(e=>{let i;return In(e)?i=new Xt(e):i=new On(e),t&&(i.parent=t),i.visibleSelf=e.visible??!1,i})}function Mo(a,t){const e=JSON.stringify(a,null,2),i=new Blob([e],{type:"application/json"});Ln(i,t)}function Ln(a,t){const e=URL.createObjectURL(a),i=document.createElement("a");i.href=e,i.download=t,i.innerHTML="Click here to download the file",document.body.appendChild(i),i.click(),i.remove(),URL.revokeObjectURL(e)}let Yi;function _o(){if(Yi==null)throw new Error("No baseUrl defined");const a=Yi;return a.at(-1)==="/"?a:a+"/"}function So(a){Yi=a}const Vn={downloadAsJson:Mo,downloadBlob:Ln,getBaseUrl:_o,setBaseUrl:So};function zo(a){const t=a.trim();return t.startsWith("/")?t.substring(1):t}function Ao(a){const t=a.trim();return t.endsWith("/")?a.substring(0,t.length):t}function ui(a){if(a.startsWith("http://")||a.startsWith("https://"))return a;const t=Ao(Vn.getBaseUrl()),e=zo(a);return`${t}/${e}`}function Co(a){const t=vs.scale(a.ramp).mode("lab").colors(256).map(e=>{const i=vs(e).gl();return new vt().setRGB(i[0],i[1],i[2],"srgb")});return new cr({colors:t,...a})}function vo(a,t){if("crs"in a)return new Ee(a.crs,a.x,a.y,a.z??0);if(Array.isArray(a)){if(a.length===2)return new Ee(t,a[0],a[1],0);if(a.length===3)return new Ee(t,a[0],a[1],a[2])}else if("latitude"in a)return new Ee("EPSG:4326",a.longitude,a.latitude,a.altitude??0);throw new Error("invalid coordinates")}function Wn(a,t){return Array.isArray(a)?new Cs(t,...a):new Cs(a.crs,{east:a.maxx,north:a.maxy,south:a.miny,west:a.minx})}const Eo="#377c5f",Fo="yellow",Bo="#ffd500",ko="#73d1bd",Po=5,To=new Intl.NumberFormat(void 0,{maximumFractionDigits:2,style:"unit",unit:"meter",unitDisplay:"short"}),Io=a=>`${To.format(a.length)}`,oi=class oi extends ti{constructor(){super({color:Fo,lineLabelFormatter:Io,showLineLabel:!0});R(this,"isMeasure3D",!0);this.userData.highlightable=!0,this.userData.highlightColor=Bo,this.depthTest=!0}get from(){return this.points[0]}get length(){return this.getLength()}get to(){return this.points[1]}clone(){return new oi().copy(this)}copy(e){return this.setPoints([e.from,e.to]),this}};R(oi,"isMeasure3D",e=>me(e)&&e.isMeasure3D);let ni=oi;const ts=ai.defineStore("camera",()=>{const a=S.ref(),t=S.ref(new x),e=S.ref("orbit"),i=S.ref(!1);function s(){if(a.value===void 0)throw new Error("Cannot get cameraPosition");return a.value}function n(){return t.value}function r(m){a.value=m}function o(m,y){a.value=m,t.value.copy(y)}function h(){return e.value}function l(){return e}function c(m){e.value=m}function u(){return i.value}function d(m){i.value=m}function p(m){}return{getCamera3dPosition:n,getCameraPosition:s,getNavigationMode:h,getNavigationModeRef:l,isUserInteracting:u,lookTopDownAt:p,setCameraPosition:r,setCurrentPosition:o,setIsUserInteracting:d,setNavigationMode:c}}),es=ai.defineStore("clippingBox",()=>{const a=S.ref(0),t=S.ref(new x(0,0,0)),e=S.ref(new x(0,0,0)),i=S.ref(!1),s=S.ref(!1),n=S.ref(!1),r=S.ref(new xt().setFromCenterAndSize(t.value,e.value));function o(){r.value=new xt().setFromCenterAndSize(t.value,e.value)}function h(y){i.value=y}function l(y){s.value=y}function c(y){a.value=y}function u(y){t.value=y,o()}function d(y){e.value=y,o()}function p(y){n.value=y}function m(y){r.value=y.clone();const b=new x,_=new x;y.getCenter(b),y.getSize(_),t.value=b,e.value=_}return{center:t,clippingBox:r,displayHelper:n,enable:i,invert:s,orientation:a,setCenter:u,setClippingBox:m,setDisplayHelper:p,setEnabled:h,setInverted:l,setOrientation:c,setSize:d,size:e}}),Do={class:"input-group"},Ro={class:"form-check form-switch"},Oo=["checked"],No={class:"input-group"},Lo={class:"form-check form-switch"},Vo=["checked"],Wo={class:"input-group"},jo={class:"form-check form-switch"},Uo=["checked"],Ho={class:"accordion mt-3"},qo={class:"accordion-item"},Xo={id:"clippingbox-size",class:"accordion-collapse collapse show","data-bs-parent":"#accordionExample"},Yo={class:"accordion-body"},Zo={class:"d-flex justify-content-between align-items-end w-100"},Go={class:"input-group mb-3"},$o=["value"],Qo=["value"],Jo=["value"],Ko={class:"input-group mb-3"},ta=["value"],ea=["value"],ia=["value"],sa={class:"accordion-item"},na={id:"clippingbox-floorpreset",class:"accordion-collapse collapse show","data-bs-parent":"#accordionExample"},ra={class:"accordion-body"},oa={class:"row w-100"},aa={class:"col-sm-6"},ha={class:"input-group input-group-sm"},la={class:"row w-100"},ca={class:"col-sm-6"},ua={class:"input-group input-group-sm"},da={class:"row w-100"},pa={class:"col-sm-6"},ma={class:"input-group input-group-sm"},fa=S.defineComponent({__name:"ClippingBox",setup(a){const t=es(),e=ts(),i=g=>Number.parseFloat(g.target.value);function s(){const{target:g}=e.getCameraPosition();t.setCenter(g.clone())}function n(g){const f=t.size.clone();f.setX(g),t.setSize(f)}function r(g){const f=t.size.clone();f.setY(g),t.setSize(f)}function o(g){const f=t.size.clone();f.setZ(g),t.setSize(f)}function h(g){const f=t.center.clone();f.setX(g),t.setCenter(f)}function l(g){const f=t.center.clone();f.setY(g),t.setCenter(f)}function c(g){const f=t.center.clone();f.setZ(g),t.setCenter(f)}const u=S.ref(2.7),d=S.ref(2),p=S.ref(170);function m(){d.value-=1;const g=t.center.clone();g.setZ(b()),t.setCenter(g)}function y(){d.value+=1;const g=t.center.clone();g.setZ(b()),t.setCenter(g)}function b(){return p.value+(d.value+.5)*u.value}function _(){const{target:g}=e.getCameraPosition(),f=g.clone();f.z=b();const w=new x(1e3,1e3,u.value);t.setSize(w),t.setCenter(f)}return(g,f)=>(S.openBlock(),S.createElementBlock("div",null,[S.createElementVNode("div",Do,[S.createElementVNode("div",Ro,[S.createElementVNode("input",{class:"form-check-input",checked:S.unref(t).enable,type:"checkbox",role:"switch",id:"enable-clippingbox",onInput:f[0]||(f[0]=w=>S.unref(t).setEnabled(!S.unref(t).enable))},null,40,Oo),f[14]||(f[14]=S.createElementVNode("label",{class:"form-check-label",for:"enable-clippingbox"},"Enable clipping box",-1))])]),S.createElementVNode("div",No,[S.createElementVNode("div",Lo,[S.createElementVNode("input",{class:"form-check-input",checked:S.unref(t).invert,type:"checkbox",role:"switch",id:"invert-clippingbox",onInput:f[1]||(f[1]=w=>S.unref(t).setInverted(!S.unref(t).invert))},null,40,Vo),f[15]||(f[15]=S.createElementVNode("label",{class:"form-check-label",for:"invert-clippingbox"},"Invert clipping box",-1))])]),S.createElementVNode("div",Wo,[S.createElementVNode("div",jo,[S.createElementVNode("input",{class:"form-check-input",checked:S.unref(t).displayHelper,type:"checkbox",role:"switch",id:"enable-clippingbox-helper",onInput:f[2]||(f[2]=w=>S.unref(t).setDisplayHelper(!S.unref(t).displayHelper))},null,40,Uo),f[16]||(f[16]=S.createElementVNode("label",{class:"form-check-label",for:"enable-clippingbox-helper"},"Show 3D helper",-1))])]),S.createElementVNode("div",Ho,[S.createElementVNode("div",qo,[f[19]||(f[19]=S.createElementVNode("h2",{class:"accordion-header"},[S.createElementVNode("button",{class:"accordion-button",type:"button","data-bs-toggle":"collapse","data-bs-target":"#clippingbox-size","aria-expanded":"true","aria-controls":"clippingbox-size"}," Clipping box size ")],-1)),S.createElementVNode("div",Xo,[S.createElementVNode("div",Yo,[S.createElementVNode("div",Zo,[f[17]||(f[17]=S.createElementVNode("label",{class:"form-label flex-grow"},"Center (x, y, z)",-1)),S.createElementVNode("button",{type:"button",class:"btn btn-outline-secondary btn-sm",onClick:f[3]||(f[3]=w=>s())}," Set from view ")]),S.createElementVNode("div",Go,[S.createElementVNode("input",{type:"number",class:"form-control",id:"plane-center-x",value:S.unref(t).center.x,onInput:f[4]||(f[4]=w=>h(i(w)))},null,40,$o),S.createElementVNode("input",{type:"number",class:"form-control",id:"plane-center-y",value:S.unref(t).center.y,onInput:f[5]||(f[5]=w=>l(i(w)))},null,40,Qo),S.createElementVNode("input",{type:"number",class:"form-control",id:"plane-center-z",value:S.unref(t).center.z,onInput:f[6]||(f[6]=w=>c(i(w)))},null,40,Jo)]),f[18]||(f[18]=S.createElementVNode("label",{class:"form-label"},"Size (x, y, z)",-1)),S.createElementVNode("div",Ko,[S.createElementVNode("input",{type:"number",class:"form-control",id:"plane-size-x",min:"1",value:S.unref(t).size.x,onInput:f[7]||(f[7]=w=>n(i(w)))},null,40,ta),S.createElementVNode("input",{type:"number",class:"form-control",id:"plane-size-y",min:"1",value:S.unref(t).size.y,onInput:f[8]||(f[8]=w=>r(i(w)))},null,40,ea),S.createElementVNode("input",{type:"number",class:"form-control",id:"plane-size-z",min:"1",value:S.unref(t).size.z,onInput:f[9]||(f[9]=w=>o(i(w)))},null,40,ia)])])])]),S.createElementVNode("div",sa,[f[27]||(f[27]=S.createElementVNode("h2",{class:"accordion-header"},[S.createElementVNode("button",{class:"accordion-button",type:"button","data-bs-toggle":"collapse","data-bs-target":"#clippingbox-floorpreset","aria-expanded":"true","aria-controls":"clippingbox-floorpreset"}," Floor preset ")],-1)),S.createElementVNode("div",na,[S.createElementVNode("div",ra,[S.createElementVNode("div",oa,[f[21]||(f[21]=S.createElementVNode("label",{for:"floor-reference-altitude",class:"col-sm-6 col-form-label col-form-label-sm"},"Reference altitude",-1)),S.createElementVNode("div",aa,[S.createElementVNode("div",ha,[S.withDirectives(S.createElementVNode("input",{type:"number",class:"form-control form-control-sm",id:"floor-reference-altitude","onUpdate:modelValue":f[10]||(f[10]=w=>p.value=w)},null,512),[[S.vModelText,p.value]]),f[20]||(f[20]=S.createElementVNode("span",{class:"input-group-text"},"m",-1))])])]),S.createElementVNode("div",la,[f[23]||(f[23]=S.createElementVNode("label",{for:"floor-size",class:"col-sm-6 col-form-label col-form-label-sm"},"Floor size",-1)),S.createElementVNode("div",ca,[S.createElementVNode("div",ua,[S.withDirectives(S.createElementVNode("input",{type:"number",class:"form-control form-control-sm",id:"floor-size","onUpdate:modelValue":f[11]||(f[11]=w=>u.value=w)},null,512),[[S.vModelText,u.value]]),f[22]||(f[22]=S.createElementVNode("span",{class:"input-group-text"},"m",-1))])])]),S.createElementVNode("div",da,[f[26]||(f[26]=S.createElementVNode("label",{for:"floor-number",class:"col-sm-6 col-form-label col-form-label-sm"},"Floor number",-1)),S.createElementVNode("div",pa,[S.createElementVNode("div",ma,[S.withDirectives(S.createElementVNode("input",{type:"number",class:"form-control form-control-sm",id:"floor-number","onUpdate:modelValue":f[12]||(f[12]=w=>d.value=w)},null,512),[[S.vModelText,d.value]]),S.createElementVNode("button",{class:"btn btn-outline-secondary btn-sm px-0",type:"button",onClick:y},[...f[24]||(f[24]=[S.createElementVNode("i",{class:"bi bi-arrow-up-short"},null,-1)])]),S.createElementVNode("button",{class:"btn btn-outline-secondary btn-sm px-0",type:"button",onClick:m},[...f[25]||(f[25]=[S.createElementVNode("i",{class:"bi bi-arrow-down-short"},null,-1)])])])])]),S.createElementVNode("button",{type:"button",class:"btn btn-outline-secondary btn-sm",onClick:f[13]||(f[13]=w=>_())}," Set ")])])])])]))}}),di=(a,t)=>{const e=a.__vccOpts||a;for(const[i,s]of t)e[i]=s;return e},ya=di(fa,[["__scopeId","data-v-8cfcaa40"]]),Vt=new Tn,et=new x,Tt=new x,V=new it,pn={X:new x(1,0,0),Y:new x(0,1,0),Z:new x(0,0,1)},Wi={type:"change"},mn={type:"mouseDown",mode:null},fn={type:"mouseUp",mode:null},yn={type:"objectChange"};class xa extends fo{constructor(t,e=null){super(void 0,e);const i=new Sa(this);this._root=i;const s=new za;this._gizmo=s,i.add(s);const n=new Aa;this._plane=n,i.add(n);const r=this;function o(f,w){let A=w;Object.defineProperty(r,f,{get:function(){return A!==void 0?A:w},set:function(C){A!==C&&(A=C,n[f]=C,s[f]=C,r.dispatchEvent({type:f+"-changed",value:C}),r.dispatchEvent(Wi))}}),r[f]=w,n[f]=w,s[f]=w}o("camera",t),o("object",void 0),o("enabled",!0),o("axis",null),o("mode","translate"),o("translationSnap",null),o("rotationSnap",null),o("scaleSnap",null),o("space","world"),o("size",1),o("dragging",!1),o("showX",!0),o("showY",!0),o("showZ",!0),o("minX",-1/0),o("maxX",1/0),o("minY",-1/0),o("maxY",1/0),o("minZ",-1/0),o("maxZ",1/0);const h=new x,l=new x,c=new it,u=new it,d=new x,p=new it,m=new x,y=new x,b=new x,_=0,g=new x;o("worldPosition",h),o("worldPositionStart",l),o("worldQuaternion",c),o("worldQuaternionStart",u),o("cameraPosition",d),o("cameraQuaternion",p),o("pointStart",m),o("pointEnd",y),o("rotationAxis",b),o("rotationAngle",_),o("eye",g),this._offset=new x,this._startNorm=new x,this._endNorm=new x,this._cameraScale=new x,this._parentPosition=new x,this._parentQuaternion=new it,this._parentQuaternionInv=new it,this._parentScale=new x,this._worldScaleStart=new x,this._worldQuaternionInv=new it,this._worldScale=new x,this._positionStart=new x,this._quaternionStart=new it,this._scaleStart=new x,this._getPointer=ga.bind(this),this._onPointerDown=wa.bind(this),this._onPointerHover=ba.bind(this),this._onPointerMove=Ma.bind(this),this._onPointerUp=_a.bind(this),e!==null&&this.connect()}connect(){this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointermove",this._onPointerHover),this.domElement.addEventListener("pointerup",this._onPointerUp),this.domElement.style.touchAction="none"}disconnect(){this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.removeEventListener("pointermove",this._onPointerHover),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.domElement.style.touchAction="auto"}getHelper(){return this._root}pointerHover(t){if(this.object===void 0||this.dragging===!0)return;t!==null&&Vt.setFromCamera(t,this.camera);const e=ji(this._gizmo.picker[this.mode],Vt);e?this.axis=e.object.name:this.axis=null}pointerDown(t){if(!(this.object===void 0||this.dragging===!0||t!=null&&t.button!==0)&&this.axis!==null){t!==null&&Vt.setFromCamera(t,this.camera);const e=ji(this._plane,Vt,!0);e&&(this.object.updateMatrixWorld(),this.object.parent.updateMatrixWorld(),this._positionStart.copy(this.object.position),this._quaternionStart.copy(this.object.quaternion),this._scaleStart.copy(this.object.scale),this.object.matrixWorld.decompose(this.worldPositionStart,this.worldQuaternionStart,this._worldScaleStart),this.pointStart.copy(e.point).sub(this.worldPositionStart)),this.dragging=!0,mn.mode=this.mode,this.dispatchEvent(mn)}}pointerMove(t){const e=this.axis,i=this.mode,s=this.object;let n=this.space;if(i==="scale"?n="local":(e==="E"||e==="XYZE"||e==="XYZ")&&(n="world"),s===void 0||e===null||this.dragging===!1||t!==null&&t.button!==-1)return;t!==null&&Vt.setFromCamera(t,this.camera);const r=ji(this._plane,Vt,!0);if(r){if(this.pointEnd.copy(r.point).sub(this.worldPositionStart),i==="translate")this._offset.copy(this.pointEnd).sub(this.pointStart),n==="local"&&e!=="XYZ"&&this._offset.applyQuaternion(this._worldQuaternionInv),e.indexOf("X")===-1&&(this._offset.x=0),e.indexOf("Y")===-1&&(this._offset.y=0),e.indexOf("Z")===-1&&(this._offset.z=0),n==="local"&&e!=="XYZ"?this._offset.applyQuaternion(this._quaternionStart).divide(this._parentScale):this._offset.applyQuaternion(this._parentQuaternionInv).divide(this._parentScale),s.position.copy(this._offset).add(this._positionStart),this.translationSnap&&(n==="local"&&(s.position.applyQuaternion(V.copy(this._quaternionStart).invert()),e.search("X")!==-1&&(s.position.x=Math.round(s.position.x/this.translationSnap)*this.translationSnap),e.search("Y")!==-1&&(s.position.y=Math.round(s.position.y/this.translationSnap)*this.translationSnap),e.search("Z")!==-1&&(s.position.z=Math.round(s.position.z/this.translationSnap)*this.translationSnap),s.position.applyQuaternion(this._quaternionStart)),n==="world"&&(s.parent&&s.position.add(et.setFromMatrixPosition(s.parent.matrixWorld)),e.search("X")!==-1&&(s.position.x=Math.round(s.position.x/this.translationSnap)*this.translationSnap),e.search("Y")!==-1&&(s.position.y=Math.round(s.position.y/this.translationSnap)*this.translationSnap),e.search("Z")!==-1&&(s.position.z=Math.round(s.position.z/this.translationSnap)*this.translationSnap),s.parent&&s.position.sub(et.setFromMatrixPosition(s.parent.matrixWorld)))),s.position.x=Math.max(this.minX,Math.min(this.maxX,s.position.x)),s.position.y=Math.max(this.minY,Math.min(this.maxY,s.position.y)),s.position.z=Math.max(this.minZ,Math.min(this.maxZ,s.position.z));else if(i==="scale"){if(e.search("XYZ")!==-1){let o=this.pointEnd.length()/this.pointStart.length();this.pointEnd.dot(this.pointStart)<0&&(o*=-1),Tt.set(o,o,o)}else et.copy(this.pointStart),Tt.copy(this.pointEnd),et.applyQuaternion(this._worldQuaternionInv),Tt.applyQuaternion(this._worldQuaternionInv),Tt.divide(et),e.search("X")===-1&&(Tt.x=1),e.search("Y")===-1&&(Tt.y=1),e.search("Z")===-1&&(Tt.z=1);s.scale.copy(this._scaleStart).multiply(Tt),this.scaleSnap&&(e.search("X")!==-1&&(s.scale.x=Math.round(s.scale.x/this.scaleSnap)*this.scaleSnap||this.scaleSnap),e.search("Y")!==-1&&(s.scale.y=Math.round(s.scale.y/this.scaleSnap)*this.scaleSnap||this.scaleSnap),e.search("Z")!==-1&&(s.scale.z=Math.round(s.scale.z/this.scaleSnap)*this.scaleSnap||this.scaleSnap))}else if(i==="rotate"){this._offset.copy(this.pointEnd).sub(this.pointStart);const o=20/this.worldPosition.distanceTo(et.setFromMatrixPosition(this.camera.matrixWorld));let h=!1;e==="XYZE"?(this.rotationAxis.copy(this._offset).cross(this.eye).normalize(),this.rotationAngle=this._offset.dot(et.copy(this.rotationAxis).cross(this.eye))*o):(e==="X"||e==="Y"||e==="Z")&&(this.rotationAxis.copy(pn[e]),et.copy(pn[e]),n==="local"&&et.applyQuaternion(this.worldQuaternion),et.cross(this.eye),et.length()===0?h=!0:this.rotationAngle=this._offset.dot(et.normalize())*o),(e==="E"||h)&&(this.rotationAxis.copy(this.eye),this.rotationAngle=this.pointEnd.angleTo(this.pointStart),this._startNorm.copy(this.pointStart).normalize(),this._endNorm.copy(this.pointEnd).normalize(),this.rotationAngle*=this._endNorm.cross(this._startNorm).dot(this.eye)<0?1:-1),this.rotationSnap&&(this.rotationAngle=Math.round(this.rotationAngle/this.rotationSnap)*this.rotationSnap),n==="local"&&e!=="E"&&e!=="XYZE"?(s.quaternion.copy(this._quaternionStart),s.quaternion.multiply(V.setFromAxisAngle(this.rotationAxis,this.rotationAngle)).normalize()):(this.rotationAxis.applyQuaternion(this._parentQuaternionInv),s.quaternion.copy(V.setFromAxisAngle(this.rotationAxis,this.rotationAngle)),s.quaternion.multiply(this._quaternionStart).normalize())}this.dispatchEvent(Wi),this.dispatchEvent(yn)}}pointerUp(t){t!==null&&t.button!==0||(this.dragging&&this.axis!==null&&(fn.mode=this.mode,this.dispatchEvent(fn)),this.dragging=!1,this.axis=null)}dispose(){this.disconnect(),this._root.dispose()}attach(t){return this.object=t,this._root.visible=!0,this}detach(){return this.object=void 0,this.axis=null,this._root.visible=!1,this}reset(){this.enabled&&this.dragging&&(this.object.position.copy(this._positionStart),this.object.quaternion.copy(this._quaternionStart),this.object.scale.copy(this._scaleStart),this.dispatchEvent(Wi),this.dispatchEvent(yn),this.pointStart.copy(this.pointEnd))}getRaycaster(){return Vt}getMode(){return this.mode}setMode(t){this.mode=t}setTranslationSnap(t){this.translationSnap=t}setRotationSnap(t){this.rotationSnap=t}setScaleSnap(t){this.scaleSnap=t}setSize(t){this.size=t}setSpace(t){this.space=t}}function ga(a){if(this.domElement.ownerDocument.pointerLockElement)return{x:0,y:0,button:a.button};{const t=this.domElement.getBoundingClientRect();return{x:(a.clientX-t.left)/t.width*2-1,y:-(a.clientY-t.top)/t.height*2+1,button:a.button}}}function ba(a){if(this.enabled)switch(a.pointerType){case"mouse":case"pen":this.pointerHover(this._getPointer(a));break}}function wa(a){this.enabled&&(document.pointerLockElement||this.domElement.setPointerCapture(a.pointerId),this.domElement.addEventListener("pointermove",this._onPointerMove),this.pointerHover(this._getPointer(a)),this.pointerDown(this._getPointer(a)))}function Ma(a){this.enabled&&this.pointerMove(this._getPointer(a))}function _a(a){this.enabled&&(this.domElement.releasePointerCapture(a.pointerId),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.pointerUp(this._getPointer(a)))}function ji(a,t,e){const i=t.intersectObject(a,!0);for(let s=0;s<i.length;s++)if(i[s].object.visible||e)return i[s];return!1}const $e=new Gt,N=new x(0,1,0),xn=new x(0,0,0),gn=new U,Qe=new it,Ke=new it,gt=new x,bn=new U,_e=new x(1,0,0),Wt=new x(0,1,0),Se=new x(0,0,1),Je=new x,we=new x,Me=new x;class Sa extends X{constructor(t){super(),this.isTransformControlsRoot=!0,this.controls=t,this.visible=!1}updateMatrixWorld(t){const e=this.controls;e.object!==void 0&&(e.object.updateMatrixWorld(),e.object.parent===null?console.error("TransformControls: The attached 3D object must be a part of the scene graph."):e.object.parent.matrixWorld.decompose(e._parentPosition,e._parentQuaternion,e._parentScale),e.object.matrixWorld.decompose(e.worldPosition,e.worldQuaternion,e._worldScale),e._parentQuaternionInv.copy(e._parentQuaternion).invert(),e._worldQuaternionInv.copy(e.worldQuaternion).invert()),e.camera.updateMatrixWorld(),e.camera.matrixWorld.decompose(e.cameraPosition,e.cameraQuaternion,e._cameraScale),e.camera.isOrthographicCamera?e.camera.getWorldDirection(e.eye).negate():e.eye.copy(e.cameraPosition).sub(e.worldPosition).normalize(),super.updateMatrixWorld(t)}dispose(){this.traverse(function(t){t.geometry&&t.geometry.dispose(),t.material&&t.material.dispose()})}}class za extends X{constructor(){super(),this.isTransformControlsGizmo=!0,this.type="TransformControlsGizmo";const t=new pe({depthTest:!1,depthWrite:!1,fog:!1,toneMapped:!1,transparent:!0}),e=new li({depthTest:!1,depthWrite:!1,fog:!1,toneMapped:!1,transparent:!0}),i=t.clone();i.opacity=.15;const s=e.clone();s.opacity=.5;const n=t.clone();n.color.setHex(16711680);const r=t.clone();r.color.setHex(65280);const o=t.clone();o.color.setHex(255);const h=t.clone();h.color.setHex(16711680),h.opacity=.5;const l=t.clone();l.color.setHex(65280),l.opacity=.5;const c=t.clone();c.color.setHex(255),c.opacity=.5;const u=t.clone();u.opacity=.25;const d=t.clone();d.color.setHex(16776960),d.opacity=.25,t.clone().color.setHex(16776960);const m=t.clone();m.color.setHex(7895160);const y=new J(0,.04,.1,12);y.translate(0,.05,0);const b=new G(.08,.08,.08);b.translate(0,.04,0);const _=new rt;_.setAttribute("position",new L([0,0,0,1,0,0],3));const g=new J(.0075,.0075,.5,3);g.translate(0,.25,0);function f(I,W){const H=new jt(I,.0075,3,64,W*Math.PI*2);return H.rotateY(Math.PI/2),H.rotateX(Math.PI/2),H}function w(){const I=new rt;return I.setAttribute("position",new L([0,0,0,1,1,1],3)),I}const A={X:[[new F(y,n),[.5,0,0],[0,0,-Math.PI/2]],[new F(y,n),[-.5,0,0],[0,0,Math.PI/2]],[new F(g,n),[0,0,0],[0,0,-Math.PI/2]]],Y:[[new F(y,r),[0,.5,0]],[new F(y,r),[0,-.5,0],[Math.PI,0,0]],[new F(g,r)]],Z:[[new F(y,o),[0,0,.5],[Math.PI/2,0,0]],[new F(y,o),[0,0,-.5],[-Math.PI/2,0,0]],[new F(g,o),null,[Math.PI/2,0,0]]],XYZ:[[new F(new ce(.1,0),u.clone()),[0,0,0]]],XY:[[new F(new G(.15,.15,.01),c.clone()),[.15,.15,0]]],YZ:[[new F(new G(.15,.15,.01),h.clone()),[0,.15,.15],[0,Math.PI/2,0]]],XZ:[[new F(new G(.15,.15,.01),l.clone()),[.15,0,.15],[-Math.PI/2,0,0]]]},C={X:[[new F(new J(.2,0,.6,4),i),[.3,0,0],[0,0,-Math.PI/2]],[new F(new J(.2,0,.6,4),i),[-.3,0,0],[0,0,Math.PI/2]]],Y:[[new F(new J(.2,0,.6,4),i),[0,.3,0]],[new F(new J(.2,0,.6,4),i),[0,-.3,0],[0,0,Math.PI]]],Z:[[new F(new J(.2,0,.6,4),i),[0,0,.3],[Math.PI/2,0,0]],[new F(new J(.2,0,.6,4),i),[0,0,-.3],[-Math.PI/2,0,0]]],XYZ:[[new F(new ce(.2,0),i)]],XY:[[new F(new G(.2,.2,.01),i),[.15,.15,0]]],YZ:[[new F(new G(.2,.2,.01),i),[0,.15,.15],[0,Math.PI/2,0]]],XZ:[[new F(new G(.2,.2,.01),i),[.15,0,.15],[-Math.PI/2,0,0]]]},E={START:[[new F(new ce(.01,2),s),null,null,null,"helper"]],END:[[new F(new ce(.01,2),s),null,null,null,"helper"]],DELTA:[[new bt(w(),s),null,null,null,"helper"]],X:[[new bt(_,s.clone()),[-1e3,0,0],null,[1e6,1,1],"helper"]],Y:[[new bt(_,s.clone()),[0,-1e3,0],[0,0,Math.PI/2],[1e6,1,1],"helper"]],Z:[[new bt(_,s.clone()),[0,0,-1e3],[0,-Math.PI/2,0],[1e6,1,1],"helper"]]},z={XYZE:[[new F(f(.5,1),m),null,[0,Math.PI/2,0]]],X:[[new F(f(.5,.5),n)]],Y:[[new F(f(.5,.5),r),null,[0,0,-Math.PI/2]]],Z:[[new F(f(.5,.5),o),null,[0,Math.PI/2,0]]],E:[[new F(f(.75,1),d),null,[0,Math.PI/2,0]]]},v={AXIS:[[new bt(_,s.clone()),[-1e3,0,0],null,[1e6,1,1],"helper"]]},B={XYZE:[[new F(new Ji(.25,10,8),i)]],X:[[new F(new jt(.5,.1,4,24),i),[0,0,0],[0,-Math.PI/2,-Math.PI/2]]],Y:[[new F(new jt(.5,.1,4,24),i),[0,0,0],[Math.PI/2,0,0]]],Z:[[new F(new jt(.5,.1,4,24),i),[0,0,0],[0,0,-Math.PI/2]]],E:[[new F(new jt(.75,.1,2,24),i)]]},k={X:[[new F(b,n),[.5,0,0],[0,0,-Math.PI/2]],[new F(g,n),[0,0,0],[0,0,-Math.PI/2]],[new F(b,n),[-.5,0,0],[0,0,Math.PI/2]]],Y:[[new F(b,r),[0,.5,0]],[new F(g,r)],[new F(b,r),[0,-.5,0],[0,0,Math.PI]]],Z:[[new F(b,o),[0,0,.5],[Math.PI/2,0,0]],[new F(g,o),[0,0,0],[Math.PI/2,0,0]],[new F(b,o),[0,0,-.5],[-Math.PI/2,0,0]]],XY:[[new F(new G(.15,.15,.01),c),[.15,.15,0]]],YZ:[[new F(new G(.15,.15,.01),h),[0,.15,.15],[0,Math.PI/2,0]]],XZ:[[new F(new G(.15,.15,.01),l),[.15,0,.15],[-Math.PI/2,0,0]]],XYZ:[[new F(new G(.1,.1,.1),u.clone())]]},P={X:[[new F(new J(.2,0,.6,4),i),[.3,0,0],[0,0,-Math.PI/2]],[new F(new J(.2,0,.6,4),i),[-.3,0,0],[0,0,Math.PI/2]]],Y:[[new F(new J(.2,0,.6,4),i),[0,.3,0]],[new F(new J(.2,0,.6,4),i),[0,-.3,0],[0,0,Math.PI]]],Z:[[new F(new J(.2,0,.6,4),i),[0,0,.3],[Math.PI/2,0,0]],[new F(new J(.2,0,.6,4),i),[0,0,-.3],[-Math.PI/2,0,0]]],XY:[[new F(new G(.2,.2,.01),i),[.15,.15,0]]],YZ:[[new F(new G(.2,.2,.01),i),[0,.15,.15],[0,Math.PI/2,0]]],XZ:[[new F(new G(.2,.2,.01),i),[.15,0,.15],[-Math.PI/2,0,0]]],XYZ:[[new F(new G(.2,.2,.2),i),[0,0,0]]]},D={X:[[new bt(_,s.clone()),[-1e3,0,0],null,[1e6,1,1],"helper"]],Y:[[new bt(_,s.clone()),[0,-1e3,0],[0,0,Math.PI/2],[1e6,1,1],"helper"]],Z:[[new bt(_,s.clone()),[0,0,-1e3],[0,-Math.PI/2,0],[1e6,1,1],"helper"]]};function T(I){const W=new X;for(const H in I)for(let Q=I[H].length;Q--;){const O=I[H][Q][0].clone(),j=I[H][Q][1],Y=I[H][Q][2],ut=I[H][Q][3],Qt=I[H][Q][4];O.name=H,O.tag=Qt,j&&O.position.set(j[0],j[1],j[2]),Y&&O.rotation.set(Y[0],Y[1],Y[2]),ut&&O.scale.set(ut[0],ut[1],ut[2]),O.updateMatrix();const ve=O.geometry.clone();ve.applyMatrix4(O.matrix),O.geometry=ve,O.renderOrder=1/0,O.position.set(0,0,0),O.rotation.set(0,0,0),O.scale.set(1,1,1),W.add(O)}return W}this.gizmo={},this.picker={},this.helper={},this.add(this.gizmo.translate=T(A)),this.add(this.gizmo.rotate=T(z)),this.add(this.gizmo.scale=T(k)),this.add(this.picker.translate=T(C)),this.add(this.picker.rotate=T(B)),this.add(this.picker.scale=T(P)),this.add(this.helper.translate=T(E)),this.add(this.helper.rotate=T(v)),this.add(this.helper.scale=T(D)),this.picker.translate.visible=!1,this.picker.rotate.visible=!1,this.picker.scale.visible=!1}updateMatrixWorld(t){const i=(this.mode==="scale"?"local":this.space)==="local"?this.worldQuaternion:Ke;this.gizmo.translate.visible=this.mode==="translate",this.gizmo.rotate.visible=this.mode==="rotate",this.gizmo.scale.visible=this.mode==="scale",this.helper.translate.visible=this.mode==="translate",this.helper.rotate.visible=this.mode==="rotate",this.helper.scale.visible=this.mode==="scale";let s=[];s=s.concat(this.picker[this.mode].children),s=s.concat(this.gizmo[this.mode].children),s=s.concat(this.helper[this.mode].children);for(let n=0;n<s.length;n++){const r=s[n];r.visible=!0,r.rotation.set(0,0,0),r.position.copy(this.worldPosition);let o;if(this.camera.isOrthographicCamera?o=(this.camera.top-this.camera.bottom)/this.camera.zoom:o=this.worldPosition.distanceTo(this.cameraPosition)*Math.min(1.9*Math.tan(Math.PI*this.camera.fov/360)/this.camera.zoom,7),r.scale.set(1,1,1).multiplyScalar(o*this.size/4),r.tag==="helper"){r.visible=!1,r.name==="AXIS"?(r.visible=!!this.axis,this.axis==="X"&&(V.setFromEuler($e.set(0,0,0)),r.quaternion.copy(i).multiply(V),Math.abs(N.copy(_e).applyQuaternion(i).dot(this.eye))>.9&&(r.visible=!1)),this.axis==="Y"&&(V.setFromEuler($e.set(0,0,Math.PI/2)),r.quaternion.copy(i).multiply(V),Math.abs(N.copy(Wt).applyQuaternion(i).dot(this.eye))>.9&&(r.visible=!1)),this.axis==="Z"&&(V.setFromEuler($e.set(0,Math.PI/2,0)),r.quaternion.copy(i).multiply(V),Math.abs(N.copy(Se).applyQuaternion(i).dot(this.eye))>.9&&(r.visible=!1)),this.axis==="XYZE"&&(V.setFromEuler($e.set(0,Math.PI/2,0)),N.copy(this.rotationAxis),r.quaternion.setFromRotationMatrix(gn.lookAt(xn,N,Wt)),r.quaternion.multiply(V),r.visible=this.dragging),this.axis==="E"&&(r.visible=!1)):r.name==="START"?(r.position.copy(this.worldPositionStart),r.visible=this.dragging):r.name==="END"?(r.position.copy(this.worldPosition),r.visible=this.dragging):r.name==="DELTA"?(r.position.copy(this.worldPositionStart),r.quaternion.copy(this.worldQuaternionStart),et.set(1e-10,1e-10,1e-10).add(this.worldPositionStart).sub(this.worldPosition).multiplyScalar(-1),et.applyQuaternion(this.worldQuaternionStart.clone().invert()),r.scale.copy(et),r.visible=this.dragging):(r.quaternion.copy(i),this.dragging?r.position.copy(this.worldPositionStart):r.position.copy(this.worldPosition),this.axis&&(r.visible=this.axis.search(r.name)!==-1));continue}r.quaternion.copy(i),this.mode==="translate"||this.mode==="scale"?(r.name==="X"&&Math.abs(N.copy(_e).applyQuaternion(i).dot(this.eye))>.99&&(r.scale.set(1e-10,1e-10,1e-10),r.visible=!1),r.name==="Y"&&Math.abs(N.copy(Wt).applyQuaternion(i).dot(this.eye))>.99&&(r.scale.set(1e-10,1e-10,1e-10),r.visible=!1),r.name==="Z"&&Math.abs(N.copy(Se).applyQuaternion(i).dot(this.eye))>.99&&(r.scale.set(1e-10,1e-10,1e-10),r.visible=!1),r.name==="XY"&&Math.abs(N.copy(Se).applyQuaternion(i).dot(this.eye))<.2&&(r.scale.set(1e-10,1e-10,1e-10),r.visible=!1),r.name==="YZ"&&Math.abs(N.copy(_e).applyQuaternion(i).dot(this.eye))<.2&&(r.scale.set(1e-10,1e-10,1e-10),r.visible=!1),r.name==="XZ"&&Math.abs(N.copy(Wt).applyQuaternion(i).dot(this.eye))<.2&&(r.scale.set(1e-10,1e-10,1e-10),r.visible=!1)):this.mode==="rotate"&&(Qe.copy(i),N.copy(this.eye).applyQuaternion(V.copy(i).invert()),r.name.search("E")!==-1&&r.quaternion.setFromRotationMatrix(gn.lookAt(this.eye,xn,Wt)),r.name==="X"&&(V.setFromAxisAngle(_e,Math.atan2(-N.y,N.z)),V.multiplyQuaternions(Qe,V),r.quaternion.copy(V)),r.name==="Y"&&(V.setFromAxisAngle(Wt,Math.atan2(N.x,N.z)),V.multiplyQuaternions(Qe,V),r.quaternion.copy(V)),r.name==="Z"&&(V.setFromAxisAngle(Se,Math.atan2(N.y,N.x)),V.multiplyQuaternions(Qe,V),r.quaternion.copy(V))),r.visible=r.visible&&(r.name.indexOf("X")===-1||this.showX),r.visible=r.visible&&(r.name.indexOf("Y")===-1||this.showY),r.visible=r.visible&&(r.name.indexOf("Z")===-1||this.showZ),r.visible=r.visible&&(r.name.indexOf("E")===-1||this.showX&&this.showY&&this.showZ),r.material._color=r.material._color||r.material.color.clone(),r.material._opacity=r.material._opacity||r.material.opacity,r.material.color.copy(r.material._color),r.material.opacity=r.material._opacity,this.enabled&&this.axis&&(r.name===this.axis||this.axis.split("").some(function(h){return r.name===h}))&&(r.material.color.setHex(16776960),r.material.opacity=1)}super.updateMatrixWorld(t)}}class Aa extends F{constructor(){super(new hi(1e5,1e5,2,2),new pe({visible:!1,wireframe:!0,side:Mn,transparent:!0,opacity:.1,toneMapped:!1})),this.isTransformControlsPlane=!0,this.type="TransformControlsPlane"}updateMatrixWorld(t){let e=this.space;switch(this.position.copy(this.worldPosition),this.mode==="scale"&&(e="local"),Je.copy(_e).applyQuaternion(e==="local"?this.worldQuaternion:Ke),we.copy(Wt).applyQuaternion(e==="local"?this.worldQuaternion:Ke),Me.copy(Se).applyQuaternion(e==="local"?this.worldQuaternion:Ke),N.copy(we),this.mode){case"translate":case"scale":switch(this.axis){case"X":N.copy(this.eye).cross(Je),gt.copy(Je).cross(N);break;case"Y":N.copy(this.eye).cross(we),gt.copy(we).cross(N);break;case"Z":N.copy(this.eye).cross(Me),gt.copy(Me).cross(N);break;case"XY":gt.copy(Me);break;case"YZ":gt.copy(Je);break;case"XZ":N.copy(Me),gt.copy(we);break;case"XYZ":case"E":gt.set(0,0,0);break}break;case"rotate":default:gt.set(0,0,0)}gt.length()===0?this.quaternion.copy(this.cameraQuaternion):(bn.lookAt(et.set(0,0,0),gt,N),this.quaternion.setFromRotationMatrix(bn)),super.updateMatrixWorld(t)}}const $t=M.string().nonempty().describe("The name of the coordinate system.");M.globalRegistry.add($t,{id:"CrsName"});const is=M.object({definition:M.string().nonempty().describe("The CRS definition. Can be a WKT or a proj4 string."),name:$t});M.globalRegistry.add(is,{id:"CrsDefinition"});const ss=M.array(is).default([]).optional();M.globalRegistry.add(ss,{id:"CrsDefinitionCollection"});const Ca=Object.freeze(Object.defineProperty({__proto__:null,CrsDefinition:is,CrsDefinitionCollection:ss,CrsName:$t},Symbol.toStringTag,{value:"Module"})),pi=M.number().describe("A distance in meters");M.globalRegistry.add(pi,{id:"Meter"});const It=M.number().describe("An angle in degrees");M.globalRegistry.add(It,{id:"Degree"});const va=Object.freeze(Object.defineProperty({__proto__:null,Degree:It,Meter:pi},Symbol.toStringTag,{value:"Module"})),ns=M.object({crs:$t,x:M.number(),y:M.number(),z:M.number().optional()});M.globalRegistry.add(ns,{id:"CoordinateObject"});const rs=M.object({altitude:pi.optional(),latitude:It,longitude:It});M.globalRegistry.add(rs,{id:"LatLon"});const os=M.tuple([M.number(),M.number()]);M.globalRegistry.add(os,{id:"Coordinate2D"});const as=M.tuple([M.number(),M.number(),M.number()]);M.globalRegistry.add(as,{id:"Coordinate3D"});const mi=M.union([ns,os,as,rs]);M.globalRegistry.add(mi,{id:"Coordinate"});const Ea=Object.freeze(Object.defineProperty({__proto__:null,Coordinate:mi,Coordinate2D:os,Coordinate3D:as,CoordinateObject:ns,LatLon:rs},Symbol.toStringTag,{value:"Module"})),hs=M.union([M.literal("point"),M.literal("multipoint"),M.literal("polygon"),M.literal("linestring")]);M.globalRegistry.add(hs,{id:"AnnotationType"});const ls=M.object({title:M.string().nonempty(),type:hs});M.globalRegistry.add(ls,{id:"AnnotationBase"});const cs=ls.extend({coordinate:mi,type:M.literal("point")});M.globalRegistry.add(cs,{id:"PointAnnotation"});const us=M.union([cs]);M.globalRegistry.add(us,{id:"Annotation"});const Fa=Object.freeze(Object.defineProperty({__proto__:null,Annotation:us,AnnotationBaseSchema:ls,AnnotationTypeSchema:hs,PointAnnotation:cs},Symbol.toStringTag,{value:"Module"})),fi=M.object({latitude:It,longitude:It,altitude:pi,heading:It,tilt:It});M.globalRegistry.add(fi,{id:"LookAt"});const Ba=new x(0,1,0);function jn(a,t){const e=ei.degToRad(t.heading),i=ei.degToRad(t.tilt),s=0,n=new Gt(i,s,-e,"ZXY");return a.clone().addScaledVector(Ba.clone().applyEuler(n),1e3)}const ka=Object.freeze(Object.defineProperty({__proto__:null,LookAt:fi,getLookAtTarget:jn},Symbol.toStringTag,{value:"Module"})),ds=M.object({lookAt:fi,title:M.string().nonempty()});M.globalRegistry.add(ds,{id:"Bookmark"});const Pa=Object.freeze(Object.defineProperty({__proto__:null,Bookmark:ds},Symbol.toStringTag,{value:"Module"})),ps=M.string().nonempty();M.globalRegistry.add(ps,{id:"ModuleName"});const ms=M.record(ps,M.unknown()).optional().describe("Module specific configuration. Keys are module IDs, and values are module-specific configurations");M.globalRegistry.add(ms,{id:"ModuleConfiguration"});const Ta=Object.freeze(Object.defineProperty({__proto__:null,ModuleConfiguration:ms,ModuleName:ps},Symbol.toStringTag,{value:"Module"})),fs=M.object({crs:$t,maxx:M.number(),maxy:M.number(),minx:M.number(),miny:M.number()});M.globalRegistry.add(fs,{id:"ExtentObject"});const ys=M.tuple([M.number().describe("minx"),M.number().describe("miny"),M.number().describe("maxx"),M.number().describe("maxy")]);M.globalRegistry.add(ys,{id:"ExtentTuple"});const yi=M.union([fs,ys]);M.globalRegistry.add(yi,{id:"Extent"});const Ia=Object.freeze(Object.defineProperty({__proto__:null,Extent:yi,ExtentObject:fs,ExtentTuple:ys},Symbol.toStringTag,{value:"Module"})),xs=M.object({extent:yi.describe("The extent of the basemap")});M.globalRegistry.add(xs,{id:"BasemapConfiguration"});const Da=Object.freeze(Object.defineProperty({__proto__:null,BasemapConfiguration:xs},Symbol.toStringTag,{value:"Module"})),gs=M.object({crs:$t.optional().default("EPSG:3857"),camera:fi.describe("The initial configuration of the camera."),basemap:xs.describe("The configuration for the basemap and terrain.")});M.globalRegistry.add(gs,{id:"SceneConfiguration"});const Ra=Object.freeze(Object.defineProperty({__proto__:null,SceneConfiguration:gs},Symbol.toStringTag,{value:"Module"})),Dt=M.object({title:M.string().optional(),version:M.literal(2).describe("The version of the configuration."),crsDefinitions:ss.optional(),scene:gs,bookmarks:M.array(ds).default([]).optional(),annotations:M.array(us).default([]).optional(),modules:ms.optional(),data:M.array(ci).default([]).optional()});M.globalRegistry.add(Dt,{id:"Configuration"});class Un{constructor(){R(this,"_config");this._config=bs()}build(){return Dt.parse(this._config)}withBookmarks(t){return this._config.bookmarks=t,this}withCrsDefinitions(t){return this._config.crsDefinitions=t,this}withDatasets(t){return this._config.data=t,this}}function bs(){const a={version:2,scene:{crs:"EPSG:3857",basemap:{extent:{crs:"EPSG:3857",maxx:20037508342789244e-9,maxy:20037508342789244e-9,minx:-20037508342789244e-9,miny:-20037508342789244e-9}},camera:{altitude:8e7,heading:0,latitude:0,longitude:0,tilt:-90}}};return Dt.parse(a)}function Hn(a){return Dt.parse(a)}const Oa=Object.freeze(Object.defineProperty({__proto__:null,Configuration:Dt,ConfigurationBuilder:Un,defaultConfiguration:bs,validateConfiguration:Hn},Symbol.toStringTag,{value:"Module"}));function Na(a){return URL.canParse(a)&&(a.startsWith("http://")||a.startsWith("https://"))}async function La(a,t){return(await xi(a,t)).arrayBuffer()}function xi(a,t){if(typeof a=="string"){const e=ui(a);return hr.fetch(e,t)}return lr.fetchFile(a,t)}async function Va(a,t){return await(await xi(a,t)).json()}async function Wa(a,t){return(await xi(a,t)).text()}function ja(a){let t,e;if(a instanceof Response){const r=new URL(a.url);t=`${r.origin}${r.pathname}`,e=r.search}else if(a instanceof File)t=a.name;else if(a instanceof Blob)t="";else if(typeof a=="string"){const r=ui(a),o=new URL(r);t=`${o.origin}${o.pathname}`,e=o.search}else return a;const i=t.split("/"),s=i.pop(),n=i.join("/");return{baseUrl:t,dirname:n,fileext:s==null?void 0:s.split(".").at(-1),filename:s,queryString:e}}async function Ua(a){return new Promise((t,e)=>{if(typeof a=="string")return ui(a);{const i=new FileReader;i.addEventListener("load",()=>t(i.result),!1),i.addEventListener("error",()=>e(i.error)),i.readAsDataURL(a)}})}const qn={checkAbsoluteHost:Na,fetch:xi,fetchArrayBuffer:La,fetchJson:Va,fetchText:Wa,getContext:ja,toDataURL:Ua};let Zi=null;function Xn(){if(Zi==null)throw new Error("No configuration loaded");return Zi}async function Ha(a){const t=await qn.fetchJson(a);return Dt.parse(t)}async function qa(a){const t=Dt.parse(a);let e=[];t.crsDefinitions==null?(console.warn("Configuration is not specifying CRS definitions. You should define the projections you use. See https://gitlab.com/giro3d/piero/-/issues/78 for more information."),e.push({definition:"+proj=lcc +lat_0=46.5 +lon_0=3 +lat_1=49 +lat_2=44 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs",name:"EPSG:2154"},{definition:"+proj=merc +a=6378137 +b=6378137 +lat_ts=0 +lon_0=0 +x_0=0 +y_0=0 +k=1 +units=m +nadgrids=@null +wktext +no_defs +type=crs",name:"EPSG:3857"},{definition:"+proj=lcc +lat_1=45.25 +lat_2=46.75 +lat_0=46 +lon_0=3 +x_0=1700000 +y_0=5200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs",name:"EPSG:3946"},{definition:"+proj=lcc +lat_0=48 +lon_0=3 +lat_1=47.25 +lat_2=48.75 +x_0=1700000 +y_0=7200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs",name:"EPSG:3948"},{definition:"+proj=longlat +ellps=GRS80 +no_defs +type=crs",name:"EPSG:4171"},{definition:"+proj=longlat +datum=WGS84 +no_defs +type=crs",name:"EPSG:4326"},{definition:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]',name:"IGNF:WGS84G"})):e=t.crsDefinitions;for(const{definition:i,name:s}of e)try{ar.registerCRS(s,i)}catch(n){throw console.error(`Failed to register CRS "${s}" as "${i}".`),n}return Zi=t,Promise.resolve()}function Xa(a){const t={z:0};for(const e of a)Xt.isGroup(e)?e.traverse(i=>{t.z++,i.zOrder=t.z}):(t.z++,e.zOrder=t.z)}function Yn(a){const t=S.shallowReactive(a);return Xt.isGroup(t)&&(t.children=S.shallowReactive(t.children.map(e=>Yn(e)))),t}function Ya(a){const t=Nn(a.data??[]);return Xa(t),t}const Zn=ai.defineStore("datasets",()=>{const a=Xn(),t=S.shallowReactive(Ya(a).map(z=>Yn(z))),e=S.computed(()=>t.map(z=>z.leafs()).flat()),i=S.computed(()=>e.value.length),s=new Map,n=new Map,r=S.ref([]);function o(z){r.value=[...r.value,{...z,mustBePreloaded:z.mustBePreloaded??!1,mustBeVisible:z.mustBeVisible??!1}]}function h(){return t}function l(){return e.value}function c(){return e.value.filter(z=>z.visible&&!Xt.isGroup(z))}function u(z){const v=S.shallowReactive(z);return t.push(v),v}function d(z,v){s.set(z.uuid,v)}function p(z,v){n.set(z.uuid,v)}function m(z){const v=z.parent!=null?z.parent.children:t;v.splice(v.indexOf(z),1)}function y(z){const v=new xt;return z.traverse(B=>{var D;const k=s.get(B.uuid);k==null||k.forEach(T=>{const I=T==null?void 0:T.getBoundingBox();I&&!I.isEmpty()&&v.union(I)});const P=n.get(B.uuid);if(P){const T=Wn(a.scene.basemap.extent,a.scene.crs);for(const I of P){const W=(D=I==null?void 0:I.getExtent())==null?void 0:D.as(a.scene.crs);if(W&&W.isValid()){const Q=W.clone().intersect(T).toBox3(0,0);v.union(Q);return}}}}),v}function b(z){return s.get(z.uuid)}function _(z){return n.get(z.uuid)}function g(z){}function f(z,v){}function w(z,v){}function A(z){}function C(z){}function E(z,v){return r.value.filter(k=>!(k.predicate!=null&&!k.predicate(z)||k.mustBeVisible&&!v.isVisible||k.mustBePreloaded&&!v.isPreloaded))}return{add:u,attachEntities:d,attachLayers:p,count:i,datasets:t,getBoundingBox:y,getCustomActions:E,getDatasets:l,getEntities:b,getLayers:_,getTree:h,getVisibleDatasets:c,importFromFile:g,registerCustomAction:o,remove:m,setOpacity:w,setVisible:f,toggleGrid:A,toggleMask:C}}),Za=new pe({color:"yellow",opacity:.1,transparent:!0});class Ga{constructor(t){R(this,"_cameraStore",ts());R(this,"_clippingBox",null);R(this,"_clippingBoxHelper",null);R(this,"_clippingBoxMesh",null);R(this,"_datasetStore",Zn());R(this,"_previousTransformControls",this._cameraStore.getNavigationMode());R(this,"_store",es());R(this,"_transformControls",null);R(this,"_volumeHelpers",new kn);this.context=t,t.events.addEventListener("ready",this.initialize.bind(this))}clipToDataset(t){const e=this._datasetStore.getBoundingBox(t);e!=null&&e.isEmpty()||this.setClippingBox(e)}dispose(){this.context.view.getInstance().scene.remove(this._volumeHelpers),this.disposeClippingBox()}isClippingBoxEnabled(){return this._store.enable}setClippingBox(t){t.isEmpty()||(this._store.setClippingBox(t),this._store.setEnabled(!0))}applyClippingPlanes(){const t=this._store.enable?this.getPlanesFromBoxSides():[];for(const e of this._datasetStore.getDatasets()){const i=this._datasetStore.getEntities(e);if(i)for(const s of i)s.clippingPlanes=t,s.traverseMaterials(n=>{n.clipIntersection=this._store.invert}),this.context.view.getInstance().notifyChange(s)}}createClippingBox(t,e){this._clippingBox=new xt,this._clippingBox.setFromCenterAndSize(t,e);const i=this.context.view.getInstance();if(this._store.displayHelper){const s=new G(e.x,e.y,e.z);this._clippingBoxMesh=new F(s,Za),this._clippingBoxHelper=new po(this._clippingBox,new vt("yellow")),this._clippingBoxMesh.renderOrder=2,this._clippingBoxMesh.position.copy(t),this._clippingBoxMesh.updateMatrixWorld(),this._clippingBoxHelper.updateMatrixWorld(),this._transformControls=new xa(i.view.camera,i.domElement),this._transformControls.addEventListener("change",()=>{this._cameraStore.getNavigationMode()!=="disabled"||this._clippingBoxMesh===null||(this._store.center.copy(this._clippingBoxMesh.position),this.moveClippingBox())}),this._transformControls.addEventListener("dragging-changed",n=>{n.value!=null?(this._previousTransformControls=this._cameraStore.getNavigationMode(),this._cameraStore.setNavigationMode("disabled"),this._cameraStore.setIsUserInteracting(!0)):(this._cameraStore.setNavigationMode(this._previousTransformControls),setTimeout(()=>this._cameraStore.setIsUserInteracting(!1),0))}),this._volumeHelpers.add(this._clippingBoxHelper),this._volumeHelpers.add(this._clippingBoxMesh),this._transformControls.attach(this._clippingBoxMesh),this._transformControls.getHelper().updateMatrixWorld(),i.scene.add(this._transformControls.getHelper()),i.notifyChange()}}disposeClippingBox(){var t,e,i,s,n,r,o,h;(t=this._transformControls)==null||t.detach(),(e=this._transformControls)==null||e.getHelper().removeFromParent(),(i=this._transformControls)==null||i.dispose(),(n=(s=this._clippingBoxMesh)==null?void 0:s.geometry)==null||n.dispose(),(r=this._clippingBoxMesh)==null||r.removeFromParent(),(o=this._clippingBoxHelper)==null||o.removeFromParent(),(h=this._clippingBoxHelper)==null||h.dispose(),this.context.view.getInstance().notifyChange()}getPlanesFromBoxSides(){if(this._clippingBox===null)throw new Error("No clippingBox defined");const t=[];return t.push(new ht(new x(0,0,1),-this._clippingBox.min.z)),t.push(new ht(new x(0,0,-1),+this._clippingBox.max.z)),t.push(new ht(new x(1,0,0),-this._clippingBox.min.x)),t.push(new ht(new x(-1,0,0),+this._clippingBox.max.x)),t.push(new ht(new x(0,1,0),-this._clippingBox.min.y)),t.push(new ht(new x(0,-1,0),+this._clippingBox.max.y)),this._store.invert&&t.forEach(e=>e.negate()),t}initialize(){this.context.view.getInstance().scene.add(this._volumeHelpers),this._clippingBox=null,this._clippingBoxHelper=null,this._clippingBoxMesh=null,this._transformControls=null,this._previousTransformControls=this._cameraStore.getNavigationMode(),this._store.$onAction(({after:e,name:i})=>{e(()=>{switch(i){case"setCenter":this.moveClippingBox();break;case"setClippingBox":case"setDisplayHelper":case"setEnabled":case"setSize":this.updateClippingBox();break;case"setInverted":this.applyClippingPlanes();break}})}),this._datasetStore.$onAction(({after:e,name:i})=>{e(()=>{switch(i){case"attachEntities":this._store.enable&&this.applyClippingPlanes();break}})})}moveClippingBox(){var e,i,s,n,r;const t=this.context.view.getInstance();this._store.enable&&(this._clippingBox===null&&this.createClippingBox(this._store.center,this._store.size),(e=this._clippingBox)==null||e.setFromCenterAndSize(this._store.center,this._store.size),this._store.displayHelper&&((i=this._clippingBoxMesh)==null||i.position.copy(this._store.center),(s=this._clippingBoxMesh)==null||s.updateMatrixWorld(),(n=this._clippingBoxHelper)==null||n.updateMatrixWorld(),(r=this._transformControls)==null||r.getHelper().updateMatrixWorld(),t.notifyChange(this._volumeHelpers),t.notifyChange(this._transformControls))),this.applyClippingPlanes()}updateClippingBox(){this.disposeClippingBox(),this._store.enable&&this.createClippingBox(this._store.center,this._store.size),this.applyClippingPlanes()}}const ws="builtin-analysis-clipping-box";class $a{constructor(){R(this,"id",ws);R(this,"name","Clipping box");R(this,"_manager",null);R(this,"_store",null)}getClippingBox(){if(this._store==null)throw new Error("module is not initialized");return this._store.clippingBox}initialize(t){t.analysis.registerTool({component:ya,icon:"bi-bounding-box",name:"Clipping box"}),this._store=es();const e=new Ga(t);t.datasets.registerDatasetAction({action:i=>e.clipToDataset(i),icon:"bi-bounding-box",mustBePreloaded:!0,title:"Clip to"}),this._manager=e}isClippingBoxEnabled(){if(this._store==null)throw new Error("module is not initialized");return this._store.enable}isClippingBoxInverted(){if(this._store==null)throw new Error("module is not initialized");return this._store.invert}setClippingBox(t){if(this._manager==null)throw new Error("module is not initialized");this._manager.setClippingBox(t)}}const Gn=ai.defineStore("modules",()=>{const a=S.shallowRef([]);function t(s){a.value=s}function e(){return a.value}function i(s){for(const n of a.value)if(n.id===s)return n;return null}return{getLoadedModules:e,getModule:i,setLoadedModules:t}});class Qa{constructor(t,e,i,s){R(this,"attributes");R(this,"name");R(this,"parent");R(this,"point");this.name=t,this.parent=e,this.attributes=i,this.point=s.clone()}}const $n=[];function Ja(a,t){return ti.isShapePickResult(a)?-1:ti.isShapePickResult(t)?1:a.distance-t.distance}class Ka{constructor(){R(this,"_moduleStore",Gn())}getFeatureFromPickedObject(t){var c,u;const{entity:e,features:i,object:s}=t,n=(e==null?void 0:e.object3d)??s;let r=(u=(c=n.userData)==null?void 0:c.dataset)==null?void 0:u.name;const o=(e==null?void 0:e.id)??n.uuid,h=[],l=new Map;if(l.set("Dataset",h),e){if(rr.isMapPickResult(t)){if(i==null||i.length===0)return null;const d=i.at(0);r=this.getNameFromOLFeature(d.feature)??r,this.getAttributesFromOLFeature(d.feature,l),h.push({key:"Layer",value:d.layer.name})}else if(nr.isPointsPickResult(t))this.getAttributesFromPointCloud(t,l);else if(!e.isFeatureCollection){if(ti.isShapePickResult(t)){const d=t.entity;if(ni.isMeasure3D(d)){const p=d.userData.measure;r=(p==null?void 0:p.title)??r,this.getAttributesFromMeasure(t,l)}else{const p=d.userData.annotation;r=(p==null?void 0:p.title)??r,this.getAttributesFromAnnotation(t,l)}}}for(const d of $n)d(t,l)}return e!=null&&e.userData&&this.getAttributesFromEntity(e,l),(s==null?void 0:s.userData)!=null&&this.getAttributesFromPickedObject3D(t,l),s!=null&&this.getDatasetAttributes(s,h),new Qa(r,o,l,t.point)}getFirstFeatureAt(t,e,i=1,s){const n=this.getObjectsAt(t,e,i,s);if(n!=null&&n.length>0)return n;const r=this.getMapAt(t,e,i);return r?[r]:null}getGeometryAttributes(t,e){const i=new xt,s=new x,n=new x;i.setFromObject(t),i.getCenter(n),i.getSize(s),e.push({key:"Center",value:[n.x.toFixed(2),n.y.toFixed(2),n.z.toFixed(2)]});const r="m";e.push({key:"Size",value:[`${s.x.toFixed(2)}${r}`,`${s.y.toFixed(2)}${r}`,`${s.z.toFixed(2)}${r}`]})}getMapAt(t,e,i=1){const s=t.getObjects(r=>r.isMap);return t.pickObjectsAt(e,{limit:1,pickFeatures:!0,radius:i,sortByDistance:!0,where:s}).at(0)??null}getMouseCoordinate(t,e){const i=t.getObjects(n=>n.isMap),s=t.pickObjectsAt(e,{limit:1,radius:0,where:i}).at(0);return(s==null?void 0:s.point)??null}getObjectsAt(t,e,i=1,s){let n=t.getObjects(o=>or.isMap(o)!==!0);s&&(n=n.filter(s));const r=t.pickObjectsAt(e,{filter:o=>this.filterPick(t,o),pickFeatures:!0,radius:i,where:n});return r.sort(Ja),r??null}hasFeature(t,e){const i=t.getObjects(n=>n.isMap!==!0);return t.pickObjectsAt(e,{limit:1,radius:0,where:i}).at(0)!=null}pick(t,e){var s;const i=(s=this.getFirstFeatureAt(t,e))==null?void 0:s.at(0);if(i){const n=this.getFeatureFromPickedObject(i);if(n)return{feature:n,pickResult:i,point:i.point}}return null}filterPick(t,e){const i=this._moduleStore.getModule(ws);if(i!=null&&i.isClippingBoxEnabled()){const s=i.getClippingBox().containsPoint(e.point);if(i.isClippingBoxInverted()){if(s)return!1}else if(!s)return!1}return!(e.distance<t.view.camera.near||e.distance>t.view.camera.far)}getAttributesFromAnnotation(t,e){e.has("GeoJSON")||e.set("GeoJSON",[]);const i=e.get("GeoJSON"),s=t.entity,n=s.userData,{annotation:r,measurements:o,type:h}=n;if(r!=null)for(const[u,d]of Object.entries(r.properties))u==="geometry"||u==="geometryProperty"||u==="metadata"||u==="entity"||i.push({key:u,value:d});e.has("Measurement")||e.set("Measurement",[]);const l=e.get("Measurement");h==="multipoint"&&l.push({key:"Number of points",value:s.points.length});const c="m";o.area!=null&&l.push({key:"Area",value:`${o.area.toFixed(2)}${c}²`}),o.perimeter!=null&&l.push({key:h==="polygon"?"Perimeter":"Length",value:`${o.perimeter.toFixed(2)}${c}`}),o.minmax!=null&&(l.push({key:"Min altitude",value:`${o.minmax[0].toFixed(2)}${c}`}),l.push({key:"Max altitude",value:`${o.minmax[1].toFixed(2)}${c}`}))}getAttributesFromEntity(t,e){e.has("Feature")||e.set("Feature",[]);const i=e.get("Feature");(t==null?void 0:t.userData)!=null&&this.getAttributesFromUserData(t.userData,i)}getAttributesFromMeasure(t,e){e.has("GeoJSON")||e.set("GeoJSON",[]);const i=e.get("GeoJSON"),s=t.entity;for(const[r,o]of Object.entries(s.userData.measure.properties))r==="geometry"||r==="geometryProperty"||r==="metadata"||r==="entity"||i.push({key:r,value:o});e.has("Measurement")||e.set("Measurement",[]);const n=e.get("Measurement");n.push({key:"From",value:s.from}),n.push({key:"To",value:s.to}),n.push({key:"Length",value:`${s.length.toFixed(2)}m`})}getAttributesFromObject3D(t,e){if((t==null?void 0:t.userData)!=null&&this.getAttributesFromUserData(t.userData,e),t!=null&&t.parent){if("isFeatureTile"in t.parent&&t.parent.isFeatureTile===!0)return;this.getAttributesFromObject3D(t.parent,e)}}getAttributesFromOLFeature(t,e){e.has("Feature")||e.set("Feature",[]);const i=e.get("Feature");t.getId()!==void 0&&i.push({key:"fid",value:t.getId()});for(const[s,n]of Object.entries(t.getProperties()))s==="geometry"||s==="geometryProperty"||i.push({key:s,value:n})}getAttributesFromPickedObject3D(t,e){e.has("Feature")||e.set("Feature",[]);const i=e.get("Feature");this.getAttributesFromObject3D(t.object,i)}getAttributesFromPointCloud(t,e){var i;(i=e.get("Dataset"))==null||i.push({key:"Tile",value:t.object.name})}getAttributesFromUserData(t,e){for(const[i,s]of Object.entries(t))if(!(i==="geometry"||i==="geometryProperty"||i==="metadata"||i==="entity"||i==="dataset"||i==="bbox"||i==="hover")){if(i==="feature"&&typeof s=="object"&&"ol_uid"in s){this.getAttributesFromUserData(s.getProperties(),e);continue}if(i==="properties"){this.getAttributesFromUserData(s,e);continue}if(typeof s!="object"){if(i==="id"){e.push({key:"fid",value:s});continue}e.push({key:i,value:s})}}}getDatasetAttributes(t,e){var i,s,n,r;((s=(i=t==null?void 0:t.userData)==null?void 0:i.dataset)==null?void 0:s.name)!=null&&e.push({key:"Dataset",value:t.userData.dataset.name}),((r=(n=t==null?void 0:t.userData)==null?void 0:n.dataset)==null?void 0:r.filename)!=null&&e.push({key:"File",value:t.userData.dataset.filename}),t.parent&&this.getDatasetAttributes(t.parent,e)}getNameFromOLFeature(t){return t.get("nom")??t.get("name")??t.getId()}}const Ms=M.union([M.literal("OrRd"),M.literal("PuBu"),M.literal("BuPu"),M.literal("Oranges"),M.literal("BuGn"),M.literal("YlOrBr"),M.literal("YlGn"),M.literal("Reds"),M.literal("RdPu"),M.literal("Greens"),M.literal("YlGnBu"),M.literal("Purples"),M.literal("GnBu"),M.literal("Greys"),M.literal("YlOrRd"),M.literal("PuRd"),M.literal("Blues"),M.literal("PuBuGn"),M.literal("Viridis"),M.literal("Spectral"),M.literal("RdYlGn"),M.literal("RdBu"),M.literal("PiYG"),M.literal("PRGn"),M.literal("RdYlBu"),M.literal("BrBG"),M.literal("RdGy"),M.literal("PuOr"),M.literal("Set2"),M.literal("Accent"),M.literal("Set1"),M.literal("Set3"),M.literal("Dark2"),M.literal("Paired"),M.literal("Pastel2"),M.literal("Pastel1")]);M.globalRegistry.add(Ms,{id:"ColorRampName"});const _s=M.object({max:M.number(),min:M.number(),ramp:Ms});M.globalRegistry.add(_s,{id:"ColorMap"});const th=Object.freeze(Object.defineProperty({__proto__:null,ColorMap:_s,ColorRampName:Ms},Symbol.toStringTag,{value:"Module"})),Qn=M.union([M.literal("color"),M.literal("elevation")]),Ss=Ce.extend({extent:yi.optional(),layerType:Qn.optional().default("color"),nodata:M.number().optional().describe("The no-data value to enable no-data filling"),resolution:M.number().optional().default(1)});M.globalRegistry.add(Ss,{id:"Layer"});const eh=Object.freeze(Object.defineProperty({__proto__:null,Layer:Ss,LayerType:Qn},Symbol.toStringTag,{value:"Module"})),Jn=M.unknown(),Kn=new pr({fill:new ur({color:"#377c5fa1"}),stroke:new dr({color:"#123e2bff",width:2})}),ih=Object.freeze(Object.defineProperty({__proto__:null,OpenLayersFlatStyleLike:Jn,defaultVectorStyle:Kn},Symbol.toStringTag,{value:"Module"})),zs=M.url().nonempty();M.globalRegistry.add(zs,{id:"Url"});const sh=Object.freeze(Object.defineProperty({__proto__:null,Url:zs},Symbol.toStringTag,{value:"Module"})),nh={class:"form-check form-switch"},rh=["checked"],oh=S.defineComponent({__name:"SwitchToggle",props:["modelValue"],emits:["update:modelValue"],setup(a){return(t,e)=>(S.openBlock(),S.createElementBlock("div",nh,[S.createElementVNode("input",{class:"form-check-input",type:"checkbox",role:"switch",checked:a.modelValue,onInput:e[0]||(e[0]=i=>t.$emit("update:modelValue",i.target.checked))},null,40,rh),S.renderSlot(t.$slots,"default")]))}}),ah=["title"],hh=["title"],tr=S.defineComponent({__name:"Icon",props:{icon:{},title:{}},setup(a){return(t,e)=>a.icon.startsWith("bi-")?(S.openBlock(),S.createElementBlock("i",{key:0,class:S.normalizeClass(["bi",a.icon]),title:a.title},null,10,ah)):(S.openBlock(),S.createElementBlock("i",{key:1,class:S.normalizeClass(a.icon),title:a.title},null,10,hh))}}),lh=["title"],er=S.defineComponent({__name:"ButtonWithIcon",props:{icon:{},text:{},title:{}},emits:["click"],setup(a){return(t,e)=>(S.openBlock(),S.createElementBlock("button",{title:a.title,class:"btn",type:"button",onClick:e[0]||(e[0]=i=>t.$emit("click",i))},[a.icon?(S.openBlock(),S.createBlock(tr,{key:0,icon:a.icon},null,8,["icon"])):S.createCommentVNode("",!0),S.createTextVNode(" "+S.toDisplayString(a.text),1)],8,lh))}}),ch={},uh={class:"icons text-nowrap d-flex justify-content-evenly"};function dh(a,t){return S.openBlock(),S.createElementBlock("div",uh,[S.renderSlot(a.$slots,"default")])}const ph=di(ch,[["render",dh]]),mh=S.defineComponent({__name:"IconListButton",props:{icon:{},title:{}},emits:["click"],setup(a){return(t,e)=>(S.openBlock(),S.createBlock(er,{title:a.title,icon:a.icon,onClick:e[0]||(e[0]=i=>t.$emit("click",i)),class:"btn-link link-secondary link-opacity-75 link-opacity-100-hover p-0 border-0"},null,8,["title","icon"]))}}),fh=di(mh,[["__scopeId","data-v-10315937"]]),yh=["title","disabled"],xh=S.defineComponent({__name:"ListLabelButton",props:{disabled:{type:Boolean},text:{},title:{}},emits:["click"],setup(a){return(t,e)=>(S.openBlock(),S.createElementBlock("button",{class:S.normalizeClass(["btn btn-link d-inline-block flex-fill text-start text-nowrap text-truncate overflow-hidden px-1 py-0 link-underline link-underline-opacity-0 link-underline-opacity-75-hover",t.$attrs.class]),title:a.title??a.text,disabled:!!a.disabled,type:"button",onClick:e[0]||(e[0]=i=>t.$emit("click",i))},S.toDisplayString(a.text),11,yh))}});function gh(a,t){const e=S.ref(a[t]);return S.watch(()=>a[t],i=>{e.value=i}),e}function bh(a,t){const e=a.isEntity3D?a.object3d:a;"dataset"in e.userData||(e.userData.dataset={});for(const[i,s]of Object.entries(t))e.userData.dataset[i]=s}exports.AmbientLight=lo;exports.ArrowHelper=mo;exports.Box3=xt;exports.ClippingBox=$a;exports.Clock=co;exports.Color=vt;exports.ColorMap=_s;exports.Configuration=Dt;exports.ConfigurationBuilder=Un;exports.Coordinate=mi;exports.CrsName=$t;exports.DEFAULT_SHAPE_COLOR=Eo;exports.Datagroup=Xt;exports.Dataset=On;exports.Dataset$1=Ce;exports.DatasetState=Dn;exports.DirectionalLight=ho;exports.DoubleSide=Mn;exports.Download=Vn;exports.EDIT_SHAPE_COLOR=ko;exports.EventDispatcher=Yt;exports.Fetcher=qn;exports.Group=kn;exports.IconList=ph;exports.IconListButton=fh;exports.Layer=Ss;exports.MathUtils=ei;exports.Matrix4=U;exports.Measure3D=ni;exports.Mesh=F;exports.MeshBasicMaterial=pe;exports.Object3D=X;exports.OpenLayersFlatStyleLike=Jn;exports.Picker=Ka;exports.Plane=ht;exports.PlaneGeometry=hi;exports.Quaternion=it;exports.Raycaster=Tn;exports.SHAPE_POINT_RADIUS=Po;exports.Sphere=Ae;exports.Spherical=uo;exports.Url=zs;exports.Vector2=$;exports.Vector3=x;exports.Vector4=Zt;exports._export_sfc=di;exports._sfc_main=oh;exports._sfc_main$1=er;exports._sfc_main$2=tr;exports._sfc_main$3=xh;exports.annotation=Fa;exports.basemap=Da;exports.bookmark=Pa;exports.colormap=th;exports.configuration=Oa;exports.coordinate=Ea;exports.crs=Ca;exports.customAttributeExtractors=$n;exports.dataset=yo;exports.defaultConfiguration=bs;exports.defaultVectorStyle=Kn;exports.extent=Ia;exports.fillObject3DUserData=bh;exports.getConfig=Xn;exports.getLookAtTarget=jn;exports.getPublicFolderUrl=ui;exports.isColor=bo;exports.isLink=go;exports.isObject=me;exports.isVector3=wo;exports.layer=eh;exports.loadRemoteConfiguration=Ha;exports.lookAt=ka;exports.module=Ta;exports.moduleId=ws;exports.nonNull=xo;exports.refAndWatch=gh;exports.scene=Ra;exports.setConfiguration=qa;exports.style=ih;exports.toGiro3DColorMap=Co;exports.toGiro3DCoordinates=vo;exports.toGiro3DExtent=Wn;exports.units=va;exports.url=sh;exports.useCameraStore=ts;exports.useDatasetStore=Zn;exports.useModuleStore=Gn;exports.validateConfiguration=Hn;
|
|
6
|
+
//# sourceMappingURL=userData.cjs.js.map
|