@arcgis/core 5.1.0-next.83 → 5.1.0-next.85
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{e89dc473f46a5584d2ef.js → 004af103a94d21cb4889.js} +3 -3
- package/assets/esri/core/workers/chunks/53d13e13d8729bd4dcf2.js +1 -0
- package/assets/esri/core/workers/chunks/{45c83eb7c2a06166e3b0.js → 56717ff315c6ec874142.js} +1 -1
- package/assets/esri/core/workers/chunks/{1e2c0c6d724f7639d4c1.js → 713ab619060bd5087479.js} +13 -13
- package/assets/esri/core/workers/chunks/{a9b5ce00323cd5574bf7.js → 7160e3e7340beb7fdb42.js} +1 -1
- package/assets/esri/core/workers/chunks/79eca9ccd4dc52da1d59.js +1 -0
- package/assets/esri/core/workers/chunks/{bd8cb64b6e08839398f3.js → c7da0981822182e15f3a.js} +1 -1
- package/assets/esri/core/workers/chunks/f9fe3c9867b0bdb2aec6.js +596 -0
- package/assets/esri/themes/base/widgets/_BatchAttributeForm.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/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_en.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ar.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bg.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bs.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ca.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_cs.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_da.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_de.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_el.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_es.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_et.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fi.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fr.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_he.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hr.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hu.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_id.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_it.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ja.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ko.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lt.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lv.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_nl.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_no.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pl.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-BR.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-PT.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ro.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ru.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sk.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sl.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sr.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sv.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_th.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_tr.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_uk.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_vi.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-CN.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-HK.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-TW.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_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_nl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_no.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/EdgeShader.glsl.js +13 -9
- package/chunks/Fog.glsl.js +1 -1
- package/chunks/GlowBlur.glsl.js +9 -13
- package/chunks/GlowComposition.glsl.js +10 -10
- package/chunks/ShadowCastVisualize.glsl.js +10 -10
- package/config.js +1 -1
- package/core/arrayUtils.js +1 -1
- package/core/has.js +1 -1
- package/core/screenUtils.js +1 -1
- package/form/types.d.ts +1 -1
- package/geohash/GeohashCell.js +1 -1
- package/geohash/GeohashTree.js +1 -1
- package/kernel.js +1 -1
- package/layers/scene/ModelFileInfo.js +1 -1
- package/layers/scene/modelQuerySupport.js +1 -1
- package/package.json +1 -1
- package/popup/Features.d.ts +10 -0
- package/popup/Features.js +1 -1
- package/rest/knowledgeGraph/GraphQueryStreamingResult.d.ts +4 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
- package/views/2d/FrameTask.js +1 -1
- package/views/2d/LabelManager.js +1 -1
- package/views/2d/engine/DisplayObject.js +1 -1
- package/views/2d/engine/Stage.js +1 -1
- package/views/2d/engine/flow/FlowContainer.js +1 -1
- package/views/2d/engine/flow/FlowView2D.js +1 -1
- package/views/2d/engine/flow/styles/AFlowResources.js +1 -1
- package/views/2d/engine/flow/styles/Imagery.js +1 -1
- package/views/2d/engine/flow/styles/Particles.js +1 -1
- package/views/2d/engine/flow/styles/Stack.js +1 -1
- package/views/2d/engine/flow/styles/Streamlines.js +1 -1
- package/views/2d/engine/transitions/FadeTransition.js +1 -1
- package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
- package/views/2d/engine/vectorTiles/decluttering/SymbolDeclutterer.js +1 -1
- package/views/2d/engine/vectorTiles/decluttering/SymbolFader.js +1 -1
- package/views/2d/engine/vectorTiles/decluttering/SymbolRepository.js +1 -1
- package/views/2d/engine/webgl/AFeatureTile.js +1 -1
- package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
- package/views/2d/engine/webgl/FeatureTile.js +1 -1
- package/views/2d/engine/webgl/ResizableUint32Array.js +2 -0
- package/views/2d/engine/webgl/TileCpuState.js +2 -0
- package/views/2d/engine/webgl/TileGpuState.js +2 -0
- package/views/2d/engine/webgl/cpuMapped/CpuBuffer.js +2 -0
- package/views/2d/engine/webgl/cpuMapped/CpuMeshData.js +2 -0
- package/views/2d/engine/webgl/cpuMapped/GpuMeshState.js +2 -0
- package/views/2d/engine/webgl/effects/HittestEffect.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/TechniqueDebugContainer.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/TestDisplayObject.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTechnique.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
- package/views/2d/layers/GeoRSSLayerView2D.js +1 -1
- package/views/2d/layers/GraphicsLayerView2D.js +1 -1
- package/views/2d/layers/ImageryLayerView2D.js +1 -1
- package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
- package/views/2d/layers/KMLLayerView2D.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/2d/layers/MapNotesLayerView2D.js +1 -1
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/RouteLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/features/FeatureContainer.js +1 -1
- package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
- package/views/2d/layers/features/FeatureTilePresentStrategy.js +2 -0
- package/views/2d/layers/features/Processor.js +1 -1
- package/views/2d/layers/features/RenderState.js +1 -1
- package/views/2d/layers/features/aggregation/AAggregateSpatialIndex.js +1 -1
- package/views/2d/layers/features/aggregation/GeohashSpatialIndex.js +1 -1
- package/views/2d/layers/features/aggregation/GridCell.js +1 -1
- package/views/2d/layers/features/aggregation/GridIndexCell.js +2 -0
- package/views/2d/layers/features/aggregation/GridSpatialIndex.js +1 -1
- package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
- package/views/2d/layers/features/processor/AProcessorStrategy.js +1 -1
- package/views/2d/layers/features/processor/BinningStrategy.js +1 -1
- package/views/2d/layers/features/processor/ClusterStrategy.js +1 -1
- package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
- package/views/2d/layers/features/processor/TrackStrategy.js +1 -1
- package/views/2d/layers/features/sources/FeatureSourceMessage.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/ASourceChunk.js +1 -1
- package/views/2d/layers/features/support/Hashed.js +2 -0
- package/views/2d/layers/graphics/AGraphicContainer.js +1 -1
- package/views/2d/layers/graphics/GraphicStore.js +1 -1
- package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
- package/views/2d/layers/imagery/ImageryView2D.js +1 -1
- package/views/2d/layers/support/vectorTileDebugUtils.js +1 -1
- package/views/2d/support/hitTestUtils.js +1 -1
- package/views/2d/tiling/FeatureTileSubscriptionManager.js +1 -1
- package/views/2d/tiling/TileCombinedCoverage.js +2 -0
- package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightTool2.js +2 -0
- package/views/3d/analysis/LineOfSightAnalysisView3D.js +1 -1
- package/views/3d/analysis/ShadowCast/ShadowCastTooltip.js +1 -1
- package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedEditTool.js +2 -0
- package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedTool2.js +2 -0
- package/views/3d/analysis/Viewshed/viewshedSubToolUtils.js +2 -0
- package/views/3d/analysis/Viewshed/viewshedToolUtils.js +1 -1
- package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
- package/views/3d/environment/CloudyWeather.js +1 -1
- package/views/3d/environment/FoggyWeather.js +1 -1
- package/views/3d/environment/RainyWeather.js +1 -1
- package/views/3d/environment/SnowyWeather.js +1 -1
- package/views/3d/environment/SunnyWeather.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/graphics/tessellationUtils.js +1 -1
- package/views/3d/layers/i3s/I3SIndex.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatTextureAtlas.js +1 -1
- package/views/3d/webgl/ManagedColorAttachment.js +1 -1
- package/views/3d/webgl/ManagedDepthAttachment.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
- package/views/3d/webgl-engine/core/FBOCache.js +1 -1
- package/views/3d/webgl-engine/core/FBOCacheFormats.js +1 -1
- package/views/3d/webgl-engine/core/FBOCacheUsage.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +11 -11
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
- package/views/3d/webgl-engine/effects/fog/Fog.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
- package/views/3d/webgl-engine/effects/geometry/RenderOccludedRenderNode.js +1 -1
- package/views/3d/webgl-engine/effects/glow/Glow.js +2 -0
- package/views/3d/webgl-engine/effects/glow/GlowBlur.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowComposition.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/raymarching/{RayDistanceFalloff.glsl.js → DistanceFalloff.glsl.js} +2 -2
- package/views/3d/webgl-engine/lib/CutFillComputationRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/CutFillVisualizationRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/GPUPointOcclusionQuery.js +1 -1
- package/views/3d/webgl-engine/lib/MainFramebuffer.js +1 -1
- package/views/3d/webgl-engine/lib/ManagedTexture.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
- package/views/3d/webgl-engine/lib/StencilUtils.js +1 -1
- package/views/3d/webgl-engine/lib/ViewshedShadowMap.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeShader.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/verticalOffsetUtils.js +1 -1
- package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/MeasurementArrowTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/MeasurementArrowTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/NativeLineTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/PointRendererTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ScreenSpacePassAtmosphere.glsl.js +1 -7
- package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechniqueConfiguration.js +1 -1
- package/views/VideoView.js +1 -1
- package/views/View2D.js +1 -1
- package/views/draw/support/GraphicMover.js +1 -1
- package/views/support/rasterHitTestUtils.js +1 -1
- package/views/support/waitForResources.js +1 -1
- package/views/video/VideoOperationalDataView.js +1 -1
- package/views/webgl/FramebufferObject.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/views/webgl/textureUtils.js +1 -1
- package/widgets/BatchAttributeForm/css.js +1 -1
- package/widgets/BatchAttributeForm/inputs/UtilityNetworkAssociationsElementInput.d.ts +61 -0
- package/widgets/BatchAttributeForm/inputs/UtilityNetworkAssociationsElementInput.js +2 -0
- package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
- package/widgets/BatchAttributeForm/inputs/types.d.ts +9 -4
- package/widgets/BatchAttributeForm/templates/UtilityNetworkAssociationsElementTemplate.js +2 -0
- package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/templateUtils.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/Grid/Column.d.ts +17 -2
- package/widgets/FeatureTable/Grid/Column.js +1 -1
- package/widgets/FeatureTable/Grid/Grid.js +1 -1
- package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
- package/widgets/FeatureTable/Grid/GroupColumn.d.ts +7 -1
- package/widgets/FeatureTable/Grid/GroupColumn.js +1 -1
- package/widgets/FeatureTable/support/ColumnTemplateBase.d.ts +9 -1
- package/widgets/FeatureTable/support/ColumnTemplateBase.js +1 -1
- package/widgets/FeatureTable/support/types.d.ts +8 -0
- package/widgets/FeatureTable.js +1 -1
- package/assets/esri/core/workers/chunks/38f1a86b8dd9ee684ee5.js +0 -596
- package/assets/esri/core/workers/chunks/8f4cd30ce23e41c1a42c.js +0 -1
- package/assets/esri/core/workers/chunks/cbf1a03f54bd8d2a2b47.js +0 -1
- package/views/2d/engine/webgl/PooledUint32Array.js +0 -2
- package/views/2d/engine/webgl/cpuMapped/Buffer.js +0 -2
- package/views/2d/engine/webgl/cpuMapped/MappedMesh.js +0 -2
- package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +0 -2
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/DistanceFalloff.glsl.js +0 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[926,8013],{69540(e,t,s){s.d(t,{OU:()=>u,Pw:()=>d});var r=s(5482),i=s(69622),n=(s(44208),s(4718)),o=(s(53966),s(97768)),a=s(88620),h=s(64108);const l=Symbol("ClonableMixin"),u=e=>{var t;const s=e;let i=class extends s{constructor(){super(...arguments),this[t]=!0}static{t=l}clone(e){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const s=t.metadata,r=t.store,i={},h=new Map;for(const t in s){const o=s[t],a=r?.originOf(t),l=o.clonable;if(o.readOnly||!1===l||7!==a&&0!==a&&5!==a&&4!==a)continue;const u=this[t];let d=null;if("function"==typeof l)d=l(u,e);else if("reference"===l)d=u;else if(d=(0,n.TU)(u,e),null!=u&&null==d)continue;0===a?h.set(t,d):i[t]=d}const l=new(0,Object.getPrototypeOf(this).constructor)(i);if(h.size){const e=(0,a.oY)(l)?.store;if(e)for(const[t,s]of h)e.set(t,s,0)}return l}};return i=(0,r.Cg)([(0,h.$)("esri.core.Clonable")],i),i},d=u(i.A)},7762(e,t,s){s.d(t,{A:()=>W});var r,i=s(5482),n=s(98291),o=s(4576),a=s(65529),h=s(36563),l=s(4718),u=s(53966),d=s(93687),c=s(76030),f=s(56507),_=s(62788),p=s(10107),m=s(7695),g=s(64108),y=s(95488),b=s(12195);class v{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class x{constructor(e,t,s,r,i){this.target=e,this.added=t,this.removed=s,this.start=r,this.deleteCount=i}}const I=new d.A(()=>new v,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function A(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function w(e){return e?e instanceof D?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function T(e){if(e?.length)return e[0]}function C(e,t,s,r){const i=Math.min(e.length-s,t.length-r);let n=0;for(;n<i&&e[s+n]===t[r+n];)n++;return n}function M(e,t,s,r){t&&t.forEach((t,i,n)=>{e.push(t),M(e,s.call(r,t,i,n),s,r)})}const S=new Set,F=new Set,O=new Set,B=new Map;let k=0,D=r=class extends a.nJ{static ofType(e){if(!e)return r;if(B.has(e))return B.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const s in e.typeMap){const r=e.typeMap[s].prototype.declaredClass;t?t+=` | ${r}`:t=r}let s=class extends r{};return(0,i.Cg)([(0,m.u)({Type:e,ensureType:"function"==typeof e?(0,f.dp)(e):(0,f.aq)(e)})],s.prototype,"itemType",void 0),s=(0,i.Cg)([(0,g.$)(`esri.core.Collection<${t}>`)],s),B.set(e,s),s}static isCollection(e){return null!=e&&e instanceof r}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new y.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:k++})}normalizeCtorArgs(e){return e?(0,o.yc)(e)||e instanceof r?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?u.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,_.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,w(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,h.hA)();if("change"===e){const e=this._chgListeners,s={removed:!1,callback:t};return e.push(s),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,h.hA)(()=>{s.removed=!0,e.splice(e.indexOf(s),1)})}return super.on(e,t)}once(e,t){const s="deref"in t?()=>t.deref():()=>t,r=this.on(e,e=>{s()?.call(null,e),r.remove()});return r}add(e,t){if((0,_.gc)(this._observable),this._emitBeforeChanges(1))return this;const s=this.getNextIndex(t??null);return this._splice(s,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,_.gc)(this._observable),!e?.length)return this;if(this._emitBeforeChanges(1))return this;const s=this.getNextIndex(t);return this._splice(s,0,w(e)),this._emitAfterChanges(1),this}at(e){if((0,_.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,_.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];const e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,_.gc)(this._observable),this._createNewInstance({items:this._items.map(l.o8)})}concat(...e){(0,_.gc)(this._observable);const t=e.map(w);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,_.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const s=this._splice(0,this.length),r=s.length;for(let i=0;i<r;i++)e.call(t,s[i],i,s);this._emitAfterChanges(2)}destroyAll(){this.drain(A)}destroyMany(e){const t=this.removeMany(e);return t.forEach(A),t}every(e,t){return(0,_.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,_.gc)(this._observable);const s=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:s})}find(e,t){return(0,_.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,_.gc)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,_.gc)(this._observable);const s=[];return M(s,this,e,t),new r(s)}forEach(e,t){return(0,_.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,_.gc)(this._observable),this._items[e]}getNextIndex(e){(0,_.gc)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,_.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,_.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,_.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,_.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,_.gc)(this._observable);const s=this._items.map(e,t);return new r({items:s})}reorder(e,t=this.length-1){(0,_.gc)(this._observable);const s=this.indexOf(e);if(-1!==s){if(t<0?t=0:t>=this.length&&(t=this.length-1),s!==t){if(this._emitBeforeChanges(4))return e;this._splice(s,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,_.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=T(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,_.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,_.gc)(this._observable);const s=this._items;return 2===arguments.length?s.reduce(e,t):s.reduce(e)}reduceRight(e,t){(0,_.gc)(this._observable);const s=this._items;return 2===arguments.length?s.reduceRight(e,t):s.reduceRight(e)}remove(e){return(0,_.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,_.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;const t=T(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,_.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];const t=e instanceof r?e.toArray():e,s=this._items,i=[],n=t.length;for(let e=0;e<n;e++){const r=t[e],n=s.indexOf(r);if(n>-1){const r=1+C(t,s,e+1,n+1),o=this._splice(n,r);o&&o.length>0&&i.push.apply(i,o),e+=r-1}}return this._emitAfterChanges(2),i}reverse(){if((0,_.gc)(this._observable),this._emitBeforeChanges(4))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,_.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=T(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,_.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,_.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,_.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){const t=this.length-1;for(let s=0;s<t;s++)if(e(this.items[s],this.items[s+1])>0)return!0;return!1}splice(e,t,...s){(0,_.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;const r=(t?2:0)|(s.length?1:0);if(this._emitBeforeChanges(r))return[];const i=this._splice(e,t,s)||[];return this._emitAfterChanges(r),i}toArray(){return(0,_.gc)(this._observable),this._items.slice()}toJSON(e){return(0,_.gc)(this._observable),this.toArray().map(t=>(0,b.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,_.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,_.gc)(this._observable),this._items.toString()}unshift(...e){return(0,_.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,s){const r=this._items,i=this.itemType;let n,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,c._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(o=r.splice(e,t),this.hasEventListener("before-remove")){const t=I.acquire();t.target=this,t.cancellable=!0;for(let s=0,i=o.length;s<i;s++)n=o[s],t.reset(n),this.emit("before-remove",t),t.defaultPrevented&&(o.splice(s,1),r.splice(e,0,n),e+=1,s-=1,i-=1);I.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){const e=I.acquire();e.target=this,e.cancellable=!1;const t=o.length;for(let s=0;s<t;s++)e.reset(o[s]),this.emit("after-remove",e);I.release(e)}}if(s?.length){if(i){const e=[];for(const t of s){const s=i.ensureType(t);null==s&&null!=t||e.push(s)}s=e}const t=this.hasEventListener("before-add"),n=this.hasEventListener("after-add"),o=e===this.length;if(t||n){const i=I.acquire();i.target=this,i.cancellable=!0;const a=I.acquire();a.target=this,a.cancellable=!1;for(const h of s)t?(i.reset(h),this.emit("before-add",i),i.defaultPrevented||(o?r.push(h):r.splice(e++,0,h),this._length=r.length,n&&(a.reset(h),this.emit("after-add",a)))):(o?r.push(h):r.splice(e++,0,h),this._length=r.length,a.reset(h),this.emit("after-add",a));I.release(a),I.release(i)}else{if(o)for(const e of s)r.push(e);else r.splice(e,0,...s);this._length=r.length}}if((s?.length||o?.length)&&this._notifyChangeEvent(s,o),this.hasEventListener("after-splice")){const r=new x(this,s,o,e,t);this.emit("after-splice",r)}return o}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const s=I.acquire();s.target=this,s.cancellable=!0,s.type=e,this.emit("before-changes",s),t=s.defaultPrevented,I.release(s)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=I.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),I.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;S.clear(),F.clear(),O.clear();for(const{added:t,removed:s}of e){if(t)if(0===O.size&&0===F.size)for(const e of t)S.add(e);else for(const e of t)F.has(e)?(O.add(e),F.delete(e)):O.has(e)||S.add(e);if(s)if(0===O.size&&0===S.size)for(const e of s)F.add(e);else for(const e of s)S.has(e)?S.delete(e):(O.delete(e),F.add(e))}const s=n.A.acquire();S.forEach(e=>{s.push(e)});const r=n.A.acquire();F.forEach(e=>{r.push(e)});const i=this._items,o=t.items,a=n.A.acquire();if(O.forEach(e=>{o.indexOf(e)!==i.indexOf(e)&&a.push(e)}),t.listeners&&(s.length||r.length||a.length)){const e={target:this,added:s,removed:r,moved:a},i=t.listeners.length;for(let s=0;s<i;s++){const r=t.listeners[s];r.removed||r.callback.call(this,e)}}n.A.release(s),n.A.release(r),n.A.release(a)}S.clear(),F.clear(),O.clear()}};(0,i.Cg)([(0,p.MZ)()],D.prototype,"_updating",void 0),(0,i.Cg)([(0,p.MZ)()],D.prototype,"_length",void 0),(0,i.Cg)([(0,p.MZ)()],D.prototype,"length",null),(0,i.Cg)([(0,p.MZ)()],D.prototype,"items",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],D.prototype,"updating",null),D=r=(0,i.Cg)([(0,g.$)("esri.core.Collection")],D);const W=D},563(e,t,s){s.d(t,{QueueProcessor:()=>l,SharedConcurrency:()=>d});var r=s(97768),i=s(17676),n=s(9775),o=s(32587),a=s(76030),h=s(44794);class l{constructor(e){this._schedule=null,this._deferreds=new o.A,this._controllers=new o.A,this._processingItems=new o.A,this._pausedSignal=(0,h.v)(!1),this.process=e.process,this.concurrency=e.concurrency,this.sharedConcurrency=e.sharedConcurrency??c,this._queue=new n.A(e.peeker)}destroy(){this.clear(),this._schedule=(0,r.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&!this.full}get full(){return this._processingItems.size>=this.concurrency||this.sharedConcurrency.full}abort(e){const t=this._controllers.get(e);t?.abort()}clear(){this._queue.clear();const e=Array.from(this._controllers.values());this._controllers.clear(),e.forEach(e=>e.abort()),this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear(),this._cancelNext()}forEach(e){this._deferreds.forEach((t,s)=>e(s))}_get(e){const t=this._deferreds.get(e);return t?.promise}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(e,t){const s=this._get(e);if(s)return s;const r=new AbortController,n=Promise.withResolvers(),o=t?(0,i.u7)(t,()=>r.abort()):null,a=(0,i.NY)(r.signal,()=>{const t=this._processingItems.get(e);t&&t.controller.abort(),h(),n.reject((0,i.NK)())}),h=()=>{a.remove(),o?.remove(),this._removeItem(e),this._queue.remove(e),this._scheduleNext()};return this._deferreds.set(e,n),this._controllers.set(e,r),n.promise.then(h,h),this._queue.push(e),this._scheduleNext(),n.promise}last(){return this._queue.last()}reset(){const e=Array.from(this._processingItems.values());this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear();for(const t of e)this._queue.push(t.item),t.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){const e=[];for(;this._queue.length;)e.push(this._queue.pop());return this.clear(),e}_removeItem(e){this._deferreds.delete(e),this._controllers.delete(e),this._processingItems.has(e)&&(this._processingItems.delete(e),this.sharedConcurrency.current.value-=1)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,a._)(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency&&!this.sharedConcurrency.full;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&(this._schedule.remove(),this._schedule=null)}_processResult(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).resolve(t))}_processError(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).reject(t))}_canProcessFulfillment(e){return!!this._deferreds.get(e.item)&&this._processingItems.get(e.item)===e}_process(e){if(null==e)return;let t;const s=new AbortController,r=new u(e,s);this._processingItems.set(e,r),this.sharedConcurrency.current.value+=1;try{t=this.process(e,s.signal)}catch(e){this._processError(r,e)}(0,i.$X)(t)?(r.promise=t,t.then(e=>this._processResult(r,e),e=>this._processError(r,e))):this._processResult(r,t)}}class u{constructor(e,t){this.item=e,this.controller=t,this.promise=null}}class d{constructor(e){this.limit=e,this.current=(0,h.v)(0)}get full(){return this.current.value>=this.limit}}const c=new d(1/0)},32587(e,t,s){s.d(t,{A:()=>n});var r=s(62788),i=s(95488);class n{constructor(e){this._observable=new i.I,this._notifyPending=!1,this._batchDepth=0,this._map=new Map(e)}get size(){return(0,r.gc)(this._observable),this._map.size}batch(e){try{this._batchDepth++,e()}finally{this._batchDepth--,this._notifyPending&&0===this._batchDepth&&(this._notifyPending=!1,this._notify())}}clear(){this._map.size>0&&(this._map.clear(),this._notify())}delete(e){const t=this._map.delete(e);return t&&this._notify(),t}entries(){return(0,r.gc)(this._observable),this._map.entries()}forEach(e,t){(0,r.gc)(this._observable),this._map.forEach((s,r)=>e.call(t,s,r,this),t)}get(e){return(0,r.gc)(this._observable),this._map.get(e)}has(e){return(0,r.gc)(this._observable),this._map.has(e)}keys(){return(0,r.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._notify(),this}transformValues(e,t=this._map.keys()){this.batch(()=>{for(const s of t){if(!this._map.has(s))continue;const t=this._map.get(s),r=e(t,s);r!==t&&this.set(s,r)}})}values(){return(0,r.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,r.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}_notify(){this._batchDepth>0?this._notifyPending=!0:this._observable.notify()}}},7695(e,t,s){function r(e){return(t,s)=>{t[s]=e}}s.d(t,{u:()=>r})},48163(e,t,s){function r(){return[0,0]}function i(e){return[e[0],e[1]]}function n(e,t){return[e,t]}function o(){return n(1,1)}function a(){return n(1,0)}function h(){return n(0,1)}s.d(t,{Un:()=>l,fA:()=>n,o8:()=>i,vt:()=>r});const l=o(),u=a(),d=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_X:u,UNIT_Y:d,ZEROS:[0,0],clone:i,create:r,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){const s=Math.min(2,e.length);for(let r=0;r<s;++r)t[r]=e[r];return t},fromValues:n,ones:o,unitX:a,unitY:h,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},36708(e,t,s){s.d(t,{C_:()=>c,OH:()=>p,Vh:()=>m,on:()=>d,pc:()=>g,wB:()=>h,z7:()=>l});var r=s(37955),i=s(36563),n=s(97768),o=s(17676),a=s(14012);function h(e,t,s={}){return u(e,t,s,f)}function l(e,t,s={}){return u(e,t,s,_)}function u(e,t,s={},r){let i=null;const o=s.once?(e,s)=>{r(e)&&((0,n.xt)(i),t(e,s))}:(e,s)=>{r(e)&&t(e,s)};if(i=(0,a.Cn)(e,o,s.sync,s.equals),s.initial){const t=e();o(t,t)}return i}function d(e,t,s,o={}){let a=null,l=null,u=null;function d(){a&&l&&(l.remove(),o.onListenerRemove?.(a),a=null,l=null)}function c(e){o.once&&o.once&&(0,n.xt)(u),s(e)}const f=h(e,(e,s)=>{d(),(0,r.wb)(e)&&(a=e,l=(0,r.on)(e,t,c),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return u=(0,i.hA)(()=>{f.remove(),d()}),u}function c(e,t){return function(e,t,s){if((0,o.G4)(s))return Promise.reject((0,o.NK)());const r=e();if(t?.(r))return Promise.resolve(r);let a=null;function h(){a=(0,n.xt)(a)}return new Promise((r,n)=>{a=(0,i.vE)([(0,o.u7)(s,()=>{h(),n((0,o.NK)())}),u(e,e=>{h(),r(e)},{sync:!1,once:!0},t??f)])})}(e,_,t)}function f(e){return!0}function _(e){return!!e}s(80559);const p={sync:!0},m={initial:!0},g={sync:!0,initial:!0}},60408(e,t,s){function r(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function i(e){return void 0!==e.points}function n(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function h(e){return"object"==typeof e&&"vertexAttributes"in e}function l(e){return e?n(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":i(e)?"esriGeometryMultipoint":null:null}function u(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function d(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}s.d(t,{$B:()=>l,Bi:()=>a,Pv:()=>u,Rg:()=>o,U9:()=>i,W0:()=>d,ZC:()=>r,fT:()=>n,uW:()=>h})},65864(e,t,s){s.d(t,{rS:()=>u,xD:()=>c});var r=s(5443),i=s(91075),n=s(48526),o=s(86738),a=s(39829),h=s(82799),l=s(60408);function u(e){return null==e?null:e instanceof i.A?e:(0,l.fT)(e)?o.A.fromJSON(e):(0,l.Rg)(e)?h.A.fromJSON(e):(0,l.Bi)(e)?a.A.fromJSON(e):(0,l.U9)(e)?n.A.fromJSON(e):(0,l.ZC)(e)?r.A.fromJSON(e):null}const d={esriGeometryPoint:o.A,esriGeometryPolyline:h.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:r.A,esriGeometryMultipoint:n.A,esriGeometryMultiPatch:a.A};function c(e){return e&&d[e]||null}},64714(e,t,s){s.d(t,{F0:()=>a,Vx:()=>u,e2:()=>c,f:()=>f});var r=s(44208),i=s(4718),n=s(99352),o=s(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const h=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function u(e,t){if((0,r.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let s="";t&&(s+=`this${d(t)} = null;`);for(const t in e)s+=`this${d(t)} = ${JSON.stringify(e[t])};`;const r=new Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${s};\n }\n }\n `)();return()=>new r}catch(s){return()=>t?{[t]:null,...e}:{...e}}}function d(e){return h.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.o8)(e)}}]}function f(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:n.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:n.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},17754(e,t,s){function r(e){return e>>>24&255}function i(e){return 16777215&e}function n(e,t){return e<<24|t}s.d(t,{gE:()=>i,wY:()=>r,xb:()=>n})},39357(e,t,s){s.d(t,{A:()=>a});var r,i=s(5482),n=s(25482),o=s(91429);let a=r=class extends n.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=r=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],a)},53177(e,t,s){s.d(t,{A:()=>u});var r,i=s(5482),n=s(4718),o=s(91429),a=s(39357),h=s(76357),l=s(93223);let u=class extends h.A{static{r=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const s=String(e);this.codedValues.some(e=>(String(e.code)===s&&(t=e.name),!!t))}return t}clone(){return new r({codedValues:(0,n.o8)(this.codedValues),name:this.name})}};(0,i.Cg)([(0,o.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],u.prototype,"codedValues",void 0),(0,i.Cg)([(0,l.e)({codedValue:"coded-value"})],u.prototype,"type",void 0),u=r=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],u)},76357(e,t,s){s.d(t,{A:()=>l});var r=s(5482),i=s(66552),n=s(25482),o=s(91429),a=s(93223);const h=new i.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let l=class extends n.o{constructor(e){super(e),this.name=null,this.type=null}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"name",void 0),(0,r.Cg)([(0,a.e)(h),(0,o.MZ)({json:{write:{isRequired:!0}}})],l.prototype,"type",void 0),l=(0,r.Cg)([(0,o.$K)("esri.layers.support.Domain")],l)},20437(e,t,s){s.d(t,{A:()=>_});var r,i=s(5482),n=s(66552),o=s(25482),a=s(91429),h=s(56507),l=s(8631),u=s(98453),d=s(36005),c=s(93223);const f=new n.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let _=class extends o.o{static{r=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let s=null;try{s=t?JSON.parse(t):null}catch(e){}return s?.value??null}readValueType(e,{description:t}){let s=null;try{s=t?JSON.parse(t):null}catch(e){}return s?f.fromJSON(s.fieldValueType):null}clone(){return new r({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],_.prototype,"alias",void 0),(0,i.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],_.prototype,"defaultValue",void 0),(0,i.Cg)([(0,a.MZ)()],_.prototype,"description",void 0),(0,i.Cg)([(0,d.w)("description")],_.prototype,"readDescription",null),(0,i.Cg)([(0,a.MZ)({types:l.g,json:{read:{reader:l.r},write:!0}})],_.prototype,"domain",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],_.prototype,"editable",void 0),(0,i.Cg)([(0,a.MZ)({type:h.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],_.prototype,"length",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],_.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],_.prototype,"nullable",void 0),(0,i.Cg)([(0,c.e)(u.m)],_.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)()],_.prototype,"valueType",void 0),(0,i.Cg)([(0,d.w)("valueType",["description"])],_.prototype,"readValueType",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],_.prototype,"visible",void 0),_=r=(0,i.Cg)([(0,a.$K)("esri.layers.support.Field")],_)},41628(e,t,s){s.d(t,{A:()=>h});var r,i=s(5482),n=s(91429),o=s(76357),a=s(93223);let h=class extends o.A{static{r=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new r({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i.Cg)([(0,n.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,s){t[s]=[this.minValue||0,e]},isRequired:!0}}})],h.prototype,"maxValue",void 0),(0,i.Cg)([(0,n.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,s){t[s]=[e,this.maxValue||0]},isRequired:!0}}})],h.prototype,"minValue",void 0),(0,i.Cg)([(0,a.e)({range:"range"})],h.prototype,"type",void 0),h=r=(0,i.Cg)([(0,n.$K)("esri.layers.support.RangeDomain")],h)},8631(e,t,s){s.d(t,{r:()=>c,g:()=>d});var r,i=s(53177),n=s(76357),o=s(5482),a=s(91429),h=s(93223);let l=class extends n.A{static{r=this}constructor(e){super(e),this.type="inherited"}clone(){return new r}};(0,o.Cg)([(0,h.e)({inherited:"inherited"})],l.prototype,"type",void 0),l=r=(0,o.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],l);var u=s(41628);const d={key:"type",base:n.A,typeMap:{range:u.A,"coded-value":i.A,inherited:l}};function c(e){if(!e?.type)return null;switch(e.type){case"range":return u.A.fromJSON(e);case"codedValue":return i.A.fromJSON(e);case"inherited":return l.fromJSON(e)}return null}},98453(e,t,s){s.d(t,{m:()=>r});const r=new(s(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},39412(e,t,s){s.d(t,{N:()=>n});var r=s(2741);let i=null;async function n(){return i||(i=async function(){const e=await s.e(7733).then(s.bind(s,57733));return await e.default({module_or_path:(0,r.s)("esri/libs/parquet/pkg/bundle_bg.wasm")}),e}()),i}},2272(e,t,s){s.d(t,{Dl:()=>l,gf:()=>d,jV:()=>h,lF:()=>u});var r=s(92602),i=s(70333),n=s(4718),o=s(84952),a=s(926);function h(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function l(e){return"string"==typeof e?(0,o.An)(e):(0,n.o8)(e)}function u(e,t,s){const r={};for(const i in e){if("declaredClass"===i)continue;const n=e[i];if(null!=n&&"function"!=typeof n)if(Array.isArray(n))r[i]=n.map(e=>u(e));else if("object"==typeof n)if(n.toJSON){const e=n.toJSON(s?.[i]);r[i]=t?e:JSON.stringify(e)}else r[i]=t?n:JSON.stringify(n);else r[i]=n}return r}async function d(e,t,n){const o=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.getApiKey)(e)??i.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!i.id&&r.A.request.useIdentity&&await Promise.all([s.e(7632),s.e(1936),s.e(148)]).then(s.bind(s,50148));const h=await i.id.getCredential(e,n);return h?.token}},926(e,t,s){s.d(t,{Dd:()=>c,Jn:()=>f,Qc:()=>_,getApiKey:()=>u,getSessionToken:()=>d});var r=s(92602),i=s(11254),n=s(84952);const o=/^https?:\/\/(i?basemaps|basemapstyles)-api\.arcgis\.com\//i,a=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]),h=new Map;let l=null;function u(e){if(!_(e))return null;const t=t=>t instanceof RegExp?t.test(e):"string"==typeof t&&e.startsWith(t),s=r.A.apiKeys;if(Array.isArray(s.scopes))for(const e of s.scopes)if(Array.isArray(e.urls)){if(e.urls.some(t))return e.token}else if(t(e.urls))return e.token;return s.basemapStyles&&o.test(e)?s.basemapStyles:r.A.apiKey&&/^https?:\/\/.+\.arcgis\.com(\/|$)/i.test(e)?r.A.apiKey:null}async function d(e){if(!r.A.sessions?.basemap?.enabled||!o.test(e))return null;const t=u(e);if(!t)return null;l&&await l;const{styleFamily:s="arcgis",autoRefresh:n,duration:a=43200}=r.A.sessions.basemap,d=`${t}:${s}`,c=h.get(d);if(c&&(!n||c.endTime>Date.now()))return c.sessionToken;let f;l=(0,i.A)("https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/sessions/start",{cacheBust:!0,query:{durationSeconds:a,styleFamily:s,token:t}});try{f=(await l).data,f.endTime-=5e3,h.set(d,f)}finally{l=null}return f.sessionToken}function c(){return null!=r.A.apiKey||null!=r.A.apiKeys.basemapStyles}function f(e,t){return t?_(e):null!=u(e)}function _(e){const t=(0,n.$z)(e,!0);return!!t&&!a.has(t)&&!e.endsWith("/sharing/rest/generateToken")}},50115(e,t,s){s.d(t,{OP:()=>o,V4:()=>i,rZ:()=>n}),s(44208);var r=s(53966);function i(e,t,s){if(null==e)return null;const i=t.readArcadeFeature();t.contextTimeZone=s.$view?.timeZone;try{return e.evaluate(i,s)}catch(e){return r.A.getLogger("esri.views.2d.support.arcadeOnDemand").warn("Feature arcade evaluation failed:",e),null}}function n(e){return null==e||e===1/0||e===-1/0||"number"==typeof e&&isNaN(e)}function o(e,t,s,r){if(null==e)return null!=r?r:null;const i=t.readArcadeFeature();t.contextTimeZone=s.$view?.timeZone;const o=e.evaluate(i,s);return n(o)?null!=r?r:null:o}},30661(e,t,s){s.d(t,{Z:()=>n});var r=s(43334),i=s(8446);class n{static{this.Shared=new n}getObjectId(e){return e.getObjectId()}getAttributes(e){return e.readAttributes()}getAttribute(e,t){return e.readAttribute(t)}getAttributeAsTimestamp(e,t){return e.readAttributeAsTimestamp(t)}cloneWithGeometry(e,t,s){const n=e.readAttributes(),o=new r.Om(t,n,null,e.getObjectId(),e.getDisplayId()),a=i.K.fromOptimizedFeatures([o],e.metadata);return a.setIndex(0),a}getGeometry(e){return e.readGeometryWorldSpace()}getCentroid(e,t){return e.readCentroidForDisplay()}}},63664(e,t,s){s.d(t,{B:()=>r});class r{constructor(e){this._statistics=e}get statistics(){return this._statistics}}},38976(e,t,s){s.d(t,{n:()=>r});class r{constructor(e){this.options=e}get hash(){return this.options.hash}}},92029(e,t,s){s.d(t,{o:()=>o});var r=s(69397),i=s(50115);const n=Math.PI/180;class o{static create(e){return new o(e.map(e=>function(e){switch(e.statisticType){case"min":return new h(e);case"max":return new l(e);case"avg":return new d(e);case"avg_angle":return new c(e);case"sum":case"count":return new u(e);case"mode":return new f(e)}}(e)))}constructor(e){this._statistics=e}static get estimatedMemory(){return r.qK+4*r.qK}values(){return this._statistics.values()}insert(e,t){for(const s of this._statistics)s.insert(e,t)}merge(e){for(let t=0;t<this._statistics.length;t++){const s=this._statistics[t],r=e._statistics[t];if(s.field.name!==r.field.name)throw new Error("InternalError: Tried to merge incompatible statistics");s.merge(r)}}clone(){return new o(this._statistics.map(e=>e.clone()))}}class a{constructor(e){this.field=e}insert(e,t){if(!this.field.computed)return;const s=this.field.computed.read(e,t);(0,i.rZ)(s)||this._insertValue(s)}}class h extends a{constructor(){super(...arguments),this.type="min",this.value=Number.MAX_VALUE}_insertValue(e){this.value=Math.min(this.value,e)}merge(e){this.value=Math.min(this.value,e.value)}clone(){const e=new h(this.field);return e.value=this.value,e}}class l extends a{constructor(){super(...arguments),this.type="max",this.value=Number.MIN_VALUE}_insertValue(e){this.value=Math.max(this.value,e)}merge(e){this.value=Math.max(this.value,e.value)}clone(){const e=new l(this.field);return e.value=this.value,e}}class u extends a{constructor(){super(...arguments),this.type="sum",this.value=0}_insertValue(e){this.value+=e}merge(e){this.value+=e.value}clone(){const e=new u(this.field);return e.value=this.value,e}}class d extends a{constructor(){super(...arguments),this.type="avg",this._total=0,this._count=0}get value(){return this._total/this._count}_insertValue(e){this._total+=e,this._count+=1}merge(e){this._total+=e._total,this._count+=e._count}clone(){const e=new d(this.field);return e._total=this._total,e._count=this._count,e}}class c extends a{constructor(){super(...arguments),this.type="avg_angle",this._x=0,this._y=0,this._count=0}get value(){const e=this._x/this._count,t=this._y/this._count,s=180/Math.PI;return Math.atan2(t,e)*s}_insertValue(e){this._x=this._x+Math.cos(e*n),this._y=this._y+Math.sin(e*n),this._count+=1}merge(e){this._x+=e._x,this._y+=e._y,this._count+=e._count}clone(){const e=new c(this.field);return e._x=this._x,e._y=this._y,e._count=this._count,e}}class f extends a{constructor(){super(...arguments),this._frequencies=new Map}get value(){let e,t=0;for(const[s,r]of this._frequencies.entries())r>t&&(t=r,e=s);return e}_insertValue(e){const t=this._frequencies.get(e);null!=t?this._frequencies.set(e,t+1):this._frequencies.set(e,1)}merge(e){for(const[t,s]of e._frequencies.entries()){const e=this._frequencies.get(t);null!=e?this._frequencies.set(t,e+s):this._frequencies.set(t,s)}}clone(){const e=new f(this.field);return e._frequencies=new Map(this._frequencies),e}}},75538(e,t,s){s.d(t,{L:()=>a});var r=s(90708),i=s(92722),n=s(63664),o=s(92029);class a extends n.B{static createId(e,t){return`${e}.${t}`}static create(e,t,s,r){return new a(e,t,o.o.create(s),r)}constructor(e,t,s,r){super(s),this.gridX=e,this.gridY=t,this._worldUnitsPerCell=r,this._count=0,this._xWorldTotal=0,this._yWorldTotal=0,this._objectIds=new Set}get id(){return a.createId(this.gridX,this.gridY)}get containedObjectIds(){return this._objectIds}get count(){return this._count}get firstObjectId(){return this._objectIds.values().next().value}get centroidXWorld(){return this._xWorldTotal/this._count}get centroidYWorld(){return this._yWorldTotal/this._count}get usedMemory(){return 48}clone(){const e=new a(this.gridX,this.gridY,this._statistics.clone(),this._worldUnitsPerCell);return e._count=this._count,e._xWorldTotal=this._xWorldTotal,e._yWorldTotal=this._yWorldTotal,e._firstFeatureAttributes=this._firstFeatureAttributes,e._objectIds=new Set(this._objectIds),e}insert(e,t){let s=0,r=0;if("esriGeometryPoint"===e.geometryType)s=e.readXWorldSpace(),r=e.readYWorldSpace();else{const t=e.readCentroidWorldSpace();if(null==t)return;[s,r]=t.coords}0===this._count?this._firstFeatureAttributes=e.readAttributes():this._firstFeatureAttributes=null,this._count+=1,this._xWorldTotal+=s,this._yWorldTotal+=r,this._statistics.insert(e,t),this._objectIds.add(e.getObjectId())}merge(e){if(0!==e._count){this._count+=e._count,this._firstFeatureAttributes=e._firstFeatureAttributes,this._xWorldTotal+=e._xWorldTotal,this._yWorldTotal+=e._yWorldTotal,this._statistics.merge(e._statistics);for(const t of e._objectIds.values())this._objectIds.add(t)}}getCentroidX(e){return null==e?this.centroidXWorld:(0,r.IE)(e,this.centroidXWorld)}getCentroidY(e){return null==e?this.centroidYWorld:(0,r.B2)(e,this.centroidYWorld)}getGeometry(e,t){const s=this.gridX*this._worldUnitsPerCell,n=this.gridY*this._worldUnitsPerCell,o=new i.A([4],[s,n,s+this._worldUnitsPerCell,n,s+this._worldUnitsPerCell,n+this._worldUnitsPerCell,s,n+this._worldUnitsPerCell]);return null!=t?(0,r.Nl)(o,"esriGeometryPolygon",t):o}getCentroid(e){const t=new i.A([],[this.centroidXWorld,this.centroidYWorld]);return null!=e?(0,r.Nl)(t,"esriGeometryPoint",e):t}getGeometricCentroid(e,t){const s=this.gridX*this._worldUnitsPerCell+.5*this._worldUnitsPerCell,n=this.gridY*this._worldUnitsPerCell+.5*this._worldUnitsPerCell,o=new i.A([],[s,n]);return null!=t?(0,r.Nl)(o,"esriGeometryPoint",t):o}getAttributes(){const e={aggregateId:this.id};for(const t of this._statistics.values())e[t.field.name]=t.value;return null!=this._firstFeatureAttributes?{...e,...this._firstFeatureAttributes}:e}}},17184(e,t,s){s.d(t,{x:()=>r});class r{static createId(e,t){return`${e}.${t}`}constructor(e,t){this._indices=[],this.id=r.createId(e,t)}push(e){this._indices.push(e)}}},68974(e,t,s){s.d(t,{H:()=>u,p:()=>l});var r=s(91869),i=s(86211),n=s(38976),o=s(75538),a=s(17184),h=s(9012);function l(e,t){return(0,i.GA)(e)*i.dy*96/t}class u extends n.n{constructor(e,t){super(e),this._reader=t,this._cells=new Map,this._pixelsPerMapUnit=l(e.inner.spatialReference,e.inner.scale),this.insert(this._reader)}get worldUnitsPerCell(){return 1*this.options.inner.cellSize/this._pixelsPerMapUnit}insert(e){const t=e.getCursor();for(;t.next();){const e=t,{featureFilter:s,sqlOptions:r,cellSize:i}=this.options.inner;if(null!==s&&!s.check(e,r))continue;let n=0,o=0;if("esriGeometryPoint"===e.geometryType)n=e.readXWorldSpace(),o=e.readYWorldSpace();else{const t=e.readCentroidWorldSpace();if(null==t)return;[n,o]=t.coords}const a=n*this._pixelsPerMapUnit,h=o*this._pixelsPerMapUnit,l=Math.floor(a/i),u=Math.floor(h/i);this._getCellOrCreate(l,u).push(t.getIndex())}}get usedMemory(){return 0}forEachInCell(e,t){const s=this._cells.get(e);if(s)for(const e of s._indices)this._reader.setIndex(e),t(this._reader)}putBounded(e,t,s,i){const{arcadeContextInfo:n,scale:a,cellSize:l,fields:u}=this.options.inner,d=(0,h.N)(a,n),c=[s.xmin,s.ymin,s.xmax,s.ymax],[f,_,p,m]=c,g=Math.floor(f*this._pixelsPerMapUnit/l),y=Math.floor(_*this._pixelsPerMapUnit/l),b=Math.ceil(p*this._pixelsPerMapUnit/l),v=Math.ceil(m*this._pixelsPerMapUnit/l);for(let s=y;s<=v;s++)for(let i=g;i<=b;i++){const n=o.L.createId(i,s),a=this._cells.get(n);if(!a)continue;let h=null;for(const n of a._indices){this._reader.setIndex(n);const l=this._reader.getObjectId();t.has(l)||(h??=(0,r.tE)(e,a.id,()=>o.L.create(i,s,u,this.worldUnitsPerCell)),h.insert(this._reader,d),t.add(l))}}}_getCellOrCreate(e,t){const s=a.x.createId(e,t);let r=this._cells.get(s);return r||(r=new a.x(e,t),this._cells.set(s,r)),r}}},70300(e,t,s){s.d(t,{K:()=>z});var r=s(69397),i=s(11006);function n(e,t){if(!(this instanceof n))return new n(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this.toBBox=t:this._initFormat(t)),this.clear()}function o(e,t,s){if(!s)return t.indexOf(e);for(var r=0;r<t.length;r++)if(s(e,t[r]))return r;return-1}function a(e,t){h(e,0,e.children.length,t,e)}function h(e,t,s,r,i){i||(i=y(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var n,o=t;o<s;o++)n=e.children[o],l(i,e.leaf?r(n):n);return i}function l(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function u(e,t){return e.minX-t.minX}function d(e,t){return e.minY-t.minY}function c(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function _(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function p(e,t){var s=Math.max(e.minX,t.minX),r=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),n=Math.min(e.maxY,t.maxY);return Math.max(0,i-s)*Math.max(0,n-r)}function m(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function g(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function y(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function b(e,t,s,r,n){for(var o,a=[t,s];a.length;)(s=a.pop())-(t=a.pop())<=r||(o=t+Math.ceil((s-t)/r/2)*r,(0,i.q)(e,o,t,s,n),a.push(t,o,o,s))}n.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,s=[],r=this.toBBox;if(!g(e,t))return s;for(var i,n,o,a,h=[];t;){for(i=0,n=t.children.length;i<n;i++)o=t.children[i],g(e,a=t.leaf?r(o):o)&&(t.leaf?s.push(o):m(e,a)?this._all(o,s):h.push(o));t=h.pop()}return s},collides:function(e){var t=this.data,s=this.toBBox;if(!g(e,t))return!1;for(var r,i,n,o,a=[];t;){for(r=0,i=t.children.length;r<i;r++)if(n=t.children[r],g(e,o=t.leaf?s(n):n)){if(t.leaf||m(e,o))return!0;a.push(n)}t=a.pop()}return!1},load:function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0,s=e.length;t<s;t++)this.insert(e[t]);return this}var r=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===r.height)this._splitRoot(this.data,r);else{if(this.data.height<r.height){var i=this.data;this.data=r,r=i}this._insert(r,this.data.height-r.height-1,!0)}else this.data=r;return this},insert:function(e){return null!=e&&this._insert(e,this.data.height-1),this},clear:function(){return this.data=y([]),this},remove:function(e,t){if(null==e)return this;for(var s,r,i,n,a=this.data,h=this.toBBox(e),l=[],u=[];a||l.length;){if(a||(a=l.pop(),r=l[l.length-1],s=u.pop(),n=!0),a.leaf&&-1!==(i=o(e,a.children,t)))return a.children.splice(i,1),l.push(a),this._condense(l),this;n||a.leaf||!m(a,h)?r?(s++,a=r.children[s],n=!1):a=null:(l.push(a),u.push(s),s=0,r=a,a=a.children[0])}return this},toBBox:function(e){return e},compareMinX:u,compareMinY:d,toJSON:function(){return this.data},fromJSON:function(e){return this.data=e,this},_all:function(e,t){for(var s=[];e;)e.leaf?t.push.apply(t,e.children):s.push.apply(s,e.children),e=s.pop();return t},_build:function(e,t,s,r){var i,n=s-t+1,o=this._maxEntries;if(n<=o)return a(i=y(e.slice(t,s+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(n)/Math.log(o)),o=Math.ceil(n/Math.pow(o,r-1))),(i=y([])).leaf=!1,i.height=r;var h,l,u,d,c=Math.ceil(n/o),f=c*Math.ceil(Math.sqrt(o));for(b(e,t,s,f,this.compareMinX),h=t;h<=s;h+=f)for(b(e,h,u=Math.min(h+f-1,s),c,this.compareMinY),l=h;l<=u;l+=c)d=Math.min(l+c-1,u),i.children.push(this._build(e,l,d,r-1));return a(i,this.toBBox),i},_chooseSubtree:function(e,t,s,r){for(var i,n,o,a,h,l,u,d;r.push(t),!t.leaf&&r.length-1!==s;){for(u=d=1/0,i=0,n=t.children.length;i<n;i++)h=c(o=t.children[i]),(l=_(e,o)-h)<d?(d=l,u=h<u?h:u,a=o):l===d&&h<u&&(u=h,a=o);t=a||t.children[0]}return t},_insert:function(e,t,s){var r=this.toBBox,i=s?e:r(e),n=[],o=this._chooseSubtree(i,this.data,t,n);for(o.children.push(e),l(o,i);t>=0&&n[t].children.length>this._maxEntries;)this._split(n,t),t--;this._adjustParentBBoxes(i,n,t)},_split:function(e,t){var s=e[t],r=s.children.length,i=this._minEntries;this._chooseSplitAxis(s,i,r);var n=this._chooseSplitIndex(s,i,r),o=y(s.children.splice(n,s.children.length-n));o.height=s.height,o.leaf=s.leaf,a(s,this.toBBox),a(o,this.toBBox),t?e[t-1].children.push(o):this._splitRoot(s,o)},_splitRoot:function(e,t){this.data=y([e,t]),this.data.height=e.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,s){var r,i,n,o,a,l,u,d;for(l=u=1/0,r=t;r<=s-t;r++)o=p(i=h(e,0,r,this.toBBox),n=h(e,r,s,this.toBBox)),a=c(i)+c(n),o<l?(l=o,d=r,u=a<u?a:u):o===l&&a<u&&(u=a,d=r);return d},_chooseSplitAxis:function(e,t,s){var r=e.leaf?this.compareMinX:u,i=e.leaf?this.compareMinY:d;this._allDistMargin(e,t,s,r)<this._allDistMargin(e,t,s,i)&&e.children.sort(r)},_allDistMargin:function(e,t,s,r){e.children.sort(r);var i,n,o=this.toBBox,a=h(e,0,t,o),u=h(e,s-t,s,o),d=f(a)+f(u);for(i=t;i<s-t;i++)n=e.children[i],l(a,e.leaf?o(n):n),d+=f(a);for(i=s-t-1;i>=t;i--)n=e.children[i],l(u,e.leaf?o(n):n),d+=f(u);return d},_adjustParentBBoxes:function(e,t,s){for(var r=s;r>=0;r--)l(t[r],e)},_condense:function(e){for(var t,s=e.length-1;s>=0;s--)0===e[s].children.length?s>0?(t=e[s-1].children).splice(t.indexOf(e[s]),1):this.clear():a(e[s],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this.toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}};var v=s(70328);class x{static fromReader(e){const t=[],s=e.copy(),r=(0,v.vt)();for(;s.next();)s.getBounds(r)&&t.push(s.getIndex());const i=n(9,e=>(s.setIndex(e),{minX:s.getBoundsXMin(),minY:s.getBoundsYMin(),maxX:s.getBoundsXMax(),maxY:s.getBoundsYMax()}));return i.load(t),new x(i,t.length)}constructor(e,t){this._index=e,this._size=t}get usedMemory(){return this._size*r.RS}search(e){const t={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]};return this._index.search(t)}}var I=s(91869),A=(s(44208),s(34727)),w=(s(37585),s(48163)),T=s(39829),C=s(16930),M=s(19419),S=s(79258),F=s(90708),O=s(31464);function B(e,t,s,r){if(r.isWebMercator){const r=(0,A.KJ)(e/S.$O.radius),i=r-360*Math.floor((r+180)/360),n=[0,0];return k(n,0,(0,A.KJ)(Math.PI/2-2*Math.atan(Math.exp(-t/S.$O.radius))),i,s),n}const i=(0,O.Cv)({x:e,y:t},r,C.A.WGS84);if(!i)return null;const n=[0,0];return k(n,0,i.y,i.x,s),n}function k(e,t,s,r,i){i%2&&(i+=1);let n=0,o=0,a=-90,h=90,l=-180,u=180;for(let e=0;e<i/2;e++){for(let t=0;t<5;t++){const s=(l+u)/2,i=r>s?1:0;n|=i<<29-(t+5*e),l=(1-i)*l+i*s,u=(1-i)*s+i*u}for(let t=0;t<5;t++){const r=(a+h)/2,i=s>r?1:0;o|=i<<29-(t+5*e),a=(1-i)*a+i*r,h=(1-i)*r+i*h}}e[2*t]=n,e[2*t+1]=o}(0,w.vt)(),(0,w.vt)();var D=s(63664),W=s(92029);class N extends D.B{static create(e,t,s,r){const i=W.o.create(e),n=new Array(32);for(let e=0;e<n.length;e++)n[e]=null;return new N(i,t,s,r,n)}constructor(e,t,s,r,i){super(e),this.xNode=t,this.yNode=s,this.depth=r,this.children=i,this._objectIds=new Set,this._count=0,this._xWorldTotal=0,this._yWorldTotal=0,this._xGeohashTotal=0,this._yGeohashTotal=0,this.next=null}static get estimatedMemory(){let e=0;return e+=2*r.qK,e+=32*r.RS,e+=W.o.estimatedMemory,e}get id(){return`${this.xNode}.${this.yNode}`}get containedObjectIds(){return this._objectIds}get count(){return this._count}clone(){const e=new N(this._statistics.clone(),this.xNode,this.yNode,this.depth,this.children);return e._count=this._count,e._xWorldTotal=this._xWorldTotal,e._yWorldTotal=this._yWorldTotal,e._xGeohashTotal=this._xGeohashTotal,e._yGeohashTotal=this._yGeohashTotal,e.next=this.next,e._objectIds=new Set(this._objectIds),e}insert(e,t,s,r){let i=0,n=0;if("esriGeometryPoint"===e.geometryType)i=e.readXWorldSpace(),n=e.readYWorldSpace();else{const t=e.readCentroidWorldSpace();if(null==t)return;[i,n]=t.coords}const o=B(i,n,t,s);o&&(this._count+=1,this._xWorldTotal+=i,this._yWorldTotal+=n,this._xGeohashTotal+=o[0],this._yGeohashTotal+=o[1],this._statistics.insert(e,r),this._objectIds.add(e.getObjectId()))}merge(e){if(0!==e._count){this._count+=e._count,this._xWorldTotal+=e._xWorldTotal,this._yWorldTotal+=e._yWorldTotal,this._xGeohashTotal+=e._xWorldTotal,this._yGeohashTotal+=e._yWorldTotal,this._statistics.merge(e._statistics);for(const t of e._objectIds.values())this._objectIds.add(t)}}getCentroid(e){throw new Error("getCentroid not supported for GeohashNode")}getGeometry(e,t){const s=this._getLngLatBounds(),[r,i,n,o]=s,a=(0,O.Cv)({rings:[[[r,i],[r,o],[n,o],[n,i],[r,i]]]},C.A.WGS84,e),h=(0,F.Ye)(a);return null!=t?(0,F.Nl)(h,"esriGeometryPolygon",t,!1,!1):h}getGeometricCentroid(e,t){const s=this._getLngLatBounds(),[r,i,n,o]=s,a=(0,O.Cv)({x:(r+n)/2,y:(i+o)/2},C.A.WGS84,e),h=(0,F.qN)(a);return null!=t?(0,F.Nl)(h,"esriGeometryPoint",t,!1,!1):h}getAttributes(){const e={aggregateId:this.id};for(const t of this._statistics.values())e[t.field.name]=t.value;return e.aggregateCount=this._count,e}find(e,t,s,r,i,n){if(r>=s)return this;const o=1-r%2,a=3*o+2*(1-o),h=2*o+3*(1-o),l=30-i-a,u=30-n-h,d=((e&7*o+3*(1-o)<<l)>>l)+((t&3*o+7*(1-o)<<u)>>u)*(8*o+4*(1-o)),c=this.children[d];return null==c?null:c.find(e,t,s,r+1,i+a,n+h)}_getLngLatBounds(){const e=this.depth,t=Math.ceil(e/2),s=Math.floor(e/2),r=30-(3*t+2*s),i=30-(2*t+3*s);return function(e,t){let s=-90,r=90,i=-180,n=180;for(let o=0;o<t;o++){const t=Math.ceil((o+1)/2),a=Math.floor((o+1)/2),h=1-o%2,l=30-(3*t+2*a),u=30-(2*t+3*a),d=2*h+3*(1-h),c=(7*h+3*(1-h)<<l&e.geohashX)>>l,f=(3*h+7*(1-h)<<u&e.geohashY)>>u;for(let e=3*h+2*(1-h)-1;e>=0;e--){const t=(i+n)/2,s=c&1<<e?1:0;i=(1-s)*i+s*t,n=(1-s)*t+s*n}for(let e=d-1;e>=0;e--){const t=(s+r)/2,i=f&1<<e?1:0;s=(1-i)*s+i*t,r=(1-i)*t+i*r}}return[i,s,n,r]}({geohashX:this.xNode<<r,geohashY:this.yNode<<i},this.depth)}}class G{static create(e,t,s){const r=new Array(32);for(let e=0;e<r.length;e++)r[e]=null;return new G(e,t,s,r)}constructor(e,t,s,r){this.xNode=e,this.yNode=t,this.depth=s,this.children=r,this.indices=[],this.next=null}static get estimatedMemory(){let e=0;return e+=2*r.qK,e+=32*r.RS,e+=4*r.RS,e}get id(){return`${this.xNode}.${this.yNode}`}get count(){return this.indices.length}insert(e){this.indices.push(e)}find(e,t,s,r,i,n){if(r>=s)return this;const o=1-r%2,a=3*o+2*(1-o),h=2*o+3*(1-o),l=30-i-a,u=30-n-h,d=((e&7*o+3*(1-o)<<l)>>l)+((t&3*o+7*(1-o)<<u)>>u)*(8*o+4*(1-o)),c=this.children[d];return null==c?null:c.find(e,t,s,r+1,i+a,n+h)}}class j{constructor(){this._size=0,this._depth=0,this._root=G.create(0,0,0)}destroy(){}get size(){return this._size}get depth(){return this._depth}get usedMemory(){return this._size*G.estimatedMemory}find(e,t,s){return this._root.find(e,t,s,0,0,0)}insert(e,t,s,r){let i=this._root,n=0,o=0,a=0;for(;null!==i;){if(i.insert(e.getIndex()),n>=r)return;const h=Math.ceil((n+1)/2),l=Math.floor((n+1)/2),u=1-n%2,d=30-(3*h+2*l),c=30-(2*h+3*l),f=(t&7*u+3*(1-u)<<d)>>d,_=(s&3*u+7*(1-u)<<c)>>c,p=f+_*(8*u+4*(1-u));o=o<<3*u+2*(1-u)|f,a=a<<2*u+3*(1-u)|_,null==i.children[p]&&(i.children[p]=G.create(o,a,n+1),this._depth=Math.max(this._depth,n+1),this._size+=1),n+=1,i=i.children[p]}}forEachInBounds(e,t){const{geohashBounds:s,level:r}=e;let i=this._root;for(;null!==i;){const e=i.depth,n=i.xNode,o=i.yNode;if(e>=r){t(i),i=i.next;continue}const a=Math.ceil((e+1)/2),h=Math.floor((e+1)/2),l=1-e%2,u=30-(3*a+2*h),d=30-(2*a+3*h),c=~((1<<u)-1),f=~((1<<d)-1),_=(s.xLL&c)>>u,p=(s.yLL&f)>>d,m=(s.xTR&c)>>u,g=(s.yTR&f)>>d,y=n<<3*l+2*(1-l),b=o<<2*l+3*(1-l),v=y+8*l+4*(1-l),x=b+4*l+8*(1-l),I=Math.max(y,_),A=Math.max(b,p),w=Math.min(v,m),T=Math.min(x,g);let C=null,M=null;for(let e=A;e<=T;e++)for(let t=I;t<=w;t++){const s=t-y+(e-b)*(8*l+4*(1-l)),r=i.children[s];r&&(C||(C=r,C.next=i.next),M&&(M.next=r),M=r,r.next=i.next)}i=C||i.next}}}var E=s(38976),Y=s(9012);class R extends E.n{constructor(e,t){super(e),this._reader=t,this._tree=new j,this.insert(this._reader)}get usedMemory(){return this._tree.usedMemory}forEachInCell(e,t){throw new Error("Not supported.")}insert(e){const t=e.getCursor(),{featureFilter:s,sqlOptions:r,geohashLevel:i,spatialReference:n}=this.options.inner;for(;t.next();){const e=t;if(null!==s&&!s.check(e,r))continue;let o=0,a=0;if("esriGeometryPoint"===e.geometryType)o=e.readXWorldSpace(),a=e.readYWorldSpace();else{const t=e.readCentroidWorldSpace();if(null==t)return;[o,a]=t.coords}const h=B(o,a,i,n);h&&this._tree.insert(e,h[0],h[1],i)}}putBounded(e,t,s,r){const{arcadeContextInfo:i,scale:n,geohashLevel:o,spatialReference:a,fields:h}=this.options.inner,l=(0,Y.N)(n,i),u=function(e,t,s,r){const i=[e.xmin,e.ymin,e.xmax,e.ymax],n=T.A.fromExtent((0,M.w1)(i,r)),o=(0,O.Cv)(n,r,C.A.WGS84,{extendedParams:{densificationStep:64*t}});if(!o)return null;const a=(0,F.Ye)(o,!1,!1),h=a.coords.filter((e,t)=>!(t%2)),l=a.coords.filter((e,t)=>t%2),u=Math.min(...h),d=Math.min(...l),c=Math.max(...h),f=Math.max(...l),_=B(u,d,s,C.A.WGS84),p=B(c,f,s,C.A.WGS84);return _&&p?{bounds:i,geohashBounds:{xLL:_[0],yLL:_[1],xTR:p[0],yTR:p[1]},level:s}:null}(s,r,o,a);null!=u&&this._tree.forEachInBounds(u,s=>{let r=null;for(const i of s.indices){this._reader.setIndex(i);const n=this._reader.getObjectId();t.has(n)||(r??=(0,I.tE)(e,s.id,()=>N.create(h,s.xNode,s.yNode,s.depth)),r.insert(this._reader,o,a,l),t.add(n))}})}}var P=s(68974),X=s(52350);class z{size(){return this.reader.getSize()}get fields(){return this.reader.fields}invalidate(){this._spatialIndex=null,this._gridIndex=null,this._geohashIndex=null}get usedMemory(){let e=0;return e+=this.reader.underlyingMemory,this._gridIndex&&(e+=this._gridIndex.usedMemory),this._geohashIndex&&(e+=this._geohashIndex.usedMemory),this._spatialIndex&&(e+=this._spatialIndex.usedMemory),e}getObjectIds(){const e=this.reader.getCursor(),t=[];for(;e.next();)t.push(e.getObjectId());return t}registerOverrides(e){this.reader.registerOverrides(e),this.invalidate()}queryFeaturesInBounds(e){const t=this._getSpatialIndex().search(e);return X.e.from(this.reader,t)}getGridIndex(e){return e.hash!==this._gridIndex?.hash&&(this._gridIndex=new P.H(e,this.reader.copy())),this._gridIndex}getGeohashIndex(e){return e.hash!==this._geohashIndex?.hash&&(this._geohashIndex=new R(e,this.reader.copy())),this._geohashIndex}_getSpatialIndex(){return this._spatialIndex||(this._spatialIndex=x.fromReader(this.reader)),this._spatialIndex}}},28923(e,t,s){s.d(t,{j:()=>i});var r=s(70300);class i extends r.K{constructor(e,t,s,r,i=0){super(),this._reader=e,this._queryJSON=t,this._page=s,this._end=r,this.fileIndex=i,this.chunkId=`${this.fileIndex}.${this._page}${this.end?"e":""}`,this.normalizedChunkId=this.chunkId}get reader(){return this._reader}get first(){return 0===this._page}get end(){return this._end}get queryInfo(){return{type:"snapshot",chunkId:this.chunkId,queryJSON:this._queryJSON,page:this._page,size:this.size(),end:this.end}}get isTiled(){return!1}getTileReader(e){const t=this.queryFeaturesInBounds(e.bounds);return t.setTransformForDisplay(e.transform),t}}},5162(e,t,s){s.d(t,{HJ:()=>o,Im:()=>u,KN:()=>h});var r=s(39516),i=s(70300),n=s(8446);class o{static async create(e){const{metadata:t,definitionExpression:s}=e,i=s?await(0,r.GP)(s,t.fieldsIndex):null;return new o(t,i,s)}constructor(e,t,s){this.metadata=e,this._clause=t,this._definitionExpression=s}get hash(){return this._definitionExpression}testFeature(e){return null==this._clause||this._clause.testFeature(e)}}class a{constructor(){this.modified=new Map,this.removed=new Set}modify(e){this.modified.set(e.objectId,e),this.removed.has(e.objectId)&&this.removed.delete(e.objectId)}remove(e){this.modified.delete(e),this.removed.add(e)}get isEmpty(){return 0===this.modified.size&&0===this.removed.size}applyWhereClause(e){const t=new a;for(const[s,r]of this.modified)e.testFeature(r)?t.modified.set(s,r):t.removed.add(r.objectId);for(const e of this.removed)t.removed.add(e);return t}}class h extends i.K{constructor(e){super(),this._reader=e,this.chunkId="override",this.normalizedChunkId="override"}static fromFeatures(e,t){const s=n.K.fromOptimizedFeatures(e,t);return new h(s)}get reader(){return this._reader}get queryInfo(){return{}}get first(){return!1}get end(){return!1}get isTiled(){return!1}getTileReader(e){if(!this._reader.getSize())return null;const t=this.queryFeaturesInBounds(e.bounds);return t.setTransformForDisplay(e.transform),t}}class l{constructor(e,t){this.inner=e,this.isWeak=t,this.lastWeak=null}get isStrong(){return!this.isWeak}}class u{constructor(e){this._parameters=e,this._overrides=new Map,this._update=new a,this._lastCleanup=0}update(e){this._parameters=e}hasOverride(e){return this._overrides.has(e)}onChunkInsert(e){if(this._overrides.size){const t=e.reader.getCursor();for(;t.next();){const e=t.getObjectId(),s=this._overrides.get(e);if(s?.lastWeak&&(s.lastWeak=null),s?.isWeak){const e=t.readOptimizedFeatureWorldSpace(),r=s.inner?.attributes??{};e.attributes={...r,...e.attributes},s.inner=e,this._update.modify(e),this.invalidate()}}}e.registerOverrides(this)}apply(e,t){const{updateWeak:s,removeWeak:r,update:i,remove:n,release:o}=e.commands;this.invalidate();for(const e of s){const t=new l(e,!0),s=this._overrides.get(e.objectId);s?.isStrong?s.lastWeak=t:(this._overrides.set(e.objectId,t),this._update.modify(e))}for(const e of i){const t=new l(e,!1),s=this._overrides.get(e.objectId);t.lastWeak=s?.isWeak?s:s?.lastWeak??null,this._overrides.set(e.objectId,t),this._update.modify(e)}for(const e of r){const t=new l(null,!0),s=this._overrides.get(e);s?.isStrong?s.lastWeak=t:(this._overrides.set(e,t),this._update.remove(e))}for(const e of n){const t=new l(null,!1),s=this._overrides.get(e);t.lastWeak=s?.isWeak?s:s?.lastWeak??null,this._overrides.set(e,t),this._update.remove(e)}if(o.length){const e=new Set;for(const t of o){const s=this._overrides.get(t);s?.lastWeak?(this._overrides.set(t,s.lastWeak),null==s.lastWeak.inner?this._update.remove(t):this._update.modify(s.lastWeak.inner)):s&&!s.isWeak&&(this._overrides.delete(t),e.add(t))}t.forEachUnsafe(t=>{const s=t.getObjectId();e.has(s)&&(this._update.modify(t.readOptimizedFeatureWorldSpace()),e.delete(s))});for(const t of e.values())this._update.remove(t)}}clearWeakOverrides(){for(const[e,t]of this._overrides.entries())t.isWeak&&this._overrides.delete(e);this.invalidate()}cleanup(e){if(this._overrides.size<1e4)return;const t=performance.now();if(t-this._lastCleanup<1e3)return;this._lastCleanup=t;const s=this._getWeakDeletions();if(!(s.size<1e4)){for(const t of e){const e=t.reader.withoutOverrides().getCursor();for(;e.next();){const t=e.getObjectId();s.delete(t)}}for(const e of s)this._overrides.delete(e);s.size&&this.invalidate()}}takeOverrideUpdate(){const e=this._update;return e.isEmpty?null:(this._update=new a,e.applyWhereClause(this._parameters))}asChunk(){const e=this._parameters;if(this._lastOverrideParametersHash!==e.hash&&(this._lastOverrideParametersHash=e.hash,this._chunk=null),!this._chunk){const t=[];for(const s of this._overrides.values())null!=s.inner&&e.testFeature(s.inner)&&t.push(s.inner);this._chunk=h.fromFeatures(t,e.metadata)}return this._chunk}invalidate(){this._chunk=null}putWeakObjectIdsFromGlobalIds(e,t,s){for(const[r,i]of this._overrides.entries()){if(i.isWeak&&null!=i.inner){const n=i.inner.attributes[s];n&&t.has(n)&&!e.has(n)&&e.set(n,r);continue}if(null!=i.lastWeak&&null!=i.lastWeak.inner){const n=i.lastWeak.inner.attributes[s];n&&t.has(n)&&!e.has(n)&&e.set(n,r)}}}_getWeakDeletions(){const e=new Set;for(const[t,s]of this._overrides.entries())s.isWeak&&null==s.inner&&e.add(t);return e}}},44320(e,t,s){s.d(t,{I:()=>h});var r=s(65529),i=s(44208),n=s(70328),o=s(30661),a=s(5162);class h{constructor(){this._chunks=new Map,this._chunksToRemove=[],this.events=new r.bk,this.featureAdapter=new o.Z}destroy(){this.clear()}clear(){for(const e of this._chunks.values())this._chunksToRemove.push(e);this._chunks.clear(),this._overrides?.clearWeakOverrides()}get usedMemory(){let e=0;for(const t of this._chunks.values())e+=t.usedMemory;return e}async update(e){if(this._overrides){const t=await a.HJ.create(e);this._overrides.update(t)}this._postQueryFilter=e.postQueryFilter;for(const{reader:e}of this.insertedChunks())e.applyPostQueryFilter(this._postQueryFilter);this._schema=e}*chunks(){this._overrides&&(yield this._overrides.asChunk()),yield*this._chunks.values()}insertedChunks(){return this._chunks.values()}insert(e){(0,i.A)("esri-2d-update-debug")&&console.debug(`Chunk[${e.chunkId}] SourceChunkStore.insert`),this._overrides?.onChunkInsert(e),this._chunks.set(e.chunkId,e),this._postQueryFilter&&e.reader.applyPostQueryFilter(this._postQueryFilter),this.events.emit("changed")}remove(e){(0,i.A)("esri-2d-update-debug")&&console.debug(`Chunk[${e.chunkId}] SourceChunkStore.remove`),this._chunks.delete(e.chunkId),this._chunksToRemove.push(e)}removeById(e){(0,i.A)("esri-2d-update-debug")&&console.debug(`Chunk[${e}] SourceChunkStore.remove`);const t=this._chunks.get(e);this._chunks.delete(e),t&&this._chunksToRemove.push(t)}cleanup(){const e=this._chunksToRemove;return this._chunksToRemove=[],this._overrides?.cleanup(this._chunks.values()),e}async applyOverride(e){if(null==this._overrides){const e=await a.HJ.create(this._schema);this._overrides=new a.Im(e);for(const e of this._chunks.values())this._overrides.onChunkInsert(e)}this._overrides.apply(e,this),this.events.emit("changed");for(const e of this._chunks.values())e.invalidate()}takeOverrideUpdate(){return this._overrides?.takeOverrideUpdate()}refresh(){this.events.emit("refresh")}forEach(e){const t=new Set;for(const s of this.chunks()){const r=s.reader.getCursor();for(;r.next();){const s=r.getObjectId();t.has(s)||(e(r.copy()),t.add(s))}}}forEachUnsafe(e){const t=new Set;for(const s of this.chunks()){const r=s.reader.getCursor();for(;r.next();){const s=r.getObjectId();t.has(s)||(e(r),t.add(s))}}}mapObjectIdsFromGlobalIds(e,t){const s=new Map,r=new Set(e);return this._overrides?.putWeakObjectIdsFromGlobalIds(s,r,t),this._forEachUnsafeIgnoreOverrides(e=>{const i=e.readAttribute(t);if(i&&r.has(i)&&!s.has(i)){const t=e.getObjectId();s.set(i,t)}}),s}forEachInBounds(e,t){const s=new Set;for(const r of this.chunks()){const i=r.queryFeaturesInBounds(e);for(;i.next();){const e=i.getObjectId();s.has(e)||(t(i.copy()),s.add(e))}}}forEachBounds(e,t){const s=(0,n.vt)();for(const r of e)r.getBounds(s)&&t(s)}_forEachUnsafeIgnoreOverrides(e){const t=new Set;for(const s of this._chunks.values()){const r=s.reader.withoutOverrides().getCursor();for(;r.next();){const s=r.getObjectId();t.has(s)||(e(r),t.add(s))}}}}},35258(e,t,s){s.d(t,{i:()=>n});var r=s(16930),i=s(95466);class n{static minimal(e,t,s=[],r=!1,o=!1){return new n({geometryType:e,hasZ:r,hasM:o,fieldsIndex:new i.A(s).toJSON(),featureIdInfo:{type:"object-id",fieldName:t},subtypes:null,subtypeField:null,types:null,globalIdField:null,spatialReference:null,outSpatialReference:null,timeInfo:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:null,typeIdField:null})}static createFeature(e){return new n(e)}constructor(e){let t;this._options=e,this._fieldsIndex=i.A.fromJSON(e.fieldsIndex),e.spatialReference&&(e.spatialReference instanceof r.A?this._spatialReference=e.spatialReference:this._spatialReference=r.A.fromJSON(e.spatialReference)),e.outSpatialReference&&(e.outSpatialReference instanceof r.A?this._outSpatialReference=e.outSpatialReference:this._outSpatialReference=r.A.fromJSON(e.outSpatialReference)),"object-id"===e.featureIdInfo.type&&(t=e.featureIdInfo.fieldName),this._arcadeSchema={fields:this.fieldsIndex.fields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,objectIdField:t,globalIdField:this._options.globalIdField,spatialReference:this._spatialReference,timeInfo:this._options.timeInfo,typeIdField:this._options.typeIdField??void 0,types:this._options.types??void 0,subtypeField:this._options.subtypeField,subtypes:this._options.subtypes??void 0,datesInUnknownTimezone:this._options.timeReferenceUnknownClient??void 0,dateFieldsTimeZone:this._options.dateFieldsTimeZone??void 0}}get fieldsIndex(){return this._fieldsIndex}get geometryType(){return"esriGeometryMultiPatch"===this._options.geometryType?"esriGeometryPolygon":this._options.geometryType}get hasZ(){return this._options.hasZ}get hasM(){return this._options.hasM}get serviceGeometryType(){return this._options.geometryType}get subtypeField(){return this._options.subtypeField}get timeInfo(){return this._options.timeInfo}get featureIdInfo(){return this._options.featureIdInfo}get globalIdField(){return this._options.globalIdField}get arcadeSchema(){return this._arcadeSchema}get spatialReference(){return this._spatialReference}get outSpatialReference(){return this._outSpatialReference}get timeReferenceUnknownClient(){return this._options.timeReferenceUnknownClient}weakCloneWithAdditionalFields(e){return new n({fieldsIndex:{fields:[...this._fieldsIndex.fields,...e],timeZoneByFieldName:null},geometryType:this.geometryType,hasZ:this.hasZ,hasM:this.hasM,globalIdField:this.globalIdField,featureIdInfo:this.featureIdInfo,spatialReference:this.spatialReference,outSpatialReference:this.outSpatialReference,subtypeField:this.subtypeField,subtypes:this._options.subtypes,timeInfo:this.timeInfo,timeReferenceUnknownClient:this.timeReferenceUnknownClient,dateFieldsTimeZone:this._options.dateFieldsTimeZone,typeIdField:this._options.typeIdField,types:this._options.types})}}},97633(e,t,s){s.d(t,{P:()=>n});var r=s(69397),i=s(73250);class n{constructor(e){this._valid=i.y.create(e),this._data=new Array(e)}get usedMemory(){let e=this._valid.usedMemory;if(this._data.length>0){const t="string"==typeof this._data[0]?64:r.RS;e+=this._data.length*t}return e}has(e){return this._valid.has(e)}set(e,t){this._valid.set(e),this._data[e]=t}get(e){return this._data[e]}}},99996(e,t,s){s.d(t,{Y:()=>B});var r=s(66131),i=s(44208),n=s(69397),o=s(44729),a=s(15032),h=s(36745),l=s(70328),u=s(65864),d=s(32011),c=s(62577),f=s(27647),_=s(90708),p=s(43334),m=s(92722),g=s(98623),y=s(97633);const b=(0,i.A)("featurelayer-simplify-thresholds")??[.5,.5,.5,.5],v=b[0],x=b[1],I=b[2],A=b[3],w=(0,i.A)("featurelayer-simplify-payload-size-factors")??[1,2,4],T=w[0],C=w[1],M=w[2],S=(0,i.A)("featurelayer-simplify-mobile-factor")??2,F=(0,i.A)("esri-mobile"),O=4294967295;class B{constructor(e){this.metadata=e,this.type="FeatureSetReader",this._overrides=null,this._postQueryFilteredIds=new Set,this._joined=[],this._objectIdToIndex=null,this._boundsBuffer=[],this._caches=new Map,this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}destroy(){}[Symbol.dispose](){this.destroy()}getAreaSimplificationThreshold(e,t){let s=1;const r=F?S:1;t>4e6?s=M*r:t>1e6?s=C*r:t>5e5?s=T*r:t>1e5&&(s=r);let i=0;return e>4e3?i=A*s:e>2e3?i=I*s:e>100?i=x:e>15&&(i=v),i}getBounds(e){!function(e,t){if(!(e.length>t))for(;e.length<=t;)e.push(0)}(this._boundsBuffer,4*this.getIndex()+4);const t=this.getBoundsXMin();if(t===O||!isFinite(t))return!1;if(0===this.getBoundsXMin()){const t=this.readGeometryWorldSpace();if(t?.isPoint&&0===t.coords[0]&&0===t.coords[1])return(0,l.BI)(e,0,0,0,0),!0;if(!t)return this.setBoundsXMin(O),!1;let s=1/0,r=1/0,i=-1/0,n=-1/0;return t.forEachVertex((e,t)=>{s=Math.min(s,e),r=Math.min(r,t),i=Math.max(i,e),n=Math.max(n,t)}),this.setBoundsXMin(s),this.setBoundsYMin(r),this.setBoundsXMax(i),this.setBoundsYMax(n),(0,l.BI)(e,s,r,i,n),!0}const s=this.getBoundsXMin(),r=this.getBoundsYMin(),i=this.getBoundsXMax(),n=this.getBoundsYMax();return(0,l.BI)(e,s,r,i,n),!0}getBoundsXMin(){return this._boundsBuffer[4*this.getIndex()]}setBoundsXMin(e){this._boundsBuffer[4*this.getIndex()]=e}getBoundsYMin(){return this._boundsBuffer[4*this.getIndex()+1]}setBoundsYMin(e){this._boundsBuffer[4*this.getIndex()+1]=e}getBoundsXMax(){return this._boundsBuffer[4*this.getIndex()+2]}setBoundsXMax(e){this._boundsBuffer[4*this.getIndex()+2]=e}getBoundsYMax(){return this._boundsBuffer[4*this.getIndex()+3]}setBoundsYMax(e){this._boundsBuffer[4*this.getIndex()+3]=e}readAttributeAsTimestamp(e){const t=this.readAttribute(e);return"string"==typeof t?new Date(t).getTime():"number"==typeof t||null==t?t:null}readAttribute(e,t=!1){const s=this._readAttribute(e,t);if(void 0!==s)return s;for(const s of this._joined){s.setIndex(this.getIndex());const r=s._readAttribute(e,t);if(void 0!==r)return r}}readAttributes(){const e=this._readAttributes();for(const t of this._joined){t.setIndex(this.getIndex());const s=t._readAttributes();for(const t of Object.keys(s))e[t]=s[t]}return e}joinAttributes(e){this._joined.push(e)}registerOverrides(e){this._overrides=e}withoutOverrides(){const e=this.copy();return e._overrides=null,e}readOptimizedFeatureWorldSpace(){const e=this.readGeometryWorldSpace(),t=this.readAttributes(),s=this.readCentroidWorldSpace();return new p.Om(e,t,s,this.getObjectId(),this.getDisplayId())}readLegacyFeatureForDisplay(){const e=this.readCentroidForDisplay();return{attributes:this.readAttributes(),geometry:this.readLegacyGeometryForDisplay(),centroid:(e&&{x:e.coords[0],y:e.coords[1]})??null}}readLegacyFeatureWorldSpace(){const e=this.readCentroidWorldSpace();return{attributes:this.readAttributes(),geometry:this._readLegacyGeometryWorldSpace(),centroid:(e&&{x:e.coords[0],y:e.coords[1]})??null}}readLegacyGeometryForDisplay(){const e=this.readGeometryForDisplay();return(0,_.zv)(e,this.geometryType,!1,!1)}readXForDisplay(){return this._readX()}readYForDisplay(){return this._readY()}readXWorldSpace(){const e=this._readX(),t=this.getInTransform();return null==t?e:e*t.scale[0]+t.translate[0]}readYWorldSpace(){const e=this._readY(),t=this.getInTransform();return null==t?e:t.translate[1]-e*t.scale[1]}readGeometryForDisplay(){const e=this._readGeometryDeltaDecoded(!0);if(!e){const e=this._createDeltaQuantizedGeometryFromServerCentroid();return e?e.deltaDecode():null}return e}readGeometryForDisplayTransformed(e){let t=this.readGeometryForDisplay();if(t&&"esriGeometryPolyline"===this.metadata.geometryType&&(t=(0,_.kz)(t,this.metadata.geometryType,e.scale[0])),t&&(t=(0,_.hK)(t,e,this.metadata.geometryType)),!t){const t=this.readCentroidForDisplay();if(!t)return null;const s=(0,c.IE)(e,t.coords[0]),r=(0,c.B2)(e,t.coords[1]);return this._createDeltaQuantizedExtrudedGeometry(s,r).deltaDecode()}return t}readGeometryWorldSpace(){let e=this._readGeometry();if(e||(e=this._createDeltaQuantizedGeometryFromServerCentroid()),!e)return null;const t=e.clone(),s=this.getInTransform();return null!=s&&(0,_.aQ)(t,s),t}readCentroidForDisplay(){const e=this.readGeometryForDisplay();return e?this._computeDisplayCentroid(e):this._readServerCentroid()}readCentroidWorldSpace(){const e=this.readGeometryForDisplay(),t=e?this._computeDisplayCentroid(e):this._readServerCentroid();if(!t)return null;const s=t.clone(),r=this.getInTransform();return null!=r&&(0,_.aQ)(s,r),s}setCache(e){let t=this._caches.get(e);null==t&&(t=new y.P(this.getSize()),this._caches.set(e,t)),this._activeCache=t}setCachedValue(e){this._activeCache.set(this.getIndex(),e)}hasCachedValue(){return this._activeCache.has(this.getIndex())}getCachedValue(){return this._activeCache.get(this.getIndex())}get underlyingMemory(){let e=0;e+=(0,n.Qf)(this._boundsBuffer);for(const t of this._caches.values())e+=t.usedMemory;return e}_readGeometryDeltaDecoded(e){const t=this._readGeometry(e);if("esriGeometryPoint"===this.geometryType||!t)return t;const s=this.getInTransform();if(!t||!s)return t;const r=s.scale[2]??1,i=s.translate[2]??0,n=s.scale[3]??1,o=s.translate[3]??0,{hasZ:a,hasM:h,stride:l,size:u,coords:d}=t,c=a&&(1!==r||0!==i),f=h&&(1!==n||0!==o);if(c||f){const e=2,t=a?3:2;for(let s=0,a=l*u;s<a;s+=l)c&&(d[s+e]=r*d[s+e]+i),f&&(d[s+t]=n*d[s+t]+o)}return t.deltaDecode()}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this.fields.has(e)||this._joined.some(t=>t.hasField(e))}geometry(){const e=this.readGeometryWorldSpace(),t=(0,_.zv)(e,this.geometryType,this.hasZ,this.hasM),s=(0,u.rS)(t);if(s){if(!this.metadata.outSpatialReference)throw new Error("InternalError: Expected spatial reference to be defined");s.spatialReference=this.metadata.outSpatialReference}return s}autocastArcadeDate(e,t){return t&&t instanceof Date?this.isUnknownDateTimeField(e)?r.lY.unknownDateJSToArcadeDate(t):r.lY.dateJSAndZoneToArcadeDate(t,this.contextTimeZone??g.qU):t}isUnknownDateTimeField(e){return this.metadata.fieldsIndex.getTimeZone(e)===g.L5}field(e){let t=this.fields.get(e);if(t)switch(t.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(this.readAttribute(e,!1));case"time-only":case"esriFieldTypeTimeOnly":return a.k.fromReader(this.readAttribute(e,!1));case"esriFieldTypeTimestampOffset":case"timestamp-offset":return r.lY.fromReaderAsTimeStampOffset(this.readAttribute(e,!1));case"date":case"esriFieldTypeDate":return this.autocastArcadeDate(e,this.readAttribute(e,!0));default:return this.readAttribute(e,!1)}for(const s of this._joined)if(s.setIndex(this.getIndex()),t=s.fields.get(e),t)switch(t.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(s._readAttribute(e,!1));case"time-only":case"esriFieldTypeTimeOnly":return a.k.fromReader(s._readAttribute(e,!1));case"esriFieldTypeTimestampOffset":case"timestamp-offset":return r.lY.fromReaderAsTimeStampOffset(s._readAttribute(e,!1));case"date":case"esriFieldTypeDate":return this.autocastArcadeDate(e,s._readAttribute(e,!0));default:return this.readAttribute(e,!1)}throw new Error(`Field ${e} does not exist`)}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this.fields.fields.map(e=>e.name)}isEmpty(){return this.fields.fields.length<=0&&null==this.geometry()}castToText(e=!1){if(!e)return JSON.stringify(this.readLegacyFeatureForDisplay());const t=this.readLegacyFeatureForDisplay();if(!t)return JSON.stringify(null);const s={geometry:t.geometry,attributes:{...t.attributes}};for(const e in s.attributes){const t=s.attributes[e];t instanceof Date&&(s.attributes[e]=t.getTime())}return JSON.stringify(s)}gdbVersion(){return null}fullSchema(){return this.metadata.arcadeSchema}castAsJson(e=null){return{attributes:this._readAttributes(),geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}applyPostQueryFilter(e){if(this._postQueryFilteredIds.clear(),!e)return;const t=this.getCursor();for(;t.next();)e.check(t,{currentUser:null})||this._postQueryFilteredIds.add(t.getObjectId())}_getExists(){if(this._overrides){const e=this.getObjectId();return!this._overrides.hasOverride(e)}return!this._postQueryFilteredIds.has(this.getObjectId())}_computeDisplayCentroid(e){if(null==this.getInTransform())return(0,f.Q)(e);const t=h.z.fromOptimized(e,this.geometryType);t.yFactor*=-1;const s=(0,d.d)(t);return s?isNaN(s[0])||isNaN(s[1])?(0,f.Q)(e):(s[1]*=-1,new m.A([],s)):null}copyInto(e){e._joined=this._joined,e._overrides=this._overrides,e._objectIdToIndex=this._objectIdToIndex,e._boundsBuffer=this._boundsBuffer,e._activeCache=this._activeCache,e._caches=this._caches,e._contextTimeZone=this._contextTimeZone,e._postQueryFilteredIds=this._postQueryFilteredIds}_readLegacyGeometryWorldSpace(){const e=this.readGeometryWorldSpace();return(0,_.zv)(e,this.geometryType,!1,!1)}_createDeltaQuantizedGeometryFromServerCentroid(){const e=this._readServerCentroid();if(!e)return null;const[t,s]=e.coords;return this._createDeltaQuantizedExtrudedGeometry(t,s)}_createDeltaQuantizedExtrudedGeometry(e,t){return"esriGeometryPolyline"===this.geometryType?this._createDeltaQuantizedExtrudedLine(e,t):this._createDeltaQuantizedExtrudedQuad(e,t)}_createDeltaQuantizedExtrudedQuad(e,t){return new m.A([5],[e-1,t,1,-1,1,1,-1,1,-1,-1])}_createDeltaQuantizedExtrudedLine(e,t){return new m.A([2],[e-1,t+1,1,-1])}}},52350(e,t,s){s.d(t,{e:()=>a});var r=s(69397),i=s(62577),n=s(90708),o=s(99996);class a extends o.Y{static from(e,t){if(e instanceof this){const s=new Set(t),r=e._indices.filter(e=>s.has(e));return new a(e._reader,r)}return new a(e.copy(),t)}constructor(e,t){super(e.metadata),this._currentIndex=-1,this._displayTransform=null,this._reader=e,this._indices=t}setTransformForDisplay(e){const t=this._reader.getInTransform();if(null==t)return void(this._displayTransform=(0,i.Q1)(e));const s=(0,i.Q1)(t),r=(0,i.Q1)(e),[n,o]=s.scale,[a,h]=s.translate,[l,u]=r.scale,[d,c]=r.translate,f=n/l,_=o/u,p=(a-d)/l,m=(h-c)/u;this._displayTransform={originPosition:"lowerLeft",scale:[1/f,1/_,1,1],translate:[-p/f,-m/_,0,0]}}getInTransform(){return this._reader.getInTransform()}get fields(){return this._reader.fields}get hasNext(){return this._currentIndex+1<this._indices.length}getSize(){return this._indices.length}getCursor(){return this.copy()}copy(){const e=new a(this._reader.copy(),this._indices);return e._currentIndex=this._currentIndex,e._displayTransform=this._displayTransform,e._processorAttributes=this._processorAttributes,e}get contextTimeZone(){return this._reader.contextTimeZone}set contextTimeZone(e){this._reader.contextTimeZone=e}get usedMemory(){return r.qK+this._reader.usedMemory}setProcessorAttributes(e){this._processorAttributes=Object.assign(this._processorAttributes??{},e)}_nextIndex(){return++this._currentIndex<this._indices.length&&(this._reader.setIndex(this._indices[this._currentIndex]),!0)}next(){for(;this._nextIndex()&&!this._reader._getExists(););return this._currentIndex<this._indices.length}readXForDisplay(){return this._displayTransform?(0,i.IE)(this._displayTransform,this._reader.readXForDisplay()):this._reader.readXForDisplay()}readYForDisplay(){return this._displayTransform?(0,i.B2)(this._displayTransform,this._reader.readYForDisplay()):this._reader.readYForDisplay()}readGeometryForDisplay(){return this._displayTransform?this._reader.readGeometryForDisplayTransformed(this._displayTransform):this._reader.readGeometryForDisplay()}readCentroidForDisplay(){const e=this._reader.readCentroidForDisplay()?.clone();if(e){const[t,s]=e.coords;this._displayTransform&&(e.coords[0]=(0,i.IE)(this._displayTransform,t),e.coords[1]=(0,i.B2)(this._displayTransform,s))}return e}get geometryType(){return this._reader.geometryType}get hasFeatures(){return this._reader.hasFeatures}get exceededTransferLimit(){return this._reader.exceededTransferLimit}get hasZ(){return this._reader.hasZ}get hasM(){return this._reader.hasM}readAttribute(e,t=!1){const s=this._reader.readAttribute(e,t);return null==s&&this._processorAttributes?this._processorAttributes[e]:s}readAttributes(){return{...this._processorAttributes,...this._reader.readAttributes()}}joinAttributes(e){return this._reader.joinAttributes(e)}getBounds(e){return this._reader.getBounds(e)}getAttributeHash(){return this._reader.getAttributeHash()}getObjectId(){return this._reader.getObjectId()}getDisplayId(){return this._reader.getDisplayId()}setDisplayId(e){return this._reader.setDisplayId(e)}setIndex(e){return this._reader.setIndex(e)}getIndex(){return this._reader.getIndex()}readXWorldSpace(){return this._reader.readXWorldSpace()}readYWorldSpace(){return this._reader.readYWorldSpace()}_readX(){return this._reader.readXForDisplay()}_readY(){return this._reader.readYForDisplay()}_readServerCentroid(){return this._reader._readServerCentroid()}readLegacyFeatureForDisplay(){const e=this.readCentroidForDisplay();return{attributes:this.readAttributes(),geometry:this.readLegacyGeometryForDisplay(),centroid:(e&&{x:e.coords[0],y:e.coords[1]})??null}}readLegacyGeometryForDisplay(){const e=this.readGeometryForDisplay();return(0,n.zv)(e,this.geometryType,!1,!1)}readGeometryArea(){return this._displayTransform?this._reader.readGeometryForDisplayTransformed(this._displayTransform)?.area()??0:this._reader.readGeometryArea()}readGeometryWorldSpace(){return this._reader.readGeometryWorldSpace()}_readGeometry(){return this._reader._readGeometry()}_readAttribute(e,t){throw new Error("Error: Should not be called. Underlying _reader should be used instead")}_readAttributes(){throw new Error("Error: Should not be called. Underlying _reader should be used instead")}readArcadeFeature(){return this._reader.readArcadeFeature()}geometry(){return this._reader.geometry()}field(e){return this._reader.field(e)}hasField(e){return this._reader.hasField(e)}setField(e,t){return this._reader.setField(e,t)}keys(){return this._reader.keys()}castToText(e=!1){return this._reader.castToText(e)}}},8446(e,t,s){s.d(t,{K:()=>a});var r=s(90708),i=s(43334),n=s(95466),o=s(99996);class a extends o.Y{static fromFeatures(e,t){const{geometryType:s,hasZ:i,hasM:n,featureIdInfo:o}=t,h=(0,r.Di)([],e,s,i,n,o);for(let t=0;t<h.length;t++)h[t].displayId=e[t].displayId;return a.fromOptimizedFeatures(h,t)}static fromFeatureSet(e,t){const s=(0,r.q3)(e,t.featureIdInfo);return a.fromOptimizedFeatureSet(s,t)}static fromOptimizedFeatureSet(e,t){const s=a.fromOptimizedFeatures(e.features,t);return s._exceededTransferLimit=e.exceededTransferLimit,s._transform=e.transform,s._fieldsIndex=new n.A(e.fields),s}static fromOptimizedFeatures(e,t,s){const r=new a(e,t);return r._fieldsIndex=t.fieldsIndex,r._transform=s,r}static empty(e){return new a([],e)}constructor(e,t){super(t),this._featureIndex=-1,this._exceededTransferLimit=!1,this._fieldsIndex=null,this._hasZ=!1,this._hasM=!1,this._geometryType=t.geometryType,this._hasZ=t.hasZ,this._hasM=t.hasM,this._features=e}get fields(){return this._fieldsIndex}get geometryType(){return this._geometryType}get hasFeatures(){return!!this._features.length}get hasNext(){return this._featureIndex+1<this._features.length}get exceededTransferLimit(){return this._exceededTransferLimit}get hasZ(){return this._hasZ}get hasM(){return this._hasM}get _current(){return this._features[this._featureIndex]}get usedMemory(){return this._current.usedMemory}getSize(){return this._features.length}getCursor(){return this.copy()}getInTransform(){return this._transform}getAttributeHash(){let e="";for(const t in this._current.attributes)e+=this._current.attributes[t];return e}getIndex(){return this._featureIndex}setIndex(e){this._featureIndex=e}getObjectId(){return this._current?.objectId}getDisplayId(){return this._current.displayId}setDisplayId(e){this._current.displayId=e}copy(){const e=new a(this._features,this.metadata);return this.copyInto(e),e}next(){for(;++this._featureIndex<this._features.length&&!this._getExists(););return this._featureIndex<this._features.length}readGeometryArea(){return(0,i.N3)(this._current)?(0,r.Rk)(this._current.geometry,2):0}_readX(){return(0,i.N3)(this._current)?this._current.geometry.coords[0]:0}_readY(){return(0,i.N3)(this._current)?this._current.geometry.coords[1]:0}_readGeometry(){return(0,i.N3)(this._current)?this._current.geometry??null:null}_readServerCentroid(){return this._current.centroid}_readAttribute(e,t){if(!this._fieldsIndex){const t=this._current.attributes[e];if(void 0!==t)return t;const s=e.toLowerCase();for(const e in this._current.attributes)if(e.toLowerCase()===s)return this._current.attributes[e];return}const s=this._fieldsIndex.get(e);if(!s)return;const r=this._current.attributes[s.name];return null==r?r:t&&this.fields.isDateField(e)?new Date(r):r}_readAttributes(){return this._current.attributes}copyInto(e){super.copyInto(e),e._featureIndex=this._featureIndex,e._transform=this._transform,e._fieldsIndex=this._fieldsIndex}}},16630(e,t,s){s.d(t,{s:()=>u}),s(44208);var r=s(69397),i=s(92722),n=s(17754),o=s(57733),a=s(99996);let h;const l=new TextDecoder;class u extends a.Y{constructor(e,t,s,i,n=new Uint32Array(s.size())){super(e),this._indexMap=t,this._inner=s,this._fileId=i,this._displayIds=n,this._index=-1,this.usedMemory=r.qK,this._size=this._inner.size(),e.featureIdInfo.type}destroy(){super.destroy(),this._inner.free()}get fields(){return this.metadata.fieldsIndex}get geometryType(){return this.metadata.geometryType}get hasFeatures(){return!0}get hasNext(){throw new Error("Method not implemented.")}get exceededTransferLimit(){return!1}get hasZ(){return!1}get hasM(){return!1}async updateFields(e,t,s,r){const i=this._inner.rowGroup(),n=new Uint32Array(this._inner.readIdsUnsafe()),o=await e.createPatch(t,i,n,s,r);this._inner.insertPatchBytes(new Uint8Array(o))}getInTransform(){return null}getSize(){return this._size}getCursor(){return this.copy()}getAttributeHash(){let e="";for(const t of this.fields.fields)e+=this._readAttribute(t.name,!1)+".";return e}getObjectId(){return(0,n.xb)(this._fileId,this._inner.rowId(this._index))}getDisplayId(){return this._displayIds[this._index]}setDisplayId(e){this._displayIds[this._index]=e}setIndex(e){this._index=e}getBoundsXMin(){return this._inner.boundsXMin(this._index)}getBoundsYMin(){return this._inner.boundsYMin(this._index)}getBoundsXMax(){return this._inner.boundsXMax(this._index)}getBoundsYMax(){return this._inner.boundsYMax(this._index)}setBoundsXMin(e){throw new Error("InternalError: Setting bounds is unsupported")}setBoundsYMin(e){throw new Error("InternalError: Setting bounds is unsupported")}setBoundsXMax(e){throw new Error("InternalError: Setting bounds is unsupported")}setBoundsYMax(e){throw new Error("InternalError: Setting bounds is unsupported")}getIndex(){return this._index}next(){for(;++this._index<this._size&&!this._getExists(););return this._index<this._size}readGeometryArea(){return this.readGeometryForDisplay()?.area()??0}copy(){const e=new u(this.metadata,this._indexMap,this._inner,this._fileId,this._displayIds);return this.copyInto(e),e}copyInto(e){super.copyInto(e),e._index=this._index}readGeometryForDisplayTransformed(e){const[t,s]=e.translate,[r,n]=e.scale;return h||(h=o.QuantizedGeometryBuffer.new()),this._inner.transformGeometry(h,t,s,r,n,this._index)?new i.A(h.readLengthsUnsafe(),h.readCoordsUnsafe(),this.hasZ,this.hasM):null}_readGeometry(e){const t=this._inner.readCoordsUnsafe(this._index),s=this._inner.readLengthsUnsafe(this._index);return t&&s?new i.A(s,t,this.hasZ,this.hasM):null}_readX(){return this._inner.readX(this._index)}_readY(){return this._inner.readY(this._index)}_readServerCentroid(){return null}_readAttribute(e,t){const s=this.fields.get(e);if(!s)return;const r=this._indexMap[s.name];if(null==r)return this.getObjectId();const i=this._inner.readAttribute(this._index,r);if(null==i)return i;if("esriFieldTypeString"===s.type||"esriFieldTypeDateOnly"===s.type||"esriFieldTypeTimeOnly"===s.type||"esriFieldTypeTimestampOffset"===s.type){const e=this._inner.readAttribute(this._index,r);return l.decode(e)}const n=this.fields.isDateField(s.name);return t?null==i?i:n?new Date(i):i:i}_readAttributes(){const e={};for(const t of this.metadata.fieldsIndex.fields){if(null==this._indexMap[t.name])continue;const s=this._readAttribute(t.name,!1);void 0!==s&&(e[t.name]=s)}return e.__OBJECTID=this.getObjectId(),e}}},73250(e,t,s){s.d(t,{y:()=>i});var r=s(69397);class i{static fromBuffer(e,t){return new i(e,t)}static create(e,t=4294967295){const s=new Uint32Array(Math.ceil(e/32));return new i(s,t)}constructor(e,t){this._mask=0,this._buf=e,this._mask=t}_getIndex(e){return Math.floor(e/32)}get usedMemory(){return(0,r.Qf)(this._buf)}has(e){const t=this._mask&e;return!!(this._buf[this._getIndex(t)]&1<<t%32)}hasRange(e,t){let s=e,r=t;for(;s%32&&s!==r;){if(this.has(s))return!0;s++}for(;r%32&&s!==r;){if(this.has(s))return!0;r--}if(s===r)return!1;for(let e=s/32;e!==r/32;e++)if(this._buf[e])return!0;return!1}set(e){const t=this._mask&e,s=this._getIndex(t),r=1<<t%32;this._buf[s]|=r}setRange(e,t){let s=e,r=t;for(;s%32&&s!==r;)this.set(s++);for(;r%32&&s!==r;)this.set(r--);if(s!==r)for(let e=s/32;e!==r/32;e++)this._buf[e]=4294967295}unset(e){const t=this._mask&e,s=this._getIndex(t),r=1<<t%32;this._buf[s]&=4294967295^r}resize(e){const t=this._buf,s=new Uint32Array(Math.ceil(e/32));s.set(t),this._buf=s}or(e){for(let t=0;t<this._buf.length;t++)this._buf[t]|=e._buf[t];return this}and(e){for(let t=0;t<this._buf.length;t++)this._buf[t]&=e._buf[t];return this}xor(e){for(let t=0;t<this._buf.length;t++)this._buf[t]^=e._buf[t];return this}ior(e){for(let t=0;t<this._buf.length;t++)this._buf[t]|=~e._buf[t];return this}iand(e){for(let t=0;t<this._buf.length;t++)this._buf[t]&=~e._buf[t];return this}ixor(e){for(let t=0;t<this._buf.length;t++)this._buf[t]^=~e._buf[t];return this}any(){for(let e=0;e<this._buf.length;e++)if(this._buf[e])return!0;return!1}copy(e){for(let t=0;t<this._buf.length;t++)this._buf[t]=e._buf[t];return this}clone(){return new i(this._buf.slice(),this._mask)}clear(){for(let e=0;e<this._buf.length;e++)this._buf[e]=0;return this}forEachSet(e){for(let t=0;t<this._buf.length;t++){let s=this._buf[t],r=32*t;if(s)for(;s;)1&s&&e(r),s>>>=1,r++}}countSet(){let e=0;return this.forEachSet(t=>{e++}),e}}},9012(e,t,s){function r(e,{timeZone:t,timeExtent:s}){return{$view:{scale:e,timeZone:t,timeProperties:{currentStart:s?.start,currentEnd:s?.end}}}}s.d(t,{N:()=>r})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7548],{69052(t,e,n){n.d(e,{hr:()=>r,ie:()=>c,uC:()=>a});var s=n(34727);class r{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,n=!1){return o(this.range,this.min,this.max,t,e,n)}clamp(t,e=0){return(0,s.qE)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+i(this.range,t-e,n)}minimalMonotonic(t,e,n){return o(this.range,t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);const n=(e=this.normalize(e))-t,s=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(s)?n:s}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function o(t,e,n,s,r=0,o=!1){return(s-=r)<e?s+=i(t,e-s):s>n&&(s-=i(t,s-n)),o&&s===n&&(s=e),s+r}function i(t,e,n=0){return Math.ceil((e-n)/t)*t+n}const a=new r(0,2*Math.PI),c=(new r(-Math.PI,Math.PI),new r(0,360))},69397(t,e,n){n.d(e,{Qf:()=>c,Qh:()=>i,RS:()=>r,Ul:()=>p,i5:()=>h,lM:()=>o,qK:()=>u});var s=n(34275);const r=16;function o(t){if(!t)return 0;let e=u;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n],!1));return e}function i(t){if(!t)return 0;if("number"==typeof t[0])return c(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return l(t,8);let n=f;for(let s=0;s<e;s++)n+=a(t[s]);return n}(t);let e=u;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?i(t):u;case"string":return function(t){return 32+t.length}(t);case"number":return r;case"boolean":return 4;default:return 8}}function c(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+h:Array.isArray(e)?l(e,r):0:0),0)}function l(t,e){return f+t.length*e}const u=32,f=16,h=145,p=64},31411(t,e,n){n.d(e,{GS:()=>R,gh:()=>E});var s=n(49186),r=n(56512),o=n(65864),i=n(4305),a=n(50954),c=n(52006),l=n(49663),u=n(46068),f=n(15507);const h=1e-6,p=[0,0];function m(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class d{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:n,maxSegmentsPerCurve:s,minSegmentsPerCurve:r}){const o=n*n,i=e*e,a=1/s,c=this.interpolate(0),l=this.interpolate(1);(0,f.kb)(this.curveStart,c)>h&&t.push(c),this.initialize(c,l);const u=1/r;for(let t=r-1;t>0;t--){const e=t*u;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<a||(0===o||!isFinite(o)||(0,f.kb)(this.arcStart,this.arcEnd)<o)&&(0===i||!isFinite(i)||this.getDeviation2()<i)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,f.kb)(this.curveEnd,l)>h&&t.push([...this.curveEnd]),t}}class y extends d{constructor(t,e){const[n,s,r]=e.b;super(t,n),this._controlPointsStack=[],this._curveControlPoints=[s,r],this._arcControlPoints=[s,r],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:n,tStart:s,tEnd:r}=this,[o,i]=this._arcControlPoints,a=(t-s)/(r-s),c=(0,f.RS)([],e,o,a),l=(0,f.RS)(p,o,i,a),u=(0,f.RS)([],i,n,a),h=(0,f.RS)([],c,l,a),m=(0,f.RS)([],l,u,a),d=(0,f.RS)([],h,m,a);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([m,u]),this.tEndStack.push(t),this.arcEndStack.push(d),this._arcControlPoints[0]=c,this._arcControlPoints[1]=h,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:n}=this,[s,r]=this._curveControlPoints;return(0,i.B4)(e,s,r,n,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[n,s]=this._arcControlPoints;return Math.max((0,f.yE)(n,t,e),(0,f.yE)(s,t,e))}}class g extends d{constructor(t,e){const[n]=e.a;super(t,n),this._derivedEllipse=(0,u.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,u.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,f.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function S(t,e,n,{cx:s,cy:r,radius:o,thetaStart:i,thetaEnd:a,isInvalid:c},{maxDeviation:l,maxSegmentLength:u,maxSegmentsPerCurve:p,minSegmentsPerCurve:m}){if(c)return t.push([...n]),t;const d=2*o,y=[s+o*Math.cos(i),r+o*Math.sin(i)],g=[s+o*Math.cos(a),r+o*Math.sin(a)];(0,f.kb)(e,y)>h&&t.push(y);const S=Math.abs(a-i),M=u>0&&u<d?2*Math.asin(u/d):S,v=l>0&&l<=o?2*Math.acos(1-l/o):S,w=Math.min(M,v),x=Math.min(p,Math.max(m,Math.ceil(Math.abs(S/w)))),b=1/x;for(let e=1;e<x;e++){const n=e*b,c=i*(1-n)+a*n;t.push([s+o*Math.cos(c),r+o*Math.sin(c)])}return t.push(g),(0,f.kb)(n,g)>h&&t.push([...n]),t}function M(t,e,n,s){return new y(e,n).densify(t,s)}function v(t,e,n,s){const r=(0,a.pM)(e,n),[o]=n.c;return S(t,e,o,r,s)}function w(t,e,n,s){const r=(0,l.io)(e,n),[o]=n.a;return S(t,e,o,r,s)}function x(t,e,n,s){const[r,o,i,a,c,l,u]=n.a;return 0===l||0===u?(t.push([...r]),t):new g(e,n).densify(t,s)}function b(t,e,n,s){return(0,c.Xq)(n)?(t.push([...n]),t):(0,c.n1)(n)?M(t,e,n,s):(0,c.aO)(n)?v(t,e,n,s):(0,c.DA)(n)?w(t,e,n,s):x(t,e,n,s)}function R(t,e={}){if(!(0,c.Ed)(t))return t;const n=m(e),s=(0,c.FD)(t),r=[];for(const t of s){const e=[];for(let s=0;s<t.length-1;s++){const r=s+1,o=[...(0,c.yP)(t[s])];0===s&&e.push(o),b(e,o,t[r],n)}r.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:r,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:r,spatialReference:t.spatialReference}}const A=(0,r.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function E(t,e,r){const i=new Set(e);return await async function(t,e,r){let o=null;for(const i of t)if(i&&(0,c.Ed)(i)&&null==i.spatialReference.xyTolerance&&(0,c.V8)(i,e)){const t=i.spatialReference;if(!t)throw new s.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=P(t);if(r.has(e))i.spatialReference=r.get(e);else{o||(o=await Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(6312)]).then(n.bind(n,78125)));const a=o.fromSpatialReference(t),c=a?.getTolerance();if(null==c)throw new s.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const l=i.spatialReference.clone();l.read({xyTolerance:c}),i.spatialReference=l,r.set(e,l)}}}(t,i,r),t.map(t=>{if(!t||!(0,c.Ed)(t))return t;const n=t.spatialReference.xyTolerance;if(null==n)return t;const s=A(n);return(0,o.rS)(function(t,e,n){if(!(0,c.Ed)(t))return t;const s=new Set(e),r=m(n),o=(0,c.FD)(t),i=[];let a=!1;for(const t of o){const e=[];for(let n=0;n<t.length-1;n++){const o=n+1,i=[...(0,c.yP)(t[n])];0===n&&e.push(i);const l=t[o];(0,c.Xq)(l)?e.push([...l]):(0,c.n1)(l)&&!s.has("cubic-bezier")?M(e,i,l,r):(0,c.aO)(l)&&!s.has("circular-arc")?v(e,i,l,r):(0,c.DA)(l)&&!s.has("elliptic-arc")?w(e,i,l,r):(0,c.wY)(l)&&!s.has("elliptic-arc")?x(e,i,l,r):(e.push((0,c.tk)(l)),a=!0)}i.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...a?{curvePaths:i}:{paths:i}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...a?{curveRings:i}:{rings:i}}}(t,e,s))})}function P(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},17136(t,e,n){n.d(e,{Y_:()=>F,O7:()=>k,el:()=>P});var s=n(92602),r=n(69052),o=n(49186),i=n(53966),a=n(39829),c=n(82799),l=n(16930),u=n(80754),f=n(21325),h=n(28735),p=n(52006),m=n(31411),d=n(11254),y=n(60408),g=n(65864),S=n(2272),M=n(84952),v=n(92300);const w=()=>i.A.getLogger("esri.geometry.support.normalizeUtils");function x(t){return"polygon"===t[0].type}function b(t){return"polyline"===t[0].type}function R(t,e,n){const s=1e6;if(e){const e=(0,p.Ed)(t)?(0,m.GS)(t,{maxSegmentLength:s}):function(t,e){if(!(t instanceof c.A||t instanceof a.A)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw w().error(t),new o.A("internal:geometry",t)}const n=(0,u.r8)(t),s=[];for(const t of n){const n=[];s.push(n),n.push([t[0][0],t[0][1]]);for(let s=0;s<t.length-1;s++){const r=t[s][0],o=t[s][1],i=t[s+1][0],a=t[s+1][1],c=Math.sqrt((i-r)*(i-r)+(a-o)*(a-o)),l=(a-o)/c,u=(i-r)/c,f=c/e;if(f>1){for(let t=1;t<=f-1;t++){const s=t*e,i=u*s+r,a=l*s+o;n.push([i,a])}const t=(c+Math.floor(f-1)*e)/2,s=u*t+r,i=l*t+o;n.push([s,i])}n.push([i,a])}}return function(t){return"polygon"===t.type}(t)?new a.A({rings:s,spatialReference:t.spatialReference}):new c.A({paths:s,spatialReference:t.spatialReference})}(t,s);t=(0,h.ci)(e,!0)}return n&&(t=(0,u.kS)(t,n)),t}function A(t,e,n){if(Array.isArray(t)){const s=t[0];if(s>e){const n=(0,u.kd)(s,e);t[0]=s+n*(-2*e)}else if(s<n){const e=(0,u.kd)(s,n);t[0]=s+e*(-2*n)}}else{const s=t.x;if(s>e){const n=(0,u.kd)(s,e);t=t.clone().offset(n*(-2*e),0)}else if(s<n){const e=(0,u.kd)(s,n);t=t.clone().offset(e*(-2*n),0)}}return t}function E(t,e){let n=-1;for(let s=0;s<e.cutIndexes.length;s++){const r=e.cutIndexes[s],o=e.geometries[s],i=(0,u.r8)(o);for(let t=0;t<i.length;t++){const e=i[t];e.some(n=>{if(n[0]<180)return!0;{let n=0;for(let t=0;t<e.length;t++){const s=e[t][0];n=s>n?s:n}n=Number(n.toFixed(9));const s=-360*(0,u.kd)(n,180);for(let n=0;n<e.length;n++){const e=o.getPoint(t,n);o.setPoint(t,n,e.clone().offset(s,0))}return!0}})}if(r===n){if(x(t))for(const e of(0,u.r8)(o))t[r]=t[r].addRing(e);else if(b(t))for(const e of(0,u.r8)(o))t[r]=t[r].addPath(e)}else n=r,t[r]=o}return t}async function P(t,e,n){if(!Array.isArray(t))return P([t],e);e&&"string"!=typeof e&&w().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const r="string"==typeof e?e:e?.url??s.A.geometryServiceUrl;let o,i,l,p,m,x,b,k,C=0;const F=[],q=[];for(const e of t)if(null!=e)if(o||(o=e.spatialReference,i=(0,f.Vp)(o),l=o.isWebMercator,x=l?102100:4326,p=u.j7[x].maxX,m=u.j7[x].minX,b=u.j7[x].plus180Line,k=u.j7[x].minus180Line),i)if("mesh"===e.type)q.push(e);else if("point"===e.type)q.push(A(e.clone(),p,m));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(t=>A(t,p,m)),q.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,i);q.push(t.rings?new a.A(t):t)}else if(e.extent){const t=e.extent,n=(0,u.kd)(t.xmin,m)*(2*p);let s=0===n?e.clone():(0,u.kS)(e.clone(),n);t.offset(n,0);let{xmin:r,xmax:o}=t;r=Number(r.toFixed(9)),o=Number(o.toFixed(9)),t.intersects(b)&&o!==p?(C=o>C?o:C,s=R(s,l),F.push(s),q.push("cut")):t.intersects(k)&&r!==m?(C=o*(2*p)>C?o*(2*p):C,s=R(s,l,360),F.push(s),q.push("cut")):q.push(s)}else q.push(e.clone());else q.push(e);else q.push(e);let z=(0,u.kd)(C,p),I=-90;const O=z,G=new c.A;for(;z>0;){const t=360*z-180;G.addPath([[t,I],[t,-1*I]]),I*=-1,z--}if(F.length>0&&O>0){const e=E(F,await async function(t,e,n,s){const r=(0,S.Dl)(t),o=e[0].spatialReference,i={...s,responseType:"json",query:{...r.query,f:"json",sr:(0,f.YX)(o),target:JSON.stringify({geometryType:(0,y.$B)(e[0]),geometries:e}),cutter:JSON.stringify(n)}},a=await(0,d.A)(r.path+"/cut",i),{cutIndexes:c,geometries:l=[]}=a.data;return{cutIndexes:c,geometries:l.map(t=>{const e=(0,g.rS)(t);return e.spatialReference=o,e})}}(r,F,G,n)),s=[],o=[];for(let n=0;n<q.length;n++){const r=q[n];if("cut"!==r)o.push(r);else{const r=e.shift(),i=t[n];null!=i&&"polygon"===i.type&&i.rings&&i.rings.length>1&&r.rings.length>=i.rings.length?(s.push(r),o.push("simplify")):o.push(l?(0,h.Gh)(r):r)}}if(!s.length)return o;const i=await async function(t,e,n){const s="string"==typeof t?(0,M.An)(t):t,r=e[0].spatialReference,o=(0,y.$B)(e[0]),i={...n,query:{...s.query,f:"json",sr:(0,f.YX)(r),geometries:JSON.stringify((0,v.X)(e))}},{data:a}=await(0,d.A)(s.path+"/simplify",i);return(0,v.V)(a.geometries,o,r)}(r,s,n),a=[];for(let t=0;t<o.length;t++){const e=o[t];"simplify"!==e?a.push(e):a.push(l?(0,h.Gh)(i.shift()):i.shift())}return a}const Z=[];for(let t=0;t<q.length;t++){const e=q[t];if("cut"!==e)Z.push(e);else{const t=F.shift();Z.push(!0===l?(0,h.Gh)(t):t)}}return Z}function k(t,e,n){const s=(0,f.Vp)(n);if(null==s)return t;const[r,o]=s.valid,i=2*o;let a=0,c=0;e>o?a=Math.ceil(Math.abs(e-o)/i):e<r&&(a=-Math.ceil(Math.abs(e-r)/i)),t>o?c=Math.ceil(Math.abs(t-o)/i):t<r&&(c=-Math.ceil(Math.abs(t-r)/i));let l=t+(a-c)*i;const u=l-e;return u>o?l-=i:u<r&&(l+=i),l}function C(t){const e=(0,f.Vp)(t);if(null==e)return null;const[n,s]=e.valid;return new r.hr(n,s)}const F=C(l.A.WGS84);C(l.A.WebMercator)},80754(t,e,n){n.d(e,{j7:()=>a,kS:()=>l,kd:()=>c,r8:()=>u});var s=n(82799),r=n(16930),o=n(60408),i=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:r.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:r.A.WGS84})}};function c(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){if((0,i.Ed)(t))for(const n of function(t){return(0,o.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of n){if((0,i.aO)(t)){const[n,s]=t.c;n[0]+=e,s[0]+=e;continue}if((0,i.FG)(t)){const[n,s]=t.a;n[0]+=e,s[0]+=e;continue}if((0,i.n1)(t)){const[n,s,r]=t.b;n[0]+=e,s[0]+=e,r[0]+=e;continue}t[0]+=e}for(const n of u(t))for(const t of n)t[0]+=e;return t}function u(t){return(0,o.Bi)(t)?t.rings:t.paths}},62815(t,e,n){n.d(e,{N:()=>a,d:()=>c});var s=n(86211),r=n(73941),o=n(21325),i=n(52006);function a(t,e,n){const s=c(e,n);if(1!==s)switch(t){case"point":case"esriGeometryPoint":return t=>function(t,e){null!=t?.z&&(t.z*=e)}(t,s);case"polyline":case"esriGeometryPolyline":return t=>function(t,e){if(t){if(t.curvePaths)for(const n of t.curvePaths)for(const t of n){const n=(0,i.yP)(t);n.length>2&&(n[2]*=e)}if(t.paths)for(const n of t.paths)for(const t of n)t.length>2&&(t[2]*=e)}}(t,s);case"polygon":case"esriGeometryPolygon":return t=>function(t,e){if(t){if(t.curveRings)for(const n of t.curveRings)for(const t of n){const n=(0,i.yP)(t);n.length>2&&(n[2]*=e)}if(t.rings)for(const n of t.rings)for(const t of n)t.length>2&&(t[2]*=e)}}(t,s);case"multipoint":case"esriGeometryMultipoint":return t=>function(t,e){if(t)for(const n of t.points)n.length>2&&(n[2]*=e)}(t,s);case"extent":case"esriGeometryEnvelope":return t=>function(t,e){t&&null!=t.zmin&&null!=t.zmax&&(t.zmin*=e,t.zmax*=e)}(t,s);default:return}}function c(t,e){return null==t||null==e||e.vcsWkid||(0,o.aI)(t,e)||(0,r.xP)(t)||(0,r.xP)(e)?1:(0,s.G9)(t)/(0,s.G9)(e)}},41653(t,e,n){n.r(e),n.d(e,{queryModel:()=>g,queryModels:()=>y});var s=n(11254),r=n(4576),o=n(49186),i=n(91869),a=n(84952),c=n(5482),l=n(69622),u=n(91429);let f=class extends l.A{constructor(t){super(t),this.name="",this.size=0}arrayBuffer(t){return this.loadArrayBuffer(t)}};(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],f.prototype,"loadArrayBuffer",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],f.prototype,"name",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],f.prototype,"size",void 0),f=(0,c.Cg)([(0,u.$K)("esri.layers.scene.ModelFileInfo")],f);let h=class extends l.A{constructor(t){super(t),this.files=[],this.format="",this.isSource=!1,this.name="",this.size=0}};(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],h.prototype,"files",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],h.prototype,"format",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],h.prototype,"isSource",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],h.prototype,"name",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],h.prototype,"size",void 0),h=(0,c.Cg)([(0,u.$K)("esri.layers.scene.ModelInfo")],h);var p=n(20557),m=n(99199),d=n(61956);async function y(t,e,n,s){const c=t.infoFor3D;if(!c)throw new o.A("scenelayer:query-models-not-available","Model queries are not available without 3D object metadata",{layer:t});const{objectIdField:l,globalIdField:u}=e,{sourceHashField:f}=c;if(!l||!u||!f)throw new o.A("scenelayer:query-models-not-available","Missing required fields for model queries",{layer:t});const h=function(t,e,n,s,r){const o=function(t,e){const n=d.A.from(e)?.clone()??t.createQuery();return n.outFields=null,n.formatOf3DObjects=null,n.returnGeometry=!1,n}(t,e);return o.outFields=[n,s,r],o.returnGeometry=!1,o}(t,n,l,u,f),y=await e.queryFeatures(h,s);return await async function(t){const{infoFor3D:e,associatedLayer:n,options:s}=t,o=n.globalIdField,c=n.parsedUrl;if(!o||!c)return new Map;const l=await async function(t){const{options:e,infoFor3D:n,featureInfos:s}=t,o=[...s.keys()];if(e?.requestedFormat){const t=(0,p.fE)(e.requestedFormat,n.supportedFormats);return t?[{formatId:t,objectIds:o}]:[]}const c=(0,r.Am)([...n.queryFormats,...n.editFormats]);return await async function({options:t,infoFor3D:e,featureInfos:n,requestQuery:s,associatedLayer:o},c){const l=!!t?.sourceOnly,u=e.assetMapFieldRoles.parentGlobalId,f=e.assetMapFieldRoles.assetHash,h=e.assetMapFieldRoles.assetType,y=l?f:u,g=new Map;for(const[t,e]of n){const n=l?e.sourceHash:e.globalId;n&&g.set(t,n)}const S=(0,r.Am)(g.values()),M=(0,p.JZ)(e);if(!M||!S.length)return[];const v=(0,a.fj)(o.parsedUrl?.path??"",`../${M.id}`),w=new d.A({where:`${y} IN (${S.map(x).join(",")})`,outFields:[y,h],returnDistinctValues:!0,returnGeometry:!1}),b=await(0,m.s)(v,w,{query:s,signal:t?.signal}),R=new Set(c),A=new Map,E=new Set;for(const t of b.features){const e=t.getAttribute(y),n=t.getAttribute(h);n&&R.has(n)&&(e?(0,i.tE)(A,e,()=>new Set).add(n):E.add(n))}if(!l&&!A.size&&E.size){const t=[...n.keys()];return c.filter(t=>E.has(t)).map(e=>({formatId:e,objectIds:t}))}const P=new Map;for(const[t,e]of g)for(const n of A.get(e)??[])(0,i.tE)(P,n,()=>[]).push(t);return c.map(t=>({formatId:t,objectIds:P.get(t)??[]})).filter(({objectIds:t})=>t.length>0)}(t,c)}(t),u=e.sourceHashField,f=new Map,h=await Promise.all(l.map(async({formatId:r,objectIds:i})=>{const a=(0,p.be)(r,e.supportedFormats),c=n.parsedUrl;if(null==a||!c||!i.length)return null;const l=(0,p._h)(r,e.supportedFormats),f=(0,p.qv)(l),h=n.createQuery();return h.objectIds=i,h.outFields=[o,u],h.formatOf3DObjects=r,h.returnGeometry=!0,{modelFormat:a,modelFileExtensions:f,featureSetJSON:await(0,m.e)(c.path,h,{query:t.requestQuery,signal:s?.signal},{uniqueIdFields:n.uniqueIdFields})}}));for(const e of h)e&&S(t,e.modelFormat,e.modelFileExtensions,e.featureSetJSON,f);return f}(new b(t,e,function(t,e){const n=new Map;for(const s of t.features){const t=s.getObjectId(),r=s.getGlobalId();null!=t&&null!=r&&n.set(t,{globalId:r,sourceHash:s.getAttribute(e)??null})}return n}(y,f),c,s))}async function g(t,e,n,s){const r=s?.format;return((await y(t,e,{objectIds:[n]},{...s,requestedFormat:r,sourceOnly:null==r})).get(n)??[]).find(t=>r&&t.format===r||!r&&t.isSource)}function S({featureInfos:t,requestQuery:e},n,s,r,o){const a=new Map;for(const t of r.assetMaps??[])(0,i.tE)(a,t.parentGlobalId,()=>[]).push(t);for(const[r,c]of t){const t=a.get(c.globalId);if(!t?.length)continue;const l=M(t,e);if(!l.length)continue;const u=l.reduce((t,e)=>t+e.size,0),f=w(l,s),p=null!=c.sourceHash&&t.some(({assetHash:t})=>t===c.sourceHash);(0,i.tE)(o,r,()=>[]).push(new h({name:f,size:u,format:n,isSource:p,files:l}))}}function M(t,e){const n=new Map;for(const e of t)(0,i.tE)(n,e.assetName,()=>[]).push(e);const s=[];for(const[t,r]of n){r.sort((t,e)=>t.seqNo-e.seqNo);const n=r.reduce((t,e)=>t+e.size,0),o=r.map(({assetURL:t})=>t).filter(t=>!!t);o.length&&s.push(new f({name:t,size:n,loadArrayBuffer:t=>v(o,e,t)}))}return s}async function v(t,e,n){const r=await Promise.all(t.map(t=>(0,s.A)(t,{responseType:"array-buffer",query:e,signal:n?.signal}).then(({data:t})=>t)));return 1===r.length?r[0]:function(t){const e=t.reduce((t,e)=>t+e.byteLength,0),n=new Uint8Array(e);let s=0;for(const e of t)n.set(new Uint8Array(e),s),s+=e.byteLength;return n.buffer}(r)}function w(t,e){const n=t.find(({name:t})=>e.some(e=>t.toLowerCase().endsWith(`.${e}`)));return n?.name??t[0].name}function x(t){return`'${t.replaceAll("'","''")}'`}class b{constructor(t,e,n,s,r){this.layer=t,this.associatedLayer=e,this.featureInfos=n,this.infoFor3D=s,this.options=r,this.requestQuery={...e.parsedUrl?.query,...t.customParameters,...t.apiKey?{token:t.apiKey}:{}}}}},92300(t,e,n){n.d(e,{V:()=>i,X:()=>o});var s=n(60408),r=n(65864);function o(t){return{geometryType:(0,s.$B)(t[0]),geometries:t.map(t=>t.toJSON())}}function i(t,e,n){const s=(0,r.xD)(e);return t.map(t=>{const e=s.fromJSON(t);return e.spatialReference=n,e})}},99199(t,e,n){n.d(e,{e:()=>c,s:()=>a});var s=n(2272),r=n(80893),o=n(22671),i=n(61956);async function a(t,e,n,s){const r=await c(t,e,n,s);return o.A.fromJSON(r)}function c(t,e,n,o){const a=(0,s.Dl)(t),c={...n},l=i.A.from(e);return(0,r.eW)(a,l,l.sourceSpatialReference,c,o)}},58501(t,e,n){n.d(e,{q:()=>r});var s=n(62815);function r(t,e,n){if(!n?.features||!n.hasZ)return;const r=(0,s.N)(n.geometryType,e,t.outSpatialReference);if(r)for(const t of n.features)r(t.geometry)}},22671(t,e,n){n.d(e,{A:()=>S});var s,r=n(5482),o=n(52106),i=n(66552),a=n(25482),c=n(4718),l=n(91429),u=n(16930),f=n(60408),h=n(65864),p=n(50498),m=n(20437),d=n(36005),y=n(43937);const g=new i.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let S=s=class extends a.o{constructor(t){super(t),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(t,e){return this.readFeaturesWithClass(t,e,o.A)}writeGeometryType(t,e,n,s){if(t)return void g.write(t,e,n,s);const{features:r}=this;if(r)for(const t of r)if(null!=t?.geometry)return void g.write(t.geometry.type,e,n,s)}readQueryGeometry(t,e){if(!t)return null;const n=!!t.spatialReference,s=(0,h.rS)(t);return s&&!n&&e.spatialReference&&(s.spatialReference=u.A.fromJSON(e.spatialReference)),s}writeSpatialReference(t,e){if(t)return void(e.spatialReference=t.toJSON());const{features:n}=this;if(n)for(const t of n)if(t&&null!=t.geometry&&t.geometry.spatialReference)return void(e.spatialReference=t.geometry.spatialReference.toJSON())}clone(){return new s(this.cloneProperties())}cloneProperties(){return(0,c.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(t){const e=this.write();if(e.features&&Array.isArray(t)&&t.length>0)for(let n=0;n<e.features.length;n++){const s=e.features[n];if(s.geometry){const e=t?.[n];s.geometry=e?.toJSON()||s.geometry}}return e}quantize(t){const{scale:[e,n],translate:[s,r]}=t,o=this.features,i=this._getQuantizationFunction(this.geometryType,t=>Math.round((t-s)/e),t=>Math.round((r-t)/n));for(let t=0,e=o.length;t<e;t++)i?.(o[t].geometry)||(o.splice(t,1),t--,e--);return this.transform=t,this}unquantize(){const{geometryType:t,features:e,transform:n}=this;if(!n)return this;const{translate:[s,r],scale:[o,i]}=n;let a=null,c=null;if(this.hasZ&&null!=n?.scale?.[2]){const{translate:[,,t],scale:[,,e]}=n;a=n=>n*e+t}if(this.hasM&&null!=n?.scale?.[3]){const{translate:[,,,t],scale:[,,,e]}=n;c=n=>null==n?n:n*e+t}const l=this._getHydrationFunction(t,t=>t*o+s,t=>r-t*i,a,c);for(const{geometry:t}of e)null!=t&&l&&l(t);return this.transform=null,this}readFeaturesWithClass(t,e,n){const s=u.A.fromJSON(e.spatialReference),r=[];for(let e=0;e<t.length;e++){const o=t[e],i=n.fromJSON(o),a=o.geometry?.spatialReference;null==i.geometry||a||(i.geometry.spatialReference=s);const c=o.aggregateGeometries,l=i.aggregateGeometries;if(c&&null!=l)for(const t in l){const e=l[t],n=c[t],r=n?.spatialReference;null==e||r||(e.spatialReference=s)}r.push(i)}return r}_quantizePoints(t,e,n){let s,r;const o=[];for(let i=0,a=t.length;i<a;i++){const a=t[i];if(i>0){const t=e(a[0]),i=n(a[1]);t===s&&i===r||(o.push([t-s,i-r]),s=t,r=i)}else s=e(a[0]),r=n(a[1]),o.push([s,r])}return o.length>0?o:null}_getQuantizationFunction(t,e,n){return"point"===t?t=>(t.x=e(t.x),t.y=n(t.y),t):"polyline"===t||"polygon"===t?t=>{const s=(0,f.Bi)(t)?t.rings:t.paths,r=[];for(let t=0,o=s.length;t<o;t++){const o=s[t],i=this._quantizePoints(o,e,n);i&&r.push(i)}return r.length>0?((0,f.Bi)(t)?t.rings=r:t.paths=r,t):null}:"multipoint"===t?t=>{const s=this._quantizePoints(t.points,e,n);return s&&s.length>0?(t.points=s,t):null}:"extent"===t?t=>t:null}_getHydrationFunction(t,e,n,s,r){return"point"===t?t=>{t.x=e(t.x),t.y=n(t.y),s&&(t.z=s(t.z))}:"polyline"===t||"polygon"===t?t=>{const o=(0,f.Bi)(t)?t.rings:t.paths;let i,a;for(let t=0,s=o.length;t<s;t++){const s=o[t];for(let t=0,r=s.length;t<r;t++){const r=s[t];t>0?(i+=r[0],a+=r[1]):(i=r[0],a=r[1]),r[0]=e(i),r[1]=n(a)}}if(s&&r)for(let t=0,e=o.length;t<e;t++){const e=o[t];for(let t=0,n=e.length;t<n;t++){const n=e[t];n[2]=s(n[2]),n[3]=r(n[3])}}else if(s)for(let t=0,e=o.length;t<e;t++){const e=o[t];for(let t=0,n=e.length;t<n;t++){const n=e[t];n[2]=s(n[2])}}else if(r)for(let t=0,e=o.length;t<e;t++){const e=o[t];for(let t=0,n=e.length;t<n;t++){const n=e[t];n[2]=r(n[2])}}}:"extent"===t?t=>{t.xmin=e(t.xmin),t.ymin=n(t.ymin),t.xmax=e(t.xmax),t.ymax=n(t.ymax),s&&null!=t.zmax&&null!=t.zmin&&(t.zmax=s(t.zmax),t.zmin=s(t.zmin)),r&&null!=t.mmax&&null!=t.mmin&&(t.mmax=r(t.mmax),t.mmin=r(t.mmin))}:"multipoint"===t?t=>{const o=t.points;let i,a;for(let t=0,s=o.length;t<s;t++){const s=o[t];t>0?(i+=s[0],a+=s[1]):(i=s[0],a=s[1]),s[0]=e(i),s[1]=n(a)}if(s&&r)for(let t=0,e=o.length;t<e;t++){const e=o[t];e[2]=s(e[2]),e[3]=r(e[3])}else if(s)for(let t=0,e=o.length;t<e;t++){const e=o[t];e[2]=s(e[2])}else if(r)for(let t=0,e=o.length;t<e;t++){const e=o[t];e[2]=r(e[2])}}:null}};(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],S.prototype,"displayFieldName",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"exceededTransferLimit",void 0),(0,r.Cg)([(0,l.MZ)({type:[o.A],json:{write:!0}})],S.prototype,"features",void 0),(0,r.Cg)([(0,d.w)("features")],S.prototype,"readFeatures",null),(0,r.Cg)([(0,l.MZ)({type:[m.A],json:{write:!0}})],S.prototype,"fields",void 0),(0,r.Cg)([(0,l.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],S.prototype,"geometryType",void 0),(0,r.Cg)([(0,y.K)("geometryType")],S.prototype,"writeGeometryType",null),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"hasM",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"hasZ",void 0),(0,r.Cg)([(0,l.MZ)({types:p.yR,json:{write:!0}})],S.prototype,"queryGeometry",void 0),(0,r.Cg)([(0,d.w)("queryGeometry")],S.prototype,"readQueryGeometry",null),(0,r.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],S.prototype,"spatialReference",void 0),(0,r.Cg)([(0,y.K)("spatialReference")],S.prototype,"writeSpatialReference",null),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],S.prototype,"transform",void 0),S=s=(0,r.Cg)([(0,l.$K)("esri.rest.support.FeatureSet")],S),S.prototype.toJSON.isDefaultToJSON=!0}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7548],{69052(t,e,n){n.d(e,{hr:()=>r,ie:()=>c,uC:()=>a});var s=n(34727);class r{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,n=!1){return o(this.range,this.min,this.max,t,e,n)}clamp(t,e=0){return(0,s.qE)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+i(this.range,t-e,n)}minimalMonotonic(t,e,n){return o(this.range,t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);const n=(e=this.normalize(e))-t,s=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(s)?n:s}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function o(t,e,n,s,r=0,o=!1){return(s-=r)<e?s+=i(t,e-s):s>n&&(s-=i(t,s-n)),o&&s===n&&(s=e),s+r}function i(t,e,n=0){return Math.ceil((e-n)/t)*t+n}const a=new r(0,2*Math.PI),c=(new r(-Math.PI,Math.PI),new r(0,360))},69397(t,e,n){n.d(e,{Qf:()=>c,Qh:()=>i,RS:()=>r,Ul:()=>p,i5:()=>h,lM:()=>o,qK:()=>u});var s=n(34275);const r=16;function o(t){if(!t)return 0;let e=u;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n],!1));return e}function i(t){if(!t)return 0;if("number"==typeof t[0])return c(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return l(t,8);let n=f;for(let s=0;s<e;s++)n+=a(t[s]);return n}(t);let e=u;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?i(t):u;case"string":return function(t){return 32+t.length}(t);case"number":return r;case"boolean":return 4;default:return 8}}function c(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+h:Array.isArray(e)?l(e,r):0:0),0)}function l(t,e){return f+t.length*e}const u=32,f=16,h=145,p=64},31411(t,e,n){n.d(e,{GS:()=>E,gh:()=>A});var s=n(49186),r=n(56512),o=n(65864),i=n(4305),a=n(50954),c=n(52006),l=n(49663),u=n(46068),f=n(15507);const h=1e-6,p=[0,0];function m(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class d{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:n,maxSegmentsPerCurve:s,minSegmentsPerCurve:r}){const o=n*n,i=e*e,a=1/s,c=this.interpolate(0),l=this.interpolate(1);(0,f.kb)(this.curveStart,c)>h&&t.push(c),this.initialize(c,l);const u=1/r;for(let t=r-1;t>0;t--){const e=t*u;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<a||(0===o||!isFinite(o)||(0,f.kb)(this.arcStart,this.arcEnd)<o)&&(0===i||!isFinite(i)||this.getDeviation2()<i)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,f.kb)(this.curveEnd,l)>h&&t.push([...this.curveEnd]),t}}class y extends d{constructor(t,e){const[n,s,r]=e.b;super(t,n),this._controlPointsStack=[],this._curveControlPoints=[s,r],this._arcControlPoints=[s,r],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:n,tStart:s,tEnd:r}=this,[o,i]=this._arcControlPoints,a=(t-s)/(r-s),c=(0,f.RS)([],e,o,a),l=(0,f.RS)(p,o,i,a),u=(0,f.RS)([],i,n,a),h=(0,f.RS)([],c,l,a),m=(0,f.RS)([],l,u,a),d=(0,f.RS)([],h,m,a);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([m,u]),this.tEndStack.push(t),this.arcEndStack.push(d),this._arcControlPoints[0]=c,this._arcControlPoints[1]=h,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:n}=this,[s,r]=this._curveControlPoints;return(0,i.B4)(e,s,r,n,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[n,s]=this._arcControlPoints;return Math.max((0,f.yE)(n,t,e),(0,f.yE)(s,t,e))}}class g extends d{constructor(t,e){const[n]=e.a;super(t,n),this._derivedEllipse=(0,u.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,u.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,f.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function S(t,e,n,{cx:s,cy:r,radius:o,thetaStart:i,thetaEnd:a,isInvalid:c},{maxDeviation:l,maxSegmentLength:u,maxSegmentsPerCurve:p,minSegmentsPerCurve:m}){if(c)return t.push([...n]),t;const d=2*o,y=[s+o*Math.cos(i),r+o*Math.sin(i)],g=[s+o*Math.cos(a),r+o*Math.sin(a)];(0,f.kb)(e,y)>h&&t.push(y);const S=Math.abs(a-i),M=u>0&&u<d?2*Math.asin(u/d):S,v=l>0&&l<=o?2*Math.acos(1-l/o):S,w=Math.min(M,v),x=Math.min(p,Math.max(m,Math.ceil(Math.abs(S/w)))),b=1/x;for(let e=1;e<x;e++){const n=e*b,c=i*(1-n)+a*n;t.push([s+o*Math.cos(c),r+o*Math.sin(c)])}return t.push(g),(0,f.kb)(n,g)>h&&t.push([...n]),t}function M(t,e,n,s){return new y(e,n).densify(t,s)}function v(t,e,n,s){const r=(0,a.pM)(e,n),[o]=n.c;return S(t,e,o,r,s)}function w(t,e,n,s){const r=(0,l.io)(e,n),[o]=n.a;return S(t,e,o,r,s)}function x(t,e,n,s){const[r,o,i,a,c,l,u]=n.a;return 0===l||0===u?(t.push([...r]),t):new g(e,n).densify(t,s)}function b(t,e,n,s){return(0,c.Xq)(n)?(t.push([...n]),t):(0,c.n1)(n)?M(t,e,n,s):(0,c.aO)(n)?v(t,e,n,s):(0,c.DA)(n)?w(t,e,n,s):x(t,e,n,s)}function E(t,e={}){if(!(0,c.Ed)(t))return t;const n=m(e),s=(0,c.FD)(t),r=[];for(const t of s){const e=[];for(let s=0;s<t.length-1;s++){const r=s+1,o=[...(0,c.yP)(t[s])];0===s&&e.push(o),b(e,o,t[r],n)}r.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:r,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:r,spatialReference:t.spatialReference}}const R=(0,r.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function A(t,e,r){const i=new Set(e);return await async function(t,e,r){let o=null;for(const i of t)if(i&&(0,c.Ed)(i)&&null==i.spatialReference.xyTolerance&&(0,c.V8)(i,e)){const t=i.spatialReference;if(!t)throw new s.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=P(t);if(r.has(e))i.spatialReference=r.get(e);else{o||(o=await Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(6312)]).then(n.bind(n,78125)));const a=o.fromSpatialReference(t),c=a?.getTolerance();if(null==c)throw new s.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const l=i.spatialReference.clone();l.read({xyTolerance:c}),i.spatialReference=l,r.set(e,l)}}}(t,i,r),t.map(t=>{if(!t||!(0,c.Ed)(t))return t;const n=t.spatialReference.xyTolerance;if(null==n)return t;const s=R(n);return(0,o.rS)(function(t,e,n){if(!(0,c.Ed)(t))return t;const s=new Set(e),r=m(n),o=(0,c.FD)(t),i=[];let a=!1;for(const t of o){const e=[];for(let n=0;n<t.length-1;n++){const o=n+1,i=[...(0,c.yP)(t[n])];0===n&&e.push(i);const l=t[o];(0,c.Xq)(l)?e.push([...l]):(0,c.n1)(l)&&!s.has("cubic-bezier")?M(e,i,l,r):(0,c.aO)(l)&&!s.has("circular-arc")?v(e,i,l,r):(0,c.DA)(l)&&!s.has("elliptic-arc")?w(e,i,l,r):(0,c.wY)(l)&&!s.has("elliptic-arc")?x(e,i,l,r):(e.push((0,c.tk)(l)),a=!0)}i.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...a?{curvePaths:i}:{paths:i}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...a?{curveRings:i}:{rings:i}}}(t,e,s))})}function P(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},17136(t,e,n){n.d(e,{Y_:()=>F,O7:()=>k,el:()=>P});var s=n(92602),r=n(69052),o=n(49186),i=n(53966),a=n(39829),c=n(82799),l=n(16930),u=n(80754),f=n(21325),h=n(28735),p=n(52006),m=n(31411),d=n(11254),y=n(60408),g=n(65864),S=n(2272),M=n(84952),v=n(92300);const w=()=>i.A.getLogger("esri.geometry.support.normalizeUtils");function x(t){return"polygon"===t[0].type}function b(t){return"polyline"===t[0].type}function E(t,e,n){const s=1e6;if(e){const e=(0,p.Ed)(t)?(0,m.GS)(t,{maxSegmentLength:s}):function(t,e){if(!(t instanceof c.A||t instanceof a.A)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw w().error(t),new o.A("internal:geometry",t)}const n=(0,u.r8)(t),s=[];for(const t of n){const n=[];s.push(n),n.push([t[0][0],t[0][1]]);for(let s=0;s<t.length-1;s++){const r=t[s][0],o=t[s][1],i=t[s+1][0],a=t[s+1][1],c=Math.sqrt((i-r)*(i-r)+(a-o)*(a-o)),l=(a-o)/c,u=(i-r)/c,f=c/e;if(f>1){for(let t=1;t<=f-1;t++){const s=t*e,i=u*s+r,a=l*s+o;n.push([i,a])}const t=(c+Math.floor(f-1)*e)/2,s=u*t+r,i=l*t+o;n.push([s,i])}n.push([i,a])}}return function(t){return"polygon"===t.type}(t)?new a.A({rings:s,spatialReference:t.spatialReference}):new c.A({paths:s,spatialReference:t.spatialReference})}(t,s);t=(0,h.ci)(e,!0)}return n&&(t=(0,u.kS)(t,n)),t}function R(t,e,n){if(Array.isArray(t)){const s=t[0];if(s>e){const n=(0,u.kd)(s,e);t[0]=s+n*(-2*e)}else if(s<n){const e=(0,u.kd)(s,n);t[0]=s+e*(-2*n)}}else{const s=t.x;if(s>e){const n=(0,u.kd)(s,e);t=t.clone().offset(n*(-2*e),0)}else if(s<n){const e=(0,u.kd)(s,n);t=t.clone().offset(e*(-2*n),0)}}return t}function A(t,e){let n=-1;for(let s=0;s<e.cutIndexes.length;s++){const r=e.cutIndexes[s],o=e.geometries[s],i=(0,u.r8)(o);for(let t=0;t<i.length;t++){const e=i[t];e.some(n=>{if(n[0]<180)return!0;{let n=0;for(let t=0;t<e.length;t++){const s=e[t][0];n=s>n?s:n}n=Number(n.toFixed(9));const s=-360*(0,u.kd)(n,180);for(let n=0;n<e.length;n++){const e=o.getPoint(t,n);o.setPoint(t,n,e.clone().offset(s,0))}return!0}})}if(r===n){if(x(t))for(const e of(0,u.r8)(o))t[r]=t[r].addRing(e);else if(b(t))for(const e of(0,u.r8)(o))t[r]=t[r].addPath(e)}else n=r,t[r]=o}return t}async function P(t,e,n){if(!Array.isArray(t))return P([t],e);e&&"string"!=typeof e&&w().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const r="string"==typeof e?e:e?.url??s.A.geometryServiceUrl;let o,i,l,p,m,x,b,k,C=0;const F=[],q=[];for(const e of t)if(null!=e)if(o||(o=e.spatialReference,i=(0,f.Vp)(o),l=o.isWebMercator,x=l?102100:4326,p=u.j7[x].maxX,m=u.j7[x].minX,b=u.j7[x].plus180Line,k=u.j7[x].minus180Line),i)if("mesh"===e.type)q.push(e);else if("point"===e.type)q.push(R(e.clone(),p,m));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(t=>R(t,p,m)),q.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,i);q.push(t.rings?new a.A(t):t)}else if(e.extent){const t=e.extent,n=(0,u.kd)(t.xmin,m)*(2*p);let s=0===n?e.clone():(0,u.kS)(e.clone(),n);t.offset(n,0);let{xmin:r,xmax:o}=t;r=Number(r.toFixed(9)),o=Number(o.toFixed(9)),t.intersects(b)&&o!==p?(C=o>C?o:C,s=E(s,l),F.push(s),q.push("cut")):t.intersects(k)&&r!==m?(C=o*(2*p)>C?o*(2*p):C,s=E(s,l,360),F.push(s),q.push("cut")):q.push(s)}else q.push(e.clone());else q.push(e);else q.push(e);let I=(0,u.kd)(C,p),O=-90;const z=I,G=new c.A;for(;I>0;){const t=360*I-180;G.addPath([[t,O],[t,-1*O]]),O*=-1,I--}if(F.length>0&&z>0){const e=A(F,await async function(t,e,n,s){const r=(0,S.Dl)(t),o=e[0].spatialReference,i={...s,responseType:"json",query:{...r.query,f:"json",sr:(0,f.YX)(o),target:JSON.stringify({geometryType:(0,y.$B)(e[0]),geometries:e}),cutter:JSON.stringify(n)}},a=await(0,d.A)(r.path+"/cut",i),{cutIndexes:c,geometries:l=[]}=a.data;return{cutIndexes:c,geometries:l.map(t=>{const e=(0,g.rS)(t);return e.spatialReference=o,e})}}(r,F,G,n)),s=[],o=[];for(let n=0;n<q.length;n++){const r=q[n];if("cut"!==r)o.push(r);else{const r=e.shift(),i=t[n];null!=i&&"polygon"===i.type&&i.rings&&i.rings.length>1&&r.rings.length>=i.rings.length?(s.push(r),o.push("simplify")):o.push(l?(0,h.Gh)(r):r)}}if(!s.length)return o;const i=await async function(t,e,n){const s="string"==typeof t?(0,M.An)(t):t,r=e[0].spatialReference,o=(0,y.$B)(e[0]),i={...n,query:{...s.query,f:"json",sr:(0,f.YX)(r),geometries:JSON.stringify((0,v.X)(e))}},{data:a}=await(0,d.A)(s.path+"/simplify",i);return(0,v.V)(a.geometries,o,r)}(r,s,n),a=[];for(let t=0;t<o.length;t++){const e=o[t];"simplify"!==e?a.push(e):a.push(l?(0,h.Gh)(i.shift()):i.shift())}return a}const Z=[];for(let t=0;t<q.length;t++){const e=q[t];if("cut"!==e)Z.push(e);else{const t=F.shift();Z.push(!0===l?(0,h.Gh)(t):t)}}return Z}function k(t,e,n){const s=(0,f.Vp)(n);if(null==s)return t;const[r,o]=s.valid,i=2*o;let a=0,c=0;e>o?a=Math.ceil(Math.abs(e-o)/i):e<r&&(a=-Math.ceil(Math.abs(e-r)/i)),t>o?c=Math.ceil(Math.abs(t-o)/i):t<r&&(c=-Math.ceil(Math.abs(t-r)/i));let l=t+(a-c)*i;const u=l-e;return u>o?l-=i:u<r&&(l+=i),l}function C(t){const e=(0,f.Vp)(t);if(null==e)return null;const[n,s]=e.valid;return new r.hr(n,s)}const F=C(l.A.WGS84);C(l.A.WebMercator)},80754(t,e,n){n.d(e,{j7:()=>a,kS:()=>l,kd:()=>c,r8:()=>u});var s=n(82799),r=n(16930),o=n(60408),i=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:r.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:r.A.WGS84})}};function c(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){if((0,i.Ed)(t))for(const n of function(t){return(0,o.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of n){if((0,i.aO)(t)){const[n,s]=t.c;n[0]+=e,s[0]+=e;continue}if((0,i.FG)(t)){const[n,s]=t.a;n[0]+=e,s[0]+=e;continue}if((0,i.n1)(t)){const[n,s,r]=t.b;n[0]+=e,s[0]+=e,r[0]+=e;continue}t[0]+=e}for(const n of u(t))for(const t of n)t[0]+=e;return t}function u(t){return(0,o.Bi)(t)?t.rings:t.paths}},62815(t,e,n){n.d(e,{N:()=>a,d:()=>c});var s=n(86211),r=n(73941),o=n(21325),i=n(52006);function a(t,e,n){const s=c(e,n);if(1!==s)switch(t){case"point":case"esriGeometryPoint":return t=>function(t,e){null!=t?.z&&(t.z*=e)}(t,s);case"polyline":case"esriGeometryPolyline":return t=>function(t,e){if(t){if(t.curvePaths)for(const n of t.curvePaths)for(const t of n){const n=(0,i.yP)(t);n.length>2&&(n[2]*=e)}if(t.paths)for(const n of t.paths)for(const t of n)t.length>2&&(t[2]*=e)}}(t,s);case"polygon":case"esriGeometryPolygon":return t=>function(t,e){if(t){if(t.curveRings)for(const n of t.curveRings)for(const t of n){const n=(0,i.yP)(t);n.length>2&&(n[2]*=e)}if(t.rings)for(const n of t.rings)for(const t of n)t.length>2&&(t[2]*=e)}}(t,s);case"multipoint":case"esriGeometryMultipoint":return t=>function(t,e){if(t)for(const n of t.points)n.length>2&&(n[2]*=e)}(t,s);case"extent":case"esriGeometryEnvelope":return t=>function(t,e){t&&null!=t.zmin&&null!=t.zmax&&(t.zmin*=e,t.zmax*=e)}(t,s);default:return}}function c(t,e){return null==t||null==e||e.vcsWkid||(0,o.aI)(t,e)||(0,r.xP)(t)||(0,r.xP)(e)?1:(0,s.G9)(t)/(0,s.G9)(e)}},41653(t,e,n){n.r(e),n.d(e,{queryModel:()=>g,queryModels:()=>y});var s=n(11254),r=n(4576),o=n(49186),i=n(91869),a=n(84952),c=n(5482),l=n(69622),u=n(91429);let f=class extends l.A{constructor(t){super(t),this.name="",this.size=0}arrayBuffer(t){return this.loadArrayBuffer(t)}};(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],f.prototype,"flags",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],f.prototype,"loadArrayBuffer",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],f.prototype,"name",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],f.prototype,"size",void 0),f=(0,c.Cg)([(0,u.$K)("esri.layers.scene.ModelFileInfo")],f);let h=class extends l.A{constructor(t){super(t),this.files=[],this.format="",this.isSource=!1,this.name="",this.size=0}};(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],h.prototype,"files",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],h.prototype,"format",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],h.prototype,"isSource",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],h.prototype,"name",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],h.prototype,"size",void 0),h=(0,c.Cg)([(0,u.$K)("esri.layers.scene.ModelInfo")],h);var p=n(20557),m=n(99199),d=n(61956);async function y(t,e,n,s){const c=t.infoFor3D;if(!c)throw new o.A("scenelayer:query-models-not-available","Model queries are not available without 3D object metadata",{layer:t});const{objectIdField:l,globalIdField:u}=e;if(!l||!u)throw new o.A("scenelayer:query-models-not-available","Missing required fields for model queries",{layer:t});const f=function(t,e,n,s){const r=function(t,e){const n=d.A.from(e)?.clone()??t.createQuery();return n.outFields=null,n.formatOf3DObjects=null,n.returnGeometry=!1,n}(t,e);return r.outFields=[n,s],r.returnGeometry=!1,r}(t,n,l,u),h=await e.queryFeatures(f,s);return await async function(t){const{infoFor3D:e,associatedLayer:n,options:s}=t,o=n.globalIdField,c=n.parsedUrl;if(!o||!c)return new Map;const l=await async function(t){const{options:e,infoFor3D:n,featureInfos:s}=t,o=[...s.keys()];if(e?.requestedFormat){const t=(0,p.fE)(e.requestedFormat,n.supportedFormats);return t?[{formatId:t,objectIds:o}]:[]}const c=(0,r.Am)([...n.queryFormats,...n.editFormats]);return await async function({options:t,infoFor3D:e,featureInfos:n,requestQuery:s,associatedLayer:o},c){const l=e.assetMapFieldRoles.parentGlobalId,u=e.assetMapFieldRoles.assetType,f=e.assetMapFieldRoles.flags,h=new Map;for(const[t,{globalId:e}]of n)e&&h.set(t,e);const y=(0,r.Am)(h.values()),g=(0,p.JZ)(e);if(!g||!y.length)return[];const S=(0,a.fj)(o.parsedUrl?.path??"",`../${g.id}`),M=!!t?.sourceOnly,v=new d.A({where:`${l} IN (${y.map(x).join(",")})`,outFields:M?[l,u,f]:[l,u],returnDistinctValues:!0,returnGeometry:!1}),{features:w}=await(0,m.s)(S,v,{query:s,signal:t?.signal}),b=new Set(c),E=new Map;for(const t of w){const e=t.getAttribute(l),n=t.getAttribute(u),s=t.getAttribute(f)??0;n&&b.has(n)&&e&&!(1&s)&&(0,i.tE)(E,e,()=>new Set).add(n)}const R=new Map;for(const[t,e]of h)for(const n of E.get(e)??[])(0,i.tE)(R,n,()=>[]).push(t);return c.map(t=>({formatId:t,objectIds:R.get(t)??[]})).filter(({objectIds:t})=>t.length>0)}(t,c)}(t),u=new Map,f=await Promise.all(l.map(async({formatId:r,objectIds:i})=>{const a=(0,p.be)(r,e.supportedFormats),c=n.parsedUrl;if(null==a||!c||!i.length)return null;const l=(0,p._h)(r,e.supportedFormats),u=(0,p.qv)(l),f=n.createQuery();return f.objectIds=i,f.outFields=[o],f.formatOf3DObjects=r,f.returnGeometry=!0,{modelFormat:a,modelFileExtensions:u,featureSetJSON:await(0,m.e)(c.path,f,{query:t.requestQuery,signal:s?.signal},{uniqueIdFields:n.uniqueIdFields})}}));for(const e of f)e&&S(t,e.modelFormat,e.modelFileExtensions,e.featureSetJSON,u);return u}(new b(t,e,function(t){const e=new Map;for(const n of t.features){const t=n.getObjectId(),s=n.getGlobalId();null!=t&&null!=s&&e.set(t,{globalId:s})}return e}(h),c,s))}async function g(t,e,n,s){const r=s?.format;return((await y(t,e,{objectIds:[n]},{...s,requestedFormat:r,sourceOnly:null==r})).get(n)??[]).find(t=>r&&t.format===r||!r&&t.isSource)}function S({featureInfos:t,requestQuery:e,infoFor3D:n},s,r,o,a){const c=new Map;for(const t of o.assetMaps??[])(0,i.tE)(c,t.parentGlobalId,()=>[]).push(t);for(const[o,l]of t){const t=c.get(l.globalId);if(!t?.length)continue;const u=M(t,e,n);if(!u.length)continue;const f=u.reduce((t,e)=>t+e.size,0),p=w(u,r),m=!p.flags.includes("DERIVED");(0,i.tE)(a,o,()=>[]).push(new h({name:p.name,size:f,format:s,isSource:m,files:u}))}}function M(t,e,n){const s=new Map,r=({assetType:t})=>null!=(0,p.be)(t,n.supportedFormats),o=t.some(t=>r(t)&&!t.flags.includes("DERIVED"));for(const e of t)o&&r(e)&&e.flags.includes("DERIVED")||(0,i.tE)(s,e.assetName,()=>[]).push(e);const a=[];for(const[t,n]of s){n.sort((t,e)=>t.seqNo-e.seqNo);const s=n.reduce((t,e)=>t+e.size,0),r=n.map(({assetURL:t})=>t).filter(t=>!!t);r.length&&a.push(new f({name:t,size:s,flags:n[0].flags,loadArrayBuffer:t=>v(r,e,t)}))}return a}async function v(t,e,n){const r=await Promise.all(t.map(t=>(0,s.A)(t,{responseType:"array-buffer",query:e,signal:n?.signal}).then(({data:t})=>t)));return 1===r.length?r[0]:function(t){const e=t.reduce((t,e)=>t+e.byteLength,0),n=new Uint8Array(e);let s=0;for(const e of t)n.set(new Uint8Array(e),s),s+=e.byteLength;return n.buffer}(r)}function w(t,e){return t.find(({name:t})=>e.some(e=>t.toLowerCase().endsWith(`.${e}`)))??t[0]}function x(t){return`'${t.replaceAll("'","''")}'`}class b{constructor(t,e,n,s,r){this.layer=t,this.associatedLayer=e,this.featureInfos=n,this.infoFor3D=s,this.options=r,this.requestQuery={...e.parsedUrl?.query,...t.customParameters,...t.apiKey?{token:t.apiKey}:{}}}}},92300(t,e,n){n.d(e,{V:()=>i,X:()=>o});var s=n(60408),r=n(65864);function o(t){return{geometryType:(0,s.$B)(t[0]),geometries:t.map(t=>t.toJSON())}}function i(t,e,n){const s=(0,r.xD)(e);return t.map(t=>{const e=s.fromJSON(t);return e.spatialReference=n,e})}},99199(t,e,n){n.d(e,{e:()=>c,s:()=>a});var s=n(2272),r=n(80893),o=n(22671),i=n(61956);async function a(t,e,n,s){const r=await c(t,e,n,s);return o.A.fromJSON(r)}function c(t,e,n,o){const a=(0,s.Dl)(t),c={...n},l=i.A.from(e);return(0,r.eW)(a,l,l.sourceSpatialReference,c,o)}},58501(t,e,n){n.d(e,{q:()=>r});var s=n(62815);function r(t,e,n){if(!n?.features||!n.hasZ)return;const r=(0,s.N)(n.geometryType,e,t.outSpatialReference);if(r)for(const t of n.features)r(t.geometry)}},22671(t,e,n){n.d(e,{A:()=>S});var s,r=n(5482),o=n(52106),i=n(66552),a=n(25482),c=n(4718),l=n(91429),u=n(16930),f=n(60408),h=n(65864),p=n(50498),m=n(20437),d=n(36005),y=n(43937);const g=new i.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let S=s=class extends a.o{constructor(t){super(t),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(t,e){return this.readFeaturesWithClass(t,e,o.A)}writeGeometryType(t,e,n,s){if(t)return void g.write(t,e,n,s);const{features:r}=this;if(r)for(const t of r)if(null!=t?.geometry)return void g.write(t.geometry.type,e,n,s)}readQueryGeometry(t,e){if(!t)return null;const n=!!t.spatialReference,s=(0,h.rS)(t);return s&&!n&&e.spatialReference&&(s.spatialReference=u.A.fromJSON(e.spatialReference)),s}writeSpatialReference(t,e){if(t)return void(e.spatialReference=t.toJSON());const{features:n}=this;if(n)for(const t of n)if(t&&null!=t.geometry&&t.geometry.spatialReference)return void(e.spatialReference=t.geometry.spatialReference.toJSON())}clone(){return new s(this.cloneProperties())}cloneProperties(){return(0,c.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(t){const e=this.write();if(e.features&&Array.isArray(t)&&t.length>0)for(let n=0;n<e.features.length;n++){const s=e.features[n];if(s.geometry){const e=t?.[n];s.geometry=e?.toJSON()||s.geometry}}return e}quantize(t){const{scale:[e,n],translate:[s,r]}=t,o=this.features,i=this._getQuantizationFunction(this.geometryType,t=>Math.round((t-s)/e),t=>Math.round((r-t)/n));for(let t=0,e=o.length;t<e;t++)i?.(o[t].geometry)||(o.splice(t,1),t--,e--);return this.transform=t,this}unquantize(){const{geometryType:t,features:e,transform:n}=this;if(!n)return this;const{translate:[s,r],scale:[o,i]}=n;let a=null,c=null;if(this.hasZ&&null!=n?.scale?.[2]){const{translate:[,,t],scale:[,,e]}=n;a=n=>n*e+t}if(this.hasM&&null!=n?.scale?.[3]){const{translate:[,,,t],scale:[,,,e]}=n;c=n=>null==n?n:n*e+t}const l=this._getHydrationFunction(t,t=>t*o+s,t=>r-t*i,a,c);for(const{geometry:t}of e)null!=t&&l&&l(t);return this.transform=null,this}readFeaturesWithClass(t,e,n){const s=u.A.fromJSON(e.spatialReference),r=[];for(let e=0;e<t.length;e++){const o=t[e],i=n.fromJSON(o),a=o.geometry?.spatialReference;null==i.geometry||a||(i.geometry.spatialReference=s);const c=o.aggregateGeometries,l=i.aggregateGeometries;if(c&&null!=l)for(const t in l){const e=l[t],n=c[t],r=n?.spatialReference;null==e||r||(e.spatialReference=s)}r.push(i)}return r}_quantizePoints(t,e,n){let s,r;const o=[];for(let i=0,a=t.length;i<a;i++){const a=t[i];if(i>0){const t=e(a[0]),i=n(a[1]);t===s&&i===r||(o.push([t-s,i-r]),s=t,r=i)}else s=e(a[0]),r=n(a[1]),o.push([s,r])}return o.length>0?o:null}_getQuantizationFunction(t,e,n){return"point"===t?t=>(t.x=e(t.x),t.y=n(t.y),t):"polyline"===t||"polygon"===t?t=>{const s=(0,f.Bi)(t)?t.rings:t.paths,r=[];for(let t=0,o=s.length;t<o;t++){const o=s[t],i=this._quantizePoints(o,e,n);i&&r.push(i)}return r.length>0?((0,f.Bi)(t)?t.rings=r:t.paths=r,t):null}:"multipoint"===t?t=>{const s=this._quantizePoints(t.points,e,n);return s&&s.length>0?(t.points=s,t):null}:"extent"===t?t=>t:null}_getHydrationFunction(t,e,n,s,r){return"point"===t?t=>{t.x=e(t.x),t.y=n(t.y),s&&(t.z=s(t.z))}:"polyline"===t||"polygon"===t?t=>{const o=(0,f.Bi)(t)?t.rings:t.paths;let i,a;for(let t=0,s=o.length;t<s;t++){const s=o[t];for(let t=0,r=s.length;t<r;t++){const r=s[t];t>0?(i+=r[0],a+=r[1]):(i=r[0],a=r[1]),r[0]=e(i),r[1]=n(a)}}if(s&&r)for(let t=0,e=o.length;t<e;t++){const e=o[t];for(let t=0,n=e.length;t<n;t++){const n=e[t];n[2]=s(n[2]),n[3]=r(n[3])}}else if(s)for(let t=0,e=o.length;t<e;t++){const e=o[t];for(let t=0,n=e.length;t<n;t++){const n=e[t];n[2]=s(n[2])}}else if(r)for(let t=0,e=o.length;t<e;t++){const e=o[t];for(let t=0,n=e.length;t<n;t++){const n=e[t];n[2]=r(n[2])}}}:"extent"===t?t=>{t.xmin=e(t.xmin),t.ymin=n(t.ymin),t.xmax=e(t.xmax),t.ymax=n(t.ymax),s&&null!=t.zmax&&null!=t.zmin&&(t.zmax=s(t.zmax),t.zmin=s(t.zmin)),r&&null!=t.mmax&&null!=t.mmin&&(t.mmax=r(t.mmax),t.mmin=r(t.mmin))}:"multipoint"===t?t=>{const o=t.points;let i,a;for(let t=0,s=o.length;t<s;t++){const s=o[t];t>0?(i+=s[0],a+=s[1]):(i=s[0],a=s[1]),s[0]=e(i),s[1]=n(a)}if(s&&r)for(let t=0,e=o.length;t<e;t++){const e=o[t];e[2]=s(e[2]),e[3]=r(e[3])}else if(s)for(let t=0,e=o.length;t<e;t++){const e=o[t];e[2]=s(e[2])}else if(r)for(let t=0,e=o.length;t<e;t++){const e=o[t];e[2]=r(e[2])}}:null}};(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],S.prototype,"displayFieldName",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"exceededTransferLimit",void 0),(0,r.Cg)([(0,l.MZ)({type:[o.A],json:{write:!0}})],S.prototype,"features",void 0),(0,r.Cg)([(0,d.w)("features")],S.prototype,"readFeatures",null),(0,r.Cg)([(0,l.MZ)({type:[m.A],json:{write:!0}})],S.prototype,"fields",void 0),(0,r.Cg)([(0,l.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],S.prototype,"geometryType",void 0),(0,r.Cg)([(0,y.K)("geometryType")],S.prototype,"writeGeometryType",null),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"hasM",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"hasZ",void 0),(0,r.Cg)([(0,l.MZ)({types:p.yR,json:{write:!0}})],S.prototype,"queryGeometry",void 0),(0,r.Cg)([(0,d.w)("queryGeometry")],S.prototype,"readQueryGeometry",null),(0,r.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],S.prototype,"spatialReference",void 0),(0,r.Cg)([(0,y.K)("spatialReference")],S.prototype,"writeSpatialReference",null),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],S.prototype,"transform",void 0),S=s=(0,r.Cg)([(0,l.$K)("esri.rest.support.FeatureSet")],S),S.prototype.toJSON.isDefaultToJSON=!0}}]);
|