@arcgis/core 4.31.0-next.20240919 → 4.31.0-next.20240921
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/WebDocument2D.js +1 -1
- package/WebLinkChart.js +1 -1
- package/WebMap.js +1 -1
- package/applications/SceneViewer/sceneViewerUtils.js +1 -1
- package/arcade/featureset/actions/Adapted.js +1 -1
- package/arcade/featureset/support/StatsField.js +1 -1
- package/arcade/featureset/support/errorsupport.js +1 -1
- package/arcade/featureset/support/sqlUtils.js +1 -1
- package/arcade/functions/maths.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{d9d8606f0a7c82b42755.js → 093a1ee161cb6a840283.js} +1 -1
- package/assets/esri/core/workers/chunks/2020b99675caabf5ac87.js +1 -0
- package/assets/esri/core/workers/chunks/24d45530fe47b3114daf.js +1 -0
- package/assets/esri/core/workers/chunks/35f92652df2561845d47.js +1 -0
- package/assets/esri/core/workers/chunks/42b92b4c2c9fd2b15f60.js +2 -0
- package/assets/esri/core/workers/chunks/{ba561e03df67894e437f.js.LICENSE.txt → 42b92b4c2c9fd2b15f60.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/65b1d7fa57d4c764efe8.js +1 -0
- package/assets/esri/core/workers/chunks/{b99d380cce485e65c990.js → 6cda92678ffeeaea0330.js} +1 -1
- package/assets/esri/core/workers/chunks/736e0c5cb9010ca818d8.js +1 -0
- package/assets/esri/core/workers/chunks/757b83799555958e059c.js +1 -0
- package/assets/esri/core/workers/chunks/76d8192015ce46dbf92a.js +1 -0
- package/assets/esri/core/workers/chunks/7b4880b2dc6b01d70ccc.js +1 -0
- package/assets/esri/core/workers/chunks/884cd0bd036c65567929.js +1 -0
- package/assets/esri/core/workers/chunks/95ea77a7d63c9d7ed78b.js +1 -0
- package/assets/esri/core/workers/chunks/{da3a4eb3fbb9dd509b4b.js → 98e872da08203455a5b6.js} +1 -1
- package/assets/esri/core/workers/chunks/ad4fa125e09cc0047f5b.js +1 -0
- package/assets/esri/core/workers/chunks/bb5a18dd1e6a71905668.js +2 -0
- package/assets/esri/core/workers/chunks/bf406a46515d5dfebe06.js +1 -0
- package/assets/esri/core/workers/chunks/d9c34e07627d93d4670b.js +1 -0
- package/assets/esri/core/workers/chunks/e1e9a7695e48e34a69bd.js +1 -0
- package/assets/esri/core/workers/chunks/e4f1464ed269c301b4ee.js +1 -0
- package/assets/esri/core/workers/chunks/{072029d05ccb56979523.js → e611141692355a1ba2b2.js} +1 -1
- package/assets/esri/core/workers/chunks/f41e8d0d6f5e81289179.js +1 -0
- package/assets/esri/core/workers/chunks/f7c96d34c70ed36da7c2.js +1 -0
- package/assets/esri/core/workers/chunks/{5ca8e767cc03e1425338.js → f9e90a2fda559ca68848.js} +1 -1
- package/assets/esri/themes/base/_functions.scss +6 -2
- package/assets/esri/themes/base/widgets/_BasemapLayerList.scss +4 -0
- package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +6 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ar.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_bg.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_bs.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ca.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_cs.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_da.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_de.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_el.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_en.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_es.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_et.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_fi.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_fr.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_he.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_hr.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_hu.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_id.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_it.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ja.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ko.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_lt.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_lv.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_nb.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_nl.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_pl.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_pt-BR.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_pt-PT.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ro.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ru.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sk.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sl.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sr.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sv.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_th.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_tr.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_uk.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_vi.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_zh-CN.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_zh-HK.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_zh-TW.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ar.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bg.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ca.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_cs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_da.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_de.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_el.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_en.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_es.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_et.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_he.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hu.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_id.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_it.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ja.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ko.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lt.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nb.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-BR.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-PT.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ro.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ru.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_th.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_tr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_uk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_vi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-CN.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-HK.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-TW.json +1 -1
- package/chunks/Bufferer-93RDFIRm.js +5 -0
- package/chunks/Centroid-DZi-eb9F.js +1 -1
- package/chunks/ComponentShader.glsl.js +10 -13
- package/chunks/Distance2DCalculator-De7WFGFq.js +5 -0
- package/chunks/GeodeticDistanceCalculator-CN7xMqrJ.js +5 -0
- package/chunks/LineSeries.js +1 -1
- package/chunks/{OITCompositing.glsl.js → OITBlend.glsl.js} +1 -1
- package/chunks/OperatorGeneralize.js +1 -1
- package/chunks/OperatorGeodesicBuffer.js +1 -1
- package/chunks/OperatorGeodeticArea.js +1 -1
- package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
- package/chunks/OperatorGeodeticDistance.js +1 -1
- package/chunks/OperatorGeodeticLength.js +1 -1
- package/chunks/OperatorProximity.js +1 -1
- package/chunks/OperatorShapePreservingLength.js +5 -0
- package/chunks/Polyline.js +1 -1
- package/chunks/Theme.js +1 -1
- package/chunks/Tick.js +1 -1
- package/chunks/tslib.es6.js +1 -1
- package/core/mathUtils.js +1 -1
- package/core/sql/AggregateFunctions.js +1 -1
- package/core/sql/SqlInterval.js +1 -1
- package/core/sql/StandardizedFunctions.js +1 -1
- package/core/sql/WhereClause.js +1 -1
- package/core/sql/WhereGrammar.js +1 -1
- package/core/sql/errorSupport.js +5 -0
- package/core/sql/sqlArithmeticUtils.js +1 -1
- package/core/sql/sqlCompareUtils.js +1 -1
- package/core/sql/sqlDateParsingUtils.js +1 -1
- package/geometry/operators/areaOperator.js +5 -0
- package/geometry/operators/containsOperator.js +1 -1
- package/geometry/operators/crossesOperator.js +1 -1
- package/geometry/operators/disjointOperator.js +1 -1
- package/geometry/operators/distanceOperator.js +1 -1
- package/geometry/operators/equalsOperator.js +1 -1
- package/geometry/operators/geodeticDensifyOperator.js +5 -0
- package/geometry/operators/graphicBufferOperator.js +5 -0
- package/geometry/operators/gx/operatorAutoComplete.js +1 -1
- package/geometry/operators/gx/operatorBuffer.js +1 -1
- package/geometry/operators/gx/operatorClip.js +1 -1
- package/geometry/operators/gx/operatorConvexHull.js +1 -1
- package/geometry/operators/gx/operatorCut.js +1 -1
- package/geometry/operators/gx/operatorDifference.js +1 -1
- package/geometry/operators/gx/operatorGeodesicBuffer.js +1 -1
- package/geometry/operators/gx/operatorGeodeticArea.js +1 -1
- package/geometry/operators/gx/{operatorGeodeticDensifyByLength.js → operatorGeodeticDensify.js} +1 -1
- package/geometry/operators/gx/operatorGeodeticDistance.js +1 -1
- package/geometry/operators/gx/operatorGeodeticLength.js +1 -1
- package/geometry/operators/gx/operatorGraphicBuffer.js +5 -0
- package/geometry/operators/gx/operatorIntegrate.js +1 -1
- package/geometry/operators/gx/operatorIntersection.js +1 -1
- package/geometry/operators/gx/operatorLabelPoint.js +1 -1
- package/geometry/operators/gx/operatorOffset.js +1 -1
- package/geometry/operators/gx/operatorSimplify.js +1 -1
- package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
- package/geometry/operators/gx/operatorUnion.js +1 -1
- package/geometry/operators/intersectsOperator.js +1 -1
- package/geometry/operators/isNearOperator.js +1 -1
- package/geometry/operators/lengthOperator.js +5 -0
- package/geometry/operators/overlapsOperator.js +1 -1
- package/geometry/operators/proximityOperator.d.ts +4 -0
- package/geometry/operators/proximityOperator.js +1 -1
- package/geometry/operators/relateOperator.js +1 -1
- package/geometry/operators/reshapeOperator.js +1 -1
- package/geometry/operators/touchesOperator.js +1 -1
- package/geometry/operators/withinOperator.js +1 -1
- package/interfaces.d.ts +310 -28
- package/layers/mixins/ArcGISMapService.js +1 -1
- package/layers/support/ControlPointsGeoreference.js +1 -1
- package/layers/support/MediaElementBase.js +1 -1
- package/layers/support/mediaUtils.js +1 -1
- package/linkChart/LinkChartProperties.js +1 -1
- package/linkChart/utils.js +1 -1
- package/package.json +2 -2
- package/portal/schemas/definitions.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
- package/views/2d/layers/GraphicsLayerView2D.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/2d/support/highlightGroupUtils.js +1 -1
- package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
- package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
- package/views/3d/interactive/editingTools/transform/ExtentTransformTool.js +1 -1
- package/views/3d/interactive/editingTools/transform/ScaleRotateTransform.js +1 -1
- package/views/3d/interactive/editingTools/transform/TransformTool3D.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
- package/views/3d/webgl-engine/effects/transparency/OITBlend.glsl.js +5 -0
- package/views/3d/webgl-engine/effects/transparency/OITBlend.js +5 -0
- package/views/3d/webgl-engine/effects/transparency/OITBlendTechnique.js +5 -0
- package/views/3d/webgl-engine/lib/CompositingHelper.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/LinkChartView.js +1 -1
- package/views/MapView.js +1 -1
- package/views/View.js +1 -1
- package/views/View2D.js +1 -1
- package/views/draw/DrawGraphicTool.js +1 -1
- package/views/draw/support/Box.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/interactive/Tooltip.d.ts +4 -0
- package/views/interactive/Tooltip.js +5 -0
- package/views/interactive/tooltip/tooltipCommonUtils.js +1 -1
- package/webdoc/widgets/TimeSlider.js +1 -1
- package/webmap/InitialViewProperties.js +1 -1
- package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
- package/widgets/BasemapGallery.js +1 -1
- package/widgets/BasemapLayerList/css.js +1 -1
- package/widgets/BasemapLayerList.js +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/templates/BatchAttributeFormElementTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/BatchAttributeFormTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/BatchFieldElementTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/batchAttributeFormTemplateUtils.js +1 -1
- package/widgets/CatalogLayerList.js +1 -1
- package/widgets/Feature/FeatureMedia/pieChart.js +1 -1
- package/widgets/Feature/FeatureMedia/xyChart.js +1 -1
- package/widgets/FeatureForm/FieldInput.js +1 -1
- package/widgets/LayerList/LayerListItem.js +1 -1
- package/widgets/LayerList/LayerListViewModel.js +1 -1
- package/widgets/LayerList.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/OrientedImageryViewerViewModelAdapter2D.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/OrientedImageryViewerViewModelAdapter3D.js +1 -1
- package/widgets/OrientedImageryViewer/constants.js +1 -1
- package/widgets/OrientedImageryViewer/css.js +1 -1
- package/widgets/OrientedImageryViewer/utils.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/ScaleBar/ScaleBarViewModel.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Sketch.js +1 -1
- package/widgets/support/SnappingControls.js +1 -1
- package/assets/esri/core/workers/chunks/0cfa9665dab31e5235a8.js +0 -1
- package/assets/esri/core/workers/chunks/22fb5687932019304225.js +0 -1
- package/assets/esri/core/workers/chunks/3b3c8362359a82c66793.js +0 -1
- package/assets/esri/core/workers/chunks/3cb1de0b9bf9a25112e0.js +0 -1
- package/assets/esri/core/workers/chunks/59833b27d8413b6d9312.js +0 -1
- package/assets/esri/core/workers/chunks/5e43cb91bbe20f2d32e3.js +0 -1
- package/assets/esri/core/workers/chunks/67df47efb9a9dfeafee2.js +0 -1
- package/assets/esri/core/workers/chunks/6be62448e33baabe028c.js +0 -1
- package/assets/esri/core/workers/chunks/6d668f7696f280ec9588.js +0 -1
- package/assets/esri/core/workers/chunks/74edde71352e1f578a3b.js +0 -1
- package/assets/esri/core/workers/chunks/907e74abb4a85a76e3b5.js +0 -1
- package/assets/esri/core/workers/chunks/941fe04f47059074c05b.js +0 -2
- package/assets/esri/core/workers/chunks/a0005bc65f79e83f26ee.js +0 -1
- package/assets/esri/core/workers/chunks/a6560ff77be29344bc50.js +0 -1
- package/assets/esri/core/workers/chunks/a6c3c1827d2e8bbfcd9e.js +0 -1
- package/assets/esri/core/workers/chunks/ba561e03df67894e437f.js +0 -2
- package/assets/esri/core/workers/chunks/df9daac7ea581e9e5ca4.js +0 -1
- package/assets/esri/core/workers/chunks/ea51a7c32f716f4f1a34.js +0 -1
- package/assets/esri/core/workers/chunks/ef7dcb8758e7f21d30bc.js +0 -1
- package/chunks/Distance2DCalculator-BzAEa8Xe.js +0 -5
- package/chunks/GeodeticDistanceCalculator-BS_KY66f.js +0 -5
- package/chunks/OperatorShapePreservingDensify.js +0 -5
- package/geometry/operators/geodeticDensifyByLengthOperator.js +0 -5
- package/geometry/operators/gx/operatorShapePreservingDensify.js +0 -5
- package/geometry/operators/shapePreservingDensifyOperator.js +0 -5
- package/views/3d/webgl-engine/shaders/OITCompositing.glsl.js +0 -5
- package/views/3d/webgl-engine/shaders/OITCompositingTechnique.js +0 -5
- package/views/interactive/tooltip/Tooltip.js +0 -5
- /package/assets/esri/core/workers/chunks/{941fe04f47059074c05b.js.LICENSE.txt → bb5a18dd1e6a71905668.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6064],{97937:(t,e,n)=>{n.d(e,{c:()=>g,d:()=>A,f:()=>R,g:()=>N,h:()=>E,k:()=>v,o:()=>x,s:()=>j,w:()=>p}),n(44208),n(53966);var o=n(34727),r=n(58083),i=n(38954),s=n(51850),c=n(87317),a=n(91829),u=n(34304),l=n(88582),h=n(71351);function d(t,e){const n=(0,i.m)(t),r=(0,o.YN)(t[2]/n),s=Math.atan2(t[1]/n,t[0]/n);return(0,i.a)(e,n,r,s),e}var f=n(44280),T=n(32114);const _=g();function g(){return(0,a.vt)()}const m=c.e,O=c.e;function A(t,e){return(0,c.c)(e,t)}function p(t){return t}function E(t){return t[3]}function N(t){return t}function R(t,e,n,o){return(0,a.fA)(t,e,n,o)}function I(t,e,n){if(null==e)return!1;if(!M(t,e,S))return!1;let{t0:o,t1:r}=S;if((o<0||r<o&&r>0)&&(o=r),o<0)return!1;if(n){const{origin:t,direction:r}=e;n[0]=t[0]+r[0]*o,n[1]=t[1]+r[1]*o,n[2]=t[2]+r[2]*o}return!0}const S={t0:0,t1:0};function M(t,e,n){const{origin:o,direction:r}=e,i=b;i[0]=o[0]-t[0],i[1]=o[1]-t[1],i[2]=o[2]-t[2];const s=r[0]*r[0]+r[1]*r[1]+r[2]*r[2];if(0===s)return!1;const c=2*(r[0]*i[0]+r[1]*i[1]+r[2]*i[2]),a=c*c-4*s*(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]-t[3]*t[3]);if(a<0)return!1;const u=Math.sqrt(a);return n.t0=(-c-u)/(2*s),n.t1=(-c+u)/(2*s),!0}const b=(0,s.vt)();function v(t,e){return I(t,e,null)}function F(t,e,n){const o=T.rq.get(),s=T.Rc.get();(0,i.b)(o,e.origin,e.direction);const c=E(t);(0,i.b)(n,o,e.origin),(0,i.j)(n,n,1/(0,i.m)(n)*c);const a=L(t,e.origin),u=(0,f.g7)(e.origin,n);return(0,r.$0)(s,u+a,o),(0,i.h)(n,n,s),n}function P(t,e,n){const o=(0,i.f)(T.rq.get(),e,t),r=(0,i.j)(T.rq.get(),o,t[3]/(0,i.m)(o));return(0,i.g)(n,r,t)}function L(t,e){const n=(0,i.f)(T.rq.get(),e,t),r=(0,i.m)(n),s=E(t),c=s+Math.abs(s-r);return(0,o.XM)(s/c)}const C=(0,s.vt)();function B(t,e,n,o){const r=(0,i.f)(C,e,t);switch(n){case l._.X:{const t=d(r,C)[2];return(0,i.a)(o,-Math.sin(t),Math.cos(t),0)}case l._.Y:{const t=d(r,C),e=t[1],n=t[2],s=Math.sin(e);return(0,i.a)(o,-s*Math.cos(n),-s*Math.sin(n),Math.cos(e))}case l._.Z:return(0,i.n)(o,r);default:return}}function w(t,e){const n=(0,i.f)(y,e,t);return(0,i.m)(n)-t[3]}function x(t,e){const n=(0,i.s)(t,e),o=E(t);return n<=o*o}const y=(0,s.vt)(),D=g(),j=Object.freeze(Object.defineProperty({__proto__:null,NullSphere:_,altitudeAt:w,angleToSilhouette:L,axisAt:B,cameraFrustumCoverage:function(t,e,n,o){const r=E(t),i=r*r,s=e+.5*Math.PI,c=n*n+i-2*Math.cos(s)*n*r,a=Math.sqrt(c),u=c-i;if(u<=0)return.5;const l=Math.sqrt(u),h=Math.acos(l/a)-Math.asin(r/(a/Math.sin(s)));return Math.min(1,(h+.5*o)/o)},clear:function(t){t[0]=t[1]=t[2]=t[3]=0},closestPoint:function(t,e,n){return I(t,e,n)?n:((0,h.oC)(e,t,n),P(t,n,n))},closestPointOnSilhouette:F,containsPoint:x,copy:A,create:g,distanceToSilhouette:function(t,e){const n=(0,i.f)(T.rq.get(),e,t),o=(0,i.q)(n),r=t[3]*t[3];return Math.sqrt(Math.abs(o-r))},elevate:function(t,e,n){return t!==n&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),n[3]=t[3]+e,n},equals:O,exactEquals:m,fromCenterAndRadius:function(t,e){return(0,a.fA)(t[0],t[1],t[2],e)},fromRadius:function(t,e){return t[0]=t[1]=t[2]=0,t[3]=e,t},fromValues:R,getCenter:N,getExtent:function(t,e){return e},getRadius:E,intersectLine:function(t,e,n){const o=(0,h.Cr)(e,n);if(!M(t,o,S))return[];const{origin:r,direction:c}=o,{t0:a,t1:l}=S,d=e=>{const n=(0,s.vt)();return(0,i.r)(n,r,c,e),P(t,n,n)};return Math.abs(a-l)<(0,u.FD)()?[d(a)]:[d(a),d(l)]},intersectRay:I,intersectRayClosestSilhouette:function(t,e,n){if(I(t,e,n))return n;const o=F(t,e,T.rq.get());return(0,i.g)(n,e.origin,(0,i.j)(T.rq.get(),e.direction,(0,i.p)(e.origin,o)/(0,i.m)(e.direction))),n},intersectsRay:v,projectPoint:P,setAltitudeAt:function(t,e,n,o){const r=w(t,e),s=B(t,e,l._.Z,y),c=(0,i.j)(y,s,n-r);return(0,i.g)(o,e,c)},setExtent:function(t,e,n){return t!==n&&A(t,n),n},tmpSphere:D,union:function(t,e,n=(0,a.vt)()){const o=(0,i.p)(t,e),r=t[3],s=e[3];return o+s<r?((0,c.c)(n,t),n):o+r<s?((0,c.c)(n,e),n):((0,i.o)(n,t,e,(o+s-r)/(2*o)),n[3]=(o+r+s)/2,n)},wrap:p},Symbol.toStringTag,{value:"Module"}))},4341:(t,e,n)=>{n.d(e,{I:()=>r});var o=n(26390);class r{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,o.d)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*i);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,i));t++)this._items.push(this._allocator())}}const i=1024},91829:(t,e,n)=>{function o(){return[0,0,0,0]}function r(t,e,n,o){return[t,e,n,o]}function i(t,e,n,o){return[t,e,n,o]}function s(t,e=[0,0,0,0]){const n=Math.min(4,t.length);for(let o=0;o<n;++o)e[o]=t[o];return e}function c(){return r(1,1,1,1)}function a(){return r(1,0,0,0)}function u(){return r(0,1,0,0)}function l(){return r(0,0,1,0)}function h(){return r(0,0,0,1)}n.d(e,{CN:()=>i,Un:()=>f,ci:()=>s,fA:()=>r,uY:()=>d,vt:()=>o});const d=[0,0,0,0],f=c(),T=a(),_=u(),g=l(),m=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:m,UNIT_X:T,UNIT_Y:_,UNIT_Z:g,ZEROS:d,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:o,createView:function(t,e){return new Float64Array(t,e,4)},freeze:i,fromArray:s,fromValues:r,ones:c,unitW:h,unitX:a,unitY:u,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},34727:(t,e,n)=>{n.d(e,{$8:()=>A,Cc:()=>s,Io:()=>O,KJ:()=>u,Sp:()=>d,XM:()=>l,YN:()=>h,cU:()=>r,hs:()=>c,kU:()=>a,or:()=>E,pq:()=>N,qE:()=>i});const o=new Float32Array(1);function r(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function i(t,e,n){return Math.min(Math.max(t,e),n)}function s(t,e,n){return t+(e-t)*n}function c(t,e,n,o,r){return s(o,r,(t-e)/(n-e))}function a(t){return t*Math.PI/180}function u(t){return 180*t/Math.PI}function l(t){return Math.acos(i(t,-1,1))}function h(t){return Math.asin(i(t,-1,1))}function d(t,e,n=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=n}const f=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function T(t){return f.setFloat64(0,t),f.getBigInt64(0)}const _=BigInt("1000000"),g=m(1);function m(t){const e=T(t=Math.abs(t)),n=function(t){return f.setBigInt64(0,t),f.getFloat64(0)}(e<=_?_:e-_);return Math.abs(t-n)}function O(t,e,n=g){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=n&&m(Math.min(Math.abs(t),Math.abs(e)))<n)return Math.abs(t-e)<=n;const o=T(t),r=T(e);return o<0==r<0&&!((o<r?r-o:o-r)>_)}function A(t){return p(Math.max(-N,Math.min(t,N)))}function p(t){return o[0]=t,o[0]}function E(t){const e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],o=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(d(e,1)&&d(n,1)&&d(o,1))}const N=p(34028234663852886e22)},88582:(t,e,n)=>{var o;n.d(e,{_:()=>o}),function(t){t[t.X=0]="X",t[t.Y=1]="Y",t[t.Z=2]="Z"}(o||(o={}))},82919:(t,e,n)=>{n.d(e,{C:()=>m,vt:()=>g,ui:()=>O,m7:()=>A});var o=n(4341),r=n(58083),i=n(38954),s=n(51850),c=n(87317),a=n(91829),u=n(71351);function l(t){return t?{ray:(0,u.vt)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,u.vt)(),c0:0,c1:Number.MAX_VALUE}}new o.I((()=>l()));var h,d,f,T=n(27921),_=n(32114);function g(t){return t?[(0,T.vt)(t[0]),(0,T.vt)(t[1]),(0,T.vt)(t[2]),(0,T.vt)(t[3]),(0,T.vt)(t[4]),(0,T.vt)(t[5])]:[(0,T.vt)(),(0,T.vt)(),(0,T.vt)(),(0,T.vt)(),(0,T.vt)(),(0,T.vt)()]}function m(t,e){for(let n=0;n<p;n++)(0,T.C)(t[n],e[n]);return t}function O(t,e,n,o=R){const s=(0,r.lw)(_.Rc.get(),e,t);(0,r.B8)(s,s);for(let t=0;t<E;++t){const e=(0,c.t)(_.Km.get(),N[t],s);(0,i.a)(o[t],e[0]/e[3],e[1]/e[3],e[2]/e[3])}!function(t,e){(0,T.Cr)(e[d.FAR_BOTTOM_LEFT],e[d.NEAR_BOTTOM_LEFT],e[d.NEAR_TOP_LEFT],t[h.LEFT]),(0,T.Cr)(e[d.NEAR_BOTTOM_RIGHT],e[d.FAR_BOTTOM_RIGHT],e[d.FAR_TOP_RIGHT],t[h.RIGHT]),(0,T.Cr)(e[d.FAR_BOTTOM_LEFT],e[d.FAR_BOTTOM_RIGHT],e[d.NEAR_BOTTOM_RIGHT],t[h.BOTTOM]),(0,T.Cr)(e[d.NEAR_TOP_LEFT],e[d.NEAR_TOP_RIGHT],e[d.FAR_TOP_RIGHT],t[h.TOP]),(0,T.Cr)(e[d.NEAR_BOTTOM_LEFT],e[d.NEAR_BOTTOM_RIGHT],e[d.NEAR_TOP_RIGHT],t[h.NEAR]),(0,T.Cr)(e[d.FAR_BOTTOM_RIGHT],e[d.FAR_BOTTOM_LEFT],e[d.FAR_TOP_LEFT],t[h.FAR])}(n,o)}function A(t,e){for(let n=0;n<p;n++){const o=t[n];if(o[0]*e[0]+o[1]*e[1]+o[2]*e[2]+o[3]>=e[3])return!1}return!0}(f=h||(h={}))[f.LEFT=0]="LEFT",f[f.RIGHT=1]="RIGHT",f[f.BOTTOM=2]="BOTTOM",f[f.TOP=3]="TOP",f[f.NEAR=4]="NEAR",f[f.FAR=5]="FAR",function(t){t[t.NEAR_BOTTOM_LEFT=0]="NEAR_BOTTOM_LEFT",t[t.NEAR_BOTTOM_RIGHT=1]="NEAR_BOTTOM_RIGHT",t[t.NEAR_TOP_RIGHT=2]="NEAR_TOP_RIGHT",t[t.NEAR_TOP_LEFT=3]="NEAR_TOP_LEFT",t[t.FAR_BOTTOM_LEFT=4]="FAR_BOTTOM_LEFT",t[t.FAR_BOTTOM_RIGHT=5]="FAR_BOTTOM_RIGHT",t[t.FAR_TOP_RIGHT=6]="FAR_TOP_RIGHT",t[t.FAR_TOP_LEFT=7]="FAR_TOP_LEFT"}(d||(d={})),d.FAR_BOTTOM_RIGHT,d.NEAR_BOTTOM_RIGHT,d.NEAR_BOTTOM_LEFT,d.FAR_BOTTOM_LEFT,d.NEAR_BOTTOM_LEFT,d.NEAR_BOTTOM_RIGHT,d.NEAR_TOP_RIGHT,d.NEAR_TOP_LEFT,d.FAR_BOTTOM_RIGHT,d.FAR_BOTTOM_LEFT,d.FAR_TOP_LEFT,d.FAR_TOP_RIGHT,d.NEAR_BOTTOM_RIGHT,d.FAR_BOTTOM_RIGHT,d.FAR_TOP_RIGHT,d.NEAR_TOP_RIGHT,d.FAR_BOTTOM_LEFT,d.NEAR_BOTTOM_LEFT,d.NEAR_TOP_LEFT,d.FAR_TOP_LEFT,d.FAR_TOP_LEFT,d.NEAR_TOP_LEFT,d.NEAR_TOP_RIGHT,d.FAR_TOP_RIGHT;const p=6,E=8,N=[(0,a.fA)(-1,-1,-1,1),(0,a.fA)(1,-1,-1,1),(0,a.fA)(1,1,-1,1),(0,a.fA)(-1,1,-1,1),(0,a.fA)(-1,-1,1,1),(0,a.fA)(1,-1,1,1),(0,a.fA)(1,1,1,1),(0,a.fA)(-1,1,1,1)],R=(new o.I(l),[(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)()])},11964:(t,e,n)=>{n.d(e,{Cr:()=>u,H6:()=>d,_I:()=>h,kb:()=>l,vt:()=>a});var o=n(34727),r=n(4341),i=n(38954),s=n(51850),c=n(32114);function a(t){return t?{origin:(0,s.o8)(t.origin),vector:(0,s.o8)(t.vector)}:{origin:(0,s.vt)(),vector:(0,s.vt)()}}function u(t,e,n=a()){return(0,i.c)(n.origin,t),(0,i.f)(n.vector,e,t),n}function l(t,e){const n=(0,i.f)(c.rq.get(),e,t.origin),r=(0,i.l)(t.vector,n),s=(0,i.l)(t.vector,t.vector),a=(0,o.qE)(r/s,0,1),u=(0,i.f)(c.rq.get(),(0,i.j)(c.rq.get(),t.vector,a),n);return(0,i.l)(u,u)}function h(t,e,n){return d(t,e,0,1,n)}function d(t,e,n,r,s){const{vector:a,origin:u}=t,l=(0,i.f)(c.rq.get(),e,u),h=(0,i.l)(a,l)/(0,i.q)(a);return(0,i.j)(s,a,(0,o.qE)(h,n,r)),(0,i.g)(s,s,t.origin)}(0,s.vt)(),(0,s.vt)(),new r.I((()=>a()))},9318:(t,e,n)=>{n.d(e,{b:()=>i});var o=n(34727),r=n(97146);function i(t,e,n){const i=Array.isArray(t),l=i?t.length/e:t.byteLength/(4*e),h=i?t:new Uint32Array(t,0,l*e),d=n?.minReduction??0,f=n?.originalIndices||null,T=f?f.length:0,_=n?.componentOffsets||null;let g=0;if(_)for(let t=0;t<_.length-1;t++){const e=_[t+1]-_[t];e>g&&(g=e)}else g=l;const m=Math.floor(1.1*g)+1;(null==u||u.length<2*m)&&(u=new Uint32Array((0,o.cU)(2*m)));for(let t=0;t<2*m;t++)u[t]=0;let O=0;const A=!!_&&!!f,p=A?T:l;let E=(0,r.my)(l);const N=new Uint32Array(T),R=1.96;let I=0!==d?Math.ceil(4*R*R/(d*d)*d*(1-d)):p,S=1,M=_?_[1]:p;for(let t=0;t<p;t++){if(t===I){const e=1-O/t;if(e+R*Math.sqrt(e*(1-e)/t)<d)return null;I*=2}if(t===M){for(let t=0;t<2*m;t++)u[t]=0;if(f)for(let t=_[S-1];t<_[S];t++)N[t]=E[f[t]];M=_[++S]}const n=A?f[t]:t,o=n*e,r=a(h,o,e);let i=r%m,c=O;for(;0!==u[2*i+1];){if(u[2*i]===r){const t=u[2*i+1]-1;if(s(h,o,t*e,e)){c=E[t];break}}i++,i>=m&&(i-=m)}c===O&&(u[2*i]=r,u[2*i+1]=n+1,O++),E[n]=c}if(0!==d&&1-O/l<d)return null;if(A){for(let t=_[S-1];t<N.length;t++)N[t]=E[f[t]];E=(0,r.Dg)(N)}const b=i?new Array(O):new Uint32Array(O*e);O=0;for(let t=0;t<p;t++)E[t]===O&&(c(h,(A?f[t]:t)*e,b,O*e,e),O++);if(f&&!A){const t=new Uint32Array(T);for(let e=0;e<t.length;e++)t[e]=E[f[e]];E=(0,r.Dg)(t)}return{buffer:Array.isArray(b)?b:b.buffer,indices:E,uniqueCount:O}}function s(t,e,n,o){for(let r=0;r<o;r++)if(t[e+r]!==t[n+r])return!1;return!0}function c(t,e,n,o,r){for(let i=0;i<r;i++)n[o+i]=t[e+i]}function a(t,e,n){let o=0;for(let r=0;r<n;r++)o=t[e+r]+o|0,o=o+(o<<11)+(o>>>2)|0;return o>>>0}let u=null},71351:(t,e,n)=>{n.d(e,{C:()=>h,Cr:()=>d,LV:()=>l,kb:()=>f,oC:()=>T,vt:()=>a}),n(4576);var o=n(4341),r=(n(77690),n(29242)),i=n(38954),s=n(51850),c=n(32114);function a(t){return t?u((0,s.o8)(t.origin),(0,s.o8)(t.direction)):u((0,s.vt)(),(0,s.vt)())}function u(t,e){return{origin:t,direction:e}}function l(t,e){const n=_.get();return n.origin=t,n.direction=e,n}function h(t,e=a()){return function(t,e,n=a()){return(0,i.c)(n.origin,t),(0,i.c)(n.direction,e),n}(t.origin,t.direction,e)}function d(t,e,n=a()){return(0,i.c)(n.origin,t),(0,i.f)(n.direction,e,t),n}function f(t,e){const n=(0,i.b)(c.rq.get(),(0,i.n)(c.rq.get(),t.direction),(0,i.f)(c.rq.get(),e,t.origin));return(0,i.l)(n,n)}function T(t,e,n){const o=(0,i.l)(t.direction,(0,i.f)(n,e,t.origin));return(0,i.g)(n,t.origin,(0,i.j)(n,t.direction,o)),n}const _=new o.I((()=>a()));(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,r.vt)()},4431:(t,e,n)=>{n.d(e,{U:()=>i});var o=n(63907),r=n(74038);function i(t,e=0){const n=t.stride;return Array.from(t.fields.keys()).map((o=>{const i=t.fields.get(o),c=i.constructor.ElementCount,a=s(i.constructor.ElementType),u=i.offset,l=i.optional?.glNormalized??!1;return new r._(o,c,a,u,n,l,e)}))}function s(t){const e=c[t];if(e)return e;throw new Error("BufferType not supported in WebGL")}const c={u8:o.pe.UNSIGNED_BYTE,u16:o.pe.UNSIGNED_SHORT,u32:o.pe.UNSIGNED_INT,i8:o.pe.BYTE,i16:o.pe.SHORT,i32:o.pe.INT,f32:o.pe.FLOAT}},78230:(t,e,n)=>{n.d(e,{A:()=>G});var o,r,i=n(93687),s=n(3694),c=n(38954),a=n(51850),u=n(82919),l=n(71351),h=n(97937),d=n(620);class f{get bounds(){return this._root.bounds}get halfSize(){return this._root.halfSize}get root(){return this._root.node}get maximumObjectsPerNode(){return this._maximumObjectsPerNode}get maximumDepth(){return this._maximumDepth}get objectCount(){return this._objectCount}constructor(t,e){this.objectToBoundingSphere=t,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new T,this._objectCount=0,e&&(void 0!==e.maximumObjectsPerNode&&(this._maximumObjectsPerNode=e.maximumObjectsPerNode),void 0!==e.maximumDepth&&(this._maximumDepth=e.maximumDepth))}destroy(){this._degenerateObjects.clear(),T.clearPool(),P[0]=null,x.prune(),H.prune()}add(t,e=t.length){this._objectCount+=e,this._grow(t,e);const n=T.acquire();for(let o=0;o<e;o++){const e=t[o];this._isDegenerate(e)?this._degenerateObjects.add(e):(n.init(this._root),this._add(e,n))}T.release(n)}remove(t,e=null){this._objectCount-=t.length;const n=T.acquire();for(const o of t){const t=e??(0,h.d)(this.objectToBoundingSphere(o),y);M(t[3])?(n.init(this._root),m(o,t,n)):this._degenerateObjects.delete(o)}T.release(n),this._shrink()}update(t,e){if(!M(e[3])&&this._isDegenerate(t))return;const n=function(t){return P[0]=t,P}(t);this.remove(n,e),this.add(n)}forEachAlongRay(t,e,n){const o=(0,l.LV)(t,e);_(this._root,(t=>{if(!function(t,e){return N((0,h.g)(e.bounds),2*-e.halfSize,B),N((0,h.g)(e.bounds),2*e.halfSize,w),(0,d.O_)(t.origin,t.direction,B,w)}(o,t))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObject(o,t)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObject(o,t)&&n(t)})),!0}))}forEachAlongRayWithVerticalOffset(t,e,n,o){const r=(0,l.LV)(t,e);_(this._root,(t=>{if(!function(t,e,n){return N((0,h.g)(e.bounds),2*-e.halfSize,B),N((0,h.g)(e.bounds),2*e.halfSize,w),n.applyToMinMax(B,w),(0,d.O_)(t.origin,t.direction,B,w)}(r,t,o))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObjectWithOffset(r,t,o)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObjectWithOffset(r,t,o)&&n(t)})),!0}))}forEach(t){_(this._root,(e=>{const n=e.node;return n.terminals.forAll(t),null!==n.residents&&n.residents.forAll(t),!0})),this._degenerateObjects.forEach(t)}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}findClosest(t,e,n,o=()=>!0,r=1/0){let i=1/0,s=1/0,a=null;const l=I(t,e),d=c=>{if(--r,!o(c))return;const l=this.objectToBoundingSphere(c);if(!(0,u.m7)(n,l))return;const d=S(t,e,(0,h.g)(l)),f=d-l[3],T=d+l[3];f<i&&(i=f,s=T,a=c)};return g(this._root,(o=>{if(r<=0||!(0,u.m7)(n,o.bounds))return!1;if((0,c.j)(C,l,o.halfSize),(0,c.g)(C,C,(0,h.g)(o.bounds)),S(t,e,C)>s)return!1;const i=o.node;return i.terminals.forAll((t=>d(t))),null!==i.residents&&i.residents.forAll((t=>d(t))),!0}),t,e),a}forEachInDepthRange(t,e,n,o,r,i,s){let a=-1/0,l=1/0;const d={setRange:t=>{n===f.DepthOrder.FRONT_TO_BACK?(a=Math.max(a,t.near),l=Math.min(l,t.far)):(a=Math.max(a,-t.far),l=Math.min(l,-t.near))}};d.setRange(o);const T=S(e,n,t),_=I(e,n),m=I(e,-n),O=t=>{if(!s(t))return;const o=this.objectToBoundingSphere(t),c=(0,h.g)(o),f=S(e,n,c)-T,_=f-o[3],g=f+o[3];_>l||g<a||!(0,u.m7)(i,o)||r(t,d)};g(this._root,(t=>{if(!(0,u.m7)(i,t.bounds))return!1;if((0,c.j)(C,_,t.halfSize),(0,c.g)(C,C,(0,h.g)(t.bounds)),S(e,n,C)-T>l)return!1;if((0,c.j)(C,m,t.halfSize),(0,c.g)(C,C,(0,h.g)(t.bounds)),S(e,n,C)-T<a)return!1;const o=t.node;return o.terminals.forAll((t=>O(t))),null!==o.residents&&o.residents.forAll((t=>O(t))),!0}),e,n)}forEachNode(t){_(this._root,(e=>t(e.node,e.bounds,e.halfSize,e.depth)))}forEachNeighbor(t,e){const n=(0,h.h)(e),o=(0,h.g)(e),r=e=>{const r=this.objectToBoundingSphere(e),i=(0,h.h)(r),s=n+i;return!((0,c.s)((0,h.g)(r),o)-s*s<=0)||t(e)};let i=!0;const s=t=>{i&&(i=r(t))};_(this._root,(t=>{const e=(0,h.h)(t.bounds),r=n+e;if((0,c.s)((0,h.g)(t.bounds),o)-r*r>0)return!1;const a=t.node;return a.terminals.forAll(s),i&&null!==a.residents&&a.residents.forAll(s),i})),i&&this.forEachDegenerateObject(s)}_intersectsObject(t,e){const n=this.objectToBoundingSphere(e);return!(n[3]>0)||(0,h.k)(n,t)}_intersectsObjectWithOffset(t,e,n){const o=this.objectToBoundingSphere(e);return!(o[3]>0)||(0,h.k)(n.applyToBoundingSphere(o),t)}_add(t,e){e.advanceTo(this.objectToBoundingSphere(t))?e.node.terminals.push(t):(e.node.residents.push(t),e.node.residents.length>this._maximumObjectsPerNode&&e.depth<this._maximumDepth&&this._split(e))}_split(t){const e=t.node.residents;t.node.residents=null;for(let n=0;n<e.length;n++){const o=T.acquire().init(t);this._add(e.at(n),o),T.release(o)}}_grow(t,e){if(0!==e&&(R(t,e,(t=>this.objectToBoundingSphere(t)),D),M(D[3])&&!this._fitsInsideTree(D)))if(A(this._root.node))(0,h.d)(D,this._root.bounds),this._root.halfSize=1.25*this._root.bounds[3],this._root.updateBoundsRadiusFromHalfSize();else{const t=this._rootBoundsForRootAsSubNode(D);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(D,t):this._growRootAsSubNode(t),T.release(t)}}_rebuildTree(t,e){(0,c.c)((0,h.g)(j),(0,h.g)(e.bounds)),j[3]=e.halfSize,R([t,j],2,(t=>t),U);const n=T.acquire().init(this._root);this._root.initFrom(null,U,U[3]),this._root.increaseHalfSize(1.25),_(n,(t=>(this.add(t.node.terminals.data,t.node.terminals.length),null!==t.node.residents&&this.add(t.node.residents.data,t.node.residents.length),!0))),T.release(n)}_placingRootViolatesMaxDepth(t){const e=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E;let n=0;return _(this._root,(t=>(n=Math.max(n,t.depth),n+e<=this._maximumDepth))),n+e>this._maximumDepth}_rootBoundsForRootAsSubNode(t){const e=t[3],n=t;let o=-1/0;const r=this._root.bounds,i=this._root.halfSize;for(let t=0;t<3;t++){const s=r[t]-i-(n[t]-e),c=n[t]+e-(r[t]+i),a=Math.max(0,Math.ceil(s/(2*i))),u=Math.max(0,Math.ceil(c/(2*i)))+1,l=2**Math.ceil(Math.log(a+u)*Math.LOG2E);o=Math.max(o,l),z[t].min=a,z[t].max=u}for(let t=0;t<3;t++){let e=z[t].min,n=z[t].max;const s=(o-(e+n))/2;e+=Math.ceil(s),n+=Math.floor(s);const c=r[t]-i-e*i*2;L[t]=c+(n+e)*i}const s=o*i;return L[3]=s*F,T.acquire().initFrom(null,L,s,0)}_growRootAsSubNode(t){const e=this._root.node;(0,c.c)((0,h.g)(D),(0,h.g)(this._root.bounds)),D[3]=this._root.halfSize,this._root.init(t),t.advanceTo(D,null,!0),t.node.children=e.children,t.node.residents=e.residents,t.node.terminals=e.terminals}_shrink(){for(;;){const t=this._findShrinkIndex();if(-1===t)break;this._root.advance(t),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let t=null;const e=this._root.node.children;let n=0,o=0;for(;o<e.length&&null==t;)n=o++,t=e[n];for(;o<e.length;)if(e[o++])return-1;return n}_isDegenerate(t){return!M(this.objectToBoundingSphere(t)[3])}_fitsInsideTree(t){const e=this._root.bounds,n=this._root.halfSize;return t[3]<=n&&t[0]>=e[0]-n&&t[0]<=e[0]+n&&t[1]>=e[1]-n&&t[1]<=e[1]+n&&t[2]>=e[2]-n&&t[2]<=e[2]+n}toJSON(){const{maximumDepth:t,maximumObjectsPerNode:e,_objectCount:n}=this,o=this._nodeToJSON(this._root.node);return{maximumDepth:t,maximumObjectsPerNode:e,objectCount:n,root:{bounds:this._root.bounds,halfSize:this._root.halfSize,depth:this._root.depth,node:o}}}_nodeToJSON(t){const e=t.children.map((t=>t?this._nodeToJSON(t):null)),n=t.residents?.map((t=>this.objectToBoundingSphere(t))),o=t.terminals?.map((t=>this.objectToBoundingSphere(t)));return{children:e,residents:n,terminals:o}}static fromJSON(t){const e=new f((t=>t),{maximumDepth:t.maximumDepth,maximumObjectsPerNode:t.maximumObjectsPerNode});return e._objectCount=t.objectCount,e._root.initFrom(t.root.node,t.root.bounds,t.root.halfSize,t.root.depth),e}}class T{constructor(){this.bounds=(0,h.c)(),this.halfSize=0,this.initFrom(null,null,0,0)}init(t){return this.initFrom(t.node,t.bounds,t.halfSize,t.depth)}initFrom(t,e,n,o=this.depth){return this.node=null!=t?t:T.createEmptyNode(),e&&(0,h.d)(e,this.bounds),this.halfSize=n,this.depth=o,this}increaseHalfSize(t){this.halfSize*=t,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds[3]=this.halfSize*F}advance(t){let e=this.node.children[t];e||(e=T.createEmptyNode(),this.node.children[t]=e),this.node=e,this.halfSize/=2,this.depth++;const n=b[t];return this.bounds[0]+=n[0]*this.halfSize,this.bounds[1]+=n[1]*this.halfSize,this.bounds[2]+=n[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(t,e,n=!1){for(;;){if(this.isTerminalFor(t))return e&&e(this,-1),!0;if(this.isLeaf()){if(!n)return e&&e(this,-1),!1;this.node.residents=null}const o=this._childIndex(t);e&&e(this,o),this.advance(o)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t[3]>this.halfSize/2}_childIndex(t){const e=this.bounds;return(e[0]<t[0]?1:0)+(e[1]<t[1]?2:0)+(e[2]<t[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new s.A({shrink:!0}),residents:new s.A({shrink:!0})}}static acquire(){return T._pool.acquire()}static release(t){T._pool.release(t)}static clearPool(){T._pool.prune()}}function _(t,e){let n=T.acquire().init(t);const o=[n];for(;0!==o.length;){if(n=o.pop(),e(n)&&!n.isLeaf())for(let t=0;t<n.node.children.length;t++)n.node.children[t]&&o.push(T.acquire().init(n).advance(t));T.release(n)}}function g(t,e,n,o=f.DepthOrder.FRONT_TO_BACK){let r=T.acquire().init(t);const i=[r];for(function(t,e,n){if(!H.length)for(let t=0;t<8;++t)H.push({index:0,distance:0});for(let n=0;n<8;++n){const o=b[n];H.data[n].index=n,H.data[n].distance=S(t,e,o)}H.sort(((t,e)=>t.distance-e.distance));for(let t=0;t<8;++t)n[t]=H.data[t].index}(n,o,V);0!==i.length;){if(r=i.pop(),e(r)&&!r.isLeaf())for(let t=7;t>=0;--t){const e=V[t];r.node.children[e]&&i.push(T.acquire().init(r).advance(e))}T.release(r)}}function m(t,e,n){x.clear();const o=n.advanceTo(e,((t,e)=>{x.push(t.node),x.push(e)}))?n.node.terminals:n.node.residents;if(o.removeUnordered(t),0===o.length)for(let t=x.length-2;t>=0&&O(x.data[t],x.data[t+1]);t-=2);}function O(t,e){return e>=0&&(t.children[e]=null),!!A(t)&&(null===t.residents&&(t.residents=new s.A({shrink:!0})),!0)}function A(t){if(0!==t.terminals.length)return!1;if(null!==t.residents)return 0===t.residents.length;for(let e=0;e<t.children.length;e++)if(t.children[e])return!1;return!0}function p(t,e){t[0]=Math.min(t[0],e[0]-e[3]),t[1]=Math.min(t[1],e[1]-e[3]),t[2]=Math.min(t[2],e[2]-e[3])}function E(t,e){t[0]=Math.max(t[0],e[0]+e[3]),t[1]=Math.max(t[1],e[1]+e[3]),t[2]=Math.max(t[2],e[2]+e[3])}function N(t,e,n){n[0]=t[0]+e,n[1]=t[1]+e,n[2]=t[2]+e}function R(t,e,n,o){if(1===e){const e=n(t[0]);(0,h.d)(e,o)}else{B[0]=1/0,B[1]=1/0,B[2]=1/0,w[0]=-1/0,w[1]=-1/0,w[2]=-1/0;for(let o=0;o<e;o++){const e=n(t[o]);M(e[3])&&(p(B,e),E(w,e))}(0,c.o)((0,h.g)(o),B,w,.5),o[3]=Math.max(w[0]-B[0],w[1]-B[1],w[2]-B[2])/2}}function I(t,e){let n,o=1/0;for(let r=0;r<8;++r){const i=S(t,e,v[r]);i<o&&(o=i,n=v[r])}return n}function S(t,e,n){return e*(t[0]*n[0]+t[1]*n[1]+t[2]*n[2])}function M(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}T._pool=new i.A(T),o=f||(f={}),(r=o.DepthOrder||(o.DepthOrder={}))[r.FRONT_TO_BACK=1]="FRONT_TO_BACK",r[r.BACK_TO_FRONT=-1]="BACK_TO_FRONT";const b=[(0,a.fA)(-1,-1,-1),(0,a.fA)(1,-1,-1),(0,a.fA)(-1,1,-1),(0,a.fA)(1,1,-1),(0,a.fA)(-1,-1,1),(0,a.fA)(1,-1,1),(0,a.fA)(-1,1,1),(0,a.fA)(1,1,1)],v=[(0,a.fA)(-1,-1,-1),(0,a.fA)(-1,-1,1),(0,a.fA)(-1,1,-1),(0,a.fA)(-1,1,1),(0,a.fA)(1,-1,-1),(0,a.fA)(1,-1,1),(0,a.fA)(1,1,-1),(0,a.fA)(1,1,1)],F=Math.sqrt(3),P=[null],L=(0,h.c)(),C=(0,a.vt)(),B=(0,a.vt)(),w=(0,a.vt)(),x=new s.A,y=(0,h.c)(),D=(0,h.c)(),j=(0,h.c)(),U=(0,h.c)(),z=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],H=new s.A,V=[0,0,0,0,0,0,0,0],G=f},46540:(t,e,n)=>{var o;n.d(e,{r:()=>o}),function(t){t.POSITION="position",t.NORMAL="normal",t.NORMALCOMPRESSED="normalCompressed",t.UV0="uv0",t.COLOR="color",t.SYMBOLCOLOR="symbolColor",t.SIZE="size",t.ROTATION="rotation",t.TANGENT="tangent",t.OFFSET="offset",t.PERSPECTIVEDIVIDE="perspectiveDivide",t.CENTEROFFSETANDDISTANCE="centerOffsetAndDistance",t.LENGTH="length",t.PREVPOSITION="prevPosition",t.NEXTPOSITION="nextPosition",t.SUBDIVISIONFACTOR="subdivisionFactor",t.COLORFEATUREATTRIBUTE="colorFeatureAttribute",t.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",t.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",t.DISTANCETOSTART="distanceToStart",t.UVMAPSPACE="uvMapSpace",t.BOUNDINGRECT="boundingRect",t.UVREGION="uvRegion",t.PROFILERIGHT="profileRight",t.PROFILEUP="profileUp",t.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",t.FEATUREVALUE="featureValue",t.INSTANCEMODELORIGINHI="instanceModelOriginHi",t.INSTANCEMODELORIGINLO="instanceModelOriginLo",t.INSTANCEMODEL="instanceModel",t.INSTANCEMODELNORMAL="instanceModelNormal",t.INSTANCECOLOR="instanceColor",t.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",t.LOCALTRANSFORM="localTransform",t.GLOBALTRANSFORM="globalTransform",t.BOUNDINGSPHERE="boundingSphere",t.MODELORIGIN="modelOrigin",t.MODELSCALEFACTORS="modelScaleFactors",t.FEATUREATTRIBUTE="featureAttribute",t.STATE="state",t.LODLEVEL="lodLevel",t.POSITION0="position0",t.POSITION1="position1",t.NORMAL2COMPRESSED="normal2Compressed",t.COMPONENTINDEX="componentIndex",t.VARIANTOFFSET="variantOffset",t.VARIANTSTROKE="variantStroke",t.VARIANTEXTENSION="variantExtension",t.SIDENESS="sideness",t.START="start",t.END="end",t.UP="up",t.START_UP="startUp",t.END_UP="endUp",t.EXTRUDE="extrude",t.OBJECTANDLAYERIDCOLOR="objectAndLayerIdColor",t.INSTANCEOBJECTANDLAYERIDCOLOR="instanceObjectAndLayerIdColor"}(o||(o={}))},3055:(t,e,n)=>{n.d(e,{I$:()=>s,In:()=>u,gr:()=>a});var o=n(4431),r=n(1843),i=n(46540);const s=(0,r.BP)().vec3f(i.r.POSITION).u16(i.r.COMPONENTINDEX).freeze(),c=(0,r.BP)().vec2u8(i.r.SIDENESS).freeze(),a=((0,o.U)(c),(0,r.BP)().vec3f(i.r.POSITION0).vec3f(i.r.POSITION1).vec2i16(i.r.NORMALCOMPRESSED).u16(i.r.COMPONENTINDEX).u8(i.r.VARIANTOFFSET,{glNormalized:!0}).u8(i.r.VARIANTSTROKE).u8(i.r.VARIANTEXTENSION,{glNormalized:!0}).freeze()),u=(0,r.BP)().vec3f(i.r.POSITION0).vec3f(i.r.POSITION1).vec2i16(i.r.NORMALCOMPRESSED).vec2i16(i.r.NORMAL2COMPRESSED).u16(i.r.COMPONENTINDEX).u8(i.r.VARIANTOFFSET,{glNormalized:!0}).u8(i.r.VARIANTSTROKE).u8(i.r.VARIANTEXTENSION,{glNormalized:!0}).freeze();new Map([[i.r.POSITION0,0],[i.r.POSITION1,1],[i.r.COMPONENTINDEX,2],[i.r.VARIANTOFFSET,3],[i.r.VARIANTSTROKE,4],[i.r.VARIANTEXTENSION,5],[i.r.NORMALCOMPRESSED,6],[i.r.NORMAL2COMPRESSED,7],[i.r.SIDENESS,8]])},93406:(t,e,n)=>{n.d(e,{K:()=>a});var o=n(34727),r=n(3694),i=n(38954),s=n(51850);const c=-1;function a(t,e,n){const o=t.vertices.position,r=t.vertices.componentIndex,s=_.position0,a=_.position1,h=_.faceNormal0,f=_.faceNormal1,{edges:T,normals:g}=l(t),m=T.length/4,O=e.allocate(m);let A=0;const p=m,R=n?.allocate(p);let S=0,M=0,b=0;d.length=0;for(let t=0;t<m;++t){const e=4*t;o.getVec(T.data[e],s),o.getVec(T.data[e+1],a);const n=d.pushNew();n.index=4*t,n.length=(0,i.p)(s,a)}d.sort(((t,e)=>e.length-t.length));const v=new Array,F=new Array;d.forAll((({length:t,index:l})=>{const d=T.data[l],m=T.data[l+1],p=T.data[l+2],P=T.data[l+3],L=P===c;if(o.getVec(d,s),o.getVec(m,a),L){const t=3*p;(0,i.a)(h,g.data[t],g.data[t+1],g.data[t+2]),(0,i.c)(f,h),_.componentIndex=r.get(d),_.cosAngle=(0,i.l)(h,f)}else{let t=3*p;if((0,i.a)(h,g.data[t],g.data[t+1],g.data[t+2]),t=3*P,(0,i.a)(f,g.data[t],g.data[t+1],g.data[t+2]),_.componentIndex=r.get(d),_.cosAngle=(0,i.l)(h,f),function(t,e){return t.cosAngle>e}(_,N))return;_.cosAngle<-.9999&&(0,i.c)(f,h)}M+=t,b++,L||function(t,e){return t.cosAngle<e}(_,I)?(e.write(O,A++,_),v.push(t)):u(_,E)&&(R&&n&&n.write(R,S++,_),F.push(t))}));const P=new Float32Array(v.reverse()),L=new Float32Array(F.reverse()),C=R&&n?{instancesData:R.slice(0,S),lodInfo:{lengths:L}}:void 0;return{regular:{instancesData:O.slice(0,A),lodInfo:{lengths:P}},silhouette:C,averageEdgeLength:M/b}}function u(t,e){const n=(0,o.XM)(t.cosAngle);return(0,i.E)(m,t.position1,t.position0),n*((0,i.l)((0,i.b)(g,t.faceNormal0,t.faceNormal1),m)>0?-1:1)>e}function l(t){const e=t.faces.length/3,n=t.faces,o=t.neighbors,r=t.vertices.position;f.length=T.length=0;for(let t=0;t<e;t++){const e=3*t,s=o[e],a=o[e+1],u=o[e+2],l=n[e],h=n[e+1],d=n[e+2];r.getVec(l,O),r.getVec(h,A),r.getVec(d,p),(0,i.f)(A,A,O),(0,i.f)(p,p,O),(0,i.b)(O,A,p),(0,i.n)(O,O),T.pushArray(O),(s===c||l<h)&&(f.push(l),f.push(h),f.push(t),f.push(s)),(a===c||h<d)&&(f.push(h),f.push(d),f.push(t),f.push(a)),(u===c||d<l)&&(f.push(d),f.push(l),f.push(t),f.push(u))}return{edges:f,normals:T}}class h{constructor(){this.index=0,this.length=0}}const d=new r.A({allocator:t=>t||new h,deallocator:null}),f=new r.A({deallocator:null}),T=new r.A({deallocator:null}),_=new class{constructor(){this.position0=(0,s.vt)(),this.position1=(0,s.vt)(),this.faceNormal0=(0,s.vt)(),this.faceNormal1=(0,s.vt)(),this.componentIndex=0,this.cosAngle=0}},g=(0,s.vt)(),m=(0,s.vt)(),O=(0,s.vt)(),A=(0,s.vt)(),p=(0,s.vt)(),E=(0,o.kU)(4),N=Math.cos(E),R=(0,o.kU)(35),I=Math.cos(R)},53099:(t,e,n)=>{n.d(e,{o6:()=>v,HY:()=>w,hx:()=>F,Jb:()=>B});var o=n(9318);function r(t,e,n){const o=e/3,r=new Uint32Array(n+1),i=new Uint32Array(n+1),s=(t,e)=>{t<e?r[t+1]++:i[e+1]++};for(let e=0;e<o;e++){const n=t[3*e],o=t[3*e+1],r=t[3*e+2];s(n,o),s(o,r),s(r,n)}let c=0,a=0;for(let t=0;t<n;t++){const e=r[t+1],n=i[t+1];r[t+1]=c,i[t+1]=a,c+=e,a+=n}const u=new Uint32Array(6*o),l=r[n],h=(t,e,n)=>{if(t<e){const o=r[t+1]++;u[2*o]=e,u[2*o+1]=n}else{const o=i[e+1]++;u[2*l+2*o]=t,u[2*l+2*o+1]=n}};for(let e=0;e<o;e++){const n=t[3*e],o=t[3*e+1],r=t[3*e+2];h(n,o,e),h(o,r,e),h(r,n,e)}const d=(t,e)=>{const n=2*t,o=e-t;for(let t=1;t<o;t++){const e=u[n+2*t],o=u[n+2*t+1];let r=t-1;for(;r>=0&&u[n+2*r]>e;r--)u[n+2*r+2]=u[n+2*r],u[n+2*r+3]=u[n+2*r+1];u[n+2*r+2]=e,u[n+2*r+3]=o}};for(let t=0;t<n;t++)d(r[t],r[t+1]),d(l+i[t],l+i[t+1]);const f=new Int32Array(3*o),T=(e,n)=>e===t[3*n]?0:e===t[3*n+1]?1:e===t[3*n+2]?2:-1,_=(t,e)=>{const n=T(t,e);f[3*e+n]=-1},g=(t,e,n,o)=>{const r=T(t,e);f[3*e+r]=o;const i=T(n,o);f[3*o+i]=e};for(let t=0;t<n;t++){let e=r[t];const n=r[t+1];let o=i[t];const s=i[t+1];for(;e<n&&o<s;){const n=u[2*e],r=u[2*l+2*o];n===r?(g(t,u[2*e+1],r,u[2*l+2*o+1]),e++,o++):n<r?(_(t,u[2*e+1]),e++):(_(r,u[2*l+2*o+1]),o++)}for(;e<n;)_(t,u[2*e+1]),e++;for(;o<s;)_(u[2*l+2*o],u[2*l+2*o+1]),o++}return f}var i=n(1843),s=n(46540),c=n(3055),a=n(87811),u=n(38954),l=n(51850),h=n(4431),d=n(34727);function f(t,e,n,o,r,i=2){const s=1/(Math.abs(n)+Math.abs(o)+Math.abs(r)),c=n*s,a=o*s,u=r<=0?(c>=0?1:-1)*(1-Math.abs(a)):c,l=r<=0?(a>=0?1:-1)*(1-Math.abs(c)):a,h=e*i;t[h]=T(u),t[h+1]=T(l)}function T(t){return(0,d.qE)(Math.round(32767*t),-32767,32767)}n(11868);class _{updateSettings(t){this.settings=t,this._edgeHashFunction=t.reducedPrecision?p:A}write(t,e,n){M.seed=this._edgeHashFunction(n);const o=M.getIntRange(0,255),r=M.getIntRange(0,this.settings.variants-1),i=M.getFloat(),s=255*(.5*function(t){return Math.abs(t)**1.2*Math.sign(t)}(-(1-Math.min(i/.7,1))+Math.max(0,i-.7)/(1-.7))+.5);t.position0.setVec(e,n.position0),t.position1.setVec(e,n.position1),t.componentIndex.set(e,n.componentIndex),t.variantOffset.set(e,o),t.variantStroke.set(e,r),t.variantExtension.set(e,s)}}const g=new Float32Array(6),m=new Uint32Array(g.buffer),O=new Uint32Array(1);function A(t){return g[0]=t.position0[0],g[1]=t.position0[1],g[2]=t.position0[2],g[3]=t.position1[0],g[4]=t.position1[1],g[5]=t.position1[2],O[0]=31*(31*(31*(31*(31*(166811+m[0])+m[1])+m[2])+m[3])+m[4])+m[5],O[0]}function p(t){const e=g;e[0]=N(t.position0[0]),e[1]=N(t.position0[1]),e[2]=N(t.position0[2]),e[3]=N(t.position1[0]),e[4]=N(t.position1[1]),e[5]=N(t.position1[2]),O[0]=5381;for(let t=0;t<m.length;t++)O[0]=31*O[0]+m[t];return O[0]}const E=1e4;function N(t){return Math.round(t*E)/E}class R{constructor(){this._commonWriter=new _}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return c.gr.createBuffer(t)}write(t,e,n){this._commonWriter.write(t,e,n),(0,u.g)(S,n.faceNormal0,n.faceNormal1),(0,u.n)(S,S);const{typedBuffer:o,typedBufferStride:r}=t.normalCompressed;f(o,e,S[0],S[1],S[2],r)}}R.Layout=c.gr,R.glLayout=(0,h.U)(c.gr,1);class I{constructor(){this._commonWriter=new _}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return c.In.createBuffer(t)}write(t,e,n){this._commonWriter.write(t,e,n);{const{typedBuffer:o,typedBufferStride:r}=t.normalCompressed;f(o,e,n.faceNormal0[0],n.faceNormal0[1],n.faceNormal0[2],r)}{const{typedBuffer:o,typedBufferStride:r}=t.normal2Compressed;f(o,e,n.faceNormal1[0],n.faceNormal1[1],n.faceNormal1[2],r)}}}I.Layout=c.In,I.glLayout=(0,h.U)(c.In,1);const S=(0,l.vt)(),M=new a.A;var b=n(93406);function v(t){const e=F(t.data,t.skipDeduplicate,t.indices,t.indicesLength);return L.updateSettings(t.writerSettings),C.updateSettings(t.writerSettings),(0,b.K)(e,L,C)}function F(t,e,n,i){if(e){const e=r(n,i,t.count);return new P(n,i,e,t)}const s=(0,o.b)(t.buffer,t.stride/4,{originalIndices:n,originalIndicesLength:i}),a=r(s.indices,i,s.uniqueCount);return{faces:s.indices,facesLength:s.indices.length,neighbors:a,vertices:c.I$.createView(s.buffer)}}class P{constructor(t,e,n,o){this.faces=t,this.facesLength=e,this.neighbors=n,this.vertices=o}}const L=new R,C=new I,B=(0,i.BP)().vec3f(s.r.POSITION0).vec3f(s.r.POSITION1),w=(0,i.BP)().vec3f(s.r.POSITION0).vec3f(s.r.POSITION1).u16(s.r.COMPONENTINDEX)},46064:(t,e,n)=>{n.r(e),n.d(e,{default:()=>T});var o=n(90237),r=n(74887),i=(n(53966),n(44208),n(87811),n(49186),n(40608)),s=n(38954),c=n(51850),a=n(11964),u=n(97937),l=n(78230),h=n(53099);function d(t,e,n){const o=(0,u.c)(),r=(0,u.g)(o);return(0,s.r)(r,r,t,.5),(0,s.r)(r,r,e,.5),o[3]=(0,s.p)(r,t),(0,s.g)(r,r,n),o}let f=class{constructor(){this._idToComponent=new Map,this._components=new l.A((t=>t.bounds)),this._edges=new l.A((t=>t.bounds)),this._tmpLineSegment=(0,a.vt)(),this._tmpP1=(0,c.vt)(),this._tmpP2=(0,c.vt)(),this._tmpP3=(0,c.vt)(),this.remoteClient=null}async fetchCandidates(t,e){await Promise.resolve(),(0,r.Te)(e),await this._ensureEdgeLocations(t,e);const n=[];return this._edges.forEachNeighbor((e=>(this._addCandidates(t,e,n),n.length<1e3)),t.bounds),{result:{candidates:n}}}async _ensureEdgeLocations(t,e){const n=[];if(this._components.forEachNeighbor((t=>{if(null==t.info){const{id:e,uid:o}=t;n.push({id:e,uid:o})}return!0}),t.bounds),!n.length)return;const o={components:n},r=await this.remoteClient.invoke("fetchAllEdgeLocations",o,e??{});for(const t of r.components)this._setFetchEdgeLocations(t)}async add(t){const e=new g(t.id,t.bounds);return this._idToComponent.set(e.id,e),this._components.add([e]),{result:{}}}async remove(t){const e=this._idToComponent.get(t.id);if(e){const t=[];this._edges.forEachNeighbor((n=>(n.component===e&&t.push(n),!0)),e.bounds),this._edges.remove(t),this._components.remove([e]),this._idToComponent.delete(e.id)}return{result:{}}}_setFetchEdgeLocations(t){const e=this._idToComponent.get(t.id);if(null==e||t.uid!==e.uid)return;const n=h.HY.createView(t.locations),o=new Array(n.count),r=(0,c.vt)(),i=(0,c.vt)();for(let s=0;s<n.count;s++){n.position0.getVec(s,r),n.position1.getVec(s,i);const c=d(r,i,t.origin),a=new m(e,s,c);o[s]=a}this._edges.add(o);const{objectIds:s,origin:a}=t;e.info={locations:n,objectIds:s,origin:a}}_addCandidates(t,e,n){const{info:o}=e.component,{origin:r,objectIds:i}=o,c=o.locations,a=c.position0.getVec(e.index,this._tmpP1),u=c.position1.getVec(e.index,this._tmpP2);(0,s.g)(a,a,r),(0,s.g)(u,u,r);const l=i[c.componentIndex.get(e.index)];this._addEdgeCandidate(t,l,a,u,n),_(t,l,a,n),_(t,l,u,n)}_addEdgeCandidate(t,e,n,o,r){if(!t.returnEdge)return;const i=(0,u.g)(t.bounds),l=(0,a.Cr)(n,o,this._tmpLineSegment),h=(0,a._I)(l,i,this._tmpP3);(0,u.o)(t.bounds,h)&&r.push({type:"edge",objectId:e,target:(0,c.o8)(h),distance:(0,s.p)(i,h),start:(0,c.o8)(n),end:(0,c.o8)(o)})}};f=(0,o._)([(0,i.$)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],f);const T=f;function _(t,e,n,o){if(!t.returnVertex||!(0,u.o)(t.bounds,n))return;const r=(0,u.g)(t.bounds);o.push({type:"vertex",objectId:e,target:(0,c.o8)(n),distance:(0,s.p)(r,n)})}class g{constructor(t,e){this.id=t,this.bounds=e,this.info=null,this.uid=++g.uid}}g.uid=0;class m{constructor(t,e,n){this.component=t,this.index=e,this.bounds=n}}},74038:(t,e,n)=>{n.d(e,{_:()=>o});class o{constructor(t,e,n,o,r,i=!1,s=0){this.name=t,this.count=e,this.type=n,this.offset=o,this.stride=r,this.normalized=i,this.divisor=s}}}}]);
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import{G as e,w as t,x as n,e as i,P as r,y as s,E as o,s as m,z as a,A as u,_ as c,n as h,o as l,B as g,C as y,g as _,a as D,D as v}from"./Polyline.js";class N{static leafSize(){return 20}}function p(){return{outPoint:new i,index:-1,t:Number.NaN}}function f(e,t,n){return{outPoint:e.clone(),index:t,t:n}}function P(e,t,n,i){e.outPoint.assign(t),e.index=n,e.t=i}function I(e,t){e.outPoint.assign(t.outPoint),e.index=t.index,e.t=t.t}function d(e,t,n,i){e.index=n,e.t=i,t.queryCoord2D(e.t,e.outPoint)}function q(e,t){const n=p();I(n,e),I(e,t),I(t,n)}function M(n,i,r,s,o,m){if(n.getGeometryType()===e.enumPolygon){for(;s.nextPath();)if(s.hasNextSegment()){const e=s.nextSegment();if(0!==t(n,e.getEndXY(),0))return P(o,e.getEndXY(),-1,Number.NaN),P(m,e.getEndXY(),-1,Number.NaN),!0}s.resetToFirstPath()}if(i.getGeometryType()===e.enumPolygon){for(;r.nextPath();)if(r.hasNextSegment()){const e=r.nextSegment();if(0!==t(i,e.getEndXY(),0))return P(o,e.getEndXY(),-1,Number.NaN),P(m,e.getEndXY(),-1,Number.NaN),!0}r.resetToFirstPath()}return!1}function x(e){const t=e.getPathCount(),i=new Array(e.getSegmentCount());let r=0;for(let n=0;n<t;++n){const t=r+e.getSegmentCountPath(n);for(let s=r,o=e.getPathStart(n);s<t;++s,++o)i[s]=o;r=t}return n(e.getPointCount(),i),i}function E(e,t){return!!Number.isNaN(t)||e<=t}function b(e){const t=new D;return t.addEnvelope(e,!1),t}function S(e,t){return!1}function B(){return new N}class A{constructor(e,t){if(this.m_env2DgeometryA=null,this.m_env2DgeometryB=null,this.m_progressCounter=0,this.m_progressTracker=t,this.m_maxSqrDistance=e*e,this.m_maxDistance=e,this.m_bIsNearCalc=!1,Number.isNaN(this.m_maxDistance)?this.m_maxDistance=Number.POSITIVE_INFINITY:this.m_maxDistance=e,this.m_maxSqrDistance=this.m_maxDistance*this.m_maxDistance,Number.isFinite(this.m_maxSqrDistance)){let e=Math.sqrt(this.m_maxSqrDistance);for(;e<this.m_maxDistance;)this.m_maxSqrDistance*=1+Number.EPSILON,e=Math.sqrt(this.m_maxSqrDistance)}}calculate(e,t,n,o){if(e.getGeometryType()!==r.type||t.getGeometryType()!==r.type){this.m_env2DgeometryA=new s,this.m_env2DgeometryB=new s,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB);if(!E(this.m_env2DgeometryA.distanceFromEnvelope(this.m_env2DgeometryB),this.m_maxDistance))return Number.POSITIVE_INFINITY}const m=f(new i,v(),Number.NaN),a=f(new i,v(),Number.NaN),u=this._ExecuteBruteForce(e,t,m,a);return E(u,this.m_maxDistance)?(null!==n&&I(n,m),null!==o&&I(o,a),u):Number.POSITIVE_INFINITY}isNear(e,t){if(this.m_bIsNearCalc=!0,e.isEmpty()||t.isEmpty())return!1;if(e===t)return!0;let n=!0;if(e.getGeometryType()!==r.type&&e.getGeometryType()!==o.type||t.getGeometryType()!==r.type&&t.getGeometryType()!==o.type||(n=!1),n){if(this.m_env2DgeometryA=new s,this.m_env2DgeometryB=new s,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!(this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)>this.m_maxSqrDistance))return!0;if(this.m_env2DgeometryA.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>this.m_maxSqrDistance)return!1}const m=f(new i,v(),Number.NaN),a=f(new i,v(),Number.NaN);return this._ExecuteBruteForce(e,t,m,a)<=this.m_maxDistance}progress_(e=!1){}_ExecuteBruteForce(t,n,i,r){switch(t.getGeometryType()){case e.enumPoint:return this.distancePointGeometry(t,n,i,r);case e.enumMultiPoint:return this.distanceMultipointGeometry(t,n,i,r);case e.enumEnvelope:return this.distanceEnvelopeGeometry(t,n,i,r);case e.enumPolyline:case e.enumPolygon:return this.distanceMultipathGeometry(t,n,i,r);default:return Number.NaN}}distancePointGeometry(t,n,i,r){switch(n.getGeometryType()){case e.enumPoint:return this.distancePointPoint(t,n,i,r);case e.enumMultiPoint:return this.distancePointMultipoint(t,n,i,r);case e.enumPolyline:case e.enumPolygon:return this.distancePointMultipath(t,n,i,r);case e.enumEnvelope:return this.distancePointEnvelope(t,n,i,r);default:return Number.NaN}}distancePointPoint(e,t,n,r){const s=e.getXY(),o=t.getXY();return P(n,s,0,0),P(r,o,0,0),Math.sqrt(i.sqrDistance(s,o))}distancePointMultipoint(e,t,n,r){const s=e.getXY();let o=this.m_maxSqrDistance,m=o,a=!1;const u=t.getPointCount(),c=new i;for(let h=0;h<u;++h)if(t.queryXY(h,c),m=i.sqrDistance(s,c),this.m_bIsNearCalc){if(m<=o)return 0}else if(!(m>o)&&(!a&&m===o||m<o)&&(o=m,P(n,s,0,0),P(r,c,h,0),a=!0,0===o))return 0;return a?Math.sqrt(o):Number.POSITIVE_INFINITY}distancePointMultipath(n,r,o,m){const a=!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB),u=n.getXY();if(!a&&r.getGeometryType()===e.enumPolygon&&0!==t(r,u,0))return P(o,u,0,0),P(m,u,-1,Number.NaN),0;r.getImpl().getAccelerators();let c=this.m_maxSqrDistance,h=c,l=-1;const g=new s,y=r.querySegmentIterator();let _=!1;for(;y.nextPath();)for(;y.hasNextSegment();){const e=y.nextSegment();e.queryEnvelope(g);const t=g.sqrDistance(u);if(t>c)continue;if(!this.m_bIsNearCalc&&_&&t===c)continue;l=e.getClosestCoordinate(u,!1);const n=e.getCoord2D(l);if(h=i.sqrDistance(u,n),this.m_bIsNearCalc){if(h<=c)return 0}else if(!(h>c)&&(!_||h<c)&&(c=h,P(o,u,0,0),P(m,n,y.getStartPointIndex(),l),_=!0,0===c))return 0}return _?Math.sqrt(c):Number.POSITIVE_INFINITY}distancePointEnvelope(e,t,n,i){const r=e.getXY();P(n,r,0,0),P(i,r,-1,Number.NaN);const s=t.asEnvelope2D();return!s.contains(r)?Math.sqrt(s.sqrDistance(r,i.outPoint)):0}distanceMultipointGeometry(t,n,i,r){switch(n.getGeometryType()){case e.enumPoint:{this.m_env2DgeometryB=m(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const e=this.distancePointMultipoint(n,t,r,i);return this.m_env2DgeometryB=m(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),e}case e.enumMultiPoint:return this.distanceMultipointMultipoint(t,n,i,r,1,1);case e.enumPolyline:case e.enumPolygon:return this.distanceMultipointMultipath(t,n,i,r);case e.enumEnvelope:return this.distanceMultipointMultipath(t,b(n),i,r);default:return Number.NaN}}distanceMultipointMultipoint(e,t,n,r,s,o){const g={stack:[],error:void 0,hasError:!1};try{if(this.m_bIsNearCalc&&1===s&&1===o){const i=Math.trunc(a(Math.sqrt(e.getPointCount())+1,1,u())),s=Math.trunc(a(Math.sqrt(t.getPointCount())+1,1,u()));if((i>=4||s>=4)&&this.distanceMultipointMultipoint(e,t,n,r,i,s)<=this.m_maxSqrDistance)return 0}let l=this.m_maxSqrDistance;const y=[e],_=[t],D=this.swapGeometriesIfBGtA(y,_);D&&(this.m_env2DgeometryB=m(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),o=m(s,s=o),q(n,r));c(g,h((()=>{q(n,r),this.m_env2DgeometryB=m(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)}),!D),!1);const v=y[0].getImpl(),N=_[0].getImpl(),p=v.getPointCount(),f=N.getPointCount(),I=f>1;let d=!1;const M=new i,x=new i;for(let e=0;e<p;e+=s){if(v.queryXY(e,M),I){const e=this.m_env2DgeometryB.sqrDistance(M);if(this.m_bIsNearCalc){if(e>l)continue;if(this.m_env2DgeometryB.sqrMaxMinDistance(M)<=l)return 0}else if(e>=l)continue}for(let t=0;t<f;t+=o){N.queryXY(t,x);const s=i.sqrDistance(M,x);if(this.m_bIsNearCalc){if(s<=l)return 0}else if(!(s>l||d&&s===l)&&(!d||s<l)&&(P(n,M,e,0),P(r,x,t,0),d=!0,l=s,0===l))return d?Math.sqrt(l):Number.POSITIVE_INFINITY}}return d?Math.sqrt(l):Number.POSITIVE_INFINITY}catch(y){g.error=y,g.hasError=!0}finally{l(g)}}distanceMultipointMultipath(n,r,o,m){let a=!!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)&&r.getGeometryType()===e.enumPolygon;const u=r.querySegmentIterator();u.stripAttributes();const c=new s,h=new i;let l=this.m_maxSqrDistance;const g=n.getImpl(),y=g.getPointCount(),_=y>1;let D=!1;for(;u.nextPath();)for(;u.hasNextSegment();){const e=u.nextSegment();if(e.queryLooseEnvelope(c),_){const e=c.sqrDistanceEnvelope(this.m_env2DgeometryA,null,null);if(this.m_bIsNearCalc){if(e>l)continue}else if(e>l||D&&e===l)continue}for(let n=0;n<y;n++){if(g.queryXY(n,h),a&&0!==t(r,h,0))return P(o,h,-1,Number.NaN),P(m,h,n,0),0;{const e=c.sqrDistance(h);if(this.m_bIsNearCalc){if(e>l)continue}else if(e>l)continue}const i=e.getClosestCoordinate(h,!1),s=e.getCoord2D(i);h.subThis(s);const y=h.sqrLength();if(this.m_bIsNearCalc){if(y<=l)return 0}else if(!(y>l)&&(!D||y<l)&&(l=y,P(o,g.getXY(n),n,0),P(m,s,u.getStartPointIndex(),i),D=!0,0===l))return 0}a=!1}return D?Math.sqrt(l):Number.POSITIVE_INFINITY}distanceEnvelopeGeometry(t,n,i,r){switch(n.getGeometryType()){case e.enumPoint:return this.distancePointEnvelope(n,t,r,i);case e.enumMultiPoint:{this.m_env2DgeometryB=m(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const e=this.distanceMultipointMultipath(n,b(t),r,i);return this.m_env2DgeometryB=m(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),e}case e.enumPolyline:case e.enumPolygon:return this.distanceMultipathMultipath(b(t),n,i,r);case e.enumEnvelope:return this.distanceEnvelopeEnvelope(t,n,i,r);default:return Number.NaN}}distanceEnvelopeEnvelope(e,t,n,i){n.t=Number.NaN,n.index=-1,i.t=Number.NaN,i.index=-1;const r=e.asEnvelope2D(),s=t.asEnvelope2D();return Math.sqrt(r.sqrDistanceEnvelope(s,n.outPoint,i.outPoint))}distanceMultipathGeometry(t,n,i,r){switch(n.getGeometryType()){case e.enumPoint:{this.m_env2DgeometryB=m(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const e=this.distancePointMultipath(n,t,r,i);return this.m_env2DgeometryB=m(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),e}case e.enumMultiPoint:{this.m_env2DgeometryB=m(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const e=this.distanceMultipointMultipath(n,t,r,i);return this.m_env2DgeometryB=m(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),e}case e.enumPolyline:case e.enumPolygon:return this.distanceMultipathMultipath(t,n,i,r);case e.enumEnvelope:return this.distanceMultipathMultipath(t,b(n),i,r);default:return Number.NaN}}distanceMultipathMultipath(e,t,n,i){const r={stack:[],error:void 0,hasError:!1};try{const o=[e],l=[t],y=this.swapGeometriesIfAGtB(o,l);y&&(this.m_env2DgeometryB=m(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),q(n,i));c(r,h((()=>{q(n,i),this.m_env2DgeometryB=m(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)}),!y),!1);const _=o[0],D=l[0],v=_.querySegmentIterator();v.stripAttributes();const N=D.querySegmentIterator();if(N.stripAttributes(),this.m_bIsNearCalc&&this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)<=this.m_maxSqrDistance)return 0;if(this.m_bIsNearCalc){const e=Math.trunc(a(Math.sqrt(_.getPointCount())+1,1,u())),t=Math.trunc(a(Math.sqrt(_.getPointCount())+1,1,u()));if(this.distanceMultipointMultipoint(_,D,n,i,e,t)<=this.m_maxSqrDistance)return 0}if(!!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)){const e=p(),t=p();if(M(_,D,v,N,e,t))return I(n,e),I(i,t),0}const f=x(_),P=[],E=(B(),S(_,D)),b=new g,A=new s,T=new s,C=new s;let w=this.m_maxSqrDistance,G=!0,Y=!1;for(let e=0,t=f.length;e<t;++e){_.querySegment(f[e],b,!0);const t=b.get();if(t.queryEnvelope(A),!(A.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>w)){if(this.m_bIsNearCalc&&A.sqrMaxDistanceEnvelope(this.m_env2DgeometryB)<=w)return 0;if(E);else{for(;N.nextPath();){if(G)D.queryPathEnvelope(N.getPathIndex(),C),P[N.getPathIndex()]=C.clone();else if(A.sqrDistanceEnvelope(P[N.getPathIndex()],null,null)>w)continue;for(;N.hasNextSegment();){const r=N.nextSegment();if(r.queryEnvelope(T),A.sqrDistanceEnvelope(T,null,null)<=w){const s=!A.isIntersecting(T),o=[0],m=[0];let a=t.distance(r,s,o,m);if(a*=a,this.m_bIsNearCalc&&a<=this.m_maxSqrDistance)return 0;if(a<w||a===w&&f[e]<n.index){if(Y=!0,d(n,t,f[e],o[0]),d(i,r,N.getStartPointIndex(),m[0]),0===a)return 0;w=a}}}}N.resetToFirstPath(),G=!1}}}return Y?Math.sqrt(w):Number.POSITIVE_INFINITY}catch(o){r.error=o,r.hasError=!0}finally{l(r)}}swapGeometriesIfAGtB(e,t){return y(e[0])>y(t[0])&&(t[0]=m(e[0],e[0]=t[0]),!0)}swapGeometriesIfBGtA(e,t){return this.swapGeometriesIfAGtB(t,e)}buildSpatialTree(e,t){_(0)}getNearestNeighbourVisitor(e,t,n,i,r,s,o,m){return _(0),{}}}export{A as D,p as m,x as s,M as w};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import{e as t,y as e,a8 as i,Y as s,T as n,t as o,G as a,_ as r,ag as m,ah as c,o as u,g as h,au as l,av as _,aw as d,s as p,B as g,ax as x,ay as y,az as P,aA as S,q as D,aB as G,aC as f,Z as v,I as w,a as T,p as M,C as b,aD as E,f as C,U as B,aE as R,aF as I,ai as A}from"./Polyline.js";import{s as q,w as k,m as F}from"./Distance2DCalculator-BzAEa8Xe.js";import{OperatorShapePreservingDensify as N}from"./OperatorShapePreservingDensify.js";function X(){return new e}class Y{constructor(t,e,i){void 0!==t?this.reset(t,e,i):this.reset(1,0,1)}reset(t,e,i){this.m_a=t,this.m_e2=e,this.m_b=this.m_a*Math.sqrt(1-this.m_e2),this.m_unitToDegree=i,this.m_unitToRad=.017453292519943295*i,this.m_u180=180/this.m_unitToDegree,this.m_u360=360/this.m_unitToDegree}calculateBbox(t,e,i,s){const n={stack:[],error:void 0,hasError:!1};try{const o=r(n,new m,!1),a=r(n,new m,!1),u=r(n,new m,!1);c.geodeticDistance(this.m_a,this.m_e2,t*this.m_unitToRad,e*this.m_unitToRad,i*this.m_unitToRad,s*this.m_unitToRad,u,o,a,0);const h=Math.cos(o.val),l=Math.cos(a.val+3.141592653589793),_=e*this.m_unitToRad,d=B.phiToEta(this.m_e2,_),p=Math.sin(o.val)*Math.cos(d);let g=e;if(h*l<0){const t=h<0?-1:1,e=Math.acos(Math.abs(p))*t;g=B.etaToPhi(this.m_e2,e)/this.m_unitToRad}let x=R((i-t)*this.m_unitToRad,2*Math.PI);Math.abs(x)>Math.PI&&(x=x>0?x-2*Math.PI:x+2*Math.PI),x/=this.m_unitToRad,i=t+x;const y=X();return y.xmin=Math.min(t,i),y.xmax=Math.max(t,i),y.ymin=Math.min(e,s),y.ymin=Math.min(y.ymin,g),y.ymax=Math.max(e,s),y.ymax=Math.max(y.ymax,g),y}catch(o){n.error=o,n.hasError=!0}finally{u(n)}}minDistanceGeodesic(t,e){const i=O(t),s=O(e);if(i&&s)return this.lowerDistanceGeodetic_(t.xmin,t.ymin,e.xmin,e.ymin);const n=this.normalizeGeodesic_(e,t);return U(t,n)?t.ymin>=n.ymax?this.minDistanceGeodesicUpDown_(t,n):n.ymin>=t.ymax?this.minDistanceGeodesicUpDown_(n,t):t.xmin>n.xmax?this.minDistanceGeodesicLeftRight_(n,t):this.minDistanceGeodesicLeftRight_(t,n):0}sqrMaxMinDistanceGeodesic(t,e){return h(0),0}maxDistanceGeodesic(t,e){return h(0),0}sqrMinDistance(t,e){return h(0),0}sqrMaxDistance(t,e){return h(0),0}sqrMaxMinDistance(t,e){return h(0),0}calculateMaxDim(t){return h(0),0}lowerDistanceGeodesic(t,e,i,s){return h(0),0}upperDistanceGeodesic(t,e,i,s){return h(0),0}normalizeGeodesic_(t,e){const i=t.clone(),s=t.clone();let n=L(i,e);if(0===n)return i;for(;s.xmax>e.xmin;){s.xmin-=this.m_u360,s.xmax-=this.m_u360;const t=L(s,e);if(t<n&&(i.assign(s),n=t,0===n))return i}for(s.assign(t);s.xmin<e.xmax;){s.xmin+=this.m_u360,s.xmax+=this.m_u360;const t=L(s,e);if(t<n&&(i.assign(s),n=t,0===n))return i}return i}lowerDistanceGeodetic_(t,e,i,s){const n={stack:[],error:void 0,hasError:!1};try{const o=r(n,new m,!1);{const n=this.m_b*this.m_b/this.m_a,a=B.phiToPhig(this.m_e2,this.m_unitToRad*e),r=B.phiToPhig(this.m_e2,this.m_unitToRad*s);c.geodeticDistance(n,0,this.m_unitToRad*t,a,this.m_unitToRad*i,r,o,null,null,0)}return o.val}catch(o){n.error=o,n.hasError=!0}finally{u(n)}}upperDistanceGeodetic_(t,e,i,s){return h(0),0}minDistanceGeodesicUpDown_(t,e){if(e.xmin<=t.xmin?e.xmax>=t.xmin:t.xmax>=e.xmin)return this.lowerDistanceGeodetic_(0,t.ymin,0,e.ymax);if(e.xmin>t.xmax){const i=this.lowerDistanceGeodeticSegMeridional_(t.xmax,t.ymin,t.ymax,e.xmin,e.ymin,e.ymax);if(e.xmax-t.xmin<this.m_u180)return i;const s=this.lowerDistanceGeodeticSegMeridional_(t.xmin,t.ymin,t.ymax,e.xmax,e.ymin,e.ymax);return Math.min(i,s)}{const i=this.lowerDistanceGeodeticSegMeridional_(t.xmin,t.ymin,t.ymax,e.xmax,e.ymin,e.ymax);if(t.xmax-e.xmin<this.m_u180)return i;const s=this.lowerDistanceGeodeticSegMeridional_(t.xmax,t.ymin,t.ymax,e.xmin,e.ymin,e.ymax);return Math.min(i,s)}}minDistanceGeodesicLeftRight_(t,e){let i=Math.abs(t.xmax-e.xmin);for(;i>this.m_u180;)i-=this.m_u360;let s=Math.abs(t.xmin-e.xmax);for(;s>this.m_u180;)s-=this.m_u360;return Math.abs(i)<=Math.abs(s)?this.minDistanceGeodesicLeftRightNormalized_(t,e):this.minDistanceGeodesicLeftRightNormalized_(e,t)}minDistanceGeodesicLeftRightNormalized_(t,e){let i,s;return i=this.lowerDistanceGeodetic_(t.xmax,t.ymin,e.xmin,e.ymin),t.ymin>=e.ymin&&t.ymin<=e.ymax&&(s=this.lowerDistanceGeodeticPtMeridional_(t.xmax,t.ymin,e.xmin,e.ymin,e.ymax),i=Math.min(i,s)),e.ymin>=t.ymin&&e.ymin<=t.ymax&&(s=this.lowerDistanceGeodeticPtMeridional_(e.xmin,e.ymin,t.xmax,t.ymin,t.ymax),i=Math.min(i,s)),s=this.lowerDistanceGeodetic_(t.xmax,t.ymax,e.xmin,e.ymax),i=Math.min(i,s),t.ymax>=e.ymin&&t.ymax<=e.ymax&&(s=this.lowerDistanceGeodeticPtMeridional_(t.xmax,t.ymax,e.xmin,e.ymin,e.ymax),i=Math.min(i,s)),e.ymax>=t.ymin&&e.ymax<=t.ymax&&(s=this.lowerDistanceGeodeticPtMeridional_(e.xmin,e.ymax,t.xmax,t.ymin,t.ymax),i=Math.min(i,s)),i}normalizeDistance_(t){return h(0),0}lowerDistanceGeodeticSegMeridional_(t,e,i,s,n,o){let a=this.lowerDistanceGeodeticPtMeridional_(t,e,s,n,o);const r=this.lowerDistanceGeodeticPtMeridional_(t,i,s,n,o);let m=this.lowerDistanceGeodeticPtMeridional_(s,n,t,e,i);const c=this.lowerDistanceGeodeticPtMeridional_(s,o,t,e,i);return a=Math.min(a,r),m=Math.min(m,c),Math.min(a,m)}minDistanceGeodesicPointBox_(t,e,i){return h(0),0}lowerDistanceGeodeticPtMeridional_(e,i,s,n,o){const a={stack:[],error:void 0,hasError:!1};try{const l=this.m_b*this.m_b/this.m_a,p=B.phiToPhig(this.m_e2,this.m_unitToRad*i),g=B.phiToPhig(this.m_e2,this.m_unitToRad*n),x=B.phiToPhig(this.m_e2,this.m_unitToRad*o),y=r(a,new m,!1);c.geodeticDistance(l,0,this.m_unitToRad*s,g,this.m_unitToRad*e,p,y,null,null,0);const P=r(a,new m,!1);c.geodeticDistance(l,0,this.m_unitToRad*s,x,this.m_unitToRad*e,p,P,null,null,0);const S=_(1,0,new t(this.m_unitToRad*e,p)),D=_(1,0,new t(this.m_unitToRad*s,g)),G=_(1,0,new t(this.m_unitToRad*s,x));let f=new d;f.setCrossProductVector(D,G);const v=D.dotProduct(G);if(f.length()<1.568e-10)return v>=0?Math.min(y.val,P.val):0;f=f.getUnitVector();let w=new d;if(w.setCrossProductVector(f,S),w.length()<1.568e-10){return Math.min(y.val,P.val)-1e-5*l}w=w.getUnitVector();let T=S.sub(f.mul(S.dotProduct(f)));{const t=new d;t.setCrossProductVector(D,T);const i=new d;i.setCrossProductVector(T,G);let s=f.dotProduct(t)>0&&f.dotProduct(i)>0;if(s||(T.negateThis(),t.setCrossProductVector(D,T),i.setCrossProductVector(T,G),s=f.dotProduct(t)>0&&f.dotProduct(i)>0),s){const t={stack:[],error:void 0,hasError:!1};try{T=T.getUnitVector();const i=I(1,0,T),s=r(t,new m,!1);c.geodeticDistance(l,0,this.m_unitToRad*e,p,i.x,i.y,s,null,null,0);const n=Math.min(y.val,P.val);return Math.min(n,s.val)}catch(h){t.error=h,t.hasError=!0}finally{u(t)}}}return Math.min(y.val,P.val)}catch(l){a.error=l,a.hasError=!0}finally{u(a)}}fixAngle(t){return h(0),0}moveCloser(t,e){return h(0),0}}function O(t){return t.xmin===t.xmax&&t.ymin===t.ymax}function U(t,e){return e.xmax<t.xmin||e.xmin>t.xmax||e.ymax<t.ymin||e.ymin>t.ymax}function L(t,e){let i,s=0;return i=t.xmin-e.xmax,i>s&&(s=i),i=e.xmin-t.xmax,i>s&&(s=i),s}class V{}function z(e){return{outPoint:void 0===e?new t:e.clone()}}function H(t,e){t.outPoint.assign(e.outPoint)}function j(){return new e}class Z{constructor(e,i,s,n,o=0,a=4){this.m_ptDistFrom=new t,this.m_segStartPt=new t,this.m_segEndPt=new t,this.m_geodeticLength=new m,this.m_az12=new m,this.m_minGeodeticDist=new m,this.m_segStartPt3d=new d,this.m_segEndPt3d=new d,this.m_sr=n,this.m_distCurveType=o,this.m_segCurveType=a,this.m_inputGCS=this.m_sr.getGCS(),this.m_rpu=this.m_inputGCS.getUnit().getUnitToBaseFactor(),this.m_bIsPannablePcs=2===this.m_sr.getCoordinateSystemType()&&this.m_sr.isPannable();const r=A();this.m_inputGCS.querySpheroidData(r),this.m_a=r.majorSemiAxis,this.m_eSquared=r.e2,this.setPointDistFrom(e),this.setSegmentEndPoints(i,s)}setSegmentEndPoints(t,e){this.m_segStartPt.assign(t),this.m_segEndPt.assign(e),this.m_bIsPannablePcs||(this.m_segStartPt.mulThis(this.m_rpu),this.m_segEndPt.mulThis(this.m_rpu)),2===this.m_segCurveType&&(this.m_segStartPt3d.assign(_(this.m_a,this.m_eSquared,this.m_segStartPt)),this.m_segEndPt3d.assign(_(this.m_a,this.m_eSquared,this.m_segEndPt))),this.calculateAndUpdateSegmentLength()}setPointDistFrom(t){this.m_ptDistFrom.assign(t),this.m_ptDistFrom.scale(this.m_rpu)}setSegmentCurveType(t){this.m_segCurveType=t}setDistanceCurveType(t){this.m_distCurveType=t}makeFunctor(){return e=>{let i;switch(this.m_segCurveType){case 0:case 1:case 3:{const n={stack:[],error:void 0,hasError:!1};try{const s=r(n,new m,!1),o=r(n,new m,!1);c.geodeticCoordinate(this.m_a,this.m_eSquared,this.m_segStartPt.x,this.m_segStartPt.y,this.m_geodeticLength.val*e,this.m_az12.val,s,o,this.m_segCurveType),i=new t(s.val,o.val);break}catch(s){n.error=s,n.hasError=!0}finally{u(n)}}case 2:{const t=d.lerp(this.m_segStartPt3d,this.m_segEndPt3d,e);i=I(this.m_a,this.m_eSquared,t);break}case 4:i=t.lerp(this.m_segStartPt,this.m_segEndPt,e),this.m_bIsPannablePcs&&(x(this.m_sr,0,[i],1),i.mulThis(this.m_rpu));break;default:M("Invalid curve type")}return c.geodeticDistance(this.m_a,this.m_eSquared,this.m_ptDistFrom.x,this.m_ptDistFrom.y,i.x,i.y,this.m_minGeodeticDist,null,null,this.m_distCurveType),this.m_minGeodeticDist.val}}calculateAndUpdateSegmentLength(){switch(this.m_segCurveType){case 0:case 2:case 1:case 3:c.geodeticDistance(this.m_a,this.m_eSquared,this.m_segStartPt.x,this.m_segStartPt.y,this.m_segEndPt.x,this.m_segEndPt.y,this.m_geodeticLength,this.m_az12,null,this.m_segCurveType);break;case 4:this.m_geodeticLength.val=t.distance(this.m_segStartPt,this.m_segEndPt);break;default:M("Invalid curve type")}}[Symbol.dispose](){this.m_geodeticLength[Symbol.dispose](),this.m_az12[Symbol.dispose](),this.m_minGeodeticDist[Symbol.dispose]()}}function J(){return new V}class K{constructor(t,s,n,o,a){this.m_boxGeomA=j(),this.m_boxGeomB=j(),this.m_envGeomA=new e,this.m_envGeomB=new e,this.m_progressCounter=0,this.m_transformPCS2GCS=null,this.m_segmentBoxesA=new Map,this.m_segmentBoxesB=new Map,this.m_boundaryPtsA=[],this.m_boundaryPtsB=[],this.m_scaleToRadians=new i,this.m_scaleToDegrees=new i,this.m_inputSR=t,this.m_distCurveType=s,this.m_progressTracker=n,this.m_maxDistance=o,this.m_maxDeviation=a,this.m_inputGCS=t.getGCS(),this.m_peGeogcs=this.m_inputGCS.getPECoordSys(),this.m_tolerance=0;const r=A();this.m_inputGCS.querySpheroidData(r),this.m_a=r.majorSemiAxis,this.m_eSquared=r.e2,this.m_rpu=this.m_inputGCS.getUnit().getUnitToBaseFactor(),this.m_envHelper=new Y(this.m_a,this.m_eSquared,1),4===this.m_distCurveType&&(this.m_distCurveType=0),this.m_boxGeomA.setEmpty(),this.m_boxGeomB.setEmpty(),this.m_envGeomA.setEmpty(),this.m_envGeomB.setEmpty(),this.m_bIsPannablePcs=2===this.m_inputSR.getCoordinateSystemType()&&this.m_inputSR.isPannable()}progress(t=!1){}calculate(t,e,i,s){const n=z(),o=z();if(t.queryEnvelope(this.m_envGeomA),e.queryEnvelope(this.m_envGeomB),this.checkGeometriesIntersect(t,e,n,o))return i&&H(i,n),s&&H(s,o),0;const a=this.prepareGeometry(t);if(a.isEmpty())return Number.NaN;const r=this.prepareGeometry(e);if(r.isEmpty())return Number.NaN;this.m_tolerance=this.computeTolerance(a,r);const m=this._ExecuteBruteForce(a,r,n,o);return m>=this.m_maxDistance?Number.NaN:(i&&(this.prepareOutput(n),H(i,n)),s&&(this.prepareOutput(o),H(s,o)),m)}createDistanceFunctor(t,e,i){const s=new Z(t,e,i,this.m_inputSR,this.m_distCurveType);return this.m_bIsPannablePcs||1===this.m_inputSR.getCoordinateSystemType()||s.setSegmentCurveType(2),s}_NormalizeAndProject(t){if(this.m_inputSR.isPannable()&&(t=(new s).foldInto360Range(t,this.m_inputSR)),2===this.m_inputSR.getCoordinateSystemType()){const e=n(this.m_inputSR,this.m_inputGCS,null);t=(new s).execute(t,e,this.m_progressTracker)}return t}_ExecuteBruteForce(t,e,i,s){switch(t.getGeometryType()){case a.enumPoint:return this.calculateDistanceGeodeticPointGeometry(t,e,i,s);case a.enumMultiPoint:return this.calculateDistanceGeodeticMultipointGeometry(t,e,i,s);case a.enumPolyline:case a.enumPolygon:case a.enumEnvelope:return this.calculateDistanceGeodeticMultipathGeometry(t,e,i,s);default:o("")}}calculateDistanceGeodeticPointGeometry(t,e,i,s){switch(e.getGeometryType()){case a.enumPoint:return this.calculateDistanceGeodeticPointPoint(t,e,i,s);case a.enumMultiPoint:return this.calculateDistanceGeodeticPointMultipoint(t,e,i,s);case a.enumPolyline:case a.enumPolygon:return this.calculateDistanceGeodeticPointMultipath(t,e,i,s);default:o("")}}calculateDistanceGeodeticPointPoint(t,e,i,s){const n={stack:[],error:void 0,hasError:!1};try{const o=t.getXY();o.scale(this.m_rpu);const a=e.getXY();a.scale(this.m_rpu),i.outPoint.assign(o),s.outPoint.assign(a);const u=r(n,new m,!1);return c.geodeticDistance(this.m_a,this.m_eSquared,o.x,o.y,a.x,a.y,u,null,null,this.m_distCurveType),u.val}catch(o){n.error=o,n.hasError=!0}finally{u(n)}}calculateDistanceGeodeticPointMultipoint(t,e,i,s){return h(0),0}calculateDistanceGeodeticPointMultipath(e,i,s,n){const o={stack:[],error:void 0,hasError:!1};try{const a=new t,m=new t;a.assign(e.getXY()),m.assign(e.getXY()),s.outPoint.assign(m.mul(this.m_rpu)),this.m_bIsPannablePcs&&l(this.m_inputSR,[a],1,!1),this.computeEnvelopesAndBoxes(e,i);const c=this.estimateMinimumDistance(s,n);let u=c<this.m_maxDistance?c:this.m_maxDistance;const _=i.getImpl(),d=new t(0,0),p=new t(0,0),g=[1],x=this.canUseSpatialTree(e,i),y=J();x&&this.buildSpatialTree(y,i);const P=j();P.setCoords({xmin:m.x,ymin:m.y,xmax:m.x,ymax:m.y});const S=r(o,this.createDistanceFunctor(m,d,p),!1),D=_.querySegmentIterator();D.stripAttributes();if(x)h(0);else for(;D.nextPath();)for(;D.hasNextSegment();){const t=D.nextSegment(),e=this.findOrComputeBoxSegment(D.getStartPointIndex(),t,this.m_segmentBoxesB);if(this.m_envHelper.minDistanceGeodesic(P,e)>u)continue;const i=this.calculateDistanceGeodeticPointSegment(a,m,t,g,S);if(i.second<u&&(this.updateOutputSegment(n,t,i.first),u=i.second,0===u))return 0}return u===this.m_maxDistance?Number.POSITIVE_INFINITY:u}catch(a){o.error=a,o.hasError=!0}finally{u(o)}}calculateDistanceGeodeticMultipointGeometry(t,e,i,s){switch(e.getGeometryType()){case a.enumPoint:return this.calculateDistanceGeodeticPointMultipoint(e,t,s,i);case a.enumMultiPoint:return this.calculateDistanceGeodeticMultipointMultipoint(t,e,i,s);case a.enumPolyline:case a.enumPolygon:case a.enumEnvelope:return this.calculateDistanceGeodeticMultipointMultipath(t,e,i,s);default:o("")}}calculateDistanceGeodeticMultipointMultipoint(e,i,s,n){const o={stack:[],error:void 0,hasError:!1};try{const a=r(o,new m,!1);this.computeEnvelopesAndBoxes(e,i);const u=this.estimateMinimumDistance(s,n);let h=u<this.m_maxDistance?u:this.m_maxDistance;const l=new t,p=new t,g=e.getImpl(),x=i.getImpl(),y=j(),P=g.getPointCount(),S=x.getPointCount();for(let t=0;t<P;++t){if(l.assign(g.getXY(t)),y.setCoords({xmin:l.x,ymin:l.y,xmax:l.x,ymax:l.y}),this.m_envHelper.minDistanceGeodesic(y,this.m_boxGeomB)>h)continue;l.scale(this.m_rpu);const e=_(this.m_a,this.m_eSquared,l);for(let t=0;t<S;++t){p.assign(x.getXY(t)),p.scale(this.m_rpu);const i=_(this.m_a,this.m_eSquared,p);if(!(d.distance(e,i)>=h)&&(c.geodeticDistance(this.m_a,this.m_eSquared,l.x,l.y,p.x,p.y,a,null,null,this.m_distCurveType),a.val<h&&(s.outPoint.assign(l),n.outPoint.assign(p),h=a.val,0===h)))return h}}return h===this.m_maxDistance?Number.POSITIVE_INFINITY:h}catch(a){o.error=a,o.hasError=!0}finally{u(o)}}calculateDistanceGeodeticMultipointMultipath(e,i,s,n){const o={stack:[],error:void 0,hasError:!1};try{const a=i.getImpl().querySegmentIterator();a.stripAttributes(),this.computeEnvelopesAndBoxes(e,i);const m=this.estimateMinimumDistance(s,n);let c=m<this.m_maxDistance?m:this.m_maxDistance;const u=new t,_=new t(0,0),d=new t(0,0),p=new t(0,0),g=[0],x=j(),y=r(o,this.createDistanceFunctor(_,d,p),!1),P=J(),S=this.canUseSpatialTree(e,i);S&&this.buildSpatialTree(P,i);const D=e.getPointCount();for(let t=0;t<D;++t)if(u.assign(e.getXY(t)),_.assign(e.getXY(t)),this.m_bIsPannablePcs&&l(this.m_inputSR,[u],1,!1),x.setCoords({xmin:_.x,ymin:_.y,xmax:_.x,ymax:_.y}),!(this.m_envHelper.minDistanceGeodesic(x,this.m_boxGeomB)>c))if(y.setPointDistFrom(_),S)h(0);else{for(;a.nextPath();)for(;a.hasNextSegment();){const t=a.nextSegment();if(this.m_envHelper.minDistanceGeodesic(x,this.findOrComputeBoxSegment(a.getStartPointIndex(),t,this.m_segmentBoxesB))>c)continue;const e=this.calculateDistanceGeodeticPointSegment(u,_,t,g,y);if(e.second<c&&(s.outPoint.assign(_.mul(this.m_rpu)),this.updateOutputSegment(n,t,e.first),c=e.second,0===c))return 0}a.resetToFirstPath()}return c===this.m_maxDistance?Number.POSITIVE_INFINITY:c}catch(a){o.error=a,o.hasError=!0}finally{u(o)}}calculateDistanceGeodeticMultipathGeometry(t,e,i,s){switch(e.getGeometryType()){case a.enumPoint:return this.calculateDistanceGeodeticPointMultipath(e,t,s,i);case a.enumMultiPoint:return this.calculateDistanceGeodeticMultipointMultipath(e,t,s,i);case a.enumPolyline:case a.enumPolygon:case a.enumEnvelope:return this.calculateDistanceGeodeticMultipathMultipath(t,e,i,s);default:o("")}}calculateDistanceGeodeticMultipathMultipath(t,e,i,s){const n=[t],o=[e],a=this.swapGeometries(n,o),r=n[0],m=o[0];this.computeEnvelopesAndBoxes(n[0],o[0]);const c=this.estimateMinimumDistance(i,s),u=this.calculateDistanceGeodeticMultipathMultipath_(r,m,i,s,c);return a&&(s.outPoint=p(i.outPoint,i.outPoint=s.outPoint)),u}calculateDistanceGeodeticMultipathMultipath_(e,i,s,n,o=Number.MAX_VALUE){const a={stack:[],error:void 0,hasError:!1};try{let m=o;const c=new t(0,0),u=new t,l=new t(0,0),_=new t,d=new t(0,0),p=new t,P=new t,S=new t,D=[new t],G=[0],f=[0],v=j(),w=j(),T=r(a,this.createDistanceFunctor(d,c,l),!1),M=J(),b=this.canUseSpatialTree(e,i);b&&this.buildSpatialTree(M,i);const E=i.querySegmentIterator();E.stripAttributes();const C=new g,B=q(e);for(let t=0;t<B.length;++t){const i=B[t];e.getSegmentBuffer(i,C,!0);const o=C.get();if(v.assign(this.findOrComputeBoxSegment(i,o,this.m_segmentBoxesA)),b)h(0);else{if(d.assign(o.getStartXY()),p.assign(o.getStartXY()),P.assign(o.getEndXY()),S.assign(o.getEndXY()),this.m_bIsPannablePcs&&(x(this.m_inputSR,0,[p],1),x(this.m_inputSR,0,[S],1)),this.m_envHelper.minDistanceGeodesic(v,this.m_boxGeomB)>m)continue;for(;E.nextPath();){for(;E.hasNextSegment();){const t=E.nextSegment();if(c.assign(t.getStartXY()),u.assign(t.getStartXY()),l.assign(t.getEndXY()),_.assign(t.getEndXY()),o.intersect(t,D,G,f,this.m_tolerance))return this.updateOutputSegment(s,o,G[0]),this.updateOutputSegment(n,t,f[0]),0;if(this.m_bIsPannablePcs&&(x(this.m_inputSR,0,[u],1),x(this.m_inputSR,0,[_],1)),w.assign(this.findOrComputeBoxPoint(E.getStartPointIndex(),u,_,this.m_segmentBoxesB)),this.m_envHelper.minDistanceGeodesic(v,w)>m)continue;T.setSegmentEndPoints(c,l),T.setPointDistFrom(p);let e=y(T.makeFunctor(),0,1,1e-10);if(e.second<m&&(s.outPoint.assign(p.mul(this.m_rpu)),this.updateOutputSegment(n,t,e.first),m=e.second,0===m))break;if(T.setPointDistFrom(S),e=y(T.makeFunctor(),0,1,1e-10),e.second<m&&(s.outPoint.assign(S.mul(this.m_rpu)),this.updateOutputSegment(n,t,e.first),m=e.second,0===m))break;if(T.setSegmentEndPoints(d,P),T.setPointDistFrom(u),e=y(T.makeFunctor(),0,1,1e-10),e.second<m&&(this.updateOutputSegment(s,o,e.first),n.outPoint.assign(u.mul(this.m_rpu)),m=e.second,0===m))break;if(T.setPointDistFrom(_),e=y(T.makeFunctor(),0,1,1e-10),e.second<m&&(this.updateOutputSegment(s,o,e.first),n.outPoint.assign(_.mul(this.m_rpu)),m=e.second,0===m))break}if(0===m)return 0}E.resetToFirstPath()}}return m===this.m_maxDistance?Number.POSITIVE_INFINITY:m}catch(m){a.error=m,a.hasError=!0}finally{u(a)}}calculateDistanceGeodeticPointSegment(t,e,i,s,n){const o=i.getStartXY(),a=i.getEndXY();return i.intersectPoint(t,s,this.m_tolerance)?P(s[0],0):(n.setPointDistFrom(e),n.setSegmentEndPoints(o,a),y(n.makeFunctor(),0,1,1e-10))}prepareGeometry(t){let i=t.clone();const n=t.getGeometryType();if(n===a.enumPoint||n===a.enumMultiPoint)return this._NormalizeAndProject(i);if(n===a.enumEnvelope&&(i=this.envelopeToPolygon(i)),this.m_inputSR.isPannable())return this.prepareGeometryPannable(i,4);if(2===this.m_inputSR.getCoordinateSystemType()){if(i=S(i,this.m_inputSR,0,null),i.isEmpty())return i;i=(new N).execute(i,this.m_inputSR,5e4,this.m_maxDeviation/2,0,null);const t=this.m_inputSR.getSRToGCSTransform();return(new s).execute(i,t,this.m_progressTracker)}const o=new e;i.queryLooseEnvelope(o);const r=this.m_inputSR.getPannableExtent();if(o.ymin<r.ymin||o.ymax>r.ymax){const t=new e(o.xmin-1,r.ymin,o.xmax+1,r.ymax);if(i=(new D).execute(i,t,this.m_inputSR,this.m_progressTracker),i.isEmpty())return i}return o.width()>2*r.width()?(i=G(i,-2*r.width(),2*r.width(),this.m_inputSR,!0,0,!0,this.m_progressTracker),i):i}prepareGeometryPannable(t,i){const n=new e;t.queryEnvelope(n);const o=this.m_inputSR.getPannableExtent();if(o.containsEnvelope(n))return t;const a=new f;o.queryIntervalX(a);const r=new f;return n.queryIntervalX(r),t=a.contains(r)?v(t,this.m_inputSR):(new s).foldInto360RangeGeodetic(t,this.m_inputSR,i)}prepareOutput(t){t.outPoint.scale(1/this.m_rpu),2===this.m_inputSR.getCoordinateSystemType()&&l(this.m_inputSR,[t.outPoint],1,!1)}updateOutputSegment(t,e,i){e.queryCoord2D(i,t.outPoint),this.m_bIsPannablePcs&&x(this.m_inputSR,0,[t.outPoint],1),t.outPoint.mulThis(this.m_rpu)}computeTolerance(t,i){t.queryEnvelope(this.m_envGeomA),i.queryEnvelope(this.m_envGeomB);const s=new e(this.m_envGeomA);return s.mergeEnvelope2D(this.m_envGeomB),w(null,s)}envelopeToPolygon(t){const e=new T;return e.addEnvelope(t,!1),e}computeEnvelopesAndBoxes(t,e){t.queryEnvelope(this.m_envGeomA),e.queryEnvelope(this.m_envGeomB),this.m_boxGeomA=this.computeBoxGeometry(t,this.m_boundaryPtsA,this.m_segmentBoxesA),this.m_boxGeomB=this.computeBoxGeometry(e,this.m_boundaryPtsB,this.m_segmentBoxesB)}computeBoxGeometry(t,e,i){switch(t.getGeometryType()){case a.enumPoint:return this.computeBoxPoint(t,e);case a.enumMultiPoint:return this.computeBoxMultiPoint(t,e);case a.enumPolyline:case a.enumPolygon:return this.computeBoxMultiPath(t,e,i);default:M("Invalid geometry type")}}computeBoxPoint(t,e){const i=t.getXY();e.length=1,e[0]=i.mul(this.m_rpu);const s=j();return s.setCoords({xmin:i.x,ymin:i.y,xmax:i.x,ymax:i.y}),s}computeBoxSegment(t){return h(0),{}}computeBoxMultiPoint(t,e){let i=!0;for(let n=0;n<t.getPointCount();++n){const s=t.getXY(n);if(i){e.length=4;for(let t=0;t<e.length;++t)e[t]=s.clone();i=!1}s.x<e[0].x&&(e[0]=s),s.y>e[1].y&&(e[1]=s),s.x>e[2].x&&(e[2]=s),s.y<e[3].y&&(e[3]=s)}for(let n=0;n<e.length;++n)e[n].mulThis(this.m_rpu);const s=j();return t.queryEnvelope(s),s}computeBoxMultiPath(t,e,i){let s=!0;const n=j();n.setEmpty();const o=t.querySegmentIterator();for(o.stripAttributes();o.nextPath();)for(;o.hasNextSegment();){const t=o.nextSegment(),a=t.getStartXY(),r=t.getEndXY();if(this.m_bIsPannablePcs&&(x(this.m_inputSR,0,[a],1),x(this.m_inputSR,0,[r],1)),s){e.length=4;for(let t=0;t<e.length;++t)e[t]=a.clone();s=!1}a.x<e[0].x&&e[0].assign(a),a.y>e[1].y&&e[1].assign(a),a.x>e[2].x&&e[2].assign(a),a.y<e[3].y&&e[3].assign(a),r.x<e[0].x&&e[0].assign(r),r.y>e[1].y&&e[1].assign(r),r.x>e[2].x&&e[2].assign(r),r.y<e[3].y&&e[3].assign(r);const m=this.findOrComputeBoxPoint(o.getStartPointIndex(),a,r,i);n.mergeEnvelope2D(m)}for(let a=0;a<e.length;++a)e[a].mulThis(this.m_rpu);return n}findOrComputeBoxSegment(e,i,s){if(!s.has(e)){let n=j();if(i.queryEnvelope(n),this.m_bIsPannablePcs){const e=t.construct(n.xmin,n.ymin),i=t.construct(n.xmax,n.ymax);x(this.m_inputSR,0,[e],1),x(this.m_inputSR,0,[i],1),n=this.m_envHelper.calculateBbox(e.x,e.y,i.x,i.y)}return s.set(e,n),n}return s.get(e)}findOrComputeBoxPoint(t,e,i,s){if(!s.has(t)){let n=j();return n.setCoords({xmin:e.x,ymin:e.y,xmax:i.x,ymax:i.y}),this.m_bIsPannablePcs&&(n=this.m_envHelper.calculateBbox(n.xmin,n.ymin,n.xmax,n.ymax)),s.set(t,n),n}return s.get(t)}checkPointInPolygon(t,e){return h(0),!1}estimateMinimumDistance(t,e){const i={stack:[],error:void 0,hasError:!1};try{const s=t=>_(this.m_a,this.m_eSquared,t),n=this.m_boundaryPtsA.map(s),o=this.m_boundaryPtsB.map(s);let a=Number.MAX_VALUE,u=0,h=0;for(let t=0;t<n.length;++t)for(let e=0;e<o.length;++e){const i=d.distance(n[t],o[e]);i<a&&(a=i,u=t,h=e)}t.outPoint.assign(this.m_boundaryPtsA[u]),e.outPoint.assign(this.m_boundaryPtsB[h]);const l=r(i,new m,!1);return c.geodeticDistance(this.m_a,this.m_eSquared,this.m_boundaryPtsA[u].x,this.m_boundaryPtsA[u].y,this.m_boundaryPtsB[h].x,this.m_boundaryPtsB[h].y,l,null,null,this.m_distCurveType),l.val}catch(s){i.error=s,i.hasError=!0}finally{u(i)}}swapGeometries(t,e){return b(t[0])>b(e[0])&&(e[0]=p(t[0],t[0]=e[0]),this.m_envGeomB=p(this.m_envGeomA,this.m_envGeomA=this.m_envGeomB),!0)}canUseSpatialTree(t,e){return!1}checkGeometriesIntersect(t,e,i,s){let n=t.getGeometryType(),o=e.getGeometryType();if(this.m_envGeomA.isIntersecting(this.m_envGeomB)){if(n===a.enumPoint&&2===e.getDimension()){const n=[0],o=[t.getXY()];if(E(e,o,1,this.m_tolerance,n),0!==n[0])return i.outPoint.assign(o[0]),s.outPoint.assign(o[0]),!0}else if(o===a.enumPoint&&2===t.getDimension()){const n=[2],o=[e.getXY()];if(E(t,o,1,this.m_tolerance,n),0!==n[0])return i.outPoint.assign(o[0]),s.outPoint.assign(o[0]),!0}if(n===a.enumMultiPoint&&2===e.getDimension())return this.multipointIntersectsArea(t,e,i,s);if(o===a.enumMultiPoint&&2===t.getDimension())return this.multipointIntersectsArea(e,t,s,i);let r,m,c=t,u=e;if(n===a.enumEnvelope&&(r=this.envelopeToPolygon(t),c=r,n=a.enumPolygon),o===a.enumEnvelope&&(m=this.envelopeToPolygon(e),u=m,o=a.enumPolygon),C(n)&&C(o)){const t=c.querySegmentIterator(),e=u.querySegmentIterator(),n=F(),o=F();if(k(c,u,t,e,n,o))return i.outPoint.assign(n.outPoint),s.outPoint.assign(n.outPoint),!0}}return!1}multipointIntersectsArea(t,e,i,s){return h(0),!1}getNearestNeighbourVisitor(t,e,i,s,n,o,a){return h(0),{}}buildSpatialTree(t,e){h(0)}}export{K as G,Z as a,z as m};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import{S as e}from"./Polyline.js";import{OperatorGeodeticDensifyCursor as r}from"./OperatorGeodeticDensifyByLength.js";class t{getOperatorType(){return 10317}supportsCurves(){return!0}accelerateGeometry(e,r,t){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,o,c,s){return new r(e,t,4,n,o,c,s)}execute(r,t,n,o,c,s){const u=new e([r]);return this.executeMany(u,t,n,o,c,s).next()}}export{t as OperatorShapePreservingDensify};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import{isLoaded as e,load as o,execute as r,executeMany as t,supportsCurves as n}from"./gx/operatorGeodeticDensifyByLength.js";import{getSpatialReference as s,toGeometry as u,fromSpatialReference as c,fromGeometry as i}from"./support/converterAPI.js";import{geodeticCurveType as p}from"./support/geodeticCurveType.js";function a(){return e()}function f(){return o()}function m(e,o,t="geodesic"){const n=s(e);return u(r(i(e),o,c(n),p[t]),n)}function d(e,o,r="geodesic"){const n=e.map(i),a=s(e);return t(n,o,c(a),p[r]).map((e=>u(e,a)))}function g(){return n()}export{m as execute,d as executeMany,a as isLoaded,f as load,g as supportsCurves};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import{F as n,S as e}from"../../../chunks/Polyline.js";import{l as r,i as s,p as t}from"../../../chunks/pe.js";let o;function u(){return!!o&&s()}async function i(){if(!u()){const[e]=await Promise.all([import("../../../chunks/OperatorShapePreservingDensify.js"),r()]);o=new e.OperatorShapePreservingDensify,n(t)}}function a(n,e,r,s){return o.execute(n,e,r,s,0,null)}function c(n,r,s,t){const u=o.executeMany(new e(n),r,s,t,0,null);return Array.from(u)}function p(){return o.supportsCurves()}export{a as execute,c as executeMany,u as isLoaded,i as load,p as supportsCurves};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import{isSome as r}from"../../core/arrayUtils.js";import{isLoaded as t,load as e,execute as o,executeMany as n,supportsCurves as s}from"./gx/operatorShapePreservingDensify.js";import{getSpatialReference as u,toGeometry as a,fromSpatialReference as i,fromGeometry as p}from"./support/converterAPI.js";function c(){return t()}function f(){return e()}function m(r,t,e){const n=u(r);return a(o(p(r),i(n),t,e),n)}function x(t,e,o){const s=t.map(p),c=u(t);return n(s,i(c),e,o).map((r=>a(r,c))).filter(r)}function d(){return s()}export{m as execute,x as executeMany,c as isLoaded,f as load,d as supportsCurves};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import"../core/shaderLibrary/ScreenSpacePass.glsl.js";import"../core/shaderModules/interfaces.js";import"../core/shaderModules/ShaderBuilder.js";import"../core/shaderModules/Texture2DPassUniform.js";export{O as OITCompositingPassParameters,b as build}from"../../../../chunks/OITCompositing.glsl.js";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import{ReloadableShaderModule as e}from"../core/shaderTechnique/ReloadableShaderModule.js";import{ShaderTechnique as r}from"../core/shaderTechnique/ShaderTechnique.js";import{Default3D as i}from"../lib/DefaultVertexAttributeLocations.js";import{Program as o}from"../lib/Program.js";import{a as t}from"../../../../chunks/OITCompositing.glsl.js";import{BlendFactor as s}from"../../../webgl/enums.js";import{makePipelineState as m,separateBlendingParams as l,defaultColorWrite as n}from"../../../webgl/renderState.js";class a extends r{initializeProgram(e){return new o(e.rctx,a.shader.get().build(),i)}initializePipeline(){return m({blending:l(s.SRC_ALPHA,s.ONE,s.ONE_MINUS_SRC_ALPHA,s.ONE_MINUS_SRC_ALPHA),colorWrite:n})}}a.shader=new e(t,(()=>import("./OITCompositing.glsl.js")));export{a as OITCompositingTechnique};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import{_ as t}from"../../../chunks/tslib.es6.js";import e from"../../../core/Evented.js";import{on as o}from"../../../core/events.js";import{destroyMaybe as i}from"../../../core/maybe.js";import{watch as n,when as s,syncAndInitial as r,initial as c,sync as p}from"../../../core/reactiveUtils.js";import{cloneScreenPoint as l,createScreenPoint as a}from"../../../core/screenUtils.js";import{property as u}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as h}from"../../../core/accessorSupport/decorators/subclass.js";import{setCalciteThemeClass as f}from"../../../support/themeUtils.js";import{base as d}from"./css.js";import{tooltipContentFactory as m}from"./content/tooltipContentFactory.js";import{isRTL as v}from"../../../widgets/support/widgetUtils.js";const g={base:`${d}`,ltr:`${d}--ltr`,rtl:`${d}--rtl`,debug:`${d}--debug`},y=20,_=16,b="bottom-end";let C=class extends e.EventedAccessor{constructor(t){super(t),this.info=null,this.options=null,this.position=null,this.content=null,this._focused=!1,this.outerContainer=document.createElement("div"),this.debug=!1,this._lastPosition=null,this._rtl=!1,this._prevXY=[0,0]}initialize(){const{outerContainer:t}=this;this.addHandles([n((()=>this.view.overlay?.surface),(e=>{t.remove(),e?.appendChild(t),this._rtl=v(e)}),r),n((()=>this.info),((e,o)=>{if(null!=this.content&&null!=e&&null!=o&&e.type===o.type)this.content.info=e;else{i(this.content);const o=m(this,e);o?(this.content=o,o.container&&t.appendChild(o.container),this.exitInputMode()):this.content=null}}),r),n((()=>({container:this.outerContainer,content:this.content,screenPoint:this._screenPoint,position:this.position})),(()=>this._updatePosition()),c),n((()=>({outerContainer:this.outerContainer,placement:this.effectivePlacement,effectiveOffset:this.effectiveOffset,rtl:this._rtl,debug:this.debug})),(({outerContainer:t,placement:e,effectiveOffset:o,rtl:i,debug:n})=>{const{classList:s}=t;s.add(g.base),s.toggle(g.rtl,i),s.toggle(g.ltr,!i),s.toggle(g.debug,n),this.outerContainer.style.setProperty("--offset",`${o}px`),f(t),$(t,e)}),c),s((()=>"feedback"===this.mode),(()=>{this.position=null,this._clearOverride("effectivePlacement")}),p),o(this.outerContainer,"paste",(t=>{this.emit("paste",t)})),o(this.outerContainer,["focusin","focusout"],(()=>{setTimeout((()=>{this._focused=this.content?.container?.contains(document.activeElement)??!1}))}))])}destroy(){this.info=null,this.content=i(this.content),this.outerContainer.remove()}get mode(){return this.content?.mode??"feedback"}get focused(){return this._focused}get visible(){return"none"!==this.outerContainer?.style.display}get contentContainer(){return this.content?.container}get effectivePlacement(){const t=this.options?.placement;return"auto"===t?"bottom-end":t??b}get _screenPoint(){const{inputManager:t}=this.view;return t?.multiTouchActive?null:t?.latestPointerLocation}get effectiveOffset(){return this.options?.offset??y}clear(){this.info=null}async enterInputMode(t){const e=this.position??this._lastPosition??this._screenPoint,o=this.position=l(e),{effectivePlacement:i}=this;this._override("effectivePlacement",i);const n=()=>{o&&(this.position=j(this.contentContainer,o,this.effectiveOffset,this.view),this._updatePosition())};await(this.content?.enterInputMode(t,n))}async exitInputMode(t){await(this.content?.exitInputMode(t))}onDragStart(t,e){this._prevXY=[t,e]}onDrag(t,e){const o=t-this._prevXY[0],i=e-this._prevXY[1];this._prevXY=[t,e];const{position:n}=this;if(n){const{view:s}=this,r=t-s.position[0],c=e-s.position[1];if(r<0||r>s.width||c<0||c>s.height-_)return;this.position=a(n.x+o,n.y+i)}}onDragEnd(){this._prevXY=[0,0]}_updatePosition(){const{style:t}=this.outerContainer,e=this.position??this._screenPoint;if(this._lastPosition=l(e),null!=e&&null!=this.content){t.display="block";const o=Math.round(e.x),i=Math.round(e.y);t.transform=`translate(${o}px, ${i}px)`}else t.display="none"}};function P(t){const e=new C(t());return e.addHandles(n((()=>t()),(({view:t,options:o,info:i})=>{e.view=t,void 0!==o&&(e.options=o),void 0!==i&&(e.info=i)}))),e}function j(t,e,o,i){if(!t||!i.container)return e;const n=t.getBoundingClientRect(),{left:s,top:r}=i.container.getBoundingClientRect();let{x:c,y:p}=e;const l=n.left-s-o;l<0&&(c-=l);const u=n.right-s+o-i.width;u>0&&(c-=u);const h=n.top-r-o;h<0&&(p-=h);const f=n.bottom-r+o-i.height;return f>0&&(p-=f),a(c,p)}t([u({nonNullable:!0})],C.prototype,"view",void 0),t([u()],C.prototype,"info",void 0),t([u()],C.prototype,"options",void 0),t([u()],C.prototype,"position",void 0),t([u()],C.prototype,"content",void 0),t([u()],C.prototype,"mode",null),t([u()],C.prototype,"_focused",void 0),t([u()],C.prototype,"focused",null),t([u()],C.prototype,"outerContainer",void 0),t([u()],C.prototype,"contentContainer",null),t([u()],C.prototype,"effectivePlacement",null),t([u()],C.prototype,"debug",void 0),t([u()],C.prototype,"_lastPosition",void 0),t([u()],C.prototype,"_screenPoint",null),t([u()],C.prototype,"_rtl",void 0),t([u()],C.prototype,"effectiveOffset",null),C=t([h("esri.views.interactive.tooltip.Tooltip")],C);const w=["top","bottom","leading","trailing"].flatMap((t=>[x(`${t}-start`),x(t),x(`${t}-end`)]));function x(t){return`${g.base}--${t}`}function $({classList:t},e){w.forEach((e=>t.remove(e))),t.add(x(e))}export{P as makeTooltip};
|
|
File without changes
|