@arcgis/core 4.23.0-next.20220124 → 4.23.0-next.20220129
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/Graphic.js +1 -1
- package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/02fbc76dfdc20e628c61.js +1 -0
- package/assets/esri/core/workers/chunks/0453fad5cb819797b4f6.js +1 -0
- package/assets/esri/core/workers/chunks/0463ba46df855a92b9c0.js +1 -0
- package/assets/esri/core/workers/chunks/0cd0a6eef51fc5b9ea61.js +1 -0
- package/assets/esri/core/workers/chunks/{d1454155ee1b8a421cbb.js → 0d02c6ad1f4688bfa374.js} +1 -1
- package/assets/esri/core/workers/chunks/0d684f16f37d5dc385dd.js +1 -0
- package/assets/esri/core/workers/chunks/0e17691520d890d34efb.js +1 -0
- package/assets/esri/core/workers/chunks/16b6d0f8378582c051c3.js +1 -0
- package/assets/esri/core/workers/chunks/{0ce1dc14280d6f188468.js → 17de7a324dfa7f57ad5d.js} +1 -1
- package/assets/esri/core/workers/chunks/{b313ab14a643273e7d09.js → 1877ab1b6a115dbba1c5.js} +1 -1
- package/assets/esri/core/workers/chunks/{c36f84daa7736878418d.js → 197ec52641aed20029c6.js} +1 -1
- package/assets/esri/core/workers/chunks/1b2a961f776a0b57e57a.js +1 -0
- package/assets/esri/core/workers/chunks/1b3fd66577b19aa5f2b6.js +1 -0
- package/assets/esri/core/workers/chunks/1c733b7db092a2a88ef3.js +1 -0
- package/assets/esri/core/workers/chunks/1f8c6a179e39fd4c5e6f.js +1 -0
- package/assets/esri/core/workers/chunks/2076fcbae63f1bfb7143.js +1 -0
- package/assets/esri/core/workers/chunks/{9387db408f496e7dd003.js → 214910032945dd2d86b0.js} +1 -1
- package/assets/esri/core/workers/chunks/{b2ae5fc4f787ea568b88.js → 2460f3b6ada6ae900dec.js} +1 -1
- package/assets/esri/core/workers/chunks/27474b007988855bea9d.js +1 -0
- package/assets/esri/core/workers/chunks/281b89dbf5574fc642ae.js +1 -0
- package/assets/esri/core/workers/chunks/{4d539878bfbd7c549e60.js → 2c8fe9bc988c3c5760a5.js} +1 -1
- package/assets/esri/core/workers/chunks/2e899ef5881b4ec6fa55.js +1 -0
- package/assets/esri/core/workers/chunks/34b59d7099904dcb28b5.js +1 -0
- package/assets/esri/core/workers/chunks/357033117dfe61eb81ea.js +1 -0
- package/assets/esri/core/workers/chunks/37c03cfc19086ce631c6.js +1 -0
- package/assets/esri/core/workers/chunks/391e96192d1ec4e55ce2.js +1 -0
- package/assets/esri/core/workers/chunks/422537fc3df707bb62c9.js +1 -0
- package/assets/esri/core/workers/chunks/44f0c3663b293afbd172.js +1 -0
- package/assets/esri/core/workers/chunks/483d5d8593d96d0f0b15.js +1 -0
- package/assets/esri/core/workers/chunks/{c959e0d1cf7dce0421b9.js → 48fa8aed6c24877b44c4.js} +1 -1
- package/assets/esri/core/workers/chunks/{44b01d42d4ec72913229.js → 4954fd86b48cc68b737c.js} +1 -1
- package/assets/esri/core/workers/chunks/49a1a633bb0d93764aae.js +1 -0
- package/assets/esri/core/workers/chunks/4ba6de8aa7e2960bad49.js +1 -0
- package/assets/esri/core/workers/chunks/4be35af7d6babbfe9d84.js +1 -0
- package/assets/esri/core/workers/chunks/5457962a70bd3c557a75.js +1 -0
- package/assets/esri/core/workers/chunks/57856b4a9b8784a69844.js +1 -0
- package/assets/esri/core/workers/chunks/{b9c177524b3e7de1ffd1.js → 5790d171072b3c7d108f.js} +1 -1
- package/assets/esri/core/workers/chunks/57b349d1dbc0bed75b79.js +1 -0
- package/assets/esri/core/workers/chunks/5bcb3240b3c005e5fe72.js +1 -0
- package/assets/esri/core/workers/chunks/5d11b97b667921d67ae7.js +1 -0
- package/assets/esri/core/workers/chunks/5dbe555a5a662ff3d9ce.js +1 -0
- package/assets/esri/core/workers/chunks/5ec98f4ddac707d0fbd1.js +1 -0
- package/assets/esri/core/workers/chunks/64b7e8d812ea8fcf269e.js +1 -0
- package/assets/esri/core/workers/chunks/{4c9084a04948b6924749.js → 655b55ac0cd533d7e9d7.js} +1 -1
- package/assets/esri/core/workers/chunks/{b0b036ad3ad3cd956747.js → 69fd99b7c76e9992ccf3.js} +1 -1
- package/assets/esri/core/workers/chunks/{9cdaba126ac7fa5f33f0.js → 6cd5e4380d29b9a3c344.js} +1 -1
- package/assets/esri/core/workers/chunks/75d812955a473d0e8960.js +1 -0
- package/assets/esri/core/workers/chunks/7903a3e2e0faff0f86c0.js +1 -0
- package/assets/esri/core/workers/chunks/{cc146c57bbdac8029fd8.js → 7a5f5acfbd4ca1a5c1f3.js} +1 -1
- package/assets/esri/core/workers/chunks/{64276aacaafa4c8a15bd.js → 7dcf52d3db3903c8eb9f.js} +1 -1
- package/assets/esri/core/workers/chunks/83d00afae4406ec78bc9.js +1 -0
- package/assets/esri/core/workers/chunks/{625d2663daa8e0cf64b0.js → 85b1f36790df95b17659.js} +1 -1
- package/assets/esri/core/workers/chunks/89820b200ee44e678af5.js +1 -0
- package/assets/esri/core/workers/chunks/8a876f91c9c7c23786b5.js +1 -0
- package/assets/esri/core/workers/chunks/918bb7a7d901544a7367.js +1 -0
- package/assets/esri/core/workers/chunks/{94b8dbf859df71858d1c.js → 929c9b7cdab7c4ca3d87.js} +1 -1
- package/assets/esri/core/workers/chunks/94515fb3ef38067eeadd.js +1 -0
- package/assets/esri/core/workers/chunks/949b2269457302ffc64b.js +1 -0
- package/assets/esri/core/workers/chunks/952980635afc7ec81804.js +1 -0
- package/assets/esri/core/workers/chunks/9876a1bae350795fab36.js +1 -0
- package/assets/esri/core/workers/chunks/99619fcb772807c74f3b.js +1 -0
- package/assets/esri/core/workers/chunks/{010a71c2aa1b7681e191.js → 9d11f84e6c893b9d0019.js} +1 -1
- package/assets/esri/core/workers/chunks/a1930e4f035bc9aa1ae5.js +1 -0
- package/assets/esri/core/workers/chunks/a8692bffb76444c34760.js +1 -0
- package/assets/esri/core/workers/chunks/aa04b90b82bf70caaae4.js +1 -0
- package/assets/esri/core/workers/chunks/aeaa1667c2d9f1b3366b.js +1 -0
- package/assets/esri/core/workers/chunks/b2d2de935487257c568b.js +1 -0
- package/assets/esri/core/workers/chunks/b3f5e91116112b0b612a.js +1 -0
- package/assets/esri/core/workers/chunks/b97953694f42bfec1b3c.js +1 -0
- package/assets/esri/core/workers/chunks/b9e9cb354822c6d995a4.js +1 -0
- package/assets/esri/core/workers/chunks/ba762bcfd74af0bb8218.js +1 -0
- package/assets/esri/core/workers/chunks/bac9fc90e6756e211160.js +1 -0
- package/assets/esri/core/workers/chunks/be588873c16770ceb9ef.js +1 -0
- package/assets/esri/core/workers/chunks/bf97a933ea3b220115e1.js +1 -0
- package/assets/esri/core/workers/chunks/bfedd6ebff817c9b31c0.js +1 -0
- package/assets/esri/core/workers/chunks/c093dff4592832ac0973.js +1 -0
- package/assets/esri/core/workers/chunks/c1135cb02ec46c491459.js +1 -0
- package/assets/esri/core/workers/chunks/c2253a9f29c1aabb2b75.js +1 -0
- package/assets/esri/core/workers/chunks/{d39b7983b68d6e5b404d.js → cdbc005eebec1503b99d.js} +1 -1
- package/assets/esri/core/workers/chunks/d04fca5d46cca02500b7.js +1 -0
- package/assets/esri/core/workers/chunks/d08efbc349dd9f999497.js +1 -0
- package/assets/esri/core/workers/chunks/d1fe53b597351dc58305.js +1 -0
- package/assets/esri/core/workers/chunks/{a8b13fb804bb775e4967.js → db3c729ce0c0b2690dc9.js} +1 -1
- package/assets/esri/core/workers/chunks/dd13772a5e2eccc6a2bc.js +1 -0
- package/assets/esri/core/workers/chunks/dedc333a61081772ca7b.js +1 -0
- package/assets/esri/core/workers/chunks/{a7b1b75643ed31489495.js → e0c8d61c7a85ce15499a.js} +1 -1
- package/assets/esri/core/workers/chunks/{199670a3a564ebe3bd79.js → e218bde41ffbcc5194f5.js} +1 -1
- package/assets/esri/core/workers/chunks/e21b211913aefde47e30.js +1 -0
- package/assets/esri/core/workers/chunks/e287f49184d076af17e2.js +1 -0
- package/assets/esri/core/workers/chunks/{bde1d5b0a7717350986e.js → e4019b63a1fe74e2c842.js} +1 -1
- package/assets/esri/core/workers/chunks/e8e775758b79c5a084c8.js +1 -0
- package/assets/esri/core/workers/chunks/e93dfdede0532a89ffa5.js +1 -0
- package/assets/esri/core/workers/chunks/e9e5196b44b6923be1a3.js +1 -0
- package/assets/esri/core/workers/chunks/ea595b0df5050eda2a13.js +1 -0
- package/assets/esri/core/workers/chunks/eb82ff10cef2bde6e57f.js +1 -0
- package/assets/esri/core/workers/chunks/ebc6f4764b82d4104c65.js +1 -0
- package/assets/esri/core/workers/chunks/{1305ef8717da6e902a55.js → ec10151a2a95e95a0bb5.js} +1 -1
- package/assets/esri/core/workers/chunks/eccba071ced2d922bb85.js +1 -0
- package/assets/esri/core/workers/chunks/ee6e0db58dc64410e687.js +1 -0
- package/assets/esri/core/workers/chunks/f0a9f161805fc7a30fc5.js +1 -0
- package/assets/esri/core/workers/chunks/f2124f4d0f2b8a91f0ea.js +1 -0
- package/assets/esri/core/workers/chunks/ff6abdc72076f3994659.js +981 -0
- package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
- package/assets/esri/themes/base/_mixins.scss +4 -1
- package/assets/esri/themes/base/icons/style.scss +11 -2
- package/assets/esri/themes/base/widgets/_BasemapLayerList.scss +13 -10
- package/assets/esri/themes/base/widgets/_CoordinateConversion.scss +4 -2
- package/assets/esri/themes/base/widgets/_Directions.scss +5 -3
- package/assets/esri/themes/base/widgets/_Editor.scss +5 -2
- package/assets/esri/themes/base/widgets/_ElevationProfile.scss +6 -4
- package/assets/esri/themes/base/widgets/_ItemList.scss +1 -1
- package/assets/esri/themes/base/widgets/_LayerList.scss +13 -9
- package/assets/esri/themes/base/widgets/_Popup.scss +4 -2
- package/assets/esri/themes/base/widgets/_Print.scss +24 -11
- package/assets/esri/themes/base/widgets/_Search.scss +4 -2
- package/assets/esri/themes/base/widgets/_TableList.scss +9 -7
- package/assets/esri/themes/base/widgets/_Weather.scss +12 -0
- package/assets/esri/themes/base/widgets/_Widget.scss +18 -9
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/dark-blue/main.css +1 -1
- package/assets/esri/themes/dark-green/main.css +1 -1
- package/assets/esri/themes/dark-purple/main.css +1 -1
- package/assets/esri/themes/dark-red/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/themes/light-blue/main.css +1 -1
- package/assets/esri/themes/light-green/main.css +1 -1
- package/assets/esri/themes/light-purple/main.css +1 -1
- package/assets/esri/themes/light-red/main.css +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ar.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_bg.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_bs.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ca.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_cs.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_da.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_de.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_el.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_en.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_es.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_et.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_fi.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_fr.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_he.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_hr.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_hu.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_id.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_it.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ja.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ko.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_lt.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_lv.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_nb.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_nl.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_pl.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_pt-BR.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_pt-PT.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ro.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ru.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_sk.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_sl.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_sr.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_sv.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_th.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_tr.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_uk.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_vi.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_zh-CN.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_zh-HK.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_zh-TW.json +1 -1
- package/chunks/BlendLayers.glsl.js +2 -2
- package/chunks/ChapmanAtmosphere.glsl.js +17 -17
- package/chunks/CheckerBoard.glsl.js +3 -3
- package/chunks/Clouds.glsl.js +2 -2
- package/chunks/CloudsComposition.glsl.js +1 -1
- package/chunks/ColorMaterial.glsl.js +12 -12
- package/chunks/ComponentShader.glsl.js +21 -21
- package/chunks/Compositing.glsl.js +1 -1
- package/chunks/DefaultMaterial.glsl.js +33 -33
- package/chunks/EdgeShaderProgram.glsl.js +7 -7
- package/chunks/Fog.glsl.js +10 -12
- package/chunks/HUDMaterial.glsl.js +2 -2
- package/chunks/HighlightComposition.glsl.js +5 -5
- package/chunks/ImageMaterial.glsl.js +6 -6
- package/chunks/LaserlinePath.glsl.js +8 -8
- package/chunks/LineCallout.glsl.js +6 -6
- package/chunks/MeasurementArrow.glsl.js +1 -1
- package/chunks/NativeLine.glsl.js +1 -1
- package/chunks/Path.glsl.js +5 -5
- package/chunks/Pattern.glsl.js +9 -9
- package/chunks/PointRenderer.glsl.js +14 -14
- package/chunks/Precipitation.glsl.js +91 -0
- package/chunks/RealisticTree.glsl.js +21 -21
- package/chunks/RibbonLine.glsl.js +11 -11
- package/chunks/SMAA.glsl.js +40 -40
- package/chunks/ShadedColorMaterial.glsl.js +12 -12
- package/chunks/ShadowCast.glsl.js +6 -6
- package/chunks/ShadowHighlight.glsl.js +4 -4
- package/chunks/SimpleAtmosphere.glsl.js +3 -3
- package/chunks/SlicePlaneMaterial.glsl.js +3 -3
- package/chunks/Stars.glsl.js +3 -3
- package/chunks/Terrain.glsl.js +3 -3
- package/chunks/TextureOnly.glsl.js +2 -2
- package/chunks/WaterSurface.glsl.js +22 -22
- package/chunks/boundedPlane.js +1 -1
- package/chunks/pe.js +1 -1
- package/chunks/vec3.js +1 -1
- package/chunks/vxlLayer.js +1 -1
- package/core/accessorSupport/read.js +1 -1
- package/core/accessorSupport/watch.js +1 -1
- package/core/accessorSupport/write.js +1 -1
- package/core/clock.js +1 -1
- package/core/jsonMap.js +1 -1
- package/core/libs/gl-matrix-2/math/vec3.js +1 -1
- package/core/loadAll.js +1 -1
- package/core/promiseUtils.js +1 -1
- package/core/reactiveUtils.js +1 -1
- package/form/ExpressionInfo.js +1 -1
- package/geometry/pe.js +1 -1
- package/geometry/support/axisAngleDegrees.js +1 -1
- package/geometry/support/frustum.js +1 -1
- package/geometry/support/plane.js +1 -1
- package/interfaces.d.ts +263 -35
- package/layers/VectorTileLayer.js +1 -1
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/graphics/featureConversionUtils.js +1 -1
- package/layers/support/LayerContingentValuesCache.js +1 -1
- package/layers/support/TileInfo.js +1 -1
- package/layers/support/rasterDatasets/BaseRaster.js +1 -1
- package/layers/support/rasterFunctions/rasterProjectionHelper.js +1 -1
- package/package.json +2 -2
- package/popup/content/AttachmentsContent.js +1 -1
- package/popup/content/support/mediaInfoTypes.js +1 -1
- package/rest/print.js +1 -1
- package/smartMapping/statistics/support/predominanceUtils.d.ts +4 -0
- package/support/arcadeOnDemand.js +1 -1
- package/support/featureFlags.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/FillSymbol3DLayer.js +1 -1
- package/symbols/IconSymbol3DLayer.js +1 -1
- package/symbols/LabelSymbol3D.js +1 -1
- package/symbols/ObjectSymbol3DLayer.js +1 -1
- package/symbols/PointSymbol3D.js +1 -1
- package/symbols/Symbol3D.js +1 -1
- package/symbols/WebStyleSymbol.js +1 -1
- package/symbols/cim/CIMSymbolHelper.js +1 -1
- package/symbols/cim/CIMSymbolRasterizer.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/support/IconSymbol3DLayerResource.js +1 -1
- package/symbols/support/ObjectSymbol3DLayerResource.js +1 -1
- package/symbols/support/Symbol3DAnchorPosition2D.js +1 -1
- package/symbols/support/Symbol3DAnchorPosition3D.js +1 -1
- package/symbols/support/Symbol3DFillMaterial.js +1 -1
- package/symbols/support/Symbol3DIconOutline.js +1 -1
- package/symbols/support/Symbol3DOutline.js +1 -1
- package/symbols/support/Symbol3DVerticalOffset.js +1 -1
- package/symbols/support/Thumbnail.js +1 -1
- package/symbols/support/previewCIMSymbol.js +1 -1
- package/symbols/support/previewSymbol2D.js +1 -1
- package/symbols/support/previewSymbol3D.js +1 -1
- package/symbols/support/previewWebStyleSymbol.js +1 -1
- package/symbols/support/svgUtils.js +1 -1
- package/symbols/support/webStyleSymbolUtils.js +1 -1
- package/symbols.js +1 -1
- package/views/2d/MapViewConstraints.js +1 -1
- package/views/2d/engine/vectorTiles/SchemaHelper.js +1 -1
- package/views/2d/engine/webgl/brushes/raster/BrushRasterBitmap.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/WGLFillTemplate.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
- package/views/2d/viewpointUtils.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.glsl.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.js +1 -1
- package/views/3d/environment/CloudsComposition.glsl.js +1 -1
- package/views/3d/environment/CloudsComposition.js +1 -1
- package/views/3d/environment/CloudsGenerator.js +1 -1
- package/views/3d/environment/CloudsPresets.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/environment/Fog.glsl.js +1 -1
- package/views/3d/environment/Fog.js +1 -1
- package/views/3d/environment/PanoramicAtmosphere.js +1 -1
- package/views/3d/environment/Precipitation.glsl.js +5 -0
- package/views/3d/environment/Precipitation.js +5 -0
- package/views/3d/environment/PrecipitationTechnique.js +5 -0
- package/views/3d/environment/RainyWeather.js +1 -1
- package/views/3d/environment/SceneViewEnvironmentManager.js +1 -1
- package/views/3d/environment/SimpleAtmosphere.glsl.js +1 -1
- package/views/3d/environment/SimpleAtmosphere.js +1 -1
- package/views/3d/environment/SnowyWeather.js +5 -0
- package/views/3d/environment/Stars.glsl.js +1 -1
- package/views/3d/environment/Stars.js +1 -1
- package/views/3d/environment/weather.js +1 -1
- package/views/3d/interactive/analysisTools/slice/SliceTool.js +1 -1
- package/views/3d/interactive/analysisTools/slice/sliceToolUtils.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateMeshAdapter.js +1 -1
- package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/MeasurementAreaVisualElement.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/layers/FeatureLayerViewBase3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
- package/views/3d/layers/VectorTileLayerView3D.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/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/GraphicsProcessor.js +1 -1
- package/views/3d/layers/graphics/graphicUtils.js +1 -1
- package/views/3d/layers/graphics/lineUtils.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/graphics/polygonUtils.js +1 -1
- package/views/3d/layers/graphics/symbolComplexity.js +1 -1
- package/views/3d/layers/i3s/I3SBinaryReader.js +1 -1
- package/views/3d/layers/i3s/PointRenderer.js +1 -1
- package/views/3d/layers/support/HeatmapFeatureProcessor.js +5 -0
- package/views/3d/layers/support/overlayImageUtils.js +1 -1
- package/views/3d/layers/support/patternUtils.js +1 -1
- package/views/3d/state/controllers/local/PinchAndPanController.js +1 -1
- package/views/3d/support/FrustumExtentIntersection.js +1 -1
- package/views/3d/support/LaserLineRenderer.js +1 -1
- package/views/3d/support/LaserlinePathData.js +1 -1
- package/views/3d/support/pointsOfInterest/Focus.js +1 -1
- package/views/3d/support/sunUtils.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/PatchGeometryFactory.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/terrain/terrainUtils.js +1 -1
- package/views/3d/terrain/tileUtils.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentData.glsl.js +10 -10
- package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
- package/views/3d/webgl-engine/collections/Component/SourceGeometry.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/AllRenderPasses.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/ScreenSizeScaling.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js +4 -4
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/PositionAttribute.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/SymbolColor.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js +3 -3
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexColor.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +6 -6
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +12 -12
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexTextureCoordinates.glsl.js +4 -4
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VerticalOffset.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +16 -16
- package/views/3d/webgl-engine/core/shaderLibrary/default/RealisticTree.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +5 -5
- package/views/3d/webgl-engine/core/shaderLibrary/hud/HUDOcclusionPass.glsl.js +3 -3
- package/views/3d/webgl-engine/core/shaderLibrary/raster/BasicGrid.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeMaterialColor.glsl.js +6 -6
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeShadingNormal.glsl.js +10 -11
- package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassGeometryTest.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassTerrainTest.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/Normals.glsl.js +6 -6
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadBaseColorTexture.glsl.js +4 -4
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +6 -6
- package/views/3d/webgl-engine/core/shaderLibrary/shading/Reprojection.glsl.js +4 -4
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceReflections.glsl.js +5 -5
- package/views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +22 -14
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Terrain.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/BlendLayers.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +4 -4
- package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/Camera.js +1 -1
- package/views/3d/webgl-engine/lib/DefaultVertexAttributeLocations.js +1 -1
- package/views/3d/webgl-engine/lib/DefaultVertexBufferLayouts.js +1 -1
- package/views/3d/webgl-engine/lib/Geometry.js +1 -1
- package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
- package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
- package/views/3d/webgl-engine/lib/MagnifierHelper.js +1 -1
- package/views/3d/webgl-engine/lib/Material.js +1 -1
- package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/SSAOHelper.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
- package/views/3d/webgl-engine/lib/SmaaRenderPass.js +1 -1
- package/views/3d/webgl-engine/lib/TextRenderer.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/{layers/graphics/IGraphics3DFeatureProcessor.js → webgl-engine/lib/TextureUniformName.js} +0 -0
- package/views/3d/webgl-engine/lib/UniformName.js +4 -0
- package/views/3d/webgl-engine/lib/VertexAttribute.js +5 -0
- package/views/3d/webgl-engine/lib/basicInterfaces.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/EdgeShaderTechnique.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/bufferLayouts.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/InstanceData.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/RenderInstanceData.js +1 -1
- package/views/3d/webgl-engine/lib/pathGeometryUtils.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/PathTechnique.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/VisualVariableMaterialParameters.js +1 -1
- package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
- package/views/3d/webgl-engine/materials/internal/DefaultBufferWriter.js +1 -1
- package/views/3d/webgl-engine/materials/internal/MaterialUtil.js +1 -1
- package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
- package/views/3d/webgl-engine/materials/internal/waterMaterialUtils.js +1 -1
- package/views/3d/webgl-engine/shaders/CheckerBoard.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/CheckerBoardTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/HighlightComposition.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/HighlightTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/LaserlinePath.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/LaserlinePathTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/LineCallout.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/LineCalloutTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/Magnifier.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/MeasurementArrow.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/NativeLine.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/PointRenderer.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RealisticTreeTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/SMAA.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadedColorMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowCastTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowHighlightTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/SlicePlaneMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/WaterSurface.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/AdjustProjectedPosition.glsl.js +10 -10
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/DiscardShortEdges.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeShaderProgram.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeUtil.glsl.js +21 -21
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineAmplitude.glsl.js +6 -6
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineOffset.glsl.js +13 -13
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/UnpackAttributes.glsl.js +6 -6
- package/views/MapView.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/View.js +1 -1
- package/views/input/recognizers/DoubleTapDrag.js +1 -1
- package/views/input/recognizers/ImmediateDoubleClick.js +1 -1
- package/views/input/recognizers/PointerClickHoldAndDrag.js +1 -1
- package/views/input/recognizers/SingleAndDoubleClick.js +1 -1
- package/views/interactive/dragEventPipeline.js +1 -1
- package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
- package/views/support/DefaultsFromMap.js +1 -1
- package/views/support/WatchUpdatingTracking.js +1 -1
- package/views/support/projectionUtils.js +5 -0
- package/views/webgl/BufferObject.js +1 -1
- package/views/webgl/InstanceCounter.js +1 -1
- package/views/webgl/Program.js +1 -1
- package/views/webgl/rasterUtils.js +1 -1
- package/webdoc/support/{Thumbnail.js → SlideThumbnail.js} +1 -1
- package/webmap/Bookmark.js +1 -1
- package/webmap/Version.js +1 -1
- package/webscene/Slide.js +1 -1
- package/webscene/Version.js +1 -1
- package/webscene/support/SlideVisibleLayer.js +1 -1
- package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js +1 -1
- package/widgets/Attachments.js +1 -1
- package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
- package/widgets/BasemapGallery/support/BasemapGalleryItem.js +1 -1
- package/widgets/BasemapGallery/support/basemapCompatibilityUtils.js +1 -1
- package/widgets/BasemapGallery.js +1 -1
- package/widgets/Bookmarks/BookmarksViewModel.js +1 -1
- package/widgets/Bookmarks.js +1 -1
- package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.js +1 -1
- package/widgets/FeatureForm/InputField.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTemplates/FeatureTemplatesViewModel.js +1 -1
- package/widgets/LineOfSight/LineOfSightViewModel.js +1 -1
- package/widgets/Popup/PopupViewModel.js +1 -1
- package/widgets/Popup/actionUtils.js +1 -1
- package/widgets/Search/support/locatorUtils.js +1 -1
- package/widgets/Search.js +1 -1
- package/widgets/Slice/SliceViewModel.js +1 -1
- package/widgets/Slider/SliderViewModel.js +1 -1
- package/widgets/Slider.js +1 -1
- package/widgets/TimeSlider.js +1 -1
- package/widgets/Weather/WeatherViewModel.js +1 -1
- package/widgets/Weather/css.js +1 -1
- package/widgets/Weather/enums.js +5 -0
- package/widgets/Weather.js +1 -1
- package/widgets/support/InteractiveAnalysisViewModel.js +1 -1
- package/widgets/support/InteractiveToolViewModel.js +1 -1
- package/assets/components/assets/calcite-icon/checkSquareF16.json +0 -1
- package/assets/components/assets/calcite-icon/checkSquareF24.json +0 -1
- package/assets/components/assets/calcite-icon/checkSquareF32.json +0 -1
- package/assets/components/assets/calcite-icon/lineSolid4.json +0 -1
- package/assets/components/assets/calcite-icon/squareF16.json +0 -1
- package/assets/components/assets/calcite-icon/squareF24.json +0 -1
- package/assets/components/assets/calcite-icon/squareF32.json +0 -1
- package/assets/components/assets/calcite-icon/xHexagon16.json +0 -1
- package/assets/components/assets/calcite-icon/xHexagon24.json +0 -1
- package/assets/components/assets/calcite-icon/xHexagon32.json +0 -1
- package/assets/components/assets/calcite-icon/xHexagonF16.json +0 -1
- package/assets/components/assets/calcite-icon/xHexagonF24.json +0 -1
- package/assets/components/assets/calcite-icon/xHexagonF32.json +0 -1
- package/assets/components/assets/calcite-icon/xOctagonF16.json +0 -1
- package/assets/components/assets/calcite-icon/xOctagonF24.json +0 -1
- package/assets/components/assets/calcite-icon/xOctagonF32.json +0 -1
- package/assets/esri/core/workers/chunks/09da224052976e290828.js +0 -1
- package/assets/esri/core/workers/chunks/0bf079e752ab79468478.js +0 -1
- package/assets/esri/core/workers/chunks/0c3e3a5baf54bd5e210c.js +0 -1
- package/assets/esri/core/workers/chunks/14bef72154b3a19561a7.js +0 -1
- package/assets/esri/core/workers/chunks/18668dc45eb9e35530df.js +0 -1
- package/assets/esri/core/workers/chunks/1e4d37c2b9dc83d20a11.js +0 -1
- package/assets/esri/core/workers/chunks/20411bb8e04703962ce6.js +0 -1
- package/assets/esri/core/workers/chunks/208a7e24e19fc5633dd7.js +0 -1
- package/assets/esri/core/workers/chunks/22b09e276c9b9f22f0f8.js +0 -1
- package/assets/esri/core/workers/chunks/23745a5ab47c840dc452.js +0 -1
- package/assets/esri/core/workers/chunks/2416f8bf8bbd2ec786ab.js +0 -1
- package/assets/esri/core/workers/chunks/25a3e9bc0b4c7e0d3165.js +0 -1
- package/assets/esri/core/workers/chunks/2e445a8735ea2adb641a.js +0 -1
- package/assets/esri/core/workers/chunks/32f8c4af7e70ebdcb19e.js +0 -1
- package/assets/esri/core/workers/chunks/36a3f6fb4d1d18fcb642.js +0 -1
- package/assets/esri/core/workers/chunks/390d9021169e65c10eb8.js +0 -1
- package/assets/esri/core/workers/chunks/3a9740dccda6a733313c.js +0 -1
- package/assets/esri/core/workers/chunks/3aa4194dc5497c57647f.js +0 -1
- package/assets/esri/core/workers/chunks/40a1e713f63ec77110c0.js +0 -1
- package/assets/esri/core/workers/chunks/43cdff2418325e163420.js +0 -1
- package/assets/esri/core/workers/chunks/4bfbf5a34c9207fdcf44.js +0 -1
- package/assets/esri/core/workers/chunks/5538639a49c7cc2eca63.js +0 -1
- package/assets/esri/core/workers/chunks/5a4a5585ec8027079f32.js +0 -1
- package/assets/esri/core/workers/chunks/5d4863a92b03bebc1b54.js +0 -1
- package/assets/esri/core/workers/chunks/60371c0f750cde87656d.js +0 -1
- package/assets/esri/core/workers/chunks/634b5ccd7a3ac67f855d.js +0 -1
- package/assets/esri/core/workers/chunks/662d13f68cf3ec92439b.js +0 -1
- package/assets/esri/core/workers/chunks/663ad15b86936eb06b69.js +0 -1
- package/assets/esri/core/workers/chunks/67162b3e2cc1b5dc6818.js +0 -1
- package/assets/esri/core/workers/chunks/739e579150bf466d43ae.js +0 -1
- package/assets/esri/core/workers/chunks/74df1f3e1e2e524a89d2.js +0 -1
- package/assets/esri/core/workers/chunks/76eef4799f6c5fff7e2d.js +0 -1
- package/assets/esri/core/workers/chunks/7baf6b1f3f050aa67ae4.js +0 -1
- package/assets/esri/core/workers/chunks/7bc5cc5dbf1b7b70ddac.js +0 -1
- package/assets/esri/core/workers/chunks/85e27fd949475f9a6bbc.js +0 -1
- package/assets/esri/core/workers/chunks/8967288145f8fbd20e7d.js +0 -1
- package/assets/esri/core/workers/chunks/8b6ab6202a40fe622833.js +0 -1
- package/assets/esri/core/workers/chunks/96ab518eb6ba11333dee.js +0 -1
- package/assets/esri/core/workers/chunks/9796d54ff12b6429164a.js +0 -1
- package/assets/esri/core/workers/chunks/99a777693e4539f0b03b.js +0 -1
- package/assets/esri/core/workers/chunks/9cb2ae42a8e328b1d98d.js +0 -1
- package/assets/esri/core/workers/chunks/9d3c58a0ef634d95b7bd.js +0 -1
- package/assets/esri/core/workers/chunks/a6ff3db3493543df81bc.js +0 -1
- package/assets/esri/core/workers/chunks/a8c13529367c037cdd94.js +0 -1
- package/assets/esri/core/workers/chunks/a96afc176041f698c7a1.js +0 -1
- package/assets/esri/core/workers/chunks/aa861b8eae6c85f3dad4.js +0 -1
- package/assets/esri/core/workers/chunks/ac8dca61ade28c542ae2.js +0 -1
- package/assets/esri/core/workers/chunks/ad081d8e49e7f90c3c26.js +0 -1
- package/assets/esri/core/workers/chunks/afa6912454f2a5ffadce.js +0 -1
- package/assets/esri/core/workers/chunks/b2beb6e1fd2ee6503830.js +0 -1
- package/assets/esri/core/workers/chunks/ba615f118a3a8970ef25.js +0 -1
- package/assets/esri/core/workers/chunks/ba6654a885be4b7a43f0.js +0 -1
- package/assets/esri/core/workers/chunks/bab1cfd0a901181622af.js +0 -1
- package/assets/esri/core/workers/chunks/be2b7cce79fd41627931.js +0 -1
- package/assets/esri/core/workers/chunks/c080114a69fa95b88d22.js +0 -1
- package/assets/esri/core/workers/chunks/c11474b702dfb94e8e87.js +0 -1
- package/assets/esri/core/workers/chunks/c13dfdd548dcb1bdb294.js +0 -1
- package/assets/esri/core/workers/chunks/c6bd943fe8fd13bb4806.js +0 -1
- package/assets/esri/core/workers/chunks/c6f94b92e866b881d9b9.js +0 -1
- package/assets/esri/core/workers/chunks/ca2f5faa01d99c21ec14.js +0 -1
- package/assets/esri/core/workers/chunks/cd7d83d127e085d52584.js +0 -1
- package/assets/esri/core/workers/chunks/cef4af64860ebbfc1c47.js +0 -1
- package/assets/esri/core/workers/chunks/cfbffa429d88e7709c3f.js +0 -1
- package/assets/esri/core/workers/chunks/d24c4fbc567486b1188f.js +0 -1
- package/assets/esri/core/workers/chunks/d52108864136c5a8a618.js +0 -1
- package/assets/esri/core/workers/chunks/da1c2873bdbc0956dca0.js +0 -1
- package/assets/esri/core/workers/chunks/de03439ca2c9782bf325.js +0 -1
- package/assets/esri/core/workers/chunks/de6cff7b6cbbf99b20d1.js +0 -981
- package/assets/esri/core/workers/chunks/e079cb1d53aca15b7df2.js +0 -1
- package/assets/esri/core/workers/chunks/e59764ee8cf25d4f74e2.js +0 -1
- package/assets/esri/core/workers/chunks/e6df9839b551569fbc62.js +0 -1
- package/assets/esri/core/workers/chunks/e97e986120aaadad7d4c.js +0 -1
- package/assets/esri/core/workers/chunks/f467c8f1fce22f6f599c.js +0 -1
- package/assets/esri/core/workers/chunks/f678293de9a6d8f5b5db.js +0 -1
- package/assets/esri/core/workers/chunks/f8e7755240a94b499e1f.js +0 -1
- package/assets/esri/core/workers/chunks/fd3e5d823dc7917f4b8f.js +0 -1
- package/assets/esri/core/workers/chunks/fe864d01e72aa24574b6.js +0 -1
- package/assets/esri/core/workers/chunks/ffaf091c6023225cf5aa.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8511],{99880:(e,t,s)=>{s.d(t,{V:()=>a});var n=s(68773),r=(s(3172),s(20102)),o=s(92604),i=s(17452);const l=o.Z.getLogger("esri.assets");function a(e){if(!n.Z.assetsPath)throw l.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new r.Z("assets:path-not-set","config.assetsPath is not set");return(0,i.v_)(n.Z.assetsPath,e)}},80903:(e,t,s)=>{s.d(t,{Z:()=>a});var n=s(50758),r=s(92604),o=s(95330),i=s(25045);const l=r.Z.getLogger("esri.core.workers.Connection");class a{constructor(){this._clients=new Array,this._clientPromises=new Array,this._clientIdx=0}destroy(){this.close()}get closed(){return!this._clients||!this._clients.length}open(e,t){return new Promise(((s,n)=>{let r=!0;const l=e=>{(0,o.k_)(t.signal),r&&(r=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length;for(let r=0;r<e.length;++r){const a=e[r];(0,o.y8)(a)?this._clientPromises[r]=a.then((e=>(this._clients[r]=new i.default(e,t),l(s),this._clients[r])),(()=>(l(n),null))):(this._clients[r]=new i.default(a,t),this._clientPromises[r]=Promise.resolve(this._clients[r]),l(s))}}))}broadcast(e,t,s){const n=new Array(this._clientPromises.length);for(let r=0;r<this._clientPromises.length;++r){const o=this._clientPromises[r];n[r]=o.then((n=>n.invoke(e,t,s)))}return n}close(){for(const e of this._clientPromises)e.then((e=>e.close()));this._clients.length=0,this._clientPromises.length=0}getAvailableClient(){let e;for(let t=0;t<this._clients.length;++t){const s=this._clients[t];if(s){if(!s.isBusy())return Promise.resolve(s)}else e=e||[],e.push(this._clientPromises[t])}return e?Promise.race(e):(this._clientIdx=(this._clientIdx+1)%this._clients.length,Promise.resolve(this._clients[this._clientIdx]))}invoke(e,t,s){let n=null;return Array.isArray(s)?(l.warn("invoke()","The transferList parameter is deprecated, use the options object instead"),n={transferList:s}):n=s,this.closed?Promise.reject(new Error("Connection closed")):this.getAvailableClient().then((s=>s.invoke(e,t,n)))}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,n.AL)(this._clients.map((s=>s.on(e,t))))))}openPorts(){return new Promise((e=>{const t=new Array(this._clientPromises.length);let s=t.length;for(let n=0;n<this._clientPromises.length;++n)this._clientPromises[n].then((r=>{t[n]=r.openPort(),0==--s&&e(t)}))}))}get test(){return{numClients:this._clients.length}}}},25045:(e,t,s)=>{s.r(t),s.d(t,{default:()=>v});var n=s(40330),r=s(20102),o=s(91460),i=s(70586),l=s(95330),a=s(94362),c=s(17202);const h={statsWorker:()=>Promise.all([s.e(2785),s.e(6570),s.e(9928),s.e(2303),s.e(6841)]).then(s.bind(s,36841)),geometryEngineWorker:()=>Promise.all([s.e(5837),s.e(8227)]).then(s.bind(s,48227)),CSVSourceWorker:()=>Promise.all([s.e(2785),s.e(6570),s.e(9928),s.e(2303),s.e(7668),s.e(411),s.e(1534),s.e(3578),s.e(8961),s.e(7054),s.e(2781),s.e(966)]).then(s.bind(s,27793)),EdgeProcessingWorker:()=>Promise.all([s.e(6481),s.e(8936)]).then(s.bind(s,18936)),ElevationSamplerWorker:()=>Promise.all([s.e(2785),s.e(6570),s.e(9928),s.e(411),s.e(2781),s.e(6481),s.e(6459),s.e(3553)]).then(s.bind(s,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([s.e(2785),s.e(6570),s.e(9928),s.e(2303),s.e(7668),s.e(4588),s.e(411),s.e(1534),s.e(3485),s.e(3578),s.e(8961),s.e(7054),s.e(2781),s.e(5404)]).then(s.bind(s,2255)),GeoJSONSourceWorker:()=>Promise.all([s.e(2785),s.e(6570),s.e(9928),s.e(2303),s.e(7668),s.e(411),s.e(1534),s.e(3578),s.e(8961),s.e(7054),s.e(2781),s.e(6348),s.e(7845)]).then(s.bind(s,97845)),LercWorker:()=>s.e(3027).then(s.bind(s,23027)),MemorySourceWorker:()=>Promise.all([s.e(2785),s.e(6570),s.e(9928),s.e(2303),s.e(7668),s.e(411),s.e(1534),s.e(3578),s.e(8961),s.e(7054),s.e(2781),s.e(6348),s.e(639)]).then(s.bind(s,30639)),PBFDecoderWorker:()=>Promise.all([s.e(2785),s.e(6570),s.e(9928),s.e(8961),s.e(147)]).then(s.bind(s,61916)),Pipeline:()=>Promise.all([s.e(2785),s.e(6570),s.e(9928),s.e(2303),s.e(7668),s.e(5638),s.e(4588),s.e(411),s.e(1534),s.e(3485),s.e(3578),s.e(8961),s.e(7054),s.e(4325),s.e(2730),s.e(7783)]).then(s.bind(s,97783)),PointCloudWorker:()=>Promise.all([s.e(2785),s.e(6570),s.e(9928),s.e(2303),s.e(411),s.e(9294),s.e(9474)]).then(s.bind(s,16583)),RasterWorker:()=>Promise.all([s.e(2785),s.e(6570),s.e(9928),s.e(2303),s.e(411),s.e(176),s.e(8034)]).then(s.bind(s,61576)),SceneLayerWorker:()=>s.e(1412).then(s.bind(s,31412)),WFSSourceWorker:()=>Promise.all([s.e(2785),s.e(6570),s.e(9928),s.e(2303),s.e(7668),s.e(411),s.e(1534),s.e(3578),s.e(8961),s.e(7054),s.e(2781),s.e(6348),s.e(4556),s.e(3230)]).then(s.bind(s,43230)),WorkerTileHandler:()=>Promise.all([s.e(2303),s.e(4325),s.e(1785),s.e(6810),s.e(9872)]).then(s.bind(s,56456))},{CLOSE:u,ABORT:p,INVOKE:d,RESPONSE:f,OPEN_PORT:_,ON:g}=a.Cs;class m{constructor(e){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=e,this._timer=null,this._process=this._process.bind(this)}push(e){e.type===a.Cs.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class v{constructor(e,t){this._port=e,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new m((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}static connect(e){const t=new MessageChannel;let s;s="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const n=new v(t.port1,{channel:t,client:s});return"object"==typeof s&&"remoteClient"in s&&(s.remoteClient=n),v.clients.set(n,s),t.port2}static loadWorker(e){const t=h[e];return t?t():Promise.resolve(null)}close(){this._post({type:u}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,s){const n=s&&s.signal,o=s&&s.transferList;if(!this._port)return Promise.reject(new r.Z("worker:port-closed",`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const i=(0,a.jt)();return new Promise(((s,r)=>{const a=(0,l.$F)(n,(()=>{var e;const t=this._outJobs.get(i);t&&(this._outJobs.delete(i),null==(e=t.abortHandle)||e.remove(),this._post({type:p,jobId:i}),r((0,l.zE)()))})),c={resolve:s,reject:r,abortHandle:a,debugInfo:e};this._outJobs.set(i,c),this._post({type:d,jobId:i,methodName:e,abortable:null!=n},t,o)}))}on(e,t){const s=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:a.Cs.ON,eventType:e,port:s.port2},[s.port2]),s.port1.addEventListener("message",n),s.port1.start(),{remove(){s.port1.postMessage({type:a.Cs.CLOSE}),s.port1.close(),s.port1.removeEventListener("message",n)}}}openPort(){const e=new MessageChannel;return this._post({type:_,port:e.port2}),e.port1}_close(){this._channel&&(this._channel=null),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{var t;null==(t=e.abortHandle)||t.remove(),e.reject((0,l.zE)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=this._client=this._schedule=null}_onMessage(e){(0,i.pC)(this._schedule)?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,a.QM)(e);if(t)switch(t.type){case f:this._onResponseMessage(t);break;case d:this._invokeQueue.push(t);break;case p:this._onAbortMessage(t);break;case u:this._onCloseMessage();break;case _:this._onOpenPortMessage(t);break;case g:this._onOnMessage(t)}}_onAbortMessage(e){const t=this._inJobs,s=e.jobId,n=t.get(s);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(s))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&v.clients.get(this)===e&&e.destroy(),v.clients.delete(this),e&&e.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:s,data:n,abortable:r}=e,o=r?new AbortController:null,i=this._inJobs;let c,h=this._client,u=h[t];try{if(!u&&t&&-1!==t.indexOf(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)h=h[e[t]],u=h[e[t+1]]}if("function"!=typeof u)throw new TypeError(`${t} is not a function`);c=u.call(h,n,{client:this,signal:o?o.signal:null})}catch(e){return void this._post({type:f,jobId:s,error:(0,a.AB)(e)})}(0,l.y8)(c)?(i.set(s,{controller:o,promise:c}),c.then((e=>{i.has(s)&&(i.delete(s),this._post({type:f,jobId:s},e))}),(e=>{i.has(s)&&(i.delete(s),(0,l.D_)(e)||this._post({type:f,jobId:s,error:(0,a.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:f,jobId:s},c)}_onOpenPortMessage(e){new v(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,s=this._client.on(e.eventType,(e=>{t.postMessage(e)})),n=(0,o.on)(e.port,"message",(e=>{(0,a.QM)(e).type===a.Cs.CLOSE&&(n.remove(),s.remove(),t.close())}))}_onResponseMessage(e){var t;const{jobId:s,error:n,data:o}=e,i=this._outJobs;if(!i.has(s))return;const l=i.get(s);i.delete(s),null==(t=l.abortHandle)||t.remove(),n?l.reject(r.Z.fromJSON(JSON.parse(n))):l.resolve(o)}_post(e,t,s){return(0,a.oi)(this._port,e,t,s)}}v.kernelInfo={revision:c.$,version:n.i8,buildDate:c.r},v.clients=new Map},94362:(e,t,s)=>{s.d(t,{Cs:()=>n,jt:()=>l,oi:()=>c,QM:()=>h,AB:()=>a});var n,r,o=s(80442);(r=n||(n={}))[r.HANDSHAKE=0]="HANDSHAKE",r[r.OPEN=1]="OPEN",r[r.OPENED=2]="OPENED",r[r.RESPONSE=3]="RESPONSE",r[r.INVOKE=4]="INVOKE",r[r.ABORT=5]="ABORT",r[r.CLOSE=6]="CLOSE",r[r.OPEN_PORT=7]="OPEN_PORT",r[r.ON=8]="ON";let i=0;function l(){return i++}function a(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function c(e,t,s,r){if(t.type===n.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==n.INVOKE&&t.type!==n.RESPONSE)return void e.postMessage(t);let o;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(s)?(o=u(r),t.data=s):(o=u(s.transferList),t.data=s.result),o?e.postMessage(t,o):e.postMessage(t)}function h(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e||!e.length)return null;if((0,o.Z)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}(e)));return t.length?t:null}},69285:(e,t,s)=>{s.d(t,{k:()=>i});var n=s(70586),r=s(67900),o=s(8744);function i(e,t,s){if((0,n.Wi)(t)||(0,n.Wi)(s)||s.vcsWkid||(0,o.fS)(t,s))return null;const i=(0,r._R)(t)/(0,r._R)(s);if(1===i)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,i);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const s of e.paths)for(const e of s)e.length>2&&(e[2]*=t)}(e,i);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const s of e.rings)for(const e of s)e.length>2&&(e[2]*=t)}(e,i);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const s of e.points)s.length>2&&(s[2]*=t)}(e,i);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,i);default:return null}}},66677:(e,t,s)=>{s.d(t,{ld:()=>f,B5:()=>u,M8:()=>g,G:()=>y,Qc:()=>p,DR:()=>d,Nm:()=>m,XG:()=>v,a7:()=>_,wH:()=>b});var n=s(70586),r=s(17452),o=s(25929);const i={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer"},l=Object.values(i),a=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${l.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),c=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^\\/\\n]+)\\/(${l.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),h=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function u(e){return!!a.test(e)}function p(e){const t=(0,r.mN)(e),s=t.path.match(a)||t.path.match(c);if(!s)return null;const[,n,o,l,h]=s,u=o.indexOf("/");return{title:f(-1!==u?o.slice(u+1):o),serverType:i[l.toLowerCase()],sublayer:null!=h&&""!==h?parseInt(h,10):null,url:{path:n}}}function d(e){const t=(0,r.mN)(e).path.match(h);return t?{serviceUrl:t[1],sublayerId:Number(t[2])}:null}function f(e){return(e=e.replace(/\s*[/_]+\s*/g," "))[0].toUpperCase()+e.slice(1)}function _(e,t){const s=[];if(e){const t=p(e);(0,n.pC)(t)&&t.title&&s.push(t.title)}if(t){const e=f(t);s.push(e)}if(2===s.length){if(-1!==s[0].toLowerCase().indexOf(s[1].toLowerCase()))return s[0];if(-1!==s[1].toLowerCase().indexOf(s[0].toLowerCase()))return s[1]}return s.join(" - ")}function g(e){if(!e)return!1;const t=-1!==(e=e.toLowerCase()).indexOf(".arcgis.com/"),s=-1!==e.indexOf("//services")||-1!==e.indexOf("//tiles")||-1!==e.indexOf("//features");return t&&s}function m(e,t){return e?(0,r.Qj)((0,r.Hu)(e,t)):e}function v(e){let{url:t}=e;if(!t)return{url:t};t=(0,r.Hu)(t,e.logger);const s=(0,r.mN)(t),o=p(s.path);let i;if((0,n.pC)(o))null!=o.sublayer&&null==e.layer.layerId&&(i=o.sublayer),t=o.url.path;else if(e.nonStandardUrlAllowed){const e=d(s.path);(0,n.pC)(e)&&(t=e.serviceUrl,i=e.sublayerId)}return{url:(0,r.Qj)(t),layerId:i}}function b(e,t,s,n,i){(0,o.w)(t,n,"url",i),n.url&&null!=e.layerId&&(n.url=(0,r.v_)(n.url,s,e.layerId.toString()))}function y(e){if(!e)return!1;const t=e.toLowerCase(),s=-1!==t.indexOf("/services/"),n=-1!==t.indexOf("/mapserver/wmsserver"),r=-1!==t.indexOf("/imageserver/wmsserver"),o=-1!==t.indexOf("/wmsserver");return s&&(n||r||o)}},28694:(e,t,s)=>{s.d(t,{p:()=>o});var n=s(70586),r=s(69285);function o(e,t,s){if(!s||!s.features||!s.hasZ)return;const o=(0,r.k)(s.geometryType,t,e.outSpatialReference);if(!(0,n.Wi)(o))for(const e of s.features)o(e.geometry)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[755],{5499:(e,t,i)=>{i.d(t,{Z:()=>h});var s=i(43697),r=i(35454),a=i(96674),l=i(5600),n=(i(67676),i(80442),i(75215),i(52011)),o=i(69237);const p=new r.Xn({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary"},{ignoreUnknown:!0});let u=class extends a.wq{constructor(e){super(e),this.authoringInfo=null,this.type=null}async getRequiredFields(e){if(!this.collectRequiredFields)return[];const t=new Set;return await this.collectRequiredFields(t,e),Array.from(t).sort()}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}getAttributeHash(){return JSON.stringify(this)}getMeshHash(){return JSON.stringify(this)}};(0,s._)([(0,l.Cb)({type:o.Z,json:{write:!0}})],u.prototype,"authoringInfo",void 0),(0,s._)([(0,l.Cb)({type:p.apiValues,readOnly:!0,json:{type:p.jsonValues,read:!1,write:{writer:p.write,ignoreOrigin:!0}}})],u.prototype,"type",void 0),u=(0,s._)([(0,n.j)("esri.renderers.Renderer")],u);const h=u},12571:(e,t,i)=>{i.d(t,{W:()=>q});var s,r=i(43697),a=i(5600),l=(i(67676),i(80442),i(75215)),n=i(71715),o=i(52011),p=i(30556),u=i(35671),h=i(77997),d=i(21849);let c=s=class extends h.Z{constructor(e){super(e),this.type="color",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new s({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,r._)([(0,a.Cb)({readOnly:!0})],c.prototype,"cache",null),(0,r._)([(0,a.Cb)({type:["color"],json:{type:["colorInfo"]}})],c.prototype,"type",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],c.prototype,"normalizationField",void 0),(0,r._)([(0,a.Cb)({type:[d.Z],json:{write:!0}})],c.prototype,"stops",null),c=s=(0,r._)([(0,o.j)("esri.renderers.visualVariables.ColorVariable")],c);const y=c;var b,v=i(96674),m=i(65242);let w=b=class extends v.wq{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,m.b)(t.transparency)}writeOpacity(e,t,i){t[i]=(0,m.a)(e)}clone(){return new b({label:this.label,opacity:this.opacity,value:this.value})}};(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],w.prototype,"label",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{type:l.z8,write:{target:"transparency"}}})],w.prototype,"opacity",void 0),(0,r._)([(0,n.r)("opacity",["transparency"])],w.prototype,"readOpacity",null),(0,r._)([(0,p.c)("opacity")],w.prototype,"writeOpacity",null),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],w.prototype,"value",void 0),w=b=(0,r._)([(0,o.j)("esri.renderers.visualVariables.support.OpacityStop")],w);const g=w;var V;let _=V=class extends h.Z{constructor(e){super(e),this.type="opacity",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new V({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,r._)([(0,a.Cb)({readOnly:!0})],_.prototype,"cache",null),(0,r._)([(0,a.Cb)({type:["opacity"],json:{type:["transparencyInfo"]}})],_.prototype,"type",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],_.prototype,"normalizationField",void 0),(0,r._)([(0,a.Cb)({type:[g],json:{write:!0}})],_.prototype,"stops",null),_=V=(0,r._)([(0,o.j)("esri.renderers.visualVariables.OpacityVariable")],_);const f=_;var x=i(89513),S=i(23847),z=i(15923),C=i(35454),j=i(92604),T=i(20941);const E=j.Z.getLogger("esri.renderers.visualVariables.VisualVariableFactory"),F={color:y,size:S.Z,opacity:f,rotation:x.Z},O=new C.Xn({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),D=/^\[([^\]]+)\]$/i;let I=class extends z.Z{constructor(){super(...arguments),this.colorVariables=null,this.opacityVariables=null,this.rotationVariables=null,this.sizeVariables=null}set visualVariables(e){if(this._resetVariables(),(e=e&&e.filter((e=>!!e)))&&e.length){for(const t of e)switch(t.type){case"color":this.colorVariables.push(t);break;case"opacity":this.opacityVariables.push(t);break;case"rotation":this.rotationVariables.push(t);break;case"size":this.sizeVariables.push(t)}this.sizeVariables.length&&this.sizeVariables.some((e=>!!e.target))&&e.sort(((e,t)=>{let i=null;return i=e.target===t.target?0:e.target?1:-1,i}));for(let t=0;t<e.length;t++)e[t].index=t;this._set("visualVariables",e)}else this._set("visualVariables",e)}readVariables(e,t,i){const{rotationExpression:s,rotationType:r}=t,a=s&&s.match(D),l=a&&a[1];if(l&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:r,field:l})),e)return e.map((e=>{const t=O.read(e.type),s=F[t];s||(E.warn(`Unknown variable type: ${t}`),i&&i.messages&&i.messages.push(new T.Z("visual-variable:unsupported",`visualVariable of type '${t}' is not supported`,{definition:e,context:i})));const r=new s;return r.read(e,i),r}))}writeVariables(e,t){const i=[];for(const s of e){const e=s.toJSON(t);e&&i.push(e)}return i}_resetVariables(){this.colorVariables=[],this.opacityVariables=[],this.rotationVariables=[],this.sizeVariables=[]}};(0,r._)([(0,a.Cb)()],I.prototype,"visualVariables",null),I=(0,r._)([(0,o.j)("esri.renderers.visualVariables.VisualVariableFactory")],I);const k=I,Z={base:h.Z,key:"type",typeMap:{opacity:f,color:y,rotation:x.Z,size:S.Z}},q=e=>{let t=class extends e{constructor(){super(...arguments),this._vvFactory=new k}set visualVariables(e){this._vvFactory.visualVariables=e,this._set("visualVariables",this._vvFactory.visualVariables)}readVisualVariables(e,t,i){return this._vvFactory.readVariables(e,t,i)}writeVisualVariables(e,t,i,s){t[i]=this._vvFactory.writeVariables(e,s)}get arcadeRequiredForVisualVariables(){if(!this.visualVariables)return!1;for(const e of this.visualVariables)if(e.arcadeRequired)return!0;return!1}hasVisualVariables(e,t){return e?this.getVisualVariablesForType(e,t).length>0:this.getVisualVariablesForType("size",t).length>0||this.getVisualVariablesForType("color",t).length>0||this.getVisualVariablesForType("opacity",t).length>0||this.getVisualVariablesForType("rotation",t).length>0}getVisualVariablesForType(e,t){const i=this.visualVariables;return i?i.filter((i=>i.type===e&&("string"==typeof t?i.target===t:!1!==t||!i.target))):[]}async collectVVRequiredFields(e,t){let i=[];this.visualVariables&&(i=i.concat(this.visualVariables));for(const s of i)s&&(s.field&&(0,u.AB)(e,t,s.field),s.normalizationField&&(0,u.AB)(e,t,s.normalizationField),s.valueExpression&&await(0,u.io)(e,t,s.valueExpression))}};return(0,r._)([(0,a.Cb)({types:[Z],value:null,json:{write:!0}})],t.prototype,"visualVariables",null),(0,r._)([(0,n.r)("visualVariables",["visualVariables","rotationType","rotationExpression"])],t.prototype,"readVisualVariables",null),(0,r._)([(0,p.c)("visualVariables")],t.prototype,"writeVisualVariables",null),t=(0,r._)([(0,o.j)("esri.renderers.mixins.VisualVariablesMixin")],t),t}},69237:(e,t,i)=>{i.d(t,{Z:()=>I});var s,r=i(43697),a=i(35454),l=i(96674),n=i(22974),o=i(5600),p=i(75215),u=i(71715),h=i(52011);i(67676),i(80442);let d=s=class extends l.wq{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new s({minValue:this.minValue,maxValue:this.maxValue})}};(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],d.prototype,"minValue",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],d.prototype,"maxValue",void 0),d=s=(0,r._)([(0,h.j)("esri.renderer.support.AuthoringInfoClassBreakInfo")],d);const c=d;var y;let b=y=class extends l.wq{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=[]}clone(){return new y({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,n.d9)(this.classBreakInfos)})}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],b.prototype,"field",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],b.prototype,"normalizationField",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],b.prototype,"label",void 0),(0,r._)([(0,o.Cb)({type:[c],json:{write:!0}})],b.prototype,"classBreakInfos",void 0),b=y=(0,r._)([(0,h.j)("esri.renderers.support.AuthoringInfoFieldInfo")],b);const v=b;var m,w=i(90578);const g=new a.Xn({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),V=new a.Xn({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),_={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},f=["high-to-low","above-and-below","centered-on","extremes"],x=[...new Set(["high-to-low","above-and-below","centered-on","extremes","90-10","above","below","high-to-low","above-and-below","90-10","above","below"])],S=["seconds","minutes","hours","days","months","years"];let z=m=class extends l.wq{constructor(e){super(e),this.endTime=null,this.field=null,this.maxSliderValue=null,this.minSliderValue=null,this.startTime=null,this.type=null,this.units=null}castEndTime(e){return"string"==typeof e||"number"==typeof e?e:null}castStartTime(e){return"string"==typeof e||"number"==typeof e?e:null}get style(){return"color"===this.type?this._get("style"):null}set style(e){this._set("style",e)}get theme(){return"color"===this.type||"size"===this.type?this._get("theme")||"high-to-low":null}set theme(e){this._set("theme",e)}clone(){return new m({endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};(0,r._)([(0,o.Cb)({types:_,json:{write:!0}})],z.prototype,"endTime",void 0),(0,r._)([(0,w.p)("endTime")],z.prototype,"castEndTime",null),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],z.prototype,"field",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],z.prototype,"maxSliderValue",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],z.prototype,"minSliderValue",void 0),(0,r._)([(0,o.Cb)({types:_,json:{write:!0}})],z.prototype,"startTime",void 0),(0,r._)([(0,w.p)("startTime")],z.prototype,"castStartTime",null),(0,r._)([(0,o.Cb)({type:g.apiValues,value:null,json:{type:g.jsonValues,read:g.read,write:g.write}})],z.prototype,"style",null),(0,r._)([(0,o.Cb)({type:x,value:null,json:{type:x,origins:{"web-scene":{type:f,write:{writer:(e,t)=>{f.indexOf(e)>-1&&(t.theme=e)}}}},write:!0}})],z.prototype,"theme",null),(0,r._)([(0,o.Cb)({type:V.apiValues,json:{type:V.jsonValues,read:V.read,write:V.write}})],z.prototype,"type",void 0),(0,r._)([(0,o.Cb)({type:S,json:{type:S,write:!0}})],z.prototype,"units",void 0),z=m=(0,r._)([(0,h.j)("esri.renderers.support.AuthoringInfoVisualVariable")],z);const C=z;var j,T=i(94593);const E=new a.Xn({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),F=new a.Xn({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density"}),O=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers","decimal-degrees"];let D=j=class extends l.wq{constructor(e){super(e),this.colorRamp=null,this.lengthUnit=null,this.maxSliderValue=null,this.minSliderValue=null,this.visualVariables=null}get classificationMethod(){const e=this._get("classificationMethod"),t=this.type;return t&&"relationship"!==t?"class-breaks-size"===t||"class-breaks-color"===t?e||"manual":null:e}set classificationMethod(e){this._set("classificationMethod",e)}readColorRamp(e){if(e)return(0,T.i)(e)}get fields(){return this.type&&"predominance"!==this.type?null:this._get("fields")}set fields(e){this._set("fields",e)}get field1(){return this.type&&"relationship"!==this.type?null:this._get("field1")}set field1(e){this._set("field1",e)}get field2(){return this.type&&"relationship"!==this.type?null:this._get("field2")}set field2(e){this._set("field2",e)}get focus(){return this.type&&"relationship"!==this.type?null:this._get("focus")}set focus(e){this._set("focus",e)}get numClasses(){return this.type&&"relationship"!==this.type?null:this._get("numClasses")}set numClasses(e){this._set("numClasses",e)}get statistics(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("statistics"):null}set statistics(e){this._set("statistics",e)}get standardDeviationInterval(){const e=this.type;return e&&"relationship"!==e&&"class-breaks-size"!==e&&"class-breaks-color"!==e||this.classificationMethod&&"standard-deviation"!==this.classificationMethod?null:this._get("standardDeviationInterval")}set standardDeviationInterval(e){this._set("standardDeviationInterval",e)}get type(){return this._get("type")}set type(e){let t=e;"classed-size"===e?t="class-breaks-size":"classed-color"===e&&(t="class-breaks-color"),this._set("type",t)}get univariateSymbolStyle(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("univariateSymbolStyle"):null}set univariateSymbolStyle(e){this._set("univariateSymbolStyle",e)}get univariateTheme(){return"univariate-color-size"===this.type?this._get("univariateTheme"):null}set univariateTheme(e){this._set("univariateTheme",e)}clone(){return new j({classificationMethod:this.classificationMethod,colorRamp:(0,n.d9)(this.colorRamp),fields:this.fields&&this.fields.slice(0),field1:(0,n.d9)(this.field1),field2:(0,n.d9)(this.field2),focus:this.focus,numClasses:this.numClasses,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,lengthUnit:this.lengthUnit,statistics:this.statistics,standardDeviationInterval:this.standardDeviationInterval,type:this.type,visualVariables:this.visualVariables&&this.visualVariables.map((e=>e.clone())),univariateSymbolStyle:this.univariateSymbolStyle,univariateTheme:this.univariateTheme})}};(0,r._)([(0,o.Cb)({type:E.apiValues,value:null,json:{type:E.jsonValues,read:E.read,write:E.write,origins:{"web-document":{default:"manual",type:E.jsonValues,read:E.read,write:E.write}}}})],D.prototype,"classificationMethod",null),(0,r._)([(0,o.Cb)({types:T.V,json:{write:!0}})],D.prototype,"colorRamp",void 0),(0,r._)([(0,u.r)("colorRamp")],D.prototype,"readColorRamp",null),(0,r._)([(0,o.Cb)({type:[String],value:null,json:{write:!0}})],D.prototype,"fields",null),(0,r._)([(0,o.Cb)({type:v,value:null,json:{write:!0}})],D.prototype,"field1",null),(0,r._)([(0,o.Cb)({type:v,value:null,json:{write:!0}})],D.prototype,"field2",null),(0,r._)([(0,o.Cb)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],D.prototype,"focus",null),(0,r._)([(0,o.Cb)({type:Number,value:null,json:{type:p.z8,write:!0}})],D.prototype,"numClasses",null),(0,r._)([(0,o.Cb)({type:O,json:{type:O,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],D.prototype,"lengthUnit",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],D.prototype,"maxSliderValue",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],D.prototype,"minSliderValue",void 0),(0,r._)([(0,o.Cb)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],D.prototype,"statistics",null),(0,r._)([(0,o.Cb)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],D.prototype,"standardDeviationInterval",null),(0,r._)([(0,o.Cb)({type:F.apiValues,value:null,json:{type:F.jsonValues,read:F.read,write:F.write}})],D.prototype,"type",null),(0,r._)([(0,o.Cb)({type:[C],json:{write:!0}})],D.prototype,"visualVariables",void 0),(0,r._)([(0,o.Cb)({type:["caret","circle-caret","arrow","circle-arrow","plus-minus","circle-plus-minus","square","circle","triangle","happy-sad","thumb","custom"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],D.prototype,"univariateSymbolStyle",null),(0,r._)([(0,o.Cb)({type:["high-to-low","above-and-below","above","below","90-10"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],D.prototype,"univariateTheme",null),D=j=(0,r._)([(0,h.j)("esri.renderers.support.AuthoringInfo")],D);const I=D},66338:(e,t,i)=>{i.d(t,{Z:()=>p});var s,r=i(43697),a=i(96674),l=i(5600),n=(i(67676),i(80442),i(75215),i(52011));let o=s=class extends a.wq{constructor(){super(...arguments),this.title=null}clone(){return new s({title:this.title})}};(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],o.prototype,"title",void 0),o=s=(0,r._)([(0,n.j)("esri.renderers.support.LegendOptions")],o);const p=o},89513:(e,t,i)=>{i.d(t,{Z:()=>h});var s,r=i(43697),a=i(20102),l=i(5600),n=(i(67676),i(80442),i(75215),i(52011)),o=i(30556),p=i(77997);let u=s=class extends p.Z{constructor(e){super(e),this.axis=null,this.type="rotation",this.rotationType="geographic",this.valueExpressionTitle=null}get cache(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}writeValueExpressionTitleWebScene(e,t,i,s){if(s&&s.messages){const e=`visualVariables[${this.index}]`;s.messages.push(new a.Z("property:unsupported",this.type+"VisualVariable.valueExpressionTitle is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:e+".valueExpressionTitle",context:s}))}}clone(){return new s({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions&&this.legendOptions.clone()})}};(0,r._)([(0,l.Cb)({readOnly:!0})],u.prototype,"cache",null),(0,r._)([(0,l.Cb)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],u.prototype,"axis",void 0),(0,r._)([(0,l.Cb)({type:["rotation"],json:{type:["rotationInfo"]}})],u.prototype,"type",void 0),(0,r._)([(0,l.Cb)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],u.prototype,"rotationType",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],u.prototype,"valueExpressionTitle",void 0),(0,r._)([(0,o.c)("web-scene","valueExpressionTitle")],u.prototype,"writeValueExpressionTitleWebScene",null),u=s=(0,r._)([(0,n.j)("esri.renderers.visualVariables.RotationVariable")],u);const h=u},23847:(e,t,i)=>{i.d(t,{Z:()=>T});var s,r=i(43697),a=i(20102),l=i(35454),n=i(92604),o=i(62357),p=i(5600),u=(i(67676),i(80442),i(90578)),h=i(71715),d=i(52011),c=i(30556),y=i(77997),b=i(30856),v=(i(75215),i(58439));let m=s=class extends v.Z{constructor(){super(...arguments),this.customValues=null}clone(){return new s({title:this.title,showLegend:this.showLegend,customValues:this.customValues&&this.customValues.slice(0)})}};(0,r._)([(0,p.Cb)({type:[Number],json:{write:!0}})],m.prototype,"customValues",void 0),m=s=(0,r._)([(0,d.j)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],m);const w=m;var g,V=i(51706),_=i(28101);const f=n.Z.getLogger("esri.renderers.visualVariables.SizeVariable"),x=new l.Xn({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),S=new l.Xn({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers","decimal-degree":"decimal-degrees"});function z(e){if(null!=e)return"string"==typeof e||"number"==typeof e?(0,o.t_)(e):"size"===e.type?(0,V.iY)(e)?e:(delete(e={...e}).type,new j(e)):void 0}function C(e,t,i){if("object"!=typeof e)return e;const s=new j;return s.read(e,i),s}let j=g=class extends y.Z{constructor(e){super(e),this.axis=null,this.legendOptions=null,this.normalizationField=null,this.scaleBy=null,this.target=null,this.type="size",this.useSymbolValue=null,this.valueExpression=null,this.valueRepresentation=null,this.valueUnit=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:_.B3.test(this.valueExpression)}}set expression(e){f.warn("'expression' is deprecated since version 4.2. Use 'valueExpression' instead. The only supported expression is 'view.scale'."),"view.scale"===e?(this.valueExpression="$view.scale",this._set("expression",e)):this._set("expression",null)}set index(e){(0,V.iY)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,V.iY)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,V.PS)(this)}set maxDataValue(e){e&&this.stops&&(f.warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}set maxSize(e){e&&this.stops&&(f.warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",e)}castMaxSize(e){return z(e)}readMaxSize(e,t,i){return C(e,0,i)}set minDataValue(e){e&&this.stops&&(f.warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}set minSize(e){e&&this.stops&&(f.warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",e)}castMinSize(e){return z(e)}readMinSize(e,t,i){return C(e,0,i)}get arcadeRequired(){return!!this.valueExpression||this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||this.maxSize&&"object"==typeof this.maxSize&&this.maxSize.arcadeRequired}set stops(e){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)):e&&(f.warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),e=null),this._set("stops",e)}get transformationType(){return(0,V.QW)(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,i,s){if("$view.scale"===e){if(s&&s.messages){const e=this.index,t="string"==typeof e?e:`visualVariables[${e}]`;s.messages.push(new a.Z("property:unsupported",this.type+"VisualVariable.valueExpression = '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:t+".valueExpression",context:s}))}}else t[i]=e}readValueUnit(e){return e?S.read(e):null}clone(){return new g({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,V.iY)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,V.iY)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops&&this.stops.map((e=>e.clone())),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions&&this.legendOptions.clone()})}flipSizes(){if(this.transformationType===V.hL.ClampedLinear){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if(this.transformationType===V.hL.Stops){const e=this.stops,t=e.map((e=>e.size)).reverse(),i=e.length;for(let s=0;s<i;s++)e[s].size=t[s];return this}return this}getAttributeHash(){return`${super.getAttributeHash()}-${this.target}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,r._)([(0,p.Cb)({readOnly:!0})],j.prototype,"cache",null),(0,r._)([(0,p.Cb)({type:x.apiValues,json:{type:x.jsonValues,origins:{"web-map":{read:!1}},read:x.read,write:x.write}})],j.prototype,"axis",void 0),(0,r._)([(0,p.Cb)({type:String,value:null,json:{read:!1}})],j.prototype,"expression",null),(0,r._)([(0,p.Cb)()],j.prototype,"index",null),(0,r._)([(0,p.Cb)({type:String,readOnly:!0})],j.prototype,"inputValueType",null),(0,r._)([(0,p.Cb)({type:w,json:{write:!0}})],j.prototype,"legendOptions",void 0),(0,r._)([(0,p.Cb)({type:Number,value:null,json:{write:!0}})],j.prototype,"maxDataValue",null),(0,r._)([(0,p.Cb)({type:Number,value:null,json:{write:!0}})],j.prototype,"maxSize",null),(0,r._)([(0,u.p)("maxSize")],j.prototype,"castMaxSize",null),(0,r._)([(0,h.r)("maxSize")],j.prototype,"readMaxSize",null),(0,r._)([(0,p.Cb)({type:Number,value:null,json:{write:!0}})],j.prototype,"minDataValue",null),(0,r._)([(0,p.Cb)({type:Number,value:null,json:{write:!0}})],j.prototype,"minSize",null),(0,r._)([(0,u.p)("minSize")],j.prototype,"castMinSize",null),(0,r._)([(0,h.r)("minSize")],j.prototype,"readMinSize",null),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],j.prototype,"normalizationField",void 0),(0,r._)([(0,p.Cb)({readOnly:!0})],j.prototype,"arcadeRequired",null),(0,r._)([(0,p.Cb)({type:String})],j.prototype,"scaleBy",void 0),(0,r._)([(0,p.Cb)({type:[b.Z],value:null,json:{write:!0}})],j.prototype,"stops",null),(0,r._)([(0,p.Cb)({type:["outline"],json:{write:!0}})],j.prototype,"target",void 0),(0,r._)([(0,p.Cb)({type:String,readOnly:!0})],j.prototype,"transformationType",null),(0,r._)([(0,p.Cb)({type:["size"],json:{type:["sizeInfo"]}})],j.prototype,"type",void 0),(0,r._)([(0,p.Cb)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],j.prototype,"useSymbolValue",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],j.prototype,"valueExpression",void 0),(0,r._)([(0,h.r)("valueExpression",["valueExpression","expression"])],j.prototype,"readValueExpression",null),(0,r._)([(0,c.c)("web-scene","valueExpression")],j.prototype,"writeValueExpressionWebScene",null),(0,r._)([(0,p.Cb)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],j.prototype,"valueRepresentation",void 0),(0,r._)([(0,p.Cb)({type:S.apiValues,json:{write:S.write,origins:{"web-map":{read:!1},"web-scene":{write:!0}}}})],j.prototype,"valueUnit",void 0),(0,r._)([(0,h.r)("valueUnit")],j.prototype,"readValueUnit",null),j=g=(0,r._)([(0,d.j)("esri.renderers.visualVariables.SizeVariable")],j);const T=j},77997:(e,t,i)=>{i.d(t,{Z:()=>b});var s=i(43697),r=i(35454),a=i(96674),l=i(92604),n=i(5600),o=(i(67676),i(80442),i(90578)),p=i(52011),u=i(75215),h=i(58439);const d=l.Z.getLogger("esri.renderers.visualVariables.VisualVariable"),c=new r.Xn({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let y=class extends a.wq{constructor(e){super(e),this.index=null,this.type=null,this.field=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null}castField(e){return null==e?e:"function"==typeof e?(d.error(".field: field must be a string value"),null):(0,u.Zs)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}getAttributeHash(){return`${this.type}-${this.field}-${this.valueExpression}`}};(0,s._)([(0,n.Cb)()],y.prototype,"index",void 0),(0,s._)([(0,n.Cb)({type:c.apiValues,readOnly:!0,json:{read:c.read,write:c.write}})],y.prototype,"type",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,s._)([(0,o.p)("field")],y.prototype,"castField",null),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],y.prototype,"valueExpression",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],y.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,n.Cb)({readOnly:!0})],y.prototype,"arcadeRequired",null),(0,s._)([(0,n.Cb)({type:h.Z,json:{write:!0}})],y.prototype,"legendOptions",void 0),y=(0,s._)([(0,p.j)("esri.renderers.visualVariables.VisualVariable")],y);const b=y},21849:(e,t,i)=>{i.d(t,{Z:()=>d});var s,r=i(43697),a=i(22303),l=i(96674),n=i(5600),o=(i(67676),i(80442),i(75215)),p=i(52011),u=i(30556);let h=s=class extends l.wq{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,i){t[i]=null==e?0:e}clone(){return new s({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,r._)([(0,n.Cb)({type:a.Z,json:{type:[o.z8],write:!0}})],h.prototype,"color",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],h.prototype,"label",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],h.prototype,"value",void 0),(0,r._)([(0,u.c)("value")],h.prototype,"writeValue",null),h=s=(0,r._)([(0,p.j)("esri.renderers.visualVariables.support.ColorStop")],h);const d=h},30856:(e,t,i)=>{i.d(t,{Z:()=>u});var s,r=i(43697),a=i(96674),l=i(62357),n=i(5600),o=(i(67676),i(80442),i(75215),i(52011));let p=s=class extends a.wq{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new s({label:this.label,size:this.size,value:this.value})}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,r._)([(0,n.Cb)({type:Number,cast:l.t_,json:{write:!0}})],p.prototype,"size",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{write:!0}})],p.prototype,"value",void 0),p=s=(0,r._)([(0,o.j)("esri.renderers.visualVariables.support.SizeStop")],p);const u=p},58439:(e,t,i)=>{i.d(t,{Z:()=>p});var s,r=i(43697),a=i(5600),l=(i(67676),i(80442),i(75215),i(52011)),n=i(66338);let o=s=class extends n.Z{constructor(){super(...arguments),this.showLegend=null}clone(){return new s({title:this.title,showLegend:this.showLegend})}};(0,r._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],o.prototype,"showLegend",void 0),o=s=(0,r._)([(0,l.j)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],o);const p=o}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5823],{84552:(e,t,r)=>{r.d(t,{Z:()=>y});var i,s=r(43697),a=r(96674),l=r(35463),n=r(5600),o=(r(67676),r(80442),r(75215),r(52011)),u=r(78981);let p=i=class extends a.wq{constructor(e){super(e),this.value=0,this.unit="milliseconds"}toMilliseconds(){return(0,l.rJ)(this.value,this.unit,"milliseconds")}clone(){return new i({value:this.value,unit:this.unit})}};(0,s._)([(0,n.Cb)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),(0,s._)([(0,n.Cb)({type:u.v.apiValues,json:{type:u.v.jsonValues,read:u.v.read,write:u.v.write},nonNullable:!0})],p.prototype,"unit",void 0),p=i=(0,s._)([(0,o.j)("esri.TimeInterval")],p);const y=p},68668:(e,t,r)=>{r.d(t,{GZ:()=>n,wF:()=>o});var i=r(66643),s=r(80539),a=r(83379),l=r(70586);async function n(e,t){return await e.load(),o(e,t)}async function o(e,t){const r=[],n=(...e)=>{for(const t of e)(0,l.Wi)(t)||(Array.isArray(t)?n(...t):s.Z.isCollection(t)?t.forEach((e=>n(e))):a.Z.isLoadable(t)&&r.push(t))};t(n);let o=null;if(await(0,i.UI)(r,(async e=>{!1!==(await(0,i.q6)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load())).ok||o||(o=e)})),o)throw o.loadError;return e}},75823:(e,t,r)=>{r.r(t),r.d(t,{default:()=>J});var i=r(43697),s=r(3172),a=r(92835),l=r(20102),n=r(3920),o=r(68668),u=r(70586),p=r(16453),y=r(95330),d=r(5600),m=(r(67676),r(80442),r(75215)),c=r(71715),h=r(52011),v=r(30556),g=r(31263),f=r(6570),b=r(91040),w=r(29600),I=r(54295),_=r(7944),x=r(17287),S=r(71612),C=r(17017),T=r(38009),E=r(16859),O=r(34760),D=r(72965),U=r(10343),F=r(28294),L=r(21506),j=r(15923),P=r(32073),N=r(410);const Z={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let M=class extends((0,n.p)(j.Z)){constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const e=this.visibleSublayers.map((e=>{const t=(0,N.ff)(this.floors,e);return e.toExportImageJSON(t)}));return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,P.FN)(this.visibleSublayers,this.layer.serviceSublayers,this.layer)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.handles.remove("layer"),e&&this.handles.add([e.allSublayers.on("change",(()=>this.notifyChange("visibleSublayers"))),e.on("sublayer-update",(e=>this.notifyChange(Z[e.propertyName])))],"layer"))}get layers(){const e=this.visibleSublayers;return e?e.length?"show:"+e.map((e=>e.id)).join(","):"show:-1":null}get layerDefs(){var e;const t=!(null==(e=this.floors)||!e.length),r=this.visibleSublayers.filter((e=>null!=e.definitionExpression||t&&null!=e.floorInfo));return r.length?JSON.stringify(r.reduce(((e,t)=>{const r=(0,N.ff)(this.floors,t),i=(0,u.pC)(r)?(0,N.Hp)(r,t):t.definitionExpression;return e[t.id]=i,e}),{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers"),this.commitProperty("timeExtent");const e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const e=[];if(!this.layer)return e;const t=this.layer.sublayers,r=t=>{const i=this.scale,s=0===i,a=0===t.minScale||i<=t.minScale,l=0===t.maxScale||i>=t.maxScale;t.visible&&(s||a&&l)&&(t.sublayers?t.sublayers.forEach(r):e.unshift(t))};t&&t.forEach(r);const i=this._get("visibleSublayers");return!i||i.length!==e.length||i.some(((t,r)=>e[r]!==t))?e:i}toJSON(){const e=this.layer;let t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,i._)([(0,d.Cb)({readOnly:!0})],M.prototype,"dynamicLayers",null),(0,i._)([(0,d.Cb)()],M.prototype,"floors",void 0),(0,i._)([(0,d.Cb)({readOnly:!0})],M.prototype,"hasDynamicLayers",null),(0,i._)([(0,d.Cb)()],M.prototype,"layer",null),(0,i._)([(0,d.Cb)({readOnly:!0})],M.prototype,"layers",null),(0,i._)([(0,d.Cb)({readOnly:!0})],M.prototype,"layerDefs",null),(0,i._)([(0,d.Cb)({type:Number})],M.prototype,"scale",void 0),(0,i._)([(0,d.Cb)(L.qG)],M.prototype,"timeExtent",void 0),(0,i._)([(0,d.Cb)({readOnly:!0})],M.prototype,"version",null),(0,i._)([(0,d.Cb)({readOnly:!0})],M.prototype,"visibleSublayers",null),M=(0,i._)([(0,h.j)("esri.layers.mixins.ExportImageParameters")],M);var R=r(49867);let k=class extends((0,S.h)((0,F.n)((0,D.M)((0,U.x)((0,_.O)((0,x.Y)((0,T.q)((0,E.I)((0,p.R)((0,O.Q)((0,I.V)((0,C.N)((0,n.p)(w.Z)))))))))))))){constructor(...e){super(...e),this.datesInUnknownTimezone=!1,this.dpi=96,this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=(0,u.pC)(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(y.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.indexOf("PNG32")>-1?"png32":"png24"}writeSublayers(e,t,r,i){if(!this.loaded||!e)return;const s=e.slice().reverse().flatten((({sublayers:e})=>e&&e.toArray().reverse())).toArray();let a=!1;if(this.capabilities&&this.capabilities.operations.supportsExportMap&&this.capabilities.exportMap.supportsDynamicLayers){const e=(0,g.M9)(i.origin);if(e===g.s3.PORTAL_ITEM){const e=this.createSublayersForOrigin("service").sublayers;a=(0,P.QV)(s,e,g.s3.SERVICE)}else if(e>g.s3.PORTAL_ITEM){const e=this.createSublayersForOrigin("portal-item");a=(0,P.QV)(s,e.sublayers,(0,g.M9)(e.origin))}}const l=[],n={writeSublayerStructure:a,...i};let o=a;s.forEach((e=>{const t=e.write({},n);l.push(t),o=o||"user"===e.originOf("visible")})),l.some((e=>Object.keys(e).length>1))&&(t.layers=l),o&&(t.visibleLayers=s.filter((e=>e.visible)).map((e=>e.id)))}createExportImageParameters(e,t,r,i){const s=i&&i.pixelRatio||1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian());const a=new M({layer:this,floors:null==i?void 0:i.floors,scale:(0,b.yZ)({extent:e,width:t})*s}),l=a.toJSON();a.destroy();const n=!i||!i.rotation||this.version<10.3?{}:{rotation:-i.rotation},o=e&&e.spatialReference,u=o.wkid||JSON.stringify(o.toJSON());l.dpi*=s;const p={};if(null!=i&&i.timeExtent){const{start:e,end:t}=i.timeExtent.toJSON();p.time=e&&t&&e===t?""+e:`${null==e?"null":e},${null==t?"null":t}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(p.time="null,null");return{bbox:e&&e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,bboxSR:u,imageSR:u,size:t+","+r,...l,...n,...p}}async fetchImage(e,t,r,i){var a;const n={responseType:"image",signal:null!=(a=null==i?void 0:i.signal)?a:null,query:{...this.parsedUrl.query,...this.createExportImageParameters(e,t,r,i),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},o=this.parsedUrl.path+"/export";return null==n.query.dynamicLayers||this.capabilities.exportMap.supportsDynamicLayers?(0,s.default)(o,n).then((e=>e.data)).catch((e=>{if((0,y.D_)(e))throw e;throw new l.Z("mapimagelayer:image-fetch-error",`Unable to load image: ${o}`,{error:e})})):Promise.reject(new l.Z("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:n.query}))}async fetchRecomputedExtents(e={}){const t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await(0,s.default)(this.url,t),{extent:i,fullExtent:l,timeExtent:n}=r,o=i||l;return{fullExtent:o&&f.Z.fromJSON(o),timeExtent:n&&a.Z.fromJSON({start:n[0],end:n[1]})}}loadAll(){return(0,o.GZ)(this,(e=>{e(this.allSublayers)}))}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:r}=await(0,s.default)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}};(0,i._)([(0,d.Cb)({type:Boolean})],k.prototype,"datesInUnknownTimezone",void 0),(0,i._)([(0,d.Cb)()],k.prototype,"dpi",void 0),(0,i._)([(0,d.Cb)()],k.prototype,"gdbVersion",void 0),(0,i._)([(0,d.Cb)()],k.prototype,"imageFormat",void 0),(0,i._)([(0,c.r)("imageFormat",["supportedImageFormatTypes"])],k.prototype,"readImageFormat",null),(0,i._)([(0,d.Cb)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],k.prototype,"imageMaxHeight",void 0),(0,i._)([(0,d.Cb)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],k.prototype,"imageMaxWidth",void 0),(0,i._)([(0,d.Cb)()],k.prototype,"imageTransparency",void 0),(0,i._)([(0,d.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],k.prototype,"isReference",void 0),(0,i._)([(0,d.Cb)({json:{read:!1,write:!1}})],k.prototype,"labelsVisible",void 0),(0,i._)([(0,d.Cb)({type:["ArcGISMapServiceLayer"]})],k.prototype,"operationalLayerType",void 0),(0,i._)([(0,d.Cb)({json:{read:!1,write:!1}})],k.prototype,"popupEnabled",void 0),(0,i._)([(0,d.Cb)()],k.prototype,"sourceJSON",void 0),(0,i._)([(0,d.Cb)({json:{write:{ignoreOrigin:!0}}})],k.prototype,"sublayers",void 0),(0,i._)([(0,v.c)("sublayers",{layers:{type:[R.Z]},visibleLayers:{type:[m.z8]}})],k.prototype,"writeSublayers",null),(0,i._)([(0,d.Cb)({type:["show","hide","hide-children"]})],k.prototype,"listMode",void 0),(0,i._)([(0,d.Cb)({json:{read:!1},readOnly:!0,value:"map-image"})],k.prototype,"type",void 0),(0,i._)([(0,d.Cb)(L.HQ)],k.prototype,"url",void 0),k=(0,i._)([(0,h.j)("esri.layers.MapImageLayer")],k);const J=k},16859:(e,t,r)=>{r.d(t,{I:()=>w});var i=r(43697),s=r(40330),a=r(3172),l=r(66643),n=r(20102),o=r(92604),u=r(70586),p=r(95330),y=r(17452),d=r(5600),m=(r(67676),r(80442),r(75215),r(71715)),c=r(52011),h=r(30556),v=r(65587),g=r(15235),f=r(86082);const b=o.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 g.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 i=await r.e(8062).then(r.bind(r,18062));return(0,p.k_)(t),await i.load({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData},t)}catch(e){throw(0,p.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,p.r9)(e),!0))))}async _fetchUserHasEditingPrivileges(e){const t=this.url?null==s.id?void 0:s.id.findCredential(this.url):null;if(!t)return!0;const r=I.credential===t?I.user:await this._fetchEditingUser(e);return I.credential=t,I.user=r,(0,u.Wi)(r)||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){var t,r;const i=null==(t=this.portalItem)||null==(r=t.portal)?void 0:r.user;if(i)return i;const n=s.id.findServerInfo(this.url);if(null==n||!n.owningSystemUrl)return null;const o=`${n.owningSystemUrl}/sharing/rest`,p=v.Z.getDefault();if(p&&p.loaded&&(0,y.Fv)(p.restUrl)===(0,y.Fv)(o))return p.user;const d=`${o}/community/self`,m=(0,u.pC)(e)?e.signal:null,c=await(0,l.q6)((0,a.default)(d,{authMode:"no-prompt",query:{f:"json"},signal:m}));return c.ok?f.default.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,i=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||v.Z.getDefault());return r&&i&&!(0,y.tm)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new n.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,i._)([(0,d.Cb)({type:g.default})],t.prototype,"portalItem",null),(0,i._)([(0,m.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,h.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,d.Cb)()],t.prototype,"resourceReferences",void 0),(0,i._)([(0,d.Cb)({readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),t=(0,i._)([(0,c.j)("esri.layers.mixins.PortalLayer")],t),t},I={credential:null,user:null}},28294:(e,t,r)=>{r.d(t,{n:()=>d});var i=r(43697),s=r(92835),a=r(84552),l=r(5600),n=(r(67676),r(80442),r(75215),r(71715)),o=r(52011),u=r(30547),p=r(35671),y=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 i=r.timeOffset,s=y.v.fromJSON(r.timeOffsetUnits);return i&&s?new a.Z({value:i,unit:s}):null}set timeInfo(e){(0,p.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,l.Cb)({type:s.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,l.Cb)({type:a.Z})],t.prototype,"timeOffset",void 0),(0,i._)([(0,n.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,l.Cb)({value:null,type:u.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,l.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,o.j)("esri.layers.mixins.TemporalLayer")],t),t}},30547:(e,t,r)=>{r.d(t,{Z:()=>b});var i,s=r(43697),a=r(92835),l=r(84552),n=r(96674),o=r(22974),u=r(70586),p=r(5600),y=(r(75215),r(71715)),d=r(52011),m=r(30556);r(67676),r(80442);let c=i=class extends n.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 i({respectsDaylightSaving:e,timezone:t})}};(0,s._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],c.prototype,"respectsDaylightSaving",void 0),(0,s._)([(0,y.r)("respectsDaylightSaving",["respectsDaylightSaving","respectDaylightSaving"])],c.prototype,"readRespectsDaylightSaving",null),(0,s._)([(0,p.Cb)({type:String,json:{read:{source:"timeZone"},write:{target:"timeZone"}}})],c.prototype,"timezone",void 0),c=i=(0,s._)([(0,d.j)("esri.layers.support.TimeReference")],c);const h=c;var v,g=r(78981);let f=v=class extends n.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]),i=new Date(t.timeExtent[1]);return new a.Z({start:r,end:i})}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 l.Z({value:t.timeInterval,unit:g.v.fromJSON(t.timeIntervalUnits)}):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?new l.Z({value:t.defaultTimeInterval,unit:g.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:i,startField:s,timeReference:a,fullTimeExtent:l,trackIdField:n,useTime:u}=this;return new v({cumulative:e,endField:t,hasLiveData:r,interval:i,startField:s,timeReference:(0,o.d9)(a),fullTimeExtent:(0,o.d9)(l),trackIdField:n,useTime:u})}};(0,s._)([(0,p.Cb)({type:Boolean,json:{read:{source:"exportOptions.timeDataCumulative"},write:{target:"exportOptions.timeDataCumulative"}}})],f.prototype,"cumulative",void 0),(0,s._)([(0,p.Cb)({type:String,json:{read:{source:"endTimeField"},write:{target:"endTimeField",allowNull:!0}}})],f.prototype,"endField",void 0),(0,s._)([(0,p.Cb)({type:a.Z,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"fullTimeExtent",void 0),(0,s._)([(0,y.r)("fullTimeExtent",["timeExtent"])],f.prototype,"readFullTimeExtent",null),(0,s._)([(0,m.c)("fullTimeExtent")],f.prototype,"writeFullTimeExtent",null),(0,s._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],f.prototype,"hasLiveData",void 0),(0,s._)([(0,p.Cb)({type:l.Z,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"interval",void 0),(0,s._)([(0,y.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],f.prototype,"readInterval",null),(0,s._)([(0,m.c)("interval")],f.prototype,"writeInterval",null),(0,s._)([(0,p.Cb)({type:String,json:{read:{source:"startTimeField"},write:{target:"startTimeField",allowNull:!0}}})],f.prototype,"startField",void 0),(0,s._)([(0,p.Cb)({type:h,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"timeReference",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"trackIdField",void 0),(0,s._)([(0,p.Cb)({type:Boolean,json:{read:{source:"exportOptions.useTime"},write:{target:"exportOptions.useTime"}}})],f.prototype,"useTime",void 0),f=v=(0,s._)([(0,d.j)("esri.layers.support.TimeInfo")],f);const b=f},78981:(e,t,r)=>{r.d(t,{v:()=>i});const i=(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})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6740,36],{1692:(e,t,i)=>{i.d(t,{Z:()=>w});var r=i(43697),s=i(66577),n=i(51773),l=i(78223),o=i(15923),a=(i(80442),i(22974)),u=i(92604),c=i(70586),p=i(31263),d=i(1153),f=i(52011);u.Z.getLogger("esri.core.Clonable");const y=e=>{let t=class extends e{clone(){const e=(0,c.s3)((0,d.vw)(this),"unable to clone instance of non-accessor class"),t=e.metadatas,i=e.store,r={},s=new Map;for(const e in t){const n=t[e],l=null==i?void 0:i.originOf(e);if(n.readOnly||!1===n.clonable||l!==p.s3.USER&&l!==p.s3.DEFAULTS)continue;const o=this[e];let u=null;const c=n.clonable;u="function"==typeof c?c(o):"reference"===c?o:(0,a.Vo)(o),null!=o&&null==u||(l===p.s3.DEFAULTS?s.set(e,u):r[e]=u)}const n=new(0,Object.getPrototypeOf(this).constructor)(r);if(s.size){var l;const e=null==(l=(0,d.vw)(n))?void 0:l.store;if(e)for(const[t,i]of s)e.set(t,i,p.s3.DEFAULTS)}return n}};return t=(0,r._)([(0,f.j)("esri.core.Clonable")],t),t};let m=class extends(y(o.Z)){};m=(0,r._)([(0,f.j)("esri.core.Clonable")],m);var h=i(96674),b=i(99001),g=i(5600),v=(i(67676),i(75215),i(33955));let x=class extends(y(h.wq)){constructor(...e){super(...e),this.isAggregate=!1,this.layer=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,b.D)(),configurable:!0})}normalizeCtorArgs(e,t,i,r){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:i,popupTemplate:r}}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;for(const t of[this.sourceLayer,this.layer])if(t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&(0,c.pC)(t.defaultPopupTemplate))return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes&&this.attributes[e]}setAttribute(e,t){if(this.attributes){const i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{geometry:(0,c.pC)(this.geometry)?this.geometry.toJSON():null,symbol:(0,c.pC)(this.symbol)?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}_notifyLayer(e,t,i,r){if(!this.layer||!("graphicChanged"in this.layer))return;const s={graphic:this,property:e,oldValue:t,newValue:i};"attributes"===e&&(s.attributeName=r),this.layer.graphicChanged(s)}};(0,r._)([(0,g.Cb)({value:null})],x.prototype,"attributes",null),(0,r._)([(0,g.Cb)({value:null,types:s.qM,json:{read:v.im}})],x.prototype,"geometry",null),(0,r._)([(0,g.Cb)({type:Boolean})],x.prototype,"isAggregate",void 0),(0,r._)([(0,g.Cb)({clonable:"reference"})],x.prototype,"layer",void 0),(0,r._)([(0,g.Cb)({type:n.Z})],x.prototype,"popupTemplate",void 0),(0,r._)([(0,g.Cb)({clonable:"reference"})],x.prototype,"sourceLayer",void 0),(0,r._)([(0,g.Cb)({value:null,types:l.LB})],x.prototype,"symbol",null),(0,r._)([(0,g.Cb)({type:Boolean,value:!0})],x.prototype,"visible",null),x=(0,r._)([(0,f.j)("esri.Graphic")],x),(x||(x={})).generateUID=b.D;const w=x},44543:(e,t,i)=>{i.d(t,{F:()=>p,M:()=>r});const r={Base64:0,Hex:1,String:2,Raw:3};function s(e,t){const i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function n(e,t,i,r,n,l){return s(function(e,t){return e<<t|e>>>32-t}(s(s(t,e),s(r,l)),n),i)}function l(e,t,i,r,s,l,o){return n(t&i|~t&r,e,t,s,l,o)}function o(e,t,i,r,s,l,o){return n(t&r|i&~r,e,t,s,l,o)}function a(e,t,i,r,s,l,o){return n(t^i^r,e,t,s,l,o)}function u(e,t,i,r,s,l,o){return n(i^(t|~r),e,t,s,l,o)}function c(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let i=1732584193,r=-271733879,n=-1732584194,c=271733878;for(let t=0;t<e.length;t+=16){const p=i,d=r,f=n,y=c;i=l(i,r,n,c,e[t+0],7,-680876936),c=l(c,i,r,n,e[t+1],12,-389564586),n=l(n,c,i,r,e[t+2],17,606105819),r=l(r,n,c,i,e[t+3],22,-1044525330),i=l(i,r,n,c,e[t+4],7,-176418897),c=l(c,i,r,n,e[t+5],12,1200080426),n=l(n,c,i,r,e[t+6],17,-1473231341),r=l(r,n,c,i,e[t+7],22,-45705983),i=l(i,r,n,c,e[t+8],7,1770035416),c=l(c,i,r,n,e[t+9],12,-1958414417),n=l(n,c,i,r,e[t+10],17,-42063),r=l(r,n,c,i,e[t+11],22,-1990404162),i=l(i,r,n,c,e[t+12],7,1804603682),c=l(c,i,r,n,e[t+13],12,-40341101),n=l(n,c,i,r,e[t+14],17,-1502002290),r=l(r,n,c,i,e[t+15],22,1236535329),i=o(i,r,n,c,e[t+1],5,-165796510),c=o(c,i,r,n,e[t+6],9,-1069501632),n=o(n,c,i,r,e[t+11],14,643717713),r=o(r,n,c,i,e[t+0],20,-373897302),i=o(i,r,n,c,e[t+5],5,-701558691),c=o(c,i,r,n,e[t+10],9,38016083),n=o(n,c,i,r,e[t+15],14,-660478335),r=o(r,n,c,i,e[t+4],20,-405537848),i=o(i,r,n,c,e[t+9],5,568446438),c=o(c,i,r,n,e[t+14],9,-1019803690),n=o(n,c,i,r,e[t+3],14,-187363961),r=o(r,n,c,i,e[t+8],20,1163531501),i=o(i,r,n,c,e[t+13],5,-1444681467),c=o(c,i,r,n,e[t+2],9,-51403784),n=o(n,c,i,r,e[t+7],14,1735328473),r=o(r,n,c,i,e[t+12],20,-1926607734),i=a(i,r,n,c,e[t+5],4,-378558),c=a(c,i,r,n,e[t+8],11,-2022574463),n=a(n,c,i,r,e[t+11],16,1839030562),r=a(r,n,c,i,e[t+14],23,-35309556),i=a(i,r,n,c,e[t+1],4,-1530992060),c=a(c,i,r,n,e[t+4],11,1272893353),n=a(n,c,i,r,e[t+7],16,-155497632),r=a(r,n,c,i,e[t+10],23,-1094730640),i=a(i,r,n,c,e[t+13],4,681279174),c=a(c,i,r,n,e[t+0],11,-358537222),n=a(n,c,i,r,e[t+3],16,-722521979),r=a(r,n,c,i,e[t+6],23,76029189),i=a(i,r,n,c,e[t+9],4,-640364487),c=a(c,i,r,n,e[t+12],11,-421815835),n=a(n,c,i,r,e[t+15],16,530742520),r=a(r,n,c,i,e[t+2],23,-995338651),i=u(i,r,n,c,e[t+0],6,-198630844),c=u(c,i,r,n,e[t+7],10,1126891415),n=u(n,c,i,r,e[t+14],15,-1416354905),r=u(r,n,c,i,e[t+5],21,-57434055),i=u(i,r,n,c,e[t+12],6,1700485571),c=u(c,i,r,n,e[t+3],10,-1894986606),n=u(n,c,i,r,e[t+10],15,-1051523),r=u(r,n,c,i,e[t+1],21,-2054922799),i=u(i,r,n,c,e[t+8],6,1873313359),c=u(c,i,r,n,e[t+15],10,-30611744),n=u(n,c,i,r,e[t+6],15,-1560198380),r=u(r,n,c,i,e[t+13],21,1309151649),i=u(i,r,n,c,e[t+4],6,-145523070),c=u(c,i,r,n,e[t+11],10,-1120210379),n=u(n,c,i,r,e[t+2],15,718787259),r=u(r,n,c,i,e[t+9],21,-343485551),i=s(i,p),r=s(r,d),n=s(n,f),c=s(c,y)}return[i,r,n,c]}function p(e,t=r.Hex){const i=t||r.Base64,s=c(function(e){const t=[];for(let i=0,r=8*e.length;i<r;i+=8)t[i>>5]|=(255&e.charCodeAt(i/8))<<i%32;return t}(e),8*e.length);switch(i){case r.Raw:return s;case r.Hex:return function(e){const t="0123456789abcdef",i=[];for(let r=0,s=4*e.length;r<s;r++)i.push(t.charAt(e[r>>2]>>r%4*8+4&15)+t.charAt(e[r>>2]>>r%4*8&15));return i.join("")}(s);case r.String:return function(e){const t=[];for(let i=0,r=32*e.length;i<r;i+=8)t.push(String.fromCharCode(e[i>>5]>>>i%32&255));return t.join("")}(s);case r.Base64:return function(e){const t=[];for(let i=0,r=4*e.length;i<r;i+=3){const r=(e[i>>2]>>i%4*8&255)<<16|(e[i+1>>2]>>(i+1)%4*8&255)<<8|e[i+2>>2]>>(i+2)%4*8&255;for(let s=0;s<4;s++)8*i+6*s>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-s)&63))}return t.join("")}(s)}}},74085:(e,t,i)=>{function r(e){}i.d(t,{Bg:()=>r}),i(80442)},12501:(e,t,i)=>{i.r(t),i.d(t,{default:()=>E});var r,s=i(43697),n=i(22303),l=i(3172),o=i(20102),a=i(22974),u=i(92604),c=i(13867),p=i(70586),d=i(95330),f=i(19153),y=i(5600),m=(i(75215),i(52011)),h=i(30556),b=i(35671),g=i(5499),v=i(12571),x=i(59266),w=i(17386);const S=u.Z.getLogger("esri.renderers.DictionaryRenderer"),V={type:"CIMSimpleLineCallout",lineSymbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",width:.5,color:[0,0,0,255]}]}};let C=r=class extends((0,v.W)(g.Z)){constructor(e){super(e),this._ongoingRequests=new Map,this._symbolCache=new c.Z(100),this.config=null,this.fieldMap=null,this.scaleExpression=null,this.scaleExpressionTitle=null,this.url=null,this.type="dictionary"}writeData(e,t){e&&(t.scalingExpressionInfo={expression:e,returnType:"number"})}writeVisualVariables(e,t,i,r){null!=r&&r.origin||super.writeVisualVariables(e,t,i,r)}clone(){return new r({config:(0,a.d9)(this.config),scaleExpression:this.scaleExpression,scaleExpressionTitle:this.scaleExpressionTitle,fieldMap:(0,a.d9)(this.fieldMap),url:(0,a.d9)(this.url),visualVariables:(0,a.d9)(this.visualVariables)})}async getSymbolAsync(e,t){let i;this._dictionaryPromise||(this._dictionaryPromise=this.fetchResources(t));try{i=await this._dictionaryPromise}catch(e){if((0,d.D_)(e))return this._dictionaryPromise=null,null}const r={};if(this.fieldMap)for(const t of this._symbolFields){const i=this.fieldMap[t];if(i&&null!==e.attributes[i]&&void 0!==e.attributes[i]){const s=""+e.attributes[i];r[t]=s}else r[t]=""}const s=i(r,t);if(!s||"string"!=typeof s)return null;const l=(0,f.hP)(s).toString(),o=this._symbolCache.get(l);if(o)return o.catch((()=>{this._symbolCache.pop(l)})),o;const a=s.split(";"),u=[],c=[];for(const e of a)if(e&&0!==e.length)if(-1===e.indexOf("po:"))if(-1!==e.indexOf("|")){for(const t of e.split("|"))if(this._itemNames.has(t)){u.push(t);break}}else this._itemNames.has(e)&&u.push(e);else{const t=e.substr(3).split("|");if(3===t.length){const e=t[0],i=t[1];let r=t[2];if("DashTemplate"===i)r=r.split(" ").map((e=>Number(e)));else if("Color"===i){const e=new n.Z(r).toRgba();r=[e[0],e[1],e[2],255*e[3]]}else r=Number(r);c.push({primitiveName:e,propertyName:i,value:r})}}const y=!(0,p.pC)(e.geometry)||!e.geometry.hasZ&&"point"===e.geometry.type,m=this._cimPartsToCIMSymbol(u,c,y,t);return this._symbolCache.put(l,m,1),m}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t),this.scaleExpression&&await(0,b.io)(e,t,this.scaleExpression);for(const i in this.fieldMap){const r=this.fieldMap[i];t.has(r)&&e.add(r)}}get arcadeRequired(){return!0}async fetchResources(e){if(this._dictionaryPromise)return this._dictionaryPromise;if(!this.url)return void S.error("no valid URL!");const t=(0,p.pC)(e)?e.abortOptions:null,i=(0,l.default)(this.url+"/resources/styles/dictionary-info.json",{responseType:"json",query:{f:"json"},...t}),[{data:r}]=await Promise.all([i,(0,x.LC)()]);if(!r)throw this._dictionaryPromise=null,new o.Z("esri.renderers.DictionaryRenderer","Bad dictionary data!");const s=r.expression,n=r.authoringInfo;this._refSymbolUrlTemplate=this.url+"/"+r.cimRefTemplateUrl,this._itemNames=new Set(r.itemsNames),this._symbolFields=n.symbol;const a={};if(this.config){const e=this.config;for(const t in e)a[t]=e[t]}if(n.configuration)for(const e of n.configuration)a.hasOwnProperty(e.name)||(a[e.name]=e.value);const u=[];if((0,p.pC)(e)&&e.fields&&this.fieldMap)for(const t of this._symbolFields){const i=this.fieldMap[t],r=e.fields.filter((e=>e.name===i));r.length>0&&u.push({...r[0],name:t})}return this._dictionaryPromise=(0,x.pp)(s,(0,p.pC)(e)?e.spatialReference:null,u,a).then((e=>{const t={scale:0};return(i,r)=>{const s=e.repurposeFeature({geometry:null,attributes:i});return t.scale=(0,p.pC)(r)?r.scale:void 0,e.evaluate({$feature:s,$view:t})}})).catch((e=>(S.error("Creating dictinoary expression failed:",e),null))),this._dictionaryPromise}getSymbol(){return null}getSymbols(){return[]}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return`${this.url}-${JSON.stringify(this.fieldMap)}`}getSymbolFields(){return this._symbolFields}async _getSymbolPart(e,t){if(this._ongoingRequests.has(e))return this._ongoingRequests.get(e).then((e=>e.data));const i=this._refSymbolUrlTemplate.replace(/\{itemName\}/gi,e),r=(0,l.default)(i,{responseType:"json",query:{f:"json"},...t});this._ongoingRequests.set(e,r);try{return(await r).data}catch(t){return this._ongoingRequests.delete(e),Promise.reject(t)}}_combineSymbolParts(e,t,i){if(!e||0===e.length)return null;const r={...e[0]};if(e.length>1){r.symbolLayers=[];for(const t of e){const e=t;r.symbolLayers.unshift(...e.symbolLayers)}}return i&&(r.callout=V),{type:"CIMSymbolReference",symbol:r,primitiveOverrides:t}}async _cimPartsToCIMSymbol(e,t,i,r){const s=new Array(e.length);for(let t=0;t<e.length;t++)s[t]=this._getSymbolPart(e[t],r);const n=await Promise.all(s);return new w.Z({data:this._combineSymbolParts(n,t,i)})}};(0,s._)([(0,y.Cb)({type:Object,json:{read:{source:"configuration"},write:{target:"configuration"}}})],C.prototype,"config",void 0),(0,s._)([(0,y.Cb)({type:Object,json:{write:!0}})],C.prototype,"fieldMap",void 0),(0,s._)([(0,y.Cb)({type:String,json:{read:{source:"scalingExpressionInfo.expression"},write:!0}})],C.prototype,"scaleExpression",void 0),(0,s._)([(0,h.c)("scaleExpression")],C.prototype,"writeData",null),(0,s._)([(0,y.Cb)({type:String,json:{read:{source:"scalingExpressionInfo.title"},write:{target:"scalingExpressionInfo.title",overridePolicy(e){return{enabled:!!e&&!!this.scaleExpression}}}}})],C.prototype,"scaleExpressionTitle",void 0),(0,s._)([(0,y.Cb)({type:String,json:{write:!0}})],C.prototype,"url",void 0),(0,s._)([(0,h.c)("visualVariables")],C.prototype,"writeVisualVariables",null),C=r=(0,s._)([(0,m.j)("esri.renderers.DictionaryRenderer")],C);const E=C},95088:(e,t,i)=>{i.d(t,{Z:()=>z});var r,s=i(43697),n=i(22303),l=i(22974),o=i(44422),a=i(75215),u=i(36030),c=i(5600),p=i(52011),d=i(35671),f=i(5499),y=i(12571),m=i(96674),h=i(92604),b=(i(67676),i(80442),i(90578));const g=h.Z.getLogger("esri.renderers.support.AttributeColorInfo");let v=r=class extends m.wq{constructor(e){super(e),this.color=null,this.field=null,this.label=null,this.valueExpression=null,this.valueExpressionTitle=null}castField(e){return null==e?e:"function"==typeof e?(g.error(".field: field must be a string value"),null):(0,a.Zs)(e)}getAttributeHash(){return`${this.field}-${this.valueExpression}`}clone(){return new r({color:this.color&&this.color.clone(),field:this.field,label:this.label,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})}};(0,s._)([(0,c.Cb)({type:n.Z,json:{type:[Number],write:!0}})],v.prototype,"color",void 0),(0,s._)([(0,c.Cb)({type:String,json:{write:!0}})],v.prototype,"field",void 0),(0,s._)([(0,b.p)("field")],v.prototype,"castField",null),(0,s._)([(0,c.Cb)({type:String,json:{write:!0}})],v.prototype,"label",void 0),(0,s._)([(0,c.Cb)({type:String,json:{write:!0}})],v.prototype,"valueExpression",void 0),(0,s._)([(0,c.Cb)({type:String,json:{write:!0}})],v.prototype,"valueExpressionTitle",void 0),v=r=(0,s._)([(0,p.j)("esri.renderers.support.AttributeColorInfo")],v);const x=v;var w;let S=w=class extends m.wq{constructor(){super(...arguments),this.unit=null}clone(){return new w({unit:this.unit})}};(0,s._)([(0,c.Cb)({type:String,json:{write:!0}})],S.prototype,"unit",void 0),S=w=(0,s._)([(0,p.j)("esri.renderers.support.DotDensityLegendOptions")],S);const V=S;var C,E=i(20256),_=i(4095);let F=C=class extends((0,y.W)(f.Z)){constructor(e){super(e),this.attributes=null,this.backgroundColor=new n.Z([0,0,0,0]),this.blendDots=!0,this.dotBlendingEnabled=!0,this.dotShape="square",this.dotSize=1,this.legendOptions=null,this.outline=new _.Z,this.dotValue=null,this.referenceDotValue=null,this.referenceScale=null,this.seed=1,this.type="dot-density"}calculateDotValue(e){if(null==this.referenceScale)return this.dotValue;const t=e/this.referenceScale*this.dotValue;return t<1?1:t}getSymbol(){return new E.Z({outline:this.outline})}async getSymbolAsync(){return this.getSymbol()}getSymbols(){return[this.getSymbol()]}getAttributeHash(){return this.attributes&&this.attributes.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return JSON.stringify(this.outline)}clone(){return new C({attributes:(0,l.d9)(this.attributes),backgroundColor:(0,l.d9)(this.backgroundColor),dotBlendingEnabled:(0,l.d9)(this.dotBlendingEnabled),dotShape:(0,l.d9)(this.dotShape),dotSize:(0,l.d9)(this.dotSize),dotValue:(0,l.d9)(this.dotValue),legendOptions:(0,l.d9)(this.legendOptions),outline:(0,l.d9)(this.outline),referenceScale:(0,l.d9)(this.referenceScale),visualVariables:(0,l.d9)(this.visualVariables),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}getControllerHash(){return`${this.attributes.map((e=>e.field||e.valueExpression||""))}-${this.outline&&JSON.stringify(this.outline.toJSON())||""}`}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t);for(const i of this.attributes)i.valueExpression&&await(0,d.io)(e,t,i.valueExpression),i.field&&e.add(i.field)}};(0,s._)([(0,c.Cb)({type:[x],json:{write:!0}})],F.prototype,"attributes",void 0),(0,s._)([(0,c.Cb)({type:n.Z,json:{write:!0}})],F.prototype,"backgroundColor",void 0),(0,s._)([(0,c.Cb)({type:Boolean}),(0,o.B)("dotBlendingEnabled")],F.prototype,"blendDots",void 0),(0,s._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],F.prototype,"dotBlendingEnabled",void 0),(0,s._)([(0,c.Cb)({type:String,json:{write:!1}})],F.prototype,"dotShape",void 0),(0,s._)([(0,c.Cb)({type:Number,json:{write:!1}})],F.prototype,"dotSize",void 0),(0,s._)([(0,c.Cb)({type:V,json:{write:!0}})],F.prototype,"legendOptions",void 0),(0,s._)([(0,c.Cb)({type:_.Z,json:{default:null,write:!0}})],F.prototype,"outline",void 0),(0,s._)([(0,c.Cb)({type:Number,json:{write:!0}})],F.prototype,"dotValue",void 0),(0,s._)([(0,c.Cb)({type:Number}),(0,o.B)("dotValue")],F.prototype,"referenceDotValue",void 0),(0,s._)([(0,c.Cb)({type:Number,json:{write:!0}})],F.prototype,"referenceScale",void 0),(0,s._)([(0,c.Cb)({type:Number,json:{write:!0}})],F.prototype,"seed",void 0),(0,s._)([(0,u.J)({dotDensity:"dot-density"})],F.prototype,"type",void 0),F=C=(0,s._)([(0,p.j)("esri.renderers.DotDensityRenderer")],F);const z=F},79056:(e,t,i)=>{i.d(t,{Z:()=>b});var r,s=i(43697),n=i(22303),l=i(22974),o=i(5600),a=(i(75215),i(36030)),u=i(52011),c=i(35671),p=i(5499),d=i(96674);i(67676),i(80442);let f=r=class extends d.wq{constructor(e){super(e),this.color=null,this.ratio=null}clone(){return new r({color:this.color,ratio:this.ratio})}};(0,s._)([(0,o.Cb)({type:n.Z,json:{write:!0}})],f.prototype,"color",void 0),(0,s._)([(0,o.Cb)({type:Number,json:{write:!0}})],f.prototype,"ratio",void 0),f=r=(0,s._)([(0,u.j)("esri.renderers.support.HeatmapColorStop")],f);const y=f;var m;let h=m=class extends p.Z{constructor(e){super(e),this.blurRadius=10,this.colorStops=[new y({ratio:0,color:new n.Z("rgba(255, 140, 0, 0)")}),new y({ratio:.75,color:new n.Z("rgba(255, 140, 0, 1)")}),new y({ratio:.9,color:new n.Z("rgba(255, 0, 0, 1)")})],this.field=null,this.fieldOffset=0,this.maxPixelIntensity=100,this.minPixelIntensity=0,this.type="heatmap"}async collectRequiredFields(e,t){const i=this.field;i&&"string"==typeof i&&(0,c.AB)(e,t,i)}getAttributeHash(){return null}getMeshHash(){return`${JSON.stringify(this.colorStops)}.${this.blurRadius}.${this.field}`}clone(){return new m({blurRadius:this.blurRadius,colorStops:(0,l.d9)(this.colorStops),field:this.field,maxPixelIntensity:this.maxPixelIntensity,minPixelIntensity:this.minPixelIntensity})}};(0,s._)([(0,o.Cb)({type:Number,json:{write:!0}})],h.prototype,"blurRadius",void 0),(0,s._)([(0,o.Cb)({type:[y],json:{write:!0}})],h.prototype,"colorStops",void 0),(0,s._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"field",void 0),(0,s._)([(0,o.Cb)({type:Number,json:{write:{overridePolicy:(e,t,i)=>({enabled:null==i})}}})],h.prototype,"fieldOffset",void 0),(0,s._)([(0,o.Cb)({type:Number,json:{write:!0}})],h.prototype,"maxPixelIntensity",void 0),(0,s._)([(0,o.Cb)({type:Number,json:{write:!0}})],h.prototype,"minPixelIntensity",void 0),(0,s._)([(0,a.J)({heatmap:"heatmap"})],h.prototype,"type",void 0),h=m=(0,s._)([(0,u.j)("esri.renderers.HeatmapRenderer")],h);const b=h},84382:(e,t,i)=>{i.d(t,{Z:()=>f});var r,s=i(43697),n=i(22974),l=i(5600),o=(i(75215),i(36030)),a=i(52011),u=i(5499),c=i(12571),p=i(9833);let d=r=class extends((0,c.W)(u.Z)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.getSymbols().map((i=>i.collectRequiredFields(e,t))))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}getSymbols(){return this.symbol?[this.symbol]:[]}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return this.getSymbols().reduce(((e,t)=>e+JSON.stringify(t)),"")}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new r({description:this.description,label:this.label,symbol:this.symbol&&this.symbol.clone(),visualVariables:(0,n.d9)(this.visualVariables),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}};(0,s._)([(0,l.Cb)({type:String,json:{write:!0}})],d.prototype,"description",void 0),(0,s._)([(0,l.Cb)({type:String,json:{write:!0}})],d.prototype,"label",void 0),(0,s._)([(0,l.Cb)(p.G)],d.prototype,"symbol",void 0),(0,s._)([(0,o.J)({simple:"simple"})],d.prototype,"type",void 0),d=r=(0,s._)([(0,a.j)("esri.renderers.SimpleRenderer")],d);const f=d},91423:(e,t,i)=>{i.d(t,{a:()=>o});var r=i(20941),s=i(63213),n=i(32400);const l=(0,s.d)({types:n.A});function o(e,t,i){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?(i&&i.messages&&i.messages.push(new r.Z("renderer:unsupported","Only UniqueValueRenderer can be referenced from a web style, but found '"+e.type+"'",{definition:e,context:i})),null):l(e,t,i):null}},99282:(e,t,i)=>{i.d(t,{a:()=>n});var r=i(67900),s=i(68441);const n={inches:(0,r.En)(1,"meters","inches"),feet:(0,r.En)(1,"meters","feet"),"us-feet":(0,r.En)(1,"meters","us-feet"),yards:(0,r.En)(1,"meters","yards"),miles:(0,r.En)(1,"meters","miles"),"nautical-miles":(0,r.En)(1,"meters","nautical-miles"),millimeters:(0,r.En)(1,"meters","millimeters"),centimeters:(0,r.En)(1,"meters","centimeters"),decimeters:(0,r.En)(1,"meters","decimeters"),meters:(0,r.En)(1,"meters","meters"),kilometers:(0,r.En)(1,"meters","kilometers"),"decimal-degrees":1/(0,r.ty)(1,"meters",s.sv.radius)}},32400:(e,t,i)=>{i.d(t,{A:()=>c,o:()=>p});var r=i(16050),s=i(12501),n=i(95088),l=i(79056),o=i(5499),a=i(84382),u=i(30687);const c={key:"type",base:o.Z,typeMap:{heatmap:l.Z,simple:a.Z,"unique-value":u.Z,"class-breaks":r.Z,"dot-density":n.Z,dictionary:s.default},errorContext:"renderer"},p={key:"type",base:o.Z,typeMap:{simple:a.Z,"unique-value":u.Z,"class-breaks":r.Z},errorContext:"renderer"}},51706:(e,t,i)=>{var r,s;function n(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function l(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?r.Expression:e.field&&"string"==typeof e.field?r.Field:r.Unknown}function a(e,t){const i=t||o(e),n=e.valueUnit||"unknown";return i===r.Unknown?s.Constant:e.stops?s.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?s.ClampedLinear:"unknown"===n?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?s.Proportional:s.Additive:s.Identity:s.RealWorldSize}i.d(t,{RY:()=>r,hL:()=>s,PS:()=>o,QW:()=>a,iY:()=>n,qh:()=>l}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(r||(r={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(s||(s={}))},28101:(e,t,i)=>{i.d(t,{PR:()=>S,Lq:()=>y,Km:()=>m,cM:()=>h,ap:()=>b,V3:()=>x,B3:()=>f});var r=i(22303),s=i(1692),n=i(74085),l=i(92604),o=i(70586),a=i(99282),u=i(51706);const c=l.Z.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),p=new s.Z,d=Math.PI,f=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function y(e,t,i){const s="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"color"===e.type))[0]:e;if(!s)return;if("esri.renderers.visualVariables.ColorVariable"!==s.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.ColorVariable");const n="number"==typeof t,l=n?null:t,a=l&&l.attributes;let u=n?t:null;const p=s.field,{ipData:d,hasExpression:f}=s.cache;let y=s.cache.compiledFunc;if(!p&&!f){const e=s.stops;return e&&e[0]&&e[0].color}if("number"!=typeof u)if(f){if(!(0,o.pC)(i)||!(0,o.pC)(i.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},t=i.arcade.arcadeUtils,r=t.getViewInfo(e),n=t.createExecContext(l,r);if(!y){const e=t.createSyntaxTree(s.valueExpression);y=t.createFunction(e),s.cache.compiledFunc=y}u=t.executeFunction(y,n)}else a&&(u=a[p]);const m=s.normalizationField,h=a?parseFloat(a[m]):void 0;if(null!=u&&(!m||n||!isNaN(h)&&0!==h)){isNaN(h)||n||(u/=h);const e=w(u,d);if(e){const t=e[0],n=e[1],l=t===n?s.stops[t].color:r.Z.blendColors(s.stops[t].color,s.stops[n].color,e[2],(0,o.pC)(i)?i.color:void 0);return new r.Z(l)}}}function m(e,t,i){const r="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"opacity"===e.type))[0]:e;if(!r)return;if("esri.renderers.visualVariables.OpacityVariable"!==r.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.OpacityVariable");const s="number"==typeof t,n=s?null:t,l=n&&n.attributes;let a=s?t:null;const u=r.field,{ipData:p,hasExpression:d}=r.cache;let f=r.cache.compiledFunc;if(!u&&!d){const e=r.stops;return e&&e[0]&&e[0].opacity}if("number"!=typeof a)if(d){if((0,o.Wi)(i)||(0,o.Wi)(i.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},t=i.arcade.arcadeUtils,s=t.getViewInfo(e),l=t.createExecContext(n,s);if(!f){const e=t.createSyntaxTree(r.valueExpression);f=t.createFunction(e),r.cache.compiledFunc=f}a=t.executeFunction(f,l)}else l&&(a=l[u]);const y=r.normalizationField,m=l?parseFloat(l[y]):void 0;if(null!=a&&(!y||s||!isNaN(m)&&0!==m)){isNaN(m)||s||(a/=m);const e=w(a,p);if(e){const t=e[0],i=e[1];if(t===i)return r.stops[t].opacity;{const s=r.stops[t].opacity;return s+(r.stops[i].opacity-s)*e[2]}}}}function h(e,t,i){const r="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"rotation"===e.type))[0]:e;if(!r)return;if("esri.renderers.visualVariables.RotationVariable"!==r.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.RotationVariable");const s=r.axis||"heading",n="heading"===s&&"arithmetic"===r.rotationType?90:0,l="heading"===s&&"arithmetic"===r.rotationType?-1:1,a="number"==typeof t?null:t,u=a&&a.attributes,p=r.field,{hasExpression:d}=r.cache;let f=r.cache.compiledFunc,y=0;if(!p&&!d)return y;if(d){if((0,o.Wi)(i)||(0,o.Wi)(i.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},t=i.arcade.arcadeUtils,s=t.getViewInfo(e),n=t.createExecContext(a,s);if(!f){const e=t.createSyntaxTree(r.valueExpression);f=t.createFunction(e),r.cache.compiledFunc=f}y=t.executeFunction(f,n)}else u&&(y=u[p]||0);return y="number"!=typeof y||isNaN(y)?null:n+l*y,y}function b(e,t,i){const r="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"size"===e.type))[0]:e;if(!r)return;if("esri.renderers.visualVariables.SizeVariable"!==r.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");const s=function(e,t,i,r,s){switch(t.transformationType){case u.hL.Additive:return function(e,t,i,r){return e+(g(t.minSize,i,r)||t.minDataValue)}(e,t,i,r);case u.hL.Constant:return function(e,t,i){const r=e.stops;let s=r&&r.length&&r[0].size;return null==s&&(s=e.minSize),g(s,t,i)}(t,i,r);case u.hL.ClampedLinear:return function(e,t,i,r){const s=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),n=g(t.minSize,i,r),l=g(t.maxSize,i,r),a=(0,o.pC)(r)?r.shape:void 0;if(e<=t.minDataValue)return n;if(e>=t.maxDataValue)return l;if("area"===t.scaleBy&&a){const e="circle"===a,t=e?d*(n/2)**2:n*n,i=t+s*((e?d*(l/2)**2:l*l)-t);return e?2*Math.sqrt(i/d):Math.sqrt(i)}return n+s*(l-n)}(e,t,i,r);case u.hL.Proportional:return function(e,t,i,r){const s=(0,o.pC)(r)?r.shape:void 0,n=e/t.minDataValue,l=g(t.minSize,i,r),a=g(t.maxSize,i,r);let u=null;return u="circle"===s?2*Math.sqrt(n*(l/2)**2):"square"===s||"diamond"===s||"image"===s?Math.sqrt(n*l**2):n*l,v(u,l,a)}(e,t,i,r);case u.hL.Stops:return function(e,t,i,r,s){const[n,l,o]=w(e,s);if(n===l)return g(t.stops[n].size,i,r);{const e=g(t.stops[n].size,i,r);return e+(g(t.stops[l].size,i,r)-e)*o}}(e,t,i,r,s);case u.hL.RealWorldSize:return function(e,t,i,r){const s=((0,o.pC)(r)&&r.resolution?r.resolution:1)*a.a[t.valueUnit],n=g(t.minSize,i,r),l=g(t.maxSize,i,r),{valueRepresentation:u}=t;let c=null;return c="area"===u?2*Math.sqrt(e/d)/s:"radius"===u||"distance"===u?2*e/s:e/s,v(c,n,l)}(e,t,i,r);case u.hL.Identity:return e;case u.hL.Unknown:return null}}(function(e,t,i){const r="number"==typeof t,s=r?null:t,n=s&&s.attributes;let l=r?t:null;const{isScaleDriven:a}=e.cache;let p=e.cache.compiledFunc;if(a){const t=(0,o.pC)(i)?i.scale:void 0,r=(0,o.pC)(i)?i.view:void 0;l=null==t||"3d"===r?function(e){let t=null,i=null;const r=e.stops;return r?(t=r[0].value,i=r[r.length-1].value):(t=e.minDataValue||0,i=e.maxDataValue||0),(t+i)/2}(e):t}else if(!r)switch(e.inputValueType){case u.RY.Expression:{if((0,o.Wi)(i)||(0,o.Wi)(i.arcade))return void c.error("Use of arcade expressions requires an arcade context");const t={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},r=i.arcade.arcadeUtils,n=r.getViewInfo(t),a=r.createExecContext(s,n);if(!p){const t=r.createSyntaxTree(e.valueExpression);p=r.createFunction(t),e.cache.compiledFunc=p}l=r.executeFunction(p,a);break}case u.RY.Field:n&&(l=n[e.field]);break;case u.RY.Unknown:l=null}if(!(0,u.qh)(l))return null;if(r||!e.normalizationField)return l;const d=n?parseFloat(n[e.normalizationField]):null;return(0,u.qh)(d)&&0!==d?l/d:null}(r,t,i),r,t,i,r.cache.ipData);return null==s||isNaN(s)?0:s}function g(e,t,i){return null==e?null:(0,u.iY)(e)?b(e,t,i):(0,u.qh)(e)?e:null}function v(e,t,i){return(0,u.qh)(i)&&e>i?i:(0,u.qh)(t)&&e<t?t:e}function x(e,t,i){const{isScaleDriven:r}=e.cache;if(!(r&&"3d"===i||t))return null;const s={scale:t,view:i};let n=g(e.minSize,p,s),l=g(e.maxSize,p,s);if(null!=n||null!=l){if(n>l){const e=l;l=n,n=e}return{minSize:n,maxSize:l}}}function w(e,t){if(!t)return;let i=0,r=t.length-1;return t.some(((t,s)=>e<t?(r=s,!0):(i=s,!1))),[i,r,(e-t[i])/(t[r]-t[i])]}function S(e,t,i){const r=["proportional","proportional","proportional"];for(const s of e){const e=s.useSymbolValue?"symbol-value":b(s,t,i);switch(s.axis){case"width":r[0]=e;break;case"depth":r[1]=e;break;case"height":r[2]=e;break;case"width-and-depth":r[0]=e,r[1]=e;break;case"all":case void 0:case null:r[0]=e,r[1]=e,r[2]=e;break;default:(0,n.Bg)(s.axis)}}return r}},72961:(e,t,i)=>{i.r(t),i.d(t,{addAggregateFields:()=>ee,createMatcherSchema:()=>ie,createSchema:()=>$,createSymbolSchema:()=>U,createSymbolSchemaOptions:()=>A}),i(16050),i(12501),i(95088),i(79056),i(5499);var r=i(84382),s=(i(30687),i(91423),i(20102)),n=i(80442),l=i(22974),o=i(92604),a=i(70586),u=i(62357),c=i(21878),p=i(66039),d=i(29996),f=i(63523),y=i(40660);i(24562);var m=i(34240),h=i(16534);function b(e,t){return Math.max(e,t)}i(83798),i(17332),i(24470),i(73913),i(30729),i(58195),i(28823),h.eF.metrics,new m.Z(0,0,24,24);const g=o.Z.getLogger("esri.renderers.visualVariables.support.utils");function v(e){return e.map((e=>function(e){return("size"===e.type||"color"===e.type||"opacity"===e.type)&&null!=e.stops}(e)?function(e){return e.stops=function(e,t){return t.length<=8?t:(g.warn(`Found ${t.length} Visual Variable stops, but MapView only supports 8. Displayed stops will be simplified.`),t.length>16?function(e,t){const[i,...r]=t,s=r.pop(),n=r[0].value,l=r[r.length-1].value,o=(l-n)/6,a=[];for(let i=n;i<l;i+=o){let s=0;for(;i>=r[s].value;)s++;const n=r[s],l=t[s-1],o=i-l.value,c=n.value===l.value?1:o/(n.value-l.value);if("color"===e){const e=r[s],n=t[s-1],l=e.color.clone();l.r=x(n.color.r,l.r,c),l.g=x(n.color.g,l.g,c),l.b=x(n.color.b,l.b,c),l.a=x(n.color.a,l.a,c),a.push({value:i,color:l,label:e.label})}else if("size"===e){const e=r[s],n=t[s-1],l=(0,u.t_)(e.size),o=x((0,u.t_)(n.size),l,c);a.push({value:i,size:o,label:e.label})}else{const e=r[s],n=x(t[s-1].opacity,e.opacity,c);a.push({value:i,opacity:n,label:e.label})}}return[i,...a,s]}(e,t):function(e){const[t,...i]=e,r=i.pop();for(;i.length>6;){let e=0,t=0;for(let r=1;r<i.length;r++){const s=i[r-1],n=i[r],l=Math.abs(n.value-s.value);l>t&&(t=l,e=r)}i.splice(e,1)}return[t,...i,r]}(t))}(e.type,e.stops),e}(e.clone()):e))}function x(e,t,i){return(1-i)*e+i*t}var w,S=i(44543),V=i(23847),C=i(30856),E=i(43697),_=i(5600),F=(i(75215),i(52011)),z=i(30556),T=i(51706);let R=w=class extends V.Z{writeLevels(e,t,i){for(const i in e){const e=this.levels[i];return void(t.stops=e)}}clone(){return new w({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,T.iY)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,T.iY)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops&&this.stops.map((e=>e.clone())),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions&&this.legendOptions.clone(),levels:(0,l.d9)(this.levels)})}};(0,E._)([(0,_.Cb)()],R.prototype,"levels",void 0),(0,E._)([(0,z.c)("levels")],R.prototype,"writeLevels",null),R=w=(0,E._)([(0,F.j)("esri.views.2d.engine.LevelDependentSizeVariable")],R);const I=o.Z.getLogger("esri.views.2d.layers.support.clusterUtils");n.Z.add("esri-cluster-arcade-enabled",!0);const j=(0,n.Z)("esri-cluster-arcade-enabled");function N(e,t){const{name:i,outStatistic:r}=t,{onStatisticField:n,onStatisticValueExpression:l,statisticType:o}=r;if(l){const t=(0,S.F)(l.toLowerCase());e.push({name:i,outStatistic:{onStatisticField:t,onStatisticValueExpression:l,statisticType:o}})}else n?e.push({name:i,outStatistic:{onStatisticField:n,statisticType:o}}):I.error(new s.Z("mapview-unsupported-field","Unable to handle field",{field:t}))}function L(e,t,i){const r=(0,S.F)(t),s="mode"===i?`cluster_type_${r}`:`cluster_avg_${r}`;return e.some((e=>e.name===s))||e.push({name:s,outStatistic:{onStatisticField:r,onStatisticValueExpression:t,statisticType:i}}),s}function Z(e,t,i,r){if("cluster_count"===t||e.some((e=>e.name===t)))return t;const s=function(e,t,i){switch(e){case"avg":case"avg_angle":return`cluster_avg_${t}`;case"mode":return`cluster_type_${t}`;case"norm":{const e=i,r="field",s=t.toLowerCase()+",norm:"+r+","+e.toLowerCase();return"cluster_avg_"+(0,S.F)(s)}}}(i,t,r);return e.some((e=>e.name===s))||("norm"===i?e.push({name:s,outStatistic:{onStatisticField:t,onStatisticNormalizationField:r,statisticType:i}}):e.push({name:s,outStatistic:{onStatisticField:t,statisticType:i}})),s}const O=new(i(35454).Xn)({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch",mesh:"mesh"}),M=o.Z.getLogger("esri.views.2d.layers.features.schemaUtils"),P="ValidationError",k={esriGeometryPoint:["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along"],esriGeometryMultipoint:null};function q(e){return(0,f.hF)(e)}function D(e){var t;return"line-marker"===e.type?{type:"line-marker",color:null==(t=e.color)?void 0:t.toJSON(),placement:e.placement,style:e.style}:(0,c.i)(e.toJSON()).toJSON()}function A(e){let t=0,i=0,r=!1,s=!0,n=!0;if((0,a.pC)(e)&&(i=function(e){if(!("visualVariables"in e))return 0;if(!e.hasVisualVariables("size"))return 0;const t=e.getVisualVariablesForType("size");if(!t[0])return 0;const i=t[0];if("outline"===i.target)return 0;if("stops"===i.transformationType)return i.stops.map((e=>e.size)).reduce(b,0);if("clamped-linear"===i.transformationType){let e=-1/0,t=-1/0;return e="number"==typeof i.maxSize?i.maxSize:i.maxSize.stops.map((e=>e.size)).reduce(b,0),t="number"==typeof i.minSize?i.minSize:i.minSize.stops.map((e=>e.size)).reduce(b,0),Math.max(e,t)}return"real-world-size"===i.transformationType?30:void 0}(e),"visualVariables"in e&&(t=function(e){if(!e)return p.X.NONE;let t=0;for(const i of e)if("size"===i.type){const e=(0,y.a)(i);t|=e,"outline"===i.target&&(t|=e<<4)}else"color"===i.type?t|=p.X.COLOR:"opacity"===i.type?t|=p.X.OPACITY:"rotation"===i.type&&(t|=p.X.ROTATION);return t}(e.visualVariables||[]),r="dot-density"===e.type),!r)){const t=e.getSymbols();"backgroundFillSymbol"in e&&e.backgroundFillSymbol&&t.push(e.backgroundFillSymbol);for(const e of t)if("cim"===e.type&&(s=!1),"simple-fill"===e.type||"picture-fill"===e.type){const t=e.outline;t&&"none"!==t.style&&"solid"!==t.style&&(n=!1);const i=t&&"none"!==t.style&&"solid"!==t.style,r="simple-fill"===e.type&&"none"!==e.style&&"solid"!==e.style;("picture-fill"===e.type||r||i)&&(s=!1)}}return r&&(n=!1),{vvFlags:t,maxVVSize:i,supportsOutlineFills:n,stride:{fill:r?"dot-density":s?"simple":"default"}}}function U(e,t,i){return B(e,A(t),i)}function B(e,t,i){if(!e)return null;switch(e.type){case"simple-fill":case"picture-fill":return function(e,t,i){const r=t.supportsOutlineFills,s=(0,f.jj)(p.LW.FILL,{...t,isOutlinedFill:r}),n=i?q(s):s,l=e.clone(),o=l.outline;t.supportsOutlineFills||(l.outline=null);const a={materialKey:n,hash:l.hash(),isOutlinedFill:!!t.supportsOutlineFills,...D(l)};if(t.supportsOutlineFills)return a;const u=[];if(u.push(a),o){const e=(0,f.jj)(p.LW.LINE,{...t,isOutline:!0}),r={materialKey:i?q(e):e,hash:o.hash(),...D(o)};u.push(r)}return{type:"composite-symbol",layers:u,hash:u.reduce(((e,t)=>t.hash+e),"")}}(e,t,i);case"simple-marker":case"picture-marker":return function(e,t,i){const r=(0,f.jj)(p.LW.MARKER,t),s=i?q(r):r,n=D(e);return{materialKey:s,hash:e.hash(),...n,angle:e.angle,maxVVSize:t.maxVVSize}}(e,t,i);case"simple-line":return function(e,t,i){const r=(0,f.jj)(p.LW.LINE,t),s=i?q(r):r,n=e.clone(),l=n.marker;n.marker=null;const o=[];if(o.push({materialKey:s,hash:n.hash(),...D(n)}),l){var a;const e=(0,f.jj)(p.LW.MARKER,t),r=i?q(e):e;l.color=null!=(a=l.color)?a:n.color,o.push({materialKey:r,hash:l.hash(),lineWidth:n.width,...D(l)})}return{type:"composite-symbol",layers:o,hash:o.reduce(((e,t)=>t.hash+e),"")}}(e,t,i);case"text":return function(e,t,i){const r=(0,f.jj)(p.LW.TEXT,t),s=i?q(r):r,n=D(e);return{materialKey:s,hash:e.hash(),...n,angle:e.angle,maxVVSize:t.maxVVSize}}(e,t,i);case"label":return function(e,t,i){const r=e.toJSON(),s=(0,f.jj)(p.LW.LABEL,{...t,placement:r.labelPlacement});return{materialKey:i?q(s):s,hash:e.hash(),...r,labelPlacement:r.labelPlacement}}(e,t,i);case"cim":return{type:"cim",rendererKey:t.vvFlags,data:e.data,maxVVSize:t.maxVVSize};case"CIMSymbolReference":return{type:"cim",rendererKey:t.vvFlags,data:e,maxVVSize:t.maxVVSize};case"web-style":return{...D(e),type:"web-style",hash:e.hash(),rendererKey:t.vvFlags,maxVVSize:t.maxVVSize};default:throw new Error(`symbol not supported ${e.type}`)}}function W(e,t){const i=(0,l.d9)(e);return i.some((e=>function(e,t){const i=e.labelPlacement,r=k[t];if(!e.symbol)return M.warn("No ILabelClass symbol specified."),!0;if(!r)return M.error(new s.Z("mapview-labeling:unsupported-geometry-type",`Unable to create labels for Feature Layer, ${t} is not supported`)),!0;if(!r.some((e=>e===i))){const s=r[0];i&&M.warn(`Found invalid label placement type ${i} for ${t}. Defaulting to ${s}`),e.labelPlacement=s}return!1}(e,t)))?[]:i}function $(e){return(0,n.Z)("esri-2d-update-debug")&&console.debug("Created new schema",J(e,!0)),J(e)}function J(e,t=!1){try{var i,n;const l=function(e,t=!1){const i=new Array;return i.push(function(e,t,i=!1){const n={indexCount:0,fields:{}},l="featureReduction"in e&&e.featureReduction,o=l?"aggregate":"feature";if("sublayers"in e){const t={type:"subtype",subtypeField:e.subtypeField,renderers:{},stride:{fill:"default"}},r={type:"subtype",mapping:{},target:"feature"},l={type:"subtype",classes:{}},u={type:"symbol",target:"feature",aggregateFields:[],attributes:n,storage:r,mesh:{matcher:t,aggregateMatcher:null,labels:l,sortKey:null}},c=new Set;let p=0;for(const{renderer:u,subtypeCode:d,labelingInfo:f,labelsVisible:y}of e.sublayers){const e=ie(n,o,u,i),m=te(n,o,u),h=y&&f;if("visualVariables"in u&&u.visualVariables&&u.visualVariables.length)throw new s.Z(P,"Visual variables are currently not supported for subtype layers");if("dictionary"===e.type)throw new s.Z(P,"Dictionary renderer is not supported in subtype layers");if("subtype"===e.type)throw new s.Z(P,"Nested subtype renderers is not supported");if((0,a.pC)(m)&&"subtype"===m.type)throw new s.Z(P,"Nested subtype storage is not supported");if((0,a.pC)(m)&&"dot-density"===m.type)throw new s.Z(P,"Dot density attributes are not supported in subtype layers");if(c.has(d))throw new s.Z(P,"Subtype codes for sublayers must be unique");c.add(d),t.renderers[d]=e,r.mapping[d]=m,h&&(l.classes[d]=h.map((e=>Q(u,n,e,"feature",p++,i))))}return u}if("heatmap"===e.renderer.type){const{blurRadius:t,fieldOffset:i,field:r}=e.renderer;return{type:"heatmap",aggregateFields:[],attributes:n,target:o,storage:null,mesh:{blurRadius:t,fieldOffset:i,field:Y(n,{target:o,field:r,resultType:"numeric"}).field}}}{const t=[],u="aggregate"===o?((e,t,i,r)=>{const n=t.clone();if(!(e=>{const t=t=>I.error(new s.Z("Unsupported-renderer",t,{renderer:e}));if("unique-value"===e.type){if(e.field2||e.field3)return t("FeatureReductionCluster does not support multi-field UniqueValueRenderers"),!1}else if("class-breaks"===e.type){if(e.normalizationField){const i=e.normalizationType;if("field"!==i)return t(`FeatureReductionCluster does not support a normalizationType of ${i}`),!1}}else if("simple"!==e.type)return t(`FeatureReductionCluster does not support renderers of type ${e.type}`),!1;if(!j){if("valueExpression"in e&&e.valueExpression)return t("FeatureReductionCluster does not currently support renderer.valueExpression. Support will be added in a future release"),!1;if(("visualVariables"in e&&e.visualVariables||[]).some((e=>!(!("valueExpression"in e)||!e.valueExpression))))return t("FeatureReductionCluster does not currently support visualVariables with a valueExpression. Support will be added in a future release"),!1}return!0})(n))return n;if(i.fields)for(const t of i.fields)N(e,t);if("visualVariables"in n){const t=(n.visualVariables||[]).filter((e=>"$view.scale"!==e.valueExpression)),r=(e=>{for(const t of e)if("size"===t.type)return t;return null})(t);t.forEach((t=>{"rotation"===t.type?t.field?t.field=Z(e,t.field,"avg_angle"):t.valueExpression&&(t.field=L(e,t.valueExpression,"avg_angle"),t.valueExpression=null):t.normalizationField?(t.field=Z(e,t.field,"norm",t.normalizationField),t.normalizationField=null):t.field?t.field=Z(e,t.field,"avg"):(t.field=L(e,t.valueExpression,"avg"),t.valueExpression=null)})),(0,a.Wi)(r)&&!(e=>{for(const t of e)if("cluster_count"===t.field)return!0;return!1})(t)&&(t.push(((e,t)=>{const i=[new C.Z({value:0,size:0}),new C.Z({value:1})];if((0,a.Wi)(t))return new V.Z({field:"cluster_count",stops:[...i,new C.Z({value:2,size:0})]});const r=Object.keys(t).reduce(((r,s)=>({...r,[s]:[...i,new C.Z({value:Math.max(2,t[s].minValue),size:e.clusterMinSize}),new C.Z({value:Math.max(3,t[s].maxValue),size:e.clusterMaxSize})]})),{});return new R({field:"cluster_count",levels:r})})(i,null)),n.dynamicClusterSize=!0),n.visualVariables=t}switch(n.type){case"simple":break;case"unique-value":n.field?n.field=Z(e,n.field,"mode"):n.valueExpression&&(n.field=L(e,n.valueExpression,"mode"),n.valueExpression=null);break;case"class-breaks":n.normalizationField?(n.field=Z(e,n.field,"norm",n.normalizationField),n.normalizationField=null):n.field?n.field=Z(e,n.field,"avg"):(n.field=L(e,n.valueExpression,"avg"),n.valueExpression=null)}return n})(t,e.renderer,l):e.renderer;ee(n,t);const c=ie(n,o,u,i);let p=null;const d=te(n,o,u),f=function(e){return O.toJSON(e)}(e.geometryType);let y=e.labelsVisible&&e.labelingInfo||[],m=[];if(l){if("selection"===l.type)throw new s.Z(P,"Mapview does not support `selection` reduction type",l);if(l.symbol){const e=new r.Z({symbol:l.symbol,visualVariables:"visualVariables"in u?u.visualVariables:null});p=ie(n,o,e,i)}m=l&&l.labelsVisible&&l.labelingInfo||[]}y=W(y,f),m=W(m,f);let h=0;const b=[...y.map((e=>Q(u,n,e,"feature",h++,i))),...m.map((e=>Q(u,n,e,"aggregate",h++,i)))],g=function(e,t){if((0,a.Wi)(t)||!t.length)return null;t.length>1&&M.warn(`Layer rendering currently only supports ordering by 1 orderByInfo, but found ${t.length}. All but the first will be discarded`);const i=t[0],r="ascending"===i.order?"asc":"desc";return i.field?{field:i.field,order:r}:i.valueExpression?{fieldIndex:X(e,{type:"expression",target:"feature",valueExpression:i.valueExpression,resultType:"numeric"}).fieldIndex,order:r}:(M.error(new s.Z(P,"Expected to find a field or valueExpression for OrderByInfo",i)),null)}(n,e.orderBy);return{type:"symbol",target:o,attributes:n,aggregateFields:t,storage:d,mesh:{matcher:c,labels:{type:"simple",classes:b},aggregateMatcher:p,sortKey:g}}}}(e)),i}(e,t),o={};return l.map((t=>function(e,t,i){switch(i.target){case"feature":return void G(e,K(t),i);case"aggregate":{if(!("featureReduction"in t))return;const r=t.featureReduction;if("selection"===r.type)throw new s.Z(P,"Mapview does not support `selection` reduction type",r);return G(e,K(t),i),void function(e,t,i){e.aggregate||(e.aggregate={name:"aggregate",input:"feature",filters:null,attributes:{},params:{clusterRadius:(0,u.F2)(t.clusterRadius/2),clusterPixelBuffer:64*Math.ceil((0,u.F2)(t.clusterMaxSize)/64),fields:i.aggregateFields}}),H(e.aggregate,i.attributes.fields)}(e,r,i)}}}(o,e,t))),{source:{definitionExpression:e.definitionExpression,fields:e.fields.map((e=>e.toJSON())),gdbVersion:e.gdbVersion,historicMoment:null==(i=e.historicMoment)?void 0:i.getTime(),outFields:e.availableFields,pixelBuffer:e.pixelBuffer,spatialReference:e.spatialReference.toJSON(),timeExtent:null==(n=e.timeExtent)?void 0:n.toJSON(),customParameters:e.customParameters},attributes:{fields:{},indexCount:0},processors:l,targets:o}}catch(e){if(e.fieldName===P)return M.error(e),null;throw e}}function H(e,t){for(const i in t){const r=t[i];if(r.target!==e.name)continue;const s=e.attributes[i];s?(s.context.mesh=s.context.mesh||r.context.mesh,s.context.storage=s.context.storage||r.context.storage):e.attributes[i]=r}return e}function K(e){var t,i,r,s,n;return[null!=(t=null==(i=(0,a.Wg)(e.filter))?void 0:i.toJSON())?t:null,null!=(r=null==(s=(0,a.Wg)(null==(n=(0,a.Wg)(e.featureEffect))?void 0:n.filter))?void 0:s.toJSON())?r:null]}function G(e,t,i){return e.feature||(e.feature={name:"feature",input:"source",filters:t,attributes:{}}),H(e.feature,i.attributes.fields),e}function Y(e,t){return t.field?X(e,{...t,type:"field",field:t.field}):t.valueExpression?X(e,{...t,type:"expression",valueExpression:t.valueExpression}):{field:null,fieldIndex:null}}function X(e,t){switch(t.type){case"expression":{const i=t.valueExpression;if(!e.fields[i]){const r=e.indexCount++;e.fields[i]={...t,name:i,fieldIndex:r}}return{fieldIndex:e.fields[i].fieldIndex}}case"label-expression":{const i=JSON.stringify(t.label);if(!e.fields[i]){const r=e.indexCount++;e.fields[i]={...t,name:i,fieldIndex:r}}return{fieldIndex:e.fields[i].fieldIndex}}case"field":{const i=t.field;return"aggregate"===t.target&&e.fields[i]||(e.fields[i]={...t,name:i}),{field:i}}case"statistic":return e.fields[t.name]={...t},{field:t.name}}}function Q(e,t,i,r,s,n=!1){const l=X(t,{type:"label-expression",target:r,context:{mesh:!0},resultType:"string",label:{labelExpression:i.labelExpression,labelExpressionInfo:i.labelExpressionInfo?{expression:i.labelExpressionInfo.expression}:null,symbol:!!i.symbol,where:i.where}}),{fieldIndex:o}=l;return{...U(i,e,n),fieldIndex:o,target:r,index:s}}function ee(e,t){const i={mesh:!0,storage:!0};for(const r of t){const{name:t,outStatistic:s}=r,{statisticType:n,onStatisticField:l}=s;let o=null,a=null,u=null;const c="numeric",p="feature";"onStatisticValueExpression"in s?a=X(e,{type:"expression",target:p,valueExpression:s.onStatisticValueExpression,resultType:c}).fieldIndex:"onStatisticNormalizationField"in s?(o=X(e,{type:"field",target:p,field:l,resultType:c}).field,u=s.onStatisticNormalizationField):o=X(e,{type:"field",target:p,field:l,resultType:c}).field,X(e,{type:"statistic",target:"aggregate",name:t,context:i,inField:o,inNormalizationField:u,inFieldIndex:a,statisticType:n})}}function te(e,t,i){switch(i.type){case"dot-density":return function(e,t,i){return i&&i.length?{type:"dot-density",mapping:i.map(((i,r)=>{const{field:s,fieldIndex:n}=Y(e,{valueExpression:i.valueExpression,field:i.field,resultType:"numeric",target:t});return{binding:r,field:s,fieldIndex:n}})),target:t}:{type:"dot-density",mapping:[],target:t}}(e,t,i.attributes);case"simple":case"class-breaks":case"unique-value":case"dictionary":return function(e,t,i){if(!i||!i.length)return{type:"visual-variable",mapping:[],target:t};const r={storage:!0},s="numeric";return{type:"visual-variable",mapping:v(i).map((i=>{var n;const l=(0,d.nU)(i.type),{field:o,fieldIndex:a}=Y(e,{target:t,valueExpression:i.valueExpression,field:i.field,context:r,resultType:s});switch(i.type){case"size":return"$view.scale"===i.valueExpression?null:{type:"size",binding:l,field:o,fieldIndex:a,normalizationField:Y(e,{target:t,field:i.normalizationField,context:r,resultType:s}).field,valueRepresentation:null!=(n=i.valueRepresentation)?n:null};case"color":return{type:"color",binding:l,field:o,fieldIndex:a,normalizationField:Y(e,{target:t,field:i.normalizationField,context:r,resultType:s}).field};case"opacity":return{type:"opacity",binding:l,field:o,fieldIndex:a,normalizationField:Y(e,{target:t,field:i.normalizationField,context:r,resultType:s}).field};case"rotation":return{type:"rotation",binding:l,field:o,fieldIndex:a}}})).filter((e=>e)),target:t}}(e,t,i.visualVariables);case"heatmap":return null}}function ie(e,t,i,r=!1){const n=(0,a.Pt)(e,{indexCount:0,fields:{}});switch(i.type){case"simple":case"dot-density":return function(e,t,i=!1){const r=t.getSymbols(),s=r.length?r[0]:null,{stride:n}=A(t);return{type:"simple",symbol:U(s,t,i),stride:n}}(0,i,r);case"class-breaks":return function(e,t,i,r=!1){const s=i.backgroundFillSymbol,{field:n,fieldIndex:l}=Y(e,{target:t,field:i.field,valueExpression:i.valueExpression,resultType:"numeric",context:{mesh:!0,use:"renderer.field"}}),o=i.normalizationType,a="log"===o?"esriNormalizeByLog":"percent-of-total"===o?"esriNormalizeByPercentOfTotal":"field"===o?"esriNormalizeByField":null,u=A(i),c=i.classBreakInfos.map((e=>({symbol:B(e.symbol,u,r),min:e.minValue,max:e.maxValue}))).sort(((e,t)=>e.min-t.min));return{type:"interval",attributes:e.fields,field:n,fieldIndex:l,backgroundFillSymbol:B(s,u,r),defaultSymbol:B(i.defaultSymbol,u,r),intervals:c,normalizationField:i.normalizationField,normalizationTotal:i.normalizationTotal,normalizationType:a,isMaxInclusive:i.isMaxInclusive,stride:u.stride}}(n,t,i,r);case"unique-value":return function(e,t,i,r=!1){const n=[],l=i.backgroundFillSymbol,o={target:t,context:{mesh:!0},resultType:"string"};if(i.field&&"string"!=typeof i.field)throw new s.Z(P,"Expected renderer.field to be a string",i);const{field:a,fieldIndex:u}=Y(e,{...o,field:i.field,valueExpression:i.valueExpression}),c=A(i);for(const e of i.uniqueValueInfos)n.push({value:""+e.value,symbol:B(e.symbol,c,r)});return{type:"map",attributes:e.fields,field:a,fieldIndex:u,field2:Y(e,{...o,field:i.field2}).field,field3:Y(e,{...o,field:i.field3}).field,fieldDelimiter:i.fieldDelimiter,backgroundFillSymbol:B(l,c),defaultSymbol:B(i.defaultSymbol,c),map:n,stride:c.stride}}(n,t,i,r);case"dictionary":return function(e,t,i=!1){return{type:"dictionary",renderer:t.toJSON(),stride:{fill:"default"}}}(0,i,r)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3667,3172],{1692:(e,t,r)=>{r.d(t,{Z:()=>w});var n=r(43697),i=r(66577),s=r(51773),o=r(78223),a=r(15923),l=(r(80442),r(22974)),u=r(92604),c=r(70586),d=r(31263),h=r(1153),p=r(52011);u.Z.getLogger("esri.core.Clonable");const f=e=>{let t=class extends e{clone(){const e=(0,c.s3)((0,h.vw)(this),"unable to clone instance of non-accessor class"),t=e.metadatas,r=e.store,n={},i=new Map;for(const e in t){const s=t[e],o=null==r?void 0:r.originOf(e);if(s.readOnly||!1===s.clonable||o!==d.s3.USER&&o!==d.s3.DEFAULTS)continue;const a=this[e];let u=null;const c=s.clonable;u="function"==typeof c?c(a):"reference"===c?a:(0,l.Vo)(a),null!=a&&null==u||(o===d.s3.DEFAULTS?i.set(e,u):n[e]=u)}const s=new(0,Object.getPrototypeOf(this).constructor)(n);if(i.size){var o;const e=null==(o=(0,h.vw)(s))?void 0:o.store;if(e)for(const[t,r]of i)e.set(t,r,d.s3.DEFAULTS)}return s}};return t=(0,n._)([(0,p.j)("esri.core.Clonable")],t),t};let m=class extends(f(a.Z)){};m=(0,n._)([(0,p.j)("esri.core.Clonable")],m);var y=r(96674),g=r(99001),b=r(5600),v=(r(67676),r(75215),r(33955));let _=class extends(f(y.wq)){constructor(...e){super(...e),this.isAggregate=!1,this.layer=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,g.D)(),configurable:!0})}normalizeCtorArgs(e,t,r,n){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:r,popupTemplate:n}}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;for(const t of[this.sourceLayer,this.layer])if(t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&(0,c.pC)(t.defaultPopupTemplate))return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes&&this.attributes[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{geometry:(0,c.pC)(this.geometry)?this.geometry.toJSON():null,symbol:(0,c.pC)(this.symbol)?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}_notifyLayer(e,t,r,n){if(!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:r};"attributes"===e&&(i.attributeName=n),this.layer.graphicChanged(i)}};(0,n._)([(0,b.Cb)({value:null})],_.prototype,"attributes",null),(0,n._)([(0,b.Cb)({value:null,types:i.qM,json:{read:v.im}})],_.prototype,"geometry",null),(0,n._)([(0,b.Cb)({type:Boolean})],_.prototype,"isAggregate",void 0),(0,n._)([(0,b.Cb)({clonable:"reference"})],_.prototype,"layer",void 0),(0,n._)([(0,b.Cb)({type:s.Z})],_.prototype,"popupTemplate",void 0),(0,n._)([(0,b.Cb)({clonable:"reference"})],_.prototype,"sourceLayer",void 0),(0,n._)([(0,b.Cb)({value:null,types:o.LB})],_.prototype,"symbol",null),(0,n._)([(0,b.Cb)({type:Boolean,value:!0})],_.prototype,"visible",null),_=(0,n._)([(0,p.j)("esri.Graphic")],_),(_||(_={})).generateUID=g.D;const w=_},80539:(e,t,r)=>{r.d(t,{Z:()=>q});var n,i=r(43697),s=r(3894),o=r(32448),a=r(22974),l=r(70586),u=r(71143);!function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"}(n||(n={}));var c,d=r(1654),h=r(5600),p=r(75215),f=r(52421),m=r(52011),y=r(58971),g=r(39020);class b{constructor(){this._observers=[]}observe(e){return this._observers.includes(e)||this._observers.push(e),new g.X(this._observers,e)}notify(){const e=this._observers.slice();for(let t=0;t<e.length;++t){const r=e[t];r.onInvalidated(),r.onCommitted()}}}const v=new u.Z(class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}},void 0,(e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1})),_=()=>{};function w(e){return e?e instanceof L?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function S(e){if(e&&e.length)return e[0]}function C(e,t,r,n){const i=Math.min(e.length-r,t.length-n);let s=0;for(;s<i&&e[r+s]===t[n+s];)s++;return s}function x(e,t,r,n){t&&t.forEach(((t,i,s)=>{e.push(t),x(e,r.call(n,t,i,s),r,n)}))}const E=new Set,O=new Set,T=new Set,I=new Map;let U=0,L=c=class extends o.Z.EventedAccessor{constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new b,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:U++})}static isCollection(e){return null!=e&&e instanceof c}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof c?{items:e}:e:{}}destroy(){this.removeAll()}*[Symbol.iterator](){yield*this.items}get items(){return(0,y.it)(this._observable),this._items}set items(e){this._emitBeforeChanges(n.ADD)||(this._splice(0,this.length,w(e)),this._emitAfterChanges(n.ADD))}hasEventListener(e){return"change"===e?this._chgListeners.length>0:this._emitter.hasEventListener(e)}on(e,t){if("change"===e){const e=this._chgListeners,r={removed:!1,callback:t};return e.push(r),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),{remove(){this.remove=_,r.removed=!0,e.splice(e.indexOf(r),1)}}}return this._emitter.on(e,t)}once(e,t){const r=this.on(e,t);return{remove(){r.remove()}}}add(e,t){if((0,y.it)(this._observable),this._emitBeforeChanges(n.ADD))return this;const r=this.getNextIndex(null!=t?t:null);return this._splice(r,0,[e]),this._emitAfterChanges(n.ADD),this}addMany(e,t=this._items.length){if((0,y.it)(this._observable),!e||!e.length)return this;if(this._emitBeforeChanges(n.ADD))return this;const r=this.getNextIndex(t);return this._splice(r,0,w(e)),this._emitAfterChanges(n.ADD),this}removeAll(){if((0,y.it)(this._observable),!this.length||this._emitBeforeChanges(n.REMOVE))return[];const e=this._splice(0,this.length)||[];return this._emitAfterChanges(n.REMOVE),e}clone(){return(0,y.it)(this._observable),this._createNewInstance({items:this._items.map(a.d9)})}concat(...e){(0,y.it)(this._observable);const t=e.map(w);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,y.it)(this._observable),!this.length||this._emitBeforeChanges(n.REMOVE))return;const r=(0,l.j0)(this._splice(0,this.length)),i=r.length;for(let n=0;n<i;n++)e.call(t,r[n],n,r);this._emitAfterChanges(n.REMOVE)}every(e,t){return(0,y.it)(this._observable),this._items.every(e,t)}filter(e,t){let r;return(0,y.it)(this._observable),r=2===arguments.length?this._items.filter(e,t):this._items.filter(e),this._createNewInstance({items:r})}find(e,t){return(0,y.it)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,y.it)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,y.it)(this._observable);const r=[];return x(r,this,e,t),new c(r)}forEach(e,t){return(0,y.it)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,y.it)(this._observable),this._items[e]}getNextIndex(e){(0,y.it)(this._observable);const t=this.length;return(e=null==e?t:e)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,y.it)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,y.it)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,y.it)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,y.it)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,y.it)(this._observable);const r=this._items.map(e,t);return new c({items:r})}reorder(e,t=this.length-1){(0,y.it)(this._observable);const r=this.indexOf(e);if(-1!==r){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(n.MOVE))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(n.MOVE)}return e}}pop(){if((0,y.it)(this._observable),!this.length||this._emitBeforeChanges(n.REMOVE))return;const e=S(this._splice(this.length-1,1));return this._emitAfterChanges(n.REMOVE),e}push(...e){return(0,y.it)(this._observable),this._emitBeforeChanges(n.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(n.ADD)),this.length}reduce(e,t){(0,y.it)(this._observable);const r=this._items;return 2===arguments.length?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){(0,y.it)(this._observable);const r=this._items;return 2===arguments.length?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return(0,y.it)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,y.it)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(n.REMOVE))return;const t=S(this._splice(e,1));return this._emitAfterChanges(n.REMOVE),t}removeMany(e){if((0,y.it)(this._observable),!e||!e.length||this._emitBeforeChanges(n.REMOVE))return[];const t=e instanceof c?e.toArray():e,r=this._items,i=[],s=t.length;for(let e=0;e<s;e++){const n=t[e],s=r.indexOf(n);if(s>-1){const n=1+C(t,r,e+1,s+1),o=this._splice(s,n);o&&o.length>0&&i.push.apply(i,o),e+=n-1}}return this._emitAfterChanges(n.REMOVE),i}reverse(){if((0,y.it)(this._observable),this._emitBeforeChanges(n.MOVE))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(n.MOVE),this}shift(){if((0,y.it)(this._observable),!this.length||this._emitBeforeChanges(n.REMOVE))return;const e=S(this._splice(0,1));return this._emitAfterChanges(n.REMOVE),e}slice(e=0,t=this.length){return(0,y.it)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,y.it)(this._observable),this._items.some(e,t)}sort(e){if((0,y.it)(this._observable),!this.length||this._emitBeforeChanges(n.MOVE))return this;const t=(0,l.j0)(this._splice(0,this.length));return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(n.MOVE),this}splice(e,t,...r){(0,y.it)(this._observable);const i=(t?n.REMOVE:0)|(r.length?n.ADD:0);if(this._emitBeforeChanges(i))return[];const s=this._splice(e,t,r)||[];return this._emitAfterChanges(i),s}toArray(){return(0,y.it)(this._observable),this._items.slice()}toJSON(){return(0,y.it)(this._observable),this.toArray()}toLocaleString(){return(0,y.it)(this._observable),this._items.toLocaleString()}toString(){return(0,y.it)(this._observable),this._items.toString()}unshift(...e){return(0,y.it)(this._observable),!e.length||this._emitBeforeChanges(n.ADD)||(this._splice(0,0,e),this._emitAfterChanges(n.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){const n=this._items,i=this.itemType;let s,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._timer=(0,d.Os)((()=>this._dispatchChange()))),t){if(o=n.splice(e,t),this.hasEventListener("before-remove")){const t=v.acquire();t.target=this,t.cancellable=!0;for(let r=0,i=o.length;r<i;r++)s=o[r],t.reset(s),this.emit("before-remove",t),t.defaultPrevented&&(o.splice(r,1),n.splice(e,0,s),e+=1,r-=1,i-=1);v.release(t)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const e=v.acquire();e.target=this,e.cancellable=!1;const t=o.length;for(let r=0;r<t;r++)e.reset(o[r]),this.emit("after-remove",e);v.release(e)}}if(r&&r.length){if(i){const e=[];for(const t of r){const r=i.ensureType(t);null==r&&null!=t||e.push(r)}r=e}const t=this.hasEventListener("before-add"),s=this.hasEventListener("after-add"),o=e===this.length;if(t||s){const i=v.acquire();i.target=this,i.cancellable=!0;const a=v.acquire();a.target=this,a.cancellable=!1;for(const l of r)t?(i.reset(l),this.emit("before-add",i),i.defaultPrevented||(o?n.push(l):n.splice(e++,0,l),this._set("length",n.length),s&&(a.reset(l),this.emit("after-add",a)))):(o?n.push(l):n.splice(e++,0,l),this._set("length",n.length),a.reset(l),this.emit("after-add",a));v.release(a),v.release(i)}else{if(o)for(const e of r)n.push(e);else n.splice(e,0,...r);this._set("length",n.length)}}return(r&&r.length||o&&o.length)&&this._notifyChangeEvent(r,o),o}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const r=v.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,v.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=v.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),v.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;E.clear(),O.clear(),T.clear();for(const{added:t,removed:r}of e){if(t)if(0===T.size&&0===O.size)for(const e of t)E.add(e);else for(const e of t)O.has(e)?(T.add(e),O.delete(e)):T.has(e)||E.add(e);if(r)if(0===T.size&&0===E.size)for(const e of r)O.add(e);else for(const e of r)E.has(e)?E.delete(e):(T.delete(e),O.add(e))}const r=s.Z.acquire();E.forEach((e=>{r.push(e)}));const n=s.Z.acquire();O.forEach((e=>{n.push(e)}));const i=this._items,o=t.items,a=s.Z.acquire();if(T.forEach((e=>{o.indexOf(e)!==i.indexOf(e)&&a.push(e)})),t.listeners&&(r.length||n.length||a.length)){const e={target:this,added:r,removed:n,moved:a},i=t.listeners.length;for(let r=0;r<i;r++){const n=t.listeners[r];n.removed||n.callback.call(this,e)}}s.Z.release(r),s.Z.release(n),s.Z.release(a)}E.clear(),O.clear(),T.clear()}};L.ofType=e=>{if(!e)return c;if(I.has(e))return I.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const r in e.typeMap){const n=e.typeMap[r].prototype.declaredClass;t?t+=` | ${n}`:t=n}let r=class extends c{};return(0,i._)([(0,f.c)({Type:e,ensureType:"function"==typeof e?(0,p.se)(e):(0,p.N7)(e)})],r.prototype,"itemType",void 0),r=(0,i._)([(0,m.j)(`esri.core.Collection<${t}>`)],r),I.set(e,r),r},(0,i._)([(0,h.Cb)()],L.prototype,"length",void 0),(0,i._)([(0,h.Cb)()],L.prototype,"items",null),L=c=(0,i._)([(0,m.j)("esri.core.Collection")],L);const q=L},32448:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(43697),i=r(15923),s=r(50758),o=r(52011);class a{constructor(){this._emitter=new a.EventEmitter(this)}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}}!function(e){class t{constructor(e=null){this.target=e,this._listenersMap=null}clear(){this._listenersMap&&this._listenersMap.clear(),this._listenersMap=null}emit(e,t){const r=this._listenersMap&&this._listenersMap.get(e);if(!r)return!1;const n=this.target||this;return[...r].forEach((e=>{e.call(n,t)})),r.length>0}on(e,t){if(Array.isArray(e)){const r=e.map((e=>this.on(e,t)));return(0,s.AL)(r)}if(e.indexOf(",")>-1)throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap||(this._listenersMap=new Map);const r=this._listenersMap.get(e)||[];return r.push(t),this._listenersMap.set(e,r),{remove:()=>{const r=this._listenersMap&&this._listenersMap.get(e)||[],n=r.indexOf(t);n>=0&&r.splice(n,1)}}}once(e,t){const r=this.on(e,(e=>{r.remove(),t.call(null,e)}));return r}hasEventListener(e){const t=this._listenersMap&&this._listenersMap.get(e);return null!=t&&t.length>0}}e.EventEmitter=t,e.EventedMixin=e=>{let r=class extends e{constructor(){super(...arguments),this._emitter=new t}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};return r=(0,n._)([(0,o.j)("esri.core.Evented")],r),r};let r=class extends i.Z{constructor(){super(...arguments),this._emitter=new a.EventEmitter(this)}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};r=(0,n._)([(0,o.j)("esri.core.Evented")],r),e.EventedAccessor=r}(a||(a={}));const l=a},36030:(e,t,r)=>{r.d(t,{J:()=>s});var n=r(35454),i=r(5600);function s(e,t={}){var r;const s=e instanceof n.Xn?e:new n.Xn(e,t),o={type:null==(r=null==t?void 0:t.ignoreUnknown)||r?s.apiValues:String,json:{type:s.jsonValues,read:(null==t||!t.readOnly)&&{reader:s.read},write:{writer:s.write}}};return void 0!==(null==t?void 0:t.readOnly)&&(o.readOnly=!!t.readOnly),void 0!==(null==t?void 0:t.default)&&(o.json.default=t.default),void 0!==(null==t?void 0:t.name)&&(o.json.name=t.name),(0,i.Cb)(o)}},52421:(e,t,r)=>{function n(e){return(t,r)=>{t[r]=e}}r.d(t,{c:()=>n})},74085:(e,t,r)=>{function n(e){}r.d(t,{Bg:()=>n}),r(80442)},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 s(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 s=i(e,t,(t=>{s.remove(),r.call(e,t)}));return{remove(){s.remove()}}}r.d(t,{vT:()=>n,on:()=>i,IH:()=>s})},95330:(e,t,r)=>{r.d(t,{e4:()=>O,$6:()=>l,Ue:()=>u,zE:()=>c,dD:()=>w,hh:()=>L,vr:()=>q,Ds:()=>U,as:()=>S,WW:()=>C,R8:()=>_,D_:()=>v,Hc:()=>p,y8:()=>T,fu:()=>y,$F:()=>g,d1:()=>x,DB:()=>E,r9:()=>f,k_:()=>d,H9:()=>m,Yn:()=>F,gx:()=>I,Hl:()=>b});const n=(i=globalThis,{setTimeout:(e,t)=>{const r=i.setTimeout(e,t);return{remove:()=>i.clearTimeout(r)}}});var i,s=r(20102),o=r(91460),a=(r(92604),r(70586));function l(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 s.Z("AbortError",e)}function d(e,t="Aborted"){if(p(e))throw c(t)}function h(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function p(e){const t=h(e);return(0,a.pC)(t)&&t.aborted}function f(e){if(v(e))throw e}function m(e){if(!v(e))throw e}function y(e,t){const r=h(e);if(!(0,a.Wi)(r)){if(!r.aborted)return(0,o.IH)(r,"abort",(()=>t()));t()}}function g(e,t){const r=h(e);if(!(0,a.Wi)(r))return d(r),(0,o.IH)(r,"abort",(()=>t(c())))}function b(e,t){const r=h(t);return(0,a.Wi)(r)?e:new Promise(((r,n)=>{let i=y(t,(()=>n(c())));const s=()=>i=(0,a.hw)(i);e.then(s,s),e.then(r,n)}))}function v(e){return e&&"AbortError"===e.name}function _(e){return e.catch((e=>{if(!v(e))throw e}))}function w(){let e=null;const t=new Promise(((t,r)=>{e={promise:void 0,resolve:t,reject:r}}));return e.promise=t,e}function S(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return S(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 C(e){return S(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function x(e){return Promise.reject(e)}function E(e){return Promise.resolve(e)}function O(e,t,r){const n=new AbortController;return y(r,(()=>n.abort())),new Promise(((r,i)=>{let s=setTimeout((()=>{s=0,r(t)}),e);y(n,(()=>{s&&(clearTimeout(s),i(c()))}))}))}function T(e){return e&&"function"==typeof e.then}function I(e){return T(e)?e:Promise.resolve(e)}function U(e,t=-1){let r,n,i,s,o=null;const l=(...u)=>{if(r){n=u,s&&s.reject(c()),s=w();const e=(0,a.j0)(s.promise);if(o){const e=o;o=null,e.abort()}return e}if(i=s||w(),s=null,t>0){const n=new AbortController;r=I(e(...u,n.signal));const i=r;O(t).then((()=>{r===i&&(s?n.abort():o=n)}))}else r=1,r=I(e(...u));const d=()=>{const e=n;n=i=r=o=null,null!=e&&l(...e)},h=r,p=i;return h.then(d,d),h.then(p.resolve,p.reject),(0,a.j0)(p.promise)};return l}function L(){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 q(e,t){let r,n=new AbortController;const i=e(n.signal);let s={promise:i,finished:!1,abort:()=>{n&&(n.abort(),n=null)}};const o=()=>{s&&(s.finished=!0,s=null),(0,a.pC)(r)&&(r.remove(),r=null),n=null};return i.then(o,o),r=y(t,(()=>{(0,a.pC)(s)&&s.abort()})),s}function F(e){return Promise.resolve().then((()=>{d(e)}))}},67900:(e,t,r)=>{r.d(t,{gV:()=>P,En:()=>C,Z7:()=>U,c9:()=>I,_R:()=>O,qE:()=>F,cM:()=>T,hd:()=>c,ty:()=>x,Jo:()=>R,$C:()=>E}),r(80442);var n=r(35454),i=r(70586),s=r(24678),o=r(82971),a=r(68441),l=r(8744),u=r(58116);const c=39.37,d=a.sv.radius*Math.PI/200,h=/UNIT\[([^\]]+)\]\]$/i,p=u.Z,f=/UNIT\[([^\]]+)\]/i,m=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),y=(0,n.wY)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),g=e=>e*e,b=e=>e*e*e,v={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:g(.001)},"square-centimeters":{inBaseUnits:g(.01)},"square-decimeters":{inBaseUnits:g(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:g(1e3)},"square-inches":{inBaseUnits:g(.0254)},"square-feet":{inBaseUnits:g(.3048)},"square-yards":{inBaseUnits:g(.9144)},"square-miles":{inBaseUnits:g(1609.344)},"square-us-feet":{inBaseUnits:g(1200/3937)},acres:{inBaseUnits:.0015625*g(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*b(.001)},"cubic-centimeters":{inBaseUnits:1e3*b(.01)},"cubic-decimeters":{inBaseUnits:1e3*b(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*b(1e3)},"cubic-inches":{inBaseUnits:1e3*b(.0254)},"cubic-feet":{inBaseUnits:1e3*b(.3048)},"cubic-yards":{inBaseUnits:1e3*b(.9144)},"cubic-miles":{inBaseUnits:1e3*b(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},_=function(){const e={};for(const t in v)for(const r in v[t].units)e[r]=t;return e}();function w(e){const t=_[e];if(t)return t;throw new Error("unknown measure")}function S(e,t=null){return t=t||w(e),v[t].baseUnit===e}function C(e,t,r){if(t===r)return e;const n=w(t);if(n!==w(r))throw new Error("incompatible units");const i=S(t,n)?e:function(e,t,r){return e*v[r].units[t].inBaseUnits}(e,t,n);return S(r,n)?i:function(e,t,r){return e/v[r].units[t].inBaseUnits}(i,r,n)}function x(e,t,r){return C(e,t,"meters")/(r*Math.PI/180)}function E(e){return y.fromJSON(e.toLowerCase())||null}function O(e){if(e&&"object"==typeof e&&!(0,l.N$)(e))return 1;const t=I(e);return t>1e5?1:t}function T(e){return I(e)>=(e instanceof o.Z?(0,s.Iu)(e).metersPerDegree:1e5)?"meters":F(e)}function I(e,t=a.sv.metersPerDegree){return U(e,!0)||t}function U(e,t=!1){let r,n,i=null;if(null!=e&&("object"==typeof e?(r=e.wkid,n=e.wkt):"number"==typeof e?r=e:"string"==typeof e&&(n=e)),r){if((0,l.o$)(r))return a.yr.metersPerDegree;if((0,l.ME)(r))return a.Z1.metersPerDegree;i=p.values[p[r]],!i&&t&&m.has(r)&&(i=d)}else n&&(A(n)?i=L(h.exec(n),i):V(n)&&(i=L(f.exec(n),i)));return i}function L(e,t){return e&&e[1]?q(e[1]):t}function q(e){return parseFloat(e.split(",")[1])}function F(e){let t,r,n=null;if(null!=e&&("object"==typeof e?(t=e.wkid,r=e.wkt):"number"==typeof e?t=e:"string"==typeof e&&(r=e)),t)n=p.units[p[t]];else if(r){const e=A(r)?h:V(r)?f:null;if(e){const t=e.exec(r);t&&t[1]&&(n=function(e){const t=/[\\"\\']{1}([^\\"\\']+)/.exec(e);let r=t&&t[1];if(!r||-1===p.units.indexOf(r)){const t=q(e);r=null;const n=p.values;for(let e=0;e<n.length;++e)if(Math.abs(t-n[e])<1e-7){r=p.units[e];break}}return r}(t[1]))}}return(0,i.pC)(n)?E(n):null}function V(e){return/^GEOCCS/i.test(e)}function A(e){return/^PROJCS/i.test(e)}const k={esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"},D={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},P=(0,n.wY)()(k),R=(0,n.wY)()(D);(0,n.wY)()({...k,...D})},17452:(e,t,r)=>{r.d(t,{R9:()=>b,qg:()=>U,tD:()=>V,ZN:()=>he,fl:()=>pe,Ie:()=>ue,sJ:()=>X,AH:()=>W,io:()=>K,L:()=>C,TI:()=>S,vt:()=>ae,oh:()=>P,P$:()=>G,Ml:()=>fe,ed:()=>A,b7:()=>I,D6:()=>R,tm:()=>k,YP:()=>z,jc:()=>H,HK:()=>J,$U:()=>re,oC:()=>ee,kl:()=>N,v_:()=>B,hF:()=>j,_l:()=>Q,PF:()=>$,Fv:()=>Z,B7:()=>T,u0:()=>E,Yd:()=>oe,Hu:()=>de,Qj:()=>le,hO:()=>ne,mN:()=>x});var n=r(68773),i=r(20102),s=r(92604),o=r(70586);const a=s.Z.getLogger("esri.core.urlUtils"),l=n.Z.request,u="esri/config: esriConfig.request.proxyUrl is not set.",c=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,d=/^\s*http:/i,h=/^\s*https:/i,p=/^\s*file:/i,f=/:\d+$/,m=/^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,o.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,o.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={};let _=new b(n.Z.applicationUrl);let w=function(){const e=(0,o.j0)(_.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${_.scheme}://${_.host}${null!=_.port?`:${_.port}`:""}${t}`}();const S=()=>_,C=()=>w;function x(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=E(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 E(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 s=r[n];"string"==typeof s&&(s=r[n]=[s]),Array.isArray(s)?s.push(i):r[n]=i}return r}function O(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function T(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)+"=",s=t&&t[r];return s?i+encodeURIComponent(s(n)):Array.isArray(n)?n.map((e=>O(e)?i+encodeURIComponent(JSON.stringify(e)):i+encodeURIComponent(e))).join("&"):O(n)?i+encodeURIComponent(JSON.stringify(n)):i+encodeURIComponent(n)})).filter((e=>e)).join("&"):""}function I(e=!1){let t,r=l.proxyUrl;if("string"==typeof e){t=re(e);const n=A(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw a.warn(u),new i.Z("urlutils:proxy-not-set",u);return t&&ie()&&(r=ne(r)),x(r)}function U(e){const t=A(e);let r,n;if(t){const e=q(t.proxyUrl);r=e.path,n=e.query?E(e.query):null}if(r){const t=x(e);e=r+"?"+t.path;const i=T({...n,...t.query});i&&(e=`${e}?${i}`)}return e}const L={path:"",query:""};function q(e){const t=e.indexOf("?");return-1!==t?(L.path=e.slice(0,t),L.query=e.slice(t+1)):(L.path=e,L.query=null),L}function F(e){return(e=se(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=q(e).path),!0)).toLowerCase()}function V(e){const t={proxyUrl:e.proxyUrl,urlPrefix:F(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 A(e){const t=l.proxyRules,r=F(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function k(e,t){return e=D(e),t=D(t),se(e)===se(t)}function D(e){const t=(e=Z(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function P(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 R(e,t,r=!1){const n=ce(e),i=ce(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(!z(e))return!0;e=ce(e)}if(R(e,_))return!0;const t=l.trustedServers||[];for(let r=0;r<t.length;r++){const n=M(t[r]);for(let t=0;t<n.length;t++)if(R(e,n[t]))return!0}return!1}function M(e){return v[e]||(te(e)||ee(e)?v[e]=[new b(j(e))]:v[e]=[new b(`http://${e}`),new b(`https://${e}`)]),v[e]}function j(e,t=w,r){return ee(e)?r&&r.preserveProtocolRelative?e:"http"===_.scheme&&_.authority===G(e).slice(2)?`http:${e}`:`https:${e}`:te(e)?e:(0,o.j0)(B("/"===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 $(e,t=w,r){if(!z(e))return e;const n=Z(e),i=n.toLowerCase(),s=Z(t).toLowerCase().replace(/\/+$/,""),o=r?Z(r).toLowerCase().replace(/\/+$/,""):null;if(o&&0!==s.indexOf(o))return e;const a=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let l=a(i,"/",i.indexOf("//")+2),u=-1;for(;i.slice(0,l+1)===s.slice(0,l)+"/"&&(u=l+1,l!==i.length);)l=a(i,"/",l+1);if(-1===u)return e;if(o&&u<o.length)return e;e=n.slice(u);const c=s.slice(u-1).replace(/[^/]+/g,"").length;if(c>0)for(let t=0;t<c;t++)e=`../${e}`;else e=`./${e}`;return e}function Z(e){return function(e){const t=l.httpsDomains;if(!function(e){return d.test(e)||"http"===_.scheme&&ee(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),f.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===_.scheme&&n===_.authority&&!m.test(e)||(ie()&&n===_.authority||t&&t.some((e=>n===e||n.endsWith(`.${e}`)))||ie()&&!A(e))&&(e=ne(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=q(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=j(e=e.trim()))))}function B(...e){const t=e.filter(o.pC);if(!t||!t.length)return;const r=[];if(z(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return p.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(H(e)||J(e))return null;let r=e.indexOf("://");if(-1===r&&ee(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=se(e,!0)),e}function z(e){return ee(e)||te(e)}function H(e){return null!=e&&"blob:"===e.slice(0,5)}function J(e){return"data:"===e.slice(0,5)}function W(e){const t=X(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 Y=/^data:(.*?)(;base64)?,(.*)$/;function X(e){const t=e.match(Y);if(!t)return null;const[,r,n,i]=t;return{mediaType:r,isBase64:!!n,data:i}}function Q(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function K(e,t){(function(e,t){if(!e)return!1;const r=document.createElement("a");if(!("download"in r))return!1;const n=URL.createObjectURL(e);return r.download=t,r.href=n,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n),!0})(e,t)||function(e,t){!!window.navigator.msSaveOrOpenBlob&&window.navigator.msSaveOrOpenBlob(e,t)}(e,t)}function ee(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function te(e){return c.test(e)}function re(e){return h.test(e)||"https"===_.scheme&&ee(e)}function ne(e){return ee(e)?`https:${e}`:e.replace(d,"https:")}function ie(){return"https"===_.scheme}function se(e,t=!1){return ee(e)?e.slice(2):(e=e.replace(c,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function oe(e){let t=0;if(z(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function ae(e,t){if(!e)return"";const r=x(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 le(e){return e.replace(/\/+$/,"")}function ue(e,t,r){if(!(t&&r&&e&&z(e)))return e;const n=e.indexOf("//"),i=e.indexOf("/",n+2),s=e.indexOf(":",n+2),o=Math.min(i<0?e.length:i,s<0?e.length:s);return e.slice(n+2,o).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(o)}`}function ce(e){return"string"==typeof e?new b(j(e)):(e.scheme||(e.scheme=_.scheme),e)}function de(e,t){const r=x(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 he(e,t,r){const n=x(e),i=n.query||{};return i[t]=String(r),`${n.path}?${T(i)}`}function pe(e,t){const r=x(e),n=r.query||{};for(const e in t)n[e]=t[e];const i=T(n);return i?`${r.path}?${i}`:r.path}function fe(e){if((0,o.Wi)(e))return null;const t=e.match(me);return t?t[1]:null}const me=/.*?\.([^\/]*)$/},66577:(e,t,r)=>{r.d(t,{qM:()=>c});var n=r(75215),i=r(6570),s=r(9361),o=r(65091),a=r(13473),l=r(17332),u=r(58901);r(82971),r(86973),r(33955);const c={base:s.Z,key:"type",typeMap:{extent:i.Z,multipoint:o.Z,point:a.Z,polyline:u.Z,polygon:l.Z}};(0,n.N7)(c)},24678:(e,t,r)=>{r.d(t,{GG:()=>a,HQ:()=>l,VY:()=>u,wY:()=>c,Iu:()=>h,e8:()=>p,rS:()=>d});var n=r(82971),i=r(68441),s=r(8744);function o(e){return new n.Z({wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`})}const a=o(i.sv),l=o(i.yr),u=o(i.Z1),c=new n.Z({wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${i.sv.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`});function d(e){return e&&((0,s.BZ)(e)||e===l)?l:e&&((0,s.V2)(e)||e===u)?u:a}function h(e){return e&&((0,s.BZ)(e)||e===l)?i.yr:e&&((0,s.V2)(e)||e===u)?i.Z1:i.sv}function p(e){return(0,s.o$)(e)?i.yr:(0,s.ME)(e)?i.Z1:i.sv}},33955:(e,t,r)=>{r.d(t,{im:()=>m,q9:()=>b,Ji:()=>y,YX:()=>c,aW:()=>d,wp:()=>h,oU:()=>f,l9:()=>p});var n=r(70586),i=r(6570),s=r(9361),o=r(65091),a=r(13473),l=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 d(e){return void 0!==e.points}function h(e){return void 0!==e.x&&void 0!==e.y}function p(e){return void 0!==e.paths}function f(e){return void 0!==e.rings}function m(e){return(0,n.Wi)(e)?null:e instanceof s.Z?e:h(e)?a.Z.fromJSON(e):p(e)?u.Z.fromJSON(e):f(e)?l.Z.fromJSON(e):d(e)?o.Z.fromJSON(e):c(e)?i.Z.fromJSON(e):null}function y(e){return e?h(e)?"esriGeometryPoint":p(e)?"esriGeometryPolyline":f(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":d(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:a.Z,esriGeometryPolyline:u.Z,esriGeometryPolygon:l.Z,esriGeometryEnvelope:i.Z,esriGeometryMultipoint:o.Z};function b(e){return e&&g[e]||null}},86973:(e,t,r)=>{r.d(t,{Mk:()=>i,P$:()=>s});var n=r(35454);const i=(0,n.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),s=(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:()=>a,qh:()=>l,i8:()=>s,Nv:()=>o});var n=r(80442),i=r(17452);const s="4.23",o={async request(e,t){var n;const{default:s}=await r.e(3172).then(r.bind(r,3172)),o=e.options,a=o.responseType;o.signal=null==t?void 0:t.signal,o.responseType="native"===a||"native-request-init"===a?"native-request-init":["blob","json","text"].includes(a)&&null!=(n=(0,i.oh)(e.url))&&n.after?a:"array-buffer";const l=await s(e.url,o),u={data:l.data,ssl:l.ssl};switch(l.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 a;function l(e){a=e}function u(e){const t=a&&a.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:()=>Q});var n,i=r(43697),s=(r(66577),r(51773)),o=(r(16050),r(12501),r(95088),r(79056),r(5499),r(84382)),a=r(30687),l=r(91423),u=r(32400),c=r(3172),d=r(78223),h=r(20102),p=r(92604),f=r(70586),m=r(16453),y=r(95330),g=r(5600),b=(r(67676),r(80442),r(75215)),v=r(71715),_=r(52011),w=r(63213),S=r(86973),C=r(29600),x=r(17287),E=r(71612),O=r(17017),T=r(69637),I=r(38009),U=r(16859),L=r(34760),q=r(72965),F=r(28294),V=r(21506),A=r(55785),k=r(53518),D=r(35671),P=r(2319),R=r(30707),N=r(96674);let M=n=class extends N.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}})],M.prototype,"age",void 0),(0,i._)([(0,g.Cb)({type:Number,json:{write:!0}})],M.prototype,"ageReceived",void 0),(0,i._)([(0,g.Cb)({type:Number,json:{write:!0}})],M.prototype,"displayCount",void 0),(0,i._)([(0,g.Cb)({type:Number,json:{write:!0}})],M.prototype,"maxObservations",void 0),M=n=(0,i._)([(0,_.j)("esri.layers.support.PurgeOptions")],M);const j=M;var $=r(40555),Z=r(57444),B=r(32163),G=r(20682),z=r(82971),H=r(6570);const J=p.Z.getLogger("esri.layers.StreamLayer"),W=(0,k.v)();let Y=class extends((0,T.b)((0,E.h)((0,F.n)((0,q.M)((0,L.Q)((0,x.Y)((0,I.q)((0,U.I)((0,m.R)((0,O.N)(C.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 j,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 globalThis))return this.addResolvingPromise(Promise.reject(new h.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,f.pC)(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Stream Service","Feed"]},e).catch(y.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){(0,D.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,l.a)(n,t,r)||void 0;return e||J.error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:r}),e}if(t.defaultSymbol)return t.types&&t.types.length?new a.Z({defaultSymbol:X(t.defaultSymbol,t,r),field:t.typeIdField,uniqueValueInfos:t.types.map((e=>({id:e.id,symbol:X(e.symbol,e,r)})))}):new o.Z({symbol:X(t.defaultSymbol,t,r)})}createPopupTemplate(e){return(0,B.eZ)(this,e)}createQuery(){const e=new Z.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 h.Z("stream-layer:missing-metadata","The stream layer trackIdField must be specified.");if(!this.objectIdField)throw new h.Z("stream-layer:missing-metadata","The stream layer objectIdField must be specified.");if(!this.fields)throw new h.Z("stream-layer:missing-metadata","The stream layer fields must be specified.");if(!this.geometryType)throw new h.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,D.YN)(this.renderer,this.fieldsIndex),(0,D.UF)(this.timeInfo,this.fieldsIndex),(0,$.y)(this,{origin:"service"})}};(0,i._)([(0,g.Cb)({type:String})],Y.prototype,"copyright",void 0),(0,i._)([(0,g.Cb)({readOnly:!0})],Y.prototype,"defaultPopupTemplate",null),(0,i._)([(0,g.Cb)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],Y.prototype,"definitionExpression",void 0),(0,i._)([(0,g.Cb)({type:String})],Y.prototype,"displayField",void 0),(0,i._)([(0,g.Cb)({type:G.Z})],Y.prototype,"elevationInfo",void 0),(0,i._)([(0,g.Cb)(A.d)],Y.prototype,"featureReduction",void 0),(0,i._)([(0,g.Cb)(W.fields)],Y.prototype,"fields",void 0),(0,i._)([(0,g.Cb)(W.fieldsIndex)],Y.prototype,"fieldsIndex",void 0),(0,i._)([(0,g.Cb)({type:H.Z})],Y.prototype,"geometryDefinition",void 0),(0,i._)([(0,g.Cb)({type:S.Mk.apiValues,json:{read:{reader:S.Mk.read}}})],Y.prototype,"geometryType",void 0),(0,i._)([(0,g.Cb)(V.iR)],Y.prototype,"labelsVisible",void 0),(0,i._)([(0,g.Cb)({type:[P.Z],json:{read:{source:"layerDefinition.drawingInfo.labelingInfo",reader:R.r},write:{target:"layerDefinition.drawingInfo.labelingInfo"}}})],Y.prototype,"labelingInfo",void 0),(0,i._)([(0,g.Cb)(V.rn)],Y.prototype,"legendEnabled",void 0),(0,i._)([(0,g.Cb)({type:["show","hide"]})],Y.prototype,"listMode",void 0),(0,i._)([(0,g.Cb)({type:b.z8})],Y.prototype,"maxReconnectionAttempts",void 0),(0,i._)([(0,g.Cb)({type:b.z8})],Y.prototype,"maxReconnectionInterval",void 0),(0,i._)([(0,g.Cb)(V.u1)],Y.prototype,"maxScale",void 0),(0,i._)([(0,g.Cb)(V.rO)],Y.prototype,"minScale",void 0),(0,i._)([(0,g.Cb)({type:String})],Y.prototype,"objectIdField",void 0),(0,i._)([(0,g.Cb)({value:"ArcGISStreamLayer",type:["ArcGISStreamLayer"]})],Y.prototype,"operationalLayerType",void 0),(0,i._)([(0,g.Cb)(V.C_)],Y.prototype,"popupEnabled",void 0),(0,i._)([(0,g.Cb)({type:s.Z,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],Y.prototype,"popupTemplate",void 0),(0,i._)([(0,g.Cb)({type:j})],Y.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"}}})],Y.prototype,"renderer",null),(0,i._)([(0,v.r)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,v.r)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],Y.prototype,"readRenderer",null),(0,i._)([(0,g.Cb)(V.YI)],Y.prototype,"screenSizePerspectiveEnabled",void 0),(0,i._)([(0,g.Cb)()],Y.prototype,"sourceJSON",void 0),(0,i._)([(0,g.Cb)({type:z.Z,json:{origins:{service:{read:{source:"spatialReference"}}}}})],Y.prototype,"spatialReference",void 0),(0,i._)([(0,g.Cb)({json:{read:!1}})],Y.prototype,"type",void 0),(0,i._)([(0,g.Cb)(V.HQ)],Y.prototype,"url",void 0),(0,i._)([(0,g.Cb)({type:Number})],Y.prototype,"updateInterval",void 0),(0,i._)([(0,g.Cb)({type:String})],Y.prototype,"webSocketUrl",void 0),Y=(0,i._)([(0,_.j)("esri.layers.StreamLayer")],Y);const X=(0,w.d)({types:d.QT}),Q=Y},17287:(e,t,r)=>{r.d(t,{Y:()=>u});var n=r(43697),i=r(92604),s=r(70586),o=r(5600),a=(r(67676),r(80442),r(75215),r(52011)),l=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,l.Qc)(this.url);if((0,s.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,l.Nm)(e,i.Z.getLogger(this.declaredClass)))}};return(0,n._)([(0,o.Cb)()],t.prototype,"title",null),(0,n._)([(0,o.Cb)({type:String})],t.prototype,"url",null),t=(0,n._)([(0,a.j)("esri.layers.mixins.ArcGISService")],t),t}},16859:(e,t,r)=>{r.d(t,{I:()=>_});var n=r(43697),i=r(40330),s=r(3172),o=r(66643),a=r(20102),l=r(92604),u=r(70586),c=r(95330),d=r(17452),h=r(5600),p=(r(67676),r(80442),r(75215),r(71715)),f=r(52011),m=r(30556),y=r(65587),g=r(15235),b=r(86082);const v=l.Z.getLogger("esri.layers.mixins.PortalLayer"),_=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 g.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)||v.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=w.credential===t?w.user:await this._fetchEditingUser(e);return w.credential=t,w.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 a=i.id.findServerInfo(this.url);if(null==a||!a.owningSystemUrl)return null;const l=`${a.owningSystemUrl}/sharing/rest`,c=y.Z.getDefault();if(c&&c.loaded&&(0,d.Fv)(c.restUrl)===(0,d.Fv)(l))return c.user;const h=`${l}/community/self`,p=(0,u.pC)(e)?e.signal:null,f=await(0,o.q6)((0,s.default)(h,{authMode:"no-prompt",query:{f:"json"},signal:p}));return f.ok?b.default.fromJSON(f.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||y.Z.getDefault());return r&&n&&!(0,d.tm)(n.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.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,h.Cb)({type:g.default})],t.prototype,"portalItem",null),(0,n._)([(0,p.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,h.Cb)()],t.prototype,"resourceReferences",void 0),(0,n._)([(0,h.Cb)({readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),t=(0,n._)([(0,f.j)("esri.layers.mixins.PortalLayer")],t),t},w={credential:null,user:null}},1231:(e,t,r)=>{r.d(t,{Z:()=>y});var n,i=r(43697),s=r(35454),o=r(96674),a=r(5600),l=(r(67676),r(80442),r(75215)),u=r(36030),c=r(71715),d=r(52011),h=r(72729),p=r(86719);const f=new s.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 o.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?f.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,a.Cb)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,i._)([(0,a.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,i._)([(0,a.Cb)()],m.prototype,"description",void 0),(0,i._)([(0,c.r)("description")],m.prototype,"readDescription",null),(0,i._)([(0,a.Cb)({types:h.V5,json:{read:{reader:h.im},write:!0}})],m.prototype,"domain",void 0),(0,i._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,i._)([(0,a.Cb)({type:l.z8,json:{write:!0}})],m.prototype,"length",void 0),(0,i._)([(0,a.Cb)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,i._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,i._)([(0,u.J)(p.v)],m.prototype,"type",void 0),(0,i._)([(0,a.Cb)()],m.prototype,"valueType",void 0),(0,i._)([(0,c.r)("valueType",["description"])],m.prototype,"readValueType",null),m=n=(0,i._)([(0,d.j)("esri.layers.support.Field")],m);const y=m},66677:(e,t,r)=>{r.d(t,{ld:()=>f,B5:()=>d,M8:()=>y,G:()=>_,Qc:()=>h,DR:()=>p,Nm:()=>g,XG:()=>b,a7:()=>m,wH:()=>v});var n=r(70586),i=r(17452),s=r(25929);const o={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer"},a=Object.values(o),l=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${a.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),u=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^\\/\\n]+)\\/(${a.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),c=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function d(e){return!!l.test(e)}function h(e){const t=(0,i.mN)(e),r=t.path.match(l)||t.path.match(u);if(!r)return null;const[,n,s,a,c]=r,d=s.indexOf("/");return{title:f(-1!==d?s.slice(d+1):s),serverType:o[a.toLowerCase()],sublayer:null!=c&&""!==c?parseInt(c,10):null,url:{path:n}}}function p(e){const t=(0,i.mN)(e).path.match(c);return t?{serviceUrl:t[1],sublayerId:Number(t[2])}:null}function f(e){return(e=e.replace(/\s*[/_]+\s*/g," "))[0].toUpperCase()+e.slice(1)}function m(e,t){const r=[];if(e){const t=h(e);(0,n.pC)(t)&&t.title&&r.push(t.title)}if(t){const e=f(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 y(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 g(e,t){return e?(0,i.Qj)((0,i.Hu)(e,t)):e}function b(e){let{url:t}=e;if(!t)return{url:t};t=(0,i.Hu)(t,e.logger);const r=(0,i.mN)(t),s=h(r.path);let o;if((0,n.pC)(s))null!=s.sublayer&&null==e.layer.layerId&&(o=s.sublayer),t=s.url.path;else if(e.nonStandardUrlAllowed){const e=p(r.path);(0,n.pC)(e)&&(t=e.serviceUrl,o=e.sublayerId)}return{url:(0,i.Qj)(t),layerId:o}}function v(e,t,r,n,o){(0,s.w)(t,n,"url",o),n.url&&null!=e.layerId&&(n.url=(0,i.v_)(n.url,r,e.layerId.toString()))}function _(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"),s=-1!==t.indexOf("/wmsserver");return r&&(n||i||s)}},72729:(e,t,r)=>{r.d(t,{im:()=>E,V5:()=>x}),r(80442);var n,i=r(43697),s=r(22974),o=r(5600),a=(r(75215),r(36030)),l=r(52011),u=r(96674);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,o.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,i._)([(0,o.Cb)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=n=(0,i._)([(0,l.j)("esri.layers.support.CodedValue")],c);const d=c,h=new(r(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,i._)([(0,o.Cb)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,i._)([(0,a.J)(h)],p.prototype,"type",void 0),p=(0,i._)([(0,l.j)("esri.layers.support.Domain")],p);const f=p;var m;let y=m=class extends f{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,s.d9)(this.codedValues),name:this.name})}};(0,i._)([(0,o.Cb)({type:[d],json:{write:!0}})],y.prototype,"codedValues",void 0),(0,i._)([(0,a.J)({codedValue:"coded-value"})],y.prototype,"type",void 0),y=m=(0,i._)([(0,l.j)("esri.layers.support.CodedValueDomain")],y);const g=y;var b;r(92604),r(37697);let v=b=class extends f{constructor(e){super(e),this.type="inherited"}clone(){return new b}};(0,i._)([(0,a.J)({inherited:"inherited"})],v.prototype,"type",void 0),v=b=(0,i._)([(0,l.j)("esri.layers.support.InheritedDomain")],v);const _=v;var w;let S=w=class extends f{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new w({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i._)([(0,o.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]}}}})],S.prototype,"maxValue",void 0),(0,i._)([(0,o.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]}}}})],S.prototype,"minValue",void 0),(0,i._)([(0,a.J)({range:"range"})],S.prototype,"type",void 0),S=w=(0,i._)([(0,l.j)("esri.layers.support.RangeDomain")],S);const C=S,x={key:"type",base:f,typeMap:{range:S,"coded-value":g,inherited:_}};function E(e){if(!e||!e.type)return null;switch(e.type){case"range":return C.fromJSON(e);case"codedValue":return g.fromJSON(e);case"inherited":return _.fromJSON(e)}return null}},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:()=>g,AB:()=>y,gd:()=>m,Mu:()=>_,Q0:()=>f,YN:()=>c,UF:()=>h,O5:()=>b,os:()=>w,H7:()=>q,qN:()=>F,Pz:()=>k,Qc:()=>D,vP:()=>$});var n,i,s=r(20102),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 a=r(59266);const l=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],u=["field","normalizationField"];function c(e,t){if(null!=e&&null!=t)for(const r of Array.isArray(e)?e:[e])if(d(l,r,t),"visualVariables"in r&&r.visualVariables)for(const e of r.visualVariables)d(u,e,t)}function d(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 h(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 p=new Set;function f(e,t){return e&&t?(p.clear(),m(p,e,t),Array.from(p).sort()):[]}function m(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)y(e,t,n);else{if(r.includes("*"))return e.clear(),void e.add("*");for(const t of r)e.add(t)}}function y(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 g(e,t,r){var n;if(!r)return;const{arcadeUtils:i}=await(0,a.LC)(),s=i.extractFieldNames(r,null==t||null==(n=t.fields)?void 0:n.map((e=>e.name)));for(const r of s)y(e,t,r)}function b({displayField:e,fields:t}){return e||(t&&t.length?v(t,"name-or-title")||v(t,"unique-identifier")||v(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 v(e,t){for(const r of e)if(r&&r.valueType&&r.valueType===t)return r.name;return null}async function _(e,t){const{labelingInfo:n,fieldsIndex:i}=t;n&&n.length&&await Promise.all(n.map((t=>async function(e,t,n){if(!n)return;const i=n.getLabelExpression(),o=n.where;if("arcade"===i.type)await g(e,t,i.expression);else{const r=i.expression.match(/{[^}]*}/g);r&&r.forEach((r=>{y(e,t,r.slice(1,-1))}))}await async function(e,t,n){if(n&&"1=1"!==n){const i=(await Promise.all([r.e(1534),r.e(5732)]).then(r.bind(r,41534))).WhereClause.create(n,t);if(!i.isStandardized)throw new s.Z("fieldUtils:collectFilterFields","Where clause is not standardized");m(e,t,i.fieldNames)}}(e,t,o)}(e,i,t))))}function w(e){const t=e.defaultValue;return void 0!==t&&U(e,t)?t:e.nullable?null:void 0}function S(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function C(e){return null===e||S(e)}const x="isInteger"in Number?Number.isInteger:e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e;function E(e){return null===e||x(e)}function O(e){return null!=e&&"string"==typeof e}function T(e){return null===e||O(e)}function I(){return!0}function U(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?E:x;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":r=e.nullable?C:S;break;case"string":case"esriFieldTypeString":r=e.nullable?T:O;break;default:r=I}return 1===arguments.length?r:r(t)}const L=new Set(["integer","small-integer","single","double","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]);function q(e){return null!=e&&L.has(e.type)}function F(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}var V,A;function k(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function D(e,t){return e.nullable&&null===t?null:q(e)&&!function(e,t){const r="string"==typeof e?P(e):e;return!!r&&(r.isInteger?x(t)&&t>=r.min&&t<=r.max:t>=r.min&&t<=r.max)}(e.type,Number(t))?V.OUT_OF_RANGE:U(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:A.INVALID_TYPE}function P(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return R;case"esriFieldTypeInteger":case"integer":return N;case"esriFieldTypeSingle":case"single":return M;case"esriFieldTypeDouble":case"double":return j}}!function(e){e.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"}(V||(V={})),function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(A||(A={}));const R={min:-32768,max:32767,isInteger:!0},N={min:-2147483648,max:2147483647,isInteger:!0},M={min:-34e37,max:12e37,isInteger:!1},j={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1};function $(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 A.INVALID_TYPE:return`Value ${r} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case V.OUT_OF_RANGE:{const{min:e,max:n}=P(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}`}}}},99282:(e,t,r)=>{r.d(t,{a:()=>s});var n=r(67900),i=r(68441);const s={inches:(0,n.En)(1,"meters","inches"),feet:(0,n.En)(1,"meters","feet"),"us-feet":(0,n.En)(1,"meters","us-feet"),yards:(0,n.En)(1,"meters","yards"),miles:(0,n.En)(1,"meters","miles"),"nautical-miles":(0,n.En)(1,"meters","nautical-miles"),millimeters:(0,n.En)(1,"meters","millimeters"),centimeters:(0,n.En)(1,"meters","centimeters"),decimeters:(0,n.En)(1,"meters","decimeters"),meters:(0,n.En)(1,"meters","meters"),kilometers:(0,n.En)(1,"meters","kilometers"),"decimal-degrees":1/(0,n.ty)(1,"meters",i.sv.radius)}},40555:(e,t,r)=>{r.d(t,{y:()=>o});var n=r(66643),i=r(95330),s=r(20941);async function o(e,t,r){const o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){const a=await(0,n.q6)(o.populateFromStyle());if((0,i.k_)(r),!1===a.ok){const r=a.error;t&&t.messages&&t.messages.push(new s.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t.origin)}}}},51706:(e,t,r)=>{var n,i;function s(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function o(e){return null!=e&&!isNaN(e)&&isFinite(e)}function a(e){return e.valueExpression?n.Expression:e.field&&"string"==typeof e.field?n.Field:n.Unknown}function l(e,t){const r=t||a(e),s=e.valueUnit||"unknown";return r===n.Unknown?i.Constant:e.stops?i.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?i.ClampedLinear:"unknown"===s?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?i.Proportional:i.Additive:i.Identity:i.RealWorldSize}r.d(t,{RY:()=>n,hL:()=>i,PS:()=>a,QW:()=>l,iY:()=>s,qh:()=>o}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(n||(n={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(i||(i={}))},28101:(e,t,r)=>{r.d(t,{PR:()=>S,Lq:()=>f,Km:()=>m,cM:()=>y,ap:()=>g,V3:()=>_,B3:()=>p});var n=r(22303),i=r(1692),s=r(74085),o=r(92604),a=r(70586),l=r(99282),u=r(51706);const c=o.Z.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),d=new i.Z,h=Math.PI,p=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function f(e,t,r){const i="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"color"===e.type))[0]:e;if(!i)return;if("esri.renderers.visualVariables.ColorVariable"!==i.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.ColorVariable");const s="number"==typeof t,o=s?null:t,l=o&&o.attributes;let u=s?t:null;const d=i.field,{ipData:h,hasExpression:p}=i.cache;let f=i.cache.compiledFunc;if(!d&&!p){const e=i.stops;return e&&e[0]&&e[0].color}if("number"!=typeof u)if(p){if(!(0,a.pC)(r)||!(0,a.pC)(r.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},t=r.arcade.arcadeUtils,n=t.getViewInfo(e),s=t.createExecContext(o,n);if(!f){const e=t.createSyntaxTree(i.valueExpression);f=t.createFunction(e),i.cache.compiledFunc=f}u=t.executeFunction(f,s)}else l&&(u=l[d]);const m=i.normalizationField,y=l?parseFloat(l[m]):void 0;if(null!=u&&(!m||s||!isNaN(y)&&0!==y)){isNaN(y)||s||(u/=y);const e=w(u,h);if(e){const t=e[0],s=e[1],o=t===s?i.stops[t].color:n.Z.blendColors(i.stops[t].color,i.stops[s].color,e[2],(0,a.pC)(r)?r.color:void 0);return new n.Z(o)}}}function m(e,t,r){const n="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"opacity"===e.type))[0]:e;if(!n)return;if("esri.renderers.visualVariables.OpacityVariable"!==n.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.OpacityVariable");const i="number"==typeof t,s=i?null:t,o=s&&s.attributes;let l=i?t:null;const u=n.field,{ipData:d,hasExpression:h}=n.cache;let p=n.cache.compiledFunc;if(!u&&!h){const e=n.stops;return e&&e[0]&&e[0].opacity}if("number"!=typeof l)if(h){if((0,a.Wi)(r)||(0,a.Wi)(r.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},t=r.arcade.arcadeUtils,i=t.getViewInfo(e),o=t.createExecContext(s,i);if(!p){const e=t.createSyntaxTree(n.valueExpression);p=t.createFunction(e),n.cache.compiledFunc=p}l=t.executeFunction(p,o)}else o&&(l=o[u]);const f=n.normalizationField,m=o?parseFloat(o[f]):void 0;if(null!=l&&(!f||i||!isNaN(m)&&0!==m)){isNaN(m)||i||(l/=m);const e=w(l,d);if(e){const t=e[0],r=e[1];if(t===r)return n.stops[t].opacity;{const i=n.stops[t].opacity;return i+(n.stops[r].opacity-i)*e[2]}}}}function y(e,t,r){const n="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"rotation"===e.type))[0]:e;if(!n)return;if("esri.renderers.visualVariables.RotationVariable"!==n.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.RotationVariable");const i=n.axis||"heading",s="heading"===i&&"arithmetic"===n.rotationType?90:0,o="heading"===i&&"arithmetic"===n.rotationType?-1:1,l="number"==typeof t?null:t,u=l&&l.attributes,d=n.field,{hasExpression:h}=n.cache;let p=n.cache.compiledFunc,f=0;if(!d&&!h)return f;if(h){if((0,a.Wi)(r)||(0,a.Wi)(r.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},t=r.arcade.arcadeUtils,i=t.getViewInfo(e),s=t.createExecContext(l,i);if(!p){const e=t.createSyntaxTree(n.valueExpression);p=t.createFunction(e),n.cache.compiledFunc=p}f=t.executeFunction(p,s)}else u&&(f=u[d]||0);return f="number"!=typeof f||isNaN(f)?null:s+o*f,f}function g(e,t,r){const n="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"size"===e.type))[0]:e;if(!n)return;if("esri.renderers.visualVariables.SizeVariable"!==n.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");const i=function(e,t,r,n,i){switch(t.transformationType){case u.hL.Additive:return function(e,t,r,n){return e+(b(t.minSize,r,n)||t.minDataValue)}(e,t,r,n);case u.hL.Constant:return function(e,t,r){const n=e.stops;let i=n&&n.length&&n[0].size;return null==i&&(i=e.minSize),b(i,t,r)}(t,r,n);case u.hL.ClampedLinear:return function(e,t,r,n){const i=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),s=b(t.minSize,r,n),o=b(t.maxSize,r,n),l=(0,a.pC)(n)?n.shape:void 0;if(e<=t.minDataValue)return s;if(e>=t.maxDataValue)return o;if("area"===t.scaleBy&&l){const e="circle"===l,t=e?h*(s/2)**2:s*s,r=t+i*((e?h*(o/2)**2:o*o)-t);return e?2*Math.sqrt(r/h):Math.sqrt(r)}return s+i*(o-s)}(e,t,r,n);case u.hL.Proportional:return function(e,t,r,n){const i=(0,a.pC)(n)?n.shape:void 0,s=e/t.minDataValue,o=b(t.minSize,r,n),l=b(t.maxSize,r,n);let u=null;return u="circle"===i?2*Math.sqrt(s*(o/2)**2):"square"===i||"diamond"===i||"image"===i?Math.sqrt(s*o**2):s*o,v(u,o,l)}(e,t,r,n);case u.hL.Stops:return function(e,t,r,n,i){const[s,o,a]=w(e,i);if(s===o)return b(t.stops[s].size,r,n);{const e=b(t.stops[s].size,r,n);return e+(b(t.stops[o].size,r,n)-e)*a}}(e,t,r,n,i);case u.hL.RealWorldSize:return function(e,t,r,n){const i=((0,a.pC)(n)&&n.resolution?n.resolution:1)*l.a[t.valueUnit],s=b(t.minSize,r,n),o=b(t.maxSize,r,n),{valueRepresentation:u}=t;let c=null;return c="area"===u?2*Math.sqrt(e/h)/i:"radius"===u||"distance"===u?2*e/i:e/i,v(c,s,o)}(e,t,r,n);case u.hL.Identity:return e;case u.hL.Unknown:return null}}(function(e,t,r){const n="number"==typeof t,i=n?null:t,s=i&&i.attributes;let o=n?t:null;const{isScaleDriven:l}=e.cache;let d=e.cache.compiledFunc;if(l){const t=(0,a.pC)(r)?r.scale:void 0,n=(0,a.pC)(r)?r.view:void 0;o=null==t||"3d"===n?function(e){let t=null,r=null;const n=e.stops;return n?(t=n[0].value,r=n[n.length-1].value):(t=e.minDataValue||0,r=e.maxDataValue||0),(t+r)/2}(e):t}else if(!n)switch(e.inputValueType){case u.RY.Expression:{if((0,a.Wi)(r)||(0,a.Wi)(r.arcade))return void c.error("Use of arcade expressions requires an arcade context");const t={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},n=r.arcade.arcadeUtils,s=n.getViewInfo(t),l=n.createExecContext(i,s);if(!d){const t=n.createSyntaxTree(e.valueExpression);d=n.createFunction(t),e.cache.compiledFunc=d}o=n.executeFunction(d,l);break}case u.RY.Field:s&&(o=s[e.field]);break;case u.RY.Unknown:o=null}if(!(0,u.qh)(o))return null;if(n||!e.normalizationField)return o;const h=s?parseFloat(s[e.normalizationField]):null;return(0,u.qh)(h)&&0!==h?o/h:null}(n,t,r),n,t,r,n.cache.ipData);return null==i||isNaN(i)?0:i}function b(e,t,r){return null==e?null:(0,u.iY)(e)?g(e,t,r):(0,u.qh)(e)?e:null}function v(e,t,r){return(0,u.qh)(r)&&e>r?r:(0,u.qh)(t)&&e<t?t:e}function _(e,t,r){const{isScaleDriven:n}=e.cache;if(!(n&&"3d"===r||t))return null;const i={scale:t,view:r};let s=b(e.minSize,d,i),o=b(e.maxSize,d,i);if(null!=s||null!=o){if(s>o){const e=o;o=s,s=e}return{minSize:s,maxSize:o}}}function w(e,t){if(!t)return;let r=0,n=t.length-1;return t.some(((t,i)=>e<t?(n=i,!0):(r=i,!1))),[r,n,(e-t[r])/(t[n]-t[r])]}function S(e,t,r){const n=["proportional","proportional","proportional"];for(const i of e){const e=i.useSymbolValue?"symbol-value":g(i,t,r);switch(i.axis){case"width":n[0]=e;break;case"depth":n[1]=e;break;case"height":n[2]=e;break;case"width-and-depth":n[0]=e,n[1]=e;break;case"all":case void 0:case null:n[0]=e,n[1]=e,n[2]=e;break;default:(0,s.Bg)(i.axis)}}return n}},3172:(e,t,r)=>{r.r(t),r.d(t,{default:()=>p});var n=r(68773),i=r(40330),s=r(20102),o=r(80442),a=r(22974),l=r(70586),u=r(95330),c=r(17452),d=r(71058),h=r(85958);async function p(e,t){var a;const h=(0,c.HK)(e),g=(0,c.jc)(e);g||h||(e=(0,c.Fv)(e));const b={url:e,requestOptions:{...(0,l.Wg)(t)}};let v=(0,c.oh)(e);if(v){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,n;try{n=await e.before(t)}catch(e){r=C("request:interceptor",e,t)}if((n instanceof Error||n instanceof s.Z)&&(r=C("request:interceptor",n,t)),r)throw e.error&&e.error(r),r;return n}}(v,b);if(null!=e)return{data:e,getHeader:_,requestOptions:b.requestOptions,url:b.url};v.after||v.error||(v=null)}if(e=b.url,"image"===(t=b.requestOptions).responseType){if((0,o.Z)("host-webworker")||(0,o.Z)("host-node"))throw C("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),b)}else if(h)throw C("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),b);if("head"===t.method){if(t.body)throw C("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),b);if(h||g)throw C("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),b)}if(await async function(){(0,o.Z)("host-webworker")?f||(f=await Promise.all([r.e(102),r.e(9884)]).then(r.bind(r,29884))):p._abortableFetch||(p._abortableFetch=globalThis.fetch.bind(globalThis))}(),f)return f.execute(e,t);const w=new AbortController;(0,u.fu)(t,(()=>w.abort()));const S={controller:w,credential:null,credentialToken:null,fetchOptions:null,hasToken:!1,interceptor:v,params:b,redoRequest:!1,useIdentity:m.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},T=await async function(e){var t,r;let s,o;await async function(e){const t=e.params.url,r=e.params.requestOptions,s=e.controller.signal,o=r.body;let a=null,l=null,c=null;if(y&&"HTMLFormElement"in globalThis&&(o instanceof FormData?a=o:o instanceof HTMLFormElement&&(l=o,a=new FormData(l))),"string"==typeof o&&(c=o),e.fetchOptions={cache:r.cacheBust&&!p._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",redirect:"follow",signal:s},(a||c)&&(e.fetchOptions.body=a||c),"anonymous"===r.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query&&r.query.token||a&&a.get&&a.get("token")||l&&l.elements.token),!e.hasToken&&n.Z.apiKey&&(0,d.r)(t)&&(r.query||(r.query={}),r.query.token=n.Z.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!E(t)&&!(0,u.Hc)(s)){let n;"immediate"===r.authMode?(await x(),n=await i.id.getCredential(t,{signal:s}),e.credential=n):"no-prompt"===r.authMode?(await x(),n=await i.id.getCredential(t,{prompt:!1,signal:s}).catch((()=>{})),e.credential=n):i.id&&(n=i.id.findCredential(t)),n&&(e.credentialToken=n.token,e.useSSL=!!n.ssl)}}(e);try{do{[s,o]=await O(e)}while(!await I(e,s,o))}catch(t){const r=C("request:server",t,e.params,s);throw r.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(r),r}const a=e.params.url;if(/\/sharing\/rest\/(accounts|portals)\/self/i.test(a)&&!e.hasToken&&!e.credentialToken&&null!=(t=o)&&null!=(r=t.user)&&r.username&&!(0,c.kl)(a)){const e=(0,c.P$)(a,!0);e&&m.trustedServers.push(e)}const l=e.credential;if(l&&i.id){const e=i.id.findServerInfo(l.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=i.id.findCredential(t,l.userId);e&&-1===i.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:o,getHeader:s?e=>s.headers.get(e):_,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(S);return null==(a=v)||null==a.after||a.after(T),T}let f;const m=n.Z.request,y="FormData"in globalThis,g=[499,498,403,401],b=["COM_0056","COM_0057","SB_0008"],v=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],_=()=>null,w=Symbol();function S(e){const t=(0,c.P$)(e);return!t||t.endsWith(".arcgis.com")||p._corsServers.includes(t)||(0,c.kl)(t)}function C(e,t,r,n){let i="Error";const o={url:r.url,requestOptions:r.requestOptions,getHeader:_,ssl:!1};if(t instanceof s.Z)return t.details?(t.details=(0,a.d9)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=o,t;if(t){const e=n&&(e=>n.headers.get(e)),r=n&&n.status,s=t.message;s&&(i=s),e&&(o.getHeader=e),o.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||r||0,o.subCode=t.subcode,o.messageCode=t.messageCode,"string"==typeof t.details?o.messages=[t.details]:o.messages=t.details,o.raw=w in t?t[w]:t}return(0,u.D_)(t)?(0,u.zE)():new s.Z(e,i,o)}async function x(){i.id||await Promise.all([r.e(280),r.e(2785),r.e(102),r.e(8536)]).then(r.bind(r,85976))}function E(e){return v.some((t=>t.test(e)))}async function O(e){let t=e.params.url;const r=e.params.requestOptions,n=e.fetchOptions,s=(0,c.jc)(t)||(0,c.HK)(t),a=r.responseType||"json",l=s?0:null!=r.timeout?r.timeout:m.timeout;let d=!1;if(!s){e.useSSL&&(t=(0,c.hO)(t)),r.cacheBust&&"default"===n.cache&&(t=(0,c.ZN)(t,"request.preventCache",Date.now()));let s={...r.query};e.credentialToken&&(s.token=e.credentialToken);let a=(0,c.B7)(s);(0,o.Z)("esri-url-encodes-apostrophe")&&(a=a.replace(/'/g,"%27"));const l=t.length+1+a.length;let u;d="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||l>m.maxUrlLength;const h=r.useProxy||!!(0,c.ed)(t);if(h){const e=(0,c.b7)(t);u=e.path,!d&&u.length+1+l>m.maxUrlLength&&(d=!0),e.query&&(s={...e.query,...s})}if("HEAD"===n.method&&(d||h)){if(d){if(l>m.maxUrlLength)throw C("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw C("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(h)throw C("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(d?(n.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?t=(0,c.fl)(t,s):(n.body=(0,c.B7)(s),n.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,c.fl)(t,s),h&&(e.useProxy=!0,t=`${u}?${t}`),s.token&&y&&n.body instanceof FormData){const e=n.body;e.set?e.set("token",s.token):e.append("token",s.token)}if(r.hasOwnProperty("withCredentials"))e.withCredentials=r.withCredentials;else if(!(0,c.D6)(t,(0,c.TI)()))if((0,c.kl)(t))e.withCredentials=!0;else if(i.id){const r=i.id.findServerInfo(t);r&&r.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(n.credentials="include")}let h,f,g=0,b=!1;l>0&&(g=setTimeout((()=>{b=!0,e.controller.abort()}),l));try{if("native-request-init"===r.responseType)f=n,f.url=t;else if("image"!==r.responseType||"default"!==n.cache||"GET"!==n.method||d||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(r.headers)||!s&&!e.useProxy&&m.proxyUrl&&!S(t)){if(h=await p._abortableFetch(t,n),e.useProxy||function(e){const t=(0,c.P$)(e);t&&!p._corsServers.includes(t)&&p._corsServers.push(t)}(t),"native"===r.responseType)f=h;else if("HEAD"!==n.method)if(h.ok){switch(a){case"array-buffer":f=await h.arrayBuffer();break;case"blob":case"image":f=await h.blob();break;default:f=await h.text()}if(g&&(clearTimeout(g),g=0),"json"===a||"xml"===a||"document"===a)if(f)switch(a){case"json":f=JSON.parse(f);break;case"xml":f=T(f,"application/xml");break;case"document":f=T(f,"text/html")}else f=null;if(f){if("array-buffer"===a||"blob"===a){const e=h.headers.get("Content-Type");if(/application\/json|text\/plain/i.test(e)&&f["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(f).json();e.error&&(f=e)}catch{}}"image"===a&&f instanceof Blob&&(f=await U(URL.createObjectURL(f),e,!0))}}else f=await h.text()}else f=await U(t,e)}catch(n){if("AbortError"===n.name){if(b)throw new Error("Timeout exceeded");throw(0,u.zE)("Request canceled")}if(!(!h&&n instanceof TypeError&&m.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||S(t))throw n;e.redoRequest=!0,(0,c.tD)({proxyUrl:m.proxyUrl,urlPrefix:(0,c.P$)(t)})}finally{g&&clearTimeout(g)}return[h,f]}function T(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function I(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const n=e.params.requestOptions;if(!t||"native"===n.responseType||"native-request-init"===n.responseType)return!0;let s,o,a,l;if(!t.ok)throw s=new Error(`Unable to load ${t.url} status: ${t.status}`),s[w]=r,s;null!=r&&r.error&&(s=r.error),s&&(o=Number(s.code),a=s.hasOwnProperty("subcode")?Number(s.subcode):null,l=s.messageCode,l=l&&l.toUpperCase());const u=n.authMode;if(403===o&&(4===a||s.message&&s.message.toLowerCase().indexOf("ssl")>-1&&-1===s.message.toLowerCase().indexOf("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===o)&&-1!==g.indexOf(o)&&!E(e.params.url)&&(403!==o||-1===b.indexOf(l)&&(null==a||2===a&&e.credentialToken))){await x();try{const t=await i.id.getCredential(e.params.url,{error:C("request:server",s,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=null,e.credentialToken=null,!1;s=t}}if(s)throw s;return!0}function U(e,t,r=!1){const n=t.controller.signal,i=new Image;return t.withCredentials?i.crossOrigin="use-credentials":i.crossOrigin="anonymous",i.alt="",i.src=e,(0,h.f)(i,e,r,n)}p._abortableFetch=null,p._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,r)=>{r.d(t,{r:()=>s});var n=r(17452);const i=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function s(e){const t=(0,n.P$)(e,!0);return t&&t.endsWith(".arcgis.com")&&!i.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},59266:(e,t,r)=>{r.d(t,{mz:()=>c,pp:()=>u,WW:()=>a,Yi:()=>l,LC:()=>o}),r(66577);var n=r(70586),i=r(82971);let s;function o(){return s||(s=(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}})()),s}const a=(e,t,r)=>c.create(e,t,r,null,["$feature"]),l=(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,s,o,a){this.script=e,this.evaluate=i;const l=Array.isArray(o)?o:o.fields;this.fields=l,this._syntaxTree=n,this._arcade=t,this._arcadeDictionary=r,this._arcadeFeature=s,this._spatialReference=a,this._referencesGeometry=t.scriptTouchesGeometry(this._syntaxTree),this._referencesScale=this._arcade.referencesMember(this._syntaxTree,"scale")}static async create(e,t,r,s,a,l){const{arcade:u,Feature:d,Dictionary:h}=await o(),p=i.Z.fromJSON(t),f=u.parseScript(e,l),m=a.reduce(((e,t)=>({...e,[t]:null})),{});let y=null;(0,n.pC)(s)&&(y=new h(s),y.immutable=!0,m.$config=null);const g=u.scriptUsesGeometryEngine(f)&&u.enableGeometrySupport(),b=u.scriptUsesFeatureSet(f)&&u.enableFeatureSetSupport(),v=u.scriptIsAsync(f)&&u.enableAsyncSupport(),_={vars:m,spatialReference:p,useAsync:!!v},w=new h;w.immutable=!1,w.setField("scale",0);const S=u.compileScript(f,_);return await Promise.all([g,b,v]),new c(e,u,h,f,(e=>("$view"in e&&e.$view&&(w.setField("scale",e.$view.scale),e.$view=w),y&&(e.$config=y),S({vars:e,spatialReference:p}))),new d,r,p)}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)}}},85958:(e,t,r)=>{r.d(t,{f:()=>o});var n=r(80442),i=r(70586),s=r(95330);function o(e,t,r=!1,o){return new Promise(((l,u)=>{if((0,s.Hc)(o))return void u(a());let c=()=>{p(),u(new Error(`Unable to load ${t}`))},d=()=>{const t=e;p(),l(t)},h=()=>{if(!e)return;const t=e;p(),t.src="",u(a())};const p=()=>{(0,n.Z)("esri-image-decode")||(e.removeEventListener("error",c),e.removeEventListener("load",d)),c=null,d=null,e=null,(0,i.pC)(o)&&o.removeEventListener("abort",h),h=null,r&&URL.revokeObjectURL(t)};(0,i.pC)(o)&&o.addEventListener("abort",h),(0,n.Z)("esri-image-decode")?e.decode().then(d,c):(e.addEventListener("error",c),e.addEventListener("load",d))}))}function a(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}},58333:(e,t,r)=>{r.d(t,{I4:()=>i,lF:()=>o,ET:()=>s,qP:()=>a,eG:()=>l,lj:()=>c,wW:()=>u});const n=[252,146,31,255],i={type:"esriSMS",style:"esriSMSCircle",size:6,color:n,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:n},o={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},a={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},l={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},c={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
|