@arcgis/core 4.22.0-next.20211021 → 4.22.0-next.20211025
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/00ac1ce56f9885a8be83.js +1 -0
- package/assets/esri/core/workers/chunks/01c9afe41ab4ccc597c9.js +1 -0
- package/assets/esri/core/workers/chunks/02a3d14adc504a51fa24.js +1 -0
- package/assets/esri/core/workers/chunks/035a9ab0202d5386b782.js +1 -0
- package/assets/esri/core/workers/chunks/062bace5505f13689c7d.js +1 -0
- package/assets/esri/core/workers/chunks/06c7745d813bcb540ce8.js +1 -0
- package/assets/esri/core/workers/chunks/0950b488a60b2abc21fc.js +1 -0
- package/assets/esri/core/workers/chunks/0af396f2e0de681113ef.js +1 -0
- package/assets/esri/core/workers/chunks/131838059f0f81d8eaee.js +1 -0
- package/assets/esri/core/workers/chunks/146cba0d172ec2f4eba2.js +1 -0
- package/assets/esri/core/workers/chunks/17e49c0dfa5a5a6213e2.js +1 -0
- package/assets/esri/core/workers/chunks/1a0b08190274725dc956.js +1 -0
- package/assets/esri/core/workers/chunks/1add7f0779accdf8d204.js +1 -0
- package/assets/esri/core/workers/chunks/20b81d11e6286d347bfc.js +1 -0
- package/assets/esri/core/workers/chunks/{e596bd3de960d1dc1c57.js → 2207580a78ee292ed9b8.js} +1 -1
- package/assets/esri/core/workers/chunks/2d3646a83465c75986f9.js +1 -0
- package/assets/esri/core/workers/chunks/2d38ee3ef3ebe32a1194.js +1 -0
- package/assets/esri/core/workers/chunks/3737dcc3c0dea3ca05d5.js +1 -0
- package/assets/esri/core/workers/chunks/3e2042e70647c1afa6aa.js +1 -0
- package/assets/esri/core/workers/chunks/3ebfaab2855a2236a95d.js +1 -0
- package/assets/esri/core/workers/chunks/{d6fe616192a8efbfbc3e.js → 440f8101402a4c0d7019.js} +1 -1
- package/assets/esri/core/workers/chunks/4587d770767966985e22.js +1 -0
- package/assets/esri/core/workers/chunks/487b8892fae85810a8c0.js +1 -0
- package/assets/esri/core/workers/chunks/4901a78f32c3ea6b823b.js +1 -0
- package/assets/esri/core/workers/chunks/496fe47fc4d28e1a716d.js +1 -0
- package/assets/esri/core/workers/chunks/{9f22f47d4b2e72d7bdcf.js → 4c010119c24510ea31bb.js} +2 -2
- package/assets/esri/core/workers/chunks/{9f22f47d4b2e72d7bdcf.js.LICENSE.txt → 4c010119c24510ea31bb.js.LICENSE.txt} +0 -0
- package/assets/esri/core/workers/chunks/4f5076e1f2b18ce8156d.js +1 -0
- package/assets/esri/core/workers/chunks/{f291ebc4b089bd1f0a3f.js → 50e86a6bb13042b1dbac.js} +1 -1
- package/assets/esri/core/workers/chunks/{64d9a062c1f1ac08a3ac.js → 565020b1c02a8cb33c2b.js} +1 -1
- package/assets/esri/core/workers/chunks/{d78c60a22f76df7c48c7.js → 59640d78295e2e363f18.js} +1 -1
- package/assets/esri/core/workers/chunks/{a0356f320a1b2fbd03f0.js → 5ac2b2598245aa17cdbd.js} +1 -1
- package/assets/esri/core/workers/chunks/5b4a8cce5601cc92c8a3.js +1 -0
- package/assets/esri/core/workers/chunks/5b92d5d4049622531109.js +1 -0
- package/assets/esri/core/workers/chunks/{751c1a2838b54a74a9a6.js → 5f3caa0ddb215342c728.js} +2 -2
- package/assets/esri/core/workers/chunks/615e995d5ce8fa044b09.js +1 -0
- package/assets/esri/core/workers/chunks/62a2453699e0dd2393b9.js +1 -0
- package/assets/esri/core/workers/chunks/67013547be1a7ae1670a.js +1 -0
- package/assets/esri/core/workers/chunks/67eddf4808f8888faeb4.js +1 -0
- package/assets/esri/core/workers/chunks/695dbedff2340aa019ba.js +1 -0
- package/assets/esri/core/workers/chunks/6a7e388c94206d2f61ff.js +1 -0
- package/assets/esri/core/workers/chunks/6e22b69d55e791ab3d9a.js +1 -0
- package/assets/esri/core/workers/chunks/71e6c0c5ef0aa7eb1703.js +1 -0
- package/assets/esri/core/workers/chunks/7a74e230439c5111f852.js +1 -0
- package/assets/esri/core/workers/chunks/7e76a8e6fa67e607d09e.js +1 -0
- package/assets/esri/core/workers/chunks/7fe4985ca0cb3e6d35c6.js +1 -0
- package/assets/esri/core/workers/chunks/8027330714ff5ffb020e.js +1 -0
- package/assets/esri/core/workers/chunks/844b564d1a422a17f6ac.js +1 -0
- package/assets/esri/core/workers/chunks/856f9281a08cb032238e.js +1 -0
- package/assets/esri/core/workers/chunks/89b4983de872780e9aa1.js +1 -0
- package/assets/esri/core/workers/chunks/8f3bc0cd2c2b01ab80cd.js +1 -0
- package/assets/esri/core/workers/chunks/8fd912e325ccd48b98a9.js +1 -0
- package/assets/esri/core/workers/chunks/901907a5c01f0fd1478f.js +1 -0
- package/assets/esri/core/workers/chunks/92a0b88a14c92239df8a.js +1 -0
- package/assets/esri/core/workers/chunks/972e9aeb3c29c9bf441a.js +1 -0
- package/assets/esri/core/workers/chunks/9758c34ce61c3714515a.js +1 -0
- package/assets/esri/core/workers/chunks/{457ea4feaa006d60c6b1.js → 9a04d087a29f0f3937a3.js} +1 -1
- package/assets/esri/core/workers/chunks/9b0bb171224b35ce2031.js +1 -0
- package/assets/esri/core/workers/chunks/9cbe7afdaef8720dfc8d.js +1 -0
- package/assets/esri/core/workers/chunks/9ccde5b6562f0007fe45.js +1 -0
- package/assets/esri/core/workers/chunks/9d320bbeedeea15522ab.js +1 -0
- package/assets/esri/core/workers/chunks/a001b3b4527817548094.js +1 -0
- package/assets/esri/core/workers/chunks/{197b72bca45065e0eb4a.js → a0c580d4a1915ddd3fe4.js} +1 -1
- package/assets/esri/core/workers/chunks/a4a9c15929b43d83701f.js +1 -0
- package/assets/esri/core/workers/chunks/a54d11f44721f808b82f.js +1 -0
- package/assets/esri/core/workers/chunks/a646a11673d513c00e7a.js +1 -0
- package/assets/esri/core/workers/chunks/a792e2bc7cafdc29f05e.js +1 -0
- package/assets/esri/core/workers/chunks/acae1771697034f265b1.js +1 -0
- package/assets/esri/core/workers/chunks/af2ee804a9c63eea610c.js +1 -0
- package/assets/esri/core/workers/chunks/b28b487047da3aeef3fd.js +1 -0
- package/assets/esri/core/workers/chunks/b3e57824a5855cb37a96.js +1 -0
- package/assets/esri/core/workers/chunks/b89449ead32e4cd21edd.js +1 -0
- package/assets/esri/core/workers/chunks/b99891ed5a02cab02173.js +1 -0
- package/assets/esri/core/workers/chunks/bac84bc621be73a7a4bc.js +1 -0
- package/assets/esri/core/workers/chunks/{25037dcf8a0c72b7b647.js → bbe068388167e9dd0c11.js} +1 -1
- package/assets/esri/core/workers/chunks/c271a1857bcc4e9a36dd.js +1 -0
- package/assets/esri/core/workers/chunks/{eb3035e49a45ecc82575.js → c5030664720fcdc6d85e.js} +1 -1
- package/assets/esri/core/workers/chunks/c534ed122f8a1202d3a3.js +1 -0
- package/assets/esri/core/workers/chunks/c5ef2e28b0c539ddb6a7.js +1 -0
- package/assets/esri/core/workers/chunks/c65e5ccfae03d148d82b.js +1 -0
- package/assets/esri/core/workers/chunks/c91660f3982be4e03705.js +1 -0
- package/assets/esri/core/workers/chunks/ce93113b99bdbeddd07b.js +1 -0
- package/assets/esri/core/workers/chunks/cf2d408e669cfa2c65be.js +1 -0
- package/assets/esri/core/workers/chunks/d08f63ffeecefa02ad91.js +1 -0
- package/assets/esri/core/workers/chunks/{8d33644192c01e5416b4.js → d1a71b58ef62e71979c5.js} +1 -1
- package/assets/esri/core/workers/chunks/d30eade5afecd334f6cb.js +1 -0
- package/assets/esri/core/workers/chunks/d8782d0856b9d815cb6c.js +1 -0
- package/assets/esri/core/workers/chunks/db16c21b650001502e6c.js +1 -0
- package/assets/esri/core/workers/chunks/db18110c57253a31ac96.js +1 -0
- package/assets/esri/core/workers/chunks/dbaa5fb466d6c0214f24.js +1 -0
- package/assets/esri/core/workers/chunks/deae370788a7aacf4dd5.js +1 -0
- package/assets/esri/core/workers/chunks/e6ca132e1eeea3aa174e.js +1 -0
- package/assets/esri/core/workers/chunks/e878ccc431729ef3360f.js +1 -0
- package/assets/esri/core/workers/chunks/eb124f15ad4b9193f00a.js +1 -0
- package/assets/esri/core/workers/chunks/ebc71c06c1c22aaef54e.js +1 -0
- package/assets/esri/core/workers/chunks/f183da283af0836421ab.js +1 -0
- package/assets/esri/core/workers/chunks/f42bdc2a134833d33b4e.js +1 -0
- package/assets/esri/core/workers/chunks/{736d628cda4e02d40337.js → f8612c2fc5739e98be58.js} +1 -1
- package/assets/esri/core/workers/chunks/f965e3e5f6f4f9ba54ac.js +1 -0
- package/assets/esri/core/workers/chunks/fa4089640f480b69962e.js +1 -0
- package/assets/esri/core/workers/chunks/fb219563e5169ea67d68.js +1 -0
- package/assets/esri/libs/i3s/i3s.wasm +0 -0
- package/chunks/ChapmanAtmosphere.glsl.js +56 -77
- package/chunks/Clouds.glsl.js +1 -1
- package/chunks/Pattern.glsl.js +9 -11
- package/chunks/RibbonLine.glsl.js +60 -68
- package/chunks/i3s.js +1 -1
- package/chunks/mat4.js +1 -1
- package/chunks/vec3.js +1 -1
- package/core/Collection.js +1 -1
- package/core/Loadable.js +1 -1
- package/core/accessorSupport/ensureType.js +1 -1
- package/core/promiseUtils.js +1 -1
- package/core/support/OwningCollection.js +1 -1
- package/core/workers/RemoteClient.js +1 -1
- package/core/workers/WorkerOwner.js +1 -1
- package/core/workers/workers.js +2 -2
- package/geometry/projection.js +1 -1
- package/identity/IdentityManagerBase.js +1 -1
- package/interfaces.d.ts +205 -497
- package/layers/ElevationLayer.js +1 -1
- package/layers/GeoJSONLayer.js +1 -1
- package/layers/ImageryTileLayer.js +1 -1
- package/layers/VectorTileLayer.js +1 -1
- package/layers/VoxelWasmPerScene.js +1 -1
- package/layers/WCSLayer.js +1 -1
- package/layers/analyses/AreaMeasurement3D.js +1 -1
- package/layers/analyses/DirectLineMeasurement3D.js +1 -1
- package/layers/analyses/Slice.js +1 -1
- package/layers/effects/EffectList.js +1 -1
- package/layers/effects/effects.js +1 -1
- package/layers/effects/jsonUtils.js +1 -1
- package/layers/effects/parser.js +1 -1
- package/layers/effects/utils.js +5 -0
- package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/graphics/data/QueryEngine.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/sources/connections/GeoEventConnection.js +1 -1
- package/layers/mixins/ImageryTileMixin.js +1 -1
- package/layers/support/RasterWorker.js +1 -1
- package/layers/support/TilemapCache.js +1 -1
- package/layers/support/rasterDatasets/BaseRaster.js +1 -1
- package/layers/support/rasterDatasets/ImageServerRaster.js +1 -1
- package/layers/support/rasterDatasets/WCSRaster.js +1 -1
- package/layers/support/rasterFunctions/pixelUtils.js +1 -1
- package/layers/support/rasterFunctions/rasterProjectionHelper.js +1 -1
- package/package.json +2 -2
- package/portal/support/portalLayers.js +1 -1
- package/request.js +1 -1
- package/smartMapping/renderers/support/utils.js +1 -1
- package/smartMapping/statistics/support/WorkerClient.js +1 -1
- package/smartMapping/statistics/support/statsWorker.js +1 -1
- package/smartMapping/statistics/support/utils.js +1 -1
- package/smartMapping/support/adapters/CSVLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/SceneLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/support/utils.js +1 -1
- package/statistics/utils.js +1 -1
- package/support/GraphicsCollection.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/FillSymbol3DLayer.js +1 -1
- package/symbols/IconSymbol3DLayer.js +1 -1
- package/symbols/LineSymbol3DLayer.js +1 -1
- package/symbols/patterns/LinePattern3D.js +5 -0
- package/symbols/patterns/LineStylePattern3D.d.ts +4 -0
- package/symbols/patterns/LineStylePattern3D.js +5 -0
- package/symbols/patterns/StylePattern3D.js +1 -1
- package/symbols/patterns/lineStyles.js +5 -0
- package/symbols/patterns/utils.js +1 -1
- package/symbols/support/Symbol3DFillMaterial.js +1 -1
- package/symbols/support/Symbol3DIconOutline.js +5 -0
- package/symbols/support/Symbol3DMaterial.js +1 -1
- package/symbols/support/Symbol3DOutline.js +1 -1
- package/symbols/support/defaults3D.js +1 -1
- package/symbols/support/previewSymbol3D.js +1 -1
- package/symbols/support/symbolLayerUtils3D.js +1 -1
- package/views/2d/engine/vectorTiles/TileParser.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
- package/views/2d/engine/vectorTiles/style/StyleRepository.js +1 -1
- package/views/2d/engine/webgl/effects/HittestEffect.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/ImageryLayerView2D.js +1 -1
- package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
- package/views/2d/layers/VectorTileLayerView2D.js +1 -1
- package/views/2d/layers/features/controllers/EditsQueue.js +1 -1
- package/views/2d/layers/features/controllers/FeatureController2D.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
- package/views/2d/layers/support/FeatureLayerProxy.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.js +1 -1
- package/views/3d/environment/ChapmanAtmosphereTechnique.js +1 -1
- package/views/3d/environment/CloudsGenerator.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/environment/PanoramicAtmosphere.js +1 -1
- package/views/3d/environment/SimpleAtmosphere.js +1 -1
- package/views/3d/externalRenderers/ExternalRendererStore.js +1 -1
- package/views/3d/externalRenderers.js +1 -1
- package/views/3d/interactive/Manipulator3D.js +1 -1
- package/views/3d/interactive/analysisTools/slice/SliceTool.js +1 -1
- package/views/3d/interactive/analysisTools/slice/images/Factory.js +5 -0
- package/views/3d/interactive/analysisTools/slice/sliceToolConfig.js +1 -1
- package/views/3d/interactive/analysisTools/slice/sliceToolUtils.js +1 -1
- package/views/3d/interactive/editingTools/settings.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/ExtentTransformTool.js +1 -1
- package/views/3d/interactive/graphics/Slice/SliceController.js +1 -1
- package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
- package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
- package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
- package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/LaserlineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/MeasurementAreaVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/MeasurementArrowVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/SlicePlaneVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/VerticesVisualElement.js +1 -1
- package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
- package/views/3d/layers/DynamicLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/VectorTileLayerView3D.js +1 -1
- package/views/3d/layers/analyses/AreaMeasurement3D/AreaMeasurementView3D.js +1 -1
- package/views/3d/layers/analyses/AreaMeasurement3D/support/AreaMeasurementPathHelper.js +1 -1
- package/views/3d/layers/analyses/AreaMeasurement3D/support/AreaMeasurementVisualization.js +1 -1
- package/views/3d/layers/analyses/DirectLineMeasurement3D/DirectLineMeasurementView3D.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/ElevationAligners.js +1 -1
- package/views/3d/layers/graphics/ElevationQuery.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLodInstanceGraphicLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
- package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWebStyleSymbol.js +1 -1
- package/views/3d/layers/graphics/Labeler.js +1 -1
- package/views/3d/layers/graphics/Loadable.js +1 -1
- package/views/3d/layers/graphics/ObjectResourceCache.js +1 -1
- package/views/3d/layers/graphics/elevationAlignmentUtils.js +1 -1
- package/views/3d/layers/graphics/graphicUtils.js +1 -1
- package/views/3d/layers/graphics/labelPlacement.js +1 -1
- package/views/3d/layers/graphics/pointUtils.js +1 -1
- package/views/3d/layers/i3s/I3SAttributeOverrides.js +1 -1
- package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
- package/views/3d/layers/i3s/I3SStreamDataController.js +1 -1
- package/views/3d/layers/i3s/PointRenderer.js +1 -1
- package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
- package/views/3d/layers/support/patternUtils.js +1 -1
- package/views/3d/state/GoToOperation.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/support/LaserLineRenderer.js +1 -1
- package/views/3d/support/SharedSymbolResources.js +1 -1
- package/views/3d/support/StreamDataLoader.js +1 -1
- package/views/3d/support/StreamTextureCollection.js +5 -0
- package/views/3d/support/TextureCollection.js +1 -1
- package/views/3d/support/debugFlags.js +1 -1
- package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/StableSurfaceCenter.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/OverlayRenderTarget.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/webgl-engine/Stage.js +1 -1
- package/views/3d/webgl-engine/core/material/RenderTexture.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +13 -12
- package/views/3d/webgl-engine/core/shaderLibrary/shading/Reprojection.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +10 -3
- package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
- package/views/3d/webgl-engine/lib/Camera.js +1 -1
- package/views/3d/webgl-engine/lib/GLMaterialRepository.js +1 -1
- package/views/3d/webgl-engine/lib/GLMaterialTexture.js +1 -1
- package/views/3d/webgl-engine/lib/GLMaterials.js +1 -1
- package/views/3d/webgl-engine/lib/Material.js +1 -1
- package/views/3d/webgl-engine/lib/ModelDirtySet.js +1 -1
- package/views/3d/webgl-engine/lib/Object3D.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/SmaaRenderPass.js +1 -1
- package/views/3d/webgl-engine/lib/TextTexture.js +1 -1
- package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
- package/views/3d/webgl-engine/lib/Texture.js +1 -1
- package/views/3d/webgl-engine/lib/TextureRepository.js +1 -1
- package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodComponentData.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodLevel.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodResources.js +1 -1
- package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/WaterGLMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/lineStippleUtils.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
- package/views/3d/webgl-engine/parts/Model.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
- package/views/LayerViewManager.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/ToolViewManager.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
- package/views/support/AllocationTracer.js +1 -1
- package/views/support/DefaultsFromMap.js +1 -1
- package/views/support/QueueProcessor.js +1 -1
- package/views/webgl/capabilities/load.js +1 -1
- package/webscene/Slide.js +1 -1
- package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
- package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js +1 -1
- package/widgets/BuildingExplorer/support/layerUtils.js +1 -1
- package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.js +1 -1
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js +1 -1
- package/widgets/Editor/UpdateWorkflow.js +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/Home/HomeViewModel.js +1 -1
- package/widgets/Locate/LocateViewModel.js +1 -1
- package/widgets/Popup/PopupViewModel.js +1 -1
- package/widgets/Search/SearchViewModel.js +1 -1
- package/widgets/Search.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Slice/SliceViewModel.js +1 -1
- package/widgets/TimeSlider/TimeSliderViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/0283801d442984997abe.js +0 -1
- package/assets/esri/core/workers/chunks/0419e14a520b8fcf3e7a.js +0 -1
- package/assets/esri/core/workers/chunks/05318446b6a40caea361.js +0 -1
- package/assets/esri/core/workers/chunks/09e714d4381649348ac9.js +0 -1
- package/assets/esri/core/workers/chunks/0cecd668b9d5d3f83293.js +0 -1
- package/assets/esri/core/workers/chunks/13a73a88efd4f464173e.js +0 -1
- package/assets/esri/core/workers/chunks/1576727e8174d672555b.js +0 -1
- package/assets/esri/core/workers/chunks/1a3cbeb0a53d03a51dad.js +0 -1
- package/assets/esri/core/workers/chunks/1b8524b617bfc6fe422c.js +0 -1
- package/assets/esri/core/workers/chunks/1dc1d750046912ff6cef.js +0 -1
- package/assets/esri/core/workers/chunks/21fa174c114640be5e40.js +0 -1
- package/assets/esri/core/workers/chunks/2a3f6e56079620421a02.js +0 -1
- package/assets/esri/core/workers/chunks/2a5bcc73e55986ad93fe.js +0 -1
- package/assets/esri/core/workers/chunks/2a6f2e3d639aae491171.js +0 -1
- package/assets/esri/core/workers/chunks/2c17d1bad17bcee53f7d.js +0 -1
- package/assets/esri/core/workers/chunks/2cea27a0d07aa9a88ad4.js +0 -1
- package/assets/esri/core/workers/chunks/2e193d97d199b29b00c2.js +0 -1
- package/assets/esri/core/workers/chunks/2eb41fdf0d0a3b0c3232.js +0 -1
- package/assets/esri/core/workers/chunks/2f09ea639ca5d1d6ca7e.js +0 -1
- package/assets/esri/core/workers/chunks/2fb847ab1440bd1bdf15.js +0 -1
- package/assets/esri/core/workers/chunks/402d22ebbae608760b4f.js +0 -1
- package/assets/esri/core/workers/chunks/44daef7f0cbc6f6af09f.js +0 -1
- package/assets/esri/core/workers/chunks/46899156159e398c693f.js +0 -1
- package/assets/esri/core/workers/chunks/46bf8921db25845c63c0.js +0 -1
- package/assets/esri/core/workers/chunks/4eb23554e375350f73b5.js +0 -1
- package/assets/esri/core/workers/chunks/551917be63a513dfa4de.js +0 -1
- package/assets/esri/core/workers/chunks/564f6f5484bcb13ebb2b.js +0 -1
- package/assets/esri/core/workers/chunks/61df67ae47b7fb5875d9.js +0 -1
- package/assets/esri/core/workers/chunks/62642a8fc7bafe339984.js +0 -1
- package/assets/esri/core/workers/chunks/6304f4e53027df04eb8f.js +0 -1
- package/assets/esri/core/workers/chunks/6331987617ad166ea098.js +0 -1
- package/assets/esri/core/workers/chunks/6b13fcbc71c0088d317e.js +0 -1
- package/assets/esri/core/workers/chunks/6f7a6841e7269d2764ad.js +0 -1
- package/assets/esri/core/workers/chunks/70110efd2de23d9a5263.js +0 -1
- package/assets/esri/core/workers/chunks/7eae3f0588cde44fce39.js +0 -1
- package/assets/esri/core/workers/chunks/80d3c7a429c6412f1a8d.js +0 -1
- package/assets/esri/core/workers/chunks/80deebdf54bea04a0889.js +0 -1
- package/assets/esri/core/workers/chunks/81aa5fe7dcb4fdeb0974.js +0 -1
- package/assets/esri/core/workers/chunks/840d08b41913cad4df89.js +0 -1
- package/assets/esri/core/workers/chunks/85d154aeb511c5d70bb1.js +0 -1
- package/assets/esri/core/workers/chunks/8681e99e2bc9ece61c43.js +0 -1
- package/assets/esri/core/workers/chunks/8e5ef967f6518f4c93b1.js +0 -1
- package/assets/esri/core/workers/chunks/8edd7f70c8b95c34125c.js +0 -1
- package/assets/esri/core/workers/chunks/9044a7b90a53312b6392.js +0 -1
- package/assets/esri/core/workers/chunks/905b4dfc1ce57a225fa4.js +0 -1
- package/assets/esri/core/workers/chunks/945f90b31ebfae623ea0.js +0 -1
- package/assets/esri/core/workers/chunks/9943fd69b67cd1871d68.js +0 -1
- package/assets/esri/core/workers/chunks/9ad91c23480ffb656030.js +0 -1
- package/assets/esri/core/workers/chunks/9d103681372ab01a4147.js +0 -1
- package/assets/esri/core/workers/chunks/9d3230f59b4c4d1b2713.js +0 -1
- package/assets/esri/core/workers/chunks/9db75bc0980d16b730a1.js +0 -1
- package/assets/esri/core/workers/chunks/a0659b8bdc067da7badd.js +0 -1
- package/assets/esri/core/workers/chunks/a480ee9a994410177961.js +0 -1
- package/assets/esri/core/workers/chunks/a9b279975d7df0f295d7.js +0 -1
- package/assets/esri/core/workers/chunks/aa3abaa5ad4a5a3bcb84.js +0 -1
- package/assets/esri/core/workers/chunks/aa8e607f908297786675.js +0 -1
- package/assets/esri/core/workers/chunks/ab5a302b5f62d38293f9.js +0 -1
- package/assets/esri/core/workers/chunks/abd6a84396e0eb3f01ad.js +0 -1
- package/assets/esri/core/workers/chunks/abe9f8516b03a3fb0477.js +0 -1
- package/assets/esri/core/workers/chunks/aff6aa5c7f75f8e052d9.js +0 -1
- package/assets/esri/core/workers/chunks/b601cc5304b132536239.js +0 -1
- package/assets/esri/core/workers/chunks/b85f614ddbddd3c3007e.js +0 -1
- package/assets/esri/core/workers/chunks/b944f4ab25a691b3e611.js +0 -1
- package/assets/esri/core/workers/chunks/bbdacddb61e651ca0098.js +0 -1
- package/assets/esri/core/workers/chunks/c2fa728e805637a1783e.js +0 -1
- package/assets/esri/core/workers/chunks/c901f5f85d962254fc2c.js +0 -1
- package/assets/esri/core/workers/chunks/ca173b908d89a4e334f6.js +0 -1
- package/assets/esri/core/workers/chunks/cc2ef3bfa1f614d7452c.js +0 -1
- package/assets/esri/core/workers/chunks/cdb32a9ac9f5804c4212.js +0 -1
- package/assets/esri/core/workers/chunks/ce9a4997973da80141a5.js +0 -1
- package/assets/esri/core/workers/chunks/d0674b50a358d3bb9db2.js +0 -1
- package/assets/esri/core/workers/chunks/d18b7b4b3b9bea7204b0.js +0 -1
- package/assets/esri/core/workers/chunks/d2ce983f7babdf18a0ed.js +0 -1
- package/assets/esri/core/workers/chunks/d38a0d867dc6cecdc551.js +0 -1
- package/assets/esri/core/workers/chunks/e39ca33e9e463c1d6060.js +0 -1
- package/assets/esri/core/workers/chunks/e471d103205018a5cf7f.js +0 -1
- package/assets/esri/core/workers/chunks/e542fb044fc96f7e8af2.js +0 -1
- package/assets/esri/core/workers/chunks/e94e00a28591337b2def.js +0 -1
- package/assets/esri/core/workers/chunks/eb2709ccbc001f42ac1b.js +0 -1
- package/assets/esri/core/workers/chunks/f905511ca5f9b59fc17f.js +0 -1
- package/assets/esri/core/workers/chunks/f910e80dd87727af5184.js +0 -1
- package/assets/esri/core/workers/chunks/f9300a24305b0af1d227.js +0 -1
- package/assets/esri/core/workers/chunks/fa1e1ac5b3ef7bdf8a78.js +0 -1
- package/assets/esri/core/workers/chunks/fce76a84c7d25d8d47e8.js +0 -1
- package/assets/esri/core/workers/chunks/fef4f97fbe861a1b60e8.js +0 -1
- package/layers/AreaMeasurementLayer.d.ts +0 -4
- package/layers/DirectLineMeasurementLayer.d.ts +0 -4
- package/symbols/support/symbolPreview.d.ts +0 -4
- package/symbols/support/symbolPreview.js +0 -5
- package/views/3d/layers/AreaMeasurementLayerView3D.d.ts +0 -4
- package/views/3d/layers/DirectLineMeasurementLayerView3D.d.ts +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9254],{49254:(e,t,r)=>{r.r(t),r.d(t,{default:()=>H});var i=r(43697),s=r(51773),o=(r(16050),r(12501),r(95088),r(79056),r(5499),r(84382),r(30687),r(91423),r(32400)),a=r(3172),n=r(20102),l=r(92604),p=r(70586),d=r(16453),y=r(95330),u=r(17452),c=r(43050),h=r(5600),f=(r(67676),r(80442),r(1153)),g=(r(75215),r(71715)),b=r(52011),m=r(29600),v=r(54295),I=r(17287),_=r(38009),w=r(16859),L=r(72965),C=r(13496),F=r(15506),S=r(21506),j=r(61960),E=r(85857),O=r(14147),T=r(53518),P=r(99514),x=r(35671),A=r(51161),D=r(54306),R=r(30707),Z=r(56765),U=r(10736);let q=class extends U.wq{constructor(){super(...arguments),this.name=null,this.field=null,this.currentRangeExtent=null,this.fullRangeExtent=null,this.type="rangeInfo"}};(0,i._)([(0,h.Cb)({type:String,json:{read:!0,write:!0}})],q.prototype,"name",void 0),(0,i._)([(0,h.Cb)({type:String,json:{read:!0,write:!0}})],q.prototype,"field",void 0),(0,i._)([(0,h.Cb)({type:[Number],json:{read:!0,write:!0}})],q.prototype,"currentRangeExtent",void 0),(0,i._)([(0,h.Cb)({type:[Number],json:{read:!0,write:!0}})],q.prototype,"fullRangeExtent",void 0),(0,i._)([(0,h.Cb)({type:["rangeInfo"],readOnly:!0,json:{read:!1,write:!0}})],q.prototype,"type",void 0),q=(0,i._)([(0,b.j)("esri.layers.support.RangeInfo")],q);const Q=q;var N=r(40555),k=r(57444),V=r(32163),G=r(65242);const W=["3DObject","Point"],K=l.Z.getLogger("esri.layers.SceneLayer"),M=(0,T.v)();let Y=class extends((0,C.V)((0,I.Y)((0,_.q)((0,w.I)((0,L.M)((0,d.R)((0,v.V)(m.Z)))))))){constructor(...e){super(...e),this.featureReduction=null,this.rangeInfos=null,this.operationalLayerType="ArcGISSceneServiceLayer",this.type="scene",this.fields=null,this.floorInfo=null,this.outFields=null,this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.definitionExpression=null,this.path=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.cachedDrawingInfo={color:!1},this.popupEnabled=!0,this.popupTemplate=null,this.objectIdField=null,this.globalIdField=null,this._fieldUsageInfo={},this.screenSizePerspectiveEnabled=!0}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){var r,i,s,o;const a=null==(r=this.getFeatureType(null==t?void 0:t.feature))||null==(i=r.domains)?void 0:i[e];return a&&"inherited"!==a.type?a:null!=(s=null==(o=this.getField(e))?void 0:o.domain)?s:null}getFeatureType(e){return e&&(0,p.pC)(this.associatedLayer)?this.associatedLayer.getFeatureType(e):null}get types(){return(0,p.pC)(this.associatedLayer)?this.associatedLayer.types:[]}get typeIdField(){return(0,p.pC)(this.associatedLayer)?this.associatedLayer.typeIdField:null}get formTemplate(){return(0,p.pC)(this.associatedLayer)?this.associatedLayer.formTemplate:null}get fieldsIndex(){return new P.Z(this.fields)}readNodePages(e,t,r){return"Point"===t.layerType&&(e=t.pointNodePages),null==e||"object"!=typeof e?null:A.U4.fromJSON(e,r)}set elevationInfo(e){this._set("elevationInfo",e),this.loaded&&this._validateElevationInfo()}get geometryType(){return z[this.profile]||"mesh"}set renderer(e){(0,x.YN)(e,this.fieldsIndex),this._set("renderer",e)}readCachedDrawingInfo(e){return null!=e&&"object"==typeof e||(e={}),null==e.color&&(e.color=!1),e}get capabilities(){const e=(0,p.pC)(this.associatedLayer)&&this.associatedLayer.capabilities?this.associatedLayer.capabilities:F.C,{query:t,editing:{supportsGlobalId:r,supportsRollbackOnFailure:i,supportsUploadWithItemId:s,supportsReturnServiceEditsInSourceSpatialReference:o},data:{supportsZ:a,supportsM:n,isVersioned:l,supportsAttachment:d},operations:{supportsEditing:y,supportsUpdate:u,supportsQuery:c,supportsQueryAttachments:h}}=e,f=e.operations.supportsChangeTracking;return{query:t,editing:{supportsGlobalId:r,supportsReturnServiceEditsInSourceSpatialReference:o,supportsRollbackOnFailure:i,supportsGeometryUpdate:!1,supportsUploadWithItemId:s},data:{supportsAttachment:d,supportsZ:a,supportsM:n,isVersioned:l},operations:{supportsQuery:c,supportsQueryAttachments:h,supportsEditing:y&&f,supportsAdd:!1,supportsDelete:!1,supportsUpdate:u&&f}}}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.userHasEditingPrivileges}set editingEnabled(e){null!=e?this._override("editingEnabled",e):this._clearOverride("editingEnabled")}get defaultPopupTemplate(){return(0,p.pC)(this.associatedLayer)||this.attributeStorageInfo?this.createPopupTemplate():null}readObjectIdField(e,t){return!e&&t.fields&&t.fields.some((t=>("esriFieldTypeOID"===t.type&&(e=t.name),!!e))),e||void 0}readGlobalIdField(e,t){return!e&&t.fields&&t.fields.some((t=>("esriFieldTypeGlobalID"===t.type&&(e=t.name),!!e))),e||void 0}get displayField(){return(0,p.pC)(this.associatedLayer)?this.associatedLayer.displayField:null}readProfile(e,t){const r=t.store.profile;return null!=r&&$[r]?$[r]:(K.error("Unknown or missing profile",{profile:r,layer:this}),"mesh-pyramids")}load(e){const t=(0,p.pC)(e)?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(y.r9).then((()=>this._fetchService(t))).then((()=>Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,t),this._setAssociatedFeatureLayer(t)]))).then((()=>this._validateElevationInfo())).then((()=>this._applyAssociatedLayerOverrides())).then((()=>this._populateFieldUsageInfo())).then((()=>(0,N.y)(this,{origin:"service"},t))).then((()=>(0,x.YN)(this.renderer,this.fieldsIndex))).then((()=>this.finishLoadEditablePortalLayer(e)));return this.addResolvingPromise(r),Promise.resolve(this)}createQuery(){const e=new k.Z;return"mesh"!==this.geometryType&&(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryExtent(e||this.createQuery(),t)))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatureCount(e||this.createQuery(),t)))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatures(e||this.createQuery(),t))).then((e=>{if(null!=e&&e.features)for(const t of e.features)t.layer=this,t.sourceLayer=this;return e}))}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryObjectIds(e||this.createQuery(),t)))}queryAttachments(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryAttachments(e,t)))}getFieldUsageInfo(e){const t={supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1};return this.loaded?this._fieldUsageInfo[e]||t:(K.error("#getFieldUsageInfo()","Unavailable until layer is loaded"),t)}createPopupTemplate(e){return(0,V.eZ)(this,e)}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return(0,p.pC)(e)&&e.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),(0,p.Wi)(this.associatedLayer))throw new n.Z("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new n.Z("scenelayer:query-not-available","SceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}hasCachedStatistics(e){return null!=this.statisticsInfo&&this.statisticsInfo.some((t=>t.name===e))}async queryCachedStatistics(e,t){if(await this.load(t),!this.statisticsInfo)throw new n.Z("scenelayer:no-cached-statistics","Cached statistics are not available for this layer");const r=this.fieldsIndex.get(e);if(!r)throw new n.Z("scenelayer:field-unexisting",`Field '${e}' does not exist on the layer`);for(const e of this.statisticsInfo)if(e.name===r.name){const r=(0,u.v_)(this.parsedUrl.path,e.href);return(0,a.default)(r,{query:{f:"json",token:this.apiKey},responseType:"json",signal:t?t.signal:null}).then((e=>e.data))}throw new n.Z("scenelayer:no-cached-statistics","Cached statistics for this attribute are not available")}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"};return this._debouncedSaveOperations(0,e)}async applyEdits(e,t){const i=await r.e(7030).then(r.bind(r,14720));if(await this.load(),(0,p.Wi)(this.associatedLayer))throw new n.Z(`${this.type}-layer:not-editable`,"Service is not editable");return await this.associatedLayer.load(),i.applyEdits(this,this.associatedLayer.source,e,t)}on(e,t){return super.on(e,t)}validateLayer(e){if(e.layerType&&-1===W.indexOf(e.layerType))throw new n.Z("scenelayer:layer-type-not-supported","SceneLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new n.Z("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new n.Z("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});!function(e,t){let r=!1,i=!1;if(null==e)r=!0,i=!0;else{const s=t&&t.isGeographic;switch(e){case"east-north-up":case"earth-centered":r=!0,i=s;break;case"vertex-reference-frame":r=!0,i=!s;break;default:r=!1}}if(!r)throw new n.Z("scenelayer:unsupported-normal-reference-frame","Normal reference frame is invalid.");if(!i)throw new n.Z("scenelayer:incompatible-normal-reference-frame","Normal reference frame is incompatible with layer spatial reference.")}(this.normalReferenceFrame,this.spatialReference)}_getTypeKeywords(){const e=[];if("points"===this.profile)e.push("Point");else{if("mesh-pyramids"!==this.profile)throw new n.Z("scenelayer:unknown-profile","SceneLayer:save() encountered an unknown SceneLayer profile: "+this.profile);e.push("3DObject")}return e}_populateFieldUsageInfo(){if(this._fieldUsageInfo={},this.fields)for(const e of this.fields){const t=!(!this.attributeStorageInfo||!this.attributeStorageInfo.some((t=>t.name===e.name))),r=!!((0,p.pC)(this.associatedLayer)&&this.associatedLayer.fields&&this.associatedLayer.fields.some((t=>t&&e.name===t.name))),i={supportsLabelingInfo:t,supportsRenderer:t,supportsPopupTemplate:t||r,supportsLayerQuery:r};this._fieldUsageInfo[e.name]=i}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides(),this._applyAssociatedLayerPopupOverrides()}_applyAssociatedLayerFieldsOverrides(){if((0,p.Wi)(this.associatedLayer)||!this.associatedLayer.fields)return;let e=null;for(const t of this.associatedLayer.fields){const r=this.getField(t.name);r?(!r.domain&&t.domain&&(r.domain=t.domain.clone()),r.editable=t.editable,r.nullable=t.nullable,r.length=t.length):(e||(e=this.fields?this.fields.slice():[]),e.push(t.clone()))}e&&this._set("fields",e)}_applyAssociatedLayerPopupOverrides(){if((0,p.Wi)(this.associatedLayer))return;const e=["popupTemplate","popupEnabled"],t=(0,f.vw)(this);for(let r=0;r<e.length;r++){const i=e[r],s=this.originIdOf(i),o=this.associatedLayer.originIdOf(i);s<o&&(2===o||3===o)&&t.setAtOrigin(i,this.associatedLayer[i],o)}}async _setAssociatedFeatureLayer(e){if(-1===["mesh-pyramids","points"].indexOf(this.profile))return;const t=new O.W(this.parsedUrl,this.portalItem,this.apiKey,e);try{this.associatedLayer=await t.fetch()}catch(e){(0,y.D_)(e)||this._logWarningOnPopupEnabled()}}_logWarningOnPopupEnabled(){(0,c.tH)(this,["popupTemplate","popupEnabled"],(()=>this.popupEnabled&&null!=this.popupTemplate)).then((()=>()=>{const e=`this SceneLayer: ${this.title}`;null==this.attributeStorageInfo?K.warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${e}`):K.info(`Associated FeatureLayer could not be loaded. Falling back to binary attributes for Popups on ${e}`)}))}_validateElevationInfo(){const e=this.elevationInfo;e&&("mesh-pyramids"===this.profile&&"absolute-height"!==e.mode&&K.warn(".elevationInfo=","Mesh scene layers only support absolute-height elevation mode"),e.featureExpressionInfo&&"0"!==e.featureExpressionInfo.expression&&K.warn(".elevationInfo=","Scene layers do not support featureExpressionInfo"))}};(0,i._)([(0,h.Cb)({types:{key:"type",base:j.Z,typeMap:{selection:E.Z}},json:{origins:{"web-scene":{name:"layerDefinition.featureReduction",write:!0},"portal-item":{name:"layerDefinition.featureReduction",write:!0}}}})],Y.prototype,"featureReduction",void 0),(0,i._)([(0,h.Cb)({type:[Q],json:{read:!1,origins:{"web-scene":{name:"layerDefinition.rangeInfos",write:!0},"portal-item":{name:"layerDefinition.rangeInfos",write:!0}}}})],Y.prototype,"rangeInfos",void 0),(0,i._)([(0,h.Cb)({json:{read:!1}})],Y.prototype,"associatedLayer",void 0),(0,i._)([(0,h.Cb)({type:["show","hide"]})],Y.prototype,"listMode",void 0),(0,i._)([(0,h.Cb)({type:["ArcGISSceneServiceLayer"]})],Y.prototype,"operationalLayerType",void 0),(0,i._)([(0,h.Cb)({json:{read:!1},readOnly:!0})],Y.prototype,"type",void 0),(0,i._)([(0,h.Cb)({...M.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Y.prototype,"fields",void 0),(0,i._)([(0,h.Cb)()],Y.prototype,"types",null),(0,i._)([(0,h.Cb)()],Y.prototype,"typeIdField",null),(0,i._)([(0,h.Cb)()],Y.prototype,"formTemplate",null),(0,i._)([(0,h.Cb)({readOnly:!0})],Y.prototype,"fieldsIndex",null),(0,i._)([(0,h.Cb)({type:Z.Z,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],Y.prototype,"floorInfo",void 0),(0,i._)([(0,h.Cb)(M.outFields)],Y.prototype,"outFields",void 0),(0,i._)([(0,h.Cb)({type:A.U4,readOnly:!0,json:{read:!1}})],Y.prototype,"nodePages",void 0),(0,i._)([(0,g.r)("service","nodePages",["nodePages","pointNodePages"])],Y.prototype,"readNodePages",null),(0,i._)([(0,h.Cb)({type:[A.QI],readOnly:!0})],Y.prototype,"materialDefinitions",void 0),(0,i._)([(0,h.Cb)({type:[A.Yh],readOnly:!0})],Y.prototype,"textureSetDefinitions",void 0),(0,i._)([(0,h.Cb)({type:[A.H3],readOnly:!0})],Y.prototype,"geometryDefinitions",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],Y.prototype,"serviceUpdateTimeStamp",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],Y.prototype,"attributeStorageInfo",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],Y.prototype,"statisticsInfo",void 0),(0,i._)([(0,h.Cb)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],Y.prototype,"definitionExpression",void 0),(0,i._)([(0,h.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Y.prototype,"path",void 0),(0,i._)([(0,h.Cb)(S.PV)],Y.prototype,"elevationInfo",null),(0,i._)([(0,h.Cb)({type:String})],Y.prototype,"geometryType",null),(0,i._)([(0,h.Cb)(S.iR)],Y.prototype,"labelsVisible",void 0),(0,i._)([(0,h.Cb)({type:[D.Z],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:{reader:R.r},write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:R.r},write:!0}})],Y.prototype,"labelingInfo",void 0),(0,i._)([(0,h.Cb)(S.rn)],Y.prototype,"legendEnabled",void 0),(0,i._)([(0,h.Cb)({type:Number,json:{origins:{"web-document":{default:1,write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}},read:{source:["opacity","layerDefinition.drawingInfo.transparency"],reader(e,t){var r,i;if("number"==typeof e&&e>=0&&e<=1)return e;const s=null==(r=t.layerDefinition)||null==(i=r.drawingInfo)?void 0:i.transparency;return void 0!==s?(0,G.b)(s):void 0}}},"portal-item":{write:!0},service:{read:!1}}}})],Y.prototype,"opacity",void 0),(0,i._)([(0,h.Cb)({types:o.o,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],Y.prototype,"renderer",null),(0,i._)([(0,h.Cb)({json:{read:!1}})],Y.prototype,"cachedDrawingInfo",void 0),(0,i._)([(0,g.r)("service","cachedDrawingInfo")],Y.prototype,"readCachedDrawingInfo",null),(0,i._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],Y.prototype,"capabilities",null),(0,i._)([(0,h.Cb)({type:Boolean,json:{read:!1}})],Y.prototype,"editingEnabled",null),(0,i._)([(0,h.Cb)(S.C_)],Y.prototype,"popupEnabled",void 0),(0,i._)([(0,h.Cb)({type:s.Z,json:{name:"popupInfo",write:!0}})],Y.prototype,"popupTemplate",void 0),(0,i._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],Y.prototype,"defaultPopupTemplate",null),(0,i._)([(0,h.Cb)({type:String,json:{read:!1}})],Y.prototype,"objectIdField",void 0),(0,i._)([(0,g.r)("service","objectIdField",["objectIdField","fields"])],Y.prototype,"readObjectIdField",null),(0,i._)([(0,h.Cb)({type:String,json:{read:!1}})],Y.prototype,"globalIdField",void 0),(0,i._)([(0,g.r)("service","globalIdField",["globalIdField","fields"])],Y.prototype,"readGlobalIdField",null),(0,i._)([(0,h.Cb)({readOnly:!0,type:String,json:{read:!1}})],Y.prototype,"displayField",null),(0,i._)([(0,h.Cb)({type:String,json:{read:!1}})],Y.prototype,"profile",void 0),(0,i._)([(0,g.r)("service","profile",["store.profile"])],Y.prototype,"readProfile",null),(0,i._)([(0,h.Cb)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],Y.prototype,"normalReferenceFrame",void 0),(0,i._)([(0,h.Cb)(S.YI)],Y.prototype,"screenSizePerspectiveEnabled",void 0),Y=(0,i._)([(0,b.j)("esri.layers.SceneLayer")],Y);const $={"mesh-pyramids":"mesh-pyramids",meshpyramids:"mesh-pyramids","features-meshes":"mesh-pyramids",points:"points","features-points":"points",lines:"lines","features-lines":"lines",polygons:"polygons","features-polygons":"polygons"},z={"mesh-pyramids":"mesh",points:"point",lines:"polyline",polygons:"polygon"},H=Y}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9254],{49254:(e,t,r)=>{r.r(t),r.d(t,{default:()=>H});var i=r(43697),s=r(51773),o=(r(16050),r(12501),r(95088),r(79056),r(5499),r(84382),r(30687),r(91423),r(32400)),a=r(3172),n=r(20102),l=r(92604),p=r(70586),d=r(16453),y=r(95330),u=r(17452),c=r(43050),h=r(5600),f=(r(67676),r(80442),r(1153)),g=(r(75215),r(71715)),b=r(52011),m=r(29600),v=r(54295),I=r(17287),_=r(38009),w=r(16859),L=r(72965),C=r(13496),F=r(15506),S=r(21506),j=r(61960),E=r(85857),O=r(14147),T=r(53518),P=r(99514),x=r(35671),A=r(51161),D=r(54306),R=r(30707),Z=r(56765),U=r(10736);let q=class extends U.wq{constructor(){super(...arguments),this.name=null,this.field=null,this.currentRangeExtent=null,this.fullRangeExtent=null,this.type="rangeInfo"}};(0,i._)([(0,h.Cb)({type:String,json:{read:!0,write:!0}})],q.prototype,"name",void 0),(0,i._)([(0,h.Cb)({type:String,json:{read:!0,write:!0}})],q.prototype,"field",void 0),(0,i._)([(0,h.Cb)({type:[Number],json:{read:!0,write:!0}})],q.prototype,"currentRangeExtent",void 0),(0,i._)([(0,h.Cb)({type:[Number],json:{read:!0,write:!0}})],q.prototype,"fullRangeExtent",void 0),(0,i._)([(0,h.Cb)({type:["rangeInfo"],readOnly:!0,json:{read:!1,write:!0}})],q.prototype,"type",void 0),q=(0,i._)([(0,b.j)("esri.layers.support.RangeInfo")],q);const Q=q;var N=r(40555),k=r(57444),V=r(32163),G=r(65242);const W=["3DObject","Point"],K=l.Z.getLogger("esri.layers.SceneLayer"),M=(0,T.v)();let Y=class extends((0,C.V)((0,I.Y)((0,_.q)((0,w.I)((0,L.M)((0,d.R)((0,v.V)(m.Z)))))))){constructor(...e){super(...e),this.featureReduction=null,this.rangeInfos=null,this.operationalLayerType="ArcGISSceneServiceLayer",this.type="scene",this.fields=null,this.floorInfo=null,this.outFields=null,this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.definitionExpression=null,this.path=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.cachedDrawingInfo={color:!1},this.popupEnabled=!0,this.popupTemplate=null,this.objectIdField=null,this.globalIdField=null,this._fieldUsageInfo={},this.screenSizePerspectiveEnabled=!0}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){var r,i,s,o;const a=null==(r=this.getFeatureType(null==t?void 0:t.feature))||null==(i=r.domains)?void 0:i[e];return a&&"inherited"!==a.type?a:null!=(s=null==(o=this.getField(e))?void 0:o.domain)?s:null}getFeatureType(e){return e&&(0,p.pC)(this.associatedLayer)?this.associatedLayer.getFeatureType(e):null}get types(){return(0,p.pC)(this.associatedLayer)?this.associatedLayer.types:[]}get typeIdField(){return(0,p.pC)(this.associatedLayer)?this.associatedLayer.typeIdField:null}get formTemplate(){return(0,p.pC)(this.associatedLayer)?this.associatedLayer.formTemplate:null}get fieldsIndex(){return new P.Z(this.fields)}readNodePages(e,t,r){return"Point"===t.layerType&&(e=t.pointNodePages),null==e||"object"!=typeof e?null:A.U4.fromJSON(e,r)}set elevationInfo(e){this._set("elevationInfo",e),this.loaded&&this._validateElevationInfo()}get geometryType(){return z[this.profile]||"mesh"}set renderer(e){(0,x.YN)(e,this.fieldsIndex),this._set("renderer",e)}readCachedDrawingInfo(e){return null!=e&&"object"==typeof e||(e={}),null==e.color&&(e.color=!1),e}get capabilities(){const e=(0,p.pC)(this.associatedLayer)&&this.associatedLayer.capabilities?this.associatedLayer.capabilities:F.C,{query:t,editing:{supportsGlobalId:r,supportsRollbackOnFailure:i,supportsUploadWithItemId:s,supportsReturnServiceEditsInSourceSpatialReference:o},data:{supportsZ:a,supportsM:n,isVersioned:l,supportsAttachment:d},operations:{supportsEditing:y,supportsUpdate:u,supportsQuery:c,supportsQueryAttachments:h}}=e,f=e.operations.supportsChangeTracking;return{query:t,editing:{supportsGlobalId:r,supportsReturnServiceEditsInSourceSpatialReference:o,supportsRollbackOnFailure:i,supportsGeometryUpdate:!1,supportsUploadWithItemId:s},data:{supportsAttachment:d,supportsZ:a,supportsM:n,isVersioned:l},operations:{supportsQuery:c,supportsQueryAttachments:h,supportsEditing:y&&f,supportsAdd:!1,supportsDelete:!1,supportsUpdate:u&&f}}}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.userHasEditingPrivileges}set editingEnabled(e){null!=e?this._override("editingEnabled",e):this._clearOverride("editingEnabled")}get defaultPopupTemplate(){return(0,p.pC)(this.associatedLayer)||this.attributeStorageInfo?this.createPopupTemplate():null}readObjectIdField(e,t){return!e&&t.fields&&t.fields.some((t=>("esriFieldTypeOID"===t.type&&(e=t.name),!!e))),e||void 0}readGlobalIdField(e,t){return!e&&t.fields&&t.fields.some((t=>("esriFieldTypeGlobalID"===t.type&&(e=t.name),!!e))),e||void 0}get displayField(){return(0,p.pC)(this.associatedLayer)?this.associatedLayer.displayField:null}readProfile(e,t){const r=t.store.profile;return null!=r&&$[r]?$[r]:(K.error("Unknown or missing profile",{profile:r,layer:this}),"mesh-pyramids")}load(e){const t=(0,p.pC)(e)?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(y.r9).then((()=>this._fetchService(t))).then((()=>Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,t),this._setAssociatedFeatureLayer(t)]))).then((()=>this._validateElevationInfo())).then((()=>this._applyAssociatedLayerOverrides())).then((()=>this._populateFieldUsageInfo())).then((()=>(0,N.y)(this,{origin:"service"},t))).then((()=>(0,x.YN)(this.renderer,this.fieldsIndex))).then((()=>this.finishLoadEditablePortalLayer(e)));return this.addResolvingPromise(r),Promise.resolve(this)}createQuery(){const e=new k.Z;return"mesh"!==this.geometryType&&(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryExtent(e||this.createQuery(),t)))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatureCount(e||this.createQuery(),t)))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatures(e||this.createQuery(),t))).then((e=>{if(null!=e&&e.features)for(const t of e.features)t.layer=this,t.sourceLayer=this;return e}))}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryObjectIds(e||this.createQuery(),t)))}queryAttachments(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryAttachments(e,t)))}getFieldUsageInfo(e){const t={supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1};return this.loaded?this._fieldUsageInfo[e]||t:(K.error("#getFieldUsageInfo()","Unavailable until layer is loaded"),t)}createPopupTemplate(e){return(0,V.eZ)(this,e)}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return(0,p.pC)(e)&&e.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),(0,p.Wi)(this.associatedLayer))throw new n.Z("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new n.Z("scenelayer:query-not-available","SceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}hasCachedStatistics(e){return null!=this.statisticsInfo&&this.statisticsInfo.some((t=>t.name===e))}async queryCachedStatistics(e,t){if(await this.load(t),!this.statisticsInfo)throw new n.Z("scenelayer:no-cached-statistics","Cached statistics are not available for this layer");const r=this.fieldsIndex.get(e);if(!r)throw new n.Z("scenelayer:field-unexisting",`Field '${e}' does not exist on the layer`);for(const e of this.statisticsInfo)if(e.name===r.name){const r=(0,u.v_)(this.parsedUrl.path,e.href);return(0,a.default)(r,{query:{f:"json",token:this.apiKey},responseType:"json",signal:t?t.signal:null}).then((e=>e.data))}throw new n.Z("scenelayer:no-cached-statistics","Cached statistics for this attribute are not available")}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"};return this._debouncedSaveOperations(0,e)}async applyEdits(e,t){const i=await r.e(1444).then(r.bind(r,14720));if(await this.load(),(0,p.Wi)(this.associatedLayer))throw new n.Z(`${this.type}-layer:not-editable`,"Service is not editable");return await this.associatedLayer.load(),i.applyEdits(this,this.associatedLayer.source,e,t)}on(e,t){return super.on(e,t)}validateLayer(e){if(e.layerType&&-1===W.indexOf(e.layerType))throw new n.Z("scenelayer:layer-type-not-supported","SceneLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new n.Z("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new n.Z("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});!function(e,t){let r=!1,i=!1;if(null==e)r=!0,i=!0;else{const s=t&&t.isGeographic;switch(e){case"east-north-up":case"earth-centered":r=!0,i=s;break;case"vertex-reference-frame":r=!0,i=!s;break;default:r=!1}}if(!r)throw new n.Z("scenelayer:unsupported-normal-reference-frame","Normal reference frame is invalid.");if(!i)throw new n.Z("scenelayer:incompatible-normal-reference-frame","Normal reference frame is incompatible with layer spatial reference.")}(this.normalReferenceFrame,this.spatialReference)}_getTypeKeywords(){const e=[];if("points"===this.profile)e.push("Point");else{if("mesh-pyramids"!==this.profile)throw new n.Z("scenelayer:unknown-profile","SceneLayer:save() encountered an unknown SceneLayer profile: "+this.profile);e.push("3DObject")}return e}_populateFieldUsageInfo(){if(this._fieldUsageInfo={},this.fields)for(const e of this.fields){const t=!(!this.attributeStorageInfo||!this.attributeStorageInfo.some((t=>t.name===e.name))),r=!!((0,p.pC)(this.associatedLayer)&&this.associatedLayer.fields&&this.associatedLayer.fields.some((t=>t&&e.name===t.name))),i={supportsLabelingInfo:t,supportsRenderer:t,supportsPopupTemplate:t||r,supportsLayerQuery:r};this._fieldUsageInfo[e.name]=i}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides(),this._applyAssociatedLayerPopupOverrides()}_applyAssociatedLayerFieldsOverrides(){if((0,p.Wi)(this.associatedLayer)||!this.associatedLayer.fields)return;let e=null;for(const t of this.associatedLayer.fields){const r=this.getField(t.name);r?(!r.domain&&t.domain&&(r.domain=t.domain.clone()),r.editable=t.editable,r.nullable=t.nullable,r.length=t.length):(e||(e=this.fields?this.fields.slice():[]),e.push(t.clone()))}e&&this._set("fields",e)}_applyAssociatedLayerPopupOverrides(){if((0,p.Wi)(this.associatedLayer))return;const e=["popupTemplate","popupEnabled"],t=(0,f.vw)(this);for(let r=0;r<e.length;r++){const i=e[r],s=this.originIdOf(i),o=this.associatedLayer.originIdOf(i);s<o&&(2===o||3===o)&&t.setAtOrigin(i,this.associatedLayer[i],o)}}async _setAssociatedFeatureLayer(e){if(-1===["mesh-pyramids","points"].indexOf(this.profile))return;const t=new O.W(this.parsedUrl,this.portalItem,this.apiKey,e);try{this.associatedLayer=await t.fetch()}catch(e){(0,y.D_)(e)||this._logWarningOnPopupEnabled()}}_logWarningOnPopupEnabled(){(0,c.tH)(this,["popupTemplate","popupEnabled"],(()=>this.popupEnabled&&null!=this.popupTemplate)).then((()=>()=>{const e=`this SceneLayer: ${this.title}`;null==this.attributeStorageInfo?K.warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${e}`):K.info(`Associated FeatureLayer could not be loaded. Falling back to binary attributes for Popups on ${e}`)}))}_validateElevationInfo(){const e=this.elevationInfo;e&&("mesh-pyramids"===this.profile&&"absolute-height"!==e.mode&&K.warn(".elevationInfo=","Mesh scene layers only support absolute-height elevation mode"),e.featureExpressionInfo&&"0"!==e.featureExpressionInfo.expression&&K.warn(".elevationInfo=","Scene layers do not support featureExpressionInfo"))}};(0,i._)([(0,h.Cb)({types:{key:"type",base:j.Z,typeMap:{selection:E.Z}},json:{origins:{"web-scene":{name:"layerDefinition.featureReduction",write:!0},"portal-item":{name:"layerDefinition.featureReduction",write:!0}}}})],Y.prototype,"featureReduction",void 0),(0,i._)([(0,h.Cb)({type:[Q],json:{read:!1,origins:{"web-scene":{name:"layerDefinition.rangeInfos",write:!0},"portal-item":{name:"layerDefinition.rangeInfos",write:!0}}}})],Y.prototype,"rangeInfos",void 0),(0,i._)([(0,h.Cb)({json:{read:!1}})],Y.prototype,"associatedLayer",void 0),(0,i._)([(0,h.Cb)({type:["show","hide"]})],Y.prototype,"listMode",void 0),(0,i._)([(0,h.Cb)({type:["ArcGISSceneServiceLayer"]})],Y.prototype,"operationalLayerType",void 0),(0,i._)([(0,h.Cb)({json:{read:!1},readOnly:!0})],Y.prototype,"type",void 0),(0,i._)([(0,h.Cb)({...M.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Y.prototype,"fields",void 0),(0,i._)([(0,h.Cb)()],Y.prototype,"types",null),(0,i._)([(0,h.Cb)()],Y.prototype,"typeIdField",null),(0,i._)([(0,h.Cb)()],Y.prototype,"formTemplate",null),(0,i._)([(0,h.Cb)({readOnly:!0})],Y.prototype,"fieldsIndex",null),(0,i._)([(0,h.Cb)({type:Z.Z,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],Y.prototype,"floorInfo",void 0),(0,i._)([(0,h.Cb)(M.outFields)],Y.prototype,"outFields",void 0),(0,i._)([(0,h.Cb)({type:A.U4,readOnly:!0,json:{read:!1}})],Y.prototype,"nodePages",void 0),(0,i._)([(0,g.r)("service","nodePages",["nodePages","pointNodePages"])],Y.prototype,"readNodePages",null),(0,i._)([(0,h.Cb)({type:[A.QI],readOnly:!0})],Y.prototype,"materialDefinitions",void 0),(0,i._)([(0,h.Cb)({type:[A.Yh],readOnly:!0})],Y.prototype,"textureSetDefinitions",void 0),(0,i._)([(0,h.Cb)({type:[A.H3],readOnly:!0})],Y.prototype,"geometryDefinitions",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],Y.prototype,"serviceUpdateTimeStamp",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],Y.prototype,"attributeStorageInfo",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],Y.prototype,"statisticsInfo",void 0),(0,i._)([(0,h.Cb)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],Y.prototype,"definitionExpression",void 0),(0,i._)([(0,h.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Y.prototype,"path",void 0),(0,i._)([(0,h.Cb)(S.PV)],Y.prototype,"elevationInfo",null),(0,i._)([(0,h.Cb)({type:String})],Y.prototype,"geometryType",null),(0,i._)([(0,h.Cb)(S.iR)],Y.prototype,"labelsVisible",void 0),(0,i._)([(0,h.Cb)({type:[D.Z],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:{reader:R.r},write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:R.r},write:!0}})],Y.prototype,"labelingInfo",void 0),(0,i._)([(0,h.Cb)(S.rn)],Y.prototype,"legendEnabled",void 0),(0,i._)([(0,h.Cb)({type:Number,json:{origins:{"web-document":{default:1,write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}},read:{source:["opacity","layerDefinition.drawingInfo.transparency"],reader(e,t){var r,i;if("number"==typeof e&&e>=0&&e<=1)return e;const s=null==(r=t.layerDefinition)||null==(i=r.drawingInfo)?void 0:i.transparency;return void 0!==s?(0,G.b)(s):void 0}}},"portal-item":{write:!0},service:{read:!1}}}})],Y.prototype,"opacity",void 0),(0,i._)([(0,h.Cb)({types:o.o,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],Y.prototype,"renderer",null),(0,i._)([(0,h.Cb)({json:{read:!1}})],Y.prototype,"cachedDrawingInfo",void 0),(0,i._)([(0,g.r)("service","cachedDrawingInfo")],Y.prototype,"readCachedDrawingInfo",null),(0,i._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],Y.prototype,"capabilities",null),(0,i._)([(0,h.Cb)({type:Boolean,json:{read:!1}})],Y.prototype,"editingEnabled",null),(0,i._)([(0,h.Cb)(S.C_)],Y.prototype,"popupEnabled",void 0),(0,i._)([(0,h.Cb)({type:s.Z,json:{name:"popupInfo",write:!0}})],Y.prototype,"popupTemplate",void 0),(0,i._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],Y.prototype,"defaultPopupTemplate",null),(0,i._)([(0,h.Cb)({type:String,json:{read:!1}})],Y.prototype,"objectIdField",void 0),(0,i._)([(0,g.r)("service","objectIdField",["objectIdField","fields"])],Y.prototype,"readObjectIdField",null),(0,i._)([(0,h.Cb)({type:String,json:{read:!1}})],Y.prototype,"globalIdField",void 0),(0,i._)([(0,g.r)("service","globalIdField",["globalIdField","fields"])],Y.prototype,"readGlobalIdField",null),(0,i._)([(0,h.Cb)({readOnly:!0,type:String,json:{read:!1}})],Y.prototype,"displayField",null),(0,i._)([(0,h.Cb)({type:String,json:{read:!1}})],Y.prototype,"profile",void 0),(0,i._)([(0,g.r)("service","profile",["store.profile"])],Y.prototype,"readProfile",null),(0,i._)([(0,h.Cb)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],Y.prototype,"normalReferenceFrame",void 0),(0,i._)([(0,h.Cb)(S.YI)],Y.prototype,"screenSizePerspectiveEnabled",void 0),Y=(0,i._)([(0,b.j)("esri.layers.SceneLayer")],Y);const $={"mesh-pyramids":"mesh-pyramids",meshpyramids:"mesh-pyramids","features-meshes":"mesh-pyramids",points:"points","features-points":"points",lines:"lines","features-lines":"lines",polygons:"polygons","features-polygons":"polygons"},z={"mesh-pyramids":"mesh",points:"point",lines:"polyline",polygons:"polygon"},H=Y}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2894],{99880:(t,n,e)=>{e.d(n,{V:()=>a});var r=e(68773),o=(e(3172),e(20102)),s=e(92604),i=e(17452);const u=s.Z.getLogger("esri.assets");function a(t){if(!r.Z.assetsPath)throw u.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new o.Z("assets:path-not-set","config.assetsPath is not set");return(0,i.v_)(r.Z.assetsPath,t)}},17896:(t,n,e)=>{e.d(n,{E:()=>_,a:()=>f,b:()=>a,c:()=>E,d:()=>M,e:()=>g,f:()=>c,g:()=>i,h:()=>h,i:()=>P,k:()=>R,l:()=>s,m:()=>T,n:()=>d,p:()=>p,q:()=>y,r:()=>N,s:()=>u,t:()=>m,u:()=>v,w:()=>A});var r=e(65617),o=e(46851);function s(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function i(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function u(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function a(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function c(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function l(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function _(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function f(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function P(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(e*e+r*r+o*o)}function h(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return e*e+r*r+o*o}function p(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function d(t,n){const e=n[0],r=n[1],o=n[2];let s=e*e+r*r+o*o;return s>0&&(s=1/Math.sqrt(s),t[0]=n[0]*s,t[1]=n[1]*s,t[2]=n[2]*s),t}function M(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function E(t,n,e){const r=n[0],o=n[1],s=n[2],i=e[0],u=e[1],a=e[2];return t[0]=o*a-s*u,t[1]=s*i-r*a,t[2]=r*u-o*i,t}function g(t,n,e,r){const o=n[0],s=n[1],i=n[2];return t[0]=o+r*(e[0]-o),t[1]=s+r*(e[1]-s),t[2]=i+r*(e[2]-i),t}function T(t,n,e){const r=n[0],o=n[1],s=n[2];return t[0]=e[0]*r+e[4]*o+e[8]*s+e[12],t[1]=e[1]*r+e[5]*o+e[9]*s+e[13],t[2]=e[2]*r+e[6]*o+e[10]*s+e[14],t}function m(t,n,e){const r=n[0],o=n[1],s=n[2];return t[0]=r*e[0]+o*e[3]+s*e[6],t[1]=r*e[1]+o*e[4]+s*e[7],t[2]=r*e[2]+o*e[5]+s*e[8],t}function y(t,n,e){const r=e[0],o=e[1],s=e[2],i=e[3],u=n[0],a=n[1],c=n[2];let l=o*c-s*a,_=s*u-r*c,f=r*a-o*u,P=o*f-s*_,h=s*l-r*f,p=r*_-o*l;const d=2*i;return l*=d,_*=d,f*=d,P*=2,h*=2,p*=2,t[0]=u+l+P,t[1]=a+_+h,t[2]=c+f+p,t}const S=(0,r.c)(),O=(0,r.c)();function R(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function N(t,n,e){const r=e[0]-n[0],o=e[1]-n[1],s=e[2]-n[2];let i=r*r+o*o+s*s;return i>0?(i=1/Math.sqrt(i),t[0]=r*i,t[1]=o*i,t[2]=s*i,t):(t[0]=0,t[1]=0,t[2]=0,t)}const A=c,w=l,I=_,G=P,D=h,v=s,k=p;Object.freeze({__proto__:null,length:s,copy:i,set:u,add:a,subtract:c,multiply:l,divide:_,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},min:function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t},max:function(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:f,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t},distance:P,squaredDistance:h,squaredLength:p,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t},normalize:d,dot:M,cross:E,lerp:g,hermite:function(t,n,e,r,o,s){const i=s*s,u=i*(2*s-3)+1,a=i*(s-2)+s,c=i*(s-1),l=i*(3-2*s);return t[0]=n[0]*u+e[0]*a+r[0]*c+o[0]*l,t[1]=n[1]*u+e[1]*a+r[1]*c+o[1]*l,t[2]=n[2]*u+e[2]*a+r[2]*c+o[2]*l,t},bezier:function(t,n,e,r,o,s){const i=1-s,u=i*i,a=s*s,c=u*i,l=3*s*u,_=3*a*i,f=a*s;return t[0]=n[0]*c+e[0]*l+r[0]*_+o[0]*f,t[1]=n[1]*c+e[1]*l+r[1]*_+o[1]*f,t[2]=n[2]*c+e[2]*l+r[2]*_+o[2]*f,t},random:function(t,n){n=n||1;const e=2*(0,o.R)()*Math.PI,r=2*(0,o.R)()-1,s=Math.sqrt(1-r*r)*n;return t[0]=Math.cos(e)*s,t[1]=Math.sin(e)*s,t[2]=r*n,t},transformMat4:T,transformMat3:m,transformQuat:y,rotateX:function(t,n,e,r){const o=[],s=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],s[0]=o[0],s[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),s[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateY:function(t,n,e,r){const o=[],s=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],s[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),s[1]=o[1],s[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateZ:function(t,n,e,r){const o=[],s=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],s[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),s[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),s[2]=o[2],t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},angle:function(t,n){i(S,t),i(O,n),d(S,S),d(O,O);const e=M(S,O);return e>1?0:e<-1?Math.PI:Math.acos(e)},str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},exactEquals:R,equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],s=t[2],i=n[0],u=n[1],a=n[2];return Math.abs(e-i)<=o.E*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(r-u)<=o.E*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(s-a)<=o.E*Math.max(1,Math.abs(s),Math.abs(a))},direction:N,sub:A,mul:w,div:I,dist:G,sqrDist:D,len:v,sqrLen:k})},98766:(t,n,e)=>{e.d(n,{a:()=>i,b:()=>l,c:()=>o,d:()=>d,e:()=>P,f:()=>h,g:()=>g,h:()=>T,l:()=>M,n:()=>p,s:()=>s,t:()=>E});var r=e(46851);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function s(t,n,e,r,o){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t}function i(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t}function a(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t[3]=n[3]*e[3],t}function c(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t[3]=n[3]/e[3],t}function l(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t}function _(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],s=n[3]-t[3];return Math.sqrt(e*e+r*r+o*o+s*s)}function f(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],s=n[3]-t[3];return e*e+r*r+o*o+s*s}function P(t){const n=t[0],e=t[1],r=t[2],o=t[3];return Math.sqrt(n*n+e*e+r*r+o*o)}function h(t){const n=t[0],e=t[1],r=t[2],o=t[3];return n*n+e*e+r*r+o*o}function p(t,n){const e=n[0],r=n[1],o=n[2],s=n[3];let i=e*e+r*r+o*o+s*s;return i>0&&(i=1/Math.sqrt(i),t[0]=e*i,t[1]=r*i,t[2]=o*i,t[3]=s*i),t}function d(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function M(t,n,e,r){const o=n[0],s=n[1],i=n[2],u=n[3];return t[0]=o+r*(e[0]-o),t[1]=s+r*(e[1]-s),t[2]=i+r*(e[2]-i),t[3]=u+r*(e[3]-u),t}function E(t,n,e){const r=n[0],o=n[1],s=n[2],i=n[3];return t[0]=e[0]*r+e[4]*o+e[8]*s+e[12]*i,t[1]=e[1]*r+e[5]*o+e[9]*s+e[13]*i,t[2]=e[2]*r+e[6]*o+e[10]*s+e[14]*i,t[3]=e[3]*r+e[7]*o+e[11]*s+e[15]*i,t}function g(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function T(t,n){const e=t[0],o=t[1],s=t[2],i=t[3],u=n[0],a=n[1],c=n[2],l=n[3];return Math.abs(e-u)<=r.E*Math.max(1,Math.abs(e),Math.abs(u))&&Math.abs(o-a)<=r.E*Math.max(1,Math.abs(o),Math.abs(a))&&Math.abs(s-c)<=r.E*Math.max(1,Math.abs(s),Math.abs(c))&&Math.abs(i-l)<=r.E*Math.max(1,Math.abs(i),Math.abs(l))}const m=u,y=a,S=c,O=_,R=f,N=P,A=h;Object.freeze({__proto__:null,copy:o,set:s,add:i,subtract:u,multiply:a,divide:c,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},min:function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t[3]=Math.min(n[3],e[3]),t},max:function(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t[3]=Math.max(n[3],e[3]),t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t},scale:l,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t},distance:_,squaredDistance:f,length:P,squaredLength:h,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},normalize:p,dot:d,lerp:M,random:function(t,n){let e,o,s,i,u,a;n=n||1;do{e=2*(0,r.R)()-1,o=2*(0,r.R)()-1,u=e*e+o*o}while(u>=1);do{s=2*(0,r.R)()-1,i=2*(0,r.R)()-1,a=s*s+i*i}while(a>=1);const c=Math.sqrt((1-u)/a);return t[0]=n*e,t[1]=n*o,t[2]=n*s*c,t[3]=n*i*c,t},transformMat4:E,transformQuat:function(t,n,e){const r=n[0],o=n[1],s=n[2],i=e[0],u=e[1],a=e[2],c=e[3],l=c*r+u*s-a*o,_=c*o+a*r-i*s,f=c*s+i*o-u*r,P=-i*r-u*o-a*s;return t[0]=l*c+P*-i+_*-a-f*-u,t[1]=_*c+P*-u+f*-i-l*-a,t[2]=f*c+P*-a+l*-u-_*-i,t[3]=n[3],t},str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},exactEquals:g,equals:T,sub:m,mul:y,div:S,dist:O,sqrDist:R,len:N,sqrLen:A})},22021:(t,n,e)=>{e.d(n,{ZF:()=>_,Kt:()=>f,jE:()=>p,uZ:()=>i,oK:()=>P,Vl:()=>c,wt:()=>u,t7:()=>a,Sf:()=>s,BV:()=>l});var r=e(17896);e(98766);const o=new Float32Array(1);function s(t){--t;for(let n=1;n<32;n<<=1)t|=t>>n;return t+1}function i(t,n,e){return Math.min(Math.max(t,n),e)}function u(t){return 0==(t&t-1)}function a(t,n,e){return t+(n-t)*e}function c(t){return t*Math.PI/180}function l(t){return 180*t/Math.PI}function _(t){return Math.acos(i(t,-1,1))}function f(t){return Math.asin(i(t,-1,1))}function P(t){return h(Math.max(-d,Math.min(t,d)))}function h(t){return o[0]=t,o[0]}function p(t,n){const e=(0,r.l)(t),o=f(t[2]/e),s=Math.atan2(t[1]/e,t[0]/e);return(0,r.s)(n,e,o,s),n}const d=h(34028234663852886e22)},42894:(t,n,e)=>{e.d(n,{Up:()=>st,Bm:()=>Pt,iQ:()=>it,kR:()=>tt,zD:()=>nt,iV:()=>et,CM:()=>_t,oj:()=>rt,KC:()=>ct,Wt:()=>ut});var r=e(20102),o=e(22021),s=e(70586),i=e(95330),u=e(67900),a=e(52138),c=(e(17896),e(65617)),l=e(6570),_=e(65091),f=e(99880),P=e(80442);let h,p=null;function d(){return!!p}function M(){return h||(h=e.e(6774).then(e.bind(e,66774)).then((t=>t.p)).then((({default:t})=>t({locateFile:t=>(0,f.V)(`esri/geometry/support/${t}`)}))).then((t=>{v(t)})),h)}var E,g,T,m;!function(t){function n(t,n,e){p.ensureCache.prepare();const r=x(e),o=e===r,s=p.ensureFloat64(r),i=p._pe_geog_to_proj(p.getPointer(t),n,s);return i&&b(e,n,s,o),i}function e(t,n,e){return r(t,n,e,0)}function r(t,n,e,r){p.ensureCache.prepare();const o=x(e),s=e===o,i=p.ensureFloat64(o),u=p._pe_proj_to_geog_center(p.getPointer(t),n,i,r);return u&&b(e,n,i,s),u}t.geogToProj=n,t.projGeog=function(t,r,o,s){switch(s){case g.PE_TRANSFORM_P_TO_G:return e(t,r,o);case g.PE_TRANSFORM_G_TO_P:return n(t,r,o)}return 0},t.projToGeog=e,t.projToGeogCenter=r}(E||(E={})),(m=g||(g={})).init=function(){m.PE_BUFFER_MAX=p.PeDefs.prototype.PE_BUFFER_MAX,m.PE_NAME_MAX=p.PeDefs.prototype.PE_NAME_MAX,m.PE_MGRS_MAX=p.PeDefs.prototype.PE_MGRS_MAX,m.PE_USNG_MAX=p.PeDefs.prototype.PE_USNG_MAX,m.PE_DD_MAX=p.PeDefs.prototype.PE_DD_MAX,m.PE_DDM_MAX=p.PeDefs.prototype.PE_DDM_MAX,m.PE_DMS_MAX=p.PeDefs.prototype.PE_DMS_MAX,m.PE_UTM_MAX=p.PeDefs.prototype.PE_UTM_MAX,m.PE_PARM_MAX=p.PeDefs.prototype.PE_PARM_MAX,m.PE_TYPE_NONE=p.PeDefs.prototype.PE_TYPE_NONE,m.PE_TYPE_GEOGCS=p.PeDefs.prototype.PE_TYPE_GEOGCS,m.PE_TYPE_PROJCS=p.PeDefs.prototype.PE_TYPE_PROJCS,m.PE_TYPE_GEOGTRAN=p.PeDefs.prototype.PE_TYPE_GEOGTRAN,m.PE_TYPE_COORDSYS=p.PeDefs.prototype.PE_TYPE_COORDSYS,m.PE_TYPE_UNIT=p.PeDefs.prototype.PE_TYPE_UNIT,m.PE_TYPE_LINUNIT=p.PeDefs.prototype.PE_TYPE_LINUNIT,m.PE_STR_OPTS_NONE=p.PeDefs.prototype.PE_STR_OPTS_NONE,m.PE_STR_AUTH_NONE=p.PeDefs.prototype.PE_STR_AUTH_NONE,m.PE_STR_AUTH_TOP=p.PeDefs.prototype.PE_STR_AUTH_TOP,m.PE_STR_NAME_CANON=p.PeDefs.prototype.PE_STR_NAME_CANON,m.PE_PARM_X0=p.PeDefs.prototype.PE_PARM_X0,m.PE_PARM_ND=p.PeDefs.prototype.PE_PARM_ND,m.PE_TRANSFORM_1_TO_2=p.PeDefs.prototype.PE_TRANSFORM_1_TO_2,m.PE_TRANSFORM_2_TO_1=p.PeDefs.prototype.PE_TRANSFORM_2_TO_1,m.PE_TRANSFORM_P_TO_G=p.PeDefs.prototype.PE_TRANSFORM_P_TO_G,m.PE_TRANSFORM_G_TO_P=p.PeDefs.prototype.PE_TRANSFORM_G_TO_P,m.PE_HORIZON_RECT=p.PeDefs.prototype.PE_HORIZON_RECT,m.PE_HORIZON_POLY=p.PeDefs.prototype.PE_HORIZON_POLY,m.PE_HORIZON_LINE=p.PeDefs.prototype.PE_HORIZON_LINE,m.PE_HORIZON_DELTA=p.PeDefs.prototype.PE_HORIZON_DELTA},function(t){const n={},e={},r=t=>{if(t){const n=t.getType();switch(n){case g.PE_TYPE_GEOGCS:t=p.castObject(t,p.PeGeogcs);break;case g.PE_TYPE_PROJCS:t=p.castObject(t,p.PeProjcs);break;case g.PE_TYPE_GEOGTRAN:t=p.castObject(t,p.PeGeogtran);break;default:n&g.PE_TYPE_UNIT&&(t=p.castObject(t,p.PeUnit))}}return t};function o(t,e){let o=null,s=n[t];if(s||(s={},n[t]=s),s.hasOwnProperty(String(e)))o=s[e];else{const n=p.PeFactory.prototype.factoryByType(t,e);p.compare(n,p.NULL)||(o=n,s[e]=o)}return o=r(o),o}t.initialize=function(){p.PeFactory.prototype.initialize(null)},t.coordsys=function(t){return o(g.PE_TYPE_COORDSYS,t)},t.factoryByType=o,t.fromString=function(t,n){let o=null,s=e[t];if(s||(s={},e[t]=s),s.hasOwnProperty(n))o=s[n];else{const e=p.PeFactory.prototype.fromString(t,n);p.compare(e,p.NULL)||(o=e,s[n]=o)}return o=r(o),o},t.geogcs=function(t){return o(g.PE_TYPE_GEOGCS,t)},t.geogtran=function(t){return o(g.PE_TYPE_GEOGTRAN,t)},t.getCode=function(t){return p.PeFactory.prototype.getCode(t)},t.projcs=function(t){return o(g.PE_TYPE_PROJCS,t)},t.unit=function(t){return o(g.PE_TYPE_UNIT,t)}}(T||(T={}));let y=null;var S,O,R,N,A,w,I,G,D;function v(t){function n(t,n,e){t[n]=e(t[n])}p=t,g.init(),S.init(),A.init(),I.init(),G.init(),y=class extends p.PeGCSExtent{destroy(){p.destroy(this)}};const e=[p.PeDatum,p.PeGeogcs,p.PeGeogtran,p.PeObject,p.PeParameter,p.PePrimem,p.PeProjcs,p.PeSpheroid,p.PeUnit];for(const t of e)n(t.prototype,"getName",(t=>function(){return t.call(this,new Array(g.PE_NAME_MAX))}));for(const t of[p.PeGeogtran,p.PeProjcs])n(t.prototype,"getParameters",(t=>function(){const n=new Array(g.PE_PARM_MAX);let e=t.call(this);for(let t=0;t<n.length;t++){const r=p.getValue(e,"*");n[t]=r?p.wrapPointer(r,p.PeParameter):null,e+=Int32Array.BYTES_PER_ELEMENT}return n}));n(p.PeHorizon.prototype,"getCoord",(t=>function(){const n=this.getSize();if(!n)return null;const e=[];return b(e,n,t.call(this)),e})),n(p.PeGTlistExtendedEntry.prototype,"getEntries",(t=>{const n=p._pe_getPeGTlistExtendedGTsSize();return function(){let e=null;const r=t.call(this);if(!p.compare(r,p.NULL)){e=[r];const t=this.getSteps();if(t>1){const o=p.getPointer(r);for(let r=1;r<t;r++)e.push(p.wrapPointer(o+n*r,p.PeGTlistExtendedGTs))}}return e}}));const r=p._pe_getPeHorizonSize(),o=t=>function(){let n=this._cache;if(n||(n=new Map,this._cache=n),n.has(t))return n.get(t);let e=null;const o=t.call(this);if(!p.compare(o,p.NULL)){e=[o];const t=o.getNump();if(t>1){const n=p.getPointer(o);for(let o=1;o<t;o++)e.push(p.wrapPointer(n+r*o,p.PeHorizon))}}return n.set(t,e),e};n(p.PeProjcs.prototype,"horizonGcsGenerate",o),n(p.PeProjcs.prototype,"horizonPcsGenerate",o),p.PeObject.prototype.toString=function(t=g.PE_STR_OPTS_NONE){p.ensureCache.prepare();const n=p.getPointer(this),e=p.ensureInt8(new Array(g.PE_BUFFER_MAX));return p.UTF8ToString(p._pe_object_to_string_ext(n,t,e))}}function k(t){if(!t)return;const n=p.getClass(t);if(!n)return;const e=p.getCache(n);if(!e)return;const r=p.getPointer(t);r&&delete e[r]}function C(t,n){const e=[],r=new Array(n);for(let n=0;n<t;n++)e.push(p.ensureInt8(r));return e}function x(t){let n;return Array.isArray(t[0])?(n=[],t.forEach((t=>{n.push(t[0],t[1])}))):n=t,n}function b(t,n,e,r=!1){if(r)for(let r=0;r<2*n;r++)t[r]=p.getValue(e+r*Float64Array.BYTES_PER_ELEMENT,"double");else{const r=0===t.length;for(let o=0;o<n;o++)r&&(t[o]=new Array(2)),t[o][0]=p.getValue(e,"double"),t[o][1]=p.getValue(e+Float64Array.BYTES_PER_ELEMENT,"double"),e+=2*Float64Array.BYTES_PER_ELEMENT}}!function(t){let n;t.init=function(){t.PE_GTLIST_OPTS_COMMON=p.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,n=p._pe_getPeGTlistExtendedEntrySize()},t.getGTlist=function(t,e,r,o,s,i){let u=null;const a=new p.PeInteger(i);try{const c=p.PeGTlistExtended.prototype.getGTlist(t,e,r,o,s,a);if((i=a.val)&&(u=[c],i>1)){const t=p.getPointer(c);for(let e=1;e<i;e++)u.push(p.wrapPointer(t+n*e,p.PeGTlistExtendedEntry))}}finally{p.destroy(a)}return u}}(S||(S={})),function(t){t.destroy=function(t){if(t&&t.length){for(const n of t)k(n),n.getEntries().forEach((t=>{k(t);const n=t.getGeogtran();k(n),n.getParameters().forEach(k),[n.getGeogcs1(),n.getGeogcs2()].forEach((t=>{k(t);const n=t.getDatum();k(n),k(n.getSpheroid()),k(t.getPrimem()),k(t.getUnit())}))}));p.PeGTlistExtendedEntry.prototype.Delete(t[0])}}}(O||(O={})),function(t){t.geogToGeog=function(t,n,e,r,o){p.ensureCache.prepare();const s=x(e),i=e===s,u=p.ensureFloat64(s);let a=0;r&&(a=p.ensureFloat64(r));const c=p._pe_geog_to_geog(p.getPointer(t),n,u,a,o);return c&&b(e,n,u,i),c}}(R||(R={})),function(t){const n=(t,n,e,r,o,s)=>{let i,u;switch(p.ensureCache.prepare(),t){case"dd":i=p._pe_geog_to_dd,u=g.PE_DD_MAX;break;case"ddm":i=p._pe_geog_to_ddm,u=g.PE_DDM_MAX;break;case"dms":i=p._pe_geog_to_dms,u=g.PE_DMS_MAX}let a=0;n&&(a=p.getPointer(n));const c=x(r),l=p.ensureFloat64(c),_=C(e,u),f=i(a,e,l,o,p.ensureInt32(_));if(f)for(let t=0;t<e;t++)s[t]=p.UTF8ToString(_[t]);return f},e=(t,n,e,r,o)=>{let s;switch(p.ensureCache.prepare(),t){case"dd":s=p._pe_dd_to_geog;break;case"ddm":s=p._pe_ddm_to_geog;break;case"dms":s=p._pe_dms_to_geog}let i=0;n&&(i=p.getPointer(n));const u=r.map((t=>p.ensureString(t))),a=p.ensureInt32(u),c=p.ensureFloat64(new Array(2*e)),l=s(i,e,a,c);return l&&b(o,e,c),l};t.geog_to_dms=function(t,e,r,o,s){return n("dms",t,e,r,o,s)},t.dms_to_geog=function(t,n,r,o){return e("dms",t,n,r,o)},t.geog_to_ddm=function(t,e,r,o,s){return n("ddm",t,e,r,o,s)},t.ddm_to_geog=function(t,n,r,o){return e("ddm",t,n,r,o)},t.geog_to_dd=function(t,e,r,o,s){return n("dd",t,e,r,o,s)},t.dd_to_geog=function(t,n,r,o){return e("dd",t,n,r,o)}}(N||(N={})),function(t){t.init=function(){t.PE_MGRS_STYLE_NEW=p.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,t.PE_MGRS_STYLE_OLD=p.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,t.PE_MGRS_STYLE_AUTO=p.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,t.PE_MGRS_180_ZONE_1_PLUS=p.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,t.PE_MGRS_ADD_SPACES=p.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES},t.geog_to_mgrs_extended=function(t,n,e,r,o,s,i){p.ensureCache.prepare();let u=0;t&&(u=p.getPointer(t));const a=x(e),c=p.ensureFloat64(a),l=C(n,g.PE_MGRS_MAX),_=p.ensureInt32(l),f=p._pe_geog_to_mgrs_extended(u,n,c,r,o,s,_);if(f)for(let t=0;t<n;t++)i[t]=p.UTF8ToString(l[t]);return f},t.mgrs_to_geog_extended=function(t,n,e,r,o){p.ensureCache.prepare();let s=0;t&&(s=p.getPointer(t));const i=e.map((t=>p.ensureString(t))),u=p.ensureInt32(i),a=p.ensureFloat64(new Array(2*n)),c=p._pe_mgrs_to_geog_extended(s,n,u,r,a);return c&&b(o,n,a),c}}(A||(A={})),function(t){t.geog_to_usng=function(t,n,e,r,o,s,i){p.ensureCache.prepare();let u=0;t&&(u=p.getPointer(t));const a=x(e),c=p.ensureFloat64(a),l=C(n,g.PE_MGRS_MAX),_=p.ensureInt32(l),f=p._pe_geog_to_usng(u,n,c,r,o,s,_);if(f)for(let t=0;t<n;t++)i[t]=p.UTF8ToString(l[t]);return f},t.usng_to_geog=function(t,n,e,r){p.ensureCache.prepare();let o=0;t&&(o=p.getPointer(t));const s=e.map((t=>p.ensureString(t))),i=p.ensureInt32(s),u=p.ensureFloat64(new Array(2*n)),a=p._pe_usng_to_geog(o,n,i,u);return a&&b(r,n,u),a}}(w||(w={})),function(t){t.init=function(){t.PE_UTM_OPTS_NONE=p.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,t.PE_UTM_OPTS_ADD_SPACES=p.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,t.PE_UTM_OPTS_NS=p.PeNotationUtm.prototype.PE_UTM_OPTS_NS},t.geog_to_utm=function(t,n,e,r,o){p.ensureCache.prepare();let s=0;t&&(s=p.getPointer(t));const i=x(e),u=p.ensureFloat64(i),a=C(n,g.PE_UTM_MAX),c=p.ensureInt32(a),l=p._pe_geog_to_utm(s,n,u,r,c);if(l)for(let t=0;t<n;t++)o[t]=p.UTF8ToString(a[t]);return l},t.utm_to_geog=function(t,n,e,r,o){p.ensureCache.prepare();let s=0;t&&(s=p.getPointer(t));const i=e.map((t=>p.ensureString(t))),u=p.ensureInt32(i),a=p.ensureFloat64(new Array(2*n)),c=p._pe_utm_to_geog(s,n,u,r,a);return c&&b(o,n,a),c}}(I||(I={})),function(t){const n=new Map;t.init=function(){t.PE_PCSINFO_OPTION_NONE=p.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,t.PE_PCSINFO_OPTION_DOMAIN=p.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,t.PE_POLE_OUTSIDE_BOUNDARY=p.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,t.PE_POLE_POINT=p.PePCSInfo.prototype.PE_POLE_POINT},t.generate=function(e,r=t.PE_PCSINFO_OPTION_DOMAIN){let o,s;return n.has(e)&&(s=n.get(e),s[r]&&(o=s[r])),o||(o=p.PePCSInfo.prototype.generate(e,r),s||(s=[],n.set(e,s)),s[r]=o),o}}(G||(G={})),function(t){t.version_string=function(){return p.PeVersion.prototype.version_string()}}(D||(D={}));const U=Object.freeze({__proto__:null,get _pe(){return p},isLoaded:d,isSupported:function(){return!!(0,P.Z)("esri-wasm")},load:M,get PeCSTransformations(){return E},get PeDefs(){return g},get PeFactory(){return T},get PeGCSExtent(){return y},get PeGTlistExtended(){return S},get PeGTlistExtendedEntry(){return O},get PeGTTransformations(){return R},get PeNotationDms(){return N},get PeNotationMgrs(){return A},get PeNotationUsng(){return w},get PeNotationUtm(){return I},get PePCSInfo(){return G},get PeVersion(){return D},_init:v});var F=e(13473),Y=e(17332),L=e(58901),j=e(24678),Z=(e(24470),e(68441));Math.PI;const q=Z.sv.radius,X=Z.sv.eccentricitySquared,z={a1:q*X,a2:q*X*q*X,a3:q*X*X/2,a4:q*X*q*X*2.5,a5:q*X+q*X*X/2,a6:1-X};Z.sv.radius,Z.sv.flattening,Z.Z1.radius,Z.Z1.flattening,Z.yr.radius,Z.yr.flattening,Z.yr.radius;let W=0;class H{constructor(t=null){this.uid=W++,t?(this._wkt=void 0!==t.wkt?t.wkt:null,this._wkid=void 0!==t.wkid?t.wkid:-1,this._isInverse=void 0!==t.isInverse&&!0===t.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}static fromGE(t){const n=new H;return n._wkt=t.wkt,n._wkid=t.wkid,n._isInverse=t.isInverse,n}get wkt(){return this._wkt}set wkt(t){this._wkt=t,this.uid=W++}get wkid(){return this._wkid}set wkid(t){this._wkid=t,this.uid=W++}get isInverse(){return this._isInverse}set isInverse(t){this._isInverse=t,this.uid=W++}getInverse(){const t=new H;return t._wkt=this.wkt,t._wkid=this._wkid,t._isInverse=!this.isInverse,t}}class B{constructor(t){if(this.steps=[],this._cached_projection={},this._chain="",this._gtlistentry=null,t&&t.steps)for(const n of t.steps)n instanceof H?this.steps.push(n):this.steps.push(new H({wkid:n.wkid,wkt:n.wkt,isInverse:n.isInverse}))}static cacheKey(t,n){return[void 0!==t.wkid&&null!==t.wkid?t.wkid.toString():"-1",void 0!==t.wkt&&null!==t.wkt?t.wkt.toString():"",void 0!==n.wkid&&null!==n.wkid?n.wkid.toString():"-1",void 0!==n.wkt&&null!==n.wkt?n.wkt.toString():""].join(",")}static fromGE(t){const n=new B;let e="";for(const r of t.steps){const t=H.fromGE(r);n.steps.push(t),e+=t.uid.toString()+","}return n._cached_projection={},n._gtlistentry=null,n._chain=e,n}getInverse(){const t=new B;t.steps=[];for(let n=this.steps.length-1;n>=0;n--){const e=this.steps[n];t.steps.push(e.getInverse())}return t}getGTListEntry(){let t="";for(const n of this.steps)t+=n.uid.toString()+",";return t!==this._chain&&(this._gtlistentry=null,this._cached_projection={},this._chain=t),this._gtlistentry}assignCachedGe(t,n,e){this._cached_projection[B.cacheKey(t,n)]=e}getCachedGeTransformation(t,n){let e="";for(const t of this.steps)e+=t.uid.toString()+",";e!==this._chain&&(this._gtlistentry=null,this._cached_projection={},this._chain=e);const r=this._cached_projection[B.cacheKey(t,n)];return void 0===r?null:r}}var V=e(8744);let K=null,J=null,Q=null,$={};function tt(){return!!K&&d()}function nt(t){return(0,s.Wi)(Q)&&(Q=Promise.all([M(),e.e(5837).then(e.bind(e,45837)).then((t=>t.g)),e.e(819).then(e.bind(e,80819))])),Q.then((([,n,{hydratedAdapter:e}])=>{(0,i.k_)(t),J=e,K=n.default,K._enableProjection(U)}))}function et(t,n,e=null){return Array.isArray(t)?0===t.length?[]:rt(J,t,t[0].spatialReference,n,e):rt(J,[t],t.spatialReference,n,e)[0]}function rt(t,n,e,r,o=null){if((0,s.Wi)(e)||(0,s.Wi)(r))return n;if(st(e,r,o))return n.map((t=>(0,s.Wg)(function(t,n,e){return t?"x"in t?function(t,n,e,r,o){zt[0]=t.x,zt[1]=t.y;const s=t.z;return zt[2]=void 0!==s?s:o,_t(zt,n,0,zt,r,0,1)?(e.x=zt[0],e.y=zt[1],e.spatialReference=r,void 0===s?(e.z=void 0,e.hasZ=!1):(e.z=zt[2],e.hasZ=!0),void 0===t.m?(e.m=void 0,e.hasM=!1):(e.m=t.m,e.hasM=!0),e):null}(t,n,new F.Z,e,0):"xmin"in t?function(t,n,e,r,o){const{xmin:s,ymin:i,xmax:u,ymax:a,hasZ:c,hasM:l}=t;return lt(s,i,c?t.zmin:o,n,zt,r)?(e.xmin=zt[0],e.ymin=zt[1],c&&(e.zmin=zt[2]),lt(u,a,c?t.zmax:o,n,zt,r)?(e.xmax=zt[0],e.ymax=zt[1],c&&(e.zmax=zt[2]),l&&(e.mmin=t.mmin,e.mmax=t.mmax),e.spatialReference=r,e):null):null}(t,n,new l.Z,e,0):"rings"in t?at(t,n,new Y.Z,e,0):"paths"in t?function(t,n,e,r,o){const{paths:s,hasZ:i,hasM:u}=t,a=[];return ft(s,i,u,n,a,r,o)?(e.paths=a,e.spatialReference=r,e.hasZ=i,e.hasM=u,e):null}(t,n,new L.Z,e,0):"points"in t?function(t,n,e,r,o){const{points:s,hasZ:i,hasM:u}=t,a=[],c=s.length,l=[];for(const t of s)l.push(t[0],t[1],i?t[2]:o);if(!_t(l,n,0,l,r,0,c))return null;for(let t=0;t<c;++t){const n=3*t,e=l[n],r=l[n+1];i&&u?a.push([e,r,l[n+2],s[t][3]]):i?a.push([e,r,l[n+2]]):u?a.push([e,r,s[t][2]]):a.push([e,r])}return e.points=a,e.spatialReference=r,e.hasZ=i,e.hasM=u,e}(t,n,new _.Z,e,0):null:null}(t,e,r))));if((0,s.Wi)(o)){const t=B.cacheKey(e,r);void 0!==$[t]?o=$[t]:(o=function(t,n,e=null){if((0,s.Wi)(K))throw new ot;if((0,s.Wi)(t)||(0,s.Wi)(n))return null;const r=K._getTransformation(J,t,n,e,null==e?void 0:e.spatialReference);return null!==r?B.fromGE(r):null}(e,r,null),(0,s.Wi)(o)&&(o=new B),$[t]=o)}if((0,s.Wi)(K))throw new ot;return K._project(t,n,e,r,o)}class ot extends r.Z{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function st(t,n,e){return!e&&(!!(0,V.fS)(t,n)||(0,V.JY)(t)&&(0,V.JY)(n)&&!!xt(t,n,Yt))}async function it(t,n,e,r){if(!tt())if(Array.isArray(t)){for(const{source:n,dest:e,geographicTransformation:o}of t)if(!st(n,e,o))return nt(r)}else if(!st(t,n,e))return nt(r)}function ut(t,n,e=n.spatialReference,r=0){return(0,s.pC)(e)&&(0,s.pC)(at(t,t.spatialReference,n,e,r))}function at(t,n,e,r,o){const{rings:s,hasZ:i,hasM:u}=t,a=[];return ft(s,i,u,n,a,r,o)?(e.rings=a,e.spatialReference=r,e.hasZ=i,e.hasM=u,e):null}function ct(t,n,e,r=0){zt[0]=t.x,zt[1]=t.y;const o=t.z;return zt[2]=void 0!==o?o:r,_t(zt,t.spatialReference,0,n,e,0,1)}function lt(t,n,e,r,o,s){return Zt[0]=t,Zt[1]=n,Zt[2]=e,_t(Zt,r,0,o,s,0,1)}function _t(t,n,e,r,o,i,u=1){const a=xt(n,o,Yt);if((0,s.Wi)(a))return!1;if(a===Mt){if(t===r&&e===i)return!0;const n=e+3*u;for(let o=e,s=i;o<n;o++,s++)r[s]=t[o];return!0}const c=e+3*u;for(let n=e,o=i;n<c;n+=3,o+=3)a(t,n,r,o);return!0}function ft(t,n,e,r,o,s,i=0){const u=new Array;for(const e of t)for(const t of e)u.push(t[0],t[1],n?t[2]:i);if(!_t(u,r,0,u,s,0,u.length/3))return!1;let a=0;o.length=0;for(const r of t){const t=new Array;for(const o of r)n&&e?t.push([u[a++],u[a++],u[a++],o[3]]):n?t.push([u[a++],u[a++],u[a++]]):e?(t.push([u[a++],u[a++],o[2]]),a++):(t.push([u[a++],u[a++]]),a++);o.push(t)}return!0}function Pt(t,n,e,r){if((0,s.Wi)(t)||(0,s.Wi)(r))return!1;const o=dt(t,Ut),i=dt(r,Ft);if(o===i&&!ht(i)&&(0!==o||(0,V.fS)(t,r)))return(0,a.i)(e),(0,a.t)(e,e,n),!0;if(ht(i)){const t=Ct[o][11],r=Ct[11][i];return!(0,s.Wi)(t)&&!(0,s.Wi)(r)&&(t(n,0,qt,0),r(qt,0,Xt,0),pt(Lt*qt[0],Lt*qt[1],e),e[12]=Xt[0],e[13]=Xt[1],e[14]=Xt[2],!0)}if(!(3!==i&&12!==i||2!==o&&1!==o&&3!==o)){const t=Ct[o][11],r=Ct[11][i];return!(0,s.Wi)(t)&&!(0,s.Wi)(r)&&(t(n,0,qt,0),r(qt,0,Xt,0),1===o?function(t,n,e){pt(t,n,e),(0,a.a)(e,e)}(Lt*qt[0],Lt*qt[1],e):(0,a.i)(e),e[12]=Xt[0],e[13]=Xt[1],e[14]=Xt[2],!0)}return!1}function ht(t){return 1===t||7===t||9===t}function pt(t,n,e){const r=Math.sin(t),o=Math.cos(t),s=Math.sin(n),i=Math.cos(n),u=e;return u[0]=-r,u[4]=-s*o,u[8]=i*o,u[12]=0,u[1]=o,u[5]=-s*r,u[9]=i*r,u[13]=0,u[2]=0,u[6]=i,u[10]=s,u[14]=0,u[3]=0,u[7]=0,u[11]=0,u[15]=1,u}function dt(t,n){return n.spatialReference===t?n.spatialReferenceId:(n.spatialReference=t,"metersPerUnit"in n&&(n.metersPerUnit=(0,u.c9)(t,1)),t.wkt===j.GG.wkt?n.spatialReferenceId=1:(0,V.oR)(t)?n.spatialReferenceId=2:(0,V.sS)(t)?n.spatialReferenceId=3:(0,V.QM)(t)?n.spatialReferenceId=12:t.wkt===j.wY.wkt?n.spatialReferenceId=4:4490===t.wkid?n.spatialReferenceId=5:t.wkt===j.HQ.wkt?n.spatialReferenceId=7:t.wkt===j.VY.wkt?n.spatialReferenceId=9:(0,V.BZ)(t)?n.spatialReferenceId=8:(0,V.V2)(t)?n.spatialReferenceId=10:n.spatialReferenceId=0)}function Mt(t,n,e,r){t!==e&&(e[r++]=t[n++],e[r++]=t[n++],e[r]=t[n])}function Et(t,n,e,r){e[r++]=jt*(t[n++]/Z.sv.radius),e[r++]=jt*(Math.PI/2-2*Math.atan(Math.exp(-t[n++]/Z.sv.radius))),e[r]=t[n]}function gt(t,n,e,r){!function(t,n,e,r,s){const i=.4999999*Math.PI,u=(0,o.uZ)(Lt*t[n+1],-i,i),a=Math.sin(u);e[r++]=Lt*t[n]*s.radius,e[r++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),e[r]=t[n+2]}(t,n,e,r,Z.sv)}const Tt=Z.sv.radius*Math.PI/180,mt=180/(Z.sv.radius*Math.PI);function yt(t,n,e,r){e[r]=t[n]*Tt,e[r+1]=t[n+1]*Tt,e[r+2]=t[n+2]}function St(t,n,e,r){e[r]=t[n]*mt,e[r+1]=t[n+1]*mt,e[r+2]=t[n+2]}function Ot(t,n,e,r,o){const s=o+t[n+2],i=Lt*t[n+1],u=Lt*t[n],a=Math.cos(i);e[r++]=Math.cos(u)*a*s,e[r++]=Math.sin(u)*a*s,e[r]=Math.sin(i)*s}function Rt(t,n,e,r){Ot(t,n,e,r,Z.Z1.radius)}function Nt(t,n,e,r){Ot(t,n,e,r,Z.yr.radius)}function At(t,n,e,r){Ot(t,n,e,r,Z.sv.radius)}function wt(t,n,e,r,s){const i=t[n],u=t[n+1],a=t[n+2],c=Math.sqrt(i*i+u*u+a*a),l=(0,o.Kt)(a/(0===c?1:c)),_=Math.atan2(u,i);e[r++]=jt*_,e[r++]=jt*l,e[r]=c-s}function It(t,n,e,r){wt(t,n,e,r,Z.Z1.radius)}function Gt(t,n,e,r){wt(t,n,e,r,Z.yr.radius)}function Dt(t,n,e,r){wt(t,n,e,r,Z.sv.radius)}function vt(t,n,e,r){!function(t,n,e,r,o){const s=Lt*t[n],i=Lt*t[n+1],u=t[n+2],a=Math.sin(i),c=Math.cos(i),l=o.radius/Math.sqrt(1-o.eccentricitySquared*a*a);e[r++]=(l+u)*c*Math.cos(s),e[r++]=(l+u)*c*Math.sin(s),e[r++]=(l*(1-o.eccentricitySquared)+u)*a}(t,n,e,r,Z.sv)}function kt(t,n,e,r){const o=z,s=t[n],i=t[n+1],u=t[n+2];let a,c,l,_,f,P,h,p,d,M,E,g,T,m,y,S,O,R,N,A,w;a=Math.abs(u),c=s*s+i*i,l=Math.sqrt(c),_=c+u*u,f=Math.sqrt(_),A=Math.atan2(i,s),P=u*u/_,h=c/_,m=o.a2/f,y=o.a3-o.a4/f,h>.3?(p=a/f*(1+h*(o.a1+m+P*y)/f),N=Math.asin(p),M=p*p,d=Math.sqrt(1-M)):(d=l/f*(1-P*(o.a5-m-h*y)/f),N=Math.acos(d),M=1-d*d,p=Math.sqrt(M)),E=1-Z.sv.eccentricitySquared*M,g=Z.sv.radius/Math.sqrt(E),T=o.a6*g,m=l-g*d,y=a-T*p,O=d*m+p*y,S=d*y-p*m,R=S/(T/E+O),N+=R,w=O+S*R/2,u<0&&(N=-N),e[r++]=jt*A,e[r++]=jt*N,e[r]=w}const Ct={2:{5:null,8:null,10:null,11:Mt,6:Mt,1:At,7:null,9:null,0:null,3:gt,12:yt,2:Mt,4:vt},5:{5:Mt,8:null,10:null,11:Mt,6:Mt,1:At,7:null,9:null,0:null,3:null,12:yt,2:null,4:vt},8:{5:null,8:Mt,10:null,11:Mt,6:null,1:null,7:Nt,9:null,0:null,3:null,12:null,2:null,4:null},10:{5:null,8:null,10:Mt,11:Mt,6:null,1:null,7:null,9:Rt,0:null,3:null,12:null,2:null,4:null},3:{5:null,8:null,10:null,11:Et,6:Et,1:function(t,n,e,r){Et(t,n,e,r),At(e,r,e,r)},7:null,9:null,0:null,3:Mt,12:function(t,n,e,r){Et(t,n,e,r),yt(e,r,e,r)},2:Et,4:function(t,n,e,r){Et(t,n,e,r),vt(e,r,e,r)}},4:{5:kt,8:null,10:null,11:kt,6:kt,1:function(t,n,e,r){kt(t,n,e,r),At(e,r,e,r)},7:null,9:null,0:null,3:function(t,n,e,r){kt(t,n,e,r),gt(e,r,e,r)},12:function(t,n,e,r){kt(t,n,e,r),yt(e,r,e,r)},2:kt,4:Mt},1:{5:Dt,8:null,10:null,11:Dt,6:Dt,1:Mt,7:null,9:null,0:null,3:function(t,n,e,r){Dt(t,n,e,r),gt(e,r,e,r)},12:function(t,n,e,r){Dt(t,n,e,r),yt(e,r,e,r)},2:Dt,4:function(t,n,e,r){Dt(t,n,e,r),vt(e,r,e,r)}},7:{5:null,8:Gt,10:null,11:Gt,6:null,1:null,7:Mt,9:null,0:null,3:null,12:null,2:null,4:null},9:{5:null,8:null,10:It,11:It,6:null,1:null,7:null,9:Mt,0:null,3:null,12:null,2:null,4:null},0:{5:null,8:null,10:null,11:null,6:null,1:null,7:null,9:null,0:Mt,3:null,12:null,2:null,4:null},11:{5:Mt,8:Mt,10:Mt,11:Mt,6:Mt,1:At,7:Nt,9:Rt,0:null,3:gt,12:yt,2:Mt,4:vt},6:{5:null,8:null,10:null,11:Mt,6:Mt,1:At,7:null,9:null,0:null,3:null,12:yt,2:Mt,4:vt},12:{5:St,8:null,10:null,11:St,6:St,1:function(t,n,e,r){St(t,n,e,r),At(e,r,e,r)},7:null,9:null,0:null,3:function(t,n,e,r){St(t,n,e,r),gt(e,r,e,r)},12:Mt,2:St,4:function(t,n,e,r){St(t,n,e,r),vt(e,r,e,r)}}};function xt(t,n,e=bt()){return(0,s.Wi)(t)||(0,s.Wi)(n)?null:function(t,n,e){if((0,s.Wi)(t)||(0,s.Wi)(n)||e.source.spatialReference===t&&e.dest.spatialReference===n)return e;const r=dt(t,e.source),o=dt(n,e.dest);return 0===r&&0===o?(0,V.fS)(t,n)?e.projector=Mt:e.projector=null:e.projector=Ct[r][o],e}(t,n,e).projector}function bt(){return{source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:Mt}}const Ut={spatialReference:null,spatialReferenceId:0},Ft={spatialReference:null,spatialReferenceId:0},Yt=bt(),Lt=(bt(),(0,o.Vl)(1)),jt=(0,o.BV)(1),Zt=(0,c.c)(),qt=(0,c.c)(),Xt=(0,c.c)(),zt=(0,c.c)();(0,c.c)()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[991],{84552:(e,t,i)=>{i.d(t,{Z:()=>d});var s,r=i(43697),n=i(10736),a=i(35463),o=i(5600),l=(i(67676),i(80442),i(75215),i(52011)),u=i(78981);let h=s=class extends n.wq{constructor(e){super(e),this.value=0,this.unit="milliseconds"}toMilliseconds(){return(0,a.rJ)(this.value,this.unit,"milliseconds")}clone(){return new s({value:this.value,unit:this.unit})}};(0,r._)([(0,o.Cb)({type:Number,json:{write:!0},nonNullable:!0})],h.prototype,"value",void 0),(0,r._)([(0,o.Cb)({type:u.v.apiValues,json:{type:u.v.jsonValues,read:u.v.read,write:u.v.write},nonNullable:!0})],h.prototype,"unit",void 0),h=s=(0,r._)([(0,l.j)("esri.TimeInterval")],h);const d=h},3920:(e,t,i)=>{i.d(t,{r:()=>h,p:()=>u});var s=i(43697),r=i(15923),n=i(61247),a=i(5600),o=i(52011),l=i(89749);const u=e=>{let t=class extends e{destroy(){this.destroyed||(this.handles.destroy(),this.updatingHandles.destroy())}get handles(){return this._get("handles")||new n.Z}get updatingHandles(){return this._get("updatingHandles")||new l.t}};return(0,s._)([(0,a.Cb)({readOnly:!0})],t.prototype,"handles",null),(0,s._)([(0,a.Cb)({readOnly:!0})],t.prototype,"updatingHandles",null),t=(0,s._)([(0,o.j)("esri.core.HandleOwner")],t),t};let h=class extends(u(r.Z)){};h=(0,s._)([(0,o.j)("esri.core.HandleOwner")],h)},61247:(e,t,i)=>{i.d(t,{Z:()=>h});var s=i(43697),r=i(15923),n=i(81049),a=i(70586),o=i(5600),l=i(52011);let u=class extends r.Z{constructor(e){super(e),this._groups=new Map}destroy(){this.removeAll()}get size(){let e=0;return this._groups.forEach((t=>{e+=t.length})),e}add(e,t){if(!this._isHandle(e)&&!Array.isArray(e)&&!n.Z.isCollection(e))return this;const i=this._getOrCreateGroup(t);return Array.isArray(e)||n.Z.isCollection(e)?e.forEach((e=>this._isHandle(e)&&i.push(e))):i.push(e),this.notifyChange("size"),this}forEach(e,t){if("function"==typeof e)this._groups.forEach((t=>t.forEach(e)));else{const i=this._getGroup(e);i&&t&&i.forEach(t)}}has(e){return this._groups.has(this._ensureGroupKey(e))}remove(e){if(Array.isArray(e)||n.Z.isCollection(e))return e.forEach(this.remove,this),this;if(!this.has(e))return this;const t=this._getGroup(e);for(let e=0;e<t.length;e++)t[e].remove();return this._deleteGroup(e),this.notifyChange("size"),this}removeAll(){return this._groups.forEach((e=>{for(let t=0;t<e.length;t++)e[t].remove()})),this._groups.clear(),this.notifyChange("size"),this}_isHandle(e){return e&&!!e.remove}_getOrCreateGroup(e){if(this.has(e))return this._getGroup(e);const t=[];return this._groups.set(this._ensureGroupKey(e),t),t}_getGroup(e){return(0,a.j0)(this._groups.get(this._ensureGroupKey(e)))}_deleteGroup(e){return this._groups.delete(this._ensureGroupKey(e))}_ensureGroupKey(e){return e||"_default_"}};(0,s._)([(0,o.Cb)({readOnly:!0})],u.prototype,"size",null),u=(0,s._)([(0,l.j)("esri.core.Handles")],u);const h=u},66643:(e,t,i)=>{i.d(t,{Ed:()=>n,UI:()=>a,q6:()=>o,mt:()=>l});var s=i(70586),r=i(95330);function n(e,t,i){return(0,r.as)(e.map(((e,s)=>t.apply(i,[e,s]))))}function a(e,t,i){return(0,r.as)(e.map(((e,s)=>t.apply(i,[e,s])))).then((e=>e.map((e=>e.value))))}function o(e){return(0,s.Wi)(e)?(0,r.DB)():e.then((e=>({ok:!0,value:e}))).catch((e=>({ok:!1,error:e})))}function l(e){return e.then((e=>({ok:!0,value:e}))).catch((e=>((0,r.r9)(e),{ok:!1,error:e})))}},24133:(e,t,i)=>{i.d(t,{QB:()=>o});var s=i(67676),r=i(70586),n=i(44553),a=i(88764);class o{constructor(e=9,t){this.compareMinX=d,this.compareMinY=c,this.toBBox=function(e){return e},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()}destroy(){this.clear(),b.prune(),x.prune(),I.prune(),w.prune()}all(e){this._all(this.data,e)}search(e,t){let i=this.data;const s=this.toBBox;if(_(e,i))for(b.clear();i;){for(let r=0,n=i.children.length;r<n;r++){const n=i.children[r],a=i.leaf?s(n):n;_(e,a)&&(i.leaf?t(n):m(e,a)?this._all(n,t):b.push(n))}i=b.pop()}}collides(e){let t=this.data;const i=this.toBBox;if(!_(e,t))return!1;for(b.clear();t;){for(let s=0,r=t.children.length;s<r;s++){const r=t.children[s],n=t.leaf?i(r):r;if(_(e,n)){if(t.leaf||m(e,n))return!0;b.push(r)}}t=b.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,i=e.length;t<i;t++)this.insert(e[t]);return this}let t=this._build(e.slice(0,e.length),0,e.length-1,0);if(this.data.children.length)if(this.data.height===t.height)this._splitRoot(this.data,t);else{if(this.data.height<t.height){const e=this.data;this.data=t,t=e}this._insert(t,this.data.height-t.height-1,!0)}else this.data=t;return this}insert(e){return e&&this._insert(e,this.data.height-1),this}clear(){return this.data=new F([]),this}remove(e){if(!e)return this;let t,i=this.data,n=null,a=0,o=!1;const l=this.toBBox(e);for(I.clear(),w.clear();i||I.length>0;){var u;if(i||(i=(0,r.j0)(I.pop()),n=I.data[I.length-1],a=null!=(u=w.pop())?u:0,o=!0),i.leaf&&(t=(0,s.cq)(i.children,e,i.children.length,i.indexHint),-1!==t))return i.children.splice(t,1),I.push(i),this._condense(I),this;o||i.leaf||!m(i,l)?n?(a++,i=n.children[a],o=!1):i=null:(I.push(i),w.push(a),a=0,n=i,i=i.children[0])}return this}toJSON(){return this.data}fromJSON(e){return this.data=e,this}_all(e,t){let i=e;for(x.clear();i;){var s;if(!0===i.leaf)for(const e of i.children)t(e);else x.pushArray(i.children);i=null!=(s=x.pop())?s:null}}_build(e,t,i,s){const r=i-t+1;let n=this._maxEntries;if(r<=n){const s=new F(e.slice(t,i+1));return l(s,this.toBBox),s}s||(s=Math.ceil(Math.log(r)/Math.log(n)),n=Math.ceil(r/n**(s-1)));const a=new C([]);a.height=s;const o=Math.ceil(r/n),u=o*Math.ceil(Math.sqrt(n));v(e,t,i,u,this.compareMinX);for(let r=t;r<=i;r+=u){const t=Math.min(r+u-1,i);v(e,r,t,o,this.compareMinY);for(let i=r;i<=t;i+=o){const r=Math.min(i+o-1,t);a.children.push(this._build(e,i,r,s-1))}}return l(a,this.toBBox),a}_chooseSubtree(e,t,i,s){for(;s.push(t),!0!==t.leaf&&s.length-1!==i;){let i,s=1/0,r=1/0;for(let n=0,a=t.children.length;n<a;n++){const a=t.children[n],o=p(a),l=g(e,a)-o;l<r?(r=l,s=o<s?o:s,i=a):l===r&&o<s&&(s=o,i=a)}t=i||t.children[0]}return t}_insert(e,t,i){const s=this.toBBox,r=i?e:s(e);I.clear();const n=this._chooseSubtree(r,this.data,t,I);for(n.children.push(e),h(n,r);t>=0&&I.data[t].children.length>this._maxEntries;)this._split(I,t),t--;this._adjustParentBBoxes(r,I,t)}_split(e,t){const i=e.data[t],s=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,s);const n=this._chooseSplitIndex(i,r,s);if(!n)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const a=i.children.splice(n,i.children.length-n),o=i.leaf?new F(a):new C(a);o.height=i.height,l(i,this.toBBox),l(o,this.toBBox),t?e.data[t-1].children.push(o):this._splitRoot(i,o)}_splitRoot(e,t){this.data=new C([e,t]),this.data.height=e.height+1,l(this.data,this.toBBox)}_chooseSplitIndex(e,t,i){let s,r,n;s=r=1/0;for(let a=t;a<=i-t;a++){const t=u(e,0,a,this.toBBox),o=u(e,a,i,this.toBBox),l=y(t,o),h=p(t)+p(o);l<s?(s=l,n=a,r=h<r?h:r):l===s&&h<r&&(r=h,n=a)}return n}_chooseSplitAxis(e,t,i){const s=e.leaf?this.compareMinX:d,r=e.leaf?this.compareMinY:c;this._allDistMargin(e,t,i,s)<this._allDistMargin(e,t,i,r)&&e.children.sort(s)}_allDistMargin(e,t,i,s){e.children.sort(s);const r=this.toBBox,n=u(e,0,t,r),a=u(e,i-t,i,r);let o=f(n)+f(a);for(let s=t;s<i-t;s++){const t=e.children[s];h(n,e.leaf?r(t):t),o+=f(n)}for(let s=i-t-1;s>=t;s--){const t=e.children[s];h(a,e.leaf?r(t):t),o+=f(a)}return o}_adjustParentBBoxes(e,t,i){for(let s=i;s>=0;s--)h(t.data[s],e)}_condense(e){for(let t=e.length-1;t>=0;t--){const i=e.data[t];if(0===i.children.length)if(t>0){const r=e.data[t-1],n=r.children;n.splice((0,s.cq)(n,i,n.length,r.indexHint),1)}else this.clear();else l(i,this.toBBox)}}_initFormat(e){const 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]+"};")}}function l(e,t){u(e,0,e.children.length,t,e)}function u(e,t,i,s,r){r||(r=new F([])),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let n,a=t;a<i;a++)n=e.children[a],h(r,e.leaf?s(n):n);return r}function h(e,t){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)}function d(e,t){return e.minX-t.minX}function c(e,t){return e.minY-t.minY}function p(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function g(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 y(e,t){const i=Math.max(e.minX,t.minX),s=Math.max(e.minY,t.minY),r=Math.min(e.maxX,t.maxX),n=Math.min(e.maxY,t.maxY);return Math.max(0,r-i)*Math.max(0,n-s)}function m(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function _(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function v(e,t,i,s,n){const o=[t,i];for(;o.length;){const t=(0,r.j0)(o.pop()),i=(0,r.j0)(o.pop());if(t-i<=s)continue;const l=i+Math.ceil((t-i)/s/2)*s;(0,a.q)(e,l,i,t,n),o.push(i,l,l,t)}}const b=new n.Z,x=new n.Z,I=new n.Z,w=new n.Z({deallocator:void 0});class S extends class{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}{constructor(){super(...arguments),this.height=1,this.indexHint=new s.SO}}class F extends S{constructor(e){super(),this.children=e,this.leaf=!0}}class C extends S{constructor(e){super(),this.children=e,this.leaf=!1}}},45091:(e,t,i)=>{i.d(t,{Z:()=>l});var s=i(80442),r=i(71143);const n=4294967296,a=(0,s.Z)("esri-text-decoder")?new TextDecoder("utf-8"):null,o=(0,s.Z)("safari")||(0,s.Z)("ios")?6:(0,s.Z)("ff")?12:32;class l{constructor(e,t,i=0,s=(e?e.byteLength:0)){this._tag=0,this._dataType=99,this.init(e,t,i,s)}init(e,t,i,s){this._data=e,this._dataView=t,this._pos=i,this._end=s}clone(){return new l(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;return e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128?e:(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128?e:void 0))))}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)|0}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,i=e.getUint32(t,!0)+e.getUint32(t+4,!0)*n;return this._skip(8),i}getSFixed64(){const e=this._dataView,t=this._pos,i=e.getUint32(t,!0)+e.getInt32(t+4,!0)*n;return this._skip(8),i}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,i=this._toString(this._data,t,t+e);return this._skip(e),i}getBytes(){const e=this._getLength(),t=this._pos,i=this._toBytes(this._data,t,t+e);return this._skip(e),i}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,i,s){const r=this.getMessage(),n=e(r,t,i,s);return r.release(),n}processMessage(e){const t=this.getMessage(),i=e(t);return t.release(),i}getMessage(){const e=this._getLength(),t=l.pool.acquire();return t.init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){l.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t,i=this._pos,s=0;if(this._end-i>=10)do{if(t=e[i++],s|=127&t,0==(128&t))break;if(t=e[i++],s|=(127&t)<<7,0==(128&t))break;if(t=e[i++],s|=(127&t)<<14,0==(128&t))break;if(t=e[i++],s|=(127&t)<<21,0==(128&t))break;if(t=e[i++],s+=268435456*(127&t),0==(128&t))break;if(t=e[i++],s+=34359738368*(127&t),0==(128&t))break;if(t=e[i++],s+=4398046511104*(127&t),0==(128&t))break;if(t=e[i++],s+=562949953421312*(127&t),0==(128&t))break;if(t=e[i++],s+=72057594037927940*(127&t),0==(128&t))break;if(t=e[i++],s+=0x8000000000000000*(127&t),0==(128&t))break;throw new Error("Varint too long!")}while(0);else{let r=1;for(;i!==this._end&&(t=e[i],0!=(128&t));)++i,s+=(127&t)*r,r*=128;if(i===this._end)throw new Error("Varint overrun!");++i,s+=t*r}return this._pos=i,s}_decodeSVarint(){const e=this._decodeVarint();return e%2?-(e+1)/2:e/2}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,i){if((i=Math.min(this._end,i))-t>o&&a){const s=e.subarray(t,i);return a.decode(s)}let s="",r="";for(let n=t;n<i;++n){const t=e[n];128&t?r+="%"+t.toString(16):(s+=decodeURIComponent(r)+String.fromCharCode(t),r="")}return r.length&&(s+=decodeURIComponent(r)),s}_toBytes(e,t,i){return i=Math.min(this._end,i),new Uint8Array(e.buffer,t,i-t)}}l.pool=new r.Z(l,null,(e=>{e._data=null,e._dataView=null}))},17445:(e,t,i)=>{i.d(t,{Ym:()=>n}),i(91460);var s=i(70586),r=i(26258);function n(e,t,i={}){return function(e,t,i={},n){let a=null;const o=i.once?(e,i)=>{n(e)&&((0,s.hw)(a),t(e,i))}:(e,i)=>{n(e)&&t(e,i)};if(a=(0,r.aQ)(e,o,i.sync,i.equals),i.initial){const t=e();o(t,t)}return a}(e,t,i,a)}function a(e){return!0}i(87538)},43050:(e,t,i)=>{i.d(t,{S1:()=>a,on:()=>d,OY:()=>h,cm:()=>l,N1:()=>o,LR:()=>u,tH:()=>c});var s=i(91460),r=(i(22974),i(95330));const n=/\?(\.|$)/g;function a(e,t,i,s){const r=Array.isArray(t)?t:t.indexOf(",")>-1?t.split(","):[t],a=function(e,t,i,s){return e.watch(t,i,s)}(e,t,i,s);for(const t of r){const s=t.trim().replace(n,"$1"),r=e.get(s);i.call(e,r,r,s,e)}return a}function o(e,t,i,s){return c(e,t,p,i,s)}function l(e,t,i,s){return c(e,t,f,i,s)}function u(e,t,i,s){return c(e,t,g,i,s)}function h(e,t,i,s){return c(e,t,y,i,s)}function d(e,t,i,r,n,o,l){const u={};function h(t){const s=u[t];s&&(o&&o(s.target,t,e,i),s.handle.remove(),delete u[t])}const d=a(e,t,((t,a,o)=>{h(o),(0,s.vT)(t)&&(u[o]={handle:(0,s.on)(t,i,r),target:t},n&&n(t,o,e,i))}),l);return{remove(){d.remove();for(const e in u)h(e)}}}function c(e,t,i,s,n){const a="function"==typeof s?s:null,o="object"==typeof s?s:null;"boolean"==typeof s&&(n=s);let l,u=!1;function h(){l&&(l.remove(),l=null)}const d=(0,r.dD)();(0,r.fu)(o,(()=>{h(),d.reject((0,r.zE)())}));const c={then:d.promise.then.bind(d.promise),catch:d.promise.catch.bind(d.promise),remove:h};return Object.freeze(c),l=function(e,t,i,s,r){const n=e.watch(t,((t,r,n,a)=>{i&&!i(t)||null==s||s.call(e,t,r,n,a)}),r);if(Array.isArray(t))for(const r of t){const n=e.get(r);i&&i(n)&&(null==s||s.call(e,n,n,t,e))}else{const r=e.get(t);i&&i(r)&&(null==s||s.call(e,r,r,t,e))}return n}(e,t,i,((t,i,s,r)=>{u=!0,h(),a&&a.call(e,t,i,s,r),d.resolve({value:t,oldValue:i,propertyName:s,target:r})}),n),u&&h(),c}function p(e){return!!e}function f(e){return!e}function g(e){return!0===e}function y(e){return!1===e}},37549:(e,t,i)=>{i.d(t,{H:()=>a});var s=i(80442),r=i(24133);const n={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new r.QB(9,(0,s.Z)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach(((i,s)=>{e[t++]=s})),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(this._boundsToLoad.filter((e=>this._idByBounds.has(e)))),this._boundsToLoad.length=0)}}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,i){n.minX=t[0],n.minY=t[1],n.maxX=t[2],n.maxY=t[3],e.search(n,i)}(this._index,e,(e=>t(this._idByBounds.get(e))))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},57191:(e,t,i)=>{i.d(t,{Z:()=>g});var s=i(20102),r=i(32448),n=i(92604),a=i(70586),o=i(60437),l=i(24470),u=i(98732),h=i(37549),d=i(29730),c=i(70272),p=i(5428);const f={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t)=>new c.ZP(t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>(e.centroid||(e.centroid=(0,d.Y)(new p.Z,e.geometry,t.hasZ,t.hasM)),e.centroid)};class g{constructor(e){this.geometryInfo=e,this._boundsStore=new h.H,this._featuresById=new Map,this._markedIds=new Set,this.events=new r.Z,this.featureAdapter=f}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){if(!this.numFeatures)return null;const e=(0,l.Ue)(l.Gv);return this._featuresById.forEach((t=>{const i=this._boundsStore.get(t.objectId);i&&(e[0]=Math.min(i[0],e[0]),e[1]=Math.min(i[1],e[1]),e[2]=Math.max(i[2],e[2]),e[3]=Math.max(i[3],e[3]))})),e}get storeStatistics(){let e=0;return this._featuresById.forEach((t=>{(0,a.pC)(t.geometry)&&t.geometry.coords&&(e+=t.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t,i){for(const s of e){const e=this._boundsStore.get(s.objectId);e&&t((0,o.JR)(i,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach((t=>e(t)))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,(e=>{t(this._featuresById.get(e))}))}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let e=!1;this._featuresById.forEach(((t,i)=>{this._markedIds.has(i)||(e=!0,this._remove(t))})),this._markedIds.clear(),e&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void n.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new s.Z("featurestore:invalid-feature","feature id is missing",{feature:e}));const i=this._featuresById.get(t);let r;if(this._markedIds.add(t),i?(e.displayId=i.displayId,r=this._boundsStore.get(t),this._boundsStore.delete(t)):(0,a.pC)(this.onFeatureAdd)&&this.onFeatureAdd(e),(0,a.Wi)(e.geometry)||!e.geometry.coords||!e.geometry.coords.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);r=(0,u.$)((0,a.pC)(r)?r:(0,l.Ue)(),e.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),(0,a.pC)(r)&&this._boundsStore.set(t,r),this._featuresById.set(t,e)}_remove(e){return(0,a.pC)(this.onFeatureRemove)&&this.onFeatureRemove(e),this._markedIds.delete(e.objectId),this._boundsStore.delete(e.objectId),this._featuresById.delete(e.objectId),e}}},1231:(e,t,i)=>{i.d(t,{Z:()=>y});var s,r=i(43697),n=i(35454),a=i(10736),o=i(5600),l=(i(67676),i(80442),i(75215)),u=i(36030),h=i(71715),d=i(52011),c=i(72729),p=i(86719);const f=new n.Xn({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let g=s=class extends a.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=-1,this.name=null,this.nullable=!0,this.type=null,this.valueType=null}readDescription(e,{description:t}){let i;try{i=JSON.parse(t)}catch(e){}return i?i.value:null}readValueType(e,{description:t}){let i;try{i=JSON.parse(t)}catch(e){}return i?f.fromJSON(i.fieldValueType):null}clone(){return new s({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType})}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],g.prototype,"alias",void 0),(0,r._)([(0,o.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],g.prototype,"defaultValue",void 0),(0,r._)([(0,o.Cb)()],g.prototype,"description",void 0),(0,r._)([(0,h.r)("description")],g.prototype,"readDescription",null),(0,r._)([(0,o.Cb)({types:c.V5,json:{read:{reader:c.im},write:!0}})],g.prototype,"domain",void 0),(0,r._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],g.prototype,"editable",void 0),(0,r._)([(0,o.Cb)({type:l.z8,json:{write:!0}})],g.prototype,"length",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],g.prototype,"name",void 0),(0,r._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],g.prototype,"nullable",void 0),(0,r._)([(0,u.J)(p.v)],g.prototype,"type",void 0),(0,r._)([(0,o.Cb)()],g.prototype,"valueType",void 0),(0,r._)([(0,h.r)("valueType",["description"])],g.prototype,"readValueType",null),g=s=(0,r._)([(0,d.j)("esri.layers.support.Field")],g);const y=g},30547:(e,t,i)=>{i.d(t,{Z:()=>v});var s,r=i(43697),n=i(92835),a=i(84552),o=i(10736),l=i(22974),u=i(70586),h=i(5600),d=(i(75215),i(71715)),c=i(52011),p=i(30556);i(67676),i(80442);let f=s=class extends o.wq{constructor(e){super(e),this.respectsDaylightSaving=!1,this.timezone=null}readRespectsDaylightSaving(e,t){return void 0!==t.respectsDaylightSaving?t.respectsDaylightSaving:void 0!==t.respectDaylightSaving&&t.respectDaylightSaving}clone(){const{respectsDaylightSaving:e,timezone:t}=this;return new s({respectsDaylightSaving:e,timezone:t})}};(0,r._)([(0,h.Cb)({type:Boolean,json:{write:!0}})],f.prototype,"respectsDaylightSaving",void 0),(0,r._)([(0,d.r)("respectsDaylightSaving",["respectsDaylightSaving","respectDaylightSaving"])],f.prototype,"readRespectsDaylightSaving",null),(0,r._)([(0,h.Cb)({type:String,json:{read:{source:"timeZone"},write:{target:"timeZone"}}})],f.prototype,"timezone",void 0),f=s=(0,r._)([(0,c.j)("esri.layers.support.TimeReference")],f);const g=f;var y,m=i(78981);let _=y=class extends o.wq{constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeReference=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const i=new Date(t.timeExtent[0]),s=new Date(t.timeExtent[1]);return new n.Z({start:i,end:s})}writeFullTimeExtent(e,t){e&&(0,u.pC)(e.start)&&(0,u.pC)(e.end)?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?new a.Z({value:t.timeInterval,unit:m.v.fromJSON(t.timeIntervalUnits)}):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?new a.Z({value:t.defaultTimeInterval,unit:m.v.fromJSON(t.defaultTimeIntervalUnits)}):null}writeInterval(e,t){if(e){const i=e.toJSON();t.timeInterval=i.value,t.timeIntervalUnits=i.unit}else t.timeInterval=null,t.timeIntervalUnits=null}clone(){const{cumulative:e,endField:t,hasLiveData:i,interval:s,startField:r,timeReference:n,fullTimeExtent:a,trackIdField:o,useTime:u}=this;return new y({cumulative:e,endField:t,hasLiveData:i,interval:s,startField:r,timeReference:(0,l.d9)(n),fullTimeExtent:(0,l.d9)(a),trackIdField:o,useTime:u})}};(0,r._)([(0,h.Cb)({type:Boolean,json:{read:{source:"exportOptions.timeDataCumulative"},write:{target:"exportOptions.timeDataCumulative"}}})],_.prototype,"cumulative",void 0),(0,r._)([(0,h.Cb)({type:String,json:{read:{source:"endTimeField"},write:{target:"endTimeField",allowNull:!0}}})],_.prototype,"endField",void 0),(0,r._)([(0,h.Cb)({type:n.Z,json:{write:{enabled:!0,allowNull:!0}}})],_.prototype,"fullTimeExtent",void 0),(0,r._)([(0,d.r)("fullTimeExtent",["timeExtent"])],_.prototype,"readFullTimeExtent",null),(0,r._)([(0,p.c)("fullTimeExtent")],_.prototype,"writeFullTimeExtent",null),(0,r._)([(0,h.Cb)({type:Boolean,json:{write:!0}})],_.prototype,"hasLiveData",void 0),(0,r._)([(0,h.Cb)({type:a.Z,json:{write:{enabled:!0,allowNull:!0}}})],_.prototype,"interval",void 0),(0,r._)([(0,d.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],_.prototype,"readInterval",null),(0,r._)([(0,p.c)("interval")],_.prototype,"writeInterval",null),(0,r._)([(0,h.Cb)({type:String,json:{read:{source:"startTimeField"},write:{target:"startTimeField",allowNull:!0}}})],_.prototype,"startField",void 0),(0,r._)([(0,h.Cb)({type:g,json:{write:{enabled:!0,allowNull:!0}}})],_.prototype,"timeReference",void 0),(0,r._)([(0,h.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],_.prototype,"trackIdField",void 0),(0,r._)([(0,h.Cb)({type:Boolean,json:{read:{source:"exportOptions.useTime"},write:{target:"exportOptions.useTime"}}})],_.prototype,"useTime",void 0),_=y=(0,r._)([(0,c.j)("esri.layers.support.TimeInfo")],_);const v=_},72729:(e,t,i)=>{i.d(t,{im:()=>F,V5:()=>S}),i(80442);var s,r=i(43697),n=i(22974),a=i(5600),o=(i(75215),i(36030)),l=i(52011),u=i(10736);i(67676);let h=s=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new s({name:this.name,code:this.code})}};(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,r._)([(0,a.Cb)({type:[String,Number],json:{write:!0}})],h.prototype,"code",void 0),h=s=(0,r._)([(0,l.j)("esri.layers.support.CodedValue")],h);const d=h,c=new(i(35454).Xn)({inherited:"inherited",codedValue:"coded-value",range:"range"});let p=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,r._)([(0,o.J)(c)],p.prototype,"type",void 0),p=(0,r._)([(0,l.j)("esri.layers.support.Domain")],p);const f=p;var g;let y=g=class extends f{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const i=String(e);this.codedValues.some((e=>(String(e.code)===i&&(t=e.name),!!t)))}return t}clone(){return new g({codedValues:(0,n.d9)(this.codedValues),name:this.name})}};(0,r._)([(0,a.Cb)({type:[d],json:{write:!0}})],y.prototype,"codedValues",void 0),(0,r._)([(0,o.J)({codedValue:"coded-value"})],y.prototype,"type",void 0),y=g=(0,r._)([(0,l.j)("esri.layers.support.CodedValueDomain")],y);const m=y;var _;i(92604),i(37697);let v=_=class extends f{constructor(e){super(e),this.type="inherited"}clone(){return new _}};(0,r._)([(0,o.J)({inherited:"inherited"})],v.prototype,"type",void 0),v=_=(0,r._)([(0,l.j)("esri.layers.support.InheritedDomain")],v);const b=v;var x;let I=x=class extends f{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new x({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,r._)([(0,a.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,i){t[i]=[this.minValue||0,e]}}}})],I.prototype,"maxValue",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[0]},write:{target:"range",writer(e,t,i){t[i]=[e,this.maxValue||0]}}}})],I.prototype,"minValue",void 0),(0,r._)([(0,o.J)({range:"range"})],I.prototype,"type",void 0),I=x=(0,r._)([(0,l.j)("esri.layers.support.RangeDomain")],I);const w=I,S={key:"type",base:f,typeMap:{range:I,"coded-value":m,inherited:b}};function F(e){if(!e||!e.type)return null;switch(e.type){case"range":return w.fromJSON(e);case"codedValue":return m.fromJSON(e);case"inherited":return b.fromJSON(e)}return null}},86719:(e,t,i)=>{i.d(t,{v:()=>s});const s=new(i(35454).Xn)({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"})},78981:(e,t,i)=>{i.d(t,{v:()=>s});const s=(0,i(35454).wY)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},77863:(e,t,i)=>{i.d(t,{K9:()=>B,O7:()=>d,G$:()=>S});var s=i(20102),r=i(70586),n=i(45091),a=i(5428),o=i(78760);const l=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML"],u=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],h=["upperLeft","lowerLeft"];function d(e){return e>=l.length?null:l[e]}function c(e){return e>=u.length?null:u[e]}function p(e){return e>=h.length?null:h[e]}function f(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function g(e,t,i){const s=t.createPointGeometry(i);for(;e.next();)switch(e.tag()){case 3:{const i=e.getUInt32(),r=e.pos()+i;let n=0;for(;e.pos()<r;)t.addCoordinatePoint(s,e.getSInt64(),n++);break}default:e.skip()}return s}function y(e,t,i){const s=t.createGeometry(i),r=2+(i.hasZ?1:0)+(i.hasM?1:0);for(;e.next();)switch(e.tag()){case 2:{const i=e.getUInt32(),r=e.pos()+i;let n=0;for(;e.pos()<r;)t.addLength(s,e.getUInt32(),n++);break}case 3:{const i=e.getUInt32(),n=e.pos()+i;let a=0;for(t.allocateCoordinates(s);e.pos()<n;)t.addCoordinate(s,e.getSInt64(),a),a++,a===r&&(a=0);break}default:e.skip()}return s}function m(e){const t=new a.Z;let i="esriGeometryPoint";for(;e.next();)switch(e.tag()){case 2:{const i=e.getUInt32(),s=e.pos()+i;for(;e.pos()<s;)t.lengths.push(e.getUInt32());break}case 3:{const i=e.getUInt32(),s=e.pos()+i;for(;e.pos()<s;)t.coords.push(e.getSInt64());break}case 1:i=o.A[e.getEnum()];break;default:e.skip()}return{queryGeometry:t,queryGeometryType:i}}function _(e){for(;e.next();)switch(e.tag()){case 1:return e.getString();case 2:return e.getFloat();case 3:return e.getDouble();case 4:return e.getSInt32();case 5:return e.getUInt32();case 6:return e.getInt64();case 7:return e.getUInt64();case 8:return e.getSInt64();case 9:return e.getBool();default:return e.skip(),null}return null}function v(e){const t={type:d(0)};for(;e.next();)switch(e.tag()){case 1:t.name=e.getString();break;case 2:t.type=d(e.getEnum());break;case 3:t.alias=e.getString();break;case 4:t.sqlType=c(e.getEnum());break;default:e.skip();break;case 6:t.defaultValue=e.getString()}return t}function b(e){const t={};for(;e.next();)switch(e.tag()){case 1:t.name=e.getString();break;case 2:t.isSystemMaintained=e.getBool();break;default:e.skip()}return t}function x(e,t,i,s){const r=t.createFeature(i);let n=0;for(;e.next();)switch(e.tag()){case 1:{const t=s[n++].name;r.attributes[t]=e.processMessage(_);break}case 2:r.geometry=e.processMessageWithArgs(y,t,i);break;case 4:r.centroid=e.processMessageWithArgs(g,t,i);break;default:e.skip()}return r}function I(e){const t=[1,1,1,1];for(;e.next();)switch(e.tag()){case 1:t[0]=e.getDouble();break;case 2:t[1]=e.getDouble();break;case 4:t[2]=e.getDouble();break;case 3:t[3]=e.getDouble();break;default:e.skip()}return t}function w(e){const t=[0,0,0,0];for(;e.next();)switch(e.tag()){case 1:t[0]=e.getDouble();break;case 2:t[1]=e.getDouble();break;case 4:t[2]=e.getDouble();break;case 3:t[3]=e.getDouble();break;default:e.skip()}return t}function S(e){const t={originPosition:p(0)};for(;e.next();)switch(e.tag()){case 1:t.originPosition=p(e.getEnum());break;case 2:t.scale=e.processMessage(I);break;case 3:t.translate=e.processMessage(w);break;default:e.skip()}return t}function F(e){const t={};for(;e.next();)switch(e.tag()){case 1:t.shapeAreaFieldName=e.getString();break;case 2:t.shapeLengthFieldName=e.getString();break;case 3:t.units=e.getString();break;default:e.skip()}return t}function C(e,t){const i=t.createSpatialReference();for(;e.next();)switch(e.tag()){case 1:i.wkid=e.getUInt32();break;case 5:i.wkt=e.getString();break;case 2:i.latestWkid=e.getUInt32();break;case 3:i.vcsWkid=e.getUInt32();break;case 4:i.latestVcsWkid=e.getUInt32();break;default:e.skip()}return i}function T(e,t){const i=t.createFeatureResult();i.geometryType=f(t,0);let s=!1;for(;e.next();)switch(e.tag()){case 1:i.objectIdFieldName=e.getString();break;case 3:i.globalIdFieldName=e.getString();break;case 4:i.geohashFieldName=e.getString();break;case 5:i.geometryProperties=e.processMessage(F);break;case 7:i.geometryType=f(t,e.getEnum());break;case 8:i.spatialReference=e.processMessageWithArgs(C,t);break;case 10:i.hasZ=e.getBool();break;case 11:i.hasM=e.getBool();break;case 12:i.transform=e.processMessage(S);break;case 9:{const t=e.getBool();i.exceededTransferLimit=t;break}case 13:t.addField(i,e.processMessage(v));break;case 15:s||(t.prepareFeatures(i),s=!0),t.addFeature(i,e.processMessageWithArgs(x,t,i,i.fields));break;case 2:i.uniqueIdField=e.processMessage(b);break;default:e.skip()}return t.finishFeatureResult(i),i}function k(e,t){const i={};let s=null;for(;e.next();)switch(e.tag()){case 4:s=e.processMessageWithArgs(m);break;case 1:i.featureResult=e.processMessageWithArgs(T,t);break;default:e.skip()}return(0,r.pC)(s)&&i.featureResult&&t.addQueryGeometry(i,s),i}function B(e,t){try{const i=2,s=new n.Z(new Uint8Array(e),new DataView(e)),r={};for(;s.next();)s.tag()===i?r.queryResult=s.processMessageWithArgs(k,t):s.skip();return r}catch(e){throw new s.Z("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}},78760:(e,t,i)=>{i.d(t,{A:()=>l,J:()=>u});var s=i(67900),r=i(8744),n=i(70272),a=i(44876),o=i(5428);const l=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];class u{constructor(e){this.options=e,this.geometryTypes=l,this._coordinatePtr=0,this._vertexDimension=0}createFeatureResult(){return new a.Z}prepareFeatures(e){this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++}finishFeatureResult(e){if(!e||!e.features||!e.hasZ||!this.options.sourceSpatialReference||!e.spatialReference||(0,r.fS)(e.spatialReference,this.options.sourceSpatialReference)||e.spatialReference.vcsWkid)return;const t=(0,s._R)(this.options.sourceSpatialReference)/(0,s._R)(e.spatialReference);if(1!==t)for(const i of e.features){if(!(0,n.S6)(i))continue;const e=i.geometry.coords;for(let i=2;i<e.length;i+=3)e[i]*=t}}addFeature(e,t){e.features.push(t)}createFeature(){return new n.ZP}createSpatialReference(){return{wkid:0}}createGeometry(){return new o.Z}addField(e,t){e.fields.push(t)}allocateCoordinates(e){e.coords.length=e.lengths.reduce(((e,t)=>e+t),0)*this._vertexDimension,this._coordinatePtr=0}addCoordinate(e,t){e.coords[this._coordinatePtr++]=t}addCoordinatePoint(e,t){e.coords.push(t)}addLength(e,t){e.lengths.push(t)}addQueryGeometry(e,t){e.queryGeometry=t.queryGeometry,e.queryGeometryType=t.queryGeometryType}createPointGeometry(){return new o.Z}}},45178:(e,t,i)=>{i.d(t,{C:()=>r});var s=i(77863);function r(e,t){const i=(0,s.K9)(e,t),r=i.queryResult.featureResult,n=i.queryResult.queryGeometry,a=i.queryResult.queryGeometryType;if(r&&r.features&&r.features.length&&r.objectIdFieldName){const e=r.objectIdFieldName;for(const t of r.features)t.attributes&&(t.objectId=t.attributes[e])}return r&&(r.queryGeometry=n,r.queryGeometryType=a),r}},34599:(e,t,i)=>{i.r(t),i.d(t,{executeQuery:()=>p,executeQueryForCount:()=>m,executeQueryForExtent:()=>_,executeQueryForIds:()=>y,executeQueryPBF:()=>f,executeQueryPBFBuffer:()=>g,queryToQueryStringParameters:()=>c,runQuery:()=>v});var s=i(3172),r=i(70586),n=i(17452),a=i(33955),o=i(38581),l=i(45178),u=i(28694),h=i(99306);const d="Layer does not support extent calculation.";function c(e,t){const i=e.geometry,s=e.toJSON(),n=s;if((0,r.pC)(i)&&(n.geometry=JSON.stringify(i),n.geometryType=(0,a.Ji)(i),n.inSR=i.spatialReference.wkid||JSON.stringify(i.spatialReference)),s.groupByFieldsForStatistics&&(n.groupByFieldsForStatistics=s.groupByFieldsForStatistics.join(",")),s.objectIds&&(n.objectIds=s.objectIds.join(",")),s.orderByFields&&(n.orderByFields=s.orderByFields.join(",")),!s.outFields||!s.returnDistinctValues&&(null!=t&&t.returnCountOnly||null!=t&&t.returnExtentOnly||null!=t&&t.returnIdsOnly)?delete n.outFields:-1!==s.outFields.indexOf("*")?n.outFields="*":n.outFields=s.outFields.join(","),s.outSR?n.outSR=s.outSR.wkid||JSON.stringify(s.outSR):i&&(s.returnGeometry||s.returnCentroid)&&(n.outSR=n.inSR),s.returnGeometry&&delete s.returnGeometry,s.outStatistics&&(n.outStatistics=JSON.stringify(s.outStatistics)),s.pixelSize&&(n.pixelSize=JSON.stringify(s.pixelSize)),s.quantizationParameters&&(n.quantizationParameters=JSON.stringify(s.quantizationParameters)),s.parameterValues&&(n.parameterValues=JSON.stringify(s.parameterValues)),s.rangeValues&&(n.rangeValues=JSON.stringify(s.rangeValues)),s.dynamicDataSource&&(n.layer=JSON.stringify({source:s.dynamicDataSource}),delete s.dynamicDataSource),s.timeExtent){const e=s.timeExtent,{start:t,end:i}=e;null==t&&null==i||(n.time=t===i?t:`${null==t?"null":t},${null==i?"null":i}`),delete s.timeExtent}return n}async function p(e,t,i,s){const n=(0,r.pC)(t.timeExtent)&&t.timeExtent.isEmpty?{data:{features:[]}}:await v(e,t,"json",s);return(0,u.p)(t,i,n.data),n}async function f(e,t,i,s){if((0,r.pC)(t.timeExtent)&&t.timeExtent.isEmpty)return Promise.resolve({data:i.createFeatureResult()});const n=await g(e,t,s),a=n;return a.data=(0,l.C)(n.data,i),a}function g(e,t,i){return v(e,t,"pbf",i)}function y(e,t,i){return(0,r.pC)(t.timeExtent)&&t.timeExtent.isEmpty?Promise.resolve({data:{objectIds:[]}}):v(e,t,"json",i,{returnIdsOnly:!0})}function m(e,t,i){return(0,r.pC)(t.timeExtent)&&t.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):v(e,t,"json",i,{returnIdsOnly:!0,returnCountOnly:!0})}function _(e,t,i){return(0,r.pC)(t.timeExtent)&&t.timeExtent.isEmpty?Promise.resolve({data:{count:0,extent:null}}):v(e,t,"json",i,{returnExtentOnly:!0,returnCountOnly:!0}).then((e=>{const t=e.data;if(t.hasOwnProperty("extent"))return e;if(t.features)throw new Error(d);if(t.hasOwnProperty("count"))throw new Error(d);return e}))}function v(e,t,i,a={},l={}){const u="string"==typeof e?(0,n.mN)(e):e,d=t.geometry?[t.geometry]:[];return a.responseType="pbf"===i?"array-buffer":"json",(0,o.aX)(d,null,a).then((e=>{const o=e&&e[0];(0,r.pC)(o)&&((t=t.clone()).geometry=o);const d=(0,h.A)({...u.query,f:i,...l,...c(t,l)});return(0,s.default)((0,n.v_)(u.path,"query"),{...a,query:{...d,...a.query}})}))}},28694:(e,t,i)=>{i.d(t,{p:()=>r});var s=i(50459);function r(e,t,i){if(!i||!i.features||!i.hasZ)return;const r=(0,s.k)(i.geometryType,t,e.outSpatialReference);if(r)for(const e of i.features)r(e.geometry)}},50459:(e,t,i)=>{i.d(t,{k:()=>a,P:()=>l});var s=i(70586),r=i(67900),n=i(8744);function a(e,t,i){if((0,s.Wi)(t)||(0,s.Wi)(i)||i.vcsWkid||(0,n.fS)(t,i))return null;const a=(0,r._R)(t)/(0,r._R)(i);if(1===a)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,a);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const i of e.paths)for(const e of i)e.length>2&&(e[2]*=t)}(e,a);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const i of e.rings)for(const e of i)e.length>2&&(e[2]*=t)}(e,a);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const i of e.points)i.length>2&&(i[2]*=t)}(e,a);default:return null}}function o(e,t,i){if(null==e.hasM||e.hasZ)for(const e of t)for(const t of e)t.length>2&&(t[2]*=i)}function l(e,t,i){if(!e&&!t||!i)return;const s=(0,r._R)(i);u(e,i,s),u(t,i,s)}function u(e,t,i){if(e)for(const s of e)h(s.geometry,t,i)}function h(e,t,i){if((0,s.Wi)(e)||!e.spatialReference||(0,n.fS)(e.spatialReference,t))return;const a=(0,r._R)(e.spatialReference)/i;if(1!==a)if("x"in e)null!=e.z&&(e.z*=a);else if("rings"in e)o(e,e.rings,a);else if("paths"in e)o(e,e.paths,a);else if("points"in e&&(null==e.hasM||e.hasZ))for(const t of e.points)t.length>2&&(t[2]*=a)}},99306:(e,t,i)=>{function s(e){const t={};for(const i in e){if("declaredClass"===i)continue;const r=e[i];if(null!=r&&"function"!=typeof r)if(Array.isArray(r)){t[i]=[];for(let e=0;e<r.length;e++)t[i][e]=s(r[e])}else"object"==typeof r?r.toJSON&&(t[i]=JSON.stringify(r)):t[i]=r}return t}i.d(t,{A:()=>s})},41650:(e,t,i)=>{i.r(t),i.d(t,{FeatureServiceSnappingSourceWorker:()=>H,default:()=>W});var s=i(43697),r=i(32448),n=i(61247),a=i(70586),o=i(95330),l=i(43050),u=i(5600),h=i(67676),d=(i(80442),i(75215),i(52011)),c=i(82971),p=i(57191),f=i(87958),g=i(11145),y=i(30547),m=i(57444),_=i(15923);let v=class extends _.Z{constructor(){super(...arguments),this.updating=!1,this.pending=[]}push(e,t){this.pending.push({promise:e,callback:t}),1===this.pending.length&&this.process()}process(){if(!this.pending.length)return void(this.updating=!1);this.updating=!0;const e=this.pending[0];e.promise.then((t=>e.callback(t))).catch((()=>{})).then((()=>{this.pending.shift(),this.process()}))}};(0,s._)([(0,u.Cb)()],v.prototype,"updating",void 0),v=(0,s._)([(0,d.j)("esri.core.AsyncSequence")],v);var b=i(3920),x=i(50758),I=i(92604),w=i(6570),S=i(24470),F=i(98732),C=i(78760),T=i(34599),k=i(66643);class B{constructor(e,t){this.data=e,this.resolution=t,this.state={type:0},this.alive=!0}process(e){switch(this.state.type){case 0:return this.state=this.gotoFetchCount(this.state,e),this.state.task.promise.then(e.resume,e.resume);case 1:case 3:break;case 2:return this.state=this.gotoFetchFeatures(this.state,e),this.state.task.promise.then(e.resume,e.resume);case 4:this.state=this.goToDone(this.state,e)}return null}get debugInfo(){return{data:this.data,featureCount:this.featureCount,state:this.stateToString}}get featureCount(){switch(this.state.type){case 0:case 1:return 0;case 2:return this.state.featureCount;case 3:return this.state.previous.featureCount;case 4:return this.state.features.length;case 5:return this.state.previous.features.length}}get stateToString(){switch(this.state.type){case 0:return"created";case 1:return"fetch-count";case 2:return"fetched-count";case 3:return"fetch-features";case 4:return"fetched-features";case 5:return"done"}}gotoFetchCount(e,t){return{type:1,previous:e,task:(0,o.vr)((async e=>{const i=await(0,k.mt)(t.fetchCount(this,e));1===this.state.type&&(this.state=this.gotoFetchedCount(this.state,i.ok?i.value:1/0))}))}}gotoFetchedCount(e,t){return{type:2,featureCount:t,previous:e}}gotoFetchFeatures(e,t){return{type:3,previous:e,task:(0,o.vr)((async i=>{const s=await(0,k.mt)(t.fetchFeatures(this,e.featureCount,i));3===this.state.type&&(this.state=this.gotoFetchedFeatures(this.state,s.ok?s.value:[]))}))}}gotoFetchedFeatures(e,t){return{type:4,previous:e,features:t}}goToDone(e,t){return t.finish(this,e.features),{type:5,previous:e}}reset(){const e=this.state;switch(this.state={type:0},e.type){case 0:case 2:case 4:case 5:break;case 1:case 3:e.task.abort()}}intersects(e){return!(!(0,a.Wi)(e)&&this.data.extent)||((0,S.oJ)(e,E),(0,S.kK)(this.data.extent,E))}}const E=(0,S.Ue)(),M=I.Z.getLogger("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceTiledFetcher");let j=class extends b.r{constructor(e){super(e),this.tilesOfInterest=[],this.availability=0,this.pendingTiles=new Map,this.pendingEdits=new v,this.pendingEditsAbortController=new AbortController}get minimumVerticesPerFeature(){var e;switch(null==(e=this.store)?void 0:e.featureStore.geometryType){case"esriGeometryPoint":case"esriGeometryMultipoint":return 1;case"esriGeometryPolygon":return 4;case"esriGeometryPolyline":return 2}}set filter(e){const t=this._get("filter"),i=this.filterProperties(e);JSON.stringify(t)!==JSON.stringify(i)&&this._set("filter",i)}set customParameters(e){const t=this._get("customParameters");JSON.stringify(t)!==JSON.stringify(e)&&this._set("customParameters",e)}get configuration(){return{filter:this.filter,customParameters:this.customParameters,tileInfo:this.tileInfo,tileSize:this.tileSize}}set tileInfo(e){const t=this._get("tileInfo");t!==e&&((0,a.pC)(e)&&(0,a.pC)(t)&&JSON.stringify(e)===JSON.stringify(t)||(this._set("tileInfo",e),this.store.tileInfo=e))}set tileSize(e){this._get("tileSize")!==e&&this._set("tileSize",e)}get updating(){return this.updatingHandles.updating||this.pendingEdits.updating}initialize(){this.initializeFetchExtent(),this.updatingHandles.add(this,"configuration",(()=>this.refresh())),this.updatingHandles.add(this,"tilesOfInterest",((e,t)=>{(0,h.fS)(e,t,(({id:e},{id:t})=>e===t))||this.process()}),1)}destroy(){this.pendingTiles.forEach((e=>this.deletePendingTile(e))),this.pendingTiles.clear(),this.store.destroy(),this.tilesOfInterest.length=0,this.pendingEditsAbortController.abort(),this.pendingEditsAbortController=null}refresh(){this.store.refresh(),this.pendingTiles.forEach((e=>this.deletePendingTile(e))),this.process()}applyEdits(e){this.pendingEdits.push(e,(async e=>{if(0===e.addedFeatures.length&&0===e.updatedFeatures.length&&0===e.deletedFeatures.length)return;for(const[,e]of this.pendingTiles)e.reset();const t={...e,deletedFeatures:e.deletedFeatures.map((({objectId:e,globalId:t})=>e&&-1!==e?e:this.lookupObjectIdByGlobalId(t)))};await this.updatingHandles.addPromise(this.store.processEdits(t,((e,t)=>this.queryFeaturesById(e,t)),this.pendingEditsAbortController.signal)),this.processPendingTiles()}))}initializeFetchExtent(){if(!this.capabilities.query.supportsExtent)return;const e=(0,o.vr)((async e=>{try{var t;const i=await(0,T.executeQueryForExtent)(this.url,new m.Z({where:"1=1",outSpatialReference:this.spatialReference,cacheHint:!!this.capabilities.query.supportsCacheHint||void 0}),{query:this.configuration.customParameters,signal:e});this.store.extent=w.Z.fromJSON(null==(t=i.data)?void 0:t.extent)}catch(e){(0,o.r9)(e),M.warn("Failed to fetch data extent",e)}}));this.updatingHandles.addPromise(e.promise.then((()=>this.process()))),this.handles.add((0,x.kB)((()=>e.abort())))}get debugInfo(){return{numberOfFeatures:this.store.featureStore.numFeatures,tilesOfInterest:this.tilesOfInterest,pendingTiles:Array.from(this.pendingTiles.values()).map((e=>e.debugInfo)),storedTiles:this.store.debugInfo}}process(){this.markTilesNotAlive(),this.createPendingTiles(),this.deletePendingTiles(),this.processPendingTiles()}markTilesNotAlive(){for(const[,e]of this.pendingTiles)e.alive=!1}createPendingTiles(){const e=this.collectMissingTilesInfo();if(this.setAvailability((0,a.Wi)(e)?1:e.coveredArea/e.fullArea),!(0,a.Wi)(e))for(const{data:t,resolution:i}of e.missingTiles){const e=this.pendingTiles.get(t.id);e?(e.resolution=i,e.alive=!0):this.createPendingTile(t,i)}}collectMissingTilesInfo(){let e=null;for(let t=this.tilesOfInterest.length-1;t>=0;t--){const i=this.tilesOfInterest[t],s=this.store.process(i,((e,t)=>this.verifyTileComplexity(e,t)));(0,a.Wi)(e)?e=s:e.prepend(s)}return e}deletePendingTiles(){for(const[,e]of this.pendingTiles)e.alive||this.deletePendingTile(e)}processPendingTiles(){const e={fetchCount:(e,t)=>this.fetchCount(e,t),fetchFeatures:(e,t,i)=>this.fetchFeatures(e,t,i),finish:(e,t)=>this.finishPendingTile(e,t),resume:()=>this.processPendingTiles()};if(this.ensureFetchAllCounts(e))for(const[,t]of this.pendingTiles)this.verifyTileComplexity(this.store.getFeatureCount(t.data),t.resolution)&&this.updatingHandles.addPromise(t.process(e))}verifyTileComplexity(e,t){return this.verifyVertexComplexity(e)&&this.verifyFeatureDensity(e,t)}verifyVertexComplexity(e){return e*this.minimumVerticesPerFeature<R}verifyFeatureDensity(e,t){if((0,a.Wi)(this.tileInfo))return!1;const i=this.tileSize*t;return e*(q/(i*i))<A}ensureFetchAllCounts(e){let t=!0;for(const[,i]of this.pendingTiles)i.state.type<2&&this.updatingHandles.addPromise(i.process(e)),i.state.type<=1&&(t=!1);return t}finishPendingTile(e,t){this.store.add(e.data,t),this.deletePendingTile(e),this.updateAvailability()}updateAvailability(){const e=this.collectMissingTilesInfo();this.setAvailability((0,a.Wi)(e)?1:e.coveredArea/e.fullArea)}setAvailability(e){this._set("availability",e)}createPendingTile(e,t){const i=new B(e,t);return this.pendingTiles.set(e.id,i),i}deletePendingTile(e){e.reset(),this.pendingTiles.delete(e.data.id)}async fetchCount(e,t){return this.store.fetchCount(e.data,this.url,this.createCountQuery(e),{query:this.customParameters,timeout:P,signal:t})}async fetchFeatures(e,t,i){let s,r=0,n=0,o=t;for(;;){const l=this.createFeaturesQuery(e),u=this.setPagingParameters(l,r,o),{features:h,exceededTransferLimit:d}=await this.queryFeatures(l,i);if(u&&(r+=(0,a.Wg)(l.num)),n+=h.length,s=s?s.concat(h):h,o=t-n,!u||!d||o<=0)return s}}filterProperties(e){return(0,a.Wi)(e)?{where:"1=1",gdbVersion:void 0,timeExtent:void 0}:{where:e.where||"1=1",timeExtent:e.timeExtent,gdbVersion:e.gdbVersion}}lookupObjectIdByGlobalId(e){const t=this.globalIdField,i=this.objectIdField;if((0,a.Wi)(t))throw new Error("Expected globalIdField to be defined");let s=null;if(this.store.featureStore.forEach((r=>{var n;e===r.attributes[t]&&(s=null!=(n=r.objectId)?n:r.attributes[i])})),(0,a.Wi)(s))throw new Error(`Expected to find a feature with globalId ${e}`);return s}queryFeaturesById(e,t){const i=this.createFeaturesQuery(null);return i.objectIds=e,this.queryFeatures(i,t)}queryFeatures(e,t){return this.capabilities.query.supportsFormatPBF?this.queryFeaturesPBF(e,t):this.queryFeaturesJSON(e,t)}async queryFeaturesPBF(e,t){const{sourceSpatialReference:i}=this,{data:s}=await(0,T.executeQueryPBF)(this.url,e,new C.J({sourceSpatialReference:i}),{query:this.configuration.customParameters,timeout:P,signal:t});return(0,F.lM)(s)}async queryFeaturesJSON(e,t){const{sourceSpatialReference:i}=this,{data:s}=await(0,T.executeQuery)(this.url,e,i,{query:this.configuration.customParameters,timeout:P,signal:t});return(0,F.h_)(s,this.objectIdField)}createCountQuery(e){const t=this.createBaseQuery(e);return this.capabilities.query.supportsCacheHint&&(t.cacheHint=!0),t}createFeaturesQuery(e){const t=this.createBaseQuery(e);return t.outFields=this.globalIdField?[this.globalIdField,this.objectIdField]:[this.objectIdField],t.returnGeometry=!0,(0,a.pC)(e)&&(this.capabilities.query.supportsResultType?t.resultType="tile":this.capabilities.query.supportsCacheHint&&(t.cacheHint=!0)),t}createBaseQuery(e){const t=new m.Z({returnZ:!1,returnM:!1,geometry:(0,a.pC)(this.tileInfo)&&(0,a.pC)(e)?(0,S.HH)(e.data.extent,this.tileInfo.spatialReference):void 0}),i=this.configuration.filter;return(0,a.pC)(i)&&(t.where=i.where,t.gdbVersion=i.gdbVersion,t.timeExtent=i.timeExtent),t.outSpatialReference=this.spatialReference,t}setPagingParameters(e,t,i){if(!this.capabilities.query.supportsPagination)return!1;const{supportsMaxRecordCountFactor:s,supportsCacheHint:r,tileMaxRecordCount:n,maxRecordCount:a,supportsResultType:o}=this.capabilities.query,l=s?m.Z.MAX_MAX_RECORD_COUNT_FACTOR:1,u=l*((o||r)&&n?n:a||O);return e.start=t,s?(e.maxRecordCountFactor=Math.min(l,Math.ceil(i/u)),e.num=Math.min(i,e.maxRecordCountFactor*u)):e.num=Math.min(i,u),!0}};(0,s._)([(0,u.Cb)({constructOnly:!0})],j.prototype,"url",void 0),(0,s._)([(0,u.Cb)({constructOnly:!0})],j.prototype,"objectIdField",void 0),(0,s._)([(0,u.Cb)({constructOnly:!0})],j.prototype,"globalIdField",void 0),(0,s._)([(0,u.Cb)({constructOnly:!0})],j.prototype,"capabilities",void 0),(0,s._)([(0,u.Cb)({constructOnly:!0})],j.prototype,"sourceSpatialReference",void 0),(0,s._)([(0,u.Cb)({constructOnly:!0})],j.prototype,"spatialReference",void 0),(0,s._)([(0,u.Cb)({constructOnly:!0})],j.prototype,"store",void 0),(0,s._)([(0,u.Cb)({readOnly:!0})],j.prototype,"minimumVerticesPerFeature",null),(0,s._)([(0,u.Cb)()],j.prototype,"filter",null),(0,s._)([(0,u.Cb)()],j.prototype,"customParameters",null),(0,s._)([(0,u.Cb)({readOnly:!0})],j.prototype,"configuration",null),(0,s._)([(0,u.Cb)()],j.prototype,"tileInfo",null),(0,s._)([(0,u.Cb)()],j.prototype,"tileSize",null),(0,s._)([(0,u.Cb)()],j.prototype,"tilesOfInterest",void 0),(0,s._)([(0,u.Cb)({readOnly:!0})],j.prototype,"updating",null),(0,s._)([(0,u.Cb)({readOnly:!0})],j.prototype,"availability",void 0),j=(0,s._)([(0,d.j)("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceTiledFetcher")],j);const O=2e3,P=6e5,R=1e6,q=25,A=1;function V(e){return 32+e.length}function D(e,t){return 32+e.length*t}var Z=i(37549);class N{constructor(){this._store=new Map,this._byteSize=0}set(e,t){this.delete(e),this._store.set(e,t),this._byteSize+=t.byteSize}delete(e){const t=this._store.get(e);return!!this._store.delete(e)&&(this._byteSize-=t.byteSize,!0)}get(e){return this.used(e),this._store.get(e)}has(e){return this.used(e),this._store.has(e)}clear(){this._store.clear()}applyByteSizeLimit(e,t){for(const[i,s]of this._store){if(this._byteSize<=e)break;this.delete(i),t(s)}}values(){return this._store.values()}[Symbol.iterator](){return this._store[Symbol.iterator]()}used(e){const t=this._store.get(e);t&&(this._store.delete(e),this._store.set(e,t))}}let U=class extends _.Z{constructor(e){super(e),this.tileInfo=null,this.extent=null,this.maximumByteSize=10485760,this.tileBounds=new Z.H,this.tiles=new N,this.refCounts=new Map,this.tileFeatureCounts=new Map,this.tmpBoundingRect=(0,S.Ue)()}add(e,t){const i=[];for(const e of t)0===this.referenceFeature(e.objectId)&&i.push(e);this.addTileStorage(e,new Set(t.map((({objectId:e})=>e))),function(e){return e.reduce(((e,t)=>e+function(e){return 32+function(e){if((0,a.Wi)(e))return 0;const t=D(e.lengths,4);return 32+D(e.coords,8)+t}(e.geometry)+function(e){if(!e)return 0;let t=32;for(const i in e)if(e.hasOwnProperty(i)){const s=e[i];switch(typeof s){case"string":t+=V(s);break;case"number":t+=16;break;case"boolean":t+=4}}return t}(e.attributes)}(t)),0)}(t)),this.featureStore.addMany(i),this.tiles.applyByteSizeLimit(this.maximumByteSize,(e=>this.removeTileStorage(e)))}destroy(){this.clear(),this.tileFeatureCounts.clear()}clear(){this.featureStore.clear(),this.tileBounds.clear(),this.tiles.clear(),this.refCounts.clear()}refresh(){this.clear(),this.tileFeatureCounts.clear()}processEdits(e,t,i){return this.processEditsDelete(e.deletedFeatures.concat(e.updatedFeatures)),this.processEditsRefetch(e.addedFeatures.concat(e.updatedFeatures),t,i)}addTileStorage(e,t,i){this.tiles.set(e.id,new z(e,t,i)),this.tileBounds.set(e.id,e.extent),this.tileFeatureCounts.set(e.id,t.size)}remove({id:e}){const t=this.tiles.get(e);t&&this.removeTileStorage(t)}removeTileStorage(e){const t=[];for(const i of e.objectIds)1===this.unreferenceFeature(i)&&t.push(i);this.featureStore.removeManyById(t);const i=e.data.id;this.tiles.delete(i),this.tileBounds.delete(i)}processEditsDelete(e){this.featureStore.removeManyById(e);for(const[,t]of this.tiles){for(const i of e)t.objectIds.delete(i);this.tileFeatureCounts.set(t.data.id,t.objectIds.size)}for(const t of e)this.refCounts.delete(t)}async processEditsRefetch(e,t,i){const s=(await t(e,i)).features,{hasZ:r,hasM:n}=this.featureStore;for(const e of s){const t=(0,F.$)(this.tmpBoundingRect,e.geometry,r,n);(0,a.Wi)(t)||this.tileBounds.forEachInBounds(t,(t=>{const i=this.tiles.get(t);this.featureStore.add(e),i.objectIds.has(e.objectId)||(i.objectIds.add(e.objectId),this.referenceFeature(e.objectId),this.tileFeatureCounts.set(i.data.id,i.objectIds.size))}))}}process(e,t=(()=>!0)){if((0,a.Wi)(this.tileInfo)||!e.extent||(0,a.pC)(this.extent)&&!(0,S.kK)((0,S.oJ)(this.extent,this.tmpBoundingRect),e.extent))return new X(e);if(this.tiles.has(e.id))return new X(e);const i=this.createTileTree(e,this.tileInfo);return this.simplify(i,t,null,0,1),this.collectMissingTiles(e,i,this.tileInfo)}get debugInfo(){return Array.from(this.tiles.values()).map((({data:e})=>({data:e,featureCount:this.tileFeatureCounts.get(e.id)||0})))}getFeatureCount(e){const t=this.tileFeatureCounts.get(e.id);return null!=t?t:0}async fetchCount(e,t,i,s){const r=this.tileFeatureCounts.get(e.id);if(null!=r)return r;const n=await(0,T.executeQueryForCount)(t,i,s);return this.tileFeatureCounts.set(e.id,n.data.count),n.data.count}createTileTree(e,t){const i=new G(e.level,e.row,e.col);return t.updateTileInfo(i,1),this.tileBounds.forEachInBounds(e.extent,(s=>{const r=this.tiles.get(s).data;this.tilesAreRelated(e,r)&&this.populateChildren(i,r,t,this.tileFeatureCounts.get(r.id)||0)})),i}tilesAreRelated(e,t){if(!e||!t)return!1;if(e.level===t.level)return e.row===t.row&&e.col===t.col;const i=e.level<t.level,s=i?e:t,r=i?t:e,n=1<<r.level-s.level;return Math.floor(r.row/n)===s.row&&Math.floor(r.col/n)===s.col}populateChildren(e,t,i,s){const r=t.level-e.level-1;if(r<0)return void(e.isLeaf=!0);const n=t.row>>r,o=t.col>>r,l=e.row<<1,u=o-(e.col<<1)+(n-l<<1),h=e.children[u];if((0,a.pC)(h))this.populateChildren(h,t,i,s);else{const r=new G(e.level+1,n,o);i.updateTileInfo(r,1),e.children[u]=r,this.populateChildren(r,t,i,s)}}simplify(e,t,i,s,r){const n=r*r;if(e.isLeaf)return t(this.getFeatureCount(e),r)?0:(this.remove(e),(0,a.pC)(i)&&(i.children[s]=null),n);const o=r/2,l=o*o;let u=0;for(let i=0;i<e.children.length;i++){const s=e.children[i];u+=(0,a.pC)(s)?this.simplify(s,t,e,i,o):l}return 0===u?this.mergeChildren(e):1-u/n<J&&(this.purge(e),(0,a.pC)(i)&&(i.children[s]=null),u=n),u}mergeChildren(e){const t=new Set;let i=0;this.forEachLeaf(e,(e=>{const s=this.tiles.get(e.id);if(s){i+=s.byteSize;for(const e of s.objectIds)t.has(e)||(t.add(e),this.referenceFeature(e));this.remove(e)}})),this.addTileStorage(e,t,i),e.isLeaf=!0,e.children[0]=e.children[1]=e.children[2]=e.children[3]=null,this.tileFeatureCounts.set(e.id,t.size)}forEachLeaf(e,t){for(const i of e.children)(0,a.Wi)(i)||(i.isLeaf?t(i):this.forEachLeaf(i,t))}purge(e){if(!(0,a.Wi)(e))if(e.isLeaf)this.remove(e);else for(let t=0;t<e.children.length;t++){const i=e.children[t];this.purge(i),e.children[t]=null}}collectMissingTiles(e,t,i){const s=new L(i,e,this.extent);return this.collectMissingTilesRecurse(t,s,1),s.info}collectMissingTilesRecurse(e,t,i){if(e.isLeaf)return;if(!e.hasChildren)return void t.addMissing(e.level,e.row,e.col,i);const s=i/2;for(let i=0;i<e.children.length;i++){const r=e.children[i];(0,a.Wi)(r)?t.addMissing(e.level+1,(e.row<<1)+((2&i)>>1),(e.col<<1)+(1&i),s):this.collectMissingTilesRecurse(r,t,s)}}referenceFeature(e){const t=(this.refCounts.get(e)||0)+1;return this.refCounts.set(e,t),1===t?0:2}unreferenceFeature(e){const t=(this.refCounts.get(e)||0)-1;return 0===t?(this.refCounts.delete(e),1):(t>0&&this.refCounts.set(e,t),2)}get test(){return{tiles:Array.from(this.tiles.values()).map((e=>`${e.data.id}:[${Array.from(e.objectIds)}]`)),featureReferences:Array.from(this.refCounts.keys()).map((e=>`${e}:${this.refCounts.get(e)}`))}}};(0,s._)([(0,u.Cb)({constructOnly:!0})],U.prototype,"featureStore",void 0),(0,s._)([(0,u.Cb)()],U.prototype,"tileInfo",void 0),(0,s._)([(0,u.Cb)()],U.prototype,"extent",void 0),(0,s._)([(0,u.Cb)()],U.prototype,"maximumByteSize",void 0),U=(0,s._)([(0,d.j)("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceTileStore")],U);class z{constructor(e,t,i){this.data=e,this.objectIds=t,this.byteSize=i}}class G{constructor(e,t,i){this.level=e,this.row=t,this.col=i,this.isLeaf=!1,this.extent=null,this.children=[null,null,null,null]}get hasChildren(){return!this.isLeaf&&((0,a.pC)(this.children[0])||(0,a.pC)(this.children[1])||(0,a.pC)(this.children[2])||(0,a.pC)(this.children[3]))}}class X{constructor(e,t=[]){this.missingTiles=t,this.fullArea=0,this.coveredArea=0,this.fullArea=(0,S.SO)(e.extent),this.coveredArea=this.fullArea}prepend(e){this.missingTiles=e.missingTiles.concat(this.missingTiles),this.coveredArea+=e.coveredArea,this.fullArea+=e.fullArea}}class L{constructor(e,t,i){this.tileInfo=e,this.extent=null,this.info=new X(t),(0,a.pC)(i)&&(this.extent=(0,S.oJ)(i))}addMissing(e,t,i,s){const r={id:null,level:e,row:t,col:i};this.tileInfo.updateTileInfo(r,1),!(0,a.pC)(r.extent)||(0,a.pC)(this.extent)&&!(0,S.kK)(this.extent,r.extent)||(this.info.missingTiles.push({data:r,resolution:s}),this.info.coveredArea-=(0,S.SO)(r.extent))}}const J=.18751;var Y=i(89749);let H=class extends r.Z.EventedAccessor{constructor(){super(...arguments),this.isInitializing=!0,this.whenSetup=(0,o.dD)(),this.handles=new n.Z,this.updatingHandles=new Y.t,this.pendingApplyEdits=new Map}get updating(){return this.featureFetcher.updating||this.isInitializing||this.updatingHandles.updating}destroy(){this.featureFetcher.destroy(),this.queryEngine.destroy(),this.featureStore.clear(),this.handles.destroy()}async setup(e){const{geometryType:t,objectIdField:i,timeInfo:s,fields:r}=e.serviceInfo;return this.featureStore=new p.Z({...e.serviceInfo,hasZ:!1,hasM:!1}),this.queryEngine=new f.Z({spatialReference:e.spatialReference,featureStore:this.featureStore,geometryType:t,fields:r,hasZ:!1,hasM:!1,objectIdField:i,timeInfo:s?y.Z.fromJSON(s):null}),this.featureFetcher=new j({store:new U({featureStore:this.featureStore}),url:e.serviceInfo.url,objectIdField:e.serviceInfo.objectIdField,globalIdField:e.serviceInfo.globalIdField,capabilities:e.serviceInfo.capabilities,spatialReference:c.Z.fromJSON(e.spatialReference),sourceSpatialReference:c.Z.fromJSON(e.serviceInfo.spatialReference)}),this.handles.add([this.featureFetcher.watch("availability",(e=>this.emit("notify-availability",{availability:e})),!0),this.watch("updating",(()=>this.notifyUpdating()))]),this.whenSetup.resolve(),this.isInitializing=!1,this.configure(e.configuration)}async configure(e){return await this.updatingHandles.addPromise(this.whenSetup.promise),this.updateFeatureFetcherConfiguration(e),{result:{}}}async fetchCandidates(e,t){return await this.whenSetup.promise,(0,o.k_)(t),{result:await this.queryEngine.executeQueryForSnapping({point:e.point,distance:e.distance,types:e.types,query:(0,a.pC)(e.filter)?e.filter:{where:"1=1"}},(0,a.pC)(t)?t.signal:null)}}async updateTiles(e,t){return await this.updatingHandles.addPromise(this.whenSetup.promise),(0,o.k_)(t),this.featureFetcher.tileSize=e.tileSize,this.featureFetcher.tilesOfInterest=e.tiles,this.featureFetcher.tileInfo=(0,a.pC)(e.tileInfo)?g.Z.fromJSON(e.tileInfo):null,{result:{}}}async refresh(e,t){return await this.updatingHandles.addPromise(this.whenSetup.promise),(0,o.k_)(t),this.featureFetcher.refresh(),{result:{}}}async whenNotUpdating(e,t){return await this.updatingHandles.addPromise(this.whenSetup.promise),(0,o.k_)(t),await(0,o.Hl)((0,l.cm)(this,"updating"),t),{result:{}}}async getDebugInfo(e,t){return(0,o.k_)(t),{result:this.featureFetcher.debugInfo}}async beginApplyEdits(e,t){this.updatingHandles.addPromise(this.whenSetup.promise),(0,o.k_)(t);const i=(0,o.dD)();return this.pendingApplyEdits.set(e.id,i),this.featureFetcher.applyEdits(i.promise),this.updatingHandles.addPromise(i.promise),{result:{}}}async endApplyEdits(e,t){const i=this.pendingApplyEdits.get(e.id);return i&&i.resolve(e.edits),(0,o.k_)(t),{result:{}}}updateFeatureFetcherConfiguration(e){this.featureFetcher.filter=(0,a.pC)(e.filter)?m.Z.fromJSON(e.filter):null,this.featureFetcher.customParameters=e.customParameters}notifyUpdating(){this.emit("notify-updating",{updating:this.updating})}};function W(){return new H}(0,s._)([(0,u.Cb)({readOnly:!0})],H.prototype,"updating",null),(0,s._)([(0,u.Cb)()],H.prototype,"isInitializing",void 0),H=(0,s._)([(0,d.j)("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceSnappingSourceWorker")],H)},89749:(e,t,i)=>{i.d(t,{t:()=>p});var s=i(43697),r=i(15923),n=i(61247),a=i(70586),o=i(17445),l=i(90584),u=i(43050),h=i(67723),d=i(5600),c=i(52011);let p=class extends r.Z{constructor(){super(...arguments),this.updating=!1,this.handleId=0,this.handles=new n.Z,this.scheduleHandleId=0,this.pendingPromises=new Set}destroy(){this.removeAll(),this.handles.destroy()}add(e,t,i,s=0){const r=0!=(1&s),n=++this.handleId;r||this.installSyncUpdatingWatch(e,t,n);const a=0!=(2&s)?(0,u.S1)(e,t,i,r):e.watch(t,i,r);return this.handles.add(a,n),{remove:()=>this.handles.remove(n)}}addOnCollectionPropertyChange(e,t,i,s=0){const r=0!=(2&s),n=++this.handleId;return this.handles.add([(0,u.on)(e,t,"after-changes",this.createSyncUpdatingCallback()),(0,u.on)(e,t,"change",i,r?e=>{i({added:e.items,removed:[],moved:[],target:e})}:void 0)],n),{remove:()=>{this.handles.remove(n)}}}addOnCollectionChange(e,t,i=0){const s=0!=(2&i),r=++this.handleId;return this.handles.add([e.on("after-changes",this.createSyncUpdatingCallback()),e.on("change",t)],r),s&&t({added:e.items,removed:[],moved:[],target:e}),{remove:()=>{this.handles.remove(r)}}}addPromise(e){if((0,a.Wi)(e))return e;const t=++this.handleId;this.handles.add({remove:()=>{this.pendingPromises.delete(e)&&(0!==this.pendingPromises.size||this.handles.has(f)||this._set("updating",!1))}},t),this.pendingPromises.add(e),this._set("updating",!0);const i=()=>this.handles.remove(t);return e.then(i,i),e}removeAll(){this.pendingPromises.clear(),this.handles.removeAll(),this._set("updating",!1)}installSyncUpdatingWatch(e,t,i){const s=this.createSyncUpdatingCallback(),r=(0,o.Ym)((()=>(0,h.$z)(e,t)),s,{sync:!0,equals:()=>!1});return this.handles.add(r,i),r}createSyncUpdatingCallback(){return()=>{this.handles.remove(f),++this.scheduleHandleId;const e=this.scheduleHandleId;this._get("updating")||this._set("updating",!0),this.handles.add((0,l.Os)((()=>{e===this.scheduleHandleId&&(this._set("updating",this.pendingPromises.size>0),this.handles.remove(f))})),f)}}};(0,s._)([(0,d.Cb)({readOnly:!0})],p.prototype,"updating",void 0),p=(0,s._)([(0,c.j)("esri.views.support.WatchUpdatingTracking")],p);const f=-42}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7779],{91460:(e,t,r)=>{function n(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function i(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,r);if(Array.isArray(t)){const n=t.slice();for(const t of n)e.addEventListener(t,r);return{remove(){for(const t of n)e.removeEventListener(t,r)}}}return e.addEventListener(t,r),{remove(){e.removeEventListener(t,r)}}}function o(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const o=i(e,t,(t=>{o.remove(),r.call(e,t)}));return{remove(){o.remove()}}}r.d(t,{vT:()=>n,on:()=>i,IH:()=>o})},95330:(e,t,r)=>{r.d(t,{e4:()=>I,$6:()=>c,Ue:()=>u,zE:()=>p,dD:()=>C,hh:()=>q,vr:()=>R,Ds:()=>j,as:()=>O,WW:()=>k,R8:()=>x,D_:()=>w,Hc:()=>m,tI:()=>U,y8:()=>P,fu:()=>g,$F:()=>b,d1:()=>_,DB:()=>S,r9:()=>f,k_:()=>h,H9:()=>y,gx:()=>$,Hl:()=>v});var n=r(16358);const i=(o=n.Z,{setTimeout:(e,t)=>{const r=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(r)}}});var o,s=r(20102),a=r(91460),l=(r(92604),r(70586));function c(e){return Promise.all(e)}function u(e){return new Promise(((t,r)=>{try{e(t,r)}catch(e){Promise.resolve().then((()=>r(e)))}}))}function p(e="Aborted"){return new s.Z("AbortError",e)}function h(e,t="Aborted"){if(m(e))throw p(t)}function d(e){return(0,l.pC)(e)?"aborted"in e?e:e.signal:e}function m(e){const t=d(e);return(0,l.pC)(t)&&t.aborted}function f(e){if(w(e))throw e}function y(e){if(!w(e))throw e}function g(e,t){const r=d(e);if(!(0,l.Wi)(r)){if(!r.aborted)return(0,a.IH)(r,"abort",(()=>t()));t()}}function b(e,t){const r=d(e);if(!(0,l.Wi)(r))return h(r),(0,a.IH)(r,"abort",(()=>t(p())))}function v(e,t){const r=d(t);return(0,l.Wi)(r)?e:new Promise(((r,n)=>{let i=g(t,(()=>n(p())));const o=()=>i=(0,l.hw)(i);e.then(o,o),e.then(r,n)}))}function w(e){return e&&"AbortError"===e.name}function x(e){return e.catch((e=>{if(!w(e))throw e}))}function C(){let e=null;const t=new Promise(((t,r)=>{e={promise:void 0,resolve:t,reject:r}}));return e.promise=t,e}function O(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return O(t.map((t=>e[t]))).then((e=>{const r={};return t.forEach(((t,n)=>r[t]=e[n])),r}))}const t=e;return u((e=>{const r=[];let n=t.length;0===n&&e(r),t.forEach((t=>{const i={promise:t||Promise.resolve(t)};r.push(i),i.promise.then((e=>{i.value=e})).catch((e=>{i.error=e})).then((()=>{--n,0===n&&e(r)}))}))}))}function k(e){return O(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function _(e){return Promise.reject(e)}function S(e){return Promise.resolve(e)}function I(e,t,r){const n=new AbortController;return g(r,(()=>n.abort())),new Promise(((r,i)=>{let o=setTimeout((()=>{o=0,r(t)}),e);g(n,(()=>{o&&(clearTimeout(o),i(p()))}))}))}function P(e){return e&&"function"==typeof e.then}function $(e){return U(e)?e:Promise.resolve(e)}function U(e){return e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}function j(e,t=-1){let r,n,i,o,s=null;const a=(...c)=>{if(r){n=c,o&&o.reject(p()),o=C();const e=(0,l.j0)(o.promise);if(s){const e=s;s=null,e.abort()}return e}if(i=o||C(),o=null,t>0){const n=new AbortController;r=$(e(...c,n.signal));const i=r;I(t).then((()=>{r===i&&(o?n.abort():s=n)}))}else r=1,r=$(e(...c));const u=()=>{const e=n;n=i=r=s=null,null!=e&&a(...e)},h=r,d=i;return h.then(u,u),h.then(d.resolve,d.reject),(0,l.j0)(d.promise)};return a}function q(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n})),n=t=>{e(t)};return n.resolve=t=>e(t),n.reject=e=>t(e),n.timeout=(e,t)=>i.setTimeout((()=>n.reject(t)),e),n.promise=r,n}function R(e){let t=new AbortController;const r=e(t.signal);let n={promise:r,finished:!1,abort:()=>{t&&(t.abort(),t=null)}};const i=()=>{n&&(n.finished=!0,n=null),t=null};return r.then(i,i),n}},17452:(e,t,r)=>{r.d(t,{R9:()=>b,qg:()=>I,tD:()=>j,ZN:()=>ce,fl:()=>ue,AX:()=>x,Gd:()=>v,Ie:()=>se,sJ:()=>V,AH:()=>z,vt:()=>ie,oh:()=>L,P$:()=>Z,Ml:()=>pe,ed:()=>q,b7:()=>S,D6:()=>E,tm:()=>R,YP:()=>M,jc:()=>W,HK:()=>G,$U:()=>X,oC:()=>Q,kl:()=>N,v_:()=>K,hF:()=>A,_l:()=>B,PF:()=>J,Fv:()=>D,B7:()=>_,u0:()=>O,Yd:()=>ne,Hu:()=>le,Qj:()=>oe,hO:()=>ee,mN:()=>C});var n=r(68773),i=r(20102),o=(r(16358),r(92604)),s=r(70586);const a=o.Z.getLogger("esri.core.urlUtils"),l=n.Z.request,c="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,p=/^\s*http:/i,h=/^\s*https:/i,d=/^\s*file:/i,m=/:\d+$/,f=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),g=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class b{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,s.j0)(this.uri.match(y));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,s.j0)(this.authority.match(g)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const v=new b(n.Z.applicationUrl),w={},x=(()=>{const e=(0,s.j0)(v.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${v.scheme}://${v.host}${null!=v.port?`:${v.port}`:""}${t}`})();function C(e){const t={path:null,query:null},r=new b(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,n),t.query=O(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function O(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,i;t<0?(n=decodeURIComponent(e),i=""):(n=decodeURIComponent(e.slice(0,t)),i=decodeURIComponent(e.slice(t+1)));let o=r[n];"string"==typeof o&&(o=r[n]=[o]),Array.isArray(o)?o.push(i):r[n]=i}return r}function k(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function _(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r])))).join("&"):Object.keys(e).map((r=>{const n=e[r];if(null==n)return"";const i=encodeURIComponent(r)+"=",o=t&&t[r];return o?i+encodeURIComponent(o(n)):Array.isArray(n)?n.map((e=>k(e)?i+encodeURIComponent(JSON.stringify(e)):i+encodeURIComponent(e))).join("&"):k(n)?i+encodeURIComponent(JSON.stringify(n)):i+encodeURIComponent(n)})).filter((e=>e)).join("&"):""}function S(e=!1){let t,r=l.proxyUrl;if("string"==typeof e){t=X(e);const n=q(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw a.warn(c),new i.Z("urlutils:proxy-not-set",c);return t&&te()&&(r=ee(r)),C(r)}function I(e){const t=q(e);let r,n;if(t){const e=$(t.proxyUrl);r=e.path,n=e.query?O(e.query):null}if(r){const t=C(e);e=r+"?"+t.path;const i=_({...n,...t.query});i&&(e=`${e}?${i}`)}return e}const P={path:"",query:""};function $(e){const t=e.indexOf("?");return-1!==t?(P.path=e.slice(0,t),P.query=e.slice(t+1)):(P.path=e,P.query=null),P}function U(e){return(e=re(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=$(e).path),!0)).toLowerCase()}function j(e){const t={proxyUrl:e.proxyUrl,urlPrefix:U(e.urlPrefix)},r=l.proxyRules,n=t.urlPrefix;let i=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===n.indexOf(t)){if(n.length===t.length)return-1;i=e;break}0===t.indexOf(n)&&(i=e+1)}return r.splice(i,0,t),i}function q(e){const t=l.proxyRules,r=U(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function R(e,t){return e=T(e),t=T(t),re(e)===re(t)}function T(e){const t=(e=D(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function L(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),r=l.interceptors;if(r)for(const e of r)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function E(e,t,r=!1){const n=ae(e),i=ae(t);return!(!r&&n.scheme!==i.scheme)&&null!=n.host&&null!=i.host&&n.host.toLowerCase()===i.host.toLowerCase()&&n.port===i.port}function N(e){if("string"==typeof e){if(!M(e))return!0;e=ae(e)}if(E(e,v))return!0;const t=l.trustedServers||[];for(let r=0;r<t.length;r++){const n=F(t[r]);for(let t=0;t<n.length;t++)if(E(e,n[t]))return!0}return!1}function F(e){return w[e]||(Y(e)||Q(e)?w[e]=[new b(A(e))]:w[e]=[new b(`http://${e}`),new b(`https://${e}`)]),w[e]}function A(e,t=x,r){return Q(e)?r&&r.preserveProtocolRelative?e:"http"===v.scheme&&v.authority===Z(e).slice(2)?`http:${e}`:`https:${e}`:Y(e)?e:(0,s.j0)(K("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e))}function J(e,t=x,r){if(!M(e))return e;const n=D(e),i=n.toLowerCase(),o=D(t).toLowerCase().replace(/\/+$/,""),s=r?D(r).toLowerCase().replace(/\/+$/,""):null;if(s&&0!==o.indexOf(s))return e;const a=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let l=a(i,"/",i.indexOf("//")+2),c=-1;for(;i.slice(0,l+1)===o.slice(0,l)+"/"&&(c=l+1,l!==i.length);)l=a(i,"/",l+1);if(-1===c)return e;if(s&&c<s.length)return e;e=n.slice(c);const u=o.slice(c-1).replace(/[^/]+/g,"").length;if(u>0)for(let t=0;t<u;t++)e=`../${e}`;else e=`./${e}`;return e}function D(e){return function(e){const t=l.httpsDomains;if(!function(e){return p.test(e)||"http"===v.scheme&&Q(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),m.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===v.scheme&&n===v.authority&&!f.test(e)||(te()&&n===v.authority||t&&t.some((e=>n===e||n.endsWith(`.${e}`)))||te()&&!q(e))&&(e=ee(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=$(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=A(e=e.trim()))))}function K(...e){const t=e.filter(s.pC);if(!t||!t.length)return;const r=[];if(M(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return d.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&r.push("");const n=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function Z(e,t=!1){if(W(e)||G(e))return null;let r=e.indexOf("://");if(-1===r&&Q(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=re(e,!0)),e}function M(e){return Q(e)||Y(e)}function W(e){return null!=e&&"blob:"===e.slice(0,5)}function G(e){return"data:"===e.slice(0,5)}function z(e){const t=V(e);if(!t||!t.isBase64)return null;const r=atob(t.data),n=new Uint8Array(r.length);for(let e=0;e<r.length;e++)n[e]=r.charCodeAt(e);return n.buffer}const H=/^data:(.*?)(;base64)?,(.*)$/;function V(e){const t=e.match(H);if(!t)return null;const[,r,n,i]=t;return{mediaType:r,isBase64:!!n,data:i}}function B(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function Q(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function Y(e){return u.test(e)}function X(e){return h.test(e)||"https"===v.scheme&&Q(e)}function ee(e){return Q(e)?`https:${e}`:e.replace(p,"https:")}function te(){return"https"===v.scheme}function re(e,t=!1){return Q(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function ne(e){let t=0;if(M(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function ie(e,t){if(!e)return"";const r=C(e).path.replace(/\/+$/,""),n=r.substring(r.lastIndexOf("/")+1);if(null==t||!t.length)return n;const i=new RegExp(`.(${t.join("|")})$`,"ig");return n.replace(i,"")}function oe(e){return e.replace(/\/+$/,"")}function se(e,t,r){if(!(t&&r&&e&&M(e)))return e;const n=e.indexOf("//"),i=e.indexOf("/",n+2),o=e.indexOf(":",n+2),s=Math.min(i<0?e.length:i,o<0?e.length:o);return e.slice(n+2,s).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(s)}`}function ae(e){return"string"==typeof e?new b(A(e)):(e.scheme||(e.scheme=v.scheme),e)}function le(e,t){const r=C(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function ce(e,t,r){const n=C(e),i=n.query||{};return i[t]=String(r),`${n.path}?${_(i)}`}function ue(e,t){const r=C(e),n=r.query||{};for(const e in t)n[e]=t[e];const i=_(n);return i?`${r.path}?${i}`:r.path}function pe(e){if((0,s.Wi)(e))return null;const t=e.match(he);return t?t[1]:null}const he=/.*?\.([^\/]*)$/},15235:(e,t,r)=>{r.r(t),r.d(t,{default:()=>I});var n=r(43697),i=r(99880),o=r(20102),s=r(10736),a=r(22974),l=r(83379),c=r(70586),u=r(17452),p=r(5600),h=r(75215),d=r(71715),m=r(52011),f=r(6570),y=r(65587),g=r(15923),b=r(92604),v=(r(67676),r(80442),r(90578));const w=b.Z.getLogger("esri.portal.PortalItemResource");let x=class extends g.Z{constructor(e){super(e),this.portalItem=null}normalizeCtorArgs(e){return e&&e.portalItem&&e.path?{...e,path:this.normalizePath(e.path,e.portalItem)}:e}set path(e){(0,c.pC)(e)&&(0,u.YP)(e)?w.error("portalitemresource:invalid-path","A portal item resource path must be relative"):this._set("path",e)}_castPath(e){return this.normalizePath(e,this.portalItem)}get url(){return this.portalItem&&this.path?`${this.portalItem.itemUrl}/resources/${this.path}`:null}get itemRelativeUrl(){return this.portalItem&&this.path?`./resources/${this.path}`:null}fetch(e="json",t){const r=this.url;if((0,c.Wi)(r))throw new o.Z("portal-item-resource:fetch","Portal item resource does not refer to a valid item or path");return this.portalItem.portal._request(r,{responseType:e,query:{token:this.portalItem.apiKey},signal:(0,c.U2)(t,"signal")})}async update(e,t){return(await r.e(7873).then(r.bind(r,97873))).addOrUpdateResource(this,"update",e,t)}hasPath(){return(0,c.pC)(this.path)}normalizePath(e,t){return(0,c.Wi)(e)?e:(e=e.replace(/^\/+/,""),(0,c.pC)(t)&&(0,u.YP)(e)&&(e=(0,u.PF)(e,t.itemUrl)),e.replace(/^\/+/,"").replace(/^(\.\/)?resources\//,""))}};(0,n._)([(0,p.Cb)()],x.prototype,"portalItem",void 0),(0,n._)([(0,p.Cb)({type:String,value:null})],x.prototype,"path",null),(0,n._)([(0,v.p)("path")],x.prototype,"_castPath",null),(0,n._)([(0,p.Cb)({type:String,readOnly:!0})],x.prototype,"url",null),(0,n._)([(0,p.Cb)({type:String,readOnly:!0})],x.prototype,"itemRelativeUrl",null),x=(0,n._)([(0,m.j)("esri.portal.PortalItemResource")],x);const C=x;let O=class extends g.Z{constructor(e){super(e),this.created=null,this.rating=null}};(0,n._)([(0,p.Cb)()],O.prototype,"created",void 0),(0,n._)([(0,p.Cb)()],O.prototype,"rating",void 0),O=(0,n._)([(0,m.j)("esri.portal.PortalRating")],O);const k=O;var _;let S=_=class extends((0,s.eC)(l.Z)){constructor(e){super(e),this.access=null,this.accessInformation=null,this.apiKey=null,this.applicationProxies=null,this.avgRating=null,this.categories=null,this.created=null,this.culture=null,this.description=null,this.extent=null,this.groupCategories=null,this.id=null,this.itemControl=null,this.licenseInfo=null,this.modified=null,this.name=null,this.numComments=null,this.numRatings=null,this.numViews=null,this.owner=null,this.ownerFolder=null,this.portal=null,this.screenshots=null,this.size=null,this.snippet=null,this.sourceJSON=null,this.tags=null,this.title=null,this.type=null,this.typeKeywords=null,this.url=null}static from(e){return(0,h.TJ)(_,e)}destroy(){this.portal=null}get displayName(){const e=this.type,t=this.typeKeywords||[];let r=e;return"Feature Service"===e||"Feature Collection"===e?r=t.indexOf("Table")>-1?"Table":t.indexOf("Route Layer")>-1?"Route Layer":t.indexOf("Markup")>-1?"Markup":"Feature Layer":"Image Service"===e?r=t.indexOf("Elevation 3D Layer")>-1?"Elevation Layer":t.indexOf("Tiled Imagery")>-1?"Tiled Imagery Layer":"Imagery Layer":"Scene Service"===e?r="Scene Layer":"Scene Package"===e?r="Scene Layer Package":"Stream Service"===e?r="Feature Layer":"Geoprocessing Service"===e&&this.portal&&this.portal.isPortal?r=t.indexOf("Web Tool")>-1?"Tool":"Geoprocessing Service":"Geocoding Service"===e?r="Locator":"Geoenrichment Service"===e?r="GeoEnrichment Service":"Microsoft Powerpoint"===e?r="Microsoft PowerPoint":"GeoJson"===e?r="GeoJSON":"Globe Service"===e?r="Globe Layer":"Vector Tile Service"===e?r="Tile Layer":"netCDF"===e?r="NetCDF":"Map Service"===e?r=-1===t.indexOf("Spatiotemporal")&&(t.indexOf("Hosted Service")>-1||t.indexOf("Tiled")>-1)&&-1===t.indexOf("Relational")?"Tile Layer":"Map Image Layer":e&&e.toLowerCase().indexOf("add in")>-1?r=e.replace(/(add in)/gi,"Add-In"):"datastore catalog service"===e?r="Big Data File Share":"Compact Tile Package"===e?r="Tile Package (tpkx)":"OGCFeatureServer"===e&&(r="OGC Feature Layer"),r}readExtent(e){return e&&e.length?new f.Z(e[0][0],e[0][1],e[1][0],e[1][1]):null}get iconUrl(){const e=this.type&&this.type.toLowerCase()||"",t=this.typeKeywords||[];let r,n=!1,o=!1,s=!1,a=!1,l=!1,c=!1;return e.indexOf("service")>0||"feature collection"===e||"kml"===e||"wms"===e||"wmts"===e||"wfs"===e?(n=t.indexOf("Hosted Service")>-1,"feature service"===e||"feature collection"===e||"kml"===e||"wfs"===e?(o=t.indexOf("Table")>-1,s=t.indexOf("Route Layer")>-1,a=t.indexOf("Markup")>-1,l=-1!==t.indexOf("Spatiotemporal"),c=-1!==t.indexOf("UtilityNetwork"),r=l&&o?"spatiotemporaltable":o?"table":s?"routelayer":a?"markup":l?"spatiotemporal":n?"featureshosted":c?"utilitynetwork":"features"):r="map service"===e||"wms"===e||"wmts"===e?n||t.indexOf("Tiled")>-1||"wmts"===e?"maptiles":"mapimages":"scene service"===e?t.indexOf("Line")>-1?"sceneweblayerline":t.indexOf("3DObject")>-1?"sceneweblayermultipatch":t.indexOf("Point")>-1?"sceneweblayerpoint":t.indexOf("IntegratedMesh")>-1?"sceneweblayermesh":t.indexOf("PointCloud")>-1?"sceneweblayerpointcloud":t.indexOf("Polygon")>-1?"sceneweblayerpolygon":t.indexOf("Building")>-1?"sceneweblayerbuilding":t.indexOf("Voxel")>-1?"sceneweblayervoxel":"sceneweblayer":"image service"===e?t.indexOf("Elevation 3D Layer")>-1?"elevationlayer":t.indexOf("Tiled Imagery")>-1?"tiledimagerylayer":"imagery":"stream service"===e?"streamlayer":"vector tile service"===e?"vectortile":"datastore catalog service"===e?"datastorecollection":"geocoding service"===e?"geocodeservice":"geoprocessing service"===e&&t.indexOf("Web Tool")>-1&&this.portal&&this.portal.isPortal?"tool":"layers"):r="web map"===e||"cityengine web scene"===e?"maps":"web scene"===e?t.indexOf("ViewingMode-Local")>-1?"webscenelocal":"websceneglobal":"web mapping application"===e||"mobile application"===e||"application"===e||"operation view"===e||"desktop application"===e?"apps":"map document"===e||"map package"===e||"published map"===e||"scene document"===e||"globe document"===e||"basemap package"===e||"mobile basemap package"===e||"mobile map package"===e||"project package"===e||"project template"===e||"pro map"===e||"layout"===e||"layer"===e&&t.indexOf("ArcGIS Pro")>-1||"explorer map"===e&&t.indexOf("Explorer Document")?"mapsgray":"service definition"===e||"csv"===e||"shapefile"===e||"cad drawing"===e||"geojson"===e||"360 vr experience"===e||"netcdf"===e||"administrative report"===e?"datafiles":"explorer add in"===e||"desktop add in"===e||"windows viewer add in"===e||"windows viewer configuration"===e?"appsgray":"arcgis pro add in"===e||"arcgis pro configuration"===e?"addindesktop":"rule package"===e||"file geodatabase"===e||"sqlite geodatabase"===e||"csv collection"===e||"kml collection"===e||"windows mobile package"===e||"map template"===e||"desktop application template"===e||"gml"===e||"arcpad package"===e||"code sample"===e||"form"===e||"document link"===e||"earth configuration"===e||"operations dashboard add in"===e||"rules package"===e||"image"===e||"workflow manager package"===e||"explorer map"===e&&t.indexOf("Explorer Mapping Application")>-1||t.indexOf("Document")>-1?"datafilesgray":"network analysis service"===e||"geoprocessing service"===e||"geodata service"===e||"geometry service"===e||"geoprocessing package"===e||"locator package"===e||"geoprocessing sample"===e||"workflow manager service"===e?"toolsgray":"layer"===e||"layer package"===e||"explorer layer"===e?"layersgray":"scene package"===e?"scenepackage":"mobile scene package"===e?"mobilescenepackage":"tile package"===e||"compact tile package"===e?"tilepackage":"task file"===e?"taskfile":"report template"===e?"report-template":"statistical data collection"===e?"statisticaldatacollection":"insights workbook"===e?"workbook":"insights model"===e?"insightsmodel":"insights page"===e?"insightspage":"insights theme"===e?"insightstheme":"hub initiative"===e?"hubinitiative":"hubpage"===e?"hubpage":"hub event"===e?"hubevent":"hub site application"===e?"hubsite":"relational database connection"===e?"relationaldatabaseconnection":"big data file share"===e?"datastorecollection":"image collection"===e?"imagecollection":"style"===e?"style":"desktop style"===e?"desktopstyle":"dashboard"===e?"dashboard":"raster function template"===e?"rasterprocessingtemplate":"vector tile package"===e?"vectortilepackage":"ortho mapping project"===e?"orthomappingproject":"ortho mapping template"===e?"orthomappingtemplate":"solution"===e?"solutions":"geopackage"===e?"geopackage":"deep learning package"===e?"deeplearningpackage":"real time analytic"===e?"realtimeanalytics":"big data analytic"===e?"bigdataanalytics":"feed"===e?"feed":"excalibur imagery project"===e?"excaliburimageryproject":"notebook"===e?"notebook":"storymap"===e?"storymap":"survey123 add in"===e?"survey123addin":"mission"===e?"mission":"mission report"===e?"missionreport":"quickcapture project"===e?"quickcaptureproject":"pro report"===e?"proreport":"urban model"===e?"urbanmodel":"web experience"===e?"experiencebuilder":"web experience template"===e?"webexperiencetemplate":"workflow"===e?"workflow":"insights script"===e?"insightsscript":"kernel gateway connection"===e?"kernelgatewayconnection":"hub initiative template"===e?"hubinitiativetemplate":"storymap theme"===e?"storymaptheme":"knowledge graph"===e?"knowledgegraph":"native application"===e?"nativeapp":"native application installer"===e?"nativeappinstaller":"link chart"===e?"linkchart":"investigation"===e?"investigation":"ogcfeatureserver"===e?"features":"pro project"===e?"proproject":"insights workbook package"===e?"insightsworkbookpackage":"apache parquet"===e?"apacheparquet":"maps",r?(0,i.V)("esri/images/portal/"+r+"16.png"):null}get isLayer(){return["Map Service","Feature Service","Feature Collection","Scene Service","Image Service","Stream Service","Vector Tile Service","WMTS","WMS"].indexOf(this.type)>-1}get itemUrl(){const e=this.get("portal.restUrl");return e?e+"/content/items/"+this.id:null}get thumbnailUrl(){const e=this.itemUrl,t=this.thumbnail;return e&&t?this.portal._normalizeUrl(`${e}/info/${t}?f=json`):null}get userItemUrl(){const e=this.get("portal.restUrl");if(!e)return null;const t=this.owner||this.get("portal.user.username");return t?`${e}/content/users/${this.ownerFolder?`${t}/${this.ownerFolder}`:t}/items/${this.id}`:null}load(e){this.portal||(this.portal=y.Z.getDefault());const t=this.portal.load(e).then((()=>this.sourceJSON?this.sourceJSON:this.id&&this.itemUrl?this.portal._request(this.itemUrl,{signal:(0,c.pC)(e)?e.signal:null,query:{token:this.apiKey}}):{})).then((e=>{this.sourceJSON=e,this.read(e)}));return this.addResolvingPromise(t),Promise.resolve(this)}addRating(e){const t={method:"post",query:{}};return e instanceof k&&(e=e.rating),isNaN(e)||"number"!=typeof e||(t.query.rating=e),this.portal._request(this.itemUrl+"/addRating",t).then((()=>new k({rating:e,created:new Date})))}clone(){const e={access:this.access,accessInformation:this.accessInformation,applicationProxies:(0,a.d9)(this.applicationProxies),avgRating:this.avgRating,categories:(0,a.d9)(this.categories),created:(0,a.d9)(this.created),culture:this.culture,description:this.description,extent:(0,a.d9)(this.extent),groupCategories:(0,a.d9)(this.groupCategories),id:this.id,itemControl:this.itemControl,licenseInfo:this.licenseInfo,modified:(0,a.d9)(this.modified),name:this.name,numComments:this.numComments,numRatings:this.numRatings,numViews:this.numViews,owner:this.owner,ownerFolder:this.ownerFolder,portal:this.portal,screenshots:(0,a.d9)(this.screenshots),size:this.size,snippet:this.snippet,tags:(0,a.d9)(this.tags),thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:(0,a.d9)(this.typeKeywords),url:this.url};return this.loaded&&(e.loadStatus="loaded"),new _({sourceJSON:this.sourceJSON}).set(e)}createPostQuery(){const e=this.toJSON();for(const t in e)"tags"===t&&null!==e[t]&&(e[t]=e[t].join(", ")),"typeKeywords"===t&&null!==e[t]&&(e[t]=e[t].join(", ")),"extent"===t&&e[t]&&(e[t]=JSON.stringify(e[t]));return e}deleteRating(){return this.portal._request(this.itemUrl+"/deleteRating",{method:"post"}).then((()=>{}))}fetchData(e="json",t){return this.portal._request(this.itemUrl+"/data",{responseType:e,...t,query:{token:this.apiKey}})}fetchRating(e){return this.portal._request(this.itemUrl+"/rating",{query:{token:this.apiKey},...e}).then((e=>null!=e.rating?(e.created=new Date(e.created),new k(e)):null))}fetchRelatedItems(e,t){return this.portal._requestToTypedArray(this.itemUrl+"/relatedItems",{query:{...e,token:this.apiKey},...t},_)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}reload(){return this.portal._request(this.itemUrl,{cacheBust:!0,query:{token:this.apiKey}}).then((e=>(this.sourceJSON=e,this.read(e),this)))}update(e){return this.id?this.load().then((()=>this.portal._signIn())).then((()=>{const t=e&&e.data,r={method:"post"};r.query=this.createPostQuery();for(const e in r.query)null===r.query[e]&&(r.query[e]="");return r.query.clearEmptyFields=!0,null!=t&&("string"==typeof t?r.query.text=t:"object"==typeof t&&(r.query.text=JSON.stringify(t))),this.portal._request(`${this.userItemUrl}/update`,r).then((()=>this.reload()))})):Promise.reject(new o.Z("portal:item-does-not-exist","The item does not exist yet and cannot be updated"))}updateThumbnail(e){return this.id?this.load().then((()=>this.portal._signIn())).then((()=>{const t=e.thumbnail,r=e.filename,n={method:"post"};if("string"==typeof t)(0,u.HK)(t)?n.query={data:t}:n.query={url:(0,u.hF)(t)},(0,c.pC)(r)&&(n.query.filename=r);else{const e=new FormData;(0,c.pC)(r)?e.append("file",t,r):e.append("file",t),n.body=e}return this.portal._request(`${this.userItemUrl}/updateThumbnail`,n).then((()=>this.reload()))})):Promise.reject(new o.Z("portal:item-does-not-exist","The item does not exist yet and cannot be updated"))}async fetchResources(e={},t){return(await r.e(7873).then(r.bind(r,97873))).fetchResources(this,e,t)}async addResource(e,t,n){const i=await r.e(7873).then(r.bind(r,97873));return e.portalItem=this,i.addOrUpdateResource(e,"add",t,n)}async removeResource(e,t){const n=await r.e(7873).then(r.bind(r,97873));if(e.portalItem&&e.portalItem.itemUrl!==this.itemUrl)throw new o.Z("removeresource:portal-item-mismatch","The portal item associated with the provided resource does not match the item");return n.removeResource(this,e,t)}async removeAllResources(e){return(await r.e(7873).then(r.bind(r,97873))).removeAllResources(this,e)}resourceFromPath(e){return new C({portalItem:this,path:e})}toJSON(){const e=this.extent,t={created:this.created&&this.created.getTime(),description:this.description,extent:e&&[[e.xmin,e.ymin],[e.xmax,e.ymax]],id:this.id,modified:this.modified&&this.modified.getTime(),name:this.name,owner:this.owner,ownerFolder:this.ownerFolder,snippet:this.snippet,tags:this.tags,thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:this.typeKeywords,url:this.url};return(0,a.yd)(t)}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");return new _({sourceJSON:e})}_getPostQuery(){const e=this.toJSON();for(const t in e)"tags"===t&&null!==e[t]&&(e[t]=e[t].join(", ")),"typeKeywords"===t&&null!==e[t]&&(e[t]=e[t].join(", ")),"extent"===t&&e[t]&&(e[t]=JSON.stringify(e[t]));return e}};(0,n._)([(0,p.Cb)({type:["private","shared","org","public"]})],S.prototype,"access",void 0),(0,n._)([(0,p.Cb)()],S.prototype,"accessInformation",void 0),(0,n._)([(0,p.Cb)({type:String})],S.prototype,"apiKey",void 0),(0,n._)([(0,p.Cb)({json:{read:{source:"appProxies"}}})],S.prototype,"applicationProxies",void 0),(0,n._)([(0,p.Cb)()],S.prototype,"avgRating",void 0),(0,n._)([(0,p.Cb)()],S.prototype,"categories",void 0),(0,n._)([(0,p.Cb)({type:Date})],S.prototype,"created",void 0),(0,n._)([(0,p.Cb)()],S.prototype,"culture",void 0),(0,n._)([(0,p.Cb)()],S.prototype,"description",void 0),(0,n._)([(0,p.Cb)({readOnly:!0})],S.prototype,"displayName",null),(0,n._)([(0,p.Cb)({type:f.Z})],S.prototype,"extent",void 0),(0,n._)([(0,d.r)("extent")],S.prototype,"readExtent",null),(0,n._)([(0,p.Cb)()],S.prototype,"groupCategories",void 0),(0,n._)([(0,p.Cb)({readOnly:!0})],S.prototype,"iconUrl",null),(0,n._)([(0,p.Cb)()],S.prototype,"id",void 0),(0,n._)([(0,p.Cb)({readOnly:!0})],S.prototype,"isLayer",null),(0,n._)([(0,p.Cb)()],S.prototype,"itemControl",void 0),(0,n._)([(0,p.Cb)({readOnly:!0})],S.prototype,"itemUrl",null),(0,n._)([(0,p.Cb)()],S.prototype,"licenseInfo",void 0),(0,n._)([(0,p.Cb)({type:Date})],S.prototype,"modified",void 0),(0,n._)([(0,p.Cb)()],S.prototype,"name",void 0),(0,n._)([(0,p.Cb)()],S.prototype,"numComments",void 0),(0,n._)([(0,p.Cb)()],S.prototype,"numRatings",void 0),(0,n._)([(0,p.Cb)()],S.prototype,"numViews",void 0),(0,n._)([(0,p.Cb)()],S.prototype,"owner",void 0),(0,n._)([(0,p.Cb)()],S.prototype,"ownerFolder",void 0),(0,n._)([(0,p.Cb)({type:y.Z})],S.prototype,"portal",void 0),(0,n._)([(0,p.Cb)()],S.prototype,"screenshots",void 0),(0,n._)([(0,p.Cb)()],S.prototype,"size",void 0),(0,n._)([(0,p.Cb)()],S.prototype,"snippet",void 0),(0,n._)([(0,p.Cb)()],S.prototype,"sourceJSON",void 0),(0,n._)([(0,p.Cb)()],S.prototype,"tags",void 0),(0,n._)([(0,p.Cb)()],S.prototype,"thumbnail",void 0),(0,n._)([(0,p.Cb)({readOnly:!0})],S.prototype,"thumbnailUrl",null),(0,n._)([(0,p.Cb)()],S.prototype,"title",void 0),(0,n._)([(0,p.Cb)()],S.prototype,"type",void 0),(0,n._)([(0,p.Cb)()],S.prototype,"typeKeywords",void 0),(0,n._)([(0,p.Cb)()],S.prototype,"url",void 0),(0,n._)([(0,p.Cb)({readOnly:!0})],S.prototype,"userItemUrl",null),S=_=(0,n._)([(0,m.j)("esri.portal.PortalItem")],S);const I=S}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8387],{84552:(e,t,r)=>{r.d(t,{Z:()=>p});var n,i=r(43697),o=r(10736),s=r(35463),l=r(5600),a=(r(67676),r(80442),r(75215),r(52011)),u=r(78981);let c=n=class extends o.wq{constructor(e){super(e),this.value=0,this.unit="milliseconds"}toMilliseconds(){return(0,s.rJ)(this.value,this.unit,"milliseconds")}clone(){return new n({value:this.value,unit:this.unit})}};(0,i._)([(0,l.Cb)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),(0,i._)([(0,l.Cb)({type:u.v.apiValues,json:{type:u.v.jsonValues,read:u.v.read,write:u.v.write},nonNullable:!0})],c.prototype,"unit",void 0),c=n=(0,i._)([(0,a.j)("esri.TimeInterval")],c);const p=c},25929:(e,t,r)=>{r.d(t,{f:()=>o,i:()=>p,p:()=>f,r:()=>l,t:()=>s,w:()=>a});var n=r(70586),i=r(17452);function o(e,t){const r=t&&t.url&&t.url.path;if(e&&r&&(e=(0,i.hF)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,i.PF)(e,t.portalItem.itemUrl);c.test(r)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return d(e,t&&t.portal)}function s(e,t,r=0){if(!e)return e;!(0,i.YP)(e)&&t&&t.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let n=(0,i.hF)(e);if(t){const r=t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.rootPath||t.url&&t.url.path;if(r){const o=d(r,t.portal);n=(0,i.PF)(d(n,t.portal),o,o),n!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(n)}}return n=function(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,i.Ie)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}(n,t&&t.portal),(0,i.YP)(n)&&(n=(0,i.Fv)(n)),null!=t&&t.resources&&null!=t&&t.portalItem&&!(0,i.YP)(n)&&!(0,i.HK)(n)&&0===r&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(n)}),n}function l(e,t,r){return o(e,r)}function a(e,t,r,n){const i=s(e,n);void 0!==i&&(t[r]=i)}const u=/\/items\/([^\/]+)\/resources\//,c=/^\.\/resources\//;function p(e){const t=(0,n.pC)(e)?e.match(u):null;return(0,n.pC)(t)?t[1]:null}function d(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`;return(0,i.D6)(i.Gd,`${i.Gd.scheme}://${r}`)?(0,i.Ie)(e,t.portalHostname,r):(0,i.Ie)(e,r,t.portalHostname)}const f=Object.freeze({__proto__:null,fromJSON:o,toJSON:s,read:l,write:a,itemIdFromResourceUrl:p})},36030:(e,t,r)=>{r.d(t,{J:()=>o});var n=r(35454),i=r(5600);function o(e,t={}){var r;const o=e instanceof n.Xn?e:new n.Xn(e,t),s={type:null==(r=null==t?void 0:t.ignoreUnknown)||r?o.apiValues:String,readOnly:null==t?void 0:t.readOnly,json:{type:o.jsonValues,read:(null==t||!t.readOnly)&&{reader:o.read},write:{writer:o.write}}};return void 0!==(null==t?void 0:t.default)&&(s.json.default=t.default),void 0!==(null==t?void 0:t.name)&&(s.json.name=t.name),(0,i.Cb)(s)}},91460:(e,t,r)=>{function n(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function i(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,r);if(Array.isArray(t)){const n=t.slice();for(const t of n)e.addEventListener(t,r);return{remove(){for(const t of n)e.removeEventListener(t,r)}}}return e.addEventListener(t,r),{remove(){e.removeEventListener(t,r)}}}function o(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const o=i(e,t,(t=>{o.remove(),r.call(e,t)}));return{remove(){o.remove()}}}r.d(t,{vT:()=>n,on:()=>i,IH:()=>o})},95330:(e,t,r)=>{r.d(t,{e4:()=>T,$6:()=>a,Ue:()=>u,zE:()=>c,dD:()=>_,hh:()=>E,vr:()=>N,Ds:()=>U,as:()=>I,WW:()=>x,R8:()=>w,D_:()=>b,Hc:()=>f,tI:()=>j,y8:()=>F,fu:()=>h,$F:()=>v,d1:()=>S,DB:()=>C,r9:()=>y,k_:()=>p,H9:()=>m,gx:()=>O,Hl:()=>g});const n=(i=r(16358).Z,{setTimeout:(e,t)=>{const r=i.setTimeout(e,t);return{remove:()=>i.clearTimeout(r)}}});var i,o=r(20102),s=r(91460),l=(r(92604),r(70586));function a(e){return Promise.all(e)}function u(e){return new Promise(((t,r)=>{try{e(t,r)}catch(e){Promise.resolve().then((()=>r(e)))}}))}function c(e="Aborted"){return new o.Z("AbortError",e)}function p(e,t="Aborted"){if(f(e))throw c(t)}function d(e){return(0,l.pC)(e)?"aborted"in e?e:e.signal:e}function f(e){const t=d(e);return(0,l.pC)(t)&&t.aborted}function y(e){if(b(e))throw e}function m(e){if(!b(e))throw e}function h(e,t){const r=d(e);if(!(0,l.Wi)(r)){if(!r.aborted)return(0,s.IH)(r,"abort",(()=>t()));t()}}function v(e,t){const r=d(e);if(!(0,l.Wi)(r))return p(r),(0,s.IH)(r,"abort",(()=>t(c())))}function g(e,t){const r=d(t);return(0,l.Wi)(r)?e:new Promise(((r,n)=>{let i=h(t,(()=>n(c())));const o=()=>i=(0,l.hw)(i);e.then(o,o),e.then(r,n)}))}function b(e){return e&&"AbortError"===e.name}function w(e){return e.catch((e=>{if(!b(e))throw e}))}function _(){let e=null;const t=new Promise(((t,r)=>{e={promise:void 0,resolve:t,reject:r}}));return e.promise=t,e}function I(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return I(t.map((t=>e[t]))).then((e=>{const r={};return t.forEach(((t,n)=>r[t]=e[n])),r}))}const t=e;return u((e=>{const r=[];let n=t.length;0===n&&e(r),t.forEach((t=>{const i={promise:t||Promise.resolve(t)};r.push(i),i.promise.then((e=>{i.value=e})).catch((e=>{i.error=e})).then((()=>{--n,0===n&&e(r)}))}))}))}function x(e){return I(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function S(e){return Promise.reject(e)}function C(e){return Promise.resolve(e)}function T(e,t,r){const n=new AbortController;return h(r,(()=>n.abort())),new Promise(((r,i)=>{let o=setTimeout((()=>{o=0,r(t)}),e);h(n,(()=>{o&&(clearTimeout(o),i(c()))}))}))}function F(e){return e&&"function"==typeof e.then}function O(e){return j(e)?e:Promise.resolve(e)}function j(e){return e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}function U(e,t=-1){let r,n,i,o,s=null;const a=(...u)=>{if(r){n=u,o&&o.reject(c()),o=_();const e=(0,l.j0)(o.promise);if(s){const e=s;s=null,e.abort()}return e}if(i=o||_(),o=null,t>0){const n=new AbortController;r=O(e(...u,n.signal));const i=r;T(t).then((()=>{r===i&&(o?n.abort():s=n)}))}else r=1,r=O(e(...u));const p=()=>{const e=n;n=i=r=s=null,null!=e&&a(...e)},d=r,f=i;return d.then(p,p),d.then(f.resolve,f.reject),(0,l.j0)(f.promise)};return a}function E(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n})),i=t=>{e(t)};return i.resolve=t=>e(t),i.reject=e=>t(e),i.timeout=(e,t)=>n.setTimeout((()=>i.reject(t)),e),i.promise=r,i}function N(e){let t=new AbortController;const r=e(t.signal);let n={promise:r,finished:!1,abort:()=>{t&&(t.abort(),t=null)}};const i=()=>{n&&(n.finished=!0,n=null),t=null};return r.then(i,i),n}},17452:(e,t,r)=>{r.d(t,{R9:()=>g,qg:()=>F,tD:()=>E,ZN:()=>ue,fl:()=>ce,AX:()=>_,Gd:()=>b,Ie:()=>se,sJ:()=>Y,AH:()=>H,vt:()=>ie,oh:()=>D,P$:()=>G,Ml:()=>pe,ed:()=>N,b7:()=>T,D6:()=>P,tm:()=>$,YP:()=>J,jc:()=>M,HK:()=>z,$U:()=>K,oC:()=>Q,kl:()=>Z,v_:()=>q,hF:()=>A,_l:()=>W,PF:()=>L,Fv:()=>k,B7:()=>C,u0:()=>x,Yd:()=>ne,Hu:()=>ae,Qj:()=>oe,hO:()=>ee,mN:()=>I});var n=r(68773),i=r(20102),o=(r(16358),r(92604)),s=r(70586);const l=o.Z.getLogger("esri.core.urlUtils"),a=n.Z.request,u="esri/config: esriConfig.request.proxyUrl is not set.",c=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,p=/^\s*http:/i,d=/^\s*https:/i,f=/^\s*file:/i,y=/:\d+$/,m=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,h=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),v=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class g{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,s.j0)(this.uri.match(h));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,s.j0)(this.authority.match(v)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const b=new g(n.Z.applicationUrl),w={},_=(()=>{const e=(0,s.j0)(b.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${b.scheme}://${b.host}${null!=b.port?`:${b.port}`:""}${t}`})();function I(e){const t={path:null,query:null},r=new g(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,n),t.query=x(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function x(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,i;t<0?(n=decodeURIComponent(e),i=""):(n=decodeURIComponent(e.slice(0,t)),i=decodeURIComponent(e.slice(t+1)));let o=r[n];"string"==typeof o&&(o=r[n]=[o]),Array.isArray(o)?o.push(i):r[n]=i}return r}function S(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function C(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r])))).join("&"):Object.keys(e).map((r=>{const n=e[r];if(null==n)return"";const i=encodeURIComponent(r)+"=",o=t&&t[r];return o?i+encodeURIComponent(o(n)):Array.isArray(n)?n.map((e=>S(e)?i+encodeURIComponent(JSON.stringify(e)):i+encodeURIComponent(e))).join("&"):S(n)?i+encodeURIComponent(JSON.stringify(n)):i+encodeURIComponent(n)})).filter((e=>e)).join("&"):""}function T(e=!1){let t,r=a.proxyUrl;if("string"==typeof e){t=K(e);const n=N(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw l.warn(u),new i.Z("urlutils:proxy-not-set",u);return t&&te()&&(r=ee(r)),I(r)}function F(e){const t=N(e);let r,n;if(t){const e=j(t.proxyUrl);r=e.path,n=e.query?x(e.query):null}if(r){const t=I(e);e=r+"?"+t.path;const i=C({...n,...t.query});i&&(e=`${e}?${i}`)}return e}const O={path:"",query:""};function j(e){const t=e.indexOf("?");return-1!==t?(O.path=e.slice(0,t),O.query=e.slice(t+1)):(O.path=e,O.query=null),O}function U(e){return(e=re(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=j(e).path),!0)).toLowerCase()}function E(e){const t={proxyUrl:e.proxyUrl,urlPrefix:U(e.urlPrefix)},r=a.proxyRules,n=t.urlPrefix;let i=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===n.indexOf(t)){if(n.length===t.length)return-1;i=e;break}0===t.indexOf(n)&&(i=e+1)}return r.splice(i,0,t),i}function N(e){const t=a.proxyRules,r=U(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function $(e,t){return e=R(e),t=R(t),re(e)===re(t)}function R(e){const t=(e=k(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function D(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),r=a.interceptors;if(r)for(const e of r)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function P(e,t,r=!1){const n=le(e),i=le(t);return!(!r&&n.scheme!==i.scheme)&&null!=n.host&&null!=i.host&&n.host.toLowerCase()===i.host.toLowerCase()&&n.port===i.port}function Z(e){if("string"==typeof e){if(!J(e))return!0;e=le(e)}if(P(e,b))return!0;const t=a.trustedServers||[];for(let r=0;r<t.length;r++){const n=V(t[r]);for(let t=0;t<n.length;t++)if(P(e,n[t]))return!0}return!1}function V(e){return w[e]||(X(e)||Q(e)?w[e]=[new g(A(e))]:w[e]=[new g(`http://${e}`),new g(`https://${e}`)]),w[e]}function A(e,t=_,r){return Q(e)?r&&r.preserveProtocolRelative?e:"http"===b.scheme&&b.authority===G(e).slice(2)?`http:${e}`:`https:${e}`:X(e)?e:(0,s.j0)(q("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e))}function L(e,t=_,r){if(!J(e))return e;const n=k(e),i=n.toLowerCase(),o=k(t).toLowerCase().replace(/\/+$/,""),s=r?k(r).toLowerCase().replace(/\/+$/,""):null;if(s&&0!==o.indexOf(s))return e;const l=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let a=l(i,"/",i.indexOf("//")+2),u=-1;for(;i.slice(0,a+1)===o.slice(0,a)+"/"&&(u=a+1,a!==i.length);)a=l(i,"/",a+1);if(-1===u)return e;if(s&&u<s.length)return e;e=n.slice(u);const c=o.slice(u-1).replace(/[^/]+/g,"").length;if(c>0)for(let t=0;t<c;t++)e=`../${e}`;else e=`./${e}`;return e}function k(e){return function(e){const t=a.httpsDomains;if(!function(e){return p.test(e)||"http"===b.scheme&&Q(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),y.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===b.scheme&&n===b.authority&&!m.test(e)||(te()&&n===b.authority||t&&t.some((e=>n===e||n.endsWith(`.${e}`)))||te()&&!N(e))&&(e=ee(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=j(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=A(e=e.trim()))))}function q(...e){const t=e.filter(s.pC);if(!t||!t.length)return;const r=[];if(J(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return f.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&r.push("");const n=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function G(e,t=!1){if(M(e)||z(e))return null;let r=e.indexOf("://");if(-1===r&&Q(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=re(e,!0)),e}function J(e){return Q(e)||X(e)}function M(e){return null!=e&&"blob:"===e.slice(0,5)}function z(e){return"data:"===e.slice(0,5)}function H(e){const t=Y(e);if(!t||!t.isBase64)return null;const r=atob(t.data),n=new Uint8Array(r.length);for(let e=0;e<r.length;e++)n[e]=r.charCodeAt(e);return n.buffer}const B=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){const t=e.match(B);if(!t)return null;const[,r,n,i]=t;return{mediaType:r,isBase64:!!n,data:i}}function W(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function Q(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function X(e){return c.test(e)}function K(e){return d.test(e)||"https"===b.scheme&&Q(e)}function ee(e){return Q(e)?`https:${e}`:e.replace(p,"https:")}function te(){return"https"===b.scheme}function re(e,t=!1){return Q(e)?e.slice(2):(e=e.replace(c,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function ne(e){let t=0;if(J(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function ie(e,t){if(!e)return"";const r=I(e).path.replace(/\/+$/,""),n=r.substring(r.lastIndexOf("/")+1);if(null==t||!t.length)return n;const i=new RegExp(`.(${t.join("|")})$`,"ig");return n.replace(i,"")}function oe(e){return e.replace(/\/+$/,"")}function se(e,t,r){if(!(t&&r&&e&&J(e)))return e;const n=e.indexOf("//"),i=e.indexOf("/",n+2),o=e.indexOf(":",n+2),s=Math.min(i<0?e.length:i,o<0?e.length:o);return e.slice(n+2,s).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(s)}`}function le(e){return"string"==typeof e?new g(A(e)):(e.scheme||(e.scheme=b.scheme),e)}function ae(e,t){const r=I(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function ue(e,t,r){const n=I(e),i=n.query||{};return i[t]=String(r),`${n.path}?${C(i)}`}function ce(e,t){const r=I(e),n=r.query||{};for(const e in t)n[e]=t[e];const i=C(n);return i?`${r.path}?${i}`:r.path}function pe(e){if((0,s.Wi)(e))return null;const t=e.match(de);return t?t[1]:null}const de=/.*?\.([^\/]*)$/},66577:(e,t,r)=>{r.d(t,{qM:()=>c});var n=r(75215),i=r(6570),o=r(9361),s=r(65091),l=r(13473),a=r(17332),u=r(58901);r(82971),r(86973),r(33955);const c={base:o.Z,key:"type",typeMap:{extent:i.Z,multipoint:s.Z,point:l.Z,polyline:u.Z,polygon:a.Z}};(0,n.N7)(c)},33955:(e,t,r)=>{r.d(t,{im:()=>m,q9:()=>g,Ji:()=>h,YX:()=>c,aW:()=>p,wp:()=>d,oU:()=>y,l9:()=>f});var n=r(70586),i=r(6570),o=r(9361),s=r(65091),l=r(13473),a=r(17332),u=r(58901);function c(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function p(e){return void 0!==e.points}function d(e){return void 0!==e.x&&void 0!==e.y}function f(e){return void 0!==e.paths}function y(e){return void 0!==e.rings}function m(e){return(0,n.Wi)(e)?null:e instanceof o.Z?e:d(e)?l.Z.fromJSON(e):f(e)?u.Z.fromJSON(e):y(e)?a.Z.fromJSON(e):p(e)?s.Z.fromJSON(e):c(e)?i.Z.fromJSON(e):null}function h(e){return e?d(e)?"esriGeometryPoint":f(e)?"esriGeometryPolyline":y(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":p(e)?"esriGeometryMultipoint":null:null}const v={esriGeometryPoint:l.Z,esriGeometryPolyline:u.Z,esriGeometryPolygon:a.Z,esriGeometryEnvelope:i.Z,esriGeometryMultipoint:s.Z};function g(e){return e&&v[e]||null}},86973:(e,t,r)=>{r.d(t,{Mk:()=>i,P$:()=>o});var n=r(35454);const i=(0,n.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),o=(0,n.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},40330:(e,t,r)=>{r.d(t,{Dp:()=>u,id:()=>l,qh:()=>a,i8:()=>o,Nv:()=>s});var n=r(80442),i=r(17452);const o="4.22",s={async request(e,t){var n;const{default:o}=await r.e(3172).then(r.bind(r,3172)),s=e.options,l=s.responseType;s.signal=null==t?void 0:t.signal,s.responseType="native"===l||"native-request-init"===l?"native-request-init":["blob","json","text"].includes(l)&&null!=(n=(0,i.oh)(e.url))&&n.after?l:"array-buffer";const a=await o(e.url,s),u={data:a.data,ssl:a.ssl};switch(a.requestOptions.responseType){case"native-request-init":return delete u.data.signal,u;case"blob":u.data=await u.data.arrayBuffer();break;case"json":u.data=(new TextEncoder).encode(JSON.stringify(u.data)).buffer;break;case"text":u.data=(new TextEncoder).encode(u.data).buffer}return{result:u,transferList:[u.data]}}};let l;function a(e){l=e}function u(e){const t=l&&l.findCredential(e);return t&&t.token?(0,i.ZN)(e,"token",t.token):e}(0,n.Z)("host-webworker")||((0,n.Z)("edge")||(0,n.Z)("trident"))&&console.warn("Deprecated browser - see http://esriurl.com/oldbrowser")},88387:(e,t,r)=>{r.r(t),r.d(t,{default:()=>X});var n,i=r(43697),o=(r(66577),r(51773)),s=(r(16050),r(12501),r(95088),r(79056),r(5499),r(84382)),l=r(30687),a=r(91423),u=r(32400),c=r(3172),p=r(78223),d=r(20102),f=r(16358),y=r(92604),m=r(70586),h=r(16453),v=r(95330),g=r(5600),b=(r(67676),r(80442),r(75215)),w=r(71715),_=r(52011),I=r(63213),x=r(86973),S=r(29600),C=r(17287),T=r(41522),F=r(17017),O=r(38009),j=r(16859),U=r(34760),E=r(72965),N=r(28294),$=r(21506),R=r(55785),D=r(53518),P=r(35671),Z=r(54306),V=r(30707),A=r(10736);let L=n=class extends A.wq{constructor(){super(...arguments),this.age=null,this.ageReceived=null,this.displayCount=null,this.maxObservations=1}clone(){return new n({age:this.age,ageReceived:this.ageReceived,displayCount:this.displayCount,maxObservations:this.maxObservations})}};(0,i._)([(0,g.Cb)({type:Number,json:{write:!0}})],L.prototype,"age",void 0),(0,i._)([(0,g.Cb)({type:Number,json:{write:!0}})],L.prototype,"ageReceived",void 0),(0,i._)([(0,g.Cb)({type:Number,json:{write:!0}})],L.prototype,"displayCount",void 0),(0,i._)([(0,g.Cb)({type:Number,json:{write:!0}})],L.prototype,"maxObservations",void 0),L=n=(0,i._)([(0,_.j)("esri.layers.support.PurgeOptions")],L);const k=L;var q=r(40555),G=r(57444),J=r(32163),M=r(20682),z=r(82971),H=r(6570);const B=y.Z.getLogger("esri.layers.StreamLayer"),Y=(0,D.v)();let W=class extends((0,T.h)((0,N.n)((0,E.M)((0,U.Q)((0,C.Y)((0,O.q)((0,j.I)((0,h.R)((0,F.N)(S.Z)))))))))){constructor(...e){super(...e),this.copyright=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.featureReduction=null,this.fields=null,this.fieldsIndex=null,this.geometryDefinition=null,this.geometryType=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.maxReconnectionAttempts=0,this.maxReconnectionInterval=20,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.operationalLayerType="ArcGISStreamLayer",this.popupEnabled=!0,this.popupTemplate=null,this.purgeOptions=new k,this.screenSizePerspectiveEnabled=!0,this.sourceJSON=null,this.spatialReference=z.Z.WGS84,this.type="stream",this.url=null,this.updateInterval=300,this.webSocketUrl=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){if(!("WebSocket"in f.Z))return this.addResolvingPromise(Promise.reject(new d.Z("stream-layer:websocket-unsupported","WebSocket is not supported in this browser. StreamLayer will not have real-time connection with the stream service."))),Promise.resolve(this);const t=(0,m.pC)(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Stream Service","Feed"]},e).catch(v.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){(0,P.YN)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,r){const n=(t=t.layerDefinition||t).drawingInfo&&t.drawingInfo.renderer||void 0;if(n){const e=(0,a.a)(n,t,r)||void 0;return e||B.error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:r}),e}if(t.defaultSymbol)return t.types&&t.types.length?new l.Z({defaultSymbol:Q(t.defaultSymbol,t,r),field:t.typeIdField,uniqueValueInfos:t.types.map((e=>({id:e.id,symbol:Q(e.symbol,e,r)})))}):new s.Z({symbol:Q(t.defaultSymbol,t,r)})}createPopupTemplate(e){return(0,J.eZ)(this,e)}createQuery(){const e=new G.Z;return e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1",e}getFieldDomain(e,t){if(!this.fields)return null;let r=null;return this.fields.some((t=>(t.name===e&&(r=t.domain),!!r))),r}getField(e){return this.fieldsIndex.get(e)}async _fetchService(e){var t;if(this.webSocketUrl){var r;if(null==(r=this.timeInfo)||!r.trackIdField)throw new d.Z("stream-layer:missing-metadata","The stream layer trackIdField must be specified.");if(!this.objectIdField)throw new d.Z("stream-layer:missing-metadata","The stream layer objectIdField must be specified.");if(!this.fields)throw new d.Z("stream-layer:missing-metadata","The stream layer fields must be specified.");if(!this.geometryType)throw new d.Z("stream-layer:missing-metadata","The stream layer geometryType must be specified.");this.url=this.webSocketUrl}else if(!this.sourceJSON){const{data:t}=await(0,c.default)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,...this.parsedUrl.query},responseType:"json",signal:e});this.sourceJSON=t}return this.sourceJSON={...null!=(t=this.sourceJSON)?t:{},objectIdField:"__esri_stream_id__"},this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl}),(0,P.YN)(this.renderer,this.fieldsIndex),(0,P.UF)(this.timeInfo,this.fieldsIndex),(0,q.y)(this,{origin:"service"})}};(0,i._)([(0,g.Cb)({type:String})],W.prototype,"copyright",void 0),(0,i._)([(0,g.Cb)({readOnly:!0})],W.prototype,"defaultPopupTemplate",null),(0,i._)([(0,g.Cb)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],W.prototype,"definitionExpression",void 0),(0,i._)([(0,g.Cb)({type:String})],W.prototype,"displayField",void 0),(0,i._)([(0,g.Cb)({type:M.Z})],W.prototype,"elevationInfo",void 0),(0,i._)([(0,g.Cb)(R.d)],W.prototype,"featureReduction",void 0),(0,i._)([(0,g.Cb)(Y.fields)],W.prototype,"fields",void 0),(0,i._)([(0,g.Cb)(Y.fieldsIndex)],W.prototype,"fieldsIndex",void 0),(0,i._)([(0,g.Cb)({type:H.Z})],W.prototype,"geometryDefinition",void 0),(0,i._)([(0,g.Cb)({type:x.Mk.apiValues,json:{read:{reader:x.Mk.read}}})],W.prototype,"geometryType",void 0),(0,i._)([(0,g.Cb)($.iR)],W.prototype,"labelsVisible",void 0),(0,i._)([(0,g.Cb)({type:[Z.Z],json:{read:{source:"layerDefinition.drawingInfo.labelingInfo",reader:V.r},write:{target:"layerDefinition.drawingInfo.labelingInfo"}}})],W.prototype,"labelingInfo",void 0),(0,i._)([(0,g.Cb)($.rn)],W.prototype,"legendEnabled",void 0),(0,i._)([(0,g.Cb)({type:["show","hide"]})],W.prototype,"listMode",void 0),(0,i._)([(0,g.Cb)({type:b.z8})],W.prototype,"maxReconnectionAttempts",void 0),(0,i._)([(0,g.Cb)({type:b.z8})],W.prototype,"maxReconnectionInterval",void 0),(0,i._)([(0,g.Cb)($.u1)],W.prototype,"maxScale",void 0),(0,i._)([(0,g.Cb)($.rO)],W.prototype,"minScale",void 0),(0,i._)([(0,g.Cb)({type:String})],W.prototype,"objectIdField",void 0),(0,i._)([(0,g.Cb)({value:"ArcGISStreamLayer",type:["ArcGISStreamLayer"]})],W.prototype,"operationalLayerType",void 0),(0,i._)([(0,g.Cb)($.C_)],W.prototype,"popupEnabled",void 0),(0,i._)([(0,g.Cb)({type:o.Z,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],W.prototype,"popupTemplate",void 0),(0,i._)([(0,g.Cb)({type:k})],W.prototype,"purgeOptions",void 0),(0,i._)([(0,g.Cb)({types:u.A,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{name:"layerDefinition.drawingInfo.renderer",types:u.o,write:!0}},write:{target:"layerDefinition.drawingInfo.renderer"}}})],W.prototype,"renderer",null),(0,i._)([(0,w.r)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,w.r)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],W.prototype,"readRenderer",null),(0,i._)([(0,g.Cb)($.YI)],W.prototype,"screenSizePerspectiveEnabled",void 0),(0,i._)([(0,g.Cb)({type:z.Z,json:{origins:{service:{read:{source:"spatialReference"}}}}})],W.prototype,"spatialReference",void 0),(0,i._)([(0,g.Cb)({json:{read:!1}})],W.prototype,"type",void 0),(0,i._)([(0,g.Cb)($.HQ)],W.prototype,"url",void 0),(0,i._)([(0,g.Cb)({type:Number})],W.prototype,"updateInterval",void 0),(0,i._)([(0,g.Cb)({type:String})],W.prototype,"webSocketUrl",void 0),W=(0,i._)([(0,_.j)("esri.layers.StreamLayer")],W);const Q=(0,I.d)({types:p.QT}),X=W},17287:(e,t,r)=>{r.d(t,{Y:()=>u});var n=r(43697),i=r(92604),o=r(70586),s=r(5600),l=(r(67676),r(80442),r(75215),r(52011)),a=r(66677);const u=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.Qc)(this.url);if((0,o.pC)(e)&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Nm)(e,i.Z.getLogger(this.declaredClass)))}};return(0,n._)([(0,s.Cb)()],t.prototype,"title",null),(0,n._)([(0,s.Cb)({type:String})],t.prototype,"url",null),t=(0,n._)([(0,l.j)("esri.layers.mixins.ArcGISService")],t),t}},16859:(e,t,r)=>{r.d(t,{I:()=>w});var n=r(43697),i=r(40330),o=r(3172),s=r(66643),l=r(20102),a=r(92604),u=r(70586),c=r(95330),p=r(17452),d=r(5600),f=(r(67676),r(80442),r(75215),r(71715)),y=r(52011),m=r(30556),h=r(65587),v=r(15235),g=r(86082);const b=a.Z.getLogger("esri.layers.mixins.PortalLayer"),w=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){var e;null==(e=this.portalItem)||e.destroy(),this.portalItem=null}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new v.default({id:t.itemId,portal:r&&r.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const n=await r.e(8062).then(r.bind(r,18062));return(0,c.k_)(t),await n.load({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData},t)}catch(e){throw(0,c.D_)(e)||b.warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this.fetchUserHasEditingPrivileges(e).catch((e=>((0,c.r9)(e),!0))))}async fetchUserHasEditingPrivileges(e){const t=this.url?null==i.id?void 0:i.id.findCredential(this.url):null;if(!t)return!0;const r=_.credential===t?_.user:await this.fetchEditingUser(e);return _.credential=t,_.user=r,(0,u.Wi)(r)||null==r.privileges||r.privileges.includes("features:user:edit")}async fetchEditingUser(e){var t,r;const n=null==(t=this.portalItem)||null==(r=t.portal)?void 0:r.user;if(n)return n;const l=i.id.findServerInfo(this.url);if(null==l||!l.owningSystemUrl)return null;const a=`${l.owningSystemUrl}/sharing/rest`,c=h.Z.getDefault();if(c&&c.loaded&&(0,p.Fv)(c.restUrl)===(0,p.Fv)(a))return c.user;const d=`${a}/community/self`,f=(0,u.pC)(e)?e.signal:null,y=await(0,s.q6)((0,o.default)(d,{authMode:"no-prompt",query:{f:"json"},signal:f}));return y.ok?g.default.fromJSON(y.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,n=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||h.Z.getDefault());return r&&n&&!(0,p.tm)(n.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save the scene, set the layer.portalItem to null or save the scene to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,n._)([(0,d.Cb)({type:v.default})],t.prototype,"portalItem",null),(0,n._)([(0,f.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,n._)([(0,m.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,n._)([(0,d.Cb)()],t.prototype,"resourceReferences",void 0),(0,n._)([(0,d.Cb)({readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),t=(0,n._)([(0,y.j)("esri.layers.mixins.PortalLayer")],t),t},_={credential:null,user:null}},28294:(e,t,r)=>{r.d(t,{n:()=>d});var n=r(43697),i=r(92835),o=r(84552),s=r(5600),l=(r(67676),r(80442),r(75215),r(71715)),a=r(52011),u=r(30547),c=r(35671),p=r(78981);const d=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const n=r.timeOffset,i=p.v.fromJSON(r.timeOffsetUnits);return n&&i?new o.Z({value:n,unit:i}):null}set timeInfo(e){(0,c.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,n._)([(0,s.Cb)({type:i.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,n._)([(0,s.Cb)({type:o.Z})],t.prototype,"timeOffset",void 0),(0,n._)([(0,l.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,n._)([(0,s.Cb)({value:null,type:u.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,n._)([(0,s.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,n._)([(0,a.j)("esri.layers.mixins.TemporalLayer")],t),t}},61960:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(43697),i=r(10736),o=r(5600),s=(r(67676),r(80442),r(75215),r(52011));let l=class extends i.wq{constructor(){super(...arguments),this.type=null}};(0,n._)([(0,o.Cb)({type:["selection","cluster"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=(0,n._)([(0,s.j)("esri.layers.support.FeatureReduction")],l);const a=l},85857:(e,t,r)=>{r.d(t,{Z:()=>u});var n,i=r(43697),o=r(5600),s=(r(67676),r(80442),r(75215),r(52011)),l=r(61960);let a=n=class extends l.Z{constructor(e){super(e),this.type="selection"}clone(){return new n}};(0,i._)([(0,o.Cb)({type:["selection"]})],a.prototype,"type",void 0),a=n=(0,i._)([(0,s.j)("esri.layers.support.FeatureReductionSelection")],a);const u=a},1231:(e,t,r)=>{r.d(t,{Z:()=>h});var n,i=r(43697),o=r(35454),s=r(10736),l=r(5600),a=(r(67676),r(80442),r(75215)),u=r(36030),c=r(71715),p=r(52011),d=r(72729),f=r(86719);const y=new o.Xn({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=n=class extends s.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=-1,this.name=null,this.nullable=!0,this.type=null,this.valueType=null}readDescription(e,{description:t}){let r;try{r=JSON.parse(t)}catch(e){}return r?r.value:null}readValueType(e,{description:t}){let r;try{r=JSON.parse(t)}catch(e){}return r?y.fromJSON(r.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType})}};(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,i._)([(0,l.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,i._)([(0,l.Cb)()],m.prototype,"description",void 0),(0,i._)([(0,c.r)("description")],m.prototype,"readDescription",null),(0,i._)([(0,l.Cb)({types:d.V5,json:{read:{reader:d.im},write:!0}})],m.prototype,"domain",void 0),(0,i._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,i._)([(0,l.Cb)({type:a.z8,json:{write:!0}})],m.prototype,"length",void 0),(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,i._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,i._)([(0,u.J)(f.v)],m.prototype,"type",void 0),(0,i._)([(0,l.Cb)()],m.prototype,"valueType",void 0),(0,i._)([(0,c.r)("valueType",["description"])],m.prototype,"readValueType",null),m=n=(0,i._)([(0,p.j)("esri.layers.support.Field")],m);const h=m},30547:(e,t,r)=>{r.d(t,{Z:()=>b});var n,i=r(43697),o=r(92835),s=r(84552),l=r(10736),a=r(22974),u=r(70586),c=r(5600),p=(r(75215),r(71715)),d=r(52011),f=r(30556);r(67676),r(80442);let y=n=class extends l.wq{constructor(e){super(e),this.respectsDaylightSaving=!1,this.timezone=null}readRespectsDaylightSaving(e,t){return void 0!==t.respectsDaylightSaving?t.respectsDaylightSaving:void 0!==t.respectDaylightSaving&&t.respectDaylightSaving}clone(){const{respectsDaylightSaving:e,timezone:t}=this;return new n({respectsDaylightSaving:e,timezone:t})}};(0,i._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"respectsDaylightSaving",void 0),(0,i._)([(0,p.r)("respectsDaylightSaving",["respectsDaylightSaving","respectDaylightSaving"])],y.prototype,"readRespectsDaylightSaving",null),(0,i._)([(0,c.Cb)({type:String,json:{read:{source:"timeZone"},write:{target:"timeZone"}}})],y.prototype,"timezone",void 0),y=n=(0,i._)([(0,d.j)("esri.layers.support.TimeReference")],y);const m=y;var h,v=r(78981);let g=h=class extends l.wq{constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeReference=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const r=new Date(t.timeExtent[0]),n=new Date(t.timeExtent[1]);return new o.Z({start:r,end:n})}writeFullTimeExtent(e,t){e&&(0,u.pC)(e.start)&&(0,u.pC)(e.end)?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?new s.Z({value:t.timeInterval,unit:v.v.fromJSON(t.timeIntervalUnits)}):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?new s.Z({value:t.defaultTimeInterval,unit:v.v.fromJSON(t.defaultTimeIntervalUnits)}):null}writeInterval(e,t){if(e){const r=e.toJSON();t.timeInterval=r.value,t.timeIntervalUnits=r.unit}else t.timeInterval=null,t.timeIntervalUnits=null}clone(){const{cumulative:e,endField:t,hasLiveData:r,interval:n,startField:i,timeReference:o,fullTimeExtent:s,trackIdField:l,useTime:u}=this;return new h({cumulative:e,endField:t,hasLiveData:r,interval:n,startField:i,timeReference:(0,a.d9)(o),fullTimeExtent:(0,a.d9)(s),trackIdField:l,useTime:u})}};(0,i._)([(0,c.Cb)({type:Boolean,json:{read:{source:"exportOptions.timeDataCumulative"},write:{target:"exportOptions.timeDataCumulative"}}})],g.prototype,"cumulative",void 0),(0,i._)([(0,c.Cb)({type:String,json:{read:{source:"endTimeField"},write:{target:"endTimeField",allowNull:!0}}})],g.prototype,"endField",void 0),(0,i._)([(0,c.Cb)({type:o.Z,json:{write:{enabled:!0,allowNull:!0}}})],g.prototype,"fullTimeExtent",void 0),(0,i._)([(0,p.r)("fullTimeExtent",["timeExtent"])],g.prototype,"readFullTimeExtent",null),(0,i._)([(0,f.c)("fullTimeExtent")],g.prototype,"writeFullTimeExtent",null),(0,i._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],g.prototype,"hasLiveData",void 0),(0,i._)([(0,c.Cb)({type:s.Z,json:{write:{enabled:!0,allowNull:!0}}})],g.prototype,"interval",void 0),(0,i._)([(0,p.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],g.prototype,"readInterval",null),(0,i._)([(0,f.c)("interval")],g.prototype,"writeInterval",null),(0,i._)([(0,c.Cb)({type:String,json:{read:{source:"startTimeField"},write:{target:"startTimeField",allowNull:!0}}})],g.prototype,"startField",void 0),(0,i._)([(0,c.Cb)({type:m,json:{write:{enabled:!0,allowNull:!0}}})],g.prototype,"timeReference",void 0),(0,i._)([(0,c.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],g.prototype,"trackIdField",void 0),(0,i._)([(0,c.Cb)({type:Boolean,json:{read:{source:"exportOptions.useTime"},write:{target:"exportOptions.useTime"}}})],g.prototype,"useTime",void 0),g=h=(0,i._)([(0,d.j)("esri.layers.support.TimeInfo")],g);const b=g},66677:(e,t,r)=>{r.d(t,{ld:()=>y,B5:()=>p,M8:()=>h,G:()=>w,Qc:()=>d,DR:()=>f,Nm:()=>v,XG:()=>g,a7:()=>m,wH:()=>b});var n=r(70586),i=r(17452),o=r(25929);const s={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer"},l=Object.values(s),a=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${l.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),u=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^\\/\\n]+)\\/(${l.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),c=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function p(e){return!!a.test(e)}function d(e){const t=(0,i.mN)(e),r=t.path.match(a)||t.path.match(u);if(!r)return null;const[,n,o,l,c]=r,p=o.indexOf("/");return{title:y(-1!==p?o.slice(p+1):o),serverType:s[l.toLowerCase()],sublayer:null!=c&&""!==c?parseInt(c,10):null,url:{path:n}}}function f(e){const t=(0,i.mN)(e).path.match(c);return t?{serviceUrl:t[1],sublayerId:Number(t[2])}:null}function y(e){return(e=e.replace(/\s*[/_]+\s*/g," "))[0].toUpperCase()+e.slice(1)}function m(e,t){const r=[];if(e){const t=d(e);(0,n.pC)(t)&&t.title&&r.push(t.title)}if(t){const e=y(t);r.push(e)}if(2===r.length){if(-1!==r[0].toLowerCase().indexOf(r[1].toLowerCase()))return r[0];if(-1!==r[1].toLowerCase().indexOf(r[0].toLowerCase()))return r[1]}return r.join(" - ")}function h(e){if(!e)return!1;const t=-1!==(e=e.toLowerCase()).indexOf(".arcgis.com/"),r=-1!==e.indexOf("//services")||-1!==e.indexOf("//tiles")||-1!==e.indexOf("//features");return t&&r}function v(e,t){return e?(0,i.Qj)((0,i.Hu)(e,t)):e}function g(e){let{url:t}=e;if(!t)return{url:t};t=(0,i.Hu)(t,e.logger);const r=(0,i.mN)(t),o=d(r.path);let s;if((0,n.pC)(o))null!=o.sublayer&&null==e.layer.layerId&&(s=o.sublayer),t=o.url.path;else if(e.nonStandardUrlAllowed){const e=f(r.path);(0,n.pC)(e)&&(t=e.serviceUrl,s=e.sublayerId)}return{url:(0,i.Qj)(t),layerId:s}}function b(e,t,r,n,s){(0,o.w)(t,n,"url",s),n.url&&null!=e.layerId&&(n.url=(0,i.v_)(n.url,r,e.layerId.toString()))}function w(e){if(!e)return!1;const t=e.toLowerCase(),r=-1!==t.indexOf("/services/"),n=-1!==t.indexOf("/mapserver/wmsserver"),i=-1!==t.indexOf("/imageserver/wmsserver"),o=-1!==t.indexOf("/wmsserver");return r&&(n||i||o)}},72729:(e,t,r)=>{r.d(t,{im:()=>C,V5:()=>S}),r(80442);var n,i=r(43697),o=r(22974),s=r(5600),l=(r(75215),r(36030)),a=r(52011),u=r(10736);r(67676);let c=n=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,i._)([(0,s.Cb)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=n=(0,i._)([(0,a.j)("esri.layers.support.CodedValue")],c);const p=c,d=new(r(35454).Xn)({inherited:"inherited",codedValue:"coded-value",range:"range"});let f=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,i._)([(0,l.J)(d)],f.prototype,"type",void 0),f=(0,i._)([(0,a.j)("esri.layers.support.Domain")],f);const y=f;var m;let h=m=class extends y{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new m({codedValues:(0,o.d9)(this.codedValues),name:this.name})}};(0,i._)([(0,s.Cb)({type:[p],json:{write:!0}})],h.prototype,"codedValues",void 0),(0,i._)([(0,l.J)({codedValue:"coded-value"})],h.prototype,"type",void 0),h=m=(0,i._)([(0,a.j)("esri.layers.support.CodedValueDomain")],h);const v=h;var g;r(92604),r(37697);let b=g=class extends y{constructor(e){super(e),this.type="inherited"}clone(){return new g}};(0,i._)([(0,l.J)({inherited:"inherited"})],b.prototype,"type",void 0),b=g=(0,i._)([(0,a.j)("esri.layers.support.InheritedDomain")],b);const w=b;var _;let I=_=class extends y{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new _({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i._)([(0,s.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],I.prototype,"maxValue",void 0),(0,i._)([(0,s.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],I.prototype,"minValue",void 0),(0,i._)([(0,l.J)({range:"range"})],I.prototype,"type",void 0),I=_=(0,i._)([(0,a.j)("esri.layers.support.RangeDomain")],I);const x=I,S={key:"type",base:y,typeMap:{range:I,"coded-value":v,inherited:w}};function C(e){if(!e||!e.type)return null;switch(e.type){case"range":return x.fromJSON(e);case"codedValue":return v.fromJSON(e);case"inherited":return w.fromJSON(e)}return null}},55785:(e,t,r)=>{r.d(t,{d:()=>S});var n,i=r(61960),o=r(43697),s=r(51773),l=r(78223),a=r(10736),u=r(22974),c=r(62357),p=r(5600),d=(r(75215),r(52011));r(67676),r(80442);let f=n=class extends a.wq{constructor(){super(...arguments),this.statisticType=null,this.onStatisticField=null,this.onStatisticValueExpression=null}clone(){return new n({statisticType:this.statisticType,onStatisticField:this.onStatisticField,onStatisticValueExpression:this.onStatisticValueExpression})}};(0,o._)([(0,p.Cb)({type:String,json:{write:!0}})],f.prototype,"statisticType",void 0),(0,o._)([(0,p.Cb)({type:String,json:{write:!0}})],f.prototype,"onStatisticField",void 0),(0,o._)([(0,p.Cb)({type:String,json:{write:!0}})],f.prototype,"onStatisticValueExpression",void 0),f=n=(0,o._)([(0,d.j)("esri.layers.support.OutStatistic")],f);const y=f;var m;let h=m=class extends a.wq{constructor(){super(...arguments),this.name=null}clone(){return new m({name:this.name,outStatistic:this.outStatistic.clone()})}};(0,o._)([(0,p.Cb)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,o._)([(0,p.Cb)({type:y,json:{write:!0}})],h.prototype,"outStatistic",void 0),h=m=(0,o._)([(0,d.j)("esri.layers.support.AggregateField")],h);const v=h;var g,b=r(21506),w=r(54306);let _=g=class extends a.wq{constructor(e){super(e),this.type="cluster",this.clusterRadius=(0,c.t_)("80px"),this.clusterMinSize=(0,c.t_)("12px"),this.clusterMaxSize=(0,c.t_)("50px"),this.popupEnabled=!0,this.popupTemplate=null,this.symbol=null,this.labelingInfo=null,this.labelsVisible=!0,this.fields=null}clone(){return new g({clusterRadius:this.clusterRadius,clusterMinSize:this.clusterMinSize,clusterMaxSize:this.clusterMaxSize,labelingInfo:(0,u.d9)(this.labelingInfo),labelsVisible:this.labelsVisible,fields:(0,u.d9)(this.fields),popupEnabled:this.popupEnabled,popupTemplate:(0,u.d9)(this.popupTemplate)})}};(0,o._)([(0,p.Cb)({type:["cluster"],readOnly:!0,json:{write:!0}})],_.prototype,"type",void 0),(0,o._)([(0,p.Cb)({type:Number,cast:e=>"auto"===e?e:(0,c.t_)(e),json:{write:!0}})],_.prototype,"clusterRadius",void 0),(0,o._)([(0,p.Cb)({type:Number,cast:c.t_,json:{write:!0}})],_.prototype,"clusterMinSize",void 0),(0,o._)([(0,p.Cb)({type:Number,cast:c.t_,json:{write:!0}})],_.prototype,"clusterMaxSize",void 0),(0,o._)([(0,p.Cb)(b.C_)],_.prototype,"popupEnabled",void 0),(0,o._)([(0,p.Cb)({type:s.Z,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],_.prototype,"popupTemplate",void 0),(0,o._)([(0,p.Cb)({types:l.AH})],_.prototype,"symbol",void 0),(0,o._)([(0,p.Cb)({type:[w.Z],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo"}}})],_.prototype,"labelingInfo",void 0),(0,o._)([(0,p.Cb)(b.iR)],_.prototype,"labelsVisible",void 0),(0,o._)([(0,p.Cb)({type:[v],json:{write:!0}})],_.prototype,"fields",void 0),_=g=(0,o._)([(0,d.j)("esri.layers.support.FeatureReductionCluster")],_);const I=_;var x=r(85857);const S={types:{key:"type",base:i.Z,typeMap:{selection:x.Z,cluster:I}},json:{name:"layerDefinition.featureReduction",write:{allowNull:!0},origins:{"web-scene":{types:{key:"type",base:i.Z,typeMap:{selection:x.Z}}}}}}},53518:(e,t,r)=>{r.d(t,{v:()=>a});var n=r(92604),i=r(1231),o=r(99514),s=r(35671);const l=n.Z.getLogger("esri.layers.support.fieldProperties");function a(){return{fields:{type:[i.Z],value:null},fieldsIndex:{readOnly:!0,get(){return new o.Z(this.fields||[])}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e||!e.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e)this.fieldsIndex.has(t)||l.error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e});return(0,s.Q0)(this.fieldsIndex,e)}}}}},86719:(e,t,r)=>{r.d(t,{v:()=>n});const n=new(r(35454).Xn)({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"})},35671:(e,t,r)=>{r.d(t,{io:()=>h,AB:()=>m,gd:()=>y,Q0:()=>f,YN:()=>u,UF:()=>p,O5:()=>v,os:()=>b,H7:()=>j,qN:()=>U,Pz:()=>$,Qc:()=>R,vP:()=>L}),r(20102);var n,i,o=r(78286);(i=n||(n={})).VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",i.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value";var s=r(59266);const l=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],a=["field","normalizationField"];function u(e,t){if(null!=e&&null!=t)for(const r of Array.isArray(e)?e:[e])if(c(l,r,t),"visualVariables"in r&&r.visualVariables)for(const e of r.visualVariables)c(a,e,t)}function c(e,t,r){if(e)for(const n of e){const e=(0,o.hS)(n,t),i=e&&"function"!=typeof e&&r.get(e);i&&(0,o.RB)(n,i.name,t)}}function p(e,t){if(null!=e&&null!=t&&t.fields.length)if("startField"in e){const r=t.get(e.startField),n=t.get(e.endField);e.startField=r&&r.name||null,e.endField=n&&n.name||null}else{const r=t.get(e.startTimeField),n=t.get(e.endTimeField);e.startTimeField=r&&r.name||null,e.endTimeField=n&&n.name||null}}const d=new Set;function f(e,t){return e&&t?(d.clear(),y(d,e,t),Array.from(d).sort()):[]}function y(e,t,r){var n;if(r)if(null!=t&&null!=(n=t.fields)&&n.length)if(r.includes("*"))for(const{name:r}of t.fields)e.add(r);else for(const n of r)m(e,t,n);else{if(r.includes("*"))return e.clear(),void e.add("*");for(const t of r)e.add(t)}}function m(e,t,r){if("string"==typeof r)if(t){const n=t.get(r);n&&e.add(n.name)}else e.add(r)}async function h(e,t,r){var n;if(!r)return;const{arcadeUtils:i}=await(0,s.LC)(),o=i.extractFieldNames(r,null==t||null==(n=t.fields)?void 0:n.map((e=>e.name)));for(const r of o)m(e,t,r)}function v({displayField:e,fields:t}){return e||(t&&t.length?g(t,"name-or-title")||g(t,"unique-identifier")||g(t,"type-or-category")||function(e){for(const t of e){if(!t||!t.name)continue;const e=t.name.toLowerCase();if(e.indexOf("name")>-1||e.indexOf("title")>-1)return t.name}return null}(t):null)}function g(e,t){for(const r of e)if(r&&r.valueType&&r.valueType===t)return r.name;return null}function b(e){const t=e.defaultValue;return void 0!==t&&F(e,t)?t:e.nullable?null:void 0}function w(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function _(e){return null===e||w(e)}const I="isInteger"in Number?Number.isInteger:e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e;function x(e){return null===e||I(e)}function S(e){return null!=e&&"string"==typeof e}function C(e){return null===e||S(e)}function T(){return!0}function F(e,t){let r;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":r=e.nullable?x:I;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":r=e.nullable?_:w;break;case"string":case"esriFieldTypeString":r=e.nullable?C:S;break;default:r=T}return 1===arguments.length?r:r(t)}const O=new Set(["integer","small-integer","single","double","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]);function j(e){return null!=e&&O.has(e.type)}function U(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}var E,N;function $(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function R(e,t){return e.nullable&&null===t?null:j(e)&&!function(e,t){const r="string"==typeof e?D(e):e;return!!r&&(r.isInteger?I(t)&&t>=r.min&&t<=r.max:t>=r.min&&t<=r.max)}(e.type,Number(t))?E.OUT_OF_RANGE:F(e,t)?e.domain?function(e,t){switch(e.type){case"range":{const r="range"in e?e.range[0]:e.minValue,i="range"in e?e.range[1]:e.maxValue;if(+t<r||+t>i)return n.VALUE_OUT_OF_RANGE;break}case"coded-value":case"codedValue":if(null==e.codedValues||e.codedValues.every((e=>null==e||e.code!==t)))return n.INVALID_CODED_VALUE}return null}(e.domain,t):null:N.INVALID_TYPE}function D(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return P;case"esriFieldTypeInteger":case"integer":return Z;case"esriFieldTypeSingle":case"single":return V;case"esriFieldTypeDouble":case"double":return A}}!function(e){e.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"}(E||(E={})),function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(N||(N={}));const P={min:-32768,max:32767,isInteger:!0},Z={min:-2147483648,max:2147483647,isInteger:!0},V={min:-34e37,max:12e37,isInteger:!1},A={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1};function L(e,t,r){switch(e){case n.INVALID_CODED_VALUE:return`Value ${r} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case n.VALUE_OUT_OF_RANGE:return`Value ${r} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case N.INVALID_TYPE:return`Value ${r} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case E.OUT_OF_RANGE:{const{min:e,max:n}=D(t.type);return`Value ${r} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${n}`}}}},30707:(e,t,r)=>{r.d(t,{r:()=>o});var n=r(54306);const i=/\[([^\[\]]+)\]/gi;function o(e,t,r){return e?e.map((e=>{const o=new n.Z;if(o.read(e,r),o.labelExpression){const e=t.fields||t.layerDefinition&&t.layerDefinition.fields||this.fields;o.labelExpression=o.labelExpression.replace(i,((t,r)=>`[${function(e,t){if(!t)return e;const r=e.toLowerCase();for(let e=0;e<t.length;e++){const n=t[e].name;if(n.toLowerCase()===r)return n}return e}(r,e)}]`))}return o})):null}},78981:(e,t,r)=>{r.d(t,{v:()=>n});const n=(0,r(35454).wY)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},40555:(e,t,r)=>{r.d(t,{y:()=>s});var n=r(66643),i=r(95330),o=r(20941);async function s(e,t,r){const s=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(s&&"unique-value"===s.type&&s.styleOrigin){const l=await(0,n.q6)(s.populateFromStyle());if((0,i.k_)(r),!1===l.ok){const r=l.error;t&&t.messages&&t.messages.push(new o.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t.origin)}}}},59266:(e,t,r)=>{r.d(t,{mz:()=>c,pp:()=>u,WW:()=>l,Yi:()=>a,LC:()=>s}),r(66577);var n=r(70586),i=r(82971);let o;function s(){return o||(o=(async()=>{const e=await Promise.all([r.e(9490),r.e(6690)]).then(r.bind(r,96690));return{arcade:e.arcade,arcadeUtils:e,Dictionary:e.Dictionary,Feature:e.arcadeFeature}})()),o}const l=(e,t,r)=>c.create(e,t,r,null,["$feature"]),a=(e,t,r)=>c.create(e,t,r,null,["$feature","$view"]),u=(e,t,r,n)=>c.create(e,t,r,n,["$feature","$view"]);class c{constructor(e,t,r,n,i,o,s,l){this.script=e,this.evaluate=i;const a=Array.isArray(s)?s:s.fields;this.fields=a,this._syntaxTree=n,this._arcade=t,this._arcadeDictionary=r,this._arcadeFeature=o,this._spatialReference=l,this._referencesGeometry=t.scriptTouchesGeometry(this._syntaxTree),this._referencesScale=this._arcade.referencesMember(this._syntaxTree,"scale")}static async create(e,t,r,o,l,a){const{arcade:u,Feature:p,Dictionary:d}=await s(),f=i.Z.fromJSON(t),y=u.parseScript(e,a),m=l.reduce(((e,t)=>({...e,[t]:null})),{});let h=null;(0,n.pC)(o)&&(h=new d(o),h.immutable=!0,m.$config=null);const v=u.scriptUsesGeometryEngine(y)&&u.enableGeometrySupport(),g=u.scriptUsesFeatureSet(y)&&u.enableFeatureSetSupport(),b=u.scriptIsAsync(y)&&u.enableAsyncSupport(),w={vars:m,spatialReference:f,useAsync:!!b},_=new d;_.immutable=!1,_.setField("scale",0);const I=u.compileScript(y,w);return await Promise.all([v,g,b]),new c(e,u,d,y,(e=>("$view"in e&&e.$view&&(_.setField("scale",e.$view.scale),e.$view=_),h&&(e.$config=h),I({vars:e,spatialReference:f}))),new p,r,f)}repurposeFeature(e){return e.geometry&&!e.geometry.spatialReference&&(e.geometry.spatialReference=this._spatialReference),this._arcadeFeature.repurposeFromGraphicLikeObject(e.geometry,e.attributes,{fields:this.fields}),this._arcadeFeature}repurposeAdapter(e){return this._arcadeFeature.repurposeFromAdapter(e,{fields:this.fields}),this._arcadeFeature}createDictionary(){return new this._arcadeDictionary}referencesMember(e){return this._arcade.referencesMember(this._syntaxTree,e)}referencesFunction(e){return this._arcade.referencesFunction(this._syntaxTree,e)}referencesGeometry(){return this._referencesGeometry}referencesScale(){return this._referencesScale}extractFieldLiterals(){return this._arcade.extractExpectedFieldLiterals(this._syntaxTree)}}}}]);
|